hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
4361fce279ba39aaf412d8930d6f84378c2aa668
460
py
Python
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
class Animal(): edad:int patas:int ruido:str nombre: str kgComida: float = 0 def __init__(self, edad, patas, ruido, nombre): self.edad =edad self.patas = patas self.ruido = ruido self.nombre = nombre def comer(self, alimento): self.kgComida += alimento...
24.210526
57
0.595652
56
460
4.821429
0.375
0.111111
0.096296
0.140741
0
0
0
0
0
0
0
0.003021
0.280435
460
19
58
24.210526
0.812689
0
0
0
0
0
0.041215
0
0
0
0
0
0
1
0.1875
false
0
0
0
0.5625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
43626cff0461fc1edbacac7b7a76a2f308ada971
5,016
py
Python
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
""" Nonnegative CP decomposition by Hierarchical alternating least squares (HALS). With support for missing data. """ import numpy as np import scipy as sci from scipy import linalg from tensortools.operations import unfold, khatri_rao from tensortools.tensors import KTensor from tensortools.optimize import FitResult...
40.780488
94
0.60626
617
5,016
4.860616
0.388979
0.035012
0.023008
0.024008
0.132044
0.086029
0.058686
0
0
0
0
0.007922
0.245016
5,016
123
95
40.780488
0.783998
0.692185
0
0
0
0
0.009174
0
0
0
0
0
0
1
0.038462
false
0
0.269231
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4363164b554bb6ade5f87250305647778400993f
18,079
py
Python
raredecay/tools/data_tools.py
jonas-eschle/raredecay
6285f91e0819d01c80125f50b24e60ee5353ae2e
[ "Apache-2.0" ]
7
2016-11-19T17:28:07.000Z
2020-12-29T19:49:37.000Z
raredecay/tools/data_tools.py
mayou36/raredecay
5b319ada66ebe54f81e216efad81fc9f06237a30
[ "Apache-2.0" ]
23
2017-03-13T19:13:58.000Z
2021-05-30T21:48:50.000Z
raredecay/tools/data_tools.py
jonas-eschle/raredecay
6285f91e0819d01c80125f50b24e60ee5353ae2e
[ "Apache-2.0" ]
5
2016-12-17T19:24:13.000Z
2021-05-31T14:32:34.000Z
""" @author: Jonas Eschle "Mayou36" DEPRECEATED! USE OTHER MODULES LIKE rd.data, rd.ml, rd.reweight, rd.score and rd.stat DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED! Contains several tools to convert, load, save and plot data """ import warnings import os import copy import pandas as pd import...
34.969052
117
0.636872
2,497
18,079
4.429315
0.161394
0.053707
0.014919
0.015913
0.242767
0.194846
0.165371
0.149458
0.142224
0.135895
0
0.004557
0.271752
18,079
516
118
35.036822
0.835485
0.44571
0
0.230415
0
0
0.037895
0
0
0
0
0.005814
0.013825
1
0.069124
false
0.009217
0.059908
0
0.21659
0.004608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4363297eb771b020c864cdfbc69be70aff1727b6
2,052
py
Python
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal import DistributedBoardOfficeAI from toontown.toonbase import ToontownGlobals from toontown.coghq.boardbothq import BoardOfficeLayout from direct.showbase import DirectObject import random class BoardOfficeManagerAI(DirectObject.DirectObject): notify = DirectNotif...
41.04
141
0.639376
187
2,052
6.973262
0.358289
0.023006
0.020706
0.03681
0.11273
0.062117
0.062117
0
0
0
0
0.002714
0.281676
2,052
49
142
41.877551
0.881954
0
0
0.119048
0
0
0.070175
0
0
0
0
0
0
1
0.071429
false
0
0.166667
0.02381
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436393af32e8421a7a3401c8eb82314850e79873
2,144
py
Python
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
from typing import Union def key_value_list(d: Union[dict, list], key=None) -> list: """ This function iterates over all the key-value pairs of a dictionary and returns a list of tuple (key, value) where the key contain only primitive value (i.e., no list or dict), e.g., string, number etc. d -- a diction...
25.831325
206
0.564366
301
2,144
3.950166
0.199336
0.083263
0.070648
0.035324
0.541632
0.541632
0.518923
0.471825
0.392767
0.335576
0
0
0.333022
2,144
82
207
26.146341
0.831469
0.215951
0
0.470588
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.019608
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4364633db5685f14b086dbb59f77e9958e56ad15
2,913
py
Python
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
null
null
null
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
null
null
null
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
1
2019-01-10T18:50:35.000Z
2019-01-10T18:50:35.000Z
from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans from yampy.models import extract_id class GroupsAPI(object): """ Provides an interface for accessing the groups related endpoints of the Yammer API. You should not instantiate this class directly; use the :meth:`yampy.Yam...
28.281553
79
0.599725
338
2,913
4.985207
0.295858
0.08724
0.066469
0.047478
0.389911
0.308012
0.308012
0.255786
0.226706
0.123442
0
0.000994
0.309303
2,913
102
80
28.558824
0.836481
0.310333
0
0.372093
0
0
0.047647
0
0
0
0
0
0
1
0.209302
false
0
0.046512
0.023256
0.465116
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4364ccde24cc2af35ff42479b35b005f175a3209
24,502
py
Python
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
118
2019-06-03T06:19:43.000Z
2022-03-25T00:05:26.000Z
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
761
2015-01-08T11:17:41.000Z
2019-05-27T16:12:08.000Z
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
70
2019-05-30T11:05:26.000Z
2022-03-30T11:51:23.000Z
# -*- coding: utf-8 -*- """Actions and snippets.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import inspect from functools import partial, wraps import logging import re import sys import...
35.305476
99
0.587952
2,938
24,502
4.792716
0.141253
0.022655
0.01811
0.009445
0.212201
0.128116
0.111356
0.088346
0.081812
0.056956
0
0.002845
0.282793
24,502
693
100
35.356421
0.798441
0.324218
0
0.198939
0
0
0.064941
0.003771
0
0
0
0
0.02122
1
0.106101
false
0.007958
0.02122
0.002653
0.249337
0.023873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436637ae94348f41cc38697c102e03126553cd4f
807
py
Python
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
""" delete all .pyc bytecode files in a directory tree: use the command line arg as root if given, else current working dir """ import os, sys findonly = False rootdir = os.getcwd() if len(sys.argv) == 1 else sys.argv[1] found = removed = 0 for (thisDirLevel, subsHere, filesHere) in os.walk(rootdir): for filename...
31.038462
65
0.553903
96
807
4.645833
0.59375
0.03139
0.035874
0
0
0
0
0
0
0
0
0.012915
0.328377
807
25
66
32.28
0.809963
0.14746
0
0
0
0
0.048529
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436697d1038207224e723ad6677937d00c16b249
207
py
Python
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
1
2022-02-28T13:00:48.000Z
2022-02-28T13:00:48.000Z
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
null
null
null
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SudocRecouvConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'sudoc_recouv' verbose_name = 'Analyses de recouvrement SUDOC'
25.875
56
0.768116
24
207
6.458333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.154589
207
7
57
29.571429
0.885714
0
0
0
0
0
0.342995
0.140097
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
4366c0b4bfc3d82921cf8860654a9fdf8156bfc0
893
py
Python
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
24
2018-10-17T04:42:56.000Z
2022-03-03T10:27:56.000Z
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
5
2019-03-01T17:14:48.000Z
2022-01-21T23:11:39.000Z
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
11
2019-03-01T15:16:24.000Z
2022-03-03T10:27:59.000Z
import boto3 from logger import logger class States: def __init__(self, boto3_session=None): self.boto3_session = boto3_session or boto3.Session() self.client = self.boto3_session.client('stepfunctions') def fail(self, task_token, error, cause): params = dict(taskToken=task_token, er...
35.72
69
0.693169
116
893
5.163793
0.275862
0.09015
0.080134
0.115192
0.345576
0.205342
0.205342
0.205342
0.205342
0
0
0.008345
0.194849
893
24
70
37.208333
0.824757
0
0
0
0
0
0.083987
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
43670f7c99a2ebd5fc17181669e6be4597ca4939
25,401
py
Python
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional, Type, Union from cx_const import Light, PredefinedActionsMapping from cx_core.color_helper import get_color_wheel from cx_core.controller import action from cx_core.feature_support.light import LightSupport from cx_core.integration import EventData from cx_core.integration.decon...
37.686944
117
0.565332
2,526
25,401
5.4327
0.112035
0.101436
0.046491
0.036071
0.478102
0.37193
0.28077
0.213364
0.174525
0.163521
0
0.004411
0.357427
25,401
673
118
37.742942
0.836233
0.074761
0
0.470389
0
0
0.054828
0.008555
0
0
0
0
0
1
0.00846
false
0
0.021997
0.005076
0.093063
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4367a493fbe503c8a8ff6c69a39f88b75c5407aa
125
py
Python
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from typing import Union import pandas as pd from kts.core.frame import KTSFrame AnyFrame = Union[pd.DataFrame, KTSFrame]
15.625
40
0.792
19
125
5.210526
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.152
125
7
41
17.857143
0.933962
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
4368cab14b8dd0a73f5639ed6a1c9ef3a5f4c07f
354
py
Python
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
2
2016-03-31T05:35:28.000Z
2017-04-12T00:11:59.000Z
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
null
null
null
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
null
null
null
from app import db from flask.ext.login import UserMixin class User(UserMixin, db.Model): __tablename__ = 'oauth2users' id = db.Column(db.Integer, primary_key=True) social_id = db.Column(db.String(64), nullable=False, unique=True) nickname = db.Column(db.String(64), nullable=False) email = db.Colum...
29.5
69
0.717514
52
354
4.769231
0.519231
0.129032
0.16129
0.193548
0.354839
0.354839
0.25
0
0
0
0
0.023333
0.152542
354
11
70
32.181818
0.803333
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4369ad9700348a9af2bc92b402bcac16112c9914
16,746
py
Python
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
1
2019-03-27T02:24:22.000Z
2019-03-27T02:24:22.000Z
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
null
null
null
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
null
null
null
import markdown from comments.forms import CommentForm,BookCommentForm,MovieCommentForm from django.shortcuts import render, get_object_or_404 from.models import Post,Category,Tag, Book,Movie #from django.http import HttpResponse from django.views.generic import ListView, DetailView from django.utils.text import slugif...
33.967546
96
0.582706
1,813
16,746
5.184225
0.163817
0.044686
0.018725
0.024258
0.604107
0.571763
0.545803
0.528035
0.513565
0.498457
0
0.012035
0.320256
16,746
493
97
33.967546
0.81367
0.15341
0
0.746711
0
0
0.066185
0.0151
0
0
0
0
0
1
0.065789
false
0
0.026316
0.003289
0.325658
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
436a1ebb3d99a1475a443393df66a840b227b6bf
4,916
py
Python
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-10-01T10:29:15.000Z
2019-10-01T10:29:15.000Z
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
3
2019-07-12T22:10:38.000Z
2019-07-12T22:10:49.000Z
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-06-21T05:08:09.000Z
2019-06-21T05:08:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.728155
198
0.621237
516
4,916
5.666667
0.24031
0.076607
0.082763
0.109097
0.392955
0.198358
0.147743
0.147743
0.121067
0.121067
0
0
0.240236
4,916
102
199
48.196078
0.782865
0.086859
0
0.246753
0
0
0.267753
0.027914
0
0
0
0
0
1
0.012987
false
0
0.038961
0
0.051948
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436a24c432c8bd3a3066c5adcc757a189d209bf5
332
py
Python
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
1
2020-08-03T07:54:59.000Z
2020-08-03T07:54:59.000Z
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
import sys IMAGES_PATH = sys.path[1] + "/Images" BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background' USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg" SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite' PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile' CONFIGURATION_FILES_PATH = sys.path[1] + "/configur...
36.888889
73
0.795181
44
332
5.568182
0.363636
0.285714
0.171429
0.097959
0
0
0
0
0
0
0
0.006645
0.093373
332
9
74
36.888889
0.807309
0
0
0
0
0
0.219219
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
436a53c20b8a7b3181b33290aeb94d9c5458f945
1,558
py
Python
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
8
2021-10-12T05:39:20.000Z
2022-03-31T10:55:01.000Z
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
1
2022-03-30T19:23:42.000Z
2022-03-30T19:23:42.000Z
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
5
2021-11-17T07:38:28.000Z
2022-01-31T10:46:36.000Z
import unittest import torch from parameterized import parameterized from src.constructor import create_backbone from src.models.backbones.utils import list_models from .test_segmentation import example_backbones def inp(bsize, in_ch, w, h): return torch.ones(bsize, in_ch, w, h) class TestBackboneCorrectness(...
38.95
99
0.717587
205
1,558
5.24878
0.331707
0.066915
0.064126
0.080855
0.604089
0.469331
0.469331
0.469331
0.438662
0.438662
0
0.003837
0.163671
1,558
39
100
39.948718
0.821949
0
0
0.333333
0
0
0.030167
0
0
0
0
0
0
1
0.166667
false
0
0.2
0.033333
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436c11b07a0ae268fa5c1da96fe20213b0b714a7
3,501
py
Python
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
1
2021-01-10T18:04:25.000Z
2021-01-10T18:04:25.000Z
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
5
2021-02-13T14:30:27.000Z
2021-02-13T17:27:58.000Z
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
1
2022-02-10T14:57:27.000Z
2022-02-10T14:57:27.000Z
import typing from . import base from . import fields from .inline_query_result import InlineQueryResult from .location import Location from .user import User class InlineQuery(base.TelegramObject): """ This object represents an incoming inline query. When the user sends an empty query, your bot could r...
52.253731
118
0.625821
445
3,501
4.826966
0.32809
0.040968
0.083799
0.067039
0.15689
0.116387
0.070764
0.037244
0
0
0
0.004928
0.304484
3,501
66
119
53.045455
0.877207
0.053985
0
0
0
0
0.002805
0
0
0
0
0
0
1
0
true
0
0.230769
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
436d01399c03b77d98f4cf23e9025181a7999308
3,767
py
Python
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
import nltk import json import plotly import pandas as pd import plotly.graph_objects as go from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize nltk.download(['punkt','wordnet']) from flask import Flask from flask import render_template, request, jsonify from plotly.graph_objs import Bar, H...
25.281879
131
0.528537
386
3,767
5.056995
0.411917
0.020492
0.012295
0.025615
0
0
0
0
0
0
0
0.007383
0.352801
3,767
148
132
25.452703
0.793273
0.120255
0
0.174757
0
0
0.137094
0.010312
0
0
0
0
0
1
0.038835
false
0
0.116505
0
0.184466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436d1a37515679503cc50623874a3539d00946be
4,659
py
Python
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2019-09-22T01:05:07.000Z
2019-09-22T01:05:07.000Z
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2019-09-20T01:33:37.000Z
2019-09-20T08:42:11.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.mxnet.mx_reshape_to_reshape import MXReshapeToReshape from openvino.tools.mo.ops.Reverse import Reverse from openvino.tools.mo.ops.mxreshape import MXReshape from openvino.tools.mo.front.c...
59.730769
127
0.69457
598
4,659
5.137124
0.192308
0.042318
0.042318
0.046875
0.593099
0.484701
0.37207
0.257813
0.166667
0.152344
0
0.017483
0.201975
4,659
77
128
60.506494
0.808768
0.087787
0
0
0
0
0.040986
0
0
0
0
0
0
1
0.037037
false
0
0.222222
0.018519
0.351852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
436dafbd787a4e7854f10318324bcf64277e6432
6,480
py
Python
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
import unittest; import numpy as np; import scipy as sp; from cubic_spline_solve import cubic_spline_solve; from cubic_spline_fun import cubic_spline_fun; class Test_cubic_spline_solve(unittest.TestCase): ''' Test_cubicsplineSolve Test case for the cubic spline solver function. This function just solv...
37.241379
78
0.564352
795
6,480
4.525786
0.197484
0.073374
0.080044
0.100056
0.651473
0.629516
0.61284
0.611451
0.444692
0.423013
0
0.036954
0.310957
6,480
174
79
37.241379
0.768869
0.194907
0
0.48
0
0
0.009957
0
0
0
0
0
0.14
1
0.05
false
0
0.05
0
0.13
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
437021d671825e959375a0374106a655349dffb0
7,803
py
Python
PassWord.py
IQUBE-X/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
1
2020-07-11T07:59:54.000Z
2020-07-11T07:59:54.000Z
PassWord.py
dhruvaS-hub/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
null
null
null
PassWord.py
dhruvaS-hub/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
1
2021-06-02T10:11:19.000Z
2021-06-02T10:11:19.000Z
# PassWord - The Safe Password Generator App! # importing the tkinter module for GUI from tkinter import * # importing the message box widget from tkinter from tkinter import messagebox # importing sqlite3 for database import sqlite3 # importing random for password generation import random # creatin...
32.648536
134
0.656927
1,065
7,803
4.748357
0.213146
0.016611
0.023729
0.028475
0.371564
0.307099
0.282183
0.273878
0.2193
0.191418
0
0.026251
0.22376
7,803
238
135
32.785714
0.808651
0.301679
0
0.222222
0
0
0.12163
0
0
0
0
0
0
1
0.055556
false
0.407407
0.037037
0
0.092593
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4370bea6e2a16934ad57aff4637712bbcfdb6bc4
331
py
Python
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
from string import ascii_lowercase ts = 'a123bc34d8ef34' cur = [] res = set() for c in ts: if c in ascii_lowercase: if cur: s = ''.join(cur) res.add(int(s)) cur = [] else: cur.append(c) else: if cur: s = ''.join(cur) res.add(int(s)) pri...
13.24
34
0.480363
45
331
3.488889
0.466667
0.11465
0.076433
0.127389
0.292994
0.292994
0.292994
0.292994
0.292994
0
0
0.039216
0.383686
331
24
35
13.791667
0.730392
0
0
0.588235
0
0
0.042683
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4371e6643a58d749ad832f8647f0481df0293c7c
1,087
py
Python
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
from flask import Flask, render_template, jsonify from reddit_handler import * app = Flask(__name__) meme_subreddits = ['izlam'] @app.route('/') def index(): return render_template('index.html') @app.route('/meme') def one_post(): sub = random.choice(meme_subreddits) re = get_posts(sub...
20.12963
84
0.601656
146
1,087
4.308219
0.308219
0.133545
0.127186
0.09539
0.303657
0.303657
0.303657
0.303657
0.18442
0.18442
0
0.020631
0.24195
1,087
53
85
20.509434
0.742718
0
0
0.235294
0
0
0.10058
0
0
0
0
0
0
1
0.147059
false
0
0.058824
0.058824
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4372710c66361fa93707980328afe4826b15ed27
6,609
py
Python
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver import re @pytest.fixture def driver(request): wd = webdriver.Chrome() wd.get("http://localhost/litecart/en/") request.addfinalizer(wd.quit) return wd # check that product names are identical on the main page and on product page def test_product_names(driv...
52.03937
125
0.733394
994
6,609
4.668008
0.096579
0.029095
0.075647
0.093103
0.859698
0.845043
0.805603
0.794828
0.748922
0.748922
0
0.004006
0.169012
6,609
126
126
52.452381
0.840859
0.191103
0
0.409091
0
0.045455
0.34392
0.054125
0
0
0
0
0.19697
1
0.090909
false
0
0.045455
0
0.151515
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
4372f137c065f7fda02b994b61b1b4bd3b7965e5
1,775
py
Python
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
null
null
null
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
1
2022-03-28T00:35:11.000Z
2022-03-29T21:17:06.000Z
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
null
null
null
import shutil from pyrite import fs from pyrite.command_line import run_command from pyrite.errors import UserError from pyrite.globals import Globals from os.path import join class LLVMInterface: _clang_path: str def __init__(self): self._clang_path = self._get_clang_path() def _get_clang_path(s...
29.583333
127
0.60507
213
1,775
4.826291
0.41784
0.070039
0.066148
0.061284
0.05642
0.05642
0
0
0
0
0
0
0.316056
1,775
59
128
30.084746
0.846787
0.132958
0
0.108108
0
0
0.138889
0
0
0
0
0
0
1
0.108108
false
0
0.162162
0
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43741937702bf1405a4a4845184d5f67e95b3dd1
526
py
Python
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
maxWeight = 30 value = [15, 7, 10, 5, 8, 17] weight = [15, 3, 2, 5, 9, 20] def bag(pos, selected): # calcula o total totalValue = 0 pesoTotal = 0 for i in selected: totalValue += value[i] pesoTotal += weight[i] if pesoTotal > maxWeight: return (0,0) if pos >= len(weight): return (totalValue, pesoT...
18.137931
41
0.629278
77
526
4.298701
0.480519
0.054381
0.042296
0
0
0
0
0
0
0
0
0.083538
0.226236
526
29
42
18.137931
0.72973
0.028517
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.238095
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
437727aaebd2b60da03893cf1960a1dac044f4b8
14,215
py
Python
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
2
2020-03-26T23:36:41.000Z
2020-03-27T03:04:27.000Z
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
null
null
null
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
1
2020-03-27T03:04:28.000Z
2020-03-27T03:04:28.000Z
import argparse from itertools import count import signal import sys import os import time import numpy as np import gym import torch import torch.autograd as autograd from torch.autograd import Variable import scipy.optimize import matplotlib.pyplot as plt from value import Value from policy import Policy from ut...
38.838798
143
0.636722
1,758
14,215
5.010808
0.191695
0.025542
0.044386
0.014531
0.281644
0.221137
0.181746
0.138949
0.10353
0.071972
0
0.012913
0.226381
14,215
365
144
38.945205
0.788124
0.105241
0
0.112903
0
0
0.153175
0.003519
0
0
0
0.027397
0
1
0.032258
false
0
0.072581
0
0.108871
0.040323
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
43785386d2679f8fabe7de8f8acd7359d1da2540
5,112
py
Python
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import f_classif, SelectKBest import numpy as np import pandas as pd import os mingw_path = 'C:\\Program Files\\mingw-w64\\x86_64-7.2.0-posix...
32.35443
150
0.714593
762
5,112
4.536745
0.23622
0.041655
0.032398
0.023141
0.372867
0.306624
0.273648
0.234596
0.18166
0.140006
0
0.020559
0.153169
5,112
157
151
32.56051
0.778009
0.382042
0
0
0
0.015625
0.17188
0.021283
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.078125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4378f461808522c0661a502153858f383b5e6b02
1,369
py
Python
discovery-provider/src/queries/get_plays_metrics.py
atticwip/audius-protocol
9758e849fae01508fa1d27675741228b11533e6e
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/src/queries/get_plays_metrics.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/src/queries/get_plays_metrics.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
import logging import time from sqlalchemy import func, desc from src.models import Play from src.utils import db_session logger = logging.getLogger(__name__) def get_plays_metrics(args): """ Returns metrics for play counts Args: args: dict The parsed args from the request args.start_tim...
27.938776
82
0.646457
180
1,369
4.733333
0.4
0.032864
0.052817
0.042254
0.161972
0.100939
0.100939
0.100939
0.100939
0.100939
0
0.001955
0.252739
1,369
48
83
28.520833
0.83089
0.252739
0
0
0
0
0.075587
0
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
437984a8785d9b1726c62d66ab94644c9b6578d8
5,275
py
Python
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
""" Django settings for CAutomation project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
27.473958
178
0.714123
578
5,275
6.351211
0.435986
0.060202
0.047943
0.054481
0.137565
0.126124
0.083628
0.083628
0.043585
0
0
0.022322
0.159242
5,275
191
179
27.617801
0.805412
0.250427
0
0.02521
1
0.016807
0.539383
0.441244
0
0
0
0
0
1
0
false
0.042017
0.02521
0
0.02521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
437c42fd9708572ca32db3dd04de75e0b264c088
1,361
py
Python
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2021-01-08T04:26:54.000Z
2022-02-04T22:22:27.000Z
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
null
null
null
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2019-06-06T19:36:17.000Z
2020-05-20T12:37:08.000Z
from .calculator import Calculator # noinspection PyTypeChecker class CreditCardCalculator(Calculator): def __init__(self, **kwargs): super(CreditCardCalculator, self).__init__(**kwargs) self.cc_debt = self.get_float(kwargs.get("cc_debt", 0)) self.add_c = self.get_float(kwargs.ge...
30.244444
70
0.543718
186
1,361
3.688172
0.22043
0.058309
0.087464
0.131195
0.167638
0.106414
0.072886
0
0
0
0
0.021135
0.339456
1,361
44
71
30.931818
0.741935
0.019104
0
0
0
0
0.024825
0
0
0
0
0
0
1
0.090909
false
0
0.030303
0.030303
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
437c6a6a6d5abf3db9e497007b852df839401638
2,075
py
Python
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
"""myst-parser package setup.""" from importlib import import_module from setuptools import find_packages, setup setup( name="myst-parser", version=import_module("myst_parser").__version__, description=( "An extended commonmark compliant parser, " "with bridges to docutils & sphinx." ), lo...
37.727273
88
0.61012
215
2,075
5.772093
0.567442
0.107172
0.141015
0.104754
0.043513
0
0
0
0
0
0
0.021848
0.227952
2,075
54
89
38.425926
0.752809
0.01253
0
0.039216
0
0
0.554577
0.0372
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
437d5b7a20ce44c03f3d4a4f70ef524faf474a1a
554
py
Python
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
114
2015-01-11T05:41:03.000Z
2021-08-31T03:47:12.000Z
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
29
2015-01-09T01:00:09.000Z
2019-09-25T06:04:02.000Z
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
50
2015-02-13T13:48:39.000Z
2019-08-07T09:45:11.000Z
#!/usr/bin/env python import collections, sys lines = [] f = collections.defaultdict(int) fe = collections.defaultdict(lambda: collections.defaultdict(int)) for line in sys.stdin: tok = [x.strip() for x in line.split('|||')] count = int(tok[4]) f[tok[1]] += count fe[tok[1]][tok[2]] += count lines...
26.380952
66
0.590253
90
554
3.633333
0.4
0.061162
0.06422
0.073395
0.061162
0
0
0
0
0
0
0.047727
0.205776
554
20
67
27.7
0.695455
0.036101
0
0
0
0
0.086304
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
437e1e0973bde8b1e251b37ffc137a684d4dc2b8
436
py
Python
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
3
2021-12-13T21:40:32.000Z
2022-03-28T08:08:36.000Z
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
null
null
null
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
1
2022-02-11T20:49:08.000Z
2022-02-11T20:49:08.000Z
from django.db import models import uuid from datetime import datetime from cassandra.cqlengine import columns from django_cassandra_engine.models import DjangoCassandraModel # Create your models here. class PostModel(DjangoCassandraModel): id = columns.UUID(primary_key=True, default=uuid.uuid4) title = column...
36.333333
63
0.802752
56
436
6.178571
0.535714
0.057803
0.109827
0.132948
0
0
0
0
0
0
0
0.002618
0.123853
436
12
64
36.333333
0.903141
0.055046
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
43826b793ab889bf34bea8a88631da20426a6acb
3,880
py
Python
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
""" Service Availability and Commitment Module This package contains the shipping methods defined by Fedex's ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for easy access. For more details on each, refer to the respective class's documentation. """ import datetime from ..base...
38.039216
111
0.643557
413
3,880
5.970944
0.435835
0.021898
0.024331
0.030819
0.027575
0.027575
0
0
0
0
0
0.003884
0.270103
3,880
101
112
38.415842
0.866879
0.334794
0
0.046512
0
0
0.059883
0.02483
0
0
0
0
0
1
0.069767
false
0
0.046512
0
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43844440dd179ab3f122498113b16b020a8f05b8
15,375
py
Python
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin import scipy.stats.stats as stats import pandas.core.algorithms as algos #from sklearn.utils.validation import check_is_fitted from sklearn.utils import check_array from ..transformer import MonotonicBinning pd.options.mode...
47.748447
117
0.625821
1,934
15,375
4.806101
0.158738
0.030124
0.023776
0.022593
0.308768
0.27262
0.242711
0.223346
0.205056
0.186767
0
0.00268
0.296195
15,375
321
118
47.897196
0.856298
0.145171
0
0.227545
0
0
0.090713
0.009515
0
0
0
0
0
0
null
null
0.017964
0.041916
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4385a715a45f63ba193550d4819fe3bbd3dc2013
7,908
py
Python
cupy/linalg/product.py
okapies/cupy
4e8394e5e0c4e420295cbc36819e8e0f7de90e9d
[ "MIT" ]
1
2021-10-04T21:57:09.000Z
2021-10-04T21:57:09.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2019-08-05T09:36:13.000Z
2019-08-06T12:03:01.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2022-03-24T13:19:55.000Z
2022-03-24T13:19:55.000Z
import numpy import six import cupy from cupy import core from cupy import internal from cupy.linalg.solve import inv from cupy.util import collections_abc matmul = core.matmul def dot(a, b, out=None): """Returns a dot product of two arrays. For arrays with more than one axis, it computes the dot product...
27.175258
79
0.592059
1,232
7,908
3.715909
0.157468
0.052862
0.045872
0.027523
0.37156
0.286588
0.263652
0.227829
0.20817
0.186326
0
0.009655
0.292742
7,908
290
80
27.268966
0.808868
0.397319
0
0.1875
0
0
0.057788
0
0
0
0
0.003448
0
1
0.0625
false
0
0.054688
0
0.257813
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4386319503aab2a6844b6ef0973d20403a850ff6
998
py
Python
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
22
2015-05-04T14:16:18.000Z
2021-05-12T07:21:14.000Z
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
null
null
null
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
12
2015-12-26T05:00:24.000Z
2022-02-28T05:03:13.000Z
def fibo(n): return n <= 1 or fibo(n-1) + fibo(n-2) def fibo_main(): for n in range(1,47): res = fibo(n) print("%s\t%s" % (n, res)) fibo_main() # profiling result for 47 numbers # profile: python -m profile fibo.py """ -1273940835 function calls (275 primitive calls) in 18966.707 seconds Ordered...
33.266667
80
0.607214
175
998
3.44
0.388571
0.119601
0.091362
0.119601
0.275748
0.224252
0.156146
0.156146
0.10299
0.10299
0
0.303155
0.269539
998
30
81
33.266667
0.522634
0.066132
0
0
0
0
0.037975
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
4387549ca0c49a838b5d253586eefe17b1221bbf
9,050
py
Python
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. 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 appl...
42.890995
189
0.650276
1,162
9,050
4.889845
0.223752
0.025343
0.016895
0.015839
0.429602
0.38226
0.336501
0.31503
0.293559
0.293559
0
0.014899
0.258343
9,050
210
190
43.095238
0.831645
0.259116
0
0.32
0
0
0.087002
0
0
0
0
0
0.016
1
0.08
false
0
0.056
0.016
0.24
0.104
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4388c3265a288b272ad7c01a54a34148e2ab938e
2,506
py
Python
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
1
2020-03-18T11:40:56.000Z
2020-03-18T11:40:56.000Z
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8-*- import tkinter.messagebox from tkinter import Button, Label, Tk from utils.functions import set_window_center from utils.sqlite_helper import DBHelper from inpanel import App class InitWindow(Tk): """初始化窗口""" def __init__(self): Tk.__init__(self) ...
29.482353
83
0.57901
309
2,506
4.469256
0.375405
0.050688
0.101376
0.026068
0.110065
0.075308
0.075308
0.075308
0.075308
0.053584
0
0.021253
0.286512
2,506
84
84
29.833333
0.751119
0.036712
0
0.032258
0
0
0.073109
0
0
0
0
0
0
1
0.096774
false
0
0.080645
0
0.193548
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4389760f68989bd2ea1837354a093cc8ebd81958
7,406
py
Python
Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
102
2015-01-28T20:51:35.000Z
2021-04-09T11:36:01.000Z
Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
56
2015-01-01T19:22:34.000Z
2020-01-28T13:48:14.000Z
python/sugar/sugar_warnings_wiki_table_generator.py
idscan/sugar
0a64153710d039dc081698be83562cdf464c84dc
[ "BSD-2-Clause" ]
28
2015-03-05T19:47:08.000Z
2021-01-17T21:07:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2014, Ruslan Baratov # All rights reserved. """ * Wiki table for `leathers` C++ project Expected format: ### Main table Name | Clang | GCC | MSVC | -----------------------------|----------|----------|------| static-ctor-not-thread-safe | *no* ...
27.634328
75
0.626924
1,009
7,406
4.294351
0.090188
0.090007
0.059081
0.048234
0.786522
0.776367
0.766213
0.755827
0.70367
0.65982
0
0.006285
0.226573
7,406
267
76
27.737828
0.750175
0.124089
0
0.737374
0
0
0.044486
0
0
0
0
0
0.015152
1
0.106061
false
0
0
0
0.252525
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
4389b795742ce4092fa55a8e1be92e8c6adf1239
2,945
py
Python
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
33.089888
78
0.69202
428
2,945
4.586449
0.408879
0.089659
0.024452
0.016302
0.117168
0.076414
0.051961
0.051961
0.051961
0.051961
0
0.00873
0.222071
2,945
88
79
33.465909
0.848101
0.568761
0
0.166667
0
0
0.015358
0
0
0
0
0
0
1
0.222222
false
0
0
0.027778
0.527778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4389f5cc4e8592cb8c9777c1297c9ec965389eb9
1,947
py
Python
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- from zwechathihu.mypdf import GenPdf from db.mysqlite import simpleToolSql data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_...
29.059701
257
0.634309
252
1,947
4.845238
0.392857
0.058968
0.054054
0.083538
0.396396
0.357903
0.312039
0.312039
0.283374
0.173628
0
0.083851
0.173087
1,947
67
258
29.059701
0.674534
0.336415
0
0.542857
0
0.028571
0.410418
0.038674
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
438cea957a4d584b046abd2a8ee5c64fd504407c
1,168
py
Python
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
31
2021-07-28T13:06:11.000Z
2022-03-10T12:16:44.000Z
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
483
2021-07-29T03:17:44.000Z
2022-03-31T13:03:04.000Z
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
29
2021-07-28T13:06:21.000Z
2022-03-25T06:18:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
46.72
115
0.808219
178
1,168
5.179775
0.623596
0.065076
0.032538
0.048807
0.074837
0
0
0
0
0
0
0.010816
0.129281
1,168
24
116
48.666667
0.895772
0.618151
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
438e9f1f07ffd73b9b9fd9f25c52f215537b1381
1,358
py
Python
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
null
null
null
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
4
2022-01-14T10:40:47.000Z
2022-02-14T13:01:13.000Z
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
null
null
null
import unittest import numpy as np from task import arr, permuted_2d, fully_random class TestCase(unittest.TestCase): def test_shape(self): self.assertEqual((5, 20), arr.shape, msg="Wrong shape of the array 'arr'.") self.assertEqual((5, 20), permuted_2d.shape, msg="Wrong shape of the array 'permu...
46.827586
115
0.635493
209
1,358
4.057416
0.373206
0.058962
0.04717
0.063679
0.15566
0.099057
0.099057
0
0
0
0
0.023692
0.25405
1,358
28
116
48.5
0.813425
0.217231
0
0
0
0
0.234405
0
0
0
0
0
0.333333
1
0.222222
false
0
0.166667
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
438f17abc40a90f956704fbac8d28a04a5de63c3
2,409
py
Python
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The channel model UI module Copyright 2017-2018, Leo Moll and Dominik Schlösser SPDX-License-Identifier: MIT """ # pylint: disable=import-error import os import xbmcgui import xbmcplugin import resources.lib.mvutils as mvutils from resources.lib.channel import Channel class ChannelUI(C...
26.766667
74
0.584475
249
2,409
5.574297
0.457831
0.028818
0.021614
0.036023
0
0
0
0
0
0
0
0.006699
0.318389
2,409
89
75
27.067416
0.838611
0.253217
0
0
0
0
0.043375
0
0
0
0
0
0
1
0.083333
false
0
0.104167
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
438f4c0d3f4d94dad9a093f3100bc1608c38e26a
6,838
py
Python
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
3
2019-01-06T08:00:11.000Z
2019-03-13T13:24:23.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
1
2018-11-27T17:16:57.000Z
2018-12-15T07:51:26.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
2
2018-12-15T14:03:41.000Z
2019-01-26T14:22:07.000Z
#!/usr/bin/env python3 #Credit to @Alright for the RPCs import re import os import requests import json import platform # define function that fetchs rpc creds from .conf def def_credentials(chain): operating_system = platform.system() if operating_system == 'Darwin': ac_dir = os.environ['HOME'] + '/...
32.254717
90
0.620942
691
6,838
5.960926
0.222865
0.054382
0.073804
0.054382
0.27968
0.246176
0.150036
0.062637
0.062637
0.033018
0
0.007203
0.248757
6,838
211
91
32.407583
0.794627
0.069903
0
0.278409
0
0
0.144816
0
0
0
0
0
0
1
0.096591
false
0.028409
0.028409
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43918d07649e9b1f2f91c59a28e777ac9f008513
46,128
py
Python
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
37
2015-04-21T15:33:53.000Z
2022-02-07T00:02:29.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
86
2015-02-01T22:26:02.000Z
2021-07-09T08:49:36.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
27
2015-01-26T16:01:09.000Z
2021-11-08T23:53:55.000Z
# -*- coding: utf-8 -*- from cwr.acknowledgement import AcknowledgementRecord, MessageRecord from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \ InterestedPartyForAgreementRecord from cwr.group import Group, GroupHeader, GroupTrailer from cwr.info import AdditionalRelatedInfoRecord from cwr.pars...
45.223529
96
0.560701
3,822
46,128
6.316327
0.099686
0.042873
0.031233
0.032807
0.450064
0.386728
0.367632
0.30297
0.301189
0.276749
0
0.001561
0.361039
46,128
1,019
97
45.26791
0.8175
0.000455
0
0.382927
0
0
0.125914
0.036876
0
0
0
0
0
1
0.107317
false
0
0.014634
0.029268
0.229268
0.002439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43924097832cb6270f8da8544d56269f7551b02e
6,651
py
Python
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
95
2018-10-31T12:12:01.000Z
2022-03-20T21:30:48.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
34
2018-10-22T11:01:15.000Z
2021-11-21T14:10:26.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
81
2018-10-23T08:37:20.000Z
2022-03-20T00:27:08.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import codecs,os,gzip,ctypes,ctypes.util,sys from struct import * from PIL import Image, ImageDraw, ImageFont # ====== Python script to convert TrueTypeFonts to TWRP's .dat format ====== # This script was originally made by https://github.com/suky for his chinese version of...
33.422111
106
0.537062
915
6,651
3.839344
0.30929
0.013664
0.005693
0.009394
0.054085
0.035867
0.00797
0.00797
0.00797
0
0
0.032258
0.324162
6,651
198
107
33.590909
0.749277
0.228236
0
0.181159
0
0.021739
0.180428
0
0
0
0
0.005051
0
1
0.036232
false
0
0.021739
0.007246
0.072464
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4392cd17a2182a5ad123dad587354133d5fbcf62
3,471
py
Python
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
105
2019-06-01T08:34:47.000Z
2022-03-15T11:48:36.000Z
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
111
2019-06-04T15:34:14.000Z
2022-03-12T21:03:20.000Z
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
26
2019-09-04T06:06:12.000Z
2022-01-03T03:40:11.000Z
import pytz from rest_auth.serializers import TokenSerializer from rest_framework.authtoken.models import Token from rest_framework.exceptions import ValidationError from rest_framework.fields import ( CharField, CurrentUserDefault, HiddenField, UUIDField, ChoiceField, ) from rest_framework.serializ...
30.182609
95
0.661481
374
3,471
6.016043
0.40107
0.021333
0.037778
0.024
0.130667
0.12
0.12
0.041778
0
0
0
0.000769
0.25036
3,471
114
96
30.447368
0.863951
0.111207
0
0.154762
0
0
0.108152
0.007795
0
0
0
0.008772
0
1
0.02381
false
0.107143
0.107143
0
0.369048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4393bd0d5f4f1245ce5fd0c8893a7351e5ec7276
3,589
py
Python
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
1
2020-07-25T13:59:25.000Z
2020-07-25T13:59:25.000Z
"""Automated speech recognition tests.""" import os import sys import unittest from pathlib import Path import requests from rhasspyhermes.asr import AsrTextCaptured from rhasspyhermes.nlu import NluIntent class AsrEnglishTests(unittest.TestCase): """Test automated speech recognition (English)""" def setUp...
35.534653
87
0.655893
445
3,589
5.110112
0.208989
0.092348
0.055409
0.046174
0.582674
0.551891
0.488127
0.423043
0.35708
0.35708
0
0.002848
0.217331
3,589
100
88
35.89
0.806693
0.067428
0
0.304348
0
0
0.182475
0.011743
0
0
0
0
0.231884
1
0.115942
false
0
0.101449
0.014493
0.246377
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4393be2aca5a25d561f41614d1c61c91497bb77e
775
py
Python
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
213
2020-05-21T12:37:37.000Z
2022-03-28T16:36:07.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
36
2020-08-14T08:23:34.000Z
2022-02-07T11:26:17.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
38
2020-05-21T20:03:30.000Z
2022-01-19T16:31:15.000Z
import torch import torch.nn as nn import torch.nn.functional as F from .discriminator import Discriminator from .identity import Identity class MultiScaleDiscriminator(nn.Module): def __init__(self): super(MultiScaleDiscriminator, self).__init__() self.discriminators = nn.ModuleList( ...
25.833333
83
0.602581
90
775
5.066667
0.466667
0.072368
0.057018
0.078947
0
0
0
0
0
0
0
0.012613
0.283871
775
29
84
26.724138
0.809009
0.058065
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4393d8ec0408fae06ace653dd14db15c556ea5c5
2,516
py
Python
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
10
2020-12-24T01:40:54.000Z
2021-06-03T01:22:34.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
4
2020-12-26T15:09:05.000Z
2021-10-01T13:36:16.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
3
2021-05-14T20:20:02.000Z
2021-08-09T19:10:12.000Z
from game import about_button, start_button, play_sound, center_pos import pygame WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (0, 255, 0) pygame.init() pygame.font.init() pygame.mixer.init() FONT = pygame.font.Font("assets/font.ttf", 70) FONT_MIN = pygame.font.Font("assets/font.ttf", 30) window = pygame.display.s...
31.45
95
0.591017
322
2,516
4.453416
0.326087
0.037657
0.029289
0.031381
0.104603
0.037657
0
0
0
0
0
0.040975
0.282194
2,516
80
96
31.45
0.753045
0
0
0.129032
0
0
0.059197
0
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43952014f41c3fec2a8b86f2f567eb906cd4cf2f
1,463
py
Python
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
from django.shortcuts import render, redirect from .models import Post from .forms import ScheduleForm from django.core.paginator import Paginator # Create your views here. def view_schedule(request): all_posts = Post.objects.all().order_by('pub_date') page = int(request.GET.get('p', 1)) pagenator = Pagina...
34.833333
75
0.6473
186
1,463
4.967742
0.38172
0.051948
0.064935
0.087662
0.170996
0.170996
0.114719
0.114719
0.114719
0
0
0.001776
0.230349
1,463
42
76
34.833333
0.818828
0.140123
0
0.071429
0
0
0.124
0.0832
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43956cd7582f0725f3e08ed11af962dc403ba2f7
402
py
Python
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
1
2018-11-18T22:42:09.000Z
2018-11-18T22:42:09.000Z
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
null
null
null
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
null
null
null
from .base import * # noqa CACHE_REDIS_DATABASE = '1' CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE INTERNAL_IPS = INTERNAL_IPS + ('', ) ALLOWED_HOSTS = [''] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'app_archetype_stg', ...
22.333333
72
0.58209
42
402
5.309524
0.761905
0.089686
0.161435
0
0
0
0
0
0
0
0
0.03871
0.228856
402
17
73
23.647059
0.680645
0.00995
0
0
0
0
0.333333
0.09596
0
0
0
0
0
1
0
false
0.071429
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4397c55661379269054e0b0a47adf3a823197ee1
173
py
Python
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here.] from website.sites.models import Post @admin.register(Post) class TestAdmin2(admin.ModelAdmin): pass
15.727273
38
0.768786
23
173
5.782609
0.695652
0.195489
0
0
0
0
0
0
0
0
0
0.006803
0.150289
173
11
39
15.727273
0.897959
0.156069
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
43985e0c9aab5f6373fb70168960c90190116e6d
4,005
py
Python
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
1
2021-12-20T12:03:49.000Z
2021-12-20T12:03:49.000Z
# Monte Carlo tree search for TicTacToe import numpy as np from tictactoe import Tictactoe import copy from random import choice from tree import Node import time class MCTS: ''' Class defining a simple monte carlo tree search algorithm. Attributes: - game: instance of TicTacToe game - cu...
35.131579
104
0.640949
491
4,005
5.075356
0.281059
0.099117
0.032103
0.016051
0.159711
0.110754
0.089888
0.089888
0.056982
0.056982
0
0.003825
0.281898
4,005
113
105
35.442478
0.862656
0.241698
0
0.131148
0
0
0.041465
0
0
0
0
0
0
1
0.081967
false
0
0.098361
0
0.262295
0.147541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4399aded5ee5a7bbfaba489cfa6e1bbdb4b8689f
3,911
py
Python
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
5
2021-06-24T03:19:47.000Z
2021-12-18T22:33:04.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
1
2022-02-04T14:52:40.000Z
2022-03-07T10:04:54.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
null
null
null
import pandas as pd from pandas.api.types import is_numeric_dtype from grimer.utils import print_log class Metadata: valid_types = ["categorical", "numeric"] default_type = "categorical" def __init__(self, metadata_file, samples: list=[]): # Read metadata and let pandas guess dtypes, index as str...
38.722772
136
0.628995
525
3,911
4.56
0.266667
0.110276
0.065163
0.06015
0.181287
0.131997
0.101921
0.101921
0.070175
0.070175
0
0.004075
0.246996
3,911
100
137
39.11
0.808829
0.158527
0
0.04918
0
0
0.075183
0
0
0
0
0
0
1
0.163934
false
0
0.04918
0.081967
0.42623
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439a75ca9b8d0ab554205540e1b91cb943b0c4ba
5,162
py
Python
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from typing import Optional, Dict, Any, List, Union from allennlp.common.checks import ConfigurationError class MetricTracker: """ This class tracks a metric during training for the dual purposes of early stopping and for knowing whether the current value is the best so far. It mimics the PyTorch `st...
38.522388
93
0.629407
681
5,162
4.51395
0.255507
0.040989
0.061483
0.035784
0.298959
0.140208
0.097918
0.097918
0.097918
0.097918
0
0.003814
0.288842
5,162
133
94
38.81203
0.83356
0.293103
0
0.142857
0
0
0.098136
0.015143
0
0
0
0
0
1
0.103896
false
0
0.025974
0
0.207792
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439aafbb1c6af8fc6a5c2fcb3a71f36930de52f2
605
py
Python
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
4
2019-01-07T09:15:17.000Z
2020-11-09T09:58:54.000Z
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
34
2019-01-07T15:30:14.000Z
2019-03-06T08:23:34.000Z
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
10
2018-12-18T14:43:52.000Z
2020-02-07T08:27:50.000Z
from authors.apps.utils.renderers import AppJSONRenderer import json from rest_framework.renderers import JSONRenderer class UserProfileJSONRenderer(AppJSONRenderer): name = 'profile' class UserProfileListRenderer(JSONRenderer): """ Returns profiles of existing users """ charset = 'utf-8' ...
23.269231
67
0.679339
61
605
6.672131
0.721311
0.07371
0
0
0
0
0
0
0
0
0
0.002165
0.236364
605
25
68
24.2
0.878788
0.135537
0
0
0
0
0.061983
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
439abf267a321356c428ab3774898fb305a07e4a
956
py
Python
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
import json from deepdiff import DeepDiff import pprint def get_json(file_name): with open(file_name) as json_file: json_data = json.load(json_file) return json_data def compare_json(Hostname, Command, Data1, Data2): if (Data1 == Data2): print ("%s - %s output is same" % (Hostname, Com...
30.83871
94
0.669456
129
956
4.782946
0.379845
0.06483
0.084279
0.084279
0.171799
0.123177
0.123177
0
0
0
0
0.018642
0.214435
956
30
95
31.866667
0.802929
0.095188
0
0
0
0
0.177289
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0
0.304348
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439b48ead1b5b023fe47fbce88acf0d32181f26a
9,437
py
Python
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
#!/usr/bin/env python # -- encoding: utf-8 -- # # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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...
35.212687
79
0.586097
1,086
9,437
4.997238
0.296501
0.041275
0.012161
0.017505
0.13009
0.090105
0.046434
0.046434
0.046434
0.029851
0
0.005191
0.326375
9,437
267
80
35.344569
0.848513
0.24192
0
0.246988
0
0
0.109652
0.009667
0
0
0
0
0
1
0.042169
false
0
0.048193
0
0.096386
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439b5da067d8952a4649cfcbc1a2148086951365
2,224
py
Python
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py) # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
35.870968
178
0.721223
304
2,224
5.171053
0.490132
0.038168
0.034351
0.038168
0.05916
0
0
0
0
0
0
0.017496
0.177608
2,224
61
179
36.459016
0.84199
0.447392
0
0.09375
0
0
0.062979
0.017872
0
0
0
0
0
1
0.125
false
0
0.15625
0
0.34375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439c484fa1d9a64793cf4da644af68eabbc13295
13,932
py
Python
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
import math import pymel.core as pymel from omtk.core.classNode import Node from omtk.libs import libAttr from omtk.libs import libRigging from . import model_avar_surface class SplitterNode(Node): """ A splitter is a node network that take the parameterV that is normally sent through the follicles and sp...
42.090634
162
0.680879
1,672
13,932
5.313397
0.184809
0.04964
0.059433
0.037821
0.497636
0.293224
0.208802
0.159838
0.146105
0.079244
0
0.004972
0.249282
13,932
330
163
42.218182
0.84444
0.196454
0
0.205607
0
0
0.07727
0.020942
0
0
0
0.00303
0
1
0.028037
false
0.079439
0.028037
0
0.070093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
439cc020be352b363d0141cede18e92d0b0f339f
5,910
py
Python
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
import datetime import os import pymongo import requests from urllib import parse from urllib.parse import quote_plus import json from retry import retry from bs4 import BeautifulSoup import math from project.server.main.logger import get_logger from project.server.main.utils_swift import upload_object from project.s...
36.708075
184
0.694755
862
5,910
4.488399
0.207657
0.044197
0.024813
0.024813
0.34505
0.283019
0.182735
0.182735
0.15482
0.124063
0
0.015648
0.178173
5,910
160
185
36.9375
0.780935
0.069036
0
0.123894
0
0.00885
0.216187
0.066533
0
0
0
0.00625
0
1
0.061947
false
0
0.168142
0
0.256637
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439e1a09f9246f51a2f4aa291d6172d1d6ae55e7
808
py
Python
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1tGct = DQMEDAnalyzer('L1TGCT', gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"), gctForwardJetsSource = cms.InputTag("gctDigis","forJets"), gctTauJetsSource = cms.InputTag("gctDigis","tauJets"), ...
38.47619
62
0.72896
79
808
7.43038
0.518987
0.131175
0.226576
0.068143
0
0
0
0
0
0
0
0.012821
0.131188
808
20
63
40.4
0.823362
0
0
0
0
0
0.136476
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
439e62c4d6bd84f9f57f7073032cb6f2eab27d1b
15,524
py
Python
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
11
2020-05-18T17:33:25.000Z
2022-01-28T18:42:31.000Z
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
null
null
null
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
1
2020-12-10T19:57:20.000Z
2020-12-10T19:57:20.000Z
""" General all-purpose utilities """ import sys import torch import torch.nn.functional as F import numpy as np import gurobipy as gb import matplotlib.pyplot as plt import io import contextlib import tempfile import time import re import pickle import inspect import glob import os COMPLETED_JOB_DIR = os.path.join(...
28.021661
81
0.659237
2,249
15,524
4.389506
0.200089
0.007901
0.005673
0.006483
0.154072
0.118922
0.091167
0.08671
0.075162
0.075162
0
0.005188
0.192863
15,524
553
82
28.072333
0.782682
0.397256
0
0.228296
0
0
0.038807
0.006709
0
0
0
0
0.057878
1
0.154341
false
0.003215
0.048232
0.016077
0.369775
0.003215
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439e723ba661ca0696137f422b31b51f63930e6a
387
py
Python
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}." REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}." LIST_KARMA_OWN = "You currently have {} karma." LIST_KARMA_OBJECT = "\"{}\" currently has {} karma." LIST_KARMA_MEMBER = "{} currently has {} karma." KARMA_TOP_STA...
38.7
81
0.669251
55
387
4.418182
0.436364
0.111111
0.098765
0.123457
0.139918
0
0
0
0
0
0
0
0.157623
387
9
82
43
0.745399
0
0
0
0
0
0.550388
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
43a00c0b5646519c438692fcd0610b44be3beb14
1,340
py
Python
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 6 14:51:24 2021 @author: laukkara This script is run first to fetch results data from university's network drive """ import os import pickle input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations' output_folder = os.path.join(r'C:\Local\laukkar...
20
81
0.630597
185
1,340
4.389189
0.481081
0.059113
0.078818
0.077586
0.16133
0
0
0
0
0
0
0.023976
0.252985
1,340
66
82
20.30303
0.787213
0.15597
0
0.066667
0
0
0.166517
0.10351
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a01f33e82c9b00675c1f842c3ac9effea08533
7,335
py
Python
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
1
2020-03-23T21:43:15.000Z
2020-03-23T21:43:15.000Z
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
null
null
null
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
null
null
null
"""Config for initializing the namex-api.""" import os from dotenv import find_dotenv, load_dotenv # this will load all the envars from a .env file located in the project root (api) load_dotenv(find_dotenv()) CONFIGURATION = { 'development': 'config.DevConfig', 'testing': 'config.TestConfig', 'production...
43.402367
210
0.718609
765
7,335
6.588235
0.288889
0.063492
0.031746
0.02381
0.35377
0.314881
0.248611
0.248611
0.248611
0.248611
0
0.052597
0.180913
7,335
168
211
43.660714
0.786285
0.112474
0
0.264
0
0
0.479228
0.353668
0
0
0
0
0
1
0
false
0.056
0.016
0
0.504
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
43a04a876b69a7d204627f4d6e2351f7e07cdf98
518
py
Python
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
import matplotlib.patches as mpatch import matplotlib.pyplot as plt styles = mpatch.BoxStyle.get_styles() figheight = (len(styles)+.5) fig1 = plt.figure(1, (4/1.5, figheight/1.5)) fontsize = 0.3 * 72 for i, (stylename, styleclass) in enumerate(styles.items()): fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei...
27.263158
71
0.629344
72
518
4.513889
0.597222
0.098462
0
0
0
0
0
0
0
0
0
0.04401
0.210425
518
18
72
28.777778
0.750611
0
0
0
0
0
0.015474
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a255b174f2f6995694a3ff518d32d995c17049
981
py
Python
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
37
2017-06-21T19:09:11.000Z
2022-03-13T09:26:07.000Z
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
51
2017-06-21T17:40:42.000Z
2021-10-31T09:16:21.000Z
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
12
2017-10-02T12:32:50.000Z
2022-03-13T09:26:15.000Z
from setuptools import setup setup( name='modestpy', version='0.1', description='FMI-compliant model identification package', url='https://github.com/sdu-cfei/modest-py', keywords='fmi fmu optimization model identification estimation', author='Krzysztof Arendt, Center for Energy Informatics SDU...
26.513514
68
0.59633
96
981
6.041667
0.71875
0.112069
0.051724
0
0
0
0
0
0
0
0
0.004138
0.260958
981
36
69
27.25
0.795862
0
0
0
0
0
0.494393
0.054027
0
0
0
0
0
1
0
true
0
0.028571
0
0.028571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
43a26f9573c5f714eb41be0b40f5f0e94681fe54
1,013
py
Python
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
import re import subprocess as sp from typing import Union, List from gfworkflow.exceptions import RunCommandException def run(command: Union[str, List[str]]): completed_process = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True) if completed_process.returncode: raise RunComman...
25.974359
96
0.722606
145
1,013
4.924138
0.482759
0.089636
0.039216
0.053221
0.05042
0
0
0
0
0
0
0.001163
0.151037
1,013
38
97
26.657895
0.82907
0
0
0
0
0
0.266535
0.04541
0
0
0
0
0
1
0.304348
false
0
0.173913
0.043478
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
43a2afd4837130116a518598c3c7bbcceafe7999
306
py
Python
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
31,928
2017-07-04T03:06:28.000Z
2022-03-31T22:33:27.000Z
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
5,216
2017-07-04T11:45:41.000Z
2022-03-31T22:02:14.000Z
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
3,056
2017-06-05T13:29:11.000Z
2022-03-31T20:54:43.000Z
# simple test function that uses python 3 features (e.g., f-strings) # see https://github.com/localstack/localstack/issues/264 def handler(event, context): # the following line is Python 3.6+ specific msg = f"Successfully processed {event}" # noqa This code is Python 3.6+ only return event
34
81
0.718954
47
306
4.680851
0.787234
0.095455
0.081818
0.090909
0
0
0
0
0
0
0
0.031873
0.179739
306
8
82
38.25
0.844622
0.653595
0
0
0
0
0.29703
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
43a39cbdc284d3d48cf14614c751040caf06e2f0
3,018
py
Python
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
2
2020-05-04T09:40:32.000Z
2021-08-03T17:34:00.000Z
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
#! usr/bin/python3 # code: utf-8 """Download data from Open Food Facts API.""" import json import requests from src.purchoice.constants import CATEGORY_SELECTED from src.purchoice.purchoice_database import PurchoiceDatabase class ImportOff: """ImportOff class downloads data from Open Food Facts API.""" de...
32.804348
79
0.594102
351
3,018
4.977208
0.404558
0.020607
0.037207
0.036634
0.100744
0.100744
0.032055
0
0
0
0
0.005778
0.311796
3,018
91
80
33.164835
0.835339
0.288602
0
0
0
0
0.143511
0
0
0
0
0
0
1
0.085106
false
0.021277
0.191489
0
0.340426
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a4f6e31b5eece16d50c0585d3ecac08d080d46
5,919
py
Python
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
''' Created on April 26, 2015 @author: norris ''' import ast, sys, os, traceback from orio.main.util.globals import * from orio.tool.graphlib import graph from orio.module.loop import astvisitors class CFGVertex(graph.Vertex): '''A CFG vertex is a basic block.''' def __init__(self, name, node=None): t...
32.521978
107
0.478459
665
5,919
4.133835
0.216541
0.055657
0.04729
0.02801
0.268825
0.224809
0.204074
0.184431
0.157512
0.157512
0
0.003687
0.404291
5,919
181
108
32.701657
0.77595
0.047643
0
0.288889
0
0
0.034062
0.012386
0
0
0
0.005525
0
0
null
null
0.051852
0.02963
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
43a51f00be6eeff0b67bd7aa629b9ff21c09189f
503
py
Python
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
import discord from discord import Embed @commands.Cog.listener() async def on_message_delete(self, message): channel = "xxxxxxxxxxxxxxxxxxxxx" deleted = Embed( description=f"Message deleted in {message.channel.mention}", color=0x4040EC ).set_author(name=message.author, url=Embed.Empty,...
33.533333
91
0.735586
62
503
5.854839
0.612903
0.077135
0
0
0
0
0
0
0
0
0
0.011848
0.161034
503
15
92
33.533333
0.848341
0
0
0
0
0
0.146939
0.093878
0
0
0.016327
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a5f6e07158fad4d7bfe9f3af12b2b23116e364
22,646
py
Python
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
320
2017-07-22T12:14:19.000Z
2022-03-24T14:00:32.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
272
2017-07-22T12:30:48.000Z
2022-03-30T07:14:50.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
36
2017-07-22T12:45:03.000Z
2021-05-18T12:20:11.000Z
import copy import inspect import json import logging import pytest import re import os import shutil import subprocess import time from datetime import datetime, timedelta from configparser import ConfigParser, ExtendedInterpolation from typing import Dict, List, Optional from pyhttpd.certs import CertificateSpec f...
37.806344
125
0.597457
2,920
22,646
4.414726
0.136644
0.03421
0.029788
0.026065
0.394616
0.338376
0.283841
0.241331
0.194709
0.169265
0
0.011539
0.280579
22,646
599
126
37.806344
0.779708
0.027025
0
0.253579
0
0
0.089703
0.007585
0
0
0
0
0.06953
1
0.147239
false
0
0.034765
0.06135
0.343558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a66e0d4848430d37cecb21387fa89ddac71ea8
1,949
py
Python
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
import datetime import json import random import string from typing import Dict from sms_counter import SMSCounter class CreateMessageResponse: def __init__(self, request): self.id = self.generate_id() self.owner = request['from'] self.applicationId = request['applicationId'] sel...
30.936508
91
0.578758
214
1,949
5.186916
0.28972
0.075676
0.046847
0.027027
0
0
0
0
0
0
0
0.021152
0.296562
1,949
62
92
31.435484
0.788476
0
0
0
0
0
0.086711
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a6cf6a117a9bd891a315706e175a03b6175d39
51,390
py
Python
python/ccxt/async_support/uex.py
victor95pc/ccxt
5c3e606296a1b15852a35f1330b645f451fa08d6
[ "MIT" ]
1
2019-03-17T22:44:30.000Z
2019-03-17T22:44:30.000Z
python/ccxt/async_support/uex.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
python/ccxt/async_support/uex.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
44.882096
465
0.432088
4,205
51,390
5.206421
0.158383
0.021559
0.015347
0.007537
0.390993
0.342347
0.30681
0.280181
0.245056
0.221532
0
0.075185
0.448978
51,390
1,144
466
44.921329
0.697708
0.340008
0
0.281907
1
0.004208
0.12438
0.00828
0
0
0
0
0
1
0.01683
false
0
0.015428
0.002805
0.078541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
43a74cac582bdf300bc81daa9bedf7b376e2c024
906
py
Python
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
def decimal_to_binary_fraction(x=0.5): """ Input: x, a float between 0 and 1 Returns binary representation of x """ p = 0 while ((2 ** p) * x) % 1 != 0: # print('Remainder = ' + str((2**p)*x - int((2**p)*x))) p += 1 num = int(x * (2 ** p)) result = '' if num == 0: ...
27.454545
97
0.566225
144
906
3.541667
0.493056
0.019608
0.017647
0
0
0
0
0
0
0
0
0.037559
0.294702
906
32
98
28.3125
0.760563
0.512141
0
0
0
0
0.007212
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a79fa3a61473b076f77344a5a402f9d3ac1f06
3,091
py
Python
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import datetime import logging import os import pathlib import time from composer.utils import dist log = logging.getLogger(__name__) _RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY" _start_time_str = datetime.datetime.now().isoformat() def get_node_run_directory() ->...
35.125
102
0.697185
418
3,091
4.937799
0.320574
0.174419
0.069767
0.018411
0.271318
0.248062
0.217054
0.217054
0.126938
0.085271
0
0.002067
0.217405
3,091
87
103
35.528736
0.851178
0.339696
0
0.136364
0
0
0.065319
0.026439
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a848be2ab70fca075a6b29e18609d29a8a5a7d
1,109
py
Python
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-11 08:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newsapp', '0002_auto_20200711_1124'), ] operations = [ migrations.CreateModel( name='News', fields=[ ...
34.65625
114
0.538323
95
1,109
6.105263
0.557895
0.189655
0.360345
0
0
0
0
0
0
0
0
0.040736
0.313796
1,109
31
115
35.774194
0.721419
0.040577
0
0
1
0
0.176083
0.021657
0
0
0
0
0
1
0
false
0
0.04
0
0.16
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
43a8bd9cb32de8f8138b7b033dc19e078566fbea
426
py
Python
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
5
2019-08-02T17:59:10.000Z
2021-05-14T08:30:55.000Z
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
4
2018-10-26T06:52:05.000Z
2022-01-31T20:31:17.000Z
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from enum import Enum from typing import TypeVar, Type, List, Iterable, cast from faker.providers import BaseProvider TEnum = TypeVar("TEnum", bound=Enum) class EnumProvider(BaseProvider): """ A Provider for enums. """ def enum(self, enum_cls: Type[TEnum]) -> TEnum: ...
22.421053
68
0.676056
54
426
5.277778
0.555556
0.049123
0
0
0
0
0
0
0
0
0
0.002924
0.197183
426
18
69
23.666667
0.830409
0.103286
0
0
0
0
0.013661
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
43a8f0198728c9384389bf87f96be11372c94f28
262
py
Python
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
4,959
2018-09-13T08:42:51.000Z
2021-01-05T07:01:44.000Z
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
864
2018-09-13T20:48:04.000Z
2021-01-05T07:33:30.000Z
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
612
2018-09-13T21:10:04.000Z
2020-12-30T12:16:36.000Z
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app import bottle import ujson from bottle import route, run @route("/") def index(): return ujson.dumps({"test": True}) app = bottle.default_app()
18.714286
108
0.725191
36
262
5.222222
0.75
0.12766
0
0
0
0
0
0
0
0
0
0.022124
0.137405
262
13
109
20.153846
0.809735
0.40458
0
0
0
0
0.032468
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
43a90c6754ed5d7199ff6f282438c86387b7e8d9
1,485
py
Python
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
1
2017-04-25T10:46:24.000Z
2017-04-25T10:46:24.000Z
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
null
null
null
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.shortcuts import render from django.contrib.auth.models import User from django.views.generic.base import View from perfis.models import Perfil from usuarios.forms import RegistrarUsuarioForm class RegistrarUsuarioView(View): template_name = 'registrar.html' ...
31.595745
72
0.546801
147
1,485
5.428571
0.469388
0.078947
0.048872
0.062657
0.087719
0.087719
0
0
0
0
0
0
0.382492
1,485
46
73
32.282609
0.870229
0.131313
0
0
0
0
0.047656
0
0
0
0
0
0
1
0.083333
false
0
0.25
0.041667
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
43a9435c49bd01eb9bc3513864f993e95030f51a
19
py
Python
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
1
2020-05-19T16:07:05.000Z
2020-05-19T16:07:05.000Z
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
null
null
null
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
null
null
null
ANTO_VER = '0.1.2'
9.5
18
0.578947
5
19
2
1
0
0
0
0
0
0
0
0
0
0
0.1875
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.263158
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
43aa177b05dce3f050fe11c02d43b9d799f954d6
3,509
py
Python
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
5
2018-12-19T02:37:18.000Z
2022-01-26T02:52:50.000Z
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
from typing import (Any, Union, Type) # noqa: F401 from ..keys.datatypes import ( LazyBackend, PublicKey, PrivateKey, Signature, ) from eth_keys.exceptions import ( ValidationError, ) from eth_keys.validation import ( validate_message_hash, ) # These must be aliased due to a scoping issue in...
35.444444
90
0.61613
370
3,509
5.648649
0.245946
0.060287
0.050239
0.053589
0.563636
0.487081
0.475598
0.432057
0.326794
0.300478
0
0.002901
0.31234
3,509
98
91
35.806122
0.863241
0.15503
0
0.373333
0
0
0.205032
0.072084
0
0
0
0
0
1
0.053333
false
0
0.053333
0
0.213333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43aab220da0c6298d29ad8922e374d3b90af61e0
16,406
py
Python
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
40.210784
99
0.643911
1,860
16,406
5.544624
0.198387
0.022108
0.027732
0.014254
0.215165
0.15718
0.141181
0.130515
0.098613
0.087172
0
0.004114
0.288797
16,406
407
100
40.309582
0.879757
0.351518
0
0.205263
0
0
0.075953
0.005517
0
0
0
0.002457
0
1
0.068421
false
0
0.052632
0.005263
0.194737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ab35693a6001a55d9d6314ecedca585fa99ed4
489
py
Python
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
2
2016-01-10T20:23:41.000Z
2016-01-14T16:57:06.000Z
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
from oacensus.scraper import Scraper from oacensus.commands import defaults class TestScraper(Scraper): """ Scraper for testing scraper methods. """ aliases = ['testscraper'] def scrape(self): pass def process(self): pass def test_hashcode(): scraper = Scraper.create_inst...
21.26087
62
0.678937
53
489
6.188679
0.471698
0.128049
0.067073
0.170732
0.286585
0.286585
0
0
0
0
0
0.005195
0.212679
489
22
63
22.227273
0.846753
0.07362
0
0.285714
0
0
0.075515
0
0
0
0
0
0.071429
1
0.285714
false
0.142857
0.142857
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
43ab43b6738516044ebfd16ee957b6dda20ddd01
161
py
Python
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
def deco1(func): print("before myfunc() called.") func() print("after myfunc() called.") def myfunc(): print("myfunc() called.") deco1(myfunc)
16.1
36
0.608696
19
161
5.157895
0.421053
0.367347
0
0
0
0
0
0
0
0
0
0.015504
0.198758
161
9
37
17.888889
0.744186
0
0
0
0
0
0.378882
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.285714
0.428571
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
5
43abfef786fc99686d3027b89832f4ac4ffeea43
7,885
py
Python
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import re import time from lxml import etree import select import socket import logging import sys from lxml.builder import E from lxml.etree import XMLSyntaxError from datetime import datetime, timedelta from ncclient.operations.rpc import RPCReply, RPCError from ncclient.xml_ import to_ele import six from ncclient.t...
35.200893
83
0.49182
839
7,885
4.468415
0.278903
0.037343
0.025607
0.022406
0.17418
0.13817
0.102427
0.102427
0.102427
0.102427
0
0.00569
0.309068
7,885
223
84
35.358744
0.682452
0.250983
0
0.27027
0
0
0.0566
0.003831
0
0
0
0
0
1
0.060811
false
0
0.094595
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ad02233acb1702dc2da7147208eb71f07d888f
409
py
Python
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2022-01-06T02:21:16.000Z
2022-03-08T07:55:43.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2021-12-10T15:56:52.000Z
2022-02-19T23:45:24.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
3
2021-07-30T11:16:55.000Z
2022-01-05T18:19:55.000Z
from pymodbus.client.sync import ModbusTcpClient as ModbusClient import logging FORMAT = ('%(asctime)-15s %(threadName)-15s ' '%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s') logging.basicConfig(format=FORMAT) log = logging.getLogger() log.setLevel(logging.DEBUG) client = ModbusClient('192.168.178.61...
37.181818
67
0.743276
54
409
5.592593
0.703704
0
0
0
0
0
0
0
0
0
0
0.07027
0.095355
409
11
68
37.181818
0.745946
0
0
0
0
0
0.246341
0.063415
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ad3e59d1619acb8d9309d2b2e5ad3161003839
2,664
py
Python
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver import page class AboutPage(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.get("http://nicolesmith.nyc") #self.driver.get("http://127.0.0.1:4747/about") self.about_page = page.AboutPage(self.driver) ...
36
98
0.703453
375
2,664
4.736
0.205333
0.111486
0.124437
0.141892
0.463964
0.351914
0.178491
0.158784
0.114865
0
0
0.007401
0.188438
2,664
74
99
36
0.814061
0.035285
0
0.06383
0
0
0.232051
0
0
0
0
0
0.255319
1
0.382979
false
0
0.06383
0.085106
0.553191
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
43ae1b68e450c7cd53ba9d214198e618977b86cc
1,297
py
Python
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# Copyright 2016-2018, Pulumi Corporation. # # 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 t...
36.027778
87
0.739399
194
1,297
4.809278
0.561856
0.064309
0.028939
0.03537
0.064309
0
0
0
0
0
0
0.012138
0.174248
1,297
35
88
37.057143
0.85901
0.529684
0
0
0
0
0.102694
0.038721
0
0
0
0
0.2
1
0.133333
false
0
0.133333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43af0965a86312e6e30a4f1113799d3cd2575b0a
5,079
py
Python
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
2
2021-12-11T17:25:51.000Z
2022-01-06T15:36:27.000Z
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from dewloosh.geom.polyhedron import HexaHedron from dewloosh.math.numint import GaussPoints as Gauss from dewloosh.geom.utils import cells_coords from numba import njit, prange import numpy as np from numpy import ndarray __cache = True @njit(nogil=True, cache=__cache) def monoms_H8(pcoord: n...
34.317568
74
0.479425
915
5,079
2.620765
0.106011
0.266889
0.133445
0.100083
0.541701
0.52377
0.465388
0.456214
0.456214
0.456214
0
0.208064
0.330971
5,079
147
75
34.55102
0.497646
0.021658
0
0.175439
0
0
0
0
0
0
0
0
0
1
0.087719
false
0
0.052632
0.017544
0.245614
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
43af38bca718e0df9a99877c70ee02be87e0d3d0
842
py
Python
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
class ShoppingCart(object): def __init__(self): self.total = 0 self.items = dict() def add_item(self, item_name, quantity, price): if item_name != None and quantity >= 1: self.items.update({item_name: quantity}) if quantity and price >= 1: self.total += (quantity * price) def re...
26.3125
59
0.644893
114
842
4.578947
0.27193
0.10728
0.122605
0.057471
0.237548
0.149425
0.149425
0.149425
0.149425
0
0
0.014241
0.249406
842
31
60
27.16129
0.811709
0
0
0.08
0
0
0.023753
0
0
0
0
0
0
1
0.24
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
43af456bb12d9242e1f8878ab32c7792bb2310ac
2,108
py
Python
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
import copy import json from ghcl.models.pull_request import PullRequest class PRData: def __init__(self, data: dict = None): if data is None: with open('./tests/models/empty_pr_data.json') as file: self._data = json.load(file) else: self._data = data ...
31.939394
76
0.597723
275
2,108
4.298182
0.236364
0.081218
0.07445
0.118443
0.349408
0.192893
0.192893
0.192893
0.067682
0.067682
0
0.009677
0.264706
2,108
65
77
32.430769
0.752903
0
0
0.307692
0
0
0.136622
0.015655
0
0
0
0
0
1
0.192308
false
0
0.057692
0.038462
0.442308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43af80522808363696ca10665012f09669723d2f
609
py
Python
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30
2015-11-04T11:42:27.000Z
2021-12-01T07:56:34.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation', hepmcCollection = cms.InputTag("generatorSmeared"), genparticleCollection = cms.InputTag("genParticles",""), genjetsCollection = cms.Inp...
40.6
94
0.784893
50
609
9.56
0.64
0.069038
0
0
0
0
0
0
0
0
0
0.014787
0.111658
609
14
95
43.5
0.868762
0
0
0
0
0
0.10509
0.042693
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0