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
drcloud/junkyard
16,844,861,744,204
7f932366c755da66a60ad94fab2c299789ba37ea
d7760487c64cdd531b20792a4ce231e7320a7d2e
/drcloud/client/core.py
e84ff4bdb9d4eaab6636d5c31fa6a9a70798a4f7
[]
no_license
https://github.com/drcloud/junkyard
1fdbbffcbef9d7e9f2894becd9327067f347f325
4f2ba6aa67a4fabb46ccd1da08914300f7b756f0
refs/heads/master
2021-01-10T12:18:43.207313
2016-02-29T23:52:50
2016-02-29T23:52:50
52,833,340
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class System(object): def __init__(self): raise NotImplementedError() def configure(self, redo=False): """Initiate system startup and configuration. Use ``.stabilize()`` to wait for startup to finish. Separating calls to ``.configure()`` and ``.stabilize()`` allows many systems...
UTF-8
Python
false
false
1,070
py
64
core.py
49
0.614953
0.614953
0
35
29.542857
76
shashankkmr34/LMS_PROJECT
8,864,812,509,640
4e23348e75557431e35f2ee0db424873ef945ec6
de20ecc27ae2d5c4d5df6c92c326cc6bc835bbb6
/myapp/views.py
f497b04840e6c8405372adab4180dce1615bb34f
[]
no_license
https://github.com/shashankkmr34/LMS_PROJECT
167cadac69472677686a8d1830d3f2ad629396ac
ba8e19f4261ac54058aef5b06f2471b98cd2b792
refs/heads/master
2022-11-20T20:06:10.322404
2020-07-09T20:38:43
2020-07-09T20:38:43
278,355,054
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from .models import Sales from .models import Leads from .forms import SalesForm from .forms import LeadsForm def welcome(request): return render(request, "welcome.html") def load_form_sales(request): form = SalesForm return render(request, "index.html", {'f...
UTF-8
Python
false
false
1,713
py
13
views.py
5
0.673672
0.673672
0
75
21.84
63
kylepietz/nba_standings
19,636,590,515,066
8074cac52b5d5f422d0b2f86fd576464e642775a
6ae77810b9a252c9a4b12e1ae06dda3509dc4326
/nba_rich-poor.py
21079fd66b98f0b6fcfec915bdc1ccb84d261760
[]
no_license
https://github.com/kylepietz/nba_standings
ae590371702699ec1a7245ef85c9d64a7d4e6d72
8572aba809c47701c0e7563d182a3de7723a5e3e
refs/heads/master
2021-01-21T11:53:43.706066
2017-05-19T03:05:36
2017-05-19T03:05:36
91,759,589
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import urllib.request import html5lib #import pandas as pd #import time import statistics from matplotlib import pyplot as plt D = {} def getRecords(year): url = \ "http://www.landofbasketball.com/yearbyyear/" + str(year) + "_" + str(year+1) + "_standings.htm" req = urll...
UTF-8
Python
false
false
1,588
py
1
nba_rich-poor.py
1
0.602015
0.570529
0
57
26.807018
104
fga-eps-mds/2018.1-Dr-Down
12,412,455,497,416
0f200321d9e9c0056d11e0ba8d3e88bdd7d44726
102a9e14dc7d86c4b397101b426c6846a6949d5d
/drdown/appointments/views/view_request.py
7d84e5aa7810652c4bbee4f5bbcbdeb1b3ab6853
[ "MIT" ]
permissive
https://github.com/fga-eps-mds/2018.1-Dr-Down
2371535227aed7c09bbae9fd8871b8eac8068c05
3423374360105b06ac2c57a320bf2ee8deaa08a3
refs/heads/develop
2023-04-13T18:08:44.880516
2018-06-25T23:36:27
2018-06-25T23:36:27
124,143,479
3
13
MIT
false
2021-03-29T17:31:49
2018-03-06T21:55:37
2019-09-09T19:23:58
2021-03-29T17:31:48
16,592
9
8
7
Python
false
false
from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from django.views.generic import UpdateView from django.views.generic import DeleteView from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy f...
UTF-8
Python
false
false
5,462
py
312
view_request.py
154
0.674478
0.673929
0
160
33.1375
75
IntegrCiTy/DemoGA
15,375,982,926,793
41d01e053f4fd764f84be7edaa2a2f46bf24ab2e
643285a987e5490d9b6c6a37240ce8088aa6094a
/wrappers/power_network.py
24a4495edd65ec4f689df857cc08dc66a3f926bb
[]
no_license
https://github.com/IntegrCiTy/DemoGA
9a93ee957bd56aeca450d9461b886e23a1e24cef
f00d7a5ad35c170b468ed1b5b78b4c3c1c2f474f
refs/heads/master
2020-12-30T11:29:17.134667
2017-08-29T08:22:48
2017-08-29T08:22:48
91,572,349
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import pyfmi import redis from obnl.client import ClientNode import numpy as np class PowerNetwork(ClientNode): def __init__(self, host, name, input_attributes=None, output_attributes=None, is_first=False): super(PowerNetwork, self).__init__(host, name, input_attributes, output_attributes, is_f...
UTF-8
Python
false
false
1,236
py
16
power_network.py
9
0.580906
0.576052
0
36
33.333333
104
Uche-Clare/python-challenge-solutions
6,536,940,228,299
51c449e0fdff295b79f1f01fa22a6f25bec10a95
4fc21c3f8dca563ce8fe0975b5d60f68d882768d
/Ekeopara_Praise/Phase 2/STRINGS/Day34 Tasks/Task7.py
e7e2508f5ee0f0702bb6a95b592d8d5c2f1319cf
[ "MIT" ]
permissive
https://github.com/Uche-Clare/python-challenge-solutions
17e53dbedbff2f33e242cf8011696b3059cd96e9
49ede6204ee0a82d5507a19fbc7590a1ae10f058
refs/heads/master
2022-11-13T15:06:52.846937
2020-07-10T20:59:37
2020-07-10T20:59:37
266,404,840
1
0
MIT
true
2020-05-23T19:24:56
2020-05-23T19:24:55
2020-05-23T18:42:07
2020-05-23T18:42:04
5,035
0
0
0
null
false
false
'''7.Write a Python program to remove spaces from a given string. ''' def remove_spaces(str1): str1 = str1.replace(' ','') return str1 print(remove_spaces("w 3 res ou r ce")) print(remove_spaces("a b c")) #Reference: w3resouce
UTF-8
Python
false
false
237
py
1,262
Task7.py
1,261
0.670886
0.64135
0
10
22.8
69
svboeing/CNN-Sentiment
13,443,247,673,993
e7afb259dd3809cdc4d0637b04e6d37384608c38
82a2bf6dbd9dc9b5eccf6c426d321c1a922eb9a5
/unjoint CNN.py
6d86310beb43fe39f15303a1fdb1bc755a695350
[]
no_license
https://github.com/svboeing/CNN-Sentiment
a612f50a84277f2e60d14ed2665a7447f85f4775
905ceb7e2a46c07552552798ef69423c67540a85
refs/heads/master
2020-03-26T23:55:41.874074
2019-02-11T07:49:06
2019-02-11T07:49:06
145,578,509
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import tensorflow as tf from collections import Counter import random from keras.datasets import imdb from keras.preprocessing import sequence from sklearn.metrics import f1_score n_embedding = 200 num_global_batches = 5000 epochs = 15 # Set CNN parameters: sent_max_features = 5000 sent_maxlen = 40...
UTF-8
Python
false
false
5,939
py
16
unjoint CNN.py
12
0.648762
0.632935
0
172
33.52907
132
gzimin/web-service
12,335,146,107,950
17cf9ed25ddf22cb7146a7854204ddb8b599f19f
ac5ea77a3a65126862849105d0a99412cda2bbab
/shop/migrations/0004_auto_20180715_1442.py
278e5c08a9037c6953edd8f66322178a8f3d9f3e
[]
no_license
https://github.com/gzimin/web-service
c9e5cc0c645da4ab0cf8ba08ef4a10270600735a
c3869ec1d501546a2d84c8b2df86c511ac6b9fce
refs/heads/master
2018-10-22T18:31:46.212674
2018-07-21T06:40:58
2018-07-21T06:40:58
140,919,623
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.7 on 2018-07-15 10:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shop', '0003_auto_20180715_1240'), ] operations = [ migrations.RenameField( model_name='product', old_name='desription', ...
UTF-8
Python
false
false
370
py
14
0004_auto_20180715_1442.py
7
0.575676
0.491892
0
18
19.555556
47
kyounginbaek/Openarena_website
4,904,852,655,345
02df004cab124a54a0b607fb032e340494b0ee25
0b4f8d15b3c0d8e878ef8ec2d0e060499286714f
/main/migrations/0036_auto_20161101_1503.py
b101a87e4fdade3931f14b7fbf62e2a358851f07
[]
no_license
https://github.com/kyounginbaek/Openarena_website
0f25da947add8a9119c3877b32470f75ba614da5
818acce8c9def5f5673cd8dbc8e8d8fff6b1a1ce
refs/heads/master
2022-10-01T18:45:16.123631
2017-07-08T09:21:42
2017-07-08T09:21:42
62,291,671
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-11-01 06:03 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('main', '0035_auto_20161101_1442'), ...
UTF-8
Python
false
false
1,624
py
201
0036_auto_20161101_1503.py
159
0.577586
0.497537
0
47
33.553191
120
cqann/PRGM
1,331,439,891,090
7eb9f3abf009cf92d14ecb72b374589583cf113f
89f0df65abe01e273fd7cf0606727c777352ba47
/Python/code_comp/Codeforces/200110_Round_613_d2/prob6.py
a55e7141732fe17934f01f24947d2d8d576ace8c
[]
no_license
https://github.com/cqann/PRGM
486122601b959cfbf7d9d2dc2a37caa858cf15a8
7387dafb65895528c042a3f1ab605fa5325056ce
refs/heads/master
2022-02-16T00:59:32.342327
2022-01-27T16:55:46
2022-01-27T16:55:46
226,111,892
0
1
null
false
2020-11-16T17:41:44
2019-12-05T13:45:21
2020-11-16T13:04:40
2020-11-16T17:41:43
129,795
0
1
0
Python
false
false
def gcd(a,b): if b == 0: return a return gcd(b, a%b) def lcm(a,b): return int((a*b)/gcd(a,b)) factors = {1:[1]} def factors_of(n): if n in factors: return factors[n] ret = [n] for i in range(n,0,-1): if n%(n/i) == 0: factors[n] = factors_of(i) + ret retu...
UTF-8
Python
false
false
690
py
467
prob6.py
383
0.455072
0.426087
0
34
19.235294
44
coveooss/json-schema-for-humans
1,236,950,597,824
cb3d431d8571faa890cc927f389df08c06424581
04667453a54bbefbbfc5b8cb5c2fb5392f9ca8c5
/json_schema_for_humans/jinja_filters.py
4c19e4ab9a1cea58b03e497324f7ad35f66dc427
[ "Apache-2.0" ]
permissive
https://github.com/coveooss/json-schema-for-humans
74c375d385d124c6736ea7fe510a9b7a5015c13c
6a467492d697c4a44a409409ab0391a4a4acd291
refs/heads/main
2023-08-09T22:06:21.609887
2023-07-17T13:52:54
2023-07-17T13:52:54
202,809,346
371
81
NOASSERTION
false
2023-09-07T14:51:52
2019-08-16T22:58:32
2023-09-06T15:41:07
2023-09-07T14:51:50
2,169
371
76
38
Python
false
false
import re import json import yaml from datetime import datetime from typing import List, Any from jinja2 import pass_environment, Environment from markdown2 import Markdown from markupsafe import Markup from pygments import highlight from pygments.formatters.html import HtmlFormatter from pygments.lexers.javascript i...
UTF-8
Python
false
false
8,320
py
241
jinja_filters.py
27
0.698077
0.696274
0
224
36.142857
118
Code-Institute-Submissions/snAPP
3,676,492,009,601
7f7e7ba57fcf04599e999a326c493bd34abc53ce
be3c0e5deab36d48ea71f83c85b12cdc80fe5ef9
/bugtickets/views.py
a8208863bdadf4d0561bff22978580b42e3f0d32
[]
no_license
https://github.com/Code-Institute-Submissions/snAPP
f548193a4c27a56bf3d6ee259ea7d3793d6dfaa9
bdea392764f5608d47055c1233dfc72811e4e4cd
refs/heads/master
2020-03-27T04:51:32.650201
2018-08-24T09:42:25
2018-08-24T09:42:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, reverse, redirect, get_object_or_404 from .models import BugTicket, BugUpvote, Comment from .forms import ReportBugForm, CommentForm from django.contrib.auth.decorators import login_required from django.contrib import messages from django.contrib.messages import success, warning, e...
UTF-8
Python
false
false
3,554
py
92
views.py
49
0.642093
0.640405
0
110
31.318182
97
kg55555/pypractice
6,021,544,157,650
2a55fcc8005986ab0c18555c5e3f4956685d40c5
52177c5edd2a339580b8bd730f3141f4f06a9a3e
/Part 1/Chapter 2/exercise_2.5+6.py
69aba66b09b9c4456cf4a059158f831dc4871028
[ "MIT" ]
permissive
https://github.com/kg55555/pypractice
2cf317798afc6c2c1194a6817fd569a80610d753
1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef
refs/heads/master
2022-08-20T20:38:38.104618
2020-05-30T00:33:05
2020-05-30T00:33:05
266,683,672
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
author = "Cooper" quote = "We used to look up and wonder about our place in the stars. \nNow we just look down, and worry about our place in the dirt" print(f"{author.title()} once said: '{quote}'")
UTF-8
Python
false
false
198
py
102
exercise_2.5+6.py
101
0.712121
0.712121
0
3
65.333333
132
Prashu94/Learnings
12,128,987,645,495
eb6367f8a3fd28186013da0e69488149c2f06fba
e533a9f2d1d2a17c32c074208396aa6f16bb81fc
/Python_1/MachineLearningModels.py
fb43a9f5a51f370030b1e2584be8a172d88b23e6
[]
no_license
https://github.com/Prashu94/Learnings
dd5b91800277c1283020b829751fc05b000d1bc1
b42b0278ac6ce0b39657e0c21532ba15540a3d46
refs/heads/master
2021-05-12T12:27:14.134831
2018-12-25T14:58:31
2018-12-25T14:58:31
117,414,594
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Feb 18 13:52:37 2018 @author: user """ import csv import pandas as pd import numpy as np import random as rnd import os import re #Visualization Import import seaborn as sns import matplotlib.pyplot as plt import scikitplot as skplt # Super...
UTF-8
Python
false
false
11,705
py
228
MachineLearningModels.py
177
0.674669
0.664673
0
385
28.407792
235
sunlab-osu/CliniRC
4,260,607,578,281
864ad21c5b77b20ecae94cffacd27c9785f51d2f
9b013d971610b3f616e7d20d49dcdbedea77d828
/src/split_sections.py
81e6d501be2517aaeee6bb6db25e99e4a693bab1
[ "Apache-2.0" ]
permissive
https://github.com/sunlab-osu/CliniRC
ce3ac57fe63d019734654ce5331ea46dfd46b880
d156306666272ee898a0b7f57ce63d519bf1f521
refs/heads/main
2023-07-03T05:44:16.504892
2021-08-11T14:54:35
2021-08-11T14:54:35
395,024,654
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from section_split_utils import * #Change to emrQA json filename emrqa_dir = 'data/datasets/' emrqa_filename = 'data.json' #Loading emrQA datasets from data directory datasets = load_emrqa_datasets(emrqa_dir+emrqa_filename) emrqa_json = datasets[emrqa_dir + emrqa_filename] #Splitting emrQA questions by clinical reco...
UTF-8
Python
false
false
1,383
py
10
split_sections.py
6
0.778742
0.778742
0
30
45.133333
103
eudoxos/vprof
19,499,151,564,274
6837d30d6ed04e8d9b2453445c755a49dcfd1cf2
74d72efdb28d37a53957b2c7ab3fb438672e6b29
/vprof/base_profiler.py
657d047b0a48e7cf17093e9af61dd4d674df21cf
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
https://github.com/eudoxos/vprof
3d4d838d0144f7e65714c82110c1703e0a9ce19f
8c0b137377105db866ec1bd029faf5a6cf19814a
refs/heads/master
2021-07-08T03:17:47.477886
2017-10-05T13:00:34
2017-10-05T13:00:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Base class for a profile wrapper.""" import multiprocessing import os import pkgutil import sys import zlib def get_pkg_module_names(package_path): """Returns module filenames from package. Args: package_path: Path to Python package. Returns: A set of module filenames. """ modu...
UTF-8
Python
false
false
5,348
py
2
base_profiler.py
2
0.603029
0.602094
0
164
31.609756
78
DaHuO/Supergraph
6,038,724,049,363
5e385862f671488edc937727ae9bc3357ce4719e
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1_neat/16_0_1_RandomNickName_sheep.py
29f3ef3928b69710332d388757a36c8ff6b88929
[]
no_license
https://github.com/DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
false
2021-03-19T21:55:46
2016-01-17T18:23:00
2019-02-21T15:42:08
2021-03-19T21:55:45
38,414
0
0
2
Python
false
false
def solve(start): if start == 0: return "INSOMNIA" remaining_digits = [x for x in range(0, 10)] counter = 1 current = start tmp = 0 while len(remaining_digits) > 0: tmp = [int(i) for i in list(str(current))] #print tmp for item in tmp: if item in remai...
UTF-8
Python
false
false
1,149
py
30,073
16_0_1_RandomNickName_sheep.py
16,513
0.5396
0.529156
0
38
29.105263
98
smchang/bracketracker
17,729,625,012,089
44c1c918591b2824e590fe82c06ad9f404de5673
0dfa8a67556d038fbe832131309df21640601a0a
/main.py
cbf4f129e563978cacf9af8a13266a5439372e69
[]
no_license
https://github.com/smchang/bracketracker
bd9633147051ed1f33cc39fde85a5e76a7b4cdd2
6d4f393f8adb96afe2856a8d00a081067029bf10
refs/heads/master
2021-01-13T01:47:44.678392
2012-05-14T20:23:25
2012-05-14T20:23:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, redirect, request, render_template, url_for, session, jsonify from models import Member from models import Tournament from models import Notification import os import shelve import uuid tournamentDB = shelve.open('db/tournaments.dbm','w', writeback=True) app = Flask(__name__) app.secret_key =...
UTF-8
Python
false
false
11,613
py
25
main.py
9
0.608456
0.601137
0.001378
265
42.822642
190
shenaishiren/python-project
5,454,608,471,940
ec25e86ac9f811e02c6a5574f6b86c5fa52b97a4
2b0d897e517a8e7966b420c59d0ecc5871f45117
/ICQU/app/news/views.py
0a8b635e1d851489333e360d6fd6ab81598e9215
[]
no_license
https://github.com/shenaishiren/python-project
37c229033d86bff1c60091d392d289fe6b914283
6768fa1fc2e5187932354a63024c73a8eb7e34a8
refs/heads/master
2020-12-24T16:25:20.749638
2016-04-05T05:12:34
2016-04-05T05:12:34
42,302,647
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 from config import MONGO_URI, MONGO_PORT, \ GENERIC_MONGO_DB, JOB_MONGO_DB, ACADEMIC_MONGO_DB, \ GENERIC_COLLECTION_NAME, JOB_COLLECTION_NAME, ACADEMIC_COLLECTION_NAME from flask import Flask, render_template, current_app, g from datetime import datetime from pymongo import MongoClient from func...
UTF-8
Python
false
false
4,052
py
70
views.py
42
0.613591
0.604663
0
112
35
142
riniguez91/empty-spain-back
8,048,768,724,030
a8b159d6bd4170e870eb1ba7727393420b11ab3c
da9b5ce27df43ed9735235eb6c67b66bdb7f806d
/api/scrapers/cope.py
67c30c343b02f8a7f8c2a6f6c0264944cc375536
[ "MIT" ]
permissive
https://github.com/riniguez91/empty-spain-back
0647322f595a1e547fd22e36888eb9d954459373
7a48b1d01c9e90203a6b043b6f54a4f3600f8691
refs/heads/main
2023-06-14T03:08:45.011132
2021-07-05T17:25:05
2021-07-05T17:25:05
357,646,969
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver import time import requests from bs4 import BeautifulSoup import re import json link = [] def cope_content(user_input): #Headless para evitar que se lance la ventana de chrome, ahorrando recursos ya que no se necesitan para la Interfaz Gráfica de Usuario options = webdriver.Chrom...
UTF-8
Python
false
false
2,157
py
31
cope.py
29
0.661874
0.647495
0
50
42.14
158
Niikcety/CinemaReservation
6,176,163,008,140
b590e9ca6cf8ac23164b4c8d13d653a4caede59e
2f3f6b18ef8b94f1b37e8c841808290f868ff0a1
/main.py
6910439bef6e51b3f8d7155992372938ecc28405
[]
no_license
https://github.com/Niikcety/CinemaReservation
23f3a829c1d895db80bea54cea3ff22419b3c61d
b6ea0393dbc8fe91413a7213cc82aebd20c91d71
refs/heads/master
2022-07-16T14:58:20.958493
2020-05-13T15:39:49
2020-05-13T15:39:49
261,232,283
0
0
null
false
2020-05-13T15:38:12
2020-05-04T16:05:17
2020-05-08T13:10:53
2020-05-13T15:38:12
32
0
0
0
Python
false
false
import ipdb from menu.model import MenuModel menu = MenuModel() menu.controller.db.create_tables() menu.controller.db.fill_tables() menu.start() menu.main_menu()
UTF-8
Python
false
false
163
py
24
main.py
22
0.773006
0.773006
0
8
19.375
34
hamielHong/douban_spider
6,760,278,545,162
1a6549fbc1b3791890095bbf9ed919e4a0dc8ff4
e251d6a25d371506968aa9dc6620413b5103e8da
/html_parser.py
31b60bd1119315e410c295772567b570ca0782a5
[]
no_license
https://github.com/hamielHong/douban_spider
e17b050bc04828e02a941696c1911e6b87a6da14
a9ebc2119d6b1af2cdca383b88acebf70a981bf9
refs/heads/master
2021-07-23T13:12:51.710067
2017-11-01T03:16:14
2017-11-01T03:16:14
109,080,024
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import re import urllib.parse class HtmlParser(object): def parse(self, html_cont): if html_cont is None: return soup = BeautifulSoup(html_cont, 'html.parser', from_encoding='utf-8') new_data = self._get_new_data(soup) return new_data ...
UTF-8
Python
false
false
702
py
5
html_parser.py
3
0.591168
0.588319
0
30
22.366667
77
pantsbuild/pants
18,932,215,852,934
7063273ebe50b95468f925530e738465e1a2dc9d
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/javascript/resolve.py
21b9a63b69c32d7cc6135b01229c4b65958d5815
[ "Apache-2.0" ]
permissive
https://github.com/pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
false
2023-09-14T19:33:33
2012-12-17T17:39:04
2023-09-14T08:48:22
2023-09-14T19:33:33
157,747
2,809
572
966
Python
false
false
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import os from dataclasses import dataclass from typing import Iterable from pants.backend.javascript import nodejs_project from pants.backend.javascrip...
UTF-8
Python
false
false
3,476
py
1,910
resolve.py
1,494
0.756329
0.754603
0
105
32.104762
99
sivakrishnar/pythonplay
9,113,920,629,757
ff71f7789dc80b7a18ed94cca753ffa010b7ca48
4bce552bdabb0cea260e6999bc5e8acb3f496f5b
/insertion_sort.py
06e4dcade31cc2062bb7901907a92290d003e0f8
[ "MIT" ]
permissive
https://github.com/sivakrishnar/pythonplay
82248d1c40c379f48d817ee9c035cf28fee61d9d
903afc3f0baa4107230af5487df3efaef6169412
refs/heads/master
2022-09-15T02:42:03.090793
2020-05-28T07:15:35
2020-05-28T07:15:35
266,028,924
0
0
MIT
false
2020-05-28T07:15:36
2020-05-22T05:48:10
2020-05-27T07:20:47
2020-05-28T07:15:36
6
0
0
0
Python
false
false
def insertion_sort(ls): for index in range(1, len(ls)): for sub_index in range(0, index): if ls[index] < ls[sub_index]: ls[index], ls[sub_index] = ls[sub_index], ls[index] return ls if __name__ == "__main__": import random print(insertion_sort([random.randint(-1000, ...
UTF-8
Python
false
false
347
py
5
insertion_sort.py
4
0.570605
0.536023
0
10
33.8
75
iori422/51jkfw
19,000,935,319,536
0ccae886a1fd27cda411db1d7fa24a678f5b822d
46119f4175cc34772c070030341713dbe175c68c
/Script/soprt_combo.py
2875fd6231f6aa512456cfc3506706d20fa1030b
[]
no_license
https://github.com/iori422/51jkfw
2c146a116a745383b7c5bd48eea5ef0ac34c33f0
f82f25b97d879938408ae96a4a3ec7a2db94c157
refs/heads/master
2021-08-23T23:15:37.787234
2017-12-07T01:52:02
2017-12-07T01:52:02
113,388,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from selenium import webdriver import xlrd import pandas as pd fname =R"D:\2\20170418.xlsx" bk = xlrd.open_workbook(fname) sport = range(bk.nsheets) try: sh = bk.sheet_by_name(u"成年人") except: print "11111111111111111111:"+ fname nrows = sh.nrows ncols = sh.ncols print "nrows %d, ncol...
UTF-8
Python
false
false
410
py
39
soprt_combo.py
37
0.668317
0.584158
0
20
19.05
42
gcman/project-euler
9,002,251,468,173
ae1f5c422429e4cdcdeb0095ff1523fe1b75721a
f6de30ffb0d9d0f70d4a73d519f9499f7572df29
/48-Self-Powers/main.py
37647b6b40d68eba795e8c94a1f7e9710e8beff5
[]
no_license
https://github.com/gcman/project-euler
09a8a16a56535adf23444a7fe810728bc813d771
a49993c2c1e284a905dff0ee5bfe591409f68c24
refs/heads/master
2020-03-25T12:52:16.165138
2019-03-09T20:10:10
2019-03-09T20:10:10
143,798,174
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
N = int(input()) M = 10**10 S = 0 for n in range(1, N+1): # Take powers mod 10^10 # Mod 10^10 at the end S = (S + pow(n, n, M)) % M print(S)
UTF-8
Python
false
false
153
py
89
main.py
88
0.503268
0.405229
0
8
18.125
30
Aunsiels/smart_plans
9,775,345,607,860
0ce8b53a3b70e48a864acdc3fd61888318957709
1b4bcec4fe9f6ae4710b1311a12286af9b468c99
/code/experiments/reduced_rule.py
82bda6bd9d8abf0e27a794a5dc94806326620e93
[]
no_license
https://github.com/Aunsiels/smart_plans
859345438d97d78af9bad6736810ae1aefa9ff81
f206d23c2c468c802c14df49dd97be69380578af
refs/heads/master
2021-03-27T20:36:19.323650
2018-06-15T17:19:09
2018-06-15T17:19:09
104,898,472
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class ReducedRule(object): """ReducedRule Superobject of all possible reduced forms. They can be of four types : * Consumption * Production * End * Duplication """ def isConsommation(self): """isConsommation Whether the rule is a consumption rule or not""" ...
UTF-8
Python
false
false
696
py
76
reduced_rule.py
63
0.62069
0.62069
0
25
26.84
74
cocoslime/point-in-PC-polygon
4,466,766,022,830
be525c69ee099dea5cbcdc1dfe4551cb40832fbb
f698fa596c27b9873dc556194849cfb13bb5bc8f
/pointcloud-polygon-generator/problem3-extrude-solid-generator.py
29eb5f824bca5320f68bffcbf43f40767fe202e9
[]
no_license
https://github.com/cocoslime/point-in-PC-polygon
2499760f21376fb3e67ccc15d90e85a7f29612b2
6191963e427746928c4a7ae2932432dda4f4c7bf
refs/heads/master
2020-03-09T16:10:40.772608
2018-11-22T02:02:59
2018-11-22T02:02:59
128,877,817
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import numpy as np import csv MAX_HEIGHT = 100 MIN_HEIGHT = 10 CONVEX_OPT = 'convex' polygons_csv = open("../data/problem2/" + CONVEX_OPT + "/polygon.csv", newline='') polygons_reader = csv.reader(polygons_csv, quoting=csv.QUOTE_NONNUMERIC) solids_csv = open("../data/problem3/extruded/" + CONVEX_OPT +...
UTF-8
Python
false
false
745
py
41
problem3-extrude-solid-generator.py
37
0.667114
0.651007
0
27
26.296296
111
raphaelfv/busdata
10,479,720,214,497
82e45e2a1855062cd99ecaeefff865ffddfa835f
e0018032775a6ccf5955b5e6d3c1bcc0574e3e7b
/busdata/first_load.py
7a5c697f217fe420bc49321a2766b6c198e03d72
[]
no_license
https://github.com/raphaelfv/busdata
47349a7911aea88995a631d358878097a69cb956
fbe91e222603caf78b68c17546dd7096e827953d
refs/heads/master
2021-01-23T04:09:05.845816
2019-04-26T21:57:11
2019-04-26T21:57:11
86,159,227
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from busdata.models import * def criarEmpresas(): nomeEmpresasList = ['Redentor','Barra','Feital','Vera Cruz'] empresasInativasList = ['Feital'] for nome in nomeEmpresasList: if not Empresa.objects.filter(nome=nome).exists(): novaEmpresa = Empresa(nome=nome) ...
UTF-8
Python
false
false
3,897
py
12
first_load.py
9
0.643994
0.63886
0
72
53.111111
99
r12habh/djangoProject
4,707,284,195,021
4ca99dd20927812ed9daab38e4c314233c97943c
c7450b5faad0dd32247628e95c002fb750dc232e
/pages/views.py
46de9c0a92f046ce35e67021a94d65d4f1e6c9d5
[]
no_license
https://github.com/r12habh/djangoProject
135829da13e38f68cfc2e5117cc3052d5c26a68f
eb42b7188bc1a9ed3ee36811efaa5c00e6af138d
refs/heads/main
2023-06-12T00:57:00.447978
2021-07-08T08:16:02
2021-07-08T08:16:02
384,019,193
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponse from django.shortcuts import render # Create your views here. def home_view(request, *args, **kwargs): print(args, kwargs) print(request.user) return render(request, 'home.html', {}) def about_view(request, *args, **kwargs): context = { 'text': 'This is a...
UTF-8
Python
false
false
636
py
3
views.py
1
0.63522
0.611635
0
26
23.461538
49
KomalBharadva/Analysis-of-Household-Power-Consumption-using-Clustering-and-MapReduce
8,083,128,501,516
dbbbbd0e0fcab9e026bba922d1497412bb432e1b
036bd2d0227a2ee58a2faebe9f27fc020af1104a
/DataPrep.py
de4926c91f52339f09acd8c11c6424f00df50c6f
[]
no_license
https://github.com/KomalBharadva/Analysis-of-Household-Power-Consumption-using-Clustering-and-MapReduce
e5464d7ac4e1905e89e14efceebc590aa9a99dea
9ac0722a2002a309fcaf6f259cf3f841b4792e92
refs/heads/main
2023-07-08T04:18:09.751507
2021-08-04T17:45:49
2021-08-04T17:45:49
392,774,626
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Importing all the necessay libraries import pandas as pd import numpy as np from sklearn.preprocessing import scale # Loading the dataset df = pd.read_csv('household_power_consumption.txt', parse_dates={'DateTime' : ['Date', 'Time']}, infer_datetime_format=True, low_memory=False, na_values=[...
UTF-8
Python
false
false
795
py
10
DataPrep.py
9
0.695597
0.685535
0
19
39.842105
125
pbhatt48/MachineLearningAZ
9,689,446,227,660
a5ed851bb4f2ab453b12659576a69b9b95f39f79
637d7735a172b8aa042daef50faa74d286ec433e
/DataPreprocessing/data_preprocessing_template.py
8b4d92976e75e2e4aca028b5f22fbd0f2c0c1f2f
[]
no_license
https://github.com/pbhatt48/MachineLearningAZ
74e4dc3ba6d895af776e0cb22848357385d5bf19
847f4fbf2b06116a97dce92aaa0831ff163b3f29
refs/heads/master
2020-04-26T19:09:43.213683
2019-04-23T13:57:27
2019-04-23T13:57:27
173,765,337
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt #dataset = pd.read_csv('/Users/sadichha/UdacityClasses/UdemyClass/ML_Practices/MachineLearningAZ/DataPreprocessing/Data.csv') dataset = pd.read_csv('Data.csv') X = dataset.iloc[:,:-1].values y = dataset.iloc[:,3].values #...
UTF-8
Python
false
false
937
py
11
data_preprocessing_template.py
7
0.753469
0.743863
0
32
28.28125
125
polyeuct/eden
4,690,104,327,531
e9dd6601cfcfa5bd47f3a5a143b72a691004ab3f
efa4c0985144f96fd3f70868fb667ea1c72164e4
/Stepik/Lesson 10.py
9bb10e754835e29cb876241ea23d93282ea6c81d
[]
no_license
https://github.com/polyeuct/eden
be19c199a3d333460f473bdbee1b5ea7bcc01ad3
468100057b56be375898b38a393a14c65173b359
refs/heads/master
2023-05-15T17:18:15.955449
2021-06-11T12:03:51
2021-06-11T12:03:51
301,976,194
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lst = input().split() x = input() if lst.count(x) == 0: print("Отсутствует") else: ind = 0 for i in lst: if i == x: print(lst.index(x, ind), end=" ") ind += 1
UTF-8
Python
false
false
210
py
17
Lesson 10.py
17
0.462312
0.447236
0
10
18.9
45
georsara1/Kaggle_projects
14,431,090,131,160
7aab919c59d9f466cbf4629bde7d1716959ad3cf
c3fa1b2984186c8103edc0b5dfd7d6e4fe7eb405
/Google_Analytics/future_not_set.py
2fdbd1af89f6b4fed6a6e3e8e2027ed98afb59aa
[]
no_license
https://github.com/georsara1/Kaggle_projects
e8141cccd6625c035ca9277a8d33dbf12b72eabe
59abe9ec6a35e1b4b423eac47985b645861ae801
refs/heads/master
2022-01-05T13:41:27.543818
2019-07-20T14:57:27
2019-07-20T14:57:27
197,943,913
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.metrics import mean_squared_error import gc import time from pandas.core.common import SettingWithCopyWarning import warnings import lightgbm as lgb from sklearn.model_selection import GroupKFold # I don't like Se...
UTF-8
Python
false
false
17,252
py
31
future_not_set.py
31
0.627927
0.615755
0
481
34.864865
119
baibhab007/Database-operation
3,607,772,560,187
bfca9de088a0f1fd5578db938e934bd44d6ef09b
3579a43ce5ebeb13a02dd184dc3227d02560cc8f
/connectDB_createTB.py
7c109241ce9466adcd8e5304a86f6310972ebe42
[]
no_license
https://github.com/baibhab007/Database-operation
5dc350737c56a470b369ea5363abf182503d3416
c75acd71b0f0b5f78dd8c43fcca699fa29040eff
refs/heads/master
2020-07-14T19:54:46.330689
2019-08-30T13:35:58
2019-08-30T13:35:58
205,388,523
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 def register(NAME, AGE, SEX, INITIAL_AMOUNT): con = sqlite3.connect('TEST.db') cursor = con.cursor() sql1 = 'DROP TABLE IF EXISTS CUSTOMER' sql2 = ''' CREATE TABLE CUSTOMER ( NAME CHAR(20) NOT NULL, AGE INT, SEX CHAR(1), INITIA...
UTF-8
Python
false
false
756
py
5
connectDB_createTB.py
4
0.511905
0.5
0
39
18.384615
52
dream36va/plen-ControlServer
2,396,591,787,064
5ef983e864be26549ce8a30d93f2dca5965f7902
0c2867e3ff96090b67998dd7c27410e8e3e39baf
/control_server/drivers/__init__.py
643ac5e311e22f94bf787d7f9cba6f12df7342e6
[ "MIT" ]
permissive
https://github.com/dream36va/plen-ControlServer
3bf49166b8607d3467b36e2de4800535e2e9a6c8
c6b0d884d8e7117e09cce9422c69556dd8901c7b
refs/heads/master
2020-06-25T02:32:24.287098
2018-03-30T05:30:58
2018-03-30T05:40:04
199,171,734
1
0
NOASSERTION
true
2019-07-27T13:59:38
2019-07-27T13:59:37
2018-12-14T14:19:13
2018-03-30T05:43:50
1,103
0
0
0
null
false
false
# -*- coding: utf-8 -*- ''' @file __init__.py @brief Provide data transfer driver mapping. ''' __author__ = 'Kazuyuki TAKASE' __copyright__ = 'PLEN Project Company, and all authors.' __license__ = 'The MIT License' from drivers.null.core import NullDriver from drivers.usb.core import USBDriver DRIVER_MAP = ...
UTF-8
Python
false
false
369
py
54
__init__.py
36
0.650407
0.647696
0
20
17.5
56
YuneYune/python-project-lvl2
6,554,120,139,882
4206e726e76d3e0b6598a9bf0139f8ea5952d482
8a5e849c0f02eb5f64cec5f9668053935f655b81
/tests/test_gendiff.py
265ae2cc9c821a04462d64d2e1cf32a1888ce5fc
[]
no_license
https://github.com/YuneYune/python-project-lvl2
971d9f0dc623efd2f9732161001922fa947aebd6
95e1e90247b0771eda86fa870c892e9b7bc2c87b
refs/heads/main
2023-06-29T22:16:09.577904
2022-01-22T20:11:19
2022-01-22T20:11:19
336,018,170
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 """Tests.""" from gendiff.gendiff import generate_diff def extract_exp_value(path): """Extract expected value which is store in txt file. Args: path (str): The path to file where expected value is store. Returns: (str): Expected value. """ with open(path)...
UTF-8
Python
false
false
4,771
py
18
test_gendiff.py
13
0.671977
0.666737
0
162
28.450617
78
TesterCC/Python2Scripts
6,657,199,309,851
a74c9c93f7c40c63cdccf8b3fe1470616fe7103f
2d9ec9278ede1dd086fc7629de96481160597a3f
/gloryroad/xiaoz/lesson14_4.py
cdba98960cfd2bfab0a53b873a409767f55a9100
[]
no_license
https://github.com/TesterCC/Python2Scripts
226ac6d217e767c517b4b798ac67e493348cf316
69c2fded6835762c693c1e42a2cbac8ddd2d6e74
refs/heads/master
2021-01-25T04:09:36.864279
2019-04-24T09:59:09
2019-04-24T09:59:09
93,401,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 ''' Created on 2016年3月16日 @author: PavilionLYX ''' import MySQLdb conn=MySQLdb.connect(host="127.0.0.1",user="root", passwd="yanxi76543210", db="test",port=3306,charset="utf8") cur=conn.cursor() print cur.execute("select * from user"); #打印表中全部数据,要先execute,否...
UTF-8
Python
false
false
731
py
358
lesson14_4.py
335
0.659476
0.607088
0
41
14.853659
56
Jankus1994/Coreference
326,417,522,714
d6c742836157ef5fd8978a734cbf721262e0b23c
671a669cc862f68d736a98b3d95bedf96cd7b09e
/CoNLL/conll_prodrop_feature_printer.py
be1d325b622a238ec880d1bbfbd75f2adfa55819
[]
no_license
https://github.com/Jankus1994/Coreference
e258b68c0a75ee3102614220f27c5d163e745c41
41b13ce6422ac6c3d139474641e75e502c446162
refs/heads/master
2021-01-23T01:55:56.732336
2018-05-03T18:06:40
2018-05-03T18:06:40
85,945,883
0
1
null
false
2017-03-23T13:08:14
2017-03-23T12:15:12
2017-03-23T12:26:51
2017-03-23T13:07:59
0
0
0
1
Python
null
null
# Jan Faryad # 22. 3. 2018 """ inhereted feature printer for dropped personal pronouns """ from udapi.block.demo.Coreference.CoNLL.conll_feature_printer import Conll_feature_printer from udapi.block.demo.Coreference.CoNLL.conll_specific_selectors import Conll_prodrop_training_selector class Conll_prodrop_feature_pri...
UTF-8
Python
false
false
479
py
59
conll_prodrop_feature_printer.py
59
0.741127
0.726514
0
12
38.916667
103
satyanarayan-rao/tf_nucleosome_dynamics
10,728,828,334,069
d4079c84bc1a6e2cb0b03d26e6412871f725e4ed
4ec101ac9e7fdc57510182243ace54747b5c404e
/snakemakes/tcga_atac_boxplot_analysis.smk
68939168171304c69c4d3e706e716943bb2449e4
[]
no_license
https://github.com/satyanarayan-rao/tf_nucleosome_dynamics
e2b7ee560091b7a03fa16559096c1199d03362de
00bdaa23906460a3e5d95ac354830120c9dd108e
refs/heads/main
2023-04-07T17:29:40.644432
2021-04-12T14:16:20
2021-04-12T14:16:20
356,676,912
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
rule extract_disease_subtype_count_matrix: input: raw_count_file = "/beevol/home/satyanarr/data/data_from_papers/corces_mr_et_al_science_2018/cancer_type_specific_count_matrices/BRCA_raw_counts.txt", patient_id_file = lambda wildcards: config["tcga_atac_params"][wildcards.disease_subtype] para...
UTF-8
Python
false
false
1,613
smk
155
tcga_atac_boxplot_analysis.smk
153
0.695598
0.690019
0
30
52.766667
158
nancyagrwal/Information-Retrieval
7,241,314,906,591
7b4ad883bc594bf91941b41d84428aae6c927273
664598daf3572b3860e4f8bc49e91c38dad55e17
/WebCrawler/Task1.py
1d4ad2ec925ccac39083e2fe90ee40311889e33e
[]
no_license
https://github.com/nancyagrwal/Information-Retrieval
34ed84f38112adb44f096d90447fd9001beeecae
275c2d70c206f66aa82b3fcd58d2922041d83f92
refs/heads/master
2021-01-20T00:28:52.235989
2018-08-17T14:46:41
2018-08-17T14:46:41
89,137,614
3
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup from time import sleep import socket import os import sys import time def crawler(url, crawled): # politeness policy of 1 sec between HTTP requests: time.sleep(1) source_txt = requests.get(url) plain_txt = source_txt.text.encode('utf-8') # implementin...
UTF-8
Python
false
false
2,358
py
671
Task1.py
25
0.622561
0.608567
0
84
27.071429
117
wwwzxaaa/Python-data-processing
1,176,821,043,580
bcfea85e1357f1ab7a2ee00f0ebee9e374f3e974
679d03b46eea15d1c1c4e617126fdca58be4b0c0
/quyang.py
c2c075b678a6f8d2fcda73f6ea2f4451361087a6
[]
no_license
https://github.com/wwwzxaaa/Python-data-processing
1180910e8a3a73783bbf706adea61c97821b5697
3c0aef24e7ee95e21f6b8179effe46d84e8a7941
refs/heads/master
2021-07-07T19:57:49.264794
2021-01-21T04:46:55
2021-01-21T04:46:55
226,469,309
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
f1 = open("E:\work\drug\drugs.txt","r") list_d = f1.readlines() len1 = len(list_d) drugs = [] for d in range(len1): drugs.append(list_d[d].strip("\n")) len_d = len(drugs) print(drugs) print(len_d) f2 = open("E:\work\drug\effect.txt","r") list_s= f2.readlines() len2 = len(list_s) side_effect = [] for ...
UTF-8
Python
false
false
754
py
59
quyang.py
56
0.603448
0.591512
0
30
23
61
jyleong/DailyCodingProblems
15,779,709,862,513
3df2e70ed545cc1fb7e91bf6089eaed0758cbadf
b53e25313d8afff95cb5510bfa9b3e4616123662
/daily_coding_problem_163.py
d4cdc019755d34130f8c344c258169d9ddd760fc
[]
no_license
https://github.com/jyleong/DailyCodingProblems
9f3a640654c43b36e320118576cbe8535c858a70
7798b2597c686ff3e030eec600a208c8cd467983
refs/heads/master
2021-07-02T21:26:53.535762
2020-10-14T00:54:35
2020-10-14T00:54:35
181,254,199
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Given an arithmetic expression in Reverse Polish Notation, write a program to evaluate it. The expression is given as a list of numbers and operands. For example: [5, 3, '+'] should return 5 + 3 = 8. For example, [15, 7, 1, 1, '+', '-', '/', 3, '*', 2, 1, 1, '+', '+', '-'] should return 5, since it is equivalent...
UTF-8
Python
false
false
1,445
py
117
daily_coding_problem_163.py
115
0.524567
0.493426
0
54
25.777778
108
kdheepak/psst
15,831,249,465,957
0798d5943575088dc4d28abaa74f206df8ba95fd
853c9bfad727fb08dbd533ddfb9406bffa7ab579
/tests/test_generator_view.py
38e9979aef1d081ef1e35135359801bf81e1499f
[ "MIT" ]
permissive
https://github.com/kdheepak/psst
ad3a5987eba3fabc32c7219e98c72e5750597f2a
36d7abfe35d7841939205d6b7613735cb9f817db
refs/heads/master
2020-06-27T09:16:24.241389
2018-04-12T17:03:02
2018-04-12T17:03:31
94,248,671
8
1
MIT
false
2018-02-27T13:37:36
2017-06-13T19:14:54
2017-09-29T12:34:17
2018-02-27T13:37:36
1,614
0
0
0
Python
false
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_psst ---------------------------------- Tests for `psst` module. """ import numpy as np import pytest as pt import traitlets as T import psst from psst.case.generator import Generator, GeneratorView, GeneratorCostView from .test_generator import default_gener...
UTF-8
Python
false
false
2,763
py
74
test_generator_view.py
42
0.664857
0.659428
0
100
26.62
75
TechDomani/cows_and_bulls_python
15,668,040,713,783
f9740da29e4f0fdd14814f75b678dc20fa01d7c2
70c68e4f4b7491cf79d3e7b18e4d3b0aaa46db76
/favouriteSubject.py
145942e36a783f78d3d84a2fb184aa50726fb691
[]
no_license
https://github.com/TechDomani/cows_and_bulls_python
344f3ca36a0d2f72130234131b5dc304317870a1
e144ce15e15ebb4aff399c22e13afb082f434079
refs/heads/main
2023-08-29T17:30:10.219099
2021-10-03T21:24:15
2021-10-03T21:24:15
408,854,022
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python3 favouriteSubject = 'unknown' while True: favouriteSubject = input('What is your favourite subject? ') if (favouriteSubject.lower() == 'computing'): print('Well done. You got the answer right. ' + 'Computing is the best subject.') break print('Sorry ' + favouriteSubject + ' is not...
UTF-8
Python
false
false
358
py
5
favouriteSubject.py
4
0.678771
0.675978
0
12
28.916667
62
viranca/CS4240_Deep_Learning_Project
15,719,580,315,763
fdaef46ee6d816f8546a80209af4ad6c6592e590
b73c087a0d8f568832c9fbec5e726b57657bacf8
/influence-aware-memory_Original_Work/environments/warehouse/test.py
b4468e55674cc788a9d365b70ee3d3d4fd95b138
[]
no_license
https://github.com/viranca/CS4240_Deep_Learning_Project
c19f77833959ca4616660d03da402b43b804c88a
1177c217657726c04071ec600d8aff8b762852da
refs/heads/main
2023-04-09T06:01:38.296177
2021-04-16T19:31:25
2021-04-16T19:31:25
339,204,257
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from warehouse import Warehouse import numpy as np warehouse = Warehouse() warehouse.reset() #################### Test _place_robots function ###################### for robot in warehouse.robots: assert robot._robot_domain[0] <= robot.get_position[0] <= robot._robot_domain[2] and \ robot._robot_domain[1] <= r...
UTF-8
Python
false
false
3,942
py
137
test.py
17
0.682395
0.673262
0
92
41.847826
96
lfranz922/Raspberry-Pi-Iperf3
18,451,179,504,345
be926698af932470049bec7a5ee808d56e373d25
f7d77bf33834cc1cd43f7666e99fb3d14684f7cb
/iperfScript.py
39a2f82a112013148be80f46602c43b939fd2813
[]
no_license
https://github.com/lfranz922/Raspberry-Pi-Iperf3
efa3ee5abf77ff771f63fff53f602d387e503d03
30738413dbcef20d4613dba6499a5df5d207c578
refs/heads/main
2023-08-16T07:34:31.231489
2021-10-15T17:25:52
2021-10-15T17:25:52
341,027,240
0
0
null
false
2021-03-12T03:50:01
2021-02-21T23:28:20
2021-03-04T04:57:33
2021-03-12T03:49:44
173
0
0
0
Python
false
false
import time import re import subprocess from datetime import datetime #TODO: """ Made by Lukas Franz Things to add: - a better output screen (I'm thinking the speeds with a green background if iperf has a good speed and red if its slow/off) - turn into a proper script - when run from cmd line it throws...
UTF-8
Python
false
false
11,143
py
6
iperfScript.py
3
0.47752
0.467558
0
312
34.714744
154
make-42/PFSA
2,199,023,307,882
4f03085e94495fe84360d567a285ba0b31b8467f
08dec8ca3cbfdeb54b32ba34bed16fddc4baa247
/imggenerate.py
a98f87077068adf183456268d0db790333dd2978
[]
no_license
https://github.com/make-42/PFSA
70fb602116414a0f85047ef859715fbc5cae1e5d
884b507c3eb65bec5a6fbf114c4753b01ce0f77a
refs/heads/master
2022-10-14T02:56:20.591375
2022-10-05T09:57:55
2022-10-05T09:57:55
186,132,497
0
1
null
false
2022-10-05T09:57:57
2019-05-11T12:51:31
2019-05-26T10:29:26
2022-10-05T09:57:56
423,592
0
1
0
Python
false
false
from PIL import Image, ImageFilter, ImageDraw, ImageFont import pathlib import os import sys def generate(path, textsize): path = pathlib.Path(path) fnt = ImageFont.truetype('C:\\tmp\\PFSA\\font.ttf', 100) fntb = ImageFont.truetype('C:\\tmp\\PFSA\\font.ttf', textsize) background = Image.open("C:\\tmp\\P...
UTF-8
Python
false
false
1,358
py
6
imggenerate.py
4
0.656848
0.60162
0
29
45.758621
118
som1234567/final_project2
9,182,640,099,489
c19010ecd36ff4e8268ae0c2a2f7a1888440aca4
5d47b7077f1ed278d2c469767c227aae5e128a2b
/online_store/users/migrations/0004_profile_phone.py
4f3de39e6103a321dd3fc7402c4515d87de8f75b
[ "Apache-2.0" ]
permissive
https://github.com/som1234567/final_project2
3d78869a1060d8f93c55ddde7dd8ed739779505e
3d61404f2fe4b9e4503087e523ea16d6c411f57f
refs/heads/main
2023-02-02T19:12:09.075542
2020-12-17T09:25:51
2020-12-17T09:25:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.3 on 2020-11-18 00:53 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_profile_country'), ] operations = [ migrations.AddField( model_name='profile', ...
UTF-8
Python
false
false
629
py
48
0004_profile_phone.py
28
0.626391
0.577107
0
19
32.105263
270
pmorris2012/AccordionLungs
13,769,665,195,250
26c7ef204bfa35779f1d0731015a5e66c59ce278
577581a985c995e5b1ff1081e3b10a4aa10ca9ed
/main.py
e67c8b041840d4949651f92ecb34be1600705047
[]
no_license
https://github.com/pmorris2012/AccordionLungs
c6ef6957df4e867da63cf7f9fe3bf78e913913ac
d34d3b3b3e05f25776909bc701f3d995c341ac3a
refs/heads/master
2016-08-09T13:26:15.342817
2016-01-25T04:39:26
2016-01-25T04:39:26
50,325,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 if __name__ == "__main__": lower_blue = np.array([90, 50, 50], dtype=np.uint8) upper_blue = np.array([135,255,255], dtype=np.uint8) lower_red1 = np.array([165, 100, 100], dtype=np.uint8) upper_red1 = np.array([180,255,255], dtype=np.uint8) cap = cv2.VideoCapture(0) ...
UTF-8
Python
false
false
1,164
py
1
main.py
1
0.593643
0.520619
0
32
35.40625
59
hdantas/fuzzing-exercise
9,921,374,490,447
16613b9be8a503e16792be50a762593f12d3f7d8
e2ba16364cccba8130d9ecd9667724c6c8fe2ee6
/code/readfile.py
132654050fb434407ca1cc3d08c9eb01832c8ab9
[]
no_license
https://github.com/hdantas/fuzzing-exercise
f28b931e7168cf27e3c0aa315f0984e390f9a16d
f9ec274e3601713725f1c5811d5b9bef7088b0eb
refs/heads/master
2021-01-18T18:25:31.374765
2014-06-20T13:11:59
2014-06-20T13:11:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import getopt import hashlib import os import sys import time import webbrowser import re USAGE_STR = 'readfile.py -i <inputfile>' INPUT_FILE = 'output.txt' class ReadFile: LINES_EASTEREGG = 42 TEXT_EASTEREGG = "PWN1337" MAX_TEXT = 1337 PATTERN = '[A-Z]{2}[A-Za-z][0-9]{3}[A...
UTF-8
Python
false
false
3,758
py
10
readfile.py
6
0.531932
0.516232
0
121
30.066116
155
werellel/Algorithm
12,859,132,133,359
13c9322c2300e88b0d78c9e5466d618d7739fbc8
01f97cd4c342a00bdfa97e3ebfd7fe97edbc5de5
/hackerrank/arrays/new_year_chaos.py
23d1b3f924edebeea9493b98f0ff06abd5ea10cb
[]
no_license
https://github.com/werellel/Algorithm
722217935b417a87ea71f5af629e04cb209ba3ac
37472a174f838efab96dc9a8988749ceb78b1806
refs/heads/master
2022-12-17T22:12:12.172059
2020-09-07T06:24:10
2020-09-07T06:24:10
259,062,636
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 minimumBribes(q): move = 0 for idx, num in enumerate(q): if num - (idx+1) > 2: return 'Too chaotic' for idx2 in range(max(num-2,0), idx): if q[idx2] > num: move += 1 ...
UTF-8
Python
false
false
1,042
py
22
new_year_chaos.py
22
0.508637
0.491363
0
54
18.296296
52
fgtorres/iHospital
12,816,182,445,527
cc5224fd06603cadca7663453f8a1a085ff01b88
d1c6ff25f0ad139883d5c313e188ec2f347dba07
/scripts/leitor.py
801aba14ac19f73fdc056e8677541222ad45450e
[]
no_license
https://github.com/fgtorres/iHospital
e1a7800a865d2ed9e942b755a9086ef2e40b9592
8629b544fc31d9043192e940dc5cffbfceb357a8
refs/heads/master
2020-03-18T09:52:13.775351
2018-12-05T22:31:34
2018-12-05T22:31:34
134,584,194
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json f = open('hospitais.json','r' , encoding='utf8').read() r = open('nome_hospitais.txt','w') arquivo_json = json.loads(f) for linha in arquivo_json: nome_hospital=linha['nome'] r.write(nome_hospital+'\n') r.close()
UTF-8
Python
false
false
235
py
58
leitor.py
28
0.659574
0.655319
0
10
22.5
55
KandyKad/Python-3rd-Sem
9,045,201,170,427
2c6876f2a864cd0ad8d4797e9430f080a1790a78
289e359b1c40a5b434c925267db30bc8d5299807
/Lab6/A6_2_py.py
b1bf65bdb12b77d166669333c8e5eabfe7bd120b
[]
no_license
https://github.com/KandyKad/Python-3rd-Sem
fb960c8e018bb96d173759b10863d776d5574c8f
1c54cf903e466f86906828a239b008c4dbe946b0
refs/heads/master
2021-01-07T11:57:56.355322
2020-02-21T16:27:48
2020-02-21T16:27:48
241,684,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a = input("Enter words: ") mylist = a.split() newlist = [] for i in mylist: if i not in newlist: newlist.append(i) newlist.sort() for i in newlist: print(i, ":", mylist.count(i))
UTF-8
Python
false
false
204
py
84
A6_2_py.py
67
0.578431
0.578431
0
9
20.666667
34
richardbw/graph_event
1,554,778,196,270
f0ba5fafd437947a8f7c0b70621509a7db9d42b6
ca688be0060c94cbe93ca76d845a26e57369a9de
/src/pipegraph.py
fa7bcbaef0f2949f3a9e844b95aa6a7bf938f8b5
[]
no_license
https://github.com/richardbw/graph_event
d72985e9945f3b681fd009a181cdbcfd7f764734
355a47cb8be719760e17493e21f8b1306465ec2a
refs/heads/master
2021-01-22T22:57:33.761860
2010-03-08T03:54:48
2010-03-08T03:54:48
551,951
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ pipegraph -r "reg(ex)" [other_options] pipegraph -p "preconf_id" pipegraph -h Read input lines from <stdin> and graph numbers, extracted with a regex. Note that the regex format must have only one 'capturing group' that can evaluate to a number. The regex format is python, simil...
UTF-8
Python
false
false
11,467
py
2
pipegraph.py
1
0.578704
0.570507
0
351
31.638177
164
darkismus/mooc-ohjelmointi-21
19,481,971,656,584
22c8cb9d4b89f932c7448d272d680ec0f6604b9a
361ac3fcf36d80c792b60b7e2284cb1dc8d77944
/osa05-07_sudoku_osa5/src/sudoku_lisays_ja_tulostus.py
938ace5d158587c9f4d96f5854bdb52af6c92966
[]
no_license
https://github.com/darkismus/mooc-ohjelmointi-21
48cc20391db4240104549d4f3834a67c77976f6d
5f72dd9cff78704a2a0f5bc1cc18c7740ce50c51
refs/heads/main
2023-08-01T03:35:13.244978
2021-09-14T10:49:37
2021-09-14T10:49:37
368,469,947
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# tee ratkaisu tänne def lisays(sudoku: list, rivi_nro: int, sarake_nro: int, luku:int): sudoku[rivi_nro][sarake_nro] = luku def tulosta(sudoku: list): vali = 0 alekkain = 0 for i in sudoku: # print(i) for j in i: if j != 0: print(f"{j} ", end="") ...
UTF-8
Python
false
false
1,109
py
212
sudoku_lisays_ja_tulostus.py
177
0.387534
0.298103
0
46
23.086957
67
LeiWong/zb_work
3,161,095,947,651
8840172a528690373d977603f43173ee93f04d60
dd7c4d8dac99ea2306d3248cbaab120169b8142a
/scripts/marketbox-medical-svr/django_server/apps/account/migrations/0042_auto_20170717_1130.py
dd21888169550fd2ab9370bb3dc6a36dfc4f57e3
[]
no_license
https://github.com/LeiWong/zb_work
0842dececf9ab9912f6b6cd070e1a9ae23e6ec7a
02e295e7856834bf7406210a14f78153829db1d4
refs/heads/master
2019-12-18T02:14:41.413971
2019-08-23T10:08:07
2019-08-23T10:08:07
88,497,628
0
0
null
false
2019-10-22T21:20:20
2017-04-17T10:26:15
2019-08-23T10:08:09
2019-10-22T21:20:19
9,895
0
0
1
Python
false
false
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-07-17 11:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0041_auto_20170714_1831'), ] operations = [ migrations.AlterField( ...
UTF-8
Python
false
false
468
py
410
0042_auto_20170717_1130.py
390
0.602564
0.532051
0
20
22.4
63
adamcunnington/foodbank-southlondon
627,065,225,223
0189052485e358721942589379145dc29fc1ca0b
f237511b9c8d5d332fde5eb4808c2aef97935917
/backend/foodbank_southlondon/bff/models.py
ddb3f2abcc53f07accef39b2333be20e810cd600
[]
no_license
https://github.com/adamcunnington/foodbank-southlondon
ad764f32590c02bdd492837d8b69a8fdf787f630
474e4941c74147a778113e5f4f97f75fb97873e6
refs/heads/master
2023-04-02T00:51:32.577370
2023-01-05T20:34:04
2023-01-05T20:34:04
258,849,120
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Dict import copy from flask_restx import fields # type: ignore import flask_restx # type: ignore from foodbank_southlondon.api import models from foodbank_southlondon.api.requests import models as requests_models from foodbank_southlondon.api.events import models as events_models from foodbank_so...
UTF-8
Python
false
false
4,211
py
114
models.py
75
0.712895
0.710758
0
84
49.130952
127
varshaa123/OpenQuiz-Portal
19,559,281,091,911
8a64bbcaca2f7b33fb1107282f399affef24a7e2
68637a9f2e66639a65898055fc233ca21736d88f
/OpenQuiz-Portal/OpenQuiz/create_tables.py
e30dd1c32cb2da33986feaff604550e2771715ae
[]
no_license
https://github.com/varshaa123/OpenQuiz-Portal
6b20e275ace14dd6541a4e63337ee5e1c843cad2
b0025f2966ce15a87c056d8bfebeeb779c0d8cba
refs/heads/master
2023-03-19T20:21:37.199523
2019-04-24T07:26:41
2019-04-24T08:10:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pymysql.cursors import time def connect_db(): connection = pymysql.connect(host='sql12.freesqldatabase.com', port=3306, user='sql12288801', password='IIRcqAD4VW', db='sql12288801', ...
UTF-8
Python
false
false
3,998
py
22
create_tables.py
13
0.585543
0.567534
0
167
22.94012
68
TinDang97/hackerrank_solution
506,806,182,317
83177870e88b4d4503bd2d69c76426c8bfdc13f7
38c7216cc145d49ed2aaa03675e2050f8087f6f8
/sherlock_and_array.py
991c684066182234ba005ea7e3c9e2f3efc099ad
[ "MIT" ]
permissive
https://github.com/TinDang97/hackerrank_solution
1f1ee9baff3030078e2d3888971067f094e522e3
c93c2d9090733b239d420ec9f1fdc0a176e18af6
refs/heads/main
2023-02-04T11:39:23.750372
2020-12-20T17:49:43
2020-12-20T17:49:43
322,764,033
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python3 # problem link: https://www.hackerrank.com/challenges/sherlock-and-array/problem import math import os import random import re import sys # Complete the balancedSums function below. def balancedSums(arr): left_sum = 0 right_sum = sum(arr) for elm in arr: if abs((right_sum - elm) -...
UTF-8
Python
false
false
742
py
4
sherlock_and_array.py
3
0.579515
0.571429
0
36
19.611111
80
hriks/geocoding
12,867,722,036,162
47b7509178da8ca9f1cfd4a05048cee615cb6269
dd753f01a4a7616e8efb01d8542e4f560d0b8fdf
/geocoding/urls.py
7a1abe4991d5fa9d8a3022b822a2a5409598c27e
[ "Apache-2.0" ]
permissive
https://github.com/hriks/geocoding
31d605aef01f5ee2924dbba0fb7e5ba5694e9a61
3a1c2365da60fd6c643ef23d422fa26d68594299
refs/heads/master
2020-06-30T02:16:15.231620
2019-08-06T12:05:26
2019-08-06T12:05:26
200,690,534
1
0
Apache-2.0
false
2019-12-04T23:56:48
2019-08-05T16:22:42
2019-08-06T12:05:29
2019-12-04T23:56:46
34
0
0
1
Python
false
false
from django.urls import path, include, re_path from django.contrib import admin from django.conf.urls.static import static from django.conf import settings urlpatterns = static( settings.MEDIA_URL, document_root=settings.MEDIA_ROOT ) + [ path('admin/', admin.site.urls), re_path('', include('location.urls')...
UTF-8
Python
false
false
324
py
11
urls.py
7
0.734568
0.734568
0
11
28.454545
57
perfsonar/pscheduler
12,403,865,571,708
30b8d20e63d8873de2d834486a76df478a589fdd
9110f6b1251e002ee7daf6e2c5c1d7ab5fedfcf8
/pscheduler-server/pscheduler-server/api-server/pschedulerapiserver/json.py
d65d46d3e83c17b368b7a4a73838dc13d0bb0d6c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/perfsonar/pscheduler
8a62c076ce8a6e4a51042ed294468616885819ad
f6d04c0455e5be4d490df16ec1acb377f9025d9f
refs/heads/master
2023-08-11T02:12:15.487628
2023-07-24T15:16:00
2023-07-24T15:16:00
49,273,408
53
41
Apache-2.0
false
2023-07-24T14:09:18
2016-01-08T13:25:33
2023-07-14T11:49:13
2023-07-24T14:09:17
299,608
48
32
122
Python
false
false
# # JSON-Related Functions # import pscheduler from flask import request from .args import * from .dbcursor import dbcursor_query from .response import * from .util import * def json_dump(dump): return pscheduler.json_dump(dump, pretty=arg_boolean('pretty') ...
UTF-8
Python
false
false
1,788
py
799
json.py
514
0.61745
0.613535
0
65
26.507692
75
matan-h/mhyt
2,473,901,170,577
caa5914ccbf4e6a06d1e0772ff87cc9dd8ed1c64
5b63d27b793fa34185516febdd8aa719158a899e
/setup.py
86cc2e5ed1a07c93766b2b58370fa2796390ccfc
[ "MIT" ]
permissive
https://github.com/matan-h/mhyt
0c04c692251920090559bf8a25478338b2164aed
c8c77cf810ee6cad69c61385cd143dcb48770c2a
refs/heads/master
2023-01-22T16:26:21.817116
2020-12-02T07:07:20
2020-12-02T07:07:20
317,636,999
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='mhyt', # How you named your package folder (MyLib) version='3.5.4', # Start with a small number and increase it with every change you make license='MIT', # Chose a license from here: https://help...
UTF-8
Python
false
false
994
py
3
setup.py
2
0.672032
0.66499
0
22
44.181818
111
berlin-leaks/berlinleaks.com
8,031,588,864,699
66a0cf81c3a5f830defa8dcd65beab2c3da9b0aa
bd9cf09e67b5cf3e36989259854f89482bfffa7d
/website/setup.py
5d984950fa0187c47f68643e7cbba1d91633ddb5
[]
no_license
https://github.com/berlin-leaks/berlinleaks.com
825200e2d1e4ceeef0212949b99675ce8b8be835
5b4fa0849a4a49ae2dd43d7c506990340dee44e6
refs/heads/master
2018-03-10T05:00:50.516777
2016-10-15T10:06:12
2016-10-15T10:06:12
50,425,462
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [ '--doctest-modules', ...
UTF-8
Python
false
false
1,458
py
55
setup.py
11
0.602195
0.571331
0
63
22.142857
59
MCV-2020-M1-Project/Team2
15,685,220,594,905
e340f05c9c576b04ea1f822fe8b836d3cfdfe626
6005c91ce4982da9005ca82f1b68f179afe3c099
/week1/src/m1_w1.py
8cd1da428ac96969e135abd5a11e10cdb683ddc0
[]
no_license
https://github.com/MCV-2020-M1-Project/Team2
c4838251b5f7aa83f6953f96ad57257413fa34a6
5c4daa9fe312359471d7fd2c06752bed4ee0b752
refs/heads/master
2023-01-01T14:43:02.094208
2020-10-26T15:40:46
2020-10-26T15:40:46
302,331,044
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ MCV - M1: Introduction to human and computer vision Week 1 - Content Based Image Retrieval Team 2 - Lali Bibilashvili Victor Casales Jaume Pregonas Lena Tolstoy m1_w1.py: main program """ """ Imports """ import argparse import os import nu...
UTF-8
Python
false
false
5,427
py
10
m1_w1.py
9
0.609361
0.598858
0
129
41.077519
146
Mini-Proyectos/laboratorio2-jesus-cesar
7,292,854,514,591
c5780a1f4e356f4e1eb36b147d65a99bfd83639c
9d4c3cb3beaad142144e9b0f3b479eab39d7b54b
/Busquedas.py
8ab8e91685bbb5f1f4311284561a65ad473a00a2
[]
no_license
https://github.com/Mini-Proyectos/laboratorio2-jesus-cesar
1c7ef212abffe45eca6b4831eef1c8237e2162c3
7cffac36336e7ccba0a23d75d8653ea7d380abf4
refs/heads/master
2020-03-31T14:43:30.433965
2018-10-09T21:13:18
2018-10-09T21:13:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def InsertionSort (a:[int],p:int,r:int): j=p for j in range(len(a)): key=a[j] i=j-1 while i>=p and a[i]>key: a[i+1]=a[i] i-=1 a[i+1]=key
UTF-8
Python
false
false
266
py
3
Busquedas.py
3
0.304511
0.289474
0
9
28.444444
40
Mangul-Lab-USC/db.microbiome
18,253,611,032,088
ac7ecc63fa46a8b44f9cede8b2b301d56ddc648f
e3d2b88cc05e19204bc5144bece8df6917b111d5
/Fungi/code/fungi_stats_helper_functions.py
2c47ccee825b58677da34930724fe122efe5fab9
[]
no_license
https://github.com/Mangul-Lab-USC/db.microbiome
085e32f5a495472f98c575fa5ded29f09b6ef811
18a8228596e373be789bf706f63ac8ca4b99b17f
refs/heads/master
2020-04-03T17:16:56.992288
2020-02-28T21:13:00
2020-02-28T21:13:00
155,438,676
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python def is_mitochnondria(category): if category == 'mitochondrial' or category == 'mitochondrion' or category == 'Mt': return True else: return False def is_plasmid(category): if category == 'plasmid': return True else: return False def is_contig(category): if category == 'contig' ...
UTF-8
Python
false
false
991
py
28
fungi_stats_helper_functions.py
15
0.711403
0.711403
0
40
23.8
124
midonet/python-neutron-plugin-midonet
6,519,760,397,634
1a036182879dae7ecdf2f2ea065d07c12a98d4fa
71811fe92c39606c3ba671848521c3b6e78f814e
/midonet/neutron/db/migration/alembic_migration/versions/4cedd30aadf6_add_task_type_flush.py
66e70c1f36ca1f9473d9620606c83bc8bad9c3a5
[ "Apache-2.0" ]
permissive
https://github.com/midonet/python-neutron-plugin-midonet
c14b74c3f861f41b604adfafb6342fb213e5ccbf
974a6afe45a252cfa5c7c875f389eb4d7a72987f
refs/heads/master
2021-01-21T22:58:17.727303
2015-07-16T11:32:30
2015-07-16T11:32:30
25,900,226
0
3
null
false
2015-02-20T04:28:14
2014-10-29T02:17:52
2015-02-19T14:13:15
2015-02-19T14:13:14
1,167
2
4
0
Python
null
null
# Copyright 2014 Midokura SARL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
UTF-8
Python
false
false
1,010
py
18
4cedd30aadf6_add_task_type_flush.py
17
0.743564
0.69703
0
36
27.055556
79
Amal-R-Jayakumar/Space-Invader
17,239,998,734,662
69b72b37935e4a8de50e2d5277e00e13cc9c31d4
0e922da73439c85a4a408eea1b762a3a67018063
/main.py
1f67b0d90a2771677eccefc0de7b4b68971909bf
[]
no_license
https://github.com/Amal-R-Jayakumar/Space-Invader
e3806887f1f8326c7acec94db8aec505f5650911
9493725f65aedc9435aeec42680fe71bf1aa3380
refs/heads/master
2023-01-07T08:59:47.513544
2020-11-02T02:36:54
2020-11-02T02:36:54
308,503,946
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import random import math from pygame import mixer # initialize pygame pygame.init() # VARIABLES # Screen width = 800 height = 600 # Player playerX = 370 playerY = 480 change_to_playerX_position = 0 # Enemy enemyX = [] enemyY = [] change_to_enemyX_position = [] change_to_enemyY_position = [] en...
UTF-8
Python
false
false
5,334
py
1
main.py
1
0.592426
0.570116
0
198
25.939394
79
constantinpape/elf
15,298,673,526,004
8016a3c742583a4946f4ea020a2cb6bb725d169f
25018f31d21722f92d0716d131e13c9e1e0a5582
/elf/evaluation/rand_index.py
b6d0ed24f70315dd93686957dc52bd1f53c3630d
[ "MIT" ]
permissive
https://github.com/constantinpape/elf
20d43273d6d673b9ce649d9bdf210d78b49f3a58
636415993e8b2de3d916a22ebf8719aaf656d8c0
refs/heads/master
2023-08-05T12:19:49.769606
2023-07-25T08:00:14
2023-07-25T08:00:14
200,736,827
34
17
MIT
false
2023-09-13T19:14:01
2019-08-05T22:22:58
2023-08-01T10:38:43
2023-09-13T19:13:53
677
35
17
16
Python
false
false
from .util import contigency_table, compute_ignore_mask def compute_rand_scores(a_dict, b_dict, p_counts, n_points): # compute the rand-primitves a_counts = a_dict.values() sum_a = float(sum(c * c for c in a_counts)) b_counts = b_dict.values() sum_b = float(sum(c * c for c in b_counts)) sum...
UTF-8
Python
false
false
1,928
py
173
rand_index.py
151
0.638485
0.636411
0
57
32.824561
77
SoullessStone/LowPowerExam
13,494,787,271,640
54f7dcc29dfd3c70384fb66d97cef0f734c4fa61
34ba1935665f8b4b5a42077c307476253c9895fb
/tests/test_twos_complement.py
9d3321235bacfb11104073071295203e1a944c5d
[]
no_license
https://github.com/SoullessStone/LowPowerExam
5adaa0c13c67811925fad48769ddd148de7ae4e0
9a7212078f82a8ad8c081f688107bed16ae1e222
refs/heads/main
2023-06-05T00:55:29.370579
2021-06-20T16:12:52
2021-06-20T16:12:52
374,308,225
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from twos_complement import twos_complement class test_twos_complement(unittest.TestCase): def test_1(self): result = twos_complement(1) self.assertEqual("[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1.]", str(result)) def test_max(self): result = twos_complement(2 ...
UTF-8
Python
false
false
952
py
40
test_twos_complement.py
40
0.529412
0.429622
0
30
30.733333
90
envar/pycal
773,094,133,689
18f865b245fd92d3da6347370f1a1ea68221bedc
59b04e331d26a6d26907b0b71fb36d8a05580e0c
/pycal.py
223ebe867f3e7efa247cc602a78107a28e10de47
[]
no_license
https://github.com/envar/pycal
68376eaa5df65d388e974de95d89f1fffe38df7d
d9b64cd02f7227e05f175d41d9cfce338612a4e0
refs/heads/master
2016-07-26T16:13:07.267132
2015-06-19T21:00:52
2015-06-19T21:00:52
37,625,772
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Python Google Calendar. Usage: pycal.py init pycal.py getevents [-lacedot] [--date=DATE | --from=DATE --to=DATE] [--status=STATUS...] [--calendars=CALENDARS...] pycal.py addevent --from=DATE --to=DATE --summary=SUMMARY [--attendees=ATTENDEES] [--location=LOCATION] [--descripti...
UTF-8
Python
false
false
15,967
py
4
pycal.py
2
0.552076
0.546064
0
479
32.331942
150
Shivani-01/Python-Assignment
3,238,405,350,552
6903930d7bf1c59ef82b45da16bd897525b5ca18
23dd82c8a821ca63a24bc2fb28fb69a30090d28d
/Python-Asignment/Module 1/exercise5/reverse_number.py
5744dbbd697ca45e9b502d336be5ed686c5a80be
[]
no_license
https://github.com/Shivani-01/Python-Assignment
b5f42db549cb763fd4d825a949c25b3b620e9a9b
06cf05804817f770fde70202e14b0ea784473d03
refs/heads/master
2021-07-09T00:13:29.094881
2021-03-24T05:06:50
2021-03-24T05:06:50
235,023,067
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n=int(input("Enter 5 digit number")) a=0 while(n!=0): r=n%10 a=a*10+r n//=10 print(a)
UTF-8
Python
false
false
105
py
51
reverse_number.py
46
0.504762
0.419048
0
7
13
36
theNicelander/advent-of-code-2020
15,375,982,931,836
3bf58a30be4da76981dff80f582dbf45b7a59103
b46899e383993c960b2e13f5fc948d027cfc5886
/day08/day08.py
1dfc92ba3505c972f438f19156d349570d8afd16
[]
no_license
https://github.com/theNicelander/advent-of-code-2020
d15c85ce16e6902bfa7c6b9c628f979886cbed0d
eeb979de0ba3bc17a8f30c531a16154994276681
refs/heads/main
2023-02-01T18:18:03.492242
2020-12-08T10:10:25
2020-12-08T10:10:25
317,574,814
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from utils.files import read_data_into_list class Game: def __init__(self, data): self.instructions = self._process_into_dict(data) self.no_instructions = len(self.instructions) self.processed_instructions = [] self.accumulator = 0 self.index = 0 def run(self) -> int:...
UTF-8
Python
false
false
1,524
py
8
day08.py
8
0.552493
0.549213
0
49
30.102041
62
gentinettagian/complexity_of_qsvms
17,102,559,802,476
e0d3b3423b5648935768f0264bcb99162decf303
6e7e7265db94f0f9a77f28c51602e5efc62d9665
/approx_qsvm/hyper_params_test.py
a9c931eb0c263db78f2a8cbaa14839f3c8b06a6b
[]
no_license
https://github.com/gentinettagian/complexity_of_qsvms
f391372d2178726c9f985a5aab8fa9bbda6c6fb6
0fc00525819c224b317ecf9cfb85ee5bdbace3e3
refs/heads/main
2023-04-18T05:34:39.396900
2022-04-08T14:12:32
2022-04-08T14:12:32
464,407,353
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Necessary imports import numpy as np import pandas as pd import pickle from qiskit import Aer from qiskit.utils import QuantumInstance from qiskit_machine_learning.algorithms.classifiers import VQC from qiskit.algorithms.optimizers import SPSA from qiskit_machine_learning.utils.loss_functions import CrossEntropy...
UTF-8
Python
false
false
11,070
py
35
hyper_params_test.py
11
0.552304
0.534327
0
317
33.921136
166
benhuckell/Mech325Design
10,161,892,632,067
c4ff3b2c032bc315492a1603cd4f2d8a651b3fc1
341280e4ce6e494f792d8c350b48754c185559d3
/Gears/GearBoxObject.py
867e24b2f7d74e9cb1bab6e2ed30aceef6119e8c
[]
no_license
https://github.com/benhuckell/Mech325Design
af727fb0822a4467b74effb9446d3ca3c0e3138a
e0bb5d43f69302fdb2122ed1cba46962a75ef08c
refs/heads/master
2020-08-02T02:39:00.013683
2019-11-18T02:37:41
2019-11-18T02:37:41
211,210,895
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from conversions import * import matplotlib.pyplot as plt class gearBoxObject(): """[Gearbox object for any configuration of gears] Returns: [Gearbox Object] -- [Object representing the properties of any gear configuration] """ def __init__(self, gearsList, indexCombination): """[Con...
UTF-8
Python
false
false
4,728
py
17
GearBoxObject.py
10
0.592428
0.588832
0
124
37.129032
113
anotherpedro/aiscalator
8,349,416,459,285
45ec3e93db4abe27335a62a906ab3a4513ea32b7
76feb49d5a46d5a6b03b0de74918af817af1aa9b
/docs/conf.py
f69271959d7cf3a27d9275cf212f0a9985cf8510
[ "Apache-2.0" ]
permissive
https://github.com/anotherpedro/aiscalator
147775884ac22c7e559f24a10d3bf2f4eee3d4b0
7cd5a28913cddba9a2ff731839703628820996f4
refs/heads/master
2023-01-11T22:20:51.785925
2020-07-24T18:42:17
2020-07-24T18:42:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx.ext...
UTF-8
Python
false
false
2,017
py
52
conf.py
26
0.692613
0.685672
0
67
29.104478
77
suman-shruti/Python
7,086,696,087,530
194fecebfe62f8e5d471c80c22d69b869021bcd1
055d44b4d3fb40f191df1fe709811170473f4aa0
/khansole_academy.py
cba64d6b7b23f4c775ba92632b8850623fbe59db
[]
no_license
https://github.com/suman-shruti/Python
020756e1509ecea199c81246f9a013511aa918a8
4725ab949e550b0c66c70a5b16951ba398d173b2
refs/heads/master
2022-07-11T13:20:46.894039
2020-05-18T04:11:52
2020-05-18T04:11:52
252,541,319
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" File: khansole_academy.py ------------------------- Add your comments here. """ import random def main(): result = 1 while result <= 3: num1 = random.randint(10, 99) num2 = random.randint(10, 99) num3 = num1 + num2 print("what is " + str(num1) + "+" + str(num2) + "?") ...
UTF-8
Python
false
false
803
py
18
khansole_academy.py
17
0.520548
0.495641
0
33
23.333333
81
limbma/scikit-neuralnetwork
10,376,641,031,837
737ce4656970f28df6328640f9b83d526603f070
4b2c8b6698f9546c693fbf8deb2951185bc06698
/sknn/tests/test_ae.py
ebab1f4a3cd59cd127cbcedc916a9bdc95829cec
[ "BSD-3-Clause" ]
permissive
https://github.com/limbma/scikit-neuralnetwork
73f1289651af60473206930572cac6747787dcaa
d221c579a1d12c321713c19ea895988224a4c2c1
refs/heads/master
2021-01-22T13:51:47.709146
2015-05-19T07:31:09
2015-05-19T07:31:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from nose.tools import (assert_raises, assert_equals) import numpy from sknn.ae import AutoEncoder as AE, Layer as L class TestAutoEncoder(unittest.TestCase): def test_LifeCycle(self): ae = AE(layers=[L("Sigmoid", units=8)]) del ae def test_FitData(self): X = nu...
UTF-8
Python
false
false
1,283
py
4
test_ae.py
2
0.586906
0.572876
0
45
27.511111
72
zhaoalex/mri-superresolution
5,188,320,518,129
119d0d39a24470e0606bdd89ae097049bb448519
dd7339bb13dfa133331d13cb2f56f79fc038a6e0
/super-resolution/SRGAN/solver.py
b5bc4abb993b0a3464960170c1e3f4dd2afde0a4
[ "Apache-2.0" ]
permissive
https://github.com/zhaoalex/mri-superresolution
e9c084fc2a4a62941dda82d4c372f19b44dcbd80
61f3650c62a7b5e032b249380abf523ec2a95200
refs/heads/fix-bicubic
2022-10-18T16:53:03.504563
2020-06-13T00:05:54
2020-06-13T00:05:54
269,297,699
3
4
null
false
2020-06-07T22:37:39
2020-06-04T08:04:34
2020-06-07T22:30:55
2020-06-07T22:37:38
670,391
1
0
0
Python
false
false
from __future__ import print_function from math import log10 import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn from torchvision.models.vgg import vgg16 from SRGAN.model import Generator, Discriminator from progress_bar import progress_bar from numpy import argmax from ...
UTF-8
Python
false
false
7,055
py
58
solver.py
19
0.591212
0.579164
0
170
40.5
160
GabrielNew/Python3-Basics
17,952,963,322,656
dfccd5e85dfcaf9ccffd042f91f30308fb5a7e5b
7f757f11dd91042e97dcc9415ac15819d01845b7
/World 2/ex060.py
84953181fd12f077ad66ee3f7e1ec28922067d3a
[]
no_license
https://github.com/GabrielNew/Python3-Basics
5bd931d391dafd3b589cbd925a96cc28c447ad61
25afc6c511965ad7e629c40bc7da0727cb1130ad
refs/heads/master
2020-05-30T19:20:27.726693
2019-12-09T04:22:34
2019-12-09T04:22:34
189,922,425
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- num = int(input('Digite um número para o cálculo do fatorial: ')) fat = 1 print(f'{num}! = ',end = '') while num: fat *= num if num > 1: print(f'{num} x ', end='') else: print(f'{num} = ', end='') num -= 1 print(f'{fat}')
UTF-8
Python
false
false
283
py
83
ex060.py
83
0.480427
0.466192
0
15
17.733333
65
cash2one/xai
15,281,493,684,047
ac50bd465abbcbe46ba6fec9c001583032bdca77
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_hydrofoils.py
c655751047f1027f8d641017a32e399f0076606a
[ "MIT" ]
permissive
https://github.com/cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from xai.brain.wordbase.nouns._hydrofoil import _HYDROFOIL #calss header class _HYDROFOILS(_HYDROFOIL, ): def __init__(self,): _HYDROFOIL.__init__(self) self.name = "HYDROFOILS" self.specie = 'nouns' self.basic = "hydrofoil" self.jsondata = {}
UTF-8
Python
false
false
259
py
37,275
_hydrofoils.py
37,266
0.675676
0.675676
0
10
24.7
58
webclinic017/pyTrade-ML
2,688,649,569,082
a4cd8bc3ae54ee5858ddf4e55e6ca21202303882
927a0ac9e17521f62cd8c3ad28b97b87705c759d
/src/pytrademl/utilities/key_utilities.py
bcc124a33c467bf20f90af85f26d6e3f619732e0
[ "MIT" ]
permissive
https://github.com/webclinic017/pyTrade-ML
e130f045cfa52ae3638d96ff2c01af634e959707
7438baf402ac471f6da3686d7a01ed9eeb3fba88
refs/heads/master
2023-02-25T04:47:24.686831
2021-01-30T21:43:20
2021-01-30T21:43:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""! All functions related to the generation and storing of AlphaVantage keys. # https://www.alphavantage.co/documentation/ # https://github.com/RomelTorres/alpha_vantage # https://alpha-vantage.readthedocs.io/en/latest/genindex.html # https://alpha-vantage.readthedocs.io/en/latest/source/alpha_vantage.html#module-alp...
UTF-8
Python
false
false
1,791
py
15
key_utilities.py
13
0.597432
0.595198
0
65
26.553846
106
Exacte/CP114
8,658,654,115,532
b84818aecb93b088157bd0a8afdfb54f5fcb0603
138c622c317baa656e0e4f58da155a81cc4c1eec
/coop8200_a10/coop8200_a10/src/testing.py
62caf8d62b1ba8e82bd754131a72cf960888b388
[]
no_license
https://github.com/Exacte/CP114
48ebefc80c467a1f618dec55ec09581fb5dbcc30
3d362d866503a44292ccab542e747afc9979d1e4
refs/heads/master
2020-05-15T08:01:16.868548
2019-04-18T20:29:13
2019-04-18T20:29:13
182,152,833
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" ------------------------------------------------------- [filename].py [description of main program] ------------------------------------------------------- Author: Mason Cooper ID: 140328200 Email: coop8200@mylaurier.ca Version: 2015-03-26 ------------------------------------------------------- """ from uti...
UTF-8
Python
false
false
641
py
42
testing.py
36
0.4883
0.447738
0
28
21.928571
55
shohirose/flexlm-python-scripts
13,391,708,036,260
ad590104a0938b7f9079d8472da286748aa19b95
63c31d96b53cbd9ed28df89490fcd2d486c8d868
/setup.py
153471e3b829696a47462f3d9e75a68e702c1010
[ "Unlicense" ]
permissive
https://github.com/shohirose/flexlm-python-scripts
09b8d6906b955b834f9b7b139656bc13dfa7e9c2
84725896dc316ceeb0d782318db61d9e45e440b5
refs/heads/main
2023-06-30T04:17:05.604070
2021-07-30T15:13:43
2021-07-30T15:13:43
386,241,188
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup, find_packages setup( name="flexlmtools", version="0.1.0", install_requires=[], extras_require={ "develop": ["pytest"] }, author="Sho Hirose", author_email="sho.hirose@gmail.com", description="Package for Flexlm License Manager", packages=find_pa...
UTF-8
Python
false
false
524
py
7
setup.py
5
0.610687
0.599237
0
20
25.25
53
kiza054/flask-rest-mongodb
2,937,757,640,184
9d9057036c67726c1f52e95d83d4916628d0040d
b913b6837ec34dba8d80b055c0a26a562b7ca49f
/app.py
50e9453c2546f6aac3d3f85621a919e431050241
[]
no_license
https://github.com/kiza054/flask-rest-mongodb
e1d432214d5e5563bb5b39f526c0a7d0cfbffbf8
6db58ee1553c3055e25494e4511ea7c39a5394c6
refs/heads/master
2020-09-13T22:20:59.159215
2019-11-20T12:13:22
2019-11-20T12:13:22
222,921,587
0
0
null
true
2019-11-20T11:24:17
2019-11-20T11:24:16
2019-11-19T13:02:12
2019-11-19T13:02:06
7,492
0
0
0
null
false
false
from flask import Flask from flask_pymongo import PyMongo app = Flask(__name__) app.secret_key = "thisisasecret" app.config["MONGO_URI"] = "mongodb://localhost:27017/apidemo2019" mongo = PyMongo(app)
UTF-8
Python
false
false
200
py
1
app.py
1
0.75
0.705
0
7
27.714286
65
towicode/Dynamic-Sig
7,885,559,981,546
84cf488c6eaa7decc71bf070ae4eb18f40e6e0f8
117a9cf9026a57894ac5872de3dcbb0c1cb54820
/dynamic_sigs/api.py
072c5926ecdc5c9b69925dead24cc39f6e7a7407
[]
no_license
https://github.com/towicode/Dynamic-Sig
4e2d82c3f407761f0278ea7216398622d0773c8f
4c89cc7c8c5987bc2ad93332ade729c1831db721
refs/heads/master
2016-04-14T08:53:30.072881
2015-10-23T18:19:47
2015-10-23T18:19:47
44,413,689
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import generics, mixins from rest_framework.response import Response from .models import Signature from .models import Triboter from .models import UserFact from .models import CachedImage from .serializers import factHashSerializer class Submit(mixins.CreateModelMixin, mixins.UpdateModelMixin, ge...
UTF-8
Python
false
false
1,903
py
11
api.py
9
0.574356
0.568576
0
55
33.6
96
sislandavys11/Atividades_Python
11,768,210,439,875
f456ce7e9030c79a365cb36139154d0ccd677a5d
26c666df4cbafbccad52ac32f7b5add1483f518d
/exemploTurtle2.py
d3347af81e2fc5ca34b4a6989a51e2e785d7df7b
[]
no_license
https://github.com/sislandavys11/Atividades_Python
b507030338de9e29b0cf9a99b068a15602b36555
138f61897e819dec380f5c90ac76f42c0193a603
refs/heads/master
2023-06-02T06:01:57.284679
2021-06-18T22:18:18
2021-06-18T22:18:18
376,972,578
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import turtle janela = turtle.Screen() janela.bgcolor("lightblue") tata = turtle.Turtle() tata.shape("turtle") tata.speed(3) tata.stamp() tata.color("darkblue") tata.forward(150) tata.left(120) tata.forward(150) tata.left(120) tata.forward(150) janela.bgcolor("lightyellow") tata.color("red") tata.goto(0,0) tata.forw...
UTF-8
Python
false
false
550
py
26
exemploTurtle2.py
26
0.747273
0.66
0
33
15.666667
29
lenstronomy/lenstronomy
15,805,479,662,392
0e1fe2d6c9ab942c1b7947c72e0651f7ff53990c
b2896af28db99c619dd6a0a30d602f77421d3d34
/lenstronomy/Util/simulation_util.py
e14cb6f380d34838851002c9bb6b662bbf2208da
[ "BSD-3-Clause" ]
permissive
https://github.com/lenstronomy/lenstronomy
f9c55ef8b2b08540f6a59add74bc0872c0ed5422
73c9645f26f6983fe7961104075ebe8bf7a4b54c
refs/heads/main
2023-08-19T07:48:12.889355
2023-08-16T01:24:16
2023-08-16T01:24:16
80,772,893
41
23
BSD-3-Clause
false
2023-09-14T19:23:34
2017-02-02T22:01:06
2023-09-04T16:27:05
2023-09-14T19:23:33
45,915
157
86
28
Python
false
false
import lenstronomy.Util.util as util import lenstronomy.Util.image_util as image_util import numpy as np from lenstronomy.Util.package_util import exporter export, __all__ = exporter() @export def data_configure_simple(numPix, deltaPix, exposure_time=None, background_rms=None, center_ra=0, center_dec=0, ...
UTF-8
Python
false
false
2,689
py
484
simulation_util.py
428
0.682782
0.676088
0
64
41.015625
242
ryanzicky/awesome-python-login-model
19,593,640,838,431
51acab3bc0cca30450eadb9a3716cfbeb63c5cdf
77d636b2f23b34e46ea42792ca2b99d64cc79690
/sina/sina.py
13983d873511484d28324ad416a7ac061127f346
[ "MIT" ]
permissive
https://github.com/ryanzicky/awesome-python-login-model
906bc3db34d7276eb1902cc887e9c4806e672583
56f61fd992fd0e7bafc3116ee6c5455e2d148846
refs/heads/master
2020-07-07T12:06:44.071946
2019-08-16T07:22:30
2019-08-16T07:22:30
203,342,985
2
0
NOASSERTION
true
2019-08-20T09:23:21
2019-08-20T09:23:21
2019-08-20T09:23:19
2019-08-16T07:22:31
8,345
0
0
0
null
false
false
# 这里需要使用getpass模块才能使输入密码不可见 import getpass import requests import hashlib import time """ info: author:CriseLYJ github:https://github.com/CriseLYJ/ update_time:2019-3-7 """ def get_login(phone, pwd): new_time = str(int(time.time())) sign = new_time + '_' + hashlib.md5((phone + pwd + new_time).encode("utf-8")...
UTF-8
Python
false
false
1,300
py
45
sina.py
38
0.613636
0.54789
0
44
27
242
casperboone/dltpy
3,745,211,531,189
fb11a87c9d2baddea81f9e4f17706035adb691ef
5e253222b9be2ac0171cb482edb8bb4853ca6c5f
/input-preparation/embedder.py
ea313e69315c154e203ed0d861b5b848f9fc5214
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
https://github.com/casperboone/dltpy
40c36ef8d50ed22891fd825407835b6460a3c97a
d61c6f1541d7f0cfdfbf4aeddf640a662a49ff5d
refs/heads/master
2022-10-15T19:32:06.315831
2019-12-27T11:52:55
2019-12-27T11:52:55
209,561,837
14
10
MIT
false
2022-09-30T18:42:37
2019-09-19T13:30:46
2022-06-07T01:23:57
2022-09-30T18:42:35
28,525
13
5
4
Jupyter Notebook
false
false
from gensim.models import Word2Vec import pandas as pd import multiprocessing import os from time import time import config class HelperIterator: """ Subclass for type Hinting the iterators listed below """ pass class LanguageIterator(HelperIterator): """ Helper Iterator that iterates over t...
UTF-8
Python
false
false
4,346
py
35
embedder.py
16
0.627243
0.615969
0
131
32.160305
104
weifanghuang/python_learn
1,176,821,076,948
73f9b1bb29cb15ab95ea585a60af367d4c78e18c
d218d3c2931724101cc3f80ac38632b7092c29eb
/a_new_learn/guess_number_game.py
a7d401ab2ddd96f3ea3ae745dc835f03f43c1dff
[]
no_license
https://github.com/weifanghuang/python_learn
f77f912ce61747f6f292e540201a9de17d0110c9
92a505a23e75a01638af2f7a4f2a79de0f0865cb
refs/heads/master
2020-09-24T23:19:39.911136
2019-12-05T13:35:59
2019-12-05T13:35:59
225,867,266
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random times = 3 number = random.randint(1, 10) import kim guess = 0 print("May guess what number is in my mind now: ") while (guess != number) and (times > 0): temp = input() while not temp.isdigit(): temp = input("sorry entered is incorrect,please enter an integer") guess = int(temp) ...
UTF-8
Python
false
false
761
py
112
guess_number_game.py
109
0.588699
0.578187
0
27
27.185185
74
MRQiangZ/Dissertation_P6
7,181,185,348,192
8c94dd39c47549971dcbd0641a19aa11daf523f8
78c4ae7c20dfc4c2fe54769cfc317a9526c9ea6e
/marital_age.py
411e8b55d1b9ce6b71c116a104f07037a00b2819
[]
no_license
https://github.com/MRQiangZ/Dissertation_P6
d42c68664f8854d300d4ea835c58f6675c30a7c7
cbdd3fbe06eaeca66aed9289c57f85d696648739
refs/heads/master
2020-07-04T17:57:38.633989
2019-08-14T14:10:22
2019-08-14T14:10:22
202,363,543
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 5 16:06:19 2019 @author: zhangqiang """ import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages data = pd.read_csv('../data/data.csv') marital = [] age = [] marital_index = {1...
UTF-8
Python
false
false
785
py
16
marital_age.py
16
0.66242
0.630573
0
35
21.457143
54
mashikro/code-challenges
18,769,007,109,950
450d3748a97e333103d32bf1d2f24b1098bba622
c81380900c5b3542013d447c556021df0570c8b9
/missing_int.py
3712b3768a11f2e4d3243d533b440c94417167dd
[]
no_license
https://github.com/mashikro/code-challenges
ca91dfeb4f44a029f6d3552710f793595ea9bdb6
4580ebbfa7330d96175f70a084765127c6c6371d
refs/heads/master
2021-07-18T07:37:59.729513
2021-02-14T00:51:39
2021-02-14T00:51:39
238,508,293
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write a function: # def solution(A) # that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. # For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. # Given A = [1, 2, 3], the function should return 4. # Given A = [−1, −3], the fu...
UTF-8
Python
false
false
1,428
py
128
missing_int.py
127
0.637834
0.582278
0
69
19.57971
120
knimini/python-szkolenia
9,345,848,846,852
6bf37dd7d6c725e8f636d765e7a21f11695e5b86
fba0b793bc0be417027913545b7617e7b531bb36
/tut2/zagadnienia.py
1c6c50090ea99c8b4e5cb12dc62caa6d1c5ce0e6
[]
no_license
https://github.com/knimini/python-szkolenia
8355f3ac12da7e8d4bdbbca9b2419776a561d95e
4b7b011dc320b165269e5633cc006e8de45ccfa6
refs/heads/master
2020-07-19T23:09:42.178939
2016-12-12T19:26:49
2016-12-12T19:26:49
73,751,283
1
1
null
false
2016-12-05T22:08:11
2016-11-14T22:08:02
2016-11-14T22:15:00
2016-12-05T22:08:11
45
0
1
0
Python
null
null
'generatory wyjatki list comperhensions klasy' ''' List comperhension ''' l = [] for i in range(5): l.append(i**2) l = [x**2 for x in range(5)] zdanie = 'Chciałbym aby te zdanie było w uppercase' nowe_zdanie = '' for slowo in zdanie.split(): nowe_zdanie += slowo.upper() + ' ' nowe_zdanie = ' '.join(slowo.upp...
UTF-8
Python
false
false
1,448
py
32
zagadnienia.py
25
0.580847
0.568355
0
95
14.136842
65
em1382/kattis
3,951,369,961,247
f5f6b108448ae0b205e7bce7452ab74b6d7c26cc
ae0f090bc05de25fcab770114cf14ea9c0b54621
/solutions/areal.py
3d4dc2883bb569eb9136d2b1062a79e16f97f3a3
[]
no_license
https://github.com/em1382/kattis
6401cf95ad210cfdd94dfe9bfdac639afff7b9b1
d6c50c2eee49a090ae57728f511310058bb77158
refs/heads/master
2021-01-17T06:50:41.176673
2017-07-11T19:15:27
2017-07-11T19:15:27
52,895,047
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math print(math.sqrt((float(input()))) * 4)
UTF-8
Python
false
false
51
py
57
areal.py
52
0.666667
0.647059
0
2
24.5
38
cloudcores/CuAssembler
14,001,593,429,619
60be8520a513bc24cfe60e1b5f03bb7e75b60e5d
38b09903e527fe12273eb6f93cf0ff9ca0a07af4
/CuAsm/CuAsmParser.py
850d17d843fca0800133884badc8507053e9aff0
[ "MIT" ]
permissive
https://github.com/cloudcores/CuAssembler
ae297f538f2ecdc13b8565e78358c643fb558da6
96a9f72baf00f40b9b299653fcef8d3e2b4a3d49
refs/heads/master
2023-04-27T17:00:14.135871
2023-04-20T11:34:25
2023-04-20T11:34:25
194,510,421
258
47
MIT
false
2023-04-20T11:34:27
2019-06-30T11:54:25
2023-04-19T06:57:00
2023-04-20T11:34:25
3,050
211
46
2
Python
false
false
# -*- coding: utf-8 -*- import re import os from io import BytesIO from collections import OrderedDict, defaultdict from elftools.elf.elffile import ELFFile from CuAsm.CuKernelAssembler import CuKernelAssembler from CuAsm.CuInsAssemblerRepos import CuInsAssemblerRepos from CuAsm.CuSMVersion import CuSMVer...
UTF-8
Python
false
false
84,235
py
63
CuAsmParser.py
37
0.522494
0.510276
0.000142
2,050
39.08439
137
sastatic/news_summarizer
13,245,679,163,346
59bca76992c5df1ff3e97410de33c67b2b201022
461f92ba380754cc35b883efe8aa4f30827a060e
/NewsSummarizer/populate.py
18b26111d2de6ce47f4896784a8b8caff31d7152
[]
no_license
https://github.com/sastatic/news_summarizer
b66f7f60c472bebb47677d0c89d70b3733a6048b
9c07222f8b23e0914054453d58b03ce06728b988
refs/heads/master
2020-07-18T02:32:36.213599
2019-09-04T10:06:03
2019-09-04T10:06:03
206,155,771
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from .dbconfig import dbconfig import time import requests import scrapy import json import sumy from sumy.parsers.plaintext import PlaintextParser from sumy.nlp.tokenizers import Tokenizer from sumy.summarizers.lex_rank import LexRankSummarizer def Summarizer(arg): parser = PlaintextParser.from_string(arg,Tokeni...
UTF-8
Python
false
false
3,121
py
5
populate.py
3
0.634412
0.580904
0
93
32.55914
665
Vincennes-Technology/lab5-sensors-with-sockets-cbyrer
19,636,590,504,598
7037d41832901984c84dd13b168cc7a19a881de1
b83adf51712c364961781ac791895186ef24be95
/TempSensor.py
fe56563c5f817cdd180e273086af1a2d500ffa6d
[]
no_license
https://github.com/Vincennes-Technology/lab5-sensors-with-sockets-cbyrer
a0b7b8166c31abfdee1cc40151386d75cb57f614
74fcf4bca55d5925bbcc4ceeb4bf181a39105013
refs/heads/master
2020-03-10T02:50:44.770953
2018-04-11T20:33:24
2018-04-11T20:33:24
129,147,718
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Original code https://www.sunfounder.com/learn/sensor-kit-v2-0-for-raspberry- #pi-b-plus/lesson-26-ds18b20-temperature-sensor-sensor-kit-v2-0-for-b-plus.html #Edited by Clayton Byrer to show Farenheight displayed on LCD #---------------------------------------------------------------- # Note:...
UTF-8
Python
false
false
2,003
py
2
TempSensor.py
1
0.551672
0.511732
0
69
28.043478
79
Vanclief/estafeta-wrapper
4,793,183,534,433
86b119b4c1fab555f76fe12280f6f6fb8fd18fa0
7310d00e051398d622ab5db892d70f5e609c07c4
/estafeta_wrapper/tracking.py
64a41205f1847bec4c1395c20fb3869dc02a0658
[ "Apache-2.0", "MIT" ]
permissive
https://github.com/Vanclief/estafeta-wrapper
057702ac4c4dcb6b37d155dc92f3ec1a9954fa32
6402e0248d9aecda278d3126f901e949b8b766c5
refs/heads/master
2021-06-29T19:42:05.417569
2017-09-15T02:18:45
2017-09-15T02:18:45
100,381,894
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from requests import Session import zeep from lxml import etree from zeep.transports import Transport from datetime import datetime def track(login, password, subscriber_id, waybill, production=False): """ Given a tracking number for a waybill, it returns it's curr...
UTF-8
Python
false
false
2,471
py
6
tracking.py
3
0.515606
0.511552
0
55
43.854545
99