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
19ebb2a3f5203d8e575a8e0bab417177a0a48924
5,010
py
Python
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
2
2016-08-22T12:38:10.000Z
2017-01-26T18:37:33.000Z
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
data = ( 'bols', # 0x00 'bolt', # 0x01 'bolp', # 0x02 'bolh', # 0x03 'bom', # 0x04 'bob', # 0x05 'bobs', # 0x06 'bos', # 0x07 'boss', # 0x08 'bong', # 0x09 'boj', # 0x0a 'boc', # 0x0b 'bok', # 0x0c 'bot', # 0x0d 'bop', # 0x0e 'boh', # 0x0f 'bwa', # 0x1...
19.343629
20
0.436128
513
5,010
4.259259
1
0
0
0
0
0
0
0
0
0
0
0.179328
0.358882
5,010
258
21
19.418605
0.500934
0.255289
0
0
0
0
0.359764
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19ecf7e3e7e37b889b168edf93836870ccf82afb
55
py
Python
social/backends/azuread.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
1,987
2015-01-01T16:12:45.000Z
2022-03-29T14:24:25.000Z
social/backends/azuread.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
731
2015-01-01T22:55:25.000Z
2022-03-10T15:07:51.000Z
virtual/lib/python3.6/site-packages/social/backends/azuread.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
1,082
2015-01-01T16:27:26.000Z
2022-03-22T21:18:33.000Z
from social_core.backends.azuread import AzureADOAuth2
27.5
54
0.890909
7
55
6.857143
1
0
0
0
0
0
0
0
0
0
0
0.019608
0.072727
55
1
55
55
0.921569
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
19ed8ee16410261911df594fb0af9ff20f20ca7e
6,556
py
Python
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
1
2021-02-28T17:27:16.000Z
2021-02-28T17:27:16.000Z
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
null
null
null
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Israel Herraiz <isra@herraiz.org> # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, me...
33.968912
107
0.585265
838
6,556
4.409308
0.236277
0.05115
0.045737
0.05954
0.440866
0.397564
0.335859
0.283356
0.271719
0.271719
0
0.011341
0.314063
6,556
192
108
34.145833
0.810318
0.194783
0
0.350877
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.026316
0.017544
0.219298
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19eeab362b9fb0e2d6b801d0a756ec8fc09dd20a
2,837
py
Python
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
import traceback from typing import Optional from .i18n import _ class UspsToolsException(Exception): """ Base class for all errors. """ def __init__(self, message: Optional[str] = None, origin: Exception = None): """ :param message: :param origin: """ super()._...
27.813725
114
0.601692
301
2,837
5.468439
0.242525
0.029769
0.04678
0.076549
0.515188
0.445322
0.445322
0.445322
0.445322
0.415553
0
0.000989
0.287275
2,837
101
115
28.089109
0.813056
0.183292
0
0.352941
0
0
0.099442
0
0
0
0
0
0
1
0.235294
false
0
0.088235
0
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
19effa59bdd92c4854c56be758df2693cacdcb3d
1,158
py
Python
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
import sys import csv import requests from parsel import Selector from scraper.parser import get_features_from_item start_url = 'http://www.world-art.ru/animation/rating_top.php' SIGN_STDOUT = '-' FORMAT_CSV = 'csv' FORMAT_JL = 'jl' def parse(url: str, out_path: str, out_format: str): """ gets link and ret...
28.243902
103
0.69171
162
1,158
4.716049
0.469136
0.078534
0.094241
0.049738
0.10733
0.10733
0.10733
0.10733
0.10733
0
0
0.007423
0.185665
1,158
40
104
28.95
0.802757
0.029361
0
0
0
0
0.16787
0.08574
0
0
0
0
0.083333
1
0.041667
false
0
0.208333
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19f24b3bd880d9e6bed48acb8886bc868d4be2dd
14,592
py
Python
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
1
2020-07-23T19:02:50.000Z
2020-07-23T19:02:50.000Z
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
null
null
null
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys import serial.tools.list_ports from PyQt4 import QtCore from PyQt4 import QtGui from photogate_ui import Ui_PhotogateMainWindow from photogate_serial import PhotogateDevice from photogate_serial import getListOfPorts import dependency_hack try: import scipy...
37.22449
94
0.614172
1,297
14,592
6.841943
0.216654
0.018932
0.017129
0.008677
0.205995
0.179175
0.170385
0.149538
0.11652
0.081812
0
0.005521
0.280085
14,592
391
95
37.319693
0.839219
0.028988
0
0.277108
0
0
0.076651
0
0
0
0
0
0
0
null
null
0.003012
0.036145
null
null
0.003012
0
0
0
null
0
0
0
0
0
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
19f364dac17ba32accfedb9fef8b6459dc8369f0
114
py
Python
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
from core import Variable from operation import * a = Variable(2) b = square(a) c = square(b) print(c.data)
8.769231
25
0.675439
19
114
4.052632
0.631579
0
0
0
0
0
0
0
0
0
0
0.011111
0.210526
114
12
26
9.5
0.844444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
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
1
0
0
0
0
2
19f3a16361bc6bc5804201c9d2a4c2d8f966a4a0
106
py
Python
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
1
2019-06-03T03:16:44.000Z
2019-06-03T03:16:44.000Z
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
null
null
null
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
null
null
null
name = 'sharepoint' from .sharepoint import SharePointSite __author__='James Classen' __version__='0.0.2'
21.2
38
0.792453
13
106
5.846154
0.846154
0
0
0
0
0
0
0
0
0
0
0.03125
0.09434
106
5
39
21.2
0.760417
0
0
0
0
0
0.261682
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
19f6250f9d15cae4fb338cfbac1c36e435b2c1ca
3,188
py
Python
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
32
2016-05-31T13:01:46.000Z
2022-03-18T11:17:36.000Z
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
null
null
null
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
29
2016-06-08T18:11:00.000Z
2021-09-28T04:14:34.000Z
# Copyright 2015 The Offline Content Packager Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
32.20202
78
0.69542
409
3,188
5.244499
0.366748
0.027972
0.02331
0.022378
0.02704
0.02704
0
0
0
0
0
0.007042
0.198243
3,188
98
79
32.530612
0.83216
0.192284
0
0
0
0
0.15
0.020703
0
0
0
0
0.015385
1
0.092308
false
0
0.153846
0.015385
0.276923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19f6287b8eec32e7e9ec1cec1c39636f68949b75
2,308
py
Python
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
1
2022-03-28T10:46:58.000Z
2022-03-28T10:46:58.000Z
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
null
null
null
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
null
null
null
from pathlib import Path from pyspark.sql import SparkSession, functions as f from pyspark.sql.dataframe import DataFrame # Monkeypatch in case I don't use Spark 3.0 def transform(self, f): return f(self) DataFrame.transform = transform def query_mpns_v8_name_relationships( input_filepath: str, outp...
30.368421
86
0.747834
304
2,308
5.319079
0.279605
0.157699
0.074212
0.170686
0.538033
0.486704
0.366729
0.307978
0.307978
0.262832
0
0.010725
0.151646
2,308
75
87
30.773333
0.815117
0.184575
0
0
0
0
0.137728
0.123794
0
0
0
0
0
1
0.093023
false
0
0.069767
0.023256
0.209302
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
19f803a96ec5d364efd732c5edf09bf82c3dfe31
124
py
Python
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 23 16:56:57 2018 @author: tommy_mizuki """ import my_library my_func(1,2)
11.272727
35
0.645161
22
124
3.5
0.954545
0
0
0
0
0
0
0
0
0
0
0.147059
0.177419
124
11
36
11.272727
0.607843
0.653226
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
3
19f8e4fcaecd9a3968eed26a324bf80026d1583f
246
py
Python
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
1
2021-08-19T06:23:00.000Z
2021-08-19T06:23:00.000Z
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
null
null
null
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
null
null
null
n = int(input()) count = 0 number = 0 while True: if '666' in str(number): #문자열로 변경하였을때 '666'이 포함되어있다면 count를 세준다. count += 1 if count == n: #count가 입력값과 동일할 때 print -> n번째 값 출력 print(number) break number += 1
24.6
68
0.565041
39
246
3.564103
0.717949
0
0
0
0
0
0
0
0
0
0
0.059524
0.317073
246
10
69
24.6
0.767857
0.296748
0
0
0
0
0.017442
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19f91845aaff11955f6b430aa3684474c464bf80
3,599
py
Python
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/cacheWorkloadAnalysisOSDI20
cfc5bbb5c8d909571546c78c247561c9db449469
[ "Apache-2.0" ]
6
2020-11-12T07:51:02.000Z
2022-03-27T20:20:01.000Z
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/InMemoryCachingWorkloadAnalysis
5f6f9f7e29a164478f3fc28eb64c170bbbafdec7
[ "Apache-2.0" ]
null
null
null
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/InMemoryCachingWorkloadAnalysis
5f6f9f7e29a164478f3fc28eb64c170bbbafdec7
[ "Apache-2.0" ]
1
2021-12-31T01:16:09.000Z
2021-12-31T01:16:09.000Z
""" plot request rate """ import os, sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) from utils.common import * def _cal_req_rate(trace_reader, window): metadata_name = "reqRateList_w{}_{}.pickle".format(window, trace_reader.trace_path.split("/")[-1]) loaded = load_metadata(...
38.698925
159
0.689358
600
3,599
3.825
0.193333
0.076688
0.057516
0.030501
0.467974
0.410458
0.309368
0.293682
0.237909
0.237909
0
0.02082
0.159211
3,599
92
160
39.119565
0.737607
0.004724
0
0.140845
0
0
0.094065
0.021557
0
0
0
0
0
1
0.028169
false
0
0.042254
0
0.112676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19f928aecd4ff7011c0373aab909dea8913438c6
1,373
py
Python
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
null
null
null
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
3
2021-03-18T20:36:25.000Z
2021-09-07T23:54:49.000Z
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
null
null
null
import os import redis import logging class Config(object): #配置数据库连接 SQLALCHEMY_DATABASE_URI = 'mysql://root:19920917@127.0.0.1:3306/data_monster' SQLALCHEMY_TRACK_MODIFICATIONS = False #配置redis数据库 REDIS_HOST = '127.0.0.1' REDIS_PORT = 6379 # 配置flask_session SESSION_TYPE = 'redis' ...
19.614286
81
0.699927
164
1,373
5.621951
0.47561
0.039046
0.052061
0.013015
0
0
0
0
0
0
0
0.043796
0.201748
1,373
69
82
19.898551
0.797445
0.029133
0
0.108108
0
0
0.194954
0.075688
0
0
0
0
0
1
0.027027
false
0.054054
0.081081
0
0.810811
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
1
0
0
2
19fac7af0c83f21b636a9b1fa9c53ac1705d1cfb
5,097
py
Python
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
8
2019-10-23T12:16:13.000Z
2020-11-16T02:20:28.000Z
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
null
null
null
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
4
2020-02-06T14:54:47.000Z
2020-10-25T03:03:04.000Z
import tensorflow as tf from tensorflow.python import pywrap_tensorflow from tensorflow.python.platform import tf_logging as logging from tensorflow.python.training import saver as tf_saver def average_gradients(tower_grads): """Calculate the average gradient for each shared variable across all towers. Note t...
36.148936
84
0.673141
706
5,097
4.685552
0.290368
0.025393
0.043531
0.00786
0.05925
0.035671
0.018138
0
0
0
0
0.004223
0.256622
5,097
140
85
36.407143
0.868831
0.429468
0
0.046875
0
0
0.028592
0
0
0
0
0
0
1
0.109375
false
0
0.0625
0
0.28125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19fb5606842651b084278976b916a2b6ffe5d1f9
328
py
Python
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
1
2020-11-16T04:59:48.000Z
2020-11-16T04:59:48.000Z
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
null
null
null
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
1
2019-12-03T21:43:02.000Z
2019-12-03T21:43:02.000Z
class MMDConfiguration: def __init__(self, mmd_rbf_gamma, mmd_rbf_ncomponents, mmd_representative_set_size): self.mmd_rbf_gamma=mmd_rbf_gamma self.mmd_rbf_ncomponents=mmd_rbf_ncomponents self.mmd_representative_set_size=mmd_representative_s...
32.8
68
0.685976
38
328
5.263158
0.315789
0.18
0.15
0.36
0.21
0.21
0
0
0
0
0
0
0.27439
328
9
69
36.444444
0.840336
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
19fb9cf0c33a5df90f7ff935997f2b53b4510673
1,234
py
Python
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
10
2021-11-17T17:23:49.000Z
2022-03-18T09:51:23.000Z
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
3
2021-12-02T17:16:20.000Z
2022-01-07T12:47:13.000Z
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
2
2022-03-09T07:03:54.000Z
2022-03-23T15:53:48.000Z
from dataclasses import dataclass from typing import List from paralleldomain.model.annotation.common import Annotation from paralleldomain.model.annotation.polyline_2d import Polyline2D @dataclass class Polygon2D(Polyline2D): """A closed polygon made a collection of 2D Lines. Args: lines: :attr:`~....
29.380952
114
0.691248
142
1,234
5.957746
0.429577
0.061466
0.054374
0.078014
0
0
0
0
0
0
0
0.018614
0.21637
1,234
41
115
30.097561
0.856256
0.669368
0
0.2
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
19fd46480858b4a1d5b5836cc3a46a14d32272f9
828
py
Python
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
import os import shutil import sys from maplist import installed_games backup_dir = "F:/bsps" if len(sys.argv) == 2: backup_dir = sys.argv[1] print(f"Making backups in '{backup_dir}'") i = 0 for base_dir, game_dir in installed_games: i += 1 print(f"Backing up ({i}/{len(installed_games)}) {game_dir}...")...
30.666667
67
0.642512
128
828
3.945313
0.40625
0.069307
0.079208
0.083168
0.138614
0.075248
0
0
0
0
0
0.00625
0.227053
828
26
68
31.846154
0.782813
0.043478
0
0.090909
0
0
0.164557
0.035443
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19fe235467f017d20a959660a872441f0b170a74
770
py
Python
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
from typing import List, Optional from pydantic import AnyHttpUrl from infobip_channels.core.models import CamelCaseModel, ResponseBase class Button(CamelCaseModel): text: str type: str phone_number: Optional[str] = None url: Optional[AnyHttpUrl] = None class Header(CamelCaseModel): format: st...
19.25
69
0.711688
87
770
6.252874
0.448276
0.060662
0.082721
0
0
0
0
0
0
0
0
0
0.21039
770
39
70
19.74359
0.894737
0
0
0.074074
0
0
0
0
0
0
0
0
0
1
0
true
0
0.111111
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
19ff517f6d368213182e5f5031c40842eae17a49
1,391
py
Python
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
16
2018-03-28T11:20:11.000Z
2020-09-17T19:39:25.000Z
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
3
2018-03-15T10:17:29.000Z
2018-05-16T13:14:28.000Z
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
6
2018-05-08T12:53:51.000Z
2021-09-25T03:21:02.000Z
import logging from flask import Flask, request, jsonify from extractor.document import Document from extractor.five_w_extractor import FiveWExtractor app = Flask(__name__) log = logging.getLogger(__name__) host = None port = 5000 debug = False options = None extractor = FiveWExtractor() ch = logging.StreamHandler() ...
26.245283
82
0.675054
165
1,391
5.527273
0.381818
0.096491
0.061404
0.041667
0.057018
0
0
0
0
0
0
0.003537
0.186916
1,391
52
83
26.75
0.802829
0
0
0
0
0
0.179727
0
0
0
0
0
0
1
0.05
false
0
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
0
0
0
0
0
1
0
19ffa347e490ab19819ef9b329ffa153417391c5
826
py
Python
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
125
2015-03-04T09:14:46.000Z
2022-03-29T07:46:12.000Z
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
1,018
2015-01-04T16:01:29.000Z
2022-03-31T19:23:09.000Z
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
117
2015-01-10T08:05:52.000Z
2022-01-18T05:16:51.000Z
import os import tempfile import pkg_resources as p from CPAC.utils.symlinks import create_symlinks mocked_outputs = \ p.resource_filename( "CPAC", os.path.join( 'utils', 'tests', 'test_symlinks-outputs.txt' ) ) def test_symlinks(): temp_dir ...
19.666667
55
0.579903
95
826
4.884211
0.589474
0.077586
0.064655
0
0
0
0
0
0
0
0
0.014363
0.325666
826
42
56
19.666667
0.818671
0.117433
0
0
0
0
0.153103
0.067586
0
0
0
0.02381
0
1
0.037037
false
0
0.148148
0
0.185185
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c200bfcfb3506f7b5d5aa61e676f674b8d4fef20
14,488
py
Python
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-09 15:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): initial = True dependencies = [ ] ope...
50.835088
143
0.574752
1,331
14,488
6.077385
0.106687
0.058474
0.064532
0.086043
0.85128
0.847942
0.822475
0.788602
0.788602
0.751638
0
0.006065
0.282993
14,488
284
144
51.014085
0.772622
0.004694
0
0.666667
1
0
0.147118
0.001457
0
0
0
0
0
1
0
false
0.003623
0.014493
0
0.028986
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c202c2c6ef86a127b7a659f1ab70e457fb054b54
4,799
py
Python
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
"""Script for running the dserve server.""" import os from flask import ( Flask, jsonify, send_file, abort, request, ) from flask_cors import CORS, cross_origin app = Flask(__name__) cors = CORS(app) @app.route("/") @cross_origin() def root(): content = { "_links": { "s...
25.526596
77
0.600542
503
4,799
5.497018
0.17495
0.065099
0.03038
0.036166
0.383725
0.237613
0.164557
0.146474
0.146474
0.146474
0
0.00838
0.254011
4,799
187
78
25.663102
0.763966
0.00771
0
0.36129
0
0
0.119008
0.022498
0
0
0
0
0
1
0.070968
false
0
0.019355
0
0.187097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c203136ec3038930bc5926aaf959f30e095e46a5
1,610
py
Python
kkutil/security.py
kaka19ace/kkutils
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
1
2015-12-13T18:42:52.000Z
2015-12-13T18:42:52.000Z
kkutil/security.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
kkutil/security.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # """ util regex tool refs: http://www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks """ import re INJECTION_REGEX = re.compile( r"(%27)|(\')|(\-\-)|(%23)|(#)|" # Regex for detection of SQL meta-characters r"\w*((%27)|(\...
35
148
0.608075
234
1,610
4.076923
0.393162
0.067086
0.089099
0.104822
0.381551
0.339623
0.339623
0.264151
0.264151
0.213836
0
0.036136
0.157764
1,610
45
149
35.777778
0.667404
0.390062
0
0.076923
0
0.076923
0.360996
0.266598
0
0
0
0
0
1
0.076923
false
0
0.038462
0.038462
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c204bfd19101390dbf534e7049d9b49aef3685e3
1,520
py
Python
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
2
2019-04-25T17:38:02.000Z
2020-03-03T22:50:04.000Z
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
null
null
null
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python REGISTERS = { 'IOCFG2': 0x00, 'IOCFG1': 0x01, 'IOCFG0': 0x02, 'FIFOTHR': 0x03, 'SYNC1': 0x04, 'SYNC0': 0x05, 'PKTLEN': 0x06, 'PKTCTRL1': 0x07, 'PKTCTRL0': 0x08, 'ADDR': 0x09, 'CHANNR': 0x0A, 'FSCTRL1': 0x0B, 'FSCTRL0': 0x0C, 'FREQ2': 0x0D, ...
20.540541
72
0.484211
170
1,520
4.282353
0.829412
0.028846
0.027473
0
0
0
0
0
0
0
0
0.165377
0.319737
1,520
73
73
20.821918
0.538685
0.013158
0
0.030769
0
0.015385
0.247498
0.02535
0
0
0.128085
0
0
1
0
false
0
0.030769
0
0.030769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c205b5f889cdcc188c5b89c3efa9505bfb938fe3
384
py
Python
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
1
2022-01-10T15:14:55.000Z
2022-01-10T15:14:55.000Z
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
null
null
null
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
null
null
null
''' @func:to store useful links module @create:2021.10.20 ''' def usefullink(): import streamlit as st st.write('[1].在线Latex公式编辑器') st.write('https://latex.codecogs.com/eqneditor/editor.php?lang=zh-cn') st.write('[2].装饰Github README.md文件的logo') st.write('https://shields.io/') st.write('[3...
25.6
74
0.65625
54
384
4.666667
0.740741
0.166667
0.142857
0
0
0
0
0
0
0
0
0.033435
0.143229
384
15
75
25.6
0.732523
0.138021
0
0
0
0
0.521605
0
0
0
0
0
0
1
0.125
true
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
c2065e5fc7e61fdabd4ab6fd12c1ead2ad9d477a
78,713
py
Python
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
2
2020-01-16T18:30:55.000Z
2020-02-06T08:33:51.000Z
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 Regents of the University of California # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
54.284828
757
0.612656
9,155
78,713
4.967013
0.085745
0.088272
0.0687
0.078904
0.65905
0.598135
0.524905
0.469795
0.426869
0.386625
0
0.012827
0.305693
78,713
1,449
758
54.322291
0.819235
0.151385
0
0.417735
0
0.005342
0.094554
0.003625
0
0
0
0.00069
0.025641
1
0.013889
false
0
0.012821
0
0.035256
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2094cbd00b0292a602f2ea788a9486c162b5e7e
2,053
py
Python
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
2
2018-01-18T11:01:36.000Z
2021-12-20T18:14:48.000Z
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
''' https://leetcode.com/contest/weekly-contest-150/problems/last-substring-in-lexicographical-order/ SA algorithm mostly copied from https://cp-algorithms.com/string/suffix-array.html Status: tle. probably py3 lists ''' class SuffixArray: def __init__(self, s): self.s = s self.n = len(s) ...
31.584615
97
0.431076
313
2,053
2.814696
0.188498
0.085131
0.040863
0.056754
0.292849
0.162316
0
0
0
0
0
0.037187
0.397467
2,053
64
98
32.078125
0.67502
0.103751
0
0.037037
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c20c7d9e299f07af3208c0a8aedd483571769bbb
18,555
py
Python
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
3
2021-03-26T22:51:41.000Z
2021-03-27T15:17:24.000Z
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
null
null
null
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
null
null
null
from antlr4 import * from .antlr import GraphQLLexer, GraphQLListener, GraphQLParser from .codegen import CodegenTool, Class, String, ClassInstance, IfElse, If, Method, Expr, Variable import re from math import floor from datetime import datetime from .utils import strip_string_quotes, camel_case_to_snake_case, process...
46.156716
136
0.492643
1,654
18,555
5.261185
0.136638
0.019306
0.019421
0.025396
0.495059
0.456332
0.425075
0.390715
0.347276
0.333142
0
0.001883
0.427648
18,555
401
137
46.27182
0.817514
0.05896
0
0.386207
0
0
0.045045
0.004884
0
0
0
0
0
1
0.013793
false
0.013793
0.031034
0
0.048276
0.006897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c20cac9dd66122173bfd30ba53957fea5bb5307b
2,231
py
Python
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
null
null
null
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
1
2021-06-02T02:01:38.000Z
2021-06-02T02:01:38.000Z
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify,Blueprint from flask_marshmallow import Marshmallow from app.models import User, Group, Role from app import ma api = Blueprint('api', __name__) class UserSchema(ma.Schema): class Meta: # Fields to expose fields = ('id', 'confirmed','first_name','last_nam...
26.247059
80
0.685791
311
2,231
4.787781
0.170418
0.042982
0.069846
0.034251
0.443922
0.304231
0.28274
0.173271
0.173271
0.173271
0
0
0.160466
2,231
85
81
26.247059
0.794981
0.069027
0
0.210526
0
0
0.099469
0
0
0
0
0
0
1
0.140351
false
0
0.070175
0
0.491228
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c20d8ed82808f42c1ce9f7452c5668af8015a2b5
2,335
py
Python
setup.py
maljovec/samply
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
null
null
null
setup.py
maljovec/samply
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
2
2019-02-21T00:28:36.000Z
2019-11-09T04:35:39.000Z
setup.py
maljovec/samplers
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
null
null
null
""" Setup script for samply """ from setuptools import setup import re extra_args = {} def get_property(prop, project): """ Helper function for retrieving properties from a project's __init__.py file @In, prop, string representing the property to be retrieved @In, project, ...
29.935897
77
0.615418
252
2,335
5.587302
0.547619
0.06392
0.02983
0.02983
0.096591
0.096591
0
0
0
0
0
0.006282
0.250107
2,335
77
78
30.324675
0.79783
0.233833
0
0
0
0
0.360259
0.025354
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c20db92c5e61a54ef4ff2401b5df9360bca3d9b1
4,353
py
Python
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
17
2021-01-09T06:49:09.000Z
2022-02-23T01:36:20.000Z
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
null
null
null
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
1
2021-06-22T12:56:16.000Z
2021-06-22T12:56:16.000Z
# -*- coding: utf-8 -*- # @Author: TD21forever # @Date: 2018-11-14 15:41:57 # @Last Modified by: TD21forever # @Last Modified time: 2018-11-15 16:50:48 file = open('input.txt','r')#读取文件 #预处理 传入字符串 def preprocess(article): article = article.strip() article = article.replace(",", ", ") article...
34.824
107
0.464278
495
4,353
3.951515
0.260606
0.0409
0.05317
0.033742
0.4182
0.398773
0.397239
0.397239
0.385992
0.385992
0
0.032756
0.389846
4,353
124
108
35.104839
0.70369
0.087296
0
0.478723
0
0.010638
0.080671
0.037454
0
0
0
0
0
1
0.021277
false
0
0
0
0.031915
0.202128
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c210287e380e114135144808518dac8414c8a7fc
1,405
py
Python
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
null
null
null
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
8
2020-02-12T03:04:07.000Z
2022-03-12T00:07:31.000Z
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
null
null
null
from django.test import TestCase from authors.apps.authentication.models import ( User ) class UserModelTest(TestCase): """ This tests the User model class, ability to create a user and create a super user. """ def test_create_user(self): """ Checks whether a user can be created...
30.543478
112
0.64484
161
1,405
5.503106
0.329193
0.031603
0.076749
0.047404
0.291196
0.291196
0.226862
0.226862
0.128668
0.128668
0
0
0.254093
1,405
45
113
31.222222
0.84542
0.222064
0
0.111111
0
0
0.101891
0
0
0
0
0
0.277778
1
0.222222
false
0.222222
0.111111
0
0.388889
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
1
0
0
0
0
0
2
c213671e056f4ccf87fd3dab05b33b16957f6f48
5,908
py
Python
simulations/MonteCarlo_function.py
chengning-zhang/Statistical-methods-for-combining-multiple-tests-a-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
1
2020-11-24T02:58:58.000Z
2020-11-24T02:58:58.000Z
simulations/MonteCarlo_function.py
chengning-zhang/Combining-multiple-tests-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
null
null
null
simulations/MonteCarlo_function.py
chengning-zhang/Combining-multiple-tests-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- """ Created on Nov 23, 2020 @author: Chengning Zhang """ ## simulation for Scenario A: generate X0 and X1. def MonteCarlo_1(T, n0, n1, u0, u1, sigma0, sigma1, log_bool = False): """simulation for first scenario: multivarite normal with equal variance T: number of simula...
46.15625
128
0.609682
937
5,908
3.731057
0.157951
0.02746
0.054062
0.061785
0.843249
0.839817
0.839817
0.839817
0.833524
0.833524
0
0.028571
0.206161
5,908
127
129
46.519685
0.716844
0.234936
0
0.792208
1
0
0.077341
0
0
0
0
0
0
1
0.038961
false
0
0
0
0.077922
0.051948
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
c213c3cc512fab07ba3d806bd3d3286525745450
389
py
Python
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
import requests def pages_crawler(): http_header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', } url = r'https://robo.datayes.com/v2/indicator_library' response = requests.get(url, headers=http_header) p...
24.3125
135
0.676093
55
389
4.545455
0.8
0.096
0
0
0
0
0
0
0
0
0
0.087774
0.179949
389
15
136
25.933333
0.695925
0
0
0
0
0.1
0.44473
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2145a28b8098d26c67f49818369dff92c2ac06b
11,662
py
Python
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
13
2019-10-15T06:54:49.000Z
2022-03-28T23:23:29.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
1
2019-11-12T15:00:53.000Z
2019-11-14T09:37:46.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
4
2019-12-05T05:34:07.000Z
2022-03-24T09:59:26.000Z
import sys import logging import pytz logging.basicConfig(format='%(levelname)s: %(message)s') if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/ logging.error(" ########################### ERROR ###########################") logging.error(" ============================================...
51.149123
428
0.607271
1,384
11,662
5.091763
0.257948
0.052788
0.021711
0.023414
0.361288
0.315453
0.270044
0.231304
0.191571
0.147013
0
0.008854
0.234865
11,662
227
429
51.374449
0.780903
0.003773
0
0.334884
0
0.046512
0.382371
0.036068
0
0
0
0
0
1
0.037209
false
0
0.069767
0
0.139535
0.009302
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c215424b83f6d390aecbd0efbacc856a6c8e7a5e
38
py
Python
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
1
2016-03-01T10:20:20.000Z
2016-03-01T10:20:20.000Z
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
null
null
null
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
null
null
null
class NoMoreData(Exception): pass
12.666667
28
0.736842
4
38
7
1
0
0
0
0
0
0
0
0
0
0
0
0.184211
38
2
29
19
0.903226
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
c2160b83bdfd16bb5fd59f1cfbfcbb7c7d36395f
3,327
py
Python
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
#Stock inventory control system. def menu(): print("""1. Add New Stock 2. Update existing stock 3. Sell stock, even though 2 will work too 8. Display Inventory 9. Exit""") while True: try: choice = int(input("Please select an option")) break except: ...
30.522936
87
0.479411
346
3,327
4.595376
0.369942
0.034591
0.022642
0.043396
0.042767
0.042767
0.042767
0.042767
0.042767
0
0
0.014739
0.327021
3,327
108
88
30.805556
0.6954
0.245867
0
0.283784
0
0
0.229412
0
0
0
0
0
0
1
0.054054
false
0
0
0
0.067568
0.216216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c21a45651bf528b945d22bdb962a7e3a45ad0e4d
91
py
Python
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
null
null
null
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
1
2022-02-28T01:35:27.000Z
2022-02-28T01:35:27.000Z
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
null
null
null
bind = "0.0.0.0:5000" threads = 10 worker_class = "gthread" accesslog = '-' errorlog = '-'
15.166667
24
0.626374
13
91
4.307692
0.769231
0.107143
0.107143
0
0
0
0
0
0
0
0
0.131579
0.164835
91
5
25
18.2
0.605263
0
0
0
0
0
0.230769
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c21a8492971d5deb4f24b54f0d01b958dad6c817
1,780
py
Python
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
""" 2017 Day 23 https://adventofcode.com/2017/day/23 """ from typing import Dict import aocd # type: ignore class Program: def __init__(self, text: str): self.registers: Dict[str, int] = {} self.commands = text.split("\n") self.position = 0 self.mul_count = 0 def get(self, k...
25.797101
75
0.561798
236
1,780
4.152542
0.347458
0.035714
0.078571
0.061224
0.146939
0.146939
0.146939
0.133673
0.085714
0.085714
0
0.044444
0.292135
1,780
68
76
26.176471
0.733333
0.072472
0
0
0
0
0.04484
0
0
0
0
0
0
1
0.155556
false
0
0.044444
0.022222
0.333333
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
0
0
0
0
0
1
0
c21ace7559f52cf54fe988e11522102469f04048
1,641
py
Python
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
import sys from sklearn.datasets import make_blobs from src.simulator.wsn.network import Network from src.simulator.wsn.utils import * from src.simulator.wsn.fcm import * from src.simulator.wsn.direct_communication import * from src.utils import complete, star seed = 1 np.random.seed(seed ) logging.basic...
32.176471
80
0.672151
215
1,641
4.953488
0.44186
0.032864
0.060094
0.071362
0.114554
0
0
0
0
0
0
0.028636
0.191347
1,641
51
81
32.176471
0.773926
0.197441
0
0.0625
0
0
0.055688
0
0
0
0
0
0
1
0
false
0
0.21875
0
0.21875
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c21c3b472b61858775a3801d8a7ee0aff0f5536a
4,149
py
Python
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
2
2021-12-11T17:25:51.000Z
2022-01-06T15:36:27.000Z
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: from collections.abc import Iterable except ImportError: from collections import Iterable import numpy as np from numpy import ndarray from dewloosh.math.array import atleast1d from dewloosh.math.utils import to_range from .celldata import CellData from .utils import jacobian_mat...
33.192
89
0.577489
499
4,149
4.651303
0.248497
0.034468
0.039207
0.025851
0.19776
0.18785
0.167169
0.167169
0.167169
0.101249
0
0.008678
0.305616
4,149
125
90
33.192
0.796946
0.065317
0
0.172414
0
0
0.021194
0
0
0
0
0
0.022989
1
0.114943
false
0
0.103448
0.022989
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2221b8872b6350f052296a7af3215fb075a5795
30
py
Python
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
34
2019-12-13T10:31:39.000Z
2022-03-09T15:59:07.000Z
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
49
2020-02-25T19:41:09.000Z
2022-02-27T12:05:25.000Z
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
23
2019-12-23T15:19:42.000Z
2022-03-09T16:00:15.000Z
from .rmq_item import RMQItem
15
29
0.833333
5
30
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
c22246e42a11a496e2843439e4ad4abd332a1d57
968
py
Python
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
5
2020-02-12T17:09:09.000Z
2021-09-29T16:06:40.000Z
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
10
2020-08-31T02:50:02.000Z
2022-02-09T23:36:43.000Z
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
2
2022-03-15T01:45:26.000Z
2022-03-15T06:46:47.000Z
import os import numpy as np from gym import utils from mujoco_safety_gym.envs import fetch_env # Ensure we get the path separator correct on windows MODEL_XML_PATH = os.path.join('fetch', 'slide.xml') class FetchSlideEnv(fetch_env.FetchEnvNew, utils.EzPickle): def __init__(self, reward_type='sparse'): ...
37.230769
105
0.66219
143
968
4.188811
0.538462
0.020033
0.015025
0
0
0
0
0
0
0
0
0.059367
0.216942
968
25
106
38.72
0.730871
0.052686
0
0
0
0
0.078689
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c222e22c9b1710ce4667ef563dce67f96dc33915
163
py
Python
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
null
null
null
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
2
2021-09-21T06:32:58.000Z
2021-09-22T23:15:18.000Z
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="raspi_ip", version="1.0.0", author="atoy322", description="", long_description="" )
14.818182
43
0.644172
19
163
5.368421
0.842105
0
0
0
0
0
0
0
0
0
0
0.046512
0.208589
163
10
44
16.3
0.744186
0
0
0
0
0
0.123457
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
1
0
0
0
0
0
0
2
c223b2854d4053fb4e412891092b11e58745c844
339
py
Python
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
1
2022-02-05T08:43:37.000Z
2022-02-05T08:43:37.000Z
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
null
null
null
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
null
null
null
__title__ = "open_kite_connect" __description__ = "Fork of the official Kite Connect python client, allowing free access to the api." __url__ = "https://kite.trade" __download_url__ = "https://github.com/AnjayGoel/pykiteconnect" __version__ = "4.0.0" __author__ = "Anjay Goel" __author_email__ = "anjay.goel@gmail.com" _...
37.666667
101
0.766962
45
339
4.977778
0.755556
0.098214
0
0
0
0
0
0
0
0
0
0.009967
0.112094
339
8
102
42.375
0.734219
0
0
0
0
0
0.578171
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
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
c223dd7e30b36ebfa0f41bf3e5a06ae1a6e0b5cd
1,679
py
Python
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
# @Author: DivineEnder # @Date: 2018-03-08 22:24:45 # @Email: danuta@u.rochester.edu # @Last modified by: DivineEnder # @Last modified time: 2018-03-11 01:25:41 # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy....
34.265306
214
0.731983
244
1,679
4.97541
0.545082
0.037068
0.049423
0.032949
0
0
0
0
0
0
0
0.021038
0.150685
1,679
48
215
34.979167
0.830295
0.442525
0
0
0
0
0.102732
0
0
0
0
0
0
1
0.157895
false
0.052632
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c224e7c1cff16812960fb4cd9afab8ab99e06afc
2,227
py
Python
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
import os import json from enum import Enum from datetime import datetime,date import logging import pathlib from tqdm import tqdm from datastructures import Volume, IndexedFile,load_index_if_exists, save_index from os import listdir from os.path import isfile, join import itertools import csv logger = lo...
35.349206
122
0.58599
273
2,227
4.684982
0.373626
0.023456
0.031274
0.039875
0.195465
0.195465
0.1595
0.1595
0.1595
0.1595
0
0.00802
0.272115
2,227
63
123
35.349206
0.780999
0.024248
0
0.150943
0
0
0.10197
0
0
0
0
0
0
1
0
false
0
0.226415
0
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2253045dcaa56a5991a62320574be6662b1c519
1,056
py
Python
tests/test_wrapper.py
waysup/Jike-Metro
b8ead80dddd5d695784c5587edfd8df87c55a4e6
[ "MIT" ]
193
2018-04-04T02:27:51.000Z
2022-03-14T03:26:44.000Z
tests/test_wrapper.py
BeiFenKu/Jike-Metro
e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3
[ "MIT" ]
16
2018-04-04T05:58:15.000Z
2021-01-08T02:56:57.000Z
tests/test_wrapper.py
BeiFenKu/Jike-Metro
e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3
[ "MIT" ]
24
2018-04-06T09:34:58.000Z
2021-03-02T02:10:07.000Z
import unittest from collections import namedtuple from jike.objects.wrapper import * class TestWrapper(unittest.TestCase): def setUp(self): self.Test = namedtuple('Test', ['id', 'content', 'other', 'none']) def test_repr_namedtuple(self): self.Test.__repr__ = repr_namedtuple test = s...
34.064516
83
0.61553
132
1,056
4.719697
0.234848
0.089888
0.067416
0.11236
0.41252
0.41252
0.279294
0.279294
0.199037
0.199037
0
0
0.202652
1,056
30
84
35.2
0.739905
0
0
0.086957
0
0
0.135417
0
0
0
0
0
0.26087
1
0.173913
false
0
0.130435
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c225d7cd38555d8a71f34fd96c413aa41e8e84be
10,125
py
Python
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
47
2015-02-11T16:05:54.000Z
2022-03-26T14:13:12.000Z
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
110
2015-01-30T03:53:41.000Z
2021-11-03T15:58:44.000Z
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
61
2015-01-09T18:31:27.000Z
2021-12-21T13:07:51.000Z
#!/usr/bin/env python """ The various ChannelUI classes. Hazen 04/17 """ import os from PyQt5 import QtCore, QtWidgets def loadStyleSheet(name): text = "" with open(os.path.join(os.path.dirname(__file__), name)) as fp: text += fp.read() return text class ChannelUI(QtWidgets.QFrame): "...
32.041139
100
0.645136
1,189
10,125
5.381833
0.280067
0.03985
0.018284
0.028129
0.231755
0.15268
0.115799
0.060947
0.015627
0.015627
0
0.007661
0.265185
10,125
315
101
32.142857
0.852419
0.240494
0
0.263804
0
0
0.009503
0
0
0
0
0.006349
0
1
0.184049
false
0.01227
0.01227
0.018405
0.269939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c229b5ef4f038beb67f6eb13b6306e08e27df0c9
4,051
py
Python
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
import sys import struct from io import FileIO, BufferedWriter import S9Compressor as S9 BLOCKSIZE = (64*1024) / 4 # number of Int LexiPos = 0 # record the current position for new lexicon writing lexiconBuffer = [] IIBuffer = [] WriteThreshold = 0 def docidPrepare(docidList): # calculate the diff, return ...
26.827815
96
0.674155
501
4,051
5.451098
0.265469
0.003662
0.008788
0.017576
0.168803
0.127426
0.127426
0.107653
0.084218
0.060784
0
0.026498
0.180202
4,051
151
97
26.827815
0.795845
0.163663
0
0.256881
0
0
0.026425
0.006235
0
0
0
0
0
0
null
null
0
0.036697
null
null
0.009174
0
0
0
null
0
0
0
0
0
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
c22ad6cee4570624757675e6c7ad19a18a8249f2
5,028
py
Python
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
5
2021-11-18T13:27:30.000Z
2021-12-05T00:15:33.000Z
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
#CASA script to create cutouts of fits cubes directoryA = '/Volumes/TARDIS/Work/askap/' directoryB = '/Volumes/NARNIA/pilot_cutouts/' import numpy as np sources=np.loadtxt('/Users/emma/GitHub/possum-tools/DataProcess/pilot_sources.txt',dtype='str') for i in range(0,sources.shape[0]): objectname=sources[i,0] POSSUM...
57.136364
134
0.793755
715
5,028
5.366434
0.160839
0.08809
0.054209
0.084702
0.711754
0.660933
0.632786
0.557988
0.557988
0.489445
0
0.020131
0.061456
5,028
87
135
57.793103
0.792965
0.022076
0
0.279412
0
0.088235
0.36321
0.243023
0
0
0
0
0
1
0
false
0
0.014706
0
0.014706
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c22b8b9f23f5fc7b3cfeba52a978e7ba6441ed61
92
py
Python
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
2
2020-11-14T09:09:02.000Z
2020-11-14T10:54:57.000Z
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
null
null
null
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
null
null
null
from cv_comparison_slider_window.cv_comparison_slider_window import CvComparisonSliderWindow
92
92
0.956522
11
92
7.454545
0.636364
0.292683
0.439024
0.585366
0
0
0
0
0
0
0
0
0.032609
92
1
92
92
0.921348
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
c22bb60421f79ce3a2d29c04e35af61e67fb09d3
1,207
py
Python
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
10
2020-11-20T20:55:52.000Z
2022-02-10T20:25:45.000Z
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
1
2022-02-16T10:28:18.000Z
2022-02-16T10:35:31.000Z
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
8
2021-05-01T01:13:09.000Z
2022-03-13T14:00:01.000Z
from ..language import get_text from ..database.query import ( user_exist, is_admin) END = -1 def warning_the_user_that_already_have_an_account(update, context): text = get_text("user_have_account", context) update.message.reply_text(text) return END def warning_the_user_that_he_dont_have_an_a...
26.822222
67
0.71831
165
1,207
4.8
0.206061
0.131313
0.069444
0.090909
0.813131
0.795455
0.77904
0.606061
0.606061
0.568182
0
0.001058
0.217067
1,207
44
68
27.431818
0.837037
0
0
0.451613
0
0
0.032365
0.018257
0
0
0
0
0
1
0.193548
false
0
0.064516
0
0.516129
0
0
0
0
null
0
0
0
1
1
1
0
0
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
4
c22fbe148dfbc37e36952003c17c1b1180d11337
63
py
Python
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
6
2019-04-30T23:50:39.000Z
2019-11-04T06:15:02.000Z
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
73
2019-05-12T18:43:14.000Z
2021-04-13T19:19:03.000Z
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
null
null
null
"""" This package contains the OpenGL demonstration classes """
21
54
0.761905
7
63
6.857143
1
0
0
0
0
0
0
0
0
0
0
0
0.126984
63
3
55
21
0.872727
0.888889
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c2306615617cec84564c5dcb8ee8a144809be27e
1,640
py
Python
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
10
2017-04-04T08:28:54.000Z
2021-02-24T04:36:07.000Z
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
2
2017-04-18T13:33:12.000Z
2018-06-05T21:27:18.000Z
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
7
2017-04-17T18:02:19.000Z
2020-09-25T21:28:08.000Z
#!/usr/bin/env python3 # -*- coding: ISO-8859-1 -*- # https://github.com/starze/openhab2 # https://github.com/roggmaeh/nilan-openhab import minimalmodbus import serial import os, sys import csv import httplib2 minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL = True instrument = minimalmodbus.Instrument('/dev/ttyUSB0', 30, m...
34.166667
109
0.675
220
1,640
4.995455
0.468182
0.087352
0.054595
0.050955
0.243858
0.216561
0.216561
0.216561
0.11283
0.11283
0
0.02695
0.140244
1,640
47
110
34.893617
0.751773
0.121951
0
0.114286
0
0
0.171788
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c230b7732d9a3dd108e45e13abd94ad053baac7e
2,316
py
Python
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os def prepare_training_data(data_folder_path): #------STEP-1-------- #get the directories (one directory for each subject) in data folder dirs = sorted(os.listdir(data_folder_path)) #print(dirs) faces = [] labels = [] for label,coun...
31.297297
85
0.593264
300
2,316
4.493333
0.466667
0.029674
0.031157
0.023739
0
0
0
0
0
0
0
0.01518
0.317358
2,316
73
86
31.726027
0.837445
0.346287
0
0.0625
0
0
0.047989
0.027523
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c230e009f1c0351446c02fccceb30b7ead29e784
138
py
Python
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
"randompicker.py" import random "A very short practice program designed to spit out a random, user-determined sample of input names"
13.8
39
0.775362
21
138
5.095238
0.904762
0
0
0
0
0
0
0
0
0
0
0
0.173913
138
9
40
15.333333
0.938596
0
0
0
0
0
0.110294
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
c2318081600b41f253e54a78d1001f4ddb857e30
15,873
py
Python
fisspy/analysis/tdmap.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
3
2017-02-18T06:42:08.000Z
2021-01-05T04:15:08.000Z
fisspy/analysis/tdmap.py
SNU-sunday/fisspy
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2019-06-30T10:35:27.000Z
2019-06-30T10:35:27.000Z
fisspy/analysis/tdmap.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2017-02-23T05:24:13.000Z
2017-02-23T05:24:13.000Z
from __future__ import absolute_import, division import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from fisspy.analysis.filter import FourierFilter from interpolation.splines import LinearSpline from matplotlib.animation import FuncAnimation import astropy.units as u from astropy.time i...
41.015504
86
0.449001
1,830
15,873
3.830601
0.156284
0.039372
0.019971
0.024964
0.396576
0.305278
0.246648
0.234665
0.203138
0.160057
0
0.02394
0.4158
15,873
387
87
41.015504
0.732018
0.033705
0
0.197605
0
0
0.031363
0.001443
0
0
0
0
0
1
0.02994
false
0.002994
0.026946
0
0.062874
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c231926cf5107bb89588302bb3bc85d7ec967624
2,806
py
Python
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
4
2021-03-06T13:50:58.000Z
2022-03-28T15:17:07.000Z
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
null
null
null
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
null
null
null
""" Author: André Bento Date last modified: 26-02-2019 """ import subprocess import sys from os.path import dirname, abspath, join from setuptools import find_packages, Command, setup from setuptools.command.test import test as TestCommand this_dir = abspath(dirname(__file__)) NAME = 'graphy' VERSION = '0.0....
24.189655
82
0.62794
325
2,806
5.304615
0.436923
0.051044
0.048724
0.041763
0.12355
0.069606
0.069606
0.069606
0.069606
0.069606
0
0.010441
0.249109
2,806
115
83
24.4
0.807784
0.090877
0
0.12987
0
0
0.21061
0.009897
0
0
0
0
0
1
0.116883
false
0.064935
0.090909
0
0.285714
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
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
c232029579d8b288e2ac9ed43b03f0690df1e9c2
1,317
py
Python
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
81
2019-11-16T21:47:22.000Z
2022-02-17T07:35:02.000Z
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
491
2019-11-10T23:44:30.000Z
2022-03-20T00:25:02.000Z
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
89
2019-11-18T21:31:01.000Z
2022-03-28T13:47:41.000Z
import pytz from datetime import datetime, timedelta, timezone from rest_framework.decorators import api_view, parser_classes, renderer_classes from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from rest_framework.request import Request from rest_framework.response import ...
34.657895
87
0.741838
161
1,317
5.913043
0.447205
0.042017
0.089286
0.052521
0
0
0
0
0
0
0
0
0.161731
1,317
37
88
35.594595
0.862319
0
0
0
0
0
0.094913
0
0
0
0
0
0
1
0.032258
false
0
0.290323
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2321c74ae596a68d5084730c6df5fe1a40a8090
1,615
py
Python
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
2
2021-01-03T00:46:51.000Z
2021-09-01T02:48:51.000Z
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
null
null
null
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
1
2021-08-28T11:04:00.000Z
2021-08-28T11:04:00.000Z
import pandas as pd import datetime as dt class FundType( object ): OF = 'Open Ended Fund' ETF = 'Exchange Traded Fund' LOF = 'Listed Open Ended Fund' MMF = 'Money Market Fund' def getFundType( fundCode ): fundTypeDf = pd.read_csv( 'refData/fund_list.csv', names = [ 'fundCode', 'fundType...
30.471698
102
0.596285
187
1,615
5.128342
0.470588
0.072993
0.027112
0.054223
0.070907
0.070907
0.070907
0.070907
0
0
0
0.002575
0.278638
1,615
52
103
31.057692
0.820601
0.074303
0
0.108108
0
0
0.149692
0.014354
0
0
0
0
0
1
0.081081
false
0
0.054054
0
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2329a7b9e06911a1ed82d81214f1385b352823d
398
py
Python
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
2
2021-07-08T10:31:11.000Z
2022-01-07T23:04:31.000Z
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
null
null
null
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
null
null
null
import json def lambda_handler(event, context): unicorns = [ { "name": "Gaia", "gift": "Speed" }, { "name": "Magestic", "gift": "Magic" }, { "name": "Sparkles", "gift": "Glitter" } ] r...
15.92
36
0.371859
27
398
5.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0.014423
0.477387
398
24
37
16.583333
0.692308
0
0
0
0
0
0.188442
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
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
c232b3257fa969c4deba44d282906664d6091820
253
py
Python
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
3
2016-03-23T08:12:03.000Z
2018-10-06T02:46:54.000Z
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
import uvio async def route(req): pass async def handler(req, res): await route(req, res)() res.end("Yes") @uvio.run async def main(): server = await uvio.http.listen(handler, host='127.0.0.1', port=80) print("server", server)
14.882353
71
0.632411
40
253
4
0.6
0.15
0
0
0
0
0
0
0
0
0
0.039801
0.205534
253
16
72
15.8125
0.756219
0
0
0
0
0
0.071146
0
0
0
0
0
0
1
0
false
0.1
0.1
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c2334b533c25c85bcfe5823b2fbd3fe0b9cec5f6
7,933
py
Python
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
ceos-seo/Data_Cube_v2
81c3be66153ea123b5d21cf9ec7f59ccb7a2050a
[ "Apache-2.0" ]
27
2016-08-16T18:22:47.000Z
2018-08-25T17:18:15.000Z
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
data-cube/CEOS-cube
31baeba08d8e8470c4663c18aaf9056431d9c49f
[ "Apache-2.0" ]
null
null
null
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
data-cube/CEOS-cube
31baeba08d8e8470c4663c18aaf9056431d9c49f
[ "Apache-2.0" ]
27
2016-08-26T18:14:40.000Z
2021-12-24T08:41:29.000Z
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in ...
40.682051
173
0.704399
1,150
7,933
4.690435
0.189565
0.068409
0.022247
0.017798
0.687616
0.674824
0.66574
0.659066
0.63515
0.631999
0
0.013219
0.208496
7,933
194
174
40.891753
0.845835
0.391025
0
0.725275
0
0
0.017559
0
0
0
0
0
0
1
0.043956
false
0
0.10989
0
0.197802
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c234a2bf9d847b0178d0e12fe82918d472e89c91
2,014
py
Python
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
import cleaner as dataStream import plotly.graph_objects as go import plotly.io as pio #DONUT PLOT - CONDITIONS ----------------------------------------- labels = ['Diabetes','Hypertension','Coronary Heart(D)','Chronic Kidney(D)','No Conditions','Obstructive Pulmonary(D)'] values = dataStream.PIEList fig_cond = go.Fi...
38
124
0.627607
306
2,014
4.058824
0.326797
0.032206
0.043478
0.101449
0.326087
0.280193
0.206119
0.146538
0.146538
0.146538
0
0.071057
0.140516
2,014
53
125
38
0.646447
0.120159
0
0.243902
0
0
0.302207
0
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c235b37d33733193984303077c70e9f3d941faa4
1,847
py
Python
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
6
2017-01-13T22:32:55.000Z
2022-03-27T22:19:49.000Z
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
1
2016-09-13T17:59:41.000Z
2016-09-13T18:05:20.000Z
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
null
null
null
from ..math import geometry as geo from ..image.color import Color import math class Material: def __init__(self,color,diffuse_rate,specular_rate,specular_exponent,reflection_rate): self.color = color self.diffuse_rate = diffuse_rate self.specular_rate = specular_rate self.specular_exponent = specular_expon...
24.959459
102
0.7634
261
1,847
5.149425
0.226054
0.071429
0.072917
0.056548
0.348214
0.239583
0.239583
0.191964
0.191964
0.125
0
0.003113
0.130482
1,847
73
103
25.30137
0.833748
0.077964
0
0.4
0
0
0
0
0
0
0
0
0
1
0.3
false
0.06
0.06
0.12
0.62
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
1
0
1
1
0
0
4
c235c83aedce86f0591eb9d244db1ef5424b59b5
1,401
py
Python
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
import time from tkinter import * from PIL import Image, ImageTk from Configuration import config class Led: imageOn = Image.open(config.get('APPLICATION', 'LED_ON_IMG')) imageOff = Image.open(config.get('APPLICATION', 'LED_OFF_IMG')) STATE_ON = "ON" STATE_OFF = "OFF" def __init__(self, pare...
31.840909
67
0.615989
173
1,401
4.890173
0.248555
0.091017
0.099291
0.140662
0.604019
0.58156
0.496454
0.496454
0.476359
0.476359
0
0
0.26838
1,401
44
68
31.840909
0.825366
0.034261
0
0.26087
0
0
0.060296
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0
0.521739
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
c236c320912188a01c92278b510292a2d1855a42
249
py
Python
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
8
2020-10-27T09:46:20.000Z
2022-01-27T12:16:48.000Z
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
null
null
null
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
2
2021-05-29T08:11:48.000Z
2021-07-26T04:44:53.000Z
import pytest from bank_ddd_es_cqrs.accounts import SocialSecurityNumber def test_social_security_number_throws_app_exception_with_status_422_if_too_much_digits(): with pytest.raises(ValueError) as e: SocialSecurityNumber(1324352351)
27.666667
90
0.84739
33
249
5.909091
0.878788
0
0
0
0
0
0
0
0
0
0
0.058824
0.11245
249
8
91
31.125
0.823529
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
c236d3b1e5bb73ed1d08dc25325aad2b8f8b0b9e
358
py
Python
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
2
2018-10-07T14:16:32.000Z
2019-01-28T00:14:29.000Z
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
null
null
null
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
1
2019-11-05T00:51:20.000Z
2019-11-05T00:51:20.000Z
from setuptools import setup from setuptools import find_packages setup(name='rl_traders', version='0.1.0', description='Reinforcement Learning for Trading', url='https://github.com/jjakimoto/rl_traders.git', author='jjakimoto', author_email='f.j.akimoto@gmail.com', license='MIT', ...
27.538462
56
0.678771
44
358
5.409091
0.704545
0.117647
0.168067
0
0
0
0
0
0
0
0
0.010381
0.192737
358
12
57
29.833333
0.813149
0
0
0
0
0
0.349162
0.058659
0
0
0
0
0
1
0
true
0
0.181818
0
0.181818
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
c239846032333fb5d26b1c1eb5b5c8a5cf233d15
2,219
py
Python
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
from pyrogram import Client import asyncio from Music.config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS from motor.motor_asyncio import AsyncIOMotorClient as MongoClient import time import uvloop from Music import config import importlib from pyrogram import Client as Bot from Music.config import API_...
28.448718
102
0.708878
302
2,219
4.986755
0.268212
0.055777
0.035857
0.047809
0.2417
0.183267
0.169987
0.169987
0.169987
0.169987
0
0.005637
0.200541
2,219
77
103
28.818182
0.843292
0
0
0.106667
0
0
0.036503
0
0
0
0
0
0
1
0.026667
false
0
0.186667
0
0.213333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c23a870064fefb4e740984ad848e886ea4aa0cd9
9,372
py
Python
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
3
2020-12-10T13:43:08.000Z
2021-01-17T04:36:34.000Z
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
null
null
null
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
null
null
null
import random from random import shuffle import numpy as np import tensorflow as tf from tensorflow.python.tools import freeze_graph import datetime import time import queue import threading import logging from PIL import Image import itertools import yaml import re import os import glob import shutil import sys import...
37.94332
122
0.636364
1,313
9,372
4.204113
0.192689
0.03913
0.049275
0.028986
0.270652
0.183333
0.156703
0.105435
0.071739
0.05942
0
0.031276
0.222151
9,372
246
123
38.097561
0.725926
0.103713
0
0.042781
0
0
0.046356
0.003042
0
0
0
0
0.005348
1
0.02139
false
0
0.128342
0
0.165775
0.010695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c23bc080151d66518c85923b1ce1c8be7c0ff949
3,037
py
Python
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
from troposphere import Template, Ref, Parameter, GetAtt from troposphere.ec2 import SecurityGroup from troposphere.rds import DBSubnetGroup, DBInstance def create_rds_template(): template = Template() vpc = template.add_parameter( parameter=Parameter( title='Vpc', Type='Strin...
25.957265
66
0.55186
246
3,037
6.609756
0.365854
0.177122
0.098401
0.142681
0.250923
0.211562
0
0
0
0
0
0.01059
0.347053
3,037
116
67
26.181034
0.80938
0.013171
0
0.161616
0
0
0.111185
0
0
0
0
0
0
1
0.010101
false
0.030303
0.030303
0
0.040404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c23f39dcaa9bc21fb37ef18d6de38e47058d0da3
514
py
Python
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
1
2020-10-16T16:29:01.000Z
2020-10-16T16:29:01.000Z
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
365
2020-02-03T12:46:53.000Z
2022-02-27T17:20:46.000Z
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2021-01-26 09:57 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0043_auto_20210126_0833'), ] operations = [ migrations.AddField( model_name='...
25.7
126
0.659533
58
514
5.741379
0.758621
0.078078
0.126126
0.162162
0
0
0
0
0
0
0
0.080402
0.225681
514
19
127
27.052632
0.756281
0.087549
0
0
1
0
0.124197
0.049251
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c23fbfd17a95b6fdf7b229efd815b011116431cc
1,855
py
Python
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
from conans import ConanFile, CMake, tools class NativeFileDialogExtendedConan(ConanFile): name = "nativefiledialog-extended" version = "1.0" license = "zlib" author = "Marius Elvert marius.elvert@googlemail.com" url = "https://github.com/ltjax/nativefiledialog-extended" description = "Small C...
40.326087
116
0.654447
226
1,855
5.190265
0.460177
0.041773
0.065644
0.057971
0.168798
0.115942
0.068201
0.068201
0.068201
0.068201
0
0.005513
0.21779
1,855
46
117
40.326087
0.802895
0.014555
0
0
0
0
0.193319
0.029025
0
0
0
0
0
1
0.128205
false
0
0.025641
0
0.512821
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
c24130645b33d6b4c145bae50da7d266149801e6
960
py
Python
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here import bisect def check(arr, x, ln, val):...
24
94
0.527083
136
960
3.713235
0.536765
0.047525
0.043564
0.063366
0.083168
0
0
0
0
0
0
0.017544
0.346875
960
39
95
24.615385
0.787879
0.332292
0
0.08
0
0
0
0
0
0
0
0.025641
0
1
0.04
false
0
0.04
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c2416fc1e551162c64c074b04f41a960aa792575
712
py
Python
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2022-01-04T07:04:46.000Z
2022-01-04T07:04:46.000Z
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2020-02-17T19:06:03.000Z
2020-02-17T19:06:03.000Z
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2021-07-08T13:21:04.000Z
2021-07-08T13:21:04.000Z
from django.urls import path, re_path from . import views app_name = "departments" urlpatterns = [path("", views.departmentList, name="energy department"), path( "<slug:department>/", views.department_detail, name="department_detail", ), path( "<slug:departm...
25.428571
72
0.573034
62
712
6.370968
0.306452
0.324051
0.182278
0.182278
0.288608
0.288608
0
0
0
0
0
0
0.304775
712
28
73
25.428571
0.79798
0
0
0.48
0
0
0.269285
0.109397
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c2456834188f5aaff78f04e88343303b398c8b26
432
py
Python
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
15
2019-05-05T04:48:42.000Z
2022-02-15T12:08:33.000Z
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
null
null
null
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
53
2019-11-10T05:09:25.000Z
2022-03-28T01:26:32.000Z
# 5. How do you Count The Number Of Times Each Value Appears In An Array Of Integers? # [0, 5, 4, 0, 4, 4, 3, 0, 0, 5, 2, 1, 1, 9] # Answer should be array([4, 2, 1, 1, 3, 2, 0, 0, 0, 1]) which means 0 comes 4 times, 1 comes 2 times, 2 comes 1 time, 3 comes 1 time and so on. array = [0, 5, 4, 0, 4, 4, 3,...
43.2
144
0.601852
96
432
2.666667
0.385417
0.03125
0.035156
0.03125
0.109375
0.109375
0.109375
0.109375
0.109375
0.109375
0
0.145511
0.252315
432
9
145
48
0.647059
0.655093
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
c246213af42c94a04ec5e4409ced7cd800cf77ef
4,957
py
Python
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
from time import sleep print("Welcome to Tic Tac Toe! \nWe'll be playing in a sec, but, first..") general_board = {'7': ' ', '8': ' ', '9': ' ', '4': ' ', '5': ' ', '6': ' ', '1': ' ', '2': ' ', '3': ' '} # prints board structure def show_board(board): print('\t\t', board['7'],...
35.92029
89
0.435747
521
4,957
4.013436
0.234165
0.229555
0.068867
0.090387
0.489718
0.364419
0.327594
0.244381
0.244381
0.244381
0
0.026043
0.395804
4,957
137
90
36.182482
0.67212
0.069195
0
0.5
0
0
0.187867
0
0
0
0
0
0
1
0.029412
false
0
0.009804
0
0.039216
0.284314
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
c24663b502469b48e008fb30a563fba0b901fd18
7,119
py
Python
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
spethso/Verleihsystem-TTF
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
1
2019-03-17T08:11:14.000Z
2019-03-17T08:11:14.000Z
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
spethso/Verleihsystem-TTF
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
60
2018-06-12T14:46:50.000Z
2020-11-16T00:50:37.000Z
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
FIUS/ttf-backend
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
1
2019-12-02T19:25:59.000Z
2019-12-02T19:25:59.000Z
""" Auth Providers which provides LDAP login """ from typing import List, Dict from ldap3 import Connection, Server, AUTO_BIND_TLS_BEFORE_BIND, SUBTREE from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError from ..login import LoginProvider from .. import APP, AUTH_LOGGER class LDAPAuthProvider(LoginPr...
47.46
118
0.61975
910
7,119
4.579121
0.141758
0.050156
0.040557
0.038397
0.538757
0.402208
0.201104
0.145428
0.110391
0.091193
0
0.000605
0.303554
7,119
149
119
47.778523
0.839855
0.172215
0
0.101852
0
0.009259
0.077121
0.024218
0
0
0
0
0
1
0.064815
false
0.018519
0.046296
0.027778
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c247338889dd4aef3193b428e74aac5424652e3f
4,117
py
Python
md2html.py
osfans/yancheng
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
4
2017-01-26T03:25:24.000Z
2019-04-15T14:11:46.000Z
md2html.py
osfans/yancheng
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
1
2016-12-02T04:26:31.000Z
2016-12-05T05:02:39.000Z
md2html.py
osfans/xu
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import re, os, glob template = """ <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <style> body { font-family: PMingLiu, HanaMinA, HanaMinB, Helvetica, arial, sans-serif; writing-mode: vertical-rl...
24.360947
120
0.459072
499
4,117
3.759519
0.304609
0.03838
0.037313
0.022388
0.075693
0.052239
0.026652
0.026652
0.026652
0.026652
0
0.030928
0.363857
4,117
168
121
24.505952
0.683849
0.00753
0
0.123288
0
0.020548
0.360274
0.038942
0
0
0
0
0
1
0.034247
false
0
0.006849
0
0.054795
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2478e02ca506e0323d992197336faa1570d5c97
2,460
py
Python
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from PyQt5.QtCore import QCoreApplication from PyQt5.QtWidgets import QMainWindow, QFrame import mobase class HideRunPanelPlugin(mobase.IPlugin): _runFrame: QFrame def __init__(self): super().__init__() def init(self, organizer: mobase.IOrganizer): """ For a ...
31.948052
85
0.660976
281
2,460
5.704626
0.44484
0.040549
0.024329
0
0
0
0
0
0
0
0
0.00436
0.254065
2,460
76
86
32.368421
0.86921
0.309756
0
0.04878
0
0
0.066627
0
0
0
0
0
0
1
0.292683
false
0
0.073171
0.195122
0.634146
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
1
1
0
0
3
c24ab458d07762596a9a0b958ea5ceac2489021a
164
py
Python
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
from ._inv_prop_lr import InvPropLR from ._constant_lr import ConstantLR from ._step_size_lr import StepSizeLR from ._dynamic_step_size_lr import DynamicStepSizeLR
32.8
52
0.878049
24
164
5.5
0.541667
0.242424
0.151515
0.242424
0
0
0
0
0
0
0
0
0.097561
164
4
53
41
0.891892
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
c24d4c5a8f9125c9ef834c785c10d1d380869f30
8,645
py
Python
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
2
2020-12-08T20:51:38.000Z
2021-01-03T20:42:10.000Z
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
1
2020-12-08T21:09:50.000Z
2020-12-08T21:30:35.000Z
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ utils/strava.py ================= Utility class to Strava API """ import json import time from configparser import ConfigParser, NoOptionError from datetime import datetime from pathlib import Path from typing import Tuple from loguru import logger from stravalib import Client, exc from ut...
36.020833
99
0.65587
1,096
8,645
5.058394
0.221715
0.021645
0.019481
0.017316
0.271104
0.268939
0.2307
0.199315
0.149531
0.111833
0
0.00803
0.265356
8,645
239
100
36.171548
0.864903
0.365992
0
0.169643
0
0
0.23559
0.020696
0
0
0
0
0
1
0.053571
false
0
0.107143
0
0.223214
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
df9a160281e97721997326dd0b0903a52cd73273
5,293
py
Python
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
1
2020-12-08T01:24:34.000Z
2020-12-08T01:24:34.000Z
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
null
null
null
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
null
null
null
""" Author: brooklyn train with synthText """ import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import os from net.craft import CRAFT import sys from utils.cal_loss import cal_synthText_loss from dataset.synthDataset import SynthDataset import argparse from eval...
37.807143
128
0.642736
671
5,293
4.831595
0.257824
0.055521
0.052437
0.027761
0.186305
0.115978
0.101172
0.062307
0.028378
0.028378
0
0.016962
0.242585
5,293
139
129
38.079137
0.791719
0.029284
0
0.07767
0
0
0.107918
0.023069
0
0
0
0
0
1
0.009709
false
0
0.106796
0
0.116505
0.038835
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
df9b4ebedd02514962424a1cc0a1b5aae502b670
1,896
py
Python
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
9
2019-12-04T23:15:59.000Z
2022-02-10T09:08:38.000Z
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
from django.db import models class FriendCircle(models.Model): name = models.CharField(blank=True, max_length=255) description = models.CharField(blank=True, max_length=1000) interests = models.ManyToManyField('interests.Interest', blank=True) members = models.ManyToManyField( 'users.CustomUser...
35.773585
103
0.68038
203
1,896
6.192118
0.369458
0.043755
0.044551
0.066826
0.531424
0.505967
0.415274
0.415274
0.415274
0.205251
0
0.005964
0.204114
1,896
52
104
36.461538
0.827038
0.074367
0
0.375
0
0
0.149629
0.048544
0
0
0
0
0
1
0.075
false
0
0.025
0.075
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
df9d6d03fbed45db8f46a22336474ebb4831783c
474
py
Python
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
"""Unit tests for the Jira issues collector.""" from .base import JiraTestCase class JiraIssuesTest(JiraTestCase): """Unit tests for the Jira issue collector.""" METRIC_TYPE = "issues" async def test_issues(self): """Test that the issues are returned.""" issues_json = dict(total=1, issu...
29.625
78
0.679325
59
474
5.355932
0.59322
0.056962
0.075949
0.094937
0.120253
0
0
0
0
0
0
0.005236
0.194093
474
15
79
31.6
0.82199
0.172996
0
0
0
0
0.020528
0
0
0
0
0
0.142857
1
0
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
df9e429f72ebf0471ad51a2d2296ecb2934b944d
1,485
py
Python
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import pytest import xarray as xr import cf_xarray as cfxr @pytest.mark.parametrize( "mindex", [ pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("lat", "lon")), pd.MultiIndex.from_arrays( [["a", "b", "c", "d"], [1, 2, 4, 10]], names=(...
34.534884
80
0.60404
184
1,485
4.728261
0.423913
0.011494
0.055172
0.022989
0.201149
0.183908
0.183908
0.183908
0.08046
0
0
0.014555
0.213468
1,485
42
81
35.357143
0.730308
0
0
0.108108
0
0
0.145455
0
0
0
0
0
0.054054
1
0.027027
false
0
0.135135
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dfa1fd750ebe41f9f5e5dbc785b717257dc70d9d
1,908
py
Python
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
504
2020-08-07T05:02:57.000Z
2022-03-31T14:32:46.000Z
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
560
2020-08-07T01:16:06.000Z
2022-03-30T00:40:56.000Z
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
150
2020-08-07T09:41:14.000Z
2022-03-30T04:54:51.000Z
"""The base class of Socket Mode client implementation. If you want to build asyncio-based ones, use `AsyncBaseSocketModeHandler` instead. """ import logging import signal import sys from threading import Event from slack_sdk.socket_mode.client import BaseSocketModeClient from slack_sdk.socket_mode.request import Sock...
32.896552
101
0.678197
233
1,908
5.497854
0.480687
0.062451
0.037471
0.044496
0.138954
0.067135
0.067135
0.067135
0
0
0
0.004854
0.244235
1,908
57
102
33.473684
0.883495
0.415618
0
0
0
0
0.004888
0
0
0
0
0
0
1
0.178571
false
0
0.285714
0
0.571429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
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
dfa2ba545c720071817fb0691cb4e7c5aad3c2a5
8,344
py
Python
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
2
2016-04-04T15:20:50.000Z
2020-08-01T19:28:55.000Z
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
1
2020-10-02T05:44:45.000Z
2020-10-02T05:44:45.000Z
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
11
2016-03-26T18:37:06.000Z
2020-10-01T19:44:55.000Z
# coding=utf-8 import numpy as np import scipy.interpolate as intpl import scipy.sparse as sprs def to_sparse(D, format="csc"): """ Transform dense matrix to sparse matrix of return_type bsr_matrix(arg1[, shape, dtype, copy, blocksize]) Block Sparse Row matrix coo_matrix(arg1[, shape, dtype, ...
36.920354
111
0.628715
1,323
8,344
3.815571
0.141345
0.021395
0.02397
0.027734
0.562203
0.499802
0.48019
0.464342
0.453249
0.44374
0
0.017192
0.254075
8,344
225
112
37.084444
0.793862
0.311841
0
0.29927
0
0
0.005457
0
0
0
0
0
0
1
0.072993
false
0
0.021898
0
0.248175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dfa3a2fa2289a9c892b09c29ede2ebe39a3dd0c8
7,266
py
Python
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
"""rbtree_graphviz.py - create a graphviz representation of a LLRBT. The purpose of this module is to visually show how the shape of a LLRBT changes when keys are inserted in it. For every insert, sub graph (tree) is added to the main graph. `initialization_list` holds the values that are inserted in the tree. This l...
38.648936
100
0.597991
979
7,266
4.21144
0.181818
0.045113
0.037351
0.027165
0.626486
0.581858
0.555421
0.488964
0.488964
0.447005
0
0.003315
0.294247
7,266
187
101
38.855615
0.800702
0.260666
0
0.449541
0
0
0.097455
0
0
0
0
0
0
1
0.036697
false
0
0.018349
0
0.091743
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dfa4028f5508da847e15896d92223ad5641ce047
87
py
Python
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
3
2015-06-19T08:50:50.000Z
2019-05-30T07:40:59.000Z
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
4
2015-06-19T09:20:09.000Z
2017-03-10T17:15:21.000Z
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
4
2015-06-19T07:25:27.000Z
2022-02-15T10:09:12.000Z
class ParameterError(Exception): pass class NotChoicesFound(Exception): pass
12.428571
33
0.747126
8
87
8.125
0.625
0.4
0
0
0
0
0
0
0
0
0
0
0.183908
87
6
34
14.5
0.915493
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
dfa5cb1adcaf33702f7f2c3cd145a0c36382a865
97
py
Python
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HwSystemConfig(AppConfig): name = 'hw_system'
16.166667
34
0.721649
11
97
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.206186
97
5
35
19.4
0.896104
0
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
dfa771b70b06ebdb06698f8a6ef450643663f3e9
5,721
py
Python
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import Generator from airflow.hooks.base_hook import BaseHook from azure.storage.filedatalake import FileSystemClient from azure.storage.filedatalake._generated.models._models_py3 import ( StorageErrorException, ) class ADLSGen2Hook(BaseHook): """ Hook to interact with...
39.729167
86
0.632582
749
5,721
4.699599
0.230975
0.051136
0.044318
0.022727
0.290625
0.240341
0.227557
0.225284
0.225284
0.193182
0
0.00125
0.300647
5,721
143
87
40.006993
0.87853
0.427897
0
0.126984
1
0
0.067508
0.007842
0
0
0
0
0
1
0.142857
false
0.015873
0.079365
0.015873
0.301587
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
dfa9f05edc79136d5654d284a464ccb459169f40
536
py
Python
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-14 17:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0043_ciudadanorn_numero_dni_ciudadano'), ] operations = [ migra...
26.8
109
0.654851
61
536
5.540984
0.786885
0
0
0
0
0
0
0
0
0
0
0.055825
0.231343
536
19
110
28.210526
0.764563
0.126866
0
0
1
0
0.193548
0.07957
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dfad270ef93b37ed6df9bcf779f6cf41ac7ec78e
2,499
py
Python
graphtiny/service.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2018-03-17T12:36:56.000Z
2018-03-17T12:36:56.000Z
graphtiny/service.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2017-08-08T18:31:31.000Z
2017-08-08T18:31:31.000Z
graphtiny/service.py
Canicio/graphtiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
null
null
null
from time import sleep import pyqtgraph as pg import threading from graphtiny.api import IChart, IDataStreamWindow from graphtiny.domain import DataStreamWindow, Chart class FuncThread(threading.Thread): def __init__(self, t, *a) -> None: self._t = t self._a = a threading.Thread.__init__(...
34.232877
95
0.612645
283
2,499
5.222615
0.29682
0.048714
0.047361
0.018945
0.258457
0.161028
0.106901
0.05954
0
0
0
0.002828
0.292517
2,499
72
96
34.708333
0.833145
0.010404
0
0.071429
0
0
0.012151
0
0
0
0
0
0
1
0.089286
false
0
0.089286
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dfad2ce40cf4b3e7c6bdab613bdf207aa9161bc1
2,576
py
Python
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
3
2020-10-01T11:28:02.000Z
2020-10-31T15:35:51.000Z
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
1
2022-02-09T04:19:20.000Z
2022-02-09T13:56:40.000Z
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
null
null
null
from typing import Generator, Dict, Any from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import jwt from pydantic import ValidationError from sqlalchemy.orm import Session from tlbx import json, pp from zillion.configs import load_warehouse_config, zillion_...
27.115789
77
0.69604
319
2,576
5.489028
0.360502
0.056539
0.054826
0.063963
0.198744
0.131354
0.131354
0.131354
0.076528
0.076528
0
0.008437
0.21778
2,576
94
78
27.404255
0.860546
0.029891
0
0.297297
0
0
0.066185
0.016045
0
0
0
0.010638
0
1
0.067568
false
0.027027
0.202703
0
0.337838
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dfaff48e9268da391e5354a533c983a642617b56
517
py
Python
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
def match_plus(string, matching_value): matches = match_star(string, matching_value) return matches != 0, matches def match_star(string, matching_value): found_occurrences = 0 for i, char in enumerate(string): if not match_identity(char, matching_value): return found_occurrences ...
28.722222
52
0.694391
62
517
5.532258
0.33871
0.265306
0.276968
0.134111
0.163265
0
0
0
0
0
0
0.007481
0.224371
517
17
53
30.411765
0.84788
0
0
0.142857
0
0
0.001934
0
0
0
0
0
0
1
0.214286
false
0
0
0
0.571429
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
dfb0e4025d32f8743112eeea3ef16b5393035552
212
py
Python
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
1
2022-03-09T14:43:29.000Z
2022-03-09T14:43:29.000Z
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
null
null
null
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
null
null
null
from BufferStockModel import BufferStockModelClass updpar = dict() updpar["Np"] = 1500 updpar["Nm"] = 1500 updpar["Na"] = 1500 model = BufferStockModelClass(name="baseline",solmethod="egm",**updpar) model.test()
26.5
71
0.745283
24
212
6.583333
0.666667
0.126582
0
0
0
0
0
0
0
0
0
0.0625
0.09434
212
7
72
30.285714
0.760417
0
0
0
0
0
0.080189
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dfb2125e655f351b14d7a2e313cfea92c5b3d51d
4,629
py
Python
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
30
2018-12-05T22:02:26.000Z
2022-03-13T17:09:51.000Z
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
null
null
null
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
13
2018-12-28T14:31:48.000Z
2022-02-25T11:24:36.000Z
#! /usr/bin/env python3 # ## Copyright (C) 2015-2018 Rolf Neugebauer. All rights reserved. ## Copyright (C) 2015 Netronome Systems, Inc. All rights reserved. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a co...
38.575
80
0.534241
593
4,629
4.042159
0.333895
0.033375
0.050063
0.037547
0.239883
0.157697
0.139341
0.115978
0.095953
0.047559
0
0.046527
0.331389
4,629
119
81
38.89916
0.727948
0.168935
0
0.097561
0
0.012195
0.163952
0
0
0
0
0
0
1
0.012195
false
0
0.036585
0
0.04878
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0