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
e9782a8f7459b65fce4ad645e6b56ab9d0f6103d
2,144
py
Python
gladier/base.py
globus-labs/gladier_tools
0dc4a23af81a2355a908b9a9026f0e68a527c6dc
[ "Apache-2.0" ]
1
2020-08-25T20:20:18.000Z
2020-08-25T20:20:18.000Z
gladier/base.py
globus-labs/gladier_tools
0dc4a23af81a2355a908b9a9026f0e68a527c6dc
[ "Apache-2.0" ]
null
null
null
gladier/base.py
globus-labs/gladier_tools
0dc4a23af81a2355a908b9a9026f0e68a527c6dc
[ "Apache-2.0" ]
null
null
null
class GladierBaseTool(object): """Gladier Defaults defines a common method of tying together flows, funcx-functions, and default inputs for starting a flow.""" flow_definition = None flow_input = dict() required_input = [] alias_exempt = ['funcx_endpoint_compute', 'funcx_endpoint_non_compute'...
37.614035
97
0.615672
257
2,144
4.828794
0.252918
0.087027
0.064464
0.070911
0.183723
0.14021
0.14021
0.14021
0
0
0
0
0.307369
2,144
56
98
38.285714
0.83569
0.056903
0
0.152174
0
0
0.09204
0.067164
0
0
0
0
0
1
0.108696
false
0
0
0.021739
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e97c7053b712437ddd9adb3801c6bf654177920e
2,717
py
Python
PersonManage/role/views.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
PersonManage/role/views.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
3
2021-03-19T01:28:43.000Z
2021-04-08T19:57:19.000Z
PersonManage/role/views.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
from django.conf import settings from redis import StrictRedis from rest_framework.response import Response from rest_framework.views import APIView from PersonManage.role.models import Role from PersonManage.role.serializer import OneRole, ManyRole from PersonManage.jurisdiction.models import Jurisdiction class Role...
46.844828
92
0.560177
299
2,717
5.080268
0.277592
0.092166
0.118499
0.069124
0.368005
0.317314
0.298881
0.256748
0.256748
0.230415
0
0.016196
0.295547
2,717
57
93
47.666667
0.777429
0
0
0.192308
0
0
0.137284
0
0
0
0
0
0
1
0.076923
false
0.019231
0.134615
0
0.423077
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
e98066a2b0d3ed3bbd8dc11131cf9f11efdf134a
3,645
py
Python
advent-of-code-2019/day 12/main.py
gikf/advent-of-code
923b026ce87121b73093554734746c2ecb17c5e2
[ "MIT" ]
null
null
null
advent-of-code-2019/day 12/main.py
gikf/advent-of-code
923b026ce87121b73093554734746c2ecb17c5e2
[ "MIT" ]
null
null
null
advent-of-code-2019/day 12/main.py
gikf/advent-of-code
923b026ce87121b73093554734746c2ecb17c5e2
[ "MIT" ]
null
null
null
"""Advent of Code 2019 Day 12.""" from functools import lru_cache import re def main(file_input='input.txt'): lines = [line.strip() for line in get_file_contents(file_input)] moons = parse_moons(lines) after_steps = simulate_steps(moons, 1000) total_energy = find_total_energy(after_steps) print(f'...
27.201493
74
0.608505
465
3,645
4.589247
0.268817
0.030928
0.029991
0.037957
0.020619
0
0
0
0
0
0
0.012548
0.278464
3,645
133
75
27.406015
0.798859
0.131962
0
0.152174
0
0
0.076575
0
0
0
0
0
0
1
0.130435
false
0
0.021739
0
0.326087
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e987a8021b1287256296f2282748c6e9f81dfd63
767
py
Python
ntcir15_tools/eval/__init__.py
longpham28/ntcir15_tools
d5fd138a3c90dfd2c5a67ea908101fed5563484d
[ "MIT" ]
null
null
null
ntcir15_tools/eval/__init__.py
longpham28/ntcir15_tools
d5fd138a3c90dfd2c5a67ea908101fed5563484d
[ "MIT" ]
null
null
null
ntcir15_tools/eval/__init__.py
longpham28/ntcir15_tools
d5fd138a3c90dfd2c5a67ea908101fed5563484d
[ "MIT" ]
null
null
null
import numpy as np from pyNTCIREVAL import Labeler from pyNTCIREVAL.metrics import MSnDCG from collections import defaultdict from ntcir15_tools.data import en_query_ids, ja_query_ids, en_labels, ja_labels def get_rel_level(text): if text == "L0": return 0 if text == "L1": return 1 if text...
24.741935
85
0.647979
117
767
4.025641
0.401709
0.089172
0.042463
0.063694
0
0
0
0
0
0
0
0.021127
0.259452
767
30
86
25.566667
0.808099
0
0
0.076923
0
0
0.033898
0
0
0
0
0
0.038462
1
0.076923
false
0
0.192308
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9895372814e45f43f516d5ef779aac132b10fc9
2,145
py
Python
notebooks/Detecting Covid-19 through Transfer Learning/src/test.py
supria68/Data-Science-Projects
423695c130a92db1a188b3d3a13871f0f76f6f5b
[ "MIT" ]
2
2020-09-16T19:37:30.000Z
2021-11-01T17:49:36.000Z
notebooks/Detecting Covid-19 through Transfer Learning/src/test.py
supria68/Data-Science-Projects
423695c130a92db1a188b3d3a13871f0f76f6f5b
[ "MIT" ]
null
null
null
notebooks/Detecting Covid-19 through Transfer Learning/src/test.py
supria68/Data-Science-Projects
423695c130a92db1a188b3d3a13871f0f76f6f5b
[ "MIT" ]
1
2021-11-01T17:49:37.000Z
2021-11-01T17:49:37.000Z
""" filename: test.py author: Supriya Sudarshan version: 19.04.2021 description: Takes in the images and predicts (Covid or Non-Covid/Normal) using the *.h5 models """ import numpy as np import matplotlib.pyplot as plt import os from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing impor...
32.014925
97
0.674592
303
2,145
4.627063
0.316832
0.025678
0.040656
0.040656
0.319544
0.301712
0.196862
0.196862
0.196862
0.196862
0
0.020583
0.184615
2,145
66
98
32.5
0.781018
0.149184
0
0.081081
0
0
0.202468
0.108805
0
0
0
0
0
1
0.027027
false
0
0.189189
0
0.216216
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e98cb6485313bf23d0ef3116dfc0e309cd633aad
3,064
py
Python
preprocess/utils.py
federicozaiter/LogClass
62c1c9c61294625bdb3d99dc01b6adc7b735c4ab
[ "MIT" ]
159
2020-02-19T00:19:23.000Z
2022-03-30T08:40:08.000Z
preprocess/utils.py
WeibinMeng/LogClass-1
8edbaf4377374e2aac5e7057987e1d047b83ff2f
[ "MIT" ]
3
2021-06-09T04:30:35.000Z
2022-01-09T23:26:07.000Z
preprocess/utils.py
WeibinMeng/LogClass-1
8edbaf4377374e2aac5e7057987e1d047b83ff2f
[ "MIT" ]
41
2020-02-19T00:19:26.000Z
2022-03-28T08:02:22.000Z
import re import numpy as np from tqdm import tqdm from ..decorators import print_step from multiprocessing import Pool # Compiling for optimization re_sub_1 = re.compile(r"(:(?=\s))|((?<=\s):)") re_sub_2 = re.compile(r"(\d+\.)+\d+") re_sub_3 = re.compile(r"\d{2}:\d{2}:\d{2}") re_sub_4 = re.compile(r"Mar|Apr|Dec|Jan|...
35.627907
77
0.568864
475
3,064
3.513684
0.244211
0.071899
0.057519
0.065908
0.4284
0.381067
0.318754
0.310365
0.264829
0.264829
0
0.014731
0.246736
3,064
85
78
36.047059
0.708406
0.072454
0
0.225352
0
0.028169
0.123457
0.053616
0
0
0
0
0
1
0.056338
false
0
0.070423
0
0.169014
0.042254
0
0
0
null
0
0
0
0
0
0
0
0
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
e991e9f5f0c1bdfb1e7229e0942eed1c870966c6
1,478
py
Python
gfg/trees/sorted_ll_to_bst.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
1
2019-04-18T03:29:02.000Z
2019-04-18T03:29:02.000Z
gfg/trees/sorted_ll_to_bst.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
gfg/trees/sorted_ll_to_bst.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
""" Given a Singly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as the given Linked List. """ from typing import Optional from binary_tree_node import Node # type: ignore from tree_traversal import inorder # type: ignore class LLN...
23.460317
93
0.635995
209
1,478
4.373206
0.315789
0.140044
0.131291
0.105033
0.278993
0.231947
0.161926
0.098468
0.098468
0.098468
0
0.014585
0.257781
1,478
62
94
23.83871
0.818596
0.133288
0
0.243902
0
0
0.006289
0
0
0
0
0
0
1
0.097561
false
0
0.073171
0
0.292683
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
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
e9920d3efc1f0f760192d2dad03a56edd3268c51
556
py
Python
uvcoverage.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from modules.conversions import enu2uvw data = np.load("uv-array.npy") e = data[0,:].transpose() n = data[1,:].transpose() uvarray = [] for i in range(120): u,v = enu2uvw( wavelength=1.690, hour_angle=i/30, declination=...
23.166667
41
0.526978
73
556
3.958904
0.534247
0.013841
0.055363
0.110727
0.131488
0
0
0
0
0
0
0.046196
0.33813
556
24
42
23.166667
0.73913
0.05036
0
0
0
0
0.051233
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e99213e148fd6d67da5c28d0d36014f1bdd56a29
6,540
py
Python
main.py
Bishalsarang/Leetcode-Questions
9d0c938778343c073b631884cc38411ea0ac7cd3
[ "MIT" ]
6
2021-09-17T12:26:59.000Z
2022-03-11T00:37:35.000Z
main.py
Bishalsarang/Leetcode-Questions
9d0c938778343c073b631884cc38411ea0ac7cd3
[ "MIT" ]
null
null
null
main.py
Bishalsarang/Leetcode-Questions
9d0c938778343c073b631884cc38411ea0ac7cd3
[ "MIT" ]
null
null
null
# Author: Bishal Sarang import json import os import pickle import time import bs4 import colorama import requests from colorama import Back, Fore from ebooklib import epub from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By fro...
40.875
376
0.657034
843
6,540
4.888493
0.32503
0.041009
0.033002
0.018442
0.157001
0.138316
0.068915
0.068915
0.012618
0
0
0.015947
0.242508
6,540
159
377
41.132075
0.815906
0.166972
0
0.145631
0
0.009709
0.233517
0.096333
0.009709
0
0
0
0
1
0.019417
false
0
0.15534
0
0.174757
0.087379
0
0
0
null
0
0
0
0
0
0
0
0
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
e992f77a4ff4f3363d1bcb7a821282c7065578b8
4,985
py
Python
model/magenta_app.py
DesmondYuan/DeepMovement
b4f347f139d52c345b592bc712260fa579b6c9a8
[ "MIT" ]
null
null
null
model/magenta_app.py
DesmondYuan/DeepMovement
b4f347f139d52c345b592bc712260fa579b6c9a8
[ "MIT" ]
null
null
null
model/magenta_app.py
DesmondYuan/DeepMovement
b4f347f139d52c345b592bc712260fa579b6c9a8
[ "MIT" ]
1
2020-12-31T14:44:38.000Z
2020-12-31T14:44:38.000Z
# Adapted from Magenta console commands import os from magenta.models.arbitrary_image_stylization import arbitrary_image_stylization_build_model as build_model from magenta.models.image_stylization import image_utils import numpy as np import tensorflow.compat.v1 as tf import tf_slim as slim class Magenta_Model(): ...
39.88
109
0.664995
626
4,985
4.886581
0.215655
0.091533
0.04119
0.026152
0.366133
0.270677
0.218045
0.199738
0.147761
0.147761
0
0.008931
0.258776
4,985
124
110
40.201613
0.818945
0.064594
0
0.069767
0
0
0.039974
0.038255
0
0
0
0
0
1
0.034884
false
0
0.069767
0
0.116279
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
e99385b476437e2b2258af182121e6b707636676
4,781
py
Python
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
48
2018-05-19T17:46:34.000Z
2020-09-28T21:09:06.000Z
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
1,261
2018-05-17T04:32:22.000Z
2020-11-23T17:29:13.000Z
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
133
2018-05-15T23:12:14.000Z
2020-11-13T10:37:49.000Z
import re from pathlib import PurePosixPath from typing import TYPE_CHECKING, Optional, Type from lisa.executable import Tool from lisa.tools.ls import Ls from lisa.tools.mkdir import Mkdir from lisa.tools.powershell import PowerShell from lisa.tools.rm import Rm from lisa.util import LisaException, is_valid_url if T...
31.453947
87
0.590253
570
4,781
4.803509
0.282456
0.049671
0.025566
0.017531
0.185172
0.153397
0.115413
0.115413
0.087655
0.087655
0
0.002126
0.311232
4,781
151
88
31.662252
0.829335
0.078854
0
0.338843
0
0
0.159344
0.03369
0
0
0
0.006623
0
1
0.07438
false
0
0.082645
0.041322
0.264463
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
e995e4148b59ca5a7b4ba1e5e2c168dedb8fd4e8
1,787
py
Python
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
1
2021-03-10T09:40:05.000Z
2021-03-10T09:40:05.000Z
# Load other business attributes and set meta prefix from pandas.io.json import json_normalize flat_cafes = json_normalize(data["businesses"], sep="_", record_path="categories", meta=['name', 'alias', ...
52.558824
154
0.493005
179
1,787
4.837989
0.553073
0.04157
0.051963
0.086605
0.148961
0.148961
0.148961
0.148961
0.148961
0.148961
0
0.100304
0.447678
1,787
34
155
52.558824
0.777102
0.035814
0
0
0
0
0.158635
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
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
e9960edde95bcaeefa3f37767c2580e46bec455b
2,310
py
Python
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import sys infn = sys.argv[1] outfn = infn.split(".py")[0]+"_INST.py" code = [] for l in open(infn): code.append(l) outf = open(outfn, 'w') outf.write("import covertool\n") ln = 0 inComment = False justEnded = False currentIndent = 0 lineIndent = 0 okChangeIndent = False skipNext = False doNotInstrument = ["cl...
25.666667
90
0.490909
254
2,310
4.46063
0.23622
0.071492
0.067079
0.021183
0.144748
0.135922
0.11474
0.082966
0.082966
0.082966
0
0.013479
0.325541
2,310
89
91
25.955056
0.713736
0
0
0.342466
0
0
0.094805
0
0
0
0
0
0
1
0
false
0
0.041096
0
0.041096
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
e997ebbde4fce0c730819b363c5adbce38d2664d
8,729
py
Python
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
8
2016-11-29T07:34:04.000Z
2021-06-09T18:09:25.000Z
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
12
2016-12-06T17:24:58.000Z
2022-02-21T20:11:47.000Z
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
4
2016-12-25T11:16:34.000Z
2020-02-11T18:48:26.000Z
import json import os import sys import time try: from urlparse import urlparse except ImportError: # python3 from urllib.parse import urlparse from django.conf.urls import url from django.conf.urls.static import static from django.http import HttpResponse, Http404 from django.shortcuts import render_to_re...
35.77459
112
0.643487
1,085
8,729
4.988018
0.235945
0.013304
0.019217
0.019401
0.186438
0.108278
0.078344
0.078344
0.05728
0.05728
0
0.005681
0.213541
8,729
243
113
35.921811
0.782666
0.069195
0
0.090909
0
0
0.179642
0.056563
0
0
0
0
0
1
0.042781
false
0.016043
0.117647
0.005348
0.224599
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
e9a05f45a351e31a1eadb205f7bd181f6ae63473
2,314
py
Python
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from notes.app.forms import ProfileForm, NoteForm, NoteDeleteForm from notes.app.models import Profile, Note def home(request): if request.method == 'GET': profile = Profile.objects.first() if not profile: form = ProfileForm() ...
29.291139
88
0.600259
270
2,314
5.111111
0.159259
0.086957
0.137681
0.1
0.626812
0.603623
0.542029
0.500725
0.364493
0.23913
0
0
0.256698
2,314
78
89
29.666667
0.802326
0
0
0.603175
0
0
0.107174
0.009507
0
0
0
0
0
1
0.111111
false
0
0.047619
0
0.396825
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
e9a09dff959ae1110da793fb71caa1d3736f73bf
3,066
py
Python
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 2 00:56:18 2019 @author: tang """ seed=102 vocab="vocab.bin" train_file="train.bin" dropout=0.3 hidden_size=256 embed_size=100 action_embed_size=100 field_embed_size=32 type_embed_size=32 lr_decay=0.5 beam_size=5 patience=2 lstm='lstm' col_att='affine' model_name='wiki' ...
28.924528
63
0.689498
458
3,066
4.286026
0.237991
0.091696
0.038207
0.040754
0.395313
0.26541
0.102904
0.102904
0.073357
0
0
0.027144
0.170907
3,066
105
64
29.2
0.745083
0.377038
0
0.16129
0
0
0.192926
0.101822
0
0
0
0
0
1
0.032258
false
0
0
0
0.032258
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
e9a18b845016664a0d3350f6afe5c55f943340ff
3,476
py
Python
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
6
2017-02-13T10:22:18.000Z
2017-03-11T20:38:30.000Z
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
172
2017-02-12T21:07:27.000Z
2017-06-08T10:46:58.000Z
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-RenameMe/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
17
2017-02-13T08:29:37.000Z
2017-06-29T14:43:53.000Z
import unittest from django.test import Client class AnnotationDataModelTests(unittest.TestCase): api_url_template = "/api/v1/heritages/#/annotations" xpath_annotation_response = "" heritage_path = "" api_url_set = "" @classmethod def setUpClass(cls): cls.heritage_path = "/api/v1/heri...
39.954023
116
0.561277
378
3,476
4.880952
0.415344
0.019512
0.045528
0.04878
0.117073
0.117073
0.072087
0.072087
0.055285
0.055285
0
0.011696
0.311277
3,476
86
117
40.418605
0.758981
0
0
0.068493
0
0
0.238918
0.008923
0
0
0
0
0.082192
1
0.123288
false
0
0.027397
0.013699
0.246575
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
e9a26fd47a49716298a92bfa1c231de0e135e9dd
824
py
Python
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
import unittest from unittest.mock import patch from jc_decrypter.main import process, main class TestMainProcess(unittest.TestCase): @patch("jc_decrypter.main.decrypter") def test_arg_decrypter(self, mk_decrypter): process(["--token", "1234567890"]) mk_decrypter.assert_called_once_with("123...
27.466667
85
0.679612
96
824
5.614583
0.427083
0.061224
0.083488
0.085343
0.133581
0.133581
0
0
0
0
0
0.032458
0.214806
824
29
86
28.413793
0.800618
0
0
0
0
0
0.158981
0.063107
0
0
0
0
0.25
1
0.15
false
0
0.15
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9a3a2aba365270bf90b9a6d7673d3d58bca51fe
3,290
py
Python
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
9
2015-02-23T22:03:30.000Z
2020-01-31T19:06:50.000Z
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
37
2015-03-01T01:10:22.000Z
2015-12-31T17:24:42.000Z
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
2
2016-01-21T09:59:17.000Z
2021-04-16T10:51:04.000Z
import datetime from template_maker.database import db from template_maker.generator.models import DocumentBase, DocumentPlaceholder from template_maker.builder.models import TemplateBase, TemplatePlaceholders from template_maker.data.placeholders import get_template_placeholders def get_all_documents(): ''' R...
31.333333
90
0.730091
363
3,290
6.402204
0.212121
0.055938
0.02926
0.025818
0.283993
0.241394
0.186747
0.093804
0.093804
0.093804
0
0
0.189362
3,290
104
91
31.634615
0.871391
0.091185
0
0.239437
0
0
0.00136
0
0
0
0
0
0
1
0.140845
false
0
0.070423
0.028169
0.338028
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
e9a3b150e872655275d100c3ba1868368c2d52e0
716
py
Python
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
import scrapy from scrapy.selector import Selector from katph.items import StackItem class katphSpider(scrapy.Spider): name = "stackoverflow" allowed_domains = ["stackoverflow.com"] start_urls = [ "%s/questions?pagesize=50&sort=newest" % "http://stackoverflow.com", ] def parse(self, respo...
31.130435
76
0.603352
75
716
5.733333
0.6
0.074419
0.065116
0.088372
0.167442
0.167442
0
0
0
0
0
0.009259
0.24581
716
22
77
32.545455
0.787037
0
0
0
0
0
0.27514
0.188547
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9a6214120a911400cce37d1a1a474426ab60fe5
1,284
py
Python
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
from solid import * from solid.utils import * import util from util import inch_to_mm, tube, ABIT, corners, pipe from fixings import M3 from math import tan, radians """ Sub-miniature analog joy-sticks. There's not much useful in documentation of their measurements. I'm going to treat it like a sphere with a 14mm ...
28.533333
114
0.696262
215
1,284
4.032558
0.506977
0.088812
0.031142
0.051903
0.101499
0.076125
0.076125
0
0
0
0
0.059211
0.17134
1,284
44
115
29.181818
0.755639
0
0
0
0
0
0.023037
0
0
0
0
0
0
1
0.12
false
0
0.24
0.08
0.44
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
e9ab3dbd3f61574c06a9441f006ee914a6d3064c
4,458
py
Python
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
'''********************************************** CODE TO IMPLEMENT FISHER'S LDA - Given two dimensional dataset with two classes 0 and 1, Perform Fisher's LDA on the dataset, Perform dimensionality reduction and find the suitable vector to project it onto, Find the threshold value for separation of the two classes **...
32.540146
104
0.685509
729
4,458
4.175583
0.260631
0.029566
0.01774
0.032523
0.167214
0.127792
0.086071
0
0
0
0
0.045764
0.142216
4,458
136
105
32.779412
0.750262
0.274563
0
0.085714
0
0
0.031373
0.008627
0
0
0
0
0
1
0.014286
false
0
0.042857
0
0.085714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
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
e9ad668ebc54401a790054fd2f8bfe6c1d6a7c9b
3,071
py
Python
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import torch n_input = 1 # n_hidden should be very big to make dropout's effect more clear n_hidden = 100 n_output = 1 EPOCH = 1000 LR = 0.01 torch.manual_seed(1) # reproducible N_SAMPLES = 20 # training data x = torch.unsqueeze(torch.linspace(-1, 1, N_SAMPLES), 1) y = x + 0.3 * torc...
32.326316
101
0.652231
491
3,071
3.912424
0.240326
0.054659
0.02811
0.043727
0.477876
0.477876
0.432067
0.432067
0.367517
0.367517
0
0.031163
0.184956
3,071
95
102
32.326316
0.736316
0.08043
0
0.2
0
0
0.05439
0
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
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
e9b1301b28dc40f613c5048548a9e3fd67d1e1a8
72,649
py
Python
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
""" Twiss module. Compute twiss parameters from amplitude & phase data. Twiss filtering & processing. """ import numpy import torch import pandas from scipy import odr from .util import mod, generate_pairs, generate_other from .statistics import weighted_mean, weighted_variance from .statistics import median, biwei...
42.360933
357
0.595218
10,539
72,649
3.936142
0.033969
0.051708
0.018176
0.010607
0.752164
0.697274
0.652942
0.613553
0.57749
0.548803
0
0.018076
0.261366
72,649
1,715
358
42.360933
0.75498
0.230987
0
0.388462
0
0.003846
0.03575
0.001713
0
0
0
0
0
1
0.046154
false
0.001282
0.014103
0.005128
0.112821
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
e9b44aa1e89f954d4739decd6c84438a72e8d03d
5,445
py
Python
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
import time import datetime from thespian.test import * from thespian.actors import * from thespian.troupe import troupe max_listen_wait = datetime.timedelta(seconds=4) max_ask_wait = datetime.timedelta(seconds=2.5) class Bee(Actor): def receiveMessage(self, msg, sender): if isinstance(msg, tuple): ...
30.082873
77
0.617998
632
5,445
5.22943
0.256329
0.026626
0.031467
0.022693
0.552496
0.479879
0.449924
0.410893
0.410893
0.363086
0
0.012421
0.245914
5,445
180
78
30.25
0.792499
0.040771
0
0.451852
0
0
0.204676
0.046186
0
0
0
0
0.059259
1
0.111111
false
0.014815
0.066667
0
0.222222
0.014815
0
0
0
null
0
0
0
0
0
0
0
0
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
e9b739710ac88a977ee95593a167d4e063e1ba18
1,197
py
Python
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
3
2017-10-21T01:37:03.000Z
2021-07-22T16:08:02.000Z
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
2
2020-01-15T22:50:18.000Z
2020-07-19T14:55:28.000Z
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
5
2020-01-27T13:52:04.000Z
2020-10-28T07:38:46.000Z
from AMPS import Client import random import time import json import sys def main(*args): publish_rate = None # publish as fast as possible by default try: publish_rate = int(args[0]) start = int(args[1]) end = int(args[2]) except Exception: pass # set up the client ...
23.94
65
0.548872
140
1,197
4.55
0.5
0.086342
0.050235
0
0
0
0
0
0
0
0
0.033079
0.343358
1,197
49
66
24.428571
0.777354
0.093567
0
0
0
0
0.102778
0.027778
0
0
0
0
0
1
0.026316
false
0.026316
0.131579
0
0.157895
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
e9bbd39d6d8b86209c5aaf7a41e2a233bc9104f2
4,815
py
Python
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
7
2018-04-01T17:24:56.000Z
2021-06-07T09:39:52.000Z
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
5
2018-03-31T18:24:52.000Z
2019-10-09T16:27:49.000Z
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
2
2020-03-04T08:48:54.000Z
2021-06-07T09:39:51.000Z
# coding : utf-8 # created by wyj import numpy as np import pandas as pd import math from utils.feature_utils import df_empty # TERMINALNO,TIME,TRIP_ID,LONGITUDE,LATITUDE,DIRECTION,HEIGHT,SPEED,CALLSTATE,Y # 对传入的表按trip_id分组,取每组的海拔的最大连续子数组,对每个人的所有行程的子数组取最大,平均, 方差。 # def max_sub(arr): # sum = 0 # height = -999 ...
32.979452
117
0.586708
586
4,815
4.638225
0.18942
0.087564
0.058867
0.042311
0.459529
0.389257
0.355776
0.33039
0.281825
0.242826
0
0.017481
0.251506
4,815
145
118
33.206897
0.736681
0.353894
0
0.246575
0
0
0.158875
0
0
0
0
0
0
1
0.054795
false
0
0.054795
0
0.164384
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
e9bc10c08079eec1973b577a0d5e59f56835d97e
2,850
py
Python
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import json import windows_utilman import pyAesCrypt import requests from secureCrypt import cryptResult os.system('loadkeys fr') os.system('lsblk > result.txt') if os.path.exists('/mnt/targetDrive'): pass else: os.system('mkdir /mnt/targetDrive') ...
29.6875
135
0.545614
369
2,850
4.181572
0.365854
0.054439
0.015554
0.01361
0.051847
0
0
0
0
0
0
0.004139
0.321754
2,850
95
136
30
0.789964
0.157193
0
0.15493
0
0.014085
0.195061
0.030975
0
0
0
0
0
1
0.028169
false
0.028169
0.098592
0
0.15493
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9bd49e911285196dc03e66b536b44da7fb8a285
2,336
py
Python
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
null
null
null
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
1
2019-12-06T21:20:10.000Z
2019-12-06T21:20:11.000Z
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
null
null
null
from app import app import os from flask import abort, \ redirect, \ render_template, \ request, \ send_from_directory, \ url_for from .helpers import generate_code, \ is_valid_url, \ is_aut...
31.146667
119
0.550514
266
2,336
4.718045
0.330827
0.064542
0.047809
0.043028
0.3251
0.274104
0.274104
0.157769
0.119522
0.119522
0
0.007467
0.312072
2,336
74
120
31.567568
0.773491
0.015411
0
0.25
0
0
0.090513
0
0
0
0
0
0
1
0.066667
false
0
0.1
0.016667
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9bfd30a608b29439adc950385f985d929b086eb
1,443
py
Python
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
from tqdm import tqdm import shutil import os from PIL import Image import warnings src_folder = '../../modified_datasets/cars_flat' dest_folder = '../../modified_datasets/cars_flat_ratio_warnings' if not os.path.exists(dest_folder): os.makedirs(dest_folder) num_kept = 0 num_removed = 0 num_corrupt_EXIF = 0 for...
31.369565
104
0.582121
176
1,443
4.545455
0.352273
0.0625
0.0525
0.065
0.075
0
0
0
0
0
0
0.005917
0.297297
1,443
45
105
32.066667
0.783037
0
0
0
0
0
0.139293
0.056133
0
0
0
0
0
1
0
false
0
0.131579
0
0.131579
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e9c1766ed44cd38de086fdbbfdce35e66d2ab6f5
2,548
py
Python
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
null
null
null
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
61
2021-06-10T03:27:06.000Z
2022-03-12T01:01:34.000Z
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
null
null
null
from mongoengine.queryset.visitor import Q from backend.apps.posts.models import Post from backend.apps.user.signals import check_comment_signal from backend.apps.user.utils import are_friends def _get_two_last_obj_with_path(path_list): size = len(path_list) if not size: raise Exception("path_list ca...
29.627907
76
0.654631
367
2,548
4.326975
0.26703
0.055416
0.037783
0.049118
0.185139
0.124055
0.124055
0.108312
0.042821
0
0
0.005497
0.214678
2,548
85
77
29.976471
0.788106
0.043956
0
0
0
0
0.044288
0
0
0
0
0
0
1
0.131148
false
0
0.065574
0.032787
0.327869
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
e9c3402cd5440828a3062f0ffd949c6878c6a821
5,340
py
Python
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
5
2020-01-20T13:57:15.000Z
2021-03-27T14:14:44.000Z
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
859
2020-01-11T22:58:37.000Z
2022-03-30T14:54:06.000Z
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
16
2020-01-04T20:28:57.000Z
2022-02-10T12:06:54.000Z
from typing import Any, Dict, List from ....models.models import Projection, Projector from ....permissions.permissions import Permissions from ....shared.filters import And, FilterOperator from ....shared.patterns import Collection, FullQualifiedId, string_to_fqid from ....shared.schema import required_id_schema from...
40.763359
88
0.548876
481
5,340
5.804574
0.2079
0.082736
0.032235
0.039398
0.230659
0.184814
0.166905
0.043696
0.043696
0.043696
0
0.001454
0.35618
5,340
130
89
41.076923
0.810646
0.016105
0
0.128205
0
0
0.096029
0
0
0
0
0
0.017094
1
0.034188
false
0
0.119658
0
0.196581
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
e9c3d07f73748d2980ffa18343832a605023692e
3,235
py
Python
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
2
2020-04-02T15:25:10.000Z
2020-04-03T14:32:12.000Z
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
""" sfftk-migrate ============== This is a simple tool to allow users to easily migrate older versions of EMDB-SFF files to the latest (supported version). It has only one dependency: `lxml` which effects part of the migrations. Presently it only works with XML (.sff) EMDB-SFF files. How does it work? --------------...
29.678899
127
0.678825
471
3,235
4.59448
0.428875
0.016636
0.018484
0.022181
0.0878
0.0878
0.0878
0.038817
0
0
0
0.017037
0.165379
3,235
108
128
29.953704
0.784444
0.799691
0
0
0
0
0.241706
0.037915
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
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
e9c9d816a148fcaa90837526278207a3fb99ed20
802
py
Python
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
from sys import stdin as s n, k = map(int, s.readline().split()) tree = [0] * 400005 def init(node, s, e): if s == e: tree[node] = 1 return tree[node] mid = (s + e) >> 1 tree[node] = init(2 * node, s, mid) + init(2 * node + 1, mid + 1, e) return tree[node] def query(node, s, e, k)...
19.095238
72
0.451372
141
802
2.567376
0.241135
0.033149
0.024862
0.033149
0.165746
0.165746
0.104972
0.104972
0.104972
0
0
0.064151
0.339152
802
41
73
19.560976
0.618868
0
0
0.258065
0
0
0.009975
0
0
0
0
0
0
1
0.064516
false
0
0.032258
0
0.258065
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
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
e9d6bbb09e450702b15b4ceb0a5be3a4e585501e
7,237
py
Python
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
import ntpath import os from flink_rest_client.common import _execute_rest_request, RestException class JarsClient: def __init__(self, prefix): """ Constructor. Parameters ---------- prefix: str REST API url prefix. It must contain the host, port pair. ...
30.92735
120
0.579107
853
7,237
4.793669
0.208675
0.017119
0.033015
0.041086
0.567865
0.561262
0.551724
0.551724
0.531915
0.497921
0
0.001257
0.340473
7,237
233
121
31.060086
0.855437
0.493298
0
0.232877
0
0
0.134848
0.044705
0
0
0
0
0
1
0.09589
false
0
0.041096
0
0.246575
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
e9da4c23e10982ade2cffc9ff31b496b0afdcefd
2,320
py
Python
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
1
2020-04-14T08:31:24.000Z
2020-04-14T08:31:24.000Z
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
null
null
null
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
1
2021-01-05T15:47:59.000Z
2021-01-05T15:47:59.000Z
from turtle import * from random import * # from random import * def move(x, y): penup() goto(x, y) pendown() def fillpolygon(side, count, color1, color2): pencolor(color2) fillcolor(color1) begin_fill() for i in range(count): forward(side) left(360 / count...
21.886792
56
0.563793
305
2,320
4.268852
0.347541
0.010753
0.013825
0.033794
0.173579
0.173579
0.173579
0.173579
0.173579
0.173579
0
0.101511
0.286638
2,320
105
57
22.095238
0.685196
0.009914
0
0.246575
0
0
0.049223
0
0
0
0
0
0
1
0.109589
false
0
0.027397
0
0.136986
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
e9db9333dcabf339b75e8e3dafb52fedc14104d7
9,713
py
Python
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
11
2020-11-10T15:12:58.000Z
2022-01-24T13:14:53.000Z
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
2
2021-05-01T13:59:14.000Z
2022-03-09T20:45:02.000Z
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
null
null
null
"""HTTP Router tests.""" import inspect import typing as t from re import compile as re import pytest @pytest.fixture def router(): from http_router import Router, NotFound, MethodNotAllowed, RouterError # noqa return Router() def test_router_basic(router): assert router assert not router.trim_l...
25.901333
97
0.616596
1,190
9,713
4.964706
0.143697
0.063304
0.030806
0.030467
0.380501
0.29587
0.223934
0.193128
0.122546
0.122546
0
0.012941
0.212396
9,713
374
98
25.970588
0.759346
0.019458
0
0.237354
0
0.003891
0.158039
0.017466
0
0
0
0
0.357977
1
0.089494
false
0.027237
0.07393
0.015564
0.194553
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
e9e0012334031a979e4c8078a3fc972d1c90c1a0
5,192
py
Python
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ import asyncio import logging import struct log = logging.getLogger(__name__) class TcpClientProtocol(asyncio.Protocol): def __init__(self, master): self.master = master def connection_made(self, transport): self.transport = transport ...
28.685083
72
0.548151
612
5,192
4.486928
0.264706
0.029133
0.040058
0.025492
0.237436
0.171522
0.124181
0.124181
0.124181
0.095776
0
0.028927
0.334168
5,192
180
73
28.844444
0.765404
0.061633
0
0.192593
0
0
0.092219
0.009675
0
0
0.008646
0
0
1
0.081481
false
0.007407
0.022222
0
0.155556
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
e9e0f660874b7198857a18d3f6b0c75b556083fb
721
py
Python
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import mysql.connector import pandas as pd import sys #tablename = str(sys.argv[1]) csvname = "result1232.csv" #総得点を出したいチーム名 target = str(sys.argv[1]) # 接続する conn = mysql.connector.connect( host="localhost", database="toto", user="root", password="root" ) print("connection:...
22.53125
111
0.660194
95
721
5
0.568421
0.058947
0.042105
0.046316
0.193684
0.193684
0.193684
0.193684
0.193684
0.193684
0
0.014469
0.137309
721
32
112
22.53125
0.749196
0.120666
0
0
0
0
0.299363
0
0
0
0
0
0
1
0
false
0.047619
0.142857
0
0.142857
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
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
7567342e6e2ce849445abb8610ff24fc2aab8a0f
558
py
Python
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
9
2021-10-01T08:21:03.000Z
2022-03-02T14:34:16.000Z
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
null
null
null
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
3
2021-10-01T08:33:32.000Z
2022-02-02T22:40:48.000Z
import boto3 reko = boto3.client('rekognition') s3 = boto3.client('s3') def lambda_handler(event, context): job_id = event['job_id'] reko_client = boto3.client('rekognition') response = reko_client.get_face_detection(JobId=job_id, MaxResults=100) return { "statusCode": 200, "body": ...
26.571429
75
0.577061
62
558
4.887097
0.467742
0.082508
0.145215
0
0
0
0
0
0
0
0
0.040609
0.293907
558
20
76
27.9
0.728426
0
0
0
0
0
0.227599
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
756a6183aee4660b960c432b4510670a699bf9cb
1,314
py
Python
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
98
2015-12-08T14:26:27.000Z
2022-03-23T17:44:11.000Z
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
396
2016-02-23T11:07:55.000Z
2022-03-31T14:26:34.000Z
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
62
2015-12-09T11:20:53.000Z
2022-01-28T01:30:54.000Z
from hazelcast.serialization.bits import * from hazelcast.protocol.builtin import FixSizedTypesCodec from hazelcast.protocol.client_message import OutboundMessage, REQUEST_HEADER_SIZE, create_initial_buffer, RESPONSE_HEADER_SIZE from hazelcast.protocol.codec.custom.raft_group_id_codec import RaftGroupIdCodec from hazel...
43.8
127
0.853881
167
1,314
6.221557
0.305389
0.06256
0.080847
0.075072
0.162656
0
0
0
0
0
0
0.020101
0.091324
1,314
29
128
45.310345
0.850084
0.020548
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.238095
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
756b0adc0964779163796787d2e6398c5eb4706e
980
py
Python
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
# Array; Two Pointers # Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. # # Note: # # The number of elements initialized in nums1 and nums2 are m and n respectively. # You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional ele...
28.823529
125
0.533673
155
980
3.374194
0.458065
0.01912
0.049713
0.030593
0
0
0
0
0
0
0
0.07716
0.338776
980
33
126
29.69697
0.729938
0.570408
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
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
0
0
0
0
0
0
1
0
756bf0598578d01db0afb38f8bafb682754f2e0c
1,007
py
Python
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
1
2019-06-04T22:05:12.000Z
2019-06-04T22:05:12.000Z
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
6
2019-04-17T17:21:42.000Z
2019-09-11T16:15:28.000Z
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
null
null
null
from unittest import TestCase from .. import capture_buffer as capt_buff from tempfile import mkdtemp import os class TestCaptureBuffer(TestCase): def test_capture_buffer(self): """ Test that the files are written out for instantiation and testbench. :return: """ tmpdir = ...
31.46875
93
0.637537
123
1,007
5.04065
0.439024
0.167742
0.122581
0.064516
0.193548
0.193548
0.193548
0.193548
0.193548
0.193548
0
0.012228
0.269116
1,007
31
94
32.483871
0.830163
0.137041
0
0.210526
0
0
0.105459
0.062035
0
0
0
0
0.105263
1
0.105263
false
0
0.210526
0
0.368421
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
756c7eea74e1f5249521b52dff9a4f1dfed719d3
933
py
Python
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
null
null
null
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
3
2018-02-21T20:25:32.000Z
2018-02-23T18:25:44.000Z
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import mysql.connector import xlsxwriter from query import q, table,columns from letters import letters import string import json import os dir_path = os.path.dirname(os.path.realpath(__file__)) with open(dir_path + '/config.json', "r") as json_data_file: conf = json.load(json_data_file) conn = my...
21.697674
62
0.681672
148
933
4.175676
0.459459
0.048544
0.038835
0.058252
0
0
0
0
0
0
0
0.022164
0.177921
933
42
63
22.214286
0.783572
0.012862
0
0.142857
0
0
0.070729
0.031556
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
756f24ba8abf0f406f6c9f0a863f8c02bdb32b06
1,317
py
Python
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
null
null
null
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
2
2021-06-22T19:31:52.000Z
2021-07-14T21:33:01.000Z
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup import os import sys import json sys.path.append("radio_sim") def package_files(package_dir, subdirectory): # walk the input package_dir/subdirectory # return a package_data list paths = [] directory = os.path.join(package_dir, subdirectory) for (path, directories, f...
23.945455
77
0.603645
152
1,317
4.993421
0.506579
0.073781
0.086957
0.050066
0
0
0
0
0
0
0
0.007976
0.238421
1,317
54
78
24.388889
0.748754
0.050114
0
0
0
0
0.307692
0
0
0
0
0
0
1
0.023256
false
0
0.093023
0
0.139535
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
756fb9d469af8300eef5fa58dfbcbd277e34d405
1,959
py
Python
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
11
2021-09-01T23:10:51.000Z
2022-03-20T07:39:37.000Z
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
22
2021-05-18T14:10:27.000Z
2021-10-04T15:06:27.000Z
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
2
2021-09-01T22:11:13.000Z
2021-10-30T09:12:36.000Z
import asyncio import logging import sys import coloredlogs import signal from oremda.typing import ContainerType from oremda.clients.singularity import SingularityClient from oremda.pipeline.engine.rpc.client import RpcClient from oremda.pipeline.engine.context import pipeline_context from oremda.pipeline.engine.conf...
29.681818
79
0.720265
255
1,959
5.427451
0.392157
0.043353
0.039017
0.052023
0.033237
0
0
0
0
0
0
0.00186
0.176621
1,959
65
80
30.138462
0.856169
0.036243
0
0.041667
0
0.020833
0.122546
0.012202
0
0
0
0
0
1
0.020833
false
0
0.208333
0
0.229167
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
7570df54465fd5d936a3ab3554540e61e267bf96
2,369
py
Python
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
from pynput import keyboard from pynput.keyboard import Key, Controller from os.path import exists import win32clipboard import os from PIL import Image from pystray import Icon as icon, Menu, MenuItem as item import pystray RECORDING = False WORD = "" keyboard_press = Controller() def send_to_clipboard(...
29.987342
123
0.61545
268
2,369
5.354478
0.425373
0.063415
0.037631
0.032056
0
0
0
0
0
0
0
0.015376
0.286197
2,369
78
124
30.371795
0.833235
0.086112
0
0.126984
0
0
0.044273
0.012031
0
0
0
0
0
1
0.047619
false
0
0.126984
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7571df3479e0827912764d9107db9cc7c8bfd97c
27,986
py
Python
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
1
2022-02-13T19:18:41.000Z
2022-02-13T19:18:41.000Z
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
2
2021-12-09T01:35:35.000Z
2022-02-24T20:04:27.000Z
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
null
null
null
# File: moloch_connector.py # # Copyright (c) 2019-2022 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
41.460741
134
0.643393
3,418
27,986
5.034523
0.145114
0.061367
0.031613
0.03417
0.447931
0.40086
0.371746
0.345188
0.342631
0.31218
0
0.005876
0.270314
27,986
674
135
41.522255
0.836786
0.221003
0
0.256906
0
0.013812
0.087072
0.006712
0
0
0
0
0
1
0.044199
false
0.033149
0.044199
0.002762
0.21547
0.063536
0
0
0
null
0
0
0
0
0
0
0
0
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
7574fa5420556c5e1887475cd923bc9a0ffab1f4
2,600
py
Python
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
null
null
null
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
1
2021-03-23T20:13:21.000Z
2021-03-23T20:13:21.000Z
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
null
null
null
from flask import * from flask_csp.csp import csp_header, csp_default import imghdr import os import hashlib import subprocess app = Flask(__name__) app.config["UPLOAD_DIRECTORY"] = 'uploads' app.config["ALLOWED_EXTENSIONS"] = ["jpg", "jpeg", "png", "gif"] # Remove report-uri from default CSP header h = csp_default(...
34.666667
145
0.687308
352
2,600
4.965909
0.380682
0.036041
0.080092
0.074371
0.239703
0.22254
0.168192
0.168192
0.168192
0.140732
0
0.003712
0.171154
2,600
74
146
35.135135
0.807425
0.169231
0
0.115385
0
0
0.246397
0
0
0
0
0
0
1
0.096154
false
0
0.115385
0.057692
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7577e2f7df5f804c676013417ab035ff063a393c
8,767
py
Python
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
1
2021-08-05T04:08:15.000Z
2021-08-05T04:08:15.000Z
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
null
null
null
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
null
null
null
import os import cv2 import json import time import shutil import argparse import numpy as np import PIL.Image from copy import deepcopy import mmcv from mmdet.apis import init_detector, inference_detector, show_result # install mmdet v1 in https://github.com/open-mmlab/mmdetection # download correspongdi...
50.97093
196
0.677883
1,253
8,767
4.509178
0.215483
0.046195
0.02531
0.019823
0.304248
0.200708
0.179292
0.100177
0.060177
0.047788
0
0.034827
0.17794
8,767
172
197
50.97093
0.749133
0.09878
0
0.068182
0
0.007576
0.218406
0.087622
0
0
0
0
0.037879
1
0.045455
false
0
0.083333
0
0.128788
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
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
757912d9e4012e01b625eaf478b57827dc9d6ad6
415
py
Python
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
1,811
2015-05-21T12:47:27.000Z
2022-03-24T04:48:00.000Z
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
42
2016-09-29T05:23:28.000Z
2021-10-30T03:12:00.000Z
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
171
2015-07-14T07:50:35.000Z
2022-03-09T10:04:15.000Z
import numpy as np import scipy.linalg as la from auxiliary import * a = np.matrix([ [+0.35, +0.45, -0.14, -0.17], [+0.09, +0.07, -0.54, +0.35], [-0.44, -0.33, -0.03, +0.17], [+0.25, -0.32, -0.13, +0.11], ], dtype=float) w, vl, vr = la.eig(a, left=True, right=True) vprintC('w', w) print for i in ran...
18.043478
44
0.53253
86
415
2.569767
0.5
0.027149
0.036199
0.099548
0.217195
0.217195
0.217195
0
0
0
0
0.151515
0.204819
415
22
45
18.863636
0.518182
0
0
0.235294
0
0
0.021687
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
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
757aed5f2d7b170e9c0c6e816158ab521912f796
9,969
py
Python
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
4
2021-06-20T21:32:53.000Z
2021-08-12T11:12:17.000Z
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from util import * from constants import FPS, VERSION, SCREEN_WIDTH, SCREEN_HEIGHT from ui.button import * from ui.font import * from media.paths import bg, logo, body_font, title_font class Main: def __init__(self): """ It's the abstract class for all sc...
34.856643
104
0.51921
1,069
9,969
4.61927
0.199252
0.062778
0.035642
0.031187
0.346497
0.217699
0.200081
0.172742
0.133252
0.116646
0
0.021757
0.37757
9,969
285
105
34.978947
0.774053
0.035711
0
0.242574
0
0
0.073822
0.002827
0
0
0
0
0
1
0.108911
false
0.009901
0.034653
0.00495
0.168317
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
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
757b44c079d1af1e49497f1e9f96873e80ae2cd3
15,155
py
Python
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
import requests import json import os from bs4 import BeautifulSoup as bs import random import time import base64 import m3u8 treinaweb_sessions = requests.Session() class Downloader(): def index(self): escolha = input('Qual plataforma voce deseja baixar?\n1 - TreinaWeb\n2 - AvMakers\n3 - Freelae\nRe...
37.512376
234
0.512966
1,662
15,155
4.545728
0.199759
0.014825
0.015884
0.017472
0.400794
0.372733
0.353011
0.336069
0.265255
0.240635
0
0.028113
0.349852
15,155
404
235
37.512376
0.738354
0.041636
0
0.323636
0
0.050909
0.252551
0.059087
0
0
0
0
0
1
0.047273
false
0.014545
0.029091
0
0.098182
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
757c4a2be3e6e27c73b14c6ddc8062d7cb6e67ce
10,724
py
Python
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
3
2019-05-25T23:08:48.000Z
2021-12-11T03:59:42.000Z
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2019-03-07T21:22:52.000Z
2019-03-07T21:22:52.000Z
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2021-04-29T06:35:07.000Z
2021-04-29T06:35:07.000Z
import gmpy2 import itertools import subprocess import math import time from collections import defaultdict from factordb.factordb import FactorDB START = 2 STOP = 5000 # Also see A056938 def product(factors): temp = 1 for factor in factors: temp *= factor return temp def factordb_format(number): ...
26.743142
98
0.563129
1,425
10,724
4.159298
0.195088
0.031888
0.024127
0.016535
0.103256
0.066475
0.028682
0.028682
0.015522
0.015522
0
0.021538
0.272659
10,724
400
99
26.81
0.738333
0.067978
0
0.18
0
0.003333
0.108994
0.024266
0
0
0
0.0025
0.036667
1
0.03
false
0
0.023333
0
0.096667
0.136667
0
0
0
null
0
0
0
0
0
0
0
0
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
757f3810745dc98b37ec435828ecf0e2aaa534d5
1,212
py
Python
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
#!coding:utf-8 import os import sys import pymysql def connetc2mysql(): try: conn = pymysql.connect( host = '10.15.50.100', port = 3306, user= 'root', password = 'Zhaolab@C809!!', db = 'CORdbPro', charset = 'utf8', use_unicode=True) except Exception as e: print(e) else: print("connect s...
19.548387
73
0.660066
162
1,212
4.839506
0.537037
0.044643
0.035714
0.045918
0.058673
0
0
0
0
0
0
0.025278
0.183993
1,212
61
74
19.868852
0.767442
0.037954
0
0.088889
0
0
0.183147
0
0
0
0
0
0
1
0.088889
false
0.022222
0.066667
0
0.155556
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
757fe53371e91dc422879bc5ad40243b0d086700
2,478
py
Python
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 Rickard Armiento # # This file is part of a Python candidate reference implementation of # the optimade API [https://www.optimade.org/] # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "...
34.901408
99
0.726796
349
2,478
5.060172
0.495702
0.04983
0.00906
0.010193
0.092865
0.092865
0.092865
0.092865
0.092865
0.092865
0
0.005914
0.181195
2,478
70
100
35.4
0.864465
0.587974
0
0
0
0
0.178499
0.023327
0
0
0
0
0
1
0
false
0
0.208333
0
0.208333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7581ce931238117bdcd49cbe392056bdbbeb384d
2,609
py
Python
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
1
2022-03-09T14:38:01.000Z
2022-03-09T14:38:01.000Z
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
null
null
null
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
null
null
null
import os import argparse import cv2 import numpy as np import tensorflow as tf from nart import opr, aopr from nart.model import VGG16 from nart.logconf import logger LEARNING_RATE = 1.5 JITTER = 32 as_netin = lambda x: x[np.newaxis, :] def make_step(sess, net, end): ''' iter only one step, providing end ''' ...
33.448718
110
0.651974
400
2,609
4.1375
0.355
0.029607
0.061631
0.045317
0.129909
0.108157
0.085196
0.085196
0.029003
0.029003
0
0.020496
0.19586
2,609
77
111
33.883117
0.768351
0.148333
0
0.0625
0
0
0.118821
0
0
0
0
0
0
1
0.041667
false
0
0.166667
0
0.208333
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
75822d824753f70d530800d691025e523bb8dcb9
1,079
py
Python
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
import re text = '' with open('5input1.txt', 'r') as ifile: text = ifile.read().strip() def find_length(text): text = list(text) t0 = '' t1 = '' restart = True while (restart): restart = False loop = len(text) - 1 i = 0 # print(text) while (i < loop): ...
25.690476
57
0.489342
136
1,079
3.727941
0.360294
0.039448
0.047337
0.071006
0
0
0
0
0
0
0
0.026316
0.36608
1,079
41
58
26.317073
0.714912
0.133457
0
0.125
0
0
0.043103
0.028017
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.09375
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
7584210fe482f4212d8e7879d8d01a58011b39a4
1,122
py
Python
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
""" 08-function-calls.py - Using custom algorithms with python function calls. **EventCall** :: EventCall(function, *args, occurrences=inf, stopEventsWhenDone=True) EventCall calls a function, with any number of arguments (\*args) and uses its return value for the given parameter. The example below use a functio...
22.897959
78
0.680036
166
1,122
4.596386
0.572289
0.035387
0.034076
0.04194
0.073395
0.073395
0
0
0
0
0
0.039773
0.215686
1,122
48
79
23.375
0.827273
0.606952
0
0.083333
0
0
0.13253
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.166667
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
75858d15ba85e9ff5541366ae7ab4ccf2759852d
2,048
py
Python
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
''' Задача 1 Вывести на экран циклом пять строк из нулей, причем каждая строка должна быть пронумерована. ''' print ('Task1') for i in range(5): i+=1 print(i,'00000') ''' Задача 2 Пользователь в цикле вводит 10 цифр. Найти количество введеных пользователем цифр 5. ''' print ('Task2') count=0 for i in range(10):...
17.210084
92
0.631348
312
2,048
4.144231
0.301282
0.04331
0.081207
0.092807
0.399072
0.232792
0.174014
0.118329
0.118329
0.118329
0
0.068225
0.227051
2,048
119
93
17.210084
0.748579
0.049316
0
0.493506
0
0
0.135316
0
0
0
0
0
0
1
0
false
0
0
0
0
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
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
7586aaf36cfc9aa4004d62afa11753f68be84c72
5,351
py
Python
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
import requests import datetime from db import convert_code from pycountry_convert import country_name_to_country_alpha2 from pprint import pprint import json url = r'https://pomber.github.io/covid19/timeseries.json' response = requests.get(url) if response.status_code != 200: print("Failed to connect to pomber") ...
27.869792
90
0.555971
611
5,351
4.743044
0.214403
0.018634
0.024155
0.018979
0.182885
0.123879
0.068323
0.068323
0.031746
0
0
0.011544
0.303868
5,351
192
91
27.869792
0.766443
0.001682
0
0.219355
0
0.006452
0.106873
0
0
0
0
0
0
1
0.077419
false
0
0.03871
0.012903
0.206452
0.012903
0
0
0
null
0
0
0
0
0
0
0
0
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
758800528ccfe0918aa562d413d55854aa70f801
2,398
py
Python
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
10
2020-04-09T09:32:54.000Z
2021-10-04T09:20:59.000Z
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
4
2019-10-04T14:15:32.000Z
2020-05-13T18:48:58.000Z
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
6
2019-11-11T18:01:00.000Z
2021-06-09T09:49:57.000Z
import datetime from functools import total_ordering from typing import Tuple, Any, Dict, Optional from . import change_index @total_ordering class ParsedRow(object): def __init__(self, table_fq_name: str, row_kind: str, operation_name: str, event_db_time: datetime.datetime, change_idx: Optional...
42.070175
112
0.662219
319
2,398
4.61442
0.244514
0.059783
0.059783
0.050951
0.343071
0.194973
0.091033
0.052989
0
0
0
0
0.261885
2,398
56
113
42.821429
0.831638
0.037114
0
0.088889
0
0.022222
0.068487
0
0
0
0
0
0
1
0.088889
false
0
0.088889
0.022222
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75893c568f3d251f68a9d4ffb2aa6e88611b92ae
446
py
Python
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
65
2019-11-27T13:42:52.000Z
2022-03-31T11:41:56.000Z
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
178
2019-12-17T19:43:04.000Z
2022-03-31T06:54:06.000Z
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
41
2019-12-17T18:21:04.000Z
2022-03-16T12:15:40.000Z
import pandas as pd def read_xyz(filename): # try: df = pd.read_csv(filename, sep="\t", header=None) if df.shape[1] == 1: df = pd.read_csv(filename, sep=" ", header=None) ncol = df.shape[1] names = ["x", "y", "z", "name"] df.columns = names[0:ncol] return df def dataframe_to_...
17.84
62
0.61435
70
446
3.785714
0.457143
0.124528
0.158491
0.083019
0.271698
0.166038
0
0
0
0
0
0.011494
0.219731
446
24
63
18.583333
0.75
0.008969
0
0
0
0
0.027273
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
758a746fea53069cc01b12087b264b7e85fe4798
534
py
Python
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
4
2022-02-08T21:53:57.000Z
2022-03-27T21:28:20.000Z
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
from robomaster import robot import time ep_robot = robot.Robot() xy_speed = 1/2 # m/s z_speed = 90/2 # m/s if __name__ == '__main__': #ep_robot.initialize(conn_type="sta", sn="3JKDH6U0011J02") ep_robot.initialize(conn_type="ap") ep_chassis = ep_robot.chassis for i in range(4): # 1 Meter...
24.272727
66
0.640449
85
534
3.729412
0.494118
0.11041
0.018927
0.132492
0.157729
0
0
0
0
0
0
0.066015
0.234082
534
21
67
25.428571
0.706601
0.177903
0
0
0
0
0.023095
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
758afd7cbb115376a34da86e1eeaae56905b6dcf
447
pyde
Python
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
def setup (): size (500, 500) smooth () background (255) noStroke () colorMode(HSB) flug = bool(True) i=0 j=0 def draw (): global i, j, flug if(flug): for i in range (10): for j in range (5): fill (10, random (0, 255) , random (10, 250)) re...
22.35
61
0.478747
68
447
3.147059
0.485294
0.056075
0.046729
0.065421
0.084112
0
0
0
0
0
0
0.180851
0.369128
447
19
62
23.526316
0.578014
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0
0
0.157895
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
758b72cef82f8f852b093d91ef15a93d7537c56c
3,758
py
Python
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
3
2021-07-20T22:25:36.000Z
2021-12-07T10:05:41.000Z
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
null
null
null
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
1
2021-09-20T19:09:55.000Z
2021-09-20T19:09:55.000Z
import ass import subdigest import subprocess import os def dump_subs(subsfile: str, subsdata: subdigest.Subtitles): """ Exports subsdata to subsfile manually over using dump_file() to avoid the utf-8 encode warning. """ with open(subsfile, "w", encoding="utf_8_sig") as f: for section in subsd...
26.842857
99
0.537254
424
3,758
4.65566
0.34434
0.070922
0.106383
0.096251
0.251266
0.188956
0.148936
0.137285
0
0
0
0.005535
0.278872
3,758
139
100
27.035971
0.722509
0.123204
0
0.284211
0
0
0.20679
0.008333
0
0
0
0
0
1
0.031579
false
0
0.052632
0
0.094737
0.042105
0
0
0
null
0
0
0
0
0
0
0
0
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
758bfb17d11799615d242c0ec597dafd07b4d3fa
1,955
py
Python
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
null
null
null
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
10
2022-02-14T11:40:20.000Z
2022-03-09T22:44:03.000Z
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
1
2020-09-19T16:38:24.000Z
2020-09-19T16:38:24.000Z
import logging from tbot.twitch_bot.var_filler import fills_vars, Send_error from tbot import config @fills_vars('faceit.username', 'faceit.elo', 'faceit.level', 'faceit.next_level_points', 'faceit.next_level') async def faceit_elo(bot, channel, args, var_args, **kwargs): if not var_args or \ not 'fac...
34.298246
109
0.544246
247
1,955
4.161943
0.408907
0.087549
0.072957
0.046693
0.115759
0.097276
0
0
0
0
0
0.044364
0.296675
1,955
57
110
34.298246
0.703273
0
0
0
0
0
0.289366
0.037321
0
0
0
0
0
1
0
false
0
0.058824
0
0.078431
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
758d3ae4874f3aae353700d2388d8c12f38f9087
740
py
Python
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
1
2021-03-13T04:35:34.000Z
2021-03-13T04:35:34.000Z
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
null
null
null
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
null
null
null
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='BaiduSpider', version='0.0.6', author='Sam Zhang', author_email='samzhang951@outlook.com', description='BaiduSpider,一个爬取百度的利器', long_description=long_description, ...
26.428571
53
0.636486
78
740
5.910256
0.705128
0.130152
0.08243
0.130152
0
0
0
0
0
0
0
0.02069
0.216216
740
27
54
27.407407
0.774138
0
0
0
0
0
0.359459
0.059459
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
759471eca6eb7bbbb400247ad8d624471bce9b4f
979
py
Python
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
109
2017-07-17T03:32:09.000Z
2022-02-27T18:24:18.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
175
2017-07-16T21:41:40.000Z
2021-03-19T22:28:19.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
68
2017-07-16T20:52:38.000Z
2022-01-08T18:24:17.000Z
import pytest import packerlicious.post_processor as post_processor class TestDockerImportPostProcessor(object): def test_required_fields_missing(self): b = post_processor.DockerImport() with pytest.raises(ValueError) as excinfo: b.to_dict() assert 'required' in str(excinfo....
23.309524
53
0.694586
109
979
6.036697
0.311927
0.118541
0.079027
0.109422
0.585106
0.585106
0.585106
0.585106
0.585106
0.585106
0
0
0.223698
979
41
54
23.878049
0.865789
0
0
0.541667
0
0
0.024515
0
0
0
0
0
0.125
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7598e6392d65a78f154a1a2db4cb51bdef6f7043
3,017
py
Python
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
'''Module main''' import json import os from rabbitmq import RabbitMQ from pika import exceptions from parameter import Parameter from send_grid import SendGrid from traceability import Traceability from transform import Transform import uuid class App: '''class Application''' @classmethod def __init__(cl...
38.679487
136
0.569108
269
3,017
6.263941
0.39777
0.058754
0.062315
0.058754
0.072404
0.072404
0.072404
0.072404
0
0
0
0.000973
0.318528
3,017
77
137
39.181818
0.81858
0.201525
0
0.109091
0
0
0.085402
0.012621
0
0
0
0
0
1
0.054545
false
0
0.163636
0
0.236364
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
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
759923fc156d69b7e7b7231814ffe05abf19e1c1
26,488
py
Python
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
class_name = 'organizations_tab' from qtpy import QtCore, QtGui, QtWidgets, uic import os from logzero import logger import pathlib import json from modules.sumologic_orgs import SumoLogic_Orgs class CreateOrUpdateOrgDialog(QtWidgets.QDialog): def __init__(self, deployments, org_details=None, trials_enabled=Fals...
48.247723
127
0.669435
2,310
26,488
7.572727
0.149784
0.015206
0.015206
0.022352
0.213743
0.186875
0.181387
0.152232
0.134625
0.126965
0
0.004849
0.229198
26,488
548
128
48.335766
0.851937
0.042623
0
0.201422
0
0
0.100122
0.005132
0
0
0
0
0
1
0.028436
false
0.011848
0.014218
0
0.07109
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
759a0430a9251f3f49f413680d321c1b741036a9
562
py
Python
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
#Code # python code # script_name: hello # # author: Siddharth # description: composition # # set up from earsketch import * # Initialized init() setTempo(120) # varible chord = RD_UK_HOUSE__5THCHORD_2 secondarybeat = HIPHOP_BASSSUB_001 mainbeat = HOUSE_MAIN_BEAT_003 # Music fitMedia(chord, 1, 1, 16) se...
17.030303
42
0.709964
81
562
4.765432
0.62963
0.051813
0.082902
0.103627
0
0
0
0
0
0
0
0.09636
0.169039
562
33
43
17.030303
0.730193
0.233096
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
759a621d0c21d47983881f0990e0d95c9d89af8b
575
py
Python
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
import codecs import os codecs.register_error('none', lambda e: ('?', e.end)) def utf8_to_sjis(files, in_dir, out_dir): os.makedirs(out_dir, exist_ok=True) for f in files: utf8_to_sjis_one(f, in_dir, out_dir) def utf8_to_sjis_one(file, in_dir, out_dir): with open(f'{in_dir}/{file}', mode='r', encoding='ut...
19.166667
81
0.673043
104
575
3.384615
0.423077
0.119318
0.113636
0.125
0.147727
0.147727
0.147727
0.147727
0
0
0
0.01227
0.149565
575
29
82
19.827586
0.707566
0
0
0
0
0
0.144852
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
759ce6e746deead9ce63c2abe9211efd40789622
904
py
Python
tests/test_group_deletion.py
igoldin74/python_for_testers
c992f85f7b08487e79c4c45ab86e0fdeb2c47b20
[ "Apache-2.0" ]
null
null
null
tests/test_group_deletion.py
igoldin74/python_for_testers
c992f85f7b08487e79c4c45ab86e0fdeb2c47b20
[ "Apache-2.0" ]
null
null
null
tests/test_group_deletion.py
igoldin74/python_for_testers
c992f85f7b08487e79c4c45ab86e0fdeb2c47b20
[ "Apache-2.0" ]
null
null
null
import random from model.group import Group def test_group_removal(app, db, check_ui): old_group_list = db.get_group_list() group = random.choice(old_group_list) if len(db.get_group_list()) == 0: app.group.create(Group(name="test_group_random_name", header="random_header", footer="random_footer"))...
45.2
110
0.713496
145
904
4.151724
0.351724
0.179402
0.099668
0.069767
0.139535
0.139535
0
0
0
0
0
0.002677
0.173673
904
19
111
47.578947
0.803213
0.107301
0
0
0
0
0.059701
0.027363
0
0
0
0
0.176471
1
0.117647
false
0
0.117647
0.058824
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
759d23943bc7a51dc76aa89f5a85cc113775bdad
1,946
py
Python
projects/wizard_of_wikipedia_ko/generator/train_end2end.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
2
2021-09-06T16:58:53.000Z
2022-01-14T04:17:48.000Z
projects/wizard_of_wikipedia_ko/generator/train_end2end.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
null
null
null
projects/wizard_of_wikipedia_ko/generator/train_end2end.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
1
2022-01-14T09:01:41.000Z
2022-01-14T09:01:41.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.scripts.train_model import setup_args, TrainLoop if __name__ == '__main__': parser = setup_args() p...
48.65
424
0.722508
286
1,946
4.632867
0.426573
0.036226
0.076981
0.086038
0.541887
0.520755
0.520755
0.520755
0.480755
0.417358
0
0.054523
0.170606
1,946
40
424
48.65
0.766419
0.476876
0
0
0
0
0.218379
0.187747
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
759dbd8419466a5b58d9ed3efce98d055fc109cf
37,914
py
Python
notebooks/__code/normalization/normalization_with_simplify_selection.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/normalization/normalization_with_simplify_selection.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/normalization/normalization_with_simplify_selection.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
import os import collections import numpy as np from ipywidgets import widgets from IPython.core.display import display, HTML import logging from NeuNorm.normalization import Normalization from __code import file_handler from __code.ipywe import myfileselector from __code.normalization.get import Get from __code.norm...
51.304465
175
0.579786
4,172
37,914
4.775168
0.090364
0.026102
0.0384
0.04864
0.544925
0.450507
0.346351
0.295502
0.25635
0.223522
0
0.006122
0.340798
37,914
738
176
51.373984
0.790981
0.093396
0
0.274102
0
0.009452
0.091439
0.01683
0
0
0
0
0
1
0.066163
false
0.00189
0.024575
0
0.109641
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
759e0a9f6bfd13dc1e30f52a13990d9895e8e99e
12,719
py
Python
backups_manager_lib_test_util.py
cantstopthesignal/backups_lib
dec602fc90d285b8581af35e514eb90309b6da89
[ "Apache-2.0" ]
null
null
null
backups_manager_lib_test_util.py
cantstopthesignal/backups_lib
dec602fc90d285b8581af35e514eb90309b6da89
[ "Apache-2.0" ]
null
null
null
backups_manager_lib_test_util.py
cantstopthesignal/backups_lib
dec602fc90d285b8581af35e514eb90309b6da89
[ "Apache-2.0" ]
null
null
null
import contextlib import io import os import re import subprocess from . import backups_manager_lib from . import backups_main from . import lib from .test_util import AssertEquals from .test_util import AssertLinesEqual from .test_util import CreateDir from .test_util import CreateFile from .test_util import DoBacku...
40.123028
103
0.676232
1,524
12,719
5.382546
0.129921
0.050347
0.034865
0.024869
0.541631
0.512252
0.477508
0.455443
0.41814
0.358649
0
0.004347
0.204104
12,719
316
104
40.25
0.805986
0
0
0.450549
0
0
0.126032
0.022329
0
0
0
0
0.029304
1
0.069597
false
0
0.047619
0
0.131868
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
759fec04ca6bf4fd01f099c1761a43c8c03c98c7
9,116
py
Python
ecommerce/views.py
umarmughal824/bootcamp-ecommerce
681bcc788a66867b8f240790c0ed33680b73932b
[ "BSD-3-Clause" ]
2
2018-06-20T19:37:03.000Z
2021-01-06T09:51:40.000Z
ecommerce/views.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
1,226
2017-02-23T14:52:28.000Z
2022-03-29T13:19:54.000Z
ecommerce/views.py
umarmughal824/bootcamp-ecommerce
681bcc788a66867b8f240790c0ed33680b73932b
[ "BSD-3-Clause" ]
3
2017-03-20T03:51:27.000Z
2021-03-19T15:54:31.000Z
"""Views for ecommerce""" from decimal import Decimal import logging from django.conf import settings from django.contrib.auth import get_user_model from django.http.response import Http404 from django.shortcuts import get_object_or_404 from django.urls import reverse from ipware import get_client_ip from rest_framewo...
34.793893
111
0.691751
975
9,116
6.252308
0.264615
0.037894
0.024606
0.011483
0.274934
0.225558
0.170932
0.148294
0.089239
0.089239
0
0.004894
0.237933
9,116
261
112
34.927203
0.872607
0.160926
0
0.22807
0
0
0.052176
0.010949
0
0
0
0
0
1
0.040936
false
0
0.175439
0
0.450292
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
75a10f7c8bb2269ffd29a74f44cb282618db5d67
3,334
py
Python
sagemaker-python-sdk/pytorch_lstm_word_language_model/source/generate.py
BluePilgrim/amazon-sagemaker-examples
e20c855dd912331a9380980712f2fef7d05d3d2d
[ "Apache-2.0" ]
7
2018-10-25T16:35:54.000Z
2022-02-12T15:24:11.000Z
sagemaker-python-sdk/pytorch_lstm_word_language_model/source/generate.py
vlordier/amazon-sagemaker-examples
6c59b6e435f040bdbe6a7c346fc0ce397f7746d8
[ "Apache-2.0" ]
1
2019-04-10T20:21:18.000Z
2019-04-10T20:21:18.000Z
sagemaker-python-sdk/pytorch_lstm_word_language_model/source/generate.py
vlordier/amazon-sagemaker-examples
6c59b6e435f040bdbe6a7c346fc0ce397f7746d8
[ "Apache-2.0" ]
2
2020-02-19T03:10:18.000Z
2022-03-16T12:49:31.000Z
import json import logging import os import torch from rnn import RNNModel import data JSON_CONTENT_TYPE = 'application/json' logger = logging.getLogger(__name__) def model_fn(model_dir): logger.info('Loading the model.') model_info = {} with open(os.path.join(model_dir, 'model_info.pth'), 'rb') as f:...
39.223529
107
0.654469
433
3,334
4.877598
0.327945
0.051136
0.035511
0.017045
0.20786
0.154356
0.109848
0.109848
0.080492
0.080492
0
0.005368
0.217756
3,334
84
108
39.690476
0.804448
0.044691
0
0.058824
0
0
0.178246
0
0
0
0
0
0
1
0.058824
false
0
0.088235
0
0.205882
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
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
75a2597adcdcae122cb7a9e4d78b3707b95ae319
889
py
Python
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import json import requests #Retrieving my api keys information to access the Google API. def get_keys(path): with open(path) as f: return json.load(f) keys = get_keys("/Users/jjherranzsarrion/.secret/google_blog2_api.json") api_key = keys['api_key'] url = 'http...
31.75
130
0.743532
135
889
4.792593
0.562963
0.027821
0
0
0
0
0
0
0
0
0
0.035111
0.134983
889
27
131
32.925926
0.806242
0.177728
0
0
0
0
0.447802
0.332418
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75a4801e3fd9b2dd8d7fd997f38c4f96f2672de6
1,807
py
Python
openslides_protocol/apps.py
OpenSlides/openslides-protocol
71366a4f251165384dd359a31fdc0fab79a652a1
[ "MIT" ]
null
null
null
openslides_protocol/apps.py
OpenSlides/openslides-protocol
71366a4f251165384dd359a31fdc0fab79a652a1
[ "MIT" ]
11
2017-08-02T10:48:24.000Z
2018-10-19T13:53:51.000Z
openslides_protocol/apps.py
OpenSlides/openslides-protocol
71366a4f251165384dd359a31fdc0fab79a652a1
[ "MIT" ]
2
2017-05-10T14:11:34.000Z
2018-01-10T11:44:10.000Z
from django.apps import AppConfig from openslides.utils.collection import Collection from . import ( __description__, __license__, __url__, __verbose_name__, __version__, ) class ProtocolAppConfig(AppConfig): name = 'openslides_protocol' verbose_name = __verbose_name__ description = _...
34.09434
104
0.722191
189
1,807
6.42328
0.343915
0.074135
0.059308
0.085667
0.327018
0.138386
0.138386
0
0
0
0
0
0.204759
1,807
52
105
34.75
0.844816
0.047593
0
0
0
0
0.155594
0.118881
0
0
0
0
0
1
0.05
false
0
0.225
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75a691a31ac0f85d25914cc8c58acb2e67e97fd0
9,700
py
Python
scripts/gen_report.py
twjang/korea_apartment_price
cd1414dfe6fe46e7d47625d2f65abe07f7c2db75
[ "MIT" ]
1
2021-12-14T13:03:38.000Z
2021-12-14T13:03:38.000Z
scripts/gen_report.py
twjang/korea_apartment_price
cd1414dfe6fe46e7d47625d2f65abe07f7c2db75
[ "MIT" ]
null
null
null
scripts/gen_report.py
twjang/korea_apartment_price
cd1414dfe6fe46e7d47625d2f65abe07f7c2db75
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json from typing import List, Optional, Tuple import datetime import re import io import base64 import os import sys import argparse from plotly.missing_ipywidgets import FigureWidget from tqdm import tqdm import minify_html ROOT=os.path.realpath(os.path.join(os.path.dirname(__file__), '....
34.767025
199
0.66299
1,484
9,700
4.177898
0.234501
0.015806
0.025806
0.011613
0.237581
0.182742
0.136935
0.085645
0.066774
0.040645
0
0.017621
0.157526
9,700
278
200
34.892086
0.741067
0.004124
0
0.104348
0
0.043478
0.305867
0.061153
0.004348
0
0
0
0
1
0.008696
false
0.004348
0.082609
0
0.1
0.030435
0
0
0
null
0
0
0
0
0
0
0
0
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
75ac67c019d243b02047c3a4e50c8d709addc5ed
5,241
py
Python
examples/qt/barcode-reader.py
claire-chan/python
9a22ab20a8d0171f491730199edfd7ce7e4d806c
[ "MIT" ]
12
2020-01-08T13:43:19.000Z
2022-03-09T08:35:45.000Z
examples/qt/barcode-reader.py
claire-chan/python
9a22ab20a8d0171f491730199edfd7ce7e4d806c
[ "MIT" ]
2
2020-09-10T07:06:50.000Z
2022-01-04T17:29:54.000Z
examples/qt/barcode-reader.py
claire-chan/python
9a22ab20a8d0171f491730199edfd7ce7e4d806c
[ "MIT" ]
11
2020-03-16T18:22:13.000Z
2022-01-07T08:23:08.000Z
import sys from PySide2.QtGui import QPixmap, QImage from PySide2.QtWidgets import QApplication, QLabel, QPushButton, QVBoxLayout, QWidget, QFileDialog, QTextEdit, QSizePolicy, QMessageBox, QHBoxLayout from PySide2.QtCore import Slot, Qt, QStringListModel, QSize, QTimer from dbr import DynamsoftBarcodeReader dbr = Dy...
31.011834
148
0.577752
549
5,241
5.453552
0.342441
0.024048
0.014696
0.024048
0.133601
0.111556
0.111556
0.111556
0.111556
0.111556
0
0.039771
0.299561
5,241
168
149
31.196429
0.77581
0.072505
0
0.237288
0
0
0.078877
0.020442
0
0
0.017345
0
0
1
0.076271
false
0
0.059322
0
0.169492
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
75af09b693b1a39a86476d750fe6c76d93b99535
6,820
py
Python
mdetsims/dbsim/erins_code/util.py
kaiwen-kakuiii/metadetect-sims
a0fd133ca5bc946c6ce769e8657ef2ce10226953
[ "BSD-3-Clause" ]
2
2021-07-12T09:41:51.000Z
2022-01-27T08:13:33.000Z
mdetsims/dbsim/erins_code/util.py
kaiwen-kakuiii/metadetect-sims
a0fd133ca5bc946c6ce769e8657ef2ce10226953
[ "BSD-3-Clause" ]
6
2019-04-04T23:53:27.000Z
2021-07-30T11:35:20.000Z
mdetsims/dbsim/erins_code/util.py
kaiwen-kakuiii/metadetect-sims
a0fd133ca5bc946c6ce769e8657ef2ce10226953
[ "BSD-3-Clause" ]
2
2020-10-30T18:14:29.000Z
2021-07-22T16:34:56.000Z
import sys import logging import numpy as np logger = logging.getLogger(__name__) class TryAgainError(Exception): """ signal to skip this image(s) and try a new one """ def __init__(self, message): # Call the base class constructor with the parameters it needs Exception.__init__(self,...
23.680556
96
0.523167
918
6,820
3.813725
0.293028
0.011997
0.010283
0.007998
0.050843
0.037704
0.015424
0
0
0
0
0.03636
0.350733
6,820
287
97
23.763066
0.754291
0.151906
0
0.078212
0
0
0.057266
0
0
0
0
0
0
1
0.061453
false
0
0.027933
0
0.150838
0.027933
0
0
0
null
0
0
0
0
0
0
0
0
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
75b16b8f307524cf047b1b8450582a6ea17185b4
1,470
py
Python
utilities/thumbnail-creation/thumbnail from category.py
DASdaNen4f/microsoftw
0ff9e052738e0effb9a484210ac27990f0f14f6f
[ "CC-BY-4.0", "MIT" ]
97
2019-05-07T15:43:30.000Z
2022-03-30T01:43:47.000Z
utilities/thumbnail-creation/thumbnail from category.py
DASdaNen4f/microsoftw
0ff9e052738e0effb9a484210ac27990f0f14f6f
[ "CC-BY-4.0", "MIT" ]
7
2020-05-05T17:12:08.000Z
2022-03-11T23:41:25.000Z
utilities/thumbnail-creation/thumbnail from category.py
DASdaNen4f/microsoftw
0ff9e052738e0effb9a484210ac27990f0f14f6f
[ "CC-BY-4.0", "MIT" ]
29
2019-05-30T22:23:25.000Z
2022-02-24T15:13:51.000Z
import pandas as pd from PIL import Image import requests from io import BytesIO import os import math df = pd.read_csv('C:\\Users\\v-ngdian\\Documents\\utilities\\thumbnail creator\\MetArtworksAugmented.csv') size = 512, 512 ids = [] def make_thumbnail(objectID, url, foldername): try: response = requests...
29.4
106
0.622449
180
1,470
5.027778
0.516667
0.01989
0.046409
0.053039
0.075138
0
0
0
0
0
0
0.01087
0.24898
1,470
50
107
29.4
0.808877
0
0
0.05
0
0
0.159075
0.057784
0
0
0
0
0
1
0.05
false
0
0.15
0
0.225
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
75b207a985e8fc2e2ac54f7ef3b3b97efd0e8a7f
1,050
py
Python
examples/tcp.py
promisedio/uv
b2da55e28da4a3185d810055468389822ec94f2b
[ "MIT" ]
null
null
null
examples/tcp.py
promisedio/uv
b2da55e28da4a3185d810055468389822ec94f2b
[ "MIT" ]
null
null
null
examples/tcp.py
promisedio/uv
b2da55e28da4a3185d810055468389822ec94f2b
[ "MIT" ]
null
null
null
import ssl import certifi from promisedio import loop, ns, promise, timer async def example1(): context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) context.verify_mode = ssl.CERT_REQUIRED context.check_hostname = True context.load_default_certs() context.load_verify_locations( cafile=certifi...
26.25
119
0.648571
130
1,050
5.130769
0.592308
0.065967
0.038981
0.050975
0.245877
0.164918
0.164918
0.164918
0
0
0
0.047205
0.233333
1,050
39
120
26.923077
0.781366
0
0
0.193548
0
0
0.057143
0
0
0
0
0
0
1
0
false
0.032258
0.096774
0
0.096774
0.16129
0
0
0
null
0
0
0
0
0
0
0
0
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
75b2d9cf0513bac35f38ddd5680c08dee820e7ca
3,232
py
Python
sahara/tests/unit/service/validation/edp/test_job.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
1
2016-04-13T17:07:05.000Z
2016-04-13T17:07:05.000Z
sahara/tests/unit/service/validation/edp/test_job.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/service/validation/edp/test_job.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
35.130435
76
0.552599
379
3,232
4.469657
0.337731
0.070248
0.053129
0.090909
0.347107
0.347107
0.335891
0.335891
0.307556
0.287485
0
0.008958
0.34375
3,232
91
77
35.516484
0.789722
0.171101
0
0.40625
0
0
0.140766
0
0
0
0
0
0.109375
1
0.09375
false
0
0.046875
0
0.15625
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
75b2efb0dac87ecec2330f57bb9b5abeb2ef6c62
1,705
py
Python
modules/AzureBridge/main.py
open-edge-insights/eii-azure-bridge
346da9d56be78c6e06a470dfbaf808d568427679
[ "MIT" ]
null
null
null
modules/AzureBridge/main.py
open-edge-insights/eii-azure-bridge
346da9d56be78c6e06a470dfbaf808d568427679
[ "MIT" ]
null
null
null
modules/AzureBridge/main.py
open-edge-insights/eii-azure-bridge
346da9d56be78c6e06a470dfbaf808d568427679
[ "MIT" ]
2
2022-02-07T09:05:54.000Z
2022-03-17T04:32:50.000Z
# Copyright (c) 2020 Intel Corporation. # # 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, merge, publish, ...
34.1
78
0.70088
242
1,705
4.880165
0.570248
0.074513
0.022015
0
0
0
0
0
0
0
0
0.003042
0.228739
1,705
49
79
34.795918
0.895057
0.678592
0
0
0
0
0.073643
0.042636
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
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
75b2fe433461c1164efd99a7fb0d0c61b5a14512
8,033
py
Python
src/spaceone/inventory/manager/bigquery/sql_workspace_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/bigquery/sql_workspace_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/bigquery/sql_workspace_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
import logging import time from spaceone.inventory.libs.manager import GoogleCloudManager from spaceone.inventory.libs.schema.base import ReferenceModel from spaceone.inventory.connector.bigquery.sql_workspace import SQLWorkspaceConnector from spaceone.inventory.model.bigquery.sql_workspace.cloud_service import BigQue...
42.957219
119
0.578115
764
8,033
5.681937
0.215969
0.023958
0.023036
0.022115
0.21654
0.180604
0.152499
0.093988
0.079244
0
0
0.002833
0.2969
8,033
186
120
43.188172
0.765758
0.033362
0
0.154472
0
0
0.10375
0.027488
0
0
0
0
0
1
0.056911
false
0
0.065041
0.00813
0.219512
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
75b763c3212f1f5ddcadc048b167842b24fdff2e
1,732
py
Python
worker_zeromq/resource.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/resource.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/resource.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 26 09:11:06 2016 @author: eikes """ import ConfigParser from components import Component from result import VariableResult _config = ConfigParser.ConfigParser() _config.read('scenario.cfg') _section = 'MySection' _results = 'results' def _create_comp(index): glob...
27.0625
90
0.663972
212
1,732
5.15566
0.334906
0.074108
0.10247
0.091491
0.240622
0.096981
0.096981
0
0
0
0
0.023371
0.184758
1,732
63
91
27.492063
0.750708
0.042725
0
0
0
0
0.134265
0.029162
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.170732
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
75b8a1f71cb2c99f52c326ad6e518a675e652f84
466
py
Python
sub-array-algorithm-frustated-coders.py
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
7
2018-11-08T11:39:27.000Z
2020-09-10T17:50:57.000Z
sub-array-algorithm-frustated-coders.py
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
null
null
null
sub-array-algorithm-frustated-coders.py
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
2
2019-09-16T14:34:03.000Z
2019-10-12T19:24:00.000Z
ncoders = int(input("enter no. of coders : ")) l=map(int,input().split(" ")) sl=[] l = sorted(list(l)) top = 1 for rotator in range(1,ncoders): sl = l[:rotator] if(top != ncoders): if(max(sl) < l[top]): l[l.index(max(sl))] = 0 top = top +1 elif(max(...
18.64
47
0.44206
69
466
2.985507
0.42029
0.058252
0.058252
0.087379
0.203884
0.203884
0.203884
0.203884
0.203884
0
0
0.02349
0.360515
466
24
48
19.416667
0.667785
0
0
0.111111
0
0
0.049569
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
75ba91add5ced077993a147299ed8098ccb69a59
8,081
py
Python
source/soca/cluster_web_ui/api/v1/dcv/image.py
cfsnate/scale-out-computing-on-aws
1cc316e988dca3200811ff5527a088a1706901e5
[ "Apache-2.0" ]
77
2019-11-14T22:54:48.000Z
2022-02-09T06:06:39.000Z
source/soca/cluster_web_ui/api/v1/dcv/image.py
cfsnate/scale-out-computing-on-aws
1cc316e988dca3200811ff5527a088a1706901e5
[ "Apache-2.0" ]
47
2020-01-15T18:51:32.000Z
2022-03-08T19:46:39.000Z
source/soca/cluster_web_ui/api/v1/dcv/image.py
cfsnate/scale-out-computing-on-aws
1cc316e988dca3200811ff5527a088a1706901e5
[ "Apache-2.0" ]
50
2019-11-14T22:51:28.000Z
2022-03-14T22:49:53.000Z
###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
45.655367
205
0.516891
862
8,081
4.684455
0.25522
0.059435
0.037147
0.052006
0.418029
0.381129
0.360079
0.324418
0.278851
0.217434
0
0.008069
0.371241
8,081
177
206
45.655367
0.786656
0.276946
0
0.211111
0
0.022222
0.272057
0.013962
0
0
0
0
0
1
0.033333
false
0
0.122222
0
0.311111
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
75bb6e08d53656c02653379a24d3bf7833708bba
807
py
Python
Day 5/python/main.py
BenBMoore/leetcode-challenges
97359abbeb24daf8cc33fe2bf1d5748ac824aab4
[ "MIT" ]
null
null
null
Day 5/python/main.py
BenBMoore/leetcode-challenges
97359abbeb24daf8cc33fe2bf1d5748ac824aab4
[ "MIT" ]
null
null
null
Day 5/python/main.py
BenBMoore/leetcode-challenges
97359abbeb24daf8cc33fe2bf1d5748ac824aab4
[ "MIT" ]
null
null
null
import argparse from typing import List class Solution: def max_profit(self, prices: List[int]) -> int: best_profit = 0 for idx in range(0, len(prices) - 1): # If the price is not greater, then "sell at the peak", else buy/hold if prices[idx + 1] > prices[idx]: ...
27.827586
85
0.619579
106
807
4.54717
0.584906
0.074689
0.041494
0.06639
0.078838
0
0
0
0
0
0
0.00846
0.267658
807
28
86
28.821429
0.807107
0.083024
0
0
0
0
0.126016
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
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
75bdd147dbc8647c0747f11af9d4431656daa233
947
py
Python
ex2.py
timwuu/AnaPoker
7cb125c4639a5cd557a6b45c92b5793dcc39def8
[ "MIT" ]
null
null
null
ex2.py
timwuu/AnaPoker
7cb125c4639a5cd557a6b45c92b5793dcc39def8
[ "MIT" ]
null
null
null
ex2.py
timwuu/AnaPoker
7cb125c4639a5cd557a6b45c92b5793dcc39def8
[ "MIT" ]
null
null
null
import calcWinRate as cwr def pp( a, b, table, k): result = cwr.calc_win_rate( a, b, table, k) print( "{} vs {} with {}".format( cwr.card_lst(a), cwr.card_lst(b), cwr.card_lst(table))) print( "{:2.2%} vs {:2.2%}\n".format(result[0], result[1])) k= 10000 # simulate k times # --- example 0 --- # --- 1...
22.023256
93
0.62302
185
947
3.032432
0.308108
0.099822
0.064171
0.078431
0.620321
0.620321
0.620321
0.620321
0.541889
0.541889
0
0.104381
0.18057
947
42
94
22.547619
0.618557
0.211193
0
0.545455
0
0
0.049451
0
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
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
75bf78052e28e2d4673d9f69709a11b7958bfff3
1,085
py
Python
Utils/Permission.py
koi312500/Koi_Bot_Discord
9d7a70f42cdb1110e6382125ade39d3aec21b3b9
[ "MIT" ]
null
null
null
Utils/Permission.py
koi312500/Koi_Bot_Discord
9d7a70f42cdb1110e6382125ade39d3aec21b3b9
[ "MIT" ]
1
2021-06-23T01:16:36.000Z
2021-06-23T01:16:36.000Z
Utils/Permission.py
koi312500/Koi_Bot_Discord
9d7a70f42cdb1110e6382125ade39d3aec21b3b9
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from Utils.UserClass import UserClass as User permission_message = ["Guest [Permission Level : 0]", "User [Permission Level : 1]", "Developer [Permission Level : 2]", "Owner [Permission Level : 3]"] async def check_permission(ctx, level): now_user = User(ctx.author)...
57.105263
161
0.682028
145
1,085
5.006897
0.489655
0.134986
0.078512
0.070248
0.107438
0.107438
0.107438
0
0
0
0
0.018412
0.199078
1,085
19
162
57.105263
0.817031
0
0
0
0
0.058824
0.37477
0.081031
0
0
0.007366
0
0
1
0
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75bfcbaef981a9d2b8f3eecff56d9741a7a40637
436
py
Python
10.py
seanmanson/euler
b01418cf44c1113a0c574b5158aa5b89d725cca2
[ "MIT" ]
null
null
null
10.py
seanmanson/euler
b01418cf44c1113a0c574b5158aa5b89d725cca2
[ "MIT" ]
null
null
null
10.py
seanmanson/euler
b01418cf44c1113a0c574b5158aa5b89d725cca2
[ "MIT" ]
null
null
null
import math test = [] def testPrime(num): sq = int(math.sqrt(num)) for i, factor in enumerate(test): if (i > sq): break if (num % factor == 0): return False test.append(num) return True sumPrimes = 2 for i in range(3, 2000000, 2): if not testPrime(i): ...
18.166667
42
0.538991
58
436
4.051724
0.551724
0.034043
0
0
0
0
0
0
0
0
0
0.058621
0.334862
436
23
43
18.956522
0.751724
0
0
0
0
0
0.025229
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.210526
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
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
75c33edb1fb71d6cd1c893b5ce0674035ed9e6dd
37,403
py
Python
clangelscript.py
gwihlidal/Clangelscript
e83f77d78bf57c25f67922b65aad2f8e74ce2699
[ "MIT" ]
1
2019-06-21T06:37:16.000Z
2019-06-21T06:37:16.000Z
clangelscript.py
gwihlidal/clangelscript
e83f77d78bf57c25f67922b65aad2f8e74ce2699
[ "MIT" ]
null
null
null
clangelscript.py
gwihlidal/clangelscript
e83f77d78bf57c25f67922b65aad2f8e74ce2699
[ "MIT" ]
null
null
null
import sys import re import json import os.path import copy from mako.template import Template from clang import cindex configfile = "clangelscript.json" f = open(configfile) data = f.read() data = re.sub(r"//[^n]*n", "\n", data) config = json.loads(data) f.close() if "ObjectTypes" in config: arr = config["Obje...
35.252592
221
0.558859
4,186
37,403
4.889871
0.124462
0.005863
0.027358
0.02687
0.327031
0.242904
0.187796
0.142704
0.108066
0.091602
0
0.003697
0.320188
37,403
1,060
222
35.285849
0.801314
0.019838
0
0.307606
0
0.002237
0.132897
0.027316
0.001119
0
0
0.000943
0.01566
1
0.045861
false
0.003356
0.00783
0.005593
0.111857
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
75ca90abf615365ec5eda2bc92c9c7ddc159748c
3,699
py
Python
cookbook/3 Linear Regression/lin_reg_l1_l2_loss.py
keetsky/tensorflow_learn
77205434c2e3d70d482a756f5f679622d10f49b2
[ "Apache-2.0" ]
null
null
null
cookbook/3 Linear Regression/lin_reg_l1_l2_loss.py
keetsky/tensorflow_learn
77205434c2e3d70d482a756f5f679622d10f49b2
[ "Apache-2.0" ]
null
null
null
cookbook/3 Linear Regression/lin_reg_l1_l2_loss.py
keetsky/tensorflow_learn
77205434c2e3d70d482a756f5f679622d10f49b2
[ "Apache-2.0" ]
null
null
null
''' # Linear Regression: understanding loss function in linear regression #---------------------------------- # # This function shows how to use Tensorflow to # solve linear regression. # y = Ax + b # # We will use the iris data, specifically: # y = Sepal Length # x = Petal Width ''' import matplotlib.pyplot as plt i...
30.073171
92
0.711544
624
3,699
4.048077
0.235577
0.027712
0.017419
0.034838
0.527712
0.510689
0.510689
0.510689
0.510689
0.457641
0
0.023958
0.131117
3,699
122
93
30.319672
0.761979
0.263585
0
0.447761
0
0
0.042799
0
0
0
0
0
0
1
0
false
0
0.074627
0
0.074627
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75cdec8d921818ac60703e7cb57923284eb229e2
2,499
py
Python
alipay/aop/api/domain/AlipayCommerceEducateTuitioncodeMonitorCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceEducateTuitioncodeMonitorCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceEducateTuitioncodeMonitorCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceEducateTuitioncodeMonitorCreateModel(object): def __init__(self): self._bank_type = None self._login_account = None self._out_apply_id = None self._p...
29.05814
77
0.605442
317
2,499
4.422713
0.14511
0.085592
0.10699
0.0699
0.32097
0.272468
0.0699
0.042796
0
0
0
0.000572
0.30052
2,499
85
78
29.4
0.801487
0.016807
0
0.115942
0
0
0.092947
0
0
0
0
0
0
1
0.15942
false
0
0.028986
0.057971
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75d4809609a0cd8b60448ab7ac5fccbe7bba640b
5,010
py
Python
maze.py
vcxsd/muck-builder
12c1defbb816395a119da1992c1352d614d5507b
[ "MIT" ]
null
null
null
maze.py
vcxsd/muck-builder
12c1defbb816395a119da1992c1352d614d5507b
[ "MIT" ]
null
null
null
maze.py
vcxsd/muck-builder
12c1defbb816395a119da1992c1352d614d5507b
[ "MIT" ]
null
null
null
import random import yaml class Grammar: """ A simpler version of Tracery's ideas. """ def __init__( self, rules = None ): self.rules = rules or { } # To be pop()'d off by the caller. self.saved = [ ] def parse( self, string ): if "[" in string or "]" in string: ...
35.531915
282
0.48982
525
5,010
4.634286
0.48
0.025894
0.028771
0.032059
0.079737
0.019729
0
0
0
0
0
0.005464
0.342515
5,010
140
283
35.785714
0.733151
0.048104
0
0.134831
0
0
0.326329
0
0
0
0
0
0
1
0.033708
false
0.011236
0.022472
0
0.11236
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
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