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
pravin-asp/Python-Learnings
8,057,358,679,883
924639713c95c9aa31fe1bf4bc066bb760943d28
d583d57ebb0bfcd22e3660ca7265076d8eaa587c
/Arguments.py
203d268751492feb3879be0d950f5d0867c498d6
[]
no_license
https://github.com/pravin-asp/Python-Learnings
59bc2ad021d170eac03187023aed3899f0b51525
e26c67b8c5396e88df801f7c826a7830e39f5cd2
refs/heads/master
2023-04-09T23:20:04.922036
2021-04-13T10:08:16
2021-04-13T10:08:16
347,560,715
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Types of Arguments # 1. Positional Arguments # 2. Keyword Arguments # 3. Default Arguments # 4. Variable length Arguments # Positional Arguments def add(n1, n2): print(n1 + n2) add(10, 20) # Keyword Arguments def wish(name, msg): print('Hi', name, msg) wish(msg = 'Welcom', name = 'Python') wish(name = 'Welc...
UTF-8
Python
false
false
1,149
py
100
Arguments.py
100
0.677981
0.636205
0
59
18.474576
56
menshikoff/PY111-april
7,567,732,418,310
3eda8b2647ce240a10a6f167f9d7abc116dafcc6
ce0c55fe1c66fb88871026720fdd61fce49ac850
/Tests/b0_test_linear_search.py
6474ae82ece0339f1656f1c145addd8e634380f3
[]
no_license
https://github.com/menshikoff/PY111-april
6ebb30503ee6dfa265e3f1d25ad8af3fc57b9b0d
069254cd083cbab6a7732c0e42e4686b60c18e3f
refs/heads/master
2020-05-16T14:17:52.018093
2019-04-30T09:04:01
2019-04-30T09:04:01
182,120,177
2
0
null
true
2019-04-18T16:17:00
2019-04-18T16:17:00
2019-04-18T15:35:19
2019-04-18T16:11:41
22
0
0
0
null
false
false
import unittest import random from Tasks.b0_linear_search import min_search class MyTestCase(unittest.TestCase): def test_min(self): arr = [i for i in range(1, 10)] self.assertEqual(min_search(arr), 0, "Minimal element is wrong, right answer: " + str(min(arr))) def test_min_again(self): arr = [i for i in ra...
UTF-8
Python
false
false
687
py
11
b0_test_linear_search.py
10
0.6754
0.646288
0
22
30.227273
116
MyRobotLab/InMoov2
4,226,247,863,374
78cd232b80b3327ac290226a007805e0946748a1
399ec2999d570873246ba14b2850d2e4a9c3cc76
/system/startScripts/InMoovCustom_start.py
360ff6511eda93a8cd9261c5df4d013cc8c18fd7
[ "Apache-2.0" ]
permissive
https://github.com/MyRobotLab/InMoov2
c0b24ce2d6543285487dac7236265a066e4b818f
e45749b5a03d012382d59fca2bb1b3cc9a82f4d1
refs/heads/master
2023-08-31T15:52:46.823844
2023-08-30T19:32:03
2023-08-30T19:32:03
230,450,014
7
5
Apache-2.0
false
2023-09-05T22:15:20
2019-12-27T13:36:27
2023-08-20T16:26:35
2023-09-05T22:15:19
59,612
8
5
5
Python
false
false
######################################### # i01_InMoovCustom_start.py # categories: inmoov2 # more info @: http://myrobotlab.org/service/InMoov ######################################### import os ThisFilePart = 'data/InMoov2/InMoovCustom.py' customFilename="InMoovCustom.py" def saveCustom(customFilename): ...
UTF-8
Python
false
false
2,508
py
677
InMoovCustom_start.py
266
0.559809
0.543461
0
70
33.814286
88
Caoang327/EECS545Project-Efficient-Online-Bandit-Multiclass-learning
14,224,931,697,763
cf9d7eab92a64f7584aa864b965417b8648b58bd
2862f9aa32fb45867d0f8c1ce81583e2958691af
/PNewtron_algorithm/PWNetron_cov_v3.py
d57a4ff538588257c113eaca3c4e2b8d99d89f70
[]
no_license
https://github.com/Caoang327/EECS545Project-Efficient-Online-Bandit-Multiclass-learning
3e1738db078740639c3238c47867d947bd6cef87
13721b686bb19ae7ea6c7bc18a98bf15b6ce246b
refs/heads/master
2020-04-10T11:28:11.437694
2018-12-14T03:52:48
2018-12-14T03:52:48
160,994,524
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import scipy.io as sio X = np.loadtxt('CovtypedataX.dat') Y = np.loadtxt('CovtypedataY.dat') def predict_label(W,x): out = np.dot(W,x) return np.argmax(out)+1 def compute_P(W,x,alpha=10): p = alpha*np.dot(W,x) e_p = np.exp(p - np.max(p)) soft_max = e_p / e_p.sum() return soft_...
UTF-8
Python
false
false
2,107
py
15
PWNetron_cov_v3.py
13
0.50878
0.472235
0
77
26.376623
85
emna7/holbertonschool-web_back_end
16,234,976,402,694
822e235ec393f5580eaeb380d0315e399d974ac1
9404a8593ff2d82133897c9e187523d301df7888
/0x09-Unittests_and_integration_tests/test_utils.py
392c7ef62fb9c858277dc360bb7c4c0be4a44612
[]
no_license
https://github.com/emna7/holbertonschool-web_back_end
ac2bc16e47f464530c4dee23497488c77377977e
744e6cb3bb67b2caa30f967708243b5474046961
refs/heads/main
2023-03-06T17:56:10.699982
2021-02-12T21:24:04
2021-02-12T21:24:04
305,394,170
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 """ Test SUITE Unittest module Task """ import requests from unittest import mock from unittest.mock import patch, PropertyMock import unittest from parameterized import parameterized from utils import access_nested_map, get_json, memoize class TestAccessNestedMap(unittest.TestCase): """ C...
UTF-8
Python
false
false
2,348
py
61
test_utils.py
54
0.555792
0.54983
0
78
29.102564
72
keiichi-ando/py-trakaddress
6,236,292,513,858
09c03a8cb449abd95ffd0d2c4bbc2b867f8ff329
68fd9acf6dcb916a6ddfdfddef14da4719296c34
/main.py
da42916c57c5d867c8d6c7128dfffd7ee65f674f
[]
no_license
https://github.com/keiichi-ando/py-trakaddress
f842214747f98c5e7cae2aa5a3d67057545c2016
454b1a9a9a20528342bb85ef5083bf40c04e8844
refs/heads/main
2023-04-10T02:44:49.092263
2021-04-22T14:17:10
2021-04-22T14:17:10
352,099,236
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import sys import src.settings from src.master.address import AddressUtil from src.master.address import AddressParser from model.address import Address if __name__ == "__main__": args = sys.argv if (len(args) > 1): if (args[1] == "getzip"): _util = AddressUtil() ...
UTF-8
Python
false
false
663
py
10
main.py
7
0.573152
0.562594
0
23
27.782609
94
fengqilr/util
17,549,236,377,528
e89e5379edf7fb1fd3d76bb59d497afe9b5f335b
ce6c32c0f6af8830b2fcd04ae5adec05dafb4782
/utility.py
ad6da6a5dc207a02453a0bcaf675acde4c97e16d
[]
no_license
https://github.com/fengqilr/util
27efdb54d531e3d37bee72610f725f0ee86f1383
8e4eca2cd582c90ce77d13bf06a4393eb9ab89b3
refs/heads/master
2020-12-06T13:36:58.949121
2017-07-31T05:40:33
2017-07-31T05:40:33
66,831,606
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt import copy from pymongo import MongoClient from pymongo import MongoReplicaSetClient from pymongo import ReadPreference import traceback import socket from email.mime.text import MIMEText import smtplib import logging impor...
UTF-8
Python
false
false
8,865
py
2
utility.py
1
0.643029
0.636833
0
209
40.69378
165
Param9498/ComputerNetworks
15,418,932,614,282
ab9060dca74e526a9ebfd09839f7ca7387f1905d
612162759bb265976a5644c37160e643304312b2
/tcp_multichat_client.py
abb1c1ab7d682d8140f386474046983d3595ad97
[]
no_license
https://github.com/Param9498/ComputerNetworks
01c9aeac212879f374c067997ffe1f590c165215
9b83bfb922c84f43f9467477f32a7de756c4f24a
refs/heads/master
2021-07-23T14:34:17.051692
2017-11-02T03:25:50
2017-11-02T03:25:50
109,213,014
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import time import _thread as thread import sys clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) clientSocket.connect((socket.gethostname(), 9999)) nickName = input("Please enter your nickname for this chat room: ") clientSocket.send(nickName.encode('ascii')) isWorking = True def send...
UTF-8
Python
false
false
968
py
16
tcp_multichat_client.py
14
0.625
0.61157
0
40
23.225
67
cash2one/xai
11,656,541,262,942
4990850c191df69155f96629322b3d00f6550c94
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_beginnings.py
615fb4d50d95df33d675932e4e15aa5565a8eb31
[ "MIT" ]
permissive
https://github.com/cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from xai.brain.wordbase.nouns._beginning import _BEGINNING #calss header class _BEGINNINGS(_BEGINNING, ): def __init__(self,): _BEGINNING.__init__(self) self.name = "BEGINNINGS" self.specie = 'nouns' self.basic = "beginning" self.jsondata = {}
UTF-8
Python
false
false
259
py
37,275
_beginnings.py
37,266
0.675676
0.675676
0
10
24.7
58
Divakersoni/Roster-Beta-
4,561,255,277,525
2ed28f8d87ea85ae2d7f01f93f49782649e14a5c
f4d2d5dfdfd20197e28abf83dee3c86a465ab695
/roster/timet/migrations/0006_master_final_status.py
39f67ab34818b5072db004d8deb2de6ed1e295e5
[]
no_license
https://github.com/Divakersoni/Roster-Beta-
c5bf6c343749a38a165f80e1d0ecb17ccfb42b86
cb30e4ec9d1295b98753d7343e1d382c8d840c7f
refs/heads/master
2021-05-11T07:17:37.907691
2018-01-18T17:24:21
2018-01-18T17:24:21
118,014,886
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-08 05:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('timet', '0005_auto_20171106_0311'), ] operations = [ migrations.AddField( ...
UTF-8
Python
false
false
499
py
42
0006_master_final_status.py
33
0.59519
0.523046
0
20
23.95
96
kingspp/rainbow-print
1,589,137,913,565
8b30d013c60b99b014fcc007e768a18b6203622a
d7bf179c1884dda929e56d5c402e59feb976fc06
/tests/test_simple.py
57ba4f4914ae5361e9363820a7a07407ed683f20
[ "MIT" ]
permissive
https://github.com/kingspp/rainbow-print
402d905a8dec57b0d42d08df07230a845728e431
4f3b9a7c3ad93dadb5da713e437a165292c1f038
refs/heads/master
2022-11-10T20:18:05.294849
2020-06-27T18:02:03
2020-06-27T18:02:03
275,147,444
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# the inclusion of the tests module is not meant to offer best practices for # testing in general, but rather to support the `find_packages` example in # setup.py that excludes installing the "tests" package import unittest import random from rainbow_print import rlogging import logging logging.basicConfig(level=loggi...
UTF-8
Python
false
false
1,515
py
6
test_simple.py
4
0.581518
0.559736
0
46
31.934783
76
h1st-ai/contrib
5,420,248,768,544
4bf247bd6621cce48e962530702dd570bab005c5
b74038ab83908450fd7a481720538520287b96b3
/h1st_contrib/iot_mgmt/maint_ops/migrations/0017_auto_20180420_0030.py
bf4ba103878714215bf752ef6a7f1508da6272ce
[ "Apache-2.0" ]
permissive
https://github.com/h1st-ai/contrib
72a5d8b648c08324bddf65c48b280780bfa277a5
0297cf1bec3f9b11b97f575daacfe7fd38873887
refs/heads/main
2022-12-02T06:03:38.302211
2022-11-08T20:02:31
2022-11-08T20:02:31
289,650,802
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-20 07:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('IoT_MaintOps', '0016_auto_20180420_0014'), ] operations = [ migrations.AlterModelO...
UTF-8
Python
false
false
518
py
202
0017_auto_20180420_0030.py
196
0.627413
0.561776
0
19
26.263158
146
nsoranzo/pybel
15,418,932,621,644
fad1c1801db5bafa548a32a25ceb791b51633b4f
5e5a8270f07ac3ca2017b2c4c0fdc903bb4fc25e
/tests/test_import.py
68c67a9b93604b83a1ebc8b542c117cef38a54fc
[ "Apache-2.0" ]
permissive
https://github.com/nsoranzo/pybel
37f2553103ba721925d49a7fafbd1b0b3177a936
3663d24614124509871043d9d411ed400ddba385
refs/heads/master
2021-01-18T11:33:28.069016
2017-03-08T00:00:32
2017-03-08T00:00:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import logging import tempfile import unittest from pathlib import Path import pybel from pybel import BELGraph from pybel import to_bytes, from_bytes, to_graphml from pybel.constants import GENE, CITATION, ANNOTATIONS, EVIDENCE from pybel.io import to_json_dict, from_json_dict from pybel.pars...
UTF-8
Python
false
false
9,055
py
52
test_import.py
41
0.574489
0.561568
0
289
30.33218
117
Jobenland/MFC-WebApp
4,535,485,496,317
b594508e45aa56d6111732a27095c25c5f8ea760
887e7267fc8c8689bd552fb92b12646a341e0e3f
/config.py
94027e1a89dd3ee3606bcbeb658ec7cfb123fd1c
[ "MIT" ]
permissive
https://github.com/Jobenland/MFC-WebApp
eb583914436d9ade29a14381edab5e6930af5e08
aa5817ca32d8a797400971f4fcd40344cd6509ae
refs/heads/master
2022-12-12T10:39:16.363839
2020-02-03T20:37:30
2020-02-03T20:37:30
235,836,760
0
0
MIT
false
2022-12-07T23:54:10
2020-01-23T16:30:37
2020-02-03T20:37:32
2022-12-07T23:54:09
235
0
0
3
Python
false
false
import os basedir = os.path.abspath(os.path.dirname(__file__)) #can leave blank if opt out of secret key option class Config(object): DEBUG = False TESTING = False SECRET_KEY = '<insert-your-secret-key-here>' SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_DATABASE_URI = 'sqlite:///db....
UTF-8
Python
false
false
755
py
18
config.py
9
0.663576
0.663576
0
33
20.878788
58
deckardmehdy/coursera
14,259,291,440,923
ac43db1f5d73c01d48fa5727ef291965f3b9b25c
56dc57aba9f37e496d10800e628685ee7a52c4ab
/Course4/Week2/invert_BWT.py
740a1a628df1c2e52f27f92ba517e8f4f9d3ab23
[]
no_license
https://github.com/deckardmehdy/coursera
618137d898e1caa2b9682ad9abac01e756cbd0ff
d3350991445661520495b5f61e16fd553e1d6ed0
refs/heads/master
2020-06-24T08:09:28.307117
2019-07-25T23:02:00
2019-07-25T23:02:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Runs using Python 3 def createFO(count): letters, start = ["A","C","G","T"], 1 firstOcc = {"A": 0, "C": 0, "G": 0, "T": 0} for i in range(4): if count[letters[i]] != 0: firstOcc[letters[i]] = start start += count[letters[i]] return firstOcc def invert_BWT(lastCol): ...
UTF-8
Python
false
false
1,304
py
52
invert_BWT.py
51
0.526074
0.513804
0
48
26.166667
61
nathan5280/Snippets
8,916,352,116,622
77a2f16780a3f6b5911afd296cc641f91d230ba8
ce4ada9e2587944076a63ea5dd6018f79476df66
/python36/sqlalchemy_/orm_tutorial/section_2_multi_table/user.py
66bdb78eb05e6900a647c8ed7f03a3bb7b5d9a0c
[]
no_license
https://github.com/nathan5280/Snippets
8023385b57aac4c77509fdcde6889ea7cb9a576b
8f763cf05fa0460a8add4701603b5819134dea23
refs/heads/master
2022-02-16T20:46:16.733042
2019-01-06T22:53:13
2019-01-06T22:53:13
107,143,976
1
1
null
false
2022-01-21T19:42:26
2017-10-16T15:07:54
2019-01-06T22:53:15
2022-01-21T19:42:25
501
1
1
13
Python
false
false
from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from .base_model import Base class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(String(20)) full_name = Column(String(50)) password = Column(String(12)) # No ca...
UTF-8
Python
false
false
1,106
py
249
user.py
215
0.64557
0.640145
0
34
31.529412
110
Ivancion/Temporary-Repository-with-Test-Job
9,603,546,899,288
163412301b302d191f0fe1a04ad15e7e59066dc2
78847928bd8b1a56e371fbb88afc9cf015dc54db
/pokemon/services.py
6d8556d01b4144876b93aaa9e4e8a7afa85fefb3
[]
no_license
https://github.com/Ivancion/Temporary-Repository-with-Test-Job
7ff93a5bf1ed45737e50ca3dee32a4820b9740df
2e065575faeb11dd71620e0a28e0ee9d8f7e764d
refs/heads/main
2023-06-27T04:09:44.403834
2021-07-24T17:42:51
2021-07-24T17:42:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from io import BytesIO import requests import json from .models import Pokemon from django.core import files def fill_db(s, num): for x in range(s, num): BASE_URL = 'http://pokeapi.co' def query(resource_url): url = f"{BASE_URL}{resource_url}{x}/" response = requests.ge...
UTF-8
Python
false
false
2,431
py
21
services.py
12
0.559852
0.555327
0
76
30.973684
86
DaniilSmirnov/JunctionAPI
6,579,889,911,031
34d125da93a0f7024af1ce157f14fcdd6ac81b1e
07837422ef3c6a835d006219bb10e7a981e3d847
/app.py
37bc2ccacaa1c3f4a6c7440b23d80d818ce59469
[]
no_license
https://github.com/DaniilSmirnov/JunctionAPI
47905e2b61a7a0511cf5d097e7ac8dc1b00eb98f
20b24aedc8eb9db7448d986d7937a0f8540498c3
refs/heads/master
2020-09-11T06:26:20.244523
2019-11-17T06:16:19
2019-11-17T06:16:19
221,970,857
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask_restful import Resource, Api, reqparse from flask import request import mysql.connector from flask_cors import CORS import json app = Flask(__name__) app.config['CORS_HEADERS'] = 'Access-Control-Allow-Origin: *' cors = CORS(app) api = Api(app) cnx = mysql.connector.connect(user='r...
UTF-8
Python
false
false
15,336
py
2
app.py
2
0.475969
0.470526
0
449
32.552339
114
Ammarpad/wikicode
6,322,191,871,147
d51805489757952cfb7280812c375d7f68d1fb5a
58d55995512804c76b7b4b7250d48b8f370bb13d
/wikidata_bad_p373_value2.py
69aee1a25b413ccf9cd250485c9a2139d07f0bd3
[]
no_license
https://github.com/Ammarpad/wikicode
105e46214c891f5f8e274c78fdb45ba033d5dfbb
4460af096a1d68640c698c90c5cd329aec096675
refs/heads/master
2023-05-02T21:58:17.499426
2021-04-30T09:23:48
2021-04-30T09:23:48
370,579,994
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Remove P373 values # Mike Peel 05-Feb-2020 v1 - start import pywikibot import numpy as np from pywikibot import pagegenerators from pibot_functions import * wikidata_site = pywikibot.Site("wikidata", "wikidata") repo = wikidata_site.data_repository() # This quer...
UTF-8
Python
false
false
1,730
py
129
wikidata_bad_p373_value2.py
127
0.613295
0.563006
0
56
29.910714
251
edrhsmith/activiti
9,371,618,659,878
c8a12e27b21536a37eafd476232a0093ae3b3e54
2ce29104beea357b5a12dc4c2517aa7b32de2716
/strip_power.py
9bd1489f620156f1a1346923d43817f9d3e12948
[]
no_license
https://github.com/edrhsmith/activiti
716538b3bb939c760e0cb46b187c836f64a1ebb9
59a4573db139b9eb6c3a4e4ab934197f72891812
refs/heads/main
2023-04-24T14:25:58.365662
2021-05-16T09:29:56
2021-05-16T09:29:56
363,641,931
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse POWER_TAGS = {'gpx': 'power', 'tcx': 'ns3:Watts'} def main(args): extension = get_extension(args.input_file) power_tag_name = get_power_tag(extension) stripped_lines = [] with open(args.input_file) as f: for n, line in enumerate(f): stripped = line.strip() ...
UTF-8
Python
false
false
1,200
py
2
strip_power.py
1
0.6125
0.610833
0
49
23.489796
117
mgarkusha/mgarkusha.github.io
1,752,346,669,614
0865e86a6dd040ba59372e596ff400df35880de5
a9694270a35de24640fad23270d6df173c996eac
/corp/smena/forms.py
637c5e1ffc88c70faa68a1c249226a9063a17d0e
[]
no_license
https://github.com/mgarkusha/mgarkusha.github.io
eb81a8c381bafebe41c78eae4e5c1a606476a07d
c9d56155f41dc854b94bdc85bbb68341ae8308d8
refs/heads/master
2018-11-11T23:16:30.414188
2018-10-16T00:34:40
2018-10-16T00:34:40
105,914,547
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from .models import Smena, Run class SmenaForm(forms.ModelForm): class Meta: model = Smena fields = () class RunForm(forms.ModelForm): class Meta: model = Run fields = ()
UTF-8
Python
false
false
240
py
74
forms.py
36
0.6125
0.6125
0
14
16.142857
33
spatial-image/multiscale-spatial-image
11,957,188,992,321
c44a7efba6f3b432ef673fb5b04d61dc1ab5085b
9319ca57fa136b9fdc2390329ce6b2e2f01039a4
/multiscale_spatial_image/__init__.py
be793ee6c9e2dea230b51ebfb081378e893e9bc1
[ "Apache-2.0" ]
permissive
https://github.com/spatial-image/multiscale-spatial-image
b7aafb4886d275d59fe6bbd397e771a0d5dda231
efc0ddc167cd2a14ceac4898e4edf08e7789c368
refs/heads/main
2023-05-23T19:25:59.521941
2023-02-09T04:06:35
2023-02-09T04:06:35
379,678,181
19
3
Apache-2.0
false
2023-02-09T04:01:16
2021-06-23T17:17:08
2023-01-28T22:14:13
2023-02-09T04:01:15
1,658
20
5
16
Python
false
false
"""multiscale-spatial-image Generate a multiscale spatial image.""" __all__ = [ "MultiscaleSpatialImage", "Methods", "to_multiscale", "itk_image_to_multiscale", "__version__", ] from .__about__ import __version__ from .multiscale_spatial_image import MultiscaleSpatialImage from .to_multiscale import Metho...
UTF-8
Python
false
false
362
py
28
__init__.py
17
0.720994
0.720994
0
16
21.6875
74
daydaychallenge/leetcode-python
18,957,985,652,625
d42455106fd1e4d17c7a8abfac137783bc134642
53c662619269acdac73cf8b00fdb48ad7f266f8a
/01358/test_number_of_substrings_containing_all_three_characters.py
53278d8734341f86ec65b3761ddfbbef6216739f
[]
no_license
https://github.com/daydaychallenge/leetcode-python
17d76f45877edd47f9e80e526980fbb37d34da51
f68a69eb0afec4ec2516cc7fdfd6315f012af745
refs/heads/master
2022-12-12T20:48:38.814070
2020-11-08T15:08:55
2020-11-08T15:08:55
253,716,527
0
1
null
false
2022-09-20T21:23:31
2020-04-07T07:17:12
2020-11-08T15:09:16
2022-09-20T21:23:30
182
0
1
24
Python
false
false
import unittest from number_of_substrings_containing_all_three_characters import Solution class TestSolution(unittest.TestCase): def test_minRemoveToMakeValid(self): sol = Solution() self.assertEqual(10, sol.numberOfSubstrings("abcabc")) self.assertEqual(3, sol.numberOfSubstrings("aaacb"))...
UTF-8
Python
false
false
370
py
237
test_number_of_substrings_containing_all_three_characters.py
236
0.705405
0.697297
0
13
27.461538
73
k8godzilla/-Leetcode
4,578,435,141,200
6a1356e9add6f0bb3e2605236363cc1fd69a7f4c
dbd8180d9c02c22b42baa5227437714ff352fd8e
/1-100/L015v2.py
db0e485bfdd506384d0cd5d74901078d1461451b
[]
no_license
https://github.com/k8godzilla/-Leetcode
92953dfffc0f06907fa7bd0beea7bc27b16f9efa
58d5384155f481b1d1b0a7ca69566245dd779554
refs/heads/master
2020-06-12T15:35:43.380979
2019-08-07T11:14:49
2019-08-07T11:14:49
194,348,264
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 7 16:43:38 2019 @author: admin """ ''' 给定一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?找出所有满足条件且不重复的三元组。 注意:答案中不可以包含重复的三元组。 例如, 给定数组 nums = [-1, 0, 1, 2, -1, -4], 满足要求的三元组集合为: [ [-1, 0, 1], [-1, -1, 2] ] ''' class Solution: def threeSum(sel...
UTF-8
Python
false
false
1,449
py
208
L015v2.py
207
0.424432
0.393892
0
51
24.058824
81
chengshaozhe/sheep_policy
4,793,183,528,098
e9603c25b3c1f5522a9ee04f3bf622fb63d74902
b715012e5ba8c54ff6676aa4c7c7f3c7ed7ee32a
/MCTS.py
45c18984524446cd0ff2d7708ee7d0b2202739fc
[]
no_license
https://github.com/chengshaozhe/sheep_policy
569adf80e129ed070e0866e6f53d1b61ddfcd76d
fcbfaaa2506e228036fe8606ca271555fc3f291a
refs/heads/master
2021-08-08T07:23:59.063663
2020-04-19T12:35:37
2020-04-19T12:35:37
158,331,454
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import numpy as np import tensorflow as tf import numpy as np HIDDEN1_UNITS = 300 HIDDEN2_UNITS = 200 EPS = 1e-8 import Transition from PreparePolicy import * import pandas as pd from viz import * from reward import * from gridworld import * from BeliefUpdate import * from PreparePolicy import * from Init...
UTF-8
Python
false
false
14,719
py
43
MCTS.py
27
0.583735
0.563353
0
423
33.79669
153
luyu00/ClinicalTransformerNER
11,897,059,420,551
f1f608bf8b315988a13d99449f44c2c58fefa785
a70227a2227c6f581fafe7be99c87dbdbf7b9697
/requirements.txt
22f35c86586d9d2590a93da85dab4265b70ee205
[ "MIT" ]
permissive
https://github.com/luyu00/ClinicalTransformerNER
dac906af89a5e97820d58f322d00e5069853bfc2
c1c7b58c94bef07bdcd191287c6a58a0c3641951
refs/heads/master
2023-01-21T15:47:21.601184
2020-12-04T02:32:23
2020-12-04T02:32:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- torch>=1.6.0 transformers>=3.0.1 tqdm>=4.36.1 numpy packaging
UTF-8
Python
false
false
105
txt
3
requirements.txt
1
0.638095
0.533333
0
8
12.125
23
Purplship/purplship
1,666,447,333,733
767055e4fd50e18b62748fbe31b5f5f76fbcaef5
93d56c2c0b40e777755b64f5245f2c4e44499a13
/schemas/usps/usps_lib/sdc_get_locations_response.py
109a81db45db7e560e9f10f2c59e426893646298
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/Purplship/purplship
e58caf92d9d1e4437ebb15a3f51c11c838964670
ea151d50d7cac0685f61aba25bf6c1082e56e115
refs/heads/main
2023-06-02T07:31:54.838521
2023-05-25T18:37:50
2023-05-25T18:37:50
128,151,112
21
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Sat Jun 18 01:03:12 2022 by generateDS.py version 2.40.13. # Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') # ('-o', './usps_lib/sdc_get_locations_response.py')...
UTF-8
Python
false
false
145,896
py
1,312
sdc_get_locations_response.py
1,108
0.590057
0.586712
0
3,206
44.507174
252
DLLCODERA/linearregression
7,370,163,916,146
bf63846b403631099b773cc210f1a90ee3cffa8e
7c732c3fa6677394c85ac578ff3a6ccbc520de80
/dll_LR_multivariant.py
42e2271f1ebd29b80557d979504ef64aaa45c7ea
[]
no_license
https://github.com/DLLCODERA/linearregression
5c6b1069586ae8f6e474e41aa7062c7adaa8da97
f7a6a441b46527fa48c0cd8c3b5445c368796aee
refs/heads/master
2023-08-29T20:59:26.263333
2021-11-02T15:18:10
2021-11-02T15:18:10
423,894,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score import seaborn as sns def incoming_parameters(): data = pd.read_csv("./tex...
UTF-8
Python
false
false
3,436
py
7
dll_LR_multivariant.py
7
0.605617
0.582504
0
120
27.483333
104
Kimuda/Phillip_Python
11,836,929,905,341
096b78f7c0b41f852d13f89fc6ecb6fa0b406081
3f100a1002a1f8ed453c8b81a9b403444d77b4c6
/conditionals_if/conditionals_4.py
0b8a4344a1bb31e18aefcd7ccd9abde449024138
[]
no_license
https://github.com/Kimuda/Phillip_Python
c19c85a43c5a13760239e4e94c08436c99787ebf
59d56a0d45839656eb15dbe288bdb0d18cb7df2b
refs/heads/master
2016-09-09T22:19:02.347744
2015-05-01T10:56:49
2015-05-01T10:56:49
32,330,951
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
first_number=int(input("give the first number ")) second_number=int(input("give the second number ")) if second_number!=0: print(first_number/second_number) else: print("You can not divide a number by zero numnuts")
UTF-8
Python
false
false
224
py
149
conditionals_4.py
146
0.727679
0.723214
0
6
36.333333
56
safu9/elcats
9,354,438,805,184
680ea1f95908661865235a74cf3214b1cc26b66f
7a8d817d64c7c7c84f82bd31649dfb7373c33fbd
/home/migrations/0001_initial.py
1073d7423794e7c05dcdf6b5649e62a4c53cb4e5
[]
no_license
https://github.com/safu9/elcats
84216e2df2c7ac174af031189609214f3067efcd
769667d8937483af1cf9b33edaa671ca7e2fef90
refs/heads/master
2021-06-20T19:09:53.051365
2019-04-29T12:55:01
2019-04-29T12:55:01
193,738,319
0
0
null
false
2021-03-19T01:39:09
2019-06-25T15:48:57
2019-06-25T15:49:40
2021-03-19T01:39:07
166
0
0
2
Python
false
false
# Generated by Django 2.1 on 2018-12-05 07:10 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Crea...
UTF-8
Python
false
false
1,240
py
91
0001_initial.py
48
0.578098
0.562818
0
32
35.8125
114
dmlnk/weather_app
15,633,680,962,376
962c2c963ad1ed6e461368ab3b0799f63c756309
a4a8a32d8cfab17a37d5d8b6f93c940f3a03794f
/views/MenuView.py
3cd3edc3bb2dd1fed7be95406136594c7429eb3c
[]
no_license
https://github.com/dmlnk/weather_app
91838c3622d6c3752ac729ff7e96e092ba8a8a72
dae4b256606737dbe34d0a14c654646fe5d214a3
refs/heads/main
2023-02-17T22:37:46.394454
2021-01-19T10:27:29
2021-01-19T10:27:29
330,938,266
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * from tkinter import ttk class MenuView: def __init__(self, master, controller): self.controller = controller self.window_fill_color = 'white' self.font_color = '#707070' self.font_size = 12 self.btn_font_size = 10 self.btn_width = 12 ...
UTF-8
Python
false
false
3,419
py
14
MenuView.py
12
0.486984
0.466511
0
72
46.472222
113
JavierPacheco1601/StructuredPrograming2A
2,637,109,940,231
213f49c7c369027e73bb54f995a009565156811d
416e9a9af0eb9b4073968e6277e7bc3549b8bf5f
/unit2/project/Variables_2.py
5e92487b7d048b1a0ec55a843c92b33084c16108
[]
no_license
https://github.com/JavierPacheco1601/StructuredPrograming2A
cb25b0207bb420b1ad572de56e40cf71c42f9d0d
11bd0a7466c244146d3373650f47e6515aef3f5d
refs/heads/master
2023-06-29T20:39:21.610398
2021-08-04T23:55:40
2021-08-04T23:55:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys Adition= 0 Substraction= 0 Multiplication= 0 Division= 0 Number1= int(sys.argv[1]) Number2= int(sys.argv[2]) if __name__ == "__main__": Adition= Number1+Number2 print(f'The adition is: {Adition}') Substraction= Number1-Number2 print(f'The substraction is: {Substraction}') Multiplica...
UTF-8
Python
false
false
468
py
16
Variables_2.py
12
0.690171
0.655983
0
23
19.391304
53
liangriyu/pytemplate
16,131,897,209,561
620a57b6829f6a14033cf17b419d752f01d02066
062c7e6a25889ad4f721fbb25cf22124353c98f2
/hdcloud/utils/dateutil.py
1d3b246d7457b386114492d49b4794a78d884ee5
[]
no_license
https://github.com/liangriyu/pytemplate
1f79dde298b151be41169de6e2fcb11a28a028c0
586906519c7b7a0aee60dbdc32ac628dad1546fc
refs/heads/master
2022-12-14T05:32:32.126494
2020-08-04T09:35:41
2020-08-04T09:35:41
202,729,382
1
0
null
false
2022-12-08T06:16:50
2019-08-16T13:08:32
2022-03-04T05:40:15
2022-12-08T06:16:50
58
1
0
8
Python
false
false
# -*- coding: utf-8 -*- # @Time : 2019/8/24 10:47 # @Author : liangriyu #时间格式 from datetime import datetime,timedelta DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S" DATETIME_FORMAT2 = "%Y%m%d%H%M%S" DATETIME_FORMAT_D = "%Y-%m-%d" DATETIME_FORMAT_D2 = "%Y%m%d" DATETIME_FORMAT_H = "%Y-%m-%d %H" DATETIME_FORMAT_H2 = "%Y%m%d%...
UTF-8
Python
false
false
1,448
py
25
dateutil.py
20
0.621387
0.602601
0
52
25.596154
60
sui84/tools
12,180,527,274,029
9023dd521cc07ca031d045f5b35b9c7defd25d40
25985aeeee54373d26a164e4cc6a014770e3ebf3
/windows/w3af/w3af/core/data/searchEngines/.svn/text-base/bing.py.svn-base
cd4f3be8d2104c4d0e010ae51315fde9c0d55284
[]
no_license
https://github.com/sui84/tools
4b750dae90940fbe3a226cba72dc071d8fb88b7c
651cc08eb50199ce1044c684dbf714ea26df6432
refs/heads/master
2021-01-22T19:22:26.964580
2017-08-20T15:23:38
2017-08-20T15:23:38
100,774,276
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
''' bing.py Copyright 2006 Andres Riancho This file is part of w3af, w3af.sourceforge.net . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope that it...
UTF-8
Python
false
false
2,767
234
bing.py.svn-base
205
0.633177
0.622335
0
83
32.337349
110
mxer/Lyric_ASR
10,256,381,938,406
384f43c26abc331d16db68b100ded8e4a23bb586
1a165b84fdbca7a6377e0bad36070dcaf951c8b8
/progress/check_progress.py
0b9b7aeb8bc22001936e9070874573b9f0bc7b25
[]
no_license
https://github.com/mxer/Lyric_ASR
1464b8fa741598e93f7c5220ed273e115517bf8b
a841a07ba6e4a7c55c8249231eeae4136827b866
refs/heads/master
2021-05-17T08:13:36.856940
2019-07-17T06:02:54
2019-07-17T06:02:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import sys,os import matplotlib.pyplot as plt import argparse parser = argparse.ArgumentParser() parser.add_argument("logDir", help = 'log directory of nnet2') parser.add_argument("firstIter", help = 'first iter', type = int) parser.add_argument("finalIter", help = 'final iter', type = int) args = p...
UTF-8
Python
false
false
1,372
py
136
check_progress.py
132
0.586006
0.580904
0
45
29.488889
73
leilalu/algorithm
8,950,711,853,666
e2dac9c3d8f4a747ad075ae27d8e3423efef5a05
4cdc9ba739f90f6ac4bcd6f916ba194ada77d68c
/链表/19.删除链表的倒数第N个结点.py
3c29856a378921dd9e043eb686ab2b5432ad34ac
[]
no_license
https://github.com/leilalu/algorithm
bee68690daf836cc5807c3112c2c9e6f63bc0a76
746d77e9bfbcb3877fefae9a915004b3bfbcc612
refs/heads/master
2020-09-30T15:56:28.224945
2020-05-30T03:28:39
2020-05-30T03:28:39
227,313,730
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 示例: 给定一个链表: 1->2->3->4->5, 和 n = 2. 当删除了倒数第二个节点后,链表变为 1->2->3->5. 说明: 给定的 n 保证是有效的。 进阶: 你能尝试使用一趟扫描实现吗? """ class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def removeNthFromEnd(self, head, n): if not hea...
UTF-8
Python
false
false
929
py
357
19.删除链表的倒数第N个结点.py
356
0.488032
0.472074
0
47
14.957447
40
BeBruceThomas/KilaueaKoaeProject
1,537,598,301,188
95bf803d5d606d8f9ce595a69b75fc0548298a0d
2f8ca0ed0a32b72b9299087e8add11acb77c3555
/scripts_okada/setup.py
b821ffd9d7212160c636baedb62a33b2adbcec7a
[ "MIT" ]
permissive
https://github.com/BeBruceThomas/KilaueaKoaeProject
39dd3753495b4eb70df953342cc4381b176ce385
a740ba1a981c7beab631cf694b86701b0fc44ee2
refs/heads/master
2021-01-22T19:14:57.898037
2017-08-22T01:34:40
2017-08-22T01:34:40
100,773,271
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from numpy.distutils.core import setup, Extension # -g compiles with debugging information. # -O0 means compile with no optimization, try -O3 for blazing speed compile_args = ['-O3'] ext = [] ext.append(Extension('DC3D', sources = ['okada_wrapper/DC3D.f', 'okada_wrapper/D...
UTF-8
Python
false
false
781
py
38
setup.py
21
0.629962
0.618438
0
23
32.956522
84
TSL-UOB/CAV-Gym
9,912,784,556,962
99e19935bfdf647fb1fd102dae24aa0fa57c633c
564cff5c2f3677f4c9913968a40860accc2f0378
/examples/targets.py
c35cb46bd68e7ab66e742d867bdd24cb748721dc
[]
no_license
https://github.com/TSL-UOB/CAV-Gym
63aac9bdd2239646811fadbfae881bafc91689fb
5f841160806464620cfcfc1f5e6f1006090ac402
refs/heads/master
2021-05-20T08:23:22.818372
2021-05-11T12:22:31
2021-05-11T12:22:31
252,192,085
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math from enum import Enum class TargetVelocity(Enum): MIN = 0 MID = 1 MAX = 2 class TargetOrientation(Enum): NORTH = math.pi * 0.5 NORTH_EAST = math.pi * 0.25 EAST = 0.0 SOUTH_EAST = -(math.pi * 0.25) SOUTH = -(math.pi * 0.5) SOUTH_WEST = -(math.pi * 0.75) WEST = math...
UTF-8
Python
false
false
356
py
29
targets.py
26
0.570225
0.511236
0
19
17.736842
34
schevalier/chronology
9,895,604,657,076
35f3df96bd1f160a230eace55f648ec53118bc1b
786b1ae976e36f123975613c950ca26d300cf35f
/common/tests/test_json_schema.py
0cb7d30d037f4e33b89244b3ab67b1c3b860af9f
[ "MIT" ]
permissive
https://github.com/schevalier/chronology
0d841d7e9a358f26b24cb0b300480ab0be994f32
237c8c1df4bce4636f3bda48c4fd73c979131e1e
refs/heads/master
2023-05-25T06:28:37.363358
2014-12-09T13:56:48
2014-12-09T13:56:48
27,831,968
0
0
MIT
true
2023-05-23T06:54:54
2014-12-10T17:50:57
2014-12-10T17:50:58
2023-05-23T06:54:54
4,053
0
0
5
Python
false
false
import json import unittest from src.json_schema import AnyType from src.json_schema import ArrayType from src.json_schema import BooleanType from src.json_schema import IntegerType from src.json_schema import NullType from src.json_schema import NumberType from src.json_schema import ObjectType from src.json_schema i...
UTF-8
Python
false
false
4,216
py
184
test_json_schema.py
120
0.541983
0.534867
0
140
29.114286
78
MIlenaMontoya/holbertonschool-higher_level_programming
5,660,766,915,083
32bda4ccc21c9f8f2a4937b28ba07a536209c104
1261bc255ed3df9ed760e1fa70ad58dbc4e52c30
/0x04-python-more_data_structures/0-square_matrix_simple.py
8f65e04f7bb14f17645546dacda8fa257d73defe
[]
no_license
https://github.com/MIlenaMontoya/holbertonschool-higher_level_programming
77ece3156d9c0490c69090665b79e1c16def02d1
9b6942b509bd32cd8f3570d23277404631096e7d
refs/heads/master
2023-03-07T03:08:27.689032
2021-02-10T04:40:48
2021-02-10T04:40:48
291,843,392
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 def square_matrix_simple(matrix=[]): nmtx = [] for i in matrix: nmtx.append(list(map(lambda a: a ** 2, i))) return nmtx
UTF-8
Python
false
false
159
py
45
0-square_matrix_simple.py
39
0.584906
0.572327
0
6
25.5
51
jorgeaugusto01/PortfolioManager
386,547,091,287
893f9b7ac56bfcc267caa70f689f099f0f300d97
5d7a5da289c3796a55cdce7a233b5df1a64e1bdf
/Entidades/TipoArquivo.py
0d556f35f11a5abab3b5cf7aed9b4bb75106f33f
[]
no_license
https://github.com/jorgeaugusto01/PortfolioManager
e8222e9c20147f233178fd5a3e3a99885578d15a
e89d6d7ce54be3e79c9fc389586cebf33721e952
refs/heads/master
2018-10-10T04:29:53.190631
2018-10-09T23:39:01
2018-10-09T23:39:01
131,020,188
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import psycopg2 from PostgreSql import PostgreSql class TipoArquivo: def __init__(self, dbCon): self._cod_tipo_arquivo = None self._desc_tipo_arquivo = None self._dbcon = dbCon def SelecionarTipoArquivo(self, codTipoArquivo): select_tipo_arquivo = ("SELECT * FROM TB_TIPO_ARQUI...
UTF-8
Python
false
false
1,538
py
31
TipoArquivo.py
28
0.595579
0.592328
0
40
37.45
95
peterus/python-telegram
1,056,561,988,263
935c8b48e84b358a506ad3ee09e769ab5a60e9c7
b0828c61038f1a5b45f191eece16495654a69b9e
/telegram/__init__.py
eb11289fc5efa826776480ada61ca8e15b6df52b
[ "MIT" ]
permissive
https://github.com/peterus/python-telegram
480f95e6d5d127093d6be7559e6efdecb0a33508
e551cde71d13d460a1b348168df91f682ffe48eb
refs/heads/master
2020-05-01T06:38:18.991705
2019-03-23T20:09:17
2019-03-23T20:09:17
177,335,064
0
0
MIT
true
2019-03-23T20:07:14
2019-03-23T20:07:13
2019-03-18T07:36:28
2019-03-19T03:17:58
17,774
0
0
0
null
false
null
__version__ = '0.8.0' VERSION = __version__
UTF-8
Python
false
false
45
py
2
__init__.py
1
0.533333
0.466667
0
3
14
21
karthikpappu/pyc_source
1,030,792,168,630
945612f336bc0902c88b866a794e2795c73f840e
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pypi_install_script/airport-py-0.1.0.tar/setup.py
af0e82d411ef28aa6c8b1815750e2fcbd878156d
[]
no_license
https://github.com/karthikpappu/pyc_source
0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f
739e7e73180f2c3da5fd25bd1304a3fecfff8d6e
refs/heads/master
2023-02-04T11:27:19.098827
2020-12-27T04:51:17
2020-12-27T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages if sys.platform != 'darwin': sys.exit('airport-py depends on a specific mac os tool called "airport"') with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='airport-py',...
UTF-8
Python
false
false
819
py
114,545
setup.py
111,506
0.632479
0.62149
0
30
26.3
77
QS-L-1992/DI-drive
4,827,543,277,619
bab1a23c50ab4d516c1018925cbe38d2533a9a83
df13b7f3188e1cb0a9c2cb0a1d16d8a999416f15
/core/utils/simulator_utils/md_utils/discrete_policy.py
c598c48d3288ddbc0142f012c8d1ff24139597c3
[ "Apache-2.0" ]
permissive
https://github.com/QS-L-1992/DI-drive
5d2d4c387cbed933cc4e89459c262945ce811335
8246b09d631826a1db85154ac854808b15f8a5b1
refs/heads/main
2023-08-16T11:13:16.261898
2022-10-10T06:41:22
2022-10-10T06:41:22
395,540,647
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import numpy as np from metadrive.component.vehicle_module.PID_controller import PIDController from metadrive.policy.base_policy import BasePolicy from metadrive.policy.manual_control_policy import ManualControlPolicy from metadrive.utils.math_utils import not_zero, wrap_to_pi, point_distance from meta...
UTF-8
Python
false
false
2,185
py
231
discrete_policy.py
149
0.719908
0.716705
0
67
31.61194
101
chrispydych/Projects
11,355,893,551,115
eb10c6abf70790fede19ac90a58ed2d1549b26de
668903cd9436eff8dbf1333691f0577a34eb7bad
/Python/NumberClassifier/Main.py
c4cb4ae1f3394273ad0577bce92d568989e90e91
[]
no_license
https://github.com/chrispydych/Projects
8337ec7fd7d272143f9d7a66eb285850c783c079
ab24c5ebde3d4a161afe419a2b9638a75e4f7b97
refs/heads/master
2022-12-23T07:57:39.522160
2022-07-12T02:32:39
2022-07-12T02:32:39
232,688,967
1
0
null
false
2022-12-10T14:18:22
2020-01-09T00:41:50
2021-10-05T21:23:18
2022-12-10T14:18:19
465,049
1
0
3
Jupyter Notebook
false
false
import cv2 import numpy import Model import PreProcessor import Analyzer import DataLoader import tensorflow as tf
UTF-8
Python
false
false
116
py
383
Main.py
65
0.853448
0.844828
0
7
15.428571
23
arjuntsaji/Django-crud-operations-miniproject
18,614,388,284,475
bb217615e055aa4f891392717c496510f5718dfe
c249f6a46ae5f20669b8db87bf0dc5bae49e6770
/Brandless/accounts/models.py
0f087471b6971b0c1baa1c419f729c62ffafa339
[]
no_license
https://github.com/arjuntsaji/Django-crud-operations-miniproject
390715fb0f5faed9e26f4cfb9dbf8916e2de4d0d
c1a193e5a80cfb3ac64e7c3ebdd9ae4bd43be833
refs/heads/master
2023-05-14T20:29:31.609820
2021-06-06T04:42:46
2021-06-06T04:42:46
348,951,368
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models # from django.core.validators import MinValueValidator,MaxValueValidator # Create your models here. class Position(models.Model): title=models.CharField(max_length=30) def __str__(self): return self.title class Department(models.Model): department=models.CharField(...
UTF-8
Python
false
false
1,144
py
36
models.py
23
0.716783
0.704545
0
40
27.575
82
DamonZCR/PythonStu
11,081,015,641,023
f2afcd777e0d0e22edc673f54e4485e391903833
caa72788fdae6b05c5ce4c132b45fc00d55bb607
/47Tkinter/Canvas画布/18-2Canvas画布调整.py
72a9ff5bfb98d61109c1f78dde004bd9f4cc162d
[]
no_license
https://github.com/DamonZCR/PythonStu
dcc2ba49195f5859fd63227fe0f8f78b36ed46df
88fec97e3bccff47ba1c5f521f53a69af6ca2b2d
refs/heads/master
2023-07-05T06:29:53.300920
2021-08-13T12:22:30
2021-08-13T12:22:30
302,256,563
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * '''画布中,样式的修改共有三个方法:coords(),itemconfig(),move()或者delete()''' root = Tk() w = Canvas(root, width=200, heigh=100) w.pack() # 前两个参数代表起点,后两个代表终点,dash代表线的样式,虚线 line1 = w.create_line(0, 50, 200, 50, fill='black') line2 = w.create_line(100, 0, 100, 100, fill='red', dash=(4, 4)) rect1 = w.create_rectangle...
UTF-8
Python
false
false
736
py
237
18-2Canvas画布调整.py
230
0.685512
0.59894
0
18
30.5
68
ArkCase/arkcase-ce
11,149,735,108,033
dab9b94f3f40184aed686bfb6bae32c846e7be66
d0c835f43df436429177059e290160546bac3c1a
/vagrant/provisioning/roles/arkcase-app/files/fixGroups.py
3c66b85ff3f5bc653770e0a4533f901770068f94
[]
no_license
https://github.com/ArkCase/arkcase-ce
1d92412c680399431880aaa32908b887cc17ce68
f0d7867bb87a8fa16b637f3407aaf8b74b0cd57c
refs/heads/develop
2023-08-24T23:09:58.507519
2023-08-17T12:33:10
2023-08-17T12:33:10
171,937,101
19
15
null
false
2023-09-13T14:56:53
2019-02-21T20:04:13
2023-06-13T13:03:26
2023-09-13T14:56:53
73,385
14
14
26
JavaScript
false
false
#!/usr/bin/env python import sys import openpyxl if len(sys.argv) < 4: print ("Must provide Excel file name, and at least one old_string,new_string pair") sys.exit(1) excel_file = sys.argv[1] + ".xlsx" new_excel_file = sys.argv[1] + "-updated.xlsx" wb = openpyxl.load_workbook(excel_file) sheet = wb.get_sheet...
UTF-8
Python
false
false
956
py
217
fixGroups.py
13
0.59728
0.584728
0
32
28.875
92
chaneylc/SvgLayerParser
6,279,242,229,169
403da10b279d40ce90ba64062fc6d4a8f7084327
ed9fc9b61083ac32cef239336699f92c5e4796f5
/SvgParser.py
b8eb5bf70949f55d38bab996e8198667c95b3009
[]
no_license
https://github.com/chaneylc/SvgLayerParser
728a9fb54f5923b3e3da2952d9cd78bfc6b51553
b00a6e4343e065bd230f36663f5a14e498e251e4
refs/heads/master
2021-01-23T05:30:14.721468
2017-06-08T21:17:56
2017-06-08T21:17:56
92,974,029
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from subprocess import Popen, PIPE from lxml import etree from svglib.svglib import svg2rlg from reportlab.graphics import renderPM import os SLIC3R_HOME=None if "SLIC3R_HOME" in os.environ: SLIC3R_HOME = os.environ["SLIC3R_HOME"] else : SLIC3R_HOME = os.getcwd() SLIC3R_S...
UTF-8
Python
false
false
6,427
py
2
SvgParser.py
1
0.567761
0.556714
0
174
34.936782
96
Federico-PizarroBejarano/Don-Mills-Online-Judge
12,945,031,455,508
dfbfa87445e0f4e875c84f7220712138587a2050
cacdbf688209cce2f39698758346b99de7d5281d
/Who is in the Middle.py
79aa9c51f3ccb9ed5e015358a349b4a413e4364a
[]
no_license
https://github.com/Federico-PizarroBejarano/Don-Mills-Online-Judge
27d168e390cdf7be104117d6a699fd7df4104b63
6e77978a19d29ec3095687b71dc8eff3565f6a60
refs/heads/master
2021-05-11T09:14:24.849165
2018-01-19T03:42:06
2018-01-19T03:42:06
118,072,968
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a = [] for i in range(3): b = input() a.append(b) a.sort() print a[1]
UTF-8
Python
false
false
85
py
88
Who is in the Middle.py
87
0.458824
0.435294
0
6
12
18
DavidBitner/Aprendizado-Python
9,139,690,418,144
48b9dba3b2a2e5164631f8b9b23b435860246b6b
7a20dac7b15879b9453150b1a1026e8760bcd817
/Curso/ExMundo1/Ex027Strings6PrimeiroUltimoNome.py
c302d55d9ae5de23380f95b1acdf732f5ffd18e5
[ "MIT" ]
permissive
https://github.com/DavidBitner/Aprendizado-Python
7afbe94c48c210ddf1ab6ae21109a8475e11bdbc
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
refs/heads/master
2023-01-02T13:24:38.987257
2020-10-26T19:31:22
2020-10-26T19:31:22
283,448,224
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
nome = str(input('Digite um nome completo: ')).strip() separado = nome.split() pnome = separado[0] unome = separado[-1] print('O nome digitado foi: {}'.format(nome)) print('O primeiro nome é: {}'.format(pnome)) print('O ultimo nome é: {}'.format(unome))
UTF-8
Python
false
false
256
py
289
Ex027Strings6PrimeiroUltimoNome.py
283
0.673228
0.665354
0
7
35.285714
54
yajiayang/previous_projects
14,903,536,540,332
4559272fd1bb57efc6c8e61fd6cbff27003dfb5a
8a008f7e39125ec8b982fa0d5b6ef1f233f2ce29
/topic_recom.py
5bd51045cb285a784c7fab1f1b192d5acb2fa962
[]
no_license
https://github.com/yajiayang/previous_projects
1b87e5a0916a8a8cd5d6282c83a5166a936f89e2
339cdb18bae0903d6a755293e38e4bb2c30d0f4d
refs/heads/master
2021-01-22T19:14:05.347218
2015-08-19T23:48:20
2015-08-19T23:48:20
41,065,246
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections as co from top_search_scraper import Belieber import re def coffee_rel(path,term): with open(path) as handle: for line in handle: item = line.replace('\n','').split('\t') a = item[1]+item[2]+item[3]+item[4] match = re.findall(term,a) if mat...
UTF-8
Python
false
false
1,007
py
46
topic_recom.py
45
0.590864
0.578947
0
35
27.571429
83
kejek/legislature
14,061,722,935,492
054832a56acc220659ddd17047292b1275b9eb2a
a2722a407ff5e5c4ac488b162c9a8911ba1a8cfc
/checkout/admin.py
0eb388f89fcc9dc6aab209e8061456edc98db04d
[]
no_license
https://github.com/kejek/legislature
221b65cff8eefa260ab61a1bfbeca27396bbe724
a78fc5aaf3b6fa641143693b60030e34370b777a
refs/heads/master
2021-01-02T09:10:02.239242
2017-08-02T20:04:35
2017-08-02T20:04:35
99,149,699
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Employee from .models import Group from .models import Section from .models import Division from .models import Status class EmployeeAdmin(admin.ModelAdmin): list_display = ['id', 'name', 'image', 'phone', 'status_name', 'notes', 'returning...
UTF-8
Python
false
false
1,482
py
22
admin.py
14
0.674764
0.674764
0
59
24.118644
75
sukanyavenkataraman/Bigdatasystems
4,475,355,941,399
3d5ff389fa89e655efc25b205789b52aaf5627d5
521a64784b9a12fff042e5e2ed10303b1143f59b
/load_generator_dependencies.py
cb963581a4f98c7d21c6f729d337a7834c204495
[]
no_license
https://github.com/sukanyavenkataraman/Bigdatasystems
a1b876d1ea7a9bb3395603f8ec442255961d4dfb
192a09189c17b5d1bc2ec55ba50fd52000cddfac
refs/heads/master
2021-08-28T12:32:54.261467
2017-12-12T08:42:20
2017-12-12T08:42:20
113,410,010
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import random import math from datetime import datetime # Usage: python load_generator.py output_file_path num_jobs max_execution_time_per_partition max_partitions_per_vertex max_ready_time max_vertices_per_job max_dependencies_per_vertex # Sample Usage: python load_generator_dependencies.py foobar.txt 5 5...
UTF-8
Python
false
false
3,183
py
21
load_generator_dependencies.py
4
0.633679
0.619855
0
99
31.151515
182
py2many/py2many
15,101,105,040,255
6470ac64d69c1f479b7fc8c689c65b58fa7c9d1b
c012534659fbad6033dea9d2f2db905a8498c6a1
/tests/expected/infer.py
0d7e67112322080a8e96b7cea8fd9ca4d591daee
[ "MIT" ]
permissive
https://github.com/py2many/py2many
dee68d496f17afdd85ef4828ab5c707de6587722
c9947f91c7bd94cca5df41d1573dc9edd4682709
refs/heads/main
2023-08-16T21:22:28.844458
2023-02-13T04:00:27
2023-02-13T04:00:27
332,357,790
221
15
MIT
false
2023-08-07T02:27:45
2021-01-24T03:19:12
2023-07-31T01:24:36
2023-08-07T02:27:44
1,612
533
42
127
Python
false
false
from typing import Callable, Dict, List, Set, Optional from ctypes import c_int8 as i8, c_int16 as i16, c_int32 as i32, c_int64 as i64 from ctypes import c_uint8 as u8, c_uint16 as u16, c_uint32 as u32, c_uint64 as u64 import sys def foo(): a: int = 10 b: int = a assert b == 10 print(b) if __name__ ...
UTF-8
Python
false
false
345
py
394
infer.py
225
0.628986
0.536232
0
15
22
83
msoroush/alchemical-analysis
9,629,316,680,528
b7ff1478cfc4052f3efd5ff05595ed67478d521d
ea9c3169029e3c73c139ae614ef94de82a5088d9
/alchemical_analysis/parser_desmond.py
4a91129e794d8c26ba318bc54942136871681892
[ "MIT" ]
permissive
https://github.com/msoroush/alchemical-analysis
d262151c3222a51666ac6be3a018d1c24568032a
ac9f948db03639a35a7155752b26e98ef7b88fa5
refs/heads/master
2020-05-14T10:39:21.666691
2019-11-26T19:53:38
2019-11-26T19:53:38
181,764,643
1
1
MIT
true
2019-04-16T20:46:05
2019-04-16T20:46:04
2019-04-11T06:23:41
2018-06-28T15:55:06
11,771
0
0
0
null
false
false
###==========================### # Desmond parser module # Module adapted from Gromacs parser # Adapted by Nathan M. Lim ###==========================### import numpy import os # for os interface import re # for regular expressions from glob import glob # for ...
UTF-8
Python
false
false
5,606
py
30
parser_desmond.py
10
0.498751
0.489297
0
132
41.469697
155
zzilch/SUNCG-Search
16,870,631,577,986
e47c01a83971cb5ddc89575f1597246fac40ebe2
3bf21dcf36348a12ef2140274e09eca4cc12bba6
/servers/db_api/db_api/resources/single_relationship.py
e300ad6862ca0af676d7b96e264c30d6ccd93ab9
[]
no_license
https://github.com/zzilch/SUNCG-Search
a71492e61f5cee1fef0fc9ff867af96d88bccbf6
101e97da8ff441c38cdf80e8114b4e17eb9f1412
refs/heads/master
2020-07-30T09:00:30.780478
2017-06-07T19:42:24
2017-06-07T19:42:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import jsonify from flask_restful import Resource from flask_restful.utils import cors from webargs import fields, validate from webargs.flaskparser import use_args, use_kwargs, parser, abort from db_api import cursor from ..util import parseData cmd_temptables = """ DROP TABLE IF EXISTS t1; DROP TABLE I...
UTF-8
Python
false
false
2,113
py
65
single_relationship.py
51
0.629437
0.625177
0
85
23.788235
67
gadeuneo/SCSI-Python
17,506,286,700,679
37fe2787fbe478dace3571c2704c974919cb9345
d1e1eb5f292f3982ddf67ebefcc9429d77ec8241
/saveImages.py
8001533014cb474a2aae51c2924fd720bc1e0705
[]
no_license
https://github.com/gadeuneo/SCSI-Python
46b23c5e2f2f43308e78c9dad7f4ea588d7b3e6b
194e296ffd06dcd50e64206fc125e9b04641a6d4
refs/heads/master
2021-01-25T08:49:08.825827
2014-08-07T15:56:48
2014-08-07T15:56:48
22,621,871
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 cap = cv2.VideoCapture(0) frameNum = 0 filenameTemplate = "SavedImages/frame{:04d}.jpg" key = ' ' while key != 'q': ret, frame = cap.read() cv2.imshow("Video", frame) fileName = filenameTemplate.format(frameNum) cv2.imwrite(fileName, frame) x = cv2.waitKey(30) key = chr(x & 0xFF)...
UTF-8
Python
false
false
378
py
37
saveImages.py
36
0.642857
0.60582
0
18
19.888889
48
fendaq/Arithmetic_Func_detection_for_CTPN
1,864,015,812,542
964f22ee6ca1db02dfa1faeabb9abfac78a0b356
1c59524a45a5859d1bff39f83f7b4e6b2f9fdfbb
/lib/prepare_training_data/divide_dataset.py
79f8507bf0b950fe299df64ac4ac6344974fdabe
[]
no_license
https://github.com/fendaq/Arithmetic_Func_detection_for_CTPN
d62087547e863f22df4c219ddd616ced4103a42b
2bf6e05cd706189918ef892666d151894a049fad
refs/heads/master
2020-03-30T04:17:10.971584
2018-09-28T09:48:27
2018-09-28T09:48:27
150,734,626
2
0
null
true
2018-09-28T12:05:15
2018-09-28T12:05:15
2018-09-28T09:48:34
2018-09-28T09:48:33
866
0
0
0
null
false
null
import os,shutil import numpy as np import tqdm validation_data_num = 22 img_dir = "/home/tony/ocr/ocr_dataset/tal_detec_data_v2/img" xml_dir = "/home/tony/ocr/ocr_dataset/tal_detec_data_v2/xml" train_img_dir = "/home/tony/ocr/ocr_dataset/ctpn/train_data/img" train_xml_dir = "/home/tony/ocr/ocr_dataset/ctpn/train_da...
UTF-8
Python
false
false
2,094
py
8
divide_dataset.py
7
0.602197
0.598854
0
63
32.253968
94
fengbingchun/PyTorch_Test
8,315,056,686,839
102559cf7ac31fc88d0881895d59bf9b244a26c8
926b3c52070f6e309567c8598248fd5c57095be9
/src/mmgeneration/configs/_base_/models/biggan/biggan_128x128.py
29def783aef0700182a84f45fc1f9d1b9118578d
[ "Apache-2.0" ]
permissive
https://github.com/fengbingchun/PyTorch_Test
410f7cd2303707b0141d433fb9d144a961e1f4c8
df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348
refs/heads/master
2023-05-23T16:42:29.711338
2023-03-25T11:31:43
2023-03-25T11:31:43
167,339,907
15
4
null
false
2023-03-25T11:31:45
2019-01-24T09:24:59
2022-12-08T03:01:33
2023-03-25T11:31:44
264,586
13
5
0
C++
false
false
model = dict( type='BasiccGAN', generator=dict( type='BigGANGenerator', output_scale=128, noise_size=120, num_classes=1000, base_channels=96, shared_dim=128, with_shared_embedding=True, sn_eps=1e-6, init_type='ortho', act_cfg=dict(t...
UTF-8
Python
false
false
1,001
py
785
biggan_128x128.py
581
0.588412
0.531469
0
32
30.28125
77
davidaparicio/davidaparicio.github.io
2,018,634,669,937
92d9a2fbd955f7c30c8fd6db481877627e17a4d3
b4fb95d5bc7fc6eda91394f21b86df0caa4a9705
/scripts/qrcode/qrcode_gen.py
be608c84b5c5b6aa57525da6159f11630e57a2b7
[ "MIT" ]
permissive
https://github.com/davidaparicio/davidaparicio.github.io
3f0be2a577a8553cfddcb98adb4996be94622f70
4c24ee985ba4fbd36e6c3a6bf34316e6830e0aeb
refs/heads/master
2023-08-03T00:30:13.879949
2023-08-01T11:16:30
2023-08-01T13:20:41
405,609,189
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import qrcode websiteurl = 'https://davidaparicio.gitlab.io' filename = 'website.png' versions = 1 #1 to 40 boxsize = 10 #nb of pixels bordersize = 4 #min thickness of the border #img = qrcode.make('Your input text') img = qrcode.make() qr = qrcode.QRCode( version=versions, error_correction=qrcode.con...
UTF-8
Python
false
false
1,177
py
128
qrcode_gen.py
11
0.653356
0.609176
0
43
26.395349
89
xgfelicia/Deep-Learning
9,191,230,044,566
8584a6694c883e7ac46cbbe2501fa9e4cc4e73d2
c8ccf1915bd05aea1c7fb891acb2f5ef4bcc9ae8
/vae/vae-vanilla.py
c326c1227221ca7a06786a7b845c0a909011befb
[]
no_license
https://github.com/xgfelicia/Deep-Learning
98c0d563183e1ba6cb510c9ba17c897867d96464
57f5166eb08b0ab85022321ac3cdcb8c1e40cf2a
refs/heads/master
2020-04-08T06:12:14.579826
2019-03-23T20:32:00
2019-03-23T20:32:00
159,088,813
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd.variable import Variable from torchvision import transforms, datasets import torchvision import argparse parser = argparse.ArgumentParser(description = "MNIST Testing") parser.add_a...
UTF-8
Python
false
false
3,707
py
8
vae-vanilla.py
5
0.563259
0.538711
0
128
27.945313
108
Brokenwind/Grabscenic
13,872,744,410,996
b5dbc8a429c08381ebfbd0cb79c4faaf3f2ab4f7
3b3deed872d6aa9b133e04731ac4d1447be1def6
/scenic/grab/grab.py
f7f3f0f6b0c7e9dfd799190b91af7e8030b7ab9e
[]
no_license
https://github.com/Brokenwind/Grabscenic
77b87224bd1129a4e3a0de5511aa3859fa1e6836
6a18680644c6c84a016a95d0688c47e603292988
refs/heads/master
2020-06-14T15:47:18.767803
2016-12-16T13:43:54
2016-12-16T13:43:54
75,163,829
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # coding=utf-8 import numpy import re from bs4 import BeautifulSoup from selenium import webdriver from pandas import DataFrame,Series from scenic import Scenic from tables import Tables from baidu import Baidu from map import BaiduMap import sys sys.path.append("..") from log import Logger default_e...
UTF-8
Python
false
false
13,912
py
10
grab.py
7
0.55746
0.549611
0
360
37.577778
119
nchen0/Algorithms
14,499,809,619,865
106bcc0c5f23a8422c73b9d8736fc4cb02e2c2fa
327871e65cdf46392fdc988fc7c2f3d88343426b
/climbing_stairs/climbing_stairs.py
8cba2b5cc208b2604166514ad8c8b2ad1ed613b5
[]
no_license
https://github.com/nchen0/Algorithms
0960c7c9ea19cfe8cab92da953af5269666a4cc2
c5f98e88813ed6e31df2e1b2d4780f09d3b60aa1
refs/heads/master
2020-03-27T19:56:11.050857
2018-09-04T21:52:54
2018-09-04T21:52:54
147,022,656
0
1
null
true
2018-09-01T18:27:33
2018-09-01T18:27:32
2018-08-30T18:37:40
2018-09-01T17:34:08
10
0
0
0
null
false
null
#!/usr/bin/python import sys import itertools def climbing_stairs(n): if n == 0: return 1 original_list = [] # Find ALL combinations of 1,2,3 possible, with repeats, of n times and add it to original_list. for i in range(1, n+1): original_list.append(list(itertools.product('123', repeat=...
UTF-8
Python
false
false
1,109
py
4
climbing_stairs.py
4
0.640216
0.627592
0
36
29.805556
96
elazarg/gender_dots
1,125,281,440,873
8ee5bd53f1f64e551a9f506a7d88d41c910d3f7f
a4650bc66e5c334b905948a5857321cbc7e9b501
/run_experiment.py
0d77d5e618642312ed18670fba158477bd4fe0f4
[]
no_license
https://github.com/elazarg/gender_dots
b91fbbf820bc961d4c4e57680dc7380110b01bb9
bd07685cc1d08d41d61fd66b95078f37bbe4ef2e
refs/heads/main
2023-06-22T00:40:20.194782
2021-07-26T14:29:40
2021-07-26T14:29:40
381,103,336
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse from pathlib import Path import csv from hebrew import remove_niqqud import external_apis def read_tsv(filename): with open(filename, encoding='utf8', newline='') as f: yield from csv.reader(f, delimiter='\t') def make_filename(system, category): return f'data/{system}/{category}.ts...
UTF-8
Python
false
false
4,043
py
1,133
run_experiment.py
6
0.617611
0.608706
0
104
37.875
102
oleksis/cubadebatebot
5,085,241,290,950
6d459175da41eb555141f4b7fa3dfd9c34fd855c
ad2b236d30ef4433fe37de516409a1dbcd768729
/conf/telegram.py
2f48385c8ad7b44847e7390b6e8ac8ce0c83b157
[ "MIT" ]
permissive
https://github.com/oleksis/cubadebatebot
cab8b4074bb5e09ab5731b76da61826a64b906dc
74c7f788a308c778eac9821477c675b46069f6b2
refs/heads/master
2023-05-24T16:23:35.329017
2021-04-22T22:49:50
2021-04-22T22:49:50
265,373,234
0
0
MIT
false
2023-05-22T22:44:36
2020-05-19T21:38:08
2021-04-22T22:45:32
2023-05-22T22:44:36
97
0
0
1
Python
false
false
import os TG_API_ID = os.getenv("TG_API_ID") TG_API_HASH = os.getenv("TG_API_HASH") TG_TOKEN = os.getenv("TG_TOKEN") TG_AUTHORIZATION = os.getenv("TG_AUTHORIZATION") TG_CHANNEL = "@CubaDebateNews" TG_BOT = "@CubaDebateBot" TG_SESSION = "cubadebatenews"
UTF-8
Python
false
false
254
py
8
telegram.py
2
0.708661
0.708661
0
9
27.222222
48
jain7727/html
7,816,840,514,276
e85b91d30e7f7c4afb7585cd414579dcff666245
5849acd68ed0ba545c767663911ee0365cad42c2
/functional programming/fp1.py
6e6bcc68ee027579e3ca5f69910d6da6cdc26310
[]
no_license
https://github.com/jain7727/html
785e6731634732e63fc4d76d52524f8707d53bb6
c056d6023e9fc05b8cea1afbc941bb35a63efcf5
refs/heads/master
2023-04-30T21:39:22.710943
2021-05-20T08:26:24
2021-05-20T08:26:24
369,136,223
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # f=lambda x,y:x+y # # print(f(20,29)) # # f=lambda x,y:x-y # # print(f(20,29)) # # f=lambda x,y:x*y # # print(f(20,29)) # # f=lambda x,y:x/y # # print(f(20,29)) # # # #map(fn,iterable) # #filter(fn,iterable) # # lst=[21,22,23,24,25,26,27,28,29] # # # def sq(num): # # return num*num # # # # # # s=list(map(sq,lst)...
UTF-8
Python
false
false
2,243
py
77
fp1.py
77
0.497102
0.453856
0
151
13.728477
65
ultimatecoder/mobilenetworks-4gLTE-tools
2,765,958,951,641
67efa40249c5f12e774af467daf79ffb757ecf56
c05fa51e7516e546ddb492d35279542f8fde0bb0
/whois/fetcher.py~
01e76e4677a711ed924b287d0c7b9be5ed4d5d5e
[ "Apache-2.0" ]
permissive
https://github.com/ultimatecoder/mobilenetworks-4gLTE-tools
512e5d53f5eefc32db68a77cb31e1b0c6de6aaf5
98c10bbc29ecc6dba31694162b9c1d66063fdd54
refs/heads/master
2021-05-15T05:13:28.241331
2018-01-18T12:49:29
2018-01-18T12:49:29
117,959,213
0
0
null
true
2018-01-18T09:09:51
2018-01-18T09:09:49
2018-01-18T08:46:21
2018-01-16T12:29:58
14
0
0
0
null
false
null
from urllib import error, request import json URL = "https://ep.api.getfastah.com/whereis/json/{}" def fetch_details(ip, token): url = URL.format(ip) headers = {'Fastah-Key': token} req = request.Request(url, headers=headers) response = None try: with request.urlopen(req) as connection...
UTF-8
Python
false
false
1,238
4
fetcher.py~
3
0.584814
0.577544
0
44
27.136364
65
weivis/My-Website
11,716,670,809,345
5f2b897b7dc4c4ad6bbae6966af19493c75970fb
cfa8464383fd4bf0ac3542bb01056a66a46d223b
/Api/app/upload/views.py
5660c6d37008a868b3a37d712f92a75b93d9953b
[]
no_license
https://github.com/weivis/My-Website
7f6a4078a87ed58f348addc4279032a986167f04
839cb0118673e130f6409beebcd5383c6a974f6d
refs/heads/master
2023-01-23T11:23:31.724974
2020-10-10T09:24:28
2020-10-10T09:24:28
249,821,040
2
2
null
false
2023-01-05T17:08:43
2020-03-24T21:23:01
2021-10-03T11:18:35
2023-01-05T17:08:43
23,275
1
1
28
Python
false
false
import hashlib import os import random from datetime import datetime # from io import * from app.Kit import GetRequestFormData, GetRequestJsonData from app.ReturnCode import ReturnCode from app.Extensions import db from app.Config import SERVER_GULAOBURL # 关于 UPLOAD_KEY和UPLOAD_KEY_FLOAD的用法 UPLOAD_KEY = ['head','artic...
UTF-8
Python
false
false
3,301
py
109
views.py
62
0.613198
0.600784
0
112
26.330357
115
LeeJeongHwi/Study
3,178,275,842,506
7d5debdcc865eb3c2fe60a7902f9c1841900eb50
19d218b0bca9e0d893f34239fe3e97aa5a3116d9
/Algorithm/수학/11653-소인수분해.py
a337bc9ccb0ec8b63aacd5405e6c4290b4396096
[]
no_license
https://github.com/LeeJeongHwi/Study
9fc26003f4db11e064f2f695208bd0e3c3d343ac
012389a533fe371946fa2c2c178c5e0b87abae83
refs/heads/master
2020-10-01T18:04:04.889660
2020-09-06T15:09:36
2020-09-06T15:09:36
227,592,922
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import stdin n = int(stdin.readline()) if n==1: pass else: while True: if n==1: break for i in range(2,n+1): if n%i == 0: n//=i print(i) break
UTF-8
Python
false
false
176
py
292
11653-소인수분해.py
280
0.551136
0.522727
0
13
12.538462
25
wshon/MicroPython
10,754,598,116,841
76830e5d7559ea382f5bb406e5f65c9460542833
42347c193b46e5f5c743c036ffa311db05873de9
/keyboard/main.py
3a7a1d7c0edf27b2a6f596516b3bd198d9f4c532
[]
no_license
https://github.com/wshon/MicroPython
a859407d820a8eec5323a4dd07bc03318dfaa72a
8e9d13bb3b6be9b20f551b71826ae8cc893f1580
refs/heads/master
2022-12-24T18:19:38.058442
2020-09-28T00:20:40
2020-09-28T00:20:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import _thread import micropython import pyb micropython.alloc_emergency_exception_buf(100) SEND_SIZE = 33 # report is 33 bytes long RECV_SIZE = 64 # ROW = ['B4', 'B5', 'B6', 'B7', 'B8', 'C14'] # COL = ['B12', 'B13', 'B14', 'B15', 'A8', 'A9', 'A10', 'A15', 'B9', 'B1', 'B0', 'B2', 'A7', 'C15', 'A1', 'A2'] # C14->B...
UTF-8
Python
false
false
5,230
py
2
main.py
2
0.498662
0.459656
0
142
35.830986
120
AbeIka/add-ratebase-rule-deny-ip
12,326,556,185,695
4ed424c95a3a63df8de6da95451a6341b883a571
7d0a05dce673d25b6d8c9cfd16f3dfcfd3416300
/add-ratebase-rule-deny-ip.py
ca58776145da361358d241471a1c68bfed3d7d8a
[]
no_license
https://github.com/AbeIka/add-ratebase-rule-deny-ip
a261fc61f1baddbdb88ed049977a82fbafb39a9c
e338137d65b588fabfca6338c79eb4d1863346bd
refs/heads/main
2023-06-17T00:26:06.291861
2021-07-09T08:42:33
2021-07-09T08:42:33
384,339,917
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import boto3 import os def lambda_handler(event, context): client = boto3.client('wafv2') try: # Get IP addresses blocked by rate-based rules responseAddips = client.get_rate_based_statement_managed_keys( Scope=os.environ['WEBACL_SCOPE'], WebACLName=os.environ['WEBACL_N...
UTF-8
Python
false
false
2,950
py
2
add-ratebase-rule-deny-ip.py
1
0.585085
0.582712
0
82
34.987805
112
jneeven/paraloop
10,591,389,354,485
82baf7574c294b8084abd0989d11136e69fb01a6
c2bbd3772172d0013fe2aeb3df48e7b6cf5c30ba
/paraloop/paraloop.py
3a9e07544fc91a70bcab5e85fd261da2b9aedaa8
[ "MIT" ]
permissive
https://github.com/jneeven/paraloop
49232ef0965bdee8ecfe70c33f2697246ca634a3
61fbaa608cd20b4345c46f3458199f3b77689d8f
refs/heads/main
2023-05-04T04:02:20.399884
2021-04-05T16:56:29
2021-04-05T16:56:29
350,011,313
7
0
MIT
false
2021-05-24T16:31:54
2021-03-21T13:45:56
2021-04-08T13:22:02
2021-05-24T16:31:10
44
5
0
1
Python
false
false
import inspect import itertools from multiprocessing import Process, Queue from typing import Callable, Dict, Iterable, Optional, Sequence import paraloop.worker as worker from paraloop.syntax import LoopFinder, LoopTransformer from paraloop.variable import Variable class ParaLoop: """Wraps an iterable and execu...
UTF-8
Python
false
false
3,847
py
12
paraloop.py
9
0.610606
0.609306
0
103
36.349515
86
jellewie/GCode-Camera-move
18,442,589,594,207
a7e8225e7ba40a2651bccc037897e78b24fb5829
cd78bf0e968906b398ac51858948da39b9931e2d
/CameraScript.py
af6fdb2b4b5a5cc619681c98940729444f291488
[]
no_license
https://github.com/jellewie/GCode-Camera-move
01195531dff241ae32837f49c117bfb1dade2c7c
ec3bf6d839aa96b313911076f65ef9ec6ddf3735
refs/heads/master
2020-06-13T17:40:53.001394
2020-05-21T11:37:21
2020-05-21T11:37:21
194,736,209
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Feedrate = 6000 ##mm/min speed FeedrateSlow = 300 ##mm/min speed to move slowly PosX = 10 ##X pos to go to when pausing PosY = 235 ##Y pos to go to when pausing Zhop = 1 ##Amount to Zhop Retract = 8 ##Distance to retract PosSlowY = 10 ##Amount to slowly move of the PosY to pres the button EndCharacter = ";...
UTF-8
Python
false
false
2,844
py
4
CameraScript.py
2
0.648031
0.635021
0
49
57.061224
121
wayneabarquez/benevola
15,693,810,533,885
4bb6eba257a4ac2d14bc4278dc87f43d69d5eac9
4d7faef2b751c3bcdecff06dd55e6167bbbfbd45
/app/crematorium/models.py
9220567937d6a5863bf4df7ecda15889ba4420eb
[]
no_license
https://github.com/wayneabarquez/benevola
4c189f21baf5ffea59185e552b9ec2cf5ec6fbcb
1f7384918e2c986eef0116cec43e402d0048db78
refs/heads/master
2020-04-06T05:06:16.943454
2016-12-05T03:10:11
2016-12-05T03:10:11
52,737,100
0
0
null
false
2016-08-26T14:27:57
2016-02-28T18:44:27
2016-02-28T18:46:59
2016-08-26T14:27:57
2,928
0
0
0
JavaScript
null
null
from app import db from app.models import BaseModel from app.home.models import Deceased class FuneralHomes(BaseModel): name = db.Column(db.String, nullable=False) address = db.Column(db.Text) class Crematorium(BaseModel): deceased_id = db.Column(db.Integer, db.ForeignKey('deceased.id'), inde...
UTF-8
Python
false
false
840
py
163
models.py
120
0.714286
0.714286
0
20
40
114
robin3773/Codeforces-Problem-Solution-in-Python-3
12,816,182,434,014
0b0514589481218472ef8d80fc827f4452894040
ee1e6c0c2234387b9040527206a01b4b60587c48
/Type A/1234A - Equalize Prices Again.py
74c82fbcba240ae6440efb3f04d894cfcff395b2
[]
no_license
https://github.com/robin3773/Codeforces-Problem-Solution-in-Python-3
2d8e7cdf11e4823c1a8fe64dad9af53211132d5f
9bb5e6cdf64fe0cf6628c40fd64324b70acc0cb9
refs/heads/master
2022-11-29T19:19:04.550904
2020-08-05T14:44:03
2020-08-05T14:44:03
276,883,825
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
test_case = int(input()) for _ in range(test_case): n = int(input()) price = list(map(int, input().split())) print(abs(-sum(price)//n)) # print(sum(price) // n if sum(price) % n == 0 else (sum(price) // n) + 1)
UTF-8
Python
false
false
235
py
150
1234A - Equalize Prices Again.py
149
0.531915
0.523404
0
7
31.571429
78
Ming-blue/mindspore
9,268,539,448,721
3a42d049f83c21a4d47951dbf2c6cc299425a030
91015480741ec59dda36712d71e7e6f0704bc516
/mindspore/explainer/_image_classification_runner.py
c3121006f8f6f73facfd01ca093503ab6e8d2d42
[ "Apache-2.0", "Libpng", "LGPL-3.0-only", "AGPL-3.0-only", "MPL-1.1", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-mit-nagy", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-python-cwi", "LGPL-2.1-only", "OpenSSL", "LicenseRef-scanco...
permissive
https://github.com/Ming-blue/mindspore
b5dfa6af7876b00163ccfa2e18512678026c232b
9ec8bc233c76c9903a2f7be5dfc134992e4bf757
refs/heads/master
2023-06-23T23:35:38.143983
2021-07-14T07:36:40
2021-07-14T07:36:40
286,421,966
1
0
Apache-2.0
true
2020-08-10T08:41:45
2020-08-10T08:41:45
2020-08-10T08:07:09
2020-08-10T08:07:05
147,900
0
0
0
null
false
false
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
UTF-8
Python
false
false
47,661
py
884
_image_classification_runner.py
717
0.590315
0.586266
0
1,072
43.459888
119
luque/better-ways-of-thinking-about-software
4,561,255,283,727
e8fd13fd2111a2abc5f3883adbd23cd601def681
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/oauth_dispatch/tests/factories.py
473bcd4ced9d97d8e0dbfb079b7904cd33102af1
[ "AGPL-3.0-only", "AGPL-3.0-or-later", "MIT" ]
permissive
https://github.com/luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
false
2021-11-22T12:12:31
2019-01-02T14:21:30
2019-01-02T14:40:26
2021-11-22T12:12:30
6,548
0
2
0
JavaScript
false
false
# pylint: disable=missing-docstring from datetime import datetime, timedelta import factory import pytz from factory.django import DjangoModelFactory from factory.fuzzy import FuzzyText from oauth2_provider.models import AccessToken, Application, RefreshToken from openedx.core.djangoapps.oauth_dispatch.models impor...
UTF-8
Python
false
false
1,383
py
5,713
factories.py
4,192
0.742589
0.737527
0
50
26.66
75
pythonthings/lettersmith_py
4,088,808,897,748
1f59e302ade24b334bacb305f414478a4fe81218
71a2d4ba51049fbc21c203eab200d6c1313b201d
/lettersmith/query.py
088d1c3506c66dce6c6fe8e752d973c824321ca5
[ "MIT" ]
permissive
https://github.com/pythonthings/lettersmith_py
abf5b6260d4331b8189e3c0bd729b2f08f6d4109
96ddaf1268ac53062b2e7b1d05d06dc092865666
refs/heads/master
2023-09-05T05:22:57.500981
2021-10-01T21:37:09
2021-10-01T21:37:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Tools for querying data structures. Kind of a lightweight LINQ. """ from itertools import islice from random import sample def filters(predicate): """ Keep items if they pass predicate function test. """ def filter_bound(iterable): """ Filter iterable with bound predicate function....
UTF-8
Python
false
false
2,133
py
50
query.py
40
0.564463
0.563057
0
98
20.77551
67
Mirannam/while_for
7,181,185,319,791
bf595c97ed9d421591bd9f335ac61f1b65cb533a
c556468d20a207e86fb04f1deafad6073d3e6167
/task2.py
fb28c57ebb88b901a82f6bc3d53824be7bed7927
[]
no_license
https://github.com/Mirannam/while_for
1e924b1e7acbb326008e4aa9d0577f991002f288
335cce3ff5711a9c403c67932cc67c2eccd7ab7f
refs/heads/main
2023-07-21T03:54:51.714759
2021-09-10T09:03:11
2021-09-10T09:03:11
405,019,157
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lang1 = 'php' languages = ['go', 'java', 'php', 'python', 'javascript', 'ruby'] for lang in languages: print(lang) if lang == lang1: break
UTF-8
Python
false
false
143
py
9
task2.py
9
0.622378
0.608392
0
6
22.833333
65
Codemachine1/personal
19,164,144,079,082
0ae8d40f63aff8a21f7927bea908efdd283c3e4c
575d144cd6b129cd6954b20b1838f64ce3969976
/python applications/schedule generator/schedualgenerator.py
80c946381085965d48f68c39780c4f5f81c40e14
[]
no_license
https://github.com/Codemachine1/personal
60bd6f9bf5045b1e84cddcfcc2b1eafc7eb65425
ca9a228b7c166000a37fc7c314de50752259cac6
refs/heads/master
2019-07-15T08:14:59.847779
2019-05-02T17:15:48
2019-05-02T17:15:48
33,884,211
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random from tkMessageBox import * cars=[] locos=[] trains=[] class Car(object): def __init__(self,number,type,roadname,lading,condition,destination,currentlocation): self.number=number self.type=type self.roadname=roadname self.ladi...
UTF-8
Python
false
false
29,968
py
19
schedualgenerator.py
9
0.537407
0.533669
0
812
35.905172
274
alexkimwoo/tcp_socket_server
10,170,482,573,942
14916b231949ab0909317c877ed63e927d2632a9
f3f01e336b78e7386cedcce44b51dd6694fcc495
/socket_server.py
a98518c170cb9debc2b80d9128c0ab916a4354d5
[]
no_license
https://github.com/alexkimwoo/tcp_socket_server
8e03a3d5f14533c3a30b0d751b4515f2c80ad704
8f4bf9814212dfe51f307ca9ca6aa5cc4bacaa4c
refs/heads/master
2016-09-12T21:19:37.218937
2016-05-18T14:04:41
2016-05-18T14:04:41
59,041,572
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#======================================================================================================================= """SOCKET SERVER V0.1""" __author__ = "alexkimwoo" __copyright__ = "Copyright 2016, Alex Kim Woo" """ CALL PROGRAM EXAMPLE #============================================================...
UTF-8
Python
false
false
5,870
py
3
socket_server.py
2
0.346678
0.339353
0
145
38.455172
212
JohnTitor00/intermediate-Python-DanBader
12,025,908,468,657
9caadffb73621c61d7832ff2e9aeab5f176308fc
e3b3799df1959e47638ae64d844b28db2c83165f
/for_each_loops_with_enumerate_and_range.py
44959240d04f9f51bbb2d74f634e74052a1e01e3
[]
no_license
https://github.com/JohnTitor00/intermediate-Python-DanBader
6130c109dc1bf4b8b1b6ce8341089897713bd82a
b1c04783f56bfad472435e5a3b8b209f65f527fd
refs/heads/master
2021-01-24T12:23:30.427775
2018-03-06T13:03:25
2018-03-06T13:03:25
123,134,220
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Common way C style, Java Style my_items = ['a', 'b', 'c'] i =0 while i< len(my_items) print(my_items[i]) i += 1 #--------------------------------------- for i in range(len(my_items)): print(my_items[i]) for item in my_items: print(item) for i, item in enumerate(my_items): print(i, item) fo...
UTF-8
Python
false
false
406
py
23
for_each_loops_with_enumerate_and_range.py
22
0.504926
0.5
0
23
15.652174
40
Gaosj/HIN
249,108,127,317
27c08dbd2212fce0e0d276ea7a3cbfd92a65d33b
739ac0bb30af95a5218fe9e053bbc07162183420
/src/HERec_spl.py
5460d09eca5763d697dc8fef216df0050021c1b5
[]
no_license
https://github.com/Gaosj/HIN
1ae5711de3f3959be6e423794bb25cd6cab9a805
1c6301b2ce1e74eb06d3ea193c9c6ba135aa31a7
refs/heads/master
2020-04-16T13:21:50.883281
2019-01-24T08:29:57
2019-01-24T08:29:57
165,623,599
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # encoding=utf-8 from math import sqrt, fabs import numpy as np from src.data_process import input_gen from src.data_process import get_metapaths from src.metapath2vec import Metapath2vec from src.deepwalk import Deepwalk class HNERec: def __init__(self, unum, inum, ratedim, userdim, itemdim, ...
UTF-8
Python
false
false
12,684
py
7
HERec_spl.py
6
0.4885
0.473139
0
321
36.925234
133
diogodanielsoaresferreira/SecureMessagingRepository
7,413,113,573,465
4c35d63b0d340cf897678576c236a2f53b8d82be
e8f3499caed2fd0b714a51a34907519d8ffb07c5
/client/publicKeyCache.py
3cb07d9d581ab76bd2eb2656db2e4048db21959e
[]
no_license
https://github.com/diogodanielsoaresferreira/SecureMessagingRepository
071dbecf5be57105af2c60124a85acd704659463
61fa9738fd11b29e8cd60bcd8de5a533863a591d
refs/heads/master
2020-03-28T10:43:36.531826
2018-09-10T11:36:18
2018-09-10T11:36:18
148,138,517
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# # # Diogo Daniel Soares Ferreira N 76504 # Luis Davide Jesus Leira N 76514 # # Security Messaging Repository System 2017-2018 # # Cache for public keys for clients # Implemented with LRU policy # # Public key must be stored in string format MAX_LENGTH_PUBLIC_KEY_CACHE = 32 class PublicKeyCache: def __init__(self):...
UTF-8
Python
false
false
1,292
py
14
publicKeyCache.py
13
0.702012
0.684985
0
49
25.367347
85
mruiz42/cjk-trainer
6,244,882,484,703
d4e8353e43b2f9887ae66a4d4b7c501a8c32fe71
24ab3cd080e091f911ae0f079f8f5dd24e2b3223
/src/driverUi/callImportCsvDialog.py
e6870f525aa8242a4333dc33277754dcfcb8d00a
[ "MIT" ]
permissive
https://github.com/mruiz42/cjk-trainer
9f4d3494c0fe43c2866554c4b07ba9b51fa265d6
b565c40185d7184515be335d848a653cc7f86b51
refs/heads/master
2021-12-28T11:33:15.535423
2021-12-15T12:28:39
2021-12-15T12:28:39
168,592,616
3
0
null
false
2019-04-04T02:51:59
2019-01-31T20:36:53
2019-04-03T10:39:24
2019-04-04T02:51:59
28,432
0
0
0
Python
false
false
from src.setupUi.ImportCsvDialog import * from src.utilities.CsvTools import importDialogHelper from src.utilities.SqlTools import * from PyQt5 import QtWidgets class ImportCSVDialog(QtWidgets. QDialog): def __init__(self, mainWindow, parent=None): super(ImportCSVDialog, self).__init__(parent) self...
UTF-8
Python
false
false
3,937
py
37
callImportCsvDialog.py
27
0.667513
0.666751
0
77
50.12987
139
lilykissme/try_1024
2,448,131,378,400
8cf0a47c98d6d11506ce76aa0259880031f65880
67241ef5d08650c2db9b50eb9e9666d4d489ac96
/test_python/backup_ver1_2.py
ea6d99ddf518e92c9fad958e5415a54261c2a405
[]
no_license
https://github.com/lilykissme/try_1024
6a9f964f88a78f47f5619c653934fe5aa70bc7dc
9599d5cedb52ad96b6a0c1f085c101ddff400381
refs/heads/master
2016-09-14T20:36:33.092844
2016-04-15T05:09:30
2016-04-15T05:09:30
56,291,443
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding: UTF-8 -*- #!/usr/bin/python import os import time #优化版本2.0 #1.需要备份的文件地址url,必须包含在列表中! source=['C:\\hoho\\Jekyll-Pithy-master\\images'] #2.备份文件必须保存在主备份页下 target_dir='C:\\hoho\\backup\\' #3.备份文件以zip格式保存 #4.文件名是当前时间加上注释,存放在当前日期的目录下 now=time.strftime('%H%M%S') today=target_dir+time.strftime('%Y%m%d') #在用...
UTF-8
Python
false
false
1,430
py
27
backup_ver1_2.py
26
0.70334
0.693517
0
44
22.136364
75
JongKyuHong/learn_python
11,519,102,290,300
78d9051eb1e886a3867d608197c07d4abcf4b0f9
e4964dbee8cf3c54814688ede60197ba13050836
/알고리즘/20210201/큰수의 법칙.py
95e0104acbfe18ade2734d324250cc1543565dde
[]
no_license
https://github.com/JongKyuHong/learn_python
ec8813283b67fbe1c39d8b295dc6795cb27415ed
d89f3f8590e33a31d32b734c8f645e9807a8328f
refs/heads/master
2023-05-13T01:07:03.358444
2021-06-03T12:56:07
2021-06-03T12:56:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n,m,k = map(int,input().split()) array = list(map(int,input().split())) array.sort() first = array[n-1] second = array[n-2] sum = 0 while True: for i in range(k): if m == 0: break sum += first m -= 1 if m == 0: break sum += second m -= 1 print(sum)
UTF-8
Python
false
false
308
py
237
큰수의 법칙.py
208
0.487013
0.464286
0
17
17.176471
38
TTOFFLINE-LEAK/ttoffline
4,294,967,317,469
b308fc891c85842ea05eba07c593b9d2e16fdc21
8e69eee9b474587925e22413717eb82e4b024360
/v1.0.0.test/toontown/avatar/ToontownAvatarUtils.py
6f275d5cddeec0cd91a71ca3ca636227bf691208
[ "MIT" ]
permissive
https://github.com/TTOFFLINE-LEAK/ttoffline
afaef613c36dc3b70514ccee7030ba73c3b5045b
bb0e91704a755d34983e94288d50288e46b68380
refs/heads/master
2020-06-12T15:41:59.411795
2020-04-17T08:22:55
2020-04-17T08:22:55
194,348,185
5
4
null
null
null
null
null
null
null
null
null
null
null
null
null
from panda3d.core import CollisionTube, CollisionNode from libotp.nametag.NametagGroup import * from toontown.pets import Pet from toontown.suit import SuitDNA, Suit from toontown.toon import NPCToons, Toon, ToonDNA from toontown.toonbase import TTLocalizer from toontown.toonbase import ToontownGlobals def createToon(...
UTF-8
Python
false
false
4,925
py
717
ToontownAvatarUtils.py
715
0.663147
0.647919
0
125
38.408
344
SND96/twine-stories
2,894,808,002,918
bc50720391c5086c771adf0306351dc663960b73
7ba7a992293ccf405d604010cc5c8a2b6ec660e1
/parser.py
121339065cebb5bda922ba1a4de5447330763a77
[]
no_license
https://github.com/SND96/twine-stories
ceaf31ab37eb12ffe5d61350004e406d5e8ebdb8
7f5d60f45bafc95dfff7874ac4ba042b5c3e6ff2
refs/heads/master
2021-01-23T04:39:40.686501
2017-08-29T15:15:04
2017-08-29T15:15:04
92,935,553
4
1
null
false
2017-08-24T10:43:51
2017-05-31T10:38:24
2017-07-18T13:04:42
2017-08-24T10:43:51
10,334
0
0
0
Python
null
null
def make_file(node): with open('AROWF-recently.txt', 'r') as f: num_line = 0 fname ="Start" #Variables used to signal the start of the parsing start = 0 begin = 0 #Storing the options and the next node next_node = [""]*3 ccline = [""]*3 node = ":: "+node+"\n" ...
UTF-8
Python
false
false
1,711
py
113
parser.py
48
0.406195
0.391584
0
65
25.246154
56
HugoPelletier/redis-training
8,624,294,335,124
c869f9c4a2a5a8129c305a60c83bfee926e7384f
c6862ce38474732e18bb1a407e9312a2a60fafbf
/sorting/sorting.py
4f8fabd20dfb9cf99ede1af72ee75ba48ed0adc6
[]
no_license
https://github.com/HugoPelletier/redis-training
bbd815a1226d67a48af09b35b6c5b66799dbeee5
10526ac99812489b6dfd430ba5a548ea78642bd8
refs/heads/master
2021-08-29T04:57:58.109906
2017-12-13T13:02:29
2017-12-13T13:02:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import redis def main(): r = redis.client.StrictRedis(db=0) r.flushdb() r.sadd('products', 'product:12345678') r.sadd('products', 'product:22287343') r.sadd('products', 'product:3333849') r.hmset('product:12345678', { 'title': 'This is the title of product 12345678', 'regula...
UTF-8
Python
false
false
895
py
6
sorting.py
5
0.541899
0.427933
0
38
22.578947
62
pzivich/Presentations
3,865,470,569,007
9f1fa7b423d37ec8aee8ef3c52637509d473eebf
e03bda20ecdc11224b4c6a2aa2614aeb32281aaf
/BIRS-2022/code/didactic_example.py
9f740909a6a20c1b2c204c54cf8c89fdcdc147ae
[ "CC-BY-4.0" ]
permissive
https://github.com/pzivich/Presentations
01ea9b7dacbe3bedea54447d7950ba446f324cc0
d149f6ac71ef09deffa11a8395b2b1a9403f9530
refs/heads/master
2023-06-26T13:03:43.411511
2023-06-16T21:57:02
2023-06-16T21:57:02
344,915,434
5
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from delicatessen import MEstimator from delicatessen.estimating_equations import ee_logistic_regression from delicatessen.utilities import inverse_logit from dgm import generate_data_1, generate_x, generate_data, generate_data_2, generate_data_3 ...
UTF-8
Python
false
false
6,138
py
24
didactic_example.py
14
0.586999
0.527045
0
206
28.796117
101
round5/round5.github.io
9,723,805,994,619
add112d927aecfc9d498f3911fe2e173b8233b15
16a804b88ce5e8623d967693ce27c636fab04758
/Supporting_Documentation/Scripts/Parameters/main/summarize.py
51af32b90ddff085234a53911bc51afe42947b09
[]
no_license
https://github.com/round5/round5.github.io
b6a9b47e997e52223c6486a48a119a0c22388119
5e511b50bbf2727858b827f77ae045d61a690269
refs/heads/master
2021-07-25T01:31:59.705180
2020-04-10T18:21:31
2020-04-10T18:21:31
141,458,867
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from __future__ import division import sys import os import argparse # Path hack. import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) sys.path.insert(0,currentdir + "/parameter_definitions") from chosen_parameter_sets import getParameterS...
UTF-8
Python
false
false
742
py
35
summarize.py
13
0.48248
0.477089
0
22
32.727273
132
eikei54/practice_scripts
8,426,725,853,547
8667727162b0159086b0e8a77d7ddf8f347c3258
732224935ea72bf1b0773c512dee15907de7dda0
/99_wd_work/invert_bin.py
09ff1e817936c17edc7fca8b589e9598eb481413
[]
no_license
https://github.com/eikei54/practice_scripts
c6bfe50fa53ef5e6dd85c0e120b0cdc74ac5cd4c
261d939efc4cd5b0bc60cb20931f826cba787f3e
refs/heads/master
2021-07-24T17:14:45.442429
2020-04-19T09:38:21
2020-04-19T09:38:21
150,737,909
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
with open("ccb7_rid_77.bin", "rb") as binary_file: # Read the whole file at once data = binary_file.read() print(~data)
UTF-8
Python
false
false
131
py
39
invert_bin.py
22
0.633588
0.610687
0
4
32
50
wwh51/python_snippet
18,184,891,565,447
3da5ad06907d38c8e94fe39b5ed9cd31f4e04368
2973f4df93fac606f2e368d5de9a44d19653d92a
/webcam.py
af8d939a18cdcfffe8c678774e543da16bce9115
[]
no_license
https://github.com/wwh51/python_snippet
fce31899a887fd9cebd57a31f00a4907a32c2a6d
0e7354c769e19c39b13e1809d539b912273180a6
refs/heads/master
2021-01-17T07:26:09.586088
2016-06-01T07:46:00
2016-06-01T07:46:00
15,489,443
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import cv2.cv as cv import time import datetime import winsound from PIL import Image, ImageDraw, ImageFont # Camera 0 is the integrated web cam on my netbook camera_port = 0 #Number of frames to throw away while the camera adjusts to light levels, just when it start ramp_frames = 20 # Now we can initi...
UTF-8
Python
false
false
2,125
py
9
webcam.py
8
0.668235
0.648
0
69
29.797101
92
jeezs/tredly
4,174,708,256,022
202b65ac4a6fd2e1a717125849c176dba1364a7f
b3ad1f46a8f071f680ffa06d7d4ba98df9bcf08d
/components/tredly-libs/python-common/objects/tredly/resolvconffile.py
6fd2b43d14d72ac9ec4ff124643c1ccefb9e1f5d
[ "MIT" ]
permissive
https://github.com/jeezs/tredly
3c77998bbee1ca7447b0f4746c41a224f3d87301
eaf53e7274dd294bfdf93ea02fb934fdf340c50e
refs/heads/master
2017-12-18T17:23:10.164693
2016-08-18T05:27:17
2016-08-18T05:27:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# A class to represent an Unbound File import os.path import re class ResolvConfFile: # Constructor def __init__(self, filePath = '/etc/resolv.conf', search = [], servers = []): self.filePath = filePath self.search = search self.nameservers = servers # Action: reads resolv.conf...
UTF-8
Python
false
false
3,121
py
116
resolvconffile.py
99
0.50817
0.506568
0
90
33.633333
83
ponson/DL_Book
2,963,527,455,069
5773798aeac46e83a201a6288bd132f4b194fd9c
85d83cac21585e70ee7414bc52444965e7ebfe2f
/src/05_11_tf_serving_client.py
47daea14e7493a9cf125920dd4cc09832ce956b4
[]
no_license
https://github.com/ponson/DL_Book
fddb1048483227d746b1d29fd71cb0fabf47200f
70572583658d3f0362d27330a56b9589ad9d9281
refs/heads/main
2023-08-17T17:44:44.589620
2021-10-20T01:56:02
2021-10-20T01:56:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import numpy as np import requests from skimage import io from skimage.transform import resize uploaded_file='./myDigits/4.png' image1 = io.imread(uploaded_file, as_gray=True) # 縮小圖形為(28, 28) image_resized = resize(image1, (28, 28), anti_aliasing=True) # 插入第一維,代表筆數 X1 = image_resized.reshape...
UTF-8
Python
false
false
848
py
145
05_11_tf_serving_client.py
15
0.671392
0.635309
0
29
24.758621
69
jaskonzhou/aliex
13,881,334,335,888
bff61906eeba6e102e2593fa49629ca01fc47ff8
ea37859cfe97f71865a2312efbfc659f1801978e
/ajk_es/ajk_es/settings.py
be920b49459fb88fb3b211d0b0f408ed8c7120cf
[]
no_license
https://github.com/jaskonzhou/aliex
f10a4ef6a7900e60ba83e738b351cf676452ccaa
db0b3ebc3a3b02a113c7ef848c5bfd68daab215b
refs/heads/master
2020-04-14T02:31:29.813750
2018-12-30T12:58:06
2018-12-30T12:58:06
163,584,085
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for ajk_es project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/...
UTF-8
Python
false
false
5,929
py
49
settings.py
29
0.676853
0.514435
0
164
35.115854
126
rhondamak/course-2018-spr-proj
18,537,078,864,418
e61f0cae95c5c86ff2186f07134f194754ae1599
e9833af3cc5dd04a711277141b4450c180452b69
/aoconno8_dmak1112_ferrys/getClosestMBTAStops.py
8c2b29c45e389074275655a834a2524ebfb5cdd1
[]
no_license
https://github.com/rhondamak/course-2018-spr-proj
8bb182a0865eaa4b0f78439dbb7b8e4244cb7117
c7a43805695bc7529119734a629e13c0266fe0e8
refs/heads/master
2021-05-02T07:23:51.934229
2018-07-23T13:49:09
2018-07-23T13:49:09
120,826,584
0
0
null
true
2018-07-23T13:49:10
2018-02-08T22:36:57
2018-05-04T02:26:33
2018-07-23T13:49:09
251,696
0
0
0
HTML
false
null
import urllib.request import json import dml import prov.model import datetime import uuid from tqdm import tqdm import rtree import shapely.geometry import numpy as np class getClosestMBTAStops(dml.Algorithm): ''' Returns the closest x mbta stops ''' contributor = 'aoconno8_dmak1112_ferrys' r...
UTF-8
Python
false
false
7,521
py
153
getClosestMBTAStops.py
102
0.606568
0.5833
0
159
46.295597
208
614674490/cloud_robotics_win10
11,690,900,996,189
dbb57fffd274e57fefd39648deedcd3cac47d7b5
ea96cef0945cfe18fb5596748c0b9009d72b95d2
/tfenvs/tftest.py
a274e2c09c70eff95e0364e8387e28291d720a21
[]
no_license
https://github.com/614674490/cloud_robotics_win10
04fb0f473af6d24270e94615782b3409896ba8eb
f9d3e27005d9f757f57de08cb46a60b7dab619d5
refs/heads/main
2023-06-29T12:16:26.756606
2021-07-22T04:48:56
2021-07-22T04:48:56
388,008,476
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as if message = tf.constant('Welcome to the exciting world of Deep Neural Networks!') #执行计算图 with tf.Session() as sess: print(sess.run(message).decode())
UTF-8
Python
false
false
186
py
61
tftest.py
20
0.744318
0.744318
0
5
34.2
79