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
ed24eb66389ecb0285cbc0fd8c30a4826c08929a
2,898
py
Python
reagent/replay_memory/utils.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/replay_memory/utils.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/replay_memory/utils.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging from typing import Dict, List import numpy as np import pandas as pd from reagent.replay_memory.circular_replay_buffer import ReplayBuffer logger = logging.getLogger(__name__) DEFAULT_DS = "2019-01-01" d...
35.777778
80
0.673223
386
2,898
4.867876
0.370466
0.103779
0.070782
0.01703
0.092602
0.092602
0.062799
0.062799
0.062799
0.062799
0
0.008415
0.220842
2,898
80
81
36.225
0.823738
0.184955
0
0.037736
0
0
0.104567
0.017926
0
0
0
0.0125
0.056604
1
0.037736
false
0
0.09434
0
0.169811
0
0
0
0
null
0
0
0
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
ed275def6f600261fd4aa6cd25f8e28f3d205f4a
708
py
Python
garnbarn_api/tests/test_user_model.py
GarnBarn/garnbarn-backend
ebe54b7206a6c27198003aaeb908cc2b296fa1dd
[ "MIT" ]
null
null
null
garnbarn_api/tests/test_user_model.py
GarnBarn/garnbarn-backend
ebe54b7206a6c27198003aaeb908cc2b296fa1dd
[ "MIT" ]
39
2021-10-14T16:20:28.000Z
2021-12-01T08:58:53.000Z
garnbarn_api/tests/test_user_model.py
GarnBarn/garnbarn-backend
ebe54b7206a6c27198003aaeb908cc2b296fa1dd
[ "MIT" ]
3
2021-10-14T16:12:22.000Z
2022-01-13T14:23:34.000Z
from django.test import TestCase, testcases from garnbarn_api.models import CustomUser class TestCustomUserModel(TestCase): def setUp(self): """Create setup for user model.""" self.user1 = CustomUser(uid='test1', line="line_id1") self.user2 = CustomUser(uid='test2', line="line_id2") ...
33.714286
61
0.65678
90
708
5.055556
0.377778
0.07033
0.048352
0
0
0
0
0
0
0
0
0.02847
0.206215
708
20
62
35.4
0.781139
0.108757
0
0
0
0
0.097561
0
0
0
0
0
0.307692
1
0.230769
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ed29da4e2cfc75b325cfda642f525facf73d4b94
2,318
py
Python
echolalia.py
eiri/echolalia
50a2f59f11d722c24fed0c6c1f531604c6364507
[ "MIT" ]
null
null
null
echolalia.py
eiri/echolalia
50a2f59f11d722c24fed0c6c1f531604c6364507
[ "MIT" ]
19
2015-07-27T12:45:17.000Z
2021-10-01T23:43:29.000Z
echolalia.py
eiri/echolalia
50a2f59f11d722c24fed0c6c1f531604c6364507
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Generate random data for your application """ import argparse, logging, importlib from echolalia.generator import Generator def add_args(): parser = argparse.ArgumentParser( description='Generate random data for your application') parser.add_argument('-w', '--writer'...
28.617284
85
0.677739
298
2,318
5.171141
0.355705
0.035042
0.044127
0.027255
0.123297
0.046723
0
0
0
0
0
0.004105
0.159189
2,318
80
86
28.975
0.786557
0.032787
0
0.04918
1
0
0.171518
0.021048
0
0
0
0
0
1
0.04918
false
0
0.065574
0
0.147541
0
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
ed2bd8d4aa36a873972566b877bd2173f035c08a
5,292
py
Python
third_party/gsutil/gslib/addlhelp/crc32c.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/gsutil/gslib/addlhelp/crc32c.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2021-02-23T22:20:14.000Z
2021-02-23T22:20:14.000Z
third_party/gsutil/gslib/addlhelp/crc32c.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.531915
80
0.745654
809
5,292
4.8356
0.396786
0.015337
0.014571
0.019172
0.123466
0.09816
0.069018
0.039877
0.039877
0.039877
0
0.009765
0.187264
5,292
140
81
37.8
0.899791
0.142857
0
0.131868
0
0
0.911993
0.025493
0
0
0
0
0
1
0
false
0
0.021978
0
0.043956
0.010989
0
0
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
ed38eba8fe2c17dc3e63d73342a3c18b60edda06
407
py
Python
server/members/admin.py
pcallday/Super-Neutron-Drive
d3cbeeae113722099032fb651dd4148670cb86e9
[ "MIT" ]
24
2015-01-21T21:45:48.000Z
2021-02-11T21:10:43.000Z
server/members/admin.py
pcallday/Super-Neutron-Drive
d3cbeeae113722099032fb651dd4148670cb86e9
[ "MIT" ]
14
2015-01-04T00:45:05.000Z
2017-11-21T14:33:09.000Z
server/members/admin.py
ColleenKeegan/Super-Neutron-Drive
d3cbeeae113722099032fb651dd4148670cb86e9
[ "MIT" ]
15
2015-03-05T21:56:04.000Z
2019-09-26T15:48:25.000Z
from django.contrib import admin from .models import Feature class FeatureAdmin (admin.ModelAdmin): list_display = ('title', 'desc', 'approved', 'closed', 'created') list_filter = ('approved', 'closed') search_fields = ('creator__email',) date_hierarchy = 'created' raw_id_fields = ('creator',) autocomp...
27.133333
67
0.710074
45
407
6.2
0.688889
0.100358
0
0
0
0
0
0
0
0
0
0
0.140049
407
14
68
29.071429
0.797143
0
0
0
0
0
0.199017
0
0
0
0
0
0
1
0
false
0
0.2
0
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ed3a17cf30bc3418b02453bfafb3eb7dcbd3a4e7
525
py
Python
Python_high_level_testing/tb/tb_Top_Level_RTL.py
pwolfe8/FPGA_Clapping_Pattern_Detection
afc5aca5f3f194364e48a2034e8306ca5ba65f8d
[ "MIT" ]
null
null
null
Python_high_level_testing/tb/tb_Top_Level_RTL.py
pwolfe8/FPGA_Clapping_Pattern_Detection
afc5aca5f3f194364e48a2034e8306ca5ba65f8d
[ "MIT" ]
null
null
null
Python_high_level_testing/tb/tb_Top_Level_RTL.py
pwolfe8/FPGA_Clapping_Pattern_Detection
afc5aca5f3f194364e48a2034e8306ca5ba65f8d
[ "MIT" ]
null
null
null
from gen_signal import gen_signal # Choose a pattern to test interval_pattern = [1.5, 2.0, 3.0, 1.0] # intervals between claps (5 claps total) # potential other patterns: # clap_pattern: 10011010100011 # interval_pattern: [3,1,2,2,4,1] # generate the actual signal (introduce noise by calli...
30.882353
104
0.706667
82
525
4.402439
0.646341
0.099723
0
0
0
0
0
0
0
0
0
0.070905
0.220952
525
16
105
32.8125
0.811736
0.630476
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.25
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
ed3e5c2259f9bd4361ec3fa99a1bb308ae8e2a5b
1,806
py
Python
calc.py
KiddoKidz/basic-calc-python
2c922c34c8af9b656a02758d90b5afbc5a0c65bf
[ "MIT" ]
null
null
null
calc.py
KiddoKidz/basic-calc-python
2c922c34c8af9b656a02758d90b5afbc5a0c65bf
[ "MIT" ]
null
null
null
calc.py
KiddoKidz/basic-calc-python
2c922c34c8af9b656a02758d90b5afbc5a0c65bf
[ "MIT" ]
null
null
null
choice = '' def add(num1, num2): return num1 + num2 def subs(num1, num2): return num1 - num2 def mult(num1, num2): return num1 * num2 def div(num1, num2): return num1 / num2 def mod(num1, num2): return num1 % num2 def power(num1, num2): result = 1 for i in range(num2): result *=...
24.739726
139
0.509413
219
1,806
4.127854
0.292237
0.230089
0.09292
0.112832
0.138274
0.138274
0
0
0
0
0
0.069113
0.351052
1,806
73
140
24.739726
0.702218
0
0
0.035714
0
0.017857
0.152739
0
0
0
0
0
0
1
0.160714
false
0
0
0.089286
0.321429
0.178571
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
ed417b7614ae114283b7965a830042c718cb49e3
1,301
py
Python
responder/routes.py
tselepakis/responder
9b72c909448f180118f63b3429ecd15dc2b90243
[ "Apache-2.0" ]
null
null
null
responder/routes.py
tselepakis/responder
9b72c909448f180118f63b3429ecd15dc2b90243
[ "Apache-2.0" ]
null
null
null
responder/routes.py
tselepakis/responder
9b72c909448f180118f63b3429ecd15dc2b90243
[ "Apache-2.0" ]
null
null
null
from parse import parse, search def memoize(f): def helper(self, s): memoize_key = f'{f.__name__}:{s}' if memoize_key not in self._memo: self._memo[memoize_key] = f(self, s) return self._memo[memoize_key] return helper class Route: def __init__(self, route, endpoint)...
24.092593
62
0.56495
161
1,301
4.385093
0.31677
0.114731
0.031161
0.050992
0
0
0
0
0
0
0
0
0.314374
1,301
53
63
24.54717
0.79148
0.030746
0
0.052632
0
0
0.060413
0.026232
0
0
0
0
0
1
0.236842
false
0
0.026316
0.052632
0.552632
0
0
0
0
null
0
0
0
0
0
0
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
ed44362d24926012332b8597ccaf3088ed37ead8
2,885
py
Python
memstress/scripts/plot_load_avg.py
rdkcmf/rdk-sys_mon_tools-mem_analyser_tools
fb4db2459e4b5b1dbbe4e8582575fc43d55abcc2
[ "Apache-2.0" ]
null
null
null
memstress/scripts/plot_load_avg.py
rdkcmf/rdk-sys_mon_tools-mem_analyser_tools
fb4db2459e4b5b1dbbe4e8582575fc43d55abcc2
[ "Apache-2.0" ]
null
null
null
memstress/scripts/plot_load_avg.py
rdkcmf/rdk-sys_mon_tools-mem_analyser_tools
fb4db2459e4b5b1dbbe4e8582575fc43d55abcc2
[ "Apache-2.0" ]
1
2021-01-18T12:49:01.000Z
2021-01-18T12:49:01.000Z
#! /usr/bin/env python ########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2018 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"...
31.021505
103
0.632929
397
2,885
4.594458
0.478589
0.032895
0.016447
0.017544
0.01864
0
0
0
0
0
0
0.018413
0.209359
2,885
92
104
31.358696
0.781236
0.387522
0
0.044444
0
0
0.104403
0
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ed48f8ce9a326e3882b58f24bc14acca77228478
6,382
py
Python
app/db/schema.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/db/schema.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/db/schema.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module 'call' of the project 'tingerwork' # :date_create: 10.12.2017.22:31 # :author: Tingerlink # :description: DB table Call, fix user list confirmation phone import sqlalchemy as sql import config.settings from datetime import datetime, timedelta from sqlalchemy.ext.declarative ...
32.728205
119
0.640395
717
6,382
5.439331
0.237099
0.071538
0.043333
0.034872
0.276923
0.260513
0.260513
0.260513
0.260513
0.25
0
0.007409
0.23864
6,382
194
120
32.896907
0.795225
0.103886
0
0.226087
0
0
0.0787
0.014651
0
0
0
0
0
1
0.078261
false
0.034783
0.06087
0
0.547826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ed49a3a6e6ac419f586e1d9daf06ce1c75f12204
3,892
py
Python
frontend/cstar_perf/frontend/lib/screenshot.py
henrypan/cstar_perf
863a4c6b2ebec97b81cc49263a273635c598e740
[ "Apache-2.0" ]
null
null
null
frontend/cstar_perf/frontend/lib/screenshot.py
henrypan/cstar_perf
863a4c6b2ebec97b81cc49263a273635c598e740
[ "Apache-2.0" ]
null
null
null
frontend/cstar_perf/frontend/lib/screenshot.py
henrypan/cstar_perf
863a4c6b2ebec97b81cc49263a273635c598e740
[ "Apache-2.0" ]
null
null
null
"""Uses a selenium grid instance to retrieve graph images and store them as png. Depends on the Selenium client driver and docker setup for the user account running this script. Usage: >>> from cstar_perf.frontend.lib import screenshot >>> screenshot.get_graph_png(url="http://cstar.datastax.com/graph?stats=ffbe9cb6...
34.442478
110
0.620761
468
3,892
5.032051
0.376068
0.026752
0.036093
0.022081
0.061147
0.013588
0
0
0
0
0
0.019411
0.2852
3,892
112
111
34.75
0.827103
0.007708
0
0.027027
0
0
0.14428
0.008355
0
0
0
0
0.013514
0
null
null
0
0.135135
null
null
0.013514
0
0
0
null
0
0
0
0
0
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
ed4e64c733e5190f665ab8fdbfbee61885be0fc6
1,094
py
Python
interview/needles.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
interview/needles.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
interview/needles.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''\ Given two strings, remove all characters contained in the latter from the former. Note that order is preserved. For example: "ab", "b" -> "a" "abcdabcd", "acec" -> "bdbd" What is the run-time of your algorithm? How much memory does it use? Is it optimal? linear search...
28.789474
76
0.638026
155
1,094
4.322581
0.490323
0.19403
0.202985
0.107463
0.065672
0.065672
0
0
0
0
0
0.00116
0.212066
1,094
37
77
29.567568
0.776102
0.424132
0
0
0
0
0.067633
0
0
0
0
0
0.0625
1
0.1875
false
0
0
0
0.25
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
ed550e6115d75ed3db46f53955f867e204218edb
2,325
py
Python
accounts/models.py
bondeveloper/ck-mart
1d00e6ee1f68223bd325fab7e7b032d282e541c2
[ "MIT" ]
null
null
null
accounts/models.py
bondeveloper/ck-mart
1d00e6ee1f68223bd325fab7e7b032d282e541c2
[ "MIT" ]
null
null
null
accounts/models.py
bondeveloper/ck-mart
1d00e6ee1f68223bd325fab7e7b032d282e541c2
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager from django.utils.translation import gettext_lazy as _ class AccountManager( BaseUserManager ): def create_user( self, email, password, **kwargs ): if not email: raise ValueE...
37.5
92
0.687742
280
2,325
5.535714
0.292857
0.067742
0.08129
0.108387
0.35871
0.287097
0.200645
0.178065
0.085161
0
0
0.011469
0.212473
2,325
62
93
37.5
0.835063
0
0
0.088889
0
0
0.094583
0
0
0
0
0
0
1
0.088889
false
0.111111
0.066667
0.044444
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ed5d4766ad017c32bf79236ab5125e43dbcf5152
854
py
Python
archive/histone_acetylation/ode/parameters/km.py
SCP-028/UGA
6c150ee2728a0c83ab88db9b2e137deb9c3f94f3
[ "Apache-2.0" ]
null
null
null
archive/histone_acetylation/ode/parameters/km.py
SCP-028/UGA
6c150ee2728a0c83ab88db9b2e137deb9c3f94f3
[ "Apache-2.0" ]
1
2019-10-07T17:34:49.000Z
2019-10-07T17:34:49.000Z
archive/histone_acetylation/ode/parameters/km.py
SCP-028/UGA
6c150ee2728a0c83ab88db9b2e137deb9c3f94f3
[ "Apache-2.0" ]
1
2019-01-10T07:33:07.000Z
2019-01-10T07:33:07.000Z
ACACA_AcCoA = 34 ACACA_HCO3 = 2100 ACAT2_AcCoA = 29 ACLY_Citrate = 78 ACLY_CoA = 14 ACO2_Citrate = 480 ACO2_Isocitrate = 120 ACOT12_AcCoA = 47 ACOT13_AcCoA = 47 ACSS1_Acetate = 73 ACSS1_CoA = 11 ACSS2_Acetate = 73 ACSS2_CoA = 11 CS_AcCoA = 5 CS_OXa = 5.9 EP300_AcCoA = 0.28 FASN_AcCoA = 7 FASN_HCO3 = 21...
19.409091
79
0.714286
144
854
3.951389
0.638889
0.02812
0
0
0
0
0
0
0
0
0
0.201471
0.203747
854
43
80
19.860465
0.635294
0.062061
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
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed5dbc2b5e40839cb05844067772ba56eecba90f
11,064
py
Python
tests/test_compiler_api.py
DiCarloLab-Delft/OpenQL
a7574a016a5a6c2080b4d1d3d6407341c563b6b5
[ "Apache-2.0" ]
1
2021-11-10T11:45:57.000Z
2021-11-10T11:45:57.000Z
tests/test_compiler_api.py
DiCarloLab-Delft/OpenQL
a7574a016a5a6c2080b4d1d3d6407341c563b6b5
[ "Apache-2.0" ]
6
2020-03-26T16:59:23.000Z
2021-04-30T07:51:12.000Z
tests/test_compiler_api.py
DiCarloLab-Delft/OpenQL
a7574a016a5a6c2080b4d1d3d6407341c563b6b5
[ "Apache-2.0" ]
1
2022-02-21T22:07:04.000Z
2022-02-21T22:07:04.000Z
import openql as ql import os import unittest from utils import file_compare import tempfile curdir = os.path.dirname(os.path.realpath(__file__)) output_dir = os.path.join(curdir, 'test_output') class test_compiler_api(unittest.TestCase): def setUp(self): ql.initialize() self.maxDiff = None ...
38.821053
119
0.539949
1,266
11,064
4.566351
0.165087
0.059332
0.103442
0.023352
0.603529
0.554921
0.454074
0.402526
0.402526
0.342674
0
0.004868
0.331616
11,064
284
120
38.957746
0.776876
0.003525
0
0.410853
0
0.007752
0.566503
0.007893
0
0
0
0
0.151163
1
0.031008
false
0.139535
0.01938
0
0.054264
0.003876
0
0
0
null
0
0
0
0
0
0
0
0
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
ed69a4d8601efb142e46579d7a72c97206a3f288
492
py
Python
tests/test_baseline.py
SliverySky/GVGAI_GYM
4da3c45df80968c5b0f94a7e914882ebcedb985f
[ "Apache-2.0" ]
12
2020-02-26T07:37:49.000Z
2022-02-01T13:56:49.000Z
tests/test_baseline.py
SliverySky/GVGAI_GYM
4da3c45df80968c5b0f94a7e914882ebcedb985f
[ "Apache-2.0" ]
6
2020-02-26T07:32:21.000Z
2021-02-24T09:34:21.000Z
tests/test_baseline.py
SliverySky/GVGAI_GYM
4da3c45df80968c5b0f94a7e914882ebcedb985f
[ "Apache-2.0" ]
9
2020-01-05T10:04:31.000Z
2021-02-10T11:51:15.000Z
def test_baselineEnv(): try: import gym from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines.deepq.policies import MlpPolicy from stable_baselines import DQN env = gym.make('CartPole-v1') model = DQN(MlpPolicy, env, verbose=1) model....
27.333333
63
0.640244
59
492
5.220339
0.661017
0.097403
0.185065
0
0
0
0
0
0
0
0
0.011331
0.28252
492
17
64
28.941176
0.86119
0
0
0
0
0
0.022403
0
0
0
0
0
0.071429
1
0.071429
false
0
0.285714
0
0.428571
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
ed6a2e723f62c5eb5b32b6836d78da7edf6d7bd3
2,039
py
Python
mainapp/migrations/0001_initial.py
ploggingdev/hackerschat
f6d881e7bed0e634e9db6e788befa990ac581bbd
[ "MIT" ]
3
2018-01-24T09:42:22.000Z
2018-09-28T18:52:01.000Z
mainapp/migrations/0001_initial.py
ploggingdev/boredhackers
e0740a6df2e8b30279f06a9ebfe11f748ca90b9b
[ "MIT" ]
7
2018-01-03T01:44:00.000Z
2022-02-11T03:39:02.000Z
mainapp/migrations/0001_initial.py
ploggingdev/boredhackers
e0740a6df2e8b30279f06a9ebfe11f748ca90b9b
[ "MIT" ]
3
2018-02-03T16:35:54.000Z
2019-04-09T16:10:20.000Z
# Generated by Django 2.0 on 2017-12-18 05:40 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH...
41.612245
225
0.61746
215
2,039
5.739535
0.4
0.025932
0.074554
0.084279
0.505673
0.505673
0.445705
0.366288
0.366288
0.366288
0
0.017005
0.250123
2,039
48
226
42.479167
0.790059
0.021089
0
0.487805
1
0
0.132397
0
0
0
0
0
0
1
0
false
0
0.097561
0
0.195122
0
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
ed6a4da3205d85b8eb7365a2b2d079d2e01d50ce
5,043
py
Python
SCW/Scoop/Lensi_scoop_light.py
jerryluosuper/Lensi
3f5c8d6f3c57d58523f4fe5f5f6bcc9657b82c24
[ "MIT" ]
1
2022-03-23T00:53:56.000Z
2022-03-23T00:53:56.000Z
SCW/Scoop/Lensi_scoop_light.py
jerryluosuper/Lensi
3f5c8d6f3c57d58523f4fe5f5f6bcc9657b82c24
[ "MIT" ]
null
null
null
SCW/Scoop/Lensi_scoop_light.py
jerryluosuper/Lensi
3f5c8d6f3c57d58523f4fe5f5f6bcc9657b82c24
[ "MIT" ]
null
null
null
''' Author: your name Date: 2022-03-12 09:53:13 LastEditTime: 2022-03-12 10:05:54 LastEditors: your name Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE FilePath: \Lensi\Scoop\Lensi_scoop_light.py ''' import csv import subprocess import os import cod...
61.5
1,796
0.67559
724
5,043
4.502762
0.245856
0.06227
0.011043
0.046012
0.295399
0.125767
0.037117
0
0
0
0
0.022701
0.143962
5,043
82
1,797
61.5
0.732453
0.055919
0
0.031746
0
0.063492
0.40912
0.096339
0.015873
0
0
0
0
1
0.15873
false
0
0.111111
0.031746
0.349206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed6bc641a4242d8ad9c4cc2d4175b709f11040cc
1,132
py
Python
src/dismantle/plugin/__init__.py
Stidsty/dismantle
26fb8fe7ba97349a67498715bb47a19329b1a4c7
[ "Apache-2.0" ]
null
null
null
src/dismantle/plugin/__init__.py
Stidsty/dismantle
26fb8fe7ba97349a67498715bb47a19329b1a4c7
[ "Apache-2.0" ]
null
null
null
src/dismantle/plugin/__init__.py
Stidsty/dismantle
26fb8fe7ba97349a67498715bb47a19329b1a4c7
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Gary Stidston-Broadbent # # 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 ...
31.444444
79
0.668728
142
1,132
5.288732
0.605634
0.079893
0.034621
0.04261
0
0
0
0
0
0
0
0.008475
0.166078
1,132
35
80
32.342857
0.787076
0.766784
0
0
0
0
0.14876
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ed6f09bef6603816e92e21d175e899ce04208540
20,846
py
Python
desktop/core/ext-py/eventlet-0.9.14/tests/db_pool_test.py
digideskio/hortonworks-sandbox
dd8e95c91faee3daa094707baeb94c3953b41efa
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/eventlet-0.9.14/tests/db_pool_test.py
digideskio/hortonworks-sandbox
dd8e95c91faee3daa094707baeb94c3953b41efa
[ "Apache-2.0" ]
1
2019-06-26T08:26:13.000Z
2019-06-26T08:26:13.000Z
tests/db_pool_test.py
simplegeo/eventlet
dd96930389470dae820add39f27ca691dea850c2
[ "MIT" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
"Test cases for db_pool" import sys import os import traceback from unittest import TestCase, main from tests import skipped, skip_unless, skip_with_pyevent, get_database_auth from eventlet import event from eventlet import db_pool import eventlet class DBTester(object): __test__ = False # so that nose doesn't ...
33.786062
86
0.614314
2,568
20,846
4.836059
0.143692
0.066994
0.029954
0.025364
0.548917
0.473227
0.405105
0.369676
0.317981
0.303326
0
0.015929
0.283268
20,846
616
87
33.840909
0.815273
0.10189
0
0.541833
0
0.001992
0.08683
0.001451
0
0
0
0
0.12749
0
null
null
0.007968
0.035857
null
null
0.013944
0
0
0
null
0
0
0
0
0
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
ed70c0fd1a5d4fda8b280a4c7da2bac85644cec9
1,810
py
Python
pydgin/riscv/isa_RV64D.py
igrr/pydgin-min
a65c79e94cc4c1915d80de77957e6133f0cc7e1b
[ "BSD-3-Clause" ]
null
null
null
pydgin/riscv/isa_RV64D.py
igrr/pydgin-min
a65c79e94cc4c1915d80de77957e6133f0cc7e1b
[ "BSD-3-Clause" ]
null
null
null
pydgin/riscv/isa_RV64D.py
igrr/pydgin-min
a65c79e94cc4c1915d80de77957e6133f0cc7e1b
[ "BSD-3-Clause" ]
null
null
null
# ======================================================================= # isa_RV64D.py # ======================================================================= 'RISC-V instructions for the double-precision floating point extension.' import softfloat as sfp from pydgin.riscv.utils import signed # ==================...
27.014925
73
0.498343
224
1,810
3.816964
0.267857
0.070175
0.049123
0.040936
0.432749
0.368421
0.368421
0.327485
0.327485
0.327485
0
0.10084
0.145304
1,810
66
74
27.424242
0.451842
0.310497
0
0.358974
0
0
0.236641
0.146565
0
0
0
0
0
1
0.153846
false
0
0.051282
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed74a764a59e3a86287602039bf2ec5385171763
13,130
py
Python
tools/ckpt_surgery.py
wbailer/few-shot-object-detection
3cd9e3238ddbe8cc399275139df46c4a8713dd2b
[ "Apache-2.0" ]
null
null
null
tools/ckpt_surgery.py
wbailer/few-shot-object-detection
3cd9e3238ddbe8cc399275139df46c4a8713dd2b
[ "Apache-2.0" ]
null
null
null
tools/ckpt_surgery.py
wbailer/few-shot-object-detection
3cd9e3238ddbe8cc399275139df46c4a8713dd2b
[ "Apache-2.0" ]
null
null
null
import torch import argparse import os import sys lib_path = os.path.abspath(os.path.join(os.path.dirname(__file__),'../fsdet/data')) sys.path.append(lib_path) import custom_dataset def parse_args(): parser = argparse.ArgumentParser() # Paths parser.add_argument('--src1', type=str, default='', ...
40.030488
124
0.54128
1,821
13,130
3.773202
0.389347
0.030127
0.024742
0.013972
0.357153
0.330956
0.310435
0.297482
0.289041
0.289041
0
0.219799
0.332978
13,130
327
125
40.152905
0.564741
0.082711
0
0.366935
0
0
0.078639
0.005516
0
0
0
0
0
1
0.03629
false
0
0.020161
0
0.068548
0.004032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed7c63692cd5c6012a23b16de12a71a950c2dc0e
331
py
Python
tests/factories.py
cjolowicz/muckr-service
014017ab92bd1d2034cd398f2e98a6fdaf30f164
[ "MIT" ]
null
null
null
tests/factories.py
cjolowicz/muckr-service
014017ab92bd1d2034cd398f2e98a6fdaf30f164
[ "MIT" ]
12
2018-12-21T22:13:33.000Z
2019-08-03T20:03:19.000Z
tests/factories.py
cjolowicz/muckr-service
014017ab92bd1d2034cd398f2e98a6fdaf30f164
[ "MIT" ]
null
null
null
"""Base Factory to help in model tests.""" from factory.alchemy import SQLAlchemyModelFactory from muckr_api.extensions import database class BaseFactory(SQLAlchemyModelFactory): """Base factory.""" class Meta: """Factory configuration.""" abstract = True sqlalchemy_session = databa...
22.066667
50
0.70997
33
331
7.060606
0.69697
0.094421
0
0
0
0
0
0
0
0
0
0
0.199396
331
14
51
23.642857
0.879245
0.220544
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ed7ffeb91799917e4fed3fa29040eaa0948996cc
2,511
py
Python
tests/misc/test_wget.py
yjqiang/stash
83dd0367b2a260f69afbe59738ae9ae523f8f1d1
[ "MIT" ]
1
2019-04-16T14:01:03.000Z
2019-04-16T14:01:03.000Z
tests/misc/test_wget.py
yjqiang/stash
83dd0367b2a260f69afbe59738ae9ae523f8f1d1
[ "MIT" ]
null
null
null
tests/misc/test_wget.py
yjqiang/stash
83dd0367b2a260f69afbe59738ae9ae523f8f1d1
[ "MIT" ]
null
null
null
"""tests for the 'wget' command.""" import os import tempfile from stash.tests.stashtest import StashTestCase, requires_network class WgetTests(StashTestCase): """tests for the 'wget' command.""" cwd = tempfile.gettempdir() download_target = "https://github.com/ywangd/stash/archive/master.zip" invali...
41.163934
102
0.637595
311
2,511
5.057878
0.21865
0.114431
0.102988
0.06103
0.507311
0.38843
0.343929
0.264463
0.264463
0.264463
0
0.003032
0.211868
2,511
60
103
41.85
0.791814
0.106332
0
0.244444
0
0
0.214415
0
0
0
0
0
0.488889
1
0.111111
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
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
ed81dbb828a3d47e3550f10b132db1a63ccc1964
58,222
py
Python
cinder/tests/test_glusterfs.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_glusterfs.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_glusterfs.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.307459
79
0.613153
6,927
58,222
4.789808
0.063375
0.029175
0.055065
0.021218
0.794026
0.733205
0.699207
0.647729
0.602158
0.571657
0
0.015859
0.276528
58,222
1,648
80
35.328884
0.771829
0.055168
0
0.642284
0
0
0.139724
0.024464
0
0
0
0
0.024978
1
0.044603
false
0
0.016057
0.000892
0.075825
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
ed8376ea0b1c3e53940ea7e1ea28d81d3d41e21a
2,149
py
Python
DataAugmentor/cornerData.py
lehuyhunghedspi/demo_anh
8b95f3f366c5cd531bbc4dd1f57aeea0ec42c8e1
[ "Apache-2.0" ]
null
null
null
DataAugmentor/cornerData.py
lehuyhunghedspi/demo_anh
8b95f3f366c5cd531bbc4dd1f57aeea0ec42c8e1
[ "Apache-2.0" ]
null
null
null
DataAugmentor/cornerData.py
lehuyhunghedspi/demo_anh
8b95f3f366c5cd531bbc4dd1f57aeea0ec42c8e1
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import cv2 import csv import utils output_dir = "./multipleBackgroundsCorners" if (not os.path.isdir(output_dir)): os.mkdir(output_dir) dir = "../data1" import csv with open(output_dir+"/gt.csv", 'a') as csvfile: spamwriter_1 = csv.writer(csvfile, delimiter=',', ...
43.857143
130
0.463937
256
2,149
3.808594
0.28125
0.046154
0.032821
0.018462
0.190769
0.190769
0.164103
0.067692
0.067692
0
0
0.052874
0.392741
2,149
48
131
44.770833
0.694253
0.100047
0
0.111111
0
0
0.037364
0.01453
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ed86cc49af472fbfdd5efc01b3dee93370ff5aa5
2,063
py
Python
nbs/examples/train_imdbclassifier.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
87
2020-09-01T04:23:40.000Z
2021-03-12T14:44:07.000Z
nbs/examples/train_imdbclassifier.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
55
2020-09-04T05:46:38.000Z
2021-03-21T12:00:05.000Z
nbs/examples/train_imdbclassifier.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
10
2020-08-31T13:02:06.000Z
2021-01-26T17:28:23.000Z
from fastai.basics import * from fastai.callback.all import * from fastai.distributed import * from fastprogress import fastprogress from fastai.callback.mixup import * from fastscript import * from fastai.text.all import * torch.backends.cudnn.benchmark = True fastprogress.MAX_COLS = 80 @call_parse def main( gpu...
37.509091
109
0.677654
298
2,063
4.573826
0.483221
0.036684
0.035216
0.016141
0
0
0
0
0
0
0
0.015854
0.205041
2,063
54
110
38.203704
0.815244
0.208434
0
0
0
0.027027
0.185498
0.013293
0
0
0
0.018519
0
1
0.027027
false
0
0.189189
0
0.216216
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ed8959eafca51dc1e0526c2bc2873b4cae280216
1,040
py
Python
Tree/leetcode_tree/easy/start_undone_101.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
Tree/leetcode_tree/easy/start_undone_101.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
Tree/leetcode_tree/easy/start_undone_101.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
""" 给定一个二叉树,检查它是否是镜像对称的。   例如,二叉树 [1,2,2,3,4,4,3] 是对称的。 1 / \ 2 2 / \ / \ 3 4 4 3   但是下面这个 [1,2,2,null,3,null,3] 则不是镜像对称的: 1 / \ 2 2 \ \ 3 3 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/symmetric-tree 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """ # Definition for a binary tre...
17.931034
105
0.541346
145
1,040
3.855172
0.393103
0.062612
0.021467
0.021467
0.025045
0.025045
0.025045
0
0
0
0
0.035294
0.346154
1,040
57
106
18.245614
0.786765
0.328846
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ed8bd81bc94d05678496c2e3cdb741d78541511b
1,406
py
Python
.qt_for_python/uic/create_proto_dir.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
.qt_for_python/uic/create_proto_dir.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
.qt_for_python/uic/create_proto_dir.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'g:\达瓦未来\ProtocolAndExcelTool\qt_ui\ui\create_proto_dir.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_CreateDirForm(object): ...
41.352941
112
0.720484
146
1,406
6.883562
0.513699
0.035821
0.065672
0
0
0
0
0
0
0
0
0.031651
0.168563
1,406
33
113
42.606061
0.828058
0.161451
0
0
1
0
0.081127
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ed8be382eb09de859289e27b4de22c2332716d51
2,481
py
Python
panther/request.py
AliRn76/panther
a87f1d2789e125aa4ce4bdae71b708cadf6512de
[ "MIT" ]
2
2022-03-28T08:35:56.000Z
2022-03-28T12:19:16.000Z
panther/request.py
AliRn76/panther
a87f1d2789e125aa4ce4bdae71b708cadf6512de
[ "MIT" ]
null
null
null
panther/request.py
AliRn76/panther
a87f1d2789e125aa4ce4bdae71b708cadf6512de
[ "MIT" ]
null
null
null
import orjson from dataclasses import dataclass from panther.logger import logger @dataclass(frozen=True) class Headers: accept_encoding: str content_length: int content_type: str user_agent: str connection: str accept: str host: str class Request: def __init__(self, scope: dict, body...
27.876404
88
0.583233
284
2,481
4.950704
0.302817
0.064011
0.059744
0.081081
0.076814
0.042674
0
0
0
0
0
0.006289
0.295042
2,481
88
89
28.193182
0.797599
0.05522
0
0.15493
0
0
0.126176
0.011548
0
0
0
0.011364
0
1
0.140845
false
0.014085
0.042254
0.084507
0.43662
0
0
0
0
null
0
0
0
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
71e87fdf614713e4c205f371e8c71be68bc98344
624
py
Python
ex32.py
cohadar/learn-python-the-hard-way
10d88fe59a8abc5303661cfe91c6db9fa71bdd56
[ "MIT" ]
null
null
null
ex32.py
cohadar/learn-python-the-hard-way
10d88fe59a8abc5303661cfe91c6db9fa71bdd56
[ "MIT" ]
null
null
null
ex32.py
cohadar/learn-python-the-hard-way
10d88fe59a8abc5303661cfe91c6db9fa71bdd56
[ "MIT" ]
null
null
null
# ha I know, I will mix exercises random smart-ass-ness the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] for number in the_count: print "This is count %d" % number for fruit in fruits: if fruit[0] in "aeiou": print "an %s is a frui...
20.8
55
0.644231
107
624
3.738318
0.560748
0.04
0.02
0.045
0
0
0
0
0
0
0
0.020534
0.219551
624
30
56
20.8
0.800821
0.168269
0
0
0
0
0.24178
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
71ec0e3c1375b4788bd9a12178a16f57b0b52fab
737
py
Python
utils/interfaces/__init__.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
3
2021-11-15T20:28:25.000Z
2022-01-27T18:33:15.000Z
utils/interfaces/__init__.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
25
2021-11-08T15:50:38.000Z
2022-03-29T12:16:17.000Z
utils/interfaces/__init__.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
1
2021-11-15T20:28:28.000Z
2021-11-15T20:28:28.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2021 Datadog, Inc. from ._agent.core import AgentInterfaceValidator from ._library.core import Library...
38.789474
120
0.829037
78
737
7.628205
0.602564
0.067227
0.067227
0
0
0
0
0
0
0
0
0.009105
0.105834
737
18
121
40.944444
0.893778
0.325645
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
71eceb603873f38fdae0158c1ea17dd7cbfa6c90
846
py
Python
posts/models.py
xmedinavei/postgram
c6c5b7a9b1fe293242bf1e611691f4f286445b99
[ "MIT" ]
null
null
null
posts/models.py
xmedinavei/postgram
c6c5b7a9b1fe293242bf1e611691f4f286445b99
[ "MIT" ]
9
2021-03-19T01:48:28.000Z
2022-01-13T02:30:51.000Z
posts/models.py
xmedinavei/postgram
c6c5b7a9b1fe293242bf1e611691f4f286445b99
[ "MIT" ]
null
null
null
"""Posts models.""" #Django from django.db import models from django.contrib.auth.models import User #Este se conecta con el formulario PostForm de form.py class Post(models.Model): """Post model.""" #Para relacionarlo con nuestro usuario #USANDO FOREIGN KEY #documentation Django Model Field Referen...
30.214286
121
0.719858
109
846
5.458716
0.623853
0.033613
0.047059
0.070588
0
0
0
0
0
0
0
0.004243
0.164303
846
27
122
31.333333
0.837341
0.300236
0
0
0
0
0.059649
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
71f45b2919fe28e2ae937523455676a68c17e1a6
3,105
py
Python
save_lstm_model_light.py
baharababah/DIM
b879c1bf5b2cd66183b7fcfbf7be7208a287af1e
[ "MIT" ]
null
null
null
save_lstm_model_light.py
baharababah/DIM
b879c1bf5b2cd66183b7fcfbf7be7208a287af1e
[ "MIT" ]
null
null
null
save_lstm_model_light.py
baharababah/DIM
b879c1bf5b2cd66183b7fcfbf7be7208a287af1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Save_LSTM_Model_Light.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1uu6RgATMbbcDPeDKA4bIpqDGPI-rW1D_ """ import numpy as np import pandas as pd import io from sklearn.metrics import confusion_matrix from...
37.865854
125
0.70306
453
3,105
4.593819
0.373068
0.034599
0.020183
0.02643
0.164344
0.115329
0.088419
0.088419
0.024988
0
0
0.015187
0.172947
3,105
82
126
37.865854
0.795171
0.156844
0
0
1
0
0.103448
0.01684
0
0
0
0
0
1
0.055556
false
0
0.203704
0
0.296296
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
71f826a33029bd621e1ef5e0b6ba5eda9cb21ab3
1,211
py
Python
src/jupyter_contrib_nbextensions/nbconvert_support/__init__.py
WTRipper/jupyter_contrib_nbextensions
513309a6f4b72836485bc48a47c12b8ec91e2f90
[ "BSD-3-Clause-Clear" ]
4,439
2016-07-29T15:16:57.000Z
2022-03-31T07:29:05.000Z
src/jupyter_contrib_nbextensions/nbconvert_support/__init__.py
WTRipper/jupyter_contrib_nbextensions
513309a6f4b72836485bc48a47c12b8ec91e2f90
[ "BSD-3-Clause-Clear" ]
813
2016-07-27T23:15:35.000Z
2022-03-26T10:22:45.000Z
src/jupyter_contrib_nbextensions/nbconvert_support/__init__.py
WTRipper/jupyter_contrib_nbextensions
513309a6f4b72836485bc48a47c12b8ec91e2f90
[ "BSD-3-Clause-Clear" ]
741
2016-07-28T12:18:05.000Z
2022-03-14T00:40:46.000Z
"""Classes and functions provided for use with nbconvert.""" import os from .collapsible_headings import ExporterCollapsibleHeadings from .embedhtml import EmbedHTMLExporter from .execute_time import ExecuteTimePreprocessor from .exporter_inliner import ExporterInliner from .nbTranslate import NotebookLangExporter fr...
31.868421
78
0.798514
102
1,211
9.284314
0.519608
0.029567
0.027455
0
0
0
0
0
0
0
0
0.003799
0.130471
1,211
37
79
32.72973
0.895537
0.101569
0
0
0
0
0.255339
0.153203
0
0
0
0
0
1
0.033333
false
0
0.4
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
71fb90a5b87e87574b7dc18e0b149b7c4f6b7b79
14,189
py
Python
tests/output/dynamic.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
1
2020-10-29T18:23:25.000Z
2020-10-29T18:23:25.000Z
tests/output/dynamic.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
null
null
null
tests/output/dynamic.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the dynamic output module.""" from __future__ import unicode_literals import unittest from plaso.containers import events from plaso.formatters import interface as formatters_interface from plaso.formatters import manager as formatters_manager from plaso.li...
38.557065
80
0.746
1,487
14,189
6.808339
0.119704
0.055314
0.065686
0.075069
0.739629
0.698736
0.653102
0.633544
0.622679
0.616456
0
0.018346
0.154838
14,189
367
81
38.662125
0.825884
0.06949
0
0.643678
0
0.007663
0.123911
0.04492
0
0
0
0.002725
0.099617
1
0.065134
false
0
0.042146
0
0.141762
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c01549721f57dde74b2b8b74166b50e2ac15b87
1,081
py
Python
FIKRIYE/OOP/Polymorphism.py
vektorelpython24proje/temelbilgiler
bced2723d247dbb8b10cf86e25ee209635f82921
[ "MIT" ]
null
null
null
FIKRIYE/OOP/Polymorphism.py
vektorelpython24proje/temelbilgiler
bced2723d247dbb8b10cf86e25ee209635f82921
[ "MIT" ]
null
null
null
FIKRIYE/OOP/Polymorphism.py
vektorelpython24proje/temelbilgiler
bced2723d247dbb8b10cf86e25ee209635f82921
[ "MIT" ]
3
2020-10-24T14:36:14.000Z
2020-10-24T14:41:13.000Z
# polymorphism # fonksiyonlarda polymorphism # var1 = "metin" # var2 = [1,2,3,4] # print(len(var1)) # print(len(var2)) # def add(x,y,z=0): # return x+y+z # print(add(2,3)) # print(add(2,3,4)) # Class Method polymorphism # class Azerbaycan(): # def baskent(self): # print("Bakü Azerbaycan Başkentidir...
15.666667
47
0.543941
136
1,081
4.235294
0.316176
0.109375
0.010417
0.034722
0.197917
0.197917
0.197917
0.197917
0.197917
0.197917
0
0.028169
0.277521
1,081
68
48
15.897059
0.709347
0.627197
0
0.375
0
0
0.005391
0
0
0
0
0
0
1
0.25
false
0
0
0.0625
0.5
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9c041099126d2a3a454e0758df1841a1a30adbf6
428
py
Python
pybaseball/analysis/projections/marcels/age_adjustment.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
650
2017-06-29T20:05:19.000Z
2022-03-31T03:27:25.000Z
pybaseball/analysis/projections/marcels/age_adjustment.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
216
2017-10-21T05:05:08.000Z
2022-03-31T04:04:53.000Z
pybaseball/analysis/projections/marcels/age_adjustment.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
214
2017-07-18T21:40:01.000Z
2022-03-29T03:19:55.000Z
from typing import Optional from pandas import isnull def age_adjustment(age: Optional[float]) -> float: """ Marcel age adjustment :param age: numeric :return: float """ if isnull(age): return float("nan") assert age if age <= 0: return 1 elif age >= 29:...
17.833333
50
0.535047
56
428
4.071429
0.428571
0.092105
0.096491
0.105263
0
0
0
0
0
0
0
0.075269
0.348131
428
23
51
18.608696
0.741935
0.165888
0
0
0
0
0.009009
0
0
0
0
0
0.083333
1
0.083333
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9c076d4b366167f627381962a4d1a76907ad95ef
5,670
py
Python
info/modules/passport/views.py
Elvira521feng/InfoNews
5db22738446b1026db6479b91dc42c3aeba17060
[ "MIT" ]
null
null
null
info/modules/passport/views.py
Elvira521feng/InfoNews
5db22738446b1026db6479b91dc42c3aeba17060
[ "MIT" ]
null
null
null
info/modules/passport/views.py
Elvira521feng/InfoNews
5db22738446b1026db6479b91dc42c3aeba17060
[ "MIT" ]
null
null
null
import random import re from datetime import datetime from info import sr, db from info.lib.yuntongxun.sms import CCP from info.models import User from info.modules.passport import passport_blu from flask import render_template, request, abort, make_response, Response, current_app, jsonify, session from info.utils.ca...
26.25
105
0.663845
770
5,670
4.732468
0.209091
0.082053
0.113611
0.132547
0.500549
0.466246
0.380626
0.380626
0.357574
0.345499
0
0.010275
0.210406
5,670
215
106
26.372093
0.803663
0.096649
0
0.396552
0
0
0.062426
0
0
0
0
0
0
1
0.043103
false
0.103448
0.086207
0
0.344828
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
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
9c0e25b7d85216290bf784bf9a1e19aeddcae74c
8,319
py
Python
argo/workflows/client/models/v1alpha1_artifact_location.py
fvdnabee/argo-client-python-1
4264e063e31865c55418e0b242dd21ba6d19ed64
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1alpha1_artifact_location.py
fvdnabee/argo-client-python-1
4264e063e31865c55418e0b242dd21ba6d19ed64
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1alpha1_artifact_location.py
fvdnabee/argo-client-python-1
4264e063e31865c55418e0b242dd21ba6d19ed64
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Python client for Argo Workflows # noqa: E501 OpenAPI spec version: 2.5.0-rc10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class V1alpha1ArtifactLocation(object): """NOTE: This class is a...
29.087413
125
0.599952
888
8,319
5.530405
0.150901
0.061902
0.171045
0.145388
0.468133
0.406435
0.378538
0.204439
0.040725
0.040725
0
0.044448
0.315783
8,319
285
126
29.189474
0.818342
0.433466
0
0.075
1
0
0.068732
0.007029
0
0
0
0
0
1
0.166667
false
0
0.025
0
0.325
0.016667
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
9c0ec9c4ee10d0fdf4399d47458b627d928385ed
2,071
py
Python
settings/develop.py
colinshin/webpyCMS
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
1
2020-12-29T08:46:11.000Z
2020-12-29T08:46:11.000Z
settings/develop.py
colinshin/webpyCMS
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
null
null
null
settings/develop.py
colinshin/webpyCMS
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
null
null
null
# coding=utf-8 import os class DevelopConfig(object): # Debugging DEBUG = 0 # Site information NAME = 'webpyCMS' DESCRIPTION = 'webpyCMS' CSS = 'static/' TEMPLATE = 'templates/' FRONT_TEMPLATE = 'templates/front/' ADMIN_TEMPLATE = 'templates/admin/' ADMIN_SECRET = 'styt@3dfgs...
27.613333
79
0.645582
286
2,071
4.423077
0.353147
0.047431
0.056917
0.082213
0.350988
0.350988
0.254545
0.170751
0.170751
0.170751
0
0.043773
0.216803
2,071
74
80
27.986486
0.736128
0.05408
0
0.040816
0
0
0.239979
0
0
0
0
0
0
1
0
false
0.040816
0.020408
0
0.918367
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
9c116879a1445a2722a91c2d111246a3f933366b
10,686
py
Python
code/streamlit_app.py
mkusm/invest-dashboard
4cb45f4b8e52320b2458a967025bf13f3f52e1af
[ "Unlicense" ]
null
null
null
code/streamlit_app.py
mkusm/invest-dashboard
4cb45f4b8e52320b2458a967025bf13f3f52e1af
[ "Unlicense" ]
3
2022-03-25T11:49:12.000Z
2022-03-25T11:52:11.000Z
code/streamlit_app.py
mkusm/invest-dashboard
4cb45f4b8e52320b2458a967025bf13f3f52e1af
[ "Unlicense" ]
null
null
null
import os import random import pandas as pd import streamlit as st import yfinance as yf from english_words import english_words_lower_alpha_set from streamlit_cookies_manager import EncryptedCookieManager import data_utils import database as db import plot_utils def handle_purchase_form( purchase_df, ...
38.301075
117
0.637376
1,329
10,686
4.845749
0.234763
0.043478
0.031677
0.023292
0.237422
0.152795
0.125466
0.125466
0.096273
0.085404
0
0.005883
0.252386
10,686
278
118
38.438849
0.800225
0.037245
0
0.189427
0
0
0.203139
0.010527
0
0
0
0
0
1
0.004405
false
0.092511
0.044053
0
0.088106
0
0
0
0
null
0
0
0
0
0
0
0
0
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
9c1215c8cdd8f96562041931cf9023fdb190f0e4
4,585
py
Python
cronrun2.py
karakani/bush-rabbit
e718fcec373cf9c4d5196e0a240d1556dc102133
[ "MIT" ]
null
null
null
cronrun2.py
karakani/bush-rabbit
e718fcec373cf9c4d5196e0a240d1556dc102133
[ "MIT" ]
null
null
null
cronrun2.py
karakani/bush-rabbit
e718fcec373cf9c4d5196e0a240d1556dc102133
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import argparse import os import subprocess import sys import syslog PRODUCT_NAME = "cronrun.py" RELEASE_VERSION = "0.2" def main(): parser = argparse.ArgumentParser(description="execute a command and output if abnormal exit") parser.add_argument("--logfile") parser.add_argument("-...
28.128834
111
0.608506
583
4,585
4.655232
0.272727
0.040531
0.056374
0.033898
0.120118
0.054532
0.054532
0.054532
0.054532
0.035372
0
0.005259
0.253435
4,585
162
112
28.302469
0.787613
0.148092
0
0.086957
0
0
0.182309
0.006203
0
0
0
0.012346
0
1
0.076087
false
0
0.054348
0.021739
0.26087
0.065217
0
0
0
null
0
0
0
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
9c15cfe34ee06d34ca00198341a54bf1bd7d8c7e
4,344
py
Python
tests/unittest_helper.py
rycus86/dockerhub-proxy
7b00230c40702e0f1d94c2420dba273a11b9a7c0
[ "MIT" ]
2
2017-07-17T06:58:01.000Z
2020-11-06T17:41:23.000Z
tests/unittest_helper.py
rycus86/dockerhub-proxy
7b00230c40702e0f1d94c2420dba273a11b9a7c0
[ "MIT" ]
null
null
null
tests/unittest_helper.py
rycus86/dockerhub-proxy
7b00230c40702e0f1d94c2420dba273a11b9a7c0
[ "MIT" ]
null
null
null
from unittest import TestCase class TestBase(TestCase): def verify_user_details(self, user): self.assertIsNotNone(user) for expected in ('id', 'username', 'full_name', 'location', 'company', 'profile_url', 'date_joined', 'gravatar_url', 'type'): self.assertIn...
38.442478
101
0.618554
460
4,344
5.704348
0.178261
0.164634
0.083841
0.019817
0.081555
0.041159
0
0
0
0
0
0.004275
0.246087
4,344
112
102
38.785714
0.796947
0
0
0
0
0
0.1895
0
0
0
0
0
0.651163
1
0.104651
false
0
0.011628
0
0.127907
0
0
0
0
null
0
0
0
0
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
9c178cab9d1b2273eb4d62834296bba43337270c
512
py
Python
scoutandrove/settings/heroku.py
ninapavlich/scout-and-rove
4f40b36f219ac4ab2bac1b5ca6130459138550c9
[ "MIT" ]
null
null
null
scoutandrove/settings/heroku.py
ninapavlich/scout-and-rove
4f40b36f219ac4ab2bac1b5ca6130459138550c9
[ "MIT" ]
null
null
null
scoutandrove/settings/heroku.py
ninapavlich/scout-and-rove
4f40b36f219ac4ab2bac1b5ca6130459138550c9
[ "MIT" ]
null
null
null
from scoutandrove.settings.base import * import dj_database_url import herokuify #============================================================================== # Generic Django project settings #============================================================================== DEBUG = False TEMPLATE_DEBUG = DEBUG ALLOWE...
28.444444
81
0.533203
42
512
6.309524
0.642857
0.075472
0.098113
0
0
0
0
0
0
0
0
0
0.089844
512
18
82
28.444444
0.56867
0.445313
0
0
0
0
0.092527
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9c191b2201b5cf3756491c643e9d9feb31a8da4e
12,381
py
Python
plugins/modules/oci_logging_log_actions.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_logging_log_actions.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_logging_log_actions.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
35.273504
157
0.557548
1,230
12,381
5.420325
0.24065
0.028799
0.061197
0.075596
0.441578
0.384881
0.283486
0.174591
0.159892
0.139043
0
0.017031
0.36451
12,381
350
158
35.374286
0.830325
0.034408
0
0.373377
0
0.016234
0.739375
0.0705
0
0
0
0
0
1
0.019481
false
0.003247
0.022727
0.012987
0.064935
0.003247
0
0
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
9c1c9ca0dbcca97fa43fc8bacf5b02562be83233
858
py
Python
user/urls.py
osambo/awwards
737d571a0ad87857e1e9289242220e84e4627428
[ "MIT" ]
null
null
null
user/urls.py
osambo/awwards
737d571a0ad87857e1e9289242220e84e4627428
[ "MIT" ]
null
null
null
user/urls.py
osambo/awwards
737d571a0ad87857e1e9289242220e84e4627428
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.urls.conf import path from django.urls import path from . import views from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView from . import views urlpatterns...
40.857143
95
0.710956
114
858
5.289474
0.307018
0.069652
0.082919
0.092869
0
0
0
0
0
0
0
0
0.11655
858
21
96
40.857143
0.795515
0
0
0.111111
0
0
0.188591
0.054715
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c220977e45810c44094af15217cb8383b13ec81
9,635
py
Python
ivy/functional/ivy/array_api/linear_algebra.py
RKuipers/ivy
aa32385392a2c6ec4e1620becb357a8d54e2cb6f
[ "Apache-2.0" ]
null
null
null
ivy/functional/ivy/array_api/linear_algebra.py
RKuipers/ivy
aa32385392a2c6ec4e1620becb357a8d54e2cb6f
[ "Apache-2.0" ]
null
null
null
ivy/functional/ivy/array_api/linear_algebra.py
RKuipers/ivy
aa32385392a2c6ec4e1620becb357a8d54e2cb6f
[ "Apache-2.0" ]
null
null
null
# global from typing import Union, Optional, Tuple, Literal from ivy.framework_handler import current_framework as _cur_framework # local import ivy from ivy.framework_handler import current_framework as _cur_framework inf = float('inf') # noinspection PyShadowingBuiltins def vector_norm(x: Union[ivy.Array, ivy.Nati...
51.801075
483
0.568552
1,293
9,635
4.228925
0.184841
0.050293
0.067301
0.039503
0.52853
0.463606
0.403438
0.351865
0.346196
0.316203
0
0.012236
0.262065
9,635
185
484
52.081081
0.75443
0.789102
0
0.129032
0
0
0.010596
0
0
0
0
0
0
1
0.16129
false
0
0.129032
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
9c2b8cd78ea8cd70326b75a59a41ad0e24d4ace6
177
py
Python
pyp/model/latest.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/latest.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/latest.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liying' class Latest(object): def __init__(self): self.package = None self.latest_version = None
14.75
34
0.60452
21
177
4.666667
0.809524
0
0
0
0
0
0
0
0
0
0
0.007463
0.242938
177
11
35
16.090909
0.723881
0.214689
0
0
0
0
0.043796
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
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
9c2d92f7df53980bd80ec01d60c95b8c8e9de5e3
1,632
py
Python
tests/emukit/core/optimization/test_anchor_points_generator.py
aeivazi/emukit
4fda4b8340839a7cf1a46401514bfc8baba0c8a5
[ "Apache-2.0" ]
1
2019-07-02T15:37:47.000Z
2019-07-02T15:37:47.000Z
tests/emukit/core/optimization/test_anchor_points_generator.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
null
null
null
tests/emukit/core/optimization/test_anchor_points_generator.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
1
2020-01-12T19:50:44.000Z
2020-01-12T19:50:44.000Z
import mock import numpy as np from emukit.core import ParameterSpace from emukit.core.acquisition import Acquisition from emukit.core.constraints import IConstraint from emukit.core.optimization.anchor_points_generator import ObjectiveAnchorPointsGenerator def test_objective_anchor_point_generator(): num_sample...
37.090909
96
0.778186
204
1,632
6.009804
0.259804
0.081566
0.073409
0.046493
0.683524
0.683524
0.683524
0.683524
0.652529
0.652529
0
0.007835
0.139706
1,632
43
97
37.953488
0.865385
0.09375
0
0.428571
0
0
0
0
0
0
0
0
0.071429
1
0.071429
false
0
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c2ec84ea0722c8b57cba90439f26bd98536d0a4
3,013
py
Python
glasnost/simultaneousModel.py
dpohanlon/Glasnost
8b16942a4c2cbe35c2a65edfb18db031d8cbe1fe
[ "MIT" ]
null
null
null
glasnost/simultaneousModel.py
dpohanlon/Glasnost
8b16942a4c2cbe35c2a65edfb18db031d8cbe1fe
[ "MIT" ]
null
null
null
glasnost/simultaneousModel.py
dpohanlon/Glasnost
8b16942a4c2cbe35c2a65edfb18db031d8cbe1fe
[ "MIT" ]
null
null
null
import numpy as np from glasnost.model import Model class SimultaneousModel(Model): """ Class derived from the Model class to provide functionality for simultaneous models, that are treated as the sum over all log-likelihoods constructed from (model, data) pairs. """ def __init__(self, initialF...
31.385417
145
0.664786
334
3,013
5.973054
0.398204
0.087218
0.046617
0.034085
0.035088
0
0
0
0
0
0
0.000892
0.256223
3,013
95
146
31.715789
0.889335
0.242947
0
0.045455
0
0
0.02669
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0.068182
0.5
0.022727
0
0
0
null
0
0
0
0
0
0
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
9c3285c18d91c152610d48c2f093067a7ef8a8c5
404
py
Python
setup.py
sensorpad/sensorpad-python
eb0fa53b78108cb45905dc58f7c498660ba8c4f7
[ "MIT" ]
4
2021-12-20T16:16:04.000Z
2022-01-02T20:24:08.000Z
setup.py
sensorpad/sensorpad-python
eb0fa53b78108cb45905dc58f7c498660ba8c4f7
[ "MIT" ]
null
null
null
setup.py
sensorpad/sensorpad-python
eb0fa53b78108cb45905dc58f7c498660ba8c4f7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='sensorpad', description='No-dependencies Python client for Sensorpad.', version='0.0.6', license='MIT', author="Alexander Zaitsev", author_email='alex@sensorpad.io', packages=find_packages(), url='https://github.com/sensorpad/sens...
26.933333
63
0.690594
45
404
6.111111
0.733333
0.087273
0
0
0
0
0
0
0
0
0
0.008824
0.158416
404
14
64
28.857143
0.8
0
0
0
0
0
0.393564
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9c35f7f98e01da020537412ba9f114dc0ae7ad49
594
py
Python
lms/models/lti_launches.py
robertknight/lms
634c78ad3f7d79a59b3edacdceaae6205ca319b4
[ "BSD-2-Clause" ]
null
null
null
lms/models/lti_launches.py
robertknight/lms
634c78ad3f7d79a59b3edacdceaae6205ca319b4
[ "BSD-2-Clause" ]
null
null
null
lms/models/lti_launches.py
robertknight/lms
634c78ad3f7d79a59b3edacdceaae6205ca319b4
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime import sqlalchemy as sa from lms.db import BASE class LtiLaunches(BASE): """Track each LTI launch.""" __tablename__ = "lti_launches" id = sa.Column(sa.Integer, autoincrement=True, primary_key=True) created = sa.Column(sa.TIMESTAMP, default=datetime.utcnow) context...
27
78
0.710438
85
594
4.776471
0.505882
0.078818
0.098522
0.059113
0
0
0
0
0
0
0
0
0.183502
594
21
79
28.285714
0.837113
0.116162
0
0
0
0
0.023346
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
9c36a18f31321fa1287c007cd5d701db2b9cfba4
643
py
Python
CSVUpperTriangularPlugin.py
movingpictures83/CSVUpperTriangular
356e274988964024dbe47c690829c81f4ca2535d
[ "MIT" ]
null
null
null
CSVUpperTriangularPlugin.py
movingpictures83/CSVUpperTriangular
356e274988964024dbe47c690829c81f4ca2535d
[ "MIT" ]
null
null
null
CSVUpperTriangularPlugin.py
movingpictures83/CSVUpperTriangular
356e274988964024dbe47c690829c81f4ca2535d
[ "MIT" ]
null
null
null
class CSVUpperTriangularPlugin: def input(self, filename): infile = open(filename, 'r') self.colnames = infile.readline().strip().split(',') # Assume rownames=colnames self.ADJ = [] for line in infile: self.ADJ.append(line.strip().split(',')[1:]) def run(self): pas...
32.15
95
0.544323
83
643
4.216867
0.445783
0.1
0.057143
0.062857
0.102857
0.102857
0
0
0
0
0
0.010707
0.273717
643
19
96
33.842105
0.738758
0.037325
0
0
0
0
0.034091
0
0
0
0
0
0
1
0.1875
false
0.0625
0
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
9c3cc8814cd09f4030a7765aad92b85f5a116701
216
py
Python
exercises/lists/basics/0_4.py
CrtomirJuren/python-delavnica
db96470d2cb1870390545cfbe511552a9ef08720
[ "MIT" ]
null
null
null
exercises/lists/basics/0_4.py
CrtomirJuren/python-delavnica
db96470d2cb1870390545cfbe511552a9ef08720
[ "MIT" ]
null
null
null
exercises/lists/basics/0_4.py
CrtomirJuren/python-delavnica
db96470d2cb1870390545cfbe511552a9ef08720
[ "MIT" ]
null
null
null
""" Python program to remove an empty element from a list. """ list_in = ['Hello', 34, 45, '', 40] # result = ['Hello', 34, 45, 40] for item in list_in: if not item: list_in.remove(item) print(list_in)
18
54
0.615741
36
216
3.583333
0.583333
0.186047
0.139535
0.170543
0
0
0
0
0
0
0
0.071856
0.226852
216
12
55
18
0.700599
0.398148
0
0
0
0
0.04065
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
9c3ffd4b56ec5a1d523c15df2c6c41def15b1e7b
868
py
Python
pystrings/how_much_love/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pystrings/how_much_love/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pystrings/how_much_love/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
""" if the number of petals is greater than the length of the list, reduce the number of petals by the length loop though list, checking if the number of petals is greater than the length of the list reduce the number of petals by the length of the list after every iteration until the number is less than or equal to l...
34.72
117
0.675115
151
868
3.774834
0.377483
0.098246
0.077193
0.119298
0.52807
0.512281
0.449123
0.449123
0.449123
0.449123
0
0.010542
0.235023
868
24
118
36.166667
0.847892
0.456221
0
0
0
0
0.215517
0
0
0
0
0
0
1
0.181818
false
0.181818
0
0.090909
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9c407c8ed84a8d4374ce557e5492c2956c1fac54
1,232
py
Python
bob/bio/face/config/baseline/dummy.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
4
2016-09-01T13:16:46.000Z
2021-09-03T03:27:18.000Z
bob/bio/face/config/baseline/dummy.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
6
2015-09-02T19:31:15.000Z
2016-10-10T21:48:39.000Z
bob/bio/face/config/baseline/dummy.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
6
2015-10-07T17:18:48.000Z
2017-07-18T19:41:14.000Z
from bob.pipelines import wrap from sklearn.pipeline import make_pipeline from bob.bio.base.pipelines.vanilla_biometrics import ( Distance, VanillaBiometricsPipeline, ) from bob.pipelines.transformers import SampleLinearize from bob.bio.face.utils import lookup_config_from_database annotation_type, fixed_posit...
27.377778
86
0.742695
141
1,232
6.297872
0.439716
0.031532
0.064189
0.094595
0.072072
0
0
0
0
0
0
0.005848
0.167208
1,232
44
87
28
0.859649
0
0
0
0
0
0.039773
0
0
0
0
0
0
1
0.133333
false
0
0.233333
0.1
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9c40a17c09cd2ad727ff058160fc1ddef516738f
4,114
py
Python
Server/src/connector.py
Hattshire/Nasty
6e25c4a87960278393bd6beb26cabd701b2ed27b
[ "MIT" ]
null
null
null
Server/src/connector.py
Hattshire/Nasty
6e25c4a87960278393bd6beb26cabd701b2ed27b
[ "MIT" ]
null
null
null
Server/src/connector.py
Hattshire/Nasty
6e25c4a87960278393bd6beb26cabd701b2ed27b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 ## ############ ## ## Software under MIT licence ## ############ import socket import Queue, threading, sys, select import catch_yt as yt import processing class Server: def __init__( self ): # Host Name self.h_name = '' # Host Port self.h_port = 36326 ...
29.385714
103
0.472047
412
4,114
4.640777
0.368932
0.062762
0.029289
0.023013
0
0
0
0
0
0
0
0.010762
0.435343
4,114
139
104
29.597122
0.812312
0.169178
0
0.139241
0
0
0.053103
0
0
0
0
0.007194
0
0
null
null
0
0.050633
null
null
0.113924
0
0
0
null
0
0
0
0
0
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
9c42c16ab44e6bfba3f45c5ec848dfc196357545
3,795
py
Python
scipy/linalg/lapack.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
3
2017-10-26T08:02:24.000Z
2021-02-18T14:43:59.000Z
scipy/linalg/lapack.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/lapack.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
5
2015-12-19T13:44:52.000Z
2022-02-03T09:35:22.000Z
# # Author: Pearu Peterson, March 2002 # __all__ = ['get_lapack_funcs'] # The following ensures that possibly missing flavor (C or Fortran) is # replaced with the available one. If none is available, exception # is raised at the first attempt to use the resources. import types import numpy from scipy.linalg import ...
32.715517
75
0.622398
488
3,795
4.627049
0.305328
0.031887
0.042516
0.044287
0.086802
0.048716
0.024801
0
0
0
0
0.013638
0.285112
3,795
115
76
33
0.818651
0.159947
0
0.141176
0
0
0.07913
0.024728
0
0
0
0
0
0
null
null
0
0.047059
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
9c48c321f8922d53b44e4ec1ae48a158a18f93cd
54,354
py
Python
hikari/api/special_endpoints.py
patchwork-systems/hikari
62825a1d7fe08e5f730cd59c6d7569c05e723b9a
[ "MIT" ]
null
null
null
hikari/api/special_endpoints.py
patchwork-systems/hikari
62825a1d7fe08e5f730cd59c6d7569c05e723b9a
[ "MIT" ]
null
null
null
hikari/api/special_endpoints.py
patchwork-systems/hikari
62825a1d7fe08e5f730cd59c6d7569c05e723b9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # cython: language_level=3 # Copyright (c) 2020 Nekokatt # Copyright (c) 2021-present davfsa # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, inc...
33.082167
142
0.632391
5,838
54,354
5.826824
0.100719
0.060558
0.049387
0.034571
0.690655
0.654467
0.600582
0.546962
0.511186
0.456566
0
0.004439
0.278784
54,354
1,642
143
33.102314
0.86332
0.554918
0
0.628362
0
0
0.022291
0.010997
0
0
0
0
0
1
0.215159
false
0
0.051345
0
0.332518
0
0
0
0
null
0
0
0
0
0
0
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
9c4d260ad28c77496db2287ec4da531e2d7c0c95
517
py
Python
datayes/stocks_lifecycle.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
datayes/stocks_lifecycle.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
datayes/stocks_lifecycle.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
from pandas import DataFrame from dataapiclient import Client import json client = Client() client.init('cae5c4acc4ad4ccb93a8aaac4b8adb04363feaa9852c34d14ddd2248613b09b3') url='/api/equity/getEqu.json?field=ticker,secShortName,listDate,delistDate&listStatusCD=L,S,DE,UN&secID=&ticker=&equTypeCD=A' code, result = client....
43.083333
125
0.787234
70
517
5.714286
0.614286
0.06
0.15
0
0
0
0
0
0
0
0
0.065979
0.061896
517
12
126
43.083333
0.758763
0
0
0
0
0.083333
0.509653
0.401544
0
0
0
0
0
1
0
false
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c5071fb7b78d2d9ff7818f966215860aef79b77
2,740
py
Python
is_core/config.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
is_core/config.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
is_core/config.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings as django_settings def _get_auth_login_view(): if ('auth_token' in django_settings.INSTALLED_APPS and getattr(django_settings, 'AUTH_TOKEN_TWO_FACTOR_ENABLED', False)): return 'auth_token.contrib.is_core_auth.views.TwoFactorLoginView' elif 'auth_token' in d...
39.142857
115
0.720073
335
2,740
5.492537
0.343284
0.045652
0.029891
0.046196
0.263043
0.263043
0.248913
0.228261
0.15
0.102174
0
0.010927
0.164964
2,740
69
116
39.710145
0.793269
0
0
0.084746
0
0
0.517518
0.401095
0
0
0
0
0
1
0.033898
false
0.016949
0.016949
0
0.135593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c587999b40824bc514ddca0ea979ef0ed2549a5
757
py
Python
ddtrace/contrib/django/patch.py
mapleoin/dd-trace-py
b1c85f67b2a99b1c80df3ea847b6a5f523b52959
[ "BSD-3-Clause" ]
1
2020-03-10T01:45:56.000Z
2020-03-10T01:45:56.000Z
ddtrace/contrib/django/patch.py
mapleoin/dd-trace-py
b1c85f67b2a99b1c80df3ea847b6a5f523b52959
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/django/patch.py
mapleoin/dd-trace-py
b1c85f67b2a99b1c80df3ea847b6a5f523b52959
[ "BSD-3-Clause" ]
null
null
null
from ddtrace.vendor import wrapt import django def patch(): """Patch the instrumented methods """ if getattr(django, '_datadog_patch', False): return setattr(django, '_datadog_patch', True) _w = wrapt.wrap_function_wrapper _w('django', 'setup', traced_setup) def traced_setup(wrappe...
27.035714
92
0.676354
89
757
5.573034
0.483146
0.157258
0.211694
0
0
0
0
0
0
0
0
0.003378
0.217966
757
27
93
28.037037
0.834459
0.089828
0
0
0
0
0.153734
0.096633
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.375
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
9c5b963a1aa270286cabbd010f66154713603a7e
594
py
Python
DSA/arrays/gfg_practise/max_increasing_sub_sequence.py
RohanMiraje/DSAwithPython
ea4884afcac9d6cc2817a93e918c829dd10cef5d
[ "MIT" ]
2
2020-02-12T03:00:03.000Z
2020-07-06T17:27:03.000Z
DSA/arrays/gfg_practise/max_increasing_sub_sequence.py
RohanMiraje/DSAwithPython
ea4884afcac9d6cc2817a93e918c829dd10cef5d
[ "MIT" ]
null
null
null
DSA/arrays/gfg_practise/max_increasing_sub_sequence.py
RohanMiraje/DSAwithPython
ea4884afcac9d6cc2817a93e918c829dd10cef5d
[ "MIT" ]
null
null
null
def get_max_increasing_sub_sequence(arr): i = 1 n = len(arr) j = 0 dp = arr[:] while i < n: while j < i: if dp[j] < dp[i] < dp[i] + dp[j]: dp[i] = dp[j] + dp[i] j += 1 i += 1 return max(dp) if __name__ == '__main__': # arr = [1, 101, ...
25.826087
53
0.510101
91
594
3.076923
0.428571
0.042857
0.171429
0.203571
0.421429
0.4
0
0
0
0
0
0.037783
0.33165
594
22
54
27
0.667506
0.126263
0
0
0
0
0.015504
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.055556
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
9c5b99abf0fbb1e1b9a68f92b3c9c12ca733d2b7
1,854
py
Python
demo-05-00/flask.py
mofei952/flask-internal
ee7f84aee0347b6f532d1204f32487733d90de62
[ "BSD-2-Clause" ]
null
null
null
demo-05-00/flask.py
mofei952/flask-internal
ee7f84aee0347b6f532d1204f32487733d90de62
[ "BSD-2-Clause" ]
null
null
null
demo-05-00/flask.py
mofei952/flask-internal
ee7f84aee0347b6f532d1204f32487733d90de62
[ "BSD-2-Clause" ]
null
null
null
from werkzeug.wrappers import Request, Response from werkzeug.routing import Map, Rule # 参考: # http://werkzeug.pocoo.org/docs/routing/#quickstart class FlaskRequest(Request): pass class FlaskResponse(Response): default_mimetype = 'text/html' class Flask(object): request_class = FlaskRequest respo...
26.869565
65
0.641855
221
1,854
5.180995
0.352941
0.031441
0.069869
0.043668
0
0
0
0
0
0
0
0.008469
0.235707
1,854
68
66
27.264706
0.798871
0.028587
0
0
0
0
0.063996
0
0
0
0
0
0
1
0.195652
false
0.021739
0.065217
0.065217
0.543478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
9c608430c53306b7b7bdd48bcb296ef060704e93
359
py
Python
ch03/sig_step_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch03/sig_step_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch03/sig_step_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np import matplotlib.pylab as plt def sigmoid(x): return 1 / (1 + np.exp(-x)) def step_function(x): return np.array(x > 0, dtype=np.int) x = np.arange(-5.0, 5.0, 0.1) y1 = sigmoid(x) y2 = step_function(x) plt.plot(x, y1) plt.plot(x, y2, 'k--') plt.ylim...
17.095238
41
0.584958
67
359
3.104478
0.462687
0.028846
0.125
0
0
0
0
0
0
0
0
0.065455
0.233983
359
20
42
17.95
0.690909
0.069638
0
0
0
0
0.009646
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.153846
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9c610249f41290ac544d32f9d68efc6848e9180d
6,336
py
Python
tests/test_paasta_metastatus.py
xcorail/paasta
3f132c73b45fcf0afc31ddb889205ecd9394d4bb
[ "Apache-2.0" ]
null
null
null
tests/test_paasta_metastatus.py
xcorail/paasta
3f132c73b45fcf0afc31ddb889205ecd9394d4bb
[ "Apache-2.0" ]
4
2021-02-08T20:42:08.000Z
2021-06-02T00:51:04.000Z
tests/test_paasta_metastatus.py
eric-erki/An-open-distributed-platform-as-a-service
6769c5601685deb1017910ab8d09109e8e998892
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015-2016 Yelp 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 ...
44.307692
112
0.732323
813
6,336
5.351784
0.206642
0.049644
0.080901
0.077224
0.660997
0.660997
0.650885
0.615721
0.615721
0.615721
0
0.008233
0.175663
6,336
142
113
44.619718
0.824813
0.1381
0
0.666667
0
0
0.254455
0.22359
0
0
0
0
0.057143
1
0.047619
false
0
0.057143
0
0.104762
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c6151f93a7a7c668c42fd57972df93f0c8428a1
5,362
py
Python
src/fvm/test/PARALLEL_CAVITY_JACOBI_1/ptest.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/test/PARALLEL_CAVITY_JACOBI_1/ptest.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/test/PARALLEL_CAVITY_JACOBI_1/ptest.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Given script and destination directory, this run the script in the destinationdirectory and compared results in destination directory/GOLDEN and return 0 in success Usage: ptest.py [options] Options: --outdir Directory where test data is written. Default is current dir. --np ...
36.726027
103
0.643603
722
5,362
4.642659
0.202216
0.03401
0.038783
0.065931
0.435859
0.426611
0.412291
0.336217
0.336217
0.279535
0
0.010055
0.221
5,362
145
104
36.97931
0.792435
0.017158
0
0.238532
0
0
0.231348
0.032184
0
0
0
0
0
0
null
null
0
0.027523
null
null
0.146789
0
0
0
null
0
0
0
0
0
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
9c65328fcc7f5d689be27cc430ffb06eed298da3
2,019
py
Python
slingen/src/algogen/core/TOS.py
danielesgit/slingen
e7cfee7f6f2347b57eb61a077746c9309a85411c
[ "BSD-3-Clause" ]
23
2018-03-13T07:52:26.000Z
2022-03-24T02:32:00.000Z
SRC/core/TOS.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
2
2018-09-28T18:29:25.000Z
2019-02-20T13:22:19.000Z
SRC/core/TOS.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
3
2018-06-13T13:51:57.000Z
2020-01-11T14:47:02.000Z
from core.exceptions import OperandNotRegistered class TOS( dict ): def __init__(self): dict.__init__(self) def register( self, operand ): if not operand.get_name() in self: self[operand.get_name()] = (operand, set()) def get_operands( self ): return dict([ (k,v[0]) fo...
25.884615
78
0.585934
252
2,019
4.444444
0.242063
0.089286
0.0625
0.0375
0.223214
0.114286
0.114286
0
0
0
0
0.004298
0.308569
2,019
77
79
26.220779
0.797994
0.198118
0
0.234043
0
0
0
0
0
0
0
0
0
1
0.297872
false
0
0.042553
0.042553
0.468085
0
0
0
0
null
0
0
0
0
0
0
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
9c69a840344ecf8c4207d610a91ccb857ac14195
1,572
py
Python
ulrich_the_guardian/add_password.py
UlrichTheSoftwareDev/Ulrich_The_Guardian
23122c4be3eb0ab339f234a1fda179b09b63648a
[ "Apache-2.0" ]
null
null
null
ulrich_the_guardian/add_password.py
UlrichTheSoftwareDev/Ulrich_The_Guardian
23122c4be3eb0ab339f234a1fda179b09b63648a
[ "Apache-2.0" ]
null
null
null
ulrich_the_guardian/add_password.py
UlrichTheSoftwareDev/Ulrich_The_Guardian
23122c4be3eb0ab339f234a1fda179b09b63648a
[ "Apache-2.0" ]
null
null
null
from tinydb import TinyDB, Query import getpass import sys import hashlib import random import string import base64 from datetime import date from Crypto.Cipher import AES def add_password_db(): """Add password in DB: minimum lenght 8 char -> no complexity needed, 16 bytes IV and 32 bytes key AES 256 CF...
35.727273
146
0.640585
209
1,572
4.674641
0.440191
0.04913
0.024565
0
0
0
0
0
0
0
0
0.020921
0.239822
1,572
43
147
36.55814
0.796653
0.068066
0
0
0
0
0.142655
0
0
0
0
0
0
1
0.030303
false
0.242424
0.272727
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
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
9c6baccd804bd503172056785bd9bec45b8c49d0
1,918
py
Python
solutions/system_design/sales_rank/sales_rank_mapreduce.py
xiaopangwei/system-design
d664bbc3dbcde7e8d399a4a579f28ba7822209c4
[ "CC-BY-4.0" ]
852
2017-07-03T15:50:25.000Z
2022-03-30T18:00:19.000Z
solutions/system_design/sales_rank/sales_rank_mapreduce.py
xiaopangwei/system-design
d664bbc3dbcde7e8d399a4a579f28ba7822209c4
[ "CC-BY-4.0" ]
16
2017-07-02T14:42:31.000Z
2019-02-25T16:31:10.000Z
solutions/system_design/sales_rank/sales_rank_mapreduce.py
xiaopangwei/system-design
d664bbc3dbcde7e8d399a4a579f28ba7822209c4
[ "CC-BY-4.0" ]
109
2018-01-26T06:21:17.000Z
2021-12-22T01:38:21.000Z
# -*- coding: utf-8 -*- from mrjob.job import MRJob class SalesRanker(MRJob): def within_past_week(self, timestamp): """Return True if timestamp is within past week, False otherwise.""" ... def mapper(self, _, line): """Parse each log line, extract and transform relevant lines. ...
24.589744
76
0.531804
232
1,918
4.306034
0.400862
0.04004
0.042042
0.024024
0.104104
0.038038
0.038038
0.038038
0.038038
0
0
0.040931
0.350365
1,918
77
77
24.909091
0.760835
0.389468
0
0
0
0
0.010893
0
0
0
0
0
0
1
0.24
false
0
0.04
0
0.36
0
0
0
0
null
0
0
0
0
0
0
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
9c71ca3d3fa1e90359d5966d9296537db7f79e77
3,186
py
Python
extra_scripts/and_json.py
aled1027/2pc
63bf2c691f1ffd4248da060b0558d8e8198e715a
[ "MIT" ]
1
2018-07-30T07:33:45.000Z
2018-07-30T07:33:45.000Z
extra_scripts/and_json.py
aled1027/CompGC
63bf2c691f1ffd4248da060b0558d8e8198e715a
[ "MIT" ]
null
null
null
extra_scripts/and_json.py
aled1027/CompGC
63bf2c691f1ffd4248da060b0558d8e8198e715a
[ "MIT" ]
null
null
null
from pprint import pprint import json # json.dumps from collections import OrderedDict """ Generates the json for the AND Circuit """ def addANDWires(ret_dict, i0, i1): this_gc_id = ret_dict['circs_used'] ret_dict['circs_used'] += 1 r = OrderedDict() r["type"] = "EVAL" r["gc_id"] = this_gc_id ...
26.114754
87
0.612053
488
3,186
3.706967
0.188525
0.150912
0.066335
0.061913
0.409619
0.343836
0.304588
0.234384
0.234384
0.143726
0
0.021112
0.22693
3,186
121
88
26.330579
0.713358
0.044884
0
0.282609
1
0
0.234464
0
0
0
0
0
0.01087
1
0.054348
false
0
0.032609
0
0.108696
0.021739
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
9c7509cee75f289052f15362504bfdc9b85c9b7f
1,841
py
Python
examples/language_translator_v3.py
ricellis/python-sdk
f7be21f4e7cc55f079babb556d5e5a47523eee7b
[ "Apache-2.0" ]
1
2018-10-04T19:13:44.000Z
2018-10-04T19:13:44.000Z
examples/language_translator_v3.py
SamArtGS/python-sdk
7be6a4fe75d4a9fd365ef626d6289c0dc8457f3a
[ "Apache-2.0" ]
5
2020-03-24T16:26:02.000Z
2021-04-30T20:44:47.000Z
examples/language_translator_v3.py
SamArtGS/python-sdk
7be6a4fe75d4a9fd365ef626d6289c0dc8457f3a
[ "Apache-2.0" ]
3
2019-08-20T11:37:29.000Z
2020-07-18T11:22:14.000Z
# coding=utf-8 from __future__ import print_function import json from watson_developer_cloud import LanguageTranslatorV3 # language_translator = LanguageTranslatorV3( # version='2018-05-01.', # ### url is optional, and defaults to the URL below. Use the correct URL for your region. # # url='https://gateway...
35.403846
94
0.736556
234
1,841
5.632479
0.388889
0.150228
0.074355
0.095599
0.260243
0.19044
0.19044
0.110015
0.069803
0.069803
0
0.01696
0.135253
1,841
51
95
36.098039
0.81093
0.732754
0
0
0
0
0.140312
0
0
0
0
0
0
1
0
false
0.1
0.3
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9c77845eefd7433f4b6796a87bd4367fa8c41ae2
8,085
py
Python
mediapipe/calculators/tensorflow/unpack_media_sequence_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/tensorflow/unpack_media_sequence_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/tensorflow/unpack_media_sequence_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/tensorflow/unpack_media_sequence_calculator.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflectio...
61.25
933
0.824119
964
8,085
6.476141
0.172199
0.032036
0.048695
0.043248
0.568156
0.497998
0.430883
0.381708
0.334935
0.334935
0
0.028599
0.087446
8,085
131
934
61.717557
0.817566
0.039085
0
0.414414
1
0.009009
0.265524
0.250193
0
0
0
0
0
1
0
false
0
0.063063
0
0.063063
0
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
9c79e49cd33b89f6eb784137ff2e7b17243f2ae4
4,104
py
Python
src/Utils/Actions.py
fightZero/fightZero
84c2f76c7dda31837d002e47cd74936044251079
[ "MIT" ]
1
2021-12-13T14:05:05.000Z
2021-12-13T14:05:05.000Z
src/Utils/Actions.py
FightZero/FightZero
84c2f76c7dda31837d002e47cd74936044251079
[ "MIT" ]
null
null
null
src/Utils/Actions.py
FightZero/FightZero
84c2f76c7dda31837d002e47cd74936044251079
[ "MIT" ]
null
null
null
# this file defines available actions # reference: https://github.com/TeamFightingICE/FightingICE/blob/master/python/Feature%20Extractor%20in%20Python/action.py class Actions: def __init__(self): # map digits to actions self.actions = [ "NEUTRAL", "STAND", "FORWA...
28.5
122
0.404971
400
4,104
3.72
0.2075
0.11828
0.079973
0.040323
0.549059
0.488575
0.442876
0.428763
0.267473
0.267473
0
0.003839
0.492203
4,104
144
123
28.5
0.710173
0.060429
0
0.751825
0
0
0.257662
0
0
0
0
0
0.007299
1
0.007299
false
0
0
0
0.014599
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c7ba73580f606ae6dcc6197efc46699a5c513ea
239
py
Python
utils/dbf_convert.py
LinkedPasts/LaNC-workshop
a855da569470e94d9c5bd508b51ddb4c704a93e7
[ "MIT" ]
13
2020-12-03T10:25:48.000Z
2021-03-16T08:41:47.000Z
utils/dbf_convert.py
LinkedPasts/LaNC-workshop
a855da569470e94d9c5bd508b51ddb4c704a93e7
[ "MIT" ]
null
null
null
utils/dbf_convert.py
LinkedPasts/LaNC-workshop
a855da569470e94d9c5bd508b51ddb4c704a93e7
[ "MIT" ]
2
2020-12-07T16:32:33.000Z
2021-12-18T07:29:01.000Z
from simpledbf import Dbf5 import os files = os.listdir('../dbfs') for f in files: if f[-3:].lower() == 'dbf': dbf = Dbf5('../dbfs/' + f) print(f.replace('.dbf', '.csv')) dbf.to_csv(f.replace('.dbf', '.csv'))
21.727273
45
0.527197
35
239
3.571429
0.542857
0.128
0.176
0.224
0
0
0
0
0
0
0
0.016393
0.23431
239
10
46
23.9
0.666667
0
0
0
0
0
0.142259
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
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
92ca77dad99c343375b8e41198c6191b0d7badf0
4,839
py
Python
tests/quaternions_test.py
sonstarr/astralib
af99e5437add14d2e5a8528cf001c3f12a39690b
[ "MIT" ]
null
null
null
tests/quaternions_test.py
sonstarr/astralib
af99e5437add14d2e5a8528cf001c3f12a39690b
[ "MIT" ]
null
null
null
tests/quaternions_test.py
sonstarr/astralib
af99e5437add14d2e5a8528cf001c3f12a39690b
[ "MIT" ]
null
null
null
import sys, os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import numpy as np from math_helpers import matrices as mat from math_helpers import quaternions as quat def test_quat_add_scalar(): """tests qxscalar, qadd """ assert quat.qxscalar(scalar=1, quat=[1, 0, 0, ...
32.26
82
0.61149
753
4,839
3.823373
0.264276
0.047239
0.094477
0.005557
0.192081
0.160472
0.095172
0.074331
0.05488
0.028482
0
0.228363
0.233519
4,839
149
83
32.47651
0.547857
0.148378
0
0.105263
0
0
0.001229
0
0
0
0
0
0.2
1
0.073684
false
0
0.042105
0
0.115789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92d0f40a3a60a62ebc22bb91e3c55801a1c1ed9d
3,250
py
Python
keras_code/DataGenerator.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
5
2021-08-12T20:46:46.000Z
2021-12-29T03:08:15.000Z
keras_code/DataGenerator.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
null
null
null
keras_code/DataGenerator.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
1
2021-10-05T16:01:57.000Z
2021-10-05T16:01:57.000Z
import numpy as np import keras from keras.utils.io_utils import HDF5Matrix class DataGenerator(keras.utils.Sequence): 'Generates data for Keras.' def __init__( self, indexes, batch_size, data_path, num_tx_beams, num_blocks_per_frame, num_samples_per_b...
32.5
92
0.604
448
3,250
4.073661
0.254464
0.042192
0.076712
0.069041
0.216986
0.152329
0.13863
0.123288
0.123288
0.080548
0
0.008407
0.304615
3,250
99
93
32.828283
0.799115
0.122769
0
0
1
0
0.062394
0
0
0
0
0
0
1
0.084507
false
0
0.042254
0.014085
0.197183
0.014085
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
92d5d0ade0372c645fafb9371002863a90c9d17a
3,229
py
Python
src/main/python/pybuilder/_vendor/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
Mattlk13/pybuilder
9e40eb2749f03dc354fe139ccc262a025662da5f
[ "Apache-2.0" ]
1,419
2015-01-02T20:51:04.000Z
2022-03-23T21:26:00.000Z
src/main/python/pybuilder/_vendor/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
Mattlk13/pybuilder
9e40eb2749f03dc354fe139ccc262a025662da5f
[ "Apache-2.0" ]
670
2015-01-01T10:26:03.000Z
2022-02-23T16:33:13.000Z
src/main/python/pybuilder/_vendor/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
paolodedios/pybuilder
12ea2f54e04f97daada375dc3309a3f525f1b5e1
[ "Apache-2.0" ]
270
2015-01-02T05:01:53.000Z
2022-01-20T10:22:59.000Z
from __future__ import absolute_import, unicode_literals import abc from textwrap import dedent from ......six import add_metaclass from ....describe import Python3Supports from ..ref import PathRefToDest from ...store import is_store_python from .....util.path import Path from .common import CPython, CPythonPosix,...
35.097826
117
0.65686
389
3,229
5.269923
0.344473
0.054634
0.017561
0.01561
0
0
0
0
0
0
0
0.01567
0.248994
3,229
91
118
35.483516
0.829691
0.073088
0
0.190476
0
0
0.015219
0
0
0
0
0
0
1
0.15873
false
0
0.142857
0.047619
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
92d5e53d0a82cfa52935e31bbd21f4b0293a5394
1,968
py
Python
unifac/mixture.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2016-01-04T02:33:13.000Z
2021-07-18T08:32:51.000Z
unifac/mixture.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
1
2020-07-27T17:56:23.000Z
2020-08-10T06:30:06.000Z
unifac/mixture.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2015-01-02T19:18:16.000Z
2021-04-16T08:12:14.000Z
''' Created on 16-10-2012 @author: Jacek Przemieniecki ''' class Mixture(object): def _calc_groups(self): self._groups = {} groups = self._groups tot_grps = 0 for mol in self.moles: m_groups = self.moles[mol].get_groups() for m_grp in m_groups:...
28.521739
91
0.565041
228
1,968
4.614035
0.263158
0.059886
0.031369
0.065589
0.224335
0.192015
0.192015
0.138783
0.138783
0.096958
0
0.007716
0.341463
1,968
69
92
28.521739
0.804012
0.079268
0
0.166667
0
0
0
0
0
0
0
0.014493
0
1
0.166667
false
0
0
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
1
0
0
0
0
0
0
0
0
0
0
1
92d5fb28d02f4bc3e700229451d0d591735936b1
2,490
py
Python
email_verif/providers/base.py
scls19fr/email_verif
3f9815a278d13260b87e6c2877c5890b6c87deed
[ "BSD-3-Clause" ]
1
2017-05-18T10:32:16.000Z
2017-05-18T10:32:16.000Z
email_verif/providers/base.py
scls19fr/email_verif
3f9815a278d13260b87e6c2877c5890b6c87deed
[ "BSD-3-Clause" ]
5
2015-12-11T09:56:43.000Z
2015-12-21T13:11:09.000Z
email_verif/providers/base.py
scls19fr/email-verif
3f9815a278d13260b87e6c2877c5890b6c87deed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging logger = logging.getLogger(__name__) import six import requests from abc import ABCMeta, abstractmethod from collections import OrderedDict class EmailVerif(object): __metaclass__ = ABC...
29.642857
93
0.625301
282
2,490
5.234043
0.329787
0.059621
0.050813
0.044715
0.203252
0.073171
0
0
0
0
0
0.000567
0.291165
2,490
83
94
30
0.835694
0.043775
0
0.2
0
0
0.031719
0
0
0
0
0
0
1
0.133333
false
0.1
0.1
0.016667
0.4
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
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
92dcffc81c3602a60f770fa4243b407bb06e4655
2,836
py
Python
wald_train.py
matthewfeickert/learning_best_average_power
ca122726cc06dd42098eea15436cb600d253c01c
[ "MIT" ]
2
2022-03-25T12:26:20.000Z
2022-03-25T15:45:57.000Z
wald_train.py
matthewfeickert/learning_best_average_power
ca122726cc06dd42098eea15436cb600d253c01c
[ "MIT" ]
1
2022-03-26T02:29:31.000Z
2022-03-26T12:14:29.000Z
wald_train.py
matthewfeickert/learning_best_average_power
ca122726cc06dd42098eea15436cb600d253c01c
[ "MIT" ]
1
2022-03-25T15:46:47.000Z
2022-03-25T15:46:47.000Z
import numpy as np import torch def generate_fixed_ref(xmpl, N, null, alt): alts = [alt] null = np.array([null]) theories = np.concatenate([null,alts]) Xnull = xmpl.sample_prob_model(null[0],N) Xalt0 = xmpl.sample_prob_model(alts[0],N) ynull = np.zeros(N) yalt0 = np.ones(N) ...
29.541667
95
0.603667
423
2,836
3.938534
0.224586
0.05042
0.042017
0.057023
0.582233
0.459184
0.415966
0.382353
0.307323
0.258103
0
0.04182
0.232722
2,836
96
96
29.541667
0.723805
0
0
0.22973
1
0
0.008107
0
0
0
0
0
0
1
0.081081
false
0
0.027027
0.013514
0.189189
0.013514
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
92dd0f9a0eeabdb0d843f5b5e85eed85fa77a0ca
606
py
Python
python/legacy/race.py
daite/funfun
4fc04431852b10a5abd6f411c5f627b468e70833
[ "MIT" ]
null
null
null
python/legacy/race.py
daite/funfun
4fc04431852b10a5abd6f411c5f627b468e70833
[ "MIT" ]
null
null
null
python/legacy/race.py
daite/funfun
4fc04431852b10a5abd6f411c5f627b468e70833
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ('total_sum:', 1999000) # ('total_sum:', 1999000) # ('total_sum:', 1999000) #------------------------------- import threading total_sum = 0 lock = threading.Lock() def test(x, y): global total_sum with lock: for i in range(x,y): total_sum += i def test2(x, y): global total_sum for i i...
23.307692
55
0.617162
95
606
3.736842
0.378947
0.247887
0.126761
0.092958
0.504225
0.250704
0.123944
0.123944
0.123944
0
0
0.090551
0.161716
606
25
56
24.24
0.608268
0.20462
0
0.421053
0
0
0.037736
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.157895
0.052632
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
92e3db035c71e5a4a30be2a5a25f40e5f932252a
1,357
py
Python
util/signer/pmjp.py
wowotech/chrome-ec
1b53782145964ec226afbf910e23b1e68c0ac8dd
[ "BSD-3-Clause" ]
1
2018-04-23T05:55:32.000Z
2018-04-23T05:55:32.000Z
util/signer/pmjp.py
wowotech/chrome-ec
1b53782145964ec226afbf910e23b1e68c0ac8dd
[ "BSD-3-Clause" ]
null
null
null
util/signer/pmjp.py
wowotech/chrome-ec
1b53782145964ec226afbf910e23b1e68c0ac8dd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Poor man's JSON parser. This module reads the input JSON file, retrieves from it some name/value pairs and generates a .h file to al...
25.12963
78
0.690494
224
1,357
4.053571
0.464286
0.052863
0.039648
0.044053
0.251101
0.251101
0.251101
0.251101
0.251101
0.251101
0
0.00641
0.195284
1,357
53
79
25.603774
0.825092
0.146647
0
0
0
0
0.333333
0
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
92e463b5f0c52039ee4d32bbe26b89b1730be28a
3,641
py
Python
learn/main/views.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
null
null
null
learn/main/views.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
8
2019-08-06T02:03:39.000Z
2021-06-10T18:07:47.000Z
learn/main/views.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from .models import Tutorial, Category, Series from django.http import HttpResponse from django.contrib import messages from .forms import NewUserForm from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.forms import AuthenticationForm from djan...
40.910112
126
0.630321
403
3,641
5.531017
0.228288
0.028264
0.051144
0.069987
0.382234
0.371018
0.270525
0.160162
0.116196
0.116196
0
0
0.270255
3,641
88
127
41.375
0.838916
0
0
0.346667
0
0
0.116726
0.007141
0
0
0
0
0
1
0.066667
false
0.053333
0.106667
0.013333
0.293333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
92e83b446251849c104836b83c7c35be99af9fef
3,978
py
Python
experiments/unfolding_baseline_syst.py
ml-lab/quantum_unfolding
d25f9e97a3725230e2a7259cd03e6ae66fcfbb25
[ "MIT" ]
8
2019-03-13T11:48:16.000Z
2021-08-09T15:29:02.000Z
experiments/unfolding_baseline_syst.py
ml-lab/quantum_unfolding
d25f9e97a3725230e2a7259cd03e6ae66fcfbb25
[ "MIT" ]
1
2019-08-25T13:06:26.000Z
2019-08-26T13:49:02.000Z
experiments/unfolding_baseline_syst.py
rdisipio/quantum_unfolding
d25f9e97a3725230e2a7259cd03e6ae66fcfbb25
[ "MIT" ]
8
2019-04-24T03:44:49.000Z
2021-11-07T04:53:06.000Z
#!/usr/bin/env python import os import sys import argparse from ROOT import * import numpy as np import scipy.stats from quantum_unfolding import R0 as R np.set_printoptions(precision=2, linewidth=200, suppress=True) ########################### def array_to_th1(a, hname="h", htitle=";X;Entries"): n_bins = a....
24.8625
77
0.659377
694
3,978
3.574928
0.236311
0.047158
0.020153
0.011286
0.163241
0.112052
0.112052
0.088674
0.057235
0.057235
0
0.023297
0.147562
3,978
159
78
25.018868
0.708346
0.073906
0
0.070796
0
0
0.162752
0
0
0
0
0
0
0
null
null
0
0.061947
null
null
0.292035
0
0
0
null
0
0
0
0
0
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
92ea9ce5eb26b79c354313ba269bff5f30569daa
2,287
py
Python
backend/app/app/api/api_v1/endpoints/login.py
H-HChen/vue-element-admin-fastapi
1445b814a8bb7e3d3060181a394b67372bad2892
[ "MIT" ]
null
null
null
backend/app/app/api/api_v1/endpoints/login.py
H-HChen/vue-element-admin-fastapi
1445b814a8bb7e3d3060181a394b67372bad2892
[ "MIT" ]
null
null
null
backend/app/app/api/api_v1/endpoints/login.py
H-HChen/vue-element-admin-fastapi
1445b814a8bb7e3d3060181a394b67372bad2892
[ "MIT" ]
1
2021-03-18T09:35:38.000Z
2021-03-18T09:35:38.000Z
from datetime import timedelta from typing import Any from fastapi import APIRouter, Depends, HTTPException, status from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from app import crud, models, schemas from app.core import security from app.core.config import settings router...
39.431034
101
0.709663
265
2,287
5.924528
0.30566
0.119108
0.04586
0.016561
0.588535
0.549045
0.448408
0.448408
0.448408
0.448408
0
0.010724
0.184521
2,287
57
102
40.122807
0.831099
0.077831
0
0.434783
0
0
0.108509
0
0
0
0
0
0
1
0.065217
false
0.152174
0.173913
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
1
0
0
0
0
0
1
92f22c0c61f48e4d855d8a61a1ed8e8e81ba8006
2,634
py
Python
src/spaceone/cost_analysis/manager/exchange_rate_manager.py
spaceone-dev/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
2
2021-11-05T06:54:37.000Z
2021-12-22T05:31:23.000Z
src/spaceone/cost_analysis/manager/exchange_rate_manager.py
whdalsrnt/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
9
2022-02-10T00:58:28.000Z
2022-03-23T11:12:47.000Z
src/spaceone/cost_analysis/manager/exchange_rate_manager.py
spaceone-dev/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
null
null
null
import logging from spaceone.core import config from spaceone.core.manager import BaseManager from spaceone.cost_analysis.model.exchange_rate_model import ExchangeRate _LOGGER = logging.getLogger(__name__) class ExchangeRateManager(BaseManager): def __init__(self, *args, **kwargs): super().__init__(*ar...
37.628571
94
0.681853
313
2,634
5.332268
0.220447
0.230078
0.125824
0.062912
0.240264
0.122229
0.057519
0.057519
0
0
0
0
0.230068
2,634
69
95
38.173913
0.822978
0
0
0.04
0
0
0.084282
0.053151
0
0
0
0
0
1
0.2
false
0
0.08
0.06
0.42
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92f2d58c3f11a622a808d6638d6ea10d77564e6e
12,110
py
Python
docker-images/taigav2/taiga-back/taiga/routers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/routers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/routers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
41.903114
112
0.790999
1,414
12,110
6.705799
0.176803
0.067391
0.110736
0.02953
0.321135
0.192259
0.078464
0.035857
0
0
0
0.003145
0.107184
12,110
288
113
42.048611
0.873844
0.105863
0
0
0
0
0.204969
0.086957
0
0
0
0
0
1
0
false
0
0.410405
0
0.410405
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
92f6217c86486740b773ca84b518980b3b2e9641
3,374
py
Python
DecryptLogin/platforms/zt12306.py
PhDLuffy/DecryptLogin
91036412c9412c8556192fe3714c4b3e24b96d2e
[ "MIT" ]
8
2020-04-24T06:57:59.000Z
2021-10-02T03:18:49.000Z
DecryptLogin/platforms/zt12306.py
PhDLuffy/DecryptLogin
91036412c9412c8556192fe3714c4b3e24b96d2e
[ "MIT" ]
null
null
null
DecryptLogin/platforms/zt12306.py
PhDLuffy/DecryptLogin
91036412c9412c8556192fe3714c4b3e24b96d2e
[ "MIT" ]
1
2021-04-12T10:48:31.000Z
2021-04-12T10:48:31.000Z
''' Function: 12306模拟登录 --PC端: https://www.12306.cn/index/ --移动端暂不支持 Author: Charles 微信公众号: Charles的皮卡丘 GitHub: https://github.com/CharlesPikachu 更新日期: 2020-02-29 ''' import os import time import requests from ..utils.misc import * ''' Function: 12306模拟登录 Detail: -login: Input: --username: 用户名 --pa...
28.837607
158
0.666271
444
3,374
4.945946
0.445946
0.030055
0.015027
0.028689
0.137067
0.102459
0.063752
0.063752
0
0
0
0.057884
0.165382
3,374
117
159
28.837607
0.721946
0.073503
0
0.133333
0
0.04
0.302636
0
0
0
0
0
0
1
0.08
false
0.093333
0.053333
0
0.2
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
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
92f6d3d54f5e6d916b6dfc15d6ece9c733d0b13d
629
py
Python
game/core/player.py
jdvalenzuelah/Crazy-Eights
e53fe4c80922e597a71d5eac568dabfbf89002a8
[ "MIT" ]
null
null
null
game/core/player.py
jdvalenzuelah/Crazy-Eights
e53fe4c80922e597a71d5eac568dabfbf89002a8
[ "MIT" ]
1
2020-08-10T16:33:12.000Z
2020-08-10T16:34:28.000Z
game/core/player.py
jdvalenzuelah/Crazy-Eights
e53fe4c80922e597a71d5eac568dabfbf89002a8
[ "MIT" ]
null
null
null
from card_deck.deck import Deck from dataclasses import dataclass from typing import List @dataclass class Player: name: str turn_id: int player_deck: Deck = Deck() def serialize(self): return f'{self.name},{self.turn_id},{self.player_deck.serialize()}' @classmethod def parse(self...
23.296296
75
0.585056
83
629
4.373494
0.409639
0.088154
0.066116
0
0
0
0
0
0
0
0
0.011136
0.286169
629
26
76
24.192308
0.797327
0
0
0
0
0
0.09539
0.09062
0
0
0
0
0
1
0.1
false
0
0.15
0.05
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
92fba51f36f7c01d14320c9b458e4b8c98bd6ad2
1,460
py
Python
src/pyproject_indirect_import_detector/util.py
kenoss/pyproject-indirect-import-detector
89d9f01effe31efd31af88f36f79d08276c267ad
[ "MIT" ]
1
2021-10-13T01:55:19.000Z
2021-10-13T01:55:19.000Z
src/pyproject_indirect_import_detector/util.py
kenoss/pyproject-indirect-import-detector
89d9f01effe31efd31af88f36f79d08276c267ad
[ "MIT" ]
5
2021-05-02T14:16:59.000Z
2021-08-20T02:42:21.000Z
src/pyproject_indirect_import_detector/util.py
kenoss/pyproject-indirect-import-detector
89d9f01effe31efd31af88f36f79d08276c267ad
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Any, List, TypeVar T = TypeVar("T") def _flatten(xss: List[List[T]]) -> List[T]: # fmt: off return [x for xs in xss for x in xs] def _walk(path: Path) -> List[Path]: # fmt: off return [Path(d) / f for (d, _, f...
20.857143
107
0.50411
217
1,460
3.24424
0.308756
0.079545
0.113636
0.125
0.204545
0.153409
0.090909
0.090909
0
0
0
0.00502
0.317808
1,460
69
108
21.15942
0.701807
0.378082
0
0
0
0
0.004908
0
0
0
0
0
0.038462
1
0.153846
false
0
0.115385
0.115385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
13012338c7647bb6ca2748d87f44ea80ba43db2e
8,382
py
Python
DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
### AUTO-GENERATED CMSRUN CONFIGURATION FOR ECAL DQM ### import FWCore.ParameterSet.Config as cms process = cms.Process("process") ### Load cfis ### process.load("DQM.Integration.config.inputsource_cfi") process.load("DQM.Integration.config.environment_cfi") process.load("DQM.Integration.config.FrontierCondition_GT_...
52.3875
251
0.800286
724
8,382
9.197514
0.316298
0.046253
0.037844
0.016519
0.307404
0.220904
0.210692
0.186064
0.159333
0.103619
0
0.006892
0.082558
8,382
159
252
52.716981
0.859038
0.172513
0
0.145631
1
0
0.228642
0.111338
0
0
0
0
0
1
0
false
0
0.019417
0
0.019417
0
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
1303943801e424a0c82045831961f84593400b88
8,292
py
Python
old/SimpleElectroSim/python/electro_sim.py
0xDBFB7/Nyion
9bd1c3a8a70e9d1c75e04ab63325a42cc983dedb
[ "MIT" ]
null
null
null
old/SimpleElectroSim/python/electro_sim.py
0xDBFB7/Nyion
9bd1c3a8a70e9d1c75e04ab63325a42cc983dedb
[ "MIT" ]
null
null
null
old/SimpleElectroSim/python/electro_sim.py
0xDBFB7/Nyion
9bd1c3a8a70e9d1c75e04ab63325a42cc983dedb
[ "MIT" ]
null
null
null
#imports from shapely.geometry import Point import numpy as np import random import math from decimal import * from time import sleep import copy try: from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * except: print "OpenGL wrapper for python not found" from stl import mesh #The...
38.388889
215
0.636276
1,157
8,292
4.402766
0.170268
0.034354
0.059678
0.042403
0.473891
0.358461
0.33883
0.33883
0.309776
0.260699
0
0.077212
0.164375
8,292
215
216
38.567442
0.657959
0.181983
0
0.211268
0
0
0.085207
0
0
0
0
0
0
0
null
null
0
0.077465
null
null
0.084507
0
0
0
null
0
0
0
0
0
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
130afb83229f79f5f3881f89b98af8795b0bd7e8
1,323
py
Python
scripts/count_toggles.py
mit-ll/ttb
2960948bd651ae9f9c4c02a6aad7a4199e53fdb7
[ "BSD-2-Clause" ]
null
null
null
scripts/count_toggles.py
mit-ll/ttb
2960948bd651ae9f9c4c02a6aad7a4199e53fdb7
[ "BSD-2-Clause" ]
null
null
null
scripts/count_toggles.py
mit-ll/ttb
2960948bd651ae9f9c4c02a6aad7a4199e53fdb7
[ "BSD-2-Clause" ]
2
2019-12-12T19:38:50.000Z
2020-04-09T21:31:14.000Z
#!/usr/bin/env python import sys from Verilog_VCD import parse_vcd def extend_values(vcd): for symbol, signal in vcd.iteritems(): for net in signal["nets"]: # If larger than one bit, zero extend or x extend if len(net["name"].split("[")) != 1: # Zero Extend any shortened strings for i, _ in enumerate...
28.148936
101
0.58579
206
1,323
3.68932
0.31068
0.055263
0.047368
0.047368
0.255263
0.207895
0.115789
0.115789
0.115789
0
0
0.0185
0.223734
1,323
46
102
28.76087
0.721519
0.124717
0
0.235294
0
0
0.072237
0
0
0
0
0
0.029412
0
null
null
0
0.058824
null
null
0.088235
0
0
0
null
0
0
0
0
0
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
1310fea1b0b565d73baf4727d6e171380419c92b
336
py
Python
sentiment analysis/scraping.py
akshaynagpal/data_mining_tourism
2ad2f04e7a0247e1ff88919c6685dfb1b089599d
[ "MIT" ]
null
null
null
sentiment analysis/scraping.py
akshaynagpal/data_mining_tourism
2ad2f04e7a0247e1ff88919c6685dfb1b089599d
[ "MIT" ]
null
null
null
sentiment analysis/scraping.py
akshaynagpal/data_mining_tourism
2ad2f04e7a0247e1ff88919c6685dfb1b089599d
[ "MIT" ]
null
null
null
import urllib2 from bs4 import BeautifulSoup def get_page(page): response = urllib2.urlopen(page) html = response.read() return html markup = get_page("http://topsy.com/s?q=weather%2C%20delhi&type=tweet&language=en&mintime=1230773459&maxtime=1262223025&offset=0") soup = BeautifulSoup(markup) for x in so...
22.4
130
0.741071
49
336
5.040816
0.755102
0.05668
0
0
0
0
0
0
0
0
0
0.09375
0.142857
336
14
131
24
0.763889
0
0
0
0
0.1
0.324405
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1316d51ac1e81963123ded1d18e903b3d2aefb26
3,205
py
Python
qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py
rao107/qiskit-terra
c4254eff355a6b7f6035253ceb0b847ca8da95a2
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py
rao107/qiskit-terra
c4254eff355a6b7f6035253ceb0b847ca8da95a2
[ "Apache-2.0" ]
12
2018-09-21T12:02:18.000Z
2018-09-25T09:14:59.000Z
qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py
delapuente/qiskit-terra
c3b2d7acb80fa89043e6f38efb501275ec296616
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
37.267442
94
0.605928
404
3,205
4.668317
0.398515
0.028632
0.027041
0.02333
0.033934
0.033934
0
0
0
0
0
0.013218
0.315445
3,205
85
95
37.705882
0.846399
0.34415
0
0.045455
0
0
0.01863
0
0
0
0
0
0
1
0.045455
false
0.068182
0.136364
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
131aa151b36098f526a2444dcee46caa88b26088
2,506
py
Python
dvbobjects/PSI/ATSC_EIT.py
GERD0GDU/hbbtv-dvbstream
beacaa74477a7e52a221831478a51d343a684dc4
[ "BSD-3-Clause" ]
3
2017-12-14T22:30:00.000Z
2021-06-25T10:10:08.000Z
dvbobjects/PSI/ATSC_EIT.py
GERD0GDU/hbbtv-dvbstream
beacaa74477a7e52a221831478a51d343a684dc4
[ "BSD-3-Clause" ]
1
2017-12-14T23:03:55.000Z
2017-12-14T23:03:55.000Z
dvbobjects/PSI/ATSC_EIT.py
GERD0GDU/hbbtv-dvbstream
beacaa74477a7e52a221831478a51d343a684dc4
[ "BSD-3-Clause" ]
2
2017-12-14T22:24:31.000Z
2021-02-26T14:54:59.000Z
#! /usr/bin/env python # This file is part of the dvbobjects library. # # Copyright (c) 2005-2013 Lorenzo Pallara l.pallara@avalpa.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ...
31.721519
93
0.625299
322
2,506
4.701863
0.481366
0.029723
0.055482
0.037649
0.128137
0.081902
0.044914
0.044914
0.044914
0
0
0.024517
0.235036
2,506
78
94
32.128205
0.765258
0.338388
0
0.15
0
0
0.012684
0
0
0
0.0247
0
0
0
null
null
0
0.125
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
131dda48227d2b6d14c608d767309a758c360807
668
py
Python
isic/ingest/migrations/0016_accession_reject_reason.py
ImageMarkup/isic
607b2b103d0d2a67adb61f8ea88f1461c85ec8f3
[ "Apache-2.0" ]
null
null
null
isic/ingest/migrations/0016_accession_reject_reason.py
ImageMarkup/isic
607b2b103d0d2a67adb61f8ea88f1461c85ec8f3
[ "Apache-2.0" ]
18
2021-06-10T05:14:34.000Z
2022-03-22T02:15:59.000Z
isic/ingest/migrations/0016_accession_reject_reason.py
ImageMarkup/isic
607b2b103d0d2a67adb61f8ea88f1461c85ec8f3
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2021-02-03 16:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ingest', '0015_auto_20210203_0657'), ] operations = [ migrations.AddField( model_name='accession', name='reject_reas...
23.857143
51
0.47006
58
668
5.275862
0.793103
0.065359
0
0
0
0
0
0
0
0
0
0.084399
0.414671
668
27
52
24.740741
0.69821
0.067365
0
0.095238
1
0
0.169082
0.037037
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13286495384d907e146446c1558a33783e8e595b
9,919
py
Python
DocProfiler/docprofiler.py
Aayushpatel007/DocProfiler
06fcf3dac7ef7c6505be8930285f109c7ab3c08a
[ "MIT" ]
1
2020-08-12T17:23:21.000Z
2020-08-12T17:23:21.000Z
DocProfiler/docprofiler.py
Aayushpatel007/DocProfiler
06fcf3dac7ef7c6505be8930285f109c7ab3c08a
[ "MIT" ]
null
null
null
DocProfiler/docprofiler.py
Aayushpatel007/DocProfiler
06fcf3dac7ef7c6505be8930285f109c7ab3c08a
[ "MIT" ]
null
null
null
import asyncio from timeit import default_timer import requests from aiohttp import ClientSession json_data = {} total_asynchronous_time = 0.0 total_synchronous_time = [0] time_by_sifrank = [0] time_by_flairner = [0] time_by_tagme = [0] time_by_textrank = [0] current_document = "" def demo_async(urls): ...
83.352941
5,354
0.705414
1,469
9,919
4.669163
0.353302
0.027992
0.009622
0.013121
0.077271
0.058901
0.058901
0.058901
0.058901
0.058901
0
0.015601
0.224519
9,919
119
5,355
83.352941
0.876105
0.592096
0
0
0
0
0.077392
0.024106
0
0
0
0
0
1
0.020619
false
0
0.051546
0
0.092784
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1