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
72bd4a8996d5c4753f1f31aee9a880c97885b93a
254
py
Python
examples/single_message.py
Inrixia/pyais
b50fd4d75c687d71b3c70ee939ac9112cfec991e
[ "MIT" ]
51
2019-10-07T11:26:56.000Z
2022-03-16T10:45:15.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
57
2019-10-14T07:50:00.000Z
2022-03-28T06:52:27.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
31
2019-10-13T17:17:56.000Z
2022-03-26T16:46:54.000Z
from pyais.messages import NMEAMessage message = NMEAMessage(b"!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode()) # or message = NMEAMessage.from_string("!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode())
25.4
84
0.755906
0
0
0
0
0
0
0
0
103
0.405512
72bde1ffa295f39cff6155beef6e3b3159a43bd3
536
py
Python
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:02:33 2019 @author: sercangul """ def maxConsecutiveOnes(x): # Initialize result count = 0 # Count the number of iterations to # reach x = 0. while (x!=0): # This operation reduces length ...
18.482759
42
0.544776
0
0
0
0
0
0
0
0
255
0.475746
72be55bfd5b76b9d59e5532d60fbf00e392fbde4
6,744
py
Python
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
5
2021-06-13T17:04:37.000Z
2022-03-04T17:16:06.000Z
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
null
null
null
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
8
2021-03-11T18:23:47.000Z
2022-02-22T11:13:23.000Z
import numpy as np from .problem import Problem from .algorithm_genetic import GeneralEvolutionaryAlgorithm from .individual import Individual from .operators import CustomGenerator, nondominated_truncate, RandomGenerator, UniformGenerator import time class CMA_ES(GeneralEvolutionaryAlgorithm): """ Implementa...
40.626506
116
0.647539
6,493
0.962211
0
0
0
0
0
0
2,651
0.392857
72bf6f79bc537479ff8af423d399ec3e3244b8ce
4,988
py
Python
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ APNS Proxy Serverのクライアント """ import time import zmq import simplejson as json READ_TIMEOUT = 1500 # msec FLUSH_TIMEOUT = 5000 # msec COMMAND_ASK_ADDRESS = b'\1' COMMAND_SEND = b'\2' COMMAND_FEEDBACK = b'\3' DEVICE_TOKEN_LENGTH = 64 JSON_ALERT_KEY_SET = set(['body', 'action_loc_key', ...
30.414634
94
0.589014
4,747
0.926425
0
0
784
0.153005
0
0
937
0.182865
72c0ae451f7caa49a39c48148ab8e7fb5585d0b8
800
py
Python
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy import time import ConfigParser import topicmodel def main(): # read configuration file config = ConfigParser.ConfigParser() config.readfp(open('config.ini')) dataDir = config.get('main', 'dataDir') io = topicmodel.io(dataDir) model ...
22.222222
87
0.665
0
0
0
0
0
0
0
0
220
0.275
72c1a420d34dd573dce6d90546ddf3cb21473656
2,660
py
Python
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_4318 # title: Regression: Predicates involving PSQL variables/parameters are not pushed inside the aggregation # decription: # tracker_id: CORE-4318 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, i...
22.931034
112
0.557895
0
0
0
0
183
0.068797
0
0
2,185
0.821429
72c1ef9e3306b06082ecfe37e40b05472ed66d4a
1,047
py
Python
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
#Import the json library to parse JSON file to Python import json #Import list of punctuation characters from the string library from string import punctuation as p #This method checks if the given word is a profanity def is_profanity(word): #Open the JSON file words_file = open('data.json') #Parse the JSON f...
26.846154
114
0.73639
0
0
0
0
0
0
0
0
633
0.604585
72c22519e149895de228608442ca88e10bbdc5d3
1,613
py
Python
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
25
2015-01-20T13:13:51.000Z
2021-11-05T12:52:13.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
2
2018-11-11T21:02:10.000Z
2020-04-10T09:18:52.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
14
2015-01-26T10:20:28.000Z
2021-10-31T13:05:24.000Z
from setuptools import setup import os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() #NEWS = open(os.path.join(here, 'NEWS.txt')).read() rootdir = os.path.dirname(os.path.abspath(__file__)) exec(open(rootdir + '/cerridwen/version.py').read()) version = __VERS...
35.844444
81
0.629882
0
0
0
0
0
0
0
0
893
0.553627
72c2286c61223e879e49fc3a51d82e195787e502
4,768
py
Python
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
128
2015-12-28T01:02:30.000Z
2019-05-24T21:20:50.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
277
2015-05-03T18:48:57.000Z
2019-05-23T17:41:28.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
96
2015-08-07T18:49:50.000Z
2019-05-20T19:49:27.000Z
import datetime from abc import ABC, abstractmethod import pajbot class AccessToken(ABC): SHOULD_REFRESH_THRESHOLD = 0.9 """Fraction between 0 and 1 indicating what fraction/percentage of the specified full validity period should actually be utilized. E.g. if this is set to 0.9, the implementation will ...
32.216216
105
0.635067
4,692
0.98406
0
0
1,850
0.388003
0
0
1,269
0.266149
72c23dc2d109c0b3025a3d48b3833415e7515ab1
1,686
py
Python
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
1
2020-06-13T11:29:17.000Z
2020-06-13T11:29:17.000Z
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Description: Data_Ghost, concealing data into spaces and tabs making it imperceptable to human eyes. # Author: Ajay Dyavathi # Github: Radical Ajay class Ghost(): def __init__(self, file_name, output_format='txt'): ''' Converts ascii text to spaces and tabs ''' self.file_name...
33.72
102
0.577699
1,391
0.82503
0
0
0
0
0
0
588
0.348754
72c2e94771b614f6c939030fdbb56bca1d8a8d06
1,965
py
Python
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
# Image classification using AWS Sagemaker and Linear Learner # Program set up and import libraries import numpy as np import pandas as pd import os from sagemaker import get_execution_role role = get_execution_role() bucket = 'chi-hackathon-skin-images' # Import Data import boto3 from sagemaker import get_execution...
30.703125
114
0.795929
0
0
0
0
0
0
0
0
628
0.319593
72c448e2ac75cf97f325c368c89cf5c864f7ebd6
34,227
py
Python
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # copyright 2015 Hamilton Kibbe <ham@hamiltonkib.be> and Paulo Henrique Silva # <ph.silva@gmail.com> # 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...
32.690544
164
0.624302
33,031
0.965057
0
0
5,301
0.154878
0
0
13,105
0.382885
72c45f6e75be10ab1eab557e6f4a81a72ff78154
600
py
Python
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-19 17:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('heroquest', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24
108
0.596667
443
0.738333
0
0
0
0
0
0
157
0.261667
72c4b917975b4d4f647b8a13d6702b4b9e1e961c
1,727
py
Python
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion import difflib import os import numpy as np from .core import Array from ..async import get_sync if LooseVersion(np.__version__) >= '1.10.0': allclose = np.allclose else: def allclose(a, b, **kwargs): if kwargs.pop('equal_nan', False): a_nans = np...
24.671429
74
0.568037
0
0
0
0
0
0
0
0
138
0.079907
72c7cb9e21a63cc41a2a8dafac7960b8bc5acb97
370
py
Python
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
1
2020-05-07T04:08:13.000Z
2020-05-07T04:08:13.000Z
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
null
null
null
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
null
null
null
# more specific selections for Python 3 (ASkr, 2/2018) from launchpad_py.launchpad import Launchpad from launchpad_py.launchpad import LaunchpadMk2 from launchpad_py.launchpad import LaunchpadPro from launchpad_py.launchpad import LaunchControlXL from launchpad_py.launchpad import LaunchKeyMini from launchpad_py.launch...
41.111111
54
0.87027
0
0
0
0
0
0
0
0
54
0.145946
72c7d7e3f8694c5c646ef95b15742cc54526c455
4,174
py
Python
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
1
2021-06-09T12:56:47.000Z
2021-06-11T10:49:06.000Z
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
import base64 import math import re from io import BytesIO import matplotlib.cm import numpy as np import torch import torch.nn from PIL import Image # Compute edge magnitudes from scipy import ndimage class RunningAverage: def __init__(self): self.avg = 0 self.count = 0 ...
28.394558
80
0.565884
1,688
0.404408
0
0
0
0
0
0
411
0.098467
72c85d886bda8e81edae28edb917d772be6187cc
8,439
py
Python
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
"""In programming, a factory is a function that returns an object. Functions are easy to understand because they have clear inputs and outputs. Most gdsfactory functions take some inputs and return a Component object. Some of these inputs parameters are also functions. - Component: Object with. - name. - refe...
25.041543
100
0.670103
3,307
0.391871
115
0.013627
438
0.051902
0
0
3,169
0.375518
72c98748f08c6f90f0d9a63c5a27d1f4d96b3af8
1,685
py
Python
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Code will only work with Django >= 1.5. See tests/config.py import re from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core import validators from django.contrib.auth.models import BaseUserManager from oscar.apps.customer.abstract_models impor...
29.051724
105
0.636795
1,344
0.797626
0
0
0
0
0
0
419
0.248665
72caabf05592563e94088a4e1c8a8ae64828efbb
3,253
py
Python
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-02-23T21:53:30.000Z
2021-02-23T21:53:30.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2020-11-13T19:08:27.000Z
2020-11-13T19:08:27.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-03-04T10:17:01.000Z
2021-03-04T10:17:01.000Z
import pickle import numpy as np INPUT_FILENAME = 'NP_WEIGHTS.pck' PRECISION = 100 # Open weights fc1_k, fc1_b, fc2_k, fc2_b = pickle.load( open(INPUT_FILENAME, 'rb')) # Round them fc1_k, fc1_b, fc2_k, fc2_b = fc1_k*PRECISION//1, fc1_b*PRECISION//1, fc2_k*PRECISION//1, fc2_b*PRECISION*PRECISION//1 fc1_k, fc1_b, f...
27.567797
117
0.619428
0
0
0
0
0
0
0
0
1,289
0.39625
72cb0ad23b1774315b100a3169e33454e096362a
346
py
Python
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy as np import random img = cv2.imread('../../Assets/Images/flower-white.jpeg', 1) imgInfo = img.shape height = imgInfo[0] width = imgInfo[1] cv2.imshow('img', img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgG = cv2.GaussianBlur(gray, (3, 3), 0) dst = cv2.Canny(img, 50, 50) cv2.imshow(...
17.3
60
0.687861
0
0
0
0
0
0
0
0
49
0.141618
72cb9ae8cd277faadce0f3f6be82d9d90c087279
7,767
py
Python
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
1
2021-09-01T00:34:17.000Z
2021-09-01T00:34:17.000Z
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time from avod.builders import optimizer_builder from avod.core import trainer_utils from avod.core import summary_utils slim = tf.contrib.slim def train(m...
35.62844
87
0.643234
0
0
0
0
0
0
0
0
1,742
0.224282
72cbf3d35b93e0b877b0f490045834b6cee53f3c
1,237
py
Python
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ class HMACKey(models.Model): """ The default HMACKey model that can auto generate a key/secret for HMAC Auth via a signal """ def generate_key(): ...
30.925
73
0.673403
1,089
0.880356
0
0
0
0
0
0
344
0.278092
72cc196deafcaa7796f8d6ee97d9294d3efde7f3
6,222
py
Python
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
null
null
null
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
2
2021-02-10T22:44:36.000Z
2021-04-09T22:36:41.000Z
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
1
2021-08-24T21:55:34.000Z
2021-08-24T21:55:34.000Z
import os from tempfile import NamedTemporaryFile import boto3 from moto import mock_s3 import pandas as pd import pandavro as pdx import pickle import pytest @pytest.fixture(autouse=True, scope='session') def aws_credentials(): """ Sets AWS credentials to invalid values. Applied to all test functions and ...
31.907692
77
0.635969
0
0
4,162
0.668917
6,035
0.969945
0
0
1,697
0.272742
72cdbe89dce7053232a88a1aed13e52d7045db37
641
py
Python
company/migrations/0021_auto_20161208_1113.py
uktrade/directory-api
45a9024a7ecc2842895201cbb51420ba9e57a168
[ "MIT" ]
2
2017-06-02T09:09:08.000Z
2021-01-18T10:26:53.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
629
2016-10-10T09:35:52.000Z
2022-03-25T15:04:04.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
5
2017-06-22T10:02:22.000Z
2022-03-14T17:55:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-12-08 11:13 from __future__ import unicode_literals from django.db import migrations from company import helpers def ensure_verification_code(apps, schema_editor): Company = apps.get_model("company", "Company") for company in Company.objects.filte...
23.740741
72
0.711388
196
0.305772
0
0
0
0
0
0
125
0.195008
72ce4318d1d0f496564578d4caec5a73368d7bf6
68,544
py
Python
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
import pytest import asyncio from system.utils import * from random import randrange as rr import hashlib import time from datetime import datetime, timedelta, timezone from indy import payment import logging logger = logging.getLogger(__name__) @pytest.mark.usefixtures('docker_setup_and_teardown') class TestAuthMa...
59.345455
126
0.521067
68,239
0.99555
0
0
68,293
0.996338
62,904
0.917717
11,943
0.174238
72cf2ee1f1f114780fd41988e0ddaa2bfd651b27
18,351
py
Python
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
8
2021-11-10T15:15:16.000Z
2022-03-10T10:09:50.000Z
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
1
2021-11-18T11:28:44.000Z
2021-11-21T09:30:54.000Z
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
3
2022-01-28T18:40:38.000Z
2022-03-22T18:40:59.000Z
import opensearchpy import curator import os import json import string import random import tempfile import click from click import testing as clicktest import time from . import CuratorTestCase from unittest.case import SkipTest from . import testvars as testvars import logging logger = logging.getLogger(__name__) ...
37.681725
107
0.555719
17,795
0.969702
0
0
0
0
0
0
3,432
0.18702
72cf53ccf7f23461f4563c9f0a973dec0115aebc
2,235
py
Python
libhustpass/login.py
naivekun/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
26
2020-02-18T14:30:30.000Z
2021-11-30T02:50:37.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
3
2020-05-01T20:26:42.000Z
2020-12-30T07:03:10.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
6
2020-02-18T14:33:39.000Z
2022-01-28T11:09:25.000Z
import libhustpass.sbDes as sbDes import libhustpass.captcha as captcha import requests import re import random def toWideChar(data): data_bytes = bytes(data, encoding="utf-8") ret = [] for i in data_bytes: ret.extend([0, i]) while len(ret) % 8 != 0: ret.append(0) return ret def En...
28.653846
99
0.561521
0
0
0
0
0
0
0
0
275
0.123043
72cfd36241688b520b69fa546395cf4b9423fe79
779
py
Python
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
1
2021-12-12T12:17:11.000Z
2021-12-12T12:17:11.000Z
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np def areaFinder(contours): areas = [] for c in contours: a =cv.contourArea(c) areas.append(a) return areas def sortedContoursByArea(img, larger_to_smaller=True): edges_img = cv.Canny(img, 100, 150) contours , h = cv.findContours(edges_img, cv.RETR_...
35.409091
88
0.724005
0
0
0
0
0
0
0
0
61
0.078306
72cfd74acaa21b51c8cdcd979a394eceb3c1b59d
1,813
py
Python
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
468
2019-07-03T02:43:52.000Z
2022-03-30T05:51:03.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
126
2019-07-04T15:51:57.000Z
2021-07-31T13:14:40.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
117
2019-07-04T11:31:08.000Z
2022-03-18T12:21:32.000Z
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import ( BaseMetric, sort_and_couple, RankingMetric ) class Precision(RankingMetric): """Precision metric.""" ALIAS = 'precision' def __init__(self, k: int = 1, threshold: float = 0.): """ :class:`Preci...
30.216667
68
0.539989
1,670
0.921125
0
0
0
0
0
0
1,002
0.552675
72d0cee317d77c14ae420378473b099449564673
4,168
py
Python
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
11
2017-08-03T15:42:19.000Z
2021-02-04T12:43:35.000Z
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
null
null
null
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
1
2021-02-04T12:43:37.000Z
2021-02-04T12:43:37.000Z
from mung.torch_ext.eval import Loss from ltprg.model.seq import DataParameter, SequenceModelNoInput, SequenceModelInputToHidden, SequenceModelAttendedInput from ltprg.model.seq import VariableLengthNLLLoss # Expects config of the form: # { # data_parameter : { # seq : [SEQUENCE PARAMETER NAME] # inp...
43.416667
120
0.676823
0
0
0
0
0
0
0
0
1,537
0.368762
72d551e4fbff60d0217a556d091c57b4d8d63fe7
1,086
py
Python
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
3
2020-12-15T07:44:58.000Z
2022-03-11T18:57:44.000Z
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
from shutil import move import piexif from PIL import Image def delete_metadata(full_path_to_img): """ This function used for remove metadata only from documents, if you send image 'as image' Telegram automatically removes all metadata at sending. This function removes all metadata via 'piexif' lib, save...
40.222222
115
0.745856
0
0
0
0
0
0
0
0
815
0.75046
72d5dcde5caf7bc67be36a1a3162b2ed4f45540f
765
py
Python
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
#py_unit_2.py import unittest class FirstTest(unittest.TestCase): def setUp(self): "setUp() runs before every test" self.msg="Sorry, Charlie, but {} is not the same as {}." def tearDown(self): "tearDown runs after every test" pass def test_me(self): "this test should pass" first=1 second=2 self.asse...
25.5
64
0.705882
685
0.895425
0
0
0
0
0
0
267
0.34902
72d61a6fdb060552b86f4595f2938ff73c8b70ad
41
py
Python
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
from .scheduled_task import ScheduledTask
41
41
0.902439
0
0
0
0
0
0
0
0
0
0
72d67501443e4ca7891e84e39882fcf4f2a78705
1,623
py
Python
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
from sys import exit # ------------------------------------------------------------------------------ global dev_name global game_title dev_name = "" # enter your name in the quotes! game_title = "" # enter the game title in the quotes! # ------------------------------------------------------------------------------ ...
22.541667
93
0.51756
0
0
0
0
0
0
0
0
847
0.521873
72d6fbca1e2a56e32eed016c2b0a2d21ed7addda
510
py
Python
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
class Solution: def defangIPaddr(self, address: str) -> str: i=0 j=0 strlist=list(address) defang=[] while i< len(strlist): if strlist[i] == '.': defang.append('[') defang.append('.') defang.append(']') ...
23.181818
48
0.394118
487
0.954902
0
0
0
0
0
0
32
0.062745
72d812548fd737a5e6c2dd14c16ac5901a2c0669
1,018
py
Python
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
1
2021-09-01T20:10:29.000Z
2021-09-01T20:10:29.000Z
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
import os, zipfile # Zip files. def zipfiles(directory): # File extension to zip. #ext = ('.gdb', '.csv') ext = ('.gdb') # Iterate over all files and check for desired extentions for zipping. for file in os.listdir(directory): if file.endswith(ext): #: Zip it. ...
33.933333
109
0.570727
0
0
0
0
0
0
0
0
227
0.222986
72da26872a32cdd69f28a7e6093c2164b2d30874
344
py
Python
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
class Node: def __init__(self, path, libgraphql_type, location, name): self.path = path self.parent = None self.children = [] self.libgraphql_type = libgraphql_type self.location = location self.name = name def __repr__(self): return "%s(%s)" % (self.libg...
28.666667
62
0.607558
343
0.997093
0
0
0
0
0
0
8
0.023256
72dca5ec94eec75c7728a1bea9a137060f5e6849
5,097
py
Python
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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 a...
33.754967
88
0.679419
1,434
0.281342
762
0.1495
3,890
0.763194
3,241
0.635864
1,920
0.376692
72dd8b3d7047f515b38a96161e263e0136b29c7e
3,419
py
Python
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
""" 例子为MNIST,对手写图片进行分类。 神经网络hello world。 """ import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # 封装网络用到的API def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf....
24.956204
74
0.563908
0
0
0
0
0
0
0
0
836
0.235958
72dda3613656327f62f267160ac432bf2f3e78fb
34,924
py
Python
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
74
2015-03-09T00:33:09.000Z
2022-02-25T20:28:27.000Z
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
108
2017-12-30T20:26:12.000Z
2021-01-16T12:37:00.000Z
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
61
2018-03-03T09:55:31.000Z
2022-03-18T17:28:33.000Z
import pbge from game.content.plotutility import LMSkillsSelfIntro from game.content import backstory from pbge.plots import Plot from pbge.dialogue import Offer, ContextTag from game.ghdialogue import context import gears import game.content.gharchitecture import game.content.ghterrain import random from game import m...
45.005155
213
0.583295
33,876
0.969992
0
0
1,453
0.041605
0
0
6,070
0.173806
72de8b8aee3f4620163c8f97b222277abcb82e15
1,061
py
Python
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
1
2020-07-03T07:17:17.000Z
2020-07-03T07:17:17.000Z
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
import json if __name__ == '__main__': jsonFile = '/data00/home/zhangrufeng1/projects/detectron2/projects/detr/datasets/mot/mot17/annotations/mot17_train_half.json' with open(jsonFile, 'r') as f: infos = json.load(f) count_dict = dict() for info in infos["images"]: if info["file_name"]...
33.15625
130
0.609802
0
0
0
0
0
0
0
0
305
0.287465
72dee79c27f224ab988e2c1d440c86b9133510f7
3,099
py
Python
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
23
2017-07-07T22:08:26.000Z
2018-07-17T01:07:22.000Z
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
1
2017-07-06T23:34:21.000Z
2017-07-07T04:17:15.000Z
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
3
2017-07-10T12:57:31.000Z
2018-04-20T00:31:51.000Z
# -*- coding: utf-8 -*- """Archivo principal para el echobot. Main File for the echobot""" from fbmq import Page from flask import Flask, request # Token generado por la página web. Generated token in the facebook web page PAGE_ACCESS_TOKEN = "COPY_HERE_YOUR_PAGE_ACCES_TOKEN" # Token generado por nosotros. Token gener...
56.345455
215
0.718296
0
0
0
0
2,315
0.743417
0
0
2,217
0.711946
72df31fd0b80ac5547d308a5a1ccd1a315222eb8
7,607
py
Python
Camvid/CamVid_utlis.py
Water2style/FCN-pytorch-CanRun
b2994f98930580cd2c32f58d19f94becb68a3ccb
[ "MIT" ]
7
2019-03-17T15:58:44.000Z
2022-01-28T20:06:38.000Z
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
null
null
null
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
1
2019-11-04T06:42:05.000Z
2019-11-04T06:42:05.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from matplotlib import pyplot as plt import matplotlib.image as mpimg import numpy as np import scipy.misc import random import os import imageio ############################# # global variables # ############################# root_dir = "/ho...
40.897849
102
0.574471
0
0
0
0
0
0
0
0
5,784
0.582301
72dfdaa4454ede71b658a424efe5fbeaae467461
804
py
Python
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
1
2021-04-23T11:37:01.000Z
2021-04-23T11:37:01.000Z
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import websocket import time try: import thread except ImportError: import _thread as thread runs = 100 def on_message(ws, message): print(message) def on_error(ws, error): print(error) def on_close(ws): print("### closed ###") def on_open(ws): ...
18.697674
104
0.589552
0
0
0
0
0
0
0
0
98
0.121891
72dff42ed030c124c8990d7454998c4a84aa0eeb
932
py
Python
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np import scipy.stats as stats import seaborn as sns from matplotlib import rcParams import statsmodels.api as sm from statsmodels.formula.api import ols df = pd.read_csv('kc_house_data.csv') # print(df.head()) # print(df.isnull().any()) # print(df.d...
24.526316
84
0.700644
0
0
0
0
0
0
0
0
594
0.637339
72e01bf0a4210399b76b4de5d871a56ed311bc12
3,915
py
Python
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
2
2021-08-03T13:05:55.000Z
2021-08-25T15:03:24.000Z
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
# Dialogs for setting filter parameters. from PyQt5.QtWidgets import QLabel, QGridLayout, QPushButton, \ QLineEdit, QVBoxLayout, QHBoxLayout, QDialog, QComboBox, QWidget from PyQt5.QtCore import pyqtSignal class FilterDialog(QDialog): ''' Dialog for choosing filter types. ''' def __init__(self, default, parent ...
24.778481
72
0.678927
3,699
0.944828
0
0
0
0
0
0
1,476
0.377011
72e01bffe818f26ef544964b5648f4372f9a04d4
813
py
Python
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
41
2019-06-07T17:36:10.000Z
2021-11-16T06:26:16.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
11
2019-06-06T01:19:08.000Z
2020-07-23T07:34:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy from .build import build, make_path from parlai.utils.misc import warn_once from parlai.core.teachers import...
30.111111
79
0.702337
212
0.260763
0
0
0
0
0
0
316
0.388684
72e1010bc4f2ebd173a6efd489e56ee4ea6793c8
1,228
py
Python
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
2
2020-10-08T23:35:03.000Z
2020-10-09T00:28:36.000Z
from math import ceil, sqrt from problem import Problem from utils.math import gcd class PythagoreanTriplet(Problem, name="Special Pythagorean triplet", expected=31875000): @Problem.solution() def brute_force(self, ts=1000): for a in range(3, round((ts - 3) / 2)): for b in range(a + 1, ro...
29.238095
89
0.35342
1,141
0.929153
0
0
1,041
0.84772
0
0
29
0.023616
72e12151f37d1939bde729526720c6ed8432a926
4,345
py
Python
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 10:37:04 2021 @author: martin urbanec """ #calculates trajectory of small mass positioned close to L4 Lagrange point #creates gif as output import math import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation, PillowWriter ...
22.630208
161
0.595397
0
0
0
0
0
0
0
0
1,271
0.29252
72e1bd59d28fcd4bceaa6c1453fe80d65e9ccc96
5,078
py
Python
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, sanitized_Request, ) class AzubuIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?azubu\.tv/[^/]+#!/play/(?P<id>\d+)' _TESTS = [ { 'ur...
36.797101
200
0.551398
4,898
0.964553
0
0
0
0
0
0
1,952
0.384403
72e2f4f20411bdef4f641e8d7563731afc8c78a7
8,157
py
Python
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
# (c) Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import absolute_import, division, print_function import sys from os.path import join, ...
32.891129
79
0.60868
0
0
0
0
0
0
0
0
4,134
0.506804
72e3326bd28b6a407fd1315276c6cbaaa56add9a
494
py
Python
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
19
2021-01-18T13:51:08.000Z
2022-03-05T07:32:26.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
2
2021-02-05T16:09:44.000Z
2021-06-16T18:56:47.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
1
2021-04-29T20:26:55.000Z
2021-04-29T20:26:55.000Z
#!/bin/env python3 from transformers import TFBertForTokenClassification from data_preparation.data_preparation_pos import MBERTTokenizer as MBERT_Tokenizer_pos import sys if __name__ == "__main__": if len(sys.argv) > 1: modelname = sys.argv[1] else: modelname = "ltgoslo/norbert" model = T...
32.933333
87
0.769231
0
0
0
0
0
0
0
0
45
0.091093
72e3ac4fde0a35b1aa2592f2a98574d5dd8e6f76
10,192
py
Python
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
from oslo_serialization import jsonutils as json from nca47.api.controllers.v1 import base from nca47.common.i18n import _ from nca47.common.i18n import _LI, _LE from nca47.common.exception import Nca47Exception from oslo_log import log from nca47.api.controllers.v1 import tools from nca47.manager.central import Centra...
45.097345
77
0.577414
9,628
0.944662
0
0
0
0
0
0
1,573
0.154337
72e3f9ddf2ff488e4523f7cf3d57f420ea39a9f3
6,992
py
Python
mlmodels/model_tch/nbeats/model.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2019-12-10T06:38:08.000Z
2019-12-10T06:38:08.000Z
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torch.nn import functional as F def seasonality_model(thetas, t, device): p = thetas.size()[-1] assert p < 10, 'thetas_dim is too big.' p1, p2 = (p // 2, p // 2) if p % 2 == 0 else (p // 2, p // 2 + 1) s1 = torch.tensor([np.cos(2 * np.pi * i * ...
39.502825
119
0.635441
6,027
0.861985
0
0
263
0.037614
0
0
541
0.077374
72e5fa5123e3b4ee554b59dbd26a061b553bcda4
2,916
py
Python
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
2
2022-01-03T07:28:21.000Z
2022-01-23T06:49:47.000Z
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
null
null
null
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
1
2022-01-03T07:28:22.000Z
2022-01-03T07:28:22.000Z
from math import exp from random import seed from random import random def initialize_network(n_inputs, n_hidden, n_outputs): network = list() hidden_layer = [{'weights':[random() for i in range(n_inputs + 1)]} for i in range(n_hidden)] network.append(hidden_layer) output_layer = [{'weights':[random() for i in r...
29.16
95
0.682785
0
0
0
0
0
0
0
0
157
0.053841
72e64a1d83c3d728c1a241962b109b3208e3da0f
1,993
py
Python
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
3
2016-05-08T23:45:29.000Z
2020-01-21T11:12:46.000Z
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
"""\ Copyright (c) 2009 Paul J. Davis <paul.joseph.davis@gmail.com> This file is part of hypercouch which is released uner the MIT license. """ import time import unittest import couchdb COUCHURI = "http://127.0.0.1:5984/" TESTDB = "hyper_tests" class MultiDesignTest(unittest.TestCase): def setUp(self): s...
32.145161
113
0.515805
1,743
0.874561
0
0
0
0
0
0
729
0.36578
72e6cd5ab67a94bed0e467a242a32fec14419840
144
py
Python
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
from .sample_setup import * ctr = setup_control() eff = ColorMeanderEffect(ctr, "solid") eff.launch_rt() input() eff.stop_rt() ctr.turn_off()
14.4
38
0.729167
0
0
0
0
0
0
0
0
7
0.048611
72e6e5211adcbf36c0973a390acaf06195e58f6f
6,739
py
Python
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
1
2021-08-16T08:33:31.000Z
2021-08-16T08:33:31.000Z
"""Torch NodeEmbedding.""" from datetime import timedelta import torch as th from ...backend import pytorch as F from ...utils import get_shared_mem_array, create_shared_mem_array _STORE = None class NodeEmbedding: # NodeEmbedding '''Class for storing node embeddings. The class is optimized for training larg...
30.355856
99
0.588811
6,542
0.970767
0
0
1,906
0.282831
0
0
3,957
0.587179
72e73a6f2f22fa84ad441b95a06268e872edfef4
2,815
py
Python
tests/sentry/web/frontend/test_create_team.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import OrganizationMember, OrganizationMemberTeam, Team from sentry.testutils import TestCase, PermissionTestCase class CreateTeamPermissionTest(PermissionTestCase): def setUp(self): super(CreateTeamPe...
32.356322
81
0.649023
2,590
0.920071
0
0
0
0
0
0
257
0.091297
72ea2c27713d0d21a3c0d65d78528e65b46ecc6c
61,742
py
Python
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
import abc import datetime import enum import logging import time import typing import aysncio import Layout as layouts from decimal import Decimal from pyserum.market import Market from pyserum.open_orders_account import OpenOrdersAccount from solana.account import Account from solana.publickey import PublicKey from...
45.498895
1,008
0.678064
56,511
0.913944
0
0
27,570
0.445886
3,744
0.060551
10,082
0.163055
72ea8bc7ed52d0a04a2d089038bfcf2f1a671d9a
373
py
Python
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-29 05:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('agendamentos', '0010_agendamentosfuncionarios'), ] operations = [ migrations.AlterModelTable( name='agendamentosfuncionarios', ...
20.722222
58
0.640751
288
0.772118
0
0
0
0
0
0
143
0.383378
72ee1cbe6083bf017bca4e5b6925555840bc1de4
1,288
py
Python
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
34.810811
75
0.714286
618
0.479814
0
0
0
0
0
0
610
0.473602
72ee24f7120a48a59768912e69a446c1ca036274
10,706
py
Python
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
import unittest import os from pyxdsm.XDSM import XDSM, __file__ from numpy.distutils.exec_command import find_executable def filter_lines(lns): # Empty lines are excluded. # Leading and trailing whitespaces are removed # Comments are removed. return [ln.strip() for ln in lns if ln.strip() and not ln....
33.772871
110
0.515412
10,310
0.963011
0
0
0
0
0
0
6,089
0.568746
72ef01a1de3148482533568abd4a325f3fc543ee
926
py
Python
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
9
2021-06-24T03:59:54.000Z
2022-03-06T06:22:54.000Z
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
null
null
null
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
3
2021-06-24T02:59:05.000Z
2021-09-01T00:44:19.000Z
# -*- coding: utf-8 -*- from wecom_sdk.base.crypt import encrypt_msg, decrypt_msg class WeChatWorkCallbackSDK(object): """ 企业微信回调SDK基本类,用于实现内部系统和企业微信客户端的双向通信 详细说明:https://work.weixin.qq.com/api/doc/90000/90135/90930 """ def __init__(self, token, encoding_aes_key): self.token = token ...
29.870968
93
0.62419
953
0.918112
0
0
0
0
0
0
418
0.402697
72ef3701a3a8ef52c1a792f4ce8c00616bb47526
351
py
Python
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
import psycopg2 from decouple import config import pandas as pd import dbconnect cursor, connection = dbconnect.connect_to_db() sql = """ SELECT "table_name","column_name", "data_type", "table_schema" FROM INFORMATION_SCHEMA.COLUMNS WHERE "table_schema" = 'public' ORDER BY table_name """ df = pd.read_sql(sql, con=co...
25.071429
62
0.77208
0
0
0
0
0
0
0
0
156
0.444444
72ef4fcc94a467e2eb56273b32fbc169f181effc
7,880
py
Python
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
663
2016-02-16T13:43:00.000Z
2022-03-13T17:21:19.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
347
2015-08-28T13:46:37.000Z
2016-02-16T01:53:06.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
122
2016-02-23T02:43:24.000Z
2022-03-04T17:21:14.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import sys try: from cdecimal import Decimal except ImportError: # pragma: no cover from decimal import Decimal from agate import Table from agate.aggregations import Sum from agate.computations import Percent from agate.data_types import Number, Text from agate....
33.248945
110
0.583629
7,527
0.955203
0
0
0
0
0
0
1,118
0.141878
72f00f9b87241d8593ec5b5f4a827b52ab93ebc1
156
py
Python
external/pyTorchChamferDistance/chamfer_distance/__init__.py
chengzhag/DeepPanoContext
14f847e51ec2bd08e0fc178dd1640541752addb7
[ "MIT" ]
52
2021-09-12T02:41:02.000Z
2022-03-05T21:55:36.000Z
external/pyTorchChamferDistance/chamfer_distance/__init__.py
mertkiray/EndtoEnd3DSceneUnderstandingWithAttention
f220017f8218c8ce311e9ffa1ee205ef0e735fc5
[ "MIT" ]
2
2021-11-25T06:50:19.000Z
2022-01-19T10:11:06.000Z
external/pyTorchChamferDistance/chamfer_distance/__init__.py
chengzhag/DeepPanoContext
14f847e51ec2bd08e0fc178dd1640541752addb7
[ "MIT" ]
9
2021-09-18T01:44:05.000Z
2022-01-12T16:19:46.000Z
import os os.makedirs(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'build')), exist_ok=True) from .chamfer_distance import ChamferDistance
39
99
0.769231
0
0
0
0
0
0
0
0
11
0.070513
72f29f7ed6f48568758a4eb5e3565edf5506bbba
1,332
py
Python
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
from functools import partial from impartial import impartial def f(x: int, y: int, z: int = 0) -> int: return x + 2*y + z def test_simple_call_args(): assert impartial(f, 1)(2) == f(1, 2) def test_simple_call_kwargs(): assert impartial(f, y=2)(x=1) == f(1, 2) def test_simple_call_empty(): asse...
20.492308
65
0.61036
0
0
0
0
50
0.037538
0
0
0
0
72f43506a3e179e12b61e504fc43770a91f14bf0
5,076
py
Python
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
2
2016-02-23T09:50:15.000Z
2016-02-28T22:08:03.000Z
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
''' Python script for uploading/downloading scripts for use with the game Screeps. http://support.screeps.com/hc/en-us/articles/203022612-Commiting-scripts-using-direct-API-access Usage: # # general help/usage # python3 manager.py --help # # retrieve all scripts from the game and store them...
22.460177
96
0.597715
0
0
0
0
0
0
0
0
1,547
0.304768
72f4405126d83aa638993123007b34b00b84222c
289
py
Python
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
class Contact: def __init__(self, first_name, last_name, nickname, address, mobile, email): self.first_name = first_name self.last_name = last_name self.nickname = nickname self.address = address self.mobile = mobile self.email = email
28.9
80
0.643599
288
0.99654
0
0
0
0
0
0
0
0
72f452ac4f4dcb2cc71e6a4cb7d5b81c957513cc
1,158
py
Python
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
import logging from django.views.generic import TemplateView from ...models import Feedback from ..chat.chat_context_mixin import ChatContextMixin logger = logging.getLogger(__name__) class AdminDashboardView(TemplateView, ChatContextMixin): """ View for the admin dashboard """ #: The template to ...
31.297297
101
0.686528
968
0.835924
0
0
0
0
0
0
618
0.533679
72f55f6824f11224ca92665bf8c3e8e323d9e480
15,144
py
Python
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
bhumikapahariapuresoftware/tangled-up-in-unicode
ee052e6f0fd4a0083178a163ec72dc37e2ad5d59
[ "BSD-4-Clause" ]
2
2019-09-28T23:46:24.000Z
2019-10-02T12:08:51.000Z
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
dylan-profiler/tangled_up_in_unicode
a4368c2b70f55d90381085bfcdf979f89e42138d
[ "BSD-4-Clause" ]
5
2020-02-16T06:02:27.000Z
2021-09-27T21:59:29.000Z
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
dylan-profiler/tangled_up_in_unicode
a4368c2b70f55d90381085bfcdf979f89e42138d
[ "BSD-4-Clause" ]
4
2020-02-17T19:55:32.000Z
2022-03-21T04:01:37.000Z
from typing import Optional import bisect from tangled_up_in_unicode.u14_0_0_data.prop_list_to_property import prop_list_to_property from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_start import blocks_to_block_start from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_end import blocks_to_block_end from ta...
36.403846
132
0.726162
0
0
0
0
0
0
0
0
1,671
0.110341
72f6da1974a7d86bd87801e4461a62cded6e702d
1,379
py
Python
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
from PIL import Image from PIL import ImageDraw from PIL import ImageFont import sys import ST7735 # Create ST7735 LCD display class object and set pin numbers and display hardware information. disp = ST7735.ST7735( dc=24, cs=ST7735.BG_SPI_CS_BACK, rst=25, port=0, width=122, height=160, ro...
26.519231
96
0.701233
0
0
0
0
0
0
0
0
612
0.443478
72f7f3e6d5b462f2c1a23997a28ebc45762b8fc7
245
py
Python
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
import sqlite3 conn=sqlite3.connect('Survey.db') fo=open('insertcommand.txt') str=fo.readline() while str: str="INSERT INTO data VALUES"+str conn.execute(str) #print(str) str=fo.readline() conn.commit() conn.close() fo.close()
16.333333
37
0.689796
0
0
0
0
0
0
0
0
66
0.269388
72f81be16085865d9021b61f8214e479cfae5efb
4,719
py
Python
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
42
2019-10-07T17:50:00.000Z
2022-03-28T17:56:27.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
23
2019-06-09T19:56:25.000Z
2022-03-02T01:53:13.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
15
2019-11-25T10:20:32.000Z
2022-03-01T21:14:56.000Z
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: HeadlessExperimental (experimental) from __future__ import annotations from cdp.util import event_class, T_JSON_DICT from dataclasses impo...
40.333333
300
0.700148
1,155
0.244755
3,107
0.658402
1,238
0.262344
0
0
2,600
0.550964
72f84712a4005f1ecc74d20ce01f90b1d0a8a90c
237
py
Python
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
1
2020-08-14T20:59:54.000Z
2020-08-14T20:59:54.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-03-31T11:16:01.000Z
2022-03-01T01:40:38.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-01-24T11:10:46.000Z
2020-03-31T11:24:34.000Z
import unittest from wvflib.geometry import Face class TestGeometry(unittest.TestCase): def test_constructor(self): f = Face() self.assertTrue(len(f.vertices) == 0) if __name__ == '__main__': unittest.main()
16.928571
45
0.675105
135
0.56962
0
0
0
0
0
0
10
0.042194
72f91b913afb43954a794d5c35602920d06bf7b3
11,325
py
Python
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
1
2019-07-28T10:11:01.000Z
2019-07-28T10:11:01.000Z
import pytest from detectem.core import Detector, Result, ResultCollection from detectem.plugin import Plugin, PluginCollection from detectem.settings import INDICATOR_TYPE, HINT_TYPE, MAIN_ENTRY, GENERIC_TYPE from detectem.plugins.helpers import meta_generator class TestDetector(): HAR_ENTRY_1 = { 'requ...
32.449857
93
0.47947
11,056
0.976247
0
0
7,077
0.624901
0
0
2,669
0.235673
72fa110e2fe65a7ff391593c876372e3cc4ad11c
8,317
py
Python
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
from django.dispatch.dispatcher import receiver from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.decorators import login_required from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, logout as aut...
39.046948
242
0.666106
0
0
0
0
5,126
0.616328
0
0
843
0.101359
72fac0ae2d96fa1f6d3aaf1194458c0e2fa5d7a4
143
py
Python
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
# Copyright (c) 2022, momscode and Contributors # See license.txt # import frappe import unittest class Testdepart(unittest.TestCase): pass
15.888889
47
0.776224
42
0.293706
0
0
0
0
0
0
79
0.552448
72fb29b0b3b127d1a4779c19adfdd5ba81413ede
2,057
py
Python
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
"""Python APIs for STIX 2. .. autosummary:: :toctree: api confidence datastore environment equivalence exceptions markings parsing pattern_visitor patterns properties serialization utils v20 v21 versioning workbench """ # flake8: noqa DEFAULT_VERSION = '2.1' # De...
31.646154
85
0.808459
0
0
0
0
0
0
0
0
408
0.198347
72fbd53ac87abb2352685e43c874d647c228dd86
125
py
Python
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
3
2017-07-08T16:29:06.000Z
2020-07-20T00:17:45.000Z
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
null
null
null
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
count = int(input()) title = 0 while count > 0: title += 1 if '666' in str(title): count -= 1 print(title)
12.5
27
0.536
0
0
0
0
0
0
0
0
5
0.04
72fc07d1bccf9a44ddf48057772608ff2bbcb0f5
197,684
py
Python
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
40
2020-07-11T10:07:51.000Z
2021-12-11T17:09:20.000Z
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
18
2020-07-20T18:54:31.000Z
2021-11-04T13:14:28.000Z
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
37
2020-07-09T23:12:30.000Z
2022-03-16T11:15:58.000Z
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : """IDNA Mapping Table from UTS46.""" __version__ = "11.0.0" def _seg_0(): return [ (0x0, '3'), (0x1, '3'), (0x2, '3'), (0x3, '3'), (0x4, '3'), (0x5, '3'), (0x6, '3'), (0x7, '3...
24.090178
58
0.353625
0
0
0
0
0
0
0
0
57,079
0.276416
72fc770cdae73372ef5eddce8deb799fc40b9990
3,078
py
Python
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import torch from torch import nn from kbcr.kernels import GaussianKernel from kbcr.smart import NeuralKB import pytest @pytest.mark.light def test_smart_v1(): embedding_size = 50 rs = np.random.RandomState(0) for _ in range(32): with torch.no_grad(...
30.475248
108
0.525016
0
0
0
0
2,829
0.919103
0
0
158
0.051332
72fca82d10a22b6f1dadf793abb5d2d66ab69ad0
254
py
Python
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
import tkinter window=tkinter.Tk() window.title("YUN DAE HEE") window.geometry("640x400+100+100") window.resizable(True, True) image=tkinter.PhotoImage(file="opencv_frame_0.png") label=tkinter.Label(window, image=image) label.pack() window.mainloop()
19.538462
51
0.775591
0
0
0
0
0
0
0
0
50
0.19685
72fd07154cf4859fb20d5f7aa637f41a882f2a27
584
py
Python
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
1
2020-03-29T17:52:26.000Z
2020-03-29T17:52:26.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
6
2021-03-19T00:01:21.000Z
2021-09-22T18:37:17.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import main_view, PredictionView #router = routers.DefaultRouter(trailing_slash=False) #router.register('years', YearView, basename='years') #router.register('predict', PredictionView, basename='predict') urlpatterns = [ #path('api/', get_dummy_data), #path('...
36.5
69
0.714041
0
0
0
0
0
0
0
0
384
0.657534
72fd5b11bfca65c6e323b75581cbff1627fbd28f
1,547
py
Python
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.conf import settings from termcolor import colored #: Red color constant for :func:`.ievv_colorize`. COLOR_RED = 'red' #: Blue color constant for :func:`.ievv_colorize`. COLOR_BLUE = 'blue' #: Yellow color constant for :func:`.ievv_colorize`. COLOR_YELLOW = 'yellow' #: Grey color constant for :func:`.i...
25.783333
82
0.614092
0
0
0
0
0
0
0
0
1,163
0.751778
72ff28fd3335697c188eb234e3558bfd46b20d35
12,438
py
Python
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
3
2020-04-14T14:08:11.000Z
2021-01-27T00:36:23.000Z
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
null
null
null
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
5
2020-02-15T09:54:13.000Z
2021-08-19T17:31:57.000Z
# coding: utf-8 # In[1]: import baostock as bs import pandas as pd import numpy as np import talib as ta import matplotlib.pyplot as plt import KlineService import BaoStockUtil import math import datetime from scipy import integrate from RSI import DayRSI,WeekRSI,MonthRSI,SixtyMinRSI from concurrent.futures import...
34.359116
133
0.651069
0
0
0
0
0
0
0
0
4,000
0.299177
72ff4801f405ee21c99ddd54c7ec445e3fe9a25d
1,558
py
Python
osnoise/conf/base.py
abousselmi/OSNoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
4
2017-11-17T13:19:32.000Z
2020-05-29T05:10:58.000Z
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Orange # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
26.40678
74
0.625802
0
0
0
0
0
0
0
0
873
0.560334
72ff4a4495a1cf2b2c794050ad0652e0aaf629e7
333
py
Python
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
from kivy.properties import NumericProperty from gui.sensors.sensor import Sensor import config class ProximitySensor(Sensor): """Proximity sensor view""" # maximum possible reading max = NumericProperty(config.ProximitySensor.max) # minimum possible reading min = NumericProperty(config.Proximit...
23.785714
53
0.768769
233
0.6997
0
0
0
0
0
0
79
0.237237
72ff9b4fe0f33f7f62e39cedf2e3740b3be6be6c
9,360
py
Python
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T13:43:36.000Z
2022-03-12T13:43:36.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T04:53:08.000Z
2022-03-12T13:41:15.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
null
null
null
#도움말 import discord from discord.ext import commands from discord.ext.commands import Context from define import * class HelpCommand_Context(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="도움말", aliases=["명령어", "?"]) @CommandExecutionTime async def _Hel...
52.58427
128
0.570833
12,023
0.982914
0
0
11,917
0.974248
11,823
0.966563
5,617
0.459205
f400616765ba783e10a8ef7b8571b9c9e51facfb
778
py
Python
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
12
2020-07-18T16:55:23.000Z
2022-03-14T12:26:08.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
5
2021-05-31T22:08:51.000Z
2021-08-31T15:42:44.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
2
2021-09-24T03:02:27.000Z
2021-11-09T06:21:00.000Z
import cProfile import pstats import os # 性能分析装饰器定义 def do_cprofile(filename): """ Decorator for function profiling. """ def wrapper(func): def profiled_func(*args, **kwargs): # Flag for do profiling or not. DO_PROF = False if DO_PROF: profil...
27.785714
61
0.521851
0
0
0
0
0
0
0
0
147
0.184673
f400d61d2c093b253733ba5d9d909f4f48a668af
1,629
py
Python
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
28.578947
75
0.683855
859
0.525704
0
0
675
0.413097
0
0
1,028
0.629131
f4030f6d52f16b8e41c89e74609c247cf9d493ab
864
py
Python
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
1
2021-07-07T12:24:58.000Z
2021-07-07T12:24:58.000Z
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .converters import Converter, UnstructureStrategy __all__ = ('global_converter', 'unstructure', 'structure', 'structure_attrs_fromtuple', 'structure_attrs_fromdict', 'UnstructureStrategy') __author__ = 'Tin Tvrtković' __email__ = 'tinchester@gmail.com' global_conve...
37.565217
76
0.834491
0
0
0
0
0
0
0
0
177
0.204624
f40395409149c4799e946dbfb2cb47f22353b013
4,531
py
Python
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., 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/LICENS...
32.364286
110
0.604282
0
0
0
0
0
0
0
0
1,988
0.438755
f404334cff69f2f2935c67baf019e6df2ad2e301
12,512
py
Python
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/DeepLearningProject
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
2
2021-09-03T11:44:31.000Z
2021-09-22T11:51:47.000Z
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
null
null
null
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
1
2020-10-20T08:06:50.000Z
2020-10-20T08:06:50.000Z
""" StarGAN v2 Copyright (c) 2020-present NAVER Corp. This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, US...
40.623377
164
0.629955
7,466
0.596707
0
0
1,064
0.085038
0
0
1,948
0.155691
f404724df75288d1e7ccb8f451caae2678af6f55
534
py
Python
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
# Uses python3 import sys def lcm_naive(a, b): for l in range(1, a*b + 1): if l % a == 0 and l % b == 0: return l return a*b def gcd(a, b): if a%b == 0: return b elif b%a == 0: return a if a > b: return gcd(a%b, b) else: return gcd(b%...
14.833333
37
0.456929
0
0
0
0
0
0
0
0
74
0.138577
f404f9b14c52ee5b292f41c316a483d68139b651
2,261
py
Python
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
import random highscore = [] def not_in_range(guess_it): """This is to check that the numbers inputted by the user are in range, and will let the user know. If the numbers are in range then it passes. """ if guess_it < 1: print('I am not thinking of negative numbers!') elif guess_it > 10:...
32.3
88
0.590889
0
0
0
0
0
0
0
0
1,079
0.477222
f406ec6db00306ef4d7774bf08e8d323010c32b3
201
py
Python
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
null
null
null
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
null
null
null
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
1
2021-06-09T14:09:01.000Z
2021-06-09T14:09:01.000Z
#!/usr/bin/env python3 USER = r'server\user' PASSWORD = 'server_password' HOSTNAME = 'hostname.goes.here.com' DOMAIN = 'domain.goes.here.com' FROM_ADDR = 'emailyouwanttosendmessagesfrom@something.com'
28.714286
58
0.771144
0
0
0
0
0
0
0
0
145
0.721393
f407b452be28a7b2d21cb5bd0c9039e2720ed8e1
1,956
py
Python
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # MIT License # # Copyright (c) 2021 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 limi...
33.724138
94
0.762781
0
0
0
0
0
0
0
0
1,543
0.788855
f407eb6974ae23f62280d5ff068afc9b35ea9eeb
984
py
Python
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
8
2019-05-20T19:26:01.000Z
2019-05-26T13:02:45.000Z
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
import click APP_YAML_TEMPLATE = """runtime: python37 env_variables: ELMO_BASE_URL: '{BASE_URL}' ELMO_VENDOR: '{VENDOR}' handlers: - url: /.* script: auto secure: always redirect_http_response_code: 301 """ @click.command() @click.argument("base_url") @click.argument("vendor") def generate_app_yaml(base_u...
25.230769
76
0.704268
0
0
0
0
709
0.720528
0
0
635
0.645325