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
296f3e0d144e44aa8925c39df61ed0e143aa64d0
1,577
py
Python
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
17
2019-12-19T13:37:14.000Z
2022-03-30T15:43:12.000Z
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
null
null
null
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
4
2019-05-15T14:58:05.000Z
2021-10-14T03:24:12.000Z
from __future__ import absolute_import from io import BytesIO import zstd from .base import BaseCompressor, BaseDecompressor from ..protocol import CompressionMethod, CompressionMethodByte from ..reader import read_binary_uint32 from ..writer import write_binary_uint32, write_binary_uint8 class Compressor(BaseCompr...
30.326923
66
0.723526
179
1,577
6.055866
0.268156
0.066421
0.062731
0.060886
0.125461
0.125461
0.125461
0.125461
0.125461
0
0
0.014388
0.206722
1,577
51
67
30.921569
0.852118
0.003171
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.205882
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
0
0
0
0
1
0
2970d64cd60442ad64c58f0629d552521a791dbc
967
py
Python
spyder/utils/tests/test_environ.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/utils/tests/test_environ.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/utils/tests/test_environ.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # """ Tests for environ.py """ # Standard library imports import os # Test library imports import pytest # Third party imports from qtpy.QtCore import QTimer # Local imports from spyder.utils.test impo...
20.574468
72
0.713547
120
967
5.616667
0.508333
0.077151
0.066766
0.086053
0.083086
0
0
0
0
0
0
0.006452
0.198552
967
46
73
21.021739
0.861935
0.323681
0
0
0
0
0.108571
0
0
0
0
0
0.047619
1
0.095238
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2970ef8fae53d89f446cb52a1542393d10955b37
4,680
py
Python
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
1
2020-09-21T01:56:41.000Z
2020-09-21T01:56:41.000Z
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
null
null
null
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
1
2020-10-09T01:09:20.000Z
2020-10-09T01:09:20.000Z
import math def main(): print(""" \tComsole by MumuNiMochii version beta 1.6.23 \t\"Originally made with C\" \tMAIN MENU \tWhat do you want to execute and evaluate? \t1.) Add two addends \t2.) Subtract a minuend from its subtrahend \t3.) Multiply a multiplicand to its multiplier \t4.) Divide a dividend to its...
38.04878
121
0.47906
637
4,680
3.519623
0.232339
0.023194
0.042819
0.046387
0.504014
0.454505
0.40678
0.321588
0.291704
0.263158
0
0.021318
0.348504
4,680
122
122
38.360656
0.714005
0
0
0.194915
0
0
0.401709
0
0
0
0
0
0
1
0.09322
false
0
0.008475
0
0.101695
0.228814
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
2971ec9257acdac3ee8d9c3bae4d48e78eefdf76
3,485
py
Python
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
import unittest import json from server import server from models.abc import db from repositories import ChannelRepository, GitlabProvider from unittest.mock import MagicMock, Mock # from flask import make_response # from flask.json import jsonify from util import test_client class TestDiscussions(unittest.TestCase)...
37.880435
79
0.63759
335
3,485
6.498507
0.256716
0.025723
0.030317
0.04961
0.344051
0.317409
0.317409
0.269178
0.248048
0.226918
0
0.016098
0.251363
3,485
91
80
38.296703
0.818321
0.090387
0
0.194444
0
0
0.155286
0.060407
0
0
0
0
0.097222
1
0.083333
false
0
0.097222
0
0.194444
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
29726a4c7ce2a690926dd277befe7e4b116e0d83
24,943
py
Python
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
""" This is an example cog that shows how you would make use of Lavalink.py. This example cog requires that you have python 3.6 or higher due to the f-strings. """ import math import re import discord import lavalink from discord.ext import commands from discord.ext import menus from .utils import checks ...
41.092257
161
0.583611
3,009
24,943
4.747424
0.133932
0.022961
0.028561
0.026881
0.545887
0.495975
0.455023
0.40756
0.39664
0.39006
0
0.005018
0.304975
24,943
606
162
41.160066
0.818355
0.024536
0
0.447894
0
0.015521
0.144104
0.022052
0
0
0
0
0
1
0.019956
false
0.013304
0.022173
0
0.124169
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
297530f3746153e98984e1af10f206c3aa39875c
17,856
py
Python
old_metrics/bleu.py
Danial-Alh/fast-bleu
d8726ae829b2cc275192e70819ee9c60c9d4bed6
[ "MIT" ]
21
2020-08-09T12:06:58.000Z
2022-02-13T19:15:11.000Z
old_metrics/bleu.py
Danial-Alh/FastBLEU
182584a6593aa36d57b15705da6f317bdb06f83e
[ "MIT" ]
4
2020-08-11T22:00:40.000Z
2021-09-01T07:35:52.000Z
old_metrics/bleu.py
Danial-Alh/FastBLEU
182584a6593aa36d57b15705da6f317bdb06f83e
[ "MIT" ]
2
2020-08-12T14:49:18.000Z
2021-06-25T12:51:42.000Z
import math import os from collections import Counter from fractions import Fraction import numpy as np from nltk import ngrams from nltk.translate.bleu_score import SmoothingFunction from .utils import get_ngrams, Threader def corpus_bleu(references, hypothesis, reference_max_counts...
44.19802
115
0.620128
2,223
17,856
4.843455
0.185335
0.019504
0.025355
0.011145
0.343921
0.293582
0.239621
0.21538
0.192718
0.182316
0
0.020304
0.25252
17,856
403
116
44.307692
0.786394
0.650818
0
0.043478
0
0
0.016457
0
0
0
0
0
0.017391
1
0.086957
false
0
0.069565
0.017391
0.278261
0.026087
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
2975d99cfa9a3c77e63e816ac890c17807b18244
1,880
py
Python
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
4
2021-07-23T02:49:54.000Z
2022-03-22T19:56:13.000Z
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
1
2020-08-24T19:03:46.000Z
2020-08-24T19:03:46.000Z
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import re from setuptools import setup, find_packages # classifiers = """\ # Development Status :: 4 - Beta # Programming Language :: Python # Programming Language :: Python :: 3 # Programming Language :: Python :: 3.4 # Programming...
24.736842
74
0.623404
217
1,880
5.230415
0.488479
0.117181
0.154185
0.137445
0
0
0
0
0
0
0
0.010232
0.220213
1,880
76
75
24.736842
0.763984
0.238298
0
0
0
0
0.189437
0.014789
0
0
0
0
0
1
0.085106
false
0
0.085106
0.021277
0.255319
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
297664fa1ad9becfe5e46a57677c012794d49c7e
697
py
Python
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
from pyglet.window import Window as PygletWindow from .controllers import ComponentContainerController from .models.container import ComponentContainerModel from .views import OrthoViewport class Window(PygletWindow): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._m...
30.304348
80
0.714491
75
697
6.373333
0.44
0.094142
0.054393
0
0
0
0
0
0
0
0
0.003527
0.186514
697
22
81
31.681818
0.839506
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.25
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
0
0
0
0
1
0
297a9dbff855963c67a53faea767533cf768f0af
2,073
py
Python
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
3
2021-08-12T12:59:27.000Z
2021-08-29T15:30:49.000Z
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
from .Fragment import Fragment from utils.flags import * from utils.CustomLogging import CustomLogging #from python_compiler.engines.utils.types import get_python_type_str, ANY DEFAULT_ASSIGN_OPERATOR = "=" ASSIGN_OPERATORS = { "=":"=", "+=":"+=", "-=":"-=", "*=":"*=", "/=":"/=", "//=":"//=", ...
33.983607
116
0.675832
222
2,073
5.981982
0.184685
0.115964
0.099398
0.048193
0.213855
0.141566
0.088855
0.088855
0
0
0
0
0.178485
2,073
61
117
33.983607
0.7798
0.034732
0
0
0
0
0.143928
0.056472
0
0
0
0
0
1
0.115385
false
0
0.057692
0
0.365385
0.115385
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
297bd9ae840483948b9e83e2e47fb15cc768315a
37,440
py
Python
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the terms of the Qwt License # Copyright (c) 2002 Uwe Rathmann, for the original C++ code # Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization # (see LICENSE file for more details) """ QwtAbstractScaleDraw -------------------- .. autoclass:: QwtAbstra...
30.967742
130
0.559161
4,035
37,440
5.131103
0.126146
0.023184
0.022604
0.008694
0.402338
0.336505
0.272701
0.240099
0.221938
0.211891
0
0.009263
0.342548
37,440
1,208
131
30.993377
0.831851
0.375347
0
0.305263
0
0
0.006836
0
0
0
0.000626
0
0
1
0.122105
false
0.006316
0.016842
0
0.252632
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
297beccf46f124350d5429aa7d77baa3ba0a7320
3,524
py
Python
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
80
2019-12-10T21:06:12.000Z
2021-02-06T09:12:37.000Z
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
13
2021-03-18T12:59:25.000Z
2022-03-30T11:35:51.000Z
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
4
2020-10-04T22:23:15.000Z
2021-01-29T21:51:25.000Z
from fuzzconfig import FuzzConfig import nonrouting import fuzzloops import re cfgs = [ FuzzConfig(job="SYSCONFIG40", device="LIFCL-40", sv="../shared/empty_40.v", tiles=["CIB_R0C75:EFB_0", "CIB_R0C72:BANKREF0", "CIB_R0C77:EFB_1_OSC", "CIB_R0C79:EFB_2", "CIB_R0C81:I2C_EFB_3", "CIB_R0C85:PMU", "CIB_...
61.824561
117
0.557605
398
3,524
4.648241
0.268844
0.043784
0.077838
0.108108
0.610811
0.608108
0.608108
0.514054
0.472973
0.351351
0
0.041946
0.323496
3,524
56
118
62.928571
0.73406
0
0
0.148148
0
0
0.323496
0.061294
0
0
0
0
0
1
0.037037
false
0
0.074074
0.018519
0.12963
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
297cf3d7631c7db955fd11e56c685c2b4f84aac0
1,254
py
Python
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
3
2020-04-29T17:13:43.000Z
2020-12-04T21:08:33.000Z
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
21
2020-04-16T12:29:46.000Z
2022-02-28T17:17:15.000Z
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
4
2020-02-21T20:20:00.000Z
2021-02-11T19:00:59.000Z
from uuid import UUID import os import pytest from notifications_utils.base64_uuid import base64_to_uuid, uuid_to_base64, base64_to_bytes, bytes_to_base64 def test_bytes_to_base64_to_bytes(): b = os.urandom(32) b64 = bytes_to_base64(b) assert base64_to_bytes(b64) == b @pytest.mark.parametrize( "url...
27.26087
117
0.739234
177
1,254
4.841808
0.338983
0.056009
0.060677
0.102684
0.23804
0.133022
0
0
0
0
0
0.070543
0.163477
1,254
45
118
27.866667
0.743565
0.062998
0
0.235294
0
0
0.189258
0.168798
0
0
0
0
0.088235
1
0.147059
false
0
0.117647
0
0.264706
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
297d3ac09c9100be856d7c8b2496765760397058
3,571
py
Python
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
64
2020-10-01T06:39:48.000Z
2022-03-31T06:02:17.000Z
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""The devolo_home_control integration.""" from __future__ import annotations import asyncio from functools import partial from types import MappingProxyType from typing import Any from devolo_home_control_api.exceptions.gateway import GatewayOfflineError from devolo_home_control_api.homecontrol import HomeControl fr...
35.009804
86
0.711845
407
3,571
6.002457
0.257985
0.026197
0.040115
0.04912
0.240278
0.201392
0.155546
0.068768
0.037659
0.037659
0
0
0.209745
3,571
101
87
35.356436
0.865698
0.028843
0
0
0
0
0.03435
0.007699
0
0
0
0
0
1
0.026667
false
0.026667
0.186667
0
0.253333
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
297d9c0aeb9cbc7ee91fb0bd8b0450dda847eca4
1,199
py
Python
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
## -------------------------------------------------------- ## # Trab 1 IA 2019-2 # # Rafael Belmock Pedruzzi # # hillClimbing.py: implements the hill climbing metaheuristic for the bag problem # # Python version: 3.7.4 ## -------------------------------------------------------- ## import bagProblem as bp from...
28.547619
89
0.533778
168
1,199
3.767857
0.470238
0.039494
0.041074
0.053712
0
0
0
0
0
0
0
0.023702
0.261051
1,199
41
90
29.243902
0.690745
0.466222
0
0
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.304348
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
298195d9b4f163d34048ccfa931e4a45670c98bc
15,195
py
Python
sklearn_extra/cluster/_k_medoids.py
chkoar/scikit-learn-extra
9e62f1ac18b40f444009db9f6557196ddc6c5e86
[ "BSD-3-Clause" ]
1
2019-08-27T01:10:48.000Z
2019-08-27T01:10:48.000Z
sklearn_extra/cluster/_k_medoids.py
KonstantinKlepikov/scikit-learn-extra
12fb111acdfa7aada0ed29f53b9b92c44d8de7c3
[ "BSD-3-Clause" ]
null
null
null
sklearn_extra/cluster/_k_medoids.py
KonstantinKlepikov/scikit-learn-extra
12fb111acdfa7aada0ed29f53b9b92c44d8de7c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """K-medoids clustering""" # Authors: Timo Erkkilä <timo.erkkila@gmail.com> # Antti Lehmussola <antti.lehmussola@gmail.com> # Kornel Kiełczewski <kornel.mail@gmail.com> # Zane Dufour <zane.dufour@gmail.com> # License: BSD 3 clause import warnings import numpy as np ...
35.173611
83
0.596249
1,844
15,195
4.736443
0.22397
0.030914
0.011335
0.012022
0.13957
0.111747
0.0861
0.078086
0.056103
0.056103
0
0.007696
0.315893
15,195
431
84
35.25522
0.832323
0.444357
0
0.127907
0
0
0.080989
0.005128
0
0
0
0
0
1
0.05814
false
0
0.046512
0
0.156977
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
29843af5e308c3a6a1b810c3658616edbb2840d2
2,234
py
Python
config/synthia_rand_cityscapes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
config/synthia_rand_cityscapes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
config/synthia_rand_cityscapes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
problem_type = "segmentation" dataset_name = "synthia_rand_cityscapes" dataset_name2 = None perc_mb2 = None model_name = "resnetFCN" freeze_layers_from = None show_model = False load_imageNet = True load_pretrained = False weights_file = "weights.hdf5" train_model = True test_model = True pred_model = False debug = Tru...
24.822222
42
0.821844
339
2,234
4.982301
0.371681
0.007105
0.011841
0.021314
0.024867
0
0
0
0
0
0
0.041752
0.120859
2,234
90
43
24.822222
0.818228
0
0
0
0
0
0.048322
0.010291
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
461e4085634d8de9c3e950613c2eaf835255268d
5,590
py
Python
spades/main.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
spades/main.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
spades/main.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
'''Provide interface for game.''' from typing import Any, Dict, List, Optional, Union import flask from flask import Blueprint, url_for from flask_login import current_user, login_required from flask_wtf import FlaskForm from flask_sse import sse from werkzeug.wrappers import Response from wtforms import IntegerField...
31.055556
78
0.617352
646
5,590
5.095975
0.208978
0.03949
0.027643
0.045565
0.27582
0.218105
0.175273
0.096598
0.058323
0
0
0.000725
0.259928
5,590
179
79
31.22905
0.795021
0.1
0
0.19708
0
0
0.083066
0
0
0
0
0.005587
0
1
0.058394
false
0
0.080292
0
0.270073
0.109489
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
46209cb73578b98d96c50b38e0aa7cf17f602e19
2,404
py
Python
modin/engines/base/io/column_stores/feather_dispatcher.py
webclinic017/modin
6e38ae4f459660460d07e7d93fe1dda4ad9214cd
[ "ECL-2.0", "Apache-2.0" ]
1
2021-10-11T08:52:27.000Z
2021-10-11T08:52:27.000Z
modin/engines/base/io/column_stores/feather_dispatcher.py
todd-yu/modin
f284bb3cfd6e53b468da09efd6edc32bafd10689
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/engines/base/io/column_stores/feather_dispatcher.py
todd-yu/modin
f284bb3cfd6e53b468da09efd6edc32bafd10689
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
38.774194
89
0.688852
306
2,404
5.375817
0.53268
0.036474
0.024316
0.019453
0
0
0
0
0
0
0
0.002194
0.241681
2,404
61
90
39.409836
0.900165
0.707987
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.454545
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
4624e2bb70d8902485f3a782d8d8f3f7917f1147
5,187
py
Python
src/data_augmentation.py
pallabganguly/gestures-cnn
8778760d7a5854a5987d24d7b8ff30afb216a624
[ "MIT" ]
1
2018-05-08T15:34:50.000Z
2018-05-08T15:34:50.000Z
src/data_augmentation.py
pallabganguly/gestures-cnn
8778760d7a5854a5987d24d7b8ff30afb216a624
[ "MIT" ]
9
2018-04-25T09:09:08.000Z
2022-03-11T23:24:27.000Z
src/data_augmentation.py
pallabganguly/gestures-cnn
8778760d7a5854a5987d24d7b8ff30afb216a624
[ "MIT" ]
1
2018-06-14T08:44:48.000Z
2018-06-14T08:44:48.000Z
""" Totally untested file. Will be removed in subsequent commits """ import tensorflow as tf import matplotlib.image as mpimg import numpy as np from math import ceil, floor import os IMAGE_SIZE = 720 def central_scale_images(X_imgs, scales): # Various settings needed for Tensorflow operation boxes = np.zeros...
39.295455
91
0.634664
798
5,187
3.899749
0.199248
0.083869
0.053985
0.028278
0.451478
0.363432
0.363432
0.33162
0.318766
0.315874
0
0.041099
0.24947
5,187
131
92
39.59542
0.758284
0.085213
0
0.309091
0
0
0.008672
0.008672
0
0
0
0
0
1
0.045455
false
0
0.054545
0
0.145455
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
4626c0de5deedd2af689cbda3e1e357bed965d98
4,909
py
Python
cutde/opencl.py
brendanjmeade/cutde
8d9c01ab7e6073e8a8a45af927644c9b676e5ec6
[ "CNRI-Python" ]
1
2021-04-23T21:07:29.000Z
2021-04-23T21:07:29.000Z
cutde/opencl.py
brendanjmeade/cutde
8d9c01ab7e6073e8a8a45af927644c9b676e5ec6
[ "CNRI-Python" ]
null
null
null
cutde/opencl.py
brendanjmeade/cutde
8d9c01ab7e6073e8a8a45af927644c9b676e5ec6
[ "CNRI-Python" ]
null
null
null
import logging import warnings import pyopencl import pyopencl.array logger = logging.getLogger(__name__) gpu_initialized = False gpu_ctx = None gpu_queue = None def report_devices(ctx): device_names = [d.name for d in ctx.devices] logger.info("initializing opencl context with devices = " + str(device_name...
27.734463
88
0.66266
637
4,909
4.874411
0.302983
0.031884
0.014171
0.024155
0.226087
0.188728
0.172625
0.172625
0.172625
0.11401
0
0.003537
0.251375
4,909
176
89
27.892045
0.841361
0.06152
0
0.132813
0
0
0.283344
0.012443
0
0
0
0
0
1
0.101563
false
0
0.03125
0.007813
0.242188
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
4627027be2fa84a4ea17d7c6b65cd28da93acd06
8,265
py
Python
phase-iii-client/services/aureas/views.py
williamegomez/AUREAS
06f5bda347481628ba2a08a854b76151a59d6e66
[ "MIT" ]
5
2019-02-12T18:46:40.000Z
2019-02-24T15:24:43.000Z
phase-iii-client/services/aureas/views.py
williamegomez/AUREAS
06f5bda347481628ba2a08a854b76151a59d6e66
[ "MIT" ]
null
null
null
phase-iii-client/services/aureas/views.py
williamegomez/AUREAS
06f5bda347481628ba2a08a854b76151a59d6e66
[ "MIT" ]
1
2019-11-29T02:28:09.000Z
2019-11-29T02:28:09.000Z
from django.http import HttpResponse from rest_framework.decorators import api_view from rest_framework.decorators import parser_classes from rest_framework.parsers import JSONParser import numpy as np import json import os from .utils.spectrogram_utils import SpectrogramUtils from .utils.feature_extraction_utils impor...
36.409692
194
0.580762
878
8,265
5.257403
0.161731
0.025347
0.02578
0.025997
0.582322
0.534445
0.525347
0.50325
0.485485
0.474653
0
0.007043
0.295705
8,265
226
195
36.570796
0.785947
0
0
0.529412
0
0
0.072595
0
0
0
0
0
0
1
0.026738
false
0
0.069519
0
0.122995
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
4629ec7d3ad2828b6cef4cc59b99d7273c5fdb56
1,416
py
Python
PyPoll/Homework/main.py
VioletData/python-challenge
5a59aca85426387db21b0138dfe41aca19aac40d
[ "ADSL" ]
null
null
null
PyPoll/Homework/main.py
VioletData/python-challenge
5a59aca85426387db21b0138dfe41aca19aac40d
[ "ADSL" ]
null
null
null
PyPoll/Homework/main.py
VioletData/python-challenge
5a59aca85426387db21b0138dfe41aca19aac40d
[ "ADSL" ]
null
null
null
# Modules import os import csv #Set up path for file csvpath=os.path.join("..", "Resources", "election_data.csv" ) #print(csvpath) total_votes=0 #total_profit=0 #previous_value=0 #current_value=0 #list_changes=[] print("Election Results") print("---------------------") #Open the csv file with open(csvpath, newline=...
23.6
86
0.66596
187
1,416
4.893048
0.385027
0.054645
0.04918
0.034973
0.161749
0.06776
0
0
0
0
0
0.011794
0.161723
1,416
59
87
24
0.759056
0.550141
0
0.25
0
0
0.233169
0.137931
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.375
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
462b42e0c4130840f3bc0cd918b3623bf21c3cd2
2,645
py
Python
cohesity_management_sdk/models/azure_cloud_credentials.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/azure_cloud_credentials.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/azure_cloud_credentials.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class AzureCloudCredentials(object): """Implementation of the 'AzureCloudCredentials' model. Specifies the cloud credentials to connect to a Microsoft Azure service account. Attributes: storage_access_key (string): Specifies the access ...
35.266667
81
0.654064
297
2,645
5.686869
0.333333
0.047365
0.066311
0.031972
0.168739
0.14624
0.14624
0.14624
0.14624
0.14624
0
0.005356
0.29414
2,645
74
82
35.743243
0.899304
0.57656
0
0
0
0
0.134635
0
0
0
0
0
0
1
0.083333
false
0
0
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
462c32bbc3b282511e2c46116729931f71fbbf10
1,170
py
Python
scripts/sqlite_firestore_migration.py
namuan/news-rider
2f8f5204eda717e39ab7d4c048692d5ec2eb5449
[ "MIT" ]
5
2021-04-26T20:46:30.000Z
2021-05-03T07:29:31.000Z
scripts/sqlite_firestore_migration.py
namuan/news-rider
2f8f5204eda717e39ab7d4c048692d5ec2eb5449
[ "MIT" ]
null
null
null
scripts/sqlite_firestore_migration.py
namuan/news-rider
2f8f5204eda717e39ab7d4c048692d5ec2eb5449
[ "MIT" ]
null
null
null
import datetime import os import sys from google.cloud import firestore from peewee import * sys.path.append(os.getcwd()) home_dir = os.getenv('HOME') db_file_path = os.getcwd() + '/../../data/news_rider.db' print("Reading database from {}".format(db_file_path)) old_db = SqliteDatabase(db_file_path) class NewsIte...
23.877551
82
0.692308
161
1,170
4.782609
0.434783
0.051948
0.038961
0.051948
0
0
0
0
0
0
0
0.001044
0.181197
1,170
48
83
24.375
0.802714
0
0
0
0
0
0.140171
0.021368
0
0
0
0
0
1
0.060606
false
0
0.151515
0
0.393939
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
462cfd1b7c44355d2edae99099ee57b431d8d9a4
769
py
Python
km3pipe/utils/rtree.py
kabartay/km3pipe
491c425486553e8986682d2b0614918dd23cc964
[ "MIT" ]
2
2017-01-19T17:22:49.000Z
2020-04-18T14:00:38.000Z
km3pipe/utils/rtree.py
kabartay/km3pipe
491c425486553e8986682d2b0614918dd23cc964
[ "MIT" ]
null
null
null
km3pipe/utils/rtree.py
kabartay/km3pipe
491c425486553e8986682d2b0614918dd23cc964
[ "MIT" ]
null
null
null
# coding=utf-8 # Filename: h5tree.py """ Print the ROOT file structure. Usage: rtree FILE rtree (-h | --help) rtree --version Options: FILE Input file. -h --help Show this screen. """ from __future__ import division, absolute_import, print_function from km3pipe.io.root import open_rfile _...
19.225
76
0.684005
95
769
5.115789
0.610526
0.067901
0
0
0
0
0
0
0
0
0
0.014754
0.206762
769
39
77
19.717949
0.781967
0.261378
0
0
0
0
0.207885
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
0.111111
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
462e9733585d0e06c8930267d52894b75b0d0b14
15,952
py
Python
task_part1_learning.py
till-lu/cit_lcp_2020
b547185f8be74f57773c3d21ce5e4327b363a2f1
[ "MIT" ]
null
null
null
task_part1_learning.py
till-lu/cit_lcp_2020
b547185f8be74f57773c3d21ce5e4327b363a2f1
[ "MIT" ]
null
null
null
task_part1_learning.py
till-lu/cit_lcp_2020
b547185f8be74f57773c3d21ce5e4327b363a2f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from psychopy.visual import Window, TextStim from psychopy.core import wait, Clock, quit from psychopy.event import clearEvents, waitKeys, Mouse from psychopy.gui import Dlg from time import...
44.558659
716
0.656281
2,148
15,952
4.771881
0.273277
0.014829
0.01639
0.007415
0.258146
0.214829
0.199512
0.15639
0.137171
0.100878
0
0.023463
0.241224
15,952
357
717
44.683473
0.823364
0.08256
0
0.244275
0
0.049618
0.363999
0.003165
0
0
0
0
0
1
0.068702
false
0
0.053435
0.003817
0.141221
0.057252
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
46305fd7b6fccf0915c23423983bb7ae102bfc08
14,209
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_asm_policy_import.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/network/f5/bigip_asm_policy_import.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/network/f5/bigip_asm_policy_import.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
29.85084
114
0.606235
1,622
14,209
5.191122
0.192972
0.028504
0.034204
0.038005
0.441211
0.401544
0.380285
0.380285
0.306176
0.269834
0
0.011901
0.290379
14,209
475
115
29.913684
0.823168
0.011683
0
0.39196
0
0.007538
0.265636
0.028565
0
0
0
0
0
1
0.045226
false
0.020101
0.10804
0
0.226131
0.002513
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
4630b18f7ea854ba3d4c006459393021a0b26e65
322
py
Python
Firewall/Model/Host.py
frieagle94/firewall
9dc0357f78f128c0275baabebfef6fdf8ff35a47
[ "Apache-2.0" ]
null
null
null
Firewall/Model/Host.py
frieagle94/firewall
9dc0357f78f128c0275baabebfef6fdf8ff35a47
[ "Apache-2.0" ]
null
null
null
Firewall/Model/Host.py
frieagle94/firewall
9dc0357f78f128c0275baabebfef6fdf8ff35a47
[ "Apache-2.0" ]
null
null
null
__author__ = 'Riccardo Frigerio' ''' Oggetto HOST Attributi: - mac_address: indirizzo MAC - port: porta a cui e' collegato - dpid: switch a cui e' collegato ''' class Host(object): def __init__(self, mac_address, port, dpid): self.mac_address = mac_address self.port = port self.dpid = dpi...
18.941176
48
0.667702
43
322
4.72093
0.511628
0.197044
0.049261
0.137931
0
0
0
0
0
0
0
0
0.229814
322
16
49
20.125
0.818548
0
0
0
0
0
0.087179
0
0
0
0
0
0
1
0.166667
false
0
0
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
0
0
0
0
0
0
0
1
0
4632248180ce8a33d74a9026c30eef96e40a8172
2,466
py
Python
docker-compose/tweet_collector/tweet_streamer.py
lorenanda/tweets
926b7a1b33057e57a59dce2d4fc89e7af18962e6
[ "MIT" ]
2
2021-05-14T19:11:28.000Z
2021-06-13T23:17:32.000Z
docker-compose/tweet_collector/tweet_streamer.py
lorenanda/tweets
926b7a1b33057e57a59dce2d4fc89e7af18962e6
[ "MIT" ]
null
null
null
docker-compose/tweet_collector/tweet_streamer.py
lorenanda/tweets
926b7a1b33057e57a59dce2d4fc89e7af18962e6
[ "MIT" ]
1
2022-02-13T10:47:17.000Z
2022-02-13T10:47:17.000Z
from tweepy import OAuthHandler, Stream, API from tweepy.streaming import StreamListener import json import logging import pymongo import config client = pymongo.MongoClient(host='mongo_container', port=27018) db = client.tweets_db auth = OAuthHandler(config.CONSUMER_API_KEY, config.CONSUMER_API_SECRET) auth.set_acc...
30.825
94
0.664234
305
2,466
5.180328
0.380328
0.041772
0.043038
0.058228
0.198734
0.198734
0.198734
0.198734
0.148101
0.148101
0
0.011837
0.212084
2,466
80
95
30.825
0.801338
0.201135
0
0.037736
0
0
0.136433
0
0
0
0
0
0
1
0.113208
false
0
0.113208
0
0.301887
0.018868
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
46325f61280dc8596ca2d94d27452fa3b0d497c6
2,028
py
Python
manage_it/network/models.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
1
2015-01-20T14:34:32.000Z
2015-01-20T14:34:32.000Z
manage_it/network/models.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
null
null
null
manage_it/network/models.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from assets.models import Item from catalog.models import Inventory CONNECTION_TYPES = ( (1, "Ethernet 1Gb"), (2, "Ethernet 100Mb"), (3, "WIFI"), (4, "Optic Fiber"), (5, "USB"), (6, "HDMI"), (7, "Telephone...
28.971429
76
0.65927
247
2,028
5.202429
0.303644
0.063035
0.091051
0.119066
0.456031
0.418677
0.306615
0.183658
0.071595
0.071595
0
0.021875
0.211045
2,028
69
77
29.391304
0.78125
0.03501
0
0.156863
0
0
0.077362
0
0
0
0
0
0
1
0.058824
false
0
0.078431
0.058824
0.588235
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
46346da00abc925aef8a81ab9a6362af4ad40b6c
3,940
py
Python
software/L1_mpu.py
roy-kruemcke/SCUTTLE-SLMP
c181ba451e5fecdbbfb8ac7c4c2d743526112b11
[ "MIT" ]
null
null
null
software/L1_mpu.py
roy-kruemcke/SCUTTLE-SLMP
c181ba451e5fecdbbfb8ac7c4c2d743526112b11
[ "MIT" ]
null
null
null
software/L1_mpu.py
roy-kruemcke/SCUTTLE-SLMP
c181ba451e5fecdbbfb8ac7c4c2d743526112b11
[ "MIT" ]
null
null
null
# L1_mpu.py # Author: Roy Kruemcke (roanoake) # 30 NOV 2021 # Allows for the interfacing to the MPU9250 using the smbus2 i2c module # Written for use with Raspberry Pi 4 Model B import smbus2 import numpy as np import data import time # Initialize Register Data CONFIG = 0x1A USER_CTRL = 0x6A PWR_MGMT_1, PWR_MGMT_2 = 0...
30.542636
95
0.639848
562
3,940
4.33452
0.350534
0.022167
0.022578
0.024631
0.152299
0.135878
0.135878
0.135878
0.119869
0.119869
0
0.069169
0.269797
3,940
128
96
30.78125
0.777546
0.286294
0
0.078947
0
0
0.070855
0
0
0
0.024836
0
0
1
0.078947
false
0
0.052632
0
0.210526
0.092105
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
4636fb0bc8542fff3140160b2826c73df03573c5
827
py
Python
op_trans/asgi.py
jezzlucena/django-opp-trans
05e8b2b91a6c46cd800837ae2b683ec043243742
[ "MIT" ]
1
2021-03-03T02:22:11.000Z
2021-03-03T02:22:11.000Z
op_trans/asgi.py
jezzlucena/django-opp-trans
05e8b2b91a6c46cd800837ae2b683ec043243742
[ "MIT" ]
null
null
null
op_trans/asgi.py
jezzlucena/django-opp-trans
05e8b2b91a6c46cd800837ae2b683ec043243742
[ "MIT" ]
null
null
null
""" ASGI config for op_trans project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application from op_trans.websocket import webs...
28.517241
78
0.74607
110
827
5.472727
0.545455
0.046512
0.114618
0.134552
0
0
0
0
0
0
0
0.002837
0.147521
827
28
79
29.535714
0.851064
0.258767
0
0
0
0
0.155372
0.036364
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
46385759fc36e37af911b95c5e283c3da2fdcd54
3,786
py
Python
zipline/data/bundles/equities_bundle.py
walterkissling/zipline
784580ef2271aeaa52d8e526f15c88fbb55b7547
[ "Apache-2.0" ]
null
null
null
zipline/data/bundles/equities_bundle.py
walterkissling/zipline
784580ef2271aeaa52d8e526f15c88fbb55b7547
[ "Apache-2.0" ]
null
null
null
zipline/data/bundles/equities_bundle.py
walterkissling/zipline
784580ef2271aeaa52d8e526f15c88fbb55b7547
[ "Apache-2.0" ]
null
null
null
# File to ingest an equities bundle for zipline # Import libraries import pandas as pd import numpy as np def equities_bundle(path_to_file): # Define custom ingest function def ingest(environ, asset_db_writer, minute_bar_writer, daily_bar_writer, ad...
38.242424
109
0.530639
414
3,786
4.676329
0.292271
0.018595
0.022727
0.023244
0.097624
0.067149
0.03719
0
0
0
0
0.013115
0.35552
3,786
99
110
38.242424
0.780328
0.143423
0
0
0
0
0.089612
0
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.080645
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
46387a117da7cc25b8fd8335919094946b06904f
343
py
Python
model/torch_model.py
FernandoLpz/ONNX-PyTorch-TF-Caffe2
05aa07b982bd12d2c0d7ce05a94a726b7faaed91
[ "MIT" ]
3
2020-10-28T03:46:48.000Z
2021-07-22T06:45:33.000Z
model/torch_model.py
FernandoLpz/ONNX-PyTorch-TF-Caffe2
05aa07b982bd12d2c0d7ce05a94a726b7faaed91
[ "MIT" ]
null
null
null
model/torch_model.py
FernandoLpz/ONNX-PyTorch-TF-Caffe2
05aa07b982bd12d2c0d7ce05a94a726b7faaed91
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class TorchModel(nn.ModuleList): def __init__(self): super(TorchModel, self).__init__() self.linear_1 = nn.Linear(2, 12) self.linear_2 = nn.Linear(12, 1) def forward(self, x): out = self.linear_1(x) out = torch.tanh(out) out = self.linear_2(out) out = torch.sigmo...
21.4375
36
0.682216
56
343
3.964286
0.375
0.18018
0.099099
0
0
0
0
0
0
0
0
0.035714
0.183673
343
16
37
21.4375
0.757143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
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
46389fb316c01f816e67750260b3ef8381f89fb1
11,529
py
Python
nereid/contrib/pagination.py
advocatetax/nereid-1
ee7ae345e3e7e46b3e13cd6e3b94c388d38a0efa
[ "BSD-3-Clause" ]
null
null
null
nereid/contrib/pagination.py
advocatetax/nereid-1
ee7ae345e3e7e46b3e13cd6e3b94c388d38a0efa
[ "BSD-3-Clause" ]
null
null
null
nereid/contrib/pagination.py
advocatetax/nereid-1
ee7ae345e3e7e46b3e13cd6e3b94c388d38a0efa
[ "BSD-3-Clause" ]
1
2021-06-04T13:02:29.000Z
2021-06-04T13:02:29.000Z
# -*- coding: utf-8 -*- # This file is part of Tryton & Nereid. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from math import ceil from sql import Select, Column from sql.functions import Function from sql.aggregate import Count from werkzeug.utils impo...
32.94
82
0.571515
1,465
11,529
4.412287
0.204778
0.029239
0.023824
0.012067
0.385984
0.366646
0.301826
0.287902
0.262067
0.244276
0
0.009455
0.330298
11,529
349
83
33.034384
0.827354
0.372799
0
0.271084
0
0
0.023604
0
0
0
0
0
0.006024
1
0.13253
false
0
0.048193
0.012048
0.403614
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
463af3b646e86f201f2bd7fe58504504be2cb376
4,203
py
Python
modules/DEFA/MS_Office/compoundfiles/const.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
56
2019-02-07T06:21:45.000Z
2022-03-21T08:19:24.000Z
DEFA/MS_Office/compoundfiles/const.py
sk-yaho/carpe
077ef7ba1582b3de9f5c08d63431e744b77a9e09
[ "Apache-2.0" ]
5
2020-05-25T17:29:00.000Z
2021-12-13T20:49:08.000Z
DEFA/MS_Office/compoundfiles/const.py
sk-yaho/carpe
077ef7ba1582b3de9f5c08d63431e744b77a9e09
[ "Apache-2.0" ]
31
2019-03-13T10:23:49.000Z
2021-11-04T12:14:58.000Z
#!/usr/bin/env python # vim: set et sw=4 sts=4 fileencoding=utf-8: # # A library for reading Microsoft's OLE Compound Document format # Copyright (c) 2014 Dave Hughes <dave@waveform.org.uk> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation f...
42.454545
83
0.695218
623
4,203
4.581059
0.385233
0.113525
0.056062
0.025228
0.174842
0.13595
0.103013
0.085494
0.085494
0.074982
0
0.014123
0.208185
4,203
98
84
42.887755
0.84345
0.613609
0
0.52459
0
0
0.051513
0.020605
0
0
0.045074
0
0
1
0
false
0
0.04918
0
0.04918
0.016393
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
4642f66823f504498e1fb09dc0db99ad096fbcd2
7,257
py
Python
mkt/purchase/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.conf import settings from django.db import models from django.utils import translation import tower from babel import Locale, numbers from jingo import env from jinja2.filters import do_dictsort from tower import ugettext as _ import amo from amo.fields import DecimalCharField from amo.he...
40.316667
79
0.606587
825
7,257
5.175758
0.288485
0.020609
0.029508
0.039344
0.169321
0.142857
0.142857
0.074941
0.044028
0.021546
0
0.005534
0.302742
7,257
179
80
40.541899
0.83834
0.11575
0
0.061069
0
0
0.064659
0.023656
0
0
0
0.005587
0
1
0.114504
false
0
0.10687
0.030534
0.435115
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
4643e75f0f9e71df8892955ee0441be6f4a0dd8e
396
py
Python
BroCode/lessons/13-nested_loops.py
sofiaEkn/Python_Exercises
2ffbec63552a29c72de50ef5e5a3307195e1b546
[ "MIT" ]
null
null
null
BroCode/lessons/13-nested_loops.py
sofiaEkn/Python_Exercises
2ffbec63552a29c72de50ef5e5a3307195e1b546
[ "MIT" ]
null
null
null
BroCode/lessons/13-nested_loops.py
sofiaEkn/Python_Exercises
2ffbec63552a29c72de50ef5e5a3307195e1b546
[ "MIT" ]
null
null
null
# nested loops = The "inner loop" will finish all of it's iterations before # finishing one iteration of the "outer loop" rows = int(input("How many rows?: ")) columns = int(input("How many columns?: ")) symbol = input("Enter a symbol to use: ") #symbol = int(input("Enter a symbol to use: ")) for i in...
33
75
0.643939
61
396
4.180328
0.57377
0.094118
0.086275
0.117647
0.172549
0.172549
0
0
0
0
0
0
0.217172
396
12
76
33
0.822581
0.449495
0
0
0
0
0.271028
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
46441ef13bcf6070728bb55ba5a6a680d4610fc1
2,516
py
Python
duct/sources/python/uwsgi.py
geostarling/duct
a862fc1948ed1ecce1e866cbffc7fcedcea81f55
[ "MIT" ]
12
2017-01-06T11:59:59.000Z
2021-03-16T17:57:46.000Z
duct/sources/python/uwsgi.py
geostarling/duct
a862fc1948ed1ecce1e866cbffc7fcedcea81f55
[ "MIT" ]
20
2017-01-06T12:56:39.000Z
2017-02-06T13:45:28.000Z
duct/sources/python/uwsgi.py
geostarling/duct
a862fc1948ed1ecce1e866cbffc7fcedcea81f55
[ "MIT" ]
2
2017-02-09T14:02:13.000Z
2018-10-16T13:18:17.000Z
""" .. module:: uwsgi :platform: Any :synopsis: Reads UWSGI stats .. moduleauthor:: Colin Alston <colin@imcol.in> """ import json try: from StringIO import StringIO except ImportError: from io import StringIO from zope.interface import implementer from twisted.internet import defer, reactor from twis...
24.666667
76
0.565183
249
2,516
5.690763
0.409639
0.052929
0.059986
0.038109
0.08892
0
0
0
0
0
0
0.006948
0.313593
2,516
101
77
24.910891
0.81355
0.138712
0
0.070175
0
0
0.086812
0
0
0
0
0
0
1
0.087719
false
0
0.157895
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
0
0
0
0
1
0
46454325357264b47dbceec722a3e08a4d41a6be
22,167
py
Python
xform/utils.py
alisonamerico/Django-XForm
ad2e96455307b57ef3c485a006db478fe4352a36
[ "MIT" ]
3
2019-07-25T14:46:14.000Z
2020-12-14T22:43:46.000Z
xform/utils.py
alisonamerico/Django-XForm
ad2e96455307b57ef3c485a006db478fe4352a36
[ "MIT" ]
4
2019-09-04T17:39:04.000Z
2021-11-05T23:14:58.000Z
xform/utils.py
alisonamerico/Django-XForm
ad2e96455307b57ef3c485a006db478fe4352a36
[ "MIT" ]
1
2021-11-05T23:05:48.000Z
2021-11-05T23:05:48.000Z
import datetime import importlib import json import logging import math import mimetypes import os import re import sys import uuid import requests from urllib.parse import urljoin from wsgiref.util import FileWrapper from xml.dom import minidom, Node from django.conf import settings from django.core.files.storage ...
30.873259
96
0.606668
2,669
22,167
4.832147
0.173473
0.009304
0.005428
0.008684
0.21819
0.163759
0.126308
0.104365
0.090564
0.082655
0
0.00421
0.303559
22,167
717
97
30.916318
0.831196
0.116344
0
0.209163
0
0
0.071746
0.002996
0
0
0
0.001395
0.001992
1
0.099602
false
0.013944
0.049801
0.035857
0.292829
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
4645ac5dfc9f12700491f7aec71f5e520201b23f
9,050
py
Python
Phase5/testing_query.py
MrKLawrence/Course-Registration-Data-Analytics
b1a88ab9336a545965752d175d8c4796209e487c
[ "MIT" ]
null
null
null
Phase5/testing_query.py
MrKLawrence/Course-Registration-Data-Analytics
b1a88ab9336a545965752d175d8c4796209e487c
[ "MIT" ]
null
null
null
Phase5/testing_query.py
MrKLawrence/Course-Registration-Data-Analytics
b1a88ab9336a545965752d175d8c4796209e487c
[ "MIT" ]
null
null
null
import datetime from pymongo import MongoClient import pymongo import pprint try: db = MongoClient("mongodb://localhost:27017")["hkust"] f=0.05 try: print("Querying Documents...") listOfCourseWithWaitingListSize = db.course.aggregate([ { "$unwind": "$sections" }, # { "$project": { "newProduct": {"$multi...
35.629921
309
0.644309
1,100
9,050
5.262727
0.191818
0.038003
0.047158
0.045604
0.567628
0.537226
0.530662
0.530662
0.49024
0.470202
0
0.028489
0.154475
9,050
253
310
35.770751
0.728045
0.235028
0
0.477387
0
0
0.2187
0.011633
0
0
0
0
0
1
0.035176
false
0
0.050251
0
0.115578
0.090452
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
4648df628268429b96e7a5ae13c51c1984b5c218
2,549
py
Python
aws_iot/dashboard/migrations/0003_auto_20160427_1641.py
anduslim/aws_iot
39bddc1af05313f5005b5147b9d469ad337d6f28
[ "BSD-3-Clause" ]
null
null
null
aws_iot/dashboard/migrations/0003_auto_20160427_1641.py
anduslim/aws_iot
39bddc1af05313f5005b5147b9d469ad337d6f28
[ "BSD-3-Clause" ]
null
null
null
aws_iot/dashboard/migrations/0003_auto_20160427_1641.py
anduslim/aws_iot
39bddc1af05313f5005b5147b9d469ad337d6f28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('dashboard', '0002_gatewaynode_sensorstickerreading'), ] operations = [ migrations.CreateModel( name='DerivedInta...
32.679487
114
0.566497
202
2,549
6.955446
0.376238
0.064057
0.111032
0.128114
0.343772
0.318861
0.079715
0
0
0
0
0.004616
0.320126
2,549
77
115
33.103896
0.806117
0.008239
0
0.464789
0
0
0.218527
0.042359
0
0
0
0
0
1
0
false
0
0.028169
0
0.070423
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
464a989a9cb27c1d1baa77e94436a8092fe897da
2,633
py
Python
backend/db/patient.py
wooque/openpacs
4524bc7fade0934a70a53bb311f302828cc56905
[ "MIT" ]
1
2021-01-04T23:58:54.000Z
2021-01-04T23:58:54.000Z
backend/db/patient.py
wooque/openpacs
4524bc7fade0934a70a53bb311f302828cc56905
[ "MIT" ]
null
null
null
backend/db/patient.py
wooque/openpacs
4524bc7fade0934a70a53bb311f302828cc56905
[ "MIT" ]
1
2022-03-05T12:58:09.000Z
2022-03-05T12:58:09.000Z
from db.table import Table from db.study import Study from db.series import Series from pypika.pseudocolumns import PseudoColumn class Patient(Table): name = 'patients' async def sync_db(self): await self.exec(""" CREATE TABLE IF NOT EXISTS patients ( id SERIAL PRIMARY KEY, ...
31.722892
86
0.557159
327
2,633
4.363914
0.220183
0.088297
0.021023
0.031535
0.16398
0.099509
0.043448
0
0
0
0
0
0.306494
2,633
82
87
32.109756
0.78149
0
0
0.057971
0
0
0.206988
0.007976
0
0
0
0
0
1
0
false
0
0.072464
0
0.144928
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
464ce40b514f813772eac4adaecb88e87e70d261
1,415
py
Python
sudoku/recursive_solver.py
mkomaiha/NERS570-Sudoku
2448de19dd8ae97292b74937d397846d10176a8b
[ "MIT" ]
null
null
null
sudoku/recursive_solver.py
mkomaiha/NERS570-Sudoku
2448de19dd8ae97292b74937d397846d10176a8b
[ "MIT" ]
null
null
null
sudoku/recursive_solver.py
mkomaiha/NERS570-Sudoku
2448de19dd8ae97292b74937d397846d10176a8b
[ "MIT" ]
null
null
null
from sudoku.constants import SIZE, BOX_SIZE from sudoku import Sudoku class RS(Sudoku): def __init__(self, grade=0, id=None): super().__init__(grade, id) def possible(self, r, c, n): for i in range(0, SIZE): if self.solved[r, i] == n: return False for i in ...
31.444444
61
0.467845
178
1,415
3.617978
0.241573
0.124224
0.049689
0.099379
0.268634
0.086957
0.086957
0.086957
0.086957
0
0
0.017456
0.433216
1,415
44
62
32.159091
0.785536
0.021908
0
0.243243
0
0
0.013025
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0
0.405405
0.189189
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
464f62901d50ef275959e48f29f0c159e6183c2e
571
py
Python
src/algoritmia/problems/binpacking/firstfitbinpacker.py
DavidLlorens/algoritmia
40ca0a89ea6de9b633fa5f697f0a28cae70816a2
[ "MIT" ]
6
2018-09-15T15:09:10.000Z
2022-02-27T01:23:11.000Z
src/algoritmia/problems/binpacking/firstfitbinpacker.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
null
null
null
src/algoritmia/problems/binpacking/firstfitbinpacker.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
5
2018-07-10T20:19:55.000Z
2021-03-31T03:32:22.000Z
from algoritmia.problems.binpacking.nextfitbinpacker import NextFitBinPacker class FirstFitBinPacker(NextFitBinPacker):#[full def pack(self, w: "IList<Real>", C: "Real") -> "IList<int>": x = [None] * len(w) free = [] for i in range(len(w)): for j in range(len(free)): ...
35.6875
77
0.450088
67
571
3.835821
0.447761
0.023346
0.077821
0.054475
0
0
0
0
0
0
0
0
0.409807
571
16
78
35.6875
0.762611
0.017513
0
0
0
0
0.045872
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
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
465353204681d4b1df6397f2e8098a707504bf13
4,125
py
Python
task3/code/video_process.py
haohaoqian/STD
38eeb39474a46e8e66bdf4da6a0e28167e2174a2
[ "MIT" ]
1
2021-11-30T13:07:41.000Z
2021-11-30T13:07:41.000Z
task3/code/video_process.py
haohaoqian/STD
38eeb39474a46e8e66bdf4da6a0e28167e2174a2
[ "MIT" ]
null
null
null
task3/code/video_process.py
haohaoqian/STD
38eeb39474a46e8e66bdf4da6a0e28167e2174a2
[ "MIT" ]
null
null
null
import json from tqdm import tqdm from utils import * from alexnet import AlexNet def classify(net, folder_name, resize=(224, 224)): transform = [] if resize: transform.append(torchvision.transforms.Resize(resize)) transform.append(torchvision.transforms.ToTensor()) transform.append...
39.663462
117
0.634909
533
4,125
4.679174
0.26454
0.025261
0.046913
0.006415
0.489976
0.408581
0.338412
0.31676
0.279872
0.279872
0
0.02133
0.227152
4,125
104
118
39.663462
0.760979
0.300121
0
0.280702
0
0
0.068966
0.049523
0
0
0
0
0
1
0.087719
false
0
0.070175
0
0.192982
0.017544
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
4654a308feea7ad07bf6af611b62104666bd4e8d
5,087
py
Python
shfl/data_distribution/data_distribution_non_iid.py
SSSuperTIan/Sherpa.ai-Federated-Learning-Framework
a30d73a018526f1033ee0ec57489c4c6e2f15b0a
[ "Apache-2.0" ]
1
2021-03-18T07:31:36.000Z
2021-03-18T07:31:36.000Z
shfl/data_distribution/data_distribution_non_iid.py
SSSuperTIan/Sherpa.ai-Federated-Learning-Framework
a30d73a018526f1033ee0ec57489c4c6e2f15b0a
[ "Apache-2.0" ]
null
null
null
shfl/data_distribution/data_distribution_non_iid.py
SSSuperTIan/Sherpa.ai-Federated-Learning-Framework
a30d73a018526f1033ee0ec57489c4c6e2f15b0a
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import tensorflow as tf from shfl.data_base.data_base import shuffle_rows from shfl.data_distribution.data_distribution_sampling import SamplingDataDistribution class NonIidDataDistribution(SamplingDataDistribution): """ Implementation of a non-independent and identically dis...
36.597122
113
0.612149
634
5,087
4.711356
0.209779
0.032139
0.040509
0.017409
0.30164
0.27084
0.237697
0.210244
0.210244
0.210244
0
0.010547
0.310399
5,087
138
114
36.862319
0.840935
0.246707
0
0.376812
0
0
0.008811
0
0
0
0
0
0
1
0.028986
false
0
0.072464
0
0.144928
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
4656ff804d82461f52d5fb2b608b15a88f9feeb7
1,298
py
Python
example/0_Basic_usage_of_the_library/python_pymongo/2_select.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
2
2021-09-07T13:28:34.000Z
2021-12-13T06:17:10.000Z
example/0_Basic_usage_of_the_library/python_pymongo/2_select.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
null
null
null
example/0_Basic_usage_of_the_library/python_pymongo/2_select.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @Time : 2021-06-08 @Author : EvilRecluse @Contact : https://github.com/RecluseXU @Desc : 增 ''' # here put the import lib from pymongo import MongoClient from bson import ObjectId connection: MongoClient = MongoClient('mongodb://localhost:27017') collection = connection['l...
22
80
0.743451
149
1,298
6.355705
0.583893
0.103485
0.105597
0.072862
0.137276
0
0
0
0
0
0
0.040889
0.133282
1,298
58
81
22.37931
0.800889
0.457627
0
0.294118
0
0
0.1263
0.069837
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.294118
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
4657a986bf5b4eb76c1f27d0639731c4204bb162
4,428
py
Python
install-b9s.py
ihaveamac/hardmod-b9s-installer
4b26cfff76bb00430aacbe80679623e3cc5bb46d
[ "MIT" ]
13
2017-05-20T03:54:55.000Z
2021-10-09T22:10:09.000Z
install-b9s.py
ihaveamac/hardmod-b9s-installer
4b26cfff76bb00430aacbe80679623e3cc5bb46d
[ "MIT" ]
2
2017-06-09T06:40:20.000Z
2017-09-17T14:29:28.000Z
install-b9s.py
ihaveamac/hardmod-b9s-installer
4b26cfff76bb00430aacbe80679623e3cc5bb46d
[ "MIT" ]
3
2017-12-24T19:10:09.000Z
2020-12-04T09:01:53.000Z
#!/usr/bin/env python3 import hashlib import os import shutil import subprocess import sys import time def doexit(msg, errcode=0): print(msg) input('Press Enter to continue...') sys.exit(errcode) if not os.path.isfile('NAND.bin'): doexit('NAND.bin not found.', errcode=1) if os.path.isfile('firm0fi...
35.709677
78
0.626016
595
4,428
4.621849
0.277311
0.052364
0.026182
0.041455
0.421455
0.393818
0.335273
0.245818
0.245818
0.245818
0
0.054999
0.211608
4,428
123
79
36
0.732741
0.019648
0
0.244898
0
0
0.349009
0.015445
0
0
0.025357
0
0
1
0.020408
false
0.010204
0.061224
0
0.081633
0.204082
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
46586eef963ebf4f9bbb1677b780f95787d3e23e
6,329
py
Python
pygazebo/connection.py
robobe/pygazebo
0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a
[ "Apache-2.0" ]
null
null
null
pygazebo/connection.py
robobe/pygazebo
0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a
[ "Apache-2.0" ]
null
null
null
pygazebo/connection.py
robobe/pygazebo
0ab53034c9cc5bf23bae46bf0e9c984349bdfa5a
[ "Apache-2.0" ]
1
2020-12-09T17:27:34.000Z
2020-12-09T17:27:34.000Z
import concurrent import time import math import sys import asyncio import logging from . import msg from .parse_error import ParseError from . import DEBUG_LEVEL logger = logging.getLogger(__name__) logger.setLevel(DEBUG_LEVEL) async def _wait_closed(stream): assert(sys.version_info.major >= 3) if sys.versi...
32.623711
137
0.613367
730
6,329
5.073973
0.217808
0.035097
0.022678
0.014579
0.150648
0.113931
0.064255
0.044276
0.024298
0.024298
0
0.005173
0.297519
6,329
193
138
32.792746
0.827935
0.056723
0
0.140845
0
0.007042
0.06133
0.027634
0
0
0
0
0.035211
1
0.056338
false
0.007042
0.06338
0.014085
0.204225
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
465a22b29f2bfae5b6e8e5e3348394868002ce0f
1,483
py
Python
app.py
Geo-Gabriel/REST-Api-Hotels
e065f4725507e11a11480118f326e79aded533d5
[ "MIT" ]
null
null
null
app.py
Geo-Gabriel/REST-Api-Hotels
e065f4725507e11a11480118f326e79aded533d5
[ "MIT" ]
null
null
null
app.py
Geo-Gabriel/REST-Api-Hotels
e065f4725507e11a11480118f326e79aded533d5
[ "MIT" ]
null
null
null
from blacklist import BLACKLIST from flask import Flask, jsonify from flask_restful import Api from resources.hotel import Hoteis, Hotel from resources.user import User, UserLogin, UserLogout, UserRegister, Users from resources.site import Site, Sites from flask_jwt_extended import JWTManager app = Flask(__name__) ap...
26.017544
80
0.766689
203
1,483
5.35468
0.374384
0.049678
0.115915
0.121435
0
0
0
0
0
0
0
0.006074
0.111935
1,483
56
81
26.482143
0.819286
0.074848
0
0
0
0
0.210411
0.138563
0
0
0
0
0
1
0.083333
false
0
0.222222
0.055556
0.361111
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
465a6321a407b2ead52a83060d6a413f0b6c0e5a
316
py
Python
scdlbot/__init__.py
samillinier/habesha-skin-pack
74d1c84b207c8d598f124a91dce11fb09109c772
[ "MIT" ]
null
null
null
scdlbot/__init__.py
samillinier/habesha-skin-pack
74d1c84b207c8d598f124a91dce11fb09109c772
[ "MIT" ]
null
null
null
scdlbot/__init__.py
samillinier/habesha-skin-pack
74d1c84b207c8d598f124a91dce11fb09109c772
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for Music Downloader Telegram Bot.""" # version as tuple for simple comparisons VERSION = (0, 9, 16) __author__ = """George Pchelkin""" __email__ = 'george@pchelk.in' # string created from tuple to avoid inconsistency __version__ = ".".join([str(x) for x in VERSION])
26.333333
58
0.696203
43
316
4.837209
0.790698
0
0
0
0
0
0
0
0
0
0
0.018727
0.155063
316
11
59
28.727273
0.7603
0.518987
0
0
0
0
0.222222
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
465afd4dc993d8e9672e85b05bdf2dd73ac767b6
4,355
py
Python
uPython/lopyhelper.py
somervda/ourLora
8ee21a3eefd13464ad5063174a7a7cab57229e0d
[ "MIT" ]
null
null
null
uPython/lopyhelper.py
somervda/ourLora
8ee21a3eefd13464ad5063174a7a7cab57229e0d
[ "MIT" ]
3
2022-02-14T19:32:32.000Z
2022-02-24T18:22:28.000Z
uPython/lopyhelper.py
somervda/ourLora
8ee21a3eefd13464ad5063174a7a7cab57229e0d
[ "MIT" ]
null
null
null
import struct import pycom import time from network import LoRa def blink(seconds, rgb): pycom.rgbled(rgb) time.sleep(seconds) pycom.rgbled(0x000000) # off def setUSFrequencyPlan(lora): """ Sets the frequency plan that matches the TTN gateway in the USA """ # remove all US915 channels for c...
35.406504
105
0.665901
586
4,355
4.848123
0.368601
0.025343
0.016895
0.01408
0.233017
0.214713
0.19641
0.19641
0.19641
0.161915
0
0.032977
0.247991
4,355
122
106
35.696721
0.834504
0.355454
0
0.077922
0
0
0.018978
0
0
0
0.011679
0
0
1
0.12987
false
0
0.051948
0.051948
0.376623
0.077922
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
465b3dc1f585b6b0356f07d08239e727188800e8
2,980
py
Python
configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py
chenxinfeng4/mmdetection
a99a1aaa5e4a7614f2f89f2350e1b917b2a8ca7e
[ "Apache-2.0" ]
6
2021-12-18T07:23:35.000Z
2022-02-26T04:38:26.000Z
configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py
wondervictor/mmdetection
c72bc707e661d61cf09aca0a53ad21812ef874d0
[ "Apache-2.0" ]
null
null
null
configs/efficientnet/retinanet_effb3_fpn_crop896_8x4_1x_coco.py
wondervictor/mmdetection
c72bc707e661d61cf09aca0a53ad21812ef874d0
[ "Apache-2.0" ]
1
2021-12-12T13:35:22.000Z
2021-12-12T13:35:22.000Z
_base_ = [ '../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py' ] cudnn_benchmark = True norm_cfg = dict(type='BN', requires_grad=True) checkpoint = 'https://download.openmmlab.com/mmclassification/v0/efficientnet/efficientnet-b3_3rdparty_8xb32-aa_in1k...
31.702128
147
0.645638
394
2,980
4.649746
0.479695
0.100437
0.030022
0.032751
0.164301
0.106987
0.062227
0.062227
0.062227
0.062227
0
0.050869
0.208389
2,980
93
148
32.043011
0.725731
0.071477
0
0.120482
0
0.012048
0.186435
0.036634
0
0
0
0
0
1
0
false
0.012048
0
0
0
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
465d72bc64541d0735329d0bb15e70e1a6c30e99
2,265
py
Python
tests/test_model.py
Sebastiencreoff/mongo_tool
048171ba2c172c0e8962a5408edbaec26cfdf4ca
[ "MIT" ]
null
null
null
tests/test_model.py
Sebastiencreoff/mongo_tool
048171ba2c172c0e8962a5408edbaec26cfdf4ca
[ "MIT" ]
null
null
null
tests/test_model.py
Sebastiencreoff/mongo_tool
048171ba2c172c0e8962a5408edbaec26cfdf4ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import mock import mom class ExampleClass(mom.Model): JSON_SCHEMA = { '$schema': 'http://json-schema.org/schema#', 'title': 'Test class for JSON', 'type': 'object', 'properties': { 'value_datetime': {'type': ['datetime', 'null']}...
25.449438
74
0.63532
289
2,265
4.785467
0.242215
0.092552
0.151844
0.121475
0.402748
0.318872
0.318872
0.295011
0.295011
0.258858
0
0.006322
0.231788
2,265
88
75
25.738636
0.788506
0.047682
0
0.275862
0
0
0.101301
0
0
0
0
0
0.206897
1
0.103448
false
0
0.051724
0
0.224138
0.017241
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
46627a350df5177a8548cf67ff0c02d30e501fb7
2,183
py
Python
src/stage_02_base_model_creation.py
TUCchkul/Dog-Cat-Classification-with-MLflow
543f55bd88c048da88f343ff4b1b15b3f84ec20f
[ "MIT" ]
null
null
null
src/stage_02_base_model_creation.py
TUCchkul/Dog-Cat-Classification-with-MLflow
543f55bd88c048da88f343ff4b1b15b3f84ec20f
[ "MIT" ]
null
null
null
src/stage_02_base_model_creation.py
TUCchkul/Dog-Cat-Classification-with-MLflow
543f55bd88c048da88f343ff4b1b15b3f84ec20f
[ "MIT" ]
null
null
null
import argparse import os import shutil from tqdm import tqdm import logging from src.utils.common import read_yaml, create_directories import random from src.utils.model import log_model_summary import tensorflow as tf STAGE= "Base Model Creation" logging.basicConfig( filename=os.path.join("logs",'running_logs....
33.584615
81
0.633532
278
2,183
4.805755
0.377698
0.052395
0.077844
0.047156
0.144461
0.091317
0.091317
0.091317
0.091317
0.091317
0
0.010321
0.201099
2,183
64
82
34.109375
0.755734
0
0
0.036364
0
0
0.194317
0.029331
0
0
0
0
0
1
0.018182
false
0
0.163636
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
466394d9212459110bd5519845967eacdfeb9888
758
py
Python
gifbox/core/serializers.py
timmygee/gifbox
ccdd88ad9424c8e2c519415cde619af3a61daf66
[ "MIT" ]
null
null
null
gifbox/core/serializers.py
timmygee/gifbox
ccdd88ad9424c8e2c519415cde619af3a61daf66
[ "MIT" ]
null
null
null
gifbox/core/serializers.py
timmygee/gifbox
ccdd88ad9424c8e2c519415cde619af3a61daf66
[ "MIT" ]
null
null
null
from rest_framework import serializers from versatileimagefield.serializers import VersatileImageFieldSerializer from .models import Image, AnimatedGif class ImageSerializer(serializers.ModelSerializer): class Meta: model = Image fields = ('image',) image = VersatileImageFieldSerializer( ...
23.6875
73
0.631926
58
758
8.103448
0.448276
0.076596
0.131915
0.148936
0.382979
0.212766
0
0
0
0
0
0.021505
0.263852
758
31
74
24.451613
0.820789
0
0
0.26087
0
0
0.146438
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.391304
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
46656e54aaab662adced0d0bfa04fce707df2e88
6,658
py
Python
train.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
train.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
train.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
1
2021-08-07T14:56:44.000Z
2021-08-07T14:56:44.000Z
# coding: utf-8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Un...
47.899281
169
0.615801
783
6,658
5.001277
0.284802
0.022472
0.022472
0.0143
0.511491
0.501788
0.459653
0.43667
0.43667
0.416241
0
0.008221
0.287474
6,658
139
170
47.899281
0.817243
0.121959
0
0.442308
0
0
0.065435
0.00774
0
0
0
0
0
1
0.019231
false
0
0.125
0
0.144231
0.038462
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
466669f55fd94ab7691c895cf787adfe7eec635c
1,204
py
Python
dataloader/EDSR/video.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
1
2020-03-11T12:19:13.000Z
2020-03-11T12:19:13.000Z
dataloader/EDSR/video.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
null
null
null
dataloader/EDSR/video.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
null
null
null
import os from . import common import cv2 import numpy as np import imageio import torch import torch.utils.data as data class Video(data.Dataset): def __init__(self, args, name='Video', train=False, benchmark=False): self.args = args self.name = name self.scale = args.scale self...
26.755556
77
0.623754
165
1,204
4.327273
0.4
0.044818
0.05042
0.071429
0
0
0
0
0
0
0
0.011403
0.271595
1,204
44
78
27.363636
0.802737
0
0
0
0
0
0.011638
0
0
0
0
0
0
1
0.117647
false
0
0.205882
0.029412
0.441176
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
4667ccf5ef5c78e64a0eadc56411d4151f24e864
6,395
py
Python
blink_handler.py
oyiptong/chromium-dashboard
c94632a779da0c8ab51c2e029fdcceffad6ab4c1
[ "Apache-2.0" ]
null
null
null
blink_handler.py
oyiptong/chromium-dashboard
c94632a779da0c8ab51c2e029fdcceffad6ab4c1
[ "Apache-2.0" ]
null
null
null
blink_handler.py
oyiptong/chromium-dashboard
c94632a779da0c8ab51c2e029fdcceffad6ab4c1
[ "Apache-2.0" ]
1
2020-09-29T19:23:59.000Z
2020-09-29T19:23:59.000Z
# -*- coding: utf-8 -*- # Copyright 2017 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 law or...
34.945355
124
0.70086
785
6,395
5.546497
0.298089
0.048232
0.018374
0.027561
0.248277
0.226918
0.19017
0.136426
0.136426
0.095544
0
0.003485
0.192338
6,395
182
125
35.137363
0.839497
0.226896
0
0.173913
0
0
0.109886
0.030842
0
0
0
0
0
1
0.06087
false
0
0.104348
0
0.252174
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
46687db58d5ce22cf64d16f65406c0bb8f14b56a
2,756
py
Python
OBlog/blueprint/pages/main.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
23
2018-02-23T12:56:43.000Z
2021-12-20T13:21:47.000Z
OBlog/blueprint/pages/main.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
17
2018-02-23T12:52:39.000Z
2018-12-04T05:50:58.000Z
OBlog/blueprint/pages/main.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
2
2018-06-16T20:52:23.000Z
2021-04-08T15:29:44.000Z
from OBlog import database as db from flask import g, current_app import re def getPages(): if not hasattr(g, "getPages"): res = db.query_db('select * from pages;') res.sort(key=lambda x: int(x["idx"])) g.getPages = res return g.getPages def getPagesDict(): if not has...
22.590164
96
0.576197
342
2,756
4.611111
0.254386
0.022194
0.025365
0.051363
0.357641
0.327838
0.220672
0.220672
0.220672
0.220672
0
0.009654
0.285922
2,756
121
97
22.77686
0.791667
0.00508
0
0.320513
0
0
0.077952
0.008024
0
0
0
0
0
1
0.153846
false
0
0.064103
0.038462
0.461538
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
466a6d9821a84e031f7dcd282011c9bf05adc133
13,877
py
Python
mogan/tests/unit/notifications/test_notification.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
mogan/tests/unit/notifications/test_notification.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
mogan/tests/unit/notifications/test_notification.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
41.423881
79
0.64906
1,394
13,877
6.229555
0.182927
0.025334
0.02211
0.028789
0.498042
0.452672
0.392906
0.349263
0.339705
0.324275
0
0.020819
0.255819
13,877
334
80
41.547904
0.820083
0.072782
0
0.43609
0
0
0.159424
0.059579
0
0
0
0
0.090226
1
0.052632
false
0
0.045113
0
0.139098
0.003759
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
466b2847bd0a3e11bd815c4ef8485277011347fd
1,208
py
Python
plash/macros/packagemanagers.py
0xflotus/plash
9dd66a06413d5c1f12fd9a7e7b56a05b797ad309
[ "MIT" ]
null
null
null
plash/macros/packagemanagers.py
0xflotus/plash
9dd66a06413d5c1f12fd9a7e7b56a05b797ad309
[ "MIT" ]
null
null
null
plash/macros/packagemanagers.py
0xflotus/plash
9dd66a06413d5c1f12fd9a7e7b56a05b797ad309
[ "MIT" ]
null
null
null
from plash.eval import eval, register_macro, shell_escape_args @register_macro() def defpm(name, *lines): 'define a new package manager' @register_macro(name, group='package managers') @shell_escape_args def package_manager(*packages): if not packages: return sh_packages =...
18.875
69
0.537252
131
1,208
4.824427
0.427481
0.037975
0.061709
0
0
0
0
0
0
0
0
0.002288
0.27649
1,208
63
70
19.174603
0.720824
0.023179
0
0.333333
0
0
0.341887
0.021523
0
0
0
0
0
1
0.035088
false
0
0.017544
0
0.087719
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
466d26384d26ffba4886645e21f0b784ab726d0b
470
py
Python
example.py
ErikPel/rankedchoicevoting
7ea9149d2d7f48d5b4c323537a701b7ccf8a8616
[ "MIT" ]
1
2021-11-25T07:50:10.000Z
2021-11-25T07:50:10.000Z
example.py
ErikPel/rankedchoicevoting
7ea9149d2d7f48d5b4c323537a701b7ccf8a8616
[ "MIT" ]
null
null
null
example.py
ErikPel/rankedchoicevoting
7ea9149d2d7f48d5b4c323537a701b7ccf8a8616
[ "MIT" ]
null
null
null
from rankedchoicevoting import Poll candidatesA = {"Bob": 0, "Sue": 0, "Bill": 0} #votes in array sorted by first choice to last choice votersA = { "a": ['Bob', 'Bill', 'Sue'], "b": ['Sue', 'Bob', 'Bill'], "c": ['Bill', 'Sue', 'Bob'], "d": ['Bob', 'Bill', 'Sue'], "f": ['Sue', 'Bob', 'Bill'] } el...
24.736842
53
0.576596
59
470
4.59322
0.542373
0.103321
0.073801
0
0
0
0
0
0
0
0
0.010256
0.170213
470
18
54
26.111111
0.684615
0.110638
0
0
0
0
0.199041
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
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
466dad9d3b71c7956f19885bfc3e8b7004d94303
1,923
py
Python
distributed/register/application.py
ADKosm/concurrency
e3bda762ec12d8988ffda060f8842ffda5526f2b
[ "MIT" ]
null
null
null
distributed/register/application.py
ADKosm/concurrency
e3bda762ec12d8988ffda060f8842ffda5526f2b
[ "MIT" ]
null
null
null
distributed/register/application.py
ADKosm/concurrency
e3bda762ec12d8988ffda060f8842ffda5526f2b
[ "MIT" ]
null
null
null
import asyncio import os import time from dataclasses import dataclass import requests_unixsocket from aiohttp import ClientSession, web @dataclass(frozen=True) class Replica: replica_id: str ip: str is_self: bool def replicas_discovery(): session = requests_unixsocket.Session() number_of_repli...
28.279412
115
0.651586
237
1,923
5.139241
0.392405
0.073892
0.039409
0.044335
0.106732
0.106732
0
0
0
0
0
0.012701
0.222049
1,923
67
116
28.701493
0.801471
0.021321
0
0.040816
0
0
0.114362
0.031915
0
0
0
0
0
1
0.020408
false
0
0.122449
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
466e8e7393dfb5f6f03f625478a37ff5c418e4db
28,135
py
Python
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
17
2019-11-11T02:49:29.000Z
2022-02-17T03:45:19.000Z
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
21
2019-07-10T21:45:11.000Z
2022-02-22T17:57:20.000Z
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
8
2019-11-11T02:49:36.000Z
2021-09-30T18:43:45.000Z
# -*- coding: utf-8 -*- import os from .control import ControlFile from .prms import PrmsModel from .utils import gsflow_io, GsConstant from .prms import Helper from .modflow import Modflow from .modsim import Modsim import flopy import subprocess as sp import platform import warnings warnings.simplefilter("always", P...
33.816106
95
0.530087
3,124
28,135
4.612356
0.116517
0.039697
0.014574
0.015823
0.414324
0.357485
0.296967
0.266084
0.246929
0.213269
0
0.00122
0.387951
28,135
831
96
33.856799
0.83554
0.221752
0
0.329167
0
0
0.072798
0.001076
0
0
0
0
0.004167
1
0.03125
false
0.004167
0.022917
0.002083
0.083333
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
466e94eb6dad2cfea42284bb23559a0aba280ee0
6,818
py
Python
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
1
2020-12-07T10:37:41.000Z
2020-12-07T10:37:41.000Z
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
null
null
null
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
null
null
null
import logging import pytest from moto import mock_ec2, mock_iam, mock_sts from cloudwanderer.cloud_wanderer_resource import CloudWandererResource from cloudwanderer.storage_connectors import MemoryStorageConnector from cloudwanderer.urn import URN from tests.pytest_helpers import create_ec2_instances logger = loggi...
34.434343
109
0.661044
779
6,818
5.428755
0.136072
0.085127
0.028376
0.063845
0.70655
0.654055
0.610546
0.546938
0.447624
0.404824
0
0.036219
0.24274
6,818
197
110
34.609137
0.782878
0.020387
0
0.49697
0
0
0.08437
0.003447
0
0
0
0
0.078788
1
0.054545
false
0
0.042424
0.024242
0.127273
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
466f1e4523ee66d1060bcbe9b327e33221329528
3,745
py
Python
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
9
2021-11-16T09:53:47.000Z
2022-03-02T13:28:53.000Z
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
340
2021-03-03T12:55:37.000Z
2022-03-31T13:53:44.000Z
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
5
2021-08-19T08:14:35.000Z
2022-03-17T21:12:46.000Z
import os import re import shutil import unittest from pathlib import Path from dianna.visualization.text import highlight_text class Example1: original_text = 'Doloremque aliquam totam ut. Aspernatur repellendus autem quia deleniti. Natus accusamus ' \ 'doloribus et in quam officiis veniam et...
42.556818
131
0.646996
450
3,745
5.177778
0.331111
0.066953
0.051502
0.061803
0.399142
0.373391
0.358798
0.358798
0.333906
0.305579
0
0.124913
0.234713
3,745
87
132
43.045977
0.688067
0.073965
0
0.206349
0
0.047619
0.157667
0.049668
0
0
0
0
0.095238
1
0.126984
false
0
0.095238
0
0.396825
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
466fca56f7b6e59caf823a738ec5c36d18b27c25
2,983
py
Python
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
import os import sys import builtins import versioneer if sys.version_info[:2] < (3, 7): raise RuntimeError("Python version >= 3.7 required.") builtins.__RBC_SETUP__ = True if os.path.exists('MANIFEST'): os.remove('MANIFEST') CONDA_BUILD = int(os.environ.get('CONDA_BUILD', '0')) CONDA_ENV = os.environ.get('...
32.78022
76
0.650352
358
2,983
5.26257
0.49162
0.031847
0.053079
0.055202
0.035032
0
0
0
0
0
0
0.008407
0.242373
2,983
90
77
33.144444
0.825221
0.087831
0
0
0
0
0.366986
0.024687
0
0
0
0
0
1
0.013889
false
0
0.069444
0
0.097222
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
4671cf40aee848a7cf0a11db6406cdad41f3981d
7,667
py
Python
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
132
2017-08-05T00:35:18.000Z
2022-03-22T08:14:18.000Z
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
1,273
2017-08-04T05:14:47.000Z
2022-03-28T13:00:27.000Z
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
68
2017-08-04T16:45:19.000Z
2022-03-22T08:14:15.000Z
from collections.abc import Iterable import warnings from hdmf.utils import docval, popargs, call_docval_func, get_docval from . import register_class, CORE_NAMESPACE from .core import NWBDataInterface, NWBData class RetinotopyImage(NWBData): """Gray-scale anatomical image of cortical surface. Array structure: ...
52.513699
119
0.626842
945
7,667
4.831746
0.226455
0.032852
0.033728
0.017083
0.464739
0.425099
0.380859
0.362681
0.303548
0.272449
0
0.006747
0.24612
7,667
145
120
52.875862
0.783218
0.142429
0
0.135922
0
0
0.380872
0
0
0
0
0
0
1
0.048544
false
0
0.048544
0
0.194175
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
4676a784f66c68a2faf6e33e2c3d3bf09c476661
1,652
py
Python
home/vscode/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
qwertzy-antonio-godinho/dots
65cd657f785e7da3a3ccb1a808c0fc1b8496e5b1
[ "Apache-2.0" ]
6
2021-12-26T13:34:32.000Z
2022-02-08T22:09:38.000Z
src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
ev3dev/ptvsd
cea22767dd78a812a14e2330a540a368f615224e
[ "MIT" ]
8
2020-07-19T23:39:31.000Z
2022-02-27T01:38:46.000Z
vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/old_ptvsd/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
Adespinoza/dotfiles
e2509402a7fd2623a3ea401b6f9fcbf6a372fc60
[ "CC0-1.0" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
import sys try: try: from _pydevd_bundle_ext import pydevd_cython as mod except ImportError: from _pydevd_bundle import pydevd_cython as mod except ImportError: import struct try: is_python_64bit = (struct.calcsize('P') == 8) except: # In Jython this ...
31.169811
107
0.725787
234
1,652
4.747863
0.452991
0.064806
0.068407
0.082808
0.254725
0.127813
0.127813
0.055806
0
0
0
0.018293
0.205811
1,652
52
108
31.769231
0.828506
0.27724
0
0.185185
0
0
0.071681
0.046018
0
0
0
0
0
1
0
false
0
0.296296
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
4677191c1771ec77d8d7c68a2a88766f05fcf790
2,843
py
Python
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
from tests.fixtures import api, PROJECT_NAME assert api THUMB_DATA1 = b"thisisaveryrandomthumbnailcontent" THUMB_DATA2 = b"thisihbhihjhuuyiooanothbnlcontent" def test_folder_thumbnail(api): response = api.post( f"projects/{PROJECT_NAME}/folders", name="testicek", folderType="Asset", ...
23.890756
86
0.65248
343
2,843
5.247813
0.215743
0.091667
0.124444
0.155556
0.657222
0.639444
0.603889
0.595556
0.506111
0.407222
0
0.006449
0.23637
2,843
118
87
24.09322
0.822662
0.136124
0
0.506849
0
0
0.327332
0.288462
0
0
0
0
0.178082
1
0.027397
false
0
0.013699
0
0.041096
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
467b69ecaf5ca591ddc3465f82457df4ea005caa
448
py
Python
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import math def f(x): return math.exp(x)/x**3 def int(a,b): h = (b-a)/104 x_par = a+h x_impar = a+2*h soma_par = 0 soma_impar = 0 for i in range(52): soma_par += f(x_par) x_par += 2*h for i in range(51): soma_impar...
18.666667
58
0.504464
88
448
2.431818
0.409091
0.028037
0.056075
0.102804
0
0
0
0
0
0
0
0.072131
0.319196
448
23
59
19.478261
0.629508
0.098214
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.058824
0.294118
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
467ea3052543109008b133a68620b40cb725a84a
2,055
py
Python
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
null
null
null
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
1
2019-08-21T23:02:49.000Z
2019-08-21T23:02:49.000Z
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
null
null
null
from almetro.instance import growing from almetro.metro import Metro import timeit class ExecutionSettings: def __init__(self, trials=1, runs=1): if not trials or trials < 1: raise TypeError('#trials must be provided') if not runs or runs < 1: raise TypeError('#runs must be...
34.830508
139
0.685158
222
2,055
6.117117
0.193694
0.11782
0.061856
0.035346
0.041973
0
0
0
0
0
0
0.003814
0.23455
2,055
58
140
35.431034
0.859504
0
0
0.088889
0
0
0.081265
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.088889
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
467fe487527b89370f3c2d1bfc1b416969557a05
31,434
py
Python
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
53
2017-04-12T19:53:18.000Z
2022-02-22T10:33:13.000Z
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
# coding: utf-8 from __future__ import unicode_literals import re import json from .common import InfoExtractor from .youtube import YoutubeIE, YoutubeBaseInfoExtractor from ..compat import ( compat_urllib_parse_unquote, compat_urllib_parse_unquote_plus, compat_HTTPError ) from ..utils import ( bug_rep...
46.776786
213
0.558822
3,303
31,434
5.140176
0.215864
0.027683
0.022971
0.021027
0.246672
0.198139
0.157734
0.117387
0.10331
0.080928
0
0.058459
0.292009
31,434
671
214
46.846498
0.704426
0.055481
0
0.168367
0
0.02381
0.372193
0.094321
0
0
0
0
0
1
0.015306
false
0
0.011905
0.001701
0.073129
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
4681cb44945ca44b04cb55846c39c0d1d3ca721a
5,589
py
Python
08/postgresql_demo.py
catcherwong-archive/2019
f9672920113b1ec0a5fcd6a6bde681f62d805763
[ "MIT" ]
27
2019-04-07T15:31:53.000Z
2021-08-28T16:18:34.000Z
08/postgresql_demo.py
hca1120/2019
09e5f49407b8239409e857f8117877eedb6b0134
[ "MIT" ]
5
2019-08-10T08:19:28.000Z
2022-02-11T02:38:41.000Z
08/postgresql_demo.py
hca1120/2019
09e5f49407b8239409e857f8117877eedb6b0134
[ "MIT" ]
31
2019-04-07T15:31:57.000Z
2022-02-02T20:36:58.000Z
# -*- coding: UTF-8 -*- import psycopg2 #postgresql import time import datetime class PgDemo: def __init__(self, host, port, db, user, pwd): self.host = host self.port = port self.db = db self.user = user self.pwd = pwd def getConnection(s...
35.598726
138
0.429236
560
5,589
4.217857
0.201786
0.007621
0.050381
0.059272
0.596952
0.553345
0.485182
0.419136
0.359865
0.248942
0
0.017919
0.430846
5,589
157
139
35.598726
0.724615
0.011451
0
0.430894
0
0
0.185123
0.060403
0
0
0
0
0
1
0.081301
false
0.00813
0.02439
0
0.146341
0.195122
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
46821c4a15686b2fb3b7ea49bee70f910667b4c7
36,931
py
Python
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 from __future__ import print_function import os import json from collections import OrderedDict import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.ticker import Formatter from jaqs.trade.analyze.report import Report from jaqs.data import ...
39.583065
139
0.584198
4,670
36,931
4.402141
0.110493
0.009339
0.008853
0.010507
0.399893
0.324497
0.285144
0.267682
0.239955
0.223806
0
0.015383
0.28185
36,931
932
140
39.625536
0.759747
0.078037
0
0.230503
0
0
0.116108
0.003151
0
0
0
0.003219
0.003466
1
0.071057
false
0.003466
0.02773
0
0.136915
0.02773
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
468313da2c3cc1e70694859bf5264667fcd82781
8,935
py
Python
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
1
2021-03-15T13:53:30.000Z
2021-03-15T13:53:30.000Z
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
32.140288
80
0.675993
1,191
8,935
4.922754
0.248531
0.024561
0.020297
0.013304
0.183012
0.13679
0.103019
0.060379
0.046393
0.036159
0
0.005301
0.197762
8,935
277
81
32.256318
0.81264
0.179407
0
0.145
0
0
0.300603
0.039989
0
0
0
0
0
1
0.04
false
0
0.035
0
0.11
0.09
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
4684141f6543556bf465b101be71f060f3b08131
27,570
py
Python
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
import numpy as np # import sys import math import os, sys, platform import astropy.units as u from sunpy import map as smap from astropy.coordinates import SkyCoord from suncasa.io import ndfits import lmfit from astropy.time import Time import matplotlib.pyplot as plt import matplotlib.colors as colors import matplot...
40.784024
145
0.551904
3,805
27,570
3.889093
0.171091
0.002568
0.008109
0.009934
0.353629
0.292607
0.272942
0.24652
0.236045
0.206717
0
0.037092
0.311571
27,570
675
146
40.844444
0.742571
0.149837
0
0.215385
0
0.001923
0.03375
0.002276
0
0
0
0
0
1
0.028846
false
0
0.044231
0.001923
0.096154
0.009615
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
4685248be49c1c014500014593ebd58e99994652
1,496
py
Python
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
10
2015-12-04T07:43:11.000Z
2021-01-23T00:44:56.000Z
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
200
2015-02-11T05:41:57.000Z
2015-11-13T03:47:25.000Z
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
6
2015-10-02T18:01:09.000Z
2021-01-23T00:44:58.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('dimensions', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ...
36.487805
114
0.556818
137
1,496
5.963504
0.430657
0.080783
0.107711
0.127295
0.4847
0.423501
0.423501
0.423501
0.423501
0.19339
0
0.016175
0.29746
1,496
40
115
37.4
0.76118
0.014037
0
0.411765
0
0
0.086219
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.147059
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
4685622823bb3cb792b6697fa854e6d940a37ece
7,412
py
Python
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
null
null
null
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
null
null
null
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
1
2021-05-18T02:32:54.000Z
2021-05-18T02:32:54.000Z
import io import sys import unittest import asyncio import random from contextlib import redirect_stdout from .utils import * from queuebot import QueueBot, QueueConfig, DiscordUser config = { "SECRET_TOKEN": "NOONEWILLEVERGUESSTHISSUPERSECRETSTRINGMWAHAHAHA", "TA_ROLES": ["UGTA"], "LISTEN_CHANNELS": ["jo...
34.314815
91
0.625472
974
7,412
4.51232
0.152977
0.043003
0.043686
0.036405
0.622981
0.600228
0.553129
0.516951
0.463026
0.463026
0
0.008242
0.263357
7,412
215
92
34.474419
0.79652
0.03953
0
0.412903
0
0
0.075408
0.009989
0
0
0
0.004651
0.122581
1
0.064516
false
0
0.051613
0
0.129032
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
46869ee7c4058bcc60c1e873b09ca6bac3bb10d7
2,556
py
Python
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.5
114
0.711659
375
2,556
4.666667
0.381333
0.051429
0.034286
0.034286
0.229714
0.215429
0.196571
0.154286
0.154286
0.057714
0
0.01305
0.190532
2,556
71
115
36
0.832769
0.225352
0
0.116279
0
0
0.076336
0.04631
0
0
0
0
0.046512
1
0.069767
false
0
0.139535
0.023256
0.27907
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
46873638ac399bb3c28bf800bc92bbfd39940934
15,189
py
Python
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
24
2015-01-26T03:14:19.000Z
2021-09-27T23:10:12.000Z
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
30
2015-04-17T18:14:27.000Z
2021-05-30T15:01:47.000Z
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
20
2015-02-11T08:20:19.000Z
2022-01-15T17:55:00.000Z
# # The tuner class to initiate the empirical performance tuning process # import re, sys, os from orio.main.util.globals import * import orio.main.dyn_loader, orio.main.tspec.tspec, orio.main.tuner.ptest_codegen, orio.main.tuner.ptest_driver #-------------------------------------------------- # the name of the mo...
43.397143
169
0.55448
1,621
15,189
4.977175
0.20913
0.021691
0.019336
0.015617
0.246777
0.174145
0.129028
0.129028
0.116262
0.104115
0
0.004251
0.334058
15,189
349
170
43.52149
0.793376
0.200342
0
0.162562
0
0.004926
0.103923
0.012688
0
0
0
0
0
1
0.029557
false
0
0.019704
0
0.083744
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
46882caba8a1bc1cb57f8753adac56b5f9b622b8
1,862
py
Python
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
from transformer import * from logger import logger def find_missing(): from db import paients_source, paients_info import re for pi in paients_info.find(): if paients_source.find({'_id': re.compile(pi['住院号'], re.IGNORECASE)}).count()>0: pass else: print(pi['住院号']) ...
29.09375
119
0.538131
236
1,862
4.072034
0.292373
0.033299
0.093652
0.033299
0.334027
0.209157
0.157128
0.05411
0.05411
0
0
0.007918
0.321697
1,862
64
120
29.09375
0.752969
0.059613
0
0.2
0
0
0.165011
0
0
0
0
0
0
1
0.08
false
0.02
0.12
0
0.2
0.1
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
46885ee1267724c58d93c90bd0626ea4f768c7c7
1,904
py
Python
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
15
2020-06-11T02:20:26.000Z
2022-03-09T07:18:23.000Z
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
4
2021-01-20T03:24:23.000Z
2021-11-01T05:33:38.000Z
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
6
2020-06-24T03:28:58.000Z
2021-10-01T16:04:11.000Z
#!/usr/bin/env python import os import re import subprocess import sys # version -> classifier # '' means default classifier cuda_vers = { '11.2': ['cuda11', ''] } def check_classifier(classifier): ''' Check the mapping from cuda version to jar classifier. Used by maven build. ''' cu_ver = detec...
25.386667
108
0.644958
255
1,904
4.588235
0.333333
0.035897
0.055556
0.025641
0.123077
0.076923
0.076923
0.076923
0.076923
0.076923
0
0.010149
0.22374
1,904
74
109
25.72973
0.781461
0.161765
0
0.139535
0
0
0.137705
0
0
0
0
0
0
1
0.139535
false
0
0.093023
0.023256
0.348837
0.093023
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
4689c871990ae00114397708dbcc29fc3f6a6ac6
5,087
py
Python
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
1
2020-10-16T16:37:04.000Z
2020-10-16T16:37:04.000Z
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
null
null
null
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
null
null
null
import pytz from datetime import date, time, datetime, timedelta from django.core.exceptions import ValidationError from django.db import models START_HOUR = 9 END_HOUR = 18 workingHours = END_HOUR - START_HOUR class Vendor(models.Model): """ This class defines which vendors are allowed raise tickets with ...
30.279762
98
0.649892
669
5,087
4.853513
0.310912
0.016631
0.027718
0.036957
0.169695
0.091469
0.012935
0.012935
0
0
0
0.018049
0.248477
5,087
167
99
30.461078
0.831284
0.274818
0
0.125
0
0
0.098268
0
0
0
0
0
0
1
0.104167
false
0
0.041667
0.041667
0.458333
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
468a1af4f4a7334446b0e0152db92174a4f3295b
424
py
Python
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
import pytest # import station def pytest_addoption(parser): parser.addoption("--engine", action="store", default="local", help="engine to run tests with") @pytest.fixture(scope='module') def eng(request): engine = request.config.getoption("--engine") if engine == 'local': ...
23.555556
66
0.625
48
424
5.5
0.604167
0.060606
0
0
0
0
0
0
0
0
0
0
0.235849
424
17
67
24.941176
0.814815
0.033019
0
0
0
0
0.161765
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
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
468ce700bfaf82c4969d9da9bf954d79c010ee00
7,960
py
Python
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
1
2020-07-24T10:59:17.000Z
2020-07-24T10:59:17.000Z
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import logging import torch.nn as nn from fairseq import checkpoint_utils from fairseq.models import BaseFairseqModel, register_model from pytorch_translate import rnn from pytorch_translate.rnn import ( LSTMSequenceEncoder, RNNDecoder, RNNEncoder, RNNModel, base_architectur...
38.829268
91
0.650377
905
7,960
5.379006
0.19558
0.031635
0.017256
0.015612
0.527527
0.506574
0.494248
0.494248
0.462613
0.440838
0
0.001558
0.274121
7,960
204
92
39.019608
0.840948
0.103518
0
0.429448
0
0
0.063836
0.010402
0
0
0
0.009804
0
1
0.03681
false
0
0.042945
0.006135
0.110429
0.01227
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
468df8250e372c77ba85fdae3eaf93df4bca1fda
3,382
py
Python
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
1
2022-03-15T06:08:14.000Z
2022-03-15T06:08:14.000Z
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
58
2021-10-01T12:43:37.000Z
2021-12-08T22:58:43.000Z
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
import tempfile import os import sys sys.path.insert(1,"../../") import h2o from h2o.estimators import H2OGeneralizedLinearEstimator, H2OGenericEstimator from tests import pyunit_utils from tests.testdir_generic_model import compare_output, Capturing, compare_params def test(x, y, output_test, strip_part, algo_name, ...
46.328767
136
0.77262
412
3,382
5.944175
0.247573
0.084524
0.063699
0.089833
0.320131
0.235198
0.196815
0.108616
0.108616
0.103716
0
0.006443
0.128031
3,382
72
137
46.972222
0.824008
0.01508
0
0
0
0
0.189002
0.079026
0
0
0
0
0.140351
1
0.087719
false
0
0.175439
0
0.263158
0.035088
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
468f2faee1688669d20b891ff6fb1ee641d68824
9,160
py
Python
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
35
2015-12-03T16:46:11.000Z
2022-01-19T10:50:35.000Z
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
57
2015-12-01T00:34:39.000Z
2022-03-25T12:00:50.000Z
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
64
2016-04-24T00:22:43.000Z
2021-08-06T09:29:38.000Z
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP # # 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...
37.235772
78
0.533188
982
9,160
4.825866
0.261711
0.048533
0.023634
0.016881
0.227052
0.160793
0.127875
0.127875
0.127875
0.067947
0
0.011148
0.373253
9,160
245
79
37.387755
0.814318
0.116157
0
0.259459
0
0
0.096378
0.006202
0
0
0
0
0
1
0.037838
false
0.048649
0.07027
0
0.189189
0.07027
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
468fc07953c8147b25a2f944027c5638901e823c
4,452
py
Python
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
39.75
99
0.655885
529
4,452
5.372401
0.353497
0.034483
0.038705
0.021112
0.298733
0.259324
0.240324
0.178044
0.178044
0.178044
0
0.014364
0.265049
4,452
111
100
40.108108
0.854218
0.235624
0
0.328767
0
0
0.160321
0.05235
0
0
0
0
0.013699
1
0.041096
false
0
0.150685
0
0.219178
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
469076a38899f95c1e7c8c2bdfb61492327f8f5d
11,269
py
Python
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
######################################################################## # import default libraries ######################################################################## import os import csv import sys import gc ######################################################################## ####################...
50.308036
151
0.460112
1,059
11,269
4.66289
0.20491
0.035642
0.028352
0.018226
0.349737
0.294249
0.269542
0.241798
0.219927
0.134467
0
0.004267
0.334457
11,269
223
152
50.533632
0.654133
0.067708
0
0.162963
0
0
0.12135
0.026106
0
0
0
0
0
1
0.007407
false
0
0.103704
0
0.111111
0.044444
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
4691f105e7b4e6d56ef7ec3a85a8060f44a867c1
579
py
Python
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
6
2018-05-15T05:08:52.000Z
2021-12-23T12:31:28.000Z
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
1
2022-01-01T15:08:26.000Z
2022-01-01T15:08:36.000Z
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
6
2020-03-23T15:59:14.000Z
2021-09-18T09:54:57.000Z
from openpyxl import Workbook wb = Workbook() ws = wb.active data = [ ["Fruit", "Quantity"], ["Kiwi", 3], ["Grape", 15], ["Apple", 3], ["Peach", 3], ["Pomegranate", 3], ["Pear", 3], ["Tangerine", 3], ["Blueberry", 3], ["Mango", 3], ["Watermelon", 3], ["Blackberry", 3], ...
18.09375
63
0.544041
75
579
4.106667
0.586667
0.058442
0.116883
0.097403
0
0
0
0
0
0
0
0.048673
0.219344
579
31
64
18.677419
0.632743
0
0
0
0
0
0.259067
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
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
4692314ed6b0b1046dcbfa825a3d464141899b16
1,150
py
Python
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
from bleak import BleakClient import asyncio import functools notify_uuid = "00002a19-0000-1000-8000-00805f9b34fb".format(0x2A19) def callback(sender, data, mac_address): #data = bytearray(data) dataint = int.from_bytes(data, byteorder='little', signed=True) print(mac_address, dataint) def run(addresses...
27.380952
100
0.691304
142
1,150
5.401408
0.56338
0.039113
0.039113
0.057366
0
0
0
0
0
0
0
0.082609
0.2
1,150
41
101
28.04878
0.751087
0.063478
0
0
0
0
0.147907
0.100465
0
0
0.005581
0
0
1
0.076923
false
0
0.115385
0
0.192308
0.192308
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
4692c2ff5367cf7fc52d9c66cbd5187236f80e7d
655
py
Python
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
class Node: left = right = None def __init__(self, data): self.data = data def inorder(root): if root is None: return inorder(root.left) print(root.data, end=' ') inorder(root.right) def insert(root, key): if root is None: return Node(key) if key < root.data: ...
22.586207
44
0.58626
91
655
4.087912
0.351648
0.11828
0.043011
0.064516
0.096774
0
0
0
0
0
0
0.0282
0.296183
655
29
45
22.586207
0.778742
0
0
0.148148
0
0
0.01374
0
0
0
0
0
0
1
0.148148
false
0
0
0
0.407407
0.037037
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
4693fb42192c5502c57c49f8441c5cf7ba66b002
1,709
py
Python
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
1
2021-05-07T07:40:27.000Z
2021-05-07T07:40:27.000Z
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
null
null
null
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
null
null
null
#!/usr/bin/python '''***************************************************************************************************************** Seeed Studio Relay Board Library V2 Test Application #2 By John M. Wargo (https://www.johnwargo.com) ************************************************************************...
26.703125
119
0.504389
200
1,709
4.165
0.4
0.072029
0.115246
0.136855
0.379352
0.336134
0.336134
0.336134
0.246098
0.204082
0
0.011419
0.282621
1,709
63
120
27.126984
0.668026
0.382095
0
0.5
0
0
0.087584
0
0
0
0
0
0
1
0.027778
false
0
0.083333
0
0.111111
0.277778
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
469452474a032213255cf5547c78a4dee27d7d79
2,087
py
Python
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
12
2017-05-17T17:22:47.000Z
2021-05-24T17:24:42.000Z
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
484
2015-12-02T19:24:34.000Z
2022-02-22T16:36:47.000Z
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
8
2017-04-27T20:42:05.000Z
2022-01-11T19:43:57.000Z
import os from sqlalchemy import bindparam, create_engine, exc from sqlalchemy.dialects.postgresql.json import JSONB from sqlalchemy.engine.url import URL from sqlalchemy.sql import text from .utils import log, logerr # Setup SQL Alchemy vars. pg_opts = { 'drivername': os.getenv('PG_DRIVER'), 'username': os....
32.107692
75
0.632966
265
2,087
4.871698
0.430189
0.043377
0.054222
0.044152
0.091402
0.071263
0.071263
0.071263
0.071263
0.071263
0
0.010989
0.258745
2,087
64
76
32.609375
0.823529
0.257307
0
0.04878
0
0
0.096879
0
0
0
0
0
0
1
0.146341
false
0.02439
0.146341
0.02439
0.414634
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
46950a30a497c84732798b48f44483d04a01233a
217
py
Python
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests keyword = "python" try: kv = {'q':keyword} r = requests.get('http://www.so.com/s', params=kv) print(r.request.url) r.raise_for_status() print(len(r.text)) except: print('爬取失败')
19.727273
54
0.617512
33
217
4
0.757576
0
0
0
0
0
0
0
0
0
0
0
0.193548
217
11
55
19.727273
0.754286
0
0
0
0
0
0.137615
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.3
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
4695279b1ca8306d24c6c58add7de32e6798011f
4,489
py
Python
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
import torch.nn as nn class RODEncode(nn.Module): def __init__(self, in_channels=2): super(RODEncode, self).__init__() self.conv1a = nn.Conv3d( in_channels=in_channels, out_channels=64, kernel_size=(9, 5, 5), stride=(1, 1, 1), padding=(4,...
32.294964
101
0.461573
597
4,489
3.345059
0.118928
0.021032
0.03305
0.072108
0.682524
0.588883
0.452178
0.361042
0.303956
0.282424
0
0.145278
0.382045
4,489
138
102
32.528986
0.574621
0.151927
0
0.507937
0
0
0
0
0
0
0
0
0
1
0.031746
false
0
0.007937
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
469870ae47593eb387aa34d03ce486676acb3094
2,599
py
Python
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
# LSTM with Variable Length Input Sequences to One Character Output import numpy from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.utils import np_utils from keras.preprocessing.sequence import pad_sequences from theano.tensor.shared_randomstreams import ...
41.919355
91
0.719123
395
2,599
4.607595
0.35443
0.01978
0.014835
0.018132
0.113187
0.026374
0
0
0
0
0
0.016559
0.163524
2,599
61
92
42.606557
0.820607
0.192382
0
0.081633
0
0
0.053827
0.024691
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.061224
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