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
bachya/py17track
11,501,922,444,998
a3e7328aaf33b01ad0dc2c15cc6ffc579c2b49ad
7fe4bc96f8c19a6d1e1d47513ff200a862ccd26b
/py17track/profile.py
b117dcd37e5fc8deac1c1476de7d2edc9879ecd2
[ "MIT" ]
permissive
https://github.com/bachya/py17track
c150978fd0a98ffebc3a198dc34e1293f816d10b
b31246c81f87de052d138313c206446a18b53782
refs/heads/dev
2022-07-11T19:30:02.168527
2022-07-01T01:43:19
2022-07-01T01:43:19
133,867,522
32
12
MIT
false
2022-07-01T01:43:20
2018-05-17T20:55:14
2022-04-02T18:45:06
2022-07-01T01:43:20
131
20
4
0
Python
false
false
"""Define interaction with a user profile.""" import json import logging from typing import Callable, Coroutine, List, Optional, Union from .errors import InvalidTrackingNumberError, RequestError from .package import PACKAGE_STATUS_MAP, Package _LOGGER: logging.Logger = logging.getLogger(__name__) API_URL_BUYER: str...
UTF-8
Python
false
false
5,871
py
24
profile.py
9
0.514393
0.509283
0
172
33.133721
89
mahfudza/change-account-ip
9,998,683,873,121
e2750e6af9b4f143b1195fabc49c8a865288e488
419fa8483f06f171e304a610f942473f08f000bb
/make_dict.py
bbbf217a52dcba9c4f97eba61897877b534ee89a
[]
no_license
https://github.com/mahfudza/change-account-ip
4413a20b3a0fffe26dc76d5217478f9d6e833b6d
87faf5a19d54c16e3159882c61c28d9079c51144
refs/heads/master
2020-09-03T12:06:04.170066
2019-11-04T09:01:02
2019-11-04T09:01:02
218,936,130
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import subprocess import os print("Please input user-domain file:") rawdata=input() print("Please input record type eg A, NS, MX") record_type=input() f=open(rawdata,"r") user_domain=f.read().splitlines() uniq_user=subprocess.check_output("cat "+rawdata+"| awk -F' ' '{print $1}' | sort | uniq", shell=True).decode("ut...
UTF-8
Python
false
false
3,176
py
1
make_dict.py
1
0.588476
0.391373
0
91
33.868132
166
elvirion/AMC
1,589,137,908,172
613d1c9f676d2fdb7faf4d3ca2084e42a4e5ad54
10c6cdfea30308f4d73643f05bcb9291de1eb690
/config.py
511140ddd04b510f154da20a221dfbdcea130489
[]
no_license
https://github.com/elvirion/AMC
7a3264de9e9544f19e10eae651de611efc8790e8
db2846e2cfec247b4c1ac15b41342c6f7c61dec7
HEAD
2019-06-28T22:21:15.602766
2017-01-23T08:51:45
2017-01-23T08:51:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import fractions import logging import os import random from logging import handlers basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SQLALCHEMY_ECHO = False CSRF_ENABLED = True DEBUG = False TESTING = False LOGGING_LEVEL = 'INFO' BASEDIR = basedir BCRYPT_ROUNDS ...
UTF-8
Python
false
false
2,600
py
50
config.py
40
0.601923
0.589615
0
86
29.232558
76
asterinwl/2021-K-Digital-Training_selfstudy
15,109,694,961,310
dc8901e71ae8f9093ba64cf01bd72439c220b615
97c4d3d0509897c8a3591cd340dc2b77c4eeba77
/5.20/05_For/for_ex1.py
300185b16c8417c5047d5700fa8fb6185c852315
[]
no_license
https://github.com/asterinwl/2021-K-Digital-Training_selfstudy
a056f3e7fa92c6b51914171d5171f05fd13fd9ec
cd9c136ddba5df4be6ae2ceb447ee6bb8d5d53bc
refs/heads/master
2023-08-29T02:18:13.234499
2021-10-09T15:21:55
2021-10-09T15:21:55
373,746,421
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#1에서 100까지의 합 구하기 total=0 for i in range(101) : total=total+i print(total) #print의 커서를 앞으로 쭉 당겨야 한다. 당기지 않는 경우 모든 경우 나온다.
UTF-8
Python
false
false
219
py
199
for_ex1.py
130
0.585034
0.530612
0
5
27
73
cmsplt/PLTOffline
3,461,743,651,129
35daee48a5b26aa94895de08eb12b229a6da2098
a246840aff57f864b89fc1e845802dc248215241
/scripts/plotOccupancy.py
57d54811caf278333109ed4976688585b56c3f95
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
https://github.com/cmsplt/PLTOffline
197e174f8221399aa5931c69ce3a46c7e79ee19b
160e4976ab854cc255bde06f0ce014fbc224c23d
refs/heads/master
2023-08-08T04:40:37.817282
2023-08-01T15:03:13
2023-08-01T15:03:13
13,862,531
2
25
null
false
2023-08-17T07:22:06
2013-10-25T14:14:08
2022-08-03T14:45:16
2023-08-17T07:22:05
125,930
5
16
0
C++
false
false
#!/usr/bin/env python3 # pip install uproot # [https://github.com/scikit-hep/uproot4] import os, sys, re, uproot, pandas, matplotlib.pyplot def testFile(filePath='histo_occupancy.root'): if not os.path.isfile(filePath): os.system(f'wget https://adelannoy.com/CMS/PLT/tmp/Fill4984-Slink20160603.153652/histo...
UTF-8
Python
false
false
1,882
py
1,054
plotOccupancy.py
127
0.650372
0.624336
0
40
46.05
152
mkiterian/nouns-pubsub
6,760,278,573,335
d78d934a7f126daddd15e80f148aae6b22efc822
70f292381b1686df39ba8d1d7f8b033485f676ad
/app.py
a27ecce08cd23e059b0255e977f8cc0ba676bb1f
[]
no_license
https://github.com/mkiterian/nouns-pubsub
a4ae7f90024e1d87ae41837b6a9275e592bc654c
0e800ce58cc1ba28777111dd95d309f6da59a775
refs/heads/master
2022-12-13T21:15:23.476749
2019-11-24T22:58:24
2019-11-24T22:58:24
224,189,252
0
0
null
false
2022-12-08T06:58:59
2019-11-26T12:38:28
2019-11-26T12:38:59
2022-12-08T06:58:59
5
0
0
2
Python
false
false
import json from kafka import KafkaProducer from get_nouns import get_all_icons, get_icon_groups if __name__ == '__main__': items = ['fish', 'dog', 'cat', 'bird'] icons = get_all_icons(items) if icons: producer = KafkaProducer(bootstrap_servers='localhost:9092') grouped_icons = get_icon_gr...
UTF-8
Python
false
false
715
py
2
app.py
2
0.574825
0.566434
0
19
35.736842
71
perryyo/compose
8,624,294,338,869
01d21ddcd8f7cabf90732d41ecb28434766fd420
decb5b3e2568c777dc9c8dd919d61f72235f7cde
/compose/__init__.py
cedb7cf040d26467c13a775514678ff742181510
[ "Apache-2.0" ]
permissive
https://github.com/perryyo/compose
b9e7b053b292f84e6c1322307c7ce8239796f72e
0907f5d2b29c197482eb78a7f1fa4bf4f3af2f60
refs/heads/master
2020-04-08T01:54:29.949820
2019-02-11T07:13:55
2019-02-11T07:13:55
158,913,474
0
0
Apache-2.0
true
2018-11-24T07:37:18
2018-11-24T07:37:18
2017-08-31T13:26:19
2017-08-31T07:18:12
9,628
0
0
0
null
false
null
from __future__ import absolute_import from __future__ import unicode_literals __version__ = '1.16.0-dev'
UTF-8
Python
false
false
107
py
6
__init__.py
5
0.700935
0.663551
0
4
25.75
39
ykmc/contest
14,293,651,172,511
c58313c772eb4e0ec7de4fcb1969b1e748513c6a
b2472967910be9c12576f0f97d33bca0576a8667
/atcoder-old/2018/0325_abc092/b.py
9eee718f131578cddf387f7cfbdacc8c95304d5b
[]
no_license
https://github.com/ykmc/contest
85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4
69a73da70f7f987eb3e85da503ea6da0744544bd
refs/heads/master
2020-09-01T22:56:10.444803
2020-07-14T11:36:43
2020-07-14T11:36:43
217,307,953
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Python3 (3.4.3) import sys input = sys.stdin.readline # ------------------------------------------------------------- # function # ------------------------------------------------------------- # ------------------------------------------------------------- # main # -------------------------------------------------...
UTF-8
Python
false
false
507
py
892
b.py
264
0.299803
0.289941
0
22
22.090909
63
bwenke1/bootcamp_utils
11,596,411,743,459
3c5ae6014bd244c01d4702dcd7fe2156f5d7cd59
40867e1b36808c68e8c06f14bb2d72ded0e6dd6c
/plot_example.py
0465ff340fe391abfd7612d4158a6a93e533586f
[]
no_license
https://github.com/bwenke1/bootcamp_utils
2363075db245c5a30ebf6b7ad3abf70d082b3a0a
b98819ba0939f24ba1f21594dc00d3ed27cc0502
refs/heads/master
2021-01-21T22:01:30.018810
2017-06-22T20:02:39
2017-06-22T20:02:39
95,146,241
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import scipy as sp import matplotlib.pyplot as plt #Load data xa_high = np.loadtxt('data/xa_high_food.csv', comments='#') xa_low = np.loadtxt('data/xa_low_food.csv', comments='#') #Define ECDF function def ecdf(data): x = np.sort(data) y = np.arange(1, len(data)+1) / len(data) return x,...
UTF-8
Python
false
false
830
py
3
plot_example.py
3
0.6731
0.648975
0
35
22.685714
80
DerrickOdhiambo/Personal-Blog
4,131,758,555,030
d76750e04e9c6a3db4bdc0f929e8ae293f5a6cd6
3067d6fbabcb4d50fde9608d0241ee28c7cae4b2
/blog/request.py
74e4726439beee63108af04bf119a1e15f45a711
[ "MIT" ]
permissive
https://github.com/DerrickOdhiambo/Personal-Blog
d39b9c9073b7f136e6a88307cda4bcc7787eed1f
5470e07125669c6f45301acdc30f3f74dc9ed742
refs/heads/master
2022-12-23T05:42:21.815004
2020-09-30T14:29:57
2020-09-30T14:29:57
298,553,521
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib.request, json from .models import Quotes base_url = None def configure_request(app): global base_url base_url = app.config['QUOTES_API_BASE_URL'] def get_quotes(): count=0 quotes=[] while count!=4: with urllib.request.urlopen(base_url) as url: get_quotes_data = url.read() get...
UTF-8
Python
false
false
614
py
18
request.py
12
0.684039
0.679153
0
26
22.576923
55
Symorph/coder-ability
4,518,305,629,989
74c3f3a0afb486f77240b5b7334bed8636673fbf
227ee8c929c494a42df1a12a68f8346258b4111c
/taskd/taskd/config.py
43bb60e9fc43704494e379360338b0f3b3041c6a
[]
no_license
https://github.com/Symorph/coder-ability
13e5b08ed015b23250bb73a042094cabe4bd205c
26c6c23641dec1315fa3ec6c57ceb0b697bc43d1
refs/heads/master
2016-08-03T18:10:16.601920
2015-02-27T04:59:04
2015-02-27T04:59:04
30,775,641
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Configuration for worker daemon """ import logging import os import sys import yaml from taskd import TASKD_HOME _config = None # singleton instance logger = logging.getLogger() DEFAULT_CONFIG_PATH = os.path.join(TASKD_HOME, "conf", "config.yml") def _load(filename): global _config try: logger....
UTF-8
Python
false
false
759
py
75
config.py
42
0.631094
0.627141
0
34
21.294118
68
Menturan/aoc2018
19,636,590,486,602
bb5f36b5d8ed45fddc9fccbafa018350083eda52
8c48e579770d811c2b6303c31226ad4f1a2f8520
/dec_03.py
eccbae2d2a673018364abb7f1f6980a24d10023c
[]
no_license
https://github.com/Menturan/aoc2018
ffdf8f1598aea060cc0d5dc1151b543fb90aab54
cb22319774503359526975e009f875fcbf570b20
refs/heads/master
2020-04-09T03:05:29.380903
2018-12-05T21:23:04
2018-12-05T21:23:04
159,968,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from puzzle_util.christmas_tree import tree from puzzle_util.read_file import read_file_to_list_of_strings from puzzle_util.test import test def convert_to_dict_and_calculate(claim: str) -> dict: # #1 @ 1,3: 4x4 splitted = claim.split(' ') # [#1, @, 1,3:, 4x4] xy = splitted[2].replace(':', '').split(',')...
UTF-8
Python
false
false
2,099
py
9
dec_03.py
9
0.532635
0.491663
0
66
30.80303
97
iSaran/robamine
18,674,517,818,710
cc589a14185a794210680b0b831be93274dd156b
8b0fd40319279992b25d851d99d488d58bc03e4a
/robamine/utils/cv_tools.py
52bf82203556dd4c9d5422f2a48633c94d375816
[]
no_license
https://github.com/iSaran/robamine
b61998bded85ac2722becd3334c888a83a4d0c49
d9649b7451a14ce18156e0addfb5f1b6b4032af8
refs/heads/master
2023-05-30T11:05:37.585351
2020-02-27T16:38:28
2020-02-27T16:38:28
178,202,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import numpy as np import cv2 import open3d import math ''' Computer Vision Utils ============ ''' def depth_to_point_cloud(depth, camera_intrinsics): """ Converts a depth map to a point cloud( :param depth: depth image :param camera_intrinsics: focal length and center point ...
UTF-8
Python
false
false
9,645
py
124
cv_tools.py
64
0.554069
0.516641
0
315
29.619048
119
RagnarGothur/bamazon
8,899,172,282,854
2b23269358db41eb52b7ea5072f3e42ae64410c8
9ecb5182ed9044e0714107fe1c1a7e43a4fb5520
/core/urls.py
7a34eddedea365b861015856074450c5c16547c4
[]
no_license
https://github.com/RagnarGothur/bamazon
daaa49346e3ac7fa882c185f22947faae12cb250
9bfc7762b8a68426cb024e2777fbc0a0f66288a8
refs/heads/master
2022-10-09T21:09:03.470877
2019-06-27T18:35:13
2019-06-27T18:35:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import include, path from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ path('', views.Main.as_view(), name='main'), path('books/', views.Books.as_view(), name='books'), path('books/<int:book_id>', views.ShowBook.as_view(), na...
UTF-8
Python
false
false
550
py
11
urls.py
4
0.689091
0.689091
0
15
35.666667
84
todie42/linux_env_setup
4,380,866,669,287
416747faa789f6844f069775334cdc28a1a2fa57
97a01ed80d890472e24eb0ecce32d500dcad3231
/LinuxSA/support/generate_base64_encode.py
31f8cde897cee461be5609364340f030589c965e
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/todie42/linux_env_setup
e92112ae628f0031d4ed04e71204f6c9182ab113
536c01aa6e191438c41f2fa8c15c4adf6f9eaec0
refs/heads/master
2021-12-11T03:03:11.524629
2021-12-08T21:07:23
2021-12-08T21:07:23
151,981,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Copyright 2018 Battelle Energy Alliance, LLC import subprocess import getpass import argparse import sys import re import textwrap from argparse import RawTextHelpFormatter import os import base64 ### Arguments #####################################################################...
UTF-8
Python
false
false
1,486
py
125
generate_base64_encode.py
24
0.608345
0.591521
0
50
27.6
132
balarsen/pymc_learning
2,877,628,124,209
2bdd6ac007d49c851ff997912528dce56b0c54d4
1767600b696c05964b650bf4947b39f888524e08
/Learning/LatentDirichletAllocation.py
8201e39330738c4dd31e94c87b451fcdcaf7bb19
[]
no_license
https://github.com/balarsen/pymc_learning
4864a23836f834834e3a104c7a183f737eff5460
24add9e0bf7e938d01a403d020770c6bdf01822c
refs/heads/master
2022-05-13T04:50:00.765940
2022-05-02T20:51:55
2022-05-02T20:51:55
54,926,619
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# http://stats.stackexchange.com/questions/104771/latent-dirichlet-allocation-in-pymc # import spacepy.plot as spp # for the styles import numpy as np import pymc as pm K = 2 # number of topics V = 4 # number of words D = 3 # number of documents data = np.array([[1, 1, 1, 1], [1, 1, 1, 1], [0, 0, 0, 0]]) alpha = np....
UTF-8
Python
false
false
1,337
py
145
LatentDirichletAllocation.py
10
0.554974
0.535527
0
38
34.184211
123
ndb1995/comp805
13,580,686,604,136
580073e7136e5ed76fbf01d365745be277e7ff23
099aab7f5cb42975b7fbcf111c9f21dd9198052f
/labs/week4/test_lab4.py
4dba8c593dd77eeb8bed77819afb9ad8816b44f7
[]
no_license
https://github.com/ndb1995/comp805
8e41f1493a09528934ccfe6b004dbd1bae248106
90541b41f80722cd07aa4e16141b5214c8457b7a
refs/heads/master
2021-05-09T20:15:36.448229
2018-03-20T21:30:48
2018-03-20T21:30:48
118,682,466
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" print("\nFirst Function: Switch Case\n") print (lab3.switch_case(['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana'])) print("\nSecond Function: Only Even\n") print (lab3.only_even(['orange', 5, 'pear', 2, 'kiwi', 7, '10'])) print("\nThird Function: Greatest Difference\n") print (lab3.greatest_differ...
UTF-8
Python
false
false
1,781
py
22
test_lab4.py
14
0.639528
0.559236
0
53
32.603774
97
sauleddy/HomePortal
6,777,458,398,609
50e2bb1e6fc5b93297aea9118817b87016c12f10
53bfd08966578e9321fd22e0eaf957fed4566f66
/resource_help/ResHelp/ResHelpBase.py
8a19eb3ee96786f0cc27966faf68a4195bbffa6d
[ "MIT" ]
permissive
https://github.com/sauleddy/HomePortal
f1cd638de1f0c5074717e97b05c8cb496370f627
5fff01024da7d0f1ed2990edea0de2ac1d3f07ab
refs/heads/master
2021-03-16T05:27:57.799266
2017-06-02T00:32:27
2017-06-02T00:32:27
91,551,883
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ' this is a base class for ResHelp ' import logging from abc import ABCMeta, abstractmethod __author__ = 'Ed Hsu' class ResHelpBase(metaclass=ABCMeta): @abstractmethod def __init__(self, image_help, storage_help): self.myImageHelp = image_help ...
UTF-8
Python
false
false
577
py
86
ResHelpBase.py
82
0.641248
0.637782
0
28
19.607143
66
EmmaK0822/Python
18,957,985,663,637
64ad7b7a41ac9b62a022407d27d94e5c37be6d8d
d6e5159aed7d665ef98c9e6b7caaf2d12942b8b2
/PyPoll/main.py
c2352a36eb0253a05b4f876f2e359ec936af7b21
[ "MIT" ]
permissive
https://github.com/EmmaK0822/Python
bb33e01728fb280f979116c9a4c133f40858cf04
10865a96319b0dd685b00eb8c810cde68dfbdaef
refs/heads/master
2020-03-15T19:21:12.527808
2018-07-23T01:46:50
2018-07-23T01:46:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv filepath1 = '.\\raw_data\\election_data_1.csv' filepath2 = '.\\raw_data\\election_data_2.csv' ID = [] Candidate = [] with open(filepath1, 'r', encoding = 'utf-8', newline = '') as data1: #print(data1) csvreader1 = csv.DictReader(data1) for row in csvreader1: ID.append(row['Voter ID']) ...
UTF-8
Python
false
false
2,564
py
8
main.py
6
0.582293
0.524961
0
93
26.569892
87
neardws/fog-computing-based-collision-warning-system
4,861,903,013,061
4ca79c61d96b21e9140f9dfa9efd194f5fe899d0
11376deaca40b881de1ad04bf92160a22e57d6b2
/train_hmm/training_by_hmmlearn_with_mp.py
3071e8948ac9c2632b49c28b91d3159e56e9c113
[]
no_license
https://github.com/neardws/fog-computing-based-collision-warning-system
dd591186ddc5e713b60f500c98b6931f2e5104b3
d878e664763382f173b3b38bcdbfde82ba9bfa8f
refs/heads/master
2022-11-05T17:21:44.838776
2022-10-21T00:29:55
2022-10-21T00:29:55
185,387,044
8
2
null
null
null
null
null
null
null
null
null
null
null
null
null
'''' 多进程 ''''' from hmmlearn import hmm import numpy as np import multiprocessing as mp import linecache import pickle TRAIN_DATA = r'E:\NearXu\hmm_train_data\train_' MODEL_PATH = r'E:\NearXu\model\model_' """ hmmlearn 有三种隐马尔可夫模型: GaussianHMM:观测状态是连续状态,且符合高斯分布 GMMHMM:观测状态是连续状态,且符合混合高斯分布 MultinomialHMM:观...
UTF-8
Python
false
false
2,405
py
44
training_by_hmmlearn_with_mp.py
37
0.559101
0.546067
0
81
25.493827
118
xxxxHolic/sklearn_comment
1,649,267,446,591
940fd19d9df8e1ca271e601ab28e5df47aaedd09
da82804a4e408a23b899de416551a49cf865197b
/Linear_Model_base/sklearn_utils_validation__shape_repr.py
9c452ed026a6ded6861f147145d1557cca4abdb9
[]
no_license
https://github.com/xxxxHolic/sklearn_comment
7de5ba8c5f143ba13ef97e2c58f126bc0da606d5
405daa7242c83ea8ba996a77368f480167aa7299
refs/heads/master
2020-04-04T14:01:18.298280
2018-11-03T13:14:29
2018-11-03T13:14:29
155,983,881
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 19 21:12:03 2018 @author: USER """ """ scikit-learn/sklearn/utils/validation.py Utilities for input validation """ # validation.py 用于输入数据的验证以及不同系统和py2,py3版本的兼容性 # 函数 _shape_repr # 用于 report data shape 时,打印信息时不会因为平台和版本的问题打印 # 出错误的信息,‘long’type 会有后缀 L,自己定义打印信...
UTF-8
Python
false
false
2,553
py
23
sklearn_utils_validation__shape_repr.py
22
0.512899
0.487101
0
76
28.092105
79
MARCELNAKA/Python-Is-Easy
13,649,406,094,564
c64c4680e147b6aca8a96734bb8709ae12be8b0c
25d094e5cbf45069f3f1198fb353a7de17ccf34f
/class_3_if.py
4cf87457b0fd0c3420801e3fb4045d529169f862
[]
no_license
https://github.com/MARCELNAKA/Python-Is-Easy
8ce3aac2f58a4bab2307b14de92c9097b2fc0fda
7866c068c9a5ca3b56a9bdf0a2d1ced76fe46c69
refs/heads/master
2020-04-22T07:29:56.736353
2019-03-28T01:32:01
2019-03-28T01:32:01
170,218,339
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#homework a = "5" b = 6 c = 9 x = int(a) y = int(b) z = int(c) result= False def check(x,y,z): if x==y and x==z: result = True elif x==y and y==z: result = True else: result = False print (result)
UTF-8
Python
false
false
267
py
6
class_3_if.py
6
0.438202
0.426966
0
21
10.714286
23
SNHajar765/PSO_FYP
1,537,598,341,020
2af15c633feee78e9396b0351742116d34deada8
4ead4802b26107c4780bf375c813cf48ed1421dc
/run/tabs/tab_1_PSO.py
a7c38ede512b95ec1ad343961e236760fd749fa5
[]
no_license
https://github.com/SNHajar765/PSO_FYP
344e60063e52d48c55e8549b729aec1c55ab7fb5
db0d0839961508968f5f41ff25314acc70776ee4
refs/heads/master
2020-08-26T16:45:02.870210
2019-10-26T14:22:24
2019-10-26T14:22:24
217,077,807
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import dash_bootstrap_components as dbc import pandas as pd import random import numpy as np from oct2py import Oct2Py from oct2py import octave octave.addpath("C:/Users/QA/Deskto...
UTF-8
Python
false
false
6,396
py
4
tab_1_PSO.py
3
0.520169
0.512977
0
158
38.455696
153
leesohyeon/Python_ac
19,439,022,008,777
e0a97fdff1573b119b4035da1e5e812c19b0c48a
53888075a5fae164872e82f841751f291cba6c4a
/1112/exceptex/ExceptTest02.py
c8bbf9ae56651f7e0c8493a40f6019fd4c5a37fa
[]
no_license
https://github.com/leesohyeon/Python_ac
e27e9bf394dbf41c0815120d9e6601bc7e45c6b6
1f71f6a21c958b7d82d0fb8019c385100b4370c8
refs/heads/master
2020-05-02T04:59:46.384439
2019-03-26T10:09:57
2019-03-26T10:09:57
177,758,112
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 문제 ) 반복문을 통해 numbers의 리스트요소를 3으로 나눠보자 이때 0이라는 요소를 3으로 나누려 하면, 에러가 발생할 것이다. try-except를 통해 예외처리를 해보자! ''' numbers=[0.2,2.5,0,10] for i in numbers: try: print(3/i) except ZeroDivisionError: print("연산할 수 없음")
UTF-8
Python
false
false
383
py
118
ExceptTest02.py
111
0.563707
0.521236
0
14
17.571429
44
adrian13579/cool-compiler-2021
17,102,559,774,961
b19ac7d2fc21be73bcf7689c1ebbb791a4343592
45d4349b4af21869693849b25a35b7d385ac6114
/src/compiler/visitors/semantics/tools/type.py
5d82509ddb5a3077bf15d88e0c262c37a5ab3f77
[ "MIT" ]
permissive
https://github.com/adrian13579/cool-compiler-2021
07bb7190f41f51e5c2441872a0d0fc345be0e786
2ccf55b3eb8c0a60abc70938257634c70a1d87d4
refs/heads/master
2023-02-28T16:13:14.512175
2022-03-14T02:41:43
2022-03-14T02:41:43
340,008,534
0
1
MIT
true
2021-03-01T02:00:10
2021-02-18T10:07:14
2021-02-28T08:52:13
2021-03-01T02:00:10
2,145
0
1
0
Cool
false
false
from visitors.semantics.tools.errors import * from typing import List, Set, Tuple from collections import OrderedDict class Attribute: def __init__(self, name, typex): self.name = name self.type = typex def __str__(self): return f"[attrib] {self.name} : {self.type.name};" def __r...
UTF-8
Python
false
false
19,719
py
93
type.py
29
0.549014
0.544247
0
647
29.477589
152
daira/zcash
16,990,890,626,966
bed75de4e0f8e430e4cb5c887236653b86acd425
f99fd592f3e69444138d9277632ccf34a1ffc36d
/qa/rpc-tests/mergetoaddress_ua_sapling.py
1a67b59fb52ef7a75a046e1bea3c73c50936b5e1
[ "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
https://github.com/daira/zcash
a3c95a78b17e1710cae25044f016b195ed890ce6
26ea365f512417625cd081e2483b68c05a8676ee
refs/heads/master
2023-06-23T02:58:44.050086
2023-05-26T13:48:37
2023-05-26T13:48:37
55,192,531
0
0
MIT
true
2020-10-23T15:34:26
2016-04-01T00:38:45
2016-04-01T00:38:49
2020-10-23T15:34:25
70,453
0
0
0
C++
false
false
#!/usr/bin/env python3 # Copyright (c) 2023 The Zcash developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . from test_framework.test_framework import BitcoinTestFramework from test_framework.util import NU5_BRANCH_ID, nupar...
UTF-8
Python
false
false
1,035
py
235
mergetoaddress_ua_sapling.py
151
0.713043
0.700483
0
31
32.387097
71
valeriy-d/simple_task_tracker
11,304,353,960,303
bfc00fd6c79f457a30e476cc8525bc695623a9e2
863cd9af926718ad8c76463de8347a17e62a17f1
/apps/main/views.py
e0d5c92457109c63e4c894070cfd22464cc3dcfa
[]
no_license
https://github.com/valeriy-d/simple_task_tracker
285a733ea43f8099f24af46a87ed37e0abc2931b
a2dd9052081b11e70d2610b9ac73c0e2f0db4213
refs/heads/master
2021-06-21T06:32:39.995461
2018-05-26T17:01:15
2018-05-26T17:01:15
134,955,411
0
0
null
false
2021-06-10T20:27:11
2018-05-26T11:25:25
2019-09-17T08:54:07
2021-06-10T20:27:11
15
0
0
4
Python
false
false
from django.db.models import F from django.views.generic import View from django.shortcuts import get_object_or_404 from apps.utils import success_response from apps.utils import json_required from apps.utils import validate_fields from .models import TaskModel from .models import DescriptionModel # Список алиасов д...
UTF-8
Python
false
false
3,722
py
10
views.py
7
0.589649
0.587387
0
106
32.358491
118
eigen-boi/py_code
1,589,137,939,076
b26d66398905706044b17faa331fd2881c0d2e3a
0f3457588cad5b6b03dcb3f59258b83f783e89aa
/tagger_settings.py
bf89613326c59943c8ddc979f97a0e4adf358260
[]
no_license
https://github.com/eigen-boi/py_code
fa03caf4b027b6cd1d55d1f382018f4285d9d1f6
47852ce6e0605ea4ca830b1f5e3ca03b51ee4e9f
refs/heads/master
2022-12-03T04:32:05.775972
2020-08-28T18:41:08
2020-08-28T18:41:08
284,128,519
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# tagger_settings.py # define global variables root_dir = "" ev_dir = "" data_dir = "" data_file_arr = [] new_data_file_arr = [] mc_file_arr = [] identifier = "" bi_z_min = 1400.0 # [mm] # float bi_r_min = 2000.0 # [mm] # float bi_r_max = 6000.0 # [mm] # float bi_nhit_...
UTF-8
Python
false
false
732
py
9
tagger_settings.py
8
0.546448
0.474044
0
29
24.275862
76
dbzahariev/Python-and-Django
11,931,419,162,225
4551e3975d2d226a2bdd1e6fb033e49039755270
e292ea10855a50c8098ede4da1fd4d0896323e8c
/Python-Basic/lec_2_Simple_Operations_And_Calculations/08_Celsius_To_Fahrenheit.py
433c34440735253a1909fdeb72e71468aac6cb81
[]
no_license
https://github.com/dbzahariev/Python-and-Django
f794212a21158d524bd1a7d9d5411cd58ba65f3e
ba15758db3ee0726a7e5c80c96c2b106206ae66a
refs/heads/master
2020-05-18T18:44:35.030202
2019-05-25T13:24:35
2019-05-25T13:24:35
184,572,887
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
c = float(input()) f = float(c * 1.8 + 32) print(float("{0:.2f}".format(f)))
UTF-8
Python
false
false
77
py
113
08_Celsius_To_Fahrenheit.py
109
0.545455
0.467532
0
3
24.666667
33
SPKUMAR65/webscraping
3,616,362,484,920
3beb7eaf9967d1b814dc264f2fcc904fa5bf374f
d574670f72c79a0222b3a5ee66f7336d03a2562d
/new.py
f71a53a8288967705f92b9abef9352877724e989
[]
no_license
https://github.com/SPKUMAR65/webscraping
b00fd97c5e17631e63847ec2141d95dee00724f3
4f22cd6060afd7eabc7acf5007f670fedb818179
refs/heads/master
2021-04-13T01:53:27.933976
2020-03-22T06:44:22
2020-03-22T06:44:22
249,126,532
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup as soup from urllib.request import urlopen as uReq my_url = 'https://www.flipkart.com/search?q=iphone&otracker=search&otracker1=search&marketplace=FLIPKART&as-show=on&as=off' uClient = uReq(my_url) page_html = uClient.read() uClient.close() page_soup = soup(page_html, "html.parser"...
UTF-8
Python
false
false
1,693
py
5
new.py
5
0.643406
0.629213
0
56
28.125
123
chriscauley/intro_to_programming
14,216,341,793,251
907377cf79bfe44babec450d85ee7f701c74ae62
d96b05d37e331ae79294c631a295d8f125cdd702
/room3.py
f9e544f06218e4b3e3cda0e4186443f2fa91f77b
[]
no_license
https://github.com/chriscauley/intro_to_programming
1bf205cf9ea8821251c03e100cbf7032fcb38452
fcca0eab59c530eac3fb3d6139f6be4be91445e0
refs/heads/master
2016-09-06T01:58:22.889555
2013-06-06T00:10:45
2013-06-06T00:10:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def number_input(question): """ Just like raw_input, but forces a number and returns an integer """ while True: input = raw_input(question) if input.isdigit(): break else: print "Invalid input. Please enter a number." return int(input) length = number_input("...
UTF-8
Python
false
false
1,073
py
13
room3.py
10
0.621622
0.608574
0
39
26.512821
84
gibo-neurips-2021/GIBO
3,934,190,084,710
633176a559f2922980215f49cff86f25ca4beb7d
82c855bf18a67d9ac2dee8f5599d3a7bccbd1e31
/gym-lqr/gym_lqr/envs/__init__.py
9c5ad46d2711efc3e32306bf2ec79d468221bbbd
[]
no_license
https://github.com/gibo-neurips-2021/GIBO
fe414ae69c3cfab843e12585471c35d990c07d21
f5603a77cbcec26422ef5131261ddc7d48e0d127
refs/heads/main
2023-04-30T01:06:01.954125
2021-05-28T13:12:18
2021-05-28T13:12:18
369,857,789
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from gym_lqr.envs.lqr_env import LQR_Env
UTF-8
Python
false
false
41
py
42
__init__.py
16
0.780488
0.780488
0
1
40
40
AmrAymanKhalil505/CodeForces
4,836,133,207,694
c4601fbabe8dfbd1163f8d542d0353a5689e91ba
ca104f22975c8b157603690c6f5295471042a1d9
/Python/A675InfiniteSequence.py
f4e3cb50c4480eb46a1e1031d5a3a74bb0ad8a28
[]
no_license
https://github.com/AmrAymanKhalil505/CodeForces
73acca3912a7ffa9fe667b5147817621d48003a8
1c4cccde82801a84c64601223999398adb7da03f
refs/heads/master
2021-06-05T12:00:16.638321
2021-05-14T15:08:09
2021-05-14T15:08:09
153,451,550
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math line = input().split(sep=" ") start = int(line[0]) fav = int(line[1]) inc= int(line[2]) if(fav == start): print("YES") elif( inc == 0 ): print("NO") else: bool = (fav-start % inc)==0 x = math.ceil((fav-start) / inc) if(start + inc*x) == fav: if((start > fav and inc <0) or (start ...
UTF-8
Python
false
false
661
py
93
A675InfiniteSequence.py
93
0.472012
0.455371
0
32
19.625
66
levyvix/Python-random-files
7,859,790,156,487
dd87aa75e62ef1e6e193106120c38e7b49544256
5605b52cd24537aeaec9467e849efe89a9b7e2ce
/python projects/df3 (1).py
da3dca65c5310d0799d7306475e7f829683a386c
[ "MIT" ]
permissive
https://github.com/levyvix/Python-random-files
030d152688e67d6d5ea1503569e882a8b5e0fb8b
1a8601f006fcb2273b3b65e26a7663c87991e9b9
refs/heads/master
2020-03-27T21:02:33.299464
2018-09-02T19:55:37
2018-09-02T19:55:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n1=input('Numero1: ') n2=input('Numero2: ') soma=int(n1)+int(n2) print('A soma de',n1,'e',n2,'é',soma)
UTF-8
Python
false
false
105
py
24
df3 (1).py
23
0.615385
0.538462
0
5
19.8
37
kunal27071999/KunalAgrawal_week_1
13,408,887,918,191
ecf92d71835a6bb0fa4e979ec45f72856635cd04
1f8ddb3d390a24fc7e634c14da2015ee471572b6
/Week_1_conditional/Week_1_conditional_Q25.py
fd18b56d02bf7deff569c3bb1e347d67f11dff8f
[]
no_license
https://github.com/kunal27071999/KunalAgrawal_week_1
6464a3fb3b3acc4223fa981b28f236a123e23ada
4d7d3219ecfe8c42b06748705ffda0f36e471398
refs/heads/main
2023-05-02T11:25:53.954164
2021-05-21T17:36:28
2021-05-21T17:36:28
364,576,826
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""25. WAP to compyte the log of 2 by adding n terms in the series 1 - 1/2 + 1/3 - 1/4 + 1/5 -... 1/n where n is a positive number""" n = 10 for i in range(1,n): sum = sum + 1/i
UTF-8
Python
false
false
185
py
141
Week_1_conditional_Q25.py
139
0.572973
0.481081
0
6
29.666667
67
mooooondh/Programmers
10,703,058,527,829
3996af3e428edb8916e725f2f9150a449f93513c
194fca2f738235bf842da8b13dd1b1e9fc826967
/Graph_01/graph_01.py
ed8aeaf4173f2ed2dc9521ceb16e211c5a832631
[]
no_license
https://github.com/mooooondh/Programmers
ab9dba65186a7373d180e0613963a81a8201217c
c9b8049c3f027e27718d4234e0bca340a6354d79
refs/heads/master
2023-03-05T04:23:53.596495
2021-02-17T12:59:19
2021-02-17T12:59:19
304,018,225
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque def bfs(position, graph, distance): que= deque() que.append(position) while(que): now= que.popleft() for i in graph[now]: if(distance[i]== 0): que.append(i) distance[i]= distance[now]+ 1 return distance def sol...
UTF-8
Python
false
false
692
py
53
graph_01.py
38
0.524566
0.485549
0
31
21.354839
76
kamit13/python
15,092,515,081,411
db0be86e766913a1dbc540a9b6e1075db29b7adf
3d67c0d4c23ede3f0e9ca8f8bb18319714f3af7f
/importingDataWithPanda.py
47101db8ec76ac71dff4d95d8e27af58d7cd23d8
[]
no_license
https://github.com/kamit13/python
b3574016df1cde4e6f45ee26f44f9796cf2c2732
98bedb2720f8149f3ec20036b00c354f539f758f
refs/heads/master
2021-01-02T05:14:14.608098
2020-02-15T17:57:48
2020-02-15T17:57:48
239,503,952
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#importing the module of the pandas import pandas as pd #reading the india.csv into data frame df=pd.read_csv("/home/amit/Documents/india.csv") #print the firxt 5 rows of a data frame #print(df.head()) #getting the no of rows and columns in the csv file #print(df.shape) #printing the five rows #print(df.iloc[0:5,:])...
UTF-8
Python
false
false
562
py
37
importingDataWithPanda.py
37
0.715302
0.701068
0
19
28.578947
52
minrk/ipython-svn-archive
14,731,737,868,700
87ad8a662673961306ab1fe7765e171da0a2251b
92eec9d251e24f48fa42160e5061c5fb3120fdbb
/ipython/branches/sprint1/ipython1/core1/test/tcommon.py
5e777d844e9ebb69d20352d7b4151baf85400a69
[]
no_license
https://github.com/minrk/ipython-svn-archive
55dde54f52284c5c3b32ac2a12bb4734e5f8e7f8
9b32089282c94c706d819333a3a2388179e99e86
refs/heads/master
2022-12-24T19:50:01.359278
2020-09-25T09:34:04
2020-09-25T09:34:04
298,268,923
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Common utilities for testing IPython. This file is meant to be used as from tcommon import * by any test code. While a bit ugly, this helps us keep all testing facilities in one place, and start coding standalone test scripts easily, which can then be pasted into the larger test suites without any modifications ...
UTF-8
Python
false
false
3,274
py
473
tcommon.py
353
0.634392
0.63256
0
100
31.68
97
lhaoxuan/gems_server
5,669,356,844,235
a62953e46ce4c0fcd5aceb1a5c4a34cd9cea032d
2bda0c9af2a2f33d5569a39827681dac12850a59
/models/user_modified.py
5436a9822a7fb0508f386c0fb9e90bce8bc55011
[]
no_license
https://github.com/lhaoxuan/gems_server
f1a284fd3b1122b81f9bf04f5bb4b62101c2e13f
61991f369539c0a64e1b36b9ea771833ea4643c2
refs/heads/master
2020-06-04T07:00:27.871465
2016-02-17T06:48:07
2016-02-17T06:48:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding: utf-8 -*- import time from models import GameModel from common.exceptions import * class UserModified(GameModel): """ 1.处理需通知前端及时更新的数据 2.临时数据,例如保存进战场时的信息, 以便出战场时的结算 Attributs: guide_flags(dir): 根据value决定key功能的展示方式(0 正常显示, 1不提示但引导, 2提示且引导) aren...
UTF-8
Python
false
false
4,473
py
84
user_modified.py
51
0.507232
0.5038
0
133
29.601504
93
ivan-guerra/site_problems
9,955,734,240,079
b911507b35a4f8fc01b9cf6c491f40d8b007264c
087f657ab3a8e97bfc0bfc7dad344ea3235e6765
/hacker_rank/python/itertools/iter_4.py
dc6d3713030686af118b26146fbd38d380e5049b
[ "MIT" ]
permissive
https://github.com/ivan-guerra/site_problems
8b68d4fb94f236da107c34b919053683c34d8194
069c6d62f6d00c815a1c033953ec48cd3520fd61
refs/heads/master
2018-02-13T03:44:15.712715
2017-05-18T23:57:56
2017-05-18T23:57:56
64,614,183
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Itertools.combinations_with_replacement""" from itertools import combinations_with_replacement s, k = input().split() k = int(k) combos = list(combinations_with_replacement(sorted(s),k)) formatted_combos = [''.join(x) for x in combos] for x in formatted_combos: print(x)
UTF-8
Python
false
false
281
py
263
iter_4.py
263
0.72242
0.72242
0
11
24.545455
57
koliambus/mbu-ukraine
17,549,236,374,843
54653a5d5491e59819ca01db8ee6d0db7f481ae9
b9473fd5e8d5ed099b710c9241e6605da5ab3c64
/ragoogle/spiders/ternopil.py
9227f6c87f223e0138bf2651cdc5a113b17f13e1
[]
no_license
https://github.com/koliambus/mbu-ukraine
e4ae923e6b01f33bb48c4e2cf4a2d018e7cfc95e
dc6ddda6dc57d93feb2560440e607d3ef156f5e7
refs/heads/master
2023-08-28T16:43:06.212463
2019-10-24T21:20:25
2019-10-24T21:20:25
205,086,064
0
0
null
false
2023-08-11T19:49:30
2019-08-29T05:19:01
2019-10-25T09:06:33
2023-08-11T19:49:27
55
0
0
3
Python
false
false
# -*- coding: utf-8 -*- import scrapy import re from ragoogle.items.ternopil import MbuItem from ragoogle.loaders import StripJoinItemLoader class TernopilSpider(scrapy.Spider): location_name = "Тернопіль" name = "ternopil" allowed_domains = ["tmrada.gov.ua"] start_urls = ["https://tmrada.gov.ua/norm...
UTF-8
Python
false
false
2,210
py
28
ternopil.py
26
0.58451
0.570387
0
43
50.046512
149
Shirui816/MDAnalysisNumpy
3,169,685,909,655
ea53688c8bcd5fd5c738d8d0d8c6871ce0cbb066
a08a443bfe7ecc8ba5d9de416c41436413c9ac51
/DataStructure/DtypeDict.py
7d10e73170fb438e1c6df071a627212f2d41f4b9
[]
no_license
https://github.com/Shirui816/MDAnalysisNumpy
a4c613493b11efa48b7787cd315ab46df967df0e
d7a4a38d5b4e946f86d0a5545525a5bf2747dba1
refs/heads/master
2020-04-10T22:12:12.555894
2016-11-21T06:30:36
2016-11-21T06:30:36
56,371,026
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np Bond = {'names': ('name', 'id1', 'id2'), 'formats': ('S16', 'i8', 'i8')} Angle = {'names': ('name', 'id1', 'id2', 'id3'), 'formats': ('S16', 'i8', 'i8', 'i8')} Dihedral = {'names': ('name', 'id1', 'id2', 'id3', 'id4'), 'formats': ('S16', 'i8', 'i8', 'i8', 'i8')} Type = {'names': 'type', 'formats': 'S...
UTF-8
Python
false
false
537
py
30
DtypeDict.py
28
0.52514
0.467412
0
12
43.833333
102
skylightcyber/mythril-classic
25,769,844,699
3f1622ad40830bfcc1eef63496916896a9bff70e
ef6c7cb98026683afdf746fdc72df3f57dc22139
/mythril/laser/ethereum/plugins/__init__.py
8265e162d319771bac3188d4e530233d0033b153
[ "MIT" ]
permissive
https://github.com/skylightcyber/mythril-classic
67073e89b13c6b0c7edef6f75657a1ede2c0ce3e
8254bf1f5c336ab7ad37216fbec1333d7c11990f
refs/heads/develop
2020-05-07T22:07:43.075507
2019-04-10T17:53:40
2019-04-10T17:53:40
180,933,574
0
1
MIT
true
2019-04-12T05:01:41
2019-04-12T05:01:39
2019-04-12T01:12:41
2019-04-10T17:53:41
51,569
0
0
0
null
false
false
""" Laser plugins This module contains everything to do with laser plugins Laser plugins are a way of extending laser's functionality without complicating the core business logic. Different features that have been implemented in the form of plugins are: - benchmarking - path pruning Plugins also provide a way to imp...
UTF-8
Python
false
false
798
py
93
__init__.py
37
0.813283
0.813283
0
21
37
106
JamesPriest/AOC
13,357,348,296,653
a4f929f5044ab09cad70766ca0ace6da00a1b1c9
c4da0b2aa0e33d472b45ab17ab2391f660da4beb
/2018/13/mine_cart_madness.py
995853a26661af7266e838181dd6ee8fc47fc517
[]
no_license
https://github.com/JamesPriest/AOC
06e29cdd22036021b843af0a7c9e0e34fe5aabed
587a6b47625b264a5d0781414701b411c175f27b
refs/heads/master
2021-12-24T05:29:41.189552
2021-12-18T10:34:21
2021-12-18T10:34:21
160,487,811
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def parse_map(): # Thing about the representation of the cart in memory. pass class cart: def __init__(self): self.turn = "left" def get_intersection_turn(self): last_direction = self.turn turn_mapping = {"left":"straight", "straight":"right", "right":"left"} self.turn...
UTF-8
Python
false
false
377
py
42
mine_cart_madness.py
35
0.607427
0.607427
0
14
25.928571
78
AsiganTheSunk/python-torcurl
5,695,126,644,657
7e09f1eb565b2ccc35d9b16546817edda11616b5
9061cf35d300ba84113a9e86e897ee7594e14353
/torcurl/TorPyCurl.py
806edc602ddd664cbbe22bf3bb5c0ec5617cd996
[ "MIT" ]
permissive
https://github.com/AsiganTheSunk/python-torcurl
cd1b98b6e58c217e57463c345d058efadafc8a3f
9489a3b9b0e45bd0ff1f5279d8e4c8ed71a460f7
refs/heads/master
2021-01-01T19:45:27.984041
2017-09-06T18:06:19
2017-09-06T18:06:19
98,675,120
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import pycurl from cStringIO import StringIO from urllib import urlencode from bs4 import BeautifulSoup from fake_useragent import UserAgent from ProxyRotator import ProxyRotator from Response import Response # from torcurl2.listeners import ExitRelayListener as erl LOCAL_HOST = '127.0.0.1' ...
UTF-8
Python
false
false
10,653
py
10
TorPyCurl.py
8
0.584812
0.580588
0
332
31.090361
99
chakki-works/elephant_sense
10,067,403,361,266
7c230bcdb4d6d4227affccfb987f7b389eb57532
48005f304f085195cdb9215c824a904a76441c55
/scripts/data/make_data.py
4eddc0a811e6f058c0ae53dab99b43241ca331ef
[ "Apache-2.0" ]
permissive
https://github.com/chakki-works/elephant_sense
15f0eb288a7ed36eb0ccb4c29a5a8fc5d4a598f7
ba7c95e557d8b5a2bdce699fb473de3183a7ca6f
refs/heads/master
2021-01-23T01:13:10.708327
2018-12-10T03:55:29
2018-12-10T03:55:29
85,890,179
14
0
null
false
2017-04-07T01:04:08
2017-03-23T00:38:02
2017-03-23T00:56:06
2017-04-07T01:04:08
202
0
0
0
Jupyter Notebook
null
null
import csv import json import os import requests from bs4 import BeautifulSoup BASE_DIR = os.path.join(os.path.dirname(__file__), '../../data/') def list_labels(): labeled_file = os.path.join(BASE_DIR, 'raw/labeled_qiita_posts.csv') with open(labeled_file, newline='') as csvfile: reader = csv.reader(...
UTF-8
Python
false
false
1,696
py
36
make_data.py
22
0.564858
0.561321
0
56
29.303571
83
falkzach/CSCI595-Deep-Knowledge-Transfer
18,073,222,415,817
99e83be6a4cdbeb1bc8c0ebeaeabd4d82d358adb
5ec0b0d6d4d793e6b6548453c064f96d06807bff
/checkpoint.py
451cbafd306edc85b1731789f265700ef198bfb3
[]
no_license
https://github.com/falkzach/CSCI595-Deep-Knowledge-Transfer
54e14ab55e062d42ca32e450254c99db69d1b6c1
0cf99f4833cb16e8508f93370fb06541c2feb065
refs/heads/master
2021-01-19T04:13:14.979966
2017-05-10T15:34:57
2017-05-10T15:34:57
87,359,418
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import os def ensure_dir(path): if not os.path.exists(path): os.makedirs(path) class SaveCheckpoint: def __init__(self,): with tf.Session() as sess: self.saver = tf.train.Saver() def save_model(self, experiment): path = "sessions/" + experimen...
UTF-8
Python
false
false
1,317
py
11
checkpoint.py
10
0.592255
0.589977
0
41
31.121951
82
BadoinoMatteo/SISTEMI_E_RETI_quinta
2,482,491,124,695
702376864df8795f59688c742693e9c744091657
9577cc6c14f0a2150c8587f2667b164febf3e0f5
/cittografia/rsa.py
b05a5928374d7db678ae77c48a6814b36cd9349c
[]
no_license
https://github.com/BadoinoMatteo/SISTEMI_E_RETI_quinta
913bb38eb30cd755046bbe8c91dad3386d75aec5
4753a4c04f47af588e21117f55ab79c9d70734b3
refs/heads/main
2023-03-11T14:45:04.146211
2021-03-05T07:25:46
2021-03-05T07:25:46
306,089,828
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random def main(): p=int(input("inserisci un numero intero primo")) q=int(input("inserisci un numero intero primo")) n=p*q m=mcm(p, q) print(m) c=trovaC(m) print(c) d=trovaD(c,m) print(d) num=int(input("inserisci numero da criptare")) criptato=criptaNum(n...
UTF-8
Python
false
false
1,142
py
13
rsa.py
12
0.534151
0.528021
0
56
18.428571
52
mikiihuang/pytorch_related
455,266,536,728
068651a1b07277f355c27e75a38340323bc63aab
eb22f263a94efda72e0b9bb9818d13a981ffcaab
/norm_linearRegression.py
cdd23ce3e2251851ce5740efeffac91c407bb3f8
[]
no_license
https://github.com/mikiihuang/pytorch_related
7b9cbe11ead350fd2f3a0408025b12522d53a3f2
4e181bc1770847fe6aa3c9b6bc142571442765a1
refs/heads/master
2020-04-11T02:48:31.509693
2019-01-24T08:49:17
2019-01-24T08:49:17
161,456,877
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import matplotlib.pyplot as plt import numpy as np # unsqueeze:在dim=?的维度添加一个维度 x = torch.unsqueeze(torch.linspace(-1,1,200),dim=1) y = x.pow(2)+0.2*torch.rand(x.size()) x, y = Variable(x),Variable(y) class NN(torc...
UTF-8
Python
false
false
1,639
py
38
norm_linearRegression.py
29
0.623436
0.600395
0
53
27.603774
96
vanphuong12a2/obs_network
7,937,099,578,269
ff9e1360e5768d0198d93cc556640b8ed41eac3d
7b58df7165c1ea6e8c5be525b424eb733cf136de
/src/plot/plot_explvar.py
c3c3e09c5db0e76a648c0917a3571f51c8ba8a51
[]
no_license
https://github.com/vanphuong12a2/obs_network
3989ba2805730f4564c46ec62026afb78ab55d89
6e0d2de7964d759f9bc59603e18fee10b420fb5a
refs/heads/master
2016-08-07T09:55:02.092556
2015-05-14T09:02:02
2015-05-14T09:02:02
33,307,060
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import division import sys import numpy as np import scipy.io import numpy.ma as ma import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap sys.path.append('../') import supports import settings def plotmaps_explvar(obs, varplot, lons, lats, titl...
UTF-8
Python
false
false
4,813
py
33
plot_explvar.py
24
0.603781
0.552047
0
106
44.396226
242
davewadestein/Python-Intermediate
15,522,011,838,502
b8696d855c83fd2c751d94134db8488e49266230
4b3b36da54d2c813cb23e44ef23c3df24bf740d4
/guess.py
a25411b6c64255eb77f4034ddb15ad83d0f7c38f
[]
no_license
https://github.com/davewadestein/Python-Intermediate
86f6f35831ae19f385ccd3e071eee5526b30dbf5
570cb8e677b5280e2b6de289ef673e1839c35783
refs/heads/master
2016-08-11T13:03:09.248010
2016-02-09T19:00:21
2016-02-09T19:00:21
45,193,791
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import random my_number = random.randint(1, 100) guess = 0 while guess != my_number: guess = int(input("Your guess (0 to give up)? ")) if guess == 0: print("Sorry that you're giving up!") break elif guess > my_number: print("Guess was too high") elif guess < my_number: p...
UTF-8
Python
false
false
398
py
24
guess.py
23
0.605528
0.58794
0
15
25.533333
53
felpssc/Python-Desafios
4,054,449,134,054
88fdcb6fef5cb58fd1c39600a22e821fb2d7183c
53c1961cb2ef83a5b907484efd513a5d617da4ba
/Desafios Extras/desafio-triangulo.py
8e2a27a53620c7abd3034fede686e1faa86847ab
[]
no_license
https://github.com/felpssc/Python-Desafios
2db5274872718847fe3736f64a755fdd396ec8a2
59ed45522d45625819c1946edaf8e4d422323cfe
refs/heads/master
2023-04-05T13:06:57.949911
2021-04-07T10:00:11
2021-04-07T10:00:11
355,490,034
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
i = 2 for n in range(7): if n == 3 or n == 4 or n == 5: print(" " * (6 - n), " *", " " * (n - i), "*") i -= 1 else: print(" " * (6 - n), " *" * n)
UTF-8
Python
false
false
183
py
65
desafio-triangulo.py
64
0.26776
0.224044
0
7
24.571429
54
wlgur011/2DGame_Project
9,878,424,788,065
54c6426cde05d6acc4f6f55e6c025ea16d5e1bdc
f958beddd250283dedcae9dc3071d64668e68ca1
/GameFrameWork/main_state.py
1b39e612699e7435fffe40fd1db3a601c0a10a6d
[]
no_license
https://github.com/wlgur011/2DGame_Project
3eaa45e952a416a40fbf8f7e03af2eeeafb3686e
009833626f5e65de18dff332294d0c3562c25055
refs/heads/master
2020-08-27T07:00:16.603389
2019-12-09T12:05:42
2019-12-09T12:05:42
217,277,343
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import json import os from pico2d import * import win32api import game_framework import title_state import pause_state from GameObject.Player import CPlayer import CMap from GameObject.Bullet import CBullet from GameObject.Monster import CPlane_1, AirPlane,Ship from GameObject.UI import CUI import ListM...
UTF-8
Python
false
false
3,418
py
21
main_state.py
20
0.70158
0.667057
0
140
23.378571
111
microsoft/maro
2,027,224,583,412
ac7c7a1d73ed4ec6af7fbd9f002520af45d43220
a29b8d6ae6642ef80d04ae99d721b703de06db69
/maro/rl/distributed/abs_proxy.py
6bf17964e900107b839405fd10a8260eeded227e
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
https://github.com/microsoft/maro
6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3
b3c6a589ad9036b03221e776a6929b2bc1eb4680
refs/heads/master
2023-08-24T16:52:38.250279
2023-05-15T04:31:58
2023-05-15T04:31:58
230,389,247
764
158
MIT
false
2023-07-25T20:59:06
2019-12-27T06:48:27
2023-07-23T17:43:48
2023-07-25T20:59:06
115,360
729
141
19
Python
false
false
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from abc import abstractmethod import zmq from tornado.ioloop import IOLoop from zmq import Context from zmq.eventloop.zmqstream import ZMQStream from maro.rl.utils.common import get_own_ip_address class AbsProxy(object): """Abstract prox...
UTF-8
Python
false
false
2,603
py
659
abs_proxy.py
397
0.667307
0.667307
0
73
34.657534
106
chris-wood/BitcoinPrivacyProject
19,146,964,228,089
bc9dbf9892b0798b2b93593debb85e8c8eb3e0ec
7a4cf1fa39e6fea008f9b816d4e5d1737220f323
/boomerang/code/src/runSimulations.py
5ae343fb776a210619adf26b7e5fb4bf5f527eff
[]
no_license
https://github.com/chris-wood/BitcoinPrivacyProject
589c0344feee20581e73c59b7e0dd3dd5194c582
b27a3281f1ba50f8a18422ec9527bc78afda1311
refs/heads/master
2020-05-09T05:16:07.012558
2014-03-14T00:24:30
2014-03-14T00:24:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import subprocess import os import shutil import glob # Declare variables for the delta+1 and delta+2 output filedump = "" # Compile! p = subprocess.Popen('javac -cp "jyaml-1.3.jar:." *.java', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if (len(sys.argv) != 2): print "Usage: python runS...
UTF-8
Python
false
false
857
py
230
runSimulations.py
84
0.690782
0.677946
0
26
31.846154
146
MaxHenger/dse14-finding-venusian-volcanoes
1,211,180,782,915
b5eeb66253527ac2b7034e16c5e318855bbe1e18
cdaf89eb70a6f2cc5eb482397334c28373979538
/Mid-Term concept tradeoff designs/Aircraft/utility.py
5397fe19702d5be427c307c800a231e6764f931c
[]
no_license
https://github.com/MaxHenger/dse14-finding-venusian-volcanoes
39976234f8f8fb049fcd5a6fc7b4e4393ad812d7
00be05b652de46552acb9923e2a731dd8369db07
refs/heads/master
2020-04-06T05:02:57.653741
2016-06-28T08:15:24
2016-06-28T08:15:24
56,502,832
3
2
null
false
2016-06-28T08:15:24
2016-04-18T11:38:20
2016-05-26T18:48:29
2016-06-28T08:15:24
36,456
2
3
0
Python
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 9 20:05:54 2016 @author: MaxHenger """ import matplotlib.pyplot as plt import matplotlib.image as img import numpy as np import os import pickle import ast import time class settings: def __init__(self): # Settable parameters for this specific mission ...
UTF-8
Python
false
false
10,876
py
95
utility.py
81
0.505425
0.481979
0
304
34.779605
120
SpyrosMouselinos/Learning-to-solve-geometric-construction-problems-from-images
7,430,293,424,835
96c4963ecb9ae5c16471743bb7e21e8ea077c71c
cfb9c0230974aa35c4b0744385395977d4c9cf67
/src/py_euclidea/04_delta/03_EquilateralAboutCircle.py
250e9a0abfb84c07db240699c4f6ff79db22db20
[]
no_license
https://github.com/SpyrosMouselinos/Learning-to-solve-geometric-construction-problems-from-images
935bc00a0c498659efbee2c9fca1570ff787eb0c
480c37e300ee0d3f3c6cb500c2de3f4f1ab5c8a3
refs/heads/main
2023-08-19T23:27:36.414324
2021-10-11T22:01:35
2021-10-11T22:01:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from py_euclidea.constructions import * import py_euclidea.ConstructionProcess as construction import itertools def init(env): C = env.add_free(337.0, 243.0) A = env.add_free(434.0, 264.0) env.add_circle(C, A) env.set_tools( "move", "Point", "Line", "Circle", "Perpendicular_Bisector", ...
UTF-8
Python
false
false
2,146
py
142
03_EquilateralAboutCircle.py
125
0.535415
0.502796
0
72
28.805556
73
AK-1121/code_extraction
1,984,274,941,482
f0285a397691ebfa9c402be7654d78df6fbced59
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_10416.py
0ac892bb8f01c024cb8ecee2b0b48f2c977c37ac
[]
no_license
https://github.com/AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Parsing timezone in format of "-xx:00" pytz.FixedOffset(-8*60)
UTF-8
Python
false
false
65
py
29,367
python_10416.py
29,367
0.723077
0.646154
0
2
31.5
40
DavidPhilpott/food-tracker-update
10,316,511,445,475
cd6d0a7e3a3b7f7c60b3c9446e07126d0cba43d5
4e5f30eba202e71b69fbb96b0f8d6f720ff2abce
/app/State.py
52f92d7726fcd496f3be20307c44682fabb7cdbd
[]
no_license
https://github.com/DavidPhilpott/food-tracker-update
fa1c4abe2ba6d6c828dcdfc8f814e61cc48961b4
728b3314abf068655956d073d3ffcde3d5e672f1
refs/heads/master
2022-12-22T01:25:39.295973
2020-04-22T20:54:06
2020-04-22T20:54:06
250,893,765
0
0
null
false
2022-12-08T09:33:14
2020-03-28T21:07:27
2020-04-22T20:54:16
2022-12-08T09:33:13
113
0
0
5
Python
false
false
from app.Providers.EnvVarProvider import EnvVarProvider from app.Providers.AwsParameterStoreProvider import AwsParameterStoreProvider from app.Providers.LoggingProvider import LoggingProvider class State: def __init__(self, env_var_provider=None, aws_parameter_store_provider=None, logging_provider=None): ...
UTF-8
Python
false
false
7,137
py
51
State.py
45
0.603055
0.601653
0
147
47.55102
125
GH-Lim/AlgorithmPractice
10,685,878,664,329
36649589826e7dcf8d6bc1c7e5f231c45056e10e
df30f97d316e899b07b223bc86cfe53345627f06
/problems/programmers/lv3/종이접기.py
736862beb076c93dac20153279de0af486129213
[]
no_license
https://github.com/GH-Lim/AlgorithmPractice
c6a3aa99fa639aa23d685ae14c1754e0605eaa98
e7b8de2075348fb9fcc34c1d7f211fdea3a4deb0
refs/heads/master
2021-06-18T17:21:10.923380
2021-04-18T03:43:26
2021-04-18T03:43:26
199,591,747
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solution(n): answer = [] for _ in range(n): answer = answer + [0] + [int(not(i)) for i in answer[::-1]] return answer
UTF-8
Python
false
false
142
py
187
종이접기.py
186
0.521127
0.507042
0
5
27.4
67
kc3/Springboard
12,086,038,000,088
3f3a85cbf4e7e59ee2943837ce1c8d005a68c242
a1fbd4f9b0e7f218179fecb42b007499624502c0
/capstone_2/src/models/train_model.py
f9427903109eb542f14da90157d079751ca30a4f
[ "MIT" ]
permissive
https://github.com/kc3/Springboard
745ac29596dd3a0c889fdfcb673a2048d0860c58
4f092ef635529bd98e91bb5a98015755bd4a7d9e
refs/heads/master
2021-06-27T14:24:19.871355
2019-04-23T18:21:25
2019-04-23T18:21:25
141,273,416
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import os from datetime import datetime from src.models.data_manager import DataManager from src.models.seqtoseq_model import SeqToSeqModel from src.models.policy_model import PolicyGradientModel # Function to train SeqToSeq models def train_seqtoseq(model_name=None, epochs=100): # # Configu...
UTF-8
Python
false
false
2,163
py
85
train_model.py
22
0.613037
0.606103
0
66
31.757576
92
vrih/todoist_cli
16,200,616,664,766
50cc6baae6d4d225b450b98ec0e6bea9b14b7abc
8a8ed6adf9988e910f0f52b36c86990584412a34
/interactive.py
cebcfa288e9c7f61406d3f59583a10bf97b71b7b
[]
no_license
https://github.com/vrih/todoist_cli
31720dc88b3dfda44998369c7185afe18ede49bc
f2cb860358a043de001d28d727dcf12dced01713
refs/heads/master
2021-01-24T08:12:30.024012
2018-08-29T08:05:03
2018-08-29T08:05:03
122,973,663
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Interactive todoist""" from typing import List import completions import input_parser as ip import renderer as rd import data_accessor as da import todoist_calls as td def view(args, date=None) -> None: """List interactively""" try: if not date: date = args[args.index("-d") + 1] exc...
UTF-8
Python
false
false
3,085
py
8
interactive.py
7
0.578282
0.574716
0
129
22.914729
68
jackiezhung/Learning
9,517,647,578,087
89998325e9d0a86bfd1a55d99d820913ddbc58f1
bcd6d642287cbd1eedc95d5e6ff44b249db45a04
/Network/SocketExample/SimpleServer.py
f0e555e8491dec19635b6232a81f951f77eda013
[]
no_license
https://github.com/jackiezhung/Learning
6aac759959a1593bee77d49f277378a1311dc770
b51efb360dc6d1cb651f97b61fe615157166cbe9
refs/heads/master
2023-06-13T03:25:52.622150
2020-04-18T05:42:38
2020-04-18T05:42:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 import socket from Network import address server_s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_s.bind(address) server_s.listen(5) print("Start server on: {}".format(address)) while True: client_s, client_addr = server_s.accept() print("Connect from {}".format(client_addr)) w...
UTF-8
Python
false
false
557
py
10
SimpleServer.py
10
0.621185
0.610413
0
21
25.52381
60
sdetwiler/pammo
8,031,588,864,413
3bd5ab6f46e1b4a1aaad911cd7b1fc512de73b44
4c452179cf4c22a5e9d8ee4a9d0062ad3d6d0a45
/editor/source/CommonDrawing.py
9c948e89e76b53b96614ee72b7d12f7130f7a8ba
[]
no_license
https://github.com/sdetwiler/pammo
ed749bdbd150a5665bdabc263005249a821cfa2e
aee306611ae8c681a5f8c03b3b0696e2cf771864
refs/heads/master
2021-01-13T01:49:15.414767
2015-05-18T22:21:24
2015-05-18T22:21:24
35,837,663
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import wx import POI def drawCollisionShapes(display, gc, rect): collisionShapes = display.getMap().getCollisionShapes() # Draw all collision shapes. for shape in collisionShapes: if not shape.getEnemiesCollide(): gc.SetBrush(wx.Brush(wx.Color(50, 128, 50, 92))) gc.SetPen(w...
UTF-8
Python
false
false
2,923
py
281
CommonDrawing.py
244
0.590831
0.534382
0
76
37.394737
104
alexandder/sca-gaps
12,275,016,544,428
5c0ff44fbde842de204c32685450fab0c1b78668
6d9600183ebdb334c5748896908e54fe589842c4
/code/lib/ca_lib.py
8f4ca2179ed9721dfdd31a02e62f2f6dd348f205
[]
no_license
https://github.com/alexandder/sca-gaps
78dec341fdbc7fcef5dfe7cd0796289dbb0ba288
736082515d9d726cd34d1fbaa99a14128bb9d66c
refs/heads/master
2021-09-10T15:27:18.211920
2018-03-28T12:14:26
2018-03-28T12:14:26
106,101,925
0
1
null
false
2018-03-28T12:14:27
2017-10-07T13:55:47
2018-03-13T23:55:44
2018-03-28T12:14:27
795,560
0
1
0
Python
false
null
import random import sys import lib.ca_data as ca_data def apply_rule(number, l, c, r): binary_rule_number = format(number, "#010b")[2:] neighborhood = int(str(l) + str(c) + str(r), 2) position = -neighborhood + 7 return int(binary_rule_number[position]) def applyRuleToVector(a, ruleNu...
UTF-8
Python
false
false
5,317
py
29
ca_lib.py
26
0.533948
0.481851
0
170
29.252941
117
enumatech/sprites-python
120,259,094,549
759593c7ccd266efb571d38c315bece69fe72c00
242c51c14da38745931629124aa3b38a7d1ca776
/src/tests/conftest.py
6aa0fdc5f0070ac0433532781f81b4426051a88b
[ "MIT" ]
permissive
https://github.com/enumatech/sprites-python
8c3fa0003c98d2da1d3221d289bff23f5f8db7af
e2221ff9bf842fa391e9646e1cee969b12218e64
refs/heads/master
2022-12-09T20:01:14.434206
2018-09-18T06:50:23
2018-09-18T06:50:23
137,177,091
4
3
MIT
false
2022-12-08T02:48:51
2018-06-13T07:13:18
2022-04-24T04:45:09
2022-12-08T02:48:51
149
4
4
6
Python
false
false
from collections import namedtuple import eth_account import pytest from eth_utils.address import to_checksum_address from web3 import HTTPProvider, Web3 from web3.middleware import geth_poa_middleware from ..channel import Channel, ChannelState, Payment from ..contracts.dappsys import DSToken from ..contracts.Preimag...
UTF-8
Python
false
false
8,575
py
56
conftest.py
28
0.696093
0.655743
0
377
21.745358
91
pete2fiddy/Mosaicer
11,347,303,629,104
6f4258d8a35440c900bc22f4beb8a2590f5a1484
cc6d76d42368ac3d809408f2b434fcb900cdbc75
/Feature/HOGMatch.py
e23fe40e55d6fbde41f57eaaff81b48ebe679149
[]
no_license
https://github.com/pete2fiddy/Mosaicer
f8a36692a566cb3d417797b276f2ab68891e23a1
7b45a5e08520bb9499ed1be0467c7186fa9e96fd
refs/heads/master
2021-05-23T06:09:34.527547
2017-06-30T13:25:16
2017-06-30T13:25:16
94,837,377
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Feature.MatchType import MatchType import numpy as np from Feature.FeatureMatch import FeatureMatch import cv2 from matplotlib import pyplot as plt import ImageOp.CVMath as CVMath import ImageOp.ImageMath as ImageMath from PIL import Image from math import pi, sqrt import ImageOp.HOG as HOG class HOGMatch(MatchTy...
UTF-8
Python
false
false
7,559
py
26
HOGMatch.py
26
0.679455
0.662786
0
129
57.596899
150
Shahakbk/Deep_Learning-VQA_Multimodal_Problems
9,998,683,877,413
7977aab735710ec75d721de336fe8d80320a8e46
c6a8ece842d9bc73558c4050298f9c533033bdbd
/main.py
56141c82c44232f6c695e04d316b53c8981bbdb4
[]
no_license
https://github.com/Shahakbk/Deep_Learning-VQA_Multimodal_Problems
b5b9bad4771e0c5aff9a8197d437203388fb55ad
fabe8f237fcecd6ff80d4a3d41337082ef44aff1
refs/heads/master
2022-04-03T13:57:00.180425
2020-01-24T09:31:30
2020-01-24T09:31:30
233,609,386
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import get_data import data_prep import images_prep import utils import train def main(): device = utils.check_cuda() # Check for CUDA availability get_data.get_data() # Load the data data_prep.prep_qa() # Normalize the Q&A and create json & vocabularies images_prep.prep_images() # Pre-process the...
UTF-8
Python
false
false
416
py
8
main.py
7
0.673077
0.673077
0
17
23.470588
75
kernel-panic96/Dungeons-Pythons
18,382,460,031,314
c4ffde7a8846e21aa7edfb7c5bdbde7cb9453f54
f0dcaee4d747ff184974fdb9298a1f9e0b715e43
/tests/cells/tests_empty_cell.py
863056de75faeb871f3b36535de8b82c5d981caa
[]
no_license
https://github.com/kernel-panic96/Dungeons-Pythons
c3a00a8025c0b7a7e02975eadfb8676840a5dbcf
d09be30886369c10d922aca4e1453d98e7b5cb73
refs/heads/master
2020-03-13T09:04:34.010035
2018-05-03T13:27:48
2018-05-03T13:27:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from src.cells.empty_cell import EmptyCell from unittest.mock import Mock class OccupiableEmptyCellTests(unittest.TestCase): def test_str_on_empty_cell_returns_symbol(self): self.assertEqual(str(EmptyCell(row=0, col=0)), EmptyCell.sym) def test_cell_with_occupant_should_trigger_occupa...
UTF-8
Python
false
false
1,263
py
26
tests_empty_cell.py
24
0.655582
0.649248
0
42
29.071429
78
neuromorphs/grill-lmu
1,047,972,070,495
a0aca0d6963af90162d807f44d326a38142cdedc
8137160e1452949c7d6d1b1925ef8b44da4babb2
/basic/ldn-nengo-python.py
bfc6b2bee9b16b9a2dcee5f98228eae4a54deec2
[ "MIT" ]
permissive
https://github.com/neuromorphs/grill-lmu
8ecda9cf84bf723d72781abec214b9ff848b8797
102e2f7684e36d0f043624c9a2e5816b91bc8de0
refs/heads/master
2022-12-15T09:22:16.264288
2020-09-11T22:08:18
2020-09-11T22:08:18
286,575,744
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import nengo import numpy as np import scipy.linalg from scipy.special import legendre class LDN(nengo.Process): def __init__(self, theta, q, size_in=1): self.q = q # number of internal state dimensions per input self.theta = theta # size of time window (in seconds) self....
UTF-8
Python
false
false
2,913
py
5
ldn-nengo-python.py
2
0.606934
0.59183
0
84
33.690476
99
Tim232/PyExecJS
13,383,118,096,485
410c1c2826e97e9ca6d4aa4061b360fbaa8abbdb
f69b53bd4fda4671760e375111923c846d3e112c
/test_execjs.py
146865a696c140aac76ca1f7d8b5abe32330998a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/Tim232/PyExecJS
458d08d969b583c6d4066db5a7323647bfcf6d43
ab4f962898e0c4cbccf9447c0246d1b721aec9d3
refs/heads/master
2023-01-28T21:50:10.659696
2020-12-06T08:06:38
2020-12-06T08:06:38
318,981,752
1
0
MIT
true
2020-12-06T08:02:29
2020-12-06T08:02:28
2020-12-05T23:02:11
2020-04-04T06:49:05
154
0
0
0
null
false
false
#!/usr/bin/env python3 # -*- coding: ascii -*- from __future__ import unicode_literals import sys import os import doctest import six import execjs if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest class RuntimeTestBase: def test_context_call(self): context = self....
UTF-8
Python
false
false
5,376
py
8
test_execjs.py
4
0.603423
0.591146
0
141
37.12766
109
NAMEs/Python_Note
9,526,237,510,349
6fa0da0ddc29822afee8709e49fcab970c32fa85
27b4d1b7723845812111a0c6c659ef87c8da2755
/爬虫/爬虫学习02/1_爬虫原理和数据抓取/实例/test02_通过有道词典制作英文转中文翻译器.py
420f4de5a32c5c4ad1b59decf2e8e6b6d2170f51
[]
no_license
https://github.com/NAMEs/Python_Note
59a6eff7b4287aaef04bd69fbd4af3faf56cccb4
f560e00af37c4f22546abc4c2756e7037adcc40c
refs/heads/master
2022-04-11T09:32:17.512962
2020-03-17T09:30:58
2020-03-17T09:30:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 存在问题, 详情可以参照 ”../爬虫学习01/19.py" """ from urllib import request, parse import json url = "http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36...
UTF-8
Python
false
false
1,278
py
1,119
test02_通过有道词典制作英文转中文翻译器.py
505
0.607445
0.518613
0
48
22.583333
136
jitendra-singh01/awsgcpremediscripts
19,378,892,447,242
4dd3181e56133a950ebdf4c2233b47a55ec7ffa9
7957aaf01a5fc9260990fad2b742a55e9593bba0
/aws/iam/list_customer_policy.py
75cb3201bcc7a4fa549b52887db30dcdce100eb3
[]
no_license
https://github.com/jitendra-singh01/awsgcpremediscripts
57f916c5fb82e826446cfa1bf9044825a52236b4
c9aa09e6a1011dde004292a44c026d99b0a93108
refs/heads/master
2020-08-31T15:12:30.595045
2019-12-19T08:45:33
2019-12-19T08:45:33
218,719,491
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import boto3 from datetime import datetime,timezone import re client = boto3.client('iam') i = 1; policy_resource_vul = [] policy_action_vul = [] policy_not_vul = [] action_vul_str = "Policy {} is performing all actions. Please specify needed actions." resource_vul_str = "Policy {} is providing permission tp all resour...
UTF-8
Python
false
false
2,858
py
16
list_customer_policy.py
13
0.660602
0.651155
0
88
31.488636
127
ncm34/smart-seating
4,346,506,924,812
a0c1a4184b456ffdb751e309f48c1b839ae1c6a5
5550321db4b965c80364be0dae5a73fc7c26da11
/backend/request.py
ddbc06c06e2f0f27e38321cfd93fb78b9b372495
[]
no_license
https://github.com/ncm34/smart-seating
5f9b94c67d9aa47e2109c91df25b528807a87946
a5224821178689a3861dca5a46d24a2bd6e6dc01
refs/heads/master
2021-01-10T07:02:54.019559
2015-12-13T18:26:32
2015-12-13T18:26:32
43,028,274
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time from flask import Flask import re from flask_mail import Mail, Message app = Flask(__name__) # app.run(host='localhost', port=5000, request_handler=runtime.MyFancyRequestHandler) app.config.update( DEBUG=True, #EMAIL SETTINGS MAIL_SERVER='smtp.gmail.com', MAIL_PORT=465, MAIL_USE_SSL=Tr...
UTF-8
Python
false
false
2,433
py
4
request.py
4
0.663379
0.642828
0
78
30.205128
164
H-Stylo/DevAdvancedTest
18,708,877,549,672
d6d531f913b9d87d0d754717ec9da578a999675f
3318df5cf7fcca5329c43538919ebf4081a6dbaa
/context_manager/context_manager.py
b990b157c4421d894247193ba78abd7904aac6e6
[]
no_license
https://github.com/H-Stylo/DevAdvancedTest
e8564e499ae7778de336655d42dada31af131282
f00582c8026053c77c70372a1c8163e9719a79ad
refs/heads/master
2021-04-09T10:26:47.369030
2018-04-03T13:11:43
2018-04-03T13:11:43
125,430,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# context_manager.py from sqlite3 import connect from contextlib import contextmanager #--------------------------------------------------- def classicContextManager(): """ Utilsation classique d'un context manager dans le cadre de l'ouverture d'une connexion ou plus généralement l'ouverture d'un fichier """ wit...
UTF-8
Python
false
false
2,988
py
9
context_manager.py
9
0.579461
0.575084
0
98
29.316327
95
stryku/hb
12,970,801,264,383
c68758933a6eb8f0b1de26439a830fe77e6101eb
e5f10389ed55f7cec382eec92d547b1e8701b850
/client_server/scripts.py
2abdc6323fd2c5b6ba1e9deb71ef68fb069d5025
[ "MIT" ]
permissive
https://github.com/stryku/hb
16a21f9282f3246092e84aa5f3c0a7cc12ce04e5
9bfea9ecbe31f2e5c620e90434c037a2f38f6356
refs/heads/master
2021-07-12T12:46:49.203011
2017-10-14T11:56:38
2017-10-14T11:56:38
103,791,760
0
0
null
false
2017-09-17T18:22:50
2017-09-17T00:08:50
2017-09-17T18:00:36
2017-09-17T18:22:50
203
0
0
0
Python
null
null
import consts import utils def textcleaner(in_file, out_file): command = 'textcleaner -g -e stretch -f 25 -o 20 -t 30 -s 1 -T'.split() command.append(in_file) command.append(out_file) #command = [consts.SCRIPTS_DIR + 'run_cleaner.sh', # in_file, # out_file] return utils...
UTF-8
Python
false
false
491
py
30
scripts.py
27
0.613035
0.598778
0
17
27.823529
82
amolenaar/gaphas
16,217,796,548,394
afbbe35d54c2c25902624fac43ffaa920457318d
80812c8f7cc73ea0a4a9bc17596cc7ff1d4861fc
/tests/test_connector.py
21483eab49344f2c6299d0d77bea7edc18be917e
[ "Apache-2.0" ]
permissive
https://github.com/amolenaar/gaphas
e4ad3b3bbc22aa4786e7d0285a377cffa7c1385c
4ae52b99f03e99bd9f4bd055805a9a09c7c51f91
refs/heads/master
2021-01-17T16:17:22.927927
2021-01-15T02:49:48
2021-01-15T02:49:48
230,791
11
3
null
null
null
null
null
null
null
null
null
null
null
null
null
from gaphas.connector import Handle def test_handle_x_y(): h = Handle() assert 0.0 == h.pos.x assert 0.0 == h.pos.y
UTF-8
Python
false
false
130
py
107
test_connector.py
76
0.607692
0.576923
0
7
17.571429
35
abcxs/ctpn_pytorch
4,475,355,947,781
059568d84fa4c4ed125370e10bba84c5cad4ee8c
607b5b1edf73780993be4f09272590acd305cfcd
/utils/bbox_coder.py
a7a12a94bbb2e179f287662530de5b9db66776bd
[]
no_license
https://github.com/abcxs/ctpn_pytorch
1f11a501ce3f9b59e9c65437d9d8c58d8ab202cb
752dbb2677fecc49713730be6f56cd8e7a48bd79
refs/heads/master
2022-11-20T03:58:25.349061
2020-07-27T06:09:45
2020-07-27T06:09:45
282,781,183
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import numpy as np def encode(bboxes, gt_bboxes): assert bboxes.size(0) == gt_bboxes.size(0) bboxes = bboxes.float() gt_bboxes = gt_bboxes.float() px = (bboxes[..., 0] + bboxes[..., 2]) * 0.5 py = (bboxes[..., 1] + bboxes[..., 3]) * 0.5 pw = bboxes[..., 2] - bboxes[..., 0] ph...
UTF-8
Python
false
false
2,108
py
15
bbox_coder.py
15
0.52277
0.479127
0
68
30
73
aristocrates/pathfinder
8,469,675,514,562
186dbf650e3d4c11f4bcb55b3d617f6a25ab72cd
7bee2b2273613f08dea6f1954752770fe6904c1e
/scroll.py
88cdb4939c89191a12325c7dcc240528aab10914
[ "BSD-3-Clause" ]
permissive
https://github.com/aristocrates/pathfinder
66361e82d551aafd840f10cd86e584d010cdb821
192390f726f3ebbe7a358052743a43f0b4377064
refs/heads/master
2021-09-18T12:56:41.201996
2018-07-09T07:59:39
2018-07-09T07:59:39
104,619,908
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Handles scroll to zoom logic """ class Zoom: """ Enforces minimum and maximum zoom, and rate of zoom """ def __init__(self, zoom_thresh = 120, zoom_min = -5, zoom_max = 30): # the scroll can be no lower than zero self.scroll = 0 self.zoom_thresh = zoom_thresh self.zo...
UTF-8
Python
false
false
1,140
py
8
scroll.py
5
0.585088
0.578947
0
36
30.666667
79
hshore29/ListStats
8,040,178,815,782
2448bd1fac6e88e7e3b66d8a827de897753d0ace
1e71bd48c0ba7e14d7b9b3783a5e51509bf4eaa8
/DB Builder/ftp_module.py
2b68365d79a4328bc97920212865b104c1884af0
[]
no_license
https://github.com/hshore29/ListStats
41f53ddda70c696a67eaad993746aeb33bc8617c
7313969389ffc6bb6bbceb1dfe7a3fc0d8b21ce3
refs/heads/master
2016-08-04T06:56:11.163487
2015-06-08T03:27:29
2015-06-08T03:27:32
22,278,369
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from ftplib import FTP class Website: def __init__(self,domain,path,user,passw): self.ftp = FTP(domain,user,passw) self.ftp.cwd(path) def retr(self,file): with open(file,'wb') as f: print "Downloading " + file + "..." self.ftp.retrbinary('RETR ...
UTF-8
Python
false
false
520
py
22
ftp_module.py
16
0.544231
0.544231
0
17
29.588235
77
ggangliu/merge-bin-as-one
17,695,265,267,529
31794bd57b90cc6e224badcc8bfdb3a3dda78868
b85b28e802c3358e7f8f62a4bc77cbb1df0b5ec8
/merge-bin-as-one.py
021bb1b293c6fb8bf125656e334d1548041cf8a4
[]
no_license
https://github.com/ggangliu/merge-bin-as-one
a3cf2203573331f3fdc3c83859f9fae9c9e3a42e
3784d86c6ded3c4a753cd07810fc94a6b8bf736b
refs/heads/master
2020-03-28T01:17:26.607980
2018-10-25T01:37:50
2018-10-25T01:37:50
147,493,644
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' This tool is for merge all bin as one file. Avoiding wasting of time at burning every bin one by one each time. ''' from struct import pack import os from tqdm import tqdm,trange __version__ = "0.1" bin_map_info = [] #First step: #Parsing config file, and get the file name\length and its start address in flash. ...
UTF-8
Python
false
false
2,281
py
4
merge-bin-as-one.py
2
0.625164
0.617273
0
68
32.514706
121
didarDOS/mysite
7,687,991,474,186
c511e1974793cc214b53207974ae759c30ed589a
5f5fb72cfbb6fd96426f0bfe21aa87324549dc1a
/Library/forms.py
20cc44262fd36cb64c273fba53b90ae9f6a5cb9a
[]
no_license
https://github.com/didarDOS/mysite
9cdb0796ab49823b5ea0bb91a29e6ec8709a4e0f
d0f4f2675b63f238a6aa48e7572ce9880b3d3b01
refs/heads/master
2020-07-21T08:03:44.371792
2019-09-10T13:40:06
2019-09-10T13:40:06
206,789,695
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms class BookForm(forms.Form): name = forms.CharField(max_length=300) author = forms.CharField(max_length=300) description = forms.TextInput() price = forms.FloatField()
UTF-8
Python
false
false
208
py
13
forms.py
11
0.721154
0.692308
0
7
28.857143
44
fferegrino/n4j-test-setup
12,378,095,765,183
bc02d50472eb3d5d7907aa5771bd034c18934741
81801bade1455f94aea02d1239e02caa8c488a33
/InsertAirports.py
1551eed8fe3d35f6b4fb027854fa531e2022f5e2
[ "MIT" ]
permissive
https://github.com/fferegrino/n4j-test-setup
b7a413ab159cccb6cf2f81c8961a9ce7a947f82b
12ad0fbfa68c3902e00218203ee943c5315057ff
refs/heads/master
2020-03-26T12:49:07.001214
2018-09-05T16:08:17
2018-09-05T16:08:17
144,909,454
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 # In[1]: import pandas as pd import gc import argparse from os.path import join from FlightsDatabase import FlightsDatabase from transformations import transform_as_is, transform_split_maps, transform_stringify_second_level from transformations import results_as_they_are, mapify_second_level class ...
UTF-8
Python
false
false
4,485
py
15
InsertAirports.py
6
0.554515
0.548272
0
127
34.314961
110
Skrypnyk81/stepik
7,121,055,819,411
06d53f15caccfbbe700bc3d691794ab378651c3d
151febf20034aee3c584c2e7ab687252d099da2f
/count_line.py
c2ce55bdefb00b1fb97449c108e2ae2c1c87f916
[]
no_license
https://github.com/Skrypnyk81/stepik
da3ef3b96c0df94ccbcbb79ba518e796fee248f4
1dcc2cb6555fee67604cb6990345c3b9940b1da3
refs/heads/master
2021-06-05T01:19:03.009438
2020-08-01T07:34:16
2020-08-01T07:34:16
134,954,763
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests r = requests.get('https://stepic.org/media/attachments/course67/3.6.2/324.txt') print(r.text.count('\n'))
UTF-8
Python
false
false
123
py
18
count_line.py
17
0.723577
0.658537
0
4
29.75
79
LukeLry/AlienInvasion
17,343,077,965,983
7ff37cdd1f84189b12dd6fd49f3e6ab5d7e0e096
77e94730ce847c6c84da1093675e26364d2fcef8
/game_stats.py
81da4c8fc49b1d3bdcf601de1d9c940ba39c035c
[]
no_license
https://github.com/LukeLry/AlienInvasion
ec387a7bc4fb0d3f7779c275813daf2bef638f72
903dce893f20c53bf9aed5406e5b21f09f41c12f
refs/heads/master
2020-03-28T23:34:07.551192
2018-09-18T14:03:55
2018-09-18T14:03:55
149,293,147
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- class GameStats(): """跟踪游戏的统计信息""" def __init__(self,ai_settings): """初始化统计信息""" self.ai_settings=ai_settings self.reset_stats() #游戏刚启动时处于活跃状态 self.game_active=False def reset_stats(self): """初始化游戏运行期间可能发生变化的统计信息"...
UTF-8
Python
false
false
471
py
2
game_stats.py
2
0.578667
0.570667
0
15
24
51
alhajri/FUDGE
1,700,807,062,993
301be07817e015e498d7d5c38c966583493d8779
2b030cb44b0537b1b34de6951656d612edb4a22c
/xData/constant.py
b6b37f87d402b0273bf60c54ee1d5505ab01462d
[ "BSD-3-Clause" ]
permissive
https://github.com/alhajri/FUDGE
2c389912addc28ddde51cf7ba455164e47574c89
9566131c37b45fc37f5f8ad07903264864575b6e
refs/heads/master
2021-08-31T20:39:25.834146
2017-12-22T19:50:56
2017-12-22T19:50:56
115,145,816
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# <<BEGIN-copyright>> # Copyright (c) 2016, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # Written by the LLNL Nuclear Data and Theory group # (email: mattoon1@llnl.gov) # LLNL-CODE-683960. # All rights reserved. # # This file is part of the FUDGE package...
UTF-8
Python
false
false
8,605
py
335
constant.py
150
0.678094
0.669611
0
207
40.570048
321
pranavsachdev/Python_Programming_UseCases
10,685,878,641,037
5696cc1907b09a8fa02348e4e0f9dafb04366f85
cea23ceabe566f9b893b474913fe1b2f3f6ef141
/Day_3_Numberswith4.py
845ffe86fcd6793c2a7c8afa4d90c329c3411e3b
[]
no_license
https://github.com/pranavsachdev/Python_Programming_UseCases
eba7b620fc3db88dc2cfe409f0758a9ca44ab4f7
09f2c0a0fb2abe1b58225f7cc149d6dbb79fb862
refs/heads/master
2020-09-02T22:08:16.075206
2019-11-04T11:10:18
2019-11-04T11:10:18
219,316,962
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 25 07:37:40 2019 @author: prana """ def count_if_four(num): present = 0 for i in range(1, num+1): if (check_for_4(i) == True): present += 1 return present def check_for_4(x): while (x != 0): if (x%10 == 4): return...
UTF-8
Python
false
false
477
py
5
Day_3_Numberswith4.py
4
0.48847
0.427673
0
25
18.08
42
travishen/sectw
2,052,994,398,614
8b8092666cebdf03ecbec5c7bb92f5011e351025
490b6d6b37cbe36e7b74b9a8d1f1f8d9abcedfb0
/sectw/util.py
afbee0f65587be781d9a79f9d72db3e18f94cd65
[ "MIT" ]
permissive
https://github.com/travishen/sectw
4e548d8187a4bc4484a547e44cf3e7fb4a20efcd
862fb79594cdd9eb129d00a61fa433860ead3a22
refs/heads/master
2021-10-09T08:20:05.758126
2018-12-22T02:48:26
2018-12-22T03:02:05
108,830,464
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals import re import json import six import logging from collections import namedtuple from .database.model import hook, Version from .database import config class Address(object): TOKEN_RE = r...
UTF-8
Python
false
false
9,658
py
14
util.py
9
0.500961
0.492419
0
333
27.048048
108
bokulich-lab/RESCRIPt
4,483,945,869,901
953a59146948a093d893b041eaa5a92c119c036a
820b7409521d0f2517877a2998df11578d62d48a
/rescript/tests/test_filter_length.py
f151ac9d97d4be93ef2dbcdfaf4b371a4107a696
[ "BSD-3-Clause" ]
permissive
https://github.com/bokulich-lab/RESCRIPt
94c49f0f12806909c2588e12fdac97d44b11b493
c7c6b4e8b0d7e2f1654806e733de5326757b442f
refs/heads/master
2023-06-10T20:04:03.845458
2023-06-05T06:45:42
2023-06-05T06:45:42
183,673,700
61
22
BSD-3-Clause
false
2023-07-19T16:18:48
2019-04-26T18:05:50
2023-07-19T12:08:37
2023-06-05T09:27:10
6,453
66
21
18
Python
false
false
# ---------------------------------------------------------------------------- # Copyright (c) 2019-2023, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
UTF-8
Python
false
false
18,059
py
69
test_filter_length.py
43
0.605958
0.588017
0
381
46.39895
79
nicola-debernardini/LabOfBioinformatics1
2,379,411,917,304
cd53ce8222c4f1272e6ab3590e57bd560c372f18
fcc8e1b34622f0ad5ee27743073dcf7b5d74662d
/Kunitz_project/Scripts/Set_model_parameters.py
361b4a49647004371271098945943f6bf26a62c9
[]
no_license
https://github.com/nicola-debernardini/LabOfBioinformatics1
2c69cebb03d1ba5d85db64478c807be25a3827f3
4a866f59a5ce692cc82824ef62591aa35a01139a
refs/heads/master
2020-05-19T07:47:53.480977
2019-09-22T08:20:35
2019-09-22T08:20:35
184,905,491
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/urs/bin/python ############ SCRIPT ############## # This script can determine which is the optimal threshold for the model in a specific dataset import sys import numpy as np # Function to calculate the confusion matrix def conf_mat(filename, th, sp = -2, cp =-1): # Used to defive default variables in a functi...
UTF-8
Python
false
false
2,351
py
10
Set_model_parameters.py
6
0.520204
0.481923
0
73
31.150685
126
glory9/miscellaneous
11,381,663,347,867
8e9c19f99fef8459c06d8f494f335eafd5624d1d
ab164bb380108badefc3a9f634cc71302f493bcf
/game-of-life.py
838d5ae84104d1f89c0fd61c168296606d742139
[]
no_license
https://github.com/glory9/miscellaneous
90b580e2a275aed0974de67d5e1e0eecaea7ee18
2b4c0086f8b31f4c77616954353badbc17cb3f2d
refs/heads/master
2022-07-27T11:40:22.943689
2020-05-13T21:01:21
2020-05-13T21:01:21
197,703,528
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def gridGame(grid, k, rules): # Write your code here a = 0 b = 0 magic = list() for _ in rules: if _ == 'alive': magic.append(_) g = 0 while g < grid_rows: h = 0 count = 0 while h < grid_columns: r = g - 1 wh...
UTF-8
Python
false
false
1,215
py
23
game-of-life.py
23
0.404115
0.390947
0
54
20.462963
57
pranav102001/IF-ELSE-Python
5,437,428,621,938
fa921bd7d0108018f76a7c13cfb306d075d85e81
9fa9f799e9437b3bd8d680640267f5fcf4b49f34
/voting.py
ed43dc987d9d9721c022e4375a60ee1881c22278
[]
no_license
https://github.com/pranav102001/IF-ELSE-Python
100479d8f8e67ec220820524e91bdcb0ab31c815
291558e402befad739440302440b5ee928aeda20
refs/heads/main
2022-12-23T19:44:53.050693
2020-10-04T14:15:48
2020-10-04T14:15:48
301,145,478
0
0
null
true
2020-10-04T14:11:36
2020-10-04T14:11:36
2020-10-04T12:21:30
2020-10-04T12:21:28
1
0
0
0
null
false
false
age = input("Just enter your age!") if age >= 18: Print("You are eligible for voting in India!") else: Print("You are not eligible for voting!)
UTF-8
Python
false
false
152
py
1
voting.py
1
0.664474
0.651316
0
5
29.4
50
ankurbelbase/django-pushy
14,723,147,912,608
624cc83fef8ca8a6d6ebf41fd8e227ad058ba96b
f5b0b4f242e72a0694d87f6a6da2f6b8158254d4
/tests/data.py
92ec1d690ff76e31e661bf05ad2ba7b36efa4a1d
[ "MIT" ]
permissive
https://github.com/ankurbelbase/django-pushy
519b1cc257ff9931019d626c4a4ee5402e8a3dcf
ba896c521a960e20175409be67d4527393be13cd
refs/heads/master
2021-06-23T11:28:52.235206
2017-08-06T19:20:19
2017-08-06T19:20:19
103,645,114
0
1
null
true
2017-09-15T10:28:08
2017-09-15T10:28:08
2017-08-29T10:59:37
2017-08-24T15:57:32
94
0
0
0
null
null
null
from pushjack import ( GCMCanonicalID ) class ResponseMock: def __init__(self, status_code): self.status_code = status_code self.errors = [] self.canonical_ids = [] def valid_response(): return ResponseMock(200) def valid_with_canonical_id_response(canonical_id): canonical_...
UTF-8
Python
false
false
593
py
27
data.py
21
0.684654
0.669477
0
27
20.962963
65
IvanStelmakh/toloka-kit
10,127,532,911,195
920479d1d5cddfcf1853f916075d30cb76b368f0
c4b758f7011480bea589e9088c9bc77d8180cb93
/src/client/user_skill.py
3d181f8913bca29d8d6755f5e8a5cd5a74de49b0
[ "Apache-2.0" ]
permissive
https://github.com/IvanStelmakh/toloka-kit
680ee376c2b168d5c9ac28d2f7c927c54ab3f915
1d244a69cb053b4a2e1c1856a54cd224a66946a2
refs/heads/main
2023-03-11T13:00:14.728576
2021-03-01T14:13:45
2021-03-01T14:13:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from attr.validators import optional, instance_of import datetime from decimal import Decimal from .primitives.base import attribute, BaseTolokaObject class SetUserSkillRequest(BaseTolokaObject): skill_id: str user_id: str value: Decimal = attribute(validator=optional(instance_of(Decimal))) class UserS...
UTF-8
Python
false
false
548
py
94
user_skill.py
91
0.751825
0.751825
0
21
25.095238
78
mon4ter/fashionable
10,333,691,352,799
fc488129a5cf612a0861f941e1c511081a585336
4b8f6588cddf990cf7b43e07b35739a452d35dfd
/src/fashionable/model.py
886c7675282ab5d83ab1171f53c22d280f82c9bd
[ "MIT" ]
permissive
https://github.com/mon4ter/fashionable
ddc56dfb0aa549b2e9d2dec0fdf054e8c0f1d524
336d918ce835b6fda5459fbba10faf24cac96202
refs/heads/master
2021-12-01T03:58:40.659093
2021-11-25T19:28:03
2021-11-25T19:28:03
148,993,734
0
0
MIT
false
2021-11-25T19:28:03
2018-09-16T12:32:54
2021-10-08T13:04:52
2021-11-25T19:28:03
107
0
0
0
Python
false
false
from copy import deepcopy from itertools import zip_longest from typing import Any, Dict, Iterable, Mapping, Tuple, Union from .errors import ValidateError from .modelmeta import ModelMeta from .unset import UNSET from .validation import validate __all__ = [ 'Model', ] class Model(metaclass=ModelMeta): @cla...
UTF-8
Python
false
false
2,262
py
24
model.py
22
0.572944
0.572502
0
71
30.859155
103
Datamine/Perceptron
1,546,188,256,835
fb11853fa932846daf467097cc4c82694b39055a
dc9aae92038fede42ef0d3d748e420979c823ef7
/Image-Generator/gen-squares.py
772fff7e2d8dc25c239178da12d8eae47fbe3acb
[]
no_license
https://github.com/Datamine/Perceptron
69782b8414a727c3f53c00eb17a1f2d2e4f9d616
1c7766b6a68a9ff53e568a0c6d5f8fae8cd180de
refs/heads/master
2016-05-19T22:23:27.990086
2016-04-05T10:51:18
2016-04-05T10:51:18
55,475,099
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# John Loeber | contact@johnloeber.com | Python 2.7.10 | April 2016 from plumbing import * for i in range(ITERATIONS): # randomly pick three corners (x,y) to define the triangle # then flip one of the triangle's corners to create a rectangle while True: try: corner_1 = (randint(0,IMG_W), randint(0,IMG_H)) ...
UTF-8
Python
false
false
3,450
py
5
gen-squares.py
4
0.594203
0.532464
0
75
45.013333
160
FuckBrains/python-note-2019
16,466,904,643,801
f5e22fd88f61105abbcacf7dc0edc86656f936d5
c235c8a4a655ec19bd68f521b0dcbed36f44ded8
/code/Python-spider/base/scrapy/proxy_ip/proxy_ip/items.py
ade0e318f32174ee256ba0c296b21052cba9e10e
[]
no_license
https://github.com/FuckBrains/python-note-2019
d6d83b7ac23a178d0805b0ae94b61482db05390b
4d4c2c063fee3fc14a4e043db3c989ad36cfe8fc
refs/heads/master
2023-04-20T16:09:24.240590
2020-03-02T10:55:50
2020-03-02T10:55:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class ProxyIpItem(scrapy.Item): country = scrapy.Field() ip = scrapy.Field() port = scrapy.Field( ) server_location = scrapy.Field() ...
UTF-8
Python
false
false
1,293
py
48
items.py
29
0.561485
0.560712
0
38
33.052632
101
RiderMike27/grafiexpress
13,288,628,839,180
0298984068562f3a294542c7d1ca169e311fce6e
32a790f0b14bc6c95d55af8988f7db7934d890f1
/ventas/autocomplete.py
3576dda4ed833dc6059818439fda5c276717765b
[]
no_license
https://github.com/RiderMike27/grafiexpress
f8212db0b306b8ad78320056acd55768172cf5ff
15e95116599a66f34e65bba95a20417a749b77b8
refs/heads/master
2021-07-09T21:48:02.046315
2020-01-23T11:58:07
2020-01-23T11:58:07
235,783,775
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from dal import autocomplete from django.db.models import Q from ventas.models import * class RemisionAutocomplete(autocomplete.Select2QuerySetView): def get_queryset(self): cliente = self.forwarded.get('cliente', None) if not self.request.user.is_authenticated() or not cliente: retur...
UTF-8
Python
false
false
1,406
py
262
autocomplete.py
211
0.662162
0.659317
0
47
28.93617
125
juliebarron/SoftwareDesign
18,829,136,641,115
7fc1ba53dc47fee8998cf7ae9e3e00109ca64382
a69891f9f457d96beebdc85ce0319eec4bb70a87
/chap08/rotate.py
a661b1fcc7d28bab5b66ab7c39c980a7309c23b7
[]
no_license
https://github.com/juliebarron/SoftwareDesign
2bd40f3d9e70c6bcc967088a92228a845604ab9b
282fb0e0f274706b470c3b1c2bd37effb1992e0e
refs/heads/master
2020-12-24T21:54:39.182849
2013-12-06T04:19:43
2013-12-06T04:19:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def rotate_word(s, n): word = '' for letter in s: u = ord(letter) + n s = chr(u) word += s return word print rotate_word('cheer', 7)
UTF-8
Python
false
false
181
py
12
rotate.py
11
0.458564
0.453039
0
12
14.166667
29
weilancys/qr_gen_gui
8,151,847,954,988
f11c30728a388a89f1783108af273551c4446b4f
3a200602a6394ee7760fa0b6ee5e6b97704b1763
/setup.py
9956d4e2082d6f5ad1ce240e038f0d284bff8de9
[ "MIT" ]
permissive
https://github.com/weilancys/qr_gen_gui
5b167a1280da682ceec87ef9baa997b9f77981c5
93f747c31b6e74a4d1f532d1dde4a34b476c398e
refs/heads/master
2023-08-05T15:19:42.228209
2021-09-21T05:29:03
2021-09-21T05:29:03
408,693,955
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name = 'qr_gen', version = "0.0.1", author="lbcoder", author_email="lbcoder@hotmail.com", description="a simple tool with GUI for generating QR code, for educational purposes.", l...
UTF-8
Python
false
false
820
py
4
setup.py
2
0.589024
0.582927
0
29
27.310345
91