blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
49f19b22eda4597712dfc07250ceaf09ab147a11
bd73ba5c38324a269a84d142b620882baf60d692
/venv/bin/email_validator
50cf21439068b73c762a348f1a2b03acdc4d04fb
[]
no_license
ristiriantoadi/hello-world-flask
f9ab81ef78198e4f02c6cba635501a88ead58e5d
f955ed42eafb86e1db9f4e2142cdbf25a655d333
refs/heads/master
2023-02-02T03:46:11.493271
2020-09-13T00:12:26
2020-09-13T00:12:26
323,193,853
0
0
null
null
null
null
UTF-8
Python
false
false
243
#!/home/ristirianto/flask/test/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from email_validator import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ristiriantoadi@gmail.com" ]
ristiriantoadi@gmail.com
0ea91e5a0cf17f128231b27e498ed8faef5c8244
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03131/s109288213.py
d83fd52fecf6c54b08e12805530c326dab31a380
[]
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
199
py
K,A,B=map(int,input().split()) b_count=1 if B-A<=2: b_count+=K else: b_chenge_count=max(0,int((K-(A-1))/2)) b_count+=b_chenge_count*(B-A)+(A-1)+(K-(A-1)-b_chenge_count*2) print(b_count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a9f479690680b69ea0b2486f319a983d4c08409b
6085af347b66144897fec3f92ea0a77ba6a8a66c
/test_sundry/test_get_func_info.py
9e305a2da01b75778649b021a68a75f40d771f5d
[ "MIT" ]
permissive
jamesabel/sundry
44c6c86c4999b5b1e3eccc564c4e8ccd71b7ac93
4db961ac81b85bc4de8888f7dd0b4b49393b4770
refs/heads/master
2022-07-24T14:32:08.357387
2022-07-16T00:00:18
2022-07-16T00:00:18
161,882,254
2
1
null
null
null
null
UTF-8
Python
false
false
652
py
import os from sundry import get_func_name, get_line_number, get_file_name, get_file_path def test_get_func_name(): assert get_func_name() == "test_get_func_name" assert get_line_number() == 7 assert get_file_name() == "test_get_func_info.py" # sometimes we split on /, other times \ file_path = g...
[ "j@abel.co" ]
j@abel.co
a17c64a742a45832da07a086ce11578fdb82b72e
d532b85841b459c61d88d380e88dd08d29836d43
/solutions/1418_display_table_of_food_orders_in_a_restaurant.py
70d472684cea39e66b5cec60e2c88f8f5d159460
[ "MIT" ]
permissive
YiqunPeng/leetcode_pro
ad942468df5506de9dc48a4019933f658e2a3121
4a508a982b125a3a90ea893ae70863df7c99cc70
refs/heads/master
2022-05-15T09:32:02.699180
2022-05-14T16:32:17
2022-05-14T16:32:17
182,453,966
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
class Solution: def displayTable(self, orders: List[List[str]]) -> List[List[str]]: """Hash table. """ foods = set() tables = {} for order in orders: t, f = int(order[1]), order[2] if t not in tables: tables[t] = {f: 1} else...
[ "ypeng1@andrew.cmu.edu" ]
ypeng1@andrew.cmu.edu
35e7b2256e070434131e1b07090feee9b49ca937
6143a962d352796a597eb487ed62052f453ac7a8
/server.py
c4c636f83338e87a860d123c4819c383f20ca2ea
[]
no_license
lesliehwu/vigilant-waddle
cdee17d56021316c07726f94004679664d4bc9ba
3d4fb3bce3ff242e7eb2ef69eaaffd2d48ff6c36
refs/heads/master
2021-07-01T19:24:24.525325
2017-09-19T19:56:39
2017-09-19T19:56:39
104,121,907
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
from flask import Flask, render_template, request, redirect from mysqlconnection import MySQLConnector app = Flask(__name__) mysql = MySQLConnector(app,'friendsdb') print mysql.query_db("SELECT * FROM data") @app.route('/') def index(): query = "SELECT name, age, DATE_FORMAT(created_at, '%b-%D-%Y') as friends_sinc...
[ "mslesliewu@gmail.com" ]
mslesliewu@gmail.com
086d8cae6da67913df161135395792e1586ff1e1
70fe0340caacfcb486d009011111140d6dbc95c0
/train.py
990a9932383d9dd841235ad6270de99b8473dab7
[]
no_license
banxia1994/face_project
ac4c633db2f9935f4375f0791944cbdb31f713bc
38b496830d172caa2594b9401be530aa96d9f2e0
refs/heads/master
2020-04-09T06:45:36.256720
2018-12-03T04:17:58
2018-12-03T04:17:58
160,125,886
1
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
from config import get_config from Learner import face_learner import argparse # python train.py -net mobilefacenet -b 200 -w 4 if __name__ == '__main__': parser = argparse.ArgumentParser(description='for face verification') parser.add_argument("-e", "--epochs", help="training epochs", default=20, type=int) ...
[ "609510481@qq.com" ]
609510481@qq.com
b4cfccfcdf58f7d7d02e45427cdb2030856a238d
75b124f434437e9c16c334bbe1729881b6e15098
/03_find_link_text.py
cd413f84a902cccceef26fb0241c2a15fec96ffe
[]
no_license
Vsempro/stepik_auto_tests_course
d425256d9be4b6fc8a24a063c3253bcb0c0df512
a25d09ae376a2b7e677acf1bd934e89db948597e
refs/heads/master
2020-12-12T04:37:08.721598
2020-01-15T11:27:36
2020-01-15T11:27:36
234,043,246
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
from selenium import webdriver import math import time link = "http://suninjuly.github.io/find_link_text" text = str(math.ceil(math.pow(math.pi, math.e)*10000)) try: browser = webdriver.Chrome() browser.get(link) link = browser.find_element_by_link_text(text) link.click() input1 = br...
[ "noreply@github.com" ]
noreply@github.com
77acb1606e62eb54f28dca7e4a4e7384cf900bb5
968003c0336733ad45ccedbdce23b51a4df89825
/hottbox/algorithms/classification/base.py
1409b932fdf2a49f374989990728adc592324053
[ "Apache-2.0" ]
permissive
hottbox/hottbox
0167ed079ba9608c6c1b3366bc522dabd824075f
26580018ec6d38a1b08266c04ce4408c9e276130
refs/heads/develop
2020-03-07T05:36:06.008704
2020-01-31T12:47:52
2020-01-31T12:47:52
127,300,555
175
25
Apache-2.0
2020-01-31T12:54:16
2018-03-29T14:07:32
Python
UTF-8
Python
false
false
3,711
py
from inspect import signature # TODO: add interface and for checking labels at the training and testing stages (by analogy with sklearn) # TODO: override __repr__ method by analogy with sklearn and how base Decomposition interface. class Classifier(object): """ General interface for all classes that describe clas...
[ "ilyakisil@gmail.com" ]
ilyakisil@gmail.com
39daa4cafa72748800db0f5f17d9eda82df3a111
badb4e42d07253b51355f992389eba2a0db72a83
/transpositionEncrypt.py
714c8bdf9e43a499ee2aa48d69a8f0f46aa6adea
[]
no_license
jikychen/python-Ciphers
fbc756f09f6f1f6add98e8757bc2af53b0f91ed1
8e6d6c97ac861e3b943adefa744607d25bace119
refs/heads/master
2020-04-06T21:09:04.733661
2018-11-20T00:30:33
2018-11-20T00:30:33
157,794,161
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 30 15:22:17 2018 @author: jikychen """ import pyperclip def main(): myMessage = 'Common sense is not so common.' myKey = 8 ciphertext = encryptMessage(myKey, myMessage) print(ciphertext + '|') pyperclip.copy(ciphertext) ...
[ "noreply@github.com" ]
noreply@github.com
3e859dd4d8c7da1dd8f6989bb05ffe7879d48075
505343f6ace00d22f8753c1a943a5794a619e698
/katas/Python/8 kyu/Transportation on vacation 568d0dd208ee69389d000016.py
b4a45d8a8d95e7a907075fea11eac61bcc059cae
[]
no_license
bullet1337/codewars
7652e50bf768bc47976a9124dd98b93602d4d458
ba7f13ddd766158b41e036dae5d6b15f7f08761a
refs/heads/master
2020-03-27T05:04:03.751302
2019-04-30T17:45:39
2019-04-30T17:45:39
145,991,995
1
0
null
null
null
null
UTF-8
Python
false
false
140
py
# https://www.codewars.com/kata/568d0dd208ee69389d000016 def rental_car_cost(d): return d * 40 - (50 if d >= 7 else 20 if d >= 3 else 0)
[ "alichek95@mail.ru" ]
alichek95@mail.ru
250fe633342902421e18eb42c4191f6bdbac2e32
05536893d069dd87256ba74ecdee06bdf481d44b
/args_api/ORAEXA/ORAEXA-ORA11G.py
1a7cf8c1ba362166fa07740f18ac0c81f9aa7995
[]
no_license
TheRockStarDBA/DataBuddy
b2d889e11745d0afe1b39a11aab5945e2bd08cf7
38fa7adfdd228e2b2e4b4408393505163c5702e8
refs/heads/master
2020-12-25T23:27:02.363977
2015-05-28T19:14:12
2015-05-28T19:14:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,347,642
py
#do not change aa={'ORAEXA_Partition_NoClient.ORA11G_Partition': [{'field_term': ('-t', '--field_term', '"|"', 'Field terminator.'), 'num_of_shards': ('-r', '--num_of_shards', 1, 'Number of shards.'), 'pool_size': ('-o', '--pool_size', 1, 'Pool size.'), 'copy_vector': ('-w', '--copy_vector', 'oraexa-ora11g', 'Data copy...
[ "alexbuzunov@gmail.com" ]
alexbuzunov@gmail.com
df02039395f5072d5716d3dda7922462f52db60f
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_QC35.py
47df0d95aeb43e7c3b36125d2db8b174fe628db7
[ "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
2,509
py
# qubit number=3 # total number=9 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
d4657862ef20deab225e80c2bb3cf21957ea5fb1
cfbb92788ccce741228c771c27dc3ad4e77d067d
/pw_test.py
6a25e39e37ad8c214eea30f182c06c1d4d7f1f76
[]
no_license
CharlieWang0207/pw_test
7d86d751180726ad044d4fe377200d8cc7ea477d
79ae9efba1cf5fdb956771fc0b89e05831f6912e
refs/heads/main
2022-12-28T21:01:21.361672
2020-10-09T10:49:54
2020-10-09T10:49:54
302,599,883
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
# 密碼重試程式 # 現在程式碼中 設定好密碼 password = 'a123456' # 讓使用者[最多輸入3次密碼] # 不對的話,就進出"密碼錯誤! 還有_次機會" # 對的話,就印出"登入成功!" y = 2 while True: pw = input('請出入密碼: ') if pw == 'a123456': print('"登入成功!"') break elif pw != 'a123456' and y > 0: print('"密碼錯誤! 還有', y ,'次機會') else: print('"密碼錯誤! 請重新啟動"') ...
[ "a78020702402@gmail.com" ]
a78020702402@gmail.com
954eed4d4d87112e1f438caf96de30d69ea7ae4e
95124cd0baf2d2a777b410a37fd70e3cbb8bcdbf
/python/lib/ptxprint/scriptsnippets.py
990b64fdbf47122eee45c7f7b7ad601010a6a492
[ "MIT" ]
permissive
davidg-sil/ptx2pdf
7b2d052ff39c4df9dc257428943f88599adbe926
0f632b38fbbb0594c83f0b2a89e44dae7f8413e6
refs/heads/master
2022-01-19T15:46:45.322061
2022-01-17T10:26:21
2022-01-17T10:26:21
234,384,549
0
0
null
2020-01-16T18:26:31
2020-01-16T18:26:30
null
UTF-8
Python
false
false
1,961
py
import re from ptxprint.minidialog import MiniCheckButton from ptxprint.utils import _ class ScriptSnippet: dialogstruct = None @classmethod def regexes(cls, model): return [] @classmethod def tex(cls, model): return "" class mymr(ScriptSnippet): dialogstruct = [ Mini...
[ "martin_hosken@sil.org" ]
martin_hosken@sil.org
8050dc76614b274c3c99011b53fa8d657839b7a3
c3c7398ec14865ea34c7f03aa5e012ddb19f0d5b
/DjangoUeditor/adminx.py
e98927add372e607762b88e5328ade5003c6c29b
[]
no_license
mzm5466/blog
0e022f0ce85a0079cb72ffd9f472c7684f94d9fb
13625fe7028a0df11a30d7de32751e34d681de00
refs/heads/master
2021-01-23T16:51:58.296591
2018-11-17T06:05:50
2018-11-17T06:05:50
102,748,039
0
0
null
2018-11-12T23:28:57
2017-09-07T14:36:32
JavaScript
UTF-8
Python
false
false
1,388
py
#!/usr/bin/python #-*- coding:utf-8 -*- #__author__ = 'sai' #DjangoUeditor Xadmin plugin import xadmin from django.db.models import TextField from xadmin.views import BaseAdminPlugin, ModelFormAdminView, DetailAdminView from DjangoUeditor.models import UEditorField from DjangoUeditor.widgets import UEditorWidget from ...
[ "you@example.com" ]
you@example.com
02f61e7c33c8002145324c6554134a49e6f4b2fb
613ab3684010fabe1f2eed5287e1f3e0e0c80786
/load_tnp_from_www.py
39f1841c240e26c94969fae9df4115cd608f764d
[]
no_license
FAV001/DC2Web
e58018feaf0fb23177645e618e5dbb421948e23a
ee6738b7d76c3a364b031e7dc4b2129942802176
refs/heads/master
2020-03-19T02:59:39.361530
2018-11-02T07:37:10
2018-11-02T07:37:10
135,683,655
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
#загружаем типы населенных пунктов и их сокращения с сайта #http://www.oktmo.ru/list_localitytypes/ import requests import pandas as pd from configobj import ConfigObj from bs4 import BeautifulSoup import sqlite3 def get_html(url, proxy=None): try: response = requests.get(url, proxies=proxy) except req...
[ "DVAM-DataAdmin1@DV.RT.RU" ]
DVAM-DataAdmin1@DV.RT.RU
863a7e309e86d4a2e3f35206eccaa80ad883b896
3e602e85ed5da35d7e8fe8f8135af70696894c20
/dynamic_programming/powerset.py
63fe2d7fc13a57c36ea349cf0d9b247f6f79d18c
[]
no_license
aruntonic/algorithms
bd923dd3ca0ca5320c70be02dde3da5600969d36
2ca380cbf2ae848006685ed794110eab90cb3a52
refs/heads/master
2021-01-11T19:47:55.563953
2017-05-17T04:23:19
2017-05-17T04:23:19
79,400,114
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
def powerset(arr): ''' Write a method to return all subsets of a set. ''' result = [] n = 2 ** len(arr) i = 0 l = len(arr) - 1 while i < n: s = [] j = l k = i while k: if k & 1: s.append(arr[j]) k >>= 1 j -=1 result.append(s) i += 1 return result if __name__ == '__main__': arr = ...
[ "arun88kumar@gmail.com" ]
arun88kumar@gmail.com
63cb24f161da839abd46723771588cb20c59b8ce
3af2249ebb499535229476acfb12d946f687d0e2
/Model(含预测结果的csv文件)/农业/RFC.py
58258226f119c2ca29b6ab8f9de7019607501ce6
[]
no_license
pomelo072/Taidi_2021
93255399513b8d61fc759fbe4c19b9b406c1f72b
c4bc35b1ad3e8253a7a7ffcba8788b812aee4306
refs/heads/main
2023-04-17T02:49:18.681757
2021-05-06T05:51:51
2021-05-06T05:51:51
348,326,500
2
1
null
2021-05-06T05:51:51
2021-03-16T11:45:49
Jupyter Notebook
UTF-8
Python
false
false
3,735
py
import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from imblearn.over_sampling import SMOTE # 随机重复采样 from imblearn.over_sampling import RandomOverSampler from sklearn.preprocessing import StandardScaler from sklearn.model_selec...
[ "768124868@qq.com" ]
768124868@qq.com
b621e6465612af50b4acd8e2c532efe05458533a
80d1d657a27241c1544ed2ece856153e25f0276c
/manage.py
874ddec85c06ae26284267bff871f0718347a3e2
[]
no_license
Mithamo-Gichuki/personal_portfolio_website
b9b312f12c1240a13614c641d4611486adea3e39
31f1bac56e572c4b89985f2e25d7879d3d7fbf39
refs/heads/master
2023-04-04T09:07:10.693982
2021-04-14T13:55:37
2021-04-14T13:55:37
353,815,061
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'personal_portfolio_website.settings') try: from django.core.management import execute_from_command_l...
[ "emmanuelmithamo@gmail.com" ]
emmanuelmithamo@gmail.com
a76bf89cd9ee66550c29ffffd5bd08c7c8ea0fbd
3cb6bf94471cf493963c62103bffd3522d432a1e
/backend/users/migrations/0002_auto_20210110_2318.py
5bf0cc03769bacd76deade31efff899f15fa33a4
[]
no_license
crowdbotics-apps/triss-tv-app-23760
be8603d67beacf744474d8bf193d629188e209a4
a2d50e494b7b601657d70b970d6d161ba3c4bd3f
refs/heads/master
2023-02-13T14:18:11.525879
2021-01-10T23:19:06
2021-01-10T23:19:06
328,499,013
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
# Generated by Django 2.2.17 on 2021-01-10 23:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='email', field...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
120d78c0d3f9f664027a0c97f03bb36df8fc2591
15b0edc592e6e1e67b2bd34508e1ddb18cf32f2d
/tests/common/test_util.py
d6ee9b67a1f8844f138341e441ea8ccbf6a938e3
[]
no_license
ankita0805/gemstone
f77add8980690f27ec0f90b09abc8e204275e32a
2cf9bc8c58b280f2bcfe07279a86af3533b26898
refs/heads/master
2020-05-13T02:21:59.392622
2019-04-24T17:56:47
2019-04-24T17:56:47
181,585,423
0
0
null
2019-04-16T00:30:52
2019-04-16T00:30:52
null
UTF-8
Python
false
false
663
py
import tempfile import pathlib from gemstone.common.util import ip_available, deprecated def test_ip_available(): with tempfile.NamedTemporaryFile() as f: path = pathlib.Path(f.name) parent = path.parent assert parent.is_dir() assert ip_available(path.name, [str(parent)]) asse...
[ "raj.setaluri@gmail.com" ]
raj.setaluri@gmail.com
4e5585f6693e4a41b66fa0e9cfebb949f5c8b075
64e862cee2049e10c1956ccf40b01d902eaa8c47
/math/stochastic-simulations/flipcoins.py
bd7f2ad17c66f8a9bc8109ce16c8e76e3717f754
[]
no_license
GiliardGodoi/algorithms
c6db941da6220110b37f48c587edf053bc879fb7
1c71be16032111bf972132bbcbca513f8261504a
refs/heads/master
2023-03-14T20:22:10.423248
2021-03-21T15:26:19
2021-03-21T15:26:19
57,597,665
0
0
null
2020-06-15T17:30:18
2016-05-01T12:33:01
Python
UTF-8
Python
false
false
684
py
''' Simulation model for flipping a coin. ''' import random def flip(numFlips): ''' Simulates flipping a coin numFlips times, and returns the fraction of flips that came up heads. ''' heads = 0.0 for i in range(numFlips): if random.random() < 0.5: heads += 1 ret...
[ "giliardgodoi@alunos.utfpr.edu.br" ]
giliardgodoi@alunos.utfpr.edu.br
5c1262d982e0f6f45641b15959d0970ac3994a78
312d40d6023858891dd32bda67579f7284a54c15
/29/00/add_history.py
2bd0fedf2437bfc094faa83500c7f3938f0ff799
[ "CC0-1.0" ]
permissive
pylangstudy/201708
b67a49f091f5f949954e7b9a910a07761fe9a7d1
126b1af96a1d1f57522d5a1d435b58597bea2e57
refs/heads/master
2021-01-01T20:49:15.973299
2017-08-31T00:18:55
2017-08-31T00:18:55
98,936,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
import readline import datetime history_file = 'history_file.txt' readline.set_history_length(1000) readline.read_history_file(history_file) print(f'readline.get_history_length():{readline.get_history_length()}') #ファイル保存はせず、履歴に追加する for i in range(5): readline.add_history(f'{datetime.datetime.now():%Y-%m-%d %H:%M:%S.%f...
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
0a0e2bb06bc328b2ba512a5ef3b82640a26459c8
fe6ab7e2d4ed0e9b6faf5cde93ccf929be81eaad
/account/urls.py
10afa751cb72a70f155a0b10cb30f8d1b6d33b30
[]
no_license
hqqq123/TTMS
f4cc5b70252e0cef3f8f424ff3c8ed918e0c9357
0e66bf05a7a927671464c659917d26543f8d354d
refs/heads/master
2020-05-24T16:53:11.467748
2019-05-18T14:59:38
2019-05-18T14:59:38
187,370,658
2
1
null
null
null
null
UTF-8
Python
false
false
352
py
from django.urls import path from account.views import add, list, edit, delete, pwd urlpatterns = [ path('list/', list, name='account_list'), path('add/', add, name='account_add'), path('edit/<int:id>/', edit, name='account_edit'), path('delete/<int:id>/', delete, name='account_delete'), path('pwd...
[ "1658680376@qq.com" ]
1658680376@qq.com
ef0e7662cf68f50f0171238e20d1f87ea48a098b
fb56f2991b30c43e35d65b1d8a7745206f9bb691
/study/forms.py
4bc2d86b60ccfeed29f469e656939038602094a9
[]
no_license
tmd2135/my
9a2c3dafb4b13d862384f61fe152b22d8c3730cb
bd5eb3dbb2f295f881a34cc0908c8a0fcbdc9d16
refs/heads/test
2022-11-24T21:48:08.298179
2019-08-07T16:28:46
2019-08-07T16:28:46
201,086,588
0
0
null
2022-11-22T04:10:43
2019-08-07T16:23:48
Python
UTF-8
Python
false
false
273
py
from django import forms from .models import Group class GroupForm(forms.ModelForm): class Meta: model = Group fields = ['group_name', 'group_code'] class RegisterForm(forms.Form): group_name = forms.CharField() group_code = forms.CharField()
[ "tmd2135@naver.com" ]
tmd2135@naver.com
d83ac06d285a35f441a9aea6faf9171a827f524c
18f0ad99e21e2e35126f8c3c28079d358fa2129a
/PyGamer_Improved_Thermal_Camera/thermal_cam_converters.py
3d9c465a60380d212f46c849952c59d63ac87eb6
[ "MIT" ]
permissive
ladyada/Adafruit_Learning_System_Guides
9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f
6d76801878cbf65132ccea950dc47ae842c73dcd
refs/heads/master
2023-08-20T20:30:42.910576
2022-01-10T20:28:11
2022-01-10T20:28:11
115,837,894
13
2
MIT
2020-03-31T23:23:45
2017-12-31T02:34:47
C
UTF-8
Python
false
false
268
py
# thermal_cam_converters.py def celsius_to_fahrenheit(deg_c=None): # convert C to F; round to 1 degree C return round(((9 / 5) * deg_c) + 32) def fahrenheit_to_celsius(deg_f=None): # convert F to C; round to 1 degree F return round((deg_f - 32) * (5 / 9))
[ "noreply@github.com" ]
noreply@github.com
3c8c38ea7cc58deaec59f3c9d44ae9a8059ae81c
367d2670c75d385d122bca60b9f550ca5b3888c1
/gem5/env/lib/python3.6/site-packages/celery/security/utils.py
4714a945c6eed54165b302ff53b82d81957f194c
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
Anish-Saxena/aqua_rowhammer_mitigation
4f060037d50fb17707338a6edcaa0ac33c39d559
3fef5b6aa80c006a4bd6ed4bedd726016142a81c
refs/heads/main
2023-04-13T05:35:20.872581
2023-01-05T21:10:39
2023-01-05T21:10:39
519,395,072
4
3
Unlicense
2023-01-05T21:10:40
2022-07-30T02:03:02
C++
UTF-8
Python
false
false
845
py
"""Utilities used by the message signing serializer.""" import sys from contextlib import contextmanager import cryptography.exceptions from cryptography.hazmat.primitives import hashes from celery.exceptions import SecurityError, reraise __all__ = ('get_digest_algorithm', 'reraise_errors',) def get_digest_algorit...
[ "asaxena317@krishna-srv4.ece.gatech.edu" ]
asaxena317@krishna-srv4.ece.gatech.edu
c102131c6d4a516bfdb9a46b2857ea494a2a4e61
2dfedaf52ea247e7545bcf1b62e78e306dbb369f
/tele_theta_gang_bot.py
a352295798f52ff7912945a3006f56b417923c49
[ "MIT" ]
permissive
nasgoncalves/trading-utils
5602d6e52d6b62f138d38fe80877af0d0bec58e3
aa9d3cdb6e9052ff1022a23d5074ec1c540f9161
refs/heads/main
2023-04-19T19:47:16.050050
2021-05-17T18:53:13
2021-05-17T18:53:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,794
py
import logging import os from datetime import datetime from telegram import Update from telegram.ext import ( Updater, CommandHandler, MessageHandler, Filters, CallbackContext, ) from common.bot_wrapper import start, help_command from common.environment import TELEGRAM_THETA_GANG_BOT from common.e...
[ "575441+namuan@users.noreply.github.com" ]
575441+namuan@users.noreply.github.com
c88e2f5ce525712cffc7291eb254f0f2c831710b
0499622f93b196f828db7443c05e029fb07f7819
/miic/src/app/course/serializers.py
eba8782401a4b63095df45533942a46179813cc0
[]
no_license
kradalby/enigma
ba868d09fb86151de8bab60f2e8c96621d96817c
1be944ae0a731fc39fdcb2733661520060c8b8f9
refs/heads/master
2021-03-22T05:00:31.626446
2018-12-21T11:47:27
2018-12-21T11:47:27
88,087,880
1
1
null
null
null
null
UTF-8
Python
false
false
199
py
from rest_framework import serializers from .models import Course class CourseSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Course field = '__all__'
[ "kradalby@kradalby.no" ]
kradalby@kradalby.no
8a6397825677928feb0f49697abb31b1d7e4c532
99bf1d35c0e2c7e6adc1be3cefbd48bb095bb268
/gpt2test/generate.py
e750864d7aaf8f0d19aa4aa487efb5f4c3ca79d2
[]
no_license
liuzl/dl4nlp_misc
341582993cd20d2f83c425365449408360297619
9ec633fa3c83a58ee2a01cbac3bedb31301afe4a
refs/heads/master
2021-06-24T07:36:15.724299
2020-11-06T02:10:04
2020-11-06T02:10:04
151,358,554
3
2
null
2019-11-23T09:45:59
2018-10-03T04:01:31
Python
UTF-8
Python
false
false
4,000
py
import torch import torch.nn.functional as F import os import argparse from tqdm import trange from pytorch_transformers import GPT2LMHeadModel import common def main(): parser = argparse.ArgumentParser() parser.add_argument('--device', default='0', type=str, required=False, help='生成设备') parser.add_argume...
[ "zhanliangliu@qq.com" ]
zhanliangliu@qq.com
25a388bbd5ef859cd4730cfd6d73e0b9bbc146e6
8faced272a8c636d22c95da0038b8bb5688c1a90
/book/urls.py
85bf89e1fecf415159d6251f4536b080eefa448c
[]
no_license
aminalakhsham/py-django-restframework
71bd87cc929e66482c69a63d57883272608a55bd
a72e0e1ef0ddb60ff71a14725764629ccf1b6310
refs/heads/master
2020-06-17T05:06:04.840574
2019-07-08T12:27:15
2019-07-08T12:27:15
195,806,963
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from django.urls import (path, include) from rest_framework.routers import DefaultRouter from .views import (BookView, BookOfferView, book_filter_view) router = DefaultRouter() router.register('offers', BookOfferView) router.register('', BookView) urlpatterns = [ path('filter/<category>', book_filter_view), ] u...
[ "aminking140@gmail.com" ]
aminking140@gmail.com
73044076f89246cdbb0e952f21bcbbd721fab20d
53401003f723466899a73a9243ce38d6485bfc3c
/insert_key_value_pairs.py
ce3fda2855a74e5e79e2b50543a1ebe57f8c9f8a
[]
no_license
cu-swe4s-fall-2019/trees-tacaro
1d22454b447c57142fb33b45ea38eeed0417ef09
f4d7bc299901c9fef4a7bd83127536aea3f251c9
refs/heads/master
2020-09-03T01:13:26.712087
2019-11-09T01:43:29
2019-11-09T01:43:29
219,348,190
0
0
null
2019-11-09T01:43:30
2019-11-03T18:43:23
Python
UTF-8
Python
false
false
2,364
py
import argparse import sys import os import avl import time import binary_tree as bt from hash_tables_tacaro import hash_tables as ht from hash_tables_tacaro import hash_functions as hf def main(): tstart = time.time() parser = argparse.ArgumentParser( description='', prog='') ...
[ "tristan.caro@colorado.edu" ]
tristan.caro@colorado.edu
e7673237bdf851404789c8dbb70c90927bdb45c5
cffcbbbb5f218d6e631e8c073f9d81798709a1ec
/vui_notebook.py
16e7a834b15409b2944287867f17df2b9840b23b
[ "MIT" ]
permissive
willfehlmusic/AIND-VUI-Capstone
e00b1bd10939c9f74a66ab280ba496aaf8ac5295
e617013d4a1a7eb36dade67f63d34f9a74e7fd25
refs/heads/master
2020-03-27T23:11:24.466369
2018-09-04T06:37:44
2018-09-04T06:37:44
147,299,294
0
0
MIT
2018-09-04T06:36:43
2018-09-04T06:36:43
null
UTF-8
Python
false
false
38,657
py
# coding: utf-8 # # Artificial Intelligence Nanodegree # # ## Voice User Interfaces # # ## Project: Speech Recognition with Neural Networks # # --- # # In this notebook, some template code has already been provided for you, and you will need to implement additional functionality to successfully complete this proj...
[ "noreply@github.com" ]
noreply@github.com
15d7b38b482c7ac01f661c358d1008a12cc55c62
e2b5e937c99429e3e5ea6ab6110dba5609e5597e
/stars.py
bc46b87a4632497c4978e597228156576a5a6c43
[]
no_license
CleaverPlease/pythonassingments
ef1aed55745a92d0b3faad62059dc3f54bf16c3d
18993874fb5c688ca1ba0d2f3d3f2b96bd1f4008
refs/heads/master
2016-09-12T13:11:38.354822
2016-05-04T01:13:44
2016-05-04T01:13:44
57,978,834
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
#part one def draw_star(xlist): for item in xlist: print item print '*'*item draw_star([1,7,5,3]) #part two def draw_star(xlist): for item in xlist: if (isinstance(item,int)): print "*"*item # elif (isinstance(item,str)): else: print item[0]*len...
[ "NG@GuoJianNgsMBP.home" ]
NG@GuoJianNgsMBP.home
b86a9562f3902796cc68cf7e02f02d019b41d8ab
0a8edda10672e26aa7f3da6f02cff73a2fcb0d98
/backend/manage.py
a8760740a89a4369038a1ab1b3a99221b669df50
[]
no_license
crowdbotics-apps/ferpa-22254
54de3adca4816f59a5ce1b98cc99202416fb336f
b77ac0392302f1bc94e73dbc4cc68d65ede36401
refs/heads/master
2023-01-03T07:55:12.034687
2020-11-03T14:47:00
2020-11-03T14:47:00
309,697,677
0
1
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ferpa_22254.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
318a349b9adca6893c3444dae467a9da7a59a21b
929cd9461a1f4baf5a2721453299caa3e4e72ed0
/artifacts/ldfu_spider_artifact.py
9a33d1a025610ca1dd394effa537b7ccdc4bb1b4
[ "MIT" ]
permissive
ValentinSiegert/WAT
dde84413d3b243800f434b29b46216dff14205e8
f55f355ed7bb8e5483b92a7da8235ca6b78e7fee
refs/heads/main
2023-07-18T10:02:19.874586
2021-08-23T16:12:19
2021-08-23T16:12:19
391,750,427
1
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
import os import subprocess import sys import multiprocessing as mp from pathlib import Path class LDFUSpider(mp.Process): def call_ldfu(self, query_file_location, credentials): cred_path = self.ldfu_location/'ldfu.properties' with open(cred_path, "w+") as cred_file: print(f'ldfu.http....
[ "valentin.siegert@informatik.tu-chemnitz.de" ]
valentin.siegert@informatik.tu-chemnitz.de
8d3e9f825438bdb4df171dce98d272fe3c4415a8
9d2b09b26f994d6b8a19d633434a093540b84bb8
/leet/houseRobbing2/houseRobbing.py
b4958c0ab3c9c11fcae8008aaa66cdc977878e25
[]
no_license
jmloewen/snippets
1483e7e6a680e63840c147b4ac420617390b15cc
437f629a3bb7f9d5092ed5ea5fb902187f0b5a37
refs/heads/master
2021-06-13T21:02:34.244880
2019-11-16T22:59:55
2019-11-16T22:59:55
145,338,495
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
#A 100% solution, based off of the solution from HR1 and the hints, just done twice on two different indices then compared class Solution(object): def rob(self, nums): #0 and 2 or 1. #if take 1, 1 > (0 + 2) therefore 1 + 3 > (0 + 2), or 1 + (4 + ...) > (0 + 2) if len(nums) == 0: ...
[ "jonoloewen@gmail.com" ]
jonoloewen@gmail.com
9d76fc5085ce821e415d188a014ea233b89030da
08f11407616232a63d07cbc7a347eac1dc11aa4d
/solutions/python/euler193.py
8ae4ef3aa177fd843dd18ae3f3b61cac55147e24
[]
no_license
cwgreene/project_euler
f1daf951661285f693159e02f9ac035a25b7fea8
53499f6400fa1995bd8a9c803f30f5ccc38ccafd
refs/heads/master
2021-03-12T21:23:42.169902
2015-01-05T02:26:05
2015-01-05T02:26:05
1,182,681
1
0
null
null
null
null
UTF-8
Python
false
false
525
py
import primes import math def squarefree(max): primes.init(int(math.sqrt(max))+1) squareburdened = 0 for p in primes.primes_list: p = int(p) already = squareburdened/p**2 thisnum = max/p**2 squareburdened += int(thisnum-already) return max - squareburdened def check_list(alist): def is_squarefree(n): f...
[ "archgoon@gmail.com" ]
archgoon@gmail.com
e37b3db5d3c8529090b096038973204662f9c5af
333c482a3b7d872af6c6831d19f080b60f7f1add
/scripts/config.py
9e1000af78a4c60202045f5d4a9798b02f76a158
[]
no_license
v-sopin/crypto-notifications
5a92cb1f9380b38949fcd65462cf336ca17e66b6
123f4089277c0fd7d980fb6af428c6aed40065e5
refs/heads/main
2023-08-01T13:58:28.117365
2021-09-20T12:15:29
2021-09-20T12:15:29
408,425,108
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
DEBUG = False if DEBUG: TOKEN = '' else: TOKEN = '' DB_NAME = 'cryptonotificationsdb' if DEBUG: DB_PASSWORD = '' DB_HOST = 'localhost' DB_USER = 'root' else: DB_PASSWORD = '' DB_HOST = 'localhost' DB_USER = 'root' COINMARKETCAP_API_KEY = ''
[ "sopin.02.09.21@gmail.com" ]
sopin.02.09.21@gmail.com
a7c91ccdca3907968a379edf1b5c5e93736b9841
1aaba2be0479b43a76f3e85ea62cad8d42827d49
/lib/pymedphys/_experimental/streamlit/apps/wlutz/_config.py
729cb4145a1f603bd63282aa604a23adbd1edcdf
[ "Apache-2.0" ]
permissive
changran/pymedphys
a44a9aa9ec375c17ea73815c1a8e2a6a5a002c1e
164a7a5c6051ab4c8fd6efdb79c3bfb0684b65df
refs/heads/main
2023-07-30T21:32:07.697743
2021-09-10T11:37:02
2021-09-10T11:37:02
407,394,958
1
0
Apache-2.0
2021-09-17T03:42:49
2021-09-17T03:42:48
null
UTF-8
Python
false
false
426
py
import pathlib import pymedphys from pymedphys._streamlit.utilities import config as st_config def download_demo_data(): cwd = pathlib.Path.cwd() pymedphys.zip_data_paths("wlutz-demo-files.zip", extract_directory=cwd) return cwd.joinpath("wlutz-demo-files") def get_config(demo_mode): if demo_mode:...
[ "me@simonbiggs.net" ]
me@simonbiggs.net
09459248c37e9333539416260eb15c9b57dbf4b0
ebdc3f60fdf9950fba45078ffa520ac9a53555f2
/substring.py
9fa1795715be2340d5f396a3b6dcf7318ee25f87
[]
no_license
FaheemuddinKhan/Finding-smallest-sub-sequence-from-a-given-string-which-contains-all-the-characters-from-given-char-
46a0e4c1e7d35823e65e3ffe38d492267a8b2f7c
325edc51af851f3a59ecee4ac1edc9a490dcfad0
refs/heads/master
2020-05-02T14:46:39.073162
2019-03-27T16:03:05
2019-03-27T16:03:05
178,020,927
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
#Inputs characters = ['x','y','z'] stringArray = "xyyayyayz" # flags subStrings = [] subString = [] def findMinSubsequence(characters,stringArray): minLength = len(characters) maxLength = len(stringArray) xfound = yfound = zfound = 0 minSubsequence = [] for k in range(minLength,maxLength+1):...
[ "faheemuddin@outlook.com" ]
faheemuddin@outlook.com
986e6e6eb3998d4133c4a6311611a603171c3468
241ec61ca1f8b615242ad36e7aede9a54f421818
/Python/easyioi-0.1.0/easyioi/easyioi.py
ad59e2dcd9dc7443c4fb2d134ba0b98b194fc61e
[]
no_license
lhermoso/EasyMSXRepository
655695e811ac38d0c08f75c79bfdb00a7bb9f3bb
460d34ee493cf3b2d8559db6e7aa76a1f10d93ce
refs/heads/master
2022-03-26T16:59:09.020119
2019-05-16T13:35:22
2019-05-16T13:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,312
py
# easyioi.py import blpapi from .security import security # ADMIN SLOW_CONSUMER_WARNING = blpapi.Name("SlowConsumerWarning") SLOW_CONSUMER_WARNING_CLEARED = blpapi.Name("SlowConsumerWarningCleared") # SESSION_STATUS SESSION_STARTED = blpapi.Name("SessionStarted") SESSION_TERMINATED = blpa...
[ "noreply@github.com" ]
noreply@github.com
ec374bf3fdb296ed277d629d332a16e10b662344
390a705b795ce223a932cb9fed39f28dcb96933a
/fts/test_ph4_4addcommittee.py
c0ce75fb2fc9e4ab0d706f3e4bc2fd4326cf9874
[ "LicenseRef-scancode-public-domain" ]
permissive
DonaldMcC/gdms
d74765b4c2356b709adf44438fe929f1e848117a
ee427c28435c9fc76b5c81835fd749789529dd1a
refs/heads/master
2021-06-22T17:36:08.806735
2021-06-18T18:35:39
2021-06-18T18:35:39
30,919,501
6
3
null
2016-05-30T21:09:09
2015-02-17T14:05:53
Python
UTF-8
Python
false
false
4,258
py
# These tests are all based on the tutorial at http://killer-web-development.com/ # if registration is successful this may work but lets # try and get user logged in first from functional_tests import FunctionalTest, ROOT, USERS import time from selenium.webdriver.support.ui import WebDriverWait class AddEvent (Fun...
[ "donaldm2020@gmail.com" ]
donaldm2020@gmail.com
5b6c952c9adf8ea0f21fd3baabc44f63b2c8337b
e37bbba6d17747c753614bd829bef2e256728473
/Tutorial/05_graph&pandas.py
8e9216309e7cc95f4cea55fb173462254228045d
[]
no_license
lengfc09/learnPython
c292c861590c0798268a6a760fb07dff39aaeb70
9c67a46f1bb11c03e494de854020e40602ffeafd
refs/heads/master
2021-01-01T16:59:15.695633
2017-09-13T07:01:22
2017-09-13T07:01:22
97,970,620
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
import pandas as pd import datetime import numpy as np import matplotlib.pyplot as plt # dates = pd.date_range("20130101", periods=6, freq='M') # print(dates) # timdeta = dates[4] - dates[1] # print(timdeta) # df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list('ABCD')) # print(df['A']) # print...
[ "chenyyfan@163.com" ]
chenyyfan@163.com
0c7a2e5aca3dd8f431def73dd1ccb655570c9897
84297380d00453e71f65c591dca046bd41a32184
/ABC/ABC165/A.py
52ca6878fd2f4b0799ac8c12ddf0293950e1d009
[]
no_license
daiki1998/atcoder
a5ef25245b1bbc3a5e33044846a3c16213603bd3
d864a7cb11e41dbf6a691f5d128fdfe122b07046
refs/heads/main
2023-03-06T22:55:29.863716
2021-02-18T12:01:24
2021-02-18T12:01:24
323,401,954
1
0
null
null
null
null
UTF-8
Python
false
false
135
py
K = int(input()) A, B = map(int, input().split()) res = "NG" for i in range(B+1): if A <= K*i <= B: res = "OK" print(res)
[ "shimokawadaiki@shimokawadaikinoMacBook-Pro.local" ]
shimokawadaiki@shimokawadaikinoMacBook-Pro.local
73a164e0860aa026fc709793d86bfb44df7383ef
b841bcf89e493f0144e3b50329054cd592543edf
/fractalKoch/koch.py
9e4dec187efdc5bc61285fd79f6dda253021244f
[]
no_license
martybillingsley/tinkRworks
87535e0681e73332b73080af8a8417979514de7b
0ecfa4d09328d36f07826e2d2281bc6d39e39611
refs/heads/master
2021-06-21T21:08:08.574782
2021-01-08T04:04:16
2021-01-08T04:04:16
178,293,291
1
0
null
null
null
null
UTF-8
Python
false
false
262
py
from turtle import * # define your drawLineSegment() function here # move the turtle to a good starting position penup() goto(-200,0) setheading(0) pendown() # call your function here # this line is needed to make the GUI window work properly done()
[ "noreply@github.com" ]
noreply@github.com
90248ea8ac3c346f7327722ae33c64935738b31e
a24e34fd3a40d74b487cac0db7a26e3c15eec3f2
/feature_experiment/__init__.py
301895c9656dc07cfcd0f5fc0018fd5754d3b013
[ "MIT" ]
permissive
PKQ1688/image_retrieval
7e51a4e56dea7bd418dd658a9b95f87c4f7d36e5
c9269e2b1dc6bfe3c1f4c37e1fb47d9697cb4872
refs/heads/master
2023-02-01T02:26:59.314285
2020-07-23T05:40:26
2020-07-23T05:40:26
271,463,472
5
0
null
null
null
null
UTF-8
Python
false
false
40
py
# -*- coding:utf-8 -*- # @author :adolf
[ "zhutaonan@i-i.ai" ]
zhutaonan@i-i.ai
b5ee6d5a3b546ae9bfd3fe883befddb05375e281
4324d19af69080f45ff60b733c940f7dc1aa6dae
/google-ads-python/google/ads/google_ads/v0/proto/resources/topic_view_pb2.py
8479d48ea067e902b438526e2c67da3d9c2985f8
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
ljborton/Forked_Work
cc8a3813c146ea4547aca9caeb03e649bbdb9076
7aaf67af8d9f86f9dc0530a1ad23951bcb535c92
refs/heads/master
2023-07-19T22:26:48.085129
2019-11-27T02:53:51
2019-11-27T02:53:51
224,321,748
0
0
null
null
null
null
UTF-8
Python
false
true
3,068
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v0/proto/resources/topic_view.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
[ "noreply@github.com" ]
noreply@github.com
54b87401b75ae22e621b29e6ad92251e13f7d0f1
a8eb12fd16dc4eb672e97919674ad1efeb148fbf
/service/timers.py
cc534538f7da45bc28b698c7b12676fcae23c17e
[]
no_license
ojarva/lightcontrol
44354a2c48de0f883969462f9464abae348069dc
24584b7ee4692979368646b0f26a0519af42db8e
refs/heads/master
2021-01-10T05:50:10.361198
2016-04-16T17:21:00
2016-04-16T17:21:00
55,075,991
1
0
null
null
null
null
UTF-8
Python
false
false
4,227
py
"""Light timers - handles timers Usage: timers.py run [--debug] [--redis-host=<hostname>] [--redis-port=<port>] """ import datetime import docopt import json import logging import multiprocessing import redis import threading import os class LightTimers(object): def __init__(self, **kwargs): redis_...
[ "olli.jarva@futurice.com" ]
olli.jarva@futurice.com
18eb0357aa6a85695457a919ba053a090a8bb0f7
449d5139898c6ec75b2dd2821015574688eaa767
/RemoteController.py
680c503d499deb62318a9571f7de96bf022f17ae
[]
no_license
pvshalini/SDN-NFV-Network-Implementation
96418036687774fddbe45414b483d8aaf509b149
4c7826df9a0cf5947efaaa316232bfe48fe54288
refs/heads/master
2020-12-29T16:37:41.120974
2016-12-30T02:20:08
2016-12-30T02:20:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
#Headers and imports from l2_learning import LearningSwitch from l2_learning_test import LearningSwitch_test from Firewall import Firewall from Firewall import Fw1 from Firewall import Fw2 from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.util import dpid_to_str from pox.lib.util import st...
[ "noreply@github.com" ]
noreply@github.com
955027d13190a1d8fb4975df494524c72df41a53
3402f02c81f733199c29a6b33b7c3018fd9bbc5d
/in1.py
d2e121d1f080cef512fd0fb0c964c58cf1e57e73
[]
no_license
ChaeLinYeo/Gender-Classification
822789adb905adc9558b521a1c9f317a1d0f2079
b08535051695e73337892f2a89b8d3f263a16835
refs/heads/master
2022-12-05T13:43:14.853917
2020-08-26T14:07:44
2020-08-26T14:07:44
290,511,112
0
0
null
null
null
null
UTF-8
Python
false
false
2,527
py
# import numpy as np # from PIL import Image # import os # path = '/Users/macbook/Desktop/man' # count = 0 # for item in os.listdir(path): # print (item) # imgpath = path +'/' + item # img = Image.open(imgpath) # arr = np.array(img) # print (arr) # print ('--------------') # img = Image.fr...
[ "noreply@github.com" ]
noreply@github.com
0d9674da2268dc8bc4f592cde5ff581b1e14197b
9f5a15ef89307f0f6b784f51e229b1e614043116
/new_agent_deliveries/src/lib/Deliveries.py
4ff2086b42f87957fce85b4f4156f951e6cf5c36
[]
no_license
petypi/odoo_Automated-scripts
388b519302aa317c7410ea361bd7ffe9f0a94c09
4541b4a0a0856207ece466d92e0117d4a25fb970
refs/heads/master
2020-03-20T18:29:10.747262
2018-06-16T15:33:38
2018-06-16T15:33:38
137,590,215
0
1
null
null
null
null
UTF-8
Python
false
false
5,155
py
""" Main library for processing the deliveries intended for new agents """ import psycopg2 from datetime import datetime, timedelta import pytz from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.mime.text import MIMEText from email import encoders as Encoders import ast impor...
[ "petypi@gmail.com" ]
petypi@gmail.com
699b4704ebf635c6003115c3036eecf1060a2e4c
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/strawberry/experimental/pydantic/_compat.py
acc666f6203a928f1eb2d7b33d69d2381976ca54
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
3,165
py
import dataclasses from dataclasses import dataclass from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Type import pydantic from pydantic import BaseModel from pydantic.version import VERSION as PYDANTIC_VERSION if TYPE_CHECKING: from pydantic.fields import FieldInfo IS_PYDANTIC_V2: bool = PYDANTI...
[ "noreply@github.com" ]
noreply@github.com
3e84edaa36ed1cd956822b60eb64bac81c93dd3c
625ccb2daedc094862cda12eb8805884912462c2
/basset/vConv/singlelayervConv/dataset.py
713237edb9a6ae7fd9a5cb7feb2786fcc9b1d128
[]
no_license
shunsunsun/vConv-Figures_and_Tables
4a5bf20f18aa6f44e6ec2fcc9f265aa510e71928
e1813d43352eb763fd0c8b5b90b4c92e83792fe4
refs/heads/main
2023-04-13T11:56:11.641674
2021-04-30T02:53:44
2021-04-30T02:53:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,716
py
# Copyright 2017 Calico LLC # 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
[ "gaog@mail.cbi.pku.edu.cn" ]
gaog@mail.cbi.pku.edu.cn
8d068a54968f6401b2872184a515edcb3dd6d3bd
c3720d6b4e3dec70b7e1106d8999094842de747e
/python/gui-tk/mobile_location.py
73bb698e1e8d8014e0f37ef4aaf32f1a65945737
[]
no_license
shgy/code-snippet
106015a130987fb3425156606dbb585d1f640593
51478cc733cb05c8ec2e8115cede9924c36c2094
refs/heads/master
2022-07-18T15:02:43.240605
2021-11-28T14:36:16
2021-11-28T14:36:16
64,906,134
5
0
null
2022-07-01T17:39:31
2016-08-04T05:47:15
Lua
UTF-8
Python
false
false
5,111
py
# -*- coding: utf-8 -*- """ 查询手机号码归属地 curl --get --include 'http://apis.baidu.com/apistore/mobilephoneservice/mobilephone?tel=15846530170' -H 'apikey:b43363e60b213e170906abb0e844c3d1' """ # import requests # requests.get(url='http://apis.baidu.com/apistore/mobilephoneservice/mobilephone?tel=15846530170',{''}) im...
[ "guangying.shuai@56qq.com" ]
guangying.shuai@56qq.com
c25fc95d3fd80a2aaae02c8f79e75ce5c24a2c92
4f8a6af26d8220238e608577202ffc88c14f403e
/pedido/migrations/0002_remove_pedido_numero.py
e3535aa67a570fbec3c9f9f6c9be5a3d236b2e69
[]
no_license
ryujiin/dc
87338fb9820d8768391ea65c5b6cc1a6ea94db4f
b6f5b6a8624611f6513fd581457f171783800935
refs/heads/master
2021-01-01T06:33:38.940622
2015-08-24T02:42:55
2015-08-24T02:42:55
31,668,034
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pedido', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='pedido', name='numero...
[ "ryujiin22@gmail.com" ]
ryujiin22@gmail.com
afeb8c78ef99eef3804d8bf024a6ca60d924abea
f918b6277efde8791189acb16caffbd8547592f3
/tts3/detector.py
9971a55ec8568efeb8ef9129b83c7318954926a9
[]
no_license
Steven-Eardley/tts
e1e038e3f40106f35c11624a2acc285716306161
dc07c8ba5d57ba915c67f758955f534c5673cd80
refs/heads/master
2016-09-06T18:16:26.516823
2013-01-27T14:53:51
2013-01-27T14:53:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,812
py
# Plagiarism Detector for TTS Assignment 3 # Steven Eardley s0934142 import re import random as r from string import punctuation from glob import glob from sys import argv, exit from itertools import combinations from nltk.corpus import stopwords from nltk.probability import FreqDist from difflib import SequenceMatche...
[ "s.r.eardley@sms.ed.ac.uk" ]
s.r.eardley@sms.ed.ac.uk
c47e00714d0ec55f4ab336666770a0e8749522cb
d4d2f511d4196d59617ffcd4351cb6af2e139d11
/python_code/main.py
f0a362aea6e0dcd5b179a043101f41d7bceef816
[]
no_license
astsbins/learn-terraform-gcp-functions
83023529c12f9aa16385bcc05d3a6e6c6ed46534
52fe7c6e4eb0edf399e4c6d26492f95638473d61
refs/heads/main
2023-07-29T21:18:27.567909
2021-09-14T11:16:07
2021-09-14T11:16:07
406,335,809
0
2
null
null
null
null
UTF-8
Python
false
false
650
py
#sample GCP function def test_function(request): """Responds to any HTTP request. Args: request (flask.Request): HTTP request object. Returns: The response text or any set of values that can be turned into a Response object using `make_response <http://flask.pocoo.org/docs/1....
[ "astsbins@gmail.com" ]
astsbins@gmail.com
7b0e12c33ebd9110cfd5d642e686db3925646ca0
f91c504db782a0e78974d863786ac44e98d50b65
/picplz/tests.py
578dd74ab00644d6e399575eccc40100960436b6
[ "MIT" ]
permissive
ejesse/python-picplz
cc22a0a02810eada0757d407933aeecdbd1b3ef6
a86083ade3c5dc5bc3c99e7fb1c0f3670a66cd84
refs/heads/master
2020-04-04T15:39:44.073474
2012-06-19T21:44:18
2012-06-19T21:44:18
1,597,124
0
1
null
null
null
null
UTF-8
Python
false
false
987
py
import unittest from picplz.api import PicplzAPI class PicplzAPITest(unittest.TestCase): def setUp(self): self.api = PicplzAPI() self.api.print_json=True def test_get_pic(self): id = 1534270 pic = self.api.get_pic(id=id) self.assertEqual(pic.id, id) def...
[ "jesse@onagertech.com" ]
jesse@onagertech.com
aa1824668bd2e69a54f54248a4e59eb180064cf6
aeb59c749bf346000a0c69e8921c1190276ec678
/Project Euler Examples/problem9.py
50a6f70071afe0c04ab0623303d469b547e39980
[]
no_license
mkeenan174/Project-Euler-Problems
5252958eb6817cefd99300ae0ae043151e7dc557
8d0f2f8cb5c610967ac5d5ac069fc5ec503aebe4
refs/heads/master
2020-03-18T04:45:22.553422
2018-05-21T17:51:23
2018-05-21T17:51:23
134,304,482
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
def main(): max =1000 for c in range(max): for b in range(max): for a in range(max): if a + b + c == max: if isPytrip(a, b, c): print(a,b,c) def isPytrip(a,b,c): if a^2 + b^2 == c^2: return(True) ...
[ "Mk@10.103.133.156" ]
Mk@10.103.133.156
e7d9aa3a47c3072b893900005116bbc659ea24d9
bade831f728b2b183c6535879b842e887c2848e9
/hw4.py
0a23c783082a69d49b9c360936205e505a39d178
[]
no_license
dominicflocco/CSC-121
165e66c2066aed48f99ab43d2772916439b0bf57
d7e1adc9c4def362ccce589428134121ea7c47a9
refs/heads/master
2022-11-16T08:03:41.658675
2020-06-26T14:58:16
2020-06-26T14:58:16
275,179,385
0
0
null
null
null
null
UTF-8
Python
false
false
6,873
py
""" This program displays functions assigned in Homework 4. Author: Dominic Flocco and Oguzhan Colkesen Time Spent : 2 hrs """ from csc121 import image def gradient_blend(): """ Produces a blended collage of rick.jpg and ilsa.jpg. """ rick_red = image.get_channel('rick.jpg', 'red') rick_green ...
[ "noreply@github.com" ]
noreply@github.com
2597f52bb59804c0eda42bf51da95eea627f1d6a
ad42c83ac231bae8f1f7b40b778ad5a31dde4f70
/daintree/shopping/migrations/0001_initial.py
00dd59c15e33f0dccafcfc682e26ff8a154310ad
[ "MIT" ]
permissive
GoldenRatio3/DaintreeEcommerce
809f4a1e104d73125d081642e7827ee287b3d455
667ee44673222f630db3d35e454a6e201eb6c3fe
refs/heads/master
2021-10-21T15:31:35.582254
2019-03-04T22:09:32
2019-03-04T22:09:32
109,529,064
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-15 17:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item',...
[ "brad.winter@just-eat.com" ]
brad.winter@just-eat.com
a92c0a10aeeed0a16c66d9b710b73c346446f7a8
d99eba79ac942f4ca4dbc3187ef97f593d6dbc46
/anatomy_tagging/migrations/0019_auto_constraints.py
b6c370a32b240276bc6d4139c4420397cab504f0
[]
no_license
adaptive-learning/anatomy-tagging
6028b0749b54efaac7d32738959b5eaf4d78f0bd
46561468d96c5cc9cc4c6c9b093b27cea69b65b6
refs/heads/master
2020-04-10T01:47:14.149395
2017-06-19T17:08:36
2017-06-19T17:08:36
30,142,622
0
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('anatomy_tagging', '0018_auto_composite_relation_type'), ] operations = [ migrations.AlterField( model_name='term...
[ "jan.papousek@gmail.com" ]
jan.papousek@gmail.com
46c93d3cf171f2c155c9f767abf4d8d7896ab549
890c8b8e90e516a5a3880eca9b2d217662fe7d84
/armulator/armv6/opcodes/abstract_opcodes/ldrh_immediate_arm.py
82362526630b6123504a3ea2f746261e0e88d05c
[ "MIT" ]
permissive
doronz88/armulator
b864135996f876c7857b79a314d4aa06cc19c549
0294feac2785c8947e5943ac0c34f941ee4b5fff
refs/heads/master
2022-11-05T08:14:42.405335
2020-06-18T23:53:17
2020-06-18T23:53:17
273,363,061
2
0
null
2020-06-18T23:51:03
2020-06-18T23:51:02
null
UTF-8
Python
false
false
1,383
py
from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode from armulator.armv6.bits_ops import add as bits_add, sub as bits_sub, zero_extend from bitstring import BitArray class LdrhImmediateArm(AbstractOpcode): def __init__(self, add, wback, index, imm32, t, n): super(LdrhImmediateArm, self).__i...
[ "matan1008@gmail.com" ]
matan1008@gmail.com
c636a6de95d7ffcbe058decc217640e3f3812ebc
338573c47457ad04fd90c6166b82c9a15474f9a1
/cellCycleAnalysis/paperRevisionCellCycleAnalysis_boxPlotAndScatter.py
f5db8282f270861f56c0f5073b71795bd69f0e64
[]
no_license
sorgerlab/CardiotoxDataAnalysis
0ce9ca71559c09f24977b6d541f60efa398a52ae
e0ec5fe3dd7c830fb07155a92f39a1084d6680f0
refs/heads/master
2020-03-21T03:12:32.234632
2018-11-30T18:47:19
2018-11-30T18:47:19
138,041,693
1
1
null
null
null
null
UTF-8
Python
false
false
14,891
py
Prot3 CNX43 pRb MLC2v Prot1 a-ACTININ MLC2v p-Rb Oct4a import pandas as pd import numpy as np import matplotlib.pyplot as plt for plate in ['P6','P7','P8']: df = pd.read_csv('highdose/dmso/highdose_dmso_ProcessedData%s_proteome1.csv' % plate) plt=df.plot.scatter('Oct4a_Cyto','a-ACTININ_Cyto') fig =...
[ "sheehan.robertp@gmail.com" ]
sheehan.robertp@gmail.com
e749a6fcb6c555c83b5b791d866945646887d2b8
ab1a043c5c33e222dadcdd67e930470951fb6980
/mysite/highlighter/backend.py
73ffaa8c4975fe4238438fe6be1fae8164e375a0
[]
no_license
gloriafang123/mitmlhc2020-public-discharge-labeller
f83a961048c26f2df07aa135f7aab355424140cc
3208fdbf9f6f546f13d55682333e9529b52d175c
refs/heads/master
2022-07-15T15:31:03.032332
2020-05-12T22:59:02
2020-05-12T22:59:02
262,816,199
1
0
null
null
null
null
UTF-8
Python
false
false
5,555
py
import tensorflow as tf import numpy as np import re import pickle import h5py from mysite.settings import BASE_DIR import os ########## scispacy imports ############# # make sure you have pip installed scispacy import spacy import scispacy import en_core_sci_sm #The model we are going to use from spacy import disp...
[ "gloria@Glorias-MacBook-Pro.local" ]
gloria@Glorias-MacBook-Pro.local
e64dd97858848236d629dbfeccdc3e16d0d547d8
5157a791f454ccf9883d3a8980f72b8545351cda
/640_Solve_the_Equation.py
da709b5661605c0dfb7ee0cc10e8d5ce58024f9e
[ "MIT" ]
permissive
yuqingchen/Leetcode
3c3c97af0b97ab999f36f5e1726ea713023ebe80
6cbcb36e66a10a226ddb0966701e61ce4c2434d4
refs/heads/master
2020-08-11T08:37:04.756381
2020-05-27T19:46:48
2020-05-27T19:46:48
214,529,578
1
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
class Solution: def solveEquation(self, equation: str) -> str: left, right = equation.split('=') k1, b1 = self.helper(left) k2, b2 = self.helper(right) print(k1) print(b1) print(k2) print(b2) if k1 != k2 and b1 != b2 : return 'x=' + str((b2...
[ "noreply@github.com" ]
noreply@github.com
2f84cba04f90c612eafa0cdc9f9cfae172710e47
c1280b23a66504548a1426d2f91815af8ce9034e
/server.py
e5d9afdd2c88d4b4afb61e3a94fb5c2fe6df3f12
[]
no_license
HoldenA1/RaspTank-lib
f525eebce29934662d54280b90ddf5aedc605491
4894b2d7d073c224015d40b29f4dadb009f1439d
refs/heads/master
2020-08-23T18:44:25.626114
2020-03-01T09:37:55
2020-03-01T09:37:55
216,684,729
4
0
null
null
null
null
UTF-8
Python
false
false
10,585
py
#!/usr/bin/env/python # File name : server.py # Production : RaspTank # Website : www.adeept.com # E-mail : support@adeept.com # Author : William # Date : 2018/08/22 import socket import time import threading import move import Adafruit_PCA9685 from rpi_ws281x import * import argparse import os...
[ "holden.adamec@gmail.com" ]
holden.adamec@gmail.com
5b964a2fd20391921309728cfa937c41357956b6
3ed525d8b2a2bcde8ffa6f1587cf94a73812d978
/day22a.py
d387b8989fb7de9bde5a91967d9b4947214bb653
[]
no_license
xeno14/advent_of_code2019
02514d0b165a90073ac9e1755c1814623102ed9f
4500d25e1784bda367511bbd95fe476b7faaddb1
refs/heads/master
2020-09-22T10:17:16.807990
2019-12-24T13:44:28
2019-12-24T13:44:28
225,153,220
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
from functools import partial def newstack(i, l): return l-i-1 def cut(i, l, n): if i<n: return l-n+i else: return i-n def incremental(i, l, n): return i * n % l def parse(s: str): deals = [] for line in s.strip().split("\n"): if line.startswith("cut"): ...
[ "integral14@gmail.com" ]
integral14@gmail.com
b9b183743d798d5b517091983b7d56fe73239fd1
d4692a5a6868c532e45a8ad446c691a56ff81980
/scripts/battinfo.py
fa2b96f0f55ccadc9941242d62c815ecd08b5936
[]
no_license
ikr7/dotfiles
c4fb401beb3b4181bd3dfe101c5d472331974d6d
8e0d40c1438d750bee827603d569454f4a6d37d9
refs/heads/master
2021-10-13T01:27:00.718359
2021-10-10T09:00:07
2021-10-10T09:00:07
186,275,478
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
#!/usr/bin/python import subprocess cmd = ['upower', '-i', '/org/freedesktop/UPower/devices/DisplayDevice'] o = subprocess.check_output(cmd).decode('utf-8').split('\n') state = o[6].split(':')[1].strip() if (state == 'charging'): percentage = o[12].split(':')[1].strip().split('.')[0] time_to_full = o[11].s...
[ "kunpei.ikuta@gmail.com" ]
kunpei.ikuta@gmail.com
50688ed44d8bd1d4a1ef450b21069878a4a36032
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/EstarToEG_L10000_M2400_8TeV_pythia8_cff.py
5391ffb60a29f8eaa4a3b41e7b1861224dd1978b
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
874
py
import FWCore.ParameterSet.Config as cms generator = cms.EDFilter("Pythia8GeneratorFilter", maxEventsToPrint = cms.untracked.int32(0), pythiaPylistVerbosity = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(False), ...
[ "sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch" ]
sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch
2ea00a15afca3cb49583cb81775e962b8e8bf4b4
f62ff90d7850af458d8f12386fc9ee9134dbe7c1
/Plots/Thesisplots/Model_7/Current_Voltage_Curves.py
493ccafbc13c2df1aac1fefcad93ba1a953d0b12
[]
no_license
AlexSchmid22191/EIS_R_Sim
51b431f078cb455fc38637c192436c0523449565
851b061e60811e1e58a5b2fd4e393e529c3f86ac
refs/heads/master
2023-06-27T17:40:59.177270
2021-07-22T11:50:27
2021-07-22T11:50:27
380,768,174
0
0
null
null
null
null
UTF-8
Python
false
false
9,878
py
from matplotlib.pyplot import subplots, show from matplotlib.style import use from numpy import load, log10 from Equations import e, k, T from Semilog_Slope import semilog_slope from matplotlib.ticker import LogLocator, NullFormatter, MultipleLocator use('../Thesis_Small.mplstyle') data = load('../../../Currents_Res...
[ "Alex.Schmid91@gmail.com" ]
Alex.Schmid91@gmail.com
9b45d08a4e01e59eb002104f89d112329f30c76a
f588088a2c951d6de9381ccd0ab8523179986e25
/src/extra/config.py
d7f25051a62345631c659e354ff7049ec3176f9c
[]
no_license
yanchick/ilovescience
cf6c6a36b41038f086f49a671decd96ebdbfca06
b89a27fc598d81f0553ecc23bc30e2c869ee361c
refs/heads/master
2020-03-22T02:41:50.626227
2018-06-26T20:23:16
2018-06-26T20:23:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
biGram = True n_articles = 10000 n_articles_debug = 100 terms_stat = "../stat/terms/" ref_stat = "../stat/references/" vec_stat = "../stat/word_vec/" lda_stat = "../stat/lda/"
[ "pskryuchkov@gmail.com" ]
pskryuchkov@gmail.com
f119b6e29610eacf743679408317de83669e8f1a
dc85d839a019d1bd1101dffeade1d3078b994e67
/app.py
e4fbfb34d5adb7aa7c599543b196399914ec3e6b
[ "MIT" ]
permissive
abhinavDhulipala/SAM-URL-skeleton
06e1cbfaa244aa61073e1e9c7cb0ab5a64982e58
444222140582bd2d677e5daeab0a2091fd01bbbc
refs/heads/master
2023-06-16T12:29:42.537236
2021-07-12T04:03:25
2021-07-12T04:03:25
368,979,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
from flask import Flask, render_template, redirect, request, jsonify, url_for, flash import secrets import boto_utils from local_constants import DEPLOYED_GATEWAY import requests from requests.exceptions import RequestException from urllib3.exceptions import HTTPError app = Flask(__name__) app.secret_key = secrets.tok...
[ "abhinav.dhulipala@berkeley.edu" ]
abhinav.dhulipala@berkeley.edu
3789c4bb30efb30fcd70b94d844283827ef69b86
3f60f9e1081fd08824254006f7fd2fd1b4b56731
/POI/no_salary_dec_tree.py
c31cfe251192ddb24877623e1ef3d4958b723947
[]
no_license
mihirkelkar/Text_Mining_Enron
0e37abfe7cc916b6f278ddd6bb72ac4b48283425
b7e2d59bc38bb62e68a61d2348aa5302f5cf5918
refs/heads/master
2020-04-15T21:49:42.673886
2015-04-18T00:03:58
2015-04-18T00:03:58
30,212,104
1
1
null
null
null
null
UTF-8
Python
false
false
1,798
py
import matplotlib.pyplot as plt import sys import pickle import sklearn import time import numpy as np from data_sorter import featuresProcess from data_sorter import split from sklearn import cross_validation from sklearn.tree import DecisionTreeClassifier outliers = ["SKILLING JEFFREY K", "LAY KENNETH L", "FREVERT ...
[ "kelkarmhr@gmail.com" ]
kelkarmhr@gmail.com
83aac4069a93f932dc54f5909bd2af0cc48c0ee5
122d91c24fefe9385cd64d56b82908ae2d51a4be
/configs/basketball_detection/ssd.py
326833fac8255ff11ca0039c462759f078c0b8db
[ "Apache-2.0" ]
permissive
wojiazaiyugang/mmdetection
7d5f751f24a1e191561f5bdbb6a610ab52b13efb
4f6987bf1d6031fb1f162549d08a97585828f2d5
refs/heads/master
2023-07-28T11:43:42.859833
2021-09-17T02:47:50
2021-09-17T02:47:50
400,694,601
0
0
Apache-2.0
2021-08-28T03:46:31
2021-08-28T03:46:30
null
UTF-8
Python
false
false
981
py
_base_ = '../ssd/ssd300_coco.py' model = dict( bbox_head=dict(num_classes=1) ) dataset_type = 'BasketballDetection' # data_root = '/mnt/nfs-storage/yujiannan/data/bas_data/train_data/' data_root = '/home/senseport0/data/train_data/' data = dict( samples_per_gpu=4, workers_per_gpu=1, tr...
[ "616986514@qq.com" ]
616986514@qq.com
2d91c22023fd5f7a3f3c6b5cd2a6c848ca311e84
398e3a7e8425a5b16487654d62c77eb2c1881091
/api/validators/AuthValidators.py
82302df21aa84d4f9241a6c22c8356edc1ca5aa4
[]
no_license
paarshan4800/car-paint-shop
c1b61ba7dbf84846d97b486be937345999974b9d
5c875bfb9637674347240b57d34ba03f6bd736e4
refs/heads/master
2023-06-08T15:07:19.977790
2021-06-25T18:05:31
2021-06-25T18:05:31
365,522,984
0
0
null
null
null
null
UTF-8
Python
false
false
2,699
py
from api.validators.UserValidator import validateEmail def validateDeleteUserRoute(req): # Check for keys if "email" not in req: return False, {"message": "Email is required"}, 400 email = req["email"] # Validate values if len(email) == 0 or not validateEmail(email): return False...
[ "paargav.shuttle@gmail.com" ]
paargav.shuttle@gmail.com
8ca4f7e1afd86dc23a0f98d24f1c67619f9aa8fa
8f907d02dc75d19f4b4750be88bd5bbe6f0de857
/code/PaintSentiment.py
e1cc4f60fc0e54152d6f59cb102dc0a7006aa27f
[]
no_license
zhiyang-jzy/openreview-code
5b0ae700b2e5123acac37d1138bcd90178b6ba7e
5316d934ecdbc1cf00c48a1c83d8fd0a91a8a67b
refs/heads/master
2023-02-23T07:43:59.070948
2020-09-07T09:44:14
2020-09-07T09:44:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
import matplotlib.pyplot as plt from utils import read_json_data, aim_list DATA_PATH = '../result/processed_old_all_info.json' # def judge_state(result_list): # pos = result_list.count(1) # neg = result_list.count(0) # if pos > 0 : # return 1 # elif pos == neg and neg == 0: # return 0 # else: # return -1...
[ "jzy991126@outlook.com" ]
jzy991126@outlook.com
795261ce9eb8b260d5200dd44b2abeb63908a8aa
518f3b9a7c388540c1afafe254141d8a3709a6ce
/11-invers-determinan/Main.py
2bf36b84a0d516f88b636b2a34d904927c5d6841
[]
no_license
Robi-Nurhidayat/Numpy-series
1abe9237badd2ca901326439464bcbd731f3054a
6e66f60dcd1c2a58375e56b1170503443d769d6f
refs/heads/main
2023-06-14T22:02:07.933212
2021-07-10T01:15:43
2021-07-10T01:15:43
383,353,484
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
import numpy as np from numpy.linalg import det a = np.array(([1,2,3],[1,2,3],[1,2,3])) b = np.array([(1,2,3),[1,2,3]]) c = np.array(([1,1],[-1,1])) d = np.array(([2,1],[-2,1])) print(a) print(b) # invers matrik # a_inv = np.linalg.inv(a) # print(a_inv) # b_inv = np.linalg.inv(b) # print(b_inv) c_inv = np.lina...
[ "robivanpersie290899@gmail.com" ]
robivanpersie290899@gmail.com
d6fa97c3ccab332b2a56831f825642ce653c5e65
71ed73b3881e100e4becd5ada039ba92d78b8f22
/admixfrog/geno_io.py
f9844430d6193a1a264ca0562e229fbacafc2f53
[]
no_license
evansbenj/admixfrog
90d1630df0f9108396ed5bff211a0eed79b50a8a
54ae37a7534aadba5bc50249542b0659ceb9d201
refs/heads/master
2022-06-15T04:36:06.639127
2020-05-05T15:29:40
2020-05-05T15:29:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,734
py
""" read Reich geno format """ import numpy as np from math import ceil import itertools import pandas as pd from collections.abc import Mapping from pprint import pprint try: from .utils import parse_state_string except (ImportError, ModuleNotFoundError): from utils import parse_state_string def row_length(n_...
[ "benjamin_peter@eva.mpg.de" ]
benjamin_peter@eva.mpg.de
b6a5c86074392c7bcd0cf4245639e879e0d2517e
93bef06574952bbea44435de6610239710b8b36a
/Marlin-1.1.x/buildroot/share/atom/auto_build.py
c1c145099bed1ac3c29d9f70f75ddd2ed100d113
[ "GPL-3.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
crisap94/Marlin-1.1.x-Flyingbear-Ghost-V2
1741febbbf738ee51edee27d2b63e5827820c980
27243ae754c37792348199ddc4a6c7b972524927
refs/heads/master
2023-05-15T01:35:20.254830
2019-09-29T17:30:08
2019-09-29T17:30:08
211,699,740
2
0
MIT
2023-05-06T21:48:50
2019-09-29T17:27:22
C
UTF-8
Python
false
false
46,446
py
#!/usr/bin/env python ####################################### # # Marlin 3D Printer Firmware # Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] # # Based on Sprinter and grbl. # Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm # # This program is free software: you can redistribute it a...
[ "cristianisaac94@gmail.com" ]
cristianisaac94@gmail.com
ba4b5b42e84dbaa62b21fcaa4b2111c2567d85c8
3630474b1fa7a8bee9aa9a844fba1d475bdc3a13
/iConso/migrations/0005_auto_20210329_0212.py
e0a90d768db690f92dad09c1012d53e98544ef2c
[]
no_license
thipparat-rak/IS_V3
0dd6d2324e8e7cc04f5635553befe6f55c4e61cc
34b9e7e3c105f9838891b95beaf69629776f0be0
refs/heads/main
2023-04-23T13:21:03.033485
2021-05-13T13:02:15
2021-05-13T13:02:15
330,471,253
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
# Generated by Django 3.1.5 on 2021-03-28 19:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iConso', '0004_auto_20210329_0207'), ] operations = [ migrations.AlterField( model_name='subscription_master', name=...
[ "Thipparat-rak62@tbs.tu.ac.th" ]
Thipparat-rak62@tbs.tu.ac.th
d8109804e965c116d5a81a5ba0f07de5b18bec01
550733d3403902f72be11d248a1cfaad973bb2d2
/earthquakes.py
13acb95be8e2ca818714de1dc1cc11cf8265821a
[]
no_license
skb30/Python-Workspace
6323b081166ea40cca47ea2e95a30282f15f6b14
b3304a6bd9007c20669d99beb5ce667543055e94
refs/heads/master
2021-09-10T11:43:32.925076
2018-03-25T22:01:23
2018-03-25T22:01:23
104,132,949
0
0
null
null
null
null
UTF-8
Python
false
false
3,017
py
# # Example file for parsing and processing JSON # (For Python 3.x, be sure to use the ExampleSnippets3.txt file) import tkinter import urllib.request import json import operator import datetime from datetime import date, time def printResults(data): eq_table = [] sp = 0 ca = 0 # sorted_table = [] tuple_t...
[ "sbarth@gmail.com" ]
sbarth@gmail.com
de1e554cbb1e97d15a561b0089ad7efb7e68848a
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/model/env_execution_body.py
b1206af38ed6c9f476f85bc485956faecbbe6825
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,498
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class EnvExecutionBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute n...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
5d16943d6930a3080995ab3bec08a50e2e5f991d
bb90568adcb91c84022688dc1c35a1ce5e1c924f
/Level_3/3_3/3_3_3.py
03a11c98112123b94595a97399958d2ceb5b8b4d
[]
no_license
ellelater/Baruch-PreMFE-Python
e9146553f605ea2b4840ce1be5c0195d46244ce2
ea232e944720ab83e33334f13f23dcd786ef0884
refs/heads/master
2021-08-23T00:07:06.901937
2017-12-01T20:42:29
2017-12-01T20:42:29
105,469,715
1
2
null
null
null
null
UTF-8
Python
false
false
291
py
def fact(n): ret = 1 try: for i in xrange(n+1): ret *= i return ret except TypeError as e: print e print "Wrong input type" def main(): print fact(1.) print fact('2') print fact(0) if __name__ == '__main__': main()
[ "yzp451312410@gmail.com" ]
yzp451312410@gmail.com
72c59cd5a52e361a2ac463429af7962e62e06c5a
21ba028b95a3c8d18262c0bf5bb0b1796cee304b
/HelloWorld_prj/HelloWorld_prj/wsgi.py
9dee2c09e95608a15f6d270d99251069a77586ce
[]
no_license
brettd4/hello_django2
e06c776923030ae1ac9c727a66b1407b5a7bd594
c405dd9b1314aba013a160cc067a009ca8834212
refs/heads/master
2021-01-22T07:39:45.899145
2017-02-13T15:58:35
2017-02-13T15:58:35
81,842,549
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
""" WSGI config for HelloWorld_prj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
[ "noreply@github.com" ]
noreply@github.com
a14a91dee7594c53049fb3a174982da1c3e3d2bd
495d05bf59a650da83119e3e796f1978fc0d5081
/flask/config.py
0505c80b47fc39fc27029f8f6faa909175dbbf45
[]
no_license
jaredchin/Core-Python-Programming
776e69764656cee8ffe3257dd953166a761099c1
a081560e78685634f29c89d109efd99b3100eb73
refs/heads/master
2021-09-10T17:56:50.288037
2018-03-30T15:09:04
2018-03-30T15:09:04
111,692,170
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' SQLALCHEMY_COMMIT_ON_TEARDOWN = True SQLALCHEMY_TRACK_MODIFICATIONS = False @staticmethod def init_app(app): pass class DevelopmentConfig(Co...
[ "1007707989@qq.com" ]
1007707989@qq.com
e6e30c6450b622eb21ea60c9558120ca0d4e10f3
b8a85060d2eafe49cfe13c04a67cdfd6ddcc3f51
/setup.py
6cca0bea517f61b9b31bf5636d4b2d370a5bd7b0
[ "Apache-2.0" ]
permissive
ionagamed/iroha-python
9b5ef77933be2800fea72f44a87f4fac93c5dc5a
f4eae10c8362a0b7ec95598452ceb0fb268ae10a
refs/heads/master
2020-06-01T00:45:38.744188
2019-06-06T14:55:46
2019-06-06T14:55:46
190,565,226
0
0
null
2019-06-06T10:48:37
2019-06-06T10:48:37
null
UTF-8
Python
false
false
1,200
py
import setuptools with open('README.md', 'r') as readme_file: long_description = readme_file.read() setuptools.setup( name='iroha', version='{{ PYPI_VERSION }}', description='Python library for Hyperledger Iroha', long_description=long_description, long_description_content_type='text/markdown'...
[ "igor@soramitsu.co.jp" ]
igor@soramitsu.co.jp
b4cafad95d88cb19f9d3d632ec5c6bdd88130531
8f6504b7aed2e98f53a2a46f2d0374ffa5be0a51
/0x01-python_async_function/0-basic_async_syntax.py
cc25aa0e3f0d6ec4326bbb9bdb4509fea07e4abd
[]
no_license
matxa/holbertonschool-web_back_end
0d8f62a09dd997391063c4f4fac0f7237deccda5
6c9136149c4d5c315c09ea45b979852ba8131c7d
refs/heads/main
2023-06-20T19:31:53.622905
2021-07-23T01:34:34
2021-07-23T01:34:34
348,179,193
1
0
null
null
null
null
UTF-8
Python
false
false
721
py
#!/usr/bin/env python3 """Write an asynchronous coroutine that takes in an integer argument (max_delay, with a default value of 10) named wait_random that waits for a random delay between 0 and max_delay (included and float value) seconds and eventually returns it. Use the random module. """ import random import async...
[ "42968545+matxa@users.noreply.github.com" ]
42968545+matxa@users.noreply.github.com
34ca751edd526b857bb502b21344144712bd9b5a
f2c2d558e9b077e1fd8c74972d7616bfca6571ab
/week3/LSTM.py
d76dc9d88a2da9c317168fbc6636dc3b8e507bfb
[]
no_license
forrest0402/coursera_tensorflow
3ad459bc25a817d172a0e8ee1cb474b8fbc4c3cb
59c6c02e0ec1209f138f8340e185563a51430ebd
refs/heads/master
2020-07-06T21:28:24.292894
2019-10-30T13:05:38
2019-10-30T13:05:38
203,143,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals """ @Author: xiezizhe @Date: 2019/8/29 4:50 PM """ import tensorflow as tf import tensorflow_datasets as tfds import matplotlib.pyplot as plt print(tf.__version__) def plot_graphs(history, string): plt.plo...
[ "forrest0402@hotmail.com" ]
forrest0402@hotmail.com
87d81f8f903f307561d455d347689d9a1b98d614
6cf1e3f447c9ff126b1384895dd672cc5a5690bc
/rango_project/wsgi.py
149ca8c5b9d5349cc45cb4dfb6cbe4f220a8c12e
[]
no_license
mrh830/rango_project
72c99a166fd4269ca45aa9181c0e5ccd195a2b43
a6817da07f519d3c12ea6786418897ed71a19b95
refs/heads/master
2016-09-06T12:54:19.639726
2015-02-12T18:18:30
2015-02-12T18:18:30
28,971,213
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for rango_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rango_project.settings") from d...
[ "xenophile999@gmail.com" ]
xenophile999@gmail.com
708172eab76f22541781a15289c6eacb4343dd7c
7496c055f9800cb5dd6f962b3fab937a9b7bb34f
/Python/Socket Programming_Sentdex/client_1.py
d9d4f810c36345871fb5834303e7ee803e2581e4
[]
no_license
ishaniis/C-Bootcamp
0f1fb7200463139f41b0bfb4804cf0ca7f4e8e05
70614b3c48b73fb058cfcc91933b67f0ed0b4a57
refs/heads/main
2023-08-16T00:37:51.415994
2021-10-11T19:30:03
2021-10-11T19:30:03
384,844,313
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
import socket HEADERSIZE = 10 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((socket.gethostname(), 1241)) while True: full_msg = '' new_msg = True while True: msg = s.recv(16) if new_msg: print("new msg len:",msg[:HEADERSIZE]) msglen = int(msg[:HE...
[ "sharmaishan1508@gmail.com" ]
sharmaishan1508@gmail.com
aad52331ea8af78186abac3b1cb7abe84d6e5ee8
eefb286d5bd07ea7ce355f9294718dc5ee729119
/src/old_pageviews/get_pop_scores2.py
454c9122a07a4334f5903865099188d221fe403e
[]
no_license
forkdump/wikitopics
efacd469faffd6e4aea93a39bebb72d457697a38
923cfb2ec738abab9c5510c70fff956c8d52eeb9
refs/heads/master
2021-05-27T12:24:18.163062
2013-05-07T10:14:44
2013-05-07T10:14:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
#!/usr/bin/env python import sys import datetime import time import simplejson if len(sys.argv) != 3: print "Usage: get_pop_scores.py article_list pageviews" sys.exit(-1) pageviews = {} for i, line in enumerate(open(sys.argv[2], "r")): line = line.strip() pageview = simplejson.loads(line) sys.std...
[ "byunggyu.ahn@gmail.com" ]
byunggyu.ahn@gmail.com
912d38d3767d29394bc1a6b944e31092f8680303
e698d82d706b4cb7a8c16dbad832659ea1a7620b
/P3.py
a63777d6fcdde33cfa00befb66b977a60560e07f
[]
no_license
GunnarGranlund/FMNN25
73088c3186788ed16d3b2ff0bd2665473f9f2af1
8b3e37dd98ac41c0d346f4081141dc998c07fbc6
refs/heads/master
2020-07-25T08:31:37.745546
2019-10-16T10:56:27
2019-10-16T10:56:27
208,230,767
1
0
null
null
null
null
UTF-8
Python
false
false
3,589
py
from scipy import linalg import matplotlib.pyplot as plt from RoomHeatingProblem import * import numpy as np class Solver: def __init__(self, room1, room2, room3): self.dx = room1.dx self.A1 = room1.A self.b1 = room1.b self.A2 = room2.A self.b2 = room2.b ...
[ "noreply@github.com" ]
noreply@github.com
38e50d3f24f37b25e2e10924332a53123811847a
49ba5356bdc5df7dd9803b56fe507c5164a90716
/shortest-unsorted-continuous-subarray/solution.py
68ff764fd997e9bff5e3f3237167c7e462af3c0e
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
class Solution(object): def findUnsortedSubarray(self, nums): """ :type nums: List[int] :rtype: int """ nums_s = sorted(nums) i = 0 while i < len(nums) and nums_s[i] == nums[i]: i += 1 j = len(nums) - 1 while 0 <= j and nums_s[j] =...
[ "songlin.lin@yunfangdata.com" ]
songlin.lin@yunfangdata.com
1da5bc816ff092ff1efd02e934a8a810db7b83ba
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/AtCoder_Virtual_Contest/20190105-ganariya2525/abc096/c.py
c0bd9f5ae1b4dfa37263a8c56a23310888195f2c
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
671
py
# -*- coding: utf-8 -*- def main(): h, w = map(int, input().split()) board = [list(input()) for _ in range(h)] dx = [0, 0, -1, 1] dy = [-1, 1, 0, 0] for i in range(h): for k in range(w): if board[i][k] == '#': count = 0 for m in r...
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
8d7aa6af00239406466ece9836215f9f2c949b8c
8e5a97b5e15966fcb92fa550e2b8cba7381fe91b
/src/utils/visualization.py
a2d9124da031f2f67d13366c48909772c8db776e
[]
no_license
spthermo/StructureNet
1e408eb63cb245b94e3192995763664ed11a2134
d23e13d24fb18861d84371c651a510f8a83d78a0
refs/heads/master
2022-09-26T21:50:16.356765
2022-03-21T21:11:05
2022-03-21T21:11:05
244,165,550
2
0
null
2020-03-01T14:38:40
2020-03-01T14:38:40
null
UTF-8
Python
false
false
6,147
py
import visdom import numpy import torch class NullVisualizer(object): def __init__(self): self.name = __name__ def append_loss(self, epoch, global_iteration, loss, mode='train'): pass def show_images(self, images, title): pass class VisdomVisualizer(object): def __init__(self...
[ "vladster@iti.gr" ]
vladster@iti.gr
12f6fc9752547ef5b46411b998355f6370a528f2
f153a36b5e211690ded1af00c0160eebd2add1ca
/PROGRAMMERS/Level 1/시저 암호.py
8b6ec2d44b7bf4833eb2b69b0d575542d3e0c5b3
[]
no_license
KyungHoon0126/Algorithm
47551bbe22c70eac04ed518c2c9c1f65d48ee5b9
8369f0e1103d282cdc138666add65dd0ca926e70
refs/heads/master
2021-08-17T08:32:09.970502
2021-06-22T12:52:22
2021-06-22T12:52:22
214,456,043
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
def solution(s, n): answer = '' for i in list(s): if (i == ' '): answer += ' ' elif ord(i) >= 65 and ord(i) <= 90: if ord(i) + n > 90: answer += chr(ord(i) -1 -25 + n) else: answer += chr(ord(i) + n) elif ord(i) + n > 122: answer += chr(ord(i...
[ "kidi052812@gmail.com" ]
kidi052812@gmail.com
89beaa8585e63c5d5ad0f7408acc0663bf5a1cd0
e466923dde116bbfdd3744b25849e3b6bc23d450
/rbm/models.py
f4f78252aeaa2d34eae732de4a45514e0c5af665
[ "BSD-3-Clause" ]
permissive
wangpanjun/rbm
693af03ccda24e29ce7c240cf59cf25ec6971c52
1f9d4f0141d31e8050d04d0cd0cf8764c5f90298
refs/heads/master
2022-12-10T01:17:23.822887
2020-01-09T02:56:16
2020-01-09T02:56:16
232,530,008
0
0
BSD-3-Clause
2022-12-08T03:24:39
2020-01-08T09:45:00
CSS
UTF-8
Python
false
false
1,388
py
# -*- coding: utf-8 -*- """ jobsystem models. """ from rbm.app import db from datetime import datetime class SettingsModel(db.Model): __tablename__ = 'db_settings1' id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(length=128), default='') host = db.Column(...
[ "wangpanjun@baidu.com" ]
wangpanjun@baidu.com
06ab1173149ebf74e0df8962d78ccda462a2138a
1d7eec692553afc411ec1e7325634f71a2aed291
/backend/social_auth/urls.py
a8a59a7deeb00710a61c0465859ccf7d521cd772
[]
no_license
Andy-Nkumane/Tilde
a41a2a65b3901b92263ae94d527de403f59a5caf
80de97edaf99f4831ca8cb989b93e3be5e09fdd6
refs/heads/develop
2023-05-09T10:02:41.240517
2021-05-28T09:20:51
2021-05-28T09:20:51
299,501,586
0
0
null
2020-10-25T22:37:30
2020-09-29T04:10:48
Python
UTF-8
Python
false
false
465
py
from django.urls import path from . import views urlpatterns = [ path( "github_oauth_start/", views.authorize_github_start, name="authorize_github_start", ), path( "github_oauth_callback/", views.authorize_github_callback, name="authorize_github_callback", ...
[ "sheena.oconnell@gmail.com" ]
sheena.oconnell@gmail.com