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
16a329d42e5fe4d870ae6840dac571c4c4bd741b
221
py
Python
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
1
2021-05-24T21:45:05.000Z
2021-05-24T21:45:05.000Z
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
null
null
null
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from dicoms.models import Subject from dicoms.models import Session from dicoms.models import Series admin.site.register(Session) admin.site.register(Subject) admin.site.register(Series)
24.555556
33
0.837104
32
221
5.78125
0.375
0.162162
0.259459
0.356757
0
0
0
0
0
0
0
0
0.090498
221
8
34
27.625
0.920398
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
0
0
0
0
null
0
1
1
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
1
0
1
0
1
0
0
6
16a335de057546c0e95c5699aa9470bc30a7f928
334
py
Python
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
4
2016-07-03T08:18:45.000Z
2018-12-25T07:47:41.000Z
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
2
2021-03-20T00:02:08.000Z
2021-06-10T23:34:26.000Z
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
1
2019-08-02T14:51:41.000Z
2019-08-02T14:51:41.000Z
""" WSGI config for django-react-redux-jwt-base project. """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoreactredux.settings.dev") from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoWhiteNoise application = get_wsgi_application() application = DjangoWhiteNoise...
23.857143
80
0.820359
40
334
6.7
0.575
0.052239
0.134328
0
0
0
0
0
0
0
0
0
0.086826
334
13
81
25.692308
0.878689
0.155689
0
0
0
0
0.186813
0.186813
0
0
0
0
0
1
0
false
0
0.5
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
0
0
1
0
0
0
0
1
16a40296272a4a2617c7e2666b6828a4cb958030
1,414
py
Python
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from copy import deepcopy import jsonpickle class BaseReader(object): """ Base class for dynamic readers """ _default_conf = {} def __init__(self, conf): self.conf = deepcopy(self._default_conf) self.conf.update(conf) self.key_pattern = s...
28.28
68
0.609618
183
1,414
4.519126
0.311475
0.084643
0.050786
0.029021
0.095526
0.067715
0.067715
0.067715
0
0
0
0.000988
0.2843
1,414
49
69
28.857143
0.816206
0.141443
0
0.129032
0
0
0.025022
0
0
0
0
0
0
1
0.16129
false
0
0.096774
0
0.516129
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
16a410bbf9dbba9b62a772c35376b67270885de8
3,981
py
Python
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
7
2019-03-27T03:59:50.000Z
2021-10-17T10:46:29.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
6
2019-04-13T15:55:55.000Z
2021-06-01T21:08:18.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
4
2021-03-25T09:22:55.000Z
2022-03-22T05:40:49.000Z
#!/usr/bin/env python # # Copyright (c) 2018 # FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de) # KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted p...
38.278846
85
0.757096
557
3,981
5.197487
0.40395
0.07772
0.058031
0.025907
0.249741
0.203109
0.186529
0.140933
0.08532
0.07323
0
0.010312
0.171816
3,981
103
86
38.650485
0.867759
0.413213
0
0.037037
0
0
0.108413
0.095837
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
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
16a5b8fdf510e7bdeb3c6bd8d9c144db7f897552
52
py
Python
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
14
2019-07-14T08:29:04.000Z
2022-03-07T06:33:26.000Z
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
4
2020-03-24T18:25:26.000Z
2021-08-23T20:44:07.000Z
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
33
2019-01-05T17:03:47.000Z
2019-11-11T20:48:24.000Z
#!/usr/bin/env python3 import sys print(sys.argv)
8.666667
22
0.711538
9
52
4.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0.022222
0.134615
52
5
23
10.4
0.8
0.403846
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
1
0
1
0
0
1
0
5
16a6cc579db685a8a411c51c09771255b3e6c2c9
366
py
Python
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
from itertools import chain def make_comparable(*clauses): return set((frozenset(c) for c in chain(*clauses))) def count_clauses(*clauses): total = 0 for subclauses in clauses: total += len(subclauses) return total def unique_literals(*clauses): literals = set() for clause in chain(*clauses): literals.upda...
21.529412
52
0.734973
53
366
5.018868
0.471698
0.052632
0.105263
0
0
0
0
0
0
0
0
0.003226
0.153005
366
16
53
22.875
0.854839
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.076923
0.538462
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
16a762cb2b4ddc4c0f253e56da58680346091ea8
7,879
py
Python
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
# Import kratos core and applications import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as KratosUtilities from KratosMultiphysics.FluidDynamicsApplication.fluid_dynamics_analysis import FluidDynamicsAnalysis class SodShockTubeTest(KratosUni...
48.635802
142
0.615053
684
7,879
6.736842
0.236842
0.014323
0.024306
0.051649
0.378472
0.368056
0.334201
0.240017
0.220486
0.179688
0
0.00534
0.286965
7,879
161
143
48.937888
0.814881
0.047214
0
0.29927
0
0
0.469655
0.120181
0
0
0
0
0
1
0.080292
false
0
0.029197
0
0.116788
0.029197
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
16a7758cb5092239aa048ae598f5849367159b11
647
py
Python
src/controllers/__init__.py
TonghanWang/NDQ
575f2e243bac1a567c072dbea8e093aaa4959511
[ "Apache-2.0" ]
63
2020-02-23T09:37:15.000Z
2022-01-17T01:30:50.000Z
src/controllers/__init__.py
fringsoo/NDQ
e243ba917e331065e82c6634cb1d756873747be5
[ "Apache-2.0" ]
14
2020-04-20T02:20:11.000Z
2022-03-12T00:16:33.000Z
src/controllers/__init__.py
mig-zh/NDQ
5720e3e8b529724e8d96a9a24c73bca24a11e7f9
[ "Apache-2.0" ]
16
2020-03-12T02:57:52.000Z
2021-11-27T13:07:08.000Z
from .basic_controller import BasicMAC from .cate_broadcast_comm_controller import CateBCommMAC from .cate_broadcast_comm_controller_full import CateBCommFMAC from .cate_broadcast_comm_controller_not_IB import CateBCommNIBMAC from .tar_comm_controller import TarCommMAC from .cate_pruned_broadcast_comm_controller import...
46.214286
66
0.797527
75
647
6.373333
0.266667
0.217573
0.213389
0.131799
0.194561
0
0
0
0
0
0
0
0.153014
647
13
67
49.769231
0.872263
0
0
0
0
0
0.204019
0.171561
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
1
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
1
0
0
0
0
3
16a89cacbc82dd93659b9a841883e22a139d8576
447
py
Python
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import websockets logging.basicConfig() async def counter(websocket, path): try: print("connect") async for message in websocket: print(message) finally: USERS.remove(websocket) async def main(): async with websockets.serve(c...
17.88
60
0.657718
50
447
5.72
0.62
0.055944
0
0
0
0
0
0
0
0
0
0.011834
0.243848
447
24
61
18.625
0.83432
0.024609
0
0
0
0
0.0553
0
0
0
0
0
0
1
0
true
0
0.235294
0
0.235294
0.117647
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
16a8a652721deb01765dac84306cf8e790d8b09a
3,998
py
Python
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
100
2020-05-21T10:23:31.000Z
2022-03-26T18:26:38.000Z
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
3
2020-08-19T18:14:01.000Z
2021-01-04T09:53:07.000Z
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
25
2020-09-05T04:19:22.000Z
2022-02-09T19:30:29.000Z
import random import pandas as pd import numpy as np import matplotlib.pyplot as plt #%matplotlib inline import tensorflow as tf import keras.backend as K from keras.utils import to_categorical from keras import metrics from keras.models import Model, load_model from keras.layers import Input, BatchNormalizat...
34.465517
118
0.693847
617
3,998
4.36953
0.210697
0.027448
0.021142
0.033383
0.428042
0.35089
0.306751
0.303042
0.303042
0.267433
0
0.064865
0.167084
3,998
115
119
34.765217
0.744745
0.074037
0
0.162162
0
0
0.017603
0
0
0
0
0
0
1
0.027027
false
0
0.405405
0
0.459459
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
16a92c971c54838ec2fe27ba303cf0b8622f86ad
347
py
Python
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
24
2019-09-13T15:30:09.000Z
2022-03-09T06:35:59.000Z
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
null
null
null
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
12
2019-09-13T15:30:31.000Z
2022-03-01T10:13:32.000Z
from ..base import BaseModel # returned from https://vk.com/dev/account.getActiveOffers class ActiveOffer(BaseModel): id: str = None title: str = None instruction: str = None instruction_html: str = None short_description: str = None description: str = None img: str = None tag: str = ...
21.6875
58
0.665706
44
347
5.204545
0.568182
0.244541
0.157205
0
0
0
0
0
0
0
0
0
0.244957
347
15
59
23.133333
0.874046
0.161383
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
1
0
0
0
0
null
1
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
2
16a9cd5f8c3947e5f770014cb07528f411173928
18,818
py
Python
lib/networks/Resnet50_train.py
yangxue0827/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
193
2017-07-19T14:29:38.000Z
2021-10-20T07:35:42.000Z
lib/networks/Resnet50_train.py
yangxue0827/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
29
2017-07-24T10:07:22.000Z
2020-01-03T20:38:36.000Z
lib/networks/Resnet50_train.py
Zardinality/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
67
2017-07-27T14:32:47.000Z
2021-12-27T13:10:37.000Z
# -------------------------------------------------------- # TFFRCNN - Resnet50 # Copyright (c) 2016 # Licensed under The MIT License [see LICENSE for details] # Written by miraclebiu # -------------------------------------------------------- import tensorflow as tf from .network import Network from ..fast_rcnn.config...
58.080247
189
0.597619
2,416
18,818
4.447434
0.074089
0.020289
0.102932
0.109819
0.74053
0.709912
0.548813
0.541461
0.395905
0.384272
0
0.06968
0.240408
18,818
323
190
58.260062
0.682034
0.144064
0
0.021097
0
0
0.189634
0.009158
0
0
0
0
0
1
0.008439
false
0
0.012658
0
0.025316
0
0
0
0
null
0
0
0
0
1
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
16aafc257a8e2aae93d3cae037dc8cf239e63a42
20,180
py
Python
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
330
2020-11-11T15:53:22.000Z
2022-03-30T06:45:57.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
47
2020-11-11T01:32:29.000Z
2022-03-30T01:33:28.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
23
2020-11-25T14:12:37.000Z
2022-03-30T02:16:26.000Z
import re import numbers import collections import logging from collections.abc import Iterable import itertools import aws_error_utils from .lookup import Ids, lookup_accounts_for_ou from .format import format_account_id LOGGER = logging.getLogger(__name__) _Context = collections.namedtuple("_Context", [ "sess...
41.608247
147
0.637413
2,231
20,180
5.467952
0.095473
0.135339
0.038036
0.019182
0.55193
0.465284
0.39659
0.352078
0.31978
0.29527
0
0.002968
0.281962
20,180
484
148
41.694215
0.838923
0.097175
0
0.391414
0
0.002525
0.138337
0.041087
0
0
0
0
0
1
0.068182
false
0.002525
0.030303
0.007576
0.189394
0.007576
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
16abab9c314c051765ffd991fb6c764e6cf24cb5
235
py
Python
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-03-10T07:43:08.000Z
2020-03-10T07:43:08.000Z
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import threading from concurrent.futures import ThreadPoolExecutor from service.train import do_train def thread_runner(thread_num, func, *args): executor = ThreadPoolExecutor(thread_num) f = executor.submit(do_train, *args)
26.111111
49
0.795745
30
235
6.066667
0.6
0.076923
0
0
0
0
0
0
0
0
0
0
0.131915
235
8
50
29.375
0.892157
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
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
0
0
0
1
0
1
0
0
3
16ac3137138a7e3b002c9c9337af2623d4ef26d0
2,600
py
Python
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import argparse import subprocess if __name__ == '__main__': from version import __version__ from configParser import ConfigParser else: from .version import __version__ from .configParser import ConfigParser def command(cmd): """Run a shell command""" subprocess.call(cmd, sh...
20.967742
65
0.672692
322
2,600
5.242236
0.341615
0.042654
0.050355
0.028436
0.194313
0.164692
0.138626
0.138626
0.069905
0.069905
0
0.000934
0.176538
2,600
123
66
21.138211
0.787482
0.186538
0
0.137931
0
0
0.272416
0
0
0
0
0
0
1
0.034483
false
0
0.12069
0
0.172414
0.137931
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
16ad65c0a3b3c48d1d5528a704a36242b69e1b30
590
py
Python
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
63
2019-05-19T13:22:37.000Z
2022-03-30T13:21:40.000Z
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
67
2019-05-03T17:17:19.000Z
2021-06-21T11:02:10.000Z
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
49
2019-02-19T09:28:33.000Z
2019-03-24T04:36:53.000Z
#This file is auto-generated. See modules.json and autogenerator.py for details #!/usr/bin/python3 """ get_links.py MediaWiki API Demos Demo of `Links` module: Get all links on the given page(s) MIT License """ import requests S = requests.Session() URL = "https://en.wikipedia.org/w/api.php" PAR...
16.857143
79
0.618644
87
590
4.183908
0.689655
0
0
0
0
0
0
0
0
0
0
0.002155
0.213559
590
34
80
17.352941
0.782328
0.340678
0
0
1
0
0.288462
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16adc3c8486e2f9e557cbef70e8a437e66aeb740
19,267
py
Python
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
null
null
null
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
2
2018-07-18T19:53:08.000Z
2019-02-25T23:25:51.000Z
gautools/submit_gaussian.py
theavey/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
1
2017-01-04T20:50:21.000Z
2017-01-04T20:50:21.000Z
#! /usr/bin/env python3 ######################################################################## # # # This script was written by Thomas Heavey in 2015. # # theavey@bu.edu thomasjheavey@gmail.com # # ...
44.496536
78
0.553537
2,450
19,267
4.216735
0.198776
0.004259
0.015681
0.012777
0.194076
0.145388
0.116155
0.088472
0.080922
0.080922
0
0.007388
0.339648
19,267
432
79
44.599537
0.804606
0.302849
0
0.239726
0
0
0.197488
0.016644
0
0
0
0
0
1
0.023973
false
0
0.041096
0
0.089041
0.054795
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
16aff0c4c406b2f10dac6cda72a39c612f61400e
2,036
py
Python
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
3
2022-01-04T13:32:11.000Z
2022-01-11T05:59:22.000Z
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
import json import copy import pdb import numpy as np import pickle def listify_mat(matrix): matrix = np.array(matrix).astype(str) if len(matrix.shape) > 1: matrix_list = [] for row in matrix: try: matrix_list.append(list(row)) except: pd...
27.513514
66
0.515717
252
2,036
4.039683
0.313492
0.034381
0.054028
0.031434
0.30943
0.30943
0.230845
0.163065
0.121807
0.121807
0
0.012725
0.343811
2,036
74
67
27.513514
0.749252
0.046169
0
0.224138
0
0
0.062919
0
0
0
0
0
0
1
0.103448
false
0
0.086207
0
0.327586
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
16b0c13e303ebbec34fd3a80391f02025c584689
589
py
Python
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
from faker import Faker import csv # Reference: https://pypi.org/project/Faker/ output = open('data.CSV', 'w', newline='') fake = Faker() header = ['name', 'age', 'street', 'city', 'state', 'zip', 'lng', 'lat'] mywriter=csv.writer(output) mywriter.writerow(header) for r in range(1000): mywriter...
21.814815
73
0.556876
69
589
4.724638
0.652174
0.067485
0
0
0
0
0
0
0
0
0
0.020785
0.264856
589
27
74
21.814815
0.732102
0.071307
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
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
16b0eceb3e8aafd2e9b6e9e274abab88018c34aa
495
py
Python
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.4 on 2019-10-03 21:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ingreso', '0003_auto_20190907_2152'), ] operations = [ migrations.AlterField( model_name='detal...
24.75
116
0.650505
58
495
5.431034
0.689655
0.07619
0.088889
0.139683
0
0
0
0
0
0
0
0.081579
0.232323
495
19
117
26.052632
0.747368
0.090909
0
0
1
0
0.154018
0.051339
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
16b1afada94a1ed1f6f7ce90f2dda1d6203c70b0
1,302
py
Python
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
from __future__ import print_function, division import os,unittest from pyscf.nao import tddft_iter dname = os.path.dirname(os.path.abspath(__file__)) td = tddft_iter(label='water', cd=dname) try: from pyscf.lib import misc libnao_gpu = misc.load_library("libnao_gpu") td_gpu = tddft_iter(label='water', cd...
33.384615
107
0.678955
201
1,302
4.199005
0.363184
0.059242
0.099526
0.109005
0.430095
0.331754
0.270142
0.227488
0.158768
0.158768
0
0.031511
0.171275
1,302
38
108
34.263158
0.750695
0.144393
0
0
0
0
0.04
0
0
0
0
0
0.357143
1
0.071429
false
0
0.142857
0
0.25
0.035714
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
16b1e0777507d0977f5c8842b27867dc734bcc90
898
py
Python
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
import io from os import path from setuptools import setup dirname = path.abspath(path.dirname(__file__)) with io.open(path.join(dirname, 'README.md'), encoding='utf-8') as f: long_description = f.read() def parse_requirements(filename): lines = (line.strip() for line in open(path.join(dirname, filename))) ...
32.071429
73
0.722717
117
898
5.410256
0.649573
0.094787
0.037915
0.060032
0
0
0
0
0
0
0
0.010458
0.148107
898
27
74
33.259259
0.816993
0
0
0
0
0
0.234967
0.030067
0
0
0
0
0
1
0.041667
false
0.041667
0.125
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
16b268fae933e4415a5583a098a6d7daa28d2e18
849
py
Python
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
4
2020-04-07T00:38:46.000Z
2022-03-10T03:34:42.000Z
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
null
null
null
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
1
2021-04-22T02:45:38.000Z
2021-04-22T02:45:38.000Z
import sqlite3 from contextlib import closing nome = input('Nome do produto: ').lower().capitalize() with sqlite3.connect('precos.db') as conexao: with closing(conexao.cursor()) as cursor: cursor.execute('SELECT * FROM Precos WHERE nome_produto = ?', (nome,)) registro = cursor.fetchone() ...
38.590909
102
0.572438
93
849
5.204301
0.526882
0.053719
0.066116
0
0
0
0
0
0
0
0
0.011647
0.292108
849
22
103
38.590909
0.793677
0
0
0.105263
0
0
0.291765
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.210526
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
16b631fdc9b05e860febb665678ebc3703e11591
4,882
py
Python
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
1
2020-07-13T19:02:26.000Z
2020-07-13T19:02:26.000Z
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
import torch import time import copy from jet20.backend.constraints import * from jet20.backend.obj import * from jet20.backend.config import * from jet20.backend.core import solve,OPTIMAL,SUB_OPTIMAL,USER_STOPPED import logging logger = logging.getLogger(__name__) class Solution(object): def __init__(self,x...
26.247312
102
0.546907
681
4,882
3.773862
0.161527
0.023346
0.042023
0.020233
0.302335
0.236965
0.185992
0.154864
0.132296
0.083268
0
0.006744
0.331831
4,882
185
103
26.389189
0.781116
0.002868
0
0.255814
0
0
0.042566
0
0
0
0
0
0
1
0.100775
false
0
0.062016
0.007752
0.271318
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
16b8038b17e6b43264d1acbee80a12ded5b8d440
1,077
py
Python
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
2
2020-07-14T13:55:17.000Z
2021-05-07T11:25:31.000Z
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
import torch from mmdet.datasets.pipelines.transforms import Pad from mmdet.datasets.pipelines.transforms import FilterBox import numpy as np import cv2 def test_pad(): raw = dict( img=np.zeros((200, 401, 3), dtype=np.uint8) ) cv2.imshow('raw', raw['img']) pad = Pad(square=True, pad_val=255) ...
22.914894
57
0.535747
153
1,077
3.653595
0.326797
0.050089
0.060823
0.093023
0.654741
0.593918
0.382826
0.382826
0.382826
0.382826
0
0.099607
0.291551
1,077
46
58
23.413043
0.633028
0.009285
0
0.388889
0
0
0.037559
0
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.194444
0.055556
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
16b8947aeb5e92484b74a59f50dce7a8d1075f22
23,601
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
akulamartin/lumberyard
2d4be458a02845179be098e40cdc0c48f28f3b5a
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard
1c52b941dcb7d94341fcf21275fe71ff67173ada
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard
1c52b941dcb7d94341fcf21275fe71ff67173ada
[ "AML" ]
4
2019-08-05T07:25:46.000Z
2020-12-07T05:12:55.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
43.304587
191
0.637897
2,345
23,601
6.03838
0.088699
0.04202
0.046328
0.055085
0.724929
0.697387
0.673234
0.662076
0.642514
0.62959
0
0.001173
0.277785
23,601
544
192
43.384191
0.829569
0.079403
0
0.581662
0
0
0.099921
0.014941
0
0
0
0
0.17765
1
0.106017
false
0.028653
0.014327
0.011461
0.17192
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
16ba68b504461ec3bb45c6f18a8ccf9704c15e7e
7,471
py
Python
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
3
2019-11-22T08:04:18.000Z
2019-11-26T06:55:36.000Z
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Curve fitting with linear programming. Minimizes the sum of error for each fit point to find the optimal coefficients for a given polynomial. Overview: Objective: Sum of errors Subject to: Bounds on coefficients Credit: "Curve Fitting with Linear Programming", H. Swanson and R. E. ...
39.115183
80
0.674073
1,106
7,471
4.349005
0.191682
0.059459
0.044906
0.043243
0.399584
0.330146
0.302079
0.290437
0.232225
0.220998
0
0.04339
0.21028
7,471
191
81
39.115183
0.771864
0.220988
0
0.203252
0
0
0.070753
0.009107
0
0
0
0.005236
0
1
0.081301
false
0
0.04878
0
0.186992
0.105691
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
16bce26f2376d0aa7170df9f650a479bf160647c
11,177
py
Python
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This source file is part of the Swift.org open source project Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See https://swift.org/LICENSE.txt for license information See https://swift.org/CONTRI...
38.277397
204
0.711014
1,524
11,177
5.007874
0.183071
0.041929
0.015723
0.022406
0.380765
0.314858
0.264806
0.238863
0.189072
0.17728
0
0.002782
0.163908
11,177
291
205
38.408935
0.813911
0.131878
0
0.295567
0
0
0.184488
0.036608
0
0
0
0.003436
0
1
0.08867
false
0
0.024631
0.004926
0.17734
0.098522
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
16bd3669143df2de8767a9c8bf39a0f217eb03a8
1,701
py
Python
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/deconz/test_scene.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""deCONZ scene platform tests.""" from unittest.mock import patch from openpeerpower.components.scene import DOMAIN as SCENE_DOMAIN, SERVICE_TURN_ON from openpeerpower.const import ATTR_ENTITY_ID from .test_gateway import ( DECONZ_WEB_REQUEST, mock_deconz_put_request, setup_deconz_integration, ) async...
27.885246
82
0.627278
206
1,701
4.92233
0.364078
0.076923
0.063116
0.053254
0.282051
0.234714
0.234714
0.136095
0.136095
0.136095
0
0.007098
0.254556
1,701
60
83
28.35
0.792587
0.042328
0
0.04878
0
0
0.111475
0.046557
0
0
0
0
0.121951
1
0
false
0
0.097561
0
0.097561
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
16bd643a28b81f74d29d0b9a43b20d245093f663
12,716
py
Python
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
129
2017-08-25T11:45:15.000Z
2022-03-29T05:11:25.000Z
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
251
2017-07-27T10:05:58.000Z
2022-03-02T12:46:13.000Z
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
20
2017-08-13T13:05:14.000Z
2022-03-19T02:21:37.000Z
from pathlib import PosixPath import configparser from typing import Dict, Optional, Any, List from inspect import cleandoc import shutil import tensorhive import os import logging log = logging.getLogger(__name__) class CONFIG_FILES: # Where to copy files # (TensorHive tries to load these by default) con...
42.959459
118
0.681268
1,527
12,716
5.429601
0.212181
0.032565
0.048245
0.022193
0.267157
0.199132
0.138584
0.101435
0.075624
0.066216
0
0.006244
0.206511
12,716
295
119
43.105085
0.814965
0.094291
0
0.087805
0
0
0.172567
0.045692
0
0
0
0
0
1
0.053659
false
0.004878
0.058537
0.009756
0.609756
0.009756
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
16bdc023e7792aee5f95f6dd1ec12e9328dbed08
4,534
py
Python
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
1
2021-01-06T20:49:32.000Z
2021-01-06T20:49:32.000Z
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
import random from typing import Tuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch import Tensor class Encoder(nn.Module): def __init__(self, input_dim, emb_dim, enc_hid_dim, dec_hid_dim, dropout): super().__init__() self.input_dim = in...
37.163934
90
0.635862
600
4,534
4.508333
0.158333
0.055453
0.043253
0.031054
0.330499
0.206654
0.173383
0.136044
0.119039
0.090203
0
0.012639
0.267093
4,534
121
91
37.471074
0.801384
0.021394
0
0.189474
0
0
0
0
0
0
0
0
0
1
0.094737
false
0
0.073684
0
0.263158
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
16be469a1debb4ce731178e138eb07a68236018a
7,907
py
Python
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import torch import torch.nn as nn import torch.optim as optim from torchtext.datasets import Multi30k from torchtext.data import Field, BucketIterator import numpy as np import spacy import random from torch.utils.tensorboard import SummaryWriter # to print to tensorboard from utils import translate_sentence, bleu, s...
32.539095
103
0.682433
1,119
7,907
4.651475
0.264522
0.026897
0.021518
0.026513
0.206916
0.191354
0.173487
0.173487
0.1195
0.101441
0
0.012877
0.224105
7,907
242
104
32.673554
0.835534
0.246238
0
0.100719
0
0
0.052071
0.007101
0
0
0
0
0
1
0.057554
false
0
0.071942
0.014388
0.18705
0.021583
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
16beddc32cad55aeba19e5840d544ba51efbce38
2,533
py
Python
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
from typing import Dict, Any, List import string from parlai.core.agents import Agent from parlai.core.message import Message from random import sample import pathlib path = pathlib.Path(__file__).parent.absolute() class LightImitateMixin(Agent): """Abstract class that handles passing expert trajectories alo...
29.8
91
0.586656
280
2,533
5.135714
0.325
0.075104
0.052156
0.069541
0.079277
0.054242
0.054242
0.054242
0.054242
0.054242
0
0.006403
0.321753
2,533
84
92
30.154762
0.830617
0.087248
0
0.081967
0
0
0.025753
0
0
0
0
0
0
1
0.131148
false
0.04918
0.098361
0
0.278689
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
16bf36b1dcc9b129dcd361097fbc1ea1ea920674
1,654
py
Python
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
1
2022-02-08T09:47:35.000Z
2022-02-08T09:47:35.000Z
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
62
2021-04-02T23:41:16.000Z
2022-03-25T13:16:10.000Z
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
null
null
null
"""https://www.educative.io/courses/grokking-the-coding-interview/N7rwVyAZl6D Categories: - Binary - Bit Manipulation - Blind 75 See Also: - pytudes/_2021/leetcode/blind_75/linked_list/_141__linked_list_cycle__easy.py """ from pytudes._2021.utils.linked_list import ( ListNode, NodeType, ...
23.971014
82
0.605804
228
1,654
4.254386
0.328947
0.22268
0.22268
0.197938
0.431959
0.391753
0.358763
0.358763
0.358763
0.358763
0
0.023908
0.266626
1,654
68
83
24.323529
0.774938
0.484281
0
0.136364
0
0
0.087883
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.227273
0.136364
0
0
0
null
1
1
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
3
16bf4f8f27c28015e220b292e189af4ce08ed99c
4,417
py
Python
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
2
2019-04-07T06:11:56.000Z
2019-10-14T05:08:16.000Z
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
import sys import os import socket import time import threading class MyServer: def __init__(self, port, doc_root): self.port = port self.doc_root = doc_root self.host = '127.0.0.1' self.res_200 = "HTTP/1.1 200 OK\r\nServer: Myserver 1.0\r\n" self.res_404 = "HTTP/1.1 404 N...
31.105634
85
0.479511
556
4,417
3.739209
0.30036
0.016354
0.010101
0.013468
0.100048
0.074074
0.064454
0.054834
0.03848
0.027898
0
0.041481
0.388725
4,417
141
86
31.326241
0.728519
0.089427
0
0.189189
0
0.027027
0.1245
0.00675
0
0
0
0
0
1
0.036036
false
0
0.045045
0
0.171171
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
16c04b9a7be2241d66d21a6886d268026e2fdc89
258
py
Python
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
class Metric(object): """Base class for all metrics. From: https://github.com/pytorch/tnt/blob/master/torchnet/meter/meter.py """ def reset(self): pass def add(self): pass def value(self): pass
18.428571
77
0.554264
32
258
4.46875
0.75
0.167832
0.153846
0
0
0
0
0
0
0
0
0
0.321705
258
13
78
19.846154
0.817143
0.391473
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0
0
0.571429
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
1
0
0
1
0
0
3
16c081effc971dd24b22b938117db5e30575dfca
1,179
py
Python
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
from git import Repo from pf_pweb_sourceman.common.console import console from pf_py_file.pfpf_file_util import PFPFFileUtil class GitRepoMan: def get_repo_name_from_url(self, url: str): if not url: return None last_slash_index = url.rfind("/") last_suffix_index = url.rfind("...
33.685714
84
0.63274
155
1,179
4.541935
0.348387
0.068182
0.106534
0.042614
0.051136
0
0
0
0
0
0
0.003513
0.275657
1,179
34
85
34.676471
0.820843
0
0
0
0
0
0.066158
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.296296
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
16c22952eef284ef2bbd4cfa4e2bbaa9380b0ceb
2,969
py
Python
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
import socket import paramiko import json Hostname = '34.224.2.243' Username = 'ec2-user' key = 'G:/Projects/Python/Asset-Discovery-Tool/tool/s.pem' def is_connected(): try: # connect to the host -- tells us if the host is actually # reachable socket.create_connection(("8.8.8.8", 53)) ...
29.39604
84
0.594139
391
2,969
4.253197
0.322251
0.102225
0.059531
0.023452
0.086591
0.032471
0
0
0
0
0
0.037479
0.209161
2,969
100
85
29.69
0.670784
0.088919
0
0.026316
0
0
0.200297
0.028561
0
0
0
0
0
1
0.039474
false
0.026316
0.039474
0
0.131579
0.052632
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
16c3880f871252c2ad2ebcf1bd3aca25678856cb
16,099
py
Python
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """KvV2 methods module.""" from hvac import exceptions, utils from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT = 'secret' class KvV2(VaultApiBase): """KV Secrets Engine - Version 2 (API). Reference: https://www.vaultproject.io/api/secret/kv/k...
42.254593
127
0.638611
2,093
16,099
4.794553
0.118968
0.104634
0.020927
0.027902
0.718286
0.667364
0.655805
0.639661
0.614948
0.592725
0
0.005354
0.280639
16,099
380
128
42.365789
0.861152
0.515249
0
0.503597
0
0
0.137899
0.056244
0
0
0
0
0
1
0.093525
false
0
0.014388
0
0.208633
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
16c3b1e6ee4edc3e7c6e66622f8ee4afa8a44dad
512
py
Python
android/install-all.py
SaschaWillems/vulkan_slim
642bcf1eaba8bbcb94a8bec61f3454c597af72f9
[ "MIT" ]
28
2017-09-04T18:54:49.000Z
2021-09-18T11:52:04.000Z
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
null
null
null
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
1
2018-07-20T06:51:08.000Z
2018-07-20T06:51:08.000Z
# Install all examples to connected device(s) import subprocess import sys answer = input("Install all vulkan examples to attached device, this may take some time! (Y/N)").lower() == 'y' if answer: BUILD_ARGUMENTS = "" for arg in sys.argv[1:]: if arg == "-validation": BUILD_ARGUMENTS += "-v...
36.571429
111
0.644531
70
512
4.671429
0.628571
0.12844
0
0
0
0
0
0
0
0
0
0.0075
0.21875
512
13
112
39.384615
0.81
0.083984
0
0
0
0
0.385439
0
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
16c4d3d9ff39c41395ea4a9779719c084f2fc55a
1,726
py
Python
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from generators.ahoughton import AhoughtonGenerator from render_config import RendererConfig from problem_renderer import ProblemRenderer from moonboard import get_moonboard from adapters.default import DefaultProblemAdapter from adapters.crg import CRGProblemAdapter from adapters.ahoughton import AhoughtonAdapter impo...
30.280702
113
0.707995
177
1,726
6.655367
0.293785
0.050934
0.091681
0.078947
0.135823
0.06961
0.06961
0
0
0
0
0.052053
0.209733
1,726
56
114
30.821429
0.811584
0.041715
0
0.204545
0
0
0.074029
0.044903
0
0
0
0
0
1
0.022727
false
0
0.181818
0
0.204545
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
16c4fdb052f6373448ef88971819f508813eb2d7
5,228
py
Python
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
import discord from Util import Utils, Emoji, Translator page_handlers = dict() known_messages = dict() def on_ready(bot): load_from_disc() def register(type, init, update, sender_only=False): page_handlers[type] = { "init": init, "update": update, "sender_only": sender_only }...
33.299363
213
0.55394
633
5,228
4.388626
0.203791
0.065515
0.028798
0.024478
0.192585
0.147588
0.11951
0.078474
0.078474
0.078474
0
0.011758
0.333015
5,228
156
214
33.512821
0.784915
0.005547
0
0.176923
0
0.007692
0.084472
0.048105
0
0
0
0
0
1
0.061538
false
0
0.015385
0
0.115385
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
16c7d2d61e641808d594577e77047ea93c4d6c86
8,007
py
Python
software/Opal/spud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-11T02:39:46.000Z
2020-05-11T03:08:38.000Z
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
null
null
null
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-21T22:50:19.000Z
2020-10-28T17:16:31.000Z
#!/usr/bin/env python # This file is part of Diamond. # # Diamond is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
28.193662
95
0.723242
1,113
8,007
4.997305
0.230907
0.031643
0.018878
0.019777
0.233549
0.144373
0.093132
0.06005
0.044948
0.020137
0
0.00511
0.168977
8,007
283
96
28.293286
0.830778
0.100912
0
0.104651
0
0
0.031669
0
0
0
0
0
0
0
null
null
0
0.02907
null
null
0.011628
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
16c86dba44c4d72104ae5760fa8ff0a89daa4441
5,793
py
Python
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
2
2021-04-03T09:49:46.000Z
2021-12-27T19:32:32.000Z
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field, InitVar from typing import List, Tuple, Iterator, Iterable, Optional from random import choice import pyxel # ------------------------------------------------------- # Types # ------------------------------------------------------- Maze = T...
32.544944
79
0.468324
652
5,793
3.937117
0.174847
0.049864
0.046747
0.049085
0.204908
0.195559
0.147254
0.114141
0.067004
0.067004
0
0.016442
0.359572
5,793
178
80
32.544944
0.675472
0.085793
0
0.153846
0
0
0.002461
0
0
0
0
0
0
1
0.041958
false
0
0.034965
0.006993
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
16c8cf672763555c8ebe97c11704c5a42703427b
5,536
py
Python
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-10-25T13:08:04.000Z
2020-01-05T11:29:18.000Z
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
9
2020-05-10T10:13:56.000Z
2022-03-11T23:33:52.000Z
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-02-11T02:55:51.000Z
2020-01-05T11:29:20.000Z
""" Django settings for bobjiang project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os i...
28.984293
171
0.638728
564
5,536
6.138298
0.460993
0.056326
0.044483
0.050549
0.173888
0.149913
0.077123
0.077123
0.034662
0
0
0.007706
0.203035
5,536
190
172
29.136842
0.776972
0.213692
0
0.041322
1
0
0.462624
0.250174
0
0
0
0
0
1
0
false
0.049587
0.016529
0
0.016529
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
16c94789f75ac4c3a4caedf7d0832ce6641802d7
671
py
Python
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
1
2022-02-10T17:54:53.000Z
2022-02-10T17:54:53.000Z
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
null
null
null
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pic/') ...
29.173913
60
0.588674
82
671
4.682927
0.536585
0.052083
0.057292
0.078125
0
0
0
0
0
0
0
0.025696
0.304024
671
22
61
30.5
0.796574
0
0
0
0
0
0.076006
0
0
0
0
0
0
1
0.125
false
0
0.1875
0.0625
0.5625
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
16c9a5ddd1d3e1f33c18bfd269bc6097b27aa5a2
2,281
py
Python
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
""" DVC ---- Make your data science projects reproducible and shareable. """ import os import warnings VERSION_BASE = '0.23.2' __version__ = VERSION_BASE PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) HOMEPATH = os.path.dirname(PACKAGEPATH) VERSIONPATH = os.path.join(PACKAGEPATH, 'version.py') def _updat...
32.126761
78
0.702762
312
2,281
4.955128
0.474359
0.027167
0.032988
0.02458
0.087969
0.036223
0
0
0
0
0
0.00432
0.188075
2,281
70
79
32.585714
0.830454
0.361245
0
0.054054
0
0
0.12605
0
0
0
0
0
0
1
0.054054
false
0
0.135135
0
0.243243
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
16c9bf4375ba49f6aaa19ea289549cfbf3ed1092
9,092
py
Python
pkg_dir/src/utils/notion_utils.py
robperch/robase_datalysis
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
2
2022-01-09T19:18:57.000Z
2022-01-09T19:19:04.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
4
2022-01-17T02:46:24.000Z
2022-02-20T23:04:05.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
null
null
null
## MODULE WITH UTIL FUNCTIONS - NOTION "----------------------------------------------------------------------------------------------------------------------" ####################################################### Imports ######################################################## "---------------------------------...
30.006601
120
0.569182
1,082
9,092
4.609982
0.186691
0.020449
0.024058
0.018043
0.486367
0.45008
0.417201
0.394346
0.347033
0.318565
0
0.001142
0.229652
9,092
303
121
30.006601
0.711022
0.434558
0
0.197917
0
0
0.271329
0.198862
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.166667
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
16caf6d3ac2e6621185a4d16c03069163552a572
8,371
py
Python
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
null
null
null
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
9
2022-02-07T14:14:10.000Z
2022-03-22T09:17:16.000Z
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
3
2022-01-20T09:17:39.000Z
2022-03-08T00:35:58.000Z
import unittest import logging import contextlib from libpermian.settings import Settings from .proxy import IssueAnalyzerProxy from .base import BaseAnalyzer, BaseIssue from .issueset import IssueSet LOGGER = logging.getLogger('test') class NewIssue(BaseIssue): def submit(self): LOGGER.info('submit was...
29.896429
79
0.611158
825
8,371
6.121212
0.146667
0.059406
0.023762
0.041188
0.606139
0.556634
0.53604
0.476832
0.403366
0.364951
0
0.002669
0.283957
8,371
279
80
30.003584
0.83984
0.048859
0
0.537118
0
0
0.141725
0.02339
0
0
0
0
0.222707
1
0.148472
false
0
0.030568
0.021834
0.305677
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
16cb0577b93ac4b27ff6f443a2d517ea18cbf9f7
6,421
py
Python
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/naplib-python
8cd7a0fc700f1c07243169ec42fc087955885adc
[ "MIT" ]
1
2022-03-02T20:54:23.000Z
2022-03-02T20:54:23.000Z
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2014 Kyle Gorman and Michael Wagner # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify,...
40.13125
102
0.68167
818
6,421
5.295844
0.332518
0.027932
0.022161
0.009695
0.096491
0.063712
0.015235
0
0
0
0
0.001961
0.205731
6,421
159
103
40.383648
0.847451
0.2456
0
0.055046
0
0
0.202748
0.004371
0
0
0
0
0
1
0
false
0
0.110092
0
0.110092
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
16cc459343115a5e0d636bad4bf667af5c4f5d6d
4,021
py
Python
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import codecs import os import os.path import shutil import subprocess import logging import glob import json CONTEST_DIR = 'polygon-contest' INIT_FILE = 'init.txt' BUILD_DIR = 'build' LANGUAGE = 'russian' FILES_DIR = 'files-' + LANGUAGE def time_limit_from_int(tl): tl //= 1000 return...
39.038835
123
0.607063
503
4,021
4.652087
0.254473
0.035897
0.042735
0.025641
0.124786
0.061538
0
0
0
0
0
0.006861
0.238747
4,021
102
124
39.421569
0.757596
0.005223
0
0
0
0
0.167042
0.005751
0
0
0
0
0
1
0.05
false
0
0.1
0.0125
0.175
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
16cc8a900ca38b32bc2a6bbb0fff269ef5b921da
1,430
py
Python
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
1
2021-04-12T06:02:53.000Z
2021-04-12T06:02:53.000Z
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
3
2020-06-18T10:01:15.000Z
2021-11-08T12:43:43.000Z
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
4
2020-03-12T08:57:41.000Z
2021-09-07T03:07:56.000Z
# -*- coding: utf-8 -*- # from conans import python_requires import conans.tools as tools import os base = python_requires("Eigen3ToPython/latest@multi-contact/dev") class MCRTCDataConan(base.Eigen3ToPythonConan): name = "mc_rtc_data" version = "1.0.4" description = "Environments/Robots description for m...
34.878049
168
0.652448
181
1,430
4.983425
0.524862
0.027716
0.039911
0.037694
0.133038
0.133038
0.073171
0.073171
0
0
0
0.014731
0.193007
1,430
40
169
35.75
0.766898
0.014685
0
0
0
0
0.360142
0.064769
0
0
0
0
0
1
0.096774
false
0.032258
0.096774
0
0.645161
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
16cd7731b200cbda5815fed9bc8eb8baf3b78188
1,217
py
Python
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
3
2019-01-30T03:50:04.000Z
2019-02-20T00:33:05.000Z
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
173
2019-01-30T08:30:54.000Z
2019-04-05T19:43:06.000Z
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
2
2019-05-06T22:59:56.000Z
2020-09-29T03:13:03.000Z
# Generated by Django 2.1.5 on 2019-02-18 22:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hyperion', '0005_auto_20190212_2116'), ] operations = [ migrations.RenameField( model_name='pos...
34.771429
201
0.571898
129
1,217
5.27907
0.542636
0.052863
0.057269
0.064611
0.25257
0.170338
0
0
0
0
0
0.056106
0.253081
1,217
34
202
35.794118
0.693069
0.036976
0
0.321429
1
0
0.209402
0.019658
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
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
16cdaac129cd705700eab605365385f7b7b8a82c
2,236
py
Python
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
5
2019-05-05T18:26:14.000Z
2019-08-02T05:04:12.000Z
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
3
2020-07-17T02:28:11.000Z
2021-05-08T21:58:10.000Z
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
3
2020-04-11T19:39:08.000Z
2020-12-21T08:44:21.000Z
import torch import json import numpy as np from torch.autograd import Variable import gzip import yaml from re import split from matplotlib import pyplot def showImg( im ): pyplot.imshow( im ) pyplot.show() def myOpen( fname, mode ): return open( fname, mode, encoding="utf-8" ) def readFile( fname ): ...
24.304348
99
0.58542
301
2,236
4.312292
0.38206
0.042373
0.046225
0.030817
0.101695
0.035439
0
0
0
0
0
0.006231
0.2822
2,236
91
100
24.571429
0.802492
0.086315
0
0
0
0
0.057579
0
0
0
0
0
0
1
0.203125
false
0
0.125
0.03125
0.4375
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
1
0
0
0
0
0
0
0
1
16cef8471ab7389079cb6001c00f1c83826a7643
1,546
py
Python
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
# errors from libvips import sys import logging from pyvips import ffi, vips_lib logger = logging.getLogger(__name__) _is_PY3 = sys.version_info[0] == 3 if _is_PY3: text_type = str else: text_type = unicode ffi.cdef(''' const char* vips_error_buffer (void); void vips_error_clear (void); ''') de...
20.891892
76
0.638422
226
1,546
4.159292
0.376106
0.038298
0.014894
0.023404
0.048936
0.048936
0
0
0
0
0
0.008696
0.256145
1,546
73
77
21.178082
0.808696
0.312419
0
0.058824
0
0
0.127872
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0.029412
0.323529
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
16cf7d6d5783bc8dc6f881f5646090c8b7e4317c
7,584
py
Python
population_estimator/curses_io.py
cruzanta/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
1
2019-02-10T01:30:09.000Z
2019-02-10T01:30:09.000Z
population_estimator/curses_io.py
cruzantada/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
null
null
null
population_estimator/curses_io.py
cruzantada/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Module for painting output on and obtaining input from a text-based terminal window using the curses library. """ import curses import textwrap def display_string(screen, a_string, output_line): # Paints a string on a text-based terminal window. _, width = screen.getmaxyx() tr...
36.114286
80
0.676292
1,118
7,584
4.447227
0.12254
0.104586
0.044449
0.055511
0.736726
0.707763
0.673572
0.620676
0.570193
0.55712
0
0.003944
0.264504
7,584
209
81
36.287081
0.887415
0.520042
0
0.493671
0
0
0.021778
0
0
0
0
0
0
1
0.088608
false
0
0.025316
0
0.202532
0
0
0
0
null
0
0
0
0
1
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
16cfaddb94dc7d27c3d0480f8a3e480fd2dc70da
30
py
Python
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
def randrange(n, y): pass
10
20
0.6
5
30
3.6
1
0
0
0
0
0
0
0
0
0
0
0
0.266667
30
2
21
15
0.818182
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
1
1
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
1
0
0
0
0
0
5
16d095db1ff9ef61a032d5e0564695c1cb47f1b3
6,986
py
Python
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
null
null
null
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
1
2021-01-08T13:25:16.000Z
2021-01-08T13:25:16.000Z
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
1
2021-01-08T12:52:29.000Z
2021-01-08T12:52:29.000Z
import json from tkinter import * from tkinter import ttk from tkinter import messagebox from tr_data import TRData, NO_DATA_MEETS_CRITERIA from email_text import email_body_template from helpers import send_email RECIPIENT = <email_address> EXCEPTION_FILE = "tr_number_exceptions.json" class TrEmailSender: def...
38.174863
134
0.61838
878
6,986
4.687927
0.21754
0.034985
0.031584
0.044218
0.252915
0.187804
0.160836
0.11516
0.090865
0.073372
0
0.012905
0.278987
6,986
182
135
38.384615
0.804249
0.066848
0
0.15873
0
0
0.115574
0.021391
0
0
0
0
0
0
null
null
0
0.063492
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
16d0a3ae5b7a5043417a9ada134eda9cc4f2dd27
1,548
py
Python
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
2
2019-01-23T14:23:17.000Z
2019-01-23T14:23:49.000Z
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
null
null
null
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 #0导入模块 ,生成模拟数据集 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import opt4_8_generateds import opt4_8_forward STEPS = 40000 BATCH_SIZE = 30 LEARNING_RATE_BASE = 0.001 LEARNING_RATE_DECAY = 0.999 REGULARIZER = 0.01 def backward(): x = tf.placeholder(tf.float32, shape=(None, ...
24.967742
72
0.700258
259
1,548
3.945946
0.416988
0.07045
0.026419
0.043053
0.060665
0.060665
0
0
0
0
0
0.043247
0.148579
1,548
61
73
25.377049
0.73217
0.029716
0
0
1
0
0.02737
0
0
0
0
0
0
1
0.022727
false
0
0.113636
0
0.136364
0.022727
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
16d13aced6b20979dea691425018aa9f0ea80fb3
3,168
py
Python
test/examples/integrated/codec/vip/vip_agent.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
#// #// ------------------------------------------------------------- #// Copyright 2011 Synopsys, Inc. #// Copyright 2019-2020 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// Licensed under the Apache License, Version 2.0 (the #// "License"); you may not use this file except in #//...
33
96
0.606376
400
3,168
4.6125
0.3475
0.063415
0.068293
0.045528
0.226558
0.17561
0.083469
0.04336
0.04336
0.04336
0
0.00708
0.242109
3,168
95
97
33.347368
0.761349
0.278093
0
0.156863
0
0
0.065929
0
0
0
0
0
0
1
0.058824
false
0
0.078431
0
0.156863
0.019608
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
16d1b5218231a945c48c3095503b717e135149a2
7,987
py
Python
tests/test_transliterate.py
abosoar/camel_tools
0a92c06f6dde0063e26df5cbe4d74c2f99b418e0
[ "MIT" ]
1
2021-03-23T12:50:47.000Z
2021-03-23T12:50:47.000Z
tests/test_transliterate.py
KaoutharMokrane/camel_tools
e9099907835b05d448362bce2cb0e815ac7f5590
[ "MIT" ]
null
null
null
tests/test_transliterate.py
KaoutharMokrane/camel_tools
e9099907835b05d448362bce2cb0e815ac7f5590
[ "MIT" ]
1
2021-01-24T05:06:33.000Z
2021-01-24T05:06:33.000Z
# -*- coding: utf-8 -*- # MIT License # # Copyright 2018-2020 New York University Abu Dhabi # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitatio...
33.700422
79
0.662076
1,035
7,987
4.97971
0.192271
0.02988
0.051222
0.034148
0.689756
0.650175
0.598564
0.576251
0.520567
0.510477
0
0.002331
0.248028
7,987
236
80
33.84322
0.855811
0.428446
0
0.357143
0
0
0.113724
0
0
0
0
0
0.166667
1
0.261905
false
0
0.047619
0
0.333333
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
16d2ceeba676dbb491a1206466347e8ee17c6418
2,485
py
Python
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
1
2021-04-09T15:01:49.000Z
2021-04-09T15:01:49.000Z
###################################################################################################################### # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
59.166667
118
0.464789
224
2,485
5.044643
0.464286
0.106195
0.070796
0.084956
0.178761
0.069027
0
0
0
0
0
0.00953
0.3666
2,485
41
119
60.609756
0.708386
0.433803
0
0
0
0
0.076707
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
0.05
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
16d306bdfaed88804b418d267e2c9f7fdd6fab73
7,965
py
Python
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # file -- parse.py -- # Top contributors (to current version): # Nestan Tsiskaridze # This file is part of the configuration finder for the Stanford AHA project. # Copyright (c) 2021 by the authors listed in the file AUTHORS # in th...
40.431472
129
0.417075
836
7,965
3.825359
0.2189
0.030644
0.045028
0.030019
0.417136
0.324891
0.282051
0.252658
0.205754
0.205754
0
0.024121
0.453484
7,965
196
130
40.637755
0.710544
0.099309
0
0.422078
0
0
0.030593
0.014868
0
0
0
0
0.019481
1
0.006494
false
0
0.064935
0
0.155844
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
16d35857ae1d82e14e5940b8e5331b8a6a44ca39
2,177
py
Python
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, redirect, url_for, request, flash, make_response from werkzeug.security import generate_password_hash from flask_login import login_required, current_user from . import db import datetime from .models import Visitor, User main = Blueprint('main', __name__) @main.route('/...
33.492308
120
0.692237
293
2,177
5.003413
0.361775
0.030696
0.028649
0.031378
0.072306
0.039563
0
0
0
0
0
0.002872
0.200276
2,177
64
121
34.015625
0.839173
0.143776
0
0.102041
1
0
0.077503
0
0
0
0
0
0
1
0.061224
false
0.081633
0.122449
0.020408
0.285714
0.040816
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
1
0
0
0
0
0
2
16d397fdfd404f351b1fb42cfa6cff5538a49320
790
py
Python
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
# Funções cabecalho = "SISTEMA DE CADASTRO DE FUNCIONARIO\n\n\n" rodape = "\n\n\n Obrigada pela preferencia" def imprimir_tela(conteudo): print(cabecalho) #print(opcao_menu) print(conteudo) print(rodape) def ler_opcoes(): opcao = int(input("Insira a opção: ")) return opcao def carregar_o...
27.241379
70
0.655696
101
790
5.039604
0.445545
0.141454
0.127701
0.176817
0.294695
0.294695
0
0
0
0
0
0.008292
0.236709
790
29
71
27.241379
0.835821
0.03038
0
0
0
0
0.378272
0
0
0
0
0
0
1
0.136364
false
0.045455
0
0
0.181818
0.136364
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
16d47d0537155255ce27cd3c3479b098ca6ecf13
665
py
Python
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
1
2020-04-29T21:30:11.000Z
2020-04-29T21:30:11.000Z
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
10
2018-08-20T18:10:56.000Z
2019-04-05T14:45:11.000Z
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
null
null
null
from node import Node class BinOp(Node): def eval(self, st): a = self.children[0].eval(st) b = self.children[1].eval(st) if self.value == "MINUS": return a - b elif self.value == "PLUS": return a + b elif self.value == "MULT": return a * b elif self.value == "DIV": return a // b...
19.558824
32
0.542857
102
665
3.539216
0.284314
0.274238
0.249307
0.387812
0.523546
0.523546
0
0
0
0
0
0.004338
0.306767
665
33
33
20.151515
0.778742
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.518519
0
0
0
0
null
1
1
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
1
0
0
4
16d53c81f0a6c59b031bb33f8b48778a56657258
7,180
py
Python
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Linus Jahn <lnj@kaidan.im> # Copyright (C) 2019,2020 Hiroshi Miura <miurahr@linux.com> # Copyright (C) 2020, Aurélien Gâteau # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software...
40.111732
110
0.608635
888
7,180
4.833333
0.342342
0.037279
0.020503
0.009087
0.063374
0.047064
0.047064
0.034483
0.020969
0.020969
0
0.009827
0.291365
7,180
178
111
40.337079
0.833726
0.187187
0
0.117647
0
0
0.070442
0
0
0
0
0
0
1
0.058824
false
0.007353
0.110294
0
0.191176
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
16d55202daea41a875b382f2393a76063d29376b
4,865
py
Python
lib/django-0.96/django/views/generic/list_detail.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-0.96/django/views/generic/list_detail.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-0.96/django/views/generic/list_detail.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from django.template import loader, RequestContext from django.http import Http404, HttpResponse from django.core.xheaders import populate_xheaders from django.core.paginator import ObjectPaginator, InvalidPage from django.core.exceptions import ObjectDoesNotExist def object_list(request, queryset, paginate_by=None, p...
36.856061
113
0.623227
578
4,865
5.029412
0.200692
0.057792
0.03096
0.024768
0.328173
0.290334
0.265566
0.179567
0.148607
0.148607
0
0.007225
0.288798
4,865
131
114
37.137405
0.832948
0
0
0.382022
0
0
0.07343
0
0
0
0
0
0
0
null
null
0
0.05618
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
16d68949a023a20451569c4bd42476cab180bd99
5,398
py
Python
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
11
2021-08-28T17:45:38.000Z
2022-01-26T17:50:03.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
1
2021-09-13T17:29:33.000Z
2021-09-13T21:50:34.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
null
null
null
"""Utility Modules.""" from typing import Any, Callable, Dict, List, Optional, Sequence, TypeVar, Union import jax import jax.numpy as jnp from .module import Module, parameters_method T = TypeVar("T", bound=Module) O = TypeVar("O") class ParameterModule(Module): """A PAX module that registers attributes as ...
29.659341
91
0.582994
682
5,398
4.460411
0.249267
0.031558
0.025312
0.014464
0.219921
0.176857
0.142998
0.095003
0.068047
0.068047
0
0.008729
0.278436
5,398
181
92
29.823204
0.767137
0.368099
0
0.168831
0
0
0.084248
0.016462
0
0
0
0
0.012987
1
0.12987
false
0
0.051948
0.025974
0.402597
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
16d79dca474781cfacdcca9ed1544b5e9e33234c
2,612
py
Python
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
""" Backend to connect Open edX richie with an LMS """ import logging import re import requests from requests.auth import AuthBase from ..serializers import SyncCourseRunSerializer from .base import BaseLMSBackend logger = logging.getLogger(__name__) def split_course_key(key): """Split an OpenEdX course key by...
32.246914
88
0.68683
326
2,612
5.380368
0.407975
0.041049
0.035918
0.027366
0
0
0
0
0
0
0
0.002886
0.204058
2,612
80
89
32.65
0.840789
0.383231
0
0
0
0
0.06345
0
0
0
0
0
0
1
0.216216
false
0
0.162162
0
0.621622
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
16d7b7c1c6e2def8cf0c9ec10f6916a0a8cf367f
4,106
py
Python
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
7
2015-07-28T09:17:17.000Z
2021-11-07T02:29:41.000Z
# by Greg Hazel import xmlrpclib from xmlrpclib2 import * from BTL import brpc old_PyCurlTransport = PyCurlTransport class PyCurlTransport(old_PyCurlTransport): def set_connection_params(self, h): h.add_header('User-Agent', "brpclib.py/1.0") h.add_header('Connection', "Keep-Alive") h.add_...
30.641791
74
0.605212
503
4,106
4.695825
0.355865
0.016935
0.00508
0.024132
0.009314
0
0
0
0
0
0
0.012735
0.273259
4,106
133
75
30.87218
0.77882
0.11057
0
0.052632
0
0
0.092642
0.008027
0
0
0
0
0.026316
0
null
null
0
0.052632
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
16d7e9187801937282012d38f8b28fd55938bd25
1,207
py
Python
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
8
2016-12-11T02:24:21.000Z
2020-08-07T10:02:32.000Z
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
41
2015-08-11T16:57:21.000Z
2022-01-18T19:19:41.000Z
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
7
2015-08-02T05:32:41.000Z
2019-06-17T11:53:14.000Z
import base64 import mimetypes import os from django.conf import settings from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404 from django.views.decorators.cache import cache_control from django.views.static import serve as django_serve from database_files.models import File ...
29.439024
74
0.724109
163
1,207
5.233129
0.404908
0.058617
0.056272
0.032825
0
0
0
0
0
0
0
0.02045
0.189727
1,207
40
75
30.175
0.851738
0.156587
0
0
0
0
0.060081
0.02444
0
0
0
0
0
1
0.08
false
0
0.36
0
0.56
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
16d80d08df5b20660db28d091611ed67b6dfa076
2,026
py
Python
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
6
2019-11-20T19:32:41.000Z
2021-06-25T19:47:26.000Z
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
null
null
null
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
1
2021-06-25T19:47:34.000Z
2021-06-25T19:47:34.000Z
import numpy as np import pandas as pd from abc import ABC class Injector(ABC): """Base class for the injectors of artificial noise. Attributes ---------- rem_indx : :obj:`List` Removed indexes (rows) from the dataset after the filtering. parameters : :obj:`Dict` Parameters used ...
30.238806
110
0.600197
248
2,026
4.75
0.407258
0.067912
0.03056
0.025467
0.074703
0.04584
0
0
0
0
0
0.009059
0.291708
2,026
67
111
30.238806
0.811847
0.239882
0
0.114286
0
0
0.069226
0
0
0
0
0
0
1
0.142857
false
0
0.085714
0.057143
0.314286
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
16d81711460bcdde5df04988352f117c180dbed8
19,516
py
Python
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
2
2016-11-13T21:32:51.000Z
2017-03-22T02:50:26.000Z
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
1
2021-02-08T20:18:59.000Z
2021-02-08T20:18:59.000Z
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
null
null
null
from wtforms import Form, TextField, PasswordField, SelectField, TextAreaField, BooleanField, validators, ValidationError, RadioField import re phone_regex = "(\+\d+-?)?((\(?\d{3}\)?)|(\d{3}))-?\d{3}-?\d{4}$" gender_choices = [ ("", "Gender"), ("male", "Male"), ("female", "Female"), ("other", "Other"...
45.071594
269
0.645522
2,202
19,516
5.636694
0.124886
0.037383
0.060748
0.079439
0.747664
0.728005
0.670077
0.621898
0.606026
0.581453
0
0.007244
0.207727
19,516
432
270
45.175926
0.795499
0.106272
0
0.517241
0
0
0.319419
0.006373
0
0
0
0
0
1
0.018809
false
0.122257
0.00627
0
0.253919
0
0
0
0
null
0
0
0
0
1
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
2
16d86786252483bb0df3775ba6255b1dd3edd2a1
2,181
py
Python
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
null
null
null
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
2
2017-11-17T03:14:45.000Z
2019-10-19T07:17:22.000Z
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
1
2017-11-16T09:33:38.000Z
2017-11-16T09:33:38.000Z
# coding: utf-8 '''フロントコントローラを提供する ''' from math import ceil import os from flask import json from flask import Flask from flask import request from flask import send_from_directory from flask import render_template # from json_loader import load_locations # from json_loader import prepare_locations from models imp...
23.706522
79
0.629069
262
2,181
5.026718
0.339695
0.036446
0.056948
0.060744
0.095672
0.095672
0.047077
0
0
0
0
0.003041
0.246217
2,181
91
80
23.967033
0.798054
0.056855
0
0.034483
0
0
0.11236
0
0
0
0
0
0
1
0.068966
false
0
0.137931
0.034483
0.293103
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
16d86a94620baf9944e6bd338662eefcd3ab573e
2,180
py
Python
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
5
2021-09-10T14:20:15.000Z
2022-01-09T11:27:49.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
11
2021-08-15T09:39:09.000Z
2022-01-12T14:11:24.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
2
2021-12-01T23:33:14.000Z
2022-01-12T11:08:18.000Z
from __future__ import annotations from .base import CorkusBase from enum import Enum class DungeonType(Enum): REMOVED = "REMOVED" """Dungeons that were removed from the game in version ``1.14.1`` like ``Skeleton`` or ``Spider``""" REMOVED_MINI = "REMOVED_MINI" """Minidungeons that were reworked in ve...
34.0625
113
0.580734
230
2,180
5.443478
0.430435
0.038339
0.040735
0.033546
0.051118
0.051118
0
0
0
0
0
0.005161
0.288991
2,180
63
114
34.603175
0.802581
0.129358
0
0.12766
0
0
0.224868
0.017857
0
0
0
0
0
1
0.085106
false
0
0.06383
0.021277
0.425532
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
16d935b63ca1c52fcdad82da9c168df67d096ff5
527
py
Python
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
18
2015-02-05T00:44:24.000Z
2018-11-30T03:20:51.000Z
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
4
2016-06-25T20:04:59.000Z
2019-01-29T19:34:24.000Z
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
14
2015-11-15T05:20:28.000Z
2019-01-02T12:50:44.000Z
import pybrisk class Brisk: def __init__(self, thresh=60, octaves=4): self.thresh = thresh self.octaves = octaves self.descriptor_extractor = pybrisk.create() def __del__(self): pybrisk.destroy(self.descriptor_extractor) def detect(self, img): return pybrisk.detec...
26.35
57
0.648956
58
527
5.689655
0.362069
0.169697
0.278788
0.157576
0
0
0
0
0
0
0
0.007692
0.259962
527
19
58
27.736842
0.838462
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.142857
0.571429
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
1
0
0
0
1
1
0
0
4
16dc5aa7f7c7413a9e340c8bb600ebd849d60e67
2,897
py
Python
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
import serial import serial.tools.list_ports from hale_hub.constants import STARTING_OUTLET_COMMAND, SERIAL_BAUD_RATE, SERIAL_TIMEOUT from hale_hub.ifttt_logger import send_ifttt_log class _Outlet: def __init__(self, name): self.state = 0 self.name = name class _OutletInterface: def __init__...
41.385714
123
0.706593
376
2,897
5.055851
0.191489
0.088375
0.099947
0.069963
0.295108
0.295108
0.269858
0.224619
0.224619
0.224619
0
0.00522
0.20642
2,897
69
124
41.985507
0.821662
0
0
0.160714
0
0
0.063514
0
0
0
0
0
0
1
0.160714
false
0
0.071429
0.017857
0.285714
0.053571
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
16dcdf8ea3ba055a8650580e31092f4149c84a27
3,233
py
Python
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np def remove_nan(xyzs): return xyzs[~np.isnan(xyzs).any(axis = 1)] def measure_twocores(core_xyz_ref, core_xyz_tar): ''' Measure the following aspects of two helical cores. - Interhelical distance vector between the centers. - Inte...
33.677083
78
0.683266
531
3,233
3.819209
0.19209
0.117357
0.083826
0.073965
0.619822
0.604043
0.604043
0.579882
0.566075
0.566075
0
0.015336
0.213424
3,233
95
79
34.031579
0.782147
0.275905
0
0.347826
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0.021739
0.173913
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
16dd18d4c9d6b529392f25ddf3a0704445995def
675
py
Python
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
2
2021-03-06T22:09:44.000Z
2021-03-14T14:41:03.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
1
2020-03-25T15:42:47.000Z
2020-10-06T21:41:14.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
null
null
null
from typing import List with open("dane/liczby.txt") as f: nums: List[int] = [] nums_9_chars: List[int] = [] for line in f: sline = line.strip() num = int(sline, 2) if len(sline) == 9: nums_9_chars.append(num) nums.append(num) count_even = 0 max_num = 0 for n...
20.454545
96
0.58963
117
675
3.196581
0.324786
0.112299
0.106952
0.048128
0.069519
0
0
0
0
0
0
0.042169
0.262222
675
32
97
21.09375
0.708835
0
0
0
0
0.043478
0.248889
0.032593
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.130435
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
16de03e641bb707c0257c647f4e57b0375e2b543
668
py
Python
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
5
2015-10-13T04:13:04.000Z
2020-12-23T13:47:43.000Z
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
null
null
null
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
8
2015-07-20T15:37:38.000Z
2021-04-14T07:18:10.000Z
def fib(n): if n < 2: return n else: return fib(n-1) + fib(n-2) def fib_fast(n): from math import sqrt s5 = sqrt(5) x = (1 + s5) ** n y = (1 - s5) ** n return int((x - y)/(s5 * 2**n)) def print_fib(n): for i in range(n): print fib(i), print for i i...
15.904762
35
0.438623
113
668
2.469027
0.283186
0.057348
0.064516
0.11828
0.143369
0.143369
0.143369
0
0
0
0
0.06701
0.419162
668
41
36
16.292683
0.652062
0
0
0.181818
0
0
0.011976
0
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.363636
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
16de052924f6b7a0503a267b4aaeda1587303cff
3,681
py
Python
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
import os from typing import List from src.model.Etape import Etape from src.model.Grille import Grille from src.model.ItemCase import ItemCase from src.model.PointMontage import PointMontage from src.model.Robot import Robot from src.model.Tache import Tache class ParseInput: """Parser qui permet de lire le fic...
40.9
123
0.594947
470
3,681
4.525532
0.323404
0.072402
0.03385
0.018336
0.082746
0.026328
0
0
0
0
0
0.01247
0.32464
3,681
90
124
40.9
0.843121
0.265145
0
0.0625
0
0
0.000753
0
0
0
0
0
0.020833
1
0.041667
false
0.020833
0.166667
0
0.270833
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
16df196ac8b1d19487d9f38ab432516956acf44f
13,440
py
Python
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
import os import sys import time import traceback import project1_Copy as p1 import numpy as np verbose = False def green(s): return '\033[1;32m%s\033[m' % s def yellow(s): return '\033[1;33m%s\033[m' % s def red(s): return '\033[1;31m%s\033[m' % s def log(*m): print(" ".join(map(str, m))) def log...
29.154013
165
0.564658
1,974
13,440
3.659574
0.090172
0.064784
0.063123
0.03613
0.780592
0.743217
0.710963
0.691999
0.669574
0.651163
0
0.03633
0.283185
13,440
460
166
29.217391
0.713515
0
0
0.629243
0
0
0.12619
0
0
0
0
0
0
1
0.060052
false
0.044386
0.018277
0.007833
0.208877
0.002611
0
0
0
null
0
0
0
0
1
1
0
0
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
3
16e1f96bcb5b1ba1faf14b289b7309040c63b043
1,619
py
Python
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
""" Unit tests for module `homework_1.tasks.task_3`. """ from tempfile import NamedTemporaryFile from typing import Tuple import pytest from homework_1.tasks.task_3 import find_maximum_and_minimum @pytest.mark.parametrize( ["file_content", "expected_result"], [ pytest.param( "0\n", ...
29.436364
87
0.542928
251
1,619
3.398406
0.310757
0.021102
0.065651
0.098476
0.341149
0.267292
0.126612
0.126612
0.126612
0.126612
0
0.104363
0.277949
1,619
54
88
29.981481
0.625321
0.155034
0
0.307692
0
0.102564
0.28132
0.139535
0
0
0
0
0.025641
1
0.025641
false
0
0.102564
0
0.128205
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
16e3d9c0e2f0128dd26f1a69eb5d1f88d973387a
16,524
py
Python
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.53211
1,363
0.676834
1,946
16,524
5.473792
0.119219
0.04647
0.039429
0.035674
0.698273
0.604581
0.556703
0.436068
0.4003
0.366128
0
0.01302
0.223796
16,524
326
1,364
50.687117
0.81748
0.292423
0
0.38806
1
0
0.199819
0.09864
0
0
0
0
0
1
0.144279
false
0.004975
0.034826
0
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
16e4af35a62847ccd702cb32c6b8a27f27bee59d
129
py
Python
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
null
null
null
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
8
2021-03-19T03:28:32.000Z
2022-03-11T23:59:00.000Z
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
null
null
null
# coding:utf-8 import app.admin.views.start import app.admin.views.book import app.admin.views.user import app.admin.views.site
18.428571
28
0.79845
23
129
4.478261
0.478261
0.349515
0.543689
0.737864
0
0
0
0
0
0
0
0.008475
0.085271
129
6
29
21.5
0.864407
0.093023
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
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
1
0
1
0
1
0
0
8
16e4dfbf8bd61eccd8ee52165a28c0666d169326
840
py
Python
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
import os import chainer import chainer.links as L from net import SiameseNetwork import numpy as np import matplotlib.pyplot as plt # 訓練済みモデルをロード model = SiameseNetwork() chainer.serializers.load_npz(os.path.join('result', 'model.npz'), model) # テストデータをロード _, test = chainer.datasets.get_mnist(ndim=3) test_data, te...
24.705882
72
0.667857
118
840
4.677966
0.618644
0.047101
0.036232
0.057971
0
0
0
0
0
0
0
0.07978
0.134524
840
33
73
25.454545
0.679505
0.140476
0
0
0
0
0.156863
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
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
16e5abfcca6728651310e1b9d7d20815d0685476
5,535
py
Python
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
from random import randrange, random from time import time import logging from TwisterTempoGUI import TwisterTempoGUI class TwoFeetTempoMove(object): COLORS_ALPHA = {0: 'RED', 1: 'BLUE', 2: 'YELLOW', 3: 'GREEN'} COLORS_RGB = {0: (255, 0, 0), 1: (0, 0, 255), 2: (255, 255, 0), 3: (0, 255, 0)} FOOT_CHANGE_...
45.368852
106
0.592954
652
5,535
4.673313
0.142638
0.065638
0.089596
0.162783
0.605514
0.507384
0.409583
0.350837
0.258943
0.258943
0
0.026302
0.313098
5,535
121
107
45.743802
0.775118
0.024571
0
0.352941
0
0
0.051001
0
0
0
0
0
0.019608
1
0.068627
false
0
0.039216
0.019608
0.186275
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
16e6fb3c075a8554e7e6d5fe5397106b44ef9bf3
311
py
Python
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
13
2020-01-27T09:02:25.000Z
2022-01-20T07:45:26.000Z
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
29
2020-03-22T06:57:57.000Z
2022-01-24T22:46:42.000Z
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
6
2020-07-10T00:13:30.000Z
2022-01-26T08:22:33.000Z
# -*- coding: utf-8 -*- """ Panorama is a Pelican plugin to generate statistics from blog posts (number of posts per month, categories and so on) display them as beautiful charts. Project location: https://github.com/romainx/panorama """ __version__ = "0.2.0" __author__ = "romainx" from .panorama import *
22.214286
83
0.726688
44
311
4.954545
0.863636
0
0
0
0
0
0
0
0
0
0
0.015267
0.157556
311
13
84
23.923077
0.816794
0.736334
0
0
1
0
0.162162
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
2
16e747bd6febb0a03dbe8fb17268efc47ff0c0ee
7,999
py
Python
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
9
2015-07-21T17:41:25.000Z
2020-08-26T13:37:08.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2015-06-11T18:40:16.000Z
2020-04-03T20:31:40.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2016-02-09T21:45:50.000Z
2020-07-30T21:52:50.000Z
#!/usr/bin/python2.5 # Copyright (C) 2007 Google Inc. # # 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 la...
40.811224
91
0.665833
960
7,999
5.34375
0.248958
0.072515
0.081871
0.066667
0.288499
0.218713
0.168031
0.137622
0.111891
0.111891
0
0.010007
0.262908
7,999
195
92
41.020513
0.860075
0.1989
0
0.26087
0
0
0.076766
0
0
0
0
0
0
1
0.108696
false
0.014493
0.021739
0.007246
0.289855
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
16e7d64f5a23705a73ced1fae75f2e7697ae34b2
2,067
py
Python
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
from django.urls import path from . import views from . views import UserPostListView, PostDetailView, PostDeleteview, PostCreateView, PostUpdateView,CommentUpdateView, VideoCreateView, video_update urlpatterns = [ path('',views.base, name='base'), path('login',views.login, name='login'), path('register',v...
43.0625
149
0.701016
258
2,067
5.445736
0.178295
0.034164
0.05694
0.037011
0
0
0
0
0
0
0
0
0.111756
2,067
47
150
43.978723
0.765251
0.029511
0
0
0
0
0.301548
0.03345
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
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
16e8783047883ecc17068c1f63c87b161a271a5f
1,054
py
Python
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
4
2020-07-30T02:38:29.000Z
2021-09-12T14:30:18.000Z
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
''' compute_collision() will compute the collision of all the entities with a Point while compute_first_collision() will always return its first entry. Especially if a point is on an element edge this can be tricky. You may also want to compare with the Cell.contains(Point) tool. ''' # Script by Rudy at https://fenicsp...
35.133333
75
0.705882
156
1,054
4.685897
0.532051
0.038304
0.049248
0.06156
0.057456
0
0
0
0
0
0
0.013158
0.134725
1,054
29
76
36.344828
0.788377
0.385199
0
0
0
0
0.08557
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
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
16e8943240219eac91364d8b6c27599e32680763
622
py
Python
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
import datetime import os from alice_check_train.main import rasp_to_text from alice_check_train.rasp_api import get_rasp, filter_rasp def main(): key = os.getenv('RASP_KEY') station_from = os.getenv('STATION_FROM') station_to = os.getenv('STATION_TO') date = datetime.date.today().strftime('%Y-%m-%d'...
25.916667
65
0.688103
90
622
4.444444
0.422222
0.06
0.07
0.095
0
0
0
0
0
0
0
0.029354
0.178457
622
23
66
27.043478
0.753425
0
0
0
0
0
0.130225
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
0.117647
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
16e89821c774aa40fe5b74ea387488fc99280078
7,309
py
Python
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
1
2021-11-16T13:22:09.000Z
2021-11-16T13:22:09.000Z
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
# https://medium.com/@kumon/how-to-realize-similarity-search-with-elasticsearch-3dd5641b9adb # https://docs.aws.amazon.com/opensearch-service/latest/developerguide/knn.html import sys import requests import h5py import numpy as np import json import aiohttp import asyncio import time import httpx from requests.auth imp...
33.374429
142
0.675332
1,021
7,309
4.657199
0.225269
0.022713
0.04164
0.043533
0.3796
0.34448
0.283912
0.260358
0.19306
0.148055
0
0.03303
0.159119
7,309
218
143
33.527523
0.740644
0.255028
0
0.150327
0
0.013072
0.261644
0.052886
0
0
0
0
0.078431
1
0
false
0
0.071895
0
0.071895
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
16ea2d8be166b5650aea4af33dbde9040a41f768
1,438
py
Python
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
import platform import textwrap import pytest from . import test_projects, utils dockcross_only_project = test_projects.new_c_project( setup_py_add=textwrap.dedent(r''' import os, sys # check that we're running in the correct docker image as specified in the # environment options CIBW_MA...
35.073171
116
0.672462
196
1,438
4.755102
0.459184
0.016094
0.042918
0.040773
0.064378
0.064378
0
0
0
0
0
0.037138
0.232267
1,438
40
117
35.95
0.807065
0.031293
0
0
0
0
0.491733
0.113587
0
0
0
0
0.033333
1
0.033333
false
0
0.166667
0
0.2
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
16eb07b6e691db19202917b717c2ccb87df9fd9d
32,556
py
Python
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
3
2018-05-22T22:45:23.000Z
2020-02-13T16:45:03.000Z
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import math import dateutil import dateutil.parser import json from ChartBars import Chart from ChartUpdaterByCCWebsocket import ChartUpdaterByCoincheckWS from Util import BitcoinUtil def adjust_price_to_tick(price, tick): return price - math.fmod(price, tick) def adjust_amount_to_tick(amount, t...
40.593516
189
0.593593
3,837
32,556
4.708887
0.095126
0.022415
0.02557
0.017877
0.394786
0.307394
0.228027
0.160615
0.116504
0.084625
0
0.015373
0.322675
32,556
801
190
40.644195
0.803954
0.138807
0
0.240084
0
0.002088
0.09426
0.003947
0
0
0
0
0.004175
1
0.05428
false
0.004175
0.014614
0.016701
0.139875
0.093946
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
16ebc077aad6a4dd684131dc7271bbdbd5696af9
743
py
Python
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
2
2021-09-07T03:25:00.000Z
2021-09-07T17:28:46.000Z
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
null
null
null
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
null
null
null
from PiRelay8 import Relay import time r1 = Relay("RELAY1") r2 = Relay("RELAY2") r3 = Relay("RELAY3") r4 = Relay("RELAY4") r5 = Relay("RELAY5") r6 = Relay("RELAY6") r7 = Relay("RELAY7") r8 = Relay("RELAY8") r1.off() r2.off() r3.off() r4.off() r5.off() r6.off() r7.off() r8.off() r1.on() time.s...
11.983871
27
0.572005
142
743
2.992958
0.183099
0.338824
0.376471
0.414118
0.574118
0
0
0
0
0
0
0.121464
0.191117
743
61
28
12.180328
0.585691
0
0
0.64
0
0
0.070381
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
1
1
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
3
16ebce5b29644a3fdd8bee60c8ef43a322219b10
9,086
py
Python
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
null
null
null
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
5
2018-09-28T18:01:28.000Z
2019-02-12T18:49:06.000Z
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
1
2018-10-15T22:41:47.000Z
2018-10-15T22:41:47.000Z
import rs3clans import discord from discord.ext import commands from bot.bot_client import Bot from bot.utils.tools import separator from bot.utils.context import Context class Clan(commands.Cog): def __init__(self, bot: Bot): self.bot = bot @commands.cooldown(1, 5, commands.BucketTyp...
42.064815
115
0.569117
1,046
9,086
4.717017
0.191205
0.024321
0.039522
0.051682
0.378597
0.315971
0.270369
0.250709
0.250709
0.181394
0
0.018992
0.316201
9,086
215
116
42.260465
0.774344
0
0
0.270833
0
0.005208
0.214181
0.0434
0
0
0
0
0
1
0.010417
false
0
0.03125
0
0.098958
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
16ec4bab280bd7d838f873bdb4d147f41ca2f107
2,539
py
Python
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
33.853333
77
0.639228
329
2,539
4.756839
0.340426
0.081789
0.066454
0.057508
0.197444
0.170607
0.104792
0.104792
0.06262
0.06262
0
0.003188
0.258763
2,539
74
78
34.310811
0.828374
0.2308
0
0.083333
0
0
0.149793
0.037707
0
0
0
0
0.020833
1
0.104167
false
0
0.083333
0
0.25
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
16ef740b41f41832481d4956834bb037ddc3b7b6
2,614
py
Python
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
3
2020-10-30T23:31:26.000Z
2022-03-30T21:48:40.000Z
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
42
2020-09-16T15:23:11.000Z
2021-09-20T13:00:50.000Z
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
2
2021-01-03T21:37:22.000Z
2021-08-12T20:28:52.000Z
import unittest from typing import Set, Optional, Dict, List from uuid import uuid4 from StructNoSQL import BaseField, MapModel, TableDataModel from tests.components.playground_table_clients import PlaygroundDynamoDBBasicTable, TEST_ACCOUNT_ID class TableModel(TableDataModel): accountId = BaseField(field_type=st...
38.441176
114
0.704285
277
2,614
6.270758
0.306859
0.031088
0.048359
0.041451
0.342545
0.264824
0.218768
0.218768
0.218768
0.218768
0
0.001429
0.197016
2,614
67
115
39.014925
0.826108
0.076129
0
0.229167
0
0
0.134855
0.086722
0
0
0
0.014925
0.104167
1
0.083333
false
0.041667
0.104167
0
0.270833
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
1
0
0
0
0
0
0
0
0
0
0
1