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
5d49cf1ea92fe0773cb32d4b0de7843da828284d
386
py
Python
lab5/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
null
null
null
lab5/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
null
null
null
lab5/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
1
2020-12-03T15:17:29.000Z
2020-12-03T15:17:29.000Z
CORRECT_PIN = "1234" MAX_TRIES = 3 tries_left = MAX_TRIES pin = input(f"Insert your pni ({tries_left} tries left): ") while tries_left > 1 and pin != CORRECT_PIN: tries_left -= 1 print("Your PIN is incorrect.") pin = input(f"Insert your pni ({tries_left} tries left): ") if pin == CORRECT_PIN: print("...
25.733333
63
0.673575
62
386
4.032258
0.370968
0.252
0.072
0.12
0.32
0.32
0.32
0.32
0.32
0.32
0
0.022727
0.202073
386
15
64
25.733333
0.788961
0
0
0.166667
0
0
0.403101
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d4ae82d8ce7b27603074eae012021e17a8574a7
5,255
py
Python
cpp/msvc/parse_sln_internal.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
2
2019-07-15T14:59:59.000Z
2022-01-18T14:23:54.000Z
cpp/msvc/parse_sln_internal.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
10
2018-05-03T13:25:07.000Z
2021-06-25T15:14:55.000Z
cpp/msvc/parse_sln_internal.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
1
2018-05-02T13:59:27.000Z
2018-05-02T13:59:27.000Z
''' Created on 01.04.2011 @author: SIGIESEC ''' import logging import re import sys import ntpath import posixpath class InternalSolutionFileParser(object): """ A parser for Visual Studio 2008 Solution files (.SLN). It parses the dependencies between native C++ projects only. For C# projects, the dependen...
46.096491
167
0.592388
598
5,255
4.812709
0.247492
0.131341
0.083391
0.055594
0.322794
0.212648
0.113273
0.113273
0
0
0
0.010235
0.312084
5,255
113
168
46.504425
0.785892
0.022455
0
0.16092
0
0
0.101344
0.007467
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d5185a12cfbd7fc25029ff5ac047b328752a00e
1,085
py
Python
src/streaming-programs/05-car-speed-for-time-of-day_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
2
2017-02-12T07:14:37.000Z
2019-08-12T19:13:40.000Z
src/streaming-programs/05-car-speed-for-time-of-day_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
1
2021-05-07T05:47:27.000Z
2021-05-07T05:47:27.000Z
src/streaming-programs/05-car-speed-for-time-of-day_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
7
2015-02-23T18:57:52.000Z
2019-11-06T09:31:24.000Z
#!/usr/bin/python import sys import json # Count average speeds for links for each hour of a day def get_locationdata(locationdata_file): with open(locationdata_file, "r") as jsonfile: return json.load(jsonfile) def main(locationdata_file): locationdata = get_locationdata(locationdata_file) for...
31
124
0.603687
132
1,085
4.734848
0.492424
0.0384
0.0432
0.0992
0.1344
0.1344
0.1344
0.1344
0
0
0
0.011307
0.266359
1,085
34
125
31.911765
0.773869
0.064516
0
0
0
0
0.112537
0
0
0
0
0
0
0
null
null
0.043478
0.086957
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d538caebedfa36d5d79445c707f2f3b4b64fc7e
645
py
Python
unsupported/python-example/src/example.py
tylerni7/mayhem-examples
1e988f3db73163a71bee180752ffe4d07b21853b
[ "MIT" ]
7
2019-05-01T02:27:59.000Z
2021-07-28T22:22:26.000Z
unsupported/python-example/src/example.py
tylerni7/mayhem-examples
1e988f3db73163a71bee180752ffe4d07b21853b
[ "MIT" ]
1
2019-07-10T23:20:31.000Z
2019-07-11T17:48:29.000Z
unsupported/python-example/src/example.py
tylerni7/mayhem-examples
1e988f3db73163a71bee180752ffe4d07b21853b
[ "MIT" ]
4
2019-05-06T20:20:47.000Z
2020-02-26T07:34:49.000Z
#!/usr/bin/env python2.7 import sys def notify_mayhem(): import os os.kill(os.getpid(),11) #exec'()'*7**6 def my_sqrt(x): """Computes the square root of x, using the Newton-Raphson method""" approx = None guess = x / 2 while approx != guess: approx = guess guess = (appr...
20.806452
72
0.547287
87
645
3.908046
0.62069
0.105882
0
0
0
0
0
0
0
0
0
0.029478
0.316279
645
30
73
21.5
0.741497
0.055814
0
0.086957
0
0
0.016698
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
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
1
0
0
0
0
0
0
0
0
1
5d584ba333d27a3d75617466e4ede4e04d59bd2a
25,128
py
Python
sipcreator.py
b00giehead/IFIscripts
822b2c508370a9af2b25838e4dca450bcbaf878d
[ "MIT" ]
1
2019-11-07T17:24:49.000Z
2019-11-07T17:24:49.000Z
sipcreator.py
digitensions/IFIscripts
822b2c508370a9af2b25838e4dca450bcbaf878d
[ "MIT" ]
null
null
null
sipcreator.py
digitensions/IFIscripts
822b2c508370a9af2b25838e4dca450bcbaf878d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Generates SIPS by calling various microservices and functions. add in a check at the start - check if AF number is actually in the CSV. ''' import os import argparse import sys import shutil import datetime import time import copyit import ififuncs import package_update import accession impo...
42.734694
250
0.636262
3,067
25,128
5.028366
0.162374
0.026845
0.022046
0.022046
0.36409
0.309558
0.24063
0.208209
0.162495
0.155752
0
0.006036
0.261541
25,128
587
251
42.807496
0.82507
0.081702
0
0.254582
1
0.034623
0.245176
0.020454
0
0
0
0
0
1
0.026477
false
0.002037
0.040733
0
0.08554
0.038697
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d58b1a3fa9578c9f287fda01ee49ce3203f48e9
14,431
py
Python
src/meadowgrid/grid_task_queue.py
meadowdata/meadowflow
8d4d93e3de2ac8636eb8f5ce058c28b398684806
[ "MIT" ]
4
2021-12-23T16:08:12.000Z
2022-02-13T21:39:44.000Z
src/meadowgrid/grid_task_queue.py
meadowdata/meadowflow
8d4d93e3de2ac8636eb8f5ce058c28b398684806
[ "MIT" ]
13
2021-12-07T21:54:12.000Z
2022-03-02T22:33:22.000Z
src/meadowgrid/grid_task_queue.py
hrichardlee/meadowdata
5d302956474d9f53c43afa0d7ce9a4b4d98591c5
[ "MIT" ]
1
2021-11-14T17:39:12.000Z
2021-11-14T17:39:12.000Z
import asyncio import base64 import os import pickle import traceback import uuid from typing import Iterable, TypeVar, List, Optional, Tuple, Any, Callable, cast import itertools import aiobotocore.session import boto3 from meadowgrid.ec2_alloc_lambda.ec2_alloc_stub import ( _EC2_ALLOC_TAG, _EC2_ALLOC_TAG_VAL...
38.380319
127
0.633844
1,738
14,431
5.063291
0.212313
0.026364
0.023864
0.010909
0.369773
0.313068
0.236023
0.187614
0.178977
0.168523
0
0.009283
0.290832
14,431
375
128
38.482667
0.850596
0.247453
0
0.317992
0
0
0.090002
0.033018
0
0
0
0.016
0
1
0.016736
false
0
0.054393
0
0.09205
0.008368
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5d5b653cc78ce6057591b6872be8ada56207e069
25,052
py
Python
mindspore/parallel/_cost_model_context.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
1
2021-06-01T12:34:37.000Z
2021-06-01T12:34:37.000Z
mindspore/parallel/_cost_model_context.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
mindspore/parallel/_cost_model_context.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 agreed to...
38.541538
119
0.689526
2,963
25,052
5.518731
0.073912
0.112096
0.096318
0.122003
0.784308
0.729697
0.662427
0.589347
0.565435
0.513943
0
0.001158
0.241777
25,052
649
120
38.600925
0.8597
0.353345
0
0.331878
0
0
0.160444
0.054278
0
0
0
0
0
1
0.196507
false
0
0.0131
0
0.318777
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d6dbc41adf004d7fcb81d1bbb82d2188d9e8bcd
1,393
py
Python
tests/gen_scanpings.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
tests/gen_scanpings.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
tests/gen_scanpings.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse import sys parser = argparse.ArgumentParser(description='Generate scan mininet script') parser.add_argument('--numswitches', help='Number of switches', type=int, action="store", default=3) parser.add_argument('--numhosts', help='Number of hosts', ...
31.659091
76
0.67911
195
1,393
4.764103
0.384615
0.064586
0.073197
0.058127
0.185145
0.111948
0.111948
0.111948
0.111948
0.111948
0
0.016608
0.178751
1,393
43
77
32.395349
0.795455
0.025844
0
0.0625
1
0
0.219188
0
0
0
0
0
0.0625
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d711584768e8404ffb2f41adc5922dd200a5df7
258
py
Python
algorithm/config.py
4xxi/asteroid-families-ml
3cdd5a921903bd425604f22da344b290db6c3890
[ "MIT" ]
2
2017-08-28T06:15:19.000Z
2018-06-21T18:30:46.000Z
algorithm/config.py
4xxi/asteroid-families-ml
3cdd5a921903bd425604f22da344b290db6c3890
[ "MIT" ]
null
null
null
algorithm/config.py
4xxi/asteroid-families-ml
3cdd5a921903bd425604f22da344b290db6c3890
[ "MIT" ]
null
null
null
from methods import * ALG = KNeighborsClassifier VAR_PARAMS = { 'n_neighbors': 5, 'metric': 'minkowski', 'p': 2, 'n_jobs': 6 } FIRST_FAMILY = 2 LAST_FAMILY = None VERBOSE = 6 N_SAMPLES = 1
15.176471
35
0.511628
28
258
4.5
0.821429
0
0
0
0
0
0
0
0
0
0
0.037975
0.387597
258
16
36
16.125
0.759494
0
0
0
0
0
0.128405
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53723a03ccfeb9086f6b78d569c479cadb37624f
1,900
py
Python
projfd/appfd/models/order.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
10
2016-04-23T19:40:28.000Z
2021-09-27T19:06:45.000Z
projfd/appfd/models/order.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
19
2016-06-22T03:22:45.000Z
2018-02-09T04:55:34.000Z
projfd/appfd/models/order.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
1
2016-04-23T19:40:38.000Z
2016-04-23T19:40:38.000Z
#-*- coding: utf-8 -*- from .base import Base from datetime import datetime from django.contrib.gis.db.models import BooleanField from django.contrib.gis.db.models import CharField from django.contrib.gis.db.models import DateTimeField from django.contrib.gis.db.models import SET_NULL from django.contrib.gis.db.models ...
45.238095
145
0.733684
281
1,900
4.88968
0.430605
0.058224
0.098981
0.101892
0.213974
0.213974
0.173217
0
0
0
0
0.007653
0.174737
1,900
41
146
46.341463
0.868622
0.227895
0
0
0
0
0.017123
0
0
0
0
0
0
1
0.114286
false
0
0.314286
0.028571
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
53740570fc08c99e2bac6e76579cce87dc0dfdc6
272
py
Python
Algorithm/Easy/1000+/1314PowerofTwo.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
Algorithm/Easy/1000+/1314PowerofTwo.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
1
2020-08-08T10:14:53.000Z
2020-08-08T10:18:37.000Z
Algorithm/Easy/1000+/1314PowerofTwo.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
class Solution: """ @param n: an integer @return: if n is a power of two """ def isPowerOfTwo(self, n): # Write your code here while n>1: n=n/2 if n ==1: return True else: return False
20.923077
35
0.463235
36
272
3.5
0.722222
0.047619
0
0
0
0
0
0
0
0
0
0.02
0.448529
272
13
36
20.923077
0.82
0.272059
0
0
0
0
0
0
0
0
0
0.076923
0
1
0.125
false
0
0
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
1
0
0
0
0
0
0
0
0
0
0
1
53757a5b4951d7d766af976e8663c549bae7f921
3,230
py
Python
cctbx/dmtbx/boost_python/tst_dmtbx.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
cctbx/dmtbx/boost_python/tst_dmtbx.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
cctbx/dmtbx/boost_python/tst_dmtbx.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function from cctbx import dmtbx from cctbx import sgtbx from cctbx.array_family import flex from libtbx.test_utils import approx_equal def exercise_triplet_generator(): sg = sgtbx.space_group_info("P 41").group() i = flex.miller_index(((1,2,3),(2,3,4))) a ...
44.246575
71
0.62291
622
3,230
3.086817
0.138264
0.013542
0.08125
0.075
0.719271
0.661979
0.583854
0.554688
0.526563
0.526563
0
0.075261
0.16904
3,230
72
72
44.861111
0.640089
0
0
0.289855
0
0.130435
0.096285
0
0
0
0
0
0.434783
1
0.028986
false
0
0.072464
0
0.101449
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
53778b21150c31e44ee7a63fc5c369862b062b20
1,333
py
Python
code.py
marw12/MiniProject_1
d4508abbbac79096d03a24ffd89fd7acc8a8f322
[ "MIT" ]
null
null
null
code.py
marw12/MiniProject_1
d4508abbbac79096d03a24ffd89fd7acc8a8f322
[ "MIT" ]
null
null
null
code.py
marw12/MiniProject_1
d4508abbbac79096d03a24ffd89fd7acc8a8f322
[ "MIT" ]
null
null
null
# Importing the libraries import numpy as np import pandas as pd #import tensorflow as tf #Data Preprocessing # Importing the dataset dataset_1 = pd.read_csv('2020_US_weekly_symptoms_dataset.csv') #Search Trends dataset dataset_2 = pd.read_csv('aggregated_cc_by.csv', dtype={"test_units": "object"}) #hospitalizati...
31.738095
111
0.75919
218
1,333
4.5
0.394495
0.097859
0.053007
0.06524
0.391437
0.391437
0.319062
0.319062
0.319062
0.243629
0
0.040921
0.12003
1,333
42
112
31.738095
0.795396
0.348837
0
0
0
0
0.233294
0.041032
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0.47619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
538084ce077560500d3fd5874de6b840725af605
6,023
py
Python
GAN/GAN/test.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
3
2017-08-20T08:47:18.000Z
2019-06-21T06:09:27.000Z
GAN/GAN/test.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
GAN/GAN/test.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
from __future__ import division import numpy as np from keras.models import Sequential from keras.optimizers import SGD from keras.layers import Dense, Dropout, LeakyReLU # from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization from keras.regularizers im...
39.11039
112
0.565333
670
6,023
4.891045
0.213433
0.029295
0.046384
0.054928
0.361916
0.272811
0.241379
0.226732
0.192249
0.173329
0
0.041841
0.325419
6,023
153
113
39.366013
0.764706
0.093641
0
0.314286
0
0
0.046259
0.006092
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.07619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
538cff1556a206d328f6a8317d137bd46393e844
4,198
py
Python
bin/pylint_2_7/lib/python2.7/site-packages/pylint/test/functional/undefined_variable.py
esabelhaus/pylintr
f9dfedef726fbd6008a2abe16ec946f097bda151
[ "0BSD" ]
null
null
null
bin/pylint_2_7/lib/python2.7/site-packages/pylint/test/functional/undefined_variable.py
esabelhaus/pylintr
f9dfedef726fbd6008a2abe16ec946f097bda151
[ "0BSD" ]
1
2016-03-22T13:36:30.000Z
2016-03-22T13:36:30.000Z
bin/pylint_2_7/lib/python2.7/site-packages/pylint/test/functional/undefined_variable.py
esabelhaus/pylintr
f9dfedef726fbd6008a2abe16ec946f097bda151
[ "0BSD" ]
null
null
null
# pylint: disable=missing-docstring, multiple-statements, redefined-variable-type # pylint: disable=too-few-public-methods, no-init, no-self-use, old-style-class,bare-except,broad-except from __future__ import print_function DEFINED = 1 if DEFINED != 1: if DEFINED in (unknown, DEFINED): # [undefined-variable] ...
23.58427
104
0.642687
526
4,198
5.081749
0.351711
0.095398
0.059858
0.012346
0.08193
0.062851
0.062851
0.062851
0.022447
0.022447
0
0.013313
0.230586
4,198
177
105
23.717514
0.814241
0.39495
0
0.234694
0
0
0.026718
0
0
0
0
0
0.010204
1
0.142857
false
0.05102
0.010204
0
0.367347
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
538e96ba757d600e5c633f2cf1291a204d2c6ef7
4,471
py
Python
python/Old_Code/Runner_MN.py
ugirumurera/ta_solver
c3bd83633aca4db785a4d0dc554f924bb26754e1
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/Old_Code/Runner_MN.py
ugirumurera/ta_solver
c3bd83633aca4db785a4d0dc554f924bb26754e1
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/Old_Code/Runner_MN.py
ugirumurera/ta_solver
c3bd83633aca4db785a4d0dc554f924bb26754e1
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os import inspect from python.Model_Manager.Link_Model_Manager import Link_Model_Manager_class from python.Java_Connection import Java_Connection from python.Solvers.Solver_Class import Solver_class from python.Data_Types.Demand_Assignment_Class import Demand_Assignment_class from python.Data_Types.Path_Costs_Cl...
42.580952
121
0.659584
604
4,471
4.653974
0.319536
0.059765
0.017076
0.022768
0.190324
0.111704
0.097474
0.097474
0.074707
0.074707
0
0.009033
0.257213
4,471
105
122
42.580952
0.837398
0.190338
0
0.03125
0
0
0.062222
0
0
0
0
0
0
0
null
null
0
0.203125
null
null
0.046875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
538f9de3fd8348777291515253c072c3fabecfda
300
py
Python
plasticity/model/__init__.py
lorenzosquadrani/plasticity
6ae648fe537ebbff8432ec04beb58e4acac5871e
[ "MIT" ]
5
2020-11-06T16:30:24.000Z
2022-02-09T21:20:41.000Z
plasticity/model/__init__.py
Nico-Curti/plasticity
8159871d0aa31b096788e5aab785a1a969725ddf
[ "MIT" ]
null
null
null
plasticity/model/__init__.py
Nico-Curti/plasticity
8159871d0aa31b096788e5aab785a1a969725ddf
[ "MIT" ]
4
2020-11-25T14:22:48.000Z
2021-08-07T10:45:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # import utilities from .bcm import BCM from .hopfield import Hopfield __author__ = ['Nico Curti', 'Lorenzo Squadrani', 'SimoneGasperini'] __email__ = ['nico.curit2@unibo.it', 'lorenzo.squadrani@studio.unibo.it', 'simone.gasperini2@studio.unibo.it']
27.272727
110
0.72
38
300
5.473684
0.657895
0.100962
0.125
0
0
0
0
0
0
0
0
0.011278
0.113333
300
10
111
30
0.770677
0.196667
0
0
0
0
0.537815
0.277311
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
539018b6e1525445fa4e6c00b3a68c26ca99fca4
624
py
Python
apps/notebooks/migrations/0005_auto_20210419_1613.py
jesse-zwd/note-backend
d9028ae4f64ec0f4a9171060fe7e3e8e02453fce
[ "PostgreSQL", "MIT" ]
null
null
null
apps/notebooks/migrations/0005_auto_20210419_1613.py
jesse-zwd/note-backend
d9028ae4f64ec0f4a9171060fe7e3e8e02453fce
[ "PostgreSQL", "MIT" ]
null
null
null
apps/notebooks/migrations/0005_auto_20210419_1613.py
jesse-zwd/note-backend
d9028ae4f64ec0f4a9171060fe7e3e8e02453fce
[ "PostgreSQL", "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-04-19 16:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notebooks', '0004_auto_20210419_1557'), ] operations = [ migrations.AddField( model_name='note', name='description',...
26
102
0.597756
66
624
5.515152
0.651515
0.098901
0.126374
0.148352
0.192308
0.192308
0
0
0
0
0
0.08204
0.277244
624
23
103
27.130435
0.725055
0.072115
0
0.352941
1
0
0.124783
0.039861
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
539d14ef320d46b72edf84e174c193a1cf783670
1,124
py
Python
scripts/object_segmentation.py
ironmanyu/Laundry_and_Garbage_Collection
11a7cad08ce6a084e652b658e943797dcef92888
[ "MIT" ]
null
null
null
scripts/object_segmentation.py
ironmanyu/Laundry_and_Garbage_Collection
11a7cad08ce6a084e652b658e943797dcef92888
[ "MIT" ]
null
null
null
scripts/object_segmentation.py
ironmanyu/Laundry_and_Garbage_Collection
11a7cad08ce6a084e652b658e943797dcef92888
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('color_frame.jpeg') # Displaying the image cv2.imshow("Image",img) lower_blue = np.array([100,0,0]) upper_blue = np.array([150,10,10]) mask = cv2.inRange(img, lower_blue, upper_blue) obj_seg = cv2.bitwise_and(img,img, mask=mask) ### Alternative way: Threshold the im...
23.416667
73
0.681495
191
1,124
3.926702
0.481675
0.032
0.032
0
0
0
0
0
0
0
0
0.063627
0.161032
1,124
48
74
23.416667
0.731707
0.448399
0
0
0
0
0.111481
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53a197c4b04addb4ccae18b816a485928a376357
2,527
py
Python
wp-scripts/download-pages.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
6
2015-09-10T02:22:21.000Z
2021-10-01T16:36:46.000Z
wp-scripts/download-pages.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
null
null
null
wp-scripts/download-pages.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
2
2018-04-04T10:44:32.000Z
2021-10-01T16:37:26.000Z
import gzip import os import re from bs4 import BeautifulSoup import urllib3 urllib3.disable_warnings() import json #list_path = "wp-lists/accident.tsv.gz" #path = "wp-pages/accidents" def main(input_path, output_path): if not os.path.exists(output_path): os.makedirs(output_path) url = 'https://en....
31.197531
75
0.544123
304
2,527
4.391447
0.444079
0.029963
0.02397
0.028464
0.064419
0
0
0
0
0
0
0.015757
0.296795
2,527
80
76
31.5875
0.735509
0.060546
0
0.050847
0
0
0.127588
0
0
0
0
0
0
0
null
null
0
0.118644
null
null
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53b1aba852f17422f0cb2f92aac36fdc58389d1f
1,791
py
Python
talons/helpers.py
jaypipes/talons
e13f17cad522ef136563af9d6aa72a5ffe367343
[ "Apache-2.0" ]
9
2015-02-13T11:29:29.000Z
2018-07-23T15:37:10.000Z
talons/helpers.py
jaypipes/talons
e13f17cad522ef136563af9d6aa72a5ffe367343
[ "Apache-2.0" ]
null
null
null
talons/helpers.py
jaypipes/talons
e13f17cad522ef136563af9d6aa72a5ffe367343
[ "Apache-2.0" ]
1
2016-01-07T23:17:59.000Z
2016-01-07T23:17:59.000Z
# -*- encoding: utf-8 -*- # # Copyright 2013 Jay Pipes # # 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 la...
34.442308
75
0.681742
244
1,791
4.885246
0.459016
0.050336
0.032718
0.026846
0.228188
0.189597
0.189597
0.189597
0.189597
0.189597
0
0.008658
0.226131
1,791
51
76
35.117647
0.851371
0.455053
0
0.166667
0
0
0.122581
0
0
0
0
0
0
1
0.041667
false
0
0.416667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
53b8219fc187760a0f950c1da13f128647902d75
23,702
py
Python
pypy/module/micronumpy/test/test_subtype.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/micronumpy/test/test_subtype.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/micronumpy/test/test_subtype.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from pypy.module.micronumpy.test.test_base import BaseNumpyAppTest class AppTestSupport(BaseNumpyAppTest): spaceconfig = dict(usemodules=["micronumpy", "struct", "binascii", "mmap"]) def setup_class(cls): BaseNumpyAppTest.setup_class.im_func(cls) cls.w_NoNew = cls.space.appexec([], '''(): ...
34.702782
132
0.48093
2,766
23,702
3.995662
0.142082
0.020358
0.029859
0.024068
0.325552
0.254253
0.211455
0.180239
0.159157
0.126583
0
0.032436
0.412075
23,702
682
133
34.753666
0.760675
0.039786
0
0.268966
0
0.001724
0.09393
0.005768
0
0
0
0
0.193103
0
null
null
0.001724
0.060345
null
null
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53b8b2ced53030b5d5cf2391833b8e2dd0f06af3
811
py
Python
pypinyin/phonetic_symbol.py
godsdarling/python-pinyin
cd0b1d2d1b487ef08f720f63d9809ee757184037
[ "MIT" ]
1
2019-10-11T08:37:20.000Z
2019-10-11T08:37:20.000Z
pypinyin/phonetic_symbol.py
godsdarling/python-pinyin
cd0b1d2d1b487ef08f720f63d9809ee757184037
[ "MIT" ]
null
null
null
pypinyin/phonetic_symbol.py
godsdarling/python-pinyin
cd0b1d2d1b487ef08f720f63d9809ee757184037
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals # 带音标字符。 phonetic_symbol = { "ā": "a1", "á": "a2", "ǎ": "a3", "à": "a4", "ē": "e1", "é": "e2", "ě": "e3", "è": "e4", "ō": "o1", "ó": "o2", "ǒ": "o3", "ò": "o4", "ī": "i1", "...
15.018519
74
0.324291
119
811
2.201681
0.798319
0.160305
0
0
0
0
0
0
0
0
0
0.072356
0.335388
811
53
75
15.301887
0.398887
0.138101
0
0
0
0
0.156295
0
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53b8b9b6366016af29444d32b75f01145f60568f
5,889
py
Python
pygazebo/msg/performance_metrics_pb2.py
CryptoCopter/pygazebo
f16704f3b59cb50a1390ef92fde283558fd71f8f
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/performance_metrics_pb2.py
CryptoCopter/pygazebo
f16704f3b59cb50a1390ef92fde283558fd71f8f
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/performance_metrics_pb2.py
CryptoCopter/pygazebo
f16704f3b59cb50a1390ef92fde283558fd71f8f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: performance_metrics.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from go...
42.064286
461
0.77891
682
5,889
6.394428
0.195015
0.036689
0.056638
0.055721
0.583352
0.527402
0.474662
0.46549
0.424673
0.424673
0
0.029041
0.111224
5,889
139
462
42.366906
0.804165
0.064697
0
0.586207
1
0.008621
0.22016
0.182132
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53b913cc9a41eedcc9c934652489097d70cf3f67
521
py
Python
supports/pyload/src/pyload/plugins/downloaders/UnrestrictLi.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/downloaders/UnrestrictLi.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/downloaders/UnrestrictLi.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ..base.dead_downloader import DeadDownloader class UnrestrictLi(DeadDownloader): __name__ = "UnrestrictLi" __type__ = "downloader" __version__ = "0.28" __status__ = "stable" __pyload_version__ = "0.5" __pattern__ = r"https?://(?:www\.)?(unrestrict|unr)\.li/dl/[\...
26.05
71
0.642994
55
521
5.309091
0.818182
0.054795
0
0
0
0
0
0
0
0
0
0.021176
0.184261
521
19
72
27.421053
0.665882
0.082534
0
0
0
0
0.324211
0.105263
0
0
0
0.052632
0
1
0
false
0
0.083333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
53c22637540409ea91aa0ebca93e3055af51cd1d
3,627
py
Python
models/vit_utils/layers/norm_act.py
Kanaricc/M3TR
c341ec1ebac598a1cf0c0c9085c98f4ebf4c2780
[ "Apache-2.0" ]
3
2021-12-10T10:55:31.000Z
2022-03-22T07:07:04.000Z
models/vit_utils/layers/norm_act.py
Kanaricc/M3TR
c341ec1ebac598a1cf0c0c9085c98f4ebf4c2780
[ "Apache-2.0" ]
null
null
null
models/vit_utils/layers/norm_act.py
Kanaricc/M3TR
c341ec1ebac598a1cf0c0c9085c98f4ebf4c2780
[ "Apache-2.0" ]
1
2022-01-13T03:06:03.000Z
2022-01-13T03:06:03.000Z
""" Normalization + Activation Layers """ import torch from torch import nn as nn from torch.nn import functional as F from .create_act import get_act_layer class BatchNormAct2d(nn.BatchNorm2d): """BatchNorm + Activation This module performs BatchNorm + Activation in a manner that will remain ba...
42.174419
110
0.630824
481
3,627
4.559252
0.299376
0.05472
0.065663
0.038304
0.315549
0.221614
0.207022
0.207022
0.207022
0.207022
0
0.00624
0.29308
3,627
85
111
42.670588
0.849064
0.224704
0
0.517241
0
0
0
0
0
0
0
0.011765
0
1
0.103448
false
0
0.068966
0.017241
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
1
0
0
0
0
0
0
0
0
0
0
1
53c79b1346723b48b4648c02ec93bc9787fb77c6
618
py
Python
Amazon/Advanced Product Detail Extractor/Process/configs.py
aybarskerem/WebScraper
f7d72284e179f308b3a43479b15ff4abbbf4e58c
[ "MIT" ]
3
2021-07-28T08:43:54.000Z
2021-07-28T18:34:15.000Z
Amazon/Advanced Product Detail Extractor/Process/configs.py
aybarskerem/WebScraper
f7d72284e179f308b3a43479b15ff4abbbf4e58c
[ "MIT" ]
null
null
null
Amazon/Advanced Product Detail Extractor/Process/configs.py
aybarskerem/WebScraper
f7d72284e179f308b3a43479b15ff4abbbf4e58c
[ "MIT" ]
1
2021-06-28T12:27:08.000Z
2021-06-28T12:27:08.000Z
MASTER_PROCESS_RANK = 0 # Only meaningful if webscraper is run with multiple processes. Here we use rank = 0 for master process; however we can set it to any value in [0, nprocs-1]. READING_RATIO_FOR_INPUT_CSVs = 1 # It represents how much of the input files (in csv format for now) we should process....
77.25
259
0.708738
103
618
4.087379
0.640777
0.061758
0.047506
0.071259
0.08076
0
0
0
0
0
0
0.029979
0.244337
618
7
260
88.285714
0.87152
0.606796
0
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53c8d3c283a26bb9c5571758e816b47dd244a9c2
399
py
Python
UserProfile/migrations/0004_alter_customuser_is_active.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
null
null
null
UserProfile/migrations/0004_alter_customuser_is_active.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
3
2021-09-22T18:50:33.000Z
2022-03-12T00:58:50.000Z
UserProfile/migrations/0004_alter_customuser_is_active.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-24 16:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("UserProfile", "0003_auto_20210524_1602"), ] operations = [ migrations.AlterField( model_name="customuser", name="is_...
21
52
0.611529
42
399
5.690476
0.833333
0
0
0
0
0
0
0
0
0
0
0.107639
0.278195
399
18
53
22.166667
0.722222
0.112782
0
0
1
0
0.150568
0.065341
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53c9b29a31403e4e22a8884a9875ca4875c0a789
3,694
py
Python
dashboard/utils/extract_data_solr.py
f-arruza/bigdata4
2cf4e7e1c6a98adc0348659c7d7112fbba69f0d4
[ "MIT" ]
1
2017-12-07T00:59:30.000Z
2017-12-07T00:59:30.000Z
dashboard/utils/extract_data_solr.py
f-arruza/bigdata4
2cf4e7e1c6a98adc0348659c7d7112fbba69f0d4
[ "MIT" ]
null
null
null
dashboard/utils/extract_data_solr.py
f-arruza/bigdata4
2cf4e7e1c6a98adc0348659c7d7112fbba69f0d4
[ "MIT" ]
null
null
null
# coding: utf-8 import json from pymongo import MongoClient if __name__ == "__main__": client = MongoClient('172.24.99.98', 27017) db = client['Grupo01_taller04'] # tweets = db.tweets.find({}) # # fileJ = open('testfile2.json', 'w') # # for tweet in tweets: # json_data = { # ...
31.042017
64
0.446941
331
3,694
4.791541
0.169184
0.090794
0.08512
0.090794
0.716898
0.691677
0.691677
0.691677
0.673392
0.649433
0
0.01219
0.378181
3,694
118
65
31.305085
0.678276
0.462371
0
0.62
0
0
0.183801
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53d5f933e82b55c4d56f21ddb1dbbccbcdbe0fed
1,505
py
Python
vendimia/vendimia/urls.py
soru13/vendimia
ebcf85473855e6f990b1a49574ac669fdd4d443e
[ "MIT" ]
null
null
null
vendimia/vendimia/urls.py
soru13/vendimia
ebcf85473855e6f990b1a49574ac669fdd4d443e
[ "MIT" ]
5
2020-02-11T23:26:24.000Z
2022-01-13T00:39:54.000Z
vendimia/vendimia/urls.py
soru13/vendimia
ebcf85473855e6f990b1a49574ac669fdd4d443e
[ "MIT" ]
null
null
null
"""vendimia URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
36.707317
94
0.725581
224
1,505
4.816964
0.334821
0.033364
0.055607
0.022243
0.171455
0.171455
0.13253
0.069509
0
0
0
0.006808
0.121595
1,505
41
95
36.707317
0.80938
0.497674
0
0
0
0
0.192771
0
0
0
0
0
0
1
0
false
0
0.428571
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
1
0
0
0
0
1
53d88cd37f1aaf890c864c15a08b9afbfb3aab2d
1,464
py
Python
__init__.py
dedalodaelus/hass-http_legacy_auth
4e3121b2596631f88de835decbd0d707ca5cfbbd
[ "MIT" ]
1
2020-11-30T01:26:41.000Z
2020-11-30T01:26:41.000Z
__init__.py
dedalodaelus/hass-http_legacy_auth
4e3121b2596631f88de835decbd0d707ca5cfbbd
[ "MIT" ]
2
2020-06-11T00:23:30.000Z
2022-02-02T11:53:08.000Z
__init__.py
dedalodaelus/hass-http_legacy_auth
4e3121b2596631f88de835decbd0d707ca5cfbbd
[ "MIT" ]
1
2021-06-04T22:26:33.000Z
2021-06-04T22:26:33.000Z
import asyncio from aiohttp.web import middleware from aiohttp.frozenlist import FrozenList import logging from homeassistant.components.http import HomeAssistantHTTP from homeassistant.components.http.const import KEY_AUTHENTICATED # The domain of your component. Should be equal to the name of your component. DOMAIN...
34.046512
90
0.702869
186
1,464
5.360215
0.451613
0.088265
0.056169
0.066199
0.05015
0
0
0
0
0
0
0
0.228142
1,464
42
91
34.857143
0.882301
0.220628
0
0
0
0
0.063436
0
0
0
0
0
0
1
0.035714
false
0.178571
0.214286
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
53da458fa09f47219e57760581f461f9c574c96b
2,650
py
Python
samples/properties_ios_app_data_streams_measurement_protocol_secrets_create.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
10
2020-09-19T18:31:20.000Z
2022-03-07T22:45:53.000Z
samples/properties_ios_app_data_streams_measurement_protocol_secrets_create.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
63
2020-07-21T12:17:34.000Z
2022-03-07T17:30:51.000Z
samples/properties_ios_app_data_streams_measurement_protocol_secrets_create.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
6
2020-07-20T18:10:41.000Z
2022-03-24T20:23:44.000Z
#!/usr/bin/env python # Copyright 2021 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
38.970588
145
0.765283
341
2,650
5.774194
0.428152
0.115795
0.126968
0.032504
0.272219
0.272219
0.25292
0.212291
0.130015
0.130015
0
0.011151
0.153962
2,650
67
146
39.552239
0.867083
0.596604
0
0
0
0
0.278912
0.193392
0
0
0
0.014925
0
1
0.1
false
0
0.1
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
53da91ecd8298d8bd52847e08d94a0ec7c507610
1,953
py
Python
feature_extraction/extraction.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/extraction.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/extraction.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
import numpy as np import skimage.exposure as exposure from .util import AttributeDict from sklearn.decomposition import PCA def extract_features(image, measurements, debug=False): """ Given an image as a Numpy array and a set of measurement objects implementing a compute method returning a feature vector, return ...
27.125
79
0.714286
281
1,953
4.875445
0.398577
0.039416
0.011679
0.018978
0.157664
0.058394
0.058394
0
0
0
0
0.006687
0.157706
1,953
71
80
27.507042
0.82614
0.223246
0
0.146341
0
0
0.078877
0
0
0
0
0.014085
0
1
0.121951
false
0
0.097561
0
0.341463
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
53dbaa77977c7505cab6a227d0357b0c60bbda91
2,487
py
Python
graph-analytics/web-app-templates/standard/graph-analytics_graph_viz/app.py
RedaAffane/dataiku-contrib
d409ddc25d31570972a14abb19a84ac101afc6cc
[ "Apache-2.0" ]
1
2020-10-11T14:53:53.000Z
2020-10-11T14:53:53.000Z
graph-analytics/web-app-templates/standard/graph-analytics_graph_viz/app.py
RedaAffane/dataiku-contrib
d409ddc25d31570972a14abb19a84ac101afc6cc
[ "Apache-2.0" ]
null
null
null
graph-analytics/web-app-templates/standard/graph-analytics_graph_viz/app.py
RedaAffane/dataiku-contrib
d409ddc25d31570972a14abb19a84ac101afc6cc
[ "Apache-2.0" ]
null
null
null
import dataiku from flask import request, json import networkx as nx from community import best_partition from networkx.readwrite import json_graph @app.route('/datasets') def get_dataset_flow(): client = dataiku.api_client() project_key = dataiku.default_project_key() project = client.get_project(project_...
31.884615
87
0.6538
331
2,487
4.773414
0.274924
0.037975
0.053165
0.034177
0.125316
0.065823
0
0
0
0
0
0.002523
0.203056
2,487
77
88
32.298701
0.794652
0.042622
0
0.035714
0
0
0.090603
0
0
0
0
0
0
0
null
null
0
0.089286
null
null
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53e2686d89439a62bc62ff6c9ef06fa0c0755ae2
2,369
py
Python
logging/src/ThroughputGraph.py
sync-bft/concord-bft
423db97caf10681e38527dd9d78e668dd016a7e9
[ "Apache-2.0" ]
null
null
null
logging/src/ThroughputGraph.py
sync-bft/concord-bft
423db97caf10681e38527dd9d78e668dd016a7e9
[ "Apache-2.0" ]
null
null
null
logging/src/ThroughputGraph.py
sync-bft/concord-bft
423db97caf10681e38527dd9d78e668dd016a7e9
[ "Apache-2.0" ]
1
2020-12-06T21:02:03.000Z
2020-12-06T21:02:03.000Z
from altair as alt from altair_saver import save nanosec_to_sec = 1e9 interval_sec = 1.0 exp_num = 6 num_clients = [4, 32, 64, 128, 192, 256] log_file_dir = "../../build/tests/logging/exp{}/" def get_tp_lat(exp_id): total_throughput = 0 total_latency = 0 for id in range(num_clients[exp_id]): log_f...
30.766234
110
0.677501
346
2,369
4.303468
0.274566
0.040296
0.042982
0.014775
0.251175
0.175957
0.175957
0.175957
0.175957
0.071189
0
0.017223
0.215703
2,369
76
111
31.171053
0.784177
0
0
0.121212
0
0
0.113176
0.048564
0
0
0
0
0.015152
0
null
null
0
0.015152
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53e5fb408f1a699306249add7ecc446df454f90c
3,161
py
Python
alexa/ask/generate_intent_schema.py
cameron-gagnon/CookmATE
91c3928c8cdac6b4b4e4bc544500c31afa538fba
[ "MIT" ]
2
2016-06-03T16:43:10.000Z
2017-12-19T14:49:53.000Z
ask/generate_intent_schema.py
anjishnu/ask-useful-science
096226786617709dff4c30f763451066cb7fe2b3
[ "MIT" ]
null
null
null
ask/generate_intent_schema.py
anjishnu/ask-useful-science
096226786617709dff4c30f763451066cb7fe2b3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Generate an intent schema file by asking questions. from __future__ import print_function import json import readline import os from .config import config read_in = config.read_in intent_schema_path = config.DEFAULT_INTENT_SCHEMA_LOCATION empty_schema = """{"intents": []}""" slot_type_mapping...
31.61
120
0.629864
433
3,161
4.401848
0.357968
0.04617
0.033578
0.044071
0.110178
0
0
0
0
0
0
0.013918
0.249921
3,161
99
121
31.929293
0.789962
0.039861
0
0
1
0.026316
0.317822
0
0
0
0
0
0
1
0.052632
false
0.026316
0.065789
0.013158
0.171053
0.184211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53e80ee44a17f9c2a3281d4c5c678e1f266e522c
173
py
Python
examples/doctest_example.py
pynickle/python-cheatsheet-redefined
95da661df47263e0ab5d505c0c80f932cb72152c
[ "WTFPL" ]
11
2021-11-13T09:49:37.000Z
2022-01-13T11:11:29.000Z
examples/doctest_example.py
pynickle/python-cheatsheet-redefined
95da661df47263e0ab5d505c0c80f932cb72152c
[ "WTFPL" ]
null
null
null
examples/doctest_example.py
pynickle/python-cheatsheet-redefined
95da661df47263e0ab5d505c0c80f932cb72152c
[ "WTFPL" ]
3
2021-11-15T06:13:42.000Z
2021-12-24T07:09:48.000Z
""" file for doctest """ import math def factorial(n): result = 1 factor = 2 while factor <= n: result *= factor factor += 1 return result
12.357143
24
0.543353
21
173
4.47619
0.666667
0.148936
0
0
0
0
0
0
0
0
0
0.026786
0.352601
173
13
25
13.307692
0.8125
0.092486
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53eaad9279c96e890d48058886cc414cc637ea72
4,401
py
Python
utils/tools.py
super233/Semantic-Segmentation-of-Pathological-Images
85ad605ede1c2730bbfb90ee9c4198499720942d
[ "MIT" ]
6
2020-09-06T07:24:07.000Z
2021-07-19T07:28:09.000Z
utils/tools.py
super233/Semantic-Segmentation-of-Pathological-Images
85ad605ede1c2730bbfb90ee9c4198499720942d
[ "MIT" ]
1
2021-07-19T09:06:48.000Z
2021-07-19T09:17:16.000Z
utils/tools.py
super233/Semantic-Segmentation-of-Pathological-Images
85ad605ede1c2730bbfb90ee9c4198499720942d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -* from torch import nn import json import os import torch import shutil import numpy as np from PIL import ImageDraw, Image import random def generate_noisy_indexes(seed, dataset_size, noisy_rate): """生成需要加噪的图像的index""" num = int(dataset_size * noisy_rate) random.s...
27.166667
87
0.640991
528
4,401
5.168561
0.352273
0.036277
0.016123
0.018688
0.244412
0.219861
0.219861
0.219861
0.219861
0.19421
0
0.023353
0.241082
4,401
161
88
27.335404
0.793713
0.160873
0
0.197674
1
0
0.034188
0
0
0
0
0
0.034884
1
0.104651
false
0
0.093023
0
0.290698
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53eb4a999d32284c495788d89f77e4dfc44d7d89
3,261
py
Python
src/transform.py
tnakaicode/svg2dxf
14630acb68633205e68d4d12cf9c055dca9970b8
[ "CC0-1.0" ]
null
null
null
src/transform.py
tnakaicode/svg2dxf
14630acb68633205e68d4d12cf9c055dca9970b8
[ "CC0-1.0" ]
null
null
null
src/transform.py
tnakaicode/svg2dxf
14630acb68633205e68d4d12cf9c055dca9970b8
[ "CC0-1.0" ]
null
null
null
from __future__ import division, print_function import math import unittest from functools import reduce def __mult(t0, t1): return t0.mult(t1) class Transform(object): def __init__(self, m): self.m = tuple(m) def entry(self, x, y): return self.m[y * 3 + x] def x(self): ret...
24.335821
88
0.559338
500
3,261
3.584
0.216
0.021205
0.015067
0.013393
0.149554
0.115513
0.095424
0.095424
0.061384
0.061384
0
0.06744
0.286109
3,261
133
89
24.518797
0.70232
0
0
0.082474
0
0
0.017479
0
0
0
0
0
0.154639
1
0.206186
false
0
0.041237
0.061856
0.412371
0.010309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
53ee40367abe2b337c8ecff10478e6505d84b554
7,106
py
Python
test/test_config.py
brisbane/hpc-container-maker
29c675d62651c6dde566b699ad85f794114a94c4
[ "Apache-2.0" ]
null
null
null
test/test_config.py
brisbane/hpc-container-maker
29c675d62651c6dde566b699ad85f794114a94c4
[ "Apache-2.0" ]
null
null
null
test/test_config.py
brisbane/hpc-container-maker
29c675d62651c6dde566b699ad85f794114a94c4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. 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...
39.921348
80
0.695046
893
7,106
5.281075
0.160134
0.137617
0.148431
0.19296
0.76039
0.63486
0.599873
0.547922
0.540288
0.508694
0
0.022297
0.204757
7,106
177
81
40.146893
0.812246
0.179567
0
0.482456
0
0
0.03549
0
0
0
0
0
0.315789
1
0.157895
false
0
0.061404
0
0.22807
0.008772
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53f3dbe93ab605af4e502b2d5011a3af0bd417d7
3,305
py
Python
tsbenchmark/server.py
DataCanvasIO/TSBenchmark
e8e45cd0cd206723ad59a8cac2a572e48f43a728
[ "Apache-2.0" ]
2
2022-03-28T02:10:09.000Z
2022-03-29T02:56:26.000Z
tsbenchmark/server.py
DataCanvasIO/TSBenchmark
e8e45cd0cd206723ad59a8cac2a572e48f43a728
[ "Apache-2.0" ]
null
null
null
tsbenchmark/server.py
DataCanvasIO/TSBenchmark
e8e45cd0cd206723ad59a8cac2a572e48f43a728
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from hypernets.hyperctl.appliation import BatchApplication from hypernets.hyperctl.server import RestCode, BaseHandler, create_hyperctl_handlers, \ HyperctlWebApplication from hypernets.utils import logging as hyn_logging from tsbenchmark import tasks logger = hyn_logging.getLogger(__nam...
33.383838
99
0.645688
344
3,305
6.011628
0.311047
0.020309
0.027079
0.030464
0.130561
0.130561
0.10058
0.10058
0.10058
0.056093
0
0.001212
0.251135
3,305
98
100
33.72449
0.834343
0.055371
0
0.123077
0
0
0.093188
0.047237
0
0
0
0.010204
0
1
0.123077
false
0.015385
0.092308
0.015385
0.384615
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
53f77e96d9ab8c1486eeee2c4f04a994b9d5c349
10,869
py
Python
openmdao.main/src/openmdao/main/test/test_workflow.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
1
2020-06-28T20:38:56.000Z
2020-06-28T20:38:56.000Z
openmdao.main/src/openmdao/main/test/test_workflow.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
null
null
null
openmdao.main/src/openmdao/main/test/test_workflow.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
null
null
null
""" Test run/stop aspects of a simple workflow. """ import unittest from openmdao.main.api import Assembly, Component, set_as_top, Driver from openmdao.main.case import Case from openmdao.main.exceptions import RunStopped from openmdao.main.datatypes.api import Int, Bool, Float from openmdao.main.hasparameters import...
31.143266
134
0.615236
1,376
10,869
4.740552
0.167151
0.075885
0.03388
0.055189
0.514334
0.456692
0.424191
0.379427
0.335122
0.314426
0
0.020357
0.263318
10,869
348
135
31.232759
0.794305
0.048395
0
0.405738
0
0
0.122032
0.020138
0
0
0
0
0.139344
0
null
null
0.012295
0.053279
null
null
0.020492
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53f88c5977b2874d82c729bda925c36153154768
619
py
Python
toSort/Joystick.comboButton.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
toSort/Joystick.comboButton.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
toSort/Joystick.comboButton.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
joystick = runtime.createAndStart("joystick","Joystick") sleep(4) a = 0 rb = 0 def buttonA(): global a a = msg_joystick_button1.data[0] print a check() def buttonRB(): global rb rb = msg_joystick_button6.data[0] print rb check() def check(): if ((a == 1) and (rb == 1)): ...
19.967742
56
0.596123
83
619
4.39759
0.361446
0.049315
0.054795
0.038356
0
0
0
0
0
0
0
0.032189
0.247173
619
30
57
20.633333
0.751073
0
0
0.08
0
0
0.159935
0
0
0
0
0
0
0
null
null
0
0
null
null
0.24
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53fd60b403107317ef2ea2825cc6252c5f22b849
1,040
py
Python
tests/test_app.py
zacharlie/osgs-sl
987ed4a29a6d3fb6bc0e0d47e113968ed6bf3b43
[ "BSD-3-Clause" ]
null
null
null
tests/test_app.py
zacharlie/osgs-sl
987ed4a29a6d3fb6bc0e0d47e113968ed6bf3b43
[ "BSD-3-Clause" ]
null
null
null
tests/test_app.py
zacharlie/osgs-sl
987ed4a29a6d3fb6bc0e0d47e113968ed6bf3b43
[ "BSD-3-Clause" ]
null
null
null
import pytest import os import tempfile import logging from flask import Flask from flask_appbuilder import AppBuilder, SQLA from app.index import DefaultIndexView logging.basicConfig(format="%(asctime)s:%(levelname)s:%(name)s:%(message)s") logging.getLogger().setLevel(logging.ERROR) app = Flask(__name__) app.conf...
22.12766
88
0.7125
135
1,040
5.385185
0.444444
0.049519
0.046768
0
0
0
0
0
0
0
0
0
0.158654
1,040
46
89
22.608696
0.830857
0
0
0
0
0
0.1125
0.066346
0
0
0
0
0
1
0.09375
false
0.0625
0.25
0.0625
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
53ff1c9dfc86b086dc9dd56e1e7e68887f3d0f66
2,399
py
Python
mesonbuild/dependencies/__init__.py
Et7f3/esy-meson
582caa54a67e4d0bd141ba135c24ed2fd8b79800
[ "Apache-2.0" ]
1
2019-10-01T00:59:00.000Z
2019-10-01T00:59:00.000Z
mesonbuild/dependencies/__init__.py
Et7f3/esy-meson
582caa54a67e4d0bd141ba135c24ed2fd8b79800
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/__init__.py
Et7f3/esy-meson
582caa54a67e4d0bd141ba135c24ed2fd8b79800
[ "Apache-2.0" ]
1
2019-10-01T00:06:21.000Z
2019-10-01T00:06:21.000Z
# Copyright 2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to ...
36.907692
212
0.755732
225
2,399
8.013333
0.626667
0.033278
0.01442
0.017748
0
0
0
0
0
0
0
0.013366
0.157982
2,399
64
213
37.484375
0.879208
0.258024
0
0.04878
0
0
0.089569
0
0
0
0
0
0
1
0
true
0
0.146341
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
990373398304112d4991dd969801393943a040c2
575
py
Python
090-subsets-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
090-subsets-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
090-subsets-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
class Solution(object): def subsetsWithDup(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ subs = [[],] nums.sort() for i in range(len(nums)): if i == 0 or nums[i] != nums[i-1]: # l = size of subset by adding nums...
25
56
0.453913
74
575
3.527027
0.486486
0.076628
0.045977
0.05364
0
0
0
0
0
0
0
0.017291
0.396522
575
22
57
26.136364
0.73487
0.066087
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9909757017a6ed3e8f6328919cc6ec57a4a427d3
1,613
py
Python
tests/util.py
amirkdv/sphinxcontrib-wiki
b9369eb0e3fc04ba2670cd2d95167a1e73fadf85
[ "MIT" ]
1
2016-11-09T00:03:29.000Z
2016-11-09T00:03:29.000Z
tests/util.py
amirkdv/sphinxcontrib-wiki
b9369eb0e3fc04ba2670cd2d95167a1e73fadf85
[ "MIT" ]
null
null
null
tests/util.py
amirkdv/sphinxcontrib-wiki
b9369eb0e3fc04ba2670cd2d95167a1e73fadf85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os.path from bs4 import BeautifulSoup try: from io import open except ImportError: pass def find_sub(parent, text): """ Given an a ToC entry find an entry directly underneath it with the given text. Here is the structure of a rendered table of contents with two level...
29.327273
94
0.548667
208
1,613
4.240385
0.528846
0.022676
0.017007
0.030612
0.022676
0
0
0
0
0
0
0.003721
0.33354
1,613
54
95
29.87037
0.816744
0.527588
0
0
0
0
0.034901
0
0
0
0
0
0.052632
1
0.105263
false
0.052632
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
54cb9ca5118bdcc585adc5b56234f39f428169af
2,735
py
Python
scripts/generate_graphviz.py
dapolias/open-catalog-generator
2da4f5e23a474d55be2adef947de011148a4cef5
[ "Apache-2.0" ]
2
2016-04-20T19:21:59.000Z
2021-02-12T02:21:05.000Z
scripts/generate_graphviz.py
dapolias/open-catalog-generator
2da4f5e23a474d55be2adef947de011148a4cef5
[ "Apache-2.0" ]
null
null
null
scripts/generate_graphviz.py
dapolias/open-catalog-generator
2da4f5e23a474d55be2adef947de011148a4cef5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json import re import sys import time import os import shutil import darpa_open_catalog as doc from pprint import pprint active_content_file = sys.argv[1] data_dir = sys.argv[2] build_dir = sys.argv[3] darpa_links = sys.argv[4] date = time.strftime("%Y-%m-%d", time.localtime()) nodes = {} edg...
21.038462
143
0.633638
348
2,735
4.876437
0.261494
0.115498
0.080141
0.077784
0.327048
0.230407
0.139069
0.100177
0
0
0
0.002216
0.175137
2,735
129
144
21.20155
0.75
0.210238
0
0
0
0
0.235152
0
0
0
0
0
0
0
null
null
0
0.190476
null
null
0.119048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
54ce02e51e2c7bd54fba64fe5cba20d4e76e8bba
10,921
py
Python
markov.py
Cr1s19/Markov
ec53e4945ae9ced600785967eacf0ad6750c295e
[ "MIT" ]
null
null
null
markov.py
Cr1s19/Markov
ec53e4945ae9ced600785967eacf0ad6750c295e
[ "MIT" ]
null
null
null
markov.py
Cr1s19/Markov
ec53e4945ae9ced600785967eacf0ad6750c295e
[ "MIT" ]
null
null
null
import random import sys import string import math import array import itertools import operator import collections import os sys.setrecursionlimit(20000) def read(path,mapa): inputs = [] archivo = open(path+mapa, "r") for line in archivo.readlines(): if line[-1] == '\n': if line[0]!='...
27.032178
98
0.549309
1,254
10,921
4.772727
0.151515
0.010693
0.01203
0.00802
0.315622
0.250794
0.182122
0.174102
0.174102
0.151044
0
0.020165
0.332479
10,921
404
99
27.032178
0.800823
0.069224
0
0.374582
0
0
0.011342
0.003255
0
0
0
0
0
0
null
null
0
0.0301
null
null
0.0301
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
54d5aebb5520bf2373233a514177f29f5625b15d
4,057
py
Python
HW6_Submit/HW6_Q3.py
munir-bd/python-machine-learning-basic
b02fc22ce83895b7598bbc3aee9031684db2aa9f
[ "MIT" ]
null
null
null
HW6_Submit/HW6_Q3.py
munir-bd/python-machine-learning-basic
b02fc22ce83895b7598bbc3aee9031684db2aa9f
[ "MIT" ]
null
null
null
HW6_Submit/HW6_Q3.py
munir-bd/python-machine-learning-basic
b02fc22ce83895b7598bbc3aee9031684db2aa9f
[ "MIT" ]
null
null
null
import mnist_loader import matplotlib.pyplot as plt training_data, validation_data, test_data = mnist_loader.load_data_wrapper() import network2 # For example, if the list was [2, 3, 1] then it would be a three-layer network, with the first layer # containing 2 neurons, the second layer 3 neurons, and the third ...
40.168317
335
0.760661
578
4,057
5.119377
0.240484
0.079081
0.038527
0.018249
0.452518
0.452518
0.452518
0.41095
0.355863
0.336262
0
0.058939
0.121765
4,057
100
336
40.57
0.771541
0.237121
0
0.071429
0
0
0.049379
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.267857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
54d8db3338b5398944e1cd76e8a9bc99daa8da04
5,671
py
Python
neighbour/tests.py
DK-denno/neighbourhood
c31510b19eb6e1afc61fbe63a792c04a7f89b37e
[ "Unlicense" ]
null
null
null
neighbour/tests.py
DK-denno/neighbourhood
c31510b19eb6e1afc61fbe63a792c04a7f89b37e
[ "Unlicense" ]
null
null
null
neighbour/tests.py
DK-denno/neighbourhood
c31510b19eb6e1afc61fbe63a792c04a7f89b37e
[ "Unlicense" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from .models import Neighbourhoods,Profile,Businesses,Message,Comments # Create your tests here. class UserTest(TestCase): def setUp(self): self.user=User(username='dk',first_name='d',last_name='k',email='dk@gmail.com') ...
35.666667
113
0.664962
715
5,671
5.166434
0.106294
0.098538
0.058473
0.058473
0.65268
0.543584
0.478073
0.437737
0.380076
0.330265
0
0.002842
0.193264
5,671
159
114
35.666667
0.80459
0.004056
0
0.478992
0
0
0.056844
0
0
0
0
0
0.218487
1
0.226891
false
0
0.02521
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
54dd42df654cd0228502a540089f3b3dfb6db681
21,105
py
Python
nodeconductor/iaas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/iaas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/iaas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import logging from django.contrib.contenttypes import generic as ct_generic from django.core.exceptions import ValidationError from django.core.validators import MaxValueValidator, MinValueValidator, URLValidator from django.db import models from django.utils.encoding import p...
36.325301
118
0.6905
2,422
21,105
5.771263
0.171759
0.024467
0.047646
0.063528
0.492703
0.410216
0.312777
0.23909
0.195307
0.131492
0
0.013444
0.214072
21,105
580
119
36.387931
0.829264
0.08145
0
0.276762
0
0.002611
0.151677
0.046015
0
0
0
0.001724
0
1
0.093995
false
0.007833
0.036554
0.067885
0.553525
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
54e8e67b4d519f356dc53b7b4e2bc3751990a71e
1,702
py
Python
mcpgpio.py
shellscript-magazine/raspi_article
80fba51c8a2ab3eda14c4d9237570126066499c6
[ "MIT" ]
null
null
null
mcpgpio.py
shellscript-magazine/raspi_article
80fba51c8a2ab3eda14c4d9237570126066499c6
[ "MIT" ]
null
null
null
mcpgpio.py
shellscript-magazine/raspi_article
80fba51c8a2ab3eda14c4d9237570126066499c6
[ "MIT" ]
null
null
null
from smbus import SMBus class MCPGPIO(): __IODIR = [0x00, 0x01] # レジスタ番号 __GPPU = [0x0C, 0x0D] __GPIO = [0x12, 0x13] __OLAT = [0x14, 0x15] INPUT = 1 OUTPUT = 0 INPUTPULLUP = 3 HIGH = 1 LOW = 0 def __init__(self,address = 0x20): self.bus = SMBus(1) self.ad...
28.366667
72
0.579906
267
1,702
3.486891
0.202247
0.090226
0.105263
0.189044
0.578947
0.578947
0.578947
0.574651
0.55102
0.55102
0
0.056604
0.252644
1,702
60
73
28.366667
0.675314
0.003525
0
0.142857
0
0
0
0
0
0
0.028319
0
0
1
0.163265
false
0
0.020408
0.040816
0.44898
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
54eb8585a0995c019fbe01c742de301adb63bb07
423
py
Python
src/Foundation/Log/practice38.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
src/Foundation/Log/practice38.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
src/Foundation/Log/practice38.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # logconf.yamlを用いたロガーの設定 # pipでPyYAMLをインストール # pip install PyYAML # Windowsの場合 # UnicodeDecodeErrorが発生する場合 # chcpで現在の文字コードがShiftJIS(932)である場合 # chcp 65001でUTF-8に変更してから再度インストールする from __future__ import print_function import yaml from logging import config, getLogger config.dictConfig(yaml.load(...
24.882353
74
0.789598
46
423
7.065217
0.782609
0.024615
0
0
0
0
0
0
0
0
0
0.028796
0.096927
423
16
75
26.4375
0.82199
0.437352
0
0
0
0
0.113537
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
1
54f6267a576e3e2e28789c3448ff1f03e4e94f55
462
py
Python
cloudmesh/management/printer/Printer.py
manjunathsivan/cm
fedc33b503e7fd59176678e775c024fbb5e952c0
[ "Apache-2.0" ]
null
null
null
cloudmesh/management/printer/Printer.py
manjunathsivan/cm
fedc33b503e7fd59176678e775c024fbb5e952c0
[ "Apache-2.0" ]
1
2020-10-21T18:15:46.000Z
2020-10-21T18:15:46.000Z
cloudmesh/management/printer/Printer.py
robludwig/cm
5b18012def16d4d845141798652bb11d5564e9db
[ "Apache-2.0" ]
null
null
null
class Printer(object): def __init__(self, sort_keys=None, order=None, header=None): self.sort_keys = sort_keys self.order = order self.header = header def print(self, d, format='table'): print(self.value(d,format=format)) def value(self, d, format='table'): return ...
25.666667
64
0.5671
56
462
4.535714
0.321429
0.125984
0.094488
0.125984
0
0
0
0
0
0
0
0
0.318182
462
17
65
27.176471
0.806349
0
0
0
0
0
0.021645
0
0
0
0
0
0
1
0.214286
false
0
0
0.071429
0.357143
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
54ff424a3b302fd69aad010d06730f09e50bf7ab
659
py
Python
backend/client.py
Harin329/Masterplan
0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a
[ "Unlicense" ]
null
null
null
backend/client.py
Harin329/Masterplan
0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a
[ "Unlicense" ]
null
null
null
backend/client.py
Harin329/Masterplan
0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a
[ "Unlicense" ]
null
null
null
from __future__ import print_function import logging import grpc from GoalManager import GoalManager_pb2, GoalManager_pb2_grpc def run(): # NOTE(gRPC Python Team): .close() is possible on a channel and should be # used in circumstances in which the with statement does not fit the needs # of the code. ...
31.380952
85
0.738998
84
659
5.559524
0.678571
0.119914
0.077088
0
0
0
0
0
0
0
0
0.016605
0.177542
659
21
86
31.380952
0.845018
0.23824
0
0
0
0
0.128257
0.056112
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.416667
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
1
0
0
0
0
1
07007749cf0fff7e614b58974d226cfe0b39412a
2,790
py
Python
src/molecule/test/unit/verifier/test_ansible.py
Shaps/molecule
5f1f36bb2b2a4ebdb01ae8890192d70d695d5974
[ "MIT" ]
1,599
2015-11-18T01:40:26.000Z
2018-10-29T16:42:52.000Z
src/molecule/test/unit/verifier/test_ansible.py
Shaps/molecule
5f1f36bb2b2a4ebdb01ae8890192d70d695d5974
[ "MIT" ]
1,232
2015-11-18T16:56:02.000Z
2018-10-27T03:51:50.000Z
src/molecule/test/unit/verifier/test_ansible.py
mafalb/molecule
9e5a32f6d816630512ff8771e581fff3e07f56aa
[ "MIT" ]
290
2015-11-19T18:16:41.000Z
2018-10-29T18:09:13.000Z
import os import pytest from molecule import config from molecule.verifier import ansible @pytest.fixture def _patched_ansible_verify(mocker): m = mocker.patch("molecule.provisioner.ansible.Ansible.verify") m.return_value = "patched-ansible-verify-stdout" return m @pytest.fixture def _verifier_sectio...
27.623762
86
0.768817
342
2,790
5.885965
0.27193
0.038251
0.047193
0.053651
0.233979
0.211128
0.194237
0.123696
0.123696
0.123696
0
0.000825
0.131541
2,790
100
87
27.9
0.829963
0.078136
0
0.241379
0
0
0.170627
0.082587
0
0
0
0
0.293103
1
0.241379
false
0
0.068966
0.034483
0.362069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0701036b8fd86e8a523a1118919884db83a6abf7
554
py
Python
armature/cli/docker.py
buuren/armature
6675ba872dbeee59dd992890fb22b37490aa145c
[ "MIT" ]
null
null
null
armature/cli/docker.py
buuren/armature
6675ba872dbeee59dd992890fb22b37490aa145c
[ "MIT" ]
1
2021-06-01T21:54:28.000Z
2021-06-01T21:54:28.000Z
armature/cli/docker.py
buuren/armature
6675ba872dbeee59dd992890fb22b37490aa145c
[ "MIT" ]
null
null
null
import click from modules.executor import Executor MODULE = "docker" @click.group() def cli(): pass @cli.command() def build_dev_tools(): """Build dev_tools docker image""" click.echo('build_dev_tools') cli_executor.run( cli="build_dev_tools" ) @cli.command() def exec(config): ""...
14.205128
38
0.642599
69
554
5.043478
0.391304
0.114943
0.149425
0.109195
0
0
0
0
0
0
0
0
0.196751
554
38
39
14.578947
0.782022
0.166065
0
0.190476
0
0
0.122449
0
0
0
0
0
0
1
0.238095
false
0.047619
0.095238
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
1
0
0
0
0
0
0
0
1
071c51224b82bef668107e26c1501faa64a477e9
1,970
py
Python
Code/Test/FastArithmeticTest/scalar_multiplication_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
Code/Test/FastArithmeticTest/scalar_multiplication_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
Code/Test/FastArithmeticTest/scalar_multiplication_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
import unittest from DataStructures.PrimeCurves import PrimeCurves from DataStructures.Points import AffinePoint from FastArithmetic.scalar_multiplication import ScalarMultiplication class ScalarMultiplicationTest(unittest.TestCase): def test_binary_scalar_multiplication(self): curve, instance, scalar, e...
39.4
69
0.735533
212
1,970
6.537736
0.212264
0.141414
0.131313
0.136364
0.684704
0.660895
0.660895
0.660895
0.660895
0.660895
0
0.009357
0.186294
1,970
49
70
40.204082
0.855271
0
0
0.461538
0
0
0.004061
0
0
0
0
0
0.153846
1
0.179487
false
0
0.102564
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
071d9d13f98274fc5bec0889126c2c6777c93a36
321
py
Python
Community/user_inventory/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
43
2017-12-04T17:38:24.000Z
2021-12-29T09:17:17.000Z
Community/user_inventory/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
49
2017-12-07T21:02:29.000Z
2022-02-04T22:27:16.000Z
Community/user_inventory/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
82
2017-12-04T17:56:00.000Z
2021-12-29T09:17:21.000Z
# Copyright 2020 BlueCat Networks. All rights reserved. # -*- coding: utf-8 -*- type = 'api' sub_pages = [ { 'name' : 'user_inventory_page', 'title' : u'user_inventory', 'endpoint' : 'user_inventory/user_inventory_endpoint', 'description' : u'user_inventory' }, ]...
24.692308
65
0.576324
32
321
5.53125
0.6875
0.367232
0.158192
0
0
0
0
0
0
0
0
0.021739
0.283489
321
12
66
26.75
0.747826
0.233645
0
0
0
0
0.477366
0.156379
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
071e638107680bb1eae9c2a27acf235b6e09ab0a
2,693
py
Python
data_driven_acquisition/migrations/0003_auto_20191025_1641.py
adam-grandt-tts/data-driven-acquisition
2f970a2815f90f591203c02c9099642e4cbd24d8
[ "CC0-1.0" ]
1
2020-02-14T17:36:27.000Z
2020-02-14T17:36:27.000Z
data_driven_acquisition/migrations/0003_auto_20191025_1641.py
adam-grandt-tts/data-driven-acquisition
2f970a2815f90f591203c02c9099642e4cbd24d8
[ "CC0-1.0" ]
20
2020-01-21T15:04:16.000Z
2021-08-05T16:18:06.000Z
data_driven_acquisition/migrations/0003_auto_20191025_1641.py
adam-grandt-tts/data-driven-acquisition
2f970a2815f90f591203c02c9099642e4cbd24d8
[ "CC0-1.0" ]
2
2020-05-10T18:29:54.000Z
2021-03-15T18:12:07.000Z
# Generated by Django 2.2.6 on 2019-10-25 16:41 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('data_driven_acquisition', '0002_auto_20191024_1437'), ] oper...
50.811321
229
0.621983
270
2,693
6.044444
0.366667
0.053922
0.068627
0.079657
0.446691
0.395833
0.348039
0.348039
0.348039
0.348039
0
0.020329
0.232826
2,693
52
230
51.788462
0.769603
0.01671
0
0.456522
1
0
0.15873
0.028723
0
0
0
0
0
1
0
false
0
0.086957
0
0.152174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
072054be04b2277cf88c7c0dce376df28b902048
744
py
Python
samples/smoketest/smoke_test_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
samples/smoketest/smoke_test_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
samples/smoketest/smoke_test_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import asyncio from key_vault_secrets_async import KeyVaultSecrets from key_vault_keys_async import KeyVaultKeys from key_vault_certificates_async import KeyVaultCertifi...
28.615385
61
0.604839
74
744
5.878378
0.527027
0.101149
0.082759
0
0
0
0
0
0
0
0
0.001511
0.110215
744
25
62
29.76
0.655589
0.19086
0
0.125
0
0
0.204355
0.140704
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0722798d299417478d2000c4202b4dcff4c3e4c0
978
py
Python
2018-2019/Zima/Analiza Numeryczna L/bezier.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
2018-2019/Zima/Analiza Numeryczna L/bezier.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
2018-2019/Zima/Analiza Numeryczna L/bezier.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
import seaborn import math import matplotlib.pyplot as plt def binomial(i, n): """Binomial coefficient""" return math.factorial(n) / float( math.factorial(i) * math.factorial(n - i)) def bernstein(t, i, n): """Bernstein polynom""" return binomial(i, n) * (t ** i) * ((1 - t) ** (n - i)) def...
19.959184
61
0.55726
145
978
3.710345
0.372414
0.01487
0.037175
0.04461
0
0
0
0
0
0
0
0.037572
0.292434
978
48
62
20.375
0.739884
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.103448
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0723e6012aad8e52be921f54ea7cdd5f9ec06eab
22,124
py
Python
app.py
open-modex/result_comparison
b2afc3041da597005c63ef0a6fb893fc2d45a52e
[ "MIT" ]
null
null
null
app.py
open-modex/result_comparison
b2afc3041da597005c63ef0a6fb893fc2d45a52e
[ "MIT" ]
34
2021-04-21T13:56:42.000Z
2021-12-08T16:02:32.000Z
app.py
open-modex/result_comparison
b2afc3041da597005c63ef0a6fb893fc2d45a52e
[ "MIT" ]
2
2021-02-01T09:30:05.000Z
2021-07-15T11:17:09.000Z
import json import pathlib import urllib3 import dash from dash.dependencies import Input, Output, State, ALL, ClientsideFunction from dash.exceptions import PreventUpdate from dash.dash import no_update import dash_html_components as html import dash_bootstrap_components as dbc from flask import flash, get_flashed_m...
34.56875
102
0.683104
2,611
22,124
5.467637
0.093451
0.060871
0.046442
0.015691
0.755113
0.703418
0.663421
0.545671
0.481577
0.422737
0
0.000621
0.19915
22,124
639
103
34.622848
0.805113
0.040228
0
0.479705
0
0
0.173716
0.031546
0
0
0
0
0
1
0.03321
false
0.001845
0.03321
0
0.123616
0.001845
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
072886b330f89f033e48d65254dd10939e511423
1,029
py
Python
flows/statestore/tests/utils.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
104
2015-01-05T14:29:16.000Z
2021-11-08T11:20:24.000Z
flows/statestore/tests/utils.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
4
2015-09-23T11:14:50.000Z
2020-03-21T06:08:34.000Z
flows/statestore/tests/utils.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
16
2015-01-05T10:13:44.000Z
2022-02-14T05:21:23.000Z
from flows.statestore.tests.models import TestModel def store_state_works(case, store): test_model = TestModel.objects.create(fruit='apple', count=34) task_id = '10293847565647382910abdcef1029384756' state = {'a': 1, 'b': 'cake', 'model': test_model, '...
30.264706
67
0.64723
125
1,029
5.128
0.304
0.168487
0.087363
0.084243
0.135725
0
0
0
0
0
0
0.049938
0.221574
1,029
33
68
31.181818
0.750312
0
0
0
0
0
0.091351
0.034985
0
0
0
0
0.454545
1
0.045455
false
0
0.045455
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
072de9a38014f7224d040da16996244e3b0410bc
1,073
py
Python
Python/bucleWhileMenu.py
Kennethowl/Practicas-Java-y-Python
b7be57970e0786e3db31768267c6e5e1c5c88bdc
[ "MIT" ]
null
null
null
Python/bucleWhileMenu.py
Kennethowl/Practicas-Java-y-Python
b7be57970e0786e3db31768267c6e5e1c5c88bdc
[ "MIT" ]
null
null
null
Python/bucleWhileMenu.py
Kennethowl/Practicas-Java-y-Python
b7be57970e0786e3db31768267c6e5e1c5c88bdc
[ "MIT" ]
null
null
null
from os import system while True: system("cls") print("1 - Suma") print("2 - Resta") print("3 - Multiplicacion") print("4 - Division") print("0 - Salir") opcion = int(input("Ingrese una opcion: ")) if opcion == 1: a = int(input("Ingrese a: ")) b = int(input("Ingrese b: ...
28.236842
47
0.473439
132
1,073
3.848485
0.25
0.047244
0.265748
0.125984
0.494094
0.346457
0.267717
0.267717
0.267717
0.267717
0
0.014184
0.342964
1,073
38
48
28.236842
0.706383
0
0
0.333333
0
0
0.297952
0
0
0
0
0
0
1
0
false
0
0.027778
0
0.027778
0.277778
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
072ed9cca2d1ae7b49f7d50c64b2adfece59c017
5,541
py
Python
partial-persistence.py
matthewdcooper/data-structures
82f1d0c6296fbbfd33474de85377a1b1ff6e3c3f
[ "MIT" ]
null
null
null
partial-persistence.py
matthewdcooper/data-structures
82f1d0c6296fbbfd33474de85377a1b1ff6e3c3f
[ "MIT" ]
null
null
null
partial-persistence.py
matthewdcooper/data-structures
82f1d0c6296fbbfd33474de85377a1b1ff6e3c3f
[ "MIT" ]
null
null
null
""" One way of improving the memory efficiency of the NaiveStack would be to recognise that: [] [1] [1,2] [1,2,3] Holds the same information as: [1, 2, 3] (on the assumption that there have been no pops) So rather than creating a new version for every push and every pop, we could create a new version only on pops...
35.980519
116
0.681646
838
5,541
4.4642
0.24105
0.038225
0.025662
0.017108
0.420209
0.341887
0.259556
0.215985
0.215985
0.215985
0
0.006634
0.238224
5,541
153
117
36.215686
0.879649
0.527342
0
0.444444
0
0
0.004751
0
0
0
0
0
0
1
0.222222
false
0
0
0.041667
0.347222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
073183f0d0f53bb09277799e8bbda9b92ef09947
1,809
py
Python
taskcat.py
jayyeras/taskcat-beta
460fc157bf0a3118a808dac0914bbefe7dd996a2
[ "Apache-2.0", "MIT" ]
null
null
null
taskcat.py
jayyeras/taskcat-beta
460fc157bf0a3118a808dac0914bbefe7dd996a2
[ "Apache-2.0", "MIT" ]
null
null
null
taskcat.py
jayyeras/taskcat-beta
460fc157bf0a3118a808dac0914bbefe7dd996a2
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python # authors: # Tony Vattathil tonynv@amazon.com, avattathil@gmail.com # Shivansh Singh sshvans@amazon.com, # Santiago Cardenas sancard@amazon.com, # Jay McConnell, jmmccon@amazon.com """ Program License: Amazon License Python Class License: Apache 2.0 """ from __future__ import print_function imp...
30.661017
75
0.718629
242
1,809
5.181818
0.53719
0.15311
0.0311
0.043062
0.044657
0
0
0
0
0
0
0.005472
0.191819
1,809
58
76
31.189655
0.852257
0.377004
0
0
0
0
0.036364
0
0
0
0
0.017241
0
1
0.038462
false
0
0.153846
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
073bd2b9d8e1e05877c3dcf3efcafe59664c1970
30,953
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/simplechat/simplechat.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/simplechat/simplechat.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/simplechat/simplechat.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- """ This module is a simple XMPP chat client demonstrating the use of headstock. Many Kamaelia components are created to manage different XMPP kind of stanzas. * RosterHandler: * querying the server for the roster list * if supported by server, asking for the last activity of each contact ...
44.155492
120
0.505185
2,797
30,953
5.522345
0.151949
0.013143
0.023307
0.010359
0.303897
0.237537
0.2029
0.185744
0.177522
0.158488
0
0.001898
0.387103
30,953
700
121
44.218571
0.812292
0.066746
0
0.344554
0
0
0.190263
0.018499
0
0
0
0
0
0
null
null
0.033663
0.057426
null
null
0.023762
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
073d67a38a1a08a2b4d966b68803a59c2f09a95c
3,242
py
Python
table.py
XabierGA/pylabutils-package
e330dc5a690955fb8ecf02fc185d8016cbfe94dc
[ "MIT" ]
1
2019-04-05T13:46:12.000Z
2019-04-05T13:46:12.000Z
table.py
XabierGA/pylabutils-package
e330dc5a690955fb8ecf02fc185d8016cbfe94dc
[ "MIT" ]
null
null
null
table.py
XabierGA/pylabutils-package
e330dc5a690955fb8ecf02fc185d8016cbfe94dc
[ "MIT" ]
null
null
null
# Generate a simple Latex table from IPython.display import display, Latex # data as tuple, data_titles as tuple, precision as tuple in same order as data, # shape = 'hor' or 'ver', box = 'hor' or 'ver' or 'full' or 'none' # precision values should be str with only 1 decimal, so: '3.5f', '.3i', '.f', etc. def table(...
33.081633
91
0.394201
365
3,242
3.471233
0.205479
0.099448
0.047356
0.066298
0.35517
0.324388
0.205209
0.165746
0.131018
0.091555
0
0.005924
0.427205
3,242
97
92
33.42268
0.67636
0.078655
0
0.439024
1
0
0.133803
0.034876
0.04878
0
0
0
0
1
0.012195
false
0.012195
0.012195
0
0.085366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
073df7550d9a273302e5493b96d70860e0046a2a
1,081
py
Python
titanfp/titanic/ops.py
billzorn/fpunreal
5ba896298f2acc53652112ea4426508483d85a04
[ "MIT" ]
4
2019-02-21T06:15:26.000Z
2020-09-08T21:06:41.000Z
titanfp/titanic/ops.py
billzorn/fpunreal
5ba896298f2acc53652112ea4426508483d85a04
[ "MIT" ]
3
2019-02-22T02:21:09.000Z
2021-08-31T20:25:23.000Z
titanfp/titanic/ops.py
billzorn/fpunreal
5ba896298f2acc53652112ea4426508483d85a04
[ "MIT" ]
null
null
null
"""Standard operation codes, for multiple numerical backends.""" from enum import IntEnum, unique class RM(IntEnum): ROUND_NEAREST_EVEN = 0 RNE = 0 ROUND_NEAREST_AWAY = 1 RNA = 1 ROUND_UP = 2 RTP = 2 ROUND_DOWN = 3 RTN = 3 ROUND_TO_ZERO = 4 RTZ = 4 ROUND_AWAY_ZERO = 5 R...
14.808219
64
0.502313
156
1,081
3.416667
0.801282
0.041276
0
0
0
0
0
0
0
0
0
0.168269
0.422757
1,081
72
65
15.013889
0.685897
0.053654
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.014925
0
0.985075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0748737d05912221cb7dc39586141856259bfb18
59,503
py
Python
azure-iot-device/tests/iothub/pipeline/test_pipeline_stages_iothub_mqtt.py
necoh/azure-iot-sdk-python-preview
c17eccee9041d197e21c2f2df28b99014133960b
[ "MIT" ]
35
2018-12-01T05:42:30.000Z
2021-03-10T12:23:41.000Z
azure-iot-device/tests/iothub/pipeline/test_pipeline_stages_iothub_mqtt.py
necoh/azure-iot-sdk-python-preview
c17eccee9041d197e21c2f2df28b99014133960b
[ "MIT" ]
81
2018-11-20T20:01:43.000Z
2019-09-06T23:57:17.000Z
azure-iot-device/tests/iothub/pipeline/test_pipeline_stages_iothub_mqtt.py
necoh/azure-iot-sdk-python-preview
c17eccee9041d197e21c2f2df28b99014133960b
[ "MIT" ]
18
2019-03-19T18:53:43.000Z
2021-01-10T09:47:24.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import fun...
41.093232
215
0.71472
7,502
59,503
5.263796
0.054386
0.026742
0.018841
0.026792
0.779761
0.724658
0.682063
0.639343
0.59723
0.567626
0
0.006272
0.196175
59,503
1,447
216
41.121631
0.819339
0.016016
0
0.47619
0
0.00873
0.200256
0.07112
0
0
0
0
0.078571
1
0.090476
false
0.011905
0.011905
0.02381
0.143651
0.003175
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
074988496b9e89859d6c9d98c8bdfb8e30f00ff2
552
py
Python
Mundo1/ex018-cos_sin_tg.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex018-cos_sin_tg.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex018-cos_sin_tg.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
'''import math ang = float(input('Qual o ângulo?')) print('Cosseno vale {}'.format(math.cos(math.radians(ang)))) print('Seno vale {}'.format(math.sin(math.radians(ang)))) print('Tangente vale {}'.format(math.tan(math.radians(ang))))''' # ângulo está em grau, tem que converter para radianos com math.radians() from mat...
39.428571
73
0.690217
84
552
4.535714
0.345238
0.183727
0.15748
0.089239
0.472441
0.209974
0.209974
0.209974
0.209974
0
0
0.005988
0.092391
552
13
74
42.461538
0.754491
0.547101
0
0
0
0
0.282787
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
075033522333fa2447330c1cecd813ef92791124
16,344
py
Python
tools/bindsnoop.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
6
2020-01-09T23:01:43.000Z
2020-04-25T01:06:03.000Z
tools/bindsnoop.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
null
null
null
tools/bindsnoop.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
1
2019-02-26T10:06:31.000Z
2019-02-26T10:06:31.000Z
#!/usr/bin/python # # bindsnoop Trace IPv4 and IPv6 binds()s. # For Linux, uses BCC, eBPF. Embedded C. # # based on tcpconnect utility from Brendan Gregg's suite. # # USAGE: bindsnoop [-h] [-t] [-E] [-p PID] [-P PORT[,PORT ...]] [-w] # [--count] [--cgroupmap mappath] [--mntnsmap mappath]...
32.173228
79
0.630935
2,240
16,344
4.349554
0.202232
0.021554
0.014369
0.020117
0.420918
0.349892
0.292723
0.231653
0.212973
0.19922
0
0.034856
0.241679
16,344
507
80
32.236686
0.751251
0.082844
0
0.257353
0
0
0.61856
0.102636
0
0
0.001606
0
0
1
0.014706
false
0.002451
0.02451
0.002451
0.063725
0.063725
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07505bf826a3a4de5fe081fc4ee84672db740f90
516
py
Python
setup.py
theRealSuperMario/pascal-voc-python
bf1c39b6ebdcf4407d89ea67fc6eb0dcd869eff1
[ "MIT" ]
100
2016-04-18T03:18:40.000Z
2021-06-21T05:21:18.000Z
setup.py
theRealSuperMario/pascal-voc-python
bf1c39b6ebdcf4407d89ea67fc6eb0dcd869eff1
[ "MIT" ]
2
2020-03-20T12:59:54.000Z
2020-03-20T13:13:17.000Z
setup.py
theRealSuperMario/pascal-voc-python
bf1c39b6ebdcf4407d89ea67fc6eb0dcd869eff1
[ "MIT" ]
51
2016-06-14T17:00:32.000Z
2021-08-30T21:43:57.000Z
from setuptools import find_packages, setup setup(name="voc_utils", version="0.0", description="A python utility for loading data in Pascal VOC format", author="Michele Pratusevich", author_email='mprat@alum.mit.edu', platforms=["osx"], # or more specific, e.g. "win32", "cygwin", "osx" ...
36.857143
80
0.653101
67
516
4.955224
0.776119
0.072289
0
0
0
0
0
0
0
0
0
0.009615
0.193798
516
13
81
39.692308
0.788462
0.091085
0
0
0
0
0.35546
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
07573d573a88ab172f549504e65c811dfeb2116d
3,302
py
Python
cfgov/jobmanager/models/django.py
thephillipsequation/cfgov-refresh
1412dd4215fce5597c0ec704b0d480cf00aeb82c
[ "CC0-1.0" ]
null
null
null
cfgov/jobmanager/models/django.py
thephillipsequation/cfgov-refresh
1412dd4215fce5597c0ec704b0d480cf00aeb82c
[ "CC0-1.0" ]
null
null
null
cfgov/jobmanager/models/django.py
thephillipsequation/cfgov-refresh
1412dd4215fce5597c0ec704b0d480cf00aeb82c
[ "CC0-1.0" ]
null
null
null
from django.db import models from wagtail.admin.edit_handlers import FieldPanel, InlinePanel from wagtail.core.fields import RichTextField from modelcluster.fields import ParentalKey from modelcluster.models import ClusterableModel class ApplicantType(models.Model): applicant_type = models.CharField(max_length=...
22.310811
66
0.642944
357
3,302
5.70028
0.221289
0.081081
0.097297
0.12973
0.452088
0.405897
0.364128
0.267813
0.267813
0.16855
0
0.011741
0.251969
3,302
147
67
22.462585
0.812146
0
0
0.390476
0
0
0.068443
0
0
0
0
0
0
1
0.114286
false
0
0.047619
0.114286
0.638095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
07584f11914f356361d1081d3a0ef9dfdd16186a
2,188
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/report/render/simple.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/report/render/simple.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/report/render/simple.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import copy import xml.dom.minidom from cStringIO import StringIO import reportlab.lib from reportlab.platypus import SimpleDocTemplate, Paragraph from reportlab.lib.units import mm from reportlab.lib.pagesizes import A...
32.656716
102
0.563528
249
2,188
4.883534
0.409639
0.049342
0.049342
0.039474
0
0
0
0
0
0
0
0.021192
0.309872
2,188
66
103
33.151515
0.784106
0.042962
0
0.071429
0
0
0.181253
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0758911d9f186c3475c95e38a51984242ba925c3
847
py
Python
examples/TestesAntigos/teste_old/dao/animalDao.py
PqES/ArchPython
142b02f2c7fff9a3fb375a338af2de2e688f4004
[ "MIT" ]
6
2020-07-13T23:41:49.000Z
2022-02-01T21:02:46.000Z
examples/TestesAntigos/teste_old/dao/animalDao.py
LimaEduardo/ArchPython
5a81d0c79d7933f06c26175b1958d604b4c248df
[ "MIT" ]
null
null
null
examples/TestesAntigos/teste_old/dao/animalDao.py
LimaEduardo/ArchPython
5a81d0c79d7933f06c26175b1958d604b4c248df
[ "MIT" ]
1
2020-09-07T13:04:25.000Z
2020-09-07T13:04:25.000Z
from database import Database import pymongo #nome de variavel = sql, query, database #import mysql, database #string = "insert into", "select * from", "update from", "delete from" #dao no Nome Da Classe #dao no nome do arquivo class DAOAnimal: def __init__(self): self.database = Database() def...
24.2
94
0.624557
100
847
5.18
0.41
0.092664
0.110039
0.138996
0.225869
0.173745
0.173745
0.173745
0.173745
0
0
0
0.263282
847
35
95
24.2
0.830128
0.269185
0
0
0
0
0.122349
0
0
0
0
0
0
1
0.1875
false
0
0.125
0
0.5625
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
1
0
0
1
075c40b2ac90ea5e9fa2b97e89e1974be327ee67
904
py
Python
project euler solutions/Problem_004.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
project euler solutions/Problem_004.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
4
2020-03-10T19:20:21.000Z
2021-06-07T15:39:48.000Z
project euler solutions/Problem_004.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from math import floor def capicua(numero): numero_str = str(numero) numero_list = [] n = 0 for i in numero_str: numero_list.append(i) n += 1 for i in range(int(floor(n/2))): if numero_list[i] != numero_list[n-i-1]: ...
25.828571
158
0.606195
136
904
3.955882
0.448529
0.074349
0.033457
0.026022
0.04461
0
0
0
0
0
0
0.024427
0.275442
904
34
159
26.588235
0.796947
0.047566
0
0.071429
0
0.035714
0.213038
0
0
0
0
0
0
0
null
null
0
0.035714
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
075e6b856ae93cdae9f317bc27088989129585b2
1,312
py
Python
demo_scripts/dummy_sensor/dummy_shaken.py
IoT-Expedition/MLClientForAndroid
de658914ab3940d45bd2c9bc7b05093f8929d4e7
[ "BSD-3-Clause" ]
null
null
null
demo_scripts/dummy_sensor/dummy_shaken.py
IoT-Expedition/MLClientForAndroid
de658914ab3940d45bd2c9bc7b05093f8929d4e7
[ "BSD-3-Clause" ]
null
null
null
demo_scripts/dummy_sensor/dummy_shaken.py
IoT-Expedition/MLClientForAndroid
de658914ab3940d45bd2c9bc7b05093f8929d4e7
[ "BSD-3-Clause" ]
null
null
null
"""Dummy sensor script Sends dummy data to BuildingDepot. This script sends noises to uuids[0] to [9], and sends sin waves to uuids[10] to [13]. This emulates the situation where a TI SensorTag is being shaken """ import time import math import random from json_setting import JsonSetting from buildingdepot_helper im...
26.77551
79
0.723323
179
1,312
5.145251
0.480447
0.086862
0.043431
0.049946
0.060803
0
0
0
0
0
0
0.013761
0.169207
1,312
48
80
27.333333
0.831193
0
0
0
0
0
0.143184
0.027491
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
075eb1ea13e6a2888b7da2d08468d568e8a964c5
34,364
py
Python
Firmware/Py Scripts/smartmeshsdk-master/libs/SmartMeshSDK/protocols/xivelyConnector/xivelyConnector.py
ECE-412-Capstone-Sensor-Suite/Team-20-Sensor-Suite
ac1c1bb5383c0b9fe91caf8646ca2cb8643f607e
[ "MIT" ]
2
2021-03-03T05:03:56.000Z
2021-03-03T05:03:58.000Z
Firmware/Py Scripts/smartmeshsdk-master/build/lib/SmartMeshSDK/protocols/xivelyConnector/xivelyConnector.py
ECE-412-Capstone-Sensor-Suite/Team-20-Sensor-Suite
ac1c1bb5383c0b9fe91caf8646ca2cb8643f607e
[ "MIT" ]
null
null
null
Firmware/Py Scripts/smartmeshsdk-master/build/lib/SmartMeshSDK/protocols/xivelyConnector/xivelyConnector.py
ECE-412-Capstone-Sensor-Suite/Team-20-Sensor-Suite
ac1c1bb5383c0b9fe91caf8646ca2cb8643f607e
[ "MIT" ]
1
2021-02-27T01:15:39.000Z
2021-02-27T01:15:39.000Z
#!/usr/bin/python import logging class NullHandler(logging.Handler): def emit(self, record): pass log = logging.getLogger('xivelyConnector') log.setLevel(logging.ERROR) log.addHandler(NullHandler()) import json import threading import socket import traceback import re import time import copy import httpl...
33.010567
123
0.431644
2,674
34,364
5.475692
0.139865
0.013386
0.022948
0.016391
0.400833
0.339435
0.290534
0.233028
0.173474
0.146155
0
0.006752
0.45699
34,364
1,040
124
33.042308
0.777921
0.094925
0
0.391975
0
0
0.093947
0.005855
0
0
0
0
0.009259
0
null
null
0.010802
0.015432
null
null
0.001543
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4acaa95a3d6219315e9d524c67d41e016f45a0d4
588
py
Python
walle/service/code.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
1
2018-11-26T02:44:42.000Z
2018-11-26T02:44:42.000Z
walle/service/code.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
null
null
null
walle/service/code.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ walle-web :copyright: © 2015-2017 walle-web.io :created time: 2018-11-11 19:49:37 :author: wushuiyong@walle-web.io """ class Code(): #: 1xxx 表示用户相关: 登录, 权限 #: 未登录, 大概是永远不会变了 unlogin = 1000 #: 无此权限 not_allow = 1001 #: 尚未开通空间 space_empty = 1002...
14.7
44
0.544218
69
588
4.521739
0.681159
0.076923
0.064103
0
0
0
0
0
0
0
0
0.1125
0.319728
588
39
45
15.076923
0.665
0.357143
0
0
0
0
0.106936
0
0
0
0
0
0
1
0
false
0
0
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4accc35539338e80bf33b66b2f60ee6e376e7b4a
512
py
Python
BlogApp/migrations/0016_auto_20201017_0014.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
BlogApp/migrations/0016_auto_20201017_0014.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
BlogApp/migrations/0016_auto_20201017_0014.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-16 23:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('BlogApp', '0015_auto_20201017_0012'), ] operations = [ migrations.AlterField( mod...
25.6
125
0.619141
58
512
5.37931
0.672414
0.076923
0.089744
0.141026
0
0
0
0
0
0
0
0.082228
0.263672
512
19
126
26.947368
0.745358
0.087891
0
0
1
0
0.123318
0.05157
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4acf9234c82c7ef998c0c0a5a5dda6c0bec3e7ae
6,704
py
Python
evaluate_iq.py
yshen47/iq
9322e0776ef117f99d8dc6d61ef71c2c64cc68e4
[ "MIT" ]
59
2019-03-07T17:18:27.000Z
2021-12-18T15:48:37.000Z
evaluate_iq.py
yshen47/iq
9322e0776ef117f99d8dc6d61ef71c2c64cc68e4
[ "MIT" ]
14
2019-04-02T21:45:55.000Z
2022-03-11T23:42:03.000Z
evaluate_iq.py
yshen47/iq
9322e0776ef117f99d8dc6d61ef71c2c64cc68e4
[ "MIT" ]
12
2019-07-05T14:08:20.000Z
2021-03-28T02:37:57.000Z
"""This script is used to evaluate a model. """ from torchvision import transforms import argparse import json import logging import os import progressbar import torch from models import IQ from utils import NLGEval from utils import Dict2Obj from utils import Vocabulary from utils import get_loader from utils impor...
34.735751
80
0.62679
814
6,704
4.997543
0.296069
0.024336
0.045969
0.018437
0.120698
0.069813
0.069813
0.045723
0.016716
0
0
0.009143
0.265811
6,704
192
81
34.916667
0.817351
0.049075
0
0.075758
0
0
0.11877
0.005913
0
0
0
0
0
0
null
null
0
0.113636
null
null
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ad03b4ff8c9bc6f0553416abce0d4038438b24c
2,696
py
Python
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/jupyter_core/troubleshoot.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/jupyter_core/troubleshoot.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/jupyter_core/troubleshoot.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
1
2016-08-24T01:08:34.000Z
2016-08-24T01:08:34.000Z
#!/usr/bin/env python """ display environment information that isfrequently used to troubleshoot installations of Jupyter or IPython """ # import argparse import os import platform import subprocess import sys # def get_args(): # """ # TODO: output in JSON or xml? maybe? # """ # pass def subs(cmd): ...
25.67619
64
0.573813
320
2,696
4.71875
0.290625
0.168874
0.090066
0.039735
0.296689
0.229139
0.043709
0.043709
0
0
0
0.001485
0.250742
2,696
104
65
25.923077
0.74604
0.160237
0
0.129032
0
0
0.179382
0
0
0
0
0.019231
0
1
0.048387
false
0
0.064516
0
0.16129
0.306452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4ad1b5657427d27bf55fcc95bcbece8c09e0afc7
23,462
py
Python
tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
3
2015-02-15T18:31:10.000Z
2015-02-22T19:56:05.000Z
tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Martin Cochran # # 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 la...
34.002899
90
0.686855
3,366
23,462
4.637552
0.166072
0.036323
0.035874
0.008648
0.387892
0.307303
0.263293
0.245612
0.22524
0.22524
0
0.015131
0.194357
23,462
689
91
34.05225
0.810708
0.232631
0
0.342318
0
0
0.077451
0.006207
0
0
0
0.002903
0
0
null
null
0
0.018868
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ad3ee4807e658e32f4f623e4b150ec2fffdc2b1
2,839
py
Python
scripts/25.py
JoaquimXG/Natas-CTF
648a16dd887d9d28dff5c398408652894fa77fc7
[ "MIT" ]
null
null
null
scripts/25.py
JoaquimXG/Natas-CTF
648a16dd887d9d28dff5c398408652894fa77fc7
[ "MIT" ]
null
null
null
scripts/25.py
JoaquimXG/Natas-CTF
648a16dd887d9d28dff5c398408652894fa77fc7
[ "MIT" ]
null
null
null
#!/bin/python3 import requests import re import html.parser username = 'natas25' password = "GHF6X7YwACaYYssHVY05cFq83hRktl4c" url = 'http://%s.natas.labs.overthewire.org' % (username) #constants traversestr = "..././..././..././..././..././..././..././..././..././..././..././..././..././..././" logpath = "/var/www/...
41.75
123
0.707644
442
2,839
4.536199
0.411765
0.024439
0.024938
0.00798
0.008479
0.008479
0.00798
0.00798
0
0
0
0.016359
0.160268
2,839
67
124
42.373134
0.824664
0.622402
0
0
0
0.052632
0.383799
0.263259
0
0
0
0
0
1
0
false
0.210526
0.157895
0
0.157895
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4ad4fafea3f9438a8a4b6927854b29278d798add
1,239
py
Python
online_doctor/chamber/migrations/0001_initial.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
online_doctor/chamber/migrations/0001_initial.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
online_doctor/chamber/migrations/0001_initial.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-17 11:11 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
35.4
127
0.62954
121
1,239
6.330579
0.504132
0.041775
0.05483
0.086162
0.370757
0.370757
0.370757
0.258486
0.143603
0.143603
0
0.026998
0.252623
1,239
34
128
36.441176
0.800216
0.03632
0
0.296296
1
0
0.112416
0.017617
0
0
0
0
0
1
0
false
0
0.111111
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ad8770f73015387e93a4169e2ec620a0154603b
305
py
Python
solutions/370_range_addition.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/370_range_addition.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/370_range_addition.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def getModifiedArray(self, length: int, updates: List[List[int]]) -> List[int]: arr = [0] * (length + 1) for s, e, i in updates: arr[s] += i arr[e+1] -= i for i in range(1, length): arr[i] += arr[i-1] return arr[:-1]
30.5
83
0.472131
44
305
3.272727
0.431818
0.097222
0
0
0
0
0
0
0
0
0
0.030928
0.363934
305
9
84
33.888889
0.71134
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ad8db79494dfa5b49de75886f28430549535d02
963
py
Python
inbox/models.py
Mohamed-Kaizen/fakerz
bf93f5aa4c5899672b24f5f25a2cf6134e9238b7
[ "MIT" ]
null
null
null
inbox/models.py
Mohamed-Kaizen/fakerz
bf93f5aa4c5899672b24f5f25a2cf6134e9238b7
[ "MIT" ]
null
null
null
inbox/models.py
Mohamed-Kaizen/fakerz
bf93f5aa4c5899672b24f5f25a2cf6134e9238b7
[ "MIT" ]
null
null
null
import uuid from tortoise import fields, models from tortoise.contrib.pydantic import pydantic_model_creator class User(models.Model): name = fields.CharField(max_length=500, unique=True) picture = fields.TextField(null=True) def __str__(self) -> str: return f"{self.name}" class PydanticM...
22.928571
76
0.706127
118
963
5.567797
0.449153
0.059361
0.091324
0.073059
0.085236
0.085236
0.085236
0.085236
0
0
0
0.008838
0.17757
963
41
77
23.487805
0.820707
0
0
0.26087
0
0
0.066459
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0.086957
0.826087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4ad9035755987fe6f52c7982e045b6ce7d2dad91
1,239
py
Python
setup.py
orwell-int/agent-server-game-python
f437a1ef2393a3bec6f815fddcdb0e06fbfd8a75
[ "BSD-3-Clause" ]
null
null
null
setup.py
orwell-int/agent-server-game-python
f437a1ef2393a3bec6f815fddcdb0e06fbfd8a75
[ "BSD-3-Clause" ]
1
2015-05-05T13:55:11.000Z
2015-05-05T13:55:11.000Z
setup.py
orwell-int/agent-server-game-python
f437a1ef2393a3bec6f815fddcdb0e06fbfd8a75
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import setuptools # Hack to prevent stupid TypeError: 'NoneType' object is not callable error on # exit of python setup.py test # in multiprocessing/util.py _exit_function when # running python setup.py test (see # http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html) try: i...
30.975
80
0.624697
136
1,239
5.610294
0.742647
0.028834
0.034076
0.044561
0
0
0
0
0
0
0
0.020256
0.242938
1,239
39
81
31.769231
0.793177
0.217918
0
0
0
0
0.408009
0.02381
0
0
0
0
0.032258
1
0
true
0.032258
0.096774
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4ad928f50087ec0458e17ba17c939290c22b3cc9
1,096
py
Python
geomstats/embedded_manifold.py
tolgabirdal/geomstats
27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51
[ "MIT" ]
null
null
null
geomstats/embedded_manifold.py
tolgabirdal/geomstats
27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51
[ "MIT" ]
null
null
null
geomstats/embedded_manifold.py
tolgabirdal/geomstats
27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51
[ "MIT" ]
null
null
null
""" Manifold embedded in another manifold. """ import math from geomstats.manifold import Manifold class EmbeddedManifold(Manifold): """ Class for manifolds embedded in another manifold. """ def __init__(self, dimension, embedding_manifold): assert isinstance(dimension, int) or dimension ==...
29.621622
66
0.705292
112
1,096
6.616071
0.348214
0.129555
0.08637
0.076923
0.120108
0
0
0
0
0
0
0.001178
0.225365
1,096
36
67
30.444444
0.871614
0.080292
0
0.190476
0
0
0.177665
0.086294
0
0
0
0
0.095238
1
0.238095
false
0
0.095238
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4ad9ac2df0ac12463dbbec96ee9933d5b335c4e5
9,065
py
Python
webStorm-APICloud/python_tools/Lib/ctypes/test/test_bitfields.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
81
2017-03-13T08:24:01.000Z
2021-04-02T09:48:38.000Z
webStorm-APICloud/python_tools/Lib/ctypes/test/test_bitfields.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
6
2017-04-30T08:36:55.000Z
2017-09-22T01:37:28.000Z
webStorm-APICloud/python_tools/Lib/ctypes/test/test_bitfields.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
41
2017-03-18T14:11:58.000Z
2021-04-14T05:06:09.000Z
from ctypes import * import unittest import os import ctypes import _ctypes_test class BITS(Structure): _fields_ = [("A", c_int, 1), ("B", c_int, 2), ("C", c_int, 3), ("D", c_int, 4), ("E", c_int, 5), ("F", c_int, 6), ...
37
99
0.492223
1,147
9,065
3.681779
0.13252
0.188965
0.039782
0.092351
0.64717
0.620175
0.591286
0.515984
0.44826
0.427184
0
0.023582
0.363817
9,065
244
100
37.151639
0.708687
0.037507
0
0.357513
0
0
0.053588
0
0
0
0
0
0
0
null
null
0.005181
0.025907
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ada7b8be6196cd0b11a57b4a8e2b47555ce7f7b
433
py
Python
Code/Engine/events.py
Earlo/PyGEARlo
4cc88037281be0ecc3d0f40cb8421b47400e1bbe
[ "Apache-2.0" ]
null
null
null
Code/Engine/events.py
Earlo/PyGEARlo
4cc88037281be0ecc3d0f40cb8421b47400e1bbe
[ "Apache-2.0" ]
null
null
null
Code/Engine/events.py
Earlo/PyGEARlo
4cc88037281be0ecc3d0f40cb8421b47400e1bbe
[ "Apache-2.0" ]
null
null
null
import pygame from ..constants import * def blit_request(rect, p_surf): signal = pygame.event.Event(update_screen_event, {"rect":rect,"surf":p_surf}) pygame.event.post(signal) def func_request(func): stype = func.pop(0) f = func.pop(0) if stype == ONETIME: signal = pygame.event.Event(fu...
24.055556
81
0.662818
61
433
4.57377
0.459016
0.157706
0.121864
0.157706
0
0
0
0
0
0
0
0.005731
0.193995
433
18
82
24.055556
0.793696
0
0
0.153846
0
0
0.039171
0
0
0
0
0
0
1
0.153846
false
0.076923
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4adba87134fa38c5eedaed1027f3c20f139033e9
6,289
py
Python
pca3dvis/scenes.py
Tjstretchalot/pca3dvis
c979977624f26016118872e3ff66c7d9ff07be8d
[ "CC0-1.0" ]
7
2019-07-30T18:03:18.000Z
2019-08-15T07:43:37.000Z
pca3dvis/scenes.py
Tjstretchalot/pca3dvis
c979977624f26016118872e3ff66c7d9ff07be8d
[ "CC0-1.0" ]
1
2020-08-24T12:01:19.000Z
2020-08-24T12:01:19.000Z
pca3dvis/scenes.py
Tjstretchalot/pca3dvis
c979977624f26016118872e3ff66c7d9ff07be8d
[ "CC0-1.0" ]
null
null
null
"""Contains various scenes which are generally useful for producing projected trajectory visualizations. These scenes all work with state.ProjectedState. """ import typing import pytypeutils as tus import numpy as np import pympanim.acts as acts import pca3dvis.state as state from pca3dvis.snapshot import Proje...
36.143678
80
0.636985
779
6,289
4.949936
0.188703
0.045643
0.025674
0.039678
0.490145
0.398859
0.306017
0.295902
0.295902
0.201504
0
0.004584
0.271585
6,289
173
81
36.352601
0.837153
0.289712
0
0.23913
0
0
0.007604
0
0
0
0
0
0
1
0.206522
false
0
0.065217
0.01087
0.380435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4addb39681a4a100a1e9b762f3bc83d8b7618efe
7,037
py
Python
mycrt/server/utility/communications.py
CPSECapstone/OliveChinos
c09cd1671b4726c2367ed4b3cc27781d2d22c246
[ "Apache-2.0" ]
null
null
null
mycrt/server/utility/communications.py
CPSECapstone/OliveChinos
c09cd1671b4726c2367ed4b3cc27781d2d22c246
[ "Apache-2.0" ]
null
null
null
mycrt/server/utility/communications.py
CPSECapstone/OliveChinos
c09cd1671b4726c2367ed4b3cc27781d2d22c246
[ "Apache-2.0" ]
null
null
null
import boto3 import pymysql as sql import sqlite3 as util_sql import os # One instance of a ComManager object will be used per process class ComManager: ''' A manager object that is in charge of handling multiple outgoing connections from the server. It is tasked with both Sqlite, MySql, and Boto3 connections. ...
33.193396
163
0.543413
745
7,037
5.01745
0.245638
0.038523
0.048154
0.020867
0.175227
0.139647
0.139647
0.12199
0.094703
0.094703
0
0.001602
0.379139
7,037
211
164
33.350711
0.853971
0.293449
0
0.261261
0
0
0.248888
0
0
0
0
0
0
1
0.09009
false
0.054054
0.036036
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4addf152a26f417e5df36bff9f714c58c6155c48
11,474
py
Python
test/test_db.py
VDBWRAIR/pyjip
dc147afebbabd550828fa51cc052db4aa07c5d3b
[ "BSD-3-Clause" ]
18
2015-05-08T06:39:09.000Z
2020-11-30T10:51:36.000Z
test/test_db.py
VDBWRAIR/pyjip
dc147afebbabd550828fa51cc052db4aa07c5d3b
[ "BSD-3-Clause" ]
9
2015-01-02T09:55:53.000Z
2016-02-03T18:31:10.000Z
test/test_db.py
VDBWRAIR/pyjip
dc147afebbabd550828fa51cc052db4aa07c5d3b
[ "BSD-3-Clause" ]
5
2016-02-01T16:52:36.000Z
2021-03-10T12:08:39.000Z
#!/usr/bin/env python import os import jip import jip.db import datetime import pytest @pytest.fixture(scope="function", params=["test.db", pytest.mark.mysqltest(pytest.config.option.mysql)]) def db(request): param = request.param def clean(): # the global session needs...
30.036649
75
0.625675
1,861
11,474
3.752284
0.095648
0.093799
0.041529
0.039095
0.758556
0.721466
0.643563
0.597308
0.574968
0.570528
0
0.008928
0.209256
11,474
381
76
30.115486
0.760719
0.041921
0
0.551155
0
0
0.048018
0
0
0
0
0
0.217822
1
0.079208
false
0
0.016502
0
0.09901
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ae00cfc1b2d317cd6ef72cd08251e882fa482a6
371
py
Python
Adafruit_Proximity_Trinkey/Capacitive_Touch_One_Pad/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Adafruit_Proximity_Trinkey/Capacitive_Touch_One_Pad/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Adafruit_Proximity_Trinkey/Capacitive_Touch_One_Pad/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ CircuitPython Capacitive Touch Pad Example - Print to the serial console when one pad is touched. """ import time import board import touchio touch = touchio.TouchIn(board.TOUCH1) while True: if touch.value:...
20.611111
97
0.735849
50
371
5.46
0.76
0
0
0
0
0
0
0
0
0
0
0.022876
0.175202
371
17
98
21.823529
0.869281
0.522911
0
0
0
0
0.071856
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4ae1c7ff66d6f549942b5557ffdd3b9caf7fb232
3,043
py
Python
windows/bin/cnf.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
4
2020-04-07T14:45:02.000Z
2021-12-28T22:43:16.000Z
windows/bin/cnf.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
null
null
null
windows/bin/cnf.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
2
2020-04-08T03:12:06.000Z
2021-03-04T20:33:03.000Z
#!/usr/bin/python EX_NOTFOUND = 127 SUDO_CMD = "sudo" INSTALL_CMD = "zypper install" def print_found(rows): print >> sys.stderr print >> sys.stderr, ngettext("The program '%(prog)s' can be found in the following package:", "The program '%(prog)s' can be found in following packages:", len(rows)) % \ ({...
27.917431
175
0.621098
454
3,043
4.077093
0.255507
0.08644
0.15127
0.055105
0.270124
0.220421
0.142626
0.114533
0.048622
0.048622
0
0.009376
0.193888
3,043
108
176
28.175926
0.74521
0.005258
0
0.282353
0
0.047059
0.248843
0
0
0
0
0
0
0
null
null
0.011765
0.058824
null
null
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ae51eed4228c613cfebea9b8441809884002726
1,831
py
Python
src/HelloWorld-LPC/cmake/build.py
grbd/GBD.Embedded.CMake4Mbed
b0b61af1be3f36604aeb4dc5cf671720cd12a2ba
[ "Apache-2.0" ]
null
null
null
src/HelloWorld-LPC/cmake/build.py
grbd/GBD.Embedded.CMake4Mbed
b0b61af1be3f36604aeb4dc5cf671720cd12a2ba
[ "Apache-2.0" ]
null
null
null
src/HelloWorld-LPC/cmake/build.py
grbd/GBD.Embedded.CMake4Mbed
b0b61af1be3f36604aeb4dc5cf671720cd12a2ba
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python2 """ Script used to build the project via cmake """ from os.path import join, abspath, dirname import sys, os, shutil, subprocess verbose = True # Options for build CMAKE_GENERATOR = "NMake Makefiles" BUILD_CMD = ["nmake"] CMAKE_TCFILE = "cmake/ToolChainOptions.cmake" CMAKE_DEBUG = False # S...
26.926471
101
0.699072
240
1,831
5.133333
0.420833
0.048701
0.042208
0.035714
0.077922
0.077922
0.077922
0.077922
0.077922
0.077922
0
0.002024
0.190606
1,831
67
102
27.328358
0.82861
0.121245
0
0
0
0
0.121683
0.03301
0
0
0
0
0
0
null
null
0
0.073171
null
null
0.195122
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1