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
Naveen-Babu/weather_credentials
14,078,902,833,007
c10523ae55becb2d84f006704ee1929164e6a87d
6d8cd8e934de6d80c6f76fcd9603c7070ad5ca5b
/usingRequests.py
b6f16818b70d17ae0c83b65ad1ab7a2c195a56e5
[]
no_license
https://github.com/Naveen-Babu/weather_credentials
60e93dfa245bd9227b886c098286b69adfe6d757
8632988d2c324099d5065d929e3384c49ee9c4b0
refs/heads/master
2020-03-25T05:38:27.439294
2018-08-07T05:15:39
2018-08-07T05:15:39
143,458,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests # api-endpoint //sending a request through this url URL = "http://api.openweathermap.org/data/2.5/weather?q=Hyderabad,IN&APPID=c63077b4593aed1e5101d3bb28ac6160" location = "Hyderabad" # location given here # defining a params dictionary for the parameters to be sent to the API PARAMS = {...
UTF-8
Python
false
false
657
py
11
usingRequests.py
5
0.719939
0.684932
0
24
26.125
108
sema/django-2012
3,238,405,377,079
1d4f559dc5e2d750c0927e6137bfaa2badbcb932
ef6f58ebad951bd516338a970d487ffa792096f9
/backends/generic/mosaic_backend/worker.py
312970ac198e167fd6af034c034fff99f6106b70
[ "MIT" ]
permissive
https://github.com/sema/django-2012
f2d7beb56e81ebf4bfbce0a7ac5e963286088804
7768c9db5d24bb15b32dca30fad16ca773a04c33
refs/heads/master
2016-09-06T20:01:02.303007
2012-08-20T05:55:16
2012-08-20T05:55:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from urllib2 import HTTPError import datetime import json import logging import time import urllib import urllib2 from symbol import except_clause logger = logging.getLogger(__name__) class Worker(object): ''' Generic worker class. Will periodically do work for the MOSAiC server when instantiated with an...
UTF-8
Python
false
false
3,198
py
40
worker.py
25
0.565353
0.563164
0
86
36.174419
124
chowravc/OASIS_Segmentation_Training_Data_Generation
7,249,904,828,079
3df27fafd3fc4d874b3e0590d8732f2287b0026b
4cc8db30b130f7efde574f0b9e763fc788b9d360
/script3_rendering_masks.py
75718dababd5ee864b42704735132fcca77eaf22
[]
no_license
https://github.com/chowravc/OASIS_Segmentation_Training_Data_Generation
2c3381e79627103852932b7299bddc8dc6543dc4
c5d9b30eb550e01bfa0c661fa3f5a8263496d18f
refs/heads/main
2023-01-24T13:37:05.679390
2020-11-27T15:30:36
2020-11-27T15:30:36
315,471,604
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Importing Packages import bpy import sys import os import numpy as np import random as r import glob as g dir = os.path.dirname(bpy.data.filepath) if not dir in sys.path: sys.path.append(dir) # Importing useful python scripts from capCreator import * from wallCreator import * from bubbleCreator import * from sp...
UTF-8
Python
false
false
7,684
py
6
script3_rendering_masks.py
4
0.586543
0.564289
0
226
33.004425
117
ANDYsGUITAR/leetcode
16,501,264,396,640
4aed1f7de1d29e205af95ff911c765051c09f9a7
865bd0c84d06b53a39943dd6d71857e9cfc6d385
/032-longest-valid-parentheses/longest-valid-parentheses.py
cffe40717f638263eec332eeaea3d5d24328be4a
[]
no_license
https://github.com/ANDYsGUITAR/leetcode
1fd107946f4df50cadb9bd7189b9f7b7128dc9f1
cbca35396738f1fb750f58424b00b9f10232e574
refs/heads/master
2020-04-01T18:24:01.072127
2019-04-04T08:38:44
2019-04-04T08:38:44
153,473,780
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. # # Example 1: # # # Input: "(()" # Output: 2 # Explanation: The longest valid parentheses substring is "()" # # # Example 2: # # # Input: ")()())" # Output: 4 # Explanation: Th...
UTF-8
Python
false
false
2,027
py
148
longest-valid-parentheses.py
145
0.327084
0.304884
0
74
25.959459
134
gramaziokohler/robotic_assembly_workshop
12,773,232,740,237
2bd960baaac02c26f02c4ad42ced9b3c6bee56ec
63b40e1506799bfdc7b6d24668c6756997a65a76
/examples/ex23_load_robot.py
cde66593ab87258c1a34777c607cccf50063caf6
[ "MIT" ]
permissive
https://github.com/gramaziokohler/robotic_assembly_workshop
1eaecbb2aa1c429e4a136fd751c2d499cafd0c4b
252d9750175061fd7d4746a4701afd42882773a5
refs/heads/master
2020-04-11T07:48:52.093712
2019-02-13T14:46:39
2019-02-13T14:46:39
161,622,740
22
8
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Creates a `Robot` representing a UR5 robot from a urdf model and the semantics from a srdf file. """ import os import compas from compas.robots import RobotModel from compas.robots import LocalPackageMeshLoader from compas_fab.robots import Robot from compas_fab.robots import RobotSemantics from compas_fab.backend...
UTF-8
Python
false
false
1,038
py
97
ex23_load_robot.py
47
0.758189
0.753372
0
36
27.833333
79
ssongna/sastbx_module_sastbx
18,116,172,075,740
4431e6f940e4933a1c7fbf7e85308ddb5726563d
9aaee5f65c8dd9d18b1cc549740f4e6be295f091
/command_line/build_lookup_table.py
4ddc9c27e226d4aa2b2794ec221caa694c79906b
[]
no_license
https://github.com/ssongna/sastbx_module_sastbx
285074d6f07c9d440bd750889322746d14448328
aa5cc2f59a4179db761125fb01fe7aaeda7d5dd0
refs/heads/master
2021-08-17T09:01:18.796977
2017-11-21T01:25:50
2017-11-21T01:25:50
111,428,819
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# LIBTBX_SET_DISPATCHER_NAME sastbx.build_lookup_table from sastbx.data_reduction import build_lookup_file import sys if (__name__ == "__main__"): build_lookup_file.run(args=sys.argv[1:])
UTF-8
Python
false
false
194
py
205
build_lookup_table.py
164
0.71134
0.706186
0
7
26.714286
54
vahiwe/Scale
6,640,019,448,697
5c426f42900ad1e63420539267c868abe90b246e
0e8f1e05be0c3ff77bca43d29a0b1de1d6602edb
/job/templatetags/crispy.py
2d9bd5f0539704b3edca1caf96c7dbe173cf53ed
[]
no_license
https://github.com/vahiwe/Scale
e8cf92f54251f575725bd408221a6e59dd7e8b88
98fbe2b2338305e697a0054aaf8efb7c74b5387a
refs/heads/master
2022-09-10T05:16:34.767703
2020-05-30T15:03:40
2020-05-30T15:03:40
256,792,181
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from crispy_forms.utils import render_crispy_form from django_jinja import library from jinja2 import contextfunction @contextfunction @library.global_function def crispy(context, form): return render_crispy_form(form, context=context)
UTF-8
Python
false
false
242
py
41
crispy.py
25
0.81405
0.809917
0
9
25.888889
52
jdmeyer3/CeilometerMetrics
16,664,473,143,203
ca6c892cc35e27976bf863580cf09029d8d25603
1e883289a12486a93a2faf8dcb9f26af5c71a2eb
/instance.py
290f6c2fa326ad482a6f1bcbcf1444c6491c6034
[]
no_license
https://github.com/jdmeyer3/CeilometerMetrics
eb3f7a4e243302b88c3769076b52191216042c0e
77b24f1520fd2ae7d05f50c4c9cbec95fb16c62c
refs/heads/master
2017-05-10T16:42:19.865926
2017-02-28T04:07:09
2017-02-28T04:07:09
82,583,767
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Joshua Meyer # 08 Feb 2017 import shade import tenantinfo import time class Instance(object): def __init__(self, query_time): self.query_time = query_time self.tenant_info = [] self.instance = [] self.network = [] def Connect(sel...
UTF-8
Python
false
false
2,632
py
4
instance.py
3
0.542173
0.533435
0
63
40.777778
133
MayborodaPavel/simpleSite
9,766,755,647,064
6f0591accc66f2ecee9101b44cfc4e2b12abdf5c
864622bf8fa231a9ea983a7b9254945702438fa3
/backend/router.py
60829fd73b053af233b23939a20a1e713fe093e6
[]
no_license
https://github.com/MayborodaPavel/simpleSite
5a2f8d7aae16d63f7e0215035431643dfd07b15d
c4e1846715b6929ef81cd4d859b0799f54a7c727
refs/heads/master
2023-01-22T21:50:15.931038
2019-10-10T14:02:30
2019-10-10T14:02:30
214,197,620
0
0
null
false
2023-01-04T12:21:15
2019-10-10T14:01:04
2019-10-10T14:03:05
2023-01-04T12:21:14
1,442
0
0
26
Python
false
false
from collections import defaultdict import re from controllers import ContentController from response import BadResponse from logger import logger class Router: _routes = defaultdict(dict) instance = None def __new__(cls): if cls.instance is None: cls.instance = super(Router, cls).__...
UTF-8
Python
false
false
1,690
py
24
router.py
18
0.562722
0.560355
0
62
26.209677
73
defenders-of-eboracia/streaming-a-star
9,311,489,124,121
d38fe72ca455e251e0d03187d9101aaac96cd0e9
c4c858c9126368872132f3ad7edc04bd169cca7d
/astar.py
40784f9957eb00c89921a7ffdaa6d187a5f3ffe1
[]
no_license
https://github.com/defenders-of-eboracia/streaming-a-star
be3c5fcc4fbca3827865b8607179678c9a67e88d
e972fb36168c648795c05452e523c483d3c7f71f
refs/heads/master
2021-01-17T04:27:40.265181
2017-02-23T21:15:36
2017-02-23T21:15:36
82,955,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class AStar: """ A-Star implementation adapted from @jrialland's version at https://github.com/jrialland/python-astar/blob/master/astar.py """ def heuristic_cost_estimate(self, start, goal): # return self.average_min_pies_cost * (start.last_day - start.current_day) raise NotImplemen...
UTF-8
Python
false
false
2,970
py
8
astar.py
6
0.545791
0.543098
0
78
37.089744
123
ebehlmann/puzzling
1,743,756,757,942
0ef71b66d3e2ab3fc5e2f77d186b3583267272c5
97efbf86d7b83e2400ce8fcabe677702d78b7bd4
/python/advent_of_code/2015/day_12/day_12.py
6c731f716751049044ba1ffbd784c4c23e98c6f6
[]
no_license
https://github.com/ebehlmann/puzzling
aa7b8cc123768810907fda0e4f6823008a72df19
78c345278bfb20a23d5f9438833135d15085b787
refs/heads/master
2021-12-13T19:32:19.167606
2021-12-11T19:18:06
2021-12-11T19:18:06
123,527,764
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#this is incomplete import json def find_sum(mess_of_json): result = 0 for i in mess_of_json: if type(i) == list: result += find_sum(i) elif type(i) == dict: result += find_sum(i) elif type(mess_of_json[i]) == int: result += mess_of_json[i] return result #def find_sum_2(blob): with open("input.js...
UTF-8
Python
false
false
407
py
69
day_12.py
67
0.633907
0.628993
0
22
17.545455
37
jm-bit/PvP-Chess-Game-Using-Python
11,682,311,078,683
0f27503fcfbe8194d24b290d911585fd0ab90ef2
3082396d72744a146322d3c537ded71ea7a7a22b
/CMSC_12_2P_Chess_Game.py
da9b19aa482abdc7fc073f0ed92cf9b820523b6b
[]
no_license
https://github.com/jm-bit/PvP-Chess-Game-Using-Python
e6b45b7d8749c1988320d638986a07ec75be9e32
e7c747b9630c6e48a5acb86bf19d70055fdafe5b
refs/heads/master
2021-01-05T01:04:16.732807
2020-02-16T03:22:04
2020-02-16T03:22:04
240,823,305
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import ChessFunc alternator = 1 while True: if ChessFunc.dec: break x_pos = "" y_pos = "" x_loc = "" y_loc = "" valid_move = True ChessFunc.board_print(ChessFunc.board, ChessFunc.coordinates) ChessFunc.find_king(alternator) ChessFunc.checkmate(ChessFunc.king_x, ChessFunc.king_y, alternator...
UTF-8
Python
false
false
5,977
py
3
CMSC_12_2P_Chess_Game.py
2
0.679438
0.666388
0
165
35.224242
156
gyoshil/monsterappetite
13,786,845,050,387
e8884adf5e9cb661811c293b2aae21bfa31bf1e2
a2bedaee8f3f11b0fb78898df03133f710947a69
/analysis/high_risk.py
89546ca1eac0532d9d5027ea48ef41518ff2db91
[]
no_license
https://github.com/gyoshil/monsterappetite
856257e6fd8768d8802e59ab25e0501076f35db1
b5a1da78a6c64920b56dca4d2caedc0c4cd2ba6e
refs/heads/master
2021-01-18T02:25:02.708216
2018-04-10T02:22:35
2018-04-10T02:22:35
24,821,327
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import bson from bson.codec_options import CodecOptions from pprint import pprint import csv import calculate_N dataDir = 'C:/Users/GGU/Documents/GitHub/monsterappetite/analysis/Qualtrics/' bson_file = open('C:/Users/GGU/Documents/GitHub/monsterappetite/analysis/players.bson','rb') mondgoDBplayers = bson.decode_all(...
UTF-8
Python
false
false
2,655
py
124
high_risk.py
33
0.66629
0.626365
0
89
28.831461
120
catalystneuro/BIDS_ephys
13,082,470,424,275
916e81503af42b9d8875820df788bdac90dec0bd
7cfc83411e590178f9ec664fe4d8a677bc977bf7
/BIDS_ext.py
7d2fd8d2136fa51971ba1cbe60c566c4c0b7d98a
[]
no_license
https://github.com/catalystneuro/BIDS_ephys
589f1ed4e6755ac2fe5af42085f2bb389c77f342
2600a48c9b72cd4df62ed8ed11477253cc593ffc
refs/heads/main
2023-03-22T02:22:31.619368
2021-03-09T02:53:32
2021-03-09T02:53:32
345,683,057
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from pathlib import Path import pandas as pd from pynwb import NWBHDF5IO REQ_DATASETS = ['dataset_description.json', 'participants.tsv', 'sessions.tsv'] def bep_organize(dataset_path, output_path=None, move_nwb=False): """ organize data according to teh BIDS extention proposal Parameters ...
UTF-8
Python
false
false
4,241
py
5
BIDS_ext.py
4
0.593964
0.591134
0
89
46.651685
124
royels/Affirmpy
10,548,439,701,416
62ea4cb9a295730a36ea4835460a13c16778a781
1f1456e43699dc02491fcf42437dba2bdcebadb9
/affirmpy/errors/resource_not_found_error.py
bc38dff479cb20c1c8e6f8e90fccfa879577f473
[ "MIT" ]
permissive
https://github.com/royels/Affirmpy
5e0b8eedbaa26c3f7c56e01f950f262438561352
55f89c25916e32ddaa95683ce71a905c1c713c9b
refs/heads/master
2021-01-10T04:26:50.652502
2016-02-06T22:54:54
2016-02-06T22:54:54
49,981,989
1
1
null
false
2017-05-18T05:21:36
2016-01-19T20:46:36
2016-02-14T07:35:34
2016-02-06T22:55:00
12
1
1
1
Python
null
null
from .error import Error class ResourceNotFoundError(Error): pass
UTF-8
Python
false
false
71
py
13
resource_not_found_error.py
11
0.774648
0.774648
0
5
13.4
35
smwa/playlist_data
9,388,798,520,816
f335eda5804d0bfaef2e8a5770e2182199a1c6e7
c9a30430ff1f18baa2d98071e68f9d4323f0c70a
/spotify_stats/track_details.py
e072bbed4b5b8a1b0d057a6554c261cb423440bb
[ "MIT" ]
permissive
https://github.com/smwa/playlist_data
2d1c16e438015986a4e01b8df5b048e628c2394a
01cd656eecc891dc8dc43dd1b8cc3f67a14bb9de
refs/heads/master
2023-02-02T22:56:21.020963
2020-04-18T15:48:56
2020-04-18T15:48:56
256,791,292
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json class TrackDetails(object): def serialize(self): return json.dumps(self.__dict__) def __repr__(self): return self.serialize() def __init__(self): self.title = None self.artist = None self.duration = None self.danceability = None self.ene...
UTF-8
Python
false
false
542
py
6
track_details.py
4
0.570111
0.570111
0
22
23.636364
40
tjvick/advent-of-code
3,521,873,227,731
744ef46816497ce42ffdb892831b6abc149348ec
55901c400648fa51025bb03b90534b3b949c2016
/2019_python/solutions/day8/part1.py
df140c9aaba871939d983166bdaa700f9406d6a7
[]
no_license
https://github.com/tjvick/advent-of-code
4e69b22667360929cf2e7ec00f8511d93ea11c73
f6a7805f3022bdb5a18921be547ffb22e326c5ae
refs/heads/main
2023-01-19T01:17:22.302237
2023-01-10T21:57:50
2023-01-10T21:57:50
223,826,215
1
0
null
false
2022-12-09T09:41:17
2019-11-24T23:34:53
2022-12-01T05:11:04
2022-12-09T09:41:17
762
2
0
2
Python
false
false
from collections import Counter import numpy as np from functools import reduce with open('input.txt', 'r') as f: for line in f: content = line.strip('\n') a = np.array(list(content)).reshape([100, 6, 25]) def reduce_fn(acc, layer): c = Counter(layer.flatten()) if c['0'] < acc[0]: return...
UTF-8
Python
false
false
444
py
225
part1.py
216
0.605856
0.576577
0
21
20.047619
63
david-uni/python-help
4,818,953,345,194
0d7f766b26962a096d98f63cd9e41a8b6585e6ab
a21fda4ae7e445cce6463f2ea2204864c677626d
/homeworks/ex2 EN/ex2_012345678.py
8167a3269d5fae0367348772c00d5952ce256aee
[]
no_license
https://github.com/david-uni/python-help
dd3e1e3f261b161e8105e499a2418a4c91bd5b50
a84ececf16480ee373b68aa3c315d627723f6b14
refs/heads/main
2023-08-22T09:30:19.189487
2021-10-21T20:01:45
2021-10-21T20:01:45
329,426,121
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Exercise #2. Python for Engineers.""" ######################################### # Question 1 - do not delete this comment ######################################### a = 3 # Replace the assignment with a positive integer to test your code. lst = [1, 2, 3, 4, 5] # Replace the assignment with other lists to test yo...
UTF-8
Python
false
false
1,819
py
80
ex2_012345678.py
61
0.543705
0.523914
0
66
26.560606
90
colinxr/notion-app
4,131,758,541,596
f4193a557ecf4b1c7cf137edf1a47d03700eee16
803f9a2785567bd797a4561e7fa8cf734781e91d
/__init__.py
4afcc7cb820007aae3fece77ed0c6b7344dfba74
[]
no_license
https://github.com/colinxr/notion-app
98db746cb1d6dce24a4701f3ef0d7372b995dca4
832ebc25f8ece1e105603686180be47f1632d628
refs/heads/master
2022-12-10T04:18:17.010783
2019-12-03T19:36:44
2019-12-03T19:36:44
218,777,141
0
0
null
false
2022-12-08T06:48:36
2019-10-31T13:50:33
2019-12-03T19:36:51
2022-12-08T06:48:34
3,400
0
0
4
Python
false
false
# from flask import Flask # # Initialize the app # app = Flask(__name__, instance_relative_config=True) # from NotionApp import app as application
UTF-8
Python
false
false
149
py
4
__init__.py
2
0.731544
0.731544
0
6
23.833333
54
aksh0001/algorithms-journal
10,720,238,409,946
07692752f5f017679b8aff5cecaa552e4768e8aa
6d00ac0aa55d3a60f7a70509f2c5118b134b41e8
/questions/trees_graphs/DeepestLeavesSum.py
811e408687a891b68bd02ccc06e14921c6c4eecf
[]
no_license
https://github.com/aksh0001/algorithms-journal
9ff45646f3c870a2a08182338db9012b7a476d95
de685690745a5a322e6233e1a3fd10a2d9539076
refs/heads/master
2022-01-22T06:16:27.039736
2022-01-18T20:10:20
2022-01-18T20:10:20
173,078,731
17
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Given a binary tree, return the sum of values of its deepest leaves. Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8] Output: 15 Approaches: 1) BFS with level tracking; 2) DFS with height helper @author a.k """ from data_structures.trees.BinaryTree import pretty_print_tree, TreeNode, BinaryTree """ @Al...
UTF-8
Python
false
false
3,055
py
102
DeepestLeavesSum.py
101
0.581342
0.568576
0
89
33.337079
110
bits2018wilp/python-lab
17,308,718,223,420
9b041f31515daf73bcdfcdf748f2ede8a626c8b1
7cb7ebc3be2cc4d7378f71e8c0b0c32d6ad2e22c
/src/main/com/alikas/array_test.py
bbe982bc35b669597cd721e23768fac1c6187a42
[]
no_license
https://github.com/bits2018wilp/python-lab
2cf679e3d6745fe4de94b74d301e90191aeab79d
67bead293b627f876fec1aa32586c8a5d602aa3e
refs/heads/master
2020-12-31T09:01:03.979408
2020-03-22T02:01:33
2020-03-22T02:01:33
238,964,324
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.datasets import load_digits from sklearn.naive_bayes import BernoulliNB, GaussianNB, MultinomialNB from sklearn.decomposition import PCA, TruncatedSVD from sklearn import datasets datasets.load_digits() cpath = 'D:\\kaggle\\basicshapes\\shapes\\'+ 'circles' datasets.load_files(cpath) a = [1, 2, 3, 4, 5]...
UTF-8
Python
false
false
454
py
254
array_test.py
254
0.685022
0.636564
0
21
20.619048
70
lwehmeier/erlang_bridge
9,139,690,447,055
3f16b16c7bf62f5a199333194bd6623a931d5ba6
18c79186d52f94b5dd95aca696a5b73c8da7f3af
/bridge.py
d83e5afdba531d7df2bb9246fd8120345f1ab2ed
[]
no_license
https://github.com/lwehmeier/erlang_bridge
5efc484bc5ef9304c8b299059375e11f636da63b
8853a6268040a8b683933858d1367957ed8be095
refs/heads/master
2020-03-22T20:06:14.516407
2018-07-23T18:01:48
2018-07-23T18:01:48
140,572,901
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import gevent from gevent import monkey monkey.patch_all() import Pyrlang from Pyrlang import Atom, Process import rospy from std_msgs.msg import String, Int16, Bool, Float32 from geometry_msgs.msg import Vector3 bp = None global registeredPublishers registeredListeners={} registeredPublishers={}...
UTF-8
Python
false
false
5,095
py
4
bridge.py
2
0.586065
0.573503
0
120
41.458333
148
AMBE1203/BasicML
2,954,937,517,779
2efadb4de2f87e0f60fbfe022ce2d7736378f9cd
09457b45afd2b1c36730dc8b3c89bb2475b9f435
/demo/DemoNBC.py
477c37f038f434070bc3d6db2a929d902bede323
[]
no_license
https://github.com/AMBE1203/BasicML
18b32dc3dba2d7b866882103c0733c505fcf6571
bdd96b6587a1e9a091e9c309d76afbaa10d70f11
refs/heads/master
2020-05-17T05:47:45.508320
2019-07-15T08:58:04
2019-07-15T08:58:04
183,542,397
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function import numpy as np from sklearn.naive_bayes import MultinomialNB, BernoulliNB from scipy.sparse import coo_matrix # for sparse matrix (ma trận thưa có số phần tử == 0 nhiều hơn số phần tử != 0) from sklearn.metrics import accuracy_score # for evaluating result # data path and file...
UTF-8
Python
false
false
1,637
py
36
DemoNBC.py
36
0.66182
0.648546
0
41
37.609756
115
gitonga123/Learning-Python
15,152,644,635,599
9e0315e19f527ae9e91e52fac72798abe518e51f
5bb465dd16d98940c913b3a8a79aa8b81af1c941
/forrange.py
441f4e3a4600a499c89fb871387ffd5dce105a95
[]
no_license
https://github.com/gitonga123/Learning-Python
24d5d16e234348801e09ac10431fc90c0c223c53
aaceaa217547de72cc03daa381ab898e721d35ca
refs/heads/master
2020-04-02T20:20:35.556066
2018-01-18T08:25:26
2018-01-18T08:25:26
62,940,222
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print('My name is') for i in range(1,11,2): print('Jimmy ', 10,' Times (' + str(i) + ')')
UTF-8
Python
false
false
92
py
76
forrange.py
69
0.532609
0.467391
0
4
22
46
pierreNomazy/lfs-sytempay
4,784,593,579,164
c7b5ada83dd544d9665d5bdc2b326e349e17f53d
23d059e79e651b7e85cf2700674cd7f4d07307eb
/urls.py
a04621b839a4a702081b2ed72057a795fed935e4
[]
no_license
https://github.com/pierreNomazy/lfs-sytempay
9884866b0f0c6e9fe74d9087c7ae5faad848062d
6eb26cbb6a5c90daa7029e9270eae237ecb9321d
refs/heads/master
2016-09-05T09:12:30.355747
2013-10-02T09:32:48
2013-10-02T09:32:48
13,267,100
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls.defaults import * # Register in the back office of your Bank payement system the urls : retour-server and retour-boutique. urlpatterns = patterns('systempay.views', url(r'^-retour-server$', 'retour_server', name="systempay_retour_server"), url(r'^-retour-boutique$', 'retour_bou...
UTF-8
Python
false
false
365
py
5
urls.py
3
0.712329
0.712329
0
6
59.833333
104
saguanamu/likelion_8
18,133,351,930,511
9eeedee907a38bbb38388869e4f8e7e34a0cd73b
2383b2ccafe4c71926c4c300d3133cbad371fe60
/crudapp/admin.py
a0b65689a44009dfb9e6a3b1586a7f1bd9320737
[]
no_license
https://github.com/saguanamu/likelion_8
84cdd248401abde5f8ce00a76f705222e2982a5d
61ea9d0a7a6c1e17d511f136d855026da4597f70
refs/heads/master
2023-06-21T16:44:27.038470
2021-07-05T03:29:54
2021-07-05T03:29:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Crudapp # Register your models here. admin.site.register(Crudapp)
UTF-8
Python
false
false
119
py
5
admin.py
2
0.815126
0.815126
0
5
23
32
Lesharudchinskiy/pyworkout
9,594,956,965,184
de656a69f8ead2ba4d8f919735baafde3e7b6570
09fdff884b5c928350a1af549b80235fca7bf6a1
/python_workout_lesson_1.py
22214dacecd1d4ba2521dd469db1b602e998188f
[]
no_license
https://github.com/Lesharudchinskiy/pyworkout
9c7cef444a11c9d872f21061a2847d8210b8af44
3e98587b88acd50973d9295d36683cf9619105f1
refs/heads/main
2023-08-13T03:25:53.040284
2021-10-15T15:13:58
2021-10-15T15:13:58
417,543,457
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random def guessing_game(): rand_num = random.randint(1, 100) while True: user_num = input('Print your number here:') if user_num.isdigit(): if int(user_num) > rand_num: print('Too high, try again') if int(user_num) < rand_num: ...
UTF-8
Python
false
false
618
py
1
python_workout_lesson_1.py
1
0.503236
0.496764
0
23
24.869565
86
Smithgggg/Project
1,219,770,730,038
7fb8b19aa77153b99f9c4b87692b5c7b14aeaf7e
e836e07eed225a8b907eacc9707c52f12e0c6abc
/PlaneWar-master1/hm_02_使用Rect描述英雄.py
7eb889d5dd8d683d470e11000b50e2f76c256573
[]
no_license
https://github.com/Smithgggg/Project
1b67449f61d492769e7940343961262425cc6920
947c2c2a5463bedd6243cf55ee4313f66da3efea
refs/heads/main
2023-07-09T08:48:32.259695
2021-08-18T13:15:02
2021-08-18T13:15:02
397,600,697
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame hero_rect = pygame.Rect(100, 500, 120, 125) print("主人公の起源 %d %d" % (hero_rect.x, hero_rect.y)) print("ヒーローサイズ %d %d" % (hero_rect.width, hero_rect.height)) print("%d %d" % hero_rect.size)
UTF-8
Python
false
false
230
py
5
hm_02_使用Rect描述英雄.py
5
0.651961
0.593137
0
7
28.142857
60
my-xh/hengDaProject
12,421,045,422,470
6f848bcb1595b052c6edf91177d5041bbe4a03d3
28bdfca0131db38323fc28f6178425dc2c86e6ca
/contactApp/views.py
36c93045be769c08ad30e991acead62ffdf4872e
[]
no_license
https://github.com/my-xh/hengDaProject
d8879d6755b24f230361b25d0e88d205fec98a1d
45aa43aabc798652a0f05d4e93d1c2c7ae819e4c
refs/heads/master
2023-04-20T07:04:57.424269
2021-05-13T11:46:48
2021-05-13T11:46:48
345,997,472
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, HttpResponse from .models import Ad from .forms import ResumeForm # Create your views here. def contact(request): return render(request, 'contact.html', { 'active_menu': 'contact', 'sub_menu': 'contactus', }) def recruit(request): ad_list = Ad.objects....
UTF-8
Python
false
false
897
py
40
views.py
25
0.57971
0.57971
0
30
28.9
72
david-talabard/fastapi-sample
335,007,487,357
136fc32abf97698361721019b080aeb923039fa5
7505ebbbcda486bc07b6731028ad7cb583e0e7ab
/api/models/item.py
4aca4ce4038f9a98ac7929bd8da6994e0e5f53a3
[]
no_license
https://github.com/david-talabard/fastapi-sample
b165358cb3c454a7593ceff2a11fe1dab9487b12
d05e37ef7b989c23550c9c3c0dfb28093122a41f
refs/heads/master
2021-01-08T06:07:44.461423
2020-03-31T13:08:53
2020-03-31T13:08:53
241,936,469
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pydantic import BaseModel from api.models.base import DBModelMixin class ItemIn(BaseModel): """ Defined an item for a creation """ name: str class Item(DBModelMixin, ItemIn): """ Defined an item model """ createdBy: str
UTF-8
Python
false
false
262
py
19
item.py
14
0.652672
0.652672
0
16
15.3125
40
srampv/chessui
18,734,647,377,720
68598c2acd516ffcc966d335f78365460ce12e40
ee2ce6d88083e47453345e6f63862e1a1d81145e
/scripts/chess_db.py
080d1d93c5a4258f0f7387e8252b9c3566a4638f
[]
no_license
https://github.com/srampv/chessui
ab94509ce8adb814b90c572969057ee089c8e229
91e0864c60360c92ab6f9a84e14eb9aa61f34e61
refs/heads/master
2023-03-15T22:30:35.838087
2021-02-23T07:34:44
2021-02-23T07:34:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from peewee import * import argparse import csv import operator import os import logging logger = logging.getLogger('peewee') logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler()) INDEX_TOTAL_GAME_COUNT = "total_game_count" SQLITE_GAME_LIMIT = 990 INDEX_FILE_POS = "last_pos" DB_HEADER_MAP = {"Whi...
UTF-8
Python
false
false
11,069
py
20
chess_db.py
14
0.479989
0.468516
0
301
35.770764
132
HarshitaSingh97/FetchGoogleTrends
3,813,930,986,782
a0d7bf9f32b25ac8f6792b594a53fff61d66e0c6
b599e8531a940ee32ea47018ea0aea2789d5ea3f
/flask/lib/python3.5/types.py
e5c986abef8a8477a33d0c6bb4da971e910632e9
[]
no_license
https://github.com/HarshitaSingh97/FetchGoogleTrends
3bfaba9ac2b365530beeb8f740c6ca8de09e84e0
2acc62d42b1a4fc832c78fc1e4290d7531e25dcd
refs/heads/master
2022-12-10T14:30:47.772224
2018-07-13T18:25:46
2018-07-13T18:25:46
138,040,665
3
0
null
false
2022-07-06T19:49:43
2018-06-20T14:02:16
2020-11-23T13:03:26
2022-07-06T19:49:41
44,642
2
0
4
Python
false
false
/home/harshita/anaconda3/lib/python3.5/types.py
UTF-8
Python
false
false
47
py
58
types.py
49
0.829787
0.765957
0
1
47
47
enrijetashino/python-lectures
15,891,379,023,547
53a23b2473285ab2d02b74b0cabccbdec2c42f20
01dbcfbd8524291f4ed3f6a6654ac01e8134fee9
/lecture3.py
5d7eda4b97885aa28be81b1ee68d1429f22c060c
[]
no_license
https://github.com/enrijetashino/python-lectures
f1ea03f529b08d93be29a88f1f28c86452a2ffb8
7c9d0908ddf205950ff63b9a6fc8ef27a8a70290
refs/heads/master
2021-04-06T12:42:03.204620
2018-06-21T01:57:50
2018-06-21T01:57:50
124,961,134
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 31 16:26:22 2018 @author: enrijetashino """ #------------------------# # A 3rd Python Session # #------------------------# import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from panda...
UTF-8
Python
false
false
4,494
py
7
lecture3.py
6
0.656653
0.636182
0
183
23.415301
89
wuxum/learn-python
16,733,192,612,990
4830538e467f6f1e27996525098eb24c82aa0b12
2a9462df27de48353c9f94aeb34f108175bdf51c
/26-try-except.py
7a454f174c25b88ebe45624b2c454af5b74c8392
[]
no_license
https://github.com/wuxum/learn-python
c6bc47c5ea7b67d2265ff14949e3b22050857c14
8bfff28a254c7c3029f40b84718eb5413d7bbbeb
refs/heads/master
2020-03-20T14:53:25.935746
2018-06-15T14:42:19
2018-06-15T14:42:19
137,498,202
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # website: https://pythonbasics.org/try-except/ try: x = input("Enter number: ") x = x + 1 print(x) except: print("Invalid input")
UTF-8
Python
false
false
165
py
25
26-try-except.py
24
0.606061
0.6
0
8
19.625
47
wangjhfree/pydev
14,061,722,950,481
0c2864bb5f1773534712525fb6ff454e5e9986e8
300e0493cbce121ad06e2a83935d1fa932294f44
/tasks.py
03e7aa7dce69f58d56bbbefaaa1a13f2d9f799ca
[]
no_license
https://github.com/wangjhfree/pydev
3ba1a9013bb39f635cf6af7b53a13cb6ee2b5ddb
04cf3dfb32f857dfe3e7af6f52fc8f5e815f629c
refs/heads/master
2020-02-07T12:02:23.971281
2017-09-30T08:48:37
2017-09-30T08:48:37
99,209,590
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding=utf-8 from celery import Celery app = Celery('tasks') #app.conf.update() app.config_from_object('celeryconfig') import time @app.task def add(x, y): time.sleep(5) return x + y
UTF-8
Python
false
false
221
py
22
tasks.py
20
0.669683
0.660633
0
17
12
38
KaoTzuChi/web-app-api-example-dev
5,789,615,925,352
e82c2b37e6dbd6fc09ecf728f2c0917a4b9ef7e5
756dfd587b41ef10265781e19343bfae02db4924
/mywebapp/views/data/data.py
b8179a6e8325a4f2f76584e4f07d86d42b24bbb9
[]
no_license
https://github.com/KaoTzuChi/web-app-api-example-dev
1378ac3220b53ccfe1a08a477e5dbe861970059c
746feb44842a2b0c35034ef5834b337dbf2bf132
refs/heads/master
2022-07-17T19:07:22.127206
2020-05-20T17:49:28
2020-05-20T17:49:28
265,639,905
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse #from django.contrib import messages from django import forms from django.core.exceptions import ValidationError from django.shortcuts import get_object_or_404 from django.http import HttpResponseRedirect from django.urls import reverse ...
UTF-8
Python
false
false
7,280
py
60
data.py
39
0.633526
0.609873
0
193
36.683938
133
lbkelly/j_acezero
2,860,448,225,581
c8b4d153ae7067d17d22d9324dbd83ec53e27b75
931ac366e2928af6e211949e75de02d55ccb593b
/Programs/1b/ace_zero-v09/ace0/charts.py
b42cda49252beeebf5d07d6c434513553f7dba59
[]
no_license
https://github.com/lbkelly/j_acezero
0279c7024410c273dc010ad4f682aac401826a27
84745e0ff54df64168253cdccf46c63a96fd517a
refs/heads/master
2022-12-07T17:32:36.283051
2020-08-26T04:31:15
2020-08-26T04:31:15
290,392,035
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/env python """ Plotting routines for debugging and visualisation. This module contains function for plotting the traces of aircraft using matplotlib. """ __author__ = 'mikepsn' import matplotlib.pyplot as plt import mpl_toolkits.mplot3d from mpl_toolkits.mplot3d import axes3d import datetime import platform i...
UTF-8
Python
false
false
8,001
py
221
charts.py
65
0.519935
0.469441
0
249
31.136546
122
mrezekial/School
11,656,541,262,383
f1c2452bfd906370158b1bb87bfacdc2e29c1627
5e3ab0e2ff80524b563f67f9962b73d6956a12b5
/Python/Lab 3/Final Work for Presentation/lab3-3.py
9dd077a648837767a6aee112811e6b6ba79ad4b4
[]
no_license
https://github.com/mrezekial/School
9e2aa7bed507604836fb6b0ae8a4fe4c3193e881
9579c45c3b24cdf128b6519eb381548aec7abf43
refs/heads/master
2021-01-22T20:29:25.488108
2015-03-09T18:33:45
2015-03-09T18:33:45
31,838,623
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import lab03 if __name__ == '__main__': print "Keegan Bailey\nC0369801\nComp112 -- Lab03\n\n" print "the sum of a series of numbers." print "###########################################################" print "# the series ends when the user enters a negative number #" print "######################...
UTF-8
Python
false
false
443
py
181
lab3-3.py
118
0.460497
0.424379
0
10
42.8
71
Aasthaengg/IBMdataset
9,990,093,952,543
855cb58d6c9ef6ad76fc435b83d4c03f58dd4562
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03211/s126688388.py
e6a14ea746a9a3cbb36289cb99a1becffea1f3b4
[]
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
s = input() ans = abs(753 - int(s[0: 3])) for i in range(1, len(s) - 2): num = int(s[i: i + 3]) ans = min(ans, abs(753 - num)) print(ans)
UTF-8
Python
false
false
147
py
202,060
s126688388.py
202,055
0.503401
0.428571
0
8
17.5
34
JJK96/SDM
9,852,654,990,604
f1aba71c2c4d4f62036f264270f2ad18cf9b7b73
8067633708b74bd2edd596a4c9ad0b4c1660e3fa
/consultant.py
cecbead219e4a40701283cf3848c18bddaeb6d01
[]
no_license
https://github.com/JJK96/SDM
9b3a17f170fa1373300f17a19edfc9042fc4d025
50586005acbe965503bdf09b02751d432924769d
refs/heads/master
2020-08-16T19:09:03.069797
2019-11-29T08:16:14
2019-11-29T08:16:14
215,540,381
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import threading import traceback import uuid from socket import socket import rpyc from charm.toolbox.pairinggroup import G1, pair from rpyc.utils.authenticators import SSLAuthenticator from rpyc.utils.server import ThreadedServer import config from client import Client from funcs import * from serialization import ...
UTF-8
Python
false
false
11,776
py
14
consultant.py
9
0.566675
0.561995
0
339
33.663717
149
mickac/hospital_shift_managment_system
962,072,699,900
31022bcaf002d4827f72e91e55d8cea6aef856d5
ce280cff220dc6ea9a73914e76e273c87308cc84
/lekarze/migrations/0013_remove_shiftcounter_department.py
e74abd8424fe3993180bb5d9b868bd34d14e4a83
[]
no_license
https://github.com/mickac/hospital_shift_managment_system
3e838dfee81dc0a1f211f56ce11c2a4ead5f0916
5572a5c5be4d17c26a7a663dcd7f8015685063a9
refs/heads/master
2021-12-15T12:00:31.264791
2020-01-29T00:41:52
2020-01-29T00:41:52
236,874,259
0
0
null
false
2021-12-13T20:36:18
2020-01-29T00:34:22
2020-01-29T00:41:54
2021-12-13T20:36:16
419
0
0
3
JavaScript
false
false
# Generated by Django 3.0.2 on 2020-01-26 14:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lekarze', '0012_auto_20200126_1554'), ] operations = [ migrations.RemoveField( model_name='shiftcounter', name='department',...
UTF-8
Python
false
false
338
py
24
0013_remove_shiftcounter_department.py
13
0.591716
0.5
0
17
18.882353
47
BlenderCN-Org/compAS
10,419,590,704,468
4da37995d545537e4e8d0d13bc4b537cddbced38
60a267a7136b3cec2727824122bc6cda28c331e5
/src/compas/geometry/utilities.py
7134c1536560ae1f1e623fdf62f25204cecb1d86
[ "MIT" ]
permissive
https://github.com/BlenderCN-Org/compAS
4a257637d181188c0b68210f1126fa826be226d5
9796066a2dc26f39fe6ad0a0d44a1ef8a84a608a
refs/heads/master
2020-05-30T02:11:18.495302
2017-03-21T13:42:17
2017-03-21T13:42:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from compas.exceptions import BRGInputError __author__ = ['Tom Van Mele', ] __copyright__ = 'Copyright 2016 - Block Research Group, ETH Zurich' __license__ = 'MIT License' __email__ = 'vanmelet@ethz.ch' def multiply_matrices(A, B): r"""Mutliply a matrix with a matrix. This is a pure Python version...
UTF-8
Python
false
false
2,877
py
311
utilities.py
105
0.537018
0.506083
0
94
29.606383
81
lixiang2017/leetcode
5,918,464,970,710
da0247485348f5ff27a5a4b2144adde341651cd1
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/0171.0_Excel_Sheet_Column_Number.py
43146661f02265024eddfd997374f0f8e04b5b75
[]
no_license
https://github.com/lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' T:O(7),S:O(1) 执行用时:36 ms, 在所有 Python3 提交中击败了91.49% 的用户 内存消耗:14.9 MB, 在所有 Python3 提交中击败了34.57% 的用户 ''' class Solution: def titleToNumber(self, columnTitle: str) -> int: num = 0 for t in columnTitle: num *= 26 num += ord(t) - ord('A') + 1 return num ''' 2021/0...
UTF-8
Python
false
false
748
py
3,076
0171.0_Excel_Sheet_Column_Number.py
2,900
0.54902
0.46732
0
29
20.103448
53
hone1er/hackerRank
11,441,792,921,672
dedc185bf1e13d08b7ea847079d7628f1563b5ac
e9a62cae4e815b205457bcd742a2d401882a4347
/Python/diagonalDiff.py
bba7be993a2203957638298d323997e3a77de65c
[]
no_license
https://github.com/hone1er/hackerRank
8abe63680ae22900da8580fa388e2c87e4bffa05
825c2d2675497789235b9d37f347644856e5ea40
refs/heads/master
2020-05-07T09:23:46.088037
2019-12-17T19:53:07
2019-12-17T19:53:07
180,375,265
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python3 import os # Complete the diagonalDifference function below. def diagonalDifference(arr): primary = sum([arr[n][n] for n in range(len(arr))]) secondary = sum([arr[len(arr)-(n+1)][n] for n in range(len(arr))]) return abs(primary-secondary) if __name__ == '__main__': fptr = open(os.environ...
UTF-8
Python
false
false
555
py
28
diagonalDiff.py
27
0.6
0.596396
0
24
22.125
70
rbernand/computorv2
1,537,598,319,099
3ab8eeef8eddc5d88f4fb3160440d3d5a852effd
df623e48f65621a84c51ad3017b2fafd27f69fdb
/computor/parser.py
ab06992f2066741a40549242c423b56861b08742
[]
no_license
https://github.com/rbernand/computorv2
19ceb1b0c6287a120c3ff14a352bb47da1d8a5ea
85e55236087f955b2c1f1b279b5ca8ce58c7b0d6
refs/heads/master
2021-03-24T12:55:57.722152
2017-07-17T13:51:27
2017-07-17T13:51:27
88,269,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re from computor import LOG from computor.exceptions import ComputorSyntaxError from computor.tokens import Token, Variable, Function class Parser: SEPARATORS = Token.OPERATORS + ('(', ')') REGEX_FUNCTION = re.compile(r'^(?!i)([a-zA-Z]+)\((?!i)([a-zA-Z]+)\)$') REGEX_VARIABLE = re.compile(r'^(?!i)(...
UTF-8
Python
false
false
2,986
py
21
parser.py
19
0.473878
0.471199
0
96
30.104167
94
eduardorasgado/divide-and-conquer-algorithms
17,695,265,269,547
684799c546d84fe58d83cc3a1ae9dc8f069c736d
65ab152e1ed3b63251e9cc93029f20005a7d014d
/search.py
eed0c31115b661abcf70c71432cff033ac86e883
[ "MIT" ]
permissive
https://github.com/eduardorasgado/divide-and-conquer-algorithms
4535ea0aed40398a967a39a357df20b5699d8ce7
9821a0a75b62bcb4c3d636bc1f1b944771658d23
refs/heads/master
2020-03-12T14:21:31.987034
2018-04-23T08:35:55
2018-04-23T08:35:55
130,665,397
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 09 23:38:49 2017 Search Graphs for pathfinder A* Algorithm @author: Eduardo """ #import math #import collections import heapq grid = [[0, 0, 1, 0, 0, 0], [0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 1, 0], [0, 0, 1, 1, 1, 0], [0, 0, 0,...
UTF-8
Python
false
false
5,875
py
22
search.py
21
0.468255
0.448511
0
197
27.832487
76
GIScience/openrouteservice-examples
17,154,099,417,660
a2ebf99b720a792169fea69327664f9e86e46add
901aa2395b6e36a53e7873e6ab1a11c2f342f50c
/python/Health_Care_Access_Madagascar.py
d6f60a1e8b851860207c059dabb81f3cc353035e
[ "Apache-2.0" ]
permissive
https://github.com/GIScience/openrouteservice-examples
e4287d82591f8cf7523b3384a94eabdee3fa4dd6
76c3c9f6ce20786c837200a35cbe1875737ddfaa
refs/heads/master
2023-07-10T03:35:05.895443
2023-06-26T19:11:50
2023-06-26T19:11:50
126,886,924
76
51
Apache-2.0
false
2023-06-26T18:51:01
2018-03-26T20:36:57
2023-06-18T23:16:59
2023-06-26T18:51:01
96,083
73
46
8
Jupyter Notebook
false
false
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.12.0 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # # Analysis...
UTF-8
Python
false
false
20,605
py
25
Health_Care_Access_Madagascar.py
10
0.672604
0.658432
0
472
42.654661
195
venom9x1/Big5-Textual-Analysis-Backend
13,005,161,010,399
2a41330af7d152a18f8b1d30d37738fbc20a6390
859bb3e856fb68f741414b14282e03053c08a47c
/app.py
d26b29534edd9c115fa193dcec388fb1910d6fc3
[ "MIT" ]
permissive
https://github.com/venom9x1/Big5-Textual-Analysis-Backend
b202722085a291a68d630ba1f060739a60b8b7a1
4f75fbba41172048aa7f830dc87f01b70171719a
refs/heads/master
2023-01-04T23:24:55.057223
2019-10-12T06:41:29
2019-10-12T06:41:29
214,589,521
1
0
MIT
false
2023-01-04T12:21:24
2019-10-12T06:15:30
2019-10-12T06:49:24
2023-01-04T12:21:22
78,404
1
0
15
Jupyter Notebook
false
false
from __future__ import division from math import sqrt from flask import Flask, render_template, request, jsonify from collections import Counter from flask import Flask, request from predict import Predictor from model import Model app = Flask(__name__) M = Model() predictor = Predictor() @app.route('/', methods=['G...
UTF-8
Python
false
false
621
py
17
app.py
8
0.694042
0.687601
0
27
22
58
KratosMultiphysics/Kratos
953,482,754,441
e6ef3c5fe930eb7c31970706a0a1dc71b81e369a
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/ShapeOptimizationApplication/python_scripts/algorithms/algorithm_relaxed_gradient_projection.py
a6ccfa79fd1294fea9e22ec8a9525c04bc32e5a3
[ "BSD-3-Clause" ]
permissive
https://github.com/KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
false
2023-09-14T13:22:43
2017-02-13T10:58:24
2023-09-12T08:24:14
2023-09-14T13:22:43
1,979,018
882
218
488
C++
false
false
# ============================================================================== # KratosShapeOptimizationApplication # # License: BSD License # license: ShapeOptimizationApplication/license.txt # # Main authors: Ihar Antonau # # ==========================================================...
UTF-8
Python
false
false
30,146
py
7,188
algorithm_relaxed_gradient_projection.py
5,909
0.601705
0.595071
0
580
50.977586
158
python-trio/sphinxcontrib-trio
14,525,579,417,875
8765539cd8fe2625d1fea741bee07c4470c71f87
a9e2bc489e9bb5f963d9bd478d0c5cdff2cc4bed
/sphinxcontrib_trio/__init__.py
69366614e407c23fb9bb6cc6b714c9573e04caf8
[ "Apache-2.0", "MIT" ]
permissive
https://github.com/python-trio/sphinxcontrib-trio
51baecdc96163b57723bc1272791e30d626498b7
d76d5d993a97f381c17ab65a4ac38dad56584de7
refs/heads/master
2023-03-09T16:19:38.406648
2022-05-20T05:59:46
2022-05-20T05:59:46
91,061,935
28
8
NOASSERTION
false
2023-03-06T06:07:44
2017-05-12T07:06:37
2022-09-26T12:28:29
2023-03-06T06:07:39
518
26
11
20
Python
false
false
"""A sphinx extension to help documenting Python code that uses async/await (or context managers, or abstract methods, or generators, or ...). This extension takes a somewhat non-traditional approach, though, based on the observation that function properties like "classmethod", "async", "abstractmethod" can be mixed a...
UTF-8
Python
false
false
14,502
py
17
__init__.py
7
0.634602
0.633361
0
400
35.255
94
Hamsterzs/PineiroOrdunoAbel
2,516,850,855,570
ed19320396745d9b3b9684b186bbc117016e4f6f
ad1a6a9a274aeb98eb3d0b662a4002685e16bcae
/Est Datos/recursividad/recursividad.py
1222159429fba3972b493ed1db52552c6c440411
[]
no_license
https://github.com/Hamsterzs/PineiroOrdunoAbel
d0a32eee203cde94a538328228c172757854c76a
e2bf71d630de38c40ef0ca4d887b9225fd833a59
refs/heads/master
2020-08-28T10:30:15.239738
2019-11-06T18:48:27
2019-11-06T18:48:27
217,673,710
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#es una herramienta en el procceso de diseñar algoritmos que consiste en la capacidad #de que una funcion se mande a llamar a si misma subdividiendo un problema grande en #pequeños casos hasta el punto que se convierta en un caso trivial o caso base #el simplificar una solucion con recursividad, no siempre lleva a mej...
UTF-8
Python
false
false
1,543
py
26
recursividad.py
26
0.639195
0.622972
0
59
25.016949
85
fox1985/mybook
11,922,829,242,691
d2906eac8f67c7eed7614d695d3db56e2e6cc3b2
37ff4c0682a9de75c8794c8fc2638f1058a14cb8
/page/urls.py
e377f9ddca7d66d52007dcb0502d429edb7d583c
[]
no_license
https://github.com/fox1985/mybook
0a47193701ce39b38bfaae8f51c312f96a98f02f
f15c04dedcd54e0ba71de55c6b5477cec1f98ddc
refs/heads/master
2020-04-04T14:35:40.085681
2018-11-07T17:27:49
2018-11-07T17:27:49
154,287,264
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """mybook URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home...
UTF-8
Python
false
false
2,146
py
21
urls.py
14
0.665335
0.661339
0
70
27.614286
100
danel2005/triple-of-da-centry
1,795,296,362,937
55eedac9d5312a3816e4f7eb7b3eb496604f645e
a2eff08a89f960821b23479d46a70665a27970c0
/Aviel/8.3.4.py
8c2855654676e10e720344042891bc1aef78ad87
[]
no_license
https://github.com/danel2005/triple-of-da-centry
d7a51fa95855b0f8969bc99fca5c4bf3974b7eb8
74db9de0ef5c8dad366b4a7c2d244eb6abc5265f
refs/heads/master
2023-03-17T22:28:29.375165
2021-03-19T17:36:06
2021-03-19T17:36:06
335,373,574
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def inverse_dict(my_dict): """ inversing a dict :param my_dict: the dict we want to inverse :type my_dict: dict :return: an inversed dict :rtype: dict """ new_dict = {} for info in my_dict.items(): if info[1] in new_dict.keys(): new_dict[info[1]] += [info[0]] ...
UTF-8
Python
false
false
601
py
86
8.3.4.py
79
0.517471
0.50416
0
24
24.083333
55
fengyouliang/wheat_detection
19,026,705,162,264
9b5ae1857f0ca175fcd10ada8bb6c3f979104fb3
77717d0024c8597fec83600259ea5547abbc183a
/wheat_detection/demo/stratified_split_demo.py
2f337b86ff9dd27536c943b9eec06ef1d5655e98
[ "Apache-2.0" ]
permissive
https://github.com/fengyouliang/wheat_detection
0a090ef5eda7f2c5463996f4795f9ce06dd04050
d056123426a1260c29b486cbb8e44a88a0a3c5bc
refs/heads/master
2022-11-17T15:09:29.113493
2020-07-18T13:47:34
2020-07-18T13:47:34
276,532,878
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import train_test_split csv_path = '/home/fengyouliang/datasets/WHD/kaggle_csv/train_0618.csv' df = pd.read_csv(csv_path) # get a df with just image and source columns # such that dropping duplicates will only keep unique image_i...
UTF-8
Python
false
false
1,100
py
31
stratified_split_demo.py
27
0.685455
0.667273
0
32
32.375
94
raynardfung/mooc-udacity-intro-to-computer-science
17,282,948,411,013
d7bbae8af6aecac47a18c8978f826acba7f34742
9e9eb854685e3e2c295aa1fa49f07b9bff0eacf8
/lesson7.py
ccbc987a54e1583cbe8212c05af90ece68eafcee
[]
no_license
https://github.com/raynardfung/mooc-udacity-intro-to-computer-science
fa39ff3abfaee229815117c753402db27bf0904a
b74c1df4152e5b617636c696074f80f80ae2a930
refs/heads/master
2016-06-04T17:50:21.538555
2015-10-05T18:08:47
2015-10-05T18:08:47
43,699,784
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#--------------------# # lesson 7 #--------------------# # no technical content in this unit, just overviews and fieldtrips to real companies # and labs # 3 main themes from this course: # abstraction: making general rules that can be applied to many situations # universality: a computer is a universal machine since ...
UTF-8
Python
false
false
461
py
7
lesson7.py
7
0.709328
0.704989
0
12
37.333333
84
carloserodriguez2000/EmailAdrChk
4,526,895,563,738
012c67b75c4de66d2cc6b3509036b4d05bac0614
22daaf26baac549194af0e0968ea2f9f545aa606
/CrazyRFCwikiMain.py
fc115cfa06a107838dcfaaf830c052a93fbb5a4a
[]
no_license
https://github.com/carloserodriguez2000/EmailAdrChk
06256ae9ca9fdd13168f4d0b85ca6a03222f1083
7c3ca7d0c20fad2a8f29d71c90aa39624f26fb50
refs/heads/master
2021-01-01T04:29:24.832071
2016-05-17T15:35:50
2016-05-17T15:35:50
58,962,182
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
################################################################################ # hi. This program plays a game inspired by the TV show "BigBang Theory". def cleanS ( string ): cleanS = string.strip() # get read off Leading and training spaces. cleanS = cleanS.lower() return cleanS ###...
UTF-8
Python
false
false
7,225
py
3
CrazyRFCwikiMain.py
2
0.438201
0.432526
0
220
30.840909
90
zmzmhhhxyj/leetcode
18,975,165,543,991
7656157a23aa071ecfed95cc328e25991dc59a00
c06b9b1492410639be60f03e00d575ad3e798eba
/leetcode_challenge_week3_6.py
57e9e41807e6a9b8110a3e635295a0d8756228d5
[]
no_license
https://github.com/zmzmhhhxyj/leetcode
cd8c622aa6de26a6e2602e4d0b9d17aa1394507f
4351c8bff8f94744e5faea4cbda9ea771d3e5f28
refs/heads/master
2020-11-25T02:03:29.721509
2020-05-24T00:22:26
2020-05-24T00:22:26
228,441,961
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 200420 from typing import List from collections import deque class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None def constructBinaryTree(elemList): length = len(elemList) if(length == 0): return None _root = TreeNode(elemList[0]) ...
UTF-8
Python
false
false
1,832
py
173
leetcode_challenge_week3_6.py
172
0.557314
0.539301
0
63
28.095238
67
laurennc/CGMemission
11,836,929,904,243
5c2a181bbf7efd35b7a9ca5128a9cb24d5318c08
5eda468fce23ec99250dd365026f0905dcbc9bad
/yt_to_tlac.py
5cca6aff7f63d5b8f41f61b11d1a7c39d5812656
[]
no_license
https://github.com/laurennc/CGMemission
fc7b9303081b93475e720cc4a38b68906bec716a
59d6c73bcf5128fc0c46f41ab9c6e6784bbe23c2
refs/heads/master
2021-01-15T15:31:38.710202
2016-09-20T21:38:17
2016-09-20T21:38:17
13,177,868
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 yt.mods import * import tlac_grid_create_hdf5 as tg import tlac_analysis as ta fn="/u/10/l/lnc2115/vega/data/Ryan/r0054/redshift0054" pf = load(fn, file_style="%s.grid.cpu%%04i") # load data #val, pos = pf.h.find_max('Densi...
UTF-8
Python
false
false
2,110
py
118
yt_to_tlac.py
114
0.672038
0.611848
0
65
31.461538
169
ZhangDahe/PyProjects
1,949,915,198,714
6186448815a72085eb3a1f420b0d5ca12bcd5ae6
e727361dd1254b4ff2437f431378c1b32b38d302
/Codes/PyProjects/NS3_work/HeartBeats/TCP/TCP41_ser.py
b332bcbda7edc51066063a1db753aee73b04baad
[]
no_license
https://github.com/ZhangDahe/PyProjects
29b2640028d786c76c8dfcc4ad0f465a6e7dd146
ee96a4d87a62db631d8bf4599295bec39ad20102
refs/heads/master
2020-04-27T07:23:30.785470
2019-03-06T08:28:56
2019-03-06T08:28:56
174,102,232
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''最终版''' '''新建立一个子线程''' import socket, threading, time tcpPort = 8888; checkPeriod = 5; checkTimeout = 10 class Mydict(dict): '''管理字典,更新,新建. 返回掉线的client''' def __init__(self): super(Mydict, self).__init__( ) """ 创建或更新字典目录""" def __setitem__(self, key, value): super(Mydict, self).__...
UTF-8
Python
false
false
1,944
py
22
TCP41_ser.py
22
0.538549
0.528912
0
58
29.431034
79
shubham-gaikwad/Assesing-building-damage-post-disasters
17,119,739,667,663
1bf4e5cd5f4ff30e535c0b458f06303adf6887da
5a74ffd19d7894e899dac449cc7b944ba4cb6b46
/data_finalize.py
085ec061e69e571f05f4919a90efefaf67791e9a
[]
no_license
https://github.com/shubham-gaikwad/Assesing-building-damage-post-disasters
a1e00f0ed7f7b8b30b54904ddc3105afccf71b61
830f43db780ff2e7b7740fe485dbd7cb6e0516a8
refs/heads/master
2022-04-22T10:26:22.399093
2020-04-28T23:22:29
2020-04-28T23:22:29
259,773,646
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import shutil import random val_split = 0.2 base = '/home/abhirag/experiments_on_portugal/' ds = '/home/abhirag/ONLY_PORTUGAL/' if os.path.exists(os.path.join(base, 'spacenet_gt')): shutil.rmtree(os.path.join(base, 'spacenet_gt')) os.mkdir(os.path.join(base, 'spacenet_gt')) os.mkdir(os.path.join(base,...
UTF-8
Python
false
false
1,394
py
9
data_finalize.py
3
0.681492
0.676471
0
38
35.631579
244
snowowwwl/Coursera_MLIntro_Yandex
4,140,348,523,475
99a9c810cf2c856ef7b49351711c7995461b1534
6f3dce332a45f2bce371abfd5bed335876f535bc
/W1_task2_decisiontree/W1_task2_decisiontree.py
fd10659c86ffacd6ac72eddff87233ce6caed804
[]
no_license
https://github.com/snowowwwl/Coursera_MLIntro_Yandex
872bdc2f32333bf343a60f0c47531672db62cd70
ba1aac577f7c35f7039073165ab8580e0b64f8f7
refs/heads/master
2020-07-08T17:35:49.440043
2019-09-26T10:58:09
2019-09-26T10:58:09
203,733,863
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Загрузите выборку из файла titanic.csv с помощью пакета Pandas. Оставьте в выборке четыре признака: класс пассажира (Pclass), цену билета (Fare), возраст пассажира (Age) и его пол (Sex). Обратите внимание, что признак Sex имеет строковые значения. Выделите целевую переменную — она записана в столбце Survived. В дан...
UTF-8
Python
false
false
2,937
py
20
W1_task2_decisiontree.py
18
0.753419
0.746802
0
54
41
122
CesarAcjotaMerma/ProyectoFinal4toSemestre
5,068,061,415,308
8a27123d769eec100051ec89eb4748e747d0c964
d29c95b4634a31e0e1e6935804cbdd127dcf27dd
/Backend/Django/gestion/coordinates/serializers.py
7fdb3062aa947a5b23de8b6305b15cce4f8a754b
[]
no_license
https://github.com/CesarAcjotaMerma/ProyectoFinal4toSemestre
d791ff7687795db0bffaae6b55235f4308cb2f8d
d345c5ebfd7363de1307561b6c70cd41ed63a013
refs/heads/master
2023-08-27T03:00:15.984873
2021-10-16T17:47:51
2021-10-16T17:47:51
417,904,573
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from coordinates.models import Coordinates class CoordinatesSerializer(serializers.ModelSerializer): class Meta: model = Coordinates fields = ('__all__')
UTF-8
Python
false
false
219
py
120
serializers.py
92
0.721461
0.721461
0
9
23.444444
57
MakeMagazinDE/Platinenbohrmaschine
2,911,987,841,614
d459d1c76bced76c7a0e3684a72d7194d117447d
3301fb088440c6c18a36c8dc7e9d3e650fd8b97a
/bohrconfig_10.py
13e01eac9f531290ff2f12551541d16c15d80c0f
[]
no_license
https://github.com/MakeMagazinDE/Platinenbohrmaschine
327006914c46fffc6e46ece25c96eaeead0af682
80f7fde6e72e5148ef554259beab1e5cb5cf7ffb
refs/heads/master
2020-03-09T17:32:27.294156
2018-04-10T11:07:23
2018-04-10T11:07:23
128,911,033
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from tkinter import * from tkinter import ttk name = "Bohrconfig V01" filename = 'bohrconf.txt' mainWin=Tk() mainWin.geometry('310x330+50+30') mainWin.resizable(width=FALSE, height=FALSE) mainWin.title(name) mainFrame = Frame(master=mainWin) mainFrame.place(x=0, y=0, width=...
UTF-8
Python
false
false
5,203
py
6
bohrconfig_10.py
4
0.64283
0.579393
0
156
32.339744
72
herjh0405/Coding_Test
7,438,883,402,518
eb6c77d92fef2493f6ec920dfc6f733e692fa1e8
100ff22eb70448a7532216e535e48929e47be898
/Chapter7. 이진 탐색/7-6. 부품 찾기_계수 정렬.py
1648f234f4249c57e327cd9e706e32bc41610726
[]
no_license
https://github.com/herjh0405/Coding_Test
100b0c2a4aac0aa4d8aa9dad5780ab6c2e7b33d9
0df10f057b22d5e9b32494548685b79aa9fbbc07
refs/heads/master
2023-05-27T06:46:52.350172
2021-06-15T04:34:45
2021-06-15T04:34:45
358,766,282
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 이진 탐색 말고도 계수 정렬의 개념을 이용하여 문제를 풀 수도 있다. # 모든 원소의 번호를 포함할 수 있는 크기의 리스트를 만든 뒤에, 리스트의 인덱스에 직접 접근하여 # 특정한 번호의 부품이 매장에 존재하는지 확인 import sys # 가게의 부품 개수를 입력받기 n = int(input()) array = [0] * 1000000 # 가게에 있는 전체 부품 번호를 입력받아서 기록 for i in input().split() : array[int(i)] = 1 # 손님이 확인 요청한 부품의 개수를 입력받기 m = int(i...
UTF-8
Python
false
false
865
py
42
7-6. 부품 찾기_계수 정렬.py
36
0.566728
0.548446
0
22
22.954545
55
AllStars123/online_shop_django
6,073,083,764,333
36afaf3d48aac144edba1b9713235055cf117b97
dd116ddf8b7edb0083ff9eeaf5c0b4ecb4199378
/mainapp/migrations/0009_alter_customers_orders.py
51d1ff2c6643a46cf13b922eee379b363c994b32
[]
no_license
https://github.com/AllStars123/online_shop_django
bd11fabf4cd4d2e026b63e8e97bc9ffbbb8fd770
39b8e04d78db2e4a8feab1e67580088e7529e0bf
refs/heads/master
2023-07-08T22:50:53.754670
2021-08-06T21:57:14
2021-08-06T21:57:14
393,510,483
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.5 on 2021-08-05 18:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0008_auto_20210805_1842'), ] operations = [ migrations.AlterField( model_name='customers', name='orders',...
UTF-8
Python
false
false
484
py
10
0009_alter_customers_orders.py
8
0.623932
0.557692
0
18
25
129
MightyCrane/scattering-clustering
6,665,789,243,642
27955ddc3cd53275406f3e9fd4a01a697ec012a8
b1f43584508c0a759e75697ff1e2fd0cc180df21
/src/lib/scattering/scattering_methods.py
27e978cb62d74b744696305f28aac4ab47732ec9
[]
no_license
https://github.com/MightyCrane/scattering-clustering
8d9b0f37c084ae3073fa31552571e84fb4dbf381
fbdc75271658f3e53d55fc6d04995a8058a0bf62
refs/heads/master
2023-07-24T00:05:08.251008
2021-08-27T08:25:39
2021-08-27T08:25:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Methods for intializing ScatNets and other functionalities related to the scattering transform """ import kymatio as km def scattering_layer(J=3, shape=(32, 32), max_order=2, L=6, debug=False): """ Creating a scattering transform "network" Args: ---- J: Integer logscale of the scatte...
UTF-8
Python
false
false
3,392
py
25
scattering_methods.py
20
0.643573
0.630601
0
115
28.495652
126
Anupya/leetcode
4,621,384,842,016
9384856d858c900f947bd13696aeef8166378abb
2b485c67c723151f73ec96da9f6337a0c9857dae
/medium/q395 atleastKRepeatingChar.py
c154eae82f6704f35c2860ecfed24f87f6f1a2d3
[]
no_license
https://github.com/Anupya/leetcode
c7792e6ac61b655491a1c734f9167281356471d3
cb45e66a41e0c6a8583bb9c4bf846b470ef4bc0f
refs/heads/master
2022-10-10T14:01:22.189414
2022-09-07T21:36:24
2022-09-07T21:36:24
151,865,310
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Given a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is greater than or equal to k. class Solution: def longestSubstring(self, s: str, k: int) -> int: return self.longestSubstringActual(0, len(s), s, k) def...
UTF-8
Python
false
false
935
py
149
q395 atleastKRepeatingChar.py
148
0.573262
0.571123
0
24
37.625
175
AdamZhouSE/pythonHomework
15,942,918,644,388
3081ef4c6c1ebacc5826d8dd731c18c63d8ce855
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2599/60622/317669.py
9259f978f2c93eba49b3d4176da7890a6625ba0c
[]
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
l=input().split() n=l[0] m=l[1] for i in range(n+m): s=input() l.append(s) if l==[]: pass else: print(l)
UTF-8
Python
false
false
120
py
45,079
317669.py
43,489
0.508333
0.491667
0
10
11.1
20
dahlke/PyTrain
16,423,954,959,518
fc722fb33a51057e4f930f2da0077f7419d089d7
54dcbdff3a619549c823dac81f48dc1895865480
/lines.py
b37ed6d96e98e35d1420203f179fc43a1deffbaf
[]
no_license
https://github.com/dahlke/PyTrain
f700cf1b877d79c8281347935d614c0df94a37b0
18c9f3a3833d193f18f02fb571455729a6e01754
refs/heads/master
2016-08-05T04:23:45.697561
2013-05-02T00:57:22
2013-05-02T00:57:22
6,946,515
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import Tk,Frame,Label,Button, PhotoImage, Menu from tkinter import Frame,Label,Entry,Button,TOP,LEFT,RIGHT,END,BOTTOM from tkinter.messagebox import showinfo import driver import stops class lines(Frame): def __init__(self, master=None, bg='black', height=1000, width=1000): Frame.__init__(self...
UTF-8
Python
false
false
2,031
py
9
lines.py
8
0.535204
0.509601
0
62
31.758065
85
RafaelVallejo/Pentest
1,297,080,140,525
161b6127dc86a5b1bd8f0b92df30462f6ed8e79b
578621ba1fc1ce7ed01e81902f19d3440cff497a
/Tareas/nmap.py
d9b24ccb1278a8e044371a36c991bd1908762529
[]
no_license
https://github.com/RafaelVallejo/Pentest
4c42f25060f75d7ba46d030de53d3c7dd57ad42f
a03011e7ba9aad5b4def8e63619f7c938122a8ba
refs/heads/master
2020-05-02T03:10:39.132596
2019-04-19T06:15:40
2019-04-19T06:15:40
177,721,944
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # ejecución: sudo python nmap.py -i <ip_host> -p <Puertos separados por coma, por espacio o por guión (para un rango)> from sys import argv,exit as eexit,stderr from scapy.all import sr1,sr,IP,ICMP,TCP,RandShort import optparse import argparse def printError(msg, exit = False)...
UTF-8
Python
false
false
4,259
py
4
nmap.py
4
0.608675
0.600424
0
93
44.612903
143
diegopajarito/MACT20.21_Digital_tools_Big_Data_part_2
18,159,121,747,191
652f3f0e9ba5c58ee60a0930a353478e327599a2
ff8f16cd11816832d5fc42435fb6bc9e6b003eee
/session4/c_animations_data.py
1e2c24ac6eaf0a538648e5bb6a535c1acbf2f738
[ "Apache-2.0" ]
permissive
https://github.com/diegopajarito/MACT20.21_Digital_tools_Big_Data_part_2
3ef5d3cb9e396bb489a108c6a67fe2bb2519bc69
8b86299c210b3f322abee06fd789386939962328
refs/heads/main
2023-03-18T09:11:59.198809
2021-03-10T16:47:39
2021-03-10T16:47:39
333,069,480
0
1
Apache-2.0
true
2021-01-26T11:53:49
2021-01-26T11:53:48
2021-01-26T11:53:42
2021-01-26T11:53:39
0
0
0
0
null
false
false
# encoding: utf-8 ################################################## # This script shows how to create animated plots using matplotlib and a basic dataset # Multiple tutorials inspired the current design but they mostly came from: # hhttps://towardsdatascience.com/how-to-create-animated-graphs-in-python-bb619cc2dec1 #...
UTF-8
Python
false
false
3,131
py
24
c_animations_data.py
17
0.696263
0.671032
0
72
42.486111
169
takenet/blip-sdk-python
1,168,231,120,141
0dfa9c5813609a4d6611dda39635a7d35c0f248b
ec32981614943d26f9bddc7eee205406407fdfcb
/src/blip_sdk/extensions/__init__.py
eaabd99205c358f81870ce4abf72a6955626fc6d
[ "MIT" ]
permissive
https://github.com/takenet/blip-sdk-python
a58a4954577229650043e9c270554f25458767ab
f958149b2524d4340eeafad8739a33db71df45ed
refs/heads/master
2023-08-01T17:52:00.981847
2021-10-07T19:16:57
2021-10-07T19:16:57
377,283,892
6
3
MIT
false
2021-10-07T19:16:58
2021-06-15T20:18:30
2021-07-14T15:02:53
2021-10-07T19:16:57
252
2
0
0
Python
false
false
from .extension_base import ExtensionBase from .media import MediaExtension from .chat import ChatExtension from .artificial_intelligence import AIExtension from .analytics import AnalyticsExtension from .contexts import ContextsExtension
UTF-8
Python
false
false
239
py
76
__init__.py
69
0.866109
0.866109
0
6
38.833333
48
MatheusWTF/dither-with-py
12,936,441,539,124
de8c4ec2312cf13d98397dba9013c74ed9f31bb6
63fbfa9e0efa65140ea4048499af956a33d0f2d6
/ordena.py
3a21b64d9137f357e7684d9f651c664d9f85cc9a
[]
no_license
https://github.com/MatheusWTF/dither-with-py
ca18ac9e144e70a6f95afe3da67b574f2c0eb067
a56700f3e6b13178777e08e75840fbbaff02d634
refs/heads/master
2020-03-23T10:34:19.627937
2018-07-28T03:18:14
2018-07-28T03:18:14
141,450,177
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# encoding: utf-8 # author: Matheus D. rodrigues ### Imports from PIL import Image from time import time ### Sub Programs def ordena(img): lista = [] pix = img.load() for y in range(img.size[1]): for x in range(img.size[0]): data = [x, y, pix[x, y]] lista.append(data) ...
UTF-8
Python
false
false
1,593
py
3
ordena.py
3
0.559322
0.528562
0
55
27.981818
88
DCC-CC4401/2018-1-sad-T3
953,482,787,595
680911234e671123091baf3533791a5fcda801e7
ae66041a537d95aadef6596e31e6428081c6500f
/cc4401Inventory/spacesApp/migrations/0001_initial.py
135d5f07eb47cc34e61a4e94aab5882eaa382308
[]
no_license
https://github.com/DCC-CC4401/2018-1-sad-T3
616ce4be5beee2e6710f4d763f023829b5b6ab5e
dbb3e2dbcef6c3e1de2061c9f52de061a192c190
refs/heads/master
2020-03-13T17:23:15.635691
2018-07-10T15:49:18
2018-07-10T15:49:18
131,216,386
1
3
null
false
2018-07-10T06:36:43
2018-04-26T22:18:00
2018-07-10T06:22:26
2018-07-10T06:36:43
985
1
0
0
HTML
false
null
# Generated by Django 2.0.5 on 2018-06-28 21:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Space', fields=[ ('id', models.AutoField(au...
UTF-8
Python
false
false
929
py
40
0001_initial.py
18
0.557235
0.537797
0
27
33.296296
135
quintagroup/quintagroup.plonecomments
16,286,515,987,052
d912e063a4afc773c34890eefac9871680498d85
1ce9ee181195d293766443e6ae64c6ff5f49a3d5
/quintagroup/plonecomments/tests/testQPloneCommentsCommenting.py
8e7f89cfbc2c65bc9c0dc4e2773ed791f9746496
[]
no_license
https://github.com/quintagroup/quintagroup.plonecomments
69a7e321e85571cc0397eaf21dd23580e0946ea1
eed5c2c5b9f2f9eba211cd7f9e1dea5a685fa3a8
refs/heads/master
2021-01-06T20:37:43.460801
2014-07-17T09:18:56
2014-07-17T09:18:56
5,807,860
0
1
null
false
2014-07-17T09:18:56
2012-09-14T10:18:10
2013-10-07T20:41:41
2014-07-17T09:18:56
494
1
3
0
Python
null
null
# # Test adding comments possibility on switching on/off moderation # from Products.CMFCore.utils import getToolByName from zExceptions import Unauthorized from quintagroup.plonecomments.tests.base import FunctionalTestCase from quintagroup.plonecomments.tests.config import USERS, PROPERTY_SHEET, \ DM_USERS_IDS, C...
UTF-8
Python
false
false
18,741
py
53
testQPloneCommentsCommenting.py
23
0.592604
0.592018
0
456
40.098684
81
NUmamahesh15/Twitter-Replica
12,738,873,032,602
fb48b7c95169de949ed6ed1f567284fd20a02db4
5d0ca62c5d9437854af7f5f33793e28bb06b7787
/profiledisplay.py
7982b3df8d76bacdfb8d4a3d69f31ea52396c14c
[]
no_license
https://github.com/NUmamahesh15/Twitter-Replica
372c79aa89bde411c8341bca8d4842a3c76a77f6
71c92dace285438e65b073c117a7d180c5fb0deb
refs/heads/master
2022-11-28T12:21:23.486343
2020-08-10T08:21:14
2020-08-10T08:21:14
286,417,399
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import webapp2; import os; import jinja2; import random; from google.appengine.ext import ndb; from google.appengine.api import users from myuser import MyUser from twitter import Twitter from datetime import datetime JINJA_ENVIRONMENT = jinja2.Environment( loader = jinja2.FileSystemLoader(os.path.dirname(__file__)), ...
UTF-8
Python
false
false
3,689
py
18
profiledisplay.py
10
0.676877
0.672811
0
85
42.4
146
highb33kay/codewarsBot
14,474,039,804,224
db38c4a8f9dc4f078055d966ed2380868b3d9713
7b0fd1301f581f7731b40dc629825907e231141d
/commands/getuserinfo.py
f008227e6a31cecf058b30d623093667e588f7c8
[]
no_license
https://github.com/highb33kay/codewarsBot
1d6ca28134448018dda76cea652b5a70b714f00e
d50a14ec0db1655c15172b3801c126af39e5f909
refs/heads/master
2023-03-19T12:19:02.787826
2020-12-31T17:01:28
2020-12-31T17:01:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import discord, requests async def getuserinfo(message,args): if(args == []): await message.channel.send(f'{message.author.mention}, you must specify a valid username') return data = requests.get(f"https://www.codewars.com/api/v1/users/{args[0]}").json() if "success" in data: await ...
UTF-8
Python
false
false
3,424
py
14
getuserinfo.py
11
0.633294
0.618614
0
57
58.754386
212
mayankagg9722/Placement-Preparation
18,691,697,703,245
f36d1195eb625b8f218a3c116d916fc2bc40cfc7
7f11252c169d3bafca08de9fde71489409d04979
/rep.py
a542935f209939eb98e23438d8793619dddd3ee5
[]
no_license
https://github.com/mayankagg9722/Placement-Preparation
ee4388dc89363a4b1adb0ecea344ce76763f1aec
30593f86d1497adecca98e30a439368771c11061
refs/heads/master
2021-03-16T10:22:35.543180
2020-11-29T07:51:31
2020-11-29T07:51:31
119,993,686
174
59
null
false
2020-11-29T07:51:32
2018-02-02T14:49:11
2020-11-03T00:00:28
2020-11-29T07:51:31
13,155
135
51
0
C++
false
false
def printRepeating(arr, size): print("The repeating elements are: ") for i in range(0, size): print("index:",i) print("index element:",arr[i]) print ("final element:",arr[abs(arr[i])]) if arr[abs(arr[i])] >= 0: arr[abs(arr[i])] = -arr[abs(arr[i])] ...
UTF-8
Python
false
false
470
py
273
rep.py
263
0.487234
0.468085
0
17
26.705882
49
sachinrudr/textbookfindr
5,763,846,120,364
4fadc6d9a09a80628ee03e4dfb5a86b0beea6cb9
72cae103a1180a2c1bd920995e72fbc230f2ffa4
/textbookfindr/bazaar/urls.py
bc8609aa9fd1537cf67cdf612ca700bcd1c32353
[]
no_license
https://github.com/sachinrudr/textbookfindr
a0025c422230213f957149242e3179a9545ace62
3692305cccad77690d1fa3b24500c2017493f7fb
refs/heads/master
2016-05-31T14:20:21.458054
2014-07-28T17:39:39
2014-07-28T17:39:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, url from bazaar import views urlpatterns = patterns('', url(r'^$', views.index, name = 'index'), url(r'^json/(?P<request_type>\w+)/$', views.json, name = 'json'), )
UTF-8
Python
false
false
215
py
18
urls.py
12
0.632558
0.632558
0
9
22.888889
69
otto-torino/django-baton
4,432,406,291,908
0ae0b9a2efcf26424a4a16b2f58fae60d54cade5
c710fa2a979b19d26a45c0821b1c4a46134ba0ae
/testapp/app/app/tests/test_e2e_menu_mobile.py
ab48a55580c09eebb556cef845075a3ee7f69648
[ "MIT" ]
permissive
https://github.com/otto-torino/django-baton
4e1c6fb321e613ac8af9dba496e508fa6a194cb4
a20b2f84c41639c6626357c1486fa86f9ef935c1
refs/heads/master
2023-08-26T20:27:31.907955
2023-08-11T09:45:30
2023-08-11T09:45:30
81,565,159
827
103
MIT
false
2023-08-28T17:26:42
2017-02-10T12:54:24
2023-08-26T16:16:49
2023-08-28T17:26:41
36,801
762
82
19
Python
false
false
import time from django.test import TestCase from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from webdriver_manager.chrome impor...
UTF-8
Python
false
false
3,515
py
116
test_e2e_menu_mobile.py
50
0.660882
0.650925
0
85
40.352941
124
beforeuwait/code_daqsoft
3,238,405,378,433
f144261632c45805a7e9caa438e5d72ad4b040fb
50c23021b19aef84c9c0ed8f8116b1b395df3205
/linkipYQ/config.py
9a3fde0d72fc6315625b68ac4f47acb77c6f3de0
[]
no_license
https://github.com/beforeuwait/code_daqsoft
d87891c6a409841dd495ab85aadb48cb348f9891
6178fdbc08a54b2827c1a80297684a628d4f9c08
refs/heads/master
2021-09-28T20:33:14.164879
2018-11-20T09:16:52
2018-11-20T09:16:52
108,245,470
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf8 import os os.chdir(os.path.split(os.path.realpath(__file__))[0]) BLANK = '\u0001' ENCODE = 'utf-8' TIME_DELAY = 3 HDFS = '/user/spider/linkip_yq/%s' # INFO USER_INFO = { 'name': 'gujing8835', 'password': 'gugugu110', 'type': 1, } PROXIES = { "http": "http://HY3JE71Z6CDS782P:CE68530DA...
UTF-8
Python
false
false
4,084
py
79
config.py
35
0.537408
0.44942
0
165
22.012121
135
machengchao/1805
17,239,998,745,692
f0570b7a7f0d57dce1cfc05b743ef1567e0173b7
554eb44a85f6dfb3316f106c8fa4b6dd12db5b41
/07day/05-高富帅.py
584be8c3280f4220ba44d8283a5a61df8ba40a4f
[]
no_license
https://github.com/machengchao/1805
3d8297a368dbefb0b19b27c65a3340b52f019bcc
705b1316c0fbdda79f2b9fb7722b67a6450f672e
refs/heads/master
2020-03-21T14:45:23.118350
2018-06-28T01:29:10
2018-06-28T01:29:10
138,674,091
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
sex = input("请输入性别") if sex =='男': weight=input('请输入您的身高') money=input('请输入您的财富') color=input('请输入您的颜值') if weight>'180'and money>'1000' and color>'90': print('高富帅') else: print('稳住,别浪') if sex == '女': pifucolor=input('请输入您的皮肤颜色') money=input('请输入您的财富') colo=input('请输入您的颜...
UTF-8
Python
false
false
563
py
40
05-高富帅.py
40
0.556845
0.524362
0
17
24.294118
53
angeloxx/swagger2modsec
566,935,701,192
35ee9a8895d9ce565ba4b7ded0903e5d952e7735
989583da8a56167afab91de67c29957b23a8d1a7
/swagger.py
e0f19c10af7576e8eedde80e2fabbf71eed8ca8d
[ "MIT" ]
permissive
https://github.com/angeloxx/swagger2modsec
77df8de8fc125b1c3026753be39158506ba85bdb
7b23047162fe42125e4648c1593b19d75758493e
refs/heads/master
2020-04-16T08:05:37.414134
2019-02-03T15:13:01
2019-02-03T15:13:01
165,411,416
7
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import logging, sys, re, os, json, requests, io, yaml, coloredlogs from py_essentials import hashing as hs class Swagger: def __init__(self, filename, logger): self.endpoints = [] self.checksum = "" self.filename = filename self.logger = logger try: ...
UTF-8
Python
false
false
3,229
py
6
swagger.py
3
0.550015
0.543822
0
90
34.844444
117
sansom/stock
11,871,289,622,485
9e04ba3b3efa12837cbe6b85be09ccf01bfc7fba
e44d8a6d6f914c632304a64c907c62dc53c0f2d1
/bond_monitor.py
c512d30585689ebd7c10ce8b01e51befe4805e6d
[]
no_license
https://github.com/sansom/stock
abe489f269410a86e09774cdddfce12d8bdf631b
5ae1aa20d488f4919132344b03af6cac67e495e2
refs/heads/master
2021-04-09T11:03:27.113259
2018-03-16T08:36:55
2018-03-16T08:36:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*-coding=utf-8 ''' 可转债监控 ''' import tushare as ts from setting import get_engine engine = get_engine('db_bond') import pandas as pd import datetime class ConvertBond(): def __init__(self): self.conn=ts.get_apis() self.allBonds=ts.new_cbonds(pause=2) self.onSellBond=self.allBonds.dropna(su...
UTF-8
Python
false
false
1,453
py
1
bond_monitor.py
1
0.629245
0.622315
0
48
29.083333
135
sport5/WarGame
14,053,133,004,964
998c8e603c6b56f503a7dee9f4371dc801a744c6
17734df8eefe7b0581aa089324da2d62166047f8
/weather.py
df5bcc439a065956ad697c952f69e8cb170d561b
[]
no_license
https://github.com/sport5/WarGame
6859cc4f6d54c022ea50020c22cdae7171b5dd52
b9666decf5e07df6b6eec608a4a1913345a7a85d
refs/heads/master
2019-06-16T22:12:19.171924
2017-08-24T21:58:04
2017-08-24T21:58:04
99,438,966
0
0
null
false
2017-08-17T23:20:51
2017-08-05T17:52:31
2017-08-06T00:47:24
2017-08-17T23:20:06
978
0
0
1
Python
null
null
import discord from discord.ext.commands import Bot import random import time import json import asyncio import datetime client = Bot(command_prefix="!") data = {} @client.event @asyncio.coroutine def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') ...
UTF-8
Python
false
false
1,083
py
14
weather.py
7
0.592798
0.550323
0
39
26.74359
117
johanthoren/check_sl_delay
2,207,613,223,289
b38ed5f615ad5b2731ad1d79519e41bda64dcfa6
34891339865080b36b8759d89b6395db2619fc52
/check_sl_delay/__init__.py
ac8d153aa53c9b305ced48d16e6afeb517328b46
[ "ISC" ]
permissive
https://github.com/johanthoren/check_sl_delay
37c9476c5e63b7b01885b1cd8158077db65d735a
173e4ef5ddf43acefbb6ba047894c934eae9509a
refs/heads/master
2023-04-10T08:49:37.342665
2020-03-27T11:19:07
2020-03-27T11:19:07
248,331,735
0
0
ISC
false
2021-04-20T20:03:26
2020-03-18T20:07:26
2020-03-27T11:19:17
2021-04-20T20:03:26
115
0
0
1
Python
false
false
"""Top-level package for check_sl_delay.""" __author__ = """Johan Thorén""" __email__ = 'johan@thoren.xyz' __version__ = '0.1.3'
UTF-8
Python
false
false
131
py
9
__init__.py
4
0.584615
0.561538
0
5
25
43
cln-m4rie/flask_boilerplate
11,785,390,262,054
1489c9a9566d3e422959c080cdc216b16807bd22
0434513d81295d6f135b87ab7e41856015c5240f
/flask_boilerplate/config/log.py
706139d84afe1101a70acde298f4de833de663dc
[]
no_license
https://github.com/cln-m4rie/flask_boilerplate
06a941b5fb8fc28149c0cc61d5c1416e00e53435
ff79d3aad4ef2f8450bdc43e6ff9742d8fa26238
refs/heads/master
2022-10-16T21:04:41.605047
2020-06-06T07:59:01
2020-06-06T07:59:01
265,758,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Dict from ..const import Const log_setting: Dict = { "version": 1, "formatters": {"file": {"format": "[%(asctime)s] %(levelname)s in %(module)s: %(message)s"}}, "handlers": { "file": { "class": "logging.handlers.TimedRotatingFileHandler", "formatter": "fi...
UTF-8
Python
false
false
520
py
14
log.py
11
0.515385
0.511538
0
18
27.888889
97
Kaixin1007/ECE143-Assignments
163,208,782,325
d4f167c669021769131fcb92837b2d81140333f4
a5cbeb54ebbcd831d17b93a0031a6afee1e1dc6f
/solvefrob.py
3340a0ffb59b72d90702dd5fcf0603436b31f8a0
[]
no_license
https://github.com/Kaixin1007/ECE143-Assignments
d43faa835957d2d7095fe503fabfa80c0db2e0d3
d9d58df334e85025e244d216946c15aef85492f6
refs/heads/main
2023-02-11T05:19:54.682408
2021-01-12T00:39:28
2021-01-12T00:39:28
328,828,719
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np def solvefrob(coefs,b): ''' :param coefs: the list of a_i coefficients :param b: value :return: ''' assert isinstance(coefs, list) assert isinstance(b, int) assert b > 0 for i in coefs: assert i > 0 coefs = np.array(coefs) b = np.array(...
UTF-8
Python
false
false
1,029
py
33
solvefrob.py
31
0.485909
0.471331
0
40
23.625
62
myat90thu/mt_cbm_forex
2,774,548,901,524
bbe9d66d16698d47e1d57e9989b90ce575de2f48
2eb77c8f3360d990bcac2050aa7de2cd906e04ae
/mt_cbm_forex/__manifest__.py
8129c4a1d0e946419d6474de76f3bdfd17a8a7da
[]
no_license
https://github.com/myat90thu/mt_cbm_forex
d00a0462c43d1569fddcd8c1ab61fded8545d2aa
42ff93e0feb6b62b037e25511e6061a8bfe345ad
refs/heads/master
2020-06-20T00:19:04.189312
2019-07-15T04:53:26
2019-07-15T04:53:26
196,926,061
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- { 'name': "MT CBM Forex Exchange Rate", 'summary': "Sync exchange rate from Central Bank of Myanmar", 'description': """ - Sync by Manual (Under Accounting > Configuration > CBM Forex) - If there has existing rate for the same date, it will override. """, 'aut...
UTF-8
Python
false
false
532
py
2
__manifest__.py
2
0.56203
0.548872
0
18
28.555556
73
mrabadi/behavlyope
5,454,608,496,590
9576a456d98136970388b9788b0ef9d93c8b8632
2c57e3451b455f99b18a813d5fdfc9c3259c6a46
/deprecated/demo2.py
f24d6866717af7970130c47784b4f5903926cadb
[]
no_license
https://github.com/mrabadi/behavlyope
438a0afc6d6c4411fd252dc7925ba3f2459e2e15
46a9c1f845464050bd5626808fde3a723c9077fb
refs/heads/master
2020-03-16T17:21:49.119155
2019-03-07T05:36:48
2019-03-07T05:36:48
132,828,624
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os import datetime import time import random import util from util import defaults from psychopy import visual, core, event COLORS = ['red', 'green', 'yellow'] config = {} if len(sys.argv) == 2: config_file = sys.argv[1] if not os.path.exists(config_file): sys.exit('config file path ...
UTF-8
Python
false
false
5,178
py
14
demo2.py
12
0.585747
0.581112
0
159
31.559748
154
divinorum-webb/tableau-api-lib
13,967,233,693,413
bdc5fae407a3078523d36cc457f686474bb63f9c
5c3ab4a045f6df4edb647e509ca7f79c9268a5a6
/src/tableau_api_lib/utils/pagination.py
9d1abfb60387947a7f85a6d52ded099357bbca2c
[ "MIT" ]
permissive
https://github.com/divinorum-webb/tableau-api-lib
d1bafa5c876ce26c5884b6b1bc53c0969565c52b
99a1d3c2a4d7dc20d1c4a619d58cc756ace1db41
refs/heads/master
2023-04-04T22:52:37.753153
2022-10-15T11:51:45
2022-10-15T11:51:45
203,291,381
84
29
MIT
false
2023-03-29T13:40:22
2019-08-20T03:18:01
2023-03-22T17:50:50
2022-10-15T11:51:45
23,647
71
27
13
Python
false
false
from types import MethodType from typing import Any, Dict, List, Optional, Tuple, Union from typeguard import typechecked from tableau_api_lib.exceptions import ContentNotFound, PaginationError def get_page_attributes(query: dict, query_func: MethodType) -> Tuple: """Returns page attributes (pageNumber, pageSiz...
UTF-8
Python
false
false
5,636
py
128
pagination.py
125
0.679737
0.678318
0
143
38.412587
119
davidmugambI/form-with-etra-fields
3,178,275,850,525
2c4e8b9f5baf5285f52cf323da7a8edef646eb39
c283c7fa120b931969af0ebb482e29eb5b14ff71
/webapp/migrations/0004_auto_20190418_0801.py
e18a028937e0d3982891844d27cba82c02dec02f
[]
no_license
https://github.com/davidmugambI/form-with-etra-fields
d6751e0a628dd1a2e63be4f2034aeab90fb13254
b38ae585d52d94166052528ddf8b39a95eef2ad1
refs/heads/master
2020-05-17T14:47:49.223995
2019-04-27T13:04:05
2019-04-27T13:04:05
183,773,331
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2 on 2019-04-18 05:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webapp', '0003_auto_20190328_1204'), ] operations = [ migrations.AlterField( model_name='zalegodet', name='gender', ...
UTF-8
Python
false
false
540
py
12
0004_auto_20190418_0801.py
7
0.562963
0.5
0
23
22.478261
50
cpiggott/python-class
5,196,910,440,300
529f770fa744be8036556cd4239ff4d303412443
b70e79fb7c89cfb915b13526155e21aa2ba6ab1a
/day2/Complete/ex5.py
6a50aeca768c6b142360a4fb249b88c1e9d772a0
[]
no_license
https://github.com/cpiggott/python-class
8f6b85500b994c10188c9014c46716c554256954
af859b0fa512d517d2c53f67855122d0f0a8e76c
refs/heads/master
2020-05-18T05:51:37.637198
2015-10-07T20:39:58
2015-10-07T20:39:58
41,827,856
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
my_name = 'Chris Piggott' my_age = 24 my_height = 70.5 # inches my_weight = 220 # lbs my_eyes = 'Blue' my_teeth = 'White' my_hair = 'Brown' print "Let's talk about %s." % my_name print "He's %f inches tall." % my_height print "He's %d pounds heavy." % my_weight print "He's %d years old." % my_age print "He's got %s e...
UTF-8
Python
false
false
472
py
3
ex5.py
3
0.616525
0.599576
0
17
26.764706
65
kkujansuu/stk
5,634,997,137,977
0013d1f81ebadc52624b37e50709154d8f9e18c4
761814704c0c5113f4a332461c6300f5feb7e876
/bp/gedcom/models/gedcom_utils.py
a24141bcdf7fcdad06e7b0b9e00b089655116c1c
[]
no_license
https://github.com/kkujansuu/stk
34c6df4e2d516b6f9a3ebd902d1189e5760f6424
0f8d6ba035e3cca8dc756531b7cc51029a549a4f
refs/heads/main
2023-04-04T07:14:02.571180
2021-04-18T08:40:33
2021-04-18T08:40:33
359,075,073
0
0
null
false
2021-04-18T07:59:17
2021-04-18T07:30:29
2021-04-18T07:34:33
2021-04-18T07:59:17
0
0
0
0
Python
false
false
# Isotammi Genealogical Service for combining multiple researchers' results. # Created in co-operation with the Genealogical Society of Finland. # # Copyright (C) 2016-2021 Juha Mäkeläinen, Jorma Haapasalo, Kari Kujansuu, # Timo Nallikari, Pekka Valta # # This program is free softwar...
UTF-8
Python
false
false
10,058
py
218
gedcom_utils.py
147
0.598449
0.592979
0
342
28.403509
98
tuanvo-ini/pom-pytest
1,958,505,121,260
4056c82b8fd7650e13e72b8b0a19d444c41764e3
aa8fee4fbcc1793de3d9639a7ed9e8a459991e69
/test_scritps/conftest.py
3487c2bab7e427c7ed759f38ecb55ee748b58736
[]
no_license
https://github.com/tuanvo-ini/pom-pytest
42f7da51040f5f2df09e9a669a1cdc8dd32c3f9a
3be8cb5bbc24618a4256216b501e89082d53e70c
refs/heads/master
2023-02-15T02:25:31.854076
2021-01-09T13:18:27
2021-01-09T13:18:27
324,697,000
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from datetime import datetime import pytest import os from selenium import webdriver from selenium.webdriver.chrome.options import Options from config.test_config import TestConfig @pytest.fixture(scope="class") def init_driver(request): """ """ chrome_options = Options() # chrome_options....
UTF-8
Python
false
false
2,056
py
19
conftest.py
15
0.677529
0.677043
0
64
31.140625
104
Hackforid/Ebooking
16,045,997,854,172
2ee9a450a94851f47e1d4282cc0f0fbaa0bb2844
ef848dd624c905de03dcf92657f6ff25444ca591
/models/inventory.py
f7eca82e2b80f3bf88c379eded0fae0b9286f8cb
[]
no_license
https://github.com/Hackforid/Ebooking
7db22cc6d7953890a9db38a46750549d77b4ded4
fe104b7402a1482e3603b18b12ba4350cfdf4a72
refs/heads/master
2021-01-11T10:23:27.728953
2015-08-04T06:10:44
2015-08-04T06:10:44
78,326,519
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import datetime from tornado.util import ObjectDict from models import Base from sqlalchemy import Column from sqlalchemy.dialects.mysql import BIT, INTEGER, VARCHAR, DATETIME, BIGINT class InventoryModel(Base): __tablename__ = 'inventory' __t...
UTF-8
Python
false
false
18,397
py
146
inventory.py
117
0.57879
0.557754
0
441
40.709751
229
tulioreisc/imdb_crawler
10,746,008,193,055
f8f13eec5c6acddd68e1d1cb753e546a1a977d8a
cf39d363edce3de35fcfa76ec603d6ce93e3486c
/imdb/spiders/imdb_topgross.py
b2df94f02d5cf41f15535e345a00d7ce64c19dec
[]
no_license
https://github.com/tulioreisc/imdb_crawler
1a4b6f59cceece566d058e58c161fe720324ee67
de2cbd9a39e898ddd9822adc4de688e7ed9fa48d
refs/heads/master
2020-09-10T16:17:42.097187
2019-12-28T13:31:07
2019-12-28T13:31:07
221,755,778
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import scrapy class ImdbTopgrossSpider(scrapy.Spider): name = 'imdb_topgross' allowed_domains = ['https://www.boxofficemojo.com/'] year = 2018 start_urls = ['https://www.boxofficemojo.com/year/world/{}/'.format(year)] def parse(self, response): i = 0 f...
UTF-8
Python
false
false
1,149
py
14
imdb_topgross.py
8
0.520453
0.509138
0
27
41.555556
113
jasongforbes/plankton
7,129,645,729,195
70667f1460240d9058bdd0a4e549ee93a0c5f4a8
472a25d53a4538ee462337c37d8054e4e45f75b7
/src/data/test_data.py
618baa053c5278c715feb4265413c6594399931a
[]
no_license
https://github.com/jasongforbes/plankton
d87a21852a859c7c01c74722ed62eef24be5109f
f2bfe0c6548ba361c585c8c60ddf14d3a0fd8ea5
refs/heads/master
2016-08-05T18:47:50.957895
2015-02-17T20:38:36
2015-02-17T20:38:36
28,862,696
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Feb 1, 2015 @author: Jason ''' from data import image_data as im import numpy as np import glob import os class test_data(im.image_data): ''' classdocs ''' def __init__(self, folders, image_shape, num_classes): ''' Constructor ''' super(test_data, self...
UTF-8
Python
false
false
1,317
py
17
test_data.py
16
0.590737
0.584662
0
52
24.346154
96
rbshadow/Python_URI
515,396,080,514
078b46e330a6c0df41128b793d4c89756a9a415d
9d0b3029a2c10683e6c7bda94887154857bfe634
/Beginner/URI_1071.py
aef27457abaf203e8fdb589158cf1b5077fcd195
[ "MIT" ]
permissive
https://github.com/rbshadow/Python_URI
559b25a559fbe955c0e1fe6bdc1c39e30f5c18a9
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
refs/heads/master
2020-02-26T15:53:55.367919
2018-10-04T00:43:31
2018-10-04T00:43:31
70,911,515
3
0
MIT
false
2018-02-15T17:35:56
2016-10-14T13:13:13
2018-01-25T21:24:30
2018-02-15T17:35:56
36
0
0
0
Python
false
null
def math(): up_one = int(input()) up_two = int(input()) count = 0 if (up_one > up_two) and up_two < 0: for i in range(up_two, up_one): if i % 2 == 1: count = count + i print(count - up_two) elif (up_one < up_two) and up_one < 0: for i in range(u...
UTF-8
Python
false
false
749
py
134
URI_1071.py
133
0.417891
0.403204
0
33
21.69697
42
chaos5958/CtCI-6th-Edition-Python
12,154,757,486,834
f6dfb1e2737c30dcaf1fba20f83fe11978e9c508
02178c939a625a529297b49ad2d48455619c5e22
/chapter_04/graph.py
7bfc63cf5440d1deb797b7feefe4696538a17244
[]
no_license
https://github.com/chaos5958/CtCI-6th-Edition-Python
e7b80c8ef77928f08a29764937ca793b9ed30d8b
859974dcc581daf2358484af7e755eb6efa8935d
refs/heads/master
2022-12-31T03:07:31.154560
2022-10-26T08:26:14
2022-10-26T08:26:14
303,285,420
0
0
null
true
2020-10-12T05:20:49
2020-10-12T05:20:48
2020-10-12T01:47:40
2020-10-09T21:33:18
40
0
0
0
null
false
false
from collections import defaultdict, deque class GraphByList(): def __init__(self): self.lists = defaultdict(list) def add_edge(self, parent, child): self.lists[parent].append(child) def remove_edge(self, parent, child): self.lists[parent].remove(child) def dfs_internal(s...
UTF-8
Python
false
false
1,921
py
20
graph.py
20
0.54607
0.545549
0
80
23.025
52