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
JanaRankova/pyladies
16,217,796,512,512
9c56992d10b6aeef854ae5854a83f784dc90a02f
f44a783125105e858843082a2b526d613ba0be01
/06_ulohy/piskvorky1.py
c0bb4690257fe908ae8c14d872fd0f3744ca9f9c
[]
no_license
https://github.com/JanaRankova/pyladies
ab09f1392212f72f2952e73525a93be0ede2484d
ef034b63fbafc5fc76c580fb4999dcf500e1feb8
refs/heads/master
2020-08-15T15:07:46.326357
2019-12-30T18:04:58
2019-12-30T18:04:58
215,361,294
0
0
null
false
2019-12-30T18:05:00
2019-10-15T17:47:29
2019-12-30T18:02:58
2019-12-30T18:04:59
42
0
0
0
Python
false
false
hracie_pole = '--------------------' def vyhodnot(hracie_pole): """Vezme momentalny stav hracieho pola a podla podmienok vo funkcii, urci vyhercu.""" stav = '' if 'xxx' in hracie_pole: stav = 'x' elif 'ooo' in hracie_pole: stav = 'o' elif '-' not in hracie_pole: stav = '!' ...
UTF-8
Python
false
false
393
py
38
piskvorky1.py
33
0.536896
0.536896
0
16
23.625
89
emaballarin/RADLER
14,439,680,063,489
6ea02a30b241e7e2f6833b124fe912327aa2d328
a5b8bc5953b5205419554e0c7e8853cc4ba9a124
/src/radler_ae_pretrain.py
b106376787f535942082637b04c5aef76002ca8d
[ "MIT" ]
permissive
https://github.com/emaballarin/RADLER
c2d8595d72f6465418a34d0f8cacd1db22cdca22
5a059939a2ddb02c49689bd9d867aa9935589faa
refs/heads/master
2020-06-28T18:26:01.567885
2020-06-08T03:28:56
2020-06-08T03:28:56
200,308,007
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ---------------------------------------------------------------------------- # # # # RADLER ~ (adversarially) Robust Adversarial Distributional LEaRner # # ...
UTF-8
Python
false
false
5,265
py
19
radler_ae_pretrain.py
17
0.535613
0.527825
0
155
32.967742
101
Tecplot/handyscripts
5,720,896,458,849
6386954e4995350c85cf6cec422c709145b3531f
4ad94b71e30883d6df07a3277265bd6fb7457ba7
/python/examples/doc_examples/data/dataset_variable_names_tuple.py
aa42eef38f35393f479285754263ab374bdbd3a5
[ "MIT" ]
permissive
https://github.com/Tecplot/handyscripts
7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c
84a89bfecff5479a0319f08eb8aa9df465283830
refs/heads/master
2023-08-22T15:29:22.629644
2023-08-12T01:19:59
2023-08-12T01:19:59
149,826,165
89
64
MIT
false
2022-01-13T01:11:02
2018-09-21T22:47:23
2022-01-12T19:41:56
2022-01-13T01:11:01
12,260
58
47
1
Jupyter Notebook
false
false
from os import path import tecplot as tp examples_dir = tp.session.tecplot_examples_directory() datafile = path.join(examples_dir,'SimpleData','DownDraft.plt') dataset = tp.data.load_tecplot(datafile) result = tp.data.query.probe_at_position(0,0.1,0.3) data = dataset.VariablesNamedTuple(*result.data) # prints: (RHO, ...
UTF-8
Python
false
false
415
py
314
dataset_variable_names_tuple.py
287
0.706024
0.662651
0
12
33.583333
63
qingshangithub/Smart-car-tracking-with-opencv
19,026,705,149,551
458c9de713b120f8e0d9a237eea7de21fa71b2fb
c5e2ca3242cf86c4d6d9e5cff65763784aaaa708
/NNCProject/Lower/motor_multiPro/speedsensor/test.py
48db76f53a3cb325a45c095b83a8b459520f291c
[]
no_license
https://github.com/qingshangithub/Smart-car-tracking-with-opencv
bed8a3417102572963dc35bd6bdb80e226a93142
9d11d9b3f22acfc0f24002e6b420cbdc5d95f9cf
refs/heads/master
2021-04-26T22:57:11.912021
2018-03-05T10:35:30
2018-03-05T10:35:30
123,901,874
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pigpio from time import sleep from multiprocessing import Process p = pigpio.pi() p.set_mode(17, pigpio.INPUT) def cbf(g, l, tick): print(tick) cb = p.callback(17, pigpio.RISING_EDGE, cbf) if __name__ == '__main__': sleep(20)
UTF-8
Python
false
false
244
py
40
test.py
23
0.668033
0.643443
0
13
17.769231
44
usyyy/python
17,557,826,309,209
8a4bf4df04f08e0b9b6458f4ae30f9f027d76afb
80cc3be9871b9d306dcebb1df7ddcbf9284a9524
/fluent-python/my-code/01-python-data-model/01-a-pythonic-deck.py
dbcb61a4ef3eb3acadb3506cfc408f0ae2e4ecac
[]
no_license
https://github.com/usyyy/python
c4d79cb4211eaece960d64649a83db1060df30fa
9532c5b95036342d9345c4ed2d55b16f507dade6
refs/heads/master
2020-01-23T22:01:02.662730
2017-12-06T22:37:02
2017-12-06T22:37:02
74,713,627
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections from random import choice from math import hypot # Example 1.1 - A deck as a sequence of cards Card = collections.namedtuple('Card', ['rank', 'suit']) class FrenchDeck: ranks = [str(n) for n in range(2, 11)] + list('JQKA') suits = 'spades diamonds clubs hearts'.split() def __init__(se...
UTF-8
Python
false
false
1,892
py
59
01-a-pythonic-deck.py
53
0.609937
0.593552
0
94
19.12766
86
detian08/mcl
3,547,642,993,752
ecf7afa8cc47355febbf1968a8783586d0099af2
99e57f00fcaf4469c1c1b79f2d17176aaef9a790
/loan/wizard/__init__.py
73594a5199bed8d87c64e42931c7ccf1dc9fa32c
[]
no_license
https://github.com/detian08/mcl
d007ffd0e869f3bd9a8c74bc8473119901f0de2a
32d61148326c931aca0107c3894061773f287e33
refs/heads/master
2022-03-23T19:36:29.608645
2019-12-11T10:15:50
2019-12-11T10:15:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from . import hr_loan_wizard
UTF-8
Python
false
false
29
py
287
__init__.py
188
0.758621
0.758621
0
1
28
28
akbarlintang/perumahan
16,449,724,778,184
e981ad2971bf95bb5ad26fb4b7a1eb93a1732c2b
73f6ba42a793d18ad5b4c44cfdc278e51aa1b9b0
/perum/views.py
e8828e9cea66ce406f19303c074bfd490595440b
[]
no_license
https://github.com/akbarlintang/perumahan
e14eb922a86c76581d8faae5700ff21e83ba13ee
66c908a382bc32e9b9abc69b3a6f22eab12d8d2c
refs/heads/main
2022-12-30T08:11:23.856824
2020-10-22T15:33:30
2020-10-22T15:33:30
306,377,878
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.db.models import Sum from django.forms import inlineformset_factory from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators impor...
UTF-8
Python
false
false
7,587
py
52
views.py
36
0.734282
0.734282
0
261
28.068966
142
andrebola/main-recsys-cocoplaya
9,191,230,041,151
7bab7a800ddfcf61447566dcc560e4cf4e55df45
245540330cbfe32b2431dd655632c6b0c6200f69
/model_main.py
0f76e4280c19f3e2488e9e0508b02a748bfc80e7
[ "Apache-2.0" ]
permissive
https://github.com/andrebola/main-recsys-cocoplaya
eec1f05186d7acaaebb72a40030126b95ccdb1ce
02df2bebac5ea75006ddbc86404f3ff886af396e
refs/heads/master
2022-12-14T23:42:16.614712
2018-06-30T13:32:09
2018-06-30T13:32:09
139,248,485
3
0
Apache-2.0
false
2021-06-01T22:20:20
2018-06-30T12:40:58
2019-04-18T06:01:25
2021-06-01T22:20:18
8
3
0
1
Python
false
false
import pickle import os import re import json import numpy as np import datetime from sklearn.feature_extraction.text import CountVectorizer, HashingVectorizer from sklearn.feature_extraction import DictVectorizer from sklearn.preprocessing import MinMaxScaler, QuantileTransformer, LabelBinarizer from sklearn.decompos...
UTF-8
Python
false
false
8,148
py
2
model_main.py
1
0.624325
0.607757
0
173
46.098266
139
mwouts/jupytext
6,150,393,177,714
c3b973b70edb356c3f74bcbd0908401f4f680729
6950d17118b97259e181cfc1e6ba3becf6fab753
/tests/notebooks/mirror/ipynb_to_sphinx/sample_rise_notebook_66.py
7de7c1af489b6441c5ac9ea88e3bd9d5f01be008
[ "MIT" ]
permissive
https://github.com/mwouts/jupytext
8f38d974320e17d9bfdc02a91707b5d7cba999cc
28cc7de53d403838caf24c3470df95e94a82d132
refs/heads/main
2023-09-04T04:20:37.143750
2023-08-26T20:39:32
2023-08-26T21:01:59
137,444,487
6,292
451
MIT
false
2023-09-12T14:41:06
2018-06-15T05:25:36
2023-09-12T09:31:00
2023-09-12T14:41:05
24,266
6,135
381
115
Python
false
false
# --- # jupyter: # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- """ A markdown cell """ 1+1 ############################################################################### # Markdown cell two
UTF-8
Python
false
false
242
py
433
sample_rise_notebook_66.py
162
0.371901
0.355372
0
16
14.125
79
niryRemyNimbol/masterarbeit
13,821,204,767,087
759f2070fbcb3e0d26074a24bde9e9152a8e9e33
94bc505d5c9117ab6cae344274dc3391f32856d7
/mrf_lstm_run.py
ebe475508777077742d38835c0079c54a685e19a
[]
no_license
https://github.com/niryRemyNimbol/masterarbeit
3bd6cffe2cf7bc47651c2e23dd2e8819cd541f09
31fe9821ae7957583f723773e09831716c59b254
refs/heads/master
2020-04-05T04:39:47.855887
2019-05-21T12:45:05
2019-05-21T12:45:05
156,560,515
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np import dic import rnn_functions import display_functions import matplotlib.pyplot as plt from sklearn.metrics import r2_score as r2 data_path = '../recon_q_examples/data/Exam52004/Series5/recon_data' mask_path = '../recon_q_examples/data/Exam52004/Series5/mask.dat' map_path =...
UTF-8
Python
false
false
8,009
py
22
mrf_lstm_run.py
21
0.602697
0.520664
0
156
50.339744
138
Godys05/smartSlideshow
3,624,952,447,062
102b441762f07e2ca2a8d64db28192bd7b10c082
548f0a265ddff2199a6a3de98218209bf348c504
/Weather.py
62cf01ff4435be296b4f107063ceddc2020cb583
[]
no_license
https://github.com/Godys05/smartSlideshow
d611707ac5276ee4917ec3d5f37584f603d33a19
397220995a45f60f3cbae31653f943622b3ccb2f
refs/heads/master
2022-04-22T18:13:33.256990
2020-04-23T18:09:26
2020-04-23T18:09:26
258,274,945
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math class Weather: def __init__(self, main='s'): self.main = main
UTF-8
Python
false
false
85
py
6
Weather.py
5
0.588235
0.588235
0
4
20.5
33
PGCodehub/Image_Classification_Project
13,804,024,913,357
d22ede76ed32e301286fa03ffdb7cf029b40ecf8
a41dd194efad4407fae4ffb646b84e4222cd487d
/predict.py
24ad1d3b01e3218f46950b614af4dc0b577a12af
[]
no_license
https://github.com/PGCodehub/Image_Classification_Project
f457c6eb7f88f953b9cf3f6409001abe3d0b5dd6
af1646588abda01f1a43f999ae5c9db3a31ccc2a
refs/heads/master
2020-04-25T12:05:41.235293
2019-02-26T19:04:58
2019-02-26T19:04:58
172,767,284
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Created by pramod G #All imports from time import time,sleep import argparse import torch from torch import nn, optim import torch.nn.functional as F from torchvision import datasets, transforms, models import numpy as np import matplotlib.pyplot as plt from PIL import Image import json #for keeping workspace l...
UTF-8
Python
false
false
6,961
py
3
predict.py
2
0.601063
0.588278
0
216
31.226852
262
ByteLorde/RSEnterprise
13,958,643,741,172
044256da2e98d9101c671edc4e7b257061064509
f4fcceabcadc8dfb4d06cad2e8a5a6535253c0b5
/src/base/modules/Drawable/Label/Label.py
b2484e6d65d936cdc802b29239a121b3ca8e94ea
[]
no_license
https://github.com/ByteLorde/RSEnterprise
7fa56ce9a78ed6e6609a1045cc2c805ab277000d
7ceb1e46339dc6c8f0e212fcfc95edf25aac7fcf
refs/heads/master
2020-03-23T14:15:37.691099
2019-09-04T18:15:16
2019-09-04T18:15:16
141,665,879
0
1
null
false
2018-08-08T02:14:01
2018-07-20T05:05:32
2018-07-25T01:05:42
2018-08-08T02:14:01
1,679
0
1
0
Python
false
null
import cv2 from src.base.modules.Drawable.Color.Color import Color class Label: HERSHEY_SIMPLEX = 0 HERSHEY_PLAIN = 1 HERSHEY_DUPLEX = 2 HERSHEY_COMPLEX = 3 HERSHEY_TRIPLEX = 4 HERSHEY_COMPLEX_SMALL = 5 HERSHEY_SCRIPT_SIMPLEX = 6 HERSHEY_SCRIPT_COMPLEX = 7 FONT_ITALIC = 16 ...
UTF-8
Python
false
false
1,380
py
33
Label.py
32
0.621739
0.61087
0
59
22.389831
97
typemegan/Python
18,124,762,005,692
bfb6cdd76314a13dba63f9e91d7096ff7d8805fe
af4d2a0cefb304b5f38a4f0c170b799d7bb8f059
/CorePythonProgramming_2nd/ch02_start/print_test.py
839073f2c92b972766270b7df77ae28380b530b7
[]
no_license
https://github.com/typemegan/Python
e577842447c81dcb980198b33f844b4fab888517
9bfc48ddc3b050e629a9b84b41df57f35f990d2e
refs/heads/master
2020-12-13T18:25:13.379953
2019-06-07T04:01:24
2019-06-07T04:01:24
37,420,605
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 num = 10 decorate = '*'*num + 'ex%d' + '*'*num #-----------------ex8:逗号----------------- title = decorate % 8 print title print "Mary had a little lamb." print "Its fleece was white as %s." % 'snow' print "And everywhere that Mary went." print "."*10 end1 = 'C' end2 = 'h' end3 = 'e' end4 = 'e' end5 =...
UTF-8
Python
false
false
2,511
py
274
print_test.py
263
0.591264
0.568276
0
122
16.819672
72
fossabot/Airflow-DAG
7,679,401,533,495
dbfc6c003c1468115b1a63beb9d9a4ba791f5b70
09eebd3cadc58f0765602d29f603db4528f2873e
/dags/bash_test_triggers.py
b49ffb5cc86d228aae535787c603cbac57da3517
[ "Apache-2.0" ]
permissive
https://github.com/fossabot/Airflow-DAG
ef52675b770870e36e579e8816a19626f00deac9
feb015251093afbb2d51325e56f7764a1ad8cdc9
refs/heads/master
2020-06-17T07:02:04.223922
2019-07-08T15:22:39
2019-07-08T15:22:39
195,838,983
0
0
Apache-2.0
true
2019-07-08T15:22:34
2019-07-08T15:22:34
2019-07-06T21:17:41
2019-07-06T21:17:40
45
0
0
0
null
false
false
from airflow import DAG from airflow.operators.bash_operator import BashOperator from datetime import datetime, timedelta # Define the DAG... # Create the default arguments from airflow.operators.dagrun_operator import TriggerDagRunOperator default_args = { 'owner': 'hashmap-airflow', 'depends_on_past': Fals...
UTF-8
Python
false
false
2,667
py
5
bash_test_triggers.py
2
0.67754
0.664792
0
90
28.633333
92
DaiJitao/web_spammer_detection
15,693,810,537,107
2a9d6814c583645399bdfb8a9f75b5443eb5a202
a04c62fe53387f41e893c86d3603f65ff1a70ae0
/server/data_annotation/semantic_similarity.py
bf6650eda6d2ef46c5bf211ce9ba7427dc9d9551
[]
no_license
https://github.com/DaiJitao/web_spammer_detection
233f2b228cff6a1c71745179ee313f9daaf287cb
5d6c72dbdabdbb97ae0bf05468838a435dc4b3a5
refs/heads/master
2020-05-25T23:29:21.309615
2019-07-22T01:01:07
2019-07-22T01:01:07
188,034,797
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from conf.config import stop_words_file, fanChengCheng_db, redis_host, redis_port, incsv_fanChengCheng, zhaiTianLin_db, \ incsv_haiTianLin, jueDiQiuSheng_db, incsv_jueDiQiuSheng, zhangDanFeng_db, incsv_zhangDanFeng import jieba_fast as jieba from tools.utils import list_all_users_text, RedisClient, list_all_users, ...
UTF-8
Python
false
false
3,808
py
27
semantic_similarity.py
18
0.546652
0.540889
0
117
30.153846
121
sanyamjain335/SNS-Assignment
14,293,651,166,186
0bf98e82a9de440af428448c3e633aee30776ad0
5d2c6c4072510d1883ee30ddf7da2c263598c47c
/serverlib.py
503371a426ed80babb4ebb5ea28fca97cfb24437
[]
no_license
https://github.com/sanyamjain335/SNS-Assignment
0ce1f3d2433872b9b4d97d0f3ca1e4684d826654
3e5d4b39eba7b8c6f46f5ce5676570bcd50487e8
refs/heads/main
2023-02-25T02:46:41.875400
2021-01-27T13:34:51
2021-01-27T13:34:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import clientlib import socket,pickle import json import random import crypto import time HOST = '127.0.0.1' PORT = 54005 class group: def __init__(self,name): self.grname = name self.membercount=0 self.memberdic = {} self.nounce=str(random.randint(0,655365)) def addmember(sel...
UTF-8
Python
false
false
4,170
py
11
serverlib.py
6
0.509353
0.49952
0
103
39.31068
171
GuilhermeVBeira/Aulas-Django
5,076,651,351,419
6edfb7e032f7c49a38e8e464c7e6e7df6747afe3
af3eae2d55e83622bdbeb2188079d2feb98eb617
/aula11/apps.py
3fe432c7a4d3917373e18b06eb82b338d9f30f86
[]
no_license
https://github.com/GuilhermeVBeira/Aulas-Django
16d1582040d83dd5b6b8f6194a8261be63a95569
80e784fdc2d8a6903b44463f8b4ade514bd809f1
refs/heads/master
2022-12-06T09:03:27.858413
2021-06-09T19:32:36
2021-06-09T19:32:36
240,728,073
2
2
null
false
2022-11-22T05:26:37
2020-02-15T14:36:02
2021-06-09T19:32:39
2022-11-22T05:26:34
981
2
0
2
Python
false
false
from django.apps import AppConfig class Aula11Config(AppConfig): name = "aula11" def ready(self): import aula11.signals
UTF-8
Python
false
false
139
py
87
apps.py
75
0.690647
0.647482
0
8
16.375
33
massimo-nocentini/microkanrenpy
10,024,453,677,728
63eb372d08729adb11b5de4c71f5968728509e00
6960e497327f51d99e82acf899fa45b4bc38af62
/src/sexp_test.py
afba8136c973807a09072b3644012801ad5ef273
[]
no_license
https://github.com/massimo-nocentini/microkanrenpy
6a635f02d6bb645e1d0eb0b2abc5282934a49589
62c71ae015c0ecc0330d70a2eeb6084430a5bb47
refs/heads/master
2021-06-07T06:02:06.137934
2020-12-04T10:47:31
2020-12-04T10:48:03
90,005,342
11
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from functools import partialmethod from muk.sexp import * class sexp_tests(unittest.TestCase): def test_null_list(self): self.isomorphism(l=[], c=[]) def test_singleton_proper_list_to_cons(self): self.isomorphism(l=[1], c=cons(1, [])) def test_plain_proper_lis...
UTF-8
Python
false
false
2,061
py
21
sexp_test.py
7
0.60165
0.575449
0
56
35.714286
106
yuexishuihan/yuexishuihan.github.io
6,030,134,100,921
590f0e66f61cbc5d93a1d95342fe1e31b0a6c6fc
0d437f1bcedbdf4e5e0e85d325062d6dc09825d6
/Socket通信/udp聊天_1.py
62b1fba846d6337957fd982ea6f082e5f2632ae3
[]
no_license
https://github.com/yuexishuihan/yuexishuihan.github.io
dbe862cea471d756d7770168aab9b82794c63a96
ad9af9cc9481e0fdd4695b8c872f5c2ddd9ea51b
refs/heads/master
2020-04-09T06:31:27.285478
2019-02-27T08:31:31
2019-02-27T08:31:31
160,116,540
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket def send_msg(udp_socket): '''发送消息''' # 获取对方的IP/PORT dest_ip = input("请输入对方IP:") dest_port = int(input("请输入对方端口号:")) # socket套接字可以同时进行收发数据 # 2.使用套接字发送数据 # 从键盘获取数据 send_date = input("请输入要发送的内容:") udp_socket.sendto(send_date.encode("utf-8"),(dest_ip,dest_port)) def rec...
UTF-8
Python
false
false
1,382
py
57
udp聊天_1.py
55
0.506318
0.486462
0
55
19.163636
69
wlWarren/mail_classifizer
3,530,463,141,284
207730e79a2c2a57bfa23dd338c0c3b309663b9a
959983112b37db56c0ee7f0e3940f9aad99fd169
/word_vector.py
037ae9ef56a1b2ee2667adb855c53c546f2fbea5
[]
no_license
https://github.com/wlWarren/mail_classifizer
3e102d89e02e241faf2be78fb84cc3e274ee6716
68202f7b88d229e22a309cfe24501fa81a5006be
refs/heads/master
2021-08-30T05:36:09.306868
2017-12-16T06:28:00
2017-12-16T06:28:00
114,438,000
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# encoding:utf-8 import jieba import jieba.posseg as pseg import sklearn.feature_extraction.text import json from scipy import sparse, io from sklearn.externals import joblib # 非 tf-idf 词向量 class Counter_Vectorizer(sklearn.feature_extraction.text.CountVectorizer): def build_analyzer(self): def analyzer(doc...
UTF-8
Python
false
false
2,415
py
13
word_vector.py
8
0.633318
0.625057
0
68
31.044118
79
dellielo/katatest
3,221,225,484,093
272dd0edf4b41ad62cb7879172ffc613beb7ed51
b882ffe25d7aadd0286bb9f00d8d7df0b3ad29db
/tests/test_katatest.py
b53c014cb0fdbbfb13fde097d480c2874c57b8f3
[ "MIT" ]
permissive
https://github.com/dellielo/katatest
36a503a0fa5790fa11f567bb11c9fd939f210aaa
83f4499a0e3f9d950ebc6c8bd02604181836d23a
refs/heads/master
2020-09-09T15:07:34.091054
2019-11-18T13:09:46
2019-11-18T13:09:46
221,474,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from katatest.cli import main def test_basics(): assert_equal(0, price([])) assert_equal(8, price([1])) assert_equal(8, price([2])) assert_equal(8, price([3])) assert_equal(8, price([4])) assert_equal(8 * 3, price([1, 1, 1])) def test_simple_discount(): assert_equal(8 * 2 * 0.95, price([0, 1])) asse...
UTF-8
Python
false
false
1,048
py
5
test_katatest.py
1
0.483779
0.351145
0
37
27.297297
73
caiwjohn/embedded_pred
8,615,704,428,635
7a955cc141a044f71276acf6f740b228647d0cc6
ec2dd6cb985439bd8f70be558900a8e2f119f691
/get_embeddings.py
141cea5b62e6ec098b67801c32f265d16e9ecfa3
[ "MIT" ]
permissive
https://github.com/caiwjohn/embedded_pred
5512c758fe5715ea14fce2131c563c85bab2879d
89c2d2bfb9db4589afc26dbb74faf5926fe36b84
refs/heads/master
2022-07-17T22:46:51.432284
2020-05-18T19:09:29
2020-05-18T19:09:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from keras.models import Model, load_model from load_data import load_csv, get_onehot import numpy as np import csv #Saves <ex_per_class> sample embeddings per class #EDIT THESE PARAMETERS (see README)------------------------------------- model_name = 'my_model' num_classes = 100 ex_per_class = 100 data_file = 'my_d...
UTF-8
Python
false
false
1,425
py
10
get_embeddings.py
9
0.633684
0.618947
0
52
26.403846
118
ten2net/Leetcode-solution
13,365,938,256,520
9bc64a4a24b73344f6206f6ba0ffc58b8e991bb8
51f7752df6a6e2b4dcee7ea585bacf7b9cb5ea14
/116. Populating Next Right Pointers in Each Node.py
7a45110922629443243db1374ea90bb47eb2f6ff
[ "MIT" ]
permissive
https://github.com/ten2net/Leetcode-solution
a9ba7235987c0fdd1860d88ae461a4ea1fb979e4
97e84daa2926a9cd2036e0dee36dfe5773114b15
refs/heads/master
2021-01-21T20:29:42.570931
2016-12-06T10:29:18
2016-12-06T10:29:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for binary tree with next pointer. # class TreeLinkNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # self.next = None class Solution(object): def connect(self, root): """ :type root: TreeLinkNode :...
UTF-8
Python
false
false
992
py
223
116. Populating Next Right Pointers in Each Node.py
222
0.497984
0.490927
0
37
25.837838
47
TKhyarn/flappy_unity_api
2,920,577,769,163
8dd117641619382947a46c962849336b3359c824
f0dad14660be9c32208cbeaeae287504cad11b68
/run.py
3de91072667b5c1a96f16d85a74c00e1303bd17c
[]
no_license
https://github.com/TKhyarn/flappy_unity_api
477d68f075eb6f4e1144fb09506a4718d201b1aa
3c786b315fe09a3e2a9329a67f6287086165d0cc
refs/heads/master
2021-08-16T22:53:34.155948
2017-11-20T13:27:58
2017-11-20T13:27:58
110,249,040
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!flask/bin/python from app import app # not suitable for prod environment app.run(host='0.0.0.0', debug=True)
UTF-8
Python
false
false
110
py
5
run.py
4
0.745455
0.709091
0
4
26.75
35
we333/python_study
11,381,663,368,173
7edc62dd1e5049e3842667052381353ed2050d3e
cf5c2fde7dc38e33457f063b807a728d137bd92e
/sql/__init__.py
7a2f90013ec1c083a73cbae13ff989b9a2dcc909
[]
no_license
https://github.com/we333/python_study
bde9b5f5f6953c49fba2588ceafdb31401e612de
a1c4a87c28f545b205d7d3a64393649637ab1f18
refs/heads/master
2018-09-10T03:33:54.635543
2016-07-17T10:53:57
2016-07-17T10:53:57
62,631,352
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!usr/bin/env python #_*_ coding:utf-8 _*_ ''' Created on 2016年7月12日 @author: wantone '''
UTF-8
Python
false
false
108
py
39
__init__.py
32
0.558824
0.480392
0
8
10.5
21
archit-dwevedi/parking_lot
13,907,104,130,496
3f3e328804aff3eb5ee034e8fa65260baca9627f
e33c8af70e79622b0f4818854c13e5e55aaab437
/parking/managers.py
a91f0d05a24d78e084a31797a37db0e7f2241e17
[]
no_license
https://github.com/archit-dwevedi/parking_lot
a4f275b147e5cdba2a7cc364e0537815582d2737
e6b5244ec6740b0b32c67ec2434713dcf0312931
refs/heads/main
2023-07-17T05:13:47.097863
2021-08-09T13:50:59
2021-08-09T13:50:59
394,254,205
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class ParkingQuerySet(models.QuerySet): def get_empty_parking_space(self, parking, vechile_type): from .models import ParkingSpace return ParkingSpace.objects.filter( parking=parking, vechile_type=vechile_type, parked_car__isnull=Tr...
UTF-8
Python
false
false
2,037
py
22
managers.py
20
0.617084
0.615611
0
66
29.863636
87
tzyl/hackerrank-python
9,783,935,517,607
2d483fb7e5ec427defd4b0112eaa2737113c7a59
8862efe34f13477aafe388d30e3b8a5fc8bab253
/week_of_code/30/candy_replenishing_robot.py
a505f80439fd9717a6e06f4686f09ffe22b588f2
[]
no_license
https://github.com/tzyl/hackerrank-python
71a80cbd1a0c931e5112e7c0cdb2e339c4e50eb3
f3f2990de738403bccaedd4005368aa3456b94d3
refs/heads/master
2021-05-14T11:32:44.268500
2018-01-05T12:49:59
2018-01-05T12:49:59
116,384,579
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n, t = input().strip().split(' ') n, t = [int(n), int(t)] c = [int(s) for s in input().strip().split()] candies = n added = 0 for i in range(t - 1): candies -= c[i] if candies < 5: added += n - candies candies = n print(added)
UTF-8
Python
false
false
262
py
44
candy_replenishing_robot.py
44
0.496183
0.484733
0
11
21.818182
45
leocvml/chatBot
9,594,956,951,913
fdf963d0fcadf4c018a8720e7e819ac0ef2a9721
be45b42dae8f1654051fed2187f1dabffaf132cb
/chatbotFinalProject/discriminator.py
1975fd8724a8b23fae44ac0ff26c4e577ca1b476
[]
no_license
https://github.com/leocvml/chatBot
a97198e83ecdb59bacd7481d56119ecc6bf548fc
38863f7fa737e4dfb762d186d215dda75c921955
refs/heads/master
2021-07-05T06:04:58.287319
2019-01-24T03:12:10
2019-01-24T03:12:10
131,238,684
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append('..') import collections import mxnet as mx from mxnet import autograd, gluon, init, metric, nd from mxnet.gluon import loss as gloss, nn, rnn from mxnet.contrib import text import os import random import zipfile demo = True if demo: with zipfile.ZipFile('data/aclImdb_tiny.z...
UTF-8
Python
false
false
6,820
py
5
discriminator.py
3
0.58271
0.573587
0
197
31.949239
77
atlpatchin/bookstore
8,366,596,340,691
60aa8196c85ed44311b592a47e30552a63ac0ace
50e60e5343561cc660624b6966e52c5d78480a71
/bookstores/comments/urls.py
62fb6bb1773bdc9a469dc173b7bdcb4779cbcf98
[]
no_license
https://github.com/atlpatchin/bookstore
25917c4b70c706a4d5a2230ec9ed6a0e93a43248
7ef2c10af63197a1cf0d66fb1533bbf431a48066
refs/heads/master
2020-04-23T21:16:19.343309
2019-02-20T06:01:35
2019-02-20T06:01:35
171,464,859
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from cart import views urlpatterns = [ ]
UTF-8
Python
false
false
77
py
10
urls.py
7
0.74026
0.74026
0
6
11.666667
32
Perf-Org-5KRepos/aerial_wildlife_detection
1,752,346,666,487
3757784b54d55727e45c921df668a8e44aa14091
a5ca5b46535d3db0a9490c9f476db4da755540c7
/projectCreation/migrate_aide.py
882d485b92c2d3297fb0c9d4f92604e3653b0b15
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
https://github.com/Perf-Org-5KRepos/aerial_wildlife_detection
a6f33d3c64878373dbee7b305ad735e1ec829a78
7f9fc9236dd89b9ff73902e7001b5fd40d428971
refs/heads/master
2022-10-19T16:38:20.584294
2020-06-08T17:41:29
2020-06-08T17:41:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Run this file whenever you update AIDE to bring your existing project setup up-to-date with respect to changes due to newer versions. 2019-20 Benjamin Kellenberger ''' import os import argparse MODIFICATIONS_sql = [ 'ALTER TABLE {schema}.annotation ADD COLUMN IF NOT EXISTS meta VARCHAR; ALTE...
UTF-8
Python
false
false
2,030
py
55
migrate_aide.py
39
0.713793
0.709852
0
48
41.3125
171
StanfordAHA/lake
7,610,682,053,653
2a85bfdce47b70abdd79d002247bcbd94a1c99e7
c648f20f35a37f0330cf2cbb0cb58ff99e2dc77f
/run_lake.py
c449dc4f5971558dff857f9163c61faefb339b35
[ "BSD-3-Clause" ]
permissive
https://github.com/StanfordAHA/lake
8aeef4d7d627137de96e70fa5dc2c9e27c1158da
7ba7e047af450545636b669bb368e0cfaf3a2eb4
refs/heads/master
2023-09-01T02:39:32.676499
2023-08-07T18:25:36
2023-08-07T18:25:36
199,787,393
15
2
BSD-3-Clause
false
2023-08-29T18:21:26
2019-07-31T05:45:32
2022-10-13T13:09:43
2023-08-29T18:21:26
4,235
14
2
18
Python
false
false
import kratos from lake.modules.passthru import * from lake.top.lake_top import * from lake.modules.sram_stub import * #lake_top = LakeTop(16) #lake_top_src = kratos.verilog(lake_top, optimize_passthrough=False) #print(lake_top_src["LakeTop"]) sramstub = SRAMStub(16, 512) sramstub_src = kratos.verilog(sramstub, optim...
UTF-8
Python
false
false
375
py
209
run_lake.py
202
0.765333
0.746667
0
12
30.25
68
echo9527git/jpress_selenium
10,333,691,361,336
0cf61cda33a3a0f7dcb2ab2a66bcdb64634d7383
fdd70d7c0b293d66ca88d47ba2a3d2437db051d5
/util/my_js_utils.py
d6d5c7f1a5dc429c429b1bfb03094486b6e76da0
[]
no_license
https://github.com/echo9527git/jpress_selenium
aa88c2cf72c606fe65cc697859c96f2ec46987a8
a7bc4f71520de3fa8754a686f16d0e975b4cf3df
refs/heads/master
2022-12-08T07:36:56.767594
2020-08-31T00:03:56
2020-08-31T00:03:56
284,938,976
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver from time import sleep,strftime,localtime,time import os def _set_index(index=None): """ index判断赋值 :param index: :return: """ if index is None: index = 0 else: index = index return index def clear(driver: webdriver, css,index=None, describe=...
UTF-8
Python
false
false
6,338
py
11
my_js_utils.py
9
0.615517
0.611494
0
195
25.774359
96
miruts-xz/BeXAI
472,446,420,844
f98af63fa28b95cc3790a5f7142cfadc77aa96bf
48e73339e7c99b452dcdeef901ece52be3a7ac57
/src/method.py
4bdfb2ecbf1c3439bc3a6b97a3922abdc825decd
[]
no_license
https://github.com/miruts-xz/BeXAI
d154b035384b93a913cc963f4f15650cdccfa5b3
8ee51a2befc8b1d65cad17fa006d3014a03ffcaa
refs/heads/master
2023-06-19T18:27:17.563681
2021-07-21T14:00:32
2021-07-21T14:00:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Created by mire on 7/21/21. Copyright 2021, All rights reserved. import shap import methods supported_methods = { 'shap': methods.Shape, 'lime': methods.Lime, 'kernelshap': methods.KernelShap } class Explainer: def __init__(self, name): assert (name in supported_methods[name].keys(), ...
UTF-8
Python
false
false
532
py
9
method.py
9
0.659774
0.642857
0
18
28.555556
116
Meet2147/yt_download
17,428,977,288,062
8665f739effb25f94d6a7ca36a6da44cb0228227
8973cce5e27e44c13505f08b69e57dc906d2a0b9
/app.py
bd62b2eb11659b4a8ee772a676b2583ddac96a78
[ "MIT" ]
permissive
https://github.com/Meet2147/yt_download
236557468f0200c454c394193eb8b1c9ded08a1d
3277a1d682dcb57ca30f268b0e6486762f643f09
refs/heads/main
2023-04-30T08:48:23.971366
2021-05-09T03:30:30
2021-05-09T03:30:30
365,654,704
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template, request, session, redirect, send_file, url_for from pytube import YouTube app = Flask(__name__) app.config['SECRET_KEY'] = "AlmastYogi" def download(url): video = url.streams.first() filepath = video.download() return filepath @app.route("/", methods=['GET', 'PO...
UTF-8
Python
false
false
922
py
2
app.py
1
0.631236
0.631236
0
30
29.733333
88
cliftonpalmer/python-diff
11,647,951,328,977
aeb6403fb6424bc725671b1a2407adc5583744b2
c4d3f09408c7bbd46e8e72e063239edc0f0d9c22
/diff.py
bff8f17954c3013729ff36b7cc9e2690b59e9866
[]
no_license
https://github.com/cliftonpalmer/python-diff
da6fabd2499f4c70d3b7012b088b5a69bdc0bf01
445c4c36b15b35553988c1a8c99790e330511ffc
refs/heads/master
2020-04-12T12:28:31.423480
2019-10-18T01:43:36
2019-10-18T01:43:36
162,492,760
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def index_by_newlines(a, sign): return [ [i, v, sign] for i,v in enumerate(a.split("\n")) ] def diff(a, b): # separate left and right into arrays indexed by line a = index_by_newlines(a, '-') b = index_by_newlines(b, '+') # remove matching lines for va in a[:]: for vb in b: ...
UTF-8
Python
false
false
630
py
2
diff.py
1
0.5
0.492063
0
33
18.090909
66
JayjeetAtGithub/spack
523,986,051,252
4669b07c5b5df14e9a0812549dc24c2162cc2826
fb2cc597f319380d228fc15c4008760a82203687
/var/spack/repos/builtin/packages/py-geocube/package.py
123a8149e46cb1582260f56f466cffcc25657712
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
https://github.com/JayjeetAtGithub/spack
c41b5debcbe139abb2eab626210505b7f930d637
6c2df00443a2cd092446c7d84431ae37e64e4296
refs/heads/develop
2023-03-21T02:35:58.391230
2022-10-08T22:57:45
2022-10-08T22:57:45
205,764,532
0
0
MIT
true
2019-09-02T02:44:48
2019-09-02T02:44:47
2019-07-12T08:48:51
2019-07-12T08:48:49
15
0
0
0
null
false
false
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyGeocube(PythonPackage): """Tool to convert geopandas vector data into rasterized...
UTF-8
Python
false
false
1,587
py
8,218
package.py
6,591
0.659735
0.550725
0
34
45.676471
96
creedasaurus/stoopclub_Chat
7,310,034,383,448
be14609a6755c502f1b7798f4ede942b793dff64
98d7ba89d515f3abd8ad0812d61baf3063a166ba
/hello_stoopers.py
f13c6206a2aaf34ae4ebaf1d01ff03826e990be7
[]
no_license
https://github.com/creedasaurus/stoopclub_Chat
ff5b6c57d61bb05c59e4bcc360d1c3c272c0a4e9
042011b5523170a8d732f4c6e42357acf9cefa07
refs/heads/master
2016-08-11T14:56:34.252603
2015-11-04T08:16:55
2015-11-04T08:16:55
45,523,127
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
newNumber = 26 print "Hello Stoop Troopers"
UTF-8
Python
false
false
43
py
2
hello_stoopers.py
1
0.790698
0.744186
0
2
21
28
dimonrtm/ml_
17,308,718,214,466
4629581944a644b721714440da8b32d62a774bc9
9f6b2cf2a8a12c3cfa97dabf548973837eaf9043
/Программирование на Python/Погружение в Python/Задания/Неделя1/Задание1/solution.py
d9c47ef1c8b312b76f425b3f4e98c74bef5688e9
[]
no_license
https://github.com/dimonrtm/ml_
56b242caed4d60d40befb3f5235e43ac40f6a139
49e211ec83115bfc90ad44854b7759df31d3de33
refs/heads/master
2020-08-31T05:20:43.477108
2020-07-04T18:22:21
2020-07-04T18:22:21
218,602,334
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys digit_string=sys.argv[1] sum=0 for number in digit_string: sum+=int(number) print(sum)
UTF-8
Python
false
false
101
py
88
solution.py
24
0.732673
0.712871
0
6
16
27
Plavit/cs50ai
3,075,196,620,010
53f373ae815bff538628576a6b3b332c4ec599ea
5053e4440b8c31ab65a35497da279399f03cb359
/Project 2a - Pagerank/pagerank.py
86ee864b3f2de49b511946ebd9bbdc24bc06a2ba
[]
no_license
https://github.com/Plavit/cs50ai
b8770b86e25774bf9b45abd85a60e90476ca9cf0
ef1024ee0b36bbceaaebe443915fb0498752221b
refs/heads/master
2023-02-10T12:12:37.347996
2021-01-03T19:12:17
2021-01-03T19:12:17
323,460,918
8
1
null
false
2021-01-02T11:09:22
2020-12-21T22:21:31
2021-01-02T11:09:11
2021-01-02T11:09:22
23,804
0
0
3
Python
false
false
import copy import os import random import re import sys DAMPING = 0.85 SAMPLES = 10000 def main(): if len(sys.argv) != 2: sys.exit("Usage: python pagerank.py corpus") corpus = crawl(sys.argv[1]) ranks = sample_pagerank(corpus, DAMPING, SAMPLES) print(f"PageRank Results from Sampling (n = {SA...
UTF-8
Python
false
false
5,690
py
7
pagerank.py
6
0.627592
0.618981
0
173
31.890173
108
yomhub/Tensorflow_research
4,174,708,258,760
baf840af748c2230fef4231bff5f47bedaa51311
de86f9f9dd620212c96fc3bbc28bdbc7432aa237
/lib/tflib/log_tools.py
7fc6066e1c69ff10ecfe8c364bac1338fc3ec9fa
[]
no_license
https://github.com/yomhub/Tensorflow_research
235fa5513abeea64e44291e6705fb136cf108af4
2f8102039168ade5481745e4aa59c7e6a0cba59b
refs/heads/master
2022-11-24T05:08:11.009741
2020-06-14T01:21:54
2020-06-14T01:21:54
280,804,212
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from matplotlib import colors as mcolors from matplotlib.collections import PolyCollection from datetime import datetime from mpl_toolkits.mplot3d import Axes3D __DEF_LINE_STY = [ 'solid', # _____ 'dotted', # ....... 'dashdot',...
UTF-8
Python
false
false
11,644
py
31
log_tools.py
27
0.594297
0.575146
0
384
29.325521
104
luoxuwei/Compiler
13,572,096,656,598
e798e369bd133ee0e0a105ffe477eccbf6551d0c
7588f030cb6f5c2692c14ec3caedf9f11a312cb1
/pythonvm/test_case/27_test_allocate_instance.py
e44cfaa1d69dcdaaa1380f617f85f94bb2905ad8
[]
no_license
https://github.com/luoxuwei/Compiler
cceee6af426ba9d9b2f13d22fcf6e06a692953ba
d11da97ab9ef2f1a61d0244d0080c6b3f90fd475
refs/heads/master
2022-12-12T12:20:27.988873
2022-11-26T16:29:00
2022-11-26T16:29:00
252,653,543
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
a = int() print(a) b = str() print(b) c = list() print(c) d = dict() print(d)
UTF-8
Python
false
false
78
py
271
27_test_allocate_instance.py
217
0.538462
0.538462
0
8
8.75
10
ajevnisek/FederatedLearning
10,144,712,802,245
857d19b5a0240b13be940fe037d5d78f1c15582f
5e6895248c79c6f5860e371edb9d325aa26f92f2
/models/influence.py
8f0427a4c3780fd17d901050b4d16f2634a05511
[]
no_license
https://github.com/ajevnisek/FederatedLearning
c613e743ef1368b75e77d0cd69419745e3e40e8e
6330befb1629a5f652bc1c1fea80f1830aec00a0
refs/heads/master
2022-04-13T16:29:10.895522
2019-12-21T08:12:05
2019-12-21T08:12:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import six import torch from torch.autograd import grad from torch.autograd import Variable import torch.nn.functional as F from models import utility import argparse import copy import numpy as np from utils.options import args_parser import pickle from torch.utils import data from torch.utils.data impor...
UTF-8
Python
false
false
1,987
py
13
influence.py
12
0.65224
0.6462
0
48
39.354167
125
codingpurush/class11python
6,021,544,187,161
a2103a25913f074a8715c7f50b2ad8ef97d51033
48eb7ce8a065e4b851bd0eefa70d14a91af2d800
/fibonnacci_Nth.py
d5bd0b8fee5516792da25fb3758d5c0627f14282
[]
no_license
https://github.com/codingpurush/class11python
c67d03048684e1cf4e28e4d7c0708abe31bf0f5d
66255e7ba597eb369bea920deb901875b19a8613
refs/heads/master
2020-12-29T06:10:17.134618
2020-02-06T13:15:24
2020-02-06T13:15:24
238,485,561
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#PRINT Nth FIBONACCI NUMBER x=int(input()) a=-1 b=1 c=a+b for i in range(2,x+1): #print(c) a=b b=c c=a+b if(i==x): print(c)
UTF-8
Python
false
false
129
py
10
fibonnacci_Nth.py
10
0.589147
0.55814
0
12
9.75
27
marikapartyka/lungs
3,083,786,523,044
77ff5618a1d32611022a7c2d0cc659d3b34d89e4
1c4c31e86e4b9f92d558722d04d9f436e4b078ef
/explain.py
fff593ead9d3586c5e0b2aa59c022f8ce22999a8
[]
no_license
https://github.com/marikapartyka/lungs
fc2b2213cb6033c23327ae686e65a3e12735f609
6589b1a606d0a0b5ec0966e1bef87dec0a15f7fc
refs/heads/master
2023-01-09T14:31:12.279023
2020-11-11T19:17:07
2020-11-11T19:17:07
312,063,687
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 from _train import data, X, y, pipeline, pipeline_for_encoded_data,encoded_X import pandas as pd import sklearn import numpy as np from lime import lime_tabular import dalex as dx model = pipeline X_train, X_test, y_train, y_test = sklearn.model_selection.train_test_split(...
UTF-8
Python
false
false
3,170
py
9
explain.py
4
0.623659
0.613249
0
111
27.495495
101
Alpine-DAV/ascent
17,669,495,464,138
a3aed1e909ae3a9ef53150b14bb9af503f9c5445
5de7df0be411b4bad61f927cae845bdb8223308f
/src/examples/tutorial/ascent_intro/python/conduit_example2.py
cfd0910e805659a8284114c8ba8d540e08153dec
[ "BSD-3-Clause", "Zlib" ]
permissive
https://github.com/Alpine-DAV/ascent
cb40429167a93c62f78fe650a0121258be279162
e52b7bb8c9fd131f2fd49edf58037cc5ef77a166
refs/heads/develop
2023-09-06T07:57:11.558238
2023-08-25T16:05:31
2023-08-25T16:05:31
81,366,855
151
61
NOASSERTION
false
2023-09-13T19:31:09
2017-02-08T19:21:22
2023-09-10T23:54:29
2023-09-13T19:31:09
111,927
155
58
166
C++
false
false
############################################################################### # Copyright (c) Lawrence Livermore National Security, LLC and other Ascent # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Ascent. #########...
UTF-8
Python
false
false
551
py
1,345
conduit_example2.py
1,035
0.540835
0.528131
0
15
35.666667
79
enverygtlr/simple-Ray-tracer-in-webgl
12,756,052,870,415
c85bb8a7144c6d363bdadc2d288269339a40cee1
d5c10a5e222e5e6bee50d6d296e129986384ea02
/new/untitled folder/untitled folder/pythonscript.py
13e65853240c0a99cbbd02df3d18bfde1c97b337
[]
no_license
https://github.com/enverygtlr/simple-Ray-tracer-in-webgl
37c48210e3a7e4e6de52d3bc25c62836ec2e06b6
5604e3910954d91c1cf2c9db22e9bda1c8162fbc
refs/heads/master
2023-02-24T15:58:39.122964
2021-01-27T11:49:07
2021-01-27T11:49:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def genPairs(n): for i in range(0, n): for j in range(i+1, n): yield (i, j) for p in genPairs(5): print(p)
UTF-8
Python
false
false
135
py
8
pythonscript.py
5
0.496296
0.474074
0
6
21.5
31
williamy1996/AutoExpression
6,777,458,418,199
022def6b9f8db5e3774a404aab43580159ac681f
aa0bdafb61b8ea16e21daf4f9bfc2d87044eb57e
/solnml/utils/saveloadmodel.py
6344380279173b2bbbc26da96dfa9e85fa5d2018
[ "MIT" ]
permissive
https://github.com/williamy1996/AutoExpression
c32b5105aa9ba71d14269d04745b5fbf8e75c646
b470d9ff67074c8b076abbc1dce359db9a36f921
refs/heads/master
2022-12-14T20:22:37.529136
2020-09-03T10:04:10
2020-09-03T10:04:10
292,527,971
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import os import sys import time import pickle import numpy as np import pandas as pd import json import pickle as pkl from sklearn.datasets import load_iris from sklearn.metrics import balanced_accuracy_score from sklearn.model_selection import train_test_split from solnml.utils.data_manager import Dat...
UTF-8
Python
false
false
13,740
py
70
saveloadmodel.py
33
0.537918
0.533479
0
364
36.747253
90
feifeizhuge/data-analysis-with-pandas
11,312,943,899,243
9b85704fc7c624610cf97ca1a5b987e935cf05b8
d8e1421132868213806326dba7001f3aea6e8a51
/data-cleaning/data_load_bus.py
0cb760e05747c08c6b79808c17c617806a75b479
[]
no_license
https://github.com/feifeizhuge/data-analysis-with-pandas
28d0eacf9ab249e7a24fec148ccbc3de7e5e7257
952fb7946a4525c40016b27c6ad013a30c3458bd
refs/heads/master
2020-06-14T18:57:31.014431
2019-09-22T18:49:29
2019-09-22T18:49:29
195,094,370
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 6 20:18:30 2019 @author: hechen """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import os current_path = os.path.dirname(__file__) csv_path = current_path + '/2016_02_10_0000_1687_export.csv' Data = pd.read_csv(csv_path...
UTF-8
Python
false
false
4,958
py
3
data_load_bus.py
2
0.614918
0.567415
0
131
36.732824
78
huyanhai/spider-music
6,906,307,414,796
ba43709f4da2e19307b3ba604caaeb92b52b38ba
42fb81f32a776809079aa343e4dd7d521b1998b0
/sider_scrapy/spiders/music.py
c8ceb5fc3d5d4892b9da50491bb83772320901fc
[]
no_license
https://github.com/huyanhai/spider-music
8849d1ebbc4060219ad70fde2268d00c55330a4b
cfc87b6daadfc9ecc238e835e1f1079fa866d94d
refs/heads/master
2020-06-28T09:28:09.290872
2019-08-05T08:57:16
2019-08-05T08:57:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import scrapy import requests import json from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from sider_scrapy.items import QqmusicItem class MusicSpider(CrawlSpider): name = 'music' allowed_domains = ['y.qq.com'] start_urls = ['https://y.q...
UTF-8
Python
false
false
4,734
py
8
music.py
6
0.556809
0.521702
0
99
46.484848
383
Dituohgasirre/python
9,698,036,202,454
346616db94cff25f16ee05ffd974b5924403425e
8e7a2b9efbc0d25111f01f4cddb781961032685a
/python-1025/python/1_base_syntax/homework.py
56368582436dac9d44afcfe1e4ce98f4cc01c885
[]
no_license
https://github.com/Dituohgasirre/python
e044aa2e1fb2233b6ccd59701b834ab01e4e24c2
05f036d2723f75cd89e4412aaed7ee0ba5d3a502
refs/heads/master
2023-06-03T13:50:18.641433
2021-06-17T10:23:40
2021-06-17T10:23:40
366,942,423
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import kyo import menu def ball(index, args): """ 一个袋子里有3个红球, 3个绿球,6个黄球, 一次从袋子里取6个球 列出所有可能的颜色组合 """ r = 0 y = 0 while r < 4: g = 0 while g < 4: y = 6 - r - g print("红球: %d, 绿球: %d, 黄球: %d" % (r, g, y)) g += 1 ...
UTF-8
Python
false
false
3,271
py
347
homework.py
244
0.501279
0.465839
0
108
24.333333
81
iluoxw/OurServer
9,938,554,340,682
a511da40c36be7c0eff00be83b3c64be0c43be17
2ced9f032b61792d81aced126dfeb1d40eeb065e
/User/migrations/0001_initial.py
bdf95fc8d9e65dcad2418f1dafc2004765c6de32
[]
no_license
https://github.com/iluoxw/OurServer
c35e2d334df86f278156a2f32479caf353ad1646
a3a76f1c8b61bd81c9a64774d7b0c3717755c9cb
refs/heads/master
2020-05-21T03:48:50.868345
2017-03-10T14:28:10
2017-03-10T14:28:10
84,567,482
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(verbos...
UTF-8
Python
false
false
2,614
py
4
0001_initial.py
3
0.521423
0.51492
0
67
38.014925
114
ygzylmz/theNextTrace
9,105,330,692,341
d6f7ae3fbb5de7652b1d1a67ef23609644c0b94c
7447ddef42bb3dc859a48d8a05e7b4f0832ecb55
/blog/migrations/0025_auto_20201014_1845.py
306cd6472ae4cc678c76a93f84e27e1063f8aa4d
[]
no_license
https://github.com/ygzylmz/theNextTrace
f72feca5402b203afea91a3fe8d719d2e1ed9744
f46efcb9575c83d865ee6b841943ea0292a1f094
refs/heads/master
2022-12-31T11:36:35.116518
2020-10-22T14:20:44
2020-10-22T14:20:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2020-10-14 18:45 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0024_auto_20200914_1043'), ] operations = [ migrations...
UTF-8
Python
false
false
1,137
py
22
0025_auto_20201014_1845.py
17
0.599294
0.553398
0
36
30.472222
100
arnabs542/Leetcode-38
16,080,357,596,918
dcf8bd6b88034b5eb09ab3480fa86aaddcdd933d
c6ec292a52ea54499a35a7ec7bc042a9fd56b1aa
/Python/90.py
06ec0bed0222cb95586ce2e133a8a11258bb8a3d
[]
no_license
https://github.com/arnabs542/Leetcode-38
ad585353d569d863613e90edb82ea80097e9ca6c
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
refs/heads/master
2023-02-01T01:18:45.851097
2020-12-19T03:46:26
2020-12-19T03:46:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def subsetsWithDup(self, nums: List[int]) -> List[List[int]]: nums.sort() self.results = [] visited = [False] * len(nums) self.dfs(nums, visited, [], 0) return self.results def dfs(self, nums, visited, prev, start): self.results.append(pre...
UTF-8
Python
false
false
658
py
364
90.py
362
0.484802
0.477204
0
19
32.947368
71
nusaibsqli/TCPShell
13,176,959,697,811
a73239e6da0227a91cf3eff6380aa0454122ad18
c31ba668f35095075186b3bfd9250c97a6b2d80c
/generate_password.py
d0cc6b91394f2b210eabb78f2a849429109b1e54
[]
no_license
https://github.com/nusaibsqli/TCPShell
1e765b04cc740e92483784c0c6d4d9e659cc6047
9a15b36d0cceac6d46580058003b7093842ca705
refs/heads/master
2021-09-15T12:50:22.202323
2018-06-02T01:47:50
2018-06-02T01:47:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
clrPasswd = raw_input("Enter Password: ") encPasswd = '' for char in clrPasswd: _tmp = (ord(char) << 1) | (ord(char) >> 7) #print _tmp encPasswd += chr(_tmp) encPasswd = '\\x' + '\\x'.join(x.encode('hex') for x in encPasswd) print encPasswd
UTF-8
Python
false
false
248
py
5
generate_password.py
1
0.616935
0.608871
0.008065
11
21.454545
66
shuuki4/MachineLearningInAction
5,291,399,734,393
45f5f8dba6fe2d64b122628bc792e21bdfd6773a
661399426fed233f508430a211cc952339faa7da
/ID3DecisionTree+TreePlot.py
b189a01efc1334020afbd111c5b3ebcf889d750f
[]
no_license
https://github.com/shuuki4/MachineLearningInAction
1dd1776ae962c0a8e28bb0115e72d369e30f0bbd
6d539aa099593d555fd704f9707b9bdb24274fd5
refs/heads/master
2021-03-12T22:55:02.952965
2015-09-13T16:13:44
2015-09-13T16:13:44
42,063,251
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
## This code generates an ID3 Decision Tree and plot this tree by matplotlib ## ## TreePlotting Codes are from text, rest by YuKiSa ## from numpy import * import matplotlib.pyplot as plt from math import log ## Tree Plot Section ## ## tree plot codes are from MLinA text ## ## @author : Peter Harington ## decisionNo...
UTF-8
Python
false
false
5,965
py
4
ID3DecisionTree+TreePlot.py
4
0.692037
0.675105
0
160
36.28125
122
enadol/bundesliga-visual
8,237,747,287,291
c3ea216b82df004e44e69c4443d47682009dc68b
d13b8d97fee668ecfbeab20c446f319c6bad9266
/provisionaales/bljson-puntos.py
3f0125ebfdb095491bef33725ad202b7ebad3bd3
[]
no_license
https://github.com/enadol/bundesliga-visual
6fb3e8ad6c62ddb1e34679c773151ba28e4977bd
2bfbd397b1139ed2b7cd7bcefb22d3fc65c1fb9f
refs/heads/master
2016-09-14T04:51:14.652863
2016-05-07T18:49:00
2016-05-07T18:49:00
58,158,705
0
0
null
false
2016-05-07T18:49:01
2016-05-05T20:30:29
2016-05-05T20:30:42
2016-05-07T18:49:00
406
0
0
0
Python
null
null
import urllib import json url="2015-2016/bl.json" uh=urllib.urlopen(url) data=uh.read() js=json.loads(data) i=0 ganador=None perdedor=None puntoslocal=0 puntosvisitante=0 sumavisitante=0 puntos=0 sumalocal=0 def getPuntos(equipo, afavor, encontra): puntos=0 if afavor > encontra: puntos=3 ganador=equipo per...
UTF-8
Python
false
false
1,894
py
21
bljson-puntos.py
15
0.73083
0.713908
0
75
24.213333
104
fooofei/py_pieces
13,340,168,465,165
170095026f051f3389e0ae50f053e64eedf17158
e132739824d2e13eeed79975603133e58e5f4027
/iterator_itertools_tee.py
557b460597c56a8232667d3483020064068fe866
[]
no_license
https://github.com/fooofei/py_pieces
929274ef5415b89d175c38b8cf92ab13db6cbc6a
264b2fdb203132d09398250b2b509f23285e4add
refs/heads/master
2021-01-23T19:12:16.586391
2021-01-11T03:10:57
2021-01-11T03:10:57
83,008,648
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 ''' use itertools.tee to copy an generator 适合多个 iterator 步差不大的, <10 的 1 生成两个 generator 但是实例并没有增加 2 两个 generator 持有同一份实例的引用 在一个 generator 中修改了一个实例 另一个 generator 也会受到修改影响 3 官方警告使用 itertools.tee 分裂之后 母 generator 不再使用 https://docs.python.org/2/library/itertools.html 4 官方建议 如果其中 1 个...
UTF-8
Python
false
false
2,300
py
77
iterator_itertools_tee.py
70
0.565403
0.54455
0
96
20.979167
97
kopok2/PythonCourse
16,381,005,306,576
ccc7cce39e26b05570e878851b951747a8aae00f
cdf2e3236e93ab33660cd7dc48e10ca8978ae9c3
/Lecture9/python_dynamics.py
58f42539fab0365fc8a7fc31ec09f40bc39ad01d
[ "MIT" ]
permissive
https://github.com/kopok2/PythonCourse
ef163250a31e23c4815d6073c2059db994ddd35a
f741b17adaa7290380e83408ed24100127837ad7
refs/heads/master
2021-07-08T05:12:48.356642
2020-11-30T09:24:01
2020-11-30T09:24:01
215,096,810
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 """ Module aimed to demonstrate dynamic nature of Python's code. """ import datetime class Lecture: def __init__(self, no): self.no = no if datetime.datetime.now().hour > 14: def __str__(self): return f"Lecture {self.no} has finished." else: def __str__...
UTF-8
Python
false
false
444
py
33
python_dynamics.py
14
0.554054
0.540541
0
23
18.304348
60
inverseTrig/leet_code
4,879,082,853,432
16e79eda9fde0b41ee55610ed21aac070c5db946
eba1bc6c853cf92a002eb3cf7a4ff71507fd1072
/202_happy_number.py
47181a54a3d22469308f66df3c740b190867d87f
[]
no_license
https://github.com/inverseTrig/leet_code
ab3b155d4ec581684be5ae0413c49d94492cbe1b
213a221f1577dd3346da794ef73e802af803d58b
refs/heads/master
2021-12-21T11:30:09.755104
2021-12-16T04:46:10
2021-12-16T04:46:10
86,788,182
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def isHappy(self, n: int) -> bool: seen = set() while n != 1: nstr = str(n) nxt = 0 for each in nstr: nxt += int(each) ** 2 n = nxt if n in seen: return False else: ...
UTF-8
Python
false
false
423
py
168
202_happy_number.py
168
0.41844
0.404255
0
21
19.142857
38
coralhalperin/slides
14,388,140,491,208
2dbc17fbe59e00939c708c65ab0e6c73f7e9655f
2120db28dbe55b8a9185ae8aa42a769985491996
/python/examples/lists/master_mind.py
7286bcf73ed3ebe72aa9feed42b8c8b66d710cf2
[]
no_license
https://github.com/coralhalperin/slides
7b149cb61840eb1724cb1571bba2503b19278780
0c83e1d1e771c9d4b110542b2ad64bbc6bd7b81a
refs/heads/main
2023-01-04T14:02:11.406990
2020-10-25T06:20:07
2020-10-25T06:20:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random width = 4 USED = '_' hidden = random.sample(range(10), width) # print(hidden) while True: # print(hidden) inp = input("your guess ({} digits):".format(width)) if inp == 'x': print("Bye") exit() if len(inp) != width: print("We need exactly {} characters".format(...
UTF-8
Python
false
false
1,032
py
67
master_mind.py
23
0.492248
0.489341
0
48
20.5
60
ethz-asl/libpointmatcher
25,769,818,495
cca6a31e8b02ebcb47f04d09058d5b8c95ad29a6
e7d1531b4b0bcecb4fb436cafbb8a3fe363c02c7
/examples/python/icp_simple.py
b68367dd3c6c06bcd351b02d1a07d5b2ad014775
[ "BSD-3-Clause" ]
permissive
https://github.com/ethz-asl/libpointmatcher
91d9c63f285964da00a9d95bf906adc832ffa44c
3ace94a6959137d8d6a9a7278bf2644ffdcf73d3
refs/heads/master
2023-09-02T20:24:16.436314
2023-08-11T21:52:32
2023-08-11T21:52:32
1,266,625
1,446
567
BSD-3-Clause
false
2023-08-13T21:00:25
2011-01-18T10:00:28
2023-08-11T11:22:40
2023-08-13T21:00:23
19,865
1,413
522
84
C++
false
false
# Code example for ICP taking 2 points clouds (2D or 3D) relatively close # and computing the transformation between them. from pypointmatcher import pointmatcher as pm PM = pm.PointMatcher DP = PM.DataPoints # Path of output directory (default: tests/icp_simple/) # The output directory must already exist # Leave em...
UTF-8
Python
false
false
1,514
py
341
icp_simple.py
276
0.703435
0.690885
0
49
29.897959
87
rajesh305k/python_programs_9.26.2021
6,356,551,600,791
a188758b8312f16373e6a2a307a85a76918d9d60
d97e1acb6450c6303b44c0c3a4b8142eb0c79cae
/Ram/Assignment/Day4/assignment1.py
a556229f06ed4e85e3557eb912caa41e2b89593c
[]
no_license
https://github.com/rajesh305k/python_programs_9.26.2021
58e63e6ff5b5a83436e75f5e2ee52c8570ee9df0
61a69cd1e9ec0d91a36d1cb5501db11c0d017778
refs/heads/main
2023-08-24T08:11:14.789908
2021-10-30T04:47:44
2021-10-30T04:47:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
amount=int(input("Enter amount :")) # 1.Write a program to find credited amount,balance using **if else and operators.** # Note:variables:**amount,balance,credited_amount**, # Formula: **credited_amount=amount**,**balance+=credited_amount**, # **amount** should be greater than zero balance=10000 if(amount!=0): ...
UTF-8
Python
false
false
781
py
66
assignment1.py
63
0.654289
0.644046
0
22
34.5
84
angkoonhian/hacknroll2021
11,364,483,487,053
04dbcd3eaf50637768a9fb6058d2c5a79c13cc87
d27f3f6340e4124d9949d7d53b41e9e02296e75b
/word_generator.py
b8f45d921f64bf2671d82f671c211d86025f7f39
[]
no_license
https://github.com/angkoonhian/hacknroll2021
60f683b52c1478215a6a613e32abb6b8fbd36b7c
9f1da6503cd7b5872f11e8e4cbc3c4d7f001c20c
refs/heads/main
2023-02-17T07:13:27.781828
2021-01-09T03:01:10
2021-01-09T03:01:10
325,207,862
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from transformers import GPT2Tokenizer from transformers import TFGPT2Model, TFGPT2LMHeadModel import tensorflow as tf import numpy as np import os #Install the GPT-2 model/tokenizer and load it into memory def load_model_tokenizer_GPT2(): """ Loads GPT-2 model from local memory. Replace with gpt2 """ ...
UTF-8
Python
false
false
1,601
py
7
word_generator.py
5
0.697064
0.687695
0
41
38.04878
76
taketakeyyy/atcoder
575,525,663,496
e37ac520ca730519e598c9c6f44b622a8e8b2558
66213c48da0b752dc6c350789935fe2b2b9ef5ca
/abc/170/b.py
07d4688555b7b28318e0c248936b34546fadd460
[]
no_license
https://github.com/taketakeyyy/atcoder
28c58ae52606ba85852687f9e726581ab2539b91
a57067be27b27db3fee008cbcfe639f5309103cc
refs/heads/master
2023-09-04T16:53:55.172945
2023-09-04T07:25:59
2023-09-04T07:25:59
123,848,306
0
0
null
false
2019-04-21T07:39:45
2018-03-05T01:37:20
2019-04-20T14:48:39
2019-04-21T07:39:44
193
0
0
0
Python
false
false
# -*- coding:utf-8 -*- def solve(): X, Y = list(map(int, input().split())) for kame in range(0, X+1): turu = X - kame if kame*4 + turu*2 == Y: print("Yes") return print("No") if __name__ == "__main__": solve()
UTF-8
Python
false
false
271
py
1,957
b.py
1,170
0.424354
0.405904
0
16
15.9375
42
gustcomer/pynnystock_analyser
15,779,709,874,271
369ce2c1c917a98a99ef9ade3c47ad2e98691d81
c68506d19ffdc22032a17dd97c5aff23bc7e1301
/pynnystock/strategies/stophighpre/ParametersSHP.py
d290a92660f363b3ffa56034fd0288f106b00982
[]
no_license
https://github.com/gustcomer/pynnystock_analyser
a31c0cfb3f75fdffa8cf4fa98c717f20e4525b89
5ffacae8db1ee21dcc491317554ae469ad82233a
refs/heads/master
2023-03-22T01:39:35.920679
2021-03-12T20:54:03
2021-03-12T20:54:03
324,470,954
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ...Parameters import Parameters class ParametersSHP(Parameters): def __init__(self): super().__init__() # inicializa tudo mas algumas variaveis da super vão ficar de fora. Bad software engineering practice # repetimos a declaração de alguns parâmetros só pra enfatizar. Bad practice. self.short_after = 0...
UTF-8
Python
false
false
1,527
py
49
ParametersSHP.py
32
0.648258
0.636423
0
46
32.086957
122
chitakeo/Nagayama_2019
3,238,405,389,670
88e51b77d5fd511bc52c2f9fb042fe57b1be7ade
cc9a8298c4ce507d092c4bc83fd3659ea37a519d
/cat/cat4.py
d16914357d74f76b970d3de42e04a22b76dd8b0e
[]
no_license
https://github.com/chitakeo/Nagayama_2019
2d86eed47aeceb536aebc893b1bc0f14feab9799
29bd6316a73ed1da2c3967db689d81beec6bcbae
refs/heads/master
2020-12-28T01:46:48.511229
2020-02-16T13:58:16
2020-02-16T13:58:16
238,141,590
0
0
null
false
2020-02-16T13:58:17
2020-02-04T06:46:53
2020-02-16T09:38:13
2020-02-16T13:58:16
31,374
0
0
0
Python
false
false
import numpy as np import cv2 import os from matplotlib import pyplot as plt kan_file_path = '../save/fe.jpg' #完成図保存のファイルパス&ファイル名 mach_file_path = '../save/zikken.jpg' #マッチング結果保存のファイルパス&ファイル名 pazu_file_path = '../pazu/kousiki.png' #パズルのファイルパス&ファイル名 pice_file_path = '../pazu' #ピースのファイルパス&ファイル名 pice = ['/rt.pn...
UTF-8
Python
false
false
4,345
py
7
cat4.py
6
0.63109
0.55272
0
158
23.556962
72
WillNye/duolingo_x
8,761,733,285,529
004d1ccd7375c327d089998c19e25b353ba201c9
7ea6d43d98813d9839f3a32e136ca04933922737
/training/models.py
f6c449e19cd157838fb18952520d0f1452f6a4a8
[]
no_license
https://github.com/WillNye/duolingo_x
d5e60749acc7e75fa0aca9994cc9ad83695dd211
923f38de89c60e0f8c945df4a13b360c1369f960
refs/heads/master
2021-01-13T13:04:21.456410
2017-01-14T03:01:05
2017-01-14T03:01:05
78,687,778
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User from datetime import datetime as dt class Language(models.Model): name = models.CharField(max_length=250, null=False) audio_base = models.CharField(max_length=250, null=False) def __str__(self): return self.name class Phr...
UTF-8
Python
false
false
1,205
py
7
models.py
5
0.685477
0.672199
0
37
31.540541
70
daniel-l-merhi/Python-and-ROS-Coursework
14,259,291,435,794
b4f792aad8b88d7cd9b93f0b552da2b2bc259752
5508e79fb43398f0622d0df986354f530fe6032c
/Python for Robotics/robot_control/get_laser_method.py
1e4af28b341ce1452c0b3f24c7c2b8ee7d520468
[]
no_license
https://github.com/daniel-l-merhi/Python-and-ROS-Coursework
14ac226379da6e8a9a0319244166e7a712df7f88
bc9956b264f5388184c0388d7106d89c162d718b
refs/heads/main
2023-08-06T12:51:35.236840
2021-10-09T02:25:00
2021-10-09T02:25:00
415,173,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from robot_control_class import RobotControl rc = RobotControl(robot_name="summit") def return_laser(a, b, c): laser_list = [rc.get_laser_summit(a), rc.get_laser_summit(b), rc.get_laser_summit(c)] return laser_list l = return_laser(0, 360, 400) print (l)
UTF-8
Python
false
false
267
py
43
get_laser_method.py
31
0.692884
0.666667
0
12
21.333333
89
vigman-xxxw/python-code
936,302,905,518
bd629e12fc3d65e0111493f1f9b86c728db02632
16d33ca26751e50d518f79bcb8f1c05dd7e79f7b
/二分法.py
20af27a85f4cb0833f444355126f9c70e5b7a8a2
[]
no_license
https://github.com/vigman-xxxw/python-code
6017fac6c7c019384957c63b38ef76b6919726d3
004d18576065ba94044659d4b83a361675a0f178
refs/heads/master
2023-08-19T01:53:52.624302
2021-10-11T09:03:53
2021-10-11T09:03:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 给定数组A 目标值T 查找T在A中位置 def binary_search(arr, key): start = 0 end = len(arr) - 1 while start <= end: mid = int((start + end) / 2) if arr[mid] < key: start = mid + 1 elif arr[mid] > key: end = mid - 1 else: return mid return -1 list1 =...
UTF-8
Python
false
false
413
py
66
二分法.py
66
0.49354
0.459948
0
19
19.315789
36
MarcoBorsato/AOC2020
13,795,434,976,011
8c9334e962500e0e8f12851fdd6e0af220e892dc
ec56e52fdb18c80c2a6eda74a66a8e6e6229c6f5
/AOCday6.py
e958cbfd2d7d764ca9ed32d4b73abbb15a120ee8
[]
no_license
https://github.com/MarcoBorsato/AOC2020
7d3a8896a60e737b574b3a8b0cffe7820228f95f
f813048f233b7833aedd1ebe126b0bd1cd50502c
refs/heads/master
2023-03-19T16:02:15.871020
2021-03-10T22:27:29
2021-03-10T22:27:29
344,621,179
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
def readInput(input): data = [] person = [] line = "" for i in input.readlines(): i = i.strip() if i == "": data.append(person) person = [] else: person.append(i) data.append(person) return data def countAnswers1(input: list[str]) -> ...
UTF-8
Python
false
false
1,023
py
7
AOCday6.py
7
0.482893
0.473118
0
47
20.765957
50
nasawz/wiki.catke
5,841,155,567,762
9cefe78c2e5477a86cc64fbe92e11912f89e6104
9933cb7f69b8e13a970901012fa3672120d944a3
/diy/syncdb.py
261cc82eba45f63affc579aae1d3ec5f2a9f3fef
[]
no_license
https://github.com/nasawz/wiki.catke
a78689f1e67fd48c134e95276552012f2d4c61dc
35d43fe9df92d9413f564b40e18028a931a6e652
refs/heads/master
2020-02-03T15:21:18.574729
2013-02-04T08:36:56
2013-02-04T08:36:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 ''' 同步数据表 @author vfasky@gmail.com ''' import os import sys # 设置系统编码为utf8 reload(sys) sys.setdefaultencoding('utf8') # 加入第三方类库搜索路径 sys.path.append(os.path.join(os.path.dirname(__file__), 'modules')) # 加载程序配置 from wiki import config # 引入Database from xcat import Database # 加载数据库配置 Database.load_...
UTF-8
Python
false
false
1,487
py
35
syncdb.py
24
0.566403
0.558507
0
66
20.106061
89
SuhashisAcharya/automation
7,524,782,746,848
24ab24e059f116b78bc9da4dd37522d3be4ba4a0
8bb594bed8e458019d828864cbcd548c8d538e5a
/Infrastructure/validation_matrix_server/media_stream_validator/media_stream_validator
562257f35b581e879f25745a0b2d9b544f58e55a
[]
no_license
https://github.com/SuhashisAcharya/automation
ff1b8e6ffbd573a2c4edd95575627333fefd0128
db312f4fc168d297fc027298c865aa3e462d5d25
refs/heads/master
2020-03-03T00:38:22.010621
2016-06-06T05:31:00
2016-06-06T05:31:00
65,850,723
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os,sys import pexpect import json import re from time import gmtime, strftime #print len(sys.argv) #print str(sys.argv) if ( 6 > len(sys.argv) ): print 'Insufficient number of commands' sys.exit(1) manifest_url=sys.argv[1] apple_ip=sys.argv[2] apple_user=sys.a...
UTF-8
Python
false
false
8,037
134
media_stream_validator
79
0.59898
0.59027
0
232
33.642241
128
devesh37/HackerRankProblems
10,067,403,355,660
363e8330029df04f82b127159adf0093172ff0ef
d65f58cb47b308dc7130a4033c5ec1de61d9814f
/Datastructure_HackerRank/Array/arrayRotation.py
5dd164efb2caa0a39fa9a4d00aa6c25fb74120db
[]
no_license
https://github.com/devesh37/HackerRankProblems
1b1fee329d2fae31dea524d272d5c1b596e107ed
8f7cdd1d96c169ea9071ac8e6ea7dff0788d046f
refs/heads/master
2022-12-22T18:26:46.688790
2020-09-23T06:02:44
2020-09-23T06:02:44
263,381,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python3 import math import os import random import re import sys def left_rotation(a,n,r): array=[0]*n i=0 while(i<n): array[(i+n-r)%n]=a[i] i+=1 for i in array: print(i,end=' ') if __name__ == '__main__': nd = input().split() n = int(nd[0]) r = int(nd[1]...
UTF-8
Python
false
false
396
py
25
arrayRotation.py
25
0.510101
0.494949
0
27
13.703704
48
kss2153/hubspot-mr
18,262,200,954,009
1cd1182d243fc86bb66b4d26f0bdab9fe4c0dfd6
441543345b718b43d52704200a7a87d98804bb93
/src/app/db.py
1c16b40bf0ff9b37296aaa7bf6e747044491238d
[]
no_license
https://github.com/kss2153/hubspot-mr
eed0a25c936bdca5d4b0c23e5f471e441224d604
b0b85bff42bf6e6a95c56f85090c5bbb1ff4e15d
refs/heads/master
2023-05-28T20:42:21.141819
2019-09-24T22:19:20
2019-09-24T22:19:20
210,515,808
0
0
null
false
2023-05-01T20:36:40
2019-09-24T05:02:12
2020-01-21T15:09:38
2023-05-01T20:36:39
20,778
0
0
1
Python
false
false
import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker db_user = os.environ.get('CLOUD_SQL_USERNAME') db_password = os.environ.get('CLOUD_SQL_PASSWORD') db_name = os.environ.get('CLOUD_SQL_DATABASE_NAME') db_host = os.environ.get('CLOUD_SQL_HOST') engine_url = 'mysql+pymysql://{}:{}@{}...
UTF-8
Python
false
false
460
py
9
db.py
6
0.734783
0.732609
0
13
34.384615
89
mennthor/tdepps
13,125,420,065,650
ccd34e57f587e6658f7ea61f5529d79ca90d2248
490cd642d522ab512ab435580ea92bbae789414c
/tdepps/grb/llh.py
c98fafaed6ebb69255406621a5d9adb62ca897a1
[]
no_license
https://github.com/mennthor/tdepps
c4f86d11e61b99c1e27d6df2a8f013ea8f1c0a78
100035f95321506057677806d25f1695cfea58a9
refs/heads/master
2021-09-22T21:05:21.801613
2018-08-06T09:38:26
2018-08-06T09:38:26
90,803,720
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from __future__ import division, absolute_import import math import numpy as np import scipy.optimize as sco from ..base import BaseLLH, BaseMultiLLH from ..utils import fill_dict_defaults, all_equal, dict_map class GRBLLH(BaseLLH): """ Stacking GRB LLH Stacking weights are a-priori fi...
UTF-8
Python
false
false
13,802
py
31
llh.py
21
0.511882
0.501377
0
367
36.607629
80
wikimedia/revscoring
6,253,472,425,015
14ee62824c45cdb8434fd97ba4b477677918e0cc
496b5270078183b3ffc3e9a2eda76e95e18061f1
/revscoring/features/bytes/revision_oriented.py
4f426400d21df25c44b62c85dd7c9cafef68fd49
[ "MIT" ]
permissive
https://github.com/wikimedia/revscoring
87d0e9e856150b017b87f43e110b2062b4c90f07
5a3618e4ce6f93f1e571abf8b3600726d7295138
refs/heads/master
2023-08-23T03:48:07.172353
2023-01-24T10:58:33
2023-01-24T10:58:33
23,771,350
52
34
MIT
false
2023-04-17T06:03:24
2014-09-07T21:20:37
2023-03-02T18:19:49
2023-04-17T06:03:20
2,424
84
51
19
Python
false
false
from revscoring.datasources import revision_oriented from revscoring.dependencies import DependentSet from ..meta import aggregators from . import datasources name = "bytes.revision" class Revision(DependentSet): def __init__(self, name, revision_datasources): super().__init__(name) self.length...
UTF-8
Python
false
false
1,126
py
329
revision_oriented.py
283
0.625222
0.625222
0
38
28.631579
77
diweiqiang/PRIS
7,464,653,160,914
436a03719bf2ba13659b101b5783418a1d3a3b9f
7576879de06944ab501ef8875ec02aaab15d2e47
/peris_model.py
b4a7c8d019c2d149cc37f4c173f6fd933584a2c9
[]
no_license
https://github.com/diweiqiang/PRIS
4ed89540c4731a4e6b3591410796885b5287c9af
2e691ac82e6f91ae118c0cbb80aba6d2f337c052
refs/heads/master
2022-04-21T10:01:00.071643
2020-04-24T04:22:21
2020-04-24T04:22:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import time from utils import Eval import numpy as np from sampler import * from mylayers import RCEncoding, EuclideanDistillation samplers = [SamplerModel, PopularSamplerModel, ClusterSamplerModel, ClusterPopularSamplerModel, ExactSamplerModel] class EvaluateCallback(tf.keras.callbacks.Call...
UTF-8
Python
false
false
10,439
py
9
peris_model.py
9
0.61117
0.603314
0
187
54.828877
147
ChenBooming/python_pycharm
15,556,371,563,351
f592685de3f60acacab1a31453122980c02c750e
f620c09675fc77c91c9c33dcd5533c4c06829da3
/Python/itchat_test/test.py
cf437d77d5203838e91df5b7cd9b8ce972130d23
[ "MIT" ]
permissive
https://github.com/ChenBooming/python_pycharm
f47564b987792ba81ad6c7caaa6e1b58416cfd65
aec59a5411166bc0ac04c872181b2162bcdb6fb8
refs/heads/master
2021-01-24T18:05:35.233449
2017-03-17T07:43:47
2017-03-17T07:43:47
84,391,710
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf8 import itchat # tuling plugin can be get here: # https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling from tuling import get_response @itchat.msg_register('Text') def text_reply(msg): if u'作者' in msg['Text'] or u'主人' in msg['Text']: return u'找陈蒙 421235586@qq.com' elif u'...
UTF-8
Python
false
false
2,607
py
9
test.py
6
0.633527
0.623272
0
55
39.763636
162
prathipc/Financials
14,972,256,043,247
b5b8fced447b989b185fd4113d1a8d4f7141ccdf
705502038a7774fb378e289b83070fc54ab71653
/lograthamic_RateofReturn.py
f2d421e605957938555b888b9a6dd0ee02f5f2c7
[ "CC0-1.0" ]
permissive
https://github.com/prathipc/Financials
b1d6516da24399b30057d1cfc5e863c7252a65c2
1814e08e2cccec65f60559109d2e0305175cba51
refs/heads/master
2020-12-05T02:58:20.573138
2020-01-06T01:21:35
2020-01-06T01:21:35
231,989,742
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import numpy as np from pandas_datareader import data as wb STCK = wb.DataReader('VFINX', data_source='yahoo', start='2019-1-1') STCK['log_return'] = np.log(STCK['Adj Close'] / STCK['Adj Close'].shift(1)) print (STCK) #print(STCK['log_return']) STCK['log_return'].plot(figsize = (8,5)) ...
UTF-8
Python
false
false
586
py
4
lograthamic_RateofReturn.py
4
0.6843
0.646758
0
15
38.133333
104
jodal/pyspotify
8,658,654,085,848
0a1332c776b3a9d9b6e0ccd56def198022ff0219
66b7a2fb1c573d8c26bcccd7b54b950dc13bd69c
/spotify/session.py
7b7478b1dd61308f23adb898b40983647382e211
[ "Apache-2.0" ]
permissive
https://github.com/jodal/pyspotify
020b12e486239414c25cdf7408471a4bcbadb182
575e0cbd6dfeee0b2e22a6c1d8b4ff3a14bb129a
refs/heads/master
2023-08-25T05:36:09.958002
2022-06-15T14:30:36
2022-06-15T14:30:36
1,103,479
62
13
Apache-2.0
false
2022-06-14T21:53:00
2010-11-22T20:31:34
2022-06-10T19:54:00
2022-06-14T21:53:00
14,517
518
94
11
Python
false
false
from __future__ import unicode_literals import logging import warnings import weakref import spotify import spotify.connection import spotify.player import spotify.social from spotify import ffi, lib, serialized, utils __all__ = ["Session", "SessionEvent"] logger = logging.getLogger(__name__) class Session(utils....
UTF-8
Python
false
false
42,852
py
105
session.py
66
0.623798
0.618408
0
1,238
33.613893
88
luyaochi/mycrawlerlib
11,029,476,030,572
6c63b735a9e89da448ea2960869c6f1eaae08bb1
9164d01a4482936816be74f3fc87c49612f6c303
/frontier.py
5403d01af3d4941f9e23d7a586281d16c2c54574
[]
no_license
https://github.com/luyaochi/mycrawlerlib
e70a0ab2b2398f18039698412959a70cd7ecd395
11438dc2985fe76f6dab3b0d59e8baf919c86da4
refs/heads/master
2016-08-04T16:29:30.311285
2014-10-09T16:49:40
2014-10-09T16:49:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*-coding:utf-8-*- class frontier: def __init__(self,seed = None): self.list_frontier = [] self.init_frontier(seed) def init_frontier(self,seed): if seed == None: self.load_frontierFromDb() else: self.add_frontier(seed) return self.list_frontier def show_frontier(self): retu...
UTF-8
Python
false
false
677
py
10
frontier.py
10
0.691285
0.685377
0
32
20.125
36
jamesjarlathlong/beeview_gateway
1,666,447,354,649
e6437cb1b8c4b504aec46732d07817deff893c61
13ffe2e92484d3a3283905733afaf17b1b5f9e7b
/algorithms/compressive.py
839b5a9a33ab48ea2ffbbd7e7d87e939f849ce22
[]
no_license
https://github.com/jamesjarlathlong/beeview_gateway
7f89218cb06a29cae5720c6d57fe39c2438ac949
f1a4576aaded9e0265d832d6f41dde157d5220d9
refs/heads/master
2021-01-01T18:51:15.260795
2018-04-12T04:55:05
2018-04-12T04:55:05
98,449,510
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scipy.fftpack as spfft import numpy as np import seaborn as sns import matplotlib import matplotlib.pyplot as plt import fourier_basis as ft import cvxpy as cvx import itertools import math import numpy as np import random import sys import fourier_basis as ft def downsample(data,ri): return data[ri] def re...
UTF-8
Python
false
false
1,405
py
33
compressive.py
18
0.688968
0.685409
0
51
26.568627
70
xflows/cf_weka
3,461,743,658,359
6c8a25a26a406d504056234dd36531e68b889ebf
db7373b959ccb2eceb67179bea8fff5d7c8b25c0
/cf_weka/library.py
e7c38ce36434f6e935027bb1112b94e6920b17d2
[ "MIT" ]
permissive
https://github.com/xflows/cf_weka
b6520b249fa24760067de03a5249b30711e933ea
9e76d9ef101a001bbcbc2a6fe67296619a7d0bb0
refs/heads/master
2021-01-10T01:17:28.015025
2017-10-18T12:18:32
2017-10-18T12:18:32
49,005,637
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __authors__ = 'vid, daleksovski' import classification import evaluation import utilities import preprocessing # # CLASSIFICATION ALGORITHMS # def decision_tree_j48(input_dict): """Decision Tree learner J48""" p = input_dict['params'] return {'learner': class...
UTF-8
Python
false
false
4,032
py
28
library.py
10
0.675099
0.669395
0
150
25.88
191
4ar0n/fifthtutorial
395,137,005,226
1f2d9fc24beb5175ac21e4efcc44547fbf06c6c2
d22cb36b926c23e15cf223288dc54f2218980e9d
/homework2.0_q.py
55c8f963ae18a46f82b7d558848cf9c3f33f4dec
[]
no_license
https://github.com/4ar0n/fifthtutorial
395c749848d69734856fcae406b94b91a75f36f0
d520e3100f99df6537ace1eac54001a873bd9cdb
refs/heads/master
2023-02-18T23:04:56.162587
2021-01-16T14:31:47
2021-01-16T14:31:47
312,524,107
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pprint import pprint from random import * from datetime import datetime person_mapping_dict = { 1:"Aaron", 2:"Vincent", 3:"Sir Ying", 4:"Jason", 5:"Billy" } good_mapping_dict = { 45:"banana...
UTF-8
Python
false
false
2,770
py
34
homework2.0_q.py
29
0.54657
0.355957
0
87
30.804598
188
P-R-McWhirter/augment_height
18,674,517,808,094
a4861f902bb92d46b429a49f736fa3af8f1f74c0
0d91e95505e3ee60e058837d6d24d3e93a3eec65
/augment_height.py
34ed2587d77e76da21717d1d307684a6a9e4c587
[]
no_license
https://github.com/P-R-McWhirter/augment_height
0513b469d4feb3cef84e0186f446480d28b191f9
cdec23ee7c93b820a518735149c33fdd056a441f
refs/heads/master
2021-02-18T19:33:14.877719
2020-03-05T17:36:03
2020-03-05T17:36:03
245,227,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Imports from __future__ import print_function import numpy as np import pandas as pd import os from sklearn.model_selection import train_test_split from sklearn import preprocessing from sklearn.metrics import confusion_matrix import gc import itertools import cv2 import argparse gc.enable() ap = argparse.ArgumentP...
UTF-8
Python
false
false
1,957
py
2
augment_height.py
1
0.625447
0.601942
0
67
28.208955
112
manhcntt21/TextNormSeq2Seq
7,121,055,811,919
a2840cdc8c280ce92c46d31aae8c3e5d2648cb9b
6f2d9408e0074ccc29fdcf65f55f55fa7ef53ee6
/check.py
08509afc3a3baa8b07200a9fa2fc59fc056165c9
[ "MIT" ]
permissive
https://github.com/manhcntt21/TextNormSeq2Seq
a3a4fb770b42594a5fa6837664013a496b067132
440b252bddc0c735f083acd51271f2056d088a0a
refs/heads/master
2020-09-13T13:54:19.390847
2020-02-03T02:09:01
2020-02-03T02:09:01
222,806,593
0
0
NOASSERTION
true
2019-11-19T23:02:02
2019-11-19T23:02:01
2019-11-14T15:46:25
2019-09-10T15:13:32
45
0
0
0
null
false
false
import random def get_repleace_character(): repleace_character = {} # repleace_character['ch'] = ['tr'] # repleace_character['tr'] = ['ch'] repleace_character['l'] = ['n'] repleace_character['n'] = ['l'] repleace_character['x'] = ['s'] repleace_character['s'] = ['x'] repleace_character...
UTF-8
Python
false
false
3,524
py
66
check.py
9
0.418275
0.408343
0
104
32.836538
100
g2thend/proxypool
2,405,181,701,292
2e19cb52db6edb83275d2ba77f24c43fc683850d
5f98c9ee03fe4e6c36eab76d819d2ab868b837c8
/imorter.py
eec48591e818ec08f1de146f8b0fd9a4f8ded6eb
[]
no_license
https://github.com/g2thend/proxypool
604fe8f6153b57e70b392ad3023786e98da1043f
fc30541131c095c7d4d845d7b884e78c6f7e9674
refs/heads/master
2020-12-14T17:43:12.544796
2020-01-19T02:42:25
2020-01-19T02:42:25
234,827,201
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 12/20/19 2:19 PM # @Author : yon # @Email : @qq.com # @File : imorter # 手动录入代理 # 未测试 from proxypool.db import sqlitedb importer = sqlitedb() def importproxy(proxy): result = importer.add(proxy) print(proxy) print('录入成功' if result else '录入失...
UTF-8
Python
false
false
691
py
11
imorter.py
10
0.55935
0.543089
0
32
18.1875
43
ezeutno/PycharmProject
6,717,328,868,756
94ed949972b741443f798b3378624901ba37f47c
c4a0669126f2fbf757ac3b33a8279ef32305bbd7
/Data Project/Jude_Assignment/Alien_Invasion(New)/earth.py
738b0735ec6040ee00969c85928b6670fe303be6
[]
no_license
https://github.com/ezeutno/PycharmProject
822b5a7da05729c5241a03b7413548a34b12e4a5
bdb87599885287d2d7cd5cd703b62197563722b8
refs/heads/master
2021-07-18T20:55:08.605486
2017-10-24T03:14:10
2017-10-24T03:14:10
105,782,136
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame class Earth(): def __init__ (self,ai_setting,screen): self.screen = screen self.ai_setting = ai_setting x = self.ai_setting self.image = pygame.image.load('Data_base\\earth.bmp') self.rect = self.image.get_rect() self.screen_rect = screen.get_rect() ...
UTF-8
Python
false
false
491
py
135
earth.py
125
0.621181
0.621181
0
15
31.8
62
JohnLZeller/F310_Gamepad_Parser
19,224,273,630,627
9e013c5208450692eb8d8375a6a6663fcaa95b04
e01376a824b8e9cc0e6910115e33365824de857c
/gui_main.py
79d4e29ceb66c34e43e64159aef435ccc6f1309f
[]
no_license
https://github.com/JohnLZeller/F310_Gamepad_Parser
7863fe383cad51b20703ba22dc3bff4aed311c07
04c47aac51a2697ad0288fbdad382ace754484c9
refs/heads/master
2021-01-21T05:06:02.317722
2013-02-12T23:22:49
2013-02-12T23:22:49
12,443,874
4
4
null
null
null
null
null
null
null
null
null
null
null
null
null
############ Logitech F310 Gamepad Controller GUI - gui_main.py ########## # Original Author: John Zeller # Description: GUI_Main displays the values being stored in the states # python dictionary in a very simple labeled Tkinter GUI # to make them easily viewable. import Tkinter as tk # Native Python GU...
UTF-8
Python
false
false
12,513
py
2
gui_main.py
2
0.638376
0.611204
0
197
62.522843
116
rinoshinme/detection_yolo
16,329,465,678,604
747623a8ea175bf2e5caeb8bcf165ba9dfb92be8
42245303c0914e9923a67f7e5763f354627e1d7a
/yolo/yolov1.py
c39617f182d1eae1b8988db4b408ca628d3c094f
[]
no_license
https://github.com/rinoshinme/detection_yolo
0d68170136da908d6b7e384c2b9538f0017411e2
8c367d31cca4361aff1eacd6c96e544d5497ccbd
refs/heads/master
2020-07-02T05:04:44.489451
2019-08-09T09:55:15
2019-08-09T09:55:15
201,423,587
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np from utils.layers import leaky_relu from config.yolov1_config import cfg slim = tf.contrib.slim class YOLOv1(object): def __init__(self, is_training=True): self.classes = cfg.CLASSES self.num_classes = len(self.classes) self.image_size = cfg.IMAGE...
UTF-8
Python
false
false
1,507
py
22
yolov1.py
17
0.569343
0.5501
0
44
33.25
90
javerdejo/UMACamp_sensors
2,860,448,223,835
c448651a88c86378291100a365e153a7d13bfd8a
a00fc0006530b637f1439982b85a8f0b2fa12cc4
/sensors/bluetooth/settings.py
c2f6e0c67e41426ee864f4edbedca1b8d61510e7
[]
no_license
https://github.com/javerdejo/UMACamp_sensors
c272aa240a1f02f4b4e2aefa12218d3de8442996
05d6315ca085bbf2e77688a02eef18ea2ec10c23
refs/heads/master
2021-01-11T18:57:20.384878
2017-05-09T08:44:57
2017-05-09T08:44:57
79,280,292
0
0
null
false
2017-03-03T13:34:02
2017-01-17T22:46:44
2017-02-24T10:26:42
2017-03-03T13:32:59
47
0
0
2
Python
null
null
BT_SCANNER_DURATION = 10 #seconds BT_SCANNER_LOGGING = "/var/log/bluetooth.log" BT_SCANNER_DATAHTML = "/var/log/bluetooth_data.log" BT_SCANNER_LOGPATH = "/bluetooht_sensed"
UTF-8
Python
false
false
173
py
12
settings.py
11
0.751445
0.739884
0
4
42.25
51
vtheno/python-monad
1,176,821,040,834
1da93c0cef33f802d0edcc0b358370fffddb1848
e8e36611267126c6add47d8a66175ec5a30961e9
/infix.py
2aea38426855a4c12725ba23b3cd8d102807f023
[ "MIT" ]
permissive
https://github.com/vtheno/python-monad
666a044e5bc011e44b74440b725ba7dfabe83c20
781407a1b3eca7fb0beb0899136f4859f5e77540
refs/heads/master
2021-05-26T19:56:16.386606
2014-01-24T15:18:43
2014-01-24T15:18:43
106,650,047
1
0
null
true
2017-10-12T05:47:57
2017-10-12T05:47:57
2017-10-12T05:45:52
2014-01-24T15:18:49
152
0
0
0
null
null
null
""" Infix hack from: http://code.activestate.com/recipes/384122/ """ # pylint: disable=R0903 class Infix(object): """ Infix decorator. For instance: >>> @Infix >>> def mult(x, y): ... return x * y >>> 2 |mult| 4 8 >>> 2 <<mult>> 4 8 """ def __init__(self, function):...
UTF-8
Python
false
false
749
py
7
infix.py
7
0.543391
0.522029
0
36
19.805556
79
rimvydaszilinskas/printer
1,906,965,484,100
befe3f1fc2053a6cb2cfc2b279ed089ea285068e
786a05b62e0a6bded2568194d80570e2c1f58df1
/lib/templates.py
fa1b98e6018f3c3ad7b1a34193944e0a97a6fcec
[]
no_license
https://github.com/rimvydaszilinskas/printer
ac31d05bd4c747dd793c5e3c5182573f922e7940
4a443c049dfc2fdb690f3c079393a7f2aad28058
refs/heads/master
2022-05-24T04:22:19.652929
2020-04-16T11:40:19
2020-04-16T11:40:19
171,291,657
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import urllib.request def load_image(template): print(template) return open("/home/pi/printer/templates/" + template) def cleanup_templates(): for root, dirs, files in os.walk("/home/pi/printer/templates"): for filename in files: if filename != "default.png" and filename != "...
UTF-8
Python
false
false
697
py
14
templates.py
9
0.662841
0.662841
0
19
35.736842
86
wkdewey/learnpythonthehardway
13,812,614,850,581
e62e78f693e95d5dd4ae8971cebc808c10cc6f90
2ff2cb79b2ea556514ceb9f41c55734f30f4b5fe
/ex17.py
d0cb3a3c4481920873d422c7617e7874a178acce
[]
no_license
https://github.com/wkdewey/learnpythonthehardway
4ccc7dc02aeac09d42d36344961f539703cc008a
284643d0ad52abfc826492c6f9a3cdbd9dcd8b50
refs/heads/master
2020-03-23T02:31:25.530269
2018-07-14T21:06:54
2018-07-14T21:06:54
140,978,281
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import argv; from os.path import exists; script, from_file, to_file = argv;print "Copying from %s to %s" % (from_file, to_file); indata = open(from_file).read(); out_file = open(to_file, 'w').write(indata) x = len("12345") print "%d" % x
UTF-8
Python
false
false
247
py
27
ex17.py
27
0.663968
0.643725
0
3
81.333333
214
rdghosal/WaveNative
16,329,465,659,863
551c9608375bf82c17d00c2df5bb24e15885a4bc
4c71c8a38429a39da78509c617923f7911b07bab
/api/services/user.py
9168764d00abc470547274c229d3a57ec5be182b
[]
no_license
https://github.com/rdghosal/WaveNative
4b4e184070b9e992c9379df647e66a64cfb19e4b
340fdb8e354daf87915d8e4725e510dd222cc4cc
refs/heads/master
2023-01-12T05:49:39.878089
2020-02-16T02:16:31
2020-02-16T02:16:31
196,894,015
0
0
null
false
2023-01-07T14:39:10
2019-07-14T23:40:55
2020-02-16T02:16:37
2023-01-07T14:39:09
7,756
0
0
25
JavaScript
false
false
from api import db from api.models.user import User from werkzeug.security import check_password_hash, generate_password_hash def check_form_data(form): """Takes data used for registration and evaluates whether info is original""" if form["password"] != form["confirmation"] or \ db.session.query(U...
UTF-8
Python
false
false
1,071
py
41
user.py
29
0.645191
0.644258
0
37
27.972973
85
mhyttsten/GeneralMLRepoPython
11,596,411,703,049
52be2f8821d9fa77f71892998fb48654208274e6
c790d516ae4fcb5a83010a08f9756313afd170a4
/TF_Old/Ref_TFFileIO.py
99032f755f0b4f9e56c2268ec7855c949877969c
[]
no_license
https://github.com/mhyttsten/GeneralMLRepoPython
1ccbf0c7fbd85ec981b8d4d417ab673dcaa2e8ec
c5d3bfb115601a3f162e8b089b0a1527ac0ba139
refs/heads/master
2021-09-06T05:20:07.597283
2018-02-02T18:16:06
2018-02-02T18:16:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf def input_pipeline(filenames, batch_size, num_epochs=None): filename_queue = tf.train.string_input_producer(filenames, num_epochs=num_epochs, shuffle=True) reader = tf.TextLineReader() key, record_string = reader.read(filename_queue) f1, f2, f3, label = tf.decode_csv(record_str...
UTF-8
Python
false
false
1,621
py
45
Ref_TFFileIO.py
45
0.660703
0.649599
0
45
35.044444
99
sneha8412/back-end-inspiration-board
18,657,337,937,933
efdb86bfd1b5c23c64eacf5538a0d0b5921d26f2
c59b47da153036a20be3152cd0b9498c4333f1d8
/app/card_routes.py
e57e419c4d97e6a19b0c6f537ee634f422a0754a
[]
no_license
https://github.com/sneha8412/back-end-inspiration-board
f4f18555ec9a2914de69a93196f12c17378c2bfb
cf752d0f8d6798933bdb1a3d94a1760687994efd
refs/heads/main
2023-06-18T03:16:18.209195
2021-06-29T02:59:24
2021-06-29T02:59:24
381,177,181
0
0
null
true
2021-06-28T22:36:06
2021-06-28T22:36:05
2021-06-23T23:37:41
2021-06-23T23:04:21
0
0
0
0
null
false
false
from flask import Blueprint, request, jsonify, make_response from app import db from .models.board import Board from .models.card import Card import os # example_bp = Blueprint('example_bp', __name__) card_bp = Blueprint("cards", __name__, url_prefix="/cards") @card_bp.route("", methods=["POST"], strict_slashes=Fals...
UTF-8
Python
false
false
908
py
5
card_routes.py
5
0.664097
0.657489
0
37
23.513514
60
OverLordGoldDragon/StackExchangeAnswers
16,733,192,597,947
856b67ec64e3567bf89bb9645b342ef4a20a0009
88d98cc49954c8bf7f8076eedaeb2336282de4ce
/SignalProcessing/Q76636 - filters - Why is x(n) - x(n - 1) + x(n + 2) lowpass/main.py
07941c8928d54daef0e8de186616be9172bc8f6a
[ "MIT" ]
permissive
https://github.com/OverLordGoldDragon/StackExchangeAnswers
1312601f1a1b5970536171600e4317791c5e4953
47a5fd462e506cd417c7112a9fff3300b489f0de
refs/heads/main
2023-08-08T09:51:52.304487
2023-08-02T09:20:03
2023-08-02T09:20:03
387,701,666
13
3
MIT
false
2021-10-02T01:48:50
2021-07-20T06:57:55
2021-08-18T01:23:43
2021-10-02T01:48:49
154,626
2
0
1
Python
false
false
import numpy as np import matplotlib.pyplot as plt def plot(x, title): fig = plt.figure() plt.plot(np.abs(x)) plt.scatter(np.arange(len(x)), np.abs(x), s=10) plt.title(title, weight='bold', fontsize=18, loc='left') return fig def plot_T(x, Tmax): if Tmax == 0: title = "|H(w)|: x(n)" ...
UTF-8
Python
false
false
1,471
py
54
main.py
48
0.485384
0.456152
0
54
26.240741
78
YannisYao/12306Plus
1,812,476,234,058
bf3d92b212563f0f8e02a4c201a62542a169f7f1
1212291e28543032194a500a3c508cc44c71e238
/business/check_captcha.py
05e6955a6e5dfce8d5f0fa0e981e352c2518c221
[]
no_license
https://github.com/YannisYao/12306Plus
1d72102c6ca7b362ac077a12c069af8527a4bd4c
dbec0c8260fd94d5a7392330a1c3c692a6bbd1d5
refs/heads/master
2021-05-11T06:13:25.597472
2018-01-19T07:58:07
2018-01-19T07:58:07
117,982,002
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#校验验证码 from business.damatuWeb import DamatuApi from business.captcha_download import download_captcha import json from business.urlcontants import UrlContants from business.middleproxy import MiddleProxy from bs4 import BeautifulSoup #坐标识别式验证码 CAPTCHA_TYPE = 310 #坐标偏移量 OFFSET_X = 0 OFFSET_Y = 30 def get_result_point...
UTF-8
Python
false
false
2,752
py
21
check_captcha.py
19
0.594821
0.58247
0
70
34.871429
107