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
205f3f36d35279bed8e26e086ddaae4845a10bf2
4,211
py
Python
docs/examples/04/do_mcmc.py
ast0815/likelihood-machine
4b0ebd193253775c31539c4a0046b79cbec8fa2b
[ "MIT" ]
null
null
null
docs/examples/04/do_mcmc.py
ast0815/likelihood-machine
4b0ebd193253775c31539c4a0046b79cbec8fa2b
[ "MIT" ]
1
2017-03-15T15:36:48.000Z
2017-03-15T15:36:48.000Z
docs/examples/04/do_mcmc.py
ast0815/likelihood-machine
4b0ebd193253775c31539c4a0046b79cbec8fa2b
[ "MIT" ]
null
null
null
import emcee import numpy as np from matplotlib import pyplot as plt from remu import binning, likelihood, likelihood_utils, plotting with open("../01/reco-binning.yml") as f: reco_binning = binning.yaml.full_load(f) with open("../01/optimised-truth-binning.yml") as f: truth_binning = binning.yaml.full_load(f...
30.294964
82
0.722156
639
4,211
4.593114
0.190923
0.020443
0.01431
0.016695
0.596934
0.549233
0.430324
0.375809
0.363203
0.336627
0
0.015821
0.129423
4,211
138
83
30.514493
0.784779
0
0
0.428571
0
0
0.117312
0.040133
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20628f6d5bc6347f947ff9c3729ba2edb1f796e2
4,464
py
Python
data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
import numpy as np from data.tracking.sampler.SiamFC.type import SiamesePairSamplingMethod from data.tracking.sampler._sampling_algos.stateless.random import sampling_multiple_indices_with_range_and_mask from data.tracking.sampler._sampling_algos.sequence_sampling.common._algo import sample_one_positive def do_triple...
44.19802
174
0.670475
561
4,464
4.996435
0.165775
0.078487
0.041741
0.019979
0.39101
0.254727
0.196932
0.146985
0.133428
0.133428
0
0.009036
0.256272
4,464
100
175
44.64
0.835241
0.003808
0
0.204545
0
0
0
0
0
0
0
0
0.045455
1
0.034091
false
0
0.056818
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
206298366159a32b63385b54342b7c1ecae4f4f8
6,887
py
Python
check.py
imayank/project4
3ccab23560dec09180199726fbf252ac934b7bc2
[ "MIT" ]
null
null
null
check.py
imayank/project4
3ccab23560dec09180199726fbf252ac934b7bc2
[ "MIT" ]
null
null
null
check.py
imayank/project4
3ccab23560dec09180199726fbf252ac934b7bc2
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import csv import matplotlib.pyplot as plt import matplotlib.image as mpimg from sklearn.model_selection import train_test_split from keras import regularizers from keras.models import Sequential from keras.layers import Dense, Flatten, Lambda, Cropping2D, Conv2D, MaxPooling2D, Ac...
36.057592
121
0.684333
940
6,887
4.832979
0.17766
0.091569
0.040062
0.054589
0.455426
0.4081
0.385428
0.371561
0.316971
0.299802
0
0.043827
0.168433
6,887
190
122
36.247368
0.749433
0.080006
0
0.306569
0
0
0.036179
0.003538
0
0
0
0
0
1
0.051095
false
0
0.065693
0
0.160584
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20643ff79358dd0c7cd7ca78a7b0ae595e1e3aee
1,183
py
Python
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): is_jobSeeker = models.BooleanField(default=False) is_recruiter = models.BooleanField(default=False) class Recruiter(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, relate...
35.848485
89
0.746407
155
1,183
5.516129
0.316129
0.094737
0.091228
0.119298
0.529825
0.442105
0.442105
0.442105
0.350877
0.163743
0
0.01277
0.139476
1,183
32
90
36.96875
0.827112
0
0
0.090909
0
0
0.019475
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
20646ade19d84e61c29fbfddf68aea6634664078
4,069
py
Python
editor/translate_new.py
NTUEELightDance/2019-LightDance
2e2689f868364e16972465abc22801aaeaf3d8ba
[ "MIT" ]
2
2019-07-16T10:40:52.000Z
2022-03-14T00:26:42.000Z
editor/translate_new.py
NTUEELightDance/2019-LightDance
2e2689f868364e16972465abc22801aaeaf3d8ba
[ "MIT" ]
null
null
null
editor/translate_new.py
NTUEELightDance/2019-LightDance
2e2689f868364e16972465abc22801aaeaf3d8ba
[ "MIT" ]
2
2019-12-01T07:40:04.000Z
2020-02-15T09:58:50.000Z
BPM_1 = 120.000 BPM_2 = 150.000 BPM_3 = 128.000 BPM_4 = 180.000 SEC_BEAT_1 = 60. / BPM_1 SEC_BEAT_2 = 60. / BPM_2 SEC_BEAT_3 = 60. / BPM_3 SEC_BEAT_4 = 60. / BPM_4 N_DANCER = 8 N_PART = 16 ''' 2019_eenight_bpm (v9) 00:00.00 - 01:22.00 BPM = 120 (41*4拍) 01:22.00 - 01:58.80 BPM = 150 (23*4拍) 01:58.80 - 02:40.05 BPM = 1...
20.974227
71
0.482182
678
4,069
2.818584
0.246313
0.029304
0.012559
0.025118
0.29304
0.233386
0.214547
0.214547
0.194662
0.194662
0
0.166049
0.336938
4,069
193
72
21.082902
0.542254
0.021873
0
0.23622
0
0
0.031318
0
0
0
0
0
0
1
0.03937
false
0
0.015748
0
0.094488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
206543d34f0f4d7d479c2636f88d0e4e3752b2f7
90
py
Python
enthought/envisage/plugin_event.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/envisage/plugin_event.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/envisage/plugin_event.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.plugin_event import *
22.5
38
0.844444
12
90
5.833333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.122222
90
3
39
30
0.886076
0.133333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2066d9d51ccdadc9c2fac356ffcd5ca1583c63bd
5,538
py
Python
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py
viewdy/phantomjs
eddb0db1d253fd0c546060a4555554c8ee08c13c
[ "BSD-3-Clause" ]
1
2015-05-27T13:52:20.000Z
2015-05-27T13:52:20.000Z
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
1
2022-02-18T10:41:38.000Z
2022-02-18T10:41:38.000Z
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and...
42.6
117
0.68039
709
5,538
5.152327
0.369535
0.019162
0.028744
0.034492
0.168081
0.114427
0.058582
0.058582
0.03723
0.03723
0
0.00917
0.232033
5,538
129
118
42.930233
0.849753
0.373781
0
0.055556
0
0
0.112084
0
0
0
0
0.007752
0.013889
1
0.138889
false
0
0.097222
0
0.347222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20672c1e3cc7378701a319c6aa66a5c9cd3fe2a4
581
py
Python
avgamah/modules/NSFW/pussy.py
thenishantsapkota/Avgamah
c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c
[ "MIT" ]
6
2021-11-03T06:37:33.000Z
2022-01-26T15:09:37.000Z
avgamah/modules/NSFW/pussy.py
thenishantsapkota/Avgamah
c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c
[ "MIT" ]
7
2021-11-03T14:58:38.000Z
2022-03-29T23:16:21.000Z
avgamah/modules/NSFW/pussy.py
thenishantsapkota/Avgamah
c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c
[ "MIT" ]
1
2021-08-31T08:04:51.000Z
2021-08-31T08:04:51.000Z
import hikari import tanjun from avgamah.core.client import Client pussy_component = tanjun.Component() @pussy_component.with_slash_command @tanjun.with_own_permission_check( hikari.Permissions.SEND_MESSAGES | hikari.Permissions.VIEW_CHANNEL | hikari.Permissions.EMBED_LINKS ) @tanjun.with_nsfw_check @ta...
24.208333
61
0.79346
78
581
5.653846
0.525641
0.095238
0.104308
0
0
0
0
0
0
0
0
0
0.106713
581
23
62
25.26087
0.849711
0
0
0
0
0
0.04475
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20685d91ffa78a319f6c16393a78a8570e8e34ff
564
py
Python
test.py
DougDimmadome7/Virtual-Jenga
0344b21126b680826ffd13c10e328e04db9b7ade
[ "MIT" ]
null
null
null
test.py
DougDimmadome7/Virtual-Jenga
0344b21126b680826ffd13c10e328e04db9b7ade
[ "MIT" ]
null
null
null
test.py
DougDimmadome7/Virtual-Jenga
0344b21126b680826ffd13c10e328e04db9b7ade
[ "MIT" ]
null
null
null
from jenga import Tower, Layer from bots import StatBot def layer_suite(): subjects = {Layer(): (3, (1, 1.0)), Layer(False, False): (1, (1, 0.0))} for subject in subjects: if subject.get_mass() != subjects[subject][0]: print("Failed: Expected {}".format(subjects[subj...
25.636364
70
0.58156
74
564
4.364865
0.459459
0.185759
0.018576
0.154799
0.247678
0.247678
0
0
0
0
0
0.04717
0.248227
564
21
71
26.857143
0.714623
0
0
0
0
0
0.07024
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2068c0e986090c60cdb370c89725baad0a37fb2d
83
py
Python
python/tests/transducer_test.py
DevL/trancedeuce
a1daea44fd8b30f6392dc8ef0724432bef2a99a9
[ "MIT" ]
null
null
null
python/tests/transducer_test.py
DevL/trancedeuce
a1daea44fd8b30f6392dc8ef0724432bef2a99a9
[ "MIT" ]
null
null
null
python/tests/transducer_test.py
DevL/trancedeuce
a1daea44fd8b30f6392dc8ef0724432bef2a99a9
[ "MIT" ]
null
null
null
from transducer import Transducer def test_transducer(): Transducer pass
11.857143
33
0.746988
9
83
6.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.216867
83
6
34
13.833333
0.938462
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0.25
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
5
20692b1ffec59a043c4925ca299dd808accf86ea
179
py
Python
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
from math import pi from math import tan def polysum(n, s): perimeter = n * s area = (0.25 * n * (s **2))/ (tan(pi/n)) result = perimeter**2 + area return result
19.888889
44
0.581006
30
179
3.466667
0.533333
0.057692
0.269231
0
0
0
0
0
0
0
0
0.038462
0.273743
179
8
45
22.375
0.761538
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
206a29865133fb8ad4a844440e59032795701c2f
20,863
py
Python
test/socializer_test.py
aquanauts/tellus
d1185357b8a2f1106bbd951558dc040c709ff826
[ "MIT" ]
null
null
null
test/socializer_test.py
aquanauts/tellus
d1185357b8a2f1106bbd951558dc040c709ff826
[ "MIT" ]
null
null
null
test/socializer_test.py
aquanauts/tellus
d1185357b8a2f1106bbd951558dc040c709ff826
[ "MIT" ]
null
null
null
# pylint: skip-file import copy import random from tellus.configuration import TELLUS_INTERNAL from tellus.tell import Tell, SRC_TELLUS_USER from tellus.tellus_sources.socializer import Socializer, CoffeeBot from tellus.tellus_utils import datetime_from_string from tellus.users import UserManager from test.tells_test ...
36.991135
118
0.658247
2,554
20,863
5.161316
0.143696
0.040282
0.022758
0.028675
0.567896
0.501517
0.422242
0.391367
0.344409
0.310044
0
0.009307
0.242966
20,863
563
119
37.056838
0.825313
0.089872
0
0.422122
0
0.004515
0.212062
0.002643
0
0
0
0
0.1693
1
0.018059
false
0
0.018059
0.004515
0.045147
0.004515
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
206fa5a515032d90fcee492996c5a515f42a29c6
56
py
Python
enthought/pyface/ui/qt4/python_shell.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/qt4/python_shell.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/qt4/python_shell.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.ui.qt4.python_shell import *
18.666667
40
0.785714
9
56
4.777778
1
0
0
0
0
0
0
0
0
0
0
0.020408
0.125
56
2
41
28
0.857143
0.214286
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
20708794a4f17c85e6ca5fdd6d42ecbb66c5770e
1,149
py
Python
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
2
2022-02-14T06:37:05.000Z
2022-03-30T12:18:15.000Z
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
from typing import Any from aiohttp import ClientSession from .common import Item, strip_html API = "https://weibo.com/ajax/statuses/hot_band" IMG = "https://wx4.sinaimg.cn/large/{}.jpg" SEARCH = "https://s.weibo.com/weibo?q=%23{}%23" def get_image(data: Any) -> str: try: return IMG.format(data["mblog"]["pic_ids"][...
26.72093
59
0.610966
168
1,149
4.089286
0.452381
0.039301
0.046579
0.055313
0.116448
0
0
0
0
0
0
0.014039
0.194082
1,149
42
60
27.357143
0.727862
0
0
0.205128
0
0
0.202785
0
0
0
0
0
0
1
0.025641
false
0.051282
0.076923
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2071613e7a408eabf03c6b2b9802aa4339e771ee
955
py
Python
WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
""" Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. """ def numIslands(grid): if grid is None and len(gri...
25.131579
114
0.503665
156
955
3.083333
0.314103
0.10395
0.087318
0.058212
0.08316
0.058212
0.058212
0.058212
0
0
0
0.046296
0.321466
955
37
115
25.810811
0.695988
0.268063
0
0.076923
0
0
0.02026
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2071b7738ea9668595f43aa1c16e6826cb81da1e
2,607
py
Python
tests/integration/helpers.py
canonical/alertmanager-operator
48faea21c701a2edefe853de5b04ac1faf6cd736
[ "Apache-2.0" ]
1
2021-03-28T14:37:13.000Z
2021-03-28T14:37:13.000Z
tests/integration/helpers.py
canonical/alertmanager-operator
48faea21c701a2edefe853de5b04ac1faf6cd736
[ "Apache-2.0" ]
14
2020-11-12T11:22:28.000Z
2021-09-23T23:51:05.000Z
tests/integration/helpers.py
canonical/alertmanager-operator
48faea21c701a2edefe853de5b04ac1faf6cd736
[ "Apache-2.0" ]
7
2020-11-11T23:10:41.000Z
2021-11-12T14:11:14.000Z
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. """Helper functions for writing tests.""" import logging from typing import Dict from pytest_operator.plugin import OpsTest log = logging.getLogger(__name__) async def get_unit_address(ops_test: OpsTest, app_name: str, unit_num: int) -> str...
31.792683
93
0.667817
364
2,607
4.598901
0.456044
0.045998
0.035842
0.028674
0.124851
0.064516
0.064516
0.064516
0.064516
0.064516
0
0.022749
0.207518
2,607
81
94
32.185185
0.787512
0.224012
0
0
0
0
0.115901
0.057111
0
0
0
0
0.023256
1
0.046512
false
0
0.069767
0
0.209302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207275b58d80650023d7512a278cfc21b82f461a
1,841
py
Python
c3py/regions.py
h0s/c3py
6fb669dd07e9a8433631b64b08213f5f38606ca1
[ "MIT" ]
1
2015-11-20T05:43:15.000Z
2015-11-20T05:43:15.000Z
c3py/regions.py
h0s/c3py
6fb669dd07e9a8433631b64b08213f5f38606ca1
[ "MIT" ]
null
null
null
c3py/regions.py
h0s/c3py
6fb669dd07e9a8433631b64b08213f5f38606ca1
[ "MIT" ]
null
null
null
from .chart_component import ChartComponentList class Regions(ChartComponentList): """ Highlight selected regions on the chart. Parameters ---------- axes : c3py.axes.Axes The chart's Axes object. """ def __init__(self, axes): super(Regions, self).__init__() se...
24.878378
116
0.516567
215
1,841
4.260465
0.367442
0.027293
0.076419
0.043668
0.098253
0.098253
0.098253
0.098253
0.098253
0.098253
0
0.003487
0.376969
1,841
74
117
24.878378
0.795118
0.397067
0
0.086957
0
0
0.084783
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2072be0c4aa28bf08e6acf94dbe34fa893e5ddc8
4,420
py
Python
projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py
fridtjrg/FYS-STK4155
071a039c9c9994c0d125b9432c05ddb08991bca9
[ "MIT" ]
null
null
null
projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py
fridtjrg/FYS-STK4155
071a039c9c9994c0d125b9432c05ddb08991bca9
[ "MIT" ]
1
2021-10-03T15:16:07.000Z
2021-10-03T15:16:07.000Z
projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py
fridtjrg/FYS-STK4155
071a039c9c9994c0d125b9432c05ddb08991bca9
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.keras.layers import Dense, Activation from tensorflow.keras.models import Sequential import matplotlib.pyplot as plt import seaborn as sns sns.set() #====================== DATA import sys sys.path.append("../Data") from DataRegression import X, X_test, X_trai...
30.482759
139
0.597285
599
4,420
4.183639
0.222037
0.01676
0.038308
0.035914
0.46648
0.394254
0.37909
0.336792
0.336792
0.308859
0
0.009767
0.166063
4,420
144
140
30.694444
0.670103
0.136878
0
0.309524
0
0
0.185997
0.080581
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
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
20737648d812b6fad6bec05c7ca144f99ca2d842
2,551
py
Python
src/tf_imgaug/sequential.py
Marselliy/tf-aug
478a632e1822722a74397a169b0b63bd0c5692e7
[ "MIT" ]
1
2019-01-11T15:36:24.000Z
2019-01-11T15:36:24.000Z
src/tf_imgaug/sequential.py
Marselliy/tf-aug
478a632e1822722a74397a169b0b63bd0c5692e7
[ "MIT" ]
null
null
null
src/tf_imgaug/sequential.py
Marselliy/tf-aug
478a632e1822722a74397a169b0b63bd0c5692e7
[ "MIT" ]
null
null
null
import random import tensorflow as tf class Sequential: def __init__(self, augments, seed=random.randint(0, 2 ** 32), n_augments=1, keypoints_format='xy', bboxes_format='xyxy'): self.augments = augments for aug in augments: aug._set_formats(keypoints_format, bboxes_format) self....
39.859375
141
0.531164
319
2,551
4.115987
0.203762
0.041127
0.045697
0.05179
0.268088
0.242193
0.242193
0.220868
0.220868
0.175171
0
0.033372
0.330459
2,551
63
142
40.492063
0.735363
0
0
0.081633
0
0
0.00902
0
0
0
0
0
0
1
0.040816
false
0
0.040816
0
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20752a68676d3d8a6893e798673529b3ef5ebcf1
6,585
py
Python
ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py
mohsinalimat/ifitwala_ed
8927695ed9dee36e56571c442ebbe6e6431c7d46
[ "MIT" ]
13
2020-09-02T10:27:57.000Z
2022-03-11T15:28:46.000Z
ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py
mohsinalimat/ifitwala_ed
8927695ed9dee36e56571c442ebbe6e6431c7d46
[ "MIT" ]
43
2020-09-02T07:00:42.000Z
2021-07-05T13:22:58.000Z
ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py
mohsinalimat/ifitwala_ed
8927695ed9dee36e56571c442ebbe6e6431c7d46
[ "MIT" ]
6
2020-10-19T01:02:18.000Z
2022-03-11T15:28:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, ifitwala and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json from frappe import _ from frappe.utils import get_link_to_form, today, getdate, formatdate, date_diff, cint from frappe.model.docum...
44.795918
202
0.672134
899
6,585
4.671858
0.157953
0.071429
0.049524
0.057143
0.525952
0.49619
0.42
0.401905
0.37619
0.337143
0
0.003863
0.213667
6,585
146
203
45.10274
0.807261
0.022779
0
0.344828
0
0
0.143079
0.007621
0
0
0
0
0
1
0.103448
false
0
0.094828
0
0.232759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20779422059fa5a2638b842b8fa63f7290a8df78
2,824
py
Python
inbm/cloudadapter-agent/cloudadapter/cloudadapter.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
5
2021-12-13T21:19:31.000Z
2022-01-18T18:29:43.000Z
inbm/cloudadapter-agent/cloudadapter/cloudadapter.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
45
2021-12-30T17:21:09.000Z
2022-03-29T22:47:32.000Z
inbm/cloudadapter-agent/cloudadapter/cloudadapter.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
4
2022-01-26T17:42:54.000Z
2022-03-30T04:48:04.000Z
#!/usr/bin/python """ Agent that monitors and reports the state of critical components of the framework """ import platform from typing import Optional, List from cloudadapter.client import Client from cloudadapter.constants import LOGGERCONFIG from cloudadapter.exceptions import BadConfigError from cloudadapter.uti...
27.417476
99
0.642351
304
2,824
5.832237
0.411184
0.033841
0.027073
0.01692
0.018049
0
0
0
0
0
0
0.00679
0.26983
2,824
102
100
27.686275
0.853055
0.114023
0
0.076923
0
0
0.108097
0
0
0
0
0
0
1
0.092308
false
0
0.215385
0
0.384615
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2077e6ee17f7f602136cebfbf7dc6c070eaa7ba8
4,106
py
Python
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
# =============================================================================== # Copyright 2018 gabe-parrish # # 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/licen...
39.480769
107
0.681442
555
4,106
4.778378
0.342342
0.039216
0.049774
0.012066
0.113876
0.093514
0.093514
0.093514
0.058824
0.058824
0
0.017878
0.18266
4,106
104
108
39.480769
0.772348
0.288115
0
0
0
0
0.137852
0.081493
0
0
0
0
0
0
null
null
0
0.108696
null
null
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
207a7db873682c7d633f14d1d74adaba1fed2784
5,947
py
Python
prometheus_network_exporter/config/functions/junos.py
networkmess/prometheus-network-exporter
4e7febb7e13447fd3612e591fbb2f634f97a5101
[ "MIT" ]
11
2018-12-13T05:39:24.000Z
2022-01-07T16:59:59.000Z
prometheus_network_exporter/config/functions/junos.py
networkmess/prometheus-network-exporter
4e7febb7e13447fd3612e591fbb2f634f97a5101
[ "MIT" ]
11
2018-11-29T20:43:44.000Z
2020-11-14T22:33:50.000Z
prometheus_network_exporter/config/functions/junos.py
networkmess/prometheus-network-exporter
4e7febb7e13447fd3612e591fbb2f634f97a5101
[ "MIT" ]
2
2021-09-11T22:28:56.000Z
2021-09-11T22:43:19.000Z
from typing import Union import logging from ...utitlities import create_list_from_dict from ..configuration import LabelConfiguration, MetricConfiguration def default(value) -> float: if isinstance(value, list): return default(value[0]) return 0 if value is None else float(value) def is_ok(boolean:...
34.375723
87
0.669077
708
5,947
5.437853
0.141243
0.09974
0.029091
0.037403
0.674545
0.635844
0.614805
0.604416
0.604416
0.591948
0
0.007719
0.215739
5,947
172
88
34.575581
0.817753
0.003531
0
0.47482
0
0
0.080351
0.00422
0
0
0
0
0
1
0.107914
false
0
0.028777
0.028777
0.294964
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207ab28606db0bcb88724f2edd658e5f7978954f
1,492
py
Python
lib-python/io/proxies/fragment.py
geoffxy/tandem
81e76f675634f1b42c8c3070c73443f3f68f8624
[ "Apache-2.0" ]
732
2018-03-11T03:35:17.000Z
2022-01-06T12:22:03.000Z
lib-python/io/proxies/fragment.py
geoffxy/tandem
81e76f675634f1b42c8c3070c73443f3f68f8624
[ "Apache-2.0" ]
21
2018-03-11T02:28:22.000Z
2020-08-30T15:36:40.000Z
plugin/tandem_lib/agent/tandem/shared/io/proxies/fragment.py
typeintandem/vim
e076a9954d73ccb60cd6828e53adf8da76462fc6
[ "Apache-2.0" ]
24
2018-03-14T05:37:17.000Z
2022-01-18T14:44:42.000Z
from tandem.shared.io.proxies.base import ProxyBase from tandem.shared.utils.fragment import FragmentUtils class FragmentProxy(ProxyBase): def __init__(self, max_message_length=512): self._max_message_length = max_message_length def pre_generate_io_data(self, params): args, kwargs = params ...
30.44898
75
0.586461
153
1,492
5.45098
0.320261
0.059952
0.095923
0.095923
0.160671
0.160671
0.076739
0
0
0
0
0.003086
0.348525
1,492
48
76
31.083333
0.854938
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.051282
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207b5782368cc522ab6d38370f4b51ed010dc707
8,888
py
Python
integresql_client_python/__init__.py
msztolcman/integresql-client-python
8636434f20ab771ac66885f3bdfe819a7e9ebbfe
[ "MIT" ]
2
2021-05-20T18:38:41.000Z
2021-06-26T23:10:27.000Z
integresql_client_python/__init__.py
msztolcman/integresql-client-python
8636434f20ab771ac66885f3bdfe819a7e9ebbfe
[ "MIT" ]
null
null
null
integresql_client_python/__init__.py
msztolcman/integresql-client-python
8636434f20ab771ac66885f3bdfe819a7e9ebbfe
[ "MIT" ]
2
2021-06-02T13:39:56.000Z
2021-06-14T02:11:05.000Z
__all__ = ['IntegreSQL', 'DBInfo', 'Database', 'Template'] import hashlib import http.client import os import pathlib import sys from typing import Optional, NoReturn, Union, List import requests from . import errors __version__ = '0.9.2' ENV_INTEGRESQL_CLIENT_BASE_URL = 'INTEGRESQL_CLIENT_BASE_URL' ENV_INTEGRESQL_...
33.923664
121
0.6259
1,045
8,888
5.111005
0.164593
0.038757
0.055982
0.05411
0.422018
0.360981
0.320352
0.301442
0.301442
0.288523
0
0.003348
0.260689
8,888
261
122
34.05364
0.809466
0.006413
0
0.308081
0
0.005051
0.123781
0.036726
0
0
0
0
0
1
0.141414
false
0.020202
0.040404
0.040404
0.318182
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207b985f54a451ba05a83c7321110571f9b36581
97
py
Python
aws_resources/tests/test_dynamo.py
jottenlips/tinyauth
2c7e5e65e08627795748656f5b3d4122f836d6cd
[ "MIT" ]
3
2020-06-07T18:43:25.000Z
2021-03-30T14:42:40.000Z
aws_resources/tests/test_dynamo.py
jottenlips/tinyauth
2c7e5e65e08627795748656f5b3d4122f836d6cd
[ "MIT" ]
2
2021-04-30T21:09:00.000Z
2021-05-11T11:10:14.000Z
aws_resources/tests/test_dynamo.py
jottenlips/tinyauth
2c7e5e65e08627795748656f5b3d4122f836d6cd
[ "MIT" ]
1
2020-04-26T16:24:52.000Z
2020-04-26T16:24:52.000Z
from aws_resources.dynamo import table def test_table(): db = table() assert db != None
16.166667
38
0.680412
14
97
4.571429
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.226804
97
5
39
19.4
0.853333
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
207bb34267342365082bfa8ac841a3deb5a45c41
1,653
py
Python
src/euler_python_package/euler_python/medium/p265.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p265.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p265.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
# In this problem we look at 2^n-digit binary strings and the n-digit substrings of these. # We are given that n = 5, so we are looking at windows of 5 bits in 32-bit strings. # # There are of course 32 possible cyclic windows in a 32-bit string. # We want each of these windows to be a unique 5-bit string. There are ex...
44.675676
91
0.69026
294
1,653
3.79932
0.421769
0.037601
0.043868
0.019696
0.016115
0
0
0
0
0
0
0.048973
0.23412
1,653
36
92
45.916667
0.833333
0.672716
0
0
0
0
0.015355
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207ca71d5a53e255c1c332a5b53aede5e33b9205
17,727
py
Python
scripts/mapping4SNP_v2.0_multipleMaps.py
PerisD/Sac2.0
274aeca4f6298b2d1d816e5640bf3f67bb5dd729
[ "CC0-1.0" ]
null
null
null
scripts/mapping4SNP_v2.0_multipleMaps.py
PerisD/Sac2.0
274aeca4f6298b2d1d816e5640bf3f67bb5dd729
[ "CC0-1.0" ]
null
null
null
scripts/mapping4SNP_v2.0_multipleMaps.py
PerisD/Sac2.0
274aeca4f6298b2d1d816e5640bf3f67bb5dd729
[ "CC0-1.0" ]
null
null
null
__author__ = 'Peris' #!/usr/bin/env python #coding: utf-8 import argparse from subprocess import call import os import shutil import glob from Bio import SeqIO helptext=""" This script is to map reads to a reference assembly to generate an alignment for population genomics. The output requires to convert N sites to ...
67.660305
499
0.690416
2,036
17,727
5.77554
0.140472
0.095246
0.101709
0.129093
0.770474
0.743005
0.720725
0.702101
0.702101
0.694447
0
0.018777
0.134766
17,727
261
500
67.91954
0.747881
0.012862
0
0.57265
0
0.034188
0.323938
0.120119
0
0
0
0
0
0
null
null
0
0.025641
null
null
0.192308
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
6
207f20ff7bc96059db1255846744ebb0c03d9e3f
25,099
py
Python
lib/geomet/wkb.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
lib/geomet/wkb.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
lib/geomet/wkb.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Lars Butler & individual contributors # # 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...
31.217662
79
0.620742
3,433
25,099
4.330032
0.109525
0.042987
0.025362
0.021796
0.480928
0.434376
0.390649
0.350488
0.31443
0.29667
0
0.020602
0.270927
25,099
803
80
31.256538
0.791737
0.267222
0
0.419624
0
0
0.091885
0
0.004175
0
0.000447
0.004981
0.025052
1
0.045929
false
0.002088
0.020877
0
0.106472
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
207f55f29edfdd3fe87e918760b34c1f86506336
292
py
Python
algorithms/sorting/bubble_sort.py
Byung-June/coding_test_study
aca82da72ba4a6147e35af3749844dc53de682a3
[ "MIT" ]
null
null
null
algorithms/sorting/bubble_sort.py
Byung-June/coding_test_study
aca82da72ba4a6147e35af3749844dc53de682a3
[ "MIT" ]
null
null
null
algorithms/sorting/bubble_sort.py
Byung-June/coding_test_study
aca82da72ba4a6147e35af3749844dc53de682a3
[ "MIT" ]
null
null
null
nums = [5,2,31,2,5,7, 9, 10] def bubble_sort(nums): for i in range(len(nums)-1, 0, -1): for j in range(i): if nums[j] > nums[j+1]: temp = nums[j] nums[j] = nums[j+1] nums[j+1] = temp return nums bubble_sort(nums)
20.857143
39
0.455479
50
292
2.62
0.42
0.229008
0.206107
0.229008
0.167939
0
0
0
0
0
0
0.088889
0.383562
292
14
40
20.857143
0.638889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
20803faf55678d4849c7071017ef34216a20319c
2,104
py
Python
tests/test_can_delete.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
50
2021-08-18T08:08:04.000Z
2022-03-20T07:23:26.000Z
tests/test_can_delete.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
1
2021-02-21T03:18:09.000Z
2021-03-08T01:07:52.000Z
tests/test_can_delete.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
8
2021-07-01T02:39:15.000Z
2021-12-10T02:20:18.000Z
from __future__ import annotations from unittest import TestCase from jsonclasses.excs import UnauthorizedActionException from tests.classes.gs_product import GSProduct, GSProductUser, GSTProduct from tests.classes.gm_product import GMProduct, GMProductUser class TestCanDelete(TestCase): def test_guards_raises_i...
39.698113
75
0.687738
251
2,104
5.494024
0.239044
0.104424
0.039159
0.056563
0.656273
0.621465
0.621465
0.621465
0.597534
0.548949
0
0
0.214354
2,104
52
76
40.461538
0.834241
0
0
0.652174
0
0
0.011882
0
0
0
0
0
0.086957
1
0.086957
false
0
0.108696
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2080689aca7d1f7a58ef8c5ff65a1a1fdd0f61ff
715
py
Python
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
# encoding=utf-8 # 解题思路: # 依旧用了空间换时间的思路,记录找到的每个没有重复的子串的长度,然后求这些长度的最大值。 # 这里需要注意发现字符a已经在上一个子串中的时候,下一个子串应该是从上一个子串的a的下一位开始,而不是从a开始。 class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ first = [0] now = "" for index, ...
22.34375
65
0.513287
73
715
4.917808
0.60274
0.050139
0
0
0
0
0
0
0
0
0
0.010965
0.362238
715
31
66
23.064516
0.776316
0.167832
0
0
0
0
0.033708
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
208118ac1558f15291a466df173c06353392d5a4
2,112
py
Python
scripts/matplot_hardware_comparison.py
shenweihai1/rolis-eurosys2022
59b3fd58144496a9b13415e30b41617b34924323
[ "MIT" ]
null
null
null
scripts/matplot_hardware_comparison.py
shenweihai1/rolis-eurosys2022
59b3fd58144496a9b13415e30b41617b34924323
[ "MIT" ]
null
null
null
scripts/matplot_hardware_comparison.py
shenweihai1/rolis-eurosys2022
59b3fd58144496a9b13415e30b41617b34924323
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import FuncFormatter def millions(x, pos): return '%1.1fM' % (x * 1e-6) formatter = FuncFormatter(millions) txt = """ 4 381682 159258 1.61E+06 8 773030 366397 3.00E+06 12 1103917 519834 4.30E+06 16 1358805 740740 5.67E+06 ...
34.622951
148
0.676136
332
2,112
4.25
0.490964
0.024805
0.034018
0.012757
0.10489
0.028349
0.028349
0.019844
0
0
0
0.13842
0.131155
2,112
61
149
34.622951
0.630518
0.116477
0
0.040816
0
0
0.227004
0.017214
0
0
0
0
0
1
0.020408
false
0
0.081633
0.020408
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208258846b51fff8cd031222e2f3da0eb301099e
11,741
py
Python
bintray-cleanup/bintray_cleanup/main.py
openzipkin/zipkin-release
4508fca409783e62169382aff06fd7c32ad20a63
[ "Apache-2.0" ]
2
2017-08-07T10:00:52.000Z
2019-06-25T01:59:22.000Z
bintray-cleanup/bintray_cleanup/main.py
openzipkin/zipkin-release
4508fca409783e62169382aff06fd7c32ad20a63
[ "Apache-2.0" ]
3
2017-04-11T05:20:11.000Z
2019-07-24T23:22:16.000Z
bintray-cleanup/bintray_cleanup/main.py
openzipkin/zipkin-release
4508fca409783e62169382aff06fd7c32ad20a63
[ "Apache-2.0" ]
1
2017-09-19T08:38:07.000Z
2017-09-19T08:38:07.000Z
#!/usr/bin/env python3 import json import textwrap from collections import defaultdict from dataclasses import dataclass from datetime import datetime, timedelta, timezone from typing import Callable, Dict, List, Optional import click import pygments import pygments.formatters import pygments.lexers import requests_ca...
31.226064
87
0.638106
1,401
11,741
5.142041
0.155603
0.034287
0.034287
0.018462
0.415741
0.348973
0.313437
0.293587
0.284981
0.273459
0
0.001671
0.235329
11,741
375
88
31.309333
0.800735
0.001789
0
0.342857
0
0
0.187815
0.092755
0
0
0
0
0
1
0.053968
false
0.025397
0.034921
0.006349
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2082b1a4f9ffc658b8fe8bd47773012afce06769
688
py
Python
backup_nanny/ami_cleanup.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
1
2019-11-13T04:15:41.000Z
2019-11-13T04:15:41.000Z
backup_nanny/ami_cleanup.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
null
null
null
backup_nanny/ami_cleanup.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
1
2019-10-25T21:24:20.000Z
2019-10-25T21:24:20.000Z
#!/usr/bin/env python from backup_nanny.util.env_loader import ENVLoader from backup_nanny.util.log import Log from backup_nanny.util.backup_helper import BackupHelper def handler(event, context): main(event) def main(event): log = Log() try: backup_helper = BackupHelper(log=log) backup_...
25.481481
69
0.700581
93
688
4.849462
0.44086
0.133038
0.099778
0.126386
0
0
0
0
0
0
0
0
0.213663
688
26
70
26.461538
0.833641
0.02907
0
0
0
0
0.01949
0
0
0
0
0
0
1
0.1
false
0
0.15
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
208372cd97ff6cd39df211ced3240a7c03da900d
4,179
py
Python
msn/tests/test_events.py
mleger45/turnex
2b805c3681fe6ce3ddad403270c09ac9900fbe7d
[ "MIT" ]
null
null
null
msn/tests/test_events.py
mleger45/turnex
2b805c3681fe6ce3ddad403270c09ac9900fbe7d
[ "MIT" ]
1
2021-04-12T05:14:28.000Z
2021-04-12T05:14:28.000Z
msn/tests/test_events.py
mleger45/turnex
2b805c3681fe6ce3ddad403270c09ac9900fbe7d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import json from django.test import TestCase from unittest.mock import patch, MagicMock from msn.events import EventTurnex class EventTurnexTest(TestCase): def setUp(self): self.events = EventTurnex() @patch('msn.events.EventTurnex.valid') def test_process_with_v...
29.85
74
0.589375
426
4,179
5.615023
0.173709
0.096154
0.035117
0.041806
0.477007
0.414716
0.38796
0.38796
0.38796
0.347826
0
0.000341
0.299115
4,179
139
75
30.064748
0.81632
0.004786
0
0.398148
0
0
0.098629
0.031273
0
0
0
0
0.157407
1
0.12963
false
0
0.037037
0
0.175926
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208521b0cff34706ddce62eebc847a4ed84c31d5
1,044
py
Python
tests/test_no_identity.py
iexg/aiohttp-security
225b0c989e397bc741159e0ccc6b54eb7add3f94
[ "Apache-2.0" ]
null
null
null
tests/test_no_identity.py
iexg/aiohttp-security
225b0c989e397bc741159e0ccc6b54eb7add3f94
[ "Apache-2.0" ]
null
null
null
tests/test_no_identity.py
iexg/aiohttp-security
225b0c989e397bc741159e0ccc6b54eb7add3f94
[ "Apache-2.0" ]
null
null
null
from aiohttp import web from aiohttp_security import remember, forget async def test_remember(loop, test_client): async def do_remember(request): response = web.Response() await remember(request, response, 'Andrew') app = web.Application(loop=loop) app.router.add_route('POST', '/', do_re...
29.828571
57
0.64751
125
1,044
5.288
0.28
0.048412
0.036309
0.057489
0.73525
0.641452
0.568835
0.568835
0.568835
0.568835
0
0.007481
0.231801
1,044
34
58
30.705882
0.816708
0
0
0.615385
0
0
0.164751
0.051724
0
0
0
0
0.153846
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208788b7bd11e361a5d176ed481e96bc882babed
5,385
py
Python
create_TFRecords.py
LemonLov/Create_TFRecords
4274b3c2bfd2c041d0a8189f63b394b79edcf025
[ "BSD-2-Clause" ]
2
2020-09-12T03:10:30.000Z
2020-09-13T06:18:00.000Z
create_TFRecords.py
LemonLov/Create_TFRecords
4274b3c2bfd2c041d0a8189f63b394b79edcf025
[ "BSD-2-Clause" ]
null
null
null
create_TFRecords.py
LemonLov/Create_TFRecords
4274b3c2bfd2c041d0a8189f63b394b79edcf025
[ "BSD-2-Clause" ]
null
null
null
# *-* coding:utf-8 *-* import tensorflow as tf import numpy as np import os import cv2 import random # 生成整数型的属性 def _int64_feature(value): return tf.train.Feature(int64_list=tf.train.Int64List(value=[value])) # 生成字符串型的属性 def _bytes_feature(value): return tf.train.Feature(bytes_list=tf.train.BytesList(value=[...
34.299363
125
0.659239
646
5,385
5.24613
0.289474
0.049572
0.031868
0.04072
0.130717
0.113603
0.018885
0
0
0
0
0.016611
0.228598
5,385
157
126
34.299363
0.79923
0.21727
0
0
0
0
0.09843
0.030401
0
0
0
0
0
1
0.083333
false
0
0.059524
0.035714
0.214286
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
2087a291b6146f0ef00a3da950e1b29854405f84
9,694
py
Python
curses_interface.py
danomagnum/rpncalc
0c1242f3716b9bd2bd27cb80b9471ae843c1ee74
[ "MIT" ]
null
null
null
curses_interface.py
danomagnum/rpncalc
0c1242f3716b9bd2bd27cb80b9471ae843c1ee74
[ "MIT" ]
null
null
null
curses_interface.py
danomagnum/rpncalc
0c1242f3716b9bd2bd27cb80b9471ae843c1ee74
[ "MIT" ]
null
null
null
import rpncalc #import readline import curses import sys import os import math import pkgutil import settings STACK = 0 GRAPH_XY = 1 GRAPH_X = 2 mode = STACK screen = curses.initscr() screen.keypad(1) YMAX, XMAX = screen.getmaxyx() curses.noecho() stackbox = curses.newwin(YMAX-4,XMAX -1,0,0) inputbox = curses.newwi...
24.356784
80
0.657726
1,365
9,694
4.506227
0.155311
0.1073
0.056901
0.039018
0.364819
0.354739
0.28727
0.263372
0.223541
0.159974
0
0.02048
0.204147
9,694
397
81
24.418136
0.776798
0.028574
0
0.372308
0
0
0.021589
0
0
0
0
0
0
1
0.015385
false
0.006154
0.043077
0
0.064615
0.009231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208912d6f6d0a9d6a2c0d77936e735ebc5845e01
452
py
Python
ex081.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex081.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex081.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
valores = [] c = 0 resp = 'S' cinco = 0 while resp in 'Ss': v = valores.append(int(input('Digite um valor:'))) resp = str(input('Quer continuar? [S/N]:')).upper().strip()[0] c+=1 print(f'Você digitou {c} valores')# ou len(valores) valores.sort(reverse=True) print(f'Os valores em ordem decrescente são {valor...
30.133333
66
0.652655
77
452
3.831169
0.597403
0.081356
0.047458
0.081356
0.088136
0
0
0
0
0
0
0.018919
0.181416
452
15
67
30.133333
0.778378
0.033186
0
0
0
0
0.422018
0
0
0
0
0
0
1
0
false
0
0
0
0
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2089574d1cedb0d9edbb6825a3a98e6d9859fb54
6,649
py
Python
config/settings/base.py
SimeonAleksov/shawty
9c51c0c0d64950045d5b7edf8bf86c4e084e5920
[ "Apache-2.0" ]
null
null
null
config/settings/base.py
SimeonAleksov/shawty
9c51c0c0d64950045d5b7edf8bf86c4e084e5920
[ "Apache-2.0" ]
3
2022-02-28T12:04:19.000Z
2022-03-02T12:05:29.000Z
config/settings/base.py
SimeonAleksov/shawty
9c51c0c0d64950045d5b7edf8bf86c4e084e5920
[ "Apache-2.0" ]
null
null
null
""" Base settings to build other settings files upon. """ import os from pathlib import Path import environ # ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent ROOT_DIR = (environ.Path(__file__) - 3) APPS_DIR = ROOT_DIR.path("shawty") NUXT_APP_DIR = ROOT_DIR.path('client') env = environ.Env() READ_...
30.360731
90
0.676342
669
6,649
6.502242
0.360239
0.068736
0.046897
0.042759
0.112184
0.10023
0.042299
0.042299
0.023448
0.023448
0
0.005678
0.152354
6,649
218
91
30.5
0.766146
0.112799
0
0.017647
0
0
0.531495
0.407729
0
0
0
0
0
1
0
false
0.058824
0.017647
0
0.017647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
2089e701f232686bde232f252421fe8e4203a707
7,468
py
Python
clairmeta/settings.py
Kariboupseudo/ClairMeta
e0a26073935f07abda84d9abf0f194716854292f
[ "BSD-3-Clause" ]
null
null
null
clairmeta/settings.py
Kariboupseudo/ClairMeta
e0a26073935f07abda84d9abf0f194716854292f
[ "BSD-3-Clause" ]
null
null
null
clairmeta/settings.py
Kariboupseudo/ClairMeta
e0a26073935f07abda84d9abf0f194716854292f
[ "BSD-3-Clause" ]
null
null
null
# Clairmeta - (C) YMAGIS S.A. # See LICENSE for more information LOG_SETTINGS = { 'level': 'INFO', 'enable_console': True, 'enable_file': True, 'file_name': '~/Library/Logs/clairmeta.log', 'file_size': 1e6, 'file_count': 10, } DCP_SETTINGS = { # ISDCF Naming Convention enforced 'naming...
39.935829
99
0.573246
948
7,468
4.405063
0.330169
0.056992
0.051724
0.060345
0.283525
0.250718
0.209052
0.154933
0.060345
0.060345
0
0.110592
0.254151
7,468
186
100
40.150538
0.639138
0.174344
0
0.09396
0
0.026846
0.55983
0.019074
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
208ab0efab1a44dca566c2b25386582351d6f44f
1,465
py
Python
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
null
null
null
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
#!/usr/bin/env python3 """This is an example to train a task with REPS algorithm. Here it runs gym CartPole env with 100 iterations. Results: AverageReturn: 100 +/- 40 RiseTime: itr 10 +/- 5 """ import gym from garage import wrap_experiment from garage.envs import GarageEnv from garage.experiment import Lo...
27.641509
79
0.690102
183
1,465
5.431694
0.513661
0.070423
0.030181
0.042254
0
0
0
0
0
0
0
0.028394
0.230717
1,465
52
80
28.173077
0.853594
0.317406
0
0
0
0
0.011446
0
0
0
0
0
0
1
0.043478
false
0
0.347826
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
208b5a19512f2c1942088dd7f08d4f5e98808037
869
py
Python
examples/python_in_cpp/python_src/py_display.py
aff3ct/py_aff3ct
8afb7e6b1db1b621db0ae4153b29a2e848e09fcf
[ "MIT" ]
15
2021-01-24T11:59:04.000Z
2022-03-23T07:23:44.000Z
examples/python_in_cpp/python_src/py_display.py
aff3ct/py_aff3ct
8afb7e6b1db1b621db0ae4153b29a2e848e09fcf
[ "MIT" ]
8
2021-05-24T18:22:45.000Z
2022-03-11T09:48:05.000Z
examples/python_in_cpp/python_src/py_display.py
aff3ct/py_aff3ct
8afb7e6b1db1b621db0ae4153b29a2e848e09fcf
[ "MIT" ]
4
2021-01-26T19:18:21.000Z
2021-12-07T17:02:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys sys.path.insert(0, '../../../build/lib') import numpy as np import matplotlib.pyplot as plt from py_aff3ct.module.py_module import Py_Module class Display(Py_Module): def plot(self, x): if self.i_plt % 50 == 0: self.line.set_data(x[0,::2], x[0,1::2]) ...
24.828571
59
0.654776
156
869
3.474359
0.455128
0.059041
0.059041
0
0
0
0
0
0
0
0
0.052055
0.159954
869
35
60
24.828571
0.690411
0.049482
0
0
0
0
0.058182
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208b826ac073ffc78e9fc4a4daa39a825a8767d0
3,906
py
Python
tests/_dao/TestRTKEnvironment.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
tests/_dao/TestRTKEnvironment.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
tests/_dao/TestRTKEnvironment.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
#!/usr/bin/env python -O # -*- coding: utf-8 -*- # # tests.unit._dao.TestRTKEnvironment.py is part of The RTK Project # # All rights reserved. """ This is the test class for testing the RTKEnvironment module algorithms and models. """ import sys from os.path import dirname sys.path.insert( 0, dirname(d...
31.248
111
0.647465
455
3,906
5.38022
0.32967
0.05433
0.100899
0.11683
0.28799
0.238971
0.096405
0.05719
0.05719
0.05719
0
0.017538
0.240911
3,906
124
112
31.5
0.808094
0.178187
0
0.086957
0
0
0.166341
0.027723
0
0
0
0
0.26087
1
0.072464
false
0.014493
0.101449
0
0.202899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
208d55bf2af77c0581700d580f1805b2e51b5213
30,297
py
Python
model/dualposenet.py
wx-b/DualPoseNet
393f786a28f857eee36d913f335912da72b28371
[ "MIT" ]
14
2021-08-19T09:12:23.000Z
2022-03-22T06:58:58.000Z
model/dualposenet.py
wx-b/DualPoseNet
393f786a28f857eee36d913f335912da72b28371
[ "MIT" ]
4
2021-09-16T05:48:53.000Z
2022-02-28T16:23:40.000Z
model/dualposenet.py
wx-b/DualPoseNet
393f786a28f857eee36d913f335912da72b28371
[ "MIT" ]
7
2021-10-11T05:38:39.000Z
2022-01-04T03:22:57.000Z
# Copyright (c) Gorilla Lab, SCUT. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Dual Pose Network with Refined Learning of Pose Consistency. Author: Jiehong Lin """ import os import tensorflow as tf import numpy as np ...
48.243631
175
0.529491
3,493
30,297
4.348411
0.089322
0.036869
0.018434
0.020014
0.820923
0.799263
0.793798
0.766344
0.755415
0.735598
0
0.028694
0.361587
30,297
627
176
48.320574
0.756592
0.016833
0
0.704918
0
0.002049
0.053264
0.009375
0
0
0
0
0
1
0.016393
false
0
0.028689
0
0.047131
0.034836
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
208e001e2d8d189eee888e06083e153b859d3d35
1,652
py
Python
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
# Copyright 2018 Joseph Wright <joseph@cloudboss.co> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
44.648649
79
0.735472
247
1,652
4.878543
0.530364
0.073029
0.021577
0.039834
0
0
0
0
0
0
0
0.03165
0.196731
1,652
36
80
45.888889
0.876413
0.648305
0
0
0
0
0.065954
0
0
0
0
0
0.153846
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20903497b848af034e0eb1186f088232c687e594
341
py
Python
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': n = int(input().strip()) out = bin(n)[2:].split('0') #bin binarizes into form '0b----' where ---- is binary representataion out = len(max(out)) # choosing maximum length of string as '11' > ...
20.058824
103
0.607038
48
341
4.145833
0.791667
0
0
0
0
0
0
0
0
0
0
0.027027
0.240469
341
16
104
21.3125
0.741313
0.381232
0
0
0
0
0.046875
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
1
20914f481667d4d16d02db12f46ade70ba6a337e
836
py
Python
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
2
2020-04-05T21:24:39.000Z
2021-06-04T09:03:58.000Z
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
13
2020-01-28T22:01:40.000Z
2021-12-13T19:51:09.000Z
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
1
2021-07-06T21:12:15.000Z
2021-07-06T21:12:15.000Z
# -*- coding=utf-8 -*- import pika import sys import numpy as np import pickle credentials = pika.PlainCredentials('myuser', 'mypassword') with pika.BlockingConnection( pika.ConnectionParameters('ice-P910',5672,'myvhost', credentials)) as connection: # connection = pika.BlockingConnection(pika.Connection...
32.153846
87
0.735646
106
836
5.59434
0.386792
0.040472
0.025295
0.155143
0.279933
0.195616
0.131535
0.131535
0.131535
0
0
0.01108
0.136364
836
25
88
33.44
0.810249
0.12201
0
0.111111
0
0
0.221614
0
0
0
0
0
0
1
0
false
0.055556
0.222222
0
0.222222
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20915d22a85cdbcd4b2ea977314aae79038fd886
225
py
Python
api/base/serializers.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
87
2015-01-06T18:24:45.000Z
2021-08-08T07:59:40.000Z
api/base/serializers.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
442
2015-01-01T19:16:01.000Z
2022-03-30T21:10:26.000Z
api/base/serializers.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
67
2015-03-10T16:32:58.000Z
2021-11-12T16:33:41.000Z
from rest_framework_json_api import serializers __all__ = ('ShareSerializer', ) class ShareSerializer(serializers.ModelSerializer): pass # Use as base for all serializers in case we need customizations in the future
25
88
0.795556
28
225
6.142857
0.821429
0
0
0
0
0
0
0
0
0
0
0
0.155556
225
8
89
28.125
0.905263
0.337778
0
0
0
0
0.102041
0
0
0
0
0
0
1
0
false
0.25
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
20920539583830803e507b6abeed56abf3e464c5
114
py
Python
config.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
config.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
config.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- DATABASE = 'db/user.db' DEBUG = True SECRET_KEY = 'secret_key_1'
14.25
27
0.640351
18
114
3.888889
0.833333
0.257143
0
0
0
0
0
0
0
0
0
0.03125
0.157895
114
7
28
16.285714
0.697917
0.377193
0
0
0
0
0.328358
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
20943719a2fcad2a95774d69c03867118816c653
599
py
Python
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
2
2016-05-24T14:16:37.000Z
2018-09-25T06:35:55.000Z
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
null
null
null
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
null
null
null
import sys lines = [l.rstrip() for l in open(sys.argv[1]).readlines() if len(l.rstrip()) > 0] if len(lines) > 64: print "Max 64 lines" sys.exit(1) lines.extend([""] * (64 % len(lines))) # Pad out to 64 lines cols = max(len(l) for l in lines) if cols > 128: print "Max 128 columns" sys.exit(1) for i in ...
28.52381
82
0.562604
97
599
3.463918
0.402062
0.044643
0.035714
0
0
0
0
0
0
0
0
0.052392
0.267112
599
20
83
29.95
0.712984
0.03172
0
0.111111
0
0
0.070934
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
20947dad3cda2fd32b55ac90d29dde10b443304e
2,704
py
Python
models.py
RidleyLeisy/data-science-1
bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2
[ "MIT" ]
null
null
null
models.py
RidleyLeisy/data-science-1
bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2
[ "MIT" ]
3
2021-02-08T20:34:21.000Z
2021-06-02T00:21:00.000Z
models.py
RidleyLeisy/data-science-1
bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2
[ "MIT" ]
1
2019-08-28T21:51:14.000Z
2019-08-28T21:51:14.000Z
import pandas as pd import numpy as np from sklearn.pipeline import Pipeline import category_encoders as ce from scipy.spatial.distance import cdist from sklearn.externals import joblib from db_helper import DbHelper cols = ['column_a', 'player', 'all_nba', 'all_star', 'draft_yr','pk','team', 'college', 'yrs', 'gam...
37.041096
120
0.640902
351
2,704
4.615385
0.34188
0.04321
0.033333
0.040741
0.34321
0.34321
0.34321
0.34321
0.34321
0.302469
0
0.002791
0.204882
2,704
73
121
37.041096
0.750698
0.006657
0
0
0
0
0.286778
0
0
0
0
0
0
1
0.057692
false
0
0.134615
0
0.269231
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
20955b537db28fcb9f49cbce39f463fbee44592c
5,692
py
Python
third_party/dimorphite_dl/acid_base_pairs.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
3
2022-02-06T09:13:51.000Z
2022-02-19T15:03:35.000Z
third_party/dimorphite_dl/acid_base_pairs.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
1
2022-02-14T23:16:27.000Z
2022-02-14T23:16:27.000Z
third_party/dimorphite_dl/acid_base_pairs.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
null
null
null
from third_party.molvs.charge import AcidBasePair from rdkit import Chem pair_string = """Nitro [C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O-1:4] [C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H] 3 Sulfate [SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[O-1:6] [SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H] 5 Sulfonate [SX4:1](=[O:2...
56.356436
230
0.500703
1,342
5,692
2.061103
0.106557
0.0282
0.039046
0.034707
0.465654
0.37021
0.338033
0.276934
0.227766
0.221258
0
0.111066
0.133169
5,692
100
231
56.92
0.449534
0
0
0.068182
0
0.5
0.69993
0.504919
0
0
0
0
0
1
0.045455
false
0
0.022727
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2096856b33bf00dedb67422295e6927b9ab0e166
854
py
Python
aggregate/color_videos.py
isaiahnields/attention.ai
96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261
[ "MIT" ]
8
2019-02-12T07:07:42.000Z
2022-03-02T08:13:01.000Z
aggregate/color_videos.py
isaiahnields/attention.ai
96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261
[ "MIT" ]
7
2020-01-28T22:06:03.000Z
2022-02-09T23:29:48.000Z
aggregate/color_videos.py
isaiahnields/attention.ai
96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261
[ "MIT" ]
8
2019-02-12T07:07:46.000Z
2021-09-21T13:37:19.000Z
import cv2 from os import listdir from os.path import isfile, join import numpy as np from math import sin, pi paths = [f for f in listdir('combined_videos') if isfile(join('combined_videos', f))] preds = np.load('agg_preds.npy') preds = np.sqrt(preds) for i in range(len(paths)): ps = preds[i, :] cap = cv2.V...
26.6875
85
0.533958
121
854
3.719008
0.471074
0.093333
0.026667
0.08
0
0
0
0
0
0
0
0.032368
0.312646
854
31
86
27.548387
0.734242
0
0
0
0
0
0.088993
0
0
0
0
0
0
1
0
false
0
0.208333
0
0.208333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2096b0b7ee6813ddc0e5f25a4499c5eee7710cfc
701
py
Python
phillydata/reversion_utils.py
ebrelsford/django-phillydata
444a3ff9d436cd276530534642dd092402278ba5
[ "BSD-3-Clause" ]
null
null
null
phillydata/reversion_utils.py
ebrelsford/django-phillydata
444a3ff9d436cd276530534642dd092402278ba5
[ "BSD-3-Clause" ]
null
null
null
phillydata/reversion_utils.py
ebrelsford/django-phillydata
444a3ff9d436cd276530534642dd092402278ba5
[ "BSD-3-Clause" ]
1
2020-01-23T04:59:36.000Z
2020-01-23T04:59:36.000Z
from django.utils.importlib import import_module from reversion import default_revision_manager class InitialRevisionManagerMixin(object): def _save_initial_revision(self, obj): # try to load admin try: import_module("%s.admin" % obj.__module__.rsplit('.', 1)[0]) except Impor...
29.208333
74
0.619116
76
701
5.407895
0.513158
0.109489
0.107056
0
0
0
0
0
0
0
0
0.00404
0.293866
701
23
75
30.478261
0.826263
0.044223
0
0
0
0
0.037481
0
0
0
0
0
0
1
0.133333
false
0.066667
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
2096bbd23d6d1eb8cd8c79333789419dd5da64b5
120
py
Python
bind/__init__.py
PowerOlive/bind
dca84228b43b0bf93580d5ae9c4fd1a79bce42c5
[ "MIT" ]
2
2018-07-18T11:37:37.000Z
2019-05-03T11:37:13.000Z
bind/__init__.py
PowerOlive/bind
dca84228b43b0bf93580d5ae9c4fd1a79bce42c5
[ "MIT" ]
3
2018-10-22T15:19:32.000Z
2019-06-01T15:06:26.000Z
bind/__init__.py
PowerOlive/bind
dca84228b43b0bf93580d5ae9c4fd1a79bce42c5
[ "MIT" ]
4
2019-05-03T11:37:21.000Z
2020-08-07T08:10:24.000Z
from .bind import bind # noqa __version__ = '3.0.0' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
30
87
0.725
20
120
4.15
0.85
0
0
0
0
0
0
0
0
0
0
0.041667
0.2
120
3
88
40
0.822917
0.558333
0
0
1
0
0.1
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
2099d8a4a1df272a200a2b4774039e76e7ba0d00
5,909
py
Python
src/beansapplicationmgr.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
src/beansapplicationmgr.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
src/beansapplicationmgr.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 ''' This module consists of three parts: 1.send_beans_email: a function to send email to remind users of their beans. 2.ApplicationMgr: a class that will deal with users' requests about beans application. 3.ApprovalRobot: a automatic robot to examine and approve users' applications. ''' import t...
39.657718
137
0.616517
737
5,909
4.87517
0.272727
0.055664
0.066797
0.066797
0.367103
0.34595
0.320067
0.298358
0.183691
0.155302
0
0.009371
0.259604
5,909
148
138
39.925676
0.811886
0.160433
0
0.256881
0
0.055046
0.237034
0.058549
0
0
0
0
0
1
0.091743
false
0
0.073395
0
0.284404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209a7c9fd12e2cce719dba7f8f99eed34a7d71a3
863
py
Python
Chapter03/Cisco/cisco_nxapi_4.py
stavsta/Mastering-Python-Networking-Second-Edition
9999d2e415a1eb9c653ac3507500da7ddac2b556
[ "MIT" ]
107
2017-03-31T09:39:47.000Z
2022-01-10T17:43:12.000Z
Chapter03/Cisco/cisco_nxapi_4.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
3
2020-03-29T14:14:43.000Z
2020-10-29T18:21:09.000Z
Chapter03/Cisco/cisco_nxapi_4.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
98
2017-02-25T17:55:43.000Z
2022-02-20T19:06:06.000Z
#!/usr/bin/env python3 import requests import json url='http://172.16.1.90/ins' switchuser='cisco' switchpassword='cisco' myheaders={'content-type':'application/json-rpc'} payload=[ { "jsonrpc": "2.0", "method": "cli", "params": { "cmd": "interface ethernet 2/12", "version": 1.2 }, ...
15.981481
113
0.505214
99
863
4.40404
0.505051
0.073395
0.082569
0.137615
0.247706
0.247706
0.247706
0
0
0
0
0.050713
0.26883
863
53
114
16.283019
0.640254
0.024334
0
0.355556
0
0
0.323389
0
0
0
0
0
0
1
0
false
0.044444
0.044444
0
0.044444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209acd05a3b02a15fcea937bc6fde4ebaf25e231
7,684
py
Python
poli/python/poli/modal.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
1
2021-06-15T09:34:24.000Z
2021-06-15T09:34:24.000Z
poli/python/poli/modal.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
poli/python/poli/modal.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
"""This policy contains classes for modal policies. """ import numpy as np from sklearn.cluster import KMeans #from sklearn.svm import SVC, SVR #from sklearn.naive_bayes import GaussianNB from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors.kde import KernelDensity from poli import importance_sa...
34.769231
95
0.593441
975
7,684
4.498462
0.207179
0.05016
0.04446
0.02394
0.166667
0.120839
0.082079
0.060192
0.039216
0.02052
0
0.005999
0.30583
7,684
220
96
34.927273
0.816273
0.154997
0
0.089552
0
0
0.010857
0
0
0
0
0.013636
0
0
null
null
0
0.067164
null
null
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
209ba14e1d9e24a86fee89293a465d6242084374
1,510
py
Python
website/__init__.py
oforiwaasam/bookshub
5c83422971f4abdc5fe18d9b088ed3ca5a230636
[ "MIT" ]
null
null
null
website/__init__.py
oforiwaasam/bookshub
5c83422971f4abdc5fe18d9b088ed3ca5a230636
[ "MIT" ]
null
null
null
website/__init__.py
oforiwaasam/bookshub
5c83422971f4abdc5fe18d9b088ed3ca5a230636
[ "MIT" ]
null
null
null
from os import path, environ from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager # Define a new database below db = SQLAlchemy() DB_NAME = "site.db" login_manager = LoginManager() def create_app(): # database configuration app = Flask(__name__) app.config['...
34.318182
154
0.72649
215
1,510
4.962791
0.474419
0.022493
0.053421
0.050609
0.056232
0
0
0
0
0
0
0
0.190728
1,510
44
155
34.318182
0.873159
0.388742
0
0
0
0
0.175439
0.088816
0
0
0
0
0
1
0.08
false
0
0.28
0
0.4
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209bcc7136e45237b3ef4f72a6a5d6341d1f6455
31
py
Python
ofdft_ml/statslib/data_loader/__init__.py
HamletWantToCode/ofdft-ml
4115405b6f530cdf8956d0b5b353569ce7c09496
[ "MIT" ]
6
2019-01-16T07:00:27.000Z
2022-03-18T07:09:25.000Z
ofdft_ml/statslib/data_loader/__init__.py
HamletWantToCode/ofdft-ml
4115405b6f530cdf8956d0b5b353569ce7c09496
[ "MIT" ]
null
null
null
ofdft_ml/statslib/data_loader/__init__.py
HamletWantToCode/ofdft-ml
4115405b6f530cdf8956d0b5b353569ce7c09496
[ "MIT" ]
null
null
null
from .dataloader import Dataset
31
31
0.870968
4
31
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
31
1
31
31
0.964286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
209bd889393f7e101ff66a22355ff5e0d930a797
1,230
py
Python
python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py
RasmusWL/ql
298f4ab899dcb12414d4fd5112956b82effd140f
[ "MIT" ]
null
null
null
python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py
RasmusWL/ql
298f4ab899dcb12414d4fd5112956b82effd140f
[ "MIT" ]
4
2022-02-17T06:25:43.000Z
2022-02-23T15:55:30.000Z
python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py
jketema/codeql
09578015886a0c59c2d21c9d09d565742803a5a4
[ "MIT" ]
null
null
null
# This test checks that the developer doesn't pass a MIMEText instance to a MIMEMultipart initializer via the subparts parameter. from flask import Flask, request import json import smtplib import ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart app = Flask(__name__) @app.route...
28.604651
129
0.710569
159
1,230
5.333333
0.490566
0.051887
0.03066
0
0
0
0
0
0
0
0
0.007
0.186992
1,230
42
130
29.285714
0.841
0.26748
0
0
0
0
0.146532
0
0
0
0
0
0
1
0.038462
false
0.038462
0.230769
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209d3f8143bb0c9a52bff1f3e1c1e5bf2dd136e1
1,072
py
Python
tests/testOptArg.py
miniufo/xinvert
5fec8586730ec16646304d3eedae1cd501f0673b
[ "MIT" ]
4
2021-05-29T14:56:24.000Z
2022-03-30T11:54:32.000Z
tests/testOptArg.py
miniufo/xinvert
5fec8586730ec16646304d3eedae1cd501f0673b
[ "MIT" ]
null
null
null
tests/testOptArg.py
miniufo/xinvert
5fec8586730ec16646304d3eedae1cd501f0673b
[ "MIT" ]
2
2021-11-22T10:27:21.000Z
2022-03-30T11:54:33.000Z
# -*- coding: utf-8 -*- """ Created on 2020.12.19 @author: MiniUFO Copyright 2018. All rights reserved. Use is subject to license terms. """ #%% load data import xarray as xr import numpy as np nx, ny = 100, 100 gridx = xr.DataArray(np.arange(nx), dims=['X'], coords={'X': np.arange(nx)}) gridy = xr.DataArray(np.aran...
22.808511
80
0.649254
183
1,072
3.79235
0.497268
0.04611
0.040346
0.04611
0.291066
0.213256
0.213256
0.213256
0.123919
0.123919
0
0.046638
0.139925
1,072
46
81
23.304348
0.706074
0.163246
0
0.26087
0
0
0.032731
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209db664ddb0050867ee984f6e1fa194d70e545b
867
py
Python
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
1
2021-09-01T03:16:10.000Z
2021-09-01T03:16:10.000Z
# Generated by Django 3.0.10 on 2021-01-16 00:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0006_auto_20201001_0931'), ] operations = [ migrations.AlterModelOptions( name='auctionlot', options={'orde...
30.964286
134
0.60323
90
867
5.622222
0.577778
0.086957
0.090909
0.106719
0.264822
0.264822
0.264822
0.264822
0.264822
0.264822
0
0.059468
0.262976
867
27
135
32.111111
0.732394
0.053057
0
0.238095
1
0
0.208791
0.028083
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
209dd913bd69c44b411f4ac37d2ead791d37fb9b
1,451
py
Python
scripts/plot_solutions.py
sovrasov/linear_sde_solver
50a7248d9472889523e59c26b1c6448b8ce220da
[ "MIT" ]
null
null
null
scripts/plot_solutions.py
sovrasov/linear_sde_solver
50a7248d9472889523e59c26b1c6448b8ce220da
[ "MIT" ]
null
null
null
scripts/plot_solutions.py
sovrasov/linear_sde_solver
50a7248d9472889523e59c26b1c6448b8ce220da
[ "MIT" ]
null
null
null
import argparse import os import sys import json import pylab as pl import numpy as np def main(args): for solution_file in args.solution_files: with open(solution_file, 'r') as f: print(solution_file) data = json.load(f) t0 = data['t_0'] n_steps = data['n_s...
29.02
98
0.535493
181
1,451
4.127072
0.425414
0.033467
0.064257
0.029451
0.115127
0.069612
0.069612
0.069612
0
0
0
0.008147
0.323225
1,451
49
99
29.612245
0.752546
0
0
0.2
0
0
0.093039
0
0
0
0
0
0.025
1
0.025
false
0
0.15
0
0.175
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
209ef0d114b6e2246d0313cca7bc6428bd8f1b6f
2,275
py
Python
lottery/db/MySqlUtil.py
DEAN-Lee/py_tools
96968a5c5be3fa5e293671588ad7ec75cb0910f8
[ "MIT" ]
null
null
null
lottery/db/MySqlUtil.py
DEAN-Lee/py_tools
96968a5c5be3fa5e293671588ad7ec75cb0910f8
[ "MIT" ]
1
2021-01-08T08:40:54.000Z
2021-01-08T08:40:54.000Z
lottery/db/MySqlUtil.py
DEAN-Lee/py_tools
96968a5c5be3fa5e293671588ad7ec75cb0910f8
[ "MIT" ]
null
null
null
import pymysql import time from lottery.conf import common_data class MySqlUtil: def __init__(self): try: config = common_data.readDBConf() self._conn = pymysql.connect(host=config[0], user=config[1], ...
30.743243
85
0.491429
227
2,275
4.744493
0.440529
0.064995
0.027855
0.035283
0.057567
0.057567
0.057567
0
0
0
0
0.009272
0.383736
2,275
73
86
31.164384
0.758916
0.056703
0
0.153846
0
0
0.043935
0
0
0
0
0
0
1
0.153846
false
0.019231
0.057692
0
0.346154
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
20a178a7f03998c835263b3fd062485db5864e1a
398
py
Python
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-08 15:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('operacion', '0004_turno_hora_inicio'), ] operations = [ migrations.RemoveField( ...
19.9
48
0.61809
44
398
5.363636
0.75
0.084746
0
0
0
0
0
0
0
0
0
0.071918
0.266332
398
19
49
20.947368
0.736301
0.170854
0
0
1
0
0.143731
0.067278
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20a2e7e453f2ab360ec62bed41bb72c2802359a4
1,381
py
Python
utils/py_utils.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
9
2019-09-23T01:56:43.000Z
2022-03-13T17:58:40.000Z
utils/py_utils.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
2
2019-11-18T17:02:30.000Z
2021-07-14T15:47:08.000Z
utils/py_utils.py
KAIST-AILab/PyOpenDial
c9bca653c18ccc082dc8b86b4a8feee9ed00a75b
[ "MIT" ]
1
2022-02-08T06:41:19.000Z
2022-02-08T06:41:19.000Z
import time import threading def current_time_millis(): return int(round(time.time() * 1000)) def get_class(kls): parts = kls.split('.') module = ".".join(parts[:-1]) m = __import__(module) for comp in parts[1:]: m = getattr(m, comp) return m def get_class_name(instance): retur...
24.22807
116
0.616944
165
1,381
4.757576
0.315152
0.035669
0.042038
0.038217
0
0
0
0
0
0
0
0.005687
0.236061
1,381
56
117
24.660714
0.738389
0
0
0
0
0
0.015206
0
0.027027
0
0
0
0
1
0.243243
false
0
0.081081
0.081081
0.621622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
20a392002d1e2c2127d30a148baaa0e429a4ea95
2,493
py
Python
interestCalculatorNew.py
Heliodex/PythonCalculators
ab360d79b9e0a503fbb34adfdfa2e2e557097aad
[ "Unlicense" ]
null
null
null
interestCalculatorNew.py
Heliodex/PythonCalculators
ab360d79b9e0a503fbb34adfdfa2e2e557097aad
[ "Unlicense" ]
null
null
null
interestCalculatorNew.py
Heliodex/PythonCalculators
ab360d79b9e0a503fbb34adfdfa2e2e557097aad
[ "Unlicense" ]
null
null
null
# Heliodex 2021/08/24 # Last edited 2022/02/16 -- count number of steps and add reverse mode # edit of vatRemover # uses Short Method print("Calculates amount after adding a percentage a number of times") while True: c = input("1 for normal, 2 for reverse, 3 for catchup ") if c == "1": val =...
28.011236
71
0.441637
279
2,493
3.946237
0.322581
0.090827
0.024523
0.032698
0.161671
0.070845
0.070845
0.070845
0.070845
0
0
0.060797
0.425993
2,493
88
72
28.329545
0.708595
0.087445
0
0.454545
0
0
0.190717
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20a3b0acfd3632b1e52670412907b6db19696003
2,623
py
Python
src/pylexibank/commands/init_profile.py
martino-vic/pylexibank
eefbfbb1754e85264a9fe98fefbcf5df254ad19a
[ "Apache-2.0" ]
6
2019-11-04T09:15:34.000Z
2022-02-19T23:02:51.000Z
src/pylexibank/commands/init_profile.py
martino-vic/pylexibank
eefbfbb1754e85264a9fe98fefbcf5df254ad19a
[ "Apache-2.0" ]
228
2018-04-13T09:39:20.000Z
2022-03-08T23:30:46.000Z
src/pylexibank/commands/init_profile.py
martino-vic/pylexibank
eefbfbb1754e85264a9fe98fefbcf5df254ad19a
[ "Apache-2.0" ]
5
2019-07-10T04:53:15.000Z
2022-03-07T01:43:23.000Z
""" Create an initial orthography profile, seeded from the forms created by a first run of lexibank.makecldf. """ from lingpy import Wordlist from lingpy.sequence import profile from cldfbench.cli_util import get_dataset, add_catalog_spec from csvw.dsv import UnicodeWriter from clldutils.clilib import ParserError from...
33.628205
97
0.629813
324
2,623
4.981481
0.429012
0.039033
0.052664
0.035316
0.053903
0
0
0
0
0
0
0.002006
0.239802
2,623
77
98
34.064935
0.806921
0.040031
0
0.203125
0
0
0.258566
0.008765
0
0
0
0
0
1
0.03125
false
0.015625
0.09375
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20a60c00e978fa11291e28ff7b092caf77628614
9,537
py
Python
Source/ThirdParty/angle/testing/legion/lib/rpc/jsonrpclib.py
elix22/Urho3D
99902ae2a867be0d6dbe4c575f9c8c318805ec64
[ "MIT" ]
20
2019-04-18T07:37:34.000Z
2022-02-02T21:43:47.000Z
testing/legion/lib/rpc/jsonrpclib.py
lyapple2008/webrtc_simplify
c4f9bdc72d8e2648c4f4b1934d22ae94a793b553
[ "BSD-3-Clause" ]
11
2019-10-21T13:39:41.000Z
2021-11-05T08:11:54.000Z
testing/legion/lib/rpc/jsonrpclib.py
lyapple2008/webrtc_simplify
c4f9bdc72d8e2648c4f4b1934d22ae94a793b553
[ "BSD-3-Clause" ]
1
2021-12-03T18:11:36.000Z
2021-12-03T18:11:36.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module to implement the JSON-RPC protocol. This module uses xmlrpclib as the base and only overrides those portions that implement the XML-RPC protocol. ...
25.5
79
0.676838
1,218
9,537
5.215928
0.201149
0.028648
0.011333
0.014324
0.264914
0.23784
0.225878
0.190619
0.190619
0.168267
0
0.004209
0.227745
9,537
373
80
25.568365
0.858384
0.360386
0
0.179775
0
0
0.108506
0
0
0
0
0
0
1
0.11236
false
0.005618
0.016854
0.022472
0.241573
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20a8a073cd2c94b8099ac2c571da041af73d129b
21,838
py
Python
src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
neeker/chromium_extract
0f9a0206a1876e98cf69e03869983e573138284c
[ "BSD-3-Clause" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
neeker/chromium_extract
0f9a0206a1876e98cf69e03869983e573138284c
[ "BSD-3-Clause" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
neeker/chromium_extract
0f9a0206a1876e98cf69e03869983e573138284c
[ "BSD-3-Clause" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function import collections import multiprocessing import optparse import os import platform import re ...
34.773885
81
0.61512
2,630
21,838
4.969962
0.228137
0.056767
0.050493
0.051718
0.285824
0.231275
0.193941
0.170148
0.120572
0.08538
0
0.017109
0.250572
21,838
627
82
34.829346
0.781559
0.123912
0
0.343496
0
0
0.391309
0.102165
0
0
0
0.001595
0.002033
1
0.018293
false
0.002033
0.020325
0
0.073171
0.03252
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20ab340c51fea34db17694c288889d5ae11f982b
340
py
Python
res_cookie.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
1
2022-03-29T16:01:41.000Z
2022-03-29T16:01:41.000Z
res_cookie.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
null
null
null
res_cookie.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
1
2022-03-29T16:02:10.000Z
2022-03-29T16:02:10.000Z
import requests # 处理cookie的一个模板 # 会话 session = requests.session() data = { "账号" : "########", "密码" : "########" } url = "" res = session.post(url, data=data) print(res.text) res = session.get(url) # resquests header = { "user-agent" : "dddd", "Cookie" : "url" } resp = requests.get(url,headers=heade...
14.166667
39
0.576471
40
340
4.9
0.55
0.102041
0
0
0
0
0
0
0
0
0
0
0.197059
340
24
40
14.166667
0.717949
0.076471
0
0
0
0
0.13871
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
20af13f324e132c3a20d60cbd72a4f1adb5b9083
13,891
py
Python
Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
null
null
null
Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
null
null
null
Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """process which runs inside the docker daemon the purpose of the doctor damon process is to allow the set up of an environment which will support the deep speech recognition engine to run on any recent nvidia Ubuntu host. the basic operation of the demon is to create a named pipe in the users...
35.346056
146
0.608452
1,707
13,891
4.85413
0.281781
0.013034
0.017258
0.013275
0.126599
0.101497
0.076515
0.058895
0.050205
0.028723
0
0.010694
0.299906
13,891
392
147
35.436224
0.841337
0.257649
0
0.228782
0
0.00738
0.12505
0.009443
0
0
0
0.002551
0
1
0.051661
false
0
0.03321
0
0.118081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b0cb026df5e39e3d7cf7213155978963ec27ea
314
py
Python
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
2
2019-12-05T08:39:34.000Z
2019-12-26T15:45:10.000Z
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
null
null
null
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
null
null
null
from intcode import * def solve(instr, part): input_instruction = 1 if part == 1 else 5 comp = Computer(instr, len(instr)) comp.receive(input_instruction) comp.run() return comp.out_queue[-1] instructions = read_intcode_input(5) print(solve(instructions, 1)) print(solve(instructions, 2))
19.625
45
0.703822
44
314
4.909091
0.568182
0.148148
0.203704
0
0
0
0
0
0
0
0
0.027132
0.178344
314
15
46
20.933333
0.810078
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.2
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20b1b21ec139b97e272ccfb76245282c96f81627
3,736
py
Python
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
7
2017-04-26T20:49:46.000Z
2017-06-02T01:08:00.000Z
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
9
2017-04-26T16:22:59.000Z
2018-07-16T18:21:50.000Z
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
11
2017-06-02T03:46:29.000Z
2019-02-27T21:20:06.000Z
import logging import threading import time import pinylib log = logging.getLogger(__name__) def main(): room_name = raw_input('Enter room name: ').strip() if pinylib.CONFIG.ACCOUNT and pinylib.CONFIG.PASSWORD: client = pinylib.TinychatRTCClient(room=room_name, account=pinylib.CONFIG.ACCOUNT, ...
38.122449
118
0.523287
412
3,736
4.589806
0.262136
0.063987
0.034373
0.033845
0.222634
0.101534
0
0
0
0
0
0.003339
0.358672
3,736
97
119
38.515464
0.785893
0
0
0.206897
0
0.011494
0.109743
0
0
0
0
0
0
1
0.011494
false
0.103448
0.045977
0
0.057471
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20b1e4ce9fc466a2b7e51f104d05fa8d81c11041
23,645
py
Python
nifpga/session.py
auchter/nifpga-python
d24ac338ec9b9d1bb94f1c8b8d06643670289e9e
[ "MIT" ]
null
null
null
nifpga/session.py
auchter/nifpga-python
d24ac338ec9b9d1bb94f1c8b8d06643670289e9e
[ "MIT" ]
null
null
null
nifpga/session.py
auchter/nifpga-python
d24ac338ec9b9d1bb94f1c8b8d06643670289e9e
[ "MIT" ]
1
2020-09-19T15:44:08.000Z
2020-09-19T15:44:08.000Z
""" Session, a convenient wrapper around the low-level _NiFpga class. Copyright (c) 2017 National Instruments """ from .nifpga import (_SessionType, _IrqContextType, _NiFpga, DataType, OPEN_ATTRIBUTE_NO_RUN, RUN_ATTRIBUTE_WAIT_UNTIL_DONE, CLOSE_ATTRIBUTE_NO_RESET_IF_LAST_SESS...
39.806397
102
0.587735
2,620
23,645
5.080916
0.144656
0.026442
0.030048
0.014874
0.464393
0.40302
0.361403
0.31543
0.268179
0.244967
0
0.00456
0.341552
23,645
593
103
39.873524
0.850472
0.356143
0
0.309028
0
0
0.047844
0.005308
0
0
0.000727
0
0.038194
1
0.128472
false
0.006944
0.024306
0.003472
0.246528
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b1f01b27ef48f6d139f9138e4bcf3552657d52
1,822
py
Python
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
TOTAL = 1000 def calc_stats(defRat, eleRat, resRat, p = True): DEF = TOTAL * (0.75 + 0.025 * defRat) OFF = TOTAL - DEF ENE = OFF * (0.5 + 0.05 * eleRat) STR = OFF - ENE RES = DEF * (0.167 + 0.033 * resRat) HP = DEF - RES if p: print "" print "" print "HP: " + str(HP) print "STR: " + str(STR) pri...
18.039604
68
0.588913
294
1,822
3.557823
0.29932
0.053537
0.037285
0.026769
0.14914
0.14914
0.14914
0.14914
0.14914
0.14914
0
0.036711
0.25247
1,822
101
69
18.039604
0.731278
0
0
0.304348
0
0
0.216676
0
0
0
0
0
0
0
null
null
0
0
null
null
0.246377
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
20b28d884d7b7314d9f1c0fd125fd2bca1b74c56
2,439
py
Python
in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py
Acidburn0zzz/chrome-app-samples
53c3184d3ff210918a5d9c7420dd2a92c0870cf5
[ "Apache-2.0" ]
16
2019-08-08T02:04:54.000Z
2019-10-15T17:52:36.000Z
in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py
Acidburn0zzz/chrome-app-samples
53c3184d3ff210918a5d9c7420dd2a92c0870cf5
[ "Apache-2.0" ]
null
null
null
in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py
Acidburn0zzz/chrome-app-samples
53c3184d3ff210918a5d9c7420dd2a92c0870cf5
[ "Apache-2.0" ]
8
2015-07-04T07:24:08.000Z
2020-04-27T02:23:49.000Z
""" JSON Web Token implementation Minimum implementation based on this spec: http://self-issued.info/docs/draft-jones-json-web-token-01.html """ import base64 import hashlib import hmac try: import json except ImportError: import simplejson as json __all__ = ['encode', 'decode', 'DecodeError'] class Dec...
33.410959
89
0.678147
280
2,439
5.782143
0.332143
0.046325
0.022236
0.029648
0.25386
0.25386
0.165534
0.059296
0
0
0
0.030025
0.194342
2,439
72
90
33.875
0.793893
0.056171
0
0.206897
0
0
0.091979
0
0
0
0
0
0
1
0.086207
false
0.017241
0.103448
0.017241
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b37fe078b398c2a89ecdde10b0aa1f69e2a0fc
4,931
py
Python
app/models/attribute.py
hack4impact/women-veterans-rock
7de5f5645819dbe67ba71a1f0b29f84a45e35789
[ "MIT" ]
16
2015-10-26T20:30:35.000Z
2017-02-01T01:45:35.000Z
app/models/attribute.py
hack4impact/women-veterans-rock
7de5f5645819dbe67ba71a1f0b29f84a45e35789
[ "MIT" ]
34
2015-10-21T02:58:42.000Z
2017-02-24T06:57:07.000Z
app/models/attribute.py
hack4impact/women-veterans-rock
7de5f5645819dbe67ba71a1f0b29f84a45e35789
[ "MIT" ]
1
2015-10-23T21:32:28.000Z
2015-10-23T21:32:28.000Z
from .. import db user_tag_associations_table = db.Table( 'user_tag_associations', db.Model.metadata, db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')), db.Column('user_id', db.Integer, db.ForeignKey('users.id')) ) resource_tag_associations_table = db.Table( 'resource_tag_associations', db.Mod...
33.773973
78
0.608801
557
4,931
5.210054
0.235189
0.027567
0.022743
0.043418
0.5255
0.472433
0.464507
0.435562
0.435562
0.401103
0
0.002302
0.295275
4,931
145
79
34.006897
0.832806
0.164875
0
0.484848
0
0
0.120733
0.017068
0
0
0
0
0
1
0.080808
false
0
0.030303
0.010101
0.323232
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b557e25c85bd79516024b5db25efc8be4b20b6
2,631
py
Python
python/wlu_lr/CNN.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/wlu_lr/CNN.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/wlu_lr/CNN.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import matplotlib.pyplot as plt import numpy x = torch.unsqueeze(torch.linspace(-1, 1, 300), dim=1) # x data (tensor), shape=(100, 1) print(x) y = x.pow(2) + 0.2 * torch.rand(x.size()) # noisy y data (tensor), shape=(100, 1) plt.scatter(x.data.numpy(), y.data.numpy()) plt...
32.085366
113
0.625618
394
2,631
4.106599
0.365482
0.100124
0.049444
0.04759
0.295426
0.255253
0.255253
0.227441
0.207046
0.18665
0
0.153668
0.1813
2,631
81
114
32.481481
0.597493
0.303307
0
0.116279
0
0
0.012871
0
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.186047
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b5b58aed3d21c4c4915daa30f4e8dbda82f3a5
650
py
Python
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
import codewars_test as test def persistence(n): times = 0 if len(str(n)) == 1: return times else: while len(str(n)) > 1: multiple = 1 for x in str(n): multiple *= int(x) times += 1 n = multiple return times # import o...
23.214286
59
0.556923
93
650
3.83871
0.397849
0.044818
0.179272
0.302521
0.056022
0
0
0
0
0
0
0.049107
0.310769
650
28
60
23.214286
0.747768
0.224615
0
0.111111
0
0
0.022133
0
0
0
0
0
0.222222
1
0.055556
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20b5d321129450b24c961028f4c4a899c4e5b34f
7,440
py
Python
mechanic/modifier.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
mechanic/modifier.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
mechanic/modifier.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
""" kinds of modifiers 1. Ability Passive - stat mods - act damage up/down - punisher 2. Action condtion (and Aura) - there's a lot of crap here but they r all additive if same field - str aura is same as _RateAttack - certain fields (crit, crit dmg, punisher) are same bracket for w/e reason 3. hitattr - independent...
32.920354
135
0.562366
899
7,440
4.48832
0.182425
0.035688
0.011896
0.021809
0.319207
0.263445
0.202478
0.183147
0.183147
0.183147
0
0.009781
0.299194
7,440
225
136
33.066667
0.764097
0.476478
0
0.042553
0
0
0.052895
0.006316
0
0
0
0
0
1
0.085106
false
0.031915
0.138298
0.021277
0.37234
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b7cdbf4698fba9cb58486cf5f4749c946cfd11
4,154
py
Python
ino/argparsing.py
qguv/ino
f23ee5cb14edc30ec087d3eab7b301736da42362
[ "MIT" ]
558
2015-01-02T08:12:53.000Z
2022-03-08T17:13:26.000Z
ino/argparsing.py
jboone/ino
4798827272f6b3916f1fb887e42538a976789d90
[ "MIT" ]
84
2015-01-01T11:17:27.000Z
2021-02-11T02:40:23.000Z
ino/argparsing.py
jboone/ino
4798827272f6b3916f1fb887e42538a976789d90
[ "MIT" ]
176
2015-01-14T08:59:39.000Z
2021-06-24T07:41:31.000Z
# -*- coding: utf-8; -*- # Stolen from: http://bugs.python.org/issue12806 import argparse import re import textwrap class FlexiFormatter(argparse.RawTextHelpFormatter): """FlexiFormatter which respects new line formatting and wraps the rest Example: >>> parser = argparse.ArgumentParser(formatter_...
41.54
78
0.553683
485
4,154
4.676289
0.315464
0.018519
0.017196
0.022487
0.572751
0.55776
0.55776
0.55776
0.55776
0.55776
0
0.006818
0.364468
4,154
99
79
41.959596
0.852273
0.547424
0
0
0
0
0.356109
0.013897
0
0
0
0
0
1
0.027027
false
0
0.081081
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b85e774f4f333362b32f59f4d25bf560a3cebc
6,997
py
Python
NN_buildingblock/ConvNN.py
xupingxie/deep-learning-models
cc76aedf9631317452f9cd7df38998e2de727816
[ "MIT" ]
null
null
null
NN_buildingblock/ConvNN.py
xupingxie/deep-learning-models
cc76aedf9631317452f9cd7df38998e2de727816
[ "MIT" ]
null
null
null
NN_buildingblock/ConvNN.py
xupingxie/deep-learning-models
cc76aedf9631317452f9cd7df38998e2de727816
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This script contains basic functions for Conv Neural Nets. foward conv and pooling backward conv and pooling @author: xuping """ import numpy as np import h5py import matplotlib.pyplot as plt def Conv_forward(A_prev, W, b, para): ''' This is the forward prop...
33.319048
103
0.489924
991
6,997
3.349142
0.133199
0.045194
0.01627
0.012052
0.483579
0.423019
0.35824
0.333534
0.332329
0.264236
0
0.007
0.387452
6,997
210
104
33.319048
0.767382
0.277976
0
0.490385
0
0
0.016897
0
0
0
0
0
0.038462
1
0.038462
false
0
0.028846
0
0.105769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20b8bb3fcf2671b92bff3531ad074b19f746b4aa
6,682
py
Python
00_core.py
DanyWind/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
5
2020-01-28T22:28:36.000Z
2020-02-22T07:04:52.000Z
00_core.py
DanyWind/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
2
2021-09-28T00:42:24.000Z
2022-02-26T06:26:10.000Z
00_core.py
dhuynh95/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
2
2020-04-28T05:00:38.000Z
2020-12-04T09:08:03.000Z
#!/usr/bin/env python # coding: utf-8 # In[1]: #hide get_ipython().run_line_magic('load_ext', 'autoreload') get_ipython().run_line_magic('autoreload', '2') # In[2]: # default_exp core # In[3]: #export from nbdev.export import check_re,read_nb from pathlib import Path import re import os import platform # #...
20.623457
99
0.652649
935
6,682
4.549733
0.232086
0.028444
0.028444
0.054302
0.294076
0.248237
0.248002
0.22661
0.22661
0.22661
0
0.00719
0.229871
6,682
323
100
20.687307
0.819471
0.150554
0
0.213235
0
0.022059
0.326061
0
0
0
0
0
0
1
0.066176
false
0.073529
0.102941
0
0.227941
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20b99c84a1d02922ac3d349c7b10e48dcaede0db
4,974
py
Python
nnf/dsharp.py
vishalbelsare/python-nnf
c2e81fd7851a3d11fff904bf5b4c5e521fde59ab
[ "0BSD" ]
14
2020-07-14T01:51:26.000Z
2021-12-17T22:45:47.000Z
nnf/dsharp.py
vishalbelsare/python-nnf
c2e81fd7851a3d11fff904bf5b4c5e521fde59ab
[ "0BSD" ]
26
2020-07-14T23:37:52.000Z
2021-11-04T18:06:38.000Z
nnf/dsharp.py
vishalbelsare/python-nnf
c2e81fd7851a3d11fff904bf5b4c5e521fde59ab
[ "0BSD" ]
7
2020-07-26T10:53:21.000Z
2021-09-19T00:35:30.000Z
"""Interoperability with `DSHARP <https://github.com/QuMuLab/dsharp>`_. ``load`` and ``loads`` can be used to parse files created by DSHARP's ``-Fnnf`` option. ``compile`` invokes DSHARP directly to compile a sentence. This requires having DSHARP installed. The parser was derived by studying DSHARP's output and sour...
32.090323
79
0.621431
679
4,974
4.505155
0.346097
0.038248
0.007846
0.010788
0.099379
0.090226
0.066688
0.054266
0.035306
0.035306
0
0.004646
0.264375
4,974
154
80
32.298701
0.831375
0.297346
0
0.106383
0
0
0.095182
0
0
0
0
0
0.010638
1
0.042553
false
0
0.074468
0
0.202128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20ba293476d59761a6ef6fe44c77fac5699f68be
4,513
py
Python
stats/offense.py
wisarut-sirimart/Python-Baseball
f794455d4a217d7684bd86fdff19d1706bf7aab2
[ "MIT" ]
null
null
null
stats/offense.py
wisarut-sirimart/Python-Baseball
f794455d4a217d7684bd86fdff19d1706bf7aab2
[ "MIT" ]
null
null
null
stats/offense.py
wisarut-sirimart/Python-Baseball
f794455d4a217d7684bd86fdff19d1706bf7aab2
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from data import games # Select All Plays # In the file called offense.py in the stats folder you will find similar imports as the last module. # Import the games DataFrame from data. # Now that we have access to the games DataFrame. # Select all rows that have a type...
65.405797
239
0.731886
727
4,513
4.511692
0.287483
0.03628
0.039024
0.012805
0.120732
0.064634
0.064634
0.064634
0.043902
0.017683
0
0
0.15821
4,513
68
240
66.367647
0.863385
0.779526
0
0
0
0
0.253165
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20bada261f2bc5bee2c060bfdfd13f8adc62d780
2,156
py
Python
tests/gmprocess/io/read_test.py
baagaard-usgs/groundmotion-processing
6be2b4460d598bba0935135efa85af2655578565
[ "Unlicense" ]
54
2019-01-12T02:05:38.000Z
2022-03-29T19:43:56.000Z
tests/gmprocess/io/read_test.py
baagaard-usgs/groundmotion-processing
6be2b4460d598bba0935135efa85af2655578565
[ "Unlicense" ]
700
2018-12-18T19:44:31.000Z
2022-03-30T20:54:28.000Z
tests/gmprocess/io/read_test.py
baagaard-usgs/groundmotion-processing
6be2b4460d598bba0935135efa85af2655578565
[ "Unlicense" ]
41
2018-11-29T23:17:56.000Z
2022-03-31T04:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # stdlib imports import os from gmprocess.io.read import read_data, _get_format, _validate_format from gmprocess.utils.test_utils import read_data_dir from gmprocess.utils.config import get_config def test_read(): config = get_config() cosmos_files, _ = read_dat...
35.344262
88
0.670223
286
2,156
4.688811
0.29021
0.089485
0.05742
0.071588
0.278896
0.234154
0.119314
0.071588
0.071588
0
0
0.056549
0.196197
2,156
60
89
35.933333
0.717253
0.033395
0
0.130435
0
0
0.157692
0.025
0
0
0
0
0.173913
1
0.021739
false
0.021739
0.086957
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20be3885a4f5f899c0e126b28f81e284e4b6e23c
633
py
Python
tests/syft/lib/torch/device_test.py
JMLourier/PySyft
065a862ca061f9a526af81db5b3ee0d39d4f6407
[ "MIT" ]
2
2020-03-06T15:51:52.000Z
2020-03-08T13:14:24.000Z
tests/syft/lib/torch/device_test.py
JMLourier/PySyft
065a862ca061f9a526af81db5b3ee0d39d4f6407
[ "MIT" ]
5
2020-12-03T21:06:20.000Z
2020-12-31T03:46:57.000Z
tests/syft/lib/torch/device_test.py
JMLourier/PySyft
065a862ca061f9a526af81db5b3ee0d39d4f6407
[ "MIT" ]
1
2020-12-05T07:22:27.000Z
2020-12-05T07:22:27.000Z
# third party import torch as th # syft absolute import syft as sy from syft.core.common.uid import UID from syft.lib.python import String def test_device() -> None: device = th.device("cuda") assert device.type == "cuda" assert device.index is None def test_device_init() -> None: bob = sy.VirtualM...
23.444444
59
0.709321
90
633
4.8
0.444444
0.090278
0.060185
0
0
0
0
0
0
0
0
0.001938
0.184834
633
26
60
24.346154
0.835271
0.039494
0
0
0
0
0.049587
0
0
0
0
0
0.235294
1
0.117647
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20bf152d1098acb69e542429f3dd7a20635a56bc
8,495
py
Python
clu/periodic_actions_test.py
andsteing/CommonLoopUtils
b39e992f60d041bc77809d859586027700a2c3a9
[ "Apache-2.0" ]
80
2020-10-11T17:37:52.000Z
2022-03-30T17:17:05.000Z
clu/periodic_actions_test.py
andsteing/CommonLoopUtils
b39e992f60d041bc77809d859586027700a2c3a9
[ "Apache-2.0" ]
22
2020-12-18T15:12:04.000Z
2021-09-24T08:10:23.000Z
clu/periodic_actions_test.py
andsteing/CommonLoopUtils
b39e992f60d041bc77809d859586027700a2c3a9
[ "Apache-2.0" ]
10
2020-10-13T16:35:30.000Z
2022-02-08T21:00:00.000Z
# Copyright 2021 The CLU Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
30.339286
80
0.671218
1,222
8,495
4.491817
0.211129
0.043724
0.038076
0.02423
0.566406
0.472035
0.435598
0.386774
0.322463
0.300055
0
0.036238
0.213891
8,495
279
81
30.448029
0.785714
0.143967
0
0.512077
0
0.014493
0.065653
0
0
0
0
0
0.15942
1
0.111111
false
0.004831
0.028986
0.004831
0.169082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20c0713b32c4e888c8d8eba2e53d1e750e99ff54
570
py
Python
_scripts/tools/utils/frontmatter_getter.py
gogntao/gogntao.github.io
ee200345d39521652b8c1cf9d27bcc2a6e02f3ef
[ "MIT" ]
null
null
null
_scripts/tools/utils/frontmatter_getter.py
gogntao/gogntao.github.io
ee200345d39521652b8c1cf9d27bcc2a6e02f3ef
[ "MIT" ]
null
null
null
_scripts/tools/utils/frontmatter_getter.py
gogntao/gogntao.github.io
ee200345d39521652b8c1cf9d27bcc2a6e02f3ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Read the posts and return a tuple that consisting of Front Matter and its line number. © 2018-2019 Cotes Chung MIT License ''' def get_yaml(path): end = False yaml = "" num = 0 with open(path, 'r') as f: for line in f.readlines(): ...
18.387097
52
0.452632
68
570
3.794118
0.764706
0.054264
0
0
0
0
0
0
0
0
0
0.034483
0.440351
570
30
53
19
0.77116
0.289474
0
0.125
0
0
0.010101
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20c17791d1b4f3f9764ce5a02c3f17aa3c7d9e44
1,014
py
Python
main/cart.py
Dogechi/Me2U
0852600983dc1058ee347f4065ee801e16c1249e
[ "MIT" ]
null
null
null
main/cart.py
Dogechi/Me2U
0852600983dc1058ee347f4065ee801e16c1249e
[ "MIT" ]
9
2020-06-06T01:16:25.000Z
2021-06-04T23:20:37.000Z
main/cart.py
Me2U-Afrika/Me2U
aee054afedff1e6c87f87494eaddf044e217aa95
[ "MIT" ]
null
null
null
from django.conf import settings from django.db.models import Max from datetime import datetime, timedelta from me2ushop.models import Order, OrderItem def remove_old_cart_items(): print('Removing old carts') print('session age:', settings.SESSION_AGE_DAYS) # calculate date of session age days ago rem...
36.214286
90
0.708087
145
1,014
4.731034
0.406897
0.05102
0.061224
0.087464
0
0
0
0
0
0
0
0.001208
0.183432
1,014
27
91
37.555556
0.827295
0.088757
0
0
0
0
0.102063
0
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.227273
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20c351d08261a89f6671fb61ae44dfb0f32ca3f0
3,658
py
Python
tasks/python3/processTemporalLayer.py
greck2908/worldview
d17c463080218ce0a3d922be3dc8da5152860391
[ "NASA-1.3" ]
1
2021-03-01T22:10:14.000Z
2021-03-01T22:10:14.000Z
tasks/python3/processTemporalLayer.py
greck2908/worldview
d17c463080218ce0a3d922be3dc8da5152860391
[ "NASA-1.3" ]
4
2021-12-03T00:01:57.000Z
2022-03-22T21:01:34.000Z
tasks/python3/processTemporalLayer.py
greck2908/worldview
d17c463080218ce0a3d922be3dc8da5152860391
[ "NASA-1.3" ]
null
null
null
from datetime import datetime import isodate import re import traceback def to_list(val): return [val] if not hasattr(val, 'reverse') else val # Add duration to end date using # ISO 8601 duration keys def determine_end_date(key, date): return date + isodate.parse_duration(key) # This method takes a layer and...
49.432432
161
0.541006
455
3,658
4.204396
0.224176
0.054888
0.021955
0.034501
0.355985
0.315212
0.291166
0.187663
0.104548
0.041819
0
0.007764
0.29579
3,658
73
162
50.109589
0.73486
0.038272
0
0.19697
0
0
0.121549
0
0
0
0
0
0
1
0.045455
false
0
0.060606
0.030303
0.151515
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20c46aef8b21547d823f1dda228583f79f1a470c
1,162
py
Python
baal/active/__init__.py
llv22/baal_tf2.4_mac
6eed225f8b57e61d8d16b1868ea655384c566700
[ "Apache-2.0" ]
575
2019-09-30T20:44:28.000Z
2022-03-27T17:39:22.000Z
baal/active/__init__.py
llv22/baal_tf2.4_mac
6eed225f8b57e61d8d16b1868ea655384c566700
[ "Apache-2.0" ]
84
2019-10-01T15:58:55.000Z
2022-03-28T13:27:32.000Z
baal/active/__init__.py
llv22/baal_tf2.4_mac
6eed225f8b57e61d8d16b1868ea655384c566700
[ "Apache-2.0" ]
51
2019-10-08T23:05:39.000Z
2022-02-14T22:13:27.000Z
from typing import Union, Callable from . import heuristics from .active_loop import ActiveLearningLoop from .dataset import ActiveLearningDataset from .file_dataset import FileDataset def get_heuristic( name: str, shuffle_prop: float = 0.0, reduction: Union[str, Callable] = "none", **kwargs ) -> heuristics.Abst...
33.2
92
0.69191
117
1,162
6.803419
0.470085
0.055276
0.040201
0.062814
0
0
0
0
0
0
0
0.002186
0.212565
1,162
34
93
34.176471
0.86776
0.273666
0
0
0
0
0.08125
0
0
0
0
0
0
1
0.052632
false
0
0.263158
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
20c55612c6dde9a99bf02d10377bbecda4d7f7ce
1,916
py
Python
migrations/versions/e454b1597ab0_.py
Maybells/PostClassical
cbb45add86463deb942825d3c792bc8b6dcdd29b
[ "MIT" ]
null
null
null
migrations/versions/e454b1597ab0_.py
Maybells/PostClassical
cbb45add86463deb942825d3c792bc8b6dcdd29b
[ "MIT" ]
null
null
null
migrations/versions/e454b1597ab0_.py
Maybells/PostClassical
cbb45add86463deb942825d3c792bc8b6dcdd29b
[ "MIT" ]
null
null
null
"""empty message Revision ID: e454b1597ab0 Revises: Create Date: 2021-01-19 11:50:17.899068 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e454b1597ab0' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
40.765957
86
0.693111
252
1,916
4.984127
0.269841
0.047771
0.101911
0.127389
0.558917
0.511147
0.511147
0.479299
0.375796
0.300955
0
0.021661
0.132568
1,916
46
87
41.652174
0.734055
0.147704
0
0.214286
0
0
0.302005
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
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
20c5797dd314a61d66fc031c71f6307cee019dde
81
py
Python
miniquora/qac/apps.py
rochakgupta/miniquora
341722806c6d42c7cc1ecfe6ff0254f11e9370c7
[ "MIT" ]
null
null
null
miniquora/qac/apps.py
rochakgupta/miniquora
341722806c6d42c7cc1ecfe6ff0254f11e9370c7
[ "MIT" ]
6
2020-06-05T19:47:55.000Z
2022-03-11T23:38:53.000Z
miniquora/qac/apps.py
rochakgupta/miniquora
341722806c6d42c7cc1ecfe6ff0254f11e9370c7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class QacConfig(AppConfig): name = 'qac'
13.5
33
0.728395
10
81
5.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.185185
81
5
34
16.2
0.893939
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
20c609aa615f44f48228ba80019cfecbd7a032e3
3,249
py
Python
config/application.py
dlsaavedra/Web-API
b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9
[ "MIT" ]
null
null
null
config/application.py
dlsaavedra/Web-API
b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9
[ "MIT" ]
null
null
null
config/application.py
dlsaavedra/Web-API
b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9
[ "MIT" ]
null
null
null
from os import getenv from pathlib import Path from dotenv import load_dotenv base_path = Path('.') # Fully qualified path to the project root env_path = base_path / '.env' # Fully qualified path to the enviroment file app_path = base_path.joinpath('app') # The fully qualified path to the app fold...
48.492537
100
0.492767
324
3,249
4.882716
0.429012
0.018963
0.05689
0.063211
0.078382
0.049305
0
0
0
0
0
0.000751
0.180055
3,249
66
101
49.227273
0.593093
0.73715
0
0
0
0
0.152416
0
0
0
0
0
0
1
0
false
0
0.176471
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
20c6bab3994c954ecffd3763529c8895304de913
72,964
py
Python
versioned_hdf5/tests/test_api.py
Quansight/versioned-hdf5
e2d2eb2bbe2eed851239ee9d1ed7a9cf5cee3c55
[ "BSD-3-Clause" ]
9
2019-12-12T16:04:03.000Z
2020-06-09T05:18:21.000Z
versioned_hdf5/tests/test_api.py
Quansight/versioned-hdf5
e2d2eb2bbe2eed851239ee9d1ed7a9cf5cee3c55
[ "BSD-3-Clause" ]
64
2019-12-13T18:43:13.000Z
2020-06-11T15:58:07.000Z
versioned_hdf5/tests/test_api.py
Quansight/versioned-hdf5
e2d2eb2bbe2eed851239ee9d1ed7a9cf5cee3c55
[ "BSD-3-Clause" ]
3
2020-02-11T18:53:47.000Z
2020-03-10T21:52:43.000Z
import os import itertools from pytest import raises, mark import h5py import datetime import numpy as np from numpy.testing import assert_equal from .helpers import setup_vfile from ..backend import DEFAULT_CHUNK_SIZE from ..api import VersionedHDF5File from ..versions import TIMESTAMP_FMT from ..wrappers import ...
39.249059
118
0.638932
9,825
72,964
4.540662
0.044478
0.058818
0.076392
0.057428
0.81366
0.756075
0.697077
0.637676
0.605465
0.569936
0
0.044127
0.201483
72,964
1,858
119
39.270183
0.721573
0.040678
0
0.500368
0
0
0.175925
0.033266
0
0
0
0
0.456954
1
0.038999
false
0.001472
0.009566
0
0.048565
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3