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
19d784d07fc0c86b1ea26f1424067045cc5e28b2
942
py
Python
bloxplorer/exceptions.py
valinsky/bloxplorer
4668d62605518b905b75d21f5f06a3aec30fa3bd
[ "MIT" ]
16
2019-08-18T00:49:25.000Z
2021-11-29T14:54:45.000Z
bloxplorer/exceptions.py
valinsky/bloxplorer
4668d62605518b905b75d21f5f06a3aec30fa3bd
[ "MIT" ]
1
2020-06-05T05:51:58.000Z
2020-07-26T21:13:25.000Z
bloxplorer/exceptions.py
valinsky/bloxplorer
4668d62605518b905b75d21f5f06a3aec30fa3bd
[ "MIT" ]
2
2020-10-02T14:04:14.000Z
2021-02-28T13:11:57.000Z
class BloxplorerException(Exception): def __init__(self, message, resource_url, request_method): self.message = message self.resource_url = resource_url self.request_method = request_method def __str__(self): return f'{self.message} (URL: {self.resource_url}, Method: {self.requ...
28.545455
90
0.710191
98
942
6.438776
0.22449
0.122029
0.085578
0.118859
0.413629
0.413629
0.351823
0.263074
0
0
0
0
0.192144
942
32
91
29.4375
0.829172
0
0
0.238095
0
0
0.187898
0.046709
0
0
0
0
0
1
0.190476
false
0.142857
0
0.095238
0.52381
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
19de0d63daab8f5d8484b724808c3a29a58eaa8e
241
py
Python
mbq/atomiq/__version__.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
mbq/atomiq/__version__.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
9
2018-09-17T20:50:43.000Z
2018-12-07T21:19:56.000Z
mbq/atomiq/__version__.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
__author__ = 'Managed by Q, Inc.', __author_email__ = 'open-source@managedbyq.com' __description__ = 'MBQ Atomiq' __license__ = 'Apache 2.0' __title__ = 'mbq.atomiq' __url__ = 'https://github.com/managedbyq/mbq.atomiq' __version__ = '1.1.0'
30.125
52
0.73444
32
241
4.625
0.71875
0.182432
0
0
0
0
0
0
0
0
0
0.023256
0.107884
241
7
53
34.428571
0.665116
0
0
0
0
0
0.493776
0.107884
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
19e8a5f10675788fd604e811a576bf8eb664aeea
4,902
py
Python
src/grad_feature.py
caixhstrive/Mini_Xception
0cf7ce88d9cbe56f0dc20b0ef2850a499c033ce3
[ "MIT" ]
3
2018-11-21T06:51:57.000Z
2018-11-21T08:20:53.000Z
src/grad_feature.py
caixhstrive/Mini_Xception
0cf7ce88d9cbe56f0dc20b0ef2850a499c033ce3
[ "MIT" ]
null
null
null
src/grad_feature.py
caixhstrive/Mini_Xception
0cf7ce88d9cbe56f0dc20b0ef2850a499c033ce3
[ "MIT" ]
null
null
null
'''Visualization of the filters of VGG16, via gradient ascent in input space. This script can run on CPU in a few minutes. Results example: http://i.imgur.com/4nj4KjN.jpg ''' import os import time import numpy as np from keras.applications import vgg16 from keras.preprocessing.image import save_img from keras.models i...
32.463576
83
0.688902
771
4,902
4.242542
0.319066
0.03852
0.015286
0.016509
0.037909
0.020789
0.020789
0.020789
0
0
0
0.031266
0.210526
4,902
150
84
32.68
0.813953
0.349041
0
0
0
0
0.070517
0.033915
0
0
0
0
0
0
null
null
0
0.126582
null
null
0.075949
0
0
0
null
0
0
0
0
0
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
19ea25bfc34f291e0fb14f6dfdb0a70663327ee8
557
py
Python
customers/migrations/0004_auto_20170825_0034.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
customers/migrations/0004_auto_20170825_0034.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
customers/migrations/0004_auto_20170825_0034.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-24 21:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customers', '0003_customer_best'), ] operations = [ migrations.AlterField( ...
26.52381
159
0.626571
65
557
5.215385
0.723077
0.047198
0
0
0
0
0
0
0
0
0
0.061176
0.236984
557
20
160
27.85
0.736471
0.122083
0
0
1
0
0.185185
0
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
19ed7a8cb4857930696b61534f871f89157e9338
1,196
py
Python
vc2/wav_slowdown.py
ta1fukawa/vc-beta
c3a80c44be90f72bfe0bcac08f27c4882700c9b6
[ "MIT" ]
null
null
null
vc2/wav_slowdown.py
ta1fukawa/vc-beta
c3a80c44be90f72bfe0bcac08f27c4882700c9b6
[ "MIT" ]
null
null
null
vc2/wav_slowdown.py
ta1fukawa/vc-beta
c3a80c44be90f72bfe0bcac08f27c4882700c9b6
[ "MIT" ]
null
null
null
import csv import os import pathlib import sys import librosa import numpy as np import scipy.signal import soundfile as sf sys.path.append('./julius4seg') from julius4seg.sp_inserter import ModelType from sample.run_segment import run_segment def main(): src_path = './resource/seiren_jvs011' tgt_path = '....
25.446809
79
0.651338
176
1,196
4.136364
0.397727
0.032967
0.054945
0.057692
0.10989
0.068681
0
0
0
0
0
0.024283
0.242475
1,196
46
80
26
0.779249
0
0
0
0
0
0.07107
0.047659
0
0
0
0
0
1
0.03125
false
0
0.3125
0
0.34375
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
19fab701d8733aa242254851945a728cdb2eb494
353
py
Python
floodsystem/analysis.py
CalumStevenson/Lab-Group-22-1ALent-Computing
30dd6c51f9db7c1f7286c9592f3661ad78cb6562
[ "MIT" ]
null
null
null
floodsystem/analysis.py
CalumStevenson/Lab-Group-22-1ALent-Computing
30dd6c51f9db7c1f7286c9592f3661ad78cb6562
[ "MIT" ]
null
null
null
floodsystem/analysis.py
CalumStevenson/Lab-Group-22-1ALent-Computing
30dd6c51f9db7c1f7286c9592f3661ad78cb6562
[ "MIT" ]
1
2022-01-28T10:27:49.000Z
2022-01-28T10:27:49.000Z
from sqlite3 import DateFromTicks import matplotlib import matplotlib.dates from matplotlib.dates import date2num import numpy def polyfit(dates,levels,p): dateFloat = [] d0 = 0 for date in dates: dateFloat.append(date2num(date)) polyCoeff = numpy.polyfit(dateFloat,levels,p) poly = numpy.pol...
27.153846
49
0.733711
45
353
5.755556
0.511111
0.123552
0
0
0
0
0
0
0
0
0
0.02439
0.186969
353
13
50
27.153846
0.878049
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
19fcd5f5a186b3759b48828a6e288cc02bd0705c
359
py
Python
py/counting_sort.py
fishyFrogFace/algos
ce38f5ffffc0191c653829f53e8c5f83b5e5e1d4
[ "BSD-3-Clause" ]
null
null
null
py/counting_sort.py
fishyFrogFace/algos
ce38f5ffffc0191c653829f53e8c5f83b5e5e1d4
[ "BSD-3-Clause" ]
null
null
null
py/counting_sort.py
fishyFrogFace/algos
ce38f5ffffc0191c653829f53e8c5f83b5e5e1d4
[ "BSD-3-Clause" ]
null
null
null
def counting_sort(A, B, k): C = [0 for i in range(0, k+1)] for j in A: C[j] += 1 for i in range(1, k+1): C[i] += C[i-1] for n in reversed(A): B[C[n]-1] = n C[n] = C[n] - 1 return B if __name__ == "__main__": myList = [4,0,3,6,1,5,7,0,4] otherList = [0 for i in range(0, len(myList))] pri...
23.933333
48
0.54039
79
359
2.329114
0.367089
0.065217
0.097826
0.179348
0.141304
0.141304
0
0
0
0
0
0.078358
0.253482
359
15
49
23.933333
0.608209
0
0
0
0
0
0.022222
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
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
19fe670a80e8424eff641434ef5b626c2c7352d1
377
py
Python
denoncommander/config.py
xFatal/Denon-Commander
f7a8ff79996c0ddcb9746ce4efae82e30585b9a4
[ "MIT" ]
2
2020-04-13T16:17:10.000Z
2020-07-16T15:56:54.000Z
denoncommander/config.py
aleksanderpsuj/Denon-Commander
f7a8ff79996c0ddcb9746ce4efae82e30585b9a4
[ "MIT" ]
null
null
null
denoncommander/config.py
aleksanderpsuj/Denon-Commander
f7a8ff79996c0ddcb9746ce4efae82e30585b9a4
[ "MIT" ]
null
null
null
class APP: APPLICATION = "denon-commander" AUTHOR = "Aleksander Psuj" VERSION = "V1.0" class CONNECTION: # I recommend to set static IP address on device IP = "192.168.1.150" class DEFAULT: # Default volume from -80 to 18 VOLUME = "-40" # Default input INPUT = "GAME" ...
22.176471
53
0.602122
48
377
4.708333
0.770833
0.079646
0
0
0
0
0
0
0
0
0
0.068702
0.30504
377
16
54
23.5625
0.793893
0.289125
0
0
0
0
0.259109
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c207298ed391be0ede805a422ca45338c5c56de1
795
py
Python
_/chapter5-OpenStack/ImageService/uploadImage.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
3
2018-03-27T14:34:48.000Z
2021-10-04T16:28:19.000Z
_/chapter5-OpenStack/ImageService/uploadImage.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
null
null
null
_/chapter5-OpenStack/ImageService/uploadImage.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
1
2021-08-27T23:51:28.000Z
2021-08-27T23:51:28.000Z
# Import the OpenStack connection class from the SDK from openstack import connection # Create a connection object by calling the constructor and pass the security information conn = connection.Connection(auth_url="http://192.168.0.106/identity", project_name="demo", username="admin", password="manoj", user_domain_id=...
26.5
89
0.691824
103
795
5.213592
0.572816
0.081937
0.055866
0
0
0
0
0
0
0
0
0.015576
0.192453
795
29
90
27.413793
0.820872
0.283019
0
0
0
0
0.293805
0
0
0
0
0
0
1
0.052632
false
0.052632
0.052632
0
0.105263
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
c2098ad815f4cb7c68fca7bd4ce3264a75045f44
772
py
Python
exercicios/ex042.py
renaisaalves/Python-CursoemVideo
ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808
[ "MIT" ]
null
null
null
exercicios/ex042.py
renaisaalves/Python-CursoemVideo
ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808
[ "MIT" ]
null
null
null
exercicios/ex042.py
renaisaalves/Python-CursoemVideo
ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808
[ "MIT" ]
null
null
null
#ex042: Refaça o DESAFIO 35 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado: #– EQUILÁTERO: todos os lados iguais #– ISÓSCELES: dois lados iguais, um diferente #– ESCALENO: todos os lados diferentes r1 = float(input('Primeiro segmento: ')) r2 = float(input('Segundo segmento: ')) r...
51.466667
114
0.673575
117
772
4.470085
0.452991
0.030593
0.034417
0.120459
0.269598
0.269598
0.269598
0.269598
0.187381
0.187381
0
0.07764
0.165803
772
15
115
51.466667
0.729814
0.296632
0
0
0
0
0.52037
0
0
0
0
0.066667
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
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
c20c9b9e7daf329783dac6a7f8fe65e6a5f6a5df
3,963
py
Python
Mapnik/GenerateStudyMap.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
4
2020-09-16T10:45:15.000Z
2021-05-06T04:34:32.000Z
Mapnik/GenerateStudyMap.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
null
null
null
Mapnik/GenerateStudyMap.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
2
2020-07-06T18:03:40.000Z
2022-02-15T12:45:34.000Z
#!/usr/bin/env python import mapnik m = mapnik.Map(1000, 1000, '+init=epsg:4326') # create a map with a given width and height in pixels and projected in WGS 84. m.background = mapnik.Color('#87CEFF') # set background colour. ssStyles = mapnik.Style() # style object to hold rules for Study Site ssRules = mapnik.Rul...
42.612903
161
0.782993
592
3,963
5.150338
0.248311
0.019679
0.023614
0.031486
0.439816
0.437848
0.400459
0.333224
0.297803
0.233191
0
0.029753
0.109513
3,963
92
162
43.076087
0.834231
0.344184
0
0
0
0
0.124756
0.008187
0
0
0
0
0
0
null
null
0
0.018519
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c20cdd6bb493263e0eab1c9f354578fa9ba6904c
1,719
py
Python
src/main/python/transform.py
darshan-sj/DataflowTemplates
0f2353979e797b811727953d3149f50531d87048
[ "ECL-2.0", "Apache-2.0" ]
828
2018-02-10T05:11:56.000Z
2022-03-30T05:44:31.000Z
src/main/python/transform.py
darshan-sj/DataflowTemplates
0f2353979e797b811727953d3149f50531d87048
[ "ECL-2.0", "Apache-2.0" ]
320
2018-02-11T16:28:21.000Z
2022-03-29T14:43:51.000Z
src/main/python/transform.py
darshan-sj/DataflowTemplates
0f2353979e797b811727953d3149f50531d87048
[ "ECL-2.0", "Apache-2.0" ]
683
2018-02-14T18:13:28.000Z
2022-03-23T13:41:37.000Z
""" Copyright 2020 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 required by applicable law or agreed to in...
29.135593
74
0.706806
261
1,719
4.555556
0.498084
0.050463
0.021867
0.026913
0.050463
0
0
0
0
0
0
0.006662
0.214078
1,719
58
75
29.637931
0.873427
0.504363
0
0.068966
0
0
0.015569
0
0
0
0
0.017241
0
1
0.103448
false
0
0.068966
0
0.241379
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c20ce28ad79f5d5ac43e81004bf1d508f4f6725a
2,949
py
Python
scrapy_qtwebkit/browser_engine/_cookies_for_url.py
ArturGaspar/scrapy-qtwebkit
fe033a064560964fb5b3793a14c88e947c02a58e
[ "MIT" ]
14
2016-08-02T16:43:15.000Z
2019-10-28T12:42:24.000Z
scrapy_qtwebkit/browser_engine/_cookies_for_url.py
ArturGaspar/scrapy-qtwebkit
fe033a064560964fb5b3793a14c88e947c02a58e
[ "MIT" ]
2
2019-08-03T06:29:03.000Z
2019-08-16T03:27:03.000Z
scrapy_qtwebkit/browser_engine/_cookies_for_url.py
ArturGaspar/scrapy-qtwebkit
fe033a064560964fb5b3793a14c88e947c02a58e
[ "MIT" ]
1
2019-08-16T03:22:32.000Z
2019-08-16T03:22:32.000Z
# Copyright (c) Scrapy developers. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of condition...
34.694118
79
0.691082
390
2,949
5.164103
0.458974
0.037239
0.054618
0.02284
0.119166
0.095333
0.095333
0.067527
0.067527
0.067527
0
0.003518
0.228891
2,949
84
80
35.107143
0.882146
0.634452
0
0
0
0
0.011011
0
0
0
0
0.011905
0
1
0.068966
false
0.034483
0.137931
0
0.241379
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
c2125d35a41756c42a294c7a9676ec75c785e8be
1,633
py
Python
azure-servicebus/azure/servicebus/aio/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-servicebus/azure/servicebus/aio/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-servicebus/azure/servicebus/aio/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# ------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ------------------------------------------------------------------------- from azure....
30.811321
88
0.686467
103
1,633
10.796117
0.524272
0.024281
0.051259
0.067446
0.467626
0.467626
0.467626
0.467626
0.467626
0.467626
0
0
0.15248
1,633
52
89
31.403846
0.803468
0.181874
0
0
0
0
0.304511
0.075188
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c21e1c0035b5083bf564150e30f00c17fca2a525
494
py
Python
src/uix/components/title_and_text_content.py
stefaniavallone/kaboo
1492ef9313fa39cf6bf9ac9417a53f6e3c10921b
[ "MIT" ]
null
null
null
src/uix/components/title_and_text_content.py
stefaniavallone/kaboo
1492ef9313fa39cf6bf9ac9417a53f6e3c10921b
[ "MIT" ]
1
2022-03-17T03:02:44.000Z
2022-03-17T03:02:44.000Z
src/uix/components/title_and_text_content.py
stefaniavallone/kaboo
1492ef9313fa39cf6bf9ac9417a53f6e3c10921b
[ "MIT" ]
2
2022-03-03T16:35:22.000Z
2022-03-17T02:54:25.000Z
from kivy.lang import Builder from kivy.properties import StringProperty from kivymd.uix.boxlayout import MDBoxLayout Builder.load_file("uix/components/kv/title_and_text_content.kv") class TitleAndTextContent(MDBoxLayout): title = StringProperty('') text = StringProperty() def __init__(self, **kwargs):...
29.058824
64
0.706478
60
494
5.6
0.566667
0.080357
0
0
0
0
0
0
0
0
0
0
0.180162
494
17
65
29.058824
0.82963
0
0
0
0
0
0.09697
0.086869
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.583333
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
c224a83ae4957a26576f6514ef6a8e47675a571c
2,808
py
Python
scripts/ColladaToJson.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
4
2015-12-08T09:20:10.000Z
2019-11-25T05:25:43.000Z
scripts/ColladaToJson.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
null
null
null
scripts/ColladaToJson.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys, getopt import os.path import os import sys import cgi sys.path.append("/var/www/converter/scripts/") from daeConverter import * import string import zipfile from cStringIO import StringIO import time import kmzConverter import shutil if __name__ == '__main__': inputfile = '' ...
29.87234
142
0.584758
343
2,808
4.758017
0.338192
0.019608
0.02451
0.061275
0.277574
0.277574
0.277574
0.277574
0.277574
0.277574
0
0.043651
0.282051
2,808
93
143
30.193548
0.765873
0.014957
0
0.222222
0
0.055556
0.28996
0.040232
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.194444
0
0
0
null
0
0
0
0
0
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
c229eb5e8d1fa205dad17c07bb751c9c917d1118
2,079
py
Python
quex/engine/analyzer/examine/TEST-later/test-do.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/analyzer/examine/TEST-later/test-do.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/analyzer/examine/TEST-later/test-do.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import sys sys.path.insert(0, os.environ["QUEX_PATH"]) from quex.engine.state_machine.core import DFA from quex.engine.state_machine.TEST_help.many_shapes import * from quex.engine.analyzer.examine.TEST.helper import * from quex.engine.anal...
31.5
87
0.704666
309
2,079
4.598706
0.38835
0.054187
0.064039
0.05278
0.123856
0.049261
0
0
0
0
0
0.027155
0.185185
2,079
65
88
31.984615
0.811688
0.062049
0
0.058824
0
0
0.133676
0
0
0
0
0
0
0
null
null
0
0.156863
null
null
0.392157
0
0
0
null
0
0
0
0
0
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
c22b94c2445765cf33b49f48b6b07899802461c3
1,786
py
Python
midterm_process.py
emjosephs/scantron_grading
053d6e5194b36cc941d821d0620c91cc2c32b1ca
[ "MIT" ]
null
null
null
midterm_process.py
emjosephs/scantron_grading
053d6e5194b36cc941d821d0620c91cc2c32b1ca
[ "MIT" ]
null
null
null
midterm_process.py
emjosephs/scantron_grading
053d6e5194b36cc941d821d0620c91cc2c32b1ca
[ "MIT" ]
null
null
null
import argparse import sys parser = argparse.ArgumentParser(description="parses scantron dat files") parser.add_argument("-d","--dat", type=str, help = "dat file") parser.add_argument("-g","--grades", type=str, help = "grade output") parser.add_argument("-s","--stats", type=str, help = "stats output") parser....
28.349206
74
0.618701
227
1,786
4.814978
0.356828
0.032937
0.062214
0.042086
0
0
0
0
0
0
0
0.006494
0.223964
1,786
62
75
28.806452
0.782107
0.104703
0
0.047619
0
0
0.108568
0
0
0
0
0
0
0
null
null
0.02381
0.047619
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
c23154ad814133ea31810a0660c83e92448acead
742
py
Python
epicteller/web/handler/misc.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/web/handler/misc.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/web/handler/misc.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import base64 from fastapi import APIRouter from pydantic import BaseModel from epicteller.core.util import imghosting from epicteller.web.error.misc import BadRequestError from epicteller.web.model import BasicResponse router = APIRouter() class UploadForm(BaseModel):...
22.484848
74
0.743935
90
742
6.077778
0.533333
0.076782
0.062157
0
0
0
0
0
0
0
0
0.011272
0.163073
742
32
75
23.1875
0.869565
0.056604
0
0
0
0
0.018625
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c23fa7f66639f1a80bf94448d669ec0097f3c689
3,020
py
Python
pyfda/tests/tests_filter_blocks/test_fir/test_firs.py
tinix84/pyFDA
d9ab2ebc48733aead374c9d6be6edfc1e6ed57be
[ "MIT" ]
1
2022-03-28T19:56:36.000Z
2022-03-28T19:56:36.000Z
pyfda/tests/tests_filter_blocks/test_fir/test_firs.py
tinix84/pyFDA
d9ab2ebc48733aead374c9d6be6edfc1e6ed57be
[ "MIT" ]
null
null
null
pyfda/tests/tests_filter_blocks/test_fir/test_firs.py
tinix84/pyFDA
d9ab2ebc48733aead374c9d6be6edfc1e6ed57be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the pyFDA project hosted at https://github.com/chipmuenk/pyfda # # Copyright © pyFDA Project Contributors # Licensed under the terms of the MIT License # (see file LICENSE in root directory for details) # # Taken from https://github.com/sriyash25/filter-blocks # (c) Chri...
27.706422
95
0.600331
408
3,020
4.372549
0.455882
0.026906
0.025224
0.035314
0.073991
0.050448
0.028027
0
0
0
0
0.020457
0.303974
3,020
108
96
27.962963
0.827783
0.283444
0
0.072727
0
0
0.003749
0
0
0
0
0.009259
0
0
null
null
0
0.109091
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
c2412122fc07e589d07bd626eb38f0e05a196093
2,400
py
Python
securify/analyses/patterns/source/rtlo_pattern.py
AlexandreH/securify2
2d2ba0e1c20cdda550120ecdc1a7164db9b90e3c
[ "Apache-2.0" ]
258
2020-01-23T16:58:38.000Z
2022-03-31T17:29:25.000Z
securify/analyses/patterns/source/rtlo_pattern.py
sirhashalot/securify2
6852707449577add14bafce8e304946b3490a977
[ "Apache-2.0" ]
34
2020-01-30T06:11:58.000Z
2022-02-27T07:53:17.000Z
securify/analyses/patterns/source/rtlo_pattern.py
sirhashalot/securify2
6852707449577add14bafce8e304946b3490a977
[ "Apache-2.0" ]
66
2020-01-28T09:23:05.000Z
2022-03-22T09:01:43.000Z
import bisect import re from typing import List, Dict from securify.analyses.patterns.abstract_pattern import AbstractPattern, PatternMatch, Level, Severity, PatternMatchError, \ MatchComment, MatchSourceLocation class RightToLeftOverridePattern(AbstractPattern): regex_pattern = re.compile("\u202e".encode('u...
30
124
0.6025
265
2,400
5.30566
0.34717
0.085349
0.034139
0.040541
0.055477
0
0
0
0
0
0
0.008338
0.300417
2,400
79
125
30.379747
0.829065
0
0
0.087719
0
0
0.095
0.0275
0
0
0
0
0
1
0.140351
false
0
0.070175
0.105263
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
c243629b15f19e0401d3fd88e7a69dbccab607be
1,052
py
Python
doc/Programs/PythonCodesVeff/twobody_channel.py
NuclearTalent/NuclearStructure
7d18ed926172abeea358e95f4e95415e7b0a3498
[ "CC0-1.0" ]
7
2017-07-04T16:21:42.000Z
2019-05-24T18:10:11.000Z
doc/Programs/PythonCodesVeff/twobody_channel.py
NuclearTalent/NuclearStructure
7d18ed926172abeea358e95f4e95415e7b0a3498
[ "CC0-1.0" ]
null
null
null
doc/Programs/PythonCodesVeff/twobody_channel.py
NuclearTalent/NuclearStructure
7d18ed926172abeea358e95f4e95415e7b0a3498
[ "CC0-1.0" ]
7
2017-06-30T16:55:37.000Z
2021-05-01T07:54:49.000Z
from parity import Parity class TwobodyChannel(object): isospin_conversion = { -1 : "pp", 0 : "pn", 1 : "nn" } def __init__(this, spin, isospin, parity): this.spin = int(spin) this.isospin = int(isospin) this.parity = Parity(parity) def get_spin(this): r...
31.878788
117
0.63308
146
1,052
4.280822
0.212329
0.0576
0.112
0.048
0.3648
0.312
0.2192
0.2192
0.2192
0.2192
0
0.010949
0.218631
1,052
32
118
32.875
0.749392
0
0
0.115385
0
0
0.047529
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
df9ca17ab8d3086d1fe50cc28713284bc428619d
727
py
Python
Cactus.py
takushala/Dino
aa8267fe3b2bece6bfdbea6b950cc26fe422f265
[ "CNRI-Python", "CC-BY-3.0" ]
null
null
null
Cactus.py
takushala/Dino
aa8267fe3b2bece6bfdbea6b950cc26fe422f265
[ "CNRI-Python", "CC-BY-3.0" ]
null
null
null
Cactus.py
takushala/Dino
aa8267fe3b2bece6bfdbea6b950cc26fe422f265
[ "CNRI-Python", "CC-BY-3.0" ]
null
null
null
import pygame from random import randint import os class cactus: models = [os.path.join('assets', 'cactusBig0000.png'), os.path.join( 'assets', 'cactusSmall0000.png'), os.path.join('assets', 'cactusSmallMany0000.png')] size = [(30, 60), (20, 40), (60, 40)] def __init__(self, posX, posY): # Cons...
34.619048
101
0.646492
99
727
4.707071
0.484848
0.06867
0.064378
0.103004
0.081545
0
0
0
0
0
0
0.046957
0.209078
727
20
102
36.35
0.763478
0.110041
0
0
0
0
0.119565
0.035714
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.533333
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
dfa41bff45a4b9d305b3d087a8144f63d0298b26
9,112
py
Python
bin/responsehandlers.py
mgildenhorn/canvas_ta
dbb30ae3eb7df017a357eecfa46440dee494ee89
[ "Apache-2.0" ]
null
null
null
bin/responsehandlers.py
mgildenhorn/canvas_ta
dbb30ae3eb7df017a357eecfa46440dee494ee89
[ "Apache-2.0" ]
null
null
null
bin/responsehandlers.py
mgildenhorn/canvas_ta
dbb30ae3eb7df017a357eecfa46440dee494ee89
[ "Apache-2.0" ]
null
null
null
#add your custom response handler class to this module import json import datetime import logging import requests import time import sys import csv import os class CanvasAuthLogHandler: def __init__(self,**args): pass def __call__(self, response_object,raw_response_output,response_type,req_a...
49.79235
120
0.436128
801
9,112
4.830212
0.186017
0.051693
0.039804
0.046524
0.6061
0.6061
0.597054
0.597054
0.597054
0.587232
0
0.003692
0.43525
9,112
182
121
50.065934
0.748154
0.13367
0
0.652778
0
0
0.122283
0.005085
0
0
0
0
0
0
null
null
0.013889
0.055556
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dfaf17f95bc59ff85ee35d9fba742ad90b6eb204
2,808
py
Python
alchemy/train/prep.py
edu-gp/annotation_tool
c383cfeca9f5773e540deaad8d06996ecbb95b32
[ "Apache-2.0" ]
2
2020-07-17T11:45:05.000Z
2020-07-17T13:39:14.000Z
alchemy/train/prep.py
georgianpartners/annotation_tool
c383cfeca9f5773e540deaad8d06996ecbb95b32
[ "Apache-2.0" ]
46
2020-09-30T14:40:45.000Z
2021-02-26T14:31:14.000Z
alchemy/train/prep.py
edu-gp/annotation_tool
c383cfeca9f5773e540deaad8d06996ecbb95b32
[ "Apache-2.0" ]
null
null
null
import hashlib import os import shutil import time import hashlib from envparse import env from alchemy.db.model import ( ClassificationTrainingData, EntityTypeEnum, TextClassificationModel, ) from alchemy.shared.utils import save_json from alchemy.train.text_lookup import get_entity_text_lookup_function ...
33.035294
83
0.700499
356
2,808
5.261236
0.441011
0.025627
0.03417
0.020288
0.056594
0
0
0
0
0
0
0.005893
0.214387
2,808
84
84
33.428571
0.843155
0.239672
0
0.037037
0
0
0.125831
0.060304
0
0
0
0.011905
0
1
0.037037
false
0
0.185185
0.018519
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dfb0150194a6cdcc5c44d891dc8f6fa491f477f2
7,225
py
Python
synapse/bootstrap.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
1
2016-06-23T05:56:53.000Z
2016-06-23T05:56:53.000Z
synapse/bootstrap.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
null
null
null
synapse/bootstrap.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
null
null
null
import os import uuid import time import pika import json import socket from M2Crypto import RSA, X509, EVP, m2 from synapse.config import config from synapse.logger import logger from synapse_exceptions import SynapseException TIMEOUT = 5 log = logger(__name__) def bootstrap(options): bootstrap_opts = get_...
32.111111
79
0.555848
757
7,225
5.194188
0.297226
0.042981
0.030265
0.021363
0.038403
0.017803
0
0
0
0
0
0.011215
0.333564
7,225
224
80
32.254464
0.8054
0.017855
0
0.034483
0
0
0.121263
0
0
0
0
0
0
0
null
null
0.034483
0.057471
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
dfbcea9558bce66a20acf35269c00561e66ff5d7
1,681
py
Python
cinfo/cli/triage.py
EliadCohen/cinfo
70acd2c4c47aee4dc12b0a9e0e6cdfe2b6d902e9
[ "Apache-2.0" ]
null
null
null
cinfo/cli/triage.py
EliadCohen/cinfo
70acd2c4c47aee4dc12b0a9e0e6cdfe2b6d902e9
[ "Apache-2.0" ]
null
null
null
cinfo/cli/triage.py
EliadCohen/cinfo
70acd2c4c47aee4dc12b0a9e0e6cdfe2b6d902e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Arie Bregman # # 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 agree...
37.355556
78
0.634741
214
1,681
4.88785
0.495327
0.057361
0.034417
0.057361
0
0
0
0
0
0
0
0.006531
0.271267
1,681
44
79
38.204545
0.847347
0.406306
0
0
0
0
0.156057
0
0
0
0
0.022727
0
1
0.090909
false
0
0.136364
0
0.227273
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
dfc8c2cc34e1b6ab362d6b54fde2d37675453428
300
py
Python
reshape.py
kaushalfeb/Learning-Numpy
c8622db19a7afacb912735e4aec77b195f599a2c
[ "MIT" ]
null
null
null
reshape.py
kaushalfeb/Learning-Numpy
c8622db19a7afacb912735e4aec77b195f599a2c
[ "MIT" ]
null
null
null
reshape.py
kaushalfeb/Learning-Numpy
c8622db19a7afacb912735e4aec77b195f599a2c
[ "MIT" ]
null
null
null
import numpy as np my_list = [10,20,30,40,50,60] arr = np.array(my_list) print("Array:",arr) print('Dimension:',arr.ndim) res = arr.reshape(2,3) print(res) print("Dimension",res.ndim) new_list = [10,20,30,40,50,60,70,80] newarr=np.array(new_list) holder = newarr.reshape(2,2,2) print(holder)
14.285714
36
0.69
58
300
3.5
0.448276
0.059113
0.078818
0.098522
0.157635
0.157635
0.157635
0
0
0
0
0.123596
0.11
300
20
37
15
0.636704
0
0
0
0
0
0.083333
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.416667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
dfd1ed87a56a6edb1a385a2cdf65628cf29f142a
497
py
Python
test/parameter_tests.py
bronkhorst-developer/bronkhorst-propar
f771a1a03699327aa61ff6c77bf1a89716b6ef8c
[ "MIT" ]
null
null
null
test/parameter_tests.py
bronkhorst-developer/bronkhorst-propar
f771a1a03699327aa61ff6c77bf1a89716b6ef8c
[ "MIT" ]
null
null
null
test/parameter_tests.py
bronkhorst-developer/bronkhorst-propar
f771a1a03699327aa61ff6c77bf1a89716b6ef8c
[ "MIT" ]
1
2021-05-20T13:08:50.000Z
2021-05-20T13:08:50.000Z
import propar import time import random dut = propar.instrument('com1') print() print("Testing using propar @", propar.__file__) print() n = 10 all_parameters = dut.db.get_all_parameters() bt = time.perf_counter() for i in range(n): for p in all_parameters: dut.read_parameters([p]) et = time.perf_counter()...
23.666667
87
0.641851
72
497
4.263889
0.458333
0.211726
0.104235
0.091205
0.117264
0
0
0
0
0
0
0.022167
0.183099
497
21
88
23.666667
0.73399
0
0
0.125
0
0
0.172691
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.3125
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
dfd2b52c19aa46ac611ab18b7f89b9774325c15e
371
py
Python
booking/admin.py
sharton/booking
2ce2198eea31b9046b34126c75d954597b1d14f8
[ "MIT" ]
null
null
null
booking/admin.py
sharton/booking
2ce2198eea31b9046b34126c75d954597b1d14f8
[ "MIT" ]
null
null
null
booking/admin.py
sharton/booking
2ce2198eea31b9046b34126c75d954597b1d14f8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Booking, Route, Trip # Register your models here. admin.site.register(Route) admin.site.register(Trip) @admin.register(Booking) class Booking(admin.ModelAdmin): # fieldsets = (("User Profile", {"fields": ("name",)}),) + AuthUserAdmin.fieldsets list_displ...
23.1875
86
0.703504
44
371
5.886364
0.545455
0.069498
0.131274
0
0
0
0
0
0
0
0
0
0.142857
371
15
87
24.733333
0.814465
0.28841
0
0
0
0
0.045977
0
0
0
0
0
0
1
0
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
dfd7175028a2a16fc6b28d86d7a58728e68016ce
1,001
py
Python
src/main.py
Vizzuality/DeforestationAnalysisTool
30ce145404a333fecab05898053981f782a8e432
[ "MIT", "BSD-3-Clause" ]
5
2018-05-28T08:02:11.000Z
2022-01-22T11:34:08.000Z
src/main.py
ImazonSadGoogle/DeforestationAnalysisTool
1d2fd5f13b06265f8c043f44064c453f8d662086
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/main.py
ImazonSadGoogle/DeforestationAnalysisTool
1d2fd5f13b06265f8c043f44064c453f8d662086
[ "MIT", "BSD-3-Clause" ]
3
2016-01-18T09:37:14.000Z
2020-07-10T10:57:56.000Z
""" main.py Primary App Engine app handler """ import logging import sys, os package_dir = "packages" sys.path.insert(0, package_dir) # Allow unzipped packages to be imported # from packages folder # Append zip archives to path for zipimport for filename in os.listdir(package_dir): if filename.endswith((".zi...
20.428571
65
0.697303
135
1,001
4.977778
0.459259
0.081845
0.035714
0.041667
0
0
0
0
0
0
0
0.002535
0.211788
1,001
48
66
20.854167
0.849176
0.204795
0
0
0
0
0.037132
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
dfe04e73cdbf3e7336e78cb077778176423a539e
559
py
Python
cars/migrations/0017_report_added_by.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
cars/migrations/0017_report_added_by.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
cars/migrations/0017_report_added_by.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-07 12:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0007_auto_20210204_1848'), ('cars', '0016_report'), ] operations = [ migrations.AddFiel...
25.409091
120
0.627907
62
559
5.532258
0.693548
0.069971
0.081633
0.12828
0
0
0
0
0
0
0
0.083135
0.246869
559
21
121
26.619048
0.731591
0.080501
0
0
1
0
0.15625
0.044922
0
0
0
0
0
1
0
false
0
0.133333
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
dfe569b916b83b00bb60d4a534d3e6197d8d155f
1,747
py
Python
lcclassifier/experiments/temporal_modulation.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
lcclassifier/experiments/temporal_modulation.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
lcclassifier/experiments/temporal_modulation.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from . import _C import torch from fuzzytorch.utils import get_model_name, TDictHolder, minibatch_dict_collate from fuzzytorch.models.utils import count_parameters import numpy as np from fuzzytools.progress_bars import ProgressBar, ProgressBarMulti...
34.254902
147
0.742988
230
1,747
5.326087
0.378261
0.068571
0.081633
0.04898
0.10449
0.065306
0
0
0
0
0
0.000633
0.096165
1,747
51
148
34.254902
0.775174
0.077275
0
0.051282
0
0
0.089286
0.055632
0
0
0
0
0
1
0.025641
false
0
0.410256
0
0.487179
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
dfe942c48635435e1851bd4228eb1c963d31b8ea
280
py
Python
game_release_calendar/request.py
mtakagi/game_release_calendar
069f940d735b76d47608b71336bae21de1ae8e16
[ "MIT" ]
null
null
null
game_release_calendar/request.py
mtakagi/game_release_calendar
069f940d735b76d47608b71336bae21de1ae8e16
[ "MIT" ]
2
2020-06-01T12:28:16.000Z
2020-06-01T12:28:34.000Z
game_release_calendar/request.py
mtakagi/game_release_calendar
069f940d735b76d47608b71336bae21de1ae8e16
[ "MIT" ]
null
null
null
from urllib import request class Request: def __init__(self, url): self.url = url class Client: def __init__(self, req): self.req = req def get(self): source = request.urlopen(self.req.url) data = source.read() return data
16.470588
46
0.592857
36
280
4.388889
0.472222
0.132911
0.139241
0
0
0
0
0
0
0
0
0
0.310714
280
17
47
16.470588
0.818653
0
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.636364
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
dfea9b493f1b6a7c99cbbb19701fbb6b984245f6
1,405
py
Python
subtitler/test_misc.py
tpott/pub_musings
7d617a1fbed7c6f47fb5236fcf5cb9baffef4bce
[ "MIT" ]
null
null
null
subtitler/test_misc.py
tpott/pub_musings
7d617a1fbed7c6f47fb5236fcf5cb9baffef4bce
[ "MIT" ]
1
2021-11-28T20:55:29.000Z
2021-11-28T20:55:29.000Z
subtitler/test_misc.py
tpott/pub_musings
7d617a1fbed7c6f47fb5236fcf5cb9baffef4bce
[ "MIT" ]
null
null
null
# test_misc.py # Trevor Pottinger # Mon May 18 20:32:40 PDT 2020 import unittest import pandas as pd from misc import dict2packed, readData class TestMisc(unittest.TestCase): def test_reading(self): df = dict2packed(readData( 'audios/NrgmdOz227I.wav', 'tsvs/NrgmdOz227I.tsv', 200 )) ...
30.543478
135
0.637011
198
1,405
4.343434
0.520202
0.052326
0.087209
0.032558
0.048837
0
0
0
0
0
0
0.04878
0.182918
1,405
45
136
31.222222
0.700348
0.466904
0
0
0
0
0.190476
0.029932
0
0
0
0.022222
0.043478
1
0.043478
false
0
0.130435
0
0.217391
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
dff0861139908d87e254b565c8b0c0409b5efd6e
31,266
py
Python
PySide2Wrapper/widget.py
toodef/PySide2Wrapper
19a2cc37609c4528967e895024a85737b163a7c5
[ "MIT" ]
null
null
null
PySide2Wrapper/widget.py
toodef/PySide2Wrapper
19a2cc37609c4528967e895024a85737b163a7c5
[ "MIT" ]
null
null
null
PySide2Wrapper/widget.py
toodef/PySide2Wrapper
19a2cc37609c4528967e895024a85737b163a7c5
[ "MIT" ]
null
null
null
import math import os from PySide2.QtOpenGL import QGLWidget from PySide2.QtWidgets import QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton, QCheckBox, QRadioButton, \ QComboBox, QProgressBar, QTableWidget, QHeaderView, QTableWidgetItem, QFileDialog, QToolButton, QTabWidget, \ QWidget, QListWidget, QLi...
33.54721
151
0.62109
3,452
31,266
5.394264
0.142816
0.050266
0.013963
0.015037
0.324526
0.279255
0.223887
0.17824
0.138124
0.110359
0
0.001963
0.283023
31,266
931
152
33.583244
0.828701
0.166763
0
0.360862
0
0
0.017112
0.001744
0
0
0
0
0
1
0.233393
false
0
0.016158
0.021544
0.398564
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
5f04ac3a6ef2a75dbd9c6ad7d3e09d7fe7b0c437
489
py
Python
layerimport/migrations/0003_auto_20180906_0211.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
null
null
null
layerimport/migrations/0003_auto_20180906_0211.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
3
2020-02-11T23:04:56.000Z
2021-06-10T18:07:53.000Z
layerimport/migrations/0003_auto_20180906_0211.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
1
2021-08-20T14:49:09.000Z
2021-08-20T14:49:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-09-06 02:11 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('layerimport', '0002_auto_20180811_1412'), ] operations = [ migrations.AlterModelOp...
24.45
108
0.652352
52
489
5.923077
0.788462
0.071429
0
0
0
0
0
0
0
0
0
0.095238
0.226994
489
19
109
25.736842
0.719577
0.141104
0
0
1
0
0.28777
0.055156
0
0
0
0
0
1
0
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f09437fb04dfe8dc5b6de123c766d22ab7372cc
1,463
py
Python
cocoa/sessions/session.py
ijcai2022-5500/anego
9a2e5f29f0ec0787ad8ce7822089345053442887
[ "MIT" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
cocoa/sessions/session.py
ijcai2022-5500/anego
9a2e5f29f0ec0787ad8ce7822089345053442887
[ "MIT" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
cocoa/sessions/session.py
ijcai2022-5500/anego
9a2e5f29f0ec0787ad8ce7822089345053442887
[ "MIT" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
import time import string from cocoa.core.event import Event class Session(object): """An abstarct class for instantiating an agent. A session maintains the dialogue state and receive/send dialogue events. """ def __init__(self, agent, config=None): """Construct a session for an agent. ...
23.596774
93
0.582365
165
1,463
5.084848
0.436364
0.032181
0.064362
0.081049
0
0
0
0
0
0
0
0.005149
0.336295
1,463
61
94
23.983607
0.858908
0.239918
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.233333
false
0
0.1
0.1
0.5
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5f09ea3f770ee345aaf356aceee1f738b6e792f0
586
py
Python
executive/cloudcontrol/urlsajax.py
b800h/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
1
2019-03-14T11:13:00.000Z
2019-03-14T11:13:00.000Z
executive/cloudcontrol/urlsajax.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
executive/cloudcontrol/urlsajax.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView urlpatterns = patterns('', url(r'^start_server/$', 'cloudcontrol.ajax.start_server', name='ajax_start_server'), url(r'^stop_server/$', 'cloudcontrol.ajax.stop_server', name='ajax_stop_server'), url(r'^suspend_...
58.6
94
0.742321
76
586
5.460526
0.289474
0.048193
0.26506
0
0
0
0
0
0
0
0
0
0.093857
586
10
95
58.6
0.781544
0
0
0
0
0
0.543441
0.260647
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f14947fb02e5335fb7ac81ae89da1d9c95c2066
3,133
py
Python
DS_Algo/priority_queue.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/priority_queue.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/priority_queue.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
# coding:utf-8 # example 20: priority_queue.py class Array(object): def __init__(self, size=32): self._size = size self._items = [None] * size def __getitem__(self, idx): return self._items[idx] def __setitem__(self, idx, val): self._items[idx] = val def __len__(self...
26.327731
68
0.55474
380
3,133
4.339474
0.223684
0.167374
0.054579
0.057611
0.285628
0.204366
0.204366
0.198302
0.060643
0.060643
0
0.012772
0.325247
3,133
118
69
26.550847
0.767266
0.044366
0
0.091954
0
0
0.011721
0
0
0
0
0
0.011494
1
0.206897
false
0
0
0.045977
0.321839
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
5f1a6131571c1307ad9e21c536c3256332441bdd
289
py
Python
tests/test_folders.py
EspaceNetworks/pygooglevoice
81804e8fb2e40807093ae290928448bc62a104cb
[ "BSD-3-Clause" ]
4
2017-06-20T05:07:59.000Z
2021-04-01T14:41:44.000Z
tests/test_folders.py
EspaceNetworks/pygooglevoice
81804e8fb2e40807093ae290928448bc62a104cb
[ "BSD-3-Clause" ]
5
2017-07-06T18:11:01.000Z
2019-09-30T15:05:00.000Z
tests/test_folders.py
EspaceNetworks/pygooglevoice
81804e8fb2e40807093ae290928448bc62a104cb
[ "BSD-3-Clause" ]
4
2017-06-21T18:28:27.000Z
2019-02-19T00:12:33.000Z
from googlevoice import Voice,util,settings def test_folders(): voice = Voice() # voice.login() #for feed in settings.FEEDS: # util.print_(feed.title()) # for message in getattr(voice, feed)().messages: # util.print_('\t', message) assert 1 == 1
24.083333
56
0.608997
36
289
4.805556
0.611111
0.115607
0
0
0
0
0
0
0
0
0
0.009259
0.252595
289
12
57
24.083333
0.791667
0.532872
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5f1d1caa4c583ce273f9324576c7f81c7186f077
894
py
Python
spider/RE_zhengze.py
Anthlay/FUN_TOOLS
8706ac48d432e7752bea654857725542dc1a4897
[ "Apache-2.0" ]
1
2020-12-21T04:12:44.000Z
2020-12-21T04:12:44.000Z
spider/RE_zhengze.py
Anthlay/FUN_TOOLS
8706ac48d432e7752bea654857725542dc1a4897
[ "Apache-2.0" ]
2
2021-03-31T19:32:43.000Z
2021-12-13T20:32:30.000Z
spider/RE_zhengze.py
Anthlay/FUN_TOOLS
8706ac48d432e7752bea654857725542dc1a4897
[ "Apache-2.0" ]
null
null
null
import re #re.match方法 list = "abcdefghijklmn" m = re.match('abc',list) #print(m) print("match result: ", m.span()) print("start position:", m.start()) print("end position: ", m.end()) print() list1="Fat cats are smarter than dogs" m1 = re.match(r'(.*) are (.*?) dogs',list1) #print (m1) print('match whole sentence:'...
24.833333
61
0.691275
148
894
4.108108
0.378378
0.082237
0.034539
0
0
0
0
0
0
0
0
0.043805
0.106264
894
36
62
24.833333
0.717146
0.114094
0
0.115385
0
0
0.345616
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.576923
0
0
0
null
0
0
0
0
0
0
0
0
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
5f25afec292d96b405931da3d7f3331e0167112e
1,682
py
Python
W3Schools/jsons.py
FRX-DEV/Python-Practice-Challenges
8cddfb8f4181f987aa71cb75dee1f65d4d766954
[ "MIT" ]
null
null
null
W3Schools/jsons.py
FRX-DEV/Python-Practice-Challenges
8cddfb8f4181f987aa71cb75dee1f65d4d766954
[ "MIT" ]
null
null
null
W3Schools/jsons.py
FRX-DEV/Python-Practice-Challenges
8cddfb8f4181f987aa71cb75dee1f65d4d766954
[ "MIT" ]
null
null
null
import json x = '{"name":"John", "age":30, "city":"New York"}' y = json.loads(x) print(y["age"]) # 30 x = { "name" : "John", "age" : 30, "city" : "New York" } y = json.dumps(x) print(y) # {"name": "John", "age": 30, "city": "New York"} print(json.dumps({"name": "John", "age": 30})) print(json.dumps([...
16.330097
56
0.441141
191
1,682
3.879581
0.240838
0.145749
0.207827
0.122807
0.578947
0.577598
0.577598
0.545209
0.45614
0.45614
0
0.050994
0.312128
1,682
103
57
16.330097
0.589455
0.029727
0
0.176471
0
0
0.237064
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0.382353
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
5f29798e00a3995704e530d6853c12b1adc87de4
651
py
Python
catalog/migrations/0023_auto_20180306_0854.py
jvcl/circleci-demo-python-django
565e4e61adea6a283f0d8a6a004e3e04b8570782
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0023_auto_20180306_0854.py
jvcl/circleci-demo-python-django
565e4e61adea6a283f0d8a6a004e3e04b8570782
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0023_auto_20180306_0854.py
jvcl/circleci-demo-python-django
565e4e61adea6a283f0d8a6a004e3e04b8570782
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-03-06 08:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0022_merge_20180115_2033'), ] operations = [ migrations.CreateModel( name='Car', fields=[ ...
26.04
114
0.563748
64
651
5.59375
0.78125
0
0
0
0
0
0
0
0
0
0
0.074725
0.301075
651
24
115
27.125
0.712088
0.069124
0
0.111111
1
0
0.124172
0.039735
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f2e344272b42f30b6178d6dfd8b9fa389bfe038
6,434
py
Python
app/main.py
WGierke/git_better
99c7d85e6b781cd0deb976c9642499516de42c4e
[ "Apache-2.0" ]
5
2017-01-23T00:51:47.000Z
2018-12-19T01:51:56.000Z
app/main.py
WGierke/git_better
99c7d85e6b781cd0deb976c9642499516de42c4e
[ "Apache-2.0" ]
11
2017-01-23T06:54:46.000Z
2017-03-08T23:00:10.000Z
app/main.py
WGierke/git_better
99c7d85e6b781cd0deb976c9642499516de42c4e
[ "Apache-2.0" ]
3
2017-06-14T12:45:33.000Z
2019-10-31T18:43:55.000Z
from __future__ import division def warn(*args, **kwargs): pass import warnings warnings.warn = warn import argparse import os import pandas as pd import sys from tqdm import tqdm from classifier import get_text_pipeline, get_voting_classifier, DescriptionClassifier, ReadmeClassifier, NumericEnsembleClassifier, nor...
41.24359
217
0.682002
839
6,434
4.989273
0.24553
0.040134
0.011467
0.0129
0.105112
0.052078
0.015289
0.015289
0
0
0
0.007158
0.218371
6,434
155
218
41.509677
0.825214
0
0
0.069231
0
0.038462
0.215409
0.008026
0
0
0
0
0
0
null
null
0.007692
0.123077
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5f30f733811067a802c087fa4d37aa00620dfdf5
827
py
Python
pbpstats/data_loader/live/boxscore/file.py
bahalbach/pbpstats
6a9f602764edb7a3ee0e880fffbb5aa34990d6e9
[ "MIT" ]
54
2019-10-16T00:10:51.000Z
2022-03-19T21:21:05.000Z
pbpstats/data_loader/live/boxscore/file.py
bahalbach/pbpstats
6a9f602764edb7a3ee0e880fffbb5aa34990d6e9
[ "MIT" ]
15
2019-11-19T01:20:52.000Z
2022-02-04T13:38:37.000Z
pbpstats/data_loader/live/boxscore/file.py
bahalbach/pbpstats
6a9f602764edb7a3ee0e880fffbb5aa34990d6e9
[ "MIT" ]
15
2019-11-19T11:54:51.000Z
2022-03-21T05:08:53.000Z
from pbpstats.data_loader.abs_data_loader import check_file_directory from pbpstats.data_loader.live.file_loader import LiveFileLoader class LiveBoxscoreFileLoader(LiveFileLoader): """ A ``LiveBoxscoreFileLoader`` object should be instantiated and passed into ``LiveBoxscoreLoader`` when loading data from file...
37.590909
129
0.744861
109
827
5.348624
0.412844
0.156089
0.087479
0.075472
0
0
0
0
0
0
0
0
0.17896
827
21
130
39.380952
0.858616
0.365175
0
0
0
0
0.118712
0.118712
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5f36c3d356e14396fc3900348919372d7b2f73ba
1,964
py
Python
nerdlandbot/__main__.py
jonsneyers/nerdlandbot
d4d4304d49d99f11c94acb35d01dbd430e4cf8d1
[ "MIT" ]
null
null
null
nerdlandbot/__main__.py
jonsneyers/nerdlandbot
d4d4304d49d99f11c94acb35d01dbd430e4cf8d1
[ "MIT" ]
null
null
null
nerdlandbot/__main__.py
jonsneyers/nerdlandbot
d4d4304d49d99f11c94acb35d01dbd430e4cf8d1
[ "MIT" ]
null
null
null
import os import sys import discord from dotenv import load_dotenv from nerdlandbot.bot import NerdlandBot from nerdlandbot.helpers.log import info, fatal from nerdlandbot.translations.Translations import get_text as _ from nerdlandbot.scheduler.YoutubeScheduler import check_and_post_latest_videos from nerdlandbot.sc...
28.882353
94
0.785132
248
1,964
6.060484
0.322581
0.060546
0.13839
0.233533
0.344644
0
0
0
0
0
0
0
0.116599
1,964
67
95
29.313433
0.866282
0.059063
0
0.042553
0
0
0.323018
0.210641
0
0
0
0
0
1
0
false
0
0.212766
0
0.212766
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
a0395ce5d781449188dc22aa5e3b44104fcd8ab6
1,287
py
Python
tarefa10/quick_sort.py
PauloVictorSS/unicamp-mc102
077ca3ea6d3df40ebe205c2e874d20a934ea5541
[ "MIT" ]
null
null
null
tarefa10/quick_sort.py
PauloVictorSS/unicamp-mc102
077ca3ea6d3df40ebe205c2e874d20a934ea5541
[ "MIT" ]
null
null
null
tarefa10/quick_sort.py
PauloVictorSS/unicamp-mc102
077ca3ea6d3df40ebe205c2e874d20a934ea5541
[ "MIT" ]
null
null
null
def particionar(lista, inicio, fim): """ Com base em um elemento pivo, coloca a esquerda dele todos os elementos menores que ele e a direita todos os elementos maiores que ele. Retornando a real posição desse pivo """ pivo = lista[inicio] i = inicio j = fim ter...
19.208955
63
0.496503
154
1,287
4.097403
0.396104
0.087163
0.088748
0.079239
0.088748
0.088748
0.088748
0.088748
0
0
0
0.007926
0.41181
1,287
66
64
19.5
0.825627
0.183372
0
0.235294
0
0
0.00102
0
0
0
0
0.015152
0
1
0.088235
false
0
0
0
0.117647
0.029412
0
0
0
null
0
0
0
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
a03c5fb6053d5d6d084d68630478431cc1670828
1,855
py
Python
gameModules/board.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
null
null
null
gameModules/board.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
40
2020-02-18T23:31:17.000Z
2021-03-04T19:45:17.000Z
gameModules/board.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
null
null
null
import random from gameModules.block import generateBlocks, Block def createEmptyBoard(data): newBoard = [] # each cell is 40px*40px cellDimention = 40 cols = (data.width-data.margin) // cellDimention rows = (data.height-data.margin) // cellDimention for row in range(rows): newRow = [...
30.916667
73
0.629111
229
1,855
5.09607
0.384279
0.053985
0.078835
0.023993
0.113111
0.056555
0.056555
0
0
0
0
0.028316
0.27655
1,855
59
74
31.440678
0.841282
0.209164
0
0.108108
1
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0
0.189189
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
a03ea8e5ed766946318fc670f80efd8fea7269cd
1,108
py
Python
tests/test_list_functions.py
ryanvilbrandt/discord_commission_queues
b13d908f73b8593b87280b66ce8128cd13899799
[ "MIT" ]
null
null
null
tests/test_list_functions.py
ryanvilbrandt/discord_commission_queues
b13d908f73b8593b87280b66ce8128cd13899799
[ "MIT" ]
null
null
null
tests/test_list_functions.py
ryanvilbrandt/discord_commission_queues
b13d908f73b8593b87280b66ce8128cd13899799
[ "MIT" ]
null
null
null
import os import unittest from time import sleep from typing import Iterable from unittest import mock from src.db.db import Db from src.bot import functions as e from src.utils import BotError class Owner: id = -1 name = "FunctionalTestUser" OWNER = Owner() def build_context(message_content="") -> Itera...
22.16
66
0.621841
145
1,108
4.57931
0.531034
0.031627
0.049699
0.076807
0
0
0
0
0
0
0
0.004969
0.273466
1,108
49
67
22.612245
0.819876
0.048736
0
0
0
0
0.16635
0
0
0
0
0
0.030303
1
0.151515
false
0.030303
0.242424
0
0.545455
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
a0476d74dc3ccabf3604e3298196dca523ee59d7
881
py
Python
homework/firstHomework.py
gitterra/second-basics
196800b3afde58361b3034d3a2be418cb70b0e3d
[ "MIT" ]
null
null
null
homework/firstHomework.py
gitterra/second-basics
196800b3afde58361b3034d3a2be418cb70b0e3d
[ "MIT" ]
null
null
null
homework/firstHomework.py
gitterra/second-basics
196800b3afde58361b3034d3a2be418cb70b0e3d
[ "MIT" ]
null
null
null
#Задачи на циклы и оператор условия------ #---------------------------------------- ''' Задача 1 Вывести на экран циклом пять строк из нулей длиной 4, причем каждая строка должна быть пронумерована. Пример: 0 0000 1 0000 2 0000 3 0000 .... ''' ''' Задача 2 Пользователь в цикле вводит 10 производных...
16.018182
137
0.636776
117
881
4.794872
0.641026
0.048128
0.074866
0.042781
0.167558
0
0
0
0
0
0
0.073906
0.247446
881
55
138
16.018182
0.772247
0.283768
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a04cac5989ad455456fca4481197e5a6260d1b48
10,311
py
Python
testing/test_commands.py
matthewrsj/clisync
d89a0b2840494cc6622d45bc046b0589d0023e2e
[ "Apache-2.0" ]
null
null
null
testing/test_commands.py
matthewrsj/clisync
d89a0b2840494cc6622d45bc046b0589d0023e2e
[ "Apache-2.0" ]
null
null
null
testing/test_commands.py
matthewrsj/clisync
d89a0b2840494cc6622d45bc046b0589d0023e2e
[ "Apache-2.0" ]
null
null
null
import datetime import unittest from mock import patch from climesync import commands import test_data # test_command decorator class test_command(): def __init__(self, data=None): self.command = data.command self.mocked_input = data.mocked_input self.expected_response = data.expected_r...
32.629747
79
0.642712
1,232
10,311
5.051948
0.113636
0.03374
0.057841
0.073265
0.710636
0.674486
0.609897
0.568766
0.568766
0.550932
0
0.014094
0.256813
10,311
315
80
32.733333
0.798121
0.026574
0
0.422414
0
0
0.120919
0.059611
0
0
0
0
0.125
0
null
null
0.025862
0.021552
null
null
0.025862
0
0
0
null
0
0
0
0
0
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
a05ef02d49f3ebfdd85e5e0a8b9d7954679a10ba
962
py
Python
netbox_bgp/migrations/0002_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
79
2021-04-07T14:14:54.000Z
2022-03-22T10:42:15.000Z
netbox_bgp/migrations/0002_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
65
2021-04-14T09:29:00.000Z
2022-03-05T23:18:58.000Z
netbox_bgp/migrations/0002_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
17
2021-04-14T09:29:23.000Z
2022-03-16T18:58:28.000Z
# Generated by Django 3.1.3 on 2021-02-09 11:15 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('netbox_bgp', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='community', ...
33.172414
181
0.650728
91
962
6.813187
0.494505
0.080645
0.16129
0.093548
0.493548
0.493548
0.493548
0.493548
0.493548
0.493548
0
0.055331
0.22973
962
28
182
34.357143
0.781377
0.046778
0
0.409091
1
0
0.092896
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
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
a06601588f54c4424258ddfc9c48e2594584337b
1,257
py
Python
tests/test_exceptions.py
isabella232/support
0c88c3d32644c897c30e12de8c8db00d065a76ea
[ "BSD-3-Clause" ]
298
2015-03-17T17:16:40.000Z
2021-11-23T15:23:24.000Z
tests/test_exceptions.py
paypal/support
0c88c3d32644c897c30e12de8c8db00d065a76ea
[ "BSD-3-Clause" ]
8
2015-03-17T19:13:30.000Z
2015-10-07T02:32:17.000Z
tests/test_exceptions.py
isabella232/support
0c88c3d32644c897c30e12de8c8db00d065a76ea
[ "BSD-3-Clause" ]
22
2015-03-17T18:45:06.000Z
2021-10-21T22:48:45.000Z
import time import sys import traceback try: from support import exceptions except: sys.path.append('..') from support import exceptions def r(n=5, m=1, f=exceptions.current_code_list): if n: return r(n - 1, m) for i in range(m): return f() def inline(n=5, m=10000): if n: ...
22.446429
73
0.592681
185
1,257
3.854054
0.248649
0.089762
0.050491
0.078541
0.406732
0.361851
0.239832
0.215989
0.131837
0.131837
0
0.042254
0.265712
1,257
55
74
22.854545
0.730228
0
0
0.318182
0
0
0.135243
0.038982
0
0
0
0
0
0
null
null
0
0.113636
null
null
0.090909
0
0
0
null
0
0
0
0
0
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
a06e12c99af461257cde8eee85f7ce6bee0bc690
2,163
py
Python
server/routes/incident.py
sjkdmpy/noBlindEyez
41beadf97e3f580f31a1659af0b51b131fa24f74
[ "MIT" ]
null
null
null
server/routes/incident.py
sjkdmpy/noBlindEyez
41beadf97e3f580f31a1659af0b51b131fa24f74
[ "MIT" ]
null
null
null
server/routes/incident.py
sjkdmpy/noBlindEyez
41beadf97e3f580f31a1659af0b51b131fa24f74
[ "MIT" ]
null
null
null
from fastapi import APIRouter, HTTPException from tortoise.query_utils import Q from server.models import ( Incident, IIncident, IIncidentQuery, Location, User ) from server.schemas.incident import IRIncident from operator import itemgetter from typing import Optional router = APIRouter() # TODO: When middlew...
24.303371
127
0.741563
283
2,163
5.54417
0.293286
0.038241
0.020395
0.071383
0.325048
0.325048
0.169535
0.169535
0.169535
0.169535
0
0.012208
0.128988
2,163
89
128
24.303371
0.820594
0.029589
0
0.142857
0
0
0.110157
0.032904
0
0
0
0.011236
0
1
0
false
0.015873
0.095238
0
0.15873
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
a083823629a4f7914c820d45ccd77d85e02ab939
7,190
py
Python
url.py
iamjing66/tornaodo_sdk
242a852d3231e5798aa357a17e5638c7dc0567b9
[ "MIT" ]
null
null
null
url.py
iamjing66/tornaodo_sdk
242a852d3231e5798aa357a17e5638c7dc0567b9
[ "MIT" ]
null
null
null
url.py
iamjing66/tornaodo_sdk
242a852d3231e5798aa357a17e5638c7dc0567b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ the url structure of website """ from handlers.WechatKFZ.kfz_view import WechatLoginRequest, WechatLoginCallBackRequest from handlers.index import IndexHandler, XfHandler # 假设已经有了 from handlers.LogServer.cxlog import writeLogHandler,WriteUserHanhler from handlers.MainDataInter...
45.220126
170
0.638804
686
7,190
6.653061
0.383382
0.055215
0.063322
0.060254
0.383216
0.324934
0.261832
0.223707
0.175504
0.174189
0
0.017451
0.210987
7,190
159
171
45.220126
0.787062
0.508762
0
0
0
0
0.11708
0.016642
0
0
0
0
0
1
0
false
0
0.389831
0
0.389831
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
a08b7851f2b4370f8ae50139aa94a40f57673417
609
py
Python
aigram/posts/models/tags.py
jadry92/AIgram-project
bccc16de0f5a90704f68ff1a72591049db6412ec
[ "MIT" ]
1
2020-06-27T21:46:26.000Z
2020-06-27T21:46:26.000Z
aigram/posts/models/tags.py
jadry92/AIgram-project
bccc16de0f5a90704f68ff1a72591049db6412ec
[ "MIT" ]
1
2020-06-18T10:23:14.000Z
2020-06-18T10:23:14.000Z
aigram/posts/models/tags.py
jadry92/AIgram-project
bccc16de0f5a90704f68ff1a72591049db6412ec
[ "MIT" ]
null
null
null
"""tags models""" # Django from django.db import models class Hashtag(models.Model): """Tag model""" name = models.CharField(max_length=50) def __str__(self): """:return tag name""" return '{}'.format(self.name) class PostProfileTag(models.Model): """Person tag model""" profile...
25.375
79
0.648604
76
609
5.052632
0.460526
0.057292
0.052083
0.083333
0
0
0
0
0
0
0
0.004073
0.19376
609
23
80
26.478261
0.778004
0.165846
0
0.2
0
0
0.085062
0
0
0
0
0
0
1
0.2
false
0
0.1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a09227c0c15ace931b120179b9fbd62d9125b101
1,054
py
Python
python/simple_schedule_plan.py
eric-lyons/sdk-examples
0b1f6660aef7280b03dcb2a516183ac536354622
[ "MIT" ]
null
null
null
python/simple_schedule_plan.py
eric-lyons/sdk-examples
0b1f6660aef7280b03dcb2a516183ac536354622
[ "MIT" ]
null
null
null
python/simple_schedule_plan.py
eric-lyons/sdk-examples
0b1f6660aef7280b03dcb2a516183ac536354622
[ "MIT" ]
null
null
null
import looker_sdk # from typing import cast, MutableSequence, Sequence ####Initialize API/SDK for more info go here: https://pypi.org/project/looker-sdk/ from looker_sdk import methods31, models sdk = looker_sdk.init31() # or init40() for v4.0 API me = sdk.me() ### DEFINE VALUES HERE #### # DASHBOARDID = VALUE # U...
50.190476
344
0.774194
149
1,054
5.369128
0.557047
0.0675
0.0325
0.05
0.1825
0.1825
0.1825
0.1825
0.1825
0.1825
0
0.023134
0.097723
1,054
20
345
52.7
0.818086
0.537951
0
0
0
0
0.058568
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a09472e4c4a8318f2f8b7db89b38ef6c3987687d
5,226
py
Python
cloudnetpy/categorize/datasource.py
tukiains/actris-cloudnet
26f2607b890630146469cfa410fce99438ceee3f
[ "MIT" ]
11
2019-03-11T13:31:01.000Z
2019-12-07T17:26:46.000Z
cloudnetpy/categorize/datasource.py
tukiains/actris-cloudnet
26f2607b890630146469cfa410fce99438ceee3f
[ "MIT" ]
1
2019-01-03T18:50:21.000Z
2019-01-10T16:35:23.000Z
cloudnetpy/categorize/datasource.py
tukiains/actris-cloudnet
26f2607b890630146469cfa410fce99438ceee3f
[ "MIT" ]
7
2019-03-13T14:47:12.000Z
2019-12-05T19:56:47.000Z
"""Datasource module, containing the :class:`DataSource` and :class:`ProfileDataSource` classes. """ import os import numpy as np import netCDF4 from cloudnetpy import RadarArray, CloudnetArray, utils class DataSource: """Base class for all Cloudnet measurements and model data. Args: filename (str): ...
33.286624
79
0.618638
610
5,226
5.22459
0.25082
0.037967
0.050204
0.016003
0.154377
0.085974
0.047694
0.047694
0.047694
0.047694
0
0.005903
0.286835
5,226
156
80
33.5
0.849208
0.472063
0
0.135593
0
0
0.034192
0
0
0
0
0
0
1
0.20339
false
0
0.067797
0
0.440678
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
a09a0dbeb070bbce4100451f2790e6ab21638d23
779
py
Python
dataclasses-0.8/test/dataclass_module_2_str.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
537
2017-05-20T04:50:28.000Z
2022-03-29T22:05:03.000Z
dataclasses-0.8/test/dataclass_module_2_str.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
138
2017-05-20T17:23:24.000Z
2021-12-25T22:11:23.000Z
dataclasses-0.8/test/dataclass_module_2_str.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
71
2017-07-21T22:18:01.000Z
2022-02-13T13:21:18.000Z
#from __future__ import annotations USING_STRINGS = True # dataclass_module_2.py and dataclass_module_2_str.py are identical # except only the latter uses string annotations. from dataclasses import dataclass, InitVar from typing import ClassVar T_CV2 = ClassVar[int] T_CV3 = ClassVar T_IV2 = InitVar[int] T_IV3 = In...
23.606061
98
0.707317
117
779
4.504274
0.435897
0.096774
0.060721
0.098672
0.197343
0.197343
0.197343
0.197343
0.197343
0.197343
0
0.045234
0.205392
779
32
99
24.34375
0.806139
0.382542
0
0.086957
0
0
0.178571
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.695652
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
a0a6845ad1c1d90d831866e685dda01e4f961249
5,061
py
Python
sphenecoll/sphene/sphboard/renderers.py
pigletto/sct-communitytools
b54c07054ab76898e29954a337370d8678bc16ee
[ "BSD-3-Clause" ]
null
null
null
sphenecoll/sphene/sphboard/renderers.py
pigletto/sct-communitytools
b54c07054ab76898e29954a337370d8678bc16ee
[ "BSD-3-Clause" ]
null
null
null
sphenecoll/sphene/sphboard/renderers.py
pigletto/sct-communitytools
b54c07054ab76898e29954a337370d8678bc16ee
[ "BSD-3-Clause" ]
null
null
null
"""Renderer Classes for Sphene. """ from django.conf import settings from django.core import exceptions from django.utils.translation import ugettext as _, ugettext_lazy from sphene.community.sphutils import get_sph_setting, get_method_by_name from sphene.community.templatetags.sph_extras import sph_markdown from sph...
31.63125
137
0.600079
576
5,061
5.112847
0.296875
0.039728
0.042784
0.02309
0.129032
0.099151
0.065195
0.065195
0
0
0
0.00487
0.26971
5,061
159
138
31.830189
0.791937
0.004347
0
0.160714
0
0.017857
0.129463
0.01587
0
0
0
0
0
0
null
null
0.008929
0.0625
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
a0ab42acd3583e6c88a9fae8ada0b0323aecfbaa
2,013
py
Python
src/core/utils/generic_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
30
2019-08-18T21:56:20.000Z
2022-03-18T10:04:02.000Z
src/core/utils/generic_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
2
2019-11-12T02:28:36.000Z
2022-03-20T05:27:05.000Z
src/core/utils/generic_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
11
2020-02-17T02:47:26.000Z
2021-09-05T05:37:29.000Z
''' Created on Nov, 2018 @author: hugo ''' import yaml import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def get_sinusoid_encoding_table(n_position, d_hid, padding_idx=None, device=None): ''' Sinusoid position encoding table ''' def cal_angle(position, hid_idx): ...
29.602941
89
0.661699
328
2,013
3.896341
0.307927
0.101721
0.014085
0.029734
0
0
0
0
0
0
0
0.024482
0.208644
2,013
67
90
30.044776
0.777778
0.143567
0
0
0
0
0.008897
0
0
0
0
0
0
1
0.2
false
0
0.125
0.05
0.55
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
a0b62e2ca9295365989c7c4b149a5ae5de73b536
405
py
Python
evaluate_policy.py
WilliamSteenbergen/offline_rl_sepsis_simulator
6cc10d5cff8495576849866459bb751563a6bce5
[ "MIT" ]
null
null
null
evaluate_policy.py
WilliamSteenbergen/offline_rl_sepsis_simulator
6cc10d5cff8495576849866459bb751563a6bce5
[ "MIT" ]
null
null
null
evaluate_policy.py
WilliamSteenbergen/offline_rl_sepsis_simulator
6cc10d5cff8495576849866459bb751563a6bce5
[ "MIT" ]
null
null
null
import sys from AAAI_paper.create_behavior_policy import evaluate_all_policies if __name__ == "__main__": filename = sys.argv[1] if filename[-1] == "/": evaluate_all_policies(foldername=filename) elif filename[-3:] == 'csv': evaluate_all_policies(filename=filename) else: print(...
31.153846
98
0.693827
52
405
5.076923
0.557692
0.125
0.215909
0
0
0
0
0
0
0
0
0.009259
0.2
405
12
99
33.75
0.805556
0
0
0
0
0
0.22963
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
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
a0b798804e9ee6136f827f20a259521d2fcdb59b
523
py
Python
Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio035.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio035.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio035.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
print('\033[33m-=' * 13) print('Analisador de Triângulos') print('-=' * 13 + '\033[m') primeiroSegmento = float(input('Primeiro segmento: ')) segundoSegmento = float(input('Segundo segmento: ')) terceiroSegmento = float(input('Terceiro segmento: ')) lados = [primeiroSegmento, segundoSegmento, terceiroSegmento] lados....
32.6875
78
0.709369
66
523
5.621212
0.5
0.032345
0.086253
0.113208
0.247978
0.134771
0
0
0
0
0
0.072052
0.124283
523
15
79
34.866667
0.737991
0
0
0
0
0
0.428298
0
0
0
0
0
0
1
0
false
0
0
0
0
0.416667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
a0b8df4babd5720d3b0913fb79139b3fba8d3776
1,822
py
Python
singyeong/dsn.py
StartITBot/singyeong.py
2ad6a6238ed95edc7877303d5360c728157c0309
[ "MIT" ]
4
2021-02-14T08:41:59.000Z
2021-07-23T05:56:25.000Z
singyeong/dsn.py
StartITBot/singyeong.py
2ad6a6238ed95edc7877303d5360c728157c0309
[ "MIT" ]
null
null
null
singyeong/dsn.py
StartITBot/singyeong.py
2ad6a6238ed95edc7877303d5360c728157c0309
[ "MIT" ]
1
2021-03-23T16:04:39.000Z
2021-03-23T16:04:39.000Z
import re from typing import Optional from .enums import Encoding from .exceptions import InvalidDSN RE_SINGYEONG_DSN = re.compile(r'^(?P<encryption>s)?singyeong:\/\/(?P<login>[^@:]+)(?::(?P<password>[^@]+))?@(?P<host>' r'[\w-]+)(?::(?P<port>\d{1,5}))?\/?(?:\?encoding=(?P<encoding>json|e...
30.881356
118
0.553238
202
1,822
4.910891
0.257426
0.110887
0.060484
0.066532
0.072581
0.072581
0.072581
0
0
0
0
0.004623
0.287596
1,822
58
119
31.413793
0.75963
0
0
0.040816
0
0.040816
0.16685
0.090011
0
0
0
0
0
1
0.040816
false
0.142857
0.081633
0
0.326531
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
a0b91d8e62dd80853f0269f15c52a081d154a1c6
424
py
Python
volunteer_categories/migrations/0005_auto_20200814_0029.py
UFestYeg/UFestVolunteerSite
3802cc54e893fb3596483aa3946cd622415d1150
[ "MIT" ]
null
null
null
volunteer_categories/migrations/0005_auto_20200814_0029.py
UFestYeg/UFestVolunteerSite
3802cc54e893fb3596483aa3946cd622415d1150
[ "MIT" ]
null
null
null
volunteer_categories/migrations/0005_auto_20200814_0029.py
UFestYeg/UFestVolunteerSite
3802cc54e893fb3596483aa3946cd622415d1150
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-14 06:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('volunteer_categories', '0004_auto_20200808_2105'), ] operations = [ migrations.AddConstraint( model_name='request', ...
23.555556
98
0.641509
44
424
6.068182
0.863636
0
0
0
0
0
0
0
0
0
0
0.095975
0.238208
424
17
99
24.941176
0.73065
0.106132
0
0
1
0
0.198939
0.061008
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a0c02df63025392b40c0dba845490190c6b565e7
1,845
py
Python
neuro_shooting/activation_functions_and_derivatives.py
uncbiag/neuro_shooting
ebf80a9c0a4515fdfffaa0c5418dc866e2776495
[ "Apache-2.0" ]
6
2020-12-10T19:03:08.000Z
2021-09-30T09:05:17.000Z
neuro_shooting/activation_functions_and_derivatives.py
uncbiag/neuro_shooting
ebf80a9c0a4515fdfffaa0c5418dc866e2776495
[ "Apache-2.0" ]
null
null
null
neuro_shooting/activation_functions_and_derivatives.py
uncbiag/neuro_shooting
ebf80a9c0a4515fdfffaa0c5418dc866e2776495
[ "Apache-2.0" ]
1
2020-12-13T08:46:13.000Z
2020-12-13T08:46:13.000Z
import torch import torch.nn as nn def softmax(x,epsilon = 1.0): return x*(torch.ones_like(x))/(torch.exp(-x*epsilon) + torch.ones_like(x)) def dsoftmax(x,epsilon = 1.0): return epsilon*softmax(x,epsilon)*(torch.ones_like(x))/(torch.exp(epsilon*x) + torch.ones_like(x)) + (torch.ones_like(x))/(torch.exp(-x*epsilo...
28.384615
168
0.653117
233
1,845
5.085837
0.253219
0.126582
0.076793
0.0827
0.210127
0.118143
0.081013
0.081013
0.081013
0.081013
0
0.005571
0.22168
1,845
64
169
28.828125
0.819638
0.177236
0
0.047619
0
0
0.079248
0
0
0
0
0
0
1
0.166667
false
0
0.047619
0.119048
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
0
0
0
0
1
0
0
0
1
a0c22d520764138b43e31cf30edac37856c99a65
1,963
py
Python
sloth_job/views.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
sloth_job/views.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
sloth_job/views.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
from rest_framework import status from rest_framework.views import APIView # from rest_framework.decorators import api_view from rest_framework.response import Response from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.http import Http404 from .models import Proxy fro...
32.716667
78
0.690779
235
1,963
5.668085
0.306383
0.04955
0.108108
0.063063
0.407658
0.361111
0.336336
0.313814
0.313814
0.313814
0
0.01178
0.2216
1,963
59
79
33.271186
0.859948
0.077942
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.190476
0
0.595238
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
39fc45e108fd5f84dde626b8bd01e262af8a3b85
2,511
py
Python
library/migrations/0001_initial.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
null
null
null
library/migrations/0001_initial.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2016-10-18T14:52:05.000Z
2020-06-18T15:14:41.000Z
library/migrations/0001_initial.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2020-02-07T17:37:37.000Z
2021-01-15T00:01:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-05 22:17 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
40.5
158
0.571485
253
2,511
5.513834
0.375494
0.028674
0.040143
0.063082
0.377061
0.338351
0.338351
0.338351
0.338351
0.338351
0
0.015042
0.285145
2,511
61
159
41.163934
0.762117
0.026683
0
0.301887
1
0
0.11143
0
0
0
0
0
0
1
0
false
0
0.075472
0
0.150943
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
2604928790d381dc2c101456864cadba2e0712a0
13,108
py
Python
program/main_sniffer/sniffer_v0.2.py
MaciejSzaflik/tirt-W4-Project
33b5796db59850f9837b4f40cf57ed614133e099
[ "MIT" ]
null
null
null
program/main_sniffer/sniffer_v0.2.py
MaciejSzaflik/tirt-W4-Project
33b5796db59850f9837b4f40cf57ed614133e099
[ "MIT" ]
1
2015-03-28T22:07:58.000Z
2015-03-29T13:28:42.000Z
program/main_sniffer/sniffer_v0.2.py
MaciejSzaflik/tirt-W4-Project
33b5796db59850f9837b4f40cf57ed614133e099
[ "MIT" ]
null
null
null
from Tkinter import * import Tkinter as Tk from PIL import Image, ImageTk import socket, sys from struct import * import threading from thread import start_new_thread from cStringIO import StringIO import signal ##################################################################### ## ...
33.35369
152
0.532194
1,279
13,108
5.347928
0.245504
0.014035
0.020175
0.025439
0.160819
0.105848
0.06462
0.043275
0
0
0
0.014894
0.308514
13,108
392
153
33.438776
0.73974
0.178898
0
0.117188
0
0
0.081552
0.002938
0
0
0.000912
0
0
0
null
null
0.007813
0.035156
null
null
0.023438
0
0
0
null
0
0
0
0
0
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
260d58bfcf0b5e8b92c86d6b4b7b0d50cbaf9189
3,088
py
Python
Code/et.py
suhailnajeeb/lungseg-vip2018
60435ed41d7f6c5fcd5c9470a29a9b413c86b427
[ "MIT" ]
9
2020-02-06T04:37:23.000Z
2022-02-23T05:48:33.000Z
Code/et.py
suhailnajeeb/lungseg-vip2018
60435ed41d7f6c5fcd5c9470a29a9b413c86b427
[ "MIT" ]
1
2020-05-21T07:15:53.000Z
2020-05-21T12:22:27.000Z
Code/et.py
suhailnajeeb/lungseg-vip2018
60435ed41d7f6c5fcd5c9470a29a9b413c86b427
[ "MIT" ]
2
2020-02-26T01:52:35.000Z
2021-01-11T08:33:31.000Z
import numpy as np import cv2 import matplotlib.pyplot as plt import h5py import sys # Function to distort scan and mask def elastic_transform(image, mask, sigma, alpha_affine, random_state=None): """Elastic deformation of images as described in [Simard2003]_ (with modifications). .. [Simard2003] Simard, Stein...
33.565217
146
0.65544
483
3,088
4.043478
0.312629
0.03277
0.036866
0.036866
0.22171
0.22171
0.211982
0.168971
0.168971
0.070661
0
0.05259
0.187176
3,088
91
147
33.934066
0.725498
0.019754
0
0
0
0.018182
0.05366
0.02453
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.054545
0
0
0
null
0
0
0
0
0
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
261b1efed0e46889091480f23aa5fb77fa36e0e1
5,202
py
Python
darkweb/views/main.py
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
5
2016-04-11T20:24:40.000Z
2019-03-11T23:19:13.000Z
darkweb/views/main.py
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
null
null
null
darkweb/views/main.py
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
5
2016-04-18T19:08:59.000Z
2019-01-08T20:11:19.000Z
""" main.py Handles all accessible URI's for flask """ from flask import Flask, render_template, request, g from darkweb.modules.base.crawlerconfig import CrawlerConfig from darkweb.modules.irc.irc import IRC from darkweb.modules.web.WebCrawler import WebCrawler from darkweb.modules.parser.search import search from dar...
29.896552
144
0.663206
659
5,202
5.186646
0.298938
0.035401
0.024576
0.029257
0.17203
0.159157
0.138092
0.117905
0.103569
0.070217
0
0.003642
0.208189
5,202
173
145
30.069364
0.826171
0.023645
0
0.082569
0
0
0.178901
0
0
0
0
0
0
0
null
null
0
0.110092
null
null
0.06422
0
0
0
null
0
0
0
0
0
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
261c36fa3eddba9a204650a76d7162a657cb9b05
1,522
py
Python
python/leetcode/804.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/804.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/804.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
# 国际摩尔斯密码定义一种标准编码方式,将每个字母对应于一个由一系列点和短线组成的字符串, 比如: "a" 对应 ".-", "b" 对应 "-...", "c" 对应 "-.-.", 等等。 # # 为了方便,所有26个英文字母对应摩尔斯密码表如下: # # [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."] # 给定一个单词列表,每个单词可以写成每个字母对应摩尔...
28.185185
179
0.396189
127
1,522
4.685039
0.653543
0.030252
0.045378
0.060504
0
0
0
0
0
0
0
0.009828
0.197766
1,522
53
180
28.716981
0.477477
0.515112
0
0
0
0
0.146099
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.235294
0.058824
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
261e85d58df7266cfd7e58e24f7b48125975f239
1,171
py
Python
chemolab/core/unicode.py
MeleiDigitalMedia/ChemoLab
b27421a836d76de88b23845f6c808d4429925702
[ "MIT" ]
null
null
null
chemolab/core/unicode.py
MeleiDigitalMedia/ChemoLab
b27421a836d76de88b23845f6c808d4429925702
[ "MIT" ]
null
null
null
chemolab/core/unicode.py
MeleiDigitalMedia/ChemoLab
b27421a836d76de88b23845f6c808d4429925702
[ "MIT" ]
null
null
null
class SubScript(): """Creates an instance of SubScript""" def __init__(self): self.NUM_0 = u'\u2080' self.NUM_1 = u'\u2081' self.NUM_2 = u'\u2082' self.NUM_3 = u'\u2083' self.NUM_4 = u'\u2084' self.NUM_5 = u'\u2085' self.NUM_6 = u'\u2086' ...
31.648649
45
0.485056
164
1,171
3.268293
0.353659
0.261194
0.063433
0.070896
0.074627
0.074627
0.074627
0
0
0
0
0.171159
0.366354
1,171
37
46
31.648649
0.551213
0.057216
0
0.058824
0
0
0.170132
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
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
2628567e4a43d12c62cbc550ed6811b943f6f1bb
952
py
Python
pycompupipe/components/print_entity_structure.py
xaedes/PyCompuPipe
c5243a875bb007fc67b02e1ed08b1d62b6ddc483
[ "MIT" ]
1
2015-12-22T16:59:08.000Z
2015-12-22T16:59:08.000Z
pycompupipe/components/print_entity_structure.py
xaedes/PyCompuPipe
c5243a875bb007fc67b02e1ed08b1d62b6ddc483
[ "MIT" ]
11
2016-01-06T13:06:43.000Z
2016-01-07T11:58:16.000Z
pycompupipe/components/print_entity_structure.py
xaedes/PyCompuPipe
c5243a875bb007fc67b02e1ed08b1d62b6ddc483
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from __future__ import division from __future__ import absolute_import import numpy as np from pyecs import * from pyecs.components import * from . import * from time import time class PrintEntityStructure(Component): """docstring for PrintEntityStructure""" de...
25.052632
77
0.65021
114
952
5.192982
0.447368
0.067568
0.101351
0.054054
0.091216
0.091216
0
0
0
0
0
0.004144
0.239496
952
38
78
25.052632
0.813536
0.056723
0
0.259259
0
0
0.003505
0
0
0
0
0
0
0
null
null
0.037037
0.259259
null
null
0.185185
0
0
0
null
0
0
0
0
0
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
2633800da362f2bf1bd007908696d645c073975a
464
py
Python
keyform/migrations/0013_auto_20180304_2240.py
mostateresnet/keyformproject
14cc95c6cc2786bead2d259e3042729a2ef9e744
[ "MIT" ]
null
null
null
keyform/migrations/0013_auto_20180304_2240.py
mostateresnet/keyformproject
14cc95c6cc2786bead2d259e3042729a2ef9e744
[ "MIT" ]
62
2017-02-23T22:00:46.000Z
2019-04-25T18:46:06.000Z
keyform/migrations/0013_auto_20180304_2240.py
mostateresnet/keyformproject
14cc95c6cc2786bead2d259e3042729a2ef9e744
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-04 22:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('keyform', '0012_merge_20171005_2152'), ] operations = [ migrations.AlterField...
22.095238
64
0.622845
51
464
5.470588
0.843137
0
0
0
0
0
0
0
0
0
0
0.099125
0.260776
464
20
65
23.2
0.714286
0.142241
0
0
1
0
0.108861
0.060759
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
2639e9960096655cb02d8db41dcc2f140b2f8dd9
434
py
Python
examples/plot_trace.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
6
2018-03-02T21:02:32.000Z
2020-05-26T08:23:24.000Z
examples/plot_trace.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
9
2018-03-02T21:19:26.000Z
2021-07-26T13:54:30.000Z
examples/plot_trace.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
5
2018-02-07T18:42:23.000Z
2021-04-29T07:01:50.000Z
""" Trace Plot ========== """ from msmbuilder.example_datasets import FsPeptide from msmbuilder.featurizer import RMSDFeaturizer import msmexplorer as msme # Load Fs Peptide Data traj = FsPeptide().get().trajectories[0] # Calculate RMSD featurizer = RMSDFeaturizer(reference_traj=traj[0]) rmsd = featurizer.partial_tr...
22.842105
75
0.75576
53
434
6.113208
0.622642
0.08642
0
0
0
0
0
0
0
0
0
0.007732
0.105991
434
18
76
24.111111
0.82732
0.158986
0
0
0
0
0.061972
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
26439ab9cb06e53f8be132fa2b4b8f62be67d57c
3,059
py
Python
tests/test_env.py
tzaffi/alpactor
7fa30a9a164f31de0a5d516cdd4a6370421665f4
[ "MIT" ]
null
null
null
tests/test_env.py
tzaffi/alpactor
7fa30a9a164f31de0a5d516cdd4a6370421665f4
[ "MIT" ]
null
null
null
tests/test_env.py
tzaffi/alpactor
7fa30a9a164f31de0a5d516cdd4a6370421665f4
[ "MIT" ]
1
2021-09-26T12:14:24.000Z
2021-09-26T12:14:24.000Z
import os from dotenv import dotenv_values import definitions from llama import env def test_env_without_fixture(): os.environ["ENV"] = "TEST" env.setup(force_rerun=True) assert "TEST_ENV_SENTINEL" == os.environ.get("ENV_SENTINEL") def test_live_env(): os.environ["ENV"] = "LIVE" env.setup(forc...
28.324074
96
0.677019
452
3,059
4.314159
0.15708
0.129231
0.116923
0.12
0.675897
0.650256
0.634872
0.634872
0.535385
0.484615
0
0
0.184701
3,059
107
97
28.588785
0.781877
0.025172
0
0.352113
0
0
0.232974
0.079231
0
0
0
0
0.422535
1
0.084507
false
0
0.056338
0
0.140845
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
264dd84a32045569279d4bfc55bb2d736d893119
1,285
py
Python
python/pySimE/space/exp/OrbitalTransferOpt/ClenshawCurtisQuadrature.py
ProkopHapala/SimpleSimulationEngine
240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5
[ "MIT" ]
26
2016-12-04T04:45:12.000Z
2022-03-24T09:39:28.000Z
python/pySimE/space/exp/OrbitalTransferOpt/ClenshawCurtisQuadrature.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
null
null
null
python/pySimE/space/exp/OrbitalTransferOpt/ClenshawCurtisQuadrature.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
2
2019-02-09T12:31:06.000Z
2019-04-28T02:24:50.000Z
#!/usr/bin/env python # Computes the Clenshaw Curtis quadrature #http://www.scientificpython.net/1/post/2012/04/clenshaw-curtis-quadrature.html from pylab import * from scipy.fftpack import ifft def ClenshawCurtisCoefs(n1): if n1 == 1: x = 0 w = 2 else: n = n1 - 1 C = zeros((n1,2)) k = 2*(1+...
19.769231
79
0.582879
239
1,285
3.129707
0.372385
0.010695
0.064171
0.029412
0.050802
0.050802
0.050802
0.050802
0.050802
0.050802
0
0.101059
0.19144
1,285
64
80
20.078125
0.618864
0.122957
0
0
0
0
0.024904
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.078947
0
0
0
null
0
0
0
0
0
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
264f905cf4426e46c63be46ae0d2bc327bcfd2bd
726
py
Python
tests/test_beam_size.py
HTuennermann/laserbeamsize
d126dbb157e9deef5eea9e7a3fd2fd62e3debe6a
[ "MIT" ]
null
null
null
tests/test_beam_size.py
HTuennermann/laserbeamsize
d126dbb157e9deef5eea9e7a3fd2fd62e3debe6a
[ "MIT" ]
null
null
null
tests/test_beam_size.py
HTuennermann/laserbeamsize
d126dbb157e9deef5eea9e7a3fd2fd62e3debe6a
[ "MIT" ]
null
null
null
import imageio import numpy as np import matplotlib.pyplot as plt import laserbeamsize as lbs beam = imageio.imread("./docs/k-200mm.png") x, y, dx, dy, phi = lbs.beam_size(beam) import unittest class TestBeamSize(unittest.TestCase): def test_k_200mm(self): beam = imageio.imread("./docs/k-200mm.png") ...
25.928571
59
0.657025
103
726
4.514563
0.436893
0.150538
0.064516
0.086022
0.404301
0.232258
0.232258
0.232258
0.232258
0.232258
0
0.208191
0.192837
726
28
60
25.928571
0.585324
0
0
0.222222
0
0
0.060523
0
0
0
0
0
0.277778
1
0.055556
false
0
0.277778
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2650a74b0136ed7cbc9f4a25a51b5379eac98e32
501
py
Python
correctiv_eurosfueraerzte/migrations/0026_auto_20170712_0910.py
correctiv/correctiv-eurosfueraerzte
291c358d65eccf06034e409d888de56a4545c7b7
[ "MIT" ]
4
2016-09-24T07:27:49.000Z
2021-11-08T12:14:30.000Z
correctiv_eurosfueraerzte/migrations/0026_auto_20170712_0910.py
correctiv/correctiv-eurosfueraerzte
291c358d65eccf06034e409d888de56a4545c7b7
[ "MIT" ]
5
2020-06-05T17:33:30.000Z
2022-03-11T23:16:18.000Z
correctiv_eurosfueraerzte/migrations/0026_auto_20170712_0910.py
correctiv/correctiv-eurosfueraerzte
291c358d65eccf06034e409d888de56a4545c7b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-07-12 07:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('correctiv_eurosfueraerzte', '0025_auto_20170621_1653'), ] operations = [ mi...
23.857143
68
0.648703
54
501
5.796296
0.796296
0
0
0
0
0
0
0
0
0
0
0.086842
0.241517
501
20
69
25.05
0.736842
0.135729
0
0
1
0
0.172093
0.111628
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
2652573d33a41c13c5a1fcb809f5a1722c0ee8c4
12,504
py
Python
tankmonitor.py
rweeks/tankmonitor
601f4fd9b6fb6f57ec4f5e8626c12f8c48e9e910
[ "Apache-2.0" ]
null
null
null
tankmonitor.py
rweeks/tankmonitor
601f4fd9b6fb6f57ec4f5e8626c12f8c48e9e910
[ "Apache-2.0" ]
null
null
null
tankmonitor.py
rweeks/tankmonitor
601f4fd9b6fb6f57ec4f5e8626c12f8c48e9e910
[ "Apache-2.0" ]
null
null
null
from threading import Lock, Thread from tornado.web import Application, RequestHandler, HTTPError from tornado.httpserver import HTTPServer from tornado.template import Template from tornado.ioloop import IOLoop, PeriodicCallback from tornado.gen import coroutine from tornado.concurrent import run_on_executor from sock...
37.662651
121
0.639315
1,525
12,504
5.059016
0.260328
0.018146
0.010888
0.007777
0.112638
0.091899
0.030071
0.015813
0.015813
0
0
0.012601
0.257438
12,504
331
122
37.776435
0.818309
0.006638
0
0.081784
0
0
0.093634
0.011021
0
0
0.000705
0
0
0
null
null
0.007435
0.092937
null
null
0.01487
0
0
0
null
0
0
0
0
0
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
2653ab9990b1a0bc98d44f44dad56c1d74a139d1
176
py
Python
python/ex23.py
kazushiyuuki/Lab-ICC
f84ac28b230c9a43d1d323cf0826237c39608429
[ "MIT" ]
null
null
null
python/ex23.py
kazushiyuuki/Lab-ICC
f84ac28b230c9a43d1d323cf0826237c39608429
[ "MIT" ]
null
null
null
python/ex23.py
kazushiyuuki/Lab-ICC
f84ac28b230c9a43d1d323cf0826237c39608429
[ "MIT" ]
null
null
null
n = int(input()) cont = 0 while cont < n: num = int(input()) if cont == 0: maior = num elif num > maior: maior = num cont += 1 print(maior)
16
22
0.482955
25
176
3.4
0.48
0.188235
0
0
0
0
0
0
0
0
0
0.027523
0.380682
176
11
23
16
0.752294
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
265432917ff2a599102722e779941cb7967b5ed9
1,668
py
Python
isEvenGenerator.py
rjgoodman1/IsEvenGenerator
10a616829a29a3be2772a127b7dbf1eb1ce6b211
[ "MIT" ]
null
null
null
isEvenGenerator.py
rjgoodman1/IsEvenGenerator
10a616829a29a3be2772a127b7dbf1eb1ce6b211
[ "MIT" ]
null
null
null
isEvenGenerator.py
rjgoodman1/IsEvenGenerator
10a616829a29a3be2772a127b7dbf1eb1ce6b211
[ "MIT" ]
null
null
null
import sys import subprocess # total arguments n = len(sys.argv) # Argument Sanitation if n > 2: print("Please provide positive integer n to generate IsEvenProgram") if int(sys.argv[1]) < 0: print("Please provide positive integer n to generate IsEvenProgram") exit inverseN = -1 * int(sys.argv[1]) # Generat...
29.785714
140
0.618106
267
1,668
3.850187
0.303371
0.163424
0.148833
0.097276
0.342412
0.316148
0.289883
0.252918
0.252918
0.142023
0
0.012057
0.154676
1,668
55
141
30.327273
0.717021
0.056355
0
0.095238
1
0
0.41672
0.027441
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.047619
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
2657713a51af5dfd8c3831456fbe1758755fc24f
14,309
py
Python
Trabalho Final/src/clientInterface.py
Eduardodsb/Sistemas-Distribuidos
7c4ef3ef7cc10782319d9ff8703fcbe2e5098d35
[ "MIT" ]
null
null
null
Trabalho Final/src/clientInterface.py
Eduardodsb/Sistemas-Distribuidos
7c4ef3ef7cc10782319d9ff8703fcbe2e5098d35
[ "MIT" ]
null
null
null
Trabalho Final/src/clientInterface.py
Eduardodsb/Sistemas-Distribuidos
7c4ef3ef7cc10782319d9ff8703fcbe2e5098d35
[ "MIT" ]
null
null
null
from constants import LOGOUT, CREATE_CHANNEL, SUBSCRIBE_CHANNEL, UNSUBSCRIBE_CHANNEL, SHOW_MY_SUBS, PUBLISH_CHANNEL, SHOW_MY_CHANNELS, SHOW_ALL_CHANNELS from constants import LOGIN, CREATE_ACCOUNT, DELETE_ACCOUNT, EXIT from constants import HOME_SCR, CREATE_ACCOUNT_SCR, DELETE_ACCOUNT_SCR, LOGIN_SCR, PRINCIPAL_MENU_S...
46.307443
167
0.591027
1,502
14,309
5.5253
0.188415
0.044343
0.042415
0.052416
0.545969
0.462224
0.355947
0.31558
0.283046
0.223159
0
0.001775
0.291145
14,309
309
168
46.307443
0.816425
0.138025
0
0.377451
0
0.004902
0.281046
0.038294
0
0
0
0.006472
0
1
0.053922
false
0.063725
0.019608
0
0.107843
0.156863
0
0
0
null
0
0
0
0
0
0
0
0
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
265b94b2f1ab335ea9681cdff66227b404557663
1,056
py
Python
appdaemon/settings/apps/test.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/test.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/test.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import appdaemon.plugins.hass.hassapi as hass from notification import send_notification import datetime import sys, locale import logging, codecs import os #import unicode # from automation import Automation # type: ignore """ Monitor events and output changes to the verbose_log. Nice for deb...
32
146
0.661932
129
1,056
5.302326
0.534884
0.040936
0.074561
0.064327
0.149123
0.149123
0.149123
0.149123
0
0
0
0.004866
0.221591
1,056
32
147
33
0.827251
0.453598
0
0
0
0
0.037647
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.75
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
2668d7810cbdf5b5fad90c707998f62b4c1ddbc8
5,019
py
Python
src/admin/form_handlers/account.py
idefant/UrFU-FAQ
07fc8ef990b77fb0345b6e95ff3cb2daaedfc178
[ "MIT" ]
1
2021-12-01T05:14:26.000Z
2021-12-01T05:14:26.000Z
src/admin/form_handlers/account.py
idefant/UrFU-FAQ
07fc8ef990b77fb0345b6e95ff3cb2daaedfc178
[ "MIT" ]
null
null
null
src/admin/form_handlers/account.py
idefant/UrFU-FAQ
07fc8ef990b77fb0345b6e95ff3cb2daaedfc178
[ "MIT" ]
null
null
null
import re from secrets import token_urlsafe from flask import flash, url_for, redirect, render_template, session from flask_classy import FlaskView, route from flask_login import login_required, current_user, login_user from sqlalchemy import exc from werkzeug.security import check_password_hash, generate_password_hash...
50.19
118
0.594342
504
5,019
5.72619
0.275794
0.053361
0.056133
0.043313
0.42273
0.365558
0.306999
0.306999
0.281358
0.281358
0
0.001463
0.318988
5,019
99
119
50.69697
0.842891
0
0
0.347826
0
0
0.173142
0.017334
0
0
0
0
0
1
0.032609
false
0.173913
0.097826
0
0.228261
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
266b347203d36f630ec6f3e86765668b913691d9
4,321
py
Python
src/Queue.py
muyun/dev.algorithms
83aba77099941e4cdcef60a0914b642b24af339b
[ "MIT" ]
null
null
null
src/Queue.py
muyun/dev.algorithms
83aba77099941e4cdcef60a0914b642b24af339b
[ "MIT" ]
null
null
null
src/Queue.py
muyun/dev.algorithms
83aba77099941e4cdcef60a0914b642b24af339b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #queue.py: wenlong #description: queue: use FIFO policy, using link list structure (O(1)) # priority queue: use the priority queueing policy, using list structure # the priority depends on the comparison operators (using built-in or __cmp__ method) #TODO: ...
32.488722
113
0.573941
569
4,321
4.28471
0.246046
0.045119
0.018048
0.032814
0.162428
0.112387
0.112387
0.055783
0.033634
0.033634
0
0.007788
0.346216
4,321
132
114
32.734848
0.855221
0.394353
0
0.383562
0
0
0
0
0
0
0
0.007576
0
0
null
null
0
0.013699
null
null
0.041096
0
0
0
null
0
0
0
0
0
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
266ef809db3092eb82bb8a5b5e0d9a7cc8930d26
966
py
Python
core/stats/urls.py
marcesher/collab
0c418d8ea3c312966b8603a07f8edf6b75b3c24b
[ "CC0-1.0" ]
61
2015-01-05T21:10:50.000Z
2021-06-09T06:03:52.000Z
core/stats/urls.py
DalavanCloud/collab
963bb61d936890b91176339ac6a0c52f5f2fa362
[ "CC0-1.0" ]
30
2015-02-24T03:45:28.000Z
2020-04-10T14:27:15.000Z
core/stats/urls.py
gaybro8777/collab
963bb61d936890b91176339ac6a0c52f5f2fa362
[ "CC0-1.0" ]
33
2015-05-01T02:16:36.000Z
2021-12-07T17:43:00.000Z
from django.conf.urls import patterns, url from django.views.generic import RedirectView urlpatterns = patterns('core.stats.views', url(r'^$', RedirectView.as_view(url='dashboard/')), url(r'dashboard/$', 'dashboard', name='dashboard'), ...
48.3
93
0.454451
83
966
5.048193
0.373494
0.057279
0.150358
0.178998
0
0
0
0
0
0
0
0
0.425466
966
19
94
50.842105
0.754955
0
0
0.166667
0
0
0.322981
0.190476
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
266fc2f2be7474eb58f070e3a6eed1744f504e3a
501
py
Python
tests/_testsite/apps/forum_conversation/migrations/0012_post_notifications_sent.py
tim-schilling/django-machina
c48d31b2313b59d810771ee53909d941e7475679
[ "BSD-3-Clause" ]
null
null
null
tests/_testsite/apps/forum_conversation/migrations/0012_post_notifications_sent.py
tim-schilling/django-machina
c48d31b2313b59d810771ee53909d941e7475679
[ "BSD-3-Clause" ]
null
null
null
tests/_testsite/apps/forum_conversation/migrations/0012_post_notifications_sent.py
tim-schilling/django-machina
c48d31b2313b59d810771ee53909d941e7475679
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-10-01 11:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum_conversation', '0011_topic_dummy'), ] operations = [ migrations.AddFi...
23.857143
88
0.642715
54
501
5.759259
0.777778
0.109325
0.135048
0
0
0
0
0
0
0
0
0.055409
0.243513
501
20
89
25.05
0.765172
0.135729
0
0
1
0
0.172093
0
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
26706a6decd451748ae858bb6898bacff2d4ac94
1,343
py
Python
lepiota/account/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
lepiota/account/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
lepiota/account/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import include from django.contrib.auth import views as auth_views from .views import UserDetails, GroupList, SignUp app_name = 'account' # User endpoints urlpatterns = [ path('users/<pk>/', UserDetails.as_view()), path('groups/', GroupList.as_view()), ] ...
19.75
56
0.602383
134
1,343
5.828358
0.320896
0.069142
0.089629
0.138284
0.179257
0
0
0
0
0
0
0.002051
0.274013
1,343
67
57
20.044776
0.798974
0.044676
0
0.333333
0
0
0.204848
0.069586
0
0
0
0
0
1
0
false
0.333333
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
0
1
0
0
0
0
0
1
26734cf6bad6dddd9402b224a872ad6324971910
26,356
py
Python
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/shaders.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2015-07-12T07:24:17.000Z
2015-07-12T07:24:17.000Z
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/shaders.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
null
null
null
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/shaders.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2016-02-19T21:55:53.000Z
2016-02-19T21:55:53.000Z
"""Shader node implementation""" from OpenGL.GL import * from OpenGL.GL import shaders as GL_shaders from OpenGL.GLU import * from OpenGL.GLUT import * from OpenGL import error from OpenGL.arrays import vbo from OpenGLContext.arrays import array,reshape from OpenGLContext import context from vrml.vrml97 import shaders ...
38.58858
108
0.549742
2,689
26,356
5.338044
0.189662
0.011147
0.005016
0.006967
0.231852
0.172495
0.137105
0.115926
0.101087
0.101087
0
0.004312
0.357679
26,356
682
109
38.645161
0.843582
0.049476
0
0.271403
0
0
0.040179
0
0
0
0
0.004399
0
0
null
null
0.001821
0.041894
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
267680ed40a546b662df9611094aaa32121fd57b
355
py
Python
numba/l2_distance/CPU/l2_distance.py
PokhodenkoSA/dpbench
b22970237a7d550f7b0514481797247edcb4f190
[ "BSD-2-Clause" ]
null
null
null
numba/l2_distance/CPU/l2_distance.py
PokhodenkoSA/dpbench
b22970237a7d550f7b0514481797247edcb4f190
[ "BSD-2-Clause" ]
null
null
null
numba/l2_distance/CPU/l2_distance.py
PokhodenkoSA/dpbench
b22970237a7d550f7b0514481797247edcb4f190
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2017-2018 Intel Corporation # # SPDX-License-Identifier: MIT import base_l2_distance import numpy as np import numba @numba.jit(nopython=True,parallel=True,fastmath=True) def l2_distance(a,b): sub = a-b sq = np.square(sub) sum = np.sum(sq) d = np.sqrt(sum) return d base_l2_distan...
18.684211
53
0.707042
58
355
4.224138
0.586207
0.204082
0.114286
0
0
0
0
0
0
0
0
0.044369
0.174648
355
18
54
19.722222
0.791809
0.197183
0
0
0
0
0.039146
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
268e3affa6908d9d000b19d4d76b1f82d5d6262c
1,897
py
Python
ntua_gpa.py
pmparitakis/NTUA_GPA_Calculator
3eedbffdd2a482a196b5346c65657ae73b5f7380
[ "MIT" ]
null
null
null
ntua_gpa.py
pmparitakis/NTUA_GPA_Calculator
3eedbffdd2a482a196b5346c65657ae73b5f7380
[ "MIT" ]
null
null
null
ntua_gpa.py
pmparitakis/NTUA_GPA_Calculator
3eedbffdd2a482a196b5346c65657ae73b5f7380
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #GPA calculator for the National Technical University of Athens, Greece print ("\nGPA calculator for the National Technical University of Athens (Greece).") while True: try: #GPA of the classes required for the Master of Engineering degree with a rate of 80% (4/5) Μέσος_Όρος_Μαθη...
36.480769
180
0.709014
276
1,897
4.822464
0.376812
0.072126
0.040571
0.036063
0.486101
0.396694
0.366642
0.366642
0.366642
0.217881
0
0.031532
0.180812
1,897
51
181
37.196078
0.824968
0.203479
0
0.307692
0
0.153846
0.583112
0
0
0
0
0
0
0
null
null
0
0
null
null
0.346154
0
0
0
null
0
0
0
0
0
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
13fb83dbd8b5c8446d3dc5227e7938ed4ef0146e
420
py
Python
contrib/dhcp_agent/setup.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
contrib/dhcp_agent/setup.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
contrib/dhcp_agent/setup.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
# -*- encoding: utf-8 -*- from setuptools import setup setup( name='dhcp_agent', version='0.1.0', author='Allegro Group and Contributors', author_email='pylabs@allegro.pl', platforms=['any'], license='Apache Software License v2.0', py_modules=[ 'dhcp_agent', ], entry_points=...
21
49
0.580952
47
420
5.042553
0.744681
0.151899
0
0
0
0
0
0
0
0
0
0.019417
0.264286
420
19
50
22.105263
0.747573
0.054762
0
0.117647
0
0
0.38481
0
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
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
13fc9a9a319464b6743267b5d5822789734a9bb7
7,658
py
Python
GMATE/plugins/project_manager/projectexplorer.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
1
2016-05-09T11:48:44.000Z
2016-05-09T11:48:44.000Z
GMATE/plugins/project_manager/projectexplorer.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
null
null
null
GMATE/plugins/project_manager/projectexplorer.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # GMate - Plugin Based Programmer's Text Editor # Copyright © 2008-2009 Alexandre da Silva # # This file is part of Gmate. # # See LICENTE.TXT for licence information """The management class of the plugin, it is used to construct, activate, deactivate, and update the plugin.""" import os impo...
35.12844
78
0.607861
938
7,658
4.766525
0.223881
0.019682
0.021472
0.02013
0.221203
0.18251
0.161485
0.150749
0.150749
0.133304
0
0.015123
0.309219
7,658
217
79
35.290323
0.829868
0.085531
0
0.292857
0
0
0.00689
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.007143
0
0
0
null
0
0
0
0
0
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
cd0299fac4772f64fde94a5b0d2f5a8f9c0077cf
1,004
py
Python
tests/bo/test_configuration_bo.py
Asconius/trading-bot
df544f058d12c5378a0f8c110e28d49d983e0393
[ "Apache-2.0" ]
2
2021-06-04T11:27:02.000Z
2021-12-19T03:24:51.000Z
tests/bo/test_configuration_bo.py
Asconius/trading-bot
df544f058d12c5378a0f8c110e28d49d983e0393
[ "Apache-2.0" ]
22
2020-08-24T05:16:11.000Z
2021-12-13T20:51:25.000Z
tests/bo/test_configuration_bo.py
Asconius/trading-bot
df544f058d12c5378a0f8c110e28d49d983e0393
[ "Apache-2.0" ]
null
null
null
import unittest from src import db from src.bo.configuration_bo import ConfigurationBO from src.dao.configuration_dao import ConfigurationDAO from src.entity.configuration_entity import ConfigurationEntity from src.enums.configuration_enum import ConfigurationEnum from tests.utils.utils import Utils class Configurat...
31.375
94
0.73008
102
1,004
6.980392
0.490196
0.049157
0
0
0
0
0
0
0
0
0
0.001238
0.195219
1,004
31
95
32.387097
0.879951
0
0
0
0
0
0.007968
0
0
0
0
0
0.130435
1
0.130435
false
0
0.304348
0
0.478261
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
cd1f13d1c7b480d129981ad97dc579ba957bc53f
9,174
py
Python
spacetime/store_server.py
dpocheng/Python-Search-Engine-Web-Crawler
cacbf4fb83d7fd2a590872d8804f00b3dbf317a3
[ "Apache-2.0" ]
null
null
null
spacetime/store_server.py
dpocheng/Python-Search-Engine-Web-Crawler
cacbf4fb83d7fd2a590872d8804f00b3dbf317a3
[ "Apache-2.0" ]
null
null
null
spacetime/store_server.py
dpocheng/Python-Search-Engine-Web-Crawler
cacbf4fb83d7fd2a590872d8804f00b3dbf317a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ''' Created on Feb 19, 2016 author: arthurvaladares, Rohan Achar ''' from functools import wraps import json import logging, logging.handlers import os import signal import sys from threading import Timer import time import urllib2 import zlib from flask import Flask, request, Response, make_respons...
33.36
109
0.63124
1,052
9,174
5.361217
0.25
0.034043
0.02695
0.025709
0.180319
0.129078
0.057979
0.038298
0.038298
0.038298
0
0.007219
0.24504
9,174
274
110
33.481752
0.806959
0.036516
0
0.165138
0
0
0.095632
0.013861
0
0
0
0
0
0
null
null
0
0.077982
null
null
0.022936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cd279ef9786a48746af9d891a85f7225d6d4fe7f
2,087
py
Python
asr/utils/dataset.py
igormq/speech2text
f3718bcb4fb0a3096e386d0d7f2b98b09ec21303
[ "MIT" ]
11
2020-06-19T15:28:55.000Z
2022-03-23T15:37:45.000Z
asr/utils/dataset.py
igormq/speech2text
f3718bcb4fb0a3096e386d0d7f2b98b09ec21303
[ "MIT" ]
1
2021-01-14T14:38:02.000Z
2021-02-12T13:17:37.000Z
asr/utils/dataset.py
igormq/speech2text
f3718bcb4fb0a3096e386d0d7f2b98b09ec21303
[ "MIT" ]
3
2021-02-12T00:41:27.000Z
2021-04-15T08:55:10.000Z
from asr.data import datasets, loaders from asr import samplers from asr.exceptions import ConfigurationError from asr.utils.checks import check_for_data_path import logging logger = logging.getLogger() def datasets_from_params(params): """ Load all the datasets specified by the config. """ sets = {}...
31.149254
78
0.589363
222
2,087
5.342342
0.315315
0.060708
0.045531
0.026981
0.112985
0.037099
0
0
0
0
0
0.000714
0.328701
2,087
66
79
31.621212
0.845824
0.057499
0
0.090909
0
0
0.117252
0
0
0
0
0.015152
0
1
0.045455
false
0
0.113636
0
0.204545
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
cd2d295112c0f5dcb96fba73fbc9dbef0ebf3d7e
306
py
Python
src/foobar/widgets/blue.py
jwodder/mypy-bug-20220227
257c65d2944e5589414aeaa24d0290a45aa2159a
[ "MIT" ]
null
null
null
src/foobar/widgets/blue.py
jwodder/mypy-bug-20220227
257c65d2944e5589414aeaa24d0290a45aa2159a
[ "MIT" ]
null
null
null
src/foobar/widgets/blue.py
jwodder/mypy-bug-20220227
257c65d2944e5589414aeaa24d0290a45aa2159a
[ "MIT" ]
null
null
null
import attr from .base import Widget @attr.define class BlueWidget(Widget): nessness: int = attr.field(init=False) def __attrs_post_init__(self) -> None: if self.spec.nessness is None: raise ValueError("Blue widgets must be nessy") self.nessness = self.spec.nessness
23.538462
58
0.683007
41
306
4.95122
0.682927
0.078818
0.157635
0
0
0
0
0
0
0
0
0
0.22549
306
12
59
25.5
0.85654
0
0
0
0
0
0.084967
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1