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
ccff8fb01ea3f497743ce74c1e9b8975a96ada59
5,544
py
Python
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
346
2015-06-07T19:55:15.000Z
2022-03-18T07:55:10.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
202
2015-06-16T15:28:05.000Z
2022-01-06T18:26:13.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
101
2015-06-15T22:06:46.000Z
2022-01-13T02:56:02.000Z
#!/usr/bin/env python3 # # Copyright (c) 2015, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
37.459459
100
0.590729
689
5,544
4.711176
0.391872
0.021565
0.022181
0.015712
0.085952
0.066235
0.05915
0.05915
0.041898
0.041898
0
0.014345
0.220418
5,544
147
101
37.714286
0.736696
0.539683
0
0.078125
0
0
0.167404
0
0
0
0
0
0
1
0.015625
false
0
0.078125
0
0.09375
0.171875
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ccff9565d795674cf4b93f869a86dae2c49d6c9e
1,859
py
Python
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
# coding:utf-8 # example 17: quick_sort.py import random # def quick_sort(array): # if len(array) <= 1: # return array # pivot_idx = 0 # pivot = array[pivot_idx] # less_part = [num for num in array[pivot_idx + 1:] if num <= pivot] # great_part = [num for num in array[pivot_idx + 1:] if nu...
27.338235
72
0.603012
273
1,859
3.952381
0.179487
0.091752
0.084337
0.070436
0.331789
0.203892
0.072289
0.072289
0.072289
0.072289
0
0.040117
0.262507
1,859
67
73
27.746269
0.7469
0.324906
0
0
0
0
0
0
0
0
0
0
0.147059
1
0.117647
false
0
0.029412
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69003cd799998d8973cda2d04b1c36351df5836d
2,304
py
Python
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
1
2020-07-31T01:31:52.000Z
2020-07-31T01:31:52.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
12
2020-07-20T18:55:15.000Z
2021-09-23T05:08:26.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
null
null
null
""" A test file for testing zestimation The learned file could be downloaded at [learned_zqso_only_model_outdata_full_dr9q_minus_concordance_norm_1176-1256.mat] (https://drive.google.com/file/d/1SqAU_BXwKUx8Zr38KTaA_nvuvbw-WPQM/view?usp=sharing) """ import os import re import time import numpy as np from .test_selec...
29.538462
123
0.69401
359
2,304
4.175487
0.392758
0.03002
0.03002
0.0507
0.274183
0.228152
0.122749
0.088059
0.088059
0.088059
0
0.037546
0.179253
2,304
77
124
29.922078
0.755156
0.147569
0
0
0
0
0.143734
0.069054
0
0
0
0
0.022727
1
0.068182
false
0
0.204545
0
0.318182
0.113636
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690437062ad9bc153f8073ff84de085091fb62c1
5,249
py
Python
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
303
2016-03-03T00:44:37.000Z
2022-03-14T03:43:38.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
52
2016-02-26T21:41:31.000Z
2021-06-27T08:33:51.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
67
2016-03-03T22:38:35.000Z
2022-01-12T08:03:47.000Z
""" base estimator class for megaman """ # Author: James McQueen -- <jmcq@u.washington.edu> # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE import numpy as np from scipy.sparse import isspmatrix from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils.validation impo...
36.451389
81
0.599543
613
5,249
4.986949
0.288744
0.061825
0.025515
0.016683
0.167484
0.117763
0.100752
0.085051
0.064115
0.036637
0
0.004347
0.298724
5,249
143
82
36.706294
0.826134
0.547152
0
0.047619
0
0
0.086915
0
0
0
0
0
0
1
0.119048
false
0
0.119048
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
690613c67cd63310af621f929b186a79abbe5cd8
1,032
py
Python
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
4
2020-01-21T21:46:42.000Z
2021-02-24T18:30:24.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
1,313
2019-10-18T22:48:16.000Z
2022-03-30T17:42:47.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
201
2019-10-18T21:34:41.000Z
2022-03-31T20:07:42.000Z
"""update user profile definition Revision ID: d3f96fb8b8e5 Revises: 2b13f89aa1b3 Create Date: 2021-10-18 15:45:33.906745 """ from alembic import op import sqlalchemy as sa from alembic_utils.pg_function import PGFunction from sqlalchemy import text as sql_text # revision identifiers, used by Alembic. revision = 'd3...
30.352941
94
0.738372
131
1,032
5.679389
0.48855
0.053763
0.096774
0.061828
0.260753
0.198925
0.198925
0.11828
0
0
0
0.052273
0.147287
1,032
33
95
31.272727
0.793182
0.386628
0
0
0
0
0.245378
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6906a12f2953d09ffd721ec5d1611ca70e378fb9
2,948
py
Python
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" On an 8 x 8 chessboard, there is one white rook.  There also may be empty squares, white bishops, and black pawns.  These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces. The rook moves as in the rules of Ches...
39.837838
353
0.402307
341
2,948
3.478006
0.387097
0.033727
0.035413
0.030354
0.065767
0.052277
0.052277
0.033727
0.033727
0
0
0.012897
0.263569
2,948
74
354
39.837838
0.533395
0.678426
0
0.206897
0
0
0.003363
0
0
0
0
0
0
1
0.034483
false
0.034483
0
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6908c59f82b4dce18b0359af8fb11f6688af03cf
3,200
py
Python
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.105263
89
0.637813
453
3,200
4.284768
0.273731
0.028336
0.020608
0.032973
0.455951
0.455951
0.381762
0.381762
0.275631
0.225657
0
0.081675
0.24625
3,200
75
90
42.666667
0.723051
0.179375
0
0.290909
0
0
0.006508
0
0
0
0
0
0.054545
1
0.090909
false
0
0.127273
0
0.290909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690958b4739c7c62384b219e19362e11eacddb43
968
py
Python
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from simmate.website.core_components.filters import ( Structure, Forces, Thermodynamics, Calculation, ) from simmate.database.base_data_types.dynamics import ( DynamicsRun as DynamicsRunTable, DynamicsIonicStep as DynamicsIonicStepTable, ) class DynamicsRun(Structure, ...
25.473684
59
0.599174
79
968
7.202532
0.481013
0.079086
0.101933
0.080844
0
0
0
0
0
0
0
0.001449
0.28719
968
37
60
26.162162
0.823188
0.021694
0
0.193548
0
0
0.031746
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690b4a69f377b976688d836e3b5ab8c8dc9b6884
3,821
py
Python
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from taller1.models import Userid_Timestamp_Count class Coseno(): def recomendacionUsuario(self,usuario_activo): print("Modelo Coseno Usuario") cant = 10 df_mapreduce = Coseno.cargarDatos(self) print("df_mapreduce.shape",df_mapreduce.shape) df_pivot = df_mapr...
43.420455
108
0.741952
509
3,821
5.298625
0.210216
0.077494
0.046719
0.026696
0.42195
0.35076
0.252874
0.199481
0.163886
0.098628
0
0.0055
0.143418
3,821
88
109
43.420455
0.818515
0.048678
0
0.24
0
0
0.131134
0
0
0
0
0
0
1
0.106667
false
0
0.04
0.013333
0.266667
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690bf7914b0e1d6a8fa65445caa5e076e78c0f57
5,646
py
Python
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
66
2018-09-21T22:55:34.000Z
2022-03-22T14:29:57.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
4
2018-10-04T22:09:01.000Z
2022-03-31T16:18:38.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
50
2018-09-23T15:50:55.000Z
2022-03-06T06:59:33.000Z
"""Convert Shapefiles to Tecplot plt format usage: > python shapefile_to_plt.py shapefile.shp outfile.plt Necessary modules ----------------- pyshp The Python Shapefile Library (pyshp) reads and writes ESRI Shapefiles in pure Python. https://pypi.python.org/pypi/pyshp https://www.esri.com/library/whi...
33.607143
104
0.669146
825
5,646
4.45697
0.249697
0.039162
0.016318
0.024476
0.214849
0.150122
0.126734
0.11096
0.096274
0.081044
0
0.008972
0.230074
5,646
167
105
33.808383
0.836899
0.333688
0
0.170213
0
0
0.091939
0.00728
0
0
0
0
0
1
0.074468
false
0
0.085106
0
0.202128
0.074468
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690cf46e3a65cc79fc30a8178dbe551901ad1473
2,746
py
Python
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
"""When creating factory functions, plain functions are good unless you need to inherit from a higher level class. If you don't need to inherit, dont use a class.""" from functools import partial from .suits import * from .cards import * def card(rank, suit): if rank == 1: return AceCard('A', suit) ...
31.563218
89
0.617626
393
2,746
4.264631
0.335878
0.033413
0.040573
0.016706
0.243437
0.21957
0.21957
0.21957
0.21957
0.21957
0
0.023928
0.269483
2,746
86
90
31.930233
0.811565
0.257101
0
0.226415
0
0
0.028729
0
0
0
0
0
0
1
0.132075
false
0
0.056604
0.037736
0.45283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690eeeccad42026d1f4e91d779a9b52f4b5eb52e
847
py
Python
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def watchedVideosByFriends(self, watchedVideos: List[List[str]], friends: List[List[int]], ID: int, level: int) -> List[str]: n = len(friends) # BFS frontier = [ID] levels = {ID : 0} nsteps = 0 while frontier: if level == 0: ...
33.88
129
0.472255
91
847
4.362637
0.417582
0.06801
0.050378
0
0
0
0
0
0
0
0
0.014523
0.430933
847
24
130
35.291667
0.809129
0.003542
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690f42d3fe72fbc49129a7da627897da2c12d466
2,614
py
Python
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
16
2015-11-22T13:12:46.000Z
2020-09-04T06:42:55.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
8
2016-01-09T23:32:46.000Z
2019-09-30T23:30:49.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
7
2016-07-19T04:39:31.000Z
2020-09-04T06:43:06.000Z
from __future__ import annotations import logging import socket import pytest from .constants import TEST_HOST, TEST_PORT logger = logging.getLogger("tests.fixtures.client") class BaseClient: """ Blocking test client to connect to an app server """ name: str def __init__(self, name: str): ...
25.627451
87
0.613236
331
2,614
4.722054
0.253776
0.076775
0.046065
0.069098
0.266155
0.243122
0.150352
0.150352
0.12476
0.12476
0
0.004762
0.27697
2,614
101
88
25.881188
0.822222
0.109028
0
0.163934
0
0
0.132366
0.009235
0
0
0
0
0
1
0.163934
false
0
0.081967
0.016393
0.393443
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
690f93b1369267fc52a8a48543ba3893e460a7b1
7,768
py
Python
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
1
2017-11-26T22:12:16.000Z
2017-11-26T22:12:16.000Z
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
"""Standard raspberry GPIO access layer. It defines abstract layer that extends InOutInterface to access all standard ports on rapsberry pi. It uses RPi.GPIO under the hood. Thanks to that you have a standardized way of accessing these ports, as well as any others implementing InOutInterface. """ import logging fr...
36.469484
80
0.608651
938
7,768
4.76226
0.204691
0.145512
0.043877
0.035818
0.40206
0.375196
0.351019
0.296844
0.242668
0.164316
0
0.009972
0.315783
7,768
213
81
36.469484
0.83048
0.137873
0
0.304636
0
0
0.094242
0
0
0
0
0
0
1
0.086093
false
0
0.046358
0.006623
0.251656
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6910edd2d74b03e0e705138a62b8524d93b325d6
4,190
py
Python
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
import discord import os import json from discord.ext import commands, tasks import time import asyncio import random from discord.utils import MAX_ASYNCIO_SECONDS ########################################################################## #generalrole = discord.utils.get(ctx.guild.roles, id=661454256251076613) #logch...
28.310811
100
0.587351
458
4,190
5.344978
0.393013
0.039216
0.045752
0.034314
0.071487
0.053513
0.053513
0.053513
0.053513
0.039216
0
0.085613
0.258473
4,190
148
101
28.310811
0.701963
0.068019
0
0.165138
0
0.009174
0.085101
0.006253
0
0
0
0
0
1
0.045872
false
0
0.073395
0
0.229358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
691177c77ccb4ef9f4c89444502885d55b50a94c
5,007
py
Python
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
#First, we import the relevant libraries import sys import pandas as pd from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): '''This function will load the messages and categories datasets. Then, this function will merge the datasets by left join using the common id...
37.931818
117
0.675654
694
5,007
4.792507
0.279539
0.028864
0.038485
0.04089
0.312688
0.251052
0.19994
0.174083
0.149429
0.149429
0
0.004791
0.24965
5,007
132
118
37.931818
0.88049
0.496105
0
0.043478
0
0
0.243035
0.03129
0
0
0
0
0
1
0.086957
false
0
0.065217
0
0.195652
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
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
691235d4163755651c608d7db64917c20c45cfde
1,568
py
Python
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
1
2021-08-17T12:17:29.000Z
2021-08-17T12:17:29.000Z
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
import pandas as pd from modules import bedtools from modules import intervals def generator(ARGUMENTS): if not ARGUMENTS.input_bed and not ARGUMENTS.gtf_anno: print(f"get random intervals from genome {ARGUMENTS.reference}") RANDOM_BED = bedtools.random_interval( ARGUMENTS.reference, A...
28
73
0.658163
207
1,568
4.7343
0.323672
0.10102
0.069388
0.042857
0.095918
0.095918
0
0
0
0
0
0.002562
0.253189
1,568
55
74
28.509091
0.83433
0
0
0.047619
0
0
0.128827
0.026786
0
0
0
0
0
1
0.047619
false
0.02381
0.071429
0
0.166667
0.119048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69146b024afb8e8179d7794495072111c92f9cf1
532
py
Python
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
1
2022-03-06T11:37:47.000Z
2022-03-06T11:37:47.000Z
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
test = list() test.append('Werberty') test.append(21) galera = list() galera.append(test[:]) test[0] = 'Maria' test[1] = 22 galera.append(test[:]) print(galera) pessoal = [['joão', 19], ['Ana', 33], ['Joaquim', 13], ['Maria', 45]] print(pessoal[1]) print(pessoal[2][1]) for p in pessoal: print(f'{p[0]} tem {p[1]} a...
22.166667
69
0.614662
81
532
4.037037
0.469136
0.061162
0.097859
0
0
0
0
0
0
0
0
0.046256
0.146617
532
24
70
22.166667
0.674009
0
0
0.090909
0
0
0.144465
0
0
0
0
0
0
1
0
false
0
0
0
0
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6914bfcaeef4fb7954973326e68cefa7ccd0e8c9
4,667
py
Python
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
5
2019-06-30T14:45:12.000Z
2020-07-26T12:59:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
1
2020-07-11T10:47:57.000Z
2020-09-16T10:53:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
2
2019-12-24T02:10:42.000Z
2020-04-27T05:39:49.000Z
from summariser.ngram_vector.base import Sentence from summariser.utils.data_helpers import * from nltk.stem.porter import PorterStemmer from summariser.ngram_vector.state_type import * import random class Vectoriser: def __init__(self,docs,sum_len=100,no_stop_words=True,stem=True,block=1,base=200,lang='english')...
42.045045
122
0.630812
548
4,667
5.120438
0.229927
0.055595
0.021383
0.025659
0.162153
0.11119
0.070563
0.058446
0.058446
0.058446
0
0.006876
0.283265
4,667
110
123
42.427273
0.831988
0.014142
0
0.022472
0
0
0.002393
0
0
0
0
0
0.011236
1
0.05618
false
0
0.05618
0
0.191011
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69212d7ab58acd86f0a6a7a1366fa6f42c3e9584
1,296
py
Python
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/openua/procedure/models/award.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from schematics.types import StringType, BooleanType, MD5Type, BaseType from schematics.exceptions import ValidationError from schematics.types.compound import ModelType from openprocurement.api.models import ListType from openprocurement.tender.core.procedure.models.award import ( Award as BaseAward, PatchAwar...
35.027027
98
0.759259
135
1,296
7.274074
0.392593
0.077393
0.076375
0.059063
0.336049
0.336049
0.118126
0.118126
0
0
0
0.000916
0.157407
1,296
36
99
36
0.898352
0
0
0.142857
0
0
0.054012
0
0
0
0
0
0
1
0.071429
false
0.035714
0.25
0
0.678571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6922080e0ef28e36cb9344b32948cabc43d991c9
4,448
py
Python
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
from __future__ import print_function import numpy as np from fidimag.atomistic import Sim from fidimag.common import CuboidMesh from fidimag.atomistic import UniformExchange def init_m(pos): x, y, z = pos return (x - 0.5, y - 0.5, z - 0.5) def test_exch_1d(): """ Test the x component of the exchang...
23.046632
77
0.546088
717
4,448
3.297071
0.175732
0.107022
0.037225
0.035533
0.409052
0.348562
0.315567
0.30753
0.282572
0.258037
0
0.088206
0.319469
4,448
192
78
23.166667
0.692765
0.317221
0
0.413793
0
0
0.002787
0
0
0
0
0
0.367816
1
0.08046
false
0
0.057471
0
0.149425
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6928610238b2e0cae526f79687ff41ce7a474164
4,882
py
Python
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
null
null
null
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
null
null
null
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
1
2020-04-30T17:26:26.000Z
2020-04-30T17:26:26.000Z
"""Demo for latent factor model""" from __future__ import division import numpy as np import numpy.random as nr import matplotlib.pyplot as plt from IBPFM import IBPFM from utils.tracePlot import trace from utils.scaledimage import scaledimage N = 100 chain = 1000 K_finite = 6 # # read the keyboard input for the num...
30.135802
88
0.599549
820
4,882
3.460976
0.213415
0.072586
0.09408
0.105708
0.388302
0.32382
0.26709
0.251233
0.239253
0.236082
0
0.055968
0.17288
4,882
161
89
30.322981
0.646855
0.262392
0
0.195876
0
0
0.035413
0.00787
0
0
0
0
0
1
0
false
0
0.072165
0
0.072165
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6928d12a9070c21f90e40630002456e946b09b39
1,391
py
Python
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
# 기본 파라미터 설정 ######################### Nin = 784 Nh_l = [100, 50] number_of_class = 10 Nout = number_of_class # 분류 DNN 모델 구현 ######################## from keras import layers, models class DNN(models.Sequential): def __init__(self, Nin, Nh_l, Nout): super().__init__() self.add(layers.Dense(Nh_l[...
33.119048
95
0.608914
205
1,391
3.882927
0.404878
0.052764
0.048995
0.067839
0.133166
0.052764
0
0
0
0
0
0.029623
0.199137
1,391
41
96
33.926829
0.684919
0.035226
0
0
0
0
0.074373
0.019402
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69301dd6f35763c4b558452e2a75490a7e95b5cb
1,176
py
Python
ChestnutPatcher/inject-lib.py
chestnut-sandbox/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
7
2020-12-08T02:00:14.000Z
2021-05-10T13:12:35.000Z
ChestnutPatcher/inject-lib.py
cc0x1f/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
2
2022-01-03T13:51:48.000Z
2022-01-26T15:42:44.000Z
ChestnutPatcher/inject-lib.py
cc0x1f/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
2
2021-05-15T03:06:07.000Z
2021-08-06T18:11:35.000Z
import sys import lief import json import struct import os def filter_file(fname): f = fname.replace("/", "_") + ".json" if f[0] == ".": f = f[1:] return f def main(fname): # load filter ffname = "policy_%s" % filter_file(fname) filters = None try: filters = json.loads(ope...
25.021277
64
0.590986
154
1,176
4.376623
0.422078
0.047478
0.077151
0
0
0
0
0
0
0
0
0.012514
0.252551
1,176
46
65
25.565217
0.754266
0.066327
0
0
0
0
0.190302
0
0
0
0
0
0
1
0.058824
false
0
0.147059
0
0.264706
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69331d5c6bc354bd17e9f9d5696da9f4cbff069b
5,826
py
Python
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
null
null
null
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
1
2020-03-20T13:57:52.000Z
2021-03-11T17:25:25.000Z
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
null
null
null
"""Generic regex-based parser.""" import re from collections import deque from typing import Union, Any, List, Deque, Tuple, Dict, Callable from scoff.parsers.linematch import MatcherError, LineMatcher EMPTY_LINE = re.compile(b"\s*$") class ParserError(Exception): """Parser error.""" class DataParser: """...
31.15508
76
0.583934
667
5,826
4.874063
0.230885
0.066441
0.025838
0.014765
0.103045
0.037527
0.022147
0.022147
0
0
0
0.002265
0.317885
5,826
186
77
31.322581
0.815803
0.154652
0
0.068376
0
0
0.040717
0
0
0
0
0
0
1
0.136752
false
0
0.034188
0
0.25641
0.008547
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6933f6dc14a4268b062d6716b8b6fce13e8b8ff9
34,279
py
Python
cfg/model/CfgModel.py
sdnellen/ordt-config-tool
30cc7342c5bc0f574b2a4a8d207230e1fa527615
[ "Apache-2.0" ]
1
2019-12-06T19:11:28.000Z
2019-12-06T19:11:28.000Z
utils/cfgtool/cfg/model/CfgModel.py
mytoys/open-register-design-tool
5d6dea268f77546a9a786a16603f50e974d87050
[ "Apache-2.0" ]
null
null
null
utils/cfgtool/cfg/model/CfgModel.py
mytoys/open-register-design-tool
5d6dea268f77546a9a786a16603f50e974d87050
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 ''' @author: snellenbach Config sequence model ''' from enum import Enum, unique import re from cfg.model.RegModelWrapper import RegModelWrapper from cfg.model.Utils import MsgUtils from cfg.output.OutBuilder import OutBuilder as ob # ------- config model node classes class BaseCfgNode: _nodeS...
47.675939
210
0.632603
3,825
34,279
5.59451
0.131242
0.013459
0.011823
0.01215
0.308472
0.261788
0.22258
0.168513
0.130427
0.110846
0
0.001985
0.265177
34,279
718
211
47.74234
0.847553
0.223956
0
0.29432
0
0.017212
0.10098
0.026361
0
0
0
0.001393
0
1
0.194492
false
0.006885
0.008606
0.034423
0.437177
0.015491
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69357d4b61dce4eb42c2cf196abf2f132d27de5f
2,061
py
Python
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: ai:sw=4:ts=4:sta:et:fo=croql # coding=utf-8 import pytest # Uncomment to run test in debug mode # import pudb; pudb.set_trace() from reinforcement_learning.dict_qtable import DictQTable from test_qaction import QActionTest from test_qstate import QStateTest """ DictQTable """ @pytest.m...
33.786885
73
0.654051
291
2,061
4.395189
0.257732
0.094605
0.120407
0.125098
0.472244
0.41595
0.379984
0.296325
0.272088
0.212666
0
0.010665
0.226589
2,061
60
74
34.35
0.791719
0.080058
0
0.210526
0
0
0.053026
0
0
0
0
0
0.289474
1
0.052632
false
0
0.105263
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
693580d8911168f775041c87c4274d3d07d8d2de
2,851
py
Python
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
1
2015-12-14T08:31:30.000Z
2015-12-14T08:31:30.000Z
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
import tornado.web import tornado.gen import json import io import logging import motor from bson.objectid import ObjectId import mickey.userfetcher from mickey.basehandler import BaseHandler class AcceptMemberHandler(BaseHandler): @tornado.web.asynchronous @tornado.gen.coroutine def post(self): ...
33.541176
105
0.54437
308
2,851
4.938312
0.357143
0.039448
0.042735
0.021039
0.101249
0.101249
0.068376
0.026298
0
0
0
0.008976
0.335672
2,851
84
106
33.940476
0.794087
0.016485
0
0.166667
0
0
0.121028
0.009282
0
0
0
0
0
1
0.015152
false
0
0.136364
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
693bf1abd077feaa155858e8c51deee32624b50d
14,767
py
Python
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
import logging.config import random import re from collections import defaultdict from datetime import datetime from enum import Enum import requests from example.util import log_call from icq.bot import ICQBot, FileNotFoundException from icq.constant import TypingStatus from icq.filter import MessageFilter from icq....
36.825436
120
0.590709
1,720
14,767
4.926744
0.237209
0.024782
0.011801
0.013217
0.187397
0.138423
0.11199
0.06396
0.034694
0.022658
0
0.008487
0.281845
14,767
400
121
36.9175
0.79057
0.039209
0
0.214511
0
0.0347
0.251146
0.091499
0
0
0
0
0
1
0.041009
false
0.003155
0.047319
0.006309
0.173502
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
693d787b8fc4cb803c97288d52b6f488a6db0a75
2,920
py
Python
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import curses import sys import subprocess def main_menu(stdscr): k = 0 cursor_x = 0 cursor_y = 0 # Start colors in curses curses.start_color() curses.init_pair(1, curses.COLOR_CYAN, curses.COLOR_BLACK) curses.init_pair(2, curses.COLOR_RED, curses.COLOR_BLACK) cur...
28.627451
90
0.564726
367
2,920
4.395095
0.332425
0.075016
0.046497
0.039678
0.225666
0.15871
0.121513
0.042157
0
0
0
0.024354
0.310959
2,920
101
91
28.910891
0.777336
0.121233
0
0.190476
0
0
0.078431
0
0
0
0
0
0
1
0.031746
false
0
0.047619
0
0.079365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
693fc462e0aaf1cceaf2297cb92e001c5129520c
2,458
py
Python
nwbwidgets/utils/plotly.py
NeurodataWithoutBorders/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
35
2019-03-10T23:39:17.000Z
2021-11-16T11:50:33.000Z
nwbwidgets/utils/plotly.py
catalystneuro/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
158
2019-03-12T21:40:24.000Z
2022-03-16T14:35:55.000Z
nwbwidgets/utils/plotly.py
catalystneuro/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
20
2019-03-08T14:30:27.000Z
2021-11-08T16:31:26.000Z
import plotly.graph_objects as go import numpy as np def multi_trace(x, y, color, label=None, fig=None, insert_nans=False): """Create multiple traces that are associated with a single legend label Parameters ---------- x: array-like y: array-like color: str label: str, optional fig: g...
22.345455
87
0.513832
284
2,458
4.352113
0.302817
0.022654
0.055016
0.038835
0.325243
0.18123
0.127832
0.059871
0.059871
0
0
0.001989
0.386493
2,458
109
88
22.550459
0.817639
0.203417
0
0.384615
0
0
0.011911
0
0
0
0
0
0
1
0.030769
false
0
0.030769
0
0.107692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69417b7d7a3a4bf350d3fdf5bf9bebda6e608488
5,997
py
Python
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
6
2018-04-16T16:38:59.000Z
2022-02-10T09:02:11.000Z
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
1
2018-10-18T20:59:11.000Z
2018-10-19T13:42:43.000Z
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
6
2018-04-16T17:06:12.000Z
2020-05-06T11:32:39.000Z
from django.conf import settings class SAMLServiceProviderSettings(object): contact_info = { # Contact information template, it is recommended to suply a # technical and support contacts. "technical": { "givenName": settings.SAML['CONTACT_INFO']['TECHNICAL']['GIVEN_NAME'], ...
51.698276
167
0.571786
651
5,997
5.165899
0.298003
0.011894
0.014273
0.022302
0.398454
0.348498
0.305679
0.254237
0.254237
0.254237
0
0.01426
0.345173
5,997
115
168
52.147826
0.842119
0.408371
0
0.079365
0
0
0.224222
0.077978
0
0
0
0
0.015873
1
0.015873
false
0
0.015873
0
0.079365
0.063492
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6943f352d6732b6ea4e8c626dd8012e42b34ad09
25,972
py
Python
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicab...
37.262554
79
0.578354
2,867
25,972
5.106034
0.161842
0.012979
0.01052
0.01093
0.240317
0.189152
0.164834
0.119066
0.107111
0.089214
0
0.001111
0.341522
25,972
696
80
37.316092
0.854871
0.197713
0
0.23341
0
0
0.0557
0.001203
0
0
0
0.002874
0
1
0.100687
false
0.004577
0.045767
0.009153
0.249428
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69453942628ce1c37639781c43bed0432a313dc3
1,547
py
Python
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
from typing import List from please_conform import PleaseConform from structures import Interval class PleaseConformSquared(PleaseConform): def please_conform(self, caps: List[str]) -> List[Interval]: if len(caps) == 0: return list() caps: List[str] = caps.copy() caps.append...
30.333333
64
0.564318
163
1,547
5.079755
0.276074
0.078502
0.043478
0
0
0
0
0
0
0
0
0.008147
0.365223
1,547
50
65
30.94
0.835031
0
0
0.054054
0
0
0.003878
0
0
0
0
0
0
1
0.027027
false
0
0.081081
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
694611c01663b1d27e4ebc26f84bb2603c45ff7c
5,784
py
Python
apps/almoxarifado/apps/cont/forms.py
mequetrefe-do-subtroco/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
1
2020-06-18T09:03:53.000Z
2020-06-18T09:03:53.000Z
apps/almoxarifado/apps/cont/forms.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
33
2020-06-16T18:59:33.000Z
2021-08-12T21:33:17.000Z
apps/almoxarifado/apps/cont/forms.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
null
null
null
from django import forms from .models import * class FormCadastraModelo(forms.ModelForm): class Meta: model = Modelo fields = ['nome', 'descricao', ] def __init__(self, *args, **kwargs): super(FormCadastraModelo, self).__init__(*args, **kwargs) for key in self.fields.keys()...
28.492611
115
0.602006
651
5,784
5.202765
0.219662
0.067907
0.055211
0.039858
0.613227
0.576912
0.500443
0.500443
0.475642
0.442279
0
0.010862
0.251902
5,784
202
116
28.633663
0.771897
0.038382
0
0.5
0
0
0.114867
0
0
0
0
0
0
1
0.098361
false
0.016393
0.016393
0
0.336066
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69469bc9f4f19c9f16e8cc58a6b94958c3abce9d
1,980
py
Python
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 2 16:43:45 2020 @author: micha """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from MD_Analysis import Angle_Calc from pydmd import DMD pdb="pdbs/WT_295K_200ns_50ps_0_run.pdb" #Extract phi, psi angles A...
21.758242
69
0.663636
332
1,980
3.855422
0.391566
0.051563
0.046875
0.042188
0.142188
0.075
0.075
0.075
0.075
0
0
0.0454
0.165657
1,980
90
70
22
0.729419
0.084848
0
0.157895
0
0
0.084557
0.019378
0
0
0
0
0
1
0.035088
false
0
0.105263
0
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69496f7144482f3f124f969247fa77f335fc5db1
695
py
Python
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from xml.etree.ElementTree import QName from .t_event_definition import TEventDefinition __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class TCompensateEventDefinition(TEventDefinition): class Meta: name = "tC...
24.821429
61
0.640288
63
695
6.920635
0.650794
0.055046
0.073395
0.110092
0.12844
0
0
0
0
0
0
0.015534
0.258993
695
27
62
25.740741
0.831068
0
0
0.26087
0
0
0.188489
0.03741
0
0
0
0
0
1
0
false
0
0.173913
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
694980cd79dd13058b0c41b67c32eb322a3674e4
822
py
Python
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
import html from googletrans import Translator from slackbot.bot import default_reply, respond_to, listen_to translator = Translator() def translate(message): msg_in = html.unescape(message.body["text"]) if msg_in != "": if translator.detect(msg_in).lang == "en": text = translator.transla...
24.176471
65
0.647202
101
822
5.069307
0.376238
0.048828
0.134766
0.101563
0.125
0.125
0
0
0
0
0
0
0.217762
822
33
66
24.909091
0.796268
0
0
0.2
0
0
0.036496
0
0
0
0
0
0
1
0.16
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
694a62087121f0e7a903137a5cded3d86b3d17e4
1,324
py
Python
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
1
2022-03-25T19:14:53.000Z
2022-03-25T19:14:53.000Z
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
null
null
null
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
4
2022-03-10T18:40:44.000Z
2022-03-10T19:20:30.000Z
import collections import os from pathlib import Path from typing import List import streamlit as st from sentence_transformers import SentenceTransformer from search.engine import Engine, Result from search.model import load_minilm_model from search.utils import get_memory_usage os.environ["TOKENIZERS_PARALLELISM"]...
21.354839
67
0.728852
191
1,324
4.890052
0.450262
0.037473
0.03212
0.038544
0.079229
0.079229
0.079229
0.079229
0
0
0
0.00177
0.146526
1,324
61
68
21.704918
0.824779
0.089124
0
0.058824
0
0
0.246504
0.056818
0
0
0
0
0
1
0.058824
false
0
0.264706
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
694b3b51b65fa886685be715d3c914e309e0c1fe
1,596
py
Python
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
from tkinter import * class EditBoxWindow: def __init__(self, parent = None): if parent == None: parent = Tk() self.myParent = parent self.top_frame = Frame(parent) # Criando a barra de rolagem scrollbar = Scrollbar(self.top_frame) self.editbox = Text(...
32.571429
85
0.58396
193
1,596
4.678756
0.393782
0.085271
0.053156
0.084164
0
0
0
0
0
0
0
0.006289
0.302632
1,596
49
86
32.571429
0.805031
0.042607
0
0
0
0
0.027559
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
694cb06a76643cd64ded70df62959d8318b7af93
426
py
Python
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
null
null
null
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
null
null
null
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
1
2022-03-22T13:50:41.000Z
2022-03-22T13:50:41.000Z
import psycopg from flask import Flask, render_template from flask_compress import Compress app = Flask(__name__) DATABASE_URL = "" Compress(app) @app.route("/") def index(): with psycopg.connect(DATABASE_URL, sslmode="require") as conn: with conn.cursor() as cur: cur.execute("SELECT * FROM t...
25.058824
66
0.671362
53
426
5.226415
0.54717
0.064982
0
0
0
0
0
0
0
0
0
0
0.213615
426
16
67
26.625
0.826866
0
0
0
0
0
0.091549
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69512ed9252aea21d648e173c9d6e12c14061403
1,404
py
Python
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
import re class Bag: def __init__(self, _name, _contents): self.name = _name self.contents = _contents self.c_cache = None self.has_cache = {} def hasBagType(self, _name, bags): try: return self.has_cache[_name] except: if _name != self.name: for i in self.contents: if bags[i[1]].hasBagTyp...
22.285714
90
0.623219
215
1,404
3.948837
0.302326
0.042403
0.047114
0.03298
0.150766
0.056537
0.056537
0
0
0
0
0.014184
0.196581
1,404
63
91
22.285714
0.738475
0.007835
0
0.16
0
0
0.110632
0.017241
0
0
0
0
0
1
0.06
false
0
0.02
0
0.22
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69517bd1fdcbc759ae3114b27d1f3038e73dc9c5
3,209
py
Python
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
from datetime import datetime, timedelta from io import BytesIO from pathlib import Path from time import altzone, daylight, localtime, timezone from pydrive.auth import GoogleAuth, AuthenticationRejected from pydrive.drive import GoogleDrive as Drive, GoogleDriveFile as File from requests import patch from .auth impor...
26.966387
113
0.727641
454
3,209
4.955947
0.306167
0.046667
0.012
0.021333
0.099556
0.034667
0.034667
0.034667
0.034667
0.034667
0
0.001087
0.139607
3,209
118
114
27.194915
0.813836
0
0
0.193878
0
0.010204
0.192895
0.078841
0
0
0
0
0
1
0.112245
false
0
0.091837
0.020408
0.326531
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
69550175d4982933c72091480c87edac34bffafc
1,967
py
Python
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import pkg_resources import pytest import string import yaml definition_yamls = { fn for fn in pkg_resources.resource_listdir("dials_data", "definitions") if fn.endswith(".yml") } hashinfo_yamls = { fn for fn...
31.222222
86
0.68785
234
1,967
5.547009
0.316239
0.067797
0.061633
0.01849
0.514638
0.437596
0.437596
0.329738
0.278891
0.206471
0
0.001895
0.195221
1,967
62
87
31.725806
0.818067
0.010676
0
0.192308
0
0
0.170782
0
0
0
0
0
0.134615
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
695579af900de69250d3b0d15ec3f825c2990c7f
18,839
py
Python
PacELF_Phase3/scripts/csvColumnToXMLFile.py
pacelf/pacelf
cd9f3608843eaf7d9dff6e20e06ee4bf773467e3
[ "MIT" ]
null
null
null
PacELF_Phase3/scripts/csvColumnToXMLFile.py
pacelf/pacelf
cd9f3608843eaf7d9dff6e20e06ee4bf773467e3
[ "MIT" ]
2
2021-10-06T01:58:48.000Z
2022-02-18T04:52:34.000Z
PacELF_Phase3/scripts/csvColumnToXMLFile.py
pacelf/pacelf
cd9f3608843eaf7d9dff6e20e06ee4bf773467e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This program is designed to create XML sidecar files for harvesting metadata into Mediaflux. # # Author: Jay van Schyndel # Date: 02 May 2017. # # Significant modifications done by: Daniel Baird # Date: 2018 and early 2019 # # Scenario. Metadata is stored in an MS Excel file in various colu...
37.157791
197
0.49578
1,970
18,839
4.600508
0.228426
0.021185
0.025157
0.024385
0.388613
0.366435
0.344147
0.339181
0.310493
0.29626
0
0.022933
0.400499
18,839
506
198
37.231225
0.779529
0.144116
0
0.3257
0
0.002545
0.294829
0.007297
0
0
0
0
0
1
0.007634
false
0.002545
0.015267
0
0.033079
0.02799
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69566d12c06529c48fecd538d7a1ad6d03fffd43
1,147
py
Python
authenticationCwProject/authenticationCwApp/views.py
cs-fullstack-2019-spring/django-authentication-cw-bettyjware11
0afa675b0b6602a89ecfff9ee29a62c95f677de6
[ "Apache-2.0" ]
null
null
null
authenticationCwProject/authenticationCwApp/views.py
cs-fullstack-2019-spring/django-authentication-cw-bettyjware11
0afa675b0b6602a89ecfff9ee29a62c95f677de6
[ "Apache-2.0" ]
null
null
null
authenticationCwProject/authenticationCwApp/views.py
cs-fullstack-2019-spring/django-authentication-cw-bettyjware11
0afa675b0b6602a89ecfff9ee29a62c95f677de6
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.shortcuts import HttpResponse from .forms import FoodFitnessForm from django.contrib.auth.models import User # function to test with def index(request): return HttpResponse("You made it.") # function to create new user def createUser(request): form = FoodFitness...
28.675
107
0.70619
133
1,147
6.075188
0.360902
0.068069
0.070545
0.141089
0.289604
0.220297
0.089109
0.089109
0
0
0
0
0.173496
1,147
39
108
29.410256
0.852321
0.068003
0
0.153846
0
0
0.198122
0.100469
0
0
0
0
0
1
0.115385
false
0
0.153846
0.038462
0.461538
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
695934996d2e79a5c72ef6834b5be0584eb22c99
4,763
py
Python
csv-manipulation/csv-merge.py
bohnacker/data-manipulation
a46cdfdeca8d242038b118509c20b1eb39ea5b36
[ "MIT" ]
2
2020-06-05T15:57:50.000Z
2020-06-30T12:59:00.000Z
csv-manipulation/csv-merge.py
bohnacker/data-manipulation
a46cdfdeca8d242038b118509c20b1eb39ea5b36
[ "MIT" ]
null
null
null
csv-manipulation/csv-merge.py
bohnacker/data-manipulation
a46cdfdeca8d242038b118509c20b1eb39ea5b36
[ "MIT" ]
null
null
null
from __future__ import print_function # A script to help you with manipulating CSV-files. This is especially necessary when dealing with # CSVs that have more than 65536 lines because those can not (yet) be opened in Excel or Numbers. # This script works with two files from ourworldindata.org: # https://ourworldindat...
33.780142
131
0.618728
567
4,763
5.174603
0.365079
0.030675
0.01636
0.014315
0.103613
0.103613
0.093388
0.05726
0.05726
0.034083
0
0.013611
0.244174
4,763
140
132
34.021429
0.801389
0.4789
0
0.031746
0
0.031746
0.186392
0.053196
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
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
695b6b62546eaa04ce79f4261d88a6eb1b8a86ea
16,047
py
Python
script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py
HealthML/faatpipe
8292df4f34c99f035756a1acbd2c79055f652958
[ "Apache-2.0" ]
2
2021-12-06T09:00:52.000Z
2022-03-03T15:03:51.000Z
script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py
HealthML/faatpipe
8292df4f34c99f035756a1acbd2c79055f652958
[ "Apache-2.0" ]
null
null
null
script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py
HealthML/faatpipe
8292df4f34c99f035756a1acbd2c79055f652958
[ "Apache-2.0" ]
null
null
null
import os # os.environ["OMP_NUM_THREADS"] = "16" import logging logging.basicConfig(filename=snakemake.log[0], level=logging.INFO) import pandas as pd import numpy as np # seak imports from seak.data_loaders import intersect_ids, EnsemblVEPLoader, VariantLoaderSnpReader, CovariatesLoaderCSV from seak.scoretest impo...
42.228947
271
0.645541
2,173
16,047
4.598251
0.202945
0.020016
0.016813
0.003503
0.179243
0.132706
0.110889
0.096677
0.081465
0.076261
0
0.010103
0.228952
16,047
380
272
42.228947
0.797462
0.200287
0
0.114155
0
0
0.114707
0
0
0
0
0
0.013699
1
0.03653
false
0.009132
0.054795
0
0.127854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
695bd5a3034969d8612674c32efea1218548dce0
4,741
py
Python
animations/dafP1.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
9
2018-02-19T14:17:12.000Z
2021-03-27T14:46:28.000Z
animations/dafP1.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
null
null
null
animations/dafP1.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
null
null
null
#!/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
34.605839
75
0.607467
670
4,741
4.153731
0.274627
0.136543
0.071146
0.060367
0.440532
0.398491
0.385196
0.355372
0.341718
0.306504
0
0.08228
0.248893
4,741
136
76
34.860294
0.699242
0.133938
0
0.163462
0
0
0.195748
0.005132
0
0
0
0
0
1
0.096154
false
0
0.028846
0
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
695cb03fad71e52d66b52655147eb22d30993c0d
366
py
Python
backup/server/__init__.py
TheSithPadawan/CSE222A-CourseProject
ded7232fa76a8c57e2355a6559573f71e6e63871
[ "MIT" ]
1
2019-02-17T06:41:59.000Z
2019-02-17T06:41:59.000Z
backup/server/__init__.py
TheSithPadawan/CSE222A-CourseProject
ded7232fa76a8c57e2355a6559573f71e6e63871
[ "MIT" ]
1
2019-02-21T05:19:31.000Z
2019-03-02T06:38:33.000Z
backup/server/__init__.py
TheSithPadawan/CSE222A-CourseProject
ded7232fa76a8c57e2355a6559573f71e6e63871
[ "MIT" ]
1
2022-02-12T05:18:49.000Z
2022-02-12T05:18:49.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy db_url = 'postgresql://postgres:postgres@localhost:5432/postgres' db = SQLAlchemy() def create_app(): app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = db_url app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # initialize ...
22.875
65
0.743169
46
366
5.630435
0.5
0.069498
0.146718
0
0
0
0
0
0
0
0
0.013029
0.161202
366
15
66
24.4
0.830619
0.051913
0
0
0
0
0.311047
0.311047
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
696b0fe7fb16a5ee74d9c65d62711192a825d49b
942
py
Python
loop_fix_sample_rate.py
Crystalwarrior/AO2-Scripts
acbabc64706374362bd93662d9ce1e2cf8eb35fb
[ "MIT" ]
1
2020-11-21T14:27:27.000Z
2020-11-21T14:27:27.000Z
loop_fix_sample_rate.py
Crystalwarrior/AO2-Scripts
acbabc64706374362bd93662d9ce1e2cf8eb35fb
[ "MIT" ]
null
null
null
loop_fix_sample_rate.py
Crystalwarrior/AO2-Scripts
acbabc64706374362bd93662d9ce1e2cf8eb35fb
[ "MIT" ]
1
2020-08-14T02:44:46.000Z
2020-08-14T02:44:46.000Z
import os from os import path old_sample_rate = float(input("What was the original sample rate? ")) new_sample_rate = float(input("What is the new sample rate? ")) for file in os.listdir(os.getcwd()): name = file.rsplit(".",1)[0] if file.rsplit(".",1)[-1] == "opus" and path.exists(name + ".opus.txt"): ...
36.230769
76
0.549894
129
942
3.891473
0.387597
0.119522
0.077689
0.079681
0.159363
0
0
0
0
0
0
0.008837
0.279193
942
26
77
36.230769
0.730486
0
0
0.083333
0
0
0.184518
0.02439
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
696b8fef41b6b27dc44ddf7473367dc19aba29de
2,221
py
Python
reviewboard/extensions/templatetags/rb_extensions.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
1
2015-09-11T15:50:17.000Z
2015-09-11T15:50:17.000Z
reviewboard/extensions/templatetags/rb_extensions.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
null
null
null
reviewboard/extensions/templatetags/rb_extensions.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
null
null
null
from django import template from django.conf import settings from django.template.loader import render_to_string from djblets.util.decorators import basictag from reviewboard.extensions.hooks import DiffViewerActionHook, \ NavigationBarHook, \ ...
30.847222
78
0.641603
225
2,221
6.16
0.288889
0.087302
0.090909
0.077922
0.344877
0.29798
0.29798
0.243146
0.243146
0.131313
0
0
0.281405
2,221
71
79
31.28169
0.868421
0.130122
0
0.25
0
0
0.051941
0.042497
0
0
0
0
0
1
0.104167
false
0
0.104167
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
696c68c8ad6875cf4824c538720ffa0e9657eb27
8,671
py
Python
opengnn/models/model.py
CoderPat/OpenGNN
bc54328ad4aa034098073c72153eed361b4266ce
[ "MIT" ]
32
2019-01-28T13:38:21.000Z
2022-03-29T08:39:00.000Z
opengnn/models/model.py
CoderPat/OpenGNN
bc54328ad4aa034098073c72153eed361b4266ce
[ "MIT" ]
1
2020-01-16T03:09:18.000Z
2020-01-16T03:44:20.000Z
opengnn/models/model.py
CoderPat/OpenGNN
bc54328ad4aa034098073c72153eed361b4266ce
[ "MIT" ]
7
2019-03-07T14:13:15.000Z
2022-03-15T10:40:41.000Z
from abc import ABC, abstractmethod from typing import Dict, Any import tensorflow as tf import numpy as np from opengnn.utils.data import diverse_batch, batch_and_bucket_by_size from opengnn.utils.data import filter_examples_by_size, truncate_examples_by_size def optimize(loss: tf.Tensor, params: Dict[st...
39.958525
93
0.587937
913
8,671
5.297919
0.20701
0.018813
0.033078
0.02853
0.357039
0.237544
0.199504
0.167459
0.104817
0.095927
0
0.000705
0.345404
8,671
216
94
40.143519
0.85148
0.075539
0
0.170886
0
0
0.020282
0
0
0
0
0.00463
0.006329
1
0.094937
false
0
0.037975
0.018987
0.208861
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
696cdcbe00ab21ab20807832ccc7573329262037
894
py
Python
pyopendds/dev/itl2py/Output.py
jwillemsen/pyopendds
fd025416a02433dd42eeaf1ae449b6c1e19d177e
[ "MIT" ]
19
2020-03-10T22:23:00.000Z
2022-03-30T01:18:56.000Z
pyopendds/dev/itl2py/Output.py
jwillemsen/pyopendds
fd025416a02433dd42eeaf1ae449b6c1e19d177e
[ "MIT" ]
28
2020-02-15T18:07:08.000Z
2022-03-31T18:38:57.000Z
pyopendds/dev/itl2py/Output.py
jwillemsen/pyopendds
fd025416a02433dd42eeaf1ae449b6c1e19d177e
[ "MIT" ]
6
2021-04-29T07:39:11.000Z
2022-01-21T13:38:13.000Z
from pathlib import Path from .ast import NodeVisitor class Output(NodeVisitor): def __init__(self, context: dict, path: Path, templates: dict): self.context = context self.path = path self.templates = {} for filename, template in templates.items(): self.templates[pat...
33.111111
85
0.530201
91
894
5.10989
0.406593
0.11828
0.055914
0.068817
0.103226
0.103226
0
0
0
0
0
0
0.282998
894
26
86
34.384615
0.725429
0
0
0.190476
0
0
0.135347
0.089485
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.238095
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
696f6073b8eafcb697b67113138ad0cec4dabea2
3,423
py
Python
Lab7/Q3.py
fancent/PHY407
38ce8badb9537060becc255ec64e6de2968ca73c
[ "MIT" ]
1
2020-12-20T17:30:06.000Z
2020-12-20T17:30:06.000Z
Lab7/Q3.py
fancent/PHY407
38ce8badb9537060becc255ec64e6de2968ca73c
[ "MIT" ]
null
null
null
Lab7/Q3.py
fancent/PHY407
38ce8badb9537060becc255ec64e6de2968ca73c
[ "MIT" ]
1
2021-06-12T14:21:13.000Z
2021-06-12T14:21:13.000Z
""" This file aims to simulate the Belousov–Zhabotinsky reaction, is a chemical mixture which, when heated, undergoes a series of reactions that cause the chemical concentrations in the mixture to oscillate between two extremes (x, y). """ import numpy as np import matplotlib.pyplot as plt ## Constants a = 1 b = 3 ...
31.990654
101
0.532282
512
3,423
3.544922
0.3125
0.008815
0.008815
0.041322
0.031956
0
0
0
0
0
0
0.038698
0.33567
3,423
107
102
31.990654
0.757696
0.334502
0
0.0625
0
0
0.045564
0
0
0
0
0
0
1
0.078125
false
0
0.03125
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69708664ff337e44ffae2d3817c35e032d51bec6
2,747
py
Python
tests/solr_tests/tests/management_commands.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
1
2016-02-24T19:40:05.000Z
2016-02-24T19:40:05.000Z
tests/solr_tests/tests/management_commands.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
null
null
null
tests/solr_tests/tests/management_commands.py
kmgroup/django-haystack-1.2.x-for-d1.8
b9368f169eec06e78131e81d6968cc6580d6ddee
[ "BSD-3-Clause" ]
null
null
null
import pysolr from django.conf import settings from django.core.management import call_command from django.test import TestCase from haystack import indexes from haystack.sites import SearchSite from core.models import MockModel class SolrMockSearchIndex(indexes.SearchIndex): text = indexes.CharField(document=Tru...
36.626667
73
0.650528
316
2,747
5.541139
0.306962
0.054826
0.11936
0.144489
0.432895
0.415191
0.415191
0.375214
0.350657
0.349515
0
0.014513
0.222424
2,747
74
74
37.121622
0.805243
0.056425
0
0.38
0
0
0.068832
0
0
0
0
0
0.22
1
0.1
false
0
0.18
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6971294bf9fe140162bcbb44e819402a23fefea8
15,633
py
Python
cons3rt/models/user.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/user.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/user.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
""" Copyright 2020 Jackpine Technologies 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 ...
27.966011
382
0.602827
1,820
15,633
4.992857
0.112088
0.044899
0.074832
0.078574
0.443381
0.335864
0.307252
0.195994
0.103444
0.030923
0
0.018182
0.306915
15,633
558
383
28.016129
0.820489
0.319197
0
0.085714
0
0
0.09905
0.018237
0
0
0
0
0
1
0.163265
false
0
0.016327
0
0.289796
0.008163
0
0
0
null
0
0
0
0
0
0
0
0
0
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
69716928cf6a5af476069ffd69aec9842674f683
1,703
py
Python
Topics/6_Compute/files/lambda_keepsecret.py
nsvijay04b1/AWS_Certified_Solutions_Architect_Professional
f141b9a64b652ffa9496ff47d527e7eaf4df006d
[ "Apache-2.0" ]
1
2022-03-10T18:38:54.000Z
2022-03-10T18:38:54.000Z
Topics/6_Compute/files/lambda_keepsecret.py
nsvijay04b1/AWS_Certified_Solutions_Architect_Professional
f141b9a64b652ffa9496ff47d527e7eaf4df006d
[ "Apache-2.0" ]
null
null
null
Topics/6_Compute/files/lambda_keepsecret.py
nsvijay04b1/AWS_Certified_Solutions_Architect_Professional
f141b9a64b652ffa9496ff47d527e7eaf4df006d
[ "Apache-2.0" ]
1
2022-03-10T18:38:56.000Z
2022-03-10T18:38:56.000Z
from __future__ import print_function import json import boto3 print('Loading function') s3 = boto3.client('s3') bucket_of_interest = "secretcatpics" # For a PutObjectAcl API Event, gets the bucket and key name from the event # If the object is not private, then it makes the object private by making a # PutObjectA...
32.132075
84
0.704052
266
1,703
4.424812
0.296992
0.071368
0.040782
0.040782
0.279524
0.189465
0.143585
0.094308
0.094308
0
0
0.009279
0.177334
1,703
52
85
32.75
0.830835
0.354668
0
0.068966
0
0
0.247698
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.344828
0.206897
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15c53f273bb229773a9dd501a2ed7fb628ef13eb
399
py
Python
solutions/dog_muffin.py
attawesome/Computer-Vision-with-OpenCV
1198bfee8683f6b5c415e07e085fa528e00ecd0a
[ "MIT" ]
6
2020-04-30T21:46:13.000Z
2021-02-15T21:32:50.000Z
solutions/dog_muffin.py
attawesome/Computer-Vision-with-OpenCV
1198bfee8683f6b5c415e07e085fa528e00ecd0a
[ "MIT" ]
null
null
null
solutions/dog_muffin.py
attawesome/Computer-Vision-with-OpenCV
1198bfee8683f6b5c415e07e085fa528e00ecd0a
[ "MIT" ]
6
2020-04-27T17:59:50.000Z
2020-12-13T16:10:09.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt image = np.flip(cv2.imread('../img/dog_muffin.jpg'), axis=2) mask = np.zeros(image.shape[:2], dtype="uint8") cv2.rectangle(mask, (90, 120), (160, 190), 255, -1) masked = cv2.bitwise_and(image, image, mask=mask) plt.figure(figsize=(20, 10)) plt.imshow(np.fl...
30.692308
60
0.691729
67
399
4.089552
0.597015
0.043796
0
0
0
0
0
0
0
0
0
0.075419
0.102757
399
12
61
33.25
0.689944
0
0
0
0
0
0.095238
0.052632
0
0
0
0
0
1
0
false
0
0.3
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
15c8d860e73304bf40bd4b99e9d98b1c9921b456
2,676
py
Python
jetavator/schema_registry/VaultObject.py
jetavator/jetavator
6edc7b57532809f9903735c333544658631252b5
[ "Apache-2.0" ]
null
null
null
jetavator/schema_registry/VaultObject.py
jetavator/jetavator
6edc7b57532809f9903735c333544658631252b5
[ "Apache-2.0" ]
86
2020-04-11T18:03:32.000Z
2021-06-15T14:48:45.000Z
jetavator/schema_registry/VaultObject.py
jetavator/jetavator
6edc7b57532809f9903735c333544658631252b5
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import Any, Dict, List from abc import ABC, abstractmethod from datetime import datetime from collections import namedtuple from lazy_property import LazyProperty from .sqlalchemy_tables import ObjectDefinition import wysdom from jetavator.services import ComputeServ...
26.49505
72
0.65284
264
2,676
6.424242
0.318182
0.084906
0.070755
0.028302
0.03184
0.03184
0
0
0
0
0
0
0.2642
2,676
100
73
26.76
0.861351
0
0
0.093333
0
0
0.062079
0.017951
0
0
0
0
0
1
0.146667
false
0.013333
0.133333
0.093333
0.453333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15ced209f13f0b2a1de3e15ddd92542a87b54d79
29,172
py
Python
ginga/canvas/types/plots.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/canvas/types/plots.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/canvas/types/plots.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
# # plots.py -- classes for plots added to Ginga canvases. # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import sys import numpy as np from ginga.canvas.CanvasObject import (CanvasObjectBase, _color, register_canva...
35.189385
80
0.547614
4,021
29,172
3.828152
0.106441
0.007406
0.005457
0.005717
0.583902
0.526148
0.487429
0.444358
0.409277
0.381472
0
0.016214
0.350953
29,172
828
81
35.231884
0.796768
0.199095
0
0.479371
0
0
0.01986
0
0
0
0
0.002415
0.001965
1
0.10609
false
0.009823
0.013752
0.001965
0.165029
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d0460d3097f204a84b42c16fe07a92ea6eb177
8,305
py
Python
process_disqualified_directors_data.py
Global-Witness/uk-companies-house-parsers-public
e33a3a7791d6565638e2f3c0fd1233a909d983f2
[ "MIT" ]
2
2019-08-03T16:58:43.000Z
2022-01-23T16:57:52.000Z
process_disqualified_directors_data.py
Global-Witness/uk-companies-house-parsers-public
e33a3a7791d6565638e2f3c0fd1233a909d983f2
[ "MIT" ]
1
2019-06-18T10:10:20.000Z
2019-06-18T10:10:20.000Z
process_disqualified_directors_data.py
Global-Witness/uk-companies-house-parsers-public
e33a3a7791d6565638e2f3c0fd1233a909d983f2
[ "MIT" ]
1
2020-11-01T10:21:03.000Z
2020-11-01T10:21:03.000Z
import csv import os import sys from collections import defaultdict PERSONS_OUTPUT_FILENAME_TEMPLATE = "persons_data_%s.csv" DISQUALIFICATIONS_FILENAME_TEMPLATE = "disqualifications_data_%s.csv" EXEMPTIONS_FILENAME_TEMPLATE = 'exemptions_data_%s.csv' SNAPSHOT_HEADER_IDENTIFIER = "DISQUALS" TRAILER_RECORD_IDENTIFIER = ...
41.318408
162
0.706562
1,021
8,305
5.354554
0.164545
0.040424
0.026157
0.02634
0.462777
0.375526
0.313335
0.284068
0.252241
0.252241
0
0.02382
0.206382
8,305
201
163
41.318408
0.805644
0.007586
0
0.106742
0
0.005618
0.143811
0.021238
0
0
0
0
0
1
0.050562
false
0
0.022472
0
0.095506
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d05a5b381b6c77c32c1817ba56017e005be78f
2,875
py
Python
myPackage/tools.py
marcgonzmont/ML_Challenge
ed9767689064a941c2db7642fc499828d0ad1326
[ "CC0-1.0" ]
null
null
null
myPackage/tools.py
marcgonzmont/ML_Challenge
ed9767689064a941c2db7642fc499828d0ad1326
[ "CC0-1.0" ]
null
null
null
myPackage/tools.py
marcgonzmont/ML_Challenge
ed9767689064a941c2db7642fc499828d0ad1326
[ "CC0-1.0" ]
null
null
null
from os import makedirs, errno from os.path import exists, join import numpy as np from matplotlib import pyplot as plt import itertools from sklearn import preprocessing def makeDir(path): ''' To create output path if doesn't exist see: https://stackoverflow.com/questions/273192/how-can-i-create...
31.593407
102
0.619826
371
2,875
4.708895
0.425876
0.060103
0.01889
0.029765
0.059531
0.059531
0.043503
0
0
0
0
0.007583
0.266087
2,875
90
103
31.944444
0.820379
0.224
0
0
0
0
0.089932
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.222222
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
15d0b4957b2e9a69a93ba4e15d527f629984be60
9,802
py
Python
maskrcnn_benchmark/data/datasets/kitti.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
78
2020-03-02T12:00:57.000Z
2022-02-21T09:48:08.000Z
maskrcnn_benchmark/data/datasets/kitti.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
19
2020-03-02T12:07:18.000Z
2022-03-30T08:04:06.000Z
maskrcnn_benchmark/data/datasets/kitti.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
14
2020-06-14T03:29:47.000Z
2021-07-21T06:30:08.000Z
import os import torch import torch.utils.data from PIL import Image import sys import numpy as np if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: import xml.etree.ElementTree as ET from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.bound...
36.169742
89
0.576515
1,245
9,802
4.301205
0.160643
0.025397
0.039216
0.041083
0.302708
0.206162
0.133147
0.060878
0.060878
0.060878
0
0.012839
0.28484
9,802
270
90
36.303704
0.75107
0.005917
0
0.03653
0
0
0.079791
0
0
0
0
0
0.004566
1
0.041096
false
0
0.045662
0.009132
0.13242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d22cd4619c04c4fa2d8d4c420166060bc9ee2a
25,744
py
Python
escriptcore/py_src/faultsystems.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
escriptcore/py_src/faultsystems.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
escriptcore/py_src/faultsystems.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
37.803231
305
0.595284
3,880
25,744
3.862113
0.106186
0.015682
0.018018
0.010277
0.445245
0.389456
0.363764
0.335269
0.305706
0.292759
0
0.022846
0.26379
25,744
680
306
37.858824
0.767794
0.361793
0
0.338462
0
0
0.050321
0
0
0
0
0
0
1
0.066667
false
0
0.012821
0
0.164103
0.002564
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d2546aeaf271239203d19ad3ebcd6e67edaf83
9,680
py
Python
acs/acs/Core/FileParsingManager.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
null
null
null
acs/acs/Core/FileParsingManager.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
null
null
null
acs/acs/Core/FileParsingManager.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
null
null
null
""" :copyright: (c)Copyright 2013, Intel Corporation All Rights Reserved. The source code contained or described here in and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and lic...
36.946565
119
0.630785
1,135
9,680
5.171806
0.21674
0.048722
0.028109
0.022658
0.36184
0.273765
0.235945
0.207496
0.191141
0.16201
0
0.002343
0.294421
9,680
261
120
37.088123
0.857101
0.335537
0
0.262712
0
0
0.05807
0
0
0
0
0
0
1
0.09322
false
0
0.050847
0
0.228814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d53e64696bdcd31c356310ca351fd13adec82e
2,256
py
Python
Chapter 16/excel_to_csv.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
4
2021-06-14T10:37:58.000Z
2021-12-30T17:49:17.000Z
Chapter 16/excel_to_csv.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
null
null
null
Chapter 16/excel_to_csv.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
1
2021-07-29T15:26:54.000Z
2021-07-29T15:26:54.000Z
''' Austin Richards 4/14/21 excel_to_csv.py automates the conversion of many xlsx files into csv files. This program names the csv file in the format <filename>_<sheetname>.csv ''' import logging import os, csv, openpyxl from pathlib import Path from openpyxl.utils import get_column_letter logging.basicConfig(level=...
35.25
98
0.649379
318
2,256
4.424528
0.339623
0.028429
0.021322
0.028429
0.027008
0.027008
0
0
0
0
0
0.006579
0.258865
2,256
64
99
35.25
0.834928
0.223404
0
0
0
0
0.092281
0.019153
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.189189
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15d571532daed68e7ee3f7aca094467594fa8bdd
2,041
py
Python
kg/diff/templates/real_abs_rel_template.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
6
2019-11-30T17:03:13.000Z
2021-09-30T05:08:31.000Z
kg/diff/templates/real_abs_rel_template.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
1
2020-01-20T12:13:03.000Z
2020-01-20T12:13:03.000Z
kg/diff/templates/real_abs_rel_template.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
null
null
null
# Checks for an XXX error ### @replace "XXX", ('absolute/relative' if has_rel else 'absolute') # with an error of at most 1e-XXX ### @replace "XXX", prec # Don't edit this file. Edit real_abs_rel_template.py instead, and then run _real_check_gen.py # Oh, actually, you're editing the correct file. Go on. ...
52.333333
123
0.588437
283
2,041
4.134276
0.45583
0.034188
0.020513
0.030769
0.129915
0.129915
0.092308
0.092308
0.092308
0.092308
0
0.019555
0.273395
2,041
38
124
53.710526
0.769386
0.353748
0
0
0
0
0.223612
0
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.137931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15d5daf61123ba5cf4f2cb454d6eaf622ef68705
1,099
py
Python
osspeak/recognition/actions/library/process.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
1
2020-03-17T10:24:41.000Z
2020-03-17T10:24:41.000Z
osspeak/recognition/actions/library/process.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
12
2016-09-28T05:16:00.000Z
2020-11-27T22:32:40.000Z
osspeak/recognition/actions/library/process.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
null
null
null
import time import os import subprocess import threading class ProcessHandler: def __init__(self, *args, on_output=None): self.process = subprocess.Popen(args, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) self.on_output = on_output self.sta...
28.179487
78
0.626934
138
1,099
4.862319
0.427536
0.04769
0.035768
0
0
0
0
0
0
0
0
0.002481
0.266606
1,099
39
79
28.179487
0.830025
0
0
0
0
0
0.037273
0
0
0
0
0
0
1
0.1875
false
0
0.125
0.03125
0.40625
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15d6695d5c93e5916f4ed45db19a2876ea82e9ee
977
py
Python
setup.py
haaspt/whatsnew
0524ad2b6132593282946073f2d647ea0ce960e8
[ "MIT" ]
2
2015-09-02T21:14:26.000Z
2015-09-02T22:23:04.000Z
setup.py
haaspt/whatsnew
0524ad2b6132593282946073f2d647ea0ce960e8
[ "MIT" ]
2
2018-01-02T00:54:49.000Z
2018-01-02T00:56:01.000Z
setup.py
haaspt/whatsnew
0524ad2b6132593282946073f2d647ea0ce960e8
[ "MIT" ]
null
null
null
import os from setuptools import setup readme = open('README.md').read() requirements = ['click', 'feedparser', 'beautifulsoup4'] setup( name = "whatsnew", version = "0.13", author = "Patrick Tyler Haas", author_email = "patrick.tyler.haas@gmail.com", description = ("A lightweight, convenient too...
29.606061
125
0.602866
102
977
5.72549
0.784314
0.041096
0.054795
0
0
0
0
0
0
0
0
0.009615
0.254862
977
32
126
30.53125
0.792582
0
0
0.068966
0
0.034483
0.47697
0.028659
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15da0373b1191b0c411cc06fa6774cfb3700fb3a
2,880
py
Python
Flask-Server/timeswitch/server.py
weichweich/pi-timeswitch
c4428783fbf8b2294f7a6f55c312beeabae94d6f
[ "MIT" ]
4
2015-10-12T19:13:22.000Z
2018-07-18T17:55:48.000Z
Flask-Server/timeswitch/server.py
weichweich/pi-timeswitch
c4428783fbf8b2294f7a6f55c312beeabae94d6f
[ "MIT" ]
null
null
null
Flask-Server/timeswitch/server.py
weichweich/pi-timeswitch
c4428783fbf8b2294f7a6f55c312beeabae94d6f
[ "MIT" ]
2
2017-04-25T16:19:09.000Z
2022-01-24T08:15:12.000Z
import argparse import logging import sys from timeswitch.switch.manager import SwitchManager from timeswitch.app import setup_app from timeswitch.api import setup_api from timeswitch.model import setup_model # ###################################### # # parsing commandline args # #####################################...
32
94
0.601389
329
2,880
5.118541
0.386018
0.033254
0.050475
0.033848
0.099762
0.099762
0.065321
0.065321
0.065321
0.065321
0
0.002291
0.242361
2,880
89
95
32.359551
0.769478
0.100347
0
0.071429
0
0
0.162196
0.015683
0
0
0
0
0
1
0.071429
false
0
0.125
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15db2920ca4b3d1d42695dca0b6816fa94b0f30d
12,055
py
Python
utils/videoloader.py
mie-lab/traffic4cast
aea6f90e8884c01689c84255c99e96d2b58dc470
[ "Apache-2.0" ]
8
2020-07-26T20:54:58.000Z
2022-03-01T14:36:13.000Z
utils/videoloader.py
mie-lab/traffic4cast
aea6f90e8884c01689c84255c99e96d2b58dc470
[ "Apache-2.0" ]
null
null
null
utils/videoloader.py
mie-lab/traffic4cast
aea6f90e8884c01689c84255c99e96d2b58dc470
[ "Apache-2.0" ]
5
2019-11-05T09:46:01.000Z
2021-01-24T04:42:53.000Z
import sys, os, time from pathlib import Path import pickle import datetime as dt import glob import h5py import numpy as np from matplotlib import pyplot as plt from multiprocessing import Pool from functools import partial import torch from torchvision import datasets, transforms def subsample(x, n=0, m=200): ...
34.942029
132
0.555454
1,436
12,055
4.443593
0.194986
0.03291
0.026328
0.017866
0.226297
0.156872
0.118163
0.105313
0.071149
0.058925
0
0.018006
0.355039
12,055
345
133
34.942029
0.801929
0.233513
0
0.181818
0
0
0.022516
0
0
0
0
0
0
1
0.032086
false
0.005348
0.064171
0.005348
0.139037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15de738d2ebcbbe25e92a2d8f2d43e4cb6af3d82
1,760
py
Python
pychunkedgraph/ingest/ingestion_utils.py
perlman/PyChunkedGraph
2c582f46a8292010e8f9f54c94c63af0b172bdad
[ "MIT" ]
null
null
null
pychunkedgraph/ingest/ingestion_utils.py
perlman/PyChunkedGraph
2c582f46a8292010e8f9f54c94c63af0b172bdad
[ "MIT" ]
null
null
null
pychunkedgraph/ingest/ingestion_utils.py
perlman/PyChunkedGraph
2c582f46a8292010e8f9f54c94c63af0b172bdad
[ "MIT" ]
null
null
null
import numpy as np from pychunkedgraph.backend import chunkedgraph, chunkedgraph_utils import cloudvolume def initialize_chunkedgraph(cg_table_id, ws_cv_path, chunk_size, cg_mesh_dir, fan_out=2, instance_id=None, project_id=None): """ Initalizes a chunkedgraph on BigTable :param ...
30.877193
84
0.64375
251
1,760
4.25498
0.318725
0.067416
0.029963
0.02809
0.031835
0
0
0
0
0
0
0.011416
0.253409
1,760
56
85
31.428571
0.80137
0.289205
0
0
0
0
0.084041
0
0
0
0
0
0
1
0.04
false
0
0.12
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
15dec2f55095e3b6ec802c41f0cedadb58146312
2,691
py
Python
brew_gui.py
mburgess00/brew_controller
913e3b37b9421759db5186e5f0e44cf8f4fd7f6a
[ "Apache-2.0" ]
null
null
null
brew_gui.py
mburgess00/brew_controller
913e3b37b9421759db5186e5f0e44cf8f4fd7f6a
[ "Apache-2.0" ]
null
null
null
brew_gui.py
mburgess00/brew_controller
913e3b37b9421759db5186e5f0e44cf8f4fd7f6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from guizero import App, Text, Slider, Combo, PushButton, Box, Picture pause = True def readsensors(): return {"hlt" : 160, "rims" : 152, "bk" : 75} def handlepause(): global pause global pauseState print("Pause Button pressed") if pause: print("running") pa...
37.901408
91
0.670011
393
2,691
4.577608
0.264631
0.061145
0.048916
0.043357
0.414675
0.307949
0.193997
0.114508
0.114508
0.047804
0
0.047783
0.136752
2,691
70
92
38.442857
0.726647
0.007804
0
0.135593
0
0
0.107156
0
0
0
0
0
0
1
0.033898
false
0
0.016949
0.016949
0.084746
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15e018d003308b6e32514ff4f0cb219f8f099c3b
2,498
py
Python
tests/integration/test_integration.py
nuvolos-cloud/resolos
0918066cab7b11ef04ae005f3e052b14a65ded68
[ "MIT" ]
1
2021-11-30T06:47:24.000Z
2021-11-30T06:47:24.000Z
tests/integration/test_integration.py
nuvolos-cloud/resolos
0918066cab7b11ef04ae005f3e052b14a65ded68
[ "MIT" ]
1
2021-04-08T12:56:39.000Z
2021-04-08T12:56:39.000Z
tests/integration/test_integration.py
nuvolos-cloud/resolos
0918066cab7b11ef04ae005f3e052b14a65ded68
[ "MIT" ]
null
null
null
from click.testing import CliRunner from resolos.interface import ( res_remote_add, res_remote_remove, res_init, res_sync, res ) from resolos.remote import read_remote_db, list_remote_ids, delete_remote from tests.common import verify_result import logging from pathlib import Path import os log...
43.068966
219
0.601281
308
2,498
4.681818
0.331169
0.066574
0.09154
0.116505
0.222607
0.203884
0.195562
0.144244
0.117198
0.085992
0
0.002158
0.257806
2,498
58
220
43.068966
0.77562
0.034027
0
0.081633
0
0
0.234635
0.030316
0
0
0
0
0.081633
1
0.020408
false
0.020408
0.142857
0
0.204082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15e034a0325db7cea2ebf82178c6ea8ad80d5cda
946
py
Python
test/test_add_group.py
romanovaes/python_training
5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e
[ "Apache-2.0" ]
null
null
null
test/test_add_group.py
romanovaes/python_training
5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e
[ "Apache-2.0" ]
null
null
null
test/test_add_group.py
romanovaes/python_training
5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from builtins import * from model.group import Group import pytest import allure #@pytest.mark.parametrize("group", testdata, ids=[repr(x) for x in testdata]) @allure.step('test_add_group') def test_add_group(app, db, json_groups, check_ui): group=json_groups #with pytest.allu...
35.037037
153
0.689218
151
946
4.112583
0.364238
0.072464
0.064412
0.077295
0.21095
0.125604
0.125604
0
0
0
0
0.001305
0.190275
946
26
154
36.384615
0.809399
0.32241
0
0
0
0
0.022187
0
0
0
0
0
0.142857
1
0.071429
false
0
0.285714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15e3d38045eea34ae5ee1b0e2ce54a0a8b72223a
3,988
py
Python
test/test_docx_context.py
ieric2/docx2python
4a1266811f9bd71f5eea5e0d458a391fd9eb4f73
[ "MIT" ]
52
2019-07-08T19:37:45.000Z
2022-03-30T11:36:08.000Z
test/test_docx_context.py
ieric2/docx2python
4a1266811f9bd71f5eea5e0d458a391fd9eb4f73
[ "MIT" ]
29
2019-08-29T09:48:24.000Z
2022-03-13T13:58:58.000Z
test/test_docx_context.py
ieric2/docx2python
4a1266811f9bd71f5eea5e0d458a391fd9eb4f73
[ "MIT" ]
23
2019-08-29T11:33:13.000Z
2022-03-03T17:22:35.000Z
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """Test docx2python.docx_context.py author: Shay Hill created: 6/26/2019 """ import os import shutil import zipfile from collections import defaultdict from typing import Any, Dict import pytest from docx2python.docx_context import ( collect_docProps, collect_nu...
33.79661
87
0.658977
476
3,988
5.388655
0.327731
0.060039
0.05614
0.084211
0.363743
0.355166
0.284211
0.284211
0.284211
0.284211
0
0.010407
0.228937
3,988
117
88
34.08547
0.82374
0.243731
0
0.287879
0
0
0.195848
0.081661
0
0
0
0
0.166667
1
0.136364
false
0
0.106061
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15e42de122c93447226408dd404b3ccbe892d9e6
1,022
py
Python
src/transporters/approximator/transporter.py
mucharafal/optics_generator_python
c14d4e5f19f921f4dc0a98129bca9d31754b72ad
[ "MIT" ]
null
null
null
src/transporters/approximator/transporter.py
mucharafal/optics_generator_python
c14d4e5f19f921f4dc0a98129bca9d31754b72ad
[ "MIT" ]
null
null
null
src/transporters/approximator/transporter.py
mucharafal/optics_generator_python
c14d4e5f19f921f4dc0a98129bca9d31754b72ad
[ "MIT" ]
null
null
null
import transporters.approximator.runner as ra from data.parameters_names import ParametersNames as Parameters def transport(approximator, particles): """matrix in format returned by data.particles_generator functions""" segments = dict() segments["start"] = particles matrix_for_transporter = partic...
28.388889
113
0.683953
106
1,022
6.386792
0.415094
0.088626
0.088626
0
0
0
0
0
0
0
0
0.006418
0.237769
1,022
35
114
29.2
0.862644
0.061644
0
0
0
0
0.008395
0
0
0
0
0
0
1
0.173913
false
0
0.086957
0.043478
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
15f39d0f421f2c653443422d6ac14afb93981bf5
5,264
py
Python
app/projects/tests/test_portfolio_api.py
nestor-san/cooperation-fit
1a922233345698970c7e18e6213ad0320de70cce
[ "MIT" ]
null
null
null
app/projects/tests/test_portfolio_api.py
nestor-san/cooperation-fit
1a922233345698970c7e18e6213ad0320de70cce
[ "MIT" ]
null
null
null
app/projects/tests/test_portfolio_api.py
nestor-san/cooperation-fit
1a922233345698970c7e18e6213ad0320de70cce
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import PortfolioItem from projects.serializers import PortfolioItemSerializer PORTFOLIO_URL = reverse('project...
38.992593
78
0.644187
606
5,264
5.412541
0.181518
0.13872
0.051829
0.05122
0.629268
0.590854
0.553659
0.506707
0.486585
0.43872
0
0.007912
0.255699
5,264
134
79
39.283582
0.82925
0.101634
0
0.56383
0
0
0.084956
0.011984
0
0
0
0
0.138298
1
0.117021
false
0.042553
0.074468
0
0.223404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15f6ebf3d219ce6b1cd4eb680d9639aa61bcb259
369
py
Python
test.py
liyao001/EVBUS
8730ce6b062bc31df27506a06723dee3b5ab511a
[ "Apache-2.0" ]
null
null
null
test.py
liyao001/EVBUS
8730ce6b062bc31df27506a06723dee3b5ab511a
[ "Apache-2.0" ]
null
null
null
test.py
liyao001/EVBUS
8730ce6b062bc31df27506a06723dee3b5ab511a
[ "Apache-2.0" ]
null
null
null
from EVBUS import EVBUS from sklearn.datasets import load_boston import sklearn.model_selection as xval boston = load_boston() Y = boston.data[:, 12] X = boston.data[:, 0:12] bos_X_train, bos_X_test, bos_y_train, bos_y_test = xval.train_test_split(X, Y, test_size=0.3) evbus = EVBUS.varU(bos_X_train, bos_y_train, bos_...
26.357143
93
0.772358
68
369
3.882353
0.397059
0.060606
0.068182
0.090909
0
0
0
0
0
0
0
0.021472
0.116531
369
13
94
28.384615
0.788344
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15f98430ae44305a9e31a13aeb782706e3a1fd29
2,141
py
Python
aws/olympic-api/olympic/app.py
kevinle-1/olympic-api
c341328eb9c4ce26fcd08199abf1fb996deebbbf
[ "MIT" ]
4
2021-07-29T06:29:33.000Z
2021-08-31T22:38:21.000Z
aws/olympic-api/olympic/app.py
kevinle-1/olympic-api
c341328eb9c4ce26fcd08199abf1fb996deebbbf
[ "MIT" ]
null
null
null
aws/olympic-api/olympic/app.py
kevinle-1/olympic-api
c341328eb9c4ce26fcd08199abf1fb996deebbbf
[ "MIT" ]
2
2021-07-25T08:51:52.000Z
2021-07-25T18:06:24.000Z
import json import requests from bs4 import BeautifulSoup PAGE_URL = 'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/medal-standings.htm' def get_table(html=None): if not html: html = requests.get(PAGE_URL).content site = BeautifulSoup(html, 'html.parser') table = site.find('table', ...
30.15493
225
0.601588
250
2,141
5.076
0.432
0.061466
0.085106
0.039401
0.066194
0.066194
0.066194
0
0
0
0
0.015442
0.243811
2,141
70
226
30.585714
0.768376
0.026623
0
0.072727
0
0.036364
0.294712
0.135577
0
0
0
0
0
1
0.090909
false
0
0.054545
0
0.254545
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15fb00a29a6af7f533e2efe7c7832130560820ef
5,348
py
Python
crawlers/core/thread_types.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
1
2017-10-04T12:21:20.000Z
2017-10-04T12:21:20.000Z
crawlers/core/thread_types.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
crawlers/core/thread_types.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
import queue import json import logging import threading from crawlers.core.flags import FLAGS class BaseThread(threading.Thread): def __init__(self, name: str, worker, pool): threading.Thread.__init__(self, name=name) self._worker = worker # can be a Fetcher/Parser/Saver instance self...
35.184211
130
0.583209
665
5,348
4.454135
0.237594
0.050641
0.070898
0.032073
0.411884
0.341999
0.259284
0.229575
0.139095
0.139095
0
0.003572
0.319559
5,348
151
131
35.417219
0.810387
0.227188
0
0.318182
0
0.011364
0.053785
0.034612
0
0
0
0
0
1
0.102273
false
0.011364
0.068182
0.011364
0.261364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15fb6a076074eb470434200bde6610f2e5b3ecae
1,848
py
Python
develop/tools/import-prep.py
Gautamverma66/pycon
1ca95727619dbbe82483227e0964402b433131ee
[ "BSD-3-Clause" ]
null
null
null
develop/tools/import-prep.py
Gautamverma66/pycon
1ca95727619dbbe82483227e0964402b433131ee
[ "BSD-3-Clause" ]
null
null
null
develop/tools/import-prep.py
Gautamverma66/pycon
1ca95727619dbbe82483227e0964402b433131ee
[ "BSD-3-Clause" ]
1
2020-09-30T18:09:16.000Z
2020-09-30T18:09:16.000Z
#!/usr/bin/env python2.7 # # Take various CSV inputs and produce a read-to-import conference schedule. import pandas as pd from datetime import date def main(): dfs = [] t = pd.read_csv('talks.csv') t['kind_slug'] = 'talk' t['proposal_id'] = t.pop('proposal') t['day'] = date(2016, 5, 30) + pd.t...
28.875
75
0.566017
272
1,848
3.724265
0.3125
0.017769
0.062192
0.039487
0.395854
0.381046
0.329714
0.329714
0.329714
0.329714
0
0.011371
0.191017
1,848
63
76
29.333333
0.666221
0.169372
0
0.277778
0
0
0.309758
0.018337
0
0
0
0
0
1
0.027778
false
0
0.055556
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15fdf4924a3b098bc325a7b35edf84b4ae175290
997
py
Python
utilities/resize_images.py
bmhopkinson/Marsh_Ann
7d1baaa444392622967dd1ed12f9c7a23c5fb018
[ "MIT" ]
null
null
null
utilities/resize_images.py
bmhopkinson/Marsh_Ann
7d1baaa444392622967dd1ed12f9c7a23c5fb018
[ "MIT" ]
null
null
null
utilities/resize_images.py
bmhopkinson/Marsh_Ann
7d1baaa444392622967dd1ed12f9c7a23c5fb018
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import re path_regex = re.compile('^.+?/(.*)') def resize_image(im, factor): row, col, chan = im.shape col_re = np.rint(col*factor).astype(int) row_re = np.rint(row*factor).astype(int) im = cv2.resize(im, (col_re, row_re)) #resize patch return im imdir = ...
27.694444
64
0.636911
148
997
4.121622
0.432432
0.04918
0.04918
0
0
0
0
0
0
0
0
0.023438
0.229689
997
35
65
28.485714
0.770833
0.012036
0
0
0
0
0.077236
0.036585
0
0
0
0
0
1
0.035714
false
0
0.142857
0
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15fe4d22550f5d656a8766cbb160d9cad971c027
5,133
py
Python
load.py
OdysseyScorpio/FactionGist
a3af4b52557890cb9c2cad20a740545917db7ec4
[ "MIT" ]
3
2019-10-17T08:28:55.000Z
2020-06-02T15:43:32.000Z
load.py
OdysseyScorpio/FactionGist
a3af4b52557890cb9c2cad20a740545917db7ec4
[ "MIT" ]
11
2019-10-17T08:32:09.000Z
2019-10-21T07:14:13.000Z
load.py
OdysseyScorpio/FactionGist
a3af4b52557890cb9c2cad20a740545917db7ec4
[ "MIT" ]
3
2019-10-17T08:33:51.000Z
2021-07-05T18:05:38.000Z
import sys import os import ttk import Tkinter as tk import tkMessageBox from ttkHyperlinkLabel import HyperlinkLabel from config import applongname, appversion import myNotebook as nb import json import requests import zlib import re import webbrowser this = sys.modules[__name__] this.apiURL = "http://factiongist.her...
36.147887
130
0.653029
607
5,133
5.413509
0.352554
0.018259
0.024346
0.028911
0.258065
0.21759
0.21759
0.176506
0.176506
0.165855
0
0.0091
0.229301
5,133
141
131
36.404255
0.821537
0.008767
0
0.142857
0
0
0.181943
0.007671
0
0
0
0
0
1
0.07563
false
0
0.109244
0
0.210084
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
15ff229d57bd444a73d08386dd948e890ca375a0
12,542
py
Python
hexa/plugins/connector_s3/models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
hexa/plugins/connector_s3/models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
hexa/plugins/connector_s3/models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
import os from logging import getLogger from django.core.exceptions import ValidationError from django.db import models, transaction from django.template.defaultfilters import filesizeformat, pluralize from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy a...
32.492228
112
0.603253
1,391
12,542
5.265996
0.196262
0.020478
0.022116
0.029488
0.264164
0.22116
0.199317
0.148805
0.102116
0.089829
0
0.007787
0.303779
12,542
385
113
32.576623
0.831081
0.060676
0
0.2443
0
0
0.062048
0.010639
0
0
0
0.002597
0
1
0.104235
false
0
0.045603
0.045603
0.384365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60143a70f259a4e959098d87fdd7674fa7e33dc
1,618
py
Python
vi/vi/csp/backtrack_search.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
vi/vi/csp/backtrack_search.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
vi/vi/csp/backtrack_search.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
import vi.csp import collections import operator BacktrackStatistics = collections.namedtuple( 'BacktrackStatistics', ['calls', 'failures']) def backtrack_search(network): statistics = BacktrackStatistics(calls=0, failures=0) # Ensure arc consistency before making any assumptions: return backtrack(vi...
32.36
77
0.644623
158
1,618
6.512658
0.329114
0.066084
0.029155
0.029155
0.101069
0.050535
0.050535
0.050535
0
0
0
0.007614
0.269468
1,618
49
78
33.020408
0.862944
0.057478
0
0
0
0
0.021025
0
0
0
0
0
0
1
0.121212
false
0
0.090909
0.060606
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c601aedeadeb98d2c741f809b0374722d418f823
1,377
py
Python
k_means.py
lgq9220/easy12306
e31abd1c7675e2acb37f4653ab88cae49d2317cc
[ "Artistic-2.0" ]
null
null
null
k_means.py
lgq9220/easy12306
e31abd1c7675e2acb37f4653ab88cae49d2317cc
[ "Artistic-2.0" ]
null
null
null
k_means.py
lgq9220/easy12306
e31abd1c7675e2acb37f4653ab88cae49d2317cc
[ "Artistic-2.0" ]
null
null
null
#! env python # coding: utf-8 # 功能:对文字部分使用k-means算法进行聚类 import os import time import sys import cv2 from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.externals import joblib def get_img_as_vector(fn): im = cv2.imread(fn) im = im[:, :, 0] retval, dst = cv2.threshold(im,...
27.54
71
0.647785
205
1,377
4.204878
0.473171
0.058005
0.087007
0.032483
0.064965
0.064965
0.064965
0.064965
0
0
0
0.023466
0.195352
1,377
49
72
28.102041
0.754513
0.052288
0
0.054054
0
0
0.115562
0
0
0
0
0
0
1
0.054054
false
0
0.189189
0
0.27027
0.243243
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60244641d848895dbb47d903f04c522a8e5355d
14,735
py
Python
datasets/blender_efficient_sm.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
datasets/blender_efficient_sm.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
datasets/blender_efficient_sm.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset import json import numpy as np import os from PIL import Image, ImageFilter from torchvision import transforms as T from models.camera import Camera from tqdm import tqdm from .ray_utils import * class BlenderEfficientShadows(Dataset): def __init__(self, root_dir,...
44.651515
120
0.498812
1,852
14,735
3.805076
0.13067
0.048673
0.024975
0.018731
0.561799
0.490563
0.467149
0.438059
0.409394
0.406556
0
0.021092
0.350051
14,735
330
121
44.651515
0.714733
0.19905
0
0.382075
0
0.009434
0.100252
0.023977
0
0
0
0
0.004717
1
0.023585
false
0
0.04717
0
0.09434
0.080189
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60337a0cc834ad033d09738b410868a1fcb6ef6
625
py
Python
python_submission/5.longest-palindromic-substring.197920566.notac.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python_submission/5.longest-palindromic-substring.197920566.notac.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python_submission/5.longest-palindromic-substring.197920566.notac.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
class Solution(object): def longestPalindrome(self, s): """ :type s: str :rtype: str """ if len(s) == 1: return s start = 0 end = len(s) maxlength = 0 longest = "" while(start < len(s)): substring = s[start:end] ...
26.041667
75
0.4192
60
625
4.366667
0.383333
0.061069
0.053435
0
0
0
0
0
0
0
0
0.018293
0.4752
625
23
76
27.173913
0.780488
0.0384
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
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
c6074a650ad47398b9b59002465392e2c249c2e3
14,325
py
Python
data-preprocess/ice-vision-data-merger-pipeline.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
4
2020-03-13T00:12:44.000Z
2021-06-25T07:54:17.000Z
data-preprocess/ice-vision-data-merger-pipeline.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
4
2020-03-13T00:24:15.000Z
2022-03-12T00:19:03.000Z
data-preprocess/ice-vision-data-merger-pipeline.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
1
2021-03-07T06:24:08.000Z
2021-03-07T06:24:08.000Z
#!/usr/bin/env python # coding: utf-8 # In[93]: import os from shutil import copyfile import json print("cwd = ", os.getcwd()) current_folder = os.getcwd() #extracted_train_data = os.path.join(current_folder, "extracted_train_data") extracted_train_data = "/dataset/training/" #annotations_dir = '/data/annotations'...
35.02445
194
0.585829
1,859
14,325
4.243141
0.152232
0.031947
0.021552
0.016227
0.36676
0.29285
0.240365
0.208418
0.204868
0.177485
0
0.031364
0.269948
14,325
408
195
35.110294
0.722892
0.281396
0
0.207921
0
0
0.117788
0.064564
0
0
0
0
0
1
0.004951
false
0
0.069307
0
0.074257
0.084158
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c609dcc818d4247b3e931541707e6e65fd9fc433
1,683
py
Python
osu/graph_metadata.py
brandondong/osu-beatmap-generator
7ca14793ef6a48a65cfd1a564f3b24d940a6051a
[ "MIT" ]
null
null
null
osu/graph_metadata.py
brandondong/osu-beatmap-generator
7ca14793ef6a48a65cfd1a564f3b24d940a6051a
[ "MIT" ]
1
2021-06-01T23:50:59.000Z
2021-06-01T23:50:59.000Z
osu/graph_metadata.py
brandondong/osu-beatmap-generator
7ca14793ef6a48a65cfd1a564f3b24d940a6051a
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np from models import models_util DIFFICULTY_LABEL = "Star Difficulty" BPM_LABEL = "BPM" LENGTH_LABEL = "Length" CS_LABEL = "Circle Size" DRAIN_LABEL = "HP Drain" ACCURACY_LABEL = "Accuracy" AR_LABEL = "Approach Rate" SAVE_FOLDER = "visualization/" def prin...
28.525424
103
0.734403
263
1,683
4.494297
0.387833
0.043993
0.064298
0.084602
0.07868
0
0
0
0
0
0
0.005431
0.124777
1,683
59
104
28.525424
0.797013
0.115865
0
0
0
0
0.160269
0.024242
0
0
0
0
0
1
0.022727
false
0
0.090909
0
0.113636
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60bdc534000a18e4fc655a5cff50a94af3d4302
2,077
py
Python
ADE/train.py
BinahHu/ADE-Longtail
4aabf1cbf50746e610b91362c40cbcb7884dd170
[ "Apache-2.0" ]
null
null
null
ADE/train.py
BinahHu/ADE-Longtail
4aabf1cbf50746e610b91362c40cbcb7884dd170
[ "Apache-2.0" ]
null
null
null
ADE/train.py
BinahHu/ADE-Longtail
4aabf1cbf50746e610b91362c40cbcb7884dd170
[ "Apache-2.0" ]
null
null
null
# import some common libraries # import some common detectron2 utilities from detectron2.config import get_cfg from detectron2.data import ( build_detection_test_loader, build_detection_train_loader, ) from detectron2.engine import default_argument_parser, default_setup, launch, DefaultTrainer # import ADE ...
26.628205
107
0.703418
269
2,077
5.159851
0.390335
0.040346
0.041066
0.054035
0
0
0
0
0
0
0
0.003081
0.218585
2,077
77
108
26.974026
0.852126
0.168031
0
0
0
0
0.01603
0
0
0
0
0
0
1
0.083333
false
0
0.1875
0
0.354167
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60dde17e3e2f4dd2320cb3a7f244103bed46b66
2,411
py
Python
src/messages.py
Colk-tech/gcpdiscord
b2a43dca8db5a17e6e72f36c7e895db19b836067
[ "MIT" ]
4
2020-12-31T09:41:09.000Z
2022-02-20T14:13:41.000Z
src/messages.py
Colk-tech/gcpdiscord
b2a43dca8db5a17e6e72f36c7e895db19b836067
[ "MIT" ]
3
2020-12-28T18:19:44.000Z
2021-01-03T14:51:59.000Z
src/messages.py
Colk-tech/gcpdiscord
b2a43dca8db5a17e6e72f36c7e895db19b836067
[ "MIT" ]
2
2020-12-31T05:42:57.000Z
2022-03-24T07:54:25.000Z
PERMISSION_DENIED_MESSAGE: str = "***PERMISSION DENIED!*** \n" \ "You are not permitted to use this command. \n" \ "Please contact to your server master. \n." ERROR_OCCURRED_MESSAGE: str = "***ERROR OCCURRED!*** \n" \ "Error has occu...
70.911765
109
0.517628
256
2,411
4.792969
0.34375
0.061125
0.05868
0.03423
0.193969
0.145069
0.112469
0.06357
0
0
0
0.004172
0.403567
2,411
33
110
73.060606
0.849096
0
0
0
0
0
0.542099
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c60e59d24506527b02637849c4f5442ee5efa5c7
4,035
py
Python
util/SR2SC.py
lorteddie/dcmqi
4f668745f4f8b2a67e6dcfdee187ac7793e07116
[ "BSD-3-Clause" ]
null
null
null
util/SR2SC.py
lorteddie/dcmqi
4f668745f4f8b2a67e6dcfdee187ac7793e07116
[ "BSD-3-Clause" ]
null
null
null
util/SR2SC.py
lorteddie/dcmqi
4f668745f4f8b2a67e6dcfdee187ac7793e07116
[ "BSD-3-Clause" ]
null
null
null
from pydicom.sr import _snomed_dict import os import re import pydicom.sr._snomed_dict folder = "E:\\work\\QIICR\\dcmqi" Out_Folder = "E:\\work\\QIICR\\renamed_dcmqi" def recursive_file_find(address, regexp): filelist = os.listdir(address) approvedlist=[] for filename in filelist: fullpath = os.p...
32.28
95
0.603965
512
4,035
4.576172
0.242188
0.058045
0.023047
0.03201
0.172002
0.113103
0.065301
0.065301
0.065301
0.065301
0
0.006061
0.223048
4,035
124
96
32.540323
0.741308
0.033953
0
0.108911
0
0
0.092683
0.031836
0
0
0
0
0
1
0.069307
false
0
0.039604
0
0.168317
0.069307
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60ef77ba35cbe6b2d5368873bee63645c0514b7
9,417
py
Python
disentanglement_lib/visualize/visualize_util.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/visualize/visualize_util.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/visualize/visualize_util.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The DisentanglementLib Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
34.119565
84
0.653818
1,387
9,417
4.284066
0.240808
0.018176
0.015315
0.014137
0.143554
0.106698
0.099461
0.07001
0.07001
0.056547
0
0.021859
0.232452
9,417
275
85
34.243636
0.800221
0.207922
0
0.063584
0
0
0.012598
0.003149
0
0
0
0
0.00578
1
0.109827
false
0
0.075145
0.00578
0.289017
0.011561
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60efc48bff6adf1e39c4b9e35874cde0aa11abd
6,515
py
Python
Lab/Lab5/lab5_group12_server.py
Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS
09111380e5ad36663e90de5bcd22691619c9a2f1
[ "Apache-2.0" ]
1
2020-03-04T21:51:42.000Z
2020-03-04T21:51:42.000Z
Lab/Lab5/lab5_group12_server.py
Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS
09111380e5ad36663e90de5bcd22691619c9a2f1
[ "Apache-2.0" ]
null
null
null
Lab/Lab5/lab5_group12_server.py
Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS
09111380e5ad36663e90de5bcd22691619c9a2f1
[ "Apache-2.0" ]
null
null
null
# Created by Chenye Yang, Haokai Zhao, Zhuoyue Xing on 2019/10/13. # Copyright © 2019 Chenye Yang, Haokai Zhao, Zhuoyue Xing . All rights reserved. from machine import Pin, I2C, RTC, Timer import socket import ssd1306 import time import network import urequests import json # ESP8266 connects to a router def ConnectWIF...
35.601093
132
0.701765
1,024
6,515
4.383789
0.282227
0.021386
0.032078
0.018935
0.214079
0.203386
0.175763
0.160615
0.145912
0.129873
0
0.039351
0.176976
6,515
183
133
35.601093
0.79765
0.407982
0
0.31746
0
0
0.208344
0.005809
0.015873
0
0
0
0
1
0.055556
false
0.007937
0.063492
0
0.119048
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c60fff305331c5af7ece82691a51268226e5c661
453
py
Python
cord19/scripts/metadata/prefixes.py
udel-cbcb/covid19kg_rdf
3cd8dd6c4654333777db6127f2a3f2e01b92b0ac
[ "CC-BY-4.0" ]
null
null
null
cord19/scripts/metadata/prefixes.py
udel-cbcb/covid19kg_rdf
3cd8dd6c4654333777db6127f2a3f2e01b92b0ac
[ "CC-BY-4.0" ]
null
null
null
cord19/scripts/metadata/prefixes.py
udel-cbcb/covid19kg_rdf
3cd8dd6c4654333777db6127f2a3f2e01b92b0ac
[ "CC-BY-4.0" ]
null
null
null
from rdflib import Namespace, XSD from rdflib.namespace import DC, DCTERMS FHIRCAT_CORD = Namespace("http://fhircat.org/cord-19/") SSO = Namespace("http://semanticscholar.org/cv-research/") DOI = Namespace("https://doi.org/") PUBMED = Namespace("https://www.ncbi.nlm.nih.gov/pubmed/") PMC = Namespace("https://www.ncbi....
45.3
64
0.735099
64
453
5.171875
0.515625
0.169184
0.102719
0.126888
0.181269
0.181269
0.181269
0
0
0
0
0.007109
0.068433
453
10
65
45.3
0.777251
0
0
0
0
0
0.477974
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6111b7e68c98d9dc89d8452745da9d3fb412b2a
6,568
py
Python
pbutils/argparsers.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
pbutils/argparsers.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
pbutils/argparsers.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
import sys import os import argparse from types import MethodType from importlib import import_module from argparse import RawTextHelpFormatter # Note: this applies to all options, might not always be what we want... from pbutils.configs import get_config, get_config_from_data, to_dict, inject_opts, CP from .strings ...
34.568421
115
0.622259
828
6,568
4.786232
0.300725
0.041635
0.060056
0.028766
0.079233
0.054504
0.038355
0.023719
0.023719
0.023719
0
0.00185
0.25944
6,568
189
116
34.751323
0.812911
0.25609
0
0.149123
0
0
0.124526
0.005057
0
0
0
0
0
1
0.078947
false
0.008772
0.105263
0
0.254386
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
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
c612683f9e5f1b8a554762571a5c3752edd3f4c6
513
py
Python
api/management/commands/user_stats.py
kopf/zzzz
eeaebc24c7c2c290e167dcf1a74c18586a3a75a7
[ "BSD-3-Clause" ]
10
2019-04-16T18:08:55.000Z
2022-03-17T21:30:47.000Z
api/management/commands/user_stats.py
kopf/zzzz
eeaebc24c7c2c290e167dcf1a74c18586a3a75a7
[ "BSD-3-Clause" ]
3
2019-04-16T18:26:41.000Z
2021-06-10T21:22:13.000Z
api/management/commands/user_stats.py
kopf/zzzz
eeaebc24c7c2c290e167dcf1a74c18586a3a75a7
[ "BSD-3-Clause" ]
1
2021-05-23T07:10:04.000Z
2021-05-23T07:10:04.000Z
#!/usr/bin/env python3 import json from django.core.management.base import BaseCommand from api.models import User class Command(BaseCommand): help = 'Print a dict of user status (number of users signed up per day) to stdout' def handle(self, *args, **options): stats = {} for user in User.o...
27
86
0.639376
73
513
4.438356
0.739726
0.064815
0
0
0
0
0
0
0
0
0
0.010309
0.243665
513
18
87
28.5
0.824742
0.040936
0
0
0
0
0.164969
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0