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
5d79fc634fe602fa62a59d835cdb415cade36c77
1,950
py
Python
xldigest/main.py
hammerheadlemon/xldigest
f5130121de5e1b152aa42bdd29ffd57cff6b5733
[ "MIT" ]
null
null
null
xldigest/main.py
hammerheadlemon/xldigest
f5130121de5e1b152aa42bdd29ffd57cff6b5733
[ "MIT" ]
null
null
null
xldigest/main.py
hammerheadlemon/xldigest
f5130121de5e1b152aa42bdd29ffd57cff6b5733
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_test.ui' # # Created by: PyQt5 UI code generator 5.7.1 # # WARNING! All changes made in this file will be lost! import sys from PyQt5 import QtWidgets, QtGui, QtCore import icons_rc from xldigest.widgets.main_ui import Ui_MainXldiges...
34.210526
76
0.707692
220
1,950
6.163636
0.459091
0.081121
0.051622
0.084808
0.136431
0.136431
0.136431
0
0
0
0
0.007376
0.165641
1,950
56
77
34.821429
0.82606
0.093333
0
0
1
0
0.065872
0
0
0
0
0
0
1
0.057143
false
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d7d8ba8c3a0d3f63ae006603d33c6d800c124d2
6,119
py
Python
sdk/python/pulumi_alicloud/nas/get_access_rules.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/nas/get_access_rules.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/nas/get_access_rules.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
37.084848
155
0.652721
744
6,119
5.053763
0.186828
0.046809
0.06383
0.06383
0.235638
0.112234
0.075532
0.014362
0
0
0
0.001952
0.246609
6,119
164
156
37.310976
0.813666
0.169145
0
0.099099
1
0
0.148527
0.021072
0
0
0
0
0
1
0.099099
false
0
0.054054
0.018018
0.261261
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
5d7e226d195cd416ba21eaf7adbc9cfae85fdaa0
254
py
Python
moopy/comments/urls.py
qrizan/moopy
10459351727710c77279f24f224786622abc91b8
[ "MIT" ]
1
2017-01-15T21:58:06.000Z
2017-01-15T21:58:06.000Z
moopy/comments/urls.py
qrizan/moopy
10459351727710c77279f24f224786622abc91b8
[ "MIT" ]
null
null
null
moopy/comments/urls.py
qrizan/moopy
10459351727710c77279f24f224786622abc91b8
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = "comments" urlpatterns = [ url(r'^detail/(?P<id>\d+)/$', views.comment_thread, name='comment_thread'), url(r'^(?P<id>\d+)/delete/$', views.comment_delete, name='comment_delete'), ]
28.222222
79
0.673228
37
254
4.486486
0.513514
0.048193
0.048193
0
0
0
0
0
0
0
0
0
0.11811
254
9
80
28.222222
0.741071
0
0
0
0
0
0.305882
0.164706
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d802cfafdd8d07cec2aaadb66655f563fab4f7d
30,026
py
Python
src/smdt/viewer.py
qutang/tang_pervhealth_14
134632131121b34ead43764de9750ab2d796fb07
[ "MIT" ]
null
null
null
src/smdt/viewer.py
qutang/tang_pervhealth_14
134632131121b34ead43764de9750ab2d796fb07
[ "MIT" ]
null
null
null
src/smdt/viewer.py
qutang/tang_pervhealth_14
134632131121b34ead43764de9750ab2d796fb07
[ "MIT" ]
null
null
null
#! /usr/bin/python """ Module of smdt data visualization """ import sys from datetime import timedelta sys.path.append('../') import matplotlib.pyplot as pyplot import matplotlib.cm as cm import matplotlib.colors as colors import pandas as pd import numpy as np import annotation as s_annotation import wockets.utils ...
45.632219
210
0.698162
4,404
30,026
4.592643
0.117847
0.030456
0.007515
0.018985
0.451399
0.400227
0.360378
0.310936
0.275586
0.258133
0
0.022291
0.169287
30,026
658
211
45.632219
0.788598
0.08506
0
0.276442
0
0
0.079569
0.004277
0.004808
0
0
0.00152
0
0
null
null
0
0.028846
null
null
0.004808
0
0
0
null
0
0
0
0
0
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
5d8235d9d52b863225f60184e7e8aeba6844b2af
2,701
py
Python
tests/providers/bitbucket/test_path.py
KakeruMizuno/RDM-waterbutler
58ecd801385a7572d1ed56568a31f701291c4e3e
[ "Apache-2.0" ]
65
2015-01-23T03:22:04.000Z
2022-01-11T22:33:19.000Z
tests/providers/bitbucket/test_path.py
cslzchen/waterbutler
e4e07727e06885a752c9251e5731f5627f646da3
[ "Apache-2.0" ]
300
2015-02-16T16:45:02.000Z
2022-01-31T14:49:07.000Z
tests/providers/bitbucket/test_path.py
cslzchen/waterbutler
e4e07727e06885a752c9251e5731f5627f646da3
[ "Apache-2.0" ]
76
2015-01-20T20:45:17.000Z
2021-07-30T13:18:10.000Z
import pytest from waterbutler.providers.bitbucket.path import BitbucketPath COMMIT_SHA = 'abcea54a123' BRANCH = 'develop' class TestBitbucketPath: def test_id_accessors(self): bb_path = BitbucketPath('/foo', _ids=[(COMMIT_SHA, BRANCH), (COMMIT_SHA, BRANCH)]) assert bb_path.commit_sha == COMMIT...
38.042254
99
0.672344
360
2,701
4.716667
0.152778
0.190813
0.091873
0.084806
0.694346
0.611896
0.518846
0.508245
0.452297
0.423439
0
0.015333
0.227323
2,701
70
100
38.585714
0.798275
0.04702
0
0.403846
0
0
0.036328
0
0
0
0
0
0.576923
1
0.115385
false
0
0.038462
0
0.173077
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
5d82488825450a9704065b90204ee11826a35510
155
py
Python
Python/Topics/Math functions/Octahedron/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Topics/Math functions/Octahedron/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Topics/Math functions/Octahedron/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
import math a = int(input()) area = 2 * math.sqrt(3) * math.pow(a, 2) volume = math.pow(a, 3) * math.sqrt(2) / 3 print(round(area, 2), round(volume, 2))
19.375
42
0.606452
30
155
3.133333
0.433333
0.106383
0.170213
0
0
0
0
0
0
0
0
0.0625
0.174194
155
7
43
22.142857
0.671875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d82adbdd4e66a290b60adffb561cf13bd327bab
2,815
py
Python
src/api/upizza/common/errorcodes.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/upizza/common/errorcodes.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/upizza/common/errorcodes.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
40.797101
111
0.70373
364
2,815
5.258242
0.502747
0.163009
0.018809
0
0
0
0
0
0
0
0
0.031056
0.19929
2,815
68
112
41.397059
0.818101
0.498046
0
0
0
0
0.099786
0
0
0
0
0
0
1
0
false
0
0
0
0.704545
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
5d8372dffecb6761c11486814cf06a86decc0050
2,004
py
Python
sdl_core/src/thirdPartyLibs/jsoncpp/devtools/fixeol.py
APCVSRepo/android_packet
5d4237234656b777cd9b0cae4731afea51986582
[ "BSD-3-Clause" ]
4
2015-11-05T10:36:12.000Z
2018-10-27T09:59:48.000Z
libs/jsoncpp/devtools/fixeol.py
restpose/restpose
8f0bfe96e997eb988baf5edfcc49957aa2f1ceec
[ "MIT" ]
7
2016-06-01T01:21:44.000Z
2017-11-03T08:18:23.000Z
libs/jsoncpp/devtools/fixeol.py
restpose/restpose
8f0bfe96e997eb988baf5edfcc49957aa2f1ceec
[ "MIT" ]
34
2015-01-12T07:10:56.000Z
2021-02-09T16:14:42.000Z
import os.path def fix_source_eol( path, is_dry_run = True, verbose = True, eol = '\n' ): """Makes sure that all sources have the specified eol sequence (default: unix).""" if not os.path.isfile( path ): raise ValueError( 'Path "%s" is not a file' % path ) try: f = open(path, 'rb') ...
31.3125
87
0.54491
257
2,004
4.015564
0.396887
0.03876
0.062016
0.034884
0.229651
0.229651
0.172481
0.081395
0.081395
0.081395
0
0
0.300399
2,004
63
88
31.809524
0.736091
0.466068
0
0.28
0
0
0.082938
0
0
0
0
0
0
0
null
null
0
0.04
null
null
0.12
0
0
0
null
0
0
0
0
0
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
5d84a9051c22dfc8fdd1865812a0fe0a6dc05ad5
2,636
py
Python
preprocessing/features.py
SfS-unsupervisedCL/project-sound-correspondences
5b178ded1be5c6ab97b5167cb16f8569b2dbec6c
[ "MIT" ]
null
null
null
preprocessing/features.py
SfS-unsupervisedCL/project-sound-correspondences
5b178ded1be5c6ab97b5167cb16f8569b2dbec6c
[ "MIT" ]
null
null
null
preprocessing/features.py
SfS-unsupervisedCL/project-sound-correspondences
5b178ded1be5c6ab97b5167cb16f8569b2dbec6c
[ "MIT" ]
null
null
null
from . import candidate_contexts from . import transform_ipa as tipa from . import utils import numpy as np import sys import re def generate_features(in_file, ipa_file, threshold=0.4, train_pct=1): """ Generates a CSV file containing the (integer) features needed for creating a decision tree. Keywor...
34.684211
78
0.62481
344
2,636
4.555233
0.34593
0.026803
0.030632
0.012763
0.030632
0.030632
0.030632
0
0
0
0
0.007804
0.270865
2,636
75
79
35.146667
0.807492
0.192337
0
0
1
0
0.087651
0.011138
0
0
0
0
0
1
0.06
false
0
0.12
0
0.26
0.06
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
5d87d4fc7cc5ff4b1032a7fe308cbb7fb3cf3f2f
472
py
Python
Nombres_premiers.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
5
2020-12-05T14:00:39.000Z
2021-12-02T11:44:54.000Z
Nombres_premiers.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
11
2021-03-15T17:51:43.000Z
2021-11-24T13:24:39.000Z
Nombres_premiers.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
1
2021-01-02T14:15:10.000Z
2021-01-02T14:15:10.000Z
#!/bin/python3 nombre = 3 nombres_premiers = [1, 2] print(2) try: while True: diviseurs = [] for diviseur in nombres_premiers: division = nombre / diviseur if division == int(division): diviseurs.append(diviseur) if len(diviseurs) == 1: pri...
23.6
43
0.567797
48
472
5.520833
0.520833
0.169811
0
0
0
0
0
0
0
0
0
0.022508
0.341102
472
19
44
24.842105
0.829582
0.057203
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.058824
0
0
0
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5d88ad1df1c89f0e6909193bb1c32609bbc0ac92
5,890
py
Python
blast.py
ShenChen-bioUtopia/python-implement-fast-BLAST-Basic-Local-Alignment-Search-Tool
bad27cbbc2fa44fb97b7a622d2ff7cd035336d35
[ "MIT" ]
1
2020-12-11T02:33:45.000Z
2020-12-11T02:33:45.000Z
blast.py
ShenChen-bioUtopia/python-implement-fast-BLAST-Basic-Local-Alignment-Search-Tool
bad27cbbc2fa44fb97b7a622d2ff7cd035336d35
[ "MIT" ]
null
null
null
blast.py
ShenChen-bioUtopia/python-implement-fast-BLAST-Basic-Local-Alignment-Search-Tool
bad27cbbc2fa44fb97b7a622d2ff7cd035336d35
[ "MIT" ]
null
null
null
__author__ = 'Jiashun' import re import time import os import string from collections import Counter starts = time.clock() def s(si_, sj_): if qu[si_] == seq2[sj_]: return 2 else: return -1 def alignment(seq1, seq2): m = len(seq1) n = len(seq2) g = -3 ma...
30.837696
155
0.459253
773
5,890
3.461837
0.205692
0.041854
0.032885
0.016816
0.241779
0.199552
0.188341
0.153214
0.13154
0.106129
0
0.068504
0.377929
5,890
190
156
31
0.661845
0.049236
0
0.276471
0
0
0.079756
0.047557
0
0
0
0
0
0
null
null
0
0.029412
null
null
0.152941
0
0
0
null
0
0
0
0
0
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
5d8929651204668e93b2b2dbc3c6c3a9b6cf7b12
6,518
py
Python
python codes/i2.py
nateshmbhat/traffic-manager
c7e7af18dcb1844aea19e6b6440826dcd7dd3c79
[ "MIT" ]
null
null
null
python codes/i2.py
nateshmbhat/traffic-manager
c7e7af18dcb1844aea19e6b6440826dcd7dd3c79
[ "MIT" ]
7
2020-03-24T16:05:27.000Z
2021-12-13T19:49:41.000Z
python codes/i2.py
nateshmbhat/traffic-manager
c7e7af18dcb1844aea19e6b6440826dcd7dd3c79
[ "MIT" ]
1
2021-01-10T17:30:13.000Z
2021-01-10T17:30:13.000Z
import mraa import time atrigpin = 22 aechopin = 23 btrigpin = 24 bechopin = 25 ctrigpin = 26 cechopin = 27 aredpin =mraa.Gpio(21) bredpin =mraa.Gpio(0) credpin = mraa.Gpio(20) dredpin = mraa.Gpio(14) aredpin.dir(mraa.DIR_OUT) bredpin.dir(mraa.DIR_OUT) credpin.dir(mraa.DIR_OUT) dredpin.dir(mraa.DIR_OUT) ayellowpin...
23.19573
79
0.554465
811
6,518
4.422935
0.134402
0.070254
0.033454
0.04349
0.458879
0.296069
0.292724
0.221076
0.16978
0.150822
0
0.062315
0.327861
6,518
281
80
23.19573
0.756448
0
0
0.420814
0
0
0
0
0
0
0
0
0
1
0.027149
false
0.054299
0.00905
0
0.040724
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
5d89ff96d7ebe3681d5f2cb060b4b03976566211
1,041
py
Python
CB_QA/retrieve.py
joeyhsiung/Natural-Language-to-Graph-Query-KBQA-
8cc96600cb192d0f965ee7436341ca977c557304
[ "MIT" ]
null
null
null
CB_QA/retrieve.py
joeyhsiung/Natural-Language-to-Graph-Query-KBQA-
8cc96600cb192d0f965ee7436341ca977c557304
[ "MIT" ]
null
null
null
CB_QA/retrieve.py
joeyhsiung/Natural-Language-to-Graph-Query-KBQA-
8cc96600cb192d0f965ee7436341ca977c557304
[ "MIT" ]
null
null
null
import os from multiHop_QA.configures import Config_path from transformers import AutoTokenizer, AutoModelForMaskedLM config = Config_path() os.chdir(config.parent_path) def read_data(): pass model_name = "roberta-base" query_tokenizer = AutoTokenizer.from_pretrained(model_name) passage_tokenizer = AutoTokeni...
26.025
66
0.746398
126
1,041
5.960317
0.420635
0.05992
0.101198
0.122503
0.286285
0.267643
0
0
0
0
0
0.005376
0.106628
1,041
39
67
26.692308
0.802151
0.463977
0
0
0
0
0.022018
0
0
0
0
0
0
1
0.071429
false
0.285714
0.214286
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
5d8dbae76ffe9a46b0d4ab1b381bbb361f511c7b
553
py
Python
test_one/games/apps/accounts/urls.py
aasheng1/game
db082e12c5086618c5d9375a6e5dc76820ba5014
[ "Apache-2.0" ]
null
null
null
test_one/games/apps/accounts/urls.py
aasheng1/game
db082e12c5086618c5d9375a6e5dc76820ba5014
[ "Apache-2.0" ]
7
2021-03-19T03:11:22.000Z
2022-01-13T01:34:53.000Z
test_one/games/apps/accounts/urls.py
aasheng1/game
db082e12c5086618c5d9375a6e5dc76820ba5014
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url,include from django.contrib import admin from . import views from django.views.generic import TemplateView urlpatterns = [ # url(r'^$',views.index,name="index"), # 登录 url(r'^login/',views.Login.as_view(),name="login"), # 测试网站 url(r'^login_test/',views.login_test,na...
29.105263
69
0.663653
78
553
4.615385
0.384615
0.066667
0.083333
0
0
0
0
0
0
0
0
0
0.155515
553
19
70
29.105263
0.770878
0.099458
0
0
0
0
0.170732
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5d8f0c7ed9f301159a4d7ade8507917b7b6af94c
9,247
py
Python
sage/database/postgres_backends/postgres_catalog/connector.py
sage-org/sage-engine
33b3c775f6932d0e61bcce2c763f2d63846dba40
[ "MIT" ]
25
2018-09-07T14:43:51.000Z
2021-10-31T22:41:48.000Z
sage/database/postgres_backends/postgres_catalog/connector.py
Alexandre-GERBIER/sage-engine
33b3c775f6932d0e61bcce2c763f2d63846dba40
[ "MIT" ]
4
2018-10-28T15:32:08.000Z
2022-01-26T12:47:36.000Z
sage/database/postgres_backends/postgres_catalog/connector.py
Alexandre-GERBIER/sage-engine
33b3c775f6932d0e61bcce2c763f2d63846dba40
[ "MIT" ]
16
2018-12-04T17:50:12.000Z
2022-03-26T22:55:47.000Z
import json import logging import coloredlogs from datetime import datetime from math import ceil from uuid import uuid4 from typing import Optional, Dict, Tuple from psycopg2.extras import execute_values from sage.database.db_iterator import EmptyIterator from sage.database.postgres_backends.connector import Postgre...
52.84
207
0.67503
1,188
9,247
5.102694
0.201178
0.012372
0.013362
0.013857
0.295942
0.242164
0.215275
0.172715
0.160838
0.127516
0
0.005423
0.242241
9,247
174
208
53.143678
0.859712
0.339029
0
0.104651
0
0.011628
0.068738
0
0
0
0
0
0
1
0.069767
false
0.05814
0.162791
0
0.290698
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
5d8f572e644d76cf033f47714622010c229a0731
7,167
py
Python
pedal/assertions/functions.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
14
2019-08-22T03:40:23.000Z
2022-03-13T00:30:53.000Z
pedal/assertions/functions.py
pedal-edu/pedal
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
74
2019-09-12T04:35:56.000Z
2022-01-26T19:21:32.000Z
pedal/assertions/functions.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
2
2018-09-16T22:39:15.000Z
2018-09-17T12:53:28.000Z
from pedal.assertions.feedbacks import AssertionFeedback from pedal.core.report import MAIN_REPORT class missing_function(AssertionFeedback): """ Unconditionally asserts that the function is missing. """ title = "Missing Function" message_template = "No function named {name_message} was found." def _...
41.189655
82
0.630529
754
7,167
5.770557
0.111406
0.050563
0.057918
0.06872
0.737072
0.701908
0.694553
0.64422
0.64422
0.582395
0
0.000367
0.240407
7,167
173
83
41.427746
0.798861
0.040742
0
0.609023
0
0
0.25422
0
0
0
0
0
0.082707
1
0.075188
false
0
0.015038
0
0.315789
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
5d91ce624f18882a2b5072c134e561d0dc7d07c5
625
py
Python
ml_models/models/utils/evaluation.py
RobertInjac/Master-thesis
313b64806870d771ed4c161d7a76c3d3acda3795
[ "MIT" ]
1
2021-04-22T14:50:25.000Z
2021-04-22T14:50:25.000Z
ml_models/models/utils/evaluation.py
rinjac/predicting-text-readability
313b64806870d771ed4c161d7a76c3d3acda3795
[ "MIT" ]
null
null
null
ml_models/models/utils/evaluation.py
rinjac/predicting-text-readability
313b64806870d771ed4c161d7a76c3d3acda3795
[ "MIT" ]
1
2020-07-07T09:44:26.000Z
2020-07-07T09:44:26.000Z
""" Module for evaluation of machine learning models. """ import numpy as np from sklearn.metrics import accuracy_score, confusion_matrix, f1_score, r2_score from scipy.stats import spearmanr def print_metrics(y_true, y_pred): print("================================================") print("Spearman's co...
27.173913
80
0.5168
72
625
4.277778
0.513889
0.064935
0.077922
0.12987
0.191558
0.142857
0.142857
0
0
0
0
0.011696
0.1792
625
23
81
27.173913
0.588694
0.0784
0
0.363636
0
0
0.275923
0.168717
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0.727273
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5d955f47fbb715c2865a7ff75faa70750de86852
8,709
py
Python
enaml/qt/qt_flow_item.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
enaml/qt/qt_flow_item.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
1
2019-08-22T14:38:24.000Z
2019-08-22T14:38:24.000Z
enaml/qt/qt_flow_item.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
28.368078
79
0.551728
893
8,709
5.291153
0.19037
0.035556
0.032593
0.038519
0.412698
0.389841
0.317672
0.280635
0.234921
0.222222
0
0.001283
0.284189
8,709
306
80
28.460784
0.756657
0.464232
0
0.202128
0
0
0.005474
0
0
0
0
0
0
1
0.244681
false
0
0.085106
0
0.446809
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5d99484b7618e0c7909528df16e4fca55ea9e88e
3,112
py
Python
horizon/horizon/dashboards/nova/snapshots/views.py
katzj/horizon
195b70bcf161987d2568e7c9dbebdfffd22004f8
[ "Apache-2.0" ]
null
null
null
horizon/horizon/dashboards/nova/snapshots/views.py
katzj/horizon
195b70bcf161987d2568e7c9dbebdfffd22004f8
[ "Apache-2.0" ]
null
null
null
horizon/horizon/dashboards/nova/snapshots/views.py
katzj/horizon
195b70bcf161987d2568e7c9dbebdfffd22004f8
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
33.462366
78
0.664846
371
3,112
5.487871
0.428571
0.02947
0.039293
0.023576
0.148821
0.148821
0.115914
0.07613
0.07613
0.07613
0
0.006468
0.25482
3,112
92
79
33.826087
0.871496
0.247429
0
0.254545
0
0
0.110915
0.047095
0
0
0
0
0
0
null
null
0
0.236364
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
5d9fe4e33b171d40598ffadcfbc8e2afeb3c8baf
314
py
Python
tests/test_main.py
Kjwon15/tbraille
3ef254f0fcc586ed0ab8c083a38a920c195d2b18
[ "MIT" ]
8
2017-10-02T05:04:46.000Z
2020-02-03T09:18:47.000Z
tests/test_main.py
Kjwon15/tbraille
3ef254f0fcc586ed0ab8c083a38a920c195d2b18
[ "MIT" ]
null
null
null
tests/test_main.py
Kjwon15/tbraille
3ef254f0fcc586ed0ab8c083a38a920c195d2b18
[ "MIT" ]
null
null
null
from tbraille import tbraille def test_rendering(): # test with default raster font expected_result = '⢠⡄⠀⠀⠀⠀⠀⠀⠀⢠⡄\n⢹⡏⣁⣾⠽⠆⠺⢯⣅⢹⡏⣁\n⠀⠉⠁⠈⠉⠁⠉⠉⠁⠀⠉⠁\n\n⣰⣆⡀⢀⣀⠀⢀⣀⡀⣰⣆⡀\n⠸⣇⡤⢿⣚⡃⣙⣳⡦⠸⣇⡤' # noqa result = tbraille(fontname=None, size=None, text='test\ntest') print(result) assert result == expected_result
31.4
101
0.563694
40
314
5.825
0.65
0.120172
0
0
0
0
0
0
0
0
0
0
0.159236
314
9
102
34.888889
0.659091
0.10828
0
0
0
0
0.285199
0.249097
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5da2e11b69b3c1000ff767c20dc55bb96de3a2cc
19,978
py
Python
vk_api/vk_api.py
MaxLunar/vk_api
3e12674341743af57887e46cf8eae95945b410cc
[ "Apache-2.0" ]
null
null
null
vk_api/vk_api.py
MaxLunar/vk_api
3e12674341743af57887e46cf8eae95945b410cc
[ "Apache-2.0" ]
null
null
null
vk_api/vk_api.py
MaxLunar/vk_api
3e12674341743af57887e46cf8eae95945b410cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ :authors: python273 :license: Apache License, Version 2.0, see LICENSE file :copyright: (c) 2018 python273 """ import logging import random import re import threading import time import six import requests import jconfig from .enums import VkUserPermissions from .exceptions import * fro...
29.729167
88
0.574632
2,224
19,978
5.000899
0.20054
0.015824
0.025175
0.01025
0.210484
0.184499
0.138554
0.118414
0.118414
0.114188
0
0.006484
0.320653
19,978
671
89
29.773472
0.812924
0.007508
0
0.250667
0
0
0.144357
0.005019
0
0
0
0.00149
0
0
null
null
0.042667
0.029333
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
5db251ad65dc964617260fb062671729c508ca8d
2,501
py
Python
moldynplot/dataset/MDGXDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
8
2016-07-20T16:26:18.000Z
2020-05-22T21:58:27.000Z
moldynplot/dataset/MDGXDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
2
2016-07-23T17:17:16.000Z
2018-02-07T03:34:27.000Z
moldynplot/dataset/MDGXDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
4
2016-07-20T16:26:29.000Z
2022-03-27T18:28:50.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # moldynplot.dataset.MDGXDataset.py # # Copyright (C) 2015-2017 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Represents MDGX force field parameterizat...
32.064103
79
0.587365
259
2,501
5.478764
0.513514
0.019732
0.02537
0.033827
0.098661
0.062016
0
0
0
0
0
0.005269
0.241104
2,501
77
80
32.480519
0.74236
0.257497
0
0.108108
0
0
0.057717
0
0
0
0
0.012987
0
1
0.054054
false
0
0.27027
0
0.378378
0.054054
0
0
0
null
0
0
0
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
5db28bfd17392f20826831dc32bb35dc04d057f6
316
py
Python
setup.py
LuDubies/flopz
3e11f44af40a105b886d0f44d6de505203e72ae2
[ "Apache-2.0" ]
null
null
null
setup.py
LuDubies/flopz
3e11f44af40a105b886d0f44d6de505203e72ae2
[ "Apache-2.0" ]
null
null
null
setup.py
LuDubies/flopz
3e11f44af40a105b886d0f44d6de505203e72ae2
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='flopz', version='1.0', packages=find_packages(), url='', license='', author='Noelscher Consulting GmbH', author_email='ferdinand@noelscher.com', description='flopz - Low Level Assembler and Firmware Instrumentation Toolkit' )
24.307692
82
0.696203
35
316
6.2
0.8
0.110599
0
0
0
0
0
0
0
0
0
0.007752
0.183544
316
13
83
24.307692
0.833333
0
0
0
0
0
0.379747
0.072785
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5db2a24f94e061d47a103d3c62e950095e37841c
2,735
py
Python
tests/test_stein_parser.py
steinwurf/steinloss
6ae76a99e2c72cf201ac7a78003299f7e841dd53
[ "MIT" ]
4
2020-12-03T21:21:03.000Z
2022-02-28T08:53:18.000Z
tests/test_stein_parser.py
steinwurf/steinloss
6ae76a99e2c72cf201ac7a78003299f7e841dd53
[ "MIT" ]
21
2020-10-27T13:15:15.000Z
2022-03-28T14:04:42.000Z
tests/test_stein_parser.py
steinwurf/steinloss
6ae76a99e2c72cf201ac7a78003299f7e841dd53
[ "MIT" ]
1
2021-08-19T08:49:47.000Z
2021-08-19T08:49:47.000Z
from argparse import ArgumentParser import pytest from steinloss.stein_parser import setup def args(arr, mocker): argv = ('steinloss ' + arr).split(' ') mocker.patch("sys.argv", new=argv) class TestParser: def setup_method(self): std_parser = ArgumentParser() self.parser = setup(std_par...
26.298077
120
0.646801
354
2,735
4.757062
0.274011
0.083135
0.091449
0.124109
0.557007
0.490499
0.431116
0.427553
0.342637
0.342637
0
0.013248
0.254845
2,735
103
121
26.553398
0.813052
0.073857
0
0.52381
0
0
0.043083
0
0
0
0
0
0.126984
1
0.206349
false
0
0.047619
0
0.269841
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5db6db37819316265370357d22200b7b8b5270a1
1,800
py
Python
python_scripts/art_fasta_qiime_labels_to_otumap.py
ekopylova/OTU-clustering
3ef0e7eab52350ea5a7aaa9c2ae0546b78778dba
[ "BSD-3-Clause" ]
6
2016-03-22T16:23:04.000Z
2021-04-19T20:41:30.000Z
python_scripts/art_fasta_qiime_labels_to_otumap.py
ekopylova/OTU-clustering
3ef0e7eab52350ea5a7aaa9c2ae0546b78778dba
[ "BSD-3-Clause" ]
null
null
null
python_scripts/art_fasta_qiime_labels_to_otumap.py
ekopylova/OTU-clustering
3ef0e7eab52350ea5a7aaa9c2ae0546b78778dba
[ "BSD-3-Clause" ]
2
2017-12-12T02:07:26.000Z
2021-04-19T20:41:31.000Z
#!/usr/bin/env python """ This script takes a FASTA file generated by QIIME's split_libraries_fastq.py (with original FASTQ reads generated by the ART read simulator) and creates an OTU map using the sequence IDs storing the read identifier and the parent reference sequence. """ # -------------------------------------...
31.578947
78
0.582222
250
1,800
3.976
0.404
0.066398
0.032193
0.039235
0.060362
0.060362
0.060362
0
0
0
0
0.006657
0.248889
1,800
56
79
32.142857
0.72855
0.434444
0
0
1
0
0.020387
0
0
0
0
0
0
1
0.076923
false
0
0.192308
0
0.269231
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
5dbf3b257d5b5343b9d7c4f1bc0e3ca96d114f8a
5,554
py
Python
apps/tasks/views.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
1
2019-01-19T06:58:39.000Z
2019-01-19T06:58:39.000Z
apps/tasks/views.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
apps/tasks/views.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
from bluebottle.bluebottle_drf2.permissions import IsAuthorOrReadOnly from bluebottle.bluebottle_drf2.views import RetrieveUpdateDeleteAPIView from bluebottle.bluebottle_utils.utils import get_client_ip from apps.projects.permissions import IsProjectOwnerOrReadOnly from apps.tasks.models import Task, TaskMember, TaskFi...
33.059524
155
0.700576
592
5,554
6.398649
0.214527
0.040655
0.033791
0.046463
0.43981
0.347413
0.318902
0.303062
0.281415
0.260824
0
0.002068
0.216601
5,554
168
156
33.059524
0.868536
0.050954
0
0.59322
0
0
0.027345
0
0
0
0
0
0
1
0.059322
false
0
0.110169
0
0.59322
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
5dc0d85ea5314f6a9124b5ec1f9244bdad966471
2,059
py
Python
main.py
joernschellhaas/kivybooth
a7dae7c3f71a7989194adb575a0e20ed37642db5
[ "Apache-2.0" ]
null
null
null
main.py
joernschellhaas/kivybooth
a7dae7c3f71a7989194adb575a0e20ed37642db5
[ "Apache-2.0" ]
null
null
null
main.py
joernschellhaas/kivybooth
a7dae7c3f71a7989194adb575a0e20ed37642db5
[ "Apache-2.0" ]
null
null
null
''' kivybooth ========= A photobooth application, intended to consist of a touch screen, a libgphoto2 compatible camera, and a printer connected via USB. See README.md for details. ''' import log, logging # Libraries from time import time from kivy.app import App from kivy.properties import NumericProperty, Strin...
23.94186
95
0.660515
250
2,059
5.328
0.452
0.036036
0.015015
0
0
0
0
0
0
0
0
0.004487
0.242351
2,059
85
96
24.223529
0.849359
0.137445
0
0.036364
0
0
0.050425
0
0
0
0
0
0
1
0.109091
false
0.018182
0.254545
0.018182
0.563636
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
5dc90595a176504180de9c62d41367fdabf9cf4e
7,021
py
Python
vega/trainer/conf.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/trainer/conf.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/trainer/conf.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
38.576923
91
0.518445
717
7,021
4.859135
0.259414
0.039036
0.022101
0.021527
0.142939
0.088978
0.075201
0.075201
0.075201
0.075201
0
0.004494
0.366187
7,021
181
92
38.790055
0.778427
0.101125
0
0.067114
0
0
0.133472
0.014706
0
0
0
0.005525
0
1
0.040268
false
0
0.033557
0
0.543624
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
5dcef765250a9beb454e92c319612a58d65024e5
30,369
py
Python
tests/gsma_tac_db_importer.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/gsma_tac_db_importer.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/gsma_tac_db_importer.py
nealmadhu/DIRBS-Core
5afac86233c56d28e1c76d1291c2a1fec302be6f
[ "BSD-3-Clause-Clear" ]
1
2022-02-09T10:55:13.000Z
2022-02-09T10:55:13.000Z
""" GSMA data import unit tests. Copyright (c) 2018 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistribu...
46.578221
118
0.64039
3,658
30,369
5.039639
0.145708
0.031896
0.039544
0.074695
0.710117
0.686195
0.661676
0.622457
0.601844
0.594901
0
0.044703
0.284764
30,369
651
119
46.64977
0.804015
0.226679
0
0.616216
0
0
0.252659
0.091935
0
0
0
0
0.056757
1
0.083784
false
0.002703
0.337838
0
0.421622
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
5dcf5f06c2ab410329f06a3fbb704b59054a2208
685
py
Python
app/main/forms.py
lydiah2015/Pitch
5aab8b1ad9bdac865e2527806d5ccefaf953bcf5
[ "MIT" ]
null
null
null
app/main/forms.py
lydiah2015/Pitch
5aab8b1ad9bdac865e2527806d5ccefaf953bcf5
[ "MIT" ]
null
null
null
app/main/forms.py
lydiah2015/Pitch
5aab8b1ad9bdac865e2527806d5ccefaf953bcf5
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,SubmitField,SelectField,TextAreaField from wtforms.validators import Required,Length class PitchForm(FlaskForm): CATEGORIES=[('pickup lines', 'pickup lines'), ('interview pitch', 'interview pitch'), ('product pitch', 'product pitch'), ('promotion pitc...
48.928571
165
0.747445
69
685
7.405797
0.434783
0.105675
0.066536
0.136986
0.16047
0
0
0
0
0
0
0.006547
0.108029
685
14
166
48.928571
0.829787
0
0
0.166667
0
0
0.206997
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5de2af509cdb1542d9912b5d816cfb083f82ffbd
727
py
Python
var/spack/repos/builtin/packages/perl-xml-quote/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/perl-xml-quote/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/perl-xml-quote/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PerlXmlQuote(PerlPackage): """This module provides functions to quote/dequote stri...
38.263158
94
0.744154
99
727
5.464646
0.818182
0.040665
0
0
0
0
0
0
0
0
0
0.090615
0.149931
727
18
95
40.388889
0.78479
0.551582
0
0
0
0.2
0.553398
0.20712
0
0
0
0
0
1
0
false
0
0.2
0
0.8
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
5de5d19375de8da859b58aa46c5ca63af1521e5b
5,131
py
Python
pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
532
2017-02-01T19:23:28.000Z
2022-03-29T09:57:39.000Z
pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
1,639
2017-02-01T19:22:04.000Z
2022-03-31T17:26:40.000Z
pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py
bdraco/pyatv
9541d21e6101c60866d832626be97bf962774cd5
[ "MIT" ]
102
2017-02-02T01:42:13.000Z
2022-02-26T08:49:34.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/NowPlayingClient.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
45.40708
466
0.769246
611
5,131
6.170213
0.207856
0.046684
0.075597
0.064456
0.496021
0.474271
0.436605
0.415385
0.415385
0.415385
0
0.03136
0.117521
5,131
112
467
45.8125
0.801237
0.058273
0
0.478261
1
0.01087
0.220909
0.181705
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
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
5de78bf8e2e8564d92b3d2eb444f219a389b98b2
3,909
py
Python
nibabel/openers.py
tobon/nibabel
ff2b5457207bb5fd6097b08f7f11123dc660fda7
[ "BSD-3-Clause" ]
1
2015-10-01T01:13:59.000Z
2015-10-01T01:13:59.000Z
nibabel/openers.py
tobon/nibabel
ff2b5457207bb5fd6097b08f7f11123dc660fda7
[ "BSD-3-Clause" ]
2
2015-11-13T03:05:24.000Z
2016-08-06T19:18:54.000Z
nibabel/openers.py
tobon/nibabel
ff2b5457207bb5fd6097b08f7f11123dc660fda7
[ "BSD-3-Clause" ]
1
2019-02-27T20:48:03.000Z
2019-02-27T20:48:03.000Z
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ### ### #...
32.040984
80
0.580967
476
3,909
4.64916
0.321429
0.054225
0.056936
0.045188
0.133755
0.133755
0.070493
0.041573
0.041573
0
0
0.004272
0.281402
3,909
121
81
32.305785
0.783553
0.339729
0
0.045455
0
0
0.046134
0
0
0
0
0
0
1
0.19697
false
0
0.045455
0.121212
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
5de8316f028e12f7b0078bd3abf8e6593186e381
975
py
Python
demo/emlserver.py
bloomreach-forge/camel-events-support
de6f05a76189b9497d334e5b0d6b549d73f0235e
[ "Apache-2.0" ]
3
2020-10-23T05:26:02.000Z
2021-08-10T08:24:57.000Z
demo/emlserver.py
bloomreach-forge/camel-events-support
de6f05a76189b9497d334e5b0d6b549d73f0235e
[ "Apache-2.0" ]
2
2020-06-15T19:51:45.000Z
2021-02-02T21:49:30.000Z
demo/emlserver.py
bloomreach-forge/camel-events-support
de6f05a76189b9497d334e5b0d6b549d73f0235e
[ "Apache-2.0" ]
null
null
null
# # Improved argument handling from the original EmlServer (https://djangosnippets.org/snippets/96/) # from datetime import datetime import sys import asyncore from smtpd import SMTPServer class EmlServer(SMTPServer): no = 0 def process_message(self, peer, mailfrom, rcpttos, data): filename = 'message_...
23.214286
98
0.604103
123
975
4.699187
0.577236
0.041522
0.044983
0
0
0
0
0
0
0
0
0.013947
0.264615
975
41
99
23.780488
0.79219
0.098462
0
0.133333
0
0
0.16476
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.233333
0
0
0
null
0
0
0
0
0
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
5de842177a3426d98ec02f11f624a222b9b7d451
24,709
py
Python
ansible/roles/test/files/ptftests/fg_ecmp_test.py
lolyu/sonic-mgmt
ed888fd1ce26e7f44fd7f70af00c43ace4882668
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
ansible/roles/test/files/ptftests/fg_ecmp_test.py
lolyu/sonic-mgmt
ed888fd1ce26e7f44fd7f70af00c43ace4882668
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
ansible/roles/test/files/ptftests/fg_ecmp_test.py
lolyu/sonic-mgmt
ed888fd1ce26e7f44fd7f70af00c43ace4882668
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
# PTF test contains the test cases for fine grained ecmp, the scenarios of test are as follows: # create_flows: Sends NUM_FLOWS flows with varying src_Ip and creates a tuple to port map # initial_hash_check: Checks the the flows from create_flows still end up at the same port # hash_check_warm_boot: Similar to initial ...
44.281362
161
0.59792
3,379
24,709
4.05327
0.104173
0.018984
0.017742
0.023511
0.630987
0.590245
0.554834
0.527964
0.488756
0.458966
0
0.011674
0.31705
24,709
557
162
44.360862
0.799941
0.098952
0
0.525463
0
0
0.08313
0.003388
0
0
0.000271
0
0.046296
0
null
null
0.002315
0.032407
null
null
0.002315
0
0
0
null
0
0
0
0
0
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
5df083a14bf565843cd9941b649333cea7e6221c
1,584
py
Python
checkin/management/commands/add_volunteers.py
noahbarnette/ugahacks5
72059709cf4e6d25bd2dc2e880f3c3590d583115
[ "MIT" ]
5
2020-07-22T19:18:09.000Z
2021-02-05T21:30:42.000Z
checkin/management/commands/add_volunteers.py
noahbarnette/ugahacks5
72059709cf4e6d25bd2dc2e880f3c3590d583115
[ "MIT" ]
9
2021-01-27T21:42:51.000Z
2022-03-12T00:20:25.000Z
checkin/management/commands/add_volunteers.py
ugahacks/myugahacks
72059709cf4e6d25bd2dc2e880f3c3590d583115
[ "MIT" ]
1
2020-02-04T23:49:12.000Z
2020-02-04T23:49:12.000Z
from __future__ import print_function import csv import sys from django.contrib.auth import authenticate from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand User = get_user_model() class Command(BaseCommand): """ Format CSV: name,email,password """ hel...
32.326531
84
0.530934
166
1,584
4.951807
0.475904
0.024331
0.041363
0.051095
0.114355
0
0
0
0
0
0
0.009054
0.372475
1,584
48
85
33
0.817907
0.019571
0
0
0
0
0.130774
0
0
0
0
0
0.029412
1
0.058824
false
0.088235
0.176471
0
0.294118
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
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
5df91c0f09c12f54c6763f2bce3cbe15a6cec0c6
1,235
py
Python
tools/send_email.py
lucasayres/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
71
2018-06-28T17:38:15.000Z
2022-02-08T17:42:42.000Z
tools/send_email.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
null
null
null
tools/send_email.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
14
2018-07-08T03:29:29.000Z
2022-03-22T21:04:39.000Z
# -*- coding: utf-8 -*- import re import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header def send_email(server, port, ssl, user, password, to, subject, body): """Send html or text email. Args: server (str): SMTP server. ...
30.875
90
0.598381
161
1,235
4.509317
0.385093
0.137741
0.012397
0.057851
0.066116
0
0
0
0
0
0
0.003181
0.236437
1,235
39
91
31.666667
0.766702
0.278543
0
0.086957
0
0
0.092527
0.043891
0
0
0
0
0
1
0.043478
false
0.086957
0.217391
0
0.26087
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
5dff9203210de5358fa6b8817c7475624513b99f
2,083
py
Python
archive/sql/tables/articles.py
jtom38/newsbot.worker
6f5d93c474d21542f1af20e3b2537f26e2bcbbc3
[ "MIT" ]
1
2021-09-23T16:19:46.000Z
2021-09-23T16:19:46.000Z
archive/sql/tables/articles.py
jtom38/newsbot.worker
6f5d93c474d21542f1af20e3b2537f26e2bcbbc3
[ "MIT" ]
10
2021-09-26T05:53:11.000Z
2022-01-07T00:38:46.000Z
archive/sql/tables/articles.py
jtom38/newsbot.worker
6f5d93c474d21542f1af20e3b2537f26e2bcbbc3
[ "MIT" ]
null
null
null
from sqlalchemy.orm.session import Session from newsbot.core.sql import database from newsbot.core.sql.exceptions import FailedToAddToDatabase from newsbot.core.sql.tables import Articles class ArticlesTable(): def __init__(self, session: Session) -> None: self.setSession(session) pass ...
29.757143
84
0.556409
229
2,083
5.008734
0.371179
0.026155
0.039233
0.047079
0.224063
0.178727
0.154316
0.100262
0.074978
0.074978
0
0.001484
0.352856
2,083
70
85
29.757143
0.849407
0.052328
0
0.196429
0
0
0.023859
0
0
0
0
0
0
1
0.125
false
0.071429
0.071429
0.017857
0.303571
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
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
b90015df9b632ac4f98d2331f788b040a144089f
3,051
py
Python
airstream/client.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
1
2020-12-11T17:11:45.000Z
2020-12-11T17:11:45.000Z
airstream/client.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
airstream/client.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from twisted.internet import reactor, protocol from twisted.protocols.basic import Int16StringReceiver from asTypes import DT_POINTER,MT_SENDDATA import traceback # A data receiver. # Can be used in applications. class InputClient(Int16StringReceiver): def connectionMade(self): try: ...
29.336538
73
0.638807
285
3,051
6.768421
0.403509
0.033178
0.020736
0.021773
0.073613
0.073613
0.043546
0.043546
0
0
0
0.00449
0.270075
3,051
103
74
29.621359
0.861697
0.071452
0
0.094595
0
0
0.055556
0
0
0
0
0
0
0
null
null
0
0.067568
null
null
0.094595
0
0
0
null
0
0
0
0
0
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
b9013e88888506f6afef9f42db5b30d7aa1be624
290
py
Python
lldb/third_party/Python/module/unittest2/unittest2/collector.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
third_party/Python/module/unittest2/unittest2/collector.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
third_party/Python/module/unittest2/unittest2/collector.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
import os import sys from unittest2.loader import defaultTestLoader def collector(): # import __main__ triggers code re-execution __main__ = sys.modules['__main__'] setupDir = os.path.abspath(os.path.dirname(__main__.__file__)) return defaultTestLoader.discover(setupDir)
26.363636
66
0.768966
34
290
5.970588
0.647059
0.059113
0
0
0
0
0
0
0
0
0
0.004032
0.144828
290
10
67
29
0.814516
0.144828
0
0
0
0
0.03252
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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
b903e1ad42cdeb76abca837851c41409aa575dbc
688
py
Python
setup.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
30
2019-10-25T06:09:38.000Z
2022-03-12T08:29:17.000Z
setup.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
13
2019-08-07T16:57:19.000Z
2022-03-13T10:26:18.000Z
setup.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
2
2019-11-11T13:07:30.000Z
2020-03-11T06:00:16.000Z
from setuptools import setup from tools.cmake_utils import CMakeExtension, CMakeBuild from tools.version_util import get_version from pathlib import Path import tempfile import os # This temporary directory is used to collect libs # for inclusion in the wheel templibdir = Path(Path(tempfile.gettempdir()), 'cibwlibs...
36.210526
129
0.777616
89
688
5.876404
0.640449
0.034417
0
0
0
0
0
0
0
0
0
0.005059
0.138081
688
18
130
38.222222
0.876897
0.343023
0
0
0
0
0.053933
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b908b944eac3e36a75676680400b2b0dccd07a61
337
py
Python
setup/urls.py
Gabriel-limadev/clientes-API
394b1af26ef54d4b7f0bd6c4189a701b4230ac9b
[ "MIT" ]
null
null
null
setup/urls.py
Gabriel-limadev/clientes-API
394b1af26ef54d4b7f0bd6c4189a701b4230ac9b
[ "MIT" ]
null
null
null
setup/urls.py
Gabriel-limadev/clientes-API
394b1af26ef54d4b7f0bd6c4189a701b4230ac9b
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework import routers from client.views import ClientsViewSet routers = routers.DefaultRouter() routers.register('clients', ClientsViewSet, basename='clients') urlpatterns = [ path('admin/', admin.site.urls), path('', include(...
25.923077
63
0.765579
40
337
6.425
0.5
0.077821
0
0
0
0
0
0
0
0
0
0
0.121662
337
12
64
28.083333
0.868243
0
0
0
0
0
0.059347
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b90cc315e8747a91432823bd354d78001ead81fa
927
py
Python
app/main/forms.py
jsonbruce/ImmI
4341e285aa17a507e99f18704498c99f87598e52
[ "Apache-2.0" ]
1
2019-09-02T05:50:23.000Z
2019-09-02T05:50:23.000Z
app/main/forms.py
jsonbruce/ImmI
4341e285aa17a507e99f18704498c99f87598e52
[ "Apache-2.0" ]
null
null
null
app/main/forms.py
jsonbruce/ImmI
4341e285aa17a507e99f18704498c99f87598e52
[ "Apache-2.0" ]
1
2019-09-03T11:35:11.000Z
2019-09-03T11:35:11.000Z
from flask.ext.wtf import Form from wtforms import StringField, TextAreaField, BooleanField, SelectField, SubmitField from wtforms.validators import Required, Length, Email, Regexp from wtforms import ValidationError from flask.ext.pagedown.fields import PageDownField from ..models import User class NameForm(Form): ...
31.965517
86
0.734628
105
927
6.47619
0.428571
0.1
0.135294
0.154412
0.195588
0.135294
0
0
0
0
0
0.007566
0.144552
927
28
87
33.107143
0.849937
0
0
0.2
0
0
0.113269
0
0
0
0
0
0
1
0
false
0
0.3
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b90e0f89290054cf886f889620d480b303410155
1,898
py
Python
Tools/disass/sample/apt1_tabmsgsql_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
Tools/disass/sample/apt1_tabmsgsql_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
Tools/disass/sample/apt1_tabmsgsql_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- ############################################################################# ## ## ## Copyright (C) 2013 Cassidian CyberSecurity SAS. All rights reserved. ## ## This document is the property of ...
33.892857
118
0.551633
163
1,898
6.263804
0.644172
0.032321
0.048972
0
0
0
0
0
0
0
0
0.119621
0.277661
1,898
55
119
34.509091
0.625091
0.419389
0
0
0
0
0.220879
0.074725
0
0
0
0
0
0
null
null
0.043478
0.130435
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f8d3e313dbf5bfea5707577fca18a104bda2a39e
9,304
py
Python
eembc/process_frida_trace.py
eembc/mbedtls
32bb4a3fe388e46f6734b3056525561c77886437
[ "Apache-2.0" ]
null
null
null
eembc/process_frida_trace.py
eembc/mbedtls
32bb4a3fe388e46f6734b3056525561c77886437
[ "Apache-2.0" ]
null
null
null
eembc/process_frida_trace.py
eembc/mbedtls
32bb4a3fe388e46f6734b3056525561c77886437
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import re import json class CAliasTable: """ Provides context to alias mapping """ def __init__ (self): self.current_alias = 0 self.context_to_alias = {} self.alias_to_context = {} self.alias_description = {} def base_add (self, key): ...
32.760563
99
0.618766
1,142
9,304
4.825744
0.172504
0.081292
0.078389
0.040102
0.475413
0.446743
0.436944
0.411178
0.403738
0.395935
0
0.010667
0.274506
9,304
283
100
32.876325
0.805778
0.070615
0
0.400943
0
0
0.056472
0
0
0
0
0.003534
0
1
0.20283
false
0.018868
0.014151
0
0.306604
0.042453
0
0
0
null
0
0
0
0
0
0
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
f8d4313d34e531076e65fdb96ff4c7bb9c47de02
2,791
py
Python
scaper_concept/venv/lib/python3.9/site-packages/pip/_vendor/certifi/core.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
null
null
null
scaper_concept/venv/lib/python3.9/site-packages/pip/_vendor/certifi/core.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
null
null
null
scaper_concept/venv/lib/python3.9/site-packages/pip/_vendor/certifi/core.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ certifi.py ~~~~~~~~~~ This module returns the installation location of cacert.pem or its contents. """ import os class _PipPatchedCertificate(Exception): pass DEBIAN_CA_CERTS_PATH = '/etc/ssl/certs/ca-certificates.crt' try: # Return a certificate file on disk for a standalone ...
36.246753
79
0.673235
400
2,791
4.57
0.435
0.027352
0.037199
0.027899
0.045952
0
0
0
0
0
0
0.001461
0.264063
2,791
76
80
36.723684
0.88851
0.557148
0
0.233333
0
0
0.054817
0.028239
0
0
0
0
0
1
0.166667
false
0.066667
0.1
0.066667
0.466667
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
f8da96837a918eaaab229c4236502d1df146445c
1,502
py
Python
venv/Lib/site-packages/psychopy/gui/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/gui/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/gui/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """ Graphical user interface elements for experiments. This lib will attempt to use PyQt...
28.884615
79
0.661119
219
1,502
4.506849
0.625571
0.012158
0
0
0
0
0
0
0
0
0
0.0271
0.262983
1,502
51
80
29.45098
0.864499
0.490013
0
0.241379
0
0
0.131544
0
0
0
0
0
0
1
0
false
0.034483
0.448276
0
0.448276
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
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
f8db32d11331107ab52d6b815829f0b515a61f71
350
py
Python
RecarrayTools/__init__.py
mattkjames7/RecarrayTools
809a3bcf8b2489a3468665ecf029c09ad5ee7ec4
[ "MIT" ]
null
null
null
RecarrayTools/__init__.py
mattkjames7/RecarrayTools
809a3bcf8b2489a3468665ecf029c09ad5ee7ec4
[ "MIT" ]
null
null
null
RecarrayTools/__init__.py
mattkjames7/RecarrayTools
809a3bcf8b2489a3468665ecf029c09ad5ee7ec4
[ "MIT" ]
null
null
null
__version__ = '0.1.1' from .ReadRecarray import ReadRecarray from .JoinRecarray import JoinRecarray from .ReduceRecarray import ReduceRecarray from .InterpRecarrayFields import InterpRecarrayFields from .SaveRecarray import SaveRecarray from .AppendFields import AppendFields from ._StoreDtype import _StoreDtype from ...
29.166667
54
0.857143
36
350
8.111111
0.361111
0
0
0
0
0
0
0
0
0
0
0.009585
0.105714
350
11
55
31.818182
0.923323
0
0
0
0
0
0.014286
0
0
0
0
0
0
1
0
false
0
0.888889
0
0.888889
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
f8dcce27ffd504b08c840b2d6003876f090fd693
6,571
py
Python
venv/lib/python3.8/site-packages/pip/_vendor/webencodings/tests.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_vendor/webencodings/tests.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_vendor/webencodings/tests.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ webencodings.tests ~~~~~~~~~~~~~~~~~~ A basic test suite for Encoding. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. """ # Copyright (c) 2020 # Author: xiaoweixiang from __future__ import unicode_literals from . import (lookup, LABELS,...
41.853503
98
0.595648
907
6,571
4.212789
0.184123
0.060194
0.05653
0.084795
0.500393
0.447789
0.419
0.331327
0.280817
0.253599
0
0.049879
0.182316
6,571
156
99
42.121795
0.660153
0.059352
0
0.086207
0
0.017241
0.219834
0.018238
0
0
0
0
0.698276
1
0.086207
false
0
0.017241
0
0.12069
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
f8dd9f9ef5c00701417e310db1d94ce2a7d77f5c
499
py
Python
tests/test_TorchCox.py
ilanfri/TorchCox
453ef3f906d26677786fb1193e6f8ea40af3ca23
[ "MIT" ]
9
2021-01-19T15:35:37.000Z
2022-03-09T03:03:43.000Z
tests/test_TorchCox.py
ilanfri/TorchCox
453ef3f906d26677786fb1193e6f8ea40af3ca23
[ "MIT" ]
null
null
null
tests/test_TorchCox.py
ilanfri/TorchCox
453ef3f906d26677786fb1193e6f8ea40af3ca23
[ "MIT" ]
1
2021-02-01T16:54:10.000Z
2021-02-01T16:54:10.000Z
from torchcox import TorchCox import pytest import pandas as pd import numpy as np valdf = pd.DataFrame({'id':['Bob','Sally','James','Ann'], 'time':[1,3,6,10], 'status':[1,1,0,1], 'smoke':[1,0,0,1]}) def test_TorchCox(): tname = 'time' Xnames = ['smoke'] dname = 'status' coxmod = TorchCox.TorchC...
23.761905
116
0.613226
74
499
4.121622
0.540541
0.091803
0
0
0
0
0
0
0
0
0
0.042289
0.194389
499
20
117
24.95
0.716418
0
0
0
0
0
0.096192
0
0
0
0
0
0.076923
1
0.076923
false
0
0.307692
0
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
0
0
0
1
0
0
0
0
1
f8ddad240c48e187049486931e73fedd2a199bab
867
py
Python
game.py
MatevzMiscic/ConnectFour
744eb75931036cf4caf29746e7d6d7f0e4f636c6
[ "MIT" ]
null
null
null
game.py
MatevzMiscic/ConnectFour
744eb75931036cf4caf29746e7d6d7f0e4f636c6
[ "MIT" ]
null
null
null
game.py
MatevzMiscic/ConnectFour
744eb75931036cf4caf29746e7d6d7f0e4f636c6
[ "MIT" ]
null
null
null
import board import bot class Game: def __init__(self): self.width = 7 self.height = 6 self.connect = 4 self.bots = [False, True] self.score = [0, 0] self.grid = board.Board(self.width, self.height, self.connect) def setBoard(self, width, height, connect): ...
24.083333
70
0.568627
112
867
4.366071
0.258929
0.0818
0.06135
0.110429
0.249489
0.196319
0.196319
0.196319
0.196319
0.196319
0
0.025084
0.310265
867
36
71
24.083333
0.792642
0
0
0.071429
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0
0.392857
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
f8e00a25aff844bd80671160f3a1517291272559
1,758
py
Python
tests/test_config.py
mblackgeo/flask-cognito-lib
4a58b5da33f67c77a0b16764b19761623368a04a
[ "MIT" ]
2
2022-03-24T16:07:55.000Z
2022-03-24T19:54:51.000Z
tests/test_config.py
mblackgeo/flask-cognito-lib
4a58b5da33f67c77a0b16764b19761623368a04a
[ "MIT" ]
1
2022-03-30T14:27:27.000Z
2022-03-30T14:27:27.000Z
tests/test_config.py
mblackgeo/flask-cognito-lib
4a58b5da33f67c77a0b16764b19761623368a04a
[ "MIT" ]
null
null
null
import pytest from flask_cognito_lib.config import get from flask_cognito_lib.exceptions import ConfigurationError def test_get_default(): res = get("ASDF", required=False, default=1) assert res == 1 def test_missing_config(app, cfg): """No configuration has been set, should throw an error""" with ...
26.238806
80
0.709898
238
1,758
5.071429
0.390756
0.063795
0.069594
0.06628
0.180613
0.180613
0.180613
0.180613
0.180613
0.180613
0
0.025395
0.171217
1,758
66
81
26.636364
0.80302
0.108646
0
0
0
0.102564
0.30432
0.054803
0
0
0
0
0.25641
1
0.282051
false
0
0.076923
0
0.358974
0.025641
0
0
0
null
0
0
0
0
0
0
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
f8e092c0f9f27bd7bc121fcb4c7dc575f4df650c
23,928
py
Python
assignment3/pg.py
lpierezan/rl_cs234
8015add6f7fd1d07cdc3507ff395c5a924362a11
[ "MIT" ]
null
null
null
assignment3/pg.py
lpierezan/rl_cs234
8015add6f7fd1d07cdc3507ff395c5a924362a11
[ "MIT" ]
10
2020-01-28T22:58:46.000Z
2022-02-10T00:28:03.000Z
assignment3/pg.py
lpierezan/rl_cs234
8015add6f7fd1d07cdc3507ff395c5a924362a11
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os import argparse import sys import logging import time import numpy as np import tensorflow as tf import tensorflow_probability as tfp import gym import scipy.signal import os import time import inspect from utils.general import get_logger, Progbar, export_plot from config import get_c...
37.213064
115
0.622033
3,012
23,928
4.816069
0.164011
0.019992
0.007445
0.016131
0.23735
0.170826
0.110299
0.090514
0.060389
0.048532
0
0.005859
0.24394
23,928
642
116
37.271028
0.795921
0.422852
0
0.142292
0
0
0.043565
0
0
0
0
0.023364
0.007905
1
0.083004
false
0
0.059289
0
0.166008
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f8e2dcbb7ce24f2ebc36949235201099352125dc
538
py
Python
project/area_riservata/migrations/0004_allegato_file.py
guglielmo/mosic2-area-riservata
815153ba848d573de84f75a7efc6654961367965
[ "BSD-3-Clause" ]
null
null
null
project/area_riservata/migrations/0004_allegato_file.py
guglielmo/mosic2-area-riservata
815153ba848d573de84f75a7efc6654961367965
[ "BSD-3-Clause" ]
null
null
null
project/area_riservata/migrations/0004_allegato_file.py
guglielmo/mosic2-area-riservata
815153ba848d573de84f75a7efc6654961367965
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-04-10 08:25 from __future__ import unicode_literals import area_riservata.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('area_riservata', '0003_auto_20170408_1901'), ] operati...
24.454545
103
0.657993
63
538
5.396825
0.730159
0.114706
0.111765
0
0
0
0
0
0
0
0
0.07971
0.230483
538
21
104
25.619048
0.741546
0.126394
0
0
1
0
0.104925
0.049251
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f8ebac365e583e37078757f93c8d18e18d162675
9,369
py
Python
geoinfo/forms.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
geoinfo/forms.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
geoinfo/forms.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
# from django.forms import ModelForm from django.conf import settings from django.contrib.gis import forms from django.contrib.gis.geos import GEOSGeometry from django.forms import ValidationError from django.contrib.auth.models import User from django.contrib.gis.forms.widgets import OSMWidget from djcelery.models im...
37.178571
129
0.631337
1,056
9,369
5.474432
0.264205
0.024909
0.023352
0.019028
0.245805
0.209306
0.137865
0.137865
0.118665
0.118665
0
0.001325
0.27527
9,369
251
130
37.326693
0.850074
0.194791
0
0.207101
0
0
0.147248
0.035302
0
0
0
0.003984
0
1
0.059172
false
0.076923
0.047337
0.005917
0.284024
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
f8f742a1b3096da6dc401aa0c16b77a339c69011
362
py
Python
spada/methods/get_switches.py
hclimente/spada
c9584df9e25a597c70b67a6a0b7ce63283a11839
[ "MIT" ]
8
2018-01-12T12:52:42.000Z
2022-03-18T17:44:30.000Z
spada/methods/get_switches.py
hclimente/spada
c9584df9e25a597c70b67a6a0b7ce63283a11839
[ "MIT" ]
4
2018-08-02T21:28:39.000Z
2021-12-16T02:20:27.000Z
spada/methods/get_switches.py
hclimente/spada
c9584df9e25a597c70b67a6a0b7ce63283a11839
[ "MIT" ]
null
null
null
from spada.methods import method class GetSwitches(method.Method): def __init__(self, annotation = 'annotation.pklz'): method.Method.__init__(self, __name__, annotation) self._genes.flushSwitches() def run(self, switchesFile): self.logger.info("Reading switches.") self._genes.readSwitches(switchesFile, sel...
24.133333
52
0.759669
43
362
5.860465
0.604651
0.095238
0
0
0
0
0
0
0
0
0
0
0.116022
362
14
53
25.857143
0.7875
0
0
0
0
0
0.110497
0
0
0
0
0
0
1
0.2
false
0.1
0.1
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
1
0
0
0
0
0
1
f8fde86a4bd7c129438a86778ac1517036793b64
753
py
Python
to_affiliate_manager/models/affiliate_ad.py
lester-lees/extra_addons_sz
cddaf972cf4ea64c553bcff0006eb006a115d5ee
[ "Apache-2.0" ]
null
null
null
to_affiliate_manager/models/affiliate_ad.py
lester-lees/extra_addons_sz
cddaf972cf4ea64c553bcff0006eb006a115d5ee
[ "Apache-2.0" ]
null
null
null
to_affiliate_manager/models/affiliate_ad.py
lester-lees/extra_addons_sz
cddaf972cf4ea64c553bcff0006eb006a115d5ee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openerp import fields, models, api from openerp.tools.translate import html_translate class to_affiliate_advertisement(models.Model): _description = "Store advertisement for affiliate partner to chose installing on their website." _name = "to.affiliate.advertisement" imag...
47.0625
114
0.734396
94
753
5.787234
0.531915
0.055147
0.088235
0
0
0
0
0
0
0
0
0.003115
0.14741
753
16
114
47.0625
0.844237
0.171315
0
0
0
0
0.276973
0.041868
0
0
0
0
0
1
0
false
0
0.181818
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5d07ebb387bfee102b1277d5b3e90e6db0532a4f
1,669
py
Python
tests/test_kms.py
nplutt/pydantic-kms-secrets
dd424209ae7616897e43250b487d3fa8f6788b18
[ "MIT" ]
3
2020-10-29T16:13:30.000Z
2022-01-06T15:10:01.000Z
tests/test_kms.py
nplutt/pydantic-kms-secrets
dd424209ae7616897e43250b487d3fa8f6788b18
[ "MIT" ]
null
null
null
tests/test_kms.py
nplutt/pydantic-kms-secrets
dd424209ae7616897e43250b487d3fa8f6788b18
[ "MIT" ]
1
2022-01-06T01:11:07.000Z
2022-01-06T01:11:07.000Z
from unittest.mock import MagicMock, patch from pydantic_kms_secrets.kms import decrypt, encrypt ENCRYPTED_BYTES = ( b"\x01\x02\x02\x00x@\xcau^\xa5\x9c\xdd\x1e\xed\xe0\x00w]A\xba-\x83\x89\xb2" b"N\x98<?\x10vkL\xd3\x87\x03:\xa6\x01X\x12\xc7Y\x1d\x17\xe2a\xef\xa0Pz\xef\x81" b"\xc2\x04\x00\x00\x00c0a\x06\t*...
32.72549
83
0.726783
227
1,669
5.185022
0.471366
0.067969
0.050977
0.053526
0.283772
0.283772
0.236194
0.171623
0
0
0
0.120523
0.130018
1,669
50
84
33.38
0.690083
0
0
0.157895
0
0.157895
0.461953
0.418215
0
0
0
0
0.105263
1
0.052632
false
0
0.052632
0
0.105263
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d0ccbff122d0581f9969b9d2029d9e45f26cbcf
334
py
Python
archives/modules/sub_process.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-07-08T10:53:13.000Z
2021-07-20T00:20:10.000Z
archives/modules/sub_process.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
1
2021-05-11T05:20:18.000Z
2021-05-11T05:20:18.000Z
archives/modules/sub_process.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-10-31T06:31:54.000Z
2020-08-31T20:55:00.000Z
# -*- coding: UTF-8 -*- __author__ = 'mcxiaoke' import subprocess # 创建子进程并等待它返回,参数是list subprocess.call(['ls', '-a']) # 同上,但是子进程返回值不是0时会抛异常 subprocess.check_call(['ls', '-a']) # subprocess.check_call(['ls2', '-la']) # 同上,但是返回值以字符串的形式返回 # 如果要捕获标准错误输出,可以用stderr=subprocess.STDOUT ret = subprocess.check_output(['ls', '-a...
22.266667
43
0.697605
39
334
5.794872
0.615385
0.039823
0.061947
0
0
0
0
0
0
0
0
0.009967
0.098802
334
14
44
23.857143
0.740864
0.47006
0
0
0
0
0.117647
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d0d4a42bd60e8a8746181135f607550601b29a0
8,861
py
Python
example_stream_signal.py
hth945/unicorn-binance-websocket-api
90b3a9c6853c985a3128d3e8239a6febbb644dd1
[ "MIT" ]
null
null
null
example_stream_signal.py
hth945/unicorn-binance-websocket-api
90b3a9c6853c985a3128d3e8239a6febbb644dd1
[ "MIT" ]
1
2021-08-25T04:37:22.000Z
2021-08-25T04:37:22.000Z
example_stream_signal.py
The-Makers-of-things/unicorn-binance-websocket-api
25e0352b09404da0c1fe5a88296a2994dab5a73a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # File: example_stream_signal.py # # Part of ‘UNICORN Binance WebSocket API’ # Project website: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api # Documentation: https://oliver-zehentleitner.github.io/unicorn-binance-websocket-api # PyPI: https://pyp...
53.70303
121
0.594064
996
8,861
5.051205
0.279116
0.018684
0.135957
0.160207
0.435897
0.428543
0.400914
0.382429
0.336712
0.261181
0
0.009731
0.095362
8,861
164
122
54.030488
0.617889
0.189143
0
0.283019
0
0
0.465995
0.287014
0
0
0
0
0
1
0.009434
false
0
0.04717
0
0.056604
0.273585
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
5d1252bfdce78e0e3c520b8830517ed94df8044e
1,319
py
Python
557/main.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
557/main.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
557/main.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
from redis import Redis # TODO: 初始化redis实例变量 cache = Redis(host='192.168.184.128', port=6379, password='ceshi1') # TODO: 1.对字符串操作 print('对字符串操作.....') cache.set(name='username', value='zhiliao') print(cache.get('username')) cache.delete('username') cache.set(name='read_count', value=1) cache.incr(name='read_count', a...
26.918367
72
0.668688
193
1,319
4.549223
0.455959
0.056948
0.044419
0.04328
0.052392
0
0
0
0
0
0
0.030431
0.103108
1,319
48
73
27.479167
0.71175
0.127369
0
0
0
0
0.298507
0
0
0
0
0.020833
0
1
0
false
0.029412
0.029412
0
0.029412
0.352941
0
0
0
null
0
0
0
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
5d181e814c23f6cab9240649f83dd2d93234f646
8,212
py
Python
huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_preheating_body.py
NQLoong/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_preheating_body.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_preheating_body.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class RefreshPreheatingBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the va...
25.11315
146
0.566245
861
8,212
5.269454
0.126597
0.047609
0.214238
0.025788
0.46242
0.39806
0.2041
0.124752
0.079788
0.079788
0
0.003709
0.343278
8,212
326
147
25.190184
0.837567
0.359596
0
0.090909
0
0
0.052737
0
0
0
0
0
0
1
0.167832
false
0
0.020979
0
0.321678
0.013986
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
5d1f2a4f139543a4fbdabc97e4806c878da38ad6
4,977
py
Python
app/routes.py
sColin16/pollz
676975d6f190f312d1e002bbea072cfe276bf7e1
[ "MIT" ]
3
2018-01-27T22:56:18.000Z
2018-02-04T22:12:05.000Z
app/routes.py
sColin16/pollz
676975d6f190f312d1e002bbea072cfe276bf7e1
[ "MIT" ]
5
2019-10-21T15:12:02.000Z
2020-05-04T23:25:33.000Z
app/routes.py
sColin16/pollz
676975d6f190f312d1e002bbea072cfe276bf7e1
[ "MIT" ]
null
null
null
"""File that stores all of the pollz app's routes, or adresses that can be visited, as defined by the app.route decorators.""" from flask import redirect, flash, request, session from passlib.hash import sha256_crypt from app import app, db from app.helpers import login_user, render_with_user, add_poll, json_response ...
30.347561
99
0.657625
681
4,977
4.741557
0.23348
0.024775
0.039021
0.049551
0.286776
0.250542
0.186435
0.173119
0.173119
0.105296
0
0.004109
0.217601
4,977
163
100
30.533742
0.825116
0.228652
0
0.333333
0
0
0.128431
0
0
0
0
0
0
1
0.088889
false
0.077778
0.055556
0
0.355556
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
5d207bdf341e366dac0110756c259b71dfcf0c16
627
py
Python
2021/day_05/test_solution.py
krother/advent_of_code
fd7d5199666b2f3a60c41c6cf24b747322ad88e5
[ "MIT" ]
3
2021-12-01T09:27:34.000Z
2022-02-24T23:35:56.000Z
2021/day_05/test_solution.py
krother/advent_of_code
fd7d5199666b2f3a60c41c6cf24b747322ad88e5
[ "MIT" ]
null
null
null
2021/day_05/test_solution.py
krother/advent_of_code
fd7d5199666b2f3a60c41c6cf24b747322ad88e5
[ "MIT" ]
null
null
null
import pytest from .solution import solve, Vent INPUT = """0,9 -> 5,9 8,0 -> 0,8 9,4 -> 3,4 2,2 -> 2,1 7,0 -> 7,4 6,4 -> 2,0 0,9 -> 2,9 3,4 -> 1,4 0,0 -> 8,8 5,5 -> 8,2 """ POINTS = [ (1, 1, 3, 3, [(1,1), (2, 2), (3, 3)]), (3, 3, 1, 1, [(1,1), (2, 2), (3, 3)]), (5, 5, 8, 2, [(5,5), (6, 4), (7, 3), (8, 2)...
19
58
0.503987
129
627
2.418605
0.27907
0.032051
0.057692
0.076923
0.128205
0.038462
0
0
0
0
0
0.181818
0.22807
627
32
59
19.59375
0.46281
0
0
0
0
0
0.210526
0
0
0
0
0
0.115385
1
0.115385
false
0
0.076923
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d2404b4b22bfae444e845b651c4bddf1e7b1063
10,457
py
Python
provider/oauth2/forms.py
i-DAT-Qualia/django-oauth2-provider
163a8004996b365275083df3f1bd3d36b948451d
[ "MIT" ]
4
2015-05-13T10:49:50.000Z
2017-11-02T12:09:21.000Z
provider/oauth2/forms.py
i-DAT-Qualia/django-oauth2-provider
163a8004996b365275083df3f1bd3d36b948451d
[ "MIT" ]
null
null
null
provider/oauth2/forms.py
i-DAT-Qualia/django-oauth2-provider
163a8004996b365275083df3f1bd3d36b948451d
[ "MIT" ]
10
2015-01-06T02:01:02.000Z
2021-03-09T11:35:38.000Z
from django import forms from django.contrib.auth import authenticate from django.utils.encoding import smart_text from django.utils.translation import ugettext as _ from .. import scope from ..constants import RESPONSE_TYPE_CHOICES, SCOPES from ..forms import OAuthForm, OAuthValidationError from ..scope import SCOPE_N...
31.122024
79
0.626088
1,207
10,457
5.323944
0.212096
0.020697
0.079365
0.092126
0.312481
0.266418
0.215064
0.150794
0.150794
0.150794
0
0.003183
0.278856
10,457
335
80
31.214925
0.848959
0.182844
0
0.281609
0
0
0.106223
0.003188
0
0
0
0
0
1
0.097701
false
0.057471
0.057471
0
0.425287
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
5d272da4db1101fd7af46c60d9024f5f8f5e7b92
10,817
py
Python
Fuzzy_clustering/ver_tf2/skopt/optimizer/gp.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/ver_tf2/skopt/optimizer/gp.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/ver_tf2/skopt/optimizer/gp.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
"""Gaussian process-based minimization algorithms.""" import numpy as np from sklearn.utils import check_random_state from .base import base_minimize from ..utils import cook_estimator from ..utils import normalize_dimensions def gp_minimize(func, dimensions, base_estimator=None, n_calls=100, n_ran...
39.768382
94
0.663585
1,497
10,817
4.716767
0.263861
0.008497
0.014729
0.003965
0.071095
0.039088
0.023509
0.020394
0
0
0
0.008375
0.271425
10,817
271
95
39.915129
0.887578
0.818989
0
0
0
0
0.017268
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d2c4291f591042cf73afbc5b2212f7c21968b01
40,126
py
Python
libs/mutraffSim/Sim.py
uahservtel/uah-gist-mutraff-bastra
b5a4eab4763e1cf9d914c4af8a77426391e71e31
[ "Xnet", "Linux-OpenIB", "X11" ]
3
2019-11-20T15:22:27.000Z
2021-06-13T07:52:14.000Z
libs/mutraffSim/Sim.py
uahservtel/uah-gist-mutraff-bastra
b5a4eab4763e1cf9d914c4af8a77426391e71e31
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
libs/mutraffSim/Sim.py
uahservtel/uah-gist-mutraff-bastra
b5a4eab4763e1cf9d914c4af8a77426391e71e31
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
''' Created on 27 de ene. de 2016 @author: Valentin ''' import sys import traci import os import re import time from lxml import etree import Vehicle import NewTripClass import random from mutraff import Ruleset as Rules # -- Alvaro 09/12/2016 # DECORATOR FOR TIME MANAGEMENT # Usage as: # @log_...
37.676995
210
0.532921
4,760
40,126
4.289916
0.107143
0.019197
0.006317
0.00764
0.464349
0.380656
0.328257
0.293389
0.265916
0.247502
0
0.009714
0.32525
40,126
1,064
211
37.712406
0.744488
0.069805
0
0.337037
0
0.007407
0.106931
0.015003
0
0
0
0
0
0
null
null
0
0.012346
null
null
0.04321
0
0
0
null
0
0
0
0
0
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
5d2f60e79257d6bcaa38e077f01a4893aa9fe84c
1,302
py
Python
main.py
rajatrjoshi/Library_Management_System
8d55e359d83752ee7275bc430d34da199c90f07d
[ "MIT" ]
4
2021-06-18T16:04:24.000Z
2021-07-22T11:18:35.000Z
main.py
rajatrjoshi/Library_Management_System
8d55e359d83752ee7275bc430d34da199c90f07d
[ "MIT" ]
null
null
null
main.py
rajatrjoshi/Library_Management_System
8d55e359d83752ee7275bc430d34da199c90f07d
[ "MIT" ]
null
null
null
import tkinter from tkinter import * from PIL import ImageTk, Image #PIL -> Pillow import pymysql from tkinter import messagebox from AddBook import * from DeleteBook import * from ViewBook import * from IssueBook import * # # Connecting to MySql Server # mypass = "library123" # Use your own password # mydatabase = "d...
27.125
101
0.749616
159
1,302
6.100629
0.54717
0.092784
0.035052
0.061856
0
0
0
0
0
0
0
0.025112
0.143625
1,302
48
102
27.125
0.844843
0.253456
0
0
0
0
0.02714
0
0
0
0
0
0
1
0
false
0
0.310345
0
0.310345
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
5d2f8f68819ee70a56657d52326376a3346000bb
1,565
py
Python
examples/raw_functions/createPathGoesData.py
palexandremello/goes-py
a0a8e3136f77978c29494700da88e1f0a319daa1
[ "BSD-2-Clause" ]
12
2018-10-15T00:05:44.000Z
2022-03-03T14:30:11.000Z
examples/raw_functions/createPathGoesData.py
spestana/goes-py
a0a8e3136f77978c29494700da88e1f0a319daa1
[ "BSD-2-Clause" ]
4
2020-04-29T02:13:24.000Z
2022-02-04T18:49:48.000Z
examples/raw_functions/createPathGoesData.py
spestana/goes-py
a0a8e3136f77978c29494700da88e1f0a319daa1
[ "BSD-2-Clause" ]
6
2018-04-23T14:44:48.000Z
2021-03-11T20:59:15.000Z
"""### Function used create a directory, with the calendar date the user give to function""" def createPathGoesData(bucket, year, month, day, product, hour, channel=None): import os from pathlib import Path pathReturn = '' '''## that part will get your home directory and the Satellite bucket you're ge...
35.568182
104
0.483067
181
1,565
4.165746
0.348066
0.083554
0.111406
0.176393
0.591512
0.591512
0.551724
0.551724
0.551724
0.525199
0
0.044231
0.335463
1,565
43
105
36.395349
0.680769
0.054952
0
0.214286
0
0
0.145555
0.141621
0
0
0
0
0
1
0.035714
false
0.035714
0.071429
0
0.142857
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
5d3079e11c9800ab2f2e871e018486c745565c05
481
py
Python
test_hints_calculator.py
imVincentTan/wordle-solver
b57d5ec9d2d6426d05449b9230a08405040b4b19
[ "MIT" ]
null
null
null
test_hints_calculator.py
imVincentTan/wordle-solver
b57d5ec9d2d6426d05449b9230a08405040b4b19
[ "MIT" ]
null
null
null
test_hints_calculator.py
imVincentTan/wordle-solver
b57d5ec9d2d6426d05449b9230a08405040b4b19
[ "MIT" ]
null
null
null
import unittest from hints_calculator import HintsCalculator class TestHintsCalculatorMethods(unittest.TestCase): def test_get_hints_0(self): hints_calculator = HintsCalculator('aback', 'bacon') self.assertEqual(hints_calculator.get_hints(), 'yy-y-') def test_get_hints_1(self): hints...
26.722222
63
0.719335
54
481
6.018519
0.481481
0.230769
0.061538
0.092308
0.233846
0.233846
0
0
0
0
0
0.004975
0.164241
481
17
64
28.294118
0.803483
0
0
0
0
0
0.079002
0
0
0
0
0
0.181818
1
0.181818
false
0
0.181818
0
0.454545
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
5d3164434412d383f32c53be84413f476cbea9ee
515
py
Python
guests/migrations/0030_alter_guest_meal.py
dannymuchoki/django-wedding-website
4cb322719b04500b587500ea65311f3db302732d
[ "Apache-2.0" ]
null
null
null
guests/migrations/0030_alter_guest_meal.py
dannymuchoki/django-wedding-website
4cb322719b04500b587500ea65311f3db302732d
[ "Apache-2.0" ]
null
null
null
guests/migrations/0030_alter_guest_meal.py
dannymuchoki/django-wedding-website
4cb322719b04500b587500ea65311f3db302732d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.11 on 2022-03-28 20:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('guests', '0029_alter_guest_caboose_farm'), ] operations = [ migrations.AlterField( model_name='guest', ...
27.105263
159
0.584466
56
515
5.267857
0.785714
0
0
0
0
0
0
0
0
0
0
0.058511
0.269903
515
18
160
28.611111
0.726064
0.08932
0
0
1
0
0.198218
0.064588
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
5d31ed192f53a1523b5fe35dcaa743739c9ff697
941
py
Python
examples/writing/pdf.py
eriol/pyth
f2a06fc8dc9b1cfc439ea14252d39b9845a7fa4b
[ "MIT" ]
47
2015-01-26T22:06:53.000Z
2022-01-04T15:11:14.000Z
examples/writing/pdf.py
eriol/pyth
f2a06fc8dc9b1cfc439ea14252d39b9845a7fa4b
[ "MIT" ]
16
2015-02-20T18:12:22.000Z
2021-12-17T09:49:19.000Z
examples/writing/pdf.py
eriol/pyth
f2a06fc8dc9b1cfc439ea14252d39b9845a7fa4b
[ "MIT" ]
45
2015-01-29T02:47:39.000Z
2022-01-26T12:50:27.000Z
# -*- coding: utf-8 -*- from pyth.plugins.rtf15.reader import Rtf15Reader from pyth.plugins.pdf.writer import PDFWriter doc = Rtf15Reader.read(open("../reading/sample.rtf")) fontfile = "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman%s.ttf" from reportlab.lib.styles import getSampleStyleSheet from reportla...
36.192308
115
0.782147
106
941
6.830189
0.509434
0.099448
0.143646
0
0
0
0
0
0
0
0
0.008074
0.07864
941
25
116
37.64
0.82699
0.022317
0
0
0
0
0.237473
0.089325
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
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
5d34ebde84d354bb075d21d4079ba0c89ba3ba1c
14,665
py
Python
ecolime/building_data/tRNA_network_building/tRNA_MODOMICS_network_map.py
EdwardCatoiu/ecolime
f8ace45377f21db378bc5ab2aa659b14f8c1328d
[ "MIT" ]
null
null
null
ecolime/building_data/tRNA_network_building/tRNA_MODOMICS_network_map.py
EdwardCatoiu/ecolime
f8ace45377f21db378bc5ab2aa659b14f8c1328d
[ "MIT" ]
null
null
null
ecolime/building_data/tRNA_network_building/tRNA_MODOMICS_network_map.py
EdwardCatoiu/ecolime
f8ace45377f21db378bc5ab2aa659b14f8c1328d
[ "MIT" ]
null
null
null
#trying something new uridine_mods_paths = {'U_to_DDusA' : {'upstream_rxns' : ['U'], 'enzymes' : {20:['DusA_mono'], '20A':['DusA_mono'], 17:['DusA_mono'], ...
56.403846
130
0.294579
983
14,665
3.918616
0.215666
0.196262
0.080997
0.062305
0.430685
0.359553
0.271288
0.207425
0.207425
0.163551
0
0.087441
0.578111
14,665
260
131
56.403846
0.535154
0.002523
0
0.176796
0
0
0.269178
0.022494
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d364bb93969bf1cad7ca7279f0b7f6cea9786f1
457
py
Python
usuario_modulo/migrations/0009_modulo_is_padre.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
usuario_modulo/migrations/0009_modulo_is_padre.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
usuario_modulo/migrations/0009_modulo_is_padre.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-20 09:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usuario_modulo', '0008_auto_20170120_0338'), ] operations = [ migrations.Ad...
21.761905
54
0.621444
51
457
5.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0.10089
0.262582
457
20
55
22.85
0.709199
0.148797
0
0
1
0
0.132124
0.059585
0
0
0
0
0
1
0
false
0
0.153846
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d37ef5667e0399b0388aec5cb2a3dfff30f7b9c
321
py
Python
10_Days_of_Statistics/Day1_StandardDeviation.py
dheerajgoudb/Hackerrank
0ae1f505c31b36f017227270f626448edcb5bb5d
[ "Apache-2.0" ]
null
null
null
10_Days_of_Statistics/Day1_StandardDeviation.py
dheerajgoudb/Hackerrank
0ae1f505c31b36f017227270f626448edcb5bb5d
[ "Apache-2.0" ]
null
null
null
10_Days_of_Statistics/Day1_StandardDeviation.py
dheerajgoudb/Hackerrank
0ae1f505c31b36f017227270f626448edcb5bb5d
[ "Apache-2.0" ]
null
null
null
def SD(X,N): s = sum(X) mean = s / (N * 1.0) count = 0 for i in xrange(0,N): count += (X[i] - mean) ** 2 sd = (count / N) ** (1/2.0) return "{:0.1f}".format(sd) if __name__ == '__main__': N = int(raw_input()) X = [int(i) for i in raw_input().split()] print SD(X,N...
24.692308
46
0.451713
56
321
2.410714
0.464286
0.044444
0.059259
0
0
0
0
0
0
0
0
0.046729
0.333333
321
13
47
24.692308
0.584112
0
0
0
0
0
0.048387
0
0
0
0
0
0
0
null
null
0
0
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d3d1a0081ab652005f5cf21aa65c2538659c49b
659
py
Python
src/baseline.py
ShikharJ/Movie-Recommendation
cc9dc5ccc98731e66ca73f81b8a305b32c276c07
[ "BSD-3-Clause" ]
5
2018-04-09T02:36:26.000Z
2020-08-13T02:56:36.000Z
src/baseline.py
mazeeblanke/Movie-Recommendation
cc9dc5ccc98731e66ca73f81b8a305b32c276c07
[ "BSD-3-Clause" ]
null
null
null
src/baseline.py
mazeeblanke/Movie-Recommendation
cc9dc5ccc98731e66ca73f81b8a305b32c276c07
[ "BSD-3-Clause" ]
2
2018-10-28T07:45:33.000Z
2019-03-29T13:38:39.000Z
from basic import * class Baseline(Basic): def __init__(self, beta_u=25, beta_i=25): super(Baseline, self).__init__() self.beta_u = beta_u self.beta_i = beta_i def set_beta_u(self, beta_u): self.beta_u = beta_u def set_beta_i(self, beta_i): self.beta_i = beta_i def predict(self, u, i): b_u = b_i =...
27.458333
125
0.673748
128
659
3.132813
0.210938
0.179551
0.112219
0.097257
0.528678
0.084788
0
0
0
0
0
0.009058
0.162367
659
23
126
28.652174
0.717391
0
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.411765
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
5d3d24faf85f49b4f376d20344bbad3f3afac90f
4,487
py
Python
sagar/toolkit/derivetool.py
unkcpz/sagar
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
2
2018-09-05T10:40:01.000Z
2018-09-18T01:09:20.000Z
sagar/toolkit/derivetool.py
unkcpz/sagar
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
6
2018-10-17T07:48:27.000Z
2019-11-04T13:39:07.000Z
sagar/toolkit/derivetool.py
unkcpz/pyyabc
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
3
2018-05-03T08:15:42.000Z
2018-08-28T05:45:33.000Z
# -*- coding: utf-8 -*- import numpy from itertools import product from sagar.toolkit.mathtool import binomialCoeff def remove_redundant(mol_positions, sites, perms, e_num=None, method='jshash'): if method == 'jshash': for i in remove_redundant_by_hash(mol_positions, sites, perms, e_num): yiel...
30.317568
91
0.581235
569
4,487
4.360281
0.325132
0.025796
0.012092
0.026602
0.103184
0.087062
0.037888
0.037888
0.037888
0.037888
0
0.009875
0.322933
4,487
147
92
30.52381
0.806452
0.21618
0
0.068966
0
0
0.020643
0
0
0
0
0.013605
0
1
0.068966
false
0.011494
0.034483
0
0.16092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5d4609f3853a6e0a018eb37fab13cdb4fff7535b
1,485
py
Python
Sensores/PruebaRFIDUSB.py
tec-csf/reto-iot-en-supermercado-2019-los-chocoflanes
bb31eb967ab9bcb3a2698eed37ae7967f5d034c7
[ "MIT" ]
1
2021-08-23T15:05:43.000Z
2021-08-23T15:05:43.000Z
Sensores/PruebaRFIDUSB.py
tec-csf/reto-iot-en-supermercado-2019-los-chocoflanes
bb31eb967ab9bcb3a2698eed37ae7967f5d034c7
[ "MIT" ]
2
2021-06-02T00:35:59.000Z
2021-06-02T03:33:16.000Z
Sensores/PruebaRFIDUSB.py
tec-csf/reto-iot-en-supermercado-2019-los-chocoflanes
bb31eb967ab9bcb3a2698eed37ae7967f5d034c7
[ "MIT" ]
null
null
null
from gpiozero import LED, Buzzer from guizero import App, Box, Text, TextBox, warn import csv led8 = LED(19) def clearDisplay(): print("Clear display") rfidStatus.value = "---" rfidText.value = "" led8.off() rfidStatus.repeat(1000, checkRFidTag) def checkRFidTag(): tagId = rfidText.value ...
31.595745
91
0.601347
156
1,485
5.724359
0.519231
0.050392
0.036954
0.071669
0.071669
0.071669
0
0
0
0
0
0.047354
0.274747
1,485
47
92
31.595745
0.781801
0
0
0.051282
0
0
0.158143
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.102564
0
0
0
null
0
0
0
0
0
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
5d48379f6e2132c86eaa8eacffd4f57839fa2a3e
3,533
py
Python
students/k3340/practical_works/Voronov Alexey/docker/project/abit/migrations/0001_initial.py
voronoff2803/ITMO_ICT_WebProgramming_2020
c59d8b2cdefe8b821049a2716733070983d08ad2
[ "MIT" ]
null
null
null
students/k3340/practical_works/Voronov Alexey/docker/project/abit/migrations/0001_initial.py
voronoff2803/ITMO_ICT_WebProgramming_2020
c59d8b2cdefe8b821049a2716733070983d08ad2
[ "MIT" ]
null
null
null
students/k3340/practical_works/Voronov Alexey/docker/project/abit/migrations/0001_initial.py
voronoff2803/ITMO_ICT_WebProgramming_2020
c59d8b2cdefe8b821049a2716733070983d08ad2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 12:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Study_Place', fields=[ ...
54.353846
176
0.595528
347
3,533
5.896254
0.331412
0.139785
0.061584
0.082111
0.48436
0.368035
0.368035
0.247801
0.227273
0.227273
0
0.02301
0.249646
3,533
64
177
55.203125
0.748774
0.012737
0
0.350877
1
0
0.211417
0
0
0
0
0
0
1
0
false
0
0.035088
0
0.105263
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
5d4aad7bcad720f166ba3edbe1733d9875631941
918
py
Python
Python/distinct-subsequences.py
ZhiliangGong/LeetCode
a1fc7311ddc50eb43f43fc51d3290f2c91fd4fa1
[ "MIT" ]
5
2018-09-06T03:12:33.000Z
2022-03-03T18:57:11.000Z
Python/distinct-subsequences.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
1
2018-07-10T03:28:43.000Z
2018-07-10T03:28:43.000Z
Python/distinct-subsequences.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
5
2018-09-06T03:12:35.000Z
2021-07-03T09:00:56.000Z
# Time: O(n^2) # Space: O(n) # # Given a string S and a string T, count the number of distinct subsequences of T in S. # # A subsequence of a string is a new string which is formed from the original string # by deleting some (can be none) of the characters without disturbing the relative positions # of the remaining c...
27.818182
92
0.603486
143
918
3.783217
0.503497
0.038817
0.051756
0.055453
0
0
0
0
0
0
0
0.010622
0.282135
918
32
93
28.6875
0.810319
0.491285
0
0
0
0
0.046667
0
0
0
0
0
0
0
null
null
0
0
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d4b48f17b411e195df63b11fae670653dce33f7
19,557
py
Python
hackingweek/views.py
perror/hackingweek
8d2c13d164789ea4a71840d0ad06da9e47951bd3
[ "BSD-2-Clause" ]
2
2016-03-16T21:02:54.000Z
2016-10-27T10:05:15.000Z
hackingweek/views.py
perror/hackingweek
8d2c13d164789ea4a71840d0ad06da9e47951bd3
[ "BSD-2-Clause" ]
null
null
null
hackingweek/views.py
perror/hackingweek
8d2c13d164789ea4a71840d0ad06da9e47951bd3
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse, reverse_lazy from django.http import HttpResponseRedirect, Http404 from django.sho...
33.091371
91
0.573912
1,929
19,557
5.663038
0.125454
0.025265
0.024716
0.024899
0.440681
0.359392
0.321219
0.277737
0.223636
0.206426
0
0.001881
0.320346
19,557
590
92
33.147458
0.819967
0.045252
0
0.41535
0
0
0.113523
0.007038
0
0
0
0
0
0
null
null
0.004515
0.040632
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
5d4b9570970f058b463897ea100d09ae8510968d
1,306
py
Python
utils/build_rows.py
VPSReport/LowEndStorage
5e7f049b15979a27f25fcaaba149841a23f3173d
[ "WTFPL" ]
17
2019-11-02T05:14:22.000Z
2021-07-06T13:23:54.000Z
utils/build_rows.py
VPSReport/LowEndStorage
5e7f049b15979a27f25fcaaba149841a23f3173d
[ "WTFPL" ]
1
2018-08-02T07:10:13.000Z
2018-08-02T11:30:51.000Z
utils/build_rows.py
VPSReport/LowEndStorage
5e7f049b15979a27f25fcaaba149841a23f3173d
[ "WTFPL" ]
14
2018-08-15T12:56:25.000Z
2019-09-03T11:05:52.000Z
#!/usr/bin/env python2.7 import json with open('../data.json') as f: data = json.load(f) for i in data['data']: tooltips = "<span class='tooltip'>"; for j in i['Locations'].split("; "): tooltips += j + "<br>"; tooltips += "</span>" links = ""; for k in i['Links']: links += "<a...
35.297297
108
0.380551
170
1,306
2.882353
0.329412
0.053061
0.106122
0.146939
0.157143
0
0
0
0
0
0
0.00426
0.281011
1,306
36
109
36.277778
0.517572
0.017611
0
0
0
0
0.372855
0
0
0
0
0
0
0
null
null
0
0.032258
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
5d4ca49e414871a0c59337402ae5d584ab936373
197
py
Python
for.py
EduardoGarciaBautista/py-basics
6c2212e45fe513a0ab1b82e2c3fbd88b8e8002c7
[ "MIT" ]
null
null
null
for.py
EduardoGarciaBautista/py-basics
6c2212e45fe513a0ab1b82e2c3fbd88b8e8002c7
[ "MIT" ]
null
null
null
for.py
EduardoGarciaBautista/py-basics
6c2212e45fe513a0ab1b82e2c3fbd88b8e8002c7
[ "MIT" ]
null
null
null
def run(): # Range can receive a first value that defines start value of range: range(1, 1000) for i in range(1000): print('Value ' + str(i)) if __name__ == '__main__': run()
21.888889
87
0.609137
30
197
3.733333
0.733333
0
0
0
0
0
0
0
0
0
0
0.062069
0.263959
197
8
88
24.625
0.710345
0.411168
0
0
0
0
0.122807
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d53f4a2d5d2635ca543fdc1ddcd59bf2ef3e615
305
py
Python
classwork/02/bigger_is_greater.py
salma-nyagaka/golclinics-dsa
3242d63aa1eec3dd87d18a4ea5d8f01ef845e80e
[ "MIT" ]
null
null
null
classwork/02/bigger_is_greater.py
salma-nyagaka/golclinics-dsa
3242d63aa1eec3dd87d18a4ea5d8f01ef845e80e
[ "MIT" ]
null
null
null
classwork/02/bigger_is_greater.py
salma-nyagaka/golclinics-dsa
3242d63aa1eec3dd87d18a4ea5d8f01ef845e80e
[ "MIT" ]
null
null
null
def biggerIsGreater(w): w = list(w) x = len(w)-1 while x > 0 and w[x-1] >= w[x]: x -= 1 if x <= 0: return 'no answer' j = len(w) - 1 while w[j] <= w[x - 1]: j -= 1 w[x-1], w[j] = w[j], w[x-1] w[x:] = w[len(w)-1:x-1:-1] return ''.join(w)
16.944444
35
0.380328
61
305
1.901639
0.262295
0.12069
0.103448
0.103448
0.146552
0
0
0
0
0
0
0.069519
0.386885
305
18
36
16.944444
0.550802
0
0
0
0
0
0.029412
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d54bca5a2671167145811a205bec3e2f5da0eec
285
py
Python
Number/MoveZeros.py
menghanY/LeetCode-Python
85f9dc4a5b18a3b8a4a3d7b3a6eeb0e935901534
[ "MIT" ]
null
null
null
Number/MoveZeros.py
menghanY/LeetCode-Python
85f9dc4a5b18a3b8a4a3d7b3a6eeb0e935901534
[ "MIT" ]
null
null
null
Number/MoveZeros.py
menghanY/LeetCode-Python
85f9dc4a5b18a3b8a4a3d7b3a6eeb0e935901534
[ "MIT" ]
null
null
null
class Solution(object): def moveZeroes(self, nums): totalZeros = 0 for i in range(len(nums)): if nums[i] == 0 : totalZeros += 1 continue nums[i - totalZeros] = nums[i] if(totalZeros) : nums[i] = 0
28.5
42
0.470175
32
285
4.1875
0.53125
0.149254
0.089552
0
0
0
0
0
0
0
0
0.024096
0.417544
285
9
43
31.666667
0.783133
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d58d36a349d142188a0ad84f5805c4cdfbafd9a
7,774
py
Python
gui/tree.py
hsoft/hscommon
a56aee2f08becba9b968ff96caa3a7f6651a4c74
[ "BSD-3-Clause" ]
5
2016-10-03T22:59:09.000Z
2019-11-16T08:31:02.000Z
gui/tree.py
hsoft/hscommon
a56aee2f08becba9b968ff96caa3a7f6651a4c74
[ "BSD-3-Clause" ]
5
2016-06-23T12:43:26.000Z
2018-11-12T17:04:22.000Z
gui/tree.py
hsoft/hscommon
a56aee2f08becba9b968ff96caa3a7f6651a4c74
[ "BSD-3-Clause" ]
14
2016-03-31T03:30:09.000Z
2019-01-11T22:04:04.000Z
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net) # # This software is licensed under the "GPLv3" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.gnu.org/licenses/gpl-3.0.html from collections import MutableSequence ...
30.849206
99
0.582583
980
7,774
4.470408
0.252041
0.04451
0.027163
0.016435
0.13239
0.052499
0.031043
0
0
0
0
0.003017
0.317726
7,774
251
100
30.972112
0.822964
0.405583
0
0.258333
0
0
0.002217
0
0
0
0
0
0
1
0.25
false
0.008333
0.016667
0.025
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5d5d624d10e48537e40ffeac16190b2a4bd35b63
503
py
Python
catalogo/migrations/0003_auto_20180820_0034.py
dicezburger/catalogo_jogos
cb157eda1e2aeb9c6cb0922e6e44158de2911c77
[ "Unlicense" ]
null
null
null
catalogo/migrations/0003_auto_20180820_0034.py
dicezburger/catalogo_jogos
cb157eda1e2aeb9c6cb0922e6e44158de2911c77
[ "Unlicense" ]
null
null
null
catalogo/migrations/0003_auto_20180820_0034.py
dicezburger/catalogo_jogos
cb157eda1e2aeb9c6cb0922e6e44158de2911c77
[ "Unlicense" ]
null
null
null
# Generated by Django 2.1 on 2018-08-20 00:34 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('catalogo', '0002_auto_20180820_0017'), ] operations = [ migrations.AlterField( ...
23.952381
110
0.642147
59
503
5.389831
0.728814
0.062893
0
0
0
0
0
0
0
0
0
0.126649
0.246521
503
20
111
25.15
0.712401
0.085487
0
0
1
0
0.10262
0.050218
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d61c3b1f9208d24f4281a426b7e8c8d51776b7b
988
py
Python
skp_edu_docker/code/tests/testUnitCase.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
8
2017-06-16T00:19:12.000Z
2020-08-13T03:15:57.000Z
skp_edu_docker/code/tests/testUnitCase.py
TensorMSA/tensormsa_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
21
2017-06-09T10:15:14.000Z
2018-03-29T07:51:02.000Z
skp_edu_docker/code/tests/testUnitCase.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
4
2017-10-25T09:59:53.000Z
2020-05-07T09:51:11.000Z
from unittest import TestCase #from django.utils import unittest import unitCase TestMethod = unitCase.TestMethod() class testUnitCase(TestCase): def setUp(self): print('Start HOYA AI test 1') def tearDown(self): print('Finish HOYA AI test 2') def test_returnValue(self): print('...
29.058824
74
0.665992
116
988
5.637931
0.431034
0.055046
0.061162
0.087156
0.114679
0.114679
0
0
0
0
0
0.005236
0.226721
988
33
75
29.939394
0.850785
0.139676
0
0
0
0
0.14876
0
0
0
0
0
0.227273
1
0.272727
false
0
0.090909
0
0.409091
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5d684889e2111aa125bba3c2147a756c98e999f0
3,465
py
Python
Amazing Python Projects_Scripts/2048Game/Logics.py
Manas1820/Hacktoberfest2021_awesome-projects
9a2442e5a082fbd90736ed4a2c64e7a7e5d93cb5
[ "MIT" ]
30
2021-10-06T18:18:10.000Z
2022-03-19T05:54:14.000Z
Amazing Python Projects_Scripts/2048Game/Logics.py
Manas1820/Hacktoberfest2021_awesome-projects
9a2442e5a082fbd90736ed4a2c64e7a7e5d93cb5
[ "MIT" ]
24
2021-10-06T10:09:25.000Z
2021-12-02T22:21:19.000Z
Amazing Python Projects_Scripts/2048Game/Logics.py
Manas1820/Hacktoberfest2021_awesome-projects
9a2442e5a082fbd90736ed4a2c64e7a7e5d93cb5
[ "MIT" ]
12
2021-10-08T23:06:02.000Z
2022-03-27T03:06:33.000Z
import random def start_game(): # Generateing 2-D matrix (list) mat = [] for i in range(4): mat.append([0]*4) return mat def add_new_2(mat): # Generating random position for new 2 r = random.randint(0, 3) c = random.randint(0, 3) while mat[r][c] != 0: r = rand...
24.75
68
0.549495
506
3,465
3.63834
0.13834
0.091255
0.056491
0.05975
0.660511
0.574688
0.563281
0.483433
0.414992
0.408474
0
0.034244
0.334199
3,465
140
69
24.75
0.763762
0.060317
0
0.54902
1
0
0.020025
0
0
0
0
0
0
1
0.107843
false
0
0.009804
0
0.264706
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
5d688225aef38f974648d7fb0a0e6d154777b2d8
2,854
py
Python
Arithmetic Exam Application/arithmetic.py
oxxio/hyperskill-projects-python
beb9e91411053e3193df0c8646ddd7e16c3016ae
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
oxxio/hyperskill-projects-python
beb9e91411053e3193df0c8646ddd7e16c3016ae
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
oxxio/hyperskill-projects-python
beb9e91411053e3193df0c8646ddd7e16c3016ae
[ "MIT" ]
null
null
null
import random def get_number(option): num = 0 while True: try: num = input() if len(num) == 0: print("Incorrect format." if option == 1 else "Wrong format! Try again.") elif (num.isnumeric() or (num[0] == "-" and num[1:].isnumeric())) and o...
31.362637
98
0.440434
310
2,854
4.009677
0.283871
0.036203
0.03218
0.041834
0.43926
0.405471
0.358809
0.358809
0.331456
0.281577
0
0.029915
0.426069
2,854
90
99
31.711111
0.728938
0
0
0.4
0
0.013333
0.223951
0
0
0
0
0
0
1
0.013333
false
0.106667
0.013333
0
0.04
0.24
0
0
0
null
0
0
0
0
0
0
0
0
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
5d6d9c738bf07a79c42f816b5bcc8fa252973867
282
py
Python
beta/Persist_Matriz_Work_Queue.py
jmhal/backendservice
45fd88558ff1a8838ae5b5ad7409676788c2d6c3
[ "MIT" ]
null
null
null
beta/Persist_Matriz_Work_Queue.py
jmhal/backendservice
45fd88558ff1a8838ae5b5ad7409676788c2d6c3
[ "MIT" ]
null
null
null
beta/Persist_Matriz_Work_Queue.py
jmhal/backendservice
45fd88558ff1a8838ae5b5ad7409676788c2d6c3
[ "MIT" ]
null
null
null
#!/usr/bin/python import time import zmq import sys context = zmq.Context() socket = context.socket(zmq.REQ) socket.connect("tcp://localhost:33002") if sys.argv[1] == "persist" : socket.send("persist") else : socket.send("monitor") message = socket.recv() print message
14.1
39
0.695035
39
282
5.025641
0.615385
0.132653
0
0
0
0
0
0
0
0
0
0.024793
0.141844
282
19
40
14.842105
0.785124
0.056738
0
0
0
0
0.16092
0.08046
0
0
0
0
0
0
null
null
0
0.25
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d72f629b2e53c8e3b7a1062b4dbc20a87e4fe46
356
py
Python
youtube/search.py
bdmurray/RadioFreePlaylist
3756187cd6d5e01de219a8e9b1e8cced6f9cf74a
[ "MIT" ]
2
2021-08-11T05:32:29.000Z
2021-08-11T05:32:44.000Z
youtube/search.py
bdmurray/RadioFreeYoutube
3756187cd6d5e01de219a8e9b1e8cced6f9cf74a
[ "MIT" ]
null
null
null
youtube/search.py
bdmurray/RadioFreeYoutube
3756187cd6d5e01de219a8e9b1e8cced6f9cf74a
[ "MIT" ]
null
null
null
import sys from youtubesearchpython import VideosSearch as yt_video_search def search(artist, song): try: video_search = yt_video_search(artist + ', ' + song, limit = 1) return video_search.result()['result'] except: # catch *all* exceptions e = sys.exc_info()[0] print( "<p>Erro...
32.363636
71
0.626404
46
356
4.695652
0.652174
0.203704
0.12037
0
0
0
0
0
0
0
0
0.007491
0.25
356
11
72
32.363636
0.801498
0.061798
0
0
0
0
0.072072
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0.1
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
536f351563a211148fcdf3b16f973f58256ce5ab
532
py
Python
Task/migrations/0002_auto_20211018_2138.py
IHIMEKPEN/Noteapp
e8e467aec7eb9312a361fca3c4ac6d906ee193b6
[ "MIT" ]
null
null
null
Task/migrations/0002_auto_20211018_2138.py
IHIMEKPEN/Noteapp
e8e467aec7eb9312a361fca3c4ac6d906ee193b6
[ "MIT" ]
null
null
null
Task/migrations/0002_auto_20211018_2138.py
IHIMEKPEN/Noteapp
e8e467aec7eb9312a361fca3c4ac6d906ee193b6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-18 20:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Task', '0001_initial'), ] operations = [ migrations.AddField( model_name='notes', name='title', field=mo...
22.166667
62
0.56203
55
532
5.345455
0.727273
0.061224
0.095238
0.122449
0
0
0
0
0
0
0
0.071625
0.317669
532
23
63
23.130435
0.738292
0.084586
0
0.235294
1
0
0.072165
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53713aae58f68b6a7b23929b646ae493f191107f
1,741
py
Python
python-algorithm/leetcode/problem_134.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_134.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2020-03-22T13:53:54.000Z
2020-03-23T08:49:35.000Z
python-algorithm/leetcode/problem_134.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""134. Gas Station https://leetcode.com/problems/gas-station/ Example 1: Input: gas = [1,2,3,4,5] cost = [3,4,5,1,2] -2,-2,-2,3,3 Output: 3 Example 2: Input: gas = [2,3,4] cost = [3,4,3] Output: -1 """ from typing import List class Solution: def can_complete_circuit(self, gas: List[int], cost: List...
24.180556
77
0.4417
230
1,741
3.269565
0.221739
0.079787
0.053191
0.069149
0.606383
0.49734
0.49734
0.49734
0.49734
0.414894
0
0.046392
0.442849
1,741
71
78
24.521127
0.728866
0.120046
0
0.717391
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5374277dfe05b7b6048459042575ee8ae7b2ac0f
14,574
py
Python
.archive/main_new.py
abdellaui/des_pipeline_ui
ff305e920c6fa169e1efc442fd663c8680ac8130
[ "MIT" ]
null
null
null
.archive/main_new.py
abdellaui/des_pipeline_ui
ff305e920c6fa169e1efc442fd663c8680ac8130
[ "MIT" ]
null
null
null
.archive/main_new.py
abdellaui/des_pipeline_ui
ff305e920c6fa169e1efc442fd663c8680ac8130
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_new.ui' # # Created by: PyQt5 UI code generator 5.9.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
64.773333
120
0.721971
1,527
14,574
6.767518
0.130321
0.004064
0.043352
0.047997
0.502129
0.406232
0.305206
0.284111
0.268434
0.268434
0
0.032846
0.164402
14,574
224
121
65.0625
0.815733
0.012419
0
0.136792
1
0
0.130984
0.051405
0
0
0
0
0
1
0.009434
false
0
0.009434
0
0.023585
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
5376adc33d3b54a56a63de70f549abbee3658540
1,363
py
Python
NodeDefender/manage/__init__.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
4
2016-09-23T17:51:05.000Z
2017-03-14T02:52:26.000Z
NodeDefender/manage/__init__.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
1
2016-09-22T11:32:33.000Z
2017-11-14T10:00:24.000Z
NodeDefender/manage/__init__.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
4
2016-10-09T19:05:16.000Z
2020-05-14T04:00:30.000Z
from flask_script import Manager, Command from flask_migrate import Migrate, MigrateCommand import NodeDefender from NodeDefender.manage.user import manager as UserManager from NodeDefender.manage.role import manager as RoleManager from NodeDefender.manage.group import manager as GroupManager from NodeDefender.manage.n...
34.075
63
0.796772
173
1,363
6.190751
0.265896
0.109244
0.142857
0
0
0
0
0
0
0
0
0.006601
0.110785
1,363
39
64
34.948718
0.877063
0
0
0
0
0
0.041086
0
0
0
0
0
0
1
0.060606
false
0
0.333333
0
0.393939
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
537d8b3ee17f36aa60252f622e4e79ff94a0015e
2,074
py
Python
awessome/awessome_aggregator.py
xiangyum/awessome
5717a8007b45192a19afd1ed40b079172801c33f
[ "MIT" ]
3
2021-07-06T08:54:26.000Z
2022-03-17T18:57:51.000Z
awessome/awessome_aggregator.py
xiangyum/awessome
5717a8007b45192a19afd1ed40b079172801c33f
[ "MIT" ]
null
null
null
awessome/awessome_aggregator.py
xiangyum/awessome
5717a8007b45192a19afd1ed40b079172801c33f
[ "MIT" ]
1
2022-01-12T02:48:54.000Z
2022-01-12T02:48:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 20:20:20 2020 @authors: Amal Htait and Leif Azzopardi For license information, see LICENSE.TXT """ class SentimentIntensityAggregator: """ Apply an aggregation to a list of similarity scores. """ def __init__(self): pass def agg_score(sel...
28.805556
105
0.631148
274
2,074
4.572993
0.244526
0.063847
0.03352
0.081405
0.468476
0.450918
0.428571
0.351955
0.237031
0.237031
0
0.022207
0.28351
2,074
71
106
29.211268
0.820996
0.297011
0
0.484848
0
0
0
0
0
0
0
0
0
1
0.151515
false
0.060606
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
53836d8f22c088543024ea9364b6331932acd33a
3,391
py
Python
tests/test_providers/test_hardware.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
2,619
2017-07-18T13:25:46.000Z
2022-03-31T17:52:53.000Z
tests/test_providers/test_hardware.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
947
2017-07-15T18:32:12.000Z
2022-03-28T10:04:15.000Z
tests/test_providers/test_hardware.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
328
2017-07-18T01:11:12.000Z
2022-03-30T09:20:48.000Z
# -*- coding: utf-8 -*- import re import pytest from mimesis import Hardware from mimesis.data import ( CPU, CPU_CODENAMES, CPU_MODEL_CODES, GENERATION, GRAPHICS, HDD_SSD, MANUFACTURERS, PHONE_MODELS, RAM_SIZES, RAM_TYPES, RESOLUTIONS, SCREEN_SIZES, ) from . import patt...
25.30597
63
0.636685
454
3,391
4.546256
0.134361
0.09157
0.088178
0.113372
0.396318
0.186047
0.033915
0
0
0
0
0.023052
0.258036
3,391
133
64
25.496241
0.797297
0.006193
0
0.071429
0
0
0.000297
0
0
0
0
0
0.295918
1
0.306122
false
0
0.05102
0.030612
0.408163
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
538adf8628bd4c90cd6fa0a3395b26f2ca78e62b
6,640
py
Python
blogs/views.py
AgnosticMe/phleeb
48f85048d2db5d16d243feee2f84a961682a0f4d
[ "MIT" ]
null
null
null
blogs/views.py
AgnosticMe/phleeb
48f85048d2db5d16d243feee2f84a961682a0f4d
[ "MIT" ]
null
null
null
blogs/views.py
AgnosticMe/phleeb
48f85048d2db5d16d243feee2f84a961682a0f4d
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.utils.text import slugify from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView from .models import Blog, Category, Tag from .forms import CreateCommentForm, PostCreationForm, BlogUpdateForm from django....
33.877551
103
0.643825
807
6,640
5.142503
0.148699
0.036145
0.026988
0.016867
0.593735
0.497108
0.420964
0.405542
0.359759
0.343373
0
0.004334
0.235542
6,640
195
104
34.051282
0.813239
0.003464
0
0.536913
0
0
0.052457
0.014664
0
0
0
0
0
1
0.120805
false
0
0.067114
0.020134
0.597315
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
538b087b3d9077de5cb945a0a1924b9df061ae25
9,082
py
Python
PostDiffMixture/simulations_folder/simulation_scripts/ts_ppd.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
PostDiffMixture/simulations_folder/simulation_scripts/ts_ppd.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
PostDiffMixture/simulations_folder/simulation_scripts/ts_ppd.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
import sys import csv import random import math import numpy as np from forced_actions import forced_actions from bandit_data_format import * from output_format import * from logistic_regression import * from greedy_model import * def create_headers(field_names, num_actions, outf): # Construct output column head...
44.087379
135
0.664721
1,183
9,082
4.845309
0.200338
0.023552
0.029484
0.03559
0.255059
0.208479
0.168876
0.14515
0.103629
0.082345
0
0.007895
0.260846
9,082
205
136
44.302439
0.845822
0.190487
0
0.086538
0
0
0.021496
0.011006
0
0
0
0.004878
0
0
null
null
0
0.096154
null
null
0.019231
0
0
0
null
0
0
0
0
0
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