blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
6ec9e572ddf0b853a8f4149250dcdde267da18d8
74c04908d79a09bd1c179e7fc815ac739b85c21b
/orders/migrations/0005_auto_20200827_1338.py
df54f52bad8145fc2f14d92236d92f5dd997b2fc
[]
no_license
sthabinod/E-commerce-Mero-order_-
afb011a30a2a1556ca8f065ca2602935733eb086
422356997f9afd6e864f5c57d1e5b35571f2e9e2
refs/heads/master
2023-02-22T15:46:56.329840
2021-01-27T09:44:13
2021-01-27T09:44:13
333,372,424
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
0005_auto_20200827_1338.py
# Generated by Django 3.0.6 on 2020-08-27 07:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0004_contact_description'), ] operations = [ migrations.AddField( model_name='contact', name='name', ...
baf5030b59869a7e971dabe2f7b84bc092cbf6cb
cf7ff95db4a0f7f9f9e1a7a51d33f74595179ae8
/palindrome-index.py
1b89f3d00909264485eea624f78fa4666fe1e435
[ "MIT" ]
permissive
cassiopagnoncelli/hacker-rank-solutions
0d4b3e792ab079c283a07d95ae358ea541bb11cf
9055acf2e710b1a9caefe542b2b5e39b050e59fb
refs/heads/master
2021-01-10T13:31:16.715973
2015-10-15T09:19:50
2015-10-15T09:19:50
44,305,788
3
12
null
null
null
null
UTF-8
Python
false
false
316
py
palindrome-index.py
def palindrome_index(s): if len(s) <= 1: return -1 mid = len(s) // 2 last = len(s) - 1 for i in range(mid): if s[i] != s[last - i]: r = s[:i:] + s[i+1::] if r == r[::-1]: return i else: return last - i return -1 n = int(raw_input()) for i in range(n): print palindrome_index(raw_input())
5fd990960ec4cb8ebdccaf7b5f400686a51bb1e6
5397355579e1f55f26a9cbe8b2e19b0619e84035
/parallelHillClimber.py
ecb9f39ef249a398061018dc9379644472df758b
[]
no_license
andygom/pyrosim_ga
da6953b1dadd983c0317d07e6303fa083910e0c5
2481e703a5d24772cbb3942fbc8b8a4a26b6e73f
refs/heads/master
2023-04-01T09:28:55.340231
2020-06-28T08:14:19
2020-06-28T08:14:19
272,346,237
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
parallelHillClimber.py
from robot import ROBOT from individual import INDIVIDUAL from population import POPULATION import pyrosim import random import copy import pickle pop = POPULATION(5) pop.Evaluate() pop.Print() # parent = INDIVIDUAL() # parent.Evaluate(True) # print(parent.fitness) # for i in range (0, 500): # child = copy.deepc...
3003cdbf072e9e9ddc547d80b2c10072469ba9e4
6dfeb6981a8cff42ae3adc11cff7ffe48462f30e
/leet_code/374. Guess_Number_Higher_or_Lower.py
483d1af782143ab94d86f7cfa9439e7e76cfea9a
[]
no_license
hqsds/Python
177ba56d4610e56784eab7069adb1f76fd72341c
ce2b0f50d3dd0b31de0e374747e11898abaf72f5
refs/heads/master
2021-06-13T15:36:53.351997
2017-03-20T20:42:15
2017-03-20T20:42:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
374. Guess_Number_Higher_or_Lower.py
# Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. # # Example: # Given a = 1 and b = 2, return 3. # key: use dict to store the element and number of nums1, and find intersection in nums2. class Solution(object): def guessNumber(self, n): lo, hi = 1, n ...
e4aacb5030eda04938dd2bbfc7d3586e1a06f175
00f9b1b67b8a6421ade7068cb46264766ab33a39
/sudoku/board.py
0b5633a4571261fd64cf96badf475bfa8241e066
[]
no_license
corylstewart/new_sudoku
1de3fc50ea1c82f257f18808a1fc671bba34edd1
c9fa4384466709f982de7e44bf63fb1fe8085a7f
refs/heads/master
2021-01-10T19:23:29.985311
2014-07-14T02:07:56
2014-07-14T02:07:56
20,977,245
1
0
null
null
null
null
UTF-8
Python
false
false
8,455
py
board.py
import copy import time class BlankBoard(): def __init__(self): self.board = self._make_empty_board() self._cells = [str(x) for x in xrange(9)] self.rows = [[row+col for col in self._cells] for row in self._cells] self.cols = [[col+row for col in self._cells] for row in self...
20d85ae7d0a149ad076548cbf44027e13e8abb31
0dda7915c63023e8de6ffe78a79303d3022b69af
/payday/lib/python3.6/abc.py
89b3991bf2d8b19c675af71781b481861c7f4d91
[]
no_license
CavalcanteLucas/payday
c7cd3871cf59a551140388fb51660289a8f864bf
e59ee1bae421274b792ecb5f00e972f809ccb9ed
refs/heads/master
2022-12-14T05:10:42.448467
2019-08-06T21:08:04
2019-08-06T21:08:04
142,889,109
0
0
null
2022-06-21T22:20:24
2018-07-30T14:45:08
Python
UTF-8
Python
false
false
43
py
abc.py
/home/lucas/miniconda3/lib/python3.6/abc.py
c85f008445aabc9d3972c88328f3071f979d514b
e4f74106c18814b100e00060f72c3d2230d5314e
/pinyin.py
d7984a52ad84381a6b0a0704d69a6d55b1e147f7
[]
no_license
zhangyafengit/AI_zhiban
6a312e5d0c74ad3c1066451a550a07ff96c2c3ce
6cb96c95a180eebc6cd57d435a90936fddbde1ee
refs/heads/master
2020-04-04T05:03:04.435361
2018-11-01T15:14:48
2018-11-01T15:14:48
155,734,028
1
0
null
null
null
null
UTF-8
Python
false
false
154
py
pinyin.py
from pypinyin import lazy_pinyin, TONE2 def to_pinyin(text): pinyin_list = lazy_pinyin(text,style=TONE2) py = "".join(pinyin_list) return py
fdce85fe45fea647fd5b88777f62b0cfc0ee1618
1cd052d1bc3400bab9902a1e3fdf64acf6336a1c
/kafka-consumer-learnkafka.py
c908240a90ed49e30b303e7a5581d16f9ce8718a
[]
no_license
markschaafsma/TechTest_AWS_Kafka
d1f1e1910740632c88c8994164f4bf32817a8eb9
3f2d6a140f97aec15e1abcbe420dd05dae5d7086
refs/heads/master
2020-06-27T16:28:13.226703
2019-08-14T02:22:58
2019-08-14T02:22:58
199,997,423
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
kafka-consumer-learnkafka.py
import json import logging from kafka import KafkaConsumer,KafkaProducer logging.basicConfig(level=logging.INFO) consumer = KafkaConsumer(bootstrap_servers="3.82.26.109:9092,18.207.229.227:9092",auto_offset_reset='earliest',enable_auto_commit=True,value_deserializer=lambda m: json.loads(m.decode('utf-8'))) #consumer...
9c599120fffd7a5cb0ab5039617149881b94bd46
bcf1dbfceda1a7805bb8e880beca6cdbe779c27b
/check.py
33f05fccd7d9bb405d3dfcb7f2a02b76c5f5d3b1
[]
no_license
miaalexkatz/CS550
eedb37a2fb32f64964ab666141a6af33d2534254
7af03e714ec2f45729e86e21382a9eb3e613430a
refs/heads/master
2021-10-19T17:41:11.196337
2019-02-22T14:27:43
2019-02-22T14:27:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
check.py
from PIL import Image imgx = 512 imgy = 512 image = Image.new("RGB", (imgx, imgy)) for x in range(imgx): for y in range(imgy): image.putpixel((x,y),(0,0,0)) for x in range(0, imgy, 128): for y in range(0, imgx, 128): for z in range(64): for a in range(64): image.putpixel((z+x,a+y), (255,0,0)) for x in...
d27991bd2e9744bf2964fe19bb4e13faf234659d
907bba629704e76bfff5d128735858c5d6c36ab4
/oase-root/web_app/views/user/personal_config.py
811696afa2b9e7c5adfecae543d24d18202d6f95
[ "Apache-2.0", "BSD-3-Clause", "LGPL-3.0-only", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
exastro-suite/oase
ac76fef0e82e2f180327ed35df0e247c8b35ff87
c00ea4fe1bf4b4a18d545aabeaaf1d95c7664b94
refs/heads/Exastro-OASE-v1.7.0
2022-06-26T08:25:46.871242
2022-06-10T06:13:02
2022-06-10T06:13:02
247,864,527
10
28
Apache-2.0
2022-06-10T06:11:16
2020-03-17T02:49:10
Python
UTF-8
Python
false
false
15,715
py
personal_config.py
# Copyright 2019 NEC Corporation # # 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 or agreed to in wri...
5d019434d83074bbb339ec4245dedd76852ee4d7
b2a7499c75f0cae7af03d2cfdbbd28b0f7ef6ed4
/Lab3/htmllib.py
8d5500d40da52c41937b4f8417d3f4b69e6bcf13
[]
no_license
pdugan20/smc-cis-680mc
e6c5b8718431bea8bbff76dec81bbf65f27212d8
7e345144d685ce23436d0dcdad9c7847ab056c43
refs/heads/master
2021-01-23T13:56:55.131798
2013-11-22T08:06:07
2013-11-22T08:06:07
14,612,126
1
0
null
null
null
null
UTF-8
Python
false
false
2,028
py
htmllib.py
#!/usr/local/bin/python3 # Douglas Putnam # htmllib.py # July, 2011 import cgi def html5_template(title="CHANGE THE TITLE",body='<!-- content goes here -->'): """A function that provides a simple HTML5 template""" f = open('html5_template.html') print(f.read() % (title,body)) def html_source_code(filename...
05250288d534bf7dd82b7478cddbf836e36b767f
a8e15ae975103ede6055b29c779f1f9fbe6af42e
/wagl/tiling.py
fba4db643454c3ff2ddb96f1c2f3796042ad474e
[ "Apache-2.0" ]
permissive
GeoscienceAustralia/wagl
8f345811db9470d9bfbb706f34aa59d56e8b9036
4ae3670681b872530f59c57ab537a45d1b09c009
refs/heads/develop
2023-08-18T08:26:01.041150
2023-08-10T01:09:28
2023-08-10T12:14:43
11,015,951
25
8
Apache-2.0
2023-08-10T12:14:45
2013-06-28T04:44:42
Python
UTF-8
Python
false
false
10,754
py
tiling.py
# =============================================================================== # Copyright 2015 Geoscience Australia # # 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.apac...
b861a47a2fbd966c2c9729809f00c566f00a2290
c882b8a20537ad9850a57c51226c5c4462bfd85c
/podder_task_foundation/__init__.py
acc2dfbd14160e21986e2eccae5e35119cf85f35
[]
no_license
tthufo/podder-task-foundation
086b76208460d5eaae3b8a51717acdb0ef5b585a
d0897da906a689486704cc9b973d44ec0ad348c7
refs/heads/main
2023-03-23T02:51:35.684229
2021-02-15T09:07:27
2021-02-15T09:07:27
343,996,723
0
0
null
2021-03-03T04:04:13
2021-03-03T04:04:12
null
UTF-8
Python
false
false
261
py
__init__.py
from .cli import CLI from .context import Context from .mode import MODE from .payload import Payload from .process import Process from .singleton import Singleton __all__ = ['Context', 'MODE', 'Process', 'Payload', 'Singleton', "CLI"] __version__ = '0.1.16'
525380ea0096af7368b1f4c8d1a9391bba63013b
f0afb48aef1f949d252f77662812c5252b6e3577
/dbProject/frontend/urls.py
c6a66ab8518802f337d8877eafb920818b50c4b6
[]
no_license
joshkeating/healthcare-appointments
6ab7478291c21a033f9f616396ed2ef26140f0c2
9a90fe76b5e8b5fd5b714939f9d1efc284fc6de9
refs/heads/master
2022-11-07T05:07:38.687965
2019-06-06T23:02:55
2019-06-06T23:02:55
184,952,407
0
0
null
2022-11-04T19:34:14
2019-05-04T23:02:27
Jupyter Notebook
UTF-8
Python
false
false
1,541
py
urls.py
from django.urls import path, re_path from .views import render_registration, render_homepage, render_contact, \ render_login, render_provider_registration, render_patient_prescription, \ render_provider_prescription, delete_prescription, render_add_prescription, \ render_patient_appointments, render_provi...
067f190d76f3c45fbed8827fa47d2700ff4bec8f
adcde6bf39668f9809d32ab4db77bd9369157c46
/tensorpac/utils.py
86732fbee24a93ca2f560d0055fab55773db908f
[ "BSD-3-Clause" ]
permissive
raphaelvallat/tensorpac
304ccef80fced8c8721a4e3151c2715b27e0bd80
319c4e60083f672b8943147308f6e5628b58b7d9
refs/heads/master
2021-03-22T16:49:00.707098
2020-03-25T08:36:20
2020-03-25T08:36:20
247,383,992
2
0
BSD-3-Clause
2020-03-15T01:52:43
2020-03-15T01:52:43
null
UTF-8
Python
false
false
14,830
py
utils.py
"""Utility functions.""" import logging import numpy as np from scipy.signal import periodogram from tensorpac.methods.meth_pac import _kl_hr from tensorpac.pac import _PacObj logger = logging.getLogger('tensorpac') def pac_vec(f_pha=(2, 30, 2, 1), f_amp=(60, 200, 10, 5)): """Generate cross-frequency coupling ...
eb2f933258c95320532a1f75096b84f40b37411b
3120e1013fbad0bc57f55176e213efd8e57a11e9
/lib/mint.py
d7feef36758f1bc2e23916d06bbb8360fbb5e504
[]
no_license
cyberwitch/mint_bitcoin_sync
53486d1779442cbf0d7be3181cd86ac8636193e2
b5bab46cfc13a17cb8392924ff820412cb9f6f3c
refs/heads/master
2021-08-28T02:30:54.252248
2017-12-11T03:37:40
2017-12-11T03:37:40
113,803,592
2
1
null
null
null
null
UTF-8
Python
false
false
2,307
py
mint.py
import json import time import mintapi from lxml import html MINT_OVERVIEW_URL = 'https://mint.intuit.com/overview.event' PROPERTY_ACCOUNT_URL_FORMAT = \ 'https://mint.intuit.com/mas/v1/providers/PFM:{}_{}/accounts/PFM:OtherPropertyAccount:{}_{}' class Mint(mintapi.Mint): browser_auth_api_key = None min...
58e022550fe1cfa2745adf4b737e7ffd28a48d27
5925f4593989f3a188bed8315e9fe7d2412e55e4
/venv/lib/python3.7/__future__.py
9677cde484154cb18ed73a382c584a2f1512376a
[]
no_license
Anillohar/ScrappingAmazonUsingScrapy
7c9e22887523513b645eca6cc7999c6ee9be4020
177b17eabaa3171146d41c3112bb3957c22bbbf8
refs/heads/master
2020-05-24T12:13:43.712001
2019-05-17T18:17:19
2019-05-17T18:17:19
187,261,105
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
__future__.py
/home/anil/anaconda3/lib/python3.7/__future__.py
89766b5c1c28ef2b5d178e90bc47c96cf621028f
f672fef52abf73de152b536affc155819bc42601
/example/views.py
6b16066e7f0a09d640d38e6c7b1967faa627a9a0
[]
no_license
NeuronAddict/multipass
34841473586ce076b8b336e489af99b31d4d2eda
35812888a72f7d0fdefd825caab7ac112171dad9
refs/heads/master
2021-09-22T22:01:07.639646
2020-02-29T14:25:15
2020-02-29T14:25:15
240,368,921
3
0
null
2021-09-22T18:38:11
2020-02-13T21:40:59
Python
UTF-8
Python
false
false
351
py
views.py
import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt @csrf_exempt def login(request): cred_json = json.loads(request.body) if cred_json['username'] == 'ansible' and cred_json['password'] == 'yankees': return HttpResponse(status=301) else: r...
4a024048523d04e15a98fefa5d7bec9b10a0c2e5
01148a3fa87887c0f49843852633d3f4fd90ad7b
/hand_detection.py
cc73c386aac91ef43c3b352d3ddc157ada501f02
[]
no_license
Xinyang-S/HCARD_2021
c1795c932828f8a9ec198a150df141c24c300d11
58e6bbb1a9a34aefc2892bb0249b40305d1cb924
refs/heads/main
2023-05-08T09:33:10.898189
2021-05-28T08:15:45
2021-05-28T08:15:45
371,517,735
0
1
null
null
null
null
UTF-8
Python
false
false
2,227
py
hand_detection.py
# From Python # It requires OpenCV installed for Python import sys import cv2 import os import argparse try: # Import Openpose (Windows/Ubuntu/OSX) dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(dir_path + '/../../python/openpose/Release'); os.environ['PATH'] = os.en...
87bf68c7026a22698a632774ca20a2dda11c47c7
0e8dad39576aa5cd118363ba13e024b47d33f182
/dazu/__init__.py
fd74bf39a5e1ad97ece33e53cb6881462ce005d4
[ "Apache-2.0" ]
permissive
Dazu-io/dazu
3286e42887d4cc68af5b8f20508be2accb7c8031
064a7fd91961bdf372868e7b0a106102e9fc058b
refs/heads/develop
2023-03-27T02:56:03.102096
2020-02-25T02:50:30
2020-02-25T02:50:30
152,997,730
3
0
Apache-2.0
2021-03-25T23:26:58
2018-10-14T17:01:48
Python
UTF-8
Python
false
false
185
py
__init__.py
import dazu.components.dialogue import dazu.components.nlu from dazu import version # define the version before the other imports since these need it __version__ = version.__version__
6f912c7806d70e15bede471c4c7017974151a247
e745d6f1be292cf0d687a5d02f860c789aae84da
/testParsing.py
53975eb3edf44ce3c5277a984779fca8c91444ed
[]
no_license
Antoine-ADAM/test-unitaire-ocaml
4aa39a8de5606a3ac78f08d63010a2a29a0a29bc
de2034ca5ae5f8cd58679ab0632b9736098522d4
refs/heads/master
2023-01-28T03:17:39.432816
2020-12-05T13:17:37
2020-12-05T13:17:37
316,828,681
1
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
testParsing.py
def parseDuneTest(string): stack = 0 lastPoint=0 tests=[] string=string[1:-1] for i, c in enumerate(string): if c == '[': stack+=1 elif c == ']' and stack>0: stack-=1 elif c==';' and stack == 0: tests.append(string[lastPoint:i]) ...
c7d826bad1562c663f4bc08480c752caaba9b867
1f3ab248b068955600bda76ae9a4869a99a5054e
/residual-network/train.py
8bb567730f5b3089f4154f9e1893c38cea717dba
[ "MIT" ]
permissive
meliketoy/Tensorflow-2.0-tutorial
e876ec467dd5e8e10e23087e9188c1dd756c3109
9a7311858044e9636fd84e1c5758cad2585b29e3
refs/heads/master
2020-09-23T03:09:54.386327
2019-12-24T06:05:46
2019-12-24T06:05:46
225,387,600
2
0
null
null
null
null
UTF-8
Python
false
false
870
py
train.py
import tensorflow as tf import sys import os import yaml from loaders.load_data import load_data from loaders.augmentation import augment_data from models.load_model import load_model def main(): cfg = yaml.load(open('./configs/cifar10.yaml'), Loader=yaml.FullLoader) train_data, test_data = load_data(cfg) ...
6f27709b8f5210ea36d43d8185e9e794d51a9ec2
8c7d2a4a022c460d7f0d8a988427603a7deb7f5d
/flaskdebut/run.py
a49eb6bef96348d396190ed3e75b8638eb5b093d
[]
no_license
JiangDazhao/Medical-Image-Analysis
94fc7d57e76f48df5d0c5f519e37fee3d5e41691
5c4373dd07e0be1e958f4f0d6026b9f366bf14ad
refs/heads/master
2023-08-19T00:49:26.733107
2021-09-24T08:53:07
2021-09-24T08:53:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
run.py
from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['POST']) def index(): username = request.form['username'] password = request.form['password'] if username == "jxz" and password == "jxz": return f"<html><body>Welcome {username}</body></html>" else: return...
4693c8d459378c680d99d26b2733b98ebe01054e
b767610b90ea14d1db69639955907406e1e06f10
/Zipf Distribution.py
40773e9d6b9b5bd2e3b2949027a3d4adbcd29b74
[]
no_license
saijayadeep1998/Numpy-Zipf-Distribution
803d42b8db7b05a1b8859c822105ed99b8dd9949
a19c5832f023aa097c1753fbb7cf7e4e2ad2ba31
refs/heads/main
2023-06-22T01:14:30.766438
2021-07-21T16:37:55
2021-07-21T16:37:55
388,182,015
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
Zipf Distribution.py
from numpy import random x = random.zipf(a=2, size=(2, 3)) print(x)
cbd97d4d80f7e3e26ec363b7b8b0eb31af07c871
57de9a859ace880a30290a140e0f35f18ed3238a
/PIAFusion/train_network.py
a9fa4d66729fe644444e56530d56013070409603
[ "MIT" ]
permissive
Linfeng-Tang/VIF-Benchmark
cf7609f836d8f6b6666e9c795c79367eb2e8c5ce
ae368ea39b4049afb4b54cb3447d26107c3a8ab1
refs/heads/main
2023-05-22T23:42:45.953544
2023-02-28T12:40:57
2023-02-28T12:40:57
607,610,052
29
3
null
null
null
null
UTF-8
Python
false
false
4,161
py
train_network.py
import tensorflow as tf from utils import weights_spectral_norm from ops import * from utils import * class Illumination_classifier(): def illumination_classifier(self, input_image, reuse=False): # features = [batch_size, 256, 256, 128] channel = 16 with tf.compat.v1.variable_scope('Classif...
c67a5dc6ef90d00644e79826d39029b8c84316f2
0b13fde2cf0d6bda4eda1cb0c198c6a4417ccd80
/posts/models.py
b643c9e333c10af03f4f022e9e50aabf17775d71
[]
no_license
Sweetkubuni/djangoapp1
e7f9ba9198be9159359e4f85cfb8cfb59acad2a5
d9b3bc11b81df9ba3657e9b79b68c61cfacd9d25
refs/heads/master
2020-03-25T01:44:18.995678
2018-08-02T06:52:49
2018-08-02T06:52:49
143,254,012
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible # Create your models here. class Post(models.Model): post_title = models.CharField(max_length=50) post_text = models.CharField(max_length=400) post_dat...
9492c7cae4bc060b4adf641092611b189cd83f48
23085e4023747d74e8e3fcb40950d24481fba191
/Math.py
ac3ef4e0f2832da303c1de2a9508acca429909b1
[]
no_license
anevstif/LR
0dede391022fde2d94e954fdab92d863f7283f6b
37968086c0974e2b436fefcb6213e15f6d2b207d
refs/heads/master
2023-09-06T02:51:18.978333
2021-11-20T19:52:38
2021-11-20T19:52:38
430,096,863
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
Math.py
import math class Math(object): def __init__(self, data): self.mean = self.mean(data) self.std = self.std(data, self.mean) def mean(self, data): res = 0 for e in data: res = res + e return res / len(data) def std(self, data, mean): ret = 0 ...
6c8583a9b1c330fbdf076b470a621b04b1bed4bc
b1c3113da8ca14a1ced572f9ff7b76c65fcf765a
/src/collective/megaphone/tests/test_installation.py
7c4d1d1648db0140349d4f0fa9401e9b47f15ef6
[]
no_license
collective/collective.megaphone
c23ae35af59a7aaf0ed9c65a198f529e2ae1f7d2
315035dc3b205b69f3c69451d06880e1380b000e
refs/heads/master
2023-05-14T21:42:54.234594
2015-01-20T00:05:45
2015-01-20T00:05:45
5,493,892
0
0
null
2015-01-20T00:05:45
2012-08-21T11:03:40
Python
UTF-8
Python
false
false
1,103
py
test_installation.py
from collective.megaphone.tests.base import MegaphoneTestCase class TestInstallation(MegaphoneTestCase): """Ensure product is properly installed""" def testCssInstalled(self): assert 'wizard.css' in self.portal.portal_css.getResourceIds() def testJsInstalled(self): assert 'wizard.js' in ...
cb4d09e4d51b64c579a70e0743d76937b92b9ca0
17ed64c3ffe8efba2ca03bcca237c4f594fb6ba2
/venv/lib/python3.6/sre_parse.py
681863679dbe79c2cf6d72cf94b3b46a1a9dfadf
[]
no_license
Marckhz/blogUas
74eb1e76c7e258b183cb9745633a7b0b000aff03
ac944023924ae828d7eda05bb64bd2cefca4f507
refs/heads/master
2020-05-16T01:11:04.589620
2019-04-29T00:29:20
2019-04-29T00:29:20
182,596,495
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
sre_parse.py
/home/marco/anaconda3/lib/python3.6/sre_parse.py
b289ac33c65540dbde71a3498cc907eeb240b773
3624e9f0a026b57ebdafa4e842b93f56e5a8504d
/Timus/1965/check.py
2b3e85df7506115b32cc846a0b8b178f3f17ef59
[ "MIT" ]
permissive
ailyanlu1/Competitive-Programming-2
54109c8644d3ac02715dc4570916b212412c25c0
6c990656178fb0cd33354cbe5508164207012f24
refs/heads/master
2020-03-23T07:48:20.560283
2018-02-15T06:49:49
2018-02-15T06:49:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
check.py
if __name__ == '__main__': inp = "testcase.in" arr = [int(x) for x in open(inp, 'r').read().split()[1:]] file1 = "A.out" file2 = "B.out" s = open(file1, 'r').read().split() t = open(file2, 'r').read().split() if s[0] == "Fail" or t[0] == "Fail": print s == t else: print True
fed498ccef2c8664f3c521b807e760ae9700f413
0c6deefcd1345f48f8793fc7183bdb0ceed2258f
/test/example.py
1c91e3bb438ccc171a43839a165e61e2264f2980
[ "MIT" ]
permissive
vegetablejuiceftw/vacuum
3396a17d1c22ed6442f1e25dc22ba5b952349bd6
0bf871d8d005f80a042264ca7f20757b44c9892c
refs/heads/master
2020-04-24T12:17:41.091969
2019-02-27T19:37:59
2019-02-27T19:37:59
171,950,903
0
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
example.py
from solution import Robot from typing import NamedTuple from uuid import uuid4 class Point(NamedTuple): dirty: bool uuid: str # from str(uuid.uuid4) class Action: SUCK = "suck" LEFT = "left" RIGHT = "right" UP = "up" DOWN = "down" NOOP = "noop" COST_MAP = { SUCK: 2, ...
a54ff7c39f04256f4ccf22648413e0fa6d0b9f9b
036e602dcfeb037a4acc45eb976aad44aa186aa5
/scripts/mullermsm_voronoi.py
896ac02cd50b05677f694ee1cae0f42221889c12
[]
no_license
schwancr/mullermsm
98b234f3d8b8549e03a1ec4a57ee435e80cd90be
098a6b28d94bddfb9b802698cac7feed76f93706
refs/heads/master
2021-01-21T01:11:22.634720
2013-03-15T21:43:50
2013-03-15T21:43:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,125
py
mullermsm_voronoi.py
#!/usr/bin/env python import matplotlib.pyplot as pp from matplotlib.collections import LineCollection import argparse import scipy.stats import numpy as np from scipy.spatial import Delaunay from msmbuilder import Project, Conformation, MSMLib, Serializer, Trajectory from mullermsm import Voronoi from mullermsm.mull...
6b585326b6001f262eddc4eb9348567a0212df5b
2b074ab6e281ff0806711358060d2f93386625f9
/bin/test_chain.py
1d4c02ae533f0a4d19b028a4fa7400e680d5207b
[]
no_license
egstatsml/esBPS
7c1942fed00be45297d15489d03d650f84e6fa31
aeb7ccc94fd0d0e5584ba92ad7b3c3e5b5b3f209
refs/heads/main
2023-05-09T00:34:17.712951
2021-06-06T23:30:59
2021-06-06T23:30:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,345
py
test_chain.py
import math from datetime import datetime from functools import partial import matplotlib.pyplot as plt import seaborn as sns import arviz as az import numpy as np import sklearn.model_selection import sklearn.preprocessing import tensorflow.compat.v2 as tf import tensorflow_probability as tfp from tensorflow import k...
356a3ce8dfd16a63b5509b4402b28a25100b1601
cd118fe7bad23b2d82e25b0f0b75e3b83826d57a
/floater.py
550abab25c09d9a36c64310818101ae9a1b6eee5
[]
no_license
kllyzhao/space_survival
767d40b8c761a6b42979d24f99ff847cb8e05ca3
da6ae0e16b10b18894a8f5d24dcd8341769bb258
refs/heads/master
2021-01-13T15:45:42.468010
2016-12-19T21:37:30
2016-12-19T21:37:30
76,899,167
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
floater.py
# A Floater is Prey; it updates by moving mostly in # a straight line, but with random changes to its # angle and speed, and displays as ufo.gif (whose # dimensions (width and height) are computed by # calling .width()/.height() on the PhotoImage #from PIL.ImageTk import PhotoImage from prey import Prey impor...
f70fc5cd3fecb25d215e1a7e134a46e871750bf8
0c09f39e90f72ebfb8a78380810ce15185225b0e
/model/VPPEnvironment.py
4b55af691932a1306508168c580a1d884b4ebb7d
[]
no_license
xunyuw/mcts
a35f2ff7fb104a96cd4bb069d6e3490d6af32e00
2877d89162cf869266d1c953e3abed85ca0069f2
refs/heads/master
2022-02-21T21:03:19.238966
2019-09-22T09:49:55
2019-09-22T09:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
VPPEnvironment.py
""" Info ---- This file contains the basic functionalities of the VPPEnvironment class. The object "VPPEnvironment" defines external influences on the system to be simulated. In addition to weather and location, this also includes regulatory influences. TODO: Add regulatory influences e. g. photovoltaik maximu...
2e7fa0f00a67511c09ff4a8946fa5a7044d67f1d
1517d870b3ec4205c7602ff2e031d4ae4f47ea1f
/application.py
cbf6d99e494689a6afcbe26d828b08d6fdbecb45
[]
no_license
Victor255/python-factorial
c58134d1e5dcd21b03de4cb18fc0b3518dbba92c
dfe9cab853b9f60eb3c5f5aa42a9aec3a01e5444
refs/heads/master
2021-01-21T03:08:06.409211
2015-12-04T19:56:11
2015-12-04T19:56:11
47,201,132
0
0
null
2015-12-01T16:13:31
2015-12-01T16:13:31
Python
UTF-8
Python
false
false
1,694
py
application.py
"Factorial" import os import sys def clear(): """THIS CLEANS THE SCREEEN""" if os.name == ("posix"): os.system("clear") elif os.name == ("ce", "nt", "dos"): os.system("cls") clear() def factorial(number): """THIS CREATES THE FACTORIAL OF ANY NUMBER""" if number <= 1: retur...
c0ebfe04325bf55baa654a3f62c0c55fd3a5858b
29ec35f793a20c54d6e3c5cd8fbc6fdebad874fe
/scripts/core/tester.py
e174ce013fd591defa09e806cff2d4f475568c12
[]
no_license
chipyard/or1200-onchip-obfuscator
ec74e84d866237dcb90bc78d7f13d9f45109c515
5d3a7237b82b1cf1d1b1a08bca88af5cc579f214
refs/heads/master
2023-04-02T04:31:04.592273
2021-04-11T12:18:41
2021-04-11T12:18:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,470
py
tester.py
import os import re import subprocess import logging import shutil import xlrd from core import common from core import decoder # Constants SIMULATOR = "icarus" TARGET = "or1200-ref-generic" # Paths DIR_TEMPLATES = "templates" DIR_TEST = "test" DIR_SHELL = "shell" PATH_WORK = "/tmp/obf-temp" FILE_SIM_RESULT = "tb-...
d27c7d5e433e65d9cf7ab7537a2869901162c5f2
f7e397d961ab9f498078e585831d22a4df6211b7
/optuna/terminator/improvement/gp/botorch.py
3d8c471c644ea3ee2c76c51af432d69d6fe537a7
[ "SunPro", "BSD-2-Clause", "MIT" ]
permissive
toshihikoyanase/optuna
225096eb7d4528d76a1589a255a0722ebf8d4d0f
ec37d5690aef446f8efd822f38727470de66ee11
refs/heads/master
2023-07-19T21:06:08.052845
2023-06-29T02:24:52
2023-06-29T02:24:52
180,293,231
1
1
MIT
2022-12-22T07:48:52
2019-04-09T05:43:19
Python
UTF-8
Python
false
false
3,611
py
botorch.py
from __future__ import annotations from typing import Optional import numpy as np from optuna._imports import try_import from optuna.distributions import _is_distribution_log from optuna.distributions import CategoricalDistribution from optuna.distributions import FloatDistribution from optuna.distributions import I...
0655d34db832295d879180c63f2ed7304cfb60d1
f8b7458d823e6edc3ba00056511348d47b21ba18
/Программирование 1 сем/Лабараторные Python/Одномерный массив 2.py
6049f4572f941e84d6c33808fa5e37352a73725e
[]
no_license
vpisaruc/Python
91fdbbd93c21bdcfc47ab746abd70b4634161e7c
05090f4fc638d06f8afb30fca651092495c3c968
refs/heads/master
2021-04-30T04:56:35.098026
2018-03-12T18:51:34
2018-03-12T18:51:34
121,404,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,637
py
Одномерный массив 2.py
#Бутолин Александр ИУ7-12 #Определить и напечатать что больше: #сумма положительных чисел или модуль суммы отрицательных чисел массива try: sumo=0 sump=0 mas=list(map(int,input('Введите элементы массива через пробел: ').split())) #print(mas) l=len(mas) k=True #Определение совпадения знако...
855da07804371c043cd91af7395a9a13c412d546
b852d0e1674f0ff03d71291fd6e63852a62c2136
/backend/shakas/utils/fasttext_exec.py
6bc37fbd9b4e803815b54be88d37582f7ba9fb3a
[]
no_license
iruka-s/shaka-ai
9a13b1656b91e1b1beef7c84d41ab6831c1aea83
8ea912674e3b9be43338486226c7d4e56fa9dfb1
refs/heads/master
2023-02-10T14:31:14.109971
2021-01-02T20:39:25
2021-01-02T20:39:25
268,442,603
0
0
null
null
null
null
UTF-8
Python
false
false
4,464
py
fasttext_exec.py
import json from collections import OrderedDict import codecs import CaboCha # ファイルパス定義 zen_aku_dict_path = '/resource/zen_aku_dict.json' hinsi_list_path = '/resource/pos-id.def' # 極性辞書で検索する品詞IDの指定 calc_hinsi_list = ['2', '10', '12', '31', '36', '37', '40'] # 点数を逆転させる否定の助動詞リスト reversal_word_list = ['なかろ', 'なかっ', 'な...
c804391cc199a242d1b54ece8487ef74065a40ad
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/oRwcjPMkyznd2ybRW_17.py
dda98a1b12806daaf370b7add89fa890cf694753
[]
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
349
py
oRwcjPMkyznd2ybRW_17.py
def max_product(n): lst, lstnums, res, num = [], [], [], 1 for i in range(0, n+1): lstnums.append(i) for j in str(i): num *= int(j) lst.append(num) num = 1 ​ maxlst = max(lst) for i in range(len(lst)): if lst[i] == maxlst: res.append(lstnu...
c43b899234ffff09225153dcaf097591c7176430
9f7ec2cf21a760b26d336fd0c114b00a9c7ef8ed
/conference/admin.py
d7302a3468de8c12c60604e098f06b9b6d7b5840
[]
no_license
nudomarinero/UK-SKA_Edinburgh-2017
588e59f0312b78d146e76dc9cf6f5eb6b8d789f0
8e982a594b8b5e3ae57f251d1a36d07aa4d8352f
refs/heads/master
2021-06-07T09:49:24.006578
2019-02-14T13:49:39
2019-02-14T13:49:39
97,248,209
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
admin.py
from django.contrib import admin # Register your models here. from .models import Participant class ParticipantAdmin(admin.ModelAdmin): fieldsets = [ ("Personal information", {'fields': ['email', 'name', 'institution', 'assistant']}), ("Asistance", {'fields': ['assistant', 'participant_hash']}), ...
95422348c8db9753830cc0a7c8785c05b44886b1
3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2
/BseBhavCopy/dailybhavcopy/dailybhavcopy/config/selenium_chrome.py
534fef9b17789c3fe2314d3b9d86fb14f9b493ed
[]
no_license
pavithra-ft/ft-automation
a977809823e587efd596b02e3a8286f887d12116
946e1c35b785bfc3ea31d5903e021d4bc99fe302
refs/heads/main
2023-04-24T19:54:28.478577
2021-05-11T17:53:08
2021-05-11T17:53:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
selenium_chrome.py
from datetime import datetime as dt YEAR = dt.today().year BINARY_LOCATION = {'binary_location': 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe'} CHROME_DRIVER_PATH = r'C:\Users\pavithra\Downloads\chromedriver_win32\chromedriver.exe' EXTRACTED_DIR = r'C:\Users\pavithra\Documents\fintuple-automation-proje...
96cb2754db2740767dfb145078ed17969e85123d
c97dc0dcc9ac2fb08dae844998cefbfafc0981ca
/parapred/__main__.py
061cc1141e49ce0320d15b6d07360753f4b00d08
[ "MIT" ]
permissive
tbc01/parapred
bb981f4de690c66149f3169826bd2731d6ff4a39
fc79efddf49f28a4ac3b75700ea7e2a80bf4bbd7
refs/heads/master
2020-09-09T17:59:19.235438
2019-11-15T21:22:39
2019-11-15T21:22:39
221,519,294
0
0
MIT
2019-11-13T17:51:46
2019-11-13T17:51:46
null
UTF-8
Python
false
false
34
py
__main__.py
from .parapred import main main()
77f94ecd205ae9f240f25d959a6d5cd9cf844d86
31fc6f1fb1dbad3a77ec8e8c4fff011fae807281
/scoobie_signalbuy_thesnail_v2.py
f8db00f9dbb9de22ce5d516565ece183043bcde0
[ "MIT" ]
permissive
cryptobot118/Kucoin-Volatility-Bot
2b73290f27867f59e839d89405322c0f72265568
91e1d5a9aaaeffb0dcdc11da5eaa69bc7d53ecbe
refs/heads/master
2023-08-28T03:10:50.742826
2021-11-05T10:57:29
2021-11-05T10:57:29
424,795,567
5
3
null
null
null
null
UTF-8
Python
false
false
14,384
py
scoobie_signalbuy_thesnail_v2.py
""" The Snail v 2 "Buy the dips! ... then wait" STRATEGY 1. Selects coins that are X% (percent_below) below their X day (LIMIT) maximum 2. ** NEW ** Finds movement (MOVEMENT) range over X Days - if MOVEMENT* > TAKE_PROFIT coins pass to 3 3. Check coins are not already owned 4. Uses MACD to check if coins are current...
ea07cb640e76ced8be92b55ee14e1d3058e073c9
83fcb49e776755c288b961d4c3156fa6672635f9
/zhusuan/legacy/__init__.py
85958839ff1df755615ac81620806a13af1db547
[ "MIT" ]
permissive
botev/zhusuan
df725ea614a0ee81399dadc6bb6ea3cde23f357c
666f4217c11cff5b1029517e7942e45664c3ab7b
refs/heads/master
2021-05-07T21:04:08.355387
2018-01-08T20:06:56
2018-01-08T20:20:53
108,987,451
1
0
null
2017-10-31T11:42:03
2017-10-31T11:42:03
null
UTF-8
Python
false
false
81
py
__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from .variational_legacy import *
351b2c2a18473e6ac541a96165c69c836ea101de
cc899297cd006b41e255f6b5775fed8c58db6dc1
/2006.差的绝对值为-k-的数对数目.py
abc26bb0f1834b50479f9a678147031058528d33
[]
no_license
Robin-Wujw/leetcode_py
b6b80c043eea6c487e088a119bcc3be6a5456d3a
09c6a4e7e96cc255458ce1f9b208bc6abd464181
refs/heads/master
2022-05-17T15:32:53.673293
2022-05-07T12:06:54
2022-05-07T12:06:54
147,473,318
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
2006.差的绝对值为-k-的数对数目.py
# # @lc app=leetcode.cn id=2006 lang=python3 # # [2006] 差的绝对值为 K 的数对数目 # # @lc code=start class Solution: def countKDifference(self, nums: List[int], k: int) -> int: def abs(x,y): if(x-y>=0): return x-y else: return y-x ret = 0 for i...
0fbf8efd39f583581c46fcd3f84c65a7787145cd
9a2ea14ab09d793c5529250a59ac7a959f595faf
/ANN/A3C_Example/estimators.py
db891710a9871786e85785455cfb107475de1631
[]
no_license
dnsdnsrb/Python
7cec982650b678159976796247b3ddbe2ef327cc
d72ac7cef12bcba98b8296b511c60d5646f2f089
refs/heads/master
2021-07-10T20:25:51.221968
2020-06-10T08:27:14
2020-06-10T08:27:14
132,401,153
0
0
null
null
null
null
UTF-8
Python
false
false
5,862
py
estimators.py
import tensorflow as tf def build_shared_network(x, add_summaries=False): conv1 = tf.layers.conv2d(x, 16, 8, 4, activation=tf.nn.relu, name="conv1") conv2 = tf.layers.conv2d(conv1, 32, 4, 2, activation=tf.nn.relu, name="conv2") fc1 = tf.layers.dense(tf.layers.flatten(conv2), 256, name="fc1") if add_s...
4d63a5f09164b78faa731af6dce41969edc2c4f5
37d8c01e6d9eca00b60b44124ebe28c5cba9b3e6
/analizeQuestion.py
d966967738fee0c4e33ce9a7f2ccbfa64d48cbda
[]
no_license
istoony/NERandKRanalysis
256106cd62c23e01916d60c43271f40b290b6c3d
ff037e59ca904d3c57880a7d0c0e343905765e3a
refs/heads/master
2020-03-24T03:19:04.073833
2018-07-26T08:51:35
2018-07-26T08:51:35
142,414,087
0
0
null
null
null
null
UTF-8
Python
false
false
2,626
py
analizeQuestion.py
import datastructure import wordUri class Question: def __init__(self, nlp, otter, nounArray, verbArray): self.nlp = nlp self.nounArray = nounArray self.verbArray = verbArray self.file = otter def findFirst(self, sentence): sentenceDoc = self.nlp(sentence) for...
6e01e36170f3f08f2030dbd4dd91019936fb9f5c
93898631052cba9ebfbf7185db4ba8a2f8ea7c1a
/cognito_emulator/userpool/views/pools.py
78633fccd30b086015a194b8d30116259bb150a2
[ "MIT" ]
permissive
opencollector/cognito-emulator
cae0f16d7631bdebecd5202928976777649999df
6351c3ec26425d57d58e6d6821d057058170e381
refs/heads/main
2023-03-16T23:44:43.449703
2020-10-03T11:47:20
2021-03-07T17:30:11
300,867,164
4
1
null
null
null
null
UTF-8
Python
false
false
7,558
py
pools.py
# Copyright (c) 2020 Open Collector, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
f4668cde3698a4e723732231f9d84dfe2d78f736
69aae40fbe697dc010b57f9ddcea300da3509824
/lab4_7.py
6534999811a46400b1cbc145d0a81c2283424bf8
[]
no_license
eunseo5355/python_school
ad34336d37490169c4ff2a760f88e01697c9f083
695e070e915f4b312691cfb4ec12c26531b0b2ce
refs/heads/master
2022-03-24T00:28:58.069406
2019-11-27T15:55:09
2019-11-27T15:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
lab4_7.py
""" 팩토리얼 계산 과정과 값을 출력하라. 입력 예) 양의 정수: 5 출력 예) 5! = 5*4*3*2*1 = 120 """ num = int(input("양의 정수:")) i = 1 f = 1 g = num while i <= num: f *= i i += 1 if g == num: print("%d! = %d *" % (num, g), end=" ") elif g < num and g > 1: print("%d *" % g, end=" ") elif g == 1: print("%...
be9a8050db026f0f07be628c09f0b2d6a6f5f8f9
2c45ef06619db81de4a02d8024330066c7e318ce
/src/test/UI_test/page/RegistPage.py
2a9ec256747dbb24cdb6bed0021929c755069a62
[]
no_license
Jason118/Autotest_Project
08e30519315e140b29f6742d7638d51ad3374c3d
854ddb5225eeecafbaf3ab4ed713fea65e84161f
refs/heads/master
2021-01-23T06:39:39.668639
2017-06-01T12:48:43
2017-06-01T12:48:43
93,034,134
1
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
RegistPage.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/5/27 9:55 # @Author : Terry import time from src.test.UI_test.page.BasePage import BasePage from src.test.UI_test.page.LoginPage import LoginPage from src.utils.config import DefaultConfig_Project class RegistPage(BasePage): # 注册页面的立即登录按钮...
1fb6dcb7dafe1680d56b898159a272fafda91f73
462385714beddead618fe0193a68685365793e5c
/Python/Python_Problems/Rosalind-master/038_LCSQ.py
cf103d1713a99552755e4ca01ca0e602d82ef231
[]
no_license
0n1udra/Learning
7e3f83a3a1ed850cc476ef738c76759616d9e12e
69e656327c782465318db85abdee519e2f79dab0
refs/heads/master
2022-12-04T06:29:29.894406
2020-08-17T20:47:47
2020-08-17T20:47:47
73,001,058
2
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
038_LCSQ.py
#!/usr/bin/env python ''' A solution to a ROSALIND bioinformatics problem. Problem Title: Finding a Shared Spliced Motif Rosalind ID: LCSQ Rosalind #: 038 URL: http://rosalind.info/problems/lcsq/ ''' from numpy import zeros from scripts import ReadFASTA def longest_common_subsequence(dna1, dna2): '''Returns the lon...
3a5bb97965d831b45e21e7aae414afb90fc7e592
18092d7be9512b4db810be1d04578644860c3c6f
/shijiasan.py
305b53a93298a11979f12e90a0e91d1cccc0c88f
[]
no_license
huih/103
eb074a6b1074d09e8447335ebd560d10bd77ff35
1312441d9f922b69a2bb88d61f9b1524a7a00dbb
refs/heads/master
2020-03-08T22:18:36.741838
2018-04-07T23:01:07
2018-04-07T23:01:07
128,427,304
0
0
null
null
null
null
UTF-8
Python
false
false
5,846
py
shijiasan.py
# -*- coding: utf-8 -*- import ttk import time import datetime from Tkinter import * from appintf.add_account import * class Application(Tk): def __init__(self): Tk.__init__(self) self.title("103") self.createMenu() self.geometry("800x200+200+200") data = self.load_data() ...
1425fc4c24e0f3f35f7c2bea4e538002cba01ff9
15e80efeed03c81fe9a22d60d83374e4024f6f9e
/Save the world.py
b8e3e6d644c5de32b10cb759105371ce8d3f0dfe
[]
no_license
lakshaygpt28/Go4Hack
2ec5e116b7f0688e69fd55b4b680ca719429008c
dea629e7f6faa83f828c6d548dba794e46ad6d0b
refs/heads/master
2021-05-08T14:04:06.206815
2018-02-04T11:20:24
2018-02-04T11:20:24
120,065,580
0
1
null
2018-10-06T10:09:01
2018-02-03T06:23:33
Python
UTF-8
Python
false
false
11,122
py
Save the world.py
import pygame, time, random, sys from pygame.locals import * display_height, display_width = 600, 1000 RESOLUTION = (display_width, display_height) BLACK = (0, 0, 0) WHITE = (255,255,255) LAWNGREEN = (124,252,0) CHARTREUSE = (127,255,0) LIMEGREEN = (50,205,50) BGCOLOR = BLACK #Background color HIGHSCORE = 0 ball_ima...
616526f243d98c3cc5e8590a9028df9e62e15e4a
3d1e27043b15f36d9b3de3683589e89b3fd3ffed
/node.py
6764a38ad4e4da5cdf85e628e8075b79a4677f24
[]
no_license
ValdasIvanauskas/f_kastar
99dbb095493e48ad4af41b30f6c620f1beb968bb
3c785352e535448ba08f8a9e356ef20ba1fc3a5f
refs/heads/master
2020-12-05T21:44:10.884876
2020-01-07T06:43:19
2020-01-07T06:43:19
232,255,401
0
0
null
null
null
null
UTF-8
Python
false
false
5,446
py
node.py
class Node: def __init__(self, idd): """ ======================================================================= Description: Init Node with Idd. ======================================================================= Arguments: ------------------------...
0b18d9976d0cbca604682f5ad3ed3f4d17d05c70
197420c1f28ccb98059888dff214c9fd7226e743
/happy_pythoning_cource/Exams/12.1.4.Is_correct_telephone_number/12.1.4.Is_correct_telephone_number.py
f49bafdb2b4b9455c9f259facc78dddbcdac2bb1
[]
no_license
Vovanuch/python-basics-1
fc10b6f745defff31364b66c65a704a9cf05d076
a29affec12e8b80a1d3beda3a50cde4867b1dee2
refs/heads/master
2023-07-06T17:10:46.341121
2021-08-06T05:38:19
2021-08-06T05:38:19
267,504,364
0
0
null
null
null
null
UTF-8
Python
false
false
2,184
py
12.1.4.Is_correct_telephone_number.py
''' Валидный номер 🌶️🌶️ На вход программе подается строка текста. Напишите программу, которая определяет является ли введенная строка корректным телефонным номером. Строка текста является корректным телефонным номером если она имеет формат: abc-def-hijk или 7-abc-def-hijk где a, b, c, d, e, f, h, i, j, k ...
2706329d62264ad849cb2f136d4133c6d6a9f727
dc660830c0b9fce2d823c10285c78ae27f12e69f
/VABT/users/migrations/0022_auto_20190430_2246.py
654a522297b96898db4bec0633833cac7341f54a
[]
no_license
McGovern95/VABT
30a0d452d9074883f338e76036abe34d0b2f1ddb
d227aa995e09f9793cf8f6c0df9d72b78a40c175
refs/heads/master
2020-04-27T09:37:47.379766
2019-05-06T22:12:13
2019-05-06T22:12:13
173,987,075
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
0022_auto_20190430_2246.py
# Generated by Django 2.2 on 2019-05-01 04:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0021_userextended_progress_student'), ] operations = [ migrations.AlterField( model_name='userextended', name...
2f2b143c2ce39cc79d7feec7dcc2fcb8524fd781
835e0a8c11a09d2f900e2b7e022c55ef851d278a
/clusterer/crazy/nbEigen.py
bd99c53da7df99a51b5bc75083c8da708cfea2ae
[]
no_license
tingofurro/wikigraph
7f51eaa33c949e7fe906f59671854535fd3ca97d
43c3ccc013faea73b79ac5d239d3b53dd1d4b05c
refs/heads/master
2020-04-04T13:29:56.760725
2015-11-21T18:25:07
2015-11-21T18:25:07
28,830,848
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
nbEigen.py
from dbco import * from igraph import * import numpy as np from numpy import linalg as LA cur.execute("SELECT id FROM wg_page ORDER BY PR DESC LIMIT 1000") pageList = [] for row in cur.fetchall(): pageList.append(str(row[0])) g = Graph(directed=True) g.add_vertices(len(pageList)) pageListString = ','.join(pageL...
c90ab62ea0e76badb999190a467084833dd017a2
a692d9275d65255d4dbdf3f1ccfa9ee457eba48a
/scripts/make_table.py
6b7e51fea96209ca30fc44a4f4a74fecb25cfb4c
[]
no_license
tomekkorbak/language-emergence-experiments
97a881770126bcb415a43bb99743e7e19f0312ac
a9040c610837e746a9332d6555f886d113f7045e
refs/heads/master
2022-12-14T23:51:08.204611
2019-11-20T21:20:22
2019-11-20T21:20:22
188,673,961
1
2
null
2022-12-08T05:56:56
2019-05-26T11:24:31
Jupyter Notebook
UTF-8
Python
false
false
4,964
py
make_table.py
import os import warnings warnings.filterwarnings('ignore') import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from neptunelib.session import Session sns.set(color_codes=True) sns.set(rc={'figure.figsize':(11.7,8.27)}) class NeptuneHelper(object): def __init__(self, organization, project_n...
e20a31923b6d34ca5a2e323b217258b4cc8f0200
4190be2dbd9c7bd33fe66858e0aecf43ed278eca
/Fundamentos/variáveis.py
aa6aa177adef2031a25b80d163c41c955099b42e
[]
no_license
MaiconJunge/Curso-Python
004630148d985afae34700c17ac8deec9a04b61c
9da83ee3fba7c09999a5409b58d89aa552c017e2
refs/heads/main
2023-04-09T10:13:14.965428
2021-04-27T03:17:47
2021-04-27T03:17:47
361,966,127
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
variáveis.py
# Inteiro a = 10 # Real ou Float b = 5.2 print(a + b) # Variável dinâmica a = 'Agora sou uma string' print(a)
9c1a4a8f88de77aabc77c749a4c9d4a609147cde
57dc8cc7b95455159a7dbb771977c8a190d28e47
/deploy/env.py
8a4bf4e39bc5c54a27d25ef7c31009ab5238c36e
[]
no_license
alabatie/optim-pv-battery
b3737b2f233d5451f6079c049375fac552e3fd7a
22d161ce30ffcaca31822c6a33ae2337d5add70a
refs/heads/master
2020-03-14T03:05:20.448787
2019-04-20T15:35:14
2019-04-20T15:35:14
131,412,865
20
0
null
null
null
null
UTF-8
Python
false
false
5,672
py
env.py
import os from pathlib import Path import numpy as np import matplotlib.pylab as plt import pandas as pd import pickle from battery_controller import BatteryContoller from battery import Battery from simulate import Simulation class PvBatteryEnv(object): nb_time_steps = 959 battery_charge = None money_...
8bff143cf692d0ecb33bc5c1e201251c21b62e91
c099e9e27c426dc26d4f3e5c57b35d52b792efc3
/jianshu/items.py
46394127f3a90742b160ce9c018c01a11d16ee9c
[]
no_license
XL1214520/Crawl-
4c73a9f77e81ce1e5d12a7c9c45e6791d7cee533
60fdd249ab0aac015a6e7f21a9343f69c79eda6f
refs/heads/master
2020-11-30T01:40:36.063659
2019-12-26T13:19:37
2019-12-26T13:19:37
230,265,992
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html from scrapy import Item,Field class JianshuItem(Item): # 标题 title = Field() # 作者头像 avatar = Field() # 作者ID author = Field() # 文章地址 or...
bf89567259b6d8705e95715688d4fd6b8ebbfaec
05d6cebd6ab970b4fb78840d0349ae6d433be60c
/python-client/test/test_api_doc_api.py
d573e109ba0bd6f6315ae043437bc6c85f60a465
[]
no_license
mehome/RADServerSwaggerClients
0a73089e9f0e54fc9a13bb35bf0168fdfb7580ef
5f0720e97320e83279e020840d4d3ab77253c403
refs/heads/master
2022-01-17T19:21:17.569005
2019-06-28T18:00:25
2019-06-28T18:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
test_api_doc_api.py
# coding: utf-8 """ EMS API Documentation Enterprise Mobility Services API [Learn about EMS](https://www.embarcadero.com/products/rad-studio/enterprise-mobility-services) EMS (Enterprise Mobility Services) offers a Mobile Enterprise Application Platform (MEAP) TurnKey Middleware for Interconnec...
1e00686f7a690f5aac303d7849e6ab93e1b8612d
1bd508b506cfac1b63e1e5575528e02137c92084
/app/api/v2/models/user.py
329f002d91588d7ec9393abff9366bab4e0927f1
[ "MIT" ]
permissive
emmanuelmacharia/Questioner-Database-Integration
0a78b92bec9d536f63e8a8ceec455d42cca3805a
85ceeb08bd967c83ed63ad066710b2b3c758268e
refs/heads/develop
2021-06-06T14:51:10.788564
2021-04-29T11:07:28
2021-04-29T11:07:28
172,880,870
1
0
MIT
2021-04-29T11:07:29
2019-02-27T09:04:31
Python
UTF-8
Python
false
false
5,464
py
user.py
import datetime from flask import request from flask_restful import Resource, reqparse from passlib.hash import pbkdf2_sha256 as sha256 from ..models import dbconnect conn = dbconnect() cur = conn.cursor() class User: def __init__( self, fullname, password, contact, isadmin = False ): ...
25e3767bfda0be4cf3337fe1d35cb36ecf9c3f47
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/ui/webui/DEPS
69b82adcf0987e5cb0ff1c17692628ea8e4012e2
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
57
DEPS
include_rules = [ "+net", "+ui/base", "+ui/gfx", ]
72a19bf5d479add4edd1c31bb1eff4cb4be85eac
9a62f990a47e8037468072a4477a6a45e1347caf
/checkout/models.py
315a8f62775fa09de4bc691860fb56f80505ff8e
[]
no_license
Code-Institute-Submissions/Full_Stack_Project-1
78a70c1517cc302f5be17963bb2ad766774efe6e
5c585b7210fb84e8848ea2f049709c06ffdffd0b
refs/heads/master
2020-08-16T23:07:40.516483
2019-10-16T14:00:10
2019-10-16T14:00:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
models.py
from django.db import models from services.models import Service # Create your models here. class Order(models.Model): date = models.DateField() business_name = models.CharField(max_length=50, blank=False) project_name = models.CharField(max_length=50, blank=False) design_information1 = models.TextFiel...
45dabbb69198090a4e2d5b8aa69cb31ed980ef8f
112aa4e67487571452477b0246a0061318065acf
/SDN_Python/cli/ipc.py
2278a4b0b9b473ec7e87f72f98428a53234504cc
[]
no_license
jayluxferro/OBP-SDN
a62779ab2670a6419cfe8632b46d6d27a0caf666
9cc5386573b270423bcf63aef93e58b6f49bc450
refs/heads/master
2023-03-23T14:08:44.303565
2021-03-22T10:11:38
2021-03-22T10:11:38
177,524,706
1
0
null
null
null
null
UTF-8
Python
false
false
953
py
ipc.py
#!/usr/bin/python """ IPC """ import socketio import eventlet import pprint import sys import logger as d import db ### DEFAULTS ##### sio = socketio.Server() app = socketio.WSGIApp(sio, static_files={ '/': {'content_type': 'text/html', 'filename': 'index.html'} }) ## connection defaults ### @sio.on('connect'...
9e7bd254575e985df89c10f24c1021ea91b8e761
ba4f93a6c4684253864cfaa0c0dba17a9cd12515
/src/eolab/prepare_EOlab_layers.py
6c0c193a893dc45f9c8ac8bb0e818f4f18bdf535
[]
no_license
DTMilodowski/F2020_potentialAGB_April2019
db1ec0c570a5d0b1964510f3ca905eab817db376
dd2a80d1f29ad4bf61499cd9e527f6dd9bc6f0b8
refs/heads/master
2020-04-25T16:45:41.764527
2019-03-26T15:31:28
2019-03-26T15:31:28
172,923,304
0
0
null
null
null
null
UTF-8
Python
false
false
8,499
py
prepare_EOlab_layers.py
import numpy as np from matplotlib import pyplot as plt from osgeo import gdal import os import osr import sys import xarray as xr import matplotlib as mpl import matplotlib.cm as cm from matplotlib import ticker from matplotlib import rcParams # Set up some basiic parameters for the plots rcParams['font.family'] = 's...
82e065898413aa82a09a2ef0f64e129c1bdea2f3
87e9ce18029f738e01fca5c8a395229003b6c41e
/surfacemapper/mapper.py
3ed79353ededfe400b31ed23ab899db1143859be
[]
no_license
kabhinav/surfacemapper
6804b98a43bdd35df186dd85982373a839a81e87
42368eaae46856bd6799bd6370224d666344aa51
refs/heads/master
2021-01-17T11:54:35.282409
2013-06-11T15:11:19
2013-06-11T15:11:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,536
py
mapper.py
"""Surface Mapper delegates rovers for mapping given rectangular grid area. Mapper class is responsible for parsing user input and delegating mapping task to the rovers. """ import sys from rover import Rover from mars_rover_controller import MarsRoverController from mars_rover_instructions import MarsRoverInstructi...
a2de277332c4359e9115cb878977b902e11ad0ab
6b3cc22e7b8d356b01d638dffc820322312da3e4
/tests/test_launcher.py
86f5934d62bfaa04b5c1d337f644cb87dd578e63
[ "MIT" ]
permissive
cheind/pytorch-blender
911961f760dde82a591f7cb26c0c648b120ad570
d2386df70e14c190669509e28009f46aed561c88
refs/heads/develop
2023-04-08T01:44:09.341680
2022-04-03T09:37:17
2022-04-03T09:37:17
169,447,021
509
43
MIT
2023-03-20T03:06:22
2019-02-06T17:32:38
Python
UTF-8
Python
false
false
3,589
py
test_launcher.py
import pytest import multiprocessing as mp from pathlib import Path import json import copy from blendtorch import btt BLENDDIR = Path(__file__).parent / "blender" LAUNCH_ARGS = dict( scene="", script=str(BLENDDIR / "launcher.blend.py"), num_instances=2, named_sockets=["DATA", "GYM"], background=T...
33b4aee8c2d3c6d102dac0743e3746d29033dbeb
fa62fe3dab86be409208f3ed3e3871062dfd557e
/Rooms/InteractableObject.py
d98f1490b751e1801e29d33af62d562d5444909c
[]
no_license
Joshun/gamejam
c0fd81d449d0163a49ba8f6638059a02188ab87e
0b30613b5d486a0f04ba4c299c88fc953ac126b5
refs/heads/master
2021-01-10T16:37:21.724667
2015-11-18T12:11:31
2015-11-18T12:11:31
46,174,639
0
1
null
null
null
null
UTF-8
Python
false
false
545
py
InteractableObject.py
from Rooms.Wall import * class InteractableObject(Wall): def __init__(self, rect, overlay, description, reset=True): super().__init__(rect, solid=False) self.__description = description self.__overlay = overlay self.__reset = reset self.__shown = False def display_text(...
d2aabd3fa6b4c7b9925d8098a30ef116bcc85393
721bfc614e7578487be5225b5bcb5edabd019533
/src/staff/urls.py
edd4503717ed8f2eac9db54ffa89117a59df78bc
[]
no_license
kartik115/stationary
3a9ce0657e4ff4c4676e5f9db3867030acbd3780
dad1b4d1a52614401204dd97623a7d53b8337a2c
refs/heads/master
2021-08-23T01:36:22.264680
2017-12-02T06:00:30
2017-12-02T06:00:30
112,816,679
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
urls.py
from django.conf.urls import url from .views import * urlpatterns = [ url(r'^users(?:/(?P<user_id>[0-9]+))?/$', staff_user, name='staff_user'), url(r'^hardware(?:/(?P<hardware_id>[0-9]+))?/$', hardware, name='hardware'), url(r'^track(?:/(?P<track_id>[0-9]+))?/$', hardware_track_history, n...
5f6bf6c57aefaf6aabab1ed981af1eb5f36a0d89
3a5696b7330822b107b1d8730a81a4e4f3347642
/Core/Workflow/Utilities/other.py
9736a12cacae4ccae06fa17845adb8fc7b6a8538
[]
no_license
feipengsy/arbiter
457ec855bf07e0b716c364b90940d22a62172dfe
7f0e09caa2cc107c07f675303085e77ca01d109a
refs/heads/master
2021-03-12T21:49:50.252887
2014-11-12T01:15:42
2014-11-12T01:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,555
py
other.py
import random import re class other: def __init__( self, parameters = None ): self.ParametersDict = {} self.ParametersDict['input'] = [] self.ParametersDict['output'] = [] self.ParametersDict['table'] = '' self.optionTemplet = '' self.parametersList = parameters self.subJobCount = 1 ...
5dda79c0631fb1a310767b2242fe8ce5b9124d80
de9895770f8ec87b5fe150e150862d4c0b136e84
/tic-tac-toe/board.py
4a92beb4277bdab65401562c59093e30b96c889f
[]
no_license
asanmateu/games-py
da7fc142860fc9481d1f59f91e8b312765214b63
a3d92c5c4b83e70f8c518fe03059507abfa8ccda
refs/heads/main
2023-03-20T21:39:09.429884
2021-03-07T21:02:08
2021-03-07T21:02:08
345,203,563
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
board.py
my_board = {'7': ' ', '8': ' ', '9': ' ', '4': ' ', '5': ' ', '6': ' ', '1': ' ', '2': ' ', '3': ' '} board_keys = [] for key in my_board: board_keys.append(key) def print_board(board): """Prints board on console to start the game. """ print(board['7'] + '|' + board['8'] + '|' +...
49eb775eaca4625611be069e42fe1d191586fd8d
e50dbd45f3e9c3c7a914942e7376138841a09b9d
/19-data-lab/19-ex4_anagrams-from-file_fast.py
b372233be7e6cb119c668acb90b1307b3bb66ee0
[]
no_license
izmirli/python3-course-demos-and-solutions
0cd26b0835a7dd1a50f9f0b7ac1d4516928a4cb3
5fe036bc9fcc9b39a53bcc20505b3b75d2c00c8c
refs/heads/dev
2022-09-18T11:50:54.616826
2019-05-12T09:05:32
2019-05-12T09:05:32
185,946,869
0
1
null
2022-08-09T13:25:19
2019-05-10T08:09:05
Python
UTF-8
Python
false
false
812
py
19-ex4_anagrams-from-file_fast.py
"""Print anagrams from file This script gets a text file (UTF-8) with 1 word in each line. It output the words where all words that are anagrams, one of the other, will be at the same line. It gets one mandatory command line argument: word file path. """ import sys from collections import defaultdict so...
118234025134726e921736dfe154fdbfa1f422ca
56d515e2c0d8a5e6b9835894c79e61d4c3b33366
/6. Navigating Data Structures/Temp/networkx/networkx_1.py
231285b80fbfd26ac8e284821b071c5d8e714d0a
[]
no_license
SchoBlockchain/ud_isdc_nd113
fe0226fabf41c2664229ac8f83d59486976e3aad
0ebd8daab3ab2b8d0eebdfa3d1cf3f3a6d6b0809
refs/heads/master
2023-03-18T16:07:46.311528
2018-12-10T08:16:24
2018-12-10T08:16:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
networkx_1.py
import networkx as nx map_10_dict = { 0: {'pos': (0.7798606835438107, 0.6922727646627362), 'connections': [7, 6, 5]}, 1: {'pos': (0.7647837074641568, 0.3252670836724646), 'connections': [4, 3, 2]}, 2: {'pos': (0.7155217893995438, 0.20026498027300055), 'connections': [4, 3, 1]}, 3: {'pos': (0.7076566826610747, ...
18d88bdded73232465896e65be0a05500bde5703
c2c1a237a5cad010a34ba04624dd58f89f52b308
/react/trackactivity/views.py
f6ebf9cf0bcfd7b6c9b71567897d78d7961d3302
[]
no_license
Subhajit-5/Subhajit-django-react
41320835c90531df6943a844e33b19ca704d6a63
fe4daf37efbb04cecbf67a8cbcf367e211c0b37b
refs/heads/master
2023-01-11T16:06:23.881389
2020-04-06T05:21:18
2020-04-06T05:21:18
251,428,870
0
0
null
2023-01-06T08:25:24
2020-03-30T21:09:07
JavaScript
UTF-8
Python
false
false
3,273
py
views.py
from trackactivity.models import ActivityPeriod from django.contrib.auth import authenticate,login from rest_framework import viewsets from rest_framework.generics import GenericAPIView from django.contrib.auth.models import User from datetime import datetime, timedelta from django.conf import settings from django.http...
befe0b14e3d25daf882426f3068b359df382925f
d263044e2da8ed254247fa3bdd903660ca0beb21
/app/models/user.py
6ec6c381aaed0b6c697a6fc29dbf29089981728c
[ "MIT" ]
permissive
luisfcofv/Superhero
b32e454bdfc6a6fb27a74ff2053fcc1d2ea8bcb1
dbda0287f0ceb858d7beb0f1c95d6744569a1359
refs/heads/master
2021-01-24T21:58:01.865900
2015-11-09T14:34:58
2015-11-09T14:34:58
43,595,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,504
py
user.py
from app import db from app.models import Order from datetime import datetime class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) timestamp = db.Column(db.DateTime, default=datetime.utcnow) email = db.Column(db.String) first_name = db.Column(db.String) la...
0b5ce9790ac59021e30a8898c04ff696d6a3794a
91e0f59e486a5c3c7de5c302815ad432a18c1179
/1~10/008.py
f51bba9b8bea9f565b359673054e28dd50f96845
[]
no_license
EgoSay/python100
400a26c51e0d432e911bc7360fea2a642bb13e1a
c708b996fb8b0cf90c05452c8c71d188fb73d84c
refs/heads/master
2022-02-21T22:28:05.134431
2019-10-08T12:35:26
2019-10-08T12:35:26
167,150,727
3
1
null
null
null
null
UTF-8
Python
false
false
233
py
008.py
# @Author : adair_chan # @Email : adairchan.dream@gmail.com # @Date : 2019/2/15 下午4:31 # @IDE : PyCharm for i in range(1, 10): print() for j in range(1, 10): print(" %d*%d=%d" % (i, j, i * j), end=" ")
b2e74cf949bfa5c7864567587412a41280f18131
a9fd8440aa2a5a2ae30a2869b5139484db9302af
/HW_1_Starter.py
942cd48597779a0da627b4b72f17348a389f6c51
[]
no_license
prateekgoudar/18898-GSP-2020
83dff6e362a8bdca8087012477af0a51c6c90569
bb63c4b23089f03686e2198d4383c05c08982b7c
refs/heads/master
2021-01-02T11:14:51.696174
2020-02-10T19:14:12
2020-02-10T19:14:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
HW_1_Starter.py
import numpy as np import matplotlib.pyplot as plt from pygsp import graphs, plotting rs = np.random.RandomState(42) # Reproducible results. W = rs.uniform(size=(30, 30)) # Full graph. W[W < 0.93] = 0 # Sparse graph. W = W + W.T # Symmetric graph. np.fill_diagonal(W, 0) # No self-loops. G = graphs.Graph(W) prin...
73bd256d532ea1cde3213ee06cbb620b476970e1
73b0d8fd22a452d179a35cf9f99d502bf57d593c
/voronoi.py
9babc7626a0c23d4471f9345d85b2906a4a16499
[]
no_license
hyongju/Polytope-bounded-Voronoi-diagram-Python
6d0abae0de602b91cb7cbea358668c85e1ee957c
8f467a280d7ddeccdfd0d2b185a0e5fa9c70a62c
refs/heads/master
2020-04-06T04:00:15.502623
2017-02-24T20:22:44
2017-02-24T20:22:44
83,074,718
1
2
null
null
null
null
UTF-8
Python
false
false
2,229
py
voronoi.py
#!/usr/bin/python import numpy as np import random, itertools, collections from scipy.spatial import Delaunay from scipy.spatial import ConvexHull from interLine import interLine from perpBisector2d import perpBisector2d from inHull import inHull def voronoi(pins,bnd): pnts = inHull(pins,bnd) #print np.shape(...
a8ed0f40aeff52a7262f3a06289fa9c5df58b163
87ec54de23b28d4650da451b6f97cfecdfa35ed0
/customer_segmentation/cust_segm.py
545cc73124718da434c8946ef38b48aa65820486
[]
no_license
mangelaccio/PythonTourismExploration
d6a4a43cd3f347d6b8c20f521bd8aea726705301
20f0d349c2d8007adce058efc314a25bee453002
refs/heads/master
2020-04-24T18:46:36.533914
2017-05-20T08:59:37
2017-05-20T08:59:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,321
py
cust_segm.py
import pandas as pd # http://blog.yhat.com/posts/customer-segmentation-python-rodeo.html # Ofers data df_offers = pd.read_excel("./WineKMC.xlsx", sheetname=0) df_offers.columns = ["offer_id", "campaign", "varietal", "min_qty", "discount", "origin", "past_peak"] # Transaction data df_transactions ...
68e6986e238327b6c838224adda4942b42020911
7386bef746a765a9126ac8a2891b153b5773b21f
/test.py
79725f45f49dfecea1bd41ae6fc094a852066729
[]
no_license
varuniyer/ImageBoxes_FS
a1241b9b11d91d40f87c8bdc849b326b655b1fdb
16b5753d6ef84d483e0706d5648476e4f08a3e19
refs/heads/main
2023-06-28T22:17:23.392445
2021-07-27T05:06:55
2021-07-27T05:06:55
376,659,711
0
0
null
null
null
null
UTF-8
Python
false
false
5,791
py
test.py
import torch import numpy as np from torch.autograd import Variable import torch.nn as nn import torch.optim import json import torch.utils.data.sampler import os import glob import random import time import configs import backbone import data.feature_loader as feat_loader from data.datamgr import SetDataManager from ...
b327baac32da6de310975d939551e7d3257b65f6
8985d7b0a4e5af2f6503aa37a5b29f9c29b236e6
/src/entity/restriction.py
5a8d5be1b0c367882d26d00368c4a68ae466ec90
[]
no_license
harrispartners/mikara-onsign-cms-api
b2e1a3b5909011c11fda8f6362d4653abffd32b4
dfab5046a22147655bf11b263f8436adfb8db2f8
refs/heads/master
2022-12-13T11:32:40.976358
2020-03-04T05:29:05
2020-03-04T05:29:05
237,349,095
0
0
null
2022-12-08T03:31:53
2020-01-31T02:53:24
Python
UTF-8
Python
false
false
654
py
restriction.py
from src.entity.calendarrestriction import CalendarRestriction from src.entity.geographicregion import GeographicRegion from src.entity.tagrestriction import TagRestriction from src.utils import * class Restriction: calendar = None geographic = None tag = None def __init__(self, ...
3f057a0ed29517b78af87b10ee83c095cfa7c1b6
837613ea5f3c2d9ae738261ff3ca5d98fb004427
/google_pandas_load/loader_quick_setup.py
e660378d1bb70c79da48b151849ef6141396d573
[ "MIT" ]
permissive
fpli-mbr/google-pandas-load
25628f6bc5c9dd0ddb2d45014672a2583dcbbb10
62ee9af33f067bd6366ede2bf79925a85a5b0a2f
refs/heads/master
2020-07-10T03:33:32.509352
2019-06-29T11:00:32
2019-06-29T11:00:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,667
py
loader_quick_setup.py
import logging from google.cloud import bigquery, storage from google_pandas_load.loader import Loader not_propagating_logger = logging.getLogger(name='LoaderQuickSetup') not_propagating_logger.setLevel(level=logging.DEBUG) not_propagating_logger.propagate = False ch = logging.StreamHandler() formatter = logging.Forma...
63d4de0f971da750ffa9fe5148f1a5b8376566d2
4088ed72d399d138bd848a6b13972a3484c27dd9
/Week3/ProblemSet3/runfile.py
2f7baad9824acea2e729ca130cf62e08db708689
[]
no_license
scattm/MIT6002x
d443eb273bdc843d983ef8f344a17fc43e26e3dd
ecba33fc5c949e575bce2f7a29f7aff549af15bc
refs/heads/master
2021-01-10T04:03:07.261424
2016-01-13T02:42:30
2016-01-13T02:42:30
45,029,255
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
runfile.py
from ps3b import * import random random.seed(0) simulationWithoutDrug(100, 1000, 0.1, 0.05, 100) simulationWithDrug(100, 1000, 0.1, 0.05, {'guttagonol': False}, 0.005, 100)
251842f3a41ad3aae1414520ef24af1d4b6d3d36
d1f48f15454120db84a667d390cf07e1f1a87f6e
/inference_model.py
0e9b0cfd462a3ee6ae4731a88ef83f5ef21d7dff
[]
no_license
THTBSE/utils_code
c01314b09d4a450d8f3a42b816a8648b2c79b58f
5577016b610211a887a42aa23525c30ba837cd73
refs/heads/master
2021-01-01T15:42:10.007048
2017-07-19T05:42:01
2017-07-19T05:42:01
97,676,621
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
inference_model.py
#-*- coding:utf-8 -*- """ 封装训练好的model """ import tensorflow as tf class Model(object): def __init__(self, model_dir, tags, signature_key, input_keys, output_keys): self.sess = tf.Session() self.meta_graph_def = tf.saved_model.loader.load(self.sess, tags, model_dir) self.signature = self.meta_graph...
db54371c4f0f843e317ce0803809c4ed3d291ff9
9b09d88b32e6e6aee5c78e885dd12c19662deca5
/routes/category.py
edf28499a52238eae01ab01900b5d54abcab97b4
[]
no_license
clenia1e/bookstore
f6331c83ae1faeae1e424c84ac9b15f4274449a9
b070fba287524e551186bd2f9b9229aae8ae2d35
refs/heads/master
2023-05-27T20:10:06.199081
2021-06-08T01:32:01
2021-06-08T01:32:01
373,218,510
0
0
null
null
null
null
UTF-8
Python
false
false
2,225
py
category.py
from models.category import CategoryModel from database import db_session from flask import make_response, request import json from sqlalchemy.orm.exc import NoResultFound as NotFound def _response(data, code): return make_response(json.dumps(data, ensure_ascii=False), code) def init_app(app): @app.route('...
22bf125b8b6e3d0a9213f932d4faeded6793780e
a7bf46e29fc62c8b45e9afa345c5dc2e24b1bf50
/AI Lab/AC/AC2_007.py
132c46249ef8c27fae11a7c22212358fac9d3ad4
[]
no_license
samiwolf/AI-Course
255937d09aabc768498e76784d618bed2473e0b0
452b46dd653b2ff1d668d8d4af558de635991bb7
refs/heads/master
2022-11-14T18:18:28.369848
2020-07-12T14:19:18
2020-07-12T14:19:18
279,078,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
AC2_007.py
from Generator_007 import * from random import randint import copy import math from util_007 import * import time def AC2(nodes, constraint_dictionary): start = time.time() rev = True for i in range(len(nodes)): q1 = Queue() q2 = Queue() for x in nodes[i].neighbours: q1.p...
9278dc040158266270d2ebf7654843876a1deb37
8c905110d1d1ff56cf24ab744830ea7fd41fad83
/info/context/info.py
c6df2f30decf7f3990ba1dbbb9becb5a273b19b0
[]
no_license
IIKovalenko/Flask_learn
957839f2400efb00db45b8111d643e4c87a316c2
ca065a4dfe6ef2dbdd8890a9084a483da1b37495
refs/heads/master
2020-06-05T05:37:51.314442
2018-05-17T18:04:22
2018-05-17T18:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
info.py
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # контекст приложения current_app # экземпляр активного приложения g # объект, который может использоваться приложением как временное # хранилище в процесе обработки запроса. Эта переменная сбрасывается # в исходное состояние для каждого новог...
be10de3a649a8381a296ebc7a0f703af79781e64
64a0b40badf54638bafe74a94770e716cbf0fe62
/downstream/semseg/pspnet/main.py
72f7d061752f4e858dc7a92c7b49431da865e28b
[ "MIT" ]
permissive
jlqzzz/Pri3D
8eecd5a75ae6cfa7d0281f3683c6e8eb1cd1e930
63c728b0a2236529cf24b8095d0d719f4f92451f
refs/heads/main
2023-08-07T15:56:56.357831
2021-09-29T09:47:45
2021-09-29T10:14:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,979
py
main.py
import os import random import time import cv2 import numpy as np import logging import wandb import argparse import hydra import torch import torch.backends.cudnn as cudnn import torch.nn as nn import torch.nn.functional as F import torch.nn.parallel import torch.optim import torch.utils.data from dataset.scannet im...
2afd1a2991267d2e0c0d8d79a8e84b6e6cabe9a7
302442c32bacca6cde69184d3f2d7529361e4f3c
/cidtrsend-all/stage2-model/pytz/zoneinfo/America/Tegucigalpa.py
2ab232efe187d2eb73e731b1c59b1aa9ffd0cb70
[]
no_license
fucknoob/WebSemantic
580b85563072b1c9cc1fc8755f4b09dda5a14b03
f2b4584a994e00e76caccce167eb04ea61afa3e0
refs/heads/master
2021-01-19T09:41:59.135927
2015-02-07T02:11:23
2015-02-07T02:11:23
30,441,659
1
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
Tegucigalpa.py
'''tzinfo timezone information for America/Tegucigalpa.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Tegucigalpa(DstTzInfo): '''America/Tegucigalpa timezone definition. See datetime.tzinfo for details''' zone =...
6881c5dbdac463b32a9390157737119dc193abd5
5a1015df8a60e7cebb13a6238978fcdebce63989
/coindeblend/losses.py
ec27ce87e3dae05d25a317ecf9908b6e9f911c12
[ "BSD-3-Clause" ]
permissive
stef-neu/coindeblend
3c909ba79e25cd8de746d1def554f9d07e7bd871
59b950d7de82814a42671e22497f87f3653942f6
refs/heads/master
2022-12-31T23:11:47.216043
2020-10-17T18:13:54
2020-10-17T18:13:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
losses.py
from keras import backend as K from .utilities import jaccard_coef __all__ = ['jaccard_coef_loss'] def jaccard_coef_loss(y_true, y_pred): """ Loss based on the jaccard coefficient, regularised with binary crossentropy Notes ----- Found in https://github.com/ternaus/kaggle_dstl_submission ...
94de6934d37e43d42ebb2bd3a5b6c04cf7921885
57c5c1c8f8ea791a341acb111618c966ccd9fd35
/mtg_pairings/forms.py
0e0067896635c9cc8f563f69d6b9b6941fc085cb
[]
no_license
MrGreenTea/mtg-pairings
0095dbb34592fed84a2fd6fadff4f6b276aea6f0
a7faa70c33defbfb3649c585898b81ae858b9dcb
refs/heads/master
2021-08-22T04:09:36.710275
2019-05-24T08:32:20
2019-05-24T08:32:20
134,549,402
0
0
null
2021-06-10T20:17:25
2018-05-23T09:55:01
Python
UTF-8
Python
false
false
6,942
py
forms.py
import re import crispy_forms.helper from crispy_forms import layout from dal import autocomplete from django import forms, urls from django.conf import settings from mtg_pairings import models PATTERN = re.compile(r'duel-([0-9]*)-player1') class PlayerField(forms.ModelMultipleChoiceField): def __init__(self, ...
0d0b9cfa680915d94e66c28247c39cb28a871143
a96367d688615570c2db03e48293938c8a8fb3ee
/make_square_path.py
cc0fc9deb813fef170e142e682c33d5900edccce
[]
no_license
ablankespoor/drawing_robot
af5f16bdf022900780489200ce9330be7bc9dc5d
410203a0c4c6f4d798ed92876896d7721f2e2198
refs/heads/master
2020-04-12T01:32:16.349743
2017-06-28T23:55:55
2017-06-28T23:55:55
45,016,949
0
0
null
2017-06-28T21:02:25
2015-10-27T04:26:15
Python
UTF-8
Python
false
false
4,245
py
make_square_path.py
#!bin/python3 # # make_square_path.py # # Defines an array of x,y coordinates for a square and sends # the neccessary commands to the Arduino to move the pen to # each point. # # The Arduino can be on /dev/ttyACM0 or /dev/ttyACM1 # # This code currently communicates to the Arduino that is flashed # with: StepperControl...
2f6530d92c60c4c1a7147ee4f0ae45586660db4e
5b89bec99c3efadcdba9797d350a3dd9d1fd4efc
/src/utils.py
70ea9730f16b75f4ab8a045f7213a5c8d482e7ce
[ "Unlicense" ]
permissive
mixmastamyk/flask-skeleton
ac3f22d98d58e34aeb22eb671c90b288161999e2
d44f97e8e08638dc549774ce0f2acd39e0f84f9a
refs/heads/master
2020-12-02T19:45:46.295433
2017-10-12T23:49:39
2017-10-12T23:49:39
96,386,790
6
1
null
null
null
null
UTF-8
Python
false
false
1,462
py
utils.py
from os.path import exists, join from flask.json import JSONEncoder from ipaddress import _BaseAddress from pytz.tzinfo import DstTzInfo from .main import app from .logcfg import log class CustomJSONEncoder(JSONEncoder): ''' Handles odd datatypes. ''' def default(self, obj): if isinstance(obj, (_Bas...
665909c480a86e0cb4a51cc0d4422838ef7f05d2
1101f6b01f6eae6a7f8e7507c72e4ead0b805856
/doula/tests/test_sites_dao.py
a8d0bce7c939227a5086f00568fe9f0d92913127
[ "BSD-2-Clause" ]
permissive
Doula/DoulaOpen
5dc3744710d273174205a714e815c7d0e4e45963
038460ddfbdfe842d3ce55262f36560607672470
refs/heads/master
2021-03-12T22:54:12.227749
2012-04-23T21:25:37
2012-04-23T21:25:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,704
py
test_sites_dao.py
import unittest from doula.util import pprint from doula.cache import Cache from doula.models.sites_dao import SiteDAO class TestSitesDAO(unittest.TestCase): def setUp(self): Cache.env = 'dev' Cache.clear_cache() self.cache = Cache.cache() def test_cache_store(self): #...
9a8af3e39c8c1d3d392a93280b2eddeef5f40857
0a98fdc1f128de5d5ef4293c8b44062a11dbbec4
/main2.py
e32cf39bf3bdfe2b3ac1d289ccdb745b3abb0a29
[]
no_license
nikhilsasi/project_spy_chat
8c7ab73a8830fe56d416fca928fcf76c84e2e806
7eeb4c6f5981acd88f783e111ec73a145bc4e416
refs/heads/master
2021-04-12T09:26:29.485869
2018-04-11T14:16:08
2018-04-11T14:16:08
126,172,502
0
0
null
null
null
null
UTF-8
Python
false
false
9,701
py
main2.py
from default1 import Spy, friends, ChatMessage, chats from default1 import Spy from datetime import datetime import csv ########################################################################################## def select_friend(): item_number = 0 for friend in friends: print ('%d. %s' % (item_number...
e6b49b61d422b72f30c902f71dd806262c232dcd
c44e8aa5589a3ecb34cd5d45e1c81a54afccf5de
/apps/events/migrations/0001_initial.py
e45a2ffed376d1651fe79d7e8e817ee801701f03
[]
no_license
eedeep/efo
04f156e319e09182850db24ecc3e060bec3868a8
9b9c73df1bbb77d3074a3db75c1877a89a0541ab
refs/heads/master
2021-03-12T20:28:52.452794
2011-03-30T06:50:07
2011-03-30T06:50:07
1,463,005
0
0
null
null
null
null
UTF-8
Python
false
false
13,790
py
0001_initial.py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'EventType' db.create_table('events_eventtype', ( ('id', self.gf('django.db.mod...