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
1ed2ac907fbfedb11ec7c3978dc0e38575801a04
476
py
Python
libalgs-py/sorting/insertion_sort.py
tdudz/libalgs-py
9b2610de66217c0564193096702c47478de5db5e
[ "MIT" ]
null
null
null
libalgs-py/sorting/insertion_sort.py
tdudz/libalgs-py
9b2610de66217c0564193096702c47478de5db5e
[ "MIT" ]
null
null
null
libalgs-py/sorting/insertion_sort.py
tdudz/libalgs-py
9b2610de66217c0564193096702c47478de5db5e
[ "MIT" ]
null
null
null
""" Insertion Sort -------------- Builds the sorted array by inserting one at a time. Time Complexity: O(n^2) Space Complexity: O(n) Stable: Yes """ def insertion_sort(A): """ Takes a list of integers and sorts them in ascending order, then returns it. Args: A (arr): A list of integers Returns: arr: A li...
14.875
77
0.596639
88
476
3.215909
0.511364
0.028269
0.074205
0.106007
0
0
0
0
0
0
0
0.019499
0.245798
476
31
78
15.354839
0.768802
0.655462
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ed6fb3058696a7fab8ff068f87872a50fb687c5
2,001
py
Python
vespa/simulation/dialog_experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/simulation/dialog_experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/simulation/dialog_experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# Python modules # 3rd party modules import wx # Our modules import vespa.simulation.auto_gui.experiment_list as gui_experiment_list import vespa.common.wx_gravy.common_dialogs as common_dialogs import vespa.common.wx_gravy.util as wx_util #---------------------------------------------------------------------------...
32.274194
79
0.668666
245
2,001
5.342857
0.485714
0.039725
0.051948
0.02903
0.036669
0
0
0
0
0
0
0.000612
0.183908
2,001
61
80
32.803279
0.80098
0.487256
0
0
0
0
0.037849
0
0
0
0
0
0
1
0.136364
false
0
0.181818
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
0
0
0
0
1
0
1ed76eae61cc1ae67ed7991861d56ea74fb9b976
696
py
Python
Practice/Problem Solving/CutTheSticks.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Problem Solving/CutTheSticks.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Problem Solving/CutTheSticks.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the cutTheSticks function below. def cutTheSticks(arr): l = len(arr) result = [] referer = list(set(arr)) # print('array is', arr) refer = sorted(referer,reverse = True) # print('reference is', refer) lr = len...
19.333333
50
0.586207
96
696
4.166667
0.5
0.03
0.045
0.055
0
0
0
0
0
0
0
0.007828
0.265805
696
35
51
19.885714
0.774951
0.186782
0
0
0
0
0.01426
0
0
0
0
0
0
1
0.043478
false
0
0.217391
0
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eda3ffb7cd59c6c60967f92603c29ba38922e8a
5,054
py
Python
ODS - Staging - Illuminate/loadTables.py
achievementfirst/af-edfi-shared
996a201a23b56d498eee75251bb2455201c17308
[ "Apache-2.0" ]
2
2020-10-06T22:06:52.000Z
2020-12-24T17:27:48.000Z
ODS - Staging - Illuminate/loadTables.py
achievementfirst/af-edfi-shared
996a201a23b56d498eee75251bb2455201c17308
[ "Apache-2.0" ]
null
null
null
ODS - Staging - Illuminate/loadTables.py
achievementfirst/af-edfi-shared
996a201a23b56d498eee75251bb2455201c17308
[ "Apache-2.0" ]
1
2020-10-07T18:43:17.000Z
2020-10-07T18:43:17.000Z
""" Name: loadTables.py Description: Script extracts data (specific to Illuminate assessments) from the edfi ODS and loads it into the AWS Aurora db Note: The following code can be run locally or as a lambda function by converting the main function to a lambda handler. """ import argparse import configparser import...
31.197531
98
0.641472
527
5,054
6.028463
0.296015
0.069248
0.075543
0.01385
0.160529
0.139125
0.139125
0.090652
0.038401
0.038401
0
0.000797
0.255046
5,054
161
99
31.391304
0.843028
0.096953
0
0.188034
0
0
0.186118
0.062334
0
0
0
0
0
1
0.034188
false
0.017094
0.068376
0
0.136752
0.136752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eda6198db3d13f656d2b6dfb7c8f3b811602a4d
6,788
py
Python
tst/schedulers/bayesopt/gpautograd/test_gp.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
97
2021-11-18T17:14:30.000Z
2022-03-29T00:33:12.000Z
tst/schedulers/bayesopt/gpautograd/test_gp.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
54
2021-11-18T17:14:12.000Z
2022-03-22T08:11:48.000Z
tst/schedulers/bayesopt/gpautograd/test_gp.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
9
2021-11-29T11:47:32.000Z
2022-02-24T15:28:11.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
38.568182
161
0.725692
1,009
6,788
4.653122
0.199207
0.047923
0.050692
0.061342
0.612567
0.573163
0.552503
0.532907
0.444728
0.426837
0
0.02096
0.177666
6,788
175
162
38.788571
0.820136
0.289923
0
0.432692
0
0
0.001674
0
0
0
0
0
0.144231
1
0.067308
false
0
0.076923
0.028846
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
0
0
0
0
0
0
0
0
0
1
0
1edfdd935af453f5e2a4d99084ce76fa471248d6
975
py
Python
demystifying/feature_extraction/random_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
16
2020-01-04T14:46:03.000Z
2021-07-10T05:54:05.000Z
demystifying/feature_extraction/random_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
11
2020-01-10T16:18:17.000Z
2022-03-20T09:53:33.000Z
demystifying/feature_extraction/random_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
3
2020-03-16T04:35:01.000Z
2022-02-10T12:39:01.000Z
from __future__ import absolute_import, division, print_function import logging import sys logging.basicConfig( stream=sys.stdout, format='%(asctime)s %(name)s-%(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') import numpy as np from .feature_extractor import FeatureExtractor logger = logging.get...
27.857143
65
0.594872
104
975
5.413462
0.615385
0.028419
0.042629
0
0
0
0
0
0
0
0
0.005839
0.297436
975
34
66
28.676471
0.816058
0.10359
0
0
0
0
0.095858
0.027219
0
0
0
0
0
1
0.136364
false
0.045455
0.272727
0
0.5
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ee382a0125a89f5fdc7cff849261c133ebb7a31
692
py
Python
config.py
bruce30262/ghidra-dark
ee955a8afa3c4d28bdefe3db7970b762254b3411
[ "MIT" ]
null
null
null
config.py
bruce30262/ghidra-dark
ee955a8afa3c4d28bdefe3db7970b762254b3411
[ "MIT" ]
null
null
null
config.py
bruce30262/ghidra-dark
ee955a8afa3c4d28bdefe3db7970b762254b3411
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import yaml """ Get flatlaf config """ flatlaf_version, flatlaf_style = None, None font_decomp, font_ld = {}, {} try: with open("config.yml", "r") as f: config = yaml.load(f, Loader=yaml.FullLoader) flatlaf_version = config['flatlaf']['version'] flatlaf_style = confi...
30.086957
140
0.66185
90
692
4.977778
0.566667
0.087054
0.089286
0.120536
0.142857
0
0
0
0
0
0
0.005405
0.197977
692
22
141
31.454545
0.801802
0.030347
0
0.117647
0
0.058824
0.286159
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
0
0
0
0
0
1
0
1ee51c35bc679d160d7d39ce6956fbb88b6ed8ad
1,531
py
Python
2015/solutions/20.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
2015/solutions/20.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
2015/solutions/20.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
"""Advent of Code 2015: Day 20""" from itertools import count from typing import Callable, List def get_factors(n: int) -> List[int]: divisors = [] sqrt = int(n ** 0.5) + 1 for i in range(1, sqrt): if n % i == 0: divisors.append(i) divisors.append(n // i) return diviso...
24.301587
84
0.606793
214
1,531
4.116822
0.32243
0.102157
0.051078
0.036322
0.224745
0.186152
0.186152
0.186152
0.106697
0.106697
0
0.027347
0.283475
1,531
62
85
24.693548
0.775752
0.028086
0
0.047619
0
0
0.036437
0
0
0
0
0
0
1
0.166667
false
0
0.047619
0
0.357143
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ee540097c32429348fbeb504278fb986bd3a9e7
1,864
py
Python
python/examples/bert/test_multi_fetch_client.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
789
2019-04-05T09:20:46.000Z
2022-03-31T13:43:54.000Z
python/examples/bert/test_multi_fetch_client.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
1,195
2019-04-08T10:05:28.000Z
2022-03-31T03:43:42.000Z
python/examples/bert/test_multi_fetch_client.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
229
2019-04-05T09:20:57.000Z
2022-03-30T06:21:22.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.518519
77
0.67221
269
1,864
4.513011
0.464684
0.049423
0.021417
0.026359
0.093904
0.067545
0.067545
0.067545
0.067545
0.067545
0
0.036961
0.216202
1,864
53
78
35.169811
0.793977
0.312768
0
0.055556
0
0
0.132597
0.037885
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
948fa3226659c8d5d08bc6395c25891bde4c906c
23,434
py
Python
gs_quant/markets/core.py
alexanu/gs-quant
fbb8d88d570aee545ed3a8601d9052c281ecca19
[ "Apache-2.0" ]
1
2020-05-18T02:09:39.000Z
2020-05-18T02:09:39.000Z
gs_quant/markets/core.py
atefar2/gs-quant
d31ae3204d5421861897bac49383bc213d5497a2
[ "Apache-2.0" ]
null
null
null
gs_quant/markets/core.py
atefar2/gs-quant
d31ae3204d5421861897bac49383bc213d5497a2
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
41.996416
120
0.622856
2,605
23,434
5.312476
0.161612
0.024568
0.013874
0.016186
0.226606
0.158321
0.119084
0.113158
0.086856
0.063516
0
0.003184
0.303064
23,434
557
121
42.071813
0.844171
0.192242
0
0.233618
0
0
0.017491
0
0
0
0
0.001795
0
1
0.091168
false
0
0.048433
0.011396
0.245014
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
949348fb8fb9c95b02cdfcf92957d20bc4c5574a
898
py
Python
tests/test_c_evluater.py
jiamo/pcc
fde1173e3ba81a41b4f901780711cffb7934107e
[ "Unlicense" ]
4
2018-06-20T16:32:30.000Z
2018-09-15T15:12:38.000Z
tests/test_c_evluater.py
jiamo/pcc
fde1173e3ba81a41b4f901780711cffb7934107e
[ "Unlicense" ]
5
2018-05-19T08:35:06.000Z
2021-10-13T05:23:57.000Z
tests/test_c_evluater.py
jiamo/pcc
fde1173e3ba81a41b4f901780711cffb7934107e
[ "Unlicense" ]
null
null
null
import sys import os this_dir = os.path.dirname(__file__) parent_dir = os.path.dirname(this_dir) sys.path.insert(0, parent_dir) from pcc.evaluater.c_evaluator import CEvaluator import unittest import unittest class TestCevluatar(unittest.TestCase): def test_simple(self): pcc = CEvaluator() # k...
21.902439
49
0.544543
111
898
4.171171
0.513514
0.030238
0.038877
0.069114
0
0
0
0
0
0
0
0.008403
0.337416
898
40
50
22.45
0.769748
0.172606
0
0.08
0
0
0.328358
0
0
0
0
0
0.04
1
0.04
false
0
0.2
0
0.36
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9499935e046ef24294dc0f8b1d160b07bb4cedd9
15,621
py
Python
tests/datasets/test_mnist.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
23
2017-09-20T19:23:26.000Z
2022-01-09T16:18:11.000Z
tests/datasets/test_mnist.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
148
2017-07-23T14:28:28.000Z
2022-01-13T00:35:17.000Z
tests/datasets/test_mnist.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
6
2018-01-12T15:47:57.000Z
2021-02-09T06:32:39.000Z
""" Test the base classes for managing datasets and tasks. """ import os import sys import pytest import numpy as np from numpy.testing import assert_array_equal from dbcollection.utils.string_ascii import convert_str_to_ascii as str2ascii from dbcollection.utils.pad import pad_list from dbcollection.datasets.mnist....
39.150376
151
0.679534
2,014
15,621
4.90715
0.077458
0.031165
0.048164
0.056663
0.57948
0.449256
0.34271
0.301022
0.260852
0.245674
0
0.02042
0.209974
15,621
398
152
39.248744
0.780407
0.115101
0
0.177419
0
0
0.06877
0.012821
0
0
0
0
0.245968
1
0.129032
false
0
0.032258
0.040323
0.237903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9499bf696b293047856ed9f2ec46e452e8a7ad7f
669
py
Python
apps/stringbyte/stringbyte.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
22
2015-06-03T06:28:27.000Z
2022-03-18T08:02:45.000Z
apps/stringbyte/stringbyte.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
14
2015-06-08T01:31:53.000Z
2020-08-30T02:19:15.000Z
apps/stringbyte/stringbyte.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
26
2015-05-12T09:33:55.000Z
2021-08-30T05:41:00.000Z
# -*- coding: utf-8 -*- # Author : Jeonghoonkang, github.com/jeonghoonkang hexstr = '123456' # 1) [ for ... ] hlist = [hexstr[i:i+2] for i in range(0,len(hexstr),2)] #2) re.findall hlist = re.findall(r'..',hexstr) #3) map, zip, iter 이용 hlist = map(''.join, zip(*[iter(hexstr)]*2)) ''' iter(hxstr) 는 글자 하나씩 가져오는 이터레...
23.068966
55
0.566517
129
669
2.937985
0.635659
0.021108
0.023747
0.021108
0
0
0
0
0
0
0
0.049091
0.177877
669
28
56
23.892857
0.64
0.176383
0
0
0
0
0.04878
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
949b48cef09179339869e0e0e398444e8cad808f
3,383
py
Python
coronastat/utils.py
theNocturnalGuy/coronastat
a5f6ee1ad59a709c48f18d09413ba89b39572b97
[ "MIT" ]
1
2020-07-29T21:05:20.000Z
2020-07-29T21:05:20.000Z
coronastat/utils.py
thenocturnalguy/coronastat
a5f6ee1ad59a709c48f18d09413ba89b39572b97
[ "MIT" ]
null
null
null
coronastat/utils.py
thenocturnalguy/coronastat
a5f6ee1ad59a709c48f18d09413ba89b39572b97
[ "MIT" ]
null
null
null
########### IMPORTING THE REQURIED LIBRARIES ########### from __future__ import print_function from terminaltables import AsciiTable import sys, time ########## DECLARING THE GLOBAL VARIABLES ############# WORLD_URL = "https://www.worldometers.info/coronavirus" INDIA_URL = "https://www.mohfw.gov.in/" MAX_TIMEOUT = 3...
31.324074
111
0.514336
390
3,383
5.482051
0.446154
0.016838
0.021048
0.03508
0.297474
0.284378
0.284378
0.284378
0.284378
0.284378
0
0.022313
0.205143
3,383
108
112
31.324074
0.620305
0.080106
0
0.211268
0
0.028169
0.339482
0
0
0
0
0
0
1
0.084507
false
0
0.042254
0
0.309859
0.211268
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
949c67ffc18b5f1e8255608fad78da04a4deef69
4,744
py
Python
host/function/send_files.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
2
2020-04-15T11:20:59.000Z
2021-05-12T13:01:36.000Z
host/function/send_files.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-06-05T04:48:56.000Z
2018-06-05T04:48:56.000Z
host/function/send_files.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-08-15T06:45:46.000Z
2018-08-15T06:45:46.000Z
import os import shutil from stat import S_ISDIR from datetime import datetime from common_util import Error, Success from host.util import mylog from messages import HostFileTransferMessage __author__ = 'Mike' def send_tree(db, other_id, cloud, requested_root, connection): """ Note: This can't be used to ...
34.376812
99
0.638702
614
4,744
4.672638
0.275244
0.029278
0.037644
0.020913
0.278843
0.210178
0.194493
0.11328
0.070408
0.0481
0
0.002577
0.263912
4,744
137
100
34.627737
0.819015
0.194983
0
0.213483
0
0
0.054293
0
0
0
0
0.007299
0
1
0.044944
false
0
0.078652
0
0.134831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
949ea06e98739eef69309f8bebfeb873270bebd7
795
py
Python
mrobpy/tests/point_cloud_test.py
miloserdova-l/mrob
48bef772ba3158d2122991069196d6efd4a39f8c
[ "Apache-2.0" ]
12
2020-09-22T15:33:48.000Z
2022-03-02T17:27:39.000Z
mrobpy/tests/point_cloud_test.py
MobileRoboticsSkoltech/mrob
7668a3ee35345c4878aa86fff082cc017992d205
[ "Apache-2.0" ]
46
2020-09-22T15:47:08.000Z
2022-01-22T10:56:44.000Z
mrobpy/tests/point_cloud_test.py
MobileRoboticsSkoltech/mrob
7668a3ee35345c4878aa86fff082cc017992d205
[ "Apache-2.0" ]
9
2020-09-22T15:59:33.000Z
2021-12-20T20:15:16.000Z
import numpy as np import mrob import pytest class TestPointCloud: def test_point_cloud_registration(self): # example equal to ./PC_alignment/examples/example_align.cpp # generate random data N = 500 X = np.random.rand(N,3) T = mrob.geometry.SE3(np.random.rand(6)) ...
28.392857
68
0.583648
122
795
3.704918
0.42623
0.022124
0.053097
0.070796
0.137168
0.137168
0.137168
0.137168
0.137168
0.137168
0
0.010187
0.25912
795
27
69
29.444444
0.757216
0.122013
0
0
0
0
0.115274
0
0
0
0
0
0.117647
1
0.058824
false
0
0.176471
0
0.294118
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
949f8b0b268ad53be3b2e03a7886ed9475f6d1c0
1,698
py
Python
src/pyams_utils/attr.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/attr.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/attr.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
33.96
98
0.732627
230
1,698
5.369565
0.556522
0.012146
0.022672
0.017814
0.02753
0
0
0
0
0
0
0.008734
0.190813
1,698
49
99
34.653061
0.890102
0.603651
0
0
0
0
0.035256
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a23063115af6a9b0dee607fd43ac955b2fab32
794
py
Python
examples/tutorials/tutorial_1.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/tutorials/tutorial_1.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/tutorials/tutorial_1.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
import sys sys.path.append("../../") from appJar import gui count = 0 def press(btn): global count count += 1 app.setLabel("title", "Count=" + str(count)) if btn == "PRESS": app.setFg("white") app.setBg("green") elif btn == "PRESS ME TOO": app.setFg("green") app.se...
20.358974
59
0.596977
116
794
4.086207
0.474138
0.067511
0.107595
0.059072
0.101266
0
0
0
0
0
0
0.013008
0.225441
794
38
60
20.894737
0.757724
0
0
0
0
0
0.265743
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a3721f1a6e647e0a04fb6c974da5b5a1d53263
2,024
py
Python
Hash Table/811. Subdomain Visit Count.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Hash Table/811. Subdomain Visit Count.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Hash Table/811. Subdomain Visit Count.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 811. Subdomain Visit Count Example 1: Input: ["9001 discuss.leetcode.com"] Output: ["9001 discuss.leetcode.com", "9001 leetcode.com", "9001 com"] Explanation: We only have one website domain: "discuss.leetcode.com". As discussed above, the subdomain "leetcode.com" and "com" will also be visited. So the...
36.142857
228
0.552372
261
2,024
4.283525
0.337165
0.050089
0.048301
0.039356
0.26297
0.205725
0.205725
0.135957
0.135957
0.135957
0
0.050978
0.29249
2,024
56
229
36.142857
0.729749
0.467391
0
0.24
0
0
0.012592
0
0
0
0
0
0
1
0.08
false
0
0
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a6826e247a30c899f1dfbebb5660a35c3394dc
1,523
py
Python
src/control_single.py
RidgeX/zenwheels-python
83804281f09bb1b3947715f11bd61611283cfc14
[ "MIT" ]
2
2017-08-11T05:17:59.000Z
2018-02-19T06:29:25.000Z
src/control_single.py
RidgeX/zenwheels-python
83804281f09bb1b3947715f11bd61611283cfc14
[ "MIT" ]
null
null
null
src/control_single.py
RidgeX/zenwheels-python
83804281f09bb1b3947715f11bd61611283cfc14
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from bluetooth import * from protocol import * import sys import threading def chunks(l, n): """ Yield successive n-sized chunks from l. """ for i in range(0, len(l), n): yield l[i:i + n] # MAC address to connect to address = '00:06:66:61:AC:9E' # MicroCar-58 # Whether the processing...
22.397059
64
0.621799
212
1,523
4.386792
0.509434
0.016129
0.080645
0.074194
0.070968
0
0
0
0
0
0
0.031814
0.236376
1,523
67
65
22.731343
0.767842
0.16415
0
0
0
0
0.055112
0
0
0
0.008786
0
0
1
0.066667
false
0.022222
0.088889
0
0.155556
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a709bea76252538506a491da154f22aa286fe8
15,383
py
Python
analysis/202102--dither_pattern_ghost/13_removal_test.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
analysis/202102--dither_pattern_ghost/13_removal_test.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
analysis/202102--dither_pattern_ghost/13_removal_test.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Attempt removal of fading residual ghost image from image set. # # Rob Siverd # Created: 2021-02-16 # Last modified: 2021-02-16 #-------------------------------------------------------------------------- #**************************...
37.703431
79
0.593512
1,882
15,383
4.72848
0.333688
0.025958
0.026745
0.004944
0.150803
0.112035
0.090909
0.077424
0.046634
0.041802
0
0.018887
0.149841
15,383
407
80
37.796069
0.661569
0.755249
0
0.095745
0
0
0.125263
0.00781
0
0
0
0
0
1
0.010638
false
0
0.170213
0
0.180851
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a7c591d47067f6549e87406e4215a9225d03db
647
py
Python
fsu/__main__.py
jamesabel/fsu
652e9f37a83e4df545dc785ea807c818ee04104a
[ "MIT" ]
null
null
null
fsu/__main__.py
jamesabel/fsu
652e9f37a83e4df545dc785ea807c818ee04104a
[ "MIT" ]
null
null
null
fsu/__main__.py
jamesabel/fsu
652e9f37a83e4df545dc785ea807c818ee04104a
[ "MIT" ]
null
null
null
import os import argparse from fsu import __application_name__, longest_path, longest_path_command def fsu(): parser = argparse.ArgumentParser(prog=__application_name__) parser.add_argument("-c", "--command", required=True, help="commands: {longest_path_command}") parser.add_argument("-p", "--path", help...
28.130435
98
0.658423
87
647
4.563218
0.45977
0.138539
0.13602
0
0
0
0
0
0
0
0
0
0.194745
647
22
99
29.409091
0.761996
0
0
0
0
0
0.204019
0.034003
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94a92c7220f442afdf93bb1104fa4c59061bf49f
3,914
py
Python
authors/apps/follows/views.py
andela/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
1
2019-12-25T18:59:34.000Z
2019-12-25T18:59:34.000Z
authors/apps/follows/views.py
katherine95/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
26
2019-04-23T11:20:35.000Z
2022-03-11T23:45:54.000Z
authors/apps/follows/views.py
katherine95/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
8
2019-05-21T06:54:34.000Z
2019-11-18T19:45:22.000Z
from django.shortcuts import render from rest_framework import status from rest_framework.generics import ( RetrieveAPIView, CreateAPIView, DestroyAPIView) from rest_framework.response import Response from .models import UserFollow from .utils import Utilities from .serializers import FollowsSerializer, FollowersS...
26.268456
70
0.645631
365
3,914
6.79726
0.189041
0.053204
0.051592
0.048368
0.653366
0.546957
0.495768
0.495768
0.421604
0.371624
0
0.004171
0.264946
3,914
148
71
26.445946
0.858186
0.057486
0
0.526316
0
0
0.021101
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ad6a21c0e36974f4e1b9968bd669337deebb18
3,987
py
Python
server.py
Chase-Warwick/CMPUT404-Assignment-1
b224c13309879d4894616267f396494ad37d1a9d
[ "Apache-2.0" ]
null
null
null
server.py
Chase-Warwick/CMPUT404-Assignment-1
b224c13309879d4894616267f396494ad37d1a9d
[ "Apache-2.0" ]
null
null
null
server.py
Chase-Warwick/CMPUT404-Assignment-1
b224c13309879d4894616267f396494ad37d1a9d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import socketserver import os from HTTP_Parser import HTTP_Parser # Copyright 2013 Abram Hindle, Eddie Antonio Santos, Chase Warwick # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
34.669565
127
0.651618
526
3,987
4.836502
0.38403
0.055031
0.060535
0.040094
0.241745
0.241745
0.155267
0.123035
0.105346
0.105346
0
0.028513
0.261099
3,987
114
128
34.973684
0.834691
0.365438
0
0.294118
0
0
0.120985
0
0
0
0
0
0
1
0.078431
false
0
0.058824
0
0.333333
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ae2a18c46e0824f96fd46435cacfc8f3b0d962
3,542
py
Python
polire/interpolate/idw/idw.py
patel-zeel/ALdeploy
58212209c4b495db471ada0fd695eab38e2acfe8
[ "BSD-3-Clause" ]
null
null
null
polire/interpolate/idw/idw.py
patel-zeel/ALdeploy
58212209c4b495db471ada0fd695eab38e2acfe8
[ "BSD-3-Clause" ]
null
null
null
polire/interpolate/idw/idw.py
patel-zeel/ALdeploy
58212209c4b495db471ada0fd695eab38e2acfe8
[ "BSD-3-Clause" ]
null
null
null
r""" This is a module for IDW Spatial Interpolation """ import numpy as np from ...utils.distance import haversine, euclidean from ..base import Base from copy import deepcopy def is_row_in_array(row, arr): return list(row) in arr.tolist() def get_index(row, arr): t1 = np.where(arr[:, 0] == row[0]) t2 =...
34.057692
106
0.627329
464
3,542
4.717672
0.357759
0.015989
0.010964
0.015075
0.068524
0
0
0
0
0
0
0.014769
0.273574
3,542
103
107
34.38835
0.835989
0.398645
0
0.04
0
0
0.046452
0
0
0
0
0
0
1
0.12
false
0
0.08
0.02
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ae725011a08e4c8517cf30bebcb0c980693e6f
306
py
Python
rucken_todo/helpers/jwt_utils.py
site15/rucken-todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
3
2018-06-04T07:36:59.000Z
2019-10-07T05:33:56.000Z
rucken_todo/helpers/jwt_utils.py
site15/rucken-todo-django-example
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
428
2017-11-24T20:19:39.000Z
2022-03-26T04:13:25.000Z
rucken_todo/helpers/jwt_utils.py
rucken/todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from rucken_todo.serializers import AccountSerializer def jwt_response_payload_handler(token, user=None, request=None): user_info = AccountSerializer(user, context={'request': request}) return { 'token': token, 'user': user_info.data }
27.818182
69
0.732026
35
306
6.085714
0.628571
0.084507
0
0
0
0
0
0
0
0
0
0
0.176471
306
10
70
30.6
0.845238
0
0
0
0
0
0.052288
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ae9dc93f1afd0836d68bb47efd279b23b7bf97
4,464
py
Python
Bitrate/bitrate_api.py
AnirudhJanagam/Applied-Network-Management
95ceac895976ef55dd1889660920de70d1f53012
[ "Apache-2.0" ]
1
2021-01-21T06:15:29.000Z
2021-01-21T06:15:29.000Z
Bitrate/bitrate_api.py
AnirudhJanagam/Applied-Network-Management
95ceac895976ef55dd1889660920de70d1f53012
[ "Apache-2.0" ]
null
null
null
Bitrate/bitrate_api.py
AnirudhJanagam/Applied-Network-Management
95ceac895976ef55dd1889660920de70d1f53012
[ "Apache-2.0" ]
null
null
null
import os, sys import subprocess from subprocess import Popen from bitrate_db import influx from flask import Flask from flask import request, Response, make_response from functools import wraps import threading from threading import Thread dpmi = Flask(__name__) interface="ens4" directory="/home/ajheartnett/consume...
25.363636
144
0.691084
627
4,464
4.861244
0.236045
0.034449
0.041339
0.052493
0.221785
0.168963
0.156496
0.12664
0.076115
0.076115
0
0.0034
0.143593
4,464
175
145
25.508571
0.793879
0
0
0.214815
0
0.022222
0.255152
0.03181
0
0
0
0
0
1
0.074074
false
0.02963
0.066667
0
0.281481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94af70908d2b3dd85709ae398d03903d5cfe364f
3,438
py
Python
tutorials/ot-oti-find-tree.py
mtholder/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
6
2015-01-11T06:24:38.000Z
2017-11-23T17:18:12.000Z
tutorials/ot-oti-find-tree.py
OpenTreeOfLife/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
60
2015-01-09T10:30:58.000Z
2020-05-20T17:08:36.000Z
tutorials/ot-oti-find-tree.py
OpenTreeOfLife/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
3
2015-09-03T15:29:00.000Z
2015-10-08T20:03:30.000Z
#!/usr/bin/env python from __future__ import print_function '''Simple command-line tool that wraps OTI to get trees for an argument which is a property value pair e.g. python ot-oti-find-tree.py '{"ot:ottTaxonName": "Bos"}' which is described at https://github.com/OpenTreeOfLife/opentree/wiki/Open-Tree-of-Life-...
45.236842
159
0.670157
482
3,438
4.643154
0.356846
0.031278
0.02681
0.032172
0.154156
0.133155
0.071492
0.035746
0
0
0
0.000377
0.228621
3,438
75
160
45.84
0.843514
0.213496
0
0.040816
0
0
0.198821
0
0
0
0
0
0
1
0.061224
false
0
0.122449
0
0.204082
0.102041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94af9687241b62e54f2ba2743065ae7f38faf540
5,817
py
Python
negmgan/model_Imeans.py
junzhuang-code/NEGMGAN
aae8912cf03e3590abc81f66a255b891cee4443d
[ "MIT" ]
null
null
null
negmgan/model_Imeans.py
junzhuang-code/NEGMGAN
aae8912cf03e3590abc81f66a255b891cee4443d
[ "MIT" ]
null
null
null
negmgan/model_Imeans.py
junzhuang-code/NEGMGAN
aae8912cf03e3590abc81f66a255b891cee4443d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @title: Non-Exhaustive Gaussian Mixture Generative Adversarial Networks (NE-GM-GAN) @topic: I-means Model @author: Jun Zhuang, Mohammad Al Hasan @ref: https://math.stackexchange.com/questions/20593/calculate-variance-from-a-stream-of-sample-values """ import numpy...
48.882353
121
0.552347
882
5,817
3.52381
0.240363
0.029279
0.022523
0.021236
0.151223
0.098777
0.064672
0.048263
0.007079
0
0
0.022424
0.31769
5,817
118
122
49.29661
0.760393
0.413959
0
0.1
0
0
0.066154
0
0
0
0
0
0
1
0.042857
false
0
0.028571
0
0.142857
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94b2972116bf954df018e058f59806dfa116f612
9,733
py
Python
board.py
jimages/Surakarta-AI-Core
6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06
[ "MIT" ]
1
2021-01-04T12:08:29.000Z
2021-01-04T12:08:29.000Z
board.py
jimages/Surakarta-AI-Core
6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06
[ "MIT" ]
null
null
null
board.py
jimages/Surakarta-AI-Core
6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06
[ "MIT" ]
null
null
null
from status import Chess, GameStatus, Direction class Action(object): def __init__(self, x, y, eat_pos=None, direction=None): self.x = x self.y = y if direction is not None: self.is_move = True self.direction = direction self.to_x = None self...
32.228477
115
0.494606
1,248
9,733
3.642628
0.107372
0.017598
0.052794
0.027717
0.375715
0.284866
0.24593
0.199956
0.16894
0.16894
0
0.017279
0.393507
9,733
301
116
32.335548
0.752838
0.059797
0
0.285088
0
0
0.008931
0
0
0
0
0
0
1
0.092105
false
0
0.004386
0
0.285088
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94b31dcd01a9c5b2acc1e8e7cd78ecaf4e1b79f0
1,422
py
Python
plotting/plot_seed_variation/prepare_data_for_r.py
kienpt/site_discovery_public
61440a8400bcc018c4dd9f8d2a810971ef548d8e
[ "Apache-1.1" ]
4
2020-10-12T14:26:36.000Z
2021-08-19T17:26:00.000Z
plotting/plot_seed_variation/prepare_data_for_r.py
kienpt/site_discovery_public
61440a8400bcc018c4dd9f8d2a810971ef548d8e
[ "Apache-1.1" ]
null
null
null
plotting/plot_seed_variation/prepare_data_for_r.py
kienpt/site_discovery_public
61440a8400bcc018c4dd9f8d2a810971ef548d8e
[ "Apache-1.1" ]
null
null
null
import argparse import sys def get_precision_values(input_file): seednumbs = [] precs = [] with open(input_file) as lines: for line in lines: if "RESULTS_SEEDNUMB" in line: values = line.strip().split() seednumbs.append(str(values[1])) if "RES...
33.069767
100
0.600563
175
1,422
4.742857
0.405714
0.043373
0.081928
0.057831
0.086747
0
0
0
0
0
0
0.003683
0.236287
1,422
42
101
33.857143
0.760589
0.068917
0
0
0
0
0.115064
0
0
0
0
0
0
1
0.09375
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94b49b9436654c2b1de48f28ac3c2c9ba73a4771
722
py
Python
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" 출처: https://yabmoons.tistory.com/450 """ import sys N = int(sys.stdin.readline()) M = [ list(map(int, sys.stdin.readline().rstrip())) for _ in range(N) ] def DFS(x, y, size): color = M[x][y] for i in range(x, x + size): for j in range(y, y + size): if color != M[i][j]: ...
21.878788
67
0.409972
102
722
2.892157
0.343137
0.135593
0.081356
0.091525
0.20339
0.118644
0.118644
0.118644
0.118644
0
0
0.036866
0.398892
722
32
68
22.5625
0.642857
0.049862
0
0.125
0
0
0.00295
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.208333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94b81133f944f81c4a396de00a4f4cef01d9f74a
3,760
py
Python
prep/make_database.py
radinformatics/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
1
2017-05-24T15:14:39.000Z
2017-05-24T15:14:39.000Z
prep/make_database.py
vsoch/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
null
null
null
prep/make_database.py
vsoch/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
null
null
null
from glob import glob import os import shutil import simplejson import xmltodict pwd = os.getcwd() output_dir = "%s/collection" %(pwd) if not os.path.exists(output_dir): os.mkdir(output_dir) cookies = glob("%s/matched/img/*.png" %(pwd)) def read_xml(xml_file): '''read_xml reads an xml file and returns a ...
31.333333
90
0.647606
495
3,760
4.761616
0.242424
0.033093
0.056003
0.074671
0.247773
0.171404
0.095885
0.033941
0
0
0
0.003053
0.215957
3,760
119
91
31.596639
0.796472
0.14016
0
0.142857
0
0
0.127364
0.014187
0
0
0
0
0
1
0.064935
false
0
0.064935
0
0.194805
0.025974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94bd39f7b280d5e41bc80e6c9d2c2a8db8614c19
4,103
py
Python
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
import numpy as np # import matplotlib.pyplot as plt import astropy.table as at import astropy.units as u import astropy.coordinates as coord import astropy.constants as const import astropy.time as atime import scipy.ndimage as ndimage import numpy.polynomial as polynomial # import jabble.model as wobble_model impor...
30.169118
97
0.61126
647
4,103
3.751159
0.248841
0.025958
0.023074
0.011125
0.155748
0.132674
0.132674
0.132674
0.106304
0.106304
0
0.016922
0.251036
4,103
135
98
30.392593
0.77286
0.021204
0
0.074766
0
0
0.018449
0
0
0
0
0
0
1
0.121495
false
0
0.084112
0.028037
0.336449
0.028037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94c1134d670b16674cc4abd8161470411f0363bf
660
py
Python
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2020, All Rights Reserved # -*- coding: utf-8 -*- from django.db import migrations def forward(apps, schema_editor): DocTagName = apps.get_model('name','DocTagName') DocTagName.objects.get_or_create(slug='verified-errata', name='Has verified errata', desc='', used=True, order=0) d...
27.5
117
0.7
75
660
6.066667
0.626667
0.092308
0.07033
0.114286
0.303297
0.303297
0.303297
0.303297
0.303297
0.303297
0
0.018083
0.162121
660
23
118
28.695652
0.804702
0.109091
0
0.142857
0
0
0.186325
0.047863
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94c275106d2338f72c37c61390adc86cd0cf7bba
3,635
py
Python
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
1
2021-03-04T16:23:02.000Z
2021-03-04T16:23:02.000Z
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
null
null
null
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
null
null
null
import morle.algorithms.fst as FST from morle.datastruct.lexicon import LexiconEntry from morle.datastruct.rules import Rule from morle.utils.files import file_exists, read_tsv_file import morle.shared as shared import hfst import logging import math from operator import itemgetter from typing import List, Tuple # T...
35.990099
81
0.638514
432
3,635
5.210648
0.268519
0.05331
0.019547
0.037317
0.268769
0.182586
0.123501
0.063083
0.063083
0.063083
0
0.002537
0.24099
3,635
100
82
36.35
0.813338
0.126272
0
0.138889
0
0
0.095735
0
0
0
0
0.01
0
1
0.083333
false
0
0.138889
0
0.291667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94c29179afdca3ff89eaa0d1a46d602e67dacea5
1,214
py
Python
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
import requests import os import json db_url = os.getenv('REPLIT_DB_URL') def set(key, val, type='string'): try: if (type == 'string'): return requests.post(db_url, data = { key: val }) if (type == 'json'): return requests.post(db_url, data = { key: json.dumps(val)}) except: return({'error...
28.232558
96
0.632619
178
1,214
4.258427
0.320225
0.046174
0.08971
0.126649
0.474934
0.348285
0.306069
0.226913
0.226913
0
0
0.006283
0.213344
1,214
43
97
28.232558
0.787435
0.078254
0
0.285714
0
0
0.306228
0
0
0
0
0
0
1
0.114286
false
0
0.085714
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ce46151c1716825bf8cd7802cd6c9c77ce147e
1,640
py
Python
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from rest_framework import generics from .models import MyUser from .forms.forms import UserRegisterForm, UpdateUserForm def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) if form.is_valid(): ...
27.333333
101
0.629268
190
1,640
5.336842
0.405263
0.024655
0.074951
0.056213
0.051282
0
0
0
0
0
0
0.005013
0.270122
1,640
60
102
27.333333
0.842105
0.143902
0
0.166667
0
0
0.09957
0.055158
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94d29e2296f9233cdb585fa571d29d93761c5b3a
626
py
Python
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
import os def pytest_configure(config: dict) -> None: setup() def setup() -> None: os.environ['AIRFLOW_API_ROOT_URL'] = 'http://test-airflow/api/experimental/' os.environ['API_DATABASE_URL'] = 'postgres://postgres:postgres@postgres:5432/postgres' os.environ['S3_ENDPOINT_URL'] = 'http://localhost:50...
31.3
90
0.693291
83
626
5
0.46988
0.173494
0.106024
0.086747
0
0
0
0
0
0
0
0.02925
0.126198
626
19
91
32.947368
0.729433
0
0
0
0
0
0.543131
0.215655
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94d7d35515c333dfd9a0474a1d86a98db0e415bf
3,259
py
Python
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
from lxml import html, etree from requests import get from urllib.parse import unquote agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' def getSy...
36.617978
230
0.567659
474
3,259
3.896624
0.251055
0.01516
0.051976
0.068219
0.656199
0.645371
0.59177
0.552788
0.505143
0.45425
0
0.080816
0.248236
3,259
88
231
37.034091
0.673061
0
0
0.533333
0
0.08
0.30807
0.074563
0
0
0
0
0
1
0.08
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94dac3b4eafe4e1f3cf44a39e7110d561f9e7e30
17,728
py
Python
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
# Code by Lachlan Marnoch, 2018 import numpy as np import matplotlib.pyplot as plt # import math as m from astropy import wcs from astropy.coordinates import SkyCoord from astropy.io import fits import random as r def sub_stars(condition): subtract = np.zeros(len(B), dtype=bool) # Set seed for replicability ...
32.52844
119
0.668152
3,189
17,728
3.566008
0.133898
0.013366
0.027436
0.028579
0.402656
0.360359
0.259585
0.215529
0.146676
0.12821
0
0.06304
0.157096
17,728
544
120
32.588235
0.697986
0.203012
0
0.132432
0
0
0.153644
0
0
0
0
0
0
1
0.018919
false
0
0.018919
0.005405
0.045946
0.078378
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ddbc269422cd58ff07684a2795facf93d242e3
449
py
Python
rpi_object_detection_opencv_python/picamera/camera.py
altanai/Ramudroid
7594ccad895871dc52ed636b23ab18d7030ec679
[ "MIT" ]
15
2019-07-23T01:47:56.000Z
2021-12-14T22:51:33.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
4
2019-11-17T12:32:45.000Z
2021-12-13T20:19:00.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
6
2019-07-23T01:48:03.000Z
2022-03-03T03:28:24.000Z
from picamera import PiCamera from time import sleep camera = PiCamera() # preview # camera.start_preview() # sleep(5) # camera.stop_preview() # take 5 pics camera.start_preview() for i in range(5): sleep(5) camera.capture('/home/pi/Desktop/image%s.jpg' % i) camera.stop_preview() # video record # camera.sta...
19.521739
55
0.726058
65
449
4.892308
0.415385
0.138365
0.169811
0.100629
0
0
0
0
0
0
0
0.020408
0.126949
449
23
56
19.521739
0.790816
0.485523
0
0
0
0
0.127273
0.127273
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94e12cd9710f6c79b7d5368f138b150067c7b158
6,314
py
Python
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
import json import logging import discord import requests from discord.ext import commands logger = logging.getLogger(__name__) class search(commands.Cog): """Search commands for various websites""" def __init__(self, bot): self.bot = bot @commands.command() async def urban(self, ctx, *, t...
32.885417
92
0.509819
582
6,314
5.489691
0.254296
0.027543
0.044757
0.058529
0.661033
0.634116
0.556495
0.510172
0.459468
0.396244
0
0.003504
0.367279
6,314
191
93
33.057592
0.796245
0.076497
0
0.496644
0
0
0.310525
0.007331
0
0
0
0
0
1
0.013423
false
0
0.033557
0
0.053691
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94e46dab588b249b888b14d393509caa3e2c7213
1,042
py
Python
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from collections import deque def pilingUp(q): if len(d) > 1: value = "Yes" currentEl = 0 if d[0] > d[-1]: currentEl = d[0] d.popleft() else: currentEl = d[-1] d.pop() for _ in range(len(d) - 1): ...
22.170213
50
0.432821
125
1,042
3.496
0.424
0.02746
0.020595
0.022883
0.02746
0
0
0
0
0
0
0.02087
0.448177
1,042
46
51
22.652174
0.73913
0.099808
0
0.285714
0
0
0.017167
0
0
0
0
0
0
1
0.028571
false
0
0.028571
0
0.085714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94e47510d912939867b8bf4137069b8df856ea63
12,864
py
Python
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
""" Redoes what was originally PyDVR but in the _right_ way using proper subclassing and abstract properties """ import abc, numpy as np, scipy.sparse as sp, scipy.interpolate as interp from McUtils.Data import UnitsData __all__ = ["BaseDVR", "DVRResults", "DVRException"] class BaseDVR(metaclass=abc.ABCMeta): "...
32.900256
125
0.54773
1,438
12,864
4.776078
0.196106
0.041497
0.010483
0.012231
0.194962
0.139633
0.112842
0.082266
0.059843
0.052708
0
0.006977
0.364894
12,864
390
126
32.984615
0.83366
0.189366
0
0.3
0
0.004167
0.054721
0
0
0
0
0.002564
0
1
0.0625
false
0
0.020833
0
0.170833
0.004167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94e54ce08093f7eeec968430ff2c16c5e73a50b8
3,802
py
Python
Weight-Converter-GUI/weight_con_gui.py
avinashkranjan/PraticalPythonProjects
12c1f7cedae57a843ceb6aba68cca48df505f341
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
# import libraries from tkinter import * # initialized window root = Tk() root.geometry('480x350') root.resizable(0, 0) root.title('Weight Converter') # defining the function for converting weights def WeightConv(): # making textbox user-friendly that is editable t1.configure(state='normal') t1.delete(...
26.964539
76
0.653603
587
3,802
4.229983
0.267462
0.059203
0.068063
0.050745
0.111156
0.053162
0
0
0
0
0
0.076059
0.180431
3,802
140
77
27.157143
0.720796
0.136244
0
0
0
0
0.126377
0
0
0
0
0
0
1
0.011494
false
0
0.011494
0
0.022989
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94e8d2a632eeca6338d3e4d6466fdec1e8bb6e14
3,789
py
Python
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
36.432692
84
0.611771
532
3,789
4.261278
0.287594
0.043229
0.013233
0.012351
0.210851
0.127481
0.053816
0.029113
0.029113
0.029113
0
0.024065
0.287147
3,789
103
85
36.786408
0.815254
0.398786
0
0.098039
0
0
0.164446
0
0
0
0
0
0
1
0.039216
false
0
0.078431
0
0.156863
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ee81700cccc92d145a91273dcbf30469d045b5
2,130
py
Python
MoinMoin/datastruct/backends/composite_groups.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - group access via various backends. The composite_groups is a backend that does not have direct storage, but composes other backends to a new one, so group definitions are retrieved from several backends. This allows to mix different backends. @copyright: 2009 DmitrijsMilaje...
30
82
0.630516
244
2,130
5.29918
0.438525
0.076566
0.04331
0.037123
0.055684
0
0
0
0
0
0
0.006061
0.302817
2,130
70
83
30.428571
0.864646
0.413146
0
0.115385
0
0
0.014625
0
0
0
0
0
0
1
0.192308
false
0.038462
0.038462
0.038462
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94ef7d0044d15bba93e634290af3a6fddf02e79a
15,192
py
Python
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
import argparse import logging import os import random import socket import sys import datetime import numpy as np import psutil import setproctitle import torch import torchvision.models #import wandb # add the FedML root directory to the python path sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../...
45.349254
154
0.635729
1,858
15,192
4.983315
0.213132
0.038881
0.073442
0.019009
0.255211
0.162869
0.139756
0.123987
0.095907
0.095907
0
0.009486
0.257504
15,192
334
155
45.48503
0.811348
0.155016
0
0.009852
0
0.014778
0.235437
0.028187
0
0
0
0
0
1
0.024631
false
0
0.098522
0
0.162562
0.004926
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94f1a97363b5f6d9cb9e80535531efb052a4d58d
1,678
py
Python
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
1
2019-11-28T02:39:31.000Z
2019-11-28T02:39:31.000Z
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
# standard libraries import time # non-standard libraries from sklearn.linear_model import LogisticRegression # all of the local modules from prep_data import read_images, dataset_split from explore_data import array_info, image_info from models import run_model from assess_model import count_time, roc_assess, F1sco...
29.438596
151
0.722884
241
1,678
4.813278
0.40249
0.041379
0.036207
0.049138
0.118966
0.118966
0.067241
0.067241
0
0
0
0.014215
0.161502
1,678
57
152
29.438596
0.810235
0.200834
0
0
0
0.083333
0.217293
0.060902
0
0
0
0
0
1
0.041667
false
0
0.25
0
0.291667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94f38c4de85964984884d82f381aa9b84ed0adc1
521
py
Python
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def pancakeSort(self, A: List[int]) -> List[int]: result = [] def flip(idx): for i in range(0, idx//2+1): temp = A[i] A[i] = A[idx-i] A[idx-i] = temp for i in range(len(A)-1, 0, -1): for j in range(1, i+1...
28.944444
53
0.372361
70
521
2.771429
0.357143
0.108247
0.061856
0.113402
0
0
0
0
0
0
0
0.041667
0.493282
521
17
54
30.647059
0.693182
0
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94f4ddecf6b729fadb8142b50b2738a3b687fb16
6,816
py
Python
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
import numpy as np import aiohttp import asyncio import os.path from pathlib import Path import torch import torch.nn.functional as F from torchvision import transforms, utils, io from typing import Dict, List, Optional, Tuple, Union, Any from enum import Enum from knn import utils from knn.mappers import Mapper from ...
36.063492
89
0.577171
775
6,816
4.865806
0.261935
0.037125
0.020684
0.030496
0.20419
0.13206
0.120392
0.094935
0.077433
0.057279
0
0.012093
0.332746
6,816
188
90
36.255319
0.817062
0.019513
0
0.069182
0
0
0.055589
0
0
0
0
0
0.012579
1
0.006289
false
0.006289
0.100629
0
0.163522
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94f52a5e553ca733b3138d1b081bb226e35c66cc
17,794
py
Python
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.volume.volume_hybrid_cache_attributes import VolumeHybridCacheAttributes from netapp.volume.volume_mirror_attributes import VolumeMirrorAttributes from netapp.volume.volume_space_attributes import VolumeSpaceAttributes from netapp.volume.volume_directory_attributes import VolumeDirectoryAttributes from neta...
41.868235
143
0.694785
1,821
17,794
6.488193
0.100494
0.03504
0.031147
0.042827
0.440542
0.279306
0.185019
0.1438
0.117647
0.008802
0
0.002042
0.229516
17,794
424
144
41.966981
0.859737
0.139991
0
0.166667
0
0
0.16894
0.119264
0
0
0
0
0
1
0.170139
false
0
0.083333
0.010417
0.427083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94f9d7fbfdb6b3a2de5dcc04f68b6e728b2be5ff
4,517
py
Python
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import os.path from itertools import combinations import matplotlib.cm as cm import matplotlib.pyplot as pl import numpy as np from opensfm import dataset from opensfm import features from opensfm import io from numpy import ndarray from typing import List def plot_matches(im1...
33.213235
88
0.593314
624
4,517
4.200321
0.286859
0.016024
0.03243
0.020603
0.108737
0
0
0
0
0
0
0.040816
0.251494
4,517
135
89
33.459259
0.734398
0.004649
0
0.116071
0
0
0.100779
0
0
0
0
0
0.017857
1
0.026786
false
0
0.098214
0
0.125
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94fa2681b04226b78da641bf14ffbff25cef7b0f
3,738
py
Python
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
import numpy as np from subprocess import call import astropy.io.fits as pyf import time from .utils import * class measure: def __init__(self, nPCF=4, projected=False, m_max=None, density_field_data = None, save_dir=None, save_name=None, ell_max=5, nbins=4, bin_spacing='LIN',bin_min=1, physi...
46.148148
142
0.578384
522
3,738
3.992337
0.260536
0.036948
0.069098
0.023992
0.329175
0.290787
0.235125
0.178503
0.151631
0.151631
0
0.017724
0.32076
3,738
81
143
46.148148
0.803072
0.05297
0
0.189655
0
0.051724
0.237874
0
0
0
0
0
0.051724
1
0.017241
false
0
0.086207
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
0
0
0
0
0
0
0
0
0
1
0
94fcd28600d0a6e91aed228789715089ef0fff56
3,624
py
Python
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
from django.db import models from django.utils.datetime_safe import datetime from simple_history.models import HistoricalRecords class Project(models.Model): """ Used to house information pertaining to a particular project. The below fields are the bare minimum - additional relevant fields can be added. ...
37.360825
116
0.564018
373
3,624
5.310992
0.396783
0.035336
0.045432
0.060575
0.170621
0.150429
0.093892
0.041393
0
0
0
0.023112
0.331402
3,624
96
117
37.75
0.79447
0.096026
0
0.08
0
0
0.080062
0
0
0
0
0
0
1
0.04
false
0
0.04
0.026667
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a20244ac84e009282501e8057bf8b16d29cf894f
2,490
py
Python
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
8
2021-07-27T01:13:56.000Z
2022-03-15T01:12:40.000Z
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
from .contexts import ( DID_V1, SECURITY_V1, SECURITY_V2, SECURITY_V3_UNSTABLE, CREDENTIALS_V1, EXAMPLES_V1, BBS_V1, CITIZENSHIP_V1, ODRL, SCHEMA_ORG, ) from ..ld_proofs.constants import ( SECURITY_CONTEXT_V2_URL, SECURITY_CONTEXT_V1_URL, DID_V1_CONTEXT_URL, SECUR...
34.583333
148
0.736145
239
2,490
7.334728
0.330544
0.068454
0.027382
0.022818
0.355961
0.13919
0.086709
0.086709
0.086709
0.086709
0
0.090148
0.184739
2,490
71
149
35.070423
0.773399
0.040964
0
0.15625
0
0
0.127883
0
0
0
0
0
0
1
0.015625
false
0
0.046875
0
0.09375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a203cf5cfdc6a8501d530dc5088e0a158e658e1d
288
py
Python
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
13
2016-09-24T02:20:59.000Z
2017-04-27T09:15:02.000Z
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
null
null
null
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
1
2019-01-28T06:17:15.000Z
2019-01-28T06:17:15.000Z
from collections import OrderedDict def parse_codeblock_args(elem): syntax = elem.classes[0] if elem.classes else '' args = OrderedDict(elem.attributes) for k, v in args.items(): if v.lower() in ('false', 'no'): args[k] = False return syntax, args
22.153846
52
0.631944
39
288
4.615385
0.615385
0.122222
0
0
0
0
0
0
0
0
0
0.00463
0.25
288
12
53
24
0.828704
0
0
0
0
0
0.024306
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a2069227330d2f68ac9581598475c67af9bc9bb2
361
py
Python
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import atheris import sys import os def TestOneInput(data): if len(data) >= 3 : if data[0] == ord('b'): if data[1] == ord('u'): if data[2] == ord('g'): raise Exception("Made it to the bug!") atheris.instrument_all() atheris.Setu...
21.235294
58
0.556787
49
361
4.081633
0.673469
0.09
0
0
0
0
0
0
0
0
0
0.01938
0.285319
361
16
59
22.5625
0.755814
0.063712
0
0
0
0
0.065282
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a2075dd6f8477f9a928e6816e1109df1a8072a85
496
py
Python
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
from django.conf import urls from djfw.tinymce import views app_name = 'djfw.tinymce' urlpatterns = [ urls.re_path(r'^$', views.Smiles.as_view(), name='index'), urls.re_path( r'^emotions/emotions.htm$', views.Smiles.as_view(), name='smiles'), urls.re_path( r'^uploaded_files/$',...
27.555556
77
0.622984
66
496
4.454545
0.363636
0.081633
0.136054
0.14966
0.142857
0
0
0
0
0
0
0
0.21371
496
17
78
29.176471
0.753846
0
0
0.214286
0
0
0.217119
0.048017
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a20bc93fee8de2b40c212fc499e721856e4ab411
661
py
Python
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
"""taskorganizer.config.settings.test .""" from .base import * import json # JSON-based secrets module with open('test_secrets.json') as f: secrets = json.loads(f.read()) def get_secret(setting, secrets=secrets): """Get the secret variable or return explicit exception.""" try: return secrets[sett...
23.607143
70
0.655068
77
661
5.532468
0.675325
0.051643
0
0
0
0
0
0
0
0
0
0.001919
0.2118
661
27
71
24.481481
0.815739
0.177005
0
0
0
0
0.232645
0.054409
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a20e3bed418b96fae7ddcec8794e7d98aa58b03f
7,727
py
Python
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from salina import Agent, TAgent from brax.envs.to_torch import JaxToTorchWrapper from salina_examples.rl.LoP.envs import create_gym_env from salina_examples.rl.LoP.subspace import Linear,...
41.543011
147
0.589362
1,061
7,727
4.134779
0.169651
0.025074
0.020059
0.017096
0.406656
0.354456
0.332574
0.289036
0.289036
0.289036
0
0.014701
0.269315
7,727
186
148
41.543011
0.76231
0
0
0.319277
0
0
0.074534
0
0
0
0
0
0.036145
1
0.090361
false
0.006024
0.078313
0
0.216867
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a211435c327ed70ae065e1343ef2dfb4cbf26da9
1,541
py
Python
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
1
2015-04-28T22:54:05.000Z
2015-04-28T22:54:05.000Z
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
# -*- coding=utf-8 -*- #Copyright 2012 Daniel Osvaldo Mondaca Seguel # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by appli...
30.215686
73
0.686567
199
1,541
5.276382
0.648241
0.057143
0.024762
0.030476
0
0
0
0
0
0
0
0.012769
0.186892
1,541
50
74
30.82
0.825219
0.374432
0
0
0
0
0.394099
0
0
0
0
0
0
1
0.033333
false
0
0.1
0.033333
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a211ebfcbf069a00aa69ab75205d588df2ae8176
10,615
py
Python
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
4
2017-08-18T11:49:54.000Z
2019-04-02T11:35:28.000Z
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
#!/usr/bin/env python ##### # simple implementation of "Densely Connected Convolutional Networks, CVPR 2017" ##### import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim import torchvision import torchvision.transforms as transforms import...
34.576547
103
0.581912
1,304
10,615
4.582822
0.220859
0.035141
0.008032
0.008032
0.294846
0.228079
0.18407
0.177042
0.177042
0.177042
0
0.022981
0.315403
10,615
306
104
34.689542
0.799367
0.21903
0
0.192308
0
0
0.017826
0
0
0
0
0.006536
0
1
0.049451
false
0.005495
0.043956
0
0.137363
0.021978
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a2157079ef9ffaffcc108a55445091fe2efede1e
13,871
py
Python
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
2
2021-06-23T17:23:21.000Z
2022-01-14T01:28:57.000Z
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
from .solver1d import * # p coefficient functions class Solver2d(Solver1d): def __init__(self, equation): super().__init__(equation) # Equation dependent functions self.flux_y = equation.flux_y self.spectral_radius_y = equation.spectral_radius_y def fd2(self, u): u_st...
32.791962
88
0.443443
2,301
13,871
2.429379
0.066493
0.021109
0.013953
0.015742
0.709302
0.647585
0.59356
0.54186
0.523971
0.52093
0
0.087934
0.394132
13,871
422
89
32.869668
0.577225
0.021195
0
0.474576
0
0
0
0
0
0
0
0
0
1
0.045198
false
0
0.002825
0
0.09887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a21a620a2dc472c716f0c4a791cee689f1e97aaa
942
py
Python
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
9
2020-12-22T19:14:01.000Z
2022-03-17T04:34:06.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
32
2020-12-28T07:46:44.000Z
2022-03-31T01:25:01.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
2
2021-07-30T16:44:46.000Z
2022-01-12T20:15:17.000Z
from sadie.cluster import Cluster from sadie.airr import AirrTable, LinkedAirrTable def test_cluster(heavy_catnap_airrtable, light_catnap_airrtable): for table in [heavy_catnap_airrtable, light_catnap_airrtable]: cluster = Cluster(table) clustered_df = cluster.cluster(10) assert "cluster" ...
37.68
118
0.721868
115
942
5.53913
0.321739
0.141287
0.094192
0.078493
0.125589
0.125589
0
0
0
0
0
0.012953
0.180467
942
24
119
39.25
0.812176
0
0
0
0
0
0.157113
0
0
0
0
0
0.2
1
0.05
false
0
0.1
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a21d4928f175025df7eb53ecd52295a8549f7c02
3,313
py
Python
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
1
2019-08-05T14:45:24.000Z
2019-08-05T14:45:24.000Z
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
import os import re import sys from collections import Counter from optparse import OptionParser import numpy as np import pandas as pd from util import file_handling as fh def main(): usage = "%prog input_dir output_dir" parser = OptionParser(usage=usage) #parser.add_option('--keyword', dest='key', def...
33.806122
182
0.561425
403
3,313
4.459057
0.312655
0.038954
0.027824
0.026711
0.213133
0.122983
0.079021
0.079021
0.079021
0.045632
0
0.009507
0.301539
3,313
97
183
34.154639
0.76707
0.077875
0
0.026667
0
0
0.123566
0
0
0
0
0
0
1
0.013333
false
0
0.106667
0
0.12
0.093333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a2288fb94c080ace0de40f0b975efab9344f4528
1,777
py
Python
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
# Micropython Http Server # Erni Tron ernitron@gmail.com # Copyright (c) 2016 # Content Callback functions. # They should receive parameters and return a HTML formatted string # By convention they start with cb_ import gc import time from config import save_config, set_config, get_config # Content Functions def cb...
25.753623
113
0.585819
238
1,777
4.281513
0.407563
0.029441
0.047105
0.013739
0.066732
0.066732
0.066732
0.066732
0.066732
0.066732
0
0.00916
0.262802
1,777
68
114
26.132353
0.768702
0.122116
0
0.152174
0
0
0.272552
0
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3e58c7c4f6441c3bd403bedd53cbdc604438db
4,512
py
Python
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
5
2019-09-27T17:34:21.000Z
2020-07-28T01:42:31.000Z
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
__version__ = "1.0.0" __all__ = ["full_compare"] import re from functools import reduce from itertools import permutations, product, islice, zip_longest from operator import mul from Levenshtein import jaro, jaro_winkler def _smart_jaro(a, b, func=jaro): if func(a[1:], b[1:]) > 0.99: return True i...
26.080925
94
0.585993
563
4,512
4.509769
0.227353
0.059078
0.051989
0.05514
0.270973
0.179204
0.123671
0.103978
0.103978
0.086648
0
0.035627
0.272163
4,512
172
95
26.232558
0.737515
0
0
0.188525
0
0
0.06383
0
0
0
0
0
0
1
0.057377
false
0
0.065574
0.008197
0.295082
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3e74e6f6ce3ba1a29bca66409ff4b07faabce7
6,134
py
Python
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2021-12-08T21:35:55.000Z
2021-12-08T21:35:55.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2022-01-08T02:45:09.000Z
2022-01-08T02:45:09.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
null
null
null
# Parse input: # line 1 = call_numbers separated by , # Matrices separated by blank row # Store input: # Bingo Cards: Dictionary of Dictionaires of lists? (card - column - numbers) # call_numbers: list # function to x numbers as called # function to check if card(s) won # function to add all unmarked numbers on win...
34.077778
175
0.469188
847
6,134
3.312869
0.144038
0.19886
0.076978
0.11119
0.367071
0.135424
0.074127
0
0
0
0
0.054703
0.341376
6,134
179
176
34.268156
0.639851
0.217639
0
0.020833
0
0
0.025463
0
0
0
0
0
0
1
0.03125
false
0
0.010417
0
0.0625
0.010417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3eb6b868a5e43fd91faea2606c647531478b26
3,120
py
Python
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from dliplib.utils.helper import set_use_latex plt.style.use('seaborn-whitegrid') set_use_latex() sizes = [0.0001, 0.001, 0.01, 0.10, 1.00] ticks = range(len(sizes)) # performance on the different data sizes learnedgd = {'PSNR [db]': [29.87, 31.28, 31.83, 32.7, 32...
33.548387
109
0.575
530
3,120
3.332075
0.330189
0.025481
0.04983
0.033975
0.306908
0.265006
0.211212
0.151755
0.125708
0.057758
0
0.141097
0.19359
3,120
92
110
33.913043
0.560811
0.020833
0
0.145161
0
0
0.118938
0.008847
0
0
0
0
0
1
0
false
0
0.048387
0
0.048387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3ef1247bc316b19c823cb48904b6ec5fce2e57
1,448
py
Python
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-02T11:34:42.000Z
2020-12-02T11:34:42.000Z
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
null
null
null
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-23T06:56:51.000Z
2020-12-23T06:56:51.000Z
s = open('input.txt','r').read() s = [k for k in s.split("\n")] di = {} ok = False ans = 0 f = [set() for i in range(20)] nums = set() cnt = 0 for line in s: for each in line.split(" "): if "-" in each: x, y = each.split("-") x, y = int(x), int(y) if line.split(":")[0]...
23.737705
47
0.410912
218
1,448
2.729358
0.243119
0.035294
0.060504
0.092437
0.157983
0.05042
0.05042
0
0
0
0
0.024096
0.426796
1,448
60
48
24.133333
0.692771
0.006215
0
0.12963
0
0
0.030598
0
0
0
0
0
0
1
0
false
0
0
0
0
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf42ac1b125502bb6adf579b40a034bc662330a7
1,640
py
Python
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2022-02-07T17:29:42.000Z
2022-02-07T17:29:42.000Z
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
null
null
null
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2021-08-07T04:39:55.000Z
2021-08-07T04:39:55.000Z
import datetime,threading,random from termcolor import cprint, colored import colorama class Logger(): def __init__(self): colorama.init() def __timestamp(self): now = str(datetime.datetime.now()) now = now.split(' ')[1] threadname = threading.currentThread().getName() threadname = str(threadname).repla...
25.230769
80
0.589024
197
1,640
4.796954
0.345178
0.042328
0.068783
0.100529
0.416931
0.374603
0.340741
0.340741
0.055026
0
0
0.01127
0.188415
1,640
64
81
25.625
0.698723
0
0
0.211538
0
0
0.092073
0
0.019231
0
0
0
0
1
0.173077
false
0.019231
0.057692
0.019231
0.403846
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf43755e187af099cccae06e2ad0a561bdda3853
7,486
py
Python
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
1
2020-03-03T18:28:21.000Z
2020-03-03T18:28:21.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import xarray as xr from scipy import signal import timeit from numba import jit import datashader as ds import xarray as xr from datashader import transfer_functions as tf #1. Define the boundary conditions # Needed: surface temperature forcing (s...
31.720339
123
0.64841
1,260
7,486
3.778571
0.249206
0.018484
0.009452
0.021004
0.358328
0.332493
0.299307
0.279563
0.257719
0.257719
0
0.042792
0.213332
7,486
236
124
31.720339
0.765665
0.323137
0
0.018349
0
0
0.120268
0.037852
0
0
0
0
0
1
0.036697
false
0
0.110092
0
0.174312
0.082569
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf462c8fa1454512e16f250d30d5dc8b3cd688cc
2,803
py
Python
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T13:14:51.000Z
2021-01-13T16:52:49.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
1
2021-02-13T00:45:32.000Z
2021-02-13T08:21:31.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T02:21:36.000Z
2020-11-28T04:10:24.000Z
# MIT License # Copyright (c) 2020 me is me # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
40.623188
120
0.717802
385
2,803
5.18961
0.425974
0.044044
0.022523
0.027027
0.230731
0.163664
0.12963
0.12963
0.12963
0.107107
0
0.006676
0.198359
2,803
69
121
40.623188
0.88251
0.426329
0
0.294118
0
0
0.063642
0
0
0
0.010082
0
0
1
0.058824
false
0
0.088235
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf487798f8e7882fa1a70476d00ee5b869483959
15,839
py
Python
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
1
2017-02-20T13:49:48.000Z
2017-02-20T13:49:48.000Z
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
import base64 from datetime import datetime, timedelta import re import os from django.core.mail import EmailMultiAlternatives from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, Http404, HttpResponseBadRequest from django.urls import reverse from django.core.validators...
44.366947
480
0.696067
1,931
15,839
5.593993
0.163128
0.022681
0.036104
0.045732
0.490187
0.426032
0.369376
0.344103
0.291798
0.268099
0
0.008091
0.172864
15,839
356
481
44.491573
0.816426
0.044005
0
0.382239
0
0
0.130012
0.019943
0
0
0
0
0
1
0.084942
false
0.003861
0.069498
0.003861
0.289575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf50573fc8c7f1473140c678218ca5ff24e7755c
514
py
Python
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
""" A new python package to learn how to create python packages """ import sys __version__ = '0.0.22' def hello(name='world'): """ Return a greeting for the given name """ return 'Hello, {}'.format(name) def main(): """ Reads input from the args passed into the script and prints the out...
16.580645
67
0.571984
68
514
4.147059
0.617647
0.06383
0
0
0
0
0
0
0
0
0
0.013774
0.293774
514
30
68
17.133333
0.763085
0.346304
0
0
0
0
0.098639
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf562b96a69896118fd044a0894e367ce47403f6
4,666
py
Python
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
17
2021-01-08T10:35:04.000Z
2022-03-23T07:13:54.000Z
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
null
null
null
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
5
2021-01-11T08:31:07.000Z
2022-01-11T06:28:04.000Z
import numpy as np from Sphere import ObjVal from CalculateGreatness import CalculateGreatness from GreatnessOrder import GreatnessOrder from FrictionSurface import FrictionSurface from tournement_selection import tournement_selection def AAA(MaxFEVs, N, D, LB, UB, K, le, Ap): Algae = np.zeros((N,D)) # Xij = ...
32.17931
115
0.541149
594
4,666
4.037037
0.188552
0.063386
0.035029
0.021685
0.30025
0.18849
0.172644
0.115096
0.095079
0.031693
0
0.022143
0.341835
4,666
144
116
32.402778
0.758711
0.04715
0
0.0625
0
0
0.005458
0
0
0
0
0
0
1
0.010417
false
0
0.0625
0
0.083333
0.010417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf56a4ec5c9c9f5034ff21cf5feff393693d48db
22,712
py
Python
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
1
2021-06-08T08:20:31.000Z
2021-06-08T08:20:31.000Z
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
import os import sys from time import time as timer import gym import numpy as np import numpy.random as rd import torch import torch.nn as nn import torch.nn.functional as F """ beta2 PPO ZFlt stable, running state mean std, def run_eval() beta1 GPU, def get_eva_reward() """ class Arguments: env_name = "Lunar...
33.949178
121
0.608401
2,969
22,712
4.422364
0.164702
0.009596
0.015842
0.020107
0.276999
0.224829
0.189947
0.162833
0.123839
0.102818
0
0.032428
0.281745
22,712
668
122
34
0.772451
0.095544
0
0.145299
0
0.002137
0.039604
0.001193
0
0
0
0.001497
0.002137
1
0.070513
false
0
0.029915
0.021368
0.196581
0.036325
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf582559e0911ceac34a3c025dbda5c3487ce0a3
759
py
Python
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
import ruamel.yaml from ansiblelint import AnsibleLintRule class WeakCryptographyalgo(AnsibleLintRule): id = 'ANSIBLE0010' description = 'check if weak algorithms such as MD5 are used or not ' severity = 'HIGH' tags = {'weak algo'} version_added = 'v1.0.0' shortdesc = 'WeakCryptographyalgo' ...
29.192308
101
0.621871
92
759
5.021739
0.695652
0.064935
0.064935
0.082251
0.090909
0
0
0
0
0
0
0.021818
0.275362
759
25
102
30.36
0.818182
0.027668
0
0.105263
0
0
0.164402
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf588f3851b0b3222aeb9120dab2bdad11f953db
2,966
py
Python
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
null
null
null
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
1
2020-07-26T02:31:38.000Z
2020-07-26T02:31:38.000Z
import tweepy import datetime as dt import requests import re from GetTweetProperties import get_tweet_properties, get_tweet_semantics dow_ratios = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} ''' Step 3 Calculating Twitter User Account Properties Component ''' def get_data(user_id, api): tbl = [] try: ...
27.719626
117
0.618678
381
2,966
4.632546
0.338583
0.081586
0.058924
0.049858
0.087819
0.05779
0
0
0
0
0
0.029101
0.235334
2,966
106
118
27.981132
0.749118
0.072825
0
0.069444
0
0
0.15988
0.014569
0
0
0
0
0
1
0.055556
false
0
0.069444
0
0.194444
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf58f80c1eddf33be62a39e2715221f40903b812
2,712
py
Python
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
17
2019-04-18T15:28:55.000Z
2020-06-11T15:49:19.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
4
2020-06-27T04:43:49.000Z
2022-03-23T11:38:25.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
1
2021-08-07T22:55:03.000Z
2021-08-07T22:55:03.000Z
import argparse import logging import math import re import sys from fontTools.misc.fixedTools import otRound from fontTools.misc.transform import Identity from fontTools.ttLib import TTFont, TTLibError from fontTools.voltLib.parser import Parser from io import StringIO log = logging.getLogger() anchor_re = re.compil...
30.818182
88
0.592183
365
2,712
4.287671
0.326027
0.076677
0.023003
0.023003
0.102236
0.073482
0.073482
0.073482
0.073482
0.073482
0
0.005165
0.286136
2,712
87
89
31.172414
0.803202
0
0
0.068493
0
0
0.198009
0.008481
0
0
0
0
0
1
0.027397
false
0
0.136986
0
0.205479
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf597e9b79cff3a9a7086f9c848f3046668b7b67
1,376
py
Python
bnb/utils/general_utils.py
elanmart/bnb-full
6d86964d6580436816a84d1dd822ede02f4bc56f
[ "MIT" ]
4
2018-04-28T14:29:11.000Z
2019-02-08T19:09:04.000Z
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
import inspect import os from collections import namedtuple from contextlib import contextmanager from pathlib import Path from typing import * import git @contextmanager def chdir(path): old = os.getcwd() os.chdir(path) yield os.chdir(old) def normalize_path(path: Union[Path, str]) -> Path: ...
24.140351
69
0.686773
177
1,376
5.163842
0.389831
0.043764
0.039387
0.035011
0
0
0
0
0
0
0
0.00274
0.204215
1,376
56
70
24.571429
0.831963
0
0
0
0
0
0.030523
0
0
0
0
0
0
1
0.105263
false
0
0.184211
0.026316
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf5a9cb5d3e9f2267ebde9027febc965b300c8da
8,379
py
Python
source/aws/services/transit_gateway_peering_attachments.py
josete89/serverless-transit-network-orchestrator
6a69e1f7ebcbcba20100f80bc2040f0d2ae86cf8
[ "Apache-2.0" ]
42
2019-11-16T18:00:32.000Z
2021-09-16T01:10:53.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
38
2020-01-31T03:31:29.000Z
2021-09-16T03:20:23.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
31
2019-12-09T17:20:03.000Z
2021-03-30T06:52:02.000Z
############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). # ...
46.038462
80
0.509488
704
8,379
5.832386
0.210227
0.09888
0.112518
0.101315
0.661471
0.611057
0.601802
0.591817
0.57623
0.57623
0
0.004254
0.410789
8,379
181
81
46.292818
0.827426
0.247285
0
0.570248
0
0
0.082781
0.037566
0
0
0
0
0
1
0.049587
false
0
0.024793
0
0.123967
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf5eb68165231d8bd2e30af9eab24faf05a5f7d7
675
py
Python
ui/AutoSelectSettingDialog.py
Zhehua-Hu/Enchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
12
2017-02-20T05:54:12.000Z
2020-02-13T18:26:29.000Z
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
null
null
null
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
3
2017-02-23T06:35:13.000Z
2020-06-18T07:06:17.000Z
#!/usr/bin/env python # coding=utf-8 """ Provide AutoSelectSettingDialog Class """ from PyQt5.QtWidgets import QDialog, QSpinBox from AutoSelectSetting import Ui_AutoSelectSetting class AutoSelectSettingDialog(QDialog, Ui_AutoSelectSetting): def __init__(self, parent=None): QDialog.__init__(self) ...
21.774194
61
0.700741
79
675
5.772152
0.481013
0.098684
0.052632
0.065789
0
0
0
0
0
0
0
0.005607
0.207407
675
30
62
22.5
0.846729
0.105185
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
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
0
0
0
0
0
1
0
bf5f7e78f69402cb12269c29faa4e2ec83813aa8
13,409
py
Python
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
2
2020-03-19T20:04:11.000Z
2021-12-07T16:38:11.000Z
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from aiida.orm.data.parameter import ParameterData from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida_gollum.calculations.gollum import GollumCalculation __copyright__ = u"Copyright (c), 2015, ECOLE POLYTECHNIQUE FEDERAL...
35.757333
278
0.572899
1,657
13,409
4.364514
0.161738
0.021018
0.033186
0.018805
0.407494
0.317063
0.276549
0.239629
0.199806
0.175194
0
0.004753
0.340965
13,409
374
279
35.852941
0.813625
0.127974
0
0.233607
0
0.004098
0.078444
0.006767
0
0
0
0
0
1
0.045082
false
0.012295
0.07377
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf642152676e936f1e33bce340262b6207d887ce
746
py
Python
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
from flask_script import Manager,Server from app import create_app,db from app.models import User,Category,Peptalk,Comments from flask_migrate import Migrate, MigrateCommand app = create_app('development') manager =Manager(app) migrate = Migrate(app,db) manager.add_command('server',Server) manager.add_command('db', ...
25.724138
113
0.737265
97
746
5.494845
0.402062
0.050657
0.086304
0.097561
0
0
0
0
0
0
0
0.001563
0.142091
746
28
114
26.642857
0.83125
0.025469
0
0
0
0
0.048544
0
0
0
0
0
0
1
0.1
false
0
0.25
0.05
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf654202b335a3ba2dfa9de6adedf93c5fc38356
1,668
py
Python
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
#testfile to scrape the RIVM website all is copied to bot import requests from bs4 import BeautifulSoup import csv import time import ntplib date_format = "%A %d %B %Y" f = open('updatetime.txt', 'r') old_time = f.readline() old_time = old_time.rstrip('\n') f.close() with open('updatetime.txt', "r+")...
29.263158
96
0.60012
196
1,668
5.010204
0.505102
0.028513
0.034623
0.03666
0
0
0
0
0
0
0
0.003303
0.273981
1,668
56
97
29.785714
0.807597
0.033573
0
0
0
0
0.158842
0
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf65b6b01d6ff04b856a4ec4aff1e18a2ea3bdcb
1,067
py
Python
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
from engine.steps.IStep import IStep from imutils.video import VideoStream import imutils class step_setup_camera(IStep): """ setup camera""" options = {} def __init__(self, output_channel, name=None ): super().__init__(self, output_channel, name) self.usePiCamera = True def IRun(self...
38.107143
117
0.63074
111
1,067
5.891892
0.378378
0.100917
0.103976
0.06422
0.076453
0
0
0
0
0
0
0.002484
0.245548
1,067
28
118
38.107143
0.809938
0.011246
0
0
0
0
0.130601
0
0
0
0
0
0
1
0.181818
false
0
0.136364
0
0.409091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf65f199ebe8974254f6145acc0b95d4220672c6
1,428
py
Python
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
import re from django.conf import settings from django.utils.encoding import force_text from django.template.loader import render_to_string _HTML_TYPES = ('text/html', 'application/xhtml+xml') class Tota11yMiddleware(object): def process_response(self, request, response): content_encoding = response.g...
38.594595
83
0.617647
169
1,428
5.094675
0.408284
0.10453
0.062718
0.060395
0.044135
0.044135
0.044135
0.044135
0.044135
0
0
0.010329
0.254202
1,428
36
84
39.666667
0.798122
0
0
0.068966
0
0
0.094538
0.014706
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6617694b418ef663952f93af37250bef039317
2,487
py
Python
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.lang import Builder from kivy.uix.popup import Popup from kivy.uix.screenmanager import Screen from kivy.uix.screenmanager import ScreenManager from cilantro_audit.admin_page import AdminPage from cilantro_audit.auditor_page import AuditorPage from cilantro_audit.create_a...
33.608108
119
0.772819
314
2,487
5.821656
0.286624
0.021882
0.04814
0.075492
0.125821
0.037199
0.037199
0
0
0
0
0.003343
0.158022
2,487
73
120
34.068493
0.869628
0.073583
0
0
0
0
0.030883
0.019574
0
0
0
0
0
1
0.1
false
0.04
0.28
0
0.46
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf68c5f9f6dbda4bc4e365b63fe8c8768421ddab
11,476
py
Python
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/sitewide/userprofile.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Classes for the user profile page ("my page").""" from __future__ import print_function from...
42.191176
80
0.720634
1,510
11,476
5.141722
0.184768
0.074704
0.026275
0.035033
0.426198
0.339387
0.246136
0.229006
0.185729
0.142839
0
0.00141
0.196846
11,476
271
81
42.346863
0.840946
0.085744
0
0.111628
0
0
0.071867
0.028459
0
0
0
0.00369
0
1
0.023256
false
0
0.07907
0
0.162791
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6b7fa8ef56c8e91159fea3e2c469042648b18d
12,766
py
Python
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
6
2018-01-31T21:25:40.000Z
2020-11-18T16:43:56.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
83
2018-01-03T17:31:49.000Z
2021-12-13T19:50:17.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
2
2019-04-12T20:42:06.000Z
2020-07-17T02:49:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pubmed related utilities Given PMID - collect Pubmed data and Pubtator Bioconcepts used for the BELMgr or enhancing BEL Nanopubs """ # Standard Library import asyncio import copy import datetime import re from typing import Any, Mapping, MutableMapping # Third Party...
29.550926
140
0.622121
1,586
12,766
4.882724
0.209962
0.024406
0.021694
0.030733
0.371255
0.33329
0.30501
0.27376
0.257748
0.247676
0
0.008505
0.226304
12,766
431
141
29.61949
0.775539
0.14335
0
0.286275
0
0.007843
0.219446
0.058357
0
0
0
0.00232
0
1
0.05098
false
0.007843
0.047059
0.003922
0.164706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6c41df7444eeb8c502ae2cb7c1337b9779518c
1,879
py
Python
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import simplejson as json import config import pymysql global database_conn global database_cursor database_conn = pymysql.connect(host = config.db_host, user = config.db_user, passwd = config.db_pass, db = config.db_database, use_unicode=True, charset="utf8") dat...
34.163636
162
0.60298
221
1,879
5
0.411765
0.088688
0.057014
0.047059
0.095928
0.095928
0.095928
0.095928
0
0
0
0.017819
0.253326
1,879
55
163
34.163636
0.769779
0
0
0.083333
0
0
0.168675
0.018072
0
0
0
0
0
1
0
false
0.020833
0.104167
0
0.104167
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6c77a4579d9ca212f8e013e1dcddd3b2cbae17
2,255
py
Python
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
5
2017-10-22T21:52:47.000Z
2020-10-24T11:09:25.000Z
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
2
2017-07-26T21:24:47.000Z
2018-05-06T18:05:55.000Z
pastebin_mirror/storage.py
imnotjames/pastebin-mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
1
2017-07-08T00:45:59.000Z
2017-07-08T00:45:59.000Z
import sqlite3 import logging logger = logging.getLogger(__name__) class SQLite3Storage: def __init__(self, location='pastebin.db'): self.connection = sqlite3.connect(location) def initialize_tables(self): logger.info('creating table `paste` if it doesn\'t exist') self.connection.ex...
26.529412
88
0.489579
205
2,255
5.239024
0.326829
0.100559
0.078212
0.061453
0.366853
0.314711
0.271881
0.201117
0.117318
0.117318
0
0.005331
0.417738
2,255
85
89
26.529412
0.812643
0
0
0.142857
0
0
0.153686
0
0
0
0
0
0
1
0.119048
false
0
0.047619
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf71de2744fe5d1242aa731546dcbfd8e15f512b
3,381
py
Python
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
from typing import List, Any, Tuple import abc import logging from hailtop.utils import time_msecs from .instance import Instance from ..file_store import FileStore from ..instance_config import InstanceConfig, QuantifiedResource log = logging.getLogger('compute_manager') class VMDoesNotExist(Exception): pass...
28.897436
138
0.71192
398
3,381
5.638191
0.223618
0.064171
0.080214
0.117647
0.58467
0.51738
0.420677
0.324421
0.256684
0.165775
0
0
0.20911
3,381
116
139
29.146552
0.839192
0
0
0.494118
0
0
0.062703
0.037267
0
0
0
0
0.011765
1
0.152941
false
0.023529
0.082353
0.035294
0.376471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf722d5a372f87aff15987a7ee497c8e0a060410
6,570
py
Python
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' URL utils ''' import re,justext, chardet #import urllib2 #from urllib2 import urlopen, URLError, HTTPError, Request from bs4 import BeautifulSoup as bs import unicodedata import requests, os #import settings import logging log = logging.getLogger(__name__) ### utils def ...
36.5
300
0.633333
891
6,570
4.602694
0.271605
0.017069
0.008778
0.01902
0.582297
0.582297
0.553524
0.553524
0.553524
0.535479
0
0.02337
0.224962
6,570
179
301
36.703911
0.782011
0.310198
0
0.401709
0
0.025641
0.162424
0.024555
0
0
0
0
0
1
0.08547
false
0
0.042735
0.008547
0.299145
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7319f7bbdd5e51be9c062b9af0fbc76ec7aa71
855
py
Python
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest from typing import List import utils # O(n) time. O(1) space. Iteration. class Solution: def maxDistToClosest(self, seats: List[int]) -> int: lo = 0 while lo < len(seats) and seats[lo] == 0: lo += 1 result = lo for hi in range(lo + 1, len(seats)): ...
21.923077
70
0.556725
108
855
4.231481
0.444444
0.052516
0.065646
0
0
0
0
0
0
0
0
0.013841
0.323977
855
38
71
22.5
0.776817
0.038596
0
0
0
0
0.009756
0
0
0
0
0
0.041667
1
0.083333
false
0
0.125
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf73761720d08a914d996df2769ba78971749eee
2,792
py
Python
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
1
2022-01-14T12:44:14.000Z
2022-01-14T12:44:14.000Z
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
def gera_amostra(data_inicio_corte, data_fim_corte, arquivo_confirmados, arquivo_recuperados, arquivo_obitos, arquivo_datas): confirmados = open(arquivo_confirmados, 'r') recuperados = open(arquivo_recuperados, 'r') obitos = open(arquivo_obitos, 'r') data = open(arquivo_datas, 'r')...
28.20202
110
0.511819
360
2,792
3.813889
0.219444
0.029133
0.0437
0.040058
0.2185
0.198106
0.164603
0.164603
0.11799
0.11799
0
0.023168
0.335244
2,792
98
111
28.489796
0.716595
0.062679
0
0.148649
0
0
0.071286
0
0
0
0
0
0
1
0.013514
false
0
0
0
0.027027
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7570cf463efe1bbbf754068fceecada315ee88
5,040
py
Python
Machine_Learning/use_stocker.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
from stocker import Stocker import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.style import matplotlib as mpl from matplotlib.pylab import rcParams rcParams['figure.figsize'] = 20, 10 from sklearn.preprocessing import MinMaxScaler from sklearn.linear_model import LinearRegression f...
28
125
0.721825
826
5,040
4.27724
0.251816
0.049816
0.022078
0.014718
0.41353
0.365129
0.293801
0.293801
0.279649
0.271441
0
0.033511
0.105952
5,040
180
126
28
0.750555
0.097222
0
0.284483
0
0
0.12718
0
0
0
0
0
0.008621
1
0
false
0
0.12931
0
0.12931
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0