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
430437fe39813c58d169d2be946182b08eb80151
200
py
Python
hoover/site/wsgi.py
hoover/hoover
84053b2479e966b0f639692c9e226261e3188709
[ "MIT" ]
15
2016-08-18T10:48:06.000Z
2019-10-15T14:41:20.000Z
hoover/site/wsgi.py
hoover/hoover
84053b2479e966b0f639692c9e226261e3188709
[ "MIT" ]
88
2019-10-28T14:55:16.000Z
2021-05-14T12:42:52.000Z
hoover/site/wsgi.py
hoover/hoover
84053b2479e966b0f639692c9e226261e3188709
[ "MIT" ]
14
2016-09-27T13:11:57.000Z
2019-10-08T23:33:59.000Z
from . import events # noqa from django.core.wsgi import get_wsgi_application import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hoover.site.settings") application = get_wsgi_application()
25
71
0.81
27
200
5.777778
0.592593
0.089744
0.230769
0
0
0
0
0
0
0
0
0
0.1
200
7
72
28.571429
0.866667
0.02
0
0
0
0
0.216495
0.113402
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
4304c73b6843ca7119c4f1f8d49418f514b2fb58
9,413
py
Python
submodules/hal/analysis/constraintTurnover/turnoverModel.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
submodules/hal/analysis/constraintTurnover/turnoverModel.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
submodules/hal/analysis/constraintTurnover/turnoverModel.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python #Copyright (C) 2013 by Glenn Hickey # #Released under the MIT license, see LICENSE.txt #!/usr/bin/env python """This is a two-state continuous time markov model: 0: unconstratined. 1: constrained. There are two transition rates to go between states. lossRate: 1->0 and gainRate: 0->1. Probabi...
38.577869
282
0.566769
1,185
9,413
4.486076
0.211814
0.008653
0.031979
0.007524
0.382995
0.300038
0.233634
0.179458
0.160647
0.11851
0
0.030332
0.327526
9,413
243
283
38.736626
0.809479
0.17359
0
0.271277
0
0.005319
0.053083
0.00429
0
0
0
0
0.058511
0
null
null
0
0.053191
null
null
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
430510812312a4bfda7f6ca962f49716cd0833a8
3,610
py
Python
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
from django.test import TestCase from .validators import validate_budget_period from .models import Budget, Expense, Payment from django.contrib.auth.models import User from django.core.exceptions import ValidationError class ExpenseTestCases(TestCase): def setUp(self) -> None: user = User.objects.create...
39.67033
122
0.495568
351
3,610
4.977208
0.376068
0.052089
0.048655
0.022324
0.172868
0.130509
0.130509
0.130509
0.087006
0.087006
0
0.043236
0.404155
3,610
90
123
40.111111
0.768945
0
0
0.1125
0
0
0.187535
0
0
0
0
0
0.075
1
0.0625
false
0.025
0.0625
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43064e88b72bbd60715e819272f83d07fbf6fa68
322
py
Python
feed/migrations/0002_remove_player_finished_decks.py
kubapi/hater
fe4ef653e169143b9ea8cc17494e8e35b2a7bc76
[ "MIT" ]
null
null
null
feed/migrations/0002_remove_player_finished_decks.py
kubapi/hater
fe4ef653e169143b9ea8cc17494e8e35b2a7bc76
[ "MIT" ]
null
null
null
feed/migrations/0002_remove_player_finished_decks.py
kubapi/hater
fe4ef653e169143b9ea8cc17494e8e35b2a7bc76
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-13 19:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('feed', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='player', name='finished_decks', ), ...
17.888889
47
0.583851
34
322
5.441176
0.823529
0
0
0
0
0
0
0
0
0
0
0.084444
0.301242
322
17
48
18.941176
0.737778
0.139752
0
0
1
0
0.130909
0
0
0
0
0
0
1
0
false
0
0.090909
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4306c6bd0579b126c04f1694e74e21eaed99d124
3,440
py
Python
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re from spack.package import * class Abacus(MakefilePackage): """ABACUS (Atomic-orbital Based Ab-initio Com...
29.655172
92
0.57907
379
3,440
5.139842
0.440633
0.032341
0.01848
0.034908
0.205852
0.188398
0.12885
0.067248
0.032854
0
0
0.085351
0.29157
3,440
115
93
29.913043
0.713993
0.115407
0
0.113636
0
0.011364
0.274081
0.100629
0
0
0
0
0
1
0.022727
false
0.022727
0.022727
0
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4307d8063e06e64e479cf930dd3456b183590f95
98
py
Python
test/regression/features/arithmetic/mult.py
ppelleti/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
137
2015-02-13T21:03:23.000Z
2021-11-24T03:53:55.000Z
test/regression/features/arithmetic/mult.py
ppelleti/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
4
2015-04-01T13:49:13.000Z
2019-07-09T19:28:56.000Z
test/regression/features/arithmetic/mult.py
bjpop/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
8
2015-04-25T03:47:52.000Z
2019-07-27T06:33:56.000Z
print(18 * 1234) print(18 * 1234 * 2) print(0 * 1) print(1 * 0) print(0.0 * 1.0) print(1.0 * 0.0)
14
20
0.561224
23
98
2.391304
0.26087
0.109091
0.4
0
0
0
0
0
0
0
0
0.320513
0.204082
98
6
21
16.333333
0.384615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
4307e6cee1e0a5d05e36c874e743174e0b006360
354
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh02p05st15C09_20200411.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh02p05st15C09_20200411.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh02p05st15C09_20200411.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
num = int(input()) d1 = (num % 10 ** 4) // 10 ** 3 d2 = (num % 10 ** 3) // 10 ** 2 d3 = (num % 10 ** 2) // 10 d4 = num % 10 print("Цифра в позиции тысяч равна", d1) print("Цифра в позиции сотен равна", d2) print("Цифра в позиции десятков равна", d3) print("Цифра в позиции единиц равна", d4) # print("Python", , "is the ...
27.230769
43
0.596045
61
354
3.42623
0.42623
0.095694
0.210526
0.344498
0
0
0
0
0
0
0
0.103943
0.211864
354
12
44
29.5
0.645161
0.090395
0
0
0
0
0.35
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
43099e0956c66d804368b7d95ddbb6f01a3756de
2,349
py
Python
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
import csv from os import listdir from os.path import isfile, join from osgeo import ogr from multiprocessing import Pool driver = ogr.GetDriverByName('GeoJSON') countryFile = driver.Open("../data/external/countries.json") layer = countryFile.GetLayer() class Point(object): """ Wrapper for ogr point """ de...
27.313953
116
0.635164
313
2,349
4.670927
0.399361
0.03078
0.028728
0.025992
0.099863
0
0
0
0
0
0
0.012557
0.254151
2,349
85
117
27.635294
0.821918
0.168157
0
0
0
0
0.093048
0.016205
0
0
0
0
0
1
0.16
false
0
0.1
0.08
0.46
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430aa61162281dff31190e84ebaac0dead9910f0
3,126
py
Python
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
import cv2 import numpy as np def process_core(image): ''' Returns an inverted preprocessed binary image, with noise reduction achieved with greyscaling, Gaussian Blur, Otsu's Threshold, and an open morph. ''' #apply greyscaling, Gaussian Blur, and Otsu's Threshold greyscale = cv2.cvtColor...
35.931034
102
0.636596
408
3,126
4.796569
0.39951
0.035769
0.024527
0.022994
0.094021
0.031681
0.031681
0
0
0
0
0.037428
0.273512
3,126
86
103
36.348837
0.824306
0.252399
0
0.044444
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.022222
0.044444
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
430abd204ed6b789ffeb3c172d2bcf921345ff43
7,419
py
Python
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
2
2019-05-23T02:07:03.000Z
2019-06-08T18:56:05.000Z
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. """ Tasks come above datasets in hierarchy level. In case you want to implement a new task, you need to inherit ``BaseTask`` class. You need to implement ``_get_available_datasets`` and ``_preprocess_item`` functions to complete the implementation. You can check the so...
31.841202
91
0.604529
845
7,419
5.11716
0.276923
0.041628
0.032377
0.022202
0.157493
0.106383
0.021277
0
0
0
0
0.002162
0.314059
7,419
232
92
31.978448
0.847514
0.298558
0
0.078947
0
0
0.110634
0.014315
0
0
0
0.00431
0
1
0.131579
false
0.008772
0.035088
0.026316
0.22807
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430bbb9266cf6f1301fe26015af1bcd016d7ae1a
862
py
Python
src/gauss_n.py
Konstantysz/InterGen
1a1d0bde165f864daea70c6339a9b8426343fdd9
[ "MIT" ]
null
null
null
src/gauss_n.py
Konstantysz/InterGen
1a1d0bde165f864daea70c6339a9b8426343fdd9
[ "MIT" ]
null
null
null
src/gauss_n.py
Konstantysz/InterGen
1a1d0bde165f864daea70c6339a9b8426343fdd9
[ "MIT" ]
null
null
null
from numba import jit import numpy as np @jit(nopython=True, parallel=True) def gauss_n(X, Y, mu_x = 0.0, mu_y = 0.0, amp = 1.0, sigma = 3.0): ''' Function that generates 2D discrete gaussian distribution. Boosted with Numba: works in C and with parallel computing. Parameters ---------- X : nu...
26.121212
66
0.598608
120
862
4.241667
0.441667
0.157171
0.086444
0.11002
0.117878
0
0
0
0
0
0
0.021595
0.301624
862
33
67
26.121212
0.82392
0.588167
0
0
1
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
430c4f20a5d171398035a332ff9b2e75bf80435b
5,403
py
Python
satori.core/satori/core/export/pc.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
4
2021-01-05T01:35:36.000Z
2021-12-13T00:05:14.000Z
satori.core/satori/core/export/pc.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2020-06-06T01:12:07.000Z
2020-06-06T01:16:01.000Z
satori.core/satori/core/export/pc.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2021-01-05T01:33:30.000Z
2021-03-06T13:48:21.000Z
# vim:ts=4:sts=4:sw=4:expandtab from token import token_container from satori.core.export.type_helpers import DefineException AccessDenied = DefineException('AccessDenied', 'You don\'t have rights to call this procedure') class PCDeny(object): def __call__(__pc__self, **kwargs): return False def __...
29.686813
105
0.661299
726
5,403
4.044077
0.129477
0.21049
0.105586
0.061989
0.698569
0.679496
0.629428
0.521798
0.480586
0.455041
0
0.00406
0.22506
5,403
181
106
29.850829
0.697158
0.005367
0
0.484375
0
0.023438
0.054366
0
0
0
0
0
0
1
0.320313
false
0
0.023438
0.179688
0.710938
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
430c92ccfdcf3dc35e86f6e05e4602bd002c581a
6,982
py
Python
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
null
null
null
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
1
2019-11-12T03:52:01.000Z
2019-11-12T03:52:01.000Z
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
null
null
null
# Copyright 2021 Alexis Lopez Zubieta # # 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, publi...
37.138298
83
0.660556
741
6,982
6.016194
0.221323
0.046658
0.060565
0.040377
0.200763
0.131898
0.083445
0.023777
0.023777
0
0
0.001747
0.262246
6,982
187
84
37.336898
0.863716
0.092524
0
0.19863
0
0
0.036076
0.003797
0
0
0
0
0
1
0.054795
false
0
0.10274
0.006849
0.219178
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430cfcded466d6e4b55330f3c637f5af1e8d4960
2,743
py
Python
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
# python3 --> Enter Python Shell # from geocode import getGeocodeLocation # getGeocodeLocation("Place you wanto to query") import httplib2 import json def getGeocodeLocation(inputString): google_api_key = "AIzaSyDZHGnbFkjZcOEgYPpDqlO2YhBHKsNxhnE" locatationString = inputString.replace(" ", "+") url = ('...
66.902439
932
0.679913
329
2,743
5.580547
0.483283
0.071895
0.034858
0.052288
0.147059
0.107843
0.051198
0.051198
0.051198
0
0
0.093788
0.102078
2,743
40
933
68.575
0.651644
0.771783
0
0
0
0.083333
0.267652
0.064039
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
430da45d8833848dec38a5b05491d18df5c37b6a
1,717
py
Python
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
null
null
null
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
50
2021-03-28T03:06:19.000Z
2021-10-18T12:36:16.000Z
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
1
2021-07-30T07:12:46.000Z
2021-07-30T07:12:46.000Z
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
27.253968
78
0.670355
219
1,717
5.146119
0.47032
0.063886
0.034605
0.050577
0.333629
0.310559
0.202307
0.202307
0.202307
0.202307
0
0.013657
0.232382
1,717
62
79
27.693548
0.841426
0.39371
0
0.628571
0
0
0.219748
0.022265
0
0
0
0
0
1
0.171429
false
0
0
0
0.457143
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430dcb1829dec99ac70255fe07e1c633f6a84f85
5,877
py
Python
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
null
null
null
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
1
2018-11-30T14:09:40.000Z
2018-12-03T12:41:01.000Z
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2018 Aaron Michael Scott 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, pu...
34.775148
109
0.612047
740
5,877
4.791892
0.291892
0.060914
0.037225
0.022561
0.318387
0.242527
0.230118
0.212634
0.196842
0.196842
0
0.000992
0.313936
5,877
168
110
34.982143
0.878472
0.353582
0
0.481928
0
0
0.087973
0
0
0
0
0
0
1
0.120482
false
0.012048
0.036145
0.012048
0.26506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430e631a7ab886f89000f1e0dc6f369df4ae43f7
1,056
py
Python
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
7
2017-02-16T15:25:47.000Z
2021-11-08T13:10:15.000Z
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
null
null
null
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
7
2017-03-06T08:47:27.000Z
2021-12-11T12:42:43.000Z
from PyQt4.QtGui import QImage, QPainter from PyQt4.QtCore import QSize # configure the output image width = 800 height = 600 dpi = 92 img = QImage(QSize(width, height), QImage.Format_RGB32) img.setDotsPerMeterX(dpi / 25.4 * 1000) img.setDotsPerMeterY(dpi / 25.4 * 1000) # get the map layers and extent layers ...
36.413793
151
0.773674
124
1,056
6.572581
0.548387
0.022086
0.039264
0.02454
0
0
0
0
0
0
0
0.029064
0.120265
1,056
29
152
36.413793
0.848224
0.125
0
0
0
0
0.031425
0.028058
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430f1a041d4b52037c87f1c1a590ae76e5b36f2e
13,604
py
Python
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-10T17:35:41.000Z
2022-03-04T10:38:58.000Z
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-02T09:12:18.000Z
2022-02-16T13:42:30.000Z
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
null
null
null
""" Load a dataset of historic documents by specifying the folder where its located. """ import argparse # Utils import itertools import logging import math from datetime import datetime from pathlib import Path from torchvision.datasets.folder import has_file_allowed_extension, pil_loader from torchvision.transforms...
39.777778
120
0.585049
1,634
13,604
4.574663
0.173195
0.049231
0.035318
0.018194
0.37097
0.288696
0.240268
0.191171
0.143411
0.136455
0
0.009315
0.321376
13,604
341
121
39.894428
0.800368
0.135622
0
0.196172
0
0.019139
0.13391
0.044464
0
0
0
0
0.009569
1
0.057416
false
0
0.043062
0.004785
0.148325
0.009569
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430f3dd58c283b4aea777f240b325f4a7f3a3026
332
py
Python
run.py
seanzhangJM/torch_model_demo
3ab3e841e77cf780198516c1910c906acdd3082d
[ "MIT" ]
null
null
null
run.py
seanzhangJM/torch_model_demo
3ab3e841e77cf780198516c1910c906acdd3082d
[ "MIT" ]
null
null
null
run.py
seanzhangJM/torch_model_demo
3ab3e841e77cf780198516c1910c906acdd3082d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _*_ coding: utf-8 _*_ # @Time : 2021/12/27 14:04 # @Author : zhangjianming # @Email : YYDSPanda@163.com # @File : run_task.py # @Software: PyCharm import sys sys.path.extend(["."]) from torch_model_demo.task.run_task import train_fashion_demo if __name__ == '__main__': train_fas...
19.529412
61
0.683735
47
332
4.404255
0.808511
0.067633
0.154589
0
0
0
0
0
0
0
0
0.057971
0.168675
332
16
62
20.75
0.692029
0.5
0
0
0
0
0.056604
0
0
0
0
0
0
1
0
true
0
0.4
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
1
0
1
0
0
0
0
2
430f4b6111489ee13ac7ae5b12340f3777b684e0
11,275
py
Python
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
13
2021-07-05T08:44:33.000Z
2021-10-13T09:57:58.000Z
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
117
2021-07-06T11:21:50.000Z
2021-10-06T15:48:50.000Z
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
43
2021-04-26T07:45:14.000Z
2021-11-06T11:19:05.000Z
import numpy as np import math import logging as log import sys from tqdm import tqdm from common.feature_distance import calc_features_similarity from common.common_objects import DetectedObject, validate_detected_object, Bbox from common.common_objects import get_bbox_center, get_dist, calc_bbox_area from common.find...
41.300366
123
0.655787
1,493
11,275
4.600134
0.119223
0.093186
0.024461
0.014851
0.351776
0.23078
0.151427
0.097117
0.097117
0.052126
0
0.005308
0.264745
11,275
272
124
41.452206
0.82316
0.036718
0
0.130233
0
0
0.074115
0.004425
0
0
0
0
0.065116
1
0.106977
false
0
0.046512
0.009302
0.227907
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431041bc3b78a2b35eead16f02c1cdb50d1dd82f
16,308
py
Python
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
from django.db import router from django.db.models import Q, Manager from django.db import connections from .contenttypes import ct, get_content_type from .query import GM2MTgtQuerySet class GM2MBaseManager(Manager): use_in_migration = True def __init__(self, instance): super(GM2MBaseM...
35.841758
81
0.531886
1,896
16,308
4.325949
0.128692
0.044989
0.066569
0.053889
0.501707
0.459278
0.401366
0.342965
0.312119
0.262497
0
0.002944
0.375215
16,308
454
82
35.920705
0.802041
0.143488
0
0.342193
0
0
0.035938
0.005425
0
0
0
0
0
1
0.096346
false
0.003322
0.016611
0.013289
0.196013
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43109599c3c8fc1c990f73e67e01c2d6cb021aa0
6,802
py
Python
rastreador-de-bolso/TwitterListener.py
vitorduarte/RastreadorDeBolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
1
2020-10-15T21:36:06.000Z
2020-10-15T21:36:06.000Z
rastreador-de-bolso/TwitterListener.py
vitorduarte/RastreadorDeBolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
3
2021-06-08T21:38:20.000Z
2022-01-13T02:46:26.000Z
rastreador-de-bolso/TwitterListener.py
BambataTech/rastreador-de-bolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
null
null
null
from selenium.webdriver.chrome.options import Options from selenium import webdriver import logging import coloredlogs import os import pathlib import time import twitter as tt from utils import retry from fetch_likes import get_user_likes, login from conf.settings import USER_ID, USERNAME, PASSWORD CURR_PATH = path...
36.569892
92
0.58718
822
6,802
4.592457
0.205596
0.028609
0.035762
0.012715
0.439205
0.342517
0.27894
0.259603
0.229404
0.229404
0
0.000876
0.328727
6,802
185
93
36.767568
0.825887
0.019994
0
0.213793
0
0
0.128117
0
0
0
0
0
0
1
0.055172
false
0.013793
0.075862
0.006897
0.17931
0.041379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431170ce8605ebd442db760dffe2ee0772b36d0d
1,243
py
Python
smartexcel/tests/data/data_models/dummy.py
pierrealixt/SmartExcel
19c5b7e6110db3d42965228ea2ae44a65489ac71
[ "MIT" ]
null
null
null
smartexcel/tests/data/data_models/dummy.py
pierrealixt/SmartExcel
19c5b7e6110db3d42965228ea2ae44a65489ac71
[ "MIT" ]
null
null
null
smartexcel/tests/data/data_models/dummy.py
pierrealixt/SmartExcel
19c5b7e6110db3d42965228ea2ae44a65489ac71
[ "MIT" ]
null
null
null
class Dummy(): def __init__(self, data): self.name = data['name'] self.age = data['age'] self.city = data['city'] class DummyData(): def __init__(self): self.results = [ Dummy({ 'name': 'PA', 'age': 29, 'city': 'Paris'...
23.018519
55
0.457763
121
1,243
4.528926
0.305785
0.072993
0.131387
0.175182
0.175182
0
0
0
0
0
0
0.010855
0.40708
1,243
53
56
23.45283
0.7327
0
0
0.116279
0
0
0.096541
0
0
0
0
0
0
1
0.209302
false
0
0
0.162791
0.418605
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
43118cb0eb019b0c97db7741f34ce6ca041f8dc1
296
py
Python
ASR_TransV1/Load_sp_model.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
1
2020-10-25T00:21:40.000Z
2020-10-25T00:21:40.000Z
ASR_TransV1/Load_sp_model.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
null
null
null
ASR_TransV1/Load_sp_model.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
1
2021-09-08T10:32:55.000Z
2021-09-08T10:32:55.000Z
#!/usr/bin/python import sys import os from os.path import join, isdir import sentencepiece as spm #-------------------------- def Load_sp_models(PATH): PATH_model = spm.SentencePieceProcessor() PATH_model.Load(join(PATH)) return PATH_model #--------------------------
19.733333
49
0.581081
34
296
4.911765
0.588235
0.161677
0
0
0
0
0
0
0
0
0
0
0.172297
296
14
50
21.142857
0.681633
0.22973
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4312500ffaaa31023ff14a2c64c200a842122fb2
2,213
py
Python
fiepipedesktoplib/gitlabserver/shell/manager.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/manager.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/manager.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import typing from fiepipelib.gitlabserver.data.gitlab_server import GitLabServer from fiepipelib.gitlabserver.routines.manager import GitLabServerManagerInteractiveRoutines from fiepipedesktoplib.gitlabserver.shell.gitlab_hostname_input_ui import GitLabHostnameInputDefaultShellUI from fiepipedesktoplib.gitlabserver.s...
49.177778
129
0.770899
197
2,213
8.390863
0.335025
0.101633
0.099819
0.114943
0.079855
0
0
0
0
0
0
0.001089
0.169905
2,213
44
130
50.295455
0.898748
0.019431
0
0
0
0
0.021679
0
0
0
0
0
0
1
0.15625
false
0
0.34375
0.0625
0.65625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4312e79aaad5f7fe2f84f838da0893835b628082
470
py
Python
fairseq/models/wav2vec/eteh_model/transformer/repeat.py
gaochangfeng/fairseq
70a468230b8fb558caa394322b02fface663e17a
[ "MIT" ]
null
null
null
fairseq/models/wav2vec/eteh_model/transformer/repeat.py
gaochangfeng/fairseq
70a468230b8fb558caa394322b02fface663e17a
[ "MIT" ]
null
null
null
fairseq/models/wav2vec/eteh_model/transformer/repeat.py
gaochangfeng/fairseq
70a468230b8fb558caa394322b02fface663e17a
[ "MIT" ]
null
null
null
import torch class MultiSequential(torch.nn.Sequential): """Multi-input multi-output torch.nn.Sequential""" def forward(self, *args): for m in self: args = m(*args) return args def repeat(N, fn): """repeat module N times :param int N: repeat time :param function fn:...
21.363636
54
0.634043
61
470
4.885246
0.52459
0.04698
0.114094
0
0
0
0
0
0
0
0
0
0.255319
470
21
55
22.380952
0.851429
0.406383
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4313dd60cdb94904d246c40eddbdc84286d54a32
857
py
Python
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class MediumNet(nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d( 3, out_channels=6, kernel_size=5, padding=0) self.pool1 = nn.MaxPool2d(kernel_size=2, stride=2) self.conv2 = nn....
31.740741
70
0.584597
134
857
3.634328
0.358209
0.020534
0.073922
0.073922
0.229979
0.229979
0.135524
0.135524
0
0
0
0.07717
0.274212
857
26
71
32.961538
0.705788
0.04084
0
0
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4313de468396c7f2ca9e8be49eccd525b21cb61b
309
py
Python
test123.py
umousesonic/zinc
9e170269d3b209a80ac79d5850894ddc1d95c62f
[ "BSD-3-Clause" ]
null
null
null
test123.py
umousesonic/zinc
9e170269d3b209a80ac79d5850894ddc1d95c62f
[ "BSD-3-Clause" ]
null
null
null
test123.py
umousesonic/zinc
9e170269d3b209a80ac79d5850894ddc1d95c62f
[ "BSD-3-Clause" ]
null
null
null
from runner import runner if __name__ == '__main__': r = runner() p = 'public class main{public static void main (String[] args){' \ 'public String StudentAnswer(String myInput){' \ 'return "myOutput"; ' \ '}System.out.println("hello world!");}}' print (r.sendCode(p, ''))
34.333333
70
0.601942
35
309
5.085714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.23301
309
9
71
34.333333
0.751055
0
0
0
0
0
0.53871
0.083871
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4315cbe9d3768c563f263560ae3ec49245d0ab6e
8,101
py
Python
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
import traceback import telebot from telebot import apihelper from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton, MessageEntity, Message, CallbackQuery from beancount_bot import transaction from beancount_bot.config import get_config, load_config from beancount_bot.dispatcher import Dispatcher from b...
30.340824
178
0.641155
980
8,101
5.122449
0.205102
0.023904
0.02988
0.050797
0.243028
0.193227
0.163745
0.1
0.1
0.0749
0
0.001787
0.240341
8,101
266
179
30.454887
0.813942
0.108011
0
0.194631
0
0.006711
0.186266
0.014663
0
0
0
0
0
1
0.080537
false
0.006711
0.080537
0
0.214765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4317b20c71fc0c90d2e65c623d90563c13f6fda9
8,933
py
Python
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
2
2019-11-30T09:02:42.000Z
2019-12-02T10:24:29.000Z
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
null
null
null
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
1
2020-03-24T14:42:04.000Z
2020-03-24T14:42:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import numpy as np import sklearn.metrics as skm import fairlearn.metrics as metrics # ====================================================== a = "a" b = "b" c = "c" Y_true = [0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0...
39.179825
98
0.636069
1,198
8,933
4.40985
0.12187
0.102215
0.022714
0.037857
0.71872
0.682188
0.656256
0.58622
0.544198
0.544198
0
0.016635
0.165566
8,933
227
99
39.352423
0.692112
0.149558
0
0.348837
0
0
0.016761
0
0
0
0
0
0.178295
1
0.116279
false
0
0.031008
0
0.147287
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4317fc5d9fcdfa4c3f22eb8a8bb944e1c61c7e2a
12,833
py
Python
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
12
2018-10-26T19:33:05.000Z
2022-01-17T11:47:59.000Z
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
9
2020-01-28T22:30:55.000Z
2022-03-11T23:32:04.000Z
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
3
2019-07-09T14:56:01.000Z
2019-11-18T06:58:41.000Z
""" Adapted from OpenAI Baselines. """ import numpy as np import tensorflow as tf # pylint: ignore-module import random import copy import os import functools import collections import multiprocessing def switch(condition, then_expression, else_expression): """Switches between two operations depending on a scala...
34.590296
116
0.580924
1,690
12,833
4.280473
0.210651
0.017694
0.009953
0.015759
0.172104
0.132983
0.096212
0.060547
0.053083
0.0423
0
0.01033
0.230577
12,833
370
117
34.683784
0.722301
0.262137
0
0.098712
0
0
0.026281
0.005213
0
0
0
0
0.017167
1
0.167382
false
0.008584
0.055794
0.017167
0.364807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431830fa7f1548920feb149a4d5dc17216d7a063
1,695
py
Python
Util/constant.py
RoboCupULaval/StrategyAI
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
13
2018-03-14T10:20:10.000Z
2021-12-10T05:36:47.000Z
Util/constant.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
200
2016-04-29T23:13:01.000Z
2018-03-13T14:36:39.000Z
Util/constant.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
45
2015-07-04T18:57:39.000Z
2018-01-11T16:11:13.000Z
# Under MIT License, see LICENSE.txt """ Module définissant des constantes de programmations python pour l'IA """ from enum import Enum ROBOT_RADIUS = 90 ROBOT_DIAMETER = ROBOT_RADIUS * 2 ROBOT_CENTER_TO_KICKER = 60 BALL_RADIUS = 21 MAX_PLAYER_ON_FIELD_PER_TEAM = 6 BALL_OUTSIDE_FIELD_BUFFER = 200 # Radius and angle...
22.6
84
0.728614
254
1,695
4.610236
0.551181
0.075149
0.056362
0.046114
0
0
0
0
0
0
0
0.047513
0.20531
1,695
74
85
22.905405
0.821826
0.258997
0
0
0
0
0.008084
0
0
0
0
0
0
1
0.045455
false
0
0.022727
0.022727
0.522727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4318e19519ef3b4ec8fbfd551e4ad75ec635df69
9,102
py
Python
src/transbigdata/CoordinatesConverter.py
cirno1w/transport
f088b4111992dd5ec6371db71cf1d26689cf8c26
[ "BSD-3-Clause" ]
1
2022-03-06T00:15:19.000Z
2022-03-06T00:15:19.000Z
src/transbigdata/CoordinatesConverter.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
src/transbigdata/CoordinatesConverter.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
import numpy as np x_pi = 3.14159265358979324 * 3000.0 / 180.0 pi = 3.1415926535897932384626 a = 6378245.0 ee = 0.00669342162296594323 def gcj02tobd09(lng, lat): """ Convert coordinates from GCJ02 to BD09 Parameters ------- lng : Series or number Longitude lat : Series or number ...
28.267081
202
0.568556
1,216
9,102
4.234375
0.192434
0.051272
0.089726
0.042921
0.441833
0.408623
0.376966
0.357934
0.353661
0.353661
0
0.219756
0.297078
9,102
322
203
28.267081
0.585027
0.263349
0
0.415584
0
0
0.002607
0
0
0
0
0
0
1
0.071429
false
0
0.019481
0
0.162338
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
431a5970e46f202baf11c026a61fe4077fcce70d
8,343
py
Python
cloudify_rest_client/exceptions.py
aleixsanchis/cloudify-rest-client
6acaadee8286ab647465824d3c8e13d4c43ca9ba
[ "Apache-2.0" ]
null
null
null
cloudify_rest_client/exceptions.py
aleixsanchis/cloudify-rest-client
6acaadee8286ab647465824d3c8e13d4c43ca9ba
[ "Apache-2.0" ]
null
null
null
cloudify_rest_client/exceptions.py
aleixsanchis/cloudify-rest-client
6acaadee8286ab647465824d3c8e13d4c43ca9ba
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
31.364662
79
0.737744
869
8,343
6.932106
0.286536
0.041833
0.101096
0.049801
0.247344
0.229914
0.204847
0.173639
0.133466
0.097278
0
0.002261
0.204842
8,343
265
80
31.483019
0.905788
0.408366
0
0.084211
0
0
0.158084
0.134698
0
0
0
0
0
1
0.052632
false
0
0
0.031579
0.621053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
431a5a90835e15a36f13f4092d02d4382895d659
1,570
py
Python
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
6
2020-12-04T00:08:02.000Z
2021-06-12T05:23:25.000Z
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
6
2020-12-09T11:40:01.000Z
2021-09-23T09:03:18.000Z
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
21
2020-12-09T01:35:48.000Z
2022-01-28T09:18:55.000Z
import boto3 import logging import os from random import randrange from urllib.request import urlopen # It is not recommended to enable DEBUG logs in production, # this is just to show an example of a recommendation # by Amazon CodeGuru Profiler. logging.getLogger('botocore').setLevel(logging.DEBUG) SITE = 'http://w...
27.54386
81
0.659236
206
1,570
4.873786
0.514563
0.02988
0.033865
0.043825
0.035857
0
0
0
0
0
0
0.01598
0.242675
1,570
56
82
28.035714
0.828427
0.153503
0
0.052632
0
0
0.105144
0.015885
0
0
0
0
0
1
0.078947
false
0
0.131579
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
431a7feaee1aa406c7c2670e03999a74240a7466
475
py
Python
api/error_handler.py
chuo06/palindrome
57660301390d7b2b05780e1f6ab0343e43726619
[ "MIT" ]
null
null
null
api/error_handler.py
chuo06/palindrome
57660301390d7b2b05780e1f6ab0343e43726619
[ "MIT" ]
1
2015-10-22T16:56:55.000Z
2015-10-22T16:56:55.000Z
api/error_handler.py
chuo06/palindrome
57660301390d7b2b05780e1f6ab0343e43726619
[ "MIT" ]
null
null
null
from functools import wraps from werkzeug.exceptions import HTTPException from api.exceptions import MessageNotFound def api_error_handler(func): @wraps(func) def handle_errors(*args, **kwargs): try: return func(*args, **kwargs) except MessageNotFound as e: return e.mes...
25
45
0.650526
52
475
5.865385
0.538462
0.104918
0
0
0
0
0
0
0
0
0
0.017699
0.286316
475
18
46
26.388889
0.882006
0
0
0
0
0
0.037895
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
431a878ee70ba62b9e15ce81300906f432dc9b82
406
py
Python
src/nile/core/run.py
kootsZhin/nile
5b685158c06418a126229cfbcaeaaf78a38cd8a0
[ "MIT" ]
121
2021-10-30T08:42:44.000Z
2022-03-31T13:17:58.000Z
src/nile/core/run.py
kootsZhin/nile
5b685158c06418a126229cfbcaeaaf78a38cd8a0
[ "MIT" ]
56
2021-10-31T16:45:06.000Z
2022-03-31T04:41:08.000Z
src/nile/core/run.py
kootsZhin/nile
5b685158c06418a126229cfbcaeaaf78a38cd8a0
[ "MIT" ]
22
2021-11-18T11:24:56.000Z
2022-03-30T08:15:18.000Z
"""Command to run Nile scripts.""" import logging from importlib.machinery import SourceFileLoader from nile.nre import NileRuntimeEnvironment def run(path, network): """Run nile scripts passing on the NRE object.""" logger = logging.getLogger() logger.disabled = True script = SourceFileLoader("scrip...
27.066667
59
0.73399
47
406
6.319149
0.574468
0.047138
0.094276
0
0
0
0
0
0
0
0
0
0.165025
406
14
60
29
0.876106
0.17734
0
0
0
0
0.018576
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
431ad1cf3cfa9d05b69ae287dc97e25b7fff4c83
548
py
Python
Python/Basic Data Types/Lists/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
219
2018-06-17T19:47:22.000Z
2022-03-27T15:28:56.000Z
Python/Basic Data Types/Lists/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
2
2020-08-12T16:47:41.000Z
2020-12-15T17:05:57.000Z
Python/Basic Data Types/Lists/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
182
2018-12-12T21:36:50.000Z
2022-03-26T17:49:51.000Z
array = [] for _ in range(int(input())): command = input().strip().split(" ") cmd_type = command[0] if (cmd_type == "print"): print(array) elif (cmd_type == "sort"): array.sort() elif (cmd_type == "reverse"): array.reverse() elif (cmd_type == "pop"): array.pop() ...
30.444444
54
0.541971
68
548
4.235294
0.338235
0.194444
0.229167
0.104167
0.152778
0.152778
0
0
0
0
0
0.012285
0.257299
548
18
54
30.444444
0.695332
0
0
0
0
0
0.069217
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
431afd38b43ccf5ad48d645a4d0327a638eb0852
441
py
Python
dbestclient/ml/density.py
horeapinca/DBEstClient
6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26
[ "BSD-2-Clause" ]
null
null
null
dbestclient/ml/density.py
horeapinca/DBEstClient
6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26
[ "BSD-2-Clause" ]
null
null
null
dbestclient/ml/density.py
horeapinca/DBEstClient
6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26
[ "BSD-2-Clause" ]
1
2020-09-28T14:22:54.000Z
2020-09-28T14:22:54.000Z
# Created by Qingzhi Ma at 2019-07-23 # All right reserved # Department of Computer Science # the University of Warwick # Q.Ma.2@warwick.ac.uk from sklearn.neighbors import KernelDensity class DBEstDensity: def __init__(self, kernel=None): if kernel is None: self.kernel = 'gaussian' s...
24.5
59
0.671202
62
441
4.709677
0.66129
0.10274
0
0
0
0
0
0
0
0
0
0.026786
0.238095
441
18
60
24.5
0.842262
0.29932
0
0
0
0
0.026316
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
431b587034ff91b11e453596c7cd2a1cc508eb0c
920
py
Python
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
4
2020-07-26T20:41:03.000Z
2020-08-04T05:36:32.000Z
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
null
null
null
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
1
2020-08-04T05:36:34.000Z
2020-08-04T05:36:34.000Z
#!/usr/bin/env python import setuptools from setuptools import setup from os import path # Read the package requirements with open("requirements.txt", "r") as f: requirements = [line.rstrip("\n") for line in f if line != "\n"] # Read the contents of the README file this_directory = path.abspath(path.dirname(__fi...
31.724138
104
0.706522
125
920
5.064
0.632
0.094787
0.060032
0.094787
0
0
0
0
0
0
0
0.003947
0.173913
920
28
105
32.857143
0.828947
0.094565
0
0
0
0
0.264174
0.062726
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431c1fde6c2d30474384ca5aeeb0ee0eb0db4a71
5,096
py
Python
mundiapi/models/update_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
10
2017-08-30T15:53:00.000Z
2021-02-11T18:06:56.000Z
mundiapi/models/update_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
4
2018-05-05T15:15:09.000Z
2021-12-22T00:52:41.000Z
mundiapi/models/update_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
7
2017-04-27T13:46:52.000Z
2021-04-14T13:44:23.000Z
# -*- coding: utf-8 -*- """ mundiapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class UpdatePlanRequest(object): """Implementation of the 'UpdatePlanRequest' model. Request for updating a plan Attributes: name (string): Plan's n...
35.144828
84
0.577119
476
5,096
6.014706
0.228992
0.06811
0.047153
0.037723
0.05344
0.020957
0
0
0
0
0
0.000903
0.348312
5,096
144
85
35.388889
0.861186
0.300432
0
0
1
0
0.156481
0
0
0
0
0
0
1
0.02381
false
0
0
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
431c4388fab05fa311c4c60aa774db64074aff3d
528
py
Python
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
1
2021-01-29T04:54:23.000Z
2021-01-29T04:54:23.000Z
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
null
null
null
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
null
null
null
from hearthstone.enums import GameTag, TAG_TYPES def parse_enum(enum, value): if value.isdigit(): value = int(value) elif hasattr(enum, value): value = getattr(enum, value) else: raise Exception("Unhandled %s: %r" % (enum, value)) return value def parse_tag(tag, value): tag = parse_enum(GameTag, tag) if...
22.956522
74
0.702652
77
528
4.727273
0.363636
0.098901
0.093407
0.10989
0.137363
0
0
0
0
0
0
0
0.168561
528
22
75
24
0.829157
0
0
0.222222
0
0
0.083333
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431e555f5efee68273402bccef7dcb0a30ea9d0c
2,364
py
Python
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
# Archivo ejemplo 00 de creacion de clases en Python from math import gcd # greatest common denominator = Maximo Comun Divisor (MCD) class Fraccion: """ La clase Fraccion: Una fraccion es un part de enteros: un numerador (num) y un denominador (den !=0 ) cuyo MCD es 1. """ def __init__(self,numer...
38.754098
164
0.651861
321
2,364
4.697819
0.361371
0.027851
0.026525
0.018568
0.35809
0.35809
0.35809
0.312997
0.249337
0.249337
0
0.00737
0.253807
2,364
60
165
39.4
0.846939
0.410321
0
0.142857
0
0
0.173949
0
0
0
0
0
0
1
0.178571
false
0
0.035714
0
0.392857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431f67abd21ada1dae45fd70ed84a4c58f410719
65
py
Python
addons14/base_rest/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/base_rest/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/base_rest/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
from . import models from . import components from . import http
16.25
24
0.769231
9
65
5.555556
0.555556
0.6
0
0
0
0
0
0
0
0
0
0
0.184615
65
3
25
21.666667
0.943396
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
43204edf29ab75f14a0b24a7c9fd04d677528ff0
732
py
Python
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
null
null
null
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
8
2021-01-05T00:06:26.000Z
2022-03-12T01:05:06.000Z
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
4
2021-01-04T07:23:17.000Z
2022-03-18T12:29:37.000Z
import os import pandas as pd class LiveProjectPopularityBasedRecs: def __init__(self): self.charts = {} charts_folder = "charts" if os.path.isdir(charts_folder): for file in os.listdir("charts"): name, ext = file.split('.') if ext == "csv" an...
25.241379
101
0.545082
85
732
4.576471
0.470588
0.154242
0.061697
0.092545
0.143959
0.143959
0
0
0
0
0
0.004132
0.338798
732
28
102
26.142857
0.799587
0
0
0.1
0
0
0.091781
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43233962745ef76d4115b7625720cc7b8baedc4d
178
py
Python
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup import snip_basic_verify setup( py_modules=['snip_basic_verify'], ext_modules=[snip_basic_verify.ffi.verifier.get_extension()])
22.25
66
0.758427
24
178
5.25
0.625
0.214286
0.357143
0.349206
0
0
0
0
0
0
0
0
0.146067
178
7
67
25.428571
0.828947
0
0
0
0
0
0.1
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
43245976f12a77315f00f3cf0db335fcb32e0255
647
py
Python
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
2
2016-09-09T04:19:01.000Z
2019-02-15T20:28:13.000Z
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
67
2016-06-02T19:37:56.000Z
2018-02-22T05:23:45.000Z
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
9
2015-06-22T22:10:22.000Z
2016-04-26T15:35:45.000Z
#!../env/bin/python """A simple test script for the PCE portion of OnRamp. Usage: ./test_pce.py This script is only intended to be run in a fresh install of the repository. It has side-effects that could corrupt module and user data if run in a production setting. Prior to running this script, ensure that onramp/pce...
26.958333
79
0.723338
107
647
4.205607
0.635514
0.031111
0.026667
0
0
0
0
0
0
0
0
0.001898
0.185471
647
23
80
28.130435
0.851992
0.7017
0
0
0
0
0.172043
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4326718464c0594d943bc8eb250db3e42117293d
58,893
py
Python
tobac/plotting.py
w-herbst/tobac
9f3b9812e9a13a26373e42d356f7d571366bb967
[ "BSD-3-Clause" ]
36
2018-11-12T10:42:22.000Z
2022-03-08T04:29:58.000Z
tobac/plotting.py
w-herbst/tobac
9f3b9812e9a13a26373e42d356f7d571366bb967
[ "BSD-3-Clause" ]
71
2018-12-04T13:11:54.000Z
2022-03-30T23:15:26.000Z
tobac/plotting.py
w-herbst/tobac
9f3b9812e9a13a26373e42d356f7d571366bb967
[ "BSD-3-Clause" ]
28
2018-11-19T07:51:02.000Z
2022-02-17T16:26:40.000Z
import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import logging from .analysis import lifetime_histogram from .analysis import histogram_cellwise,histogram_featurewise import numpy as np def plot_tracks_mask_field_loop(track,field,mask,features,axes=None,name=None,plot_dir='./', ...
46.154389
219
0.614708
7,548
58,893
4.533651
0.063063
0.054004
0.025774
0.01052
0.81166
0.785535
0.770631
0.747224
0.733665
0.716745
0
0.024047
0.27482
58,893
1,275
220
46.190588
0.777208
0.139847
0
0.680131
0
0
0.072353
0.030001
0.002183
0
0
0
0
1
0.019651
false
0
0.05786
0
0.08952
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
43278d398c31ca35a7dadee17fca420abdd89662
608
py
Python
api/urls.py
nf1s/covid-backend
5529cccad2b0b596d8a720fd6211035e6376820f
[ "MIT" ]
null
null
null
api/urls.py
nf1s/covid-backend
5529cccad2b0b596d8a720fd6211035e6376820f
[ "MIT" ]
1
2020-03-21T16:20:28.000Z
2020-03-21T16:20:28.000Z
api/urls.py
ahmednafies/covid-backend
5529cccad2b0b596d8a720fd6211035e6376820f
[ "MIT" ]
null
null
null
from sanic import Blueprint from sanic_transmute import add_route from .views import ( get_all, get_status_by_country_id, get_status_by_country_name, get_deaths, get_active_cases, get_recovered_cases, get_confirmed_cases, list_countries, ) cases = Blueprint("cases", url_prefix="/cases")...
26.434783
47
0.804276
93
608
4.774194
0.258065
0.162162
0.234234
0.252252
0.38964
0.13964
0.13964
0
0
0
0
0
0.121711
608
22
48
27.636364
0.831461
0
0
0
0
0
0.018092
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.095238
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4327e63a016b0fdf98132c5f404968581fab3fee
1,860
py
Python
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
182
2019-09-25T18:48:09.000Z
2022-03-22T01:22:21.000Z
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
38
2019-09-11T00:51:35.000Z
2022-03-30T12:05:19.000Z
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
83
2019-10-11T12:07:29.000Z
2022-03-31T05:06:47.000Z
from ..downloader import Downloader import os import pytest @pytest.fixture def cwd_to_tmpdir(tmpdir): os.chdir(str(tmpdir)) def test_audiobook_download(cwd_to_tmpdir, monkeypatch): audiobook_url = "https://www.scribd.com/audiobook/237606860/100-Ways-to-Motivate-Yourself-Change-Your-Life-Forever" audio...
38.75
119
0.768817
274
1,860
4.959854
0.361314
0.03532
0.05298
0.083885
0.360559
0.198676
0.10596
0.067697
0.067697
0
0
0.064496
0.124731
1,860
47
120
39.574468
0.77027
0.037097
0
0
0
0.088235
0.220917
0.037472
0
0
0
0
0.235294
1
0.147059
false
0
0.088235
0
0.235294
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
432938f7572380d6dce4bd872cd6f38e7889cce7
863
py
Python
app/migrations/0005_auto_20210619_2310.py
hungitptit/boecdjango
a1125bd292b5fd3a0610eda6e592017f8268c96c
[ "MIT" ]
null
null
null
app/migrations/0005_auto_20210619_2310.py
hungitptit/boecdjango
a1125bd292b5fd3a0610eda6e592017f8268c96c
[ "MIT" ]
null
null
null
app/migrations/0005_auto_20210619_2310.py
hungitptit/boecdjango
a1125bd292b5fd3a0610eda6e592017f8268c96c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-19 16:10 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('app', '0004_auto_20210619_1802'), ] operations = [ migrations.AddField( model_name='comment', ...
27.83871
116
0.602549
93
863
5.408602
0.537634
0.107356
0.137177
0.161034
0.357853
0.357853
0
0
0
0
0
0.054927
0.282735
863
30
117
28.766667
0.757674
0.052144
0
0.375
1
0
0.110294
0.028186
0
0
0
0
0
1
0
false
0
0.083333
0
0.208333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
432a6247ae50ed5ff0d32ef0b60b3d2a095bea22
1,441
py
Python
vision_datasets/common/dataset_registry.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
null
null
null
vision_datasets/common/dataset_registry.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
null
null
null
vision_datasets/common/dataset_registry.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
null
null
null
import copy import json from .dataset_info import DatasetInfoFactory class DatasetRegistry: """ A central registry of all available datasets """ def __init__(self, datasets_json: str): self.datasets = [DatasetInfoFactory.create(d) for d in json.loads(datasets_json)] def get_dataset_info(...
36.948718
129
0.679389
180
1,441
5.183333
0.355556
0.064309
0.019293
0.015005
0.038585
0
0
0
0
0
0
0.001821
0.238029
1,441
38
130
37.921053
0.847905
0.030534
0
0
0
0
0.03693
0
0
0
0
0
0
1
0.142857
false
0
0.25
0.035714
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
432a6cd43a1645c5ef69788411b16a04cd68ac58
20,941
py
Python
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
443
2018-02-08T02:53:48.000Z
2020-10-13T10:01:55.000Z
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
27
2020-10-14T10:01:52.000Z
2022-03-12T00:49:47.000Z
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
148
2018-03-15T06:07:25.000Z
2020-08-17T14:58:45.000Z
# -*- coding:utf-8 -*- # edit by fuzongfei import base64 import datetime # Create your views here. import json from django.http import Http404, HttpResponse from django.utils import timezone from django_filters.rest_framework import DjangoFilterBackend from rest_framework import filters from rest_framework.exceptions ...
41.715139
111
0.633351
2,027
20,941
6.418352
0.178096
0.053805
0.041507
0.030669
0.568486
0.542045
0.507148
0.494927
0.476249
0.476249
0
0.00997
0.243207
20,941
501
112
41.798403
0.810954
0.021441
0
0.472868
0
0.002584
0.09277
0.010384
0
0
0
0
0
1
0.069767
false
0
0.043928
0
0.423773
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432ad11a5c271d697e37438e64317a7886323133
1,489
py
Python
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
import glove_util as gut import numpy as np from sklearn.decomposition import TruncatedSVD import json with open('freq_count_pred.json') as f: freq_count_pred = json.load(f) def get_pc(sentences): svd = TruncatedSVD(n_components=1, n_iter=7, random_state=0) svd.fit(sentences) return svd.components_ def weight...
22.560606
181
0.725319
221
1,489
4.742081
0.316742
0.120229
0.099237
0.145038
0.290076
0.137405
0.137405
0.137405
0.137405
0.137405
0
0.026583
0.141034
1,489
65
182
22.907692
0.792807
0
0
0.26087
0
0
0.108798
0.018805
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.195652
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432b745399b0d0440cefd7ae239847b77b6d7688
3,009
py
Python
crypt.py
ElyTgy/VaultDB
9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a
[ "MIT" ]
2
2021-09-27T07:40:21.000Z
2021-10-04T17:32:40.000Z
crypt.py
ElyTgy/VaultDB
9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a
[ "MIT" ]
3
2021-10-01T17:47:20.000Z
2021-10-21T07:57:13.000Z
crypt.py
ElyTgy/VaultDB
9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a
[ "MIT" ]
3
2021-09-26T13:26:05.000Z
2021-10-22T02:53:20.000Z
# Importing Fernet class from cryptography.fernet import Fernet # Importing dump and load function from pickle import dump,load # To generate a strong pw def generate_pw(): from random import choice choices = list("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_-+=.,/<>?;:\\|[...
30.393939
114
0.613825
393
3,009
4.671756
0.307888
0.030501
0.023965
0.030501
0.351852
0.333333
0.3061
0.294118
0.218954
0.218954
0
0.007692
0.30874
3,009
99
115
30.393939
0.875
0.384181
0
0.37037
1
0
0.113769
0.053092
0
0
0
0
0
1
0.148148
false
0.018519
0.074074
0
0.351852
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
432d72d5f01ae5a38ba02b41cf1e7cf13ab1b0ea
1,107
py
Python
oecp/executor/null.py
openeuler-mirror/oecp
967ed6b9e53f2da5f795f49bb5b5fc0423372863
[ "MulanPSL-1.0" ]
null
null
null
oecp/executor/null.py
openeuler-mirror/oecp
967ed6b9e53f2da5f795f49bb5b5fc0423372863
[ "MulanPSL-1.0" ]
null
null
null
oecp/executor/null.py
openeuler-mirror/oecp
967ed6b9e53f2da5f795f49bb5b5fc0423372863
[ "MulanPSL-1.0" ]
null
null
null
# -*- encoding=utf-8 -*- """ # ********************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # [oecp] is licensed under the Mulan PSL v1. # You can use this software according to the terms and conditions of the Mulan PSL ...
38.172414
98
0.588076
141
1,107
4.503546
0.631206
0.050394
0.062992
0.061417
0.100787
0
0
0
0
0
0
0.014254
0.176152
1,107
28
99
39.535714
0.682018
0.66757
0
0
0
0
0.016667
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
432e74ae233189ec17dd1f03b1127352c4327439
1,518
py
Python
courses/models.py
Biswa5812/CaramelIT-Django-Backend
1f896cb75295d17345a862b99837f0bdf60868b4
[ "MIT" ]
1
2021-08-06T08:36:40.000Z
2021-08-06T08:36:40.000Z
courses/models.py
Biswa5812/CaramelIT-Django-Backend
1f896cb75295d17345a862b99837f0bdf60868b4
[ "MIT" ]
7
2021-04-08T21:58:03.000Z
2022-01-13T03:09:17.000Z
courses/models.py
Biswa5812/CaramelIT-Django-Backend
1f896cb75295d17345a862b99837f0bdf60868b4
[ "MIT" ]
3
2020-07-21T07:01:31.000Z
2021-01-16T10:47:30.000Z
from django.db import models from django.utils import timezone # Course Category class Course_category(models.Model): category_id = models.AutoField(primary_key=True) category_name = models.CharField(max_length=100) date_of_creation = models.DateTimeField(default=timezone.now) # Course Subcategory class ...
42.166667
81
0.78722
189
1,518
6.100529
0.232804
0.117086
0.140503
0.187337
0.510841
0.510841
0.457069
0.355594
0.311362
0.311362
0
0.018713
0.119895
1,518
35
82
43.371429
0.844311
0.038208
0
0.296296
0
0
0.002062
0
0
0
0
0
0
1
0
false
0
0.074074
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
432f6dd85dd7a23f729a99a79b5f40586fb8f07f
2,732
py
Python
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
150
2016-10-05T11:09:36.000Z
2022-03-06T16:24:41.000Z
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
27
2017-03-02T03:37:02.000Z
2022-02-10T04:59:54.000Z
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
21
2016-11-11T07:51:48.000Z
2020-04-26T21:38:33.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
36.918919
114
0.688507
353
2,732
5.181303
0.410765
0.032805
0.028431
0.017496
0.030618
0
0
0
0
0
0
0.010942
0.2306
2,732
73
115
37.424658
0.859182
0.189239
0
0.085106
0
0
0.150704
0.01044
0
0
0
0
0
1
0.085106
false
0
0.170213
0
0.446809
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432f8e360fc047fc0c5026f477fadfd50ec95d5c
4,779
py
Python
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
null
null
null
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
null
null
null
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
1
2022-03-31T20:26:21.000Z
2022-03-31T20:26:21.000Z
#!/usr/bin/env python # Script for parsing prometheus metrics format and send it into zabbix server # MIT License # https://github.com/Friz-zy/telegraf-monitoring-agent-setup import re import os import sys import time import json import socket import optparse try: from urllib.request import urlopen except: fr...
32.958621
122
0.514124
515
4,779
4.697087
0.345631
0.054568
0.037205
0.031005
0.096734
0.071931
0.022323
0.022323
0
0
0
0.012477
0.312408
4,779
144
123
33.1875
0.723676
0.111948
0
0.082569
0
0.009174
0.19229
0.022469
0.009174
0
0
0
0
1
0.018349
false
0
0.082569
0
0.110092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4331808474e580c548bdad9e356ef4402fccebc7
6,239
py
Python
NAS/run_NAS.py
gatech-sysml/CompOFA
baf561f14a561547ff51933e45f90ddf00cbb3cf
[ "Apache-2.0" ]
20
2021-04-18T09:13:06.000Z
2022-03-29T03:54:23.000Z
NAS/run_NAS.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-07-02T16:08:17.000Z
2022-02-16T09:20:47.000Z
NAS/run_NAS.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-09-06T06:48:20.000Z
2021-12-02T12:11:30.000Z
# CompOFA – Compound Once-For-All Networks for Faster Multi-Platform Deployment # Under blind review at ICLR 2021: https://openreview.net/forum?id=IgIk8RRT-Z # # Implementation based on: # Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song ...
34.28022
118
0.703478
831
6,239
5.115523
0.358604
0.03952
0.016467
0.014114
0.092214
0.037638
0.025876
0.015526
0
0
0
0.024755
0.197147
6,239
181
119
34.469613
0.823717
0.178234
0
0.109589
0
0
0.191221
0.034952
0
0
0
0
0
1
0.006849
false
0
0.143836
0.006849
0.157534
0.075342
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4331f36c8fbfd4af3f45057825bf7f902a91aa4d
2,911
py
Python
application/model/radar_score_20180117/score_calculate.py
ace-gabriel/chrome-extension
be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9
[ "MIT" ]
4
2018-09-11T22:27:55.000Z
2018-11-16T22:54:14.000Z
application/model/radar_score_20180117/score_calculate.py
ace-gabriel/chrome-extension
be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9
[ "MIT" ]
null
null
null
application/model/radar_score_20180117/score_calculate.py
ace-gabriel/chrome-extension
be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9
[ "MIT" ]
null
null
null
# coding: utf-8 import pickle # import json # import types path = 'application/model/radar_score_20180117/' def f(x, x_range, score): bottom = 20 y = [] for i in x: if i < x_range[0]: pos = 0 else: for j in range(len(x_range)): if j == len(x_range) - 1 or \ i >= x_range[...
27.72381
103
0.564411
417
2,911
3.788969
0.244604
0.063291
0.04557
0.032911
0.139873
0.049367
0.049367
0.049367
0.041772
0.041772
0
0.030894
0.277224
2,911
104
104
27.990385
0.720057
0.176572
0
0.063492
0
0
0.26043
0.016435
0
0
0
0
0
0
null
null
0
0.015873
null
null
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
43335b3cc2cb4c21d4856a039a41d9b440f02982
951
py
Python
Dominant_cell.py
xi6th/Python_Algorithm
05852b6fe133df2d83ae464b779b0818b173919d
[ "MIT" ]
null
null
null
Dominant_cell.py
xi6th/Python_Algorithm
05852b6fe133df2d83ae464b779b0818b173919d
[ "MIT" ]
null
null
null
Dominant_cell.py
xi6th/Python_Algorithm
05852b6fe133df2d83ae464b779b0818b173919d
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys from typing import Counter # # Complete the 'numCells' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY grid as parameter. # def numCells(grid): # Write your code here n = [] ...
19.8125
63
0.602524
125
951
4.464
0.592
0.064516
0.046595
0.060932
0
0
0
0
0
0
0
0.015385
0.24816
951
47
64
20.234043
0.765035
0.599369
0
0
0
0
0
0
0
0
0
0.021277
0
1
0.0625
false
0
0.375
0
0.4375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
43338fccc231cf2b75bc14f3df4523f468ef4c58
347
py
Python
evetool/urls.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
evetool/urls.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
evetool/urls.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static urlpatterns = [ # Examples: # url(r'^$', 'evetool.views.home', name='home'), url(r'^', include('users.urls')), url(r'^', include('apis.urls')), ] + static(settings.STATIC_URL, document_...
31.545455
67
0.691643
47
347
5.042553
0.425532
0.126582
0.177215
0.151899
0
0
0
0
0
0
0
0
0.135447
347
10
68
34.7
0.79
0.161383
0
0
0
0
0.072917
0
0
0
0
0
0
1
0
false
0
0.428571
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
1
0
0
0
0
1
433408402a1699c513f68c745b4d958c3d3e01cc
375
py
Python
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
import os # virtualenv SCRIPTDIR = os.path.realpath(os.path.dirname(__file__)) venv_name = '_ck' osdir = 'Scripts' if os.name is 'nt' else 'bin' venv = os.path.join(venv_name, osdir, 'activate_this.py') activate_this = (os.path.join(SCRIPTDIR, venv)) # Python 3: exec(open(...).read()), Python 2: execfile(...) exec(op...
34.090909
62
0.714667
57
375
4.438596
0.526316
0.094862
0.079051
0
0
0
0
0
0
0
0
0.005935
0.101333
375
11
62
34.090909
0.744807
0.181333
0
0
0
0
0.101639
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43342d0254660446a56231ce55513c2e38b5ae8e
1,036
py
Python
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import sys import common def main_run(args): with common.temporary_file() as tempfile_path: rc = common...
22.042553
72
0.655405
144
1,036
4.527778
0.548611
0.055215
0.055215
0
0
0
0
0
0
0
0
0.008568
0.21139
1,036
46
73
22.521739
0.789474
0.169884
0
0
0
0
0.116822
0
0
0
0
0
0
1
0.068966
false
0
0.137931
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43352b59b8e176e10113ef95c3a83be9ee114213
2,139
py
Python
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
1
2019-11-19T12:22:46.000Z
2019-11-19T12:22:46.000Z
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
from autoPyTorch.utils.config.config_option import ConfigOption from autoPyTorch.pipeline.base.sub_pipeline_node import SubPipelineNode import traceback class ForAutoNetConfig(SubPipelineNode): def fit(self, pipeline_config, autonet, instance, data_manager, run_id, task_id): for config_file in self.get_co...
41.941176
102
0.622721
263
2,139
4.855513
0.26616
0.087706
0.070478
0.037588
0.198121
0.154268
0.154268
0.124511
0.124511
0.124511
0
0.015524
0.277232
2,139
51
103
41.941176
0.810479
0
0
0.2
0
0
0.037401
0
0
0
0
0
0
1
0.088889
false
0
0.066667
0
0.311111
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43355f2d68e669881638faa623ef2c93af39b15e
913
py
Python
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
31
2016-03-14T09:48:02.000Z
2020-08-12T18:23:47.000Z
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
2
2018-05-24T11:18:58.000Z
2021-10-03T09:57:37.000Z
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
27
2016-04-14T17:46:48.000Z
2021-10-03T08:51:11.000Z
import csv import requests import sys """ A simple program to print the result of a Prometheus query as CSV. """ if len(sys.argv) != 3: print('Usage: {0} http://prometheus:9090 a_query'.format(sys.argv[0])) sys.exit(1) response = requests.get('{0}/api/v1/query'.format(sys.argv[1]), params={'query': s...
25.361111
74
0.671413
126
913
4.793651
0.484127
0.046358
0.046358
0.059603
0
0
0
0
0
0
0
0.015564
0.155531
913
35
75
26.085714
0.767834
0.094195
0
0.095238
0
0
0.17246
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433606583160b95b550e87a2119c5cb01f7c5b5a
76
py
Python
src/python/errors.py
Miravalier/canonfire
7eeb93270ec3f3332fa039f3a9d0e8b3b2c86263
[ "MIT" ]
1
2020-01-30T16:36:04.000Z
2020-01-30T16:36:04.000Z
src/python/errors.py
Miravalier/canonfire
7eeb93270ec3f3332fa039f3a9d0e8b3b2c86263
[ "MIT" ]
9
2021-11-21T14:28:54.000Z
2021-11-21T14:38:16.000Z
src/python/errors.py
Miravalier/canonfire
7eeb93270ec3f3332fa039f3a9d0e8b3b2c86263
[ "MIT" ]
null
null
null
class AuthError(Exception): pass class JsonError(Exception): pass
10.857143
27
0.710526
8
76
6.75
0.625
0.481481
0
0
0
0
0
0
0
0
0
0
0.210526
76
6
28
12.666667
0.9
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
43369a6ebfc0d1acdeab1dc4fb9b48324cf2ec3d
4,696
py
Python
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
null
null
null
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
null
null
null
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
1
2021-05-18T02:53:10.000Z
2021-05-18T02:53:10.000Z
from rest_framework.test import APITestCase from rest_framework.test import APIRequestFactory import requests import pytest import json from django.core.management import call_command from django.db.models.signals import pre_save, post_save, pre_delete, post_delete, m2m_changed from rest_framework.test import APIClien...
23.48
118
0.5773
510
4,696
5.137255
0.229412
0.074809
0.096183
0.104198
0.664886
0.583206
0.498855
0.498855
0.498855
0.449237
0
0.019093
0.286201
4,696
199
119
23.59799
0.76253
0.097104
0
0.516129
0
0
0.196923
0.072189
0
0
0
0
0.072581
1
0.072581
false
0.008065
0.072581
0
0.153226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4336c7b257868aa7e53dc95e1f352acf6bc002a4
175
py
Python
simple_exercises/lanesexercises/py_functions2/rep_ex3.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
simple_exercises/lanesexercises/py_functions2/rep_ex3.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
simple_exercises/lanesexercises/py_functions2/rep_ex3.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
# 3. Define a function to check whether a number is even def even(num): if num%2 == 0: return True else: return False print(even(4)) print(even(-5))
15.909091
56
0.6
29
175
3.62069
0.758621
0.171429
0
0
0
0
0
0
0
0
0
0.040323
0.291429
175
10
57
17.5
0.806452
0.308571
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0.285714
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4337ba6700b6f7409e4f2ff2a13fe2038bd8af6e
4,229
py
Python
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
3
2017-02-23T07:59:15.000Z
2021-01-16T18:49:32.000Z
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
null
null
null
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
1
2021-01-16T18:49:36.000Z
2021-01-16T18:49:36.000Z
""" Posterior for Cauchy Distribution --------------------------------- Figure 5.11 The solid lines show the posterior pdf :math:`p(\mu|{x_i},I)` (top-left panel) and the posterior pdf :math:`p(\gamma|{x_i},I)` (top-right panel) for the two-dimensional pdf from figure 5.10. The dashed lines show the distribution of ap...
32.782946
79
0.64105
645
4,229
4.130233
0.356589
0.004505
0.01952
0.031532
0.15991
0.144895
0.135886
0.081081
0.081081
0.045796
0
0.041935
0.154174
4,229
128
80
33.039063
0.702824
0.39773
0
0.059701
0
0
0.053493
0
0
0
0
0
0
1
0.029851
false
0
0.089552
0
0.149254
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4337eb54a2cf6f8bdc85fd9f00b9444d1da0bf1a
9,090
py
Python
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The file system stat event formatter.""" from __future__ import unicode_literals from dfvfs.lib import definitions as dfvfs_definitions from plaso.formatters import interface from plaso.formatters import manager from plaso.lib import errors class FileStatEventFormatter(interface.Conditio...
33.791822
79
0.706931
1,047
9,090
5.842407
0.195798
0.072258
0.049698
0.031388
0.565637
0.479974
0.453327
0.420795
0.420795
0.407062
0
0.038073
0.193839
9,090
268
80
33.91791
0.79667
0.216392
0
0.396104
0
0
0.261949
0.111191
0
0
0.047076
0
0
1
0.025974
false
0
0.032468
0
0.207792
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433a593c55202319269a697379cad0ea0390e623
555
py
Python
applications/serializers.py
junlegend/back-landing-career
cfc01b439629e48ff058fa1693af8d5a3a37949a
[ "MIT" ]
null
null
null
applications/serializers.py
junlegend/back-landing-career
cfc01b439629e48ff058fa1693af8d5a3a37949a
[ "MIT" ]
null
null
null
applications/serializers.py
junlegend/back-landing-career
cfc01b439629e48ff058fa1693af8d5a3a37949a
[ "MIT" ]
null
null
null
from rest_framework import serializers from applications.models import Application class ApplicationSerializer(serializers.Serializer): content = serializers.JSONField() portfolio = serializers.FileField() class ApplicationAdminSerializer(serializers.ModelSerializer): class Meta: model = Appli...
32.647059
86
0.736937
47
555
8.638298
0.574468
0.128079
0.152709
0.172414
0.280788
0.280788
0.280788
0
0
0
0
0
0.172973
555
17
87
32.647059
0.884532
0
0
0.307692
0
0
0.091727
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.692308
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
433b76089cf8c989828e437cbbad09a9205ff737
8,440
py
Python
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
from pathlib import Path import requests from requests_toolbelt.multipart.encoder import MultipartEncoder # api_token = "iNKzBVNVAoTMhwnT2amhZRAP4dTBjkEVw9AbpRWg" # brand_center = "mdanderson.co1" # data_center = "iad1" # headers = {"x-api-token": api_token} class QualtricsTool: """Data model to manage Qualtrics...
45.621622
120
0.632464
1,040
8,440
4.8875
0.166346
0.029904
0.031477
0.012984
0.385993
0.322447
0.303167
0.28015
0.266378
0.246705
0
0.002766
0.271682
8,440
184
121
45.869565
0.824142
0.216588
0
0.296
0
0
0.172392
0.073905
0
0
0
0
0
1
0.104
false
0
0.024
0
0.232
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433c71e69aaf2d22844233c421ede8abdf861e77
241
py
Python
linter.py
dndrsn/SublimeLinter-contrib-cspell
ba2335a9282335e52282ee93f3bb2a55f9536984
[ "MIT" ]
null
null
null
linter.py
dndrsn/SublimeLinter-contrib-cspell
ba2335a9282335e52282ee93f3bb2a55f9536984
[ "MIT" ]
null
null
null
linter.py
dndrsn/SublimeLinter-contrib-cspell
ba2335a9282335e52282ee93f3bb2a55f9536984
[ "MIT" ]
null
null
null
from SublimeLinter.lint import Linter, STREAM_STDOUT class CSpell(Linter): cmd = 'cspell stdin' defaults = {'selector': 'source'} regex = r'^[^:]*:(?P<line>\d+):(?P<col>\d+) - (?P<message>.*)$' error_stream = STREAM_STDOUT
26.777778
67
0.618257
30
241
4.866667
0.733333
0.164384
0
0
0
0
0
0
0
0
0
0
0.170124
241
8
68
30.125
0.73
0
0
0
0
0
0.323651
0.136929
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
433e58236c454031e14219f73017c1003e0c9d8b
238
py
Python
metal/gdb/__init__.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
24
2020-07-24T18:33:58.000Z
2022-03-23T21:00:19.000Z
metal/gdb/__init__.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
4
2020-07-27T05:44:26.000Z
2021-09-02T16:05:47.000Z
metal/gdb/__init__.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
1
2020-07-25T15:13:20.000Z
2020-07-25T15:13:20.000Z
from metal.gdb.metal_break import Breakpoint, MetalBreakpoint from metal.gdb.exitcode import ExitBreakpoint from metal.gdb.timeout import Timeout from metal.gdb.newlib import NewlibBreakpoints from metal.gdb.argv import ArgvBreakpoint
26.444444
61
0.852941
32
238
6.3125
0.4375
0.222772
0.29703
0
0
0
0
0
0
0
0
0
0.10084
238
8
62
29.75
0.943925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
433fe053f9b13b1595ca272851794d156b8d5378
11,693
py
Python
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from datetime import datetime from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget, QAbstractItemView, QMenu, QMessageBox from PyQt5.QtGui import QCursor from PyQt5.QtCore import Qt, pyqtSignal, QObject from portfolio.db.fdbhandler import results, strategies, balances def updatingdata(func...
39.107023
120
0.584281
1,274
11,693
5.171115
0.215856
0.019126
0.039466
0.021858
0.365209
0.304341
0.274287
0.228597
0.205525
0.154523
0
0.003056
0.328316
11,693
298
121
39.238255
0.835752
0.215086
0
0.353293
0
0
0.044037
0
0
0
0
0
0
1
0.041916
false
0
0.02994
0
0.107784
0.005988
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43407a7f6606421fcf31d207a893b9e1c5a7f5c3
567
py
Python
Day5/overlap_result.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
Day5/overlap_result.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
Day5/overlap_result.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
class OverlapResult: def __init__(self, overlap_map: dict[tuple[float, float], int]): self._overlap_map = overlap_map self._overlaps = overlap_map_to_overlaps(overlap_map) @property def overlaps(self) -> int: return self._overlaps @property def overlap_map(self) -> dict[tu...
31.5
99
0.698413
75
567
4.96
0.306667
0.268817
0.112903
0.153226
0.365591
0.306452
0.172043
0
0
0
0
0.002169
0.186949
567
17
100
33.352941
0.804772
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.25
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
434140c6bb3287e6ed3f82da31b35ca3a7bbad65
451
py
Python
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
1
2015-02-24T06:30:12.000Z
2015-02-24T06:30:12.000Z
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
null
null
null
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
2
2015-03-19T11:30:49.000Z
2020-03-29T12:08:01.000Z
#!/usr/bin/env python from distutils.core import setup VERSION = "0.0.1" setup( author='Nikolai Tschacher', name = "proxychecker", version = VERSION, description = "A Python proxychecker module that makes use of socks", url = "http://incolumitas.com", license = "BSD", author_email = "admin...
26.529412
73
0.656319
51
451
5.764706
0.745098
0.095238
0
0
0
0
0
0
0
0
0
0.008242
0.192905
451
16
74
28.1875
0.799451
0.044346
0
0
0
0
0.425581
0.048837
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4342126f8186083b8837b5fae410f4df52ae4048
99
py
Python
charlotte/charlotte.py
puiterwijk/charlotte
42aa2a126f473fa4ddedb61eb5dc021d8d609fbe
[ "MIT" ]
5
2018-03-28T23:02:20.000Z
2020-11-16T23:20:18.000Z
charlotte/charlotte.py
puiterwijk/charlotte
42aa2a126f473fa4ddedb61eb5dc021d8d609fbe
[ "MIT" ]
1
2018-06-11T19:52:44.000Z
2018-06-11T19:52:44.000Z
charlotte/charlotte.py
puiterwijk/charlotte
42aa2a126f473fa4ddedb61eb5dc021d8d609fbe
[ "MIT" ]
3
2018-06-11T18:35:20.000Z
2020-12-29T05:59:31.000Z
class Config: def __init__(self, config_file_name): self.config_file_name = config_file_name
19.8
42
0.787879
15
99
4.533333
0.466667
0.441176
0.617647
0.529412
0
0
0
0
0
0
0
0
0.141414
99
4
43
24.75
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
6
43468039289e0d25ecbf534436703bc05e6e79e6
5,156
py
Python
python/app/plugins/http/Struts2/S2_052.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Struts2/S2_052.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Struts2/S2_052.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 from app.lib.utils.request import request from app.lib.utils.encode import base64encode from app.lib.utils.common import get_capta, get_useragent class S2_052_BaseVerify: def __init__(self, url): self.info = { 'name': 'S2-052漏洞,又名CVE-2017-9805漏洞', 'descriptio...
48.641509
138
0.413693
380
5,156
5.531579
0.439474
0.038059
0.068506
0.095147
0.227402
0.20647
0.161751
0.123216
0.123216
0.123216
0
0.027283
0.488169
5,156
106
139
48.641509
0.769231
0.014546
0
0.087912
0
0.065934
0.771519
0.225902
0
0
0
0
0
1
0.021978
false
0.010989
0.032967
0
0.098901
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4346e00af4df20f2f609af7be11fe806991cbce3
905
py
Python
UPD/extension/utils.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
UPD/extension/utils.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
UPD/extension/utils.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
import sys # def get_tools(): # manager = PluginManager() # manager.setPluginPlaces(["plugins/file_cabinet"]) # manager.collectPlugins() # return [plugin.plugin_object for plugin in manager.getAllPlugins()] def get_tools(): import importlib tools = ['file_cabinet', 'us', 'automator', 'main'] ...
34.807692
85
0.654144
102
905
5.588235
0.45098
0.112281
0.038596
0.059649
0.203509
0
0
0
0
0
0
0.005626
0.214365
905
25
86
36.2
0.796062
0.222099
0
0
0
0
0.146132
0.067335
0
0
0
0
0
1
0.055556
false
0.055556
0.222222
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
1
0
0
0
0
0
1
4346fdc0a3d3d41ed572ed723800bf5f1dc198ab
1,574
py
Python
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
28
2019-09-09T08:12:31.000Z
2021-12-17T00:09:14.000Z
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
33
2019-11-07T05:36:04.000Z
2022-01-29T01:14:57.000Z
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
10
2019-09-09T10:04:05.000Z
2021-06-08T16:00:14.000Z
from __future__ import absolute_import, print_function, unicode_literals # "preload" for FindIt #2: iterate over same journal list, but actually # load a PubMedArticle object on each PMID. (no list output created) from metapub import FindIt, PubMedFetcher from metapub.findit.dances import the_doi_2step from config...
30.269231
96
0.628971
204
1,574
4.622549
0.421569
0.050901
0.044539
0.054083
0.182397
0.182397
0.182397
0
0
0
0
0.023417
0.267471
1,574
51
97
30.862745
0.794449
0.086404
0
0.054054
0
0
0.038381
0
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.189189
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
434716a29a916c0a3138b2d8297566e972c6c138
7,640
py
Python
sgcache/control.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
13
2017-09-06T21:48:57.000Z
2022-02-08T20:50:52.000Z
sgcache/control.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
1
2021-04-04T18:07:04.000Z
2021-04-04T18:07:04.000Z
sgcache/control.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
1
2019-07-19T01:23:19.000Z
2019-07-19T01:23:19.000Z
from __future__ import absolute_import from select import select import errno import functools import itertools import json import logging import os import socket import threading import time import traceback log = logging.getLogger(__name__) from .utils import makedirs, unlink class TimeOut(Exception): pass ...
27.383513
109
0.534817
890
7,640
4.446067
0.194382
0.02881
0.025777
0.024008
0.257266
0.196614
0.157695
0.144049
0.144049
0.109679
0
0.002698
0.369241
7,640
278
110
27.482014
0.818427
0.026963
0
0.373206
0
0
0.042272
0
0
0
0
0.003597
0
0
null
null
0.009569
0.062201
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
434721dba4ee0af8165b368cf20f7e199d6dcfdf
502
py
Python
lantz/drivers/tektronix/tds1002b.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
4
2019-05-04T00:10:53.000Z
2020-10-22T18:08:40.000Z
lantz/drivers/tektronix/tds1002b.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
3
2019-07-12T13:44:17.000Z
2020-10-22T19:32:08.000Z
lantz/drivers/tektronix/tds1002b.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
9
2019-04-03T17:07:03.000Z
2021-02-15T21:53:55.000Z
# -*- coding: utf-8 -*- """ lantz.drivers.tektronix.tds1012 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implements the drivers to control an oscilloscope. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from lantz.core import Feat, MessageBase...
22.818182
68
0.633466
57
502
5.526316
0.77193
0.044444
0.088889
0
0
0
0
0
0
0
0
0.052369
0.201195
502
21
69
23.904762
0.733167
0.496016
0
0
0
0
0.066667
0
0
0
0.044444
0
0
1
0.142857
false
0
0.142857
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4348293155a11622c60c701da79d91d559f0de88
48,209
py
Python
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
1
2020-06-09T18:54:09.000Z
2020-06-09T18:54:09.000Z
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
2
2020-06-09T18:54:32.000Z
2021-01-22T21:05:43.000Z
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
1
2020-11-07T20:55:34.000Z
2020-11-07T20:55:34.000Z
########################################################################## # # Copyright 2014 VMware, Inc # Copyright 2011 Jose Fonseca # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
41.523686
344
0.733245
4,791
48,209
7.023377
0.191401
0.065619
0.04012
0.045648
0.318464
0.244376
0.20277
0.171773
0.161283
0.143927
0
0.017536
0.115207
48,209
1,160
345
41.559483
0.771328
0.029019
0
0.19833
0
0
0.390517
0.222227
0
0
0
0
0
1
0
false
0
0.001044
0
0.001044
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2897501c4860742a9eedfd04efe05fea8a41e0
1,465
py
Python
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob import matplotlib.pyplot as plt def camera_calibrate(images_list, nx=9, ny=6, show_corners=False): # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) objp = np.zeros((ny*nx,3), np.float32) objp[:,:2] = np.mgrid[0:nx,0:ny].T.reshape(-1,2) # Ar...
34.069767
83
0.610239
205
1,465
4.321951
0.478049
0.009029
0.029345
0
0
0
0
0
0
0
0
0.038679
0.276451
1,465
43
83
34.069767
0.79717
0.258703
0
0.074074
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0.148148
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
4a2aaff818a2a9076ae44aab87a87c809613d1d6
34
py
Python
python-jenkins/yaml_read_config/custom_log.py
MathiasStadler/docker-jenkins-scripted
3f908987ab0428dd2239b524150ff3b65c71104c
[ "Apache-2.0" ]
null
null
null
python-jenkins/yaml_read_config/custom_log.py
MathiasStadler/docker-jenkins-scripted
3f908987ab0428dd2239b524150ff3b65c71104c
[ "Apache-2.0" ]
null
null
null
python-jenkins/yaml_read_config/custom_log.py
MathiasStadler/docker-jenkins-scripted
3f908987ab0428dd2239b524150ff3b65c71104c
[ "Apache-2.0" ]
1
2020-02-11T04:42:40.000Z
2020-02-11T04:42:40.000Z
""" module logging""" # logging
6.8
21
0.588235
3
34
6.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.205882
34
4
22
8.5
0.740741
0.676471
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
4a2c8215b731a53474eb2fa6ab29c369314e2b86
22,135
py
Python
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
94
2017-02-06T11:01:02.000Z
2022-03-19T16:20:50.000Z
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
564
2016-08-30T16:23:46.000Z
2022-03-31T01:41:16.000Z
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
41
2016-09-13T12:31:42.000Z
2022-03-23T09:42:04.000Z
# Copyright 2021 Red Hat, 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 in writing...
36.830283
92
0.614954
2,293
22,135
5.757087
0.148277
0.037118
0.012954
0.019695
0.54511
0.499886
0.479736
0.461859
0.454587
0.414135
0
0.00065
0.305308
22,135
600
93
36.891667
0.85784
0.251683
0
0.347826
0
0
0.077081
0
0
0
0
0
0.002899
1
0.049275
false
0
0.057971
0
0.127536
0.008696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2ca921ee39571f1f1e9f4e267400d5739cf49c
1,474
py
Python
synchrobot/chat_user.py
Esenin/telegram_vk_pipe_bot
db92fe062a121beebbc386975660d5a76f1b396c
[ "MIT" ]
2
2016-09-20T19:41:40.000Z
2016-10-05T12:49:18.000Z
synchrobot/chat_user.py
Esenin/telegram_vk_pipe_bot
db92fe062a121beebbc386975660d5a76f1b396c
[ "MIT" ]
null
null
null
synchrobot/chat_user.py
Esenin/telegram_vk_pipe_bot
db92fe062a121beebbc386975660d5a76f1b396c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Ivan Senin import calendar import time import datetime as dt import json class User(object): def __init__(self, id, name, last_seen, want_time, muted, username="", additional_keys="{}"): super(User, self).__init__() self.id = id self.name = name self.username = username se...
26.321429
102
0.708955
233
1,474
4.193133
0.266094
0.09826
0.061412
0.0348
0.038895
0
0
0
0
0
0
0.006405
0.152646
1,474
55
103
26.8
0.775821
0.027137
0
0.102564
0
0.025641
0.065734
0
0
0
0
0
0
1
0.25641
false
0
0.102564
0.102564
0.512821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
4a2d85e10d7ec8df4402f2b20294f47dcb467eb8
16,294
py
Python
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from enum import Enum from typing import Dict, List, Optional import pydantic from fastapi import HTTPException, Path, status from pydantic import BaseModel, EmailStr, Field from contaxy.schema.exceptions import ClientValueError from contaxy.schema.shared import MAX_DESCRIPTION...
37.457471
266
0.651774
1,948
16,294
5.384497
0.209446
0.042997
0.051483
0.049576
0.446086
0.391744
0.341119
0.299171
0.29488
0.29488
0
0.014057
0.257764
16,294
434
267
37.543779
0.853233
0.327912
0
0.2
0
0.044444
0.396443
0.015932
0
0
0
0.004608
0
1
0.011111
false
0.033333
0.033333
0.003704
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2f072d42921424ab487e97b0b0a7b2ce429f4d
1,193
py
Python
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
19
2020-08-28T08:35:21.000Z
2021-03-08T18:42:46.000Z
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
3
2020-08-31T15:57:55.000Z
2020-09-05T09:34:09.000Z
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
null
null
null
import setuptools from hugdatafast.__init__ import __version__ with open("README.md", "r") as fh: long_description = fh.read() REQUIRED_PKGS = [ 'fastai>=2.0.8', 'fastscore>=1.0.1', # change of store_attr api 'datasets', ] setuptools.setup( name="hugdatafast", version=__version__, author=...
33.138889
77
0.68399
128
1,193
6.179688
0.71875
0.075853
0.04804
0.075853
0
0
0
0
0
0
0
0.016632
0.19363
1,193
36
78
33.138889
0.805613
0.020117
0
0
0
0
0.473459
0.038527
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2f0deb5d53bf6a5794ae465d5f56eb3c3bd2c5
3,591
py
Python
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
null
null
null
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
3
2022-01-31T10:24:53.000Z
2022-03-29T12:30:04.000Z
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
null
null
null
import pytest from leapp.repository.actor_definition import ActorDefinition, ActorInspectionFailedError, MultipleActorsError from leapp.exceptions import UnsupportedDefinitionKindError from leapp.repository import DefinitionKind from helpers import repository_dir import logging import mock _FAKE_META_DATA = { 'de...
49.875
118
0.601225
342
3,591
6.081871
0.25731
0.042308
0.063462
0.100962
0.305769
0.286058
0.286058
0.286058
0.238942
0.238942
0
0
0.29741
3,591
71
119
50.577465
0.824415
0.010025
0
0.190476
0
0
0.161835
0.078807
0
0
0
0
0.238095
1
0.015873
false
0
0.111111
0
0.126984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2f4eecfe75a9c91356c84f877db3d3e9fc53fc
2,139
py
Python
iHome/house/models.py
yeyuning1/iHome
aceb87d786ab66cf74ff47f549ec73388d21c9e3
[ "MIT" ]
2
2019-08-13T07:34:35.000Z
2019-08-13T08:11:46.000Z
iHome/house/models.py
yeyuning1/iHome
aceb87d786ab66cf74ff47f549ec73388d21c9e3
[ "MIT" ]
null
null
null
iHome/house/models.py
yeyuning1/iHome
aceb87d786ab66cf74ff47f549ec73388d21c9e3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from utils.models import BaseModel class House(BaseModel): '''房屋信息''' user = models.ForeignKey('users.User', on_delete=models.CASCADE, verbose_name='房屋用户') area = models.ForeignKey('address.Area', on_delete=models.SET_NULL, null=True, verbo...
41.941176
104
0.697522
260
2,139
5.523077
0.346154
0.206825
0.087744
0.116992
0.410864
0.268802
0
0
0
0
0
0.014815
0.179523
2,139
50
105
42.78
0.803419
0.033193
0
0.166667
0
0
0.087131
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.75
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4a31433e8acb3aa3c417194791048caf8fdb3d24
15,863
py
Python
cltwit/main.py
Psycojoker/cltwit
3164f263df60d608da124ceb7d1e56bbdde7c930
[ "WTFPL", "Unlicense" ]
null
null
null
cltwit/main.py
Psycojoker/cltwit
3164f263df60d608da124ceb7d1e56bbdde7c930
[ "WTFPL", "Unlicense" ]
null
null
null
cltwit/main.py
Psycojoker/cltwit
3164f263df60d608da124ceb7d1e56bbdde7c930
[ "WTFPL", "Unlicense" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Cltwit is a command line twitter utility Author : Jérôme Launay Date : 2013 """ import os import sys import re import getopt import gettext import sqlite3 import webbrowser import ConfigParser from sqlite2csv import sqlite2csv from cltwitdb import cltwitdb from utils...
36.635104
140
0.566034
1,890
15,863
4.621164
0.234392
0.017518
0.012594
0.012022
0.272269
0.236432
0.178154
0.173918
0.154225
0.154225
0
0.011848
0.313623
15,863
432
141
36.719907
0.79032
0.100801
0
0.278638
0
0.003096
0.201855
0.004455
0
0
0
0
0
0
null
null
0.024768
0.049536
null
null
0.167183
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4a32ad81cfcc28f835805b24183250a1a290fdeb
235
py
Python
weibo_image_spider/exceptions.py
lonsty/weibo-pic-spider-hd
c7dae38b51209296cc8e71aa6fb80f094d549198
[ "MIT" ]
null
null
null
weibo_image_spider/exceptions.py
lonsty/weibo-pic-spider-hd
c7dae38b51209296cc8e71aa6fb80f094d549198
[ "MIT" ]
null
null
null
weibo_image_spider/exceptions.py
lonsty/weibo-pic-spider-hd
c7dae38b51209296cc8e71aa6fb80f094d549198
[ "MIT" ]
null
null
null
# @AUTHOR : lonsty # @DATE : 2020/3/28 18:01 class CookiesExpiredException(Exception): pass class NoImagesException(Exception): pass class ContentParserError(Exception): pass class UserNotFound(Exception): pass
12.368421
41
0.719149
24
235
7.041667
0.625
0.307692
0.319527
0
0
0
0
0
0
0
0
0.057895
0.191489
235
18
42
13.055556
0.831579
0.170213
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
4a33a995384ea8c9d2b8647bf4341ccfb7cc9243
1,135
py
Python
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
2
2018-01-20T02:24:20.000Z
2018-06-07T18:16:59.000Z
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import re # 设置请求头 # 更换一下爬虫的User-Agent,这是最常规的爬虫设置 headers = { "User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'} # 获取天气信息 def get_weather(): html = requests.get("http://www.wea...
31.527778
142
0.65022
168
1,135
4.22619
0.565476
0.016901
0.042254
0.053521
0.188732
0.138028
0.138028
0.138028
0.138028
0.138028
0
0.054898
0.181498
1,135
35
143
32.428571
0.709365
0.100441
0
0.173913
0
0.043478
0.300493
0.023645
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.217391
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a3450cf5aa9171992cee7901efa3fe712343d3d
1,158
py
Python
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
1
2020-09-03T14:46:35.000Z
2020-09-03T14:46:35.000Z
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
1
2021-09-09T12:54:09.000Z
2021-09-14T07:47:58.000Z
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
null
null
null
import numpy as np import math import matplotlib.pyplot as plt U = 5 # equival a l'E R = 2 # equival a R1 R2 = 3 P = 1.2 Vt = 0.026 Is = 0.000005 n = 200 # profunditat Vd = np.zeros(n) # sèries Vl = np.zeros(n) I1 = np.zeros(n) I1[0] = U / R # inicialització de les sèries Vd[0] = Vt * math.log(1 + I1[0] / Is)...
19.3
76
0.541451
223
1,158
2.811659
0.313901
0.028708
0.051037
0.031898
0.124402
0.054226
0.054226
0
0
0
0
0.062871
0.272021
1,158
59
77
19.627119
0.680902
0.183074
0
0.097561
0
0
0.016077
0
0
0
0
0
0
1
0.04878
false
0
0.073171
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
4a35a45ae37a4457776d2a6b8d99ec59f3f7c227
614
py
Python
proxybroker/errors.py
aljeshishe/ProxyBroker
195c050162275f63ebe033be765abec90601e3e1
[ "Apache-2.0" ]
null
null
null
proxybroker/errors.py
aljeshishe/ProxyBroker
195c050162275f63ebe033be765abec90601e3e1
[ "Apache-2.0" ]
null
null
null
proxybroker/errors.py
aljeshishe/ProxyBroker
195c050162275f63ebe033be765abec90601e3e1
[ "Apache-2.0" ]
1
2020-04-30T09:25:25.000Z
2020-04-30T09:25:25.000Z
"""Errors.""" class ProxyError(Exception): pass class NoProxyError(Exception): pass class ResolveError(Exception): pass class ProxyConnError(ProxyError): pass class ProxyRecvError(ProxyError): # connection_is_reset pass class ProxySendError(ProxyError): # connection_is_reset pass ...
12.28
56
0.732899
56
614
7.964286
0.339286
0.221973
0.201794
0.121076
0.161435
0.161435
0
0
0
0
0
0
0.192182
614
49
57
12.530612
0.899194
0.100977
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
4a36242f8ee5ebc5d59f9cbb0e67fddbadbb4a7c
729
py
Python
questionanswering/models/pooling.py
lvying1991/KBQA-System
55e69c8320df3f7b199860afc76e8a0ab66f540e
[ "Apache-2.0" ]
2
2019-09-10T13:20:27.000Z
2019-11-14T12:58:40.000Z
questionanswering/models/pooling.py
lvying1991/KBQA-System
55e69c8320df3f7b199860afc76e8a0ab66f540e
[ "Apache-2.0" ]
null
null
null
questionanswering/models/pooling.py
lvying1991/KBQA-System
55e69c8320df3f7b199860afc76e8a0ab66f540e
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn as nn from torch import autograd class LogSumExpPooling1d(nn.Module): """Applies a 1D LogSumExp pooling over an input signal composed of several input planes. LogSumExp is a smooth approximation of the max function. 在由多个输入平面组成的输入信号上应用1D LogSumExp池。 LogSumExp是max函数的平滑近...
25.137931
92
0.650206
87
729
5.195402
0.632184
0.039823
0.066372
0
0
0
0
0
0
0
0
0.018116
0.242798
729
28
93
26.035714
0.800725
0.430727
0
0
0
0
0.005319
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2