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
7c381806df4f9a8daef26e21cae152813d0d29b1
1,548
py
Python
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
# elsewhere... import pandas as pd from keras.models import model_from_json import random import sys import numpy as np maxlen = 15 step = 3 df = pd.read_pickle('articles.pandas') text = str.join(' ', df.text.tolist()) chars = set(text) print('total chars:', len(chars)) char_indices = dict((c, i) for i, c in enumer...
25.8
67
0.646641
222
1,548
4.418919
0.400901
0.03262
0.026504
0.014271
0.042813
0.042813
0
0
0
0
0
0.01793
0.207364
1,548
59
68
26.237288
0.781581
0.046512
0
0.04878
0
0
0.084861
0.016293
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.170732
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3890eac8b3049a655feef5c632c8c9d2d8f1d4
4,200
py
Python
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
null
null
null
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
37
2020-05-19T20:11:53.000Z
2020-06-19T11:26:41.000Z
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
1
2020-05-25T08:10:21.000Z
2020-05-25T08:10:21.000Z
import unittest from simulation import container from simulation import person class ContainerTestCase(unittest.TestCase): def setUp(self) -> None: self.box = container.Container(100, 1000, 300, 1, 0.5) self.s_instance = person.Person(x=0, y=0, infection_probability=0.25, ...
49.411765
87
0.627143
513
4,200
4.808967
0.255361
0.045399
0.028375
0.024321
0.254966
0.19619
0.114309
0.083502
0.083502
0.083502
0
0.036938
0.290952
4,200
84
88
50
0.791471
0
0
0.058824
0
0
0.275476
0
0
0
0
0
0.161765
1
0.161765
false
0
0.044118
0
0.220588
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c38a782a768dd6c26c320e977f3ea8c8bc5e836
1,403
py
Python
pontoon/base/migrations/0007_auto_20150710_0944.py
Tratty/pontoon
ecb903d72f9274f02137b16669cc3c5859f6329c
[ "BSD-3-Clause" ]
3
2020-01-27T12:26:20.000Z
2022-02-03T09:56:02.000Z
pontoon/base/migrations/0007_auto_20150710_0944.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
1
2021-03-24T12:33:03.000Z
2021-03-24T12:50:19.000Z
pontoon/base/migrations/0007_auto_20150710_0944.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
4
2020-01-26T21:28:43.000Z
2021-06-10T15:25:19.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import pontoon.base.models class Migration(migrations.Migration): dependencies = [ ("base", "0006_auto_20150602_0616"), ] operations = [ migrations.AddField( model_name="...
28.06
63
0.459729
122
1,403
5.131148
0.47541
0.043131
0.054313
0.057508
0
0
0
0
0
0
0
0.030525
0.416251
1,403
49
64
28.632653
0.733822
0.014968
0
0.209302
0
0
0.115942
0.016667
0
0
0
0
0
1
0
false
0
0.069767
0
0.139535
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
7c3b77cba219a97b12762ac1a37f632c5f68d380
11,331
py
Python
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
31.828652
119
0.662519
1,472
11,331
4.991848
0.280571
0.035384
0.009526
0.009254
0.189303
0.15841
0.126293
0.105471
0.088051
0.078253
0
0.002177
0.2299
11,331
355
120
31.91831
0.839904
0.064602
0
0.228856
0
0
0.159669
0.00328
0
0
0
0
0
1
0.054726
false
0
0.049751
0
0.129353
0.019901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3f358dbfca775c5fb0e3b7866f5656395f8320
8,749
py
Python
WebIOPi-0.7.1/python/webiopi/devices/analog/__init__.py
MORIMOTO520212/Arm-crawler
95dca0ea9485e4c20a0910687362010604331b55
[ "MIT" ]
1
2020-04-25T00:55:45.000Z
2020-04-25T00:55:45.000Z
WebIOPi-0.7.1/python/webiopi/devices/analog/__init__.py
MORIMOTO520212/Arm-crawler
95dca0ea9485e4c20a0910687362010604331b55
[ "MIT" ]
4
2015-05-28T23:20:13.000Z
2015-05-28T23:24:01.000Z
services/webiopi/src/python/webiopi/devices/analog/__init__.py
creative-workflow/pi-setup
d6d28cb8d34ef71b1e8ac95dd94099bfad08837a
[ "MIT" ]
1
2022-03-29T01:58:02.000Z
2022-03-29T01:58:02.000Z
# Copyright 2012-2013 Eric Ptak - trouch.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.403704
100
0.606927
957
8,749
5.430512
0.196447
0.042332
0.030787
0.02309
0.374062
0.214547
0.14085
0.100635
0.063691
0.063691
0
0.022366
0.259001
8,749
269
101
32.524164
0.779269
0.069151
0
0.287081
0
0
0.113449
0.041344
0
0
0
0
0
1
0.196172
false
0
0.009569
0.057416
0.363636
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
7c3f8ea43badcc3a68b54f56814ef9f940a1de25
3,142
py
Python
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2019-01-15T10:02:06.000Z
2019-01-15T10:02:06.000Z
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2018-03-03T13:28:09.000Z
2018-03-03T13:28:09.000Z
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2018-03-03T12:31:24.000Z
2018-03-03T12:31:24.000Z
# Copyright 2013 Nebula Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
29.092593
77
0.624761
375
3,142
5.088
0.389333
0.031447
0.023585
0.02673
0.231656
0.175052
0.150943
0.150943
0.111111
0.111111
0
0.007996
0.283577
3,142
107
78
29.364486
0.839627
0.237747
0
0.171875
0
0
0.044229
0
0
0
0
0
0.078125
1
0.09375
false
0
0.078125
0
0.234375
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
7c4069a9b6ece4c3708be4cbcbdf02893a94dc6d
1,134
py
Python
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
2
2021-12-02T20:30:23.000Z
2022-01-05T01:38:45.000Z
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
null
null
null
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
4
2021-09-16T01:28:05.000Z
2022-03-20T21:38:06.000Z
#!/usr/bin/env python3 import sys from os.path import dirname, abspath, join import subprocess # Note this does not resolve symbolic links # https://stackoverflow.com/a/17806123 FIREFOX_BINARY = join(dirname(abspath(__file__)), 'firefox') argvs = list(sys.argv) argvs[0] = FIREFOX_BINARY # geckdriver will run `firef...
30.648649
83
0.686067
162
1,134
4.635802
0.425926
0.117177
0.111851
0.063915
0.149134
0.149134
0.090546
0.090546
0.090546
0
0
0.017641
0.200176
1,134
36
84
31.5
0.810364
0.263668
0
0.26087
0
0
0.050725
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
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
7c409487091269b7e314c05627f47667f44be8cd
37,177
py
Python
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json import logging from collections import OrderedDict from decimal import ROUND_HALF_UP, Decimal from typing import Any, Dict, Union import pytz from django import forms from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.dispatch import receiver from django.fo...
42.536613
124
0.63047
4,425
37,177
5.181017
0.155706
0.009465
0.019192
0.01012
0.365524
0.316497
0.257524
0.229957
0.201518
0.181235
0
0.002633
0.295236
37,177
873
125
42.585338
0.872371
0.320709
0
0.399586
0
0
0.162504
0.017036
0
0
0
0
0
1
0.138716
false
0.00207
0.060041
0.05176
0.378882
0.00207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c41415e2c7a8ce5f2d75904be89b903c2cdfef0
633
py
Python
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
from pysys.basetest import BaseTest from apama.correlator import CorrelatorHelper import os class PySysTest(BaseTest): def execute(self): corr = CorrelatorHelper(self, name='correlator') corr.start(logfile='correlator.log') corr.injectEPL(os.getenv('APAMA_HOME','') + '/monitors/ManagementImpl.mon') corr.injec...
33.315789
77
0.737757
74
633
6.283784
0.513514
0.111828
0.103226
0.090323
0.163441
0.163441
0.163441
0
0
0
0
0
0.094787
633
18
78
35.166667
0.811518
0
0
0
0
0
0.333333
0.118483
0
0
0
0
0.285714
1
0.142857
false
0
0.214286
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
7c419b5717a91fec1bbd9b0db3fdfc3ceb131303
1,231
py
Python
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
58
2015-01-07T09:10:59.000Z
2019-07-15T14:34:01.000Z
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
12
2015-01-02T00:01:45.000Z
2018-04-25T12:35:02.000Z
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
23
2015-01-04T00:13:27.000Z
2019-02-15T18:01:17.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from unittest import TestCase from beast.env.ReadEnvFile import read_env_file from beast.util import Terminal Terminal.CAN_CHANGE_COLOR = False JSON = """ { "FOO": "foo", "BAR": "bar bar bar", "CPPFLAGS": "-std=c++11 -frtti -fno...
23.673077
82
0.680747
174
1,231
4.66092
0.396552
0.066584
0.066584
0.04439
0.477189
0.353884
0.218249
0.218249
0.218249
0.218249
0
0.009852
0.175467
1,231
51
83
24.137255
0.789163
0
0
0.051282
0
0
0.421608
0
0
0
0
0
0.102564
1
0.076923
false
0
0.102564
0
0.205128
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c46de4fdbd3dc2c58b659d8b01a5d17658d1622
14,736
py
Python
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
"""Unit tests for the InteractiveOption.""" from __future__ import absolute_import import unittest import click from click.testing import CliRunner from click.types import IntParamType from aiida.cmdline.params.options.interactive import InteractiveOption from aiida.cmdline.params.options import NON_INTERACTIVE cla...
38.984127
106
0.636401
1,688
14,736
5.454384
0.133294
0.048224
0.04073
0.052134
0.657978
0.612252
0.558054
0.532638
0.480395
0.472901
0
0.007643
0.25414
14,736
377
107
39.087533
0.830043
0.244503
0
0.49537
0
0
0.082059
0
0
0
0
0
0.287037
1
0.152778
false
0
0.032407
0.00463
0.236111
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
7c4747750d4783fac45721046885fc982b92a07c
3,195
py
Python
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
""" Changes existing registered_meta on a node to new schema layout required for the prereg-prize """ import json import sys import logging from modularodm import Q from framework.mongo import database as db from framework.mongo.utils import from_mongo from framework.transactions.context import TokuTransaction from ...
29.859813
111
0.576526
361
3,195
4.889197
0.34349
0.055524
0.020397
0.013598
0.038527
0.015864
0
0
0
0
0
0.004682
0.331455
3,195
106
112
30.141509
0.821629
0.074178
0
0.126437
0
0
0.125891
0
0
0
0
0
0
1
0.034483
false
0.011494
0.126437
0
0.172414
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
7c484eb9bf609790d2ba9c1adb147528492648ab
2,108
py
Python
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
""" given a fully connected undirected graph(If no path exists between two cities, adding an arbitrarily long edge will complete the graph without affecting the optimal tour), find the path with the lowest cost in total for a salesman to travel from a given start vertex """ import time class Edge: def __init__(sel...
29.690141
171
0.576376
278
2,108
4.23741
0.31295
0.0382
0.040747
0.025467
0
0
0
0
0
0
0
0.012873
0.29981
2,108
71
172
29.690141
0.78523
0.182163
0
0.104167
0
0
0.01489
0
0
0
0
0
0
1
0.145833
false
0.020833
0.020833
0.020833
0.3125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c487be5e97c4669f698df37e679a53c19c84c61
515
py
Python
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# The isBadVersion API is already defined for you. # @param version, an integer # @return a bool # def isBadVersion(version): class Solution(object): def firstBadVersion(self, n): start = 1 end = n while start + 1 < end: mid = start + (end - start) / 2 if isBadVersi...
22.391304
50
0.524272
56
515
4.821429
0.553571
0.044444
0.066667
0
0
0
0
0
0
0
0
0.009646
0.396117
515
22
51
23.409091
0.858521
0.227184
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
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
7c4ae67259cc4af329dd35bc62e3ceddb69e3a57
7,190
py
Python
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T04:30:54.000Z
2021-01-02T04:30:54.000Z
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
8
2021-01-02T02:06:04.000Z
2021-03-15T06:05:50.000Z
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T01:50:06.000Z
2021-01-02T20:02:58.000Z
import asyncio from typing import Union import datetime import time from discord.ext import commands import yaml from cogs import checks import database import utils # Loads the repeating interval dictionary with open("conversions.yml", "r") as conversion_file: conversion_dict = yaml.load(conversion_file, Loade...
36.683673
362
0.568985
771
7,190
5.189364
0.246433
0.029993
0.017996
0.025494
0.205449
0.150462
0.132967
0.112222
0.102224
0.07998
0
0.000211
0.339917
7,190
195
363
36.871795
0.842815
0.080668
0
0.189873
0
0.006329
0.146201
0.016383
0
0
0
0
0
1
0.012658
false
0
0.056962
0
0.075949
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b0703a1999f5fa6b05313d2f3c64b1a7c6c84
948
py
Python
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
2
2020-02-01T08:21:11.000Z
2021-03-12T13:58:26.000Z
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
null
null
null
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
null
null
null
import setuptools from toraman.version import __version__ with open('README.md', 'r') as input_file: long_description = input_file.read() setuptools.setup( name='toraman', version=__version__, author='Çağatay Onur Şengör', author_email='contact@csengor.com', description='A computer-assisted t...
30.580645
116
0.667722
99
948
6.20202
0.69697
0.09772
0.087948
0.09772
0
0
0
0
0
0
0
0.002639
0.200422
948
30
117
31.6
0.807388
0
0
0.074074
0
0
0.415612
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
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
7c4b2f5648b8aa2f586e693897cf20f646266eed
457
py
Python
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
32
2015-04-01T15:17:35.000Z
2021-05-02T20:46:33.000Z
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
52
2015-03-23T21:37:04.000Z
2022-02-10T07:27:13.000Z
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
18
2015-03-16T22:10:44.000Z
2021-11-01T12:56:12.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cms_pages', '0014_homepage_news_count'), ] operations = [ migrations.AlterField( model_name='newspage', ...
21.761905
67
0.608315
44
457
6.045455
0.795455
0
0
0
0
0
0
0
0
0
0
0.015106
0.275711
457
20
68
22.85
0.78852
0.045952
0
0
0
0
0.110599
0.0553
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b6fc1c38e59243da6f002769c9090efca9c53
4,112
py
Python
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
3
2021-01-28T14:04:17.000Z
2021-09-08T12:00:11.000Z
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
8
2020-10-27T22:39:24.000Z
2021-01-24T16:41:34.000Z
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
1
2022-03-21T18:37:54.000Z
2022-03-21T18:37:54.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
35.756522
115
0.674611
582
4,112
4.580756
0.369416
0.030008
0.020255
0.031508
0.046512
0.025506
0
0
0
0
0
0.011017
0.227383
4,112
114
116
36.070175
0.82814
0.260214
0
0.057143
0
0
0.038474
0.008955
0
0
0
0
0.071429
1
0.071429
false
0
0.114286
0
0.242857
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
7c4b952636f3e94167bbd00880673a8dc5635803
2,278
py
Python
deep_speech_2/decoder.py
Canpio/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
1
2020-11-19T14:47:28.000Z
2020-11-19T14:47:28.000Z
deep_speech_2/decoder.py
JiayiFeng/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
null
null
null
deep_speech_2/decoder.py
JiayiFeng/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
null
null
null
""" CTC-like decoder utilitis. """ from itertools import groupby import numpy as np def ctc_best_path_decode(probs_seq, vocabulary): """ Best path decoding, also called argmax decoding or greedy decoding. Path consisting of the most probable tokens are further post-processed to remove consecutive...
37.344262
79
0.68525
296
2,278
5.158784
0.327703
0.057629
0.027505
0.047151
0.436149
0.436149
0.285527
0.239686
0.239686
0.239686
0
0.003486
0.244513
2,278
60
80
37.966667
0.883789
0.513608
0
0
0
0
0.139511
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4d61daea2ec370e51d0a70c14c812f08cd827f
1,491
py
Python
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
"""dbt_airflow_factory module.""" from setuptools import find_packages, setup with open("README.md") as f: README = f.read() # Runtime Requirements. INSTALL_REQUIRES = ["pytimeparse==1.1.8"] # Dev Requirements EXTRA_REQUIRE = { "tests": [ "pytest>=6.2.2, <7.0.0", "pytest-cov>=2.8.0, <3.0.0",...
28.132075
78
0.613011
195
1,491
4.584615
0.517949
0.044743
0.057047
0.058166
0
0
0
0
0
0
0
0.052676
0.210597
1,491
52
79
28.673077
0.706882
0.044936
0
0.068182
0
0
0.453776
0.073395
0
0
0
0
0
1
0
false
0
0.022727
0
0.022727
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
7c4f383bc1d3e78bec978541f8102910be2e6494
1,489
py
Python
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge-py
c4b2847b837ae7156640cb8f787fcf96ac7f632e
[ "BSD-3-Clause" ]
6
2018-01-23T15:20:43.000Z
2022-02-28T13:20:50.000Z
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge
a56f2bb57eecd49ebcdc9077234df8e76e725a6f
[ "BSD-3-Clause" ]
43
2018-01-24T16:12:49.000Z
2021-05-27T14:56:42.000Z
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge
a56f2bb57eecd49ebcdc9077234df8e76e725a6f
[ "BSD-3-Clause" ]
4
2018-03-04T10:09:43.000Z
2018-05-03T14:49:27.000Z
import numpy as np import pytest from karabo_bridge import serialize, deserialize from .utils import compare_nested_dict def test_serialize(data, protocol_version): msg = serialize(data, protocol_version=protocol_version) assert isinstance(msg, list) d, m = deserialize(msg) compare_nested_dict(data...
31.020833
87
0.715917
182
1,489
5.637363
0.258242
0.190058
0.092593
0.109162
0.589669
0.535088
0.464912
0.432749
0.432749
0.432749
0
0.035513
0.167898
1,489
47
88
31.680851
0.792575
0
0
0.258065
0
0
0.106783
0
0
0
0
0
0.225806
1
0.16129
false
0
0.129032
0
0.290323
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
7c4fc346cb91cacd807ee64d79b21152c687d93c
2,029
py
Python
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
5
2021-04-08T19:26:47.000Z
2022-01-24T16:30:18.000Z
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
2
2019-02-24T17:29:10.000Z
2021-04-08T19:23:27.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import inspect from datetime import datetime import freezegun import pytest from sqlalchemy import DateTi...
32.725806
80
0.706752
258
2,029
5.399225
0.468992
0.028715
0.022972
0.040201
0.041637
0.041637
0
0
0
0
0
0.005009
0.212913
2,029
61
81
33.262295
0.867251
0.383933
0
0.066667
0
0
0.021685
0
0
0
0
0
0
1
0.166667
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
7c508b5e90ac0bb6b42082e2791baf6ee6cd6d24
704
py
Python
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 import os # 是否启用调试 若启用 将不再忽略检查过程中发生的任何异常 # 建议在开发环境中启用 在生产环境中禁用 DEBUG_ENABLE = False # SQLite 数据库文件名 SQLITE_FILE = "saved.db" # 日志文件名 LOG_FILE = "log.txt" # 是否启用日志 ENABLE_LOGGER = True # 循环检查的间隔时间(默认: 180分钟) LOOP_CHECK_INTERVAL = 180 * 60 # 代理服务器 PROXIES = "127.0.0.1:1080"...
16
88
0.681818
101
704
4.584158
0.663366
0.030238
0.051836
0.060475
0
0
0
0
0
0
0
0.042808
0.170455
704
43
89
16.372093
0.75
0.285511
0
0
0
0
0.179959
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
7c51d615d63f8eb8639b0e23a11927b8ddf8f7ce
567
py
Python
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import rospy from std_msgs.msg import Int32 import time rospy.init_node('count') # ノード名「count」に設定 pub = rospy.Publisher('count_up', Int32, queue_size=1) # パブリッシャ「count_up」を作成 rate = rospy.Rate(10) # 10Hzで実行 n = 0 time.sleep(2) w...
24.652174
77
0.502646
76
567
3.671053
0.605263
0.050179
0.078853
0
0
0
0
0
0
0
0
0.050704
0.373898
567
22
78
25.772727
0.735211
0.112875
0
0.111111
0
0
0.068136
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
7c52d32a4a5ef2c93209163ebb29e7bf07a94aa5
2,028
py
Python
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-08T08:23:08.000Z
2020-05-08T08:23:08.000Z
import logging from threading import Timer from datetime import timedelta from rx.core import Scheduler, Disposable from rx.disposables import SingleAssignmentDisposable, CompositeDisposable from .schedulerbase import SchedulerBase log = logging.getLogger("Rx") class TimeoutScheduler(SchedulerBase): """A sched...
28.971429
83
0.668146
208
2,028
6.461538
0.298077
0.057292
0.033482
0.053571
0.480655
0.459821
0.459821
0.459821
0.459821
0.427083
0
0.001299
0.240631
2,028
69
84
29.391304
0.871429
0.103057
0
0.418605
0
0
0.00723
0
0
0
0
0
0
1
0.186047
false
0
0.139535
0
0.465116
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c53272867356ba8303ec22e79720d622e10756c
2,330
py
Python
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
2
2020-10-09T13:51:04.000Z
2020-11-11T12:29:41.000Z
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
null
null
null
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
null
null
null
import requests from bs4 import BeautifulSoup def Check(auth, mirrors): response = requests.get("https://www.x.org/releases/individual/proto/") html = response.content.decode("utf-8") parsedHtml = BeautifulSoup(html, "html.parser") links = parsedHtml.find_all("a") maxVersionMajor = -1 maxVers...
40.877193
76
0.574249
198
2,330
6.752525
0.30303
0.047868
0.048616
0.052356
0.564697
0.507853
0.507853
0.507853
0.489155
0.489155
0
0.016466
0.322318
2,330
56
77
41.607143
0.830272
0
0
0.431373
0
0
0.053219
0
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.078431
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
7c53ef04b71561a704af8d84b7b218d0cc32e017
11,781
py
Python
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
4
2021-11-01T15:17:07.000Z
2022-01-26T15:22:15.000Z
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
import os import string from collections import Counter from datetime import datetime from functools import partial from pathlib import Path from typing import Optional import numpy as np import pandas as pd from scipy.stats.stats import chisquare from tangled_up_in_unicode import block, block_abbr, categor...
31.5
88
0.641881
1,473
11,781
4.898846
0.154786
0.032428
0.023559
0.02439
0.301414
0.221868
0.173503
0.114468
0.110588
0.075111
0
0.001011
0.244037
11,781
373
89
31.58445
0.80923
0.097275
0
0.111607
0
0
0.108726
0.021665
0
0
0
0.005362
0
1
0.075893
false
0
0.058036
0.004464
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
7c54e5deea62f99049023a90de0d70c094863c10
10,143
py
Python
inverse_warp.py
ZephyrII/competitive_colaboration
a557d1e23ef2c0b8e3794f085a79bfffb860f9df
[ "MIT" ]
357
2019-03-12T07:17:32.000Z
2022-03-24T14:13:24.000Z
inverse_warp.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
27
2019-03-11T19:16:11.000Z
2021-05-30T13:30:19.000Z
inverse_warp.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
66
2019-03-27T14:16:22.000Z
2021-11-11T12:40:33.000Z
# Author: Anurag Ranjan # Copyright (c) 2019, Anurag Ranjan # All rights reserved. # based on github.com/ClementPinard/SfMLearner-Pytorch from __future__ import division import torch from torch.autograd import Variable pixel_coords = None def set_id_grid(depth): global pixel_coords b, h, w = depth.size() ...
35.714789
136
0.602484
1,638
10,143
3.592796
0.159341
0.015633
0.005607
0.006797
0.425998
0.383857
0.357009
0.357009
0.353271
0.337978
0
0.036207
0.234842
10,143
283
137
35.840989
0.722072
0.242729
0
0.296053
0
0
0.028659
0
0
0
0
0
0.019737
1
0.078947
false
0
0.019737
0
0.164474
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
7c5685982f284836ad84a3186b0e3af7e951a8fa
7,853
py
Python
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 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 # ...
42.448649
80
0.696676
1,078
7,853
4.765306
0.227273
0.072416
0.031147
0.031341
0.248783
0.158848
0.108624
0.079034
0.068912
0.053728
0
0.009359
0.210875
7,853
184
81
42.679348
0.81959
0.356042
0
0.019048
0
0
0.017705
0
0
0
0
0
0
1
0.066667
false
0
0.104762
0.028571
0.219048
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c56c7d2316646a3222e3085d34d2f51b63f5dac
3,556
py
Python
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
526
2015-01-05T14:33:10.000Z
2022-03-09T12:41:37.000Z
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
71
2015-01-01T01:03:09.000Z
2021-10-01T06:57:07.000Z
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
139
2015-01-13T21:23:38.000Z
2022-02-24T03:26:34.000Z
# This file shows how to implement a single hidden layer neural network for # performing binary classification on the GPU using cudamat. from __future__ import division import pdb import time import numpy as np import cudamat as cm from cudamat import learn as cl import util # initialize CUDA cm.cublas_init() # load...
26.537313
80
0.683071
594
3,556
3.875421
0.240741
0.050825
0.013032
0.017376
0.256733
0.172459
0.144222
0.100782
0.071242
0.071242
0
0.030892
0.18982
3,556
133
81
26.736842
0.768136
0.188695
0
0.135135
0
0
0.03359
0
0
0
0
0
0
1
0
false
0
0.094595
0
0.094595
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
7c57f754fa08c4237dd780441aaf7916aa4b730c
3,530
py
Python
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
import uuid from invenio_indexer.api import RecordIndexer from invenio_pidstore.models import PersistentIdentifier, PIDStatus from invenio_records_draft.api import RecordContext from invenio_records_draft.proxies import current_drafts from invenio_search import RecordsSearch, current_search, current_search_client from...
40.574713
99
0.608215
380
3,530
5.413158
0.236842
0.03403
0.046184
0.038892
0.457948
0.424404
0.403986
0.376276
0.257657
0.22071
0
0.026235
0.265722
3,530
86
100
41.046512
0.767361
0
0
0.178082
0
0
0.136261
0.021246
0
0
0
0
0.068493
1
0.013699
false
0
0.109589
0
0.123288
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
7c591440c5e8dee3c070bc7ca52d3ba19f2b4743
5,580
py
Python
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
import os import subprocess from collections import namedtuple import gi gi.require_version("Gst", "1.0") gi.require_version("Tcam", "0.1") from gi.repository import Tcam, Gst, GLib, GObject DeviceInfo = namedtuple("DeviceInfo", "status name identifier connection_type") CameraProperty = namedtuple("CameraProperty", ...
36.953642
170
0.624014
707
5,580
4.837341
0.292786
0.042105
0.035088
0.019006
0.398246
0.371637
0.33655
0.30731
0.263158
0.236257
0
0.01609
0.264875
5,580
150
171
37.2
0.81765
0.248208
0
0.192308
0
0.076923
0.251469
0.093279
0
0
0
0
0
1
0.102564
false
0.012821
0.064103
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c59c1fafc0db31d12d2731c296964f8cac7b7ce
274
py
Python
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
from typing import Dict, Any from yaml import load def get_config() -> Dict[str, Any]: try: return load(open('config/config.yml').read()) except Exception as e: raise Exception('ERROR: Missing config/config.yml file.') from e CONFIG = get_config()
24.909091
72
0.671533
40
274
4.55
0.6
0.098901
0.164835
0
0
0
0
0
0
0
0
0
0.208029
274
10
73
27.4
0.83871
0
0
0
0
0
0.20073
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c59df650fcdcb09e11e3c4ab2f95de326942e41
4,758
py
Python
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
1
2020-05-21T11:56:32.000Z
2020-05-21T11:56:32.000Z
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
null
null
null
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
null
null
null
# Author: Tillmann Falck <tf-raman@lucidus.de> # # License: BSD 3 clause # # SPDX-License-Identifier: BSD-3-Clause import collections from itertools import product import cvxpy as cp import numpy as np def sunsal_tv(A, Y, lambda_1, lambda_tv, sweep='prod', tv_type='iso', additional_constraint='none'): r""" S...
34.985294
125
0.640395
692
4,758
4.254335
0.316474
0.03091
0.022079
0.02038
0.071332
0.021739
0.021739
0.016984
0
0
0
0.025719
0.240017
4,758
135
126
35.244444
0.78844
0.464061
0
0.147541
0
0
0.07315
0
0
0
0
0
0.016393
1
0.016393
false
0
0.065574
0
0.114754
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
7c5c4475e9ffb17b4a7ed0975ab0f7646445b8ba
4,011
py
Python
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
from sqlalchemy import exc from sqlalchemy.sql.expression import func from models import Watchlist, Portfolio, Activity from app import db import metric def buy_stock(ticker, units): unit_price = metric.get_price(ticker) total_price = units * unit_price max_id = db.session.query(func.max(Activity.activity...
36.463636
126
0.667913
518
4,011
4.978764
0.15251
0.054285
0.038387
0.032571
0.651415
0.651415
0.61962
0.59209
0.59209
0.538969
0
0.006993
0.215657
4,011
109
127
36.798165
0.812778
0
0
0.448276
0
0
0.044933
0
0
0
0
0
0
1
0.103448
false
0
0.057471
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5c6bcf1d0acee591337a1dbb0080fdcf270c1f
3,175
py
Python
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
bl_info = { "name": "ke_fit2grid", "author": "Kjell Emanuelsson", "category": "Modeling", "version": (1, 0, 2), "blender": (2, 80, 0), } import bpy import bmesh from .ke_utils import get_loops, correct_normal, average_vector from mathutils import Vector, Matrix def fit_to_grid(co, grid): x, y,...
31.75
102
0.521575
370
3,175
4.294595
0.345946
0.031466
0.035242
0.055381
0.14034
0.028949
0
0
0
0
0
0.013236
0.309921
3,175
99
103
32.070707
0.712004
0.072756
0
0.084507
0
0
0.127891
0
0
0
0
0
0
1
0.070423
false
0
0.056338
0.014085
0.253521
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
7c5e0af3e6fbbe4ea83ab673bc82739437ec8f74
453
py
Python
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
#!/usr/bin/env python3 def binary(code, max, bits): ret = [] for i in range(max): ret.append(bits[code[i]]) return int(''.join(ret), base=2) mid = 0 with open('input5.txt') as f: for line in f.readlines(): line = line[:-1] row = binary(line[:7], 7, {'F': '0', 'B': '1'}) ...
19.695652
55
0.487859
73
453
3.027397
0.589041
0.090498
0.099548
0
0
0
0
0
0
0
0
0.044025
0.298013
453
22
56
20.590909
0.650943
0.046358
0
0
0
0
0.04186
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5fa2ddc156126b4dccbe0c281c6059666eccf4
501
py
Python
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import SimpleHTTPServer import SocketServer import logging PORT = 8000 class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type','text/html') self.end_headers() self.wfile.write("Hel...
25.05
64
0.682635
59
501
5.711864
0.745763
0.047478
0
0
0
0
0
0
0
0
0
0.019802
0.193613
501
20
65
25.05
0.814356
0.03992
0
0
0
0
0.081081
0
0
0
0
0
0
1
0.066667
false
0
0.2
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
7c605332955c4b043be9f4d88d8eb7ca6bb505c8
934
py
Python
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
179
2016-03-05T03:14:56.000Z
2022-02-12T22:48:55.000Z
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
24
2016-02-14T07:43:42.000Z
2021-12-14T01:09:54.000Z
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
25
2016-02-19T20:35:03.000Z
2022-01-31T09:15:44.000Z
#!/usr/bin/env python3 # Usage: # $0 -o log.txt products/ # # concatenates .log files (even those in subdirs or .zip) and combines into a single combined.log from xdfile.utils import find_files_with_time, open_output, get_args import boto3 # from boto.s3.connection import S3Connection import os def main(): a...
29.1875
121
0.671306
140
934
4.371429
0.578571
0.058824
0.042484
0.055556
0
0
0
0
0
0
0
0.019894
0.192719
934
31
122
30.129032
0.791777
0.275161
0
0
0
0
0.113772
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
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
7c62e1ba59e97f238e09a86895f6c890c24d960e
5,819
py
Python
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Grid features extraction script. """ import argparse import os import torch import tqdm from fvcore.common.file_io import PathManager from detectron2.checkpoint import DetectionCheckpointer from detectron2.config import get_cfg from detectron2.engine import default_setup from detectron2.eva...
40.978873
131
0.687231
781
5,819
4.8758
0.318822
0.036765
0.031513
0.044118
0.265756
0.221901
0.19354
0.128414
0.120273
0.120273
0
0.048473
0.195223
5,819
141
132
41.269504
0.764681
0.129232
0
0.117647
0
0
0.114138
0.018095
0
0
0
0
0
1
0.058824
false
0
0.147059
0
0.22549
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6577b07dcade6abb36fc14d4e83aa262bb9bef
2,514
py
Python
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
6
2018-08-09T14:36:35.000Z
2021-03-23T06:53:01.000Z
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
null
null
null
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
null
null
null
from flask import Flask, request import time import requests import json from blockchain import Blockchain from block import Block app = Flask(__name__) blockchain = Blockchain() peers = set() @app.route('/add_nodes', methods=['POST']) def register_new_peers(): nodes = request.get_json() if not nodes: ...
25.917526
120
0.668258
323
2,514
5.003096
0.278638
0.029703
0.02599
0.024752
0
0
0
0
0
0
0
0.011022
0.206046
2,514
96
121
26.1875
0.798597
0
0
0
0
0
0.138027
0
0
0
0
0
0
1
0.112676
false
0
0.084507
0.014085
0.366197
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
7c6a104628420af03301492fef43b77ba98e1a64
6,840
py
Python
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
import torch import numpy as np import pickle torch.manual_seed(17) torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False np.random.seed(17) import argparse import torch.nn as nn import torch.nn.functional as F import matplotlib import os from rational.torch import Rational, RecurrentRationa...
45.90604
134
0.55424
739
6,840
4.987821
0.339648
0.053717
0.032284
0.016278
0.254205
0.197504
0.197504
0.156267
0.156267
0.133478
0
0.018986
0.322368
6,840
148
135
46.216216
0.776268
0.066374
0
0.178862
0
0.00813
0.12553
0.018202
0
0
0
0
0
1
0.01626
false
0
0.105691
0
0.130081
0.065041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6a234a8099f1c0f0c886e2b520d9f41e36c635
7,093
py
Python
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
#!/usr/bin/python3 from urllib.parse import urlparse import feedparser import requests import asyncio import discord import hashlib import os from const import CHANNEL_RSS, WAIT_UNTIL_NEW_CHECK, \ SQLITE_FOLDER_NAME, SQLITE_FILE_NAME from fts.database import Database from fts.cleandatabase import CleanDatabase ...
36.188776
123
0.537572
814
7,093
4.603194
0.219902
0.024019
0.020817
0.022418
0.151855
0.127035
0.083267
0.083267
0.083267
0.064585
0
0.005692
0.380798
7,093
195
124
36.374359
0.84745
0.302552
0
0.08
0
0
0.029224
0
0
0
0.001758
0
0
1
0.053333
false
0
0.133333
0
0.24
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
7c6a29fe050821e14428d8ec0b7f5f5436d84fcb
11,691
py
Python
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines a base class for communicating with showdown servers. """ import json import logging import requests import websockets # pyre-ignore from abc import ABC from abc import abstractmethod from asyncio import CancelledError from asyncio import ensure_future from asyncio impo...
36.307453
88
0.610042
1,295
11,691
5.34749
0.214672
0.039856
0.015018
0.017329
0.134874
0.061083
0.042455
0.034079
0.022527
0.01704
0
0.003677
0.302113
11,691
321
89
36.420561
0.845079
0.146694
0
0.112903
0
0
0.09367
0.008747
0
0
0
0
0.037634
1
0.032258
false
0.026882
0.096774
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
7c6cbf4764a2e4e9b78da1978c82aa4f5d7862ce
3,637
py
Python
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
import numpy as np from pytest import fixture, mark, skip from unittest.mock import patch from pathlib import Path from beyond.config import config from beyond.dates.eop import Eop from beyond.frames.stations import create_station from beyond.io.tle import Tle from beyond.propagators.keplernum import KeplerNum from be...
27.141791
89
0.653011
495
3,637
4.678788
0.452525
0.030225
0.020725
0.028497
0.208981
0.145078
0.11399
0.11399
0.11399
0.079447
0
0.150788
0.232334
3,637
133
90
27.345865
0.678725
0.119054
0
0.2
0
0
0.182193
0.008555
0
0
0
0
0
1
0.122222
false
0.011111
0.144444
0.033333
0.377778
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6d185f736a9be6f5e0a171cd9fc68f8a4ce031
12,105
py
Python
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from typing import Union import torch import torch.nn as nn from kornia.color.hsv import rgb_to_hsv, hsv_to_rgb from kornia.constants import pi def adjust_saturation_raw(input: torch.Tensor, saturation_factor: Union[float, torch.Tensor]) -> torch.Tensor: r"""Adjust color saturation of an image. Expecting input ...
34.884726
110
0.671871
1,695
12,105
4.694985
0.107965
0.131314
0.056296
0.058055
0.677934
0.656446
0.613471
0.541468
0.439055
0.396708
0
0.006588
0.222553
12,105
346
111
34.985549
0.839018
0.316563
0
0.255034
0
0
0.12825
0.009215
0
0
0
0
0
1
0.114094
false
0
0.033557
0.033557
0.261745
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
7c6ea33d579371cc05a40f107c83af6d179fcd7a
1,418
py
Python
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
725
2018-02-14T09:48:18.000Z
2022-03-29T03:04:28.000Z
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
214
2018-02-16T22:00:41.000Z
2022-03-11T23:26:20.000Z
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
265
2018-02-15T05:33:46.000Z
2022-03-11T03:04:17.000Z
'''Entry point into the pommerman module''' import gym import inspect from . import agents from . import configs from . import constants from . import forward_model from . import helpers from . import utility from . import network gym.logger.set_level(40) REGISTRY = None def _register(): global REGISTRY REGI...
26.754717
76
0.682652
185
1,418
5.043243
0.437838
0.085745
0.02358
0
0
0
0
0
0
0
0
0.001805
0.218618
1,418
52
77
27.269231
0.840253
0.131171
0
0
0
0
0.083607
0
0
0
0
0
0.054054
1
0.054054
false
0
0.27027
0
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
7c71eb8f52ad23f62b8d9e0d27dc37cf322f70c3
3,148
py
Python
tensorflow_datasets/structured/dart/dart_test.py
harsh020/datasets
b4ad3617b279ec65356e696c4c860458621976f6
[ "Apache-2.0" ]
1
2020-12-10T06:37:27.000Z
2020-12-10T06:37:27.000Z
tensorflow_datasets/structured/dart/dart_test.py
Jinwook-shim/datasets
815037e87150e3c8a557d91a68b07e8ffb6a2a86
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/structured/dart/dart_test.py
Jinwook-shim/datasets
815037e87150e3c8a557d91a68b07e8ffb6a2a86
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
28.880734
80
0.493011
294
3,148
5.132653
0.482993
0.042412
0.039761
0.055666
0.2167
0.155732
0.132538
0.132538
0.132538
0.063618
0
0.018568
0.401207
3,148
108
81
29.148148
0.781963
0.19155
0
0.211765
0
0
0.38361
0.017419
0
0
0
0
0.011765
1
0.011765
false
0
0.058824
0
0.105882
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
7c72f8f31e7cf39a7edd3dbce8585cf8da069b38
9,085
py
Python
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
8
2022-01-19T20:47:36.000Z
2022-03-20T05:11:04.000Z
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
2
2022-02-17T06:14:25.000Z
2022-02-17T08:43:57.000Z
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
5
2022-02-15T04:16:27.000Z
2022-03-29T01:21:41.000Z
from data.data_loader_dad import ( NASA_Anomaly, WADI ) from exp.exp_basic import Exp_Basic from models.model import Informer from utils.tools import EarlyStopping, adjust_learning_rate from utils.metrics import metric from sklearn.metrics import classification_report import numpy as np import torch import t...
36.051587
113
0.557292
1,115
9,085
4.295067
0.165022
0.060138
0.037586
0.045103
0.349551
0.314053
0.30403
0.289831
0.275632
0.26018
0
0.006192
0.324491
9,085
252
114
36.051587
0.774157
0.013979
0
0.188482
0
0.005236
0.038217
0
0
0
0
0
0
1
0.041885
false
0
0.073298
0
0.157068
0.041885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c73ce1a389f347a8681ff6c30c8fe84612d252e
9,270
py
Python
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Provide common mysensors fixtures.""" from __future__ import annotations from collections.abc import AsyncGenerator, Callable, Generator import json from typing import Any from unittest.mock import AsyncMock, MagicMock, patch from mysensors import BaseSyncGateway from mysensors.persistence import MySensorsJSONDeco...
31.530612
87
0.73247
1,147
9,270
5.681779
0.145597
0.060764
0.041737
0.030382
0.369649
0.268835
0.144852
0.070278
0.058616
0.044192
0
0.002317
0.161812
9,270
293
88
31.638225
0.836422
0.114132
0
0.163043
0
0
0.095554
0.063957
0
0
0
0
0
1
0.146739
false
0
0.086957
0
0.36413
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
7c76c121d957b364e4b6f2fa9125b58b9c909aee
4,086
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
from django.db import migrations, models from django.conf import settings from opaque_keys.edx.django.models import CourseKeyField class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
49.829268
159
0.618698
405
4,086
6.041975
0.259259
0.022885
0.051083
0.046996
0.437679
0.383327
0.341643
0.308132
0.308132
0.308132
0
0.00526
0.255507
4,086
81
160
50.444444
0.799145
0
0
0.506494
0
0
0.21953
0.0465
0
0
0
0
0
1
0
false
0
0.038961
0
0.077922
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
7c77100c5bc822f15ee0cc031b607fff7a7b2f70
899
py
Python
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
import parsl from parsl.app.app import python_app from parsl.tests.configs.local_threads import config from parsl.executors.errors import UnsupportedFeatureError from parsl.executors import WorkQueueExecutor @python_app def double(x, parsl_resource_specification={}): return x * 2 def test_resource(n=2): spe...
26.441176
58
0.676307
104
899
5.653846
0.480769
0.061224
0.061224
0
0
0
0
0
0
0
0
0.007299
0.238042
899
33
59
27.242424
0.851095
0
0
0
0
0
0.038932
0
0
0
0
0
0.074074
1
0.074074
false
0
0.185185
0.037037
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c78f1b09da753afd4fbe81d818781bc202c7f29
9,565
py
Python
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
1
2022-03-11T02:37:42.000Z
2022-03-11T02:37:42.000Z
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
null
null
null
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
null
null
null
import pathlib import re from typing import List, Optional, Dict, Set, Tuple, Iterable import shlex class FileMatcher: """Match files based on a pattern""" def __init__(self, match_string: str, include: bool): self.match_string = match_string self.exact = '*' not in match_string self.ab...
41.228448
119
0.576477
1,240
9,565
4.258065
0.187903
0.0375
0.019697
0.011364
0.082955
0.0375
0.019697
0.019697
0
0
0
0.002198
0.334135
9,565
231
120
41.406926
0.826817
0.205332
0
0.235294
0
0
0.00362
0
0
0
0
0
0
1
0.076471
false
0
0.023529
0
0.205882
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
7c7958cdc1aac4d3672c25246775beb5da7fc72d
997
py
Python
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
53
2018-10-02T05:58:54.000Z
2020-09-15T08:58:26.000Z
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
52
2018-09-26T05:16:09.000Z
2022-03-11T23:51:14.000Z
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
10
2019-03-11T16:35:14.000Z
2019-10-23T08:03:54.000Z
from cloud.permission import Permission, NeedPermission from cloud.message import error # Define the input output format of the function. # This information is used when creating the *SDK*. info = { 'input_format': { 'session_id': 'str', 'field': 'str', 'value?': 'str', }, 'output_...
24.317073
83
0.608826
121
997
4.876033
0.495868
0.071186
0.050847
0.040678
0
0
0
0
0
0
0
0
0.250752
997
40
84
24.925
0.789826
0.110331
0
0.066667
0
0
0.193878
0
0
0
0
0
0
1
0.033333
false
0.033333
0.066667
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
7c79e8c0feadf546c1f7ffb56f2c6aded823808d
4,647
py
Python
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2020-01-18T04:48:38.000Z
2020-01-18T04:48:38.000Z
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2019-08-11T18:47:27.000Z
2019-08-12T03:02:11.000Z
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
null
null
null
""" Show how to have enemies shoot bullets aimed at the player. If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_bullets_enemy_aims """ import arcade import math import os SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 SCREEN_TITLE = "Sprites and Bullet...
32.957447
98
0.624919
631
4,647
4.434231
0.304279
0.039314
0.027877
0.038599
0.163331
0.163331
0.132952
0.115082
0.115082
0.115082
0
0.012515
0.295029
4,647
140
99
33.192857
0.841575
0.306004
0
0.112676
0
0
0.079861
0.065341
0
0
0
0
0
1
0.084507
false
0
0.042254
0
0.140845
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
7c7e4ec9d240f0bbb6bcb11b797135aad6a43254
1,342
py
Python
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
4
2015-05-08T10:57:56.000Z
2021-05-17T04:32:11.000Z
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
6
2019-12-26T16:43:41.000Z
2022-02-28T11:07:54.000Z
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
1
2019-09-23T14:08:11.000Z
2019-09-23T14:08:11.000Z
# -*- coding: utf-8 -*- # pylint: disable=E1101 from sqlalchemy import sql from sqlalchemy import orm from sqlalchemy.orm.exc import NoResultFound from .. import Base # http://www.iana.org/assignments/media-types/media-types.xhtml class MimeMajor(Base): """Mime major""" def __init__(self, name): ...
21.645161
63
0.568554
150
1,342
4.92
0.42
0.054201
0.065041
0.04065
0.056911
0
0
0
0
0
0
0.007361
0.291356
1,342
61
64
22
0.768665
0.093145
0
0.108108
0
0
0.007601
0
0
0
0
0
0
1
0.135135
false
0
0.108108
0.027027
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7ea1a87be56599bff87dd5b87938ba5b672c0b
14,385
py
Python
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
null
null
null
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
35
2019-09-27T23:27:54.000Z
2021-10-06T14:57:28.000Z
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
21
2019-09-21T06:13:58.000Z
2021-08-10T20:05:09.000Z
#!/usr/bin/env python import errno import os import platform import sys import traceback from fcntl import flock, LOCK_EX, LOCK_NB from optparse import OptionParser from os import O_RDWR, O_CREAT, O_WRONLY, O_APPEND from os.path import basename, dirname, exists, realpath from os.path import join as pathjoin from sign...
31.136364
135
0.639694
1,929
14,385
4.646449
0.161223
0.01562
0.021756
0.020529
0.241883
0.190115
0.146491
0.127747
0.07531
0.038157
0
0.003436
0.231213
14,385
461
136
31.203905
0.807035
0.066597
0
0.230303
0
0
0.165118
0.01604
0.00303
0
0
0
0.009091
1
0.090909
false
0.00303
0.039394
0
0.193939
0.048485
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7f557e50cc992f1ad5414b88efb2c8bf4f59f5
1,213
py
Python
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
from direct.showbase.ShowBase import ShowBase from direct.task import Task from direct.actor.Actor import Actor import numpy as np class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) # Load environment model self.scene = self.loader.loadModel("models/environment") # ...
32.783784
85
0.649629
157
1,213
4.968153
0.401274
0.046154
0.035897
0.015385
0
0
0
0
0
0
0
0.043103
0.234955
1,213
37
86
32.783784
0.797414
0.135202
0
0
0
0
0.072867
0
0
0
0
0
0
1
0.083333
false
0
0.166667
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
7c80d22f73704982f5f02b4193bf4d13e0699eda
5,914
py
Python
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
4
2021-11-01T15:17:07.000Z
2022-01-26T15:22:15.000Z
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
"""Organize the calculation of statistics for each series in this DataFrame.""" import warnings from datetime import datetime from typing import Optional import pandas as pd from tqdm.auto import tqdm from visions import VisionsTypeset from pandas_profiling.config import Settings from pandas_profiling.model.correlati...
30.328205
88
0.615996
599
5,914
5.894825
0.248748
0.019824
0.039649
0.048145
0.097706
0.068536
0.053243
0.031719
0.031719
0.031719
0
0.000243
0.305208
5,914
194
89
30.484536
0.85909
0.148461
0
0.067669
0
0
0.11443
0.009485
0
0
0
0
0
1
0.007519
false
0
0.097744
0
0.112782
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
7c813b2cc84c9caa5444e2c87441c4626db990da
1,114
py
Python
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
import operator class Std(object): def __init__(self): self.name = '' self.offerNum = 0 self.offers = [] stds = [] stdsDict = {} index = 0 def readStd(name,camper): global stds global stdsDict global index if name not in stdsDict: newStd = Std() newStd.name...
26.52381
68
0.56553
140
1,114
4.385714
0.378571
0.078176
0.078176
0.071661
0
0
0
0
0
0
0
0.007614
0.292639
1,114
42
69
26.52381
0.771574
0
0
0
0
0
0.109417
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.111111
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
7c81a099c1328ddb836ac7f6bc808bcec8ce85e6
5,525
py
Python
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
2
2018-04-16T03:08:42.000Z
2021-01-06T10:21:49.000Z
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, print_function import os import os.path import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() NAME = "futur...
29.864865
95
0.523439
531
5,525
5.344633
0.40113
0.042283
0.052854
0.016913
0.10148
0.054968
0.054968
0.054968
0.054968
0.054968
0
0.011638
0.362353
5,525
184
96
30.027174
0.793926
0.131041
0
0.013333
0
0
0.343508
0.051432
0
0
0
0
0
1
0
false
0.006667
0.06
0
0.06
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c82276d6def1d1d6f137aa1788b787b2da8110f
3,009
py
Python
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
wangchuanli001/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
12
2019-12-07T01:44:55.000Z
2022-01-27T14:13:30.000Z
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
23
2020-05-23T03:56:33.000Z
2022-02-28T07:54:45.000Z
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
7
2019-12-20T04:48:56.000Z
2021-11-19T02:23:45.000Z
import requests from bs4 import BeautifulSoup import urllib.request import os import random import time def html(url): user_agents = [ 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11', 'Opera/9.25 (Windows NT 5.1; U; en)', 'Mozilla/4.0 (compatible...
42.985714
164
0.623463
453
3,009
4.024283
0.373068
0.043884
0.024685
0.018102
0
0
0
0
0
0
0
0.074802
0.204719
3,009
69
165
43.608696
0.687004
0.03988
0
0
0
0.131148
0.427235
0.065489
0
0
0
0
0
1
0.032787
false
0.016393
0.098361
0
0.131148
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c82c0f597ec23a15334ec51934c9484615b1b1f
2,541
py
Python
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from keras.utils import to_categorical from sklearn.model_selection import KFold, train_test_split def load_data(path): train = pd.read_json(os.path.join(path, "./train.json")) test = pd.read_json(os.path.join(path, "./test.json")) return (train, test) ...
34.337838
92
0.562377
354
2,541
3.776836
0.268362
0.044877
0.017951
0.026926
0.34555
0.293194
0.293194
0.231862
0.231862
0.231862
0
0.063673
0.307753
2,541
73
93
34.808219
0.696418
0
0
0.156863
0
0
0.025974
0
0
0
0.00551
0
0
1
0.078431
false
0
0.098039
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c839f4dc74ac86e89c284ecfbdaf987fd07d858
554
py
Python
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
""" A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. """ solved = False for a in range(1, 1000): for b in range(1, 1000): for c in range(...
24.086957
78
0.601083
101
554
3.29703
0.435644
0.03003
0.045045
0.108108
0.09009
0
0
0
0
0
0
0.099751
0.276173
554
23
79
24.086957
0.730673
0.409747
0
0.333333
0
0
0.1375
0
0
0
0
0
0
1
0
false
0
0
0
0
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
7c83aa67c0a65ae58c0709d1dc148cd1d75e4a56
2,862
py
Python
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
8
2015-01-05T07:04:02.000Z
2016-07-19T17:56:46.000Z
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
32
2015-03-18T18:51:00.000Z
2021-06-10T20:37:33.000Z
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
5
2015-02-10T21:15:32.000Z
2016-06-02T17:26:14.000Z
from decimal import Decimal import os from django.test import TestCase from unipath import Path from ....utils import refresh from ...media import tests from ..models import Transcript, TranscriptMedia MEDIA_TESTDATA_PATH = Path(tests.__file__).parent.child('testdata') RAW_MEDIA_PATH = MEDIA_TESTDATA_PATH.child('r...
33.27907
90
0.628931
347
2,862
5.051873
0.299712
0.162578
0.067884
0.079863
0.351398
0.351398
0.292641
0.292641
0.233314
0.208785
0
0.042416
0.242138
2,862
85
91
33.670588
0.765791
0.015024
0
0.15873
0
0
0.065364
0.020604
0
0
0
0
0.31746
1
0.047619
false
0
0.126984
0
0.206349
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
7c83fd89c702ba9d9dcb725c78535f9419ea8d70
2,771
py
Python
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import json import datetime import codecs import re featHolder = {} featHolder['name'] = 'Pathfinder 2.0 Ancestry feat list' featHolder['date'] = datetime.date.today().strftime("%B %d, %Y") def get_details(link): res = requests.get(link) res.raise_for_status() ...
34.209877
155
0.572717
347
2,771
4.518732
0.432277
0.013393
0.022959
0.030612
0.110969
0.110969
0.080357
0.080357
0.080357
0.080357
0
0.011846
0.268856
2,771
80
156
34.6375
0.762093
0.16817
0
0.103448
0
0
0.128272
0.023124
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c84005ad03ff1fb7961f46195db1060fc63cb16
861
py
Python
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
null
null
null
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
null
null
null
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
1
2020-03-07T10:53:30.000Z
2020-03-07T10:53:30.000Z
import random def Randomise(questions_lists): import random import secrets secure_random = secrets.SystemRandom()# creates a secure random object. group_of_items = questions_lists num_qustion_t_select = num_question_to_display list_of_random_item...
47.833333
86
0.682927
111
861
4.81982
0.522523
0.11215
0.061682
0.095327
0
0
0
0
0
0
0
0.004594
0.24158
861
17
87
50.647059
0.814701
0.283391
0
0.166667
0
0
0.047463
0.037643
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8421979f69cbc7cf5cd9ec5a87a153ab3efc74
1,228
py
Python
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
import unittest import scrape class TestScrapeFunctions(unittest.TestCase): def test_build_url(self): url = scrape.build_url("indeed", "/jobs?q=Data+Scientist&l=Texas&start=10", join_next=True) expected = ("https://www.indeed.com/" ...
34.111111
78
0.556189
135
1,228
4.881481
0.355556
0.084977
0.054628
0.081942
0.30349
0.30349
0.206373
0.141123
0
0
0
0.020238
0.315961
1,228
35
79
35.085714
0.764286
0
0
0.071429
0
0
0.220684
0.112378
0
0
0
0
0.214286
1
0.071429
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c85f5102089b2dbe1aa3c33bc6b5354992888f4
466
py
Python
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
2
2021-12-06T13:29:48.000Z
2022-01-20T11:39:45.000Z
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
null
null
null
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
null
null
null
import random # Create a deck of cards deck = [x for x in range(52)] # Create suits and ranks lists suits = ["Spades", "Hearts", "Diamonds", "Clubs"] ranks = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"] # Shuffle the cards random.shuffle(deck) # Display the first four card...
24.526316
61
0.575107
74
466
3.621622
0.621622
0.05597
0.052239
0
0
0
0
0
0
0
0
0.046448
0.214592
466
18
62
25.888889
0.685792
0.2103
0
0
0
0
0.192837
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
7c8673116b02c8c1dd21b123ad5da8653dbefe4c
3,410
py
Python
nlpgnn/gnn/RGCNConv.py
ojipadeson/NLPGNN
7c43d2f0cb2b16c046c930037fd505c5c4f36db4
[ "MIT" ]
263
2020-05-19T10:40:26.000Z
2022-03-25T05:22:49.000Z
nlpgnn/gnn/RGCNConv.py
Kuan-Louis/NLPGNN
b9ecec2c6df1b3e40a54511366dcb6085cf90c34
[ "MIT" ]
7
2020-05-18T23:02:55.000Z
2021-04-29T18:27:43.000Z
nlpgnn/gnn/RGCNConv.py
Kuan-Louis/NLPGNN
b9ecec2c6df1b3e40a54511366dcb6085cf90c34
[ "MIT" ]
56
2020-05-19T05:59:36.000Z
2022-03-14T06:21:33.000Z
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ @Author:Kaiyin Zhou Usage: node_embeddings = tf.random.normal(shape=(5, 3)) adjacency_lists = [ tf.constant([[0, 1], [2, 4], [2, 4]], dtype=tf.int32), tf.constant([[0, 1], [2, 4], [2, 4]], dtype=tf.int32) ] layer...
35.894737
97
0.575367
378
3,410
4.880952
0.325397
0.039024
0.04065
0.034688
0.211924
0.159892
0.115989
0.115989
0.115989
0.115989
0
0.013089
0.327859
3,410
94
98
36.276596
0.791885
0.172141
0
0.060606
0
0
0.010909
0
0
0
0
0
0
1
0.060606
false
0.030303
0.030303
0
0.136364
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
7c87af0c38dbd1633d14f5192f2da57d1ebe0d89
73,923
py
Python
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import ast from datetime import timedelta, datetime from random import randint from odoo import api, fields, models, tools, SUPERUSER_ID, _ from odoo.exceptions import UserError, AccessError, ValidationError, RedirectWa...
51.550209
249
0.645577
9,265
73,923
4.905343
0.07728
0.024358
0.006337
0.008009
0.40235
0.326351
0.266656
0.198513
0.167642
0.147597
0
0.002246
0.229009
73,923
1,433
250
51.586183
0.795171
0.069424
0
0.193772
0
0.013841
0.219468
0.037133
0
0
0
0.000698
0
1
0.086505
false
0
0.007785
0.00692
0.281142
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
7c8849369fcbb1dad3eb48e7b50645532c6e90e9
1,670
py
Python
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
5
2016-04-02T15:07:03.000Z
2021-06-25T14:48:55.000Z
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
2
2016-04-28T20:14:04.000Z
2016-05-01T18:37:05.000Z
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
1
2018-07-27T10:52:04.000Z
2018-07-27T10:52:04.000Z
# -*- coding: utf-8 -*- """ Config File for enviroment variables """ import os from importlib import import_module class Config(object): """ Base class for all config variables """ DEBUG = False TESTING = False DEVELOPMENT = False CSRF_ENABLED = True SQLALCHEMY_DATABASE_URI = os.envi...
23.521127
115
0.671856
199
1,670
5.502513
0.472362
0.080365
0.021918
0.054795
0
0
0
0
0
0
0
0.002317
0.224551
1,670
71
116
23.521127
0.843243
0.322156
0
0.137931
0
0
0.092885
0
0
0
0
0
0
1
0.034483
false
0.034483
0.172414
0
0.862069
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
7c88cdba00ccf459ff19909681f6bd97e0741c61
6,306
py
Python
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
import time import logger from basetestcase import BaseTestCase from couchbase_helper.documentgenerator import DocumentGenerator from membase.api.rest_client import RestConnection from couchbase_helper.documentgenerator import BlobGenerator class DocsTests(BaseTestCase): def setUp(self): super(DocsTests, ...
55.80531
121
0.579607
775
6,306
4.512258
0.234839
0.034315
0.04461
0.050043
0.498713
0.441807
0.391192
0.391192
0.391192
0.263655
0
0.025547
0.310974
6,306
112
122
56.303571
0.779287
0.018395
0
0.129032
0
0
0.098779
0
0
0
0
0
0
1
0.043011
false
0
0.064516
0
0.11828
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
7c898d721c85859465a77ce43f10791adda1d063
1,890
py
Python
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from urllib.request import urlretrieve ROOT = 'http://pdaotao.duytan.edu.vn' def get_url_sub(sub, id_, page): all_td_tag = [] for i in range(1, page+1): print('http://pdaotao.duytan.edu.vn/EXAM_LIST/?page={}&lang=VN'.format(i)) r = requests.get('ht...
35
93
0.595767
282
1,890
3.787234
0.319149
0.060861
0.044944
0.050562
0.364232
0.291199
0.235019
0.161985
0.161985
0.161985
0
0.014199
0.21746
1,890
53
94
35.660377
0.707911
0.044444
0
0.046512
0
0
0.199002
0.012749
0
0
0
0
0
1
0.069767
false
0
0.069767
0
0.209302
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8a2cc8e8cd0ae17cdb81c0889eb3b2e10339c2
10,998
py
Python
appengine/uploader/main.py
isabella232/feedloader
c0417480804d406a83d1aedcb7e7d719058fdbfd
[ "Apache-2.0" ]
5
2021-02-15T12:49:12.000Z
2022-01-12T06:28:41.000Z
appengine/uploader/main.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
1
2021-06-18T15:30:16.000Z
2021-06-18T15:30:16.000Z
appengine/uploader/main.py
isabella232/feedloader
c0417480804d406a83d1aedcb7e7d719058fdbfd
[ "Apache-2.0" ]
4
2021-02-16T17:28:00.000Z
2021-06-18T15:27:52.000Z
# coding=utf-8 # Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
38.055363
148
0.738498
1,489
10,998
5.247817
0.209537
0.023036
0.019196
0.012798
0.316995
0.256207
0.206808
0.182109
0.171871
0.1441
0
0.002681
0.185943
10,998
288
149
38.1875
0.870099
0.307965
0
0.164557
0
0.025316
0.130639
0.017991
0
0
0
0
0
1
0.050633
false
0
0.113924
0
0.259494
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
7c8a6aee7b7a77f1d1c85df07a12dedc044587d5
17,730
py
Python
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
BadDevCode/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
""" Implement transformation on Numba IR """ from __future__ import absolute_import, print_function from collections import namedtuple, defaultdict import logging from numba.analysis import compute_cfg_from_blocks, find_top_level_loops from numba import ir, errors, ir_utils from numba.analysis import compute_use_def...
33.579545
84
0.60846
2,184
17,730
4.779762
0.184982
0.013794
0.022991
0.01389
0.164096
0.110547
0.059584
0.039659
0.031804
0.031804
0
0.002125
0.310039
17,730
527
85
33.643264
0.851222
0.182121
0
0.120235
0
0
0.06584
0.002592
0
0
0
0
0.008798
1
0.085044
false
0
0.026393
0.005865
0.196481
0.002933
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8a815c2ee01b343fc690c138951a4c479fece7
6,453
py
Python
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
1
2022-01-04T21:38:23.000Z
2022-01-04T21:38:23.000Z
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
null
null
null
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
null
null
null
import os import unittest from unittest import skipUnless import numpy as np from numpy.testing import assert_array_equal from parameterized import parameterized from monai.apps.pathology.datasets import MaskedInferenceWSIDataset from monai.apps.utils import download_url from monai.utils import optional_import from t...
27
95
0.501937
681
6,453
4.53304
0.152717
0.071914
0.067055
0.068027
0.580175
0.56495
0.556527
0.537739
0.526401
0.514091
0
0.08339
0.314272
6,453
238
96
27.113445
0.614237
0
0
0.399061
0
0.004695
0.158841
0.004959
0
0
0
0
0.023474
1
0.023474
false
0
0.056338
0
0.084507
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
7c8eb61b685c469f781463c9f7be05e90e8308c7
1,408
py
Python
neural_network/backup_casestudy/denbigh/tf_RNN.py
acceleratedmaterials/AMDworkshop_demo
e7c2b931e023fc00ff7494b8acb2181f5c75bc4e
[ "MIT" ]
5
2019-04-02T03:20:43.000Z
2021-07-13T18:23:26.000Z
neural_network/backup_casestudy/denbigh/tf_RNN.py
NUS-SSE/AMDworkshop_demo
edbd6c60957dd0d83c3ef43c7e9e28ef1fef3bd9
[ "MIT" ]
null
null
null
neural_network/backup_casestudy/denbigh/tf_RNN.py
NUS-SSE/AMDworkshop_demo
edbd6c60957dd0d83c3ef43c7e9e28ef1fef3bd9
[ "MIT" ]
5
2019-05-12T17:41:58.000Z
2021-06-08T04:38:35.000Z
# -*- coding: utf-8 -*- ''' Framework: Tensorflow Training samples: 1600 Validation samples: 400 RNN with 128 units Optimizer: Adam Epoch: 100 Loss: Cross Entropy Activation function: Relu for network and Soft-max for regression Regularization: Drop-out, keep_prob = 0.8 Accuracy of Validation set: 95% ''' from __future...
37.052632
76
0.769176
214
1,408
4.897196
0.490654
0.04771
0.017176
0.028626
0
0
0
0
0
0
0
0.039216
0.130682
1,408
38
77
37.052632
0.816993
0.371449
0
0
0
0
0.052874
0.027586
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8eba30a07960e7e0f748300f8823eed9acd88c
5,569
py
Python
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
2
2018-04-15T06:13:41.000Z
2019-07-25T20:22:34.000Z
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
1
2020-11-10T04:51:36.000Z
2020-11-10T04:51:36.000Z
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
3
2018-08-08T08:48:04.000Z
2020-02-10T09:52:41.000Z
import numpy as np import tensorflow as tf H = 2 N = 2 M = 3 BS = 10 def my_softmax(arr): max_elements = np.reshape(np.max(arr, axis = 2), (BS, N, 1)) arr = arr - max_elements exp_array = np.exp(arr) print (exp_array) sum_array = np.reshape(np.sum(exp_array, axis=2), (BS, N, 1)) return exp_arra...
41.87218
99
0.625606
978
5,569
3.40593
0.160532
0.019814
0.018013
0.018013
0.208646
0.104773
0.059442
0.02882
0
0
0
0.050568
0.225893
5,569
132
100
42.189394
0.722106
0.223379
0
0
0
0
0.039499
0
0
0
0
0
0.042553
1
0.074468
false
0
0.021277
0
0.170213
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8edd5a1cedfd0895ce2bb9c6148ce0241c7af7
7,174
py
Python
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from astropy import convolution from scipy.signal import medfilt import astropy.units as u from ..spectra.spectrum1d import Spectrum1D from ..tests.spectral_examples import simulated_spectra from ..manipulation.smoothing import (convolution_smooth, box_smooth, ...
32.609091
98
0.730694
940
7,174
5.393617
0.156383
0.059961
0.037475
0.051479
0.63787
0.608679
0.594675
0.531558
0.509467
0.509467
0
0.023034
0.195149
7,174
219
99
32.757991
0.85504
0.340117
0
0.432099
0
0
0.01071
0
0
0
0
0
0.123457
1
0.123457
false
0
0.098765
0
0.222222
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
7c909452f19de7c50d60c569038b33d1b55f15c0
909
py
Python
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
null
null
null
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
null
null
null
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
2
2020-09-01T13:02:49.000Z
2021-08-15T09:10:17.000Z
"""Module interpolating mathematical functions out of support points""" from scipy.interpolate import interp1d, lagrange, CubicSpline def interpolator(x_sup, y_sup, method): """Interpolates a mathematical function from a given set of points using either linear, polynomial or cubic spline for the interpol...
29.322581
71
0.672167
113
909
5.309735
0.495575
0.033333
0.033333
0.053333
0
0
0
0
0
0
0
0.002933
0.249725
909
30
72
30.3
0.876833
0.454345
0
0.25
0
0
0.080357
0
0
0
0
0
0
1
0.083333
false
0
0.083333
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
7c9227a3cbdbdfda32f8e1f7af19e23d5f84fca1
946
py
Python
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
import json import matplotlib.pyplot as plt from pprint import pprint import numpy as np from scipy.stats import linregress from util.stats import * with open('data/game_stats.json', 'r') as f: df = json.load(f) X, y = [], [] for match, stats in df.items(): home, away = stats['home'], stats['away'] if home['mp'] !...
22
51
0.64482
167
946
3.60479
0.443114
0.016611
0.039867
0
0
0
0
0
0
0
0
0.010152
0.167019
946
43
52
22
0.753807
0
0
0
0
0
0.119324
0
0
0
0
0
0
1
0
false
0
0.171429
0
0.171429
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
7c924b0af1eb750ce0d3f38bab21b79619b4ba48
6,255
py
Python
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator from keras.preprocessing.image import img_to_array, load_img from keras.utils.np_utils import to_categorical from sklearn.model_selection import StratifiedShuffleSplit from sklearn.preproces...
36.794118
116
0.672422
976
6,255
4.036885
0.17623
0.016244
0.007614
0.013959
0.371574
0.313706
0.232995
0.218782
0.218782
0.196447
0
0.014229
0.191047
6,255
169
117
37.011834
0.764427
0.040608
0
0.125984
0
0
0.078552
0.011341
0
0
0
0
0
1
0.086614
false
0
0.070866
0.023622
0.228346
0.125984
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c93f115e357ee6abe4ee6a425a0e90b87246382
1,834
py
Python
setup.py
Parquery/pynumenc
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
1
2018-11-09T16:16:08.000Z
2018-11-09T16:16:08.000Z
setup.py
Parquery/numenc-py
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
2
2018-11-09T12:51:40.000Z
2018-11-09T12:53:55.000Z
setup.py
Parquery/pynumenc
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
2
2019-02-26T12:40:11.000Z
2019-06-17T07:42:35.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import os from setuptools import setup, find_packages, Extension import pynumenc_meta # pylint: disable=redefined-builtin here = os.path.abspath(os.path.dirname(__file__)) # ...
31.084746
81
0.630316
211
1,834
5.241706
0.563981
0.086799
0.036166
0.0434
0.050633
0
0
0
0
0
0
0.022933
0.215376
1,834
58
82
31.62069
0.745657
0.138495
0
0.046512
0
0
0.327597
0.01912
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
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
7c95786ebe742f8164fbbe85994a95220ade7338
3,074
py
Python
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
147
2018-12-23T09:44:36.000Z
2022-03-03T15:38:33.000Z
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
17
2018-12-25T16:04:34.000Z
2022-01-13T00:44:21.000Z
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
77
2018-12-19T03:03:14.000Z
2022-03-13T17:00:38.000Z
import numpy as np from skimage.transform import resize from skimage import measure from skimage.measure import regionprops class OCROnObjects(): def __init__(self, license_plate): character_objects = self.identify_boundary_objects(license_plate) self.get_regions(character_objects, license_pla...
43.914286
155
0.59987
327
3,074
5.464832
0.311927
0.120873
0.094572
0.080582
0.266928
0.266928
0.201455
0.201455
0.158926
0.105204
0
0.026005
0.311971
3,074
70
156
43.914286
0.818913
0.130124
0
0.22449
0
0
0.011705
0
0
0
0
0
0
1
0.061224
false
0
0.081633
0
0.204082
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
7c974ea9b476fd86b7ac61a4ae4dbd0512a02f64
1,711
py
Python
letsencrypt/setup.py
ccppuu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
1
2017-12-20T20:06:11.000Z
2017-12-20T20:06:11.000Z
letsencrypt/setup.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
letsencrypt/setup.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
import codecs import os import sys from setuptools import setup from setuptools import find_packages def read_file(filename, encoding='utf8'): """Read unicode from given file.""" with codecs.open(filename, encoding=encoding) as fd: return fd.read() here = os.path.abspath(os.path.dirname(__file__)) ...
27.15873
61
0.630625
180
1,711
5.9
0.555556
0.071563
0.094162
0.073446
0
0
0
0
0
0
0
0.009946
0.236119
1,711
62
62
27.596774
0.802601
0.043834
0
0.041667
0
0
0.442331
0.015951
0
0
0
0
0
1
0.020833
false
0
0.104167
0
0.145833
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
7c9af51ba1243be5af3bd0e724c771174bb964d2
1,007
py
Python
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
1
2020-06-04T09:23:19.000Z
2020-06-04T09:23:19.000Z
def marcs_cakewalk(calorie): """Hackerrank Problem: https://www.hackerrank.com/challenges/marcs-cakewalk/problem Marc loves cupcakes, but he also likes to stay fit. Each cupcake has a calorie count, and Marc can walk a distance to expend those calories. If Marc has eaten j cupcakes so far, after eating a c...
37.296296
118
0.683217
154
1,007
4.38961
0.590909
0.096154
0.08432
0.056213
0
0
0
0
0
0
0
0.026008
0.236346
1,007
26
119
38.730769
0.853056
0.631579
0
0
0
0
0.024691
0
0
0
0
0
0.333333
1
0.111111
false
0
0
0
0.222222
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
7c9bc57e7e9891072399e9288ee87401c640bfb4
1,583
py
Python
coronaindiatracker/coronatracker/views.py
ankitgoswami23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
2
2020-07-26T05:57:27.000Z
2020-07-26T07:12:15.000Z
coronaindiatracker/coronatracker/views.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
null
null
null
coronaindiatracker/coronatracker/views.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
1
2020-11-26T08:52:11.000Z
2020-11-26T08:52:11.000Z
from django.shortcuts import render import requests from bs4 import BeautifulSoup def corona_data(request): "Testaaaa" corona_html = requests.get("https://www.mygov.in/covid-19") soup = BeautifulSoup(corona_html.content, 'html.parser') state_wise_data = soup.find_all('div', class_='views-row') inf...
45.228571
113
0.642451
201
1,583
4.840796
0.323383
0.071942
0.051387
0.077081
0.274409
0.248715
0.057554
0
0
0
0
0.009112
0.168035
1,583
34
114
46.558824
0.729689
0.005054
0
0
0
0
0.245736
0.013266
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
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
7c9c1524555fded271e617bca48b5b1e6a1e9ace
6,082
py
Python
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
3
2019-10-09T19:42:12.000Z
2021-05-28T00:10:54.000Z
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
1
2019-09-11T16:37:59.000Z
2019-09-11T16:37:59.000Z
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
3
2019-09-10T20:41:59.000Z
2019-09-10T20:42:57.000Z
# Script tests GPD model using UW truth data # Test outputs: # - type of event tested [EQS, EQP, SUS, SUP, THS, THP, SNS, SNP, PXS, PXP] # - phase [P, S, N] Note: N - not detected # - model time offset (t_truth - t_model_pick) import numpy import math import string import datetime import sys import os im...
37.312883
132
0.561822
824
6,082
4.01335
0.231796
0.023284
0.012096
0.015119
0.180224
0.151799
0.125189
0.125189
0.112489
0.112489
0
0.014822
0.290036
6,082
162
133
37.54321
0.751042
0.162775
0
0.101563
0
0
0.06065
0
0
0
0
0
0
1
0.0625
false
0.007813
0.070313
0
0.1875
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
7c9c7b65355934d322e4085f42e442dbe2ee0d7d
7,012
py
Python
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
null
null
null
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
7
2020-03-27T03:33:52.000Z
2020-03-30T02:33:04.000Z
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
null
null
null
import argparse import boto3 import datetime import json import os import posixpath import re import shutil import tempfile import uuid from concurrent import futures from multiprocessing import Pool from ultitrackerapi import get_backend, get_logger, get_s3Client, video backend_instance = get_backend() logger = ...
33.711538
138
0.673987
829
7,012
5.359469
0.19421
0.049516
0.079226
0.103984
0.367995
0.345712
0.269187
0.160927
0.059194
0.022507
0
0.005557
0.230034
7,012
208
139
33.711538
0.817374
0.00328
0
0.143713
0
0
0.23941
0.085861
0
0
0
0
0
1
0.02994
false
0
0.077844
0
0.113772
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
7c9c87d15e24804e84e87528b8a9f5ba5b08422f
3,265
py
Python
Chapter03/scikit_soft_voting_2knn.py
PacktPublishing/Hands-On-Ensemble-Learning-with-Python
db9b90189dbebbc6ab5ebba0e2e173ba80197c35
[ "MIT" ]
31
2019-07-21T00:36:52.000Z
2022-02-25T15:38:21.000Z
Chapter03/scikit_soft_voting_2knn.py
tokiran/Hands-On-Ensemble-Learning-with-Python
739ecda33fb75dc1df1366abf4a79c34cc0c2026
[ "MIT" ]
null
null
null
Chapter03/scikit_soft_voting_2knn.py
tokiran/Hands-On-Ensemble-Learning-with-Python
739ecda33fb75dc1df1366abf4a79c34cc0c2026
[ "MIT" ]
30
2019-07-06T00:22:44.000Z
2022-02-04T02:44:17.000Z
# --- SECTION 1 --- # Import the required libraries from sklearn import datasets, naive_bayes, svm, neighbors from sklearn.ensemble import VotingClassifier from sklearn.metrics import accuracy_score # Load the dataset breast_cancer = datasets.load_breast_cancer() x, y = breast_cancer.data, breast_cancer.target ...
28.640351
92
0.67902
471
3,265
4.5138
0.26327
0.023518
0.016463
0.028222
0.182502
0.085607
0
0
0
0
0
0.032148
0.190199
3,265
113
93
28.893805
0.771936
0.266156
0
0
0
0
0.053452
0
0
0
0
0
0
1
0
false
0
0.087719
0
0.087719
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca170e48f979878209316e327d77080c8c15058
2,662
py
Python
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
504
2018-12-15T16:34:03.000Z
2022-03-26T11:24:53.000Z
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
746
2018-12-16T16:44:42.000Z
2021-07-10T16:59:43.000Z
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
421
2018-12-22T14:49:00.000Z
2022-03-04T09:47:07.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.028571
78
0.696093
369
2,662
4.850949
0.403794
0.086034
0.06648
0.058659
0.157542
0.075978
0.036872
0.036872
0
0
0
0.011967
0.215252
2,662
69
79
38.57971
0.844902
0.258077
0
0.051282
0
0
0.026194
0
0
0
0
0
0
1
0.025641
false
0
0.205128
0
0.25641
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
7ca18b95086348a6dec0e89454f15ffded086574
16,864
py
Python
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
null
null
null
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
5
2017-12-26T14:22:20.000Z
2018-04-02T02:56:38.000Z
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
1
2021-03-12T09:45:04.000Z
2021-03-12T09:45:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import json import mock import pytest from oauthlib.oauth2 import InvalidRequestFatalError from oauthlib.common import Request as OAuthRequest from pyramid import httpexceptions from h._compat import urlparse from h.exceptions import O...
41.131707
147
0.694141
1,895
16,864
5.864908
0.111346
0.089437
0.027533
0.019435
0.684002
0.610041
0.560464
0.511337
0.474087
0.456271
0
0.007584
0.21027
16,864
409
148
41.232274
0.826926
0.001245
0
0.446254
0
0.003257
0.10801
0.013063
0
0
0
0
0.117264
1
0.153094
false
0
0.055375
0.009772
0.273616
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
7ca1d5b32a32a25d088eb63410921b9a5e64742f
1,306
py
Python
tools/build/v2/test/conditionals.py
juslee/boost-svn
6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb
[ "BSL-1.0" ]
1
2018-12-15T19:55:56.000Z
2018-12-15T19:55:56.000Z
tools/build/v2/test/conditionals.py
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
tools/build/v2/test/conditionals.py
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/python # Copyright 2003 Dave Abrahams # Copyright 2002, 2003, 2004 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test conditional properties. import BoostBuild t = BoostBuild.Tester(...
26.653061
78
0.712864
204
1,306
4.5
0.436275
0.098039
0.042484
0.052288
0.396514
0.305011
0.305011
0.305011
0.239651
0.239651
0
0.019147
0.120214
1,306
48
79
27.208333
0.779809
0.420368
0
0.5
0
0
0.560484
0.254032
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca44058ba24c0424d8558e54e0f3abd230491fa
12,813
py
Python
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
import time from typing import Dict, List, Tuple, Optional from utils.logger_utils import LogManager from utils.str_utils import check_is_json from config import LOG_LEVEL, PROCESS_STATUS_FAIL from utils.time_utils import datetime_str_change_fmt from utils.exception_utils import LoginException, ParseDataException from...
42.287129
157
0.558807
1,371
12,813
4.873085
0.170678
0.048496
0.050292
0.019907
0.340668
0.256698
0.210148
0.161054
0.115552
0.094896
0
0.004866
0.342387
12,813
302
158
42.427152
0.788037
0.008039
0
0.172414
0
0
0.117652
0.039296
0
0
0
0.003311
0
1
0.030651
false
0.011494
0.034483
0
0.095785
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
7ca486af10b1cca3904ea233b441a3077ec0bb6b
3,653
py
Python
NAS/PaddleSlim/train_supernet.py
naviocean/SimpleCVReproduction
61b43e3583977f42e6f91ef176ec5e1701e98d33
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
NAS/PaddleSlim/train_supernet.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
NAS/PaddleSlim/train_supernet.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
from paddle.vision.transforms import ( ToTensor, RandomHorizontalFlip, RandomResizedCrop, SaturationTransform, Compose, HueTransform, BrightnessTransform, ContrastTransform, RandomCrop, Normalize, RandomRotation ) from paddle.vision.datasets import Cifar100 from paddle.io import DataLoader from paddle.optimizer...
33.209091
108
0.680537
505
3,653
4.786139
0.306931
0.050062
0.056268
0.019859
0.274721
0.228382
0.201076
0.189905
0.189905
0.169632
0
0.112231
0.185327
3,653
109
109
33.513761
0.699933
0.163701
0
0.093023
0
0
0.040736
0.031866
0
0
0
0
0
1
0
false
0
0.116279
0
0.116279
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
7ca4b5308f48cb161081920789f0cfaed577f79d
28,560
py
Python
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present phenom4n4n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
37.777778
165
0.630882
3,365
28,560
5.211293
0.144131
0.021442
0.040203
0.058964
0.401175
0.324133
0.271499
0.229642
0.203923
0.152372
0
0.003117
0.269818
28,560
755
166
37.827815
0.837585
0.042647
0
0.305369
0
0.001678
0.129653
0.013486
0
0
0.000315
0
0
1
0.006711
false
0.003356
0.031879
0
0.072148
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
7ca53e88f3dd2e94b942b008b7daf5b989a2b7df
3,493
py
Python
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
import json import re from string import ascii_uppercase from time import time from urllib.parse import urljoin import scrapy from more_itertools import first from scrapy import Request from product_spider.items import JkProduct, JKPackage from product_spider.utils.functions import strip class JkPrdSpider(scrapy.Sp...
45.960526
142
0.566562
441
3,493
4.328798
0.310658
0.015715
0.026192
0.03143
0.147721
0.080671
0.030382
0.030382
0
0
0
0.004958
0.249356
3,493
75
143
46.573333
0.723112
0
0
0
0
0.015152
0.23361
0.073862
0
0
0
0
0
1
0.045455
false
0
0.151515
0
0.287879
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
7ca69cf8d56aa0d6b0aa339f56249d7cdfe3ab0c
15,717
py
Python
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
4
2021-03-11T03:05:31.000Z
2022-03-22T08:45:20.000Z
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
null
null
null
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
5
2021-06-18T11:32:34.000Z
2021-12-31T08:10:51.000Z
import os import sys import random import datetime import gym from gym import spaces import numpy as np from env.IDM import IDM from env.Road import Road from env.Vehicle import Vehicle import math # add sumo/tools into python environment if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], ...
40.507732
131
0.56283
1,965
15,717
4.38117
0.17659
0.062609
0.029388
0.026135
0.324196
0.261819
0.220815
0.176559
0.140434
0.128238
0
0.023418
0.326207
15,717
387
132
40.612403
0.789518
0.306674
0
0.153846
0
0
0.049113
0.016498
0
0
0
0.005168
0.027149
1
0.054299
false
0
0.054299
0.004525
0.140271
0.004525
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca6e02f50310d3c489fa5cfd14dac9866b27eaa
5,466
py
Python
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
1
2021-11-10T12:56:09.000Z
2021-11-10T12:56:09.000Z
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
null
null
null
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
1
2021-11-05T03:16:32.000Z
2021-11-05T03:16:32.000Z
import boto3 import ipaddress import json import logging import os import requests import uuid logger = logging.getLogger() logger.setLevel(logging.INFO) dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.environ['DYNAMODB_TABLE']) client = boto3.client('ssm') def downloader(instance, latest, param...
47.12069
115
0.51921
486
5,466
5.794239
0.228395
0.035156
0.042614
0.049006
0.527699
0.470881
0.470881
0.401634
0.323509
0.323509
0
0.016733
0.354921
5,466
115
116
47.530435
0.781906
0
0
0.135922
0
0
0.212221
0
0
0
0
0
0
1
0.019417
false
0.009709
0.067961
0
0.097087
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