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
Jz52710/PythonWebBC
11,278,584,143,922
590eb1defa238e4b93972c1ddc07cf8fdee69f87
c8e50bd1cccd18d255b2ce3e8b22259ab60b8fb9
/pytho网络编程/day2/day2.py
96b753e63ac8925a07590352f846a4aeaa85e387
[]
no_license
https://github.com/Jz52710/PythonWebBC
43c9b3bb32817cc6696c2031b78cc4a0f1043b8b
bf1d2d22c2da8fbd2c71dbb5d2722f34526d8a08
refs/heads/master
2020-08-01T01:12:47.562300
2019-10-08T00:34:40
2019-10-08T00:34:40
210,810,038
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time,datetime #日期 #1.时间戳 print(time.time()) #2.时间元组 res = time.localtime(time.time())#把时间戳转化为时间元组 print(res) #格式化时间 res1 = time.strftime("%Y-%m-%d (%H:%M:%S)",res)#将时间元组转化为格式化时间 print(res1) d=datetime.date(2019,9,26) print(d) print("当前日期",datetime.date.today()) a = datetime.date(2019,11,11) print(a)
UTF-8
Python
false
false
393
py
14
day2.py
12
0.699029
0.63754
0
17
17.235294
61
adebisi-aden/consumerfinance.gov
19,224,273,624,282
e316e1765c1c81909dd6feb5beb068686b946773
135238dfa1bdd3a577c6b08ebcd478a649c0dce3
/cfgov/v1/management/commands/invalidate_page_cache.py
cb0108b7d15f0317e9987c65ef882f8279931639
[ "CC0-1.0" ]
permissive
https://github.com/adebisi-aden/consumerfinance.gov
5e716a03180ba18bac747e5f3e7e47c7774c2dab
8c0f5afac341823c59f73b0c6bd60592e0f5eaca
refs/heads/main
2023-08-12T04:13:43.687689
2021-09-17T14:24:54
2021-09-17T14:24:54
407,607,316
0
0
CC0-1.0
true
2021-09-17T16:21:12
2021-09-17T16:21:11
2021-09-17T14:24:58
2021-09-17T15:52:43
741,342
0
0
0
null
false
false
from django.core.management.base import BaseCommand from wagtail.contrib.frontend_cache.utils import PurgeBatch class Command(BaseCommand): help = "Invalidate the cache of pages by full URLs" def add_arguments(self, parser): parser.add_argument( "--url", required=True, ...
UTF-8
Python
false
false
617
py
322
invalidate_page_cache.py
214
0.568882
0.568882
0
23
25.826087
64
rohitgeo/arcgis-python-api
6,030,134,088,304
e7f431afb663feb3b4aa931cb067246f85f6fb7b
3c7520e943bdacfa096f2031c3b33f1778f8c402
/talks/uc2018/Plenary/pools/model.py
a16520e6132dd05ac94cfdd9990b7e2b57584a95
[ "Apache-2.0" ]
permissive
https://github.com/rohitgeo/arcgis-python-api
40aa2b90847d5bca7ab92117f19739bb91b67eb1
c550277a6b7948f3dbf9b4106d76839d4f235990
refs/heads/master
2021-01-16T19:55:59.219092
2018-08-02T04:57:05
2018-08-02T04:57:05
62,830,488
6
4
Apache-2.0
true
2018-08-02T04:57:06
2016-07-07T18:45:39
2018-04-26T08:33:26
2018-08-02T04:57:05
224,384
1
2
0
Python
false
null
import numpy as np from PIL import Image import torch from torch import nn,optim from torchvision.models import * from torch.autograd import Variable import torch.nn.functional as F from torch.nn.init import kaiming_normal import os import json, pdb from PIL import ImageDraw, ImageFont from matplotlib import patches,...
UTF-8
Python
false
false
7,430
py
217
model.py
14
0.607537
0.583042
0
211
34.218009
117
justin831201/SATravelWebSystem
16,192,026,741,385
23753226b08777f7b7bded1660b042a1e20e428f
a7e11d3cec28b0cdc20e574c2bcbc34269697b85
/SATravelWebSystem/urls.py
2badff0c7257bb97ac0e2d478befaba551911398
[]
no_license
https://github.com/justin831201/SATravelWebSystem
5078c3f181af25a281f15a8c459dfed024a47c09
e8fc55c599a117205c5b444ea835cb1ab533da8a
refs/heads/master
2021-01-01T04:40:40.805442
2016-05-17T06:03:03
2016-05-17T06:03:03
58,545,239
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""SATravelWebSystem URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/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, name='home')...
UTF-8
Python
false
false
1,361
py
7
urls.py
4
0.692138
0.68626
0
33
40.242424
79
ArturoGuerra/discordmusicbot
18,562,848,674,545
19d8bfc63227ce18f750f07725818483b39caa3b
994da2508283fa63835d1145b488c91e91b95ff0
/persistence.py
58f258a51ed1e6ffa208222e51e2ad2d72a1d2c7
[]
no_license
https://github.com/ArturoGuerra/discordmusicbot
c929dcb6e869ee805e24215f82c88ee0d52e942b
8f3ae9d748ab5981991e95765115875cbb36428b
refs/heads/master
2022-12-12T06:18:19.003173
2017-08-24T18:11:34
2017-08-24T18:11:34
87,961,155
1
2
null
false
2022-12-07T23:58:09
2017-04-11T17:25:42
2017-06-28T18:50:08
2022-12-07T23:58:08
59
0
0
4
Python
false
false
import config import pymysql import musicbot from peewee import * from playhouse.shortcuts import RetryOperationalError cfg = musicbot.MusicApplication().config class MyRetryDB(RetryOperationalError, MySQLDatabase): pass try: my_db = MyRetryDB( cfg.database, host=cfg.dbhost, ...
UTF-8
Python
false
false
835
py
10
persistence.py
6
0.671856
0.664671
0
33
24.30303
58
dBangos/python_projects
4,715,874,097,175
a1c91c46d90e652331b86dfdb89b08e9340aac67
cbf1aca5b2e447f9a5976b05981a8b37ebd4ccd7
/K-centers.py
f1cca9120c5749bc8e82bede12b3722c2bf90cd1
[]
no_license
https://github.com/dBangos/python_projects
8c6166efc5aefd1779db0d75aedad4f43f69468f
625d620f396a0dee32537ed194b752501eb007e3
refs/heads/main
2023-02-23T15:37:55.908019
2021-01-21T16:20:11
2021-01-21T16:20:11
310,552,118
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import networkx as nx import matplotlib.pyplot as plt def k_centers_objective_value(G, centers): obj_val = 0 nodes = G.number_of_nodes() for i in range(0, nodes):# edw exw diale3ei ena node if i not in centers: temp = 1000000 for j in range(0, len(centers)):#edw t...
UTF-8
Python
false
false
4,129
py
3
K-centers.py
3
0.531364
0.516348
0
124
31.266129
122
rcrowther/wild
17,377,437,709,880
3397cebe2c270435a189b285f29f96de04b4bc8d
38c4676aaa6d5e8a443ad19da57a41419fefe7d5
/phases/TreeActions.py
63ba9d27f2137fcffc70c120866acb48993f09b1
[]
no_license
https://github.com/rcrowther/wild
0a3872d2cca312653f96f389b12eb9bd36f12463
0d12fbb8e5a4418c8c43b20452672e288bcca031
refs/heads/master
2021-01-01T19:20:28.179634
2017-04-01T18:49:45
2017-04-01T18:49:45
33,536,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from trees.Trees import * from trees.TreeTraverser import CallbackTraverser import SymbolTables #! use CallbackBodyBuilder class RemoveComments(CallbackTraverser): def __init__(self, tree, reporter): self.reporter = reporter CallbackTraverser.__init__(self, tree) def _removeComments(self, tree)...
UTF-8
Python
false
false
7,274
py
57
TreeActions.py
57
0.62909
0.62579
0
233
30.197425
148
RyosukeNORO/Squeezing-Level
4,629,974,768,055
e2c9de1171f82e42b1f54c48c0d17a653a7a82d3
4b47f2276cf5adc0b95fa4fce6b66acbfd6dc07a
/squeezing_pumploss.py
be4b6f4a53d5476783bd6959d1cd4bb4072f6e44
[]
no_license
https://github.com/RyosukeNORO/Squeezing-Level
8102033ab6d1359cb691d02f09354e79efb6c9cc
c2a1790b7025e8a33edf81577dabf177562d1516
refs/heads/main
2023-06-27T19:57:32.829547
2021-07-30T08:49:52
2021-07-30T08:49:52
390,994,093
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
####励起光の損失がどの程度スクイージングレベルに影響を与えるかというプログラム(スクイーズド光損失は0と仮定している) import numpy as np from matplotlib import pyplot as plt #定数 c = 299792458E6 #光速(um/s) eps = 8.85418782E-18 #真空の誘電率(F/um) #変数 div = 1001 z = np.linspace(0, 200000, div) #素子長(um) I = 0.1 #ポンプ光パワー(W) A = 10 # 導波路断面積(um^2) d33 = 1/9*(2/np.pi)*13.8...
UTF-8
Python
false
false
4,696
py
3
squeezing_pumploss.py
2
0.486493
0.43436
0
140
28.142857
106
marianneke/kaggle-speech-recognition
2,585,570,343,868
289ee0d3f5e37a5583d551619b552657928de535
e9d524397a7f1100c5bb4f35c230a61d3e7a30cd
/07_ensemble_best_of_3.py
a3127f48712885e59f766d2f5b9af62093ffa7a6
[]
no_license
https://github.com/marianneke/kaggle-speech-recognition
6a76d1a90b2098d14d1e8c7ec4dd224455fdeda5
8ea062c49fc7c6ee4578feb82422515e06e118a6
refs/heads/master
2020-03-07T18:15:44.030831
2018-01-16T06:55:45
2018-01-16T06:55:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import pdb data1 = pd.read_csv('GCommandsPytorch/checkpoint/model6_lb085.csv') data2 = pd.read_csv('GCommandsPytorch/checkpoint/model_all_train_lb086.csv') data3 = pd.read_csv('GCommandsPytorch/checkpoint/model_all_train_lb086_v2.csv') data1 = data1.sort_values(by = ['fname']) data2 = data2.sort_v...
UTF-8
Python
false
false
915
py
9
07_ensemble_best_of_3.py
8
0.661202
0.614208
0
36
24.416667
79
pnemade/ttname
3,685,081,990,212
ce4a298c952f928bf1c1fcaeb42d513223e3c4b9
e213a5e9c10f6ca9e8aa9cb15b5a67159834a4b1
/ttname/table.py
499f47c254d359dbdc9ac00238c2b3e5ccf31997
[ "Bitstream-Vera", "BSD-2-Clause" ]
permissive
https://github.com/pnemade/ttname
c92f5112495d32329864e2d09ef76cf69be1c7de
0a352b9a3b6aeb558e3cd4d2939a24321dd7b0dc
refs/heads/master
2020-04-20T19:26:03.976497
2014-01-14T06:58:23
2014-01-14T06:58:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" objects representing the font metadata "name" table and its Records """ # Once upon a time, this file used the TTFont API to all the editing. And it # works great for reading, but when you call save() all you get is garbage out. # Rather than try and figure out what the hell is wrong with that, we just do # the X...
UTF-8
Python
false
false
6,636
py
9
table.py
7
0.627637
0.625226
0
187
34.465241
94
AleksandrVed/P
5,798,205,850,302
6c66aa922e0c7e7a3f22056e59ebdcc2893ca5f0
e3b9e82e0e16f3f39fb3ea22f9103a53d86a45e7
/lab3.py
546538747768973cb13bc7430299cbd78d611bf2
[]
no_license
https://github.com/AleksandrVed/P
68772e68d7b4cb506ded9a7a19874e96f4dcb27f
700aa013908adcd4b958b016fcfe79be09bcfe6d
refs/heads/master
2020-07-23T15:15:06.448284
2020-01-13T14:48:23
2020-01-13T14:48:23
207,607,569
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math Exit = 0 while Exit == 0: print("Ввести a") a = float(input()) print("Ввести нижнюю границу x") x1 = float(input()) print("Ввести вверхнюю границу x") x2 = float(input()) print("Ввести x") x = float(input()) print('Ввести шаг изменения переменной x') Step = float(inpu...
UTF-8
Python
false
false
1,791
py
13
lab3.py
8
0.426471
0.38491
0
47
32.276596
77
yjiao/codeforces_predict
5,815,385,744,917
8937b8d28522346a462bcb8915001171876d454a
8c5ae64b6cfa2433b1d493e0f5f7b7c43edd5a06
/linear_regression/generate_features_OLS.py
3419c877bc335a425432cd9c13ea332909bf64ab
[]
no_license
https://github.com/yjiao/codeforces_predict
0671ea0f9148be4c5aa223d977024ec755c59d76
f155cf48a46867210c0d0381438f6edab057e763
refs/heads/master
2021-01-21T14:49:22.868118
2017-06-29T18:12:59
2017-06-29T18:12:59
95,341,176
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# performs feature engineering for linear regression # looks at user characteristics in the last 30 days as # well as historical behaviors import pandas as pd import numpy as np import psycopg2 from collections import Counter # --------------------------------------------- # constants secinday = 3600.0*24.0 # days # ...
UTF-8
Python
false
false
19,074
py
48
generate_features_OLS.py
14
0.527734
0.5162
0
504
36.845238
156
ksurct/ksurct-robot-2018
7,627,861,940,945
d436c3a309d4e295c1a808cf9e6a911963850d3f
028790381ab0287e4de99787a5e603922c9a1b70
/ksurobot/main.py
263169d47a5ad4ed1e5700bc230f9c5224405f08
[ "Apache-2.0" ]
permissive
https://github.com/ksurct/ksurct-robot-2018
289117589b2088b7283ef9f226823a16231fc533
98fbf6bc83c0252357e8808a58e2cf9d077aa172
refs/heads/master
2021-07-08T22:38:23.450840
2019-04-16T22:39:51
2019-04-16T22:39:51
104,816,023
9
0
null
false
2018-04-20T20:48:46
2017-09-26T00:32:43
2018-04-11T00:21:22
2018-04-20T20:48:46
99
7
0
0
Python
false
null
''' main.py Starts the program ''' import asyncio import websockets import logging from server import Server from robot import Robot from settings import * def main(): ''' Main Entrance to the program ''' # Setup Logging logging.basicConfig(format='%(name)s: %(levelname)s: %(asctime)s: %(message)s'...
UTF-8
Python
false
false
1,042
py
20
main.py
17
0.629559
0.629559
0
48
20.708333
103
davidbegin/python-in-the-morning
4,260,607,593,226
54e8957e857d2971920a50c09252cd0e5e413687
420d4cf595fc8f28be0415aec70a4087e157555c
/Fluent_Python/Day48/wait_trails.py
df1322bf49d304846d5cad9c7380f0aa4464ecc3
[]
no_license
https://github.com/davidbegin/python-in-the-morning
8cf89e62e7e8a2df5b8f875aae3cc7815545ad61
aa4a271d1df0ce0a82d776c0955c1f20deb50937
refs/heads/master
2020-09-28T09:55:50.723066
2020-08-06T01:17:24
2020-08-06T01:17:24
226,753,142
23
3
null
false
2020-03-04T06:36:30
2019-12-09T00:31:09
2020-03-04T03:45:02
2020-03-04T03:45:00
76,436
10
1
7
Python
false
false
print('\033c') daily_fact = "\033[35m61 Years ago on 1959 - 2 - 6\n\n\t\033[97mJack Kilby of Texas Instruments files the first patent for an integrated circuit." print(f"\t\033[35;1;6m{daily_fact}\033[0m\n") from dis import dis import opcode import asyncio import random import time async def part1(n: int) -> st...
UTF-8
Python
false
false
1,427
py
573
wait_trails.py
220
0.621584
0.567624
0
58
23.568966
146
pangl/keyword_driven_proj
8,177,617,740,356
6d5a305108c7ed1bb5f2eeac3a1c5d43398f2061
891ee01311f28a900cf6939cafe518446d5a23db
/keyword_driven_proj/Util/GetConfig.py
17378d3dfa21c7425fa3e669ceeaeb14dddbda90
[]
no_license
https://github.com/pangl/keyword_driven_proj
f79a0eed9993fe02dcee9d32fa3a09bb2d2317c6
4343a3ebf7f973d02d00f08097060c716adce66c
refs/heads/master
2020-04-28T08:14:53.575321
2019-03-12T02:37:20
2019-03-12T02:37:20
175,119,851
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import configparser class Config(object): def __init__(self,config_file_path): self.config_file_path = config_file_path self.config = configparser.ConfigParser() self.config.read(self.config_file_path) def get_all_sections(self): return self.config.sections() ...
UTF-8
Python
false
false
597
py
7
GetConfig.py
6
0.634841
0.634841
0
20
27.85
57
ab/rent
962,072,694,408
e2ac8b326a1a653531c2d298198fa153b8b6eb3d
7e1390deb97597cf20861d0b7a3908a6b2dde1d4
/rent.py
43ca4adaceac45decfdcbcd8263ed85128862b99
[]
no_license
https://github.com/ab/rent
165b5dd9bf7ffbeb9bcd3ffb7c44c45f5002684d
f1b45df66e3cd1c254d8510ebf737fd443fc779f
refs/heads/master
2020-04-24T16:20:25.634591
2015-10-24T23:03:02
2015-10-24T23:06:42
18,027,639
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ usage: rent.py YAML_FILE [dry|real] Send a rent reminder email based on data from YAML_FILE. If dry is passed, no email will actually be sent. """ import smtplib import sys import yaml from datetime import date, timedelta def first_next_month(start): if start.month == 12: retu...
UTF-8
Python
false
false
6,599
py
1
rent.py
1
0.555387
0.550841
0
221
28.855204
77
huangcun666/pyproject
7,516,192,786,469
bd3d55c12384dcbae9f4f0266cfc35d25828fa0c
96fec7cd18e12fc11770de2585b13908e6c83b1c
/tornado-boilerplate-master/buedafab/deploy/types.py
6c37cb5327e67a28646dc491142f113d3f1bcaf6
[ "MIT" ]
permissive
https://github.com/huangcun666/pyproject
e253a10891432bca631a24b05ce5329c47377a2e
30e023c9df88be33a01d477c8300fd8f95f1afec
refs/heads/master
2022-12-03T19:41:24.226334
2018-04-09T01:17:05
2018-04-09T01:17:05
128,696,272
0
1
null
false
2022-10-31T17:49:24
2018-04-09T01:09:42
2018-04-09T01:18:28
2018-04-09T01:18:12
29,902
0
1
1
Python
false
false
"""Deploy commands for applications following Bueda's boilerplate layouts.""" from fabric.api import warn, cd, require, local, env, settings, abort from fabric.colors import green, red import os from buedafab.operations import run, put, chmod from buedafab import celery, db, tasks, notify, testing, utils from buedafab...
UTF-8
Python
false
false
4,206
py
31
types.py
22
0.684498
0.684498
0
106
38.679245
78
an0o0nym/website_monitor
8,650,064,149,889
c579ea32a5ac3f68c579eb2854a0d87830ea2f75
ab1c7c3d78f78ee624e14cbb5441694a4deca5ba
/website_monitor/db_utils.py
c59fd7a5de0be645762a99610e9739ba98dbe701
[ "MIT" ]
permissive
https://github.com/an0o0nym/website_monitor
5f031b88c84669bce31391cdc9982e1625ee5f68
60a3f76dbe85e9966470a1b009b3f1b02d8acd72
refs/heads/master
2023-01-05T14:50:21.853828
2018-03-09T13:23:10
2018-03-09T13:23:10
124,247,630
1
1
MIT
false
2022-12-26T20:36:19
2018-03-07T14:27:01
2022-02-08T16:36:39
2022-12-26T20:36:18
26
1
1
4
Python
false
false
# -*- coding: utf-8 -*- """Database utils module.""" import os import sqlite3 DB_NAME = 'website_monitor.db' DB_TABLE_NAME = 'website_checks' def get_connection(): """ Helper function used to initiate database connection. :return: Tuple of two items - sqlite3.Connection class instance and sqli...
UTF-8
Python
false
false
3,023
py
12
db_utils.py
6
0.582534
0.58088
0
109
26.733945
76
bireme/lilacs-mongodb
2,705,829,431,878
cb4821c9a8c98387c551deb8399950636fc82d8b
39146e67dbb67281ce757c51f89a9e9b93a80ae2
/stopwatch_decorator.py
43a7d4b872f6011cc872a69d3d9db02bb18739c2
[]
no_license
https://github.com/bireme/lilacs-mongodb
e550653ac10d3ca9254c291f1eb17132131ed989
3b75cc8475d725b7790de41ce29250517def0c18
refs/heads/master
2021-06-06T12:25:09.061067
2021-06-01T17:28:45
2021-06-01T17:28:45
2,338,560
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from time import time def stopwatch(fn): def decorated(*args, **kwargs): t0 = time() res = fn(*args, **kwargs) return (time()-t0, res) return decorated def gcd(a, b): while b != 0: a, b = b, a % b return a def test(): decorated_gcd = stopwatch(gcd) delta, res = ...
UTF-8
Python
false
false
512
py
4
stopwatch_decorator.py
3
0.546875
0.447266
0
26
18.692308
50
westernx/vee
2,534,030,723,618
1dfff8af835c26df9989cb0e182b7799b493ba88
fe30d77ae29475f181559a109a00d92720b357cb
/vee/pipeline/python.py
4798d6b8540d2fe1d2af595635d803e9a2e7c2fb
[]
no_license
https://github.com/westernx/vee
f1fcfea757669612644711078dc68099ab19c89c
213529b5881703a8d1afb081c2d90843832c3581
refs/heads/master
2021-01-18T21:57:53.399368
2016-02-09T20:54:07
2016-02-09T20:54:07
30,377,715
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import re import shutil import sys from vee import log from vee.cli import style, style_note, style_warning from vee.envvars import join_env_path from vee.package import Package from vee.pipeline.generic import GenericBuilder from vee.subproc import call from vee.utils import find_in_tree python_version = ...
UTF-8
Python
false
false
7,957
py
35
python.py
31
0.560261
0.558753
0
216
35.824074
146
joeldodge79/sparts
3,453,153,710,640
584ffbb6c74c5ae0c36a8c3ea8cf2f34c9532b72
2500fd37d3553d998df0e6b4bd7c0e094056ac35
/sparts/tasks/tornado_thrift.py
e81be95ca24d591ba79dfa31acb0f1b0f56b22ca
[ "ISC" ]
permissive
https://github.com/joeldodge79/sparts
c95ea057cb37e8794f93ce1460aa6770c3075d46
40df516f6ccbc1a233a691a5fbd540b240880dfc
refs/heads/master
2020-12-31T04:07:58.624993
2014-04-06T09:12:04
2014-04-06T09:12:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import absolute_import import tornado.web from thrift.transport.TTransport import TMemoryBuffer from thrift.protocol.TBinaryProtocol import TBinaryProtocol class TornadoThriftHandler(tornado.web.RequestHandler): def initialize(self, processor): if hasattr(processor, 'processor'): ...
UTF-8
Python
false
false
679
py
42
tornado_thrift.py
39
0.721649
0.721649
0
19
34.736842
65
nsknojj/data_mining
9,457,518,021,781
3549473b330147ce954162aa9117a6aa4c44dd5f
0ee45aadb6554576d01dee90d5dfdb927de2f0b7
/1300012758 张闻涛 作业2 wiki 新闻分类/Bayes/Test.py
a7997dcb095e393156b2073bfd24d70a1a6a4e6e
[]
no_license
https://github.com/nsknojj/data_mining
c845c7703c353f609f0391716304c736d4a222c9
a331d808fae91244cfefdef1a65556ba6f954d8c
refs/heads/master
2016-09-12T06:14:16.782708
2016-05-13T06:51:02
2016-05-13T06:51:02
46,955,636
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import re import StopWord from Statistic import Stat def test(stat, path='', n_test=10): allCat = {'Crime and law': 0, 'Culture and entertainment': 0, 'Disasters and accidents': 0, 'Science and technology': 0, 'Health': 0} callBack = dict(allCat) callAll = dict(allCat) stopWo...
UTF-8
Python
false
false
2,880
py
12
Test.py
10
0.466667
0.451042
0
78
35.923077
117
oldsuper/dialog_service_api_test
14,568,529,072,757
ce36b219d08f7e17688de5f521bcb89550d3c166
c55faa0905c671f05f3cdde94367dc9a7442247c
/src/utils/m_config.py
a37fd5f2b11d25be2c0d75c577655d16411b2708
[]
no_license
https://github.com/oldsuper/dialog_service_api_test
9253de1eb577e9b29c43dcd4e8c214f9e984c3c2
f829bffd2880c391bff173683e07bbe69fd6bb72
refs/heads/master
2020-06-20T12:20:43.518134
2019-10-02T20:34:57
2019-10-02T20:34:57
197,120,197
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import ConfigParser config_level_option_key = 'config_level' class MConfig(ConfigParser): def __init__(self, config_file_path): if not os.path.exists(config_file_path): raise ValueError('ConfigFileNotExists') config = ConfigParser.ConfigParser() config.read(config_file_path) ...
UTF-8
Python
false
false
613
py
8
m_config.py
4
0.619902
0.619902
0
18
33.055556
60
gdymind/Deep-Perceptual-Image-Downsampling
15,101,105,033,326
52f0c01d59c348c9acc86c4b9a80da1861bf9892
8aa1ce51861056a8b1c71a04b1d596b754765c99
/src/data/__init__.py
a0645570d4f34803bf78ee2cff46d6bd61bcc413
[ "MIT" ]
permissive
https://github.com/gdymind/Deep-Perceptual-Image-Downsampling
1827883b35e0af7e584a5076acf548000eeb4a74
b6101086dbf20db0780f4bd49a2b7ab34696c0c3
refs/heads/master
2022-07-09T10:54:01.933736
2018-11-12T03:39:21
2018-11-12T03:39:21
147,042,890
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from data.BaseDataset import BaseDataset from torch.utils.data.dataloader import DataLoader class Data: def __init__(self, args): train_name, test_name = args.data_name.split('/') # tarin dataset & dataloader self.loader_train = None trainset = None # load tes...
UTF-8
Python
false
false
1,125
py
19
__init__.py
18
0.604444
0.602667
0
30
36.533333
92
AlexAndriamahaleo/Tourisme_de_cinephile
12,996,571,060,123
4bfd9249232cafdbe5b8edf13fb9d06e688565ac
6ec36f81f5b61a96f811baf1c77674cb06c349e8
/Tourisme de cinephile/testSQLviewsFromOtherFile.py
c56be54a71b39590e02b99bb417c7c80f7a6a627
[]
no_license
https://github.com/AlexAndriamahaleo/Tourisme_de_cinephile
624c5d819f06615aeb081370ef68d54077bf259b
7a9466925a661cbdaab4e08f92b868e2bf815acc
refs/heads/master
2020-03-06T23:57:39.556308
2018-04-09T10:04:55
2018-04-09T10:04:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 # TODO// create views # Connection à la base de donnée def connect_database(databaseName_and_path): connexion = sqlite3.connect(databaseName_and_path) curseur = connexion.cursor() return connexion, curseur # charger toutes les données de la ...
UTF-8
Python
false
false
1,174
py
16
testSQLviewsFromOtherFile.py
8
0.74055
0.733677
0
43
26.069767
111
sponege/CTF-writeups
5,377,299,090,342
1d340730ab8375f4b3c4169b8e0ed6ef1fcbf520
821fe521a009f797ffb4df68182470cd1c67a1aa
/HSCTF2020/binary-word-search/sol.py
3aef1a8b9d4baa2edead4dbfda95b390fc73df3a
[]
no_license
https://github.com/sponege/CTF-writeups
d4b3d28dbcf865bafba226f910dfe41825046abf
5415ec9511fade1f1876396f1a1136f25d393762
refs/heads/master
2022-12-01T15:45:06.794640
2020-07-31T22:12:05
2020-07-31T22:12:05
259,153,036
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from PIL import Image import binascii img = Image.open("BinaryWordSearch.png") pixels = img.load() start = "flag{" sBits = '' for c in start: bits = bin(ord(c))[2:] while len(bits) != 8: bits = '0' + bits sBits += bits print(sBits) flags = [] for x in range(img.width): ...
UTF-8
Python
false
false
2,244
py
95
sol.py
44
0.367201
0.338681
0
71
30.605634
85
materials-data-facility/toolbox
7,696,581,430,789
bf9913db89a6e1b812a7f3fde4743f5a671833c0
68145cdada48e1ab4a3bc69e4c905521e0123a36
/tests/test_toolbox.py
154ec69087e91d5792f92f24a784705bd6633e6b
[ "Apache-2.0" ]
permissive
https://github.com/materials-data-facility/toolbox
5ab0f46afbe1dbd1e3238af733bf51219ee49693
e0e178ef2433811a25db76bb711c40b2552e836e
refs/heads/master
2022-08-24T14:13:45.837592
2022-08-01T17:07:54
2022-08-01T17:07:54
110,880,833
5
7
Apache-2.0
false
2022-05-06T21:40:05
2017-11-15T20:06:22
2021-12-16T23:06:27
2022-05-06T21:40:04
6,429
5
4
2
Python
false
false
from copy import deepcopy import json import os import shutil from globus_nexus_client import NexusClient import globus_sdk import mdf_toolbox import pytest from unittest import mock on_github = os.getenv('ON_GITHUB') is not None def test_login(): if on_github: return True # Login works # Impersonat...
UTF-8
Python
false
false
20,133
py
28
test_toolbox.py
14
0.483236
0.457706
0
581
33.652324
98
KirsteinDamian/WordCounter
10,685,878,632,647
675881fa6271e1d83553477a360b7236242ef36c
be20e3063d50679cc6561f2831d1a41ed6a284d4
/wordcount-project/wordcount/views.py
dbc2e56c1ac91d4595d1512f1a051a7a07898e25
[]
no_license
https://github.com/KirsteinDamian/WordCounter
6561e70a10c58dd85f1392bb8920c57223a1186f
4b852cde0a24af4ae11f8c2b7e50a07edd9f97c5
refs/heads/master
2023-03-29T00:32:38.070268
2021-03-28T20:05:11
2021-03-28T20:05:11
352,165,086
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponse from django.shortcuts import render # def home(request): # return HttpResponse('Hello') def home(request): return render(request, 'home.html') def count(request): fulltext = request.GET['fulltext'] wordlist = fulltext.split() occurence_count = {} for wor...
UTF-8
Python
false
false
1,063
py
3
views.py
1
0.648166
0.645343
0
38
26.973684
115
Manokha/RESTo
3,685,081,941,636
0436cf1637e6a9dc0f8e2c84ee74a3f70245a0b4
f41c3b7a653440cb7f5650cd59888d79818e17c4
/src/resto/server.py
cb47bd1cc3dbc25b861a14af0ba09217bdd505b8
[]
no_license
https://github.com/Manokha/RESTo
04475f43e7a79f656ac1540dbea17d4ea2faedaa
9dda7f70afc9baeab6da86fdd954766298ea5485
refs/heads/master
2020-12-03T18:41:50.753725
2020-01-04T15:11:38
2020-01-04T15:11:38
231,434,235
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import aiopg from aiohttp import web from resto.views import RestaurantsView from resto.models import PGRestaurants @web.middleware async def json_middleware(request, handler): try: return web.json_response(await handler(request)) except web.HTTPException as e: return...
UTF-8
Python
false
false
1,141
py
15
server.py
9
0.67397
0.673094
0
47
23.276596
82
PerceptumNL/KhanLatest
13,443,247,637,486
9924336f626d9e7a29e16feccf605372a0fe394b
290d2bcf49c5f3418add77606b5f4b0a6a7a6d15
/third_party/agar-src/tests/test_base_test.py
c8466de2c29e518e894704b6658f231ab69526b2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/PerceptumNL/KhanLatest
887a191bfd1562fcc6d1d4a2b740cf361c57b5ca
c6a3907d96d30f1cb43bf7bf2a392ff3e77a2568
refs/heads/master
2021-07-22T19:56:07.979749
2020-07-21T08:07:23
2020-07-21T08:07:23
4,924,139
3
2
null
false
2021-06-10T17:39:40
2012-07-06T12:12:02
2021-01-11T18:05:09
2021-06-10T17:39:39
85,969
8
12
4
JavaScript
false
false
from google.appengine.api import memcache from google.appengine.ext import deferred from agar.test import BaseTest import main def do_something(): return True class TestBaseTest(BaseTest): def test_assert_tasks_in_queue(self): self.assertTasksInQueue(0) deferred.defer(do_something, ...
UTF-8
Python
true
false
1,249
py
936
test_base_test.py
465
0.651721
0.639712
0
50
23.96
61
FoolLuckyBoy/selenium_demo
2,284,922,637,333
f9cc01e4db89fcb264581e88ef2e855b0b983746
09bb6cd5e24a0a3363156591beb8e479c38ad994
/pathxuexi.py
9698a6f7d551e10bf96a9752103731b89fa87149
[]
no_license
https://github.com/FoolLuckyBoy/selenium_demo
6b8b7174d8859d844037bce8c178a0a2d8b7309e
6bbe06da346893f848dee64ca2bd3a37276108c1
refs/heads/master
2020-04-30T16:50:46.316330
2019-03-21T14:47:16
2019-03-21T14:47:16
176,960,928
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os # print(__file__) # 获取当前运行的xx.py的路径 curpath = os.path.realpath(__file__) # 根据系统获取绝对路径 print(curpath) dirpath = os.path.dirname(curpath) # 文件夹层 print(dirpath) casespath = os.path.join(dirpath, "cases") print(casespath) report = os.path.join(dirpath, "report", "result.html") print(report) # 没有文件夹的话,会报错 r...
UTF-8
Python
false
false
661
py
10
pathxuexi.py
9
0.689165
0.689165
0
31
17.193548
57
sy-eggplant/nlp100
13,804,024,906,819
f283c471ae779795652d5a1fb2b52fdf5b23b93e
0f67f09746971a9f5e0c7bb17ce14dc66732ff5f
/02.py
ef841317e92b252b81acd2b10fd35eefaab64100
[]
no_license
https://github.com/sy-eggplant/nlp100
ec4e1505845d0560ac4231906504665a1b0ac8fa
33c32ce13008b6f158d8b2f75755abc8bde973b7
refs/heads/master
2021-01-01T06:56:29.985279
2018-03-18T12:09:18
2018-03-18T12:09:18
97,554,446
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
str1 = 'パトカー' str2 = 'タクシー' str3 = '' for i in range(1,5): str3 += (str1[i-1]) str3 += (str2[i-1]) print(str3) str3 = '' for (a,b) in zip(str1,str2): str3 += a+b print(str3)
UTF-8
Python
false
false
200
py
53
02.py
47
0.538043
0.445652
0
15
11.266667
28
hopetambala/django-sustainable_development_goals
7,559,142,446,800
736d4cec847357a934ba82e3ed61101a6bd0da78
1db73a8600edcf3c731c6d7f17026af4f88f2445
/unsdg/urls.py
f2911efe8ce5f03165f7fa12527e32e1da8fb817
[ "MIT" ]
permissive
https://github.com/hopetambala/django-sustainable_development_goals
2950a9f8704c73318d1c3d58948cbbc0d0cdfc49
8ffa849aa40df003db46bbacd739207c780a12c9
refs/heads/master
2022-12-11T05:29:07.460002
2019-01-24T23:15:40
2019-01-24T23:15:40
158,108,848
0
1
MIT
false
2022-12-08T01:29:26
2018-11-18T17:27:44
2019-01-24T23:15:45
2022-12-08T01:29:26
26,429
0
0
6
Python
false
false
from django.urls import path from . import views urlpatterns = [ path('', views.HomePageView.as_view(), name='home'), path('cti/', views.CountryTargetIndicatorListView.as_view(), name='country_target_indicators'), path('cti/<int:pk>/', views.IndicatorDetailView.as_view(), name='indicator_detail'), #path('...
UTF-8
Python
false
false
1,233
py
78
urls.py
14
0.715328
0.715328
0
19
63.947368
131
NBGBZJ/xiecheng
2,448,131,394,195
0031437b1c00ec70b08c03078370a7b3d3de40a4
1221e5a7e015667fba128fe8dc07440c419e622f
/my_sql.py
aff0ca9c6aeb45f99e38ef7ec1aab40a631fb880
[]
no_license
https://github.com/NBGBZJ/xiecheng
e81ec11e8ab2a10fb058e1f066e238d713a64fde
0280964757804bb438bea877310c03d8d0c28542
refs/heads/master
2021-01-10T15:48:33.369464
2015-11-10T16:41:04
2015-11-10T16:41:04
45,787,010
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import pymssql from my_log import log_set DB_CHARSET = 'utf8' DB_HOST ='127.0.0.1' DB_USER='root' DB_PWD ='fuhan' DB_PORT = '3306' DB_NAME ='xx' import pymssql class MSSQL: """ 对pymssql的简单封装 pymssql库,该库到这里下载:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql 使用该库时,需要在Sql...
UTF-8
Python
false
false
2,214
py
22
my_sql.py
18
0.579024
0.56878
0
91
21.527473
116
MohammadMahdiOmid/Virtual-Irrigation
13,469,017,443,512
e671a675d8c48b01d16da85dadd7e6a7dcd5bb04
b7a52487d72de80ac1a74958b7c0489065f81ad6
/Image_processing/import_image_satellite/landsat.py
6ef6b59fec6eee9d471d5b01aaa593cc48b928f7
[]
no_license
https://github.com/MohammadMahdiOmid/Virtual-Irrigation
a69775dbf8fb284994255d6b8dcc6244547936fb
e3833b5717290425b169c7a1d5c75b6f593d9962
refs/heads/master
2023-08-21T19:19:47.966353
2021-10-14T06:55:56
2021-10-14T06:55:56
391,267,356
3
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from skimage import io # load images blue = io.imread("E:/Company/KAVOSHGARAN/Virtual Irrigation/Image/Landsat/Blue.tif") green = io.imread("E:/Company/KAVOSHGARAN/Virtual Irrigation/Image/Landsat/Green.tif") red = io.imread("E:/Company/KAVOSHGARAN/Virtual Irrigation/...
UTF-8
Python
false
false
1,655
py
36
landsat.py
2
0.700302
0.687613
0
56
28.553571
97
rronan/IntPhys-Baselines
1,520,418,464,901
6ff90a8f84bb993cc8559cbe5102b6707961cdc9
8023d3411451b107c4daafb03074716dc2d60358
/models/linear_rnn.py
81cbaf35e524590e563b5f33ce14131d5bea94c1
[]
no_license
https://github.com/rronan/IntPhys-Baselines
f2794fb4d85f51f3e9bbb75a2cb7a7204a1a6982
9b13d79b4d5c1db56c7a089e0b6b87609b07ff84
refs/heads/master
2021-04-12T09:16:10.976853
2019-11-18T22:10:22
2019-11-18T22:10:22
126,332,241
32
5
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch.nn as nn from torch.autograd import Variable import torch import torch.optim as optim import os from pydoc import locate from .encoder import Encoder from .decoder import Decoder from .model import Model import utils class Linear_rnn(nn.Module, Model): def __init__(self, opt, test=False): su...
UTF-8
Python
false
false
4,093
py
18
linear_rnn.py
16
0.542389
0.527242
0
114
34.903509
85
eiphy/Tools-Package
18,090,402,285,245
e034f021cc93fe3875d3bb6f5f3ba8bae3842462
c0d5ada8a31912c338d4e4dbda47a109e3f6027d
/SuSyNAT/python2/SuSyNAT/secollect.py
025401c167553e972c7da71cebdfeb0a09264c7f
[ "BSD-3-Clause" ]
permissive
https://github.com/eiphy/Tools-Package
1cf8d3e727b73565472e84692c3a78460dd6fd6e
816c39016d25f32e3d2a312dbfa58cc297caf780
refs/heads/master
2020-04-28T16:22:28.372899
2019-05-22T09:26:49
2019-05-22T09:26:49
175,408,277
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import read_split import stdize import copy def secolle(filename, filew, mode=0): auto_list = read_split.ReadStd(filename)[0] state_list, event_list = read_split.trans_split(auto_list[4]) if mode == 0: state = 'states = ' + ', '.join(state_list) + '\n' event = 'alphabet = ' + ', '.join(ev...
UTF-8
Python
false
false
746
py
16
secollect.py
13
0.599196
0.588472
0
26
27.730769
65
sansbacon/dkbestball
5,016,521,846,215
5174e80399abfc11365494cacbad79656fea0347
b55d2ce829f110da103f7daacefdff25045f5167
/dkbestball/analyzer.py
d7f8de17f6dc65173f98be26df427e5f951209d3
[ "Apache-2.0" ]
permissive
https://github.com/sansbacon/dkbestball
9fe446722b9b8634757bc51bc441334f0c177d0f
28bf83baf5dfc137e589f33ce4333cf841ede87f
refs/heads/main
2023-01-24T18:55:54.412041
2020-12-12T02:54:06
2020-12-12T02:54:06
302,356,206
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from functools import lru_cache import logging import pickle import pandas as pd class Analyzer: """Encapsulates analysis / summary of rosters and results""" CONTEST_CODES = { '3m': '3-Player', '6m': '6-Player', '12m': '12-Player', 'pa': 'Action', 'm': 'Millionaire', ...
UTF-8
Python
false
false
5,908
py
17
analyzer.py
11
0.533514
0.518957
0
176
32.568182
79
congjianting/video_analyst
1,314,260,035,875
bb06ea7683bc253b18522039975f72f3f2e8e480
3e7601a4ca1d261516a63998fc3b656dd20dcd6f
/videoanalyst/evaluation/davis_benchmark/__init__.py
14ddb3ba7a596256c3cb9da0829958be4115437a
[ "MIT" ]
permissive
https://github.com/congjianting/video_analyst
393595b5985d131f214244eccaedfc35245dd997
0148139ba38fd03c0a6480a5b312d08bde746561
refs/heads/master
2022-04-14T10:03:27.225544
2020-04-09T08:16:48
2020-04-09T08:16:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .benckmark_helpler import load_dataset, label2color,labelcolormap, MultiBatchIouMeter from .log_helper import add_file_handler, init_log from .evaluation_method import davis2017_eval from .davis2017.utils import overlay_semantic_mask
UTF-8
Python
false
false
238
py
18
__init__.py
13
0.844538
0.806723
0
4
58.75
90
TactileUniverse/3D-Printed-Galaxy-Software
12,919,261,677,476
1bb9bb051840a2006c04bef3448dece8a060a1dd
90351d9f82dbee09a25d586e9cf6d381ad00c10d
/make_model.py
dddabdba792150042063c64507798cecffd97e25
[ "MIT" ]
permissive
https://github.com/TactileUniverse/3D-Printed-Galaxy-Software
3cd4a231b3f24061c7221c52c28ca6ca8a970313
67efa40634393dd511ea941792f7eb82ad6b2c5f
refs/heads/master
2021-01-11T20:03:32.967566
2020-04-22T08:55:44
2020-04-22T08:55:44
79,459,697
4
1
MIT
false
2020-04-22T08:55:46
2017-01-19T14:11:11
2020-02-24T10:26:47
2020-04-22T08:55:44
4,257
3
1
0
Python
false
false
import bpy import bmesh import json import sys import os argv = sys.argv if '--' not in argv: raise ValueError('You must pass a configuration file on the command line after ` -- `') argv = argv[argv.index('--') + 1:] if len(argv) == 0: raise ValueError('No configuration file passed in') elif len(argv) > 1: ...
UTF-8
Python
false
false
2,527
py
12
make_model.py
9
0.656114
0.646221
0
96
25.322917
91
tfranzel/drf-spectacular
14,783,277,436,712
a55fc311ea09484a64265a989276869a61374b19
09d8e7ecf237cf339cabb21292eaf79458fea6d9
/tests/test_examples.py
713107888df06289c2cd133325928fc7f56f3829
[ "BSD-3-Clause" ]
permissive
https://github.com/tfranzel/drf-spectacular
f79c2f6561a0d4f72c3ed625188e55f68b0e3a48
c56f62caec338226bc28953b9e677c7f883dcf76
refs/heads/master
2023-08-23T23:11:07.659394
2023-08-14T23:13:07
2023-08-14T23:13:07
244,234,763
1,824
260
BSD-3-Clause
false
2023-09-10T12:50:48
2020-03-01T22:36:54
2023-09-08T23:10:11
2023-09-10T12:50:48
1,788
1,817
217
67
Python
false
false
import pytest from rest_framework import __version__ as DRF_VERSION # type: ignore[attr-defined] from rest_framework import generics, pagination, serializers, status, viewsets from rest_framework.decorators import action from rest_framework.response import Response from drf_spectacular.types import OpenApiTypes from ...
UTF-8
Python
false
false
10,952
py
136
test_examples.py
89
0.556337
0.544375
0
322
33.012422
108
JeffreyCA/dashlane-to-keepass
10,952,166,652,740
45b8bc12b10b1e4099d2dd765f1f2a16f775a171
def97878bef58f8b4be7d39c48e7895171672ccf
/script.py
2810c11d966f5116292727be1d567f6237beeacc
[]
no_license
https://github.com/JeffreyCA/dashlane-to-keepass
207bce3c3c5385fee358a4bf213b471006faa25e
2c600781507105899a105659a5b855b6486b6d70
refs/heads/master
2020-03-22T05:46:01.319909
2019-03-29T15:19:07
2019-03-29T15:19:07
139,588,705
2
0
null
false
2019-03-29T15:19:08
2018-07-03T13:36:56
2019-03-29T04:01:04
2019-03-29T15:19:08
12
1
0
1
Python
false
null
import argparse import csv import io import os.path import re import sys import traceback import validators import xml.etree.ElementTree as ET try: from StringIO import StringIO except ImportError: from io import StringIO # Force UTF-8 encoding on Python 2.x try: reload(sys) sys.setdefaultencoding('u...
UTF-8
Python
false
false
6,437
py
2
script.py
1
0.555694
0.550412
0
208
29.947115
178
eProsima/Fast-DDS
14,937,896,274,410
732ef6944c87cf6f3b5a5f8ff21c9d2d0c6816d9
c976078bf8dde5baf96416d60dd3bb06c72111ad
/test/profiling/allocations/allocation_plot.py
d719cc3900aa953b8a9b7c19f50f0a9d73f4eca4
[ "Apache-2.0" ]
permissive
https://github.com/eProsima/Fast-DDS
21f3fecacca5a285ad9950b7683456c6f9930a4d
107ea8d64942102696840cd7d3e4cf93fa7a143e
refs/heads/master
2023-08-31T14:56:45.942016
2023-08-11T11:40:25
2023-08-11T11:40:25
20,296,703
1,225
463
Apache-2.0
false
2023-09-14T11:33:09
2014-05-29T14:36:15
2023-09-14T08:37:13
2023-09-14T11:33:08
109,341
1,705
628
91
C++
false
false
import matplotlib.pyplot as plt from matplotlib import style import numpy as np import pandas as pd import sys if len(sys.argv) < 2: print("Bad usage.") print(" allocation_plot.py <csv_file> [0,1,2,3]") exit(-1) if len(sys.argv) > 2: bp0 = sys.argv[2].find('0') != -1 bp1 = sys.argv[2].find('1')...
UTF-8
Python
false
false
1,397
py
1,428
allocation_plot.py
1,198
0.640659
0.595562
0
49
27.510204
106
SaiTeja531/Amazon-Automation
13,228,499,274,870
e1913d025995c09ac5e0d203637b9db25e9fdbda
cffdb24cd863ebcbb45933de15cfe3149864852d
/Utilities/Base.py
d663ed3ba71954cb94786ecec55cd362f9ed4ee1
[]
no_license
https://github.com/SaiTeja531/Amazon-Automation
77c8ca1258aef210102e7061ac3f4f0c0a5c5d22
bfc101d1c3bc0f889648def8b6b983e1af297d66
refs/heads/master
2023-08-11T08:03:22.030705
2021-09-06T04:24:51
2021-09-06T04:24:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC import time class BaseClass: def __init__(self, driver, wait, actions): self.driver = driver self.wait = wait self.actions = actions def find_element_by_selector...
UTF-8
Python
false
false
2,225
py
10
Base.py
8
0.696629
0.69618
0
60
35.85
90
SqrTed/Planes
635,655,193,295
68a19bc9a396e25e262bc903639e726639132fee
eb41ebd17a3997e6bf127225c037df27f07ef85f
/controller/controller.py
d5a589e81acb6810a904582f5eec3691811adc77
[]
no_license
https://github.com/SqrTed/Planes
a78fef09b2cef2215e73ba0be5c5d0d1f1128654
2c8fc7a6ef0f3f7d567e36ee4b9cbed5f4d95473
refs/heads/master
2021-04-30T14:36:19.781533
2018-02-12T08:41:45
2018-02-12T08:41:45
121,221,338
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from domain.entities import Plane, Point from validation.validator import Validator from domain.entities import Utils class PlayerController(Utils): def __init__(self, player_planes_board, player_hits_board): self.__planes = player_planes_board self.__hits = player_hits_board self.__valida...
UTF-8
Python
false
false
2,248
py
10
controller.py
10
0.560943
0.559609
0
69
31.57971
117
EmanAlmusa/EDI-Files-Parser
6,227,702,586,468
3593bc2b370b8dabcaefb25f6d0cec93aa5f82c2
9be9fef615783085efe16b86658b509b6fdc370e
/parse_999/parse_999.py
6a3796e7098a167d25ea03dc84b2d51afef2e630
[]
no_license
https://github.com/EmanAlmusa/EDI-Files-Parser
f5136fe168fe905db21b314dfe891cea6d091fe7
89bff5b49b395f756e3852e6c91017247e31c239
refs/heads/master
2023-06-27T05:45:41.923789
2021-08-05T12:46:28
2021-08-05T12:46:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os from parse_common.main_parser import MainParser loop_2000 = '2000' loop_2100 = '2100' loop_2110 = '2110' class Parse999(MainParser): def __init__(self, edi_file): super().__init__(edi_file) self.edi_parsed = { 'header_section': { 'file_name': os....
UTF-8
Python
false
false
5,784
py
3
parse_999.py
3
0.461618
0.428596
0
142
39.732394
83
JamesKlee/part3
7,026,566,534,609
67787d22d095b45dd0b20b2d3c281592c11ef051
a45e5ad192d662d85b1ad6e58c483a89d702225c
/scripts/master.py
8cdb5a9c9495036c9b5f99df25012c2c851fe45b
[]
no_license
https://github.com/JamesKlee/part3
f4d5e8ee2739e08104100d0d2828bee2f03d5349
8da73f7f46184d9bb3c5d94b07b90b073968a647
refs/heads/master
2020-12-26T19:23:41.792801
2016-01-11T18:59:35
2016-01-11T18:59:35
45,981,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import rospy from pf_localisation.util import * from geometry_msgs.msg import ( PoseStamped, PoseWithCovarianceStamped, PoseArray, Quaternion ) from pf_localisation.msg import WeightedParticles, Registration, Particles from pf_localisation.updateParticle import Update...
UTF-8
Python
false
false
4,609
py
16
master.py
16
0.682795
0.675418
0
173
25.641618
131
nish235/PythonPrograms
17,282,948,409,780
1ed2cc497ea045bd58c0de8ad0849bfa0b7c26bc
9b0babcf6849e11b3f208e702d2b36fd049f63f2
/Oct20/reverse.py
ed844765fe3db8002235e34d8449dc36911acc2d
[]
no_license
https://github.com/nish235/PythonPrograms
d5ec56647d06136aef9501d732e7da32e82f3947
f657c1263098665a50b1b1fcbfc49bea6ce7af6f
refs/heads/main
2023-03-18T23:02:34.974009
2021-03-13T06:18:00
2021-03-13T06:18:00
302,834,862
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import array as arr n = arr.array('i', [1, 2, 3, 4, 4, 5, 6]) n.reverse() print(n)
UTF-8
Python
false
false
91
py
197
reverse.py
192
0.516484
0.43956
0
6
13.166667
41
scp15472/userservice
3,977,139,730,423
d74003a7cbd3091c4dd4a330d28bb5d6165bef9f
7e5d1af6d0d835c6d96aaef5377aa64f12529af1
/userservice/service_apis/login1.py
cb05ad682d58cb5519c2a8733be0cf596d479a23
[]
no_license
https://github.com/scp15472/userservice
62249a67c45e9a92eb2a01710c86e429ce260681
ab604122042ece4e01059365c37b22b30c9cf014
refs/heads/master
2022-12-09T11:03:53.838767
2018-11-18T06:21:32
2018-11-18T06:21:32
145,285,867
0
0
null
false
2022-12-08T02:59:25
2018-08-19T08:26:50
2018-11-18T06:21:59
2022-12-08T02:59:23
44
0
0
7
Python
false
false
import django; from flask import jsonify, request, make_response, json, Response from flask_restful import Resource from userservice.Service_handler_apis import login_post_handler, \ login_get_handler, login_put_handler, login_delete_handler from userservice.utility import login_methods django.setup() class Log...
UTF-8
Python
false
false
2,281
py
25
login1.py
23
0.638755
0.638317
0
58
38.327586
90
intelemetry/malware-crawler
10,084,583,218,430
626f0236be5d080adfee3b2c4e33b409c4eebc2a
78c322d1e2c15e42969dc4ae5a6075283975d8c6
/MalwareCrawler/src/core/statistics.py
0ae84cf648dc02dc8200663120e28ac9ce483208
[]
no_license
https://github.com/intelemetry/malware-crawler
723f26d233736d88ebdf508513052fb6bb609e5d
1672bab7aa292a350c0661e048517e9665ddc570
refs/heads/master
2021-01-10T10:22:12.862103
2015-10-17T20:36:41
2015-10-17T20:36:41
44,453,524
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (C) 2013-2015 Ragpicker Developers. # This file is part of Ragpicker Malware Crawler - http://code.google.com/p/malware-crawler/ import os import sys from core.config import Config from core.database import Database from core.constants import RAGPICKER_ROOT try: from prettytable import PrettyTable exc...
UTF-8
Python
false
false
14,322
py
104
statistics.py
59
0.545804
0.537914
0
367
38.027248
147
reinaaa05/python
10,900,627,035,396
8e79bfee21ca34b1ec5d9840834df395cf77e9e0
4a230737626c0cadfc5326315d036bf8453ef953
/dotinstall/python_lessons/myapp_26.py
2eb557a1f7dcfbc9ad1d0ab1deddfa3f575732e6
[]
no_license
https://github.com/reinaaa05/python
0037a40b588b6954ea5d5b0ff45df98c1522f865
2d9e2b7388c4a19a0389aa6cb532774271bd27b0
refs/heads/master
2023-04-21T23:39:20.450914
2021-05-12T07:27:47
2021-05-12T07:27:47
340,906,770
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#スライス # scores = [40, 50,70,90,60] # print(scores[1:4]) #50,70,90 # print(scores[:2]) #40, 50 # print(scores[3:]) #90,60 # print(scores[-3:]) #70, 90, 60 s = "hello" print(s[1:4])
UTF-8
Python
false
false
189
py
262
myapp_26.py
174
0.569061
0.364641
0
10
17.2
32
retro486/simple-django-room-scheduler
8,306,466,781,491
6c770c6f4a8cb4575b166e21b08f0764e5583b8a
ee646a37ee66ded40dca860225ac9dda9a57bedb
/settings.py
22a6893ddb52487278ca6a77e111ad53da4fc205
[]
no_license
https://github.com/retro486/simple-django-room-scheduler
d4f96c0502cf0135438251f3e75947594be66a07
6e0dae6214bc33d0a817d4b778db341fe18fcd85
refs/heads/master
2021-01-19T08:11:24.729357
2012-02-11T23:18:30
2012-02-11T23:18:30
3,418,704
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os curr_path = '/'.join(os.path.abspath(__file__).split('/')[0:-1]) ################################# # Custom settings for rooms app # Not custom, but really needs to be changed for each install. # Make this unique, and don't share it with anybody. SECRET_KEY = 'type some random gibberish here' # The number ...
UTF-8
Python
false
false
5,609
py
16
settings.py
10
0.704225
0.698699
0
149
36.644295
122
ds-ga-1007/assignment10
6,038,724,046,939
e9758de72a2c1ef8c81c49c8a57ed7bfdffd2f00
8d62eb52d1d3e44cecedbe2bac7e671ae588d255
/kk3175/assignment10.py
29a5f299b61ff34c904101f529d09672e8ed471e
[]
no_license
https://github.com/ds-ga-1007/assignment10
d5a9e7aca2913e1c0c4ca18621a0381a4ed28ebb
14a97f913567c32f0134aa84a2018777780d23d1
refs/heads/master
2016-08-11T09:47:52.902316
2015-12-23T16:22:18
2015-12-23T16:22:18
46,821,256
0
54
null
false
2015-12-23T16:22:18
2015-11-24T21:56:14
2015-12-09T16:33:48
2015-12-23T16:22:18
3,152
0
42
0
Jupyter Notebook
null
null
''' Main program for running the outputs required in Assignment 10. Assignment 10 requires outputs for questions 4 and 5. Author: kk3175 Date: 12/8/2015 Class: DSGA1007, Assignment 10 ''' import pandas as pd from RestaurantInspectionData import RestaurantInspectionData from RestaurantGraphs import plotRestaurantGra...
UTF-8
Python
false
false
927
py
218
assignment10.py
165
0.779935
0.752967
0
35
25.4
78
liuguanyu/gthief
18,751,827,230,022
3d92b05dd363fd65284f479e5149b711501a2c7c
6da3533a1adce36465b21b40dc395f45bf2dd656
/Util/__init__.py
0faf6d178295d5d90ae571baac90862b7918c545
[]
no_license
https://github.com/liuguanyu/gthief
4869ff9a44beb6cf642dd7c5317be77f1e313016
27b4bb9b18631cc48e99819dc1d0881612a6c9a0
refs/heads/master
2021-01-11T06:19:31.179258
2014-09-05T10:28:21
2014-09-05T10:28:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Util.picbedclient import * from Util.jsonpatch import *
UTF-8
Python
false
false
60
py
14
__init__.py
13
0.816667
0.816667
0
2
29.5
31
amukherjee01/Oop-Python
16,003,048,148,566
0d9163777fae9706c291cf3839e4259052dee8c5
794fb64a31b06388a7cf1abcaf94a6ca5ddfbe09
/oop.py.py
504f7e5215f60ce4d1cc850250a3e989e799e03b
[]
no_license
https://github.com/amukherjee01/Oop-Python
9cb40a6457f1ac96662eab58ee0385221e751fbf
38e2d50efb51c4526401d48c99836d0906e7c198
refs/heads/main
2022-12-21T07:52:04.310839
2020-10-02T06:47:12
2020-10-02T06:47:12
300,537,313
0
0
null
true
2020-10-02T07:34:01
2020-10-02T07:34:00
2020-10-02T06:47:15
2020-10-02T06:47:13
0
0
0
0
null
false
false
'''l1 = [89,"python",98,67,"hello"] num = [] chaa = [] for i in l1: if type(i) == int: num.append(i) else: chaa.append(i) print(num) print(chaa)''' ''' num = input("Enter number scored by aditya : ") if num.isdigit(): num = int(num) if num < 50 and num >=30: print("Aditya scored...
UTF-8
Python
false
false
2,312
py
1
oop.py.py
1
0.536765
0.506055
0
112
19.651786
66
pranav6670/DS-and-Algo-implemetations
7,645,041,810,879
2494f6276166abfd58c32a5690aa0b3b15ed6835
a39e1a5e5b309faf8e3cfac0de16ac53dea2c572
/Searching/binary_recursive.py
47f6ba37656474b5c9bab8eae34a0d1ed9d43037
[]
no_license
https://github.com/pranav6670/DS-and-Algo-implemetations
42116396e2b9899637338f675f71b9963f3c5160
13d86201c286158c395313c77ffae2463ead7166
refs/heads/master
2022-12-21T14:50:17.402630
2020-09-22T18:56:56
2020-09-22T18:56:56
297,738,233
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
z = [1, 2, 3, 4, 5] def binary(a, low, high, x): if low > high: return -1 mid = (low + high) // 2 if a[mid] == x: return mid elif a[mid] > x: binary(a, low, mid - 1, x) else: binary(a, mid + 1, high, x) print(binary(z, 0, len(z) - 1, 3))
UTF-8
Python
false
false
294
py
23
binary_recursive.py
23
0.442177
0.401361
0
16
17.375
35
sanneabhilash/python_learning
17,540,646,470,113
febb5055180458c2a75ac107d0db1f0cfa6c6924
23105de40d00538d17888204736222178c3bfd88
/unit_testing_examples/unitTestExample.py
317e3def684d1fb80a0f1c16b968a9892a1fcddc
[]
no_license
https://github.com/sanneabhilash/python_learning
013a5919758ab660e1c048f926e39feb912c3ba2
aecab7dd174829f9d324a91cb1d42cda60779982
refs/heads/master
2020-06-20T05:55:52.815505
2019-07-29T05:53:59
2019-07-29T05:53:59
197,016,520
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest def add(x, y): return x + y def div(x, y): return x / y def sub(x, y): return x - y def fact(n): if n == 0: return 1 return n * fact(n - 1) # MyTest inherits TestCase class from unittest class MyTest(unittest.TestCase): def setUp(self): print("IN SET UP...
UTF-8
Python
false
false
1,174
py
88
unitTestExample.py
84
0.602215
0.586031
0
59
18.898305
73
derymukti/pentools2
5,772,436,066,760
7780ecaa62e8c25bfaa6065f7319cdf08bbef002
87df2eea3e2983af38484e09cdf6e074c064f77c
/system/middleware.py
54a8b8fbb7671bf9e3789e46752806ad5576e4bc
[]
no_license
https://github.com/derymukti/pentools2
321118da54eea912e68604149759d2a2b07ed482
a7d68c6c2ab05a504fda903b4acd78ed02b5ae35
refs/heads/master
2020-03-26T16:21:39.479376
2018-08-17T15:41:11
2018-08-17T15:41:11
145,097,022
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from functions_lib import * from flask import request from functools import wraps from jose import jwt from system import secret def login_require(f): @wraps(f) def decorated_function(*args, **kwargs): try: token = request.headers['authorization'] res = jwt.decode(token,secret,algorithms=['HS256']) if res...
UTF-8
Python
false
false
488
py
12
middleware.py
9
0.709016
0.696721
0
19
24.631579
54
YanZiQinKevin/openCV
9,869,834,854,289
a207942194cbc86671ebb90e5713a477423d3ac0
63cff89f6ada157be7be7888755992f5d581dec9
/opencv_1.py
5676b53a37755e588951965121470251a1883b68
[]
no_license
https://github.com/YanZiQinKevin/openCV
9ad210a68a9c2b2c9e624ac4f9f47721b83770a7
b38a61bca50102371eb76856b9103e326bea4c02
refs/heads/master
2021-05-16T13:49:18.599506
2018-03-18T21:45:39
2018-03-18T21:45:39
117,765,416
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding: utf-8 import cv2 def main(): #reading and displaying the image imgpath="/Users/yanziqin/openCV/image/4.1.01.tiff" #imread: 1为彩色,0为黑白 img = cv2.imread(imgpath,0) # 是否模糊 imageVar = cv2.Laplacian(img,cv2.CV_64F).var() print (imageVar) imgpath1="/Users/yanziqin/openCV/car.jpg" #imread: 1为彩色,0为黑白 img1...
UTF-8
Python
false
false
963
py
11
opencv_1.py
8
0.700762
0.644178
0
48
18.166667
53
luca16s/INF1025
14,250,701,537,543
1f3fb2f9c449ca06c422ce734b7293ae6202b25b
ebef4a843005b257a0403e20977cab573d84d090
/Exercicios/Lista1/011.py
99d1d5ca0e53a7837409f20ae3f517d450d95bad
[]
no_license
https://github.com/luca16s/INF1025
c0ce2271c33939ca74bb42ef7e132fe7b39632c9
adece192edd50ae35c1cb3171c41bfb86da12f4d
refs/heads/main
2023-01-22T17:35:54.827658
2020-12-08T00:56:28
2020-12-08T00:56:28
291,729,506
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#11) Um pequeno, porém horrível, alienígena está no topo da Torre Eiffel (que tem 324 metros de altura) e #ameaça destruir a cidade de Paris! Um agente da MIB está no nível do chão, a 54 metros da Torre Eiffel, #mirando sua arma a laser no alienígena. Em que ângulo, em graus, o agente deve disparar o laser? import mat...
UTF-8
Python
false
false
432
py
111
011.py
101
0.763033
0.732227
0
11
37.454545
105
EliotGeller/Matplotlib
3,435,973,887,040
c34e1e21bd206e22f14e96cd04a538601c055e2d
fb6fe919f0a7294946a5ac543a02ddc77c5369c0
/StackPlots.py
aeaab846d56e9dba88ada76356a757bfce1e1bce
[]
no_license
https://github.com/EliotGeller/Matplotlib
f396773259d336e61db36c441501a38a924ed129
774ff1c26c66b11adf250dd5ef7244490f6e34ac
refs/heads/master
2020-03-16T23:02:06.684481
2018-05-21T01:26:39
2018-05-21T01:26:39
133,062,068
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from random import randint group1 = [] Index = [] group1err = [] ident = ["Value 1","Value 2","Value 3","Value 4","Value 5"] group2 = [] group2err = [] for i in range(50): group1.append(float(randint(30,40))) group2.append(float(...
UTF-8
Python
false
false
718
py
17
StackPlots.py
16
0.608635
0.557103
0
27
25.62963
72
fczj/python-S14
2,087,354,119,846
0bb86372c636359ded74a53afaccb33e6950419f
e5b4d9e3240b3302db47d770260dd1bcff93d5ef
/RabbitMQ/rabbitmq/rpc-cmd-server.py
0d7146c49ba5a1ba76bdf704737b6cf4d63828f4
[ "MIT" ]
permissive
https://github.com/fczj/python-S14
a28f255b13c15f17d632cf920bca53ed5035752a
53a1350dae7c797134463c8c42edae44bb5427cb
refs/heads/master
2021-01-02T09:23:48.195642
2017-10-30T12:35:57
2017-10-30T12:35:57
99,205,729
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17-8-30 下午11:53 # @Author : xiongzhibiao # @Email : 158349411@qqcom # @File : rpc-cmd-server.py # @Software: PyCharm import pika import os connection = pika.BlockingConnection(pika.ConnectionParameters( host='localhost')) channel = connection.ch...
UTF-8
Python
false
false
1,055
py
114
rpc-cmd-server.py
80
0.613701
0.594672
0
35
29.057143
75
vinayjaibheem/CSEE5590_python_deep_learning
13,829,794,728,192
7821c35b9f9abf9ebc1f1283e3440c98c3172387
1c1be1a9fcfb65b319d63d93ebdff5561fb2518d
/ICP 01/Source/ICP1/reverse.py
7b8148e5deed002730511e80a873c07886c26cab
[]
no_license
https://github.com/vinayjaibheem/CSEE5590_python_deep_learning
8b4497c34568b17091f5314f39d8be4d9f6ef910
1e3333aeecc36f18c6fcc98139f2b6106d885d20
refs/heads/master
2021-07-18T04:05:15.113457
2018-12-07T23:33:42
2018-12-07T23:33:42
146,037,638
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
first_name = input("\n Enter first name \n") last_name = input("\n Enter last name \n") concated_string = first_name + last_name print("The concatenated string is: ") print(concated_string) print("The reversed string is: ") reverse_string = concated_string[::-1] print(reverse_string)
UTF-8
Python
false
false
288
py
54
reverse.py
36
0.715278
0.711806
0
10
27.9
45
KDF5000/LeetCode
5,471,788,371,789
dc6e10c1c8b12d42cf7b3776c46d63be77c28567
dac093e586dba971ef58e3db530424fd5d460825
/RemoveDumplicates.py
1a940af15be8ec94a6f76fd9404f717801ae5ee2
[]
no_license
https://github.com/KDF5000/LeetCode
e57f3dc05f02b2865458db544eb8098c75c7e852
a62167ae88f93949133c3e61372ce08141b18023
refs/heads/master
2021-01-10T16:41:05.631022
2015-11-20T15:36:16
2015-11-20T15:36:16
44,290,829
1
4
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 __author__ = 'devin' # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ ...
UTF-8
Python
false
false
1,271
py
21
RemoveDumplicates.py
21
0.472245
0.468222
0
55
21.545455
64
SowmicaML/Compiler-directives-Program
8,924,942,056,499
07b8db134182ee3eee59c7a39135270a1e56c23e
fdd8dc00efec38663542ad394c8f54ffae06ebff
/lexical.py
8c59336eaba5aaac14ee7ee0e1fc8df41ab70747
[]
no_license
https://github.com/SowmicaML/Compiler-directives-Program
02d544aa90e5189ca90020a7b2c9481dd433a449
8dc54a201b6139deb5e1262eaa30e5097426fa03
refs/heads/master
2020-11-26T14:59:34.438885
2019-12-19T18:51:31
2019-12-19T18:51:31
229,113,514
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This is a program to perform lexical analysis for a c program in python C program to be stored in a file InputProg.c """ #include <stdio.h> #int main() #{ # int a , b , c; # b= 5 ; # c= 6 ; # a=b+c; # printf("%d",a); # return 0; #} #opening file f = open('InputProg.c','r') #defining the toke...
UTF-8
Python
false
false
2,810
py
2
lexical.py
1
0.554804
0.550534
0
103
26.281553
163
olszewskip/MDFS_playground
1,898,375,554,280
7a0c91434514d70ffdddbfe0681e12be6063baae
8245e898fbd7bb655706de0a0c35078934ceee12
/python/scheduler/tiles_generator.py
9315324704e1d724b8d1f2d2903e9651a99f65c2
[]
no_license
https://github.com/olszewskip/MDFS_playground
86e889bb08be0139ace42916c794eacfc657b74d
1cf7df6d8c60c2a4da7a9286a469bdb8855abb46
refs/heads/master
2020-04-08T21:01:22.839688
2019-05-15T14:29:06
2019-05-15T14:29:06
159,725,454
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from itertools import chain, starmap, cycle, compress class TilesGenerator(): def __init__(self, k, M, size, rank): self.k = k # dimension of the contingency matrix self.M = M # number of tiles across one dimension self.size = size # apropo mpi self.rank = rank # apropo mpi...
UTF-8
Python
false
false
1,143
py
119
tiles_generator.py
67
0.549431
0.546807
0
39
28.307692
65
l5d1l5/python-urbanPlanning
6,743,098,679,451
e0527f61a55f8e7f80eedab9f94cb23fefebb568
b7b122b7b9c35ec2f191021c3396f4790f023ed3
/23_生活圈_02_通过计算曲线拐点找到特征层级/data_generator.py
2141b71e4f8da8e7b482e8c620c9f2b67defe951
[ "MIT" ]
permissive
https://github.com/l5d1l5/python-urbanPlanning
e7fe413441aea7df94765062fe14d331a6e0006a
f22e5b561a55ac2263aa96e8e9aff155b0aae1fd
refs/heads/master
2020-06-22T09:54:54.895918
2019-06-18T02:22:14
2019-06-18T02:22:14
197,694,260
0
2
MIT
true
2019-07-19T03:19:41
2019-07-19T03:19:40
2019-07-17T02:51:51
2019-06-18T02:22:15
513,243
0
0
0
null
false
false
import numpy as np class DataGenerator(object): """Generate data to work with kneedle.""" def __init(self,): pass @staticmethod def noisy_gaussian(mu=50, sigma=10, N=100): """Recreate NoisyGaussian from the orignial kneedle paper. :param mu: The mean value to build a normal d...
UTF-8
Python
false
false
1,409
py
211
data_generator.py
64
0.562811
0.504613
0
45
30.311111
86
marek5050/Sparkie
13,134,010,006,264
fdc9e8975480a3e23edd3961e5b7ae4d7d7b767b
06719484b00557f729ea7f994525b7a614073611
/Streaming/kmeans_reducer.py
8c59a0773e0d436ec292eb4b126dda8753ce700f
[]
no_license
https://github.com/marek5050/Sparkie
c5945ee8d8b82d1b8787fa7ea12245f5f155dc16
f764cea0707afe4f2aa67ce5056a6204400eca4c
refs/heads/master
2016-09-11T02:56:19.882248
2015-06-25T18:30:10
2015-06-25T18:30:10
31,774,324
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import sys import random import math base=0 count=0 priorCluster=-1 currentCluster=-1 def mean(num): return str(num/count) for line in sys.stdin: cord = line.split("\t") currentCluster=cord[0] _points=cord[1] _str_point=_points.split(" ") point= [int(numeric_string) ...
UTF-8
Python
false
false
673
py
35
kmeans_reducer.py
24
0.573551
0.555721
0
40
15.675
66
Owncreed93/intro-django
19,146,964,246,180
9d5c9244059c916e4601f112a65b6e90faacfc00
dae99c679399b4bf9faa6a8c7fca89ed17989642
/educational_site/courses/models.py
cc8412f24da8e39aed2a49d10d506c72ac7268ac
[]
no_license
https://github.com/Owncreed93/intro-django
da5a5d7bf9c2d133801d35a6c681bb1d24e5c00a
e5218bd2ceb2761b7c053b9948b126c5c5b87780
refs/heads/master
2022-04-22T14:14:41.615215
2020-04-25T08:11:17
2020-04-25T08:11:17
257,488,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class Course(models.Model): created_at = models.DateTimeField( auto_now_add = True ) name = models.CharField(max_length = 180, default = None) description = models.TextField(default = None) def __str__(self): return self.name
UTF-8
Python
false
false
296
py
5
models.py
4
0.64527
0.635135
0
13
21.769231
62
LiamPa/betfairscrape
19,207,093,761,142
e73089f06679ab72062d1e281ba6af993e584ee1
c2d0d48c232dc00b32d19aec9c2187697bb2181e
/betfairscrape/parse/racecard.py
9c85d69db2406d9406f66317e4568451dde53fef
[]
no_license
https://github.com/LiamPa/betfairscrape
eb6c00bb44346dd92cae289d31395937983da617
9db535b611a81c0fb4bd6381506ed2b7ae3ed732
refs/heads/master
2016-08-12T18:35:17.174958
2016-05-07T10:58:43
2016-05-07T10:58:43
51,641,727
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from ..utils import strp_betfair_time class RaceCard: def __init__(self, race_card): self.raw_response = race_card self.in_play_hints = [InPlayHints(hint) for hint in race_card.get('inPlayHints')] self.minimum_weight = race_card.get('minimumWeight') self.prize = race_card.get('pri...
UTF-8
Python
false
false
2,788
py
7
racecard.py
6
0.638809
0.638809
0
79
34.291139
89
leejunbo/manage
4,398,046,517,907
018bfb8e3715026ebc5bad2b91fa738949fd6822
994e38c2663bb57e7e614328c98a932e03437cb6
/register.py
a39152a10403cd8e641ae5d468b3716f259fabb6
[]
no_license
https://github.com/leejunbo/manage
a99b42e7ed5605c677c779a722a1e73ed1b692ac
b16b14d391edbce0294632856052751ba5e07586
refs/heads/master
2020-03-13T20:14:45.672674
2018-04-27T09:03:06
2018-04-27T09:03:06
131,269,722
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import manage @manage.app.route('/register') def register(): db = manage.get_db() cursor = db.cursor() sql = "INSERT INTO register (account,psw,repsw,phone,email) VALUES (%s,%s,%s,%s,%s)", cursor.execute(sql) return manage.render_template("register.html")
UTF-8
Python
false
false
278
py
23
register.py
5
0.658273
0.658273
0
10
26.8
89
MASk1999/PorsheForLife
14,851,996,916,407
183e5ca17a0870bed7de4efe6e166f0c07e09a72
c0083bc593015b6786e18b32ca4cd304b72ffb06
/porsche/taycan/urls.py
6d31b88c9736a3f2df4b0e44db2824660754f587
[]
no_license
https://github.com/MASk1999/PorsheForLife
e3967ba7a88a886f186c93fe09b58d398038a805
5815309a60fb24396d04558cf9327f141131ef2c
refs/heads/master
2022-05-28T13:07:46.347764
2020-05-02T14:51:33
2020-05-02T14:51:33
260,621,643
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='taycan-home'), path('nextpage/', views.nextpage, name='taycan-next'), path('cr/', views.CR, name='taycan-CR'), path('or/', views.OR, name='taycan-OR'), ]
UTF-8
Python
false
false
263
py
12
urls.py
7
0.631179
0.631179
0
9
28.222222
58
albert-zhao/py_code
13,675,175,889,263
163e1b407ec03229f701b5c1ad8642ebf6deee32
6365c4ff836c16103f39bf394c306eff1c08351a
/crawler/crawler_link1.py
e448bba0efe4ecc260cba5540639e0de9a67fac5
[]
no_license
https://github.com/albert-zhao/py_code
8f7d9d52b68cc409fc9161fbad980c083b297548
267e9898c04392ff2352baaefe575f32fe6ca0e5
refs/heads/master
2020-03-23T12:55:26.907635
2019-12-25T07:20:46
2019-12-25T07:20:46
141,590,466
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/python import re import urllib2 import urlparse def link_crawler(seed_url, link_regex): """Crawl from the given seed URL following links matched by link_regex """ crawl_queue = [seed_url] seen = set(crawl_queue) # keep track which URL's have seen before while crawl_queue: url ...
UTF-8
Python
false
false
1,668
py
50
crawler_link1.py
45
0.576739
0.569544
0
54
29.907407
82
satyaambati5/hyderabadiEvents
13,915,694,069,649
ca8bb33c8b69f44594f279bb7fc499853cd6050a
b6fb85d8700032e11f82a9343c32a3140fc56839
/hyddavaths/admin.py
7bef490e301af45a537827a920eddddcdeae14a7
[]
no_license
https://github.com/satyaambati5/hyderabadiEvents
8fdc11560696f54ff071afff04157c758195ca70
2a7ab2766583cd4fcbad6e23c8d443bdf9a8b881
refs/heads/master
2023-04-24T18:54:53.825808
2021-05-19T20:32:33
2021-05-19T20:32:33
368,993,882
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import scroler,gallery_photo # Register your models here. admin.site.register(scroler) admin.site.register(gallery_photo)
UTF-8
Python
false
false
168
py
10
admin.py
6
0.821429
0.821429
0
6
27.166667
41
yzlee/genpac
5,557,687,686,412
40856edacac4d34d6b514cffa13ac211d5413992
66ce1760e66b673b0f7a32f9302a0161a8c81459
/genpac/__init__.py
cf18116d463e767d2f6e64193157f22589fbdb5b
[ "MIT" ]
permissive
https://github.com/yzlee/genpac
bf5a5103c3bd308427415926163e7b053b27d73b
d766d2e643a826cb3049d3219bcdc59c2571053b
refs/heads/master
2021-04-18T18:46:34.637542
2018-03-22T06:38:39
2018-03-22T06:38:39
126,289,961
0
0
null
true
2018-03-22T06:28:31
2018-03-22T06:28:31
2018-03-21T08:02:40
2017-11-10T07:42:31
443
0
0
0
null
false
null
# -*- coding: utf-8 -*- from __future__ import (unicode_literals, absolute_import, division, print_function) __version__ = '2.0.1' __author__ = 'JinnLynn <eatfishlin@gmail.com>' __license__ = 'The MIT License' __copyright__ = 'Copyright 2013-2017 JinnLynn' __all__ = ['GenPAC', 'Namespace', 'Ge...
UTF-8
Python
false
false
765
py
4
__init__.py
3
0.661438
0.645752
0
24
30.875
72
robertl9/CS4300_Flask_template
2,911,987,839,478
90477b0eb096a3c1f4acaae3d27477ed07e79613
7724b56c2eff8f1a788b903cc0e47df4dcac3dbd
/precomputation_scripts/units.py
0285aa8ac8cb35b72a3c63507220f620c5561d71
[]
no_license
https://github.com/robertl9/CS4300_Flask_template
c0a1cb9aaf3d8ac53bfc351b13fd963cffcc7ace
cd3368c763d19ae4028167a1eaedbecbdcb57596
refs/heads/master
2021-04-09T13:16:03.974048
2018-05-01T02:59:29
2019-04-11T01:15:11
125,662,039
0
0
null
true
2018-03-18T21:26:36
2018-03-17T19:23:57
2018-03-17T19:23:59
2018-03-18T21:26:36
105
0
0
0
Python
false
null
smallest = ["pinch", "pinches", "gram", "mL", "grams", "g", "ml", "gr", "gm", "dash", "Dash", "dashes", "Gram"] spoon = ["teaspoons", "tablespoon", "teaspoon", "tablespoons", "tsp", "Tb", "tbsp", "Tablespoon", "Teaspoon", "T", "t", "Tbsp", "Tbs", "Tablespoons", "tsps", "Tsp","Teaspoons", "tbsps", "TB", "Tbsps"] cu...
UTF-8
Python
false
false
948
py
15
units.py
8
0.542194
0.517932
0
18
51.722222
119
julianlucasvb/100DaysOfCode
17,824,114,305,501
1bc62cac7fe58ec97a6c4b09b6c9ff6f56d6f51c
97914ca57fdd03f5785ee64e5268a0c9e67dc86c
/day 2/desafio005.py
45d06b850888d8a4eb7b05e1604c658dc1504ebe
[]
no_license
https://github.com/julianlucasvb/100DaysOfCode
54822084fa6eb638b83321d8a09354a4349742c3
9799aa30882db1e7ddff65b8074874004f1c413a
refs/heads/master
2023-01-21T11:06:12.318445
2020-11-27T03:46:34
2020-11-27T03:46:34
315,495,472
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
num = int(input('Digite um número: ')) antecessor = num - 1 sucessor = num + 1 print('O antecessor do número digitado e {0} e o sucessor e {1!'.format(antecessor, sucessor))
UTF-8
Python
false
false
176
py
7
desafio005.py
7
0.695402
0.672414
0
4
42.5
94
afcarl/SpatialMoney
7,662,221,670,106
3c7106e46a8ad441a898e8405d813737b9980a69
48c4bb95c2d49ca9dca1e6356e61784d6f36a01d
/__old__/merge_db.py
8aefd4a4b5a3d27bd24b5890418332a1e4d99967
[]
no_license
https://github.com/afcarl/SpatialMoney
2a5e5caf91ed7b0925317d4ec949d9ca4752f416
6c9339ae556c842f228cd1cce65842b5b346f060
refs/heads/master
2020-03-16T16:11:36.835280
2018-03-19T20:31:31
2018-03-19T20:31:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import apsw from sqlite3 import connect from datetime import date from os import listdir, remove import numpy as np from tqdm import tqdm class DatabaseManager(object): @classmethod def run(cls): data_folder = "/Users/M-E4-ANIOCHE/Desktop/SpatialEconomy-data" new_db_name = "data_{}".format(s...
UTF-8
Python
false
false
4,801
py
40
merge_db.py
34
0.449698
0.443658
0
150
31.013333
110
faisalarkan21/TensorFlow-Examples
12,721,693,132,616
5f820f8f5ad3adcd4f03bcfcf41bba28d0b9bbbc
e4c69632b1b5507d637254d6f5238980e17ff810
/examples/testing/tensor_dashboard_example.py
f5a608a15a8e0dc0d2dc8714223d9356e7b28cc4
[ "MIT" ]
permissive
https://github.com/faisalarkan21/TensorFlow-Examples
23d1a43e58709c808332b62ea08f8a8c6d9359ca
b2ed71ca904dce8cb22a71d379872370638a9221
refs/heads/master
2020-04-10T22:51:41.533393
2018-03-08T05:37:53
2018-03-08T05:37:53
124,303,219
0
0
MIT
true
2018-03-07T22:40:08
2018-03-07T22:40:08
2018-03-07T20:59:18
2018-03-07T15:17:48
5,667
0
0
0
null
false
null
import tensorflow as tf C_1 = tf.constant(5.0) C_2 = tf.constant(1.0) C_3 = tf.constant(2.0) golden_ratio = (tf.sqrt(C_1) + C_2)/C_3 with tf.Session() as sess: writer = tf.summary.FileWriter('logs', sess.graph) print sess.run(golden_ratio) writer.close() # then run, # tensorboard --logdir=logs # logs is...
UTF-8
Python
false
false
352
py
2
tensor_dashboard_example.py
2
0.664773
0.630682
0
16
21.0625
54
dojo-natal/dojo-natal
19,524,921,344,534
4e6bddc364cdf71619a96fa43210e43cdfda70b0
f909d50732e807488e348bd46e3faec732b1dd6d
/2020/20200129_prefixa_lisp/prefixa_lisp.py
f74dfcc8d89932e43ac0722c31036323527b882b
[]
no_license
https://github.com/dojo-natal/dojo-natal
3489f82067908b7a96c6f6cfc5b1efbdaca35669
05a96aff80c4d04421a62eb348c9c479e02f3c7e
refs/heads/master
2023-08-07T16:16:17.393455
2023-07-27T01:11:15
2023-07-27T01:11:15
190,207,999
6
3
null
false
2019-07-13T21:22:35
2019-06-04T13:33:09
2019-07-10T10:24:38
2019-07-10T10:24:36
10
4
2
0
Python
false
false
def prefixa_lisp(expr): if expr == "(+ (+ 2 3) 4)": return 9 op, n1, n2 = expr[1:-1].split(" ") if op == "+": return float(n1) + float(n2) if op == "-": return float(n1) - float(n2) if op == "/": return float(n1) / float(n2) if op == "*": return float...
UTF-8
Python
false
false
1,117
py
86
prefixa_lisp.py
79
0.408236
0.38496
0
49
21.632653
46
gtzago/aprendizado-maquina
3,762,391,392,784
79b3bc2dd09946ef0c0fa3c00bf80b7746d14557
e51142facf2882bb44ed94737064ce9aed4b142d
/classif_regres/regression_tree.py
d86befc86bd6aa6286326a921e5381b6afb05d9b
[]
no_license
https://github.com/gtzago/aprendizado-maquina
44325bcaa6e980d0e28e967731424d7f8e4b5b00
319d3c1f9d96cf1a80754c905cefcecb7ae24ce5
refs/heads/master
2021-01-10T11:03:32.622708
2016-02-24T16:39:53
2016-02-24T16:39:53
52,455,681
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import utils import reduc_dim import classif_regres import networkx as nx class RegressionTree(object): def __init__(self, nclasses): self.root = None self.children = None self.att = None self.n = 0 self.m = 0 self.nclasses = nclasses def tr...
UTF-8
Python
false
false
4,617
py
30
regression_tree.py
28
0.440113
0.42755
0
137
32.70073
78
MelonFaceDOOM/cannabis_scraping
15,977,278,342,326
e192bc691b254c8e1512292559090c5cdb38e097
9ca5486c0bf9d4a4a7dc26605a79eadb76ee9c7b
/analysis/price_by_quantity.py
869fa424de5862045b3aa09d360c4436aa4a9f47
[]
no_license
https://github.com/MelonFaceDOOM/cannabis_scraping
e6f41e3741c483699085b85035b0eb3adf5252b1
e1aef9554346aa00102e8e8059b336d7ff95183c
refs/heads/master
2020-09-05T10:19:59.199381
2020-03-09T20:15:22
2020-03-09T20:15:22
220,071,588
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from scraping.build_dataframe import merge_all_parsed from cleaning.categorization import extract_flower from cleaning.clean_weight_price import price_tuple_to_grams from cleaning.flower_cleaning import clean_name, specific_replacements, standardize_og_kush import matplotlib.pyplot as plt def main(): df =...
UTF-8
Python
false
false
6,775
py
97
price_by_quantity.py
36
0.630258
0.600148
0
151
42.86755
113
codelibs/elasticsearch-learning-to-rank
7,559,142,467,792
e6a3a664164d7142a611cc2703abd97079adc1f7
e62f8e6971fb6b3d0621fd33b4f6569678c0ac22
/demo/collect_features.py
7bca892f666109a706bddaa4705a4f15c16190df
[ "Apache-2.0" ]
permissive
https://github.com/codelibs/elasticsearch-learning-to-rank
9ae3d31f6a53b33907caae1bfa1e21e525ed7d93
5e811d0988abce61efa7f564ed9b23a13bb76e56
refs/heads/master
2023-03-22T04:37:15.107754
2019-10-24T02:54:06
2019-10-24T02:54:06
138,831,446
3
2
Apache-2.0
true
2018-11-29T02:01:39
2018-06-27T04:56:40
2018-11-22T01:56:48
2018-11-29T02:01:39
980
1
1
0
Java
false
null
import json from judgments import judgments_from_file, judgments_by_qid from log_conf import Logger from utils import elastic_connection, JUDGMENTS_FILE, JUDGMENTS_FILE_FEATURES, FEATURE_SET_NAME, INDEX_NAME logQuery = { "size": 100, "query": { "bool": { "filter": [ { ...
UTF-8
Python
false
false
3,169
py
31
collect_features.py
16
0.543074
0.53834
0
91
33.824176
107
deltaint-project/deltaint
10,694,468,576,457
85f348e312b8f2b142c55d154259598e18daa8b8
1691c6aee50dd13c7e1dc88baa43fbc12d7da99a
/Mininet-DINT/p4utils/utils/topology.py
613c4abe4ffc0514197d97a347dc6e5f1d30d8b9
[]
no_license
https://github.com/deltaint-project/deltaint
e8be36b1e3d198f2074bd4e329672ee4167211d7
c2f4d982cc447077a1d511d51e321c8ada8d460d
refs/heads/master
2023-05-09T06:01:11.855384
2021-05-23T00:33:19
2021-05-23T00:33:19
369,816,623
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import copy import json import pprint import networkx as nx from ipaddress import ip_interface from p4utils import NodeDoesNotExist, InvalidHostIP from p4utils.logger import log class TopologyDB(object): """ Topology API to save mininet topologies and load them to query useful information. dict keyed b...
UTF-8
Python
false
false
25,221
py
133
topology.py
61
0.574482
0.567583
0
785
31.128662
121
olivia2800/ai-maze-python
936,302,879,804
786a1e2a5405cfba0cd20078400d22c2e0d414b3
0fad113e47c5ceafef451de457335396d6941677
/maze_generator.py
c042dcfb6a71d6c30289eec83af03ece1e872917
[]
no_license
https://github.com/olivia2800/ai-maze-python
b812a060fc10b627b6315ac45d675d713889587c
393e3615de0ca4cb1724b023e837b682f2c0310c
refs/heads/master
2023-08-12T00:30:37.719012
2021-09-28T13:49:11
2021-09-28T13:49:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 9 00:01:40 2020 @author: Raul Ortega Ochoa """ import pygame, argparse, csv, time import argparse import numpy as np from time import sleep from numpy.random import randint def is_in_map(pos, grid_dim): """ Parameters ---------- pos : tuple...
UTF-8
Python
false
false
8,866
py
11
maze_generator.py
4
0.522671
0.49921
0
268
31.089552
123
zhuqiangLu/NMF
15,367,392,990,704
dda5423a32a47b7019a810db0942ed574702ff4b
88541647f252cdc23003e06870bb0074aea3e027
/algorithms/algorithms.py
e068bb83defb4ec04034661dfc9f81eee7be1d18
[]
no_license
https://github.com/zhuqiangLu/NMF
30df518d2c800dada57e58cb44efc98900706387
80c7329122ba0ed0b8ff6a188963d5f7e36556db
refs/heads/main
2023-01-01T19:00:54.007913
2020-10-23T07:50:11
2020-10-23T07:50:11
305,027,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from utils import positive_init from eval import RRE def MSE(X, X_hat): # implementation of Mean Square Error e = np.linalg.norm(X-X_hat)/X.size return e def KL_Divergence(X, X_hat): X_hat += 1e-7 div = (X/X_hat) + 1e-7 return np.sum(X * np.log(div) - X + X_hat)/X.size d...
UTF-8
Python
false
false
5,695
py
98
algorithms.py
6
0.479719
0.458121
0
209
26.177033
94
eflows4hpc/dls-dags
6,347,961,689,952
a40934b56ca2c169566e3c7d736fc9f2a572f90a
9b51a4a09e8d9ee144e91d989a6c97429087cf82
/utils.py
90ac75872d42f9a8e1eac104e55e249d83ded326
[ "BSD-2-Clause" ]
permissive
https://github.com/eflows4hpc/dls-dags
c68a7da602fcbb4594d67ede19c9121c440bf79c
3d311423c8e607b518f3fe5081ceeb1d91557896
refs/heads/master
2023-08-21T13:20:22.936933
2023-08-15T12:55:42
2023-08-15T12:55:42
508,962,576
0
1
BSD-2-Clause
false
2022-09-14T10:05:54
2022-06-30T06:37:33
2022-06-30T06:47:29
2022-09-14T10:05:53
68
0
1
0
Python
false
false
import json import os import stat import tempfile from urllib.parse import urlparse import requests from airflow.models.connection import Connection from datacat_integration.hooks import DataCatalogHook from webdav3.client import Client from airflow.exceptions import AirflowNotFoundException from airflow.models.dagru...
UTF-8
Python
false
false
8,563
py
43
utils.py
37
0.628284
0.62408
0
270
30.714815
100
dimitreOliveira/titanicDeepLearning
12,670,153,554,698
4355c7dd3310aaa514a228a1a4e684c34c43f4c0
81d0cbffb9e66f98775c52f9b56d32f8da785a67
/dataset.py
94a93a995122ee34ececa4262f880e156d8ab370
[ "MIT" ]
permissive
https://github.com/dimitreOliveira/titanicDeepLearning
340413442b0fb5875db97d7d2e2fc0da3601848e
ced45386fbbd0cd83cde4f53c177ffaaf5a00956
refs/heads/master
2022-01-10T14:43:12.615362
2019-06-12T23:59:33
2019-06-12T23:59:33
115,830,056
2
0
null
false
2019-06-12T23:59:34
2017-12-30T23:05:06
2019-02-06T12:43:52
2019-06-12T23:59:33
39
1
0
0
Python
false
false
import csv import re import numpy as np import pandas as pd def load_data(train_path, test_path): """ method for data loading :param train_path: path for the train set file :param test_path: path for the test set file :return: a 'pandas' array for each set """ train_data = pd.read_csv(tra...
UTF-8
Python
false
false
5,334
py
6
dataset.py
4
0.605549
0.595238
0
133
39.105263
120
AndreasLP/Euler
14,594,298,898,363
66f99c9387aa5d5b276f02149d0a7426a5094d31
8a81e6415436bf55f7169db165abd1eaef74afac
/problem38/problem38.py
91a94ce6a6e57b1daa1565f686637679dda9f53f
[]
no_license
https://github.com/AndreasLP/Euler
520d997322290e8a40cc0de28867f65eeedccc88
4f9e6019d50d005c82a5e2e55275aefc5c9fe93e
refs/heads/master
2022-04-01T12:40:01.711757
2020-01-17T10:03:09
2020-01-17T10:03:09
146,212,985
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from is_pandigital import is_pandigital_9 pos = set() for test in range(2,10**5+1): s = "" n = 1 while(len(s)<9): s += str(test*n) n += 1 if is_pandigital_9(s): pos.add(s) print(max(pos)) print(pos)
UTF-8
Python
false
false
245
py
89
problem38.py
63
0.514286
0.473469
0
14
16.5
41
signed8bit/vpp
7,318,624,306,807
5cca331d8d8dcd18f63186f68d4c0352f635efb7
8168685b60ac5ce47ca0e2fc5867e374ca3979e8
/test/util.py
c72a3965d9ef5d7c3e34c4a0c0b18a8b948d3b25
[ "Apache-2.0" ]
permissive
https://github.com/signed8bit/vpp
a28badc48daab1b2e3d1be96445a7ff3f6828ef5
ebb9a6a1280ae89b8b1555197dd2f7c3f40a4a6e
refs/heads/master
2020-07-15T16:33:36.574957
2016-10-17T15:35:32
2016-10-17T18:33:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## @package util # Module with common functions that should be used by the test cases. # # The module provides a set of tools for setup the test environment from scapy.layers.l2 import Ether, ARP from scapy.layers.inet6 import IPv6, ICMPv6ND_NS, ICMPv6NDOptSrcLLAddr ## Util class # # Test cases that want to use m...
UTF-8
Python
false
false
5,954
py
15
util.py
10
0.577931
0.560296
0
139
41.834532
104
salarmgh/djshop-backend
10,960,756,542,505
d0a48fbf28a4f765c9d11b61122934cc31f6bd0f
8491a2a41bcc9471cb447f85acb6e697fb9a9efb
/backend/tests/models/test_landing_model.py
1ca22af6e689bb705c06f4363703a4cb20a049eb
[]
no_license
https://github.com/salarmgh/djshop-backend
9cae72eeaefabc99004cb8a9a00eadaa69df2d71
921e44c6e52ff025b08e6214ed7fb93a1ca6073c
refs/heads/master
2020-11-29T19:25:30.328235
2020-03-31T11:15:36
2020-03-31T11:15:36
230,199,388
2
0
null
false
2020-03-02T05:15:37
2019-12-26T05:16:50
2020-03-02T04:06:14
2020-03-02T05:15:37
229
1
0
0
Python
false
false
from django.test import TestCase from django.core.files.uploadedfile import SimpleUploadedFile import os import re from django.conf import settings from ...models import LandingBanner from ..helpers import generate_random_string, generate_random_number, check_file_exists_on_model, check_filename_is_same_on_model impor...
UTF-8
Python
false
false
2,075
py
34
test_landing_model.py
29
0.686265
0.679518
0
50
40.46
155
kauecdev/-ifpi-ads-algoritmos2020
9,457,517,993,852
b125f888c188d129f4cedb2282877eb3c4e74b68
50b8b7e80a12deb854117b640f6b5875d52d0492
/Fabio03b/Q13_F3b_maior_n_termos.py
10927ca85f19cca14cc7b58f518a8d9d0e73b54b
[]
no_license
https://github.com/kauecdev/-ifpi-ads-algoritmos2020
09a851d927ecb6f83857f9abdfdaa3add7e250d4
039ff61b8560cb9e6139406767c09e8ec2e2ffe1
refs/heads/master
2021-02-16T07:10:21.208317
2020-10-24T18:27:37
2020-10-24T18:27:37
244,979,191
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def main(): n = int(input("Digite a quantidade de termos: ")) # Método com while # contador = 0 # maior = 0 # while contador < n: # n1 = int(input("Digite o valor do termo: ")) # if (n1 > maior): # maior = n1 # contador += 1 # Método com for mai...
UTF-8
Python
false
false
489
py
146
Q13_F3b_maior_n_termos.py
145
0.468172
0.445585
0
30
15.166667
54
ambonip/Catalogo_Prestazioni
8,632,884,272,940
fd0ceeb3eb0a75f7df878ba5ee6f0e787ef6bc55
dca9d5c1fc9778c4524da39ec0de51470bef3dce
/models/menu.py
fad8f8b7ce35aab3334e884feefb7bd21b70a3fe
[ "LicenseRef-scancode-public-domain" ]
permissive
https://github.com/ambonip/Catalogo_Prestazioni
2e9e8b792150801ad8e1c898f03a2607db9508a5
689589cdac3ed011d5b6e21bed9b67ad3a4d492f
refs/heads/master
2020-07-29T04:58:53.409173
2017-04-27T09:54:06
2017-04-27T09:54:06
65,996,556
0
0
null
false
2017-04-27T07:20:03
2016-08-18T12:47:00
2016-08-19T09:12:03
2017-04-27T07:20:03
2,888
0
0
0
Python
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations ######################################################################### ## Customize your APP title, subtitle and menus here ######################################################################### #response.log...
UTF-8
Python
false
false
3,159
py
67
menu.py
5
0.577045
0.574826
0
63
49.063492
115
chenshanghao/LeetCode_learning
13,993,003,485,272
efdc65b98fce1ba07220a9b38907b54b40a41919
5982a9c9c9cb682ec9732f9eeb438b62c61f2e99
/Problem_5/learning_solution_3.py
f06adeba1a554d829ffd172841449a0988bee6ff
[]
no_license
https://github.com/chenshanghao/LeetCode_learning
6fdf98473be8f2240dd86d5586bbd1bbb95d6b0c
acf2395f3b946054009d4543f2a13e83402323d3
refs/heads/master
2021-10-23T05:23:01.970535
2019-03-15T05:08:54
2019-03-15T05:08:54
114,688,902
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def __init__(self): self.logestSize = 0 self.longestSrart= 0 def longestPalindrome(self, s): for index, value in enumerate(s): self.checkEvenPalindrome(s, index) self.checkOddPalindrome(s, index) return s[self.longestSrart: self.l...
UTF-8
Python
false
false
1,112
py
262
learning_solution_3.py
223
0.537273
0.521818
0
36
29.222222
92
mousyball/pytorch-trainer
2,894,807,998,606
28daaee595ea529801f5e00448a937622d8c52ba
592bf29b079177132cd88892a057e54bf47556cd
/networks/classification/networks/base.py
d413bbd8b6b35a9a38b1cb9b19ec3e3521f38ae8
[]
no_license
https://github.com/mousyball/pytorch-trainer
e3428469495a99c1b32e038b9bc44dc68c009b98
f2b0fa3a4543cee83eda7f9731942f76589794c1
refs/heads/master
2023-05-13T17:55:23.944058
2021-06-07T13:30:03
2021-06-07T13:30:03
329,233,204
5
1
null
false
2021-06-07T13:30:04
2021-01-13T07:52:58
2021-02-21T08:10:48
2021-06-07T13:30:04
259
2
1
4
null
false
false
import torch.nn as nn from ...loss import build_loss from ..builder import build_backbone class INetwork(nn.Module): def __init__(self): super(INetwork, self).__init__() def _construct_network(self, cfg): """Construct network from builder.""" raise NotImplementedError() def free...
UTF-8
Python
false
false
4,229
py
87
base.py
67
0.550485
0.547647
0
129
31.782946
105
tainaml/p_gs
10,823,317,607,518
b58135e173ad06dc016e5e17a6bf0f7a65a9103d
f5122242ceb72699f137d720a4c2087ab88ce215
/apps/account/account_exceptions.py
3bddd2c213790735c4f65ba03cf1215b76135d6a
[]
no_license
https://github.com/tainaml/p_gs
009eae484152a213955da86d459314b7be0c4f69
0201a81c4ad5408bc9a2a585b9cb870dcdfe11d1
refs/heads/master
2023-01-20T05:00:31.052509
2018-08-15T18:49:52
2018-08-15T18:49:52
144,891,416
0
0
null
false
2023-01-12T09:29:19
2018-08-15T18:51:52
2018-08-15T18:54:33
2023-01-12T09:29:17
51,564
0
0
26
JavaScript
false
false
__author__ = 'phillip' class AccountException(Exception): pass class AccountDoesNotExistException(AccountException): pass class TokenIsNoLongerValidException(AccountException): pass class TokenIsNotActiveException(AccountException): pass class TokenDoesNotExistException(AccountException): pass
UTF-8
Python
false
false
319
py
981
account_exceptions.py
521
0.799373
0.799373
0
16
19
54
MatheusFreitas25/Python-Studies
14,800,457,315,085
acf4ea0a5a78b2bfa7338137a6c2843359f85c15
1d6d4716fea71753f077de76e27301f3d7bdb040
/General_exercises/15_Lista_MenoresQue.py
131198d1de6d35b619328f700db3d2eeaec2a894
[]
no_license
https://github.com/MatheusFreitas25/Python-Studies
b219e3b8deb54beff1c190ef43be3788a9aa7806
5483a8ec4cd877fa3426257fd2115ff9204b1a27
refs/heads/master
2022-03-14T04:02:07.185398
2022-02-03T13:32:06
2022-02-03T13:32:06
225,725,786
0
0
null
false
2022-02-03T13:32:06
2019-12-03T22:02:46
2021-11-05T04:42:31
2022-02-03T13:32:06
30,250
0
0
0
Python
false
false
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] c = int(input("Os numeros devem ser menores do que : ")) b=[] for elem in a: if elem < c: b.append(elem) print(elem) print(b)
UTF-8
Python
false
false
189
py
58
15_Lista_MenoresQue.py
57
0.52381
0.439153
0
9
20.111111
56
minxiyang/hmumu-coffea
14,663,018,385,774
e22f034619c2015e2b07f0ff2de1f842f0eae1ce
772eb33ca463552fc46c79a18d82ed34ab1712a0
/slurm_cluster_prep.py
d3ee2e4eeb5ed758499e14c2f510ab4af6a760dd
[]
no_license
https://github.com/minxiyang/hmumu-coffea
662ee3631309e0afdf5d11e9bdcd6a5150e0ea02
8888b2bc94e3acf930001d609c425b5daa3521ef
refs/heads/master
2023-05-11T15:16:01.323083
2021-05-17T04:30:04
2021-05-17T04:30:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest import asyncio import dask from dask.distributed import Client from dask.distributed import Scheduler, Worker from dask_jobqueue import SLURMCluster from coffea.processor.executor import dask_executor from python.dimuon_processor_pandas import DimuonProcessor dask.config.set({"temporary-directory": "/depo...
UTF-8
Python
false
false
875
py
15
slurm_cluster_prep.py
12
0.648
0.638857
0
26
32.653846
69
DMCristallo/search
5,437,428,612,535
5ee0baa4b0ac2160042112f684e66de666ea2067
2266792c24c9741df5736157c2b1cdd3f430714e
/avail.py
4d65c5f8fa8393be3531f9e54999146959f95ccd
[]
no_license
https://github.com/DMCristallo/search
cda0a9e3a56a711838c2a63ff1586137a22b725c
c161dac2571a4e3ab7ed4ec77608b73df4cc1d89
refs/heads/master
2020-12-24T14:53:19.679230
2015-11-03T01:16:45
2015-11-03T01:16:45
41,462,192
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'someone on the internet' import ctypes import itertools import os import platform import string def get_available_drives(): if 'Windows' not in platform.system(): return [] drive_bitmask = ctypes.cdll.kernel32.GetLogicalDrives() return list(itertools.compress(string.ascii_uppercase...
UTF-8
Python
false
false
397
py
9
avail.py
8
0.680101
0.667506
0
16
23.875
75
Khateebxtreme/IOT_SKETCHES-RASPBERRY_PI
11,991,548,692,920
3b6e8ba60cc57872107d3dd00c5be3f76c24b20b
f5c3a0719cc1a1c17bca555c2afb23db60a87255
/Fundamentals/01 - BLINK_LED_CONTROL/CODE.py
1d50232b5477c493b6d2971d85e19ddbed603ccd
[]
no_license
https://github.com/Khateebxtreme/IOT_SKETCHES-RASPBERRY_PI
42632bd918df780d5b93bc49c7636e69c060f1a4
3e15ad6b613b38f43b8fcad8cf5973533b9843c2
refs/heads/master
2022-12-14T15:17:08.616642
2020-08-22T23:31:27
2020-08-22T23:31:27
285,519,625
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(8,GPIO.IN) GPIO.setup(10,GPIO.OUT) while True: if GPIO.input(8)==True: GPIO.output(10,True) else: GPIO.output(10,True) time.sleep(1) GPIO.output(10,False) time.sleep(1)
UTF-8
Python
false
false
301
py
4
CODE.py
1
0.601329
0.561462
0
13
21.230769
29