hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
โŒ€
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
โŒ€
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
โŒ€
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
โŒ€
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
โŒ€
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
โŒ€
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
โŒ€
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
โŒ€
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
โŒ€
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7762969e468e630cab9912c9e39aa8105f563ce4
327
py
Python
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name='a', version='0.1.0', packages=['a', 'a.security'], install_requires=['WebOb>=1.6.1'], author = "albert.zhang", author_email = "longbao.zhang@gmail.com", description = "This is a very light web framework", license = "Apache License 2...
27.25
57
0.611621
0
0
0
0
0
0
0
0
134
0.409786
7762eadf98a84b5ce9283433a79e9899783c2908
4,833
py
Python
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
print('====================================================================================================') print('== ๋ฌธ์ œ 27. ์•„๋ž˜์˜ ์‹์„ ํŒŒ์ด์ฌ์œผ๋กœ ๊ตฌํ˜„ํ•˜์‹œ์˜ค.') print('====================================================================================================\n') import numpy as np x = np.array([0, 1]) w = np.array([0.5, ...
34.276596
111
0.354438
0
0
0
0
0
0
0
0
2,444
0.47931
77639b8b9fd4e3c9cd0c8b422d0c68a3e323eb36
239
py
Python
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA import numpy size = input().split(" ") n = int(size[0]) l = [] for i in range(0, n): a = input().split(" ") l.append(a) arr = numpy.array(l, int) trans = arr.transpose() print(trans) print(arr.flatten())
15.933333
26
0.606695
0
0
0
0
0
0
0
0
30
0.125523
7763bc166d4d7ffcd7c15717edaf06b9a61c5b0b
1,564
py
Python
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
from flask import Flask, app, jsonify, request, redirect, make_response from leer_modelo import predecir ALLOWED = ['png','jpg', 'jpeg', 'gif'] def evaluar_extension_archivo(filename): tiene_punto = "." in filename if tiene_punto: extension_archivo = filename.split(".", 1)[1].lower() if extensi...
27.928571
71
0.642583
0
0
0
0
680
0.434783
0
0
468
0.299233
77640065b3e76d426adcd9f96234a785912b54fb
1,220
py
Python
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
null
null
null
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
1
2019-05-26T04:58:17.000Z
2019-05-30T15:30:51.000Z
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
null
null
null
from interface import implements, Interface from keras.models import load_model class IDetection(Interface): def detect_fake_news(self, type, news): pass class Detection(implements(IDetection)): def detect_fake_news(self, type, news): # load detection model detection_model = self...
25.957447
79
0.64918
1,133
0.928689
0
0
0
0
0
0
174
0.142623
77650de3eab4c78cafaa8bab4bb47104bd26bb30
2,926
py
Python
Spark-Example-FlightsData/flights_example.py
kiat/met-cs777
405aca20c8db4350a7a0d04607ff05f3c4e97c2f
[ "BSD-3-Clause" ]
32
2020-07-02T00:51:13.000Z
2022-03-31T22:31:30.000Z
Flight-Example/flights_example.py
pvkothapalli/MET-CS777
6825bec99581b04f9bcc328cdaa698faa2af7313
[ "BSD-3-Clause" ]
2
2021-02-17T00:42:23.000Z
2021-02-18T17:28:38.000Z
Flight-Example/flights_example.py
pvkothapalli/MET-CS777
6825bec99581b04f9bcc328cdaa698faa2af7313
[ "BSD-3-Clause" ]
47
2020-07-04T15:29:15.000Z
2022-03-25T05:08:17.000Z
# https://s3.amazonaws.com/metcs777/flights.csv.bz2 # s3n://metcs777/flights.csv.bz2 # lines = sc.textFile("file:///home/kia/Data/Collected-Datasets/flight-delays/flight-delays/flights.csv") lines = sc.textFile("s3://metcs777/flights.csv.bz2") # Removing the Header Line from CSV file linesHeader = lines.first() he...
31.12766
400
0.775803
0
0
0
0
0
0
0
0
2,287
0.781613
77678f260d8155b4fbe2ca23186e87d0ca0dde81
1,510
py
Python
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
2
2016-05-07T10:09:29.000Z
2016-06-10T05:36:20.000Z
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
null
null
null
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='rima', version=version, description="Minimalist Python REST API Framework", long_description="""\ Minimalist Python REST API Framework """, classifiers=[ "Development Status :: 1 - Planning",...
34.318182
82
0.575497
0
0
0
0
0
0
0
0
891
0.590066
7767ac0e64dfc02b7c55003a7ff7dca82f05c66d
10,438
py
Python
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
2
2021-01-13T18:37:20.000Z
2021-01-16T02:17:38.000Z
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
16
2021-01-14T20:21:13.000Z
2021-01-29T22:23:13.000Z
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
null
null
null
import csv import io import json from pathlib import Path from typing import Any, Iterable, List, Mapping, MutableMapping, Set, Tuple import click from sqlalchemy import and_ from sqlalchemy.orm import aliased, joinedload, with_polymorphic from aspen.config.config import Config from aspen.database.connection import (...
35.144781
91
0.627132
0
0
0
0
4,114
0.394137
0
0
1,887
0.180782
77685ce53cb05d06d03bc4a12c6065a439cae421
485
py
Python
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
import cupy as cp import numpy as np def to_gpu(mat): if not isinstance(mat, cp.ndarray): return cp.asarray(mat, dtype=cp.float32) return mat def dct_dict_1d(n_atoms, size): dct = np.zeros((size, n_atoms)) for k in range(n_atoms): basis = np.cos(np.arange(size) * k * n...
22.045455
62
0.560825
0
0
0
0
0
0
0
0
0
0
7768c92d141b2480a0d707c158a88bcde5139d2f
4,263
py
Python
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
15
2021-10-19T15:00:12.000Z
2022-03-24T22:24:54.000Z
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
13
2021-07-22T21:52:55.000Z
2021-10-07T11:50:10.000Z
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
2
2021-11-12T18:45:12.000Z
2021-12-14T14:57:42.000Z
import numpy as np from yaglm.linalg_utils import euclid_norm def soft_thresh(vec, thresh_vals): """ The soft thresholding operator. Parameters ---------- vec: array-like The values to threshold thresh_vals: float, array-like The thresholding values Output ------- ...
25.076471
172
0.604269
0
0
0
0
0
0
0
0
3,315
0.777621
77692efc43ca99a211134cc384641108b1111a00
902
py
Python
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
n, i, m, g, gg = 0, 0, 0, 0, 0 n = int(input()) if n > 1983: while n > 1983: n -= 60 m = n - 1923 else: while n < 1983: n += 60 m = n - 1983 g = (m // 12) + 1 gg = m % 12 result = '' if g == 1: result = 'ะทะตะปะตะฝะพะน' elif g == 2: result = 'ะบั€ะฐัะฝะพะน' elif g == 3: resul...
15.824561
30
0.473392
0
0
0
0
0
0
0
0
258
0.256207
77694ac8b2dc5a16098243dd7f10b1803ad2cd33
1,961
py
Python
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
#workflow import sys ##python libraries import argparse import logging import logging.config ## ## Internal libraries from service.configuration import Configuration from service.job import Job from model.object import Object from model.connection import ConnectionSettings from model.workflow import * class Program(o...
30.169231
92
0.63743
1,604
0.81795
0
0
0
0
0
0
307
0.156553
776b5a586a307c515edd0602fb6ce773dfcc4ddd
5,969
py
Python
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
13
2015-05-28T23:21:05.000Z
2022-03-20T05:38:20.000Z
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
49
2015-01-04T16:05:34.000Z
2022-03-27T11:35:13.000Z
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
41
2015-01-21T17:16:05.000Z
2022-03-31T06:47:48.000Z
# Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
28.42381
75
0.626906
4,443
0.744346
0
0
0
0
0
0
1,293
0.216619
776c1f07ea108fe03cb9a7205323ee4e16411b3f
10,184
py
Python
terraref/laser3d/laser3d.py
terraref/ply2las
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
1
2018-09-27T05:45:56.000Z
2018-09-27T05:45:56.000Z
terraref/laser3d/laser3d.py
terraref/laser3d
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
3
2018-05-16T19:40:26.000Z
2018-12-14T20:02:53.000Z
terraref/laser3d/laser3d.py
terraref/ply2las
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
1
2018-07-31T13:34:13.000Z
2018-07-31T13:34:13.000Z
import subprocess import numpy import os import laspy from osgeo import gdal from plyfile import PlyData, PlyElement import matplotlib.pyplot as plt #from rpy2.robjects import r, pandas2ri, numpy2ri from terrautils.formats import create_geotiff from terrautils.spatial import scanalyzer_to_mac def ply_to_array(inp, m...
34.174497
129
0.600255
0
0
0
0
0
0
0
0
3,434
0.337196
776c5fd7e0466ea12b425b1c163bacd2680eebf7
1,721
py
Python
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
468
2018-11-11T15:40:12.000Z
2022-03-30T13:21:48.000Z
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
43
2018-11-10T20:03:49.000Z
2020-10-20T16:39:03.000Z
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
118
2018-11-12T19:11:42.000Z
2022-03-23T18:25:29.000Z
import random from psycopg2 import connect from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT def random_database(): """ Creates a random database in the testing Postgres instance and returns the name of the database. """ # Setup connection with default credentials for testing. with c...
40.97619
101
0.607786
0
0
0
0
0
0
0
0
805
0.467751
776e3a1ebfc475a08f1ca5cdf7ac7816f0fc1b69
12,441
py
Python
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ models.py Created by mmiyaji on 2016-07-11. Copyright (c) 2016 ruhenheim.org. All rights reserved. """ from __future__ import unicode_literals import datetime, time, uuid from django.db import models from django.contrib.auth import models as auth_models class ServerAttri...
33.991803
128
0.63982
12,203
0.974603
0
0
5,915
0.472406
0
0
605
0.048319
776f426a84e27e37f4447fb48972e95dce547d74
162
py
Python
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
import matplotlib.pyplot as p from scipy import eye import time for x in xrange(3, 7): p.imshow(eye(x)) p.show(block=False) time.sleep(3) print x
18
29
0.67284
0
0
0
0
0
0
0
0
0
0
77724149191f0e80307f99dd8a0656415ea312e7
559
py
Python
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from twython import Twython import random APP_KEY = 'APP KEY' # Customer Key here APP_SECRET = 'APP SECRET' # Customer secret here OAUTH_TOKEN = 'OAUTH TOKEN' # Access Token here OAUTH_TOKEN_SECRET = 'OAUTH TOKEN SECRET' # Access Token Secret here jobsnumber = random.randint(50, 100) twitt...
39.928571
172
0.763864
0
0
0
0
0
0
0
0
282
0.504472
77725779c0f591f17fb4ed4c63a92e76bed4c7ed
614
py
Python
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
1
2019-08-21T07:43:08.000Z
2019-08-21T07:43:08.000Z
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
530
2019-06-11T03:06:52.000Z
2022-03-31T22:53:11.000Z
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
null
null
null
import arrow import attr from attr import attrs, attrib @attrs class SkillPlan(object): id = attrib() attributes = attrib() links = attrib() @attrs class SkillPlanAttribute(object): name = attrib() description = attrib() visibility = attrib() sections = attrib(default=None) created_at = attr.ib(converter=...
16.594595
82
0.732899
516
0.840391
0
0
544
0.885993
0
0
0
0
77729e809d9ad4a191008903e41b3ead3c5eac97
273
py
Python
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
1
2021-09-04T05:34:51.000Z
2021-09-04T05:34:51.000Z
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
import numpy as np import base64 import pickle def img2str(image): imdata = pickle.dumps(image) return base64.b64encode(imdata).decode('ascii') def str2img(string): image = base64.b64decode(string) image = pickle.loads(image) return np.array(image)
18.2
51
0.714286
0
0
0
0
0
0
0
0
7
0.025641
777390888167fc8811e643a135d220bdf95baecc
3,457
py
Python
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
import os import click from git import Repo from absl import logging from datetime import datetime from collections import namedtuple from typing import Tuple, Optional from . import wandb_utils logging.set_verbosity(logging.INFO) ExperimentConfig = namedtuple( "ExperimentConfig", ( "project_name", ...
29.29661
78
0.676598
0
0
0
0
0
0
0
0
862
0.249349
77751b2395c16d4aa8161f9896e4bd62cf296098
1,045
py
Python
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
'''ๆœ€ๅคงๅ›žๆ’ค่ฎก็ฎ—''' import numpy as np import pandas as pd import datetime #้šๆœบ่ถ‹ๅŠฟ+ๆŒ็ปญไธŠๆถจ็š„่ถ‹ๅŠฟ price = 2 + np.random.randn(21) + np.linspace(0,2,21) #่ฎพ็ฝฎๆ—ฅๆœŸ date = [datetime.date(2020,12,x) for x in range(2,23)] MDD_df = pd.DataFrame({'date':date,'price':price}) #็ฎ€ๅ•ๆ”ถ็›Š็އๆฒกๅ‡1ๆ˜ฏไธบไบ†ๆ–นไพฟ่ฟžไน˜ MDD_df['return+1'] = MDD_df['price']/MDD_df['price'].s...
33.709677
85
0.687081
0
0
0
0
0
0
0
0
567
0.463614
77752e8a5315061629304e6dc5ff4ce54a7a1a75
1,980
py
Python
src/MAT/bin/MATManagePluginDirs_tpl.py
wake-forest-ctsi/mist-toolkit
857e91976fa3b75ef2cad08612fa79cf2f743615
[ "BSD-3-Clause" ]
2
2015-10-28T17:58:31.000Z
2021-10-12T10:34:39.000Z
scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
null
null
null
scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
9
2016-12-17T22:50:37.000Z
2020-09-26T01:08:06.000Z
#!MF_PYTHONBIN # Copyright (C) 2007 - 2009 The MITRE Corporation. See the toplevel # file LICENSE for license terms. import os, sys, glob, shutil MAT_PKG_PYLIB = "MF_MAT_PKG_PYLIB" sys.path.insert(0, MAT_PKG_PYLIB) MAT_PKG_HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) import MAT def Usage():...
29.117647
93
0.569697
0
0
0
0
0
0
0
0
397
0.200505
777555e78b559e5e4b478451278bf7a1b55935a1
1,071
py
Python
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Operation(ABC): @abstractmethod def calculate(self, number1: float, number2: float) -> float: pass class Sum(Operation): def calculate(self, number1: float, number2: float) -> float: return number1 + number2 class Rest(Operation): def cal...
23.282609
65
0.68254
767
0.716153
0
0
254
0.237162
0
0
10
0.009337
7775682dcc6dc253e667940b371c684ba9d3f2b3
1,295
py
Python
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
null
null
null
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
null
null
null
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
1
2021-01-25T19:06:17.000Z
2021-01-25T19:06:17.000Z
from Kiraro import bot from discord.ext import commands from discord.errors import * from discord.utils import get from Kiraro.Kiraro_Voice import idk, queue import discord import gtts queue_list = {} @bot.command() async def say(ctx, *, word): boolean, voice = await idk(ctx) if boolean: tts = gtts.gT...
33.205128
119
0.658687
0
0
0
0
1,089
0.840927
1,063
0.820849
220
0.169884
7777e8520a12559d29d6241cbcb36e71e0940302
7,056
py
Python
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
2
2020-09-14T02:15:17.000Z
2021-09-28T07:08:32.000Z
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
null
null
null
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
1
2022-01-04T06:55:54.000Z
2022-01-04T06:55:54.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import tensorflow as tf tf.logging.set_verbosity(tf.logging.INFO) ROOT_PATH = '/tmp/census_data' TRAIN_PATH = '/tmp/census_data/adult.data' EVAL_PATH =...
40.090909
118
0.639172
0
0
0
0
0
0
0
0
2,106
0.293888
7777fe549507b7986267faec6ed4cc83a2313604
288
py
Python
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros numero = float(input('Digite o nรบmero: ')) print('O valor de {} em centรญmetros รฉ: {}'.format(numero, numero * 100)) print('O valor de {} em milรญmetros รฉ: {}'.format(numero, numero * 1000))
48
97
0.711806
0
0
0
0
0
0
0
0
192
0.65529
7778e854b1769ba9428d3a4d3170d1002d65dedd
2,385
py
Python
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by "Thieu" at 10:26, 02/03/2022 ----------% # Email: nguyenthieu2102@gmail.com % # Github: https://github.com/thieu1995 % ...
36.692308
137
0.6
0
0
0
0
0
0
0
0
845
0.354298
77798b6704167fd268a08dbc9c3f502cb2811a76
9,876
py
Python
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
import random import math import time import copy allstudents = [] class Student: def __init__(self,name,friends,robot=False): self.name = name self.__name__ = name self.robot = robot #self.friends = friends self.friends = friends self.currenttable = 0 allstudents.append(self) #########################...
37.984615
163
0.714662
225
0.022783
0
0
0
0
0
0
4,452
0.45079
777b5e5839004ea6dfd6b25eec2bff8b3f5e00ac
1,045
py
Python
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
1
2019-12-10T14:59:12.000Z
2019-12-10T14:59:12.000Z
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
null
null
null
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
1
2020-01-01T12:24:51.000Z
2020-01-01T12:24:51.000Z
import os import sys import time PATH = os.path.join(os.getcwd(), '..') sys.path.append(PATH) import cv2 import numpy as np import matplotlib.pyplot as plt from obj_avoidance import run_avoidance # for the reference label_dict = {1: 'wall', 2: 'floor', 3: 'plant', 4: 'ceiling', 5: 'furniture', 6: 'person'...
30.735294
117
0.683254
0
0
0
0
0
0
0
0
221
0.211483
777c099bcd6dbabf7bd899cf4da7520acddaee95
1,060
py
Python
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
null
null
null
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
null
null
null
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
3
2020-10-04T09:37:21.000Z
2022-02-13T08:57:35.000Z
from datetime import timedelta import pytest from fastapi import HTTPException from pydantic import SecretStr from app.core.security import ( create_access_token, get_password_hash, get_user_id_from_token, verify_password, ) pytestmark = pytest.mark.asyncio async def test_access_token(): user_i...
23.555556
66
0.737736
0
0
0
0
0
0
308
0.290566
50
0.04717
777c87854da8e0921a6611366e0397f0b9cee628
5,199
py
Python
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
1
2021-05-12T12:49:15.000Z
2021-05-12T12:49:15.000Z
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
null
null
null
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
1
2021-11-21T08:12:19.000Z
2021-11-21T08:12:19.000Z
from __future__ import absolute_import, division, print_function import logging import select import subprocess import fire import logzero import numpy as np from logzero import logger import itertools import scipy import scipy.optimize import cPickle as pickle logzero.loglevel(logging.DEBUG) def group(lst, n): ...
32.698113
146
0.553568
4,120
0.79246
0
0
0
0
0
0
850
0.163493
777d83516dc3cad54a0ce07bf96a195097e68974
1,519
py
Python
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
17
2015-12-10T02:09:07.000Z
2018-06-25T06:46:59.000Z
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
6
2015-12-09T08:09:52.000Z
2016-01-11T06:53:10.000Z
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
9
2015-12-10T09:04:00.000Z
2019-07-12T13:33:25.000Z
import logging from django.conf import settings logger = logging.getLogger(__name__) class VerifySettings(object): __settings_name__ = 'MAX_CABINET_ROWS_NUM' __error_msg_dict__ = {'no_attribute': ("MAX_CABINET_ROWS_NUM must be specified in " "your Django settings ...
33.755556
92
0.631995
1,426
0.938776
0
0
131
0.086241
0
0
248
0.163265
777dd8bf196474b662d087b28f11dea01ef85e30
756
py
Python
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
1
2019-06-05T11:16:08.000Z
2019-06-05T11:16:08.000Z
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
def check_type(text): try: if float(text) == int(float(text)): return {'Age': int(float(text))} elif float(text) != int(float(text)): return {'Salary': float(text)} except ValueError: return {'Position': text} employees_data = [] while True: in_line = input...
23.625
82
0.589947
0
0
0
0
0
0
0
0
107
0.141534
777ef7869d9e99660684cbd42f3a06660212884f
905
py
Python
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Graphcore Ltd. All rights reserved. # This script is run by the release agent to create a release of PopTorch def install_release(release_utils, release_id, snapshot_id, version_str): # Tag must contain the string 'poptorch' to keep it unique. tag = "{}-poptorch".format(version_str) ...
34.807692
73
0.707182
0
0
0
0
0
0
0
0
506
0.559116
778181d3874c190067f24ee03aa82a2d0d031e77
1,667
py
Python
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
null
null
null
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
1
2021-06-01T21:52:12.000Z
2021-06-01T21:52:12.000Z
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """pytest configuration and top-level fixtures.""" __author__ = "Chris Lunsford" __author_email__ = "chrlunsf@cisco.com" __copyright__ = "Copyright (c) 2016-2018 Cisco and/or its affiliates." __license__ = "MIT" import os import string import tempfile import pytest from tes...
21.101266
80
0.675465
0
0
436
0.261548
522
0.313137
0
0
605
0.362927
77823bcef33f848f86c9133fcce12df4adef4d86
27
py
Python
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
from .hm_duration import *
13.5
26
0.777778
0
0
0
0
0
0
0
0
0
0
778378ad2cae07b1eae7fe45253c50b387c8c03b
256
py
Python
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
null
null
null
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
1
2020-05-09T15:48:41.000Z
2020-05-21T20:14:21.000Z
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
null
null
null
from animations.color import base class ListGenerator(base.IndexColorGeneration): def __init__(self, colors): super().__init__(len(colors)) self.colors = colors def generate_index(self, index): return self.colors[index]
21.333333
47
0.691406
219
0.855469
0
0
0
0
0
0
0
0
77842d9f499b49e55088705f1121160416001ae6
1,550
py
Python
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as Func import torch.nn.init as init from nac import NeuralAccumulatorCell from torch.nn.parameter import Parameter class NeuralArithmeticLogicCell(nn.Module): def __init__(self, in_dim, out_dim): super().__init__() self.in_dim = in_dim ...
28.703704
63
0.740645
1,354
0.873548
0
0
0
0
0
0
6
0.003871
7784ba485cef29826c9b6771e291504192862a3d
746
py
Python
servers/python/coweb/bot/__init__.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Defines classes for coweb service bots. Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # std lib import json import sys # coweb from .reqack import ReqAckDelegate def run(botClass): ''' Looks on the command line for informati...
26.642857
79
0.676944
0
0
0
0
0
0
0
0
473
0.634048
778a30afec7647b6e7e9030506f3d19a33890f34
4,097
py
Python
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
8
2018-06-21T03:20:26.000Z
2021-10-15T03:53:49.000Z
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
12
2018-05-21T17:26:59.000Z
2018-06-14T02:48:21.000Z
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
3
2018-08-30T22:37:20.000Z
2019-03-31T18:29:52.000Z
import logging, sys, XenAPI, os, time sys.path.insert(0, '../../') def init_session(uname, pwd, local=True): # TODO: enable the init of a possibly remote session if local: session=XenAPI.xapi_local() session.xenapi.login_with_password(uname, pwd) else: log('currently not support remote connection') return s...
25.93038
77
0.705882
0
0
0
0
0
0
0
0
791
0.193068
778afd4b3ea9feac924d9ce4230a66a795531f22
682
py
Python
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
2
2021-06-02T16:29:16.000Z
2021-06-02T16:29:18.000Z
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
null
null
null
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
null
null
null
#example pagination parameter having total_pages from backend class PageNumberPaginationWithCount(pagination.PageNumberPagination): def get_paginated_response(self, data): response = super(PageNumberPaginationWithCount, self).get_paginated_response(data) response.data['total_pages'] = self.page.p...
26.230769
90
0.774194
480
0.703812
0
0
0
0
0
0
140
0.205279
778cfa1ba927b0196782d749a97b1b4c8af54073
5,170
py
Python
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
41
2017-07-14T03:39:06.000Z
2022-03-20T05:36:33.000Z
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
26
2017-08-08T22:13:44.000Z
2021-08-18T00:14:54.000Z
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
8
2017-08-03T17:15:39.000Z
2021-09-30T21:57:50.000Z
import pandas as pd from vivarium.framework.engine import Builder from vivarium.framework.population import SimulantData from vivarium.framework.event import Event class BasePopulation: """Generates a base population with a uniform distribution of age and sex. Attributes ---------- configuration_def...
39.769231
111
0.623985
5,002
0.967505
0
0
0
0
0
0
2,460
0.475822
778df52cd98d358aeeaa3cd2f864bdb6647f52ff
5,390
py
Python
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
null
null
null
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
null
null
null
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
1
2021-07-21T02:46:58.000Z
2021-07-21T02:46:58.000Z
import logging from threading import Timer from tencentcloud.ssm.v20190923 import models, ssm_client from tencentcloud.common.profile import client_profile from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException class Error: """่‡ชๅฎšไน‰้”™...
29.779006
101
0.625974
2,336
0.402898
0
0
0
0
0
0
2,373
0.409279
778e86e22df74cae729a35ebbd9cf3422b98571c
5,159
py
Python
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
"""Test cases for lane.py.""" import os import unittest from typing import Dict import numpy as np from .lane import ( eval_lane_per_threshold, evaluate_lane_marking, get_foreground, get_lane_class, sub_task_funcs, ) class TestGetLaneClass(unittest.TestCase): """Test cases for the lane speci...
39.381679
78
0.611165
4,862
0.942431
0
0
0
0
0
0
1,321
0.256057
778eae6f766166711785d06fe1c129980226b180
6,178
py
Python
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
5
2019-09-10T09:57:59.000Z
2021-08-17T18:10:21.000Z
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
5
2021-03-19T03:32:34.000Z
2022-03-11T23:58:49.000Z
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw, ImageFont from urllib.request import Request, urlopen from urllib.parse import quote, unquote import json import pytz import os from calendarhelper import getCaldavEvents, calendarEvent from datetime import datetime, date, timedelta, tzinfo, timezone from tzlocal import get_localzone f...
37.442424
148
0.683555
0
0
0
0
0
0
0
0
1,594
0.257929
778f222399a540e39a58b6e8b7d53a1fe0cdcdb2
139,019
py
Python
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZXR10-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:48:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
131.896584
12,577
0.780598
22,678
0.163129
0
0
0
0
0
0
34,885
0.250937
778f781ff9cc65cbd0f42226b7afbf7f0c69cc2b
75
py
Python
oj/custom_settings.example.py
gogiluv/testrepo
55e4a905b70a460e74b8116a130b720821eaf2ce
[ "MIT" ]
1
2018-01-28T07:48:13.000Z
2018-01-28T07:48:13.000Z
oj/custom_settings.example.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
oj/custom_settings.example.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
1
2020-09-29T14:21:27.000Z
2020-09-29T14:21:27.000Z
# please set your own SECRET_KEY to a long random string # SECRET_KEY = ""
25
56
0.733333
0
0
0
0
0
0
0
0
73
0.973333
778fbcef49997f0ef563feb1bdf7e1bde1261eac
62,860
py
Python
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.59748
134
0.64071
62,447
0.99343
0
0
59,055
0.939469
0
0
42,807
0.68099
77918e9deea502e2876228cdb462978e97466087
2,570
py
Python
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
86
2016-02-29T03:24:28.000Z
2022-03-29T09:30:21.000Z
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
135
2016-04-12T13:31:28.000Z
2022-03-29T02:18:51.000Z
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
154
2016-04-08T04:11:27.000Z
2022-03-29T21:21:07.000Z
from bingads.v13.bulk.entities import * from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBulkMapping from bingads.v13.internal.bulk.string_table import _S...
39.538462
106
0.731518
2,150
0.836576
0
0
231
0.089883
0
0
558
0.217121
77936e8ca10f6e684602ec0fcab350ddfe22ac60
24,154
py
Python
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
33
2021-09-17T18:32:23.000Z
2022-03-01T21:05:08.000Z
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
5
2021-12-07T04:23:04.000Z
2022-03-15T07:37:13.000Z
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
7
2021-09-16T02:24:02.000Z
2022-01-11T07:48:19.000Z
import json import logging import logging.handlers import os import re import subprocess import types import uuid import librosa import numpy as np import torch from shutil import rmtree from librosa.filters import mel as librosa_mel_fn from scipy.io import wavfile from daft_exprt.symbols import ascii, eos, punctua...
43.599278
139
0.620187
0
0
0
0
0
0
0
0
8,652
0.358202
7794c9a15b5585aa2606eff1839893cdafad353f
4,076
py
Python
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
347
2019-08-29T12:39:02.000Z
2022-03-28T14:55:34.000Z
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
425
2019-08-24T23:27:46.000Z
2022-03-31T20:07:18.000Z
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
109
2019-08-14T22:49:56.000Z
2022-02-24T19:54:42.000Z
# Copyright (c) 2020-2021, NVIDIA CORPORATION from typing import TypeVar, Union import geopandas as gpd import pandas as pd from geopandas.geoseries import GeoSeries as gpGeoSeries import cudf from cuspatial.geometry.geoarrowbuffers import GeoArrowBuffers from cuspatial.geometry.geocolumn import GeoColumn, GeoMeta ...
31.114504
79
0.629539
3,656
0.896958
0
0
1,082
0.265456
0
0
1,587
0.389352
7795432cd6d3090d060937e876a441cb4cc29351
29,824
py
Python
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
null
null
null
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
5
2020-07-10T10:10:06.000Z
2022-03-11T23:41:28.000Z
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from ete3 import Tree import shutil import math import myfunc from colour import Color blue = Color("blue") red = Color("red") from itolapi import Itol from itolapi import ItolExport rundir = os.path.dirname(os.path.realpath(__file__)) usage=""" USAGE: itol_pfamtree.py [-...
37.992357
138
0.638345
0
0
0
0
0
0
0
0
10,812
0.362527
779695a6c206665b577fbc40ca7b7a3eb86e2492
1,665
py
Python
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
"create 2D point set for Howorka model where force shall be evaluated." import numpy as np from itertools import product import math import matplotlib.pyplot as plt import nanopores gauss = np.polynomial.legendre.leggauss nanopores.add_params( h = 0.5, hout = 1., Ry = 10., Rx = 3., ) def points(h,...
25.227273
75
0.596997
0
0
0
0
0
0
0
0
564
0.338739
77986af2fb4a4ca5a35c228e734e2824ebae00e3
248
py
Python
object_oriented_programming/exercise_online_shopping/review.py
jepster/python_advanced_techniques
f4b0e0dda7b66be55f650f9f902e735d3f5a9f64
[ "MIT" ]
null
null
null
object_oriented_programming/exercise_online_shopping/review.py
jepster/python_advanced_techniques
f4b0e0dda7b66be55f650f9f902e735d3f5a9f64
[ "MIT" ]
null
null
null
object_oriented_programming/exercise_online_shopping/review.py
jepster/python_advanced_techniques
f4b0e0dda7b66be55f650f9f902e735d3f5a9f64
[ "MIT" ]
null
null
null
class Review: def __init__(self, content, user, product): self.content = content self.user = user self.product = product def __str__(self): return f"Review of {self.product} by {self.user}: '{self.content}'"
31
75
0.616935
248
1
0
0
0
0
0
0
60
0.241935
77a0fbf28b7a82846992531063e6db757b73b21f
961
py
Python
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
import math """ Class Calculator This class does some simple mathematic operations. """ class Calculator: """Class Calculator""" @staticmethod def addition(a, b): """ addition Takes two numbers and adds them. """ return a + b @staticmethod def subtracti...
16.568966
66
0.5359
868
0.903226
0
0
794
0.826223
0
0
544
0.566077
77a214f5777df7a0c6f55cff48bff29b3f5f4ff6
1,961
py
Python
capture/command_scripts/stream_handler.py
CenturyLink/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
1
2022-03-08T00:38:33.000Z
2022-03-08T00:38:33.000Z
capture/command_scripts/stream_handler.py
aaronlumen/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
null
null
null
capture/command_scripts/stream_handler.py
aaronlumen/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
2
2022-02-11T17:13:48.000Z
2022-03-08T00:36:03.000Z
import subprocess import shlex import re import json class StreamHandler(object): """ A singleton class to handle the stream of dump and return stdout in generator fashion """ __instance = None def __init__(self, dhcp_dump_command="sudo {} -i {}", dum...
36.314815
92
0.562978
1,905
0.971443
1,042
0.531362
0
0
0
0
429
0.218766
77a2496f709dc36f20017daf8f44f502922f1145
4,389
py
Python
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
2
2017-05-16T14:45:27.000Z
2018-03-02T08:50:00.000Z
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
4
2017-08-19T03:46:25.000Z
2019-04-04T14:13:51.000Z
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
1
2020-02-09T17:17:33.000Z
2020-02-09T17:17:33.000Z
# -*- coding: utf8 -*- """ Convert REST JSON dict to DNSRecordBase classes """ import logging log = logging.getLogger(__name__) from datetime import timedelta from .dnsrecords import DNSRecordBase class RecordParser(): """ Base parser class """ def __init__(self, *args, **kwargs): pass ...
33
105
0.621326
4,162
0.94828
0
0
0
0
0
0
345
0.078606
77a4bcb4eb5aca4624577ad893ccf4c83ff54da0
1,388
py
Python
release/stubs.min/System/Security/AccessControl_parts/AuthorizationRuleCollection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Security/AccessControl_parts/AuthorizationRuleCollection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Security/AccessControl_parts/AuthorizationRuleCollection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class AuthorizationRuleCollection(ReadOnlyCollectionBase, ICollection, IEnumerable): """ Represents a collection of System.Security.AccessControl.AuthorizationRule objects. AuthorizationRuleCollection() """ def AddRule(self, rule): """ AddRule(self: AuthorizationRuleCollection,rule: Au...
30.173913
221
0.657781
1,386
0.998559
0
0
0
0
0
0
902
0.649856
77a4ff6d26d09b8ed1fd64033110e651fd78bc73
16,460
py
Python
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
import sys import tkinter as tk import tkinter.font as tkfont import tkinter.filedialog as tkfile import tkinter.messagebox as tkmessage import argparse import ctypes import platform import signal def signal_handler(signal, frame): print("\nForced end\n") sys.exit(0) class Persist(tk.Frame): SUBSIZE = 3 X =...
30.881801
207
0.646355
15,371
0.93384
0
0
627
0.038092
0
0
1,988
0.120778
77a51fcecb6daeb1528498330dad731bde24172c
1,549
py
Python
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
import scipy.io.wavfile as siow import scipy.signal as ssr import matplotlib.pyplot as plt import numpy as np import math def groupNumpy(to_group_array, interval, debug=True): ''' Breaks numpy array into an array of arrays. Where each array is <interval> long. Inputs: to_group_array - array we wish to brea...
28.163636
120
0.712718
0
0
0
0
0
0
0
0
867
0.559716
77a564e8a33b0b8bdb5861341a41f636b8f577fb
389
py
Python
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
1
2022-01-07T03:22:19.000Z
2022-01-07T03:22:19.000Z
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
null
null
null
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
null
null
null
from binding import BindableProperty class A: x = BindableProperty() def __init__(self, x): self.x = x def bind_x_to(self, target): self.x.bind_to(target, nesting=1) class B: y = BindableProperty() def __init__(self, y): self.y = y def test_nesting(): a = A(1)...
12.966667
41
0.562982
245
0.62982
0
0
0
0
0
0
0
0
77a746913532d4c25ca26f69e46343bc6271ae0e
790
py
Python
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
import os import sys import random import math from time import * import decimal print('Minecraft Resource Calculator') print('Enter the individual items and the calculator will') print('tell you how many chest or stacks it is!') print('*Only works for items that stack up to 64*') sleep(1) while True: ...
25.483871
60
0.616456
0
0
0
0
0
0
0
0
298
0.377215
77abe08317bc71eea3c52df6cb5e00aa0db46e67
8,183
py
Python
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from spaceone.api.identity.v1 import domain_owner_pb2 as spaceone_dot_api_dot_identit...
49
135
0.70121
6,022
0.735916
0
0
2,956
0.361237
0
0
1,330
0.162532
77ac836929fce76c6241d61d0546b8b5bdacebd5
10,283
py
Python
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
24
2020-12-07T10:22:40.000Z
2022-03-31T09:24:13.000Z
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
15
2021-03-22T04:52:57.000Z
2022-01-01T18:32:31.000Z
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
8
2021-03-04T05:09:42.000Z
2022-01-25T12:59:19.000Z
import json import os from udpipe import Model from conllu import parse from collections import OrderedDict model_map = { 'en': 'udpipe/english-ewt-ud-2.5-191206.udpipe', 'zh': 'udpipe/chinese-gsd-ud-2.5-191206.udpipe', 'ar': 'udpipe/arabic-padt-ud-2.5-191206.udpipe' } def find_span(offsets, begin_offset...
36.207746
99
0.550812
0
0
0
0
0
0
0
0
2,297
0.223378
77ae2c52823c3ed666b8da7d385a9528b00e5196
4,034
py
Python
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
""" Module to distribute the S3 download over a spark cluster Useful when the data is highly partitioned and unable to be loaded by standard methods Results end up in a table Usage: ``` from parallel_fetch import DbricksParallelFetch # define the aws_bucket and output_dir for the s3_fetch to...
42.020833
112
0.595439
3,171
0.786068
0
0
3,139
0.778136
0
0
1,790
0.443728
77af594f90cdfff28c32483019a29f1ca17a171f
621
py
Python
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
def merge(left, right): """Merge sort merging function.""" merged_array=[] while left or right: if not left: merged_array.append(right.pop()) elif (not right) or left[-1] > right[-1]: merged_array.append(left.pop()) else: merged_array.append(right.pop()) merged_array.reverse() return merged_array d...
25.875
51
0.690821
0
0
0
0
0
0
0
0
136
0.219002
77af69141958979d91a8946a1f5ae3a3eb8f9bf0
2,874
py
Python
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import urllib.request as urllib2 import re import pickle import logging import ssl import urllib.parse import base64 from datetime import datetime,timedelta from time import sleep import time import os import discord from dotenv import load_dotenv import requests #i...
33.418605
199
0.707376
0
0
0
0
728
0.253305
648
0.22547
894
0.311065
77b07935b55d5c70675838e025530126172cd7e9
114
py
Python
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
3
2021-09-05T16:50:06.000Z
2021-11-08T08:56:51.000Z
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
null
null
null
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
null
null
null
print("Hello, world") def func(): pass while True: txt = input('Digite um valor: ') print(eval(txt))
14.25
36
0.596491
0
0
0
0
0
0
0
0
33
0.289474
77b13a9d54ea4e9754f97111a15aac0fd3b8b54f
1,467
py
Python
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
from django.shortcuts import render_to_response from .forms import * from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.views.decorators.csrf import csrf_protect from django.http import HttpResponseRedirect from django.template import RequestContext @csrf_prot...
28.211538
110
0.759373
0
0
0
0
1,155
0.787321
0
0
226
0.154056
77b28772f0ad4a9c4563ad6fa4f14122fc956e8e
618
py
Python
py_tasc.py
hcpss-banderson/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2017-07-19T12:37:31.000Z
2017-07-19T12:37:31.000Z
py_tasc.py
HCPSS/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2016-06-09T18:40:05.000Z
2016-06-09T18:40:05.000Z
py_tasc.py
hcpss-banderson/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2021-05-25T12:24:33.000Z
2021-05-25T12:24:33.000Z
#!/usr/bin/env python import os from assembler import Assembler from optionresolver import OptionResolver from patchers import PatchManager, PatchPatcher # Get the user supplied options options = OptionResolver() # Assemble the source code assembler = Assembler(options.manifest()["projects"], options.destination(), o...
32.526316
104
0.800971
0
0
0
0
0
0
0
0
128
0.20712
77b37d9171a1365ad576494257206d89ba25adf1
111
py
Python
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
null
null
null
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
null
null
null
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
1
2021-07-27T14:16:39.000Z
2021-07-27T14:16:39.000Z
d1 = {} d2 = {'one': 1, 'two': 2 } d3 = dict(one=1, two=2) d4 = dict((1, 2), (3, 4)) d5 = dict({1:2, 3:4})
11.1
26
0.414414
0
0
0
0
0
0
0
0
10
0.09009
77b62d71a2e2a81d7bb14aa77dd472363e132b1c
593
py
Python
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
3
2019-05-20T06:36:14.000Z
2020-05-15T03:58:16.000Z
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
null
null
null
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
null
null
null
CHANNEL_ACCESS_TOKEN = r'YOUR CHANNEL ACCESS TOKEN' CHANNEL_SECRET = r'YOUR CHANNEL SECRET' STR_CURRENT_STATUS_RESPOND = ("็›ฎๅ‰็‹€ๆ…‹๏ผšใ€{current_status}ใ€‘\n" + "1.่ผธๅ…ฅใ€Žๅƒไธ‹็ฟป่ญฏๅธƒไธใ€้–‹ๅ•ŸๅŠŸ่ƒฝ\n" + "2.่ผธๅ…ฅใ€ŽๅธƒไธๆถˆๅŒ–ๅฎŒไบ†ใ€้—œ้–‰ๅŠŸ่ƒฝ" ) STR_CURRENT_STATUS = r'็ฟป่ญฏๅธƒไธ' STR_A...
45.615385
59
0.686341
0
0
0
0
0
0
0
0
467
0.557945
77b773bb110aacc218f4ca773acae2c751ddf7a7
691
py
Python
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
7
2021-08-12T08:26:18.000Z
2022-02-23T18:13:53.000Z
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
null
null
null
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 import logging import os import time def sv_calling(home, ref_path, aln_path, cls_thres, svlen_thres): lines = '*************************' logging.info(lines + ' SV CALLING STARTED ' + lines) starttime = time.time() sv_calling_home = home + '/sv_calling/' os.system('mkdir ' + sv_cal...
43.1875
112
0.615051
0
0
0
0
0
0
0
0
231
0.334298
77b834ef3b47095a3ef4e2276e9ea11ba4bc2b31
622
py
Python
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
6
2022-03-05T02:36:57.000Z
2022-03-12T12:31:27.000Z
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
import pigpio import time ROTATION = 2 STEP_PER_ROTATE = 200 MICROSTEP = 16 ENABLE = 10 MS1 = 9 MS2 = 11 MS3 = 5 RESET = 6 SLEEP = 13 STEP = 19 DIR = 26 WAIT = 0.005 pi = pigpio.pi() for pin in [ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR]: pi.set_mode(pin, pigpio.OUTPUT) pi.write(RESET, 0) pi.write(SLEEP...
14.136364
60
0.651125
0
0
0
0
0
0
0
0
0
0
77b89c8c2551fa8fcc0927345358401aa9bd99ab
191
py
Python
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
1
2022-02-21T11:12:49.000Z
2022-02-21T11:12:49.000Z
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
null
null
null
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
1
2021-04-27T08:35:41.000Z
2021-04-27T08:35:41.000Z
#!/Users/richard/anaconda3/bin/python3 """Launch app using Anaconda 3.""" from views.interface import MerlinMotionControlApp if __name__ == "__main__": MerlinMotionControlApp().run()
19.1
50
0.748691
0
0
0
0
0
0
0
0
82
0.429319
77b8deb8a471712792ddcd411f464a17a0cb2bf4
1,917
py
Python
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
staxio/cloud-custodian
24ed5d8f09bc37ff76184aae97a1ef577a69a41b
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import jmespath from googleapiclient.errors import HttpError from c7n_gcp.provider import resources from c7n_gcp.query import QueryResourceManager, TypeInfo @resources.register('dataflow-job') class DataflowJob(QueryResourceManager): ...
32.491525
93
0.571205
1,641
0.856025
0
0
1,677
0.874804
0
0
502
0.261868
77b987eaf14f75d36f539722f833433781e4d25e
12,777
py
Python
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
null
null
null
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
1
2022-03-12T00:58:01.000Z
2022-03-12T00:58:01.000Z
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
null
null
null
import numpy as np from math import hypot as hyp class Robot: def __init__(self, diameter, initial_theta, initial_position): # Robot specifications self.diameter = diameter self.radius = int(diameter / 2) self.position = initial_position # Rotation is in rads self....
46.126354
122
0.591688
12,726
0.995931
0
0
0
0
0
0
1,185
0.092738
77b9b6901e4cb4106030a4e8cd51ce978af0e6bd
2,613
py
Python
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
null
null
null
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
null
null
null
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
1
2019-07-16T03:38:49.000Z
2019-07-16T03:38:49.000Z
import unittest from uuid import uuid4 from os import path from .client import CLIENT from ...settings import ( BucketSettings, UploadSettings, PartSettings, CopyFileSettings ) from ...models.file import FileModel, PartModel from ...bucket.blocking import BlockingFile class TestBlockingFile(unitt...
22.921053
58
0.565251
2,328
0.888211
0
0
0
0
0
0
185
0.070584
77bb0202fbcb60692c326fef16e93e7f15657559
616
py
Python
tests/test_dataset.py
kilsenp/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
41
2018-06-21T09:36:23.000Z
2021-05-07T22:06:25.000Z
tests/test_dataset.py
kilsen512/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
3
2018-06-20T10:35:32.000Z
2020-11-17T20:16:03.000Z
tests/test_dataset.py
kilsen512/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
10
2018-05-18T07:34:56.000Z
2021-01-16T00:02:12.000Z
import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import unittest from csv_dataset import * class TestMarket(unittest.TestCase): def test_make_dataset(self): csv_f...
30.8
97
0.600649
329
0.534091
0
0
0
0
0
0
111
0.180195
77bb5640e0e164a57f7b3d1cb8fe5afab8675900
3,695
py
Python
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
11
2018-04-02T16:36:19.000Z
2019-07-10T05:54:58.000Z
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
22
2019-01-01T20:40:21.000Z
2022-02-10T08:06:39.000Z
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
4
2019-03-12T14:24:37.000Z
2022-01-07T16:20:22.000Z
from crispy_forms.helper import ( FormHelper, Layout ) from crispy_forms.layout import ( HTML, Fieldset, Submit ) from django import forms from django.urls import reverse from django.utils.translation import gettext_lazy as _ from shop import models class FaqMessageAdminForm(forms.ModelForm): class Meta:...
31.853448
118
0.568065
3,421
0.925846
0
0
0
0
0
0
1,245
0.336942
77bc14e7c032c836a4310a414a8a832122f26169
642
py
Python
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
null
null
null
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
4
2020-01-28T22:57:49.000Z
2020-11-13T18:22:23.000Z
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
null
null
null
import csv import json json_files = ['generated_names', 'registered_names', 'used_names'] for jf in json_files: infile = open('data/{}.json'.format(jf), 'r') outfile = open('data/{}.csv'.format(jf), 'w') print('{} > {}'.format(infile, outfile)) writer = csv.DictWriter(outfile, fieldnames=['na...
32.1
72
0.582555
0
0
0
0
0
0
0
0
155
0.241433
77bdb223eed0186fb8d9de25b3c3b87e0f4d5217
4,013
py
Python
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2022-02-08 23:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('file_manager', '0058_auto_20220118_1418'), ] operations = [ migrations.AddField( model_name='rawfile', name='column_...
38.586538
108
0.592574
3,920
0.976825
0
0
0
0
0
0
1,043
0.259905
77be2f55131b3349b56faffc31d3bd578f487785
9,334
py
Python
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
2
2021-05-12T01:14:24.000Z
2021-12-08T14:36:00.000Z
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-rest-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
null
null
null
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-rest-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
null
null
null
import asyncio import logging from unittest import TestCase from rest_api_py_lib import BitsgapClient from tests.keys import public_key,private_key class TestRestUserDemoOrdersAdd(TestCase): """ Place order on demo market """ def test_user_demo_orders_add_valid_data(self): async def run_test(): ...
29.352201
85
0.561174
9,183
0.983823
0
0
0
0
6,401
0.685772
1,096
0.11742
77be68f59af465d19126dafee090ea62f5ef4125
2,176
py
Python
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
"""CFNgin hook for cleaning up resources prior to CFN stack deletion.""" # TODO move to runway.cfngin.hooks on next major release import logging from botocore.exceptions import ClientError from ..cfngin.lookups.handlers.output import OutputLookup from ..cfngin.lookups.handlers.rxref import RxrefLookup from ..cfngin.l...
35.096774
83
0.634191
0
0
0
0
0
0
0
0
588
0.270221
77bf2ecef9748586b6a2dac8896799069e53843d
5,800
py
Python
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
null
null
null
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
1
2019-08-21T21:53:30.000Z
2019-08-21T21:53:30.000Z
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
null
null
null
import snowflake.connector as snowcon import json import getpass import sys class Snowflake(): """ Handles connections and queries to Snowflake Computing This class contains methods to connect to the Snowflake service and run queries on it. Requires: snowflake-connector-python: pip instal...
34.52381
165
0.58
5,473
0.943621
0
0
0
0
0
0
3,354
0.578276
77c1415a212d5d1d022140adadcb11fdbf2724c0
653
py
Python
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 12916.py # Description: UVa Online Judge - 12916 # ============================================================================= N = int(inpu...
27.208333
79
0.355283
0
0
0
0
0
0
0
0
303
0.464012
77c2a84ba94b9959e2b284142d43e8fadfa6f26f
268
py
Python
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
5
2018-08-28T15:09:13.000Z
2020-08-05T13:20:26.000Z
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
null
null
null
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
3
2019-06-17T18:14:49.000Z
2019-11-07T10:23:33.000Z
#!/usr/bin/env docker-script #!python:latest python import os, sys details = os.uname() print('Uname: ', details.sysname, details.release, details.machine) print('Guest CWD:', os.getcwd()) print('Host CWD: ', os.environ['HOST_CWD']) print('argv: ', sys.argv)
24.363636
70
0.679104
0
0
0
0
0
0
0
0
108
0.402985
77c4906ed898f5765c5f91376752902605a14837
9,340
py
Python
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
1
2020-12-13T19:28:32.000Z
2020-12-13T19:28:32.000Z
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
null
null
null
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
null
null
null
#### Startup ## import random from time import sleep as s names = [] thirdPlace = [] for x in range(1, 33): print("Name", x) name = input("Please enter a name: ") names.append(name) #print(names) ## This line is for bug fixing, uncomments if you want to check all the names are in the list. p...
35.245283
109
0.509957
0
0
0
0
0
0
0
0
4,725
0.505834
77c4ac6e0829dc7178a6b601892640733f30e784
2,736
py
Python
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
14
2020-03-25T11:11:29.000Z
2022-03-08T20:41:33.000Z
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
352
2020-03-25T10:42:09.000Z
2022-03-30T15:32:26.000Z
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
3
2020-08-06T12:22:41.000Z
2022-01-16T11:51:12.000Z
import json import os from hashlib import md5 from unittest.mock import Mock import pytest from common.tests import factories from hmrc_sdes.api_client import HmrcSdesClient pytestmark = pytest.mark.django_db def test_sdes_client(responses): responses.add( responses.POST, url="https://test-api...
30.065934
108
0.666667
0
0
0
0
1,133
0.414108
0
0
940
0.343567
77c4b823daa25924e42b9613fee9df7dab7601e4
6,301
py
Python
model/train/AdvancedEAST.py
JinGyeSetBirdsFree/FudanOCR
e6b18b0eefaf832b2eb7198f5df79e00bd4cee36
[ "MIT" ]
25
2020-02-29T12:14:10.000Z
2020-04-24T07:56:06.000Z
model/train/AdvancedEAST.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
33
2020-12-10T19:15:39.000Z
2022-03-12T00:17:30.000Z
model/train/AdvancedEAST.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
4
2020-02-29T12:14:18.000Z
2020-04-12T12:26:50.000Z
# -*- coding: utf-8 -*- def train_AEAST(config_file): import sys sys.path.append('./detection_model/AdvancedEAST') import os import argparse import time import numpy as numpy import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.d...
40.651613
123
0.577845
3,619
0.573625
0
0
0
0
0
0
851
0.134887
77c6181206707ee1bccc346554b686167d34ae86
1,282
py
Python
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Hero's Inventory 2.0 # Demonstrates tuples # create a tuple with some items and display with a for loop inventory = ("sword", "armor", "shield", "healing potion") print("Your items:") for item in inventory: print(item) input("\nPress the enter key to continue.") # get the...
27.869565
73
0.682527
0
0
0
0
0
0
0
0
820
0.639626
77c66ea30fa9ef6d5f9730bf0414d7cdb56d8682
3,579
py
Python
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
8
2022-02-17T10:19:27.000Z
2022-03-28T12:33:57.000Z
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
null
null
null
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
1
2022-03-02T14:32:56.000Z
2022-03-02T14:32:56.000Z
# Copyright 2021 The Jax Influence Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
33.448598
79
0.740151
0
0
0
0
0
0
0
0
1,964
0.548757
77c6869548be7b262a6b24e861485690a9a1e3b0
20,327
py
Python
CureIAM/processors/gcpcloudiam.py
gojek/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
17
2021-11-10T08:32:31.000Z
2022-03-03T12:20:38.000Z
CureIAM/processors/gcpcloudiam.py
gojekfarm/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
null
null
null
CureIAM/processors/gcpcloudiam.py
gojekfarm/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
3
2021-11-11T17:20:16.000Z
2021-12-02T20:00:34.000Z
"""Plugin to process the data retrieved from `gcpcloud.CureIAM` plugin """ import json import logging import datetime from CureIAM.models.iamriskscore import IAMRiskScoreModel from CureIAM.models.applyrecommendationmodel import IAMApplyRecommendationModel from CureIAM import util _log = logging.getLogger(__name__) ...
46.197727
166
0.509421
20,006
0.984208
9,648
0.47464
0
0
0
0
8,957
0.440645
77c73cfb980dddd0f00259fb140949459a2b3bcc
4,994
py
Python
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
from bitstring import BitArray, BitStream # Definition of constants KEY_SIZE = 128 REGISTER_SIZE = 128 LAST_INDEX = 127 INITIALIZATION_CLOCKS = 256 def cipher_clocking(register_b, register_s, counter): fx = register_s[counter % REGISTER_SIZE] \ ^ register_s[(LAST_INDEX - (counter + 7)) % REGISTER_SIZE] ...
46.240741
114
0.623148
0
0
0
0
0
0
0
0
897
0.179616
77c7afef5c74a339ce18ec675fedbac6397faeca
2,111
py
Python
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
3
2017-06-06T18:54:28.000Z
2021-06-11T13:06:40.000Z
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
null
null
null
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2013 Bartosz Zaczynski # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the...
36.396552
79
0.720512
587
0.278067
0
0
0
0
0
0
1,318
0.624349
77c83499cfbfd5ad6ff4654b86b77b358a42fede
7,864
py
Python
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
6
2020-02-28T14:56:46.000Z
2022-03-24T02:44:56.000Z
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
null
null
null
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
4
2020-01-02T15:03:02.000Z
2022-03-10T12:46:35.000Z
# -*- coding: utf-8 -*- """Abstract model definition.""" from collections import OrderedDict import numpy as np import torch import torch.nn as nn class AbstractModel(nn.Module): def __init__(self, input_size): """ Parameters ---------- module : ModuleType Module def...
33.042017
131
0.517294
7,712
0.980671
0
0
0
0
0
0
2,768
0.351984
77c8d398ac338ba0bf2a0226bf85b373294388f7
394
py
Python
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-05-01 07:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('weiboCrawler', '0019_weibouser_profile_image_url'), ] operations = [ migrations.RenameField( model_name='weibouser', old_name=...
20.736842
61
0.619289
311
0.78934
0
0
0
0
0
0
136
0.345178
77c9573c06e85833053d03d6dbce3da891ac8dbe
4,316
py
Python
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
10
2019-01-18T15:54:35.000Z
2019-02-21T16:18:41.000Z
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
1
2020-08-08T20:50:00.000Z
2020-08-08T20:50:00.000Z
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
null
null
null
import fire from configparser import ConfigParser from utils.processing import str_to_sql_dict from utils.validation import * from utils.logging import * from parse.worker import Worker from output.cmd import beautify from output.mermaid import Mermaid from output.json import to_json from typing import Optional, List f...
37.530435
95
0.630908
3,917
0.907553
0
0
0
0
0
0
2,366
0.548193
77ca100659083b3c68df3e832abc6d77f7424c6b
254
py
Python
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
from win32gui import GetWindowText, GetForegroundWindow old = "" while True: new =GetWindowText(GetForegroundWindow()) if old != new: # print(new) if new.lower().find("inkscape")>0: print("OK") old = new
15.875
55
0.586614
0
0
0
0
0
0
0
0
28
0.110236