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
Artanic30/django
15,126,874,847,996
701f8aca1c6bd3be04a01e4f50feb0fbfc0df3cd
c902ff61216383da5707c1658f6eae6fdc94c2ba
/untitled/gsurvey/admin.py
2d6d9e6ab3e7ba7becac0a917cf290b73939dd46
[]
no_license
https://github.com/Artanic30/django
6d3e683ec81c2e5f6b7bd97d11e1ed33d36750f7
b148e39a166542b12ab26ea8968bbaa1f21ee0cd
refs/heads/master
2020-04-06T18:42:55.090518
2019-10-16T15:18:49
2019-10-16T15:18:49
157,709,579
0
1
null
false
2019-11-02T03:57:23
2018-11-15T12:42:17
2019-10-16T15:19:02
2019-11-02T03:57:21
4,683
0
0
1
CSS
false
false
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Site class SiteAdmin(admin.ModelAdmin): list_display = ('location', 'time', 'capacity') fieldsets = [ (None, {'fields': ['location', 'time', 'capacity', 'students']}), ] fil...
UTF-8
Python
false
false
438
py
14
admin.py
9
0.666667
0.666667
0
15
28.2
87
arita37/pyspark
18,391,049,975,090
e05c3134c0ad315532bdbeb4f14a3fe7b5555d25
91003d702014ddbdd133066a234d16f53335bef7
/test.py
c1becd2f970ba8a43ba9affc081efc44408bc572
[]
no_license
https://github.com/arita37/pyspark
dc3f29e4e13fba894b3bfa0762cbccae3e00e157
bccfc8b33e7482075b803df69863e4838226ed3d
refs/heads/main
2023-02-06T23:57:03.407396
2020-12-30T04:49:37
2020-12-30T04:49:37
318,725,847
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import findspark findspark.init() import pyspark from pyspark.sql import SparkSession spark = SparkSession.builder.appName('SparkByExamples.com').getOrCreate() simpleData = [("James", "Sales", 3000), ("Michael", "Sales", 4600), ("Robert", "Sales", 4100), ("Maria", "Finance", 3000), ("James",...
UTF-8
Python
false
false
11,094
py
8
test.py
7
0.654588
0.643771
0
336
31.997024
182
AleksandraAnn/pp1
12,670,153,525,781
28faedff489cfa30213ab27293c29bbaf973fe71
c33e767499b886517329c39ce13590de373927bf
/02-ControlStructures/Zadania/Zadania 1-10/7.py
28a3ca476715626dbf30c87243fee20bf123bf49
[]
no_license
https://github.com/AleksandraAnn/pp1
74f5b8f5f6a389a1e9ef5c50d9a85e2b6323806f
176985d892d7ecc9584ceb8faed3bdcc516664e7
refs/heads/master
2020-08-20T23:29:17.805733
2019-10-27T20:57:53
2019-10-27T20:57:53
216,077,656
0
0
null
true
2019-10-18T17:43:28
2019-10-18T17:43:27
2019-10-15T23:06:12
2019-10-15T23:06:10
1,400
0
0
0
null
false
false
i = 0 while i < 5: print('Aleksandra') i += 1
UTF-8
Python
false
false
53
py
12
7.py
10
0.490566
0.433962
0
4
12.5
23
ehsansh84/Customs
6,536,940,262,615
99e05de471f2d8a61047e994cf95591c6f1e3069
fa3e53a81b41f541fccb8ccbd8da3208bacca740
/controllers/borrow.py
f4ec6161090030e075b3fe3069acb4f078754f54
[]
no_license
https://github.com/ehsansh84/Customs
29bb905e20c8243c7e5e73f56e8f5bce774a5b53
2865a22ab8c24f7fa3ff108389031cb4a450784e
refs/heads/master
2016-09-05T11:00:26.572593
2014-09-16T04:47:18
2014-09-16T04:47:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'ehsan' from models.borrow import Borrow as Model class Borrow(): def __init__(self): pass @classmethod def add(cls, id='', personnel_id=0, file_id=0, date='', flow=[], returned=False): if id != '': obj = Model.objects(Kootaj=id).first() else: ...
UTF-8
Python
false
false
1,971
py
88
borrow.py
48
0.446981
0.443937
0
78
24.269231
85
pymft/mft-vanak-2020
19,292,993,118,528
6a6fd8b9f04194caf79b83743422560ce63fee72
f86e9e3d529b78cb9ea33db43bd9499b762d2ccd
/S15/oop/geometry_4.py
a9ec8f4b99b21d21013fc5205a211a01070372c4
[]
no_license
https://github.com/pymft/mft-vanak-2020
43ad9e9e0e34bd2d28313dd39650f737fa874f8b
89a7473f66b9b270136987df550b59b6aee91148
refs/heads/master
2020-12-14T12:37:01.154158
2020-07-15T14:38:14
2020-07-15T14:38:14
234,746,257
3
12
null
false
2020-09-08T14:54:51
2020-01-18T14:23:46
2020-07-15T14:38:25
2020-07-15T14:38:22
435
3
10
2
Python
false
false
class Area: def __get__(self, instance, owner): if owner == Rectangle or owner == Square: return instance.width * instance.height elif owner == Circle: return instance.radius * instance.radius * 3.14 class Perimeter: def __get__(self, instance, owner): if owner ...
UTF-8
Python
false
false
1,013
py
113
geometry_4.py
101
0.595262
0.581441
0
43
22.581395
59
avaneesh-pandey5/matrixcalculator
395,137,031,691
d76c620d6336b6b086841a284720c0a9307512bc
ce996101c91ff8466c3152b15f4f5a4e85bf8185
/matrix_functions.py
8586faa6e402bedbba2477ae8e6f12977ae676e9
[]
no_license
https://github.com/avaneesh-pandey5/matrixcalculator
02d4fff31c4df5b3bc851c06900028c3cd3eb4a5
d0a0dd43cecb2c0844d5b5b2608a73ad53337096
refs/heads/main
2023-04-16T01:03:05.333955
2023-04-06T14:25:02
2023-04-06T14:25:02
332,392,685
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#----------INPUT MATRIX------------ def input_matrix(): matrix=[] col=[] no_of_row=int(input('Enter no. of rows :: ')) no_of_col=int(input('Enter no. of Columns :: ')) for ir in range (1,no_of_row+1): for ic in range(1,no_of_col+1): print('Enter value of a',ir,ic)...
UTF-8
Python
false
false
5,375
py
3
matrix_functions.py
2
0.507349
0.501209
0
192
25.984375
91
EgorKhodunov/2021-1-MAILRU-SDET-Python-E-Khodunov
5,411,658,821,834
d93f2e5324b2a338f955a86a1f086b9c27faf2d8
c1ecf53f80af0bf32ace5ae65bc12d1813a2cbab
/final_project/myapp_test/code/docker_client/nginx_docker.py
1a2be41eff30aa959a5efab53478a4df687e9aaf
[]
no_license
https://github.com/EgorKhodunov/2021-1-MAILRU-SDET-Python-E-Khodunov
d57445515845c60800cf52d69f963ccab0d3209d
315b7c1c858c90fc64081222e744e6b8d6536587
refs/heads/main
2023-06-02T19:26:34.241703
2021-06-09T00:15:13
2021-06-20T19:06:49
349,153,967
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import allure import docker import os from docker.models.containers import Container def read_template(template_path: str): with open(template_path, 'r') as file: template = file.read() return template def generate_nginx_config_file(template: str, app_host: str, test_dir: str) -> str: config = ...
UTF-8
Python
false
false
1,950
py
75
nginx_docker.py
66
0.608205
0.606667
0
63
29.936508
105
Alexyyek/home_recommendation
9,801,115,412,075
e102e4c74d15950b7625530ba5d78cbd034635cc
75618ab4efb6cb98e439d61ff0076c4a0ea3bff3
/house_cosine/bin/house_cosine_topN_map.py
6adfca799f8494baefcdb5c240515ba1ccde322c
[]
no_license
https://github.com/Alexyyek/home_recommendation
22df8d4fe968c1570f89f4bfecefe25e0fa7975f
f02daf591c05c1f91e4378b8a81beaa675f0076b
refs/heads/master
2021-01-11T02:11:22.871894
2016-10-13T10:32:57
2016-10-13T10:32:57
70,795,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf-8 #!/bin/python import sys reload(sys) sys.setdefaultencoding('utf-8') def read_input(seperator='\t'): for line in sys.stdin: line = line.strip() resblock_alpha, resblock_beta, similarity = line.split(seperator) resblock_id_alpha, resblock_name_alpha, room_cnt_alpha, build_ar...
UTF-8
Python
false
false
1,264
py
61
house_cosine_topN_map.py
61
0.573576
0.571994
0
30
41.133333
108
suzukiken/cdkgluetable
17,214,228,958,177
ba0aaed251947b7ba6aa1c44e1847ccc53659112
a3a779efe894276ef51f329f28239b8e490df7e8
/test/putdata.py
13241d9eaa31aa488a2de6a01f726e055831d252
[]
no_license
https://github.com/suzukiken/cdkgluetable
00f6c54de0b00ac155fbe56ff8a81e74a798445c
338dca83ad8f045819622f0805509ee6d039519c
refs/heads/master
2023-04-25T13:24:53.237109
2021-07-09T12:09:46
2021-07-09T12:09:46
349,581,306
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import boto3 from faker import Faker import json fake = Faker() client = boto3.client('s3') lines = [] for i in range(1, 10000): line = { 'id': i, 'created': fake.date_time().isoformat(sep=' '), 'name': fake.license_plate(), 'pcs': fake.random_int() } lines.append(json.dumps(line)) client.pu...
UTF-8
Python
false
false
422
py
3
putdata.py
1
0.632701
0.578199
0
22
18.227273
52
Monolith195/geekbrains_python
9,955,734,232,100
f4731bbe2645c6dd96bbbc6dadf027ed80aa4162
35807d5e95c8ee68d0703e23b0d4f3f6e5e999b1
/lesson01/task6.py
dc4705c16de76f0ffb043e02e5cd4c7a252c867b
[]
no_license
https://github.com/Monolith195/geekbrains_python
3245d0cef98a5604dc9d371d277636c1238f7736
b37bf832ad3a2c1c420cea47180e82feeca16dc0
refs/heads/master
2020-05-17T03:52:49.929921
2019-05-14T18:35:14
2019-05-14T18:35:14
172,539,153
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 6. Создать текстовый файл test_file.txt, заполнить его тремя строками: «сетевое программирование», «сокет», # «декоратор». Проверить кодировку файла по умолчанию. Принудительно открыть файл в формате Unicode и вывести его # содержимое. file = open('test_file.txt', encoding='utf-8', mode='w') file.write('сетевое прог...
UTF-8
Python
false
false
689
py
8
task6.py
8
0.725367
0.719078
0
12
38.75
113
HRLeem/stock_dart
7,868,380,119,117
da874f050a23c2084d22bdd05fcc612bbc22891c
2bfcd913de89c91d5ec6d110304031e15c410a49
/execution/crawl.py
9c7b71aed65ab5f2f0afd10d9a1960dae6cf3239
[]
no_license
https://github.com/HRLeem/stock_dart
f013e19b43b6e08b35b45cc8cfdefc5ec8db50b5
833076cb4b0550e1c1f54ca180dff1055f93f89c
refs/heads/main
2023-03-21T20:29:45.178315
2021-03-10T23:00:27
2021-03-10T23:00:27
334,500,317
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # -*- coding: utf-8 -*- # import execution.defs.defs_crawl as defs_crawl # # crawl = defs_crawl.Crawl() # def traffic_light(name, code, sort): # if sort == 'simple': # pass
UTF-8
Python
false
false
186
py
7
crawl.py
7
0.596774
0.591398
0
7
25.714286
48
AK-1121/code_extraction
8,040,178,819,745
77cd7e564642e2e5728748fa9f00d927b39504d1
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_20679.py
56a5ea16aebc8994fc5fb2c0600fd5b5a0d82b7e
[]
no_license
https://github.com/AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# setting up a dsn to a pervasive DB on Debian through pyodbc dsnadd
UTF-8
Python
false
false
69
py
29,367
python_20679.py
29,367
0.782609
0.782609
0
2
33.5
61
csiifmo/AllInfo
12,962,211,348,354
91567498b08ad4c3ac61ca09b3bedbd411c661a6
7def7bd86abe418e2f5c4d35ca374ac9934d83de
/KawasakiSystem_old/Schunk Release/Manuals/SDHLibrary-2014-09-30-reduced/python/sdh/sdhserial.py
70a2a33d43f5dcc5e9b43e47a7d125456160f0b7
[]
no_license
https://github.com/csiifmo/AllInfo
c0fc4ebd086eb7f810d78e6358f71e52d3eb344f
cf502e4d2ef5f8e514e0cd58fb0c04428498216a
refs/heads/master
2021-01-25T04:15:50.791051
2017-06-05T16:00:02
2017-06-05T16:00:02
93,418,565
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: latin-1 -*- ####################################################################### # ## \file # \section sdhlibrary_python_sdhserial_py_general General file information # # \author Dirk Osswald # \date 2007-06-13 # # \brief # Implementation of class to access SDH via RS232 # # \sectio...
UTF-8
Python
false
false
62,429
py
162
sdhserial.py
59
0.501129
0.490269
0
1,486
41.01144
212
jmval111/Programming-Foundations-with-Python
3,556,232,940,195
6b99f97439b7e623e0197378e7b7c056d295b1e0
a233cbbbddfc1cf9a7e6918d4d98d326bef4bf31
/2 - Uses Classes - Draw Turtles/Making A Circle Out Of Squares/circles squares.py
2daa110b66fecbafbabc7bbf818635f97b485f39
[]
no_license
https://github.com/jmval111/Programming-Foundations-with-Python
5476e5ecbd02fe3e9d200abe392d01a3aea1d99e
1f1bca1ca13e92d1968bb8fbc0fddfced40b8ae6
refs/heads/master
2021-06-03T15:54:35.303417
2016-05-04T22:11:08
2016-05-04T22:11:08
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import turtle def draw_square(some_turtle) : for i in range(0,4) : some_turtle.forward(100) some_turtle.right(90) def draw_art() : window = turtle.Screen() window.bgcolor("red") jp = turtle.Turtle() jp.shape("turtle") jp.color("yellow") jp.speed(6) for i in range(0,36) : draw_...
UTF-8
Python
false
false
506
py
45
circles squares.py
35
0.592885
0.549407
0
36
12
30
tefra/xsdata-samples
2,808,908,615,482
4f531928e6983dde2105e4ea54c417f06c352410
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/autosar/models/ip_sec_rule.py
e651050c479e0df6d4f235e0350c6f0e3c03d632
[]
no_license
https://github.com/tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
false
2023-06-25T07:21:04
2019-11-18T21:00:37
2023-01-05T10:04:55
2023-06-25T07:21:03
22,394
6
0
0
Python
false
false
from dataclasses import dataclass, field from typing import List, Optional from .annotation import ( AdminData, Annotation, DocumentationBlock, ) from .category_string import CategoryString from .communication_direction_type import CommunicationDirectionType from .crypto_service_certificate_subtypes_enum im...
UTF-8
Python
false
false
18,166
py
7,285
ip_sec_rule.py
7,033
0.602829
0.596554
0
471
37.569002
113
jgab13/Stonehenge
16,930,761,117,797
ee20595d22f4a8b13b6b82e8c8123cc8ab78d761
18d026163ba0c3823d1d8f08196c1e89086806ed
/stonehenge_state.py
665d9e9ccc1804a3a0fde23ea2a4a351dc972f15
[]
no_license
https://github.com/jgab13/Stonehenge
6cdc5d0bd4e2c5e01192ec7bb5720099c06d0095
10b88bf7a061c41da46fe852f4719f2725ed9f13
refs/heads/master
2020-04-12T20:50:49.309040
2018-12-21T19:01:59
2018-12-21T19:01:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Stonehenge state class subclass of GameState """ from typing import Any, Dict, List from string import ascii_uppercase import copy from game_state import GameState def calculate_size(size: int) -> int: """Returns the number of circles for a grid of Stonehenge given a size. >>> calculate_size(5) 2...
UTF-8
Python
false
false
16,438
py
4
stonehenge_state.py
4
0.41325
0.39506
0
469
34.049041
80
uw-it-aca/spotseeker_server
17,446,157,178,810
c3e9babe8e75e264c74da4538955628891376554
796dd05d84c56d0873797b29be58247b1be782c6
/spotseeker_server/test/long_message.py
20de4f6fd623467dd77b3d32c9431fb3af0fa8c5
[ "Apache-2.0" ]
permissive
https://github.com/uw-it-aca/spotseeker_server
039e65824887a8303f12a3f07e730ca061bab2d5
5f21a58b4084d798b1c4f87721b63bad01ac4f36
refs/heads/main
2023-08-16T08:53:38.124987
2023-04-14T21:41:34
2023-04-14T21:41:34
11,489,866
6
7
Apache-2.0
false
2023-08-15T22:45:30
2013-07-17T23:18:17
2023-03-28T12:25:44
2023-08-15T22:45:28
2,015
9
8
1
Python
false
false
# Copyright 2023 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 ''' Tells unit test framework to use full assertion failure messages, i.e. it will include both the standard 'a != b' messages as well as the custom message. ''' import unittest unittest.TestCase.longMessage = True
UTF-8
Python
false
false
304
py
139
long_message.py
120
0.763158
0.743421
0
11
26.636364
65
mneira10/MauricioNeira_Ejercicio27
9,028,021,281,153
b643fdb1296edbf7bf73d4344f6cc414059f9cdd
7fb48d59ec2152635fa10fbbeb529aecaa30e120
/2nda_parte/graph.py
2d9c196ac6a50506a5987c0c2422a8a2e08c4f6c
[]
no_license
https://github.com/mneira10/MauricioNeira_Ejercicio27
532f3998ea25c8c8b38736c917216f607ac0b89f
25097449f91e616bbe98d6b175d74bff5488fb8f
refs/heads/master
2020-04-06T12:52:31.840120
2018-11-14T12:48:04
2018-11-14T12:48:04
157,474,330
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib matplotlib.use("Agg") import numpy as np import matplotlib.pyplot as plt from os import listdir from os.path import isfile, join from scipy.stats import norm onlyfiles = [f for f in listdir("./") if (isfile(join("./", f)) and f.endswith('.dat'))] # string for string in list if string.endswith("foo"...
UTF-8
Python
false
false
712
py
7
graph.py
2
0.667135
0.658708
0
30
22.733333
88
MauricioFT1/MauTrick-s-Project
13,030,930,804,513
dd25c9364884fae9e7a2c5d152716b33fa1a1b97
77f029f7526dc751cabd97b6fd22b35bbcbdcff6
/backend/backend/app/views/__init__.py
2194e56ab997708c31a528c0612fc9f36ace150c
[]
no_license
https://github.com/MauricioFT1/MauTrick-s-Project
c34e8112dcda5c01eabc4e1ee93c2e3031295c61
46f0dd5d191f82c50ef802340166623b15f09819
refs/heads/master
2022-03-15T18:19:30.130840
2019-12-05T17:41:59
2019-12-05T17:41:59
221,292,582
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .championships import (ChampionshipCreate, ChampionshipUpdate, ChampionshipDestroy, ChampionshipGet, ChampionshipList, EditionChampionshipList, EditionChampionshipGet) from .editions import (EditionList, EditionDestroy, EditionGet, EditionUpdate) from .teams import (TeamList, TeamDestroy, TeamGet, TeamUpdate) from...
UTF-8
Python
false
false
432
py
42
__init__.py
22
0.851852
0.851852
0
6
71
172
young-amateurs-rc/arbys
19,129,784,358,424
eb1df44e20683b8e84c02243806da9b0b41fed6d
35a4c0ecdc28d7b7aaf03a72114d6fa40ab76012
/exceptions.py
e0a93fb609a4ccc0fdc2805c98c3059b066bc652
[ "MIT" ]
permissive
https://github.com/young-amateurs-rc/arbys
5becb50805f790f5384e631c975e3a1ee0ddd529
eaccc4634ca9bdc2880761934b033b1907fbdc46
refs/heads/master
2020-03-29T13:56:04.997915
2019-12-16T19:56:58
2019-12-16T19:56:58
149,989,681
9
8
MIT
false
2019-07-26T02:30:47
2018-09-23T14:01:30
2019-07-25T16:01:01
2019-07-26T02:30:47
190
7
7
0
Python
false
false
"""Exceptions that are used in the framework""" class BaseFrameworkError(Exception): """Base exception for all custom errors.""" pass class UserBotError(BaseFrameworkError): """Raised when framework is run with a user account.""" pass class HandlerError(BaseFrameworkError): """Raised when there is a problem ...
UTF-8
Python
false
false
354
py
53
exceptions.py
49
0.748588
0.748588
0
16
21.125
62
cdearborn/sushy-oem-idrac
14,800,457,329,648
5e850c93bc4d48cdbedfb10fff77d36700ea52dc
0c986d3da4e7bfdbd9d8a9ceb8f2439b78ab4235
/sushy_oem_idrac/tests/functional/vmedia_boot.py
09854cf90736a289bc6cd6483ee56dc33036032a
[ "Apache-2.0" ]
permissive
https://github.com/cdearborn/sushy-oem-idrac
10ada9d5c7ac17faba6518fdd771b81ad132cd60
7b31b0b0c679fdf015fdb617f600c66dec1c322a
refs/heads/master
2020-12-28T11:04:19.593556
2019-12-11T11:20:05
2019-12-11T11:20:05
238,305,153
0
3
Apache-2.0
false
2020-04-21T13:16:43
2020-02-04T20:59:24
2020-02-04T20:59:55
2020-04-20T14:24:51
37
0
2
0
Python
false
false
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
UTF-8
Python
false
false
3,264
py
8
vmedia_boot.py
5
0.635723
0.630821
0
109
28.944954
79
maliciousgroup/RedCisco_Command_Interepreter
12,309,376,309,093
fd0b29dc55e5614a6344e5844a1df3a025703c32
0d7ed63946224fce7970d27ad15596e33cef34d7
/src/core/command/RunCommand.py
11a560a5eca3c5c8e14ee329bfbf3149cc945582
[]
no_license
https://github.com/maliciousgroup/RedCisco_Command_Interepreter
855f516e2efff90ffe3de201dce4cb4fcee8fe10
8588e42d49a107037093a9135c1d7ae8b506e397
refs/heads/main
2023-03-31T06:26:18.086968
2021-04-05T19:59:06
2021-04-05T19:59:06
354,955,758
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import asyncio import netdev from src.core.base.BaseCommand import BaseCommand from src.core.registry.OptionsRegistry import OptionRegistry class RunCommand(BaseCommand): helper = { 'name': 'run', 'help': 'This command will start the connection process', 'usage': 'run' }...
UTF-8
Python
false
false
6,716
py
7
RunCommand.py
5
0.52293
0.51221
0
162
39.45679
115
katabr/Stepik_auto_test_course
678,604,879,301
8f9360ea21efdbeacb1b233c09ea62afcfbf2dcf
ccd415c933f82e6839e13ce2c5d9b0f11a84f058
/lessons_python/param_test.py
886d8c6ac7dd3d24cf460131b815ea83ab857586
[]
no_license
https://github.com/katabr/Stepik_auto_test_course
21e0999377ddc86cadb19a605e4ecc55aa6f7504
4a0d4d444de09564a64a9e72e716ffaa0287bacc
refs/heads/master
2021-07-25T13:49:37.824621
2020-10-15T12:15:42
2020-10-15T12:15:42
226,271,386
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Тест проверяет возможность создания новой папки from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver import ActionChains import unittest import sys import time class PythonOrgSearch(unittest.TestCase): def setUp(self): #self.driver = webdriver.Remot...
UTF-8
Python
false
false
4,377
py
34
param_test.py
27
0.594199
0.584446
0
135
27.859259
132
montaguegabe/earth-speaks
7,730,941,160,782
e5779857f1907aa28be26715cea44aefdd768b28
f87b5c5df7080e43634b5c27ef1e45a33e76bdfc
/common.py
172e7ad8942a1acd0f8a924d6afa27e9550eb836
[]
no_license
https://github.com/montaguegabe/earth-speaks
2f01dfffc61b39a13fb9950d6fae6fb6e686261e
7011a3b548474776f2d61694d7dda3cf3122b939
refs/heads/master
2022-12-11T05:48:27.006664
2018-05-09T03:27:28
2018-05-09T03:27:28
132,697,128
1
0
null
false
2022-06-21T21:19:05
2018-05-09T03:31:09
2018-11-21T20:19:59
2022-06-21T21:19:05
23,734
1
0
4
Jupyter Notebook
false
false
from os import listdir from os.path import isfile, join import datetime # For map-reduce def flatten_generator(lol): for list2 in lol: for item in list2: yield item class Logger(object): def __init__(self, fname): super(Logger, self).__init__() self.fname = fname se...
UTF-8
Python
false
false
754
py
25
common.py
8
0.627321
0.62069
0
27
26.925926
80
ryanvolz/botcbot
18,622,978,237,147
ca227e9c8c9aa383902ffff60597783bd136a49b
e1a13ad1d0495fab04b0b3f6a59d12e6f67aae42
/resources/basegame/characters/Drunk.py
325d445e64f5f9697bf3fe16906ba8e2a6dc3399
[]
no_license
https://github.com/ryanvolz/botcbot
336bc7c42bcd5bd39497eea409415c0b6c5c5b56
cb1b0a04853a89c0fd945c5823d6625fc68fec28
refs/heads/master
2022-06-08T22:11:17.528803
2020-05-04T04:58:17
2020-05-04T04:58:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Contains the Drunk class.""" from lib.logic.Character import Outsider class Drunk(Outsider): """The Drunk.""" name: str = "Drunk" playtest: bool = False
UTF-8
Python
false
false
172
py
101
Drunk.py
97
0.645349
0.645349
0
10
16.2
40
ronaldoussoren/pyobjc
3,762,391,377,989
c9a635cd5754d4272b2bc702162bd8991b9b83c5
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-MetalPerformanceShaders/PyObjCTest/test_mpsneuralnetwork_mpscnngroupnormalization.py
b899a88ab30c00a4f6f8fdc79239080393d916ef
[ "MIT" ]
permissive
https://github.com/ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
false
2023-06-25T02:49:07
2020-02-29T08:43:12
2023-06-25T00:34:37
2023-06-25T02:49:06
153,281
403
35
86
Python
false
false
from PyObjCTools.TestSupport import TestCase, min_sdk_level import objc import MetalPerformanceShaders class TestMPSNeuralNetwork_MPSCNNGroupNormalizationHelper( MetalPerformanceShaders.NSObject ): def gamma(self): return 1 def beta(self): return 1 def numberOfFeatureChannels(self): ...
UTF-8
Python
false
false
2,226
py
4,006
test_mpsneuralnetwork_mpscnngroupnormalization.py
3,256
0.684187
0.678347
0
79
27.177215
115
hayeonk/leetcode
3,487,513,485,932
5de6b84a01257c4f7f433d8f74fd580037228d86
4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97
/sols/find_duplicate_subtrees.py
ea1a96145408cb2ea73082fe51ce569c31bacb79
[]
no_license
https://github.com/hayeonk/leetcode
5136824838eb17ed2e4b7004301ba5bb1037082f
6485f8f9b5aa198e96fbb800b058d9283a28e4e2
refs/heads/master
2020-04-28T03:37:16.800519
2019-06-01T14:34:45
2019-06-01T14:34:45
174,943,756
0
1
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 from collections import Counter class Solution(object): def findDuplicateSubtrees(self, root): count = Counter() ans = [] ...
UTF-8
Python
false
false
641
py
447
find_duplicate_subtrees.py
446
0.486739
0.483619
0
23
26.913043
83
punitbasnet/Network-Monitoring-and-Database-Sensor-Data-Acquisition
3,083,786,536,032
1974f75e5ae2f9933eb3c79dab4da265dc0c15f8
39172d5cde1a50e782da6b98d321549638716b7f
/Node_Three/code/verify.py
b42bbd6dc4740968d6dd6ab67bf9c3325e5b9514
[]
no_license
https://github.com/punitbasnet/Network-Monitoring-and-Database-Sensor-Data-Acquisition
7f9432419d502a17c0c7a6d8f1c880b706ef9912
2fcad8e8b5f2bde52520cb95535318a3bf70c918
refs/heads/master
2020-05-15T00:34:27.931966
2019-04-18T04:26:59
2019-04-18T04:26:59
182,014,049
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import hashlib import hmac #Files made after execution of this module are hmaclog_date.txt, vreadings_date.txt and badreadings.txt def verify(thefile): datetxt = thefile[-14:] date=datetxt.strip('.txt') #datetime.datetime.now().strftime("%Y-%m-%d") Loc = "Baker" bLoc=Loc.encode() LocID = "39.3...
UTF-8
Python
false
false
2,436
py
21
verify.py
14
0.541872
0.524631
0
74
31.918919
111
DrakeWYH/OnlineEducationSite
16,303,695,886,158
6ef49306b1d15128ca0975964ce063b09da31f00
0b30e2539a5ac26afc0f7cceb8d7af4cba9ef71a
/apps/question/migrations/0031_auto_20180709_1421.py
1402c7d4888c68c6a2b01400d9cd8d7c3abe9e96
[]
no_license
https://github.com/DrakeWYH/OnlineEducationSite
23b4b731fd4653b07ac29d669039cb58b4d84629
9f1d5944f89005aea139a176055e497761f226ea
refs/heads/master
2022-04-14T23:50:10.046285
2020-04-19T04:14:19
2020-04-19T04:14:19
109,455,865
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-07-09 14:21 from __future__ import unicode_literals import DjangoUeditor.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('question', '0030_auto_20180423_1529'), ] operatio...
UTF-8
Python
false
false
534
py
294
0031_auto_20180709_1421.py
77
0.598113
0.535849
0
21
23.238095
83
dongwudanci/fairy-1
8,873,402,461,321
8d115036716bb12c42a7e901aec61175d41c76e0
872592bbd188d5730804eb07b7cff26f7a627509
/src/Account.py
7da2a2a4169cae088dd00ae9ab1e387950e850ea
[]
no_license
https://github.com/dongwudanci/fairy-1
904b9b2acb77e502730b383f7e8b3852bf3af38a
7fe92ad430f9b29e7ca448613ba98c5f953d4028
refs/heads/master
2023-08-07T08:38:50.303302
2021-09-06T22:42:04
2021-09-06T22:42:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from src.MySql import * from src.String import md5, token_encode class Account: def __init__(self): self.db: DB = DB() self.id: str = NULL self.password: str = NULL self.email: str = NULL def login(self, email, password): res = self.db.table('user').where("email = '%s'...
UTF-8
Python
false
false
530
py
8
Account.py
4
0.566038
0.562264
0
17
30.176471
109
Li96224/ReservationUITest
6,493,990,570,780
5abc3f8d8593d50c44b629128b1252efac857960
cf2602265f4a2156f36f19b908f4c70df1486e41
/TestCases/test_recommended_schedule.py
95c303cbb950885a280dcbcd34a3f0550900e1bd
[]
no_license
https://github.com/Li96224/ReservationUITest
72d322377c2d6eaa48c700037ca214a9a9653fc7
99c67181c51443c47dda7b248df7762fc8252473
refs/heads/master
2023-08-22T19:13:02.715540
2021-10-08T14:55:32
2021-10-08T14:55:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from PageObject.recommended_schedule_page import RecommendedSchedulePage import allure @allure.title("推荐课表页-推荐课程信息") @pytest.mark.usefixtures('get_home_page') class TestClassScheduleCard: def test_class_schedule_card(self, get_home_page): assert ('CXWORX腰腹核心' == RecommendedSchedul...
UTF-8
Python
false
false
1,225
py
51
test_recommended_schedule.py
18
0.718886
0.713664
0
21
52.714286
116
tmolcard/databricks-snowflake
2,576,980,391,300
263e258c66bf4c99ab4a640a04607e843f1c9d03
a90448adbea8741b39596dc87322059bb6be42a7
/notebooks/Users/molcard.t@gmail.com/load_customer.py
41a90a2e71da5192f290a5324fa43009627359dd
[]
no_license
https://github.com/tmolcard/databricks-snowflake
2a96f6e7c6917b7f426a721b3fd7d18aea050c49
4e99b9a9654e0c1ce6b457335878becbf7b6fcab
refs/heads/master
2022-11-27T04:38:48.599392
2020-08-01T12:20:28
2020-08-01T12:20:28
283,496,107
0
0
null
false
2020-08-01T12:16:03
2020-07-29T12:42:37
2020-07-31T16:44:12
2020-08-01T12:16:02
17
0
0
0
Python
false
false
# Databricks notebook source dbutils.library.installPyPI("mlflow") dbutils.library.restartPython() # COMMAND ---------- import mlflow mlflow.start_run() # COMMAND ---------- # File storage session parameters appID = dbutils.secrets.get("datastorage", "app_id") secret = dbutils.secrets.get("datastorage", "secret")...
UTF-8
Python
false
false
2,523
py
5
load_customer.py
4
0.693619
0.689655
0
100
24.24
157
kagesaburo27/py1assignment
3,332,894,642,654
0d4e62bd84eff2eb7c698e58afa0aef89780c896
56e4aafbb757ea1a10c39270948331ec72ffdad7
/test/pytest.py
22939d003a114cf42252a562fa8c6fbaf89bdc70
[ "CC0-1.0" ]
permissive
https://github.com/kagesaburo27/py1assignment
7e7dff8f8792ca06cefb7b71422a145680b43da6
200bed0c8b64005d2411f00c330721c13d92aa73
refs/heads/main
2023-08-15T12:40:24.521053
2021-09-26T19:38:07
2021-09-26T19:38:07
410,575,426
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append('.') from src.CoinGeckoAssignment import *
UTF-8
Python
false
false
73
py
3
pytest.py
2
0.739726
0.739726
0
3
22.333333
37
Francois-ziserman/youtube-metadata
17,557,826,326,784
fc172ee65372b619e0446cc4c88b3c8639b62f61
6a765c870ee0980dab8eaea660ed1a81e931c58f
/youtube_metadata_csv_to_db.py
d0723b6ccef2f8a22f174a7b28e8934984774ba2
[]
no_license
https://github.com/Francois-ziserman/youtube-metadata
ec5572a174a53de92343e70ed142152faf52c90b
e080e363e2f9cc3f31850942d5fbb9445eaf510d
refs/heads/master
2020-03-18T03:19:31.178965
2018-05-21T07:43:08
2018-05-21T07:43:08
134,234,644
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sqlalchemy import * import csv from datetime import datetime DT_FORMAT = "%Y-%m-%dT%H:%M:%S" CSV_PATH = "/Users/francois/Google Drive/these_pauline/csv/" class Db: def __init__(self): self.engine = create_engine('sqlite:///dbyoutube.sql') self.metadata = MetaData() self.table_video =...
UTF-8
Python
false
false
6,072
py
2
youtube_metadata_csv_to_db.py
1
0.409585
0.396904
0
135
43.977778
96
gushedaoren/dianping-bawancang
16,131,897,188,951
207cfa482d72f6e883c471f9223ffb8913bc4204
8e46e27f70e7688b9341b14527d8e687f2524321
/utils/SMMailTool.py
ae757b6537c0905b19b621cec02b8e8eeeac7f64
[]
no_license
https://github.com/gushedaoren/dianping-bawancang
71e24973eb445ec4908fe0508cd0ff1080d6bb31
a01118cc3dccbfd05b264f2756622d66be0e4cd3
refs/heads/master
2022-11-17T06:56:34.672935
2020-07-13T15:02:40
2020-07-13T15:02:40
279,333,607
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf-8 import smtplib from email.mime.text import MIMEText from email.header import Header # 第三方 SMTP 服务 from time import sleep mail_host="smtp.xxx.com" #设置服务器 mail_user="xxx" #用户名 mail_pass="xxxx" #口令 sender = 'xxx@xxx.com' mail_port = 994 def sendSMMail(title, content, receivers): message = MIME...
UTF-8
Python
false
false
810
py
5
SMMailTool.py
4
0.667969
0.660156
0
35
20.857143
60
AK-1121/code_extraction
1,872,605,747,648
b6d0ee1afef4261e4dbba8942af00b85a1c0d5e8
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_269.py
8befbf4df1bb76a09bb487be7dd1b88cba7aa3d5
[]
no_license
https://github.com/AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Setting up Django on an internal server (os.environ() not working as expected?) sys.path.append('/path/to/flup/egg/flup-1.0.1-py2.5.egg')
UTF-8
Python
false
false
140
py
29,367
python_269.py
29,367
0.728571
0.692857
0
2
69
81
polyactis/repos
3,839,700,803,725
59bb259861f587dfa4520895f8cc457fdf31c5da
98a7b8c539d17946e361495ebb5eed3d83727e38
/variation/trunk/src/Camp.py
b5ad9a0b9adb0faf8e8dc970fc937b4c86174900
[]
no_license
https://github.com/polyactis/repos
8a6a9703ca9ec2f9b75fb5bda06d4d29aace19c1
7b402496aae81665e6a915b5021b94d56e034c9d
refs/heads/master
2020-12-08T16:30:24.175800
2013-02-27T19:45:20
2013-02-27T19:45:20
8,463,267
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" A wrapper for the camp program (Kimmel et al., 2008). -o ..., --outputFile=... CAMP output. -d ..., --delim=... default is ", " -m ..., --missingval=... default is "NA" -n ..., --sampleNum=... Num of samples --parallel=... Run Camp on the cluster with standard parameters. The arguement is used ...
UTF-8
Python
false
false
8,957
py
1,119
Camp.py
474
0.683376
0.673105
0
316
27.338608
134
Mabushi1227/Nitech
1,881,195,711,209
0a3e474e2fecddceedde0cbc0bf8fbb42e870a69
d9ee19f45a92c9c5656883263d874596c50bf314
/python/CG/MidExam.py
209c20dc0c4a5d9b4966b3a801ecbc4059aa8758
[]
no_license
https://github.com/Mabushi1227/Nitech
d89fec954574708dcebce9aec53d0fe279778949
dd86bf9ee45c8ba4c8dbd878618a939cfb12088b
refs/heads/master
2022-01-28T15:16:27.775319
2022-01-13T05:47:14
2022-01-13T05:47:14
180,480,168
0
0
null
false
2019-08-10T02:54:28
2019-04-10T01:49:14
2019-07-24T02:41:44
2019-08-10T02:54:28
2,152
0
0
0
C
false
false
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import numpy as np #2 array_2 = np.array([[48.,46,2,7,14],[50,52,3,8,15],[42,58,9,11,17],[34,30,14,18,20],[25,31,39,30,24]]) ##2.(a) y_2a = np.zeros([3,3]) for i in range(0,3): for j in range(0,3): for k in range(0,3): ...
UTF-8
Python
false
false
761
py
154
MidExam.py
33
0.492696
0.357238
0
36
19.916667
103
AmimulAhshanAvi/Learn_to_code
18,554,258,758,896
6c8603e1e5e21f63646490a99a3706e2fc560979
6296b204c3bc8f1e0043baf08399443ece4ff07f
/Assignment/Ch-1/pg-24/pg-24(random_function).py
93ec5b89b29c4f8970d213cd067d362825e28167
[]
no_license
https://github.com/AmimulAhshanAvi/Learn_to_code
e4b4be9eedc66fe142b1106641088f977852297e
0da02a055058c35d52b6713ef7989ea0b4a967b7
refs/heads/master
2023-02-17T18:31:36.162459
2021-01-13T16:40:05
2021-01-13T16:40:05
322,248,799
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random verbs = ['Leverage','Sync','Target','Gimify'] adjectives = ['A/B Tested','Freemium','Hyperlocal','Siloed'] nouns = ['Early Adopter','Low-hanging','pipeline'] verb = random.choice(verbs) adjective = random.choice(adjectives) noun = random.choice(nouns) phrase = verb + ' ' + adjective + ' ' + noun print...
UTF-8
Python
false
false
329
py
24
pg-24(random_function).py
16
0.683891
0.683891
0
13
24.307692
60
N-H-C/CSE_2201_Algorithms_Code_Python
7,559,142,468,637
650e57dddd10b7e446deb7de3dca110cc7fae643
8a13c1026ab9182fd4a083794a98654bcdcb0006
/graph_dfs_pythonic_2.py
69a8af4826e81983898cbd4ad82c5a08ac03fea1
[]
no_license
https://github.com/N-H-C/CSE_2201_Algorithms_Code_Python
efe95efa49163a2ea82b025444453b999a1d6c1e
7fbec9ae293b719419cb218af9ae6ff2b4dae4cc
refs/heads/master
2023-02-18T20:43:23.601183
2021-01-22T15:27:37
2021-01-22T15:27:37
265,626,976
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def dfs(adj, visited, current_node): if current_node not in visited: visited.add(current_node) for neighbour in adj[current_node]: if neighbour not in visited: dfs(adj, visited, neighbour) print(current_node, end=' ') n = int(input("Enter number of nodes: ")) ...
UTF-8
Python
false
false
763
py
22
graph_dfs_pythonic_2.py
22
0.59633
0.59633
0
30
24.433333
58
Nikkuniku/AtcoderProgramming
13,340,168,428,712
64c6f7a3b3ab2430b59f84a6cf1ecb54272d9e2b
63b0fed007d152fe5e96640b844081c07ca20a11
/ABC/ABC100~ABC199/ABC160/E.py
0fced2f2d45bb4c9431e2218ddf59eefe68b6c1c
[]
no_license
https://github.com/Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
x,y,a,b,c=map(int,input().split()) p=list(map(int,input().split())) q=list(map(int,input().split())) r=list(map(int,input().split())) p=sorted(p,reverse=True) q=sorted(q,reverse=True) r=sorted(r) p=p[:x] q=q[:y] import heapq from collections import deque heapq.heapify(p) heapq.heapify(q) r=deque(r) for i in range(c...
UTF-8
Python
false
false
711
py
2,078
E.py
2,067
0.561181
0.561181
0
39
17.25641
34
BilyiVoron/monty2019
17,033,840,312,520
32ec1e50579d614f713622314b13ee71ae8ecd4d
a989df9c252dccfaadc7116a271503a9f6b762b4
/tests/tests_api.py
51d96c55b2165ffd049b57d6503eba0028adc228
[]
no_license
https://github.com/BilyiVoron/monty2019
c084d29cabbe352ac43a6db8d3af59378b2bfc7c
7823f08ab8196c2c537c4996571b6de31a27a846
refs/heads/master
2020-07-28T19:46:55.417514
2020-05-27T12:07:21
2020-05-27T12:07:21
209,516,025
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import get_user_model from django.utils import timezone from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase, APIRequestFactory, APIClient from api.views import TestList, TestDetail from monty.models import Dictionary, Theme, Word, Test User = get_user...
UTF-8
Python
false
false
11,953
py
27
tests_api.py
17
0.555593
0.54595
0
372
31.05914
106
momo9/pyfriend-django
16,071,767,659,833
131b0d60c72f7bdb34c3d4d1d93dab0e33713b58
06fa3bd0c21ae9d75a860f3563dab3bed2c20df4
/website/website/urls.py
eb0867243ad5ca48fee717c008f67409c63e88cb
[]
no_license
https://github.com/momo9/pyfriend-django
282891c1e4f3fde3bd1fff1a42c11400fa4d5526
bbcf2f576273d375e235f3a5987f8f3338eccf32
refs/heads/master
2021-01-18T07:31:41.663899
2014-07-24T03:41:42
2014-07-24T03:41:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, include, url from pyfriend.views import register,login,logout from django.contrib import admin import settings admin.autodiscover() urlpatterns = patterns('', url(r'^admin/',include(admin.site.urls)), url(r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_ro...
UTF-8
Python
false
false
507
py
10
urls.py
5
0.65286
0.65286
0
16
30.6875
123
EdwinKato/bucket-list
1,047,972,025,159
ec269401b9ce577cd8af71637b606ca095967281
c16c32efbc80953694903fde58c08fb53ff2dc1d
/backend/api/__init__.py
7b9d92ae0726a5fcf00d18e7fef6f56c73734379
[ "MIT" ]
permissive
https://github.com/EdwinKato/bucket-list
9af5a7a4c6852c881dcc98d4dccf18b0a74baaff
16b71cce59df2f28061b8f5d6b2cfb1f679381c4
refs/heads/master
2022-12-09T13:54:23.046711
2017-08-18T12:56:36
2017-08-18T12:56:36
95,651,248
0
1
MIT
false
2023-06-21T15:39:22
2017-06-28T09:15:04
2017-08-08T06:05:54
2022-12-08T00:00:30
56,226
0
1
16
CSS
false
false
from flask_sqlalchemy import SQLAlchemy import connexion from config import config db = SQLAlchemy() def create_app(config_name): app = connexion.FlaskApp(__name__, specification_dir='swagger/') app.add_api('swagger.yaml') application = app.app application.config.from_object(config[config_name]) ...
UTF-8
Python
false
false
642
py
52
__init__.py
39
0.584112
0.584112
0
28
21.928571
68
risent/little_project
9,405,978,418,884
f7cc30e9b331e030687b72522be45e05a4fa7ca9
66c40b180e7ad5b10b49d1159dc4a6d8e53131d7
/code/record/pottery/migrations/0005_auto_20191002_1045.py
792ae41367a51005e1e6b6d898a4f715f15fe8cd
[]
no_license
https://github.com/risent/little_project
6b2ebeb4ae380fec554b2684792ef7e4fd607ecb
74792d57d680e343ab4aab7b41dd27fd38a4ef01
refs/heads/master
2020-08-14T03:01:10.085798
2019-10-14T05:55:58
2019-10-14T05:55:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.7 on 2019-10-02 02:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pottery', '0004_auto_20190930_1345'), ] operations = [ migrations.AlterField( model_name='coupo...
UTF-8
Python
false
false
665
py
64
0005_auto_20191002_1045.py
43
0.610526
0.56391
0
24
26.708333
123
wpwbb510582246/InterestingProgram
19,456,201,862,411
88dece8bd9ba895bf17f16f5ded7073edc7f8f62
fe1c4deaab5f1d41250021b1e5098944d04f5945
/ChatWithAI.py
93ddafca8bcf48c2e1376e66a92fb7ce1cf9754d
[ "Apache-2.0" ]
permissive
https://github.com/wpwbb510582246/InterestingProgram
4185f353e24c1238e8ba2e47c39b6df78d31ab18
8d0f71a96158f5e08085024038fd4ad137789858
refs/heads/master
2021-10-21T17:48:10.398593
2019-03-05T12:50:41
2019-03-05T12:50:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 调用腾讯智能闲聊API实现聊天,使用腾讯优图语音合成API实现朗读结果 """ import time; import base64; import hashlib; import random; import json; import string; import os; import urllib; from urllib.parse import quote; from urllib import request; # 基础类 class BaseClass: def __init__(self, url): """ :param url:a...
UTF-8
Python
false
false
8,476
py
3
ChatWithAI.py
2
0.495719
0.482878
0
243
27.8107
103
alexdy2007/DataMiningClusteringText
18,408,229,834,883
86b38ba139e237b23caf781ba42390998142d3aa
d8fec967bdf1a873c99f1c010aa0b05f891ff03b
/analysis/multidimensional_scaling.py
c04661a7bad142818f7eb602b24521cfd390c1f7
[]
no_license
https://github.com/alexdy2007/DataMiningClusteringText
84cc32ac3dece81903a71547d5bb1da8a8e69948
7eaf5ce06f1fd9f358613faa9f97d081e9ad8ae5
refs/heads/master
2021-01-18T20:19:45.873503
2017-03-21T23:48:41
2017-03-21T23:48:41
85,005,380
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from analysis.cosine_similarity import get_cosine_similarity, get_euclidean_distance from sklearn.manifold import MDS from sklearn.decomposition import TruncatedSVD def get_multi_scaling_positions(words_freq_matrix, euclidean=True): print(euclidean) if not euclidean: mds = MDS(n_components=2, dissimil...
UTF-8
Python
false
false
830
py
39
multidimensional_scaling.py
11
0.727711
0.721687
0
20
40.4
111
shearern/drupal-deployment-tools
16,020,228,039,317
c89c0f2fe23dab0434315d14ede0b167de9dd412
65db4dea2aa15210dddcc74fb09a07468e005a79
/src/init-drupal-deploy.py
ccb0ba2fed4f57f373eae8ab8cc335add3109198
[]
no_license
https://github.com/shearern/drupal-deployment-tools
860ea9714f1d34988240e76c1fa11b219b4727a9
22171c5075c2ac8819fe26cfa6565950a8487c8f
refs/heads/master
2021-01-10T03:47:16.356106
2015-11-24T03:45:08
2015-11-24T03:45:08
46,764,883
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python '''init-drupal-deploy.py Call in Drupal project folder to init setup''' # Create drupal-deploy folder # Add secrets folder to .gitignore
UTF-8
Python
false
false
157
py
58
init-drupal-deploy.py
55
0.745223
0.745223
0
8
18.75
46
XarisA/nethack
2,078,764,193,364
d79173570cc92bf70d60f4347a57147f070bbafc
0c79f36da68f46d1e2ba19f0c2d3296f008f86c1
/GetInfo.py
eb5b36bff77fae3a37d1c5b9d725c8df72c99288
[ "MIT" ]
permissive
https://github.com/XarisA/nethack
ecf78e82c41ef2a0b8b29b9c852244ba2a899e2f
b5622286679cc0d337270b3c7fcb9f36885ed80f
refs/heads/master
2023-01-10T22:43:41.445861
2020-11-21T15:54:22
2020-11-21T15:54:22
109,478,635
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import os from socket import * import dns.resolver import dns.reversename # TODO Pass arguments from terminal def reach_host(hostname,arguments='-c 1'): # Pinging the host print ('[+] Pinging ' + hostname) if os.system("ping " + arguments + ' '+ hostname) == 0: print ("Host ...
UTF-8
Python
false
false
1,001
py
5
GetInfo.py
3
0.647353
0.643357
0
39
24.666667
74
Johnkhk/assignment5
6,975,026,922,815
2023401a078845134eb786e0b35e9f26b211ca0e
9d8aa183b700613b9a95cd722c5f5554621d120e
/init_db.py
3af4aa503dda67dbf045511904ca378a9211bf98
[]
no_license
https://github.com/Johnkhk/assignment5
4d92268e40bcef31eb6ccdc89f08f6f6ff2c00b3
aef6175e2efb6853f12780ced35fa749cb7c6f91
refs/heads/master
2021-01-06T19:34:21.916499
2020-02-18T20:37:02
2020-02-18T20:37:02
241,461,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Import MySQL Connector Driver import mysql.connector as mysql # Load the credentials from the secured .env file import os from dotenv import load_dotenv load_dotenv('credentials.env') db_user = os.environ['MYSQL_USER'] db_pass = os.environ['MYSQL_PASSWORD'] db_name = os.environ['MYSQL_DATABASE'] db_host = 'localhos...
UTF-8
Python
false
false
1,827
py
4
init_db.py
3
0.673235
0.614669
0
53
33.490566
107
bswopes/pmmm
12,103,217,847,089
18f047416f0a31e244d74fe854fa4b9a7bbe33b3
17bb75cca1e2607b8c547a3cc12daa7fac9634ba
/pmmm/db_pm_hours_record_handle.py
0afb4d2d700404b23c7b1ea357636def07c5da4a
[]
no_license
https://github.com/bswopes/pmmm
8d8ecbef09d7f963b2ba1e90a6478a6a85c95e6c
2ffb3844f2a2f84ce868141ab3335c3297296b0e
refs/heads/master
2021-01-20T22:58:49.581215
2013-08-10T20:09:10
2013-08-10T20:09:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import sqlite import sys #setdefaultencoding()方法在系统启动时设置,需要加上reload(sys) reload(sys) #设置默认编码为utf-8,解决里程碑为中文时报编码错误的问题 sys.setdefaultencoding('utf-8') class PmtableController: #查出工时记录表中所有项目名 def select_proj_name_table(self,db): cu=db.cursor() sql="select distin...
UTF-8
Python
false
false
12,828
py
57
db_pm_hours_record_handle.py
17
0.650661
0.648543
0
204
55.892157
402
cenan/bugtracker
16,982,300,713,360
de9fd1640d0c74ca6dfba7354317a33c3018dbf6
9a86990885b8e61bd315b6da8eddcfd4359acddf
/models/projects.py
da14e19cdfb654785e87067481f9b2ef2ebe6c7f
[]
no_license
https://github.com/cenan/bugtracker
a4abcadbe3e487b3c1485ee6df27e7d08fed1c71
543dffc07949e6b2b2048857a74b52544f878aef
refs/heads/master
2020-05-29T08:55:50.538530
2015-09-20T20:02:35
2015-09-20T20:02:35
42,827,033
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from config import db def get_projects(): return db.select('project') def get_project(project_id): try: return db.select('project', where='id=$project_id', vars=locals())[0] except IndexError: return None def create_project(project_name): return db.insert('project', project_name=proj...
UTF-8
Python
false
false
331
py
57
projects.py
34
0.670695
0.667674
0
14
22.571429
77
lywen52/live-age-gender-estimator
5,884,105,216,466
7fbda80b68e25c06eeb91c66e74df49a188ed68f
135cbac63a8f7533f106f0c9474af2472316a25c
/EstimateAge.py
af57b4e311cc2d9ad73825199b507f75cbd3b69f
[]
no_license
https://github.com/lywen52/live-age-gender-estimator
e52fc68061a136987887b20c8d2c69eb60a048b5
5dea45c9203bb3cbb8a633c66bd840ff75d7c0c6
refs/heads/master
2021-01-20T16:50:28.587797
2016-11-02T10:54:59
2016-11-02T10:54:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import VideoThread if __name__ == '__main__': help_message = ''' USAGE: LiveDetector.py <image_names> ... Press any key to continue, ESC to stop. ''' videoThread = VideoThread.VideoThread() videoThread.start()
UTF-8
Python
false
false
277
py
7
EstimateAge.py
5
0.581227
0.581227
0
15
17.066667
44
Arielv1/backend_messaging_app
7,945,689,511,475
c299b8d82b78a450943ea331677c4cd7d28227bb
6405b21d2983a7f8060e9f9bb7fafb35bb370f07
/UserProfile/models.py
f3e9af60f911951823ef51ca1a34e2bc317d00ae
[]
no_license
https://github.com/Arielv1/backend_messaging_app
9536a0de8a82dc6c6e9dcff731aa9baa3d6be05b
da32b39d6cca95a539083fc5a2f93932e98fcbbb
refs/heads/main
2023-07-18T13:47:41.936418
2021-08-28T14:55:39
2021-08-28T14:55:39
400,723,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.contrib.auth.models import BaseUserManager from django.utils import ...
UTF-8
Python
false
false
565
py
11
models.py
8
0.780531
0.775221
0
16
34.3125
70
ccbib/dp-plastex
1,984,274,902,099
ae0b686c7a49db1e968672e0711bd5f27da82a55
8cb97e2325658bf6aee62bb7c098799d514b54bb
/pgxhtml/__init__.py
86a35b4ffcf1b8bf640c3cbbd75934a1a4a5019a
[]
no_license
https://github.com/ccbib/dp-plastex
c37cf8c3193d2c53da3a042446b6151973e7927f
9c0a383d187e5b292a934e91790601085d2be6e3
refs/heads/master
2020-12-24T17:18:08.387446
2011-11-21T22:28:50
2011-11-21T22:28:50
1,901,071
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from plasTeX.Renderers.XHTML import Renderer as BaseRenderer class pgXHTMLRenderer(BaseRenderer): """ Renderer for plain text documents for upload to Project Gutenberg""" pass Renderer = pgXHTMLRenderer
UTF-8
Python
false
false
213
py
4
__init__.py
3
0.788732
0.788732
0
7
29.428571
76
wyvernium/Sorting-Algorithms-Visualized-and-Compared
5,274,219,882,779
e9246f51a30ad242390544a1da98ffcea32f3547
3829f93348321b7f7b116b5d96437ed61bcf106c
/kthSmallestNumber.py
e6c0ca5b92a8b10362c56edb1250426c6fcb1c78
[]
no_license
https://github.com/wyvernium/Sorting-Algorithms-Visualized-and-Compared
760f433e916a6aef51e2e5228fa2196b837d7c4e
3ffa59d05a5d7703264fb529e335b244d212cbad
refs/heads/master
2022-04-04T09:41:22.588309
2019-12-23T19:37:08
2019-12-23T19:37:08
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Muhammet Furkan MUŞTU 160403041 """ """k th smallest number""" # This function returns k'th smallest element from random import randint def randomPartition(arr, firstIndex, lastIndex): n = lastIndex - firstIndex + 1 pivot = randint(1, 100) % n arr[firstIndex + ...
UTF-8
Python
false
false
1,904
py
11
kthSmallestNumber.py
10
0.592223
0.571729
0
66
26.833333
85
ffc28/ImageSeparationL2TI
4,595,615,049,121
05725e1d518ce196c3f28227c87d84d548f2083b
e7126859917b5311ee1796383baacb81b7d152a1
/Code/Three_Projection/three_projection_dic_RectoVerso.py
35f8d82e880f58f285faa3ccf9b13f713554666c
[]
no_license
https://github.com/ffc28/ImageSeparationL2TI
665b521ab268fc1fcbba33adb326a5b7b4ce3681
d500358082383323c564c6242a9acaa0dfb28de8
refs/heads/master
2023-06-02T12:11:19.211694
2021-06-18T14:20:19
2021-06-18T14:20:19
264,213,127
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Trying to use the dictionary learning import matplotlib.pyplot as plt import matplotlib.image as mpimg import scipy as sp import numpy as np import scipy.linalg as la from skimage.color import rgb2gray from skimage.util import view_as_windows from sklearn.feature_extraction.image import extract_patches_2d, PatchExtra...
UTF-8
Python
false
false
13,155
py
46
three_projection_dic_RectoVerso.py
39
0.665146
0.626682
0
412
30.924757
119
roque334/smd
3,607,772,542,292
17949ada38c95583143212cff88c66bb16e4a27e
593e6e414a32295d64b8c4ef6c8e8ec086f20ef2
/Pyuic4/registrarDonacion.py
ae65478a1fde534a2af24157dfce2fafba9109a0
[]
no_license
https://github.com/roque334/smd
5a2218aaf163349e5d9062721b4afca6e24f4872
545172084dbce3d7fee314f85c9d5ae9187c2505
refs/heads/master
2021-01-15T21:24:05.640956
2013-04-27T21:19:39
2013-04-27T21:19:39
9,633,312
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'registrar_donacion.ui' # # Created: Thu Apr 25 18:33:43 2013 # by: PyQt4 UI code generator 4.9.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 exc...
UTF-8
Python
false
false
20,908
py
17
registrarDonacion.py
14
0.722685
0.703502
0
327
62.923547
177
dlutwy/ppim
2,911,987,875,385
d13d82764cb1c752f312a84f2756d6b8c59424da
2f05e4aa502d5249d32d406979e61e47a4c75839
/utils/homolo/homologene.py
8a228c67970e5002215a81d902a50b28304b264d
[]
no_license
https://github.com/dlutwy/ppim
c59450b72c29cd6f48ad62fb904a04a569fd28ba
0992df73dca86c6631af5a23502dab9c75f34af4
refs/heads/master
2022-12-13T05:01:52.056042
2020-09-03T06:38:34
2020-09-03T06:38:34
292,164,676
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import namedtuple import pickle import os import sys class HomoloQueryService(): def __init__(self): # super().__init__() Record = namedtuple("Record", ['homoloID', 'TaxonomyID', 'geneID', 'geneSymbol', 'proteinID', 'proteinRefSeq']) self.homoloID2Genes = {} self.gen...
UTF-8
Python
false
false
1,352
py
24
homologene.py
18
0.589497
0.574704
0
31
42.645161
119
EnriqueBet/Python-UAM
14,027,363,193,640
ecfad2c9c91d2bfd72aec774fb2ac391ef919da8
9a4f00cc750b9b9571ec2c388e05944b46a1dcdd
/Numpy/slicing.py
935f69e32668776094d35e1de48091fa36c38964
[]
no_license
https://github.com/EnriqueBet/Python-UAM
78252914b19f70d6f90a249243b0629e5741dfd7
8a99c39e7d4c46f567492f8f6848971ffdf1eb27
refs/heads/master
2021-05-05T05:32:48.847380
2018-03-11T20:52:46
2018-03-11T20:52:46
118,714,249
2
0
null
true
2018-01-24T04:57:56
2018-01-24T04:57:56
2018-01-24T04:57:39
2018-01-24T04:55:42
29
0
0
0
null
false
null
''' Aprender lo que es el slicing. ''' # Librerias import numpy as np # Slicing sirve para obtener varios elementos de la matriz ea la vez lista = list(range(6,21)) # Slicing en numpy matriz = np.zeros((10,10)) x,y = matriz.shape val = 0 for i in range(x): for j in range(y): val+=1 matriz[i,j] =...
UTF-8
Python
false
false
852
py
3
slicing.py
3
0.640845
0.586854
0
51
15.686275
68
uralogical/pasori
10,634,339,026,989
0ddf2de7f74016887445f63145a2cd85933abe9a
2989e7a67dd4f5f67597dac5593132ae72f9d399
/src/python/vendor/slack/slackbot_settings.py
3cb70f320b7d245fa6ceeb17496d51cc59c941fe
[]
no_license
https://github.com/uralogical/pasori
c8483a03937257e9f2acd709dde6f4b120f1c699
ddc5e9d6861d08125a6a4646d84a7b5719238b98
refs/heads/master
2021-01-15T09:52:22.753271
2016-09-18T06:23:02
2016-09-18T06:23:02
68,296,354
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- API_TOKEN = "xoxb-80831586261-EQu2WjqSGmxlV56NPZF7Z8qy" CHANNEL = 'test' DEFAULT_REPLY = 'ぱそりだよ☆'
UTF-8
Python
true
false
135
py
8
slackbot_settings.py
5
0.691057
0.552846
0
5
23.6
55
philuxe/ACI-Python-Scripts
15,152,644,653,053
02127ce77dba69e99a4c932e893211f554546ad4
74001570e065aecf34c6353e1911dc40d4f24195
/Set_Config/aci_add_static-paths.py
297b6453fa49c4fe5ce683e8bddbc911a4d85dbe
[]
no_license
https://github.com/philuxe/ACI-Python-Scripts
96c75ba26712b891c331ea991e4aace896167736
c75c3aeffaa32b18c3a9c53947681e4c3a584f7d
refs/heads/master
2021-06-20T21:04:59.795636
2021-02-05T09:39:47
2021-02-05T09:39:47
176,603,329
3
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv import requests.packages.urllib3 from cobra.mit.access import MoDirectory, ClassQuery from cobra.mit.request import ConfigRequest from cobra.mit.session import LoginSession from cobra.model.fv import Tenant, Ap, AEPg, RsPathAtt requests.packages.urllib3.disable_warnings() # Current Features : # Support cr...
UTF-8
Python
false
false
3,652
py
13
aci_add_static-paths.py
7
0.60241
0.596386
0
86
41.465116
111
timxian/caraml
10,883,447,159,683
cd19d2462778233c51aa8b9d36ec18a3aee2d02c
8fec6af8d442811428247f226595b7e4356c4b40
/tests/test_proxy.py
34518fdc2a9f1a9dd16035577e7b72c2e6ba0996
[ "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
https://github.com/timxian/caraml
5dcd5213b767cbacbc09dee9be7c190047bf0a53
2a6ff5e51c7294acb8273e140ea2280b63ac9408
refs/heads/master
2023-04-08T19:55:56.596509
2018-10-28T21:15:34
2018-10-28T21:15:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from threading import Thread import pytest from caraml.zmq import ZmqProxyThread, ZmqSender, ZmqReceiver, ZmqPusher, ZmqPuller @pytest.mark.timeout(1) def test_proxyed_send_repceive(): host = '127.0.0.1' port_frontend = 7000 port_backend = 7001 N = 6 msg_send = list(range(N)) msg_receive = [No...
UTF-8
Python
false
false
2,450
py
11
test_proxy.py
9
0.544082
0.53102
0
83
28.518072
83
ManikSinghSethi/SoftDesSp15
2,362,232,024,183
bf88294b5e34e2779ca9f60e6e0e27eea71cb75a
c4dfcd23aa7e2511efc7a749f7dce293c102e240
/computational_art/recursive_art.py
d01e2420d18faff97206faa6027c189e9896bbae
[]
no_license
https://github.com/ManikSinghSethi/SoftDesSp15
253db30f18cb0521cdf87611ffeca6a5f0591afa
b080febffecf9a0351131957410d85ab0d4c70bb
refs/heads/master
2021-01-24T02:45:36.751664
2015-03-30T03:56:12
2015-03-30T03:56:12
30,140,333
0
0
null
true
2015-02-01T08:03:28
2015-02-01T08:03:28
2015-02-01T08:03:28
2015-01-31T23:05:05
3,839
0
0
0
Python
null
null
""" TODO: Put your header comment here """ import random <<<<<<< HEAD from math import cos, sin, pi ======= >>>>>>> 68b2965c9c5fa90bd2433f3b7f672e6b29c1bbbb from PIL import Image def build_random_function(min_depth, max_depth): """ Builds a random function of depth at least min_depth and depth at most ma...
UTF-8
Python
false
false
8,136
py
12
recursive_art.py
9
0.598574
0.560841
0
240
32.9
154
bubthegreat/PyRom
1,992,864,873,506
b090f1d76caa3628e42010f7c78b5cd72a4f55ec
8a8e71a781e93b49a9ec73ecb997b69f8e80060f
/src/rom24/commands/do_wiznet.py
954aa5977ad22eaedff276a210adfe74fb32f47d
[]
no_license
https://github.com/bubthegreat/PyRom
82a35ceddfedb64c144d953722b1fc9271af39c9
decb4bc20e4911e1787977a57c83df38e16ad6a7
refs/heads/master
2022-12-07T12:31:29.796552
2021-12-26T21:07:09
2021-12-26T21:07:09
292,462,898
0
0
null
true
2020-09-03T04:08:59
2020-09-03T04:08:58
2020-01-04T22:07:43
2014-08-29T15:05:03
3,214
0
0
0
null
false
false
import logging logger = logging.getLogger(__name__) from rom24 import merc from rom24 import interp from rom24 import const from rom24 import state_checks def do_wiznet(ch, argument): if not argument: if state_checks.IS_SET(ch.wiznet, merc.WIZ_ON): ch.send("Signing off of Wiznet.\n") ...
UTF-8
Python
false
false
2,146
py
355
do_wiznet.py
347
0.592265
0.588071
0
63
33.063492
84
manojakumarpanda/This-is-first
5,970,004,558,621
246d8501383cda495b677a3e6de71f982e98cee3
7b81fb89873f48b63da2f4f607039f2d53fd4135
/sequence/string/in3a_opaaa.py
5a22909c6e83033f15372ee8350e7d0a8ee52b9b
[]
no_license
https://github.com/manojakumarpanda/This-is-first
9f7d498ace68fc53146e5c2d0769e612b7eedd43
147c230604c35b19bdc40bd9f6207f8aaf2708b1
refs/heads/master
2021-07-30T10:38:56.045002
2021-07-26T09:39:19
2021-07-26T09:39:19
233,637,965
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#program for input of a4b3c2 the output should be aaaabbbcc st=input('Enter a string in the format of a3b3::') st2='' for ch in st: if (ch>='a'and ch<='z')or(ch>='A' and ch<='Z'): cha=ch elif ch>='0'and ch<='9': i=int(ch) st2+=cha*i else: pritn('You have entered a wrong forma...
UTF-8
Python
false
false
421
py
158
in3a_opaaa.py
135
0.608076
0.579572
0
12
34.083333
95
tatyana12/Django-
11,261,404,270,025
d989493f9be07bdac1ef5b10f5cce37fa98b32cf
2ec2cd988224d69a031d145d15475c44144a661e
/apps/realtors/admin/forms/__init__.py
eecedd1cbcaadf906327ac937e522a416f048208
[]
no_license
https://github.com/tatyana12/Django-
dfd620ef924c190ba319522fde7548c00e4822c1
cadc053776e23ecc542be99ae8c755c5a8b0c084
refs/heads/master
2020-03-15T15:53:42.688022
2018-05-09T01:07:59
2018-05-09T01:07:59
132,223,075
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from realtors import RealtorAdminFormSet, RealtorAdminForm __all__=('RealtorAdminFormSet','RealtorAdminForm')
UTF-8
Python
false
false
109
py
190
__init__.py
140
0.834862
0.834862
0
2
54
58
shmiko/discograph
11,003,706,215,928
1f202a271a2140d9b52a16a56bd2cf81aa5dcbf2
6fbcf5486fdc0ea2c8240e362ee7eb02391ebf1f
/discograph/library/test/test_Release_from_element.py
4e079ce7a380ccaf22f7f0eadcd060d308324e15
[ "MIT" ]
permissive
https://github.com/shmiko/discograph
5532386b3cefd28bb9193b4a65d8039e7132ba6c
8ed9ab4248a458a5a4753274861590c446959f8d
refs/heads/master
2020-04-29T07:26:54.175232
2015-10-14T16:27:46
2015-10-14T16:27:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- encoding: utf-8 -*- import mongoengine import unittest from abjad import stringtools from discograph.library.Bootstrapper import Bootstrapper from discograph import library try: from xml.etree import cElementTree as ElementTree except ImportError: from xml.etree import ElementTree class Test(unittest.Te...
UTF-8
Python
false
false
62,344
py
35
test_Release_from_element.py
30
0.316709
0.301353
0.000128
1,469
41.423417
451
torpedolabs/amulet
18,588,618,471,315
8efdcdb5af76319a05e2f535ed9fa8641a8a3606
eb6e9d1dba0e6d649daf09a5568aeadeeedea94a
/login/controller.py
97c8a025cb3e76f6a9d48ec597a94d12a93f183e
[]
no_license
https://github.com/torpedolabs/amulet
fd576e1ffa75e5f3b555b38d627b405368fd5e47
ab7cb06df2ed0aed26ca2363b2cf5ab2cdc75212
refs/heads/master
2021-01-10T01:55:53.720805
2015-11-07T06:51:10
2015-11-07T06:51:10
45,725,262
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'xstead-master' import random, string, os import config, datetime, fileinput from users import get_user_by_email import time from sinchsms import SinchSMS # # generate random pin code # xxxx digit # def generate_random_code(): return ''.join(random.choice(string.digits) for _ in range(4)) # # check...
UTF-8
Python
false
false
4,169
py
15
controller.py
8
0.57136
0.568961
0
176
22.6875
104
magnusvaughan/maestro
10,660,108,850,592
de0105d514bc2c49a6c8312a965b70c9f2539c69
9e05a1c846ea4bcf530eb731228e1e6bd78d596c
/api/views.py
c83cd70ce4c99083b61c2b0595eec5137def488c
[]
no_license
https://github.com/magnusvaughan/maestro
9bdd3a016d03e9232b078513265b5b3e0c9e8f47
5d2239f5d9219e9929f095c352e46def0f14ae54
refs/heads/master
2022-12-01T09:50:43.578895
2020-08-15T21:18:05
2020-08-15T21:18:05
287,619,926
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render # Create your views here. from .models import Resource from .serializers import ResourceSerializer from rest_framework import generics class ResourceListCreate(generics.ListCreateAPIView): queryset = Resource.objects.all() serializer_class = ResourceSerializer
UTF-8
Python
false
false
306
py
3
views.py
3
0.820261
0.820261
0
10
29.7
53
tyanderson/Ty_INTEX
9,560,597,225,437
f552b956d252aced3f39b1061ab8f22b499bd631
d65a5db69009fc83a577765c6d531d30c3833d66
/store/cached_templates/templates/cart.html.py
eeea0b583c5ae05a263ad9c6f8f42f3ea694fb8b
[]
no_license
https://github.com/tyanderson/Ty_INTEX
7ee1c2e0346984347fed8b8d02eb6cdbdd3424db
3c9d4771b9a8a0b2edbbd6e35eb4679bd409e2f8
refs/heads/master
2021-01-20T03:39:09.347291
2015-03-17T14:56:24
2015-03-17T14:56:24
33,574,337
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1425772416.746322 _enable_loop = True _template_filename = 'C:\\Users\\Charizard\\Google Drive\\BYU\\IS 413\\Sprint2\\store\\templates/car...
UTF-8
Python
false
false
3,471
py
68
cart.html.py
38
0.547105
0.518294
0
81
41.851852
356
pimlu/vocoder
2,396,591,753,683
8339f92d2d04c51b7ee1b394359169736c444a8d
b88d36084e0ff363eef638999ab081dcb8a5c7f9
/old/polish.py
18ecfceb1a23546c628884f1663f58ed472239b4
[]
no_license
https://github.com/pimlu/vocoder
68f2a8bee1b743d148768f86725d86ee71be4ee0
76abee6deaf7c78256fef3f7220951987439d6ad
refs/heads/master
2023-03-14T05:38:39.819566
2021-03-06T17:15:04
2021-03-06T17:17:43
344,473,316
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np import sigproc as sig import itertools import vocoder as voc import util import signal import sys sigint = False def signal_handler(sig, frame): global sigint if sigint: sys.exit(1) else: sigint = True mel, minv = sig.melbank() def prep_mel(tru...
UTF-8
Python
false
false
1,867
py
11
polish.py
9
0.611141
0.600428
0
64
28.171875
92
18351089214/ICA
16,020,228,055,078
00540beca5487cc658b0309ba4c94e7e8e5dc942
92c16963fa3f3fcd3d06eeea7bfc4075cbc9edce
/qqmsg/models.py
c36bdb7384160430541f89cf3b8b105504e3286e
[]
no_license
https://github.com/18351089214/ICA
d0f15a30a0cce0ac32ed147b772f17055de38b2e
a799d8ca889e03fbcc764221ab7a8922e3a390ff
refs/heads/master
2021-01-08T02:54:21.094290
2020-02-20T13:32:07
2020-02-20T13:32:07
241,871,498
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.utils.html import format_html # Create your models here. class QqMsg(models.Model): id = models.CharField(primary_key=True, max_length=50, null=False) source = models.CharField(max_length=50, null=False) msg_id = models.CharField(max_length=50) type = models.Ch...
UTF-8
Python
false
false
1,361
py
15
models.py
14
0.64745
0.620843
0
42
31.214286
70
a4shubert/statslib
25,769,807,111
011a2fff8d52f06951b714384bb697551fa21ff7
3fa2e4e97db1dace11f58f02b56ac42da58d1e91
/setup.py
ceafc745b28a9790ab21a03027d70a54c48bed18
[ "Apache-2.0" ]
permissive
https://github.com/a4shubert/statslib
4ab932f43185ea4fe115a7e36bcf843d29487809
5a35c0d10c3ca44c2d48f329c4f3790c91c385ac
refs/heads/main
2023-06-27T00:24:34.662281
2021-05-13T09:33:16
2021-05-13T09:33:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="statslib", version="0.0.1", author="Alexander Shubert", author_email="ashubertt@gmail.com", description="Python library for rapid statistical and ML modelling", long_description=long_d...
UTF-8
Python
false
false
828
py
55
setup.py
26
0.638889
0.595411
0
33
24.090909
72
Iongtao/learning-python3
17,729,624,999,776
ef6e27ebc0bff1a5da491cad50ee524f417fea76
dcdf6506db0cad447fb00297537e8b084698c746
/learning/class/demo5.py
6d7775683f6ba1b1e0bc77d6a6acc985cebf7aac
[]
no_license
https://github.com/Iongtao/learning-python3
f9b41f255c156194c6778d11c0bf0511b8ab6eda
76ab3651f62a460140e41ba3b154b084a1a8e30d
refs/heads/master
2022-11-16T00:32:03.320067
2020-07-09T15:23:13
2020-07-09T15:23:13
258,811,065
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# !/usr/bin/env python3 # coding=utf-8 ''' 将类的实例作为属性 当一个类中的属性和方法越来越多 变的复杂 会不利于维护 将类中的特性或公共部分提取成一个新的类 会显得直观明了 下面 定义了一个Dog类 一个Hunting类 一个HuntingDog类 这里将Hunting类的实例 赋值给了 HuntingDog中的hunting属性的值 ''' class Dog(): def __init__(self, name, age): self.name = name self.age = age def sit(self): ...
UTF-8
Python
false
false
1,120
py
51
demo5.py
47
0.606383
0.599291
0
45
17.8
71
evotools/CattleGraphGenomePaper
10,368,051,068,785
c8efac077c9a26c6ac0a11cba32d9f18174570ff
4e401d24d511c7472bf098ba6168d7d228e2a39d
/detectSequences/nf-GraphSeq/bin/11G-removeFlanks
edfe79028e66ed402735048ee9ad78a9c512e16b
[]
no_license
https://github.com/evotools/CattleGraphGenomePaper
624e4ff8fc3a579003167e43c7dace1fa14327dd
8eed9013e744f81863f1e427effd447e2b6b4036
refs/heads/master
2023-04-13T20:08:23.807138
2023-01-10T09:15:53
2023-01-10T09:15:53
303,937,151
10
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import sys #flank=int(sys.argv[2]) conv={} for l in open(sys.argv[2]): l = l.strip().split() conv[f"{l[0]}:{l[1]}-{l[2]}"] = l[3].split("#")[-1] #originalReg = {i.strip().split()[-1]: i.split()[0:3] for i in open(sys.argv[2])} for line in open(sys.argv[1]): if "#" in lin...
UTF-8
Python
false
false
711
178
11G-removeFlanks
157
0.496484
0.464135
0
20
34.55
87
grasuth/social_media_brand_disambiguator
10,599,979,334,422
272a439f0a2ce5b26c5f2f2705952fda5bb7afe3
e6816a586a2e9954da0d46124b168e518c110946
/learn1.py
0bae71029018d52e17aebff73e69a031c26d7ce7
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/grasuth/social_media_brand_disambiguator
6fa5d852411dea1cd6103eef4edacce758b254b5
961002efba1be55d9815178973d02de0b6b2979c
refs/heads/master
2021-01-17T21:42:32.989214
2013-06-10T16:46:03
2013-06-10T16:46:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """First simple sklearn classifier""" from __future__ import division # 1/2 == 0.5, as in Py3 from __future__ import absolute_import # avoid hiding global modules with locals from __future__ import print_function # force use of print("hello") from __future__ import unico...
UTF-8
Python
false
false
5,153
py
2
learn1.py
1
0.68659
0.677081
0
122
41.237705
112
bjornua/beercalc
2,121,713,888,728
40adfe61cfef0cd33484d7de1b6b6dfcd19cc2a4
2a4d1cf3ca64875313796d9e3bba91d04747bb0e
/beercalc/view/stockbutton.py
2e157ef8677e10fa7db8d919b822913d362f27b9
[]
no_license
https://github.com/bjornua/beercalc
3e50434a48509d4de3ff1b3fd83609004ed309ca
ebd4441df2e2097bda2f7a3dda14c2a9d080cc78
refs/heads/master
2021-01-25T08:28:07.671834
2010-11-17T23:51:49
2010-11-17T23:51:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import gtk from beercalc.lib import Observable class StockButton(gtk.Button, Observable): def __init__(self, label, stock_image): gtk.Button.__init__(self, label) Observable.__init__(self) self.image = gtk.Image() self.image.set_from_stock(stock_image, gtk.IC...
UTF-8
Python
false
false
503
py
23
stockbutton.py
23
0.612326
0.610338
0
15
31.866667
66
peperoschach/logica-de-programacao
15,985,868,304,658
6d7ca78efe1dd1caa776f930b53bda23c93baad3
9c33b4da2ebe21ce7d0e48fa6581ec0e9f7582fe
/funcoes/tratando-erros.py
a68d9baaa5383d5c7b3b9676787ca56d7331e790
[]
no_license
https://github.com/peperoschach/logica-de-programacao
087bcad8af59e92e4f7ea8bd6ace6d6093853014
28f3f8087a0f5db07025d7614f8dbbe20dec250c
refs/heads/main
2023-03-30T21:09:12.178803
2021-03-26T01:26:16
2021-03-26T01:26:16
344,959,751
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
while True: try: x = int(input('Por favor digite um número: ')) break except ValueError: print('Oops! Número inválido. Tente novamente... ') def div(): try: num1 = int(input('Digite um número: _ ')) num2 = int(input('Digite um número: _ ')) res = num1 / num2 ...
UTF-8
Python
false
false
586
py
41
tratando-erros.py
41
0.556131
0.549223
0
23
23.826087
59
uweking/BigData
6,734,508,729,444
a1a4ada80028d6d869685ff60bc5870ca185358a
57f7894df4a291d805d81de72cfe63dd5bd10a4f
/Simulator/normaldistribution.py
776ca53a8ae2e254fbcce98f559c04d34d0ca2c5
[]
no_license
https://github.com/uweking/BigData
9a54c169552e1058e6ab4898a959b7d35058b9ed
ef5969998009341da98073359c813df88e4571fc
refs/heads/main
2023-08-15T00:02:37.957074
2021-09-12T12:55:38
2021-09-12T12:55:38
374,999,631
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from scipy.stats import norm import matplotlib.pyplot as plt import numpy as np def plotND(): ndPossibleAxisValues = norm.rvs(5, 2, 10) chancesForEachPossibleAxisValue = [] chance = 0 valueForCycleByChance = 0 counter = 0 sum = 0 i = -10 y = 0 val = [] cha = [] cha2 = [] ...
UTF-8
Python
false
false
3,537
py
59
normaldistribution.py
4
0.627085
0.604467
0
118
28.974576
125
OrangeJessie/Fighting_Leetcode
8,933,532,002,657
ee67237df7b04af4c7607b6935053443b2e68942
99529bba5be988bae986c9584373df86b14dfb03
/初级算法/rotateMatrix.py
d6236746c67613f690fb9b4291e64e511c25d1fc
[]
no_license
https://github.com/OrangeJessie/Fighting_Leetcode
8efa3661f933f27316cbf49c6ccef7d4f064dcf3
2866df7587ee867a958a2b4fc02345bc3ef56999
refs/heads/master
2020-04-10T16:11:32.867495
2019-04-29T01:35:18
2019-04-29T01:35:18
161,136,599
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def rotate(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ l = len(matrix) c_l = int(l/2) for i in range(c_l): for j in range(l): co...
UTF-8
Python
false
false
835
py
266
rotateMatrix.py
125
0.384431
0.367665
0
32
24.09375
76
Zer0FluxGiven/Numerical-Methods
8,899,172,276,763
936b63f4e5144cb67ebf0ec9f897dd0fad5a2048
cec2b685fb9e5cb0dd8ca8190e31dd106875fc8f
/Rutherford-Scattering.py
029a059bf85852d8243c569f2969c9789b2f3389
[]
no_license
https://github.com/Zer0FluxGiven/Numerical-Methods
d8fefed58c35c6019bc0768f60c87be97dc66c9f
197c6ab21fa3abb34b28bb7ebef6ac7e5ad97f5e
refs/heads/master
2022-11-21T06:16:50.915150
2020-07-27T22:17:33
2020-07-27T22:17:33
275,882,196
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#----------------------------------- # Introduction #----------------------------------- #This program models Rutherford Scattering, i.e. particle scattering due to a central Kepler Force #The procedure used is two-fold: first we model the motion of an incoming particle by solving Hamilton's Equations with an Euler...
UTF-8
Python
false
false
4,419
py
5
Rutherford-Scattering.py
4
0.572301
0.55465
0
136
30.492647
147
orca9s/crawler
7,258,494,741,889
eea76449f8d22a33fc8fc9d5c8b235e93d8eef41
7728897c5e7507ed1b0d3292ed3a492e0d7ea5ec
/crwaler-practice.py
4fdff02940bc4ef58a262d0adb3b295938aece06
[]
no_license
https://github.com/orca9s/crawler
5cb985fec9c389e389697af7aaec98a8c84ab2d4
f38397296edaced783c43349fcfe4cdf21a71b45
refs/heads/master
2020-03-18T18:44:56.613469
2018-06-13T14:43:56
2018-06-13T14:43:56
135,112,259
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from urllib import parse import requests from bs4 import BeautifulSoup class Webtoon: def __init__(self, webtoon_id): self.webtoon_id = webtoon_id info = self.webtoon_crwaler() # print(info) self.title = info['title'] self.author = info['author'] self.desc...
UTF-8
Python
false
false
6,218
py
9
crwaler-practice.py
7
0.539444
0.53287
0
170
30.317647
97
ravitejalvr/Insight
16,630,113,407,583
c118fbe6a3576dee0edb470d8ff3fd98ec0c08b3
9ed1e5ea14d60a9daf6f7e5572f14cf37f1cba61
/src/Source.py
aaa3fdcd4ed9e7072f7be38f3cb4cccfcaa2023b
[]
no_license
https://github.com/ravitejalvr/Insight
c7452d9d765bc076f7b9b6ec75ca2b5870e99731
284ab5afd647b55bcf01cce3b2038f4534e9a3de
refs/heads/master
2020-03-25T02:42:46.205948
2018-08-03T15:04:52
2018-08-03T15:04:52
143,304,004
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import glob import os import csv import sys """ This Function get_indexes taken in the first row of the data (index) as input and gives out the indexes pertaining to name,cost,last name and first name. """ def get_indices(index): index = index.strip().split(',') nm_ind = ...
UTF-8
Python
false
false
3,345
py
5
Source.py
2
0.661584
0.657997
0
75
42.6
132
joshuafan61/IAQSPR
14,654,428,447,425
d59f3e7c2e215c41fde7ae92a8f984f36df4d8ba
d3612db18bc250b0cf41a8f0a156d342715d9b9f
/ProtoDemo/pwmmotortest.py
a7d663e5239f4db8d9efee50f917728a8b999008
[]
no_license
https://github.com/joshuafan61/IAQSPR
b28952d21a96f0b643ebc774b751633b6882a7fa
5d5560654475e09a261914276700161f8d24eb25
refs/heads/master
2022-12-21T17:31:00.801030
2020-06-21T14:07:02
2020-06-21T14:07:02
273,867,873
0
0
null
false
2022-12-11T10:54:32
2020-06-21T08:52:38
2020-06-21T14:11:51
2022-12-11T10:54:31
37,039
0
0
2
Python
false
false
#!/usr/bin/env python3 """ File: skidsteer_four_pwm_test.py This code will test Raspberry Pi GPIO PWM on four GPIO pins. The code test ran with L298N H-Bridge driver module connected. Website: www.bluetin.io Date: 27/11/2017 """ __author__ = "Mark Heywood" __version__ = "0.1.0" __license__ = "MIT" from gpioz...
UTF-8
Python
false
false
3,200
py
13
pwmmotortest.py
12
0.601563
0.567188
0
126
24.404762
68
melinaverger/ed_project
11,819,750,050,477
941ec3c18c7f16a8d55d0f19598815165095dbec
dd6dadeded93691556f8a24602a69d82e3585d10
/src/preprocessing/formatting/action.py
ffaf8f9d28d4b64ba8af6e6a1d2453efac2b16db
[]
no_license
https://github.com/melinaverger/ed_project
b60815cf54f1d7cebd95c0be792462f8572cea05
e28d3e04238850a138d84558f860d78cea7998a0
refs/heads/main
2023-07-19T21:12:42.431787
2021-09-01T08:11:07
2021-09-01T08:11:07
398,860,706
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Convert the action data to a more easily manipulated format, without changing them.""" import pandas as pd import sys sys.path.append('../..') import utils DATA_PATH = "../../../data/01_raw_data/" OUTPUT_PATH = "../../../data/02_converted_data/" def rename_columns...
UTF-8
Python
false
false
855
py
53
action.py
26
0.607018
0.6
0
34
24.029412
67
xjh1230/py_algorithm
7,541,962,591,235
898465ebca38846d372ab59542699fce0df2ab01
92829e5c16175cb0b7ae79fe4df92d443c5c5edd
/test/sort.py
68221bae124cac3b49aaa7b18014235562f2c5cb
[]
no_license
https://github.com/xjh1230/py_algorithm
bc58010a70154ecfcf4ded3e9bf00ef67da80063
d9018d153e405202c79a6421f7c90992b353ecd9
refs/heads/master
2021-06-12T10:46:20.538485
2021-03-24T05:36:28
2021-03-24T05:36:28
167,361,780
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/3/11 10:34 # @Author : Xingjh # @Email : xjh_0125@sina.com # @File : sort.py # @Software: PyCharm class Solution: def __init__(self): ''' :param arr: ''' self.count = 0 pass def merge_sort(self, arr): import math...
UTF-8
Python
false
false
5,593
py
144
sort.py
142
0.442796
0.422214
0
193
26.943005
77
febyputri28/ppat
8,916,352,145,941
d601a76d3a341bf29dc65ca5f4a51102a91aa790
1295557da19f8b3d66624f0b341cab3f7017681d
/strap/migrations/0090_auto_20210801_0927.py
397331e384643c0c58483669561908665d86b92d
[]
no_license
https://github.com/febyputri28/ppat
cebdead0346183e4b44b33c342330dfc5cec0a97
41cd9122eb1f407634f2d21aafa560205975e7f3
refs/heads/master
2023-07-10T02:47:58.071331
2021-08-16T15:26:21
2021-08-16T15:26:21
396,847,610
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.7 on 2021-08-01 02:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('strap', '0089_auto_20210728_1218'), ] operations = [ migrations.RenameField( model_name='karyawan', old_name='tanggal_karyaw...
UTF-8
Python
false
false
389
py
91
0090_auto_20210801_0927.py
69
0.588689
0.508997
0
18
20.611111
47
penta2019/btc_bot_framework
17,128,329,583,859
3beb692af92e1ab62eb11165e9c01a8d9a04246a
c3fb19c2e228fd1d32516fe64f38a9006772d260
/samples/bitmex/trade.py
db352aae4dfe4bcdc0e8ae121853345a82d39ce7
[ "MIT" ]
permissive
https://github.com/penta2019/btc_bot_framework
0642725cfd5c7b9f1c4e011f30b292cc4fc7ba50
3793c4c1d170db31a8017096f16946610c0a062e
refs/heads/master
2022-01-24T01:25:17.346272
2022-01-18T10:29:28
2022-01-18T10:29:28
224,544,310
131
43
MIT
false
2022-01-18T10:29:29
2019-11-28T01:11:14
2022-01-16T17:17:42
2022-01-18T10:29:28
350
105
22
0
Python
false
false
import botfw botfw.test_trade(botfw.Bitmex.Trade('BTC/USD'))
UTF-8
Python
false
false
61
py
81
trade.py
79
0.770492
0.770492
0
2
29.5
47
suraj-testing2/Solar_YouTube
19,018,115,187,505
b5dcb623f3f4ad1cd4fb039545e7a8d18373bfcc
c4c948f21cbd519cadede642ef9478a0fc591abe
/networkx-d3-v2/auth/context_processors.py
a3e911657aa4b46de64a246b184dbfa199fa9fda
[ "Apache-2.0" ]
permissive
https://github.com/suraj-testing2/Solar_YouTube
2a9b625e7c37fc44cad1dd792ede8410889c1bf0
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
refs/heads/master
2022-09-21T06:11:00.307058
2020-01-06T12:07:13
2020-01-06T12:07:13
267,720,870
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from google.appengine.api import users def google_user(request): """ Inserts value "google_user" inside the template context with the currently logged user. """ user = None if request.session.get('credentials', None): user = users.get_current_user() return {"google_user": user}
UTF-8
Python
false
false
318
py
58
context_processors.py
41
0.660377
0.660377
0
13
23.461538
68
JoelBNU/ShadowOui-Tutorial
2,697,239,483,824
d1cb20b3e7b8595d8642dd5b80f7a92590973fd2
cb16a721c2c1323fbaa76e97c9e29c5b45cf6cd9
/SCRIPTS/screen_pattern_grid.py
f844fe7fb6a354e24a9337df05ac69ee101cc970
[ "MIT" ]
permissive
https://github.com/JoelBNU/ShadowOui-Tutorial
c11a1907dfded9233910aaf0c7993daf492e70dd
4629d896c1f02f811d5a1b491f6fca1a7c67a70e
refs/heads/master
2022-04-19T07:39:16.338099
2020-04-16T19:50:57
2020-04-16T19:50:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # creates grid.pol # import numpy corners = numpy.array([-3.0,-1.5,3,1.5]) # x_leftbottom,y_leftbottom,x_rightup,y_roghtup t = numpy.array([9.0,4.5]) # translation vector (i.e., horiz. and V preiods) n = numpy.array([2,3]) # number of translation (H,V) file_out = "grid.pol" f = op...
UTF-8
Python
false
false
900
py
76
screen_pattern_grid.py
26
0.535556
0.484444
0
28
31.142857
90
joysn/leetcode
16,320,875,755,411
001b70b268d227eaa069f71d55e943aeafe007d3
1ecaac1194afe02bc57b6f06e5f94c3f6b636c50
/leetcode1219_path_max_gold.py
28ebb6321b26589ca75cc79c907cf5f294f841df
[]
no_license
https://github.com/joysn/leetcode
96b2fe3272096ca151ba7216592f5a06ae8aa908
7e12c5b2e202f44bd4ad02bc804495a23866404c
refs/heads/master
2022-02-21T18:32:14.970972
2022-01-01T08:44:04
2022-01-01T08:44:04
242,932,865
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://leetcode.com/problems/path-with-maximum-gold/ # 1219. Path with Maximum Gold # In a gold mine grid of size m * n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. # Return the maximum amount of gold you can collect under the conditions: # Every time...
UTF-8
Python
false
false
2,025
py
110
leetcode1219_path_max_gold.py
109
0.594074
0.536296
0
70
26.957143
138
szhmery/leetcode
14,594,298,903,858
ab966f16377975bc64404e6639cd1bed10c78421
e831c22c8834030c22c54b63034e655e395d4efe
/LinkedList/19-RemoveNthFromEnd.py
b405bc73863d19164b3fdd88142c2392e9bc42ef
[]
no_license
https://github.com/szhmery/leetcode
a5eb1a393422b21f9fd4304b3bdc4a9db557858c
9fcd1ec0686db45d24e2c52a7987d58c6ef545a0
refs/heads/master
2023-08-16T00:27:56.866626
2021-10-23T07:35:37
2021-10-23T07:35:37
331,875,151
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: # one pass algorithm def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: if not head or n == 0: return dummy = ...
UTF-8
Python
false
false
3,183
py
275
19-RemoveNthFromEnd.py
274
0.544455
0.530946
0
113
27.168142
77
theminer3746/2110101_Com_Prog
19,396,072,343,971
cdb8dac6824732506dd4eaec3fbbefc4f27cef84
1bfa2d40fc07ef38eb2b74cf6df6d9d3a0d31b86
/Repetition/Repetition_P10.py
ef6194d6cad695f4abbaf62fed1e685459628417
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause-Clear" ]
permissive
https://github.com/theminer3746/2110101_Com_Prog
9964dff4452036e674d5380d081b9ae3689a7321
f3f6dd5e34635160d53ddff7fdada218a89f4161
refs/heads/master
2021-01-19T18:46:56.756900
2017-09-13T13:33:10
2017-09-13T13:33:10
101,164,096
0
0
null
false
2017-11-08T13:17:05
2017-08-23T09:42:30
2017-08-23T10:05:12
2017-11-08T13:17:05
110
0
0
0
Python
false
null
value = int(input()) divider = list() for i in range(2, value): if value % i == 0: divider.append(i) if not divider: print('Prime Number') else: divider.reverse() print(*divider)
UTF-8
Python
false
false
206
py
94
Repetition_P10.py
93
0.592233
0.582524
0
13
14.846154
25
dacut/juliet
1,288,490,205,741
7148ebce5aa4e2d7c92774a01d80a52de1393c08
ced67045eb43c938a01de48181dbc4f1409886d7
/build-tools/verify-targets
bebcf7f3f725597a2764a9f13a1eb9aab970cb09
[ "BSD-2-Clause" ]
permissive
https://github.com/dacut/juliet
d1d5cf9d1ef8c5701fcb7a42c808ef607ba97a51
b6c73fd42255047680b5271a56d05fe78c625c83
refs/heads/master
2016-09-05T22:24:34.791701
2015-05-03T06:27:56
2015-05-03T06:27:56
8,089,602
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, print_function from getopt import getopt, GetoptError from os.path import exists, isfile from six.moves import cStringIO as StringIO from sys import argv, exit, stderr, stdin, stdout def parse_manifest(verify_vars, fd): n_missing = 0 cur_line = Str...
UTF-8
Python
false
false
2,894
175
verify-targets
162
0.553214
0.547339
0
109
25.550459
72
ivanterekh/last-mile-delivery
11,708,080,879,816
50c891c78dd11cabd59f0b34ebeb0ae116564593
e60e4109380b3c98b8b9a17152e6aafbb292c98c
/cluster.py
8f70df2b6b615785afeb1ae62b9c6dd5b7f3210b
[]
no_license
https://github.com/ivanterekh/last-mile-delivery
d783887d1e16ab63a11d86329ae7f16f05903206
dda21d853e7da9238333ef10fa49f60ce47bdd61
refs/heads/main
2023-01-03T14:43:41.287228
2020-10-31T16:39:54
2020-10-31T16:39:54
307,831,949
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[99]: import pandas as pd import numpy as np import sklearn.cluster as cl import matplotlib.pyplot as plt # In[100]: df = pd.read_csv('fix_demand.csv', encoding = 'utf-8') # In[101]: df_demand = df.drop(columns = ['day-2', 'day-3', 'day-4', 'day-5', 'day-6', 'day-7',...
UTF-8
Python
false
false
1,642
py
33
cluster.py
7
0.609622
0.55542
0
138
10.891304
112
Snnzhao/algorithm009-class02
6,167,573,059,238
35d08e9bde5068bf5409dc9ba585622590ff7c9e
63b256b7cd925c953db71a4f932acf470a46ec3e
/Week_01/26.删除排序数组中的重复项.py
fe01bc0861dd950840c5bef153405303bfbd1506
[]
no_license
https://github.com/Snnzhao/algorithm009-class02
8e101bed491e0fcdfc90c3e7c2d36a4547ca1b6f
fb79bc93c9057942c77fcf0fd02fe6649243940f
refs/heads/master
2022-11-23T20:34:40.466808
2020-07-26T16:05:52
2020-07-26T16:05:52
264,933,746
1
0
null
true
2020-05-18T12:32:54
2020-05-18T12:32:53
2020-05-18T06:05:17
2020-05-13T10:32:51
5
0
0
0
null
false
false
# # @lc app=leetcode.cn id=26 lang=python3 # # [26] 删除排序数组中的重复项 # # @lc code=start class Solution: def removeDuplicates(self, nums: List[int]) -> int: idx_fwd,idx_bkd=0,0 for idx_fwd in range(1,len(nums)): if (nums[idx_bkd]!=nums[idx_fwd]): idx_bkd+=1 num...
UTF-8
Python
false
false
408
py
56
26.删除排序数组中的重复项.py
46
0.551813
0.525907
0
16
23.0625
55
AdamZhouSE/pythonHomework
1,554,778,205,488
653be8c666bdcc76776abb79839a80018f3c66db
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2899/48090/310921.py
14f175b3c828eae74913905b89cff721c6bae685
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
a=int(input()) class Solution: def FourPower(self, num: int) -> bool: return num > 0 and num & (num - 1) == 0 and num %3==1 b=Solution() print(str(b.FourPower(a)).lower())
UTF-8
Python
false
false
186
py
45,079
310921.py
43,489
0.591398
0.564516
0
9
19.777778
61
Boshes/info3180-lab5
8,409,546,003,976
74975d039680214d8fa905392aaffd61b22f4207
1d3c4bdcaa1c9b4649f921ca61b3e27339e4938a
/app/__init__.py
307e81ce5f5de839bd3bfb79e7ec84e144fa81a5
[]
no_license
https://github.com/Boshes/info3180-lab5
2ddc4e845d4569eecac12c6caa5463cad8d77334
00b073785942d1c9a21f8577fd2c1c09b35b28d0
refs/heads/master
2021-01-21T21:39:08.298642
2016-03-01T18:57:25
2016-03-01T18:57:25
52,288,113
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy import os from flask.ext.login import LoginManager from flask.ext.openid import OpenID, COMMON_PROVIDERS import sys import logging app = Flask(__name__) app.logger.addHandler(logging.StreamHandler(sys.stdout)) app.logger.setLevel(logging.ERROR) app.c...
UTF-8
Python
false
false
878
py
4
__init__.py
3
0.776765
0.732346
0
25
34.16
157
mousavian/cuckoo
910,533,103,726
3e5c6d1ffe42f0cd396b327d0a6566132112b235
c8afe11a46612c3e93a4a33b5e7cba19620ca27c
/modules/machinery/lxc.py
a7c067f634400fa099e8e458d459c81f195889b9
[]
no_license
https://github.com/mousavian/cuckoo
ebc2fc5f94b7be5e5aa9c748cb87a4ed65ae1f93
2fdb6260a49151c940c587586da3d7ba126ef657
refs/heads/master
2021-03-16T10:18:40.813762
2015-11-28T08:15:54
2015-11-28T08:15:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import subprocess import os.path import time from lib.cuckoo.common.abstracts import Machinery from lib.cuckoo.common.exceptions import CuckooMachineError class LXC(Machinery): """Virtualization layer for Linux Containers""" locked = False def initialize(self): self.locked = False ...
UTF-8
Python
false
false
906
py
15
lxc.py
7
0.626932
0.626932
0
36
24.166667
59