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
7819ac38f5b384126e6e3665bd08cb14286ed025
19,940
py
Python
ocd_backend/extractors/ibabs.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
1
2021-03-16T19:17:30.000Z
2021-03-16T19:17:30.000Z
ocd_backend/extractors/ibabs.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
null
null
null
ocd_backend/extractors/ibabs.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
null
null
null
import json from pprint import pprint import re from hashlib import sha1 import requests from suds.client import Client from ocd_backend.extractors import BaseExtractor from ocd_backend import settings from ocd_backend.utils.ibabs import ( meeting_to_dict, meeting_item_to_dict, meeting_type_to_dict, list_rep...
41.890756
117
0.467803
1,730
19,940
5.213295
0.179191
0.051447
0.057656
0.037255
0.334073
0.258011
0.222308
0.218317
0.168422
0.159109
0
0.004472
0.439268
19,940
475
118
41.978947
0.802164
0.032197
0
0.373297
0
0
0.116604
0.003832
0
0
0
0
0
0
null
null
0.016349
0.027248
null
null
0.019074
0
0
0
null
0
0
0
0
0
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
78235a37f03569c01d897ba922585f997587d7b2
2,363
py
Python
src/apps/customuser/models.py
dgnest/foottrial
47cb73ca83f4faa952456df70c24d43938b979b5
[ "Apache-2.0" ]
null
null
null
src/apps/customuser/models.py
dgnest/foottrial
47cb73ca83f4faa952456df70c24d43938b979b5
[ "Apache-2.0" ]
4
2020-04-30T13:34:18.000Z
2021-06-10T22:22:32.000Z
src/apps/customuser/models.py
dgnest/foottrial
47cb73ca83f4faa952456df70c24d43938b979b5
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import BaseUserManager, AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.core import validators from django.db import models from django.utils import timezone class MyUserManager(BaseUserManager): def create_user...
26.255556
72
0.640711
282
2,363
5.173759
0.322695
0.067855
0.041124
0.034955
0.287868
0.23852
0.150788
0.065798
0.065798
0.065798
0
0.005245
0.273804
2,363
89
73
26.550562
0.844988
0
0
0.2
0
0
0.055438
0
0
0
0
0
0
1
0.114286
false
0.057143
0.1
0.085714
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
1
0
0
0
0
0
1
7825191f31febfc51ac7a29b350d2aae2df14fad
1,492
py
Python
integration/test_zoep_dialog_pyqttest.py
ezcad-dev/opt20s
1dd7af8a878e23e56497ddbebbab11800cdb52b8
[ "BSD-3-Clause" ]
null
null
null
integration/test_zoep_dialog_pyqttest.py
ezcad-dev/opt20s
1dd7af8a878e23e56497ddbebbab11800cdb52b8
[ "BSD-3-Clause" ]
null
null
null
integration/test_zoep_dialog_pyqttest.py
ezcad-dev/opt20s
1dd7af8a878e23e56497ddbebbab11800cdb52b8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Ezcad Development Team. All Rights Reserved. """ How to run? pytest this.py or python -m pytest this.py """ from qtpy.QtCore import Qt from gopoint.tool.zoep_dialog import Dialog def test_zoep_dialog(qtbot): dialog = Dialog() dialog.sig_start.connect(print) dialog...
29.254902
63
0.719839
221
1,492
4.615385
0.371041
0.105882
0.176471
0.194118
0.49902
0.451961
0.42549
0.42549
0.337255
0.337255
0
0.018239
0.154826
1,492
50
64
29.84
0.790642
0.202413
0
0.354839
0
0
0.034043
0
0
0
0
0
0.032258
1
0.032258
false
0
0.064516
0
0.096774
0.032258
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
782c9483036abc6952d70e69a46e125b59439d6b
12,152
bzl
Python
templates/rules.tmpl.bzl
iocat/rules_rescript
51f1a9667e7f87745e7307a181f29d72349b2799
[ "MIT" ]
1
2022-01-16T16:20:35.000Z
2022-01-16T16:20:35.000Z
templates/rules.tmpl.bzl
iocat/rules_rescript
51f1a9667e7f87745e7307a181f29d72349b2799
[ "MIT" ]
1
2021-10-30T03:45:39.000Z
2021-10-30T03:45:39.000Z
templates/rules.tmpl.bzl
iocat/rules_rescript
51f1a9667e7f87745e7307a181f29d72349b2799
[ "MIT" ]
null
null
null
{{AUTO_GENERATED_NOTICE}} CompilerInfo = provider(fields = ["platform", "bsc", "bsb_helper"]) def _rescript_compiler_impl(ctx): return [CompilerInfo( platform = ctx.attr.name, bsc = ctx.file.bsc, bsb_helper = ctx.file.bsb_helper, )] rescript_compiler = rule( implementation = _resc...
33.66205
167
0.594882
1,435
12,152
4.763763
0.109408
0.029696
0.019895
0.028087
0.603423
0.578408
0.553394
0.521211
0.512727
0.479959
0
0.000113
0.270573
12,152
360
168
33.755556
0.771097
0.052255
0
0.445545
1
0
0.091637
0.017501
0
0
0
0
0
1
0.042904
false
0
0
0.009901
0.072607
0
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
7831f0742eec1a07bf7143e521708e1b65bb1f2f
2,155
py
Python
samples/device_manager/device_manager.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
479
2016-01-08T00:53:34.000Z
2022-03-22T10:28:19.000Z
samples/device_manager/device_manager.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
38
2017-12-29T17:09:04.000Z
2022-01-31T08:27:47.000Z
samples/device_manager/device_manager.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
103
2016-01-10T01:32:17.000Z
2021-12-24T17:21:06.000Z
import sys import os.path sys.path.append(os.path.abspath(__file__ + "\..\..")) import windows import windows.generated_def as gdef devmgr = windows.system.device_manager print("Device manager is {0}".format(devmgr)) print("Enumerating the first 3 device classes") for cls in devmgr.classes[:3]: print(" * {0}".fo...
41.442308
103
0.707193
239
2,155
6.322176
0.472803
0.043018
0.031767
0.026473
0.111185
0.04368
0
0
0
0
0
0.126251
0.165661
2,155
51
104
42.254902
0.714127
0.568445
0
0
1
0
0.236784
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0.391304
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
78320f382c1dbb08bce0c100df50e70e638aacc7
694
py
Python
utilities/root_funcs.py
heshan007/HEPDrone
ec5f68da9648ac0a3d35f372295acbd628dede07
[ "BSD-3-Clause" ]
3
2017-11-06T11:21:20.000Z
2018-07-20T14:47:21.000Z
utilities/root_funcs.py
konqr/HEPDrone
c1de4ad475d2e91ffcc75c846e46754299bd768b
[ "BSD-3-Clause" ]
4
2018-01-12T15:49:40.000Z
2018-04-06T02:29:56.000Z
utilities/root_funcs.py
konqr/HEPDrone
c1de4ad475d2e91ffcc75c846e46754299bd768b
[ "BSD-3-Clause" ]
12
2018-01-12T15:46:35.000Z
2018-06-21T22:41:56.000Z
import ROOT from math import sqrt def open_root(fname, treename): f = ROOT.TFile.Open(fname) if not f: print "open_root: Unable to open file, exiting..." exit() t = f.Get(treename) if not t: print "open_root: Tree not found, exiting..." exit() return f, t def to_4...
24.785714
59
0.616715
105
694
3.990476
0.333333
0.038186
0.042959
0.081146
0.291169
0.291169
0.291169
0.291169
0.291169
0.291169
0
0.011364
0.239193
694
27
60
25.703704
0.782197
0
0
0.285714
0
0
0.126801
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.095238
0
0
0
null
0
0
0
0
0
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
7840c00a791afb63dbbf02aa937adfdf2df127f2
2,393
py
Python
webapp/app/data_access/db_model/user.py
ramboldio/steuerlotse
eeebb91be6c13435d621d105ffdb19e972c8f649
[ "MIT" ]
null
null
null
webapp/app/data_access/db_model/user.py
ramboldio/steuerlotse
eeebb91be6c13435d621d105ffdb19e972c8f649
[ "MIT" ]
null
null
null
webapp/app/data_access/db_model/user.py
ramboldio/steuerlotse
eeebb91be6c13435d621d105ffdb19e972c8f649
[ "MIT" ]
null
null
null
import datetime from flask_login.mixins import UserMixin from sqlalchemy import LargeBinary from app import db from app.crypto.pw_hashing import global_salt_hash, indiv_salt_hash from app.data_access.user_controller_errors import UserAlreadyActive class User(UserMixin, db.Model): id = db.Column(db.Integer, prim...
36.257576
107
0.678646
329
2,393
4.726444
0.364742
0.041158
0.045016
0.051447
0.127331
0.037299
0
0
0
0
0
0
0.236523
2,393
65
108
36.815385
0.851122
0.200585
0
0.04878
0
0
0
0
0
0
0
0
0
1
0.170732
false
0
0.146341
0.097561
0.658537
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7841965a569d4d2b02cd4d588131dbf92bae4896
822
py
Python
day04/partone.py
ephraim/adventofcode
52bc215b29c120d7c6f74413acb9091503d6f6ec
[ "MIT" ]
null
null
null
day04/partone.py
ephraim/adventofcode
52bc215b29c120d7c6f74413acb9091503d6f6ec
[ "MIT" ]
null
null
null
day04/partone.py
ephraim/adventofcode
52bc215b29c120d7c6f74413acb9091503d6f6ec
[ "MIT" ]
null
null
null
import os import sys import re if __name__ == "__main__": data = None wdir = os.path.dirname(sys.argv[0]) with open(os.path.join(wdir, "input.txt")) as f: data = f.readlines() def validate(pp): needed = [ "byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid" ] valid = True fo...
21.631579
68
0.454988
103
822
3.553398
0.514563
0.081967
0.065574
0.114754
0.120219
0
0
0
0
0
0
0.01227
0.405109
822
37
69
22.216216
0.736196
0
0
0.193548
0
0
0.074209
0
0
0
0
0
0
1
0.032258
false
0.129032
0.096774
0
0.16129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78497d29199c4e26618ace43c8d970c3672ff46e
310
py
Python
tests/__init__.py
dukduque/PortfolioManager
bc30a3ec9062abb5e7abd99d197b6cc043ab9786
[ "MIT" ]
2
2021-12-18T20:54:15.000Z
2022-01-20T00:09:19.000Z
tests/__init__.py
dukduque/PortfolioManager
bc30a3ec9062abb5e7abd99d197b6cc043ab9786
[ "MIT" ]
null
null
null
tests/__init__.py
dukduque/PortfolioManager
bc30a3ec9062abb5e7abd99d197b6cc043ab9786
[ "MIT" ]
null
null
null
import os import sys path_to_file = os.path.dirname(os.path.realpath(__file__)) parent_path = os.path.abspath(os.path.join(path_to_file, os.pardir)) source_path = os.path.join(parent_path, 'source') print(f'Adding {source_path} to sys env') def import_source_modules(): sys.path.insert(0, path_to_file)
25.833333
68
0.764516
54
310
4.092593
0.388889
0.135747
0.135747
0.108597
0
0
0
0
0
0
0
0.003584
0.1
310
11
69
28.181818
0.78853
0
0
0
0
0
0.119355
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
784a115d97a61ae530f072e74fcc6a06e47b519e
2,224
py
Python
auto_tag/tests/test_detectors_config.py
fossabot/auto-tag
ec43bfbe2ae610219c9cfe7aab5be9c4328f83ab
[ "MIT" ]
null
null
null
auto_tag/tests/test_detectors_config.py
fossabot/auto-tag
ec43bfbe2ae610219c9cfe7aab5be9c4328f83ab
[ "MIT" ]
null
null
null
auto_tag/tests/test_detectors_config.py
fossabot/auto-tag
ec43bfbe2ae610219c9cfe7aab5be9c4328f83ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Test simple flows of the AutoTag application """ import os from auto_tag import detectors_config from auto_tag import detectors # pylint:disable=invalid-name def test_detector_config(): """Test to see if the factory returns what we expect.""" path_to_file = os.path.join( os...
34.75
72
0.639838
216
2,224
6.458333
0.273148
0.150538
0.060215
0.094624
0.713978
0.672401
0.656631
0.594982
0.594982
0.194982
0
0.008811
0.285522
2,224
63
73
35.301587
0.8691
0.065198
0
0.489362
0
0
0.067797
0.010654
0
0
0
0
0.553191
1
0.021277
false
0
0.06383
0
0.085106
0
0
0
0
null
0
0
0
0
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
784f9997f80f3be63d14d7d99c661dc74f7d0a54
3,138
py
Python
sc_attach.py
MasterScott/scamper
6da4217851b13ad3d8371f505aa478fec082182b
[ "BSD-3-Clause" ]
23
2016-03-10T05:45:42.000Z
2022-02-09T06:04:31.000Z
sc_attach.py
MasterScott/scamper
6da4217851b13ad3d8371f505aa478fec082182b
[ "BSD-3-Clause" ]
6
2015-05-13T15:03:58.000Z
2022-02-24T17:32:06.000Z
sc_attach.py
MasterScott/scamper
6da4217851b13ad3d8371f505aa478fec082182b
[ "BSD-3-Clause" ]
17
2016-05-18T13:42:18.000Z
2022-01-09T16:01:20.000Z
#!/usr/bin/env python # # Program: $Id: sc_attach.py 1537 2015-02-06 21:53:51Z rbeverly $ # Author: Robert Beverly <rbeverly@nps.edu> # Description: Base class to interact with Scamper over its control socket # import sys from socket import * from binascii import a2b_uu from time import sleep import thread...
25.306452
76
0.600382
420
3,138
4.392857
0.390476
0.034146
0.019512
0.022764
0
0
0
0
0
0
0
0.032943
0.264818
3,138
123
77
25.512195
0.766797
0.120459
0
0.168317
0
0
0.077483
0
0
0
0
0
0
0
null
null
0
0.059406
null
null
0.09901
0
0
0
null
0
0
0
0
0
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
784fbe13670d43f91bab9c0aab15ae5e9999cb32
773
py
Python
tests/test.py
Toonggg/mulpro
a341d371990e9550cf6df028871c17a82e764943
[ "BSD-2-Clause" ]
2
2016-08-18T15:59:11.000Z
2021-11-16T13:41:42.000Z
tests/test.py
Toonggg/mulpro
a341d371990e9550cf6df028871c17a82e764943
[ "BSD-2-Clause" ]
1
2016-08-17T14:42:10.000Z
2016-08-17T15:23:48.000Z
tests/test.py
Toonggg/mulpro
a341d371990e9550cf6df028871c17a82e764943
[ "BSD-2-Clause" ]
2
2016-08-17T14:03:22.000Z
2021-03-08T16:37:59.000Z
#!/usr/bin/env python import numpy as np import time from mulpro import mulpro counter = 0 n_tasks = 50 def my_worker(work_package): res = { "A": work_package["A"], "B": work_package["B"], "A+B": 10**(work_package["A"]+work_package["B"]), } time.sleep(np.random.rand()*2) return...
22.085714
76
0.576973
114
773
3.780702
0.368421
0.178654
0.083527
0.074246
0.092807
0
0
0
0
0
0
0.052539
0.26132
773
34
77
22.735294
0.702277
0.046572
0
0
0
0
0.021769
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
78632e7ff11e467f5beb7c6bc2bed4dce25927fb
667
py
Python
test/test.py
youshaox/evolution-strategies-starter
28345f80a59e3aac583c3b9f79bcbe046015b081
[ "MIT" ]
null
null
null
test/test.py
youshaox/evolution-strategies-starter
28345f80a59e3aac583c3b9f79bcbe046015b081
[ "MIT" ]
null
null
null
test/test.py
youshaox/evolution-strategies-starter
28345f80a59e3aac583c3b9f79bcbe046015b081
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # Created by youshaox on 3/1/19 """ function: """ import sys class Celsius: def __init__(self, temperature = 0): self._temperature = temperature def to_fahrenheit(self): return (self.temperature * 1.8) + 32 @property def temperature(self): ...
21.516129
70
0.634183
78
667
5.320513
0.551282
0.180723
0.125301
0
0
0
0
0
0
0
0
0.03992
0.248876
667
31
71
21.516129
0.788423
0.116942
0
0
0
0
0.110535
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0.052632
0.421053
0.157895
0
0
0
null
0
0
0
0
0
0
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
78688d2021f550e50784f855745b3612fed73480
3,867
py
Python
pdfmerge/models.py
rupin/pdfmerger
fee19523e88362d215f1a29cdab0d140f4c9385c
[ "MIT" ]
null
null
null
pdfmerge/models.py
rupin/pdfmerger
fee19523e88362d215f1a29cdab0d140f4c9385c
[ "MIT" ]
null
null
null
pdfmerge/models.py
rupin/pdfmerger
fee19523e88362d215f1a29cdab0d140f4c9385c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models from django.conf import settings from django.core.files.storage import default_storage class CustomUser(AbstractUser): pass # add additional fields in here #Class has reference to all PDFForms class PDFForm(models.Model): #pass ...
33.626087
98
0.753297
518
3,867
5.440154
0.283784
0.042583
0.070263
0.093683
0.426899
0.353797
0.341732
0.220724
0.220724
0.220724
0
0.017358
0.121024
3,867
115
99
33.626087
0.811709
0.132661
0
0.144737
0
0
0.101137
0
0
0
0
0
0
1
0.026316
false
0.013158
0.052632
0.026316
0.710526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
786ce19ce60dae02bad47852e0ddb44a697aaa1a
5,852
py
Python
doc_output.py
craiglmccarthy/doc-o-matic
627234ee449178240d02d6fbbbe68d5a7ec2206b
[ "MIT" ]
null
null
null
doc_output.py
craiglmccarthy/doc-o-matic
627234ee449178240d02d6fbbbe68d5a7ec2206b
[ "MIT" ]
6
2021-03-19T05:00:08.000Z
2022-03-12T00:03:45.000Z
doc_output.py
craiglmccarthy/doc-o-matic
627234ee449178240d02d6fbbbe68d5a7ec2206b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import tkinter as tk from pymarc import Field, Record def output_to_text(output_text, doc_year, doc_num, non_filing, doc_title, doc_iss_year, num_pages, welcomes, this_res, date_field_008, time_field_590, field_710, ti...
27.603774
79
0.413534
548
5,852
4.228102
0.237226
0.081571
0.126888
0.172205
0.512732
0.410876
0.388433
0.365991
0.349158
0.331895
0
0.071407
0.430451
5,852
211
80
27.734597
0.623762
0.046309
0
0.682051
0
0
0.227764
0.025927
0
0
0
0
0
1
0.010256
false
0
0.015385
0
0.025641
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
786ee892a2d72bf17a0715fbc85a7c683a44cd18
556
py
Python
Quantuiti/__main__.py
dmuraco3/CompuTradePython
5c2bc4d1d3baabd68677b8c3d78b8caeed52ba28
[ "Apache-2.0" ]
null
null
null
Quantuiti/__main__.py
dmuraco3/CompuTradePython
5c2bc4d1d3baabd68677b8c3d78b8caeed52ba28
[ "Apache-2.0" ]
null
null
null
Quantuiti/__main__.py
dmuraco3/CompuTradePython
5c2bc4d1d3baabd68677b8c3d78b8caeed52ba28
[ "Apache-2.0" ]
null
null
null
import flask import webbrowser import threading import subprocess from .__init__ import CompuTradeEngine def start_server(): app = flask.Flask(__name__) @app.route("/") def home(): return flask.render_template('index.html') @app.route("/run_script") def run(): subprocess.run(["ls -l...
25.272727
63
0.658273
70
556
4.942857
0.614286
0.063584
0
0
0
0
0
0
0
0
0
0.03118
0.192446
556
22
64
25.272727
0.739421
0
0
0
0
0
0.111311
0
0
0
0
0
0
1
0.157895
false
0
0.263158
0.052632
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7873068092744c750fe0bf432737db33b4886a2d
749
py
Python
cp_blinka/blinka_test.py
s-light/pocketbeagle_python_tests
5ccaceb203557c2f44502edf6d39506cf0575462
[ "MIT" ]
null
null
null
cp_blinka/blinka_test.py
s-light/pocketbeagle_python_tests
5ccaceb203557c2f44502edf6d39506cf0575462
[ "MIT" ]
null
null
null
cp_blinka/blinka_test.py
s-light/pocketbeagle_python_tests
5ccaceb203557c2f44502edf6d39506cf0575462
[ "MIT" ]
1
2021-03-05T14:24:41.000Z
2021-03-05T14:24:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ simple test for adafruit-blinka. https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi """ import board import digitalio import busio print("Hello blinka!") # Try to great a Digital input # pin = digitalio.Digit...
22.029412
106
0.720961
121
749
4.38843
0.446281
0.028249
0.090395
0.109228
0.20339
0
0
0
0
0
0
0.028919
0.12283
749
33
107
22.69697
0.7793
0.419226
0
0
0
0
0.151659
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.466667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
787440498ccd1be90d0736925b390483b6b1a6ab
462
py
Python
kajiki/__init__.py
frou/kajiki
1bd0e19ded0cae7f602d8e2a732b789f007c1767
[ "MIT" ]
31
2015-07-17T16:17:37.000Z
2021-04-02T01:09:42.000Z
kajiki/__init__.py
frou/kajiki
1bd0e19ded0cae7f602d8e2a732b789f007c1767
[ "MIT" ]
44
2015-01-28T12:52:49.000Z
2021-06-17T22:42:31.000Z
kajiki/__init__.py
frou/kajiki
1bd0e19ded0cae7f602d8e2a732b789f007c1767
[ "MIT" ]
12
2015-07-09T13:54:06.000Z
2021-06-08T22:38:18.000Z
"""Kajiki public API.""" from .loader import FileLoader, MockLoader, PackageLoader from .template import Template from .text import TextTemplate from .util import expose, flattener from .version import __release__, __version__ from .xml_template import XMLTemplate __all__ = [ "expose", "flattener", "Templ...
21
57
0.703463
43
462
7.069767
0.465116
0.092105
0
0
0
0
0
0
0
0
0
0
0.188312
462
21
58
22
0.810667
0.038961
0
0
0
0
0.230594
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
787750c26538d4637580fab820e85ac7a594451e
2,623
py
Python
src/django_email_user_model/admin.py
jeffbuttars/django-email-user-model
77b920294cc336901916f0b4aaf8ea5e9c4865f7
[ "MIT" ]
null
null
null
src/django_email_user_model/admin.py
jeffbuttars/django-email-user-model
77b920294cc336901916f0b4aaf8ea5e9c4865f7
[ "MIT" ]
null
null
null
src/django_email_user_model/admin.py
jeffbuttars/django-email-user-model
77b920294cc336901916f0b4aaf8ea5e9c4865f7
[ "MIT" ]
null
null
null
from django import forms from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.utils.translation import ugettext, ugettext_lazy as _ from .models import EmailUser...
36.943662
82
0.673275
301
2,623
5.704319
0.362126
0.034945
0.039604
0.036692
0.337216
0.322656
0.244613
0.109493
0.109493
0.109493
0
0.004859
0.215402
2,623
70
83
37.471429
0.829446
0.198246
0
0.222222
0
0
0.174976
0
0
0
0
0
0
1
0.044444
false
0.022222
0.177778
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
787830a864988b94958db286cdf928022af12c57
2,419
py
Python
App/gui/save_popup_widget.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/gui/save_popup_widget.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/gui/save_popup_widget.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\conta\Documents\script\wizard_devellop\App\gui\ui_files\save_popup_widget.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets cla...
41
140
0.726333
276
2,419
6.166667
0.365942
0.058167
0.082256
0.095182
0.105758
0.038778
0
0
0
0
0
0.023441
0.171145
2,419
58
141
41.706897
0.825436
0.105829
0
0
1
0
0.038497
0
0
0
0
0
0
1
0.046512
false
0
0.046512
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
787849aa0ace74b749b34133f676e8d50276c8c9
5,585
py
Python
entropica_qaoa/tests/test_cost_function.py
pat-phattharaporn/entropica_qaoa
2fdadb2849deac8614620dd877faa3d1286bca4b
[ "Apache-2.0" ]
58
2019-07-17T14:10:36.000Z
2022-03-24T15:24:44.000Z
entropica_qaoa/tests/test_cost_function.py
pat-phattharaporn/entropica_qaoa
2fdadb2849deac8614620dd877faa3d1286bca4b
[ "Apache-2.0" ]
5
2019-10-31T12:28:08.000Z
2022-02-18T06:36:51.000Z
entropica_qaoa/tests/test_cost_function.py
pat-phattharaporn/entropica_qaoa
2fdadb2849deac8614620dd877faa3d1286bca4b
[ "Apache-2.0" ]
21
2019-08-30T13:16:57.000Z
2022-02-17T13:03:00.000Z
""" Tests for all functions in cost_function.py """ import numpy as np from pyquil.quil import (QubitPlaceholder, get_default_qubit_mapping) from pyquil.api import WavefunctionSimulator from pyquil import get_qc, Program from pyquil.gates import RX, RY, X from pyquil.paulis import PauliSum, Pa...
39.330986
78
0.580483
665
5,585
4.676692
0.148872
0.075241
0.041801
0.036977
0.78328
0.724116
0.675884
0.642444
0.584244
0.584244
0
0.037302
0.299194
5,585
142
79
39.330986
0.757282
0.027216
0
0.552632
0
0
0.020645
0
0
0
0
0
0.078947
1
0.087719
false
0
0.061404
0.04386
0.192982
0.008772
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
7879fe7962d4ca9264f68205c00aaff6d09c3431
442
py
Python
Backend/src/energytransfers/migrations/0003_counter_stratum.py
ChristianTaborda/Energycorp
2447b5af211501450177b0b60852dcb31d6ca12d
[ "MIT" ]
1
2020-12-31T00:07:40.000Z
2020-12-31T00:07:40.000Z
Backend/src/energytransfers/migrations/0003_counter_stratum.py
ChristianTaborda/Energycorp
2447b5af211501450177b0b60852dcb31d6ca12d
[ "MIT" ]
null
null
null
Backend/src/energytransfers/migrations/0003_counter_stratum.py
ChristianTaborda/Energycorp
2447b5af211501450177b0b60852dcb31d6ca12d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-05-18 16:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('energytransfers', '0002_auto_20200514_1708'), ] operations = [ migrations.AddField( model_name='counter', name='stra...
22.1
62
0.615385
44
442
6.068182
0.795455
0
0
0
0
0
0
0
0
0
0
0.100629
0.280543
442
19
63
23.263158
0.738994
0.10181
0
0
1
0
0.131646
0.058228
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
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
787afaea750f094d7db2e97ac48504cb45859c69
4,849
py
Python
paasta_itests/steps/setup_chronos_job_steps.py
oholiab/paasta
f008e07622aaf09b43513fcaaef501e320870ae6
[ "Apache-2.0" ]
null
null
null
paasta_itests/steps/setup_chronos_job_steps.py
oholiab/paasta
f008e07622aaf09b43513fcaaef501e320870ae6
[ "Apache-2.0" ]
4
2021-02-08T20:55:34.000Z
2021-03-26T00:29:25.000Z
paasta_itests/steps/setup_chronos_job_steps.py
oholiab/paasta
f008e07622aaf09b43513fcaaef501e320870ae6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
35.918519
109
0.674985
656
4,849
4.754573
0.297256
0.03142
0.033344
0.038474
0.247836
0.226996
0.123116
0.106444
0.076948
0.076948
0
0.009766
0.197567
4,849
134
110
36.186567
0.791827
0.142916
0
0.148515
0
0
0.273013
0.016671
0
0
0
0.007463
0.049505
0
null
null
0
0.049505
null
null
0.009901
0
0
0
null
0
0
0
0
0
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
78819515751a15f2a0f7e34ca930ac77bb53df76
1,024
py
Python
riverProblem_run.py
FridayGao97/Farmer-Fox-Hen-Grain-problem
9da2ea7378fab3c29b97e7032f79e62d325281be
[ "MIT" ]
null
null
null
riverProblem_run.py
FridayGao97/Farmer-Fox-Hen-Grain-problem
9da2ea7378fab3c29b97e7032f79e62d325281be
[ "MIT" ]
null
null
null
riverProblem_run.py
FridayGao97/Farmer-Fox-Hen-Grain-problem
9da2ea7378fab3c29b97e7032f79e62d325281be
[ "MIT" ]
null
null
null
""" Program to test the riverProblem implementation. BOILERPLATE, DO NOT EDIT THIS FILE. If you wish to test your implementation differently during development, add a main() function to the riverProblem module itself. """ from riverProblem import River_problem from searchGeneric import AStarSearcher def smoke_test()...
26.25641
76
0.666992
141
1,024
4.702128
0.489362
0.067873
0.098039
0.057315
0
0
0
0
0
0
0
0.002522
0.225586
1,024
38
77
26.947368
0.833544
0.297852
0
0.086957
1
0
0.072254
0
0
0
0
0
0.217391
1
0.086957
false
0
0.086957
0
0.217391
0.130435
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
788288f4ea7798f413de31b25ccc001a2902c0c1
1,632
py
Python
VaspRun/make_recip_poscar.py
jeffwdoak/VaspRun
fdcf49c7054c567dea9c3f978db8f61a8d9f8783
[ "MIT" ]
3
2015-09-22T12:01:41.000Z
2019-05-11T21:45:33.000Z
VaspRun/make_recip_poscar.py
jeffwdoak/VaspRun
fdcf49c7054c567dea9c3f978db8f61a8d9f8783
[ "MIT" ]
null
null
null
VaspRun/make_recip_poscar.py
jeffwdoak/VaspRun
fdcf49c7054c567dea9c3f978db8f61a8d9f8783
[ "MIT" ]
2
2015-03-06T16:43:20.000Z
2018-08-03T13:25:47.000Z
#!/usr/bin/env python # make_recip_poscar.py v1.0 2-17-2014 Jeff Doak jeff.w.doak@gmail.com import sys import numpy as np from unitcell import * from vasprun import * # Read in real-space unit cell, and calculate reciprocal lattice from it # Using convention of vasp to not include factor of 2*pi in the reciprocal # ...
34
79
0.788603
273
1,632
4.509158
0.435897
0.102356
0.125102
0.058489
0.034119
0
0
0
0
0
0
0.011315
0.133578
1,632
47
80
34.723404
0.859265
0.47549
0
0
0
0
0.042705
0.032028
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7882f50546cfb183a59537ede65ab4c2938b51d9
1,132
py
Python
app/orders.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
app/orders.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
app/orders.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
from flask import Flask,request from flask_restful import Resource from models import Order,orders class SpecificOrder(Resource): def get(self,id): order = Order().get_by_id(id) if order: return {"order":order.serialize()},200 return {"message":"order not found"},404 def ...
25.727273
69
0.60424
136
1,132
4.970588
0.345588
0.088757
0.159763
0.071006
0.142012
0.142012
0.142012
0.142012
0.142012
0.142012
0
0.018116
0.268551
1,132
43
70
26.325581
0.798309
0
0
0.2
0
0
0.181979
0
0
0
0
0
0
1
0.166667
false
0
0.1
0.033333
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7884f81aa9052d16789eb3dd76d2b74493b8bc98
451
py
Python
helpful_resources/using_requests.py
tymyrddin/reomais
818812d3d2f82172f5d3f573846d4d7d27a838c9
[ "Unlicense" ]
null
null
null
helpful_resources/using_requests.py
tymyrddin/reomais
818812d3d2f82172f5d3f573846d4d7d27a838c9
[ "Unlicense" ]
null
null
null
helpful_resources/using_requests.py
tymyrddin/reomais
818812d3d2f82172f5d3f573846d4d7d27a838c9
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import requests # https://docs.python-requests.org/en/master/ url = "http://192.168.122.131/dvwa/login.php" # Get response = requests.get(url) # response.text = string; response.content = bytestring print(response.content) # Post data = {"username": "admin", "password": "password", "Login": ...
26.529412
71
0.720621
59
451
5.508475
0.576271
0.184615
0.110769
0.16
0.387692
0.387692
0.387692
0.387692
0.387692
0
0
0.032338
0.108647
451
16
72
28.1875
0.776119
0.403548
0
0.285714
0
0
0.292776
0
0
0
0
0
0
1
0
false
0.142857
0.142857
0
0.142857
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
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
78865f698cc3c074c3e49d32ac43de6501939db4
1,783
py
Python
pg_test.py
shenhaizhumin/fastapi-demo
bce6ec556b1058f3b213e2698075d72033c2162d
[ "Apache-2.0" ]
null
null
null
pg_test.py
shenhaizhumin/fastapi-demo
bce6ec556b1058f3b213e2698075d72033c2162d
[ "Apache-2.0" ]
null
null
null
pg_test.py
shenhaizhumin/fastapi-demo
bce6ec556b1058f3b213e2698075d72033c2162d
[ "Apache-2.0" ]
null
null
null
import psycopg2 import psycopg2.extras ''' host = 39.107.77.70 port = 5432 user = zengqi password = 123456 database = testdb ''' options = { 'host': '39.107.77.70', 'port': 5432, 'user': 'zengqi', 'password': '123456', 'database': 'testdb', } connect = psycopg2.connect(**options) cursor = connect.c...
29.716667
118
0.640494
224
1,783
5
0.441964
0.069643
0.050893
0.019643
0.105357
0.105357
0.105357
0.105357
0.105357
0.105357
0
0.039283
0.186203
1,783
59
119
30.220339
0.731909
0.475603
0
0
0
0
0.188372
0
0
0
0
0
0
1
0
false
0.0625
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78885541cbfd7aab87179ba74b86234108c26300
1,290
py
Python
tilapia/lib/secret/registry.py
huazhouwang/python_multichain_wallet
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
2
2021-09-23T13:47:08.000Z
2021-09-24T02:39:14.000Z
tilapia/lib/secret/registry.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
tilapia/lib/secret/registry.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
from typing import Type from tilapia.lib.basic.functional.require import require from tilapia.lib.secret.bip32 import ed25519 as bip32_ed25519 from tilapia.lib.secret.bip32 import secp256k1 as bip32_secp256k1 from tilapia.lib.secret.bip32 import secp256r1 as bip32_secp256r1 from tilapia.lib.secret.data import CurveEnu...
36.857143
70
0.815504
169
1,290
6.047337
0.213018
0.096869
0.123288
0.156556
0.337573
0.306262
0
0
0
0
0
0.144978
0.112403
1,290
34
71
37.941176
0.747598
0
0
0
0
0
0.029457
0
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
789c6fd2abbb9518757f047a6bd78da4e797ceaa
617
py
Python
src/quotation/utils/last_quotation.py
DaviSegundo/Quotation_API
d00491cdcca46129496175d9e845ab5f2a056850
[ "MIT" ]
1
2022-01-14T17:45:48.000Z
2022-01-14T17:45:48.000Z
src/quotation/utils/last_quotation.py
DaviSegundo/Quotation_API
d00491cdcca46129496175d9e845ab5f2a056850
[ "MIT" ]
10
2022-01-04T01:26:43.000Z
2022-01-13T04:44:33.000Z
src/quotation/utils/last_quotation.py
DaviSegundo/Quotation_API
d00491cdcca46129496175d9e845ab5f2a056850
[ "MIT" ]
null
null
null
"""Function to save a new quotation in database """ import os import django import requests from quotation.utils.functions import working_days os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api_dolar.settings") django.setup() from ..models import Quotation def last_quotation(days = 1): """Save a new quotation...
24.68
75
0.692058
81
617
5.185185
0.518519
0.02381
0.038095
0.080952
0
0
0
0
0
0
0
0.002024
0.199352
617
24
76
25.708333
0.848178
0.149109
0
0
0
0
0.179337
0.042885
0
0
0
0
0
1
0.066667
false
0
0.333333
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
78a00eab732912a93c6dd3add76c6075cfe88d1c
917
py
Python
tests/util/test_store.py
spxtr/bumblebee-status
45125f39af8323775aeabf809ae5ae80cfe3ccd9
[ "MIT" ]
1,089
2016-11-06T10:02:53.000Z
2022-03-26T12:53:30.000Z
tests/util/test_store.py
spxtr/bumblebee-status
45125f39af8323775aeabf809ae5ae80cfe3ccd9
[ "MIT" ]
817
2016-11-05T05:42:39.000Z
2022-03-25T19:43:52.000Z
tests/util/test_store.py
spxtr/bumblebee-status
45125f39af8323775aeabf809ae5ae80cfe3ccd9
[ "MIT" ]
317
2016-11-05T00:35:06.000Z
2022-03-24T13:35:03.000Z
import pytest import util.store @pytest.fixture def emptyStore(): return util.store.Store() @pytest.fixture def store(): return util.store.Store() def test_get_of_unset_key(emptyStore): assert emptyStore.get("any-key") == None assert emptyStore.get("any-key", "default-value") == "default-value" ...
18.714286
72
0.644493
133
917
4.330827
0.255639
0.0625
0.095486
0.083333
0.236111
0
0
0
0
0
0
0.017333
0.182116
917
48
73
19.104167
0.750667
0.055616
0
0.153846
0
0
0.15625
0
0
0
0
0
0.269231
1
0.230769
false
0
0.076923
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
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
78a31e7a530cdff3166a5ac2d57bc9267cbe7b7d
26,532
py
Python
tgnmf.py
rserizel/TGNMF
9285a73046464eb7483dbf241fecf839cb33cead
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2017-03-06T22:29:54.000Z
2020-10-26T07:12:51.000Z
tgnmf.py
rserizel/TGNMF
9285a73046464eb7483dbf241fecf839cb33cead
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2018-11-05T11:16:05.000Z
2018-11-05T12:35:37.000Z
tgnmf.py
rserizel/TGNMF
9285a73046464eb7483dbf241fecf839cb33cead
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2017-07-10T01:27:32.000Z
2021-01-20T03:47:41.000Z
# -*- coding: utf-8 -*- """ tgnmf.py ~~~~~~~~ .. topic:: Contents The tgnmf module is used to perform task-driven group nonnegative matrix factorisation (TGNMF). It includes the SupervisedDL class, fit and score methods Created on Wed Jun 29 16:37:28 2016 @authors: bisot, serizel Copyrig...
36.495186
90
0.541987
3,344
26,532
4.139653
0.141447
0.013003
0.02066
0.017337
0.443329
0.37239
0.323846
0.283248
0.242072
0.222929
0
0.019347
0.355156
26,532
726
91
36.545455
0.78976
0.019637
0
0.228814
0
0
0.039942
0
0
0
0
0
0
0
null
null
0
0.033898
null
null
0.036723
0
0
0
null
0
0
0
0
0
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
78ac9486f13fbf493070e2ed190c06558e15ef21
2,454
py
Python
weiboExcel.py
kangbingbing/Python
23cb3fb666dc062a0d3102bd20ab623d99a90d72
[ "MIT" ]
null
null
null
weiboExcel.py
kangbingbing/Python
23cb3fb666dc062a0d3102bd20ab623d99a90d72
[ "MIT" ]
null
null
null
weiboExcel.py
kangbingbing/Python
23cb3fb666dc062a0d3102bd20ab623d99a90d72
[ "MIT" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- #encoding=utf-8 import xlwt import xlrd import xlutils.copy import sys reload(sys) import requests import os import json import time # 当前取的数组个数 currentCount = 0 indexPage = 0 pageCount = 50 token = "2.00xYt9tCMvx9YBd9a4b97a83b4KB8D" path = './souce/weibo.xls' def read(...
20.114754
81
0.660962
325
2,454
4.932308
0.375385
0.017467
0.047411
0.024953
0.102308
0.102308
0.102308
0.102308
0.102308
0
0
0.024476
0.184189
2,454
122
82
20.114754
0.776224
0.115322
0
0.103896
0
0
0.149907
0.014898
0
0
0
0
0
0
null
null
0
0.103896
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
78ad6301550f547a79501bfa983feb376ecc357d
674
py
Python
libdouya/core/deco/configer.py
xmyeen/douya
d2f7c15ca2e049a8dad9d4deaeba73401c883860
[ "MIT" ]
null
null
null
libdouya/core/deco/configer.py
xmyeen/douya
d2f7c15ca2e049a8dad9d4deaeba73401c883860
[ "MIT" ]
null
null
null
libdouya/core/deco/configer.py
xmyeen/douya
d2f7c15ca2e049a8dad9d4deaeba73401c883860
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- #!/usr/bin/env python from typing import List from .naming import obj_d from ..utilities.configer import make_configer_url class configer_d(obj_d): '''配置对象注解 ''' def __init__(self, key:str, *names:str): obj_d.__init__(self, *names, alias_urls = [make_configer_url(key)]) ...
37.444444
93
0.649852
87
674
4.563218
0.528736
0.030227
0.075567
0
0
0
0
0
0
0
0
0.001845
0.195846
674
18
94
37.444444
0.730627
0.560831
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
78aed4bc5d92ecc235139a7c975bb91ca6b26036
12,840
py
Python
classical-quantum.py
HawkPhantom/quantum-classical-transfer-learning
740e6e8f7f8d459b2a0293fb040ecd51a94ff7ea
[ "MIT" ]
null
null
null
classical-quantum.py
HawkPhantom/quantum-classical-transfer-learning
740e6e8f7f8d459b2a0293fb040ecd51a94ff7ea
[ "MIT" ]
null
null
null
classical-quantum.py
HawkPhantom/quantum-classical-transfer-learning
740e6e8f7f8d459b2a0293fb040ecd51a94ff7ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- !pip install pennylane !pip install pennylane-cirq import matplotlib.pyplot as plt # PyTorch import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import torchvision from torchvision import datasets, models, transforms # Pennylane import pennylan...
39.266055
257
0.607477
1,652
12,840
4.560533
0.253632
0.021901
0.011149
0.012742
0.24197
0.192594
0.168436
0.13605
0.103796
0.097425
0
0.029887
0.285981
12,840
327
258
39.266055
0.791885
0.131075
0
0.268868
0
0
0.056029
0.004515
0
0
0
0
0
0
null
null
0
0.056604
null
null
0.037736
0
0
0
null
0
0
0
0
0
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
78b2c78d26ef8f0d4f50375cebec4e253c31774d
3,175
py
Python
epycom/bivariate/tests/test_bivariate.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
null
null
null
epycom/bivariate/tests/test_bivariate.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
1
2020-10-22T19:10:57.000Z
2020-10-22T21:09:02.000Z
epycom/bivariate/tests/test_bivariate.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
1
2021-02-24T10:07:32.000Z
2021-02-24T10:07:32.000Z
# -*- coding: utf-8 -*- # Copyright (c) St. Anne's University Hospital in Brno. International Clinical # Research Center, Biomedical Engineering. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # Std imports from math import isclose # Third pary imports # Local imports...
35.277778
78
0.599685
352
3,175
5.139205
0.258523
0.129353
0.169154
0.172471
0.686567
0.686567
0.57822
0.551133
0.551133
0.551133
0
0.072289
0.320315
3,175
89
79
35.674157
0.765987
0.087244
0
0.6
0
0
0
0
0
0
0
0
0.116667
1
0.1
false
0
0.033333
0
0.133333
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
78b5dc15986170110e71885ea1302f12d97ca751
1,103
py
Python
example_app/management/commands/load_geoip.py
dnknth/django-import
5a187a9eb3012b7ed81700efae86449d1520c6d5
[ "MIT" ]
null
null
null
example_app/management/commands/load_geoip.py
dnknth/django-import
5a187a9eb3012b7ed81700efae86449d1520c6d5
[ "MIT" ]
null
null
null
example_app/management/commands/load_geoip.py
dnknth/django-import
5a187a9eb3012b7ed81700efae86449d1520c6d5
[ "MIT" ]
null
null
null
from django.contrib.gis.geos import Point from importer import * from example_app.models import Location class Command( ZIPDownloader, CSVReader, ParsingImporter): help = "load geo IP data." url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity-latest.zip' extra...
31.514286
107
0.62738
134
1,103
4.985075
0.559701
0.04491
0.04491
0.035928
0
0
0
0
0
0
0
0.010063
0.279238
1,103
34
108
32.441176
0.830189
0.029012
0
0.071429
0
0.035714
0.134831
0.024345
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
78bb64a106712507f7faeeff231c6e55b54d86ee
910
py
Python
reapy_boost/reascripts/enable_dist_api.py
wiccy46/reapy-boost
bcfa60bf4995e3078a2b9afe230bae2323ca6d64
[ "MIT" ]
2
2022-03-09T16:01:19.000Z
2022-03-17T13:45:13.000Z
reapy_boost/reascripts/enable_dist_api.py
wiccy46/reapy-boost
bcfa60bf4995e3078a2b9afe230bae2323ca6d64
[ "MIT" ]
null
null
null
reapy_boost/reascripts/enable_dist_api.py
wiccy46/reapy-boost
bcfa60bf4995e3078a2b9afe230bae2323ca6d64
[ "MIT" ]
1
2022-03-18T16:47:04.000Z
2022-03-18T16:47:04.000Z
""" Enable ```reapy_boost`` distant API. Running this ReaScript from inside REAPER allows to import ``reapy_boost`` from outside. It creates a persistent Web Interface inside REAPER and adds the ReaScript ``reapy_boost.reascripts.activate_reapy_server`` to the Actions list. Importing ``reapy_boost`` from outside REAPE...
33.703704
74
0.752747
131
910
4.923664
0.526718
0.139535
0.049612
0.065116
0
0
0
0
0
0
0
0.001311
0.161538
910
26
75
35
0.844037
0.404396
0
0
0
0
0.073034
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
78c32a0276d629edb818fda20aafee93e52c4359
11,016
py
Python
dim/dim/models/rights.py
TheMeier/dim
f28c8e2063c56f700d5fc07b84c996e253575bd1
[ "MIT" ]
37
2020-02-19T14:25:40.000Z
2022-02-19T18:35:00.000Z
dim/dim/models/rights.py
TheMeier/dim
f28c8e2063c56f700d5fc07b84c996e253575bd1
[ "MIT" ]
127
2020-03-09T12:29:24.000Z
2022-03-30T10:56:19.000Z
dim/dim/models/rights.py
TheMeier/dim
f28c8e2063c56f700d5fc07b84c996e253575bd1
[ "MIT" ]
26
2020-02-19T14:25:46.000Z
2022-01-26T18:49:45.000Z
from contextlib import wraps from sqlalchemy import Column, Integer, BigInteger, Boolean, String, Text, ForeignKey, UniqueConstraint, or_ from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.orm import relationship, backref from dim import db from dim.errors import PermissionDeniedError, Inva...
37.59727
131
0.639615
1,306
11,016
5.133997
0.146248
0.028635
0.021477
0.024161
0.365996
0.309769
0.259955
0.182699
0.14959
0.125131
0
0.003125
0.244644
11,016
292
132
37.726027
0.802668
0.025781
0
0.217778
0
0
0.097845
0
0
0
0
0.003425
0
1
0.115556
false
0.004444
0.04
0.044444
0.506667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
78cb7316743b734536669f97e1fcb4fff5e9c803
1,829
py
Python
django_local_apps/models.py
weijia/django-local-apps
5befc41c8ac9625e98c1023257a270a57de700dd
[ "BSD-3-Clause" ]
null
null
null
django_local_apps/models.py
weijia/django-local-apps
5befc41c8ac9625e98c1023257a270a57de700dd
[ "BSD-3-Clause" ]
null
null
null
django_local_apps/models.py
weijia/django-local-apps
5befc41c8ac9625e98c1023257a270a57de700dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from ufs_tools.short_decorator.ignore_exception import ignore_exc # noinspection PyUnresolvedReferences from models_db_auto_clean import DbCleanConfig try: from django_local_apps.postgres_sql_checker import wait_for_postgres_sql except ImportError: wait_for...
24.716216
106
0.753417
247
1,829
5.190283
0.396761
0.051482
0.031201
0.042122
0.157566
0.081123
0
0
0
0
0
0.004519
0.153089
1,829
73
107
25.054795
0.823112
0.202843
0
0.157895
0
0
0.042966
0
0
0
0
0
0
1
0.157895
false
0
0.236842
0.052632
0.605263
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
0
0
1
0
0
1
78cc53190a06792ff405e000478ccee2f673b796
594
py
Python
aleph/migrate/versions/6d68a2c945cc_document_parents.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/migrate/versions/6d68a2c945cc_document_parents.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/migrate/versions/6d68a2c945cc_document_parents.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
"""document parents Revision ID: 6d68a2c945cc Revises: 83dd3cee52da Create Date: 2017-06-10 17:25:37.811806 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6d68a2c945cc' down_revision = '83dd3cee52da' def upgrade(): op.add_column('document', sa.Column('pa...
22.846154
79
0.705387
78
594
5.217949
0.666667
0.068796
0
0
0
0
0
0
0
0
0
0.088
0.158249
594
25
80
23.76
0.726
0.244108
0
0
0
0
0.244898
0
0
0
0
0
0
1
0.166667
false
0.083333
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15216543877bc209db482e7b80e15badb6fd2891
4,065
py
Python
python_lesson_10/test_unitest_fool_sketch.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
python_lesson_10/test_unitest_fool_sketch.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
1
2020-04-24T10:19:24.000Z
2020-04-24T10:19:24.000Z
python_lesson_10/test_unitest_fool_sketch.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
import sys import unittest from fool_sketch import Table, Deck class TestTable(unittest.TestCase): def setUp(self): self.game = Table(4) print() print('Start test!') pass def tearDown(self): print() print(f'Test completed!') # Проверка инициализации началь...
46.193182
110
0.700615
571
4,065
4.80035
0.229422
0.19263
0.069318
0.134258
0.546516
0.458957
0.320686
0.275812
0.234951
0.132069
0
0.012489
0.192374
4,065
87
111
46.724138
0.822419
0.135055
0
0.2
0
0
0.00742
0
0
0
0
0
0.415385
1
0.107692
false
0.015385
0.046154
0
0.169231
0.061538
0
0
0
null
0
0
0
0
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
152546f6e2d94fc98c7a44f82905accc7f774fe0
196
py
Python
langsea/models/word.py
blancheta/langsea
e268b43fb94e3234ac161f2e5d9600d51360e4b3
[ "MIT" ]
1
2016-10-20T19:30:40.000Z
2016-10-20T19:30:40.000Z
langsea/models/word.py
blancheta/langsea
e268b43fb94e3234ac161f2e5d9600d51360e4b3
[ "MIT" ]
null
null
null
langsea/models/word.py
blancheta/langsea
e268b43fb94e3234ac161f2e5d9600d51360e4b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Word: def __init__(self, id, name, image, category=None): self.id = id self.name = name self.image = image self.category = category
16.333333
52
0.642857
29
196
4.206897
0.586207
0.098361
0
0
0
0
0
0
0
0
0
0.006369
0.19898
196
11
53
17.818182
0.770701
0.214286
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
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
152895b2fdcebdc653bac32fb86d382cb2ffd3e8
9,017
py
Python
generator.py
MB-29/optimal-textures
03a6bd93f7f2f99e1b07eb12a58d7467da02dad5
[ "MIT" ]
18
2021-02-04T13:16:38.000Z
2022-02-23T22:42:05.000Z
generator.py
MB-29/optimal-textures
03a6bd93f7f2f99e1b07eb12a58d7467da02dad5
[ "MIT" ]
3
2021-02-24T03:19:32.000Z
2022-02-25T12:03:43.000Z
generator.py
MB-29/optimal-textures
03a6bd93f7f2f99e1b07eb12a58d7467da02dad5
[ "MIT" ]
3
2021-02-05T17:18:51.000Z
2021-11-18T13:35:34.000Z
import os import numpy as np import torch import torch.nn as nn from torchvision.models import vgg19 import matplotlib.pyplot as plt from scipy.stats import ortho_group from utils import activation_value_hook, sliced_transport, image_preprocessing, vgg_normalization class Generator: """Texture generator model. ...
37.570833
128
0.632583
1,027
9,017
5.299903
0.204479
0.052912
0.03307
0.015616
0.197869
0.163329
0.116847
0.101415
0.101415
0.084145
0
0.004695
0.291339
9,017
239
129
37.728033
0.847105
0.227681
0
0.146341
0
0
0.045688
0.004539
0
0
0
0
0.00813
1
0.056911
false
0.065041
0.065041
0
0.162602
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
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
152a2395cd2e8c46a709808719b33060d1d3c87b
336
py
Python
utils/logger.py
HassanMojab/MetaNLI
130c3155967990f464b6dab0a319adb7a2225a55
[ "MIT" ]
2
2022-01-16T20:06:08.000Z
2022-01-16T20:08:43.000Z
utils/logger.py
HassanMojab/MetaNLI
130c3155967990f464b6dab0a319adb7a2225a55
[ "MIT" ]
null
null
null
utils/logger.py
HassanMojab/MetaNLI
130c3155967990f464b6dab0a319adb7a2225a55
[ "MIT" ]
null
null
null
import sys class Logger(object): def __init__(self, file_path: str = "logs.txt"): self.terminal = sys.stdout self.log = open(file_path, "w") def write(self, message: str): self.terminal.write(message) self.log.write(message) self.flush() def flush(self): s...
21
52
0.595238
44
336
4.409091
0.477273
0.108247
0.164948
0
0
0
0
0
0
0
0
0
0.270833
336
15
53
22.4
0.791837
0
0
0
0
0
0.026786
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
152e58926f6996dbb3965159996ef094a91c3458
1,317
py
Python
nthuion/views/comments.py
nthuion/nthuion-api
0abebb23025dac8bb5d3233c06947e50e2334175
[ "BSD-2-Clause" ]
1
2016-08-08T01:10:03.000Z
2016-08-08T01:10:03.000Z
nthuion/views/comments.py
nthuion/nthuion-api
0abebb23025dac8bb5d3233c06947e50e2334175
[ "BSD-2-Clause" ]
2
2016-08-08T13:19:42.000Z
2020-11-10T00:29:47.000Z
nthuion/views/comments.py
nthuion/nthuion-backend
0abebb23025dac8bb5d3233c06947e50e2334175
[ "BSD-2-Clause" ]
null
null
null
import datetime from .base import View, require_permission from .mixins import VotingMixin, CommentMixin, CommentValidation from nthuion.validation import body_schema, Optional from nthuion.models import Comment from pyramid.httpexceptions import HTTPNotFound class CommentContextMixin: @staticmethod def fac...
24.849057
68
0.66287
137
1,317
6.328467
0.467153
0.05075
0.041522
0.043829
0.071511
0.071511
0.071511
0
0
0
0
0
0.245254
1,317
52
69
25.326923
0.872233
0.099468
0
0.071429
0
0
0.02615
0
0
0
0
0
0
1
0.107143
false
0
0.214286
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
1535a7adb51bda153fa258055dbf594aa8b5b159
398
py
Python
backend/apps/events/migrations/0006_auto_20201026_1700.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
3
2021-11-18T09:29:14.000Z
2022-01-13T20:12:11.000Z
backend/apps/events/migrations/0006_auto_20201026_1700.py
rubberdok/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
277
2022-01-17T18:16:44.000Z
2022-03-31T19:44:04.000Z
backend/apps/events/migrations/0006_auto_20201026_1700.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-26 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("events", "0005_auto_20201026_1647"), ] operations = [ migrations.AlterField( model_name="category", name="name", ...
20.947368
63
0.603015
44
398
5.340909
0.818182
0
0
0
0
0
0
0
0
0
0
0.115385
0.281407
398
18
64
22.111111
0.706294
0.113065
0
0
1
0
0.116809
0.065527
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
1535fdd7c470ebb8607a5316b9be040b70ea59c7
464
py
Python
python/setup.py
mgeier/asdfspline-rust
112975d4bba94511a8803383a81de65c52eb24fd
[ "MIT", "Apache-2.0", "MIT-0" ]
2
2020-04-01T16:16:18.000Z
2020-12-17T00:00:59.000Z
python/setup.py
mgeier/asdfspline-rust
112975d4bba94511a8803383a81de65c52eb24fd
[ "MIT", "Apache-2.0", "MIT-0" ]
2
2020-03-28T10:38:41.000Z
2020-04-01T16:16:20.000Z
python/setup.py
mgeier/asdfspline-rust
112975d4bba94511a8803383a81de65c52eb24fd
[ "MIT", "Apache-2.0", "MIT-0" ]
2
2019-10-07T19:32:17.000Z
2020-12-17T00:01:00.000Z
from setuptools import setup setup( name='asdfspline', version='0.0.0', author='Matthias Geier', author_email='Matthias.Geier@gmail.com', description='Python bindings for ASDF splines', long_description=open('README.rst').read(), package_dir={'': 'src'}, py_modules=['asdfspline'], c...
27.294118
52
0.665948
59
464
5.084746
0.661017
0.026667
0.086667
0.093333
0.1
0
0
0
0
0
0
0.023018
0.157328
464
16
53
29
0.744246
0
0
0
0
0
0.344828
0.116379
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
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
153ad1551dc35915cd2a950d9b5fd91067a5eb53
1,449
py
Python
fb_scaper.py
OPSECman/fb_scaper
28e12ffe1a29f8fa6030464e75156297b38d3b13
[ "MIT" ]
1
2016-12-18T16:23:48.000Z
2016-12-18T16:23:48.000Z
fb_scaper.py
OPSECman/fb_scaper
28e12ffe1a29f8fa6030464e75156297b38d3b13
[ "MIT" ]
null
null
null
fb_scaper.py
OPSECman/fb_scaper
28e12ffe1a29f8fa6030464e75156297b38d3b13
[ "MIT" ]
null
null
null
# # An OPSECman Product # # Use irresponsibly # #Usage: python fb_scraper.py <page URL name here> #CLI only # import facepy import sys def main(): page = sys.argv[1] access_token = "YOUR ACCESS TOKEN GOES HERE" graph = facepy.GraphAPI(access_token) url_comments_likes = page + "/posts?limit=250&fields=likes{id,name...
25.875
78
0.575569
199
1,449
4.035176
0.321608
0.049813
0.09589
0.113325
0.28269
0.219178
0.082192
0.082192
0.082192
0.082192
0
0.007905
0.301587
1,449
55
79
26.345455
0.785573
0.064182
0
0.121951
0
0
0.116642
0.034918
0
0
0
0
0
0
null
null
0
0.04878
null
null
0.097561
0
0
0
null
0
0
0
0
0
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
153f41ba014a0434348ffb83f50d4504d5dc5d63
2,821
py
Python
src/ea/libs/NetLayerLib/FifoCallBack.py
dmachard/extensivetesting
a5c3d2648aebcfaf1d0352a7aff8728ab843b73f
[ "MIT" ]
9
2019-09-01T04:56:28.000Z
2021-04-08T19:45:52.000Z
src/ea/libs/NetLayerLib/FifoCallBack.py
dmachard/extensivetesting
a5c3d2648aebcfaf1d0352a7aff8728ab843b73f
[ "MIT" ]
5
2020-10-27T15:05:12.000Z
2021-12-13T13:48:11.000Z
src/ea/libs/NetLayerLib/FifoCallBack.py
dmachard/extensivetesting
a5c3d2648aebcfaf1d0352a7aff8728ab843b73f
[ "MIT" ]
2
2019-10-01T06:12:06.000Z
2020-04-29T13:28:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Copyright (c) 2010-2021 Denis Machard # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
29.385417
80
0.580645
326
2,821
4.996933
0.47546
0.054021
0.025783
0.022099
0
0
0
0
0
0
0
0.006529
0.294222
2,821
95
81
29.694737
0.811652
0.530663
0
0.243243
0
0
0
0
0
0
0
0
0
1
0.135135
false
0.054054
0.135135
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
1545a9b91cb0e3653dd441958cf89c645220bff8
282
py
Python
clickgen/types.py
Acidburn0zzz/clickgen
432f62844a019c684f19af409b5a8070b388f710
[ "MIT" ]
1
2020-08-11T19:59:59.000Z
2020-08-11T19:59:59.000Z
clickgen/types.py
Acidburn0zzz/clickgen
432f62844a019c684f19af409b5a8070b388f710
[ "MIT" ]
null
null
null
clickgen/types.py
Acidburn0zzz/clickgen
432f62844a019c684f19af409b5a8070b388f710
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import pathlib from logging import Logger from typing import List, Union, Tuple Path = Union[str, pathlib.Path] StringList = List[str] IntegerList = List[int] IntegerTuple = Tuple[int, int] CoordinateTuple = Union[Tuple[int, int], None]
17.625
46
0.741135
40
282
5.225
0.6
0.095694
0.105263
0
0
0
0
0
0
0
0
0.004149
0.14539
282
15
47
18.8
0.863071
0.12766
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
154aaa4c21328391b133247af95210944e86f8cf
3,832
py
Python
code/pythonwebsocket/demo05/server.py
abelit/abelit-DataScienceGuide
b4a12a0425f167a46b6f498718d9057793a2adb5
[ "Apache-2.0" ]
null
null
null
code/pythonwebsocket/demo05/server.py
abelit/abelit-DataScienceGuide
b4a12a0425f167a46b6f498718d9057793a2adb5
[ "Apache-2.0" ]
null
null
null
code/pythonwebsocket/demo05/server.py
abelit/abelit-DataScienceGuide
b4a12a0425f167a46b6f498718d9057793a2adb5
[ "Apache-2.0" ]
null
null
null
# from geventwebsocket.handler import WebSocketHandler # from gevent.pywsgi import WSGIServer # from flask import Flask, request, render_template_string # from flask_sockets import Sockets # import json # app = Flask(__name__) # sockets = Sockets(app) # template = """ # <html><body><table> # {% for key, value in appl...
32.752137
98
0.627349
474
3,832
4.966245
0.251055
0.071368
0.045879
0.056075
0.70051
0.681818
0.681818
0.649533
0.649533
0.649533
0
0.007446
0.158925
3,832
117
99
32.752137
0.722929
0.490866
0
0.134615
0
0.076923
0.580475
0.14934
0
0
0
0
0
1
0.038462
false
0
0.057692
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
155653e9b627ba3a21cd48cc5fe50d31588f67a0
16,712
py
Python
BL_Mapping_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
31
2020-10-16T03:15:06.000Z
2022-01-31T03:06:44.000Z
BL_Mapping_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
1
2020-10-16T07:02:25.000Z
2020-10-16T13:05:39.000Z
BL_Mapping_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
null
null
null
import unreal BL_Mapping = unreal.AssetToolsHelpers.get_asset_tools().create_asset('BL_Mapping','/Engine/Functions/BLUI/', unreal.MaterialFunction, unreal.MaterialFunctionFactoryNew()) BL_Mapping.set_editor_property("expose_to_library", True) BL_Mapping.set_editor_property("library_categories_text", ("BLUI", "Cust...
69.344398
171
0.802717
1,830
16,712
7.067213
0.110383
0.124952
0.201036
0.131447
0.566845
0.476224
0.331168
0.331168
0.009897
0
0
0.090915
0.076592
16,712
240
172
69.633333
0.747149
0.005385
0
0
0
0
0.048876
0.019917
0
0
0
0
0
1
0
false
0
0.004608
0
0.004608
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
155680f740603798283f1fe4ef447f208a447b35
420
py
Python
ex008.py
lucas54neves/python-curso
1b76e460cea9178f5aa7c4e9f71addf77529939b
[ "MIT" ]
null
null
null
ex008.py
lucas54neves/python-curso
1b76e460cea9178f5aa7c4e9f71addf77529939b
[ "MIT" ]
null
null
null
ex008.py
lucas54neves/python-curso
1b76e460cea9178f5aa7c4e9f71addf77529939b
[ "MIT" ]
null
null
null
# O programa le um valor em metros e o exibe convertido em centimetros e milimetros metros = float(input('Entre com a distancia em metros: ')) centimetros = metros * 100 milimetros = metros * 1000 kilometros = metros / 1000.0 print('{} metros e {:.0f} centimetros'.format(metros, centimetros)) print('{} metros e {} m...
38.181818
83
0.728571
56
420
5.464286
0.446429
0.091503
0.117647
0
0
0
0
0
0
0
0
0.036111
0.142857
420
11
84
38.181818
0.813889
0.192857
0
0
0
0
0.33432
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
15568de7d81dd4704521baa83e626d07f2e0b409
2,536
py
Python
tester/ApiTester.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2021-05-03T00:41:40.000Z
2021-05-03T00:41:40.000Z
tester/ApiTester.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2020-12-20T12:08:14.000Z
2020-12-20T12:08:14.000Z
tester/ApiTester.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2020-11-27T00:44:11.000Z
2020-11-27T00:44:11.000Z
import sys from cmd import Cmd from incognitosdk.Incognito import * config = Incognito.Config() config.WsUrl = None # Do not open websocket connection incognitoApi = Incognito(config) class testShell(Cmd): prompt = 'Please enter the command: ' command = None # for commands just requiring its parameters...
32.935065
115
0.604495
316
2,536
4.740506
0.335443
0.036716
0.072096
0.102136
0.354473
0.328438
0.298398
0.271028
0.271028
0.194927
0
0.016967
0.256309
2,536
76
116
33.368421
0.777306
0.065063
0
0.196429
0
0
0.051607
0.020305
0
0
0
0
0
1
0.214286
false
0.017857
0.053571
0
0.321429
0.178571
0
0
0
null
0
0
0
0
0
0
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
155e3d0c9930be37ba39087faa3ea19fec3ed069
7,444
py
Python
airbyte-integrations/bases/source-acceptance-test/unit_tests/test_asserts.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
6,215
2020-09-21T13:45:56.000Z
2022-03-31T21:21:45.000Z
airbyte-integrations/bases/source-acceptance-test/unit_tests/test_asserts.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
8,448
2020-09-21T00:43:50.000Z
2022-03-31T23:56:06.000Z
airbyte-integrations/bases/source-acceptance-test/unit_tests/test_asserts.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1,251
2020-09-20T05:48:47.000Z
2022-03-31T10:41:29.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import pytest from airbyte_cdk.models import ( AirbyteRecordMessage, AirbyteStream, ConfiguredAirbyteCatalog, ConfiguredAirbyteStream, DestinationSyncMode, SyncMode, ) from source_acceptance_test.utils.asserts import verify_records_sc...
53.942029
136
0.554406
835
7,444
4.845509
0.207186
0.084034
0.158181
0.16609
0.550914
0.522491
0.505932
0.505932
0.48344
0.382106
0
0.041786
0.202714
7,444
137
137
54.335766
0.639933
0.066362
0
0.110092
0
0
0.355379
0.018195
0
0
0
0
0.06422
1
0.036697
false
0
0.027523
0.009174
0.082569
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
155e65529996e1910cd07c63e9ae57772a2c84f5
518
py
Python
334_increasing_triplet_subsequence.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
334_increasing_triplet_subsequence.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
334_increasing_triplet_subsequence.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 334. Increasing Triplet Subsequence # # Q: https://leetcode.com/problems/increasing-triplet-subsequence/ # A: https://leetcode.com/problems/increasing-triplet-subsequence/discuss/977048/Kt-Js-Py3-Cpp-Construct-a-b-c # from typing import List class Solution: def increasingTriplet(self, A: List[int], a = float(...
30.470588
110
0.602317
75
518
4.16
0.506667
0.102564
0.269231
0.153846
0.333333
0.333333
0.333333
0
0
0
0
0.025381
0.239382
518
16
111
32.375
0.766497
0.403475
0
0
0
0
0.039735
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15694175d253c08e940b5245ba920bac372d84b4
7,104
py
Python
test/yml/node/combo/npm_test_lint_validation_xunit_cobertura_test.py
swellaby/azure-pipeline-templates
adc83c8b0a4a8347f4c453073d131de897357090
[ "MIT" ]
1
2019-10-11T14:31:33.000Z
2019-10-11T14:31:33.000Z
test/yml/node/combo/npm_test_lint_validation_xunit_cobertura_test.py
swellaby/azure-pipeline-templates
adc83c8b0a4a8347f4c453073d131de897357090
[ "MIT" ]
64
2019-03-09T19:02:05.000Z
2021-11-09T14:02:52.000Z
test/yml/node/combo/npm_test_lint_validation_xunit_cobertura_test.py
swellaby/azure-pipeline-templates
adc83c8b0a4a8347f4c453073d131de897357090
[ "MIT" ]
null
null
null
from test.test_utilities import parse_node_combo_template_yaml_file fileName = "npm-test-lint-validation-xunit-cobertura.yml" contents = parse_node_combo_template_yaml_file(fileName) steps = contents["steps"] parameters = contents["parameters"] npmInstallParameters = parameters["npmInstall"] npmTestScriptParameters = ...
37.989305
79
0.810529
643
7,104
8.550544
0.153966
0.043288
0.058567
0.042561
0.306111
0.252274
0.205529
0.148418
0.121135
0.086941
0
0.000469
0.100507
7,104
186
80
38.193548
0.859937
0
0
0.042735
0
0
0.263232
0.137247
0
0
0
0
0.290598
1
0.290598
false
0
0.008547
0
0.299145
0
0
0
0
null
0
0
0
0
0
0
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
156c01fc386ebae33aaea1168b9c203380d4f54f
1,886
py
Python
tests/unit/tensorflow/modules/test_sequential.py
chiragnagpal/probflow
1ba0619cd4f482a015cd25633d2f113d5d0f3476
[ "MIT" ]
134
2019-02-18T09:45:35.000Z
2022-03-26T22:17:34.000Z
tests/unit/tensorflow/modules/test_sequential.py
chiragnagpal/probflow
1ba0619cd4f482a015cd25633d2f113d5d0f3476
[ "MIT" ]
44
2019-04-18T17:41:33.000Z
2021-09-14T00:40:55.000Z
tests/unit/tensorflow/modules/test_sequential.py
chiragnagpal/probflow
1ba0619cd4f482a015cd25633d2f113d5d0f3476
[ "MIT" ]
18
2019-10-17T05:45:16.000Z
2022-03-03T11:58:02.000Z
import numpy as np import tensorflow as tf import tensorflow_probability as tfp from probflow.modules import Dense, Sequential from probflow.parameters import Parameter from probflow.utils.settings import Sampling tfd = tfp.distributions def is_close(a, b, tol=1e-3): return np.abs(a - b) < tol def test_Sequen...
28.575758
73
0.669671
283
1,886
4.378092
0.293286
0.050847
0.062954
0.076675
0.321227
0.237288
0.196933
0.196933
0.196933
0.196933
0
0.037697
0.226405
1,886
65
74
29.015385
0.811515
0.115058
0
0.217391
0
0
0.013872
0
0
0
0
0
0.5
1
0.043478
false
0
0.130435
0.021739
0.195652
0
0
0
0
null
0
0
0
0
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
1572e1e4dd6112d16f2eaad297ea8c12fd600556
2,124
py
Python
Control/command_center.py
bnnyd/drones_proj
7da2a68290d8beb87601a5e3161cbf21c91f7b29
[ "MIT" ]
null
null
null
Control/command_center.py
bnnyd/drones_proj
7da2a68290d8beb87601a5e3161cbf21c91f7b29
[ "MIT" ]
null
null
null
Control/command_center.py
bnnyd/drones_proj
7da2a68290d8beb87601a5e3161cbf21c91f7b29
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket from General.general_common import States from .control_common import AxisIndex class CommandCenter(): def __init__(self): self.UDP_IP = "172.16.10.1" # TODO: read these values from config file self.UDP_PORT = 8080 self.sock = socket.socket(socket.AF_INE...
55.894737
124
0.653955
295
2,124
4.454237
0.345763
0.031963
0.0586
0.068493
0.316591
0.316591
0.294521
0.219939
0.168189
0.168189
0
0.095471
0.230697
2,124
38
124
55.894737
0.70869
0.051318
0
0
0
0
0.008973
0
0
0
0
0.026316
0
1
0.121212
false
0
0.090909
0.030303
0.272727
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
1578b2cf3a64dff0e4202a5adebe570b72035722
565
py
Python
Aulas/mundo3/aula23.py
EaMS1234/learning-python
b0b143960ed0e2b2660617e1314c55814b05fbb2
[ "MIT" ]
null
null
null
Aulas/mundo3/aula23.py
EaMS1234/learning-python
b0b143960ed0e2b2660617e1314c55814b05fbb2
[ "MIT" ]
null
null
null
Aulas/mundo3/aula23.py
EaMS1234/learning-python
b0b143960ed0e2b2660617e1314c55814b05fbb2
[ "MIT" ]
null
null
null
try: # TENTA VER SE DÁ CERTO a = int(input('Digite um número: ')) b = int(input('Digite um número: ')) print(f'{a} / {b} = {a / b}') except Exception as erro: # SE DER UM ERRO, RETORNA A VARIÁVEL ERRO COM A INFORMAÇÃO print(f'\033[31mERRO! {erro.__class__}\033[0m') except ValueError: # SE DER UM ERRO...
43.461538
85
0.661947
90
565
4.111111
0.555556
0.040541
0.075676
0.086486
0.118919
0
0
0
0
0
0
0.059867
0.20177
565
12
86
47.083333
0.760532
0.371681
0
0
0
0
0.446991
0.065903
0
0
0
0
0
1
0
false
0
0
0
0
0.416667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
1581ae6a672e228de829a61a21164e25c082cc35
772
py
Python
backend/api/countries_detail.py
takusan64/world-dictionary-backend
98d92547eef6c5bb4adf89dd412273d30db00317
[ "MIT" ]
null
null
null
backend/api/countries_detail.py
takusan64/world-dictionary-backend
98d92547eef6c5bb4adf89dd412273d30db00317
[ "MIT" ]
null
null
null
backend/api/countries_detail.py
takusan64/world-dictionary-backend
98d92547eef6c5bb4adf89dd412273d30db00317
[ "MIT" ]
null
null
null
from database.countries_detail import DataBase_Countries_Detail from openapi import request as req_model db_countries_detail = DataBase_Countries_Detail() def get_countries_detail(lang:req_model.Language_Enum): countries_detail = db_countries_detail.get_countries_detail(lang) if countries_detail: keys...
36.761905
79
0.762953
104
772
5.336538
0.317308
0.297297
0.124324
0.079279
0.38018
0.115315
0
0
0
0
0
0.001517
0.146373
772
21
80
36.761905
0.840668
0
0
0.333333
0
0
0.061089
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
158420782f389fb30f5e75b367e6546cb3a89366
741
py
Python
Python Backend/diarization/setup.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
1
2022-02-15T02:49:22.000Z
2022-02-15T02:49:22.000Z
Python Backend/diarization/setup.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
null
null
null
Python Backend/diarization/setup.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
2
2021-07-11T12:42:43.000Z
2022-02-15T02:49:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import s4d setup( name='s4d', version=s4d.__version__, packages=find_packages(), author="Sylvain MEIGNIER", author_email="s4d@univ-lemans.fr", description="S4D: SIDEKIT for Diarization", long_descript...
29.64
89
0.653171
84
741
5.642857
0.785714
0.050633
0.050633
0
0
0
0
0
0
0
0
0.015228
0.202429
741
24
90
30.875
0.786802
0.05668
0
0
0
0
0.480631
0.031564
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1589aea3d97b2dfc6d3768dabf3a6e22b7beafb3
3,046
py
Python
app/route/project/provider.py
LifeLaboratory/asi_lifelaboratory_backend
8da15c239056ed8be09c7937776c77095d9b1dd6
[ "MIT" ]
null
null
null
app/route/project/provider.py
LifeLaboratory/asi_lifelaboratory_backend
8da15c239056ed8be09c7937776c77095d9b1dd6
[ "MIT" ]
null
null
null
app/route/project/provider.py
LifeLaboratory/asi_lifelaboratory_backend
8da15c239056ed8be09c7937776c77095d9b1dd6
[ "MIT" ]
null
null
null
from app.api.base import base_name as names from app.api.base.base_sql import Sql class Provider: @staticmethod def get_project(args): if args.get(names.ID_PROJECT): query = """ select * from project where "id_project" = {id_project} order by ti...
25.173554
184
0.556139
363
3,046
4.515152
0.179063
0.098841
0.055522
0.076876
0.420988
0.361196
0.361196
0.342282
0.273337
0.187919
0
0
0.339462
3,046
120
185
25.383333
0.814612
0
0
0.424779
0
0.00885
0.687787
0.029547
0
0
0
0
0
1
0.053097
false
0
0.017699
0
0.141593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
158db48d788029f589ff80bb3d841c939d218b0c
902
py
Python
textpipes/components/newscorpus.py
Waino/textpipes
6aa96b7b2f1c6917efed7eeb27a756f759c98c03
[ "BSD-2-Clause" ]
2
2018-07-13T07:01:16.000Z
2021-03-03T16:25:00.000Z
textpipes/components/newscorpus.py
Waino/textpipes
6aa96b7b2f1c6917efed7eeb27a756f759c98c03
[ "BSD-2-Clause" ]
null
null
null
textpipes/components/newscorpus.py
Waino/textpipes
6aa96b7b2f1c6917efed7eeb27a756f759c98c03
[ "BSD-2-Clause" ]
null
null
null
from .core import RegexSubstitution from .filtering import FilterRegex class FilterIltasanomat(FilterRegex): """ the news.2015.fi.shuffled.gz and news.2016.fi.shuffled.gz corpora contain a large number of URL crawling artefacts. Most are of type http://www.iltasanomat.fi/haku/ http://www.iltasanoma...
34.692308
70
0.63082
105
902
5.266667
0.580952
0.063291
0.162749
0.180832
0.260398
0.184448
0.184448
0.184448
0.184448
0.184448
0
0.014265
0.222838
902
25
71
36.08
0.774608
0.315965
0
0
0
0
0.204152
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
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
159202d92b592cd457a1cd22a37e2006235a71eb
2,501
py
Python
train_val_framework/utils/sysmonitor.py
neu-spiral/RFMLS-NEU
0646ea6c3b11270f32028c765860585dc8d5e535
[ "MIT" ]
24
2019-07-29T13:50:52.000Z
2022-03-11T20:16:07.000Z
train_val_framework/utils/sysmonitor.py
ShnDanYao/RFMLS-NEU
0646ea6c3b11270f32028c765860585dc8d5e535
[ "MIT" ]
12
2019-12-16T22:17:01.000Z
2022-02-10T00:25:37.000Z
train_val_framework/utils/sysmonitor.py
ShnDanYao/RFMLS-NEU
0646ea6c3b11270f32028c765860585dc8d5e535
[ "MIT" ]
12
2019-07-15T16:13:22.000Z
2021-11-22T18:50:49.000Z
''' This source code was developed under the DARPA Radio Frequency Machine Learning Systems (RFMLS) program contract N00164-18-R-WQ80. All the code released here is unclassified and the Government has unlimited rights to the code. ''' import time import datetime import numpy as np import matplotlib.pyplot as plt im...
31.658228
81
0.59976
313
2,501
4.728435
0.447284
0.05473
0.024324
0.014865
0
0
0
0
0
0
0
0.027548
0.27429
2,501
78
82
32.064103
0.787879
0.015194
0
0.032258
0
0
0.072809
0
0
0
0
0
0
0
null
null
0
0.129032
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
159e3f744124bb43b6650ab9056ee4220f7f132b
2,270
py
Python
soap/common/base.py
gitter-badger/soap
4f5eb7848e4dc516a6ff972db5c8c46ec9037c47
[ "MIT" ]
22
2016-02-08T16:57:30.000Z
2021-03-12T20:32:06.000Z
soap/common/base.py
gitter-badger/soap
4f5eb7848e4dc516a6ff972db5c8c46ec9037c47
[ "MIT" ]
1
2018-07-11T21:21:27.000Z
2018-07-17T19:53:19.000Z
soap/common/base.py
gitter-badger/soap
4f5eb7848e4dc516a6ff972db5c8c46ec9037c47
[ "MIT" ]
6
2016-02-01T13:30:56.000Z
2018-11-28T04:35:27.000Z
import inspect class DynamicMethods(object): __slots__ = () @classmethod def list_method_names(cls, predicate): """Find all transform methods within the class that satisfies the predicate. Returns: A list of tuples containing method names. """ methods ...
28.734177
76
0.623789
262
2,270
5.083969
0.351145
0.026276
0.045045
0.054054
0.152402
0.099099
0.043544
0
0
0
0
0.000616
0.285022
2,270
78
77
29.102564
0.820086
0.067401
0
0.074074
0
0
0.017324
0
0
0
0
0
0
1
0.185185
false
0.018519
0.037037
0.092593
0.537037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
15a022c7d724cf7da1ce9e4d0d53e2316e88ec59
207
py
Python
test_loss.py
Hibb-bb/SupContrast
8dfdf7a235d198da1e2d73ec4dc6fa45841591bf
[ "BSD-2-Clause" ]
1
2022-01-27T09:39:38.000Z
2022-01-27T09:39:38.000Z
test_loss.py
Hibb-bb/SupContrast
8dfdf7a235d198da1e2d73ec4dc6fa45841591bf
[ "BSD-2-Clause" ]
null
null
null
test_loss.py
Hibb-bb/SupContrast
8dfdf7a235d198da1e2d73ec4dc6fa45841591bf
[ "BSD-2-Clause" ]
null
null
null
import torch from losses import MetricLoss import torch.nn.functional as F cri = MetricLoss() x = torch.ones(4, 5) # x = F.one_hot(torch.arange(0, 5)).float() print(x) loss = cri.orth_reg(x) print(loss)
14.785714
43
0.705314
37
207
3.891892
0.621622
0.152778
0
0
0
0
0
0
0
0
0
0.022727
0.149758
207
13
44
15.923077
0.795455
0.198068
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
15a2978bb8de35912de321964eccdef684355984
1,898
py
Python
ds/beis_indicators/eurostat/make_eurostat.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
4
2020-04-09T20:16:38.000Z
2022-03-25T11:36:30.000Z
ds/beis_indicators/eurostat/make_eurostat.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
353
2019-11-06T11:26:51.000Z
2021-12-08T09:13:53.000Z
ds/beis_indicators/eurostat/make_eurostat.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
1
2020-08-03T12:42:31.000Z
2020-08-03T12:42:31.000Z
import logging import numpy as np import pandas as pd import glob import ast from eurostatapiclient import EurostatAPIClient from beis_indicators.geo.nuts import auto_nuts2_uk from beis_indicators import project_dir logger = logging.getLogger(__name__) VERSION = 'v2.1' FORMAT = 'json' LANGUAGE = 'en' ...
28.757576
95
0.639621
256
1,898
4.574219
0.4375
0.020495
0.028181
0.033305
0.06661
0.06661
0
0
0
0
0
0.010047
0.213383
1,898
65
96
29.2
0.77428
0
0
0
0
0
0.295145
0.047463
0
0
0
0
0
0
null
null
0
0.173913
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
15a4df6242521f6918147aa4bc6dca664b06ead3
8,597
py
Python
batch/batching.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
7
2021-03-26T21:33:09.000Z
2022-03-01T17:06:55.000Z
batch/batching.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
batch/batching.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. import os import sys import time class BatchJob: batchid_counter = 0 def __init__...
26.130699
79
0.566011
907
8,597
5.316428
0.249173
0.037329
0.04355
0.01742
0.056823
0.038573
0.025301
0.025301
0.01825
0.01825
0
0.005468
0.340584
8,597
328
80
26.210366
0.845123
0.096196
0
0.221739
0
0
0.004961
0
0
0
0
0
0
1
0.204348
false
0.013043
0.013043
0.06087
0.317391
0
0
0
0
null
0
0
0
0
0
0
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
15ab37bb696412f1df11a4d4eebdd7e556c8b976
2,668
py
Python
2_energy_signature/Energy Signature/choose_data.py
FrancescoConforte/ICT-in-Building-Design
72ef4c432f475a4896f62bb3ff868b67bf770c36
[ "MIT" ]
null
null
null
2_energy_signature/Energy Signature/choose_data.py
FrancescoConforte/ICT-in-Building-Design
72ef4c432f475a4896f62bb3ff868b67bf770c36
[ "MIT" ]
null
null
null
2_energy_signature/Energy Signature/choose_data.py
FrancescoConforte/ICT-in-Building-Design
72ef4c432f475a4896f62bb3ff868b67bf770c36
[ "MIT" ]
null
null
null
#Script to choose useful data to performe Energy Signature #The mean between the 3 zones (corridor, zone1 and zone2) is done #A file called mydata.csv is built and saved. It's the file to be used to perform Energy Signature import pandas as pd import sys from datetime import timedelta, datetime #pass as input eplusout...
41.6875
101
0.685532
392
2,668
4.576531
0.298469
0.035674
0.089186
0.073579
0.582497
0.561316
0.488852
0.430881
0.229097
0.229097
0
0.028897
0.143928
2,668
63
102
42.349206
0.756567
0.097076
0
0
0
0
0.611227
0.039917
0
0
0
0
0
1
0
false
0
0.061224
0
0.061224
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15ad19680243f4b838a0dd72e364c4af3a982cce
13,222
py
Python
examples/TSServer.py
bepec/pydvbcss
72bec02d42582416390ea0379dc6b79da8cd0721
[ "Apache-2.0" ]
22
2015-03-15T17:24:47.000Z
2021-12-23T01:42:24.000Z
examples/TSServer.py
bepec/pydvbcss
72bec02d42582416390ea0379dc6b79da8cd0721
[ "Apache-2.0" ]
15
2016-02-21T20:05:03.000Z
2021-01-11T12:19:18.000Z
examples/TSServer.py
bepec/pydvbcss
72bec02d42582416390ea0379dc6b79da8cd0721
[ "Apache-2.0" ]
6
2015-03-30T11:41:20.000Z
2020-12-16T11:16:00.000Z
#!/usr/bin/env python # # Copyright 2015 British Broadcasting Corporation # # 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 requ...
51.248062
221
0.696188
1,616
13,222
5.642946
0.280322
0.002193
0.007896
0.009321
0.237745
0.189714
0.130497
0.102643
0.088826
0.088826
0
0.017029
0.213886
13,222
257
222
51.447471
0.860304
0.133111
0
0.189781
0
0.007299
0.156232
0.02384
0
0
0
0
0
0
null
null
0.014599
0.094891
null
null
0.094891
0
0
0
null
0
0
0
0
0
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
15aea8c5ea8b2bf15bed4705006bc22d1cd69ef4
1,415
py
Python
saleor/lib/python3.7/site-packages/braintree/document_upload_gateway.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
saleor/lib/python3.7/site-packages/braintree/document_upload_gateway.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
myvenv/lib/python3.6/site-packages/braintree/document_upload_gateway.py
yog240597/saleor
b75a23827a4ec2ce91637f0afe6808c9d09da00a
[ "CC-BY-4.0" ]
2
2019-05-06T01:10:41.000Z
2019-05-06T01:10:42.000Z
import braintree import mimetypes from braintree.document_upload import DocumentUpload from braintree.error_result import ErrorResult from braintree.resource import Resource from braintree.successful_result import SuccessfulResult class DocumentUploadGateway(object): def __init__(self, gateway): self.gatew...
35.375
133
0.684099
161
1,415
5.782609
0.385093
0.055854
0.034372
0
0
0
0
0
0
0
0
0.001776
0.20424
1,415
39
134
36.282051
0.825044
0
0
0
0
0
0.109541
0.014841
0
0
0
0
0
1
0.166667
false
0
0.2
0.066667
0.566667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
15b0153f23b2715421a6de4ef8b4b71c42b7d483
550
py
Python
addons/s3/tests/utils.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
addons/s3/tests/utils.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
addons/s3/tests/utils.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- from addons.base.tests.base import OAuthAddonTestCaseMixin, AddonTestCase from addons.s3.tests.factories import S3AccountFactory from addons.s3.provider import S3Provider from addons.s3.serializer import S3Serializer class S3AddonTestCase(OAuthAddonTestCaseMixin, AddonTestCase): ADDON_SHOR...
28.947368
73
0.718182
53
550
7.415094
0.54717
0.101781
0.091603
0
0
0
0
0
0
0
0
0.026906
0.189091
550
18
74
30.555556
0.85426
0.038182
0
0
0
0
0.056926
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
15b8197e89711a46924f41bd717b93e17d871bbd
516
py
Python
PartI/Lab_1_1/PY/Lab_1_1_Simple.py
DmitrTRC/LabTraining
9c689e5965d0fbdeacd2e991945c05e4b06c6928
[ "Apache-2.0" ]
null
null
null
PartI/Lab_1_1/PY/Lab_1_1_Simple.py
DmitrTRC/LabTraining
9c689e5965d0fbdeacd2e991945c05e4b06c6928
[ "Apache-2.0" ]
1
2021-12-11T16:51:56.000Z
2021-12-11T16:51:56.000Z
PartI/Lab_1_1/PY/Lab_1_1_Simple.py
DmitrTRC/LabTraining
9c689e5965d0fbdeacd2e991945c05e4b06c6928
[ "Apache-2.0" ]
1
2021-12-27T15:30:29.000Z
2021-12-27T15:30:29.000Z
print('Laboratory work 1.1 measurements of the R-load.') measurements = [] measurements_count = int(input('Enter number of measurements : ')) for cur_measurement_number in range(1, measurements_count+1): print(f'Enter value for measurement {cur_measurement_number} -> ', end='') measurement = float(input()) ...
30.352941
78
0.74031
65
516
5.723077
0.430769
0.150538
0.215054
0.11828
0
0
0
0
0
0
0
0.008989
0.137597
516
16
79
32.25
0.826966
0
0
0
0
0
0.394175
0.093204
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
15c01df1ad1d5952d7f37dc5f70e88abde4861a8
1,839
py
Python
pychron/hardware/core/communicators/watlowstandardbus_communicator.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/hardware/core/communicators/watlowstandardbus_communicator.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/hardware/core/communicators/watlowstandardbus_communicator.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2021 ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
32.839286
86
0.5764
211
1,839
4.990521
0.549763
0.05698
0.024691
0.030389
0
0
0
0
0
0
0
0.006925
0.214791
1,839
55
87
33.436364
0.722299
0.413812
0
0
0
0
0.03393
0
0
0
0
0
0
1
0.214286
false
0.035714
0.071429
0.035714
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ec5967bf445c301f55d7cacb1a9df40c6c850f50
2,487
py
Python
uc_rejection.py
qun-liu/PyMDA
1f123dbeffe307d7ae73dfb9af874277f15522c9
[ "BSD-3-Clause" ]
2
2021-02-13T20:40:48.000Z
2021-04-20T01:40:06.000Z
uc_rejection.py
qun-liu/PyMDA
1f123dbeffe307d7ae73dfb9af874277f15522c9
[ "BSD-3-Clause" ]
null
null
null
uc_rejection.py
qun-liu/PyMDA
1f123dbeffe307d7ae73dfb9af874277f15522c9
[ "BSD-3-Clause" ]
null
null
null
#!/bin/env python # free to use or modify # Authors: # Qun Liu: qun.liu@gmail.com # Lina Takamaru: llt45@cornell.edu # References: J. Appl. Cryst. (2020). 53 https://doi.org/10.1107/S160057671901673X from scipy.cluster import vq from scipy.cluster.hierarchy import linkage, dendrogram, to_tree, fcluster from ma...
31.884615
88
0.661037
360
2,487
4.425
0.416667
0.045198
0.033898
0.043315
0.056497
0
0
0
0
0
0
0.026078
0.198231
2,487
77
89
32.298701
0.772818
0.187776
0
0.109091
0
0
0.074277
0.010967
0
0
0
0
0
0
null
null
0
0.127273
null
null
0.036364
0
0
0
null
0
0
0
0
0
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
ec5ccc6532173c30dfc859de24c8d44b3af96548
859
py
Python
pypipe/lib/controls/__init__.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
pypipe/lib/controls/__init__.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
pypipe/lib/controls/__init__.py
AGrigis/pypipe
a77fc2c81cb469535b650c79718f811c5c056238
[ "CECILL-B" ]
null
null
null
########################################################################## # PyPipe - Copyright (C) AGrigis, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ####...
23.861111
74
0.569267
101
859
4.821782
0.475248
0.028747
0
0
0
0
0
0
0
0
0
0.006974
0.165309
859
35
75
24.542857
0.672245
0.308498
0
0
0
0
0.101617
0
0
0
0
0
0
1
0
false
0
0.45
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ec6143486a8e5ae22a9ae2c5935954fbffb82185
4,812
py
Python
skmpe/_parameters.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
7
2020-05-08T16:54:37.000Z
2022-03-20T08:47:02.000Z
skmpe/_parameters.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
5
2020-02-05T15:50:42.000Z
2021-05-23T20:23:18.000Z
skmpe/_parameters.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
1
2021-07-02T12:23:52.000Z
2021-07-02T12:23:52.000Z
# -*- coding: utf-8 -*- import contextlib import enum from typing import Type, Union from pydantic import confloat, conint from scipy.integrate import RK23, RK45, DOP853, Radau, BDF, LSODA from ._base import mpe_module, ImmutableDataObject @mpe_module class TravelTimeOrder(enum.IntEnum): """The enumeration of ...
21.972603
85
0.637573
543
4,812
5.403315
0.252302
0.06135
0.042945
0.023177
0.30334
0.25017
0.194956
0.177914
0.145194
0.145194
0
0.042022
0.26808
4,812
218
86
22.073395
0.791028
0.552785
0
0.098039
0
0
0.016165
0
0
0
0
0
0
1
0.078431
false
0
0.117647
0.019608
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ec62013de82519791512d9d05975f49b13fdae53
6,988
py
Python
kamc-gui-1.1.py
ArdaKC/KAMCGUI
088058a068441138ac2dd78d0470f58bbc81f3a3
[ "MIT" ]
3
2021-08-20T03:41:11.000Z
2021-08-23T03:53:21.000Z
kamc-gui-1.1.py
ArdaKC/KAMCGUI
088058a068441138ac2dd78d0470f58bbc81f3a3
[ "MIT" ]
null
null
null
kamc-gui-1.1.py
ArdaKC/KAMCGUI
088058a068441138ac2dd78d0470f58bbc81f3a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'guiconfig.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
38.395604
161
0.573268
755
6,988
5.222517
0.27947
0.066193
0.050723
0.068983
0.403246
0.340096
0.321836
0.314989
0.282526
0.282526
0
0.039589
0.316829
6,988
181
162
38.607735
0.785924
0.03921
0
0.412587
1
0
0.161497
0
0
0
0
0
0
1
0.055944
false
0
0.090909
0
0.153846
0.013986
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
ec65bb3e4dc9b33800b5d9ddf4e1285a328243fe
4,311
py
Python
test/def_test.py
gebrkn/chartreux
95402b6850e6f823440e7586a9c239b8eea68299
[ "MIT" ]
2
2019-05-04T00:38:51.000Z
2021-05-12T16:08:26.000Z
test/def_test.py
gebrkn/chartreux
95402b6850e6f823440e7586a9c239b8eea68299
[ "MIT" ]
null
null
null
test/def_test.py
gebrkn/chartreux
95402b6850e6f823440e7586a9c239b8eea68299
[ "MIT" ]
null
null
null
"""Functions.""" from . import u def test_def(): t = """ @def myfun (a, b) arg1={a} | arg2={b} | {a}/{b} @end | {myfun(x, y)} | {myfun(u, w)} | """ s = u.render(t, { 'x': 'xx', ...
16.146067
71
0.328926
520
4,311
2.671154
0.151923
0.050396
0.086393
0.097192
0.550036
0.452844
0.427646
0.427646
0.385169
0.222462
0
0.037069
0.461842
4,311
266
72
16.206767
0.561638
0.00232
0
0.509709
0
0.004854
0.653551
0.028638
0
0
0
0
0.072816
1
0.072816
false
0
0.004854
0
0.07767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec6b67767da637b88014471d077f80ec7881ab1b
1,737
py
Python
s2s-ft/multimodalKB/utils/mturk_data_analysis.py
shiquanyang/unilm
6de1d625fe7694fcc8bc55ebba03ef5982f47eea
[ "MIT" ]
null
null
null
s2s-ft/multimodalKB/utils/mturk_data_analysis.py
shiquanyang/unilm
6de1d625fe7694fcc8bc55ebba03ef5982f47eea
[ "MIT" ]
null
null
null
s2s-ft/multimodalKB/utils/mturk_data_analysis.py
shiquanyang/unilm
6de1d625fe7694fcc8bc55ebba03ef5982f47eea
[ "MIT" ]
null
null
null
import numpy as np import pdb path = "/home/yimeng/shiquan/ParlAI/parlai/mturk/run_data/live/samples.txt" vocabulary_size, max_turns_per_dialog, min_turns_per_dialog, average_turns_per_dialog, average_tokens_per_turn, total_number_of_turns = 0, 0, 0, 0, 0, 0 dict = {} turns_per_dialog = [] tokens_per_turn = [] with o...
37.76087
152
0.561313
230
1,737
3.986957
0.26087
0.104689
0.183206
0.078517
0.154853
0.100327
0.100327
0.100327
0.100327
0.100327
0
0.014555
0.327576
1,737
45
153
38.6
0.770548
0.008636
0
0.275
0
0
0.111111
0.038394
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.15
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
ec714492656aaa649157d076cd73d0b4445ac1b3
1,025
py
Python
src/functions.py
ArielTriana/nnode-template-system
cc4a0f387773f725ff36a031dc71c3326e8e4dc2
[ "MIT" ]
1
2022-03-16T01:04:40.000Z
2022-03-16T01:04:40.000Z
src/functions.py
ArielTriana/nnode-template-system
cc4a0f387773f725ff36a031dc71c3326e8e4dc2
[ "MIT" ]
null
null
null
src/functions.py
ArielTriana/nnode-template-system
cc4a0f387773f725ff36a031dc71c3326e8e4dc2
[ "MIT" ]
null
null
null
from typing import List, AnyStr from command_factory import CommandFactory from colorama import Fore, Style from constant import MAIN_CYCLE, LINUX def print_yellow(txt: str, bold=True): print(((Fore.YELLOW + (Style.BRIGHT if bold else "")) if LINUX else "") + txt + (Fore.RESET if LINUX else "")) def print_prompt(...
31.060606
114
0.67122
137
1,025
4.883212
0.372263
0.06577
0.06577
0.053812
0.068759
0
0
0
0
0
0
0
0.19122
1,025
32
115
32.03125
0.806996
0
0
0.076923
0
0
0.045854
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0
0.384615
0.384615
0
0
0
null
0
0
0
0
0
0
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
ec734a3e0ae6a3259b5ccf70d8a3edfa93a6fe06
779
py
Python
cmsplugin_cascade/segmentation/cms_toolbars.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
1
2022-01-11T07:21:17.000Z
2022-01-11T07:21:17.000Z
cmsplugin_cascade/segmentation/cms_toolbars.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
null
null
null
cmsplugin_cascade/segmentation/cms_toolbars.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
1
2020-03-27T18:09:21.000Z
2020-03-27T18:09:21.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ from cms.toolbar_pool import toolbar_pool from cms.toolbar_base import CMSToolbar from cmsplugin_cascade import app_settings @toolbar_pool.reg...
37.095238
83
0.75353
91
779
6.153846
0.538462
0.058929
0.053571
0
0
0
0
0
0
0
0
0.003091
0.169448
779
20
84
38.95
0.862442
0.026958
0
0
0
0
0.078042
0
0
0
0
0
0
1
0.066667
false
0
0.466667
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ec79803aa31f798088aaccbe4ca08bed5ff65cc6
859
py
Python
corehq/apps/hqadmin/tests/test_corrupt_couch.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/hqadmin/tests/test_corrupt_couch.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/hqadmin/tests/test_corrupt_couch.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from testil import eq from ..corrupt_couch import find_missing_ids def test_find_missing_ids(): def test(result_sets, expected_missing, expected_tries, min_tries=5): def get_ids(): while len(results) > 1: return results.pop() return results[0] results = li...
34.36
79
0.525029
137
859
3.160584
0.262774
0.04157
0.161663
0.177829
0.364896
0.166282
0.096998
0
0
0
0
0.107372
0.273574
859
24
80
35.791667
0.586538
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.368421
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec7bdc79f8592b030f49c7426e079c908065922b
1,532
py
Python
catacomb/commands/tomb/add.py
mitchjeitani/safe
9b710319a769d532902cb1f7bfecd94155c4e2bf
[ "MIT" ]
30
2017-11-09T09:38:04.000Z
2021-04-15T16:04:18.000Z
catacomb/commands/tomb/add.py
mitchjeitani/safe
9b710319a769d532902cb1f7bfecd94155c4e2bf
[ "MIT" ]
14
2017-11-22T12:47:17.000Z
2018-06-18T04:47:48.000Z
catacomb/commands/tomb/add.py
mitchjeitani/safe
9b710319a769d532902cb1f7bfecd94155c4e2bf
[ "MIT" ]
3
2018-04-04T10:40:20.000Z
2019-05-25T07:17:04.000Z
import click from catacomb.common import constants from catacomb.utils import formatter, helpers, tomb_handler @click.command( constants.CMD_ADD_NAME, help=constants.CMD_ADD_DESC, short_help=constants.CMD_ADD_DESC) @click.argument("alias", nargs=1) @click.argument("command", nargs=1, required=False) @click.p...
36.47619
77
0.705614
221
1,532
4.764706
0.384615
0.079772
0.099715
0.054131
0.117759
0
0
0
0
0
0
0.001658
0.212794
1,532
41
78
37.365854
0.871476
0.364883
0
0
0
0
0.013889
0
0
0
0
0
0
1
0.052632
false
0.052632
0.157895
0
0.210526
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
1
0
0
0
0
0
1
ec8dcffec4e80a98707be3db4816c1e61036715a
5,147
py
Python
detect-dupes.py
bradtraina/python-detect-dupes
b2d22c9611af470a4c2e9e858dfcddbbac827c4d
[ "MIT" ]
null
null
null
detect-dupes.py
bradtraina/python-detect-dupes
b2d22c9611af470a4c2e9e858dfcddbbac827c4d
[ "MIT" ]
null
null
null
detect-dupes.py
bradtraina/python-detect-dupes
b2d22c9611af470a4c2e9e858dfcddbbac827c4d
[ "MIT" ]
null
null
null
import os import sys import hashlib import logging import argparse logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() parser.add_argument("dirpaths", nargs='+', help="detect duplicate files in a given number of ...
39.899225
118
0.661356
716
5,147
4.594972
0.244413
0.076596
0.025836
0.01459
0.124012
0.089362
0.068693
0.068693
0.068693
0.04924
0
0.004943
0.253157
5,147
128
119
40.210938
0.850937
0.103361
0
0.139535
0
0
0.147787
0
0
0
0
0
0
0
null
null
0
0.05814
null
null
0.069767
0
0
0
null
0
0
0
0
0
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
ec8f183dede8a867ebf98247b5f61883059e5365
29,663
py
Python
dynaphopy/interface/iofile.py
FermiSea/DynaPhoPy
026bc38715730d114e6c64eea52546199d8fee56
[ "MIT" ]
1
2018-01-12T14:20:33.000Z
2018-01-12T14:20:33.000Z
dynaphopy/interface/iofile.py
FermiSea/DynaPhoPy
026bc38715730d114e6c64eea52546199d8fee56
[ "MIT" ]
null
null
null
dynaphopy/interface/iofile.py
FermiSea/DynaPhoPy
026bc38715730d114e6c64eea52546199d8fee56
[ "MIT" ]
null
null
null
import mmap import pickle import os import random import numpy as np import h5py import dynaphopy.classes.dynamics as dyn import dynaphopy.classes.atoms as atomtest from dynaphopy.interface import phonopy_link as pho_interface def check_trajectory_file_type(file_name, bytes_to_check=1000000): #Check file exist...
36.307222
184
0.594478
3,700
29,663
4.555135
0.091892
0.041771
0.026225
0.034888
0.556426
0.469265
0.4164
0.381334
0.340572
0.316483
0
0.014691
0.297812
29,663
816
185
36.351716
0.794469
0.090787
0
0.402235
0
0.007449
0.091129
0.007811
0
0
0
0
0
0
null
null
0
0.01676
null
null
0.083799
0
0
0
null
0
0
0
0
0
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
ec8fe65dc0815a9262f21253fff8f2d1a9ce4cf9
763
py
Python
dsp.py
rlowe0008/example-custom-processing-block-python
f6cd9f38e16dc58820d586e2f14a2c618e8a6804
[ "Apache-2.0" ]
null
null
null
dsp.py
rlowe0008/example-custom-processing-block-python
f6cd9f38e16dc58820d586e2f14a2c618e8a6804
[ "Apache-2.0" ]
null
null
null
dsp.py
rlowe0008/example-custom-processing-block-python
f6cd9f38e16dc58820d586e2f14a2c618e8a6804
[ "Apache-2.0" ]
null
null
null
import numpy as np def generate_features(draw_graphs, raw_data, axes, sampling_freq, scale_axes): # features is a 1D array, reshape so we have a matrix raw_data = raw_data.reshape(int(len(raw_data) / len(axes)), len(axes)) features = [] graphs = [] # split out the data from all axes for ax in...
28.259259
78
0.602883
116
763
3.87069
0.482759
0.093541
0.035635
0
0
0
0
0
0
0
0
0.009294
0.294889
763
26
79
29.346154
0.825279
0.266055
0
0
1
0
0.025271
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec95dbcef099142d6edbdf2704f65ffb50970fb8
602
py
Python
buglab/data/pypi/utils.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
47
2021-10-19T16:15:41.000Z
2022-03-21T11:51:43.000Z
buglab/data/pypi/utils.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
2
2022-01-10T09:41:44.000Z
2022-03-09T12:54:55.000Z
buglab/data/pypi/utils.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
11
2021-11-30T13:25:03.000Z
2022-03-16T11:38:08.000Z
from html.parser import HTMLParser from typing import Set import requests class SimpleFormatParser(HTMLParser): def __init__(self): super().__init__() self.__in_a_tag = False self.all_packages = set() def handle_starttag(self, tag, attrs): self.__in_a_tag = tag == "a" de...
23.153846
51
0.664452
79
602
4.708861
0.443038
0.048387
0.056452
0.080645
0
0
0
0
0
0
0
0
0.225914
602
25
52
24.08
0.798283
0
0
0
0
0
0.041528
0
0
0
0
0
0
1
0.222222
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ec9aa9d5006dcda97fd103d3afbbd77b2f9e1c21
958
py
Python
aulas/aula011.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
aulas/aula011.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
aulas/aula011.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
### ANSI ''' \033[style; text; backgroundm \033[0;33;44m style - 0 = faz nada, 1 = negrito, 4 = subliando, 7 = inverter configurações text - 30 = branco, 31 = vermelho, 32 = verde, 33 = amarelo, 34 = azul, 35 = roxo, 36 = ciano, 37 = cinza background - 40 = branco, 41 = vermelho, 42 = verde, 43 = amarelo, 44 = azul, 4...
21.772727
111
0.569937
148
958
3.689189
0.5
0.043956
0.025641
0.069597
0.135531
0.135531
0.135531
0.135531
0
0
0
0.182973
0.178497
958
43
112
22.27907
0.510801
0.364301
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
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
ec9cbc5e9d100bc360a61489f795f2562d9f1586
2,036
py
Python
u8timeseries/tests/test_metrics.py
endrjuskr/u8timeseries
edf167815e7c7931fe491207f831e88203589883
[ "Apache-2.0" ]
null
null
null
u8timeseries/tests/test_metrics.py
endrjuskr/u8timeseries
edf167815e7c7931fe491207f831e88203589883
[ "Apache-2.0" ]
null
null
null
u8timeseries/tests/test_metrics.py
endrjuskr/u8timeseries
edf167815e7c7931fe491207f831e88203589883
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np import pandas as pd from ..timeseries import TimeSeries from u8timeseries.metrics import metrics class MetricsTestCase(unittest.TestCase): pd_series1 = pd.Series(range(10), index=pd.date_range('20130101', '20130110')) pd_series2 = pd.Series(np.random.rand(10)*10, index=pd....
42.416667
102
0.675344
262
2,036
5.148855
0.236641
0.171238
0.088955
0.059303
0.40252
0.300964
0.249815
0.202372
0.069681
0.069681
0
0.080073
0.196464
2,036
47
103
43.319149
0.744499
0
0
0
0
0
0.023599
0
0
0
0
0
0.314286
1
0.142857
false
0
0.171429
0
0.542857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
eca1d68734c20583b91395d650dd5c77e5c37610
988
py
Python
src/data/wikipedia.py
alessandrobianchi/truelayer_de_challenge
00c4340b9ee1660362efb83d30eee22091604532
[ "FTL" ]
null
null
null
src/data/wikipedia.py
alessandrobianchi/truelayer_de_challenge
00c4340b9ee1660362efb83d30eee22091604532
[ "FTL" ]
null
null
null
src/data/wikipedia.py
alessandrobianchi/truelayer_de_challenge
00c4340b9ee1660362efb83d30eee22091604532
[ "FTL" ]
null
null
null
from re import sub from typing import Dict from lxml import etree class WikipediaParser: """Class to parse the Wikipedia dump""" tag_name = 'doc' @staticmethod def get_file_iterator(file_path: str) -> etree.iterparse: return etree.iterparse(file_path, tag=WikipediaParser.tag_name) @sta...
30.875
101
0.696356
123
988
5.390244
0.333333
0.082956
0.098039
0.11463
0.262443
0.162896
0
0
0
0
0
0
0.203441
988
31
102
31.870968
0.84244
0.033401
0
0.181818
0
0
0.032666
0
0
0
0
0
0
1
0.181818
false
0
0.136364
0.090909
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
eca6a74931f4a8bdac780d65637c8b7e6263dc09
4,247
py
Python
src/genie/libs/parser/iosxe/tests/ShowGroupPolicyTrafficSteeringEntries/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowGroupPolicyTrafficSteeringEntries/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowGroupPolicyTrafficSteeringEntries/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
expected_output = { 'steering_entries': { 'sgt': { 2057: { 'entry_last_refresh': '10:32:00', 'entry_state': 'COMPLETE', 'peer_name': 'Unknown-2057', 'peer_sgt': '2057-01', 'policy_rbacl_src_list': { ...
40.836538
62
0.396044
284
4,247
5.542254
0.235915
0.127065
0.111817
0.114358
0.789708
0.703939
0.662008
0.662008
0.520966
0.487294
0
0.176115
0.493289
4,247
103
63
41.23301
0.555297
0
0
0.480392
0
0
0.396609
0.053698
0
0
0.07772
0
0
1
0
false
0
0
0
0
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
eca847aa29bdf9535f4c7d605bb69293e405357c
3,716
py
Python
test/programytest/parser/pattern/nodes_tests/test_root.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/parser/pattern/nodes_tests/test_root.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/parser/pattern/nodes_tests/test_root.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
1
2020-02-21T17:58:05.000Z
2020-02-21T17:58:05.000Z
from programytest.parser.pattern.base import PatternTestBaseClass from programy.parser.exceptions import ParserException from programy.parser.pattern.nodes.word import PatternWordNode from programy.parser.pattern.nodes.base import PatternNode from programy.parser.template.nodes.base import TemplateNode from programy....
37.16
103
0.695371
435
3,716
5.827586
0.167816
0.026036
0.082446
0.08284
0.617751
0.546746
0.435108
0.435108
0.42643
0.42643
0
0.015793
0.199139
3,716
99
104
37.535354
0.836022
0
0
0.356164
0
0.027397
0.096713
0.022091
0
0
0
0
0.438356
1
0.109589
false
0
0.123288
0
0.246575
0
0
0
0
null
0
0
0
0
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
ecb9872bf337c5ee715541a475a09bf50640f167
974
py
Python
src/sqliScan.py
hanzivan101/viSQL
ef7ceb59fe88ed6424b48aa78dc995c2980d7600
[ "MIT" ]
16
2017-11-25T01:33:04.000Z
2022-03-18T02:00:57.000Z
src/sqliScan.py
hanzivan101/viSQL
ef7ceb59fe88ed6424b48aa78dc995c2980d7600
[ "MIT" ]
1
2019-07-27T18:17:23.000Z
2019-12-12T12:31:27.000Z
src/sqliScan.py
hanzivan101/viSQL
ef7ceb59fe88ed6424b48aa78dc995c2980d7600
[ "MIT" ]
13
2017-11-05T10:22:28.000Z
2021-09-30T21:37:28.000Z
#!/usr/bin/env python2 #-*- coding: utf-8 -*- # # """ Cyber Warrior Ar-Ge Training adına geliştirmiş hedef site ve sunucudaki sitelerde SQL Injection açığı arama aracı. """ __author__ = "Black Viking" __version__ = "0.0.1" __date__ = "07.06.2017" __mail__ = "blackvkng@yandex.com" import urllib2 sql_error...
18.730769
80
0.664271
127
974
4.944882
0.677165
0.033439
0.047771
0
0
0
0
0
0
0
0
0.029909
0.210472
974
51
81
19.098039
0.786736
0.162218
0
0.066667
0
0
0.420398
0
0
0
0
0
0
1
0.033333
false
0.066667
0.033333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ecbb133f7f8d7bb044bd0d29c6a075a3d7f7343a
4,639
py
Python
Software/Python-UI/imagehandler.py
PtD/frankenstein-cnc
92881daf3c339a7282426416dc23cabbaf208145
[ "MIT" ]
3
2018-07-05T14:37:40.000Z
2021-05-19T02:14:47.000Z
Software/Python-UI/imagehandler.py
PtD/frankenstein-cnc
92881daf3c339a7282426416dc23cabbaf208145
[ "MIT" ]
1
2020-03-17T00:47:09.000Z
2020-04-08T21:26:56.000Z
Software/Python-UI/imagehandler.py
PtD/frankenstein-cnc
92881daf3c339a7282426416dc23cabbaf208145
[ "MIT" ]
5
2019-10-12T15:15:09.000Z
2022-03-19T16:40:35.000Z
from PIL import Image import tkMessageBox ################################################## # class ImageHandler: def __init__(self): self.img = None self.width = None self.height = None def open_image(self, filename): try: print "Opening %s" % filenam...
37.41129
121
0.539556
625
4,639
3.8832
0.2064
0.049444
0.019778
0.049444
0.387721
0.387721
0.365884
0.28595
0.255459
0.255459
0
0.027273
0.312352
4,639
124
122
37.41129
0.733542
0.078681
0
0.255556
0
0
0.082941
0
0
0
0
0
0
0
null
null
0.033333
0.022222
null
null
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
1
0
0
0
0
0
0
0
0
1
ecbb78db623a3cb76892c914ed884885416f87b9
4,656
py
Python
docker_hadoop/conexer/src/conf_space/hadoop_semantics.py
rahlk/ConEX
4dd03a394694257dcd29a0f35cea83b656988830
[ "Apache-2.0" ]
1
2020-07-15T19:42:22.000Z
2020-07-15T19:42:22.000Z
docker_hadoop/conexer/src/conf_space/hadoop_semantics.py
rahlk/ConEX
4dd03a394694257dcd29a0f35cea83b656988830
[ "Apache-2.0" ]
1
2020-01-31T00:41:17.000Z
2020-01-31T00:41:17.000Z
docker_hadoop/conexer/src/conf_space/hadoop_semantics.py
rahlk/ConEX__Replication_Package
4dd03a394694257dcd29a0f35cea83b656988830
[ "Apache-2.0" ]
null
null
null
import json from sysconf import cfg class HadoopSemantics: def __init__(self): # read parameter hierarchical structure with open(cfg.hadoop_param_hierarchy) as fp: # this is a python dictionary self.hierarchy_structure = json.load(fp) def get_all_parents(self)...
43.514019
124
0.592784
561
4,656
4.71836
0.240642
0.009067
0.058179
0.054779
0.159426
0.011334
0
0
0
0
0
0.0013
0.339132
4,656
106
125
43.924528
0.858954
0.126289
0
0.15625
0
0
0.080217
0.052733
0
0
0
0
0
0
null
null
0
0.03125
null
null
0.078125
0
0
0
null
0
0
0
0
0
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
ecc057a51d2f31c09576bd383975eb71a6d7869d
336
py
Python
setup.py
jdubchak/HAM_Python
aa0fe951dd6071861f389f66ff6699aac0586cf1
[ "MIT" ]
6
2018-11-28T12:15:21.000Z
2020-01-04T17:22:42.000Z
setup.py
jdubchak/HAM_Python
aa0fe951dd6071861f389f66ff6699aac0586cf1
[ "MIT" ]
21
2018-02-13T15:36:56.000Z
2019-05-16T22:18:48.000Z
setup.py
jdubchak/HAM_Python
aa0fe951dd6071861f389f66ff6699aac0586cf1
[ "MIT" ]
18
2018-02-08T23:26:45.000Z
2021-02-14T22:59:38.000Z
from setuptools import setup setup( name='HAM_Python', version='v1.0', author='Duong Vu, Jordan Dubchak, Linsey Yuo', long_description=open('README.md').read(), install_requires=['setuptools', 'pandas','numpy', 'seaborn', 'matplotlib'], include_package_data=True, license='MIT ...
30.545455
81
0.642857
38
336
5.552632
0.921053
0
0
0
0
0
0
0
0
0
0
0.007519
0.208333
336
11
82
30.545455
0.785714
0
0
0
0
0
0.320475
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ecc0b85438e7e734328d9ccec328e4baaf8bb102
3,547
py
Python
server/loginviews.py
zackdotcomputer/scavenger
2b2370adcff03b817964c912c412b7d2f6706170
[ "MIT" ]
1
2015-05-15T15:43:11.000Z
2015-05-15T15:43:11.000Z
server/loginviews.py
zackdotcomputer/scavenger
2b2370adcff03b817964c912c412b7d2f6706170
[ "MIT" ]
null
null
null
server/loginviews.py
zackdotcomputer/scavenger
2b2370adcff03b817964c912c412b7d2f6706170
[ "MIT" ]
null
null
null
import json import logging import os from . import util from .models import Player from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.http import HttpRespon...
31.114035
79
0.663659
422
3,547
5.530806
0.303318
0.029991
0.015424
0.01671
0.195373
0.176093
0.152099
0.131105
0.131105
0.131105
0
0.001832
0.230335
3,547
113
80
31.389381
0.853114
0.029039
0
0.208791
0
0
0.110174
0
0
0
0
0.00885
0
1
0.043956
false
0.054945
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1