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
8a1b09eb4dfb79ddde533fd25bb7158a5f78b8d9
5,519
py
Python
utils/model_saving.py
SapanaChaudhary/PyTorch-CPO
7060490d6641175758529a67916945804d8df2d1
[ "MIT" ]
13
2021-10-19T19:45:28.000Z
2022-03-13T20:48:49.000Z
utils/model_saving.py
SapanaChaudhary/PyTorch-CPO
7060490d6641175758529a67916945804d8df2d1
[ "MIT" ]
null
null
null
utils/model_saving.py
SapanaChaudhary/PyTorch-CPO
7060490d6641175758529a67916945804d8df2d1
[ "MIT" ]
2
2022-03-01T20:40:31.000Z
2022-03-15T09:21:32.000Z
import os import numpy as np import pickle from datetime import date today = date.today() class save_info(object): def __init__(self, assets_dir, exp_num, exp_name, env_name): self.assets_dir = assets_dir self.experiment_num = 'exp-{}'.format(exp_num) #common path self.saving_path ...
52.561905
198
0.662982
802
5,519
4.220698
0.107232
0.171344
0.111374
0.111669
0.769572
0.719055
0.685672
0.636632
0.535894
0.497194
0
0.000237
0.234825
5,519
104
199
53.067308
0.801326
0.098569
0
0.125
0
0
0.05937
0.014136
0
0
0
0
0
1
0.078125
false
0
0.0625
0
0.15625
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a1ec424f79c26bcb1f4aad2a9b7ae944e97007d
1,671
py
Python
projdir/app/migrations/0052_devhubcreateeventmodel.py
NITKOSG/InfoGami
f5ce567d5558a768e58886b3419e378cabb7049d
[ "MIT" ]
2
2017-02-01T09:57:40.000Z
2017-06-03T15:26:55.000Z
projdir/app/migrations/0052_devhubcreateeventmodel.py
NITKOSG/InfoGami
f5ce567d5558a768e58886b3419e378cabb7049d
[ "MIT" ]
2
2018-05-11T20:10:23.000Z
2019-05-01T21:13:07.000Z
projdir/app/migrations/0052_devhubcreateeventmodel.py
NITKOSG/InfoGami
f5ce567d5558a768e58886b3419e378cabb7049d
[ "MIT" ]
3
2017-02-11T13:19:28.000Z
2018-08-31T18:51:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-07-15 20:06 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_markdown.models import taggit.managers class Migration(migrations.Migration): d...
43.973684
170
0.652304
183
1,671
5.754098
0.519126
0.030389
0.039886
0.062678
0.165242
0.165242
0.104463
0.104463
0.104463
0.104463
0
0.042715
0.21544
1,671
37
171
45.162162
0.760488
0.040096
0
0
1
0
0.161149
0.042473
0
0
0
0
0
1
0
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a20fbb4e6dc79b73f04c050b5ac1371f77b7796
3,731
py
Python
openstack_dashboard/api/rest/network.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
9
2016-06-03T03:53:24.000Z
2017-05-20T16:53:23.000Z
openstack_dashboard/api/rest/network.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
12
2022-03-22T07:28:29.000Z
2022-03-22T07:29:55.000Z
openstack_dashboard/api/rest/network.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
4
2016-08-01T10:50:15.000Z
2017-02-22T12:11:19.000Z
# Copyright 2015, Hewlett-Packard Development Company, L.P. # Copyright 2016 IBM Corp. # # 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 # # U...
30.333333
75
0.667113
490
3,731
4.993878
0.297959
0.0613
0.041684
0.027789
0.287291
0.282387
0.205558
0.179403
0.155701
0.155701
0
0.004243
0.242026
3,731
122
76
30.581967
0.861033
0.470115
0
0.292683
0
0
0.075306
0.040864
0
0
0
0
0
1
0.121951
false
0
0.097561
0
0.512195
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8a21e4d6fb587c99ad04ff376ad426c127bee4e5
448
py
Python
sphinxext/suites.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
2,538
2015-01-01T04:58:41.000Z
2022-03-31T21:06:05.000Z
sphinxext/suites.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
362
2015-01-18T14:16:23.000Z
2021-11-18T16:24:34.000Z
sphinxext/suites.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
1,127
2015-01-05T14:39:29.000Z
2022-03-25T08:38:39.000Z
def fib(n): "return nth term of Fibonacci sequence" a, b = 0, 1 i = 0 while i<n: a, b = b, a+b i += 1 return b def linear_recurrence(n, (a,b)=(2,0), (u0, u1)=(1,1)): """return nth term of the sequence defined by the linear recurrence u(n+2) = a*u(n+1) + b*u(n)""" ...
19.478261
54
0.433036
82
448
2.353659
0.317073
0.041451
0.134715
0.15544
0
0
0
0
0
0
0
0.060837
0.412946
448
22
55
20.363636
0.673004
0
0
0.375
0
0
0.109145
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a22443110563b369c8893f7038f095547ce635a
2,412
py
Python
videodatasets/generate.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
40
2018-12-03T01:49:15.000Z
2022-03-20T03:57:03.000Z
videodatasets/generate.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
7
2020-03-11T09:36:40.000Z
2021-12-14T01:53:22.000Z
videodatasets/generate.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
19
2018-11-02T08:07:25.000Z
2021-09-23T09:57:13.000Z
import os import sys import json import commands import re testrange = [300, 500, 800, 1100, 1400] WIDTH, HEIGHT = 800, 480 FPS = 25 def eventloop(test_file): os.system('mkdir img') #os.system('mkdir img/%s' % (test_file)) os.system('mkdir tmp_%s' % (test_file)) os.system('mkdir tmp2_%s' % (test_file...
39.540984
193
0.57131
365
2,412
3.536986
0.276712
0.161115
0.061967
0.099148
0.25794
0.140976
0.092951
0.07591
0.03873
0
0
0.043527
0.257048
2,412
60
194
40.2
0.676897
0.041459
0
0.056604
0
0.075472
0.279654
0.020346
0
0
0
0
0
0
null
null
0
0.09434
null
null
0.018868
0
0
0
null
0
0
0
0
0
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
8a27bbad5294826c8d26955fbfc730aa1ac75a82
5,071
py
Python
reproman/tests/test_dochelpers.py
jbwexler/reproman
a341e2406c568acb2c5ca2f0d22b4c2129004c91
[ "MIT" ]
13
2017-03-02T16:33:08.000Z
2019-01-12T19:19:08.000Z
reproman/tests/test_dochelpers.py
jbwexler/reproman
a341e2406c568acb2c5ca2f0d22b4c2129004c91
[ "MIT" ]
313
2017-01-13T03:36:30.000Z
2019-01-24T19:16:08.000Z
reproman/tests/test_dochelpers.py
jbwexler/reproman
a341e2406c568acb2c5ca2f0d22b4c2129004c91
[ "MIT" ]
6
2017-01-12T19:44:01.000Z
2019-01-12T19:19:18.000Z
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the reproman package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Tests for doche...
29.829412
131
0.530467
595
5,071
4.312605
0.253782
0.028059
0.051442
0.072876
0.325019
0.257989
0.209665
0.169525
0.14848
0.093141
0
0.018796
0.328535
5,071
170
132
29.829412
0.734802
0.192861
0
0.301075
0
0.010753
0.153203
0.083008
0
0
0
0
0.247312
1
0.182796
false
0.11828
0.053763
0
0.27957
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8a282ee1dfc7c1ee43b2faf41dcd8d76b6188b78
347
py
Python
3-transport/lessons/1-location-tracking/code-gps/pi/gps-sensor/app.py
faithhunja/IoT-For-Beginners
5b9e76daf5100b7b76a08dfd968f25dc08a6e454
[ "MIT" ]
1
2021-08-06T04:45:30.000Z
2021-08-06T04:45:30.000Z
3-transport/lessons/1-location-tracking/code-gps/pi/gps-sensor/app.py
faithhunja/IoT-For-Beginners
5b9e76daf5100b7b76a08dfd968f25dc08a6e454
[ "MIT" ]
null
null
null
3-transport/lessons/1-location-tracking/code-gps/pi/gps-sensor/app.py
faithhunja/IoT-For-Beginners
5b9e76daf5100b7b76a08dfd968f25dc08a6e454
[ "MIT" ]
null
null
null
import time import serial serial = serial.Serial('/dev/ttyAMA0', 9600, timeout=1) serial.reset_input_buffer() serial.flush() def printGPSData(): print(line.rstrip()) while True: line = serial.readline().decode('utf-8') while len(line) > 0: printGPSData() line = serial.readline().decode('...
18.263158
55
0.654179
45
347
5
0.577778
0.16
0.16
0.213333
0.248889
0.248889
0
0
0
0
0
0.035461
0.18732
347
18
56
19.277778
0.762411
0
0
0.153846
0
0
0.063401
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0.230769
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
8a3176c79a4ef09577f8fe971c8e577151c1e699
7,127
py
Python
src/test.py
chaitanya100100/VAE
1c4be4eaed969a3b634a0edd8a2a90a99569146c
[ "MIT" ]
115
2018-01-26T16:48:11.000Z
2022-03-08T20:07:06.000Z
gen_models/VAE-for-Image-Generation/src/test.py
leilayasmeen/MSc_Thesis
ee5e1782ab4a1d86c5dc0f5dc4111b4432ae204d
[ "MIT" ]
5
2018-02-24T14:50:09.000Z
2020-03-04T07:09:49.000Z
gen_models/VAE-for-Image-Generation/src/test.py
leilayasmeen/MSc_Thesis
ee5e1782ab4a1d86c5dc0f5dc4111b4432ae204d
[ "MIT" ]
34
2018-01-14T10:31:46.000Z
2021-12-27T02:45:28.000Z
import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm import cPickle from keras.layers import Input, Dense, Lambda, Flatten, Reshape, Layer from keras.layers import Conv2D, Conv2DTranspose from keras.models import Model from keras import backend as K from keras import metrics from keras impor...
36.927461
126
0.65329
1,003
7,127
4.337986
0.244267
0.029419
0.02758
0.04137
0.359917
0.307056
0.307056
0.27465
0.247759
0.236727
0
0.030609
0.234461
7,127
192
127
37.119792
0.766862
0.050232
0
0.233333
0
0
0.066372
0.04431
0
0
0
0
0
0
null
null
0
0.091667
null
null
0.008333
0
0
0
null
0
0
0
0
0
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
8a3252faa060b047e482bc1853b841dcdb3e8852
473
py
Python
gym_minigrid/register.py
mohakbhardwaj/gym-minigrid
ec05bc3c34da697d69932cccbee23eed0f6778c4
[ "Apache-2.0" ]
null
null
null
gym_minigrid/register.py
mohakbhardwaj/gym-minigrid
ec05bc3c34da697d69932cccbee23eed0f6778c4
[ "Apache-2.0" ]
null
null
null
gym_minigrid/register.py
mohakbhardwaj/gym-minigrid
ec05bc3c34da697d69932cccbee23eed0f6778c4
[ "Apache-2.0" ]
null
null
null
from gym.envs.registration import register as gym_register env_list = [] def register( id, entry_point, reward_threshold=0.95, kwargs={} ): assert id.startswith("MiniGrid-") assert id not in env_list # Register the environment with OpenAI gym gym_register( id=id, entry...
19.708333
58
0.661734
61
473
4.95082
0.508197
0.069536
0.07947
0.165563
0
0
0
0
0
0
0
0.008596
0.262156
473
23
59
20.565217
0.856734
0.150106
0
0
0
0
0.022556
0
0
0
0
0
0.117647
1
0.058824
false
0
0.058824
0
0.117647
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
8a340b69b7e369d1727176a2bdf926c467481e3b
1,780
py
Python
chain/localsettings_vagrant.py
mitmedialab/learnair
5844121660984524ff61c059e8890965929cf3bf
[ "MIT" ]
null
null
null
chain/localsettings_vagrant.py
mitmedialab/learnair
5844121660984524ff61c059e8890965929cf3bf
[ "MIT" ]
null
null
null
chain/localsettings_vagrant.py
mitmedialab/learnair
5844121660984524ff61c059e8890965929cf3bf
[ "MIT" ]
null
null
null
DEBUG = True TEMPLATE_DEBUG = DEBUG # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = [] ADMINS = ( ('Joe Admin', 'joe@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'EN...
33.584906
79
0.713483
276
1,780
4.518116
0.634058
0.01684
0.012029
0.014435
0.054531
0.040096
0
0
0
0
0
0.036301
0.179775
1,780
52
80
34.230769
0.817808
0.592697
0
0
0
0
0.36119
0.184136
0
0
0
0
0
1
0
false
0.115385
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
1
0
0
0
0
0
1
8a396d0fe52801817d5afe470a24f6fdd14c01ff
698
py
Python
tasks/doc.py
kuwv/python-anymod
bda5722b763f51510d5ea7cd26e911aed3981ff2
[ "Apache-2.0" ]
null
null
null
tasks/doc.py
kuwv/python-anymod
bda5722b763f51510d5ea7cd26e911aed3981ff2
[ "Apache-2.0" ]
null
null
null
tasks/doc.py
kuwv/python-anymod
bda5722b763f51510d5ea7cd26e911aed3981ff2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # copyright: (c) 2020 by Jesse Johnson. # license: Apache 2.0, see LICENSE for more details. # type: ignore '''Provide documentation tasks.''' from invoke import task @task def lint(ctx): '''Check code for documentation errors.''' ctx.run('pydocstyle') @task def coverage(ctx): '...
18.368421
52
0.641834
91
698
4.923077
0.56044
0.066964
0.080357
0.075893
0.107143
0.107143
0
0
0
0
0
0.012238
0.180516
698
37
53
18.864865
0.770979
0.43553
0
0.375
0
0
0.202778
0
0
0
0
0
0
1
0.3125
false
0
0.0625
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a3b892dc2b7d2a7478967cc38434e83ae8fea75
4,530
py
Python
keras/optimizers.py
shantanusharma/keras
662f6c5bb82b54d90ec8e863ac7a44c3b8c1b938
[ "Apache-2.0" ]
3
2021-03-15T05:32:36.000Z
2021-12-14T07:29:53.000Z
keras/optimizers.py
bluemap19/keras
662f6c5bb82b54d90ec8e863ac7a44c3b8c1b938
[ "Apache-2.0" ]
1
2021-03-01T13:50:34.000Z
2021-03-01T13:50:34.000Z
keras/optimizers.py
bluemap19/keras
662f6c5bb82b54d90ec8e863ac7a44c3b8c1b938
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.829268
95
0.745475
571
4,530
5.765324
0.339755
0.068044
0.060146
0.054678
0.165249
0.078979
0
0
0
0
0
0.010841
0.165121
4,530
122
96
37.131148
0.859598
0.421634
0
0
0
0
0.100275
0.021235
0
0
0
0
0
1
0.04918
false
0
0.344262
0.016393
0.491803
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8a3cb73a271d9bbc2d30f6be027a8e55dc9b87c1
5,157
py
Python
schevo/test/test_field_entitysetset.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
1
2020-09-05T00:47:50.000Z
2020-09-05T00:47:50.000Z
schevo/test/test_field_entitysetset.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
schevo/test/test_field_entitysetset.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
"""EntitySetSet field unit tests.""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. from schevo.test import BaseTest, CreatesSchema, raises from schevo.constant import UNASSIGNED from schevo.error import KeyCollision from schevo.placeholder import Placeholder class BaseFieldEntitySetSet(Crea...
31.638037
79
0.567578
652
5,157
4.365031
0.217791
0.063247
0.047435
0.082221
0.478566
0.464863
0.45116
0.421996
0.395994
0.269501
0
0.014336
0.28311
5,157
162
80
31.833333
0.755477
0.237347
0
0.313953
0
0
0.116321
0.011917
0
0
0
0
0.22093
0
null
null
0
0.046512
null
null
0.011628
0
0
0
null
0
0
0
0
0
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
8a3fd8174289931cd47910a2cf3d07425d3df7ca
6,025
py
Python
gameServer/playerCode/player.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
gameServer/playerCode/player.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
gameServer/playerCode/player.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Set, TYPE_CHECKING, Dict from secrets import token_urlsafe from .inventory import ExpandedInventory from ..extraCode.util import ActionError if TYPE_CHECKING: from ..extraCode.location import Resource from ..extraCode.location import HexPoint from .tu...
29.975124
90
0.608797
655
6,025
5.427481
0.274809
0.043882
0.018003
0.028129
0.197468
0.165963
0.100703
0.0827
0.0827
0.0827
0
0.001909
0.304398
6,025
200
91
30.125
0.846337
0.210456
0
0.235294
0
0
0.053701
0.005604
0
0
0
0
0
1
0.245098
false
0
0.078431
0.039216
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a4923d8ccd8169760a49860c05811c4cf4779e9
479
py
Python
server/app/schemas/role.py
njbrunner/neighbor
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
1
2020-04-06T03:31:25.000Z
2020-04-06T03:31:25.000Z
server/app/schemas/role.py
njbrunner/covid-19
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
16
2020-04-17T00:44:01.000Z
2020-05-01T20:39:31.000Z
server/app/schemas/role.py
njbrunner/neighbor
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
null
null
null
"""Serialized schema for Role model.""" from marshmallow import Schema, fields, post_load class RoleSchema(Schema): """Serialized role schema.""" id = fields.String(required=True) value = fields.String(dump_only=True) label = fields.String(dump_only=True) @post_load def fetch_role(self, data...
28.176471
54
0.688935
63
479
5.063492
0.507937
0.112853
0.100313
0.125392
0.15047
0
0
0
0
0
0
0
0.192067
479
16
55
29.9375
0.824289
0.167015
0
0
0
0
0.005222
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8a495cb0d404b6e0eeee0f213238498484cabd21
763
py
Python
leavedemo/leave/auto.py
mikewolfli/django2-goflow
136afbfd90205ee83b2d50ac1be6a6b207fbcdf8
[ "MIT" ]
10
2018-08-10T15:07:29.000Z
2021-11-05T23:14:47.000Z
leavedemo/leave/auto.py
mikewolfli/django2-goflow
136afbfd90205ee83b2d50ac1be6a6b207fbcdf8
[ "MIT" ]
5
2019-11-20T06:09:00.000Z
2022-03-11T23:26:40.000Z
leavedemo/leave/auto.py
mikewolfli/django2-goflow
136afbfd90205ee83b2d50ac1be6a6b207fbcdf8
[ "MIT" ]
1
2018-08-10T15:07:37.000Z
2018-08-10T15:07:37.000Z
from leavedemo.leave.models import Account from datetime import timedelta def update_hr(workitem): ''' automated and simplistic version of hrform. ''' instance = workitem.instance leaverequest = workitem.instance.content_object if leaverequest.reason_denial: raise Excep...
33.173913
59
0.676278
86
763
5.94186
0.593023
0.082192
0.07045
0
0
0
0
0
0
0
0
0.001727
0.241153
763
23
60
33.173913
0.880829
0.056356
0
0
0
0
0.104874
0
0
0
0
0
0
1
0.055556
false
0.055556
0.111111
0
0.166667
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a4d5b96beb8298d9981532fbb2057d2e05c98b1
553
py
Python
src/main_scrape.py
shhudspeth/covid_california_scrape
2394c1204284767a25bb3858256656335d9908d3
[ "MIT" ]
null
null
null
src/main_scrape.py
shhudspeth/covid_california_scrape
2394c1204284767a25bb3858256656335d9908d3
[ "MIT" ]
null
null
null
src/main_scrape.py
shhudspeth/covid_california_scrape
2394c1204284767a25bb3858256656335d9908d3
[ "MIT" ]
null
null
null
# main.py import csv import itertools import requests import bs4 import re import pandas as pd import scrape_utilities import sys from datetime import date def main(file_name): list_of_counties = scrape_utilities.read_csv(file_name) print('making a dictionary of data') dictionary_data = scrape_utiliti...
17.83871
71
0.735986
80
553
4.775
0.5
0.157068
0.073298
0
0
0
0
0
0
0
0
0.006696
0.189873
553
30
72
18.433333
0.845982
0.012658
0
0
0
0
0.102941
0
0
0
0
0
0
1
0.05
false
0
0.45
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
8a52495fc10c14df5ac99f02e2d423caa6f205a1
834
py
Python
tests/test_update.py
DDevine/tortoise-orm
414737a78e98ffd247174590720f5c90aeac4dde
[ "Apache-2.0" ]
1
2020-05-15T19:50:12.000Z
2020-05-15T19:50:12.000Z
tests/test_update.py
Tomes111/tortoise-orm
8b55499a228e44f33fec9099f4d559c77c73beb7
[ "Apache-2.0" ]
null
null
null
tests/test_update.py
Tomes111/tortoise-orm
8b55499a228e44f33fec9099f4d559c77c73beb7
[ "Apache-2.0" ]
null
null
null
from tests.testmodels import Event, Tournament from tortoise.contrib import test class TestUpdate(test.TestCase): async def test_update(self): await Tournament.create(name="1") await Tournament.create(name="3") rows_affected = await Tournament.all().update(name="2") self.assertEqua...
36.26087
67
0.70024
99
834
5.787879
0.30303
0.157068
0.146597
0.17452
0.09075
0
0
0
0
0
0
0.011887
0.193046
834
22
68
37.909091
0.839525
0
0
0
0
0
0.008393
0
0
0
0
0
0.176471
1
0
false
0
0.117647
0
0.176471
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
8a56a622121e63ab5fac6a6744d7d6c000480d55
391
py
Python
HackerRank/Problem Solving/Apple and Orange/apple-and-orange.py
weiyi-m/kattis
cc459508ad963988627267dd650e86cbac35fb04
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
HackerRank/Problem Solving/Apple and Orange/apple-and-orange.py
weiyi-m/kattis
cc459508ad963988627267dd650e86cbac35fb04
[ "MIT" ]
null
null
null
HackerRank/Problem Solving/Apple and Orange/apple-and-orange.py
weiyi-m/kattis
cc459508ad963988627267dd650e86cbac35fb04
[ "MIT" ]
null
null
null
def countApplesAndOranges(s, t, a, b, apples, oranges): # Write your code here fallen_apples = 0 fallen_oranges = 0 for apple in apples: if a + apple >= s and a + apple <= t: fallen_apples += 1 for orange in oranges: if b + orange >= s and b + orange <= t: f...
24.4375
55
0.580563
54
391
4.092593
0.407407
0.162896
0
0
0
0
0
0
0
0
0
0.015267
0.329923
391
15
56
26.066667
0.828244
0.051151
0
0
0
0
0
0
0
0
0
0.066667
0
1
0.090909
false
0
0
0
0.090909
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a57b508dd989711f21f6667421ea3596e045da0
648
py
Python
scripts/test.py
delink/SA-kvstore_migrator
06d7955d830d42bc17c0aaa773c6f19985c4447b
[ "Apache-2.0" ]
null
null
null
scripts/test.py
delink/SA-kvstore_migrator
06d7955d830d42bc17c0aaa773c6f19985c4447b
[ "Apache-2.0" ]
null
null
null
scripts/test.py
delink/SA-kvstore_migrator
06d7955d830d42bc17c0aaa773c6f19985c4447b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 exit() import requests import json requests.packages.urllib3.disable_warnings() src_url = "https://172.21.42.102:8089" dest_url = "https://172.21.42.103:8089" def login(url,username,password): creds_payload = { 'cookie': '1', 'username': username, 'password': password } s = requests.Session...
24.923077
90
0.733025
99
648
4.626263
0.575758
0.039301
0.058952
0.098253
0.148472
0
0
0
0
0
0
0.052991
0.097222
648
25
91
25.92
0.729915
0.032407
0
0.166667
0
0
0.273163
0.110224
0
0
0
0
0
1
0.055556
false
0.111111
0.111111
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a57f353315146d1e65e17fd050f983e4c554b39
9,204
py
Python
tests/test_boundary.py
pcah/pca-errors
b07c49b96a894721c0c0344d8b6d7e059741695c
[ "MIT" ]
2
2021-11-15T16:40:20.000Z
2021-12-05T03:50:53.000Z
tests/test_boundary.py
pcah/pca-errors
b07c49b96a894721c0c0344d8b6d7e059741695c
[ "MIT" ]
null
null
null
tests/test_boundary.py
pcah/pca-errors
b07c49b96a894721c0c0344d8b6d7e059741695c
[ "MIT" ]
null
null
null
import sys from collections import namedtuple import mock import pytest from pca.packages.errors import ErrorBoundary PY36 = (3, 6) <= sys.version_info < (3, 7) Callbacks = namedtuple( "Callbacks", [ "log_inner_error", "should_propagate_exception", "transform_propagated_exception",...
36.52381
116
0.717623
978
9,204
6.362986
0.105317
0.068938
0.107987
0.068295
0.749156
0.704483
0.674594
0.631207
0.564037
0.511811
0
0.001946
0.218492
9,204
251
117
36.669323
0.8632
0.012277
0
0.497409
0
0
0.083554
0.039683
0
0
0
0
0.181347
1
0.103627
false
0.025907
0.025907
0.020725
0.181347
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a5aaf5b6d97f755111791ccb5ef0e06c0658b23
320
py
Python
tests/test_auth.py
Lt-grint/requests-async
b5147b15c67ca504fe35536c950fcca67da9d147
[ "Apache-2.0" ]
1
2019-04-02T10:19:31.000Z
2019-04-02T10:19:31.000Z
tests/test_auth.py
Lt-grint/requests-async
b5147b15c67ca504fe35536c950fcca67da9d147
[ "Apache-2.0" ]
null
null
null
tests/test_auth.py
Lt-grint/requests-async
b5147b15c67ca504fe35536c950fcca67da9d147
[ "Apache-2.0" ]
null
null
null
import requests_async import pytest @pytest.mark.asyncio async def test_auth(server): url = "http://127.0.0.1:8000/echo_headers" response = await requests_async.get(url, auth=("tom", "pass")) assert response.status_code == 200 assert response.json()["headers"]["authorization"] == "Basic dG9tOnBhc3M="
29.090909
78
0.709375
43
320
5.162791
0.72093
0.117117
0
0
0
0
0
0
0
0
0
0.054348
0.1375
320
10
79
32
0.75
0
0
0
0
0
0.246875
0
0
0
0
0
0.25
1
0
false
0.125
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a5e5f1e41a0ee3425fb61f38bb8d11e756180c7
1,709
py
Python
pixelpuncher/npc/admin.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/npc/admin.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/npc/admin.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from pixelpuncher.npc.forms import CustomNPCAvatarForm from pixelpuncher.npc.models import NPC, NPCAvatar, ResponseTrigger, Response, NPCRelationship, ResponseLog class NPCModelAdmin(admin.ModelAdmin): list_display = ("id", "name", "level", ) search_fields = ("id", "name", "l...
34.18
107
0.732007
182
1,709
6.664835
0.252747
0.074196
0.064303
0.064303
0.306678
0.080791
0.080791
0.080791
0
0
0
0.008092
0.132241
1,709
49
108
34.877551
0.809845
0
0
0.176471
0
0
0.17203
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8a5f7bb090c63272cc7ecf4f38d6ab73e189797d
15,742
py
Python
kickthemout.py
Hackingzone/kickthemout
1f2b4a9eec0872fe7c4bf4ef64193ab128101695
[ "MIT" ]
null
null
null
kickthemout.py
Hackingzone/kickthemout
1f2b4a9eec0872fe7c4bf4ef64193ab128101695
[ "MIT" ]
null
null
null
kickthemout.py
Hackingzone/kickthemout
1f2b4a9eec0872fe7c4bf4ef64193ab128101695
[ "MIT" ]
1
2019-11-01T11:02:52.000Z
2019-11-01T11:02:52.000Z
#!/usr/bin/env python # -.- coding: utf-8 -.- # kickthemout.py # authors: k4m4 & xdavidhu """ Copyright (C) 2016 Nikolaos Kamarinakis (nikolaskam@gmail.com) & David Schütz (xdavid@protonmail.com) See License at nikolaskama.me (https://nikolaskama.me/kickthemoutproject) """ import time, os, sys, logging, math from tim...
38.024155
165
0.55101
1,925
15,742
4.557922
0.191169
0.021883
0.022339
0.023251
0.488717
0.454753
0.421928
0.385685
0.334397
0.334397
0
0.030607
0.30263
15,742
413
166
38.116223
0.754691
0.007941
0
0.525281
0
0.044944
0.268149
0.007454
0
0
0.001945
0
0
0
null
null
0.011236
0.014045
null
null
0.168539
0
0
0
null
0
0
0
0
0
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
8a5fa91ccceb039f45852fccc3a96450f20f3d01
1,062
py
Python
numba/postpasses.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/postpasses.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
numba/postpasses.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Postpasses over the LLVM IR. The signature of each postpass is postpass(env, ee, lmod, lfunc) -> lfunc """ from __future__ import print_function, division, absolute_import import llvmmath from llvmmath import linking default_postpasses = {} def register_default(name): def dec(f): ...
27.947368
73
0.681733
123
1,062
5.097561
0.430894
0.087719
0.089314
0.044657
0
0
0
0
0
0
0
0.001209
0.221281
1,062
38
74
27.947368
0.756953
0.251412
0
0
0
0
0.051724
0
0
0
0
0
0
1
0.130435
false
0.130435
0.130435
0
0.391304
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a6145abf3187276e67bd5daac079e142ab29b8d
3,638
py
Python
modules/ui/image.py
chunqian/Debugger
0bd941dfc0238841f9612073a2d0bae95d87c18f
[ "MIT" ]
null
null
null
modules/ui/image.py
chunqian/Debugger
0bd941dfc0238841f9612073a2d0bae95d87c18f
[ "MIT" ]
null
null
null
modules/ui/image.py
chunqian/Debugger
0bd941dfc0238841f9612073a2d0bae95d87c18f
[ "MIT" ]
null
null
null
from __future__ import annotations from ..typecheck import * from ..import core from . layout import Layout import sublime import base64 import os def _path_for_image(name): #type: (str) -> str # WARNING!!! dont change to os.path.join sublime doesn't like back slashes in add_region? return f'Packages/{core.current...
32.774775
90
0.731721
563
3,638
4.477798
0.209591
0.122967
0.13328
0.173344
0.234827
0.151131
0.079334
0.055534
0
0
0
0.014822
0.128367
3,638
110
91
33.072727
0.780196
0.073117
0
0.04878
0
0
0.183358
0.0737
0
0
0
0
0
1
0.109756
false
0
0.085366
0.012195
0.341463
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
8a620b22b0f5c5c6fc0ecdb369163c9c224bfe72
2,028
py
Python
piquery/piqimg.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
1
2019-10-18T00:55:10.000Z
2019-10-18T00:55:10.000Z
piquery/piqimg.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
65
2019-10-21T07:16:51.000Z
2021-07-26T05:34:41.000Z
piquery/piqimg.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
1
2019-10-17T22:13:01.000Z
2019-10-17T22:13:01.000Z
import requests from PIL import Image from io import BytesIO import numpy as np import cv2 as cv from piquery.piq_feature import ImFeature, CropImFeature, ResizeImFeature, ImSim from piquery.piq_hash import imhash_dct from piquery.piq_error import DownloadError, ImageFormatError class ImgDownloader: @staticmethod...
34.965517
148
0.645957
275
2,028
4.672727
0.450909
0.038132
0.032685
0.015564
0
0
0
0
0
0
0
0.044271
0.242604
2,028
58
149
34.965517
0.792318
0
0
0.076923
0
0.019231
0.097585
0
0
0
0
0
0
1
0.192308
false
0
0.153846
0.115385
0.576923
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8a6463264d0c8f0eb2ddee3104140ddb2d1f516c
552
py
Python
examples/python/abstract_json.py
rafael-santiago/LIEF
f230094d5877dd63d40915dc944c53c2a4be5ed9
[ "Apache-2.0" ]
2,999
2017-04-03T13:43:23.000Z
2022-03-31T15:24:27.000Z
examples/python/abstract_json.py
prarthanats/LIEF
b26abae9a9b0dc0e82dd803b7b54a2a9dfe1034a
[ "Apache-2.0" ]
626
2017-04-04T15:57:04.000Z
2022-03-31T19:25:18.000Z
examples/python/abstract_json.py
prarthanats/LIEF
b26abae9a9b0dc0e82dd803b7b54a2a9dfe1034a
[ "Apache-2.0" ]
498
2017-04-04T14:18:25.000Z
2022-03-29T19:31:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Description # ----------- # Dump abstract informations in a JSON format # see: abstract_reader.py import argparse import sys import lief import json def main(): parser = argparse.ArgumentParser() parser.add_argument('binary', help = 'A binary') args = parse...
21.230769
62
0.673913
74
552
4.797297
0.621622
0.050704
0.084507
0
0
0
0
0
0
0
0
0.004405
0.177536
552
25
63
22.08
0.777533
0.242754
0
0
0
0
0.053528
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8a64f8b89f1f1de75d689730920f6ce1fcdd44da
1,718
py
Python
mcrouter/test/test_multiple_ports.py
hrjaco/mcrouter
5a7b852a1ea2f3c645e0b8366c0549bc992870af
[ "BSD-3-Clause" ]
1
2015-11-08T10:09:45.000Z
2015-11-08T10:09:45.000Z
mcrouter/test/test_multiple_ports.py
wicky-info/mcrouter
bc8bbbcc3e9a6ef79146d4096f3e39af942ada09
[ "BSD-3-Clause" ]
null
null
null
mcrouter/test/test_multiple_ports.py
wicky-info/mcrouter
bc8bbbcc3e9a6ef79146d4096f3e39af942ada09
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import absolute...
35.061224
77
0.646682
215
1,718
5.023256
0.576744
0.018519
0.059259
0
0
0
0
0
0
0
0
0.011886
0.265425
1,718
48
78
35.791667
0.843899
0.253783
0
0
0
0
0.099135
0.04406
0
0
0
0
0.029412
1
0.029412
false
0.058824
0.264706
0
0.323529
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a67ab9050d49b7e2c6d712e21be348e3f927cbb
48,669
py
Python
lib/galaxy/managers/base.py
patrice-dehais/galaxy
63ab54651ae2a65bd656b10302213085237a3b86
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/base.py
patrice-dehais/galaxy
63ab54651ae2a65bd656b10302213085237a3b86
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/base.py
patrice-dehais/galaxy
63ab54651ae2a65bd656b10302213085237a3b86
[ "CC-BY-3.0" ]
null
null
null
""" Keeps the older BaseController security and fetching methods and also defines a base ModelManager, ModelSerializer, and ModelDeserializer. ModelManagers are used for operations on models that occur outside the scope of a single model object, such as: - object creation - object lookup - interactions between 2+ obj...
37.963339
118
0.632312
6,320
48,669
4.741772
0.140506
0.007475
0.007007
0.004538
0.202483
0.157702
0.130473
0.101708
0.085892
0.075347
0
0.001396
0.278781
48,669
1,281
119
37.992974
0.852369
0.383036
0
0.180195
0
0.001623
0.042819
0.007495
0
0
0
0.017174
0.003247
1
0.13474
false
0.003247
0.024351
0.011364
0.355519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a686c5d6aa6b10f9a74a7265a60c084336a4665
1,050
py
Python
dj/scripts/scrape_vimeo.py
kattekrab/veyepar
d7010e451b1b04e7eb7b5ee0239696958ada41d6
[ "MIT" ]
null
null
null
dj/scripts/scrape_vimeo.py
kattekrab/veyepar
d7010e451b1b04e7eb7b5ee0239696958ada41d6
[ "MIT" ]
null
null
null
dj/scripts/scrape_vimeo.py
kattekrab/veyepar
d7010e451b1b04e7eb7b5ee0239696958ada41d6
[ "MIT" ]
null
null
null
# scrape_vimeo.py # grabs the list of vids on vimeo, # shoves them into veyepar # because I accedently blanked them all out import json import requests from steve.util import html_to_markdown import process # not using process, but this sets up some stuff. from main.models import Episode def get_page(url): s...
22.340426
76
0.606667
150
1,050
4.106667
0.52
0.034091
0.045455
0.042208
0.149351
0.149351
0.149351
0.149351
0.149351
0.149351
0
0.015852
0.279048
1,050
46
77
22.826087
0.797886
0.167619
0
0
0
0
0.164162
0
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.137931
0
0
0
null
0
0
0
0
0
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
8a6ce947ba456a020e25710ab0faf84a5181d91f
1,629
py
Python
teapot/cogs/cat.py
Dremixbotdev/Teapot.py
f3ba3ff43fbb9ca7d2747935ae6e62fcd28b3910
[ "MIT" ]
null
null
null
teapot/cogs/cat.py
Dremixbotdev/Teapot.py
f3ba3ff43fbb9ca7d2747935ae6e62fcd28b3910
[ "MIT" ]
null
null
null
teapot/cogs/cat.py
Dremixbotdev/Teapot.py
f3ba3ff43fbb9ca7d2747935ae6e62fcd28b3910
[ "MIT" ]
null
null
null
""" Module for generating a random cat picture""" import json import requests from bs4 import BeautifulSoup from discord.ext import commands import teapot.tools.embed as dmbd class Cat(commands.Cog): """ Cat and dog command""" def __init__(self, bot): """ Initialize Cat Class""" self.bot =...
30.735849
72
0.600368
221
1,629
4.375566
0.371041
0.066184
0.062048
0.074457
0.459152
0.407446
0.33092
0.275078
0.275078
0.275078
0
0.00745
0.258441
1,629
52
73
31.326923
0.789735
0.061387
0
0.277778
0
0
0.143347
0
0
0
0
0
0
1
0.055556
false
0.055556
0.138889
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a735aab5393cd2d8481a148d3d7334bc6874a15
855
py
Python
qurator/dinglehopper/tests/util.py
ulb-sachsen-anhalt/dinglehopper
249787686f554ceee4a14c2610772095320d912a
[ "Apache-2.0" ]
38
2019-08-14T16:31:31.000Z
2021-12-12T18:33:10.000Z
qurator/dinglehopper/tests/util.py
ulb-sachsen-anhalt/dinglehopper
249787686f554ceee4a14c2610772095320d912a
[ "Apache-2.0" ]
61
2019-08-15T17:40:17.000Z
2022-03-30T11:40:31.000Z
qurator/dinglehopper/tests/util.py
ulb-sachsen-anhalt/dinglehopper
249787686f554ceee4a14c2610772095320d912a
[ "Apache-2.0" ]
14
2019-08-15T12:37:14.000Z
2022-03-01T22:25:36.000Z
from itertools import zip_longest from typing import Iterable import colorama import os def diffprint(x, y): """Print elements or lists x and y, with differences in red""" def _diffprint(x, y): if x != y: print(colorama.Fore.RED, x, y, colorama.Fore.RESET) else: print...
21.375
69
0.623392
120
855
4.225
0.458333
0.027613
0.065089
0.055227
0
0
0
0
0
0
0
0
0.273684
855
39
70
21.923077
0.816425
0.135673
0
0.08
0
0
0
0
0
0
0
0
0
1
0.24
false
0
0.16
0.04
0.48
0.24
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a8241dca3775ab7aac79f47fa70aaedf68a5a78
1,700
py
Python
models/models_AL_Bert/HierachicalAtten.py
bamtercelboo/PyTorch-Bert-BiLSTM-ATT-LJP
4866ae5469ccff409ee3f6ccb47e3e9f2457549d
[ "Apache-2.0" ]
10
2019-03-17T03:39:55.000Z
2020-07-17T10:00:08.000Z
models/models_AL_BertModel/HierachicalAtten.py
bamtercelboo/PyTorch-Bert-BiLSTM-ATT-LJP
4866ae5469ccff409ee3f6ccb47e3e9f2457549d
[ "Apache-2.0" ]
null
null
null
models/models_AL_BertModel/HierachicalAtten.py
bamtercelboo/PyTorch-Bert-BiLSTM-ATT-LJP
4866ae5469ccff409ee3f6ccb47e3e9f2457549d
[ "Apache-2.0" ]
4
2019-07-06T15:05:52.000Z
2020-09-02T09:55:42.000Z
# @Author : bamtercelboo # @Datetime : 2018/7/24 10:26 # @File : HierachicalAtten.py # @Last Modify Time : 2018/7/24 10:26 # @Contact : bamtercelboo@{gmail.com, 163.com} """ FILE : HierachicalAtten.py FUNCTION : None """ import os import sys import torch import torch.nn as nn import torch.nn.functional as F i...
27.419355
106
0.662353
234
1,700
4.628205
0.354701
0.084026
0.036011
0.016621
0.064635
0
0
0
0
0
0
0.023737
0.231765
1,700
61
107
27.868852
0.805513
0.235294
0
0
0
0
0
0
0
0
0
0
0
1
0.064516
false
0
0.354839
0
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8a88c4090dd35c3ad2c8daaf0a41bebc7da3c7e7
650
py
Python
Python-code-snippets-001-100/057-send e-mail with attachment.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/057-send e-mail with attachment.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/057-send e-mail with attachment.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
''' 57-send Email with attachment using gmail smtp, You may need to pip install yagmail ''' import yagmail # Set up your gmail credentials. # Any problems could be gmail blocking you # or wrong password etc. I had to allow unsafe apps # in my gmail security settings to get # this to work. YAG_SMTP = yagmail....
25
59
0.724615
99
650
4.737374
0.646465
0.03838
0
0
0
0
0
0
0
0
0
0.003704
0.169231
650
25
60
26
0.864815
0.547692
0
0
0
0
0.39777
0
0
0
0
0
0
1
0
false
0.166667
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8a88e3bd74e42d50b934281164609931c5d66268
13,074
py
Python
homeassistant/components/media_player/demo.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/media_player/demo.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/media_player/demo.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
""" Demo implementation of the media player. For more details about this platform, please refer to the documentation https://home-assistant.io/components/demo/ """ import homeassistant.util.dt as dt_util from homeassistant.components.media_player import ( MEDIA_TYPE_MOVIE, MEDIA_TYPE_MUSIC, MEDIA_TYPE_TVSHOW, ...
31.57971
79
0.644791
1,592
13,074
5.040829
0.189698
0.050717
0.045358
0.054953
0.531713
0.503178
0.452087
0.404611
0.380561
0.371215
0
0.008104
0.254398
13,074
413
80
31.656174
0.814936
0.219214
0
0.383721
0
0
0.110436
0
0
0
0
0
0
1
0.224806
false
0
0.011628
0
0.403101
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a89832860a63e096ed63f27e78fbafe7d47901b
10,483
py
Python
rnaloc/annotationImporter.py
oeway/rna-loc
f620d57809918a8cdf0283b858f3c77bd31426ad
[ "MIT" ]
null
null
null
rnaloc/annotationImporter.py
oeway/rna-loc
f620d57809918a8cdf0283b858f3c77bd31426ad
[ "MIT" ]
null
null
null
rnaloc/annotationImporter.py
oeway/rna-loc
f620d57809918a8cdf0283b858f3c77bd31426ad
[ "MIT" ]
null
null
null
''' Introduction ============ Module to read in manually generated cell segmentation results with different formats. Data is organized in different data categories, e.g. for training and validation, and can contain different channels, e.g. DAPI for nuclei and Cy5 for cells. Results are stored in a dictionary ("annotD...
42.270161
204
0.557951
1,202
10,483
4.704659
0.233777
0.045977
0.057118
0.009726
0.19328
0.125729
0.08099
0.065429
0.065429
0.044916
0
0.003076
0.286655
10,483
247
205
42.441296
0.753143
0.389488
0
0.102041
1
0
0.122149
0.004368
0
0
0
0
0
1
0.040816
false
0
0.102041
0
0.183673
0.061224
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
8a8ac0c6720bea39332acacc79075b21de3f51b9
718
py
Python
cms/apps/links/migrations/0002_auto_20171020_1320.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
13
2015-03-13T21:32:16.000Z
2020-08-07T08:09:02.000Z
cms/apps/links/migrations/0002_auto_20171020_1320.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
131
2015-04-04T11:27:14.000Z
2020-10-16T13:39:16.000Z
cms/apps/links/migrations/0002_auto_20171020_1320.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
16
2015-06-05T12:56:28.000Z
2021-01-06T15:15:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-20 12:20 import cms.models.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('links', '0001_initial'), ] operations = [ migrations.AlterField( model_name='li...
28.72
144
0.610028
86
718
4.988372
0.651163
0.074592
0.06993
0.135198
0.172494
0.172494
0
0
0
0
0
0.047438
0.266017
718
24
145
29.916667
0.766603
0.094708
0
0.333333
1
0
0.190108
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
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
8a90ae798d973c4c2171d483c6194232d7799880
1,857
py
Python
config/feature.py
sumanbrcm/sonic-utilities
9a17108ac0ca55cde9a3e274a328e7d358902d23
[ "Apache-2.0" ]
null
null
null
config/feature.py
sumanbrcm/sonic-utilities
9a17108ac0ca55cde9a3e274a328e7d358902d23
[ "Apache-2.0" ]
null
null
null
config/feature.py
sumanbrcm/sonic-utilities
9a17108ac0ca55cde9a3e274a328e7d358902d23
[ "Apache-2.0" ]
null
null
null
import sys import click from utilities_common.cli import AbbreviationGroup, pass_db # # 'feature' group ('config feature ...') # @click.group(cls=AbbreviationGroup, name='feature', invoke_without_command=False) def feature(): """Configure features""" pass # # 'state' command ('config feature state ...') # @f...
33.763636
114
0.68713
235
1,857
5.32766
0.26383
0.052716
0.051118
0.035144
0.549521
0.503195
0.503195
0.503195
0.503195
0.503195
0
0.001263
0.147011
1,857
54
115
34.388889
0.789141
0.121163
0
0.4375
0
0
0.284826
0
0
0
0
0
0
1
0.09375
false
0.125
0.09375
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a93fa1b34410552896ca0c624c68e73af11704a
2,290
py
Python
anyconfig/backend/json.py
masatake/python-anyconfig
f922b9d3347a82b838a1872bd214a941393661a9
[ "MIT" ]
null
null
null
anyconfig/backend/json.py
masatake/python-anyconfig
f922b9d3347a82b838a1872bd214a941393661a9
[ "MIT" ]
null
null
null
anyconfig/backend/json.py
masatake/python-anyconfig
f922b9d3347a82b838a1872bd214a941393661a9
[ "MIT" ]
null
null
null
# # Copyright (C) 2011 - 2018 Satoru SATOH <ssato @ redhat.com> # License: MIT # # Ref. python -c "import json; help(json)" # # pylint: disable=import-error r"""JSON backend: - Format to support: JSON, http://www.json.org - Requirements: json in python standard library (>= python 2.6) or simplejson - Development Statu...
28.625
79
0.704803
323
2,290
4.739938
0.458204
0.062704
0.07838
0.057479
0.188112
0.188112
0.168517
0.104507
0
0
0
0.014823
0.175109
2,290
79
80
28.987342
0.795659
0.412664
0
0
0
0
0.162224
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8a94b3d142acfd70b7a5b437cc3db62a5c431dc2
2,440
py
Python
adminsortable/models.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
adminsortable/models.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
adminsortable/models.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from django.db import models from adminsortable.fields import SortableForeignKey class MultipleSortableForeignKeyException(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value...
33.888889
105
0.656967
297
2,440
5.242424
0.397306
0.032113
0.036609
0.032113
0.048812
0.048812
0.048812
0
0
0
0
0.003919
0.268033
2,440
71
106
34.366197
0.867861
0.031967
0
0.153846
0
0
0.045792
0
0
0
0
0
0
0
null
null
0.025641
0.076923
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a96de5897b07a7e613e4e2140a10cbc9b64bfaa
2,640
py
Python
footprints/ui/ui_transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
1
2018-10-11T19:23:08.000Z
2018-10-11T19:23:08.000Z
footprints/ui/ui_transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
null
null
null
footprints/ui/ui_transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'forms/transaction_details.ui', # licensing of 'forms/transaction_details.ui' applies. # # Created: Tue Feb 26 23:57:13 2019 # by: pyside2-uic running on PySide2 5.11.2 # # WARNING! All changes made in this file will be lost! from PySi...
53.877551
196
0.744697
258
2,640
7.569767
0.426357
0.061444
0.030722
0.073733
0.102407
0.046083
0.046083
0
0
0
0
0.015957
0.145455
2,640
48
197
55
0.849734
0.110606
0
0
1
0
0.105646
0.025235
0
0
0
0
0
1
0.058824
false
0
0.029412
0
0.117647
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a984c3e84bf1d3a6d6931eaa9fd19ccf90994db
1,571
py
Python
pythonW3/three.py
pouyapanahandeh/python3-ref
b8865ebb6da8065754a4df341cedfccdf3b3d2c5
[ "MIT" ]
null
null
null
pythonW3/three.py
pouyapanahandeh/python3-ref
b8865ebb6da8065754a4df341cedfccdf3b3d2c5
[ "MIT" ]
null
null
null
pythonW3/three.py
pouyapanahandeh/python3-ref
b8865ebb6da8065754a4df341cedfccdf3b3d2c5
[ "MIT" ]
null
null
null
# list in python and follow indexing rule, start from 0 thisList = ["pooya","mohammad","Mahdi","Alireza"] print(thisList) thisList[1] = "Eshghe Man" print(thisList) # The list() constructor include add item to list and delete the item listTwo = list(("apple","melon","orange")) print(listTwo) # append() use to add ...
19.6375
84
0.72247
248
1,571
4.576613
0.427419
0.048458
0.015859
0.02467
0
0
0
0
0
0
0
0.009023
0.153405
1,571
80
85
19.6375
0.844361
0.451941
0
0.363636
0
0
0.161728
0
0
0
0
0
0
1
0
false
0
0
0
0
0.545455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8a9da80c20b7fe3ce94181b856de4631398f858d
1,753
py
Python
hackerrank/domain/python/sets/mutation.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
hackerrank/domain/python/sets/mutation.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
hackerrank/domain/python/sets/mutation.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
""" TASK You are given a set A and N numbers of other sets. These N sets have to perform some specific mutation operations to set A. Your task is to execute those operations and print the sum of elements of set A. Input Format First line contains, number of elements in set A. Second line contains, space separated li...
26.969231
123
0.694238
347
1,753
3.463977
0.299712
0.039933
0.049917
0.016639
0.36772
0.364393
0.348586
0.145591
0.145591
0.138103
0
0.103746
0.208214
1,753
64
124
27.390625
0.762248
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
8a9f09126b8cb03fe4fd44d0cd844611ddc5713e
37,186
py
Python
plot-inline.py
websponse/matplot-qin
d93ba3fe382b59097c10171ecaf3cb1bd163a025
[ "MIT" ]
null
null
null
plot-inline.py
websponse/matplot-qin
d93ba3fe382b59097c10171ecaf3cb1bd163a025
[ "MIT" ]
null
null
null
plot-inline.py
websponse/matplot-qin
d93ba3fe382b59097c10171ecaf3cb1bd163a025
[ "MIT" ]
null
null
null
#---Graph plotting script is written inline in data processing function #——Author: Silvena Lam import re, calendar, csv, datetime #re is for regex import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.patches as mpatches #for matching colour of legend and dictionary ...
49.058047
172
0.640483
5,499
37,186
4.228405
0.153301
0.004516
0.006709
0.008042
0.305737
0.23198
0.178479
0.156761
0.141665
0.112506
0
0.027859
0.222933
37,186
757
173
49.122853
0.776751
0.227048
0
0.225476
0
0.046852
0.162384
0.014845
0
0
0
0
0
0
null
null
0
0.016105
null
null
0.026354
0
0
0
null
0
0
0
0
0
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
8aa7e8862680a1ab66e6dfc1d2718f33ce8b9121
2,591
py
Python
django/core/management/commands/reset.py
FactFiber/django-ff
04ee6ab0692e888ce5d7d223c36bc876e474146a
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/core/management/commands/reset.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
1
2022-02-11T15:33:31.000Z
2022-02-11T15:33:31.000Z
django/core/management/commands/reset.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
6
2017-06-26T07:30:22.000Z
2019-01-27T10:47:53.000Z
from optparse import make_option from django.conf import settings from django.core.management.base import AppCommand, CommandError from django.core.management.color import no_style from django.core.management.sql import sql_reset from django.db import connections, transaction, DEFAULT_DB_ALIAS class Command(AppComman...
40.484375
168
0.650714
333
2,591
4.960961
0.462462
0.030266
0.025424
0.043584
0
0
0
0
0
0
0
0.000517
0.252798
2,591
63
169
41.126984
0.852789
0.019298
0
0.037736
0
0.037736
0.383616
0
0
0
0
0
0
0
null
null
0
0.132075
null
null
0.018868
0
0
0
null
0
0
0
0
0
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
8aabc6a70ade54f3c9944356c4dd23dd8aa1ace0
346
py
Python
setup.py
marcus-clements/nxempowerment
43751198965002b77bf8a348e9df319431cfff27
[ "MIT" ]
null
null
null
setup.py
marcus-clements/nxempowerment
43751198965002b77bf8a348e9df319431cfff27
[ "MIT" ]
null
null
null
setup.py
marcus-clements/nxempowerment
43751198965002b77bf8a348e9df319431cfff27
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='nxempowerment', version='0.1', description='Compute Empowerment for NetworkX graphs', url='https://github.com/marcus-clements/nxempowerment', author='Marcus Clements', author_email='mc@mxcog.com', license='MIT', packages=['nxempowerment...
28.833333
61
0.67052
38
346
6.052632
0.815789
0.121739
0
0
0
0
0
0
0
0
0
0.007168
0.193642
346
11
62
31.454545
0.817204
0
0
0
0
0
0.421965
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
8aabe79fe7bdac24e5134b22f98fa79a7a663b75
1,437
py
Python
users/migrations/0006_auto_20170703_1636.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
users/migrations/0006_auto_20170703_1636.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
users/migrations/0006_auto_20170703_1636.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-07-03 13:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('users', '0005_auto_20170703_1614'), ...
38.837838
223
0.653445
158
1,437
5.791139
0.398734
0.043716
0.061202
0.096175
0.476503
0.422951
0.337705
0.297268
0.297268
0.297268
0
0.029255
0.215031
1,437
36
224
39.916667
0.781915
0.047321
0
0.37931
1
0
0.208638
0.016837
0
0
0
0
0
1
0
false
0
0.137931
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ab6001737eb01fe977f7c2723c4ad3287c796b1
292
py
Python
.history/ClassFiles/Control Flow/WhileLoops_20210101212805.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/WhileLoops_20210101212805.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/WhileLoops_20210101212805.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' While Loops Used to execute a set of statements(code) continuously as long as a condition is True. The while loop needs to be setup in a way that as long as a condition is True, Then stop when the condition becomes False. While loop can have optional else clause. ''' i = 1
22.461538
122
0.722603
52
292
4.057692
0.692308
0.056872
0.075829
0.085308
0.227488
0.227488
0.227488
0
0
0
0
0.004464
0.232877
292
12
123
24.333333
0.9375
0.900685
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ab6fbba98f4a3a9b5afad3b5b46778264909ea7
1,438
py
Python
sdk/python/pulumi_azure_native/relay/v20170401/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/relay/v20170401/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/relay/v20170401/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
26.145455
80
0.593185
175
1,438
4.737143
0.365714
0.119421
0.086852
0.094089
0.095296
0.067551
0.067551
0
0
0
0
0.000954
0.27121
1,438
54
81
26.62963
0.790076
0.235049
0
0.129032
1
0
0.072277
0
0
0
0
0
0
1
0.16129
false
0
0.193548
0
0.451613
0
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
8ab81d778fa086ba6887ed1cfdf317eb743b9fcd
2,996
py
Python
src/dfs_sdk/constants.py
jymnbshh/python-sdk
560ce42a8332a8b7ffa0129479f73ba64ab3d3e3
[ "Apache-2.0" ]
null
null
null
src/dfs_sdk/constants.py
jymnbshh/python-sdk
560ce42a8332a8b7ffa0129479f73ba64ab3d3e3
[ "Apache-2.0" ]
null
null
null
src/dfs_sdk/constants.py
jymnbshh/python-sdk
560ce42a8332a8b7ffa0129479f73ba64ab3d3e3
[ "Apache-2.0" ]
null
null
null
""" Provides hard-coded values used in this package. No imports are allowed since many other modules import this one """ __copyright__ = "Copyright 2020, Datera, Inc." VERSION = "1.2.26" VERSION_HISTORY = """ Version History: 1.1.0 -- Initial Version 1.1.1 -- Metadata Endpoint, Pep8 cleanup, Logging revamp ...
43.42029
78
0.69526
440
2,996
4.663636
0.525
0.026316
0.013158
0
0
0
0
0
0
0
0
0.077661
0.23498
2,996
68
79
44.058824
0.817627
0.037717
0
0
0
0
0.889043
0
0
0
0.010435
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ab9ac0291335303c3db488bd8caeab6a52b443a
2,431
py
Python
SpiderForCollege/db/DBUtil.py
Rafael-Luo/spider-college
20869fbd916db199273bbf84310593c5a593d2cb
[ "MIT" ]
2
2021-03-17T16:08:19.000Z
2021-05-23T11:12:02.000Z
SpiderForCollege/db/DBUtil.py
Rafael-Luo/spider-college
20869fbd916db199273bbf84310593c5a593d2cb
[ "MIT" ]
null
null
null
SpiderForCollege/db/DBUtil.py
Rafael-Luo/spider-college
20869fbd916db199273bbf84310593c5a593d2cb
[ "MIT" ]
2
2020-05-18T18:32:33.000Z
2021-06-26T07:37:14.000Z
# mysql驱动连接 import logging import pymysql from SpiderForCollege.logs.Logging import load_my_logging_cfg class DBUtil(object): load_my_logging_cfg() def __init__(self): self.host = '127.0.0.1' self.port = 3306 self.user = 'root' self.password = '123456' self.db = "fak...
27.314607
94
0.414233
205
2,431
4.82439
0.331707
0.111223
0.026289
0.032356
0.600607
0.600607
0.600607
0.519717
0.519717
0.519717
0
0.0176
0.485808
2,431
88
95
27.625
0.7736
0.05471
0
0.596491
0
0
0.069177
0
0
0
0
0
0
1
0.052632
false
0.052632
0.052632
0
0.140351
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
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
8abab40f5d881acd6d1de76fcb49ecf1f19e955f
1,614
py
Python
webhook/models.py
googleinterns/vt-usage
359abc821ca901c0190f5348e66cd7d37f31f3bd
[ "Apache-2.0" ]
2
2020-07-14T11:24:29.000Z
2020-08-25T13:06:07.000Z
webhook/models.py
googleinterns/step242-2020
359abc821ca901c0190f5348e66cd7d37f31f3bd
[ "Apache-2.0" ]
26
2020-07-14T07:37:03.000Z
2020-09-21T10:38:38.000Z
webhook/models.py
googleinterns/vt-usage
359abc821ca901c0190f5348e66cd7d37f31f3bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
22.109589
74
0.672862
227
1,614
4.740088
0.53304
0.055762
0.024164
0.02974
0
0
0
0
0
0
0
0.008071
0.232342
1,614
72
75
22.416667
0.860371
0.339529
0
0.1
0
0
0.111217
0.024715
0
0
0
0
0
1
0.05
false
0
0.125
0
0.825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8abb2c231e9df5f99354aba17fdde3fcb8f5d5eb
7,419
py
Python
engine/models.py
Hetvi07/Keep--Blogging
89359f3d6bffda4e622bd293f815271fc9dd67b3
[ "MIT" ]
null
null
null
engine/models.py
Hetvi07/Keep--Blogging
89359f3d6bffda4e622bd293f815271fc9dd67b3
[ "MIT" ]
null
null
null
engine/models.py
Hetvi07/Keep--Blogging
89359f3d6bffda4e622bd293f815271fc9dd67b3
[ "MIT" ]
null
null
null
import time from django.db import models from django.urls import reverse from django.utils import timezone from django.contrib.sitemaps import Sitemap from django.contrib.auth.models import User from django.dispatch import receiver from .utils import ( serialize_url, split_str, ) class Category(models.Model):...
35.161137
116
0.687829
934
7,419
5.304069
0.187366
0.025434
0.039564
0.059346
0.411183
0.345781
0.280178
0.215583
0.160275
0.147961
0
0.008906
0.19787
7,419
210
117
35.328571
0.823559
0.003505
0
0.189873
0
0
0.056691
0.014748
0
0
0
0
0
1
0.132911
false
0.006329
0.050633
0.063291
0.626582
0.018987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8abeaf8d7576c5204d5f50e0b5850d08dc6193d4
489
py
Python
tests/testing_constants.py
ariG23498/huggingface_hub
fbb80547a5bae7339463bf320ebeb304e602d985
[ "Apache-2.0" ]
null
null
null
tests/testing_constants.py
ariG23498/huggingface_hub
fbb80547a5bae7339463bf320ebeb304e602d985
[ "Apache-2.0" ]
null
null
null
tests/testing_constants.py
ariG23498/huggingface_hub
fbb80547a5bae7339463bf320ebeb304e602d985
[ "Apache-2.0" ]
null
null
null
USER = "__DUMMY_TRANSFORMERS_USER__" FULL_NAME = "Dummy User" PASS = "__DUMMY_TRANSFORMERS_PASS__" # Not critical, only usable on the sandboxed CI instance. TOKEN = "hf_94wBhPGp6KrrTH3KDchhKpRxZwd6dmHWLL" ENDPOINT_PRODUCTION = "https://huggingface.co" ENDPOINT_STAGING = "https://hub-ci.huggingface.co" ENDPOINT_STAGIN...
32.6
76
0.779141
59
489
6.050847
0.59322
0.151261
0.176471
0.156863
0.145658
0
0
0
0
0
0
0.011287
0.09407
489
14
77
34.928571
0.794582
0.112474
0
0
0
0
0.543981
0.303241
0
0
0
0
0
1
0
false
0.2
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
1
0
0
0
0
0
1
8ac855eab6c14cb41c2492d3e8ef8d002a44ed89
539
py
Python
settings.py
TelegramBotHeroku/TagBot
66f662c3dc074bbd6ef648b76939956180c6fb37
[ "Apache-2.0" ]
null
null
null
settings.py
TelegramBotHeroku/TagBot
66f662c3dc074bbd6ef648b76939956180c6fb37
[ "Apache-2.0" ]
null
null
null
settings.py
TelegramBotHeroku/TagBot
66f662c3dc074bbd6ef648b76939956180c6fb37
[ "Apache-2.0" ]
null
null
null
import os BOT_TOKEN = os.getenv('BOT_TOKEN') if not BOT_TOKEN: print('Environment variable BOT_TOKEN must be set') quit() WEBHOOK_ENABLED = os.getenv('WEBHOOK_ENABLED') WEBHOOK_ENABLED = WEBHOOK_ENABLED and int(WEBHOOK_ENABLED) == 1 if WEBHOOK_ENABLED: HEROKU_APP_NAME = os.getenv('HEROKU_APP_NAME') W...
29.944444
63
0.723562
81
539
4.518519
0.395062
0.229508
0.106557
0.153005
0
0
0
0
0
0
0
0.010893
0.148423
539
17
64
31.705882
0.786492
0
0
0
0
0
0.332096
0.051948
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.071429
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8aca808cef0d912ce6b36e16afa400018d75cfd6
423
py
Python
zerver/migrations/0230_rename_to_enable_stream_audible_notifications.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/migrations/0230_rename_to_enable_stream_audible_notifications.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/migrations/0230_rename_to_enable_stream_audible_notifications.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
# Generated by Django 1.11.20 on 2019-06-12 06:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("zerver", "0229_stream_message_retention_days"), ] operations = [ migrations.RenameField( model_name="userprofile", old_nam...
22.263158
59
0.643026
45
423
5.777778
0.777778
0.076923
0.123077
0
0
0
0
0
0
0
0
0.067093
0.260047
423
18
60
23.5
0.763578
0.111111
0
0
1
0
0.283422
0.184492
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8acec402e6fd8def9ea24a3855cd1fce213f44bf
873
py
Python
app/main/forms.py
thantsinmoe/Device-Monitor
50d0aa73d823718b0457387090a11cb41bbe7703
[ "MIT" ]
30
2017-05-28T00:21:56.000Z
2021-11-11T17:55:05.000Z
app/main/forms.py
thantsinmoe/Device-Monitor
50d0aa73d823718b0457387090a11cb41bbe7703
[ "MIT" ]
1
2017-07-03T20:19:04.000Z
2017-10-07T03:43:58.000Z
app/main/forms.py
thantsinmoe/Device-Monitor
50d0aa73d823718b0457387090a11cb41bbe7703
[ "MIT" ]
7
2017-05-27T23:11:31.000Z
2022-03-31T11:56:22.000Z
import csv from flask_wtf import FlaskForm as Form from flask_wtf.file import FileField, FileRequired, FileAllowed from wtforms import StringField, SubmitField from wtforms.validators import DataRequired from wtforms import ValidationError # noinspection PyMethodMayBeStatic class HostForm(Form): fqdn = StringFiel...
32.333333
106
0.697595
95
873
6.368421
0.536842
0.054545
0.039669
0
0
0
0
0
0
0
0
0.001445
0.207331
873
26
107
33.576923
0.872832
0.036655
0
0.1
0
0
0.117998
0
0
0
0
0
0
1
0.05
false
0
0.35
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8ad1804e41c3f36569583576eea96dc3d38dbbe8
18,925
py
Python
frontend/tests/api/scans/test_services.py
vaginessa/irma
02285080b67b25ef983a99a765044683bd43296c
[ "Apache-2.0" ]
null
null
null
frontend/tests/api/scans/test_services.py
vaginessa/irma
02285080b67b25ef983a99a765044683bd43296c
[ "Apache-2.0" ]
null
null
null
frontend/tests/api/scans/test_services.py
vaginessa/irma
02285080b67b25ef983a99a765044683bd43296c
[ "Apache-2.0" ]
null
null
null
from tempfile import TemporaryFile from unittest import TestCase from mock import MagicMock, patch import api.scans.services as module from lib.irma.common.exceptions import IrmaValueError, IrmaTaskError, \ IrmaFtpError, IrmaDatabaseError from lib.irma.common.utils import IrmaReturnCode from lib.irma.common.utils...
45.492788
79
0.634135
2,092
18,925
5.40392
0.087476
0.032552
0.04529
0.057585
0.750199
0.713047
0.661477
0.644317
0.595223
0.56621
0
0.011419
0.273501
18,925
415
80
45.60241
0.810823
0
0
0.49835
0
0
0.08624
0.044505
0.0033
0
0
0
0.145215
1
0.085809
false
0
0.023102
0
0.112211
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ad1ba33d25a342fff1458a3595825a70bb5a254
217
py
Python
1216.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
1216.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
1216.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
sum = 0 count = 0 while True: try: name = input() distance = int(input()) sum += distance count += 1 except EOFError: break print("{:.1f}".format(sum/count))
18.083333
33
0.479263
24
217
4.333333
0.708333
0
0
0
0
0
0
0
0
0
0
0.030075
0.387097
217
12
33
18.083333
0.75188
0
0
0
0
0
0.028986
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ad3226f637ed9662886447de0201f4d44df7afd
6,011
py
Python
planetmint/backend/localmongodb/connection.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
3
2022-01-19T13:39:52.000Z
2022-01-28T05:57:08.000Z
planetmint/backend/localmongodb/connection.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
67
2022-01-13T22:42:17.000Z
2022-03-31T14:18:26.000Z
planetmint/backend/localmongodb/connection.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
7
2022-01-13T16:20:54.000Z
2022-02-07T11:42:05.000Z
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 import logging from ssl import CERT_REQUIRED import pymongo from planetmint.backend.connection import Connection ...
43.875912
105
0.564964
594
6,011
5.597643
0.276094
0.039098
0.057143
0.07218
0.253233
0.166316
0.146466
0.146466
0.131729
0.071579
0
0.005251
0.366328
6,011
136
106
44.198529
0.867419
0.191316
0
0.197674
0
0
0.049808
0
0
0
0
0
0
1
0.069767
false
0.081395
0.093023
0.023256
0.244186
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
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
8ad40121587e83926e219014c9396ba7508529ad
10,953
py
Python
tools/generate-vcvt-test.py
xbwee1024/XNNPACK
c921972294e429c152f1cacf6dfe517b74470070
[ "BSD-3-Clause" ]
null
null
null
tools/generate-vcvt-test.py
xbwee1024/XNNPACK
c921972294e429c152f1cacf6dfe517b74470070
[ "BSD-3-Clause" ]
null
null
null
tools/generate-vcvt-test.py
xbwee1024/XNNPACK
c921972294e429c152f1cacf6dfe517b74470070
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2021 Google LLC # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import argparse import codecs import math import os import re import sys import yaml sys.path.insert(0, os.path.dirname(os.path.abspath(...
33.190909
116
0.611065
1,419
10,953
4.460888
0.155743
0.079621
0.090995
0.056872
0.603318
0.580569
0.571722
0.558926
0.530332
0.516114
0
0.0263
0.229344
10,953
329
117
33.291793
0.723611
0.074135
0
0.511111
0
0.044444
0.761405
0.227808
0
0
0
0
0
1
0.011111
false
0
0.033333
0
0.051852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76d03e77c5af5d9230af48ed852bfc0d4985937a
4,110
py
Python
src/ast/types_ast.py
CoolCows/cool-compiler-2021
1411566675707d33afdfddfc6b9d6d8a5a4c32bf
[ "MIT" ]
null
null
null
src/ast/types_ast.py
CoolCows/cool-compiler-2021
1411566675707d33afdfddfc6b9d6d8a5a4c32bf
[ "MIT" ]
1
2021-02-27T00:15:05.000Z
2021-02-27T00:15:05.000Z
src/ast/types_ast.py
CoolCows/cool-compiler-2021
1411566675707d33afdfddfc6b9d6d8a5a4c32bf
[ "MIT" ]
1
2021-02-24T14:39:38.000Z
2021-02-24T14:39:38.000Z
from typing import List, Tuple class Node: def __init__(self, node) -> None: self.line = node.line self.col = node.col self.type = None def get_position(self) -> Tuple[int, int]: return self.line, self.col class ProgramNode(Node): def __init__(self, declarations, node: N...
20.04878
64
0.660341
474
4,110
5.379747
0.179325
0.103529
0.094118
0.100392
0.302745
0.258431
0.220784
0.181569
0.181569
0.14549
0
0
0.248418
4,110
204
65
20.147059
0.82551
0.008759
0
0.427481
0
0
0
0
0
0
0
0
0
1
0.137405
false
0.145038
0.007634
0.007634
0.427481
0
0
0
0
null
0
0
0
0
0
0
0
0
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
76d0cda8e1e30aa732b727ec881868799810f5de
350
py
Python
factorialconrecursion.py
victormarkno/Python
ac477bfa660624a36d019626bb59a7020409bb54
[ "MIT" ]
1
2019-02-14T21:59:54.000Z
2019-02-14T21:59:54.000Z
factorialconrecursion.py
victormarkno/Python
ac477bfa660624a36d019626bb59a7020409bb54
[ "MIT" ]
null
null
null
factorialconrecursion.py
victormarkno/Python
ac477bfa660624a36d019626bb59a7020409bb54
[ "MIT" ]
null
null
null
#Factorial de un numero, usar recursividad. def factorial(number): if number == 0: return 1 return number * factorial(number - 1) if __name__ == '__main__': number = int(input('Ingrese numero a convertir en factorial: ')) result = factorial(number) print('El resultado es:...
21.875
69
0.611429
40
350
5.15
0.65
0.218447
0
0
0
0
0
0
0
0
0
0.011858
0.277143
350
15
70
23.333333
0.802372
0.12
0
0
0
0
0.232877
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76d221f829bc2356f988bc3cfbb9daa79cb593d7
1,347
py
Python
beer.py
lucasferreiraa/data-beer-sp
c5082d80d88d62f54425eada1c38f761fd29e671
[ "MIT" ]
null
null
null
beer.py
lucasferreiraa/data-beer-sp
c5082d80d88d62f54425eada1c38f761fd29e671
[ "MIT" ]
null
null
null
beer.py
lucasferreiraa/data-beer-sp
c5082d80d88d62f54425eada1c38f761fd29e671
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np from dateutil.parser import parse from datetime import datetime import pyflux as pf import seaborn as sns data_beer = pd.read_csv('consumo_cerveja.csv') #print(data_beer) #print(data_beer.head()) #print(data_beer.columns) #print(len(data_beer.colu...
28.0625
91
0.741648
223
1,347
4.313901
0.331839
0.191268
0.099792
0.114345
0.275468
0.272349
0.209979
0.209979
0.099792
0.099792
0
0.003306
0.101708
1,347
47
92
28.659574
0.791736
0.242762
0
0.173913
0
0
0.224178
0
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
76d2725e69520c48d1f3d7c9a78d64b9651e42d0
5,787
py
Python
script popolamento DB/env/lib/python3.7/site-packages/bson/son.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
null
null
null
script popolamento DB/env/lib/python3.7/site-packages/bson/son.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
null
null
null
script popolamento DB/env/lib/python3.7/site-packages/bson/son.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-present MongoDB, Inc. # # 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 wri...
28.935
79
0.581994
741
5,787
4.411606
0.317139
0.03212
0.012236
0.008565
0.071582
0.029367
0.029367
0.029367
0.029367
0.029367
0
0.003835
0.324175
5,787
199
80
29.080402
0.832012
0.28685
0
0.166667
0
0
0.021858
0
0
0
0
0.005025
0
1
0.206349
false
0.007937
0.02381
0.055556
0.436508
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
76d34d9ff94e2f642cd7b750a15370ec198f2ec5
5,829
py
Python
sympy/core/tests/test_diff.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_diff.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_diff.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy.concrete.summations import Sum from sympy.core.expr import Expr from sympy.core.function import Derivative, Function, diff, Subs from sympy.core.numbers import I, Rational, pi from sympy.core.relational import Eq from sympy.core.singleton import S from sympy.core.symbol import Symbol from sympy.functions.com...
33.119318
88
0.520329
989
5,829
3.0364
0.139535
0.019314
0.07326
0.031968
0.288378
0.21978
0.142524
0.117216
0.117216
0.079254
0
0.039943
0.278435
5,829
175
89
33.308571
0.674037
0.061589
0
0.076923
0
0
0.000732
0
0
0
0
0.005714
0.41958
1
0.062937
false
0
0.111888
0.006993
0.188811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
76d869ae370ecaac767574e92a2fc8935ab583ec
7,090
py
Python
kubernetes/client/models/io_cert_manager_v1_cluster_issuer_spec_ca.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/io_cert_manager_v1_cluster_issuer_spec_ca.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/io_cert_manager_v1_cluster_issuer_spec_ca.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
39.388889
352
0.666008
857
7,090
5.351225
0.189032
0.090275
0.096162
0.08635
0.580244
0.524422
0.499128
0.416703
0.341474
0.287833
0
0.019985
0.258956
7,090
179
353
39.608939
0.852874
0.452045
0
0.0875
1
0
0.068559
0.020236
0
0
0
0
0
1
0.15
false
0
0.05
0
0.3625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76d916c8e05711ca61fbc9a6946a19cf7f0dde06
1,919
py
Python
shared_with_docker/cuckoo_default/signatures/windows/generic_metrics.py
TGLuis/LINGI2990-MalwareSandbox
d05d8ab9573b0160e914ac9e9e17d6113d665d3d
[ "MIT" ]
1
2021-09-24T04:32:20.000Z
2021-09-24T04:32:20.000Z
shared_with_docker/cuckoo_web/signatures/windows/generic_metrics.py
TGLuis/LINGI2990-MalwareSandbox
d05d8ab9573b0160e914ac9e9e17d6113d665d3d
[ "MIT" ]
null
null
null
shared_with_docker/cuckoo_web/signatures/windows/generic_metrics.py
TGLuis/LINGI2990-MalwareSandbox
d05d8ab9573b0160e914ac9e9e17d6113d665d3d
[ "MIT" ]
null
null
null
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from cuckoo.common.abstracts import Signature class SystemMetrics(Signature): name = "generic_metrics...
39.163265
74
0.690985
257
1,919
5.132296
0.560311
0.018196
0
0
0
0
0
0
0
0
0
0.01314
0.246483
1,919
48
75
39.979167
0.899032
0.634706
0
0
0
0
0.144756
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0.055556
0.944444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
76e0bce70413c32656186bddbdaa9e51156de4e7
1,061
py
Python
part_1/chapter_1/2_movie_scheduling_problem.py
bernatfogarasi/the-algorithm-design-manual
3ac8871c06a4175d3f042386e3445bef2b59f7cc
[ "MIT" ]
null
null
null
part_1/chapter_1/2_movie_scheduling_problem.py
bernatfogarasi/the-algorithm-design-manual
3ac8871c06a4175d3f042386e3445bef2b59f7cc
[ "MIT" ]
null
null
null
part_1/chapter_1/2_movie_scheduling_problem.py
bernatfogarasi/the-algorithm-design-manual
3ac8871c06a4175d3f042386e3445bef2b59f7cc
[ "MIT" ]
null
null
null
import random DAY_COUNT = 10 MOVIE_COUNT = 4 def create_movie(): return sorted([random.randint(0, DAY_COUNT - 1), random.randint(0, DAY_COUNT - 1)]) def create_movies(): return [create_movie() for _ in range(MOVIE_COUNT)] def visualize_movie(movie): print("", "-" * movie[0] + "#" * (movie[1] - movie[0] + 1) + "-...
24.113636
95
0.70688
152
1,061
4.644737
0.256579
0.056657
0.03966
0.048159
0.150142
0.065156
0
0
0
0
0
0.018805
0.147974
1,061
44
96
24.113636
0.762168
0
0
0
0
0
0.016008
0
0
0
0
0
0
1
0.205882
false
0
0.029412
0.088235
0.352941
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
76e24e428da2ffa2f97227797f95583f742af325
4,135
py
Python
exp2/exp2_perceptron.py
wemakefocus/PRclass
35a47d799012bebf0846ef177b7982d93b9effa2
[ "MIT" ]
null
null
null
exp2/exp2_perceptron.py
wemakefocus/PRclass
35a47d799012bebf0846ef177b7982d93b9effa2
[ "MIT" ]
null
null
null
exp2/exp2_perceptron.py
wemakefocus/PRclass
35a47d799012bebf0846ef177b7982d93b9effa2
[ "MIT" ]
null
null
null
import numpy as np from sklearn import preprocessing import random trainDivide = 0.4 divideNum = int(trainDivide * 50) typeDic = { #define class 'Iris-setosa\n': 0, 'Iris-versicolor\n': 1, 'Iris-virginica\n': 2 } LOOP_NUM_GETDATA = 10000 LOOP_NUM_GETACC = 200 W_NUM = 20 def loadData(path): allData = [[]...
34.173554
105
0.604837
607
4,135
3.906096
0.200988
0.032898
0.030367
0.020245
0.170392
0.138338
0.094475
0.044707
0
0
0
0.043043
0.275212
4,135
121
106
34.173554
0.748081
0.026119
0
0.069565
0
0
0.075068
0.006711
0
0
0
0
0
0
null
null
0
0.026087
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76e5904c38c93b69ebabff29ebd322bfe5e98afb
1,738
py
Python
interview/databricks/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
interview/databricks/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
interview/databricks/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python grid = "fxie amlo ewbx astu".split() nrows, ncols = len(grid), len(grid[0]) # A dictionary word that could be a solution must use only the grid's # letters and have length >= 3. (With a case-insensitive match.) import re alphabet = ''.join(set(''.join(grid))) words = set(['fxie']) prefixes = se...
24.138889
69
0.542002
242
1,738
3.793388
0.367769
0.008715
0.023965
0.043573
0.021786
0
0
0
0
0
0
0.013687
0.327388
1,738
71
70
24.478873
0.7716
0.130035
0
0.076923
0
0
0.020598
0
0
0
0
0
0
0
null
null
0
0.019231
null
null
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
1
0
0
0
0
0
0
0
0
1
76e7356bdcb55d0cadaac86c5502386b49faa05b
873
py
Python
lowfat/migrations/0005_auto_20160414_1101.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
6
2017-02-23T16:44:36.000Z
2019-03-18T11:39:03.000Z
lowfat/migrations/0005_auto_20160414_1101.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
286
2017-02-07T15:00:41.000Z
2022-03-08T12:56:09.000Z
lowfat/migrations/0005_auto_20160414_1101.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
2
2018-06-19T12:38:08.000Z
2020-11-23T12:15:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-14 11:01 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('lowfat', '0004_expense'), ] operations = [ ...
29.1
114
0.593356
92
873
5.478261
0.684783
0.047619
0.055556
0.087302
0
0
0
0
0
0
0
0.036164
0.271478
873
29
115
30.103448
0.756289
0.076747
0
0.090909
1
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.272727
0
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
76eab88c87d3ccc20708eddde40ec504dc399b56
305
py
Python
Python/construct-the-rectangle.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/construct-the-rectangle.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/construct-the-rectangle.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
# Time: O(1) # Space: O(1) import math class Solution(object): def constructRectangle(self, area): """ :type area: int :rtype: List[int] """ w = int(math.sqrt(area)) while area % w: w -= 1 return [area // w, w]
16.944444
40
0.439344
35
305
3.828571
0.6
0.029851
0.089552
0
0
0
0
0
0
0
0
0.017045
0.422951
305
17
41
17.941176
0.744318
0.190164
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
76f2da4bd17ec48f9628b22658469fa472efd61d
370
py
Python
testfunc.py
youaresherlock/ProcessesAndThreadsManager
5420c0f4e17d62e497ab34328a3f6186f9361179
[ "Apache-2.0" ]
5
2018-08-05T04:05:32.000Z
2021-04-28T16:34:01.000Z
testfunc.py
youaresherlock/ProcessesAndThreadsManager
5420c0f4e17d62e497ab34328a3f6186f9361179
[ "Apache-2.0" ]
null
null
null
testfunc.py
youaresherlock/ProcessesAndThreadsManager
5420c0f4e17d62e497ab34328a3f6186f9361179
[ "Apache-2.0" ]
1
2021-04-28T16:34:04.000Z
2021-04-28T16:34:04.000Z
import os import time def long_time_task(name): print 'Run task {0} ({1})'.format(name,os.getpid()) start = time.time() time.sleep(10) end = time.time() print {'task' : name, 'pid' : os.getpid(), 'runtime' : end - start} print 'Task {0} runs {1:.2f} seconds.'.format(name,end - start) return...
28.461538
71
0.632432
56
370
4
0.428571
0.107143
0.160714
0.142857
0
0
0
0
0
0
0
0.023333
0.189189
370
13
72
28.461538
0.723333
0.062162
0
0
0
0
0.178674
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76f5aee8867ec97b9845c81bc4656023eff96740
23,402
py
Python
lib/test/evaluation/nfsdataset.py
SkyeSong38/CSWinTT
27b78f9b0b1eebecfd5b3d3dbdc591c6562e69d7
[ "MIT" ]
null
null
null
lib/test/evaluation/nfsdataset.py
SkyeSong38/CSWinTT
27b78f9b0b1eebecfd5b3d3dbdc591c6562e69d7
[ "MIT" ]
null
null
null
lib/test/evaluation/nfsdataset.py
SkyeSong38/CSWinTT
27b78f9b0b1eebecfd5b3d3dbdc591c6562e69d7
[ "MIT" ]
null
null
null
import numpy as np from lib.test.evaluation.data import Sequence, BaseDataset, SequenceList from lib.test.utils.load_text import load_text class NFSDataset(BaseDataset): """ NFS dataset. Publication: Need for Speed: A Benchmark for Higher Frame Rate Object Tracking H. Kiani Galoogahi, A. Fagg...
151.961039
251
0.626912
3,039
23,402
4.577164
0.09773
0.059238
0.136592
0.064702
0.536089
0.505607
0.498275
0.498275
0.329475
0.085262
0
0.033427
0.146056
23,402
153
252
152.954248
0.66263
0.014529
0
0
0
0
0.555112
0.130635
0
0
0
0
0
1
0.038168
false
0
0.022901
0.015267
0.099237
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76fdc90d4eefd10193132f3c72bdf29f8a552fc7
251
py
Python
sizeorder.py
sawshaaa/july2017
4330e79a1ef6f0a66977900fc1088371ae1e9cca
[ "MIT" ]
null
null
null
sizeorder.py
sawshaaa/july2017
4330e79a1ef6f0a66977900fc1088371ae1e9cca
[ "MIT" ]
null
null
null
sizeorder.py
sawshaaa/july2017
4330e79a1ef6f0a66977900fc1088371ae1e9cca
[ "MIT" ]
null
null
null
#goal: re-order strings from shortest to longest L = ["ATGC","A","TT","CACTAT"] A = [] while len(L) > 0: x = L[0] pos = 0 for i in range(len(L)): if len(x) > len(L[i]): x = L[i] pos = i A.append(x) del L[pos] print A
14.764706
48
0.498008
48
251
2.604167
0.541667
0.096
0
0
0
0
0
0
0
0
0
0.017143
0.302789
251
16
49
15.6875
0.697143
0.187251
0
0
0
0
0.064039
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
0a0200d36414fc690c088ee142b3b92eb3f0b71d
38,938
py
Python
examples/pro.py
KarrLab/bpforms
24ffbcc744594f827acce7a5306655630b89ff1b
[ "MIT" ]
5
2019-10-12T02:30:31.000Z
2021-03-06T19:36:12.000Z
examples/pro.py
KarrLab/bpforms
24ffbcc744594f827acce7a5306655630b89ff1b
[ "MIT" ]
109
2019-02-03T18:09:30.000Z
2020-10-06T13:01:11.000Z
examples/pro.py
KarrLab/bpforms
24ffbcc744594f827acce7a5306655630b89ff1b
[ "MIT" ]
2
2019-02-05T15:23:20.000Z
2020-12-14T15:17:02.000Z
""" Generate BpForms for all of the proteins in PRO, verify them, and calculate their properties :Author: Jonathan Karr <karr@mssm.edu> :Date: 2019-06-24 :Copyright: 2019, Karr Lab :License: MIT """ from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from matplotlib import pyplot from xm...
44.551487
135
0.576095
4,184
38,938
5.189771
0.111138
0.015566
0.014737
0.009948
0.39767
0.321267
0.265497
0.212674
0.161278
0.141061
0
0.009394
0.308362
38,938
873
136
44.60252
0.796888
0.139401
0
0.264209
1
0
0.145378
0.00283
0
0
0
0
0.001536
1
0.010753
false
0
0.023041
0
0.043011
0.006144
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
0a02b40d53e77e5160210a649d67744760788593
1,350
py
Python
misc/python/mango/imageTest/_StructuringElementTest.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
3
2020-05-11T03:23:17.000Z
2021-03-16T09:01:48.000Z
misc/python/mango/imageTest/_StructuringElementTest.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
null
null
null
misc/python/mango/imageTest/_StructuringElementTest.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
2
2017-03-04T11:03:40.000Z
2020-08-01T10:01:36.000Z
#!/usr/bin/env python import mango import logging import sys import mango.mpi as mpi import mango.unittest import scipy as sp import numpy as np logger, rootLogger = mpi.getLoggers(__name__) class StructuringElementTest(mango.unittest.TestCase): def setUp(self): pass def testSe(self): se ...
28.723404
74
0.634815
184
1,350
4.554348
0.293478
0.161098
0.182578
0.107399
0.319809
0.319809
0.319809
0.319809
0.301909
0.301909
0
0.037106
0.201481
1,350
46
75
29.347826
0.74026
0.014815
0
0.166667
0
0
0.035365
0
0
0
0
0
0.25
1
0.138889
false
0.027778
0.194444
0
0.361111
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0a0442d8ace405c59f91903ca97e6d399a8472d6
1,244
py
Python
code/cds_distance.py
linsalrob/PhageHosts
d3b156b3c2dbbc0e69bf6464b644c03c1c084f8f
[ "MIT" ]
17
2018-06-16T20:58:59.000Z
2022-03-31T07:46:31.000Z
code/cds_distance.py
linsalrob/PhageHosts
d3b156b3c2dbbc0e69bf6464b644c03c1c084f8f
[ "MIT" ]
5
2017-01-12T21:02:55.000Z
2022-03-04T09:10:14.000Z
code/cds_distance.py
linsalrob/PhageHosts
d3b156b3c2dbbc0e69bf6464b644c03c1c084f8f
[ "MIT" ]
8
2015-04-15T18:16:40.000Z
2020-11-20T20:15:40.000Z
'''Calculate the distance between two codon usages. We will have two files, the first with just the phages and the second with their hosts. Then we need to calculate which of the hosts is closest''' import os import sys sys.path.append('/home3/redwards/bioinformatics/Modules') import numpy as np import scipy def dis...
25.387755
198
0.558682
187
1,244
3.716578
0.529412
0.030216
0.011511
0.020144
0.169784
0.169784
0.169784
0.169784
0.169784
0.169784
0
0.016222
0.30627
1,244
48
199
25.916667
0.789108
0
0
0.228571
0
0
0.092374
0.040816
0
0
0
0
0
0
null
null
0
0.114286
null
null
0.028571
0
0
0
null
0
0
0
0
0
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
0a051276dccb1b95fb328ac84e9793c80d77cfd7
13,717
py
Python
www/galaxy/FlapjackProject.py
SouthGreenPlatform/flapjack
9455e8466b46c50de552fc3abacd92c3448adf7b
[ "BSD-2-Clause" ]
6
2019-03-17T15:20:49.000Z
2022-01-24T18:00:44.000Z
www/galaxy/FlapjackProject.py
SouthGreenPlatform/flapjack
9455e8466b46c50de552fc3abacd92c3448adf7b
[ "BSD-2-Clause" ]
14
2018-09-25T10:30:50.000Z
2018-11-05T09:06:15.000Z
www/galaxy/FlapjackProject.py
SouthGreenPlatform/flapjack
9455e8466b46c50de552fc3abacd92c3448adf7b
[ "BSD-2-Clause" ]
8
2018-05-25T08:13:15.000Z
2021-01-29T12:52:32.000Z
#!/usr/bin/env python # encoding: utf-8 ''' DNASampleSplitter -- shortdesc DNASampleSplitter is a description It defines classes_and_methods @author: John Carlos Ignacio, Milcah Kigoni, Yaw Nti-Addae @copyright: 2017 Cornell University. All rights reserved. @license: MIT License @contact: ...
44.106109
212
0.539477
1,452
13,717
4.955234
0.2073
0.031967
0.033357
0.026685
0.404726
0.371508
0.312856
0.296178
0.280334
0.217512
0
0.007438
0.343297
13,717
311
213
44.106109
0.791297
0.067653
0
0.305785
0
0.004132
0.115937
0.007019
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.03719
0
0
0
null
0
0
0
0
0
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
0a05b59a6c827d9889c66a7e071628303001261d
632
py
Python
playwright/_impl/_overload.py
DetachHead/playwright-python
a5e743f78ca3421c4dc1de0515ed799927b41a66
[ "Apache-2.0" ]
null
null
null
playwright/_impl/_overload.py
DetachHead/playwright-python
a5e743f78ca3421c4dc1de0515ed799927b41a66
[ "Apache-2.0" ]
null
null
null
playwright/_impl/_overload.py
DetachHead/playwright-python
a5e743f78ca3421c4dc1de0515ed799927b41a66
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import inspect from typing import Callable def api_overload(fn: Callable) -> Callable: """ Creates an overload that's visible to the api generate scripts. use this decorator instead of `typing.overload` when exposing overloads from `_impl`. You will need to suppress myp...
37.176471
153
0.738924
82
632
5.47561
0.658537
0.106904
0.097996
0
0
0
0
0
0
0
0
0
0.178797
632
16
154
39.5
0.865125
0.363924
0
0
1
0
0.034031
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0a060da75c1be61951c550bf9a4c918e27401f35
3,313
py
Python
beta-bindings/python/3.x/testrail.py
dsayling/testrail-api
f414a68563a5619f96fcd2338c98cbdc8c183e5c
[ "MIT" ]
94
2015-02-17T22:59:02.000Z
2022-03-02T17:45:54.000Z
beta-bindings/python/3.x/testrail.py
dsayling/testrail-api
f414a68563a5619f96fcd2338c98cbdc8c183e5c
[ "MIT" ]
23
2016-01-06T21:33:51.000Z
2022-02-15T04:50:53.000Z
beta-bindings/python/3.x/testrail.py
dsayling/testrail-api
f414a68563a5619f96fcd2338c98cbdc8c183e5c
[ "MIT" ]
97
2015-04-01T05:47:07.000Z
2022-01-25T09:18:16.000Z
"""TestRail API binding for Python 3.x. (API v2, available since TestRail 3.0) Compatible with TestRail 3.0 and later. Learn more: http://docs.gurock.com/testrail-api2/start http://docs.gurock.com/testrail-api2/accessing Copyright Gurock Software GmbH. See license.md for details. """ import base64 import json im...
31.552381
96
0.549351
379
3,313
4.717678
0.369393
0.01566
0.020134
0.019016
0.252796
0.252796
0.137584
0.137584
0.137584
0.137584
0
0.012408
0.343193
3,313
104
97
31.855769
0.809283
0.313311
0
0.214286
0
0
0.118143
0
0
0
0
0
0
1
0.071429
false
0.053571
0.053571
0
0.267857
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0a0986ebee5911a2265404161dd52882ec8b1e41
1,338
py
Python
py/test/plugin/pytest_eventlog.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
py/test/plugin/pytest_eventlog.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
py/test/plugin/pytest_eventlog.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
import py class EventlogPlugin: """ log pytest events to a file. """ def pytest_addoption(self, parser): parser.addoption("--eventlog", dest="eventlog", help="write all pytest events to the given file.") def pytest_configure(self, config): eventlog = config.getvalue("eventlog"...
31.857143
81
0.537369
125
1,338
5.712
0.48
0.134454
0.046218
0.070028
0
0
0
0
0
0
0
0.002907
0.2287
1,338
41
82
32.634146
0.688953
0.152466
0
0.066667
0
0
0.184889
0
0
0
0
0
0.1
1
0.166667
false
0.066667
0.033333
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
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
0a0aa710fc1f7ecd240c903313bb3cebb05399c1
2,844
py
Python
app.py
smsaladi/sg-simple-event-recorder
bbec838f4621e609c2b5535a14c0c4217c97037d
[ "MIT" ]
null
null
null
app.py
smsaladi/sg-simple-event-recorder
bbec838f4621e609c2b5535a14c0c4217c97037d
[ "MIT" ]
null
null
null
app.py
smsaladi/sg-simple-event-recorder
bbec838f4621e609c2b5535a14c0c4217c97037d
[ "MIT" ]
null
null
null
""" A simple webhook event handler for Sendgrid """ import os import json import flask from flask import request, jsonify import flask_sqlalchemy from sqlalchemy.ext.hybrid import hybrid_property app = flask.Flask(__name__) app.config['BASE_URL'] = os.environ['BASE_URL'] app.config['SQLALCHEMY_DATABASE_URI'] = os...
28.44
81
0.61955
376
2,844
4.534574
0.356383
0.084457
0.099707
0.123167
0.029326
0
0
0
0
0
0
0.002808
0.248594
2,844
99
82
28.727273
0.79504
0.129395
0
0.059701
0
0
0.082248
0.030945
0
0
0
0
0
1
0.059701
false
0.029851
0.089552
0.014925
0.507463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0a0d7755167e3afad397f200340193709123cb21
606
py
Python
src/git/process.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
src/git/process.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
src/git/process.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
from ..thread import launch_thread def git_pull( app ): """ launch application """ url = 'https://%s:%s@%s' % ( app['username'], app['password'], app['git'], ) cmd = 'git pull %s' % url return launch_thread(app, [cmd]) def git_push( app ): """ launch application "...
18.363636
63
0.524752
73
606
4.232877
0.410959
0.116505
0.12945
0.135922
0.15534
0
0
0
0
0
0
0
0.308581
606
32
64
18.9375
0.73747
0.062706
0
0
0
0
0.257246
0
0
0
0
0
0
1
0.105263
false
0.052632
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0a10f3b79adb72f15bcba7ed55c7c4682abf46d1
6,175
py
Python
mae/loaddata.py
cuongtransc/it6311-cross-media
8a2653bf30c715b703ee0d87a6e6dfe52b02af39
[ "Apache-2.0" ]
2
2017-10-26T13:03:42.000Z
2018-04-26T03:29:15.000Z
mae/loaddata.py
cuongtransc/it6311-cross-media
8a2653bf30c715b703ee0d87a6e6dfe52b02af39
[ "Apache-2.0" ]
null
null
null
mae/loaddata.py
cuongtransc/it6311-cross-media
8a2653bf30c715b703ee0d87a6e6dfe52b02af39
[ "Apache-2.0" ]
null
null
null
import numpy as np import const class TrueData(): def __init__(self, path_features="", path_label=""): assert path_label!= "" and path_features != "" self._index_in_epoch = 0 self._epochs_completed = 0 #self._num_examples = const.N_EXAMPLE self._rate = 0.8 n_c...
29.265403
113
0.614413
816
6,175
4.335784
0.156863
0.031656
0.029678
0.027134
0.229791
0.177501
0.110797
0.110797
0.077445
0.077445
0
0.016408
0.279514
6,175
210
114
29.404762
0.778827
0.107045
0
0.05042
0
0
0.016197
0
0
0
0
0
0.008403
0
null
null
0
0.016807
null
null
0.033613
0
0
0
null
0
0
0
0
0
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
0a12607359a0dae614c7396470b8633026c82e0d
1,306
py
Python
checkov/cloudformation/checks/resource/aws/ElasticacheReplicationGroupEncryptionAtRest.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
1
2020-07-26T17:56:20.000Z
2020-07-26T17:56:20.000Z
checkov/cloudformation/checks/resource/aws/ElasticacheReplicationGroupEncryptionAtRest.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
2
2020-11-10T19:32:53.000Z
2020-11-10T19:32:55.000Z
checkov/cloudformation/checks/resource/aws/ElasticacheReplicationGroupEncryptionAtRest.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
1
2021-12-23T12:42:11.000Z
2021-12-23T12:42:11.000Z
from checkov.common.models.enums import CheckResult, CheckCategories from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck class ElasticacheReplicationGroupEncryptionAtRest(BaseResourceCheck): def __init__(self): name = "Ensure all data stored in the Elasticache Replicat...
48.37037
121
0.724349
124
1,306
7.443548
0.532258
0.071506
0.087757
0.065005
0
0
0
0
0
0
0
0.001898
0.192956
1,306
26
122
50.230769
0.873814
0.206738
0
0
0
0
0.213415
0.081301
0
0
0
0
0
1
0.125
false
0.0625
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0a13deabc4ef0a071cdd2d6e2aea2257776469b0
437
py
Python
exercicios/aula10-ex028.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula10-ex028.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula10-ex028.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
from random import randint from time import sleep comp = randint(0, 5) # Faz o computador escolher o número print('>$<' * 17) print('Vou pensar em um número de (0 à 5), tente advinhar!') print('>$<' * 17) jogador = int(input('Digite aqui seu número da sorte: ')) # Jogador tenta adivinhar print('PROCESSANDO...') sleep(2...
33.615385
83
0.681922
65
437
4.584615
0.692308
0.04698
0
0
0
0
0
0
0
0
0
0.024523
0.160183
437
13
84
33.615385
0.787466
0.132723
0
0.153846
0
0
0.397878
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.461538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0a177bdab17347c36c66135438007050b77bbc40
3,966
py
Python
python/fcdd/datasets/offline_supervisor.py
kyungmin96/myfcdd
eb3062105e0b345f0abc4aebcbc48247bc9fcda0
[ "MIT" ]
152
2020-07-08T05:44:40.000Z
2022-03-29T07:10:22.000Z
python/fcdd/datasets/offline_supervisor.py
kyungmin96/myfcdd
eb3062105e0b345f0abc4aebcbc48247bc9fcda0
[ "MIT" ]
21
2020-07-07T12:00:02.000Z
2022-03-23T03:50:23.000Z
python/fcdd/datasets/offline_supervisor.py
kyungmin96/myfcdd
eb3062105e0b345f0abc4aebcbc48247bc9fcda0
[ "MIT" ]
39
2020-09-14T05:45:08.000Z
2022-03-25T09:53:30.000Z
from typing import List import torch from torch.utils.data.dataset import Dataset def noise(outlier_classes: List[int], generated_noise: torch.Tensor, norm: torch.Tensor, nom_class: int, train_set: Dataset, gt: bool = False) -> Dataset: """ Creates a dataset based on the nominal classes of a given ...
47.783133
118
0.682552
573
3,966
4.638743
0.25829
0.079007
0.028593
0.037622
0.557186
0.557186
0.557186
0.557186
0.528593
0.528593
0
0.012394
0.226929
3,966
82
119
48.365854
0.854534
0.459909
0
0.367347
1
0
0.017717
0
0
0
0
0
0.020408
1
0.040816
false
0
0.061224
0
0.163265
0
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
0a1daa1460b0a7ef608bb03cf54ae9b707ab7b0a
4,201
py
Python
external/source/shellcode/windows/x64/build.py
metasploit/framework3
8670817a938c74837be073e4c7ab610068d42cfd
[ "OpenSSL", "Unlicense" ]
8
2015-04-22T05:30:34.000Z
2021-01-21T19:10:57.000Z
external/source/shellcode/windows/x64/build.py
metasploit/framework3
8670817a938c74837be073e4c7ab610068d42cfd
[ "OpenSSL", "Unlicense" ]
null
null
null
external/source/shellcode/windows/x64/build.py
metasploit/framework3
8670817a938c74837be073e4c7ab610068d42cfd
[ "OpenSSL", "Unlicense" ]
3
2015-04-22T05:30:56.000Z
2019-08-08T06:52:00.000Z
#=============================================================================# # A simple python build script to build the singles/stages/stagers and # some usefull information such as offsets and a hex dump. The binary output # will be placed in the bin directory. A hex string and usefull comments will # be printed ...
41.186275
102
0.452987
470
4,201
3.989362
0.308511
0.042667
0.052267
0.042667
0.245333
0.245333
0.174933
0.143467
0.129067
0.129067
0
0.02099
0.206141
4,201
102
103
41.186275
0.541229
0.334444
0
0.202532
0
0
0.12695
0
0
0
0.018136
0
0
0
null
null
0
0.037975
null
null
0.088608
0
0
0
null
0
0
0
0
0
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
0a1f82f50028f4a83ea8cf52b31772bb85045088
3,243
py
Python
test/test_LensModel/test_Profiles/test_flexion.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
107
2017-08-25T20:03:51.000Z
2022-03-30T19:52:21.000Z
test/test_LensModel/test_Profiles/test_flexion.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
235
2017-06-07T13:30:53.000Z
2022-03-28T12:44:04.000Z
test/test_LensModel/test_Profiles/test_flexion.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
68
2018-02-01T15:47:20.000Z
2022-03-27T12:44:32.000Z
__author__ = 'sibirrer' from lenstronomy.LensModel.Profiles.flexion import Flexion from lenstronomy.LensModel.lens_model import LensModel import numpy as np import numpy.testing as npt import pytest class TestExternalShear(object): """ tests the Gaussian methods """ def setup(self): self.fl...
35.637363
87
0.603145
524
3,243
3.538168
0.152672
0.101942
0.169903
0.226537
0.641855
0.604639
0.604639
0.531823
0.426645
0.375944
0
0.077047
0.235584
3,243
90
88
36.033333
0.670835
0.008017
0
0.246377
0
0
0.019681
0
0
0
0
0
0.304348
1
0.086957
false
0
0.072464
0
0.173913
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
0a200c534be38447c72049183bcf50f8da698e4a
29,153
py
Python
sympy/functions/special/tests/test_gamma_functions.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2018-11-20T11:40:30.000Z
2018-11-20T11:40:30.000Z
sympy/functions/special/tests/test_gamma_functions.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/functions/special/tests/test_gamma_functions.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
from sympy.core.function import expand_func from sympy.core import EulerGamma from sympy.core.numbers import (I, Rational, nan, oo, pi, zoo) from sympy.core.singleton import S from sympy.core.symbol import (Dummy, Symbol) from sympy.functions.combinatorial.factorials import factorial from sympy.functions.combinatorial....
40.211034
159
0.609165
4,659
29,153
3.763683
0.054947
0.009125
0.037525
0.022241
0.57428
0.482863
0.417565
0.379926
0.311605
0.25777
0
0.063862
0.209893
29,153
724
160
40.266575
0.697404
0.015058
0
0.140138
0
0
0.002474
0
0
0
0
0
0.641869
1
0.039792
false
0
0.044983
0
0.093426
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0a22b1880d6d318a6bc30ba95a0564cbe083b83d
3,629
py
Python
auana/broframe.py
Hoohaha/Auana-P
f60603468322751682204e42718cc1089a23ac60
[ "Artistic-2.0" ]
6
2015-03-26T11:32:14.000Z
2017-02-17T02:40:44.000Z
auana/broframe.py
Hoohaha/Auana-P
f60603468322751682204e42718cc1089a23ac60
[ "Artistic-2.0" ]
1
2015-06-07T19:09:33.000Z
2015-06-23T08:54:50.000Z
auana/broframe.py
Hoohaha/Auana-P
f60603468322751682204e42718cc1089a23ac60
[ "Artistic-2.0" ]
1
2015-04-23T09:13:23.000Z
2015-04-23T09:13:23.000Z
import numpy as np # import os # current_directory = os.path.dirname(os.path.abspath(__file__)).replace('\\','/') # from ctypes import * # bro = cdll.LoadLibrary(current_directory+"/broken.so") # bro.broken_frame.argtypes = [np.ctypeslib.ndpointer(dtype=np.int16, ndim=1, flags="C_CONTIGUOUS"), # c_int, # ...
20.856322
102
0.569303
472
3,629
4.010593
0.288136
0.041204
0.029054
0.029583
0.37084
0.313788
0.313788
0.313788
0.256735
0.215531
0
0.035472
0.269771
3,629
174
103
20.856322
0.678868
0.848719
0
0.292683
0
0
0
0
0
0
0
0
0
1
0.02439
false
0
0.02439
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0a23b9f113b2877126186ac5ff0730536c394df8
4,578
py
Python
src/rest_json.py
mkowsiak/python3
622230f85dd93461dbf23d5e64a27d82a135e9b9
[ "RSA-MD" ]
1
2021-06-13T11:14:36.000Z
2021-06-13T11:14:36.000Z
src/rest_json.py
mkowsiak/python3
622230f85dd93461dbf23d5e64a27d82a135e9b9
[ "RSA-MD" ]
null
null
null
src/rest_json.py
mkowsiak/python3
622230f85dd93461dbf23d5e64a27d82a135e9b9
[ "RSA-MD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2021 Michal K. Owsiak. All rights reserved. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTH...
42.785047
118
0.572739
569
4,578
4.602812
0.471002
0.034746
0.006873
0.013746
0.074838
0
0
0
0
0
0
0.009265
0.339886
4,578
106
119
43.188679
0.852085
0.602883
0
0.294118
0
0
0.090286
0
0
0
0
0
0
1
0
false
0
0.147059
0
0.147059
0.411765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0a2b362f3a192faffdb09718c295bbbd1f864035
2,195
py
Python
docs/astro/population/plot_spiral_arms.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
null
null
null
docs/astro/population/plot_spiral_arms.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
1
2020-10-29T19:55:46.000Z
2020-10-29T19:55:46.000Z
docs/astro/population/plot_spiral_arms.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
null
null
null
"""Plot Milky Way spiral arms.""" import numpy as np import matplotlib.pyplot as plt from astropy.units import Quantity from gammapy.astro.population import simulate from gammapy.astro.population import FaucherSpiral from gammapy.utils.coordinates import polar, cartesian catalog = simulate.make_base_catalog_galactic( ...
29.662162
82
0.67836
333
2,195
4.3003
0.435435
0.084497
0.048883
0.036313
0.100559
0.030726
0.030726
0
0
0
0
0.046943
0.165376
2,195
73
83
30.068493
0.734716
0.077449
0
0.064516
0
0
0.038157
0
0
0
0
0.013699
0
1
0
false
0
0.096774
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0a2ee53257771ac59a2e0ffb9275cf3f63195ab0
11,797
py
Python
py/selenium/webdriver/firefox/firefox_profile.py
PolicyStat/selenium-old
fafea33c31742b7ca917bcee5138cdfc619872ef
[ "Apache-2.0" ]
null
null
null
py/selenium/webdriver/firefox/firefox_profile.py
PolicyStat/selenium-old
fafea33c31742b7ca917bcee5138cdfc619872ef
[ "Apache-2.0" ]
null
null
null
py/selenium/webdriver/firefox/firefox_profile.py
PolicyStat/selenium-old
fafea33c31742b7ca917bcee5138cdfc619872ef
[ "Apache-2.0" ]
null
null
null
# Copyright 2008-2009 WebDriver committers # Copyright 2008-2009 Google Inc. # # 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 requ...
41.538732
84
0.628973
1,393
11,797
5.122039
0.24336
0.028031
0.039944
0.014716
0.203924
0.115207
0.080869
0.070498
0.037421
0.026489
0
0.003882
0.279393
11,797
283
85
41.685512
0.835431
0.068238
0
0.192308
0
0
0.202677
0.115867
0
0
0
0
0.005495
0
null
null
0.010989
0.043956
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0a3259a63eab0d5924f73701b1dfb5cb2f0711b5
443
py
Python
molecule/default/tests/test_default.py
Fongshway/ansible-role-user
c1d475a3ede3dbf63e5177d1a5c75d226dd4545b
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Fongshway/ansible-role-user
c1d475a3ede3dbf63e5177d1a5c75d226dd4545b
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Fongshway/ansible-role-user
c1d475a3ede3dbf63e5177d1a5c75d226dd4545b
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_user(host): home_dir = host.user("user").home ssh_key = host.file(home_dir + "/.ssh/id_rsa") assert host.user("user").name...
26.058824
63
0.702032
63
443
4.730159
0.47619
0.07047
0.120805
0.181208
0
0
0
0
0
0
0
0
0.146727
443
16
64
27.6875
0.78836
0
0
0
0
0
0.164786
0.051919
0
0
0
0
0.363636
1
0.090909
false
0
0.181818
0
0.272727
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
0a327c8499d497850d0feaa223e23343b6664b0e
1,213
py
Python
surveys/tests/test_views/test_login.py
larkes00/surveys
2b63a5ee5f308b8d2fe3e8e9a8ed616e30b804f7
[ "MIT" ]
null
null
null
surveys/tests/test_views/test_login.py
larkes00/surveys
2b63a5ee5f308b8d2fe3e8e9a8ed616e30b804f7
[ "MIT" ]
null
null
null
surveys/tests/test_views/test_login.py
larkes00/surveys
2b63a5ee5f308b8d2fe3e8e9a8ed616e30b804f7
[ "MIT" ]
null
null
null
from django import urls import pytest from surveys.tests.test_views.helpers import create_user def get_login_url(): return urls.reverse("user_login") @pytest.mark.django_db def test_login_only_post(client): response = client.get(get_login_url()) print(response.content) assert response.status_code =...
24.755102
59
0.688376
146
1,213
5.472603
0.287671
0.050063
0.068836
0.090113
0.705882
0.698373
0.498123
0.270338
0.270338
0.270338
0
0.044625
0.187139
1,213
48
60
25.270833
0.76572
0
0
0.513514
0
0
0.143446
0
0
0
0
0
0.108108
1
0.135135
false
0.108108
0.081081
0.027027
0.243243
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
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
0a33e5e868217446c02db99b05053819c1619782
706
py
Python
scripts/counting.py
ttm/sonhos
daaef37f40f9a17b969b2bc328b1dc9f0f43ca61
[ "CC0-1.0" ]
1
2017-08-31T19:40:48.000Z
2017-08-31T19:40:48.000Z
scripts/counting.py
ttm/sonhos
daaef37f40f9a17b969b2bc328b1dc9f0f43ca61
[ "CC0-1.0" ]
null
null
null
scripts/counting.py
ttm/sonhos
daaef37f40f9a17b969b2bc328b1dc9f0f43ca61
[ "CC0-1.0" ]
null
null
null
# script to count chars, tokens, paragraphs of the corpus files import nltk as k r=open("../corpora/corpora.txt","r") t=r.readlines() tt=[] npars = 0 for line in t: if line =="\n": pass else: tt.append(line[:-1]) npars += 1 ts=" ".join(tt) nchars = len(ts) nsents = len(k.tokenize.sent_...
15.688889
63
0.606232
108
706
3.925926
0.453704
0.037736
0.113208
0.04717
0.320755
0
0
0
0
0
0
0.037975
0.216714
706
44
64
16.045455
0.728752
0.086402
0
0.206897
0
0
0.083465
0.070866
0
0
0
0
0
1
0
false
0.068966
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1