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
4cdf00c034803945ee33601f9708a50316c04639
2,356
py
Python
app/order/service/business_rules.py
jonatasoli/fastapi-design-api-example
16e620123d77506e6b4d6cc3947749f46bcd08be
[ "MIT" ]
6
2021-06-21T19:38:07.000Z
2022-01-27T14:53:32.000Z
app/order/service/business_rules.py
jonatasoli/fastapi-design-api-example
16e620123d77506e6b4d6cc3947749f46bcd08be
[ "MIT" ]
null
null
null
app/order/service/business_rules.py
jonatasoli/fastapi-design-api-example
16e620123d77506e6b4d6cc3947749f46bcd08be
[ "MIT" ]
2
2021-06-27T13:22:07.000Z
2022-02-26T12:21:13.000Z
from enum import Enum from fastapi import status, HTTPException from order.adapters.orm_adapter import ordermodel class Order: async def create(self, data): return await ordermodel.create(obj_in=data) async def update(self, id, data): _order = await ordermodel.get(id) if not hasattr(...
30.597403
74
0.634975
272
2,356
5.327206
0.194853
0.083506
0.10628
0.069013
0.677019
0.677019
0.654934
0.654934
0.654934
0.654934
0
0.007101
0.282683
2,356
76
75
31
0.850296
0
0
0.45614
0
0
0.09635
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ce029b88f9781c44f9aac09c9b82431b0776cea
2,924
py
Python
python/nlutext/core/dmo/compute_skipgrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlutext/core/dmo/compute_skipgrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlutext/core/dmo/compute_skipgrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging from base import BaseObject def to_list(results): """ Purpose: Simplify the ComputeSkipGrams result set :param results: a ComputeSkipsGrams result set looks like this [(u'Problems', u'installing'), (u'Proble...
32.853933
101
0.583447
360
2,924
4.627778
0.352778
0.009604
0.018007
0.02401
0.108643
0.096639
0.068427
0.068427
0.068427
0.068427
0
0.01003
0.318057
2,924
88
102
33.227273
0.825476
0.304378
0
0.042553
0
0
0.049459
0
0
0
0
0
0
1
0.085106
false
0
0.085106
0
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ce04faa5d749db078374857f3e01f70a177ea29
230
py
Python
Gathered CTF writeups/2017-01-21-insomnihack/internet_of_fail/get.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2017-01-21-insomnihack/internet_of_fail/get.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2017-01-21-insomnihack/internet_of_fail/get.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
import r2pipe, sys r2=r2pipe.open("iof.elf") s=r2.cmd("p8 4 @ "+sys.argv[1]) s=s[6:8]+s[4:6]+s[2:4]+s[0:2] print s print r2.cmd("xr 4 @ "+sys.argv[1]+"") r=open("esp32.rom").readlines() for l in r: if s in l: print l
19.166667
38
0.569565
54
230
2.425926
0.5
0.076336
0.122137
0.137405
0
0
0
0
0
0
0
0.105263
0.173913
230
11
39
20.909091
0.584211
0
0
0
0
0
0.130435
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ce0d66bfe16b09f985e8ac75c24ab6829cbd675
1,021
py
Python
Variado_GeekUniversity/guppe/escopo_de_variaveis.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/escopo_de_variaveis.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/escopo_de_variaveis.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" Escopo de variáveis Dois casos de escopo: 1 - Variáveis globais; - Variáveis globais são reconhecidas, ou seja, seu escopo compreende, todo o o programa. 2 - Variáveis locais; - Variáveis locais são reconhecidas apenas no bloco onde foram declaradas, ou seja, seu escopo está limitado ao bloco onde fo...
20.019608
110
0.735553
155
1,021
4.806452
0.529032
0.042953
0.024161
0.040268
0.069799
0
0
0
0
0
0
0.01827
0.195886
1,021
50
111
20.42
0.88916
0.769834
0
0.615385
0
0
0.026667
0
0
0
0
0.02
0
1
0
false
0
0
0
0
0.538462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
2
4ce10de9cf24ed153cc68da30a0c3c4145e496d1
2,117
py
Python
tests/unit/test_endpoint.py
jsenecal/pynetbox
5cc08971bb37add2d086a65ff90ce684f7cb8936
[ "Apache-2.0" ]
null
null
null
tests/unit/test_endpoint.py
jsenecal/pynetbox
5cc08971bb37add2d086a65ff90ce684f7cb8936
[ "Apache-2.0" ]
null
null
null
tests/unit/test_endpoint.py
jsenecal/pynetbox
5cc08971bb37add2d086a65ff90ce684f7cb8936
[ "Apache-2.0" ]
null
null
null
import unittest import six from pynetbox.core.endpoint import Endpoint if six.PY3: from unittest.mock import patch, Mock, call else: from mock import patch, Mock, call class EndPointTestCase(unittest.TestCase): def test_filter(self): with patch( "pynetbox.core.query.Request.get", r...
32.569231
71
0.503543
224
2,117
4.625
0.258929
0.046332
0.042471
0.054054
0.633205
0.532819
0.484556
0.413127
0.413127
0.413127
0
0.022946
0.361833
2,117
64
72
33.078125
0.743893
0
0
0.339623
0
0
0.148323
0.031176
0
0
0
0
0.09434
1
0.075472
false
0
0.09434
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ce28ec33f1b90ba4eea04b44fcf9d5773fb6ddb
1,030
py
Python
secondcounter.py
KhushrajSingh/secondcounter
57f3cc3bfad329db576200c9088342dc18e3f544
[ "Apache-2.0" ]
null
null
null
secondcounter.py
KhushrajSingh/secondcounter
57f3cc3bfad329db576200c9088342dc18e3f544
[ "Apache-2.0" ]
null
null
null
secondcounter.py
KhushrajSingh/secondcounter
57f3cc3bfad329db576200c9088342dc18e3f544
[ "Apache-2.0" ]
null
null
null
# secondcounter from tkinter import * import threading import time r=Tk() r.geometry("400x400") r.minsize(200,200) r.maxsize(500,500) speed=0 count=0 counting=None counting=IntVar() def counter(): global speed,count print(count) while True: time.sleep(1) count+=speed counting.set(cou...
22.888889
66
0.715534
164
1,030
4.493902
0.420732
0.048847
0.043419
0.02171
0.046133
0
0
0
0
0
0
0.076412
0.123301
1,030
44
67
23.409091
0.739756
0.012621
0
0.162791
0
0
0.066995
0
0
0
0
0
0
1
0.093023
false
0
0.069767
0
0.162791
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ce456b332687b0aaab16e40b3ae7db032160a3e
655
py
Python
app/schemas/apps.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
1
2022-03-21T07:37:02.000Z
2022-03-21T07:37:02.000Z
app/schemas/apps.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
25
2022-01-16T13:18:21.000Z
2022-03-29T13:08:19.000Z
app/schemas/apps.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
1
2022-01-15T21:42:00.000Z
2022-01-15T21:42:00.000Z
from typing import List, Optional from app.schemas.base import APIBaseCreateSchema, APIBaseSchema, PyObjectId class AppSchema(APIBaseSchema): name: str creator: PyObjectId description: Optional[str] = "" class AppCreateSchema(APIBaseCreateSchema): name: str = "" description: Optional[str] = "" ...
24.259259
75
0.59542
56
655
6.910714
0.589286
0.036176
0.113695
0
0
0
0
0
0
0
0
0
0.29313
655
26
76
25.192308
0.835853
0
0
0.1
0
0
0.138931
0
0
0
0
0
0
1
0
false
0
0.1
0
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4ce47174b33e5c235fadc99814a377171134f0b5
1,365
py
Python
student_app/urls.py
abhinav042/COMP3297
3c37a4330d94a45cdabaa26bc17147ae73118cfb
[ "MIT" ]
null
null
null
student_app/urls.py
abhinav042/COMP3297
3c37a4330d94a45cdabaa26bc17147ae73118cfb
[ "MIT" ]
8
2020-06-05T17:52:40.000Z
2022-03-11T23:18:13.000Z
student_app/urls.py
abhinav042/COMP3297
3c37a4330d94a45cdabaa26bc17147ae73118cfb
[ "MIT" ]
1
2018-09-03T00:46:07.000Z
2018-09-03T00:46:07.000Z
from django.conf.urls import url from student_app import views from django.contrib.auth.views import password_reset,password_reset_done,password_reset_confirm,password_reset_complete # SET THE NAMESPACE! app_name = 'student_app' # Be careful setting the name to just /login use userlogin instead! urlpatterns=[ ur...
48.75
119
0.716484
192
1,365
4.895833
0.302083
0.068085
0.019149
0
0
0
0
0
0
0
0
0
0.098169
1,365
27
120
50.555556
0.763607
0.209524
0
0
0
0
0.296365
0.029823
0
0
0
0
0
1
0
false
0.105263
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4ce56b8f20f90503acb560b9399f2299da64609c
260
py
Python
modelling/trust.py
glosophy/CatoHFI
cd9c285a919a1d6d11eef0c9eae115ad90116bc9
[ "MIT" ]
null
null
null
modelling/trust.py
glosophy/CatoHFI
cd9c285a919a1d6d11eef0c9eae115ad90116bc9
[ "MIT" ]
null
null
null
modelling/trust.py
glosophy/CatoHFI
cd9c285a919a1d6d11eef0c9eae115ad90116bc9
[ "MIT" ]
null
null
null
import pandas as pd trust = pd.read_csv('WVS_TimeSeries_1981_2020_ascii_v2_0.csv') trust = trust[['COUNTRY_ALPHA', 'S020', 'A165', 'A170', 'A169']] trust = trust.rename(columns={'COUNTRY_ALPHA': 'ISO', 'S020': 'year'}) trust.to_csv('trust.csv', index=None)
28.888889
70
0.703846
40
260
4.325
0.675
0.092486
0
0
0
0
0
0
0
0
0
0.106383
0.096154
260
9
71
28.888889
0.629787
0
0
0
0
0
0.386973
0.149425
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
4ce5bd1625f87c4c25d913cfe72c92e407ce8cb2
1,164
py
Python
python_code/file_utils.py
NicolaiP/cca_mtfs
8438c80f4e31dd6c69921478ccfdfbc647e9d81e
[ "MIT" ]
null
null
null
python_code/file_utils.py
NicolaiP/cca_mtfs
8438c80f4e31dd6c69921478ccfdfbc647e9d81e
[ "MIT" ]
null
null
null
python_code/file_utils.py
NicolaiP/cca_mtfs
8438c80f4e31dd6c69921478ccfdfbc647e9d81e
[ "MIT" ]
null
null
null
import os import pickle def save_as_pickle(variable_name, save_name): """Saves variable as pickle file. # Arguments save_name: Name of file. # Example dataPath = "C:/Users/nicol/Desktop/Master/Data/" save_name = dataPath + 'predictionsResNet50ADAM_lr0001_decay0005' file_uti...
25.304348
73
0.623711
146
1,164
4.794521
0.410959
0.057143
0.034286
0.06
0.182857
0.122857
0.122857
0.122857
0
0
0
0.024138
0.252577
1,164
45
74
25.866667
0.78046
0.513746
0
0
0
0
0.045161
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ce63a51796d09d0a17014a9fc2ac0dc26691fea
237
py
Python
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
from nose.tools import ok_ import oemof import oemof.db as oemofdb def test_that_oemof_is_importable(): ok_(oemof.__version__) def test_oemofdb_imports(): ok_(oemofdb.connection) ok_(oemofdb.engine) ok_(oemofdb.url)
15.8
36
0.751055
34
237
4.794118
0.558824
0.165644
0
0
0
0
0
0
0
0
0
0
0.164557
237
14
37
16.928571
0.823232
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
true
0
0.555556
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
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
1
0
1
0
1
0
0
4
4ce6d6a0bff2622c22fb1c1367e64eb0e4b661d8
2,440
py
Python
tests/test_models/test_common/test_ensemble.py
miaomiaojj/mmediting-master
4705db3000b3766af4932a7a8e090ed6e8198afe
[ "Apache-2.0" ]
1
2022-03-22T03:00:20.000Z
2022-03-22T03:00:20.000Z
tests/test_models/test_common/test_ensemble.py
miaomiaojj/mmediting-master
4705db3000b3766af4932a7a8e090ed6e8198afe
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_common/test_ensemble.py
miaomiaojj/mmediting-master
4705db3000b3766af4932a7a8e090ed6e8198afe
[ "Apache-2.0" ]
1
2022-03-10T01:00:24.000Z
2022-03-10T01:00:24.000Z
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import pytest import torch import torch.nn as nn from mmedit.models.common import SpatialTemporalEnsemble def test_ensemble_cpu(): model = nn.Identity() # spatial ensemble of an image ensemble = SpatialTemporalEnsemble(is_temporal_ensemb...
37.538462
77
0.686475
302
2,440
5.437086
0.172185
0.116931
0.16078
0.199756
0.856882
0.856882
0.856882
0.856882
0.856882
0.856882
0
0.018634
0.208197
2,440
64
78
38.125
0.831263
0.138115
0
0.761905
0
0
0
0
0
0
0
0
0.142857
1
0.047619
false
0
0.119048
0
0.166667
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
4cea47a6d8f11b1f745d5eb164a78367ed89d7e6
10,299
py
Python
pkgtools/pypi.py
rubik/pkgtools
17c9dc93835b01f49c4cd96725ec069c0b3db8c9
[ "MIT" ]
3
2015-07-11T09:11:43.000Z
2016-08-19T14:29:53.000Z
pkgtools/pypi.py
rubik/pkgtools
17c9dc93835b01f49c4cd96725ec069c0b3db8c9
[ "MIT" ]
1
2016-03-05T14:37:35.000Z
2016-03-10T17:04:31.000Z
pkgtools/pypi.py
rubik/pkgtools
17c9dc93835b01f49c4cd96725ec069c0b3db8c9
[ "MIT" ]
null
null
null
import sys from .utils import ext if sys.version_info >= (3,): import xmlrpc.client as xmlrpclib import urllib.request as urllib2 else: import xmlrpclib import urllib2 try: import simplejson as json except ImportError: import json def pypi_client(index_url='http://pypi.python.org/pypi', *arg...
34.793919
439
0.54549
1,276
10,299
4.315831
0.246865
0.008716
0.010169
0.022698
0.18649
0.165426
0.138369
0.134011
0.117124
0.104231
0
0.046699
0.311778
10,299
295
440
34.911864
0.730248
0.622779
0
0
0
0
0.069413
0
0
0
0
0
0
1
0.25
false
0
0.160714
0.035714
0.660714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4ceafd1d7403a9d630e60481f60455a521f8c29e
399
py
Python
htmlmth/mods/html/prepend_content_into_body.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
htmlmth/mods/html/prepend_content_into_body.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
htmlmth/mods/html/prepend_content_into_body.py
ZwCreatePhoton/htmlmth
74d23ca2fa53e11b2587251d2f71c8f275548182
[ "MIT" ]
null
null
null
import re from . import Mod REPLACE_TEXT = "REPLACEME" def prepend_content_into_body(content, output): p = re.compile(r'(?i)(<[^/>]*body[^>]*>)([\s\S]*)(<\s*\/s*body[^>]*>)') sub = r'\1' + REPLACE_TEXT + r'\2' + r'\3' output = re.sub(p, sub, output) output = output.replace(REPLACE_TEXT, content) ...
24.9375
75
0.641604
59
399
4.118644
0.389831
0.135802
0.222222
0.271605
0.205761
0
0
0
0
0
0
0.008929
0.157895
399
16
76
24.9375
0.714286
0
0
0
0
0
0.1675
0.13
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
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
4ceb9d508c92b3403c67b0ebe8937b62d1700952
2,466
py
Python
src/com/web/utils/Log.py
jenniferhaoba/AutomationTest
e73380d57c0f4c97cfa8471e6ec164970eb94b83
[ "MIT" ]
null
null
null
src/com/web/utils/Log.py
jenniferhaoba/AutomationTest
e73380d57c0f4c97cfa8471e6ec164970eb94b83
[ "MIT" ]
null
null
null
src/com/web/utils/Log.py
jenniferhaoba/AutomationTest
e73380d57c0f4c97cfa8471e6ec164970eb94b83
[ "MIT" ]
null
null
null
""" 日志类。通过读取配置文件,定义日志级别、日志文件名、日志格式等。 日志级别等级CRITICAL > ERROR > WARNING > INFO > DEBUG > NOTSET 一般直接把logger import进去 from utils.log import logger logger.info('test log') """ import logging from logging.handlers import TimedRotatingFileHandler from com.web.utils.Config import LOG_PATH, Config import os class Logger(objec...
45.666667
120
0.579481
258
2,466
5.379845
0.356589
0.028818
0.021614
0.025216
0.09366
0.034582
0
0
0
0
0
0.001803
0.325223
2,466
54
121
45.666667
0.832332
0.148418
0
0
0
0
0.096135
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cebd4546485ab684a51196987e1925bef4c467c
141
py
Python
mdssdk/parsers/portchannel/__init__.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
4
2020-12-13T20:02:43.000Z
2022-02-27T23:36:58.000Z
mdssdk/parsers/portchannel/__init__.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
13
2020-09-23T07:30:15.000Z
2022-03-30T01:12:25.000Z
mdssdk/parsers/portchannel/__init__.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
12
2020-05-11T09:33:21.000Z
2022-03-18T11:11:28.000Z
from .show_port_channel_database import ShowPortChannelDatabase from .show_port_channel_database_detail import ShowPortChannelDatabaseDetail
47
76
0.929078
15
141
8.266667
0.6
0.129032
0.193548
0.306452
0.435484
0
0
0
0
0
0
0
0.056738
141
2
77
70.5
0.932331
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
4ced5e6d415f7d6cd756a58a06e9108dee5a88c4
8,385
py
Python
tests/test_signature_parser.py
mulkieran/into-dbus-python
20465e418a1189e2371a11b4a4032ea9f481366a
[ "Apache-2.0" ]
null
null
null
tests/test_signature_parser.py
mulkieran/into-dbus-python
20465e418a1189e2371a11b4a4032ea9f481366a
[ "Apache-2.0" ]
null
null
null
tests/test_signature_parser.py
mulkieran/into-dbus-python
20465e418a1189e2371a11b4a4032ea9f481366a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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...
32.374517
79
0.620394
967
8,385
5.23061
0.284385
0.03796
0.059312
0.05259
0.225188
0.159154
0.109727
0.109727
0.090154
0.046659
0
0.017556
0.300298
8,385
258
80
32.5
0.844554
0.237567
0
0.1625
0
0
0.004077
0
0
0
0.016634
0
0.03125
1
0.03125
false
0
0.06875
0
0.19375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cef2678285501dd8561a07546a5065697d19120
2,435
py
Python
src/ychaos/utils/builtins.py
eisenhowerj/ychaos
de7572e35d89eedb5d7d2ad6a8e1fda52179eccc
[ "Apache-2.0" ]
null
null
null
src/ychaos/utils/builtins.py
eisenhowerj/ychaos
de7572e35d89eedb5d7d2ad6a8e1fda52179eccc
[ "Apache-2.0" ]
null
null
null
src/ychaos/utils/builtins.py
eisenhowerj/ychaos
de7572e35d89eedb5d7d2ad6a8e1fda52179eccc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Yahoo # Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms import re from enum import Enum from types import DynamicClassAttribute, SimpleNamespace from typing import Any, Iterable, List, Optional, Type, TypeVar T = TypeVar("T") class BuiltinUt...
26.182796
105
0.582341
311
2,435
4.459807
0.382637
0.050469
0.025955
0.018745
0.05912
0.050469
0.050469
0.050469
0.050469
0
0
0.011323
0.310883
2,435
92
106
26.467391
0.815256
0.275154
0
0.1875
0
0.020833
0.075871
0.039801
0
0
0
0
0
1
0.166667
false
0.041667
0.083333
0.041667
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf04fc94d1d561bab8a6c6919bd8c2acfb5aa27
5,091
py
Python
piProbe.py
MelonSmasher/piProbe
3f7df58fd19c6dd48851475b1673e0ef45aeabc3
[ "MIT" ]
15
2019-04-24T13:53:22.000Z
2022-01-25T17:34:04.000Z
piProbe.py
MelonSmasher/piProbe
3f7df58fd19c6dd48851475b1673e0ef45aeabc3
[ "MIT" ]
null
null
null
piProbe.py
MelonSmasher/piProbe
3f7df58fd19c6dd48851475b1673e0ef45aeabc3
[ "MIT" ]
3
2019-07-06T20:07:17.000Z
2022-03-22T23:38:21.000Z
import sys import os import socket import json import time import subprocess from influxdb import InfluxDBClient import Adafruit_DHT def getConfig(): # Pull the configuratin from env vars or the config file if os.environ.get('AM_I_IN_A_DOCKER_CONTAINER', False): c = { "debug": os.environ....
33.058442
102
0.535062
562
5,091
4.770463
0.298932
0.046997
0.062663
0.067139
0.238344
0.173443
0.115256
0.078329
0.078329
0.078329
0
0.012835
0.326655
5,091
153
103
33.27451
0.769253
0.104302
0
0.17094
0
0
0.243892
0.031257
0
0
0
0
0
1
0.025641
false
0.025641
0.068376
0
0.102564
0.094017
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf0d2e8ea27e791ec4602dc58532416032766d1
561
py
Python
artista/artistArt/migrations/0005_auto_20200620_1932.py
Rafat97/Artista
40a824f97dcc8f97632a1864a12329c3172c7c66
[ "MIT" ]
17
2020-09-21T19:59:23.000Z
2021-05-16T15:28:41.000Z
artista/artistArt/migrations/0005_auto_20200620_1932.py
Rafat97/Artista
40a824f97dcc8f97632a1864a12329c3172c7c66
[ "MIT" ]
null
null
null
artista/artistArt/migrations/0005_auto_20200620_1932.py
Rafat97/Artista
40a824f97dcc8f97632a1864a12329c3172c7c66
[ "MIT" ]
2
2021-03-13T09:31:30.000Z
2022-03-19T09:43:15.000Z
# Generated by Django 3.0.4 on 2020-06-20 13:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('artistArt', '0004_auto_20200617_1706'), ] operations = [ migrations.AddField( model_name='artistart', name='tags', ...
23.375
64
0.58467
57
561
5.631579
0.719298
0.11215
0.143302
0.168224
0.249221
0.249221
0
0
0
0
0
0.091837
0.301248
561
23
65
24.391304
0.727041
0.080214
0
0.352941
1
0
0.124514
0.044747
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
4cf2a398b75def27862677b4c356e9aadd34c1d2
930
py
Python
mh_3.py
Harshsa28/Monty-Hall-problem
6715da5b027fec841cc9c587833b83f866422eaa
[ "MIT" ]
null
null
null
mh_3.py
Harshsa28/Monty-Hall-problem
6715da5b027fec841cc9c587833b83f866422eaa
[ "MIT" ]
null
null
null
mh_3.py
Harshsa28/Monty-Hall-problem
6715da5b027fec841cc9c587833b83f866422eaa
[ "MIT" ]
null
null
null
import random no_switch = 0 switch= 0 ''' for i in range(10000): car_loc = random.randint(1,3) #obviously random my_choice = random.randint(1,3) #obviously random host = [1,2,3] host.remove(car_loc) if my_choice in host: host.remove(my_choice) host = random.choice(host) options = [1...
24.473684
67
0.626882
147
930
3.829932
0.29932
0.142096
0.099467
0.106572
0.337478
0.280639
0.131439
0.131439
0.131439
0.131439
0
0.047059
0.268817
930
37
68
25.135135
0.780882
0.2
0
0
0
0
0.016667
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf388cb65cadeeda551e64e41b0b9f0bada7835
813
py
Python
day13/day13-1.py
RobinRH/advent-of-code-2017
8996691abf4d9020294e5b750bef1e35effd5c68
[ "MIT" ]
null
null
null
day13/day13-1.py
RobinRH/advent-of-code-2017
8996691abf4d9020294e5b750bef1e35effd5c68
[ "MIT" ]
null
null
null
day13/day13-1.py
RobinRH/advent-of-code-2017
8996691abf4d9020294e5b750bef1e35effd5c68
[ "MIT" ]
null
null
null
# answer 1632 import csv import sys filename = sys.argv[1] layers = dict() with open(filename, 'r') as f: reader = csv.reader(f, delimiter=':') for row in reader: layer = map((lambda x : int(x)), row) layers[layer[0]] = layer[1] def getLayerAtTime(depth, time): # find the remainder of de...
19.829268
60
0.616236
105
813
4.771429
0.466667
0.023952
0.05988
0
0
0
0
0
0
0
0
0.023451
0.265683
813
40
61
20.325
0.815745
0.076261
0
0
0
0
0.002677
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4cf536611c9c289cf0a6a5b53a470c6346137063
3,190
py
Python
mmocr/models/textdet/postprocess/pse_postprocessor.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
2,261
2021-04-08T03:45:41.000Z
2022-03-31T23:37:46.000Z
mmocr/models/textdet/postprocess/pse_postprocessor.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
789
2021-04-08T05:40:13.000Z
2022-03-31T09:42:39.000Z
mmocr/models/textdet/postprocess/pse_postprocessor.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
432
2021-04-08T03:56:16.000Z
2022-03-30T18:44:43.000Z
# Copyright (c) OpenMMLab. All rights reserved. import cv2 import numpy as np import torch from mmcv.ops import contour_expand from mmocr.core import points2boundary from mmocr.models.builder import POSTPROCESSOR from .base_postprocessor import BasePostprocessor @POSTPROCESSOR.register_module() class PSEPostprocess...
35.842697
79
0.610658
369
3,190
5.01626
0.344173
0.058347
0.061588
0.06483
0.097245
0
0
0
0
0
0
0.015267
0.301881
3,190
88
80
36.25
0.815896
0.20627
0
0
0
0
0.001636
0
0
0
0
0
0.092593
1
0.037037
false
0
0.12963
0
0.203704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf66bed6aed3640c350133fd53dbb1d5085fced
163
py
Python
small_screen/fullscreen.py
Bmbus/PiFrame
880560a387fdc17e114308a4c162bdb12ed9bfe1
[ "MIT" ]
null
null
null
small_screen/fullscreen.py
Bmbus/PiFrame
880560a387fdc17e114308a4c162bdb12ed9bfe1
[ "MIT" ]
null
null
null
small_screen/fullscreen.py
Bmbus/PiFrame
880560a387fdc17e114308a4c162bdb12ed9bfe1
[ "MIT" ]
null
null
null
from selenium import webdriver driver = webdriver.Firefox() driver.get("http://127.0.0.1:8080/#") b = driver.find_elements_by_id("view-fullscreen")[0] b.click()
20.375
52
0.730061
26
163
4.461538
0.769231
0
0
0
0
0
0
0
0
0
0
0.073826
0.08589
163
8
53
20.375
0.704698
0
0
0
0
0
0.231707
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4cf6adac32a989c6e601b495a7a73b88e57eabb4
878
py
Python
dags/kd03-dags/research_report_parser.py
ywf5566/airflow
e7872dddbf275729b2c42e2a4ff602a6df7d1536
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
dags/kd03-dags/research_report_parser.py
ywf5566/airflow
e7872dddbf275729b2c42e2a4ff602a6df7d1536
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
dags/kd03-dags/research_report_parser.py
ywf5566/airflow
e7872dddbf275729b2c42e2a4ff602a6df7d1536
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from airflow import DAG from airflow.operators.bash_operator import BashOperator default_args = { 'owner': 'afroot03' } dag = DAG( 'research_report_parser', default_args=default_args, description='beta_info_update', schedu...
39.909091
213
0.779043
119
878
5.478992
0.462185
0.171779
0.116564
0.138037
0.205521
0.205521
0.205521
0.205521
0.205521
0.205521
0
0.020408
0.107062
878
22
214
39.909091
0.811224
0.047836
0
0
0
0.117647
0.367665
0.297006
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf6d1390cc0b4111f365c83154af60b50d2b6ac
2,983
py
Python
tweet.py
ardyflora/pytweetRogerInternet
199c4f1e9e4a80559c7f59e16c3a0edd08527642
[ "MIT" ]
null
null
null
tweet.py
ardyflora/pytweetRogerInternet
199c4f1e9e4a80559c7f59e16c3a0edd08527642
[ "MIT" ]
null
null
null
tweet.py
ardyflora/pytweetRogerInternet
199c4f1e9e4a80559c7f59e16c3a0edd08527642
[ "MIT" ]
null
null
null
import tweepy import os import pandas as pd import matplotlib.pyplot as plt import plotly.graph_objs as go import plotly.plotly as py from plotly import tools from dotenv import load_dotenv import plotly import datetime import time # {Added} load_dotenv() plotly.tools.set_credentials_file( username=os.enviro...
28.141509
83
0.630908
382
2,983
4.751309
0.366492
0.034711
0.039669
0.028099
0.097521
0.097521
0.063361
0.031956
0.031956
0
0
0.012832
0.242373
2,983
105
84
28.409524
0.790265
0.074422
0
0.055556
0
0
0.155104
0.01126
0
0
0
0
0
1
0.055556
false
0
0.152778
0
0.236111
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf6f90f97a266f542ca1d05ba36c9d433d0be5a
1,007
py
Python
other/chinking.py
gauthamkrishna-g/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
6
2017-08-25T10:08:02.000Z
2021-02-02T16:15:16.000Z
other/chinking.py
gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
null
null
null
other/chinking.py
gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
2
2019-07-12T08:07:32.000Z
2020-05-22T17:21:13.000Z
from nltk.tokenize import word_tokenize from nltk import pos_tag from nltk.tokenize import PunktSentenceTokenizer from nltk.corpus import state_union from nltk import RegexpParser train_text = state_union.raw("2005-GWBush.txt") sample_text = state_union.raw("2006-GWBush.txt") custom_sent_tokenizer = PunktSen...
34.724138
83
0.621648
112
1,007
5.4375
0.508929
0.065681
0.052545
0.07225
0
0
0
0
0
0
0
0.01238
0.278054
1,007
29
84
34.724138
0.825309
0.017875
0
0
0
0
0.096875
0
0
0
0
0
0
1
0.041667
false
0
0.208333
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
4cf8c7dac3b7e12cbc636958b30abf4449cbc7d6
3,446
py
Python
Easydashboard/app.py
harshalsonioo1/mpr-asi
a0c6c9321105776016c4b765ddcac964abe8f1c4
[ "MIT" ]
null
null
null
Easydashboard/app.py
harshalsonioo1/mpr-asi
a0c6c9321105776016c4b765ddcac964abe8f1c4
[ "MIT" ]
null
null
null
Easydashboard/app.py
harshalsonioo1/mpr-asi
a0c6c9321105776016c4b765ddcac964abe8f1c4
[ "MIT" ]
null
null
null
from utils import plot_confusion_matrix, load_map, plot_SHAP, create_map import hydralit as hy import streamlit as st import streamlit.components.v1 as components st.set_option("deprecation.showPyplotGlobalUse", False) app = hy.HydraApp( title="Explainer Dashboard", # nav_container=st.header, nav_horizontal=...
28.01626
139
0.612304
435
3,446
4.767816
0.425287
0.027001
0.033751
0.015429
0.161524
0.13838
0.13838
0.10704
0.10704
0.10704
0
0.027633
0.275392
3,446
122
140
28.245902
0.802964
0.053395
0
0.139241
0
0.012658
0.368894
0.019037
0
0
0
0
0
1
0.063291
false
0
0.050633
0
0.113924
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf911eb15b62882ba50ef99f4d0b5369641722b
261
py
Python
ermaket/scripts/script_abort_example.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/scripts/script_abort_example.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/scripts/script_abort_example.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
from ermaket.api.scripts import ReturnContext, UserScript __all__ = ['script'] script = UserScript(id=1) @script.register def step_1(context): ctx = ReturnContext(abort=418) ctx.add_message("Sorry, this won't work", variant="danger") return ctx
20.076923
63
0.724138
35
261
5.228571
0.8
0
0
0
0
0
0
0
0
0
0
0.022624
0.153257
261
12
64
21.75
0.80543
0
0
0
0
0
0.130268
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf973cf75050168caf53e9004f07a1509cab4ba
578
py
Python
hardhat/recipes/x11/server/xinit.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/server/xinit.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/server/xinit.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from hardhat.recipes.base import GnuRecipe class XInitRecipe(GnuRecipe): def __init__(self, *args, **kwargs): super(XInitRecipe, self).__init__(*args, **kwargs) self.sha256 = '75d88d7397a07e01db253163b7c7a00b' \ '249b3d30e99489f2734cac9a0c7902b3' self.name = 'xinit' ...
32.111111
79
0.624567
62
578
5.66129
0.725806
0.05698
0
0
0
0
0
0
0
0
0
0.119639
0.233564
578
17
80
34
0.672686
0
0
0
0
0.083333
0.315425
0.17851
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cf9defe4fdd8ddd2590406f9ebaacf6453d229b
221
py
Python
main.py
Oreross/hangman_game
80d10c9e7199f38c5aead129d15c179ee5645c92
[ "Apache-2.0" ]
1
2020-08-11T13:54:02.000Z
2020-08-11T13:54:02.000Z
main.py
Oreross/hangman_game
80d10c9e7199f38c5aead129d15c179ee5645c92
[ "Apache-2.0" ]
null
null
null
main.py
Oreross/hangman_game
80d10c9e7199f38c5aead129d15c179ee5645c92
[ "Apache-2.0" ]
null
null
null
from game.hangman import Hangman def main(): w = Hangman(7) while True: w.draw_word_scheme() w.check_char(input("Enter a char -> ")) w.check_win() if __name__ == "__main__": main()
15.785714
47
0.579186
30
221
3.866667
0.7
0.103448
0
0
0
0
0
0
0
0
0
0.006329
0.285068
221
13
48
17
0.727848
0
0
0
0
0
0.108597
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
4cfb0570d172533ee9894d3ef40fe14a0b5a7765
1,057
py
Python
moodle/LoadBalancerStack.py
gastonmichel/moodle-docker
e604a6091ff65ae6a119d4e28b6e551bfa16270e
[ "CC0-1.0" ]
null
null
null
moodle/LoadBalancerStack.py
gastonmichel/moodle-docker
e604a6091ff65ae6a119d4e28b6e551bfa16270e
[ "CC0-1.0" ]
null
null
null
moodle/LoadBalancerStack.py
gastonmichel/moodle-docker
e604a6091ff65ae6a119d4e28b6e551bfa16270e
[ "CC0-1.0" ]
null
null
null
from aws_cdk import ( aws_ec2 as ec2, aws_elasticloadbalancingv2 as elbv2, core as cdk ) from . import VPCStack class MoodleLoadBalancerStack(cdk.Stack): def __init__(self, scope: cdk.Construct, construct_id: str, vpc: VPCStack.MoodleVPCStack, **kwargs): super().__init__(scope, const...
30.2
104
0.631031
114
1,057
5.587719
0.45614
0.050235
0.100471
0.084772
0.288854
0.194662
0.194662
0.194662
0.194662
0.194662
0
0.030026
0.275307
1,057
35
105
30.2
0.801567
0.125828
0
0
0
0
0.066304
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cfce375a86afb66fe5728f23e893da84b332753
948
py
Python
back-end/f1hub/results/models.py
mmzboys/F1Hub
5045c4c62dea738812a6856353d48e5b70d577e2
[ "MIT" ]
null
null
null
back-end/f1hub/results/models.py
mmzboys/F1Hub
5045c4c62dea738812a6856353d48e5b70d577e2
[ "MIT" ]
18
2019-08-29T12:42:11.000Z
2022-02-12T13:04:58.000Z
back-end/f1hub/results/models.py
mmzboys/F1Hub
5045c4c62dea738812a6856353d48e5b70d577e2
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Result(models.Model): resultId = models.IntegerField(primary_key=True) raceId = models.ForeignKey('races.Race', on_delete=models.CASCADE) driverId = models.ForeignKey('drivers.Driver', on_delete=models.CASCADE) constructorId= models.ForeignK...
41.217391
90
0.738397
100
948
6.95
0.46
0.181295
0.080576
0.120863
0
0
0
0
0
0
0
0
0.148734
948
22
91
43.090909
0.861214
0.025316
0
0
0
0
0.066161
0.02603
0
0
0
0
0
1
0
false
0
0.05
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4cfe154bfe19cd5e666abec8d197975b1b1677fc
21,312
py
Python
Code/detect-1113.py
b875102/simon
c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8
[ "BSD-3-Clause-Attribution" ]
null
null
null
Code/detect-1113.py
b875102/simon
c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8
[ "BSD-3-Clause-Attribution" ]
null
null
null
Code/detect-1113.py
b875102/simon
c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8
[ "BSD-3-Clause-Attribution" ]
null
null
null
import argparse import cv2 from models import * # set ONNX_EXPORT in models.py from utils.datasets import * from utils.utils import * ############################################################### class_index = { '0':0, '1':1, '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9,\ 'A':10, 'B':11,...
42.624
152
0.513607
2,486
21,312
4.249397
0.176187
0.015903
0.030576
0.006816
0.361416
0.326013
0.301969
0.274612
0.23883
0.218951
0
0.027886
0.340419
21,312
499
153
42.709419
0.723625
0.135464
0
0.261682
0
0
0.063021
0.00372
0
0
0
0
0
1
0.031153
false
0
0.018692
0.012461
0.090343
0.031153
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cfef67e02b0fac5329fc1caf9c73585fb1f8ce5
137
py
Python
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
import subprocess as sub sub.call('f2py -c ftarcoder42.pyf constantf.f90 mathf.f90 physicf.f90 -m' ' ftarcoder42', shell=True)
27.4
73
0.715328
20
137
4.9
0.8
0
0
0
0
0
0
0
0
0
0
0.097345
0.175182
137
4
74
34.25
0.769912
0
0
0
0
0
0.540146
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4cffe546a9d5e7c7aca56e017a5ebdfc67617d85
1,257
py
Python
packages/badboy/badboy/scripts/sshlogin.py
AitzazImtiaz/Boydom-OS
805dfdc87524569c1cf11029e1ccd1a589fd368e
[ "MIT" ]
null
null
null
packages/badboy/badboy/scripts/sshlogin.py
AitzazImtiaz/Boydom-OS
805dfdc87524569c1cf11029e1ccd1a589fd368e
[ "MIT" ]
null
null
null
packages/badboy/badboy/scripts/sshlogin.py
AitzazImtiaz/Boydom-OS
805dfdc87524569c1cf11029e1ccd1a589fd368e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Written By: Sahar Hathiramani # Date: 01/11/2021 import pexpect import os os.system("clear") print("🄱🄰🄳 🄱🄾🅈 🄱🅄🅃 🄰 🅂🄰🄳 🄱🄾🅈") PROMPT = ['# ', '>>> ', '> ', '\$ ', '$ '] def send_command(connection, command): connection.sendline(command) connection.expect(PROMPT) print(co...
27.326087
71
0.597454
159
1,257
4.798742
0.471698
0.066841
0.034076
0.060288
0.107471
0.107471
0.107471
0.107471
0.107471
0.107471
0
0.01241
0.230708
1,257
45
72
27.933333
0.760083
0.050915
0
0.222222
0
0
0.243697
0
0
0
0
0
0
1
0.083333
false
0.111111
0.055556
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9800029f7c3f66e30ef85873b845a2fcf759869c
972
py
Python
test/test_ctxt.py
devopsent/patr
b206dbe37c0404b423c2864ba64639a465e7868e
[ "MIT" ]
null
null
null
test/test_ctxt.py
devopsent/patr
b206dbe37c0404b423c2864ba64639a465e7868e
[ "MIT" ]
1
2019-10-19T12:48:22.000Z
2019-10-19T12:48:22.000Z
test/test_ctxt.py
devopsent/patr
b206dbe37c0404b423c2864ba64639a465e7868e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=missing-docstring from patr import ctxt import pytest def test_gen_host_entry(): data = dict( name="lala", variables=dict( kuku="kaka", susu="sasa", ) ) # order of dict generated iteration (non orderdict) is unreliabl...
23.707317
71
0.595679
122
972
4.672131
0.42623
0.05614
0.084211
0.112281
0.757895
0.757895
0.733333
0.733333
0.733333
0.733333
0
0
0.278807
972
40
72
24.3
0.813124
0.246914
0
0.518519
0
0
0.118457
0
0
0
0
0
0.111111
1
0.074074
false
0
0.074074
0
0.148148
0
0
0
0
null
0
0
0
0
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
5
9800be2265795338942ce9d2f06754749b91c514
2,613
py
Python
resources/lambda_function/execute_ddl/index.py
aws-samples/aws-cdk-lambda-import-export-redshift-ddl
3b2c944caddfb0d37b08b09f791549a086e443ca
[ "MIT-0" ]
null
null
null
resources/lambda_function/execute_ddl/index.py
aws-samples/aws-cdk-lambda-import-export-redshift-ddl
3b2c944caddfb0d37b08b09f791549a086e443ca
[ "MIT-0" ]
null
null
null
resources/lambda_function/execute_ddl/index.py
aws-samples/aws-cdk-lambda-import-export-redshift-ddl
3b2c944caddfb0d37b08b09f791549a086e443ca
[ "MIT-0" ]
null
null
null
import logging import os import boto3 import psycopg2 from psycopg2.extensions import AsIs from botocore.exceptions import ClientError from urllib.parse import urlparse logger = logging.getLogger() logger.setLevel(logging.INFO) secretsmanager = boto3.client("secretsmanager") s3 = boto3.client("s3") def handler(event...
33.075949
89
0.685802
356
2,613
4.828652
0.351124
0.051193
0.05701
0.051193
0.129145
0.066318
0.066318
0
0
0
0
0.01619
0.196326
2,613
78
90
33.5
0.802381
0.033295
0
0.065574
0
0
0.208482
0.009909
0
0
0
0
0
1
0.065574
false
0.032787
0.114754
0
0.229508
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9801a94c959c21f860f85c41508e66fcfd630de5
7,607
py
Python
egen310.py
PlacidFireball/310-rover-code
3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae
[ "MIT" ]
null
null
null
egen310.py
PlacidFireball/310-rover-code
3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae
[ "MIT" ]
null
null
null
egen310.py
PlacidFireball/310-rover-code
3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae
[ "MIT" ]
null
null
null
# EGEN 310R D.3 Runner Script # Written by Jared Weiss at Montana State University # RESOURCES: ### [Pygame Docs:] https://www.pygame.org/docs/ # - I used the joystick docs (https://www.pygame.org/docs/ref/joystick.html) the most ### [Servo control article:] https://www.learnrobotics.org/blog/raspberry-pi-servo-motor/ ...
43.468571
139
0.588668
1,024
7,607
4.310547
0.325195
0.032623
0.034662
0.010195
0.089715
0.0657
0.03353
0.03353
0.03353
0
0
0.032841
0.279479
7,607
174
140
43.718391
0.772487
0.486263
0
0.134021
0
0
0.090095
0
0
0
0
0
0
1
0.010309
false
0
0.041237
0
0.051546
0.041237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98033ee40832944f5bd276162a82aa4b3b960b16
1,438
py
Python
chapter_7/mailinglist.py
psd314/oop_with_python
325434394a1101fcb105ade7bf170e08afd00e14
[ "MIT" ]
null
null
null
chapter_7/mailinglist.py
psd314/oop_with_python
325434394a1101fcb105ade7bf170e08afd00e14
[ "MIT" ]
null
null
null
chapter_7/mailinglist.py
psd314/oop_with_python
325434394a1101fcb105ade7bf170e08afd00e14
[ "MIT" ]
null
null
null
from collections import defaultdict from send_email import send_email class MailingList: def __init__(self, data_file): self.data_file = data_file self.email_map = defaultdict(set) def add_to_group(self, email, group): self.email_map[email].add(group) def emails_in_group(self, *g...
29.346939
79
0.560501
174
1,438
4.413793
0.321839
0.082031
0.09375
0.059896
0.169271
0
0
0
0
0
0
0
0.331711
1,438
48
80
29.958333
0.799168
0
0
0.051282
0
0
0.00765
0
0
0
0
0
0
1
0.205128
false
0.025641
0.051282
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9804198a7cfe5d4e970e3da94bea10e4d21e32f9
1,465
py
Python
templates/new_language/lex_attrs.py
aniruddha-adhikary/spacy-dev-resources
30f3b094bcac1670c010e46d11441796f7d0d683
[ "MIT" ]
132
2016-12-19T21:14:49.000Z
2022-02-09T05:14:48.000Z
templates/new_language/lex_attrs.py
aniruddha-adhikary/spacy-dev-resources
30f3b094bcac1670c010e46d11441796f7d0d683
[ "MIT" ]
32
2016-12-29T00:35:17.000Z
2019-03-12T11:08:42.000Z
templates/new_language/lex_attrs.py
aniruddha-adhikary/spacy-dev-resources
30f3b094bcac1670c010e46d11441796f7d0d683
[ "MIT" ]
68
2016-12-19T10:05:37.000Z
2021-07-02T20:20:45.000Z
# coding: utf8 from __future__ import unicode_literals # import the symbols for the attrs you want to overwrite from ...attrs import LIKE_NUM # Overwriting functions for lexical attributes # Documentation: https://localhost:1234/docs/usage/adding-languages#lex-attrs # Most of these functions, like is_lower or like_u...
33.295455
85
0.646416
177
1,465
5.242938
0.672316
0.037716
0.036638
0.040948
0.049569
0
0
0
0
0
0
0.005222
0.2157
1,465
43
86
34.069767
0.802437
0.382253
0
0.136364
0
0
0.25308
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98041abe73a09d744f8e1be028ecf96083d6176f
6,277
py
Python
pirates/npc/Boss.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/npc/Boss.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/npc/Boss.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from pirates.battle import EnemyGlobals from pirates.npc.BossBase import BossBase from pirates.pirate import AvatarTypes from pirates.effects.BossEffect import BossEffect from pirates.effects.BossAura import BossAura from direct.showbase.Dir...
46.154412
467
0.628644
667
6,277
5.890555
0.256372
0.009672
0.029779
0.05803
0.160855
0.094681
0.061084
0.05803
0.046322
0.046322
0
0.03683
0.260315
6,277
136
467
46.154412
0.80939
0
0
0.153226
0
0
0.016566
0
0
0
0
0
0
1
0.064516
false
0
0.064516
0.032258
0.201613
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98053fe58d00f015f391cc682e1397842a6dae53
5,751
py
Python
Nombre/Nombre.py
willingtonino/Algoritmos_programacion_C4G2
2a2c94678ae981974539a8019f17108775521e23
[ "MIT" ]
null
null
null
Nombre/Nombre.py
willingtonino/Algoritmos_programacion_C4G2
2a2c94678ae981974539a8019f17108775521e23
[ "MIT" ]
null
null
null
Nombre/Nombre.py
willingtonino/Algoritmos_programacion_C4G2
2a2c94678ae981974539a8019f17108775521e23
[ "MIT" ]
1
2021-10-31T22:54:45.000Z
2021-10-31T22:54:45.000Z
import turtle nombre = turtle.Turtle() colors=['red', 'purple', 'blue', 'green', 'yellow', 'orange', 'pink','light blue'] #Nombre:Willington nombre.color("blue") nombre.pu() nombre.setposition(-500,300) nombre.speed(10) nombre.pensize(5) nombre.pd() nombre.left(270) nombre.forward(350) nombre.left(135) n...
19.298658
83
0.719701
883
5,751
4.687429
0.091733
0.354917
0.264557
0.279053
0.830635
0.787388
0.765402
0.707659
0.684706
0.677942
0
0.117195
0.117197
5,751
298
84
19.298658
0.69805
0.024344
0
0.875862
0
0
0.015637
0
0
0
0
0
0
1
0
false
0
0.003448
0
0.003448
0
0
0
0
null
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
98061bec4ab8c362e8993720fb5a01fca50bd699
2,905
py
Python
wanip_notifier.py
silvaBrian987/wanip_notifier
8592e4ebf3c5b9cf4622f87223d843cad4e5845f
[ "Apache-2.0" ]
null
null
null
wanip_notifier.py
silvaBrian987/wanip_notifier
8592e4ebf3c5b9cf4622f87223d843cad4e5845f
[ "Apache-2.0" ]
null
null
null
wanip_notifier.py
silvaBrian987/wanip_notifier
8592e4ebf3c5b9cf4622f87223d843cad4e5845f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import subprocess import logging import smtplib import socket import ssl import email class App: __logger: logging.Logger = logging.getLogger("ip-notifier") __wanip_file: str = os.environ.get( "WANIP_FILE", '/tmp/ip-notifier/current.ip') __smtp_server: str = os.env...
37.727273
155
0.62926
388
2,905
4.389175
0.311856
0.047563
0.063418
0.079859
0.186142
0.070464
0
0
0
0
0
0.010379
0.237177
2,905
76
156
38.223684
0.758123
0.006885
0
0
0
0
0.175104
0.01699
0
0
0
0
0
1
0.078125
false
0.03125
0.109375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9809ab5317cd085c73700d8f77b21ca36ba30fc5
1,292
py
Python
utils/config.py
ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning
baef25837ce7e073d03f69a095d1992aa18dd2d5
[ "MIT" ]
null
null
null
utils/config.py
ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning
baef25837ce7e073d03f69a095d1992aa18dd2d5
[ "MIT" ]
null
null
null
utils/config.py
ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning
baef25837ce7e073d03f69a095d1992aa18dd2d5
[ "MIT" ]
null
null
null
""" Authors: Wouter Van Gansbeke, Simon Vandenhende Licensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/) """ import os import yaml from easydict import EasyDict from utils.utils import mkdir_if_missing def create_config(config_file_env, config_file_exp, batch_size, epochs): # C...
36.914286
92
0.706656
197
1,292
4.416244
0.416244
0.091954
0.068966
0.078161
0.110345
0.064368
0.064368
0
0
0
0
0.003735
0.171053
1,292
34
93
38
0.80859
0.188854
0
0
0
0
0.190751
0.090559
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
980a318d114792589559712f7fbea57028593d15
12,319
py
Python
Scripts/plot_QBOExperiments_E-W_var_mo.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
1
2017-10-22T02:22:14.000Z
2017-10-22T02:22:14.000Z
Scripts/plot_QBOExperiments_E-W_var_mo.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
null
null
null
Scripts/plot_QBOExperiments_E-W_var_mo.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
4
2018-04-05T17:55:36.000Z
2022-03-31T07:05:01.000Z
""" Plot comparisons between SIT and SIC modeling experiments using WACCM4. Subplot includes FIT, HIT, FICT. Composites are organized by QBO-E - QBO-W Notes ----- Author : Zachary Labe Date : 31 January 2018 """ ### Import modules import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.basema...
42.626298
115
0.572693
1,592
12,319
4.326633
0.236809
0.045732
0.045296
0.018873
0.382404
0.35061
0.300377
0.240273
0.174216
0.155343
0
0.04106
0.246773
12,319
288
116
42.774306
0.701261
0.065996
0
0.279817
0
0
0.097712
0.024764
0
0
0
0
0
1
0
false
0
0.036697
0
0.036697
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
980b9fef8c317b22263bc02b4687f9bb0cc0e714
1,836
py
Python
src/LecturaFicheros/Lectorcsv.py
2019-20-TFG-Presencial-Febr/PruebaNetExtractor
7f52e33954e6d32fb7bfee15181155674af089d2
[ "MIT" ]
2
2020-02-19T07:57:37.000Z
2020-04-20T14:32:56.000Z
src/LecturaFicheros/Lectorcsv.py
jornav/NetExtractor
92f39fb3ce2fe035532ffadbcb162c96b2fe5ccd
[ "MIT" ]
102
2019-01-14T21:07:56.000Z
2021-12-13T20:00:35.000Z
src/LecturaFicheros/Lectorcsv.py
adb1004/NetExtractor-2.0
92f39fb3ce2fe035532ffadbcb162c96b2fe5ccd
[ "MIT" ]
4
2019-04-01T08:40:36.000Z
2021-06-06T07:17:06.000Z
# -*- coding: utf-8 -*- import csv class Lectorcsv: """ Clase para importar y exportar diccionarios de personajes Args: m: instancia de la clase modelo """ def __init__(self,m): self.__modelo = m def importDict(self, fichero): """ Metod...
33.381818
99
0.505447
179
1,836
5.117318
0.458101
0.043668
0.037118
0.043668
0.061135
0.061135
0
0
0
0
0
0.00828
0.407952
1,836
54
100
34
0.834407
0.245098
0
0.137931
0
0
0.019983
0
0
0
0
0.037037
0
1
0.103448
false
0
0.068966
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
980ce10f02888bd3e0fcc58abcb43fed45e724e9
24,465
py
Python
stax/aws/cloudformation.py
acaire/stax
63fc890be14f3272fb98eb65c631343bae3c6d12
[ "MIT" ]
null
null
null
stax/aws/cloudformation.py
acaire/stax
63fc890be14f3272fb98eb65c631343bae3c6d12
[ "MIT" ]
null
null
null
stax/aws/cloudformation.py
acaire/stax
63fc890be14f3272fb98eb65c631343bae3c6d12
[ "MIT" ]
null
null
null
import collections import datetime import difflib import hashlib import itertools import json import os import pathlib import string import sys import time import uuid import boto3 import botocore import click import halo import yaml from .. import gitlib from ..exceptions import StackNotFound from .connection_manage...
32.49004
149
0.54159
2,679
24,465
4.815976
0.158641
0.017982
0.015114
0.020152
0.300109
0.253682
0.216401
0.18315
0.148659
0.117191
0
0.004582
0.348743
24,465
752
150
32.533245
0.805184
0.075455
0
0.248639
0
0.014519
0.178966
0.04656
0
0
0
0
0
1
0.07078
false
0.012704
0.041742
0.005445
0.206897
0.005445
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
980f3d1f3df4c3dd7054f229628807cf4bbb2a74
35,129
py
Python
NGDAUpdater/NGDAUpdaterForStates.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
NGDAUpdater/NGDAUpdaterForStates.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
NGDAUpdater/NGDAUpdaterForStates.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
import os import fnmatch import shutil import re import datetime import time #import StringIO import pickle import sys import MetadataDateModules from MetadataDateModules import metadataDateUpdater from MetadataDateModules import TodaysDate from FirstAlternativeTitle import FirstAlternativeTitle from Res...
48.320495
256
0.478892
2,909
35,129
5.765555
0.15538
0.173146
0.071309
0.056284
0.50316
0.432566
0.375447
0.333592
0.304019
0.266993
0
0.023139
0.389792
35,129
727
257
48.320495
0.759237
0.148339
0
0.410058
0
0.015474
0.261153
0.092108
0
0
0
0
0
1
0.005803
false
0.003868
0.040619
0
0.056093
0.017408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98106631425f65be0197ac9801c484298d0e3b91
1,511
py
Python
source/galaxy/db.py
colinleach/400B_Leach
656abe04237d7a8de2cf56e9bfe986c333c62739
[ "MIT" ]
1
2020-03-16T12:46:02.000Z
2020-03-16T12:46:02.000Z
source/galaxy/db.py
colinleach/400B_Leach
656abe04237d7a8de2cf56e9bfe986c333c62739
[ "MIT" ]
null
null
null
source/galaxy/db.py
colinleach/400B_Leach
656abe04237d7a8de2cf56e9bfe986c333c62739
[ "MIT" ]
null
null
null
import psycopg2 import yaml from pathlib import Path class DB(): """ A simple wrapper class for connecting to the PostgreSQL database. Takes no arguments. Relies on having connection information in `~/dbconn.yaml`. """ def __init__(self): "Reads the connection parameters, makes the c...
26.051724
76
0.598279
185
1,511
4.827027
0.513514
0.044793
0.035834
0
0
0
0
0
0
0
0
0.00188
0.295831
1,511
57
77
26.508772
0.837406
0.28458
0
0
0
0
0.325901
0.087479
0
0
0
0
0
1
0.166667
false
0.033333
0.1
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9811373a0f25e81fb9ae75c84f79fe4c6eb02421
537
py
Python
web_login_background/tests/test_open_url.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
1
2020-03-01T03:04:21.000Z
2020-03-01T03:04:21.000Z
web_login_background/tests/test_open_url.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
null
null
null
web_login_background/tests/test_open_url.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
3
2019-07-29T20:23:16.000Z
2021-01-07T20:51:24.000Z
import odoo.tests @odoo.tests.tagged("at_install", "post_install") class TestUi(odoo.tests.HttpCase): def test_open_url(self): # wait till page loaded code = """ setTimeout(function () { if ($('body').css('background-image').startsWith('url')) { cons...
28.263158
74
0.489758
52
537
4.961538
0.75
0.104651
0.108527
0
0
0
0
0
0
0
0
0.01173
0.364991
537
18
75
29.833333
0.744868
0.039106
0
0
0
0
0.618677
0.103113
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9813fd5b96f485c7f17dd680b383ea12db93f961
8,094
bzl
Python
python/pip.bzl
jdob/rules_python
dad40476d74a7b1e903573293370927579261413
[ "Apache-2.0" ]
null
null
null
python/pip.bzl
jdob/rules_python
dad40476d74a7b1e903573293370927579261413
[ "Apache-2.0" ]
null
null
null
python/pip.bzl
jdob/rules_python
dad40476d74a7b1e903573293370927579261413
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
36.133929
128
0.680875
1,034
8,094
5.234043
0.283366
0.049889
0.031596
0.025499
0.427199
0.40133
0.400591
0.400591
0.400591
0.384331
0
0.002714
0.226217
8,094
223
129
36.295964
0.861408
0.794045
0
0.333333
0
0
0.305936
0.147032
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9815924c70a5419e8fe5fb5a75e1e2c1b28350dd
2,896
py
Python
utils/api_call.py
arpitkjain7/VacciDate
b542028490c76d44d53880798d3e5e8cf13e7c22
[ "MIT" ]
4
2021-05-23T13:48:22.000Z
2022-02-23T04:27:35.000Z
utils/api_call.py
arpitkjain7/VacciDate
b542028490c76d44d53880798d3e5e8cf13e7c22
[ "MIT" ]
null
null
null
utils/api_call.py
arpitkjain7/VacciDate
b542028490c76d44d53880798d3e5e8cf13e7c22
[ "MIT" ]
null
null
null
from integration.api_setu import ( get_applicable_slots, get_district_id_from_file, get_state_id_by_state_name, get_instant_applicable_slots, ) from utils.load_config import load_configuration from utils.external_caller import APIInterface import time from VacciDate_bot.send_message import send_personal...
34.070588
90
0.643646
357
2,896
4.857143
0.226891
0.048443
0.062284
0.058824
0.541522
0.489043
0.423299
0.384083
0.361592
0.361592
0
0.002846
0.272099
2,896
85
91
34.070588
0.819734
0.07355
0
0.371429
0
0
0.107957
0.021292
0
0
0
0
0
1
0.057143
false
0
0.085714
0
0.242857
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9815a2f264a1fa198fb81dd7f78ff48768cc81e5
74
py
Python
util/__init__.py
lobachevzky/NLP-Project
26f277b09a621476b21730ce63ffe33f6fae92cd
[ "MIT" ]
null
null
null
util/__init__.py
lobachevzky/NLP-Project
26f277b09a621476b21730ce63ffe33f6fae92cd
[ "MIT" ]
null
null
null
util/__init__.py
lobachevzky/NLP-Project
26f277b09a621476b21730ce63ffe33f6fae92cd
[ "MIT" ]
null
null
null
from . import dtree_util import sys sys.modules['dtree_util'] = dtree_util
24.666667
38
0.797297
12
74
4.666667
0.5
0.482143
0
0
0
0
0
0
0
0
0
0
0.108108
74
3
38
24.666667
0.848485
0
0
0
0
0
0.133333
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
0
6
981758b6823b86dd7b6f15ae56e4a68151f81d16
889
py
Python
src/dao.py
jeffery-k/where_is_my_money
9f0d5ac651427675843719e243333cf5ef4521a3
[ "MIT" ]
null
null
null
src/dao.py
jeffery-k/where_is_my_money
9f0d5ac651427675843719e243333cf5ef4521a3
[ "MIT" ]
null
null
null
src/dao.py
jeffery-k/where_is_my_money
9f0d5ac651427675843719e243333cf5ef4521a3
[ "MIT" ]
null
null
null
import gspread import time from oauth2client.service_account import ServiceAccountCredentials #TODO class Database: INITIAL_FUND = "initial_fund" INITIAL_DATE = "initial_date" INTEREST_RATE = "interest_rate" INTEREST_TYPE = "interest_type" DEPOSIT_INTERVAL = "deposit_interval" DEPOSIT_ACCOUNT ...
28.677419
66
0.623172
87
889
6.08046
0.448276
0.085066
0.071834
0
0
0
0
0
0
0
0
0.036624
0.293588
889
30
67
29.633333
0.805732
0.03937
0
0
0
0
0.13615
0
0
0
0
0.033333
0
1
0.083333
false
0
0.125
0.041667
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
981806b5945b12b9c6ea7adf2957b3110d87f687
18,833
py
Python
utils/optimization.py
dexuiz/merlot
c83dcc1b6efb62a7000696d1c1d8e9f048b89c94
[ "MIT" ]
148
2021-06-07T22:21:51.000Z
2022-03-28T02:27:49.000Z
utils/optimization.py
dexuiz/merlot
c83dcc1b6efb62a7000696d1c1d8e9f048b89c94
[ "MIT" ]
11
2021-06-15T04:23:51.000Z
2022-03-27T17:41:46.000Z
utils/optimization.py
dexuiz/merlot
c83dcc1b6efb62a7000696d1c1d8e9f048b89c94
[ "MIT" ]
13
2021-06-15T13:35:09.000Z
2022-02-17T05:28:13.000Z
import re from collections import defaultdict from copy import deepcopy import numpy as np import tensorflow as tf from utils.model_utils import get_shape_list def build_optimizer_from_config(loss, optimizer_config, device_config=None): """ This is a utility to build an optimizer from optimizer_config. ...
44.840476
141
0.63564
2,553
18,833
4.435566
0.177438
0.043448
0.026492
0.025963
0.286648
0.201696
0.128488
0.102526
0.093871
0.087513
0
0.017539
0.273403
18,833
419
142
44.947494
0.809997
0.242394
0
0.105469
0
0
0.082056
0
0
0
0
0
0
1
0.039063
false
0
0.023438
0.003906
0.105469
0.023438
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98188360c09379562a335e365455d7a14ea7cede
1,001
py
Python
001-Python-basico/024-desafio-forca.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
001-Python-basico/024-desafio-forca.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
001-Python-basico/024-desafio-forca.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
palavra_secreta = input('Digite a palavra secreta: ') print('Ok, agora peça pro seu amigo advinhar!') letras_digitadas = [] contador = len(palavra_secreta) * 2 while True: if contador <= 0: print('Acabou as chances') break letra_usuario = input('Difite uma letra: ') if len(letra_usuario)...
25.025
66
0.652348
121
1,001
5.173554
0.396694
0.268371
0.14377
0
0
0
0
0
0
0
0
0.005413
0.261738
1,001
39
67
25.666667
0.841678
0
0
0.137931
0
0
0.22
0
0
0
0
0
0
1
0
false
0
0
0
0
0.241379
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
9819a8579247b5bad793cf277cc96621e0bd2af0
9,157
py
Python
AsyncGear/Gear.py
monk-after-90s/AsyncGear
6773d38d564c21bbb2f9a0d4fd14a0c24b541ece
[ "MIT" ]
4
2021-01-06T06:14:04.000Z
2022-01-12T05:32:03.000Z
AsyncGear/Gear.py
monk-after-90s/AsyncGear
6773d38d564c21bbb2f9a0d4fd14a0c24b541ece
[ "MIT" ]
1
2021-08-05T09:54:30.000Z
2021-08-05T10:43:33.000Z
AsyncGear/Gear.py
monk-after-90s/AsyncGear
6773d38d564c21bbb2f9a0d4fd14a0c24b541ece
[ "MIT" ]
null
null
null
''' Transfer an object to its gear, as an interface. ''' import asyncio import datetime from .AsyncPeriod import AsyncPeriod from .method_run_when import call_backs from ensureTaskCanceled import ensureTaskCanceled gears = {} class _Gear: # last_set_period = {} def __init__(self, obj): self.obj = ...
36.337302
123
0.617014
1,140
9,157
4.711404
0.157018
0.119158
0.053621
0.034817
0.542171
0.49246
0.49246
0.470303
0.449637
0.449637
0
0.001245
0.29846
9,157
251
124
36.482072
0.834838
0.193841
0
0.190909
0
0
0.021207
0
0
0
0
0
0
1
0.127273
false
0
0.054545
0.009091
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9819ca0e55f2020d09e47a7ddbfb8d24790edf34
1,851
py
Python
dmpr/policies.py
protocollabs/dmpr-core
20810f3caba9f1299d5404dd633ed864db1cbc03
[ "MIT" ]
3
2017-04-07T11:31:46.000Z
2018-09-24T06:57:39.000Z
dmpr/policies.py
protocollabs/dmpr-core
20810f3caba9f1299d5404dd633ed864db1cbc03
[ "MIT" ]
27
2017-01-16T22:43:58.000Z
2019-04-09T16:40:13.000Z
dmpr/policies.py
protocollabs/dmpr-core
20810f3caba9f1299d5404dd633ed864db1cbc03
[ "MIT" ]
3
2017-01-16T18:30:27.000Z
2017-08-23T12:40:11.000Z
import functools from .path import Path class AbstractPolicy(object): """ A policy implements all routing decisions by providing comparison methods for interfaces and paths """ name = NotImplemented def __init__(self): if self.name == NotImplemented: raise NotImplemen...
25.708333
77
0.627769
220
1,851
5.159091
0.363636
0.042291
0.042291
0.034361
0.196476
0.164758
0.113656
0.09163
0.09163
0.09163
0
0.00301
0.28201
1,851
71
78
26.070423
0.851016
0.165856
0
0.131579
0
0
0.067215
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0.078947
0.605263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
981a526d7708c5b0576b0f4728fce065b96bfacd
21,905
py
Python
stateMachineClass.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
1
2021-10-04T17:44:04.000Z
2021-10-04T17:44:04.000Z
stateMachineClass.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
12
2019-07-16T08:31:50.000Z
2019-11-19T17:58:53.000Z
stateMachineClass.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
null
null
null
#This is the class for construcing State Machines. The individual CAs #(both inputs and states) run at 5 ms. See the notes for running faster or #slower. #There are test functions at the end. #Note that to externally activate a CA State, you should only send #excitatory connections to the first 8 neurons. #Using ...
44.795501
87
0.617119
2,333
21,905
5.682812
0.134162
0.049781
0.055815
0.029869
0.67695
0.644969
0.607331
0.571202
0.567431
0.567431
0
0.011552
0.288656
21,905
488
88
44.887295
0.839302
0.122073
0
0.535714
0
0
0.025414
0
0
0
0
0
0
0
null
null
0
0.008929
null
null
0.008929
0
0
0
null
0
0
0
0
0
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
981a62866509fd578f5f6ee676f52f1de3518aca
1,318
py
Python
src/tools/python/scrape_iso_country_codes.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
1
2022-02-17T21:04:05.000Z
2022-02-17T21:04:05.000Z
src/tools/python/scrape_iso_country_codes.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
src/tools/python/scrape_iso_country_codes.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
import json import sys import requests from bs4 import BeautifulSoup # Scrape the ISO Country Codes @ https://en.wikipedia.org/wiki/ISO_3166-1 # USAGE: venv/bin/python scrape_iso_country_codes.py def main(): iso_data = [] try: website = requests.get('https://en.wikipedia.org/wiki/ISO_3166-1') ...
34.684211
110
0.630501
189
1,318
4.222222
0.544974
0.06015
0.075188
0.045113
0.077694
0.077694
0.077694
0.077694
0
0
0
0.021516
0.259484
1,318
37
111
35.621622
0.796107
0.29742
0
0
0
0
0.178455
0.030468
0
0
0
0.027027
0
1
0.04
false
0
0.16
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
981b46a42efd40cda2d50db0a7c7120a540247b8
275
py
Python
setup.py
AlexMilanor/Q_gym
3c2cc0a602233dbf3f8d1e5461725efc2f00481d
[ "MIT" ]
null
null
null
setup.py
AlexMilanor/Q_gym
3c2cc0a602233dbf3f8d1e5461725efc2f00481d
[ "MIT" ]
null
null
null
setup.py
AlexMilanor/Q_gym
3c2cc0a602233dbf3f8d1e5461725efc2f00481d
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='q_gym', packages=find_packages(), version='0.1.0', description='Reinforcement Learning models to run on the environments of the OpenAI Gym.', author='Alexandre A. A. Almeida', license='MIT', )
25
94
0.694545
37
275
5.081081
0.783784
0.12766
0
0
0
0
0
0
0
0
0
0.013453
0.189091
275
10
95
27.5
0.829596
0
0
0
0
0
0.403636
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
981b7e5a635313c7a091099c9e5521f5ced7c348
3,769
py
Python
kisseru/stage.py
chamibuddhika/kisseru
6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6
[ "Apache-2.0" ]
4
2018-08-07T12:51:32.000Z
2021-04-07T22:10:26.000Z
kisseru/stage.py
chamibuddhika/kiseru
6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6
[ "Apache-2.0" ]
13
2018-07-30T17:57:40.000Z
2019-01-22T16:42:51.000Z
kisseru/stage.py
chamibuddhika/kiseru
6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6
[ "Apache-2.0" ]
1
2020-01-17T22:49:33.000Z
2020-01-17T22:49:33.000Z
import os import inspect import urllib.request import shutil import time import socket from colors import Colors from tasks import gen_runner from tasks import Task from tasks import Edge from passes import Pass from passes import PassResult from utils import get_file_extention from utils import get_file_name from uti...
32.773913
131
0.551871
432
3,769
4.715278
0.37037
0.017182
0.022091
0.02651
0.040255
0
0
0
0
0
0
0.000433
0.38684
3,769
114
132
33.061404
0.881004
0.226851
0
0
0
0
0.015004
0
0
0
0
0
0
1
0.064516
false
0.112903
0.241935
0
0.354839
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
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
981c4d0691e03fae2e87b2e125ed737c6938becf
1,431
py
Python
bmctool/utils/pulses/calc_power_equivalents.py
schuenke/BMCTool
99ca94dab0e49a02eec774205731de80bef432d9
[ "MIT" ]
3
2021-03-29T10:43:39.000Z
2021-08-16T09:57:54.000Z
bmctool/utils/pulses/calc_power_equivalents.py
schuenke/BMCTool
99ca94dab0e49a02eec774205731de80bef432d9
[ "MIT" ]
4
2021-02-23T13:21:49.000Z
2021-10-12T17:30:34.000Z
bmctool/utils/pulses/calc_power_equivalents.py
schuenke/BMCTool
99ca94dab0e49a02eec774205731de80bef432d9
[ "MIT" ]
null
null
null
""" calc_power_equivalents.py """ import numpy as np from types import SimpleNamespace def calc_power_equivalent(rf_pulse: SimpleNamespace, tp: float, td: float, gamma_hz: float = 42.5764)\ -> np.ndarray: """ Calculates...
33.27907
103
0.603075
180
1,431
4.644444
0.305556
0.083732
0.04067
0.076555
0.717703
0.61244
0.574163
0.574163
0.574163
0.574163
0
0.020141
0.30608
1,431
42
104
34.071429
0.821752
0.378756
0
0.555556
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
981d2fbf4c8c6e7539560c121dc951fe0ad2f46e
243
py
Python
part-1/process_numbers.py
pt-dev/python-newbie
3c0043af6071facb73177214670718e45bce8575
[ "MIT" ]
null
null
null
part-1/process_numbers.py
pt-dev/python-newbie
3c0043af6071facb73177214670718e45bce8575
[ "MIT" ]
null
null
null
part-1/process_numbers.py
pt-dev/python-newbie
3c0043af6071facb73177214670718e45bce8575
[ "MIT" ]
null
null
null
my_int = 22 my_float = 64.21 my_str_num = "38.24" print("Int my Float! "+str(int(my_float))) print("Float my int! "+str(float(my_int))) print("Num my string! "+str(float(my_str_num))) #add foo = float(my_str_num) foo = foo+my_float print(foo)
22.090909
47
0.695473
49
243
3.22449
0.285714
0.177215
0.151899
0.164557
0
0
0
0
0
0
0
0.046729
0.119342
243
10
48
24.3
0.691589
0.012346
0
0
0
0
0.200837
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e217b2d1cb22bc90807570f9d2817b3c713b7660
2,682
py
Python
day11.py
kwinkunks/aoc18
4d664c0a6da8f0109dd8db2292c5906c098693c9
[ "Apache-2.0" ]
1
2018-12-02T22:09:26.000Z
2018-12-02T22:09:26.000Z
day11.py
kwinkunks/aoc18
4d664c0a6da8f0109dd8db2292c5906c098693c9
[ "Apache-2.0" ]
null
null
null
day11.py
kwinkunks/aoc18
4d664c0a6da8f0109dd8db2292c5906c098693c9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf 8 -*- """ Advent of Code 2018 Day X """ def argmax2d(list2d): maxi = (0, 0) for i, r in enumerate(list2d): for j, e in enumerate(r): maxi = (i, j) if e > list2d[maxi[0]][maxi[1]] else maxi return maxi def max2d(list2d): r, c = argmax2d(list2d) return list2d[r]...
24.381818
67
0.50783
385
2,682
3.444156
0.25974
0.022624
0.045249
0.010558
0.155354
0.155354
0.134238
0.110106
0.06184
0.06184
0
0.044905
0.352349
2,682
109
68
24.605505
0.71848
0.101044
0
0.097222
0
0
0.037527
0.012793
0
0
0
0
0
1
0.166667
false
0
0.013889
0.069444
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e21a48afd165335d659b5ee82935d3927a3b589f
1,262
py
Python
pyspark_kit/logger/log4j_proxy.py
saikocat/pyspark-kit
7d15e6429888050a46ce23ba98aa8cda2767f84a
[ "MIT" ]
null
null
null
pyspark_kit/logger/log4j_proxy.py
saikocat/pyspark-kit
7d15e6429888050a46ce23ba98aa8cda2767f84a
[ "MIT" ]
null
null
null
pyspark_kit/logger/log4j_proxy.py
saikocat/pyspark-kit
7d15e6429888050a46ce23ba98aa8cda2767f84a
[ "MIT" ]
null
null
null
# log4jLogger = sc._jvm.org.apache.log4j # LOGGER = log4jLogger.LogManager.getLogger(__name__) # LOGGER.info("pyspark script logger initialized") class Log4j(object): """Wrapper class for Log4j JVM object. :param spark: SparkSession object. """ def __init__(self, spark): # get spark app deta...
25.755102
65
0.627575
152
1,262
5.098684
0.315789
0.103226
0.116129
0.162581
0
0
0
0
0
0
0
0.008611
0.263867
1,262
48
66
26.291667
0.825619
0.212361
0
0.241379
0
0
0.029713
0
0
0
0
0
0
1
0.275862
false
0
0
0
0.551724
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
0
1
0
0
3
e21a7ec79d03d31431672c365c79e63660aac47f
1,537
py
Python
dataset/test_dataset.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
1
2022-03-02T02:52:24.000Z
2022-03-02T02:52:24.000Z
dataset/test_dataset.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
null
null
null
dataset/test_dataset.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Dict, List, Tuple, Union import csv from torch import Tensor from torch.utils.data import Dataset import torchaudio def load_audio(line: List[str], header: List[str], path: str) -> Tuple[Tensor, int, Dict[str, str]]: # Each line ...
30.74
74
0.627196
204
1,537
4.529412
0.397059
0.025974
0.028139
0.038961
0.051948
0.051948
0
0
0
0
0
0.004348
0.251789
1,537
49
75
31.367347
0.79913
0.065712
0
0
0
0
0.01605
0
0
0
0
0
0.027027
1
0.108108
false
0
0.216216
0.027027
0.432432
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e21b6fe53d69134213736a1276fb524ba7bd9d93
3,875
py
Python
LexData/entity.py
DiFronzo/LexData
f32e112a774e3300f3a3908cca3645fd80b29f5c
[ "MIT" ]
16
2019-08-27T03:55:45.000Z
2021-12-04T13:58:01.000Z
LexData/entity.py
DiFronzo/LexData
f32e112a774e3300f3a3908cca3645fd80b29f5c
[ "MIT" ]
16
2019-10-25T20:16:33.000Z
2020-12-16T23:28:16.000Z
LexData/entity.py
DiFronzo/LexData
f32e112a774e3300f3a3908cca3645fd80b29f5c
[ "MIT" ]
7
2019-12-15T11:47:00.000Z
2021-05-14T16:30:40.000Z
import json import logging from typing import Dict, List, Union from .claim import Claim from .wikidatasession import WikidataSession class Entity(dict): """ Base class for all types of entities – currently: Lexeme, Form, Sense. Not yet implemented: Item, Property. """ def __init__(self, repo: W...
30.511811
88
0.551484
433
3,875
4.799076
0.300231
0.030318
0.026468
0.024543
0.049086
0.049086
0.029836
0
0
0
0
0.004682
0.338581
3,875
126
89
30.753968
0.805696
0.322581
0
0.080645
0
0
0.073067
0
0
0
0
0
0.032258
1
0.145161
false
0
0.080645
0.016129
0.306452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e21cc0d3b1c7ce3572e22140c0545c412f22261b
9,715
py
Python
tfLib/ops.py
zhangqianhui/Sparsely-Grouped-GAN
71cb757d05309324c8d8f38b95a30a83574d7df7
[ "MIT" ]
62
2018-07-06T04:49:10.000Z
2021-11-11T07:26:33.000Z
tfLib/ops.py
zhangqianhui/Sparsely-Grouped-GAN
71cb757d05309324c8d8f38b95a30a83574d7df7
[ "MIT" ]
8
2018-08-31T02:37:52.000Z
2022-03-12T00:33:16.000Z
tfLib/ops.py
zhangqianhui/Sparsely-Grouped-GAN
71cb757d05309324c8d8f38b95a30a83574d7df7
[ "MIT" ]
16
2018-07-10T07:46:45.000Z
2021-06-16T06:08:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.contrib.layers.python.layers import batch_norm from tensorflow.contrib.layers.python.layers import l2_regularizer import functools def log_sum_exp(x, axis=1):...
38.86
130
0.582913
1,378
9,715
3.892598
0.152395
0.028523
0.02349
0.031879
0.370433
0.320097
0.219239
0.182886
0.156786
0.136465
0
0.026297
0.283685
9,715
249
131
39.016064
0.744504
0.006794
0
0.253807
0
0
0.025234
0.002342
0
0
0
0
0
1
0.121827
false
0
0.035533
0.030457
0.294416
0.005076
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e21d93df6e09e189fe0531be7e6a41a04a6df768
2,091
py
Python
Deploy Koalas/predicao_seguro_veicular.py
Alberlando/Projeto_Stack_Labs
dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2
[ "MIT" ]
null
null
null
Deploy Koalas/predicao_seguro_veicular.py
Alberlando/Projeto_Stack_Labs
dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2
[ "MIT" ]
null
null
null
Deploy Koalas/predicao_seguro_veicular.py
Alberlando/Projeto_Stack_Labs
dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2
[ "MIT" ]
null
null
null
import pickle import pandas as pd from flask import Flask, render_template, request # Pastas de template e assets application = Flask(__name__, template_folder='template', static_folder='template/assets') # Modelo Treinado modelo = pickle.load(open('./models/modelo.pkl', 'rb')) @application.route('/') def home(): ...
32.169231
105
0.675275
247
2,091
5.506073
0.37247
0.066912
0.051471
0.066176
0
0
0
0
0
0
0
0.007506
0.171688
2,091
64
106
32.671875
0.777714
0.020564
0
0
0
0
0.289487
0.012225
0
0
0
0
0
1
0.111111
false
0
0.066667
0.066667
0.288889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e21ebbedab4084b07dd7feca9c6e28c31c047c5a
9,732
py
Python
smartsheet/folders.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
smartsheet/folders.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
smartsheet/folders.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0111,R0902,R0913 # Smartsheet Python SDK. # # Copyright 2016 Smartsheet.com, 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/LICE...
33.215017
79
0.60522
1,107
9,732
5.079494
0.196929
0.051218
0.019207
0.024009
0.589721
0.533701
0.477147
0.452961
0.442646
0.390539
0
0.00409
0.296547
9,732
292
80
33.328767
0.817266
0.373202
0
0.571429
0
0
0.150271
0.030241
0
0
0
0
0
1
0.089286
false
0
0.053571
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2200e5524f72a2e5ad4b0ce1842141e8401e750
770
py
Python
tests/test_performance.py
blyxxyz/dtparse
de080668db3e74418e51b221669d9b2ebdb41ad8
[ "MIT" ]
71
2018-03-29T08:35:21.000Z
2022-02-28T06:58:23.000Z
tests/test_performance.py
blyxxyz/dtparse
de080668db3e74418e51b221669d9b2ebdb41ad8
[ "MIT" ]
9
2018-04-09T12:42:06.000Z
2021-10-14T18:43:21.000Z
tests/test_performance.py
blyxxyz/dtparse
de080668db3e74418e51b221669d9b2ebdb41ad8
[ "MIT" ]
3
2021-01-29T17:52:22.000Z
2021-05-27T06:35:42.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import ciso8601 from datetime import datetime import dtparse def test_ciso8601(benchmark): assert benchmark.pedantic( ciso8601.parse_datetime, args=('2018-12-31T23:59:58', ), rounds=10 ** 6, iterations=100 ) == datetime(2018, 12,...
26.551724
77
0.628571
110
770
4.318182
0.345455
0.075789
0.151579
0.202105
0.431579
0.431579
0.391579
0.345263
0.345263
0.345263
0
0.185065
0.2
770
28
78
27.5
0.586039
0.027273
0
0.315789
0
0
0.121821
0
0
0
0
0
0.157895
1
0.157895
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e220223f379eea5955f8b9951c232b87a6d1acb8
1,201
py
Python
Chapter 5/HelloLights.py
PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics
c6101487dfe078c25724ed7d58998f84a9ac57dd
[ "MIT" ]
null
null
null
Chapter 5/HelloLights.py
PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics
c6101487dfe078c25724ed7d58998f84a9ac57dd
[ "MIT" ]
null
null
null
Chapter 5/HelloLights.py
PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics
c6101487dfe078c25724ed7d58998f84a9ac57dd
[ "MIT" ]
null
null
null
from Cube import * from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * pygame.init() screen_width = 500 screen_height = 500 screen = pygame.display.set_mode((screen_width, screen_height), DOUBLEBUF | OPENGL) pygame.display.set_caption('Lights in OpenGL') done = False white = pygame....
28.595238
84
0.693589
183
1,201
4.382514
0.437158
0.01995
0.049875
0.067332
0.074813
0
0
0
0
0
0
0.06079
0.178185
1,201
41
85
29.292683
0.751773
0.040799
0
0
0
0
0.032462
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e22154cd5b7e0c01be1d0db9da9d5ecb4fbf5209
6,480
py
Python
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'mac_table': { 'vlans': { '100': { 'vlan': '100', 'mac_addresses': { '0000.0000.1111': { 'mac_address': '0000.0000.1111', 'entry': '+', 'interfaces': { ...
39.512195
66
0.222685
295
6,480
4.79661
0.145763
0.217668
0.093286
0.101767
0.667845
0.667845
0.667845
0.667845
0.667845
0.667845
0
0.159603
0.657716
6,480
163
67
39.754601
0.478359
0
0
0.503067
0
0
0.233025
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e2215b9d1f31c1a285af3e852e3b2fdae988fa43
238
py
Python
Demos/Demo-4.2 Modules/myprinter.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
4
2018-04-28T13:43:20.000Z
2021-03-11T16:10:35.000Z
Demos/Demo-4.2 Modules/myprinter.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
Demos/Demo-4.2 Modules/myprinter.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
""" my pretty printer module """ def printit(text): # use ANSI escape sequeences top print inverted, bold ,red text # https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit print("\033[;7m\033[1;31m{}\033[0;0m".format(str(text) ) )
23.8
64
0.697479
40
238
4.075
0.825
0.122699
0
0
0
0
0
0
0
0
0
0.081731
0.12605
238
9
65
26.444444
0.701923
0.592437
0
0
0
0
0.341176
0.341176
0
0
0
0
0
1
0.5
false
0
0
0
0.5
1
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
1
0
0
0
0
0
1
0
3
e2223661c2c4f44a67ddc90bd3bf6d66591db78b
5,504
py
Python
simulate_SNVs.py
pjedge/longshot_study
da4d3ffb1a58575142a9712c21b12e2cf6083d2d
[ "MIT" ]
3
2019-10-15T12:28:38.000Z
2019-12-09T07:56:26.000Z
simulate_SNVs.py
pjedge/longshot_study
da4d3ffb1a58575142a9712c21b12e2cf6083d2d
[ "MIT" ]
null
null
null
simulate_SNVs.py
pjedge/longshot_study
da4d3ffb1a58575142a9712c21b12e2cf6083d2d
[ "MIT" ]
2
2020-12-29T09:34:09.000Z
2022-01-11T06:12:02.000Z
import copy import random import os import pysam import itertools import numpy as np from numpy.random import choice VALID_CHROMS = set(['{}'.format(c) for c in range(1,23)]+['X']+['contig1','contig2','contig3']) # estimate prior probability of genotypes using strategy described here: # http://www.ncbi.nlm.nih.gov/pm...
37.69863
133
0.544876
650
5,504
4.421538
0.286154
0.092554
0.111343
0.084551
0.219903
0.123173
0.107516
0.097077
0.093946
0.063326
0
0.029979
0.321221
5,504
145
134
37.958621
0.739293
0.133176
0
0.108911
0
0
0.051536
0.026083
0
0
0
0
0
1
0.029703
false
0.009901
0.069307
0
0.128713
0.029703
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2240a7bb6db4aec7ff5b824e862708bbb200092
26,604
py
Python
examples/mlutils.py
HongGroup/AHO
2f492fccc9535365ff618b4ffd04dd64248bddac
[ "MIT" ]
4
2021-06-08T13:16:44.000Z
2021-12-01T09:06:55.000Z
examples/mlutils.py
licheng-xu-echo/AHO
2f492fccc9535365ff618b4ffd04dd64248bddac
[ "MIT" ]
null
null
null
examples/mlutils.py
licheng-xu-echo/AHO
2f492fccc9535365ff618b4ffd04dd64248bddac
[ "MIT" ]
2
2021-12-01T09:07:02.000Z
2022-01-17T07:52:22.000Z
# -*- coding: utf-8 -*- """ @author: Li-Cheng Xu """ import numpy as np from rdkit import Chem import matplotlib.pyplot as plt from sklearn.metrics import mean_absolute_error,r2_score from sklearn.model_selection import train_test_split from openbabel.pybel import readfile,Outputfile def molformatconversion...
53.854251
165
0.598444
4,185
26,604
3.512067
0.0681
0.031569
0.077153
0.0745
0.649
0.592938
0.554837
0.542727
0.517689
0.506804
0
0.043892
0.269508
26,604
493
166
53.963489
0.712411
0.009999
0
0.420582
0
0
0.058721
0.009961
0
0
0
0
0.004474
1
0.053691
false
0
0.013423
0
0.114094
0.038031
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2257823e08ea7f45c9fa382382cc45a54e32c63
4,736
py
Python
computation_migration/calc/code/draw.py
mengyingzhou/ipv6_firewall_computation_migration
3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842
[ "MIT" ]
null
null
null
computation_migration/calc/code/draw.py
mengyingzhou/ipv6_firewall_computation_migration
3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842
[ "MIT" ]
null
null
null
computation_migration/calc/code/draw.py
mengyingzhou/ipv6_firewall_computation_migration
3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import os import numpy as np import json plt.rcParams["font.family"] = 'Arial Unicode MS' #显示中文标签 plt.rcParams['axes.unicode_minus'] = False #这两行需要手动设置 data_source = '../data/' def his_1(): data_path = os.path.join(data_source, 'single.txt') f = open(data_path, 'r') y1 = ...
29.234568
108
0.544975
682
4,736
3.709677
0.225806
0.052174
0.035573
0.056917
0.506719
0.466403
0.444269
0.376285
0.345059
0.345059
0
0.051937
0.264147
4,736
162
109
29.234568
0.674032
0.162584
0
0.465517
0
0
0.105987
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.068966
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e228dc884f57dfc425adce95624c25fcfa4c9559
1,591
py
Python
21-custom-form/Python/test-model/test-model.py
ibnmasud/AI-102-AIEngineer
21e8d90300c88ca49a19e8f212400996ae7261ee
[ "MIT" ]
163
2021-01-27T14:07:36.000Z
2022-03-28T23:55:36.000Z
21-custom-form/Python/test-model/test-model.py
ibnmasud/AI-102-AIEngineer
21e8d90300c88ca49a19e8f212400996ae7261ee
[ "MIT" ]
93
2021-01-27T16:07:03.000Z
2022-03-31T13:49:49.000Z
21-custom-form/Python/test-model/test-model.py
ibnmasud/AI-102-AIEngineer
21e8d90300c88ca49a19e8f212400996ae7261ee
[ "MIT" ]
243
2021-01-28T16:16:55.000Z
2022-03-30T03:21:00.000Z
import os from dotenv import load_dotenv from azure.core.exceptions import ResourceNotFoundError from azure.ai.formrecognizer import FormRecognizerClient from azure.ai.formrecognizer import FormTrainingClient from azure.core.credentials import AzureKeyCredential def main(): try: # Get con...
34.586957
102
0.635449
178
1,591
5.47191
0.426966
0.035934
0.026694
0.051335
0.13963
0
0
0
0
0
0
0.00088
0.285355
1,591
46
103
34.586957
0.855761
0.089252
0
0
0
0
0.09072
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.225806
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e22c0befaa5512ccdd1b310ca9e86e617ac4186f
79
py
Python
web_parsers/utils/__init__.py
invanalabs/web-parser
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
1
2019-10-06T23:11:32.000Z
2019-10-06T23:11:32.000Z
web_parsers/utils/__init__.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
2
2020-03-11T09:33:03.000Z
2020-03-18T21:12:28.000Z
web_parsers/utils/__init__.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
null
null
null
from .other import yaml_to_json from .selectors import convert_html_to_selector
39.5
47
0.886076
13
79
5
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.088608
79
2
47
39.5
0.902778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e22c22ffbd9a0a2faef414a9d04083e1ef218ad7
7,830
py
Python
cognito_emulator/userpool/views/oauth2.py
opencollector/cognito-emulator
6351c3ec26425d57d58e6d6821d057058170e381
[ "MIT" ]
4
2020-11-17T09:29:03.000Z
2021-07-28T22:08:52.000Z
cognito_emulator/userpool/views/oauth2.py
opencollector/cognito-emulator
6351c3ec26425d57d58e6d6821d057058170e381
[ "MIT" ]
null
null
null
cognito_emulator/userpool/views/oauth2.py
opencollector/cognito-emulator
6351c3ec26425d57d58e6d6821d057058170e381
[ "MIT" ]
1
2020-11-21T12:30:06.000Z
2020-11-21T12:30:06.000Z
# Copyright (c) 2020 Open Collector, Inc. # # 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, publish...
35.429864
88
0.671392
957
7,830
5.31139
0.281087
0.025575
0.012394
0.011017
0.21385
0.18316
0.11568
0.101121
0.055479
0.055479
0
0.0042
0.239847
7,830
220
89
35.590909
0.849798
0.138697
0
0.159091
0
0
0.06501
0.007141
0
0
0
0
0
1
0.034091
false
0
0.107955
0.005682
0.255682
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e22c2608e9d7b603ab0ab3546b2f860fe1b72dbd
10,671
py
Python
openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py
benman1/OpenML-Speed-Dating
db76372411eaf18d10513a3dd434a3414f2eda9a
[ "MIT" ]
1
2020-12-17T20:25:13.000Z
2020-12-17T20:25:13.000Z
openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py
benman1/OpenML-Speed-Dating
db76372411eaf18d10513a3dd434a3414f2eda9a
[ "MIT" ]
null
null
null
openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py
benman1/OpenML-Speed-Dating
db76372411eaf18d10513a3dd434a3414f2eda9a
[ "MIT" ]
null
null
null
"""This module implements the pipeline steps needed to classify partner choices in the OpenML Speed Dating challenge.""" from functools import lru_cache import operator from joblib import Parallel, delayed import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.imput...
31.293255
79
0.608659
1,274
10,671
4.967818
0.187598
0.036025
0.008532
0.01422
0.493759
0.43514
0.372413
0.315532
0.293885
0.285827
0
0.005028
0.291819
10,671
340
80
31.385294
0.832473
0.36051
0
0.320755
0
0
0.006583
0
0
0
0
0
0.025157
1
0.157233
false
0
0.050314
0.025157
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e22fc237bf632bd9754fd9b3152633f46c2df55e
2,061
py
Python
Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-03-02T03:58:55.000Z
2022-03-28T13:38:05.000Z
Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
null
null
null
Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-02-04T17:44:23.000Z
2022-03-28T13:38:09.000Z
# Question 02, Lab 09 # AB Satyaprkash, 180123062 # imports from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import pandas as pd import numpy as np # functions def plotGraphs(fileName): df = pd.read_csv(fileName) # extract and rename columns df = df[['Expiry', 'Strike Price', 'Clo...
36.157895
194
0.657448
298
2,061
4.479866
0.345638
0.089888
0.101124
0.06367
0.365543
0.196255
0.164794
0.062921
0.062921
0.062921
0
0.026834
0.186317
2,061
56
195
36.803571
0.769231
0.086851
0
0.081081
0
0
0.407368
0.14095
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.135135
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2300afbe7a94521779836a884634caba5b65620
486
py
Python
scrnshot/screenshot.py
leovp/scrnshot
e5fa739663977955b072a1ae714935e5e4f1fa35
[ "MIT" ]
1
2017-11-22T22:14:12.000Z
2017-11-22T22:14:12.000Z
scrnshot/screenshot.py
leovp/scrnshot
e5fa739663977955b072a1ae714935e5e4f1fa35
[ "MIT" ]
null
null
null
scrnshot/screenshot.py
leovp/scrnshot
e5fa739663977955b072a1ae714935e5e4f1fa35
[ "MIT" ]
null
null
null
import subprocess import tempfile def do_screenshot(url): """ Screenshot an `url` (fullscreen) and return a path to an image. :param url: A previously validated URL of a webpage to capture. :return: A Path-like object representing a screenshot. """ _, path = tempfile.mkstemp(suffix='.png') ...
30.375
97
0.695473
66
486
5.090909
0.606061
0.041667
0.065476
0
0
0
0
0
0
0
0
0.007634
0.191358
486
15
98
32.4
0.847328
0.376543
0
0
0
0
0.129032
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e230749534777e0ccbaed6e1bc443c35cb0deff6
714
py
Python
test/test_nstx/__init__.py
Fusion-Data-Platform/fdp
d87a52207238f168ed69b9f96dc8f20f4481366d
[ "MIT" ]
10
2015-12-18T22:38:07.000Z
2020-03-02T09:15:50.000Z
test/test_nstx/__init__.py
Fusion-Data-Platform/fdp
d87a52207238f168ed69b9f96dc8f20f4481366d
[ "MIT" ]
14
2015-12-07T16:41:48.000Z
2019-01-18T17:48:55.000Z
test/test_nstx/__init__.py
Fusion-Data-Platform/fdp
d87a52207238f168ed69b9f96dc8f20f4481366d
[ "MIT" ]
5
2016-05-20T17:35:23.000Z
2019-01-17T19:00:06.000Z
from __future__ import print_function import socket from fdp.lib import datasources # some valid shots for testing shotlist = [204620, 204551, 142301, 204670, 204956, 204990] def server_connection(): machine = datasources.canonicalMachineName('nstx') servers = [datasources.MDS_SERVERS[machine], ...
31.043478
84
0.648459
78
714
5.820513
0.628205
0.079295
0
0
0
0
0
0
0
0
0
0.069549
0.254902
714
22
85
32.454545
0.783835
0.039216
0
0
0
0
0.076023
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e230cac0e9bca0e9832f66ff06f35ec5bb98d139
15,731
py
Python
CUB/plots.py
TeodorChiaburu/ConceptBottleneck
a9f90743f9e3fff52446dfe0a0f256bc32033e4a
[ "MIT" ]
75
2020-07-12T06:32:18.000Z
2022-03-10T11:40:08.000Z
CUB/plots.py
TeodorChiaburu/ConceptBottleneck
a9f90743f9e3fff52446dfe0a0f256bc32033e4a
[ "MIT" ]
13
2020-07-13T08:33:05.000Z
2022-03-30T08:25:14.000Z
CUB/plots.py
TeodorChiaburu/ConceptBottleneck
a9f90743f9e3fff52446dfe0a0f256bc32033e4a
[ "MIT" ]
16
2020-07-15T03:23:04.000Z
2022-02-19T16:34:21.000Z
import numpy as np import matplotlib.pyplot as plt r = { # Normal experiments 'Independent': np.genfromtxt('IndependentModel__WithValSigmoid/results.txt'), 'Sequential': np.genfromtxt('SequentialModel__WithVal/results.txt'), 'Sequential_ConceptsBreakdown': np.genfromtxt('SequentialModel__WithVal/conce...
53.14527
240
0.60473
2,134
15,731
4.332709
0.155576
0.051914
0.03461
0.003461
0.368484
0.294398
0.257192
0.230478
0.215336
0.191542
0
0.09704
0.136609
15,731
295
241
53.325424
0.583714
0.118238
0
0.295359
0
0
0.363124
0.215329
0
0
0
0
0
1
0
false
0
0.008439
0
0.008439
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e233adc9b22c4398d7a8beae60c358df0f7d7c2d
2,104
py
Python
tensorflow/python/data/experimental/ops/resampling.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/data/experimental/ops/resampling.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/data/experimental/ops/resampling.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.254902
80
0.716255
282
2,104
5.251773
0.485816
0.040513
0.030385
0.021607
0.054018
0.054018
0.054018
0.054018
0
0
0
0.006275
0.166825
2,104
50
81
42.08
0.838562
0.715304
0
0
0
0
0.151571
0.144177
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e234414690173c77918ef824123cf90f04a2cbcc
1,099
py
Python
dump_ids.py
alexprz/NHIS_analyse
466e944ed1002bf227cb1522d91daf9b80c7d7d5
[ "MIT" ]
1
2022-03-01T05:33:12.000Z
2022-03-01T05:33:12.000Z
dump_ids.py
aperezlebel/benchmark_mv_approaches
466e944ed1002bf227cb1522d91daf9b80c7d7d5
[ "MIT" ]
null
null
null
dump_ids.py
aperezlebel/benchmark_mv_approaches
466e944ed1002bf227cb1522d91daf9b80c7d7d5
[ "MIT" ]
1
2020-09-01T15:20:39.000Z
2020-09-01T15:20:39.000Z
from argparse import Namespace from itertools import product from joblib import Parallel, delayed import prediction def run(args): tasks = [ 'TB/death_pvals', 'TB/platelet_pvals', 'TB/hemo', 'TB/hemo_pvals', 'TB/acid', 'TB/septic_pvals', 'UKBB/breast_25', ...
23.891304
90
0.536852
129
1,099
4.395349
0.48062
0.063492
0.035273
0.038801
0
0
0
0
0
0
0
0.013717
0.33667
1,099
45
91
24.422222
0.76406
0.063694
0
0
0
0
0.271665
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e23480de34ea3367e0215069e71041e9d6217090
649
py
Python
exercicios/exe100/exe100.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe100/exe100.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe100/exe100.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
a = 50 print('\033[32m_\033[m' * a) print(f'\033[1;32m{"SISTEMA QUE SORTEIA E SOMA PARES":=^{a}}\033[m') print('\033[32m-\033[m' * a) from random import randint from time import sleep def sorteia(lista): print('\033[1;34msorteando 5 valores da lista: ', end='') for cont in range(0,5): lista.append(ran...
21.633333
77
0.59168
105
649
3.647619
0.438095
0.052219
0.057441
0.073107
0.083551
0.083551
0
0
0
0
0
0.111776
0.228043
649
29
78
22.37931
0.652695
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.318182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e234bb2a04280183f76b137d872eee45b289f225
1,915
py
Python
autosklearn/constants.py
wsyjwps1983/autosklearn
2e29ebaca6bc26fa838f7c3b8b13960c600884e4
[ "BSD-3-Clause" ]
null
null
null
autosklearn/constants.py
wsyjwps1983/autosklearn
2e29ebaca6bc26fa838f7c3b8b13960c600884e4
[ "BSD-3-Clause" ]
null
null
null
autosklearn/constants.py
wsyjwps1983/autosklearn
2e29ebaca6bc26fa838f7c3b8b13960c600884e4
[ "BSD-3-Clause" ]
1
2019-04-01T11:53:20.000Z
2019-04-01T11:53:20.000Z
# -*- encoding: utf-8 -*- BINARY_CLASSIFICATION = 1 MULTICLASS_CLASSIFICATION = 2 MULTILABEL_CLASSIFICATION = 3 REGRESSION = 4 REGRESSION_TASKS = [REGRESSION] CLASSIFICATION_TASKS = [BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION, MULTILABEL_CLASSIFICATION] TASK_TYPES = REGRESSION_TASKS + C...
26.971831
73
0.696084
220
1,915
5.645455
0.159091
0.057971
0.152979
0.10628
0.640902
0.428341
0.251208
0.251208
0.251208
0.251208
0
0.021907
0.189556
1,915
71
74
26.971831
0.778351
0.01201
0
0
0
0
0.208355
0.075093
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e235f31acb8ae353e5c75df0a1b68b12de85bdb9
92
py
Python
pyzxing/__init__.py
Komugisama/pyzxing
d416a82824c55e9083b30d41b0dc2a9f652ad9ea
[ "MIT" ]
107
2020-05-28T15:40:42.000Z
2022-03-30T02:27:01.000Z
Prod_CV_NLP_API/flask/pyzxing/__init__.py
micintron/computer_vission_OCR
1fdd521b334f6e5958958ccf816341531b783a21
[ "CNRI-Python" ]
30
2020-07-25T15:34:56.000Z
2022-03-24T03:06:43.000Z
Prod_CV_NLP_API/flask/pyzxing/__init__.py
micintron/computer_vission_OCR
1fdd521b334f6e5958958ccf816341531b783a21
[ "CNRI-Python" ]
19
2020-07-02T21:10:19.000Z
2022-03-09T22:37:51.000Z
# coding=utf-8 """The root of pyzxing namespace.""" from .reader import BarCodeReader #noqa
30.666667
40
0.73913
13
92
5.230769
1
0
0
0
0
0
0
0
0
0
0
0.0125
0.130435
92
3
40
30.666667
0.8375
0.521739
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e23685ee4a938cb06e992e078910cbf2539398a3
41
py
Python
modules/submission.py
CS70/experiments
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
[ "BSD-2-Clause" ]
1
2016-08-23T19:39:57.000Z
2016-08-23T19:39:57.000Z
modules/submission.py
CS70/experiments
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
[ "BSD-2-Clause" ]
null
null
null
modules/submission.py
CS70/experiments
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
[ "BSD-2-Clause" ]
null
null
null
class SubmissionModule(object): pass
13.666667
31
0.756098
4
41
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.170732
41
2
32
20.5
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
e236e8bc6fd36c395d21926c8f38f313ab1c3fb5
314,305
py
Python
models_nonconvex_simple/autocorr_bern35-35fix.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_nonconvex_simple/autocorr_bern35-35fix.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_nonconvex_simple/autocorr_bern35-35fix.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
1
2019-05-10T18:34:18.000Z
2019-05-10T18:34:18.000Z
# MINLP written by GAMS Convert at 08/13/20 17:37:47 # # Equation counts # Total E G L N X C B # 1 0 0 1 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
117.673156
120
0.488274
77,146
314,305
1.989306
0.004381
0.052018
0.023823
0.020838
0.949774
0.947376
0.47132
0.422749
0.020819
0.000274
0
0.371149
0.266222
314,305
2,670
121
117.717228
0.294277
0.001992
0
0
0
0
0
0
0
0
0
0
0
1
null
null
null
null
null
null
null
0
0
1
null
0
0
0
1
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
null
null
null
null
null
null
0
6
e237ab6218d2278fe4e6deac02d0f478707e1998
4,374
py
Python
submission/transit_model.py
atravitz/transit_models
e7351fc57b253551e7c7d50d60bf2ab859b2eda6
[ "MIT" ]
null
null
null
submission/transit_model.py
atravitz/transit_models
e7351fc57b253551e7c7d50d60bf2ab859b2eda6
[ "MIT" ]
null
null
null
submission/transit_model.py
atravitz/transit_models
e7351fc57b253551e7c7d50d60bf2ab859b2eda6
[ "MIT" ]
null
null
null
import networkx as nx import random import numpy as np from matplotlib import cm import matplotlib.pyplot as plt class Passenger: def __init__(self): self.fees = 0 self.transit_time = 0 def initialize(n_passengers, node_capacity, itinerary=None, intermediate_stops=0): g = nx.read_gml('cta.gm...
34.992
99
0.578875
537
4,374
4.556797
0.249534
0.03678
0.03678
0.028606
0.258275
0.194524
0.161422
0.076011
0.044953
0.044953
0
0.010745
0.319159
4,374
124
100
35.274194
0.810947
0.108368
0
0.081395
0
0
0.052903
0
0
0
0
0
0
1
0.046512
false
0.151163
0.05814
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e238163f8acd55691ab287c42a85b19501bfcfe7
3,362
py
Python
signal_interpreter_server/tests/unit_tests/test_routes.py
mtormane/signal-interpreter-server
6e96d520604db479c5d70e7ff372375e5552e346
[ "MIT" ]
null
null
null
signal_interpreter_server/tests/unit_tests/test_routes.py
mtormane/signal-interpreter-server
6e96d520604db479c5d70e7ff372375e5552e346
[ "MIT" ]
null
null
null
signal_interpreter_server/tests/unit_tests/test_routes.py
mtormane/signal-interpreter-server
6e96d520604db479c5d70e7ff372375e5552e346
[ "MIT" ]
null
null
null
from unittest.mock import patch import pytest from werkzeug.exceptions import InternalServerError, BadRequest from signal_interpreter_server.routes import interpret_signal from signal_interpreter_server.routes import signal_interpreter_app, parser_factory from signal_interpreter_server.exceptions import SignalError ...
50.939394
121
0.672814
366
3,362
5.874317
0.188525
0.110698
0.093023
0.104186
0.636279
0.611163
0.560465
0.437209
0.377674
0.377674
0
0.009831
0.243605
3,362
66
122
50.939394
0.835627
0.009518
0
0.320755
0
0
0.079098
0.006316
0
0
0
0
0.226415
1
0.075472
false
0
0.132075
0
0.207547
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2390611f4647b2e7e3551c1736652b488f23d92
425
py
Python
backend/lib/utils/iterators.py
bayesimpact/tds-frontend
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
15
2018-05-08T23:54:38.000Z
2020-03-07T20:46:37.000Z
backend/lib/utils/iterators.py
akegan/encompass
85852a91c646c62e8cd05f9c2b0c7cf0079ea7f2
[ "Apache-2.0" ]
297
2018-02-05T19:04:26.000Z
2022-02-12T07:52:37.000Z
backend/lib/utils/iterators.py
bayesimpact/tds
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
6
2018-05-21T19:51:15.000Z
2019-03-21T19:20:27.000Z
"""Iterators utils.""" def iterate_in_slices(iterable, batch_size): """Yield lists of size batch_size from an iterable.""" it = iter(iterable) try: while True: chunk = [] # The buffer to hold the next n items. for _ in range(batch_size): chunk.append(next(i...
26.5625
62
0.562353
52
425
4.480769
0.673077
0.11588
0
0
0
0
0
0
0
0
0
0.003571
0.341176
425
15
63
28.333333
0.828571
0.242353
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e239d89aad607b40741aa259728cb33583bd2f79
3,526
py
Python
Week-3/Class2.py
bansalbhavishaya/PythonCourse
d89cbd746279d1f9d6dcb9cda0e6f63848e94f40
[ "MIT" ]
null
null
null
Week-3/Class2.py
bansalbhavishaya/PythonCourse
d89cbd746279d1f9d6dcb9cda0e6f63848e94f40
[ "MIT" ]
null
null
null
Week-3/Class2.py
bansalbhavishaya/PythonCourse
d89cbd746279d1f9d6dcb9cda0e6f63848e94f40
[ "MIT" ]
null
null
null
# oops in python class sample: data1= 10 data2= 'abc' def show(self): print(self.data1, self.data2) def putdata1(self, data1): self.data1 = data1 def putdata2(self.data2): self.data2 = data2 s1 = sample() s1.show() s1.putdata1(25) s1.show() print(s1.data1) # in this as we can see that th...
36.350515
203
0.615428
516
3,526
4.050388
0.304264
0.049761
0.043541
0.030622
0.317225
0.315311
0.315311
0.289952
0.289952
0.289952
0
0.04198
0.283891
3,526
96
204
36.729167
0.785743
0.509075
0
0.269841
0
0
0.020012
0
0
0
0
0
0
0
null
null
0.015873
0
null
null
0.079365
0
0
0
null
0
0
0
0
0
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
e23a8a1fd9ee7b65210f333c867d42311511632e
209
py
Python
noxfile.py
0xflotus/pyheck
852828f9d0bd5e9272ef6c85076d105965e05ca7
[ "MIT" ]
24
2022-01-24T16:19:26.000Z
2022-02-17T21:12:40.000Z
noxfile.py
kevinheavey/pybip39
1f668feb8ebcfe009e87f853bff47876846f5c83
[ "Apache-2.0" ]
1
2022-01-20T22:52:24.000Z
2022-01-20T22:52:24.000Z
noxfile.py
kevinheavey/pybip39
1f668feb8ebcfe009e87f853bff47876846f5c83
[ "Apache-2.0" ]
4
2022-01-20T22:48:38.000Z
2022-01-28T01:16:12.000Z
# type: ignore import nox @nox.session def python(session): session.install("pytest", "maturin", "sphinx") session.install(".", "--no-build-isolation") session.run("make", "test", external=True)
20.9
50
0.660287
25
209
5.52
0.76
0.202899
0
0
0
0
0
0
0
0
0
0
0.143541
209
9
51
23.222222
0.77095
0.057416
0
0
0
0
0.246154
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
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
0
0
0
0
0
0
0
3
e23aa280ead4993cea9b3c1ee67c0cfb1a5721dc
845
py
Python
download_models.py
AhsanAliLodhi/conditional-gans
b4e8299c59143507f9e16e965dfb659995db3b3e
[ "MIT" ]
null
null
null
download_models.py
AhsanAliLodhi/conditional-gans
b4e8299c59143507f9e16e965dfb659995db3b3e
[ "MIT" ]
null
null
null
download_models.py
AhsanAliLodhi/conditional-gans
b4e8299c59143507f9e16e965dfb659995db3b3e
[ "MIT" ]
null
null
null
import urllib.request import zipfile import os url = 'https://syncandshare.lrz.de/dl/fiVRr3EeLiGxcoHXmW5yoWHq/models.zip' print('Dlownloaing models (This might take time)') urllib.request.urlretrieve(url, 'models.zip') with zipfile.ZipFile('models.zip', 'r') as zip_ref: print("extracting models") zip_ref.extra...
40.238095
86
0.784615
115
845
5.556522
0.313043
0.098592
0.065728
0.098592
0.610329
0.519562
0.458529
0.206573
0.206573
0.206573
0
0.002587
0.085207
845
21
87
40.238095
0.824062
0
0
0
0
0
0.535461
0.262411
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0