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
jueal/python_challenge
395,136,995,134
2ff8fd466a766c3207bde8988d44ad6b26331ef4
c66fc17e679d0aa1579865f09ee8fb4a05da03fb
/challenge_0/challenge_0.py
2a19320e1e1529408d1dedf49be56054b61b8a46
[]
no_license
https://github.com/jueal/python_challenge
f7249d4eea01a68ace33689d0160bd8ee9995312
f6a70ce3e32d21776fc2137ca9cfda851203a557
refs/heads/master
2022-04-25T14:50:04.388370
2020-05-09T16:08:49
2020-05-09T16:08:49
261,938,292
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# compute 2^38, and change the url. print(2 ** 38)
UTF-8
Python
false
false
51
py
14
challenge_0.py
13
0.647059
0.529412
0
3
16.333333
35
collective/collective.imagetags
6,657,199,328,731
b6a262f705764b599fbc304b2a0b76df273f1a2e
7e5eb06a2347906adf63f95bf9c1fe79240d059b
/collective/imagetags/setuphandlers.py
d0fd68fbc0e8b5f4f636dae0d10c5c5be22e0186
[]
no_license
https://github.com/collective/collective.imagetags
59f4839851ec0b6c203df97e0b197c13d1d81691
c758da883fb75e4a9098fda00be5919a23f1864b
refs/heads/master
2023-03-22T14:39:43.802855
2013-05-28T10:54:36
2013-05-28T10:54:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from zope.site.hooks import getSite from Products.CMFCore.utils import getToolByName from StringIO import StringIO import transaction def updateKupu(context): # Ordinarily, GenericSetup handlers check for the existence of XML files. # Here, we are not parsing an XML file, but we use this text file as a # ...
UTF-8
Python
false
false
1,254
py
51
setuphandlers.py
19
0.673844
0.673844
0
35
34.8
79
RedgeCastelino/Master_thesis_shared
4,982,162,108,181
4542afbce276fa8e614a2cf903c2d7463414fb80
5425b9dbb15da20faaca1cfd98cebef8a5423216
/src/sensor_model/scripts/ego_reader.py
c7eacca656af2790e1d8d0380531cf5a9ce1c599
[]
no_license
https://github.com/RedgeCastelino/Master_thesis_shared
ce30be3906f6968859c93e508cbe4ace56de0237
de2f4b229f3df4f219a08f3d4d7e8d3d40750c55
refs/heads/main
2023-03-12T12:32:36.555096
2021-03-01T14:34:57
2021-03-01T14:34:57
343,441,415
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import rospy import math from osi3_bridge.msg import GroundTruthMovingObjects, TrafficUpdateMovingObject from rotate import rotate def vehicle_reader(): # Node initialization rospy.init_node('ego_reader', anonymous=False) # Start node rospy.Subscriber("/osi3_moving_obj", GroundTru...
UTF-8
Python
false
false
1,964
py
278
ego_reader.py
122
0.698574
0.695519
0
56
34.071429
141
Pratiknarola/algopy
8,469,675,533,030
e54287477dc6737bd11eca04d31ee363b16fa3e2
d67b50553717612c4db0577db268ac0b42750ad0
/sorting/gnome_sort.py
8db54de63ffba1449734f7b553b3e21787ea8b36
[ "MIT" ]
permissive
https://github.com/Pratiknarola/algopy
24436b12bdfc52e61fcd6cd706925ebb2ad9236f
f3894c98b7232d0f6067eb52ca68f9e6a8875884
refs/heads/master
2021-07-17T05:55:37.839127
2019-10-15T03:57:04
2019-10-15T03:57:04
211,533,758
4
3
MIT
false
2020-10-07T08:35:55
2019-09-28T17:01:41
2020-01-15T15:51:40
2019-10-15T03:57:05
19
4
2
1
Python
false
false
''' Created by: Pratik Narola (https://github.com/Pratiknarola) last modified: 14-10-2019 ''' ''' Gnome Sort also called Stupid sort is based on the concept of a Garden Gnome sorting his flower pots. A garden gnome sorts the flower pots by the following method- He looks at the flower pot next to him and the previous...
UTF-8
Python
false
false
982
py
16
gnome_sort.py
15
0.64664
0.630346
0
32
29.6875
109
alipay/alipay-sdk-python-all
12,429,635,369,970
fc0ba900947e158fcb6b6294df860d6f5f5d2b5d
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayOpenMiniInnerversionUploadstatusQueryResponse.py
aac3c75e9696c97d568043f172c16e7699a0c6ba
[ "Apache-2.0" ]
permissive
https://github.com/alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
false
2023-04-25T04:54:02
2018-05-14T09:40:54
2023-04-20T12:00:51
2023-04-16T10:42:27
12,485
221
54
27
Python
false
false
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenMiniInnerversionUploadstatusQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniInnerversionUploadstatusQueryResponse, self).__init__() s...
UTF-8
Python
false
false
3,311
py
9,331
AlipayOpenMiniInnerversionUploadstatusQueryResponse.py
9,330
0.632135
0.631833
0
105
30.533333
124
shuaiwang123/ICAMS
11,355,893,570,225
2af44c6ece2c9bc3a234babe0501a685396fc46f
20ddd21fc3dea03e4ed0003e64603423c4c54a4d
/icams/download_era5.py
359b55c470805442867d311262e2dcc94a731dc0
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
https://github.com/shuaiwang123/ICAMS
554d239e5af65263059961cc0ff17d12866469e3
0308bcf3bc512d24ad9df848d1020ea559afcda2
refs/heads/main
2023-04-04T17:48:17.217816
2021-04-24T13:55:47
2021-04-24T13:55:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python ################################################################# ### This program is part of ICAMS v1.0 ### ### Copy Right (c): 2020, Yunmeng Cao ### ### Author: Yunmeng Cao ### ...
UTF-8
Python
false
false
12,478
py
11
download_era5.py
9
0.54536
0.515547
0
367
32.99455
147
MICROBAO/Statistical-Prgramming
15,822,659,551,820
b9892a20fab9f0afe816ec66792df75882e7fe18
da3994d65dc846b8ef661f1654e6f667a4dbe8d1
/3.PrincipalComponentAnalysis(PCA)/PCA.py
9c22b7475d66306b69733ec33384a14913a71e59
[]
no_license
https://github.com/MICROBAO/Statistical-Prgramming
6646e689bf2cdcacd20d487459f7bd66c2363020
87c65bb9c2ebb64ed1009a8ab22911f3289b3745
refs/heads/master
2021-01-10T16:58:09.788652
2016-02-18T04:35:50
2016-02-18T04:35:50
51,475,788
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Dongzhe Li 104434089 # coding: utf-8 #Principal component analysis. The input is a data set in the form of an nxp matrix X. #The output includes the principle components Q and the corresponding variances Lambda def my_pca(A): T = 1000 A_copy = A.copy() r, c = A_copy.shape V = np.random.random_s...
UTF-8
Python
false
false
1,846
py
28
PCA.py
21
0.51896
0.5
0
74
23.864865
103
rolandn/login_recaptcha
3,959,959,875,380
c0d79bd8ca501378b7fda296153ecaa25f815364
5eb5cc0f0b3decd46406853986eb03beb77dd55b
/__manifest__.py
ec755c0047dce2c4d7fbe88917cd16817da48f4e
[]
no_license
https://github.com/rolandn/login_recaptcha
99d05fb06821338e1db59b09608046ddf75360ab
9e232d7688a34b93610ff5f8461a5f6ff14e2b5e
refs/heads/master
2020-07-15T12:07:09.571878
2019-08-31T14:54:00
2019-08-31T14:54:00
205,557,825
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- encoding: utf-8 -*- ########################################################################### # Module Writen to odoo # # Copyright (C) 2016 - Turkesh Patel. <http://www.almightycs.com> # # @author Turkesh Patel <info@almightycs.com> #####################################################################...
UTF-8
Python
false
false
1,278
py
6
__manifest__.py
3
0.552426
0.544601
0
42
29.428571
161
prakharrr/15619-Cloud-Computing
19,104,014,556,906
086e931e58dd67c100e38ee66f307f0141c23cea
da7589f6b4e689495a7ccf4673aff2114feab87e
/Project2/Project2.4 Auto Scaling/project2_4.py
21de20c170cdc8ab54214f1270f72d5b227032ba
[]
no_license
https://github.com/prakharrr/15619-Cloud-Computing
74059170abf366b8e5a23483f1f49a612d546d65
a3bb1042607b5e8be3d04f8ffad5cb7366895806
refs/heads/master
2020-11-25T04:21:08.477445
2014-05-08T20:13:11
2014-05-08T20:13:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import sys import datetime import boto import boto.ec2.connection import boto.route53.connection import boto.route53.hostedzone import boto.route53.record import boto.route53.exception import boto.ec2.autoscale from boto.ec2.autoscale import AutoScalingGroup from boto.ec2.autoscale import LaunchConfi...
UTF-8
Python
false
false
4,667
py
23
project2_4.py
20
0.707307
0.677309
0
157
28.726115
175
sencheng/memories-improve-sensory-representations
10,737,418,265,959
49e6ce1b86c0f791813553e2f02c07d270def3c4
143bdceaabba3fd1809469752a877419a2d4a372
/old3/ccn/replay_prediction.py
ef6c9fc87c15e31a81fec5c43f6084234cf28a10
[]
no_license
https://github.com/sencheng/memories-improve-sensory-representations
e6786428d45ab493d04c15917b40cb890b6c1c7f
2faa96c4c298274fb0b10aa9f4443cc5eae38e8d
refs/heads/master
2020-11-24T23:14:45.767068
2019-12-16T13:46:56
2019-12-16T13:46:56
228,381,621
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" (Figure 7) Processes and plots data that was generated using :py:mod:`learnrate2`. Delta values of SFA features and the prediction quality of the regressors are plotted against number of training repetitions of SFA2. Also, scatter plots latent variable vs. regressor prediction are shown. """ from core import sem...
UTF-8
Python
false
false
10,304
py
165
replay_prediction.py
142
0.605784
0.580551
0
253
39.727273
161
dingdongyouarewrong/FaceRecognition
5,849,745,488,729
8512a77909a5569b8e2614e6bc2b52d0433a8b1c
a87c1fcb7d21717ab3ace3f7c190b67e6d3958e8
/findFace.py
70e7b8de0cd103f68c491b62e0aef079bc85de6f
[]
no_license
https://github.com/dingdongyouarewrong/FaceRecognition
3dc6af5465161b9a17849c4200b58a00cac1f79a
498bd5c0fadde345aea08249f8e8c7b2602be3e5
refs/heads/master
2020-07-26T01:41:18.009134
2019-09-14T19:20:15
2019-09-14T19:20:15
208,490,610
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2, numpy from keras.preprocessing.image import img_to_array from model import create_model, findCosineDistance haar_file = 'cascade/haarcascade_frontalface_default.xml' face_cascade = cv2.CascadeClassifier(haar_file) vector = 0 webcam = cv2.VideoCapture(0) count_of_faces = 1 model = create_model() img1_des...
UTF-8
Python
false
false
1,670
py
4
findFace.py
3
0.668263
0.630539
0
52
31.115385
84
Kori3a/M-PT1-38-21
2,336,462,246,132
cb51344bc68b1fa4dac9d124f966911f5e3b6230
89d7bd51638bb3e8ca588062af1a3ec4870efd55
/Tasks/Abramyk Yulia/Project/BeautyShop/main/views.py
e7fab058a398e4cba57e6a4c395f5850fc7d7529
[]
no_license
https://github.com/Kori3a/M-PT1-38-21
9aae9a0dba9c3d1e218ade99f7e969239f33fbd4
2a08cc4ca6166540dc282ffc6103fb7144b1a0cb
refs/heads/main
2023-07-09T20:21:32.146456
2021-08-19T17:49:12
2021-08-19T17:49:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from .models import Comment, Price_Woman, Price_Man, Price_Nail from .forms import CommentForm, FormLeadForm from .telegramm import send_message def main(request): error = '' if request.method == "POST": form = FormLeadForm(request.POST) if form.is_valid(...
UTF-8
Python
false
false
1,633
py
325
views.py
259
0.586592
0.586592
0
61
25.42623
113
kinghaoYPGE/career
6,347,961,702,895
4561997cef0ad5f382f8542fba41b3a29a5aba83
ddb09330eb51f823c1dc66617b363affd4e23290
/python/20190325/my_asyncs/my_redis/async_redis_client/example/app.py
2a7d626203fd81e980bf541ac2904f691a8f3951
[ "MIT" ]
permissive
https://github.com/kinghaoYPGE/career
9df8a1d5303f2981ba0116fa60284945cec03bfd
50260f6ccf874c7c5f7af23f02ed823645ea7898
refs/heads/master
2020-04-04T11:19:44.480173
2019-04-17T14:31:37
2019-04-17T14:31:37
155,886,969
3
4
MIT
false
2019-03-21T09:12:01
2018-11-02T15:39:31
2019-03-20T16:23:19
2019-03-21T09:12:00
13,607
2
2
2
CSS
false
null
# -*- coding:utf-8 -*- from asyncredis import Client import tornado.httpserver import tornado.web import tornado.ioloop import tornado.gen import logging logging.basicConfig(level=logging.DEBUG) log = logging.getLogger('app') class MainHandler(tornado.web.RequestHandler): @tornado.gen.coroutine def get(s...
UTF-8
Python
false
false
1,067
py
411
app.py
274
0.674441
0.660836
0
45
21.866667
82
yazdanimehdi/teapo-backend
11,630,771,466,095
d30ca4ec3fa2819207d5e7d6e5e1270491b1ffd9
8e29db4e47d3e33130a753172a33301df33f7cbd
/tpo/models/speaking.py
2fe234e6e3f1996f0213c3d9065293467a3b6e42
[]
no_license
https://github.com/yazdanimehdi/teapo-backend
3486b6b9c241157ecbfa4feac0e23eb3c8eb1267
32561d25cfff54fab28f6424467e318b70b1657f
refs/heads/master
2023-04-19T22:00:01.639790
2021-01-05T00:19:07
2021-01-05T00:19:07
365,662,263
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models def upload_location_speaking(instance, filename): return f"tpo/speaking/{instance.number}/{filename}" class Speaking(models.Model): related = models.CharField(max_length=200, blank=True, null=True) speaking_audio_file = models.FileField(blank=True, null=True, upload_to=uploa...
UTF-8
Python
false
false
1,351
py
75
speaking.py
59
0.750555
0.746114
0
24
55.25
117
kongyew/gpdb
7,335,804,143,551
23b127602cb0daa5e2cccca6caf63d3ba44d8d28
e84670cda6bc7543e00c248f317e833bebf4bb74
/src/test/tinc/tinctest/test/test_discovery.py
d812191d9c600d73c5dd80c4e4635dc949cfd883
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
https://github.com/kongyew/gpdb
d6f9fc2578e666df1e559a5cb538b91b48fd2615
e3a8163ca4c12cbea0f17303bcf987e16e5bc3d6
refs/heads/master
2023-04-20T08:52:29.481397
2017-12-11T23:18:03
2017-12-16T01:25:22
99,146,458
0
0
Apache-2.0
true
2023-08-20T18:03:44
2017-08-02T18:00:56
2017-08-02T18:01:43
2023-08-20T18:03:43
242,625
0
0
19
C
false
false
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
UTF-8
Python
false
false
22,099
py
2,859
test_discovery.py
1,984
0.623693
0.620119
0
420
51.22619
156
aman-17/Machine-learning
9,929,964,434,623
5a8219fe955b4440afbab45d902f7713d8f3f2a0
d220343937f5195b343e6a9c22d4faf3d3b35cba
/mid/q10.py
8c11036e5e8e2b698e493b22c259d1a5a7c9ab32
[ "Apache-2.0" ]
permissive
https://github.com/aman-17/Machine-learning
cdada879b62ce6f1f86bf94ab3f2188503f5fa8c
da5e4d3e1de56d68a2fedab7c00c0db0f1400399
refs/heads/master
2023-05-14T02:29:00.036872
2023-04-30T17:14:12
2023-04-30T17:14:12
297,309,696
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import numpy import pandas import sys # Set some options for printing all the columns numpy.set_printoptions(precision = 10, threshold = sys.maxsize) numpy.set_printoptions(linewidth = numpy.inf) pandas.set_option('display.max_columns', None) pandas.set_option('display.expand...
UTF-8
Python
false
false
2,720
py
50
q10.py
40
0.694853
0.681618
0
83
30.771084
99
chrissmith10/projects-freecodecamp
8,254,927,183,928
40fe84bc8afd2ce6ba173b6a061125a1a457a6c7
e9facc809057cb7a8eb9395c38ded8ef2feb8e2b
/portscanner1.py
958482566e40e110bd75a77d0527a7d0e809c43b
[]
no_license
https://github.com/chrissmith10/projects-freecodecamp
4e046241274e45cb4677ccea3265434dc56dafcf
7d6c079e6b0b3371c69d85185a684b1d53a3c564
refs/heads/main
2023-02-17T23:58:44.826302
2021-01-01T18:21:31
2021-01-01T18:21:31
314,051,778
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Port Scanner import socket # https://docs.python.org/3/library/socket.html s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #host = "137.74.187.100" # you can get this number by entering "ping 'website URL'" in the CLI #port = 443 # could check ports 443, 80, 21, etc host = input("Please enter the ...
UTF-8
Python
false
false
582
py
7
portscanner1.py
7
0.654639
0.616838
0
20
27.1
94
woshichenya/hezi
9,783,935,521,028
3a4e44727efd8f3783015078082523984da3a585
59636b143a2ab189145b17a7ea9a38de5af1f7a5
/All/tianmao2.py
0ca0b88838b183c731a6f93f223b33528d7e0ed8
[]
no_license
https://github.com/woshichenya/hezi
880a70c34cc61b6b6bcf1ccb65fa54989595fb71
4211ff8ef78f5d15d8fc8065247f916dfe9d305d
refs/heads/master
2020-04-28T21:46:02.664025
2019-05-14T08:47:33
2019-05-14T08:47:33
175,593,966
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from beifen import baibaoxiang, femail import threading email= femail.email import time url="https://detail.tmall.com/item.htm?id=586750895922&ut_sk=1.WS2NQGDD3RQDABrAF+sKkx4n_21380790_1551403955700.PanelQRCode.1&sourceType=item&price=199&suid=184110C6-48F2-46A7-AACA-D74A10C4C13D&un=11b7dc7b2f1a39340ece3c7aa15a835b&sh...
UTF-8
Python
false
false
1,643
py
328
tianmao2.py
313
0.564881
0.464816
0
52
28.75
385
huningfei/python
10,874,857,233,181
81885abaae7000dc8e548c60d8cc707b7858f1f2
f72fa4432e6abb742cbf1c61c580db1ed688a311
/day26/scrapy框架/first/first/spiders/qiushi.py
6e9761d030b4d629e9e6b3181a1653a3a45b9616
[]
no_license
https://github.com/huningfei/python
7ddc9da14a3e53ad1c98fc48edd1697a6f8fc4f7
9ca1f57f2ef5d77e3bb52d70ac9a241b8cde54d2
refs/heads/master
2022-10-31T18:56:33.894302
2019-01-04T11:06:59
2019-01-04T11:06:59
128,178,516
2
1
null
false
2022-10-12T19:26:04
2018-04-05T08:25:32
2021-02-19T03:39:54
2019-01-05T06:20:50
73,572
1
1
1
Python
false
false
# -*- coding: utf-8 -*- import scrapy class QiushiSpider(scrapy.Spider): name = 'qiushi' # allowed_domains = ['www.aa.com'] start_urls = ['https://www.qiushibaike.com/'] def parse(self, response): # xpath为response中的方法,可以将xpath表达式直接作用于该函数中 odiv = response.xpath('//div[@id="content-left...
UTF-8
Python
false
false
1,665
py
544
qiushi.py
345
0.589619
0.585564
0
42
28.380952
109
waveproject0/nxtgen-backend
6,279,242,206,852
ebe79c092aef6873bb069ae20b93e81073d71968
46bbdf98aefe92a7ec1dbbeaeba1b74d76a64b33
/announcement/models.py
f7f586d65f297a4d9317bba8efe9b083d7ad396e
[]
no_license
https://github.com/waveproject0/nxtgen-backend
bb40794f03b4c00a0e7bffb492530d3487c6d085
33d37018ae2b4e29ddc3d4dcd1291a342e2553ce
refs/heads/master
2023-04-16T07:25:01.814422
2021-04-30T13:00:01
2021-04-30T13:00:01
363,143,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import timedelta, date from django.db import models from django.db.models.signals import post_save from post.models import Post from institution.models import Institution from department.models import Department from Class.models import Class, ClassSectionRelation, ClassSubjectTeacherRelation, AdditionalS...
UTF-8
Python
false
false
6,028
py
99
models.py
98
0.754811
0.754147
0
165
35.539394
115
sportsguys/NOM_backend
10,737,418,275,054
95f3a63c0aab7215ed7e9b50c6362a1a7660385d
13f3f8db9fd7dd58fa11e745e3d11d04bc836589
/scraping/player.py
1024f4ea6450e83383758c7bb17843299f3a0ccd
[]
no_license
https://github.com/sportsguys/NOM_backend
a0028388cfd31a100ec74a374803cb0152362270
6ca529bed87ccbd3c4a22ba158993796e79ec66d
refs/heads/main
2023-04-23T10:28:27.940378
2021-05-10T18:39:08
2021-05-10T18:39:08
335,767,853
0
0
null
false
2021-05-10T18:39:03
2021-02-03T22:06:06
2021-04-27T08:10:02
2021-04-27T08:21:23
2,146
0
0
1
Python
false
false
from scraping.player_seasons import QB, WR, RB, Defense, Kicker, PlayerSeason from scraping.Page import Page from db.models import player class Player(Page, player): def __init__(self, name:str, url:str, position:str): self.name = name self.position = position self.url = url def get_se...
UTF-8
Python
false
false
1,453
py
26
player.py
23
0.545079
0.542326
0
51
27.490196
77
chunshan160/python
9,612,136,843,735
e9498a74591f8acc6ad7bd0701a73140d5ed843a
5b1a02001c0ba0042d0ed6650003cb8f8ed99fe5
/home_work/learn/小说爬虫.py
0cdb60e27266a314d79b30753575d08152412413
[]
no_license
https://github.com/chunshan160/python
6d2fdc96fffcbae7ace9590b0fd1a14ff454129d
e8dbebb307b74bf13ec7447a341329fc2a4a0914
refs/heads/master
2021-04-01T05:48:24.124326
2021-01-07T07:07:40
2021-01-07T07:07:40
229,753,868
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time :2020/7/8 15:34 # @Author :春衫 # @File :猫眼爬虫.py import re import requests from bs4 import BeautifulSoup ''' 如果你想实现此脚本 就必须借助一些第三方工具 联网工具爬虫工具返回数据 数据筛选包 re正则表达式 bs4网页选择器 pip install bs4 xpath pyquary 将我们的数据以json的数据格式保存下来 json前端 html| import reguests from bs4 import Be...
UTF-8
Python
false
false
2,772
py
386
小说爬虫.py
356
0.591351
0.576288
0
95
20.663158
79
nmsinger/NSL-CTF-Team
4,922,032,568,716
24be9b694ec5b688451ab2bee108585a2f777c0a
2e9f6daf1ed6d219aa305ab3509cff312be1e19c
/2021, Hack a Sat/HAS-Qualifier-Challenges_2020/rbs_m2/generator/signal_generator.py
6ea1c1c6f0ee7ab9cb2c6f924aa7ee078ab8baa5
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "CC-BY-4.0", "MIT" ]
permissive
https://github.com/nmsinger/NSL-CTF-Team
405d98b86e1fe6fc3eafd2eb986f336a1311b5e2
243155d9de0f1f1eb3029ccecb6fdfaabc35e0de
refs/heads/main
2023-08-28T15:14:26.951578
2021-09-12T18:50:07
2021-09-12T18:50:07
378,773,030
2
0
MIT
false
2021-06-21T01:30:40
2021-06-21T01:21:08
2021-06-21T01:21:11
2021-06-21T01:30:40
0
0
0
0
null
false
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-3.0 # # GNU Radio Python Flow Graph # Title: pwm_side_channel_sim # GNU Radio version: 3.8.1.0 import datetime import struct import time from distutils.version import StrictVersion from antenna_control import AntennaController from orbit ...
UTF-8
Python
false
false
17,105
py
1,808
signal_generator.py
427
0.63192
0.598363
0
383
43.660574
167
delafields/delafields.github.io
5,162,550,726,878
01b7426a6746d0c82845604a2d957590302ff1fb
ba449bb72bb72916d87a0c23d42c2c5c43959e85
/movie-budgets/main.py
6e71bd33cbbb00fa3bd148735d0ee60b6feac262
[]
no_license
https://github.com/delafields/delafields.github.io
9fb8fc3812b1acc65b3314e90e88ad4470de1ec5
f49aaf3d47e77e46406e866b84e2f63c4664c74d
refs/heads/master
2021-09-24T23:30:31.103203
2021-09-21T19:55:00
2021-09-21T19:55:00
213,717,571
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from scrape import get_data import os import json import gzip # url followed by file name from urls_to_scrape import urls_n_filenames def make_json(url, file): '''Scrape the data and put it into a json file Parameters: url (str): a valid url file (str): the file being saved to ''' # check...
UTF-8
Python
false
false
1,030
py
98
main.py
26
0.633981
0.629126
0
38
26.078947
77
RyanTLX/cnn-crowd
14,731,737,869,666
1463bb113f1c6577b574966ebd908744ea7a2e4b
a46431f0c1e0bc7f37c93ecc36ec0f0e14eaa642
/CrowdEstimatorWeb/CrowdEstimatorWeb/views.py
63d912bc14bd104e0e9da7f1bf0f4579e16eba85
[]
no_license
https://github.com/RyanTLX/cnn-crowd
cdd74904dcf6545f1cadce167b1453129f8b1860
15bedbfb090bfc7e4f0a32d232fd1f7b47c88d67
refs/heads/master
2021-05-10T08:21:05.363096
2019-02-06T12:26:40
2019-02-06T12:26:40
118,882,989
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import JsonResponse # import os # import random import tflearn from tflearn.layers.conv import conv_2d, max_pool_2d from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.estimator import regression from numpy import array import n...
UTF-8
Python
false
false
4,924
py
7
views.py
4
0.65069
0.636881
0
150
31.826667
148
cash2one/xai
14,534,169,342,267
7a20a04abed537cc4d8a331fb2654de28dc261a5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_falsehoods.py
0c0f5989c9ef604505a247e5a552df3d69ecbd4e
[ "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._falsehood import _FALSEHOOD #calss header class _FALSEHOODS(_FALSEHOOD, ): def __init__(self,): _FALSEHOOD.__init__(self) self.name = "FALSEHOODS" self.specie = 'nouns' self.basic = "falsehood" self.jsondata = {}
UTF-8
Python
false
false
259
py
37,275
_falsehoods.py
37,266
0.675676
0.675676
0
10
24.7
58
jspeyside/sample_test
17,703,855,196,136
8ddb7f9c6bfa7153883cd855706eafde246b94e6
87a32969a4df595f38e613415a4cad810f417eb1
/tests/unit/lib/test_math.py
6ac1a4bf28701e2d9af8cb967dcbbf484f6728c7
[ "MIT" ]
permissive
https://github.com/jspeyside/sample_test
26b33ed8465a0494ce5e4b575ac6fb2fdb4fcd4e
d8577936ecc936ee1878e091555d2d4daea2983c
refs/heads/master
2021-06-07T20:56:30.075230
2016-09-23T00:09:43
2016-09-23T00:09:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from tests.base import BaseTest from lib.math import Point class TestPoint(BaseTest): def test_something(self): time.sleep(45) assert 1 == 1 def test_get_distance(self): d1 = Point.get_distance(5, 0) d2 = Point.get_distance(3, 10) assert d1 == 5 as...
UTF-8
Python
false
false
467
py
11
test_math.py
7
0.5803
0.528908
0
21
21.238095
44
Mofvsv/RenameFile
3,779,571,229,677
16c6055e246b0b89ef4501ab8edb309e922f0a3d
0b3b92c7dd1102f02a201b181ce683913e685cb3
/Rename_files.py
0a18af0231a00e9908c08ba699f16710ab53dd71
[]
no_license
https://github.com/Mofvsv/RenameFile
a8faf19c3e29be7aafcc71f2cc7ae5624ad646d9
d29377b105808f90254544bfa9777084f02ea37d
refs/heads/master
2021-01-20T03:29:21.636272
2017-04-27T02:18:55
2017-04-27T02:18:55
89,545,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os def rename_files(): #get file names from a folder file_list = os.listdir(r"C:\Users\TheHomie\Documents\Udacity\Github\python\Rename_file\prank") print(file_list) save_path = os.getcwd() print("Current working directory" + save_path) os.chdir(r"C:\Users\TheHomie\Documents\Udacity\Github...
UTF-8
Python
false
false
638
py
1
Rename_files.py
1
0.705329
0.689655
0
16
38.875
144
DebugProd-inc/restfull
7,035,156,453,119
30c36f4bc6f0c6a843b369b4ecfd30f7c89a8451
f2fb33ec8901a2251cfb28b728f0bd19851b48bf
/app/api/api_routes/directions/create_direction.py
016b3bacbc26ae4e684d5aec75dcede9b0fd2f5a
[]
no_license
https://github.com/DebugProd-inc/restfull
5c876f7ebbe351272b582003cc6b971969104ddb
1c3c779ebf26f70beea411fd6dd444fab8f7cadd
refs/heads/master
2022-11-29T14:53:36.171711
2020-08-02T07:07:34
2020-08-02T07:07:34
277,918,870
0
0
null
false
2020-08-02T07:07:35
2020-07-07T20:47:04
2020-08-02T07:00:25
2020-08-02T07:07:34
140
0
0
0
Python
false
false
from flask import ( url_for, request, jsonify ) from app import db from app.all_models import Direction from app.api import bp from app.api.errors import bad_request from app.api.auth import token_auth @bp.route('/directions', methods=['POST']) @token_auth.login_required def create_direction(): data ...
UTF-8
Python
false
false
881
py
73
create_direction.py
68
0.644722
0.641317
0
35
24.171429
47
Aasthaengg/IBMdataset
11,381,663,352,582
55d4206ef6107659606fe2a8f14a49b0b2f1040a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03228/s183306923.py
0e9e3f52b9cf4339d158ee8512cd2b1f983ca07d
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a,b,k = map(int,input().split()) cnt=0 while cnt < k: if cnt%2==0: if a%2==0: b+=a//2 a=a//2 cnt+=1 else: a-=1 cnt+=1 b+=a//2 a=a//2 else: if b%2==0: a+=b//2 b=b//2 cnt...
UTF-8
Python
false
false
425
py
202,060
s183306923.py
202,055
0.263529
0.214118
0
24
16.666667
32
mcuttler/data-services
910,533,098,067
ef89004432887ef346c44f64086d88aa2bbe6528
a02b0f048884ae8c1ab6ea83b520caf34bcb5704
/AODN/AODN-WAVE-DM/DOT-WA-WAVE/awac_library/current_parser.py
d43e0dbdcaf47fc04a2433a985a7770519f11aa5
[]
no_license
https://github.com/mcuttler/data-services
6ca7216efd066f1032635bc9cc6766567c5faa41
9072a6f5b9054287870272c1c623cf97c9411923
refs/heads/master
2022-12-11T15:54:56.068216
2020-09-08T05:19:43
2020-09-08T05:19:43
294,862,558
0
0
null
true
2020-09-12T03:31:13
2020-09-12T03:31:12
2020-09-08T05:19:46
2020-09-09T07:09:48
57,222
0
0
0
null
false
false
""" current_data_parser -> parse current data into a pandas df gen_nc_current_deployment -> generate a NetCDF from a current file """ import datetime import glob import logging import os import re import shutil import tempfile import numpy as np import pandas as pd from netCDF4 import Dataset, date2num from c...
UTF-8
Python
false
false
8,714
py
80
current_parser.py
56
0.632316
0.62543
0
183
46.617486
166
Denny2020/airflow
16,870,631,572,862
e0c13b2065e55a3cdaa1a25b8ac15e18827409e6
32df5d7d207a63e2521aaceda555ebfa9eac5266
/dags/tomtom_data_migration.py
880220fe3f626fe4a2cc232ff6bf065e37d2753a
[]
no_license
https://github.com/Denny2020/airflow
7a29d1882284a418426e0969d68fe1a6a202a774
e3e16effbc311bb7bdb5d410e65248c49b245efd
refs/heads/main
2023-07-19T06:13:00.236477
2021-09-20T13:47:54
2021-09-20T13:47:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse from pathlib import Path from model import Connection import config # Initialize Tomtom Table def main(db_connection): Path(config.CSV_FILE_DIR).mkdir(parents=True, exist_ok=True) connection = Connection(db_connection) session = connection.get_session() session.execute('''CREATE T...
UTF-8
Python
false
false
791
py
9
tomtom_data_migration.py
8
0.686473
0.683944
0
29
26.310345
64
alishka1/selenium
14,250,701,498,048
a743402d67b12506e8c7554e9cd78d72a80c31c1
9e209a435ae8bbe6d847fec2c2f7d93424828c1d
/window_handle.py
bdbd070051c63e6b9e7b5e42b63cf5cf472a0671
[]
no_license
https://github.com/alishka1/selenium
8aa80d67a4a44ae7c51a90e03d417d059e3260ad
26c7acf06132b01a0b6df9b087268d67aacbae6e
refs/heads/master
2021-01-20T00:51:21.097711
2017-04-24T12:57:46
2017-04-24T12:57:46
89,200,288
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import WebDriverWait import time from bs4 import BeautifulSoup from selenium.webdriver.common.action_chains import ActionChains from ...
UTF-8
Python
false
false
2,034
py
5
window_handle.py
4
0.677974
0.649459
0
106
18.198113
197
pericles-tpt/SENG3011-Kool-Kats
3,186,865,758,721
d3321fea4ae29e32ab46782584525354074ba219
9ed545b6cf3615660d1d1188dd45117509745fcc
/PHASE_1/API_SourceCode/pychromeless/src/lambda_function.py
ad4fc1e0288b8de8ec854a33fe4ba03cba34681a
[ "Apache-2.0" ]
permissive
https://github.com/pericles-tpt/SENG3011-Kool-Kats
fb0e837ac420f0909218eb7106a3ca5d6fc8791b
625b0fddedbebb47f9714c2ed0168f620ed1f164
refs/heads/master
2023-04-13T15:43:57.575788
2021-04-25T22:53:00
2021-04-25T22:53:00
344,713,229
0
0
null
false
2021-04-22T01:09:28
2021-03-05T06:13:13
2021-04-22T01:07:35
2021-04-22T01:09:27
54,911
0
0
0
JavaScript
false
false
import time import json # STEPHEN: I added this import datetime from webdriver_wrapper import WebDriverWrapper from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_...
UTF-8
Python
false
false
15,404
py
24
lambda_function.py
17
0.524477
0.5137
0
402
37.313433
186
tyedge/holbertonschool-higher_level_programming
17,446,157,177,584
0b8669ca2ab41a2b5bc5f74d8382a8dbc6580cff
9b3ef471582d4bc2e2a25dba7fdc96fa6153f1f1
/0x05-python-exceptions/4-list_division.py
c8ca1b50e54f5f8c75a2721979e6c8439409a34c
[]
no_license
https://github.com/tyedge/holbertonschool-higher_level_programming
b9a0f8e117423d507eb3aceb606b6edec30ff481
9bbf03d405bec1def3aeeafb9c8ee89c6595d115
refs/heads/master
2020-05-17T22:29:19.840477
2019-09-27T03:49:21
2019-09-27T03:49:21
184,002,509
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 def list_division(my_list_1, my_list_2, list_length): retval = [] num = 0 x = 0 while x in range(list_length): try: num = my_list_1[x] / my_list_2[x] except IndexError: print("out of range") except TypeError: print("wrong t...
UTF-8
Python
false
false
492
py
101
4-list_division.py
95
0.504065
0.48374
0
21
22.428571
53
sessionsdev/PythonFundamentals
15,771,119,946,447
e674a0b58e377757597ea5466955f4c40fdbeca3
18aadcca2b177d009b3487d3a7e718fecb9c4974
/01_python_fundamentals/01_02_seconds_years.py
3f15cbbeb5db33e02118f38422ef9ed0c49a86e9
[]
no_license
https://github.com/sessionsdev/PythonFundamentals
c1ac8c4d6dbf6d6419a4ecd0bed665c57f5835bf
ad0bd0be4c488ce4cd2d97472fe5f1e45df547a1
refs/heads/master
2020-06-22T19:16:00.189612
2019-09-19T04:05:16
2019-09-19T04:05:16
197,786,113
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' From the previous example, move your calculation of how many seconds in a year to a python executable script. ''' days_in_year = 365 hours_in_day = 24 minutes_in_hours = 60 seconds_in_minutes = 60 seconds_in_year = days_in_year * hours_in_day * minutes_in_hours * seconds_in_minutes print(seconds_in_year)
UTF-8
Python
false
false
314
py
35
01_02_seconds_years.py
35
0.729299
0.700637
0
14
21.428571
85
tuipik/ITEA
4,801,773,442,743
7733d7ad4620a14805b7d78e9dea5185e53c5ca5
7d01b616624bc6e1788000a7171160bd9333b73d
/Lesson_03/test_homework01.py
d81fad432dff1906854f452f155b20b902f342c0
[]
no_license
https://github.com/tuipik/ITEA
37b786a92b04f369d73cca0997155a7a0a638887
813f6c05714175e517154db0fa5ba79374079d0c
refs/heads/master
2020-03-26T20:39:56.474432
2018-10-17T16:22:11
2018-10-17T16:22:11
145,338,050
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from itertools import islice import pytest from homework01 import call_count, fac, fib, flatten, gcd @pytest.mark.parametrize('a, b', [ (5, 120), (7, 5040), (8, 40320), (9, 362880) ]) def test_fac(a, b): assert fac(a) == b @pytest.mark.parametrize('a, b, c', [ (1, 1, 1), (2, 3, 1), ...
UTF-8
Python
false
false
1,348
py
23
test_homework01.py
19
0.525213
0.457719
0
68
17.955882
74
SearchDataAPI/python-sdk
9,414,568,334,032
70fab8e6add6c75918a7d398c1403e85f5f1b461
09f9892da13af4e642095dc809d99dd0f1f29de6
/searchdata/SearchdataGoogleScholarProfiles.py
40af5edd1cc9d01fbbb3ef4f1c6b51282c7dfad7
[ "MIT" ]
permissive
https://github.com/SearchDataAPI/python-sdk
71b48977f315e2ca43d24cee2c96e8567588f83b
16afbca6650d1feeab745114782b7d673c1c32a7
refs/heads/master
2023-08-22T15:40:56.371089
2021-09-15T09:29:27
2021-09-15T09:29:27
406,332,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from searchdata import SearchdataSDK class SearchdataGoogleScholarProfiles(SearchdataSDK): def __init__(self, api_key: str): super().__init__(api_key) self.engine = 'google_scholar_profiles' self.api_url = 'https://api.searchdata.io/v1' self.is_searchdata_api = True de...
UTF-8
Python
false
false
1,944
py
18
SearchdataGoogleScholarProfiles.py
16
0.55144
0.550926
0
72
25.027778
95
greenfox-velox/szemannp
15,264,313,781,817
f349d4dac044564f103e26bbd95b3976c6526d77
692a52c1ab298146fb9bbb648b8e3d0107231db0
/week-03/day-2/31.py
3d93ecd4e437d908c48917cc12e35d4dccdc92f1
[]
no_license
https://github.com/greenfox-velox/szemannp
8994c39eb13f0b248ef8b00236e3fd69f9b8f42c
4e2ea37de4a88427c7be6c7b99cc5e6de34d02ec
refs/heads/master
2021-01-17T13:26:26.172671
2016-07-20T11:19:15
2016-07-20T11:19:15
58,042,984
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
ae = 'Jozsi' # create a function that greets ae def greeting_function(name): return "Greetings, " +name print(greeting_function(ae))
UTF-8
Python
false
false
139
py
164
31.py
130
0.71223
0.71223
0
7
18.857143
34
pypeclub/pype
3,015,067,077,408
d497451f7f8e34122e6fab76e8c2e3a4894136de
c5f5326a1a959825c478655329fae7118276fba6
/openpype/hosts/houdini/plugins/publish/validate_camera_rop.py
ca75579267662bfa3859da95ac84b3d91ecb0b4c
[ "MIT" ]
permissive
https://github.com/pypeclub/pype
9e696e4d461c3cb628e7adf0fa642c7f4c98183d
13888e5e5d0908cdb06dbac34f63166d33486f2b
refs/heads/main
2021-06-10T17:15:05.160190
2021-06-09T04:03:46
2021-06-09T04:03:46
175,899,082
44
21
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyblish.api import openpype.api class ValidateCameraROP(pyblish.api.InstancePlugin): """Validate Camera ROP settings.""" order = openpype.api.ValidateContentsOrder families = ['camera'] hosts = ['houdini'] label = 'Camera ROP' def process(self, instance): import hou ...
UTF-8
Python
false
false
1,403
py
188
validate_camera_rop.py
159
0.592302
0.590877
0
39
34.923077
78
karlazz/holbertonschool-python-camp
3,650,722,239,718
892c776258bdf9495493bd0952e918fad0bd561c
0ffed9396091b9a20055b5c7b464b6a2f0fca1aa
/0x02-python_if_else_loops_functions/104-no_c.py
752456090d481c3b85743188edf0b1b1f5d7652e
[]
no_license
https://github.com/karlazz/holbertonschool-python-camp
75c4f189aa26372ffa1a9fcc5a1bac817e9d630f
8f5d71e68fea828d967be2e4520c919689ab1911
refs/heads/master
2020-03-19T04:31:23.838926
2018-06-03T23:49:23
2018-06-03T23:49:23
135,838,087
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 def no_c(str): while str.lower().find('c') > -1: pos=str.lower().find('c') str = str[:pos] + str[pos+1:] return str
UTF-8
Python
false
false
149
py
13
104-no_c.py
12
0.550336
0.530201
0
6
23.5
35
hikarihust/python
4,080,218,952,060
61e4627143d75af0df6ed0859373dc20f1ad1c36
b703018a330c9cf8ebe55b5273d4d511f66c7ff6
/2.Xay-dung-cac-ung-dung-voi-python/1.ung-dung-tra-tu-dien/functions.py
59b77e0369e8865cabc16ffd5c9a4ca29fd131a7
[]
no_license
https://github.com/hikarihust/python
cadc89f2deef8a216832baafce7ff7bab40d9672
e39f317c50959de6c975d87b69d4ef7579c2435e
refs/heads/master
2023-05-24T19:08:46.770865
2023-05-21T16:05:32
2023-05-21T16:05:32
640,099,775
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from difflib import get_close_matches def findWord(keyword, data): result = "Not found" if keyword in data: result = showWord(data[keyword]) else: listSuggest = get_close_matches(keyword, data.keys(), 3) if(len(listSuggest) > 0) : for suggest in listSuggest: ...
UTF-8
Python
false
false
1,060
py
69
functions.py
65
0.495726
0.491928
0
36
28.138889
102
froguez/git_tests-1
8,074,538,561,720
373b3908e32fa65de7cff2db9d7bf03030993117
55ba7d8a8d0c825e5aefdf555a343ca162fdd14f
/my_super_app.py
9d6024d959e1a983a404b68ef7c7bbf1d3afe6b8
[]
no_license
https://github.com/froguez/git_tests-1
563f0df2b38f7098b5578d2cd8ff8e6554e4f1c4
e27b0a72b63327eeb6e8982ade31389180fdc34a
refs/heads/master
2022-11-11T23:35:38.007784
2020-07-11T08:20:40
2020-07-11T08:20:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def say_something(): print("Hello git kraken") def another_method(): print("this is another method!") def something_else(): pass def show_division(): print(1/1) show_division()
UTF-8
Python
false
false
196
py
1
my_super_app.py
1
0.653061
0.642857
0
13
14.153846
36
SOFIA-USRA/sofia_redux
14,216,341,794,653
63f41e68b43116e58bbe4c543ade6dcfe5b7b318
6b1b506139088aa30de9fd65cff9e3b6a3a36874
/sofia_redux/pipeline/sofia/parameters/forcast_parameters.py
f15edb731ec31c61e19b570920c634ba766e4fd6
[ "BSD-3-Clause" ]
permissive
https://github.com/SOFIA-USRA/sofia_redux
df2e6ad402b50eb014b574ea561734334d70f84d
493700340cd34d5f319af6f3a562a82135bb30dd
refs/heads/main
2023-08-17T11:11:50.559987
2023-08-13T19:52:37
2023-08-13T19:52:37
311,773,000
12
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """FORCAST parameter sets.""" from copy import deepcopy from astropy.io import fits from sofia_redux.pipeline.parameters import Parameters __all__ = ['FORCASTParameters'] # Store default values for all parameters here. # They could equivalently be re...
UTF-8
Python
false
false
10,618
py
1,791
forcast_parameters.py
1,339
0.532869
0.527783
0
302
34.15894
77
Javoh1001/hello
1,984,274,931,642
153356c9df912cd0eeba8baebd00693497620f5a
33a65e403774531598e0fee1c13fb58c84f3c7d0
/edu/admin.py
63f368cc6a02823c4e1c00104e212861c2e1fec8
[]
no_license
https://github.com/Javoh1001/hello
8e9fba7a3b4d970020c1c2e491cb208f0e5b302b
6b255713aa42275808ca6a2705b837edead9d9eb
refs/heads/master
2023-02-24T00:31:31.635896
2021-01-28T02:56:02
2021-01-28T02:56:02
333,482,850
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Announcment admin.site.register(Announcment) # Register your models here.
UTF-8
Python
false
false
129
py
22
admin.py
7
0.813953
0.813953
0
6
20.5
32
harvastum/PwJS-PiLB
13,314,398,644,064
48c7aaf6dddd91d31bfff9b9b4afa76b18cfe595
03c4baa0e35b6f0c9a26a552667e0bb15ddf7bf7
/2/konwersja_rozszerzenia.py
ba82d7b3a68bbc0b642360eac6f541ce1363ad06
[]
no_license
https://github.com/harvastum/PwJS-PiLB
dc076279fd7563a7a23348e779c0e6e3433a7800
f905254c01ee6ca0fb1e051ac5ca70638d31ce81
refs/heads/master
2023-02-03T12:04:36.183993
2020-12-21T06:23:20
2020-12-21T06:23:20
323,229,826
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os path, dirs, files = next(os.walk("dummy_files")) for f in files: if f.endswith('.jpg'): os.rename(path+os.sep+f, path+os.sep+f.rstrip('.jpg')+'.png')
UTF-8
Python
false
false
175
py
28
konwersja_rozszerzenia.py
19
0.605714
0.605714
0
7
23.857143
69
596350754/oldboy_website
12,790,412,623,212
25343c4e93e0343f886acdade06d62c8a4d8b813
47cd8b7feb8dcbdd66ea8cde4ec25ffa2f2f644c
/hello.py
cc47191e1fb00a27e9faf371726f01feb7759a43
[]
no_license
https://github.com/596350754/oldboy_website
057107d7a63f235d9ebf782943a1d7b7745f1e09
268797d4dcb6d34348d9f6c598dab2db4437bdf1
refs/heads/master
2020-04-15T20:14:10.252629
2019-01-16T03:12:28
2019-01-16T03:12:28
164,983,855
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
hello add one line add two line add three line
UTF-8
Python
false
false
51
py
2
hello.py
1
0.72549
0.72549
0
4
11.75
16
innocentzyc/get_agentnumber
2,095,944,049,123
114f3c97fbe339aeb5250124cf5b11c6b08516c8
53752d49125f88c6afaf04140f48a21b84e4214c
/request.py
c0f1e4f1983f327615cf307fad1877bdac99ccc0
[]
no_license
https://github.com/innocentzyc/get_agentnumber
ce5704aece06871d1351a19bebf6685f70b745a3
b7bc2fe7cca8a84267c4b1a572df6394af881fe2
refs/heads/master
2020-03-11T23:53:06.702380
2019-04-04T10:07:06
2019-04-04T10:07:06
130,334,583
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import time from urllib import request from selenium.webdriver.chrome.webdriver import WebDriver from bs4 import BeautifulSoup PAGE = 1 head_list = [ {'User-Agent': 'MSIE (MSIE 6.0; X11; Linux; i686) Opera 7.23'}, {'User-Agent': 'Opera/9.20 (Macintosh; Intel Mac OS X; U; en)'}, {'User-Agent...
UTF-8
Python
false
false
2,501
py
4
request.py
3
0.595838
0.529812
0
81
29.839506
165
actsasrob/aws-system-administration-resources
4,535,485,477,686
ba0f1c36769e53e70d27e0ed1db764610b001efe
0edc6b270b8707aa9cf409ebd61ac1e1358fce77
/ch10/update_route53.py
e74ef729e48a4f07b0cc0b458ab1bffe02ceda3f
[ "MIT" ]
permissive
https://github.com/actsasrob/aws-system-administration-resources
1b3a8484bb13914770905b793274ae37e3ca091e
98410d23a358f41e64411681bbd667b6114614da
refs/heads/master
2021-01-19T01:31:44.896637
2017-07-02T21:49:17
2017-07-02T21:49:17
87,246,867
0
0
null
true
2017-04-05T00:06:19
2017-04-05T00:06:19
2017-02-03T18:51:25
2014-08-26T12:21:51
148
0
0
0
null
null
null
#!/usr/bin/python import argparse import boto.route53 from boto.utils import get_instance_metadata def do_startup(): """ This function is executed when the instance launches. The instances IP will be added to the master or slave DNS record. If the record does not exist it will be created. """ # Check if the ma...
UTF-8
Python
false
false
2,490
py
62
update_route53.py
21
0.738956
0.734137
0
71
34.084507
93
Whatever929/text_based_game
5,171,140,660,317
783b92798eb31fad783a6641d5f045a03ee93451
d313b6b79502434e5c06ff720b7f18f0bf8f32a8
/parser_ambiguous_test.py
181bbf0f8df34a98485f59edd60700de47173aab
[]
no_license
https://github.com/Whatever929/text_based_game
2ab7623550199a50d43009fcc49e657a9603a823
4a48c4090994921c1211fbfe7c946e3a2eb83052
refs/heads/master
2022-12-07T14:48:22.123910
2020-09-05T15:10:09
2020-09-05T15:10:09
285,208,430
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# To be decided: If an ambiguous answer is given, output a tuple with an "ambiguous" followed by # two possible action. import unittest import src.parser as p class AmbiguousParserTest(unittest.TestCase): pass
UTF-8
Python
false
false
215
py
22
parser_ambiguous_test.py
20
0.776744
0.776744
0
8
26
96
yh97yhyh/ProblemSolving
2,628,520,019,837
9a3a51d4e95db7833be7259ef0d138e8e47e0865
5070296fcee2b8582daa7520da391b0d8ca6ea24
/programmers/level1/level1_03.py
e39e186feaded0c82ec5fc4f918492ef0ea8ba34
[]
no_license
https://github.com/yh97yhyh/ProblemSolving
4aca790f401c868d598fdeb5a1ce27f034b64cf1
48c7bd3e3fef52ddf377c16535fe98ebf908916f
refs/heads/master
2023-03-17T18:47:15.088551
2021-03-07T09:31:02
2021-03-07T09:31:02
291,486,975
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' < 가운데 글자 가져오기 > ''' s1 = "abcde" s2 = "qwer" def solution(s): length = len(s) half = int(length / 2) answer = '' if length % 2 == 1: # 홀수 answer = s[half] else: answer = s[half-1:half+1] return answer print(solution(s1)) print(solution(s2))
UTF-8
Python
false
false
311
py
110
level1_03.py
100
0.519031
0.487889
0
20
13.5
33
BobSu628/A-Typical-Game
8,478,265,484,115
edc9952d454305d909fea70bdb78ef97895c0816
f2eb0d158ce4b99a309be06a3bcec5074759b329
/sprites/spr_txt_lava.py
233cdccf4fd0ed201c5e9c7f929e6c3d2c820ece
[]
no_license
https://github.com/BobSu628/A-Typical-Game
008d1a51884c0b89bc8afdd1cea42dacd543df20
a3e7ed5acffe56896ddd567faf4f83e3904d4885
refs/heads/master
2020-03-29T18:20:57.594869
2018-09-25T04:20:36
2018-09-25T04:20:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sprites.spr_parent import SprPar class SprTxtLava(SprPar): def __init__(self, pos): super().__init__(pos, ["resources/txt_lava.png"])
UTF-8
Python
false
false
178
py
34
spr_txt_lava.py
34
0.550562
0.550562
0
7
24.428571
52
rickpeyton/5-stones-church-rss-feed-parser-lambda
12,068,858,115,626
25e644f8dcdf4f5cace57cee80b8075c6af6a6df
aa3468d0e4b4f55b74856c11654305eea00ce6d1
/src/parser.py
3bd2f15b1cfea015d7dc649494a97dff636f7efd
[]
no_license
https://github.com/rickpeyton/5-stones-church-rss-feed-parser-lambda
7b4157ec365491b5188777e3a5289bda8aea3a7f
847b1c43cf6ee676111157aafc554e96b108bf05
refs/heads/master
2021-01-19T01:45:10.752203
2017-12-28T18:14:52
2017-12-28T18:14:52
84,394,818
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function import requests import re from datetime import datetime from bs4 import BeautifulSoup import os import yaml def lambda_handler(event, context): response = send_request() if True == False: with open(os.path.join(os.path.dirname(__file__), ".", "request_fixture_2...
UTF-8
Python
false
false
2,466
py
9
parser.py
2
0.607056
0.596918
0
92
25.804348
106
tsushiy/competitive-programming-submissions
15,607,911,165,411
981c42c76e1fea8b6a70ae61b10381e2fc03cea0
16d159d6d3fe69d513717caad3e2c21320f93224
/AtCoder/AGC/agc006/agc006a.py
151ebcc726a27eadf580ec01615309822ceab310
[]
no_license
https://github.com/tsushiy/competitive-programming-submissions
d4f068a5157c0de0f1822367e0ca66dd978e43f9
9011d855d9252134179cc9cc8f328f6e0ca32407
refs/heads/master
2023-04-11T08:34:01.015316
2021-04-11T15:16:17
2021-04-11T15:17:35
175,807,862
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) s = input() t = input() cnt = 0 if s==t: print(n) exit() for i in range(n): if s[i:]==t[:-i]: cnt = max(cnt, n-i) print(2*n-cnt)
UTF-8
Python
false
false
155
py
769
agc006a.py
768
0.503226
0.490323
0
11
13.181818
23
devils-ey3/regexSolutionHackerrank
19,241,453,508,389
77303df9f75c77a0b41feb8507f1bb6afa40f52a
da144ebe6e259518e8d8c01f0600667182a647cb
/Introduction/Matching Digits & Non-Digit Characters.py
3b5460c8c2748d73d42f5145afb83d3fe49390ae
[]
no_license
https://github.com/devils-ey3/regexSolutionHackerrank
3b9a138c25393572f5de841eb7055170e3002db0
4a6f25f76edada07ef85f087783cbb2fab0d036d
refs/heads/master
2021-05-11T01:19:21.422028
2018-05-15T22:34:25
2018-05-15T22:34:25
118,327,372
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://www.hackerrank.com/challenges/matching-digits-non-digit-character/problem import re Regex_Pattern = r"^\d{2}[^\d]\d{2}[^\d]\d{4,}$" # Do not delete 'r'.
UTF-8
Python
false
false
164
py
43
Matching Digits & Non-Digit Characters.py
42
0.670732
0.652439
0
4
40
83
DanielHull/PinAnalysis
9,947,144,284,875
1258f4cf848287f371ce5d3e2373f75b1bc50a9e
4377da33e37abc7b665be30fa62cb1aaaaf02504
/Pin_Analysis/test_check_pins.py
a5ee96ca87af0ed45d3998d4c11b70c5df9746cc
[]
no_license
https://github.com/DanielHull/PinAnalysis
134f8165efa0d11138feefabd7a21f158c63e3da
4c33343f7dec373ef49a29ce641eb3a443245eda
refs/heads/master
2020-07-15T17:17:11.047304
2019-09-01T01:40:46
2019-09-01T01:40:46
205,615,414
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pin_analysis_tools import * import numpy as np import sys, os global sys, os, np global box_path box_path = get_box_pathway() sys.dont_write_bytecode = True # adds tech dev tool box to path (requirement) sys.path.insert(0, box_path + "Engineering\Tech_Dev_Software\PythonDev\TechDevPythonAnalyticsTools") from tech_...
UTF-8
Python
false
false
1,990
py
78
test_check_pins.py
7
0.720101
0.706533
0
45
43.222222
110
planetlabs/planet-client-python
16,758,962,423,817
1693eb34fb5efdcdab3e24033786573e6acf79c8
f42cd8413ac5bec6526cc1013253d00fd9becc62
/tests/integration/test_auth_cli.py
62fbd3563a6da5d6ef98959c9a4cc05b980f971b
[ "Apache-2.0" ]
permissive
https://github.com/planetlabs/planet-client-python
dda964d1d0a02e6413965fffa2f24f8a0b9d51f9
8b29a9300f8a144cc56a171f102b1a068fd6b692
refs/heads/main
2023-08-08T07:24:51.429307
2023-07-20T19:49:08
2023-07-20T19:49:08
37,222,273
269
89
Apache-2.0
false
2023-08-01T00:52:42
2015-06-10T20:58:37
2023-07-25T15:12:18
2023-08-01T00:52:42
6,409
243
77
95
Python
false
false
# Copyright 2022 Planet Labs PBC. # # 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 wri...
UTF-8
Python
false
false
3,888
py
121
test_auth_cli.py
61
0.658693
0.655093
0
123
30.609756
79
NobodyWHU/Leetcode
13,219,909,365,820
e754f37a951fc0a21c57bc60e9c0f13c3ee241b8
4e0ff785b993b6bae70745434e61f27ca82e88f0
/36-Valid-Sudoku/solution.py
4f1d8a7fc8e9f0082a0939eaf7573dafafaa0d93
[]
no_license
https://github.com/NobodyWHU/Leetcode
2ee557dd77c65c5fa8ca938efb6de3793b4de261
d284fa3daab02531e5300867463b293d44737e32
refs/heads/master
2021-01-23T14:05:28.161062
2016-09-23T11:51:51
2016-09-23T11:51:51
58,898,114
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def isValidSudoku(self, board): """ :type board: List[List[str]] :rtype: bool """ m = len(board) n = len(board[0]) if m != 9 or n != 9: return False def checkValid(valueList): temp = collections....
UTF-8
Python
false
false
1,311
py
161
solution.py
119
0.41495
0.40656
0
47
26.914894
62
fatancy2580/MDL-CPI
10,376,641,007,197
cee96c3609472adb282c86542b940beb46f7c369
de894d7f60b0394fbc766d096c5cbbf9f2fef09b
/MDL-CPI/MDL-CPI.py
deb0dd8e33f503251651e15fee99cf6a53352b98
[ "MIT" ]
permissive
https://github.com/fatancy2580/MDL-CPI
c6fa4a02b9d31d08b7eb40e694048d7a933f74b1
9e264b1aa076c322a4c575b857a62c8155ca8d00
refs/heads/main
2023-05-03T20:50:13.400443
2021-05-21T14:02:53
2021-05-21T14:02:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle import timeit import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, TensorDataset from sklearn.metrics import roc_auc_score, precision_score, recall_score, precision_recall_curve, auc, roc_curv...
UTF-8
Python
false
false
20,215
py
4
MDL-CPI.py
3
0.568273
0.559754
0
558
34.184588
121
khucnam/Efflux_TransVAE
16,595,753,660,191
8e56915b1a9707b63871f066cc1113d636886374
acf6e80380499e82ecc657244c03d3c187194969
/tests/models/test_transformer_vae.py
b7ad571e0d667de31dc601dbccb341afcb7db9a1
[ "MIT" ]
permissive
https://github.com/khucnam/Efflux_TransVAE
4ea661b385d62b90fc00a8676b1d78109bd37799
7da1cc614f016d5520648f4853e34e2362181aa7
refs/heads/master
2023-04-07T07:56:20.289235
2021-04-15T23:49:40
2021-04-15T23:49:40
355,948,455
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import torch from torch import optim from tvae.models import TransformerVAE class TestTransformerVAEMethods(unittest.TestCase): def setUp(self): self.max_seq_len = 100 self.max_vocab_size = 100 self.latent_size = 100 self.model = TransformerVAE(self.max_seq_len, s...
UTF-8
Python
false
false
3,025
py
23
test_transformer_vae.py
10
0.630083
0.603967
0
79
37.291139
104
moleculea/autoscale_sample
13,692,355,780,835
4b3f9379b0cbe663486f687e33875aabc94c48fc
d89240711278be6228c4241e2b363aabd3f9b556
/autoscale_sample.py
ad3a2ca6dd630034fa1f1d31f779a5b84b41aeb4
[]
no_license
https://github.com/moleculea/autoscale_sample
d94cdef8b8764cb89e9b38ac2e7f5170e70f5ec8
b3a242cad7ee516ff0ce64dd3fbdf91facfa04d6
refs/heads/master
2020-06-02T08:31:06.960974
2013-10-26T03:20:38
2013-10-26T03:20:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import boto.ec2 from boto.ec2.autoscale import (AutoScalingGroup, LaunchConfiguration, ScalingPolicy) from boto.ec2.cloudwatch import MetricAlarm # Create connections to Auto Scaling and CloudWatch as_conn = boto.ec2.autoscale.connect_to_region("us-east-1") cw_conn = boto.ec2.cloudwatc...
UTF-8
Python
false
false
2,714
py
1
autoscale_sample.py
1
0.67465
0.659912
0
77
34.246753
76
sirdesmond09/mypython-
12,799,002,581,269
784dd3f75fb6ebea2b29acd8db337b521b028998
4e7c27ebca4627d8961ba842152de1130c7952b6
/list.py
347291cf048f171f2f8ab200d84d3cd3e07fd020
[]
no_license
https://github.com/sirdesmond09/mypython-
db0f6de93142ce7fc052047fe8de8d7915749f96
adf77c84a13c1ecb5e35256a0ac09bfa3effe585
refs/heads/master
2020-12-26T06:04:07.013448
2020-01-31T10:49:50
2020-01-31T10:49:50
237,410,827
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
list=['physics', 'chemistry', 1997, 2000]; print("value at index 2:") print (list[2]) list[2]= 2001 #changing the value of list 2 print("new value at index 2:") print (list[2]) print(len(list))
UTF-8
Python
false
false
194
py
19
list.py
18
0.675258
0.582474
0
7
26.714286
43
mndimitrov92/ds-and-design-patterns
1,176,821,039,933
95b13e9e6da58560d1249a04fb63b7117d99de7f
7b6313100e6da726f47119d4e83958cc259f91b4
/Structural_patterns/flyweight_dp.py
b8d059c373acc7d7b85d4748b8f2ea9516b0ae49
[]
no_license
https://github.com/mndimitrov92/ds-and-design-patterns
bb1a1ec626a39c770a6eb660c4af312f9aefc4b5
7a584c8fc5318393e724db9150edf587262fdd0e
refs/heads/master
2023-08-25T18:34:09.194724
2021-10-27T07:36:11
2021-10-27T07:36:11
266,281,514
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Flyweight design pattern INTENT: Flyweight is a structural design pattern that lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects instead of keeping all of the data in each object. Generally it is a space optimization technique that lets...
UTF-8
Python
false
false
7,201
py
44
flyweight_dp.py
43
0.63975
0.635997
0
211
33.104265
149
luozixu/ATM
14,800,457,331,642
8ebd0259aca1097b1e9f6139eefa6d234e2e76a3
71831a12819c944a3145d9ad9edfcd0de47ba950
/atm/bin/manae.py
2362fe38e34951c1890cff3c5c0c29eaee9026a4
[]
no_license
https://github.com/luozixu/ATM
9c09c1fac7b93d56e1b3e2e89b1d1d2421ce4f40
4f105c859e991c3ac812cf01b5e59eb442e30641
refs/heads/master
2020-08-06T20:16:41.945303
2019-10-06T09:18:32
2019-10-06T09:18:32
213,139,463
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #找到路径 sys.path.append(BASE_DIR) #添加路径 from core import main '''管理程序的执行文件''' if __name__ == "__main__": main.run_manage()
UTF-8
Python
false
false
266
py
11
manae.py
11
0.625
0.625
0
10
22.2
77
ayushchauhan09/My-Codes
1,786,706,397,621
791daadf0e1caf04b639709fe37330317b051fbb
ba790632a5f5577eb05f4548e9d749c958a98426
/Codes/Python/Decrement-OR-Increment.py
5194f50e382bd894e6106f0381d9955b467824f7
[ "MIT" ]
permissive
https://github.com/ayushchauhan09/My-Codes
f30489221e66132f2eb3bad9dc0ee3e0bd81081c
ce2fcd5826c25039555998c149657426bc2f1735
refs/heads/main
2023-04-15T17:17:27.685017
2021-04-20T05:33:25
2021-04-20T05:33:25
334,468,830
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
N = int(input()) if N%4==0: print(N+1) else: print(N-1)
UTF-8
Python
false
false
67
py
42
Decrement-OR-Increment.py
41
0.477612
0.41791
0
5
11.8
16
ChiragJRana/Competitivecodingsolutions
18,760,417,152,407
0c1e0e7fdea4a6879a373399e228a81404b3bdab
07ed3e249802ed7d43c25b5d2c911f66b7d27760
/LEADGAME.py
d47c33ab76d6b72f47b90be67fac24d8cc08d80e
[]
no_license
https://github.com/ChiragJRana/Competitivecodingsolutions
c4f7b20f146670d6c0ca12c9866ab562bf2d66d6
b9af33869669d3cd183f181f73a317efaedf8309
refs/heads/master
2022-12-05T02:13:43.335580
2020-08-22T08:19:27
2020-08-22T08:19:27
280,814,203
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import stdin, stdout def main(): N = int(input()) l1 = [0] l2 = [0] winner = max_val = 0 litofvalues = [tuple(map(int,stdin.readline().split())) for _ in range(N)] for i in range(N): l1.append(l1[-1] + litofvalues[i][0]) l2.append(l2[-1] + litofvalues[i][1]) if...
UTF-8
Python
false
false
505
py
42
LEADGAME.py
42
0.489109
0.435644
0
18
27.111111
78
adichouhan14/python-assignment
5,334,349,423,749
ded2c42db8777ef5a50f8f7c545bcd9d20bdc7cd
441c8de92e7deaf48dcf81a8ee7f6c71ca93dfa5
/py assignments/module 3/validation_negative.py
a19c85fe61b91d9d9417d93bab430b663591d7c0
[]
no_license
https://github.com/adichouhan14/python-assignment
591f6a9cfb1b187181213a6eed7df22794a75529
36d096020530be8689a79f4c60e004608af5d61e
refs/heads/master
2020-12-15T06:37:18.113221
2020-01-28T13:40:47
2020-01-28T13:40:47
235,022,599
0
1
null
false
2020-09-30T19:22:28
2020-01-20T05:03:34
2020-01-28T13:40:50
2020-01-28T13:40:48
20
0
1
1
Python
false
false
wholeSaleValue=0.0 while(True): wholeSale=float(input("Enter the Wholesale Price")) if wholeSale<0: continue else: wholeSaleValue+=wholeSale ch=input("press Y to continue and N to exit") if(ch=='n' or ch=='N'): break print("Retail Price = ",wholeSaleValue*0.5)
UTF-8
Python
false
false
316
py
59
validation_negative.py
52
0.610759
0.594937
0
11
26.727273
55
ISEAGE-ISU/cdc-signup
1,108,101,594,160
cf7f0b67cc9bba1367d4e5059c7d7459fafc2a85
f5beb08c228140c590baadfbbdb84a205a56d93a
/base/migrations/0018_globalsettings_certificate_template.py
8c661ae1a7b7c9a9e1194cf64b042d8abf005fc3
[]
no_license
https://github.com/ISEAGE-ISU/cdc-signup
35754a192acadad05e7fa132a4e5deec019f2054
83a8d3ee4df0d297728ec313312e6a06ef66c662
refs/heads/master
2020-05-21T03:23:57.417514
2019-09-13T20:59:02
2019-09-13T20:59:02
23,407,657
0
4
null
false
2014-09-16T21:45:16
2014-08-27T22:29:55
2014-09-06T06:40:12
2014-09-16T21:45:16
1,072
0
0
0
CSS
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('base', '0017_archivedemail_sender'), ] operations = [ migrations.AddField( model_name='globalsettings', name='certificate_template', ...
UTF-8
Python
false
false
405
py
61
0018_globalsettings_certificate_template.py
40
0.582716
0.57037
0
19
20.315789
73
Susannnn/Stock-Price-Prediction
15,994,458,232,130
44ee0678a3f94724e6b669b047979a6afb6827ae
6d52f2044ddbeed2223712d5b233b626784ff605
/MLP.py
55550d8a5906a53d5d4e0e2e723f70ad648b544c
[]
no_license
https://github.com/Susannnn/Stock-Price-Prediction
ddf691d01a3a08e06687b653926f5746c57c8917
289e07bb3ba4c2cc1ffc6093647194c7b81a42b3
refs/heads/master
2021-03-13T12:32:13.297082
2020-03-11T21:18:27
2020-03-11T21:18:27
246,681,752
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 4 21:03:15 2020 @author: huangjinghua """ import math from keras.models import Sequential from keras.layers import Dense from sklearn.metrics import r2_score import pandas as pd from sklearn.preprocessing import MinMaxScaler import numpy as np df ...
UTF-8
Python
false
false
1,870
py
3
MLP.py
3
0.696257
0.673262
0
80
22.3625
58
walkersaurus/GhostDice
5,660,766,939,714
8cbd329a0cc11deb2125bbd6e5262c54430c062a
0055682cd7e0e197f8ab71ae089e2abc16864781
/dice_bot.py
0b0b1bea603762df0ab8b97a5edee9ec6b18e33a
[]
no_license
https://github.com/walkersaurus/GhostDice
3030511b8bc26806d6611826f76f7e03fd5f45fb
d81d426296e66c6ef041c1e5201952892070ffb2
refs/heads/master
2020-03-27T08:17:33.656350
2018-08-27T03:19:20
2018-08-27T03:19:20
146,240,808
0
0
null
false
2018-08-29T01:27:37
2018-08-27T03:11:15
2018-08-27T03:19:22
2018-08-29T01:27:32
5
0
0
1
Python
false
null
# https://github.com/Rapptz/discord.py/blob/async/examples/reply.py import discord import drew_dbot import re TOKEN = 'NDc3MzIwODY1OTIzNzI3Mzcz.Dk6k1A.HdpX4joH5qrtLu-O7AgcBwfaQbQ' client = discord.Client() @client.event async def on_message(message): # we do not want the bot to reply to itself if messa...
UTF-8
Python
false
false
1,181
py
3
dice_bot.py
2
0.684166
0.670618
0
39
28.333333
165
GeminiDRSoftware/DRAGONS
18,202,071,420,108
88cc66e32c4e0ec1ffcad9b9395bc08578ac3563
de476f64c81636e8b88cfaeaedfb2854bcc88993
/geminidr/gmos/recipes/qa/recipes_IMAGE.py
e3e28827861879762201b6a8ecc59df5232209cc
[ "BSD-2-Clause" ]
permissive
https://github.com/GeminiDRSoftware/DRAGONS
f07ed39f36a03fd64c5d4e94cc7f0b287bb77719
159439b43029d0fd9136e4d30e10fa963d6f9e7f
refs/heads/master
2023-08-03T08:01:16.407891
2023-07-29T02:07:47
2023-07-31T23:59:13
105,302,305
28
22
NOASSERTION
false
2023-07-06T21:28:08
2017-09-29T18:00:10
2023-04-28T00:29:24
2023-07-06T20:53:12
137,493
24
16
50
HTML
false
false
""" Recipes available to data with tags ['GMOS', 'IMAGE']. Default is "reduce_nostack". """ recipe_tags = {'GMOS', 'IMAGE'} blocked_tags = {'THRUSLIT'} def reduce(p): """ This recipe performs the standardization and corrections needed to convert the raw input science images into a stacked image. QA met...
UTF-8
Python
false
false
4,380
py
688
recipes_IMAGE.py
487
0.677169
0.676712
0
160
26.375
76
Dentosal/StackVM
3,204,045,645,147
df8e68ac9109b2d12aff8823426ad84bf3bc1f96
27b413d86fbbf4e829420fb5bb867aeba1fd55fa
/stackvm/heap.py
0f3659732e588f8c3d2e47bc89f9f7b7349cfc16
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/Dentosal/StackVM
5763259405a578b7a344d833b052e36f9a133bef
655026bb890d52f756d30f340f8b2ad344741175
refs/heads/master
2021-01-01T18:04:32.700239
2017-07-31T21:12:43
2017-07-31T21:12:43
98,236,531
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import bisect class Heap(object): def __init__(self): self.__values = {} self.__sections = [] def get_at(self, address): assert address in self.__values, "Uninitialized memory access" return self.__values[address] def set_at(self, address, value): assert 0 < value ...
UTF-8
Python
false
false
2,666
py
16
heap.py
14
0.560765
0.555139
0
79
32.746835
80
ed-ortizm/L-G-opt
15,083,925,144,626
241425fdd346389044b47bcbb1e48fe05145ae0f
b1bd390e45e4e177b3e37f33d3182150373f9731
/GA/ga.py
43852792c49ce548cb458d6849440749e10a808c
[ "MIT" ]
permissive
https://github.com/ed-ortizm/L-G-opt
5e4bb00672d7b6c8058232c6d1c608274b6668bc
59bd3df1cc8db02dd23a9e8a4780844d456cd928
refs/heads/master
2021-03-21T07:32:22.962611
2020-04-18T00:45:23
2020-04-18T00:45:23
247,275,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import numpy as np from math import sin,pi from scipy.optimize import approx_fprime as p_grad # point gradient of a scalar funtion #3Dploting from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFor...
UTF-8
Python
false
false
6,051
py
2,211
ga.py
7
0.513304
0.480416
0
176
33.380682
87
alaamjadi/SAR
1,451,698,990,840
85f5a49799fa04d60b6c71691968dec1ae226c0d
f7cabb1790f9bfe3e9d17a96c0ea36efe3b1fdd5
/binary_tree.py
92a5dce57cdea9ca893e5c29b16e2e0fe55a22e0
[ "MIT" ]
permissive
https://github.com/alaamjadi/SAR
d637aee018d57463f2dbcb942c07fba179a5609d
63f6e5a734a6e78709cac0d284b966419a904260
refs/heads/master
2022-12-20T18:18:19.801962
2020-09-24T20:15:56
2020-09-24T20:15:56
291,810,699
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import network_utils as nu """ Container for binary tree nodes """ class Node: value = None zero = None one = None dst_root = None end = False node_rules = None def __init__(self, value="^", end=False): self.value = value self.end = end ...
UTF-8
Python
false
false
10,228
py
47
binary_tree.py
9
0.602757
0.594153
0
215
46.572093
220
Breee/rocketchat-pollbot
4,999,341,955,429
ca015e9caef8037d1921d319350dabd68239d6d6
c99727a336231adad80d5891f52235c8cd1b2d3b
/Poll.py
d0d24da90c43b66e5f9d21f908ae4d1e2135bfef
[ "MIT" ]
permissive
https://github.com/Breee/rocketchat-pollbot
4e79a35612180bc072c5777100c103e001bee520
d8c37ea80b2c9649bfc0cc882da4daf3a0b0bffc
refs/heads/master
2020-04-02T00:59:39.659534
2018-10-30T13:43:44
2018-10-30T13:43:44
153,831,952
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" MIT License Copyright (c) 2018 Breee@github Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
UTF-8
Python
false
false
4,684
py
10
Poll.py
8
0.591375
0.58497
0
127
35.88189
110
zbut/verilog_tools
15,590,731,308,093
a56bddfd28fd35161fc513790cf0c967db33f78c
d92432e150e5eb687da5d7ec96e79cb5c6ac790e
/auto_tb.py
044169942638d5c233fe8d1a4bad6476d0072073
[]
no_license
https://github.com/zbut/verilog_tools
6d75f250193b5311d9e49b409685735ab50c3fb9
a984519565a749d9e3a4ad0155679b21ca5c192b
refs/heads/master
2020-04-09T04:31:36.959496
2018-12-02T08:13:42
2018-12-02T08:13:42
160,026,624
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from jinja2 import Environment, PackageLoader from module_parser import ModuleParser import os import logging import random logger = logging.getLogger(__name__) TEMPLATE_PATH = "tb_template.v" class AutoTb(object): NOF_RAND_VALUES = 3000 def __init__(self, file_path): # Parse the verilog file ...
UTF-8
Python
false
false
3,248
py
6
auto_tb.py
5
0.620074
0.617303
0
76
41.710526
100
joshdsy/python
18,545,668,819,699
b12a0f22c2952e88de9e1e2b2dc3db79727f90d6
a67573b4617b37b96ece777e68e7f25f95b501bd
/exercises/03-seven-segment-display.py
cbe4ed2ad51e06fa0e1b95886aede31be66a5a8d
[]
no_license
https://github.com/joshdsy/python
06888afa69de00f5e6e2fb780bf351a1d4ef73a1
98bfaa3461a8404e664475309169859f4e6ada82
refs/heads/master
2017-04-27T12:49:16.396894
2016-08-22T10:22:48
2016-08-22T10:22:48
61,610,076
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python3 # Write a program to convert an list of digits into a 8 segment display read out. # Eg, given [3, 4, 5, 6], output is: # # _ _ _ # _| |_| |_ |_ # _| | _| |_| # Hint: Store the 7-segment representation of each digit in a list of 3 strings # with each string representing one line ...
UTF-8
Python
false
false
1,183
py
11
03-seven-segment-display.py
10
0.431107
0.409129
0
44
25.886364
81
militska/competitors
18,322,330,487,284
c30aa83e39a295cb537b47af8c556e9402bc9960
a10641cf61c7efbea2d57c206972562fd8b035ed
/modules/weather/Weather.py
b8a38be1405e7756beb964918c8f5cd6bc729d7c
[]
no_license
https://github.com/militska/competitors
2371f5da597923ef3a5477ac7ee5610c084222ab
da06865abeb14bc9b7e665158b8999119cffa476
refs/heads/master
2021-06-29T18:37:44.929268
2020-09-18T16:36:53
2020-09-18T16:36:53
150,991,809
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint # методы пустышки, нужны для демонстрации пркоси и фасада class Weather: speed_wind = 0 def __init__(self): self.speed_wind = randint(0, 40) def get_speed_wind(self): return self.speed_wind def get_random_wind(self): pass def get_name_current...
UTF-8
Python
false
false
490
py
12
Weather.py
10
0.611738
0.602709
0
25
16.72
57
foremostxiao/d
3,951,369,914,749
7225606f0e6d685ceb8982d7d845a5be1d3358ce
a38670ee08ea64af33477899a68ee22936f70ce7
/luffy/第三模块/第6章网络编程/第6章每小节/5 文件传输/上传功能/客户端.py
0290beac3dbab3f37e047bb3d8ee22b63b144b15
[]
no_license
https://github.com/foremostxiao/d
40ed37215f411e8b081a4cb92c8ecbd335cd9d76
fe80672adc6b2406365b05d5cedd02c6abf66c11
refs/heads/master
2020-03-29T13:51:19.589004
2018-09-23T09:29:56
2018-09-23T09:29:56
149,985,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import struct import json import os,sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) from db import settings def run(): phone=socket.socket(socket.AF_INET,socket.SOCK_STREAM) phone.connect(('127.0.0.1',9900)) while True: # 1、发命令 ...
UTF-8
Python
false
false
1,248
py
165
客户端.py
142
0.558081
0.545455
0
38
30.289474
93
libmonsoon-dev/instabot
5,798,205,872,973
ac778c855177d3065447e24c396ce35f5e3dca8b
29e11923c0d8b264190ead20a41a85dad6df0c59
/src/modules/types.py
65ba3bd85d59510c24fac1cf4e069c089fcc5854
[]
no_license
https://github.com/libmonsoon-dev/instabot
3c0ff47dcec604ce89017d19d4de7f6fe58dc40f
0c89ddf40d1b5250104477f933daf1431011675b
refs/heads/master
2020-04-23T08:32:44.305114
2019-02-17T21:16:19
2019-02-17T21:16:19
171,040,709
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import * Mode = Union['unfollow'] HttpMethod = Union['POST', 'GET', 'PUT', 'DELETE']
UTF-8
Python
false
false
99
py
9
types.py
6
0.646465
0.646465
0
5
18.8
50
pkk0/Take-a-break-MacOS
11,982,958,783,339
66f521c313ffe004e33ac5281be76da7265f62aa
231c28f519e4d7eb72fc03cf5e3f76bbd8bdcd36
/application.py
2f8d5df38aa161d9007cd80eb6316a542ac3b697
[]
no_license
https://github.com/pkk0/Take-a-break-MacOS
0d8fda3dc7d8e14f3609e8c52e29f1d3b651bdad
3bc282100e4c3fb918e4afcc947a23eb1f2e0cfb
refs/heads/main
2023-06-03T08:29:08.994089
2021-06-23T11:40:31
2021-06-23T11:40:31
376,577,045
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import rumps from datetime import datetime, timedelta from enum import Enum from configparser import ConfigParser import global_memory from system_wakes_daemon import SystemWakesDaemon # Consts APP_NAME = 'Take a break' CONFIG_FILE = 'config.INI' BREAK_NOTIFICATION_MESSAGE = 'It\'s time for a little break!' CMD_TIME_F...
UTF-8
Python
false
false
2,459
py
7
application.py
4
0.617587
0.61227
0
88
26.784091
100
ApolloNegar/SimpleNotebook
360,777,277,006
44fa5f17e2207b4699daa1024bd16734fcb9d6af
f99ee7ad84f39547dfbf0fa6e3c28f8587b05c2c
/notes/views.py
5afd8ba85c286bbd506303fb7dc1e30c1788b7e0
[]
no_license
https://github.com/ApolloNegar/SimpleNotebook
b4146db89711957014a975565a96ddb73aa72423
65938ebf3fa05e556cc2b3f1703e52fdbcd66698
refs/heads/master
2022-12-01T03:38:20.576478
2020-01-31T18:10:04
2020-01-31T18:10:04
208,629,762
0
0
null
false
2022-11-22T04:33:26
2019-09-15T17:23:14
2020-01-31T18:11:20
2022-11-22T04:33:26
49
0
0
3
Python
false
false
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import HttpRequest, Http404 from django.shortcuts import render, redirect, get_object_or_404 from django.db import models from django.utils import timezone from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin fro...
UTF-8
Python
false
false
3,743
py
21
views.py
12
0.622762
0.615282
0
144
24.993056
107
dicaso/lostdata
16,372,415,376,591
d2901152c8e4ca15557ec13d4798d889a5024763
ae1f6d736c1560f35076c127474918554226e34b
/lostdata/config.py
a3a4a5dc31bb976b9eb97f6528cb1199ce7c9985
[]
no_license
https://github.com/dicaso/lostdata
6787a74ae1c74c24f8cdad602cfeede2cc81e36c
ff3e8f5d24ce01424fd7c03033e422954d3c7e44
refs/heads/master
2021-06-22T08:27:05.657960
2020-12-16T13:02:19
2020-12-16T13:02:19
142,540,758
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """LSD configuration This module organizes the configuration for the lostdata package Todo: * Give example symlinking privatedir ln -s ~/Dropbiz/Lab/z_archive/Datasets ~/LSData/private """ import configparser, os, appdirs configdir = appdirs.AppDirs('lostdata').user_config_dir appdatadir...
UTF-8
Python
false
false
1,893
py
25
config.py
24
0.692552
0.691495
0
61
30.032787
96
kbm1422/husky
13,838,384,665,732
a6f93aba5ed7234f3aaf087175e9c56812f1d03d
436824f1eb892e8011d4bbc497963a7d9b9dbd7d
/.svn/pristine/9e/9e660d6a69c69220d298372ea8b722ee5f802cf3.svn-base
209b79333947c8b2953901d807281eabe004440a
[]
no_license
https://github.com/kbm1422/husky
93e1d5d135245c97066d988432fa347f591b005f
82493f34a14de0724697c3d9484de89cae2776f0
refs/heads/master
2020-05-17T15:49:59.541073
2015-04-13T09:12:19
2015-04-13T09:12:19
33,658,291
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__) import errno import random import socket def get_tcpport_not_in_use(a=40000, b=65535): logger.info("random a tcpport not in use, range from %d to %d", a, b) while True: sock = socket.socket() port ...
UTF-8
Python
false
false
725
213
9e660d6a69c69220d298372ea8b722ee5f802cf3.svn-base
163
0.529655
0.508966
0
30
23.2
81
RoxanaTesileanu/Py_for_kids
13,967,233,664,653
95e025f9c688a41e505e037bd4c7e188b82e8655
90edbc51ed95545b83377fa95f1dccc68a917896
/py_for_kids_ch5.py
14ab78431c12f2e6fd805292d435ceb8a1263924
[]
no_license
https://github.com/RoxanaTesileanu/Py_for_kids
f6c5c003a2a424d3a52a8721d4bfd6f6df2ca7e1
fce3704d73501554de99425b91e1a906dbaae91e
refs/heads/master
2021-01-12T15:44:08.676521
2016-10-28T10:07:49
2016-10-28T10:07:49
71,873,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "copyright", "credits" or "license()" for more information. >>> # questions = conditions >>> # we combine these conditions and the responses into if statements >>> >>> age= 13 >>> if age> 20 : print ('You\'r too old') >>> age=23 >>...
UTF-8
Python
false
false
5,038
py
19
py_for_kids_ch5.py
18
0.626836
0.583565
0
239
20.075314
70
ytree-project/ytree
15,367,393,005,077
782c0af1038d8b8927edbe30d369f005e305dca2
4c0e66f73a2a798e07fbb1aadddf49b20cc7a578
/ytree/analysis/analysis_pipeline.py
7fd38eb43c181c72e269e620b446fd35c27af51f
[ "BSD-3-Clause" ]
permissive
https://github.com/ytree-project/ytree
df39beae6e5e83ab6ffc122ddcb2c582d6189161
57d379f85048372d75fb197166289efd67a2e829
refs/heads/main
2023-05-27T17:36:01.765797
2023-05-23T08:56:27
2023-05-23T08:56:27
98,564,214
6
6
NOASSERTION
false
2023-05-23T08:56:29
2017-07-27T17:37:08
2023-05-20T08:07:08
2023-05-23T08:56:28
3,275
15
9
9
Python
false
false
""" AnalysisPipeline class and member functions """ import os from yt.utilities.parallel_tools.parallel_analysis_interface import parallel_root_only from ytree.analysis.analysis_operators import AnalysisOperation from ytree.utilities.io import ensure_dir class AnalysisPipeline: """ Initialize an Analysis...
UTF-8
Python
false
false
6,123
py
118
analysis_pipeline.py
90
0.607709
0.606402
0
178
33.398876
86
hbc/li_hiv_call3
549,755,858,408
cde6c14a8bfd8299ccbf7619dbee177fbcdc7c44
9b45e8b8536a0ec1b6455c12bf6db8574687294a
/scripts/call_v3_loop.py
77cfa2ae87215a402eee14273dfaea04a1a2a25f
[]
no_license
https://github.com/hbc/li_hiv_call3
14ac3700d426d840e1f44410fd613562a6759e27
9847d0a13f4facb885d5d713b6c36163bb39e0d1
refs/heads/master
2020-12-24T02:36:24.596873
2016-07-18T00:42:18
2016-07-18T00:42:18
29,584,225
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """Collapse reads on V3 loop and organize for calling. """ import os import subprocess import sys import yaml def main(config_file, bam_file): with open(config_file) as in_handle: config = yaml.safe_load(in_handle) #v3_region = _read_regions_file(config["regions"]) v3_region ...
UTF-8
Python
false
false
4,655
py
19
call_v3_loop.py
14
0.593985
0.576369
0
108
42.111111
112
linfengzhou/LeetCode
12,481,175,006,060
dd6b491dbd416493a6c275bcd82cdbf42677317d
aeeaf40350a652d96a392010071df8a486c6e79f
/archive/python/Python/binary_tree/98.validate-binary-search-tree.py
ad8ead0f576bbd1e3344c4b6e42581c2091ba978
[ "MIT" ]
permissive
https://github.com/linfengzhou/LeetCode
11e6c12ce43cf0053d86437b369a2337e6009be3
cb2ed3524431aea2b204fe66797f9850bbe506a9
refs/heads/master
2021-01-23T19:34:37.016755
2018-04-30T20:44:40
2018-04-30T20:44:40
53,916,868
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None import sys class Solution(object): def isValidBST(self, root): """ :type root: TreeNode :rtype: bool """ ...
UTF-8
Python
false
false
869
py
230
98.validate-binary-search-tree.py
214
0.55351
0.551208
0
32
26.15625
74
pcieslinski/log_parser
16,209,206,580,278
2906dbf9c9d3aede86344c746882e80250f529f4
d5cf8601eee96e0570795324d4cf257f9c27ec97
/log_parser/renderers/__init__.py
cbcfd2fca67e049ff9069911901fa963f1f73b71
[]
no_license
https://github.com/pcieslinski/log_parser
13f20ea2a75455a026c372cb60c365abac50fb20
b2acfa249ccc0ece492b282d3d144ead9c33f01d
refs/heads/master
2021-07-06T22:03:26.114935
2020-08-30T13:36:12
2020-08-30T13:36:12
236,012,442
1
0
null
false
2021-04-20T19:14:07
2020-01-24T13:58:12
2020-08-30T13:36:21
2021-04-20T19:14:06
1,649
0
0
1
Python
false
false
from log_parser.renderers.error_renderer import ErrorRenderer from log_parser.renderers.stats_output_renderer import StatsOutputRenderer __all__ = [ "ErrorRenderer", "StatsOutputRenderer" ]
UTF-8
Python
false
false
200
py
40
__init__.py
36
0.775
0.775
0
8
24
74
Nisarg-S/coop-fall-2020-challenge
5,205,500,399,607
2128f66bb678468d7efe57c0790327840005e8ba
e7801b1355615d7c11dd7a200db39532e6558c96
/solution_python.py
2c20c9874708dc88d23042b61899caa2e17d18e7
[]
no_license
https://github.com/Nisarg-S/coop-fall-2020-challenge
88cc20d7ec39bfb5eea98a1d50b01bc2556a1c99
f3e86b3e977d6455fc78e0920e86a440f3a3fa63
refs/heads/master
2022-11-14T00:20:34.085412
2020-07-10T18:04:44
2020-07-10T18:04:44
278,688,492
0
0
null
true
2020-07-10T17:00:19
2020-07-10T17:00:18
2020-07-10T17:00:04
2020-07-10T14:48:49
87
0
0
0
null
false
false
class EventSourcer(): # Do not change the signature of any functions def __init__(self): self.value = 0 # holds value of num at a moment in time i.e action1, action2 etc.. self.history = [] # holds the differential values (i.e current value - previous value) for the redo queue (...
UTF-8
Python
false
false
2,100
py
1
solution_python.py
1
0.57381
0.569524
0
57
35.842105
123
0xb01u/AoC2019
18,433,999,657,471
39541fcc8ceede25b8763f3496b410ca0f6ab017
8dd651be2fb0cafe923597c05a20d7abb75c3326
/Day_13/one.py
6f105c6c608c4a99dbc3d1974c5699b5da8f7897
[]
no_license
https://github.com/0xb01u/AoC2019
0afaf556134f3c2eb8b637c74d3287359ceab17d
16ca3587365a87d701f0d36ffc7b845d76cfbbcc
refs/heads/master
2022-03-14T18:53:41.614234
2019-12-23T17:37:50
2019-12-23T17:37:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Advent of Code 2019 - Day 13 # Care package import sys sys.path.append("../python_modules/custom") from intcomputer import Intcomputer arcade = Intcomputer(list(map(int, open("game.txt", "r").read().split(",")))) tiles = { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0} arcade.run() for e in arcade.output()...
UTF-8
Python
false
false
386
py
44
one.py
39
0.629534
0.57513
0
17
21.705882
77
fpoli/view-spark-timeline
17,884,243,826,241
9157cfb59e0b6d6a90f6aa8fbd8bf838b430a594
be431a3e9d7aacd5815ee646070beb130aed1bca
/setup.py
7778ae64983373070ced97a81a5e60784691063f
[ "MIT" ]
permissive
https://github.com/fpoli/view-spark-timeline
056afd00ff06dda2b57f4131c07d2abc26af386d
3c5d445404f97d1f805a93425c3b798011fcdb6f
refs/heads/master
2022-07-14T11:53:22.652001
2020-03-20T13:58:18
2020-03-20T13:58:18
111,108,894
5
0
MIT
false
2022-07-05T21:06:33
2017-11-17T13:52:52
2020-11-09T11:47:41
2022-07-05T21:06:33
2,188
4
0
3
Python
false
false
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) description = "Command line application to visualize the timeline of Spark executions." main_ns = {} with open("viewsparktimeline/version.py") as ver_file: ...
UTF-8
Python
false
false
1,399
py
11
setup.py
6
0.578985
0.563259
0
57
23.54386
87
bopopescu/Machine_Learning_Collections
2,585,570,339,806
c666a796290d1195d4d1a1018a0247a2a62397b5
87086df54494cdd42a686413639892ebf4978a3e
/Kaggle_Challenges/genentech_2016 Cervical Cancer Screening/genentech-py-lucas/base_util.py
e878410c622235ecd6250835286d635dbbc5de36
[]
no_license
https://github.com/bopopescu/Machine_Learning_Collections
acbe70d55a2551f98d7a86132608d432c957c369
e77d81754e77c7acdfec86ec395892400657482e
refs/heads/master
2022-04-11T01:39:09.848778
2019-09-15T15:23:31
2019-09-15T15:23:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime import logging import sys import pickle import gzip import os import psycopg2 import pandas as pd import numpy as np import xgboost as xgb from sklearn import preprocessing from multiprocessing import cpu_count import sklearn.metrics as metrics import collections import glob NA_VAL = -10...
UTF-8
Python
false
false
40,821
py
284
base_util.py
195
0.571765
0.554445
0
1,047
37.988539
120
Ongakute/PT-2021-komunikator
7,679,401,555,938
60bdf2cd0c6abdd3e5a03740bcc5197aebc1bed1
be788f8dc5750b571d7db21ec2ebb3fa4c3dd5f7
/Client/response.py
22bacc4a9ee3722bb1d129c3cc2ee590327013c7
[]
no_license
https://github.com/Ongakute/PT-2021-komunikator
44c7bbd8ca492b9698ca011b1ac19f588d822712
c0fc74f5afa8d6f0f0b61be5658db7c05b9c932e
refs/heads/main
2023-08-07T11:09:42.138336
2021-09-26T11:31:24
2021-09-26T11:31:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import time from threading import Thread, Lock import gi import gui_callbacks import global_functions gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Pango, Gdk from gi.repository.GdkPixbuf import Pixbuf from split_msg import main_split class Response: def __init__(self): self.l...
UTF-8
Python
false
false
6,470
py
22
response.py
15
0.479827
0.470706
0
199
31.472362
119
montionugera/IntroductionToDataScience
5,815,385,751,683
884c969e84e8bde4742f40000871d49d646fc88a
88f330d068b16b964c31256088bbf35827ee5851
/DW-DataExtraction/L4/find_cities.py
00a06f5035a19f1ef5d528f13b7474784025051a
[]
no_license
https://github.com/montionugera/IntroductionToDataScience
b4408a4ec584b2debaaeceaeae9313bad26c7272
cba60c4e6ba1bc56f0100c4c872f9c2668b8cfc0
refs/heads/master
2021-01-18T22:58:13.648089
2016-04-20T16:47:12
2016-04-20T16:47:12
41,616,909
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ Your task is to write a query that will return all cities that are founded in 21st century. Please modify only 'range_query' function, as only that will be taken into account. Your code will be run against a MongoDB instance that we have provided. If you want to run this code locally on your ...
UTF-8
Python
false
false
1,849
py
175
find_cities.py
20
0.666847
0.620335
0
60
29.816667
83
girder/girder_worker
7,593,502,212,909
cc6bf6de475816430d3a38d9128de3b8b41129c2
8064af9cb8120b5ebdfcdcbb10547695e3c646d2
/tests/test_utils.py
e920ce361c0e73db9fecb668dd7649101142da38
[ "Apache-2.0" ]
permissive
https://github.com/girder/girder_worker
5f7391c2ea41d953e9b7e380fdb74a0a38c21e2f
19b4fc3360a0c9d92fbd0ecd1bfab693f8c75ae7
refs/heads/master
2022-11-20T10:41:26.072154
2022-11-17T13:27:31
2022-11-17T13:27:31
50,359,589
39
30
Apache-2.0
false
2022-11-17T13:27:33
2016-01-25T15:24:13
2022-07-26T14:59:58
2022-11-17T13:27:32
3,024
33
25
73
Python
false
false
import sys from girder_worker.utils import TeeStdOutCustomWrite def test_TeeStdOutCustomWrite(capfd): nonlocal_ = {'data': ''} def _append_to_data(message, **kwargs): nonlocal_['data'] += message with TeeStdOutCustomWrite(_append_to_data): sys.stdout.write('Test String') sys.stdo...
UTF-8
Python
false
false
445
py
119
test_utils.py
73
0.649438
0.649438
0
18
23.722222
52
vincentiusmartin/chip2probe
11,519,102,336,319
7a42016287f66fc18f2ffcd2578f2e6e44d697dd
f0076189d3e76cc4dc23f772147bc49282c7987f
/chip2probe/sitespredict/sequence_old.py
42bdf81b4ec2fc4eaeaff15129fa474efb8b9a95
[]
permissive
https://github.com/vincentiusmartin/chip2probe
fd3b6eeaeea69dc2730dac097a0692de8d2a20e0
6271b7ede0cacc8fea2b93798b46efb867971478
refs/heads/master
2022-05-01T23:33:18.812833
2022-03-30T21:33:57
2022-03-30T21:33:57
200,905,486
1
1
MIT
false
2020-06-22T22:53:30
2019-08-06T18:38:49
2020-06-22T01:05:13
2020-06-22T22:53:30
27,191
1
1
0
Python
false
false
""" This file contains BindingSite class and Sequence class. Created on Jul 25, 2019 Authors: Vincentius Martin, Farica ZHuang """ import collections import copy class BindingSite(object): """Class for BindingSite object.""" def __init__(self, site_pos, site_start, site_end, core_start, core_end, core_mid,...
UTF-8
Python
false
false
22,421
py
235
sequence_old.py
178
0.529236
0.521877
0
487
45.039014
122
hrishiwaikar/BE-Computer-Lab-3
6,098,853,576,603
3b10b382b622fc199acc6c88ceb28aab0a105df1
e987a05008eaf26042c6b745aafa6bac8e1b0b5d
/Concurrent Quicksort/quicksort_parallel.py
6ab7cb5d9f7b71def9982e7ba76bce52b998a9be
[]
no_license
https://github.com/hrishiwaikar/BE-Computer-Lab-3
49dad44bb48609b287b209f4fbfe6908f66bb382
0d222ded11216945e358a3f6279413b06a805217
refs/heads/master
2021-06-15T15:05:40.883563
2017-04-21T18:05:18
2017-04-21T18:05:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import threading import random def quicksort(arr,left,right): #print 'Thread '+str(threading.current_thread())+'is sorting '+str(arr[left:right]) #print str(left)+' to '+str(right) time.sleep(0.3) #print time.ctime() #print arr thread_left=None thread_right=None if left<...
UTF-8
Python
false
false
1,547
py
24
quicksort_parallel.py
18
0.56755
0.553975
0
79
18.582278
87
NegatioN/ssd_keras
13,073,880,499,979
24a802dce6032968b9260c956e939924f86e2709
2adb1a47984ba6d1a3fe1458ebf74cac84dc04f3
/ssd_utils.py
234e872d2e32bf7649f696151e3a2c6cfa4be612
[ "MIT" ]
permissive
https://github.com/NegatioN/ssd_keras
792cea019e7ab38d1d85061343a91d949fd52e59
45e7d76ccad463e5630af1cf18f9e964519575de
refs/heads/master
2021-01-20T14:02:06.755091
2017-08-03T23:19:42
2017-08-03T23:19:42
90,547,120
1
1
null
true
2017-05-07T16:43:28
2017-05-07T16:43:28
2017-05-07T14:05:50
2017-03-26T15:14:09
3,270
0
0
0
null
null
null
"""Some utils for SSD.""" import numpy as np import tensorflow as tf from random import shuffle from scipy.misc import imread from scipy.misc import imresize from keras.applications.imagenet_utils import preprocess_input import os from keras.preprocessing import image from keras.optimizers import Adam def img_to_arr...
UTF-8
Python
false
false
23,024
py
9
ssd_utils.py
6
0.528101
0.514246
0
548
41.016423
124
kidino/mydev
7,911,329,769,020
0b538229347bded92c7b6639504550d69c8dbb0e
5133beb9ccf2bc3e968b7f30d8b98a83ef9d02a6
/site/pelicanconf.py
9c1983101f97085c8ca9b2a7ed089f6a4f4a6e50
[]
no_license
https://github.com/kidino/mydev
5e6369f8e01118fcb937c430e4ee1f5d5ebd5213
adf6ad3dd337d507e1122d586e67fbd57d424924
refs/heads/master
2020-11-30T13:02:22.253231
2013-07-14T22:17:41
2013-07-14T22:17:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import os HERE = os.path.abspath(os.path.dirname(__file__)) PATH = os.path.join(HERE, 'content') AUTHOR = u'team@mydev.my' SITENAME = u'Laman Kolaboratif MyDev' SITEURL = 'http://www.mydev.my' RELATIVE_URLS = False TIMEZONE = 'Asia/Kuala_Lumpur' DEFAULT_LANG = u'en' #...
UTF-8
Python
false
false
791
py
3
pelicanconf.py
2
0.621997
0.618205
0
28
27.25
68