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
6e0e0016c32d44f3216ae9a4155b219cf3d14ebb
434
py
Python
src/essentials/literals/booleanLiterals.py
ozanyldzgithuboffical/OzzyPythonSeriesPack
5ba98449d8ab744db98ae038dc7a137edbaaff5d
[ "MIT" ]
null
null
null
src/essentials/literals/booleanLiterals.py
ozanyldzgithuboffical/OzzyPythonSeriesPack
5ba98449d8ab744db98ae038dc7a137edbaaff5d
[ "MIT" ]
null
null
null
src/essentials/literals/booleanLiterals.py
ozanyldzgithuboffical/OzzyPythonSeriesPack
5ba98449d8ab744db98ae038dc7a137edbaaff5d
[ "MIT" ]
null
null
null
# @Author: Ozan YILDIZ@2022 # Boolean Variable Literal Examples booleanTrue = True booleanFalse = False four = True + 3 two = False - 0 trueResult = (four == 4) falseResult = (two == 3) if __name__ == '__main__': print("Boolean True (True)", booleanTrue) print("Boolean False (False)", booleanFalse) print("F...
27.125
48
0.665899
51
434
5.509804
0.470588
0.085409
0
0
0
0
0
0
0
0
0
0.022663
0.186636
434
15
49
28.933333
0.773371
0.135945
0
0
0
0
0.22043
0
0
0
0
0
0
1
0
false
0
0
0
0
0.461538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
6e113c96203ee84c58073d84bf213d738faf1214
506
py
Python
python/plot_eigenstuff.py
medakk/geodesic-sandbox
955af7d0cdecf472045b3227f2981c41070e9a10
[ "MIT" ]
null
null
null
python/plot_eigenstuff.py
medakk/geodesic-sandbox
955af7d0cdecf472045b3227f2981c41070e9a10
[ "MIT" ]
null
null
null
python/plot_eigenstuff.py
medakk/geodesic-sandbox
955af7d0cdecf472045b3227f2981c41070e9a10
[ "MIT" ]
null
null
null
import sys import numpy as np import matplotlib.pyplt as plt fname = plt.matshow(D) plt.colorbar() plt.title('Vertex-Vertex distances for sphere(9802 vertices)') plt.xlabel('Vertex i') plt.ylabel('Vertex j') plt.show() v = scipy.linalg.eigvals(D) first_k = 5000 plt.plot(np.abs(np.real((v[:first_k])))) plt.xla...
17.448276
74
0.721344
86
506
4.209302
0.55814
0.049724
0
0
0
0
0
0
0
0
0
0.017857
0.114625
506
28
75
18.071429
0.790179
0
0
0.105263
0
0
0.333992
0
0
0
0
0
0
0
null
null
0
0.157895
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
6e12c831843151d9eaf07c9abd0395da75ec67e3
5,501
py
Python
client.py
MrHamdulay/rsa-chat
08548c4ed7a8304c028a6a51a1b1bf85f6254072
[ "MIT" ]
null
null
null
client.py
MrHamdulay/rsa-chat
08548c4ed7a8304c028a6a51a1b1bf85f6254072
[ "MIT" ]
null
null
null
client.py
MrHamdulay/rsa-chat
08548c4ed7a8304c028a6a51a1b1bf85f6254072
[ "MIT" ]
null
null
null
import rsa import sys import socket import threading from time import sleep, time import errno import Queue from protocol import Protocol class ChatThread(threading.Thread): def __init__(self, name): threading.Thread.__init__(self) self.public_key, self.private_key = rsa.generate_keys() p...
31.797688
99
0.561171
698
5,501
4.293696
0.269341
0.036036
0.032699
0.011345
0.029363
0.017351
0
0
0
0
0
0.010156
0.337757
5,501
172
100
31.982558
0.812517
0.041447
0
0.114504
0
0
0.124254
0
0
0
0
0
0
0
null
null
0.007634
0.061069
null
null
0.10687
0
0
0
null
0
0
0
0
0
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
6e18cc257b87b43b00acc6f41fb58315ed50d407
691
py
Python
kindle/__init__.py
JeiKeiLim/torch-kindle
14dbde090d8f15f63e5c8403e5e087a72c37a530
[ "MIT" ]
76
2021-02-16T17:03:39.000Z
2022-01-24T17:25:21.000Z
kindle/__init__.py
JeiKeiLim/torch-kindle
14dbde090d8f15f63e5c8403e5e087a72c37a530
[ "MIT" ]
10
2021-02-16T13:06:20.000Z
2022-01-20T02:41:11.000Z
kindle/__init__.py
JeiKeiLim/torch-kindle
14dbde090d8f15f63e5c8403e5e087a72c37a530
[ "MIT" ]
8
2021-02-19T00:35:47.000Z
2021-09-07T07:24:10.000Z
"""Kindle is an easy model build package for PyTorch. Building a deep learning model became so simple that almost all model can be made by copy and paste from other existing model codes. So why code? when we can simply build a model with yaml markup file. - Author: Jongkuk Lim - Contact: lim.jeikei@gmail.com - URL: ...
23.033333
68
0.739508
94
691
5.308511
0.62766
0.08016
0
0
0
0
0
0
0
0
0
0
0.180897
691
29
69
23.827586
0.881625
0.509407
0
0
0
0
0.198795
0
0
0
0
0
0
1
0
false
0
0.357143
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6e1ffb7c6e415ec4d522efc8a576b6ceac0f7bab
514
py
Python
src/TeaRoom/wsgi.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
null
null
null
src/TeaRoom/wsgi.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
15
2015-05-20T12:55:13.000Z
2022-03-11T23:26:40.000Z
src/TeaRoom/wsgi.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
2
2016-11-17T11:07:41.000Z
2017-07-07T11:18:36.000Z
""" WSGI config for TeaRoom project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TeaRoom.settings.production") from dj...
27.052632
78
0.772374
73
514
5.342466
0.616438
0.069231
0.092308
0
0
0
0
0
0
0
0
0
0.110895
514
18
79
28.555556
0.853392
0.575875
0
0
0
0
0.267943
0.23445
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
6e2213d21bdeb52388faea4199a51c93e3e3aba7
7,547
py
Python
fpga/lib/kugelblitz/tb/axil_kg_regfile/test_axil_kg_regfile.py
mehr74/corundum
e0fa58d288e0443e752a346bf930a994f611d64b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
fpga/lib/kugelblitz/tb/axil_kg_regfile/test_axil_kg_regfile.py
mehr74/corundum
e0fa58d288e0443e752a346bf930a994f611d64b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
fpga/lib/kugelblitz/tb/axil_kg_regfile/test_axil_kg_regfile.py
mehr74/corundum
e0fa58d288e0443e752a346bf930a994f611d64b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import os import random import cocotb import cocotb_test.simulator import pytest from cocotb.clock import Clock from cocotb.regression import TestFactory from cocotb.triggers import RisingEdge from cocotbext.axi import AxiLiteMaster, AxiLiteBus class TB(object): def __init__(self, dut): se...
42.162011
118
0.66172
1,075
7,547
4.343256
0.12
0.056543
0.061683
0.082245
0.742557
0.712572
0.683658
0.65453
0.617905
0.530735
0
0.011177
0.21757
7,547
178
119
42.398876
0.779509
0.001458
0
0.41958
0
0
0.073401
0
0
0
0
0
0.055944
1
0.027972
false
0
0.06993
0
0.104895
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6e2c879c251aff0986eb76be4424c71eea7c7708
1,232
py
Python
maskRCNN/mrcnn_config.py
olgaliak/segmentation-unet-maskrcnn
caaa031a8280d0557abd748c62a66d0db29bc45e
[ "MIT" ]
85
2018-07-09T05:22:24.000Z
2021-12-28T16:08:16.000Z
maskRCNN/mrcnn_config.py
changguoji/segmentation-unet-maskrcnn
caaa031a8280d0557abd748c62a66d0db29bc45e
[ "MIT" ]
3
2018-10-10T13:21:39.000Z
2020-04-11T18:11:59.000Z
maskRCNN/mrcnn_config.py
olgaliak/segmentation-unet-maskrcnn
caaa031a8280d0557abd748c62a66d0db29bc45e
[ "MIT" ]
41
2018-05-29T12:20:32.000Z
2022-03-05T13:16:18.000Z
from config import Config class inputConfig(): NUM_CLASSES = 4 CLASS_DICT = {1: 'waterways', 2: 'fieldborders', 3: 'terraces', 4: 'wsb'} CATEGORIES = list(CLASS_DICT.values()) CATEGORIES_VALUES = list(CLASS_DICT.keys()) NUM_EPOCHES = 1 # TRAIN_LAYERS = 'all' # SAVE_TRAIN = 'logs' IMAGE_...
31.589744
77
0.689123
169
1,232
4.881657
0.573965
0.036364
0.050909
0.050909
0.075152
0
0
0
0
0
0
0.026233
0.226461
1,232
39
78
31.589744
0.839454
0.380682
0
0.095238
0
0
0.170732
0.116531
0
0
0
0
0
1
0
false
0
0.047619
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6e2f34dd3f18a411bc45966000ebb61e4a7b9eaf
365
py
Python
tests/jardin_conf_pg.py
gjreda/jardin
505b1ba294f949bc3d4f6c87fd3d7fdc81c89150
[ "MIT" ]
null
null
null
tests/jardin_conf_pg.py
gjreda/jardin
505b1ba294f949bc3d4f6c87fd3d7fdc81c89150
[ "MIT" ]
null
null
null
tests/jardin_conf_pg.py
gjreda/jardin
505b1ba294f949bc3d4f6c87fd3d7fdc81c89150
[ "MIT" ]
null
null
null
import logging import os PGPORT = os.environ.get("PGPORT", 5432) DATABASES = { 'jardin_test': 'postgres://postgres:@localhost:%s/jardin_test' % PGPORT, 'other_test_dict_config': { 'username': 'test', 'password': 'test', 'database': 'jardin_test', 'host': 'localhost', 'p...
20.277778
76
0.59726
39
365
5.410256
0.641026
0.14218
0
0
0
0
0
0
0
0
0
0.028777
0.238356
365
17
77
21.470588
0.730216
0
0
0
0
0
0.394521
0.183562
0
0
0
0
0
1
0
false
0.071429
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6e306ea096a09e6514104d51a91151608741604c
1,376
py
Python
parquet_sql.py
ebegoli/INFORMS2016
b13d735aae05a2f505ef7b283e8f16aa888ea588
[ "MIT" ]
null
null
null
parquet_sql.py
ebegoli/INFORMS2016
b13d735aae05a2f505ef7b283e8f16aa888ea588
[ "MIT" ]
null
null
null
parquet_sql.py
ebegoli/INFORMS2016
b13d735aae05a2f505ef7b283e8f16aa888ea588
[ "MIT" ]
null
null
null
# Reference : https://bigdatatinos.com/2016/02/08/using-spark-hdinsight-to-analyze-us-air-traffic/ import pyspark from pyspark import SparkConf from pyspark import SparkContext from pyspark.sql import SQLContext import atexit sc = SparkContext('local[*]') sqlc = SQLContext(sc) atexit.register(lambda: sc.stop()) imp...
39.314286
158
0.781977
191
1,376
5.602094
0.387435
0.052336
0.06729
0.050467
0.272897
0.272897
0.272897
0.242991
0.162617
0.115888
0
0.021173
0.107558
1,376
34
159
40.470588
0.850163
0.284884
0
0
0
0.125
0.559096
0.079137
0
0
0
0
0
1
0
false
0
0.4375
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6e3af91f3abd971a6d3815ea0e3d67105f468ab1
1,306
py
Python
botx/clients/methods/v3/notification/direct_notification.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/v3/notification/direct_notification.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/v3/notification/direct_notification.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Method for sending notification into single chat.""" from typing import Optional from uuid import UUID from pydantic import Field from botx.clients.methods.base import AuthorizedBotXMethod from botx.clients.methods.extractors import extract_generated_sync_id from botx.clients.types.message_payload import ResultPay...
31.853659
69
0.7634
156
1,306
6.205128
0.455128
0.057851
0.077479
0.061983
0.086777
0.086777
0.086777
0
0
0
0
0.000911
0.159265
1,306
40
70
32.65
0.880692
0.240429
0
0
0
0
0.061475
0.042008
0
0
0
0
0
1
0
false
0
0.47619
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6e3d1a3b93c1cba28021273a415c1fab589698c5
1,024
py
Python
tests/test_data.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
null
null
null
tests/test_data.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
9
2019-01-16T15:13:37.000Z
2019-07-29T18:31:58.000Z
tests/test_data.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
null
null
null
import pace.data from pace import Sample from pkg_resources import resource_stream def test_decoy_parsing(): decoys = pace.data.read_decoys_file( resource_stream("pace", "data/decoys_9.txt")) assert len(decoys) == 982791 assert decoys[:4] == [ "AAAAAAAAF", "AAAAAAAAV", ...
26.947368
62
0.605469
116
1,024
5.163793
0.353448
0.093489
0.113523
0.160267
0.130217
0
0
0
0
0
0
0.070039
0.24707
1,024
37
63
27.675676
0.706874
0
0
0
0
0
0.173828
0
0
0
0
0
0.2
1
0.1
false
0
0.1
0
0.2
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
6e4e70d6ef224f8e7595590c7d25f4f6a02fb2ea
7,667
py
Python
plugin.program.super.favourites/download.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.program.super.favourites/download.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.program.super.favourites/download.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
''' Simple XBMC Download Script Copyright (C) 2013 Sean Poyser (seanpoyser@gmail.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at y...
30.066667
167
0.553019
914
7,667
4.611597
0.294311
0.015421
0.024911
0.004745
0.111269
0.09134
0.078055
0.024911
0.012811
0
0
0.032095
0.329464
7,667
255
168
30.066667
0.787784
0.037433
0
0.219653
0
0.011561
0.11571
0.004079
0
0
0
0
0
0
null
null
0.011561
0.057803
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
6e52646fc05ba22127657054efa35e085744e285
1,306
py
Python
Config.py
acendrou/DiscordBot_Tfl
330643faf9d2ad9d01fe6b05c2d7cc769c209cc0
[ "MIT" ]
null
null
null
Config.py
acendrou/DiscordBot_Tfl
330643faf9d2ad9d01fe6b05c2d7cc769c209cc0
[ "MIT" ]
null
null
null
Config.py
acendrou/DiscordBot_Tfl
330643faf9d2ad9d01fe6b05c2d7cc769c209cc0
[ "MIT" ]
null
null
null
import configparser from os import environ as env class Config: def __init__(self): self.tfl_app_key: str self.discordChannel_webhook_id: str self.discordChannel_webhook_token: str class ConfigEnviron(Config): # for Heroku : the secrets (key for Tfl and Discord) are in the environment ...
33.487179
100
0.659265
151
1,306
5.443709
0.311258
0.131387
0.182482
0.047445
0.400243
0.328467
0.065693
0.065693
0
0
0
0
0.249617
1,306
38
101
34.368421
0.838776
0.08193
0
0.25
0
0
0.130544
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.285714
0.107143
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
6e527ceff0c8ad716e949b823c9dad4b67e113aa
271
py
Python
demo.py
SWHL/image_augmentor
9ddee297d9acf4b16684fbfebdd153a6728d3e72
[ "Apache-2.0" ]
null
null
null
demo.py
SWHL/image_augmentor
9ddee297d9acf4b16684fbfebdd153a6728d3e72
[ "Apache-2.0" ]
null
null
null
demo.py
SWHL/image_augmentor
9ddee297d9acf4b16684fbfebdd153a6728d3e72
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- encoding: utf-8 -*- # @File: demo.py # @Author: SWHL # @Contact: liekkaskono@163.com from img_aug_offline import ImgAugOffline img_auger = ImgAugOffline() img_auger(r'E:\PythonProjects\image_augmentor\images', ['fliph', 'flipv'])
22.583333
54
0.690037
35
271
5.2
0.885714
0.175824
0.230769
0
0
0
0
0
0
0
0
0.017241
0.143911
271
12
55
22.583333
0.767241
0.380074
0
0
0
0
0.306748
0.245399
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
280d2b89a18ff87f035655d377ee25f9304e1d72
459
py
Python
python/tweet_data_example.py
fuguefoundation/webscrape-twitterbot
fcd0c30f66916ce5c1735a30ef0657c3661ae424
[ "MIT" ]
null
null
null
python/tweet_data_example.py
fuguefoundation/webscrape-twitterbot
fcd0c30f66916ce5c1735a30ef0657c3661ae424
[ "MIT" ]
null
null
null
python/tweet_data_example.py
fuguefoundation/webscrape-twitterbot
fcd0c30f66916ce5c1735a30ef0657c3661ae424
[ "MIT" ]
null
null
null
tweet_at = '@Attribution' tweet_url = 'https://example.com/additional-url' tweet_hashtag = '#MyHashtag' tweet_data = [ { 'image': 'https://example.com/image.jpg', 'id': 'image_id', 'title': 'Example title', 'desc': 'Example description with lots of text that probably goes well over the 280 character lim...
41.727273
234
0.716776
64
459
5.0625
0.734375
0.074074
0.092593
0
0
0
0
0
0
0
0
0.007853
0.167756
459
11
235
41.727273
0.840314
0
0
0
0
0.1
0.741304
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2811de0612bf8f014d8da10b1af00bb5a35fa6a5
1,500
py
Python
doctor/models.py
remedo/django-back
fe28b2a1a2a14cd182d9a7541159f7e056845770
[ "MIT" ]
null
null
null
doctor/models.py
remedo/django-back
fe28b2a1a2a14cd182d9a7541159f7e056845770
[ "MIT" ]
1
2019-07-28T07:52:40.000Z
2019-07-28T07:52:40.000Z
doctor/models.py
remedo/django-back
fe28b2a1a2a14cd182d9a7541159f7e056845770
[ "MIT" ]
null
null
null
from django.db import models import hashlib from pickle import loads # Create your models here. class Doctor(models.Model): doctor_id= models.AutoField(primary_key=True,unique=True) name= models.CharField(max_length=20) reg_no= models.CharField(max_length=20) spl= models.CharField(max_length=20) w...
39.473684
125
0.7
207
1,500
4.884058
0.352657
0.089021
0.106825
0.142433
0.272997
0.122651
0.122651
0
0
0
0
0.015273
0.170667
1,500
37
126
40.540541
0.797428
0.016
0
0
0
0
0.033243
0
0
0
0
0
0
1
0.090909
false
0.030303
0.090909
0
0.606061
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
281252486ac1535083dce36ace073ff0a2286627
1,886
py
Python
app.py
JPoser/jacket-server
413da4b4630c2db4afae3cdd509bb96e22be5968
[ "MIT" ]
null
null
null
app.py
JPoser/jacket-server
413da4b4630c2db4afae3cdd509bb96e22be5968
[ "MIT" ]
null
null
null
app.py
JPoser/jacket-server
413da4b4630c2db4afae3cdd509bb96e22be5968
[ "MIT" ]
null
null
null
from flask import Flask, jsonify import tweepy, configparser config = configparser.ConfigParser() config.read("config.ini") consumer_key = config['twitter']['twitter_key'] consumer_secret = config['twitter']['twitter_secret'] access_token = config['twitter']['access_token'] access_token_secret = config['twitter']['ac...
27.333333
70
0.671262
243
1,886
4.958848
0.296296
0.126971
0.118672
0.183402
0.147718
0.058091
0.058091
0.058091
0
0
0
0.001341
0.209438
1,886
68
71
27.735294
0.806841
0
0
0.070175
0
0
0.182927
0
0
0
0
0
0
1
0.070175
false
0
0.035088
0.017544
0.403509
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
28148d7333d22c0e61d6189de0e76d6b9aaaba56
5,082
py
Python
services/raw-message-dbs/mongo-raw-message-db/source/mqtt_integration.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
4
2021-09-10T09:46:18.000Z
2021-12-05T17:55:14.000Z
services/raw-message-dbs/mongo-raw-message-db/source/mqtt_integration.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
services/raw-message-dbs/mongo-raw-message-db/source/mqtt_integration.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
import os import json import signal import logging from urllib.parse import quote_plus from pymongo import MongoClient from paho.mqtt.client import Client # Trigger graceful shutdown on docker container stop def call_sysexit(signal, frame): raise SystemExit() signal.signal(signal.SIGTERM, call_sysexit) # Load ...
29.375723
79
0.718615
695
5,082
5.033094
0.299281
0.046312
0.051458
0.039451
0.145798
0.095483
0.069182
0.052601
0.025729
0.025729
0
0.004797
0.179654
5,082
172
80
29.546512
0.834253
0.214286
0
0.117647
0
0
0.193425
0.013507
0
0
0
0
0
1
0.042017
false
0.092437
0.058824
0
0.109244
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
2814b24c9a5696eed2b68432d785b8124bea776b
1,014
py
Python
uptime.py
dwightmulcahy/healthchecker.server
2355421797608cae8a2141863b161040afb5a7b9
[ "Apache-2.0" ]
null
null
null
uptime.py
dwightmulcahy/healthchecker.server
2355421797608cae8a2141863b161040afb5a7b9
[ "Apache-2.0" ]
18
2020-01-16T18:50:28.000Z
2020-01-29T18:54:22.000Z
uptime.py
dwightmulcahy/healthchecker.server
2355421797608cae8a2141863b161040afb5a7b9
[ "Apache-2.0" ]
null
null
null
from datetime import datetime class UpTime: def __init__(self): self.startDatetime = datetime.now() def __repr__(self): return self.__str__() def current(self): return (datetime.now() - self.startDatetime).total_seconds() def __str__(self): return self.timetostring(s...
28.971429
83
0.557199
115
1,014
4.608696
0.4
0.030189
0.033962
0
0
0
0
0
0
0
0
0.043909
0.303748
1,014
34
84
29.823529
0.706799
0
0
0
0
0
0.045365
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0.115385
0.423077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
28166aa2c258458d1c5184ad6a6c2edcd11deafe
950
py
Python
Verify-Manual-python/train/core/train.py
skyduy/zfverify
a49e314df7b8b3822dd941b44d68c0fde77df9c9
[ "MIT" ]
52
2016-01-25T14:42:20.000Z
2021-01-26T11:23:18.000Z
Verify-Manual-python/train/core/train.py
wax8280/zfverify
a49e314df7b8b3822dd941b44d68c0fde77df9c9
[ "MIT" ]
2
2016-10-06T12:15:39.000Z
2018-06-06T11:20:01.000Z
Verify-Manual-python/train/core/train.py
wax8280/zfverify
a49e314df7b8b3822dd941b44d68c0fde77df9c9
[ "MIT" ]
23
2015-07-10T11:54:01.000Z
2020-03-05T03:25:16.000Z
# coding: utf-8 from numpy import matrix from oneVsAll import oneVsAll from numpy import loadtxt, savetxt from predictOneVsAll import predictOneVsAll def train(): num_labels = 34 print '... Training' X = matrix(loadtxt('X.dat')) / 255.0 y = matrix(loadtxt('y.dat')).transpose() the_lambda = 0.1 ...
27.941176
76
0.653684
140
950
4.271429
0.342857
0.108696
0.050167
0.026756
0
0
0
0
0
0
0
0.043081
0.193684
950
33
77
28.787879
0.737598
0.013684
0
0
0
0
0.163636
0
0
0
0
0
0
0
null
null
0
0.16
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
281a4b580508fcdbe4bb3e08f09740ddb8dafea4
12,170
py
Python
conpaas-director/cpsdirector/application.py
bopopescu/conpaas-2
0141a11b67b14757f445b44613ea79819b9c2eaf
[ "BSD-3-Clause" ]
5
2016-02-24T14:44:03.000Z
2020-11-29T19:18:40.000Z
conpaas-director/cpsdirector/application.py
bopopescu/conpaas-2
0141a11b67b14757f445b44613ea79819b9c2eaf
[ "BSD-3-Clause" ]
25
2015-03-23T16:05:19.000Z
2018-02-13T17:22:22.000Z
conpaas-director/cpsdirector/application.py
bopopescu/conpaas-2
0141a11b67b14757f445b44613ea79819b9c2eaf
[ "BSD-3-Clause" ]
2
2015-11-06T15:16:09.000Z
2020-07-26T03:18:03.000Z
# -*- coding: utf-8 -*- """ cpsdirector.application ======================= ConPaaS director: application support. :copyright: (C) 2013 by Contrail Consortium. """ from flask import Blueprint from flask import jsonify, request, g import simplejson, sys, traceback import ConfigParser from netaddr i...
33.434066
136
0.65456
1,565
12,170
4.926518
0.175719
0.013619
0.014267
0.022049
0.346952
0.279248
0.216602
0.170298
0.129831
0.100519
0
0.002562
0.230156
12,170
363
137
33.526171
0.820365
0.160148
0
0.265766
0
0
0.15
0.016806
0
0
0
0.002755
0
0
null
null
0
0.072072
null
null
0.009009
0
0
0
null
0
0
0
0
0
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
282074e17863f7dcf504e669c98bb3a6e4939949
3,208
py
Python
forwarder/tf-forwarder/scripts/tfapi.py
ninefiveslabs/networkservicemesh
4c86fdd4087759ba1d08e5412bf6811ba67aaf82
[ "Apache-2.0" ]
1
2020-09-29T06:34:22.000Z
2020-09-29T06:34:22.000Z
forwarder/tf-forwarder/scripts/tfapi.py
ninefiveslabs/networkservicemesh
4c86fdd4087759ba1d08e5412bf6811ba67aaf82
[ "Apache-2.0" ]
null
null
null
forwarder/tf-forwarder/scripts/tfapi.py
ninefiveslabs/networkservicemesh
4c86fdd4087759ba1d08e5412bf6811ba67aaf82
[ "Apache-2.0" ]
null
null
null
from vnc_api.vnc_api import VncApi, VirtualMachine, VirtualMachineInterface, PermType2, InstanceIp from vnc_api.exceptions import RefsExistError from cfgm_common import PERMS_RWX import uuid import sys import json api = VncApi('admin', 'contrail123', 'defaulttenant', ['10.0.2.15'], 8082, '/') vnet = sys.argv[2] vn_fq_...
32.734694
103
0.746259
497
3,208
4.503018
0.207243
0.034406
0.0563
0.021448
0.201072
0.161752
0.143878
0.143878
0.143878
0.143878
0
0.018478
0.139651
3,208
97
104
33.072165
0.792391
0.024314
0
0.153846
0
0
0.119346
0.01155
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.128205
0
0
0
null
0
0
0
0
0
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
28260920c3eed436f1107b0cabc5d868bb8b16bb
299
py
Python
shapelets/phs/__init__.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
18
2015-02-25T20:23:24.000Z
2022-01-21T08:42:46.000Z
shapelets/phs/__init__.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
12
2015-05-04T09:32:24.000Z
2016-03-31T06:26:45.000Z
shapelets/phs/__init__.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
4
2016-12-07T12:51:24.000Z
2019-11-21T09:31:30.000Z
""" A module interface to Measurement Set phase rotation functions """ import imp try: imp.find_module('casacore') casacore = True except ImportError: casacore = False if casacore: import ClassMS, ModRotate # these modules require casacore import ModColor, rad2hmsdms, reformat
16.611111
62
0.73913
35
299
6.285714
0.771429
0.127273
0
0
0
0
0
0
0
0
0
0.004149
0.19398
299
17
63
17.588235
0.908714
0.314381
0
0
0
0
0.040816
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2826b977f6a09a0c541b953c9d320845f1438da6
1,454
py
Python
app/site_company/message/models.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
app/site_company/message/models.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
app/site_company/message/models.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
from django.db import models from ..company_profile.models import CompanyProfile from ...core.db.fields import PositiveTinyIntegerField from ...core.db.models import TimeStampMixin from ...share_resources.master_data.models import TypeAutoReplyMessage from ...utils.storages import MediaRootS3Boto3Storage class Messa...
37.282051
95
0.774415
166
1,454
6.63253
0.319277
0.065395
0.070845
0.092643
0.301544
0.223433
0.223433
0.223433
0.223433
0.223433
0
0.013514
0.134801
1,454
38
96
38.263158
0.861685
0
0
0.25
0
0
0.028198
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.892857
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
282a18d0973dcfaf24eb620b418907de50fade76
876
py
Python
recipes/Python/87369_Priority_Queue/recipe-87369.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/87369_Priority_Queue/recipe-87369.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/87369_Priority_Queue/recipe-87369.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import Queue class PriorityQueue(Queue.Queue): def _put(self, item): data, priority = item self._insort_right((priority, data)) def _get(self): return self.queue.pop(0)[1] def _insort_right(self, x): """Insert item x in list, and keep it sorted assuming a is sorted...
22.461538
82
0.477169
129
876
3.193798
0.395349
0.06068
0.043689
0
0
0
0
0
0
0
0
0.022099
0.380137
876
38
83
23.052632
0.736648
0.018265
0
0
0
0
0.007267
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
28322188a7affee22a4b72e8b6f3625d7894d7e4
542
py
Python
docs/examples/python/thirdPartyService/dronedeliveryService/app.py
alex-snap/identityserver
2d1e6cebfee4492a5c98d169097a9811015def64
[ "BSD-3-Clause" ]
35
2016-02-09T09:20:53.000Z
2021-01-10T17:10:21.000Z
docs/examples/python/thirdPartyService/dronedeliveryService/app.py
alex-snap/identityserver
2d1e6cebfee4492a5c98d169097a9811015def64
[ "BSD-3-Clause" ]
575
2016-02-11T12:56:46.000Z
2020-03-24T09:42:04.000Z
docs/examples/python/thirdPartyService/dronedeliveryService/app.py
alex-snap/identityserver
2d1e6cebfee4492a5c98d169097a9811015def64
[ "BSD-3-Clause" ]
35
2016-02-04T12:59:27.000Z
2021-01-10T17:10:22.000Z
from flask import Flask, send_from_directory, send_file import wtforms_json from deliveries import deliveries_api from drones import drones_api app = Flask(__name__) app.config["WTF_CSRF_ENABLED"] = False wtforms_json.init() app.register_blueprint(deliveries_api) app.register_blueprint(drones_api) @app.route('/ap...
19.357143
55
0.754613
77
542
4.935065
0.480519
0.047368
0.089474
0
0
0
0
0
0
0
0
0
0.118081
542
27
56
20.074074
0.794979
0
0
0
0
0
0.119926
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0.117647
0.470588
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2837c0dde5238689c48991c53c55b5c0482462fb
2,507
py
Python
hello/oop.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
hello/oop.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
hello/oop.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
# 面向过程的程序设计,把计算机程序视为一系列的命令集合,即一组函数的顺序执行。为了简化程序设计,面向过程把函数继续切分为子函数, # 即把大块函数通过切割成小块函数来降低系统的复杂度。 # 面向对象编程,OOP,Object Oriented Programming,一种程序设计思想。OOP把对象作为程序的基本单元,一个对象包含了数据和操作数据的函数。 # 面向对象的程序设计把计算机程序视为一组对象的集合,而每个对象都可以接收其他对象发过来的消息,并处理这些消息, # 计算机程序的执行就是一系列消息在各个对象之间传递。 # 所以,面向对象的设计思想是抽象出Class,根据Class创建Instance,面向对象的抽象程度又比函...
29.845238
84
0.735939
252
2,507
7.063492
0.654762
0.026966
0.018539
0.019101
0.023596
0
0
0
0
0
0
0.005594
0.144396
2,507
83
85
30.204819
0.824242
0.612684
0
0.0625
0
0
0.050538
0
0
0
0
0
0
1
0.21875
false
0
0
0.0625
0.40625
0.09375
0
0
0
null
0
0
0
0
0
0
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
2838d1b3cc045050f7886878347253f819c62ece
439
py
Python
feincms/module/blog/extensions/tags.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
feincms/module/blog/extensions/tags.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
feincms/module/blog/extensions/tags.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
""" Simple tagging support using ``django-tagging``. """ from django.utils.translation import ugettext_lazy as _ import tagging from tagging.fields import TagField def register(cls, admin_cls): cls.add_to_class('tags', TagField(_('tags'))) # use another name for the tag descriptor # See http://code.goo...
25.823529
88
0.740319
63
439
5.031746
0.68254
0.082019
0
0
0
0
0
0
0
0
0
0.005305
0.14123
439
16
89
27.4375
0.835544
0.3918
0
0
0
0
0.050388
0
0
0
0
0
0
1
0.166667
false
0
0.5
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
283b3e287a46afbc3c3c56df1b251cb6e0b26c9c
9,461
py
Python
dist/Lib/site-packages/neo4jrestclient/tests/test_indices.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
1
2021-10-04T18:22:12.000Z
2021-10-04T18:22:12.000Z
dist/Lib/site-packages/neo4jrestclient/tests/test_indices.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
try2/lib/python3.9/site-packages/neo4jrestclient-2.1.1-py3.9.egg/neo4jrestclient/tests/test_indices.py
diatomsRcool/eco-kg
4251f42ca2ab353838a39b640cb97593db76d4f4
[ "BSD-3-Clause" ]
1
2022-01-13T10:05:55.000Z
2022-01-13T10:05:55.000Z
# -*- coding: utf-8 -*- from datetime import datetime import unittest import os from neo4jrestclient import client from neo4jrestclient.exceptions import NotFoundError, StatusException from neo4jrestclient.utils import PY2 NEO4J_URL = os.environ.get('NEO4J_URL', "http://localhost:7474/db/data/") NEO4J_VERSION = os.e...
42.617117
78
0.603319
1,217
9,461
4.581758
0.119145
0.059003
0.081779
0.071019
0.77995
0.742109
0.663737
0.579986
0.550036
0.550036
0
0.024383
0.241412
9,461
221
79
42.809955
0.752543
0.008456
0
0.429319
0
0
0.13617
0
0
0
0
0
0.151832
1
0.109948
false
0
0.031414
0
0.151832
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
284115f496a8df8f7b6ca2f2195f8a922a5c9b29
739
py
Python
projecteuler/p0026_test.py
mccxj/online-judge-code-example
e61c85b1af0613312e149986fb8bd64154d70d95
[ "Apache-2.0" ]
2
2018-04-26T09:36:21.000Z
2018-04-26T09:36:23.000Z
projecteuler/p0026_test.py
mccxj/leetcode
e61c85b1af0613312e149986fb8bd64154d70d95
[ "Apache-2.0" ]
4
2017-01-09T02:12:29.000Z
2017-01-15T01:34:41.000Z
projecteuler/p0026_test.py
mccxj/online-judge-code-example
e61c85b1af0613312e149986fb8bd64154d70d95
[ "Apache-2.0" ]
null
null
null
import unittest class Test0026(unittest.TestCase): def test_problem(self): longest, num = 0, 1 def find_cycle(n, mods): m = len(mods) for j in range(0, m): if n == mods[j]: return m - j return 0 for i in range(2, 100...
27.37037
54
0.410014
93
739
3.225806
0.430108
0.066667
0.066667
0.093333
0
0
0
0
0
0
0
0.076087
0.50203
739
26
55
28.423077
0.73913
0.050068
0
0
0
0
0
0
0
0
0
0
0.047619
1
0.095238
false
0
0.047619
0
0.285714
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
2845c6ee77bbb9a2ec4a36dc8fac0c0d97921933
6,883
py
Python
cloudmesh_client/shell/plugins/GroupCommand.py
izelarabm/client
d257de3b5ded6714b7cb52765b4b7fd0bffecd0c
[ "Apache-2.0" ]
3
2016-07-16T20:35:41.000Z
2017-03-27T23:31:27.000Z
cloudmesh_client/shell/plugins/GroupCommand.py
izelarabm/client
d257de3b5ded6714b7cb52765b4b7fd0bffecd0c
[ "Apache-2.0" ]
259
2015-06-18T19:19:14.000Z
2021-09-23T23:22:30.000Z
cloudmesh_client/shell/plugins/GroupCommand.py
izelarabm/client
d257de3b5ded6714b7cb52765b4b7fd0bffecd0c
[ "Apache-2.0" ]
19
2015-12-09T05:55:13.000Z
2018-12-02T08:08:43.000Z
from __future__ import print_function from cloudmesh_client.cloud.group import Group from cloudmesh_client.default import Default from cloudmesh_client.shell.command import command from cloudmesh_client.shell.console import Console from cloudmesh_client.shell.command import PluginCommand, CloudPluginCommand from cloud...
34.762626
103
0.511695
704
6,883
4.957386
0.257102
0.018338
0.038109
0.017192
0.119198
0.06361
0.042407
0.02235
0
0
0
0.001741
0.415807
6,883
197
104
34.939086
0.866202
0.355368
0
0.308642
0
0
0.111013
0
0
0
0
0.010152
0
1
0.024691
false
0
0.111111
0
0.234568
0.123457
0
0
0
null
0
0
0
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
284d18c88493d45b091494085d645498d867b162
738
py
Python
tests/test_version.py
questionlp/api.wwdt.me_fastapi
fa8c24a36c5c6f2ece985a4d6e0e40201ac700dc
[ "Apache-2.0" ]
null
null
null
tests/test_version.py
questionlp/api.wwdt.me_fastapi
fa8c24a36c5c6f2ece985a4d6e0e40201ac700dc
[ "Apache-2.0" ]
1
2022-01-03T15:48:29.000Z
2022-01-03T15:48:29.000Z
tests/test_version.py
questionlp/api.wwdt.me_fastapi
fa8c24a36c5c6f2ece985a4d6e0e40201ac700dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021 Linh Pham # api.wwdt.me is released under the terms of the Apache License 2.0 """Testing /v2.0/version route """ from fastapi.testclient import TestClient from wwdtm import VERSION as WWDTM_VERSION from app.main import app from app.config import API_VERSION, APP_VERSIO...
26.357143
67
0.704607
105
738
4.866667
0.457143
0.127202
0.088063
0.129159
0
0
0
0
0
0
0
0.02649
0.181572
738
27
68
27.333333
0.819536
0.230352
0
0
0
0
0.081227
0.041516
0
0
0
0
0.466667
1
0.066667
false
0
0.266667
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
1
0
0
0
0
0
0
0
0
0
1
284e76cae93ed1d129717c6eff02c1fbbb744612
4,815
py
Python
accounts/tests/test_serializers.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
6
2019-11-21T10:09:49.000Z
2021-06-19T09:52:59.000Z
accounts/tests/test_serializers.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
accounts/tests/test_serializers.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.messages.middleware import MessageMiddleware from django.contrib.sessions.middleware import SessionMiddleware from django.contrib.sites.models import Site from django.test import TestCase from rest_framework.test import APIRequestFactory from accounts....
38.52
101
0.647767
517
4,815
5.895551
0.237911
0.08727
0.043635
0.034449
0.433727
0.414042
0.347769
0.315617
0.315617
0.315617
0
0.003297
0.244029
4,815
124
102
38.830645
0.834066
0.070197
0
0.382979
0
0
0.141972
0
0
0
0
0
0.095745
1
0.106383
false
0.180851
0.085106
0
0.223404
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
28546cce3390c8465242e5a7ef098d28c173c2dc
7,208
py
Python
fruits/words/letters.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
4
2021-10-08T11:14:54.000Z
2021-12-30T13:56:32.000Z
fruits/words/letters.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
fruits/words/letters.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
from functools import wraps from typing import List, Callable import numpy as np LETTER_SIGNATURE = "fruits_letter" LETTER_NAME = "fruits_name" BOUND_LETTER_TYPE = Callable[[np.ndarray, int], np.ndarray] FREE_LETTER_TYPE = Callable[[int], BOUND_LETTER_TYPE] class ExtendedLetter: """Class for an extended letter...
33.21659
79
0.629994
942
7,208
4.63482
0.211253
0.025195
0.01924
0.015117
0.166056
0.149107
0.094137
0.065277
0.058635
0.037105
0
0.005301
0.267203
7,208
216
80
33.37037
0.82128
0.332825
0
0.090909
0
0
0.092267
0.007689
0
0
0
0
0
1
0.209091
false
0
0.027273
0.072727
0.427273
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
2855473fd880193807939da180dd8239d5b5990b
626
py
Python
summary-ranges/summary-ranges.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
summary-ranges/summary-ranges.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
summary-ranges/summary-ranges.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
class Solution: def summaryRanges(self, nums: List[int]) -> List[str]: res = [] if not nums: return nums nums = nums + [nums[-1]+2] head = nums[0] for i in range(1,len(nums)): if nums[i]-nums[i-1]>1: if head ==nums[i-1]: ...
26.083333
61
0.325879
61
626
3.344262
0.393443
0.122549
0.088235
0.156863
0
0
0
0
0
0
0
0.028986
0.559105
626
24
62
26.083333
0.710145
0
0
0
0
0
0.00319
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.266667
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
28560c315743905fabbc1eda0cb55c9a56c4f8ea
1,140
py
Python
miniproject/main/migrations/0001_initial.py
LokeshShelva/pythonproject
b2cb7e3323fc994473b7ffefc47cc72882e29dab
[ "MIT" ]
null
null
null
miniproject/main/migrations/0001_initial.py
LokeshShelva/pythonproject
b2cb7e3323fc994473b7ffefc47cc72882e29dab
[ "MIT" ]
null
null
null
miniproject/main/migrations/0001_initial.py
LokeshShelva/pythonproject
b2cb7e3323fc994473b7ffefc47cc72882e29dab
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-05-14 10:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import djongo.models.fields import main.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_depen...
36.774194
150
0.640351
129
1,140
5.55814
0.534884
0.066946
0.100418
0.061367
0.164575
0.164575
0.164575
0.164575
0.164575
0
0
0.021372
0.220175
1,140
30
151
38
0.785152
0.039474
0
0
1
0
0.064044
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2856592d84cd8b36f71c8c1329c9e2013fb4ad1f
1,859
py
Python
dataingest/main_pub_kafka.py
sodadata/soda-streaming
3336bcfb81ee115e0ea207496bd5c3e71bdb306d
[ "Apache-2.0" ]
22
2021-05-06T07:51:10.000Z
2022-02-25T14:30:50.000Z
dataingest/main_pub_kafka.py
sodadata/soda-streaming
3336bcfb81ee115e0ea207496bd5c3e71bdb306d
[ "Apache-2.0" ]
null
null
null
dataingest/main_pub_kafka.py
sodadata/soda-streaming
3336bcfb81ee115e0ea207496bd5c3e71bdb306d
[ "Apache-2.0" ]
4
2021-06-04T16:30:59.000Z
2021-11-22T02:05:49.000Z
from queue import Queue import time import os from utils.io import CustomAvroKafkaPublisher from utils.configurator import RestConfigurator import logging # Set proper logging LOGLEVEL = os.environ.get('LOGLEVEL', 'DEBUG').upper() logging.basicConfig(format="%(asctime)s | %(levelname)s | %(threadName)s | %(message)s"...
35.75
115
0.641743
193
1,859
5.823834
0.341969
0.049822
0.071174
0.1121
0.336299
0.336299
0.318505
0.256228
0.126335
0.126335
0
0.007988
0.259279
1,859
51
116
36.45098
0.808279
0.055406
0
0.057143
0
0
0.176875
0
0
0
0
0.019608
0
1
0
false
0
0.171429
0
0.171429
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
28570ad93f78e27e16ceb6230d381dafab3b51d4
1,947
py
Python
1.Study/2. with computer/4.Programming/2.Python/8. Python_intermediate/p_chapter04_02.py
jskim0406/Study
07b559b95f8f658303ee53114107ae35940a6080
[ "MIT" ]
null
null
null
1.Study/2. with computer/4.Programming/2.Python/8. Python_intermediate/p_chapter04_02.py
jskim0406/Study
07b559b95f8f658303ee53114107ae35940a6080
[ "MIT" ]
null
null
null
1.Study/2. with computer/4.Programming/2.Python/8. Python_intermediate/p_chapter04_02.py
jskim0406/Study
07b559b95f8f658303ee53114107ae35940a6080
[ "MIT" ]
null
null
null
# chapter 04-02 # 시퀀스 형 # 파이썬의 자료구조 형태 : 컨테이너형 / 플랫 또는 가변형 / 불변형 # 자료형 1. 컨테이너(Container) : 서로 다른 자료형을 담을 수 있음 (리스트, 튜플, collections.deque) # 컨테이너 ex) a = [3, 3.0, 'a', [1,2]] # 자료형 2. 플랫(Flat) : 한 개의 자료형을 담을 수 있음 (str, bytes, bytearray, array.array, memoryview) # 자료형 1. 가변 : 리스트, bytearray, array.array, memoryview,...
28.632353
86
0.618901
334
1,947
3.479042
0.320359
0.07315
0.060241
0.061962
0.468158
0.438038
0.408778
0.388985
0.320138
0.232358
0
0.032198
0.170519
1,947
67
87
29.059701
0.687307
0.362609
0
0.333333
0
0
0.262895
0
0
0
0
0
0
1
0
false
0
0
0
0
0.69697
0
0
0
null
0
0
0
0
0
0
0
0
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
2864cc35579656db07aa3e20283a9eeba3025786
734
py
Python
monero_glue/messages/NEMMosaic.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
20
2018-04-05T22:06:10.000Z
2021-09-18T10:43:44.000Z
monero_glue/messages/NEMMosaic.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
null
null
null
monero_glue/messages/NEMMosaic.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
5
2018-08-06T15:06:04.000Z
2021-07-16T01:58:43.000Z
# Automatically generated by pb2py # fmt: off from .. import protobuf as p if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 except ImportError: pass class NEMMosaic(p.MessageType): def __init__( self, ...
22.9375
59
0.564033
79
734
5.113924
0.594937
0.049505
0.064356
0
0
0
0
0
0
0
0
0.026694
0.336512
734
31
60
23.677419
0.802875
0.085831
0
0
1
0
0.034535
0
0
0
0
0
0
1
0.083333
false
0.041667
0.166667
0.041667
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
2866f671aff9e1bc5d7dfdbff5e732c4ab7f017b
583
py
Python
index/migrations/0023_auto_20210109_0839.py
materials-science/web-index
f6801e37768a6ef46f1ee8c4560a8c507d68fdde
[ "MIT" ]
null
null
null
index/migrations/0023_auto_20210109_0839.py
materials-science/web-index
f6801e37768a6ef46f1ee8c4560a8c507d68fdde
[ "MIT" ]
null
null
null
index/migrations/0023_auto_20210109_0839.py
materials-science/web-index
f6801e37768a6ef46f1ee8c4560a8c507d68fdde
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-09 08:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('index', '0022_auto_20201103_0850'), ] operations = [ migrations.AddField( model_name='website', name='ip_addr', ...
24.291667
74
0.584906
64
583
5.203125
0.640625
0.054054
0.096096
0.12012
0.294294
0.294294
0.294294
0.294294
0.294294
0.294294
0
0.090024
0.295026
583
23
75
25.347826
0.720195
0.077187
0
0.352941
1
0
0.097015
0.04291
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2877218d838f018c098fb636f2aa5cfbec5d0ecb
278
py
Python
tests/py/common/util/std_dataclasses.py
Taraxa-project/taraxa-node
de720448774d0a59be5f7c789eab6f1f2e202c0d
[ "MIT" ]
21
2021-01-14T07:17:21.000Z
2022-03-23T13:57:22.000Z
tests/py/common/util/std_dataclasses.py
Taraxa-project/taraxa-node
de720448774d0a59be5f7c789eab6f1f2e202c0d
[ "MIT" ]
695
2021-01-11T21:00:46.000Z
2022-03-31T09:06:26.000Z
tests/py/common/util/std_dataclasses.py
Taraxa-project/taraxa-node
de720448774d0a59be5f7c789eab6f1f2e202c0d
[ "MIT" ]
10
2021-02-08T19:51:01.000Z
2022-03-20T13:45:49.000Z
import dataclasses def to_dict(dataclass_inst, nonexistence_value=None): ret = {} for field in dataclasses.fields(dataclass_inst): val = getattr(dataclass_inst, field.name) if val != nonexistence_value: ret[field.name] = val return ret
25.272727
53
0.672662
34
278
5.323529
0.588235
0.21547
0
0
0
0
0
0
0
0
0
0
0.241007
278
10
54
27.8
0.85782
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
28805c721638fff73471827c14f226e9cd43ce44
847
py
Python
Python/URI PROBLEMAS/exerAluraEstruturaDados.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
Python/URI PROBLEMAS/exerAluraEstruturaDados.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
Python/URI PROBLEMAS/exerAluraEstruturaDados.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
lista1 = [12, -2, 4, 8, 29, 45, 78, 36, -17, 2, 12, 8, 3, 3, -52] lista2 = [] lista3 = [] print(lista1) print('O número de elementos da lista é: {}'.format(len(lista1))) print('O maior numero da lista é {}.'.format(max(lista1))) print('O menor numero da lista é {}.'.format(min(lista1))) for valor in lista1: if v...
22.891892
113
0.634002
140
847
3.835714
0.392857
0.055866
0.05959
0.078212
0.074488
0
0
0
0
0
0
0.071221
0.187721
847
36
114
23.527778
0.709302
0
0
0
0
0
0.377539
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
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
2882612a08a37b24079772f971a16bbe1d0970dd
1,108
py
Python
migrations/versions/1058cde5df9f_added_modifier_text_field_to_.py
ukblumf/randomise-it
0610721eba649dfa205b0d3c4b3e24d67aa1d781
[ "MIT" ]
null
null
null
migrations/versions/1058cde5df9f_added_modifier_text_field_to_.py
ukblumf/randomise-it
0610721eba649dfa205b0d3c4b3e24d67aa1d781
[ "MIT" ]
null
null
null
migrations/versions/1058cde5df9f_added_modifier_text_field_to_.py
ukblumf/randomise-it
0610721eba649dfa205b0d3c4b3e24d67aa1d781
[ "MIT" ]
null
null
null
"""Added Modifier Text field to RandomTable and Public RandomTable Revision ID: 1058cde5df9f Revises: a92b3f3cd3e7 Create Date: 2020-07-05 14:49:25.030794 """ # revision identifiers, used by Alembic. revision = '1058cde5df9f' down_revision = 'a92b3f3cd3e7' from alembic import op import sqlalchemy as sa def upgrad...
29.945946
81
0.718412
151
1,108
5.066225
0.364238
0.073203
0.057516
0.08366
0.60915
0.60915
0.60915
0.60915
0.60915
0.60915
0
0.047465
0.163357
1,108
36
82
30.777778
0.777778
0.311372
0
0.571429
0
0
0.190083
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
288c5c855a111f302935f559db2ed870fb366515
3,796
py
Python
test_predictor.py
pablodavid97/pico-placa-predictor
827f27ca873b8e54d60c5e8b9713a976880982f0
[ "MIT" ]
null
null
null
test_predictor.py
pablodavid97/pico-placa-predictor
827f27ca873b8e54d60c5e8b9713a976880982f0
[ "MIT" ]
null
null
null
test_predictor.py
pablodavid97/pico-placa-predictor
827f27ca873b8e54d60c5e8b9713a976880982f0
[ "MIT" ]
null
null
null
""" test_predictor.py Class created to run automated unit testings for the Pico & Placa predictor. The tests are made for the following use-cases: 1. Users are allowed to go outside 2. Users are not allowed to go outside 3. License plate is not valid 4. Date format is incor...
37.584158
83
0.644362
465
3,796
5.180645
0.245161
0.054795
0.066418
0.041511
0.47198
0.399751
0.254462
0.091324
0.058946
0.058946
0
0.149502
0.20706
3,796
100
84
37.96
0.650831
0.182824
0
0
0
0
0.206104
0
0
0
0
0
0.78
1
0.16
false
0
0.04
0
0.22
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
288d9ed8f006fe07503911b14c302aeb915721f9
490
py
Python
aioalice/types/alice_response.py
surik00/aioalice
02c67d5cf5bd676144d61e8c1a19616fc76c6431
[ "MIT" ]
31
2018-07-11T17:14:36.000Z
2019-08-18T10:21:29.000Z
aioalice/types/alice_response.py
surik00/aioalice
02c67d5cf5bd676144d61e8c1a19616fc76c6431
[ "MIT" ]
5
2018-10-15T08:05:56.000Z
2019-08-04T14:42:01.000Z
aioalice/types/alice_response.py
surik00/aioalice
02c67d5cf5bd676144d61e8c1a19616fc76c6431
[ "MIT" ]
10
2018-07-23T13:55:58.000Z
2019-07-30T16:05:25.000Z
from attr import attrs, attrib from aioalice.types import AliceObject, BaseSession, Response from aioalice.utils import ensure_cls @attrs class AliceResponse(AliceObject): """AliceResponse is a response to Alice API""" response = attrib(converter=ensure_cls(Response)) session = attrib(converter=ensure_c...
28.823529
61
0.759184
61
490
5.983607
0.491803
0.109589
0.115068
0.131507
0
0
0
0
0
0
0
0
0.153061
490
16
62
30.625
0.879518
0.081633
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.909091
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
288f1751338df686474c167361aacf0ff232007f
375
py
Python
Tutorial/Python 3 Basic/NameSpace_GlobalNameSpcae.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
5
2020-09-24T11:40:10.000Z
2022-01-30T05:16:04.000Z
Tutorial/Python 3 Basic/NameSpace_GlobalNameSpcae.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
null
null
null
Tutorial/Python 3 Basic/NameSpace_GlobalNameSpcae.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
null
null
null
#!/usr/bin # -*- coding: utf-8 -*- """ DelftStack Python Tkinter Tutorial Author: Jinku Hu URL: https://www.delftstack.com/tutorial/python-3-basic-tutorial/namescape-and-scope/ Website: https://www.delftstack.com """ x = 1 y = 2 stringX = "String X" def globalTest(): for (key, value) in globals().items(): ...
19.736842
85
0.645333
50
375
4.84
0.76
0.066116
0.14876
0.173554
0
0
0
0
0
0
0
0.012698
0.16
375
19
86
19.736842
0.755556
0.549333
0
0
0
0
0.093168
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
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
288f73cc708f414333291b589bf908329c8c58fc
1,644
py
Python
python3/aoc-01-04/main.py
brunobell/aoc-2019
58cfcd21d5a6369a178127be7c7339aa0c2e19ee
[ "MIT" ]
null
null
null
python3/aoc-01-04/main.py
brunobell/aoc-2019
58cfcd21d5a6369a178127be7c7339aa0c2e19ee
[ "MIT" ]
null
null
null
python3/aoc-01-04/main.py
brunobell/aoc-2019
58cfcd21d5a6369a178127be7c7339aa0c2e19ee
[ "MIT" ]
null
null
null
import typing def get_repeat_info(n: int) -> (bool, typing.Dict): digit, is_asc, repeat, hashmap = '0', True, 0, dict() for c in str(n): if c in hashmap: hashmap[c] = hashmap[c] + 1 else: hashmap[c] = 1 if digit <= c: if digit == c: ...
29.357143
71
0.550487
246
1,644
3.471545
0.219512
0.064403
0.064403
0.074941
0.441452
0.382904
0.382904
0.299766
0.180328
0.103045
0
0.035649
0.33455
1,644
55
72
29.890909
0.744973
0
0
0.288889
0
0
0.05292
0
0
0
0
0
0
1
0.066667
false
0.088889
0.022222
0
0.222222
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
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
28945bc093c43ae0f8b270c17537cf305511719f
1,679
py
Python
client/verta/verta/_swagger/_public/uac/model/UacAction.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/uac/model/UacAction.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/uac/model/UacAction.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class UacAction(BaseType): def __init__(self, service=None, role_service_action=None, authz_service_action=None, modeldb_service_action=None): required = { "service": False, "role_service_action": False, "a...
36.5
117
0.746873
194
1,679
6.221649
0.252577
0.193869
0.084507
0.036454
0.140017
0.140017
0.095278
0.079536
0.079536
0
0
0
0.170339
1,679
45
118
37.311111
0.866475
0.023824
0
0.114286
1
0
0.139279
0.040318
0
0
0
0
0
1
0.057143
false
0
0.142857
0
0.257143
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
289d45d9b612454d9dea5c07520adfe67edf1316
389
py
Python
SciAnalysis/XSAnalysis/masks/make_mask.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
13
2018-04-17T06:35:20.000Z
2021-09-22T08:49:47.000Z
SciAnalysis/XSAnalysis/masks/make_mask.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
14
2018-04-18T01:05:57.000Z
2020-11-05T21:57:09.000Z
SciAnalysis/XSAnalysis/masks/make_mask.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
9
2017-05-26T14:47:38.000Z
2021-03-24T02:44:59.000Z
#!/usr/bin/python3 import numpy as np import PIL.Image #infile = 'CHX_Eiger1M_blemish2-mask.npy' infile = 'CHX_Eiger1M_flatfield.npy' outfile = infile[:-4] + '.png' pixmask = np.load(infile) #pixmask = pixmask < 1 #img = np.where( pixmask<1, 255, 0) #img = np.where( pixmask<1, 0, 255) img = np.where( pixmask<0.1, ...
18.52381
41
0.686375
64
389
4.109375
0.453125
0.091255
0.114068
0.193916
0.136882
0
0
0
0
0
0
0.068862
0.141388
389
21
42
18.52381
0.718563
0.375321
0
0
0
0
0.121339
0.104603
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
289d8782f3b7e11ad4acbe74cfdf7417dabd446d
483
py
Python
Curve/Colors.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Curve/Colors.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Curve/Colors.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
class Curve_Colors(): ##! ##! Set colors ##! def Curve_Colors_Take(self,colordefs): bcolor=self.BackGround_Color() for color in colordefs.keys(): self.Color_Schemes[ bcolor ][ color ]=colordefs[ color ] ##! ##! Sets Analytical Evolute colors. ##! ...
21.954545
71
0.600414
49
483
5.673469
0.367347
0.118705
0.107914
0.136691
0
0
0
0
0
0
0
0
0.285714
483
21
72
23
0.805797
0.101449
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
289efc0395d0438f718d8ae5e78929ea343933e4
1,181
py
Python
setup.py
kindlycat/django-simple-log
465da4016df470a001a80dcd51929af40552d40b
[ "BSD-3-Clause" ]
5
2017-11-01T09:18:05.000Z
2020-12-15T12:31:28.000Z
setup.py
kindlycat/django-simple-log
465da4016df470a001a80dcd51929af40552d40b
[ "BSD-3-Clause" ]
22
2017-03-14T12:31:52.000Z
2020-09-18T17:55:59.000Z
setup.py
kindlycat/django-simple-log
465da4016df470a001a80dcd51929af40552d40b
[ "BSD-3-Clause" ]
4
2017-07-25T01:33:17.000Z
2021-02-22T22:24:18.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from distutils.core import setup from setuptools import find_packages from simple_log import __version__ def readme(): with open('README.rst') as f: return f.read() setup( name='django-simple-log', version=__version__, descri...
29.525
68
0.627434
135
1,181
5.333333
0.562963
0.131944
0.173611
0.144444
0
0
0
0
0
0
0
0.025751
0.210838
1,181
39
69
30.282051
0.746781
0.017782
0
0
0
0
0.449914
0.022453
0
0
0
0
0
1
0.032258
true
0
0.129032
0
0.193548
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
289f18287b503d2dd21a63f8659bb804e1b1057b
417
py
Python
mundo 3/082.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
1
2021-08-04T13:21:22.000Z
2021-08-04T13:21:22.000Z
mundo 3/082.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
mundo 3/082.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
valores = [] while True: valores.append(int(input('Digite um valor:'))) resp = str(input('Quer continuar: ')).upper()[0] if resp == 'N': break pares = [] impares = [] for v in valores: if v % 2 == 0: pares.append(v) else: impares.append(v) print(f'Os valores digitados foram {...
24.529412
52
0.606715
59
417
4.288136
0.508475
0.071146
0.094862
0.177866
0
0
0
0
0
0
0
0.009346
0.230216
417
16
53
26.0625
0.778816
0
0
0
0
0
0.318945
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1875
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
95481a015d4e84d7818fc8ed6163efdc1b2bfd6f
221
py
Python
demo_pulse.py
gexpander/demo-py-examples
9f6f2eb198c2329cba5a957e51dc50294555c17c
[ "MIT" ]
null
null
null
demo_pulse.py
gexpander/demo-py-examples
9f6f2eb198c2329cba5a957e51dc50294555c17c
[ "MIT" ]
null
null
null
demo_pulse.py
gexpander/demo-py-examples
9f6f2eb198c2329cba5a957e51dc50294555c17c
[ "MIT" ]
null
null
null
#!/bin/env python3 import gex import time # generating a pulse on gpio, test of the unit with gex.Client(gex.TrxRawUSB()) as client: out = gex.DOut(client, 'out') out.pulse_us([0], 20) out.pulse_us([3], 10)
20.090909
46
0.665158
38
221
3.815789
0.684211
0.124138
0.137931
0
0
0
0
0
0
0
0
0.039106
0.190045
221
11
47
20.090909
0.77095
0.280543
0
0
0
0
0.018987
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
954a566e415aa85ff1de681fb021ff18494a54cd
388
py
Python
optimized_sum_k_consecutive_elements.py
aravindstriker6/Coding-Questions
bd19a774dec6097983d78c20f579afcdb71d6904
[ "MIT" ]
null
null
null
optimized_sum_k_consecutive_elements.py
aravindstriker6/Coding-Questions
bd19a774dec6097983d78c20f579afcdb71d6904
[ "MIT" ]
null
null
null
optimized_sum_k_consecutive_elements.py
aravindstriker6/Coding-Questions
bd19a774dec6097983d78c20f579afcdb71d6904
[ "MIT" ]
null
null
null
def consecutive_elements_opt(arr,k): window_sum=0 for i in range(k): window_sum+=arr[i] max_sum=window_sum for j in range(k,len(arr)): window_sum=window_sum-arr[j-k]+arr[j] print(arr[j-k],arr[j]) max_sum=max(max_sum,window_sum) return max_sum ...
25.866667
50
0.60567
69
388
3.202899
0.347826
0.244344
0.162896
0.135747
0.081448
0
0
0
0
0
0
0.03125
0.257732
388
15
51
25.866667
0.736111
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.153846
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
954fc6d71c6abfe91fafc1908b4946bab6150ee1
4,847
py
Python
src/jengaapi/receive_money_services.py
MainaKamau92/JengaAPIPythonWrapper
b48682fc045e74c19d674ea83f905f7c5d55230b
[ "BSD-2-Clause" ]
null
null
null
src/jengaapi/receive_money_services.py
MainaKamau92/JengaAPIPythonWrapper
b48682fc045e74c19d674ea83f905f7c5d55230b
[ "BSD-2-Clause" ]
null
null
null
src/jengaapi/receive_money_services.py
MainaKamau92/JengaAPIPythonWrapper
b48682fc045e74c19d674ea83f905f7c5d55230b
[ "BSD-2-Clause" ]
null
null
null
import json import requests from . import BASE_URL from .exceptions import generate_reference, handle_response class ReceiveMoneyService: def __init__(self, token): self.token = token self.headers = { 'Content-Type': 'application/json', 'Authorization': self.token ...
37.867188
85
0.582216
454
4,847
5.95815
0.154185
0.076525
0.033641
0.032532
0.519409
0.47098
0.377079
0.360444
0.360444
0.360444
0
0.001203
0.314215
4,847
127
86
38.165354
0.812575
0.073654
0
0.422018
1
0
0.16373
0.021191
0
0
0
0
0
1
0.045872
false
0
0.036697
0
0.12844
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
9557f519b66cd5cf10fd43f0d019684a3702b732
419
py
Python
graphmodel/appio/applogger.py
AdrianArmaselu/aDi-music
091c08d156ef7c96c571590e777b3e3c08bdb303
[ "MIT" ]
null
null
null
graphmodel/appio/applogger.py
AdrianArmaselu/aDi-music
091c08d156ef7c96c571590e777b3e3c08bdb303
[ "MIT" ]
null
null
null
graphmodel/appio/applogger.py
AdrianArmaselu/aDi-music
091c08d156ef7c96c571590e777b3e3c08bdb303
[ "MIT" ]
null
null
null
import logging __author__ = 'Adisor' """ This file is used to configure logging and to give the configured logging object to the rest of the application """ def clear_log_file(logfile): with open(logfile, 'w'): pass logfile = 'log.log' FORMAT = '%(asctime)-12s %(message)s' logging.basicConfig(filename...
20.95
111
0.732697
58
419
5.155172
0.637931
0.053512
0.080268
0.12709
0
0
0
0
0
0
0
0.00565
0.155131
419
19
112
22.052632
0.838983
0
0
0
0
0
0.133333
0
0
0
0
0
0
1
0.1
false
0.1
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
955c5adf29d69f0f78b6d8fc32f178e7e40d62b1
2,436
py
Python
setup.py
kklmn/ParSeq-XES-scan
bdf30fc0e67ffc8144fdd1f605bf573caa4bce3a
[ "MIT" ]
null
null
null
setup.py
kklmn/ParSeq-XES-scan
bdf30fc0e67ffc8144fdd1f605bf573caa4bce3a
[ "MIT" ]
null
null
null
setup.py
kklmn/ParSeq-XES-scan
bdf30fc0e67ffc8144fdd1f605bf573caa4bce3a
[ "MIT" ]
1
2021-12-19T07:52:15.000Z
2021-12-19T07:52:15.000Z
# -*- coding: utf-8 -*- from setuptools import setup long_description = u""" Scanning XES ============ A pipeline for the ParSeq framework that implements data processing of XES theta scans, where the crystal (here only one) is scanned in its theta angle and the analyzed emission is collected by a 2D detector. This ...
38.0625
79
0.649425
305
2,436
5.095082
0.560656
0.036036
0.050193
0.024453
0.037323
0.037323
0
0
0
0
0
0.012118
0.220854
2,436
63
80
38.666667
0.806639
0.03243
0
0.038462
0
0
0.681258
0.023374
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
955ccc0c9cd7617b720daa6294abb3e1dfaf69db
4,340
py
Python
Serverless/serverless.py
ccicconetti/markovsim
a90c24ed63788d67428be7b1bbc798a58718520b
[ "MIT" ]
null
null
null
Serverless/serverless.py
ccicconetti/markovsim
a90c24ed63788d67428be7b1bbc798a58718520b
[ "MIT" ]
null
null
null
Serverless/serverless.py
ccicconetti/markovsim
a90c24ed63788d67428be7b1bbc798a58718520b
[ "MIT" ]
null
null
null
#!/usr/bin/python """Print the steady-state delays of a serverless edge computing""" __author__ = "Claudio Cicconetti" __version__ = "0.1.0" __license__ = "MIT" import argparse import steadystate import configuration import numpy as np import random parser = argparse.ArgumentParser( description=__doc__, fo...
30.138889
96
0.660599
578
4,340
4.846021
0.252595
0.05141
0.097108
0.031417
0.255266
0.209568
0.127812
0.022849
0
0
0
0.010231
0.211751
4,340
143
97
30.34965
0.808536
0.059908
0
0.175439
0
0
0.170665
0
0
0
0
0
0.04386
0
null
null
0
0.04386
null
null
0.017544
0
0
0
null
0
0
0
0
0
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
9564394dcae673e2b854835a19dd7075601cae2a
800
py
Python
RQ2_ros_implementation/mission-runner/common/tactics/energysavings/EnergySavingsManager.py
S2-group/msr-2021-robotics-green-architectural-tactics-replication-package
fc4a205b00abb0b096c472856002e440e73f2c5d
[ "MIT" ]
2
2021-03-26T17:29:27.000Z
2021-03-27T20:06:21.000Z
RQ2_ros_implementation/mission-runner/common/tactics/energysavings/EnergySavingsManager.py
S2-group/msr-2021-robotics-green-architectural-tactics-replication-package
fc4a205b00abb0b096c472856002e440e73f2c5d
[ "MIT" ]
null
null
null
RQ2_ros_implementation/mission-runner/common/tactics/energysavings/EnergySavingsManager.py
S2-group/msr-2021-robotics-green-architectural-tactics-replication-package
fc4a205b00abb0b096c472856002e440e73f2c5d
[ "MIT" ]
null
null
null
from common.modules.sensors.battery.controllers.BatterySensor import BatterySensor from common.architectural.Singleton import Singleton class EnergySavingsManager(metaclass=Singleton): # Threshold chosen at 100 on purpose, therefore manager will always state # energy budget is insufficient, allowing the tactic...
50
96
0.7775
91
800
6.516484
0.549451
0.114671
0.131535
0.107926
0
0
0
0
0
0
0
0.011958
0.16375
800
16
97
50
0.874439
0.2825
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
956e0b5bf13ee06bd0f3a8232bf902ebcc9d7659
4,861
py
Python
python/news.py
HIT-IIL/iil.github.io
6beb11f24c8953d1899029bf66342b296286d30d
[ "MIT" ]
1
2021-07-23T03:28:22.000Z
2021-07-23T03:28:22.000Z
python/news.py
HIT-IIL/iil.github.io
6beb11f24c8953d1899029bf66342b296286d30d
[ "MIT" ]
null
null
null
python/news.py
HIT-IIL/iil.github.io
6beb11f24c8953d1899029bf66342b296286d30d
[ "MIT" ]
null
null
null
#coding=utf-8 import pandas as pd data = pd.read_excel('../excel/news.xls').reset_index(drop=True).T.to_dict() #head html = """ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>{0}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta nam...
30.572327
108
0.466982
571
4,861
3.894921
0.267951
0.061151
0.022032
0.016187
0.23696
0.165917
0.121853
0.083633
0.071942
0.044065
0
0.0144
0.328533
4,861
158
109
30.765823
0.666973
0.005966
0
0.255319
0
0.021277
0.718666
0.13901
0
0
0
0
0
1
0
false
0
0.007092
0
0.007092
0.021277
0
0
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
957cfafac6ab311c54c9673e4e122e19894c01f8
557
py
Python
cc_notes/apps/events/models.py
ccYang-hh/cc-notes
b6a25914fa1b4e330114549706f9ca7804f9e42b
[ "MIT" ]
null
null
null
cc_notes/apps/events/models.py
ccYang-hh/cc-notes
b6a25914fa1b4e330114549706f9ca7804f9e42b
[ "MIT" ]
null
null
null
cc_notes/apps/events/models.py
ccYang-hh/cc-notes
b6a25914fa1b4e330114549706f9ca7804f9e42b
[ "MIT" ]
null
null
null
from django.db import models from users.models import User class Event(models.Model): title = models.CharField(verbose_name="事件名", max_length=64) time = models.DateField(verbose_name="事件执行日期") finished = models.BooleanField(verbose_name="是否完成", default=False) creator = models.ForeignKey(User, on_dele...
27.85
114
0.709156
71
557
5.323944
0.591549
0.174603
0
0
0
0
0
0
0
0
0
0.004415
0.186715
557
19
115
29.315789
0.830022
0
0
0
0
0
0.057554
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0.076923
0.769231
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
958915aa3106c24bb03e0671f8929e63018b664f
5,549
py
Python
keyword_finder/keyword_finder/settings.py
Agrendalath/Keyword-Finder
ee48d9956933cc7100867191b03c7a72078b276b
[ "MIT" ]
null
null
null
keyword_finder/keyword_finder/settings.py
Agrendalath/Keyword-Finder
ee48d9956933cc7100867191b03c7a72078b276b
[ "MIT" ]
null
null
null
keyword_finder/keyword_finder/settings.py
Agrendalath/Keyword-Finder
ee48d9956933cc7100867191b03c7a72078b276b
[ "MIT" ]
null
null
null
""" Django settings for keyword_finder project. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os import datetime from kombu import Exchange from kombu ...
27.20098
91
0.708957
604
5,549
6.301325
0.40894
0.058066
0.040462
0.04598
0.132422
0.124015
0.071992
0.071992
0.032317
0
0
0.016408
0.165255
5,549
203
92
27.334975
0.805268
0.18652
0
0.014388
0
0
0.455417
0.348417
0
0
0
0
0
1
0
false
0.057554
0.028777
0
0.028777
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
9589190f1c22a61b94e7d7881d9cc6caa3eb6c5a
12,636
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/train.py
mgermain/cookiecutter-pyml
3a5546d169d8cd6f85f09356b1947770a8c0e23e
[ "MIT" ]
11
2020-07-27T15:34:37.000Z
2022-01-31T16:22:08.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/train.py
mgermain/cookiecutter-pyml
3a5546d169d8cd6f85f09356b1947770a8c0e23e
[ "MIT" ]
13
2020-07-28T17:14:21.000Z
2021-08-02T18:53:16.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/train.py
mgermain/cookiecutter-pyml
3a5546d169d8cd6f85f09356b1947770a8c0e23e
[ "MIT" ]
5
2020-07-27T15:34:44.000Z
2022-02-21T17:30:00.000Z
{%- if cookiecutter.dl_framework == 'pytorch' %} import datetime import glob {%- endif %} import logging import os {%- if cookiecutter.dl_framework == 'pytorch' %} import shutil {%- endif %} import mlflow import orion import yaml {%- if cookiecutter.dl_framework in ['tensorflow_cpu', 'tensorflow_gpu'] %} import mlflow...
37.055718
100
0.667142
1,624
12,636
4.969212
0.20936
0.023172
0.025774
0.015861
0.339901
0.304709
0.24114
0.227138
0.19083
0.157869
0
0.001557
0.237496
12,636
340
101
37.164706
0.836015
0.026195
0
0.204762
0
0
0.101973
0.007253
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.009524
0
0
0
null
0
0
0
0
0
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
958a66d09a9c65cc3eac8e34f0d457d497b097a8
5,684
py
Python
svm.py
artem-astafyev/plate-recognition
b39aa08cacbf76b20ec688540e86d611fd5b3189
[ "Apache-2.0" ]
null
null
null
svm.py
artem-astafyev/plate-recognition
b39aa08cacbf76b20ec688540e86d611fd5b3189
[ "Apache-2.0" ]
1
2020-07-30T02:27:44.000Z
2020-07-30T02:27:44.000Z
svm.py
artem-astafyev/plate-recognition
b39aa08cacbf76b20ec688540e86d611fd5b3189
[ "Apache-2.0" ]
null
null
null
import time import cv2 import numpy as np from numpy.linalg import norm import helper as hp class StatModel(object): def load(self, fn): self.model.load(fn) def save(self, fn): self.model.save(fn) class SVM(StatModel): def __init__(self, C=1, gamma=0.5): self.model = cv2.ml.SV...
29.450777
96
0.574243
792
5,684
3.919192
0.17803
0.01933
0.022552
0.030606
0.377255
0.346005
0.275773
0.275773
0.252577
0.234536
0
0.028736
0.295918
5,684
193
97
29.450777
0.746877
0.008093
0
0.288591
0
0
0.033718
0
0
0
0
0
0
0
null
null
0
0.033557
null
null
0.020134
0
0
0
null
0
0
0
0
0
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
958e1a736ceddf4a1950f97a81f44c853928383d
259
py
Python
PythonExe/ex049.py
ScnMatheus/my-python-projects
9cc3511dd6e25d9b16429347598c105f15bd6916
[ "MIT" ]
null
null
null
PythonExe/ex049.py
ScnMatheus/my-python-projects
9cc3511dd6e25d9b16429347598c105f15bd6916
[ "MIT" ]
null
null
null
PythonExe/ex049.py
ScnMatheus/my-python-projects
9cc3511dd6e25d9b16429347598c105f15bd6916
[ "MIT" ]
null
null
null
#refaça o desafio 009, mostrando a tabuada de um número que o usuario escolher, #usando laço de repetição calc = int(input('Digite um número inteiro: ')) for c in range (0, 11): tabuada = calc*c print(f'A tabuada de {calc} é {calc}X{c} = {tabuada}')
32.375
79
0.683398
45
259
3.933333
0.688889
0.090395
0.112994
0
0
0
0
0
0
0
0
0.028846
0.196911
259
7
80
37
0.822115
0.393822
0
0
0
0
0.451613
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
959017a97d9e1df5a7a85f22b41869e3f6bba8f9
294
py
Python
setup.py
kozaka-tv/Rocksmith-Song-Loader
ff8d84e8168274cdd5e3affa078dae3223e97a1b
[ "MIT" ]
null
null
null
setup.py
kozaka-tv/Rocksmith-Song-Loader
ff8d84e8168274cdd5e3affa078dae3223e97a1b
[ "MIT" ]
null
null
null
setup.py
kozaka-tv/Rocksmith-Song-Loader
ff8d84e8168274cdd5e3affa078dae3223e97a1b
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='Rocksmith-Servant', version='0.1', packages=[''], url='https://github.com/kozaka-tv/Rocksmith-Servant', license='', author='kozaka', author_email='kozaka.gamer@gmail.com', description='A Servant, a Bot for Rocksmith' )
22.615385
57
0.656463
36
294
5.333333
0.722222
0.166667
0
0
0
0
0
0
0
0
0
0.008264
0.176871
294
12
58
24.5
0.785124
0
0
0
0
0
0.421769
0.07483
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
95925602f4a79a62651eb9a6680df81c918837fb
7,612
py
Python
pysnmp-with-texts/REDSTONE-TEMPLATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/REDSTONE-TEMPLATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/REDSTONE-TEMPLATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module REDSTONE-TEMPLATE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/REDSTONE-TEMPLATE-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:55:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
115.333333
742
0.781135
875
7,612
6.793143
0.254857
0.050471
0.088324
0.01144
0.318641
0.199865
0.199865
0.199865
0.199865
0.176144
0
0.059565
0.093537
7,612
65
743
117.107692
0.801884
0.044141
0
0.053571
0
0.071429
0.306591
0.032338
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9593898cbe8eb2037246e16b02781898751b27a6
1,349
py
Python
main.py
Dorcy64/secret-santa
5bb9f12f877340b857790ef3b18888aa63e8d9f1
[ "MIT" ]
null
null
null
main.py
Dorcy64/secret-santa
5bb9f12f877340b857790ef3b18888aa63e8d9f1
[ "MIT" ]
null
null
null
main.py
Dorcy64/secret-santa
5bb9f12f877340b857790ef3b18888aa63e8d9f1
[ "MIT" ]
null
null
null
import random from data import participants from whatsapp_selenium import send_messages import time Host_Name = 'Dorcy' def generate_text(santa, santee, age): return f"""Dear {santa},\ \nThis year you are {santee}'s Secret Santa!. Ho Ho Ho!\ \nThis message was automagically generated from a computer by {Host_Nam...
27.530612
90
0.641957
172
1,349
4.854651
0.465116
0.041916
0.014371
0.071856
0
0
0
0
0
0
0
0.007944
0.253521
1,349
48
91
28.104167
0.821251
0
0
0
1
0
0.196442
0
0
0
0
0
0
1
0.057143
false
0
0.114286
0.028571
0.228571
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
95a208a0ccab229f7e83c037b3a6fadee0db76bb
1,234
py
Python
app/core/tests/tests_models.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
app/core/tests/tests_models.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
app/core/tests/tests_models.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """Test creating a new user with an email successful""" email="test@gmail.com" password="Testpass123" user=get_...
31.641026
83
0.637763
142
1,234
5.309859
0.309859
0.046419
0.079576
0.084881
0.262599
0.183024
0.144562
0.100796
0
0
0
0.01326
0.266613
1,234
38
84
32.473684
0.81989
0.076985
0
0.111111
0
0
0.074517
0.019319
0
0
0
0
0.222222
1
0.148148
false
0.111111
0.074074
0
0.259259
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
95b84cb1dbd9153852604e662b05cc00ce19cd7d
798
py
Python
utils.py
srinivas2234/Graph-Transactional-Coverage-Patterns
1212574b79f796f13870c7fe050a26e39a61251b
[ "MIT" ]
null
null
null
utils.py
srinivas2234/Graph-Transactional-Coverage-Patterns
1212574b79f796f13870c7fe050a26e39a61251b
[ "MIT" ]
null
null
null
utils.py
srinivas2234/Graph-Transactional-Coverage-Patterns
1212574b79f796f13870c7fe050a26e39a61251b
[ "MIT" ]
null
null
null
import numpy as np def one_of_k_encoding(x, allowable_set): if x not in allowable_set: raise Exception("input {0} not in allowable set{1}:".format( x, allowable_set)) return list(map(lambda s: x == s, allowable_set)) def one_of_k_encoding_unk(x, allowable_set): """Maps inputs not in t...
26.6
68
0.645363
131
798
3.694656
0.343511
0.247934
0.107438
0.105372
0.299587
0.235537
0.152893
0.152893
0.152893
0.152893
0
0.008361
0.250627
798
29
69
27.517241
0.801003
0.071429
0
0.190476
0
0
0.046322
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0
0.333333
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
95c998e63064850c9e0d7211a737679735b10ac6
470
py
Python
restorm/fields/__init__.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-03T16:41:35.000Z
2020-09-17T09:39:02.000Z
restorm/fields/__init__.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
null
null
null
restorm/fields/__init__.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-02T18:59:02.000Z
2020-09-17T09:53:31.000Z
from .base import ( Field, BooleanField, IntegerField, DecimalField, CharField, URLField, TextField, JSONField, DateField, DateTimeField ) from .related import RelatedResource, ToOneField, ToManyField __all__ = [ # Basic Fields 'Field', 'BooleanField', 'IntegerField', 'DecimalField', 'CharFiel...
27.647059
61
0.702128
37
470
8.810811
0.540541
0.104294
0.177914
0.251534
0.306748
0
0
0
0
0
0
0
0.174468
470
16
62
29.375
0.840206
0.057447
0
0
0
0
0.304545
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
95c9cf605c9cd1cc46649833d97503d5e47c01b4
7,846
py
Python
daemon.py
5g-media/mape-data-lcm
5e08d819468398cd7861c7578f9eed45e284240e
[ "Apache-2.0" ]
null
null
null
daemon.py
5g-media/mape-data-lcm
5e08d819468398cd7861c7578f9eed45e284240e
[ "Apache-2.0" ]
null
null
null
daemon.py
5g-media/mape-data-lcm
5e08d819468398cd7861c7578f9eed45e284240e
[ "Apache-2.0" ]
null
null
null
import redis import json import yaml import logging.config from kafka import KafkaConsumer from influxdb import InfluxDBClient from utils import convert_byte_to_str, get_vdus_info, compose_redis_key from exceptions import NsValueIsNotDict, NsUuidDoesNotExist from settings import KAFKA_SERVER, KAFKA_CLIENT_ID, KAFKA_API...
47.551515
118
0.594698
927
7,846
4.839266
0.242718
0.020062
0.029425
0.018948
0.38074
0.334597
0.315203
0.315203
0.290682
0.260366
0
0.001123
0.319271
7,846
164
119
47.841463
0.838794
0.232475
0
0.350649
0
0
0.095108
0.028441
0
0
0
0
0
1
0.012987
false
0.077922
0.116883
0
0.12987
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
95cc4b998efb39cd907924a606c7d363143770e7
568
py
Python
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
11
2017-06-10T22:16:13.000Z
2021-09-26T09:44:11.000Z
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
null
null
null
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
6
2017-08-01T10:13:33.000Z
2021-09-25T17:52:04.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jun 22 14:15:18 2017 @author: Mahmoud M. Abdelrahman """ import numpy as np import pickle matrixShape = ##Shape## matrixDType = ##Dtype## workingDir = "##workingDir##" fileNameString = "##fileNameString##" datafile = open(workingDir+fileNameString+"_T...
18.933333
61
0.676056
64
568
5.96875
0.625
0.188482
0.146597
0
0
0
0
0
0
0
0
0.027426
0.165493
568
29
62
19.586207
0.778481
0.054577
0
0
0
0
0.120853
0
0
0
0
0
0
0
null
null
0
0.153846
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
95ce4099f64b10191d746c08df8e85f5f5f25c3f
504
py
Python
core/commands_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
1
2020-07-07T09:58:57.000Z
2020-07-07T09:58:57.000Z
core/commands_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
42
2018-11-11T08:08:46.000Z
2020-01-10T11:15:47.000Z
core/commands_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
null
null
null
"Источник событий управления сервером (DServer)" from __future__ import annotations from rx.subject.subject import Subject from .atypes_emitter_decorator import AtypesEmitterDecorator class CommandsEmitter(AtypesEmitterDecorator): "Контейнер потоков команд" def __init__(self): super().__init__() ...
26.526316
60
0.740079
53
504
6.679245
0.603774
0.101695
0.090395
0
0
0
0
0
0
0
0
0
0.188492
504
18
61
28
0.865526
0.21627
0
0
0
0
0.212302
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
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
95d434e07b6edea7743e3b545a3b1f1a5fd9077b
304
py
Python
tests/hanko_sdk/type_enforcement/user_type_enforcement_test.py
teamhanko/hanko-python
2455861b6edc3c393dde7ed62635f96c88b1350f
[ "Apache-2.0" ]
1
2022-03-08T06:38:22.000Z
2022-03-08T06:38:22.000Z
tests/hanko_sdk/type_enforcement/user_type_enforcement_test.py
teamhanko/hanko-python
2455861b6edc3c393dde7ed62635f96c88b1350f
[ "Apache-2.0" ]
null
null
null
tests/hanko_sdk/type_enforcement/user_type_enforcement_test.py
teamhanko/hanko-python
2455861b6edc3c393dde7ed62635f96c88b1350f
[ "Apache-2.0" ]
null
null
null
import unittest from src.hanko_sdk.models.core import User class UserTypeEnforcementTest(unittest.TestCase): def test_exception_is_thrown_if_user_properties_have_incompatible_type(self): self.assertRaises(TypeError, lambda: User(1, 2, 3)) if __name__ == "__main__": unittest.main()
21.714286
81
0.773026
39
304
5.564103
0.794872
0
0
0
0
0
0
0
0
0
0
0.01145
0.138158
304
13
82
23.384615
0.816794
0
0
0
0
0
0.026316
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
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
95d484f8aa122a8d5aaaf8762a3252c2a40db8e2
2,808
py
Python
sample-viewer-api/src/api/elisa_parser.py
cvisb/cvisb_data
81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed
[ "MIT" ]
2
2020-02-18T08:16:45.000Z
2021-04-11T18:58:02.000Z
sample-viewer-api/src/api/elisa_parser.py
cvisb/cvisb_data
81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed
[ "MIT" ]
47
2019-09-30T22:26:36.000Z
2021-11-17T00:34:38.000Z
sample-viewer-api/src/api/elisa_parser.py
cvisb/cvisb_data
81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed
[ "MIT" ]
1
2020-07-01T21:15:18.000Z
2020-07-01T21:15:18.000Z
from pyparsing import (CaselessKeyword, Optional, Forward, Regex, operatorPrecedence, opAssoc, ParserElement) from biothings.utils.common import is_str import re ParserElement.enablePackrat() and_ = CaselessKeyword("AND") or_ = CaselessKeyword("OR") not_ = CaselessKeyword("NOT") keyword = and_ | or_ | not_ expressio...
30.193548
109
0.47614
270
2,808
4.848148
0.325926
0.009167
0.013751
0.027502
0.204736
0.143621
0.128342
0.039725
0
0
0
0.01359
0.371083
2,808
92
110
30.521739
0.727633
0.048433
0
0.121622
0
0
0.074991
0.010499
0
0
0
0
0
1
0.027027
false
0.054054
0.040541
0
0.175676
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
95d996a43000f1ae66ab31e35975742fb486e0ed
3,423
py
Python
python/CLI/__main__.py
andreehultgren/soduko
aae2d174e417d00ed60206f4567e554d25aa4311
[ "MIT" ]
null
null
null
python/CLI/__main__.py
andreehultgren/soduko
aae2d174e417d00ed60206f4567e554d25aa4311
[ "MIT" ]
null
null
null
python/CLI/__main__.py
andreehultgren/soduko
aae2d174e417d00ed60206f4567e554d25aa4311
[ "MIT" ]
null
null
null
from random import sample, randint, seed from tabulate import tabulate DIFFICULTY = 5 #From 1 to 10 def main(): #Build a board solution = generate_board() #Remove x amount of pieces randomly (based on DIFFICULTY) board = gamify(solution) #Build a solver #guess ...
27.384
85
0.566754
450
3,423
4.231111
0.253333
0.069328
0.034664
0.02521
0.185399
0.149685
0.081933
0.081933
0.081933
0.081933
0
0.023841
0.3383
3,423
125
86
27.384
0.816777
0.139936
0
0.139241
1
0
0.009563
0
0
0
0
0
0
1
0.113924
false
0
0.025316
0.025316
0.253165
0.037975
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
95e298d34f1fa8b416ca60e1c0565add54976a45
1,838
py
Python
django_toolkit/forms/crispy.py
alexhayes/django-toolkit
b64106392fad596defc915b8235fe6e1d0013b5b
[ "MIT" ]
7
2015-06-23T07:36:04.000Z
2016-12-24T00:42:50.000Z
django_toolkit/forms/crispy.py
alexhayes/django-toolkit
b64106392fad596defc915b8235fe6e1d0013b5b
[ "MIT" ]
5
2020-02-12T00:49:28.000Z
2021-12-13T19:47:48.000Z
django_toolkit/forms/crispy.py
alexhayes/django-toolkit
b64106392fad596defc915b8235fe6e1d0013b5b
[ "MIT" ]
4
2015-06-23T07:37:40.000Z
2021-04-04T03:53:34.000Z
from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, TEMPLATE_PACK, Field from django.forms.fields import DateField, DateTimeField, CharField from durationfield.forms.fields import DurationField from django_toolkit.forms.widgets import DatePickerField, DateTimePickerField,\ DurationPic...
40.844444
110
0.727965
204
1,838
6.411765
0.294118
0.06422
0.058104
0.030581
0.126147
0.093272
0
0
0
0
0
0
0.190424
1,838
44
111
41.772727
0.879032
0.057671
0
0
0
0
0.004079
0
0
0
0
0
0
1
0.114286
false
0
0.2
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
95eb6bdbb1302a3ab544e4b1db8379bd93df744b
1,542
py
Python
data/read_me.py
calee88/SCCvSD
308e2d191edb4d02b9bb7261c30e3170feebe00a
[ "BSD-2-Clause" ]
49
2019-06-07T15:09:45.000Z
2022-03-15T06:59:48.000Z
data/read_me.py
calee88/SCCvSD
308e2d191edb4d02b9bb7261c30e3170feebe00a
[ "BSD-2-Clause" ]
20
2019-07-04T22:46:24.000Z
2022-03-13T18:18:40.000Z
data/read_me.py
calee88/SCCvSD
308e2d191edb4d02b9bb7261c30e3170feebe00a
[ "BSD-2-Clause" ]
15
2019-07-05T23:36:05.000Z
2022-03-16T15:27:46.000Z
""" worldcup2014.mat It is the playing ground model of soccer. points: N * 2, points in the model, for example, line intersections line_segment_index: N * 2, line segment start/end point index grid_points: a group of 2D points uniformly sampled inside of the playing ground. It is used to approximate the a...
24.09375
90
0.741894
264
1,542
4.219697
0.439394
0.017953
0.043088
0.032316
0.059246
0.030521
0.030521
0.030521
0
0
0
0.059236
0.167964
1,542
63
91
24.47619
0.809041
0.22179
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
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
95ee340f918abbe709fbba7a41e4eaec8e01a392
461
py
Python
wrapanapi/containers/project.py
ohiliazo/wrapanapi
df8290869c203911e92572b6fd93891c962eff3b
[ "MIT" ]
1
2016-09-13T07:31:06.000Z
2016-09-13T07:31:06.000Z
wrapanapi/containers/project.py
ohiliazo/wrapanapi
df8290869c203911e92572b6fd93891c962eff3b
[ "MIT" ]
null
null
null
wrapanapi/containers/project.py
ohiliazo/wrapanapi
df8290869c203911e92572b6fd93891c962eff3b
[ "MIT" ]
null
null
null
from __future__ import absolute_import from wrapanapi.containers import ContainersResourceBase class Project(ContainersResourceBase): RESOURCE_TYPE = 'namespace' CREATABLE = True VALID_NAME_PATTERN = r'^[a-z0-9][a-z0-9\-]+$' def __init__(self, provider, name): ContainersResourceBase.__init__(...
28.8125
67
0.691974
50
461
5.82
0.58
0.020619
0.027491
0.137457
0
0
0
0
0
0
0
0.010667
0.186551
461
15
68
30.733333
0.765333
0
0
0
0
0
0.095445
0.045553
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.818182
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
95f2d153ceff3f1959f08b6bd1573b9b7ba94fd5
3,287
py
Python
main.py
rtoal/dogbnb
b0bc1ef061135b4a2de2d06b1af0ffa5d77fc157
[ "MIT" ]
null
null
null
main.py
rtoal/dogbnb
b0bc1ef061135b4a2de2d06b1af0ffa5d77fc157
[ "MIT" ]
null
null
null
main.py
rtoal/dogbnb
b0bc1ef061135b4a2de2d06b1af0ffa5d77fc157
[ "MIT" ]
null
null
null
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.352273
132
0.67052
412
3,287
5.15534
0.298544
0.051789
0.039548
0.047081
0.304143
0.221281
0.194915
0.122411
0.091337
0.091337
0
0.006317
0.229389
3,287
87
133
37.781609
0.832215
0.166717
0
0.222222
0
0
0.090642
0.007706
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.079365
0
0
0
null
0
0
0
0
0
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
95fbf8d52c1e62c5c95c09c150dba14e7fe4904f
2,832
py
Python
examples/titanic.py
benglard/ConvNetPy
c174bbbe86b4292419fbc83acb7fbffca995e59a
[ "MIT" ]
26
2015-02-28T06:52:03.000Z
2020-04-28T07:42:33.000Z
examples/titanic.py
benglard/ConvNetPy
c174bbbe86b4292419fbc83acb7fbffca995e59a
[ "MIT" ]
3
2015-04-03T14:12:38.000Z
2015-08-29T06:00:49.000Z
examples/titanic.py
benglard/ConvNetPy
c174bbbe86b4292419fbc83acb7fbffca995e59a
[ "MIT" ]
16
2015-04-03T05:21:55.000Z
2021-09-08T02:59:59.000Z
from vol import Vol from net import Net from trainers import Trainer training_data = [] testing_data = [] network = None sgd = None N_TRAIN = 800 def load_data(): global training_data, testing_data train = [ line.split(',') for line in file('./data/titanic-kaggle/train.csv').read().split('...
30.451613
101
0.547316
370
2,832
4.127027
0.27027
0.062868
0.041912
0.035363
0.458415
0.458415
0.458415
0.458415
0.398166
0.294695
0
0.02286
0.274011
2,832
93
102
30.451613
0.719844
0.058616
0
0.25
0
0
0.127772
0.042465
0
0
0
0
0
0
null
null
0.027778
0.041667
null
null
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
1
0
0
0
0
0
0
0
0
1
95fca911929c2227cbb6ccaa891cfb7e742e7694
1,375
py
Python
config_generator.py
iamgaurav/SimpleMonitor
123367fbd0ec1f82c0f92002320b72bfab91f1a7
[ "Apache-2.0" ]
null
null
null
config_generator.py
iamgaurav/SimpleMonitor
123367fbd0ec1f82c0f92002320b72bfab91f1a7
[ "Apache-2.0" ]
1
2021-06-01T23:28:56.000Z
2021-06-01T23:28:56.000Z
config_generator.py
iamgaurav/SimpleMonitor
123367fbd0ec1f82c0f92002320b72bfab91f1a7
[ "Apache-2.0" ]
1
2021-09-01T16:45:45.000Z
2021-09-01T16:45:45.000Z
import os import json if __name__ == "__main__": print("This script generates the config.json required for the monitor.py script") try: config = open('config.json', 'r') config = json.load(config) print("Found an existing config.json. This script will add new data to the existing json")...
38.194444
98
0.613818
177
1,375
4.661017
0.327684
0.084848
0.043636
0.048485
0.361212
0.361212
0.361212
0.361212
0.361212
0.361212
0
0
0.24
1,375
35
99
39.285714
0.789474
0
0
0.214286
1
0
0.378501
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.178571
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
250033d29615f5e4e5e32cade9c19d1187d93874
520
py
Python
src/pup/plugins/win/steps.py
carlosperate/pup
efcc6709e4ab79fce3308aa7465b586078b42d3b
[ "MIT" ]
10
2020-09-16T18:39:07.000Z
2021-12-10T10:15:52.000Z
src/pup/plugins/win/steps.py
carlosperate/pup
efcc6709e4ab79fce3308aa7465b586078b42d3b
[ "MIT" ]
121
2020-08-12T18:09:19.000Z
2022-03-21T01:29:38.000Z
src/pup/plugins/win/steps.py
carlosperate/pup
efcc6709e4ab79fce3308aa7465b586078b42d3b
[ "MIT" ]
2
2021-03-22T22:44:50.000Z
2021-05-25T14:52:12.000Z
""" PUP Plugin defining Windows packaging stages. """ class Steps: @staticmethod def usable_in(ctx): return ( (ctx.pkg_platform == 'win32') and (ctx.tgt_platform == 'win32') ) def __call__(self, ctx, _dsp): return ( 'pup.python-runtime', ...
20.8
45
0.494231
50
520
4.98
0.68
0.104418
0
0
0
0
0
0
0
0
0
0.012232
0.371154
520
24
46
21.666667
0.749235
0.086538
0
0.117647
0
0
0.27409
0.049251
0
0
0
0
0
1
0.117647
false
0
0
0.117647
0.294118
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
25023aa7342822b2dc4d33b1d0a61a1d2340b7eb
2,660
py
Python
trace_viewer/build/update_gyp_and_gn_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
2
2015-02-09T22:19:36.000Z
2021-04-07T03:16:18.000Z
trace_viewer/build/update_gyp_and_gn_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
null
null
null
trace_viewer/build/update_gyp_and_gn_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
1
2019-01-28T15:13:11.000Z
2019-01-28T15:13:11.000Z
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import StringIO from trace_viewer.build.update_gyp_and_gn import BuildFile, GnFile, GypFile class UpdateGypAndGnTests(unittest.TestCase)...
30.227273
75
0.61203
331
2,660
4.722054
0.308157
0.098528
0.058221
0.072937
0.56174
0.502879
0.363404
0.28151
0.231606
0.231606
0
0.018934
0.245489
2,660
87
76
30.574713
0.759841
0.059774
0
0.461538
0
0
0.258642
0.044981
0
0
0
0
0.205128
1
0.064103
false
0.051282
0.038462
0
0.115385
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
250b1c1d267ee4db8054d7ece60818e9bef9cad2
6,632
py
Python
esp_sdk/__init__.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
6
2017-06-05T20:37:19.000Z
2019-04-10T08:43:59.000Z
esp_sdk/__init__.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
18
2016-06-22T16:14:33.000Z
2018-10-29T21:53:15.000Z
esp_sdk/__init__.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
18
2016-07-27T19:20:01.000Z
2020-11-17T02:09:58.000Z
# coding: utf-8 """ ESP Documentation The Evident Security Platform API (version 2.0) is designed to allow users granular control over their Amazon Web Service security experience by allowing them to review alerts, monitor signatures, and create custom signatures. OpenAPI spec version: v2_sdk Ge...
48.057971
230
0.877865
799
6,632
7.075094
0.286608
0.097293
0.029719
0.01769
0.039625
0
0
0
0
0
0
0.000658
0.083685
6,632
137
231
48.408759
0.929571
0.071019
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.991228
0
0.991228
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
250b5d178ac9bf2cc422e7852e9b8bc8e0f3c388
16,053
py
Python
tools/bisection_search/bisection_search.py
Paschalis/android-llvm
317f7fd4b736a0511a2273a2487915c34cf8933e
[ "Apache-2.0" ]
20
2021-06-24T16:38:42.000Z
2022-01-20T16:15:57.000Z
tools/bisection_search/bisection_search.py
Paschalis/android-llvm
317f7fd4b736a0511a2273a2487915c34cf8933e
[ "Apache-2.0" ]
null
null
null
tools/bisection_search/bisection_search.py
Paschalis/android-llvm
317f7fd4b736a0511a2273a2487915c34cf8933e
[ "Apache-2.0" ]
4
2021-11-03T06:01:12.000Z
2022-02-24T02:57:31.000Z
#!/usr/bin/env python3 # # Copyright (C) 2016 The Android Open Source Project # # 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 requi...
36.734554
80
0.691148
2,039
16,053
5.254537
0.209416
0.030054
0.023801
0.022401
0.214206
0.11975
0.056375
0.035468
0.026321
0.00728
0
0.005068
0.213293
16,053
436
81
36.818807
0.843297
0.278577
0
0.094862
0
0
0.165954
0.017361
0
0
0
0
0.003953
1
0.063241
false
0.142292
0.055336
0
0.193676
0.031621
0
0
0
null
0
0
0
0
0
0
0
0
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
2515e18ebc7ad2dcdc9dbd86004ac1cac27865cb
3,378
py
Python
rgb_stacking/contrib/envs.py
ava6969/rgb_stacking_extend
a36f1e35aa796e77201321161056e174966e7707
[ "Apache-2.0" ]
null
null
null
rgb_stacking/contrib/envs.py
ava6969/rgb_stacking_extend
a36f1e35aa796e77201321161056e174966e7707
[ "Apache-2.0" ]
null
null
null
rgb_stacking/contrib/envs.py
ava6969/rgb_stacking_extend
a36f1e35aa796e77201321161056e174966e7707
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import gym import torch from stable_baselines3.common.monitor import Monitor from stable_baselines3.common.vec_env import (DummyVecEnv, SubprocVecEnv, VecEnvWrapper) from stable_baselines3.common.vec_env.vec_normalize import \ VecNorm...
26.598425
91
0.632327
414
3,378
4.975845
0.328502
0.023301
0.025243
0.03301
0.108738
0.079612
0
0
0
0
0
0.005223
0.263173
3,378
126
92
26.809524
0.822419
0.044997
0
0.126437
0
0
0.015848
0
0
0
0
0.007937
0
1
0.206897
false
0.034483
0.137931
0.068966
0.54023
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
251a56a4e252e2090514e76571bb6d51897cf81b
645
py
Python
instances/migrations/0002_permissionset.py
NGXTDN/webvirtcloud
82ded115b95fd5c24bdec8d38533fb0e20945276
[ "Apache-2.0" ]
1,246
2015-02-09T15:26:31.000Z
2022-03-30T23:06:42.000Z
instances/migrations/0002_permissionset.py
NGXTDN/webvirtcloud
82ded115b95fd5c24bdec8d38533fb0e20945276
[ "Apache-2.0" ]
401
2015-03-15T02:16:19.000Z
2022-03-29T08:49:24.000Z
instances/migrations/0002_permissionset.py
NGXTDN/webvirtcloud
82ded115b95fd5c24bdec8d38533fb0e20945276
[ "Apache-2.0" ]
363
2015-03-21T02:35:45.000Z
2022-03-31T23:56:37.000Z
# Generated by Django 2.2.12 on 2020-05-27 07:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instances', '0001_initial'), ] operations = [ migrations.CreateModel( name='PermissionSet', fields=[ ...
25.8
114
0.536434
57
645
5.964912
0.754386
0.082353
0
0
0
0
0
0
0
0
0
0.046512
0.333333
645
24
115
26.875
0.744186
0.071318
0
0
1
0
0.18258
0
0
0
0
0
0
1
0
false
0
0.055556
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
2520004ff55f9b7dcb64ee0900965cf6c501da95
454
py
Python
LeetCode/python3/213.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
279
2019-02-19T16:00:32.000Z
2022-03-23T12:16:30.000Z
LeetCode/python3/213.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
2
2019-03-31T08:03:06.000Z
2021-03-07T04:54:32.000Z
LeetCode/python3/213.py
ZintrulCre/LeetCode_Crawler
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
12
2019-01-29T11:45:32.000Z
2019-02-04T16:31:46.000Z
class Solution: def Rob(self, nums, m, n) -> int: prev, curr = nums[m], max(nums[m], nums[m + 1]) for i in range(m + 2, n): prev, curr = curr, max(prev + nums[i], curr) return curr def rob(self, nums: List[int]) -> int: if len(nums) == 0: return 0 ...
32.428571
82
0.495595
71
454
3.169014
0.338028
0.088889
0.088889
0.124444
0
0
0
0
0
0
0
0.026667
0.339207
454
13
83
34.923077
0.723333
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
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
252d8399370221d8f8159ac8ea84e1a10ee73023
322
py
Python
md2html/statics.py
YoungerMax/md2html-py
b370de402769246dc5cc2d2d23562f7578e33dee
[ "MIT" ]
null
null
null
md2html/statics.py
YoungerMax/md2html-py
b370de402769246dc5cc2d2d23562f7578e33dee
[ "MIT" ]
null
null
null
md2html/statics.py
YoungerMax/md2html-py
b370de402769246dc5cc2d2d23562f7578e33dee
[ "MIT" ]
null
null
null
# HTML tag to default to if no prefix is found md_default_tag = "p" # Markdown to HTML key md_html = [ ("#", "h1"), ("##", "h2"), ("###", "h3"), ("####", "h4"), ("#####", "h5"), ("######", "h6"), ("`", "code"), ("*", "i"), ("**", "strong"), ("~~", "strike"), ("-", "li") ...
14.636364
46
0.326087
31
322
3.290323
0.774194
0
0
0
0
0
0
0
0
0
0
0.026316
0.291925
322
21
47
15.333333
0.421053
0.201863
0
0
0
0
0.23622
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2531a9b35591ad0f05bba40fbc26ff915ebe77e5
800
py
Python
client/chunk.py
rparjun/lua-nginx-samples
bbe15081d0ab884eed7e79f9fde5681475b6220a
[ "MIT" ]
null
null
null
client/chunk.py
rparjun/lua-nginx-samples
bbe15081d0ab884eed7e79f9fde5681475b6220a
[ "MIT" ]
null
null
null
client/chunk.py
rparjun/lua-nginx-samples
bbe15081d0ab884eed7e79f9fde5681475b6220a
[ "MIT" ]
null
null
null
import requests import time import sys direct = sys.argv[1] == "direct" if direct == True: url = "http://localhost/assets/ankit/interlaced/IPHONE5.ts" else: url = "http://localhost/file/qazxswe" chunk_size = 1024 * 1024 current_byte = 0 start = time.clock() file_size = int(requests.head(url).headers['content-l...
25
91
0.715
118
800
4.661017
0.440678
0.16
0.098182
0.12
0.172727
0.172727
0.116364
0
0
0
0
0.015965
0.13875
800
31
92
25.806452
0.782293
0.125
0
0
0
0
0.179083
0
0
0
0
0
0
0
null
null
0
0.142857
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
253a69e61c9675c52152a327c3f438410ff918f9
1,284
py
Python
setup.py
SteveClement/PyMISPGalaxies
f9f8a7bdf3be58a48e7570f2d6b9a71ce86e22f1
[ "BSD-3-Clause" ]
11
2017-07-30T05:55:40.000Z
2021-07-19T12:20:46.000Z
setup.py
SteveClement/PyMISPGalaxies
f9f8a7bdf3be58a48e7570f2d6b9a71ce86e22f1
[ "BSD-3-Clause" ]
5
2018-03-14T14:54:03.000Z
2021-11-05T22:17:15.000Z
setup.py
SteveClement/PyMISPGalaxies
f9f8a7bdf3be58a48e7570f2d6b9a71ce86e22f1
[ "BSD-3-Clause" ]
8
2017-12-07T10:36:38.000Z
2021-11-04T16:30:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup # type: ignore setup( name='pymispgalaxies', version='0.1', author='Raphaël Vinot', author_email='raphael.vinot@circl.lu', maintainer='Raphaël Vinot', url='https://github.com/MISP/PyMISPGalaxies', description='Pyt...
37.764706
90
0.558411
117
1,284
6.08547
0.65812
0.067416
0.117978
0.126404
0.08427
0
0
0
0
0
0
0.005537
0.296729
1,284
33
91
38.909091
0.782946
0.043614
0
0
0
0
0.52898
0.192653
0
0
0
0
0
1
0
true
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
253de72e0761300d8a88839ce178df09d08c5e19
1,647
py
Python
tests/lib/test_parse_bool.py
spookey/observatory
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
null
null
null
tests/lib/test_parse_bool.py
spookey/observatory
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
1
2020-03-28T09:51:56.000Z
2020-03-28T09:51:56.000Z
tests/lib/test_parse_bool.py
spookey/dz_stats_page
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
null
null
null
from observatory.lib.parse import STR_FALSY, STR_TRUTHY, parse_bool STR_UNKNOWN = ('', '_', '🛒') STR_WRONG = (23, None, Exception) def test_simple(): for val in STR_TRUTHY: assert parse_bool(val, warn=False) is True for val in STR_FALSY: assert parse_bool(val, warn=False) is False def test...
27
72
0.693382
244
1,647
4.536885
0.180328
0.097561
0.149051
0.130081
0.719061
0.634146
0.578139
0.519422
0.500452
0.437218
0
0.004584
0.205222
1,647
60
73
27.45
0.840336
0
0
0.35
0
0
0.035823
0
0
0
0
0
0.55
1
0.175
false
0
0.025
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
254fe4eef12db47c1508c278683c2705d16bc265
1,157
py
Python
src/HappyHolidays.py
janvdb-eu/rpi-rgb-led-matrix-xmas
7207abd974d7d5665c23a09eb21d0e65914a74e0
[ "Apache-2.0" ]
1
2021-01-25T18:22:20.000Z
2021-01-25T18:22:20.000Z
src/HappyHolidays.py
janvdb-eu/rpi-rgb-led-matrix-xmas
7207abd974d7d5665c23a09eb21d0e65914a74e0
[ "Apache-2.0" ]
null
null
null
src/HappyHolidays.py
janvdb-eu/rpi-rgb-led-matrix-xmas
7207abd974d7d5665c23a09eb21d0e65914a74e0
[ "Apache-2.0" ]
null
null
null
from PIL import Image from led_matrix_client import Command from Animation import Animation SNOW_COORDS = [ (4, 1), (59, 2), (31, 3), (17, 5), (52, 5), (36, 9), (11, 10), (49, 13), (26, 14), (7, 16), (34, 19), (23, 20), (3, 21), (44, 24), (14, 12), (27, 27), (59, 28), (43, 30), (10, 31) ] ROWS = ...
18.967213
61
0.662057
160
1,157
4.76875
0.48125
0.165138
0.247706
0.102228
0.317169
0.317169
0.317169
0.317169
0.317169
0.317169
0
0.093071
0.164218
1,157
61
62
18.967213
0.695967
0
0
0.163265
0
0
0.069085
0.020725
0
0
0
0
0
1
0.102041
false
0
0.061224
0.061224
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
25513cac02e5b4448c73700764414dc55c643ffe
4,223
py
Python
python/worldkit/placer.py
Angew/WorldKit
35e9fcb469af22e3a4e6d317fde1f6895eef305c
[ "MIT" ]
null
null
null
python/worldkit/placer.py
Angew/WorldKit
35e9fcb469af22e3a4e6d317fde1f6895eef305c
[ "MIT" ]
null
null
null
python/worldkit/placer.py
Angew/WorldKit
35e9fcb469af22e3a4e6d317fde1f6895eef305c
[ "MIT" ]
null
null
null
import math import pyglet import random import sys import xml.etree.ElementTree as xmltree class Point: components = ('x', 'y') dimension = 2 eps = 1e-6 def __init__(self, *args, **kwargs): data = [0.0] * 2 for i in range(min(len(args), self.dimension)): data[i] = args[i] for c, v in kwargs.items(): ...
22.109948
75
0.660668
598
4,223
4.533445
0.252508
0.026558
0.024345
0.01623
0.184803
0.1564
0.101439
0.101439
0.101439
0.101439
0
0.010288
0.194412
4,223
190
76
22.226316
0.786596
0.108691
0
0.07438
0
0
0.028082
0
0
0
0
0
0
1
0.206612
false
0.008264
0.041322
0.090909
0.46281
0.016529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2557e614012fa7cf088932f1552284d84ee652b7
248
py
Python
pingparsing/_common.py
chuongntv/pingparsing
45f0c510bd992128e29096527791cd66c0250f78
[ "MIT" ]
null
null
null
pingparsing/_common.py
chuongntv/pingparsing
45f0c510bd992128e29096527791cd66c0250f78
[ "MIT" ]
null
null
null
pingparsing/_common.py
chuongntv/pingparsing
45f0c510bd992128e29096527791cd66c0250f78
[ "MIT" ]
null
null
null
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import def _to_unicode(text): try: return text.decode("ascii") except AttributeError: return text
16.533333
63
0.681452
28
248
5.785714
0.785714
0.197531
0
0
0
0
0
0
0
0
0
0.005076
0.205645
248
14
64
17.714286
0.817259
0.322581
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
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
255da923ab5e76ba3fc19c1fdf647605948db75f
757
py
Python
SRS/SIM_logger.py
nikitakuklev/ADRNX
b8a07f50788bbbfd36a8f956ca70cf8ed2bd95ee
[ "Apache-2.0" ]
null
null
null
SRS/SIM_logger.py
nikitakuklev/ADRNX
b8a07f50788bbbfd36a8f956ca70cf8ed2bd95ee
[ "Apache-2.0" ]
null
null
null
SRS/SIM_logger.py
nikitakuklev/ADRNX
b8a07f50788bbbfd36a8f956ca70cf8ed2bd95ee
[ "Apache-2.0" ]
null
null
null
import sys,time,os,datetime def __init__(self, debug=True): self.debug = debug def get_new_cryolog_path(self,logroot='/home/pi/Desktop/DataNX/cryologs/'): date = datetime.datetime.now() logdir = logroot+date.strftime('%Y%m%d') if not os.path.isdir(logdir): if (self.debug): print("Directory |{}...
36.047619
81
0.626156
115
757
4.052174
0.547826
0.096567
0.070815
0.103004
0.064378
0
0
0
0
0
0
0.014446
0.177015
757
21
82
36.047619
0.733547
0.030383
0
0
0
0
0.168937
0.044959
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2569249edbd9bd64205939f7fc06df895257448f
2,833
py
Python
otindex/scripts/test_db_selects.py
OpenTreeOfLife/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
1
2017-03-10T22:27:18.000Z
2017-03-10T22:27:18.000Z
otindex/scripts/test_db_selects.py
OpenTreeOfLife/otindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
31
2016-08-17T20:00:51.000Z
2020-10-08T20:35:28.000Z
otindex/scripts/test_db_selects.py
kcranston/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
null
null
null
# run some simple select tests import psycopg2 as psy import simplejson as json import argparse import setup_db def find_all_studies(cursor,config_obj): STUDYTABLE = config_obj.get('database_tables','studytable') sqlstring = "SELECT id FROM {t};".format(t=STUDYTABLE) cursor.execute(sqlstring) print "re...
35.4125
79
0.699965
344
2,833
5.590116
0.276163
0.093604
0.078003
0.084243
0.5117
0.372335
0.197608
0.071763
0.071763
0.071763
0
0.000434
0.187434
2,833
79
80
35.860759
0.834926
0.033533
0
0.151515
0
0
0.216978
0
0
0
0
0
0
0
null
null
0
0.060606
null
null
0.151515
0
0
0
null
0
0
0
0
0
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
256d33d599082c944929a032c6639ebc159366a7
2,060
py
Python
parser/WSParser.py
crownstone/bluenet-dashboard-backend
5114e0cde0988013e75ef0c58539d98797768bdb
[ "MIT" ]
null
null
null
parser/WSParser.py
crownstone/bluenet-dashboard-backend
5114e0cde0988013e75ef0c58539d98797768bdb
[ "MIT" ]
1
2018-02-12T13:56:58.000Z
2018-02-12T13:56:58.000Z
parser/WSParser.py
crownstone/bluenet-dashboard-backend
5114e0cde0988013e75ef0c58539d98797768bdb
[ "MIT" ]
null
null
null
import json class WSParser: bluenetInstance = None def __init__(self): pass def connectToBluenet(self, bluenetInstance): self.bluenetInstance = bluenetInstance def receiveWebSocketCommand(self, stringifiedJson): print("Raw Data", stringifiedJson) ...
43.829787
85
0.653398
149
2,060
8.919463
0.308725
0.185854
0.206923
0.063958
0.090293
0
0
0
0
0
0
0
0.235922
2,060
47
86
43.829787
0.844346
0
0
0
0
0
0.187288
0.06065
0
0
0
0
0
1
0.102564
false
0.025641
0.025641
0
0.205128
0.051282
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