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
3768f3ba1595d85981a62e468f1663abf36a9838
7,179
py
Python
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
2
2021-02-22T12:15:42.000Z
2021-05-02T15:22:24.000Z
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
7
2021-03-01T21:16:26.000Z
2022-02-27T07:07:11.000Z
mmf/utils/logger.py
krantirk/MMF
2e4acaad7ca8eee4319e1205a560eed81733a0be
[ "BSD-3-Clause" ]
1
2022-03-04T14:19:43.000Z
2022-03-04T14:19:43.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import collections import json import logging import os import sys from typing import Type from mmf.utils.configuration import get_mmf_env from mmf.utils.distributed import is_master from mmf.utils.file_io import PathManager from mmf.utils.timer import Timer class ...
32.337838
86
0.620003
892
7,179
4.764574
0.206278
0.032941
0.025412
0.017647
0.326118
0.273882
0.192
0.192
0.140706
0.108706
0
0.000776
0.281794
7,179
221
87
32.484163
0.823507
0.068533
0
0.265823
0
0
0.042061
0.003906
0
0
0
0
0
1
0.094937
false
0.006329
0.06962
0
0.259494
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3769cb9e6e30558704c62fd2397c4328d7099939
163
py
Python
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2018-04-06T21:36:59.000Z
2018-04-06T21:36:59.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import HubicProvider urlpatterns = default_urlpatterns(HubicProvider)
27.166667
75
0.871166
17
163
8.235294
0.647059
0.257143
0
0
0
0
0
0
0
0
0
0.006667
0.079755
163
5
76
32.6
0.926667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
5
376ac08cf10241073ec03135469cc20f62b04104
1,710
py
Python
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
class MexFinder: """This class collects non-negative integers, and finds the minimal non-negative integer that was not added to it. """ def __init__(self): # We maintain a dict, representing a set, with the following # invariants: # (a) Its keys are the elements of the set (and -...
32.884615
78
0.580117
249
1,710
3.927711
0.37751
0.051125
0.07362
0.064417
0.216769
0.143149
0.0818
0
0
0
0
0.010408
0.325731
1,710
51
79
33.529412
0.837814
0.562573
0
0
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
376b687ba9788b6a0541074221d59f6f3f6f83f8
1,672
py
Python
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
from collections import namedtuple from pytest import fixture from geocoder.geocoding import ( Addresses, Coordinates, ) @fixture def mock_csv_coordinates(tmp_path): data = [ "city,street,number,postal_code,state,lon,lat", "Katowice,Armii Krajowej,102,40-671,istniejacy,259921.7313,498200....
28.827586
80
0.668062
203
1,672
5.384236
0.359606
0.045746
0.038426
0.054895
0.307411
0.307411
0.254346
0.254346
0.254346
0.254346
0
0.088775
0.184809
1,672
57
81
29.333333
0.713133
0
0
0.326087
0
0
0.294856
0.184211
0
0
0
0
0
1
0.108696
false
0
0.065217
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
376bc7a4f7b334355a7cb7a86e7b94a23206268d
15,949
py
Python
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
4
2019-08-21T06:05:03.000Z
2021-01-26T04:21:19.000Z
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
null
null
null
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
2
2021-01-26T04:21:22.000Z
2021-02-22T07:51:39.000Z
from django.http import HttpRequest from django.views import generic from django.shortcuts import render, reverse, get_object_or_404, HttpResponseRedirect from django.db.utils import IntegrityError from .models import User, UserType, Goods from .forms import (RegisterFEForm, RegisterBEForm, LoginFEForm, LoginBEForm, C...
31.898
116
0.621669
1,718
15,949
5.579162
0.168801
0.037872
0.046114
0.041628
0.45999
0.414502
0.338758
0.281481
0.250183
0.208555
0
0.005909
0.267854
15,949
499
117
31.961924
0.814935
0.072168
0
0.37415
0
0
0.109287
0.018547
0
0
0
0.002004
0
1
0.119048
false
0.085034
0.027211
0.034014
0.391156
0
0
0
0
null
0
0
0
0
0
0
0
0
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
376df6d7f89516a0e412a13d0db28bac87a6c75e
7,176
py
Python
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
null
null
null
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-06-04T11:42:27.000Z
2021-06-04T16:16:21.000Z
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-04-16T09:00:04.000Z
2021-06-23T12:07:45.000Z
import os import json import stat from pathlib import Path import sys import urllib.parse import uuid import shutil os.chdir(os.path.dirname(os.path.abspath(__file__))) j = '' with open('update_config.json') as f: j = f.read() j = json.loads(j) branch_db = j["branch_db"] branch_runtime = j["branch_runtime"] bran...
28.589641
133
0.603958
1,000
7,176
4.131
0.216
0.038732
0.013556
0.019366
0.134834
0.088114
0.054708
0.044057
0.029049
0.029049
0
0.019561
0.244844
7,176
251
134
28.589641
0.742757
0.013657
0
0.178571
0
0
0.237173
0.049611
0
0
0
0
0
1
0.071429
false
0.005102
0.040816
0.010204
0.153061
0.030612
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
376e19ebc1589ff77a8fc478cb226ea8ba133c58
2,922
py
Python
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
from Configuration.PyReleaseValidation.relval_steps import Matrix, InputInfo, Steps import os import json import collections workflows = Matrix() steps = Steps() def get_json_files(): cwd = os.path.join(os.getcwd(), "json_data") if not os.path.exists(cwd): return [] json_files = [] for f i...
34.785714
104
0.600616
354
2,922
4.782486
0.330508
0.033077
0.030715
0.044891
0.054932
0.037803
0
0
0
0
0
0.006816
0.297057
2,922
83
105
35.204819
0.817429
0.040726
0
0.04918
0
0
0.062255
0
0
0
0
0
0
0
null
null
0
0.065574
null
null
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
376ea9466a6314f03a1e7da915e45334793f2ec3
2,260
py
Python
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2013 Steven Diamond This file is part of CVXPY. CVXPY is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CVXPY is distributed i...
27.228916
79
0.633186
325
2,260
4.332308
0.458462
0.028409
0.027699
0.040483
0.160511
0.076705
0
0
0
0
0
0.004281
0.276549
2,260
82
80
27.560976
0.856881
0.587168
0
0.12
0
0
0.004813
0
0
0
0
0
0
1
0.36
false
0
0.12
0
0.88
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
376fcab57617bb6cde8c9472e7ac7b41d22d82ce
15,579
py
Python
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Oliver Cope # # 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, ...
35.649886
86
0.642275
1,950
15,579
4.926667
0.144615
0.034975
0.039554
0.012491
0.588633
0.525034
0.506089
0.457895
0.435516
0.404393
0
0.020156
0.232492
15,579
436
87
35.731651
0.783307
0.073368
0
0.417857
0
0
0.107761
0.005396
0
0
0
0
0.15
1
0.135714
false
0
0.042857
0.003571
0.210714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
376fd9796861e2c39787309023f2cdb3f5ebed40
88
py
Python
kg_covid_19/transform_utils/drug_central/__init__.py
matentzn/kg-covid-19
86dbb348509e2133c3e3b3d66bfa29a299673b66
[ "BSD-3-Clause" ]
66
2020-03-22T21:23:32.000Z
2022-03-24T09:34:03.000Z
kg_covid_19/transform_utils/drug_central/__init__.py
MrBearWithHisSword/KGQA-COVID
d7aa08d5892aab77e3e829f61d7cb6ba80cff009
[ "BSD-3-Clause" ]
340
2020-03-22T19:04:18.000Z
2022-03-30T14:55:42.000Z
kg_covid_19/transform_utils/drug_central/__init__.py
MrBearWithHisSword/KGQA-COVID
d7aa08d5892aab77e3e829f61d7cb6ba80cff009
[ "BSD-3-Clause" ]
26
2020-03-23T15:20:12.000Z
2021-09-07T16:57:30.000Z
from .drug_central import DrugCentralTransform __all__ = [ "DrugCentralTransform" ]
17.6
46
0.784091
7
88
9.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.147727
88
5
47
17.6
0.853333
0
0
0
0
0
0.224719
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
377084db60ebee117b24913239fec5ff9e73b737
2,613
py
Python
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
from pathlib import Path from aiogram_oop_framework.core.funcs import get_init_py class ProjectStructure: def __init__(self, project: 'Project'): self.root: Path = project.path / project.name self.directories = {'root': {'directory': self.root, 'tree': {}}} def add_dir_to_root(self, name: st...
34.381579
104
0.566781
304
2,613
4.700658
0.236842
0.115465
0.06648
0.046186
0.279916
0.249825
0.176347
0.176347
0.176347
0.176347
0
0
0.307692
2,613
75
105
34.84
0.789939
0.083046
0
0.188679
0
0
0.068653
0
0
0
0
0
0
1
0.150943
false
0
0.037736
0
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37744040390dced1c5df204c66d947e6161d822b
7,666
py
Python
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2016-10-03T10:20:02.000Z
2018-03-20T00:38:53.000Z
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2019-10-08T07:13:44.000Z
2019-10-08T07:13:46.000Z
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import os from bs4 import BeautifulSoup class Analyzer(object): def __init__(self): pass @staticmethod def get_page_count(html): soup = BeautifulSoup(html, 'html.parser') # <span style="color:#65645F;">共75661篇</span> ...
34.071111
114
0.499739
842
7,666
4.418052
0.192399
0.086559
0.045161
0.047043
0.49086
0.466935
0.415054
0.362366
0.332527
0.332527
0
0.020855
0.361988
7,666
224
115
34.223214
0.739726
0.034699
0
0.471698
0
0.006289
0.121682
0.007963
0
0
0
0
0
0
null
null
0.025157
0.012579
null
null
0.012579
0
0
0
null
0
0
0
0
0
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
37756f838d9a991c6fb09146913f58963f4cf285
3,149
py
Python
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
1
2019-03-27T10:30:54.000Z
2019-03-27T10:30:54.000Z
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
#Classifier 1------------------------------------------------------------- # author: Arun Ponnusamy # website: https://www.arunponnusamy.com # import necessary packages from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import cv2 import cvlib as cv class Gend...
33.5
117
0.659257
414
3,149
4.78744
0.335749
0.040363
0.090817
0.110999
0.258325
0.244198
0.221998
0.221998
0
0
0
0.050778
0.224516
3,149
93
118
33.860215
0.760852
0.158463
0
0
0
0
0.29962
0.274525
0
0
0
0
0
1
0.058824
false
0
0.098039
0
0.235294
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3775c014edc4cfe9bbf99059dbab03441eae21fe
3,389
py
Python
dnppy/convert/_extract_HDF_layer_data.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
__author__ = ['djjensen', 'jwely'] __all__ = ["_extract_HDF_layer_data"] import gdal import os def _extract_HDF_layer_data(hdfpath, layer_indexs = None): """ Extracts one or more layers from an HDF file and returns a dictionary with all the data available in the HDF layer for use in further format conver...
33.89
154
0.691059
475
3,389
4.764211
0.397895
0.048608
0.046399
0.058772
0.188688
0.175873
0.175873
0.114892
0.114892
0
0
0.06448
0.208321
3,389
99
155
34.232323
0.778979
0.594571
0
0
0
0.037037
0.153907
0.106551
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
377821387853d45c0c5a9841c83920bc6e3f180e
1,964
py
Python
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
50
2020-09-11T07:57:49.000Z
2022-03-27T06:37:37.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
15
2020-09-11T12:54:34.000Z
2022-01-13T08:38:38.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
12
2020-10-01T07:29:53.000Z
2021-09-18T11:00:49.000Z
import torch from torch import nn from torchvision.models.video.resnet import VideoResNet, BasicBlock, Conv2Plus1D, R2Plus1dStem model_urls = { "r2plus1d_34_8_ig65m": "https://github.com/moabitcoin/ig65m-pytorch/releases/download/v1.0.0/r2plus1d_34_clip8_ig65m_from_scratch-9bae36ae.pth", # noqa: E501 ...
44.636364
171
0.682281
260
1,964
4.961538
0.4
0.069767
0.065116
0.074419
0.293798
0.277519
0.24186
0.24186
0.24186
0.24186
0
0.116592
0.205193
1,964
43
172
45.674419
0.709801
0.1222
0
0
0
0.142857
0.330029
0.026239
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3778b68ea4424c5dd5d977058233e58cf1a45c2c
2,213
py
Python
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import datetime from .geo import utc_to_localtime import gpxpy import pynmea2 """ Methods for parsing gps data from various file format e.g. GPX, NMEA, SRT. """ def get_lat_lon_time_from_gpx(gpx_file, local_time=True): """ Read location and time stamps from a track in a GPX file. Re...
27.6625
88
0.612743
316
2,213
4.21519
0.297468
0.027027
0.031532
0.024775
0.554054
0.554054
0.509009
0.509009
0.509009
0.509009
0
0.003839
0.293719
2,213
79
89
28.012658
0.848369
0.219611
0
0.463415
0
0
0.013863
0
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37795fd108033032ce115714c706b125640ba1c5
1,685
py
Python
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
import logging import time import inflection from .events import Event, RedisEvent logger = logging.getLogger(__name__) class EventConsumer(object): def __init__(self, streams, group, consumer_name, db, consume_from_end=False): """ An event consumer :param streams: List of stream names ...
31.203704
121
0.563798
206
1,685
4.480583
0.354369
0.032503
0.032503
0.028169
0.045504
0
0
0
0
0
0
0.009964
0.344807
1,685
53
122
31.792453
0.826087
0.106231
0
0
0
0
0.033793
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3779f2dd899eee84d4f004b19e2e63ab076d4e73
222
py
Python
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def check(lst, k): d = set() for n in lst: if k - n in d: return True d.add(n) return False print(check([10, 15, 3, 7], 17)) print(check([10, 15, 3, 7], 11))
18.5
32
0.495495
40
222
2.75
0.625
0.054545
0.218182
0.254545
0.290909
0.290909
0
0
0
0
0
0.114865
0.333333
222
12
33
18.5
0.628378
0.094595
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0.222222
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
377d93c2d0000d6272f263fea0646a212046d38a
10,124
py
Python
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Remove `managed = False` lines if you wish to allow Django to create, modify, and delet...
36.157143
120
0.669696
1,117
10,124
5.880036
0.266786
0.045067
0.065773
0.087698
0.355664
0.234013
0.193666
0.104903
0.06821
0.06821
0
0.011512
0.184907
10,124
279
121
36.286738
0.784416
0.116555
0
0.256281
1
0
0.124664
0.011323
0
0
0
0
0
1
0.045226
false
0.005025
0.045226
0.035176
0.643216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
377f8c4605d4ec6f7f0742bad0873d2139c831e7
1,845
py
Python
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
import os from xlrd import open_workbook import pandas as pd from grimsel_h.auxiliary.aux_general import print_full, expand_rows, read_xlsx_table def get_chp_profiles(target_dir=None): print('Directory get_chp_profiles:', os.getcwd()) fn = 'heat_demand_profiles_20170614.xlsx' dct = '../.....
36.9
122
0.657453
263
1,845
4.262357
0.334601
0.304193
0.336307
0.080285
0.269402
0.260482
0.167707
0.1124
0.1124
0.1124
0
0.02059
0.210298
1,845
50
123
36.9
0.748799
0.014634
0
0.064516
0
0
0.118213
0.042421
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.16129
0.064516
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
378287ed5b55d57f24765ff2c9e50d71d392d932
3,438
py
Python
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
3
2020-06-05T18:09:02.000Z
2021-06-10T20:06:02.000Z
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
import csv import re import collections from tts.text_processor import RESOURCE_PATH class GetStringType(object): """ Get String type if it is Date, Time, Number Number formats which are handled are below 1. Date (12.12.12 or 12/12/12 or 12-12-12) 2. Time (12:12:12 or 12:12) 3....
30.157895
98
0.559046
436
3,438
4.188073
0.192661
0.043812
0.026287
0.035049
0.372399
0.372399
0.215772
0.215772
0.215772
0.215772
0
0.03838
0.317917
3,438
113
99
30.424779
0.740299
0.111402
0
0.240506
0
0
0.048813
0.019726
0
0
0
0
0
1
0.113924
false
0
0.050633
0
0.316456
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37832b3e73a3242cb9e73840ccdaa64e7234eb27
37
py
Python
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
496
2020-03-10T11:29:19.000Z
2022-03-30T04:52:08.000Z
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
34
2020-03-12T15:03:02.000Z
2022-01-10T18:46:05.000Z
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
125
2020-03-11T21:50:37.000Z
2022-03-16T08:24:58.000Z
from .simclr import TransformsSimCLR
18.5
36
0.864865
4
37
8
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
0
1
0
1
0
0
6
37862852a9d332b6eed256faa5e15ad4b5cc2386
100
py
Python
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="example", version="0.1", author="mulh8377", )
14.285714
28
0.64
12
100
5.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0.075949
0.21
100
7
29
14.285714
0.734177
0
0
0
0
0
0.178218
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
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
0
0
0
0
0
3
378664d0639f1190d52a650c3361c0ffe40a077a
1,029
py
Python
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
156
2020-08-17T19:05:52.000Z
2022-03-29T13:40:42.000Z
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
11
2020-08-17T12:42:52.000Z
2021-12-12T09:53:02.000Z
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
5
2020-09-12T03:12:50.000Z
2022-02-17T00:12:48.000Z
import pytest import numpy as np # type: ignore from uniplot.param_initializer import validate_and_transform_options from uniplot.multi_series import MultiSeries def test_passing_simple_list(): series = MultiSeries(ys=[1, 2, 3]) options = validate_and_transform_options(series=series) assert options.inte...
32.15625
83
0.727891
134
1,029
5.320896
0.320896
0.077139
0.140252
0.189341
0.612903
0.57223
0.57223
0.57223
0.57223
0.392707
0
0.041379
0.154519
1,029
31
84
33.193548
0.778161
0.011662
0
0.181818
0
0
0.014778
0
0
0
0
0
0.136364
1
0.181818
false
0.045455
0.181818
0
0.363636
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
378755b6e4a6d1df5540651db412b6b7152b2607
2,055
py
Python
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
#!/Python27/python from ..database.database import Database # A class used for song insertion class Song: def __init__(self, title, production_year, cd, singer, composer, song_writer): self.title = title self.production_year = production_year self.cd = cd self.singer = singer ...
35.431034
112
0.552798
218
2,055
5.105505
0.348624
0.040431
0.048518
0.016173
0.156334
0.127583
0.127583
0.127583
0.127583
0.127583
0
0.001496
0.349392
2,055
57
113
36.052632
0.830965
0.163504
0
0.054054
0
0.027027
0.18538
0
0
0
0
0
0
1
0.054054
false
0
0.027027
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
378979218302d31b75d0e2659058fd19f5495d01
1,237
py
Python
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
4
2018-01-05T13:44:29.000Z
2021-09-30T17:08:15.000Z
NeoAnalysis_Py2.7/NeoAnalysis/readio/h5_io.py
neoanalysis/NeoAnalysis
c5f25b71e16997f3a05f70b1eead11f99a3b7e2b
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
import h5py as hp import numpy as np import re def h5_io(filename, spike_to_load, analog_to_load): spikes = dict() analogs = dict() events = dict() comments = dict() with hp.File(filename,'r') as f: for key in f.keys(): if key=='events': events['times'] = f[key]['...
44.178571
98
0.514956
156
1,237
3.916667
0.25641
0.12766
0.052373
0.065466
0.248773
0.186579
0.186579
0.094926
0.094926
0.094926
0
0.002454
0.341148
1,237
28
99
44.178571
0.747239
0
0
0.071429
0
0
0.105816
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37898a9927617dbd9f99330a279d83944466a398
142
py
Python
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
from src.folder_0.file_0 import func_sum def func_sum_product(a,b,c,d): e = func_sum(a, b) f = func_sum(c, d) return e * f
15.777778
40
0.619718
30
142
2.7
0.566667
0.345679
0
0
0
0
0
0
0
0
0
0.019048
0.260563
142
9
41
15.777778
0.752381
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
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
2
378a6f60c85208588264fa4b0e5b9304df902135
1,601
py
Python
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
import time import network_manager from components import Heartbeat, LogManager from message_bus import MessageBus import logger class Gateway: def __init__(self): self._message_bus = MessageBus(self._on_message) self._components = [] self._component_dict = {} def add_component(self...
28.087719
91
0.610868
175
1,601
5.297143
0.348571
0.064725
0.06041
0.084142
0.228695
0.228695
0.148867
0
0
0
0
0.0045
0.306059
1,601
56
92
28.589286
0.829883
0.049344
0
0.186047
0
0
0.00527
0
0
0
0
0
0
1
0.116279
false
0
0.116279
0
0.255814
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
378b8c1c8a129943980f58b79ee2233ffe6b0bae
3,439
py
Python
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
21
2022-02-15T10:11:54.000Z
2022-03-24T17:44:29.000Z
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
null
null
null
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
3
2022-02-22T11:11:43.000Z
2022-03-17T17:58:44.000Z
import os from functools import partial import numpy as np from ding.envs import SyncSubprocessEnvManager from ding.utils.default_helper import deep_merge_dicts from easydict import EasyDict from tqdm import tqdm from haco.DIDrive_core.data import CarlaBenchmarkCollector, BenchmarkDatasetSaver from haco.DIDrive_core....
30.433628
105
0.639139
396
3,439
5.310606
0.363636
0.038516
0.060865
0.036139
0.099382
0.038992
0.038992
0
0
0
0
0.014596
0.262867
3,439
112
106
30.705357
0.81499
0.009014
0
0.097826
0
0
0.036994
0
0
0
0
0
0
1
0.032609
false
0
0.119565
0.01087
0.173913
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
378fb80fb53ae0d7cd227f1351a2926e938d591b
25,206
py
Python
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
#!/usr/bin/env python #https://github.com/kislyuk/argcomplete#synopsis import argcomplete import argparse import hashlib import json import os import re import socket import sqlite3 import sys import time from pathlib import Path from tabulate import tabulate from datetime import datetime # pip install python-dateutil...
37.620896
165
0.568119
2,986
25,206
4.649364
0.188881
0.015559
0.026939
0.00958
0.173522
0.116473
0.091047
0.070302
0.056472
0.037744
0
0.016633
0.31068
25,206
669
166
37.67713
0.782388
0.131318
0
0.195817
0
0.001901
0.284954
0.031396
0.001901
0
0
0.00299
0
1
0.043726
false
0.005703
0.057034
0
0.197719
0.060837
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379060b8d18463c11ec809578384596203b2dae7
2,381
py
Python
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019, Sprout Development Team # Distributed under the terms of the Apache License 2.0 import hashlib import secrets import string import base64 import hmac _allowed = (string.digits + string.ascii_lowercase + string.ascii_uppercase) def get_random_str(): ...
29.7625
66
0.613608
280
2,381
5.1
0.342857
0.039216
0.046218
0.056723
0.142857
0.142857
0.142857
0.142857
0.142857
0.142857
0
0.023015
0.270055
2,381
79
67
30.139241
0.798619
0.048299
0
0.096774
0
0
0.078284
0.01946
0
0
0
0
0
1
0.16129
false
0.145161
0.080645
0.032258
0.467742
0
0
0
0
null
0
0
0
0
0
0
0
0
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
3790bcbb0c53fecdcdd2285bc764dfa70337dd15
139
py
Python
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
3
2019-03-07T00:33:36.000Z
2020-01-16T02:32:52.000Z
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
null
null
null
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
1
2019-11-12T10:08:32.000Z
2019-11-12T10:08:32.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ __init__ for adf-build """
19.857143
73
0.726619
20
139
4.85
1
0
0
0
0
0
0
0
0
0
0
0.042017
0.143885
139
6
74
23.166667
0.773109
0.906475
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3791a86fa50aa3b089136b2339b5891bf69c1ce0
13,959
py
Python
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
5
2019-10-29T21:59:22.000Z
2021-11-08T12:00:24.000Z
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
109
2020-01-06T10:28:09.000Z
2022-03-25T19:52:40.000Z
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-11T16:31:04.000Z
2020-11-24T12:23:17.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
38.243836
134
0.624328
1,622
13,959
5.157213
0.107275
0.072325
0.088703
0.06838
0.757442
0.722295
0.691333
0.67101
0.664913
0.642439
0
0.000296
0.27373
13,959
364
135
38.348901
0.824818
0.376889
0
0.524862
1
0
0.076172
0.009115
0
0
0
0
0
1
0.154696
false
0.005525
0.027624
0
0.276243
0
0
0
0
null
0
0
0
0
1
0
0
0
1
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
3
3791e586a9b8f892c8036023d9ce18df5f8e863a
2,499
py
Python
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 10 04:24:41 2021 @author: Saif """ import numpy as np from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D from keras.layers import Dropout, Flatten, Dense from keras.preprocessing import image ...
34.232877
124
0.666667
341
2,499
4.771261
0.307918
0.108175
0.044253
0.068838
0.476951
0.476951
0.476951
0.426552
0.303626
0.303626
0
0.046891
0.214886
2,499
72
125
34.708333
0.782365
0.229692
0
0.289474
0
0
0.043621
0
0
0
0
0
0
1
0.052632
false
0
0.184211
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3792a6aef987fb5eec6a52d26d7f616c91150edf
452
py
Python
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
null
null
null
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
3
2017-08-19T14:57:49.000Z
2017-08-19T14:58:12.000Z
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
1
2019-10-22T00:50:37.000Z
2019-10-22T00:50:37.000Z
# -*- coding: utf-8 -*- """Test functions that get data.""" import os import unittest from bio2bel_uniprot import get_mappings_df HERE = os.path.abspath(os.path.dirname(__file__)) URL = os.path.join(HERE, 'test.tsv') class TestGet(unittest.TestCase): """Test getting data.""" def test_get_mappings(self): ...
21.52381
50
0.672566
64
452
4.578125
0.5625
0.112628
0.088737
0
0
0
0
0
0
0
0
0.008108
0.181416
452
20
51
22.6
0.783784
0.238938
0
0
0
0
0.02439
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
37940bf72d979b6ddcf361e5f37474a801422c7b
6,520
py
Python
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
17
2019-02-04T12:58:10.000Z
2021-07-16T12:36:23.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
201
2018-08-07T19:39:10.000Z
2022-03-15T00:20:24.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
5
2019-06-07T15:45:34.000Z
2021-10-13T18:49:52.000Z
import re import pytest from alfasim_sdk._internal.types import MultipleReference from alfasim_sdk._internal.types import Reference @pytest.mark.parametrize("expression_type", ["enable_expr", "visible_expr"]) def test_enable_expr_and_visible_expr(expression_type): from alfasim_sdk._internal.types import String ...
30.900474
135
0.661963
815
6,520
5.195092
0.146012
0.09589
0.094473
0.135805
0.608644
0.567785
0.392537
0.268068
0.258385
0.213982
0
0.006009
0.208742
6,520
210
136
31.047619
0.811204
0
0
0.293333
0
0.013333
0.258436
0
0
0
0
0
0.053333
1
0.073333
false
0.026667
0.1
0
0.193333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3794ba9a44060b3cd6e66adb831807d3aaf08691
6,153
py
Python
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
import unittest import numpy as np from scipy.integrate import cumulative_trapezoid from numpy.testing import assert_array_equal from math_signals.math_relation import Relation from math_signals.defaults.base_structures import BaseXY def pre_integr(x, y): return BaseXY(x=x[1:], y=np.ones(x[1:].size)) ...
39.191083
102
0.568178
874
6,153
3.74714
0.141876
0.070534
0.102595
0.014656
0.458321
0.342595
0.290382
0.214351
0.200611
0.200611
0
0.069203
0.290752
6,153
156
103
39.442308
0.681256
0.021778
0
0.170732
0
0
0.012474
0
0
0
0
0
0.203252
1
0.105691
false
0
0.04878
0.00813
0.186992
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3794d2cf81706b3a4b46cdb0956d6d92b0823772
4,910
py
Python
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
null
null
null
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
54
2021-04-28T05:14:45.000Z
2021-12-10T09:14:28.000Z
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
1
2022-03-09T16:09:25.000Z
2022-03-09T16:09:25.000Z
from copy import deepcopy from nglp.lib.seamless import Construct, SeamlessException class OpenAPISupport(object): DEFAULT_OPENAPI_TRANS = { # The default translation from our coerce to openapi is {"type": "string"} # if there is no matching entry in the trans dict here. "unicode": {"type...
46.761905
222
0.578411
506
4,910
5.476285
0.266798
0.090942
0.057741
0.043306
0.223385
0.148322
0.120895
0.110429
0.048358
0.048358
0
0.001395
0.270265
4,910
104
223
47.211538
0.771979
0.185336
0
0.03125
0
0
0.244142
0.014109
0
0
0
0
0
1
0.046875
false
0
0.03125
0.015625
0.140625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37962a94c4bab8df8fabf49b0401e28ebeb74d78
110
py
Python
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
1
2020-04-13T04:46:54.000Z
2020-04-13T04:46:54.000Z
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
from bot.DataBase.Logic import Page, MainText def run_migrate(): Page.migrate() MainText.migrate()
13.75
45
0.709091
14
110
5.5
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.181818
110
7
46
15.714286
0.855556
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.25
0
0.5
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
1
1
0
0
0
0
0
0
4
379775ff8a53d3afa965e36ca834f885ac3d5ba5
1,919
py
Python
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
62
2017-01-15T10:29:44.000Z
2022-03-12T07:25:42.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
22
2017-01-13T09:54:44.000Z
2018-07-23T23:41:24.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
29
2017-01-10T11:15:18.000Z
2021-05-14T04:23:39.000Z
#!/usr/bin/env python # # Copyright (c) 2018 Cisco and/or its affiliates # import sys import requests from argparse import ArgumentParser from requests.auth import HTTPBasicAuth def send_request(protocol, host, port, username, password): '''Generate a simple RESTCONF request. ''' # url = "{}://{}:{}/restc...
36.207547
163
0.615425
211
1,919
5.511848
0.492891
0.034394
0.058469
0.034394
0.135856
0.096303
0.096303
0.096303
0.096303
0.096303
0
0.009682
0.246483
1,919
52
164
36.903846
0.794606
0.147473
0
0
0
0
0.260308
0.078154
0
0
0
0
0
1
0.027778
false
0.111111
0.111111
0
0.138889
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
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
37990b900d049794f3a0a486dc1c773935bc6ed9
584
py
Python
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
def even_odd(A): pe, po = 0, len(A) - 1 while pe < po: if A[pe] % 2 == 0: pe += 1 else: # if it pe hits an odd, swap with the one at po. if this po bears 1) an even value, next round pe will move right and therefore skip to the next. 2) an odd value, then next round it wi...
36.5
302
0.556507
108
584
2.916667
0.509259
0.038095
0.050794
0
0
0
0
0
0
0
0
0.046154
0.332192
584
15
303
38.933333
0.761538
0.493151
0
0
0
0
0.027211
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379a96fa891f104347b8acc6017c208b33cfdbbb
4,072
py
Python
sdks/python/apache_beam/tests/pipeline_verifiers.py
chamikaramj/beam
7c710360868d784c5b6bf99b8341748807b08101
[ "Apache-2.0" ]
1
2019-05-24T14:03:58.000Z
2019-05-24T14:03:58.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2017-04-24T20:32:25.000Z
2022-03-29T12:59:55.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2019-03-04T02:12:46.000Z
2021-08-10T20:29:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.933333
75
0.747299
560
4,072
5.271429
0.328571
0.0271
0.020325
0.01084
0.176152
0.109756
0.109756
0.090786
0.057588
0.057588
0
0.001492
0.176817
4,072
119
76
34.218487
0.879177
0.370334
0
0.131148
0
0
0.080208
0
0
0
0
0
0
1
0.163934
false
0
0.131148
0.016393
0.409836
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379c7664f3196827528f606b799c51a4a8796797
450
py
Python
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
""" Base model class for User """ class UserModel(): def __init__(self, name:str, roles:list): """ Creates a user with given name and role :param name : name as string is the user name :param role : role as list of role """ self.__name = name self.__roles = r...
22.5
57
0.575556
58
450
4.258621
0.465517
0.097166
0.11336
0
0
0
0
0
0
0
0
0
0.335556
450
20
58
22.5
0.826087
0.324444
0
0.2
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0
0.2
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
379d365c3b72852583302df9254d3e745ae62646
4,975
py
Python
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
import pygame, random from pygame.locals import * SCREEN_WIDTH = 400 SCREEN_HEIGTH = 800 SPEED = 10 GRAVITY = 1 GAME_SPEED = 10 X = 0 Y = 1 GROUND_WIDTH = 2 * SCREEN_WIDTH GROUND_HEIGHT = 100 PIPE_WIDTH = 80 PIPE_HEIGHT = 500 PIPE_GAP = 200 class Bird(pygame.sprite.Sprite): def __init__(self): pygame....
26.604278
102
0.637186
659
4,975
4.629742
0.200303
0.047198
0.034415
0.048181
0.408391
0.361193
0.300229
0.27532
0.202229
0.145854
0
0.018037
0.242211
4,975
186
103
26.747312
0.791247
0.057487
0
0.222222
0
0
0.037639
0.034431
0
0
0
0
0
1
0.076923
false
0
0.017094
0.008547
0.136752
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379d69c530c32691ab9a0100007cee3fa8cae31c
2,487
py
Python
GolVe_Classification/GolVe+lr/train_model.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.datasets.base import Bunch import os import pickle from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cross_validation import train_test_split import random from collections import defaultdict from sklearn.linear_model import LogisticRegressionCV...
36.573529
136
0.644552
334
2,487
4.613772
0.407186
0.05451
0.051914
0.057106
0.215445
0.215445
0.186892
0.186892
0.186892
0.186892
0
0.0128
0.24608
2,487
67
137
37.119403
0.809067
0.003619
0
0.166667
0
0.066667
0.195477
0.165994
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379d9ac43e5f8a9e61641e45c339fb8f78a1a4d0
3,136
py
Python
homeassistant/components/sensor/wink.py
TastyPi/home-assistant
aa1e4c564cb8660bf6b7637bc25317ee58869214
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Wink sensors. For more details about this platform, please refer to the documentation at at https://home-assistant.io/components/sensor.wink/ """ import logging from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.entity import Entity from homeassistant.components.wink import WinkDe...
32.666667
79
0.638712
365
3,136
5.323288
0.309589
0.065878
0.025733
0.028821
0.210499
0.198147
0.160062
0
0
0
0
0.002141
0.255421
3,136
95
80
33.010526
0.82955
0.162628
0
0.2
0
0
0.050933
0
0
0
0
0
0
1
0.116667
false
0
0.1
0
0.316667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
379e0ba70961375d128909802ed03cfc631262e2
2,925
py
Python
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
""" TencentBlueKing is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaSCommunity Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the...
28.676471
93
0.631111
359
2,925
5.089136
0.440111
0.032841
0.021894
0.021346
0.073344
0.073344
0.073344
0.073344
0.073344
0.073344
0
0.033363
0.231453
2,925
101
94
28.960396
0.779359
0.270769
0
0.16
0
0
0.073255
0.030482
0
0
0
0
0
1
0.2
false
0
0.1
0.06
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
379e75e6e2f4c60b9d24105610450fe718d5528e
7,552
py
Python
testing/unit-tests/python/python_database_entry_test.py
ncorgan/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
4
2017-06-10T13:21:44.000Z
2019-10-30T21:20:19.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
12
2017-04-05T11:13:34.000Z
2018-06-03T14:31:03.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
2
2019-01-22T21:02:31.000Z
2019-10-30T21:20:20.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # import pkmn import os import sys import unittest class database_entry_test(unittest.TestCase): ...
39.957672
79
0.626589
863
7,552
5.339513
0.236385
0.159505
0.121528
0.052083
0.511936
0.49566
0.416016
0.356988
0.327474
0.276476
0
0.017515
0.274232
7,552
188
80
40.170213
0.823207
0.061838
0
0.267123
0
0
0.012726
0
0
0
0
0
0.520548
1
0.020548
false
0
0.027397
0
0.054795
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
37a04284c1db8c872e8f613b6e64d74da4d5e0ad
4,303
py
Python
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
import logging from .node import Node from .events import NodeConnectedEvent, NodeDisconnectedEvent log = logging.getLogger('lavalink') class NodeManager: def __init__(self, lavalink, regions: dict): self._lavalink = lavalink self.nodes = [] self.regions = regions or { 'asia'...
30.51773
121
0.565884
515
4,303
4.609709
0.275728
0.053075
0.012637
0.021062
0.151222
0.119629
0.119629
0.073294
0.073294
0.073294
0
0.000691
0.326981
4,303
140
122
30.735714
0.819061
0.159424
0
0.125
0
0
0.073065
0
0
0
0
0.014286
0
1
0.125
false
0.027778
0.041667
0
0.319444
0
0
0
0
null
0
0
0
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
37a06a46bd7dbc7b3904bddfec3b2e850b11c9b4
518
py
Python
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
import json import pytest from oandaV20helper.endpoints.pricing import to_dom class TestPricing: @pytest.mark.parametrize("num, filename", [ (1, 'test_pricing01.json'), (3, 'test_pricing02.json'), (15, 'test_pricing03.json') ]) def test_to_dataframe(self, num, filename): ...
22.521739
51
0.606178
62
518
4.725806
0.645161
0.03413
0
0
0
0
0
0
0
0
0
0.03125
0.258687
518
22
52
23.545455
0.731771
0.11583
0
0
0
0
0.156044
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37a25acc37f7d6522679e3d2bfe44a22a8595cc0
2,364
py
Python
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
import logging from pathlib import Path from utsc.core import Util class PropogateHandler(logging.Handler): def emit(self, record): logging.getLogger(record.name).handle(record) class MockFolders: class ConfDir: def __init__(self, path: Path, app_name: str) -> None: self.dir = pa...
38.129032
88
0.648054
321
2,364
4.588785
0.242991
0.057026
0.044807
0.067889
0.634759
0.466395
0.274949
0.092329
0.092329
0.092329
0
0.001109
0.236887
2,364
61
89
38.754098
0.81541
0.198393
0
0
0
0
0.155072
0.099841
0
0
0
0
0
1
0.078947
false
0
0.078947
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37a39ff3342130319876ca4904644fe3206688ea
3,889
py
Python
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import number from esphome.const import ( CONF_ADDRESS, CONF_ID, CONF_MAX_VALUE, CONF_MIN_VALUE, CONF_MULTIPLY, CONF_STEP, ) from .. import ( MODBUS_WRITE_REGISTER_TYPE, add_modbus_base_propertie...
30.865079
92
0.674466
489
3,889
5.03681
0.259714
0.073082
0.045473
0.030857
0.139667
0.095818
0.086886
0.086886
0.065773
0
0
0.023458
0.232708
3,889
125
93
31.112
0.801944
0.021599
0
0.037383
0
0
0.070752
0.006312
0
0
0
0
0
1
0.018692
false
0
0.056075
0
0.093458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37a3c304b781c6585c4f8031de43d9bb105b23e7
306
py
Python
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
8
2018-11-28T15:13:26.000Z
2021-10-08T18:34:28.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
4
2018-03-28T19:26:27.000Z
2018-04-07T03:02:15.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
2
2019-12-12T09:36:48.000Z
2020-04-23T08:26:22.000Z
#!/usr/bin/env python import sys try: file = open("log.txt","r") except OSError: pass i=0 for line in file: i+=1 if line.find("CROSSOVER ")!=-1: array = line.split(" ") if (float(array[3]) < float(array[1])) and (float(array[3]) < float(array[2])): print(line)
20.4
87
0.54902
47
306
3.574468
0.659574
0.238095
0.130952
0.190476
0.25
0
0
0
0
0
0
0.030702
0.254902
306
15
88
20.4
0.70614
0.065359
0
0
0
0
0.066434
0
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
0.083333
0
0
0
null
1
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
1
0
0
0
0
0
3
37a850ace9c07a91ce0bd72124b829282874be9a
3,827
py
Python
src/training/scheduler.py
jplasser/cloob
8a16009440f8e8eb9acba8fbb046180719003b28
[ "MIT" ]
44
2021-10-30T06:20:59.000Z
2022-03-29T10:26:11.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
9
2021-11-03T04:23:49.000Z
2022-03-31T15:48:17.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
3
2021-12-29T22:08:25.000Z
2022-02-10T19:27:45.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
43.488636
117
0.679906
551
3,827
4.631579
0.255898
0.040752
0.037618
0.023511
0.672806
0.672806
0.672806
0.631661
0.631661
0.631661
0
0.016393
0.23491
3,827
87
118
43.988506
0.855191
0.630781
0
0.521739
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.130435
0
0.608696
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
1
0
0
2
37ad7164ae63d5ffb588e864b6d5d0bdac217918
9,305
py
Python
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * def CoA_Cropland_URL_helper(build_url, config, args): """This helper function uses the "build_url" input from flowbyactivity.py, which is a base url for coa cropla...
58.522013
153
0.629339
1,223
9,305
4.638594
0.29027
0.014807
0.027499
0.011458
0.242729
0.230742
0.142077
0.110347
0.110347
0.110347
0
0.012188
0.232886
9,305
158
154
58.892405
0.782572
0.284901
0
0.216981
0
0.018868
0.369268
0.051777
0
0
0
0
0
1
0.028302
false
0
0.037736
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37ae25cb640514b4b69d9fbcf3fe21ab2db9d1d8
4,762
py
Python
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
from django.db import IntegrityError from rest_framework.authentication import TokenAuthentication, SessionAuthentication from rest_framework.response import Response import django.shortcuts as shortcuts from rest_framework import ( status, viewsets, serializers as drf_serializers, permissions as drf_pe...
37.203125
201
0.666107
512
4,762
6.082031
0.25
0.024727
0.034682
0.038536
0.331407
0.316956
0.272319
0.245986
0.245986
0.245986
0
0.004096
0.230995
4,762
127
202
37.496063
0.846259
0.337463
0
0.057143
0
0
0.036999
0
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.442857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37ae7793ffa7e66b7097c469d3d38ac44ab471b7
804
py
Python
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import sys import os #grab the banner def grab_banner(ip_address,port): try: s=socket.socket() s.connect((ip_address,port)) banner = s.recv(1024) print ip_address + ':' + banner except: return def checkVulns(banner): if len(sys.argv) >=...
25.125
48
0.553483
107
804
4.018692
0.504673
0.104651
0.090698
0.088372
0.106977
0
0
0
0
0
0
0.051565
0.324627
804
31
49
25.935484
0.740331
0.038557
0
0
0
0
0.07393
0
0
0
0
0
0
0
null
null
0
0.107143
null
null
0.107143
0
0
0
null
0
0
0
0
0
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
37aec59f9b17b9d32ce9730876f6d8d46a79c1b0
478
py
Python
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
# Simple character prediction model (stateful) model = keras.models.Sequential([ keras.layers.GRU(128, return_sequences=True, stateful=True, dropout=0.2, recurrent_dropout=0.2, batch_input_shape=[batch_size, None, max_id]), keras.layers.GRU(128, return_sequences=True, stateful=True, ...
43.454545
62
0.669456
59
478
5.271186
0.491525
0.141479
0.115756
0.109325
0.482315
0.482315
0.482315
0.482315
0.482315
0.482315
0
0.037037
0.209205
478
11
63
43.454545
0.785714
0.09205
0
0.222222
0
0
0.016548
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b007b20e0af00196c2315cf92bfae9d58c871d
12,681
py
Python
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
import os from xml.etree import ElementTree from scipy.spatial import distance as dist import numpy as np from time import sleep import cv2 from PIL import Image, ImageDraw import colorsys def order_points(ptsArr): # pt_a, pt_b: out of the 2 left X, a is thr top one and b is the bottom. # pt_c, pt_d: out of ...
56.865471
439
0.59459
1,553
12,681
4.777849
0.213136
0.050809
0.090566
0.096092
0.392453
0.30566
0.179919
0.109973
0.100809
0.086792
0
0.008792
0.26449
12,681
223
440
56.865471
0.786748
0.314959
0
0.171053
0
0
0.149236
0.05608
0
0
0
0
0
1
0.006579
false
0
0.052632
0
0.065789
0.046053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b0b5325153d70a2933be3c3353f2d91d004e2d
194
py
Python
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
1
2021-04-26T14:32:52.000Z
2021-04-26T14:32:52.000Z
def translate_date(date:str): split_date = date.split(".") modified_date = split_date[2]+"-"+split_date[1]+"-"+split_date[0] return modified_date print(translate_date("19.05.2021"))
32.333333
69
0.695876
29
194
4.37931
0.482759
0.283465
0
0
0
0
0
0
0
0
0
0.064327
0.118557
194
6
70
32.333333
0.678363
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0.2
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
37b2a8a74db0c97f1c16318f9a8201defdfcd005
129
py
Python
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
from django.conf import settings def act_theme(request): return {'ACT_THEME': getattr(request, 'ACT_THEME', settings.THEME)}
32.25
71
0.75969
18
129
5.277778
0.611111
0.252632
0
0
0
0
0
0
0
0
0
0
0.116279
129
4
71
32.25
0.833333
0
0
0
0
0
0.138462
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
37b6eafa409acb5528b0f4f84a8bb707d55e196c
3,839
py
Python
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
13,935
2015-01-01T04:48:55.000Z
2022-03-30T02:02:42.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
848
2015-01-04T14:13:40.000Z
2022-03-04T02:29:44.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
4,077
2015-01-02T03:01:27.000Z
2022-03-27T12:06:40.000Z
# Copyright (c) 2006-2007 Open Source Applications Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.989583
109
0.655379
451
3,839
5.490022
0.470067
0.050889
0.044426
0.029079
0.051696
0
0
0
0
0
0
0.01164
0.261526
3,839
95
110
40.410526
0.861728
0.419901
0
0.093023
0
0
0.078322
0
0
0
0
0
0
1
0.139535
false
0
0.046512
0.069767
0.372093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b7d635ca3c11179e0de2c573fb71ee96d85d19
38,975
py
Python
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
##### # # Module name: dremail.com # Purpose: Manage email connections for dupReport # # Notes: # ##### # Import system modules import imaplib import poplib import email import quopri import base64 import re import datetime import time import smtplib import os from email.mime.multipart import MIMEMultipart from...
58.345808
245
0.556459
4,126
38,975
5.250606
0.189045
0.024003
0.037805
0.018095
0.236614
0.17753
0.148772
0.108198
0.084749
0.069886
0
0.015334
0.324003
38,975
667
246
58.433283
0.806885
0.23569
0
0.272138
0
0.008639
0.193717
0.017414
0
0
0
0
0
1
0.030238
false
0.015119
0.038877
0.00216
0.153348
0.00216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b838e0d54c247d6c2708be9b4641d2684a62fb
4,557
py
Python
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Brocade Communications Systems Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
28.841772
78
0.65745
501
4,557
5.798403
0.369261
0.02685
0.033735
0.045783
0.185198
0.17074
0.143201
0.11222
0.11222
0.098451
0
0.008816
0.253237
4,557
157
79
29.025478
0.844843
0.136054
0
0.311927
0
0
0.18052
0.006374
0
0
0
0
0
1
0.12844
false
0.027523
0.073395
0.082569
0.431193
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b92a6bf223f5761c53562b6e0bd7327e57e2bf
2,373
py
Python
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
2
2021-11-08T02:46:09.000Z
2021-11-08T09:41:00.000Z
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
from PyQt4 import QtCore, QtGui class UiWorld(QtGui.QWidget): """Qt widget representing the world """ def __init__(self, parent): super(UiWorld, self).__init__(parent) self.__last_point = None self.image = QtGui.QImage(800, 600, QtGui.QImage.Format_ARGB32) self.image.fill(Qt...
35.954545
73
0.581542
309
2,373
4.333333
0.313916
0.100822
0.038835
0.033607
0.348021
0.31068
0.271845
0.271845
0.271845
0.231516
0
0.01135
0.294564
2,373
65
74
36.507692
0.78853
0.094395
0
0.196078
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.019608
0
0.156863
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b9584c00e84d083226a073ff4103362f7643d1
7,215
py
Python
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
# -*- encoding: utf8 -*- import logging import re import socket import subprocess __all__ = [ 'RFComm' ] class RFCommNotConnected(BaseException) : pass class RFCommError(BaseException) : pass class RFComm : def __init__(self, bdaddr, port, timeout=5, encoding='utf-8') : self.logger = logging.g...
27.643678
151
0.537076
1,028
7,215
3.705253
0.131323
0.022053
0.070885
0.133893
0.551851
0.503807
0.501969
0.465739
0.446836
0.39958
0
0.024845
0.285932
7,215
260
152
27.75
0.71448
0.003049
0
0.475936
0
0.010695
0.107115
0.026856
0
0
0
0
0
1
0.106952
false
0.010695
0.02139
0.026738
0.203209
0.160428
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37ba68fb7f6a88c20de7da3f55c3be19e782456c
27,203
py
Python
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
null
null
null
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
103
2018-03-13T20:43:59.000Z
2021-02-06T19:27:16.000Z
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
1
2019-09-11T22:36:14.000Z
2019-09-11T22:36:14.000Z
from dateutil import parser from dateutil import relativedelta, tz from calendar import monthrange from six import text_type, binary_type, integer_types import datetime import string import collections import time '''Modified _ymd object that support format detection''' class _format_ymd(list): def __init__(self...
38.422316
117
0.396133
2,909
27,203
3.61155
0.111378
0.018275
0.017133
0.007615
0.326195
0.246811
0.194841
0.150771
0.128879
0.125071
0
0.02892
0.502996
27,203
708
118
38.422316
0.748151
0.09113
0
0.376
0
0
0.023551
0
0
0
0
0.001412
0.014
1
0.026
false
0.006
0.016
0.002
0.1
0.006
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
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
37bb688f46ffd73cd913e78b3be6c48784ad0dc1
10,517
py
Python
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
from vtk import vtkSplineWidget, vtkLineSource, vtkActor, vtkPolyDataMapper from numpy import linspace from math import pi, asin, sqrt, sin from scipy import interpolate import numpy as np # CODE REGIONS: # 1) Spline computing # 2) Spline redrawing # 3) Setters # 4) Getters # 5) Coordinates transformation # 6) Handle...
32.865625
102
0.625464
1,312
10,517
4.745427
0.166159
0.04176
0.039672
0.04433
0.379859
0.274655
0.146482
0.089945
0.082236
0.082236
0
0.010617
0.274603
10,517
319
103
32.968652
0.805479
0.127698
0
0.207729
0
0
0.00628
0
0
0
0
0
0
1
0.188406
false
0.004831
0.024155
0.062802
0.285024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37bb9c548de28b45dc95933c0395c9827f5a0ea9
679
py
Python
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
from ._vault import Vault from ._vault import vault from .exceptions import SecretMissingError from .exceptions import CastError from .exceptions import CastHandlerMissingError from .secret_sources import FileSecretSource from .secret_sources import EnvironmentVariableSecretSource from .preprocessors import base64prepr...
25.148148
59
0.792342
55
679
9.6
0.309091
0.079545
0.113636
0.075758
0.083333
0
0
0
0
0
0
0.013769
0.14433
679
26
60
26.115385
0.895009
0
0
0
0
0
0.237113
0.079529
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
37bc562d644920ed8a17d263dab7566987d50ba4
1,054
py
Python
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
1
2018-07-10T17:08:17.000Z
2018-07-10T17:08:17.000Z
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter as ADHF import sys import csv def readHomologyFromEnsemble(data): res = list() isHeader = True for line in csv.reader(data, delimiter=','): if isHeader: isHeader = False continue ...
23.422222
76
0.627135
127
1,054
5.102362
0.677165
0
0
0
0
0
0
0
0
0
0
0.006345
0.252372
1,054
44
77
23.954545
0.81599
0
0
0
0
0
0.115505
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
37c1663589684a97815ff0fdc370dc7704b856ea
7,534
py
Python
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
5
2016-03-13T01:57:09.000Z
2021-10-02T00:22:10.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
1
2021-10-31T05:15:54.000Z
2021-10-31T05:15:54.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
2
2016-05-19T12:38:35.000Z
2016-11-27T20:01:24.000Z
#!/usr/bin/env python """warcextract - dump warc record context to directory""" import os import sys import os.path import uuid import mimetypes import shlex from optparse import OptionParser from contextlib import closing from urlparse import urlparse from hanzo.warctools import ArchiveRecord, WarcRecord from hanz...
34.559633
150
0.599151
903
7,534
4.853821
0.229236
0.028747
0.031942
0.013689
0.164043
0.113849
0.07164
0.022815
0.022815
0.022815
0
0.006525
0.288028
7,534
217
151
34.718894
0.810589
0.01699
0
0.141026
0
0
0.089473
0.017023
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.083333
0
0
0
null
0
0
0
0
0
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
37c285e9e7b95a28d005834ffa6baf7dadf6349d
3,017
py
Python
twilio/rest/resources/task_router/reservations.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
from .. import NextGenInstanceResource, NextGenListResource class Reservation(NextGenInstanceResource): """ A Reservation resource. See the `TaskRouter API reference <https://www.twilio.com/docs/taskrouter/tasks#reservation>_` for more information. .. attribute:: sid The unique ID o...
35.081395
77
0.668213
355
3,017
5.63662
0.278873
0.014993
0.029985
0.034983
0.593703
0.585707
0.566717
0.566717
0.534733
0.534733
0
0
0.272788
3,017
85
78
35.494118
0.912033
0.754392
0
0
0
0
0.029056
0
0
0
0
0
0
1
0.222222
false
0
0.111111
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
1
0
0
0
0
0
0
0
1
37c5b7a57373382792f04fb19c487676bd6c5d39
12,537
py
Python
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2020-10-14T03:57:52.000Z
2021-09-23T13:34:03.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
1
2021-06-04T10:34:32.000Z
2021-06-07T04:54:35.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2021-02-23T07:05:31.000Z
2021-09-08T19:48:57.000Z
"""This script creates the patched dataset""" import sys import glob import json from tqdm import tqdm import numpy as np from PIL import Image import multiprocessing from datetime import datetime from joblib import Parallel, delayed from scipy.interpolate import interp1d from scipy.ndimage import generic_filter from ...
38.457055
126
0.582755
1,510
12,537
4.587417
0.170199
0.043886
0.03176
0.030027
0.325393
0.265483
0.228815
0.187383
0.156633
0.133824
0
0.013045
0.321289
12,537
325
127
38.575385
0.801034
0.127223
0
0.116505
0
0
0.0575
0.00196
0
0
0
0
0
1
0.009709
false
0
0.082524
0
0.097087
0.024272
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37c805b450d20bb9b6a8e39a0e4789acb07d84c1
4,677
py
Python
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
"""Implements a non-blocking pipe class.""" # Since it uses thread rather than select, it is portable to at least # posix and windows environments. # Author: Rasjid Wilcox, copyright (c) 2002 # Ideas taken from the Python 2.2 telnetlib.py library. # # Last modified: 3 August 2002 # Licence: Python 2.2 Style ...
34.902985
88
0.5418
546
4,677
4.571429
0.342491
0.022436
0.019231
0.022837
0.120192
0.048878
0
0
0
0
0
0.017808
0.375668
4,677
133
89
35.165414
0.836986
0.147103
0
0.373626
0
0
0.021612
0
0
0
0
0
0
0
null
null
0
0.054945
null
null
0.021978
0
0
0
null
0
0
0
0
0
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
805ba55ed86af7e1a77e310df139512e78b99f6e
61,165
py
Python
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
9
2018-11-02T02:51:50.000Z
2022-01-12T06:22:33.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
3
2019-05-11T21:28:32.000Z
2020-04-27T00:58:46.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
7
2019-01-03T20:31:30.000Z
2022-01-29T04:09:24.000Z
import copy import json import logging from iptv_proxy.providers import ProvidersController from iptv_proxy.security import SecurityManager logger = logging.getLogger(__name__) class ProviderConfiguration(object): __slots__ = [] _configuration_schema = {} _provider_name = None @classmethod def...
42.066713
154
0.457615
4,995
61,165
5.225826
0.035035
0.06574
0.054591
0.057005
0.874574
0.833238
0.791786
0.723787
0.619431
0.521588
0
0.010199
0.474225
61,165
1,453
155
42.095664
0.801486
0.02266
0
0.569231
0
0
0.102922
0.003314
0
0
0
0
0
1
0.005668
false
0.02996
0.004049
0.00081
0.017004
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
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
4
805d2ac887895555a1420da719830b54829502f8
173
py
Python
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
# um programa que pega a ºC, e transforma em Fº c = float(input('informe a temperatura: ')) f = ((9*c)/5)+32 print('A temperatura {}ºc, corresponde à {}ºf'.format(c,f))
34.6
60
0.647399
31
173
3.612903
0.774194
0.214286
0
0
0
0
0
0
0
0
0
0.027972
0.17341
173
4
61
43.25
0.755245
0.260116
0
0
0
0
0.5
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
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
2
805da18c2eba7f3fc55361ca302201ceacee9c53
2,927
py
Python
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
set_name(0x80123B68, "EA_cd_seek", SN_NOWARN) set_name(0x80123B70, "MY_CdGetSector", SN_NOWARN) set_name(0x80123BA4, "init_cdstream", SN_NOWARN) set_name(0x80123BB4, "flush_cdstream", SN_NOWARN) set_name(0x80123BD8, "check_complete_frame", SN_NOWARN) set_name(0x80123C58, "reset_cdstream", SN_NOWARN) set_name(0x80123C80...
49.610169
58
0.82166
438
2,927
5.020548
0.294521
0.184629
0.28513
0.388813
0.392451
0.191905
0
0
0
0
0
0.171086
0.059447
2,927
58
59
50.465517
0.627679
0
0
0
0
0
0.286642
0.044756
0
0
0.198155
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
3
806068b887f576294d51b641529a19d602f962e8
423
py
Python
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
4
2021-04-14T09:28:51.000Z
2022-02-07T10:52:14.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
85
2018-10-30T10:49:28.000Z
2022-03-25T13:51:31.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
7
2018-10-30T11:36:57.000Z
2021-07-15T15:36:14.000Z
import luigi from luigi.contrib.hdfs import HdfsTarget class ImpcConfig(luigi.Config): dcc_xml_path = luigi.Parameter(default="./") output_path = luigi.Parameter(default="./") deploy_mode = luigi.Parameter(default="client") def get_target(self, path): return ( luigi.LocalTarget(pa...
26.4375
54
0.640662
48
423
5.520833
0.583333
0.158491
0.237736
0.188679
0
0
0
0
0
0
0
0
0.241135
423
15
55
28.2
0.825545
0
0
0
0
0
0.049645
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0.083333
0.666667
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
8061201f4d94b2f8e4d053bc0f34429d3c1312e3
468
py
Python
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import News, Subscriber @admin.register(News) class NewsAdmin(admin.ModelAdmin): list_display = ["subject", "key_identifier", "dispatch_date", "modified", "created"] search_fields = ["subject", "message"] @admin.register(Subscriber) class SubscriberAdmin(admin....
27.529412
88
0.711538
50
468
6.52
0.58
0.079755
0.116564
0.159509
0
0
0
0
0
0
0
0
0.136752
468
16
89
29.25
0.806931
0
0
0
0
0
0.235043
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
80615ede9944c60d7f347d9b93800d3c39e08d0f
1,258
py
Python
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
null
null
null
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-12-17T16:45:56.000Z
2022-02-02T20:40:57.000Z
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-03-31T21:38:55.000Z
2021-03-31T21:38:55.000Z
import unittest from nose2.tools import params import sys import datetime sys.path.append("../") from repgen.data import Value from repgen.util import TZ def test_gents_scalar(): t_end = datetime.datetime.now().replace(minute=0,second=0,microsecond=0,tzinfo=TZ("UTC")) t_start = t_end-datetime.timedelta(hours...
34
139
0.645469
202
1,258
3.950495
0.277228
0.078947
0.114035
0.050125
0.575188
0.546366
0.546366
0.546366
0.546366
0.546366
0
0.053502
0.18283
1,258
36
140
34.944444
0.722763
0
0
0.193548
0
0
0.04213
0
0
0
0
0
0.354839
1
0.096774
false
0
0.193548
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8061f8f83585386d7f3cee51d2a8ec30b9f44859
9,096
py
Python
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
14
2020-09-17T17:04:04.000Z
2021-08-19T05:08:49.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
85
2020-10-01T16:53:21.000Z
2021-07-08T17:44:17.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
5
2020-09-18T08:53:01.000Z
2021-08-19T05:12:52.000Z
#!/usr/bin/env python # coding: utf-8 # ### Author : Sanjoy Biswas # ### Topic : Mall Customer Segmentation & Analysis # ### Email : sanjoy.eee32@gmail.com # # **Data Import And Preprocessing** # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from plotly.offlin...
30.626263
498
0.744173
1,493
9,096
4.487609
0.316142
0.029104
0.018806
0.022836
0.131493
0.102687
0.085373
0.07194
0.067761
0.035224
0
0.024277
0.171284
9,096
296
499
30.72973
0.864553
0.610158
0
0.206897
0
0
0.142898
0.01963
0
0
0
0
0
1
0.011494
false
0
0.172414
0
0.206897
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80624346f155364d7ebf81125c59e583fc168c60
4,319
py
Python
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
2
2019-08-26T13:49:22.000Z
2019-11-11T18:43:29.000Z
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD # Disclaimer: This SoC is still a Proof of Concept with large timings violations on the IP/UDP and # Etherbone stack that need to be optimized. It was initially just used to validate the reversed # pin...
34.277778
115
0.552674
478
4,319
4.828452
0.453975
0.027296
0.025997
0.023397
0.05286
0
0
0
0
0
0
0.036909
0.197036
4,319
125
116
34.552
0.628604
0.274138
0
0.050633
0
0
0.06254
0
0
0
0
0
0
1
0.050633
false
0
0.139241
0
0.227848
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
8062ec2ad344155703ac04ea390798756763b6a7
508
py
Python
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
from time import sleep import threading import stepper import RPi.GPIO as GPIO motor1Pins = [7, 8, 9, 10] motor2Pins = [17, 18, 22, 23] def moveMotor(pins, degrees): sleep(1) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) motor = stepper.Motor(pins) motor.rpm = 15 motor.moveTo(degrees) motor1...
23.090909
75
0.718504
66
508
5.530303
0.590909
0.082192
0.115068
0.164384
0.186301
0
0
0
0
0
0
0.065574
0.159449
508
21
76
24.190476
0.789227
0
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
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
8063b17195dc598c722e984e0438f0d945c3c21d
4,109
py
Python
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
16
2015-04-07T19:26:01.000Z
2020-03-05T21:09:07.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2015-02-11T13:29:35.000Z
2015-03-02T21:03:08.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2020-05-29T06:48:16.000Z
2020-05-29T06:54:36.000Z
# coding=utf-8 import git from os.path import expanduser from mock import patch, MagicMock from jig.tests.testcase import CommandTestCase, result_with_hint from jig.commands import sticky from jig.exc import ( ForcedExit, JigUserDirectoryError, GitConfigError, InitTemplateDirAlreadySet, GitTemplatesMissing, Gi...
28.534722
76
0.607204
423
4,109
5.695035
0.293144
0.033209
0.040681
0.044832
0.290577
0.269822
0.243254
0.210046
0.157742
0.157742
0
0.001395
0.302263
4,109
143
77
28.734266
0.838856
0.094427
0
0.344828
0
0
0.128422
0.05532
0
0
0
0
0.137931
1
0.114943
false
0
0.08046
0
0.229885
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8063da22cb97bc1092b0a5274319e07381b8faeb
5,624
py
Python
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
20
2022-03-02T08:47:25.000Z
2022-03-30T11:18:26.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
3
2022-03-04T04:23:10.000Z
2022-03-05T17:29:52.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
5
2022-03-02T08:47:32.000Z
2022-03-30T11:18:53.000Z
import numpy as np import torch import torch.nn as nn import pdb def get_model(args, pretrain=False): if args.dimension == '2d': if args.model == 'unet': from .dim2 import UNet if pretrain: raise ValueError('No pretrain model available') return UNet(...
48.068376
477
0.641536
733
5,624
4.742156
0.150068
0.053797
0.037399
0.052359
0.657652
0.610472
0.585443
0.555524
0.520426
0.418872
0
0.013025
0.262802
5,624
116
478
48.482759
0.825374
0
0
0.365591
0
0
0.070959
0
0
0
0
0
0
1
0.010753
false
0
0.236559
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
806408d9791890be53cd6c762cf29adc75259e09
1,925
py
Python
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import Client, TestCase # Client: test request in the application for unit test from django.urls import reverse # generate urls for django admin page from django.utils.translation import gettext as _ class AdminSiteTests(TestCase): """Contains unit...
42.777778
111
0.671688
266
1,925
4.74812
0.334586
0.049881
0.072051
0.045131
0.403009
0.219319
0.173397
0.173397
0.173397
0.173397
0
0.021178
0.215065
1,925
44
112
43.75
0.814692
0.34961
0
0.217391
1
0
0.086349
0.039474
0
0
0
0
0.173913
1
0.173913
false
0.086957
0.173913
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
80647f5099199c99b0e0a984c775048c1fbf6fda
8,731
py
Python
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
2
2022-01-10T12:36:21.000Z
2022-01-18T11:13:40.000Z
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
null
null
null
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
1
2022-01-10T13:15:43.000Z
2022-01-10T13:15:43.000Z
import json import re import requests import unidecode import urllib.parse def normalize_lemma(lemma): return re.sub(r'[^a-z]', '', unidecode.unidecode(lemma)) def get_existing_entries(user_agent): url = 'https://query.wikidata.org/sparql?{}'.format(urllib.parse.urlencode({'query': 'SELECT DISTINCT (REPLACE...
45.712042
285
0.569465
948
8,731
5.113924
0.232068
0.055693
0.034653
0.017327
0.290635
0.262995
0.246493
0.169348
0.158416
0.135726
0
0.029348
0.262398
8,731
190
286
45.952632
0.723447
0.049021
0
0.036496
0
0
0.233824
0.030541
0
0
0
0
0
1
0.043796
false
0
0.036496
0.014599
0.116788
0.007299
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8064b62c6658077a658035b75bf939d6a102f7cb
1,591
py
Python
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-11-22T18:15:09.000Z
2021-11-22T18:15:09.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
3
2021-05-10T18:46:16.000Z
2021-06-01T16:51:48.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-05-05T17:20:06.000Z
2021-05-05T17:20:06.000Z
import pytest from math import isclose import sys sys.path.append('/Users/pyann/Dropbox (CEDIA)/srd/Model') import srd from srd import quebec qc_form = quebec.form(2016) @pytest.mark.parametrize('income, amount', [(0, 966), (33e3, 966), (51e3, 0), (34e3+(51e3-34...
32.469388
80
0.529855
208
1,591
3.980769
0.298077
0.050725
0.057971
0.067633
0.576087
0.530193
0.48913
0.423913
0.423913
0.332126
0
0.124654
0.319296
1,591
48
81
33.145833
0.639889
0
0
0.342857
0
0
0.055772
0
0
0
0
0
0.085714
1
0.085714
false
0
0.142857
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80650e96ed810fec1ddeaacf215ceee808005014
952
py
Python
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
2
2020-03-24T17:07:58.000Z
2020-03-31T03:19:38.000Z
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, render_template from firestore_utilities import get_medium, db, get_github_events, get_projects application = Flask(__name__) @application.route("/") def root(): return render_template("root.html") @application.route("/blog") def blog(): blog_list = get_medium(db) return rende...
21.636364
79
0.719538
121
952
5.380165
0.272727
0.150538
0.184332
0.101382
0
0
0
0
0
0
0
0.00612
0.141807
952
43
80
22.139535
0.790698
0
0
0
0
0
0.119748
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.107143
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
806566fc4d9daeabfef5f2000f79ccd69c7d32a1
49,754
py
Python
2021/BondwireProfileEditor_Win_Linux.py
zhangjq933/HowtoSim_Script
d958cc6cc743106e8f6ddf58dead6551a8ac7784
[ "MIT" ]
79
2019-04-01T04:35:01.000Z
2022-03-30T10:59:32.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
1
2020-03-29T20:52:06.000Z
2020-03-30T05:35:30.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
73
2019-05-07T10:26:53.000Z
2022-03-24T02:25:08.000Z
# coding=utf-8 import os, re, sys, clr, json, math, logging, random, time from itertools import combinations os.chdir(os.path.dirname(__file__)) logging.basicConfig(filename='gui.log', filemode='w', encoding='utf-8', level=logging.DEBUG) clr.AddReference('System.Drawing') clr.AddReference('System.Windows.Forms') ...
39.8032
116
0.552116
5,292
49,754
5.088624
0.091837
0.010918
0.022838
0.03045
0.458242
0.344424
0.287757
0.258346
0.240039
0.225927
0
0.034494
0.328757
49,754
1,249
117
39.835068
0.771836
0.015215
0
0.228332
0
0
0.057783
0.002139
0
0
0
0
0
1
0.04287
false
0.00466
0.011184
0.001864
0.075489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8065e364ac71356df1a3bb45b9af18ea539918a5
750
py
Python
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
from time import sleep from selenium import webdriver from secrets import password from selenium.webdriver.common.keys import Keys from time import sleep, strftime chromedriver_path ='/mnt/c/Users/louis/Documents/GitHub/instagram_bot/chromedriver.exe' class Instabot: def __init__(self, username, password):...
39.473684
90
0.728
91
750
5.802198
0.527473
0.030303
0.05303
0.07197
0.087121
0
0
0
0
0
0
0.003247
0.178667
750
18
91
41.666667
0.853896
0
0
0
0
0
0.228454
0.090287
0
0
0
0
0
1
0.0625
false
0.25
0.3125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
0
0
2
806640663332b26791d299631d7a07702f2f99ab
1,738
py
Python
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
7
2020-03-25T19:54:56.000Z
2021-06-09T04:43:58.000Z
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
9
2020-01-17T10:47:54.000Z
2021-05-30T12:40:28.000Z
nodedge/blocks/custom/input_block.py
nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List from nodedge.blocks.block import Block from nodedge.blocks.block_config import BLOCKS_ICONS_PATH, OP_NODE_INPUT, registerNode from nodedge.blocks.graphics_block import GraphicsBlock from nodedge.blocks.graphics_input_block_content import GraphicsInputBlockContent from no...
30.491228
86
0.705984
169
1,738
7.065089
0.443787
0.046064
0.056951
0.036851
0
0
0
0
0
0
0
0.000725
0.206559
1,738
56
87
31.035714
0.86512
0.032796
0
0
0
0
0.067938
0.032777
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.512195
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8066624d5dffeae87c4031c186ee89c3a0ab8dcd
5,890
py
Python
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
import pandas as pd class Core: def __init__(self, players): index_with_nan = players.index[players.isnull().any(axis=1)] players.drop(index_with_nan,0, inplace=True) self.Players = players def roi_top_players(self): ''' Sorted the player list by ROI from the top ...
38.496732
168
0.543633
682
5,890
4.593842
0.180352
0.052665
0.034472
0.04309
0.479094
0.442387
0.412384
0.361315
0.3045
0.291095
0
0.011917
0.344652
5,890
153
169
38.496732
0.799741
0.261969
0
0.16129
0
0
0.095119
0
0
0
0
0
0
1
0.177419
false
0
0.016129
0
0.370968
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80676fec9d54f2f82f75da34b314f6afd4212486
3,799
py
Python
main/classify_program.py
Abel-Huang/simple-image-classifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
4
2017-05-17T08:01:38.000Z
2018-07-22T11:13:55.000Z
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
import cv2 import numpy as np from sklearn import svm from sklearn.externals import joblib from main import data_set as ds from main import feature_program as fp from util import save_2_db as db from util import file_manage as fm # 训练分类器 def train_classifier(feature_type): train_data = np.float32([]).reshape(0, 50...
37.245098
90
0.61253
521
3,799
4.297505
0.272553
0.073694
0.059402
0.04243
0.405092
0.363555
0.310853
0.251898
0.232247
0.192943
0
0.014612
0.261385
3,799
101
91
37.613861
0.783321
0.063701
0
0.25641
0
0
0.082366
0
0
0
0
0
0
1
0.025641
false
0
0.102564
0
0.128205
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8067b4374ba41b815a9a3686f3eb5766d004309f
75
py
Python
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
from .konlpy_set import KinQueryDatasetVer2, preprocess, get_embedding_dim
37.5
74
0.88
9
75
7
1
0
0
0
0
0
0
0
0
0
0
0.014493
0.08
75
2
74
37.5
0.898551
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
1
0
0
5
80693af1a223015fc9f6a5347749723828613409
102
py
Python
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) a = [ x for x in y ]
20.4
76
0.627451
17
102
3.764706
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.215686
102
4
77
25.5
0.8
0.72549
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
8069c80b4ba47527c4c176a2e51cb7a78d306b86
4,616
py
Python
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
null
null
null
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
174
2021-06-21T08:19:03.000Z
2022-03-30T23:44:55.000Z
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
1
2021-09-24T13:40:53.000Z
2021-09-24T13:40:53.000Z
"""momoichigo views.""" from __future__ import annotations import io import logging from typing import Any, List, Tuple from urllib.parse import urlparse import pendulum import requests from django.core.exceptions import ValidationError from django.db import transaction from rest_framework import mixins, status, view...
34.192593
85
0.620234
471
4,616
5.951168
0.388535
0.011416
0.02426
0.011416
0.039957
0.030681
0.030681
0
0
0
0
0.007773
0.275347
4,616
134
86
34.447761
0.830194
0.129983
0
0.057471
0
0
0.024235
0
0
0
0
0
0
1
0.057471
false
0
0.195402
0
0.356322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
806dd6f207f96deb9deb2732e42a0bf1d99fbad0
993
py
Python
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
62
2019-02-13T20:26:12.000Z
2022-02-23T19:47:34.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
58
2018-07-09T10:58:33.000Z
2022-01-31T20:27:13.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
33
2019-03-25T07:30:34.000Z
2022-03-08T12:55:35.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from abc import ABCMeta, abstractmethod class iContain...
31.03125
81
0.775428
89
993
8.247191
0.483146
0.065395
0.108992
0.179837
0.438692
0.299728
0
0
0
0
0
0.004723
0.147029
993
31
82
32.032258
0.861865
0.020141
0
0.190476
0
0
0.279835
0.083333
0
0
0
0
0
1
0.190476
false
0
0.047619
0
0.285714
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
806ddac5cfe116c67e0d9529de64b5b850440192
347
py
Python
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
#variables media = 0 maior = 0 menor = 9999 #input + process for(i) in range(1, 11): N = int(input("Digite um número: ")) if(N > maior): maior = N if(N < menor): menor = N media = (media + (N / 10)) print("Maior número: {0}".format(maior)) print("Menor número: {0}".format(menor)) print(...
23.133333
40
0.570605
52
347
3.807692
0.442308
0.106061
0.131313
0
0
0
0
0
0
0
0
0.05283
0.236311
347
15
41
23.133333
0.69434
0.069164
0
0
0
0
0.192547
0
0
0
0
0
0
1
0
false
0
0
0
0
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
806f5dbad8693bef1f42f7424619c01bd49c62cd
2,464
py
Python
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
25
2019-02-09T21:19:15.000Z
2022-01-24T22:11:20.000Z
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
null
null
null
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
4
2019-02-21T07:08:06.000Z
2022-01-25T12:43:24.000Z
import yaml import torch import argparse from torch.utils import data from tqdm import tqdm from ptsemseg.models import get_model from ptsemseg.loader import get_loader from ptsemseg.metrics import runningScoreDepth, averageMeter def count_parameters(model): return sum(p.numel() for p in model.parameters() if p...
28.988235
100
0.616477
308
2,464
4.753247
0.399351
0.03347
0.020492
0.025956
0.051913
0.051913
0.051913
0
0
0
0
0.00269
0.245536
2,464
84
101
29.333333
0.784831
0.053571
0
0
0
0
0.110108
0.013763
0
0
0
0
0
1
0.034483
false
0
0.137931
0.017241
0.189655
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