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
92b599cdface562c0a63bce70f29c39376ec628b
2,699
py
Python
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
1
2021-11-18T02:27:29.000Z
2021-11-18T02:27:29.000Z
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.557143
115
0.675435
326
2,699
5.53681
0.423313
0.033241
0.014404
0.017729
0.18615
0.18615
0.142936
0.142936
0.093075
0.093075
0
0.01679
0.249722
2,699
69
116
39.115942
0.874568
0.419415
0
0.40625
0
0
0.123894
0
0
0
0.013615
0
0
1
0.15625
false
0
0.25
0
0.53125
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
92b669a43887f9c811d94bcfb545a90bfec0af49
718
py
Python
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
2
2015-10-07T12:31:24.000Z
2015-10-08T04:58:48.000Z
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
from setuptools import setup from pip.req import parse_requirements import sys, os sys.path.append("wutu/") sys.path.append("wutu/compiler/") install_reqs = list(parse_requirements("requirements.txt", session={})) def version(): import version return version.get_version() setup(name="wutu", version...
27.615385
71
0.669916
86
718
5.488372
0.627907
0.072034
0.055085
0.072034
0
0
0
0
0
0
0
0
0.189415
718
25
72
28.72
0.810997
0
0
0
0
0
0.250696
0
0
0
0
0
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b778782a6c826438fa80906dc1159fa91249e9
2,063
py
Python
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
import itertools import threading import pickle import time import sys def animate(): for c in itertools.cycle(['|', '/', '-', '\\']): if done: break sys.stdout.write('\rComputing the matrix ' + c) sys.stdout.flush() time.sleep(0.1) sys.stdout.write('\r... ') ...
20.838384
84
0.565681
266
2,063
4.244361
0.338346
0.063773
0.038973
0.033658
0.267493
0.200177
0.200177
0.200177
0.200177
0.200177
0
0.013148
0.336403
2,063
98
85
21.05102
0.811541
0.141057
0
0.307692
0
0
0.041998
0
0
0
0
0
0
1
0.057692
false
0
0.096154
0
0.192308
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b80775e077bc571711817c75463061aa2ef995
2,632
py
Python
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
from pathlib import PurePath from elftools.elf.elffile import ELFFile from .typing import get_class import ctypes def die_from_offset(cu, offset): return [die for die in cu.iter_DIEs() if die.offset == offset][0] def get_type_from_file(filename, name): with open(str(filename), 'rb') as f: elffile = EL...
48.740741
153
0.676292
408
2,632
4.110294
0.213235
0.031008
0.066786
0.07096
0.514013
0.44186
0.339296
0.309481
0.254025
0.254025
0
0.005629
0.18997
2,632
54
154
48.740741
0.780957
0
0
0.255319
0
0
0.11128
0.021269
0
0
0
0
0
1
0.106383
false
0
0.085106
0.042553
0.319149
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ba7faaffb8f7360355154db493fc509d84f145
2,305
py
Python
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
import os from functools import partial import lazy_object_proxy def start_spark(app_name="Jupyter"): def sc_lazy(spark): return spark.sparkContext def hc_lazy(spark): return HiveContext(spark.sparkContext) global sc global hc global sqlContext global spark import fin...
43.490566
115
0.463774
169
2,305
6.213018
0.378698
0.146667
0.071429
0.07619
0.098095
0.072381
0.072381
0.072381
0
0
0
0.025316
0.451627
2,305
52
116
44.326923
0.80538
0
0
0
0
0
0.204772
0.163557
0
0
0
0
0
1
0.076923
false
0
0.153846
0.051282
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92baceda72fe1079e3c469a957d61c1676e7dbea
1,534
py
Python
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
""" This file can be used to try a live prediction. """ import keras import librosa import numpy as np class LivePredictions: """ Main class of the application. """ def __init__(self): """ Init method is used to initialize the main parameters. """ self.path = './model...
30.078431
92
0.524772
169
1,534
4.615385
0.573965
0.015385
0.038462
0.033333
0
0
0
0
0
0
0
0.014418
0.367014
1,534
50
93
30.68
0.788877
0.166884
0
0
0
0
0.080169
0.033755
0
0
0
0
0
1
0.107143
false
0
0.107143
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7cd4df0f0bbe6c33a448d501b266a7c04861f1
3,956
py
Python
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
1
2021-11-12T12:57:59.000Z
2021-11-12T12:57:59.000Z
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
import pygame import __main__ from Modules.Globals import * from Modules.NavWidgets.Battery import * from Modules.NavWidgets.Bluetooth import * from Modules.NavWidgets.Wifi import * class Nav(): def __init__(self, parent): self.visible = True self.parent = parent self.buttons = [] s...
31.396825
105
0.503539
416
3,956
4.680288
0.223558
0.09245
0.050334
0.058552
0.510529
0.447869
0.404725
0.345146
0.313303
0.313303
0
0.022194
0.39636
3,956
125
106
31.648
0.793132
0.035137
0
0.356436
0
0
0.021791
0
0
0
0
0
0
1
0.049505
false
0.019802
0.059406
0
0.118812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7e914455b7e4d21ee32d8e348737af8ad3bb3b
1,463
py
Python
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
4
2020-07-01T17:10:25.000Z
2020-11-10T22:15:55.000Z
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
null
null
null
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
3
2020-06-24T17:33:50.000Z
2020-11-17T20:45:43.000Z
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField from wtforms.validators import DataRequired, Email, Length from flask_wtf.file import FileField, FileAllowed, FileRequired class SignUpForm(FlaskForm): name = StringField('Name', validators=[DataR...
47.193548
92
0.723855
143
1,463
7.384615
0.356643
0.166667
0.153409
0.106061
0.554924
0.554924
0.554924
0.554924
0.485795
0.485795
0
0.00394
0.132604
1,463
31
93
47.193548
0.828211
0
0
0.307692
0
0
0.137295
0
0
0
0
0
0
1
0
false
0.230769
0.153846
0
0.961538
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
1
0
0
2
2b7eedc17fc971f906228a3bedf199afe148ad63
358
py
Python
executive/executive/urls.py
b800h/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
1
2019-03-14T11:13:00.000Z
2019-03-14T11:13:00.000Z
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'executive.views.home', name='home'), url(r'^cloudcontrol/ajax/', include('cloudcontrol.urlsajax')), url(r'^cloudcontrol/', include('cloudcontrol.urls')), url(r'^...
32.545455
66
0.675978
43
358
5.627907
0.488372
0.066116
0.132231
0
0
0
0
0
0
0
0
0
0.131285
358
10
67
35.8
0.778135
0.162011
0
0
0
0
0.262626
0.070707
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7faeb53a37cd7b206440dda10874cb138af114
5,356
py
Python
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
null
null
null
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
66
2019-05-03T22:10:11.000Z
2022-02-20T18:33:38.000Z
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
8
2018-05-17T04:16:30.000Z
2022-02-07T18:00:57.000Z
""" ================================================= Classify ALS diagnosis from white matter features ================================================= Predict ALS diagnosis from white matter features. This example fetches the ALS classification dataset from Sarica et al [1]_. This dataset contains tractometry featu...
41.51938
181
0.731516
794
5,356
4.816121
0.437028
0.012552
0.01046
0.010983
0.042887
0.02772
0
0
0
0
0
0.026316
0.155713
5,356
128
182
41.84375
0.819328
0.476475
0
0
0
0
0.154595
0.052252
0
0
0
0
0
1
0
false
0
0.106667
0
0.106667
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b827b627d677ff0e024a5757a45773ff0405784
7,004
py
Python
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
1
2020-05-05T05:11:56.000Z
2020-05-05T05:11:56.000Z
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. import itertools import numpy as np import pandas as pd from monty.json import MSONable from pymatgen.core.periodic_table import get_el_sp from sklearn.base import TransformerMixin, BaseEstimator class Bispectrum...
43.234568
93
0.536408
816
7,004
4.503676
0.289216
0.035374
0.010612
0.015238
0.17415
0.122993
0.099048
0.051156
0.051156
0.035918
0
0.017898
0.369789
7,004
161
94
43.503106
0.814681
0.344517
0
0.053333
0
0
0.01627
0
0
0
0
0
0
1
0.066667
false
0
0.093333
0
0.226667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b87549bbd51431d78948c0c0286d6c5c6d1c477
4,505
py
Python
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
1
2022-02-24T23:39:12.000Z
2022-02-24T23:39:12.000Z
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
from ImagePreprocessing.ImagePreprocessing import load_label_encoder, save_label_encoder, \ convert_labels_to_one_hot_vectors from JetRecognizerPreprocessing import get_random_train_fighter_images_as_pixel_values_generator, \ get_random_validation_fighter_images_as_pixel_values_generator from BatchLoopGenerator...
45.505051
131
0.767592
635
4,505
5.062992
0.247244
0.070918
0.02395
0.027994
0.330327
0.231104
0.152722
0.152722
0.127838
0.092068
0
0.019145
0.153607
4,505
98
132
45.969388
0.824023
0.108102
0
0.027778
0
0.027778
0.161258
0.032451
0
0
0
0.010204
0
1
0
false
0
0.125
0
0.125
0.152778
0
0
0
null
0
0
0
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
2b88ac303411dbb8834614706fb3ea14becb3330
68,137
py
Python
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
46.132024
198
0.610931
8,955
68,137
4.460525
0.095701
0.042059
0.010815
0.003004
0.51084
0.461696
0.416533
0.392525
0.373949
0.352644
0
0.010204
0.29379
68,137
1,476
199
46.163279
0.819905
0.33371
0
0.305396
0
0.01837
0.197463
0.030265
0
0
0
0.000678
0.006889
1
0.030999
false
0.002296
0.020666
0.001148
0.137773
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b89378a0a9c79a3daaa3b6a56cbcba3f417f9d5
455
py
Python
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
1
2019-10-03T02:51:05.000Z
2019-10-03T02:51:05.000Z
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
import os import sys here = sys.path[0] sys.path.insert(0, os.path.join(here,'..')) import time from coap import coap import logging_setup SERVER_IP = '::1' # open c = coap.coap(udpPort=5000) # retrieve value of 'test' resource p = c.GET('coap://[{0}]/test'.format(SERVER_IP),) print '=====' pri...
16.25
50
0.610989
72
455
3.805556
0.583333
0.051095
0
0
0
0
0
0
0
0
0
0.032877
0.197802
455
27
51
16.851852
0.717808
0.096703
0
0.125
0
0
0.155263
0
0
0
0
0
0
0
null
null
0
0.3125
null
null
0.1875
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
2
2b8a7153a2c7fe04826c272ba305bcfaefa1482d
1,469
py
Python
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
import unittest from color_gamma_analyzer.diapason import calculate_ranges class TestCalculatingOfRanges(unittest.TestCase): def setUp(self): self.brightness_data = [0.56, 0.76, 0.12, 0.97, 0.121, 0.454, 0.656] def test_calculating_diapason_ranges(self): calculated_ranges_first = [ ...
26.232143
76
0.497617
177
1,469
3.920904
0.276836
0.025937
0.15562
0.208934
0.31268
0.170029
0.170029
0.170029
0
0
0
0.117068
0.377808
1,469
55
77
26.709091
0.642232
0
0
0.1875
0
0
0.005446
0
0
0
0
0
0.104167
1
0.041667
false
0
0.041667
0
0.104167
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
2b8bc3d0e40e43824259f72ae47057f59a324480
3,470
py
Python
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# W roku 2050 Maksymilian odbywa podróż przez pustynię z miasta A do miasta B. Droga pomiędzy miastami # jest linią prostą na której w pewnych miejscach znajdują się plamy ropy. Maksymilian porusza się # 24-kołową cysterną, która spala 1 litr ropy na 1 kilometr trasy. Cysterna wyposażona jest w pompę # pozwalającą zbie...
50.289855
104
0.69366
548
3,470
4.344891
0.417883
0.029399
0.0063
0.0126
0.058379
0.053339
0.033599
0
0
0
0
0.022803
0.216427
3,470
68
105
51.029412
0.851416
0.660807
0
0.057143
0
0
0
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8d41aecdba1cd7987f459d5c39928afa74674b
159
py
Python
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
26
2019-01-07T14:22:05.000Z
2019-02-28T17:11:48.000Z
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
3
2019-09-19T22:16:09.000Z
2019-10-16T21:16:16.000Z
from django.contrib import admin from .models import Article ,Comment # Register your models here. admin.site.register(Article) admin.site.register(Comment)
19.875
36
0.805031
22
159
5.818182
0.545455
0.140625
0.265625
0
0
0
0
0
0
0
0
0
0.113208
159
7
37
22.714286
0.907801
0.163522
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
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
1
0
1
0
0
0
0
5
2b8e4161bf16ec89b1640782424942de3ea30db0
6,499
py
Python
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
90
2021-01-04T20:08:20.000Z
2022-03-14T11:20:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
93
2020-12-12T22:10:33.000Z
2021-11-21T16:12:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
13
2020-12-12T22:11:01.000Z
2021-09-22T14:37:09.000Z
import os from typing import Union from aws_cdk import core from aws_cdk.core import CfnOutput from datajob import logger from datajob.datajob_context import DataJobContext from datajob.datajob_execution_input import DataJobExecutionInput class DataJobStack(core.Stack): STAGE_NAME = "stage" def __init__( ...
36.717514
113
0.62625
809
6,499
4.911001
0.211372
0.015857
0.015102
0.009061
0.031211
0.031211
0.017619
0.017619
0.017619
0
0
0.000654
0.294507
6,499
176
114
36.926136
0.865867
0.270349
0
0.040816
0
0.010204
0.146823
0
0
0
0
0
0
1
0.132653
false
0.010204
0.071429
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8e54d9ba07085ebbc7eda5e53fdf3cf8fed6cb
5,869
py
Python
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
1
2020-06-04T11:10:27.000Z
2020-06-04T11:10:27.000Z
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable def list_all_files(rootdir, key): import os _files = [] list = os.listdir(rootdir) # 列出文件夹下所有的目录与文件 ...
30.567708
114
0.552905
847
5,869
3.638725
0.217237
0.02109
0.020441
0.021415
0.2573
0.237833
0.194354
0.17294
0.148605
0.148605
0
0.031938
0.295791
5,869
191
115
30.727749
0.713767
0.148066
0
0.109489
0
0
0.009459
0
0
0
0
0
0
1
0.051095
false
0
0.065693
0.007299
0.153285
0.014599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8e9143a4d8b498c35d6f0274755ccab7a27fe4
1,994
py
Python
Sources/Workflows/XLixian/iambus-xunlei-lixian/lixian_hash.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
2,177
2015-01-02T09:56:51.000Z
2022-03-27T01:48:37.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
24
2015-01-02T19:11:51.000Z
2021-01-27T07:20:33.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
516
2015-01-02T18:48:29.000Z
2022-01-26T07:12:35.000Z
#!/usr/bin/env python import hashlib import lixian_hash_ed2k import lixian_hash_bt import os def lib_hash_file(h, path): with open(path, 'rb') as stream: while True: bytes = stream.read(1024*1024) if not bytes: break h.update(bytes) return h.hexdigest() def sha1_hash_file(path): return lib_hash_fil...
23.458824
55
0.675025
309
1,994
4.126214
0.229773
0.100392
0.075294
0.053333
0.201569
0.183529
0.183529
0.142745
0
0
0
0.044311
0.162487
1,994
84
56
23.738095
0.719162
0.01003
0
0.171429
0
0
0.083164
0
0
0
0.015213
0
0.014286
0
null
null
0
0.071429
null
null
0.042857
0
0
0
null
0
0
0
0
0
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
2b8feaa10a6b312b58767ad31f13d28d00efcfc0
663
py
Python
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
22
2019-03-03T11:48:11.000Z
2022-01-13T19:13:37.000Z
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
2
2018-07-04T18:52:05.000Z
2019-10-02T09:01:34.000Z
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
4
2019-05-27T09:45:29.000Z
2021-09-10T15:08:57.000Z
class BaseAmqpException(Exception): default_detail = "Occurred an unexpected error." def __init__(self, detail=None): self.detail = detail if detail is not None else self.default_detail def __str__(self): return self.detail class AmqpInvalidUrl(BaseAmqpException): default_detail = ...
24.555556
75
0.751131
73
663
6.630137
0.520548
0.161157
0.247934
0.272727
0.173554
0
0
0
0
0
0
0
0.174962
663
26
76
25.5
0.884826
0
0
0
0
0
0.229955
0
0
0
0
0
0
1
0.142857
false
0
0
0.071429
0.928571
0
0
0
0
null
0
1
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
1
0
0
3
2b924ecff2ec12429f869ba4056b1d43ae0cd0bd
39
py
Python
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
1
2021-08-28T08:34:56.000Z
2021-08-28T08:34:56.000Z
CONTENT_TYPE_JSON = 'application/json'
19.5
38
0.820513
5
39
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.076923
39
1
39
39
0.833333
0
0
0
0
0
0.410256
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
3
2b93570ed0d715724876abed8f98fd6668d40c94
5,130
py
Python
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:24.000Z
2018-11-12T10:54:24.000Z
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
null
null
null
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:27.000Z
2018-11-12T10:54:27.000Z
""" Utility class for fesim By: Mehdi Paak """ import os import subprocess def create_meshinput_file(vardict): """ generate temporary mesh data input file to be read by salome_mesh.py script. """ try: geofile = vardict['GEOFILE'] wrkdir = vardict['WRKDIR'] seg_a = vardict...
28.983051
104
0.575828
638
5,130
4.562696
0.283699
0.032978
0.049124
0.054964
0.17348
0.112333
0.067674
0.008245
0.008245
0
0
0.008707
0.283626
5,130
176
105
29.147727
0.783401
0.137232
0
0.234694
1
0
0.231289
0
0
0
0
0.011364
0
1
0.05102
false
0
0.020408
0
0.071429
0.010204
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
1
0
0
0
0
0
0
0
0
0
0
2
2b9525401f62a8c3bf39cf1a74d072fa4e2b9b95
2,455
py
Python
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
14
2015-03-11T21:46:15.000Z
2020-06-06T16:01:38.000Z
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
20
2015-01-21T16:11:36.000Z
2020-01-06T10:30:46.000Z
chemreac/util/grid.py
chemreac/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
3
2015-08-13T12:06:17.000Z
2021-12-17T01:12:20.000Z
# -*- coding: utf-8 -*- """ chemreac.util.grid ------------------ Grid related utilities for one-dimensional grid of arbitrary spacing. """ from __future__ import print_function, division from math import log import numpy as np from ..units import get_derived_unit, to_unitless def generate_grid(x0, xend, N, logx...
25.309278
93
0.600407
344
2,455
4.188953
0.360465
0.00694
0.016655
0.013879
0.036086
0.036086
0
0
0
0
0
0.028318
0.266395
2,455
96
94
25.572917
0.771793
0.340937
0
0.102564
0
0
0.026639
0
0
0
0
0
0
1
0.102564
false
0
0.102564
0
0.333333
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
0
0
0
0
1
0
2b95278b15173f39c3e354e42bd5da9df55f3094
4,771
py
Python
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
#python: from collections import namedtuple import numpy as np from scipy.constants import speed_of_light import gprMax.input_cmd_funcs as gprmax_cmds import aux_funcs Point = namedtuple('Point', ['x', 'y', 'z']) # ! Simulation model parameters begin # * Naming parameters simulation_name = 'Antenna in free spac...
29.450617
78
0.640537
647
4,771
4.401855
0.236476
0.042135
0.010534
0.008427
0.239115
0.181531
0.140449
0.140449
0.140449
0.140449
0
0.024649
0.268707
4,771
161
79
29.63354
0.791631
0.134982
0
0.224299
0
0
0.038705
0.006086
0
0
0
0
0
1
0
false
0
0.046729
0
0.046729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b96748117a2ee7e1202b513f6bf2c96ed0a9759
6,226
py
Python
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-08-06T13:32:17.000Z
2021-08-06T13:32:17.000Z
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
null
null
null
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-10-20T20:16:30.000Z
2021-10-20T20:16:30.000Z
# Save Roam JSON Export file in same folder and run following code in terminal `python r2o.py my-roam-export.json` import sys import os import json from tqdm import tqdm import re from dateutil.parser import parse from datetime import datetime yaml = """--- title: {title} created: {created} --- """ months = r"Jan...
29.789474
114
0.540475
813
6,226
4.055351
0.273063
0.026691
0.048832
0.014559
0.166515
0.138004
0.057931
0.041856
0.041856
0.016379
0
0.023367
0.292001
6,226
208
115
29.932692
0.724592
0.122229
0
0.110429
0
0.018405
0.153945
0.038899
0
0
0
0
0
1
0.030675
false
0.02454
0.042945
0
0.104294
0.055215
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b99fe63fcf6d06c867423d961d88a13935d459e
1,465
py
Python
var/spack/repos/builtin/packages/canu/package.py
mrzv/spack
a0fb2838ea60f020179f480a2db1438da9d2e2ab
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Canu(MakefilePackage): """A single molecule sequence assembler for genomes large and ...
34.069767
95
0.63959
177
1,465
5.237288
0.661017
0.029126
0.030205
0.040992
0.049622
0
0
0
0
0
0
0.077058
0.220478
1,465
42
96
34.880952
0.734676
0.271672
0
0
0
0
0.271251
0.111748
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b9a383e24e5d4a41702986edf7f6ba4a61bd555
578
py
Python
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # aggregate-combiner.py import sys answers = [] last_user_id = None MEM_THRESHOLD = 1024 * 1024 * 1024 # 1 GB def write(user, entries): if len(entries) > 0: print('{0}\t{1}'.format(user, ','.join(entries))) for line in sys.stdin: user_id, answer_id = line.strip().split('\t', 1) ...
22.230769
92
0.65917
90
578
4
0.433333
0.166667
0.194444
0.094444
0.211111
0
0
0
0
0
0
0.036876
0.202422
578
25
93
23.12
0.744035
0.074394
0
0.25
0
0
0.020677
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.125
0.0625
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
2b9c36065308f6e11cc20429ce2141c3f1285943
646
py
Python
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 flask-mongoalchemy authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from __future__ import absolute_import from mongoalchemy import document from flaskext.mongoalchemy import Document from fla...
29.363636
65
0.787926
87
646
5.655172
0.643678
0.073171
0.105691
0.121951
0.178862
0.178862
0
0
0
0
0
0.009141
0.153251
646
21
66
30.761905
0.890311
0.312694
0
0
0
0
0.037118
0
0
0
0
0
0.1
1
0.1
false
0
0.5
0
0.7
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
1
0
0
2
2b9c7ab513539e60f2d46c3236a9f0d71ce9e6af
446
py
Python
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import socket #target machine's ip number target_ip = '3.82.4.173' #target machine's port number target_port = 8888 #create UDP socket # IPv4--(INET--INET6), type of socket UDP --(DGRAM--STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: msg = input("P...
20.272727
75
0.665919
68
446
4.279412
0.617647
0.089347
0.09622
0
0
0
0
0
0
0
0
0.047222
0.192825
446
21
76
21.238095
0.761111
0.363229
0
0
0
0
0.154122
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b9edcb37a923970861e233477ef7c666f955383
601
py
Python
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
from neo4j import GraphDatabase,basic_auth from neo4j.expections import ServiceUnavailable import neo_native_app as neo4j import json from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, Docker!' @app.route('/init_neo_driver') def db_init(): bolt ="bolt://127.0.0.0:7...
22.259259
52
0.71381
84
601
4.821429
0.5
0.024691
0.022222
0
0
0
0
0
0
0
0
0.045365
0.156406
601
26
53
23.115385
0.753452
0
0
0
0
0
0.154742
0.034942
0
0
0
0
0
1
0.1
false
0.1
0.25
0.05
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2b9f17f18f5bbb0bd66f11c7a64aabbb4c285ec5
733
py
Python
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
null
null
null
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
50
2021-08-28T23:02:22.000Z
2022-01-18T18:31:21.000Z
step1a/sanproof_1_02/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
1
2021-09-02T04:36:26.000Z
2021-09-02T04:36:26.000Z
# coding=utf-8 """transcode_ab.py """ from __future__ import print_function import sys, re,codecs sys.path.append('../') import transcoder transcoder.transcoder_set_dir('../transcoder') def transcode(x,tranin,tranout): y = transcoder.transcoder_processString(x,tranin,tranout) return y if __name__=="__main__": fi...
27.148148
63
0.709413
111
733
4.531532
0.531532
0.023857
0.053678
0.027833
0
0
0
0
0
0
0
0.009346
0.124147
733
26
64
28.192308
0.774143
0.096862
0
0
0
0
0.105828
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.263158
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ba3178b86594e0bd355d453a40ea67602520196
3,361
py
Python
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
from threading import Thread, Timer from time import time import logging try: import Adafruit_DHT except: pass class OneWireEnv(Thread): """This class is for reading out one wire sensors with the rpi""" def __init__(self, main, framework, update_interval=5000): """This starts the background ...
36.532609
109
0.547456
354
3,361
5.070621
0.322034
0.027298
0.04234
0.03844
0.288579
0.288579
0.254039
0.254039
0.254039
0.254039
0
0.004247
0.369533
3,361
91
110
36.934066
0.84285
0.091342
0
0.178082
0
0
0.135046
0
0
0
0
0
0
1
0.041096
false
0.013699
0.068493
0
0.136986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ba81ec618c7d1270dc12f7a84fbe054a68e7523
1,073
py
Python
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SDPR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
1
2021-09-26T08:03:11.000Z
2021-09-26T08:03:11.000Z
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
""" Flask app """ import pandas as pd from flask import Flask import json app = Flask(__name__) # runs in local host http://127.0.0.1:5000/latest/all @app.route('/latest/<horizon>') def weather(horizon): """ Reads json and outputs based on selected paramter Horizon can be either "all" or an integer betw...
24.386364
97
0.652377
158
1,073
4.322785
0.531646
0.030747
0.035139
0.039531
0.377745
0.310395
0.310395
0.281113
0.213763
0.213763
0
0.045949
0.229264
1,073
43
98
24.953488
0.779927
0.507922
0
0
0
0
0.135776
0.073276
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ba9a68c0d2e685fc62f09c1f4d6c194b81d0b3e
173
py
Python
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
119
2020-04-01T02:56:03.000Z
2022-03-30T13:01:49.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
8
2020-04-08T08:52:19.000Z
2021-12-08T04:22:37.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
47
2020-04-06T07:14:59.000Z
2022-03-21T15:57:53.000Z
"""Experimental modules and unexperimental model hooks.""" from .models import construct_model from .modules import MetaMonkey __all__ = ['construct_model', 'MetaMonkey']
24.714286
58
0.786127
19
173
6.842105
0.631579
0.215385
0
0
0
0
0
0
0
0
0
0
0.115607
173
6
59
28.833333
0.849673
0.300578
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
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
1
0
0
0
0
4
2bab34cabee96c50bbb6c626cf15d0541229eed3
376
py
Python
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-26 09:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('appointments', '0022_alter_appointment_end_time_and_more'), ] operations = [ migrations.RemoveField( model_name='appointmen...
20.888889
70
0.598404
39
376
5.564103
0.846154
0
0
0
0
0
0
0
0
0
0
0.072519
0.303191
376
17
71
22.117647
0.755725
0.119681
0
0
1
0
0.233974
0.128205
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
2bab74084dad44f3e5db5cfb85553841ba064145
259
py
Python
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
import itertools def sieve(size): is_prime = [True] * (size) for i in range(2, size): if is_prime[i]: is_prime[i*i::i] = [False] * len(is_prime[i*i::i]) f.write(json.dumps(list(itertools.compress(range(size), is_prime))[2:]))
28.777778
76
0.594595
43
259
3.465116
0.511628
0.234899
0.161074
0.120805
0.134228
0
0
0
0
0
0
0.009852
0.216216
259
8
77
32.375
0.724138
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
1
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
2
2babfb50af910a621784aa5f2878e7604544427c
535
py
Python
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
import cv2 import numpy as np def showImage(): filename = "Images/lena.jpg" img = cv2.imread(filename, cv2.IMREAD_GRAYSCALE) cv2.imshow('image', img) lut = np.arange(255, -1, -1, dtype='uint8') ysize = img.shape[0] xsize = img.shape[1] for y in range(ysize): for x i...
22.291667
53
0.573832
75
535
4.08
0.506667
0.039216
0
0
0
0
0
0
0
0
0
0.043928
0.276636
535
24
54
22.291667
0.74677
0.065421
0
0
0
0
0.065126
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bac10073b3ae6eec7697f798e5c4e87de6ae3a5
33,051
py
Python
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
58.809609
291
0.663399
3,856
33,051
5.465768
0.067427
0.086971
0.104574
0.055418
0.865819
0.836307
0.814196
0.801907
0.784304
0.756453
0
0.011297
0.183141
33,051
561
292
58.914439
0.769353
0.028743
0
0.711111
0
0.059259
0.330653
0.013869
0
0
0
0
0.019753
1
0.022222
false
0.004938
0.014815
0
0.049383
0.009877
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2bac2bdf3e935053151415509164e32a0e767cd4
1,340
py
Python
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here census=np.concatenate((data,new_record)) a...
23.928571
57
0.71194
256
1,340
3.429688
0.226563
0.027335
0.039863
0.045558
0.159453
0.159453
0.159453
0.159453
0.159453
0.159453
0
0.063506
0.118657
1,340
55
58
24.363636
0.679932
0.061194
0
0
0
0
0.005843
0
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bad03cbdb9b9c6e7b1117ca58db86aba320ec23
3,247
py
Python
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
8
2017-07-02T10:45:43.000Z
2022-02-25T16:30:22.000Z
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
null
null
null
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
1
2019-07-10T06:49:22.000Z
2019-07-10T06:49:22.000Z
#!/usr/bin/env python3 # tkpng - example of using tkinter and pypng to display pngs (albeit reduced quality) # in nothing but pure python. Can use RGBA images, but the alpha is stripped. # v0.3 - structure rearranged to make classes and functions for reuse from array import * from tkinter import * import png class Pn...
41.101266
122
0.493994
385
3,247
4.14026
0.387013
0.035132
0.016939
0.018821
0.060226
0.036386
0.036386
0.036386
0.036386
0
0
0.014583
0.408685
3,247
78
123
41.628205
0.815625
0.28457
0
0.078431
0
0
0.05529
0
0
0
0
0
0
1
0.078431
false
0
0.058824
0.019608
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2baf47be9d3daf1c604497a9da492e2f6f27a9d5
2,083
py
Python
demos/face_recognition_demo/python/landmarks_detector.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2019-08-20T15:30:19.000Z
2020-09-01T15:16:33.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
4
2020-05-22T17:30:43.000Z
2021-08-02T07:33:16.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
2
2021-06-25T06:18:58.000Z
2021-08-04T10:05:32.000Z
""" Copyright (c) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
37.196429
108
0.697072
294
2,083
4.823129
0.404762
0.042313
0.029619
0.038082
0.098025
0.043724
0.043724
0.043724
0.043724
0
0
0.017523
0.205473
2,083
55
109
37.872727
0.839275
0.272204
0
0
0
0
0.066756
0
0
0
0
0
0.103448
1
0.172414
false
0
0.103448
0.034483
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb0744556e03bcafe147ce0dc50dc9bf26d2ee6
5,724
py
Python
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
import os from . import BaseCommand from ..i18n import _ class Command(BaseCommand): name = os.path.splitext(os.path.basename(__file__))[0] description = _('create an HTTP Live Stream (HLS) out of an existing ' 'H.264/AAC stream') quiet_fields = { 'localStreamNames': _('loca...
48.10084
80
0.570231
668
5,724
4.796407
0.305389
0.081149
0.105493
0.170412
0.182584
0.090512
0.040574
0
0
0
0
0.01118
0.29682
5,724
118
81
48.508475
0.784845
0
0
0.236364
0
0
0.427673
0.015898
0
0
0
0
0
1
0.018182
false
0
0.027273
0
0.081818
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
2bb09c7c624b4b2fa539a4a7b7639cfbbb55950f
23,581
py
Python
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 by dhrone. All Rights Reserved. # import time from .iot import Iot from .utility import get_utc_timestamp from .objects import ASHO class Interface(object): interface = None version = None properties = None def __init__(self,thing=None, uncertaintyInMillisec...
52.872197
221
0.713329
2,113
23,581
7.823
0.136772
0.029643
0.016636
0.020327
0.529946
0.444041
0.375923
0.370901
0.358863
0.338476
0
0.007738
0.188923
23,581
445
222
52.991011
0.85653
0.048217
0
0.335277
0
0
0.074649
0.012932
0.008746
0
0
0
0
1
0.198251
false
0
0.011662
0.014577
0.338192
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb22f0b235ccbd5403faa7e90ca5e580a0c0f77
1,696
py
Python
Invisible Pixels/invisible_pixel.py
Yash-Vekaria/Web-Tracking-in-Indian-Partisan-News-Websites
9fac25ed364b823d13d25346dbaef3042fa459fb
[ "MIT" ]
1
2021-01-31T17:32:38.000Z
2021-01-31T17:32:38.000Z
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
null
null
null
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
2
2021-01-31T16:48:13.000Z
2021-05-28T15:33:48.000Z
import sqlite3 import json import pandas as pd import numpy as np homepages = list(pd.read_csv('news_homepage_urls.csv')['news_url']) conn = sqlite3.connect('./topics_url_crawls/topics_url_crawl4/crawl-data_all_topics4.sqlite') c = conn.cursor() res = [['image_url', 'content_length', 'req_id', 'visit_id', 'news_site...
34.612245
114
0.608491
240
1,696
4.091667
0.358333
0.050917
0.065173
0.01833
0.044807
0.044807
0
0
0
0
0
0.033735
0.26592
1,696
48
115
35.333333
0.75502
0
0
0.047619
0
0
0.254127
0.067217
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb4fcba3285a569396ccc8016820835689216c0
1,368
py
Python
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
9
2020-06-19T16:34:08.000Z
2021-04-19T16:09:53.000Z
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CESNET. # # oarepo-fsm is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """Pytest helper methods.""" import copy import uuid from flask_security import login_user from invenio_db import db...
25.811321
77
0.703947
182
1,368
5.054945
0.5
0.048913
0.032609
0
0
0
0
0
0
0
0
0.00546
0.196637
1,368
52
78
26.307692
0.831665
0.207602
0
0
0
0
0.015123
0
0
0
0
0
0.033333
1
0.166667
false
0
0.233333
0
0.566667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2bb98a7d05b2fa13ccaa82a80ac1056091559328
1,844
py
Python
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
2
2020-04-28T16:50:43.000Z
2020-09-13T10:36:08.000Z
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
from html.parser import HTMLParser from .test_data import TestData class CodeforcesParser(HTMLParser): """A class which can parse Codeforces webpages for testcase data.""" def __init__(self): HTMLParser.__init__(self) self.in_input = False self.in_output = False self.in_pre = False self.curr_...
28.8125
74
0.625813
262
1,844
4.209924
0.270992
0.087035
0.059837
0.043518
0.267452
0.076156
0
0
0
0
0
0.00431
0.245119
1,844
63
75
29.269841
0.788075
0.122017
0
0.326531
0
0
0.036182
0
0
0
0
0
0
1
0.142857
false
0
0.040816
0
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbb4aba06003d96ae6df55d6da4fe272ec4958a
10,644
py
Python
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
import json from nonogram_solver.error import LengthError, ClueError, AxisError, SetSolutionError class Nonogram: """Main nonogram class Used to hold the data of the nonogram. Also has some basic creation and helper functions. """ printable_values = {0: " ", -1: "..", ...
31.868263
90
0.530252
1,297
10,644
4.215883
0.136469
0.039503
0.028164
0.038405
0.335955
0.308888
0.232992
0.153255
0.126189
0.126189
0
0.004444
0.36584
10,644
333
91
31.963964
0.80563
0.160936
0
0.301887
0
0
0.021027
0.005376
0
0
0
0
0
1
0.132075
false
0
0.009434
0.004717
0.240566
0.051887
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbc1387949c1f848c4efefd89253c1a919c0873
30
py
Python
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from app.api.routes import api
30
30
0.833333
6
30
4.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
2bbe278b496ce085135269ff9461df76d529a0fd
2,468
py
Python
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
3
2020-02-17T11:11:08.000Z
2021-12-03T18:54:47.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
1
2019-12-05T15:32:50.000Z
2019-12-10T16:13:08.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
2
2019-09-26T20:21:14.000Z
2021-07-10T04:37:31.000Z
#!/usr/bin/env python """Python wrapper module for the GROMACS make_ndx module """ import sys import json from command_wrapper import cmd_wrapper import configuration.settings as settings from tools import file_utils as fu class MakeNdx(object): """Wrapper for the 5.1.2 version of the make_ndx module Args: ...
35.257143
94
0.633712
325
2,468
4.627692
0.301538
0.060505
0.071809
0.043883
0.021277
0
0
0
0
0
0
0.007507
0.244327
2,468
69
95
35.768116
0.798928
0.181118
0
0.042553
0
0
0.048534
0
0
0
0
0
0
1
0.06383
false
0
0.106383
0
0.212766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbf26e6f9ed571944d41bf407293fbe14a0b718
18,454
py
Python
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import autoarray as aa import autoarray.plot as aplt from os import path import pytest import numpy as np import shutil directory = path.dirname(path.realpath(__file__)) @pytest.fixture(name="plot_path") def make_plot_path_setup(): return path.join( "{}".format(path.dirname(path.realpath(__f...
35.217557
89
0.617427
2,187
18,454
4.824417
0.065844
0.048621
0.050517
0.078855
0.885035
0.862857
0.83575
0.807886
0.787414
0.785518
0
0.046303
0.291969
18,454
523
90
35.284895
0.761212
0.005907
0
0.641975
0
0
0.020492
0.003144
0
0
0
0
0.158025
1
0.034568
false
0
0.014815
0.002469
0.061728
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
2bbf71442072bd282493639805a17b1c960bf32f
5,866
py
Python
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
null
null
null
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
40
2018-06-18T13:43:42.000Z
2018-07-24T19:24:57.000Z
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
2
2018-07-17T20:47:23.000Z
2018-07-27T17:42:53.000Z
from __future__ import print_function import os import sys import time import traceback import subprocess from shutil import disk_usage, rmtree from base64 import b64decode pipWorking = False gitWorking = False def clear(): os.system('cls' if os.name == 'nt' else 'clear') def checkGit(): global gitWorking ...
36.434783
183
0.56103
663
5,866
4.921569
0.334842
0.022066
0.013485
0.018388
0.134845
0.1232
0.097456
0.08152
0.08152
0.08152
0
0.01121
0.33089
5,866
161
184
36.434783
0.820127
0
0
0.326531
0
0.027211
0.276291
0.00392
0
0
0
0
0
1
0.061224
false
0
0.088435
0
0.190476
0.156463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc2d93e8d13d4e3616e50c69adba5724129cd36
280
py
Python
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2019-11-05T18:28:22.000Z
2019-11-05T18:28:22.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
9
2019-12-05T01:04:48.000Z
2021-06-10T19:26:06.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2020-09-24T22:21:14.000Z
2020-09-24T22:21:14.000Z
from django import template register = template.Library() from ..models import Notification @register.simple_tag def unread_notification(user): no = Notification.objects.filter(user=user, read=False).count() if no >= 1: return True else: return False
23.333333
67
0.707143
35
280
5.6
0.685714
0
0
0
0
0
0
0
0
0
0
0.004464
0.2
280
12
68
23.333333
0.870536
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc2f3579b936e5347d7069c68b383a1d2e7b783
499
py
Python
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
2
2021-09-15T04:12:07.000Z
2022-02-04T02:44:09.000Z
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
import pytest from ekorpkit import eKonf @pytest.mark.local() def test_fred(): cfg = eKonf.compose(config_group="io/fetcher=quandl") cfg.series_name = "DFEDTAR" cfg.series_id = ["DFEDTAR", "DFEDTARU"] cfg.force_download = True fred = eKonf.instantiate(cfg) cfg = eKonf.compose(config_group="v...
23.761905
63
0.677355
68
499
4.882353
0.617647
0.048193
0.090361
0.126506
0.156627
0
0
0
0
0
0
0.009828
0.184369
499
20
64
24.95
0.805897
0
0
0
0
0
0.154309
0.046092
0
0
0
0
0.066667
1
0.066667
false
0
0.133333
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc30fd5ccd085f6e33f22005fb27c74cb901846
16,111
py
Python
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
5
2021-07-24T15:11:28.000Z
2021-07-24T15:11:49.000Z
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
import os import operator from flask import Blueprint, redirect, render_template, url_for, request, session from flask_socketio import SocketIO, emit, join_room, leave_room from . import socketio from .helper import * from .generator import generate_room_code from .database import * MIN_PLAYER_COUNT = 4 app = Bluepri...
36.042506
136
0.638322
2,137
16,111
4.627515
0.126345
0.024269
0.030943
0.020932
0.560421
0.499747
0.445343
0.415512
0.387097
0.352412
0
0.001991
0.25194
16,111
446
137
36.123318
0.818536
0.245236
0
0.348837
0
0
0.180599
0.046449
0
0
0
0
0
1
0.05814
false
0
0.031008
0.011628
0.124031
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc4ad754b21348d16285e2026fcdacb8e8dc9ad
1,075
py
Python
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.session import SessionTools class HatSploitModule(Module, SessionTools): details = { 'Name': "Uni...
26.219512
65
0.572093
109
1,075
5.605505
0.59633
0.042553
0
0
0
0
0
0
0
0
0
0.006579
0.293023
1,075
40
66
26.875
0.797368
0.126512
0
0
0
0
0.281585
0.052463
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc4ad99cec6515a6001bb4ad4c1f6891d5605dd
293
py
Python
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
p = ('Curso', 'Video', 'Python') cont = 0 contl = 0 while True: while True: if p[cont][contl] in 'AaEeIiOoUu': print(p[cont][contl]) contl += 1 if contl >= len(p[cont]): break contl = 0 cont += 1 if cont >= len(p): break
19.533333
42
0.467577
39
293
3.512821
0.410256
0.109489
0.145985
0
0
0
0
0
0
0
0
0.027473
0.37884
293
14
43
20.928571
0.725275
0
0
0.428571
0
0
0.088737
0
0
0
0
0
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc5c9f0df460e7d769b16ab75ae99c2117d9daa
3,951
py
Python
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
import requests import time from urllib.parse import urlparse, parse_qs from selenium.common.exceptions import NoSuchElementException def SolveCaptcha(api_key, site_key, url): """ Uses the 2Captcha service to solve Captcha's for you. Captcha's are held in iframes; to solve the captcha, you need a part of...
41.589474
185
0.68894
517
3,951
5.112186
0.352031
0.05297
0.061294
0.037836
0.090049
0.051457
0.024972
0.024972
0
0
0
0.022698
0.219438
3,951
95
186
41.589474
0.834306
0.398127
0
0.109091
0
0
0.183862
0.030864
0
0
0
0
0.090909
1
0.036364
false
0
0.072727
0
0.163636
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
0
0
0
0
0
0
0
0
1
0
2bc827b81d318e5b08fd6be908891296ced5a47e
3,350
py
Python
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
1
2022-02-01T04:50:22.000Z
2022-02-01T04:50:22.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
2
2021-12-07T10:40:44.000Z
2021-12-23T13:42:07.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
null
null
null
import re import os.path as osp import requests # from fake_useragent import UserAgent from bpyutils.db import get_connection from bpyutils.util.proxy import get_random_requests_proxies from bpyutils.util._dict import merge_dict from bpyutils.util.imports import import_or_raise from bpyutils.util.string ...
30.18018
100
0.618806
429
3,350
4.682984
0.314685
0.047785
0.047785
0.035839
0.151319
0.040816
0.005973
0.005973
0.005973
0
0
0.010212
0.24
3,350
111
101
30.18018
0.778869
0.096716
0
0.106667
0
0.026667
0.120066
0.046434
0
0
0
0
0
1
0.053333
false
0
0.186667
0
0.306667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bcbff98a3b8f0e8db73d81591bf41ea08b8b323
1,845
py
Python
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
1
2021-11-19T13:05:53.000Z
2021-11-19T13:05:53.000Z
from bclearer_source.b_code.common_knowledge.content_operation_types import ContentOperationTypes from bclearer_source.b_code.common_knowledge.digitialisation_level_stereotype_matched_ea_objects import \ DigitalisationLevelStereotypeMatchedEaObjects from bclearer_source.b_code.configurations.content_operation_confi...
52.714286
138
0.852033
191
1,845
7.60733
0.303665
0.049553
0.045423
0.052306
0.348245
0.319339
0.26841
0.216105
0.096352
0.096352
0
0.015922
0.114905
1,845
34
139
54.264706
0.873852
0
0
0.074074
0
0
0.03794
0.03794
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bcdc35a04b16095280a01dc75b1da9b3b40cc93
1,246
py
Python
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
"""solution.py""" import math import os import random import re import sys import timeit class SimpleXOR: def xor(self, a, b): return a ^ b def dynamicArray(n, queries): last_answer = 0 all_answer = [] arr = [[] for _ in range(n)] xor = SimpleXOR() for row in queries: t = row...
22.654545
79
0.539326
171
1,246
3.777778
0.403509
0.069659
0.06192
0.065015
0.111455
0.111455
0.111455
0.111455
0
0
0
0.01649
0.31862
1,246
54
80
23.074074
0.740872
0.020867
0
0.046512
0
0
0.029777
0
0
0
0
0
0
1
0.069767
false
0
0.139535
0.023256
0.27907
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bcdd23129cd748120cb2b5f88558b1bd84fa70e
9,644
py
Python
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
import re import json from reading_json import modification_json from downloadable_file_fast import downloadable def _get_nucleotide_contributions(line): patterns = line.split(' ') contribution = [{'A': 0, 'C': 0, 'T': 0, 'G': 0} for i in range(len(patterns[0]))] for pattern in patterns: # print p...
39.52459
219
0.501659
1,068
9,644
4.367978
0.153558
0.049303
0.021222
0.032797
0.598714
0.527331
0.434941
0.419293
0.403859
0.403859
0
0.018969
0.344048
9,644
244
220
39.52459
0.718463
0.282663
0
0.140741
0
0.014815
0.14177
0.044331
0.014815
0
0
0
0
1
0.02963
false
0
0.02963
0
0.088889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bcf4ebb9b8e16ba99b810270dfd24d5a5b61f81
1,235
py
Python
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
null
null
null
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T17:54:04.000Z
2021-05-12T17:54:04.000Z
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T12:16:39.000Z
2021-05-12T12:16:39.000Z
import logging import uuid from jsonscribe import utils class AttributeSetter(logging.Filter): """ Ensure that attributes exist on :class:`~logging.LogRecord` s. :keyword dict add_fields: maps fields to create on :class:`~logging.LogRecord` instances to their default values The valu...
28.068182
71
0.595951
144
1,235
5.006944
0.527778
0.062413
0.038835
0.0638
0.061026
0
0
0
0
0
0
0.004592
0.294737
1,235
43
72
28.72093
0.823192
0.397571
0
0
0
0
0.04246
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bcf6e636ec67d0a627f8da839c75c8a049a8846
273
py
Python
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
2
2019-11-20T16:18:53.000Z
2020-05-25T11:00:58.000Z
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
from ariadne import ObjectType class Entity: pass def create_entity(name, key_resolvers, key_name): object_type = ObjectType(name) setattr(object_type, "key_resolver", key_resolvers) object_type.set_field(key_name, key_resolvers) return object_type
21
55
0.765568
37
273
5.324324
0.513514
0.203046
0.162437
0
0
0
0
0
0
0
0
0
0.164835
273
12
56
22.75
0.864035
0
0
0
0
0
0.043956
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.5
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
1
0
0
0
0
0
2
2bd109992083f654ea69f6db60e377f6f8a7e5c8
831
py
Python
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
"""The script makes the sources to have same length, as well as have the same sampling rate""" from scipy.io import wavfile import utilities as utl # Read the .wav files as numpy arrays rate1, data1 = wavfile.read("sourceX.wav") rate2, data2 = wavfile.read("sourceY.wav") # Plot the sounds as time series data utl.plot...
37.772727
106
0.740072
135
831
4.540741
0.451852
0.058728
0.032626
0.052202
0.078303
0.078303
0.078303
0
0
0
0
0.035211
0.145608
831
22
107
37.772727
0.828169
0.43201
0
0
0
0
0.213823
0.082073
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bd309d040112a1127680460018a592ca804766a
1,389
py
Python
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
16
2021-01-30T16:03:19.000Z
2022-03-27T11:13:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
1
2021-01-30T19:28:05.000Z
2021-01-30T19:28:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
null
null
null
from swi_ml import activations from swi_ml.regression.linear_regression import ( _BaseRegression, L1_L2Regularisation, ) class LogisticRegressionGD(_BaseRegression): def __init__( self, num_iterations: int, learning_rate: float, multiply_factor=None, l1_ratio=None, ...
28.346939
65
0.596832
137
1,389
5.80292
0.489051
0.055346
0.022642
0.037736
0.083019
0.083019
0
0
0
0
0
0.011702
0.323254
1,389
48
66
28.9375
0.834043
0.080634
0
0
0
0
0.005622
0
0
0
0
0
0
1
0.075
false
0
0.05
0.025
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bd3ca214bb18b2244342ed2d4e2e70853a6ed4f
1,721
py
Python
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
15
2021-11-09T10:49:34.000Z
2021-11-09T16:11:01.000Z
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
import json from collections import defaultdict from rest_framework import exceptions, request, response, serializers, viewsets from rest_framework.decorators import action from rest_framework.mixins import ListModelMixin, RetrieveModelMixin from ee.clickhouse.client import sync_execute from ee.clickhouse.sql.person ...
39.113636
98
0.733876
193
1,721
6.321244
0.46114
0.081148
0.103279
0.039344
0.129508
0.065574
0
0
0
0
0
0.001443
0.194654
1,721
43
99
40.023256
0.878788
0
0
0
0
0
0.25276
0.057525
0
0
0
0
0
1
0.029412
false
0
0.264706
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bd55328213ae4ee50db668e28293c74adbf04e3
1,198
py
Python
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from django.db import migrations from api.audit_trail.enums import AuditType def update_good_review_payload(apps, schema_editor): """ Convert old AuditType.verb with format to new AuditType.verb as enum value. """ if schema_editor.connection.alias != "default": return Audit = apps.get_mo...
30.717949
105
0.641903
137
1,198
5.372263
0.459854
0.081522
0.043478
0.0625
0.192935
0.116848
0.116848
0
0
0
0
0.006674
0.249583
1,198
38
106
31.526316
0.812013
0.062604
0
0
0
0
0.183379
0.069557
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.259259
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bd5f8544212e23f65b882d89a3c224ece175d41
2,882
py
Python
src/App/tests/test_setConfiguration.py
tseaver/Zope-RFA
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
[ "ZPL-2.1" ]
2
2015-12-21T10:34:56.000Z
2017-09-24T11:07:58.000Z
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
35.146341
78
0.644344
307
2,882
5.947883
0.381107
0.082147
0.078861
0.072289
0.290252
0.203724
0.133625
0.083242
0.083242
0.083242
0
0.002651
0.214781
2,882
81
79
35.580247
0.804242
0.200555
0
0.25
0
0
0.040433
0
0
0
0
0
0.192308
1
0.153846
false
0
0.25
0
0.480769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bd8a7bf4f3a44da4637775f9b8932d258ab790c
412
py
Python
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
def replace_all(replace_string, actual_string): while replace_string in actual_string: actual_string = actual_string.replace(replace_string, "") return actual_string print(replace_all(input(), input())) # replace_string = input() # actual_string = input() # # while replace_string in actual_string: # ...
25.75
65
0.737864
51
412
5.607843
0.215686
0.41958
0.314685
0.335664
0.531469
0.531469
0.531469
0.531469
0.531469
0.531469
0
0
0.145631
412
15
66
27.466667
0.8125
0.424757
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0.2
0
0
0
null
1
1
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
3
2bd921498006ca8970775bb2c1edd726ac7ac468
2,201
py
Python
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
# https://oj.leetcode.com/problems/wildcard-matching/ class Solution: @classmethod def _memorize(cls, f): def helper(self, s, p): key = s + '|' + p if key not in self.memo: self.memo[key] = f(self, s, p) return self.memo[key] return helper def __init__(self): self.memo = {}...
26.841463
93
0.548841
323
2,201
3.721362
0.291022
0.013311
0.075707
0.049917
0.168885
0
0
0
0
0
0
0.022407
0.290323
2,201
81
94
27.17284
0.747119
0.248523
0
0.181818
0
0
0.022616
0
0
0
0
0
0
0
null
null
0
0
null
null
0.127273
0
0
0
null
0
0
0
0
0
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
2bd961445c34c74c0a9eb7f394997d458e3c36e7
2,138
py
Python
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # 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 ...
37.508772
92
0.597755
269
2,138
4.72119
0.509294
0.047244
0.020472
0.025197
0
0
0
0
0
0
0
0.009722
0.326473
2,138
56
93
38.178571
0.872222
0.409261
0
0.166667
0
0
0.176613
0
0
0
0
0.017857
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2bd9973a07e3156ff4a84bcb99cd3ef64fb4cedb
2,066
py
Python
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
import random import pandas as pd import compare_bigrams import sys import os import as_numeric import quantify_copying # The file that contains the base corpus INPUT_FILE = "../corpus/cath8.txt" # Each line should be a sentence, with the words separated by spaces # Read the input file and obtain a list of list o...
28.694444
97
0.690707
279
2,066
4.956989
0.376344
0.080983
0.043384
0.056399
0.060738
0.014461
0.014461
0
0
0
0
0.003056
0.208132
2,066
71
98
29.098592
0.842298
0.252662
0
0.058824
0
0
0.071195
0.015023
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bdb68df54d9aa08cc436ff6ba347abae2b26cdc
1,421
py
Python
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
from baseTest.BaseTestObject import BaseTestObject # The type Driver manager. class DriverManager: # Base Test Object. baseTestObject = BaseTestObject # The Base driver. baseDriver = object() # The Get driver. getDriverSupplier = object() # Instantiates a new Driver manager. # @para...
26.811321
62
0.684025
164
1,421
5.77439
0.22561
0.095037
0.059134
0.038015
0
0
0
0
0
0
0
0
0.252639
1,421
52
63
27.326923
0.891714
0.324419
0
0.090909
0
0
0
0
0
0
0
0
0
1
0.318182
false
0
0.045455
0.181818
0.772727
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
1
1
0
0
3
2bde73b9764fb0136ef3271756f67c6a2f1b95a4
2,406
py
Python
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
2
2019-10-25T12:22:49.000Z
2019-10-25T13:22:11.000Z
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os from utils import ( get_page, internet_on, my_log, post_dict_to_list, read_posts_dict, write_posts, ) cdname = os.path.dirname(__file__) filename = os.path.join(cdname, 'pkuhole.txt') filename_bak = os.path.join(cdname, 'pkuholebak.txt') if __name__ == '__main__'...
26.152174
79
0.582294
332
2,406
3.978916
0.253012
0.071915
0.06813
0.109008
0.458743
0.443603
0.355034
0.355034
0.321726
0.238456
0
0.008182
0.288861
2,406
91
80
26.43956
0.763881
0.011638
0
0.231884
0
0
0.170034
0
0
0
0
0
0
1
0
false
0
0.028986
0
0.028986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be01fdba7fd4a0fd0bcbe156a75252f384d72ef
18,436
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import argparse import os from misc import logger from misc import constants from collections import defaultdict, OrderedDict import numpy import re class ExecutionResult: def __init__(self): self.test_number = 0 self.execution_time = ExecutionTime() class ExecutionTime: def __init__(self, to...
41.804989
115
0.612118
2,419
18,436
4.319554
0.083506
0.055603
0.024117
0.0245
0.550579
0.469232
0.403962
0.350943
0.297253
0.261748
0
0.007726
0.276904
18,436
440
116
41.9
0.776086
0.095845
0
0.319767
0
0.002907
0.055201
0.011846
0
0
0
0
0
1
0.093023
false
0
0.020349
0.023256
0.180233
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be0ca04e974edf9be7a5a0fcaafe17dd5800ba0
132
py
Python
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
48
2015-02-05T15:25:47.000Z
2022-01-07T05:52:03.000Z
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
null
null
null
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
21
2015-02-12T23:50:10.000Z
2019-12-12T08:25:35.000Z
# -*- encoding: utf-8 -*- from coderunner import test, Python, main test(Python, "recursive.py", """ 15 """, is_file=True) main()
14.666667
41
0.636364
18
132
4.611111
0.833333
0.240964
0
0
0
0
0
0
0
0
0
0.026786
0.151515
132
8
42
16.5
0.714286
0.174242
0
0
0
0
0.149533
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
1
0
0
null
1
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
1
0
0
0
0
0
0
4
2be1a1fa8ec7479aeac3b69430ba8d4a6a93005c
2,406
py
Python
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
8
2020-10-28T14:03:39.000Z
2022-01-08T16:38:42.000Z
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
18
2020-10-28T08:58:01.000Z
2021-05-14T16:33:23.000Z
tests/test_potential_of_layers.py
timtroendle/solar-and-wind-potentials
8b15f3d20a47ba3631f03026a4263ecd1fcbfd58
[ "MIT" ]
1
2020-12-07T03:13:28.000Z
2020-12-07T03:13:28.000Z
"""Test whether potential estimations between layers are similar.""" import os from pathlib import Path import pytest import pandas as pd from renewablepotentialslib.eligibility import Potential TOLERANCE = 0.005 # 0.5% BUILD_DIR = Path(os.path.abspath(__file__)).parent.parent / "build" PATH_TO_CONTINENTAL_POTENTIA...
45.396226
112
0.790524
303
2,406
6.019802
0.168317
0.052632
0.044408
0.103618
0.691886
0.623355
0.5625
0.5625
0.5625
0.5625
0
0.0055
0.093101
2,406
52
113
46.269231
0.830431
0.028263
0
0.315789
0
0
0.17753
0
0
0
0
0
0.078947
1
0.078947
false
0
0.131579
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be599f1d48fa45f9d8d32cfab95f648f8f75077
429
py
Python
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
from flask import Flask from .ext import site from .ext import config from .ext import toolbar from .ext import db from .ext import migrate from .ext import cli def create_app(): """Factory to create a Flask app based on factory pattern""" app = Flask(__name__) config.init_app(app) db.init_app(app) ...
22.578947
64
0.710956
70
429
4.2
0.314286
0.142857
0.265306
0
0
0
0
0
0
0
0
0
0.205128
429
18
65
23.833333
0.86217
0.125874
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.4375
0
0.5625
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
1
0
1
0
0
3
2be6278c41064f7dddfcf63804ac3110527470ea
161
py
Python
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
1
2020-04-17T17:01:01.000Z
2020-04-17T17:01:01.000Z
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
# Created by SNEHAL at 21-04-2020 Feature: #Enter feature name here # Enter feature description here Scenario: # Enter scenario name here # Enter steps here
20.125
37
0.757764
24
161
5.083333
0.583333
0.196721
0.213115
0
0
0
0
0
0
0
0
0.061069
0.186335
161
7
38
23
0.870229
0.78882
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
1
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
1
0
0
0
0
0
0
0
0
4
2be7b6a4c3ecbf9fa56f76e517a0e77803b09915
7,231
py
Python
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Odds and ends in support of tests """ import os import pytest import numpy as np import copy from astropy import time from pypeit import arcimage from pypeit import traceslits from pypeit import wavecalib from pypeit import wavetilts from pypeit.masterframe import MasterFrame from pypeit.core.wavecal import wavei...
35.79703
102
0.637395
898
7,231
4.973274
0.285078
0.021496
0.015674
0.024631
0.180699
0.162785
0.138603
0.106807
0.055307
0.055307
0
0.025506
0.240907
7,231
201
103
35.975124
0.788122
0.185037
0
0.017699
0
0
0.111208
0.004553
0
0
0
0.004975
0
1
0.035398
false
0
0.115044
0
0.185841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be7c4031f35d62bfd049a33b25b2f6481558602
1,041
py
Python
calaccess_processed/admin/tracking.py
dwillis/django-calaccess-processed-data
f228252df1b390967468b41d336839f1bd9ca192
[ "MIT" ]
1
2021-01-13T12:06:25.000Z
2021-01-13T12:06:25.000Z
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Custom administration panels for tracking models. """ from __future__ import unicode_literals from django.contrib import admin from calaccess_processed import models from calaccess_raw.admin.base import BaseAdmin @admin.register(models.ProcessedDataVersion) class Proc...
25.390244
54
0.683958
106
1,041
6.40566
0.481132
0.064801
0.088365
0.067747
0.076583
0
0
0
0
0
0
0.001211
0.206532
1,041
40
55
26.025
0.820823
0.179635
0
0.16
0
0
0.234356
0.148466
0
0
0
0
0
1
0
false
0
0.16
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be8db748a16a1d91326b5c85994bfcde6e8d3f2
2,735
py
Python
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
3
2016-11-10T18:57:44.000Z
2017-09-10T16:12:13.000Z
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from setuptools import setup import os.path as path info_name = 'screenpdf' info_url = 'https://github.com/arthurazs/{}/'.format(info_name) author_name = 'Arthur Zopellaro' email = 'arthurazsoares@gmail.com' try: with open(path.abspath(path.join(info_name, ...
30.730337
68
0.603656
291
2,735
5.498282
0.491409
0.04
0.078125
0.0275
0.086875
0.06375
0.06375
0.06375
0.06375
0.06375
0
0.005952
0.262888
2,735
88
69
31.079545
0.787698
0.021572
0
0.126582
0
0
0.391695
0.016835
0
0
0
0
0
1
0
false
0
0.025316
0
0.025316
0.050633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2be994b7f975fe87a3e9a788b292a3f07f0cb749
482
py
Python
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
# welcome blink and post import time import board import digitalio import microcontroller led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT for x in range(3): led.value = False time.sleep(0.2) led.value = True time.sleep(0.2) print("This is a {}, running at {:.1f} MH...
25.368421
113
0.732365
72
482
4.902778
0.611111
0.045326
0.056657
0.062323
0
0
0
0
0
0
0
0.033816
0.141079
482
18
114
26.777778
0.816425
0.045643
0
0.153846
0
0
0.161572
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2bebba5f36f0fc773a08af1c42a4714df0febac4
597
py
Python
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
13
2019-10-12T14:36:32.000Z
2021-06-08T04:26:30.000Z
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
1
2020-02-29T14:02:39.000Z
2020-02-29T14:02:39.000Z
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
3
2020-02-08T12:04:28.000Z
2020-03-17T11:53:00.000Z
class Solution: def maximalSquare(self, mat: List[List[str]]) -> int: n = len(mat) m = len(mat[0]) mx = 0 dp = [[0 for _ in range(m)] for _ in range(n)] for i in range(n): for j in range(m): if i == 0 or j == 0: dp[...
29.85
77
0.350084
93
597
2.225806
0.301075
0.101449
0.096618
0.10628
0.057971
0
0
0
0
0
0
0.047923
0.475712
597
20
78
29.85
0.613419
0
0
0
0
0
0.003454
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bed27e78e266549ed3fd0ab95fec60eddae005c
3,481
py
Python
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-08-04T04:03:35.000Z
2021-08-04T04:03:35.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-04-19T17:14:31.000Z
2021-04-19T17:14:31.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Marcel Bollmann <marcel@bollmann.me> # # 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 r...
31.645455
82
0.595806
436
3,481
4.665138
0.318807
0.044248
0.037365
0.036873
0.043265
0.023599
0
0
0
0
0
0.005289
0.293881
3,481
109
83
31.93578
0.822213
0.288423
0
0.171875
0
0
0.069719
0.01848
0
0
0
0
0
1
0.1875
false
0
0.03125
0.078125
0.453125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf00f70f8211fba122e48124085551574fc2d0f
8,150
py
Python
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: import mnist_loader as load import neural_network as neuronet import activation_functions as af import optimisation_functions as of import cost_functions as cf import learningStep_generators as lg import numpy as np import matplotlib.pyplot as plt get_ipython().magic('matplotlib inline') ...
38.084112
191
0.766503
963
8,150
6.474559
0.206646
0.038813
0.018765
0.031275
0.610906
0.564555
0.544186
0.525421
0.512911
0.496552
0
0.019932
0.101227
8,150
213
192
38.262911
0.831263
0.137546
0
0.487603
0
0
0.090363
0
0
0
0
0
0
1
0
false
0
0.066116
0
0.066116
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf019712de59bf5b206a860d7ffb4d44cf73b61
8,005
py
Python
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 4 16:35:40 2019 @author: asiddi24 """ '''Four box model''' import numpy as np import gsw as gsw import time import matplotlib.pyplot as plt def fourbox(N,Kv,AI,Mek,Aredi,M_s,D0,T0s,T0n,T0l,T0d,S0s,S0n,S0l,S0d,Fws,Fwn,epsilon): Area = 3...
44.72067
145
0.484322
1,441
8,005
2.538515
0.104788
0.034445
0.017223
0.019136
0.693002
0.634773
0.591307
0.58912
0.56561
0.559869
0
0.048956
0.305934
8,005
179
146
44.72067
0.609431
0.053716
0
0.335878
0
0
0.006237
0
0
0
0
0
0
1
0.007634
false
0
0.030534
0
0.045802
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf108d95891106d4dc930297e966511ec0c8d34
981
py
Python
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
null
null
null
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-22T14:08:37.000Z
2021-12-22T14:08:37.000Z
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-24T11:50:26.000Z
2021-12-24T11:50:26.000Z
import io from django.core.management.base import BaseCommand from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from api.models import Pet from api.serializers import PetSerializer class Command(BaseCommand): """Uploading pets from the command line to stdout in JSON...
29.727273
72
0.666667
118
981
5.457627
0.576271
0.055901
0.052795
0
0
0
0
0
0
0
0
0
0.231397
981
32
73
30.65625
0.854111
0.063201
0
0
0
0
0.11391
0
0
0
0
0
0
1
0.086957
false
0
0.26087
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf122809aba2074e678a428f5c1706ec17b6493
626
py
Python
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
import numpy as np def load_dataset(path): # initialize the list of data and labels data = [] labels = [] # retrieve data from CSV for row in open(path): # parse the label and image from the row row = row.split(",") label = ord(row[0]) - ord("A") # scale labels to be numbe...
26.083333
88
0.583067
90
626
4.044444
0.544444
0.038462
0.049451
0.071429
0.142857
0.142857
0.142857
0
0
0
0
0.027335
0.298722
626
23
89
27.217391
0.801822
0.332268
0
0
0
0
0.019512
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf153b34978b2dda75bc3fb18aee51e8b4afa45
649
py
Python
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_equipment_alert_level import ( v3EquipmentAlertLevel as v3EquipmentAlertLevel_, ) __all__ = ["v3EquipmentAlertLevel"] _resource = _ValueSet.parse_file(Path(...
20.935484
69
0.750385
69
649
6.73913
0.57971
0.060215
0.068817
0.086022
0
0
0
0
0
0
0
0.033028
0.160247
649
30
70
21.633333
0.820183
0.251156
0
0
0
0
0.056769
0.045852
0
0
0
0
0
1
0
false
0
0.363636
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
1
0
1
0
0
2
2bf1fa79fccb8a23dfa75ef82b9bf40360252990
3,284
py
Python
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
"""moderation cog""" from discord.ext import commands import discord from utils.database import CursorDB from utils.page import Pages, make_groups from utils.utilities import basic_frame, basic_message from utils.reactions import Reactions class Moderator(commands.Cog, CursorDB, Pages): """ Commands for...
29.321429
105
0.601705
395
3,284
4.891139
0.296203
0.021739
0.045549
0.072464
0.325052
0.298137
0.298137
0.266046
0.202899
0.096273
0
0.003386
0.280451
3,284
111
106
29.585586
0.812526
0.017661
0
0.208955
0
0
0.158143
0.02288
0
0
0
0
0
1
0.029851
false
0
0.089552
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf2f7c097096dee417521bb08ed9caad1bcf85b
4,340
py
Python
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
1
2022-02-02T06:40:04.000Z
2022-02-02T06:40:04.000Z
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os.path from mpi4py import MPI import numpy as np import pandas as pd import tensorflow as tf import configparser import numba import multiprocessing as mp import sys from concurrent.futures import ThreadPoolExecutor from _migration import calculate_migration @numba.njit(parallel=True) ...
32.631579
124
0.66659
608
4,340
4.498355
0.294408
0.018282
0.014625
0.020841
0.073857
0.035832
0.024132
0
0
0
0
0.015579
0.216129
4,340
132
125
32.878788
0.78836
0.004608
0
0
0
0
0.062978
0.006946
0
0
0
0
0
1
0.04902
false
0.009804
0.107843
0.019608
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf3a2f0d26b50aa2cf1e968ebff3eed788af470
13,622
py
Python
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
2
2017-12-20T16:56:37.000Z
2021-01-19T18:41:53.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
18
2015-01-03T21:33:09.000Z
2018-12-04T12:05:58.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
6
2015-01-02T01:16:38.000Z
2021-09-04T01:28:38.000Z
import json import os import unittest from unittest.mock import Mock, patch import requests_mock from dateutil import relativedelta from plugins.trakt.trakt import Trakt from plugins.trakt import api """ Presets copied from Trakt's API """ ACTIVITY_PRESET_EPISODE_1 = { "watched_at": "2014-03-31T09:28:53.000Z"...
34.75
143
0.551681
1,490
13,622
4.881208
0.175839
0.040836
0.016499
0.019249
0.627389
0.576653
0.501306
0.487282
0.471195
0.458133
0
0.043524
0.308472
13,622
391
144
34.838875
0.728556
0.001835
0
0.409496
0
0.023739
0.244264
0.041756
0
0
0
0
0.118694
1
0.059347
false
0
0.023739
0.002967
0.106825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf4cf97686269a46eb3ddc822b1a02b29a68eb9
5,675
py
Python
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-05-04T23:49:38.000Z
2020-05-04T23:49:38.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
5
2020-05-06T01:22:37.000Z
2020-05-28T18:13:04.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-06-07T22:23:56.000Z
2020-06-07T22:23:56.000Z
import math import numpy as np SAMPLERATE = 48000 class ADSR: def __init__(self, a=0.1, d=0.2, s=0.6, r=0.5): self.timings = { 0 : 0, 1 : 1 / ((a * SAMPLERATE) + 1), 2 : -1 / ((d * SAMPLERATE) + 1), 3 : 0, 4 : -1 / ((r * SAMP...
29.868421
92
0.570396
815
5,675
3.890798
0.134969
0.12772
0.07947
0.036897
0.504573
0.474298
0.425418
0.360769
0.346578
0.296752
0
0.032714
0.288987
5,675
189
93
30.026455
0.75316
0.010573
0
0.157895
0
0
0
0
0
0
0
0
0
1
0.164474
false
0
0.013158
0.019737
0.328947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf8e95176c9e685fb3202612e058ef1486d6f76
4,077
py
Python
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
1
2022-03-30T08:21:12.000Z
2022-03-30T08:21:12.000Z
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
import pathlib from flask import Flask, redirect, render_template, request, Response, url_for, session import secrets import json from Predictions_using_trained_model import predictionsUsingTheTrainedModels from predictionDatabaseOperations import PredictionDBOperations from predictionPreprocessing import PredictionPr...
32.616
107
0.727005
418
4,077
6.301435
0.394737
0.031891
0.037965
0.019362
0.029233
0.029233
0.020501
0
0
0
0
0.010886
0.21143
4,077
124
108
32.879032
0.808398
0.357371
0
0
0
0
0.056713
0.008102
0
0
0
0
0
1
0.070175
false
0
0.210526
0.052632
0.350877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf9743b7839d926775ed3660be8f3a065cd08dd
2,017
py
Python
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
def read_tweets(file): """ (file open for reading) -> dict of {str: list of tweet tuples} Return a dictionary with the names of the candidates as keys, and tweet tuple in the form of (candidate, tweet text, date, source, favorite count, retweet count)as values """ dic = {} key = "" ...
35.385965
80
0.54239
274
2,017
3.934307
0.394161
0.044527
0.060297
0.044527
0.274583
0.274583
0.250464
0.19666
0.19666
0.139147
0
0.037762
0.291026
2,017
56
81
36.017857
0.716084
0.523054
0
0.185185
0
0
0.025612
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bf9da14a8590cb2e410ccf84e328acb4bba5bef
607
py
Python
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
cond = 'S' num = quant = soma = maior = menor =0 while cond in 'Ss': num = int(input(' Informe um numero:')) quant += 1 soma += num cond = str(input('Quer Continuar?[S/N]')).upper().strip()[0] if quant == 1: maior = menor = num else: if num > maior: maior = num ...
27.590909
76
0.532125
88
607
3.670455
0.431818
0.092879
0.105263
0
0
0
0
0
0
0
0
0.011905
0.308072
607
21
77
28.904762
0.757143
0
0
0
0
0
0.30313
0
0
0
0
0
0
1
0
false
0
0
0
0
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bfa633ea90ac984f4075624c6eb6d5ad5a3bbf4
6,206
py
Python
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
8
2020-05-26T13:32:29.000Z
2021-12-05T20:32:38.000Z
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
2
2021-06-08T21:39:05.000Z
2022-03-12T00:31:50.000Z
scAnalysis/Segmentation.py
LRpz/SpaceM
03f7b3b871ec70ed38df63adfc4efcd30c3896a5
[ "Apache-2.0" ]
3
2020-06-18T17:06:16.000Z
2021-10-08T06:55:07.000Z
from subprocess import call import matplotlib.pyplot as plt import numpy as np import tqdm from scipy import ndimage def callCP(MFA, cp_p, cppipe_p): """Call CellProfiler (http://cellprofiler.org/) to perform cell segmentation. CellProfiler segmentation pipeline is in the spaceM folder with the '.cppipe' exte...
38.7875
121
0.633742
828
6,206
4.624396
0.233092
0.052233
0.023505
0.020893
0.541917
0.5158
0.492818
0.472447
0.472447
0.422042
0
0.011688
0.255559
6,206
159
122
39.031447
0.8171
0.286175
0
0.37
0
0
0.061015
0.04844
0
0
0
0
0
1
0.04
false
0
0.05
0
0.09
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bfb524c2e56d706d022852606cbc81b117c3933
1,612
py
Python
py/camvid.py
StoneWST/Dataset-Tool-for-Segmentation-
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
4
2021-06-03T09:02:36.000Z
2022-02-28T00:58:22.000Z
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
import os import fire def gen_camvid_txt(): camvid_train_list = [] camvid_val_list = [] camvid_test_list = [] camvid_train_img_folder = "data/CamVid/train" camvid_val_img_folder = "data/CamVid/val" camvid_test_img_folder = "data/CamVid/test" camvid_train_img_list = os.listdir(camvid_trai...
28.280702
72
0.694789
239
1,612
4.297071
0.188285
0.088608
0.064265
0.066212
0.435248
0.344693
0.290166
0.245375
0.137293
0.137293
0
0.004666
0.202233
1,612
56
73
28.785714
0.793935
0.019851
0
0.075
0
0
0.110266
0.028517
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0