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
33b01a69c3d39b5be3da9f2f5ee4d52ee1634c3e
941
py
Python
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
1
2019-10-13T05:52:48.000Z
2019-10-13T05:52:48.000Z
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
129
2016-06-21T21:19:30.000Z
2018-04-10T21:13:22.000Z
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
2
2016-08-28T22:45:02.000Z
2016-10-03T11:28:17.000Z
import bpy def derive_image_path(): filename = bpy.path.basename(bpy.context.blend_data.filepath) filename = "//output/" + filename.replace(".blend", ".png") return filename if __name__ == "__main__": bpy.context.scene.render.engine = "CYCLES" bpy.context.scene.render.resolution_x = 1920 bpy....
32.448276
70
0.701382
122
941
5.213115
0.42623
0.15566
0.141509
0.198113
0.375786
0.116352
0.116352
0
0
0
0
0.017972
0.172157
941
28
71
33.607143
0.79846
0.072264
0
0
0
0
0.069124
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
33b1f67518e86f1ae4b5aae061f51022e1f46341
230
py
Python
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
#app名称标记,不能设置为中文 APP_NAME="baiduphone" #业务逻辑日志记录,True:开启,False:关闭 LOGIC_DEBUG=True #业务逻辑日志输出的文件,空字符串表示输出到控制台,不记录到日志文件中 LOGIC_DEBUG_FILE="" #短信通道的用户名和密码 SMS_URL='http://xxx.xxx.xxx:xxx/xxxx' SMS_USERNAME='test' SMS_PASSWD='test'
17.692308
37
0.8
34
230
5.205882
0.735294
0.101695
0.101695
0
0
0
0
0
0
0
0
0
0.052174
230
13
38
17.692308
0.811927
0.369565
0
0
0
0
0.316901
0
0
0
0
0
0
1
0
false
0.166667
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
33b21765db87e055663ba068290a988c042d3e61
1,992
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation, obj[3]: Distance # {"feature": "Education", "instances": 85, "metric_value": 0.9975, "depth": 1} if obj[1]<=2: # {"feature": "Distance", "instances": 70, "metric_value": 0.9787, "depth": 2} if obj[3]<=2: # {"feature": "Coupon", "ins...
32.655738
95
0.568273
287
1,992
3.902439
0.146341
0.147321
0.117857
0.15
0.550893
0.439286
0.360714
0.232143
0.232143
0.18125
0
0.08679
0.213353
1,992
60
96
33.2
0.627952
0.49498
0
0.541667
0
0
0.111782
0
0
0
0
0
0
1
0.020833
false
0
0
0
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33b5df3a56f3c389456f72077ac2ebc5b90ce742
5,657
py
Python
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.617801
245
0.638501
622
5,657
5.620579
0.20418
0.044622
0.193078
0.088673
0.502574
0.336098
0.228833
0.187643
0.156751
0.156751
0
0.004469
0.287962
5,657
190
246
29.773684
0.863456
0.517942
0
0.080645
0
0
0.089914
0.012369
0
0
0
0
0
1
0.225806
false
0
0.032258
0.032258
0.419355
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
1
0
0
0
0
0
0
0
2
33b7faddaf9bc0cb8e5a9b63ad2f398485bee83a
2,959
py
Python
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
2
2020-02-12T14:17:57.000Z
2020-04-29T13:35:03.000Z
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
null
null
null
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
null
null
null
import topologies as top import rules as rules import starting_patterns as sp from Game import Game import os import time import numpy as np def run_game(topology, rule, starting_pattern, start_pos, iterations): starting_pattern_instance = starting_pattern(topology.n_rows, topology.n_cols, start_pos) game = G...
34.406977
135
0.711727
456
2,959
4.394737
0.278509
0.027944
0.02994
0.016467
0.323353
0.27994
0.192615
0.165669
0.165669
0.165669
0
0.05569
0.162555
2,959
85
136
34.811765
0.753027
0.385941
0
0.136364
0
0
0.017827
0
0
0
0
0
0
1
0.136364
false
0
0.227273
0.045455
0.431818
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33ba3cc755c2a9206c00fdc1be1e77ea3da0a51b
548
py
Python
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
def data_type(data): """Returns a specific result based on the data type of the argument supplied """ if type(data) == str: return len(data) elif data == None: return 'no value' elif data == True or data == False: return data elif type(data) == int: if data < 100: return 'less th...
20.296296
44
0.578467
79
548
3.987342
0.468354
0.101587
0.07619
0
0
0
0
0
0
0
0
0.050532
0.313869
548
26
45
21.076923
0.787234
0.135037
0
0.1
0
0
0.099352
0
0
0
0
0
0
1
0.05
false
0
0
0
0.45
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33bb3dba6ba5b625fe5cf4f70e25aeae3cafe24f
95
py
Python
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
import emoji print(emoji.emojize(' Ola mundo :sunglasses:', use_aliases=True))
7.307692
65
0.642105
11
95
5.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.242105
95
12
66
7.916667
0.833333
0
0
0
0
0
0.261364
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
1
0
1
0
0
1
0
4
33be3d84bce31cd3e91a5c47d1f4596a4006fe31
3,850
py
Python
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # for linux. exestiert -> program can be executed by terminal without "Python 3" in command # does not exist for windows ''' Main.py for Error TicketTool_v001 this tool aims to help Quality tester to create tickets and show some simple diagramm with often to use data th...
41.397849
118
0.581039
453
3,850
4.863135
0.401766
0.03813
0.010894
0.019065
0.113482
0.05084
0.05084
0
0
0
0
0.016345
0.205455
3,850
92
119
41.847826
0.703825
0.234286
0
0
0
0
0.099833
0.010025
0
0
0
0
0
1
0.083333
false
0
0.125
0
0.229167
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33c0385b782f367408a11e61a102f7ba38bcbea5
1,688
py
Python
tests/test_serialization.py
dwhall/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
21
2018-10-21T15:54:45.000Z
2022-03-29T19:27:44.000Z
tests/test_serialization.py
Datacraft-GaaS/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
9
2019-06-22T04:51:10.000Z
2020-12-21T17:14:48.000Z
tests/test_serialization.py
Datacraft-GaaS/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
8
2019-06-21T16:13:32.000Z
2022-03-29T19:34:27.000Z
#!/usr/bin/env python3 """This unit test proves that event values are immutable. An event with a global-scope array is declared. A simple state machine event handler modifies the value of the event it is given. The state machine is called with the global-scope array and the framework is stopped. The test passess if the...
23.444444
57
0.647512
228
1,688
4.710526
0.421053
0.046555
0.044693
0.061453
0.072626
0.072626
0.072626
0.072626
0
0
0
0.004732
0.248815
1,688
71
58
23.774648
0.842271
0.244076
0
0.125
0
0
0.018942
0
0
0
0
0
0.025
1
0.15
false
0
0.075
0.025
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33c1e4374c9158716c8a41a27ad3efbd56ce34b4
7,771
py
Python
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
3
2019-11-15T20:16:52.000Z
2020-05-04T08:14:48.000Z
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
null
null
null
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
1
2019-03-28T17:42:07.000Z
2019-03-28T17:42:07.000Z
import requests import json from jinja2 import Template import urllib.request import re class GrafanaHelper(object): def __init__(self, grafana_server_address, grafana_token): self.grafana_token = grafana_token self.grafana_server_address = grafana_server_address def get_dashboards(self, tag=...
36.829384
111
0.49659
773
7,771
4.862872
0.214748
0.032189
0.037244
0.038308
0.340782
0.308327
0.308327
0.263634
0.213887
0.195797
0
0.012167
0.376013
7,771
210
112
37.004762
0.763044
0.054948
0
0.369318
0
0.011364
0.122552
0.036013
0
0
0
0
0
1
0.0625
false
0
0.028409
0
0.170455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33c3f14699195277f17d952dc3dbda4f45cbdd35
504
py
Python
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-23 11:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0005_alter_customer_doc_num'), ] operations = [ migrations.AlterField( model_name='cust...
25.2
128
0.650794
60
504
5.35
0.7
0.074766
0.087227
0.137072
0
0
0
0
0
0
0
0.048969
0.230159
504
19
129
26.526316
0.778351
0.089286
0
0
1
0
0.137856
0.059081
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
33c45593e1c6d3a8ad98e019dc38be9163694fd5
1,392
py
Python
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 3 21:28:32 2016 @author: thasegawa """ import cv2 import numpy as np # ============================================================================ INPUT_WIDTH = 160 INPUT_HEIGHT = 120 OUTPUT_TILE_WIDTH = 10 OUTPUT_TILE_HEIGHT = 12 TILE_COUNT = OUTPUT_TILE_WIDTH * O...
30.933333
87
0.559626
173
1,392
4.236994
0.393064
0.109141
0.102319
0.043656
0.057299
0
0
0
0
0
0
0.052905
0.171695
1,392
45
88
30.933333
0.582827
0.237787
0
0
0
0
0.119048
0.064762
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33c55634f10c709ca36cc80a9cac7247cbd479f4
1,878
py
Python
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
63
2020-03-26T15:26:10.000Z
2020-10-22T06:26:38.000Z
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
82
2020-03-10T17:54:48.000Z
2020-10-23T02:11:06.000Z
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
15
2020-03-10T05:52:14.000Z
2020-10-09T09:09:52.000Z
import pandas as pd import numpy as np from snsynth.pytorch.nn import DPCTGAN, PATECTGAN from snsynth.preprocessors import DPSSTransformer eps = 3.0 batch_size = 20 size = 100 pd_data = pd.DataFrame(columns=["A"], data=np.array(np.arange(0.0, size)).T) np_data = np.array(np.arange(0.0, size)).astype(np.double) clas...
37.56
88
0.677316
237
1,878
5.219409
0.244726
0.065481
0.038804
0.058205
0.829426
0.800323
0.800323
0.800323
0.759903
0.759903
0
0.009015
0.232162
1,878
49
89
38.326531
0.848821
0
0
0.666667
0
0
0.112354
0
0
0
0
0
0.190476
1
0.095238
false
0
0.095238
0
0.309524
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
33c85aaad5eb9ce8484adaf9eee5b4b25b961376
3,337
py
Python
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
__author__ = 'olesya' import unittest from engine.api_request import ApiRequest from engine.sources_wrapper import SearchEventsUsingAPI from engine.eventbrite_api import EventbriteApi import json from google.appengine.ext import ndb from google.appengine.ext import testbed try: from google.appengine....
37.077778
91
0.664369
386
3,337
5.520725
0.248705
0.045988
0.085406
0.113562
0.5603
0.51572
0.461755
0.218677
0.218677
0.170812
0
0.014476
0.234043
3,337
90
92
37.077778
0.819249
0
0
0.30137
0
0
0.081256
0
0
0
0
0
0.219178
0
null
null
0.013699
0.123288
null
null
0.164384
0
0
0
null
0
0
0
0
0
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
33c896e298d79bbd19efa3f04edd11b852097f58
4,037
py
Python
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
# python import atexit import logging import subprocess import urllib3 from collections import namedtuple from datetime import datetime from multiprocessing.dummy import Pool as ThreadPool from typing import List, Dict, Callable, Optional, Any # libs import influxdb from cloudcix.conf import settings # Suppress Insec...
30.816794
119
0.680951
506
4,037
5.306324
0.341897
0.040223
0.057356
0.03352
0.052886
0.024581
0
0
0
0
0
0.002274
0.237553
4,037
130
120
31.053846
0.870045
0.328709
0
0.027397
0
0
0.0609
0.013576
0
0
0
0
0
1
0.109589
false
0
0.136986
0
0.315068
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33c9c2bedb422dc4b8e3a72166c46b5208e06970
3,223
py
Python
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from fedireads import models from fedireads import status as status_builder class Review(TestCase): ''' we have hecka ways to create statuses ''' def setUp(self): self.user = models.User.objects.create_user( 'mouse', 'mouse@mouse.mouse', 'mouseword') ...
39.304878
113
0.57493
340
3,223
5.376471
0.247059
0.139497
0.195295
0.072757
0.543764
0.483589
0.483589
0.46663
0.357768
0.332057
0
0.02698
0.287
3,223
81
114
39.790123
0.768494
0.01148
0
0.257143
0
0.014286
0.272813
0.020138
0
0
0
0
0.242857
1
0.057143
false
0
0.042857
0
0.114286
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
33cb1849ec5f3de5bd50256cf13966f6e710718b
1,273
py
Python
tests/unit/test_oauth_client_backend.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
tests/unit/test_oauth_client_backend.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
3
2022-03-02T18:08:13.000Z
2022-03-02T18:29:33.000Z
tests/unit/test_oauth_client_backend.py
przemekk1385/django_oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
from unittest.mock import Mock, PropertyMock import pytest from django.contrib.auth import get_user_model from django_oac.backends import OAuthClientBackend from django_oac.exceptions import NoUserError from ..common import USER_PAYLOAD UserModel = get_user_model() @pytest.mark.django_db def test_get_user_does_no...
25.46
60
0.785546
162
1,273
5.839506
0.296296
0.109937
0.046512
0.07611
0.42389
0.42389
0.224101
0.224101
0.156448
0.156448
0
0.002735
0.138256
1,273
49
61
25.979592
0.859617
0
0
0.290323
0
0
0.006284
0
0
0
0
0
0.129032
1
0.129032
false
0
0.193548
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33cb3e9ee0f3ad9bd01804758d64e223faf33a37
10,725
py
Python
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
2
2020-11-03T08:23:34.000Z
2020-11-03T09:05:10.000Z
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
null
null
null
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Dlg_lvbo.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Dlg_lvbo_class(object): def setupUi(self, Dialog): ...
49.652778
72
0.666014
1,254
10,725
5.532695
0.12201
0.13145
0.091957
0.036322
0.435716
0.33367
0.15898
0.103344
0.103344
0.103344
0
0.055654
0.210909
10,725
215
73
49.883721
0.76415
0.01697
0
0.134328
1
0
0.068889
0
0
0
0
0
0
1
0.00995
false
0
0.004975
0
0.019901
0
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
33cf3174ad53c2b52d8f80ce94cd572841a6a3d1
1,520
py
Python
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
from hfo import MOVE_TO, DRIBBLE_TO, KICK_TO from actions_levels import BaseActions class DiscreteActions: actions = ["MOVE_UP", "MOVE_DOWN", "MOVE_LEFT", "MOVE_RIGHT", "KICK_TO_GOAL", "DRIBBLE_UP", "DRIBBLE_DOWN", "DRIBBLE_LEFT", "DRIBBLE_RIGHT"] def get_num_actions(self):...
34.545455
78
0.571711
194
1,520
4.195876
0.247423
0.14742
0.088452
0.088452
0.2457
0.2457
0.2457
0.157248
0.157248
0.083538
0
0.012
0.342105
1,520
43
79
35.348837
0.802
0
0
0.142857
0
0
0.113158
0
0
0
0
0
0
1
0.114286
false
0
0.057143
0.057143
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33d00a7613ecc002e69a038b2036dfaa2537b297
2,946
py
Python
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
1
2021-11-06T22:08:13.000Z
2021-11-06T22:08:13.000Z
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
null
null
null
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import os import sys import asyncio import websockets import logging import sounddevice as sd import argparse import queue from vosk import Model, KaldiRecognizer def int_or_str(text): """Helper function for argument parsing.""" try: return int(text) except Valu...
32.733333
107
0.637135
341
2,946
5.384164
0.439883
0.029412
0.055556
0.022876
0
0
0
0
0
0
0
0.009914
0.246775
2,946
89
108
33.101124
0.817485
0.041073
0
0
0
0
0.112691
0
0
0
0
0
0
1
0.028986
false
0
0.144928
0
0.202899
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33d2208ec8fb2c7353028d27618bbea1b163e588
10,955
py
Python
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Efabless Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
29.448925
109
0.601917
1,317
10,955
4.854214
0.271071
0.014078
0.017832
0.013139
0.176443
0.114344
0.104489
0.072267
0.06163
0.06163
0
0.009271
0.261524
10,955
371
110
29.528302
0.780964
0.106162
0
0.245421
0
0.003663
0.209774
0.034877
0
0
0
0
0
1
0.029304
false
0.003663
0.047619
0.003663
0.10989
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33d2b934d1604144667cc9d5e178b0a84377ef88
201
py
Python
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
from abc import ABC # abstract base class from collections.abc import MutableSequence from number import Complex class Playlist(MutableSequence): pass filmes = Playlist() num = Complex(1, 2)
15.461538
43
0.761194
26
201
5.884615
0.615385
0.117647
0
0
0
0
0
0
0
0
0
0.012121
0.179104
201
12
44
16.75
0.915152
0.094527
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.142857
0.428571
0
0.571429
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
1
1
0
1
0
0
4
33d2ba64d8c2f1ea5e7dad3f01f1cb0fa2938a91
32,467
py
Python
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
814
2022-02-23T17:24:14.000Z
2022-03-31T16:52:23.000Z
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
89
2022-02-23T17:29:56.000Z
2022-03-31T23:44:13.000Z
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
68
2022-02-23T17:42:17.000Z
2022-03-28T06:39:55.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import os import time from typing import Any, Callable, Dict, Iterable, Iterator, List, ...
39.069795
114
0.59137
4,111
32,467
4.444904
0.127706
0.030701
0.028348
0.013025
0.363378
0.301866
0.277568
0.232255
0.2073
0.185301
0
0.009355
0.321773
32,467
830
115
39.116867
0.820481
0.328118
0
0.197002
0
0.006424
0.053838
0.012802
0
0
0
0
0
1
0.038544
false
0
0.023555
0.002141
0.087794
0.025696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33d41dd487f252aee80096c5a7bd7849cbd314b7
575
py
Python
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
9
2021-05-15T14:48:47.000Z
2021-11-08T04:09:59.000Z
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
null
null
null
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
1
2021-07-01T08:04:55.000Z
2021-07-01T08:04:55.000Z
import torch.nn.functional as F import torch # --- losses def masked_nll_loss(preds, targets): return F.nll_loss(preds[targets.mask], targets.data[targets.mask]) def masked_TOP_loss(preds, targets): """ Top One Probability(TOP) loss,from <<Learning to Rank: From Pairwise Approach to Listwise Approach>> ...
30.263158
104
0.707826
83
575
4.795181
0.39759
0.120603
0.120603
0.095477
0
0
0
0
0
0
0
0.004167
0.165217
575
18
105
31.944444
0.825
0.194783
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
33d49199210bdab53a1c95e998d2a61711888f00
9,101
py
Python
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
1
2021-04-28T11:26:57.000Z
2021-04-28T11:26:57.000Z
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
null
null
null
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
null
null
null
from typing import Tuple, Union import numpy as np from scipy.special import erf class RectifiedGaussianDistribution(object): """Implementation of the rectified Gaussian distribution. To see what is the rectified Gaussian distribution, visit: https://en.wikipedia.org/wiki/Rectified_Gaussian_distribu...
35.972332
78
0.452478
1,092
9,101
3.684982
0.163919
0.037276
0.04001
0.013419
0.79001
0.752982
0.738569
0.718439
0.688618
0.649851
0
0.02544
0.438523
9,101
252
79
36.115079
0.762035
0.354357
0
0.565891
0
0
0.002874
0
0
0
0
0
0
1
0.015504
false
0
0.023256
0
0.093023
0
0
0
0
null
0
0
0
0
1
1
1
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
4
33d512fe4ef4282f580b512b36a8cd7e237c6e6b
2,138
py
Python
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
null
null
null
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
null
null
null
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
1
2018-04-05T21:24:19.000Z
2018-04-05T21:24:19.000Z
from telegram.ext import ConversationHandler from telegram.ext import CommandHandler from telegram.ext import Filters, MessageHandler from telegram.ext import Updater def start(bot, update): update.message.reply_text( "Привет. Пройдите небольшой опрос, пожалуйста!\n" "Вы можете прервать опр...
32.393939
105
0.672123
239
2,138
5.882845
0.485356
0.056899
0.042674
0.059744
0.157895
0.055477
0.055477
0
0
0
0
0.012315
0.240412
2,138
65
106
32.892308
0.852833
0.226848
0
0.105263
0
0
0.173748
0.028535
0
0
0
0
0
1
0.131579
false
0.052632
0.105263
0.026316
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
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
33d7b60dfa081ba4782b84274ce3e231e6a92a72
277
py
Python
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
6
2020-08-13T13:02:58.000Z
2022-02-10T02:21:49.000Z
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Request from src.utils import best_saved_model router = APIRouter() @router.put("/update", name="update-best-model") async def update_best_model(request: Request): request.app.state.best_model = best_saved_model(request.app.state.run_id)
25.181818
77
0.783394
41
277
5.097561
0.487805
0.129187
0.133971
0
0
0
0
0
0
0
0
0
0.104693
277
10
78
27.7
0.842742
0
0
0
0
0
0.086643
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
33d8f9547baee0b5df90b1229cfe43f902dcdeb7
1,693
py
Python
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
import sys import unittest from typing import NamedTuple, Optional, Dict from xrpc.const import SERVER_SERDE_INST from xrpc.serde.abstract import SerdeSet, SerdeStepContext from xrpc.serde.types import CallableArgsWrapper class Simple2(NamedTuple): y: Optional[str] = 'asd' class Simple(NamedTuple): x: Opt...
24.185714
106
0.56645
221
1,693
4.235294
0.285068
0.008547
0.048077
0.092949
0.30235
0.153846
0.153846
0.106838
0.106838
0.106838
0
0.012945
0.269935
1,693
69
107
24.536232
0.744337
0
0
0.2
0
0
0.023641
0
0
0
0
0
0
1
0.1
false
0.05
0.15
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33da2612b90a61e970432c500d11f4363c18626f
30
py
Python
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
print("Hello from file 1") pr
10
26
0.7
6
30
3.5
1
0
0
0
0
0
0
0
0
0
0
0.04
0.166667
30
3
27
10
0.8
0
0
0
0
0
0.548387
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
33db0d368565ea1d5ffe9547a593c86507c344b4
8,873
py
Python
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2018, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
55.45625
167
0.648822
1,047
8,873
5.264565
0.26361
0.078919
0.058599
0.040639
0.369739
0.308237
0.252358
0.203919
0.162373
0.162373
0
0.002949
0.273865
8,873
159
168
55.805031
0.852553
0.471994
0
0.265625
0
0
0.104328
0.004784
0
0
0
0
0
1
0.046875
false
0
0.03125
0
0.109375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33dc1bc8737ae5efb9539a0e2630c93788a5dee3
70
py
Python
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
default_app_config = 'coberturas_medicas.apps.CoberturasMedicasConfig'
70
70
0.9
7
70
8.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.028571
70
1
70
70
0.882353
0
0
0
0
0
0.661972
0.661972
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
33dd0ef7334bc05b76d6858442d6a802f26e47aa
948
py
Python
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
"""Change orders.service_id to String Revision ID: 650_change_service_id_datatype Revises: 640_add_orders_table Create Date: 2016-07-01 13:15:29.629574 """ # revision identifiers, used by Alembic. revision = '650_change_service_id_datatype' down_revision = '640_add_orders_table' from alembic import op import sqlalc...
31.6
98
0.721519
128
948
5.0625
0.421875
0.125
0.092593
0.055556
0.339506
0.259259
0.179012
0.179012
0.179012
0.179012
0
0.039168
0.138186
948
29
99
32.689655
0.753978
0.35654
0
0
0
0
0.350087
0.12825
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33de28b32660b01bc6a1d8881d5ea5df8352484b
1,254
py
Python
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
from django.urls import include, path, re_path from rest_framework import routers from . import views from .utils import * router = routers.SimpleRouter() router.register(r'users', views.UserViewSet) router.register(r'groups', views.GroupViewSet) router.register(r'organizations', views.OrganizationViewSet) router.regi...
46.444444
87
0.754386
131
1,254
7.19084
0.427481
0.07431
0.079618
0
0
0
0
0
0
0
0
0
0.111643
1,254
26
88
48.230769
0.845601
0.082137
0
0
0
0
0.233449
0.059233
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33de738d5420e9582d24dcf1b949315e220cc17d
9,241
py
Python
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 ########################################################################################## #### Import libraries import requests import os from zipfile import ZipFile import xml.etree.ElementTree as ET import pandas as pd import glob import numpy as np import re import shutil ###...
38.991561
114
0.617249
1,301
9,241
4.191391
0.244427
0.036677
0.032276
0.018705
0.131487
0.092426
0.072621
0.010636
0.010636
0.010636
0
0.006663
0.204199
9,241
237
115
38.991561
0.734838
0.312412
0
0.051282
0
0
0.117286
0.010105
0
0
0
0
0
1
0.042735
false
0
0.076923
0
0.119658
0.008547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33defaed0d42ccdb417b1a62787a9629eac7629b
3,777
py
Python
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
"""Test the execution engines.""" import copy import amici import cloudpickle as pickle import numpy as np import pypesto import pypesto.optimize import pypesto.petab from ..petab.petab_util import folder_base from ..util import rosen_for_sensi def test_basic(): for engine in [ pypesto.engine.SingleCo...
28.832061
78
0.699232
393
3,777
6.524173
0.236641
0.051482
0.062403
0.050702
0.692278
0.692278
0.692278
0.692278
0.692278
0.692278
0
0.018679
0.206248
3,777
130
79
29.053846
0.836558
0.053482
0
0.544554
0
0
0.033455
0.028676
0
0
0
0
0.128713
1
0.059406
false
0
0.158416
0
0.217822
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
33df0927f5b437195a203736b7d2f1db8e4fec68
5,214
py
Python
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
7
2016-02-01T04:26:38.000Z
2021-11-17T10:24:19.000Z
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
null
null
null
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
3
2016-03-04T16:29:28.000Z
2019-10-05T16:48:51.000Z
#! /usr/bin/env python """ ************ Test Objects ************ """ import os import sys import copy import pickle import optparse import numpy from mvn import Mvn from mvn.matrix import Matrix from mvn.helpers import randint (fileDir, _) = os.path.split(os.path.abspath(__file__)) pickleName = os.path.join(...
23.276786
81
0.508439
578
5,214
4.49481
0.285467
0.031178
0.004619
0.023095
0.075443
0.075443
0.04157
0.020015
0.020015
0
0
0.009411
0.368239
5,214
223
82
23.381166
0.779296
0.022823
0
0.101266
0
0
0.085448
0
0
0
0
0
0.018987
0
null
null
0.031646
0.056962
null
null
0.006329
0
0
0
null
0
0
0
0
0
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
33e07f7711180ebd14a71f4eb2dfdcec9a31df8b
5,868
py
Python
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
import traceback import time import base64 import ssl import google_wrapper.common as gwc PUBSUB_SCOPES = ["https://www.googleapis.com/auth/pubsub"] def get_full_subscription_name(project, subscription): """Return a fully qualified subscription name.""" return gwc.fqrn("subscriptions", project, subscriptio...
30.722513
80
0.558623
572
5,868
5.547203
0.274476
0.044122
0.035298
0.025213
0.151276
0.116924
0.091711
0.067759
0.054207
0.054207
0
0.014725
0.328732
5,868
190
81
30.884211
0.79081
0.008862
0
0.181818
0
0
0.140865
0.01152
0
0
0
0
0
0
null
null
0
0.066116
null
null
0.016529
0
0
0
null
0
0
0
0
0
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
33e09c1449da0336671f91f7a7e5ef0d6d953474
86
py
Python
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2020-06-13T22:01:39.000Z
2020-06-13T22:01:39.000Z
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
__import__("pkg_resources").declare_namespace(__name__) # type: ignore[attr-defined]
43
85
0.802326
10
86
5.9
1
0
0
0
0
0
0
0
0
0
0
0
0.05814
86
1
86
86
0.728395
0.302326
0
0
0
0
0.224138
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
33e1e5dfe63926bb7626b2515a6463d6783a9e38
397
py
Python
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
39
2015-05-24T08:45:22.000Z
2020-02-18T07:42:58.000Z
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
3
2016-01-05T15:28:33.000Z
2017-03-18T12:40:45.000Z
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
36
2015-04-30T08:06:08.000Z
2019-01-22T15:12:49.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.sitemaps import Sitemap from booksite.book.models import Book class BookSitemaps(Sitemap): changefreq = 'hourly' priority = 0.5 def items(self): return Book.objects.order_by("-last_update").filter(last_update__isnu...
26.466667
92
0.715365
52
397
5.25
0.711538
0.10989
0
0
0
0
0
0
0
0
0
0.018349
0.176322
397
14
93
28.357143
0.816514
0.052897
0
0
0
0
0.048128
0
0
0
0
0
0
1
0.2
false
0
0.3
0.2
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
1
1
0
0
2
33e202595bcff5408c85f89714403151350da0e9
7,411
py
Python
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
from playsound import playsound from renit import reinit_app from shape_creators import * from testbrain import TestBrain from tkinter import ttk from ttkthemes import ThemedTk import math REC_WIDTH = 600 REC_HEIGHT = 200 RECTANGLE_COLOUR = "#3fc1c9" RECTANGLE_TEXT_COLOUR = "#364f6b" BACKGROUND_COLOUR = "#f5f5f5" RE...
42.83815
120
0.612603
901
7,411
4.772475
0.174251
0.03907
0.029302
0.022791
0.461628
0.359302
0.307442
0.253953
0.244419
0.23814
0
0.022705
0.191742
7,411
172
121
43.087209
0.695159
0.136419
0
0.178295
0
0
0.069986
0.02051
0
0
0
0
0
1
0.03876
false
0
0.054264
0
0.093023
0.007752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e224dce84cd098e6d5bb11fe55ee39e1bc3fea
1,687
py
Python
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
null
null
null
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
1
2019-11-29T12:43:41.000Z
2019-11-29T12:43:41.000Z
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
null
null
null
"""python vast module Example: Disclaimer: `await` does not work in the python3.7 repl, use either python3.8 or ipython. Create a connector to a VAST server: > from pyvast import VAST > vast = VAST(app="/opt/tenzir/bin/vast") Test if the connector works: > await vast.connect() Extract ...
30.125
86
0.637226
221
1,687
4.828054
0.524887
0.026242
0.028116
0.033739
0.039363
0
0
0
0
0
0
0.01668
0.253705
1,687
55
87
30.672727
0.830818
0.315353
0
0
0
0
0.079602
0
0
0
0
0
0
1
0.038462
false
0
0.115385
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e2816a3db6db079f7b3bb329fdb909bb3e9cf8
458
py
Python
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
2
2019-04-15T20:36:48.000Z
2020-02-09T23:20:27.000Z
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
5
2020-02-12T00:06:06.000Z
2020-06-05T05:09:45.000Z
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-09-06 21:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wallet', '0021_auto_20200905_0845'), ] operations = [ migrations.AddField( model_name='position', name='total_divide...
24.105263
114
0.635371
52
458
5.442308
0.807692
0.063604
0.127208
0
0
0
0
0
0
0
0
0.099125
0.251092
458
18
115
25.444444
0.725948
0.098253
0
0
1
0
0.163017
0.055961
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
33e4cd7219f4ca477ecd9a9016025d803e4d41b9
633
py
Python
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
null
null
null
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
4
2021-09-01T21:03:52.000Z
2021-09-09T13:32:14.000Z
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
null
null
null
from electric_field import * from physics_engine import * import math # Constant variables scene.width = 1600 scene.height = 800 # Create field my_field = electric_field() my_charge = point_charge(0.001, -1E-9, 10, 10, 10) while True: # Set frame rate rate(20) # This allows the charge to bounce around...
22.607143
53
0.672986
102
633
4.009804
0.480392
0.136919
0.02934
0.03912
0.195599
0.195599
0.195599
0.195599
0.195599
0.195599
0
0.078313
0.21327
633
28
54
22.607143
0.742972
0.238547
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e5c4ef0a62c2a0771e4127069e6b6a46219107
58
py
Python
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
from oo.pessoa import Pessoa p = Pessoa() print(type(p))
11.6
28
0.706897
10
58
4.1
0.7
0
0
0
0
0
0
0
0
0
0
0
0.155172
58
5
29
11.6
0.836735
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
33e6c4a804a5c34f1f8e8f628f3414186d87ca4d
110
py
Python
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
3
2020-08-25T01:57:59.000Z
2021-09-11T15:38:02.000Z
# -*- coding: utf-8 -*- import sys from odoo.tools import convert convert.csv.field_size_limit(sys.maxsize)
15.714286
41
0.736364
17
110
4.647059
0.823529
0
0
0
0
0
0
0
0
0
0
0.010417
0.127273
110
6
42
18.333333
0.8125
0.190909
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
33e727d76b8ef633ed4385538bc9aa5adf0eb38a
17,733
py
Python
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
null
null
null
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
null
null
null
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
1
2019-12-18T14:35:46.000Z
2019-12-18T14:35:46.000Z
from abc import ABCMeta from abc import abstractmethod from unittest import TestCase from typing import Iterable from typing import List from opwen_email_client.domain.email.store import EmailStore class Base(object): class EmailStoreTests(TestCase, metaclass=ABCMeta): page_size = 10 @abstractme...
39.582589
120
0.498788
1,919
17,733
4.484106
0.081292
0.069727
0.074259
0.035793
0.703312
0.652063
0.598722
0.553167
0.539221
0.472865
0
0.032893
0.326228
17,733
447
121
39.671141
0.687312
0
0
0.415473
0
0
0.184515
0
0
0
0
0
0.186246
1
0.083095
false
0
0.017192
0
0.111748
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e744f33625829e440fa00f41cd61908cd2efcb
1,513
py
Python
src/functions/floodControl.py
dinesh-0602/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
32
2021-08-20T04:05:26.000Z
2022-03-27T17:35:47.000Z
src/functions/floodControl.py
rajV2/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
null
null
null
src/functions/floodControl.py
rajV2/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
32
2021-08-21T14:21:46.000Z
2022-03-30T02:05:02.000Z
import time from src.objs import * #: Flood prevention def floodControl(message, userLanguage): userId = message.from_user.id if userId == config['adminId']: return True #! If the user is not banned if not dbSql.getSetting(userId, 'blockTill', table='flood') - int(time.time()) > 0: ...
40.891892
130
0.610707
172
1,513
5.354651
0.343023
0.076004
0.05646
0.035831
0.175896
0.145494
0.145494
0.145494
0.145494
0.145494
0
0.007319
0.277594
1,513
36
131
42.027778
0.835316
0.114342
0
0.181818
0
0
0.095952
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e7e1642c5fa7247fbfda698e93071dbce85aab
1,138
py
Python
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
11
2019-11-14T20:22:25.000Z
2021-05-17T16:32:46.000Z
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
null
null
null
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
15
2019-12-21T18:05:06.000Z
2022-03-05T19:51:09.000Z
from datetime import datetime from airflow import DAG, AirflowException from datetime import datetime from airflow.operators.python_operator import PythonOperator from airflow.utils.trigger_rule import TriggerRule def print_1(): return 'Step 1' def print_2(): #raise AirflowException('Oops!') #Uncomment to m...
27.756098
95
0.685413
140
1,138
5.385714
0.342857
0.039788
0.106101
0.068966
0.098143
0.098143
0
0
0
0
0
0.030405
0.219684
1,138
40
96
28.45
0.818694
0.101933
0
0.076923
0
0
0.091356
0
0
0
0
0
0
1
0.153846
false
0
0.192308
0.153846
0.5
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
33e7f51187f7b1f15f67e176d3d2914a0ae8b45e
3,449
py
Python
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
98
2015-03-31T06:42:14.000Z
2022-03-13T12:07:37.000Z
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
121
2015-07-13T15:57:02.000Z
2022-03-24T20:07:10.000Z
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
66
2015-04-06T03:05:04.000Z
2022-02-26T05:11:59.000Z
#!/bin/env python """ Module simtk.unit.basedimension BaseDimension class for use by units and quantities. BaseDimensions are things like "length" and "mass". This is part of the OpenMM molecular simulation toolkit originating from Simbios, the NIH National Center for Physics-Based Simulation of Biological Structur...
34.148515
88
0.71354
466
3,449
5.150215
0.48927
0.036667
0.018333
0.03
0.05
0.026667
0
0
0
0
0
0.008959
0.223253
3,449
100
89
34.49
0.886898
0.669469
0
0
0
0
0.10989
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.033333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33e7fe72c262d1092a729f884ea3e0c68d37b8db
3,224
py
Python
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine import pandas as pd import psycopg2 class EngineConnect: def __init__( self, uri: str ): self.engine = create_engine(uri) self.conn = self.engine.connect() def create(self, data, schema, table): df = pd.json_normalize(d...
33.583333
162
0.563275
397
3,224
4.476071
0.229219
0.049522
0.019696
0.033765
0.35453
0.335397
0.301632
0.301632
0.301632
0.301632
0
0.002285
0.32134
3,224
96
163
33.583333
0.809872
0
0
0.358025
0
0
0.067287
0
0
0
0
0
0
1
0.17284
false
0.061728
0.037037
0
0.283951
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
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
33e9f158ff66486224b4550051246b6dec72343a
21,743
py
Python
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
11
2021-01-15T14:26:28.000Z
2021-12-15T08:37:03.000Z
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
14
2021-03-15T16:31:47.000Z
2022-01-07T14:52:10.000Z
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
1
2021-04-28T10:15:52.000Z
2021-04-28T10:15:52.000Z
# -*- coding: utf-8 -*- # Copyright 2021, CS GROUP - France, http://www.c-s.fr # # This file is part of EODAG project # https://www.github.com/CS-SI/EODAG # # 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...
30.79745
1,667
0.625811
2,125
21,743
6.127059
0.132235
0.036252
0.030952
0.026114
0.505376
0.462212
0.43318
0.416129
0.410292
0.36467
0
0.034054
0.272042
21,743
705
1,668
30.841135
0.788539
0.061215
0
0.693878
0
0.007849
0.143313
0.106761
0
0
0
0
0
1
0
false
0
0.012559
0
0.012559
0.00471
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
33eea147dcf11c511b4a9c8d6be444a952495a54
1,962
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.875
137
0.625382
221
1,962
5.479638
0.479638
0.069364
0.029728
0
0
0
0
0
0
0
0
0.003159
0.19317
1,962
47
138
41.744681
0.761845
0.552497
0
0
0
0
0.172457
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33eea834853e14b35733d601c03bdedc405549d4
30,432
py
Python
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
5
2019-07-27T13:57:47.000Z
2021-06-16T13:17:44.000Z
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
26
2019-05-01T11:56:35.000Z
2020-06-18T16:06:40.000Z
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
1
2019-07-11T07:16:09.000Z
2019-07-11T07:16:09.000Z
''' This module contains all the functions that will parse a particular dataset into a `target_extraction.data_types.TargetTextCollection` object. Functions: 1. semeval_2014 ''' import json from pathlib import Path import xml.etree.ElementTree as ET from xml.etree.ElementTree import Element from xml.etree.ElementTree...
50.889632
159
0.592961
3,522
30,432
4.955423
0.118967
0.021773
0.013751
0.015814
0.611471
0.548043
0.519166
0.50043
0.489944
0.464046
0
0.017123
0.33215
30,432
597
160
50.974874
0.841616
0.383544
0
0.4081
0
0.021807
0.144581
0.011843
0
0
0
0
0
1
0.043614
false
0
0.040498
0
0.127726
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33ef41e085b8b97dcad376973e5a2651938e30d6
309
py
Python
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
class Solution: def maximumWealth(self, accounts: List[List[int]]) -> int: max_acc = 0 for account in accounts: sum_acc = 0 for num in account: sum_acc += num if max_acc < sum_acc: max_acc = sum_acc return max_acc
30.9
62
0.514563
39
309
3.871795
0.461538
0.15894
0.092715
0.15894
0
0
0
0
0
0
0
0.011111
0.417476
309
10
63
30.9
0.827778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f0ba344a37591b7f4944804b11701aa4ff2ca0
6,973
py
Python
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
53
2015-01-28T09:42:57.000Z
2022-03-26T15:32:16.000Z
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
20
2015-02-11T02:47:12.000Z
2022-03-18T03:06:54.000Z
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
25
2015-04-29T15:55:17.000Z
2022-01-21T15:46:51.000Z
from __future__ import unicode_literals import logging import json import requests from django.template import Context from django.conf import settings from django.urls import reverse from django.contrib.sites.models import Site from django import template from campaign.backends.base import BaseBackend from campaign.c...
37.28877
122
0.625699
808
6,973
5.216584
0.272277
0.04911
0.034164
0.011388
0.083274
0.026572
0.014709
0
0
0
0
0.002044
0.298437
6,973
186
123
37.489247
0.859567
0.316076
0
0.147059
0
0
0.063126
0.00936
0
0
0
0
0
1
0.029412
false
0.009804
0.117647
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f262ac354b5b387c54d37c6e16bd4e1f39f3dc
1,444
py
Python
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
import tkinter as tk class GUI: def __init__(self,master): self.master=master #penceremin ustundeki configler icin master tanımımı kullandım self.label_name=tk.Label(master,text='Adı soyadı:',font=('Arial',10)) self.label_name.place(x=10,y=10) #text fieldlerdan tkinter uygulamala...
39.027027
111
0.707756
206
1,444
4.854369
0.441748
0.06
0.052
0.027
0.106
0.036
0
0
0
0
0
0.032609
0.171745
1,444
37
112
39.027027
0.803512
0.280471
0
0
0
0
0.068865
0
0
0
0
0
0
1
0.125
false
0
0.041667
0
0.208333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f2a1181b60f50c26fb109838c1de75fa98f910
160
py
Python
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
null
null
null
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
11
2020-09-15T12:15:51.000Z
2020-11-03T01:18:46.000Z
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify bp = Blueprint("api", __name__, url_prefix="/api") @bp.route("/hello") def hello(): return jsonify("Hello, World!")
17.777778
50
0.68125
21
160
4.952381
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.14375
160
8
51
20
0.759124
0
0
0
0
0
0.1625
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
33f3de99c68b0762c69ffc423533d91bb34f53c2
4,053
py
Python
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
#Import modules import numpy as np from sklearn.linear_model import ElasticNetCV import pandas as pd import time from joblib import Parallel, delayed import multiprocessing #Define functions def make_weights(E_dist, theta): w = [np.exp(-1 * theta * E_dist[i] / np.mean(E_dist)) for i in range(E_dist.shape[0])] ...
44.538462
120
0.635332
605
4,053
4.049587
0.25124
0.029388
0.009796
0.017959
0.204082
0.114286
0.053061
0.033469
0.033469
0.033469
0
0.017638
0.21663
4,053
91
120
44.538462
0.754016
0.071058
0
0
0
0
0.069693
0.017356
0
0
0
0
0
1
0.059701
false
0
0.089552
0
0.19403
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f3e2d22b81c258c7bdcf256c47921cf209baa9
16,634
py
Python
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
# ! /usr/bin/python # -*- coding: utf-8 -*- # Copyright 2020 NVIDIA. 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 #...
41.899244
116
0.639113
1,835
16,634
5.548229
0.191826
0.023377
0.028877
0.033396
0.665062
0.641784
0.641784
0.611924
0.578529
0.565662
0
0.018402
0.251894
16,634
396
117
42.005051
0.799743
0.12763
0
0.526846
0
0
0.08806
0.015841
0
0
0
0
0.033557
1
0.033557
false
0
0.040268
0
0.090604
0.010067
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f4d47972d31539ed3a98ea5f8f901bb19e8986
2,314
py
Python
sympycore/polynomials/tests/test_algebra.py
radovankavicky/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
96
2015-01-25T05:59:56.000Z
2021-12-29T14:05:22.000Z
sympycore/polynomials/tests/test_algebra.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
3
2015-12-17T19:25:46.000Z
2018-06-19T07:05:20.000Z
sympycore/polynomials/tests/test_algebra.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
36
2016-01-31T15:22:01.000Z
2021-03-29T07:03:07.000Z
from sympycore import * P = PolynomialRing def test_default_ring(): r = repr(P.convert(0)) assert r=="PolynomialRing('0')", r assert P.zero==P.convert(0) assert str(0)=='0' assert `P.convert(2)`=="PolynomialRing('2')",repr(P.convert(2)) def test_X(): X = PolynomialRing['x'] C = X.convert...
39.896552
97
0.474071
447
2,314
2.44519
0.087248
0.040256
0.035682
0.036597
0.433669
0.399817
0.258005
0.232388
0.174748
0.174748
0
0.114423
0.187986
2,314
57
98
40.596491
0.46727
0
0
0.083333
0
0.020833
0.252918
0.105491
0
0
0
0
0.770833
0
null
null
0
0.020833
null
null
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
1
1
0
0
0
0
0
0
0
0
3
33f527e6618f06c1a9c11b30446518af5b81e11c
594
py
Python
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Label the Z position values = grid.points[:, 2] # Create plotting class and add the unstructured grid plotter = pv.Plotter() # color mesh according to z value plotter.add_mesh(grid, scalars=values, scalar_bar_args={'title': 'Z Position'}, show_edges=True) # Add labels to points on ...
31.263158
75
0.675084
92
594
4.26087
0.576087
0.076531
0
0
0
0
0
0
0
0
0
0.024793
0.185185
594
19
76
31.263158
0.785124
0.306397
0
0
0
0
0.103194
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f6489ece71e9453add661efec4fd1216138fa6
5,676
py
Python
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import sys import time from time import sleep from typing import Optional from typing import Sequence from typing import Tuple from paasta_tools import mesos_tools from paasta_tools.frameworks.native_scheduler import create_driver from paasta_tools.frameworks.native_scheduler impo...
39.692308
109
0.713354
722
5,676
5.282548
0.240997
0.044048
0.047195
0.026219
0.289198
0.235973
0.144206
0.079706
0.056633
0.039329
0
0.002015
0.213002
5,676
142
110
39.971831
0.851802
0.128964
0
0.130841
0
0
0.043788
0
0
0
0
0
0
1
0.065421
false
0
0.17757
0.009346
0.327103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f7e13a9320dff2213752e8e1f1ef5a669b102b
1,070
py
Python
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
''' weakref weakref.WeakValueDictionary ''' import logging a = logging.getLogger('foo') b = logging.getLogger('bar') print( a is b ) c = logging.getLogger('foo') print( a is c ) #True.same name logger is same instance # The class in question class Spam: def __init__(self, name): self.name = name # Caching...
21.4
55
0.626168
152
1,070
4.171053
0.269737
0.113565
0.050473
0.0347
0.198738
0.041009
0
0
0
0
0
0
0.257009
1,070
50
56
21.4
0.797484
0.11215
0
0.368421
0
0
0.045745
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.315789
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33f8b719e9ba98ddfcaba344177eff9b1a186f00
841
py
Python
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages setup(name='my_friend', version='0.1', description="Python library to make my days better", long_description='just 4 lulz', classifiers=[], keywords='', author='Daniel Kanzel', author_email='danersow@gmail.com', url='', l...
30.035714
63
0.602854
100
841
4.95
0.68
0.064646
0.066667
0.09697
0
0
0
0
0
0
0
0.004951
0.279429
841
28
64
30.035714
0.811881
0.13912
0
0
0
0
0.434119
0.12344
0
0
0
0
0
1
0
true
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
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
33f9fcd070c093507534268a7e91b68253af14f5
1,254
py
Python
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
10
2015-02-16T17:12:44.000Z
2021-06-04T18:14:01.000Z
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
1
2021-09-20T01:17:38.000Z
2021-09-20T01:17:50.000Z
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
5
2015-09-09T02:01:33.000Z
2021-05-29T09:09:14.000Z
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'inventory', 'USER': 'inventory', 'PASSWORD': 'inventory', 'HOST': 'localhost', 'PORT': '', } } #KEY_PREFIX = 'prod' #KEY_FUNCTION = 'testsite.common.cachi...
26.125
78
0.650718
160
1,254
4.875
0.51875
0.030769
0.046154
0.057692
0.152564
0.088462
0.061538
0
0
0
0
0.009497
0.160287
1,254
47
79
26.680851
0.731244
0.201754
0
0
0
0
0.344411
0.070493
0
0
0
0
0
1
0
false
0.066667
0.033333
0
0.033333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
33fca6b803aa07b91cf3c576d1059df9cb579535
3,986
py
Python
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
39
2017-02-27T15:21:21.000Z
2021-12-31T03:23:43.000Z
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
18
2017-07-09T00:16:28.000Z
2021-12-03T21:01:38.000Z
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
25
2017-03-05T07:59:34.000Z
2021-12-15T15:22:58.000Z
import subprocess import platform from os import linesep from time import sleep from pyspectator.convert import UnitByte CLEAR_CMD = 'cls' if platform.system() == 'Windows' else 'clear' def clear(): subprocess.call(CLEAR_CMD, shell=True) def print_hr(space_before=False, space_after=False): before = linese...
33.779661
79
0.607627
419
3,986
5.610979
0.28401
0.053594
0.071459
0.039132
0.186304
0.142918
0.112293
0.074862
0.056146
0.056146
0
0.011088
0.275966
3,986
117
80
34.068376
0.803188
0.06272
0
0.215054
0
0.010753
0.108427
0.009393
0
0
0
0
0
1
0.064516
false
0
0.064516
0
0.172043
0.258065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33fd0062b63d3540dad25bfc41a907a035a81d4c
95
py
Python
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
112
2019-10-29T10:36:20.000Z
2020-12-19T08:08:27.000Z
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
53
2020-12-29T07:52:40.000Z
2022-03-31T10:11:54.000Z
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
29
2019-10-29T13:06:29.000Z
2020-12-19T08:09:24.000Z
def main(): assert 1 / 2 == 0 print('success') if __name__ == "__main__": main()
11.875
26
0.526316
12
95
3.5
0.833333
0
0
0
0
0
0
0
0
0
0
0.044776
0.294737
95
7
27
13.571429
0.58209
0
0
0
0
0
0.157895
0
0
0
0
0
0.2
1
0.2
true
0
0
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
33feab5aa973cfa55aca4928158ae51920e92f2e
11,500
py
Python
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
7
2019-12-05T02:49:07.000Z
2020-08-17T01:11:59.000Z
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
null
null
null
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
3
2021-03-12T04:41:00.000Z
2021-03-12T04:41:24.000Z
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Li...
44.921875
101
0.670783
1,526
11,500
4.740498
0.22346
0.031933
0.047
0.033177
0.285043
0.275366
0.244816
0.191319
0.138098
0.089301
0
0.010282
0.213478
11,500
255
102
45.098039
0.789497
0.100783
0
0.05641
0
0
0.239763
0.124005
0
0
0
0
0.020513
1
0.030769
false
0
0.082051
0.005128
0.128205
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
33fece3a93d648aa9dc2fd580f1e130193907359
1,065
py
Python
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
3
2020-03-10T14:47:07.000Z
2020-05-05T16:55:27.000Z
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
13
2020-04-14T14:36:06.000Z
2020-05-07T15:03:42.000Z
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
1
2020-03-03T15:47:52.000Z
2020-03-03T15:47:52.000Z
from django.contrib import admin from django.contrib.gis.admin import OSMGeoAdmin from rgd.admin.mixins import MODIFIABLE_FILTERS, TASK_EVENT_FILTERS, TASK_EVENT_READONLY, reprocess from rgd_imagery.models import ProcessedImage, ProcessedImageGroup class ProcessedImageAdmin(admin.StackedInline): model = Processed...
27.307692
99
0.687324
102
1,065
6.901961
0.490196
0.120739
0.090909
0.110795
0.224432
0.130682
0
0
0
0
0
0.001212
0.225352
1,065
38
100
28.026316
0.852121
0
0
0.294118
0
0
0.105164
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50148ac813ac58f82fe3db88377732cbe72a00c
137
py
Python
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
n = int(input('Digite um número: ')) print('O dobro é {}.\nO triplo é {}.\nA raiz quadrada é {:.2f}'.format(n * 2, n * 3, n ** (1/2)))
45.666667
98
0.540146
26
137
2.846154
0.769231
0
0
0
0
0
0
0
0
0
0
0.045455
0.19708
137
2
99
68.5
0.627273
0
0
0
0
0
0.540741
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
d5036b24bf1ba9544ffa7388314b414500db5c1b
7,755
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ """ C4705586 - Altering connections on graph nodes appropriately updates component properties C22715182 - Compo...
46.437126
155
0.680206
850
7,755
6.055294
0.245882
0.029143
0.020206
0.017486
0.531183
0.501069
0.453662
0.411502
0.384107
0.338255
0
0.014961
0.250161
7,755
166
156
46.716867
0.870163
0.067311
0
0.284483
0
0
0.402453
0.060893
0
0
0
0
0
1
0.060345
false
0
0.051724
0
0.12069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d507acaa5ff799bb80d565eb8620d6d539f4af7e
115
py
Python
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
import csv with open('int.csv') as my_file: read = csv.reader(my_file) for row in read: print(row)
19.166667
32
0.626087
20
115
3.5
0.7
0.171429
0
0
0
0
0
0
0
0
0
0
0.26087
115
5
33
23
0.823529
0
0
0
0
0
0.06087
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d5081bfdbd40201a1c5ee69971c996b644b8d536
1,657
py
Python
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
#imports import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys #variables #these variables will be #changed by the input funcation Timer = 3 link = '' views = 10 print('''____________________________________________________ ...
33.816327
87
0.491249
166
1,657
4.23494
0.584337
0.051209
0.059744
0.076814
0
0
0
0
0
0
0
0.019305
0.374774
1,657
49
88
33.816327
0.657336
0.25347
0
0
0
0
0.674596
0.107901
0
0
0
0
0
1
0
false
0
0.129032
0
0.129032
0.096774
0
0
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
d50957df3bce439392a340db63f7eed8100060ea
835
py
Python
applications/graphpipe/graphpipe_demo.py
StijnMatsHendriks/adversarial_attack_demo
956fd8a96c0c8abf1f4a3e0ffb9d83eeda79b8ff
[ "MIT" ]
819
2019-06-10T08:33:28.000Z
2022-03-29T10:55:25.000Z
applications/graphpipe/graphpipe_demo.py
awesomemachinelearning/AdvBox
ff784e90f107a43afdbec826c7e5365b9db90750
[ "Apache-2.0" ]
38
2019-07-11T01:57:41.000Z
2022-03-15T06:59:21.000Z
applications/graphpipe/graphpipe_demo.py
awesomemachinelearning/AdvBox
ff784e90f107a43afdbec826c7e5365b9db90750
[ "Apache-2.0" ]
167
2019-06-12T09:11:34.000Z
2022-03-28T15:54:46.000Z
#coding=utf-8 #graphpipe官网的一个例子 #https://oracle.github.io/graphpipe/#/guide/user-guide/quickstart #pip install graphpipe #pip install pillow # needed for image manipulation ''' #服务器端启动方式为: docker run -it --rm \ -e https_proxy=${https_proxy} \ -p 9000:9000 \ sleepsonthefloor/graphpipe-tf:cpu \ --mo...
23.857143
75
0.71018
124
835
4.766129
0.604839
0.013536
0.05753
0.064298
0.094755
0
0
0
0
0
0
0.053793
0.131737
835
35
75
23.857143
0.761379
0.468263
0
0
0
0
0.154762
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d509cf67293f1735e6d0859807c6de2afbabf6e9
164
py
Python
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
class Group: def __init__(self,name = None, header = None, footer = None): Group.name = name Group.header = header Group.footer = footer
32.8
65
0.609756
20
164
4.8
0.45
0
0
0
0
0
0
0
0
0
0
0
0.292683
164
5
66
32.8
0.827586
0
0
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d50a6ea2da3b7fcb7f431124f710d9fb773bb4c9
142
py
Python
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
import math def is_prime(n): if (math.factorial(n-1)+1) % n!=0: print ("NO") else: print ("YES") print(is_prime(13))
15.777778
38
0.535211
23
142
3.217391
0.652174
0.189189
0
0
0
0
0
0
0
0
0
0.048544
0.274648
142
8
39
17.75
0.669903
0
0
0
0
0
0.035461
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0.428571
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
d50abffcd18bed58f6c21161425b857656235845
2,170
py
Python
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
5
2015-06-26T03:26:18.000Z
2018-02-21T17:07:37.000Z
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
null
null
null
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Basic: 1 topic, 50 consumer/producer clients # - Each consumer writes 10 messages # - Each consumer gets all 10 messages # - 1 consumer unsubs # - 1 more message sent # - Only the remaining 9 clients get the msg # import time import helper from radiator import Broker consumers =...
24.659091
80
0.611982
319
2,170
4.018809
0.316614
0.019501
0.035101
0.042122
0.042122
0.024961
0
0
0
0
0
0.027095
0.268664
2,170
87
81
24.942529
0.780718
0.125346
0
0
0
0
0.071504
0.011653
0
0
0
0
0
0
null
null
0.050847
0.050847
null
null
0.016949
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
d50cfe4b7fdff37beacd8c1bde6eb8b8d4fb26b2
429
py
Python
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
# 设计一个验证用户密码程序,用户只有三次机会输入错误,不过如果用户输入的内容中包含"*"则不计算在内。#设计一个验证用户密码程序,用户只有三次机会输入错误,不过如果用户输入的内容中包含"*"则不计算在内。 # 次数 count = 3 # 密码 password = "fishc" while count: Password = input("请输入密码:") if Password == password: print("密码输入正确") break elif '*' in Password: print("密码中不能包含'*',请重新输入,您还有",cou...
23.833333
103
0.610723
46
429
5.695652
0.652174
0.183206
0.290076
0.335878
0
0
0
0
0
0
0
0.009091
0.230769
429
17
104
25.235294
0.784848
0.247086
0
0
0
0
0.172956
0
0
0
0
0
0
1
0
false
0.285714
0
0
0
0.285714
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
d50d4d535730a15821107b585fb0b70fbba86f4a
2,567
py
Python
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
35.164384
90
0.664979
254
2,567
6.559055
0.413386
0.033613
0.032413
0.046819
0.186074
0.186074
0.186074
0.186074
0.186074
0.186074
0
0.001479
0.209583
2,567
72
91
35.652778
0.819616
0.394235
0
0.148148
1
0
0.072909
0.015011
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d50d9e2ca679df89c4e0a95ae7adb1bc28f9bbe3
4,126
py
Python
pyclustering/cluster/mbsas.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/cluster/mbsas.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/cluster/mbsas.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Cluster analysis algorithm: MBSAS (Modified Basic Sequential Algorithmic Scheme). @details Implementation based on paper @cite book::pattern_recognition::2009. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ from pyclustering.core.mbsas_wrapper import mbsas ...
34.966102
140
0.676442
481
4,126
5.611227
0.345114
0.041497
0.025565
0.020748
0.129678
0.085217
0.038533
0
0
0
0
0.007027
0.241154
4,126
118
141
34.966102
0.854998
0.55841
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.09375
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50db675488cc0120d66ef219cb9713d49a77950
126
py
Python
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2020-12-03T03:07:15.000Z
2020-12-03T03:07:15.000Z
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2019-08-23T09:27:33.000Z
2019-08-29T01:46:12.000Z
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
null
null
null
from ._cpools import TopPool, BottomPool, LeftPool, RightPool from ._cpools_lines import HorizontalLinePool, VerticalLinePool
42
63
0.857143
13
126
8.076923
0.769231
0.190476
0
0
0
0
0
0
0
0
0
0
0.095238
126
2
64
63
0.921053
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d50e06f01333daeea1620e158ae353617743fd95
2,306
py
Python
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd # system vars path_to_usim = '/home/mgardner/src/bayarea_urbansim/' usim_data_dir = 'data/' usim_output_dir = 'output/' usim_h5_file = '2015_09_01_bayarea_v3.h5' path_to_asim = '/home/mgardner/src/activitysim/' asim_data_dir = 'example/data/' asim_h5_file = 'mtc_asim.h5' # load both data stores us...
41.927273
88
0.793148
350
2,306
4.842857
0.285714
0.120354
0.113274
0.030089
0.160472
0.035398
0
0
0
0
0
0.009095
0.094102
2,306
54
89
42.703704
0.802298
0.123591
0
0
0
0
0.176441
0.060636
0
0
0
0
0.02439
1
0
false
0
0.02439
0
0.02439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50e1c7d8231edcbe1246f3d5ced5e7928184531
433
py
Python
loader/__init__.py
mmendiet/gate-decorator-pruning
ebff861626296638619f48cdf0ff8bf3c5eccc2f
[ "Apache-2.0" ]
192
2019-09-18T10:02:16.000Z
2022-03-24T16:31:18.000Z
loader/__init__.py
pawopawo/gate-decorator-pruning
d89021802fa56b1eba97921db3d8cadcacdd2073
[ "Apache-2.0" ]
25
2019-09-24T10:53:51.000Z
2022-01-18T07:13:52.000Z
loader/__init__.py
pawopawo/gate-decorator-pruning
d89021802fa56b1eba97921db3d8cadcacdd2073
[ "Apache-2.0" ]
33
2019-09-19T02:21:58.000Z
2022-03-31T10:04:20.000Z
import torchvision from torch.utils.data import DataLoader from torchvision import transforms from PIL import Image from config import cfg from loader.cifar10 import get_cifar10 from loader.cifar100 import get_cifar100 from loader.imagenet import get_imagenet def get_loader(): pair = { 'cifar10': get_cif...
21.65
40
0.741339
56
433
5.607143
0.375
0.095541
0
0
0
0
0
0
0
0
0
0.057307
0.193995
433
19
41
22.789474
0.842407
0
0
0
0
0
0.053118
0
0
0
0
0
0
1
0.066667
false
0
0.533333
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
1
0
0
2
d50e3f18bc5365f3dc7c9e1baf034077011723f5
970
py
Python
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
3
2020-09-07T09:06:30.000Z
2020-09-22T10:27:26.000Z
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
6
2020-09-07T09:42:54.000Z
2020-09-14T10:23:36.000Z
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
null
null
null
import time ################ # DECORATORS # ################ def simple_time_tracker(method): """Time tracker to check the fitting times when training the models.""" def timed(*args, **kw): ts = time.time() result = method(*args, **kw) te = time.time() if "log_time" in kw: ...
28.529412
83
0.570103
122
970
4.377049
0.557377
0.041199
0
0
0
0
0
0
0
0
0
0.02332
0.248454
970
33
84
29.393939
0.709191
0.168041
0
0
0
0
0.087015
0
0
0
0
0
0
1
0.15
false
0
0.05
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50e69416441ec59cb3e6ea30d341781ca743940
2,712
py
Python
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
import gym from gym.envs.registration import register from bark_ml.environments.single_agent_runtime import SingleAgentRuntime from bark_ml.environments.blueprints.highway.highway import DiscreteHighwayBlueprint from bark_ml.environments.blueprints.merging.merging import DiscreteMergingBlueprint from bark_ml.environm...
38.197183
99
0.643068
233
2,712
7.223176
0.27897
0.084967
0.023767
0.052288
0.332739
0.275698
0.252525
0.150921
0.150921
0.081996
0
0.003093
0.284661
2,712
70
100
38.742857
0.864433
0.006268
0
0.14
0
0
0.071667
0.055329
0
0
0
0
0
1
0.1
false
0
0.14
0.02
0.34
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50f0b1b425f7055c0a2f622927cba3c742a11b0
805
py
Python
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
1
2022-01-19T21:23:56.000Z
2022-01-19T21:23:56.000Z
"""OpenAPI core security schemes models module""" from openapi_core.schema.security_schemes.enums import ( SecuritySchemeType, ApiKeyLocation, HttpAuthScheme, ) class SecurityScheme(object): """Represents an OpenAPI Security Scheme.""" def __init__( self, scheme_type, description=None, name=N...
35
75
0.695652
92
805
5.826087
0.391304
0.059701
0.072761
0.089552
0
0
0
0
0
0
0
0
0.223602
805
22
76
36.590909
0.8576
0.101863
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d50f3f6b4b82627008988bf45869e704015aa14c
3,589
py
Python
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
# gotten from https://pbpython.com/improve-pandas-excel-output.html """ Show examples of modifying the Excel output generated by pandas """ import pandas as pd import numpy as np from xlsxwriter.utility import xl_rowcol_to_cell df = pd.read_excel("../in/excel-comp-datav2.xlsx") # We need the number of rows in order...
35.534653
80
0.665924
513
3,589
4.512671
0.325536
0.030238
0.04406
0.02419
0.268683
0.196976
0.133909
0.077754
0.077754
0.043197
0
0.022059
0.204235
3,589
101
81
35.534653
0.788515
0.303427
0
0.085106
1
0
0.155718
0.011354
0
0
0
0
0
1
0
false
0
0.06383
0
0.06383
0
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
d51062e86ee2d313db17fee23177b0806f0fa5c7
895
py
Python
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:16.000Z
2021-08-04T05:09:16.000Z
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
4
2021-08-16T07:15:10.000Z
2021-09-04T08:47:47.000Z
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:13.000Z
2021-08-04T05:09:13.000Z
import numpy as np import numpy.testing as npt import riip from riip.formulas import formulas_cython_dict, formulas_numpy_dict def test_cython_formulas(): rid = riip.RiiDataFrame() fbps = { 1: ("MgAl2O4", "Tropf"), 2: ("Ar", "Borzsonyi"), 3: ("methanol", "Moutzouris"), 4: ("Ba...
28.870968
67
0.52514
128
895
3.539063
0.585938
0.048565
0.07947
0
0
0
0
0
0
0
0
0.028081
0.283799
895
30
68
29.833333
0.678627
0
0
0
0
0
0.157542
0
0
0
0
0
0.038462
1
0.038462
false
0
0.153846
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d513f0b0b3497bbfb312c51c5f45c22bee83ba8e
470
py
Python
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
4
2019-04-24T16:38:57.000Z
2021-12-28T20:38:08.000Z
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
3
2021-06-02T04:06:33.000Z
2021-11-02T01:47:20.000Z
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
1
2020-08-13T04:42:05.000Z
2020-08-13T04:42:05.000Z
def cost_fun_generator(avoidCurbs=True, uphill=0.083, downhill=-0.1): def cost_fun(u, v, d): # No curb ramps? No route if d["footway"] == "crossing" and not d["curbramps"]: return None # Too steep? if d["incline"] is not None: if d["incline"] > uphill or d["in...
29.375
69
0.534043
64
470
3.859375
0.5
0.048583
0.080972
0
0
0
0
0
0
0
0
0.022654
0.342553
470
15
70
31.333333
0.776699
0.07234
0
0.181818
0
0
0.13164
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1d108170bdbd66d850dc91b904933812c15cd5c8
6,823
py
Python
checkers/gallery/checker.py
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
2
2020-04-22T19:36:16.000Z
2020-09-16T07:45:54.000Z
checkers/gallery/checker.py
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2021-03-31T19:21:51.000Z
2021-06-08T20:31:48.000Z
checkers/gallery/checker.py
leetchicken/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2019-10-26T00:25:03.000Z
2019-11-23T21:10:10.000Z
#!/usr/bin/env python3 import sys import requests import hashlib import random import re import functools import time import json import pathlib import base64 import traceback import PIL.Image from io import BytesIO from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA25...
28.668067
100
0.651913
993
6,823
4.331319
0.189325
0.034876
0.021158
0.022088
0.331086
0.253429
0.215531
0.174378
0.142292
0.13369
0
0.013016
0.223069
6,823
237
101
28.78903
0.79834
0.008647
0
0.252809
0
0
0.159
0.009614
0
0
0
0.004219
0
1
0.073034
false
0
0.106742
0
0.269663
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1d10c3897441cb862e73f1ef89704a35b6ac4a35
1,569
py
Python
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-19T23:44:56.000Z
2019-03-19T23:44:56.000Z
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-20T14:57:22.000Z
2019-03-20T15:01:55.000Z
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
null
null
null
import pytest from plenum.common.throughput_measurements import RevivalSpikeResistantEMAThroughputMeasurement from plenum.test.helper import get_key_from_req nodeCount = 7 @pytest.fixture(scope="module") def tconf(tconf): old_throughput_measurement_class = tconf.throughput_measurement_class old_throughput_m...
36.488372
95
0.753346
160
1,569
7.14375
0.3625
0.220472
0.181977
0.139983
0.278215
0.278215
0.148731
0
0
0
0
0.00232
0.175908
1,569
42
96
37.357143
0.881671
0
0
0.064516
0
0
0.034417
0
0
0
0
0
0.096774
1
0.096774
false
0
0.096774
0
0.193548
0.032258
0
0
0
null
1
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
2
1d10fc4b27b6136c47a7bdee2bd28cad40658f1e
1,929
py
Python
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
1
2020-10-09T09:11:46.000Z
2020-10-09T09:11:46.000Z
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
48
2018-04-09T01:30:31.000Z
2021-06-13T03:25:59.000Z
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import Ridge from oolearning.model_wrappers.HyperParamsBase import HyperParamsBase from oolearning.model_wrappers.ModelExceptions import MissingValueError from oolearning.model_wrappers.ModelWrapperBase import ModelWrapperBase from oolearning.model_wrapp...
32.694915
109
0.67548
210
1,929
5.952381
0.447619
0.048
0.0608
0.0864
0
0
0
0
0
0
0
0.003434
0.245205
1,929
58
110
33.258621
0.855082
0.12649
0
0.111111
0
0
0.011522
0
0
0
0
0
0.055556
1
0.111111
false
0
0.222222
0.027778
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
0
0
0
0
1
0
1d11f267496db1cb326dde77871d125bf62ade88
190
py
Python
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) b = list(map(int, input().split())) ans = [0] * n ans[0] = b[0] ans[1] = b[0] for i in range(1, n - 1): ans[i] = min(ans[i], b[i]) ans[i + 1] = b[i] print(sum(ans))
19
35
0.484211
42
190
2.190476
0.404762
0.130435
0
0
0
0
0
0
0
0
0
0.054422
0.226316
190
9
36
21.111111
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1d134a402fc45bc125b2b0be81bcc29b582b22ee
59
py
Python
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
from google_spreadsheets import GoogleSpreadsheetsClient
14.75
56
0.898305
5
59
10.4
1
0
0
0
0
0
0
0
0
0
0
0
0.101695
59
3
57
19.666667
0.981132
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
1d13ffdd92866e672e85c762c9e0524a6d8a8a21
801
py
Python
orcamentos/crm/tests/_test_model_seller.py
rg3915/orcamentos
5cd8c4f6cbeabeb5e069c58f583c38f44c3af99a
[ "MIT" ]
94
2016-01-27T14:35:05.000Z
2022-02-22T00:01:02.000Z
orcamentos/crm/tests/_test_model_seller.py
pliniocefet/orcamentos
b84eaad7dbc49cb3ad13e037b12074b466b70a70
[ "MIT" ]
96
2015-07-31T21:50:28.000Z
2021-06-24T15:31:10.000Z
orcamentos/crm/tests/_test_model_seller.py
pliniocefet/orcamentos
b84eaad7dbc49cb3ad13e037b12074b466b70a70
[ "MIT" ]
43
2015-07-28T12:09:48.000Z
2021-08-06T18:20:55.000Z
from django.test import TestCase from django.contrib.auth.models import User from orcamentos.crm.models import Employee, Occupation from .data import USER_DICT # , SELLER_DICT # class SellerTest(TestCase): # def setUp(self): # self.user = User.objects.create(**USER_DICT) # self.occupation = Occu...
33.375
81
0.684145
96
801
5.572917
0.375
0.059813
0
0
0
0
0
0
0
0
0
0
0.191011
801
23
82
34.826087
0.825617
0.755306
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
1d15e7acb91ccd3de12d84ce5f5173fde7c621a7
73
py
Python
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
null
null
null
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
null
null
null
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
1
2022-03-23T04:48:51.000Z
2022-03-23T04:48:51.000Z
import os POCAPI_URL = os.getenv("POCAPI_URL", "http://localhost:6666")
18.25
61
0.726027
11
73
4.636364
0.727273
0.352941
0
0
0
0
0
0
0
0
0
0.060606
0.09589
73
3
62
24.333333
0.712121
0
0
0
0
0
0.424658
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
1d164d92f8df106a33e5db8f4a80c18b71d6631d
692
py
Python
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ from typing import List from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def levelOrderBottom(self,...
23.862069
69
0.559249
85
692
4.505882
0.470588
0.05483
0.046997
0
0
0
0
0
0
0
0
0.010616
0.319364
692
28
70
24.714286
0.802548
0.096821
0
0
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1d1678d331abf9de5f08c748bfc58f17ba31170e
51
py
Python
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
1
2018-07-02T03:37:03.000Z
2018-07-02T03:37:03.000Z
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
a_set = {'red', 'blue', 'green'} print(type(a_set))
25.5
32
0.607843
9
51
3.222222
0.777778
0.275862
0
0
0
0
0
0
0
0
0
0
0.098039
51
2
33
25.5
0.630435
0
0
0
0
0
0.230769
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
1d187bbc7e5fa4b6e07de45ddf33ac96bec48eae
393
py
Python
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
null
null
null
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
null
null
null
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
1
2021-08-09T00:55:17.000Z
2021-08-09T00:55:17.000Z
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from .views import SalesViewSet urlpatterns = [ path('', SalesViewSet.as_view({'get': 'listcode'})), path('forecast/', SalesViewSet.as_view({'get': 'forecast'})), path('product_factor/', SalesViewSet.as_view({'get': ...
35.727273
77
0.745547
45
393
6.288889
0.444444
0.14841
0.190813
0.222615
0
0
0
0
0
0
0
0
0.104326
393
11
78
35.727273
0.803977
0
0
0
0
0
0.159898
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1d19cd709d43bcc2b8f554495c58d5b7a1afce89
5,453
py
Python
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
1
2021-11-15T17:32:11.000Z
2021-11-15T17:32:11.000Z
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
null
null
null
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
1
2021-07-03T13:19:12.000Z
2021-07-03T13:19:12.000Z
""" Note: This is a updated version from my previous code, for the target network, I use moving average to soft replace target parameters instead using assign function. By doing this, it has 20% speed up on my machine (CPU). Deep Deterministic Policy Gradient (DDPG), Reinforcement Learning. DDPG is Actor Critic ba...
42.271318
113
0.61269
792
5,453
4.039141
0.275253
0.035949
0.020006
0.032823
0.331354
0.293842
0.203501
0.168178
0.168178
0.133792
0
0.019509
0.238584
5,453
128
114
42.601563
0.750963
0.191271
0
0.051282
0
0
0.01334
0
0
0
0
0
0
1
0.115385
false
0
0.025641
0.012821
0.205128
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0