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
DheerendraRathor/idc
8,924,942,070,082
1fe1349c965e7556462473fb6f1ea1dc34f94a0b
d09f5de466fcb1cc395fee879598f4e86c855804
/idc/blog/forms.py
b9b970574487b60125678495385d480d47f7e504
[]
no_license
https://github.com/DheerendraRathor/idc
78f991eb29bac9506294aaa78a6b8010371c38ee
7db026ef0a24eda4a5d93d02d77c08a2d833d309
refs/heads/master
2020-04-14T15:04:18.980568
2016-04-14T15:34:11
2016-04-14T15:34:11
50,912,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms class CommentForm(forms.Form): comment = forms.CharField( widget=forms.Textarea( attrs={ 'rows': 3, } ) )
UTF-8
Python
false
false
196
py
37
forms.py
25
0.489796
0.484694
0
11
16.909091
30
gkhouri/the-technocopia-project
11,269,994,224,079
6c2b0905f36a7bff39bb346a32ac3025050184fa
bf4518f1174daf1b16d7995717d9e8c26af4ffb1
/BowlerFreecad/3DPrint/NeuronRobotics/SERIAL_GUI/myWidget_Ui.py
f9663069c9c825137b10bf2f0aa87fa0234dd462
[]
no_license
https://github.com/gkhouri/the-technocopia-project
531084d4401ef477bfb743cda1ba51060d9e6f12
356cccf13204320db18d320ae5127e162d7df096
refs/heads/master
2021-01-01T16:06:46.343087
2014-01-17T06:43:14
2014-01-17T06:43:14
32,092,044
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import PyQt4 from PyQt4 import QtGui,QtCore import FreeCAD import sys import os class myWidget_Ui(object): def setupUi(self, myWidget): myWidget.setObjectName("my Nice New Widget") myWidget.resize(QtCore.QSize(QtCore.QRect(0,0,327,421).size()).expandedTo(myWidget.minimumSizeHint())) # sets size of the widget ...
UTF-8
Python
false
false
11,659
py
66
myWidget_Ui.py
15
0.683506
0.655974
0
328
34.54878
131
Ledoux/ProfessionalSYS
9,337,258,905,886
4d3b51fb440ab4730e554afb04d5e6e223874546
e73a32283194e334a9d0d7e4abea131b15a25aed
/Install/build/lib/ShareYourSystem/Object/Directer/__init__.py
6c535be31bea45a12fcef6ddfefdf541c9d78e32
[]
no_license
https://github.com/Ledoux/ProfessionalSYS
300c45d524f6eeea98a6b9d77c2b47f49b36663b
2cb9a3efc1dcc38353a239e624737bdbf4edcfa9
refs/heads/master
2017-01-04T12:13:28.294791
2014-12-02T10:17:09
2014-12-02T10:17:09
24,479,051
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#<ImportModules> import os from ShareYourSystem.Functions import Tool from ShareYourSystem.Classors import Classor,Representer from ShareYourSystem.Functers import Argumenter import importlib BaseModule=importlib.import_module("ShareYourSystem.Object.Writer") DecorationModule=importlib.import_module("ShareYourSystem.Cl...
UTF-8
Python
false
false
1,920
py
1,017
__init__.py
660
0.771875
0.771875
0
71
26.042254
91
KangboLu/Data-Structure-and-Algorithms
12,670,153,571,353
34b00f9d51216e8f4109cfbbd1efa00b3f874736
93c1a49b80edea6ccf3f2054d30a7c7a8d0d3909
/Algorithms Techniques/7. Tree/Traversal/traversal.py
01c227b9f321cfcd5b41fa0b84d02f858868e65c
[]
no_license
https://github.com/KangboLu/Data-Structure-and-Algorithms
801cad87f4ccee7b8fa9ba84733b61e5aeba8228
1b8d7d943c6eddad417b831a3b038b950c62ed77
refs/heads/master
2020-03-21T14:28:33.565035
2018-11-12T23:09:19
2018-11-12T23:09:19
138,659,254
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# a binary tree node class Node: def __init__(self, data): self.data = data self.left = None self.right = None # print binary tree in preorder: root, left, right def print_preorder(node): if node == None: # reached leaf node, go back to prev level return print(str(node.data) + " "), # output t...
UTF-8
Python
false
false
1,694
py
84
traversal.py
66
0.64758
0.641677
0
58
28.224138
61
betepok506/Semantic_segmetation_SSD
171,798,720,829
616a89d3fe688db6d8776f42600cb723a1ceb62a
d58073f69a8881d8ee321c13935dce9063b8846d
/Parse_xml_VOC.py
d568455219e0afb559fef980ae3546ee903a9e5d
[]
no_license
https://github.com/betepok506/Semantic_segmetation_SSD
fd6272d2b4ff324a21ebe8313fb9214f1fbff6b8
38a0815f5813a03ad5b5f673509fd4d0d9a6469d
refs/heads/main
2023-02-03T09:05:40.140492
2020-12-18T16:24:25
2020-12-18T16:24:25
322,639,478
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from lxml import etree, objectify import os import shutil import cv2 as cv from PIL import Image import sys path_save='D:\\Kyrs\\ssd_300\\ssd_keras\\dataset' path_folder='D:\Kyrs\ssd_300\ssd_keras\dataset\VOCdevkit' # path_folder_annotation="D:\Kyrs\ssd_300\ssd_keras\dataset\VOCdevkit\VOC2007\Annotations" path_dataset...
UTF-8
Python
false
false
8,360
py
7
Parse_xml_VOC.py
6
0.536215
0.526637
0
214
38.03271
143
otamori/python4linux
6,863,357,748,806
d5fb41d235f10b74853387727dbe45fa42ccf86d
1265be446f94130678be929ed67932ae3c220868
/aula02/ex07.py
677d09348db7a8214056dce7f13d82cc0c05eb67
[]
no_license
https://github.com/otamori/python4linux
d57056ec0ff7c275cfe305b79d4a211899178f03
29cbaeb4e184508ec4296a8df85c6232cb236763
refs/heads/master
2020-08-29T19:53:07.691299
2019-11-09T01:12:29
2019-11-09T01:12:29
218,153,838
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
dicionario = {'nota1':5.5, 'nota2':7.5,'nota3':4.5} soma = 0 for elemento in dicionario.values(): soma=soma+elemento media = soma /len(dicionario) print(media)
UTF-8
Python
false
false
168
py
50
ex07.py
47
0.672619
0.613095
0
10
15.8
51
elthran/UndyingKingdoms
7,533,372,662,310
cc78e8fcdd456bf8537c1c909049b886c553c8ed
6cafa5f61762da403f77495d39376be88e156918
/tests/counties/battle_results_test.py
8d9a180aef49445967839d199c564dbe7187cc05
[]
no_license
https://github.com/elthran/UndyingKingdoms
b3284e1e4dc0c2a86539195e6794fbc9a843e091
d6342f591f59ab4f50e95486d660bfb652fdd821
refs/heads/master
2022-12-12T18:09:43.373727
2019-08-22T22:18:36
2019-08-22T22:18:36
156,049,332
0
1
null
false
2022-12-08T05:02:33
2018-11-04T04:32:07
2019-08-22T22:18:57
2022-12-08T05:02:32
34,560
0
1
59
Python
false
false
from app.metadata.metadata import attack_types from app.models.exports import County from app.models.exports import User def test_battle_results(ctx): user1 = User('user1', 'user1@gmail.com', 'password') user1.save() county = County(1, "County1", "Leader1", user1, "Human", "Sir", "Merchant") county.sa...
UTF-8
Python
false
false
821
py
421
battle_results_test.py
295
0.611449
0.570037
0
30
26.366667
80
romainmartinez/1d-verifications
19,224,273,626,883
60e788dce501cbd11c9b74294495459e7848fa57
ce64b5edfddf1b2a75b3c084735da23ef819da5e
/src/callbacks.py
db0237654f67a70f5190306158064098a036abbb
[ "Apache-2.0" ]
permissive
https://github.com/romainmartinez/1d-verifications
4f1efe07dcb6e79983f7ce1deb1c0143ec21cb08
7fe197bb1635be23ae40b9319e81e6644eb75e83
refs/heads/master
2021-07-12T19:06:38.561264
2020-06-25T19:46:45
2020-06-25T19:46:45
171,506,790
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from pathlib import Path import numpy as np import pandas as pd from dash.dependencies import Input, Output, State import plotly.graph_objs as go from plotly import tools from pyosim import Analogs3dOsim from .server import app, rof @app.callback( output=Output("trials", "data"), inputs=[ ...
UTF-8
Python
false
false
10,377
py
5
callbacks.py
3
0.4748
0.458803
0
327
30.733945
86
zgrzebnickij/BlogApp
12,180,527,267,509
c8f3644ec8061a90d67cea4d6d2c206b0d162f85
8b1c0c45db808c48a567606f8a5f152ac5012e75
/blogApp/config.py
c972a8787abd72ae9421e95d5453a0c707546375
[]
no_license
https://github.com/zgrzebnickij/BlogApp
dc4c297b30ece0c11c55b3d7f6af4077993dc47b
b23b7f74927604125f4147e7c9b652f19e6240d4
refs/heads/master
2020-04-18T05:19:14.083269
2019-01-31T16:38:36
2019-01-31T16:38:36
167,274,645
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os class Config(): #move to enviroment variables SECRET_KEY = '408573b3bb22fb76aa0c5ae611ffe5ab' SQLALCHEMY_DATABASE_URI = "sqlite:///site.db" #SQLALCHEMY_NATIVE_UNICODE = False MAIL_SERVER = "smtp.gmail.com" MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = os.environ.get("EMAIL_USER") MAI...
UTF-8
Python
false
false
757
py
8
config.py
5
0.700132
0.647292
0
28
26.071429
49
zenith-matic/100-exercise-challenge-and-Tornado
1,236,950,590,697
98cd50f219f8a80ee4e7702bd784d37cd0ce911e
91463de538c3ed525046190b7744fa48c3c97168
/100-Exercises-Challenge/exercise_2.10_3rd.py
07ca8b1ddb4bbd408b4ce22f1d8d3157d4aa8894
[]
no_license
https://github.com/zenith-matic/100-exercise-challenge-and-Tornado
289e86c95fe8a2cefaf7c879f070cbc74666438f
3321ae7c352ce17b17e42936a883bcc86d99bd3e
refs/heads/master
2016-09-15T05:21:04.453820
2016-05-20T05:24:58
2016-05-20T05:24:58
42,927,887
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Define a function that can accept two strings as input and print the string with maximum length in console. # If two strings have the same length, then the function should print al l strings line by line. def string_evaluation(s1, s2): if len(s1) > len(s2): print(s1) elif len(s2) > len(s1): ...
UTF-8
Python
false
false
425
py
73
exercise_2.10_3rd.py
72
0.630588
0.607059
0
15
26.466667
109
lj1064201288/Dell_Windowns
18,588,618,474,332
6094d4be1cc3f5e996fe01cf9b89b7930437cb27
588e39382c19b3189cb471fcd258a1d6b56a6d4b
/Liujun_web/Liujun_web/urls.py
dc3f61a144d439b91e02c95ed3ba672296e697da
[]
no_license
https://github.com/lj1064201288/Dell_Windowns
b335b10ebf2c622a22be7a0a2234f233df453bed
98577eba3a167cf9bac9cd8c17daae2a5032ba45
refs/heads/master
2020-04-06T15:24:27.156621
2018-11-14T17:06:49
2018-11-14T17:06:49
157,577,351
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import include, url from django.contrib import admin from index import views as iv from resume import resume_url from outer_net import net_urls urlpatterns = [ # Examples: # url(r'^$', 'Liujun_web.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', ...
UTF-8
Python
false
false
466
py
5
urls.py
5
0.652361
0.652361
0
16
28.125
55
monudjangocon/campus-talks
18,794,776,906,386
8effd2c86f634a439bf32fb0a84eae98c4d38018
af218a3408d44b80eddb1abb8d304005e2b1fd34
/friend/member_profile/forms.py
d6a71b0abcdb3dbba75084adacaee9b20fc818c1
[]
no_license
https://github.com/monudjangocon/campus-talks
33af6a8a8736c8e0801bcb2d8d6bf730d41de2d4
8002aa55b90837274f6e87a9acbdccec99dd321c
refs/heads/master
2021-01-10T06:08:36.026018
2016-03-28T06:46:06
2016-03-28T06:46:06
54,872,289
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from django.contrib.auth.models import User class ChangePasswordForm(forms.MOdelForm): id=forms.CharField(widget=forms.HiddenInput())
UTF-8
Python
false
false
163
py
17
forms.py
7
0.815951
0.815951
0
6
26
47
KingTyler01/cspp10
9,440,338,151,324
8fe85a1e36e12d067e6a32929ae1a1b374bfa2cf
3fefacb52e282994a885bff0ef66d9060f6e3d89
/unit5/TKing_dictionary.py
df3fdde2a75b8af32dd9553ff79c480c8bee13ea
[]
no_license
https://github.com/KingTyler01/cspp10
e6dcd9930c7bd4eae2b70644807af6754e161d9d
009a1b86f4a70807267690682cf47319a21b1fe7
refs/heads/master
2020-05-30T07:12:53.372255
2017-02-17T17:16:14
2017-02-17T17:16:14
69,268,522
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pprint import pprint choice = input("[Add]key-value\n[Remove]key-value\n[Update]key-value\n[Exit]\n:") d = {} def add(choice,d): if choice == "add" or choice == "Add": check = input("What new key would you like to add to the dictionary?: ") if check in d: print("Invalid. Input a new...
UTF-8
Python
false
false
1,103
py
14
TKing_dictionary.py
14
0.546691
0.546691
0
38
28.052632
86
hibayoussef/informationretrieval
15,152,644,642,517
b6bb5670c01a2dfeea8a54a846049b42ab7cd407
35860e726bba5316e1d45a35fcc3bdfd974ed461
/venv/Lib/site-packages/wikklytext/store/wikStore_sqlite.py
3cfaf10f5a03502b5f7342303d9cbdf265824358
[]
no_license
https://github.com/hibayoussef/informationretrieval
131da7cc1a155de25817e6ab753dddc31cdd0b7b
e3faf114bb6747e2cbd0ddaf0de50153ea374d70
refs/heads/master
2023-06-03T23:09:47.908117
2021-06-26T06:52:23
2021-06-26T06:52:23
375,288,511
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" A WikklyStore where items are stored in an SQLite database. Copyright (C) 2007,2008 Frank McIngvale Contact: fmcingvale@gmail.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version ...
UTF-8
Python
false
false
4,647
py
116
wikStore_sqlite.py
77
0.680439
0.676996
0
161
27.850932
80
dannyjacobs/capo
1,881,195,701,579
4dc450dd3af6f360416b7d35f759635c2f88ad4d
2fcd4499bf04aad7c1f768a855e72b71b335deb3
/omni/omni_get_k.py
5631a5d0c8ef062312614f7c07276316d545c545
[]
no_license
https://github.com/dannyjacobs/capo
db9cd7008058ae6a7abe4ffc3da7cb1338f25958
81b12c84fb860629090272e541a12e31e44dc406
refs/heads/master
2017-02-24T14:48:44.135520
2016-12-29T15:57:19
2016-12-29T15:57:19
151,115
5
13
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python import numpy as n import aipy as a import optparse,sys import capo.omni as omni, capo.zsa as zsa, capo.arp as arp import pylab as p, os o = optparse.OptionParser() a.scripting.add_standard_options(o, cal=True) opts,args = o.parse_args(sys.argv[1:]) pol='xx' freqs = n.arange(.1,.2,.1/203) aa = ...
UTF-8
Python
false
false
4,170
py
1,365
omni_get_k.py
1,295
0.5506
0.495444
0
126
32.095238
119
ch-liux/spiders
19,232,863,551,971
071d3d166de6e9e95b51ed7bb1590b8fd97115ac
2b6cdb478bd923c1f9919f31686c248ffc31a881
/pythoning/src/asyncDemo/__init__.py
8fd5a1984d75c674ac6e6a411659703212c85a09
[]
no_license
https://github.com/ch-liux/spiders
13d732e098597c61df1dbec013074c3b4c6bd6a0
2a005a185886ea1954efe3fbc552fd69e940ee7b
refs/heads/master
2020-03-27T00:04:32.621431
2018-09-12T23:53:26
2018-09-12T23:53:26
145,591,345
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""异步IO do_some_code() f = open('/path/to/file', 'r') r = f.read() # <== 线程停在此处等待IO操作结果 # IO操作完成后线程才能继续执行: do_some_code(r) loop = get_event_loop() while True: event = loop.get_event() process_event(event) """
UTF-8
Python
false
false
275
py
104
__init__.py
100
0.61086
0.61086
0
14
14.714286
33
Berdugo1994/Tweeter-Search-Engine
884,763,285,494
4ca9a9b86a183e7e562afedf0f0f960338910672
d01a85c82877d1af6cf2150c5a125223614a2eb1
/searcher_wordnet.py
822ec1de66729e45f7ba215be16c35f214405dc7
[ "MIT" ]
permissive
https://github.com/Berdugo1994/Tweeter-Search-Engine
1ae2a86b9e77e963c3b8f9709cb21a40b4d24342
ff80707d64b792288b877814d79e39c5b5ceb7ad
refs/heads/main
2023-06-09T10:53:18.990260
2021-06-25T10:21:39
2021-06-25T10:21:39
360,846,088
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math from ranker import Ranker # DO NOT MODIFY CLASS NAME class Searcher: # DO NOT MODIFY THIS SIGNATURE # You can change the internal implementation as you see fit. The model # parameter allows you to pass in a precomputed model that is already in # memory for the searcher to use su...
UTF-8
Python
false
false
5,237
py
39
searcher_wordnet.py
36
0.585259
0.580676
0
111
45.18018
120
Huahan98/deep-learning-containers
4,818,953,320,461
715e50dbcba2a74719c56b4c0dba3d9134cd7d72
110c5310346e0db4ea399c6a553d75fe3fbf5bcd
/test/sagemaker_tests/pytorch/training/integration/sagemaker/test_distributed_operations.py
3d08d4e417d4f474dd42ed9c9f6886676b0ea12d
[ "Apache-2.0" ]
permissive
https://github.com/Huahan98/deep-learning-containers
dc5f3391f4099326c8402832f87cc3c4bda86cc8
1510b917ebfb24a3bfb744e4590d46ba78657392
refs/heads/master
2023-09-03T13:29:32.142167
2021-11-10T17:42:43
2021-11-10T17:42:43
285,139,382
1
0
Apache-2.0
true
2020-08-05T00:57:54
2020-08-05T00:57:53
2020-08-05T00:53:09
2020-08-05T00:56:19
67,495
0
0
0
null
false
false
# Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
UTF-8
Python
false
false
12,794
py
293
test_distributed_operations.py
233
0.631077
0.623026
0
317
39.359621
210
google-code/0xic-zex
15,315,853,405,298
3a4469afb5f9032175a2a7878c4611880c52388a
839c3ab12d1716ccabb03775686ac5dc60379b48
/Python/imvustuff/imvumacro/__testing__gui/test.py
06782de82809474f89dbb6d22fe72b8829b03e10
[]
no_license
https://github.com/google-code/0xic-zex
d7ac68cbf4304ef41662e1b88a10ef6c99371602
b5da0a01bcd7c8a71c0b57e1513b4bba81a84ca8
refs/heads/master
2018-01-07T09:08:00.939937
2015-03-13T14:26:15
2015-03-13T14:26:15
32,160,272
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def add5 (x): return x+5 def dotwrite(ast): nodename = getNodename =() label=symbol.sym_name.get(int(ast[0]),ast[0]) print ' %s [label="%s' % (nodename, label), if isinstance(ast[1], str): print '= %s"];' % ast[1] add5(1)
UTF-8
Python
false
false
247
py
129
test.py
87
0.566802
0.534413
0
9
25.666667
47
hugs-cloud/hugs
8,881,992,392,400
3fcf02eaa699cf0a639970f718edf2f629e9937d
ce969904073f7d6893734fac3d68a52338eb255a
/tests/mock/hugs/conftest.py
16138758989f87eee9f85e97d481c4ba2e91ef79
[ "Apache-2.0" ]
permissive
https://github.com/hugs-cloud/hugs
a26808991d1413d9c3ac566b5e2de6bdb6b39f75
93c58c9e0381f453a604f39141f73022d4003322
refs/heads/master
2023-08-17T10:27:04.982632
2023-08-03T08:07:51
2023-08-03T08:07:51
270,334,862
0
2
Apache-2.0
false
2020-09-30T13:27:45
2020-06-07T14:41:52
2020-09-30T13:09:33
2020-09-30T13:27:45
11,996
0
0
3
C
false
false
# import pytest # from HUGS.Modules import CRDS, GC # # If this doesn't exist in the object store, create it # @pytest.fixture(scope="session", autouse=True) # def check_crds(): # if not CRDS.exists(): # crds = CRDS.create() # crds.save() # @pytest.fixture(scope="session", autouse=True) # def ch...
UTF-8
Python
false
false
403
py
135
conftest.py
98
0.595533
0.595533
0
17
22.705882
56
duanzhihua/utils
2,937,757,678,382
3f65c8b115935dbea5ea327d1390113f76ae6d56
d6374661286e3b0133f894b624d5a175f28679c3
/sklearn_wrapper.py
59acca522bc01e2bd0753d42ed055dc31c6aacbc
[ "Apache-2.0" ]
permissive
https://github.com/duanzhihua/utils
7c0c468703954c0f4db97a3f463afe529a563038
8ad4f4e3f7913f0119bc04f84326a8ad01bf65d1
refs/heads/master
2021-10-25T04:25:35.440111
2019-04-01T00:39:58
2019-04-01T00:39:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # encoding: utf-8 ''' 数据分析各个阶段的wrapper * 数据探索(包含数据预处理过程) 数据编码、缺失值处理、异常值处理、字段间相关性分析、数值型字段描述性统计、 * 数据探索结果可视化 * 特征工程 * 数据集分拆 * 模型构建 * ''' from sklearn.metrics.pairwise import cosine_similarity from sklearn.metrics.pairwise import pairwise_distances from sklearn.metrics import mean_squared_error from sk...
UTF-8
Python
false
false
2,119
py
81
sklearn_wrapper.py
26
0.637154
0.632265
0
54
32.944444
99
malbingi/STUDIA
7,516,192,781,969
082a87577f489c4da867fa400c2e33d65993c31b
194ef255316397f4d77e0bcb403dd1056f0a0c4a
/IDENTYFIKACJA/IVM-1/main.py
dc7bce29577fa590847fc6ac83f4b9fc895604af
[]
no_license
https://github.com/malbingi/STUDIA
1ef2b2fe8c206bd6157f4c8d643b7747c5fbed7b
8d0c477456186458293f86f4dc13ca3d95d8e08e
refs/heads/master
2023-05-25T16:54:13.583652
2021-06-08T21:55:00
2021-06-08T21:55:00
367,340,912
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from math import log, pow from saveToFile import saveToFile as save # WARTOŚCI A1, A2, A3, RO_CT I A8 PODMIENIAM DLA KAŻDEGO PRZYPADKU A1 = 3.5 A2 = 5.0 A3 = 1 epsilon_dot = 1.0 ro_0 = 0.0 ro_cr = 0.4 a8 = 0.0 number_of_steps = 1000 historia_ro = [0.0] t_cr = (1/A2) * log((ro_0-(A1/A2))/(ro_cr-(A1/A2))) t_cr_step = in...
UTF-8
Python
false
false
709
py
197
main.py
30
0.599717
0.527581
0
30
22.566667
113
devsyam6/ai-email-insights
2,250,562,880,312
ed3f433c6aba36357ec261f09a8e60fbcd3d81f3
f78a5539bf30315a1a9e8484f7a53ffd63b874a1
/email_analysis.py
d72c4e2c57fa6621d9a38949c25a3b248e56be58
[ "MIT" ]
permissive
https://github.com/devsyam6/ai-email-insights
8081fe8a1221ec2c8b16dca0c9a4df4fbcca3ef7
c94131e1cb9299546664c08c48efa9372d377914
refs/heads/main
2023-08-27T19:38:48.223027
2021-10-21T15:55:51
2021-10-21T15:55:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' MIT License Copyright (c) 2021 Avemac Systems LLC 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, pub...
UTF-8
Python
false
false
21,365
py
5
email_analysis.py
4
0.623309
0.613761
0
470
44.459574
184
jetpotion/Python-Algorithms
9,792,525,469,654
a3079ac931a3dac25eebbf38f0e019e533869eb6
fb647075525f1389ff710082e1549f31234660eb
/AMS326/Strassen.py
11de32cd94b64db48c22e7ba6781d9296b66c93f
[ "MIT" ]
permissive
https://github.com/jetpotion/Python-Algorithms
d7b19a66436e510bb38bbe91ec984563365aa559
e92b8950ced0bed46edf6c4a4a7558839205093c
refs/heads/master
2021-07-19T15:48:42.715055
2020-05-25T13:47:37
2020-05-25T13:47:37
163,626,683
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"@author: William Zhang" "@email:William.Zhang@Stonybrook.edu" import numpy as np from Needle import Needle #This method will call all the other functions def main(): pinlength = 1 pinlength2 = 0.5 pinlength3 = (1/3) pinlength4 = 0.25 linedistance = 20 probability1 = montecarlo(linedistanc...
UTF-8
Python
false
false
1,853
py
25
Strassen.py
19
0.698327
0.669185
0
48
37.5625
79
fangchi/python_project
19,318,762,922,123
8153c282d2f25d474179b3559293380d70f4b0dc
bfc366a5ab8e255bd1db166cfe945021ab1ccde6
/marchineLearning/ch3/3.4/solution.py
7e48dc068d8c317ac338303dfd5d14b0aa320644
[]
no_license
https://github.com/fangchi/python_project
c204cdc81f8acfb0feae6cd618b460ccab66270a
8458e9b0e555212dab91f0000617cf2d573af437
refs/heads/master
2021-04-18T21:23:07.026291
2018-04-24T17:37:20
2018-04-24T17:37:20
126,780,574
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import seaborn as sns import matplotlib import matplotlib.pyplot as plt # https://blog.csdn.net/Snoopy_Yuan/article/details/64131129 # myfont = matplotlib.font_manager.FontProperties(fname="/Library/Fonts/华文仿宋.ttf")#"/Library/Fonts/Songti.ttc") # sns.set(style="white", color_codes=True,font=myfont.g...
UTF-8
Python
false
false
1,643
py
14
solution.py
13
0.740843
0.7132
0
38
37.052632
116
kongjingchun/gift
16,088,947,514,701
3977febedc6f690a82605e7818ea444c06564884
b01e55da3542cd3ec298ef4d5d3da4b01d002881
/admin.py
47aae7043dd75ac5c2a99590dff2dfc0fe42a285
[]
no_license
https://github.com/kongjingchun/gift
85a3a3ac3dc6a4e50bb81d7e86c582a5f0bda5f5
36c380d74d88fc4e6e5d14fb1bceb941446e139f
refs/heads/master
2023-04-09T20:57:09.474169
2021-04-19T11:06:42
2021-04-19T11:06:42
355,089,670
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 # @Create time: 2021/4/6 3:13 下午 # @Author: KongJingchun # @remark: from base import Base import os from common.error import NotUserError, UserActiveError, NotAdminError, RoleError class Admin(Base): def __init__(self, username, user_json, gift_json): self.username = username super(...
UTF-8
Python
false
false
2,869
py
9
admin.py
7
0.619561
0.613808
0
76
35.592105
104
hut/calq
6,296,422,074,667
15bcb54bdb7ff816f1a612bf69e3f3bc5945d877
f03bc0a2117ecfc0c69476e2af46f46e3a42262e
/src/ngstools/analyze_qual_sam.py
63ac5b3fa4ba7d0267c7b5714e92df1713432a23
[]
no_license
https://github.com/hut/calq
a9fff0e9f26752c0c6e1c5d4d7ca00778a1b7990
6292da42726904d30b0fbf157af83081b4b45296
refs/heads/master
2020-03-19T12:08:44.313659
2018-05-09T03:37:18
2018-05-09T03:37:18
136,498,577
0
0
null
true
2018-06-07T15:41:22
2018-06-07T15:41:21
2018-05-09T03:37:44
2018-05-09T03:37:43
19,589
0
0
0
null
false
null
#!/usr/bin/env python import sys # Usage if len(sys.argv) != 2: sys.exit("Usage: python {} file.sam".format(sys.argv[0])) # Get SAM file sam_file_name = sys.argv[1] if not sam_file_name.endswith(".sam"): sys.exit("SAM file name must end with '.sam'") sam_file = open(sam_file_name, 'r') print("SAM file: {}".f...
UTF-8
Python
false
false
1,403
py
55
analyze_qual_sam.py
47
0.575196
0.563792
0
55
24.509091
82
dannymulligan/Project_Euler.net
19,447,611,948,911
49136a1bee9233bbb73a2972773f640f9c449db3
e0ef034b87ade27dcef6afb15f6cde566fe63770
/Prob_146/prob_146a.py
9ce4bee23877999cab68d8781681d2daf22123c5
[]
no_license
https://github.com/dannymulligan/Project_Euler.net
621cae9622d224f68bb17d7033c9b3245d86a4cf
4368aac279996e5972c479ed04fb6be23112650c
refs/heads/master
2020-12-24T05:21:23.250238
2020-11-22T18:05:01
2020-11-22T18:05:01
1,063,955
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # coding=utf-8 # # Project Euler.net Problem 146 # # Investigating a Prime Pattern # # The smallest positive integer n for which the numbers n^2+1, n^2+3, # n^2+7, n^2+9, n^2+13, and n^2+27 are consecutive primes is 10. The # sum of all such integers n below one-million is 1242490. # # What is the sum...
UTF-8
Python
false
false
6,724
py
457
prob_146a.py
345
0.638459
0.496728
0
181
36.149171
150
youjia4321/travel315
19,267,223,301,895
ae87e49a2c7fa1b253c0dae04c41bbbc74336fe8
bd756862c23dbb7937303cd3deb872459790220c
/zhilianzhaoping/javaE.py
52ce84bfb8097e3dac9e22973d8646c8807e168d
[]
no_license
https://github.com/youjia4321/travel315
c2f3bb28e80b3eefdfda91367fcf09952cf991d4
a17f1750bae97fc9ff971d6944fa3a10eb5161ea
refs/heads/master
2020-08-13T08:11:19.865380
2019-10-14T03:32:32
2019-10-14T03:32:32
214,937,339
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json import re from lxml import etree import csv from jieba import analyse import pandas as pd import numpy as np analyse.set_stop_words("stopwords.txt") # 停用词 # 引入TF-IDF关键词抽取接口 tfidf = analyse.extract_tags def parse(url): headers = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64)...
UTF-8
Python
false
false
3,234
py
13
javaE.py
8
0.609316
0.574144
0.000317
103
29.631068
306
chengdg/weizoom
13,099,650,267,515
352205595e1c5135ca74e5ca32523b1bbbd05663
f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb
/weapp/features/steps/market_tools_template_message_operate_template_message_steps.py
e5a5a28f2c3b41ebb3b7ac22b5f08b41fd106d32
[]
no_license
https://github.com/chengdg/weizoom
97740c121724fae582b10cdbe0ce227a1f065ece
8b2f7befe92841bcc35e0e60cac5958ef3f3af54
refs/heads/master
2021-01-22T20:29:30.297059
2017-03-30T08:39:25
2017-03-30T08:39:25
85,268,003
1
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- __author__ = 'slzhu' import json import time from test import bdd_util from features.testenv.model_factory import * from market_tools.tools.template_message.models import * @given(u"{user}已有模板消息") def step_impl(context, user): MarketToolsTemplateMessage.objects.all().delete() MarketTo...
UTF-8
Python
false
false
3,400
py
3,596
market_tools_template_message_operate_template_message_steps.py
2,097
0.63054
0.628112
0
89
36.022472
125
Hanlen520/AutoTest-5
8,796,093,049,782
c6f5d7232f6fe846d309564e65e6376feeab6e77
b1fc1cb678e5e19ba64fcd06003b40e8d2ca5e5b
/InterfaceTest/db_init/test_data.py
4aa7a7129680c09c1f003753eec32338b99ce5e0
[]
no_license
https://github.com/Hanlen520/AutoTest-5
82e0aa90b13b6fcbafd9ac66d8a2975cdd0fd943
0b1f9a527cb50f76c17749c913b096053f695a67
refs/heads/master
2020-05-26T11:07:42.333635
2018-08-24T11:27:43
2018-08-24T11:27:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 # Auther:"EternalSunshine"
UTF-8
Python
false
false
42
py
17
test_data.py
16
0.738095
0.714286
0
2
20
26
arashout/CTCI
15,925,738,745,844
275c0ec5d46b91c4e3eac677de8c261e71826820
c9904106d9b2a9bc4e5e3b0185b2ba1dd083d978
/algo_problems/ctci/42.py
c79784022f364deec134a8bfaa2906037f7b2e38
[]
no_license
https://github.com/arashout/CTCI
9521509795ebdfe4bc3e57417c3434a493453564
cd3dc66ad0ece624f8d26be72023829b22d18e76
refs/heads/master
2021-05-04T02:54:35.007751
2019-06-16T22:11:44
2019-06-16T22:11:44
120,368,476
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from algo_problems.utils.testing import Solution, Test from algo_problems.utils.tree import BinaryTreeNode, is_bst, parse_tree from typing import List def create_bst(sorted_list: List[int]) -> BinaryTreeNode: def helper(start: int, end: int) -> BinaryTreeNode: if start > end: return None ...
UTF-8
Python
false
false
741
py
66
42.py
54
0.531714
0.511471
0
35
20.2
71
mmcintyre1/advent_of_code_2020_python
1,211,180,798,656
0d6039d79938dbcb622404a9d0a93d96a53c54eb
637715f53689a14d57d8178cfc5f6bba7f7e3529
/day_13/part_one.py
51c87ef3ca9efa44819a165f91ed409d9d57123e
[]
no_license
https://github.com/mmcintyre1/advent_of_code_2020_python
9d2ea85ef7df3b4cf0a12e7ff10684098bf9ff60
07cc9860147b62243f1d71f4e9aa58aaf3f3d432
refs/heads/master
2023-02-02T09:57:52.700604
2020-12-22T02:25:28
2020-12-22T02:25:28
317,666,223
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pathlib def main(): schedule = pathlib.Path('puzzle_input.txt').read_text() earliest_departure, available_buses = parse_schedule(schedule) print(get_closest_arrival(earliest_departure, available_buses)) def parse_schedule(unparsed_schedule): earliest_departure, available_buses = unparsed_sche...
UTF-8
Python
false
false
998
py
50
part_one.py
49
0.673347
0.672345
0
35
27.514286
81
krish-bhanushali/FunWithPython
18,425,409,717,627
e895a055458b2d247d6706f7eb593965147b87c6
e954938f58d1d9385a4a41fdcc256f126cf51e9c
/Text To Audio Convertor/TextToAudio.py
c8e72f43737154ef18ea1ec0c0226f7d7b983b64
[]
no_license
https://github.com/krish-bhanushali/FunWithPython
1a34155533f59defcd566822d6360336248edb57
658e0d061399197da9889695a3ac0138ac8fca54
refs/heads/master
2023-04-22T22:29:55.766089
2021-05-18T15:55:52
2021-05-18T15:55:52
299,307,938
2
2
null
false
2021-05-14T11:51:26
2020-09-28T12:52:35
2021-05-10T06:06:35
2021-05-14T11:51:25
123,049
0
1
0
Python
false
false
#pip install -r requirements.txt import pyttsx3 import PyPDF2 #add pdf files in the project directory book=open('pdf-test.pdf', 'rb') pdfreader=PyPDF2.PdfFileReader(book) pages=pdfreader.numPages #print(pages) speaker=pyttsx3.init() page=pdfreader.getPage(0) text=page.extractText() print('saying') speaker.say(text) s...
UTF-8
Python
false
false
340
py
14
TextToAudio.py
11
0.785294
0.770588
0
16
20.25
39
macedo33/FoodFinder
11,639,361,409,043
d1f3c760e2e11900f99b7c5bd486bea5d9b40038
9e2a73b8d48cc8b125793137c34accee63792cd1
/drf_base/env/bin/django-admin.py
d51b3f2921f98c3b58d9b32d20946ae18fcc4110
[]
no_license
https://github.com/macedo33/FoodFinder
e41a00d8e999198a6cce468babeb1ac9190458a8
3deee7afb0ec77ea052a0e708bdcaf2c98bf8ecf
refs/heads/master
2023-05-24T06:10:16.646911
2018-07-06T12:51:51
2018-07-06T12:51:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/Users/andremachado/Desktop/drf_base/env/bin/python2.7 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
UTF-8
Python
true
false
163
py
14
django-admin.py
9
0.717791
0.705521
0
5
31.6
56
M-Sanli/WaterStones.com_Scraping
11,338,713,709,639
8c87a46b69596a3f25092236194664a83bbb446b
4bf1b5727df099823c46602c61cba32e3a562f9d
/Analyze and Description/Analysis.py
ffa6ac47d8fb540e44a9cc0c240bc8df1e4a2192
[]
no_license
https://github.com/M-Sanli/WaterStones.com_Scraping
43ca348ac0ec070f18b8f89376ad5385b42647ad
bc44b408ae1240152631d843ff451503876e092f
refs/heads/main
2023-04-25T11:11:40.057759
2021-05-09T21:58:47
2021-05-09T21:58:47
363,954,916
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # Required libraries: import pandas as pd import matplotlib.pyplot as pl # Reading the data from csv file: df = pd.read_csv('data_scrapy.csv', sep = ";") # Mean of the book prices: df["Price of the Book"].mean() # Max price of the books: df["Price of the Book"].max() #...
UTF-8
Python
false
false
618
py
6
Analysis.py
4
0.676375
0.671521
0
40
14.425
46
cash2one/xai
10,325,101,404,511
a5b0e7620b5224190e5ee26b3d463200b475c216
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_spokes.py
999a862a1aaf91cb0a614c963502d3e25a4e1eb4
[ "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
#calss header class _SPOKES(): def __init__(self,): self.name = "SPOKES" self.definitions = spoke self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['spoke']
UTF-8
Python
false
false
218
py
37,275
_spokes.py
37,266
0.591743
0.591743
0
13
15.615385
26
Honoo/CViA
8,856,222,566,466
b4049fca6b1f0b0f43708072fe114eaaad8a05c1
b85c506e92589f81875e1e6f78a133f4c4e6f2c9
/CViA/backend/JobMatcher/job_matcher.py
f9310982fa8af641557940dfc8d4968e6198a33f
[]
no_license
https://github.com/Honoo/CViA
4cb217107b7060afd6a2ceb57764dd3929a3213c
096fea13b854f6aca8385d00b36e2932f2b77970
refs/heads/master
2020-05-01T12:58:33.206717
2015-11-10T05:20:25
2015-11-10T05:20:25
42,951,869
1
0
null
false
2015-10-04T07:33:30
2015-09-22T18:11:25
2015-10-04T03:30:14
2015-10-04T07:33:30
120
0
0
0
Python
null
null
from sources.json_data_source import JSONDataSource from filters.education_filter import EducationFilter from filters.experience_filter import ExperienceFilter from filters.skills_filter import SkillsFilter from filters.languages_filter import LanguagesFilter class JobMatcher(object): def __init__(self, query, wei...
UTF-8
Python
false
false
1,313
py
36
job_matcher.py
28
0.628332
0.628332
0
39
32.666667
91
LiliBourgeois/Zappy
7,808,250,569,990
ee88b1affb8d4cf78783f6a57d48b151a3dc8847
1ad9967bda4a2a5adbf21583d5019f725ed9ce58
/src/connection.py
f22ec7dc4d6afa83216d3925955bb4562f83fa5c
[]
no_license
https://github.com/LiliBourgeois/Zappy
b2706140953d69d8e641f988606d2b3fd420d477
dbab93f44bcb6d7c9c29f7e8d3dd2f882df5bafc
refs/heads/main
2023-07-06T00:33:43.379066
2021-08-12T17:36:18
2021-08-12T17:36:18
395,395,195
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python3 # coding: utf-8 import socket from globals import setalive, getalive, setmessage, setlevel, getlevel, setm_direction BUFFER = 1 def get_data(s): data = "" tmp = "" while "\n" not in tmp: tmp = s.recv(BUFFER).decode("utf8") data = data + tmp return data def ...
UTF-8
Python
false
false
1,897
py
10
connection.py
10
0.560358
0.549815
0
79
23.012658
86
rubelw/auth0_client
3,839,700,765,701
b9a3892f254d00dbfce380691e92a8f5607a40b2
539ceb194e55f01f2a60ba1e9fa0c661f68a9731
/auth0_client/menu/commons/functional.py
23203b16ed03728b92d99754cbc785bf3b174c38
[ "MIT" ]
permissive
https://github.com/rubelw/auth0_client
fdeda1df26dcf978ea7837690c35414ee68b8043
51e68239babcf7c40e40491d1aaa3f8547a67f63
refs/heads/master
2020-04-02T11:16:57.891730
2018-10-29T02:42:29
2018-10-29T02:42:29
154,380,362
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import division, print_function, absolute_import, unicode_literals import inspect DEBUG=0 # # functions for handling optional values # def omap(function, optional): """Map optional value""" if (DEBUG): print('commons.functional.py - omap(function,optional)- called by:'+str(inspect.s...
UTF-8
Python
false
false
948
py
100
functional.py
97
0.683544
0.67616
0
35
26.085714
106
ThomasAndrasek/demonetization_bot
7,310,034,363,937
443737fb996d21f3cde5ff8f8c428aad2158572f
620cc60040d6b920a8373c38a57ab9e9fb109eac
/utilities/message_logger.py
e566c2f26cc92807a5922ab7934347cc78b16390
[]
no_license
https://github.com/ThomasAndrasek/demonetization_bot
7fddd9c877b34002ce8ec5874c13d3c593f34cdb
4e7c101cc05f1653da34c3f1f3eb21843fba1e24
refs/heads/master
2020-06-11T03:21:41.110098
2019-06-29T06:58:31
2019-06-29T06:58:31
193,741,335
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 # Enable and Disable # Set Channel storage_path = 'databases\\logger\\logger_storage.db' def check_for_server(server_id): conn = sqlite3.connect(storage_path) c = conn.cursor() c.execute('CREATE TABLE IF NOT EXISTS loggerStorage(serverID TEXT, enable INTEGER, channelID TEXT)') ...
UTF-8
Python
false
false
3,818
py
6
message_logger.py
5
0.613148
0.610267
0
108
33.37037
126
Dnguye1393/RasberryProjects
7,370,163,912,098
5cfe8f414bc738ec781d8f999e3d8bcbb9bbab59
9ad46ef05c872746dce75b3be6f8ce1362f17764
/SenseHat/helloworld.py
f4bc632722a51786c776b9d47942635cd156a316
[ "Unlicense" ]
permissive
https://github.com/Dnguye1393/RasberryProjects
4473370b079a27d6022909295334f9e95803b5fd
e93249f18d24ffdb3beb2d7db36de55ef74c6bcf
refs/heads/master
2021-01-19T11:29:53.434348
2017-04-04T05:44:52
2017-04-04T05:44:52
82,248,311
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sense_hat import SenseHat from flask import Flask, render_template, jsonify, request import mysql.connector #from mysql.connector import MySQLConnection, Error import requests app = Flask(__name__) sense = SenseHat() languages = [] cnx = mysql.connector.connect(user = 'davidn', password='raspberry' , ...
UTF-8
Python
false
false
3,008
py
20
helloworld.py
15
0.615691
0.612367
0
100
29.08
74
Irikos/Programming
14,113,262,541,586
16de65d637f8f096243ec9e0e8db35abd8a088f5
344df5cc5395c2443507e2ecf2096c84fac111d3
/Python/lesson_4_homework.py
1aabf7ad37a949ea7daeaecb9884382bd6c5d5f6
[]
no_license
https://github.com/Irikos/Programming
6888d824ae547464908232a3dfa69bf1326aec50
ef65c9e6493a177b65b278d421ad7866e3cc610a
refs/heads/master
2015-08-14T14:19:28
2015-05-27T10:19:56
2015-05-27T10:19:56
26,400,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import math import re from random import randrange ### Ganditi-va la ceea ce vreti sa faceti si apoi apucati-va sa scrieti cod. ### Exercitiile sunt mai scurte decat enuntul daca le faceti cum trebuie cu ### notiunile invatate pana acum """ Ex1: Implementati o functie echivalenta cu functia ...
UTF-8
Python
false
false
7,580
py
55
lesson_4_homework.py
37
0.583344
0.565735
0
233
30.416309
133
ateexD/Intelligent-Bus-Stop-Recognition-System
18,545,668,797,410
ff0b1b2c5d41a303acdfb9887122987fab95ccc6
8c7c19a36114f685aa3d0e3f5a34e19a253d276c
/code/random_trials_day.py
472ea0a19e13f26e617bff5d583ec3875379581e
[ "MIT" ]
permissive
https://github.com/ateexD/Intelligent-Bus-Stop-Recognition-System
37b9ebc21f9f88a0bbb8663c904ed438763ca925
d9a94a13adf026b329903743b54e46c30ac8cf00
refs/heads/master
2021-04-29T23:11:24.705644
2018-02-14T18:55:46
2018-02-14T18:55:46
121,549,466
2
0
null
true
2018-02-14T19:03:54
2018-02-14T19:03:54
2017-06-16T18:43:34
2018-02-14T18:55:47
1,359
0
0
0
null
false
null
# In[1]: import numpy as np import matplotlib.pyplot as plt import scipy.misc as sc from time import time from collections import Counter # In[2]: d = {} bus_stop_names = ["JJ Nagar East", "Anna Nagar West Depot", "Collector Nagar", "Mogappair East", "Thirumangalam", "Gurunath Stores", "Incubatio...
UTF-8
Python
false
false
5,259
py
7
random_trials_day.py
2
0.520441
0.498003
0
150
34.053333
122
leinian85/year2019
12,120,397,730,425
48ae8166e04cef4e7440c78dd31a31af09b07463
3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72
/month04/spider/day02/03_spider.py
072699c5fe82fe2b43ce7854d398de12dbb30e4a
[]
no_license
https://github.com/leinian85/year2019
30d66b1b209915301273f3c367bea224b1f449a4
2f573fa1c410e9db692bce65d445d0543fe39503
refs/heads/master
2020-06-21T20:06:34.220046
2019-11-04T06:37:02
2019-11-04T06:37:02
197,541,549
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from urllib import request from fake_useragent import UserAgent import time import random import re import os class movie: def __init__(self): self.url1 = [] self.url2 = [] self.movies = [] self.imgslit = [] pass def get_urllvele1(self, page): for p in range(1,...
UTF-8
Python
false
false
3,072
py
477
03_spider.py
372
0.54069
0.525716
0
111
26.675676
113
LeeKom-Niu/graphics_search
9,775,345,600,005
5b830df42901fc5c900a2fd9601af2cb4940f050
345717807c433c72c41f2f58380fb8adad9e213c
/mongodb/create_database.py
dba148e1d44f5f589751a10a7809ec8454e32fd1
[]
no_license
https://github.com/LeeKom-Niu/graphics_search
e11fa9fe5f33120259e4a5dde156e4135ded1300
4012f5375ac36fdd76affa57282799658f974af4
refs/heads/master
2022-04-12T00:14:10.934536
2020-01-26T03:20:55
2020-01-26T03:20:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import pymongo data_file = '../scratch/kesenhuang/graphics.json' with open(data_file, 'r') as f: data = json.load(f) cg_client = pymongo.MongoClient("mongodb://localhost:27017") cg_db = cg_client["kesenhuang"] cg_col = cg_db["papers"] cg_col.insert_many(data)
UTF-8
Python
false
false
281
py
2
create_database.py
2
0.697509
0.679715
0
13
20.538462
60
bkayed/posrocket-python-sdk
12,292,196,448,537
1424f4e6f6f4f263aa78350d11eaad3dd57678d4
1b7f17ff9f31abd7abb42da5621c89a65130808a
/posrocket/models/catalog/variation.py
1841a0d64074dd698c070e2a0c53c3a0ead501ba
[]
no_license
https://github.com/bkayed/posrocket-python-sdk
ff604586e4d928366016726ce643c258982fd3ea
fec3ca9099faa1071b4e1d14cc0b3ac1d5c2ca4c
refs/heads/master
2020-08-04T00:33:04.751579
2019-09-26T14:10:42
2019-09-26T14:10:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Catalog Variation Python model """ from typing import List from posrocket.models.catalog.pricing import CatalogPricingModel __author__ = "Ahmad Bazadough, Hamzah Darwish" __copyright__ = "Copyright 2019, POSRocket" __credits__ = ["Ahmad Bazadough", "Hamzah Darwish"] __license__ = "GPL" __version__ = "0.1.0" __mai...
UTF-8
Python
false
false
3,452
py
59
variation.py
58
0.61095
0.608922
0
116
28.758621
128
zunkzz/airu-proxy
17,566,416,249,295
f5b9663509d5b35b36bc09c2d625b6a3ffbe5dcb
ca2e734b8203939ae9ea1ad9380a6cc82ce7a7c5
/proxy.py
c83a8f2f27249168a8edeead8aec7868edd1bf8f
[]
no_license
https://github.com/zunkzz/airu-proxy
a10e062d99629976307eb8bd1c314a076cca04d0
69f411f62ae71f3b88fd9e8def5cc36e19e82f58
refs/heads/main
2023-04-04T13:06:51.266573
2021-04-12T20:58:04
2021-04-12T20:58:04
354,711,122
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
########################### # Meu Twitter # # @Souichi285 # ########################### import requests from bs4 import BeautifulSoup import os os.system('clear') print(""" ################################################################################# # aaaaaaaaaa...
UTF-8
Python
false
false
2,937
py
1
proxy.py
1
0.327981
0.323881
0
64
44.734375
92
osamascience96/Object-Oriented-Programms
11,793,980,234,873
4d56d6a13a4426e8152059d2d184576b0f89d1f6
991d59be2758b7d5e0fb59debfcf31b3aed9bbe8
/Python/Inheritance in Python (Overriding Example).py
ff7badc0f60a90d3e0c76e92c719f51102f17a0b
[]
no_license
https://github.com/osamascience96/Object-Oriented-Programms
d20bbd29cb550e0100ddab48be1ff4ee66d4cea6
ddcad59a75897dd0d3eb48694b67a98d9feab85c
refs/heads/master
2020-05-14T13:53:37.064642
2019-06-01T09:56:07
2019-06-01T09:56:07
181,823,010
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Parent Class class Parent: # member fuction def print_last_name(self): print('Ahmed') # Child Class class Child(Parent): # member function def print_first_name(self): print('Osama') # overriding the function in the parent class def print_last_name(self): print('Rashe...
UTF-8
Python
false
false
427
py
24
Inheritance in Python (Overriding Example).py
14
0.65808
0.65808
0
18
22.722222
50
YousefbnK/Classrooms
5,987,184,443,350
57b6841ac05673dceadfd7f8a79f6e7afa70b04d
44995217d756a080d7184a67e8d675ba21b39220
/classes/models.py
df4da85b8e64ab8afd8c1dcd03c3bfb5f8e87fe5
[]
no_license
https://github.com/YousefbnK/Classrooms
291448f0d0f87d81af7d368def8d8d2be11ccc22
d2dc3259f1c96070993552368b24fd6d8d80f07c
refs/heads/master
2020-12-19T03:00:15.552269
2020-01-23T15:28:00
2020-01-23T15:28:00
235,600,716
0
0
null
true
2020-01-22T15:18:54
2020-01-22T15:18:53
2020-01-15T12:02:35
2020-01-15T12:02:32
29
0
0
0
null
false
false
from django.db import models from django.urls import reverse from django.contrib.auth.models import User from datetime import date class Classroom(models.Model): name = models.CharField(max_length=120) subject = models.CharField(max_length=120) year = models.IntegerField() teacher = models.ForeignKey(User, on_dele...
UTF-8
Python
false
false
954
py
3
models.py
1
0.715933
0.701258
0
33
27.878788
69
letfoolsdie/algorithm_specialization
10,900,627,003,607
d9fd1edd26f2054659b0352b04405bb1d39db68a
89e003f6ad5051695ca9eac7e2886379cfcfb29b
/w2/fibonacci/fib.py
1b78856f6d1f60c5110d824d99d70c349944f033
[]
no_license
https://github.com/letfoolsdie/algorithm_specialization
0a85ce41610ab946b07a3488d9e4ba93bb3b3004
b4bbb930a281b0a4138acd17ce0f9f840d361f68
refs/heads/master
2021-01-10T08:39:31.426310
2016-09-08T21:36:02
2016-09-08T21:36:02
54,419,391
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Uses python3 #def calc_fib(n): # if (n <= 1): # return n # # return calc_fib(n - 1) + calc_fib(n - 2) def calc_fib(n): if n == 0: return 0 if n <= 2: return 1 d1 = 1 d2 = 1 for i in range(2,n): d3 = d1+d2 d1 = d2 d2 = d3 return d3 n = int(...
UTF-8
Python
false
false
349
py
15
fib.py
15
0.438395
0.378223
0
23
14.173913
45
GKCY/Leetcode
5,334,349,388,807
271e14e53b00a6cc316293fd3daa6103a71172f4
c10cebbe003de5a905873f032d9ec79b5c8b67d3
/480.二叉树的所有路径(Binary Tree Paths).py
51e70e1873e57b6257642536d5465cb8b991e356
[]
no_license
https://github.com/GKCY/Leetcode
a6aba3ef4e9f96d54a17e592eb5270483c8ff450
2630d49aeaa04c2bcb617f9bc1183d2a29eeedb9
refs/heads/master
2021-01-24T01:35:47.932055
2017-03-27T14:00:04
2017-03-27T14:00:04
68,601,897
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: # @param {TreeNode} root the root of the binary tree # @return {List[str]} all root-to-leaf paths def binaryTreePaths(self, root): def f...
UTF-8
Python
false
false
857
py
40
480.二叉树的所有路径(Binary Tree Paths).py
28
0.490082
0.490082
0
29
28.37931
56
Kaper156/call_recognizer
18,193,481,501,242
3513350d49dfa2e64a36ca8ce4c0f7b9722bfa1f
07b62ec4e6cb37427d38e0a419023bd3dda98e24
/run.py
47bfb1f8819024cde41598c0572a9e33bc800e94
[]
no_license
https://github.com/Kaper156/call_recognizer
aa6286870af4f5dec683b04f6624ebaef4a9e42f
5788c4be5e957ecadbc12aad7b9be48702cf0733
refs/heads/master
2022-12-13T05:12:28.318777
2020-08-28T13:35:02
2020-08-28T13:35:02
290,432,799
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from recognizer.api import ApiClient from recognizer.cli import parse_args from recognizer.config import Config from recognizer.database import update_or_insert_phone_call from recognizer.helpers import remove_file, get_wav_last_modify_date_time, format_phone_call_to_log def main(args): # Load con...
UTF-8
Python
false
false
2,065
py
21
run.py
17
0.656659
0.65569
0
58
34.603448
99
tu95ctv/rnoc2
15,607,911,160,276
82c9eb65aa7a35e8d79dbe8f6e83255e42cd64aa
8044de4715ec7ac86d1fab984fd807a37a967d85
/rnoc/migrations/0007_auto_20160608_2339.py
92622c1dbf432de09bda90a2abdb51f3c15cb157
[]
no_license
https://github.com/tu95ctv/rnoc2
a8a70b2e214d29465ad89c1e0799d649c5244a2a
53e4aeb7c052490b3379c16d92470156b6b25f03
refs/heads/master
2020-12-04T03:15:18.013065
2016-09-15T07:14:50
2016-09-15T07:14:50
67,463,289
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('rnoc', '0006_auto_20160602_1120'), ] operations = [ migrations.AddFiel...
UTF-8
Python
false
false
3,646
py
17
0007_auto_20160608_2339.py
15
0.593801
0.521942
0.003017
82
43.463415
164
NateWeiler/Resources
15,522,011,838,930
f7c8478c68eadfcc6d6b3d8eb70d082ab1e7405a
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/Pygame Tutorials/shmup/shmup.py
7a6d12b35b80098f44aa6d715aead0d9e5d4eeb6
[]
no_license
https://github.com/NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
false
2022-09-08T15:20:18
2020-05-27T16:18:17
2021-12-09T12:39:04
2022-09-08T15:20:18
2,434,051
1
0
32
null
false
false
version https://git-lfs.github.com/spec/v1 oid sha256:c08dac996effe1661c1c112865ad37866b4ea4f2b66386fe671ae000bfab2abe size 13308
UTF-8
Python
false
false
130
py
36,207
shmup.py
16,386
0.884615
0.538462
0
3
42.333333
75
j0shuasm1th/sportsref
858,993,481,293
ce516b5d2bff3afd52a82620f52f7a44390b413c
8ec0e80af3a30f36e9faebe5d37ee86b6b9f51c0
/sportsref/ncaaf/players.py
72e45b348fb40029ce35f126edbb240ca03ebcf3
[]
no_license
https://github.com/j0shuasm1th/sportsref
216f8f495736a57c1631dabc8978ea64eb75e08d
62df006cd699151ec77e4c4096e39947a99b6aef
refs/heads/master
2021-01-20T09:07:31.561197
2016-07-25T02:00:41
2016-07-25T02:00:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime import re import urlparse import numpy as np import pandas as pd from pyquery import PyQuery as pq import sportsref __all__ = [ 'Player', ] yr = datetime.datetime.now().year @sportsref.decorators.memoized class Player: def __init__(self, playerID): self.pID = playerID self....
UTF-8
Python
false
false
5,520
py
14
players.py
13
0.575181
0.572101
0
165
32.454545
79
ianjward/Distributed-FileShare-App
18,219,251,292,036
53995abfc603671727ca3efc1ffa3344070a2a09
62bb6c4b1819550078a7b1d783e8bfa796674d4c
/src/launch_backend.py
6a087a3184c223ca4360a77e28192a1549674a9c
[]
no_license
https://github.com/ianjward/Distributed-FileShare-App
fce4979b4d32db85b0d8297e9decd47dc85ea05d
5c1d812a79815782bc6333ab99b2df2521ceddd0
refs/heads/master
2022-11-11T10:58:03.319282
2020-05-08T16:29:09
2020-05-08T16:29:09
240,789,805
0
0
null
false
2022-11-04T19:31:54
2020-02-15T21:24:12
2020-05-08T16:29:19
2022-11-04T19:31:50
173,959
0
0
1
Python
false
false
from twisted.internet import reactor import src.network_node_types.broadcast_node as broadcast import src if __name__ == '__main__': broadcast.search_for(["ians_share"]) reactor.run()
UTF-8
Python
false
false
195
py
15
launch_backend.py
14
0.702564
0.702564
0
8
23.25
57
Ali-BigData/HHH
764,504,200,972
408dca2a73d3db7d85ff4f4615dbb2033775d9e9
46835ccd24e9938f4c0aed11ec8cf8e1717757d1
/request.py
86d98cbba57bf7cacc07ea7584fbb8ab437b28c3
[]
no_license
https://github.com/Ali-BigData/HHH
b78ccb4b19b6efbb14e9307c30d60ae929bcc409
d7cb12e0eb25b3ca0a50fff7707c84a5f3efd72b
refs/heads/main
2023-04-19T09:11:47.747643
2021-05-02T12:30:57
2021-05-02T12:30:57
363,645,720
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests url = 'http://localhost:5000/predict_api' r = requests.post(url,json={'Cement':12, 'Big-Gravel':29, 'Flyash':6,'Water':44,'Superplasticizer':12,'Small-Gravel':37,'Sand':8,'Days':5}) print(r.json())
UTF-8
Python
false
false
219
py
2
request.py
2
0.675799
0.598174
0
7
30
81
Prodinal/GateSpacyWrapping
18,193,481,478,922
ee69c3e861948f14d8f03488a69526a9000809e0
26c103061ad3bd8c3065d4a3e84b52bca964dfb5
/SpacyHu/SpacyHu/DependencyParser.py
c1e7303f9d81bd7bad7342a7886270736b3b8106
[ "MIT" ]
permissive
https://github.com/Prodinal/GateSpacyWrapping
b7330d271722e4eabe7b8edcc7b15f921322f2e4
046c415eb22ce7c2cc4aaca904410f852e993974
refs/heads/master
2020-04-10T00:53:14.594375
2018-12-06T16:03:51
2018-12-06T16:03:51
160,698,922
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import spacy from spacy.tokens import Doc, Span, Token import urllib import xml.etree.ElementTree as ET import re from SpacyHu.BaseSpacyHuComponent import BaseSpacyHuComponent class DependencyParser(BaseSpacyHuComponent): def __init__(self, nlp, label='DepParser', ...
UTF-8
Python
false
false
2,983
py
18
DependencyParser.py
13
0.595013
0.592992
0
81
35.641975
79
marmibv/yuzu-trade-bot
18,098,992,186,836
6ebc277bdee03c9828da8d5828af6a97f0b94647
6a6f5f02b7127124fe32c40b4958394cd8cff985
/archive/macdas_strat.py
51f443b2ff64bc8edfcea8913689acac2cd0c162
[ "Apache-2.0" ]
permissive
https://github.com/marmibv/yuzu-trade-bot
608cdf79b3f9690072c29edec29225028d700080
34c67d7a19a9d51a7478050ada6286d97ffa9910
refs/heads/main
2023-08-26T18:24:45.669570
2021-10-18T18:02:40
2021-10-18T18:02:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ta.trend import EMAIndicator from ta.momentum import RSIIndicator from pandas import DataFrame, Series EMA = lambda close, len: EMAIndicator(close, len).ema_indicator() xup = lambda left, right=0: (left.shift() < (right.shift() if isinstance(right, Series) else right)) & (left > right) xdn = lambda left, right=0:...
UTF-8
Python
false
false
2,335
py
34
macdas_strat.py
28
0.599143
0.557602
0
53
43.075472
279
jgericke/nd064_course_1
5,703,716,619,237
a75e755cdae19523b7a26e6bcba30b83d5e350fc
9c44d6e7d47fcb29a761bd4fa9ff804aade93941
/project/techtrends/app.py
0be9ffab3ee6060e21c9068c8d45c717cd371559
[]
no_license
https://github.com/jgericke/nd064_course_1
b288de8810857e10cf5caf36b5cf97639de3682a
0ebcca18ecc2d1ba92072f4ef225f8c4ca5a5f42
refs/heads/main
2023-08-28T08:18:28.248453
2021-11-14T05:00:54
2021-11-14T05:00:54
427,581,861
0
0
null
true
2021-11-13T05:54:40
2021-11-13T05:54:39
2021-11-12T11:37:42
2021-11-12T06:22:34
19
0
0
0
null
false
false
import sqlite3 import functools import logging import sys from flask import ( Flask, jsonify, json, render_template, request, url_for, redirect, flash, make_response, ) from werkzeug.exceptions import abort # Metrics wrapper for counting (read) connections to database def metrics_c...
UTF-8
Python
false
false
4,668
py
5
app.py
1
0.657669
0.649957
0
157
28.732484
88
heteroscedastic/pontoon
12,025,908,467,461
e61affab35a27e82859416705cecbdf4afd029fb
f6dbcb0aa824a046b983af22ea262a8d2f530b06
/apps/pontoon/urls.py
b62b2a6f7c4cec69435a48b0428d1716feb02522
[ "BSD-3-Clause" ]
permissive
https://github.com/heteroscedastic/pontoon
1b10232e9a30fd533164ad0dc47419c7b2dafd60
9b825b2c3d1efc48f582ec70e057baff09aaac47
refs/heads/master
2021-01-18T06:00:45.517270
2012-06-15T14:39:11
2012-06-15T14:39:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls.defaults import * from . import views urlpatterns = patterns('', url(r'^$', views.home, name='pontoon.home'), url(r'^locale/(?P<locale>[A-Za-z0-9\-\@\.]+)/url/(?P<url>\S+)/$', views.home, name='pontoon.translate'), url(r'^checkurl/', views.check_url, name='pontoon.checkurl'), ur...
UTF-8
Python
false
false
449
py
11
urls.py
5
0.643653
0.639198
0
12
36.416667
108
projectclassB172/SE_HW_B17-2
3,624,952,443,198
bc4fc4fe2c963a8e610511eb8a7d9a7902a3a5fc
b5763d1c9248319db3a4d37b13323d6d8e854417
/homework9/Group9/hw9_1720393.py
8cbe3ff8cab1c6ee8fe345defa87bd676fe4880c
[]
no_license
https://github.com/projectclassB172/SE_HW_B17-2
86a4597cfa6ca2ac87588f92570baa33a649422d
ce49c4bef937c6e9f69f9170456d284dfc1eac2d
refs/heads/master
2021-03-17T10:56:01.253381
2020-06-05T04:55:25
2020-06-05T04:55:25
246,984,206
11
3
null
false
2020-05-13T06:17:37
2020-03-13T03:55:45
2020-05-13T06:16:47
2020-05-13T06:17:28
384
2
2
1
Python
false
false
#创建数据库表; import sqlite3 conn=sqlite3.connect('D:\\untitled\\phone.db') print("打开数据库成功") conn.execute('''CREATE TABLE USER (PHONENUMBER INT PRIMARY KEY NOT NULL, NAME TEXT NOT NULL , ADDRESS TEXT , COMPANY CHAR(50));''') print("表创建成功") conn.close() #运行结果: #打开数据库成功 #表创建成功 #新增联系人; import sqlite3 conn=...
UTF-8
Python
false
false
1,652
py
325
hw9_1720393.py
319
0.698413
0.669553
0
61
21.672131
87
izmogui/ProjectEuler
8,804,682,979,951
b8e0570f609f1b66c1b85eecb8fc4e19b42070e0
e58ed9f8e0537c720e68285a4c34ff8497cf83f8
/p13.py
0b39652d799e9ec67b9c98f71b9aab32a8153e77
[]
no_license
https://github.com/izmogui/ProjectEuler
5733e2a376987fc6850c18cebfdf4a767a51389f
f1cff36021e61ee06d965abf29e420e1d762d07a
refs/heads/master
2021-05-15T12:12:48.832259
2017-11-01T17:45:27
2017-11-01T17:45:27
108,414,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import numpy import time import sys import math def main(): parser = argparse.ArgumentParser() parser.add_argument("input_file") args = parser.parse_args() #millisec start = int(round(time.time() * 1000)) original_matrix = numpy.genfromtxt(args.input_file, dtype="str", delimiter="\n") l...
UTF-8
Python
false
false
1,901
py
5
p13.py
5
0.615992
0.59495
0
67
27.373134
142
weichen2046/IntellijPluginDevDemo
2,937,757,667,854
fffea169055c18421a8b565ab9d2219986dffb26
efbc988c3963de201957da6ecbf37a7c1f4a360e
/enterprise-repo/enterprepo/pluginrepo/views.py
90f59a56bd8c8cc400d4b67a72aa5ece7bb09e49
[ "Apache-2.0" ]
permissive
https://github.com/weichen2046/IntellijPluginDevDemo
1f49efb26c360ab9b4bd6e7dc2cededeb3711d4f
433c11b439dbfc4911684ae9d7d6419aac362533
refs/heads/master
2021-01-22T11:03:47.354267
2017-09-25T23:13:23
2017-09-25T23:13:23
102,345,253
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from models import Plugin # Create your views here. def index(request): context = { 'plugins': Plugin.objects.all() } return render(request, "pluginrepo/updatePlugins.xml", context, content_type="t...
UTF-8
Python
false
false
329
py
79
views.py
43
0.693009
0.68997
0
13
24.384615
92
sdlivingstone/imdying
2,499,671,012,091
dda2509901cd857eaf3fd2b4a614b2eb5691208c
b42666917c301d001d56a51a55cd5879c36f410a
/cipheryo.py
0f2a51e3d820e70e3f63c04da031187f32414e39
[]
no_license
https://github.com/sdlivingstone/imdying
42fc2133adef384a1e107a5a9a34cce3062af2cd
6632c44c4b79fefef4003495e99391cb072e800d
refs/heads/master
2021-01-19T06:36:47.756132
2016-07-22T15:21:56
2016-07-22T15:21:56
63,963,297
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def cipher(message,shift): encryptedmessage = "" #we will add encyption char by char to this string for char in message: asc =ord(char) if asc >= 65 and asc<=91: asc+=shift if asc>91: asc-= 26 encryptedmessage += chr(asc) elif asc <=1...
UTF-8
Python
false
false
755
py
14
cipheryo.py
13
0.482119
0.458278
0
22
30.909091
76
ppinchuk/Lux-Design-2021
13,443,247,663,103
84a3a08a9d98f2f13bc16a694249e2dc65b0588d
1af3bd9aefaec158812399a3f2327bfff5ea30b1
/kits/python/mediocre/mediocre_lux/game.py
5dc4e33593bfdd2166883507d00e7cf176895f4a
[ "Apache-2.0" ]
permissive
https://github.com/ppinchuk/Lux-Design-2021
dd260205552c8eea2827e4434bda54eb481754ac
8a04ad48c6749cafc9aca986f14e75daaa31c789
refs/heads/master
2023-09-04T22:45:28.511504
2021-11-18T23:40:53
2021-11-18T23:40:53
402,617,664
0
0
Apache-2.0
true
2021-11-10T22:46:34
2021-09-03T02:03:03
2021-11-10T22:36:14
2021-11-10T22:46:33
17,973
0
0
0
Jupyter Notebook
false
false
import getpass from .constants import GAME_CONSTANTS, InputConstants, LogicGlobals from .game_map import GameMap, Position from .game_objects import Player, Unit, City, CityTile class Game: def __init__(self, map_id, size_str): self.id = int(map_id) self.turn = -1 self.turns_until_next_nig...
UTF-8
Python
false
false
4,709
py
171
game.py
122
0.538118
0.528775
0
109
42.201835
139
dattnguyen/Leetcode_exercises
19,456,201,877,325
ca5c9648eda34b90fdd7ad6d240af3748fd67af6
72ddc142197b20ea9dec88c40d46448b56aa4f1c
/290. Word Pattern.py
efcfc8979a4d16f8620e2a7dfdb8b2d297bf66c8
[]
no_license
https://github.com/dattnguyen/Leetcode_exercises
ee6a4325b47f8a07844bbb84511b1e158edfc7ac
d74d8987f07dcfd4e02348385f88381802adb1aa
refs/heads/master
2022-12-31T10:15:31.443277
2020-10-09T20:28:56
2020-10-09T20:28:56
267,236,435
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Given a pattern and a string str, find if str follows the same pattern. # Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str. def wordPattern(pattern, str): hmap = {} for i, char in enumerate(pattern): if char in hmap: h...
UTF-8
Python
false
false
1,389
py
100
290. Word Pattern.py
99
0.538517
0.529158
0
58
22.948276
121
GBuella/vltrace
8,272,107,058,594
a18dc8b3bda5bbc43de8e9e227b2bd9c49924d21
1f8bb1345510e2369be49a726548d452e5f6d35c
/tools/bin2txt/listsyscalls.py
f83f2e65e981ca8d099444ddfa9465da72170d07
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/GBuella/vltrace
c2383b7e982fee79aec218e096ce26060d4c82c7
d10b4f2d5acef9383694161555729c618b7edc5d
refs/heads/master
2021-01-21T12:46:42.496099
2017-10-02T13:33:00
2017-10-02T13:33:00
91,800,396
0
0
null
true
2017-05-19T11:44:43
2017-05-19T11:44:43
2017-05-12T14:40:30
2017-05-19T11:26:34
869
0
0
0
null
null
null
#!/usr/bin/python3 # # Copyright (c) 2017, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of condit...
UTF-8
Python
false
false
4,741
py
2
listsyscalls.py
2
0.475427
0.47142
0
105
44.152381
120
jsyadav/CrawlerFramework
13,769,665,190,787
976078d1c61371387a411e1653c7451f9e21af6c
13944ac8e5b2ee9785a5264fbb4a959594fc0cd5
/crawler/connectors/stuvuconnector.py
bb32f31d51cd8d5243f818f1f056e8964ff97ae9
[]
no_license
https://github.com/jsyadav/CrawlerFramework
9bdad211bf5217ed85added15b111c7e4e6cb53f
dbd14efb81b28be6340dfd00df9d31cc6a290b08
refs/heads/master
2021-05-02T14:27:19.610279
2017-05-24T13:45:38
2017-05-24T13:45:38
54,789,643
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re from BeautifulSoup import BeautifulSoup from datetime import datetime import logging from urllib2 import urlparse,unquote import copy from baseconnector import BaseConnector from utils.utils import stripHtml,get_hash from utils.urlnorm import normalize from utils.decorators import logit from utils.sessioninf...
UTF-8
Python
false
false
8,551
py
269
stuvuconnector.py
260
0.525786
0.525085
0
186
44.876344
152
chiggs/cocotb
12,859,132,115,430
785dcb1c40b9f1696558d190ae3840c4dcb2c9bf
76bb4052aa3eb6e5a396d9570b4e26ec7bfd5a77
/bin/combine_results.py
f8cf78ac088e05419d3af5edde70da05564eb78f
[ "BSD-3-Clause" ]
permissive
https://github.com/chiggs/cocotb
54f251ef589e87a34a40e395dde66930496bda54
9c89c4ffa5b1ba38859dd5ef49a2417e41ad938a
refs/heads/master
2021-01-18T05:17:57.016180
2015-07-24T17:04:48
2015-07-24T17:04:48
34,111,443
1
0
NOASSERTION
true
2019-01-02T14:20:30
2015-04-17T10:47:51
2015-04-17T10:47:53
2018-12-12T10:54:03
3,287
0
0
1
Python
false
null
#!/usr/bin/env python """ Simple script to combine JUnit test results into a single XML file. Useful for Jenkins. """ import os import sys from xml.etree import cElementTree as ET def find_all(name, path): result = [] for root, dirs, files in os.walk(path): if name in files: yield os.pat...
UTF-8
Python
false
false
1,319
py
15
combine_results.py
5
0.56558
0.559515
0
48
26.479167
77
kyosukekita/ROSALIND
17,755,394,803,032
52b230971a4c7b8546ef81dadab82c8705467390
06cab728715b5913b3a5e8a7827e00aa061ec24c
/Algorithmic Heights/general_sink.py
703d4a439bb611f5bcda546fe3abcb6a58f8f036
[]
no_license
https://github.com/kyosukekita/ROSALIND
afdbd1033c55c12022f6bdcbc27b9f36c01448fd
0547e1d55233af0e4eafcb20ff7035b802d573f1
refs/heads/master
2023-02-21T17:59:19.965447
2023-02-16T12:06:44
2023-02-16T12:06:44
231,326,082
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
file = open('Desktop/Downloads/rosalind_gs.txt', 'r').read() N=int(file.split()[0]) tmp=[(blocks) for blocks in file.split("\n\n")] tmp1=[block.split("\n") for block in tmp][1:] def GeneralSink(graph,NodeNum): answer=-1 for i in range(NodeNum): visited=[False for _ in range(NodeNum)] def dfs(...
UTF-8
Python
false
false
960
py
195
general_sink.py
194
0.528125
0.5125
0
37
24.945946
60
wh-forker/Adversarial-Dropout
816,043,834,107
8d651a45f3230a60aaa75270a91e166498f68a60
9afabd5f9a1018fc78ec213cd93f5b9d55ffd732
/cnn.py
064123d47fc7eea5b07b7f8d7f488d1cda49a99e
[]
no_license
https://github.com/wh-forker/Adversarial-Dropout
4c564a00c2fb73f8058975809f1d176a2eeb5954
f2594e2d9360f7d526d2ff6944919419ce24a999
refs/heads/master
2020-12-05T04:45:32.413674
2019-04-22T12:03:57
2019-04-22T12:03:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy import sys, os import layers as L from tensorflow.python.ops import math_ops from tensorflow.python.ops import gen_nn_ops from tensorflow.python.framework import ops FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_float('keep_prob_hidden', 0.5, "dropout rate") tf.app.flags...
UTF-8
Python
false
false
4,054
py
5
cnn.py
4
0.647015
0.596695
0
78
49.974359
133
HenryFBP/itms-428
7,602,092,159,631
e9928f123af39ce588bef8c2ee097684ddf49502
7aca68eb0c1b27d2d19babb772caa59ba9e0e579
/assignments/group-project/shared_lib.py
fd1e99db9328d011085821c5f192db79da289245
[]
no_license
https://github.com/HenryFBP/itms-428
341b6e750922619b6d75840c32c33c805df9cdf6
cc13d02728d03bf0d8a53711fd1ce2ccde524af1
refs/heads/master
2022-04-30T22:05:55.180384
2022-04-22T02:46:44
2022-04-22T02:46:44
145,616,067
0
5
null
false
2018-11-06T22:15:59
2018-08-21T20:30:17
2018-11-06T21:48:13
2018-11-06T22:15:58
264,874
0
2
0
C++
false
null
from constants import Config def get_login_creds(path: str) -> (str, str,): """Human-proof way to get login info from plaintext file.""" try: file = open(path, 'r') except FileNotFoundError as e: print(f"Please make {Config.LOGIN_FILE_NAME}, and put your username and password in it, separ...
UTF-8
Python
false
false
1,040
py
83
shared_lib.py
27
0.625962
0.618269
0
31
32.548387
121
wilkowski/GitCode
12,799,002,584,340
3d0fbe730acba14961f723a82d5045cb48072530
29f75f856ef777e624c7d6a0e83dbecd6bd259d9
/EulerProblems/Euler70.py
efe74a03777ff56b2f0e4f37aeef1665b3b7cb4c
[]
no_license
https://github.com/wilkowski/GitCode
fcabfd2329f94c3cad3f5c8e8ab5ac9552f25312
6e26102add798f553347cd46e658375f7b66ec1c
refs/heads/master
2020-05-18T21:53:21.472335
2015-07-30T08:05:36
2015-07-30T08:05:36
12,389,461
0
0
null
false
2015-05-11T02:12:44
2013-08-26T20:53:23
2015-05-11T01:22:14
2015-05-11T02:12:44
28,616
0
0
6
JavaScript
null
null
PRIME_RANGE = 10000000 #memory is largest constraint here isPrimeList = [True]*PRIME_RANGE isPrimeList[0] = False isPrimeList[1] = False for p in range(4,PRIME_RANGE,2): isPrimeList[p] = False for x in range(3,int(PRIME_RANGE**.5+1)): if(isPrimeList[x]): val = x*x x2 = 2*x while(val <...
UTF-8
Python
false
false
2,009
py
116
Euler70.py
103
0.519164
0.492782
0
88
21.693182
86
heyuanlong1/test7879
13,700,945,715,430
8c1a34e12757f048ee22431516f56031e991cbb1
0136056dd39ac03260a58153041dafc2c82dc696
/__python/project/rank/test2.py
60ff4ef76c88ff6a87420efdf90ade2f860bc054
[]
no_license
https://github.com/heyuanlong1/test7879
4fd4ca8c25c56e7498f8160f366cc85344d6e31e
4f411fc44fb2b0fc95b034f374769ca6aa66b67e
refs/heads/master
2020-06-17T20:46:55.003633
2019-08-15T03:45:24
2019-08-15T03:45:24
74,970,442
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding:UTF-8 -*- """ """ import time import math import random from RankDB import RankDB import time, os, sched m_db = RankDB() inc_second = 1 def work(): tt = time.time(); tt = math.ceil(tt) for x in xrange(20,50): sql_str = "INSERT INTO ko_rank_config.`rank_config` VALUES ("+ str(...
UTF-8
Python
false
false
595
py
225
test2.py
90
0.617594
0.533214
0
28
18.857143
252
akidescent/GWC2019
13,108,240,223,071
125a05d31bf7c18802dae3322b4cbdc49e927043
298b2282d0fd37f768fee0c01518e712b900165d
/dictionary.py
a7e8500bb4c5b6394d0613cdedbac5f39748733f
[]
no_license
https://github.com/akidescent/GWC2019
0d13bd5614a29f6ff709c1dcddd4226cdeb40ceb
5bcc23796b321c9af3a8036b554901c4e9d63e10
refs/heads/master
2022-04-02T21:15:11.026717
2020-01-29T22:37:58
2020-01-29T22:37:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#key-value pairs names = { 'trish': ['Val', 'Charlotte', 'Alex', 'Miya',], 'wen': ['sophia', 'manalie', 'trish'], 'alicia': ['Jade', 'Trinity', 'Sophia'] } user = {} user['bri'] = 30 user['cam'] = 50 user['Tyra'] = 'cat' user['1'] = 'tree' names['Sophia'] = 'bird' print(names) print(user) student = {'n...
UTF-8
Python
false
false
403
py
24
dictionary.py
19
0.545906
0.528536
0
21
18.190476
69
drizztSun/common_project
11,441,792,900,230
1e88bf49d246db24681165eca6cd370189a97702
9ee51d5d6d976a4ad99704a334185f60df65f7ba
/PythonLeetcode/leetcodeM/1604_AlertUsingSameKey-CardThreeorMoreTimesinOneHourPeriod.py
b25064128b57e46dab9336baf7c4326c8d0217bb
[]
no_license
https://github.com/drizztSun/common_project
348756c2b88c485fb9d192f5a7304c2a38cf4219
cf4e1f1a96db896f1325de0283f8607bba5f55aa
refs/heads/master
2021-06-05T22:35:27.071506
2021-06-05T17:26:46
2021-06-05T17:26:46
143,934,217
0
1
null
false
2021-06-05T13:01:52
2018-08-07T22:45:56
2021-06-04T22:53:01
2021-06-05T13:01:52
95,247
0
1
11
Python
false
false
""" 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period LeetCode company workers use key-cards to unlock office doors. Each time a worker uses their key-card, the security system saves the worker's name and the time when it was used. The system emits an alert if any worker uses the key-card three...
UTF-8
Python
false
false
3,699
py
2,891
1604_AlertUsingSameKey-CardThreeorMoreTimesinOneHourPeriod.py
2,842
0.584753
0.534739
0
107
33.579439
178
Djusk8/CodeWars
2,516,850,868,388
5ad3a3f74e6cdec9979ce059136d313bf1dae1ea
c07ae35b94c770cdfde26a3084ca13560a29113b
/7 kyu/Greet Me.py
f7c2432da6958f06173d997d86546ba198ff8452
[]
no_license
https://github.com/Djusk8/CodeWars
2f860efdf9c93e02170a61bd3345c1a6c57b85f0
75cdaaab3f9152032aeaa05d06ef67599aff710b
refs/heads/master
2021-06-24T09:33:33.393342
2021-03-22T06:19:56
2021-03-22T06:19:56
208,574,077
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ------------ KATA DESCRIPTION ------------ """ https://www.codewars.com/kata/535474308bb336c9980006f2 7 kyu - Greet Me Write a method that takes one argument as name and then greets that name, capitalized and ends with an exclamation point. Example: "riley" --> "Hello Riley!" "JACK" --> "Hello Jack!""" # ------...
UTF-8
Python
false
false
720
py
162
Greet Me.py
161
0.608333
0.579167
0
27
25.666667
114
findcomrade/isbio
9,474,697,866,477
c94dd4456755960d10628c7049c380a04081ec8f
f8d4ed6846155f64590b75c30a5267f9ee80131c
/isbio/utilz/networking.py
8853fc2a0924b4df2fca647f8c68f9d978d14778
[]
no_license
https://github.com/findcomrade/isbio
5fbc11c31d6ae49d6567f9cbde9825a59c78db67
5935f28defe76acfdb2fa4d034104f85759c285a
refs/heads/master
2021-01-17T03:25:45.452894
2017-10-18T19:01:33
2017-10-18T19:01:33
7,003,083
2
4
null
false
2017-01-25T15:35:20
2012-12-04T16:27:52
2016-10-24T10:34:35
2017-01-25T15:35:01
14,442
1
2
181
HTML
null
null
import socket from . import get_logger, sp __version__ = '0.1.1' __author__ = 'clem' __date__ = '27/05/2016' # clem on 20/08/2015 def is_host_online(host, deadline=5): """ Check if given host is online (whether it respond to ping) :param host: the IP address to test :type host: str :param deadline: the maximum t...
UTF-8
Python
false
false
4,628
py
124
networking.py
57
0.684745
0.650173
0
177
25.146893
91
YenFus/Cat_Or_Dog
15,719,580,304,515
4348dfd7971e2cb621cf34e373f796ce6034d82b
fb4507d2176e15f566512ab0c2945dc9ddbd962b
/Cat_Or_Dog.py
cfc395f60b26fda489138eac3fad842cc94519ab
[]
no_license
https://github.com/YenFus/Cat_Or_Dog
3cee1549404906ea8fe2b8a3babdeefa1dd322f4
536180614b40303c40d2c12594b2faf7e8f339ee
refs/heads/master
2022-10-11T13:39:50.731755
2020-06-13T16:55:57
2020-06-13T16:55:57
272,049,401
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Building CNN from keras.models import Sequential from keras.layers import Convolution2D,MaxPooling2D,Flatten,Dense #Initialing CNN classifier=Sequential() #Step-1 Convolution classifier.add(Convolution2D(32, (3, 3), input_shape=(64,64,3),activation="relu")) #Step-2 Pooling classifier.add(MaxPooling2D(po...
UTF-8
Python
false
false
1,666
py
2
Cat_Or_Dog.py
1
0.746699
0.706483
0
49
32.040816
127
kunweiTAN/techgym_ai
13,907,104,111,395
0da92d728f285c52591488738df28ca7de3d9ea2
90f545733f076747bad979faa3a8cf23867f7a3a
/Qf5R.py
b43981ebbf85fae51f6caae0d13e314cacb50079
[]
no_license
https://github.com/kunweiTAN/techgym_ai
f85dc52ce6e75f4c08213d5796171908beb9a69e
051274bcc789a563c46ed5661301535e76ae1e18
refs/heads/master
2023-08-17T05:15:18.758183
2021-09-21T11:57:07
2021-09-21T11:57:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#AI-TECHGYM-1-7-A-4 #教師なし学習 アソシエーション分析 import pandas as pd import urllib.request as req import cv2 import matplotlib.pyplot as plt %matplotlib inline #githubからファイルをDownloadできない場合は以下を実行 #url = "http://archive.ics.uci.edu/ml/machine-learning-databases/00352/Online%20Retail.xlsx" #req.urlretrieve(url, "O...
UTF-8
Python
false
false
2,134
py
517
Qf5R.py
412
0.707303
0.660188
0
68
22.970588
154
jojonki/atcoder
3,556,232,951,356
e694a038bb211a99c354d02a907da32e6a207ec3
3df995fa02a43932ab2ea5fea26c06403f139f1f
/abc/abc150c.py
81d9aa789d85e0f3b34308f53008ebdfb334fbee
[]
no_license
https://github.com/jojonki/atcoder
75fb7016dd90b3b7495f1ff558eedcdc755eac11
ec487b4e11835f25c6770f0115b98b7e93b16466
refs/heads/master
2021-06-23T09:56:05.636055
2021-03-13T03:38:50
2021-03-13T03:38:50
201,834,404
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from itertools import permutations def tuple_to_int(tp): return int(''.join(map(str, list(tp)))) def main(): N = int(input()) d = [i + 1 for i in range(N)] P = list(map(int, input().split())) P = tuple_to_int(P) Q = list(map(int, input().split())) Q = tuple_to_int(Q) data = [] f...
UTF-8
Python
false
false
456
py
822
abc150c.py
452
0.554825
0.552632
0
23
18.826087
45
zopefoundation/zope.app.pagetemplate
2,740,189,151,010
0e80122a2400ec43beeafd5c778ddc5b66e42404
6c445fc96d8769dd993f42b7079df430fa6c0101
/src/zope/app/pagetemplate/tests/test_nested.py
2d07ad83752dbf8c285f92230fb252319479bfca
[ "ZPL-2.1" ]
permissive
https://github.com/zopefoundation/zope.app.pagetemplate
397536cb8021a7a014099643b69720c7ebcbfa70
c1dcd73b212313aec6b4d6aa7a6ed5fc7636e544
refs/heads/master
2023-08-18T12:44:57.918934
2023-02-07T09:12:45
2023-02-07T09:12:45
8,727,833
0
1
NOASSERTION
false
2023-02-07T09:09:09
2013-03-12T13:00:41
2022-09-16T08:56:18
2023-02-07T09:09:08
761
0
3
0
Python
false
false
"""Test that nested macro references do the right thing. """ __docformat__ = "reStructuredText" import unittest from zope.browserpage import ViewPageTemplateFile from zope.component.testing import PlacelessSetup from zope.publisher.browser import TestRequest class Context: pass class View: def __init__(se...
UTF-8
Python
false
false
1,474
py
23
test_nested.py
11
0.679783
0.679783
0
63
22.396825
77
abmestri25/pythonPrograms
5,050,881,549,046
3d44286ee83057dc211ce060eb5b807fa9973aa9
4992a6006685757f7fd35e2c665f1cfd4ae0bc74
/prime.py
33387ed8f971edc54d29f2591e89512b9c7de046
[]
no_license
https://github.com/abmestri25/pythonPrograms
b991c2625d3c448bf782f25eb60112390d208496
a8162cac8f5c7d4a967125a94ab98cc491fd17bf
refs/heads/master
2020-05-05T06:35:14.391912
2019-04-06T05:57:10
2019-04-06T05:57:10
179,794,135
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n=int(input("Enter number : ")) #logic goes here flag=0 for i in range (2,n): if(n%i==0): flag=1 break if(n==1):#this should not be include in for loop print("1 is neither prime nor composite number") elif(flag==0): print("Number is prime") else: print("Number is not prime")
UTF-8
Python
false
false
318
py
13
prime.py
13
0.600629
0.578616
0
16
18.5
52
wencong1724427771/Blog-system
13,649,406,071,832
4286af408ba6d6009c0fea09334f5bef433a6578
39592843b892fb4a57ca254f776f5b0e47d36888
/comment/migrations/0002_rename_targrt_comment_target.py
3af31b80ac374ed4f8cb0b9691dd9881a25f4cfe
[]
no_license
https://github.com/wencong1724427771/Blog-system
667dbbb1d2e895aa15b9feba8bd9fec24e8d47c1
b99bf16a2e21307a69f20376be5376246d8a7dfd
refs/heads/main
2023-08-25T04:21:31.156357
2021-09-27T16:19:16
2021-09-27T16:19:16
410,961,678
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.7 on 2021-09-21 01:29 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comment', '0001_initial'), ] operations = [ migrations.RenameField( model_name='comment', old_name='targrt', ...
UTF-8
Python
false
false
371
py
23
0002_rename_targrt_comment_target.py
16
0.533693
0.48248
0
18
18.611111
47
Evoletto/PDB_analysis_tools
11,098,195,530,854
374d8fb31e616cc0006beb8991165ba809994e07
f5c6039478113e483b5de790d74ca9eb48aa39c8
/FAB_Two_filters_final_whole_folder_automated.py
f66304e91f042d5d7dfb46fa53b8a4f226202413
[]
no_license
https://github.com/Evoletto/PDB_analysis_tools
e1c2950929ee9e9c8d516322c8aa553e4fdf6313
25b1adad6a7588fd6aebe7be4b55c21836e4130d
refs/heads/master
2020-05-23T09:27:27.575535
2019-08-09T19:05:11
2019-08-09T19:05:11
186,706,818
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#************************************************************************* # # Program: Extraction of FAB information # File: FAB_Two_filters_final_whole_folder_automated.py # # Version: V1.0 # Date: 27.06.19 # Function: Analysis of the FAB .pdb files. Looking for CYS on the C-terminus ...
UTF-8
Python
false
false
4,720
py
19
FAB_Two_filters_final_whole_folder_automated.py
18
0.674364
0.665466
0
129
35.550388
114
Aasthaengg/IBMdataset
9,070,970,934,653
39ab4587652a9f052d58298c43e73aa21261859d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03050/s858343523.py
6f469dfab8a635b844e298fab5b44809c8f2acea
[]
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
MOD = 10 ** 9 + 7 INF = 10 ** 12 import sys sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from itertools import permutations from heapq import heapify,heappop,heappush def main(): n = int(input()) ans = 0 for i in range(1,n): if i * i > n: break if n%i == 0: ...
UTF-8
Python
false
false
454
py
202,060
s858343523.py
202,055
0.473568
0.407489
0
23
18.695652
42
blue1335/Object-Oriented-Programming
2,628,519,998,013
95353c68dd283266693e4c641957d2982304d786
b605808d5e24d026775ed9378d05023bf847f95f
/OOP Codes/classes.py
5240751caeb26f1b6cf2a7176d443ddd01589d80
[]
no_license
https://github.com/blue1335/Object-Oriented-Programming
195f43e4b27addf3df5a0f2ebf63c9f584967de7
a14adf8d90fdc41da3d09505e622071f04932020
refs/heads/master
2022-04-04T21:55:59.129942
2019-12-28T18:46:04
2019-12-28T18:46:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# integer = 10 # string = "messi" "barcelona football team" # %% integer1 = 33 string1 = "messi" # %% classes employee1_name = "messi" employee1_age = 33 employee1_address = "asdasdas" class Employee: # attribute = age, address, name # behaviour = pass pass employee1 = Employee() # %% attribute c...
UTF-8
Python
false
false
1,805
py
1
classes.py
1
0.54132
0.50416
0
111
15.234234
66
pandasasa/ivalice
18,837,726,566,418
dc0c22ad9f3bf15c4fdc8febf5a143c2433aa16a
a183b0b638b25445b162df655271f890345e7c04
/ivalice/ranking.py
881d6e03407f45ff72e8d43de5dc3a854bc1bb63
[]
no_license
https://github.com/pandasasa/ivalice
e57d774602931cfccc79d8c73a05dd03adf1df43
d3888c73aec3f2968febb091d02dd5c6dafa6b27
refs/heads/master
2021-01-14T14:18:15.455904
2015-04-06T02:25:09
2015-04-06T02:25:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .impl.lambda_mart import LambdaMART from .impl.mcrank import McRank from .impl.mcrank import OrdinalMcRank
UTF-8
Python
false
false
112
py
20
ranking.py
19
0.830357
0.830357
0
3
36.333333
40
qianliu013/leetcode
11,149,735,116,264
adbbbc78257d8f06cb703bffa9bbb67ec0858c6f
a273d3f988c53773b528572c9907eea961e22114
/medium/113.py
99f9647ca3357906546d9483d34fdb2b08c406ba
[]
no_license
https://github.com/qianliu013/leetcode
40995cc83a765383b59605a9438a1cbfde0cf370
b7ecd191411804b2d6d58e2e8233c3bc07aada59
refs/heads/master
2020-12-30T14:55:19.616392
2018-04-21T12:13:49
2018-04-21T12:13:49
91,094,164
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 """Path Sum II.""" def _solve(root, sum): res = [] def _dfs(node, path, path_sum): if node: if node.left or node.right: _dfs(node.left, path + [node.val], path_sum + node.val) _dfs(node.right, path + [node.val], path_sum + node.val) ...
UTF-8
Python
false
false
872
py
380
113.py
378
0.493119
0.489679
0
34
24.647059
74
moviedatascience/DS-Unit-3-Sprint-3-Productization-and-Cloud
15,264,313,783,769
172dc836ea1dd07c962e2de4ce462b7c01639aec
5162f6d36f29c868bb7e7d7d0e86f49be2f22e0b
/sprint-challenge/aquality/models.py
a27aade117ca329d57e1027acd976ac62d5f11dd
[ "MIT" ]
permissive
https://github.com/moviedatascience/DS-Unit-3-Sprint-3-Productization-and-Cloud
a197518b88ffde5bee31c4cc9973b9d1bbc8cfe8
053f742e8736c29ad2fa7f21e9f9182ef1aa0ef1
refs/heads/master
2020-08-13T21:26:11.049782
2019-10-18T20:11:31
2019-10-18T20:11:31
215,040,563
0
0
null
true
2019-10-14T12:39:04
2019-10-14T12:39:03
2019-07-05T16:44:03
2019-10-14T03:12:39
19
0
0
0
null
false
false
from flask_sqlalchemy import SQLAlchemy #instantiating database DB = SQLAlchemy() #creating records class class Record(DB.Model): id = DB.Column(DB.Integer, primary_key=True) datetime = DB.Column(DB.String(25)) value = DB.Column(DB.Float, nullable=False) def __repr__(self): return "< Record {...
UTF-8
Python
false
false
371
py
4
models.py
2
0.679245
0.673854
0
13
27.538462
76
frontendprof/Learn-Python-by-Doing-by-Jose-Espanol
2,439,541,442,741
fd7f279a9501b3838ce79ad1e56830a93a01822e
30ceeacbd734af4d76b4fb0ddf4812dfa615bd35
/MileStone_1/app.py
6bdc219e9e70e66b9ca57f89632d71386bfe83a8
[ "BSD-3-Clause" ]
permissive
https://github.com/frontendprof/Learn-Python-by-Doing-by-Jose-Espanol
e000d211b6e7f3608d9cb1fb57d4300761ef03a5
5a4a6a6843fec6bbe231900aa0053021c69649d9
refs/heads/master
2020-06-03T09:05:38.819433
2019-07-30T22:50:20
2019-07-30T22:50:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# B_R_R # M_S_A_W """ Create movie collector app: that adds new movies, that lists movies, that finds movies, and quits from app... """ movies=[] def menu(): user_input=input(""" Enter 'a' to add a new movie, \t\t'l' to list the movies, 'f' to find a movie, \t\t'...
UTF-8
Python
false
false
1,833
py
33
app.py
29
0.573377
0.573377
0
82
21.341463
92
KaranToor/MA450
6,820,408,079,718
08efa7e1e708ca63d5e9450572ace61683cd22bf
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/lib/surface/compute/copy_files.py
4dd967e96d6572401578413fc7402b3b1020c4ff
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
false
2020-12-24T00:38:09
2017-01-18T00:05:44
2020-12-24T00:36:47
2020-12-24T00:38:08
46,069
1
1
4
Python
false
false
# Copyright 2014 Google Inc. All Rights Reserved. # # 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 ag...
UTF-8
Python
false
false
6,945
py
1,342
copy_files.py
977
0.666811
0.663067
0
180
37.583333
102
swipswaps/Indian-Sign-Language-Gesture-Recognition
18,365,280,172,498
b9033c55c8514bca59c191f3101513f37ea9c0bc
9d508d4f71062b3fdf2090c40da2705d03794ad2
/aud2gest/views.py
e30084a58efb09f441e1ed2d27fee291b88486b9
[]
no_license
https://github.com/swipswaps/Indian-Sign-Language-Gesture-Recognition
ea4ac533fc80d838090e74712637ab432485041f
785b2d1e3ead88001d3ef6fbaf3b525ef38a57ce
refs/heads/master
2022-12-16T12:26:03.482686
2020-04-24T07:04:25
2020-04-24T07:04:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render,redirect from django.http import HttpResponse import speech_recognition as sr from .forms import UploadAudio from .models import AudioDb from knk.settings import * from django.core.files.base import ContentFile import matplotlib from matplotlib.pyplot import figure import matplotlib....
UTF-8
Python
false
false
4,494
py
26
views.py
13
0.70494
0.695372
0
155
27.987097
107
cailllev/PublicCyberSec
16,621,523,463,700
cdaac2a6ec382fd1bc4cc91bdce452078824bc76
5cc8683688a3cf8aec8f61f0e01f16b840d1f1d8
/ctf/1_HELPERS/scripts/t.py
46126cfba2ddb7fe97d5dba8c2674163c8e282b1
[]
no_license
https://github.com/cailllev/PublicCyberSec
6f0104fc7738ce804c01fa66969c28a121b9f5c3
6752074d703b15601bdc07ae849232cc0558a63e
refs/heads/main
2023-03-11T12:35:48.400598
2021-02-28T20:01:04
2021-02-28T20:01:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
f = open("words_en_sorted.txt", "r") ltemp = f.readlines() f.close() l1 = [] for line in ltemp: l1.append(line.split(" ")[0] + "\n") l1 = sorted(set(l1)) print(l1[:10]) f = open("words_en_nums.txt", "r") l2 = f.readlines() f.close() l2 = sorted(set(l2)) print(l2[:10]) l1.extend(l2) l = sorted(set(l1)) f = open...
UTF-8
Python
false
false
363
py
15
t.py
7
0.586777
0.539945
0
25
13.56
37
rhutuja3010/function
8,246,337,210,173
1d64cfa6908b05da284734881f9e92f8ff95c73b
c88ba74667f5dd8094a34a3ff54ac7a0e9de59fd
/meraki Q3.py
0c364bdec6db912f4fcfa8e0db7dbc2280f547c4
[]
no_license
https://github.com/rhutuja3010/function
bb2795b6d2a34f6cbbf6ff0d05756920a91302bf
cba05f67669669cf999abd893c05f89f2a443210
refs/heads/main
2023-08-25T12:29:15.630203
2021-10-19T04:40:22
2021-10-19T04:40:22
408,160,274
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# def add_number(num1,num2): # num1=56 # num2=12 # num3=num1+num2 # print("addition",num3) # add_number(56,12) # a=[10,20] # b=a # b+=[30,40] # print(a) # print(b) number=int(input("enter the number")) modulus=number%10 if modulus==3: print("yes") else: print("false")
UTF-8
Python
false
false
295
py
30
meraki Q3.py
30
0.586441
0.494915
0
20
13.8
37
deepakkumar6/invoice-dsa
17,617,955,859,116
c7703de936af5e8a178dec3fed47291a03c1c5a1
f76c13deabe0f0dada7ebac9b0ab3cec967d9558
/dsa/invoice/admin.py
127645376bb75380cc43764f2e91469d22463ce6
[]
no_license
https://github.com/deepakkumar6/invoice-dsa
4aec54d0377eaab719e62d3e85f60e1de6514c9a
dd8975e3e851b0c29000bc85ec6a631d32caed59
refs/heads/master
2023-07-15T13:12:08.742033
2021-09-07T10:40:04
2021-09-07T10:40:04
393,980,682
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Customer,Products admin.site.register(Customer) admin.site.register(Products)
UTF-8
Python
false
false
133
py
24
admin.py
9
0.827068
0.827068
0
5
25.4
37
ynnsau/CS411-ezcourseatuiuc
12,309,376,312,089
ba97a411ef66c99c69136b50239050b60a34039f
3f61c7d74c457f21f92c9079c19438174a1c73a9
/rateMyProf/rateMyProf/spiders/profCourseExplorer.py
5d121a13eb3cf77149c5e34a005163773e30271d
[]
no_license
https://github.com/ynnsau/CS411-ezcourseatuiuc
4ad10dc71417a0f1bbca6c3d8621b217be9dbcaf
050dd1863958efa605f42bd9229ada8d27d4ee27
refs/heads/master
2023-01-27T13:24:20.750406
2020-08-05T17:52:37
2020-08-05T17:52:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scrapy import time from rateMyProf.items import RatemyprofItem from scrapy.spiders import XMLFeedSpider class profCourseExplorer(XMLFeedSpider): name = "profCourseExplorer" allowed_domains = ["courses.illinois.edu"] year = str(2020) semester = "fall" base_url = "http://courses.illinois.edu/c...
UTF-8
Python
false
false
7,792
py
23
profCourseExplorer.py
11
0.522587
0.520919
0
146
52.369863
105
godfredakpan/blue
3,324,304,723,223
70d4427bc5069c02b8234a09e6837485c6d30104
e9b41aeb684e647b762595d921aaa5e11f740a51
/backend/migrations/0001_initial.py
ab36e5e5dea9a85d9b3a62afb64f60f740840687
[]
no_license
https://github.com/godfredakpan/blue
f7297fbd53d262700fd7b8f91d38a27cd8a4298c
b8c36dcb0fd00e825d5c6a23ddfabfab2a2de19f
refs/heads/master
2020-06-14T14:45:25.946693
2019-07-19T14:53:27
2019-07-19T14:53:27
195,030,387
0
2
null
false
2019-07-18T18:32:21
2019-07-03T10:17:09
2019-07-18T18:30:19
2019-07-18T18:32:20
8,586
0
2
0
HTML
false
false
# Generated by Django 2.2.2 on 2019-07-17 11:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='user', fields=[ ...
UTF-8
Python
false
false
2,991
py
44
0001_initial.py
21
0.571046
0.55433
0
61
48.032787
114