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
27893fac576198dea3db960f02abcae0e0707306
1,237
py
Python
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
'''There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and its just previous consecutive ‘O’s only when the answer is correct. For example, the score of the 10th problem is 3 t...
49.48
114
0.720291
235
1,237
3.765957
0.395745
0.063277
0.045198
0.031638
0
0
0
0
0
0
0
0.02145
0.208569
1,237
25
115
49.48
0.882533
0.818108
0
0
0
0
0.009174
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
278941aab99fac086f38eb414bccf8c30fd00617
328
py
Python
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
12
2017-12-24T13:58:17.000Z
2021-04-06T16:21:00.000Z
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
null
null
null
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
1
2021-10-17T14:45:44.000Z
2021-10-17T14:45:44.000Z
# -*- coding: utf-8 -*- from app import celery, app @celery.task() def add_together(a, b): app.logger.info('hello world') return a + b # from common.extensions import celery # from flask import current_app # # # @celery.task() # def add_together(a, b): # current_app.logger.info('hello world') # retur...
18.222222
44
0.652439
49
328
4.285714
0.44898
0.038095
0.12381
0.152381
0.571429
0.571429
0.571429
0.571429
0
0
0
0.003802
0.198171
328
17
45
19.294118
0.794677
0.570122
0
0
0
0
0.083969
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
2793c0f51d8fcdcbec81fb953d41e2dc42b499c2
2,927
py
Python
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
3
2019-06-18T18:21:05.000Z
2021-07-15T06:28:25.000Z
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
4
2019-01-30T11:31:13.000Z
2019-03-06T12:36:54.000Z
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
1
2019-08-12T11:31:23.000Z
2019-08-12T11:31:23.000Z
import socket class peer: __db = None __s = socket __protocol = '' __port = 5060 __s_address = () __buff_size = 4096 def __init__(self, protocol='TCP', port=5060, buff_size=4096): self.__set_protocol(protocol) self.__set_port(port) self.__set_buff_size(buff_size)...
28.696078
75
0.60574
351
2,927
4.595442
0.159544
0.046497
0.034098
0.037198
0.282703
0.231866
0.231866
0.231866
0.185989
0.137632
0
0.011036
0.288008
2,927
101
76
28.980198
0.762956
0
0
0.217949
0
0
0.024599
0
0
0
0
0
0
1
0.24359
false
0
0.012821
0.051282
0.461538
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
1
0
0
0
0
0
0
0
1
279b274296a91748dfbdabae0134ce96287057e9
540
py
Python
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
1
2018-06-13T00:38:53.000Z
2018-06-13T00:38:53.000Z
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
null
null
null
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- SECRET_KEY = 'some secret key' TEMPLATES_AUTO_RELOAD = True PROJECT_NAME = 'SpiderManage' # Redis Config REDIS_HOST = '120.25.227.8' REDIS_PORT = 6379 REDIS_PASSWORD = 'xuxinredis' # SQLite # SQLALCHEMY_DATABASE_URI = 'sqlite:///C:/Users/sheep3/workplace/SpiderManage/data.d...
30
93
0.777778
75
540
5.346667
0.653333
0.044888
0.0399
0.044888
0
0
0
0
0
0
0
0.059305
0.094444
540
18
94
30
0.760736
0.351852
0
0
0
0.111111
0.331395
0.188953
0
0
0
0
0
1
0
false
0.111111
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
27a61a2b957091652c5a6b1dfcf40f524e7bd75a
14,349
py
Python
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
import requests import re from time import sleep from datetime import datetime import shutil import elasticsearch2 from elasticsearch_dsl import Search, Q from collections import OrderedDict from sqlalchemy import create_engine from subprocess import Popen, PIPE, STDOUT import shlex import glob import csv # from api...
45.122642
160
0.566451
1,604
14,349
4.968204
0.243766
0.030117
0.012423
0.023717
0.318359
0.239679
0.185845
0.15347
0.105534
0.105534
0
0.016535
0.312983
14,349
317
161
45.264984
0.791844
0.074779
0
0.192982
0
0.004386
0.267295
0.062338
0
0
0
0
0
0
null
null
0.035088
0.065789
null
null
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
27a686fae11eeb59ce17fe8f4cf6412be0900891
8,180
py
Python
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
11
2021-10-01T13:04:44.000Z
2022-03-31T19:19:48.000Z
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
7
2021-10-01T14:00:20.000Z
2022-03-21T12:29:24.000Z
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
4
2022-01-07T13:47:39.000Z
2022-02-22T21:51:28.000Z
import enum import re import lxml.html from typing import Any, Dict, List, Union, Optional from typing import TYPE_CHECKING if TYPE_CHECKING: from .atserver import AternosServer class ServerOpts(enum.Enum): """server.options file""" players = 'max-players' gm = 'gamemode' difficulty = 'difficult...
24.638554
82
0.667604
985
8,180
5.477157
0.293401
0.011863
0.014829
0.027804
0.256905
0.217794
0.183689
0.098795
0.082113
0.054866
0
0.002746
0.198655
8,180
331
83
24.712991
0.82029
0.24132
0
0.083799
0
0
0.297516
0.074863
0
0
0
0
0
1
0.072626
false
0
0.03352
0
0.519553
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
27b2e2a025ad448d149dbcc0d2fb399829c3c2bf
370
py
Python
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
4
2019-08-23T10:55:48.000Z
2021-06-24T01:00:12.000Z
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
null
null
null
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
5
2019-03-25T11:12:00.000Z
2021-12-23T03:01:14.000Z
from jnpr.junos import Device from jnpr.junos.utils.config import Config def clean_routing_table(): device=Device (host='100.123.1.3', user='jcluser', password='Juniper!1') device.open() cfg=Config(device, mode='private') cfg.load(path='junos_configuration/clean_routes.conf', format='text') cfg.com...
24.666667
76
0.716216
52
370
4.980769
0.634615
0.061776
0.100386
0
0
0
0
0
0
0
0
0.028125
0.135135
370
14
77
26.428571
0.78125
0
0
0
0
0
0.203252
0.100271
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
27b8c7ca0cbfe891ed4189a0d771be178c3ebb62
556
py
Python
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import pandas as pd import numpy as np df = pd.read_csv('poblacion.csv') pd.options.display.float_format = '{:,.1f}'.format df = pd.read_csv('poblacion.csv') df['year'] = pd.Categorical(df['year'].apply(str)) idx_filtro = df['Country'].isin(['Mexico','Panama']) df_filtro_country = df[idx_filtro] df_filtro_country =df...
30.888889
102
0.733813
84
556
4.642857
0.47619
0.102564
0.192308
0.05641
0.117949
0.117949
0
0
0
0
0
0.017408
0.070144
556
17
103
32.705882
0.736944
0
0
0.166667
0
0
0.185921
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
27bbbbc489c4d13faa511e2c2877df5e0ce8a2dd
431
py
Python
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
2
2020-08-27T21:02:54.000Z
2020-08-27T21:03:44.000Z
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 12:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0004_product_product_image'), ] operations = [ migrations.AddField( model_name='product', name='discounted_p...
21.55
50
0.605568
45
431
5.666667
0.8
0
0
0
0
0
0
0
0
0
0
0.061889
0.287703
431
19
51
22.684211
0.76873
0.104408
0
0
1
0
0.138021
0.067708
0
0
0
0
0
1
0
false
0
0.076923
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
27c8bd46f163cd7e8d07a019d3a50bfc0ca3baa3
458
py
Python
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2021-03-20 12:41 import phone_field.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0022_auto_20210215_1053'), ] operations = [ migrations.AlterField( model_name='warehouse', ...
22.9
104
0.637555
53
458
5.358491
0.754717
0.105634
0.112676
0
0
0
0
0
0
0
0
0.09621
0.251092
458
19
105
24.105263
0.731778
0.098253
0
0
1
0
0.131387
0.055961
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
27d5437b9102d270c520f2be5bfb611ac3f22737
612
py
Python
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
from appium import webdriver from .utils import PATH desired_caps = dict( platformName='Android', platformVersion='10', automationName='uiautomator2', deviceName='Android Emulator', app=PATH('app/ApiDemos-debug.apk.zip') ) driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) ...
19.741935
73
0.668301
72
612
5.555556
0.652778
0.055
0.055
0
0
0
0
0
0
0
0
0.014706
0.222222
612
30
74
20.4
0.82563
0
0
0.095238
0
0
0.160131
0.042484
0
0
0
0
0
1
0.190476
false
0.095238
0.095238
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
1
0
0
0
0
0
1
27d6cff2a09a34968b82d0b674f282b1d2271a34
9,721
py
Python
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
import re #Regular expression library from django import forms from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.template import RequestContext from django.contrib.auth.forms import AuthenticationForm from catalogue.models import Submitted from models import...
47.419512
110
0.632342
1,252
9,721
4.757189
0.160543
0.060443
0.051713
0.061115
0.564473
0.497482
0.424614
0.386501
0.293989
0.231195
0
0.013141
0.217159
9,721
204
111
47.651961
0.769514
0.036107
0
0.265537
0
0
0.226734
0
0
0
0
0
0
1
0.022599
false
0.096045
0.062147
0
0.276836
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
27e1b8a412e18403318f1bb9f3adb67ae8c94d10
805
py
Python
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
2
2022-01-19T02:33:11.000Z
2022-01-19T02:33:13.000Z
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
import sys def show_balance(balance): balance = '' print(" Has logged in!") print(" The current balance is " + str(balance)) def deposit(balance): print("Your current balance is: " + str(balance)) while True: deposit_amount = float(input("Enter deposit amount: ")) balance = f...
23.676471
70
0.607453
91
805
5.318681
0.307692
0.092975
0.123967
0.196281
0.487603
0.301653
0.301653
0.157025
0
0
0
0
0.273292
805
33
71
24.393939
0.82735
0
0
0.25
0
0
0.223881
0
0
0
0
0
0
1
0.166667
false
0
0.041667
0
0.291667
0.291667
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
27e21695cafe73f0d93a69b097c0c530103f4723
2,098
py
Python
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from ricecooker.classes import nodes class WHOPageScraperBase: def __init__(self, url, file_on_disk): self.url = url self.file_on_disk = file_on_disk def node_for_text_section(self, content): # print("content = {}".format(content.prettify())) pas...
32.78125
86
0.597712
244
2,098
4.971311
0.377049
0.024732
0.04122
0.034625
0.039571
0
0
0
0
0
0
0.001361
0.299333
2,098
63
87
33.301587
0.82381
0.183031
0
0.128205
0
0
0.066746
0
0
0
0
0
0
1
0.153846
false
0.076923
0.051282
0
0.282051
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
1
0
0
0
0
0
1
27e6185cd1321c58ae5c06b94cfd558705c422cd
365
py
Python
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2018-03-26T08:54:50.000Z
2021-07-28T13:34:07.000Z
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
null
null
null
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2017-10-26T12:59:39.000Z
2021-07-12T08:40:56.000Z
from sys import argv def make_new_reference_files(filename, sub1, sub2, divider=">chr9"): genomes = open(filename).read().split(divider) f = open(sub1, "w") f.write(genomes[0]) f.close() f = open(sub2, "w") f.write(">chr9"+genomes[1]) f.close() if __name__=="__main__": make_new_referen...
26.071429
68
0.635616
56
365
3.892857
0.535714
0.06422
0.146789
0.192661
0
0
0
0
0
0
0
0.039867
0.175342
365
13
69
28.076923
0.684385
0
0
0.181818
0
0
0.054795
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
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
27e766575366ccd5d46f9e7a446bbcc0f07d388e
1,323
py
Python
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
5
2017-03-02T15:57:44.000Z
2020-02-14T05:17:28.000Z
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
null
null
null
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
3
2017-05-20T11:23:07.000Z
2022-01-13T12:00:57.000Z
"""Module which defines collaborating app ids. This module is used by: settings.py scripts/deploy.sh """ import os # List of (playground appid, mimic app id, playground app id alias) _APP_ID_TUPLES = [ # production environment ('try-appengine', 'shared-playground', 'cloud-playground'), # developmen...
25.442308
67
0.708995
195
1,323
4.574359
0.420513
0.112108
0.084081
0.036996
0.180493
0.14574
0.089686
0.089686
0
0
0
0.004604
0.179138
1,323
51
68
25.941176
0.816759
0.262283
0
0
0
0
0.184769
0
0
0
0
0
0.047619
0
null
null
0
0.047619
null
null
0.047619
0
0
0
null
0
0
0
0
0
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
27ea8174cb81713dd5c70d96704d5a2c63cec32e
325
py
Python
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
from sys import modules from importlib import import_module modules['server'] = import_module('src') from werkzeug.serving import run_simple from server.app import App from server.mode import Mode if __name__=='__main__': app = App(mode=Mode.Development) run_simple('localhost', 8000, app, use_reloader=Tr...
27.083333
55
0.76
46
325
5.086957
0.5
0.102564
0
0
0
0
0
0
0
0
0
0.01444
0.147692
325
11
56
29.545455
0.830325
0
0
0
0
0
0.082803
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
27f5b22f4011155a67ce267a26bf5d2d27c8298e
6,955
py
Python
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
6
2018-06-06T08:37:53.000Z
2020-06-01T13:13:13.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
30
2018-06-08T02:47:18.000Z
2018-07-25T07:07:07.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
5
2018-06-06T08:37:55.000Z
2021-01-07T09:15:15.000Z
from IPython.core.magic import Magics, magics_class, line_cell_magic from sys import stdout from os import linesep from os.path import join, expanduser from adlmagics.version import adlmagics_version from adlmagics.converters.dataframe_converter import DataFrameConverter from adlmagics.utils.json_file_persister impo...
48.298611
168
0.78404
790
6,955
6.439241
0.159494
0.079222
0.05976
0.022607
0.23963
0.123845
0.062512
0.046786
0.046786
0.026342
0
0.000337
0.146801
6,955
144
169
48.298611
0.856926
0
0
0
0
0
0.028465
0
0
0
0
0
0
1
0.083333
false
0.009259
0.324074
0
0.425926
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
7e03585ae9ededa10d0e3ad01e0e054a8d2b1e4e
1,998
py
Python
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
import numpy as np import fast_carpenter.summary.binning_config as mgr from . import dummy_binning_descriptions as binning def test_create_one_region(): cfg = {"_" + k: v for k, v in binning.bins_nmuon.items()} _in, _out, _bins, _index = mgr.create_one_dimension("test_create_one_region", **cfg) assert _in...
33.864407
116
0.68018
292
1,998
4.304795
0.208904
0.095465
0.100239
0.070008
0.575975
0.499602
0.413683
0.35004
0.35004
0.295147
0
0.015347
0.184685
1,998
58
117
34.448276
0.756292
0
0
0.217391
0
0
0.134134
0.075075
0
0
0
0
0.565217
1
0.130435
false
0
0.065217
0
0.195652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7e09cc367a70ac9496d060fdad8e3eb6e83f2472
141
py
Python
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
input() S=input() dot=S.count(".") ans=dot count=0 for s in S: if s=="#":count+=1 else:dot-=1 ans=(min(ans,count+dot)) print(ans)
14.1
28
0.574468
28
141
2.892857
0.464286
0.148148
0
0
0
0
0
0
0
0
0
0.025862
0.177305
141
10
29
14.1
0.672414
0
0
0
0
0
0.014085
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e0e399837934c037868f72f1f2ece1fe8884d6e
328
py
Python
blog/urls.py
Halo-Developers/Halo-Learn
4c8f9e395c0145df39fa3333fefa23d02a370688
[ "MIT" ]
1
2021-09-23T16:02:51.000Z
2021-09-23T16:02:51.000Z
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
null
null
null
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
2
2021-09-20T09:50:45.000Z
2022-02-20T06:42:42.000Z
from django.urls import path from . import views app_name = 'blog' urlpatterns = [ path('', views.post_list, name='post_list'), path('<slug:post>/',views.post_detail,name="post_detail"), path('comment/reply/', views.reply_page, name="reply"), path('tag/<slug:tag_slug>/',views.post_list, name='post_tag...
27.333333
68
0.67378
47
328
4.510638
0.382979
0.127358
0.122642
0.160377
0.198113
0
0
0
0
0
0
0
0.134146
328
11
69
29.818182
0.746479
0
0
0
0
0
0.253049
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e11a4d77fb343f77a786063eff503d5200a6c2d
1,313
py
Python
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
6
2018-06-13T06:48:42.000Z
2020-11-25T10:48:13.000Z
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
class Solution: def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: tree, words, len_w = collections.defaultdict(set), set( wordList ), len(beginWord) if endWord not in words: return [] found, q, nextq = False, {beginWord...
35.486486
96
0.393755
141
1,313
3.64539
0.347518
0.038911
0.031128
0.046693
0
0
0
0
0
0
0
0.001538
0.504951
1,313
36
97
36.472222
0.789231
0.061691
0
0.068966
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
fd684e3bf1de0c4b9c2f1d5a15a6a2d42e862075
286
py
Python
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.unsigned_short.schema_instance.nistschema_sv_iv_list_unsigned_short_min_length_2_xsd.nistschema_sv_iv_list_unsigned_short_min_length_2 import NistschemaSvIvListUnsignedShortMinLength2 __all__ = [ "NistschemaSvIvListUnsignedShortMinLength2", ]
47.666667
221
0.905594
34
286
6.882353
0.617647
0.166667
0.119658
0.153846
0.350427
0.350427
0.350427
0.350427
0.350427
0
0
0.014706
0.048951
286
5
222
57.2
0.845588
0
0
0
0
0
0.143357
0.143357
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
fd6c34c3adb6f440619a388c9b66cf0b7a99a5e9
1,027
py
Python
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
4
2016-01-10T15:58:48.000Z
2019-08-10T23:12:31.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
1
2021-03-31T18:46:14.000Z
2021-03-31T18:46:14.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
5
2016-03-22T00:58:33.000Z
2017-09-14T12:43:54.000Z
# -*- coding: utf-8 -*- from checker.backends import BaseBackend from checker import logger log = logger.getLogger(__name__) class PagureBackend(BaseBackend): """for projects hosted on pagure.io""" name = 'Pagure' domain = 'pagure.io' example = 'https://pagure.io/pagure' def __init__(self, url...
27.756757
77
0.559883
125
1,027
4.44
0.528
0.063063
0.03964
0.046847
0
0
0
0
0
0
0
0.009272
0.264849
1,027
36
78
28.527778
0.725828
0.053554
0
0
0
0
0.214286
0.024845
0
0
0
0
0
1
0.16
false
0
0.08
0.04
0.56
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
fd6d8440e80ddfffc2b7c87e874259a2676fb497
2,184
py
Python
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
5
2015-06-27T09:36:26.000Z
2018-05-05T02:43:43.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
4
2018-06-07T15:19:33.000Z
2020-02-10T12:15:11.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
2
2019-08-30T07:27:05.000Z
2020-02-12T08:03:24.000Z
import os import re from time import time from vial import vfunc, vim from vial.fsearch import get_files from vial.utils import get_projects, redraw MAX_FILESIZE = 10 * 1024 * 1024 def grep(query): matcher = re.compile(re.escape(query)) t = time() - 1 result = [] for r in get_projects(): f...
24.818182
61
0.431777
216
2,184
4.333333
0.458333
0.025641
0.014957
0.036325
0.038462
0
0
0
0
0
0
0.023868
0.443681
2,184
87
62
25.103448
0.746502
0
0
0.102941
0
0
0.061355
0
0
0
0
0
0
0
null
null
0
0.088235
null
null
0.044118
0
0
0
null
0
0
0
0
0
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
fd6f10a9e5cd95371737b186d651e8e464b2660c
389
py
Python
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
42
2018-01-18T14:50:05.000Z
2022-03-24T18:34:19.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
14
2018-12-05T21:39:23.000Z
2022-02-27T06:43:48.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
5
2018-01-18T16:32:20.000Z
2021-06-07T10:15:18.000Z
from django.conf.urls import include, url from rest_framework.documentation import include_docs_urls from examples.rest import router from .views import index urlpatterns = [ url(r'^$', index, name='index'), url(r'^', include(router.urls)), url(r'^dynamicforms/', include('dynamicforms.urls')), url(r'^...
29.923077
77
0.722365
52
389
5.307692
0.423077
0.057971
0.108696
0
0
0
0
0
0
0
0
0
0.128535
389
12
78
32.416667
0.814159
0
0
0
0
0
0.190231
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fd6fc2f8e9fb0cf4963f53e0dd218bc472fd9daa
4,572
py
Python
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
''' Mostly these are internal imports related to django and rest_framework. The os and io imports are for creating files, paths and parsing bytes objects respectively ''' from django.db import models from django.contrib.auth.models import User from rest_framework.renderers import JSONRenderer from rest_framework.par...
41.563636
227
0.649606
548
4,572
5.25365
0.312044
0.04446
0.03404
0.025009
0.255297
0.208058
0.115318
0.115318
0.095867
0.064606
0
0.004866
0.28084
4,572
109
228
41.944954
0.870742
0.188758
0
0.323077
0
0
0.017429
0
0
0
0
0
0
1
0.061538
false
0.138462
0.107692
0
0.384615
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fd71ae1315e427ea9c9874263b95024d2ffb8696
1,852
py
Python
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import User, UserProfile, Post, News, Video from datetime import datetime class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('address', 'country', 'city', 'zip', 'photo') class UserSerializer(...
31.389831
83
0.665227
193
1,852
6.212435
0.295337
0.073395
0.058382
0.075063
0.165972
0.078399
0.078399
0.078399
0
0
0
0
0.224622
1,852
59
84
31.389831
0.834958
0
0
0.222222
0
0
0.086346
0
0
0
0
0
0
1
0.044444
false
0.088889
0.066667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fd76b6a6e3bed41850763cc3f44afdab15844d51
427
py
Python
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
1
2020-08-13T05:31:01.000Z
2020-08-13T05:31:01.000Z
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
import environs env = environs.Env() env.read_env() from wsgi_microservice_middleware.cors import CORSMiddleware from wsgi_microservice_middleware.request_id import ( RequestIdFilter, RequestIdMiddleware, current_request_id, RequestIdJsonLogFormatter ) __all__ = [ 'CORSMiddleware', 'Re...
17.791667
60
0.744731
36
427
8.444444
0.472222
0.088816
0.131579
0.197368
0.493421
0.493421
0
0
0
0
0
0
0.18267
427
23
61
18.565217
0.87106
0
0
0
0
0
0.213615
0.058685
0
0
0
0
0
1
0
false
0
0.176471
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
fd77738934a082ed69675adc328a1ec23a42bd8b
686
py
Python
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
1
2021-03-24T02:21:03.000Z
2021-03-24T02:21:03.000Z
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
import turtle as t import random COLORS = ["red", "orange", "yellow", "green", "blue", "purple"] STARTING_MOVE_DISTANCE = 5 MOVE_INCREMENT = 1 def next_level(): global STARTING_MOVE_DISTANCE STARTING_MOVE_DISTANCE += MOVE_INCREMENT class CarManager(t.Turtle): def __init__(self): super().__init...
23.655172
63
0.644315
89
686
4.719101
0.550562
0.114286
0.190476
0
0
0
0
0
0
0
0
0.037807
0.228863
686
28
64
24.5
0.756144
0
0
0
0
0
0.052478
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.285714
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
fd7a3d5f8bd77ce667a1424c233439cb51d4d806
2,032
py
Python
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
""" Tissue Corrections ================== """ ################################################################################################### # .. _tutorial_removing_autoflourescence: # # Removing autofluorescence # ========================= # # In addition to the bright spots (signal) that we want to detect, micr...
35.034483
102
0.599902
238
2,032
5.037815
0.542017
0.017515
0.031693
0.016681
0.055046
0.055046
0.055046
0.055046
0.055046
0
0
0.012141
0.108268
2,032
57
103
35.649123
0.649559
0.413386
0
0
0
0
0.03776
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
fd816f646c55f1654d9547e1f480c4843279f30e
707
py
Python
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ create on 2019-03-20 04:17 author @lilia """ from sklearn.neighbors import KNeighborsClassifier from analysis_llt.ml.cv.base import BaseCV class KNNCV(BaseCV): fit_predict_proba_ = False def __init__(self, n_neighbors=5, cv=None, random_state=None, verbose=0, **model_params): ...
29.458333
102
0.708628
97
707
4.886598
0.556701
0.105485
0.088608
0
0
0
0
0
0
0
0
0.025952
0.182461
707
23
103
30.73913
0.794118
0.090523
0
0
0
0
0.083465
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fd83d8e2ff034305d143f2f77d3ed14a017cf93e
5,256
py
Python
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
1
2019-06-14T20:34:19.000Z
2019-06-14T20:34:19.000Z
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
3
2020-02-11T23:42:20.000Z
2020-06-25T17:35:48.000Z
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from apps.core.models import BaseModel from apps.core.utils import HASH_MAX_LENGTH, create_hash, truncate from django.utils.encoding import python_2_unicode_compat...
30.917647
145
0.68398
635
5,256
5.475591
0.228346
0.025884
0.041415
0.05522
0.382226
0.273799
0.191544
0.141501
0.117918
0.084556
0
0.00763
0.202055
5,256
169
146
31.100592
0.821412
0.00742
0
0.21374
0
0
0.041811
0.004219
0
0
0
0
0
1
0.137405
false
0.007634
0.076336
0.076336
0.534351
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
fd88d6da1a9e31351274cdc8c9d06c97bd2fa421
884
py
Python
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
9
2019-03-11T11:02:12.000Z
2022-03-10T12:53:25.000Z
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
1
2021-01-06T20:18:33.000Z
2021-01-06T20:19:53.000Z
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
3
2019-01-19T03:32:26.000Z
2020-11-29T18:15:57.000Z
from tensorflow.python.keras.layers import Layer from tensorflow.python.keras import backend as K class LayerNorm(Layer): def __init__(self, axis=-1, eps=1e-6, **kwargs): self.axis = axis self.eps = eps super(LayerNorm, self).__init__(**kwargs) def build(self, input_shape): i...
34
90
0.645928
123
884
4.479675
0.357724
0.072595
0.07078
0.090744
0.225045
0.225045
0.134301
0
0
0
0
0.004348
0.219457
884
25
91
35.36
0.794203
0
0
0
0
0
0.020362
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0.052632
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fd89a08e7b302e42c7342a9d210047fac1b9c3fb
3,399
py
Python
hasdrubal/visitors/type_var_resolver.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
2
2021-06-25T15:46:16.000Z
2022-02-20T22:04:36.000Z
hasdrubal/visitors/type_var_resolver.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
42
2021-07-06T05:38:23.000Z
2022-03-04T18:09:30.000Z
hasdrubal/visitors/type_var_resolver.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
null
null
null
from typing import Container from asts.typed import Name as TypedName from asts import base, visitor, types_ as types PREDEFINED_TYPES: Container[str] = ( ",", "->", "Bool", "Float", "Int", "List", "String", "Unit", ) def resolve_type_vars( node: base.ASTNode, defined_types: ...
31.183486
86
0.626655
424
3,399
4.938679
0.268868
0.064947
0.045845
0.057307
0.138968
0.099809
0.043935
0.043935
0.043935
0.043935
0
0
0.259194
3,399
108
87
31.472222
0.831612
0.208591
0
0.169231
0
0
0.01121
0
0
0
0
0
0
1
0.169231
false
0
0.046154
0.107692
0.446154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
fd8bcae4d3f693f9766ffc4188aca7183ade4a41
980
py
Python
python/leetcode/401.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/401.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/401.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
# 二进制手表顶部有 4 个 LED 代表小时(0-11),底部的 6 个 LED 代表分钟(0-59)。 # # 每个 LED 代表一个 0 或 1,最低位在右侧。 # # # # 例如,上面的二进制手表读取 “3:25”。 # # 给定一个非负整数 n 代表当前 LED 亮着的数量,返回所有可能的时间。 # # 案例: # # 输入: n = 1 # 返回: ["1:00", "2:00", "4:00", "8:00", "0:01", "0:02", "0:04", "0:08", "0:16", "0:32"] #   # # 注意事项: # # 输出的顺序没有要求。 # 小时不会以零开头,比如 “01:00” 是不允许的...
19.6
107
0.542857
156
980
3.358974
0.544872
0.015267
0.057252
0.061069
0.064886
0
0
0
0
0
0
0.093407
0.257143
980
49
108
20
0.626374
0.445918
0
0
0
0
0.015534
0
0
0
0
0
0
1
0.125
false
0.0625
0.0625
0
0.5
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
1
0
0
0
0
0
1
fd8c2c7eeb82fbf804fe620863dfe2ae2700ad4d
337
py
Python
setup.py
xoolive/cartotools
2d6217fde9dadcdb860603cd4b33814b99ae451e
[ "MIT" ]
3
2018-01-09T10:53:24.000Z
2020-06-04T16:04:52.000Z
setup.py
xoolive/cartotools
2d6217fde9dadcdb860603cd4b33814b99ae451e
[ "MIT" ]
1
2018-12-16T13:49:06.000Z
2019-02-19T20:23:19.000Z
setup.py
xoolive/cartotools
2d6217fde9dadcdb860603cd4b33814b99ae451e
[ "MIT" ]
1
2018-01-09T11:00:39.000Z
2018-01-09T11:00:39.000Z
from setuptools import setup setup( name="cartotools", version="1.2.1", description="Making cartopy suit my needs", license="MIT", packages=[ "cartotools", "cartotools.crs", "cartotools.img_tiles", "cartotools.osm", ], author="Xavier Olive", install_requi...
19.823529
47
0.596439
34
337
5.852941
0.823529
0
0
0
0
0
0
0
0
0
0
0.012048
0.261128
337
16
48
21.0625
0.787149
0
0
0
0
0
0.362018
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
fd8e56403a239049d047cb2ae7cdbf57d5c4d0b6
3,144
py
Python
CLE/Module_DeploymentMonitoring/urls.py
CherBoon/Cloudtopus
41e4b3743d8f5f988373d14937a1ed8dbdf92afb
[ "MIT" ]
3
2019-03-04T02:55:25.000Z
2021-02-13T09:00:52.000Z
CLE/Module_DeploymentMonitoring/urls.py
MartinTeo/Cloudtopus
ebcc57cdf10ca2b73343f03abb33a12ab9c6edef
[ "MIT" ]
6
2019-02-28T08:54:25.000Z
2022-03-02T14:57:04.000Z
CLE/Module_DeploymentMonitoring/urls.py
MartinTeo/Cloudtopus
ebcc57cdf10ca2b73343f03abb33a12ab9c6edef
[ "MIT" ]
2
2019-02-28T08:52:15.000Z
2019-09-24T18:32:01.000Z
from django.contrib import admin from Module_DeploymentMonitoring import views from django.urls import path,re_path urlpatterns = [ path('instructor/ITOperationsLab/setup/awskeys/',views.faculty_Setup_GetAWSKeys,name='itopslab_setup_AWSKeys'), path('instructor/ITOperationsLab/monitor/',views.faculty_Monitor_Ba...
89.828571
159
0.818702
375
3,144
6.586667
0.194667
0.090688
0.12915
0.137652
0.392713
0.306478
0.216599
0.159919
0.159919
0.109312
0
0.000336
0.054071
3,144
34
160
92.470588
0.830195
0.035941
0
0
0
0
0.533532
0.468781
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fd93406451b3b5dc2f87a2b2dbd3aa123abc1eb6
1,312
py
Python
mainapp/models/user_alert.py
cyroxx/meine-stadt-transparent
d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218
[ "MIT" ]
34
2017-10-04T14:20:41.000Z
2022-03-11T18:06:48.000Z
mainapp/models/user_alert.py
cyroxx/meine-stadt-transparent
d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218
[ "MIT" ]
588
2017-10-14T18:31:17.000Z
2022-03-16T13:00:30.000Z
mainapp/models/user_alert.py
codeformuenster/meine-stadt-transparent
1458bc6acad40183908e2b7cc98ef92165d1123a
[ "MIT" ]
11
2017-11-27T10:12:59.000Z
2022-02-09T10:27:11.000Z
from django.contrib.auth.models import User from django.db import models from mainapp.functions.search import params_to_search_string, search_string_to_params from mainapp.functions.search_notification_tools import ( params_to_human_string, params_are_equal, ) class UserAlert(models.Model): user = models...
32
85
0.717988
170
1,312
5.229412
0.352941
0.107987
0.050619
0.058493
0.053993
0
0
0
0
0
0
0
0.205793
1,312
40
86
32.8
0.853167
0
0
0.0625
0
0
0
0
0
0
0
0
0
1
0.15625
false
0
0.125
0.0625
0.625
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
fd9c0ebbfa6af60ce30b95d414b6de4fd9d68823
479
py
Python
api/utils/signal_hup.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/utils/signal_hup.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/utils/signal_hup.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
import signal import ConfigParser def get_config(): conf = ConfigParser.ConfigParser() conf.read("config.cfg") name = conf.get("test", "name") print(name) def update_config(signum, frame): print("update config") get_config() def ctrl_c(signum, frame): print("input ctrl c") exit(1) ...
14.96875
43
0.682672
65
479
4.923077
0.415385
0.15
0.1
0
0
0
0
0
0
0
0
0.002558
0.183716
479
31
44
15.451613
0.815857
0.029228
0
0.105263
0
0
0.116883
0
0
0
0
0
0
1
0.157895
false
0.052632
0.105263
0
0.263158
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
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
fd9d4c56c77881ca620b8d3d69d3ef8f45c56824
1,917
py
Python
core/views.py
georgeo23/fika_backend
bff76f3be8bb4af7499bb17127b96b4d4aca14e1
[ "MIT" ]
null
null
null
core/views.py
georgeo23/fika_backend
bff76f3be8bb4af7499bb17127b96b4d4aca14e1
[ "MIT" ]
null
null
null
core/views.py
georgeo23/fika_backend
bff76f3be8bb4af7499bb17127b96b4d4aca14e1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect from django.contrib.auth.models import User from rest_framework import permissions, status from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.views import APIView from .serialize...
32.491525
83
0.7277
212
1,917
6.471698
0.316038
0.071429
0.122449
0.081633
0.281341
0.234694
0.234694
0.234694
0.234694
0.234694
0
0.007742
0.191445
1,917
58
84
33.051724
0.877419
0.093897
0
0.324324
0
0
0.001748
0
0
0
0
0
0
1
0.135135
false
0
0.27027
0
0.675676
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
fd9ef32448c7395440ff57be12cda76c221914ac
12,319
py
Python
maccli/service/instance.py
manageacloud/manageacloud-cli
1b7d9d5239f9e51f97d0377d223db0f58ca0ca7c
[ "MIT" ]
6
2015-09-21T09:02:04.000Z
2017-02-08T23:40:18.000Z
maccli/service/instance.py
manageacloud/manageacloud-cli
1b7d9d5239f9e51f97d0377d223db0f58ca0ca7c
[ "MIT" ]
3
2015-11-03T01:44:29.000Z
2016-03-25T08:36:15.000Z
maccli/service/instance.py
manageacloud/manageacloud-cli
1b7d9d5239f9e51f97d0377d223db0f58ca0ca7c
[ "MIT" ]
4
2015-07-06T01:46:13.000Z
2019-01-10T23:08:19.000Z
import os import tempfile import time import urllib import urllib.parse import pexpect import maccli.dao.api_instance import maccli.helper.cmd import maccli.helper.simplecache import maccli.helper.metadata from maccli.helper.exception import InstanceDoesNotExistException, InstanceNotReadyException def list_instance...
29.973236
119
0.583976
1,277
12,319
5.51527
0.175411
0.031237
0.023853
0.039756
0.39983
0.348147
0.314213
0.302996
0.299872
0.250887
0
0.0038
0.316341
12,319
410
120
30.046341
0.832463
0.092215
0
0.403101
0
0
0.082694
0.006382
0
0
0
0
0
1
0.054264
false
0.085271
0.042636
0
0.151163
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
fdad3ab7cf57f8eea008adff9a2f0ea59bd908a4
1,553
py
Python
signup_instagram.py
cnfreitax/all_scrapers
35597cd3845c64b589cb2937ea7ea70ea4cd3286
[ "Apache-2.0" ]
null
null
null
signup_instagram.py
cnfreitax/all_scrapers
35597cd3845c64b589cb2937ea7ea70ea4cd3286
[ "Apache-2.0" ]
null
null
null
signup_instagram.py
cnfreitax/all_scrapers
35597cd3845c64b589cb2937ea7ea70ea4cd3286
[ "Apache-2.0" ]
null
null
null
""" use of script to create the login method use a fake account! """ from selenium import webdriver from time import sleep from bs4 import BeautifulSoup as bs class Login: def __init__(self, email, password, idPage): self.browser = webdriver.Chrome('/home/ekoar/chromedriver') self.email = email ...
35.295455
151
0.647778
197
1,553
4.954315
0.461929
0.101434
0.092213
0.135246
0.221311
0.221311
0.161885
0.161885
0
0
0
0.013923
0.21378
1,553
43
152
36.116279
0.785422
0.038635
0
0
0
0.032258
0.213468
0.076094
0
0
0
0
0
1
0.129032
false
0.129032
0.096774
0
0.258065
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
fdae4d589a0bfe5706d084ebb885895cfa2070d3
1,479
py
Python
setup.py
polishmatt/sputr
7611d40090c8115dff69912725efc506414ac47a
[ "MIT" ]
1
2017-02-13T23:09:18.000Z
2017-02-13T23:09:18.000Z
setup.py
polishmatt/sputr
7611d40090c8115dff69912725efc506414ac47a
[ "MIT" ]
6
2017-02-18T20:14:32.000Z
2017-09-27T19:07:06.000Z
setup.py
polishmatt/sputr
7611d40090c8115dff69912725efc506414ac47a
[ "MIT" ]
null
null
null
from setuptools import setup import importlib version = importlib.import_module('sputr.config').version setup( name='sputr', version=version, description='Simple Python Unit Test Runner', long_description="An intuitive command line and Python package interface for Python's unit testing framework.", ...
31.468085
115
0.597025
143
1,479
6.132867
0.566434
0.173318
0.22805
0.148233
0.061574
0
0
0
0
0
0
0.013749
0.262339
1,479
46
116
32.152174
0.790101
0
0
0.090909
0
0
0.563895
0
0
0
0
0
0
1
0
false
0
0.068182
0
0.068182
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
fdb1f945768c5695ac9336664448e0864ebfec52
4,587
py
Python
oy/models/mixins/polymorphic_prop.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
5
2019-02-12T08:54:46.000Z
2021-03-15T09:22:44.000Z
oy/models/mixins/polymorphic_prop.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
2
2020-04-30T01:27:08.000Z
2020-07-16T18:04:16.000Z
oy/models/mixins/polymorphic_prop.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
3
2019-10-16T05:53:31.000Z
2021-10-11T09:37:16.000Z
# -*- coding: utf-8 -*- """ oy.models.mixins.polymorphic_prop ~~~~~~~~~~ Provides helper mixin classes for special sqlalchemy models :copyright: (c) 2018 by Musharraf Omer. :license: MIT, see LICENSE for more details. """ import sqlalchemy.types as types from sqlalchemy import literal_column, ev...
29.785714
84
0.625681
549
4,587
5.030965
0.320583
0.035844
0.018103
0.016293
0.112962
0.055757
0.055757
0.055757
0.029689
0
0
0.004168
0.267713
4,587
153
85
29.980392
0.818101
0.189448
0
0.108696
0
0
0.034015
0
0
0
0
0
0
1
0.206522
false
0
0.065217
0.086957
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fdbbcdb74fb497d41cae48ac2a6300801085c4fc
2,053
py
Python
tag.py
tom-choi/NLPforPIXIV
77e905793c792ec97f196a4da7144456018577c7
[ "MIT" ]
1
2022-03-18T09:10:59.000Z
2022-03-18T09:10:59.000Z
tag.py
tom-choi/NLPforPIXIV
77e905793c792ec97f196a4da7144456018577c7
[ "MIT" ]
null
null
null
tag.py
tom-choi/NLPforPIXIV
77e905793c792ec97f196a4da7144456018577c7
[ "MIT" ]
null
null
null
import json from msilib.schema import Directory import pandas as pd import csv with open('./result-#succubus Drawings, Best Fan Art on pixiv, Japan-1647491083659.json', 'r',encoding="utf-8") as f: data = json.load(f) Tags_Directory = {} print(f"已經捕捉到{len(data)}條信息,準備將tag新增到字典……") n = len(data) for i in range(0,n): ...
33.112903
117
0.649781
325
2,053
4.027692
0.236923
0.228419
0.174179
0.106952
0.38961
0.350649
0.282659
0.244461
0.244461
0.218487
0
0.021326
0.154895
2,053
61
118
33.655738
0.719308
0.536775
0
0
0
0
0.271538
0.114504
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.115385
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fdc27871983c6fc23e23bf1a61087b70dff46dd6
238
py
Python
test_api/movies/urls.py
xm4dn355x/drf_test
efdc38afa51d259fcb5781c9f8cc52f93e2fd81b
[ "MIT" ]
null
null
null
test_api/movies/urls.py
xm4dn355x/drf_test
efdc38afa51d259fcb5781c9f8cc52f93e2fd81b
[ "MIT" ]
null
null
null
test_api/movies/urls.py
xm4dn355x/drf_test
efdc38afa51d259fcb5781c9f8cc52f93e2fd81b
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('movie/', views.MovieListView.as_view()), path('movie/<int:pk>/', views.MovieDetailView.as_view()), path('review/', views.ReviewCreateView.as_view()), ]
21.636364
61
0.684874
29
238
5.517241
0.551724
0.1125
0.125
0
0
0
0
0
0
0
0
0
0.138655
238
10
62
23.8
0.780488
0
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fdc8a16130fbd3365668c8adfa036d8311ee21c2
2,205
py
Python
DataBase/Postgres/PostgresTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
DataBase/Postgres/PostgresTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
DataBase/Postgres/PostgresTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
import psycopg2 # encoding=utf-8 __author__ = 'Hinsteny' def get_conn(): conn = psycopg2.connect(database="hello_db", user="hinsteny", password="welcome", host="127.0.0.1", port="5432") return conn def create_table(conn): cur = conn.cursor() cur.execute('''CREATE TABLE if not exists COMPANY ...
24.230769
116
0.579592
282
2,205
4.414894
0.347518
0.04498
0.053012
0.064257
0.360643
0.342169
0.320482
0.253815
0.253815
0.189558
0
0.042079
0.26712
2,205
90
117
24.5
0.728342
0.239456
0
0.384615
0
0
0.315277
0
0
0
0
0
0
1
0.115385
false
0.096154
0.019231
0
0.153846
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
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
fdd740c29776fedc99f0ae3abe771a8f8e0fe2b3
2,781
py
Python
app/routes.py
volvo007/flask_microblog
b826bcaa4fec6703a66f757e39fdf1fcced031f9
[ "Apache-2.0" ]
null
null
null
app/routes.py
volvo007/flask_microblog
b826bcaa4fec6703a66f757e39fdf1fcced031f9
[ "Apache-2.0" ]
null
null
null
app/routes.py
volvo007/flask_microblog
b826bcaa4fec6703a66f757e39fdf1fcced031f9
[ "Apache-2.0" ]
null
null
null
import time from flask import render_template, flash, redirect, url_for from flask.globals import request from flask_login.utils import logout_user from werkzeug.urls import url_parse # from flask.helpers import flash # 闪动消息 from app import app, db # 第二个 app 是 init文件里的app 对象 from app.forms import LoginForm, Registratio...
37.08
82
0.647609
348
2,781
5.054598
0.382184
0.027288
0.055713
0.068221
0.158044
0.067084
0.03411
0
0
0
0
0.003274
0.231212
2,781
75
83
37.08
0.819457
0.188781
0
0.175439
0
0
0.115282
0
0
0
0
0
0
1
0.070175
false
0.052632
0.157895
0
0.385965
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
fddb07c49fca7dc8739e0a7542a2263412a966ed
179
py
Python
ao2j/lt1300/046/B.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
ao2j/lt1300/046/B.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
ao2j/lt1300/046/B.py
neshdev/competitive-prog
f406a85d62e83c3dbd3ad41f42ae121ebefd0fda
[ "MIT" ]
null
null
null
n,k = [int(x) for x in input().split()] arr = [int(x) for x in input().split()] arr.sort() total = 0 for i in range(k): if arr[i] < 0: total += -arr[i] print(total)
16.272727
39
0.536313
35
179
2.742857
0.457143
0.083333
0.145833
0.166667
0.479167
0.479167
0.479167
0.479167
0
0
0
0.014815
0.24581
179
10
40
17.9
0.696296
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fddf95ac612e69b154ea7fc28a7e99daf0730fea
685
py
Python
UserAlgorithm.py
Anirudhsfc/RunTimeAlgo
eb0fb706b4c738bad603327a94c9724e3dfe8fee
[ "MIT" ]
1
2019-09-03T08:28:26.000Z
2019-09-03T08:28:26.000Z
UserAlgorithm.py
Anirudhsfc/RunTimeAlgo
eb0fb706b4c738bad603327a94c9724e3dfe8fee
[ "MIT" ]
null
null
null
UserAlgorithm.py
Anirudhsfc/RunTimeAlgo
eb0fb706b4c738bad603327a94c9724e3dfe8fee
[ "MIT" ]
null
null
null
from MakeYourOwnGraph import * #user needs to import this line def F1(x,y): if x<=2: return 1 else: return F1(x-1,y)+F1(x-2,y) GraphOfMyAlgo(F1,2,[1,30,2,31]) #user needs to execute this line in his or her algorithm where the first argument is the name of the Algorithm Function, here F1 ...
52.692308
247
0.681752
111
685
4.126126
0.477477
0.061135
0.104803
0.098253
0.18559
0.126638
0
0
0
0
0
0.031809
0.265693
685
13
247
52.692308
0.878728
0.664234
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fde56cf34b5e2c673b4f1db2a825702a705cb407
1,257
py
Python
dsRenamingTool/dialogBase.py
S0nic014/dsRenamingTool
97efcd660af820ab6b5f1918222ba31a95d47788
[ "MIT" ]
2
2020-07-15T16:59:31.000Z
2021-08-17T14:04:15.000Z
dsRenamingTool/dialogBase.py
S0nic014/dsRenamingTool
97efcd660af820ab6b5f1918222ba31a95d47788
[ "MIT" ]
null
null
null
dsRenamingTool/dialogBase.py
S0nic014/dsRenamingTool
97efcd660af820ab6b5f1918222ba31a95d47788
[ "MIT" ]
null
null
null
import sys from PySide2 import QtCore from PySide2 import QtWidgets from shiboken2 import wrapInstance import maya.OpenMayaUI as omui def mayaMainWindow(): """ Get maya main window as QWidget :return: Maya main window as QWidget :rtype: PySide2.QtWidgets.QWidget """ mainWindowPtr = omui.MQtUt...
24.647059
87
0.668258
125
1,257
6.632
0.488
0.038601
0.039807
0.038601
0.055489
0
0
0
0
0
0
0.009544
0.249801
1,257
50
88
25.14
0.869565
0.13922
0
0.193548
0
0
0.013258
0
0
0
0
0
0
1
0.193548
false
0.129032
0.16129
0
0.451613
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fdf08b92d38f1c12ce10c7842c25d8f96a214534
385
py
Python
indent/migrations/0003_indentmaster_note.py
yvsreenivas/inventory2
b92c03a398cb9831fa7a727a9a3287bdd9b17cd4
[ "MIT" ]
null
null
null
indent/migrations/0003_indentmaster_note.py
yvsreenivas/inventory2
b92c03a398cb9831fa7a727a9a3287bdd9b17cd4
[ "MIT" ]
null
null
null
indent/migrations/0003_indentmaster_note.py
yvsreenivas/inventory2
b92c03a398cb9831fa7a727a9a3287bdd9b17cd4
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-03-15 15:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('indent', '0002_auto_20210314_2324'), ] operations = [ migrations.AddField( model_name='indentmaster', name='note', ...
20.263158
48
0.597403
41
385
5.512195
0.804878
0
0
0
0
0
0
0
0
0
0
0.116788
0.288312
385
18
49
21.388889
0.708029
0.119481
0
0
1
0
0.133531
0.068249
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
fdf18580611d8972ffb45869d74bebdda505d879
2,310
py
Python
Ass2/lotka-volterra.py
Scoudem/modsim
a65da4a29a82ac495367278ec694a28432b30c0d
[ "Apache-2.0" ]
null
null
null
Ass2/lotka-volterra.py
Scoudem/modsim
a65da4a29a82ac495367278ec694a28432b30c0d
[ "Apache-2.0" ]
null
null
null
Ass2/lotka-volterra.py
Scoudem/modsim
a65da4a29a82ac495367278ec694a28432b30c0d
[ "Apache-2.0" ]
null
null
null
''' File: lotka-volterra.py Authors: - Sjoerd Wenker, 10617558 - Tristan van Vaalen, 10551832 Contains a Lotka-Volterra Model which is simulated using the RK4 method. ''' from integration import RungeKutta4 import matplotlib.pyplot as plt from matplotlib.widgets import Slider ''' Method that simulates a Lotka-Volte...
26.860465
82
0.558009
355
2,310
3.580282
0.335211
0.018883
0.009441
0.009441
0.095201
0.064516
0.055075
0
0
0
0
0.073082
0.289177
2,310
86
83
26.860465
0.700974
0
0
0
0
0
0.05537
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fdfb78f1a782871b71fcd4058e86788874102e55
582
py
Python
iiif_prezi3/loader.py
rbturnbull/iiif-prezi3
0e66bc41438772c75e064c20964ed01aff1f3709
[ "Apache-2.0" ]
null
null
null
iiif_prezi3/loader.py
rbturnbull/iiif-prezi3
0e66bc41438772c75e064c20964ed01aff1f3709
[ "Apache-2.0" ]
null
null
null
iiif_prezi3/loader.py
rbturnbull/iiif-prezi3
0e66bc41438772c75e064c20964ed01aff1f3709
[ "Apache-2.0" ]
null
null
null
import json def load_extensions_from_json(): try: extensions = json.load(open("extensions.json")) except FileNotFoundError: return for ext in extensions: __import__(f"iiif_prezi3.extensions.{ext}") def load_extension(path): pass def monkeypatch_schema(schema_class, patch_c...
22.384615
55
0.689003
71
582
5.239437
0.464789
0.129032
0.145161
0.123656
0
0
0
0
0
0
0
0.002212
0.223368
582
25
56
23.28
0.820796
0
0
0
0
0
0.073883
0.04811
0
0
0
0
0
1
0.166667
false
0.055556
0.111111
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
1
0
0
0
0
0
1
fdfd3606a932554deb9481786f567a3095afa229
395
py
Python
blog/migrations/0015_auto_20190810_1404.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
null
null
null
blog/migrations/0015_auto_20190810_1404.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
7
2020-02-12T01:20:22.000Z
2021-06-10T18:39:59.000Z
blog/migrations/0015_auto_20190810_1404.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-10 14:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0014_post_imgdata'), ] operations = [ migrations.AlterField( model_name='post', name='imgdata', ...
20.789474
69
0.594937
43
395
5.372093
0.790698
0
0
0
0
0
0
0
0
0
0
0.067138
0.283544
395
18
70
21.944444
0.749117
0.113924
0
0
1
0
0.112069
0
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
a9039f8421d00114c0ba14dfaca35466584a7fcb
1,543
py
Python
server/main_node/create_tables.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
server/main_node/create_tables.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
server/main_node/create_tables.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
""" BASICS Creates the necessary tables and users. """ import os import psycopg2 con = psycopg2.connect (host = os.environ["POSTGRES_URL"], database = os.environ["POSTGRES_DB"], user = os.environ["POSTGRES_USER"], password = os.environ["POSTGRES_PASSWORD"]) cur = con.cursor() # Creates main user table cur.execut...
32.829787
176
0.720674
222
1,543
4.869369
0.382883
0.066605
0.062905
0.055504
0.281221
0.175763
0.175763
0.079556
0
0
0
0.008675
0.178224
1,543
46
177
33.543478
0.843849
0.166559
0
0
0
0
0.564364
0
0
0
0
0
0
1
0
false
0.166667
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8bf15c081cf1ec7e2805d8cdda039957d68c5367
454
py
Python
Exercicios/script030.py
jacksonmoreira/Curso-em-video-mundo1-
84b09bd3b61417fab483acf9f1a38e0cf6b95a80
[ "MIT" ]
null
null
null
Exercicios/script030.py
jacksonmoreira/Curso-em-video-mundo1-
84b09bd3b61417fab483acf9f1a38e0cf6b95a80
[ "MIT" ]
null
null
null
Exercicios/script030.py
jacksonmoreira/Curso-em-video-mundo1-
84b09bd3b61417fab483acf9f1a38e0cf6b95a80
[ "MIT" ]
null
null
null
frase = str(input('Digite o seu nome completo para a análise ser feita:')).strip() print('-' * 50) print('Analisando nome...') print('O seu nome em maiúsculas é {}.'.format(frase.upper())) print('O seu nome em minúsculas é {}.'.format(frase.lower())) print('O seu nome tem ao todo {} letras.'.format(len(frase) - frase.c...
41.272727
82
0.665198
69
454
4.376812
0.507246
0.066225
0.10596
0.129139
0.099338
0
0
0
0
0
0
0.010101
0.127753
454
10
83
45.4
0.752525
0
0
0.222222
0
0
0.503311
0
0
0
0
0
0
1
0
false
0
0
0
0
0.888889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8bf4cdf0dd3a18f2cee9855d7af028188308986c
1,080
py
Python
webshots/popular-websites.py
acamero/evo-web
5229ff89e2ac2d3f6a3a7f80d3f514fd3ed728c9
[ "MIT" ]
null
null
null
webshots/popular-websites.py
acamero/evo-web
5229ff89e2ac2d3f6a3a7f80d3f514fd3ed728c9
[ "MIT" ]
null
null
null
webshots/popular-websites.py
acamero/evo-web
5229ff89e2ac2d3f6a3a7f80d3f514fd3ed728c9
[ "MIT" ]
null
null
null
import requests import sys from lxml import html #csv_file_name = sys.argv[1] # output file csv_file_name = "../webshot_data/popular-web-sites.csv" csv_file = open(csv_file_name, "w") categories = ["Arts", "Business", "Computers", "Games", "Health", "Home", "Kids_and_Teens", "News", "Recreation", "Reference", "Regio...
34.83871
202
0.605556
133
1,080
4.81203
0.533835
0.065625
0.051563
0.08125
0.35
0.35
0.35
0.35
0.35
0.35
0
0.002336
0.207407
1,080
30
203
36
0.745327
0.237963
0
0
0
0
0.278729
0.045232
0
0
0
0
0
0
null
null
0
0.15
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8bf9802eb12db8bd7835a073469cfa2b0ae5ce2e
2,898
py
Python
hearthstone/simulator/core/card_graveyard.py
JDBumgardner/stone_ground_hearth_battles
9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f
[ "Apache-2.0" ]
20
2020-08-01T03:14:57.000Z
2021-12-19T11:47:50.000Z
hearthstone/simulator/core/card_graveyard.py
JDBumgardner/stone_ground_hearth_battles
9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f
[ "Apache-2.0" ]
48
2020-08-01T03:06:43.000Z
2022-02-27T10:03:47.000Z
hearthstone/simulator/core/card_graveyard.py
JDBumgardner/stone_ground_hearth_battles
9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f
[ "Apache-2.0" ]
3
2020-06-28T01:23:37.000Z
2021-11-11T23:09:36.000Z
import sys from inspect import getmembers, isclass from typing import Union from hearthstone.simulator.core.cards import MonsterCard from hearthstone.simulator.core.events import CardEvent, EVENTS, BuyPhaseContext, CombatPhaseContext from hearthstone.simulator.core.monster_types import MONSTER_TYPES class FloatingWa...
36.683544
149
0.640787
344
2,898
5.218023
0.252907
0.066852
0.066295
0.058496
0.516992
0.494708
0.459053
0.3961
0.3961
0.355989
0
0.010189
0.28882
2,898
78
150
37.153846
0.860747
0
0
0.3125
0
0
0.028986
0
0
0
0
0
0
1
0.046875
false
0
0.09375
0
0.59375
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
8bfbe25b3704f8131128b16676dbbc1e54dcc6b4
446
py
Python
bin/Notifier/NotificationLoader.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
55
2016-11-20T17:08:19.000Z
2022-03-11T22:19:43.000Z
bin/Notifier/NotificationLoader.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
17
2017-09-20T07:52:17.000Z
2021-12-03T10:03:00.000Z
bin/Notifier/NotificationLoader.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
29
2016-12-10T15:00:11.000Z
2021-12-02T12:54:05.000Z
import importlib _NOTIFICATION_BACKENDS = None def load(modules): global _NOTIFICATION_BACKENDS; if _NOTIFICATION_BACKENDS == None: _NOTIFICATION_BACKENDS = dict() for backend in modules: backend = backend.strip() backend = getattr(importlib.import_module("Notifier.Bac...
29.733333
99
0.695067
43
446
6.906977
0.488372
0.40404
0.161616
0
0
0
0
0
0
0
0
0
0.226457
446
14
100
31.857143
0.86087
0
0
0
0
0
0.044843
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e3018352709a236201cb1c03963553b833bc04b2
569
py
Python
pepdb/tasks/migrations/0026_auto_20171031_0153.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/tasks/migrations/0026_auto_20171031_0153.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/tasks/migrations/0026_auto_20171031_0153.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-30 23:53 from __future__ import unicode_literals from django.db import migrations from tasks.models import BeneficiariesMatching def save_json_fields_again(apps, schema_editor): # Ugly but works for bf in BeneficiariesMatching.objects.all(): ...
22.76
52
0.70123
72
569
5.305556
0.708333
0.041885
0.073298
0.099476
0
0
0
0
0
0
0
0.072848
0.203866
569
24
53
23.708333
0.770419
0.14587
0
0
1
0
0.058091
0.047718
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e307995e7666610653ffb5c496c1cf1dfe8feab6
897
py
Python
machin/frame/algorithms/__init__.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
1
2021-04-01T21:21:23.000Z
2021-04-01T21:21:23.000Z
machin/frame/algorithms/__init__.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
null
null
null
machin/frame/algorithms/__init__.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
null
null
null
import warnings from .base import TorchFramework from .dqn import DQN from .dqn_per import DQNPer from .rainbow import RAINBOW from .ddpg import DDPG from .hddpg import HDDPG from .td3 import TD3 from .ddpg_per import DDPGPer from .a2c import A2C from .a3c import A3C from .ppo import PPO from .sac import SAC from ....
16.924528
88
0.637681
113
897
5
0.345133
0.024779
0
0
0
0
0
0
0
0
0
0.013657
0.265329
897
52
89
17.25
0.843703
0
0
0
0
0
0.185061
0
0
0
0
0
0
1
0
false
0
0.422222
0
0.422222
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
e3079c30e7e32fd20e5ad106e7daf8c8a6a94f80
575
py
Python
apps/paper/migrations/0008_alter_paper_course.py
godetaph/uresearch
fb23cb0fe07f8b434b9c46f80b5b43030a3d5323
[ "MIT" ]
null
null
null
apps/paper/migrations/0008_alter_paper_course.py
godetaph/uresearch
fb23cb0fe07f8b434b9c46f80b5b43030a3d5323
[ "MIT" ]
null
null
null
apps/paper/migrations/0008_alter_paper_course.py
godetaph/uresearch
fb23cb0fe07f8b434b9c46f80b5b43030a3d5323
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-24 02:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('preferences', '0002_auto_20210923_2348'), ('paper', '0007_auto_20210923_2353'), ] operations = [ mi...
27.380952
157
0.653913
67
575
5.462687
0.656716
0.065574
0.076503
0.120219
0
0
0
0
0
0
0
0.107143
0.22087
575
20
158
28.75
0.709821
0.078261
0
0
1
0
0.193182
0.087121
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e308a4fb297dc8f9348bbe1730683c0c197aa336
2,925
py
Python
plaso/cli/helpers/hashers.py
cugu-stars/plaso
a205f8e52dfe4c239aeae5558d572806b7b00e81
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/cli/helpers/hashers.py
cugu-stars/plaso
a205f8e52dfe4c239aeae5558d572806b7b00e81
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/cli/helpers/hashers.py
cugu-stars/plaso
a205f8e52dfe4c239aeae5558d572806b7b00e81
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """The hashers CLI arguments helper.""" from plaso.cli import tools from plaso.cli.helpers import interface from plaso.cli.helpers import manager from plaso.lib import errors class HashersArgumentsHelper(interface.ArgumentsHelper): """Hashers CLI arguments helper.""" NAME = 'hashers' D...
36.111111
80
0.699487
349
2,925
5.716332
0.378224
0.0401
0.063158
0.085714
0.063158
0.038095
0.038095
0.038095
0
0
0
0.005224
0.214701
2,925
80
81
36.5625
0.8633
0.245812
0
0.097561
0
0
0.352305
0.054092
0
0
0
0.0125
0
1
0.04878
false
0
0.097561
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e30dad35391d44bf3295ac9fde3a87c8c67a561f
2,098
py
Python
ncrf_to_bed.py
makovalab-psu/NoiseCancellingRepeatFinder
b24732ae73a4cef431277664ad4193a0638758c1
[ "MIT" ]
16
2019-03-30T05:15:53.000Z
2022-01-28T15:20:06.000Z
ncrf_to_bed.py
makovalab-psu/NoiseCancellingRepeatFinder
b24732ae73a4cef431277664ad4193a0638758c1
[ "MIT" ]
8
2019-04-04T19:46:08.000Z
2020-11-18T15:11:53.000Z
ncrf_to_bed.py
makovalab-psu/NoiseCancellingRepeatFinder
b24732ae73a4cef431277664ad4193a0638758c1
[ "MIT" ]
6
2019-10-05T05:16:00.000Z
2021-01-28T10:07:49.000Z
#!/usr/bin/env python """ Convert the output of Noise Cancelling Repeat Finder to bed format. """ from sys import argv,stdin,stdout,stderr,exit from os import path as os_path from ncrf_parse import alignments,parse_noise_rate def usage(s=None): message = """ usage: ncrf_cat <output_from_NCRF> | ncrf_...
29.549296
76
0.605815
310
2,098
4.016129
0.403226
0.008032
0.033735
0.031325
0.217671
0.174297
0.174297
0.174297
0.174297
0.174297
0
0.073034
0.236416
2,098
70
77
29.971429
0.70412
0.038608
0
0.125
0
0.041667
0.418989
0
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e31cd77f7061ef13a9e31f26ee8ba9f374dfc272
9,781
py
Python
sfa/util/api.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
1
2015-11-19T13:34:45.000Z
2015-11-19T13:34:45.000Z
sfa/util/api.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
null
null
null
sfa/util/api.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
null
null
null
# # SFA XML-RPC and SOAP interfaces # import sys import os import traceback import string import xmlrpclib import sfa.util.xmlrpcprotocol as xmlrpcprotocol from sfa.util.sfalogging import logger from sfa.trust.auth import Auth from sfa.util.config import * from sfa.util.faults import * from sfa.util.cache import Cache...
34.807829
112
0.618546
1,137
9,781
5.205805
0.288478
0.010644
0.010982
0.011488
0.06589
0.028721
0.017233
0.017233
0
0
0
0.00622
0.293222
9,781
280
113
34.932143
0.849993
0.082098
0
0.129412
0
0
0.050801
0.008693
0
0
0.002581
0
0
0
null
null
0
0.158824
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e3203c55f3123f00f21c9072e3c16a2c74fb421f
7,603
py
Python
pikoToHM.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
pikoToHM.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
1
2016-07-18T08:24:50.000Z
2016-12-17T09:19:07.000Z
pikoToHM.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ri...
42.47486
145
0.663422
986
7,603
4.885396
0.275862
0.054806
0.074943
0.029894
0.370355
0.283787
0.213618
0.188707
0.188707
0.188707
0
0.030637
0.248718
7,603
178
146
42.713483
0.8125
0.316849
0
0.14433
0
0
0.18203
0.063011
0
0
0
0
0
0
null
null
0
0.061856
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e321f4353a25d31bcaa64e339213294f5626c9c9
480
py
Python
src/default/ellipse/index.py
mikeludemann/python-data-visualization
e5317505d41ae79389f6eec61cefeca1690935b0
[ "MIT" ]
null
null
null
src/default/ellipse/index.py
mikeludemann/python-data-visualization
e5317505d41ae79389f6eec61cefeca1690935b0
[ "MIT" ]
null
null
null
src/default/ellipse/index.py
mikeludemann/python-data-visualization
e5317505d41ae79389f6eec61cefeca1690935b0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Ellipse NUM = 250 ells = [Ellipse(xy=np.random.rand(2) * 10, width=np.random.rand(), height=np.random.rand(), angle=np.random.rand() * 360) for i in range(NUM)] fig, ax = plt.subplots(subplot_kw={'aspect': 'equal'}) for e in ells: ...
20.869565
54
0.708333
89
480
3.730337
0.52809
0.144578
0.216867
0
0
0
0
0
0
0
0
0.038005
0.122917
480
22
55
21.818182
0.750594
0
0
0
0
0
0.022917
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
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
e323376f728d32ac2cbf19f89a6bf1e46c450382
638
py
Python
_/chapter5-OpenStack/IdentityService/createproject.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
3
2018-03-27T14:34:48.000Z
2021-10-04T16:28:19.000Z
_/chapter5-OpenStack/IdentityService/createproject.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
null
null
null
_/chapter5-OpenStack/IdentityService/createproject.py
paullewallencom/hybrid-cloud-978-1-7888-3087-4
d101553fd342f420b581b87c58c7219f2b04a7c6
[ "Apache-2.0" ]
1
2021-08-27T23:51:28.000Z
2021-08-27T23:51:28.000Z
#import OpenStack connection class from the SDK from openstack import connection # Create a connection object by calling the constructor and pass the security information conn = connection.Connection(auth_url="http://192.168.0.106/identity", project_name="demo", username="admin", password="manoj", user_domain_id="defa...
30.380952
89
0.714734
78
638
5.692308
0.602564
0.087838
0.067568
0
0
0
0
0
0
0
0
0.019157
0.181818
638
20
90
31.9
0.831418
0.210031
0
0
0
0
0.26494
0
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.133333
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
e3278fc449a9b7f42367d6c094639616a86c1514
353
py
Python
setup.py
markus61/selfstoredict
c770fd0dd4976e66299f51f71a71ad9c1875d699
[ "MIT" ]
1
2017-01-18T11:19:24.000Z
2017-01-18T11:19:24.000Z
setup.py
markus61/selfstoredict
c770fd0dd4976e66299f51f71a71ad9c1875d699
[ "MIT" ]
null
null
null
setup.py
markus61/selfstoredict
c770fd0dd4976e66299f51f71a71ad9c1875d699
[ "MIT" ]
1
2018-02-23T06:23:43.000Z
2018-02-23T06:23:43.000Z
from setuptools import setup, find_packages setup( name='selfstoredict', version='0.6', packages=find_packages(), url='https://github.com/markus61/selfstoredict', license='MIT', author='markus', author_email='ms@dom.de', description='a python class delivering a dict that stores itself in...
29.416667
101
0.696884
48
353
5.0625
0.8125
0.098765
0
0
0
0
0
0
0
0
0
0.013793
0.17847
353
11
102
32.090909
0.824138
0
0
0
0
0
0.444759
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
e337c8816166ee2eea4a6327ac76523c1a2e9c32
1,231
py
Python
plot/eigenvalue_statistics.py
dh4gan/tache
51ed037769ecc4fdadc591e3b3619416c79e65b7
[ "MIT" ]
5
2018-02-27T04:07:15.000Z
2020-12-29T20:49:36.000Z
plot/eigenvalue_statistics.py
dh4gan/tache
51ed037769ecc4fdadc591e3b3619416c79e65b7
[ "MIT" ]
null
null
null
plot/eigenvalue_statistics.py
dh4gan/tache
51ed037769ecc4fdadc591e3b3619416c79e65b7
[ "MIT" ]
null
null
null
# Written 9/10/14 by dh4gan # Code reads in output eigenvalue file from tache # Computes statistics import numpy as np import matplotlib.pyplot as plt import io_tache as io # Read in inputs from command line filename = ff.find_local_input_files('eigenvalues*') threshold = input("What is the threshold for classificat...
21.224138
69
0.723802
185
1,231
4.772973
0.464865
0.06342
0.04983
0.024915
0.237826
0.15855
0.15855
0.15855
0.088335
0.088335
0
0.028155
0.163282
1,231
57
70
21.596491
0.829126
0.215272
0
0.296296
0
0
0.082019
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.074074
0
0
0
null
0
0
0
0
0
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
e33e7075c79b3b47f743f64502284119cdb5e862
2,094
py
Python
konbata/Formats/xml_format.py
jzeuner/konbata
41c5ec9ce4c84e82e09daaa106ceed9de38c437b
[ "MIT" ]
2
2019-12-01T16:12:24.000Z
2021-05-18T22:10:12.000Z
konbata/Formats/xml_format.py
jzeuner/konbata
41c5ec9ce4c84e82e09daaa106ceed9de38c437b
[ "MIT" ]
10
2019-09-19T17:08:46.000Z
2021-02-17T21:42:10.000Z
konbata/Formats/xml_format.py
jzeuner/konbata
41c5ec9ce4c84e82e09daaa106ceed9de38c437b
[ "MIT" ]
3
2019-11-27T18:39:12.000Z
2021-02-10T15:11:58.000Z
""" Loader and Parser for the xml format. Version: 0.01-alpha """ from xml.dom import minidom from konbata.Data.Data import DataNode, DataTree from konbata.Formats.Format import Format def xml_toTree(file, delimiter, options=None): """ Function transforms a xml file into a DataTree. Parameters ...
22.516129
75
0.637536
261
2,094
4.969349
0.35249
0.086353
0.046261
0.058597
0.17579
0
0
0
0
0
0
0.002579
0.259312
2,094
92
76
22.76087
0.833656
0.354823
0
0.066667
0
0
0.038079
0
0
0
0
0.032609
0
1
0.1
false
0.033333
0.1
0
0.3
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e347285e41902227dea4612bf91fb04df4a24692
3,598
py
Python
sub_1602_display.py
leonardlinde/timeandtemp
93e9ad16b2027fd9c261052c22a5977b86326550
[ "Artistic-2.0" ]
null
null
null
sub_1602_display.py
leonardlinde/timeandtemp
93e9ad16b2027fd9c261052c22a5977b86326550
[ "Artistic-2.0" ]
null
null
null
sub_1602_display.py
leonardlinde/timeandtemp
93e9ad16b2027fd9c261052c22a5977b86326550
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python """ ZMQ Subscriber for 1602 display Queue: INF and CMD """ import wiringpi2 as wiringpi import datetime import time import json import Adafruit_DHT import traceback import zmq import sys import pprint infoSocket = "tcp://localhost:5550" cmdSocket = "tcp://localhost:5560" wiringpi.wiringPiSetu...
26.651852
79
0.658143
453
3,598
5.178808
0.388521
0.02046
0.037511
0.033248
0.150895
0.113811
0.099318
0.06948
0.06948
0.046888
0
0.037305
0.232629
3,598
134
80
26.850746
0.812387
0.163146
0
0.170455
0
0
0.100683
0
0
0
0
0
0
0
null
null
0
0.102273
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e348be446d860ef514d588759be2dbd6de2b4764
651
py
Python
essentials_kit_management/interactors/get_pay_through_details_interactor.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
null
null
null
essentials_kit_management/interactors/get_pay_through_details_interactor.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
2
2021-09-07T07:06:00.000Z
2021-09-07T07:24:26.000Z
essentials_kit_management/interactors/get_pay_through_details_interactor.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
null
null
null
from essentials_kit_management.interactors.storages.storage_interface \ import StorageInterface from essentials_kit_management.interactors.presenters.presenter_interface \ import PresenterInterface class GetPayThroughDetailsInteractor: def __init__( self, storage: StorageInterface, presenter: ...
34.263158
76
0.761905
68
651
6.882353
0.382353
0.08547
0.145299
0.160256
0.162393
0
0
0
0
0
0
0
0.184332
651
18
77
36.166667
0.881356
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
e34b1404822d471e120b2d87a3f5be2a57d14434
1,323
py
Python
molotov_ext/__init__.py
2gis-test-labs/molotov-ext
2cf2cc5b74f6676ed1680511030d4dddb8be8380
[ "Apache-2.0" ]
null
null
null
molotov_ext/__init__.py
2gis-test-labs/molotov-ext
2cf2cc5b74f6676ed1680511030d4dddb8be8380
[ "Apache-2.0" ]
null
null
null
molotov_ext/__init__.py
2gis-test-labs/molotov-ext
2cf2cc5b74f6676ed1680511030d4dddb8be8380
[ "Apache-2.0" ]
null
null
null
from argparse import Namespace from functools import partial from typing import Any import molotov from .formatters import DefaultFormatter from .record_table import RecordTable from .recorder import Recorder from .reporter import Reporter from .scenario import Scenario __all__ = ("Reporter", "register_reporter", "s...
32.268293
99
0.73167
149
1,323
6.328859
0.375839
0.063627
0.031813
0.042418
0.04878
0
0
0
0
0
0
0.000887
0.147392
1,323
40
100
33.075
0.835106
0
0
0
0
0
0.199546
0
0
0
0
0
0
1
0.035714
false
0
0.321429
0
0.392857
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
e35c3059ee54c88a4dcfc9000cdd58922b31c667
4,185
py
Python
conveyordashboard/volumes/tables.py
Hybrid-Cloud/birdie-dashboard
a3dc370c50ef9f33498a8ed4180ff5009532a79f
[ "Apache-2.0" ]
null
null
null
conveyordashboard/volumes/tables.py
Hybrid-Cloud/birdie-dashboard
a3dc370c50ef9f33498a8ed4180ff5009532a79f
[ "Apache-2.0" ]
null
null
null
conveyordashboard/volumes/tables.py
Hybrid-Cloud/birdie-dashboard
a3dc370c50ef9f33498a8ed4180ff5009532a79f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Huawei, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.769231
78
0.61601
440
4,185
5.697727
0.361364
0.043877
0.03231
0.039489
0.154767
0.102114
0.102114
0.102114
0.102114
0.058237
0
0.003383
0.293668
4,185
116
79
36.077586
0.844723
0.146476
0
0.128205
0
0
0.103264
0.035172
0
0
0
0
0
1
0.102564
false
0
0.089744
0.064103
0.538462
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
e35f9878c2b4e671e6f25e427a7cdba3e0466f0b
9,046
py
Python
tools/tver/tver.py
jackyzy823/restrictionbreaker
1aabce0c98c50782a592fa6c91abd72e82e59a6a
[ "Unlicense" ]
5
2019-05-29T21:34:34.000Z
2021-07-25T10:58:57.000Z
tools/tver/tver.py
jackyzy823/restrictionbreaker
1aabce0c98c50782a592fa6c91abd72e82e59a6a
[ "Unlicense" ]
null
null
null
tools/tver/tver.py
jackyzy823/restrictionbreaker
1aabce0c98c50782a592fa6c91abd72e82e59a6a
[ "Unlicense" ]
1
2020-06-25T14:14:41.000Z
2020-06-25T14:14:41.000Z
import requests import re import sqlite3 db =sqlite3.connect("db_tver.db",check_same_thread =False) cur = db.cursor() cur.execute( '''CREATE TABLE if not exists `tver` ( `reference_id` TEXT NOT NULL, `service` TEXT NOT NULL, `player_id` TEXT NOT NULL, `name` TEXT NOT NULL, `title` TEXT, ...
41.118182
272
0.624254
976
9,046
5.67418
0.300205
0.027808
0.018057
0.01264
0.200795
0.189599
0.151138
0.151138
0.134345
0.134345
0
0.06768
0.199646
9,046
220
273
41.118182
0.697238
0.081362
0
0.335664
0
0.041958
0.410721
0.255903
0
0
0
0
0
0
null
null
0.006993
0.020979
null
null
0.041958
0
0
0
null
0
0
0
0
0
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
e3619a35a7b1327801ed3520deafd02b23723cdc
946
py
Python
performence/get_flops.py
idealboy/mmsr
f8284e9fb977a74db1904e6034b768805845e138
[ "Apache-2.0" ]
2
2020-08-05T05:13:14.000Z
2020-11-10T03:37:48.000Z
performence/get_flops.py
idealboy/mmsr
f8284e9fb977a74db1904e6034b768805845e138
[ "Apache-2.0" ]
null
null
null
performence/get_flops.py
idealboy/mmsr
f8284e9fb977a74db1904e6034b768805845e138
[ "Apache-2.0" ]
null
null
null
import os import sys op_name = [] with open("name.txt") as lines: for line in lines: line = line.strip() op_name.append(line) with open("shape.txt") as lines: index = 0 for line in lines: name = op_name[index] line = line.strip() items = line.split("\t") if "conv" in name: input_shape = [int(s) for ...
32.62069
138
0.605708
157
946
3.535032
0.229299
0.198198
0.099099
0.086486
0.506306
0.475676
0.443243
0.443243
0.443243
0.34955
0
0.036802
0.167019
946
28
139
33.785714
0.667513
0
0
0.24
0
0
0.042283
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e3621a99c91f66bf8b690df838e64f5433dfeefe
6,086
py
Python
pan/mesh_bee_wrapper.py
KillingJacky/CloudPan
128f438b8d84c734aad94ad3e03f6c3aa12b66af
[ "MIT" ]
1
2016-08-29T14:28:45.000Z
2016-08-29T14:28:45.000Z
pan/mesh_bee_wrapper.py
KillingJacky/CloudPan
128f438b8d84c734aad94ad3e03f6c3aa12b66af
[ "MIT" ]
null
null
null
pan/mesh_bee_wrapper.py
KillingJacky/CloudPan
128f438b8d84c734aad94ad3e03f6c3aa12b66af
[ "MIT" ]
null
null
null
# Wrapper for Mesh Bee library # helping to easier communicate with Mesh Bee module # # Copyright (C) 2014 at seeedstudio # Author: Jack Shao (jacky.shaoxg@gmail.com) # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associate...
34.977011
141
0.565067
742
6,086
4.536388
0.32345
0.026144
0.029115
0.028223
0.186275
0.154486
0.154486
0.114676
0.094474
0.092097
0
0.005975
0.339961
6,086
173
142
35.179191
0.831964
0.237266
0
0.254902
0
0
0.079618
0
0
0
0
0
0
0
null
null
0.019608
0.068627
null
null
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e36ead0127bc40a1f4670d0eba027d0736c82d0a
781
py
Python
kafka_scripts/kafka-producer-stream-algorithm.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
kafka_scripts/kafka-producer-stream-algorithm.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
kafka_scripts/kafka-producer-stream-algorithm.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
from kafka import KafkaProducer import json import random from time import sleep from datetime import datetime # Create an instance of the Kafka producer producer = KafkaProducer(bootstrap_servers='kafka-server:9092', value_serializer=lambda m: json.dumps( m).encod...
37.190476
97
0.658131
92
781
5.413043
0.652174
0.060241
0.072289
0
0
0
0
0
0
0
0
0.016892
0.241997
781
20
98
39.05
0.824324
0.102433
0
0
0
0
0.289398
0.063037
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e3773931c3c2274119d47a9e56c7b5427c5ed618
241
py
Python
python/sock-merchant.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
21
2015-02-09T18:08:38.000Z
2021-11-08T15:00:48.000Z
python/sock-merchant.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
7
2020-04-12T23:00:19.000Z
2021-01-30T23:44:24.000Z
python/sock-merchant.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
27
2015-07-22T18:08:12.000Z
2022-02-28T19:50:26.000Z
#!/bin/python3 from collections import Counter def pairs(socks): return sum(list(map(lambda sock: sock // 2, Counter(socks).values()))) _ = int(input().strip()) socks = list(map(int, input().strip().split(' '))) print(pairs(socks))
18.538462
74
0.659751
33
241
4.787879
0.666667
0.126582
0.164557
0
0
0
0
0
0
0
0
0.009569
0.13278
241
12
75
20.083333
0.746411
0.053942
0
0
0
0
0.004405
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
e37ecee0bdcbaf77c2d3a8c1147419b338c8e1b7
1,573
py
Python
invmonInfra/models/inventoryModels.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
null
null
null
invmonInfra/models/inventoryModels.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
16
2021-12-09T06:22:29.000Z
2022-03-25T06:26:01.000Z
invmonInfra/models/inventoryModels.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
null
null
null
from logging import lastResort from pydantic import BaseModel from invmonApi.database import Base from invmonInfra.enum import InventoryLastStatusEnum from sqlalchemy import Column, String, Boolean from uuid import uuid4 class InventorySqlModel(Base): __tablename__ = "inventory" id = Column(String, primary_ke...
25.370968
121
0.628099
175
1,573
5.594286
0.257143
0.061287
0.045965
0.032686
0.28192
0.28192
0.28192
0.28192
0.28192
0.28192
0
0.001781
0.286078
1,573
61
122
25.786885
0.869991
0
0
0.44
0
0
0.005725
0
0
0
0
0
0
1
0.06
false
0.02
0.12
0
0.6
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
8b4cf66930d071ee4505d81a0c0281d51346de46
384
py
Python
zad1_12.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
zad1_12.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
zad1_12.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
x = 2 ** (1/2) y = 3 ** (1/3) z = 5 ** (1/5) print(x) print(y) print(z) print() if x>y and x>z: print(x,'jest największa') elif y>x and y>z: print(y,'jest największa') elif z>x and z>y: print(z,'jest największa') print() if x<y and x<z: print(x,'jest najmniejsza') elif y<x and y<z: print(y,'jest...
16
31
0.585938
80
384
2.8125
0.175
0.133333
0.093333
0.08
0.586667
0.586667
0.586667
0.586667
0.586667
0.213333
0
0.0299
0.216146
384
24
32
16
0.717608
0
0
0.1
0
0
0.241558
0
0
0
0
0
0
1
0
false
0
0
0
0
0.55
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8b4e779744d51e5ebec4b797f93c9f1ab0c716a1
555
py
Python
setup.py
kennydo/pick-my-stick
17bb4fbb35cc9637a838f5bdd91caeb7458b43bd
[ "MIT" ]
null
null
null
setup.py
kennydo/pick-my-stick
17bb4fbb35cc9637a838f5bdd91caeb7458b43bd
[ "MIT" ]
null
null
null
setup.py
kennydo/pick-my-stick
17bb4fbb35cc9637a838f5bdd91caeb7458b43bd
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='picker-my-sticker', version='0.0.1', description='Stickers for Slack', long_description='S t i c k e r s', url='https://github.com/kennydo/pick-my-stick', author='Kenny Do', author_email='chinesedewey@gmail.com', classifiers=[ ...
25.227273
51
0.610811
67
555
4.985075
0.791045
0.071856
0.149701
0.155689
0
0
0
0
0
0
0
0.016548
0.237838
555
21
52
26.428571
0.77305
0
0
0
0
0
0.448649
0.03964
0
0
0
0
0
1
0
true
0
0.052632
0
0.052632
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
8b6521edee5c7a6f815e52a5b53c02dede9be866
918
py
Python
iconparse/image_store.py
donk-project/pydonk
50417ce9e655cdcab20918b474039426f583d6d3
[ "MIT" ]
null
null
null
iconparse/image_store.py
donk-project/pydonk
50417ce9e655cdcab20918b474039426f583d6d3
[ "MIT" ]
null
null
null
iconparse/image_store.py
donk-project/pydonk
50417ce9e655cdcab20918b474039426f583d6d3
[ "MIT" ]
null
null
null
# Donk Project # Copyright (c) 2021 Warriorstar Orion <orion@snowfrost.garden> # SPDX-License-Identifier: MIT import pathlib from typing import Dict from iconparse.reader import DmiData, Reader from iconparse.extractor import Extractor class ImageStore: def __init__(self, root: pathlib.Path): self.root: ...
32.785714
69
0.676471
117
918
5.239316
0.350427
0.107667
0.097879
0.12398
0.130506
0.130506
0.130506
0.130506
0.130506
0.130506
0
0.005579
0.218954
918
27
70
34
0.849372
0.1122
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0
0.526316
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
8b66b9f64668e1a15163413263d5b63cdc824a7c
1,435
py
Python
Scripts/ExplicitInstantation.py
fbudin69500/calatk
3cee90488feab7e3ef2ade1f791106aa7f11e404
[ "Apache-2.0" ]
2
2019-09-15T12:51:02.000Z
2020-04-08T14:03:58.000Z
Scripts/ExplicitInstantation.py
cpatrick/calatk
849c17919ac5084b5b067c7631bc2aa1efd650df
[ "Apache-2.0" ]
null
null
null
Scripts/ExplicitInstantation.py
cpatrick/calatk
849c17919ac5084b5b067c7631bc2aa1efd650df
[ "Apache-2.0" ]
1
2018-10-20T16:38:28.000Z
2018-10-20T16:38:28.000Z
#!/usr/bin/env python """Create a .cxx file that performs explicit instantiation over float/double and dimensions 1, 2, and 3. Writes the file to the current directory.""" usage = "ExplicitInstantiation.py <class_name>" import sys if len(sys.argv) < 2 or sys.argv[1] == '-h' or sys.argv[1] == '--help': print(us...
26.090909
80
0.694774
213
1,435
4.647887
0.507042
0.060606
0.084848
0.057576
0
0
0
0
0
0
0
0.026182
0.174913
1,435
54
81
26.574074
0.809966
0.114983
0
0
0
0
0.739715
0.018987
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b67d69e37e542f410bab436a641c536c8c9539f
3,231
py
Python
aiopogo/auth_google.py
DennyLoko/aiopogo
55a9efe13c51261c68ab2abe8efc4ac69e04eb01
[ "MIT" ]
14
2017-03-28T16:32:24.000Z
2021-03-13T23:03:57.000Z
aiopogo/auth_google.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
8
2017-03-01T07:56:09.000Z
2017-08-15T07:37:12.000Z
aiopogo/auth_google.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
14
2017-04-08T20:01:50.000Z
2017-08-19T04:23:57.000Z
from concurrent.futures import ThreadPoolExecutor from functools import partial from time import time try: from gpsoauth import perform_master_login, perform_oauth except ImportError: def perform_master_login(*args, **kwargs): raise ImportError('Must install gpsoauth to use Google accounts') perfor...
36.715909
127
0.662953
351
3,231
5.840456
0.307692
0.085854
0.058537
0.029268
0.173171
0.12878
0.12878
0.05561
0.05561
0.05561
0
0.028547
0.262767
3,231
87
128
37.137931
0.832074
0
0
0.257143
0
0
0.159084
0.050449
0
0
0
0
0.028571
1
0.028571
false
0.071429
0.114286
0
0.242857
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
8b6bbd5a925b35697b012e2714a2cfeb198264c6
651
py
Python
api/team_directory/questions/migrations/0003_auto_20200930_0947.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
null
null
null
api/team_directory/questions/migrations/0003_auto_20200930_0947.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
2
2020-06-05T23:54:21.000Z
2020-09-30T12:50:16.000Z
api/team_directory/questions/migrations/0003_auto_20200930_0947.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-09-30 09:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('questions', '0002_create_questions'), ] operations = [ migrations.RemoveField( model_name='question', name='type', ...
28.304348
208
0.58679
63
651
5.952381
0.666667
0.048
0.090667
0.112
0
0
0
0
0
0
0
0.045455
0.256528
651
22
209
29.590909
0.729339
0.069124
0
0.25
1
0
0.256623
0.034768
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b6d14070d60a3432471d3e5b7787427ad3b6a3d
565
py
Python
CursoemVideo/Desafio076.py
davihonorato/Curso-python
47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0
[ "MIT" ]
null
null
null
CursoemVideo/Desafio076.py
davihonorato/Curso-python
47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0
[ "MIT" ]
null
null
null
CursoemVideo/Desafio076.py
davihonorato/Curso-python
47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0
[ "MIT" ]
null
null
null
# Exercício Python 076: Crie um programa que tenha uma tupla única com nomes de produtos e seus respectivos preços, na sequência. # No final, mostre uma listagem de preços, organizando os dados em forma tabular. produtos = ('LÁPIS', 1.75, 'BORRACHA', 2, 'CADERNO', 20, 'CANETAS', 7, ...
31.388889
129
0.580531
81
565
4.049383
0.703704
0.064024
0.128049
0.091463
0
0
0
0
0
0
0
0.065882
0.247788
565
17
130
33.235294
0.705882
0.366372
0
0.214286
0
0
0.259155
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8b6dc47fa5a53a344b6d3a7e96adce1b89de4411
521
py
Python
projects/golem_integration/tests/actions/wait_for_element_enabled.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_integration/tests/actions/wait_for_element_enabled.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_integration/tests/actions/wait_for_element_enabled.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
from golem import actions description = 'Verify wait_for_element_enabled action' def test(data): actions.navigate(data.env.url+'dynamic-elements/?delay=3') actions.wait_for_element_enabled('#button-three', 10) actions.verify_element_enabled('#button-three') actions.navigate(data.env.url + 'dynamic-el...
34.733333
85
0.729367
73
521
5.054795
0.520548
0.108401
0.113821
0.170732
0.455285
0.455285
0.455285
0.243902
0
0
0
0.013575
0.151631
521
14
86
37.214286
0.821267
0
0
0
0
0
0.349328
0.142035
0
0
0
0
0.090909
1
0.090909
false
0
0.090909
0
0.181818
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
8b73af8b167c0c808ac06e682936f0020d7644ea
2,104
py
Python
python/raft/NodeState.py
chenzhaoplus/vraft
73fe880289061cfbb62aa33b8e5c7d012543bb9d
[ "Apache-2.0" ]
23
2020-05-17T04:22:17.000Z
2022-02-22T02:09:34.000Z
python/raft/NodeState.py
chenzhaoplus/vraft
73fe880289061cfbb62aa33b8e5c7d012543bb9d
[ "Apache-2.0" ]
1
2020-10-22T11:47:54.000Z
2020-10-22T11:47:54.000Z
python/raft/NodeState.py
chenzhaoplus/vraft
73fe880289061cfbb62aa33b8e5c7d012543bb9d
[ "Apache-2.0" ]
11
2020-07-11T07:12:19.000Z
2022-03-23T08:24:15.000Z
import collections from cluster import Cluster import logging logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', datefmt='%H:%M:%S', level=logging.INFO) VoteResult = collections.namedtuple('VoteResult', ['term', 'vote_granted', 'id']) class NodeState: def __init__(self, node=None): ...
42.08
113
0.66635
283
2,104
4.823322
0.289753
0.112821
0.120879
0.069597
0.380952
0.348718
0.348718
0.316484
0.057143
0.057143
0
0.001861
0.23384
2,104
49
114
42.938776
0.844913
0.281844
0
0.2
0
0
0.204136
0
0
0
0
0.020408
0
1
0.1
false
0
0.1
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
1
0
0
0
0
0
0
0
0
0
0
1
8b772e552dd2f4d89f3edbd1233977b33bf49895
542
py
Python
solutions/593_valid_square.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/593_valid_square.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/593_valid_square.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def validSquare(self, p1: List[int], p2: List[int], p3: List[int], p4: List[int]) -> bool: """Math. Running time: O(1) """ v = [p1, p2, p3, p4] e = [] for i, p in enumerate(v): for j, q in enumerate(v[i+1:]): e.append(((p[0...
36.133333
102
0.389299
96
542
2.197917
0.364583
0.132701
0.113744
0.056872
0
0
0
0
0
0
0
0.106017
0.356089
542
15
103
36.133333
0.498567
0.046125
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b77b588bbd23056762b56f743c2a98bf3afca31
868
py
Python
calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/cert_script.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
1
2016-05-10T22:36:31.000Z
2016-05-10T22:36:31.000Z
calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/cert_script.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/cert_script.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from calvin.utilities import certificate import os print "Trying to create a new domain configuration." testconfig = certificate.Config(domain="test") # testconfig2 = certificate.Config(domain="evil") print "Reading configuration successfull." print "Creating new domain." certificate.new_domain(test...
36.166667
73
0.75
110
868
5.845455
0.409091
0.069984
0.097978
0.130638
0.329705
0.152411
0.152411
0.152411
0
0
0
0.011796
0.120968
868
23
74
37.73913
0.830931
0.259217
0
0
0
0
0.216301
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8b78243e120efed83eabeee3ef9fab1fbb90cb9c
2,526
py
Python
users/migrations/0001_initial.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
6
2017-11-11T08:43:55.000Z
2021-06-10T19:38:24.000Z
users/migrations/0001_initial.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-23 05:30 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('hostel', ...
56.133333
266
0.641726
291
2,526
5.408935
0.42268
0.045743
0.057179
0.076239
0.302414
0.302414
0.175349
0.175349
0.175349
0.175349
0
0.027694
0.213777
2,526
44
267
57.409091
0.764854
0.02692
0
0
1
0
0.234623
0.014257
0
0
0
0
0
1
0
false
0.027778
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b827211c6d78c4e03e51a44190d8e3f1cffc3db
2,443
py
Python
legacy/models/GAT.py
astrockragh/IceCube
eba09e9f9a3c351dbf05496821bcd7d29ac0261c
[ "MIT" ]
null
null
null
legacy/models/GAT.py
astrockragh/IceCube
eba09e9f9a3c351dbf05496821bcd7d29ac0261c
[ "MIT" ]
null
null
null
legacy/models/GAT.py
astrockragh/IceCube
eba09e9f9a3c351dbf05496821bcd7d29ac0261c
[ "MIT" ]
2
2021-03-03T20:39:38.000Z
2021-06-09T11:58:00.000Z
import numpy as np import tensorflow as tf from tensorflow.keras.callbacks import EarlyStopping from tensorflow.keras.layers import Dropout, Input from tensorflow.keras.models import Model from tensorflow.keras.regularizers import l2 from tensorflow.random import set_seed from spektral.transforms.layer_preprocess impor...
46.09434
164
0.669668
342
2,443
4.675439
0.365497
0.070044
0.071295
0.013133
0.11945
0.052533
0
0
0
0
0
0.026842
0.222268
2,443
53
165
46.09434
0.814737
0.158821
0
0
0
0
0.005874
0
0
0
0
0
0
1
0.046512
false
0
0.302326
0
0.395349
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
8b83777c4cdb8551be6cb2f0840e3a838be9ce71
792
py
Python
pyleecan/Methods/Slot/SlotUD2/get_surface_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Slot/SlotUD2/get_surface_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Slot/SlotUD2/get_surface_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
from numpy import arcsin, exp from ....Classes.Segment import Segment from ....Classes.Arc1 import Arc1 from ....Classes.SurfLine import SurfLine def get_surface_active(self, alpha=0, delta=0): """Return the full winding surface Parameters ---------- self : SlotUD2 A SlotUD2 object alpha...
22.628571
59
0.64899
96
792
5.25
0.541667
0.065476
0.051587
0
0
0
0
0
0
0
0
0.018456
0.247475
792
34
60
23.294118
0.827181
0.42298
0
0
0
0
0.035176
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
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
1
0
0
0
0
1
8b8fdfbcf9706a09172ee59fba63e07828a65599
2,492
py
Python
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA 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 wr...
25.428571
74
0.620385
428
2,492
3.537383
0.261682
0.055482
0.094452
0.130779
0.2893
0.176354
0.119551
0.119551
0.119551
0.119551
0
0.034682
0.236356
2,492
97
75
25.690722
0.760904
0.28451
0
0.135593
0
0
0.004535
0
0
0
0
0
0.440678
1
0.016949
false
0
0.033898
0
0.067797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8b90aeb5aec1b01857b6aa8b3d9934d4cfdd1543
29,250
py
Python
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from qumra...
32.79148
653
0.645675
3,349
29,250
5.407286
0.050761
0.061406
0.15241
0.134187
0.659893
0.558562
0.523828
0.420233
0.316031
0.225026
0
0.023755
0.270325
29,250
891
654
32.828283
0.82472
0.336068
0
0.086514
1
0
0.141755
0.009806
0
0
0
0
0
1
0.167939
false
0
0.010178
0
0.279898
0.005089
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
8b9488221b16161dd9b114f9406bbcd8771818fb
11,341
py
Python
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
3
2018-11-09T16:13:32.000Z
2019-11-10T20:10:10.000Z
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
null
null
null
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
1
2018-10-24T10:28:52.000Z
2018-10-24T10:28:52.000Z
import numpy as np import pandas as pd from nilmtk import TimeFrame import datetime import matplotlib.pyplot as plt # transients['active transition'].cumsum().resample('2s', how='ffill').plot() class GaussianStateMachines(object): """ This class is a basic simulator, which creates sample loads by randomizing...
49.308696
184
0.571907
1,276
11,341
4.974922
0.30721
0.032766
0.009452
0.003308
0.137051
0.113264
0.101607
0.08995
0.071676
0.071676
0
0.045798
0.310731
11,341
229
185
49.524017
0.766279
0.288687
0
0.088
0
0
0.125825
0.005545
0
0
0
0.0131
0
1
0.024
false
0
0.04
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1