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
791a9c8e8730f5f5a2cad9d795b71056070a1277
2,136
py
Python
suggest/suggest.py
AlertShamrock/modmail-plugins-2
733478b8fff3a83c508ed3c983de0a75363c8eb5
[ "MIT" ]
null
null
null
suggest/suggest.py
AlertShamrock/modmail-plugins-2
733478b8fff3a83c508ed3c983de0a75363c8eb5
[ "MIT" ]
null
null
null
suggest/suggest.py
AlertShamrock/modmail-plugins-2
733478b8fff3a83c508ed3c983de0a75363c8eb5
[ "MIT" ]
1
2020-12-29T15:54:37.000Z
2020-12-29T15:54:37.000Z
import discord from discord.ext import commands from core import checks from core.models import PermissionLevel class Suggest(commands.Cog): """ Let's you send a suggestion to a designated channel. """ def __init__(self, bot): self.bot = bot self.coll = bot.plugin_db.get_partition(self)...
38.836364
103
0.617041
246
2,136
5.243902
0.398374
0.092248
0.039535
0.051163
0.133333
0.052713
0
0
0
0
0
0.00252
0.257022
2,136
54
104
39.555556
0.809074
0
0
0.04878
0
0
0.132316
0
0
0
0.004071
0
0
0
null
null
0
0.097561
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7925db582a7ae2e7bac205ed4966d8d1f8f9fd94
3,779
py
Python
bibtexautocomplete/lookups/abstract_base.py
dlesbre/bibtex-autocomplete
e67c81e437ebb62bb71ce8c432f71646e62e6e62
[ "MIT" ]
9
2022-03-30T21:15:21.000Z
2022-03-31T20:32:12.000Z
bibtexautocomplete/lookups/abstract_base.py
dlesbre/bibtex-autocomplete
e67c81e437ebb62bb71ce8c432f71646e62e6e62
[ "MIT" ]
1
2022-03-31T20:31:46.000Z
2022-03-31T20:31:46.000Z
bibtexautocomplete/lookups/abstract_base.py
dlesbre/bibtex-autocomplete
e67c81e437ebb62bb71ce8c432f71646e62e6e62
[ "MIT" ]
null
null
null
""" Abstract base classes used to represent queries LookupProtocol(Protocol): duck-typing of lookups. They must have - an attribute name : str (UNIQUE) - a method query(self) -> Optional[BibtexEntry] - a method __init__(self, entry: Entry) - a method get_last_query_info(self) -> Dict[str, JSONType] wit...
31.231405
83
0.688013
472
3,779
5.415254
0.300847
0.046948
0.033255
0.029734
0.366588
0.348592
0.348592
0.348592
0.334898
0.334898
0
0
0.225192
3,779
120
84
31.491667
0.872951
0.471024
0
0.333333
0
0
0.080835
0
0
0
0
0
0
1
0.196078
false
0.039216
0.058824
0
0.568627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
792731852115ee9b73721c6b1e5684126ab0812b
8,554
py
Python
src/energy_experiment.py
GreenAIproject/ICT4S22
e1af70be3240c3532b8c46889cfdb9ac4dbdaa21
[ "MIT" ]
null
null
null
src/energy_experiment.py
GreenAIproject/ICT4S22
e1af70be3240c3532b8c46889cfdb9ac4dbdaa21
[ "MIT" ]
null
null
null
src/energy_experiment.py
GreenAIproject/ICT4S22
e1af70be3240c3532b8c46889cfdb9ac4dbdaa21
[ "MIT" ]
null
null
null
from text_classification import generate_model, model_validation from modify_dataset import modify_dataset_and_raw_data_with_percentage_size_to_keep from modify_dataset import modify_dataset_select_features from sklearn.svm import SVC from sklearn.tree import DecisionTreeClassifier from sklearn.naive_bayes import Comp...
35.790795
116
0.697568
928
8,554
6.126078
0.225216
0.053826
0.028144
0.028144
0.324362
0.264908
0.199472
0.199472
0.149164
0.149164
0
0.013105
0.214987
8,554
238
117
35.941176
0.833507
0.059621
0
0.146597
1
0
0.134521
0.031623
0
0
0
0
0
1
0.041885
false
0
0.089005
0.005236
0.167539
0.057592
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7929535a4d7798cd5259aaf93d9531e7e3af02a8
7,130
py
Python
test.py
DTMcNamara/CS3620-OperatingSystems-HW4
55354f958f59aa5841f188eac95c224a5b8b2ed7
[ "MIT" ]
null
null
null
test.py
DTMcNamara/CS3620-OperatingSystems-HW4
55354f958f59aa5841f188eac95c224a5b8b2ed7
[ "MIT" ]
null
null
null
test.py
DTMcNamara/CS3620-OperatingSystems-HW4
55354f958f59aa5841f188eac95c224a5b8b2ed7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import subprocess import time import sys import hashlib import struct import random import os import signal NSOLUTIONS = 8 SPEED_THRESHOLD = 0.75 BIN_NAME = sys.argv[1] total_errors = 0 # this code is just to prevent child processes to be left running after test.py is closed last_child = Non...
31.27193
227
0.56662
994
7,130
3.957746
0.220322
0.038638
0.048297
0.035587
0.39756
0.36426
0.299441
0.27453
0.264362
0.2303
0
0.049464
0.319495
7,130
227
228
31.409692
0.761336
0.023282
0
0.320442
0
0.01105
0.220432
0
0
0
0
0
0
0
null
null
0.027624
0.044199
null
null
0.226519
0
0
0
null
0
0
0
0
0
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
7935823bed458c032698f4cdaf19357f911f17df
546
py
Python
examples/pure_python/get.py
slieberth/pygnmi
04645899e8b5b77719b6c928dd3031ea68e2a393
[ "BSD-3-Clause" ]
58
2020-09-28T20:23:25.000Z
2022-03-23T06:59:21.000Z
examples/pure_python/get.py
slieberth/pygnmi
04645899e8b5b77719b6c928dd3031ea68e2a393
[ "BSD-3-Clause" ]
48
2021-01-05T08:34:27.000Z
2022-03-29T01:17:36.000Z
examples/pure_python/get.py
slieberth/pygnmi
04645899e8b5b77719b6c928dd3031ea68e2a393
[ "BSD-3-Clause" ]
21
2020-10-28T14:38:19.000Z
2022-01-30T19:49:29.000Z
#!/usr/bin/env python # Modules from pygnmi.client import gNMIclient # Variables from inventory import hosts # Body if __name__ == "__main__": paths = ['openconfig-interfaces:interfaces', 'openconfig-network-instance:network-instances'] for host in hosts: with gNMIclient(target=(host["ip_address"], ...
28.736842
97
0.653846
65
546
5.338462
0.692308
0.034582
0.074928
0
0
0
0
0
0
0
0
0
0.195971
546
19
98
28.736842
0.790433
0.078755
0
0
0
0
0.306
0.196
0
0
0
0
0
1
0
false
0.111111
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7935bc1a357e720fc433dd3ed3e9847f27810ce2
13,019
py
Python
mrbob/configurator.py
jpcw/mr.bob
251320bb086509fb02ca91c02c3bb874125f3f97
[ "BSD-3-Clause" ]
null
null
null
mrbob/configurator.py
jpcw/mr.bob
251320bb086509fb02ca91c02c3bb874125f3f97
[ "BSD-3-Clause" ]
null
null
null
mrbob/configurator.py
jpcw/mr.bob
251320bb086509fb02ca91c02c3bb874125f3f97
[ "BSD-3-Clause" ]
null
null
null
"""""" import os import re import sys import readline try: # pragma: no cover from urllib import urlretrieve # NOQA except ImportError: # pragma: no cover # PY3K from urllib.request import urlretrieve # NOQA import tempfile from zipfile import ZipFile, is_zipfile readline # make pyflakes happy, readli...
37.627168
127
0.598126
1,444
13,019
5.26108
0.209834
0.018823
0.02014
0.007898
0.121495
0.080032
0.070817
0.065552
0.053969
0.044755
0
0.000902
0.319072
13,019
345
128
37.736232
0.856063
0.225824
0
0.142857
0
0
0.071197
0.010243
0
0
0
0.011594
0
1
0.056277
false
0
0.069264
0.004329
0.190476
0.030303
0
0
0
null
0
0
0
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
793874a9c2deba4fcc4e3a5fe948b0e754bf15ee
655
py
Python
pages/hello_world.py
zdrever/appium-behave-template
1ff1c03dc156f9c3e79876a7e251525a91fb42e5
[ "MIT" ]
null
null
null
pages/hello_world.py
zdrever/appium-behave-template
1ff1c03dc156f9c3e79876a7e251525a91fb42e5
[ "MIT" ]
null
null
null
pages/hello_world.py
zdrever/appium-behave-template
1ff1c03dc156f9c3e79876a7e251525a91fb42e5
[ "MIT" ]
null
null
null
from pages.page import Page from pages.locators import HelloWorldLocators from selenium.common.exceptions import NoSuchElementException class HelloWorld(Page): def __init__(self): super().__init__() def is_page_loaded(self): try: self._driver.find_element(HelloWorldLocators.PAGE_...
24.259259
70
0.677863
66
655
6.424242
0.469697
0.042453
0.051887
0.080189
0.448113
0.448113
0.216981
0
0
0
0
0
0.258015
655
26
71
25.192308
0.872428
0
0
0.421053
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.157895
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
793912dc65d70960ee0525a0d0136107dd133545
279
py
Python
luxai2021/game/resource.py
nofate090/LuxPythonEnvGym
f962e66525985a542f178419f5595294c69e5cca
[ "MIT" ]
null
null
null
luxai2021/game/resource.py
nofate090/LuxPythonEnvGym
f962e66525985a542f178419f5595294c69e5cca
[ "MIT" ]
null
null
null
luxai2021/game/resource.py
nofate090/LuxPythonEnvGym
f962e66525985a542f178419f5595294c69e5cca
[ "MIT" ]
null
null
null
'''Implements /src/Resource/index.ts''' class Resource: ''' Enum implemenation ''' class Types: WOOD = 'wood' COAL = 'coal' URANIUM = 'uranium' def __init__(self, type, amount) -> None: self.type = type self.amount = amount
19.928571
45
0.555556
29
279
5.206897
0.62069
0.10596
0
0
0
0
0
0
0
0
0
0
0.308244
279
13
46
21.461538
0.782383
0.189964
0
0
0
0
0.070423
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7939371b3c085ff8202c6889e0ba9a1ae647d494
600
py
Python
common/security-features/subresource/xhr.py
Pearadox99/test2
61493be3a08248236633346ee1d15b701aa18222
[ "BSD-3-Clause" ]
1
2021-12-19T09:30:55.000Z
2021-12-19T09:30:55.000Z
common/security-features/subresource/xhr.py
Pearadox99/test2
61493be3a08248236633346ee1d15b701aa18222
[ "BSD-3-Clause" ]
null
null
null
common/security-features/subresource/xhr.py
Pearadox99/test2
61493be3a08248236633346ee1d15b701aa18222
[ "BSD-3-Clause" ]
1
2020-11-09T05:05:06.000Z
2020-11-09T05:05:06.000Z
import os, sys from wptserve.utils import isomorphic_decode sys.path.insert(0, os.path.dirname(os.path.abspath(isomorphic_decode(__file__)))) import subresource def generate_payload(server_data): data = (u'{"headers": %(headers)s}') % server_data return data def main(request, response): subresource.respon...
35.294118
81
0.615
65
600
5.430769
0.630769
0.090652
0
0
0
0
0
0
0
0
0
0.002336
0.286667
600
16
82
37.5
0.82243
0
0
0
1
0
0.081667
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
793e4d7103e2e8c895b8aafe6053c088904cbfe5
1,116
py
Python
azure/servicefabric/models/chaos_context.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/servicefabric/models/chaos_context.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/servicefabric/models/chaos_context.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.823529
80
0.598566
142
1,116
4.661972
0.647887
0.015106
0.033233
0
0
0
0
0
0
0
0
0.008969
0.200717
1,116
33
81
33.818182
0.733184
0.755376
0
0
0
0
0.085973
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f706928635f24a19e6d86ce8a2ee5af95fa8a1a9
2,296
py
Python
mainService/mainService/apps/core_sample/migrations/0001_initial.py
Godis715/Core-Sample-Analysis
892b3d322e9ce86dab0da9754b902b504b2e0d8b
[ "Apache-2.0" ]
2
2019-09-18T10:59:21.000Z
2019-10-02T16:50:05.000Z
mainService/mainService/apps/core_sample/migrations/0001_initial.py
Godis715/Core-Sample-Analysis
892b3d322e9ce86dab0da9754b902b504b2e0d8b
[ "Apache-2.0" ]
78
2019-09-20T16:56:18.000Z
2022-03-12T00:04:37.000Z
mainService/mainService/apps/core_sample/migrations/0001_initial.py
Godis715/Core-Sample-Analysis
892b3d322e9ce86dab0da9754b902b504b2e0d8b
[ "Apache-2.0" ]
1
2019-10-03T20:49:34.000Z
2019-10-03T20:49:34.000Z
# Generated by Django 2.2.6 on 2019-10-13 23:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
44.153846
161
0.593641
227
2,296
5.837004
0.431718
0.149434
0.069434
0.081509
0.359245
0.309434
0.309434
0.309434
0.309434
0.309434
0
0.013585
0.262631
2,296
51
162
45.019608
0.769049
0.019599
0
0.363636
1
0
0.152957
0.010227
0
0
0
0
0
1
0
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f71020a081e97b8e419611b4ff2a1a7fefc0a0c9
2,253
py
Python
setup.py
SCECcode/ucvm_plotting
0fad66043c81bdc5e616f87020f38177bdae9503
[ "BSD-3-Clause" ]
null
null
null
setup.py
SCECcode/ucvm_plotting
0fad66043c81bdc5e616f87020f38177bdae9503
[ "BSD-3-Clause" ]
4
2021-11-30T08:28:42.000Z
2022-03-07T21:27:14.000Z
setup.py
SCECcode/ucvm_plotting
0fad66043c81bdc5e616f87020f38177bdae9503
[ "BSD-3-Clause" ]
1
2021-06-05T03:28:51.000Z
2021-06-05T03:28:51.000Z
""" @file setup.py @brief Build and install the pycvm @author The SCEC/UCVM Developers - <software@scec.usc.edu> """ from setuptools import setup NAME = "ucvm_plotting" FULLNAME = "ucvm_plotting with pycvm" AUTHOR = "The SCEC/UCVM Developers" AUTHOR_EMAIL = "software@scec.usc.edu" MAINTAINER = AUTHOR MAINTAIN...
33.132353
89
0.717266
274
2,253
5.631387
0.375912
0.139987
0.127025
0.163318
0.28127
0.123137
0
0
0
0
0
0.008434
0.158012
2,253
67
90
33.626866
0.804955
0.047936
0
0
0
0
0.522535
0.289202
0
0
0
0
0
1
0
false
0
0.018519
0
0.018519
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
f71846b951f60a4224bbcba15029808462901768
377
py
Python
Chapter04/c4_09_python_fv.py
andrewjcoxon/Hands-On-Data-Science-with-Anaconda
82504a059ecd284b3599fa9af2b3eb6bbd6e28f3
[ "MIT" ]
25
2018-06-25T16:21:09.000Z
2022-02-08T09:28:29.000Z
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter04/c4_09_python_fv.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
null
null
null
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter04/c4_09_python_fv.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
17
2018-06-15T02:55:30.000Z
2022-03-09T15:24:42.000Z
" Name : c4_09_python_fv.py Book : Hands-on Data Science with Anaconda ) Publisher: Packt Publishing Ltd. Author : Yuxing Yan and James Yan Date : 1/25/2018 email : yany@canisius.edu paulyxy@hotmail.com " import numpy as np import matplotlib.pyplot as mlt n=np.linspace(0,10,...
20.944444
50
0.65252
65
377
3.738462
0.753846
0
0
0
0
0
0
0
0
0
0
0.072917
0.236074
377
18
51
20.944444
0.770833
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7194132aff142671554e00669a4cc1f9a014680
5,299
py
Python
MathExample.py
AdityaSavara/CiteSoft_Py
f3a68666966565d4eb130e457cb11d285b56b4c5
[ "BSD-3-Clause" ]
null
null
null
MathExample.py
AdityaSavara/CiteSoft_Py
f3a68666966565d4eb130e457cb11d285b56b4c5
[ "BSD-3-Clause" ]
null
null
null
MathExample.py
AdityaSavara/CiteSoft_Py
f3a68666966565d4eb130e457cb11d285b56b4c5
[ "BSD-3-Clause" ]
null
null
null
import sys import math try: import CiteSoft except: import os #The below lines are to allow CiteSoftLocal to be called regardless of user's working directory. lenOfFileName = len(os.path.basename(__file__)) #This is the name of **this** file. absPathWithoutFileName = os.path.abspath(__file__)[0:-1*lenOf...
58.230769
449
0.780336
807
5,299
4.945477
0.275093
0.044099
0.056126
0.072162
0.444751
0.41769
0.394387
0.379354
0.362315
0.362315
0
0.007422
0.135497
5,299
90
450
58.877778
0.863785
0.401019
0
0.246154
0
0.015385
0.184786
0
0
0
0
0
0
1
0.169231
false
0.015385
0.092308
0.107692
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f721fc1798358232695a6e8277cd43f94a436dc0
875
gyp
Python
tools/android/memconsumer/memconsumer.gyp
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2015-04-30T00:13:21.000Z
2019-07-10T02:17:24.000Z
tools/android/memconsumer/memconsumer.gyp
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
null
null
null
tools/android/memconsumer/memconsumer.gyp
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2016-12-23T04:21:10.000Z
2020-06-18T13:52:33.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'memconsumer', 'type': 'none', 'dependencies': [ 'memconsumer_apk', ], }, { ...
21.875
72
0.512
78
875
5.564103
0.666667
0.069124
0.096774
0
0
0
0
0
0
0
0
0.006711
0.318857
875
39
73
22.435897
0.721477
0.177143
0
0.257143
0
0
0.47067
0.039106
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
1
f724f1c71834d7b7a9d035b610d98d0f0773158a
1,933
py
Python
website/migrations/0005_auto_20191213_1623.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
1
2021-12-19T01:05:26.000Z
2021-12-19T01:05:26.000Z
website/migrations/0005_auto_20191213_1623.py
iQuISE/iquise-website
e6125fe938c549e020cd53a5aa718de101e972e9
[ "MIT" ]
16
2020-07-29T14:12:30.000Z
2021-08-24T13:00:48.000Z
website/migrations/0005_auto_20191213_1623.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-12-13 21:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0004_presenter_profile_image_thumb'), ] ...
39.44898
144
0.608381
206
1,933
5.543689
0.466019
0.028021
0.036778
0.057793
0.236427
0.190893
0.138354
0.138354
0.138354
0.138354
0
0.020379
0.263839
1,933
48
145
40.270833
0.78215
0.035696
0
0.365854
1
0
0.185384
0.041913
0
0
0
0
0
1
0
false
0
0.073171
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7273aa823161ba436cb65218833b108a92b9ccc
651
py
Python
tests/test_pickling_in_main/main.py
smheidrich/pickle-spree
73d7a6fd1265f28fc3b91db593309cf5d2ae9195
[ "MIT" ]
null
null
null
tests/test_pickling_in_main/main.py
smheidrich/pickle-spree
73d7a6fd1265f28fc3b91db593309cf5d2ae9195
[ "MIT" ]
2
2022-01-23T18:51:13.000Z
2022-01-23T18:54:36.000Z
tests/test_pickling_in_main/main.py
smheidrich/pickle-spree
73d7a6fd1265f28fc3b91db593309cf5d2ae9195
[ "MIT" ]
null
null
null
from collections import ChainMap import os from pathlib import Path from pickle_spree import PopenFactory import subprocess import sys class CallableDefinedInMain: def __call__(self): return 1 callable = CallableDefinedInMain() new_popen = PopenFactory(callable=callable) subprocess.Popen = new_popen pythonpa...
25.038462
74
0.752688
77
651
6.077922
0.61039
0.034188
0.055556
0
0
0
0
0
0
0
0
0.001727
0.110599
651
25
75
26.04
0.806563
0
0
0
0
0
0.110599
0
0
0
0
0
0
1
0.055556
false
0
0.333333
0.055556
0.5
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f72f3d1c6a35bd919b59685338374f45d915640f
2,886
py
Python
python/init_db.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
16
2019-11-28T18:05:21.000Z
2021-12-08T18:09:18.000Z
python/init_db.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
1,127
2019-11-29T08:57:25.000Z
2022-03-31T20:21:32.000Z
python/init_db.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
10
2019-11-28T18:05:06.000Z
2022-01-13T06:16:40.000Z
#!/usr/bin/env python3 # 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, softwar...
26.722222
88
0.700277
381
2,886
5.188976
0.456693
0.021244
0.013151
0.016186
0.064745
0
0
0
0
0
0
0.005155
0.193347
2,886
107
89
26.971963
0.844072
0.231462
0
0.070423
0
0
0.074278
0
0
0
0
0
0
1
0.098592
false
0.056338
0.183099
0.014085
0.309859
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f72fab45a2f4c772cc4437cfc0c167040cf1b405
1,591
py
Python
processout/invoicerisk.py
processout/processout-python
f8311702fe2d392817dcb66347a7a13b9cd91e92
[ "MIT" ]
1
2017-02-22T10:57:10.000Z
2017-02-22T10:57:10.000Z
processout/invoicerisk.py
processout/processout-python
f8311702fe2d392817dcb66347a7a13b9cd91e92
[ "MIT" ]
1
2018-12-14T14:30:57.000Z
2018-12-14T14:30:57.000Z
processout/invoicerisk.py
processout/processout-python
f8311702fe2d392817dcb66347a7a13b9cd91e92
[ "MIT" ]
2
2018-12-13T23:08:11.000Z
2018-12-30T19:52:31.000Z
try: from urllib.parse import quote_plus except ImportError: from urllib import quote_plus import processout import json from processout.networking.request import Request from processout.networking.response import Response # The content of this file was automatically generated class InvoiceRisk(object): ...
23.057971
71
0.588938
194
1,591
4.664948
0.28866
0.108287
0.060773
0.046409
0
0
0
0
0
0
0
0
0.324953
1,591
68
72
23.397059
0.842644
0.19736
0
0.125
0
0
0.032419
0
0
0
0
0
0
1
0.175
false
0
0.175
0.025
0.525
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f7339ffceb1271b59fe05fe8af5b4d70a0b4e922
340
py
Python
Jumping around and changing speed.py
Toulik1729231/Python3.7
56acd1af1b7c7e664c7bd8bd6eec0740871b6815
[ "MIT" ]
null
null
null
Jumping around and changing speed.py
Toulik1729231/Python3.7
56acd1af1b7c7e664c7bd8bd6eec0740871b6815
[ "MIT" ]
null
null
null
Jumping around and changing speed.py
Toulik1729231/Python3.7
56acd1af1b7c7e664c7bd8bd6eec0740871b6815
[ "MIT" ]
null
null
null
import turtle ninja = turtle.Turtle() ninja.speed(10) for i in range(180): ninja.forward(100) ninja.right(30) ninja.forward(20) ninja.left(60) ninja.forward(50) ninja.right(30) ninja.penup() ninja.setposition(0, 0) ninja.pendown() ninja.right(2) ...
15.454545
28
0.570588
44
340
4.409091
0.545455
0.185567
0.123711
0.175258
0
0
0
0
0
0
0
0.088235
0.3
340
21
29
16.190476
0.726891
0
0
0.133333
0
0
0
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
f739857b3a1066812a6cd3d08249b014803a9745
364
py
Python
tests/test_ghebbrish_converter.py
ctrl-escp/gibberish2utf8
052cad946e8fa847dfbc984ee02adbb6d8c07a65
[ "MIT" ]
3
2020-11-14T17:11:52.000Z
2020-11-30T08:34:06.000Z
tests/test_ghebbrish_converter.py
ctrl-escp/gibberish2utf8
052cad946e8fa847dfbc984ee02adbb6d8c07a65
[ "MIT" ]
null
null
null
tests/test_ghebbrish_converter.py
ctrl-escp/gibberish2utf8
052cad946e8fa847dfbc984ee02adbb6d8c07a65
[ "MIT" ]
1
2021-03-29T19:11:11.000Z
2021-03-29T19:11:11.000Z
from unittest import TestCase from ..gib2u import GhebbrishConverter class TestGhebbrishConverter(TestCase): gib = GhebbrishConverter('') def test_gibberish_to_utf8_converter(self): original_string = "ùìåí çðåê" expected_output = "שלום חנוך" self.assertEqual(self.gib.convert_gibberish...
30.333333
94
0.760989
40
364
6.65
0.65
0.082707
0.112782
0
0
0
0
0
0
0
0
0.009868
0.164835
364
11
95
33.090909
0.865132
0
0
0
0
0
0.049451
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f744638f37cbe7deda7bbaa7237079efd0ed54f0
2,069
py
Python
remio/sevent.py
Hikki12/remio
17942bffe3c0619d3435b1a12399b116d4c800e3
[ "Apache-2.0" ]
null
null
null
remio/sevent.py
Hikki12/remio
17942bffe3c0619d3435b1a12399b116d4c800e3
[ "Apache-2.0" ]
null
null
null
remio/sevent.py
Hikki12/remio
17942bffe3c0619d3435b1a12399b116d4c800e3
[ "Apache-2.0" ]
null
null
null
class Emitter: """This class implements a simple event emitter. Args: emitterIsEnabled: enable callbacks execution? Example usage:: callback = lambda message: print(message) event = Emitter() event.on('ready', callback) event.emit('ready', 'Finished!') """ d...
31.348485
76
0.564041
205
2,069
5.64878
0.336585
0.134715
0.051813
0.049223
0.139033
0.073402
0.050086
0
0
0
0
0.001466
0.340744
2,069
65
77
31.830769
0.847507
0.305945
0
0.241379
0
0
0
0
0
0
0
0
0
1
0.241379
false
0
0
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
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
f7448638dcb19c549ed64f75d74f846f4c9a63a0
624
py
Python
scripts/pishu_mouth.py
PiShu-Project/pishu_mouth
8bd8ead355c4bf5aeadb14e2f6d7517dfac46b85
[ "MIT" ]
null
null
null
scripts/pishu_mouth.py
PiShu-Project/pishu_mouth
8bd8ead355c4bf5aeadb14e2f6d7517dfac46b85
[ "MIT" ]
null
null
null
scripts/pishu_mouth.py
PiShu-Project/pishu_mouth
8bd8ead355c4bf5aeadb14e2f6d7517dfac46b85
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String, Bool #from pishu_msgs.srv import talk import os from functools import partial def chatter_callback(done_pub, data): print data.data cmd = "espeak ' " + data.data + " ' 2>/dev/null " print cmd os.system(cmd) #global done_pub d...
20.8
82
0.685897
87
624
4.701149
0.563218
0.085575
0.09291
0.107579
0
0
0
0
0
0
0
0.003976
0.19391
624
29
83
21.517241
0.809145
0.105769
0
0
0
0
0.10991
0
0
0
0
0
0
0
null
null
0
0.235294
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
f7448f164d943f9205f7ff40068c9d8aff1896f8
613
py
Python
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-21 07:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('sushi', '0022_sushi_cred...
27.863636
122
0.690049
73
613
5.616438
0.60274
0.058537
0.068293
0.107317
0
0
0
0
0
0
0
0.039175
0.208809
613
21
123
29.190476
0.806186
0.073409
0
0
1
0
0.116608
0.053004
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7459f1af25e817438b4fba683395a1e8cb315aa
625
py
Python
users/auth/token_cache.py
sevenstar77/coin_dev
2dd898d15fcb5f7bf4cfd37d5601b23b36526f3f
[ "MIT" ]
null
null
null
users/auth/token_cache.py
sevenstar77/coin_dev
2dd898d15fcb5f7bf4cfd37d5601b23b36526f3f
[ "MIT" ]
null
null
null
users/auth/token_cache.py
sevenstar77/coin_dev
2dd898d15fcb5f7bf4cfd37d5601b23b36526f3f
[ "MIT" ]
null
null
null
from django.core.cache import cache def set_cache(user_no, token): cache.set('token:userno:' + user_no, token, timeout=None) cache.set('token:value:'+ token, user_no, timeout=None) def get_token_from_cache(user_no): try: token = cache.get('token:userno:' + user_no) except: tok...
26.041667
65
0.656
90
625
4.344444
0.222222
0.153453
0.084399
0.130435
0.107417
0
0
0
0
0
0
0
0.216
625
24
66
26.041667
0.797959
0
0
0.210526
0
0
0.119808
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f74a289b7b4788b88050af5050044eda2804967f
7,357
py
Python
algotrade/broker/broker.py
ZhizhongPan/algo_trade
5fffa50205c0fb0dd6866872798b3844404c94bb
[ "Apache-2.0" ]
null
null
null
algotrade/broker/broker.py
ZhizhongPan/algo_trade
5fffa50205c0fb0dd6866872798b3844404c94bb
[ "Apache-2.0" ]
null
null
null
algotrade/broker/broker.py
ZhizhongPan/algo_trade
5fffa50205c0fb0dd6866872798b3844404c94bb
[ "Apache-2.0" ]
1
2020-06-19T12:10:56.000Z
2020-06-19T12:10:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'phil.zhang' from abc import ABCMeta, abstractmethod, abstractproperty import six from algotrade.event_engine import EventEngineMixin # class BaseBroker(six.with_metaclass(ABCMeta), EventEngineMixin): # def __init__(self): # self.event_engine ...
39.983696
146
0.672285
938
7,357
5.183369
0.206823
0.049362
0.041958
0.067462
0.483752
0.430276
0.404977
0.347799
0.308515
0.286713
0
0.001446
0.247927
7,357
183
147
40.202186
0.877282
0.657741
0
0.488372
0
0
0.005675
0
0
0
0
0
0
1
0.302326
false
0
0.069767
0.023256
0.418605
0
0
0
0
null
0
0
0
0
0
0
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
f74b9b46afcd173977e53566b111558a07e14398
11,581
py
Python
python/pcache.py
peeweek/pcache
358cbeeadf59c55f891b03442cb9424e9417f60e
[ "MIT" ]
16
2018-11-07T09:49:48.000Z
2021-07-18T09:50:40.000Z
python/pcache.py
peeweek/pcache
358cbeeadf59c55f891b03442cb9424e9417f60e
[ "MIT" ]
null
null
null
python/pcache.py
peeweek/pcache
358cbeeadf59c55f891b03442cb9424e9417f60e
[ "MIT" ]
3
2019-06-12T12:19:09.000Z
2020-07-06T15:00:40.000Z
import os import sys import hou import struct class pcache(object): fileName = "" fileType = 'a' fileVersion = 1.0 propertyNames = [] propertyTypes = [] propertyData = bytearray() itemcount = 0 itemstride = 0 defaultBindings = { 'P': 'position', 'N': 'normal', ...
38.732441
115
0.504188
1,126
11,581
5.087034
0.180284
0.05639
0.01257
0.02514
0.269728
0.211941
0.202165
0.171089
0.118715
0.089385
0
0.007071
0.389431
11,581
298
116
38.862416
0.802998
0.046369
0
0.20332
0
0
0.066715
0
0
0
0
0
0
0
null
null
0
0.016598
null
null
0.024896
0
0
0
null
0
0
0
0
0
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
f74fdb4eec276c2c8867a28bacbf2b9c7599cb69
945
py
Python
Maths/src/mmmr.py
joshturge/year12
9775306e0e3b84f1236a076776c34b006cb93246
[ "MIT" ]
null
null
null
Maths/src/mmmr.py
joshturge/year12
9775306e0e3b84f1236a076776c34b006cb93246
[ "MIT" ]
null
null
null
Maths/src/mmmr.py
joshturge/year12
9775306e0e3b84f1236a076776c34b006cb93246
[ "MIT" ]
null
null
null
from math import ceil, floor from collections import Counter def mean(numLS): """ Finds the sum of a list of numbers and divided by the length of the list leaving the mean. """ return sum(numLS) / float(len(numLS)) def median(numLS): """ The middle value of a set of ordered data. """ ...
22.5
57
0.601058
133
945
4.263158
0.413534
0.056437
0.031746
0.028219
0
0
0
0
0
0
0
0.047346
0.262434
945
41
58
23.04878
0.766141
0.174603
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0.043478
0.565217
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f753dffc2fb865ec5ac4199a5e21df845c7e2b12
1,244
py
Python
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
2
2021-03-18T06:07:09.000Z
2021-05-08T22:14:14.000Z
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
# NUMPY MANIPULATIONS OF ARRAYS # Santiago Garcia Arango # ------------------------------------------------------------------------- import numpy as np my_array = np.arange(1, 11) # [1,2,..,8,9,10] print("my_array=\n", my_array, "\n") # -----------------CHECKING CONDITIONS IN ARRAY ITEMS---------------------- # FIR...
32.736842
75
0.596463
199
1,244
3.61809
0.386935
0.033333
0.033333
0.033333
0.138889
0.030556
0.019444
0
0
0
0
0.045802
0.157556
1,244
37
76
33.621622
0.641221
0.629421
0
0
0
0
0.229545
0.052273
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
f755bd7e652e22d7b8474fc340d583922f94619f
1,535
py
Python
app/src/__init__.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
app/src/__init__.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
app/src/__init__.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_httpauth import HTTPBasicAuth import logging from logging.handlers import RotatingFileHandler # initialization app = Flask(__name__) handler = RotatingFileHandler('foo.log', maxBytes=10000, backupCount=1) handler.setLevel(logging.INFO) app.lo...
33.369565
76
0.786971
196
1,535
5.969388
0.423469
0.053846
0.094017
0.042735
0.061538
0
0
0
0
0
0
0.026239
0.106189
1,535
45
77
34.111111
0.826531
0.220847
0
0
0
0
0.272574
0.171308
0
0
0
0
0
1
0
false
0.148148
0.185185
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f75dc3238c0f285c4dd7822670595a2ec2430d44
4,679
py
Python
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
1
2020-03-04T04:34:55.000Z
2020-03-04T04:34:55.000Z
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
null
null
null
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/06_cli.ipynb (unless otherwise specified). __all__ = ['bump_version', 'nbdev_bump_version', 'nbdev_install_git_hooks', 'extract_tgz', 'nbdev_new'] # Cell from .imports import * from .export import * from .sync import * from .merge import * from .export2html import * fro...
37.432
219
0.685189
677
4,679
4.612999
0.358936
0.025616
0.024015
0.025616
0.079731
0.060839
0
0
0
0
0
0.00286
0.178029
4,679
125
220
37.432
0.809152
0.092969
0
0.030928
1
0.020619
0.430625
0.032634
0
0
0
0
0
1
0.061856
false
0
0.113402
0
0.195876
0.051546
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f75e37c8f400e30099681450ab0f9a8bda1e56f0
703
py
Python
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
import requests import json test_sample = json.dumps({'data': [ [1,2,3,4,54,6,7,8,88,10], [10,9,8,37,36,45,4,33,2,1] ]}) test_sample = str(test_sample) def test_ml_service(scoreurl, scorekey): assert scoreurl != None if scorekey is None: headers = {'Content-Type':'application/js...
30.565217
94
0.642959
96
703
4.635417
0.520833
0.089888
0.148315
0.175281
0.148315
0
0
0
0
0
0
0.05151
0.199147
703
22
95
31.954545
0.738899
0
0
0
0
0
0.179148
0
0
0
0
0
0.277778
1
0.055556
false
0
0.111111
0
0.166667
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
f76bf215b059f317c9ad61f90d151ac3137850cc
3,349
py
Python
txstatsd/server/protocol.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
null
null
null
txstatsd/server/protocol.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
1
2020-07-10T23:35:49.000Z
2020-07-10T23:35:49.000Z
txstatsd/server/protocol.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
1
2020-07-13T05:31:58.000Z
2020-07-13T05:31:58.000Z
# Copyright (C) 2011-2012 Canonical Services Ltd # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
38.94186
78
0.707973
413
3,349
5.653753
0.372881
0.071949
0.046253
0.046253
0.468094
0.453961
0.453961
0.453961
0.416274
0.416274
0
0.003867
0.227829
3,349
85
79
39.4
0.899072
0.349657
0
0.583333
0
0
0
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f770cec6b51807f35d96cbac7e9bcc2a23d5a1cd
16,572
py
Python
Algorithms/graphs/test.py
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
1
2017-07-10T21:05:46.000Z
2017-07-10T21:05:46.000Z
Algorithms/graphs/test.py
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
null
null
null
Algorithms/graphs/test.py
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
null
null
null
class PriorityQueueBase: ''' abstract base class for a priority queue ''' class _Item: __slots_ = '_key', '_value' def __init__(self, k, v): self._key = k self._value = v def __lt__(self, other): return self._key < other._key def is_empty(self...
28.523236
122
0.534697
2,165
16,572
3.918707
0.098845
0.079208
0.033711
0.019802
0.699906
0.676214
0.634371
0.621523
0.611975
0.611975
0
0.006083
0.345281
16,572
580
123
28.572414
0.775853
0.130642
0
0.626866
0
0
0.0118
0
0
0
0
0
0
1
0.176617
false
0
0
0.029851
0.300995
0.002488
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f773199cdb83e558b03afa570a8a4621c60983c4
1,114
py
Python
ice/debug.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
578
2015-01-02T12:43:52.000Z
2022-03-27T23:45:32.000Z
ice/debug.py
raphaelcastaneda/Ice
b380de7fc7830251b883fb55c46fea894058afa3
[ "MIT" ]
271
2015-01-05T01:56:38.000Z
2021-08-14T02:51:24.000Z
ice/debug.py
raphaelcastaneda/Ice
b380de7fc7830251b883fb55c46fea894058afa3
[ "MIT" ]
156
2015-01-07T15:43:20.000Z
2021-12-11T19:10:44.000Z
# encoding: utf-8 import os import pastebin import filesystem import paths import settings def debug_log_contents(): fs = filesystem.RealFilesystem() return "\n".join([ debug_string_for_file(settings.settings_file_path('config.txt', fs)), debug_string_for_file(settings.settings_file_path('consoles.txt',...
23.702128
76
0.707361
151
1,114
4.97351
0.417219
0.073236
0.093209
0.11984
0.211718
0.211718
0.181092
0.181092
0.125166
0.125166
0
0.022246
0.152603
1,114
46
77
24.217391
0.773305
0.013465
0
0
0
0
0.183227
0.02917
0
0
0
0
0
0
null
null
0
0.138889
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
f77b3cb56ecec2941019bc98135a34273e5e55ab
3,622
py
Python
vk_bot.py
kvrasuli/quiz_bot
ccbf42066eca7e47e6d2e694fab746c862e5e840
[ "MIT" ]
null
null
null
vk_bot.py
kvrasuli/quiz_bot
ccbf42066eca7e47e6d2e694fab746c862e5e840
[ "MIT" ]
null
null
null
vk_bot.py
kvrasuli/quiz_bot
ccbf42066eca7e47e6d2e694fab746c862e5e840
[ "MIT" ]
null
null
null
import vk_api from vk_api.longpoll import VkLongPoll, VkEventType from vk_api.keyboard import VkKeyboard, VkKeyboardColor from vk_api.utils import get_random_id from dotenv import load_dotenv from unpacker import unpack_questions import os import random import redis import logging logger = logging.getLogger(__file__) ...
34.495238
88
0.68222
461
3,622
5.084599
0.264642
0.03413
0.046928
0.048635
0.37884
0.37372
0.334044
0.261092
0.1907
0.171075
0
0.001047
0.209277
3,622
104
89
34.826923
0.815642
0
0
0.202247
0
0
0.10381
0
0
0
0
0
0
1
0.067416
false
0.05618
0.11236
0
0.191011
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f77f8fc76a13751b255415b03e0288763c9f46a0
8,420
py
Python
vistrails/db/bin/sql_gen_objects.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/db/bin/sql_gen_objects.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/db/bin/sql_gen_objects.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
34.227642
79
0.584204
918
8,420
5.299564
0.252723
0.018499
0.040699
0.054265
0.351079
0.301336
0.246865
0.216444
0.207811
0.176773
0
0.005179
0.311995
8,420
245
80
34.367347
0.834628
0.202257
0
0.427746
0
0
0.015562
0
0
0
0
0.004082
0
1
0.184971
false
0.063584
0.011561
0.080925
0.491329
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f783c7d956c2efc0cb4921dd6357b6611624950a
572
py
Python
lintcode/035-[DUP]-Search-Insert-Position/SearchInsertPosition_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/035-[DUP]-Search-Insert-Position/SearchInsertPosition_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/035-[DUP]-Search-Insert-Position/SearchInsertPosition_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: """ @param A : a list of integers @param target : an integer to be inserted @return : an integer """ def searchInsert(self, A, target): # write your code here l, r = 0, len(A) - 1 while l <= r: m = (l + r) / 2 if A[m] == target: ...
20.428571
45
0.431818
80
572
3.0875
0.5125
0.024292
0.064777
0
0
0
0
0
0
0
0
0.041401
0.451049
572
27
46
21.185185
0.745223
0.199301
0
0
0
0
0
0
0
0
0
0.037037
0
1
0.055556
false
0
0
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f7849828e179adef8b13c0f635a526b1a8537d37
507
py
Python
mlproj_template/_nbdev.py
WM-SEMERU/mlproj_template
332e48221db40f54e495b1015757f6815fbf578b
[ "Apache-2.0" ]
1
2021-11-16T20:01:36.000Z
2021-11-16T20:01:36.000Z
mlproj_template/_nbdev.py
WM-SEMERU/mlproj_template
332e48221db40f54e495b1015757f6815fbf578b
[ "Apache-2.0" ]
2
2021-09-28T05:47:01.000Z
2022-02-26T10:18:44.000Z
mlproj_template/_nbdev.py
WM-SEMERU/mlproj_template
332e48221db40f54e495b1015757f6815fbf578b
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"example_func": "00_core.ipynb", "process_data": "01_cli.ipynb", "train": "01_cli.ipynb", "evaluate": "01_cli.ipynb", "reproduce": "01_cli.ipynb"} modules = ["core.py", ...
26.684211
67
0.639053
69
507
4.405797
0.594203
0.065789
0.131579
0
0
0
0
0
0
0
0
0.024096
0.18146
507
18
68
28.166667
0.708434
0.071006
0
0
1
0
0.541578
0
0
0
0
0
0
1
0.090909
false
0
0
0.090909
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f787644b0a76cd3d26a3fd95e76b64d8f504e865
1,183
py
Python
setup.py
pthomaid/constellations
517c0d825ae45fe9bde92b8873a52ff22941764b
[ "MIT" ]
1
2016-05-11T15:42:45.000Z
2016-05-11T15:42:45.000Z
setup.py
pthomaid/constellations
517c0d825ae45fe9bde92b8873a52ff22941764b
[ "MIT" ]
2
2016-01-19T17:14:27.000Z
2016-01-20T20:36:35.000Z
setup.py
pthomaid/constellations
517c0d825ae45fe9bde92b8873a52ff22941764b
[ "MIT" ]
null
null
null
from setuptools import setup # Note: setuptools are not part of the python installation, # need to install separately, using pip for example, befor running this setup def readme(): with open('README.md') as f: return f.read() setup( name='constellations', version='0.0.3', author='Panagiotis...
34.794118
77
0.629755
118
1,183
6.279661
0.728814
0.021592
0.037787
0.045884
0.105263
0.105263
0
0
0
0
0
0.005599
0.245139
1,183
33
78
35.848485
0.824188
0.113271
0
0
0
0
0.529637
0
0
0
0
0
0
1
0.035714
true
0
0.035714
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f78817e9d29021fbe55cf473dfcd80bb7e66d558
351
py
Python
spry/api.py
Ofekmeister/spry
0a4ea14236938c07bfade59147f7dc169c537663
[ "MIT" ]
1
2017-09-24T12:23:52.000Z
2017-09-24T12:23:52.000Z
spry/api.py
Ofekmeister/spry
0a4ea14236938c07bfade59147f7dc169c537663
[ "MIT" ]
null
null
null
spry/api.py
Ofekmeister/spry
0a4ea14236938c07bfade59147f7dc169c537663
[ "MIT" ]
1
2017-06-10T14:15:58.000Z
2017-06-10T14:15:58.000Z
from spry.http import HTTPFileSync, HTTPSession def httpget(url, path, persist=True, parts=4, limit=None, timeout=None, restart=False, **kwargs): session = HTTPFileSync('get', url, path, persist=persist, parts=parts, speed_limit=limit, timeout=timeout, restart=restart, **kwargs) ses...
35.1
97
0.680912
42
351
5.666667
0.595238
0.058824
0.117647
0
0
0
0
0
0
0
0
0.003559
0.19943
351
9
98
39
0.843416
0
0
0
0
0
0.008547
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7895eb770604db0a536214f40e504149a406d33
3,323
py
Python
blog/migrations/0001_initial.py
SubhanRzayev/E-commerce-Tmart
239218397f4ee55ab6ae4ef1798fbc83bc7d1159
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
SubhanRzayev/E-commerce-Tmart
239218397f4ee55ab6ae4ef1798fbc83bc7d1159
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
SubhanRzayev/E-commerce-Tmart
239218397f4ee55ab6ae4ef1798fbc83bc7d1159
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-06 18:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
44.306667
170
0.589227
337
3,323
5.661721
0.305638
0.037736
0.02935
0.046122
0.502621
0.474319
0.404088
0.404088
0.359015
0.299266
0
0.014445
0.27084
3,323
74
171
44.905405
0.773009
0.013542
0
0.41791
1
0
0.101954
0.006716
0
0
0
0
0
1
0
false
0
0.059701
0
0.119403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7916cac104aaa582d7695c883d8072298ac7e27
2,907
py
Python
tests/test_metrics.py
Darel13712/rs_metrics
bf1c2f6e02537508255bbf675c48a14f512e51de
[ "WTFPL" ]
5
2020-06-03T17:41:26.000Z
2022-01-02T06:59:25.000Z
tests/test_metrics.py
Darel13712/rs_metrics
bf1c2f6e02537508255bbf675c48a14f512e51de
[ "WTFPL" ]
null
null
null
tests/test_metrics.py
Darel13712/rs_metrics
bf1c2f6e02537508255bbf675c48a14f512e51de
[ "WTFPL" ]
1
2021-01-16T18:47:28.000Z
2021-01-16T18:47:28.000Z
import numpy as np import pandas as pd import pytest from rs_metrics.metrics import _ndcg_score from rs_metrics import * from rs_metrics.statistics import item_pop def test_dcg_score_1(): assert _ndcg_score([1], [1], 1) == 1 def test_dcg_score_0(): assert _ndcg_score([1], [0], 1) == 0 def test_dcg_score_...
24.225
88
0.529756
561
2,907
2.55615
0.115865
0.048815
0.037657
0.048815
0.504881
0.396792
0.333333
0.311715
0.30265
0.151325
0
0.120328
0.24527
2,907
119
89
24.428571
0.533273
0
0
0.1875
0
0
0.022704
0
0
0
0
0
0.225
1
0.2375
false
0
0.075
0.0125
0.325
0
0
0
0
null
0
0
0
0
0
0
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
f7930144572d98cc4217bdb4401f17132b1ab934
575
py
Python
old/FEniCS/homogenization/netgen_meshes/oht_8layers_3patches.py
Infaehig/ThesisPython
0365cda2d006fdc3e762535ec6d0491007a81928
[ "BSD-3-Clause" ]
null
null
null
old/FEniCS/homogenization/netgen_meshes/oht_8layers_3patches.py
Infaehig/ThesisPython
0365cda2d006fdc3e762535ec6d0491007a81928
[ "BSD-3-Clause" ]
null
null
null
old/FEniCS/homogenization/netgen_meshes/oht_8layers_3patches.py
Infaehig/ThesisPython
0365cda2d006fdc3e762535ec6d0491007a81928
[ "BSD-3-Clause" ]
1
2020-10-25T22:28:39.000Z
2020-10-25T22:28:39.000Z
import os, sys sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import sa_utils import netgen_csg import numpy as np if __name__ == '__main__': prefix = 'oht_8layers_3patches' logger = sa_utils.LogWrapper(prefix+'/'+prefix) netgen_csg.create_patches(box = np.array([0., 0., ...
41.071429
159
0.657391
90
575
3.933333
0.555556
0.050847
0.073446
0.084746
0.090395
0
0
0
0
0
0
0.068817
0.191304
575
13
160
44.230769
0.692473
0
0
0
0
0
0.050435
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f79a287bf63f36e18e8b5f1a88669634f235cab6
2,422
py
Python
SHA-1.py
jameswmccarty/CryptoToyUtils
49b4c132cc16937181ca6cf2d91f9355e3246a40
[ "MIT" ]
1
2021-11-17T03:03:01.000Z
2021-11-17T03:03:01.000Z
SHA-1.py
jameswmccarty/CryptoToyUtils
49b4c132cc16937181ca6cf2d91f9355e3246a40
[ "MIT" ]
null
null
null
SHA-1.py
jameswmccarty/CryptoToyUtils
49b4c132cc16937181ca6cf2d91f9355e3246a40
[ "MIT" ]
null
null
null
#/usr/bin/python # A pure Python implementation of the SHA-1 algorithm # Code adapted from Wikipedia https://en.wikipedia.org/wiki/SHA-1 # Not for use in production code :-) from struct import pack from struct import unpack class SHA1: # Initial values h0 = 0x67452301 h1 = 0xEFCDAB89 h2 = 0x98BADCFE h3 = 0x10...
22.425926
80
0.580925
414
2,422
3.369565
0.355072
0.007168
0.017204
0.031541
0.032975
0
0
0
0
0
0
0.1
0.269199
2,422
107
81
22.635514
0.688136
0.274979
0
0.059701
0
0
0.043178
0
0
0
0.096718
0
0
0
null
null
0
0.029851
null
null
0.029851
0
0
0
null
0
0
0
0
0
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
f79f162ff55d3340df99e7055b1eb9963c1c0a98
3,539
py
Python
app.py
filiperfernandes/ai-domotics
5b5277f3b7dba2cb0d5680b61593a1368258e5a2
[ "MIT" ]
null
null
null
app.py
filiperfernandes/ai-domotics
5b5277f3b7dba2cb0d5680b61593a1368258e5a2
[ "MIT" ]
null
null
null
app.py
filiperfernandes/ai-domotics
5b5277f3b7dba2cb0d5680b61593a1368258e5a2
[ "MIT" ]
null
null
null
#!flask/bin/python from flask import Flask, jsonify, abort, request, make_response, url_for #from flask_httpauth import HTTPBasicAuth from led2 import * #from temp2 import * import os, subprocess from subprocess import Popen, PIPE app = Flask(__name__, static_url_path = "") @app.errorhandler(400) def not_found(error)...
22.541401
74
0.598474
487
3,539
4.252567
0.223819
0.069532
0.07436
0.090295
0.340898
0.312409
0.264606
0.192178
0.113955
0
0
0.026531
0.169257
3,539
156
75
22.685897
0.677891
0.021475
0
0.376923
0
0
0.153223
0
0
0
0
0
0
0
null
null
0
0.030769
null
null
0.015385
0
0
0
null
0
0
0
0
0
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
f79f51b44a3d187164e9336b6d5bad3706416a2b
422
py
Python
rpginfo.py
haroldboi/OOP-Python-Adventure-Game
09ce89137a86ecaf4fd5f365bf668bc588c52c85
[ "Unlicense" ]
null
null
null
rpginfo.py
haroldboi/OOP-Python-Adventure-Game
09ce89137a86ecaf4fd5f365bf668bc588c52c85
[ "Unlicense" ]
null
null
null
rpginfo.py
haroldboi/OOP-Python-Adventure-Game
09ce89137a86ecaf4fd5f365bf668bc588c52c85
[ "Unlicense" ]
null
null
null
class RPGinfo(): author = 'BigBoi' def __init__(self,name): self.title = name def welcome(self): print("Welcome to " + self.title) @staticmethod def info(): print("Made using my amazing powers and Raseberry Pi's awesome team") @classmethod def credits(c...
26.375
79
0.582938
50
422
4.84
0.68
0.07438
0
0
0
0
0
0
0
0
0
0
0.303318
422
15
80
28.133333
0.823129
0
0
0
0
0
0.262899
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.461538
0.307692
0
0
0
null
0
0
0
0
0
0
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
f7a0a4b09611e82dc9868282c58041ab24fbb56c
1,306
py
Python
Python/easy/1356_sort_integers_by_the_number_of_1_bits.py
CalmScout/LeetCode
62720934b5906e6b255c7e91d3a6fa1d713e4391
[ "MIT" ]
null
null
null
Python/easy/1356_sort_integers_by_the_number_of_1_bits.py
CalmScout/LeetCode
62720934b5906e6b255c7e91d3a6fa1d713e4391
[ "MIT" ]
null
null
null
Python/easy/1356_sort_integers_by_the_number_of_1_bits.py
CalmScout/LeetCode
62720934b5906e6b255c7e91d3a6fa1d713e4391
[ "MIT" ]
null
null
null
""" Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and in case of two or more integers have the same number of 1's you have to sort them in ascending order. Return the sorted array. Constraints: * 1 <= arr.length <= 500 ...
29.681818
111
0.579632
217
1,306
3.451613
0.368664
0.080107
0.140187
0.160214
0.296395
0.296395
0.296395
0.296395
0.296395
0.24032
0
0.15249
0.261868
1,306
43
112
30.372093
0.624481
0.261103
0
0.384615
0
0
0.009404
0
0
0
0
0
0.192308
1
0.038462
false
0
0.038462
0
0.153846
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
f7a12986fdae126653cd62fe61b08af823a55725
902
py
Python
setup.py
best-doctor/django-mass-edit
7adc622b05e0dbaf994b17322d5bc8d755e10bc1
[ "MIT" ]
null
null
null
setup.py
best-doctor/django-mass-edit
7adc622b05e0dbaf994b17322d5bc8d755e10bc1
[ "MIT" ]
null
null
null
setup.py
best-doctor/django-mass-edit
7adc622b05e0dbaf994b17322d5bc8d755e10bc1
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = "django-mass-edit", version = "3.3.1", author = "David Burke", author_email = "david@burkesoftware.com", description = ("Make bulk changes in the Django admin interface"), license = "BSD", keywords = "django admin", url = "https:...
33.407407
70
0.626386
92
902
6.076087
0.673913
0.101968
0.134168
0
0
0
0
0
0
0
0
0.011645
0.238359
902
26
71
34.692308
0.802038
0
0
0
0
0
0.532151
0.025499
0
0
0
0
0
1
0
true
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e3945dc15d11af7274aca065acfaf6ec4a130a8d
516
py
Python
src/impl/database/todo.py
OpenDiscordBots/api
6f8680256ef5a6cd7ffcf0890dd603e324ad53ce
[ "MIT" ]
1
2022-01-24T14:38:45.000Z
2022-01-24T14:38:45.000Z
src/impl/database/todo.py
OpenDiscordBots/api
6f8680256ef5a6cd7ffcf0890dd603e324ad53ce
[ "MIT" ]
null
null
null
src/impl/database/todo.py
OpenDiscordBots/api
6f8680256ef5a6cd7ffcf0890dd603e324ad53ce
[ "MIT" ]
null
null
null
from ormar import BigInteger, Boolean, ForeignKey, Model, String from .metadata import database, metadata from .user import User class Todo(Model): class Meta: database = database metadata = metadata tablename = "todos" # pyright: reportGeneralTypeIssues=false id: int = BigIntege...
27.157895
64
0.695736
60
516
5.933333
0.566667
0.089888
0.067416
0.101124
0
0
0
0
0
0
0
0.014778
0.213178
516
18
65
28.666667
0.862069
0.073643
0
0
0
0
0.02521
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e3977549a2bc37970146f5981bd707b5c81adb5a
759
py
Python
exercises/exercise2.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise2.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise2.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
def previous_answer(): #1. num1 = int(input("Please enter your number!")) if num1 % 2 == 0: print("Your number is EVEN number!") else: print("Your number is ODD number!") #2. num2 = int(input("Please enter second number!")) num3 = int(input("Please enter third number!")) ...
20.513514
70
0.598155
111
759
4.081081
0.351351
0.07064
0.12362
0.16777
0.271523
0.229581
0.136865
0
0
0
0
0.029304
0.280632
759
36
71
21.083333
0.800366
0.042161
0
0.2
0
0
0.472145
0
0
0
0
0
0
1
0.05
false
0
0
0
0.05
0.35
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
e39b7e7a537e999bca31fdfe4071974a4c172e3f
48,683
py
Python
python/vcin_vdt_configure_from_vsphere.py
jmlcv/vspk-examples
825d9bd6093b5ed19419ca15898085ae85731657
[ "BSD-3-Clause" ]
25
2015-08-21T22:45:31.000Z
2021-09-27T12:25:00.000Z
python/vcin_vdt_configure_from_vsphere.py
jmlcv/vspk-examples
825d9bd6093b5ed19419ca15898085ae85731657
[ "BSD-3-Clause" ]
28
2015-10-09T16:54:14.000Z
2020-06-15T18:06:00.000Z
python/vcin_vdt_configure_from_vsphere.py
jmlcv/vspk-examples
825d9bd6093b5ed19419ca15898085ae85731657
[ "BSD-3-Clause" ]
30
2015-10-04T14:32:29.000Z
2022-01-03T13:18:03.000Z
# -*- coding: utf-8 -*- """ vcin_vdt_configure_from_vsphere is a script which will configure the full vCenter tree of Datacenters, Clusters and Hosts into the Nuage vCenter Integration Node and the Nuage vCenter Deployment Tool. It is also capable of configuring the ESXi hosts with the correct Agent VM settings. This ...
63.060881
700
0.685825
7,014
48,683
4.565726
0.083832
0.017799
0.023982
0.025981
0.533506
0.439951
0.339933
0.297745
0.276699
0.263865
0
0.015315
0.220755
48,683
771
701
63.142672
0.828843
0.250724
0
0.130261
0
0.0501
0.268145
0.003522
0
0
0
0
0
1
0.014028
false
0.08016
0.022044
0
0.068136
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e39c4167c7725cb9384550ebb3f4b5731ff013f7
585
py
Python
model/model.py
ricky89/Hair-CAM
4b3d40a98982ee010299855f78de113b6b6ef589
[ "MIT" ]
2
2020-04-15T20:56:44.000Z
2020-04-28T16:48:19.000Z
model/model.py
ricky89/Hair-CAM
4b3d40a98982ee010299855f78de113b6b6ef589
[ "MIT" ]
1
2022-03-12T00:26:01.000Z
2022-03-12T00:26:01.000Z
model/model.py
ricky89/Hair-CAM
4b3d40a98982ee010299855f78de113b6b6ef589
[ "MIT" ]
1
2021-02-21T13:23:54.000Z
2021-02-21T13:23:54.000Z
import torch.nn as nn import torch.nn.functional as F from torchvision.models.resnet import resnet18 as _resnet18 def resnet18(num_classes, use_pretrained=False, **kwargs): ''' Resnet18 model :param pretrained: Bool, whether to load pretrained weights into model :param num_classes: Int, number of clas...
32.5
74
0.736752
81
585
5.17284
0.518519
0.071599
0.062053
0
0
0
0
0
0
0
0
0.021008
0.186325
585
17
75
34.411765
0.859244
0.338462
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e3a2d7b36f4348351c6ffb5ce1dcea701004a564
1,625
py
Python
deathgod/oldstuff/entity_list.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
deathgod/oldstuff/entity_list.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
deathgod/oldstuff/entity_list.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ entity_list.py Created by William Makley on 2008-04-02. Copyright (c) 2008 Tritanium Enterprises. All rights reserved. """ def compare_elist(e1, e2): """Comparison function for entities.""" sp1 = e1.sorting_priority sp2 = e2.sorting_priority if sp1 > sp2: ...
22.887324
70
0.527385
196
1,625
4.234694
0.44898
0.025301
0.028916
0.026506
0
0
0
0
0
0
0
0.030097
0.366154
1,625
70
71
23.214286
0.775728
0.234462
0
0.093023
0
0
0.006645
0
0
0
0
0
0
1
0.209302
false
0
0
0.023256
0.44186
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
1
0
0
0
0
0
0
0
1
e3a7454ce1b8135172599b4f9a022a061e262ca6
14,535
py
Python
send_recurring.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
29
2020-03-27T14:48:36.000Z
2021-07-11T01:46:14.000Z
send_recurring.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
1
2020-05-07T19:57:07.000Z
2020-05-09T22:36:04.000Z
send_recurring.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
9
2020-03-27T17:36:42.000Z
2020-05-03T22:19:12.000Z
# Sends scheduled triggered emails for a given mailing for a given day by # uploading a cons group and personalization dataset to BSD. # # This is especially useful in a BSD "recurring mailing" context -- if a # recurring mailing is set to send to a cons group, with a template using that # personalization dataset, you ...
39.931319
153
0.619814
1,617
14,535
5.243661
0.197279
0.230923
0.067815
0.025946
0.319141
0.202972
0.135511
0.079019
0.079019
0.053072
0
0.003368
0.325903
14,535
363
154
40.041322
0.862013
0.129481
0
0.178988
0
0.003891
0.12803
0.05058
0
0
0
0.002755
0
1
0.007782
false
0
0.046693
0
0.077821
0.046693
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3a7865f2ef4239581397faaa0e355d90c9ce9ba
1,462
py
Python
setup.py
silas-hw/Morsepy
af5409b14879bde49fb77ea9eff6529eecefdbb0
[ "MIT" ]
1
2020-07-20T22:25:46.000Z
2020-07-20T22:25:46.000Z
setup.py
silas-hw/Morsepy
af5409b14879bde49fb77ea9eff6529eecefdbb0
[ "MIT" ]
null
null
null
setup.py
silas-hw/Morsepy
af5409b14879bde49fb77ea9eff6529eecefdbb0
[ "MIT" ]
2
2020-12-20T03:45:12.000Z
2021-03-30T08:39:03.000Z
from setuptools import setup #get readmefile from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name = 'morsepy', packages = ['morsepy'], version = '0.3.2', ...
41.771429
103
0.643639
175
1,462
5.291429
0.6
0.12311
0.161987
0.168467
0.066955
0.066955
0.066955
0
0
0
0
0.01913
0.213406
1,462
35
104
41.771429
0.786087
0.124487
0
0
0
0.03125
0.47884
0.023511
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
e3adfe3d544c5206863a366bd0243e3032c51f31
393
py
Python
saleor/order/migrations/0081_auto_20200310_1917.py
mariuswallin/saleor
8eeeca751c11cc5c64e7ee6028eb4e7d89797c4c
[ "CC-BY-4.0" ]
null
null
null
saleor/order/migrations/0081_auto_20200310_1917.py
mariuswallin/saleor
8eeeca751c11cc5c64e7ee6028eb4e7d89797c4c
[ "CC-BY-4.0" ]
null
null
null
saleor/order/migrations/0081_auto_20200310_1917.py
mariuswallin/saleor
8eeeca751c11cc5c64e7ee6028eb4e7d89797c4c
[ "CC-BY-4.0" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-10 18:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0080_invoice'), ] operations = [ migrations.AlterField( model_name='order', name='language_code', ...
20.684211
64
0.592875
43
393
5.325581
0.837209
0
0
0
0
0
0
0
0
0
0
0.074733
0.284987
393
18
65
21.833333
0.740214
0.114504
0
0
1
0
0.106936
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3afc7eebf61fe2393090a33ad43c990a07ed098
680
py
Python
boucanpy/core/utils/validating.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
34
2019-11-16T17:22:15.000Z
2022-02-11T23:12:46.000Z
boucanpy/core/utils/validating.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
1
2021-02-09T09:34:55.000Z
2021-02-10T21:46:20.000Z
boucanpy/core/utils/validating.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
9
2019-11-18T22:18:07.000Z
2021-02-08T13:23:51.000Z
import re from ipaddress import IPv4Address DOMAIN_RE = re.compile("^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]\.)+([a-zA-Z0-9]{2,5})$") HOSTNAME_RE = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE) def is_valid_domain(domain): return DOMAIN_RE.fullmatch(domain) def is_valid_hostname(hostname): if len(ho...
26.153846
86
0.632353
105
680
3.980952
0.457143
0.028708
0.047847
0.057416
0.057416
0.057416
0.057416
0.057416
0.057416
0.057416
0
0.038462
0.197059
680
25
87
27.2
0.727106
0.070588
0
0.111111
0
0.055556
0.139683
0.136508
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
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
0
0
1
0
0
1
e3b6ba42fb3aa9af660e8efb3face72607141e2d
4,059
py
Python
python/general-python/check-server-cache/serverCache.py
NagarjunaManupati/ESRI
5e14e116b093d1231ee11fa2fc0bf9882aed8ad8
[ "Apache-2.0" ]
272
2015-02-11T16:26:39.000Z
2022-03-31T08:47:33.000Z
python/general-python/check-server-cache/serverCache.py
NagarjunaManupati/ESRI
5e14e116b093d1231ee11fa2fc0bf9882aed8ad8
[ "Apache-2.0" ]
254
2015-02-11T01:12:35.000Z
2021-04-22T22:14:20.000Z
python/general-python/check-server-cache/serverCache.py
NagarjunaManupati/ESRI
5e14e116b093d1231ee11fa2fc0bf9882aed8ad8
[ "Apache-2.0" ]
211
2015-02-10T00:09:07.000Z
2022-02-24T12:27:40.000Z
## serverCache.py ## ## Module that will allow you to use the RESTFul endpoints on the ## server for further manipulation ## ## Written By: Alexander N. & Scott P. ## ## Created On: August 18, 2014 """ This script is designed to generate a token login and then reach out to a server service passing that token and re...
39.794118
145
0.645726
452
4,059
5.64823
0.426991
0.021543
0.0047
0.006267
0.147278
0.042303
0.042303
0.042303
0.042303
0.042303
0
0.008704
0.235772
4,059
101
146
40.188119
0.814313
0.285785
0
0
0
0
0.184211
0.057895
0
0
0
0
0
1
0.079365
false
0.111111
0.111111
0
0.253968
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e3c1722eba09f41222352bf54962a3859566702a
384
py
Python
tests/test_ops/test_info.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
tests/test_ops/test_info.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
tests/test_ops/test_info.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import torch class TestInfo: def test_info(self): if not torch.cuda.is_available(): return from mmcv.ops import get_compiler_version, get_compiling_cuda_version cv = get_compiler_version() ccv = get_compiling_cuda_version...
25.6
77
0.669271
51
384
4.803922
0.607843
0.089796
0.146939
0.187755
0
0
0
0
0
0
0
0
0.273438
384
14
78
27.428571
0.878136
0.117188
0
0
0
0
0
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.5
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
e3c350cd154f82f9b7a9c483f69c054bb9dc9e44
2,369
py
Python
tests/plugins/test_dash.py
gromit1811/streamlink
ad95081e894316e154800cecf1c7b5e7062535f3
[ "BSD-2-Clause" ]
null
null
null
tests/plugins/test_dash.py
gromit1811/streamlink
ad95081e894316e154800cecf1c7b5e7062535f3
[ "BSD-2-Clause" ]
null
null
null
tests/plugins/test_dash.py
gromit1811/streamlink
ad95081e894316e154800cecf1c7b5e7062535f3
[ "BSD-2-Clause" ]
null
null
null
import unittest from unittest.mock import patch from streamlink import Streamlink from streamlink.plugin.plugin import LOW_PRIORITY, NORMAL_PRIORITY, NO_PRIORITY, BIT_RATE_WEIGHT_RATIO from streamlink.plugins.dash import MPEGDASH class TestPluginMPEGDASH(unittest.TestCase): def setUp(self): self.session ...
47.38
105
0.710426
295
2,369
5.525424
0.247458
0.060736
0.077301
0.062577
0.688957
0.621472
0.554601
0.328834
0.277301
0.207362
0
0.01925
0.144787
2,369
49
106
48.346939
0.785291
0.011819
0
0.210526
0
0
0.225406
0.036784
0
0
0
0
0.421053
1
0.184211
false
0
0.131579
0
0.342105
0
0
0
0
null
0
0
0
0
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
e3c3dac143882d033fc268f3afef5fc4e95a447b
874
py
Python
tentative_test/fork_cross.py
HaolingZHANG/GenomeCompact
b118161dc470e3c07f9b3a58d059dbd8c7540981
[ "MIT" ]
null
null
null
tentative_test/fork_cross.py
HaolingZHANG/GenomeCompact
b118161dc470e3c07f9b3a58d059dbd8c7540981
[ "MIT" ]
null
null
null
tentative_test/fork_cross.py
HaolingZHANG/GenomeCompact
b118161dc470e3c07f9b3a58d059dbd8c7540981
[ "MIT" ]
null
null
null
import numpy from methods.dna import PatternDNA from methods.fuser import Fuser from methods.fuser import init_indices from methods.fuser import init_matched_group L = PatternDNA(["L"], dna_strand=numpy.array([["T", "T", "R"], ["C", "T", "N"]])) R = PatternDNA(["R"], dna_strand=numpy.array([["C", "G", "N"], [...
41.619048
106
0.608696
134
874
3.80597
0.298507
0.058824
0.109804
0.14902
0.366667
0.223529
0.223529
0
0
0
0
0.010929
0.162471
874
21
107
41.619048
0.685792
0.011442
0
0
0
0
0.059312
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e3c55e4bad90c2ad7a05a42782f93c56ee4c916b
276
py
Python
config.py
bartekpi/palettizer-python
6da9e1c358695b47dc16c9298a51d8d0420a6f73
[ "MIT" ]
null
null
null
config.py
bartekpi/palettizer-python
6da9e1c358695b47dc16c9298a51d8d0420a6f73
[ "MIT" ]
2
2021-09-08T01:44:27.000Z
2021-09-18T11:32:53.000Z
config.py
bartekpi/palettizer-python
6da9e1c358695b47dc16c9298a51d8d0420a6f73
[ "MIT" ]
null
null
null
import os import secrets FLASK_SECRET_KEY = os.environ.get('FLASK_SECRET_KEY', secrets.token_urlsafe(32)) N_CLUSTERS = 8 ALLOWED_EXTENSIONS = ['png', 'jpg', 'jpeg'] APP_NAME = 'pltzr-python' APP_TITLE = 'plttzrrrrr' APP_REPO = 'https://github.com/bartekpi/palettizer-python'
27.6
80
0.76087
40
276
5
0.775
0.11
0.14
0
0
0
0
0
0
0
0
0.012
0.094203
276
9
81
30.666667
0.788
0
0
0
0
0
0.336957
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3deb36373792dc2b4488e101b18c51a82e4ab29
2,872
py
Python
tests/test_identify.py
syllogio/syllogio-identifyPropositions
3d29b750129381629ad8598acd309f9e50d05050
[ "MIT" ]
null
null
null
tests/test_identify.py
syllogio/syllogio-identifyPropositions
3d29b750129381629ad8598acd309f9e50d05050
[ "MIT" ]
null
null
null
tests/test_identify.py
syllogio/syllogio-identifyPropositions
3d29b750129381629ad8598acd309f9e50d05050
[ "MIT" ]
null
null
null
from identifyPropositions import identifyText from unittest.mock import patch import spacy def test_syllogism(): assert identifyText("All men are mortal. Greeks are men. Greeks are mortal") == [ "All men are mortal", "Greeks are men", "Greeks are mortal", ] @patch("spacy.load", retur...
38.293333
452
0.664345
400
2,872
4.6925
0.29
0.067128
0.038359
0.063932
0.703783
0.703783
0.656367
0.58764
0.58764
0.58764
0
0.005587
0.252089
2,872
74
453
38.810811
0.867318
0.014972
0
0.16
0
0.06
0.528787
0
0
0
0
0
0.18
1
0.16
false
0
0.06
0
0.22
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
e3e3d9e77f87fd6b4c79b199223481ea2b92e5f9
32,327
py
Python
applications/structural_application/test_examples/balken.gid/balken_include.py
jiaqiwang969/Kratos-test
ed082abc163e7b627f110a1ae1da465f52f48348
[ "BSD-4-Clause" ]
null
null
null
applications/structural_application/test_examples/balken.gid/balken_include.py
jiaqiwang969/Kratos-test
ed082abc163e7b627f110a1ae1da465f52f48348
[ "BSD-4-Clause" ]
null
null
null
applications/structural_application/test_examples/balken.gid/balken_include.py
jiaqiwang969/Kratos-test
ed082abc163e7b627f110a1ae1da465f52f48348
[ "BSD-4-Clause" ]
null
null
null
################################################################## ######################## include.py ############################ ################################################################## ##### ekate - Enhanced KRATOS for Advanced Tunnel Enineering ##### ##### copyright by CIMNE, Barcelona, Spain ...
33.121926
210
0.334303
2,194
32,327
4.769371
0.360529
0.044725
0.048452
0.029243
0.237672
0.161506
0.122706
0.10388
0.095757
0.055715
0
0.117318
0.496118
32,327
975
211
33.155897
0.525078
0.136542
0
0.4284
0
0
0.018747
0.006963
0
0
0
0
0
0
null
null
0
0.01444
null
null
0.01083
0
0
0
null
0
0
0
0
0
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
e3e4dac5407530c5c3c2015bc5c0bca9a760f31d
2,279
py
Python
atom/compat.py
frmdstryr/atom
37563874ecc732db1554d5a90824a4428413ae7e
[ "BSD-3-Clause-Clear" ]
1
2021-04-10T13:32:49.000Z
2021-04-10T13:32:49.000Z
atom/compat.py
frmdstryr/atom
37563874ecc732db1554d5a90824a4428413ae7e
[ "BSD-3-Clause-Clear" ]
2
2021-06-08T20:54:09.000Z
2021-06-10T22:32:32.000Z
peterkush/lib/python3.6/site-packages/atom/compat.py
peter302/petergallary
3734eb6584598035a5ddad3d594f4c185d5c1964
[ "Unlicense" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013-2018, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
29.217949
79
0.609917
271
2,279
4.904059
0.501845
0.048909
0.022573
0.030098
0
0
0
0
0
0
0
0.008751
0.247916
2,279
77
80
29.597403
0.766628
0.516893
0
0
0
0
0.060484
0
0
0
0
0
0
1
0.142857
false
0
0.107143
0.035714
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e3e81c684430b6c73c936f1e875a0d7e55a814d8
8,059
py
Python
crawler/cdi/cde.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
108
2015-01-05T09:22:50.000Z
2022-03-15T23:59:53.000Z
crawler/cdi/cde.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
26
2015-01-04T10:35:53.000Z
2021-11-01T04:41:19.000Z
crawler/cdi/cde.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
48
2015-01-16T02:03:48.000Z
2022-03-15T23:59:55.000Z
#!/usr/local/bin/python2.6 # Crawl Document Exporter # Python code to export the crawling documents from the crawl repository out # # locate the input file and read the entire log file # input: a MySQL database query # output: a directory which contains the queried documents in hierachical order # (or just in a batch...
31.236434
86
0.687927
1,055
8,059
5.180095
0.345024
0.007685
0.010979
0.007685
0.075206
0.050137
0.050137
0.027447
0.017566
0
0
0.013778
0.20747
8,059
257
87
31.357977
0.841866
0.323489
0
0.08125
0
0
0.093645
0.008175
0
0
0
0
0
0
null
null
0
0.1625
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e3ee70e8bef012a11882705d1889581cf6cecddb
2,548
py
Python
ExperimentBasics/migrations/0013_retryexperimentparticipation_retryuseranswer.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
1
2022-03-16T11:17:06.000Z
2022-03-16T11:17:06.000Z
ExperimentBasics/migrations/0013_retryexperimentparticipation_retryuseranswer.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
null
null
null
ExperimentBasics/migrations/0013_retryexperimentparticipation_retryuseranswer.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2019-01-31 02:10 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Users', '0010_auto_20180606_00...
52
208
0.645604
261
2,548
6.08046
0.35249
0.040328
0.05293
0.083176
0.341525
0.341525
0.341525
0.341525
0.341525
0.341525
0
0.025164
0.220173
2,548
48
209
53.083333
0.773528
0.026295
0
0.243902
1
0
0.214689
0.100081
0
0
0
0
0
1
0
false
0
0.097561
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3efde46a5312735fd11f82c513aec60b2a1b45d
7,681
py
Python
nbgrader/tests/__init__.py
Patil2099/nbgrader
86f028459850d40d50ed6ff8d1c6043e31ce1a48
[ "BSD-3-Clause" ]
null
null
null
nbgrader/tests/__init__.py
Patil2099/nbgrader
86f028459850d40d50ed6ff8d1c6043e31ce1a48
[ "BSD-3-Clause" ]
null
null
null
nbgrader/tests/__init__.py
Patil2099/nbgrader
86f028459850d40d50ed6ff8d1c6043e31ce1a48
[ "BSD-3-Clause" ]
null
null
null
import os import glob import shutil import subprocess as sp import sys import logging import warnings import socket from io import StringIO from nbformat.v4 import new_code_cell, new_markdown_cell from jupyter_core.application import NoStart from nbconvert.filters import strip_ansi from ..utils import compute_checksu...
30.359684
103
0.669574
949
7,681
5.25079
0.178082
0.110777
0.184628
0.08529
0.604857
0.604857
0.58519
0.567931
0.560104
0.540437
0
0.002982
0.214035
7,681
252
104
30.480159
0.822428
0.025648
0
0.517949
0
0
0.104911
0.002944
0
0
0
0
0.010256
1
0.066667
false
0
0.082051
0
0.210256
0.015385
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3f4a5cdcfa0ec567acaf0ab1df287b1d26c5300
2,015
py
Python
flask_login_without_orm/main.py
leynier/flask-login-without-orm
70ff79608dfc6291b7e568a938c69f72ae06b7da
[ "MIT" ]
5
2021-02-04T05:13:07.000Z
2021-12-28T19:50:53.000Z
flask_login_without_orm/main.py
leynier/flask-login-without-orm
70ff79608dfc6291b7e568a938c69f72ae06b7da
[ "MIT" ]
5
2021-04-28T07:10:50.000Z
2021-11-17T04:08:36.000Z
flask_login_without_orm/main.py
leynier/flask-login-without-orm
70ff79608dfc6291b7e568a938c69f72ae06b7da
[ "MIT" ]
3
2021-08-11T04:14:59.000Z
2022-03-25T13:12:50.000Z
from json import load from os import getenv from typing import Dict, Optional from flask import Flask, redirect, url_for from flask_login import ( LoginManager, UserMixin, current_user, login_required, login_user, logout_user, ) app = Flask(__name__) app.config["SECRET_KEY"] = getenv("SECRET_K...
22.640449
81
0.628288
260
2,015
4.688462
0.273077
0.029532
0.034454
0.027892
0.091879
0.091879
0
0
0
0
0
0.005175
0.232754
2,015
88
82
22.897727
0.783312
0.012407
0
0.059701
0
0.014925
0.174635
0.011072
0
0
0
0
0
1
0.134328
false
0.104478
0.074627
0.074627
0.358209
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
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
e3f656069cde39054f81bbeae4f4b00ee5defe53
459
py
Python
opteryx/utils/__init__.py
mabel-dev/mabel-sql
1a39253333233f5181be78b9e3c45aea1eb2afe3
[ "Apache-2.0" ]
1
2022-02-05T18:36:09.000Z
2022-02-05T18:36:09.000Z
opteryx/utils/__init__.py
mabel-dev/mabel-sql
1a39253333233f5181be78b9e3c45aea1eb2afe3
[ "Apache-2.0" ]
43
2021-12-29T22:33:49.000Z
2022-03-25T20:12:07.000Z
opteryx/utils/__init__.py
mabel-dev/mabel-sql
1a39253333233f5181be78b9e3c45aea1eb2afe3
[ "Apache-2.0" ]
1
2022-01-26T21:44:15.000Z
2022-01-26T21:44:15.000Z
from functools import lru_cache @lru_cache(1) def is_running_from_ipython(): """ True when running in Jupyter """ try: from IPython import get_ipython # type:ignore return get_ipython() is not None except: return False def safe_field_name(field_name): """strip all t...
19.956522
55
0.642702
65
459
4.353846
0.615385
0.127208
0
0
0
0
0
0
0
0
0
0.008696
0.248366
459
22
56
20.863636
0.811594
0.189542
0
0
0
0
0.048433
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e3f8849fcf214749a140b8288b8013983e330d60
1,207
py
Python
product_catalog/products/models.py
mashrikt/product-catalog
629ef1cfeafc2b31d9c6c02e79001d1e6fd27662
[ "MIT" ]
null
null
null
product_catalog/products/models.py
mashrikt/product-catalog
629ef1cfeafc2b31d9c6c02e79001d1e6fd27662
[ "MIT" ]
null
null
null
product_catalog/products/models.py
mashrikt/product-catalog
629ef1cfeafc2b31d9c6c02e79001d1e6fd27662
[ "MIT" ]
null
null
null
import os from django.core.files import File from django.core.files.temp import NamedTemporaryFile from django.db import models from sorl.thumbnail import ImageField from urllib import request IMAGE_SIZE = { 'small': 256, 'medium': 1024, 'large': 2048 } class TimeStampMixin(models.Model): created_a...
25.145833
66
0.68517
151
1,207
5.344371
0.503311
0.037175
0.034696
0.047088
0.215613
0.146221
0.146221
0.146221
0.146221
0.146221
0
0.019812
0.205468
1,207
47
67
25.680851
0.821689
0
0
0.114286
0
0
0.048882
0
0
0
0
0
0
1
0.085714
false
0
0.171429
0.057143
0.657143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e3fb53796b8fdcd4c5c9a69d09bb59d91a9bd32d
1,309
py
Python
itmo/lesson4/step3/A.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
itmo/lesson4/step3/A.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
itmo/lesson4/step3/A.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
def f(arr, t): # print(t) N = len(arr) x0,v0 = arr[0] l,r = x0 - t*v0, x0 + t*v0 for i in range(1, N): xi,vi = arr[i] l1, r1 = xi - t*vi, xi + t*vi if l1 < l: (l,r), (l1,r1) = (l1,r1), (l,r) if l1 > r: return False l,r = max(...
20.453125
48
0.333079
229
1,309
1.89083
0.240175
0.055427
0.076212
0.064665
0.17321
0.17321
0.094688
0.094688
0.094688
0.094688
0
0.055874
0.466769
1,309
64
49
20.453125
0.56447
0.411765
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.166667
0.033333
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e3fc98dac52a55e8533893135dd0a7f0f62dcb55
388
py
Python
demo.py
jagon12345/tus
f8beaa7b57d10020347f1a3a55dbba5e99b54031
[ "MIT" ]
null
null
null
demo.py
jagon12345/tus
f8beaa7b57d10020347f1a3a55dbba5e99b54031
[ "MIT" ]
null
null
null
demo.py
jagon12345/tus
f8beaa7b57d10020347f1a3a55dbba5e99b54031
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding:utf8 -*- # # Copyright (c) 2019 - 2040 BeiJing ZhiTuShiKong Technology CO.,Ltd. # 北京智图时空科技有限公司 # # All rights reserved. # from flask import Flask, render_template, send_from_directory from flask_tus import tus_manager import os app = Flask(__name__) tm = tus_manager(app, upload_url=...
22.823529
74
0.731959
57
388
4.77193
0.701754
0.022059
0.022059
0
0
0
0
0
0
0
0
0.050296
0.128866
388
16
75
24.25
0.754438
0.363402
0
0
0
0
0.113445
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5400e301b069555e84e5daea44e51eeff3987cdc
3,371
py
Python
aliyun/api/rest/Ess20140828DescribeScalingGroupsRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
14
2015-11-30T02:35:18.000Z
2019-05-14T11:49:24.000Z
aliyun/api/rest/Ess20140828DescribeScalingGroupsRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
2
2015-11-30T02:51:40.000Z
2017-03-16T01:51:45.000Z
aliyun/api/rest/Ess20140828DescribeScalingGroupsRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
12
2016-01-04T06:48:17.000Z
2020-11-07T14:08:25.000Z
''' Created by auto_sdk on 2015.06.23 ''' from aliyun.api.base import RestApi class Ess20140828DescribeScalingGroupsRequest(RestApi): def __init__(self,domain='ess.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.PageNumber = None self.PageSize = None self.RegionId = None self.ScalingGroupId_...
59.140351
1,654
0.803916
375
3,371
6.989333
0.154667
0.128195
0.167875
0
0
0
0
0
0
0
0
0.067949
0.074459
3,371
56
1,655
60.196429
0.772115
0.009789
0
0
0
0
0.441141
0.014715
0
0
0
0
0
1
0.058824
false
0
0.019608
0.039216
0.137255
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5400ff95fe47ec41fc04b9c8ca2445188511cd73
1,204
py
Python
Wifi_passwords/wifi-passwords.py
ambivert-sam/Pentesting-and-Hacking-Scripts
d0c828622983c51aa5a4ab3705d5d98fe369db96
[ "CC0-1.0" ]
63
2020-10-10T17:30:32.000Z
2022-03-28T23:38:16.000Z
Wifi_passwords/wifi-passwords.py
ambivert-sam/Pentesting-and-Hacking-Scripts
d0c828622983c51aa5a4ab3705d5d98fe369db96
[ "CC0-1.0" ]
114
2021-01-16T11:18:49.000Z
2021-12-16T19:29:09.000Z
Wifi_passwords/wifi-passwords.py
ambivert-sam/Pentesting-and-Hacking-Scripts
d0c828622983c51aa5a4ab3705d5d98fe369db96
[ "CC0-1.0" ]
56
2020-09-25T06:59:27.000Z
2022-02-22T08:58:35.000Z
import subprocess, re, smtplib def send_mail(email, message): server = smtplib.SMTP("smtp.gmail.com", 587) server.starttls() sender_email = "penetrationwifi@gmail.com" password = "penetrationwifi@2021" server.login(sender_email, password) server.sendmail(sender_email, email, message) serve...
24.571429
66
0.634551
159
1,204
4.691824
0.408805
0.096515
0.024129
0.053619
0.174263
0.099196
0
0
0
0
0
0.009585
0.2201
1,204
48
67
25.083333
0.784878
0
0
0
0
0
0.163621
0.038206
0
0
0
0
0
1
0.026316
false
0.078947
0.026316
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
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
540a393fc3be17896b36eceaee4b2d2821ce3a87
320
py
Python
test/test_udp.py
yangfl/python-writeonly-ardrone
1367e62a2ed2fb7cdf076deaa96293f9f5fae677
[ "WTFPL", "Unlicense" ]
null
null
null
test/test_udp.py
yangfl/python-writeonly-ardrone
1367e62a2ed2fb7cdf076deaa96293f9f5fae677
[ "WTFPL", "Unlicense" ]
null
null
null
test/test_udp.py
yangfl/python-writeonly-ardrone
1367e62a2ed2fb7cdf076deaa96293f9f5fae677
[ "WTFPL", "Unlicense" ]
null
null
null
#!/usr/bin/env python #coding=utf8 import socket address = ('127.0.0.1', 5556) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind(address) while True: data, addr = s.recvfrom(65535) if not data: print "client has exist" break print "received:", repr(data), "from", addr s.close()
18.823529
52
0.646875
49
320
4.183673
0.734694
0.117073
0
0
0
0
0
0
0
0
0
0.062745
0.203125
320
16
53
20
0.741176
0.096875
0
0
0
0
0.132404
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.181818
0
0
0
null
0
0
0
0
0
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
540aede97a9f3cc043b044a66e0de437ebdc62ce
470
py
Python
dceu2019/src/dceu2019/apps/ticketholders/migrations/0002_noop_confirmed_text.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
13
2018-12-02T12:53:44.000Z
2019-09-14T19:49:55.000Z
dceu2019/src/dceu2019/apps/ticketholders/migrations/0002_noop_confirmed_text.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
122
2018-12-03T23:04:21.000Z
2019-09-11T11:22:10.000Z
dceu2019/src/dceu2019/apps/ticketholders/migrations/0002_noop_confirmed_text.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
19
2018-11-03T19:32:47.000Z
2020-01-04T18:49:34.000Z
# Generated by Django 2.1.4 on 2019-03-13 23:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ticketholders', '0001_initial'), ] operations = [ migrations.AlterField( model_name='bicyclebooking', name='confirme...
24.736842
128
0.634043
53
470
5.566038
0.849057
0
0
0
0
0
0
0
0
0
0
0.054755
0.261702
470
18
129
26.111111
0.795389
0.095745
0
0
1
0
0.257683
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
540eec46e047c56b74c6b6809a5adba0d33abe48
407
py
Python
bsm_config/migrations/0012_auto_20200417_1847.py
git-men/bsm-django
46d1fcbd8ca379d20a3396fd7ea529ccf998f59d
[ "MIT" ]
90
2020-12-07T04:49:43.000Z
2022-03-31T08:24:35.000Z
bsm_config/migrations/0012_auto_20200417_1847.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
4
2021-01-11T16:10:55.000Z
2022-02-18T12:13:23.000Z
bsm_config/migrations/0012_auto_20200417_1847.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
16
2020-12-07T12:32:05.000Z
2022-01-30T05:36:51.000Z
# Generated by Django 2.2 on 2020-04-17 10:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bsm_config', '0011_auto_20200410_2247'), ] operations = [ migrations.AlterField( model_name='admin', name='model', ...
21.421053
72
0.609337
45
407
5.355556
0.8
0
0
0
0
0
0
0
0
0
0
0.111864
0.275184
407
18
73
22.611111
0.705085
0.105651
0
0
1
0
0.129834
0.063536
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5410df2a7f64fb05133183fa95b206fde75ec224
1,052
py
Python
src/converter.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
src/converter.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
src/converter.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
from PIL import Image import cv2 from decimal import getcontext, Decimal import pickle import network import numpy as np def convert_image(): image = Image.open('z.jpg').convert('L') new_image = image.resize((28, 28), Image.ANTIALIAS) quality_val = 100 new_image.save('img_28.jpg', quality=quality_val)...
26.3
74
0.603612
180
1,052
3.388889
0.344444
0.160656
0.170492
0.191803
0.268852
0.085246
0.085246
0.085246
0.085246
0.085246
0
0.087563
0.250951
1,052
39
75
26.974359
0.686548
0
0
0.133333
0
0
0.02549
0
0
0
0
0
0
1
0.033333
false
0
0.2
0
0.266667
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
5412314dc79f3681b24846b6e2f8126627ddb643
1,410
py
Python
cogbot/extensions/ext.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
8
2016-12-26T14:10:38.000Z
2021-01-02T03:50:05.000Z
cogbot/extensions/ext.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
28
2016-12-12T04:06:53.000Z
2020-04-23T06:18:55.000Z
cogbot/extensions/ext.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
9
2017-06-03T00:33:57.000Z
2020-10-29T18:16:02.000Z
import logging from discord.ext import commands from discord.ext.commands import Context from cogbot import checks from cogbot.cog_bot import CogBot log = logging.getLogger(__name__) class Ext: def __init__(self, bot: CogBot, ext: str): self.bot = bot @checks.is_manager() @commands.group(pass_...
32.790698
103
0.692199
194
1,410
4.835052
0.293814
0.08209
0.063966
0.081023
0.376333
0.308102
0.242004
0.168444
0.168444
0.168444
0
0
0.19078
1,410
42
104
33.571429
0.822086
0.031206
0
0.166667
0
0
0.036657
0
0
0
0
0
0
1
0.066667
false
0.133333
0.166667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
5414bd27f717a5935a90eb2264e76f3a096c9040
3,273
py
Python
tests/test_resample.py
GlobalFishingWatch/encounters_pipeline
b030a9ae8eb6dcca99e82c6d3f46e015d12ddd03
[ "Apache-2.0" ]
null
null
null
tests/test_resample.py
GlobalFishingWatch/encounters_pipeline
b030a9ae8eb6dcca99e82c6d3f46e015d12ddd03
[ "Apache-2.0" ]
null
null
null
tests/test_resample.py
GlobalFishingWatch/encounters_pipeline
b030a9ae8eb6dcca99e82c6d3f46e015d12ddd03
[ "Apache-2.0" ]
null
null
null
import datetime as dt import pytz from pipeline.objects import record from pipeline.transforms import resample def Record(timestamp, lat, lon, id=b'0', speed=0.0): if not isinstance(timestamp, dt.datetime): timestamp = dt.datetime.strptime(timestamp, "%Y-%m-%d %H:%M:%S %Z").replace(tzinfo=pytz.utc) ret...
52.790323
102
0.654751
578
3,273
3.681661
0.198962
0.070489
0.093985
0.151316
0.594455
0.433741
0.384868
0.343045
0.300752
0.210526
0
0.283346
0.170791
3,273
61
103
53.655738
0.500737
0.065383
0
0.08
0
0
0.202096
0
0
0
0
0
0.02
1
0.06
false
0
0.08
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
542afe9ec09a8d33b7129cd6e4859baf55012578
6,509
py
Python
horizon/horizon/dashboards/nova/containers/tables.py
andrewsmedina/horizon
6892653c0573a6a55f359cce6c1796053ef65cbf
[ "Apache-2.0" ]
1
2015-11-08T15:34:20.000Z
2015-11-08T15:34:20.000Z
horizon/horizon/dashboards/nova/containers/tables.py
andrewsmedina/horizon
6892653c0573a6a55f359cce6c1796053ef65cbf
[ "Apache-2.0" ]
null
null
null
horizon/horizon/dashboards/nova/containers/tables.py
andrewsmedina/horizon
6892653c0573a6a55f359cce6c1796053ef65cbf
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
33.901042
78
0.635735
740
6,509
5.447297
0.286486
0.038204
0.041677
0.040189
0.322253
0.26321
0.206897
0.169189
0.152816
0.152816
0
0.002513
0.2664
6,509
191
79
34.078534
0.841675
0.156245
0
0.267717
0
0
0.14419
0.050869
0
0
0
0.005236
0
1
0.094488
false
0
0.086614
0.047244
0.614173
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
542b2680889aab51df35089b5e0522993bb22fc2
1,279
py
Python
13/test13.2.py
BillZong/CorePythonProgrammingDemos
c97b6f2c1533a3eeaf35d2de39902b95e969a411
[ "MIT" ]
null
null
null
13/test13.2.py
BillZong/CorePythonProgrammingDemos
c97b6f2c1533a3eeaf35d2de39902b95e969a411
[ "MIT" ]
null
null
null
13/test13.2.py
BillZong/CorePythonProgrammingDemos
c97b6f2c1533a3eeaf35d2de39902b95e969a411
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Test demo 13.2 for chapter 13.""" class MyClass(object): """Simple class definition.""" myVersion = 0.1 # class property def __init__(self): """Init.""" super(MyClass, self).__init__() def show_my_version(self): """Show out my version.""" p...
21.677966
47
0.604378
152
1,279
4.585526
0.309211
0.045911
0.074605
0.043042
0.195122
0.088953
0.088953
0.088953
0
0
0
0.013641
0.254887
1,279
58
48
22.051724
0.717733
0.068022
0
0.1875
0
0
0.078607
0
0
0
0
0
0
0
null
null
0
0
null
null
0.21875
0
0
0
null
0
0
0
0
0
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
580840bfaf13aea7aebba4e2d0f3c18a70ceaf82
228,051
py
Python
sUTLTests2.py
emlynoregan/sUTLHaxePython
9896dce2f524847b67834b183f3e6f4ef9951aea
[ "Apache-2.0" ]
null
null
null
sUTLTests2.py
emlynoregan/sUTLHaxePython
9896dce2f524847b67834b183f3e6f4ef9951aea
[ "Apache-2.0" ]
null
null
null
sUTLTests2.py
emlynoregan/sUTLHaxePython
9896dce2f524847b67834b183f3e6f4ef9951aea
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from __future__ import division str = unicode import math as python_lib_Math import math as Math import functools as python_lib_Functools import inspect as python_lib_Inspect import json as python_lib_Json import sys as python_lib_Sys import traceback as python_lib_Traceback from...
54.662272
71,464
0.51399
29,701
228,051
3.769671
0.044679
0.041853
0.061306
0.04623
0.563079
0.499844
0.469932
0.426194
0.391585
0.370721
0
0.028009
0.27076
228,051
4,172
71,465
54.662272
0.645234
0.000303
0
0.36403
0
0.046858
0.366368
0.014238
0
0
0
0
0.031419
1
0.124323
false
0.004875
0.002979
0.02519
0.287649
0.007042
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
580bc66a4a8684957105db60fb5bec0e2acf4a5f
1,940
py
Python
dataprocessor/NiiDataFormater.py
NanYoMy/label-reg-master
741e9eb941a6144f90439892965dd2a214f53d34
[ "Apache-2.0" ]
null
null
null
dataprocessor/NiiDataFormater.py
NanYoMy/label-reg-master
741e9eb941a6144f90439892965dd2a214f53d34
[ "Apache-2.0" ]
null
null
null
dataprocessor/NiiDataFormater.py
NanYoMy/label-reg-master
741e9eb941a6144f90439892965dd2a214f53d34
[ "Apache-2.0" ]
null
null
null
from labelreg.helpers import DataReader import SimpleITK as sitk from dataprocessor.tools import get_bounding_box from NIIVisualization.Niiplot import multi_slice_viewer class NiiDataPreprocessor(): def __init__(self,img_dir,lable_dir): self.img=DataReader(img_dir) self.label=DataReader(lable_dir)...
34.642857
110
0.651031
283
1,940
4.19788
0.24735
0.013468
0.015152
0.013468
0.410774
0.402357
0.360269
0.360269
0.360269
0.360269
0
0.017038
0.213402
1,940
55
111
35.272727
0.761468
0.047423
0
0.216216
0
0
0.129137
0.124797
0
0
0
0
0
1
0.135135
false
0.054054
0.108108
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
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
580cba23974ead66d5084dc2ca75905fa857ac21
27,622
py
Python
tests/Hydro/Noh/Noh-spherical-3d.py
LLNL/spheral
282a3e6987975cd22c62c11f948da3d5db23faeb
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
19
2020-10-21T01:49:17.000Z
2022-03-15T12:29:17.000Z
tests/Hydro/Noh/Noh-spherical-3d.py
LLNL/spheral
282a3e6987975cd22c62c11f948da3d5db23faeb
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
tests/Hydro/Noh/Noh-spherical-3d.py
LLNL/spheral
282a3e6987975cd22c62c11f948da3d5db23faeb
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
5
2020-11-03T16:14:26.000Z
2022-01-03T19:07:24.000Z
#------------------------------------------------------------------------------- # The Spherical Noh test case run in 3-D. # # W.F. Noh 1987, JCP, 72, 78-120. #------------------------------------------------------------------------------- import os, shutil from math import * from SolidSpheral3d import * from SpheralTe...
41.28849
194
0.500362
2,421
27,622
5.701363
0.232962
0.005361
0.003912
0.003478
0.253496
0.205245
0.148953
0.137941
0.093168
0.086575
0
0.019698
0.297915
27,622
668
195
41.350299
0.692054
0.155782
0
0.181818
0
0.001855
0.075897
0.022502
0
0
0
0
0.012987
0
null
null
0.003711
0.03525
null
null
0.011132
0
0
0
null
0
0
0
0
0
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
581ed7b3c44eaec6036ee522ee9756ee86714fe4
479
py
Python
code/basic/pixel.py
HZU-CS/Info140143
b4a5548fe470e06e4152af7b600a5cc99d7b76ac
[ "MIT" ]
null
null
null
code/basic/pixel.py
HZU-CS/Info140143
b4a5548fe470e06e4152af7b600a5cc99d7b76ac
[ "MIT" ]
null
null
null
code/basic/pixel.py
HZU-CS/Info140143
b4a5548fe470e06e4152af7b600a5cc99d7b76ac
[ "MIT" ]
null
null
null
import cv2 img = cv2.imread("opencv-logo.png", 1) # 第2个参数是1表示使用图像的默认颜色和色彩通道,如果是0则表示以黑白形式读入该图片 print(img) # 会发现是一个数组 print(type(img)) # 类型是<class 'numpy.ndarray'> print(len(img)) # 表示数组的行 print(len(img[0])) # 表示数组的列 print(len(img[0][0])) # 表示通道数,这里是3,表示RGB红绿蓝3通道 print(img.shape) # 直接打印出这3项参数 print(img.dtype) ...
25.210526
83
0.7119
64
479
5.328125
0.609375
0.140762
0.096774
0.070381
0
0
0
0
0
0
0
0.061905
0.123173
479
18
84
26.611111
0.75
0.450939
0
0
0
0
0.059761
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.833333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
581fbf39fe8d691ffb9e3b6c3dcf94f37feb81c1
968
py
Python
core/Initializer/__init__.py
davidliyutong/Flint
4e2552dac8d781c21e8998ad68bbf1b986b09258
[ "MIT" ]
null
null
null
core/Initializer/__init__.py
davidliyutong/Flint
4e2552dac8d781c21e8998ad68bbf1b986b09258
[ "MIT" ]
1
2020-07-08T02:57:50.000Z
2020-07-08T02:57:50.000Z
core/Initializer/__init__.py
davidliyutong/Flint
4e2552dac8d781c21e8998ad68bbf1b986b09258
[ "MIT" ]
null
null
null
import numpy as np def compute_fans(shape): if len(shape) == 2: fan_in, fan_out = shape[0], shape[1] else: fan_in, fan_out = np.prod(shape[1:]), shape[0] return fan_in, fan_out class initializer(object): def __call__(self, shape): return self.init(shape).astype(np.float32) ...
23.609756
79
0.636364
141
968
4.106383
0.326241
0.072539
0.11399
0.094991
0
0
0
0
0
0
0
0.02288
0.232438
968
40
80
24.2
0.756393
0
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.296296
false
0
0.037037
0.074074
0.62963
0
0
0
0
null
0
0
0
0
0
0
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
58206d58405dcfdd01b1fd4377a7de914bbd5b8d
1,525
py
Python
web/blog/views.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
1
2021-08-11T10:51:28.000Z
2021-08-11T10:51:28.000Z
web/blog/views.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
null
null
null
web/blog/views.py
bandirom/django-blog
a8232ee8e4b7380b0760296de865cca2c5feda87
[ "MIT" ]
6
2021-04-07T17:03:52.000Z
2021-07-18T04:46:59.000Z
import logging from rest_framework.permissions import AllowAny from rest_framework.viewsets import ModelViewSet from main.pagination import BasePageNumberPagination from .services import BlogService from .filters import ArticleFilter from . import serializers logger = logging.getLogger(__name__) class ViewSet(Mode...
28.240741
57
0.71082
159
1,525
6.628931
0.383648
0.056926
0.079696
0.034156
0.297913
0.240987
0.125237
0.125237
0.125237
0.125237
0
0
0.202623
1,525
53
58
28.773585
0.866776
0
0
0.210526
0
0
0.049836
0.01377
0
0
0
0
0
1
0.157895
false
0
0.184211
0.052632
0.789474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
5825bb068affb132f2ba16bb289ae503197d2c08
784
py
Python
src/trend-learner-scripts/cluster.py
flaviovdf/pyksc
6ba8988c7fad63366dc2b8d005d0779971e129c5
[ "BSD-3-Clause" ]
32
2015-03-09T12:08:13.000Z
2021-03-23T09:47:25.000Z
src/trend-learner-scripts/cluster.py
flaviovdf/pyksc
6ba8988c7fad63366dc2b8d005d0779971e129c5
[ "BSD-3-Clause" ]
5
2015-04-22T02:46:14.000Z
2018-07-26T14:17:54.000Z
src/trend-learner-scripts/cluster.py
flaviovdf/pyksc
6ba8988c7fad63366dc2b8d005d0779971e129c5
[ "BSD-3-Clause" ]
13
2015-04-15T06:58:33.000Z
2019-07-26T03:34:12.000Z
# -*- coding: utf8 from __future__ import division, print_function from pyksc import dist from pyksc import ksc import ioutil import numpy as np import os import plac def main(tseries_fpath, base_folder, k): k = int(k) idx_fpath = os.path.join(os.path.join(base_folder, '..'), 'train.dat') X = iouti...
28
74
0.672194
122
784
4.090164
0.377049
0.12024
0.12024
0.140281
0.288577
0.248497
0.248497
0.132265
0.132265
0
0
0.004615
0.170918
784
27
75
29.037037
0.763077
0.020408
0
0
0
0
0.0953
0
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.421053
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
582c6e01309c785827145f456d777f8a4a8d3d94
10,533
py
Python
id/trafficmon/objectblob/ObjectBlobManager.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
id/trafficmon/objectblob/ObjectBlobManager.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
id/trafficmon/objectblob/ObjectBlobManager.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
from id.trafficmon.objectblob.ObjectBlob import ObjectBlob import numpy as np __author__ = 'Luqman' class ObjectBlobManager(object): blob_map = None image_reference = None max_id = 0 def __init__(self, contour_list, image): # print type(image) if (contour_list is None) and (image is ...
36.071918
117
0.571347
1,415
10,533
3.889753
0.103887
0.064862
0.045967
0.022892
0.361919
0.25
0.138808
0.079215
0.053779
0.039608
0
0.010705
0.352606
10,533
292
118
36.071918
0.796451
0.07823
0
0.165138
0
0
0.009613
0
0
0
0
0
0
0
null
null
0
0.009174
null
null
0.022936
0
0
0
null
0
0
0
0
0
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
584f9a985e8cecf0f210d9d6e77ae9f2afdaed91
1,835
py
Python
examples/text_prediction/obj_word.py
LSaldyt/CTF
cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01
[ "Apache-2.0" ]
2
2018-03-19T20:19:01.000Z
2018-10-22T23:41:12.000Z
examples/text_prediction/obj_word.py
LSaldyt/CTF
cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01
[ "Apache-2.0" ]
1
2017-01-18T20:45:33.000Z
2017-01-21T20:57:37.000Z
examples/text_prediction/obj_word.py
LSaldyt/CTF
cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01
[ "Apache-2.0" ]
null
null
null
import sys import random as r sys.path.append('../random') import randomWeighted as rw class WordNode(): def __init__(self): self.incoming = [] self.outgoing = dict() self.count = 1 def addIncoming(self, word): if not word in self.incoming: self.incoming.append(word...
31.637931
151
0.589101
220
1,835
4.895455
0.386364
0.144847
0.089136
0.050139
0.090994
0.044568
0
0
0
0
0
0.008661
0.307902
1,835
57
152
32.192982
0.83937
0.188011
0
0.116279
0
0
0.006177
0
0
0
0
0.017544
0
1
0.162791
false
0
0.069767
0
0.325581
0
0
0
0
null
0
0
0
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
584fcdfa9906ecbfc4bdd695a59d509a1b980d35
5,306
py
Python
python/dsbox/template/template_files/loaded/metalearning_binary_classification_text_template_11.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-05-10T22:19:44.000Z
2020-07-21T07:28:39.000Z
python/dsbox/template/template_files/loaded/metalearning_binary_classification_text_template_11.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
187
2018-04-13T17:19:24.000Z
2020-04-21T00:41:15.000Z
python/dsbox/template/template_files/loaded/metalearning_binary_classification_text_template_11.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-07-10T00:14:07.000Z
2019-07-25T17:59:44.000Z
from dsbox.template.template import DSBoxTemplate class metalearning_binary_classification_text_template_11(DSBoxTemplate): def __init__(self): DSBoxTemplate.__init__(self) self.template = { "weight": 20, 'name': 'metalearning_binary_classification_text_template_11', 'ta...
33.1625
229
0.392198
306
5,306
6.598039
0.330065
0.053492
0.130758
0.190193
0.439822
0.341753
0.099059
0.099059
0.099059
0.099059
0
0.030961
0.470411
5,306
159
230
33.371069
0.687544
0
0
0.272152
0
0
0.369274
0.144392
0
0
0
0
0
1
0.006329
false
0
0.006329
0
0.018987
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
585150bf380a637040007a3058f71f42e2cd9ad8
7,118
py
Python
emailCheck.py
madnerdorg/emailcheck
e055cb9a119c0accbce90b25613096272de294c5
[ "MIT" ]
1
2021-02-28T12:21:50.000Z
2021-02-28T12:21:50.000Z
emailCheck.py
madnerdorg/emailcheck
e055cb9a119c0accbce90b25613096272de294c5
[ "MIT" ]
null
null
null
emailCheck.py
madnerdorg/emailcheck
e055cb9a119c0accbce90b25613096272de294c5
[ "MIT" ]
null
null
null
# Author : Remi Sarrailh # Website : https://github.com/madnerdorg/emailcheck # Licence : MIT # Check if a new email has arrived on an IMAP server # Then execute a command (for example turn on leds) import imaplib import time import ConfigParser import os import sys # TEST previous_unread_emails = 0 unread_emails...
31.082969
105
0.534279
758
7,118
4.912929
0.246702
0.0384
0.017454
0.019334
0.147422
0.075188
0.046724
0.046724
0.046724
0.024168
0
0.006211
0.321439
7,118
228
106
31.219298
0.764803
0.136836
0
0.261194
0
0
0.156995
0.006149
0
0
0
0
0
0
null
null
0.037313
0.037313
null
null
0.149254
0
0
0
null
0
0
0
0
0
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
5855ad27c5a6a6a9bd8e170d6c8f7d29b5025fa0
1,372
py
Python
dash_vtk/Mesh.py
ericbdaniels/dash-vtk
a012c4e54018901798aea7345f989d910f0d7fa1
[ "MIT" ]
1
2021-05-15T16:17:48.000Z
2021-05-15T16:17:48.000Z
dash_vtk/Mesh.py
ericbdaniels/dash-vtk
a012c4e54018901798aea7345f989d910f0d7fa1
[ "MIT" ]
null
null
null
dash_vtk/Mesh.py
ericbdaniels/dash-vtk
a012c4e54018901798aea7345f989d910f0d7fa1
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Mesh(Component): """A Mesh component. Mesh is exposing a vtkPolyData to a downstream filter It takes the following set of properties: - state: { mesh: { ...polydata-props }, field: { ...dataArray ...
37.081081
110
0.629738
160
1,372
5.19375
0.50625
0.032491
0.026474
0.036101
0
0
0
0
0
0
0
0.000975
0.252187
1,372
36
111
38.111111
0.808967
0.325073
0
0
1
0
0.103373
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58564b3a76ce4b7cd22df547ecea6b6eba0c7388
926
py
Python
api/migrations/versions/852648571a3c_.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
1
2018-10-29T07:08:44.000Z
2018-10-29T07:08:44.000Z
api/migrations/versions/852648571a3c_.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
49
2018-11-06T07:10:41.000Z
2019-01-14T12:48:08.000Z
api/migrations/versions/852648571a3c_.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
2
2019-01-12T10:13:23.000Z
2019-01-12T10:18:04.000Z
"""empty message Revision ID: 852648571a3c Revises: 27c544cc6a24 Create Date: 2018-12-26 12:01:58.744733 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '852648571a3c' down_revision = '27c544cc6a24' branch_labels = None depends_on = None def upgrade(): op...
28.9375
96
0.738661
127
926
5.15748
0.401575
0.137405
0.073282
0.134351
0.41374
0.358779
0.358779
0.198473
0.198473
0.198473
0
0.068712
0.11987
926
31
97
29.870968
0.734969
0.153348
0
0
0
0
0.298969
0
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5857f86b430961a2b011395eb413a84ced9570b2
5,681
py
Python
wradlib/tests/test_atten.py
tsmsalper/wradlib
997de43f07d1ff17c60aa7f3d07f6725eca04a17
[ "MIT" ]
null
null
null
wradlib/tests/test_atten.py
tsmsalper/wradlib
997de43f07d1ff17c60aa7f3d07f6725eca04a17
[ "MIT" ]
null
null
null
wradlib/tests/test_atten.py
tsmsalper/wradlib
997de43f07d1ff17c60aa7f3d07f6725eca04a17
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2011-2018, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. import numpy as np import wradlib.atten as atten import unittest from .. import util as util from .. import io as io class TestAttenuation(unitt...
48.555556
80
0.476853
617
5,681
4.267423
0.257699
0.013673
0.011394
0.05469
0.484998
0.398405
0.308393
0.292062
0.292062
0.292062
0
0.235049
0.408379
5,681
116
81
48.974138
0.548349
0.166168
0
0.101266
0
0
0.023317
0.017869
0
0
0
0
0.075949
1
0.075949
false
0
0.063291
0
0.151899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5859030963c3215c911b67cfdb51bf2d74e6e0dc
391
py
Python
student_information_app/migrations/0006_auto_20210409_1500.py
kabilasudhannc/student_information_system
fe98e1f8d919ee17e534d564faa3204ae437eba5
[ "MIT" ]
1
2021-05-16T17:35:25.000Z
2021-05-16T17:35:25.000Z
student_information_app/migrations/0006_auto_20210409_1500.py
kabilasudhannc/student_information_system
fe98e1f8d919ee17e534d564faa3204ae437eba5
[ "MIT" ]
null
null
null
student_information_app/migrations/0006_auto_20210409_1500.py
kabilasudhannc/student_information_system
fe98e1f8d919ee17e534d564faa3204ae437eba5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2021-04-09 09:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student_information_app', '0005_studentresult'), ] operations = [ migrations.RenameField( model_name='notificationstaffs', o...
20.578947
58
0.613811
41
391
5.658537
0.780488
0
0
0
0
0
0
0
0
0
0
0.067616
0.28133
391
18
59
21.722222
0.758007
0.11509
0
0
1
0
0.22093
0.06686
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
585ac26dd28caa790fbb6a0ed7e904c999b74d7a
621
py
Python
Python/cells-with-odd-values-in-a-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
1
2020-04-29T06:19:44.000Z
2020-04-29T06:19:44.000Z
Python/cells-with-odd-values-in-a-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
Python/cells-with-odd-values-in-a-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
class Solution: def oddCells(self, n, m, indices): rows, cols = {}, {} for r, c in indices: if r in rows: rows[r] += 1 else: rows[r] = 1 if c in cols: cols[c] += 1 else: cols[c] = 1 ...
23.884615
38
0.307568
73
621
2.616438
0.342466
0.031414
0.062827
0
0
0
0
0
0
0
0
0.036145
0.599034
621
25
39
24.84
0.730924
0
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0
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