repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
flywheel-apps/bids_hcp
249,108,138,464
d4542dc227b2b0f6736ef358d1d42e1479c7f68c
15e365acf4d528922ddafafa1dff83d883090a36
/fw_gear_hcp_func/hcpfunc_qc_mosaic.py
4aeaf947d4bcd2641aa9499df584189a0735cf0f
[]
no_license
https://github.com/flywheel-apps/bids_hcp
5aebb508c4342f400ad9c7803cb80dcbf679124a
6c5fd56d215561098672231245cf825028dce04d
refs/heads/master
2023-07-05T01:23:24.365332
2021-08-04T18:04:59
2021-08-04T18:04:59
391,175,719
0
0
null
false
2021-08-04T18:05:01
2021-07-30T19:57:04
2021-08-02T22:04:26
2021-08-04T18:05:00
266
0
0
0
Python
false
false
""" Builds, validates, and excecutes parameters for the HCP helper script /tmp/scripts/hcpfunc_qc_mosaic.sh part of the hcp-func gear """ import logging import os import os.path as op from collections import OrderedDict from flywheel.GearToolkitContext.interfaces.command_line import ( build_command_list, exec...
UTF-8
Python
false
false
1,428
py
18
hcpfunc_qc_mosaic.py
14
0.67437
0.67437
0
49
28.142857
74
J3ff-Mathew/python_small
10,273,561,808,957
d0acf54c52520a8f9a0b4ce3178c2dd6b8254242
e3dda4d14224d7f61ad7f63867b1e458d090fe26
/coinflipbimboo.py
8521b471dcdab0ed07e4f6e155a79fd8321265fe
[]
no_license
https://github.com/J3ff-Mathew/python_small
515e70a5baae64d6243b61f84f46a0ec4f85dd03
3a1b7f789723c3c5b7c55a3b187f68cf46e8f70a
refs/heads/master
2023-08-11T03:30:47.618386
2021-09-15T04:48:23
2021-09-15T04:48:23
406,616,469
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random face=["h","t"] def coin_flip(): """flips the coin to find if you win or lose""" call=input("Press 'h' for heads and 't' for tails: ").lower() flip=random.choice(face) if call==flip: return "Win" else: return "Lose" while quit!='q': print(f"You {coin_flip()}") quit=input("To quit press q or els...
UTF-8
Python
false
false
489
py
16
coinflipbimboo.py
16
0.635992
0.633947
0
21
22.238095
62
Andesha/ViewClust
5,540,507,848,227
7c691afec98f96db37d26124cf4235e7410481a0
3088cf3726e9dd92ac26d6cb09f4f745e0c3dd25
/viewclust/to_terminal.py
49f4923de4ced2fdde0102824fc169a558e7bc7a
[ "MIT" ]
permissive
https://github.com/Andesha/ViewClust
3a158ad38afdd8576fbac848e561ed7c6736f562
9310be5f82a1439d5c18cf588622de742a1997da
refs/heads/master
2023-03-09T08:38:07.816284
2023-02-02T16:21:57
2023-02-02T16:21:57
244,706,846
4
5
MIT
false
2023-02-08T01:25:58
2020-03-03T18:06:12
2022-06-22T13:05:26
2023-02-08T01:25:57
95
3
4
4
Python
false
false
from typing import Union, Optional, List import pandas as pd import plotille import os def to_terminal(series: Union[pd.Series, List[pd.Series]], title: str = 'resource usage', pu: str = 'cpu', labels: Optional[list] = None): """ Plot a datetime series (or a list of them) to te...
UTF-8
Python
false
false
1,451
py
23
to_terminal.py
14
0.575465
0.57133
0
47
29.87234
68
RomanKoshkin/human-robot-interaction
10,531,259,817,435
84c77f0bba2a1246601b5c0ad174ff5efae9c775
9c35a997fd07179bd0ccc85a9f7b1f22c4b3b9d4
/src/Prior-generation.py
573c96a49dfbff61c6f56da440b43292b9c8d1c5
[ "Apache-2.0" ]
permissive
https://github.com/RomanKoshkin/human-robot-interaction
8fb939030bea2efc75cd3d0abfc7e17d9fbe75a4
f27d59f85ec0c97c8cfe562402cabf71e66857f1
refs/heads/master
2023-07-28T23:43:19.332810
2021-10-06T03:15:31
2021-10-06T03:15:31
288,921,904
0
0
null
false
2021-10-05T07:43:51
2020-08-20T06:11:29
2021-10-05T07:37:00
2021-10-05T07:43:50
35,475
0
0
0
Jupyter Notebook
false
false
#!/usr/bin/python2.7 import sys sys.path.insert(0, '/home/torobo/catkin_ws/src/torobo_robot/torobo_rnn/scripts') from torobo_rnn_utils import * import os import numpy as np import rospy import math import matplotlib.pyplot as plt from sensor_msgs.msg import Image import ctypes from utils2 import Utils import utils2 fro...
UTF-8
Python
false
false
6,605
py
652
Prior-generation.py
25
0.624375
0.597275
0
206
31.063107
115
gabriellaec/desoft-analise-exercicios
10,393,820,865,861
b27e162efe39802255fe08ff611cb2f0839eb4b3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_367/ch21_2020_04_20_17_53_12_892023.py
ffe197e9ac39aa68922c0ede91bfc0835f18d3e7
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
y=float(input('Dias: ')) x=float(input('horas: ')) p=float(input('minutos: ')) o=float(input('segundos: ')) soma= (y* 86400) + (x * 3600) + (p*60) + o print('soma é {0}' .format(soma))
UTF-8
Python
false
false
186
py
35,359
ch21_2020_04_20_17_53_12_892023.py
35,352
0.583784
0.518919
0
7
25.571429
42
nikhilobili/senti
9,113,920,641,563
eae6890cd0078d029a8e8042b76ef640b4bc945b
b13fc9cdfa0467639b4c7398796ded68620566c5
/main.py
6687316fcd976734973f41555b59cc857b32fada
[]
no_license
https://github.com/nikhilobili/senti
c61aefeb24573f44e43b0156c82d8fa6b8a8b1b5
a69c96f64abe4466fb6fdcb8c36f82a2d19e241e
refs/heads/main
2023-08-21T05:35:28.150449
2021-10-09T00:25:17
2021-10-09T00:25:17
415,159,337
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Created by C Bharath Sai Reddy import paralleldots import matplotlib.pyplot as plt import numpy as np import time # Create a parellel dots account and place the key in the below function paralleldots.set_api_key( "4YJoR9RToT1Oki3s79ejR8ZBs0trCyZcYNrYHpHp59M" ) f = open("rtest.txt", encoding='cp437') #...
UTF-8
Python
false
false
2,032
py
10
main.py
4
0.533465
0.49311
0
98
18.734694
79
brainysmurf/asw
18,708,877,573,433
a8519733fcd92467acd4f4af999046779ea4298d
4f6f3c9fc04a7d1a02173d23c86d241c71458af6
/AppleScriptWrapper/Firefox.py
a665a7fcdb6ba03416c6e5a361104f55ddc7fd85
[ "LicenseRef-scancode-public-domain" ]
permissive
https://github.com/brainysmurf/asw
d4a11a3c1c95b1910019357788379248ab2f0a94
14ff7c3a83c38afbeca1c254a847366238beeca6
refs/heads/master
2020-06-02T19:29:45.008556
2011-08-24T13:41:59
2011-08-24T13:41:59
2,038,528
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from AppleScriptWrapper.Basic import AppleScriptWrapper import re class Klass(AppleScriptWrapper): def __init__(self): AppleScriptWrapper.__init__(self, "Firefox") def current_document(self): self.application.windows[0] def name_of_current_document(self): name = AppleScriptWrappe...
UTF-8
Python
false
false
1,189
py
21
Firefox.py
20
0.55677
0.550042
0
42
27.309524
82
KolesnikovaAnna/EpamPython2019
3,023,657,009,828
bd973436dcc4f82c290bbcbf11c9c4ed31000996
4042e4526c093c98b380312be5d936aa0177f989
/02-Functions/hw3.py
1e99342ac4fb8109dad4cd25b2a3fcd587bd03d6
[]
no_license
https://github.com/KolesnikovaAnna/EpamPython2019
d5e332a677fc2029bab7cc29aadd1318bbcf1717
98191de362d55a253eef8ff4891b85089a04f3c4
refs/heads/master
2020-05-24T17:41:06.462686
2019-06-08T20:00:52
2019-06-08T20:00:52
187,391,485
0
0
null
true
2019-05-18T18:19:23
2019-05-18T18:19:23
2019-05-11T16:56:39
2019-05-11T16:56:38
3
0
0
0
null
false
false
'''Напишите реализацию функции make_it_count, которая принимает в качестве аргументов некую функцию (обозначим ее func) и имя глобальной переменной (обозначим её counter_name), возвращая новую функцию, которая ведет себя в точности как функция func, за тем исключением, что всякий раз при вызове инкрементирует значение ...
UTF-8
Python
false
false
981
py
11
hw3.py
9
0.725381
0.722607
0
24
29.083333
74
314casso/estate-agent
15,290,083,601,921
e3d23ed84e1e83e3a70fae5206e517db9e6ddb17
432a8d6bc8ad5af9cb5585c2184b05f58e842285
/realestate/exportdata/migrations/0008_auto_20200608_0019.py
5b7ac9fb92c09fb4dd387b9180b2da4d201839c9
[]
no_license
https://github.com/314casso/estate-agent
963e2a909ac9b190253d8ee40a69947cf19b1261
ccd07bd599dc51251523cf5e4ea6991b1d0d529d
refs/heads/master
2022-03-21T04:37:44.946548
2022-03-15T19:29:06
2022-03-15T19:29:06
4,037,752
7
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('exportdata', '0007_auto_20170611_2125'), ] operations = [ migrations.AddField( model_name='basefeed', ...
UTF-8
Python
false
false
881
py
361
0008_auto_20200608_0019.py
174
0.606129
0.505108
0
24
35.708333
232
diazchg/NpsSDK
8,014,408,986,029
dfe7969fc315ff3f14a724b92291e08e508eb64f
9acca2f5337e5bcec40c8d8b29c5e116b205eecb
/nps/nps_sdk.py
357785677a87aafa20c8437b72a6bf9ccc53c480
[ "MIT" ]
permissive
https://github.com/diazchg/NpsSDK
4563695ad4735446a27f32c9f7c7e33276b53610
0fe02d4818abc3eeda49c29e7102b440a4b5b37d
refs/heads/master
2018-01-05T06:40:16.087603
2016-10-12T18:54:15
2016-10-12T18:54:15
70,725,744
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from suds import client, MethodNotFound from suds.cache import ObjectCache from nps import settings import logging from nps import utils from nps.utils import RequestsTransport import hashlib, collections from nps.errors import RejectedException, DeclinedException, ApiException loggin...
UTF-8
Python
false
false
3,146
py
8
nps_sdk.py
8
0.541004
0.532104
0
89
33.348315
120
leonardoquesquen/Proyecto3_302
7,584,912,266,763
fe091696b924e3d862b8067722eef5eb07a9e249
76f5d63b77dd4369f3cf66709fef32383e24c89f
/proyecto3.py
c27a7069846707be7c7b18fb3b83bcb95123ace0
[]
no_license
https://github.com/leonardoquesquen/Proyecto3_302
42e734e8f532ebde9d05a6e17bbc954300b4e4ba
469a54c367553e0d07dfd27047a074bfa07e91fa
refs/heads/master
2020-12-03T06:40:35.956487
2017-06-28T22:21:31
2017-06-28T22:21:31
95,715,899
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * from tkinter.colorchooser import askcolor class Paint(object): anchoPincel = 1.0 DEFAULT_COLOR = 'black' def __init__(self): self.ventana = Tk() self.ventana.title("Proyecto de Introducción a la ciencia de la computación") self.normal = Button(self.ventana, text='Normal', command=self....
UTF-8
Python
false
false
2,864
py
1
proyecto3.py
1
0.713487
0.702306
0
94
29.446809
142
n-winspear/Stataflow-CS235-Flix
6,347,961,693,400
abddd4306ca1e87f3d90c49f8b2501e81143d998
08a715820056636d1c45d6bf285189d1219cbb32
/backendflask/api/genre.py
b76f92028547519af51b6ee7bddc83637575262a
[]
no_license
https://github.com/n-winspear/Stataflow-CS235-Flix
8bfeedef7c0c0ead11beb5dea62e957ac860f5f6
fe56c0f68047e624bffbd605981f823e2f9194fa
refs/heads/master
2023-01-02T04:50:07.550146
2022-04-11T09:17:28
2022-04-11T09:17:28
293,440,004
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import make_response, jsonify from flask_restful import Resource, reqparse from backendflask.adapters.memoryrepository import MemoryRepository from backendflask.adapters.gcloudrepository import GCloudRepository from backendflask.domain_models.genre import Genre import json # DB Connection db = MemoryReposit...
UTF-8
Python
false
false
1,794
py
43
genre.py
39
0.604236
0.594203
0
57
30.473684
67
Sun1Plus/SA-homework
85,899,383,111
d9cf361d93691177d440ce443c0923128d50d0fc
93e1e500c336e3bd7c44d3ba521f77c570158ce5
/project (py3)/ClientDemo2.py
05ecd4fcea94b3b7ed1f866833afa16dee70f2e4
[]
no_license
https://github.com/Sun1Plus/SA-homework
e7731ba13b00c294bb3c8e11d29dbe8a10657586
e3afb3eb7e4288cda1a2dc6a8bb2ea3c8ef9fd83
refs/heads/master
2020-04-09T22:07:53.849072
2018-12-06T04:54:33
2018-12-06T04:54:33
160,620,737
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import time s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('127.0.0.1', 51423)) data = s.recv(1024) print(data) # send the ID and key str_Id = "admin" s.send(str_Id.encode('utf-8')) s.recv(1024) str_key = "admin" s.send(str_key.encode('utf-8')) if ((s.recv(1024)).decode() == "log...
UTF-8
Python
false
false
708
py
7
ClientDemo2.py
7
0.577684
0.532486
0
36
18.694444
53
atmark-techno/ThingsCloud-samples
25,769,838,823
c227b95b159522261c97024247c0fd2818383900
e2074e71c0ed7d12afc850e10489dafba022cebe
/Armadillo-IoT_GW/modules/lib/active_reporter.py
32ac3ffe5292042ea8f10b0901c69690d1b175e1
[ "MIT" ]
permissive
https://github.com/atmark-techno/ThingsCloud-samples
abe2ca81be9d8b6c352418dc2e86ea23c65f15d6
0f272283b0fb57f305b2f228ea1e3e787ddf80cf
refs/heads/main
2023-06-10T00:46:45.658640
2021-07-05T04:18:25
2021-07-05T04:18:25
381,943,731
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import asyncio from abc import ABC, abstractmethod class ActiveReporter(ABC): def __init__(self, report_queue, report_repository): self._quit_requested = False self._report_queue = report_queue self._report_repository = report_repository self._curr_state = None ...
UTF-8
Python
false
false
1,362
py
38
active_reporter.py
32
0.575624
0.575624
0
56
23.303571
58
ARWongQ/artificialntelligence_FinalProject
12,463,995,098,067
90204f9a9952211924de6566e0333a5e85bd340d
45c398a04ac78f9485b0e4cecd0cda23152e1472
/rolloutAgent.py
221142d52c7bb796abc005ceeba13fe7848f653a
[]
no_license
https://github.com/ARWongQ/artificialntelligence_FinalProject
fe23f03aa9d3bf95b32e2081cae63478d0d5762c
681135f207b88e853b705d5e71b3a0149725d4a4
refs/heads/master
2021-04-15T08:05:41.563142
2018-05-01T15:42:22
2018-05-01T15:42:22
126,395,614
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import UltimateTTT import copy from randomAgent import randomAgent #This class holds the information of an agent that uses rollout class rolloutAgent: def __init__(self): self.name = "Rollout Agent" self.firstMove = None #Uses rollout to pick a next move def getMove(self, wo...
UTF-8
Python
false
false
2,490
py
8
rolloutAgent.py
7
0.553815
0.540964
0
79
30.506329
65
web-2u/cmsplugin-aea-video
4,011,499,501,591
9b162388026bc486f100807cbbad72898a9fcd68
0a2e38bd2a3bb7b829aa507efe009e245b8491c4
/cms_plugins.py
361bd968237fea0b98d0bd672a8cfe3761214b09
[ "MIT" ]
permissive
https://github.com/web-2u/cmsplugin-aea-video
9c0de335089f70abe2bde5ae265a8fd1cba82060
0d12a9d12b4dc56206c0b665247d9207db355f12
refs/heads/master
2020-12-24T14:01:37.197374
2015-06-13T22:57:36
2015-06-13T22:57:36
37,389,299
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import os from django.utils.translation import ugettext_lazy as _ from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from filer.settings import FILER_STATICMEDIA_PREFIX from plugin.models import ALN_Video class ALN_VideoPlugin(CMSPluginBase): model = ALN_V...
UTF-8
Python
false
false
1,447
py
8
cms_plugins.py
5
0.579129
0.574292
0
52
26.846154
98
tefra/xsdata-w3c-tests
17,265,768,534,045
ea5a91e6795e5d82ba2136a5b7c774ee4b991cae
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/token/Schema+Instance/NISTXML-SV-IV-atomic-token-pattern-3-2.py
36ed7a888f35127d17b34cc2374176608efdf807
[ "MIT" ]
permissive
https://github.com/tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
false
2023-07-25T14:19:04
2020-02-10T21:59:47
2023-01-18T19:44:58
2023-07-25T14:19:02
36,096
2
0
0
Python
false
false
from output.models.nist_data.atomic.token.schema_instance.nistschema_sv_iv_atomic_token_pattern_3_xsd.nistschema_sv_iv_atomic_token_pattern_3 import NistschemaSvIvAtomicTokenPattern3 obj = NistschemaSvIvAtomicTokenPattern3( value="59353 And Work Product Tools Street Is Well Base , NC 13653" )
UTF-8
Python
false
false
300
py
18,966
NISTXML-SV-IV-atomic-token-pattern-3-2.py
14,569
0.816667
0.77
0
6
49
182
dagege1993/codeformyself
10,368,051,089,374
e1fa91558553b2112e261de431a82345fd68302d
1787eb394653a963377f977980125e0d05a2ddbb
/IDGdemo/Downloads/mysql/360sql语句/5.查询下载量前100app的每个月的下载量变化.py
eb0aa952182b9ca82a668581da643d0501c3416a
[]
no_license
https://github.com/dagege1993/codeformyself
51283169b819309e63c135ebca501f87d37a1651
0b32c6e1b224f543d23e284104d311f2a5c41475
refs/heads/master
2021-10-25T01:23:59.036132
2019-06-06T06:23:37
2019-06-06T06:23:37
146,266,239
7
8
null
false
2021-10-06T23:16:41
2018-08-27T08:03:11
2021-07-14T12:44:14
2021-10-06T23:16:40
40,736
7
9
14
HTML
false
false
import csv import pymysql db = pymysql.connect("192.168.103.31", "root", "adminadmin", "downloads") cursor = db.cursor() month_list = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'] data_list = [] for i, month in enumerate(month_list): if i < len(month_list) - 1: sql = """select m...
UTF-8
Python
false
false
1,983
py
715
5.查询下载量前100app的每个月的下载量变化.py
617
0.594567
0.552025
0
38
50.342105
393
gdefias/StudyPython
9,208,409,890,371
a7d3ba47a52691508fdbdc75d44db233e07b58f7
0c2b9d1dd4e92b623394f3915bfcb95b49953441
/Python/test_base/test_random.py
0e810eb31775d9a0460caab81dc2975d7ddd03a7
[ "Apache-2.0" ]
permissive
https://github.com/gdefias/StudyPython
ea49e00c2e4bc7768c93da5753a1230af29e0153
c0a3273b7d5f95803a56c5481865e38145923556
refs/heads/master
2017-02-24T21:25:18.924402
2017-02-11T15:56:53
2017-02-11T15:56:53
47,770,013
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf8 import os import string import random # print ''.join(map(lambda xx:(hex(ord(xx))[2:]),os.urandom(16))) print ''.join([(string.ascii_letters+string.digits)[x] for x in random.sample(range(0,62),11)]) #随机电话号码 print '158' + ''.join([str(random.randint(0, 9)) for x in range(0,8)])
UTF-8
Python
false
false
309
py
745
test_random.py
642
0.670034
0.616162
0
13
21.846154
95
dailylifes/rClock
2,010,044,708,246
0e33742f95ea739325bf7a419c1f5b7510e2b663
cd5d251fb710f834ac1f7d388da1e4eff36fbecb
/GUI.py
1c6de164d715f284a3149ff3f56b49062ef230a7
[]
no_license
https://github.com/dailylifes/rClock
1c73864afbf5d5cccd9d51326ba889ac6de78266
2d5d45b7765df1a8ed8b327882eb806e2df68317
refs/heads/master
2023-03-26T04:23:29.307995
2021-03-24T10:31:23
2021-03-24T10:31:23
246,729,815
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from datetime import datetime import math,time pygame.init() clock = pygame.time.Clock() surface = pygame.display.set_mode((1440, 720)) surfrect = surface.get_rect() if surfrect.h>surfrect.w: q = surfrect.w // 2 center2=q,q*3 else : q = surfrect.h // 2 center2=q*3,q center1=q,q RADIUS = q...
UTF-8
Python
false
false
4,114
py
4
GUI.py
3
0.619105
0.559067
0
87
46.287356
129
nabw/InternetControl
5,849,745,504,852
049ea7a64c8cea1946ce72e01814ac410aef2e5b
dee8613a99dc5fcb076f34a14726d28d6df20e59
/InternetControl.py
a0621ef9dea6baeb5621a43468702ed680cbed1d
[ "Apache-2.0" ]
permissive
https://github.com/nabw/InternetControl
6cbae5471de377bacf7a782c30fda5010c1f11f9
fbc9040c8a1f6bbe2064b781087c808e02a097dc
refs/heads/master
2021-01-10T07:00:26.752715
2016-02-21T06:23:56
2016-02-21T06:23:56
51,488,072
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 19 14:12:48 2016 @author: Nico Barnafi """ #import threading import sys ideal_down = 80. ideal_up = 40. def listen_write(T): from time import time, ctime, sleep from speedtest_cli import speedtest from Twitter import Twitter def mean(...
UTF-8
Python
false
false
2,455
py
3
InternetControl.py
2
0.517719
0.49002
0
78
29.371795
153
cassandra-server/PrintCodeBot
3,006,477,110,596
fa4181ee6788a1840de6ed41dd4a7036ab88591a
f62a606aff0524006463cf0643e217c0b2810803
/printcodebot.py
126d35302de77130c295cc22bd2fa89b53b57b56
[ "MIT" ]
permissive
https://github.com/cassandra-server/PrintCodeBot
bfc29aa5c90e7d714058250ca50c0d7dd15e7299
58d8d3db44a514b0e6d25bd38bbc3d805202cb5c
refs/heads/master
2023-02-20T05:52:00.404525
2021-01-24T11:51:44
2021-01-24T11:51:44
299,023,856
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import telegram from telegram.ext import Updater from telegram.ext import CommandHandler import subprocess import sys def get_data (raw, value): #value: 0 --> default / 1 --> usernames / 2 --> groups ug_data = raw.split(',') if value == 0: path = 'config/defaults.txt' elif value == 1: path = 'config/users.txt'...
UTF-8
Python
false
false
4,199
py
3
printcodebot.py
1
0.585377
0.574422
0
160
25.24375
99
V-Sekai/BlenderSynth
12,541,304,551,339
d4570e5ed00455decbf157cadc226c154db35620
5dbabad0e2ee092619cab8f8c46f7cc606671837
/blendersynth/blender/armature.py
dbcac5d8775fe5e02f01e0dd08102f6bb2db2e71
[ "MIT" ]
permissive
https://github.com/V-Sekai/BlenderSynth
5b4249d64db7013e0c3d97801aac6d35b4bb6eb6
800518d448e6153c1fd6f08fa89d63e57634aed3
refs/heads/main
2023-09-04T00:50:58.990026
2023-09-04T00:18:30
2023-09-04T00:18:30
686,787,856
0
0
null
true
2023-09-03T23:48:27
2023-09-03T23:48:26
2023-09-03T23:48:27
2023-08-31T13:41:53
23,887
0
0
0
null
false
false
"""Armature object for managing pose""" from .bsyn_object import BsynObject, animatable_property from .other_objects import Empty from .utils import SelectObjects, SetMode from typing import Union from ..utils import types import bpy import mathutils class PoseBone(BsynObject): def __init__(self, object: bpy.types...
UTF-8
Python
false
false
6,004
py
82
armature.py
66
0.701033
0.699367
0
219
26.415525
123
mayfield/aionanomsg
2,765,958,983,045
f57419ffb6e7a8e96469e81db9e8a71d129a67ce
d39725442cce65ffa069b544a95f2d18c3e0637d
/aionanomsg/pubsub.py
84f3b6b1a340c7cb99a2d52a26d09f285716e936
[ "MIT" ]
permissive
https://github.com/mayfield/aionanomsg
47bde1e9c8741fb080e984fbfb529c138c45fb9c
eae4d56b97031f130dce1a4097592e79c30d9364
refs/heads/master
2020-12-26T07:03:32.656364
2016-12-01T05:38:34
2016-12-01T05:38:34
68,728,648
8
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" aionanomsg pubsub high-level wrapper for NNSocket. While possible to use aionanomsg.NNSocket directly for pubsub this module provides a higher level interface for doing pubsub that allows more natural interaction from a python type program. """ import asyncio from . import socket, symbols class Subscriber(socke...
UTF-8
Python
false
false
2,477
py
8
pubsub.py
6
0.607186
0.606782
0
73
32.931507
76
kateapl/python_hw
2,413,771,649,989
4ad0f37c8261bed40aec22f4a45a1abb5717db92
67ec8ed9811c4651726f8df7225408a0c3366fb0
/homework6/counter.py
9cb504ca5838e80d9f22c1e2991c68185193055b
[]
no_license
https://github.com/kateapl/python_hw
ca87266fb315f61e59415dad1f860717c0d58422
8d684698a36e29aedc9c9aea5c9ff4e1b0059010
refs/heads/main
2023-04-17T10:21:49.095849
2021-05-07T09:55:28
2021-05-07T09:55:28
343,718,071
0
0
null
false
2021-05-07T09:55:29
2021-03-02T09:32:29
2021-05-05T19:25:58
2021-05-07T09:55:28
181
0
0
0
Python
false
false
""" Написать декоратор instances_counter, который применяется к любому классу и добавляет ему 2 метода: get_created_instances - возвращает количество созданых экземпляров класса reset_instances_counter - сбросить счетчик экземпляров, возвращает значение до сброса Имя декоратора и методов не менять Ниже пример использо...
UTF-8
Python
false
false
1,282
py
55
counter.py
49
0.620075
0.613508
0
44
23.227273
73
Modupeolawuraola/python_examples
17,798,344,501,745
4992c4124c274fe3a20f1fabfbfcb54acf5b6b36
87a0303aa883ab4ea21d993846c3fcc14dad94a1
/smaller_number.py
859e1145ef2a796c9ec127b297b0f86ecaf6a853
[]
no_license
https://github.com/Modupeolawuraola/python_examples
60737252afca8cdca281be1cacab2274803d3764
6cd1d83b025d7afa354f2b918b05fd0d4a02fd1b
refs/heads/master
2023-01-04T14:53:54.806612
2020-10-27T15:20:38
2020-10-27T15:20:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# You are provided with two numbers. Find and print the smaller number. a=int(input("Enter the number1:")) b=int(input("Enter the number2:")) if b>a: print(b) # else: # exit
UTF-8
Python
false
false
197
py
167
smaller_number.py
166
0.619289
0.609137
0
10
17.9
71
OpenSCAP/OVAL-visualization-as-graph
15,874,199,127,890
f24eb3222924d0ebcfd9ca947929822d0cc776d4
33d5c2dcea16adcfc516b09a2929a478610d806f
/oval_graph/_xml_parser_oval_scan_definitions.py
dad3e34c4e8edfb01c2fa5128d8103923e9d9013
[ "Apache-2.0" ]
permissive
https://github.com/OpenSCAP/OVAL-visualization-as-graph
b0a56e0aa802a64f25193729e6feeadbe3b4e138
9119cf413d0a0d2d79795848eb04fb3d919ab3be
refs/heads/master
2020-06-27T18:21:43.482464
2020-04-17T21:53:18
2020-04-17T21:53:18
200,017,125
21
11
null
null
null
null
null
null
null
null
null
null
null
null
null
from ._xml_parser_comments import _XmlParserComments from ._xml_parser_test_info import _XmlParserTestInfo class _XmlParserScanDefinitions: def __init__(self, definitions, oval_definitions, report_data): self.definitions = definitions self.comments_parser = _XmlParserComments(oval_definitions) ...
UTF-8
Python
false
false
5,157
py
38
_xml_parser_oval_scan_definitions.py
29
0.493698
0.493504
0
134
37.485075
90
marciopocebon/chipwhisperer-lint
12,902,081,761,732
b6bdd4c42e030ce6b2ffaf3ed8b95ba0eadea877
da5709febd35f567ae8561848a2cb531313dbd52
/server-backend/server/aes_helper.py
f0cf8aee646a94e57346bccebf929b31eadea205
[]
no_license
https://github.com/marciopocebon/chipwhisperer-lint
48c0a83067309f40f275c977eba30a58abe89ca8
492f0189e98980e4e6517a50177eb6d3d2db83d4
refs/heads/master
2020-07-02T22:40:56.865512
2018-08-08T17:58:30
2018-08-08T17:58:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
_sbox=( 0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27...
UTF-8
Python
false
false
19,148
py
39
aes_helper.py
12
0.666075
0.352935
0
357
52.638655
80
prayswear/ICN
9,191,230,058,362
c5379cf8501df5e528ff95e697b640204eff966f
5b96b6bf5ae357deab937ea66bda5f0f8d6b4df3
/test/test.py
16e7c94af79010325bda355ec7ef484da6e47f9b
[]
no_license
https://github.com/prayswear/ICN
1154ea6d25e4ce0878f2055ebf2f82a9644e97d4
760caae64e8a79c8c31ca60af3e6a8095578da8b
refs/heads/master
2021-08-18T23:35:25.843931
2017-11-24T06:44:55
2017-11-24T06:44:55
103,603,049
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle a=[1,2,3] b='asb' try: with open('mytest.txt','wb') as myfile: pickle.dump(a,myfile) pickle.dump(b,myfile) except IOError as e: print(e) try: with open('mytest.txt','rb') as readfile: c=pickle.load(readfile) d=pickle.load(readfile) print(c) pri...
UTF-8
Python
false
false
360
py
33
test.py
31
0.583333
0.575
0
19
17.947368
45
the-krafty-koder/pay-3
17,635,135,739,063
c3d26843a773c45f0254643ff3b1ba2cc04cee52
10da28522dfaff6a17bf1a94f1d3af7dad662f04
/payroll/employee_management/migrations/0007_auto_20200214_1858.py
4556c5469233ba3a9d9a4a6630827b8818389627
[ "MIT" ]
permissive
https://github.com/the-krafty-koder/pay-3
5c4981c99ff8386deac45953a7f12bfa99bb9198
7ebaade8536d8635983cdfbd44ef308b93563ed3
refs/heads/master
2023-02-23T10:59:18.211147
2022-07-15T11:56:19
2022-07-15T11:56:19
281,345,660
1
1
null
false
2023-02-15T18:53:45
2020-07-21T08:51:54
2022-07-15T11:57:18
2023-02-15T18:53:41
25,069
1
0
4
Python
false
false
# Generated by Django 3.0.3 on 2020-02-14 15:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee_management', '0006_contract_employee_name'), ] operations = [ migrations.AddField( model_name='employee', ...
UTF-8
Python
false
false
642
py
113
0007_auto_20200214_1858.py
85
0.573209
0.538941
0
23
25.913043
75
Mismael/AITechs
6,090,263,653,127
4ad7695bb46643b7bc0a830fbc715e460cf1d9db
c436b76d983424c4424b51a09b972ccda26a3a85
/libs/id.py
282ec24dca4a719cacd9868d2cc906d1862d4b98
[]
no_license
https://github.com/Mismael/AITechs
c9039698e46611e649ee286a35543e6fec61c38f
a56563c46f98094b005be3011a9c23e6519f6b1e
refs/heads/master
2018-12-24T20:45:06.094429
2018-12-02T10:03:30
2018-12-02T10:03:30
134,665,415
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 1 01:46:15 2018 @author: mohammed-PC """ ''' Modules Imports ''' import os import csv import cv2 import sys import dlib import time import keras import imutils import platform import numpy as np import tensorflow as tf from keras.models import load_model from matplotli...
UTF-8
Python
false
false
23,703
py
84
id.py
36
0.537822
0.512171
0
585
39.488889
137
curious95/projektCORM
4,561,255,299,071
f17687138daed5ed7a5f3195efc0a650500a7a4a
adef79334cd1d7d0ba1f03470812a54d362c744e
/src/operations/send_mail.py
533c8bad36299c23a36e57ff11011dabadd14792
[ "Apache-2.0" ]
permissive
https://github.com/curious95/projektCORM
877f71e8c4f6f26c35354c98688cd866eff697bf
df03028d9ea6ae30ac29eaaceeea5541536b7754
refs/heads/main
2023-03-30T20:18:21.999023
2021-04-08T04:40:16
2021-04-08T04:40:16
355,651,408
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from mailjet_rest import Client import os def send_mail(data_dict): api_key = 'a250fe782d77b72c1d56e61dba45b90d' api_secret = '469d131a28910a535146932dbb9353f3' mailjet = Client(auth=(api_key, api_secret), version='v3.1') data = { 'Messages': [ { "From": { "Email": "kamal.flyhigh@gmail.com"...
UTF-8
Python
false
false
897
py
3
send_mail.py
2
0.602007
0.544036
0
30
28.9
149
bomb1e/gotgit
6,846,177,903,246
a6fd6bcaceb9201ce0baa5c84d9b9ceb8d951ce4
7192da38b6afd3c60f80ccbecb3040cf34369ce3
/fc025e2e-894c-4240-b938-94fc394d319a.py
a1357bfcd49bdd25805dd2e9705dbf9e9a44cf48
[]
no_license
https://github.com/bomb1e/gotgit
6699fa9e6adb0a79f22441df41a102b09b78c2ce
3c14cb6d1d0c4cba6a1e24a9899462d2e4bee2ce
refs/heads/master
2020-06-12T06:00:34.695425
2018-08-01T02:00:02
2018-08-01T02:00:02
75,600,461
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function def func48(arg312, arg313): var318 = func49(arg313, arg312) var329 = func50(arg313, var318) var334 = func53(var318, arg312) var335 = arg313 | -20 & arg313 if var335 < var334: var336 = ((arg313 - (var335 + ((-779 ^ (var334 + arg312) | var335 & (var329 ^ (...
UTF-8
Python
false
false
22,632
py
25,849
fc025e2e-894c-4240-b938-94fc394d319a.py
25,848
0.574938
0.303597
0
575
38.361739
249
Anand-S23/Instagram-Clone
8,151,847,936,541
21b65aa58f8248efedc89d8f49cdb80f778ea907
516f243bd1827ec01e5f946cb07183350c989f26
/post/migrations/0020_auto_20191020_1820.py
b2a309dcad73d891638bd10843af7364d188ad2f
[]
no_license
https://github.com/Anand-S23/Instagram-Clone
e383bfdcb8770112e9bec0c67f01abd410db5984
dc4b6cdd31689e2fa2354851cbcb3447f61b5661
refs/heads/master
2020-08-07T15:25:30.671288
2019-11-25T20:09:06
2019-11-25T20:09:06
213,504,868
1
0
null
false
2019-10-23T23:11:26
2019-10-07T23:21:38
2019-10-23T23:03:07
2019-10-23T23:11:26
965
0
0
0
JavaScript
false
false
# Generated by Django 2.1 on 2019-10-20 18:20 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0019_auto_20191020_1812'), ] operations = [ migrations.AlterField( model_name='comment', name=...
UTF-8
Python
false
false
656
py
57
0020_auto_20191020_1820.py
40
0.591463
0.487805
0
24
26.333333
99
keolis-metropole-orleans/ITxPT
9,586,367,009,203
a58ebcf474eb0fb0130160323432d934fbb810b3
6f2fd86fdcff8e96e11245a17f74fa645e9583a3
/AVMS/ServerAVMS.py
fc488b036a115a7b1ea74df3c55dac5d39150b15
[ "MIT" ]
permissive
https://github.com/keolis-metropole-orleans/ITxPT
48f78957c16a7d159f1936fe76b129eb1baf30dc
1fdf6768be3415e6193d32d87194bfcd3574a889
refs/heads/main
2023-07-15T12:39:25.470637
2021-08-25T14:08:56
2021-08-25T14:08:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from http.server import HTTPServer, BaseHTTPRequestHandler import xml.etree.ElementTree as ET # Création de l'objet Server class Server(BaseHTTPRequestHandler): # Setup du headers def _set_headers(self): """ Fonction qui permet de setup le headers Nom fonction : _set_headers ...
UTF-8
Python
false
false
12,636
py
38
ServerAVMS.py
17
0.525265
0.522152
0
294
41.608844
151
tanyabonilla/webproject
17,454,747,113,120
c8eff9d122e0a4cc59a6c69c81b6b0dd4bf15423
051a832fe8e657641b08688200d09ab34cb5a10d
/myCalsite/myCalapp/urls.py
4ecc6663b0e02bfacab147b9b32880612ce7d800
[ "MIT" ]
permissive
https://github.com/tanyabonilla/webproject
0d8417b5de4eb58a819714506e4e491c645d0f58
8c194faf68129a090a0309e601f92f4269c870ca
refs/heads/master
2022-11-15T10:10:47.346420
2019-12-24T07:20:58
2019-12-24T07:20:58
215,208,836
2
0
MIT
false
2022-11-04T19:31:03
2019-10-15T04:46:27
2019-12-24T07:21:02
2022-11-04T19:31:00
430
0
0
4
JavaScript
false
false
from django.urls import path, include from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('', views.CalendarView.as_view(), name='calendar'), path('logout/', views.logout_view), path('login/', auth_views.LoginView.as_view()), path('register/', views.register), ...
UTF-8
Python
false
false
1,531
py
22
urls.py
10
0.662312
0.662312
0
33
45.424242
68
d3fin3d/mercycogs
15,040,975,471,991
f3ad9f234ff73ddd1848d96123647e94dfc25fdc
8fa8701de63b33e327b915cb01c73ca533de58f3
/wikipedia.py
ba75645ef071522d4b7d3ba7c47447bebe02793d
[]
no_license
https://github.com/d3fin3d/mercycogs
fa51a07216cedee39e55446570fb850f07069f31
e2f1e9edf698d86000016d8dcf680ad49cf958ca
refs/heads/master
2021-01-15T15:31:05.366774
2016-08-31T22:39:20
2016-08-31T22:39:20
64,248,940
0
1
null
false
2016-08-31T22:39:21
2016-07-26T19:35:19
2016-07-26T20:16:26
2016-08-31T22:39:20
357
0
0
4
Python
null
null
from .utils.dataIO import fileIO from discord.ext import commands import aiohttp import html import os import re class Wikipedia: """ Le Wikipedia Cog """ def __init__(self, bot): self.bot = bot @commands.command(pass_context=True, name='wikipedia', aliases=['wiki', 'w']) async def _wikipedia(self, context, ...
UTF-8
Python
false
false
1,475
py
6
wikipedia.py
5
0.632542
0.628475
0
52
27.365385
78
alecraso/spackl
11,373,073,401,202
d61c8e8d5eb5358f5d2b5124bbc4e1772c2facc2
15f0a82506d2c049df0285e5948b97b80d58a40b
/tests/test_util.py
7d926245cd84e2c4e08c2ff4909607af2e294695
[ "MIT" ]
permissive
https://github.com/alecraso/spackl
c71475e565ab487439ef6492151a19da19033361
71906a3da6470f67bff19c42bd0f1f8748c5056f
refs/heads/master
2023-08-09T16:02:35.164229
2019-03-09T07:28:26
2019-03-09T07:28:26
174,647,506
0
0
MIT
false
2023-07-21T16:09:08
2019-03-09T04:22:08
2019-03-09T07:28:31
2023-07-21T16:09:08
32
0
0
3
Python
false
false
import datetime import decimal import json import pytest from collections import OrderedDict from spackl.util import DtDecEncoder results = [OrderedDict([('a', 1), ('b', decimal.Decimal(2.0)), ('c', datetime.date(2018, 8, 1))]), OrderedDict([('a', 4), ('b', decimal.Decimal(5.0)), ('c', datetime.date(2018,...
UTF-8
Python
false
false
1,011
py
40
test_util.py
29
0.585559
0.509397
0
28
35.107143
105
NeoNeuron/bmtk
10,204,842,321,681
8281ef3e96c9ed06adc100477e3ff876b6b36df1
fd47dc01b2e31a61e208867893216656f3bdc5ec
/bmtk/tests/builder/test_id_generator.py
ba9dc5ecb451623fe544fbd58a44ce2f2f0ea15b
[ "BSD-3-Clause" ]
permissive
https://github.com/NeoNeuron/bmtk
e67390b16ee9d88295cc64de60abf3f3faa25045
257a2041d0b936efeae60c1f37d0542624fd88ea
refs/heads/develop
2023-01-23T22:54:09.267010
2020-12-11T12:46:43
2020-12-11T12:46:43
303,979,929
1
0
BSD-3-Clause
true
2020-12-11T12:46:44
2020-10-14T10:27:51
2020-10-14T12:16:28
2020-12-11T12:46:43
142,475
0
0
0
Python
false
false
import pytest from bmtk.builder.id_generator import IDGenerator def test_generator(): generator = IDGenerator() assert(generator.next() == 0) assert(generator.next() == 1) assert(generator.next() == 2) def test_generator_initval(): generator = IDGenerator(101) assert(generator.next() == 101)...
UTF-8
Python
false
false
916
py
117
test_id_generator.py
51
0.657205
0.601528
0
36
24.444444
49
NYPL-Simplified/circulation
15,109,694,986,989
25fada0191dfaf5c3d124431eddb7a373a23c67a
d5b1aeec9c21c9a258e66aed7aa3dcdbec37b376
/core/tests/models/test_appeal.py
d0c317b00b03a1afc784749b1a31c96eade8152f
[ "Apache-2.0" ]
permissive
https://github.com/NYPL-Simplified/circulation
5a13d5c43e12da154dcd864709bce0578ec05a30
662cc7e0721d0153857c8c17a37e2a6df86f8ce6
refs/heads/develop
2023-08-16T19:24:25.376510
2023-08-15T11:38:49
2023-08-15T11:38:49
27,605,405
20
19
NOASSERTION
false
2023-08-16T13:15:11
2014-12-05T18:53:04
2022-12-14T22:30:15
2023-08-16T13:15:10
99,864
18
17
83
Python
false
false
from ...model import Work class TestAppealsAssignment: def test__assign_appeals(self, db_session, create_work): """ GIVEN: A Work item WHEN: Assigning appeals THEN: Verify that the correct appeals have been assigned """ work = create_work(db_session) work...
UTF-8
Python
false
false
1,098
py
903
test_appeal.py
713
0.627505
0.581056
0
29
36.862069
65
jgv7/Isotuple
6,923,487,314,306
97f3563bc5d9fa0fef531005082dd59978029c9f
c8d443f0728fe86740ab8cfb645d47b970f3f59e
/workarea_ntupleIso/makeHisto.py
2d189274643cd4f369a7bfcd3e2a533f503e2a08
[]
no_license
https://github.com/jgv7/Isotuple
58968f1eaba54c98b036064f4f07b1da6be33cc2
67b949a97e2912f9c939183e4528b75a203484e9
refs/heads/master
2016-08-08T00:44:42.479626
2015-04-24T21:25:09
2015-04-24T21:25:09
34,356,960
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ROOT import * from math import sqrt dict = {} def makeTH1F( name, title, nbins, xmin, xmax ): if (name in dict): print " -- Error: TH1F histogram %s already declared." % name return dict[name] = TH1F(name, title, nbins, xmin, xmax) dict[name].Sumw2() def makeTH2F( name, title, nbinsx, xmin, xmax,...
UTF-8
Python
false
false
1,007
py
70
makeHisto.py
32
0.618669
0.587885
0
40
24.15
72
googoles/Python_Algorithm
10,514,079,987,674
e18777f81c295dd1f2eaf1ca810f14688824a052
76e7e5b21d064bdb4c3f1a8e18216197db3c3c6e
/Algorithm_basic/recursion_practice/search.py
f05a5c506835dc07406bd0f6816aea45166ea6cc
[]
no_license
https://github.com/googoles/Python_Algorithm
f594314aa51deed31008945843f28192916f1577
80c2c8ef4c4b617e2adea1fdcc6901109d546781
refs/heads/master
2022-12-26T16:30:19.579556
2020-09-11T14:34:31
2020-09-11T14:34:31
240,672,932
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def search(li, begin, end, target): if begin>end: return -1 elif target == li[begin]: return begin else: return search(li,begin+1, end, target) li = [1,6,10,7,2,5] target = 10 search(li,0,5,10)
UTF-8
Python
false
false
230
py
152
search.py
150
0.573913
0.508696
0
11
20
46
hahyuning/coding_test
15,092,515,105,063
dfd5b49f445abec253b301c82bb36407087d6848
f7b721dd39c5d0b6a2a409280db1517e9e590295
/problem_solving/2021/211225/211225_5.py
9629fa33fa228311ea0438583463a4af2c7e07b9
[]
no_license
https://github.com/hahyuning/coding_test
9ac5c1424ef7637affe8167374ff832b0e7c03ee
70cae3bd40ff4ef0c5a29a22acd8304d7d0bbee3
refs/heads/master
2023-07-05T01:17:06.650554
2022-08-04T06:39:27
2022-08-04T06:39:27
353,721,441
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import heapq def dijkstra(i, start): q = [] heapq.heappush(q, (0, start)) dist[i][start] = 0 while q: cost, now = heapq.heappop(q) if dist[i][now] != -1 and dist[i][now] < cost: continue for nxt, nxt_cost in graph[now]: nxt_cost += cost if ...
UTF-8
Python
false
false
1,043
py
1,091
211225_5.py
1,090
0.492809
0.47651
0
45
22.2
61
chauvm/massp-mentees-exercises
4,604,204,969,667
09d47092f481428f6be598cb4589b57033072ea2
9a854ac51cb5f6d75f0915de39358d02f42c1f4d
/python/algorithm/easy_reshape_matrix.py
9fdbfb03cba651cbd0b0a14928866148d667d5ed
[ "MIT" ]
permissive
https://github.com/chauvm/massp-mentees-exercises
f07533614bbc8ddd650dc133afd91140a66b80e4
741a890c6beeeb623ee7598f62a78167de5a68d7
refs/heads/master
2020-04-01T07:53:23.399626
2018-10-28T03:30:42
2018-10-28T03:30:42
153,008,489
1
1
MIT
false
2018-10-28T03:40:52
2018-10-14T19:02:44
2018-10-28T03:30:50
2018-10-28T03:40:26
3
0
1
1
Python
false
null
''' In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. You're given a matrix represented by a two-dimensional array, and two positive integers r and c representing the row number and column number of the wanted reshaped...
UTF-8
Python
false
false
1,071
py
5
easy_reshape_matrix.py
3
0.720822
0.690943
0
34
30.5
186
regulusweb/django-oscar-api
13,769,665,157,503
eb7ac3c10068b12d5310614f70fa278acf466272
f0e4cd636a70864a51dfe8f836ed8a5da4775f07
/oscarapi/tests/test_apps/apps/oscarapi/serializers/__init__.py
7f493b8edaa2b8397acbaed29c4525094cd22d2e
[ "BSD-2-Clause" ]
permissive
https://github.com/regulusweb/django-oscar-api
4a276337dfaa684aaa55f1ce09877be6c808e81d
54b90aa27daf3ba22fcb0f2c9f03b3a6402c82c7
refs/heads/master
2020-04-05T09:26:16.880534
2017-02-10T14:00:12
2017-02-10T14:00:12
40,957,350
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from .basket import *
UTF-8
Python
false
false
21
py
18
__init__.py
10
0.761905
0.761905
0
1
21
21
bchuey/valet
16,080,357,582,300
1de641c85fadc97dd1dfc03777ccb7bcf62380b3
5959a8f6170fb2ad412944255b4a761362d97a08
/src/locations/models.py
5cbcec75d6c56b022e966abb7e628fd24213c620
[]
no_license
https://github.com/bchuey/valet
7bd59e93023c5eaa915ed1fcca76a588202c5063
2aae705c718a5b10cc9fbe4b2e93ad819e1328c2
refs/heads/master
2016-08-11T22:14:58.720776
2016-04-26T17:49:51
2016-04-26T17:49:51
54,831,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import unicode_literals from django.db import models from accounts.models import PARKING_ZONES # Create your models here. class Location(models.Model): lat = models.CharField(verbose_name='latitude', max_length=255, null=True, blank=True) lng = models.CharField(verbose_name='longitude', max_leng...
UTF-8
Python
false
false
1,426
py
60
models.py
48
0.719495
0.708275
0
66
20.5
100
Mengqiao2020/Challenge-of-Leetcode2020
8,203,387,539,837
9384c1ac9eee75db9e65a5a2195943e5cb0b8675
efbf6249d6f59bf80cb1a04c115bad65913e2192
/39xdgy/q16.py
3f7cf0ede1ce70a661d24034f34f6413a1a1b38f
[]
no_license
https://github.com/Mengqiao2020/Challenge-of-Leetcode2020
122719626aff14232f9a8dc4bd94ea4988325f88
c2c880dd9185a1d10e01e870ad85174bf6955ad3
refs/heads/main
2023-02-18T20:04:59.314256
2021-01-17T04:06:00
2021-01-17T04:06:00
325,318,479
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' !!!!! 3sum closest 56ms, 99.24%, 10.10% ''' class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: nums.sort() return self.KSumClosest(nums, 3, target) def KSumClosest(self, nums: List[int], k: int, target: int) -> int: N = len(nums) if N == k: ...
UTF-8
Python
false
false
1,125
py
25
q16.py
23
0.48
0.462222
0
40
27.15
85
calvinchankf/AlgoDaily
6,098,853,601,480
e794c29fd8af3b0ba36b8fb77d57f1c2e16eac4c
e00f0f6a6f605532b1123d3e985a5902609eb30a
/leetcode/2751/main.py
f0f726110db8521407a1d948385cbb36630e544f
[]
no_license
https://github.com/calvinchankf/AlgoDaily
b53c5ea5896e9b8662f4f97bce3eb41b480eb8e0
8ee5006e42442043816881ee88ccc485a3a56ec5
refs/heads/master
2023-08-25T11:48:47.415388
2023-08-25T08:55:22
2023-08-25T08:55:22
146,955,627
154
48
null
false
2023-09-09T09:02:43
2018-09-01T00:56:43
2023-09-03T17:36:52
2023-09-09T09:02:42
63,478
2
1
11
Python
false
false
""" stack + hashtable - very similar to lc135, additionally: - sort the original posstions for displaying the result in the later stage - sort the robots by positions - just added some logic to decrement the health upon collision Time O(NlogN) Space O(N) """ class Soluti...
UTF-8
Python
false
false
1,435
py
3,428
main.py
3,404
0.416028
0.394425
0
46
30.195652
108
YaminiHP/SimilitudeApp
14,611,478,743,768
f96876ccee1d5e491f5a67d67aaee71aca261844
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/nltk/corpus/reader/nps_chat.py
e685b2d0bc4729ed5bb215418cd66d3d3f628919
[ "MIT" ]
permissive
https://github.com/YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:f0679235f8a9752d007fe639fcc52cac3aaed31c94f815cddf0381f63bc625da size 2846
UTF-8
Python
false
false
129
py
3,552
nps_chat.py
3,523
0.883721
0.534884
0
3
42
75
Cyberwatch/httpie-cbw-api-auth
13,778,255,087,741
4665827af84ff9b8f0d94f14700a262a674c6445
888ccd2fb03e7a6d02036394cb26022066015b91
/setup.py
3973f4a65b0477f20600ef7bd862934fbef6d520
[ "BSD-3-Clause" ]
permissive
https://github.com/Cyberwatch/httpie-cbw-api-auth
e5b19d8d88fbf33903dbfa4c76f599771755556b
7393ad002d12cc3399b9ac497002f0504517d1e1
refs/heads/master
2021-08-22T11:59:21.199078
2020-08-28T13:38:09
2020-08-28T14:00:01
217,558,787
0
1
BSD-3-Clause
false
2020-08-28T14:00:03
2019-10-25T15:05:38
2019-12-20T16:43:18
2020-08-28T14:00:02
6
0
1
0
Python
false
false
from setuptools import setup try: import multiprocessing except ImportError: pass setup( name='httpie-cbw-api-auth', description='CyberWatch ApiAuth plugin for HTTPie.', long_description=open('README.md').read().strip(), version='0.1.0', author='CyberWatch SAS', author_email='contact@cy...
UTF-8
Python
false
false
681
py
3
setup.py
2
0.632893
0.622614
0
26
25.192308
72
SinghMPManas/PythonAutomationFramework1
13,460,427,507,950
cb87b398983beb0cca12f4174925d5165ee57ee9
e3befe74919cb3fb9677a11e8070fca10f0c98a3
/pages/LoginPage.py
caf868985e403bc74ab42634e5d1b5513a4a5907
[]
no_license
https://github.com/SinghMPManas/PythonAutomationFramework1
fb31959a274b3c422fbaecce443ef631c834f27c
5798ce49074f801d674bf30eefb4fb489c7867cf
refs/heads/master
2020-09-26T04:01:29.914723
2019-12-05T17:56:44
2019-12-05T17:56:44
226,160,557
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class loginPage(): def __init__(self, driver): self.driver = driver self.username_textbox_id = "identifierId" self.username_button_xpath = "//span[@class='RveJvd snByac']" self.password_textbox_name = "password" self.password_button_xpath = "//span[contains(text(),'Next')]"...
UTF-8
Python
false
false
958
py
4
LoginPage.py
4
0.680585
0.680585
0
23
40.695652
88
bumps/bumps
4,904,852,698,065
393d2481ddb01d8773b6d5bab76af5f08b795ced
ce60f76c6ad4c48fd6182240b302ee057809cc66
/bumps/gui/log_view.py
377fc4a856406f29e4dc2df28bc02cf31251f5e1
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
https://github.com/bumps/bumps
8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860
2594e69567d534b434dc0eae727b77fdeff411d4
refs/heads/master
2023-08-22T17:56:49.987181
2023-07-26T14:22:23
2023-07-26T14:22:23
2,799,064
48
28
NOASSERTION
false
2023-07-26T14:22:24
2011-11-17T22:22:02
2023-06-02T16:18:40
2023-07-26T14:22:23
13,245
51
27
63
Python
false
false
import wx IS_MAC = (wx.Platform == '__WXMAC__') class LogView(wx.Panel): title = 'Log' default_size = (600,200) def __init__(self, *args, **kw): wx.Panel.__init__(self, *args, **kw) self.log_info = [] vsizer = wx.BoxSizer(wx.VERTICAL) self.progress = wx.TextCtrl(self,-1,s...
UTF-8
Python
false
false
1,339
py
211
log_view.py
177
0.551158
0.539208
0
51
25.254902
77
coderZsq/coderZsq.practice.data
5,050,881,587,290
b84a4a55824f15712d80e9adbfa02ee63f9be3c3
c010875f491833eb1219e848c2553c25c3b20371
/study-notes/py-collection/03_常见数据类型/04_练习.py
a3175fa5b5ca5bd03b45ad0e6588aab97acfd8b6
[ "MIT" ]
permissive
https://github.com/coderZsq/coderZsq.practice.data
98cd8607706a4bc13e2b36874e0a8292a7e48eba
67065db6ed8abc912d941bcb0acca16f122a053f
refs/heads/master
2023-08-16T11:51:05.572689
2023-08-10T08:19:43
2023-08-10T08:19:43
141,536,622
3
1
MIT
false
2023-08-10T08:19:45
2018-07-19T06:51:09
2023-08-09T05:14:37
2023-08-10T08:19:43
109,162
3
0
2
Jupyter Notebook
false
false
import turtle as t # 设置画笔的大小 t.pensize(20) # 隐藏方向箭头 t.hideturtle() # 第1条边 t.pencolor('red') t.forward(100) # 第2条边 t.pencolor('green') t.right(90) t.forward(100) # 第3条边 t.pencolor('blue') t.right(90) t.forward(100) # 第4条边 t.pencolor('orange') t.right(90) t.forward(100) t.mainloop()
UTF-8
Python
false
false
365
py
184
04_练习.py
179
0.622222
0.546032
0
28
9.321429
20
utikeev/bio-normalizers
2,310,692,430,418
eab8aa6280e2d129c840c941e795a05f4ea91897
e986dbfe9ef74926ebbca9979bfa811db85e625e
/bionorm/normalizers/species/DictNormalizer/data/build_dict.py
c9ae02e495554499432bf1a8bece6d601c24b4cc
[ "MIT" ]
permissive
https://github.com/utikeev/bio-normalizers
3b81a7d75cdbd868ba6680a3f49510e8183b0765
d7234d8ce01687d24f0f5bbba63a59eb87474bbb
refs/heads/master
2023-04-27T05:05:50.085331
2021-04-20T20:30:08
2021-04-21T08:16:13
261,192,144
0
0
MIT
false
2023-04-21T20:43:33
2020-05-04T13:49:10
2021-04-21T08:16:17
2023-04-21T20:43:33
134
0
0
1
Python
false
false
import argparse from collections import defaultdict from pathlib import Path from typing import NamedTuple, Optional, Dict, List from tqdm import tqdm def setup_argparser(): parser = argparse.ArgumentParser() parser.add_argument("--dump", type=lambda x: Path(x), required=True) parser.add_argument("--out...
UTF-8
Python
false
false
1,760
py
87
build_dict.py
61
0.5875
0.583523
0
56
30.428571
84
niyoufa/tnd_server
10,093,173,195,860
95dd1efb5eaeb83f57b83808712413aeff1f917f
4c2a391f2f4d7361f2c7111b6d63edf67056f327
/model_autoload.py
1755fa320cc81b5f3c24c3d992064118086c7d2f
[]
no_license
https://github.com/niyoufa/tnd_server
6d69db32ceb5a6a14417b3e8b0f021fdc0e7e79c
59c9ac6769773573685be215b4674d77545fe127
refs/heads/master
2020-06-23T15:43:28.891619
2016-08-26T03:44:01
2016-08-26T03:44:01
66,613,944
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf-8 import pdb import os import importlib _model_file_list = os.listdir(os.path.dirname(__file__)+"/model") model_module_names = [name.split(".")[0] for name in _model_file_list \ if not name.endswith(".pyc") and name not in ["__init__.py","mongo.py","Redis.py"]] def _generate_collecti...
UTF-8
Python
false
false
591
py
30
model_autoload.py
24
0.666667
0.663283
0
15
38.466667
105
alexmerser/flask-xxl
10,685,878,664,542
57bb6c76928eaf1e639f758a62b1e3a0c18824e2
2669bcd2f409a3cd7227017bc74c8a1e22359eda
/flask_xxl/hooks.py
dc908a6341731895e23783bfb8c91ba9c47357ab
[]
no_license
https://github.com/alexmerser/flask-xxl
ebdc7162bdd247659159a4e2deaca3537a618972
530f08eed38cc07f9776520108a3eb0f0efa31f3
refs/heads/master
2020-12-30T18:58:11.584791
2015-02-01T05:16:46
2015-02-01T05:16:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from mrbob import bobexceptions as mbe # post question hooks - takes (configurator,question,answer) # pre question hooks - takes (configurator,question) def add_apps(c,q): if not c.variables['project.add_apps']: raise mbe.SkipQuestion def check_for_captcha(c,q): if not c.variables['local_settings.us...
UTF-8
Python
false
false
1,164
py
7
hooks.py
6
0.542955
0.542955
0
35
32.171429
82
nikolauspschuetz/sbr
17,575,006,181,481
d14d862ca4d498d026f2023c685b0e33695849d5
773a17f7466dcf0dfeb581d8202f82672d444e3c
/sbr/ui/info.py
dee0417e74eacb4c22edd67e3c8bba5a2dc26f6f
[]
no_license
https://github.com/nikolauspschuetz/sbr
7f6bc2e9276c03cc63ded9fe5bd9cd48cb0742bb
75f24820731e43e25d011694c99172979360e939
refs/heads/master
2020-09-02T06:12:56.984614
2020-08-12T03:02:19
2020-08-12T03:02:19
219,152,230
1
0
null
false
2020-10-18T17:21:49
2019-11-02T12:43:02
2020-10-18T16:42:16
2020-10-18T17:21:48
392
1
0
1
Python
false
false
""" # Created by nik at 12/2/19 """ from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from webelem import WebElem class InfoBox(WebElem): """info box element of ui-dialog pop-up Methods: columns: list(str), text of each element in the table hea...
UTF-8
Python
false
false
3,674
py
45
info.py
43
0.620033
0.61595
0
118
30.135593
118
cappuccino213/IMCISDB_Migration
6,090,263,633,707
b307bdf3caceae1e7881177ac8a37bfa5a731b9a
0b9ce477019979bae8d40646e9eb9a6bf3f09136
/test1.py
4de24d245a01fe60d589dcdefc5853bcda788a29
[]
no_license
https://github.com/cappuccino213/IMCISDB_Migration
c4938d9f360c34abb33aded1ac6285111c5501b2
9306e4aa9d07e96cef292cfd4c1954ebcb68c9a3
refs/heads/master
2020-04-13T07:12:24.119495
2018-12-25T03:52:04
2018-12-25T03:52:04
163,043,970
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# l = [i for i in range(33)] # n = 7 # # print([l[i:i+n] for i in range(0,len(l),n)]) # # for i in range(0,len(l),n): # print(l[i:i+n]) from read_ini import * from ReadSql import view_sql,select_sql,insert_sql from mssql import MSSQL import datetime import decimal import re DB1 = MSSQL(host1,user1,password1,datebas...
UTF-8
Python
false
false
3,889
py
12
test1.py
9
0.624019
0.606862
0
150
21.933333
91
IBMDataScience/NorthwesternAI
18,571,438,630,066
1601e46350a7bbb53d6a735de6c7eedfde464422
5dfb74965d5cd9a7840157104d0d6bee9b8072fc
/additional-resources/MachineLearning/DeepLearning/NeuralNetworkModeler/Deep_learning_demo-keras.py
122fd32ac63215ebb16eef5cc45565b695e22d0f
[]
no_license
https://github.com/IBMDataScience/NorthwesternAI
9bbb954e80cd27cd29143ee22083f0d5e7f8ace6
f034f7b78868b8637087e40327fd2424c55a0bdf
refs/heads/master
2020-04-01T11:45:50.197592
2018-12-04T22:05:46
2018-12-04T22:05:46
153,176,669
5
2
null
null
null
null
null
null
null
null
null
null
null
null
null
''' IBM Deep Learning (IDE) Generated Code. Compatible Keras Version : 2.1 Tested on Python Version : 3.6.3 ''' # Choose the underlying compiler - tensorflow or theano import json import os with open(os.path.expanduser('~') + "/.keras/keras.json","r") as f: compiler_data = json.load(f) compiler_data[...
UTF-8
Python
false
false
8,722
py
25
Deep_learning_demo-keras.py
4
0.66166
0.624169
0
180
47.45
260
naamara/blink
6,021,544,157,929
5705eb593a25ee07504b6f6a5f21447497b7b556
05c08e8a1440122d0b798e28b5c822eed31fdac0
/seo/forms.py
ccd19ac6a8992404e5270701a3859796e32144b1
[ "MIT" ]
permissive
https://github.com/naamara/blink
01add499370658394f27f029812762580d5f593c
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
refs/heads/master
2022-12-14T00:12:00.877583
2019-06-21T13:29:08
2019-06-21T13:29:08
93,284,655
0
0
null
false
2022-11-22T03:15:06
2017-06-04T02:11:05
2019-06-21T14:16:39
2022-11-22T03:15:03
91,744
0
0
12
Python
false
false
'''seo forms''' from django import forms from seo.models import Metadata class AddSeoForm(forms.ModelForm): """ Form for saving seo """ class Meta: model = Metadata fields = '__all__' #fields = ['keywords', 'title', 'description', 'lastname', 'ext']
UTF-8
Python
false
false
261
py
248
forms.py
101
0.662835
0.662835
0
13
19.153846
67
gklb/gklb
19,490,561,624,197
b8d4c3e5fab0c92e69b04fff298a84c4a0c812d5
2a878e3d5c9df683882ab5d500ee8dc539406c5a
/ML/proc_train/DNN_Softmax.py
771c920bfc65beafde40cb42dd28f3e7051e2371
[]
no_license
https://github.com/gklb/gklb
d41c308c138ee9091aa205a6d9607377b0e6e83f
e1c9d44ac075271522d771f58c568f724fde595d
refs/heads/master
2023-02-11T13:34:12.111283
2023-01-30T04:32:38
2023-01-30T04:32:38
208,537,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''참고 https://tykimos.github.io/2017/01/27/Keras_Talk/ about keras , myth https://rfriend.tistory.com/553 construction DNN model 출처: https://3months.tistory.com/424 [Deep Play] ''' import numpy as np import pickle import tensorflow as tf import random from tqdm import tqdm import os from sklearn.preprocess...
UTF-8
Python
false
false
4,205
py
34
DNN_Softmax.py
23
0.613533
0.59757
0
128
30.789063
138
xindongzhuaizhuai/hound
13,357,348,320,496
a67f7fd55fc5502b16a8406ff257c2f31ea64c84
9c2cf6f55b5b8abdb92efb38d780aee35f30dbdb
/table/setup.py
0d7a2ae28448eda720d99f5298e452c6f9b0ea82
[ "MIT" ]
permissive
https://github.com/xindongzhuaizhuai/hound
760b731424319e23770849085591460606059990
2f9e4ee97fc31c3425a1a45b712923e948dc1871
refs/heads/master
2020-12-21T03:06:54.281460
2020-04-15T04:29:14
2020-04-15T04:29:14
72,496,229
96
36
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from platform import python_version_tuple import os import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI if python_version_tuple()[0] >= '3': LONG_DESCRIPTI...
UTF-8
Python
false
false
1,899
py
14
setup.py
12
0.599263
0.588204
0
55
33.527273
91
zandaoguang/English
5,145,370,840,417
ac4b54c7d6877e9732824e8176fd0aed7d519479
b19055f6058490ba1da346f3531dc863a2d15d5e
/basicwords.py
41b86ece45dbe5468fc0205041ca30aeb4834b01
[]
no_license
https://github.com/zandaoguang/English
90a1f51d17a1e70dd5394b55f49fc7c04eedcd8d
7aaf40103fe7de126217c0b7f962fd4c9f425c6a
refs/heads/master
2020-04-12T04:55:31.103965
2018-12-18T15:44:51
2018-12-18T15:44:51
162,310,518
2
4
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf-8 import simplify_word as sw import re bw = open('data/basic_words.txt') basicwords = [] for eachLine in bw: basicwords.append(sw.simplify_word(re.split("[^A-Za-z]", eachLine)[0].lower())) #print re.split("[^A-Za-z]", eachLine)[0] print(len(list(set(basicwords)))) basicwords = list(set(basicwords))...
UTF-8
Python
false
false
321
py
11
basicwords.py
10
0.685358
0.676012
0
11
28.181818
83
kotbaton/project_euler
2,894,807,959,329
0812c7a782acfe883cbeb4850f6d9d2f81d58a57
3195de19a4f0ccad78dd08bfafb93423b08b98e2
/p1-50/p15/p15.const.py
949b5eefce50aaf31363b819302407c3dad8a3df
[]
no_license
https://github.com/kotbaton/project_euler
6e0f62033191a866576d831e0f7864a04424d966
9fd06607d7c367eaf900a9eae5fdc1a8ce734ca9
refs/heads/master
2020-06-22T03:03:04.679939
2019-12-30T11:37:05
2019-12-30T11:37:05
197,616,594
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import sys import math as m n = 3 if len(sys.argv): n = int(sys.argv[1]) res = m.factorial(2*n) // (m.factorial(n) * m.factorial(n)) print(res)
UTF-8
Python
false
false
170
py
51
p15.const.py
47
0.623529
0.6
0
11
14.454545
59
57066698/npNet
5,214,090,334,541
cc9923f679bf686d9d3cbf370597ac50d890b94a
b52fc3c5268ce63be3ef880cdfa31a2a2ac875fb
/examples/mnist_autoencoder.py
c13492ec5495901009601113ca943995c7fe8983
[]
no_license
https://github.com/57066698/npNet
53ff6d97315901dd984395c4a67a80e196612e2c
edb087a86f9a559fade550692e4003b25d823294
refs/heads/master
2021-05-29T00:24:44.746318
2021-04-30T09:06:26
2021-04-30T09:06:26
254,293,830
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from simpleNet import layers, Moduel, optims, losses from examples.datasets.mnist_loader import load_train, load_test import matplotlib.pyplot as plt from PIL import Image # net class Encoder(Moduel): def __init__(self): super().__init__() self.conv1 = layers.Conv2D(1, 16, 3, str...
UTF-8
Python
false
false
4,367
py
68
mnist_autoencoder.py
67
0.575521
0.547101
0
152
27.703947
87
p208p2002/torch-swiss
4,922,032,532,490
bbb697968b5109187a19d47dd28b2540cac2bdf3
f3eb1d9312bd4fae752d819b566e4e02de0dc2dd
/torch_swiss/logger.py
5733218511321ed2530b5d5471eb69e17afa2230
[]
no_license
https://github.com/p208p2002/torch-swiss
6bcd84f56e8399640c4308b6aa3feca3cbac45a8
2e222bc6b1d5c70925db19e53f768dc9211fce62
refs/heads/main
2023-02-10T15:48:55.124647
2020-12-31T02:35:11
2020-12-31T02:35:11
307,584,565
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch def running_logger(log_dict,title=None,end='\r'): """ Usage Example: `running_logger({"batch":i+1, "loss":"%3.5f"%test_log_recorder.loss, "acc":"%3.5f"%test_log_recorder.acc},'test')` """ if title is not None: print(title,end=' ') for key in log_dict.keys(): pri...
UTF-8
Python
false
false
1,302
py
15
logger.py
8
0.552227
0.536866
0
45
27.933333
122
zonyzhao/pyvi
10,849,087,420,060
02a5e5abd3db75efbd283fbec14a83568bfafe47
ac1f104737ad278c98089fc69843a5fed14cb48a
/tests/utilities/test_mathbox.py
35d524d6c13bd890917fd377ddde4f943027d038
[ "BSD-3-Clause" ]
permissive
https://github.com/zonyzhao/pyvi
38c327871e085d03ccf51fc2b5b108c451d24a81
6b38bfaed75f84f6bf2ef43b11535510ee1c0490
refs/heads/master
2023-03-19T02:28:22.478749
2018-06-28T13:53:47
2018-06-28T13:53:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Test script for pyvi/utilities/mathbox.py Notes ----- Developed for Python 3.6 @author: Damien Bouvier (Damien.Bouvier@ircam.fr) """ #============================================================================== # Importations #=============================================================...
UTF-8
Python
false
false
5,269
py
27
test_mathbox.py
26
0.457962
0.432909
0
156
32.775641
79
aporlowski/cloudmesh-mpi
18,030,272,720,606
d94e1a1375fdb7e4c5683806c8af5c576e267b98
50f3550a3fefd2d5ba8237bad4e0bc66981ae967
/examples/spawn/manager.py
cfa2fc13b37100d176c4287ceb9023d19025c48a
[ "Apache-2.0", "Python-2.0" ]
permissive
https://github.com/aporlowski/cloudmesh-mpi
d20fcaee78179f1db535c4a76b589c4832441527
afd46b8b04b3744b56d53af6861f0832cd69fd8d
refs/heads/main
2023-07-21T14:05:50.950055
2021-08-29T13:27:35
2021-08-29T13:27:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from mpi4py import MPI import numpy import sys import time print("Hello") comm = MPI.COMM_SELF.Spawn(sys.executable, args=['worker.py'], maxprocs=5) rank = comm.Get_rank() print(f"b and rank: {rank}") N = numpy.array(100, 'i') comm.Bcast([N, M...
UTF-8
Python
false
false
526
py
99
manager.py
29
0.593156
0.579848
0
24
20.916667
46
Asunqingwen/Django_rapid_program
14,061,722,936,697
be43f45a49d6d5a1f6d39d11c58fffec9640cb25
15786724459b2d75e1cf12f68a71f1c532415e9e
/recruitment/settings/local.py
7c0c2039535a838cad8df24234997d945c91c654
[]
no_license
https://github.com/Asunqingwen/Django_rapid_program
b31b3ed6723335c7bee8bc6431aac76734986e1b
6cdfa64a728173d8374f9915fcdc9cb2e9c008f3
refs/heads/master
2023-02-18T02:20:27.916814
2021-01-19T06:50:22
2021-01-19T06:50:22
327,861,395
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .base import * DEBUG = True ALLOWED_HOSTS = [] ## 务必修改以下值,确保运行时系统安全: SECRET_KEY = "w$46bks+b3-7f(13#i%v@jwejrnxc$^^#@#@^t@fofizy1^mo9r8(-939243423300" # # AliCloud access key ID # OSS_ACCESS_KEY_ID = os.environ.get('OSS_ACCESS_KEY_ID','') # # AliCloud access key secret # OSS_ACCESS_KEY_SECRET = os.environ.get(...
UTF-8
Python
false
false
2,535
py
14
local.py
10
0.692607
0.632512
0
72
31.125
136
DaHuO/Supergraph
13,786,845,029,543
af2dc8b2f2f5bff627180ed0cf967b691ae90000
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ_16_2/16_2_1_Suski_phone.py
d778f1a3c19e83c90b6e7c943862bded7f6d1fe0
[]
no_license
https://github.com/DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
false
2021-03-19T21:55:46
2016-01-17T18:23:00
2019-02-21T15:42:08
2021-03-19T21:55:45
38,414
0
0
2
Python
false
false
import sys def remove0(numbers): numbers.remove('Z'); numbers.remove('E'); numbers.remove('R'); numbers.remove('O'); def remove1(numbers): numbers.remove('O'); numbers.remove('N'); numbers.remove('E'); def remove2(numbers): numbers.remove('T'); numbers.remove('W'); numbers.remove('O'); d...
UTF-8
Python
false
false
2,195
py
30,073
16_2_1_Suski_phone.py
16,513
0.594989
0.58041
0
111
17.792793
70
Kelv1nYu/UMich_Py4E
1,176,821,070,695
c36ea26783211fe2553d32c1d8f71d25b5b69fb8
11f8e96912a5e04731163c373a207e299b26b5e0
/Using Python to Access Web Data/ex11/ex_11_01_using_sum_function.py
2a44f5c0127f9f7e3477771c580be551cc081c0c
[]
no_license
https://github.com/Kelv1nYu/UMich_Py4E
a7a32a42ceecf1b98e0d35a16313768654089bad
5430002c21c5780bbe68287e33bb566cd1f49c2f
refs/heads/master
2021-10-19T13:13:44.143335
2019-02-21T08:32:52
2019-02-21T08:32:52
113,317,802
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# using the fucntion sum() to get the sum of the list import re filename = input("File name:") if len(filename) < 1: filename = "regex_sum_55433.txt" nums = list() counts = dict() with open(filename) as f: for line in f: line = line.rstrip() tmpnums = re.findall('[0-9]+', line) for tmpnum in tmpnums: nums...
UTF-8
Python
false
false
520
py
17
ex_11_01_using_sum_function.py
16
0.678846
0.663462
0
25
19.8
101
FluteXu/ms-project
4,724,464,045,436
f09603d0e9e8c73f4055a98f2a071f3bab910bee
bf7756f40cd5487bdaf9fde3baacaedb12d17972
/npz_to_nrrd.py
41cdb2a2912a3d0dc7cc73679ae45c850a01622e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/FluteXu/ms-project
976e525ee47069fa3f74b7d4ebf82baf032036eb
108b1346a32dd5aea2078fc20852029342e2365f
refs/heads/main
2023-02-22T18:10:02.940998
2021-01-21T01:26:01
2021-01-21T01:26:01
331,479,592
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import os.path as osp import numpy as np import nrrd import glob """ organ mask is flipped, npz image is zyx, mask is yxz image npz zyx -> xyz organ mask 1. flip 2. yxz -> xyz (trans102) """ if __name__ == '__main__': pid = '0818353' root_dir = '/data/ms_data/npz/test' pid_dir = osp.join(ro...
UTF-8
Python
false
false
840
py
25
npz_to_nrrd.py
25
0.589286
0.567857
0
36
22.333333
52
ehabarman/Hackerrank-Solution-python_proficiency
5,643,587,033,527
df465d540b58b04ed66ff31ce0485a4166832f04
09fbbb55683838b962b9403f71075fa6665caa00
/Solutions/Math/Mod Divmod.py
a999318970eeb9de5f58ebf43d985e6f1fe03cd0
[]
no_license
https://github.com/ehabarman/Hackerrank-Solution-python_proficiency
8362fad8c943beb084cc99a12e3c68dd78121f2b
2d2816b597cffdc02033baefda80c0761314569d
refs/heads/master
2020-04-21T23:56:43.563145
2019-02-10T09:39:16
2019-02-10T09:39:16
169,962,294
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Date 29-8-2018 ''' if __name__ == '__main__': a,b= int(raw_input()),int(raw_input()) result = divmod(a,b) print '{0}\n{1}\n{2}'.format(result[0],result[1],result)
UTF-8
Python
false
false
179
py
82
Mod Divmod.py
82
0.530726
0.463687
0
6
29
60
assissh/Landing-Page
120,259,113,917
cb053b32687d3badc023bfc52d5e7e1658612a25
387721add1f00b836f8b62b348ebcd02e4cb40c0
/help_Qna/migrations/0001_initial.py
78faf91b45a72609cb4b0dc658f266ec2bf31b74
[]
no_license
https://github.com/assissh/Landing-Page
9d3f35b141ab4980782d90288c16cca9ca50569a
a96119324b2fcf9d5e4eda5dd9b2681368b9c113
refs/heads/master
2020-03-08T10:16:15.518352
2018-04-04T13:51:36
2018-04-04T13:51:36
128,068,636
0
0
null
true
2018-04-04T13:48:11
2018-04-04T13:48:10
2018-04-04T13:43:30
2018-04-04T13:43:28
2,466
0
0
0
null
false
null
# Generated by Django 2.0.3 on 2018-04-04 07:28 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(...
UTF-8
Python
false
false
1,090
py
51
0001_initial.py
47
0.557798
0.53578
0
32
33.0625
114
sehooh5/TIL
16,303,695,862,662
8015ecc49bf0a69197af62c89b5f643d357e4f7c
9f298cc352ed60341ccf9f43b38e59a97b934635
/Project/PythonProject/ihub/statuses/admin.py
fd32c7955ba476808a611c27d5d7a4a4e865dd6d
[]
no_license
https://github.com/sehooh5/TIL
90d4ed5f6f6ac962f266425a5f30dd1d2e4234d3
b102ef61faeba5cfef4ffb26756e7f241dbe28f5
refs/heads/master
2021-09-16T01:56:47.832448
2021-08-17T03:34:52
2021-08-17T03:34:52
226,476,859
0
1
null
false
2021-08-17T03:49:53
2019-12-07T08:03:38
2021-08-17T03:34:58
2021-08-17T03:49:53
30,330
0
0
4
CSS
false
false
from django.contrib import admin from .models import Status class StatusAdmin(admin.ModelAdmin): list_display = ['api', 'updated_time', 'status'] list_editable = ['status'] # Register your models here. admin.site.register(Status, StatusAdmin)
UTF-8
Python
false
false
270
py
603
admin.py
256
0.688889
0.688889
0
13
18.769231
52
ahmermalik/classWork
9,483,287,794,355
f22586909a814a60fc0e72a9993606fe1ea172e4
0f27b8257e81f7cfb3a9a91bfe2e292f1f7e9459
/Week1/exercises.py
0e6e30a9d7f9cdf25e4400a931da0be349611de9
[]
no_license
https://github.com/ahmermalik/classWork
56fa3edf45ba9341876a859e33887ca799837278
febd6790ca98f08c15ab90e970a67bf2ffc51e6e
refs/heads/master
2021-09-10T05:26:12.367053
2018-03-21T04:33:09
2018-03-21T04:33:09
103,564,622
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# def exercise2(): # name = input(('What is your name?').upper()) # print(("Hello, " + name + "!").upper()) # print(("Your name has ").upper(), len(name), (" letters in it! awesome!").upper() ) # exercise2() # def exercise3(): # print('Please fill in the blanks below:') # # print("____(name)____'...
UTF-8
Python
false
false
4,246
py
83
exercises.py
60
0.489166
0.473151
0
188
21.579787
200
fbaroni/algorithmic-toolbox
11,544,872,125,739
17f3cf3665960c021d2f9536836527157de86c60
0d1d78a1c268dba99ea5a7ff1b06825b9b16d93b
/week2_algorithmic_warmup/1_fibonacci_number/fibonacci.py
0efdaae28ff62c2d599ce72b606663ba8249ca6c
[ "Apache-2.0" ]
permissive
https://github.com/fbaroni/algorithmic-toolbox
c6ecd54747c10307fd3c3fb7da266c9b5cc7973c
1f433ed0d16c702105352ee3ffb4645e0bdc6d3f
refs/heads/main
2023-07-19T07:31:09.924735
2021-09-01T19:10:48
2021-09-01T19:10:48
394,714,443
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Uses python3 from random import randint def naive_fib(n): if (n <= 1): return n return naive_fib(n - 1) + naive_fib(n - 2) def efficient_fib(n): if 0 == n: return 0 if 1 == n: return 1 fibonacci_numbers = [None] * n fibonacci_numbers[0] = 0 fibonacci_numbers[1]...
UTF-8
Python
false
false
530
py
6
fibonacci.py
5
0.590566
0.558491
0
23
22.086957
78
hekpomaht92/dark_scnn
13,125,420,065,408
a807c374139d562481ebbce942c0251199b3f4cf
becfbd6b5b629b0a17ee421a2807ccea0fb29754
/model.py
3d781c816e94e139bb60fe746981e3ccca4336d8
[]
no_license
https://github.com/hekpomaht92/dark_scnn
72d8ace614bddea96efc6ce31c9879d6ecf6bf3e
5cdb0f04080a53a90fa00ae942c6ceffbf2978fb
refs/heads/master
2022-03-23T19:09:04.773115
2019-12-21T13:47:05
2019-12-21T13:47:05
110,541,833
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.nn as nn from parts import conv, deconv, slicing from config import Config import multiprocessing from collections import OrderedDict multiprocessing.set_start_method('spawn', True) cfg = Config() def generate_model(pretrained_weights=None): model = DarkSCNN(pretrained_weights) if p...
UTF-8
Python
false
false
5,386
py
2
model.py
2
0.488489
0.420349
0
102
51.813725
155
sabbirahm3d/misc
13,469,017,453,264
a65fb95c8cdd505dd7228bb93356e8e15b0a4262
5c2c14fdcaa86211611e341ac33230d8242d3ea1
/kattis/yoda/run.py
069a15ea9cf520e0f9f8c413affd406b0b7ee289
[]
no_license
https://github.com/sabbirahm3d/misc
9f5e59945cae53e7e17a2bc565a5fb36280b93a1
0df3e8499c825431d609ba072b0b2180f8860fcb
refs/heads/master
2018-02-08T03:32:54.173692
2017-09-11T15:33:20
2017-09-11T15:33:20
96,362,102
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys first = list(next(sys.stdin)[:-1]) second = list(next(sys.stdin)[:-1]) dif = abs(len(first) - len(second)) smaller = min((first, second), key=len) while dif: smaller.insert(0, '0') dif -= 1 for i in range(len(first)): if int(first[i]) > int(second[i]): second[i] = '' elif int(firs...
UTF-8
Python
false
false
493
py
66
run.py
53
0.598377
0.588235
0
22
21.409091
40
boulware/heat-conduction
18,502,719,134,993
a39f7ef634e2dd2e10525f7610c7938c3696f225
03f37253626967c2bd441f68eb4de30ae2c6f72b
/main.py
2236337d17d0dff2a9383e0ffe9c69bb3729a955
[]
no_license
https://github.com/boulware/heat-conduction
48f380ec4795127c8a0bd5eb3d96416a72234a36
9197a5c0cebe70102c0e30d0d50302c41b0593f8
refs/heads/master
2020-03-19T08:34:07.971974
2018-06-05T18:33:27
2018-06-05T18:33:27
136,215,495
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pyglet import random import colorsys from color import * random.seed() red = Color(rgb=(1,0,0)) green = Color(rgb=(0,1,0)) #def TemperatureToColor(temperature): # return InterpolateColors([green, red], temperature) def UpdateTemperatures(dt, cells, grid_width, grid_height): k = 0.1 if l...
UTF-8
Python
false
false
2,349
py
2
main.py
2
0.681141
0.66539
0
86
26.325581
220
Marvingms7/IFPI-POO
12,352,325,984,753
5eccf8ec5228a2c7681b61e2ecc9e675c5a584be
68c74c87c51d5abdf5f6061b6df2b09a84b11c41
/POOSem05Atividade02/Sem05Atv02.py
85d68e85f271913cc95cfa93e6d1b04e4e2419c3
[ "MIT" ]
permissive
https://github.com/Marvingms7/IFPI-POO
2d6f6e2c29d37ee1d47fe267148fa1217c52455c
b00d3a381812df9a1c3f3a8121f07a1c1a0cda80
refs/heads/main
2023-03-15T10:23:37.430380
2021-03-13T20:04:38
2021-03-13T20:04:38
337,423,110
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Fatura = [] class bomba_de_combustivel: def __init__(self, Numero, ValorLitro, CapacidadeDaBomba, QuantidadeDeCombustivel, ValorFaturado = 0, QuantidadeVendida = 0, TipoDeCombustivel = 'Gasolina Comum'): self.__Numero = Numero self.__ValorLitro = ValorLitro self.__CapacidadeDaBomba = Capacid...
UTF-8
Python
false
false
3,508
py
30
Sem05Atv02.py
29
0.718928
0.68301
0
75
45.773333
276
yusheng615/zcpz
28,545
d30077e114a57dabe2db705b996dad74353273e8
95738ce8239ef6f407ac9d94b6d03a6d1faa3d95
/test.py
18e4ebacf3f043706ac1217a205c988d8d73f59f
[]
no_license
https://github.com/yusheng615/zcpz
67ca568b851ffdc66b5f21fcfeb6286c6b8eb4b7
af5cfef2a75f923c21bad0cf00c867b38ecd652d
refs/heads/master
2020-03-22T23:44:11.303262
2018-07-14T01:06:07
2018-07-14T01:11:16
140,825,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import xmlrunner from code import * from _math import * from random_mpt import resampleportfolio import numpy as np class OperationFuncsTest(unittest.TestCase): def setUp(self): n_assets = 5 n_obs = 252 np.random.seed(1) self.returns = np.random.randn(n_obs, n_asse...
UTF-8
Python
false
false
1,124
py
5
test.py
5
0.626799
0.596223
0
46
23.152174
72
fox998/Telegram-Bot
3,865,470,608,798
360be97498b99f69a7fb5971b336720b553ed520
c7ae051c56602c96832487e776e75dccae6616d0
/timetable.py
59033e7177764ed6d54c0810be2f98db39445e4e
[]
no_license
https://github.com/fox998/Telegram-Bot
dc2685605bb57080a2f58587947102b462582b1c
2bb3c484a60a43022a4885a2f884980a431fdbec
refs/heads/master
2022-12-10T15:49:10.743034
2019-05-30T08:32:20
2019-05-30T08:32:20
186,974,803
0
0
null
false
2022-12-08T05:11:21
2019-05-16T07:26:17
2019-09-24T16:52:12
2022-12-08T05:11:20
25
0
0
3
Python
false
false
import requests from urllib import parse from bs4 import BeautifulSoup from markdownify import markdownify as md identifier_of_time_section = {'style': 'font-size: 12px; text-align: center'} identifier_of_current_day_section = {'class': 'yellow'} def formating_lesson_data(lesson_data): md_data = md(lesson_data...
UTF-8
Python
false
false
1,158
py
3
timetable.py
2
0.67301
0.663495
0
39
28.615385
112
ArielJingZhou/MultiAgentGroup
1,108,101,569,792
68390116ffb32ea9dc67d8a275ec8fd2cffcb486
58b56fe3cfdfe5638c8e6b850b715ed7bcc7d9cb
/python_code/Problem4_lgbm.py
82c136ce37bfc3fbca9f7ca7f10590da2f92f11a
[]
no_license
https://github.com/ArielJingZhou/MultiAgentGroup
b373c0d307f85213b7a5039ef594117a9f9d174f
e7230dde3643171cf91ec693ea773c231b93ff20
refs/heads/master
2020-04-21T04:56:38.409167
2019-03-11T23:51:01
2019-03-11T23:51:01
169,326,957
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import lightgbm as lgb import numpy as np import pandas as pd import pickle from math import sqrt from sklearn.metrics import mean_squared_error print('Loading data...') # load or create your dataset train_set = pd.read_csv("train.csv") valid_set = pd.read_csv("validation.csv") test_set = pd.read_csv("t...
UTF-8
Python
false
false
5,775
py
18
Problem4_lgbm.py
8
0.569177
0.549437
0
184
29.38587
169
zhuyanlong/LeetCode
1,443,109,019,791
0166d3347a843e7d1ff1dd87f77545645374cc1c
fa7c249733b9edaa45f7115ddcc1e40ca2ee0c3e
/Integer_to_Roman.py
7dc184d6c4781cc7f00405f97e5887c4a7bd0908
[]
no_license
https://github.com/zhuyanlong/LeetCode
30585e4285442314e6e58f8d80aaea15b82607f4
dc34b2d2d786a2cb6e441220b724aac460c9bb2a
refs/heads/master
2021-07-04T09:46:25.754619
2020-10-05T04:25:08
2020-10-05T04:25:08
173,396,980
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#这种方法很蠢,但是时间复杂度极低 dic={1:'I',5:'V',10:'X',50:'L',100:'C',500:'D',1000:'M',4:'IV',9:'IX',40:'XL',90:'XC',400:'CD',900:'CM'} class Solution: def intToRoman(self, num: int) -> str: re='' while num!=0: if num>=1000: num-=1000 re+=dic[1000] elif num>=9...
UTF-8
Python
false
false
1,260
py
106
Integer_to_Roman.py
104
0.354235
0.261401
0
53
21.09434
104
zzhanghub/HW_CN
6,631,429,506,820
9a3326e4655b0ccb5ca6c6697aeb53757b7ee29f
23e962f10450a7bffe170873721f2acc33c47500
/LINE/save_ebd.py
b628a562ffa57b836b8c1313ee4fcfe67000260c
[]
no_license
https://github.com/zzhanghub/HW_CN
a714a3500dbcfc7d684a306beea10374a09a88a7
8106b15ab1567f4a53e4abb563def8a923778857
refs/heads/master
2020-12-01T20:23:57.957760
2020-01-04T03:43:38
2020-01-04T03:43:38
230,758,682
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import numpy as np embed = torch.load('bit_model.pth').contextnodes_embeddings feat = embed.weight.data.numpy() print(feat.shape) np.save('embedings', feat) # for idx in range(embeddings.num_embeddings): # vector = embeddings.weight[idx].data
UTF-8
Python
false
false
262
py
18
save_ebd.py
9
0.744275
0.744275
0
10
25.2
59
zhambylSamat/django.altyn-bilim.kz
14,654,428,437,299
c291481cf08a4f141d211807bae74a4df41982a1
cfe4493a1812d6030a10b75e7454a0e3ea3d178d
/src/lessonProgress/migrations/0019_auto_20200225_1257.py
5d52c4422d72e640327612427da2072d251df0f2
[]
no_license
https://github.com/zhambylSamat/django.altyn-bilim.kz
93ba4ce285c40d092bb28c171b248e1bebc4787f
2981d47596674a4813b06168253b1a73278c9315
refs/heads/master
2023-02-01T12:09:00.245209
2020-12-18T12:03:18
2020-12-18T12:03:18
322,582,680
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1 on 2020-02-25 06:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lessonProgress', '0018_auto_20200224_1954'), ] operations = [ migrations.RenameField( model_name='lessonvideoactionhistory', o...
UTF-8
Python
false
false
417
py
195
0019_auto_20200225_1257.py
184
0.613909
0.541966
0
18
22.166667
54
meReCurse/Food-Price-Aggregator-Web-App
18,631,568,152,322
9afa6ad0d7d5982a50ab41df1935b2fbee490f84
09f4ae9cfda728c29e70dc6e9ee7dd917d3e00e3
/backend/price_aggregator/apps/rest_api/utils/selenium_session/__init__.py
c453cf8b02f006a9cc65cf4d3c38e65ad89f4461
[]
no_license
https://github.com/meReCurse/Food-Price-Aggregator-Web-App
0d1d9d9caa39ce5ae92e51297facf2997436c8de
2e72943565b2c5bc8b93abc25caccf5128da33eb
refs/heads/master
2022-02-12T01:18:05.225286
2020-02-21T11:32:50
2020-02-21T11:32:50
236,166,083
0
0
null
false
2022-03-08T21:15:20
2020-01-25T12:16:59
2020-02-21T11:35:13
2022-03-08T21:15:19
2,401
0
0
2
Python
false
false
from .manager import SessionManager from .session import Session __all__ = ('SessionManager', 'Session')
UTF-8
Python
false
false
107
py
28
__init__.py
25
0.738318
0.738318
0
5
20.4
39
KhaledTaymour/University-Registration-System
9,526,237,466,378
4c04dde47aa883febcd2ca206b8ca7c258e6d1e0
03ebe948a369349fb488eaa1620453de9d9caa45
/helper.py
89726a9c9a7ae80a18fb69a7b52344be014d02ba
[]
no_license
https://github.com/KhaledTaymour/University-Registration-System
d25cc653bbdd4188f18cf005b87ddf5e62ebb633
5ca5638dfe55863d32662141f28eb9fe66ce566f
refs/heads/main
2023-06-02T13:28:47.834310
2021-06-19T11:16:34
2021-06-19T11:16:34
327,269,361
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#importing the linkedlist from registrationLL import RegistrationLinkedList class Helper: #constructor having inputs: list of colleges, departments, students, courses def __init__(self, colleges, departments, students, courses): #colleges, departments, students, courses saved as self variables ...
UTF-8
Python
false
false
4,371
py
5
helper.py
3
0.61725
0.614505
0
102
41.784314
118
nimenki/Json-mysql-tesk_task
12,326,556,164,312
b491937f09b0d8c3d9a2ee2b831193e3b0447f56
5558e3557bff165d0a7d9c6529dbd3920ef07512
/task1_2/task2.py
0ecc12283aed526569aa217c4e2db74083a1db8e
[]
no_license
https://github.com/nimenki/Json-mysql-tesk_task
031c860d3d8b978a93b982aca9e80261b7450ee3
fbf4c5d52791f824b4f4aa373649cadf5bcb48d8
refs/heads/master
2023-08-14T00:25:43.427354
2021-09-20T11:14:28
2021-09-20T11:14:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from flask import jsonify, make_response from app import app, db from task1_2.models import User from task1_2.schemas import UserSchema VOWELS = ("a", "e", "i", "o", "u") def accummulateHoursMinutesSecondsAndMilliseconds(date) -> int: return date.hour * 24 * 60 * 10 **...
UTF-8
Python
false
false
1,060
py
10
task2.py
8
0.623585
0.579245
0
33
30.121212
115
myhelloos/concurrency-python
14,345,190,817,856
16e4ae12f590c225b85a660c61faa04205e33134
61a263e985f73b23f20d99f2a0ac123838e3677a
/app/intro/helloPythonWithThreads.py
c3b3279f4942bc22094174f553af58b799399210
[]
no_license
https://github.com/myhelloos/concurrency-python
ee451f01bc48319641d11059f9cd63ad5413c7f8
30d983e77663d0b74271f1490087ee0d1e262b47
refs/heads/master
2020-04-19T09:40:52.817337
2019-02-04T02:34:11
2019-02-04T02:34:11
168,117,546
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: alfred_yuan # Created on 2019-01-28 from threading import Thread from time import sleep class CookBook(Thread): def __init__(self): Thread.__init__(self) self.message = "Hello Parallel Python Cookbook!!\n" def print_message(self): pr...
UTF-8
Python
false
false
770
py
23
helloPythonWithThreads.py
21
0.614286
0.596104
0
36
20.388889
59
tbiles01/InternshipExperience
7,000,796,719,274
b7d593e084cc99fb0614ead7f4fd6c9f05cb6115
b851eb7b2ff68c97e0b65aa937884db99875e43e
/__init__.py
0fa19ce8e1d99d8be202e30f185b8d35261c3d40
[]
no_license
https://github.com/tbiles01/InternshipExperience
1432e1d6b9f75a3b42b96cef91f2f78c560aad74
51f4162abbe255eca480603546dfd9615e6e7768
refs/heads/main
2023-07-04T04:19:38.261700
2021-08-07T16:44:37
2021-08-07T16:44:37
393,738,405
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 6 14:51:56 2021 @author: tiffanybiles """
UTF-8
Python
false
false
115
py
3
__init__.py
3
0.608696
0.495652
0
7
15.285714
35
zhouf00/test_obj
8,976,481,666,672
d47cd7a5c79dced5a0c485c37a160bb254486ec4
4e771190fd33c6c4badfde097bfeecefea2f7682
/APPS/crm/urls.py
7db15b12814881e2a7fb907f3c51b1821b8cd5a3
[]
no_license
https://github.com/zhouf00/test_obj
ac158e396a395f95a5b6a3c886ba2de58fce6e47
cb9c5eb9190fb1c59c2e017e7540d4151408b65b
refs/heads/master
2023-08-30T06:37:00.728159
2021-10-12T06:00:59
2021-10-12T06:00:59
283,736,762
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url, include from . import views urlpatterns = [ url(r'^market/$', views.MarketViewSet.as_view({'get': 'list', 'post': 'create'})), url(r'^market/update/(?P<pk>.*)/$', views.MarketViewSet.as_view({'get': 'retrieve', 'post': 'update'})), url(r'^market/delete/(?P<pk>.*)/$', views...
UTF-8
Python
false
false
1,097
py
72
urls.py
70
0.622607
0.622607
0
20
53.9
108
YusrilHasanuddin/bangkit-capstone-CAP0166
18,416,819,782,037
ccec5231dfcb293a1be0e07b1ebb4ce7fee98a7c
0d7a7dab4402276063c43775d8734aa2e4f9fb9d
/BIG-GIANT/extract.py
ea4eafe6807495c2b152237d8992e85ecfbd4927
[ "MIT" ]
permissive
https://github.com/YusrilHasanuddin/bangkit-capstone-CAP0166
45f65589ccbd1127c5b0f565bdeb928433d660d1
51742f7af47fa285154793a6ea74de1d78d945b3
refs/heads/main
2023-05-30T03:08:24.927485
2021-06-09T09:21:52
2021-06-09T09:21:52
375,324,722
4
0
MIT
true
2021-06-09T11:04:29
2021-06-09T11:04:28
2021-06-09T09:22:36
2021-06-09T09:22:31
411,484
0
0
0
null
false
false
from skimage import io import numpy as np from facenet_pytorch import MTCNN import validators import matplotlib.image as mpimg from cv2 import cv2 import urllib.request def is_image_from_url(url: str): valid = validators.url(url) if valid == True: return True else: return False class Ext...
UTF-8
Python
false
false
2,304
py
73
extract.py
20
0.619792
0.611111
0
78
28.538462
95
ericduval93/prepa
541,165,910,042
3cd54d1458a19440000dab12971b964a37d6d5d0
93a63cf3e805737ef70650693f6567e856deb7d0
/day1/method-list.py
1b4134f9e4bc38c34caf9a716710844b0cb84cb4
[]
no_license
https://github.com/ericduval93/prepa
61bcfa6dc868f5a826f5562203ddb168a1002cc3
f461159353decffb2da467edda8eaf11801bd0a0
refs/heads/master
2023-02-02T01:27:59.981387
2020-12-15T10:38:16
2020-12-15T10:38:16
320,523,601
0
0
null
false
2020-12-15T10:38:28
2020-12-11T09:15:04
2020-12-11T16:40:45
2020-12-15T10:38:26
8
0
0
0
Python
false
false
#!/usr/bin/python3 # -*- coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 foo = ['foo1', 'foo2', 'foo3', 'foo4', 'foo5', 'foo6'] bar = ['bar1', 'bar2', 'bar3', 'bar4', 'bar5', 'bar6'] print( "foo = {}".format(foo) ) print( "bar = {}".format(bar) ) print( "Index method = {}".format(bar.index(...
UTF-8
Python
false
false
936
py
19
method-list.py
18
0.604701
0.556624
0
40
22.4
55
nikhil-vytla/GeospatialStore
1,855,425,914,705
d7e3d556ff4b9385e994c9c595dc97f723a2648c
71fb51235bea4438a9fb7dc4653dccabcc054fba
/flask/src/models/iris_model.py
779d0f2a02e1d0e132ac784450fbd7db70d47499
[ "MIT" ]
permissive
https://github.com/nikhil-vytla/GeospatialStore
8a78aecba2a9c97176b2eaf980e2c8e9cb255fea
369f272585afc20f7e7bac4826717240a84cb4ff
refs/heads/master
2022-05-24T21:15:42.169813
2020-04-30T16:16:32
2020-04-30T16:16:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.linear_model import LinearRegression import seaborn as sns import pandas as pd import pickle def train_iris_model(): """ Trains our Iris Model. Initial un-tuned function to train and serialize a Linear Regression model to predict petal_length given petal_width for the `Iris` dataset. Se...
UTF-8
Python
false
false
1,233
py
25
iris_model.py
10
0.688564
0.686131
0
40
29.85
78
codamin/Data-Structures-Algorithms
9,620,726,780,392
a5744e106ae9f984c8334e84b6d695e9cc8d7324
30134d697e196f58ffedbf95f40026c4265d1c88
/CA4/q1.py
6fa6f6b9f763d438cf5b0ce0ae18dbd75720609c
[]
no_license
https://github.com/codamin/Data-Structures-Algorithms
c919535c734f98f5a7484871a805bd4ad47c00d4
94ce3f18dd50fdf9871d23baf1fbd230ce0d30e8
refs/heads/master
2021-12-02T05:51:01.721875
2021-11-26T09:06:24
2021-11-26T09:06:24
196,724,634
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def dfs(graph, v, visits, maxLen): visits[v] = 1 for i in range(len(graph[v])): if visits[graph[v][i]] == 0: dfs(graph, graph[v][i], visits, maxLen) maxLen[0] = max(maxLen[0], visits.count(1)) visits[v] = 0 def hasPath(graph): v = len(graph) maxLen = [0] for i in range(...
UTF-8
Python
false
false
1,347
py
13
q1.py
12
0.443207
0.426875
0
53
24.377358
51
NateHan/PythonForProgrammers
14,697,378,116,128
5efa0663234b0fae30fbdb7a3f31fe2cfab8777c
bbe309a0294bc2a0e784471f691b74062f9edbc0
/hangman.py
aaab3e484ded0f93e222eb8d4d186066fc183df9
[]
no_license
https://github.com/NateHan/PythonForProgrammers
22fb904ecc8299980b0adf05ea08b4b27bda94ba
45236eb5576dd8dd9ec427cbb2b5514f8f046ac0
refs/heads/master
2020-07-10T07:34:23.086329
2019-10-05T22:51:14
2019-10-05T22:51:14
204,206,172
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lives = 5 word = "Apple" blank = " _ " def runGame(): blanks = [] guessedLetters = [] global lives for idx in range(len(word)): blanks.append(blank) while lives > 0 and blank in list(blanks): inputLetter = input("Word: {} - Lives = {} , Guessed letters: {} \n Guess a letter: ".format(blanks, lives, guessed...
UTF-8
Python
false
false
912
py
13
hangman.py
12
0.669956
0.66557
0
39
22.384615
126
saibye/project
2,216,203,125,479
12c9ccda6925ef3e87c11059d51d33b307f4e49b
e476b2272b7f2995d995a83db902e26accb68d17
/src/old/decision/name.py
cfff0101257131a82ab89c831b8d771a7e2b81e9
[]
no_license
https://github.com/saibye/project
722df485eeec2c467ad24fbe080f156cf6da3b94
ec9cdc35c1f5371faf0774699cba9e6a2c5febfc
refs/heads/master
2021-08-07T00:46:16.401667
2020-06-06T11:54:56
2020-06-06T11:54:56
62,984,883
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- encoding: utf8 -*- import tushare as ts import pandas as pd import numpy as np from saiutil import * from saidb import * from saisql import * from saicalc import * from sailog import * from saimail import * from sairef import * ########################################################...
UTF-8
Python
false
false
3,981
py
175
name.py
168
0.491538
0.481687
0
170
22.288235
90
wuqiangroy/something
16,243,566,326,712
cd4caf3b7e9bfa6cd03e202987fff16ff5a7ef78
97fcdce230884a132f001381708e550c5215f7ad
/cookbook/multi_threading/12.4.py
0837cae9cc884a2b5ede8c2ae52efb3523908cce
[]
no_license
https://github.com/wuqiangroy/something
98138f6ab76a28eaf59f024f0ecedcb9bf049c06
5573f9833e33e5cc1261854307c81e5224d64219
refs/heads/master
2021-09-11T20:54:32.389061
2018-04-12T08:10:26
2018-04-12T08:10:26
71,707,794
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # _*_ coding:utf-8 _*_ """對臨界區加鎖""" import threading class SharedCounter(object): def __init__(self, initial_value=0): self._value = initial_value self._value_lock = threading.Lock() def incr(self, delta=1): self._value_lock.acquire() self._value += d...
UTF-8
Python
false
false
639
py
93
12.4.py
90
0.550239
0.54386
0
30
19.9
43