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
16ea2d8be166b5650aea4af33dbde9040a41f768
1,438
py
Python
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
import platform import textwrap import pytest from . import test_projects, utils dockcross_only_project = test_projects.new_c_project( setup_py_add=textwrap.dedent(r''' import os, sys # check that we're running in the correct docker image as specified in the # environment options CIBW_MA...
35.073171
116
0.672462
196
1,438
4.755102
0.459184
0.016094
0.042918
0.040773
0.064378
0.064378
0
0
0
0
0
0.037138
0.232267
1,438
40
117
35.95
0.807065
0.031293
0
0
0
0
0.491733
0.113587
0
0
0
0
0.033333
1
0.033333
false
0
0.166667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16eb07b6e691db19202917b717c2ccb87df9fd9d
32,556
py
Python
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
3
2018-05-22T22:45:23.000Z
2020-02-13T16:45:03.000Z
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import math import dateutil import dateutil.parser import json from ChartBars import Chart from ChartUpdaterByCCWebsocket import ChartUpdaterByCoincheckWS from Util import BitcoinUtil def adjust_price_to_tick(price, tick): return price - math.fmod(price, tick) def adjust_amount_to_tick(amount, t...
40.593516
189
0.593593
3,837
32,556
4.708887
0.095126
0.022415
0.02557
0.017877
0.394786
0.307394
0.228027
0.160615
0.116504
0.084625
0
0.015373
0.322675
32,556
801
190
40.644195
0.803954
0.138807
0
0.240084
0
0.002088
0.09426
0.003947
0
0
0
0
0.004175
1
0.05428
false
0.004175
0.014614
0.016701
0.139875
0.093946
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16ebce5b29644a3fdd8bee60c8ef43a322219b10
9,086
py
Python
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
null
null
null
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
5
2018-09-28T18:01:28.000Z
2019-02-12T18:49:06.000Z
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
1
2018-10-15T22:41:47.000Z
2018-10-15T22:41:47.000Z
import rs3clans import discord from discord.ext import commands from bot.bot_client import Bot from bot.utils.tools import separator from bot.utils.context import Context class Clan(commands.Cog): def __init__(self, bot: Bot): self.bot = bot @commands.cooldown(1, 5, commands.BucketTyp...
42.064815
115
0.569117
1,046
9,086
4.717017
0.191205
0.024321
0.039522
0.051682
0.378597
0.315971
0.270369
0.250709
0.250709
0.181394
0
0.018992
0.316201
9,086
215
116
42.260465
0.774344
0
0
0.270833
0
0.005208
0.214181
0.0434
0
0
0
0
0
1
0.010417
false
0
0.03125
0
0.098958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16ec4bab280bd7d838f873bdb4d147f41ca2f107
2,539
py
Python
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
33.853333
77
0.639228
329
2,539
4.756839
0.340426
0.081789
0.066454
0.057508
0.197444
0.170607
0.104792
0.104792
0.06262
0.06262
0
0.003188
0.258763
2,539
74
78
34.310811
0.828374
0.2308
0
0.083333
0
0
0.149793
0.037707
0
0
0
0
0.020833
1
0.104167
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16f050092210b638486f36ba124add5847de3ce7
9,390
py
Python
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
import unittest from test import test_support import base64 class LegacyBase64TestCase(unittest.TestCase): def test_encodestring(self): eq = self.assertEqual eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n") eq(base64.encodestring("a"), "YQ==\n") eq(base64.encod...
43.271889
81
0.587859
865
9,390
6.317919
0.139884
0.125892
0.065325
0.032205
0.609515
0.46441
0.262397
0.16505
0.154071
0.069167
0
0.098772
0.245261
9,390
216
82
43.472222
0.672358
0.049521
0
0.245614
0
0
0.284157
0.155169
0
0
0
0
0.105263
1
0.081871
false
0
0.02924
0
0.122807
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
16f095ebea3707b39efe449bdb8d248fee8a8b6e
7,154
py
Python
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
2
2020-08-06T12:20:24.000Z
2020-08-06T12:20:43.000Z
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
null
null
null
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
null
null
null
import numpy as np from ctypes import c_void_p from .Shader import Shader from .transforms import * from OpenGL.GL import * class Path: # position=[x1, y1, z1, ..., xn, yn, zn] ; rotation = [[Rx1, Ry1, Rz1], ..., [Rxn, Ryn, Rzn]] def __init__(self, position, rotation=None): self.loadPath(position) ...
46.75817
131
0.643836
756
7,154
5.966931
0.179894
0.063844
0.024828
0.019508
0.5409
0.42474
0.414986
0.345821
0.345821
0.338063
0
0.023588
0.247414
7,154
152
132
47.065789
0.814264
0.042354
0
0.29661
0
0
0.061129
0.039047
0
0
0
0
0.008475
1
0.042373
false
0
0.042373
0
0.101695
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
bc3fd4c771ec63f015857f770191b3f22d0f45f1
1,406
py
Python
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
1
2022-01-13T17:54:12.000Z
2022-01-13T17:54:12.000Z
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
null
null
null
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
null
null
null
from argparse import ( ArgumentParser ) from os import getcwd as os_getcwd DEFAULT_OUTPUT_FOLDER = os_getcwd() DEFAULT_SAMPLE_VOLUME = 10000 def build_args_parser( program, description): parser = ArgumentParser( program, description, ) parser = add_arguments(pars...
20.985075
75
0.600996
158
1,406
5.170886
0.35443
0.077111
0.124847
0.073439
0.178703
0.178703
0.178703
0.178703
0.178703
0.093023
0
0.005128
0.306543
1,406
66
76
21.30303
0.832821
0
0
0.294118
0
0
0.296586
0.034139
0
0
0
0
0
1
0.039216
false
0
0.039216
0
0.117647
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
bc4085bfce6da5fce4ce47af500b1138fc887137
246
py
Python
ex1_01.py
sitdh/59.com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
1
2021-04-25T14:46:12.000Z
2021-04-25T14:46:12.000Z
ex1_01.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
ex1_01.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
import math x = float(input()) prop_2 = -(x**2) / math.factorial(2) prop_3 = (x**4) / math.factorial(4) prop_4 = -(x**6) / math.factorial(6) cos_x = float(1 + prop_2 + prop_3 + prop_4) print(prop_2) print(prop_3) print(prop_4) print(cos_x)
14.470588
43
0.646341
48
246
3.083333
0.291667
0.101351
0.081081
0
0
0
0
0
0
0
0
0.077295
0.158537
246
16
44
15.375
0.637681
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
bc41a5fa588f792a592b96d3c6500dbf29045ec5
3,211
py
Python
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
2
2022-02-10T17:47:53.000Z
2022-02-10T19:04:02.000Z
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
183
2020-12-02T11:34:18.000Z
2022-03-29T15:19:23.000Z
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
7
2021-04-13T17:26:05.000Z
2021-11-22T14:24:24.000Z
import pytest from datagateway_api.src.common.exceptions import BadRequestError, FilterError from datagateway_api.src.datagateway_api.filter_order_handler import FilterOrderHandler from datagateway_api.src.datagateway_api.icat.filters import PythonICATWhereFilter class TestICATWhereFilter: @pytest.mark.parametri...
43.391892
87
0.617253
387
3,211
4.927649
0.235142
0.080231
0.047719
0.015732
0.378081
0.315155
0.224961
0.153644
0.153644
0.153644
0
0.016413
0.222049
3,211
73
88
43.986301
0.746998
0.0218
0
0.125
0
0
0.17512
0.007656
0
0
0
0
0.071429
1
0.125
false
0
0.071429
0
0.214286
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
bc441b2065c8199c0dd4d1448231c084f1b1cfa3
7,160
py
Python
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
29
2015-08-10T20:25:00.000Z
2021-11-30T23:34:24.000Z
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
40
2015-01-05T15:01:37.000Z
2022-03-11T13:47:06.000Z
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
4
2015-04-14T10:06:26.000Z
2021-01-19T16:46:48.000Z
# # (C) Copyright 2013 Enthought, Inc., Austin, TX # All right reserved. # # This file is open source software distributed according to the terms in # LICENSE.txt # """ Context holding multiple subcontexts. """ from __future__ import absolute_import from itertools import chain from collections import MutableMapping ...
30.468085
85
0.557682
757
7,160
5.150594
0.305152
0.034624
0.034881
0.015389
0.11644
0.090023
0.061041
0.025648
0.025648
0.025648
0
0.000841
0.335754
7,160
234
86
30.598291
0.818966
0.276117
0
0.324324
0
0
0.028836
0.005595
0
0
0
0
0
1
0.126126
false
0
0.063063
0.036036
0.351351
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
bc447d214c0f2c389991fd5918f6f13fed4aaf6b
634
py
Python
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
"""A simple file to test the line_counter performance in python This is a multiline doctest """ __author__ = "Frederico Moeller" __copyright__ = "" __credits__ = ["Frederico Moeller"] __license__ = "MIT" __version__ = "1.0.1" __maintainer__ = "Frederico Moeller" __email__ = "" __status__ = "" #import things import ma...
21.133333
63
0.641956
78
634
4.679487
0.615385
0.131507
0.038356
0.065753
0
0
0
0
0
0
0
0.00641
0.26183
634
29
64
21.862069
0.773504
0.253943
0
0.111111
0
0
0.154684
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
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
bc44b8524b66c7a720d547f156846ae7572f5832
4,602
py
Python
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
25
2020-11-03T16:38:51.000Z
2022-03-28T11:53:08.000Z
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
1
2019-12-15T08:33:47.000Z
2019-12-16T17:33:15.000Z
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
7
2021-05-03T01:01:28.000Z
2022-02-19T04:06:20.000Z
"""Data pipelines.""" from collections import defaultdict, OrderedDict from tqdm import tqdm from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler import torch def get_info(examples, vocab=None, max_seq_len=256): """Gathers info on and creats a featurized example generator for...
35.674419
93
0.612994
596
4,602
4.620805
0.271812
0.025418
0.022876
0.015251
0.081336
0.043573
0.023965
0.023965
0.023965
0
0
0.0085
0.284224
4,602
128
94
35.953125
0.827565
0.240113
0
0.092105
0
0
0.064469
0
0
0
0
0
0.039474
1
0.078947
false
0
0.052632
0.013158
0.197368
0.013158
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
bc498b7d39a14ae7cd3ad1e6341af40bb6279e72
5,144
py
Python
image_store_processing.py
olubiyiontheweb/digid_websearch_flask
181107eaa60faff9429b754236406eed56e3c1ec
[ "MIT" ]
1
2021-12-15T18:56:05.000Z
2021-12-15T18:56:05.000Z
image_store_processing.py
olubiyiontheweb/similar_image_websearch
ddb79a3e627c1143ff7f64e6d82f0d8b9dcd8047
[ "MIT" ]
null
null
null
image_store_processing.py
olubiyiontheweb/similar_image_websearch
ddb79a3e627c1143ff7f64e6d82f0d8b9dcd8047
[ "MIT" ]
null
null
null
from skimage.metrics import structural_similarity as ssim from glob import glob from PIL import Image import numpy as np import ntpath import dhash import cv2 from database_structure import database_migrations IMAGE_FOLDER = "./image_store" ALLOWED_EXTENSIONS = ['png', 'jpg', 'jpeg'] image_store_hash = dict() db_ops ...
36.742857
79
0.631221
661
5,144
4.633888
0.189107
0.081619
0.06856
0.045707
0.444989
0.420503
0.329742
0.284688
0.25857
0.25857
0
0.006452
0.276827
5,144
139
80
37.007194
0.816935
0.107309
0
0.313131
0
0
0.077982
0
0
0
0
0.007194
0
1
0.10101
false
0
0.080808
0
0.262626
0.151515
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
bc49a143fb9688648101a0602142d480263709b3
8,823
py
Python
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os import json from datetime import date, datetime, timedelta from .utils import helper_functions as hf from copy import deepcopy dir_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))).replace('\\', '/') class Jpserv(commands.Cog): """Module...
45.715026
120
0.572821
1,142
8,823
4.37303
0.232925
0.030437
0.040849
0.023428
0.330597
0.284742
0.203244
0.160993
0.12495
0.108931
0
0.062438
0.315652
8,823
192
121
45.953125
0.764657
0.051796
0
0.314465
0
0.018868
0.242631
0
0
0
0
0
0
1
0.012579
false
0
0.044025
0
0.138365
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
bc4d5b7bde1ce5d45b97c67684a8f6c61429eb5b
5,144
py
Python
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow 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 # # Unless required by applica...
37.823529
80
0.623639
662
5,144
4.670695
0.297583
0.045278
0.023286
0.020699
0.189198
0.179819
0.060802
0.060802
0.04075
0.04075
0
0.017943
0.274106
5,144
135
81
38.103704
0.810123
0.383554
0
0.101266
0
0
0.040642
0
0
0
0
0.007407
0
1
0.050633
false
0
0.063291
0
0.177215
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
bc4d689703a555cde99de572dc764b14b5f45f70
726
py
Python
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
1
2020-12-30T00:57:38.000Z
2020-12-30T00:57:38.000Z
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
null
null
null
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
null
null
null
import moviepy.editor as mpy import moviepy.video.fx.all as vfx import subprocess as sp # Crop and resize video clip = mpy.VideoFileClip("smoke.mp4") (w, h) = clip.size cropped_clip = vfx.crop(clip, width=(h/128)*64, height=h, x1=w/4*3-100, y1=0).resize((64, 128)) cropped_clip.write_videofile('smoke-cropped.mp4') # C...
34.571429
95
0.688705
130
726
3.807692
0.569231
0.052525
0.060606
0
0
0
0
0
0
0
0
0.053398
0.14876
726
21
96
34.571429
0.747573
0.170799
0
0
0
0.071429
0.198997
0.088629
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
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
bc4f5018d00b3586d20735c150c38e4b306f48f3
325
py
Python
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
7
2020-03-23T21:43:32.000Z
2021-03-30T09:11:45.000Z
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
4
2020-05-09T01:13:24.000Z
2022-01-13T02:24:14.000Z
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
4
2020-04-17T15:06:36.000Z
2021-03-30T09:11:47.000Z
''' Created on Mar 22, 2020 @author: Michal.Busta at gmail.com ''' #get rid of the optimizer state ... import torch MODEL_PATH = '/models/model-b2-2.pth' state = torch.load(MODEL_PATH, map_location=lambda storage, loc: storage) state_out = { "state_dict": state["state_dict"], } torch.save(state_out, 'model-b2-2....
20.3125
73
0.707692
52
325
4.288462
0.653846
0.080717
0.071749
0.098655
0
0
0
0
0
0
0
0.035587
0.135385
325
16
74
20.3125
0.758007
0.289231
0
0
0
0
0.251121
0.098655
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc4fb0ed6bbdc4f3f5e43225548f14915b084779
1,125
py
Python
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
6
2018-02-09T15:03:12.000Z
2021-02-18T07:21:34.000Z
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
17
2018-03-20T09:28:32.000Z
2022-01-27T08:48:41.000Z
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
7
2018-02-09T15:06:11.000Z
2020-03-02T10:23:10.000Z
import os import re from setuptools import setup version = re.search( '^__version__\s*=\s*"(.*)"', open('braumeister/braumeister.py').read(), re.M ).group(1) def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="braumeister", packages=["braumeiste...
26.162791
73
0.639111
123
1,125
5.707317
0.674797
0.125356
0
0
0
0
0
0
0
0
0
0.008879
0.199111
1,125
42
74
26.785714
0.770255
0
0
0
0
0
0.427556
0.092444
0
0
0
0
0
1
0.027778
false
0
0.083333
0.027778
0.138889
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
bc500a982cb78bb46e6aa705ee116eae36444405
3,493
py
Python
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
12
2020-11-13T01:51:24.000Z
2022-03-17T03:14:27.000Z
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
1
2021-10-12T06:10:22.000Z
2021-10-12T06:10:22.000Z
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
2
2021-01-10T17:51:34.000Z
2022-03-02T10:53:11.000Z
# standard library imports import os # third party imports import numpy as np from PIL import Image import torch.nn as nn from torchvision import transforms # local imports import config from . import utils from . import geometric_transformer class GeoTransformationInfer(nn.Module): def __init__(self, output_di...
41.094118
178
0.742056
543
3,493
4.480663
0.187845
0.160296
0.155364
0.098644
0.427045
0.328812
0.235101
0.203042
0.203042
0.203042
0
0.081303
0.130261
3,493
84
179
41.583333
0.719552
0.057544
0
0
0
0
0.018259
0.006695
0
0
0
0
0
1
0.045455
false
0
0.121212
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
bc50340e05b5a45da8fec5c4d61ac3cccc89e3f0
6,577
py
Python
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
4
2021-07-02T03:08:29.000Z
2022-03-12T07:13:13.000Z
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
1
2021-12-25T21:24:23.000Z
2021-12-25T21:24:23.000Z
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
1
2021-12-26T07:33:45.000Z
2021-12-26T07:33:45.000Z
from pathlib import Path import h5py import numpy as np from torchvision.datasets.vision import VisionDataset from PIL import Image import requests import zipfile from tqdm import tqdm def download_file_from_google_drive(id, destination): URL = "https://docs.google.com/uc?export=download" session = requests...
35.939891
149
0.614414
846
6,577
4.556738
0.217494
0.032685
0.06537
0.044099
0.366018
0.250843
0.22153
0.214267
0.214267
0.214267
0
0.012468
0.292687
6,577
182
150
36.137363
0.816208
0.112513
0
0.178862
0
0
0.033491
0.009293
0
0
0
0
0
1
0.073171
false
0
0.065041
0.00813
0.219512
0.01626
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
bc535e8c70a7ae7d8c05a67decf44c291034483f
2,406
py
Python
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
import findspark findspark.init() from pyspark import SparkConf,SparkContext from pyspark.streaming import StreamingContext from pyspark.sql import Row,SQLContext import sys import requests def tmp(x): y = (x.split(';')[7]).split(',') return (y) def forf(x): for i in x: yield (i,1) def topprint(time,rdd): re...
24.804124
86
0.741895
362
2,406
4.91989
0.287293
0.031443
0.035935
0.058956
0.554183
0.548568
0.548568
0.548568
0.504211
0.504211
0
0.024357
0.095594
2,406
96
87
25.0625
0.794118
0.078969
0
0
0
0
0.036145
0
0
0
0
0
0
1
0.075
false
0
0.15
0
0.25
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
bc562cc6c9b35189e9adc0f9ba37a99ec2138c03
3,672
py
Python
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
2
2017-05-04T08:05:29.000Z
2019-02-08T21:36:11.000Z
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
null
null
null
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Google Inc. 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 appli...
33.381818
78
0.699891
532
3,672
4.744361
0.302632
0.083201
0.046355
0.029715
0.257924
0.203249
0.190571
0.16046
0.16046
0.16046
0
0.003106
0.210784
3,672
109
79
33.688073
0.86784
0.491285
0
0
0
0
0.038915
0.033608
0
0
0
0
0
1
0.153846
false
0
0.102564
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc56ca67cc1e81684bbce0d45386183e51cffb90
10,340
py
Python
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
47.214612
137
0.562186
1,194
10,340
4.546064
0.173367
0.05748
0.059322
0.035925
0.56227
0.453758
0.407701
0.348379
0.319639
0.280951
0
0.035136
0.331141
10,340
219
138
47.214612
0.749711
0.156867
0
0.421053
0
0
0.179709
0.148892
0
0
0
0
0.019737
1
0.006579
false
0
0.032895
0
0.046053
0.013158
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
bc57b1f771495cf5ea069e99b2859a0f3795d393
6,608
py
Python
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.333333
100
0.628783
802
6,608
4.933915
0.299252
0.019459
0.014152
0.016679
0.083902
0.053071
0.053071
0.053071
0.041446
0.041446
0
0.009742
0.285412
6,608
167
101
39.568862
0.828251
0.152542
0
0.125
0
0
0.072191
0.00778
0
0
0
0
0
1
0.107143
false
0
0.098214
0.017857
0.3125
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
bc58243dff3b67ec29b9366a2531008a83301c24
767
py
Python
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
1
2020-10-21T06:01:28.000Z
2020-10-21T06:01:28.000Z
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
null
null
null
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
null
null
null
from unittest import TestCase import torch import transformers from model.bert_model import BertModel class TestBertModel(TestCase): def test_forward(self): # Bert Config vocab_size = 10 sequence_len = 20 batch = 32 num_classes = 3 expected_shape = (batch, seque...
26.448276
144
0.688396
98
767
5.153061
0.479592
0.071287
0.063366
0
0
0
0
0
0
0
0
0.023729
0.230769
767
28
145
27.392857
0.832203
0.028683
0
0
0
0
0
0
0
0
0
0
0.0625
1
0.0625
false
0
0.25
0
0.375
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
bc583d8b5318b12422c378e8c294b322b7118447
1,593
py
Python
tests/renderer_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
2
2020-12-14T20:50:57.000Z
2021-05-26T04:32:24.000Z
tests/renderer_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
29
2020-12-18T15:56:14.000Z
2021-01-12T01:17:48.000Z
tests/renderer_test.py
tmcclintock/donjuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
null
null
null
import json import os import tempfile from unittest import TestCase import pytest from donjuan import Dungeon, DungeonRandomizer, Renderer class RendererTest(TestCase): def setUp(self): super().setUp() self.TEMP_DIR = tempfile.mkdtemp() def test_smoke(self): r = Renderer() a...
28.963636
68
0.622724
212
1,593
4.537736
0.34434
0.043659
0.034304
0.035343
0.280665
0.280665
0.224532
0.224532
0.224532
0.224532
0
0.005146
0.268048
1,593
54
69
29.5
0.819897
0.037037
0
0.190476
0
0
0.048988
0.017636
0
0
0
0
0.095238
1
0.119048
false
0
0.142857
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
bc5a20c1be48c7dd2648cc88a86c05d54e4b6c1c
612
py
Python
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
157
2016-09-12T16:24:14.000Z
2018-06-02T15:40:38.000Z
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
206
2016-09-12T16:41:31.000Z
2018-06-04T21:50:29.000Z
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
34
2016-09-12T16:37:57.000Z
2018-06-04T18:37:52.000Z
"""Spinnaker validate functions.""" import logging from .consts import API_URL from .utils.credentials import get_env_credential LOG = logging.getLogger(__name__) def validate_gate(): """Check Gate connection.""" try: credentials = get_env_credential() LOG.debug('Found credentials: %s', cred...
23.538462
69
0.673203
76
612
5.236842
0.486842
0.045226
0.080402
0.095477
0
0
0
0
0
0
0
0
0.199346
612
25
70
24.48
0.812245
0.124183
0
0
0
0
0.207692
0
0
0
0
0
0
1
0.133333
false
0
0.2
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
bc5b680a2cd25d3fd6125ee9f9722bc8e692640b
7,320
py
Python
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Copyright 2016 Rackspace Australia # 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 requi...
37.927461
78
0.639617
908
7,320
5.008811
0.272026
0.05277
0.009894
0.015831
0.404134
0.369173
0.332894
0.332894
0.316403
0.313984
0
0.027733
0.236475
7,320
192
79
38.125
0.786008
0.132787
0
0.350746
0
0
0.164269
0.06751
0
0
0
0
0.186567
1
0.08209
false
0.007463
0.08209
0.007463
0.216418
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
bc5dd6bb126db54b8402ce56f75664e9271f9ace
8,889
py
Python
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
8
2020-01-08T13:05:35.000Z
2021-12-20T09:43:57.000Z
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
9
2020-09-25T22:36:51.000Z
2022-02-10T01:50:44.000Z
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
null
null
null
import os import sys import json sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../bert"))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))) import tokenization from config import config class Model_data_preparation(object): def __init__(self, DATA_...
49.938202
186
0.582068
1,152
8,889
4.106771
0.157986
0.036779
0.044388
0.027901
0.361234
0.274572
0.216867
0.201015
0.139294
0.101036
0
0.00699
0.307909
8,889
177
187
50.220339
0.761704
0.024412
0
0.106667
0
0
0.059723
0.013125
0
0
0
0
0
1
0.06
false
0.006667
0.033333
0
0.14
0.02
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
bc5ea97eac050b419965fd5ba95918dc58fe5bee
3,222
py
Python
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
322
2015-08-25T03:16:11.000Z
2021-11-08T09:36:50.000Z
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
76
2015-10-25T13:03:47.000Z
2022-02-19T09:36:10.000Z
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
136
2015-09-04T13:48:27.000Z
2021-06-12T16:48:36.000Z
import typing # noqa from google.protobuf import descriptor from google.protobuf.json_format import _IsMapEntry, _Printer from google.protobuf.message import Message # noqa from clarifai.rest.grpc.proto.clarifai.api.utils import extensions_pb2 def protobuf_to_dict(object_protobuf, use_integers_for_enums=True, ign...
36.202247
97
0.71198
395
3,222
5.546835
0.344304
0.031949
0.047923
0.043359
0.189868
0.189868
0.125513
0.063898
0.063898
0.063898
0
0.001581
0.214773
3,222
88
98
36.613636
0.864427
0.240223
0
0.12963
0
0
0.001669
0
0
0
0
0
0
1
0.074074
false
0
0.092593
0
0.240741
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
bc60aeeb26d899f8ba324554b05c50b567a13167
6,525
py
Python
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
17
2018-02-19T16:29:51.000Z
2020-04-03T13:52:52.000Z
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
2
2019-11-07T15:23:33.000Z
2020-03-12T18:46:47.000Z
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
10
2018-03-06T14:27:12.000Z
2020-10-20T22:01:30.000Z
import demjson import sys from subprocess import Popen, PIPE import subprocess import xml.etree.ElementTree as ET import os from datetime import datetime from functions import runcommand #from sets import Set def getfailedcases(withBundle = True): xmlfile='build/reports/junit.xml' tree = ET.parse(xmlfile) ...
42.927632
222
0.632337
665
6,525
6.156391
0.285714
0.035173
0.023449
0.026869
0.171226
0.117978
0.058622
0.021495
0.021495
0
0
0.009419
0.235249
6,525
151
223
43.211921
0.811022
0.07387
0
0.073171
0
0.01626
0.225569
0.026606
0
0
0
0.006623
0
1
0.01626
false
0
0.065041
0
0.097561
0.162602
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
bc633f72ddfead99679ba43f47af451833e0fa30
3,563
py
Python
download.py
JamesWang007/Open3D-PointNet
402847ceef8d364672ca7d81e0afebcb445cceb5
[ "MIT" ]
120
2019-04-06T16:04:01.000Z
2021-07-22T17:07:51.000Z
test/Open3D-PointNet-master/download.py
AhsanulIslam/Thesis_Computer_Vision
c308cce15146a33a3e474790b0f9535ee9e41eb7
[ "MIT" ]
null
null
null
test/Open3D-PointNet-master/download.py
AhsanulIslam/Thesis_Computer_Vision
c308cce15146a33a3e474790b0f9535ee9e41eb7
[ "MIT" ]
25
2019-04-08T09:39:47.000Z
2021-05-12T15:39:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """Download big files from Google Drive.""" import shutil import sys import...
31.8125
115
0.646646
455
3,563
4.894505
0.421978
0.016165
0.020207
0.015267
0.145487
0.041311
0
0
0
0
0
0.030875
0.227337
3,563
111
116
32.099099
0.77806
0.122369
0
0.054054
0
0
0.160129
0.027653
0
0
0
0
0
1
0.094595
false
0.013514
0.094595
0
0.27027
0.081081
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
bc63b363d6718bb79d14c412bc96475ee3170b28
763
py
Python
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 将耗时间的任务放到线程中以获得更好的用户体验。 """ import time import tkinter import tkinter.messagebox def download(): # 模拟下载任务需要花费10秒时间 time.sleep(10) tkinter.messagebox.showinfo('提示', '下载完成') def show_about(): tkinter.messagebox.showinfo('关于', '作者:罗浩') def main(): t...
20.078947
67
0.621232
86
763
5.383721
0.55814
0.110151
0.107991
0.095032
0
0
0
0
0
0
0
0.025168
0.218873
763
37
68
20.621622
0.751678
0.081258
0
0
0
0
0.08855
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.272727
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
bc652014fdf4755fbb2d576c8ff7469edba046ae
3,250
py
Python
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
""" GitLab webhook receiver - see http://doc.gitlab.com/ee/web_hooks/web_hooks.html """ import asyncio import json import logging from sinks.base_bot_request_handler import AsyncRequestHandler logger = logging.getLogger(__name__) try: import dateutil.parser except ImportError: logger.error("missing module p...
37.790698
99
0.577538
356
3,250
5.129213
0.382022
0.071194
0.06517
0.046002
0.131435
0
0
0
0
0
0
0.001647
0.252923
3,250
85
100
38.235294
0.750412
0.050154
0
0.033333
0
0
0.273379
0
0
0
0
0
0
1
0.016667
false
0
0.1
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc65af7557f0841ee2695968775683b6f5578bc6
19,786
py
Python
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
1
2021-04-27T13:55:29.000Z
2021-04-27T13:55:29.000Z
import os from typing import Union, List from tei_entity_enricher.interface.postprocessing.io import FileReader, FileWriter from tei_entity_enricher.util.helper import local_save_path, makedir_if_necessary from tei_entity_enricher.util.exceptions import FileNotFound class GndConnector: def __init__( ...
58.712166
347
0.564237
2,159
19,786
5.027327
0.159333
0.02119
0.02073
0.046066
0.445826
0.364842
0.30339
0.235397
0.200755
0.170905
0
0.00368
0.354493
19,786
336
348
58.886905
0.84607
0.250278
0
0.483019
0
0.033962
0.223564
0.027697
0
0
0
0.002976
0
1
0.026415
false
0.015094
0.018868
0
0.10566
0.188679
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
bc66bbff24da2cc4aab8ede584053c2dba3e5cf5
440
py
Python
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
4
2018-12-17T18:45:57.000Z
2021-04-29T16:30:42.000Z
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
19
2019-01-02T19:09:12.000Z
2020-12-14T18:50:47.000Z
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
2
2020-03-18T01:24:03.000Z
2022-01-06T06:19:58.000Z
from args import get_argparser, parse_args, get_aligner, get_bbox def render(aligner, bbox, z): aligner.total_bbox = bbox aligner.zs = z aligner.render_section_all_mips(z, bbox) if __name__ == '__main__': parser = get_argparser() args = parse_args(parser) a = get_aligner(args) bbox = get_bbox(args) ...
24.444444
66
0.697727
70
440
4.071429
0.442857
0.084211
0
0
0
0
0
0
0
0
0
0.008242
0.172727
440
17
67
25.882353
0.774725
0
0
0
0
0
0.052392
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
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
bc6934a711c5b2c64314e9faedf3a6f0838f298a
52,806
py
Python
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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...
43.142157
165
0.613926
5,791
52,806
5.444483
0.10171
0.027403
0.039583
0.026832
0.674268
0.647087
0.612357
0.597418
0.582638
0.558407
0
0.003937
0.312143
52,806
1,223
166
43.177433
0.864081
0.543745
0
0.527273
0
0
0.066945
0.011505
0
0
0
0.007359
0
1
0.030303
false
0.020202
0.052525
0
0.117172
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
bc69b9f3ab057490f4ec7854149028c2c310ae9c
31,196
py
Python
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
3
2017-07-03T19:45:13.000Z
2020-05-12T16:56:19.000Z
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
1
2019-06-21T14:49:50.000Z
2019-06-24T08:24:37.000Z
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
2
2017-06-05T21:56:36.000Z
2021-03-22T20:34:13.000Z
#/usr/bin/python __version__ = '1.0' __author__ = 'alastair.maxwell@glasgow.ac.uk' ## ## Imports import string import os import errno import shutil import sys import glob import datetime import subprocess import logging as log import numpy as np import csv from io import StringIO import PyPDF2 from sklearn import prep...
38.277301
155
0.702526
4,278
31,196
4.923796
0.150538
0.034751
0.034751
0.045291
0.414309
0.34775
0.271221
0.236137
0.198633
0.187476
0
0.006152
0.150724
31,196
814
156
38.324324
0.788896
0.112803
0
0.220826
0
0
0.237697
0.013581
0
0
0
0.001229
0
1
0.048474
false
0.005386
0.032316
0
0.150808
0.003591
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
bc6de8ef28a6c9ca4fc7727dee2d21bb765f85a1
1,585
py
Python
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
import json import os import nibabel as nib import csv from operator import itemgetter # PATH TO PREPROCESSED DATA raw_data_path = '/home/lab/nnUNet_data/nnUNet_raw_data_base/nnUNet_raw_data/Task500_BrainMets' pixdim_ind = [1,2,3] # Indexes at which the voxel size [x,y,z] is stored # PATH TO JSON FILE with open('/h...
36.860465
162
0.683281
231
1,585
4.47619
0.38961
0.069633
0.046422
0.032882
0.237911
0.237911
0.199226
0.199226
0.199226
0.199226
0
0.018462
0.179811
1,585
42
163
37.738095
0.776923
0.147003
0
0.095238
0
0.047619
0.271439
0.161074
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
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
bc6e2a6ace5b77db9c88569ae6f6456c11dc1f48
21,122
py
Python
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
1
2021-01-01T18:06:50.000Z
2021-01-01T18:06:50.000Z
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
null
null
null
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
1
2021-01-01T18:06:52.000Z
2021-01-01T18:06:52.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # author: Avinash Kori # contact: koriavinash1@gmail.com import torch import SimpleITK as sitk import numpy as np import nibabel as nib from torch.autograd import Variable from skimage.transform import resize from torchvision import transforms from time import gmtime, ...
46.937778
168
0.548717
2,598
21,122
4.250577
0.142802
0.005977
0.012678
0.027891
0.540705
0.45676
0.386489
0.357149
0.315856
0.307435
0
0.035783
0.28288
21,122
449
169
47.042316
0.693273
0.163431
0
0.220532
0
0
0.056598
0.035352
0
0
0
0
0
1
0.030418
false
0
0.064639
0
0.125475
0.019011
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
bc71cbe7f13c2f51663de7c1b18572924543ac36
26,868
py
Python
bkt/library/powerpoint/elements.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
12
2019-05-31T02:57:26.000Z
2022-03-26T09:40:50.000Z
bkt/library/powerpoint/elements.py
mrflory/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
27
2021-11-27T16:33:19.000Z
2022-03-27T17:47:26.000Z
bkt/library/powerpoint/elements.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
3
2019-06-12T10:59:20.000Z
2020-04-21T15:13:50.000Z
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import from collections import deque import bkt from bkt import dotnet Drawing = dotnet.import_drawing() from . import helpers as pplib class TextframeSpinnerBox(bkt.ribbon.RoundingSpinnerBox): ### Inst...
42.512658
242
0.628703
3,124
26,868
5.21735
0.151729
0.024971
0.01767
0.010307
0.390269
0.314068
0.259341
0.226885
0.188662
0.152095
0
0.016738
0.275086
26,868
631
243
42.580032
0.820096
0.156469
0
0.291765
0
0.002353
0.078865
0.016415
0
0
0
0
0
1
0.117647
false
0.004706
0.016471
0.021176
0.272941
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
bc74af5f799cda766e2f5e64ed34c0e410d241a2
1,402
py
Python
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
# from .noise_gen import CGMNoiseGenerator from .noise_gen import CGMNoise import pandas as pd import logging logger = logging.getLogger(__name__) class CGMSensor(object): def __init__(self, params, seed=None): self._params = params self.name = params.Name self.sample_time = params.sample...
26.961538
72
0.624108
174
1,402
4.741379
0.344828
0.067879
0.053333
0.043636
0.135758
0.09697
0.09697
0
0
0
0
0.002947
0.273894
1,402
51
73
27.490196
0.807466
0.039943
0
0.052632
0
0
0.028295
0
0
0
0
0
0
1
0.157895
false
0.026316
0.078947
0.026316
0.368421
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
bc796051d35cf6cd654ce6528d4ed35ac535ec1b
1,523
py
Python
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=290 lang=python3 # # [290] Word Pattern # # https://leetcode.com/problems/word-pattern/description/ # # algorithms # Easy (35.86%) # Likes: 825 # Dislikes: 113 # Total Accepted: 164K # Total Submissions: 455.9K # Testcase Example: '"abba"\n"dog cat cat dog"' # # Given a pattern and a stri...
22.397059
74
0.61392
214
1,523
4.369159
0.490654
0.025668
0.038503
0.038503
0.115508
0.091979
0.059893
0
0
0
0
0.027385
0.25673
1,523
67
75
22.731343
0.798587
0.610637
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
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
bc79d0b1cabca396208cd2aeb132525a435758f4
705
py
Python
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
from torch import nn class MyAwesomeModel(nn.Module): def __init__(self): super().__init__() self.cnn = nn.Sequential(nn.Conv2d(in_channels=1, out_channels=5, kernel_size=3), nn.ReLU(), nn.Conv2d(in_channels=5, out_channels=3, kernel...
32.045455
97
0.438298
78
705
3.782051
0.474359
0.054237
0.094915
0.122034
0
0
0
0
0
0
0
0.058824
0.44539
705
21
98
33.571429
0.695652
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
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
bc7b31007719919e0de3183e896e2da210eb63a7
1,706
py
Python
manage.py
isijara/zulip
403f4dafcc71369f3b1143b9f7073cd5d76bf357
[ "Apache-2.0" ]
1
2019-04-14T20:31:55.000Z
2019-04-14T20:31:55.000Z
manage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
7
2020-09-06T14:54:30.000Z
2022-02-10T18:51:14.000Z
manage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
#!/usr/bin/env python3 import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import scripts.lib.setup_path_on_import if __name__ == "__main__": if 'posix' in os.name and os.geteuid() == 0: print("manage.py should not be run as root. Use `su zulip` to drop ro...
42.65
102
0.694607
258
1,706
4.457364
0.414729
0.030435
0.045217
0.027826
0.066957
0
0
0
0
0
0
0.004392
0.199297
1,706
39
103
43.74359
0.837482
0.213365
0
0.111111
0
0
0.235955
0.071161
0
0
0
0
0
1
0
false
0
0.259259
0
0.259259
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
bc7b521791f08dc13fece1c31003d055797c5819
2,385
py
Python
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
import json, requests from bs4 import BeautifulSoup def fetch(): r = requests.get('http://clrhome.org/table/') if not r.ok: print('Cannot fetch {})'.format(r.url)) return None # remove newlines text = r.text.replace('\n', '') # Return the data as a BeautifulSoup object for easy querying return ...
24.84375
107
0.607547
326
2,385
4.374233
0.47546
0.035063
0.031557
0
0
0
0
0
0
0
0
0.009214
0.226415
2,385
95
108
25.105263
0.763686
0.126625
0
0
0
0
0.11042
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0.035714
0.267857
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc7fdbab2e2a6960b77a8cd250963e5c2c2a372b
5,046
py
Python
tools/testutils.py
sktollman/p4c
380830f6c26135d1d65e1312e3ba2da628c18145
[ "Apache-2.0" ]
1
2019-01-01T21:46:03.000Z
2019-01-01T21:46:03.000Z
tools/testutils.py
cslev/p4c
008f01ebc4bc0fcada4e674e9916b156427512ca
[ "Apache-2.0" ]
null
null
null
tools/testutils.py
cslev/p4c
008f01ebc4bc0fcada4e674e9916b156427512ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013-present Barefoot Networks, Inc. # Copyright 2018 VMware, 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/LIC...
33.865772
78
0.630202
649
5,046
4.838213
0.349769
0.025796
0.040764
0.056051
0.188535
0.126115
0.052229
0.052229
0
0
0
0.00819
0.249901
5,046
148
79
34.094595
0.8214
0.282798
0
0.096774
0
0
0.098664
0
0
0
0
0
0
1
0.11828
false
0
0.064516
0
0.301075
0.053763
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
bc8027a9a53c2f0f832850a598757b1b43c5255c
6,237
py
Python
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
null
null
null
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
null
null
null
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
1
2021-09-15T18:39:33.000Z
2021-09-15T18:39:33.000Z
class Heap: def __init__(self): self.items = dict() # key - (value, index) self.indexes = [] # index - key // to know indexes # Usefull functions def swap(self, i, j): x = self.indexes[i] # key of 1 item y = self.indexes[j] # key of 2 item # swa...
25.048193
99
0.467372
739
6,237
3.935047
0.136671
0.139959
0.0674
0.033012
0.246561
0.174003
0.120358
0.120358
0.045048
0.031637
0
0.023268
0.400513
6,237
248
100
25.149194
0.75448
0.054834
0
0.308989
0
0
0.009866
0
0
0
0
0
0
1
0.106742
false
0
0
0.016854
0.179775
0.067416
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
bc807e3864743112b7b85584b7afbab826c8463a
2,332
py
Python
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
1
2021-01-27T03:20:45.000Z
2021-01-27T03:20:45.000Z
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
1
2020-03-24T21:28:31.000Z
2020-03-24T21:28:31.000Z
from __future__ import unicode_literals try: from unittest.mock import patch except ImportError: from mock import patch from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.urls import reverse from rest_framework.t...
37.612903
77
0.677959
289
2,332
5.304498
0.387543
0.045662
0.044357
0.041096
0.264188
0.200913
0.200913
0.151337
0.151337
0.151337
0
0.008677
0.209262
2,332
61
78
38.229508
0.822668
0.027444
0
0.166667
0
0
0.127096
0.025596
0
0
0
0
0.125
1
0.083333
false
0
0.25
0
0.375
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
bc8126cdbc2e20b53b03bc4d747c2a82d0fde975
892
py
Python
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def rearrangeString(self, str, k): """ :type str: str :type k: int :rtype: str """ ## greedy: count keeps the # of chars, valid keeps the leftmost valid index of a char. res=[] # count # of chars d=coll...
29.733333
101
0.465247
122
892
3.401639
0.467213
0.014458
0.120482
0
0
0
0
0
0
0
0
0.005906
0.430493
892
30
102
29.733333
0.811024
0.293722
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
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
bc82ef8de803f7a119ffe50ddde0e017fafeacd2
16,041
py
Python
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
''' @file momentum_kinematics_optimizer.py @package momentumopt @author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de) @license License BSD-3-Clause @copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft. @date 2019-10-08 ''' import os import numpy as np from momentumopt.kinoptpy.qp import...
41.342784
130
0.625335
2,246
16,041
4.227961
0.138023
0.022115
0.037911
0.035383
0.326453
0.251158
0.214511
0.16944
0.126474
0.093934
0
0.015315
0.259148
16,041
387
131
41.449612
0.783743
0.128857
0
0.083969
0
0
0.025344
0
0
0
0
0.002584
0
1
0.083969
false
0
0.041985
0.019084
0.179389
0.01145
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
bc84db3b22d112c3d8e47827ed44b0cdb57ad39d
1,482
py
Python
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
import json import urllib import os import jupyterhub from tornado.httpclient import HTTPRequest, AsyncHTTPClient from traitlets import Unicode from jupyterhub.auth import Authenticator from tornado import gen class HttpAuthenticator(Authenticator): server = Unicode( None, allow_none=True, ...
23.52381
68
0.524966
133
1,482
5.81203
0.548872
0.028461
0.041397
0.051746
0.098318
0.098318
0.098318
0.098318
0
0
0
0.004353
0.379892
1,482
62
69
23.903226
0.836779
0
0
0.2
0
0
0.14527
0
0
0
0
0
0
1
0.02
false
0.02
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc85621d3dca3de545ceeff3a1f12920ad9784b4
9,912
py
Python
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
12
2019-03-30T16:43:53.000Z
2022-03-21T19:49:12.000Z
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
null
null
null
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np import matplotlib.pyplot as plt # NOT -> ParameterModule # NOT -> children_and_parameters # NOT -> flatten_model # NOT -> lr_range # NOT -> scheduling functions # NOT -> SmoothenValue # YES -> lr_find # NOT -> plot_lr_find # NOT TO BE MODIFIED class ParameterModu...
36.307692
115
0.601392
1,417
9,912
4.085392
0.223006
0.008983
0.024875
0.020729
0.096217
0.056486
0.045776
0.045776
0.045776
0.024011
0
0.010001
0.273709
9,912
272
116
36.441176
0.794138
0.338882
0
0.078947
0
0.019737
0.111464
0
0
0
0
0
0
1
0.105263
false
0
0.026316
0.013158
0.243421
0.026316
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
bc85ba5181e5203592287503621708b994737b25
3,905
py
Python
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
Polidea/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
427
2018-05-29T14:21:02.000Z
2022-03-16T03:17:54.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
25
2018-07-23T08:34:15.000Z
2021-11-05T07:13:36.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
52
2018-07-19T19:57:32.000Z
2022-03-11T16:05:38.000Z
""" Test the lldb disassemble command on each call frame when stopped on C's ctor. """ from __future__ import print_function import os import time import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class IterateFrameAndDisassembleTestCase(T...
38.663366
92
0.56338
447
3,905
4.834452
0.402685
0.016659
0.007404
0.0236
0.108283
0.108283
0.108283
0.085146
0.072189
0.072189
0
0.003125
0.34443
3,905
100
93
39.05
0.841016
0.283483
0
0.101695
0
0
0.185709
0
0
0
0
0
0.016949
1
0.067797
false
0
0.118644
0
0.220339
0.067797
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
bc87838b315ca1f64fa986f62a70ee610e20d306
1,116
py
Python
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
1
2021-04-25T22:53:36.000Z
2021-04-25T22:53:36.000Z
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
null
null
null
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
null
null
null
''' All the reserved, individual words used in MAlice. ''' A = "a" ALICE = "Alice" AND = "and" ATE = "ate" BECAME = "became" BECAUSE = "because" BUT = "but" CLOSED = "closed" COMMA = "," CONTAINED = "contained" DOT = "." DRANK = "drank" EITHER = "either" ENOUGH = "enough" EVENTUALLY = "eventually" FOUND = "found" H...
21.056604
338
0.638889
144
1,116
4.930556
0.381944
0.050704
0.056338
0.059155
0
0
0
0
0
0
0
0
0.181004
1,116
52
339
21.461538
0.776805
0.044803
0
0
0
0
0.194497
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
bc88724609a6f077241f73613153365855b09321
853
py
Python
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # Author: C.K # Email: theck17@163.com # DateTime:2021-04-12 18:35:15 # Description: import os import sys class Solution: def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]: res, i = [], 0 for interval in intervals: ...
24.371429
80
0.534584
93
853
4.817204
0.516129
0.046875
0.133929
0.09375
0.142857
0
0
0
0
0
0
0.058929
0.343494
853
34
81
25.088235
0.741071
0.114889
0
0.095238
0
0
0.010681
0
0
0
0
0
0
1
0.047619
false
0.047619
0.095238
0
0.238095
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
bc89b98301ba0f533627b829ae7b31f9ab29c245
756
py
Python
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
from ..utils import SyncClient, __version__ from .bucket import SyncStorageBucketAPI from .file_api import SyncBucketProxy __all__ = [ "SyncStorageClient", ] class SyncStorageClient(SyncStorageBucketAPI): """Manage storage buckets and files.""" def __init__(self, url: str, headers: dict[str, str]) -> No...
26.068966
78
0.613757
75
756
5.88
0.6
0.031746
0
0
0
0
0
0
0
0
0
0.001805
0.267196
756
28
79
27
0.794224
0.170635
0
0
0
0
0.107826
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc8a0406013c9abeb99153a42725a7e4225fc35e
1,755
py
Python
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
# The MIT License # # Copyright 2014, 2015 Piotr Dabkowski # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the 'Software'), # to deal in the Software without restriction, including without limitation the rights # to use, copy, modif...
45
127
0.764672
251
1,755
5.239044
0.513944
0.06692
0.019772
0.045627
0.103422
0.054753
0
0
0
0
0
0.007539
0.168661
1,755
38
128
46.184211
0.893763
0.709402
0
0
0
0
0.25
0.044118
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc8adf2af330cf7308b0b0e25463ed5a44b45099
1,484
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.333333
76
0.6031
175
1,484
4.942857
0.542857
0.055491
0.030058
0
0
0
0
0
0
0
0
0.000835
0.193396
1,484
41
77
36.195122
0.721805
0.570081
0
0
0
0
0.157627
0
0
0
0
0
0
1
0.066667
false
0
0.066667
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
bc8c55932d28aa8c9253fefe76b11ab1d6dbc13a
1,886
py
Python
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
import torch def expanded_pairwise_distances(x, y): ''' Input: x is a bxNxd matrix y is an optional bxMxd matirx Output: dist is a bxNxM matrix where dist[i,j] is the square norm between x[i,:] and y[j,:] if y is not given then use 'y=x'. i.e. dist[i,j] = ||x[i,:]-y[j,:]||^2 ...
27.735294
104
0.507423
262
1,886
3.572519
0.354962
0.023504
0.022436
0.025641
0.094017
0.036325
0.034188
0.034188
0.034188
0.034188
0
0.040945
0.326617
1,886
67
105
28.149254
0.696063
0.306999
0
0.357143
0
0
0.047162
0
0
0
0
0
0
1
0.071429
false
0
0.02381
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc8efe8d75934b61443e05664bf142fdc9790c04
6,351
py
Python
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
#!/usr/bin/env python3 # coding: utf8 # /*########################################################################## # # Copyright (c) 2015-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files ...
34.895604
101
0.668714
839
6,351
4.934446
0.33969
0.037198
0.021739
0.02029
0.111111
0.101449
0.05314
0.016425
0
0
0
0.00694
0.205952
6,351
181
102
35.088398
0.814
0.324673
0
0.12
0
0
0.14254
0
0
0
0
0
0
1
0.05
false
0
0.17
0
0.31
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
bc8faa6c50d7d1921cb25f63e39e57127594a8e6
7,072
py
Python
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-10T11:10:20.000Z
2018-03-10T11:10:20.000Z
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
34.330097
78
0.662472
875
7,072
5.105143
0.248
0.023506
0.048355
0.022386
0.140587
0.105664
0.055742
0.044101
0.044101
0
0
0.003795
0.254808
7,072
205
79
34.497561
0.843833
0.184248
0
0.142857
0
0
0.045757
0.003682
0
0
0
0
0.007143
1
0.164286
false
0
0.064286
0.021429
0.478571
0.007143
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
bc936c9856eecc335b0cca94f1df34512def1882
754
py
Python
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math extraNumber = 4 * math.pi * pow(10,-7) def avgEMF(): turns = input("Input how many turns: ") radius = input("Input the radius (cm):") resistance = input("Input resistance (Ω): ") magField0 = input("Input the first magnetic Field value (T): ") magField1 = in...
29
69
0.624668
92
754
5.119565
0.413043
0.127389
0.110403
0.080679
0
0
0
0
0
0
0
0.028219
0.248011
754
25
70
30.16
0.802469
0
0
0
0
0
0.234568
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc93ed322f15833ada38ade26d0df82b04900ca0
1,908
py
Python
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Computes the spectrogram of a test signal using cupy and cuFFT. Author: Jan Schlüter """ import sys import os import timeit import numpy as np import cupy as cp INPUT_ON_GPU = True OUTPUT_ON_GPU = True from testfile import make_test_signal def spectrogram(signal...
26.5
92
0.649371
279
1,908
4.290323
0.480287
0.02924
0.033417
0
0
0
0
0
0
0
0
0.027624
0.24109
1,908
72
93
26.5
0.799033
0.354822
0
0
0
0
0.057143
0
0
0
0
0
0
1
0.055556
false
0
0.194444
0
0.277778
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc96fd29e9d6cb6eb71dd73f5f39dcfd2bcd44f8
11,604
py
Python
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
1
2021-08-02T02:42:58.000Z
2021-08-02T02:42:58.000Z
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
null
null
null
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
1
2021-08-05T08:58:53.000Z
2021-08-05T08:58:53.000Z
""" To avoid any issues of memory hanging around between inputs, we run each input as a separate process. A little ugly but effective """ import gc import glob import json import os import random import time import numpy as np import torch from common import invoke_main, read_json, write_json, prepare_out_file, chec...
35.057402
170
0.635384
1,549
11,604
4.479019
0.199484
0.062554
0.019458
0.016143
0.242721
0.196887
0.122081
0.09729
0.088931
0.082445
0
0.006542
0.262323
11,604
330
171
35.163636
0.803972
0.134781
0
0.115044
0
0
0.114507
0.003921
0
0
0
0
0.013274
1
0.026549
false
0
0.057522
0
0.106195
0.022124
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
bc986ff7e618db67d5b1902a0fdfeecd1595ea88
1,482
py
Python
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
5
2020-01-21T21:11:49.000Z
2022-02-06T19:55:28.000Z
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
null
null
null
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
3
2018-05-25T14:57:36.000Z
2022-01-27T12:53:41.000Z
import sys, os from subprocess import call try: from downloadPdb import downloadPDB except ImportError: from .downloadPdb import downloadPDB pdbListFile="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/117_dimers_list.tsv" outPath="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/pdbFiles/rawPDBs" USE_BIO_...
36.146341
129
0.702429
209
1,482
4.913876
0.430622
0.035054
0.032132
0.040896
0.318403
0.318403
0.232717
0.232717
0.16261
0.16261
0
0.013333
0.139676
1,482
40
130
37.05
0.792157
0.421727
0
0
0
0
0.174489
0.164862
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.285714
0.095238
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
bc98a22d0cd11d65a7d45c78d01ce4ed45420116
1,935
py
Python
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
47
2015-01-20T15:38:41.000Z
2022-02-15T21:03:50.000Z
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
16
2015-06-09T16:12:50.000Z
2020-02-05T06:40:18.000Z
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
56
2015-01-20T15:38:44.000Z
2022-03-03T18:13:39.000Z
#!/usr/bin/env python import json import sys import xapian import support def search(dbpath, querystring, offset=0, pagesize=10): # offset - defines starting point within result set # pagesize - defines number of records to retrieve # Open the database we're going to search. db = xapian.Database(dbpa...
31.209677
69
0.649612
259
1,935
4.80695
0.474903
0.02249
0.009639
0
0
0
0
0
0
0
0
0.012048
0.227907
1,935
61
70
31.721311
0.821285
0.268217
0
0.057143
0
0
0.110079
0
0
0
0
0
0
1
0.028571
false
0
0.114286
0
0.142857
0.085714
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
bc98ed1d916dea38c19eaadce5f09692d5d10eeb
1,272
py
Python
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
83
2015-01-02T04:50:43.000Z
2021-06-06T03:26:55.000Z
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
2
2015-01-04T11:25:20.000Z
2015-01-05T11:13:37.000Z
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
20
2015-01-15T10:00:09.000Z
2019-11-06T07:25:59.000Z
import re from rest_framework import serializers from .models import Collection, CollectionIcon class CollectionSerializer(serializers.ModelSerializer): """Collections's serializer""" class Meta: model = Collection read_only = ('token', ) class CollectionIconSerializer(serializers.ModelSe...
27.06383
81
0.616352
140
1,272
5.55
0.421429
0.070785
0.119691
0.05148
0.06435
0
0
0
0
0
0
0.006494
0.273585
1,272
46
82
27.652174
0.834416
0.042453
0
0.125
0
0
0.113505
0
0
0
0
0
0
1
0.09375
false
0
0.09375
0
0.375
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
bc99e84c9e8d7aa99d673f47ef51acfd45692fba
1,738
py
Python
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
# Time: O(n*2^n) # Space: O(2^n) class Solution(object): def canPartitionKSubsets(self, nums, k): """ :type nums: List[int] :type k: int :rtype: bool """ def dfs(nums, target, used, todo, lookup): if lookup[used] is None: targ = (todo-1)%...
30.491228
87
0.468354
217
1,738
3.709677
0.253456
0.111801
0.064596
0.055901
0.442236
0.42236
0.278261
0.213665
0.213665
0.213665
0
0.014423
0.401611
1,738
56
88
31.035714
0.759615
0.10817
0
0.257143
0
0
0
0
0
0
0
0
0
1
0.114286
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc9b38aa93978a9c5a2ff6d24ac4f1e6be8b4faa
1,888
py
Python
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# # Copyright (C) 2001 greg Landrum # """ unit testing code for compound descriptors """ from __future__ import print_function import unittest import Parser from rdkit.six.moves import xrange class TestCase(unittest.TestCase): def setUp(self): print('\n%s: '%self.shortDescription(),end='') self.piec...
35.622642
101
0.64036
248
1,888
4.822581
0.358871
0.055184
0.050167
0.032609
0.334448
0.254181
0.254181
0.254181
0.188963
0.120401
0
0.040921
0.17161
1,888
52
102
36.307692
0.723785
0.175318
0
0.157895
0
0
0.137171
0
0
0
0
0
0.078947
1
0.105263
false
0
0.105263
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc9c8f24e080e4c64950de33e4962b6b2e44ede2
1,575
py
Python
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
8
2021-05-03T04:06:15.000Z
2022-01-15T16:27:42.000Z
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
null
null
null
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
3
2021-05-19T17:31:18.000Z
2021-06-19T12:24:01.000Z
from setuptools import setup, find_packages import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / "readme.md").read_text(encoding="utf-8") setup( name="data_dashboard", version="0.1.1", description="Dashboard to explore the data and to create baseline Machine Learning m...
32.142857
95
0.615238
177
1,575
5.333333
0.564972
0.082627
0.040254
0.063559
0.07839
0.07839
0
0
0
0
0
0.04401
0.220952
1,575
48
96
32.8125
0.725346
0
0
0.044444
0
0
0.499683
0.056508
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
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
bc9d746d95215d78b546409456d7b42ad25142a0
5,577
py
Python
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
33.8
95
0.684777
701
5,577
5.195435
0.31669
0.034596
0.039539
0.042834
0.183141
0.127403
0.085667
0.049973
0.049973
0.028556
0
0.01333
0.23328
5,577
165
96
33.8
0.8384
0.178591
0
0.104348
0
0
0.09688
0
0
0
0
0
0.052174
1
0.052174
false
0.008696
0.078261
0
0.165217
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
bc9fd661a260bba8109c66590275e9d7c9b1094c
2,774
py
Python
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
#coding: utf-8 import sys import os import asyncio import websockets import json import socket import xlrd #global vars phd_data = None pro_data = None def get_host_ip(): try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(('1.255.255.255', 65535)) ip = s.getsockname()[0] ...
20.248175
60
0.519466
338
2,774
4.130178
0.37574
0.04298
0.031519
0.04298
0.190544
0.123209
0.044413
0.044413
0
0
0
0.019882
0.329128
2,774
136
61
20.397059
0.730253
0.010815
0
0.189655
0
0
0.131704
0
0
0
0
0
0
1
0.025862
false
0
0.060345
0
0.112069
0.008621
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
bca0727b76dc54909be0bf60b6d636ec8f539927
2,518
py
Python
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
11,811
2015-01-01T02:40:39.000Z
2022-03-31T16:11:19.000Z
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
2,364
2015-01-01T00:29:19.000Z
2022-03-31T21:26:34.000Z
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
3,240
2015-01-05T02:34:15.000Z
2022-03-30T18:26:29.000Z
# # Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. # Use of this file is governed by the BSD 3-clause license that # can be found in the LICENSE.txt file in the project root. #/ # A DFA walker that knows how to dump them to serialized strings.#/ from io import StringIO from antlr4 import DFA from antl...
34.027027
113
0.548451
293
2,518
4.638225
0.327645
0.03532
0.033113
0.02649
0.0883
0.029433
0.029433
0
0
0
0
0.013464
0.351072
2,518
73
114
34.493151
0.818237
0.098888
0
0.140351
0
0
0.019903
0
0
0
0.004423
0
0
1
0.105263
false
0
0.070175
0.017544
0.421053
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
bca253db9d9aae8a5131355cc2fd801c42bb88f2
13,242
py
Python
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
13
2020-09-17T19:54:30.000Z
2022-03-01T00:25:11.000Z
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
27
2020-09-21T23:51:50.000Z
2022-03-25T19:45:16.000Z
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
13
2020-11-30T19:01:38.000Z
2021-11-10T11:28:36.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Calibration Controller Performs calibration for hue, center of camera position, and servo offsets """ import os import cv2 import time import json import argparse import datetime import numpy as np import logging as log from env import Moa...
32.696296
105
0.655264
1,817
13,242
4.567969
0.201981
0.005542
0.004699
0.003855
0.370361
0.325422
0.266145
0.203976
0.203976
0.194337
0
0.018233
0.246186
13,242
404
106
32.777228
0.813264
0.175276
0
0.283088
0
0.011029
0.118899
0.02855
0
0
0
0.002475
0
1
0.0625
false
0
0.055147
0.018382
0.242647
0.018382
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
bca450dae1b4675ac1d585a61880a16b6a3d235e
3,739
py
Python
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-03-01T12:07:10.000Z
2021-03-01T12:07:10.000Z
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
null
null
null
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-12-09T09:38:50.000Z
2021-12-09T09:38:50.000Z
from datetime import datetime, timedelta from django.test import TestCase from django.test.utils import override_settings from marketing.tasks import ( delete_multiple_contacts_tasks, list_all_bounces_unsubscribes, run_all_campaigns, run_campaign, send_campaign_email_to_admin_contact, send_sch...
29.912
58
0.502006
331
3,739
5.425982
0.241692
0.073497
0.080178
0.115813
0.630846
0.589087
0.537305
0.455457
0.400891
0.373051
0
0.00477
0.383258
3,739
124
59
30.153226
0.774068
0
0
0.390909
0
0
0.1931
0
0
0
0
0
0.072727
1
0.009091
false
0
0.045455
0
0.063636
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
bca568d5e71e781c0b945807208117a83879f72f
263
py
Python
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
from py2html.main import * page = web() page.create() # Header Parameters # text = header text # n = title level page.header(text='My Site', n=1) # Label Parameters # text = label text # color = label color page.label(text='', color='') page.compile()
16.4375
32
0.657795
37
263
4.675676
0.513514
0.16185
0.16185
0
0
0
0
0
0
0
0
0.009434
0.193916
263
16
33
16.4375
0.806604
0.437262
0
0
0
0
0.049296
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bca56f1f07a7efd89750413292d60e6212055e4a
1,022
py
Python
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
1
2020-07-22T11:05:03.000Z
2020-07-22T11:05:03.000Z
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
2
2019-06-07T11:53:48.000Z
2019-06-24T08:20:25.000Z
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
3
2019-07-01T12:38:06.000Z
2022-02-01T21:38:12.000Z
import unittest from JorGpi.pickup.pickup import SmartPickUp,Reference,CommandLineOptions class TestPickupIron(unittest.TestCase): @staticmethod def options(*args): return CommandLineOptions(*args) def test_iron_001(self): _input = "test -R _VASP/Fe/noFlip -D _VASP/Fe/flip00000 -E Fe -J1 ...
37.851852
92
0.682975
112
1,022
6.089286
0.473214
0.131965
0.064516
0.079179
0
0
0
0
0
0
0
0.054632
0.176125
1,022
26
93
39.307692
0.755344
0
0
0
0
0.05
0.163405
0.043053
0
0
0
0
0.3
1
0.1
false
0
0.1
0.05
0.3
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
bca98a1ce3fff11966f586aae11d75f7d4194f73
859
py
Python
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Adrien Guinet <adrien@guinet.me> # # 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 o...
26.030303
74
0.726426
133
859
4.684211
0.669173
0.096308
0.041734
0.051364
0
0
0
0
0
0
0
0.01683
0.169965
859
32
75
26.84375
0.856943
0.689173
0
0
0
0
0.334661
0
0
0
0
0
0.153846
1
0
false
0
0.153846
0
0.153846
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
bcaa742ec3f2633707689915b345db35e3f84a87
25,875
py
Python
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
null
null
null
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
22
2022-03-08T19:30:45.000Z
2022-03-28T21:14:15.000Z
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
null
null
null
import logging import os from decimal import Decimal from time import sleep import requests from hexbytes import HexBytes from web3 import Web3 from web3 import contract from web3.contract import Contract from config.constants import BASE_CURRENCIES from config.constants import GAS_LIMITS from config.constants import...
37.939883
100
0.602705
2,938
25,875
5.048673
0.105174
0.017798
0.023596
0.025281
0.627857
0.565159
0.517697
0.473943
0.43828
0.374907
0
0.005763
0.315981
25,875
681
101
37.995595
0.832307
0.143498
0
0.46
0
0
0.088887
0.005272
0
0
0
0.001468
0
1
0.054
false
0
0.052
0.01
0.15
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
bcaab7186ea62c16403a777679f43c5651b2eeea
1,170
py
Python
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # License: Apache-2.0 # Copyright (C) 2020 Mikhail f. Shiryaev class Column(object): """ Represents ClickHouse column """ def __init__( self, database: str, table: str, name: str, type: str, default_kind: str, default_expr...
25.434783
56
0.622222
145
1,170
4.648276
0.310345
0.071217
0.047478
0.071217
0
0
0
0
0
0
0
0.00729
0.296581
1,170
45
57
26
0.811665
0.092308
0
0
0
0
0.004789
0
0
0
0
0
0
1
0.090909
false
0
0
0.060606
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
bcab6a237bb88828d13a4bacbf608684ac108e0d
468
py
Python
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
def solve(n, red , blue): rcount = bcount = 0 for i in range(n): if int(red[i]) > int(blue[i]): rcount = rcount +1 elif int(red[i]) < int(blue[i]): bcount = bcount + 1 print( 'RED' if rcount>bcount else ('BLUE' if bcount>rcount else 'EQUAL')) if __name__ == "__ma...
24.631579
79
0.5
67
468
3.373134
0.343284
0.053097
0.079646
0.115044
0.132743
0.132743
0
0
0
0
0
0.00974
0.34188
468
19
80
24.631579
0.724026
0
0
0
0
0
0.042918
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcac6e3cd42df76570409abe5d700496d0e0e054
1,688
py
Python
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
4
2019-05-15T13:09:23.000Z
2021-03-28T09:10:11.000Z
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
14
2019-04-23T15:05:07.000Z
2019-08-14T13:21:07.000Z
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
1
2019-09-30T22:55:53.000Z
2019-09-30T22:55:53.000Z
import autograd.numpy as np from pyCHAMP.wavefunction.wf_base import WF from pyCHAMP.optimizer.minimize import Minimize from pyCHAMP.sampler.metropolis import Metropolis from pyCHAMP.sampler.hamiltonian import Hamiltonian from pyCHAMP.solver.vmc import VMC class Hydrogen(WF): def __init__(self, nelec, ndim): ...
26.375
71
0.603081
227
1,688
4.361233
0.39207
0.055556
0.027273
0.033333
0.117172
0.117172
0.117172
0.117172
0.082828
0.082828
0
0.040883
0.275474
1,688
63
72
26.793651
0.768602
0.109597
0
0.054054
0
0
0.027529
0
0
0
0
0
0
1
0.108108
false
0
0.162162
0.027027
0.378378
0.054054
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
bcac914db6f36c54dadd0991d6bb9fbf2492dbe9
585
py
Python
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
182
2015-01-09T05:26:46.000Z
2022-03-16T14:10:06.000Z
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
95
2015-02-24T23:29:56.000Z
2022-03-13T03:27:58.000Z
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
93
2015-02-19T17:59:06.000Z
2022-03-19T17:01:25.000Z
from braintree.configuration import Configuration from braintree.resource import Resource class AccountUpdaterDailyReport(Resource): def __init__(self, gateway, attributes): Resource.__init__(self, gateway, attributes) if "report_url" in attributes: self.report_url = attributes.pop("re...
36.5625
75
0.71453
63
585
6.222222
0.365079
0.091837
0.076531
0.127551
0
0
0
0
0
0
0
0
0.196581
585
15
76
39
0.834043
0
0
0
0
0
0.107692
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
bcaf2fd4c9457e78084e56f1b1fab3aa1985e417
394
py
Python
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
frase = input('Digite uma frase: ').upper().strip().replace(' ', '') tamanho = int(len(frase)) inverso = '' #Opção mais simples: # inverso = frase[::-1] for contador in range(tamanho-1, -1, -1): inverso += frase[contador] print('O inverso de {} é {}'.format(frase, inverso)) if frase == inverso: print('Temos...
24.625
68
0.639594
54
394
4.666667
0.592593
0.142857
0
0
0
0
0
0
0
0
0
0.012232
0.170051
394
16
69
24.625
0.75841
0.104061
0
0
0
0
0.272727
0
0
0
0
0
0
1
0
false
0
0
0
0
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
bcaf71bd0c6cd2298c1b67ea7ef95ddacb0851be
16,589
py
Python
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
import atexit import os import sys import platform import json import glob import datetime import time import threading import tkinter as tk from pynput import mouse from pathlib import Path from playsound import playsound from enum import Enum import copy #"THE BEER-WARE LICENSE" (Revision 42): #bleach86 wrote this ...
24.833832
119
0.578335
2,005
16,589
4.6
0.171571
0.012144
0.01171
0.020492
0.218909
0.133579
0.093028
0.08674
0.08674
0.08674
0
0.031005
0.300078
16,589
668
120
24.833832
0.763328
0.151727
0
0.366743
0
0
0.080072
0.00434
0
0
0
0
0
1
0.079727
false
0.002278
0.034169
0
0.150342
0.009112
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
bcb1c97f3222308944fcb2351152a564408ff396
7,357
py
Python
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
import cv2 from trackers.tracker import create_blob, add_new_blobs, remove_duplicates import numpy as np from collections import OrderedDict from detectors.detector import get_bounding_boxes import uuid import os import contextlib from datetime import datetime import argparse from utils.detection_roi import get_roi_fra...
40.646409
125
0.644964
1,007
7,357
4.54717
0.270109
0.017034
0.040839
0.016598
0.116401
0.076436
0.062022
0.017471
0.017471
0
0
0.018939
0.246432
7,357
181
126
40.646409
0.806999
0.085905
0
0.137405
0
0.007634
0.079517
0
0
0
0.001194
0
0
1
0
false
0.015267
0.091603
0
0.091603
0.030534
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
bcb26248e648d4d9b19d0a9ff813f2b53c5baabf
2,615
py
Python
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
36.830986
79
0.702868
364
2,615
4.925824
0.362637
0.040156
0.029002
0.026771
0.281093
0.258226
0.258226
0.258226
0.189626
0.189626
0
0.006364
0.1587
2,615
70
80
37.357143
0.808636
0.338815
0
0.238095
0
0
0.106195
0
0
0
0
0
0.309524
1
0.047619
false
0
0.190476
0
0.238095
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
bcb2a48f3534ac05974fe4c223430ebf965fdf0b
881
py
Python
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np from PIL import Image def frame2video(im_dir, video_dir, fps): im_list = os.listdir(im_dir) im_list.sort(key=lambda x: int(x.replace("_RBPNF7", "").split('.')[0])) img = Image.open(os.path.join(im_dir, im_list[0])) img_size = img.size # 获得图片分辨率,im_dir文件夹下的图片分辨率...
33.884615
82
0.682179
132
881
4.325758
0.477273
0.052539
0.056042
0.073555
0.28021
0.227671
0.1331
0
0
0
0
0.019499
0.185017
881
25
83
35.24
0.775766
0.053348
0
0
0
0
0.148372
0.056695
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
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
bcb332026597a8538e3390f5b54de4be3aa00f42
11,103
py
Python
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
1
2020-12-17T03:09:20.000Z
2020-12-17T03:09:20.000Z
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
null
null
null
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 14 17:38:48 2020 @author: luke """ import sys from functools import partial import torch import torch.nn as nn import prettytable as pt from .basic_hook import MODULES_MAPPING def get_model_compute_info(model, input_res, ...
35.359873
107
0.631721
1,358
11,103
4.764359
0.172312
0.033385
0.022102
0.02272
0.359351
0.278825
0.213138
0.181607
0.132767
0.111283
0
0.009632
0.280014
11,103
313
108
35.472843
0.799725
0.086103
0
0.181818
0
0
0.057023
0.004785
0
0
0
0
0.018182
1
0.104545
false
0.004545
0.027273
0
0.236364
0.040909
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
bcb33dd64b91d776f626dc908c114e472e82874d
2,301
py
Python
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
1
2020-06-18T17:51:13.000Z
2020-06-18T17:51:13.000Z
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
null
null
null
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from ..scraper import _ParserScraper from ..helpers import indirectStarter class Derideal(_ParserScraper): baseUrl = 'https://www.derideal.com/' imageSearch = '//img[contains(@class, "comic-page"...
40.368421
94
0.614081
257
2,301
5.44358
0.474708
0.057184
0.082202
0.025733
0.038599
0.031451
0
0
0
0
0
0.012878
0.223816
2,301
56
95
41.089286
0.770437
0.046936
0
0
0
0
0.276382
0.074463
0
0
0
0
0
1
0.088889
false
0
0.044444
0.022222
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
bcb3b617387a63312fcb662d0698c65cf437acee
3,340
py
Python
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
1
2022-01-14T18:03:42.000Z
2022-01-14T18:03:42.000Z
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
""" Function are subprograms which are used to compute a value or perform a task. Type of Functions:- Built in Functions: print(), upper() User define functions Advantage of Functions 1. Write once and use it as many time as you need. This provides code reusability 2. Function facilitates ease of code maint...
18.870056
106
0.645808
503
3,340
4.204771
0.326044
0.021277
0.005674
0.021277
0.115366
0.110638
0.101182
0.052009
0.052009
0
0
0.029786
0.246108
3,340
176
107
18.977273
0.810167
0.170359
0
0.173913
0
0
0.210858
0
0
0
0
0
0
1
0.115942
false
0
0.014493
0
0.188406
0.217391
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
bcb3deb24bc63c8049391df8c67ec2a72c8f437a
945
py
Python
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
9
2017-04-23T23:54:56.000Z
2021-12-26T02:21:28.000Z
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
null
null
null
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
3
2017-04-23T23:55:13.000Z
2017-05-03T01:20:23.000Z
# coding: utf-8 import click @click.command() @click.option('--carrier', prompt='Carrier ID', help='Example: "ect" for Correios') @click.option('--object-id', prompt='Object ID', help='Example: PN871429404BR') def main(carrier, object_id): from trackr import Trackr from trackr.exceptions import ...
25.540541
83
0.582011
111
945
4.792793
0.441441
0.090226
0.078947
0.107143
0.139098
0.101504
0
0
0
0
0
0.014749
0.28254
945
36
84
26.25
0.769912
0.013757
0
0.074074
0
0
0.193548
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcb3f4ba8d64955ba6c3c16193d7d7869a8725dd
3,043
py
Python
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
28
2020-11-24T08:02:58.000Z
2022-02-27T18:37:33.000Z
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
263
2020-11-10T14:35:10.000Z
2022-03-31T12:35:13.000Z
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
1
2022-01-31T22:48:35.000Z
2022-01-31T22:48:35.000Z
from enum import Enum, auto from subprocess import CalledProcessError, run from pitop.common.command_runner import run_command from pitop.common.logger import PTLogger class NotificationAction: def __init__(self, call_to_action_text, command_str) -> None: self.call_to_action_text = call_to_action_text ...
29.833333
92
0.621755
350
3,043
5.16
0.282857
0.066445
0.039867
0.053156
0.187154
0.087486
0.037652
0.037652
0
0
0
0.003126
0.264213
3,043
101
93
30.128713
0.803484
0.028262
0
0.052632
0
0
0.08291
0
0
0
0
0
0
1
0.078947
false
0
0.052632
0
0.223684
0.013158
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
bcb80d7d2c6e6e1e230619095dac5498b39b51c1
3,989
py
Python
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
null
null
null
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
null
null
null
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
2
2019-10-15T23:22:16.000Z
2019-10-29T04:38:02.000Z
import pygame from pygame.sprite import Sprite class Coins(Sprite): """Coins""" def __init__(self, hub, x, y, name='coin', state='floating'): super().__init__() # Values self.name = name self.hub = hub self.original_pos = [x, y] self.rest_height = y se...
34.387931
93
0.560792
494
3,989
4.402834
0.182186
0.074483
0.077241
0.069885
0.516782
0.44046
0.316782
0.211034
0.109885
0.109885
0
0.022303
0.314365
3,989
115
94
34.686957
0.772943
0.028077
0
0.174419
0
0
0.060669
0.030853
0
0
0
0
0
1
0.069767
false
0
0.023256
0
0.104651
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
bcbacb893f1fc24efc7e31b69bae2dad2d6081f7
293
py
Python
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
7
2022-01-13T09:54:39.000Z
2022-02-08T23:34:47.000Z
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
62
2021-12-14T10:24:13.000Z
2022-02-09T00:00:12.000Z
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
2
2022-01-20T10:41:51.000Z
2022-02-04T11:26:41.000Z
from pathlib import Path from nb_helpers.clean import clean_all, clean_one from tests import TEST_PATH TEST_PATH TEST_NB = Path("test_nb.py") def test_clean_one(): "clean just one nb" clean_one(TEST_NB) def test_clean_all(): "clean all test nbs" clean_all(path=TEST_PATH)
17.235294
49
0.744027
51
293
3.980392
0.294118
0.157635
0.128079
0
0
0
0
0
0
0
0
0
0.177474
293
16
50
18.3125
0.842324
0.122867
0
0
0
0
0.153584
0
0
0
0
0
0
1
0.181818
false
0
0.272727
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
bcbc7df90a025f59202f5950277107bf1a366441
5,746
py
Python
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
null
null
null
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
null
null
null
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
2
2021-04-03T16:39:23.000Z
2021-08-15T08:09:21.000Z
import streamlit as st def app(): import yfinance as yf import streamlit as st import datetime import matplotlib.pyplot as plt import talib import ta import numpy as np import matplotlib.ticker as mticker import pandas as pd import requests yf.pdr_override() st.wr...
34.202381
197
0.603376
779
5,746
4.392811
0.283697
0.035359
0.035067
0.0263
0.303331
0.249562
0.205435
0.156341
0.156341
0.124489
0
0.025095
0.223286
5,746
167
198
34.407186
0.741654
0.077793
0
0.107843
0
0.009804
0.239833
0
0
0
0
0
0
1
0.029412
false
0
0.107843
0
0.156863
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
bcbd7d0edc16eccd95b307b889e7f1a174b4d31c
4,642
py
Python
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from mock import patch from django.db import IntegrityError from sentry.mediators.sentry_apps import Creator from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, ApiApplication, IntegrationFeature, SentryApp, SentryAppComponent, User, ) from...
32.013793
98
0.640888
523
4,642
5.460803
0.210325
0.069328
0.063025
0.033613
0.428221
0.326681
0.27486
0.261204
0.261204
0.233543
0
0
0.246446
4,642
144
99
32.236111
0.816467
0
0
0.330435
0
0
0.091771
0.029513
0
0
0
0
0.13913
1
0.130435
false
0
0.052174
0
0.191304
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
bcbdf778d11c4a8378ce0f01967703c04ca3e0b9
17,869
py
Python
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
1
2019-10-21T08:25:46.000Z
2019-10-21T08:25:46.000Z
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
null
null
null
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
null
null
null
# This file was automatically created by FeynRules 2.3.32 # Mathematica version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) # Date: Sat 21 Apr 2018 20:48:39 from object_library import all_parameters, Parameter from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot # This is a defau...
31.459507
288
0.38245
1,497
17,869
4.553106
0.151637
0.148768
0.114437
0.109742
0.456866
0.361796
0.268192
0.235915
0.118545
0.031103
0
0.062539
0.466674
17,869
567
289
31.514991
0.652676
0.012983
0
0.550209
0
0.008368
0.188883
0.038911
0
0
0
0
0
1
0
false
0
0.004184
0
0.004184
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
bcbfd5dadc46bd5eab08a4b4f4c45a601d0075b6
16,826
py
Python
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
52
2019-05-28T03:41:20.000Z
2022-01-29T00:32:57.000Z
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
111
2019-05-28T14:50:01.000Z
2022-03-21T22:12:05.000Z
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
11
2019-07-20T15:36:21.000Z
2021-12-30T16:53:56.000Z
# coding=utf-8 from __future__ import absolute_import import datetime import logging import sys import flask import octoprint.plugin from octoprint.events import eventManager, Events from octoprint.server import user_permission from octoprint.util import RepeatedTimer from .bed_notifications import BedNotifications ...
39.683962
141
0.757934
2,175
16,826
5.557701
0.19908
0.045665
0.031023
0.039957
0.245367
0.155113
0.092985
0.065602
0.036813
0.036813
0
0.00852
0.135029
16,826
423
142
39.777778
0.822042
0.136099
0
0.074074
0
0
0.15568
0.049475
0
0
0
0
0
1
0.077441
false
0
0.070707
0.020202
0.198653
0.124579
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