blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
b58d8677ccb0a7cdfe14ea57afee51438b6116fa
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/nb836onw9bek4FPDt_16.py
69b55a2efffa5340071d2d3f67af082fc7f2d0f0
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
def count_same_ends(txt): c = 0 txt = txt.lower() txt = txt.replace("!", "") txt = txt.replace(".", "") words = txt.split() for word in words: if word[0] == word[len(word) - 1] and len(word) != 1: c += 1 return c
7388a331af4567a46dc4b438a6216cfde308fd11
edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81
/Python 300/11. Class/284.py
cbe6087088e53713cea580554af042f416b7832d
[]
no_license
narinn-star/Python
575cba200de35b9edf3832c4e41ccce657075751
14eba211cd3a9e9708a30073ba5b31d21d39eeef
refs/heads/master
2023-05-25T22:57:26.079294
2021-06-07T15:29:39
2021-06-07T15:29:39
331,647,462
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
#class _ 클래스 상속 class car: def __init__(self, wheel, price): self.wheel = wheel self.price = price class bike(car): def __init__(self,wheel, price, 구동계): super().__init__(wheel, price) #car.__init__(self, wheel, price) self.구동계 = 구동계 bicycle = bike(2, 100, "시마노") print(bicycle...
91eaecf9d7e01d9e1e6daaa5154fc75664696fdd
34b9b39442bde1a3c8fa670ef60bcc84d772a067
/Assignment 6-Pandas A-Deadline Oct 31 2017/Assigment6_Marrugo/Assignment6_step1_Marrugo.py
18084c7507efa63f8f69b9823d9f478cea967cc6
[]
no_license
bnajafi/Scientific_Python_Assignments_POLIMI_EETBS
b398fc2754b843d63cd06d517235c16177a87dcf
8da926e995dcaf02a297c6bb2f3120c49d6d63da
refs/heads/master
2021-05-07T22:36:14.715936
2018-01-16T21:12:33
2018-01-16T21:12:33
107,265,075
38
86
null
2018-01-16T21:12:34
2017-10-17T12:24:04
Python
UTF-8
Python
false
false
2,890
py
# -*- coding: utf-8 -*- # Assigment 6 Calculation of the example D using pandas print "Assigment 5 Calculation of the example D using pandas\n" # import library import pandas as pd #Convention resistance [Heat transfer coefficient, area] Resistances_names=["R1in","R2","R3","R4","R5","R6","R7","R8out"]#Resista...
8e71bfb294c0824e57c51307c343248ff48ae18a
addbf46c371f7d3cb51dfce6d118da8e0fd8c1f2
/nathan-programming-puzzles-10-2-a.py
5d53a2e9e28239d972ee3fd494170d25d1341682
[]
no_license
nrhint/python-class
2a5af35fc887eeb6668278d40b86b5be872ee4c4
c70940b5e03b1858d2f6f16be6807206ec3e22bb
refs/heads/master
2020-12-07T00:37:52.907516
2016-12-07T00:50:52
2016-12-07T00:50:52
67,438,180
0
0
null
2016-09-05T17:09:27
2016-09-05T17:09:27
null
UTF-8
Python
false
false
154
py
import pickle faves = { "food", "games", "programming" } favesFile = open("favorits.dat", 'wb') pickle.dump(faves, favesFile) favesFile.close()
27d53f6361992e5a1a8759acb0c55160f5ab5cb1
07c3034f7b6ef88e08430b8c908613ea0091f1b6
/Homework/HW1/hc2324_hw1_q3.py
8c4604900546d1f073f205bf4eca98d9a5734f9d
[]
no_license
HelalChow/Data-Structures
494b8fabcdf1cac20db78055547ce4160ad6a018
3b3401cbd23e01b2d7d95dfc3b95451ca179cee9
refs/heads/master
2021-10-19T00:24:23.589224
2019-02-15T22:34:05
2019-02-15T22:34:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
def a_sum_square(n): sum=0 for i in range(n): sum+=i**2 return sum def b_sum_square(n): return sum(i**2 for i in range(n)) def c_sum_square(n): sum = 0 for i in range(n): if i%2 != 0: sum += i**2 return sum def d_sum_square(n): return sum(i...
964100020297da1c3078fb8f0be88a105eaf54a7
46128b87bf516e34c2844b7a2de37606c1381319
/backend/apps/crowd_bt/types.py
78e1a4852e6817f06d399bb0ee8f67c8685f3450
[]
no_license
nxxtlib/votai
0f9848ef64375ee2beb07e38d009bdf8360c63ed
b8907b23190c1e164d0130538e90356a11f43534
refs/heads/master
2022-11-24T18:44:51.416348
2020-06-01T22:01:08
2020-06-01T22:01:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
from typing import NewType, NamedTuple # pylint: disable=pointless-string-statement """Mu Given a relevance score (s), its Gaussian-distributed format is given by: s ~ N(μ, σ²) """ Mu = NewType("Mu", float) """Sigma Squared Given a relevance score (s), its Gaussian-distributed format is given by: s ~ N(μ, σ²) """...
31fbf2cea496cbee545c55ace24d1fbf333cb2ee
52e7f32f1d9cff522d76583036735ddd27cd9f7a
/pjs/scoping.py
1127f1febebe38098d14ec04302346b69397eb87
[]
no_license
niallo/PJs
5f8167610a312f249d5f6d64287ee244be29dcf3
e0adb313559774fb1798f56f03aea2e3f0abfd3b
refs/heads/master
2021-01-16T20:56:57.175927
2013-07-13T21:11:54
2013-07-13T21:11:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,421
py
import ast from converter import register as converts, PJsNotImplemented import utils FUNC_TEMPLATE = '''\ %(left)s = %(dec_front)s$def(%(special)sfunction $_%(name)s(%(args)s) { // %(lineno)d %(contents)s })%(dec_back)s; %(rname)s.__module__ = _.__name__; %(rname)s.__name__ = $b.str("%(name)s"); ''' LAMBDA_TEMPLATE ...
3cdece2e48e8bed2a644484e138ec349ae54e1ab
82bab97dc70cad2e8a64c9563eb36694899683b0
/launcher.py
3d579fd84cf1d0a949f0dba7a5fb6f329e90bd83
[]
no_license
lubusax/ras_1901
a2a0297c5751d9bd2cc10d5790a67df76779580c
7f4a590f7e2b9b70c47e2c4ec7615f2aca91f57a
refs/heads/master
2020-04-16T02:59:00.048554
2019-01-20T18:40:49
2019-01-20T18:40:49
165,215,773
0
1
null
null
null
null
UTF-8
Python
false
false
2,501
py
#! /usr/bin/python3.5 import os, sys, time from dicts.ras_dic import WORK_DIR, PinsBuzzer, PinsDown, PinsOK from lib import Display, CardReader, PasBuz, Button from lib import Odooxlm, Tasks Buz = PasBuz.PasBuz( PinsBuzzer ) Disp = Display.Display() Reader = CardReader.CardReader() B_Down = Button.Button(...
d8ea0a8e9fe2cd0625dc5ac26cddd66c3fed3058
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714184448.py
c1f95465cbf3857a24980aee211e2520759b0265
[]
no_license
12libao/DEA
85f5f4274edf72c7f030a356bae9c499e3afc2ed
1c6f8109bbc18c4451a50eacad9b4dedd29682bd
refs/heads/master
2023-06-17T02:10:40.184423
2021-07-16T19:05:18
2021-07-16T19:05:18
346,111,158
0
0
null
null
null
null
UTF-8
Python
false
false
3,588
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Aerodynamics.Ae...
b93fcfdfac7b65cb81f229e57d46e240ab834093
920ab19b73a7cba21d340a49d9d24e2d1eeabf3d
/idps/lib/python3.7/site-packages/identify/extensions.py
e7aa969e273222d1c0e97ee9afa785c23c756811
[ "MIT" ]
permissive
DTrafford/IDPS
5fa2b73f2c47cbf50b90a1a786c10f7d69c995b4
1eaccfc218adcb7231e64271731c765f8362b891
refs/heads/master
2022-12-16T16:28:34.801962
2020-03-30T18:08:09
2020-03-30T18:08:09
234,163,829
0
0
MIT
2020-09-10T06:26:02
2020-01-15T20:10:09
Python
UTF-8
Python
false
false
6,615
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals EXTENSIONS = { 'apinotes': {'text', 'apinotes'}, 'asar': {'binary', 'asar'}, 'bash': {'text', 'shell', 'bash'}, 'bat': {'text', 'batch'}, 'bmp': {'binary', 'image', 'bitmap'}, 'bz2': {'binary...
66e2bb71af508d27ce94ce064013eb5f466c0f3e
88e06bab1989c81a2dd649bb09b144fa7c958f89
/leet_construct_binary_tree_from_preorder_and_inorder.py
8cb4b670c2f1f3cd6c7fe8901450b6acf460ad69
[]
no_license
VaibhavD143/Coding
4499526b22ee4ef13f66c3abcea671c80a8f748a
5de3bae8891c7d174cbc847a37c3afb00dd28f0e
refs/heads/master
2023-08-06T21:56:44.934954
2021-10-09T18:31:29
2021-10-09T18:31:29
263,890,286
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
""" To understand base: take example [8,5,2,3,4,6,7,9] [3,2,4,5,7,6,9,8] [3,9,20,15,7] [9,3,15,20,7] """ # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def buildTre...
774ed71b32ee8d05b954da997e212641803eb3da
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_inkier.py
178f6bd2151eec1fdf19af11edad7fd9981faaa8
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
#calss header class _INKIER(): def __init__(self,): self.name = "INKIER" self.definitions = inky self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['inky']
615cfacbf839f0821c7d576ef7d3c6b6b6f562ad
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03209/s218432315.py
e2d669ba01785a86ae398f08408031d285e65950
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
N,X = map(int,input().split()) siz = [1] pat = [1] for i in range(N): siz.append(siz[-1]*2 + 3) pat.append(pat[-1]*2 + 1) def rec(n,x): if n==0: ret = int(x>0) elif x <= 1 + siz[n-1]: ret = rec(n-1, x-1) else: ret = pat[n-1] + 1 + rec(n-1, x-2-siz[n-1]) return ret print(...
cf17ba00092630b465a26dc9a485c9062396af08
9c4a70475f48b81b7b0d895e07b012dd8aca2c2d
/backend/remp_28495/urls.py
364caaa46eb9dc964112a11701b2e8b40501fda0
[]
no_license
crowdbotics-apps/remp-28495
81c5963490654cf5c7a977936a62b816ff967e5f
f2430f3b7dd53d9ff43465fe12da1dd28925e773
refs/heads/master
2023-06-10T21:07:46.400603
2021-07-06T16:45:51
2021-07-06T16:45:51
383,537,825
0
0
null
null
null
null
UTF-8
Python
false
false
2,187
py
"""remp_28495 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
b9ff2167f40f7d7d526d185d522bbd4d81142ef8
ec3362fe2ef1f23a9b1fad9469b6a2ec89beda3a
/hey-brether.py
f1125635a446a6c1bfc49963cb83ca9edc32f4fd
[ "MIT" ]
permissive
tomcola512/hey-brether
dcbee74d55c5a2c6cadb188d450af0862fc9041f
42fb0114662476ffd8f3b091950bce6cbe836047
refs/heads/master
2020-03-24T19:21:29.053260
2018-07-30T19:53:16
2018-07-30T19:53:16
142,921,495
0
0
MIT
2018-07-30T19:51:26
2018-07-30T19:51:25
null
UTF-8
Python
false
false
504
py
#!/usr/bin/env python3 import sys from typing import List def form_letter(letter: str) -> tuple: parts = [f':z_{letter}_{i}:' for i in range(4)] return ''.join(parts[:2]), ''.join(parts[2:]) def form_word(word: str) -> str: lines = [' '.join([form_letter(s)[i] for s in word]) for i in range(2)] retu...
776e156d066891997db6fdf2b1cfc8af363bc051
d07b91e42e32b0a0642254a460bc56a546f60a63
/source/lambdas/sns/handler.py
c8c6345aff30656a63532726508335396e977ac4
[ "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
emmanuellim/improving-forecast-accuracy-with-machine-learning
81a30674f24d8249b7a55d6cce4fabe4f8fb4fdf
2470b13c4b23861907c326cb2c3fdb6fbf4b2397
refs/heads/master
2023-01-14T13:41:42.978184
2020-11-24T19:07:35
2020-11-24T19:07:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,068
py
# ##################################################################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
6a6c9040cc8399e78b2e31e4a7d73c082ce17201
15e8a393f6c71ba77094a1718f4f89050409c7ae
/accounts/views.py
aa64a6b91daa4cef6e6f338622c3f42048dcea75
[]
no_license
emilte/johansson
21a3e20208c67725776af0f94de4c29150935b50
d16bdde26e840814562f668904b2f5588c0a13ad
refs/heads/master
2023-07-23T21:01:32.830302
2021-09-05T14:56:01
2021-09-05T14:56:01
390,360,563
0
0
null
2021-08-30T00:42:49
2021-07-28T13:26:31
SCSS
UTF-8
Python
false
false
5,049
py
# imports import math from openpyxl import Workbook from django.views import View from django.urls import reverse from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, FileResponse from django.utils import timezone from django.contrib import messages from django.db.models import ...
e3f4ebd0f7997eb84b8e98df2d8ea435590b9e7d
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/appplatform/v20230501preview/__init__.py
1dd362384bee7b86480bef71d3f3221e6b6714a0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
2,442
py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .api_portal import * from .api_portal_custom_domain impor...
5ebd7f4f17ff38cdf95fc4df4a4fb4883473f0cf
929886272e269e59596cf559e1c4fb26b6897e0c
/clinicstation/models.py
cc62f17a07ef387d7596027b7a816e80d1533442
[ "Apache-2.0" ]
permissive
vedpr612/tscharts
aab287478407d64449d00c2f021611128a085c74
09a482622fc0f6cccc56b688aea81370ab137160
refs/heads/master
2020-03-09T01:23:19.170052
2018-04-05T02:56:36
2018-04-05T02:56:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,033
py
#(C) Copyright Syd Logan 2016 #(C) Copyright Thousand Smiles Foundation 2016 # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. # #You may obtain a copy of the License at #http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by a...
b8068d18d1dfcb398cb0e4564f4460bd7017fa22
46667df8344db58698838d677bdae377b3c3c53c
/Data Manipulation with Pandas/Part 2/24.downsampling-data.py
066a85b0f5cfb6d72099f5c86d7950dd93723f2b
[]
no_license
bennysetiawan/DQLab-Career-2021
278577cdddb3852c57f799cd1207b4ff45962960
0822d15e3b24cf0146c23456d4b65b0fb00a53fc
refs/heads/master
2023-06-06T13:24:21.289929
2021-06-23T17:09:14
2021-06-23T17:09:14
379,657,598
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
import pandas as pd # Load dataset https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv gaq = pd.read_csv('https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv') gaq['timestamp'] = pd.to_datetime(gaq['timestamp']) gaq = gaq.set_index('timestamp')...
aae8ed71564aa67c6ec5384655345127b605987a
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/CrmGrademktMemberDetailCreateRequest.py
46b878b46708a1903474d989185d6c8580933eda
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
''' Created by auto_sdk on 2015-01-20 12:44:31 ''' from top.api.base import RestApi class CrmGrademktMemberDetailCreateRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.feather = None self.parameter = None def getapiname(self): return...
6e7ab0d6a2cb4966bcce0938269d82f81bbe5888
134267f2244954d48c65daae0b58051aba757fed
/lucky.py
6d7541f6ac39af4ddc31c088dfa1988c61387f8c
[]
no_license
mobin-zaman/misc_python
47fe836d1eae154210912b8b353f241303523e6b
7a22329ae38b2d5ee9cd9ce29d995686759f5f87
refs/heads/master
2020-04-28T00:48:06.774434
2019-07-24T15:28:15
2019-07-24T15:28:15
174,829,343
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
#! python3 #lucky.py - opens several google search results import requests, sys, webbrowser, bs4 print('Googling....') res=requests.get('http://google.com/search?q=' + ' '.join(sys.argv[1:])) res.raise_for_status() #TODO: Retrive top search result links. soup=bs4.BeautifulSoup(res.text) #TODO: Open a browser tab f...
54e679afc65bea0590837f01b49bdf2be09aece1
58cd392c642ac9408349f03dc72927db6abcce55
/team2/src/Without_Doubt_Project/venv/lib/python3.6/site-packages/tbears/libs/icx_signer.py
8e3c035124d75dddc7b9979edb461cd6fd3fbba1
[]
no_license
icon-hackathons/201902-dapp-competition-bu
161226eb792425078351c790b8795a0fe5550735
f3898d31a20f0a85637f150d6187285514528d53
refs/heads/master
2020-04-24T07:48:18.891646
2019-04-18T01:47:21
2019-04-18T01:47:21
171,809,810
3
11
null
2019-04-18T01:47:23
2019-02-21T06:01:04
Python
UTF-8
Python
false
false
2,922
py
# -*- coding: utf-8 -*- # Copyright 2018 ICON Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
56d1b915aa3f5e63035a47824c207613f2bf5480
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gameservices/v1beta/resources.py
101446b0908fca46ce29693f795216e4eeaf8876
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twistedpair/google-cloud-sdk
37f04872cf1ab9c9ce5ec692d2201a93679827e3
1f9b424c40a87b46656fc9f5e2e9c81895c7e614
refs/heads/master
2023-08-18T18:42:59.622485
2023-08-15T00:00:00
2023-08-15T12:14:05
116,506,777
58
24
null
2022-02-14T22:01:53
2018-01-06T18:40:35
Python
UTF-8
Python
false
false
2,945
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
dfeb592665b2b0016aab64fdaa9c63d96cf44147
33f752443cbb38d3cb4d9d40982b2a2d824acb81
/demo/django/api/migrations/0001_initial.py
6227ca3a23ca0dd634450cc0af400b99742f755b
[ "MIT" ]
permissive
denisroldan/django-angular-dynamic-forms
b03b4f20751c609733356bea1a7141da29f9de54
f50de1c74db727e565756f40344c29bbab1b3910
refs/heads/master
2020-04-03T10:11:41.776970
2019-08-20T09:28:30
2019-08-20T09:28:30
155,186,503
0
0
null
2018-10-29T09:38:19
2018-10-29T09:38:19
null
UTF-8
Python
false
false
1,193
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-24 10:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
fa45b11c2a495772e67bb46f3588e19d43441dc4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/158/usersdata/264/68784/submittedfiles/imc.py
f8dd970b68f227049dd18bb352f6bc264eb43c0c
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
# -*- coding: utf-8 -*- #Entrada: peso= float(input('Digite o valor do peso em Kg:')) altura= float(input('Digite o valor da altura em metros:')) #Processamento: imc= ((peso)/(altura**2)) #Saída: if (imc>
5b93b4356e42e2778ef25836eb0d5835a1ef480c
25f9afe371c59612e02e561a6b35b8d8bafad20a
/tests/suite/test_smoke.py
c67d4d9576cb7e6ed4820df54347905d68d8793c
[ "Apache-2.0" ]
permissive
HubBucket-Team/kubernetes-ingress
2b8bf4ac293fb2e9aa51e18037c34029ed66a8be
99663386df7cea013489a88b9471eb18be4c9e77
refs/heads/master
2020-07-07T23:18:34.157361
2019-08-13T13:13:39
2019-08-20T15:23:24
203,502,783
1
1
Apache-2.0
2019-08-21T03:58:05
2019-08-21T03:58:04
null
UTF-8
Python
false
false
2,734
py
import requests import pytest from suite.fixtures import PublicEndpoint from suite.resources_utils import create_secret_from_yaml, delete_secret, \ ensure_connection_to_public_endpoint, create_items_from_yaml, \ delete_items_from_yaml, create_example_app, delete_common_app, \ wait_until_all_pods_are_ready,...
6ea349337b8084df78a521f35798fd7e7555a5c5
c5514643dd1601661abce5449674cc796247b66a
/src/event_configuration.py
a370720faf27ec54a7e64737991585f2e0fd77c9
[]
no_license
happeninghq/happening-comments
0e456d593608cc1ff63e3df2109e039b8d80f921
d330c3fcfb648e02be9466640570764f623945f0
refs/heads/master
2021-01-20T19:06:42.744164
2017-04-05T13:36:25
2017-04-05T13:36:25
59,932,570
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
"""Event Configuration.""" from happening import configuration from happening import plugins class CommentOnGroups(configuration.BooleanField): """Can members comment on groups.""" @property def settable(self): """Only enable if the groups plugin is enabled.""" return plugins.plugin_enab...
3424b73d226dbd1d83678cf172706f34105222d2
52b5773617a1b972a905de4d692540d26ff74926
/.history/frogjump_20200717123008.py
e4f45f8cc2fdaa932a6cbf2ca3a79c65a2b5a589
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
# use the brute force approach then optimize # and test edge cases # o(n) def jump(X,Y,D): if X == Y: return 0 if D < 1: return 0 else: answer = round((Y-X) / D print(answer) # count = 0 # while X < Y: # print('hmm') # X = X+D ...
bac232b847d7bdec1b84d7b26513593e311f39e1
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinewidth.py
f67ddb9933f89083f1ad283ae70d3c68d77de79f
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
480
py
import _plotly_utils.basevalidators class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="outlinewidth", parent_name="choropleth.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, ...
2a5c757d67b5a4fcd73e07832a8a1b762878d752
be317396416134fc18d598934403906b9b1a7583
/word_data_gen.py
b738412179d82da71185cc5407c91359cbaad683
[ "Apache-2.0" ]
permissive
Guhaifudeng/zhihukankan
26d5c40638035c9a13b0e24b789afd11c6eb157f
ccb216458a74d85bf048b0da11146716026b7ce3
refs/heads/master
2020-06-19T07:36:54.996472
2017-07-08T09:09:28
2017-07-08T09:09:28
94,181,591
0
0
null
null
null
null
UTF-8
Python
false
false
2,447
py
#encoding:utf-8 import codecs import word_util def gen_word_key(word_embedding_file,word_key_file,has_head = False): w_write = codecs.open(word_key_file,'w', 'utf-8') with codecs.open(word_embedding_file, 'r', 'utf-8') as w_read: count = 0 w_key = '' while True: ...
[ "=" ]
=
d4483efe86d7062fd477ca674becd6f9d965816e
fd8d33572656edf9e1133a72ad4e2fa090f90a5f
/packages/OpenWeatherMap/nodes/OpenWeatherMap___BreakTemp0/OpenWeatherMap___BreakTemp0___METACODE.py
389970e2b1ffbdae5d0a55956bfa72961c159947
[ "MIT" ]
permissive
ChristianHohlfeld/Ryven
a01c2eafa79a80883a9490efb5f043fd35f53484
53bf7e57a7b0fa25a704cd0d2214a7f76096d4dd
refs/heads/master
2022-12-12T22:03:57.122034
2020-08-31T13:45:45
2020-08-31T13:45:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,445
py
from NIENV import * # API METHODS # self.main_widget <- access to main widget # Ports # self.input(index) <- access to input data # self.set_output_val(self, index, val) <- set output data port value # self.exec_output(index) <- executes an execution output # self.create_ne...
b093ca38f2f191bd61045b53e218e509e9ee9255
372eefa7d896d3cee8c1c1befd8d3baec4eb0188
/infra/services/cicd/artifacts.py
73cce818ce93475357036f6865901e922b7e813b
[]
no_license
dr-natetorious/aws-homenet
5c17f4c3e1fcd60f50d22b5b94453f1d965d4ca0
d5382c7ada2c9bd5dc0b3687d57d47282791ed40
refs/heads/master
2023-06-21T17:40:08.721233
2021-07-22T18:08:50
2021-07-22T18:08:50
307,004,525
1
0
null
2021-06-27T18:05:01
2020-10-25T01:45:42
Python
UTF-8
Python
false
false
1,131
py
from infra.interfaces import ILandingZone from aws_cdk import ( core, aws_codeartifact as art, aws_route53 as r53, ) class ArtifactsConstruct(core.Construct): """ Represents a code artifact repository. """ def __init__(self, scope: core.Construct, id: str, landing_zone:ILandingZone,zone:r53.IHostedZone, ...
[ "nate@bachmeier" ]
nate@bachmeier
02ce7282c2e5418148795d72cfafea3df7b36c38
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_129/ch82_2019_06_03_22_51_02_844625.py
26ab896be3fc59c6151a93badfc0832f10734bda
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
def primeiras_ocorrencias(palavra): dic = {} for e in palavra: if e not in dic: dic[e] = 1 else: dic[e] = +=1 return dic
1fa3c7c2af1235677a3196c7fa0ba42253cf7339
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/Renamer.py
97190580daf2e8848a7d452f77642f9dba9bf729
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,910
py
###################################################################################################### # A tool to easely renamer objects, materials,... # # Actualy partly uncommented - if you do not understand some parts of the code, # # please se...
1f80f5d806fd487bb6af162e32e82e2567da9491
08427cf6764cb646fdd37eb239dc6dde0be68ad7
/python/leetcode.153.py
8f2d4f9af6fd521c1079ee04cb577821d613a829
[]
no_license
CalvinNeo/LeetCode
9d8fa71a1da8c926b5f39659a1befcfa06608945
02ebe56cd92b9f4baeee132c5077892590018650
refs/heads/master
2020-12-31T00:41:14.031066
2020-11-06T04:41:59
2020-11-06T04:41:59
80,634,710
3
1
null
null
null
null
UTF-8
Python
false
false
916
py
def se(arr, fr, to): if to == fr: return arr[fr] elif to - fr == 1: return min(arr[to], arr[fr]) mid = (fr + to) / 2 if arr[fr] > arr[mid]: return se(arr, fr, mid) elif arr[mid + 1] > arr[to]: return se(arr, mid + 1, to) else: return arr[mid + 1] class So...
b784b3f3d2161fdf8531127e08a4cb750cc38d02
80fe5bd6413fb6366efba5f7a5d75edd7bca5295
/snake_game/scoreboard.py
1807cafea2c95dceb667bdecb07d2cb21b7d63e2
[]
no_license
toastding/collections
37893167ca178a289b6d88b585cc056488726691
9c70d3ecaec211fa68d8de598af59f53f7dcbc1e
refs/heads/master
2023-07-14T08:01:37.851618
2021-08-31T13:42:43
2021-08-31T13:42:43
360,877,739
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
from turtle import Turtle ALIGNMENT = "center" FONT = ("Verdana", 20, "normal") class Scoreboard(Turtle): def __init__(self): super().__init__() self.score = 0 with open("data.txt") as data: self.high_score = int(data.read()) self.penup() self.goto(0, 270) ...
049e187c03f97db786c9e2c1f574457db6e103ed
f87f51ec4d9353bc3836e22ac4a944951f9c45c0
/.history/HW02_20210630154801.py
30b513b1fbb089d9ef3ed3c11ddca365506bce60
[]
no_license
sanjayMamidipaka/cs1301
deaffee3847519eb85030d1bd82ae11e734bc1b7
9ddb66596497382d807673eba96853a17884d67b
refs/heads/main
2023-06-25T04:52:28.153535
2021-07-26T16:42:44
2021-07-26T16:42:44
389,703,530
0
0
null
null
null
null
UTF-8
Python
false
false
2,560
py
""" Georgia Institute of Technology - CS1301 HW02 - Conditionals and Loops Collaboration Statement: """ ######################################### """ Function Name: snackBar()  Parameters: snack (str), ingredient (str), yourMoney (float) Returns: whether you can get the snack (bool) """ ###########...
6981f306ac39b5d7c1aa2ca6983e0fbd6357d408
eeb3d7c9ff4c882ac913ee8e00b2201bcfdd300f
/string/38.count-and-say.py
612a90ec86afcaa5842e1c6f1a6a0e87aac53369
[]
no_license
naseeihity/leetcode-daily
f89888328a1181e0592f09e90fea105d1568af99
4992a967ddccd05ab777dad69ce2f832dae26ae5
refs/heads/master
2023-04-23T06:08:35.473663
2021-05-10T15:19:33
2021-05-10T15:19:33
235,041,055
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
# # @lc app=leetcode id=38 lang=python3 # # [38] Count and Say # # @lc code=start class Solution: def countAndSay(self, n: int) -> str: def say(self, ans): _ans = "" l, r = 0, len(ans) for i in range(1, r+1): if i == r or ans[l] != ans[i]: count = i - l...
2b6b23388fe62b64f777be4d9d1c785a09b4fd7c
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class1958.py
690424946f0df1baa082d94199b57207c409b8f0
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,922
py
# qubit number=4 # total number=27 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
48306c72966c1c9ee9c538e95b126fab6e9107cb
430bd6e15ce181fdbce4dd769cdfc971b43e9d5b
/doughnuts/doughnuts.py
c2437f1b3be0adb4fa3a15bd6216eb97023c4981
[ "MIT" ]
permissive
kodosan/Doughnuts
171e58415804af12cc54ed34b5b8510823dda70f
e246707390fb9c708241d35517a7d773858dbca7
refs/heads/master
2023-04-01T04:00:12.200820
2021-04-01T06:42:46
2021-04-01T06:42:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
import builtins from os import path from sys import argv from json import loads, JSONDecodeError from helpmenu import register_helpmenu from libs.app import Loop_init, run_loop from libs.config import gset, gget, custom_set, color from libs.runtime_config import CONFIG from libs.myapp import banner builtins.ic = la...
cb98b4186be427666468060d4c7ba090787f0417
b70eb5577099f88ae9f684f2c87647f98e26d42b
/hpc-historias-clinicas/historias/migrations/0012_auto_20150425_1937.py
6e8d224cdc4208b57deb58837147f39f9868e9f2
[]
no_license
btenaglia/hpc-historias-clinicas
be1a392a119a72055ba643fba9c9a09b740aef47
649d8660381381b1c591667760c122d73071d5ec
refs/heads/master
2020-06-03T19:05:17.910077
2015-06-10T23:05:31
2015-06-10T23:05:31
32,827,786
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('historias', '0011_auto_20150425_1936'), ] operations = [ migrations.AlterField( model_name='hist...
0f1e5f7680d8e48b6c5d8230307c0b7c1c017512
3f5bf0ed01ff34036b0476e82acdcdd646f66859
/visualocean/__init__.py
08c3257e01c6c8fe7351a67a26d464ab08f8a2c6
[]
no_license
cpsarason/visualoceanpy
9e64590f16659d61b6fefd9fc912a6c868175226
b712e73849226dbdebf1c8da57bf00098ed1f4df
refs/heads/master
2021-03-31T01:15:26.751240
2018-03-13T23:45:18
2018-03-13T23:45:18
125,122,884
0
0
null
2018-03-13T22:31:16
2018-03-13T22:31:15
null
UTF-8
Python
false
false
219
py
from __future__ import (absolute_import, division, print_function, unicode_literals) __author__ = 'Landung Setiawan' __all__ = ['core', 'utils']
7d153215cdaf6e880f5ca74101116bc24be6340e
b2e9e3db0202a6bd06b5d1f4c4fd3369b5260261
/python/p032.py
2e8202df7f17ac73122932747adf0ec4d9e10ad0
[]
no_license
jackmoody11/project-euler-solutions
66e7128cae130499ce518c2008e5df91a6883a68
8b6e00bfac7855f5c892f5b3094415935358cb98
refs/heads/master
2020-04-12T23:52:57.347142
2020-01-10T00:23:16
2020-01-10T00:23:16
162,831,576
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
from utils import is_pandigital def is_nine_pandigital_product(a, b): my_str = str(a) + str(b) + str(a*b) if len(my_str) == 9 and is_pandigital(my_str): return True else: return False def compute(): # 1 will never return a pandigital product (will repeat digits) pandigitals = set()...
4f504c0716dacadf713fabd2507a80603e3b8c13
d2b53b3568890dd805575035d09635c422c6bc4d
/python/ray/autoscaler/util.py
d436be426411827e6fe4f2b19e777c1de368ccc8
[ "Apache-2.0", "MIT" ]
permissive
mehrdadn/ray
939deda7099eb30371cbb920a9725b314c58c0b5
3506910c5da257215d38d02f424acc4f419ddbaf
refs/heads/master
2020-09-03T15:33:35.578248
2020-07-31T21:33:27
2020-07-31T21:33:27
219,498,150
2
1
Apache-2.0
2019-11-04T12:37:23
2019-11-04T12:37:22
null
UTF-8
Python
false
false
6,188
py
import collections import hashlib import json import jsonschema import os import threading from typing import Any, Dict import ray import ray.services as services from ray.autoscaler.node_provider import get_default_config from ray.autoscaler.docker import dockerize_if_needed REQUIRED, OPTIONAL = True, False RAY_SCHE...
eeeb8737f788a99b63bc14fa4ee601c37472ba24
28dbe47aba287ed94ef7bba734203736bcc06249
/.history/run_dmac_20200702162638.py
87a34ccf19b64f8739c194e0fbccc0dad71a4485
[]
no_license
ntung88/Trading_Algorithms
242fd816b19df95e02e9fcd8c5c91c862d2ede40
d96488b1754e3751f739d9c3f094a8f8dc54a0a9
refs/heads/master
2022-11-19T16:04:07.800344
2020-07-17T21:14:10
2020-07-17T21:14:10
276,239,640
1
0
null
null
null
null
UTF-8
Python
false
false
549
py
''' Script for running dmac on current data. Outputs decision for paper trading since I don't have the resources to trade electronically :((( ''' import dmac import yfinance as yf import numpy as np import sys def main(): args = sys.argv[1:] tickers = ' '.join(args) data = yf.download(tickers, period='max'...
97d790031b2efb4f1acf57eee08a3880d3106887
0bbd11c91de6ed2315a463809cb1094d6523ca02
/proj03/lattice5/step-afm.py
690ed8ae14b16b5ae6e3f4b02c7c33b88e22ddfe
[]
no_license
impurity80/emto
b232048829002f2ba721019c45df420696f48973
0a7a0d2fcdf41e7763bb4de4244d6598a74ab270
refs/heads/master
2021-01-18T19:46:39.102514
2017-02-20T04:04:42
2017-02-20T04:04:42
69,660,962
1
0
null
null
null
null
UTF-8
Python
false
false
5,175
py
import csv import os from ase import Atom, Atoms from ase.lattice.cubic import * from ase.visualize import view from numpy import * from emto import * from ase.utils.eos import EquationOfState import matplotlib.pyplot as plt from ase.lattice import bulk name = 'afm' curr_dir = os.getcwd() os.system('mkdir eos') os.s...
f9a8acabb60a466dfe29c4ce1b191ff815101635
574c640c4adf212db0bcc1f93e9ca48d2296ad72
/backend/delivery_order/migrations/0001_initial.py
479852031897524fe8d7963958bdc69b06220b1b
[]
no_license
crowdbotics-apps/test2-27795
15331bc54c504607a5cb97369f557e08b1a28343
593c571eb9fff06e48e392b4fbcd2c3cb9f82151
refs/heads/master
2023-05-12T02:36:09.348868
2021-06-07T08:28:50
2021-06-07T08:28:50
374,590,711
0
0
null
null
null
null
UTF-8
Python
false
false
2,609
py
# Generated by Django 2.2.20 on 2021-06-07 08:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('delivery_user_profile', '0001_initial'), ('menu', '0001_initial'), ] operations = [ ...
b92a4b791f5e98e824c6bf9f13238386d080e65d
996003d0ee6444480f98eeb496793be6420c9b63
/tests/mongodb/events/test_database_events.py
bc5eb31811161a6ce52e572e2f77568a27c43dfe
[ "BSD-3-Clause", "BSD-3-Clause-Clear" ]
permissive
Wytamma/fasteve
fb8b54cd6d8c8bb7c058a04543dfa3781a3a869c
0d28a50dc6b6e017bbae5ff82150d081e3ad818e
refs/heads/master
2023-06-08T04:52:02.510353
2023-06-01T07:32:07
2023-06-01T07:32:07
199,584,609
41
1
BSD-3-Clause-Clear
2022-03-17T12:04:28
2019-07-30T05:58:32
Python
UTF-8
Python
false
false
1,136
py
from typing import Optional from fasteve import Fasteve, MongoModel, Resource, MongoObjectId from starlette.testclient import TestClient from pydantic import Field class People(MongoModel): id: Optional[MongoObjectId] = Field(alias="_id") name: Optional[str] people = Resource( name="people", model=P...
5c7c7fdbcb35fd6878837d4f230c5bc598b4168c
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/vitchyr/disentanglement/mix_vectorized_and_single_reward/pnp_first_try.py
740841243f26fa33669cbc0f7de986c37b36b3b4
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
5,205
py
import torch.nn.functional as F import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import ( encoder_goal_conditioned_sac_experiment ) from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( ...
a78915eef8809887752870022b28b634ec01beb0
aea74a8c1d4ad17eb65b7c70da5342c01fd1a930
/websites_postgres/scraper_topwatch.py
9889b1522ed08d8759a96633ee4c81cc9235c4e1
[]
no_license
savusebastian/angular_project
4e6d8b398e17ca91842d7579d8f4da8650e7a13a
9c28c25e4b9875abf346f7e9a7e8baa34bc3f9ee
refs/heads/main
2023-04-17T07:03:32.016850
2021-05-09T09:07:55
2021-05-09T09:07:55
365,710,891
0
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
from bs4 import BeautifulSoup import psycopg2 import requests def topwatch_DB(): con = psycopg2.connect( host='localhost', database='postgres', user='postgres', password='winding1127!' ) cur = con.cursor() URL = 'https://www.topwatch.ro/fossil-fs4735' shop = URL.split('/')[2].split('.')[1] page = requ...
63724cd5abaef45153bdee596d8bdd703ee2dcdc
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/crossref/models/gov/nih/nlm/ncbi/jats1/table_wrap_group_orientation.py
ec33b15cb988fe0f5c36ce8ce7d99b32f3e84539
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
170
py
from enum import Enum __NAMESPACE__ = "http://www.ncbi.nlm.nih.gov/JATS1" class TableWrapGroupOrientation(Enum): LANDSCAPE = "landscape" PORTRAIT = "portrait"
e3feccc9956618a66353c2c0564ac4e266a9b46c
a9c359681631e8344f55163a2d69018ed02c0a90
/openr/py/openr/cli/commands/tech_support.py
2193ec40af9b74d4d2d772c4d554f30c0e0d3e8f
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
facebook/openr
66c82707ae47fa5ed711c20f0355ad7100a3cf1c
8e4c6e553f0314763c1595dd6097dd578d771f1c
refs/heads/main
2023-09-03T02:55:03.399114
2023-07-26T16:46:46
2023-07-26T16:46:46
108,306,129
936
295
MIT
2023-08-31T23:03:31
2017-10-25T17:59:53
C++
UTF-8
Python
false
false
4,893
py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import subprocess import sys from builtins import object from openr.cli.commands import config, decision,...
c8c60f4d6c2defd5798062f40691b3b44f82ac3c
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Basic Programming/Implementation/Basics of Implementation/Bear and Medals/test.py
eef855d601ec9351deb2295e35c080702103ba53
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
619
py
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '2', '4', '0 0 2', '1 2 1', '2 0 0', '0 2 0', '1', '0 1000 0', ]) def test...
374819e09c7095e180257d044a6656442ae72ef5
5fcc3fd608a794d260368318c62547f74d4c1416
/lindenmayer.py
db17a6e4335ac8dda5edf69ca1b53747b3ec0257
[]
no_license
ds-gurukandhamoorthi/intro-python-exs
241fb9158096479a100ef378f291ba83e1a7d5d4
68c386e51c13d0f31e273016eefc4e29ddecdc04
refs/heads/master
2022-02-25T22:28:41.061722
2019-10-22T18:36:46
2019-10-22T18:36:46
103,829,521
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
def lindenmayer(frm, production_rules,nb_transf=1): if nb_transf < 1: return frm transformed = ''.join(production_rules.get(c, c) for c in frm) if nb_transf == 1: return transformed return lindenmayer(transformed, production_rules, nb_transf - 1) return if __name__ == "__main__": ...
c0862bd436f7908175d607f2dbb549efe9d45c55
e5504d8c4880993b82d5583a11c5cc4623e0eac2
/LeetCode/30-day-challenge/June/june 8th - june 14th/randomizedSet.py
d1ab1fc8c9c3c8e3c1c1da13ad85aa74f7ab096b
[]
no_license
noorulameenkm/DataStructuresAlgorithms
e5f87f426fc444d18f830e48569d2a7a50f5d7e0
7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0
refs/heads/master
2023-06-08T19:29:42.507761
2023-05-28T16:20:19
2023-05-28T16:20:19
219,270,731
2
0
null
null
null
null
UTF-8
Python
false
false
1,402
py
import random class RandomizedSet: def __init__(self): """ Initialize your data structure here. """ self.random_set = [] self.index_store = {} def insert(self, val: int) -> bool: """ Inserts a value to the set. Returns true if the set did not already co...
7a36658ae593bde936c367f2ef8c46229d4f76b0
22fbe9c0fc8cc366123111f54f103e3c109bce7a
/zeabus_vision/src/read_exposure.py
fcc70b006aa286c7a67b094dcef463adeab7568c
[]
no_license
zeabusTeam/zeabus_software_ros1
3730021eb3eb6d98df585d172a44c4d6176e8963
86a07f4da03457bad3ce9b0c63b3867403780bc0
refs/heads/master
2020-03-25T23:02:22.816144
2019-03-19T17:30:37
2019-03-19T17:30:37
144,256,396
0
1
null
null
null
null
UTF-8
Python
false
false
1,364
py
#!/usr/bin/python2.7 """ File name: read_exposure.py Author: zeabus Date created: 2018/10/16 Python Version: 2.7 """ import rospy import cv2 as cv import numpy as np import matplotlib.pyplot as plt from statistic import Statistic from sensor_msgs.msg import CompressedImage from dynamic_reconfigure.cl...
985e9efd8ab0fefb39ec3e631887fb7ce65a29f5
811ee1e3bba45419e6c17068027d54bf6c8d4f07
/python/gpmp_utils/plotPlanarMobile2Arms.py
e6aa3a802cbaf75ae3a9859c50c99e102c449c40
[ "BSD-3-Clause" ]
permissive
kalyanvasudev/gpmp2
7dfe19873c72a7b9202c06eb794ef779c2917032
1ee99c743d978ab20dc804c8cd9cfa7813084957
refs/heads/master
2021-12-23T13:01:27.320270
2020-05-03T00:44:59
2020-05-03T00:44:59
227,194,751
0
0
NOASSERTION
2019-12-10T19:01:00
2019-12-10T19:00:59
null
UTF-8
Python
false
false
1,366
py
import numpy as np from gtsam import * from gpmp2 import * def plotPlanarMobile2Arms(figure, axis, marm, p, vehsize, color, width): #PLOTPLANARMOBILE2ARMS Summary of this function goes here # Detailed explanation goes here # color = [(r,g,b)] where all values lie between 0 and 1 pose = p.pose() # vehicle cor...
2fec9430049b72f2e0ef566a4a08ec641022877e
926c7a9760702d3c56adfa3eec0e164cb2c766b6
/gunnery/gunnery/settings/development.py
8dcd148202883fecfc670ba753d381b3add3c197
[ "Apache-2.0" ]
permissive
hunslater/gunnery
7d947942f0c9db56d4102e68758b95b4292efbc3
2b9457ef899f7367dc07ba28cc1b7e4ff2c47d8e
refs/heads/master
2021-01-17T23:14:38.387308
2014-06-11T20:43:51
2014-06-11T20:43:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
from .common import * ENVIRONMENT = 'development' DEBUG = True TEMPLATE_DEBUG = True INSTALLED_APPS += ( 'debug_toolbar', 'django_nose', ) MIDDLEWARE_CLASSES += ( 'debug_toolbar.middleware.DebugToolbarMiddleware', ) from fnmatch import fnmatch class glob_list(list): def __contains__(self, key): ...
bdfc04a2ac39f2bc9a169b4e3ae7b83d76b39078
c9e616e6f5146805c6d9c19d35220e9b76c93aa6
/박현채/비타알고 시즌2/19년9월1주차/시공의 폭풍속으로.py
d5b58e5858d58444c9471d2b902b1d7e5b4f7e13
[]
no_license
inje-illab/Algorithmer
2d29244d38a2aeec07ad83e47e69016269ff4e88
ed5c67d0a1b0c720e5a8ce8fe5bafba4bb0f36b8
refs/heads/master
2023-03-16T05:46:41.795826
2020-01-05T14:59:36
2020-01-05T14:59:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
TEAM_SELECT_HERO = [] USER_SELECT_HERO = [] USEABLE_HERO = [] TEAM_SELECT_HERO.extend(map(int, input().split())) USER_SELECT_HERO.extend(map(int, input().split())) USEABLE_HERO = list(set(USER_SELECT_HERO) - set(TEAM_SELECT_HERO)) # 사용자 선택 영웅의 리스트 집합 - 팀 선택 영웅의 리스트 집합 print(len(USEABLE_HERO)) # 사용가능 영웅 리스트 길이 출력
af9ab97508d3762e24f80f6c7f04143f5b825c27
bbf3a1b2f2f4ec3fa468a089c042643ec8243c15
/ML/research/object_detection/webcam_detection.py
35ee40f148009ce924d3b470369ca8ad01da9298
[ "Apache-2.0" ]
permissive
lasarox/Code
94aa9b3d816016a171e4a3babd9127cb01a6cd03
2c04be4e7a066340f1cf2b45bec18298d010312a
refs/heads/master
2023-04-05T16:51:46.159055
2021-05-01T06:24:02
2021-05-01T06:24:02
361,516,400
0
0
null
null
null
null
UTF-8
Python
false
false
5,099
py
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image from utils import label_map_util from utils import visualization_util...
27a2bfac21348a6fb2463f4306fb6d253e6c0790
1c343f610133030fbe160a1cd864bfc29be84fa8
/tests/test_topicmod_visualize.py
8d7321d8a7c0276326733f8c7338eda06ac194ec
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mcooper/tmtoolkit
56e585c71a553b3344c05a9a1e77adfa5044b29a
cdfbaf7f20095ea45edbdf9e773544e3bb63089d
refs/heads/master
2020-04-29T01:09:42.137637
2019-03-15T23:37:06
2019-03-15T23:37:06
175,721,140
0
0
Apache-2.0
2019-03-15T00:35:56
2019-03-15T00:35:56
null
UTF-8
Python
false
false
3,586
py
import os import six import PIL from tmtoolkit.topicmod import model_io, visualize try: from wordcloud import WordCloud def test_generate_wordclouds_for_topic_words(): py3file = '.py3' if six.PY3 else '' data = model_io.load_ldamodel_from_pickle('tests/data/tiny_model_reuters_5_topics%s.pi...
fa557f36f229ffae04fde795ddaad2491c3d8cb8
fe6cbc51ef5043ff2f953fd2202540fd0f7d7cbc
/mnist_deploy.py
025830d8ddccfeeac54cc4347bec752d88be5c3a
[]
no_license
Tveek/caffe_learning
f87c9abecb879a9807368b733772d669315cca41
e841abb2d0f92c5e0f9f558fbdd9e128c526f1b2
refs/heads/master
2021-01-22T07:32:57.173028
2016-09-26T13:32:45
2016-09-26T13:32:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
# -*- coding: utf-8 -*- from caffe import layers as L,params as P,to_proto root='./' deploy=root+'mnist/deploy.prototxt' #文件保存路径 def create_deploy(): #少了第一层,data层 conv1=L.Convolution(bottom='data', kernel_size=5, stride=1,num_output=20, pad=0,weight_filler=dict(type='xavier')) pool1=L.Pooling(conv1, po...
c0c907c9480629a7fb74fc8e8f851f465c9ed21a
5b85703aa0dd5a6944d99370a5dde2b6844517ec
/03.Python/13.XML1_Find_the_Score.py
a6dcf1e4cc24fe1e036199a2dd8a7b3941d3931c
[]
no_license
alda07/hackerrank
255329196e6a4b9d598c3f51790caf4a99a755bc
a09091f859e87462c95ee856cbbd0ad9b5992159
refs/heads/master
2021-10-24T07:38:34.795632
2019-03-23T17:29:32
2019-03-23T17:29:32
90,329,292
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
import sys import xml.etree.ElementTree as etree def get_attr_number(node): # your code goes here count_atribs = 0 for element in node.iter(): count_atribs += len(element.attrib) return count_atribs if __name__ == '__main__': sys.stdin.readline() xml = sys.stdin.read() tree = etre...
f31fee6475c7cf0e9200fc4f6762bf92a3f9cdb1
7dd88d4ae218b8de8fe54780fb48884ef92c0b5c
/python/leetcode/search.py
0e887d9acf7a2cc74431826670bfe92836cdbc67
[]
no_license
BenThomas33/practice
c98654ec3bb38740d7f69a21ea5832782abdb4f8
5dffbdfbdb65f959a534ed2e2ec7773ab4bc7ed9
refs/heads/master
2021-01-17T23:26:11.538707
2014-10-18T20:49:12
2014-10-18T20:49:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
class Solution: # @param A a list of integers # @param target an integer # @return a boolean def search(self, A, target):
45a39d564c5ccfcb158db6c41322736bf97d4f25
830b34e369fcfb94a8eaa855c918ab66ed2050b2
/gui/layouts/grid.py
4725707f04c497a09f57f383344ad657c886ec53
[]
no_license
treinaweb/treinaweb-kivy-framework-python
78e8ab1087a49e8463ebf4ecafca80fe41286cb7
2ddf0a881f28209a118ec893019c179bc39e75fc
refs/heads/master
2020-03-27T16:47:07.452396
2019-10-15T19:04:14
2019-10-15T19:04:14
146,805,958
3
0
null
null
null
null
UTF-8
Python
false
false
259
py
from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.widget import Widget class TelaApp(GridLayout): pass class Grid(App): def build(self): return TelaApp() Grid().run()
446864b08c4d7945ec228b68519031d1bbce51c0
5be79d6cbc8a55f0b6518b28fb748c34316b385d
/sentinel_api/__init__.py
01de33cdaec552e63d559aea414ed9ab6e1d9c99
[ "MIT" ]
permissive
jonas-eberle/esa_sentinel
1b9aa57a78972d93a20d03bbf0875c35f7bee4b2
c9498e8835ae0a585068cfd6be953319ea34ca29
refs/heads/master
2022-06-24T18:44:42.726012
2022-06-06T16:15:52
2022-06-06T16:15:52
47,712,138
51
16
MIT
2019-10-17T15:45:06
2015-12-09T18:57:35
Python
UTF-8
Python
false
false
238
py
from .sentinel_api import SentinelDownloader from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution(__name__).version except DistributionNotFound: # package is not installed pass
630fa7c67e54aef67a51ee9d03be97d872a64cc5
ec1f8cdbf52bcc5516a833e02ac99301a1664ed9
/setup.py
0e962f9c6b7ca5a5352113a317f655c549c3cf3b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
senarvi/theanolm
8fe85dcf07358a331807b9002a56b6089d5f0ff3
9904faec19ad5718470f21927229aad2656e5686
refs/heads/master
2023-06-24T10:39:21.985241
2023-06-12T06:55:26
2023-06-12T06:55:26
42,454,187
95
37
Apache-2.0
2020-11-05T11:22:31
2015-09-14T14:35:54
Python
UTF-8
Python
false
false
2,563
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This setup script can be used to run unit tests, manually install the package, and upload the package to PyPI. python3 setup.py --help - Display help. python3 setup.py test - Execute unit tests. python3 setup.py install - Install the package. python3...
aa4a3ec5872f3bd9c81e30dbe94c795cb732bc34
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/GstVideo/VideoAggregatorConvertPadPrivate.py
52c003b39ff29287c99298ff8a25c4d0fb82cb6b
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,481
py
# encoding: utf-8 # module gi.repository.GstVideo # from /usr/lib64/girepository-1.0/GstVideo-1.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes o...
13bda21c18d48ad3eb96b1e6efb52ec7823dc23b
81fbac614ad0f6795960a7a1f615c1a7d2938fa8
/setup.py
cc4ce16119bf94cc444d7050bfea2abeedc051df
[ "MIT" ]
permissive
Rue-Foundation/eth-bloom
f0c4a0fc4b41b16cb1ed103c693a44c22464d805
930b740267992fc7c2fbc7f38eed8c1ea3c79d40
refs/heads/master
2021-08-20T09:03:18.794271
2017-11-28T17:50:35
2017-11-28T17:50:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='eth-bloom', # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility. version='0.5.2', description="""Python implementation of the Ethereum Trie structure""", long_des...
017b467592469746e83158bfd8f35d935f1207e6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_385/ch44_2019_04_22_23_24_01_514593.py
3006efd7bceca5e33b58e34e164af9c84824b29a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
def soma_valores(soma): lista = [] i=0 soma=0 while i<len(lista): soma+= lista (i) i+=1 return soma
97b909e4b45e90041f2deb5ee471e5666c2c7ab2
b5f05426d811303c0bc2d37a7ebff67cc369f536
/python/crawl/study_crawl.py
fb7bde6519e53d66be9f5bca6de409ba80581f1b
[]
no_license
chenwangwww/paddlehub
54a310c2b627868aa22e6172497d60ddd2291d24
8583a705af6f82512ea5473f3d8961a798852913
refs/heads/master
2023-03-13T10:17:55.589558
2021-03-01T02:35:43
2021-03-01T02:35:43
293,667,091
1
0
null
null
null
null
UTF-8
Python
false
false
2,088
py
import requests from bs4 import BeautifulSoup from dbCtr import ctr from funcs import listToStr rooturl = 'http://www.cn56.net.cn/diming/' def insertFullData(tb, data): for item in data: result = { 'name': item.get_text(), 'link': item.get('href'), } ctr.insertData(...
2b88fd7b2e949c24551cc1cf034ead697fef65d5
f5a53f0f2770e4d7b3fdace83486452ddcc996e1
/netbox/netbox/tests/test_api.py
0ee2d78dc1d0d9df2df846ce9c7d29f4c43c5347
[ "Apache-2.0" ]
permissive
fireman0865/PingBox
35e8fc9966b51320d571b63967e352a134022128
0f00eaf88b88e9441fffd5173a1501e56c13db03
refs/heads/master
2023-01-20T07:55:59.433046
2020-03-15T13:36:31
2020-03-15T13:36:31
247,466,832
1
0
Apache-2.0
2022-12-26T21:30:32
2020-03-15T12:59:16
Python
UTF-8
Python
false
false
298
py
from django.urls import reverse from utilities.testing import APITestCase class AppTest(APITestCase): def test_root(self): url = reverse('api-root') response = self.client.get('{}?format=api'.format(url), **self.header) self.assertEqual(response.status_code, 200)
e40a4cc665597fd71aa392ec795fc50fe1fd605a
8e8e4becd0ccf35a4d2397eac05c46741941a3f2
/examples/e2e/cli/04ignore/commands.py
981edeb546ef06f9b1979175c86be2be29e5cb76
[]
no_license
podhmo/monogusa
13469c59e3a366f11e2d0b1d649991aceed40092
1129249cbfbf2d7925f69e484f1488799d2f637d
refs/heads/master
2020-09-30T18:28:27.215942
2020-02-29T15:17:05
2020-02-29T15:17:05
227,347,182
0
0
null
2020-02-29T15:17:06
2019-12-11T11:13:47
Python
UTF-8
Python
false
false
137
py
from monogusa import ignore def hello() -> None: pass def byebye() -> None: pass @ignore def ignore_me() -> None: pass
947eeef7fb19a7b211cedd5dbc26edf741e2fb26
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_rut.py
cfbcb5070a3a50c4c9cb663637014cb5d57b50f5
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
#calss header class _RUT(): def __init__(self,): self.name = "RUT" self.definitions = [u'a deep, narrow mark made in soft ground especially by a wheel', u'the period of the year during which particular male animals, especially deer and sheep, are sexually active: ', u'(of particular male animals) sexually excit...
0c4043442316a2cf94c4f5be142ff5d603430e8d
4b3ae6048ced0d7f88a585af29fa3a7b15005749
/Python/Django/dojo_ninjas/apps/books_authors/models.py
69cda65e65a601d28283fe6149c273df57bf038c
[]
no_license
ajag408/DojoAssignments
a6320856466ac21d38e8387bdcbbe2a02009e418
03baa0ff5261aee6ffedf724657b3a8c7cdffe47
refs/heads/master
2022-12-11T15:50:46.839881
2021-06-07T20:57:17
2021-06-07T20:57:17
79,872,914
0
0
null
2022-12-08T00:35:09
2017-01-24T02:58:15
Python
UTF-8
Python
false
false
915
py
from __future__ import unicode_literals from django.db import models # Create your models here. class Book(models.Model): name = models.CharField(max_length = 255) desc = models.TextField() created_at = models.DateTimeField(auto_now_add = True) updated_at = models.DateTimeField(auto_now = True) de...
73e8001de0324ba056ab3490a6008921eeda2852
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/efc5dac52cdfab25c3b163958830325f6898d3b6-<exec_command>-fix.py
c96b8e5b71acfcfaf0ad856b372cd9ccc0252b3f
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
def exec_command(self, cmd, in_data=None, sudoable=True): ' run a command on the local host ' super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable) display.debug('in local.exec_command()') executable = (C.DEFAULT_EXECUTABLE.split()[0] if C.DEFAULT_EXECUTABLE else None) displa...
3c0bf67436cd0e0e3ae2dbe2ecd91f8ab58dff95
047d6c1f1097e1a6055b4408e3bf80a9e01c7e5d
/avrae/misc/rspell.py
09a575c4bea6b09ebe476924d931863a592b0eec
[]
no_license
countpauper/countpauper
274246f50e297a9ec1cd8d7842149e0ef1da53bd
efb1eea44152e9a55aed1ee1478e29df447c24c3
refs/heads/master
2023-07-23T00:35:58.619290
2023-07-08T14:09:06
2023-07-08T14:09:06
20,813,292
4
1
null
2021-02-15T08:48:50
2014-06-13T18:11:51
C
UTF-8
Python
false
false
358
py
!alias rspell <drac2> spell_db=spell_list=load_json(get_gvar('13dc3e0a-a230-40ca-8fb3-a39846300b18')) args=argparse(&ARGS&) levels=args.get('l',type_=int) or range(10) spells=[n for n,p in spell_db.items() if p.level in levels] if not spells: return f'echo No spells {levels}' spell=spells[randint(len(spells))] ...
c205af018c3d6e98d0415f1a316565f2cdd8032e
d799ab92fff30ec3b4efc5aa079628971451c17a
/coilmq/tests/functional/test_basic.py
e4d4f999aa12ffc165ce4254075aa8d103028381
[]
no_license
LucaLanziani/coilmq
cf87a3daed400ccc64548873827f148097d7d780
dce6254801617b5612816dc8d95c3249a284e99a
refs/heads/master
2021-01-15T16:00:07.231608
2014-12-18T12:29:30
2014-12-18T12:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,156
py
# -*- coding: utf-8 -*- """ Functional tests that use the default memory-based storage backends and default scheduler implementations. """ import zlib from coilmq.auth.simple import SimpleAuthenticator from coilmq.tests.functional import BaseFunctionalTestCase __authors__ = ['"Hans Lellelid" <[email protected]>'] __copyr...
ec540c52386303d5ed7435b2de48a96f7ed7af0b
ff5eea95bb0827cb086c32f4ec1c174b28e5b82d
/gammapy/background/template.py
73305041b2c8006fd38496bb6d09cdbd15753079
[]
no_license
pflaumenmus/gammapy
4830cc5506a4052658f30077fa4e11d8c685ede0
7b5caf832c9950c886528ca107203ce9b83c7ebf
refs/heads/master
2021-01-15T23:27:46.521337
2013-09-25T14:23:35
2013-09-25T14:23:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Template background estimation Reference: http://adsabs.harvard.edu/abs/2003A%26A...410..389R """ from __future__ import division
cb9b245593a93be30c210ad1b70214a87685c0a0
fa32f7fe4068323b719725558423927ad307cc4b
/build_isolated/rostopic/catkin_generated/pkg.develspace.context.pc.py
531b3ad0a23091aaac1729f6620ee17b90c89e2e
[]
no_license
CJohnson5136/ros_catkin_ws
d07ee8c20bc1ebe6c05abdea24ef1f5dab14954b
05193a7e587ab82e696c66176b151c43d2bcef82
refs/heads/master
2021-05-09T03:05:12.373334
2018-01-28T03:13:33
2018-01-28T03:13:33
119,227,181
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rostopic" PROJECT_SPACE_DIR = "/home/...
0313e4040f7e129dd7f7dc51cb61c6c53b03576d
3dcc44bf8acd3c6484b57578d8c5595d8119648d
/casp9_scripts/truncate_rosetta_files.py
57c62df38219834ef0e52eba352a85cd322a04aa
[]
no_license
rhiju/rhiju_python
f0cab4dfd4dd75b72570db057a48e3d65e1d92c6
eeab0750fb50a3078a698d190615ad6684dc2411
refs/heads/master
2022-10-29T01:59:51.848906
2022-10-04T21:28:41
2022-10-04T21:28:41
8,864,938
0
3
null
null
null
null
UTF-8
Python
false
false
2,352
py
#!/usr/bin/python from os import popen,system from os.path import exists,dirname,basename,expanduser import sys import string from glob import glob indir = sys.argv[1] outdir = sys.argv[2] PYDIR = expanduser('~rhiju')+'/python/' assert( exists( PYDIR ) ) inputres = 0 if len(sys.argv)>4: startseq = int(sys.argv[...
fe461e7e82c4c955bb78b8eb572cb70236f500b7
9508879fcf1cff718f3fe80502baff8b82c04427
/misc/divide_and_conquer/max_subarray.py
cb0fa14f92663cf7a62457fc0285511c67efa967
[]
no_license
davidozhang/hackerrank
e37b4aace7d63c8be10b0d4d2bffb4d34d401d55
bdc40d6ff3e603949eb294bbc02a1e24a4ba5b80
refs/heads/master
2021-05-04T11:31:59.110118
2017-11-15T09:17:27
2017-11-15T09:17:27
47,906,672
1
0
null
null
null
null
UTF-8
Python
false
false
846
py
#!/usr/bin/python def max_subarray(l, left, right): if left == right: return l[left] else: middle = (left+right)/2 l1 = max_subarray(l, left, middle) l2 = max_subarray(l, middle+1, right) return max(l1, l2, max_crossing(l, left, middle, right)) def max_crossing(l, left, middle, right): left_sum, right_s...
b1265bbbf4df82bff42bdc625d6cc5ff1f518356
e5838acd890b711d53fa7b37e0405c236dd52bb2
/trails/feeds/emergingthreatscip.py
63efdf9f7f92e5e3dc6e6c4843a8a14c2c631072
[ "MIT" ]
permissive
stamparm/maltrail
34c40fe593f82c5f78d511c21a1cbe049aa04856
21422d7acbdfd1157c0b2188b5050f74d0adecbb
refs/heads/master
2023-08-31T20:08:48.881765
2023-08-31T19:39:55
2023-08-31T19:39:55
27,561,102
5,663
1,193
MIT
2023-08-14T03:13:03
2014-12-04T21:33:46
Python
UTF-8
Python
false
false
655
py
#!/usr/bin/env python """ Copyright (c) 2014-2023 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ from core.common import retrieve_content __url__ = "https://rules.emergingthreats.net/open/suricata/rules/compromised-ips.txt" __info__ = "compromised (suspi...
7f953edebb9ebf147f2adabc9dbc217311cbcf9e
c3b766858bacfec396b839fd881f719db5ef5fc5
/setup.py
ef9419515da41c4cfa21ea315f99c875c440ad3e
[ "MIT" ]
permissive
ferchaure/spikesorters
2e20dcdeac67c4e5b442628fadc851c38fc090d5
8577572c63c531a239452cdb48f631ec1f490121
refs/heads/master
2021-06-16T07:49:31.758572
2021-04-24T15:22:11
2021-04-24T15:22:11
254,942,645
0
0
MIT
2020-04-11T19:44:04
2020-04-11T19:44:03
null
UTF-8
Python
false
false
990
py
from setuptools import setup, find_packages d = {} exec(open("spikesorters/version.py").read(), None, d) version = d['version'] long_description = open("README.md").read() pkg_name = "spikesorters" setup( name=pkg_name, version=version, author="Alessio Buccino, Cole Hurwitz, Samuel Garcia, Jeremy Magland...
b44795123712f010089fc09f81ce2ff9435eb6cb
c849188f25de5cb87d9278aa7cfd0772c698c870
/account_report/hooks.py
4916696af10ec7bf8ad6c2c28c86dfe43bf6f541
[ "MIT" ]
permissive
dineshpanchal93/helpremove
19c36131dc2d057ddfaf316c5f964cd211878e1b
37e03e922645d52a7bc5d293fa936b0b82017715
refs/heads/master
2020-03-27T10:35:04.729818
2019-02-09T07:24:45
2019-02-09T07:24:45
146,430,359
0
0
null
null
null
null
UTF-8
Python
false
false
3,109
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "account_report" app_title = "Account Report" app_publisher = "Scantech Laser" app_description = "Account Report" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "it@scantechla...
ef64daf27156245233a072e330507895eb46631f
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-storage/azure/mgmt/storage/v2018_02_01/models/immutability_policy_py3.py
443d619aebb4752e5b7a550f3121f3b8f72c4077
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,824
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
6d1ebf844e5baa83b39344681b4d72082c9febf4
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Latn.CJK/Sans_8/pdf_to_json_test_Latn.CJK_Sans_8.py
b43ef12d4a3dacb970cc1f264903b07fa9b8562d
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
301
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.CJK/Sans_8/udhr_Latn.CJK_Sans_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
392606df599ab62daa2196de81f893ba6d951e9a
3d705ec48c94373817e5f61d3f839988910431e3
/lib/framework/executor_factory.py
eb8e1df9bd2b302e3f38b0f6e9fbf3d701c5b010
[]
no_license
namesuqi/zeus
937d3a6849523ae931162cd02c5a09b7e37ebdd8
3445b59b29854b70f25da2950016f135aa2a5204
refs/heads/master
2022-07-24T14:42:28.600288
2018-03-29T08:03:09
2018-03-29T08:03:09
127,256,973
0
0
null
2022-07-07T22:57:57
2018-03-29T07:53:16
Python
UTF-8
Python
false
false
1,231
py
# coding=utf-8 """ The factory of Test Executor __author__ = 'zengyuetian' """ from lib.framework.executor_server import * from lib.framework.executor_sdk import * from lib.framework.executor_system import * from lib.framework.executor_idc import * from lib.framework.executor_leifeng import * from lib.framework.exec...
3c2efb6cba7827d71aa97b9a1dc2926375aafbe1
d6e8601fa673876cb079b4eeaae6b40427371772
/neurolib/encoder/normal.py
7c183e035822c7ceeba4a1b916ce275b9bc21196
[]
no_license
cunningham-lab/_neurolib_deprecated
8e70703d32701983a8fed9df489360acba856831
bf44a6b4c40347caeacd4fd38dd9d1c1680c9a65
refs/heads/master
2020-03-30T19:08:58.065181
2018-10-26T19:49:12
2018-10-26T19:49:12
151,530,405
1
0
null
null
null
null
UTF-8
Python
false
false
6,911
py
# Copyright 2018 Daniel Hernandez Diaz, Columbia University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
f03ff950e29f53407416b268cd4acfd7d155443a
bbf7787d94e97d4e0c9bceb46203c08939e6e67d
/django-python/static-folder/login/views.py
0e51c75484eddd9ea3a346b0875ef9d67ba47164
[]
no_license
llanoxdewa/python
076e6fa3ed2128c21cdd26c1be6bc82ee6917f9c
6586170c5f48827a5e1bcb35656870b5e4eed732
refs/heads/main
2023-06-16T05:31:52.494796
2021-07-09T09:04:30
2021-07-09T09:04:30
362,782,196
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
from django.shortcuts import render def loginPage(req): data = { 'title':'login-page', 'header':'selamat datang di login page', 'fileG':"login/img/pemandangan-laut-es.png", 'fileCss':"login/css/style.css" } return render(req,'login/index.html',data)
9c7f7b6ddabf4942b20c4d5a3a928eb8dcdb991a
1424812c4f211d3d5e356e8b3889a689162062f3
/arcade/python/07_simple_sort.py
0effd8a406a26d4473e379c6084693df95b8d82e
[]
no_license
nazomeku/codefights
cb7d3c40be0809695ec524a87c88dbebcf5b47bc
b23f6816f9b5b0720feac1c49c31163923e0a554
refs/heads/master
2021-01-22T12:49:35.905165
2017-11-21T19:03:37
2017-11-21T19:03:37
102,357,617
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
"""Write a function that, given an array ofintegers arr, sorts its elements in ascending order.""" def simple_sort(arr): n = len(arr) for i in range(n): j = 0 stop = n - i while j < stop - 1: if arr[j] > arr[j + 1]: temp = arr[j] arr[j] = arr...
9861697b7c1a4508bd7837414f8d091fc945c6be
57b4ee27801c23cdd6a6d974dbc278f49740f770
/re100-l.py
55bc9b3a71d50c10ac3093535afa7ffe0b7a4c4b
[]
no_license
zwhubuntu/CTF-chal-code
4de9fc0fe9ee85eab3906b36b8798ec959db628c
8c912e165f9cc294b3b85fab3d776cd63acc203e
refs/heads/master
2021-01-20T18:39:26.961563
2017-09-25T14:07:56
2017-09-25T14:07:56
62,563,092
7
2
null
null
null
null
UTF-8
Python
false
false
454
py
''' @author: wenhuizone ''' a=[23,5,1,2,4,6,734,3,12,98] tmp='' output='' ''' for ( i = 1; i != 10; ++i ) { v5 = *(&v6 + i); for ( j = i - 1; j >= 0 && *(&v6 + j) < v5; --j ) *(&v6 + j + 1) = *(&v6 + j); *(&v6 + j + 1) = v5; } ''' for i in range(1,len(a)): tmp=a[i] for j in range(0,i-1...
4ead3a4d6b2dd62eb5e2c44cd2fdb8c23e30b661
b424c3262c9eacf8dd4230019eba7e05a9b95461
/.history/ndn_server_20200530135406.py
840339130aa5f97be97960d50d1841aebddd005c
[]
no_license
leonerii/aer_tp
30e47f29bcda69512718a6279a7cad32e9a01b14
d8f46b188b5be9f315dd155ed147880ce7dce169
refs/heads/master
2022-09-30T03:27:24.375971
2020-06-04T14:23:16
2020-06-04T14:23:16
245,219,806
2
1
null
null
null
null
UTF-8
Python
false
false
1,849
py
from threading import Thread from ndn_receive_handler import Receive_Handler from ndn_hello_sender import NDN_HelloSender import socket class NDN_Server(Thread): def __init__(self, localhost, port=9999, data_ids={}): Thread.__init__(self) self.localhost = localhost self.port = port ...
a048bde9c8c91cb49b73978b44bfbf744c108af1
a2af438d5180922fb55b0805f9702d4b93103202
/setup.py
0001d547f35d284ce13cca0cfcc1883359573c59
[ "WTFPL" ]
permissive
JJediny/django-leaflet-storage
cff60100a8d721d202bb913051dc2b1abd89a53c
eb4dd4632f09241255bc13e30970ec55fafed816
refs/heads/master
2021-01-18T10:57:16.198138
2015-05-08T04:22:06
2015-05-08T04:22:06
32,661,595
0
2
null
2015-03-22T04:21:35
2015-03-22T04:21:35
null
UTF-8
Python
false
false
1,342
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs from setuptools import setup, find_packages import leaflet_storage long_description = codecs.open('README.rst', "r", "utf-8").read() with open('requirements.pip') as reqs: install_requires = [ line for line in reqs.read().split('\n') if (line ...
14bdf727a834b4e51ab11f617e8bd79033ee437b
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/medium/6_3.py
c29fdaedebb04ad1825458082585935d28145298
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
3,845
py
Integrating TinyMCE with Django TinyMCE is a online rich text editor which is fully flexible and provides customisation. mostly used to get dynamic data such as articles in GFG and much more, their is no static database for posts **Installation –** To integrate it with Django web app or website you need...
c98d726a4abb22a8daeee2ba7c22d6dde58d525e
7858da232b9dbfb9c32d6900de51e14e5d48e241
/lesson_7_3_2.py
1c43af55a0b611e9985a9c1383853dc4ac62717a
[]
no_license
Mameluke8888/QA_Automation_Lesson_7_3
4069e202ca3f5a0de1f1a0734654f7fd19e12ed5
9d2b5735da2fe4850c15236e675cc48b24d16a1d
refs/heads/main
2023-04-27T19:32:48.868635
2021-05-06T09:06:10
2021-05-06T09:06:10
364,848,904
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
# Exercise #2 # Find the mistake in the following code snippet and correct it: # corrected snippet def compute_patterns(inputs=None, pattern="new pattern"): if inputs is None: inputs = [] inputs.append(pattern) patterns = ["a list based on "] + inputs return patterns # just some tests - you ...
6bf7f969c43b526df2273d8c69f24b6846b19657
96b6f183cda10aac03f9fb4ffa11cba6445c35aa
/algoriz/settings.py
57f2ac9bf3f2798173af3decde8ebb0931baa17b
[]
no_license
akshar-raaj/algoriz
3a6ea60b15dc35e848a5534cdd7f6b047fd9a7d3
21e0797a7d19248043c5810fed89ba7c50e551f9
refs/heads/master
2020-04-03T03:38:53.705683
2018-10-27T19:51:31
2018-10-27T19:51:31
154,991,553
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
""" Django settings for algoriz project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
6188b38f2b472324d725074b31351f8de45d833f
94b4177306b898b86601cae5ff1e580eb95e502f
/mysite/settings.py
54d6592cf1cb0a445fbc3a37c96516f7e8d54fef
[]
no_license
inho2736/my-first-blog
c797b0d4b613fa17ac3b23962d39835df514926b
591750ee222425fc96910040b6b84f4bc4236a7e
refs/heads/master
2020-03-22T07:39:31.308553
2018-07-04T11:53:32
2018-07-04T11:53:32
139,715,658
0
0
null
null
null
null
UTF-8
Python
false
false
3,194
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.14. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
2d89ffe2040450be51655549fc2da71608ecba62
b6c931fea41658914844ceae8906a2cb03294614
/math/0x06-multivariate_prob/0-mean_cov.py
8ae4bbede7e0867b9a69d2b891f075cfb6ace21b
[]
no_license
sidneyriffic/holbertonschool-machine_learning
05ccbe13e1b4b9cb773e0c531a1981a7970daa1b
56356c56297d8391bad8a1607eb226489766bc63
refs/heads/master
2021-07-04T07:45:22.919076
2020-12-19T01:09:01
2020-12-19T01:09:01
207,622,396
1
1
null
null
null
null
UTF-8
Python
false
false
770
py
#!/usr/bin/env python3 """Return means and covariance matrix of a multivariate data set""" import numpy as np def mean_cov(X): """Return means and covariance matrix of a multivariate data set""" if type(X) != np.ndarray or len(X.shape) != 2: raise TypeError("X must be a 2D numpy.ndarray") ...