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
7982421d07b8b666fc8fc840123a2f47aa6edf14
860
py
Python
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
59
2022-01-19T21:35:57.000Z
2022-03-30T21:35:27.000Z
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
import importlib client_hints_ua_list = importlib.import_module("client-hints.resources.clienthintslist").client_hints_ua_list def main(request, response): """ Simple handler that sets a response header based on which client hint request headers were received. """ response.headers.append(b"Access-Contro...
35.833333
109
0.731395
116
860
5.232759
0.396552
0.126853
0.06425
0.08402
0.192751
0.192751
0.192751
0
0
0
0
0.004149
0.159302
860
23
110
37.391304
0.835408
0.116279
0
0
0
0
0.179625
0.163539
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79836d938d077f9ed2ab86fd140347063a4e8fc0
8,892
py
Python
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
import os import json import numpy as np class Vocab(object): def __init__(self): self.word_to_id = dict() self.count = list() self.words = list() self.to_lower = False # add character information self.chars = list() # ['a', 'b', 'c', 'd', ...] ...
36.743802
109
0.501012
1,203
8,892
3.386534
0.102244
0.047128
0.046637
0.029455
0.459745
0.302896
0.249877
0.17354
0.158321
0.129111
0
0.008026
0.383491
8,892
241
110
36.896266
0.735133
0.036887
0
0.338542
0
0
0.045504
0.00301
0
0
0
0
0
1
0.067708
false
0
0.015625
0.015625
0.145833
0.036458
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7983823b3cdf770a3c86d666eba52cc7de43379b
2,749
py
Python
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
15
2018-10-19T05:48:17.000Z
2022-02-14T20:34:16.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
1
2020-04-22T22:55:39.000Z
2020-04-22T22:55:39.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
9
2018-11-13T12:37:55.000Z
2021-11-22T11:11:52.000Z
# ==BEGIN LICENSE== # # MIT License # # Copyright (c) 2018 SRI Lab, ETH Zurich # # 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 right...
33.938272
87
0.75773
436
2,749
4.630734
0.34633
0.08321
0.154532
0.015849
0.182268
0.159485
0.147598
0.126795
0.126795
0.092125
0
0.00854
0.148054
2,749
80
88
34.3625
0.853544
0.404147
0
0.243902
0
0
0.047146
0.019851
0
0
0
0
0
1
0.073171
false
0
0.097561
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
798d2621ee7b1e2db86f8b2f4ca02a4a32de49fa
398
py
Python
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
""" Przemienia liczbę na wartość binarną i zwraca sumę jedynek występującą w wartości binarnej Example: The binary representation of 1234 is 10011010010, so the function should return 5 in this case """ def countBits(n): # szybsza metoda # return bin(n).count("1") final = 0 for x in str(bin(n)): ...
26.533333
103
0.660804
58
398
4.534483
0.758621
0.030418
0
0
0
0
0
0
0
0
0
0.08
0.246231
398
15
104
26.533333
0.796667
0.590452
0
0
0
0
0.006452
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7990913dfb319b60a3a689bb4ec8e33cb489297d
10,799
py
Python
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
1
2018-12-06T21:51:22.000Z
2018-12-06T21:51:22.000Z
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI import pytest import time import pandas as pd import pprint pp = pprint.PrettyPrinter(indent=4) server_address = 'http://saclab.ss.uci.edu:8000' file_update_time = 2 data_update_time = 10 data_upload_working = False def dict_issubset(superset, subset, show_di...
43.720648
215
0.682471
1,506
10,799
4.580345
0.158035
0.036532
0.026095
0.030444
0.530444
0.403015
0.358365
0.296028
0.26283
0.212525
0
0.037883
0.193351
10,799
246
216
43.898374
0.753989
0.054079
0
0.224719
0
0
0.227849
0.09824
0
0
0
0.004065
0.117978
1
0.050562
false
0.039326
0.02809
0.005618
0.095506
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
79941e8098ddb85ae7adb492cd1a81eb3262f856
4,078
py
Python
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
6
2021-01-15T13:31:37.000Z
2021-12-06T13:44:39.000Z
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
import requests from .enums import TransactionStatus from .exceptions import InvalidPaymentException, SslcommerzAPIException from .services import PayloadSchema, is_verify_sign_valid DEFAULT_CONFIG = { "base_url": "https://sandbox.sslcommerz.com", "session_url": "/gwprocess/v4/api.php", "validation_url":...
37.072727
88
0.601766
402
4,078
5.893035
0.223881
0.050654
0.038413
0.063318
0.344449
0.33263
0.282398
0.230055
0.230055
0.211904
0
0.002424
0.29181
4,078
109
89
37.412844
0.817867
0
0
0.291667
0
0
0.144924
0.051986
0
0
0
0
0
1
0.09375
false
0.03125
0.041667
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
7994462d7302f56ae3248adc4074cec0dff871a2
1,636
py
Python
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
2
2015-07-13T09:08:53.000Z
2017-05-22T07:56:29.000Z
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
import abc import re from .exceptions import FileSuffixError from .stack import LineCounter, IndentStack class ConverterBase(metaclass=abc.ABCMeta): def __init__(self, src: str): self.src = src self.code_blocks @property def code_blocks(self): ''' Aggregate code block in...
27.728814
64
0.525672
170
1,636
4.870588
0.388235
0.108696
0.067633
0.05314
0.236715
0.169082
0.169082
0.169082
0
0
0
0.004888
0.374694
1,636
58
65
28.206897
0.804497
0.056846
0
0.170732
0
0
0.017207
0
0
0
0
0
0
1
0.073171
false
0
0.097561
0
0.243902
0.170732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7994c8744e38290defb02afb422aa332b6ee9f48
541
py
Python
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import numpy as np import argparse import cv2 im = cv2.imread('/var/www/test/test.jpg') cv2.imshow("im", im) imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(imgray,127,255,0) cv2.imshow("Thresh", thresh) (cnts, _) = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN...
31.823529
83
0.744917
91
541
4.32967
0.43956
0.038071
0.096447
0.101523
0.137056
0.137056
0.137056
0.137056
0
0
0
0.07984
0.073937
541
16
84
33.8125
0.706587
0.205176
0
0
0
0
0.081967
0.051522
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79954f94e96d2ea0202820bdc5e93050e74cbb64
810
py
Python
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
2
2021-11-11T15:19:30.000Z
2022-02-07T22:52:07.000Z
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 783682226c9b Revises: b882b9ab026c Create Date: 2019-10-19 10:07:14.923441 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "783682226c9b" down_revision = "b882b9ab026c" branch_labels = None depends_on = None def upgrade(): # #...
25.3125
110
0.693827
98
810
5.581633
0.520408
0.043876
0.076782
0.084095
0.47532
0.47532
0.33638
0.33638
0.33638
0.33638
0
0.081203
0.179012
810
31
111
26.129032
0.741353
0.364198
0
0.142857
0
0
0.154812
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
799b0a8db84df97948487d6c7aed90ab475e0d53
1,212
py
Python
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
import argparse import pandas as pd from config_builder import build_config from utils.helpers import load_ymal def app_dep_graph(yml): nodes = [] source = [] target = [] print(yml) for svc_name, service in yml["services"].items(): print(service) nodes.append(svc_name) for...
28.857143
77
0.632013
149
1,212
4.885906
0.463087
0.054945
0.076923
0.038462
0
0
0
0
0
0
0
0.002191
0.2467
1,212
41
78
29.560976
0.795181
0
0
0
0
0
0.159241
0.028878
0
0
0
0
0
1
0.028571
false
0
0.114286
0
0.171429
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
799c75fdf25b724115e60255f1f09d6eec4d851d
4,187
py
Python
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
8
2016-10-14T14:32:00.000Z
2022-01-14T16:04:07.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
42
2016-11-11T12:24:54.000Z
2021-07-12T03:29:18.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
7
2017-03-13T09:21:08.000Z
2018-01-08T06:40:22.000Z
from ckan.plugins import toolkit from ckan.lib.i18n import get_lang import ckan.lib.i18n as i18n from ckan.common import config, c import ckan.logic as logic import ckan.lib.base as base import ckan.model as model from ckan.model.package import Package from ckan.lib.dictization.model_dictize import group_list_dictize ...
27.366013
119
0.64557
545
4,187
4.733945
0.247706
0.027907
0.01938
0.034109
0.212016
0.15814
0.10155
0.10155
0.10155
0.10155
0
0.004453
0.249104
4,187
152
120
27.546053
0.816158
0.026749
0
0.220183
0
0
0.093075
0.006385
0
0
0
0.006579
0
1
0.110092
false
0
0.119266
0.018349
0.412844
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79a1df3d282563da1e1751edcf4f307e4b4ca364
8,794
py
Python
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
1
2022-02-15T23:43:22.000Z
2022-02-15T23:43:22.000Z
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
null
null
null
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
3
2020-03-21T12:45:22.000Z
2020-10-06T18:30:47.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns all from viabel import all_bounds from viabel.vb import black_box_klvi, black_box_chivi, adagrad_optimize from utils import Timer from psis import psislw ## Display bounds information ## def print_bounds(results): print('Bounds on...') ...
41.677725
90
0.61053
1,107
8,794
4.558266
0.171635
0.042806
0.052715
0.032699
0.378121
0.309354
0.245937
0.217598
0.161316
0.131193
0
0.013033
0.267114
8,794
210
91
41.87619
0.769899
0.015806
0
0.102857
0
0
0.090003
0.003243
0
0
0
0
0
1
0.062857
false
0
0.04
0.005714
0.142857
0.171429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79a4a7145c7782f4c24c78c13d10feef5db3850e
2,456
py
Python
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
import logging import traceback from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import transaction from django_rq import job from . import email from .r10_spreadsheet_converter import Region10SpreadsheetConverter from contracts.loaders.region_10 import R...
29.95122
79
0.735342
286
2,456
6.055944
0.374126
0.117783
0.06582
0.038106
0.122979
0.064088
0.064088
0.064088
0
0
0
0.008065
0.192182
2,456
81
80
30.320988
0.864919
0.061075
0
0.071429
0
0
0.125217
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79a5279be723e7987fc33c8f7184b26de97782d2
1,525
py
Python
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
import itertools from django.conf import settings from django.dispatch import receiver from django.core.signals import setting_changed from api import models _USER_UNREAD_GRACE_INTERVAL = None _USER_UNREAD_GRACE_MIN_COUNT = None @receiver(setting_changed) def _load_global_settings(*args, **kwargs): global _US...
31.122449
120
0.773115
200
1,525
5.445
0.34
0.10101
0.151515
0.099174
0.321396
0.139578
0.139578
0.139578
0
0
0
0.003118
0.158689
1,525
48
121
31.770833
0.845674
0
0
0
0
0
0.007869
0
0
0
0
0
0
1
0.09375
false
0
0.15625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79a565e7d7928d619d4922162412c3aac164285d
3,016
py
Python
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
4
2021-02-08T16:18:12.000Z
2021-12-28T07:13:51.000Z
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict from nonebot.log import logger from peewee import JOIN from .db import DB from .tables import BilibiliUser, BilibiliUserStatus, FollowLink, Group def log_sql(s): # logger.debug(f"[DB:SQL] {s.sql()}") return s def get_all_groups(): yield from ...
24.92562
78
0.655172
372
3,016
5.107527
0.228495
0.034737
0.023158
0.026842
0.290526
0.236842
0.236842
0.175789
0.121053
0.121053
0
0.001306
0.238395
3,016
120
79
25.133333
0.82586
0.011605
0
0.267442
0
0
0.005707
0
0
0
0
0
0
1
0.174419
false
0
0.069767
0.023256
0.360465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79a69b808745f05349b2ede483ce4782883293d0
1,536
py
Python
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
5
2015-07-14T17:11:24.000Z
2016-07-28T11:52:03.000Z
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
db = 'log.db' import sqlite3 import time dbc = sqlite3.connect(db, check_same_thread=False) dbc.text_factory = str c = dbc.cursor() def key(obj): return obj[2] while True: c.execute('SELECT userid, name, COUNT(`date`) FROM log WHERE `date` > \'' + time.strftime('%Y-%m-%d 00:00:00') + '\' AND result=1 GROUP BY use...
45.176471
149
0.575521
254
1,536
3.468504
0.283465
0.022701
0.079455
0.090806
0.573212
0.492622
0.464245
0.464245
0.464245
0.429058
0
0.058457
0.164714
1,536
34
150
45.176471
0.628215
0
0
0
0
0
0.398829
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0.037037
0.148148
0.259259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79a7ef7c11468985df93521d767d16d3db7e7f54
1,949
py
Python
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #Copyright 2018 Jim Van Fleet #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 ...
34.192982
73
0.531042
226
1,949
4.561947
0.50885
0.058196
0.026188
0.029098
0.050436
0.050436
0
0
0
0
0
0.026742
0.366855
1,949
56
74
34.803571
0.808752
0.307337
0
0.166667
0
0
0.018685
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79aa3668bb043f0729ae0d753b69ad0de26cb30d
2,270
py
Python
models/networkgcn.py
Byomyyt/GnTCN
b4cc9e97fc0b0438deb0a7e118817a7ab73ae93c
[ "MIT" ]
91
2021-04-06T15:33:11.000Z
2022-03-31T05:16:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
17
2021-01-04T09:08:20.000Z
2022-03-17T11:45:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
15
2021-01-18T01:54:23.000Z
2021-09-24T01:29:32.000Z
import numpy as np import torch import torch.nn.functional as F from TorchSUL import Model as M from torch.nn.parameter import Parameter import torch.nn.init as init class PropLayer(M.Model): def initialize(self, outdim, usebias=True): self.outdim = outdim self.act = torch.nn.ReLU() self.act2 = torch.nn.Re...
27.02381
75
0.657269
385
2,270
3.820779
0.220779
0.067981
0.077498
0.062542
0.299116
0.262407
0.197145
0.172672
0.042148
0.042148
0
0.025918
0.184141
2,270
83
76
27.349398
0.768359
0.067401
0
0.136364
0
0
0.034581
0
0
0
0
0
0
1
0.075758
false
0
0.090909
0
0.227273
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79ac7f2c83fe009a0c2f95dafc3599ebde6411df
307
py
Python
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
12
2019-05-17T13:02:20.000Z
2020-08-31T08:16:47.000Z
tests/backends/test_init.py
FAST-HEP/fast-carpenter
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
104
2019-05-17T16:25:35.000Z
2022-03-28T16:11:10.000Z
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
16
2019-05-20T16:57:48.000Z
2020-09-28T16:36:21.000Z
import pytest import fast_carpenter.backends as backends def test_get_backend(): coffea_back = backends.get_backend("coffea:dask") assert hasattr(coffea_back, "execute") with pytest.raises(ValueError) as e: backends.get_backend("doesn't exist") assert "Unknown backend" in str(e)
25.583333
53
0.732899
42
307
5.190476
0.619048
0.137615
0.146789
0
0
0
0
0
0
0
0
0
0.169381
307
11
54
27.909091
0.854902
0
0
0
0
0
0.149837
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79ae5d267641860a50ba60429c85299cdeeef14d
1,534
py
Python
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
10
2020-08-30T03:19:10.000Z
2021-08-08T17:38:06.000Z
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
null
null
null
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
6
2020-08-30T03:19:13.000Z
2021-11-26T23:32:42.000Z
from typing import Dict import logging logger = logging.getLogger(__name__) def path_builder(url: str, path: str) -> str: if path == "" or path is None: return url if path.startswith("/"): path = path[1:] if url.endswith("/"): url = f"{url}{path}" else: url = f"{url}/{...
27.890909
140
0.627119
194
1,534
4.71134
0.190722
0.157549
0.137856
0.091904
0.128009
0.084245
0.083151
0.083151
0
0
0
0.009649
0.256845
1,534
54
141
28.407407
0.792105
0.160365
0
0.172414
0
0
0.061275
0
0
0
0
0
0
1
0.137931
false
0
0.068966
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79ae9cb10f166f65649baf95240f5d262fca4fa9
1,856
py
Python
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
import typing class NotRelativePrimeError(ValueError): def __init__(self, a, b, d, msg=''): super().__init__(msg or "%d and %d are not relatively prime, divider=%i" % (a, b, d)) self.a = a self.b = b self.d = d def bit_size(num: int) -> int: try: return num.bit_length...
25.424658
93
0.553341
293
1,856
3.443686
0.351536
0.015857
0.005946
0.011893
0.043608
0
0
0
0
0
0
0.019701
0.316272
1,856
72
94
25.777778
0.775414
0.310884
0
0
0
0
0.072698
0
0
0
0
0
0
1
0.142857
false
0
0.02381
0
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79af2c5e0250f4d13af181fe19d4ed482ecdc804
12,217
py
Python
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
import datetime import json import os from uuid import uuid4 import pytest import numpy as np from pandas import util from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile from whylogs.core.model_profile import ModelProfile from whylogs.util import time from whylogs.util.protobuf im...
35.106322
107
0.681919
1,535
12,217
5.227362
0.134853
0.066176
0.045364
0.068669
0.645937
0.617896
0.600698
0.559696
0.547233
0.542498
0
0.014706
0.17623
12,217
347
108
35.207493
0.782591
0.008513
0
0.515504
0
0
0.092906
0.00958
0
0
0
0
0.255814
1
0.093023
false
0.007752
0.046512
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
79af4b15407f4473ba60b0d4c07074b41824263f
2,645
py
Python
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
4
2018-01-24T01:34:39.000Z
2021-01-14T21:29:47.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
2
2018-06-09T22:28:56.000Z
2018-06-12T01:40:10.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 ''' The CLI API definition, available to both the core and plugins. ''' import sys from ..exceptions import NotInstalled from .. import __installed__ # Define the global name to launcher function map. _launchers = dict() # Define a single character to launcher function map. _shortforms = dict() def ...
25.432692
76
0.677127
345
2,645
5.023188
0.37971
0.028275
0.025967
0.024235
0
0
0
0
0
0
0
0.007955
0.19206
2,645
103
77
25.679612
0.802995
0.377694
0
0.084746
0
0
0.066998
0
0
0
0
0
0
1
0.101695
false
0
0.067797
0
0.220339
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b154f9526abf942504a9812110e0bdc124d139
1,898
py
Python
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
1
2019-05-28T11:32:11.000Z
2019-05-28T11:32:11.000Z
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
from os import unlink from random import randint import util import tempfile def config_setup(stack, *configs): config_name = "tconfig" + str(randint(1000, 5000)) fp = tempfile.NamedTemporaryFile(delete=False) for c in configs: fp.write(bytes(c+"\n", 'utf8')) fp.close() util.run(f"rio ...
21.325843
68
0.615385
245
1,898
4.685714
0.35102
0.027875
0.041812
0.039199
0.054007
0
0
0
0
0
0
0.028082
0.230769
1,898
88
69
21.568182
0.758219
0
0
0.105263
0
0
0.134352
0.011064
0
0
0
0
0.035088
1
0.087719
false
0
0.070175
0
0.22807
0.070175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b4dd93658058c4c08b578922c3ee4d84c4d4e5
5,548
py
Python
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
import os import datetime import csv import time import random from time import sleep from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementExceptio...
53.864078
188
0.605443
568
5,548
5.734155
0.265845
0.062634
0.043905
0.044212
0.427694
0.351551
0.351551
0.351551
0.351551
0.272644
0
0.001975
0.270007
5,548
103
189
53.864078
0.802222
0.012076
0
0.238636
0
0.056818
0.217739
0.149312
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.238636
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b52191dc7ea7de4c6237513c7af4e22ce1b28f
3,339
py
Python
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
null
null
null
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
6
2019-12-13T09:55:45.000Z
2022-03-11T23:47:29.000Z
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
1
2019-05-16T06:58:16.000Z
2019-05-16T06:58:16.000Z
# Copyright (c) 2012-2016 Seafile Ltd. """ The MIT License (MIT) Copyright (c) 2013 Omar Bohsali 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 ...
38.825581
152
0.7059
466
3,339
5.015021
0.472103
0.037655
0.027813
0.017972
0.050492
0.050492
0.02653
0
0
0
0
0.008785
0.215933
3,339
85
153
39.282353
0.883881
0.620545
0
0.071429
0
0
0.043771
0
0
0
0
0
0
1
0.107143
false
0
0.214286
0.035714
0.464286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b7a93216b116c4fe2b33e6f3183397b498a763
1,047
py
Python
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
from year2019.intcode_v2 import Intcode from common import input_integer_sep def part_one(inp_list): program1 = ( "NOT A J\n" "NOT B T\n" "OR T J\n" "NOT C T\n" "OR T J\n" "AND D J\n" "WALK\n" ) p = Intcode( inp_list, [ord(char) for ch...
20.529412
43
0.472779
163
1,047
2.92638
0.312883
0.037736
0.052411
0.041929
0.406709
0.406709
0.406709
0.406709
0.406709
0.406709
0
0.0336
0.403056
1,047
50
44
20.94
0.7296
0
0
0.391304
0
0
0.164279
0
0
0
0
0
0
1
0.065217
false
0
0.043478
0
0.152174
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b7cbd53300df46238acfe16835276ec2f45c5e
2,252
py
Python
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
7
2015-07-01T18:01:40.000Z
2019-12-27T02:04:07.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
6
2015-07-01T11:32:34.000Z
2021-06-10T20:35:32.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
10
2015-07-01T11:20:35.000Z
2020-10-02T18:58:07.000Z
import logging from django.core.management.base import BaseCommand from django.template.defaultfilters import slugify from july.models import User from july.people.models import Location from july.utils import check_location from optparse import make_option class Command(BaseCommand): help = 'fix locations' ...
32.637681
79
0.517318
232
2,252
4.961207
0.349138
0.057341
0.044309
0.065161
0.146829
0.118158
0.118158
0.118158
0.118158
0.118158
0
0.00436
0.388988
2,252
68
80
33.117647
0.832122
0
0
0.216667
0
0
0.098179
0
0
0
0
0
0
1
0.016667
false
0
0.116667
0
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79b9db085b3980a703000d7ded2a0b497ec1fcdd
6,338
py
Python
core/feature/gps_location_daywise/gps_location_daywise.py
MD2Korg/CerebralCortex-DataAnalysis
73f5ea2430bc7c23de422dccb7b65ef9f8917595
[ "BSD-2-Clause" ]
1
2018-04-24T18:11:24.000Z
2018-04-24T18:11:24.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
10
2018-03-13T19:04:09.000Z
2018-05-12T01:40:03.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
42
2017-12-07T17:08:14.000Z
2019-06-02T08:25:12.000Z
# Copyright (c) 2018, MD2K Center of Excellence # - Alina Zaman <azaman@memphis.edu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copy...
48.015152
114
0.631745
779
6,338
4.947368
0.297818
0.044369
0.030358
0.028542
0.395693
0.314997
0.251168
0.239232
0.225221
0.199792
0
0.002032
0.301041
6,338
131
115
48.381679
0.867946
0.304986
0
0.266667
0
0
0.057998
0.021749
0
0
0
0
0
1
0.026667
false
0
0.186667
0
0.226667
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79bc48970d40d17cad24372399c2613c8f57a896
2,939
py
Python
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
2
2020-04-28T07:59:30.000Z
2020-05-17T15:36:04.000Z
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
import sys import uuid import psutil import time from datetime import datetime # remove for production from pprint import pprint from functools import reduce import function_lib as lib class Invocation: def __init__(self, exp_uuid: str, root: str, data: dict): self.exp_id = exp_uuid self.root_ide...
40.819444
131
0.543042
361
2,939
4.204986
0.277008
0.047431
0.043478
0.033597
0.056653
0.013175
0.013175
0.013175
0.013175
0.013175
0
0.011667
0.300102
2,939
71
132
41.394366
0.7263
0.036747
0
0
0
0
0.171621
0.04954
0
0
0
0
0
1
0.117647
false
0.019608
0.156863
0.019608
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79bcabef33a714ea5bd9e55eb07ea14a99365d51
4,123
py
Python
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
2
2022-03-22T11:47:12.000Z
2022-03-22T11:48:23.000Z
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
14
2022-01-05T09:25:11.000Z
2022-03-31T17:07:10.000Z
src/pymor/tools/io/vtk.py
moro1111/pymor
aa03f2521ee3c7b8a9e7da4cb109caea4c788b29
[ "Unlicense" ]
1
2022-03-28T10:58:18.000Z
2022-03-28T10:58:18.000Z
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) from pymor.core.config import config config.require('VTKIO') from pathlib import Path import meshio fro...
32.464567
113
0.66408
551
4,123
4.865699
0.352087
0.036927
0.00746
0.01865
0.040283
0
0
0
0
0
0
0.004717
0.228717
4,123
126
114
32.722222
0.838365
0.369634
0
0
0
0
0.06953
0
0
0
0
0
0.033898
1
0.118644
false
0
0.169492
0
0.457627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79c3715dd99e77bde511c274c350ef404bb7cf2e
1,887
py
Python
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
import torch.nn as nn from models.blocks import GlobalAvgPool2d class _VanillaConvBlock(nn.Module): def __init__(self, in_channels, out_channels, kernel_size): super(_VanillaConvBlock, self).__init__() self._block = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size, str...
39.3125
110
0.581346
206
1,887
5
0.276699
0.126214
0.151456
0.078641
0.371845
0.334951
0.16699
0.16699
0.16699
0.16699
0
0.042868
0.320085
1,887
47
111
40.148936
0.759938
0
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.029412
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
79c4bc7411a8ceae834135ef0832c81c48a8f427
5,528
py
Python
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
1
2019-03-20T07:10:08.000Z
2019-03-20T07:10:08.000Z
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates def upsample(image, image_size_target): padding0 = (image_size_target - image.shape[0]) / 2 padding1 = (image_size_target - image.shape[1]) / 2 padding_start0 = int(np.ce...
38.929577
120
0.680174
806
5,528
4.475186
0.219603
0.035487
0.024951
0.015525
0.289992
0.254505
0.168561
0.114777
0.085944
0.085944
0
0.045098
0.193741
5,528
141
121
39.205674
0.764191
0.100398
0
0.086022
0
0
0.00243
0
0
0
0
0
0
1
0.096774
false
0
0.043011
0
0.236559
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79c67d96a3b58ae9b3f7d1e5efc7a2527f181276
1,663
py
Python
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
null
null
null
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
43
2020-02-06T22:23:42.000Z
2020-04-29T23:56:43.000Z
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
2
2020-02-06T21:01:42.000Z
2020-02-06T23:43:11.000Z
from taskobra.orm import * import platform import cpuinfo import subprocess def create_system(args, database_engine): system = System(name=platform.node()) cpu_info = cpuinfo.get_cpu_info() system.add_component(OperatingSystem( name=platform.system(), version=platform.platform(), )) ...
25.984375
74
0.578473
185
1,663
5.016216
0.491892
0.052802
0.116379
0.047414
0.071121
0.071121
0.071121
0
0
0
0
0.046823
0.280818
1,663
63
75
26.396825
0.729097
0.338545
0
0.076923
0
0
0.033676
0
0
0
0
0
0
1
0.038462
false
0
0.153846
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79cc5960935ea7fbba4fb0eb6555e1ecb03c2fbf
1,562
py
Python
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
4
2020-05-09T11:01:32.000Z
2020-06-03T14:44:06.000Z
mints/args/typed.py
candy-kingdom/cli
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
43
2020-01-27T21:14:16.000Z
2020-06-18T17:57:20.000Z
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
null
null
null
from typing import Type, Any class Typed: """A typed command line argument. A typed command line argument is used for specifying the type to convert the value to. For example, consider the following code: @cli def double(number: Opt[int]('A number to double.')): print(number ...
31.877551
78
0.587068
206
1,562
4.412621
0.398058
0.070407
0.039604
0.037404
0.10341
0
0
0
0
0
0
0.002747
0.300896
1,562
48
79
32.541667
0.82967
0.604994
0
0
0
0
0.180791
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79cd97ed3020f125684d084c92be22793583d226
5,994
py
Python
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
import json import time import cherrypy class albums: def __init__(self,artist,year,title,num): self.artist=artist self.year=year self.title=title self.N=num class owner(albums): def __init__(self,nome,date): self.album_list=[] self.nome=nome self.last_...
45.067669
101
0.584918
790
5,994
4.249367
0.124051
0.117962
0.143283
0.112601
0.633006
0.569258
0.543342
0.526065
0.526065
0.526065
0
0.004514
0.260761
5,994
132
102
45.409091
0.753103
0
0
0.395161
0
0
0.089756
0
0
0
0
0
0
1
0.096774
false
0
0.024194
0.008065
0.298387
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79d29ea8f56cec3596c251c94d5aca0bfd3a1026
1,653
pyde
Python
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
import random from itertools import product CS = 10 # cell size W = 600 # width H = 600 # height COLS = W // CS ROWS = H // CS DENSITY = 0.35 dirs = list(product((-1, 0, 1), repeat=2)) dirs.remove((0, 0)) points = [] new_points = [] run = False def xy2flat(x, y): x = (x + COLS) % COLS y = (y + ROWS) % RO...
21.467532
66
0.557774
241
1,653
3.751037
0.327801
0.079646
0.066372
0.026549
0.117257
0.079646
0.079646
0.079646
0.079646
0
0
0.043821
0.30974
1,653
76
67
21.75
0.748466
0.037508
0
0.1
0
0
0.001893
0
0
0
0
0
0
1
0.116667
false
0
0.033333
0.016667
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79d585582066d6853246fd14d5eec7b556e67b85
5,064
py
Python
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil from conans import ConanFile, CMake, tools class LibwebpConan(ConanFile): name = "libwebp" version = "1.0.0" description = "library to encode and decode images in WebP format" url = "http://github.com/bincrafters/conan-libwebp" ...
42.2
120
0.634874
598
5,064
5.16388
0.304348
0.05829
0.061529
0.027202
0.310557
0.271697
0.202396
0.138601
0.090997
0.090997
0
0.007576
0.244076
5,064
119
121
42.554622
0.799112
0.056872
0
0.073171
0
0
0.267637
0.102954
0
0
0
0
0
1
0.097561
false
0
0.036585
0.012195
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79d5867444343ac92dd71c753e06968277e1c875
5,184
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Exposes several methods for transmitting cyclic messages. The main entry point to these classes should be through :meth:`can.BusABC.send_periodic`. """ import abc import logging import threading import time import warnings log = logging.getLogger('can.bcm') class CyclicTask(object): """ ...
32.603774
119
0.643711
590
5,184
5.561017
0.308475
0.034136
0.022859
0.033526
0.116733
0.078635
0.068881
0.068881
0.068881
0.068881
0
0.001061
0.272569
5,184
158
120
32.810127
0.869
0.36169
0
0.181818
0
0
0.055537
0.007695
0
0
0
0
0
1
0.166667
false
0
0.075758
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79d996f9c7b739201903f7162ae39e85d80aae38
513
py
Python
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
5
2017-04-11T00:18:42.000Z
2021-08-01T04:27:20.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
47
2017-04-27T18:57:27.000Z
2017-07-16T21:18:28.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
4
2018-05-17T12:33:59.000Z
2022-02-20T16:08:51.000Z
from pywintypes import com_error import win32com.client from main import OutputError, BrailleOutput class Virgo (BrailleOutput): """Braille output supporting the Virgo screen reader.""" name = 'Virgo' def __init__(self, *args, **kwargs): super (Virgo, self).__init__(*args, **kwargs) try: self.object = win...
23.318182
68
0.744639
63
513
5.904762
0.587302
0.043011
0
0
0
0
0
0
0
0
0
0.009132
0.146199
513
22
69
23.318182
0.840183
0.097466
0
0
0
0
0.061135
0.050218
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79da26b04e69fcee30b862a1e5dd200b98e09556
3,050
py
Python
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
2
2021-04-26T16:37:38.000Z
2022-03-15T01:26:19.000Z
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
null
null
null
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
1
2022-03-15T01:26:23.000Z
2022-03-15T01:26:23.000Z
import pandas as pd import numpy as np from os import path from path_service import LOG_DIR, DATA_DIR from sklearn.metrics import log_loss import re prob_columns = list(map(lambda x: f"prob{x}", range(8))) prob_columns_without_end = list(map(lambda x: f"prob{x}", range(7))) def row_check(df: pd.DataFrame): df.loc...
34.659091
106
0.627213
513
3,050
3.524366
0.216374
0.029867
0.019912
0.036504
0.53208
0.462389
0.434735
0.434735
0.389934
0.309181
0
0.01697
0.207869
3,050
87
107
35.057471
0.731374
0
0
0.338028
0
0
0.077377
0
0
0
0
0
0
1
0.098592
false
0
0.084507
0.014085
0.239437
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79dd7101e6c2dbca64177e87d238cd48079dd45d
6,466
py
Python
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
4
2019-10-18T01:27:48.000Z
2020-02-14T05:45:29.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
3
2020-02-10T05:58:30.000Z
2020-09-28T22:42:04.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
null
null
null
# Copyright 2019 https://github.com/kodi-addons # # 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, p...
38.951807
115
0.665636
780
6,466
5.329487
0.324359
0.058456
0.031994
0.028626
0.156844
0.113784
0.077219
0.043782
0.024056
0.024056
0
0.0299
0.244819
6,466
165
116
39.187879
0.821421
0.169193
0
0.225806
0
0
0.100149
0.008969
0
0
0
0
0
1
0.048387
false
0
0.104839
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79df34a92c6aa109d6fb09a1fbe24d44b829d071
3,440
py
Python
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
import pickle from flask import Flask, request, jsonify, session from flask_cors import CORS, cross_origin import sklearn from sklearn.decomposition import TruncatedSVD import pandas as pd import numpy as np ranks = [] app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' class Model: ...
23.888889
127
0.563081
540
3,440
3.514815
0.264815
0.014752
0.022129
0.017914
0.135933
0.103267
0.088514
0.088514
0.088514
0.088514
0
0.034924
0.250872
3,440
143
128
24.055944
0.701591
0.094477
0
0.092593
0
0
0.037428
0
0
0
0
0
0
1
0.027778
false
0
0.064815
0.009259
0.231481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dab135854cbf1898ed8a1808f3a10f5e2425b1b
235
py
Python
ccr/urls.py
nikhil96sher/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
12
2015-12-30T06:31:57.000Z
2017-12-26T01:42:18.000Z
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
null
null
null
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
5
2015-12-30T07:06:22.000Z
2019-04-24T05:46:01.000Z
from django.conf.urls import patterns,url from ccr import views urlpatterns=patterns( '', url(r'^$',views.main), url(r'^save/',views.save), url(r'^template/',views.template), url(r'^compile/',views.compile), url(r'^run/',views.run), )
21.363636
41
0.702128
37
235
4.459459
0.432432
0.121212
0
0
0
0
0
0
0
0
0
0
0.068085
235
11
42
21.363636
0.753425
0
0
0
0
0
0.135593
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8db06f6b303411c51b7e7ee7f461a4a3b7ef48b6
3,941
py
Python
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
2
2021-10-14T14:38:43.000Z
2022-03-21T16:21:06.000Z
"""Transmissivity classes """ import numpy as np import scipy.integrate as integrate_mod import spowtd.spline as spline_mod def create_transmissivity_function(parameters): """Create a transmissivity function Returns a callable object that returns transmissivity at a given water level. The class of t...
34.269565
73
0.664298
511
3,941
4.829746
0.295499
0.081037
0.082658
0.058347
0.200162
0.145867
0.091167
0.072528
0.035656
0.035656
0
0.01296
0.256026
3,941
114
74
34.570175
0.828786
0.274042
0
0.064516
0
0
0.088332
0.009815
0
0
0
0
0.016129
1
0.112903
false
0
0.048387
0
0.33871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db29e40510fc64c7655a39c604ac0d49c03c44b
795
py
Python
setup.py
Flowerowl/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
204
2015-01-03T14:29:43.000Z
2021-12-15T16:21:28.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
5
2015-05-14T10:34:24.000Z
2017-10-09T15:53:47.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
77
2015-01-13T01:44:16.000Z
2021-12-15T16:21:39.000Z
#encoding:utf-8 from setuptools import setup, find_packages import sys, os version = '0.4.3' setup(name='ici', version=version, description="方便程序员在terminal查询生词的小工具", long_description="""方便程序员在terminal查询生词的小工具""", classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_cla...
27.413793
95
0.632704
83
795
5.915663
0.759036
0.04888
0
0
0
0
0
0
0
0
0
0.00813
0.226415
795
28
96
28.392857
0.790244
0.108176
0
0
0
0
0.288543
0.062235
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8db3a905d27b52ca5f7ab31fe8496b3bc345779b
24,074
py
Python
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
4
2017-02-08T22:50:28.000Z
2018-05-29T07:29:47.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
81
2016-07-19T13:55:12.000Z
2021-05-07T15:03:05.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
13
2016-07-19T13:33:19.000Z
2019-04-25T08:04:15.000Z
""" Copyright (c) 2015 SONATA-NFV ALL RIGHTS RESERVED. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
43.533454
143
0.620005
3,160
24,074
4.537658
0.138608
0.012204
0.020922
0.007671
0.432039
0.40219
0.34577
0.316898
0.29758
0.290048
0
0.013361
0.272493
24,074
553
144
43.533454
0.805013
0.169436
0
0.378238
0
0.005181
0.157024
0.010645
0
0
0
0.001808
0
1
0.056995
false
0.005181
0.031088
0
0.173575
0.007772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db3db553de8307aa88c5fde47c1bd6250050be2
2,246
py
Python
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
2
2021-09-05T16:42:13.000Z
2021-09-09T18:41:14.000Z
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Union from discord import Member, User, Embed from discord.ext import commands from bot.main import NewCommand class Avatar(commands.Cog): def __init__(self, client): self.client = client @commands.command( name='avatar', cls=NewComman...
45.836735
269
0.638023
312
2,246
4.467949
0.355769
0.093257
0.111908
0.096844
0.283357
0.225251
0.160689
0.160689
0.160689
0.160689
0
0.01359
0.213713
2,246
49
270
45.836735
0.775764
0
0
0
0
0.073171
0.427681
0.199377
0
0
0.00356
0
0
1
0.04878
false
0
0.121951
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db5993b3ba09fcfb72c92ea6f0805e8ba07d24f
810
py
Python
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
print(isinstance(3, int)) lista = ['marina', 2, 'jujuba'] lista2 = [] for i in lista: if isinstance(i, str): lista2.append(i) print(lista2) myList = ['marina', 123, 9.5] print(isinstance(9.5, int)) #strings items = ['marina', 123, 9.5] print(isinstance(9.5, float)) str_items = ['abc', 'Abc','def', 'BBBB','...
18.837209
54
0.691358
128
810
4.257813
0.40625
0.12844
0.036697
0.040367
0.102752
0.102752
0.102752
0.102752
0
0
0
0.055241
0.128395
810
42
55
19.285714
0.716714
0.076543
0
0
0
0
0.173154
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db72819dbae785cf03bf81e31c9e2232cea71f2
1,283
py
Python
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
3
2021-03-13T14:07:25.000Z
2022-03-12T01:51:49.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
1
2021-09-12T15:03:12.000Z
2021-09-12T15:03:12.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
null
null
null
import os import logging APP_NAME = 'psycopg3-connpool' # Set to False to force reporting queries to share pool with non-reporting queries REPORTING_POOL = True POOL_MIN_SIZE = 1 POOL_MAX_SIZE = 10 POOL_MAX_IDLE = 60 POOL_STAT_SLEEP = 300 if not REPORTING_POOL: pool_max_size += 5 CURR_PATH = os.path.abspath(...
23.759259
84
0.731878
189
1,283
4.698413
0.433862
0.054054
0.054054
0.038288
0.051802
0.051802
0
0
0
0
0
0.01711
0.180047
1,283
53
85
24.207547
0.826996
0.137958
0
0.277778
0
0
0.251589
0.049955
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db868f6631d93b30648549794d251ef271627af
3,695
py
Python
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import mnist TRAIN_FILE = 'train.tfrecords' VALIDATION_FILE = 'train.tfrecords' def lenet(images): net = slim.layers.conv2d(images, 20, [5,5], scope='conv1') net = slim.layers.max_pool2d(net, [2,2...
39.731183
91
0.673884
518
3,695
4.673745
0.372587
0.02974
0.037588
0.015696
0.115655
0.074349
0.026435
0.026435
0.026435
0
0
0.024613
0.230311
3,695
92
92
40.163043
0.826653
0.381867
0
0
0
0
0.055732
0
0
0
0
0
0
1
0.066667
false
0
0.088889
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
8db9b3ff0897bce11d0fb7fc945e79ab18d1a305
2,635
py
Python
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
2
2017-12-27T17:38:18.000Z
2017-12-27T17:42:10.000Z
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # # Copyright 2017 - Ben Frankel # # ...
43.196721
83
0.447059
218
2,635
5.366972
0.59633
0.051282
0.022222
0.02735
0.05641
0.05641
0.05641
0
0
0
0
0.014085
0.407211
2,635
60
84
43.916667
0.734955
0.4
0
0.0625
0
0
0.466562
0.017309
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8db9c18f5e2082b747c4a03ec17f797125c796c9
605
py
Python
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
1
2015-05-04T09:28:14.000Z
2015-05-04T09:28:14.000Z
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from django.core.management import setup_environ import sys sys.path.append('/var/wsgi/maiznet') sys.path.append('/var/wsgi') from maiznet import settings setup_environ(settings) from maiznet.register.models import Presence wfile_announces = open("/var/wsgi/maiznet/tools/ml/emails_announces","w"...
23.269231
73
0.760331
90
605
5
0.444444
0.062222
0.093333
0.071111
0.36
0.271111
0.271111
0
0
0
0
0.001818
0.090909
605
25
74
24.2
0.816364
0.026446
0
0
0
0
0.19898
0.144558
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8dbbf348283d5d908174cdee1b01595e478b5b7d
11,798
py
Python
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
5
2019-08-17T07:53:02.000Z
2022-02-26T07:17:37.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
9
2019-06-28T07:36:10.000Z
2022-03-11T23:48:39.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
1
2020-04-14T12:48:40.000Z
2020-04-14T12:48:40.000Z
import torch import torch.nn as nn from program.graph_utils import * from helper import fc_block, LayerNormGRUCell # helper class for GraphEncoder class AttrProxy(object): """ Translates index lookups into attribute lookups. To implement some trick which able to use list of nn.Module in a nn.Module s...
32.323288
112
0.577386
1,356
11,798
4.651917
0.100295
0.082752
0.07546
0.051363
0.717185
0.683893
0.654883
0.627616
0.60558
0.594008
0
0.014564
0.342346
11,798
364
113
32.412088
0.798428
0.073233
0
0.647287
0
0
0.010682
0.001968
0
0
0
0
0
1
0.03876
false
0
0.015504
0.003876
0.093023
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dc3361defa92720863211b21b935ff651f2bf8d
2,185
py
Python
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
20
2021-04-13T06:23:33.000Z
2021-12-12T13:52:50.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
4
2021-04-17T23:17:36.000Z
2021-05-23T14:20:08.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
3
2021-04-23T00:01:45.000Z
2021-04-29T22:48:33.000Z
import pytest from baguette.app import Baguette from baguette.httpexceptions import MethodNotAllowed from baguette.responses import make_response from baguette.view import View @pytest.mark.asyncio async def test_view_create(): class TestView(View): async def get(self, request): return "GET" ...
25.406977
73
0.626545
249
2,185
5.405622
0.200803
0.071322
0.11367
0.035661
0.425706
0.392273
0.392273
0.343239
0.343239
0.343239
0
0.003715
0.26087
2,185
85
74
25.705882
0.829721
0
0
0.384615
0
0
0.066362
0
0
0
0
0
0.153846
1
0.015385
false
0
0.076923
0
0.276923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8dc61223149b3158489a5e9ccf76ac85256384c3
1,278
py
Python
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
import re def read_from_file(file_path): with open(file_path, 'r', encoding='utf-8') as f: content = f.read().splitlines() return content def write_to_file(corpus, dest_path): with open(dest_path, 'w', encoding='utf-8') as f: for item in corpus: f.write("%s\n" % item) def f...
29.72093
219
0.692488
154
1,278
5.5
0.383117
0.088548
0.028335
0.03778
0.219599
0.136954
0
0
0
0
0
0.014663
0.199531
1,278
42
220
30.428571
0.813294
0
0
0
0
0
0.259781
0.204225
0
0
0
0
0
1
0.129032
false
0
0.032258
0
0.225806
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8dc6bc8eb5fc6294a76cfdda9f4e036dfe3da0de
3,680
py
Python
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
1
2020-08-02T19:35:06.000Z
2020-08-02T19:35:06.000Z
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
"""Classes to access the `cltk_data/` directory tree""" __author__ = 'Stephen Margheim <stephen.margheim@gmail.com>' __license__ = 'MIT License. See LICENSE.' import os import site from cltk.cltk import CLTK_DATA_DIR from cltk.cltk.corpus.wrappers.logger import logger class CorpusError(Exception): pass class C...
30.92437
79
0.521467
381
3,680
4.834646
0.296588
0.071661
0.057003
0.068404
0.169381
0.144408
0.144408
0.144408
0.086319
0.086319
0
0.001645
0.339402
3,680
118
80
31.186441
0.756067
0.325
0
0.193548
0
0
0.073871
0.011819
0
0
0
0.008475
0
1
0.16129
false
0.016129
0.064516
0.064516
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dc7dd2aecae51adb10cd582c54a3498d17a6890
3,482
py
Python
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
2,159
2020-08-26T06:21:38.000Z
2022-03-31T16:13:46.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
1,482
2020-08-26T08:26:36.000Z
2022-03-31T23:11:19.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
592
2020-08-26T06:09:25.000Z
2022-03-31T00:37:41.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
46.426667
85
0.716255
449
3,482
5.400891
0.427617
0.059381
0.042062
0.037113
0.23134
0.211546
0.183505
0.141856
0.056082
0.056082
0
0.012044
0.213096
3,482
74
86
47.054054
0.872993
0.456634
0
0.052632
0
0
0.04882
0
0.026316
0
0
0
0.157895
1
0.052632
false
0
0.157895
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dc7f5a5c998df601fc1435d5e14c66275786aee
19,093
py
Python
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
import numpy as np import torch def fexp(x, p): return torch.sign(x)*(torch.abs(x)**p) def cuboid_inside_outside_function(X, shape_params, epsilon=0.25): """ Arguments: ---------- X: Tensor with size BxNxMx3, containing the 3D points, where B is the batch size and N is the number...
35.423006
79
0.59514
2,851
19,093
3.899684
0.109786
0.017809
0.039036
0.015291
0.520777
0.450711
0.369221
0.325418
0.320921
0.319032
0
0.035194
0.273765
19,093
538
80
35.488848
0.766623
0.467292
0
0.116883
0
0
0.00128
0
0
0
0
0
0.199134
1
0.069264
false
0
0.008658
0.004329
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dc85eed480d432c4899171384c4da5e6df7a236
6,206
py
Python
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/study-progs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
4
2020-01-02T08:38:55.000Z
2020-11-12T19:46:22.000Z
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
from PyQt5.QtOpenGL import * from OpenGL.GL import * from PyQt5 import QtWidgets, QtCore class FigureWidget(QGLWidget): """ Main OpenGL widget. """ def __init__(self, parent): super(FigureWidget, self).__init__() self.setMinimumSize(1280, 720) self.__rotate_angle_y = 70 sel...
24.626984
58
0.508701
824
6,206
3.667476
0.163835
0.046989
0.127068
0.137657
0.656188
0.603574
0.591661
0.568829
0.487756
0.487095
0
0.12086
0.34805
6,206
251
59
24.7251
0.62605
0.045923
0
0.548571
0
0
0.00289
0
0
0
0
0
0
1
0.04
false
0
0.017143
0
0.068571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dca2da6c8645bf9fdd19dabbdf05a6549cdbc55
4,220
py
Python
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
import numpy class Environment: def __init__(self, params) -> None: self.domain_value_labels = params["domain_value_labels"] self.observation_dim = params["observation_dim"] self.nr_agents = params["nr_agents"] self.nr_actions = params["nr_actions"] self.time_limit = params...
38.363636
116
0.638389
555
4,220
4.684685
0.225225
0.046154
0.069231
0.030769
0.250385
0.143846
0.113846
0.070769
0.070769
0.070769
0
0.005099
0.256398
4,220
109
117
38.715596
0.823454
0
0
0.086957
0
0
0.109352
0
0
0
0
0
0.072464
1
0.15942
false
0.014493
0.014493
0.072464
0.318841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dcb21a58f1185a80b68bc21fae747a3384bef5d
2,409
py
Python
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
import os import os.path as osp __all__ = [ 'pack_images', 'plot_and_pack', 'save_images' ] def pack_images(output, imgs, vmax=1024.0, archive=None, name="image_%d.png", **data): from scipy.misc import toimage try: os.makedirs(output) except: pass for i in range(imgs.shape[0]): args = dict...
26.184783
86
0.62308
384
2,409
3.835938
0.296875
0.032587
0.029871
0.032587
0.448744
0.395112
0.299389
0.253904
0.222675
0.184657
0
0.017672
0.201328
2,409
91
87
26.472527
0.747921
0
0
0.371429
0
0
0.105438
0.008717
0
0
0
0
0
1
0.042857
false
0.014286
0.142857
0
0.2
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd01c14c4996542c62dcb370ac32dc38f1f238a
3,922
py
Python
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
35
2019-05-03T00:30:31.000Z
2022-01-20T06:57:25.000Z
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
null
null
null
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
22
2020-05-13T21:20:02.000Z
2021-12-21T08:35:59.000Z
##Write a program that reads the contents of a text file. The program should create a diction- ##ary in which the key-value pairs are described as follows: ##• Key. The keys are the individual words found in the file. ##• Values. Each value is a list that contains the line numbers in the file where the word ##(the key)...
56.028571
120
0.685365
647
3,922
4.123648
0.261206
0.024363
0.011244
0.016492
0.033733
0.016492
0
0
0
0
0
0.007923
0.22769
3,922
70
121
56.028571
0.872235
0.631311
0
0
0
0
0.175451
0.041877
0
0
0
0
0
1
0.102564
false
0
0
0
0.153846
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd45ea0a29eda5d4c2a5b4693e02c4c67831b90
4,151
py
Python
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import queue import threading import typing from .constants import S_END_OF_CMD import serial class AbstractSerialNex(object): INCOMING_BUFFER_SIZE = 1024 # Seems the Nextion buffer size, mentioned in official docs MIN_SIZE_READ = len(S_END_...
30.07971
119
0.63286
539
4,151
4.669759
0.374768
0.051649
0.041716
0.017878
0.116806
0.054033
0
0
0
0
0
0.006977
0.274874
4,151
137
120
30.29927
0.829236
0.256083
0
0.138889
0
0
0.001842
0
0
0
0
0.007299
0
1
0.180556
false
0.013889
0.083333
0.041667
0.472222
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd4c7ac514b07c8936d2d8818ce12d988742cca
1,762
py
Python
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Compute essential stats(freq/tf-idf) on a corpus Dependencies: pandas == 0.23 gensim == 3.8 """ __author__ = "Mike Shuser" import pickle import numpy as np import pandas as pd from gensim.models import TfidfModel from gensim.corpora import Dictionary DATA_SRC = "../processed_corp...
28.419355
76
0.586833
228
1,762
4.372807
0.469298
0.060181
0.018054
0.024072
0
0
0
0
0
0
0
0.01045
0.293984
1,762
61
77
28.885246
0.790997
0.116345
0
0
0
0
0.138979
0.069166
0
0
0
0
0
1
0.027027
false
0
0.135135
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd5699562650669f491fdd18d9c1edc25f11acb
2,937
py
Python
app/utils/images/linalg/utils.py
vinaykakkad/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:08:24.000Z
2021-11-13T11:08:24.000Z
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
null
null
null
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:07:54.000Z
2021-11-13T11:07:54.000Z
import math def print_matrix(matrix): """ Function to print a matrix """ for row in matrix: for col in row: print("%.3f" % col, end=" ") print() def rows(matrix): """ Returns the no. of rows of a matrix """ if type(matrix) != list: return 1 r...
17.908537
69
0.520259
410
2,937
3.690244
0.173171
0.074025
0.043622
0.051553
0.35228
0.170522
0.076669
0.076669
0.076669
0.076669
0
0.014316
0.357848
2,937
163
70
18.018405
0.787911
0.171604
0
0.207792
0
0
0.002224
0
0
0
0
0
0
1
0.155844
false
0
0.012987
0
0.350649
0.038961
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd7751b946690a5f79059a3575a07f2c9cb06b8
1,443
py
Python
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
import hashlib from datetime import datetime def salsa_20_xor_bytes(): pass def n_string(string, n): hash = hashlib.sha512() hash.update(string.encode('utf-8')) return hash.digest()[:n] def encryption(iv: str, key: str, filename: str) -> bool: try: iv = n_string(iv, 8) key = n_...
26.722222
65
0.579349
175
1,443
4.651429
0.297143
0.081081
0.078624
0.055283
0.503686
0.385749
0.385749
0.304668
0.208845
0.208845
0
0.022312
0.316701
1,443
53
66
27.226415
0.803245
0
0
0.439024
0
0
0.015939
0
0
0
0
0
0
1
0.097561
false
0.02439
0.04878
0
0.268293
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dd86a18a4119d3adc2f367d73fae1d910601d27
3,747
py
Python
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
6
2019-07-22T01:56:10.000Z
2021-12-10T05:29:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
677
2019-04-29T10:23:49.000Z
2022-03-22T12:01:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
8
2019-06-13T10:32:17.000Z
2020-12-09T15:08:40.000Z
""" This file contains tests on the creation of directories """ from __future__ import absolute_import, division, print_function import time import os import shutil import unittest from fitbenchmarking.utils.create_dirs import (figures, group_results, results, support_pa...
32.868421
79
0.662397
446
3,747
5.226457
0.174888
0.1716
0.083655
0.075504
0.484341
0.443157
0.392535
0.286572
0.204204
0.204204
0
0.001075
0.255137
3,747
113
80
33.159292
0.83411
0.122765
0
0.237288
0
0
0.027273
0
0
0
0
0
0.20339
1
0.135593
false
0
0.101695
0
0.254237
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8dd963b267b7e2d742f71f63075d5795850791fb
1,173
py
Python
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
import os from urllib.parse import urlparse from fastapi import FastAPI, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse, Response from fastapi.staticfiles import StaticFiles from typing import Optional import api app = FastAPI() app.mount("/files", StaticFi...
24.957447
77
0.672634
134
1,173
5.820896
0.432836
0.05641
0.046154
0.053846
0.082051
0.082051
0
0
0
0
0
0
0.208014
1,173
46
78
25.5
0.839612
0
0
0.135135
0
0
0.052856
0
0
0
0
0
0
1
0
false
0
0.216216
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8ddb9586e5b11a1deeec483163fc0ec9a71544d9
791
py
Python
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy import DateTime from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey class groupingDeviceMappingTable(): def __init__(self, metadata: MetaData): self.groupingDeviceMappingTable = Table('GroupingDeviceMapping', metadata, ...
56.5
111
0.548673
57
791
7.508772
0.438596
0.121495
0.140187
0.093458
0.182243
0.182243
0.182243
0
0
0
0
0
0.376738
791
13
112
60.846154
0.868154
0
0
0
0
0
0.085967
0.026549
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8ddb98d57d427980a09a0ebd40ba75c59e9df8f6
802
py
Python
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
25
2015-04-29T13:10:22.000Z
2019-03-18T09:45:29.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
330
2015-03-04T09:06:38.000Z
2019-06-11T10:31:54.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
16
2015-03-23T08:00:46.000Z
2019-02-21T11:14:47.000Z
import sys import numpy from distutils.version import LooseVersion assert sys.version_info >= (3, 5) assert LooseVersion(numpy.version.version) >= LooseVersion('1.16'), 'nutils requires numpy 1.16 or higher, got {}'.format(numpy.version.version) version = '8.0a0' version_name = None long_version = ('{} "{}"' if versi...
19.095238
144
0.599751
86
802
5.465116
0.686047
0.119149
0.080851
0
0
0
0
0
0
0
0
0.024116
0.224439
802
41
145
19.560976
0.731511
0.021197
0
0
0
0
0.320562
0
0
0
0
0
0.055556
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ddd126c99d8feae03f19cc66e85504d9442c512
1,710
py
Python
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
# http://github.com/timestocome # data # https://www.cs.toronto.edu/~kriz/cifar.html import numpy as np import pickle import matplotlib.pyplot as plt ################################################################################### # read in data ###############################################################...
21.375
85
0.489474
225
1,710
3.666667
0.44
0.021818
0.029091
0.043636
0.113939
0.113939
0.113939
0.113939
0.113939
0.113939
0
0.037798
0.288304
1,710
80
86
21.375
0.640099
0.159649
0
0.097561
0
0
0.062748
0.017474
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8ddf6ed4392a1c97342e5972d833a191e47b53d0
826
py
Python
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
import traceback from fastapi import Request from fastapi.responses import PlainTextResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR def internal_server_exception_handler( _: Request, exception: Exception ) -> PlainTextResponse: """ Return the traceback of the internal server ...
27.533333
62
0.6477
85
826
6.058824
0.423529
0.135922
0.147573
0.081553
0.100971
0
0
0
0
0
0
0.01964
0.260291
826
29
63
28.482759
0.823241
0.060533
0
0
0
0
0.130208
0
0
0
0
0
0
1
0.04
false
0
0.16
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8de0588b8d216183bd189807faae11d1037b92e8
11,025
py
Python
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
177
2020-04-14T01:16:26.000Z
2022-03-28T03:29:28.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
10
2020-05-06T13:42:47.000Z
2021-02-06T13:35:27.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
23
2020-04-14T05:41:25.000Z
2021-12-21T02:43:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ helper class that supports empty tensors on some nn functions. Ideally, add support directly in PyTorch to empty tensors in those functions. This can be removed once https://github.com/pytorch/pytorch/issues/12013 is implemented """ import m...
31.590258
88
0.581043
1,372
11,025
4.478863
0.169825
0.039056
0.014321
0.031245
0.403255
0.358503
0.326932
0.279414
0.230269
0.199349
0
0.017308
0.31873
11,025
348
89
31.681034
0.800825
0.080363
0
0.355872
0
0
0.030707
0
0
0
0
0.002874
0.02847
1
0.064057
false
0
0.021352
0
0.192171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8de07753d8112e17484865d9eb71f8e6d5d640f0
3,133
py
Python
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ api access for google sheets (and friends) Usage: googapis auth (sheets|docs|drive)... [options] [--drive-scope=<SCOPE>...] Examples: googapis auth sheets Options: --store-file=<PATH>... write to a specific store file -n --readonly set the readonly scope -...
27.973214
88
0.551867
334
3,133
5.053892
0.332335
0.052133
0.038507
0.031991
0.10782
0.10782
0.075829
0.075829
0.075829
0
0
0.002425
0.341845
3,133
111
89
28.225225
0.816198
0.240983
0
0.061538
0
0
0.138033
0.026171
0
0
0
0.009009
0
1
0.076923
false
0
0.092308
0.015385
0.246154
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8de1b7d242ca78d038847d03a2a25db0ebb7c8e2
517
py
Python
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def findPermutation(self, s: str) -> List[int]: ans = [i for i in range(1, len(s) + 2)] # for each D* group (s[i..j]), reverse ans[i..j + 1] i = -1 j = -1 def getNextIndex(c: chr, start: int) -> int: for i in range(start, len(s)): if s[i] == c: return i ...
22.478261
56
0.477756
86
517
2.872093
0.360465
0.040486
0.060729
0.072874
0.052632
0
0
0
0
0
0
0.029499
0.344294
517
22
57
23.5
0.699115
0.096712
0
0
0
0
0.004301
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8de62c242c479afad43ca797ee2384f022ddfbb5
10,112
py
Python
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
import numpy as np from itertools import product from tensorflow.keras.models import load_model from sklearn.feature_selection import SelectKBest, f_regression from joblib import load import random as rnd class Gridex: def __init__(self, target, name, ext, feat, steps, th, adap = None): print("GridEx -"...
36.114286
153
0.426721
1,177
10,112
3.595582
0.15633
0.02552
0.010633
0.011815
0.221408
0.174386
0.149811
0.139414
0.114367
0.095463
0
0.015963
0.442445
10,112
280
154
36.114286
0.734658
0.005142
0
0.222222
0
0
0.034531
0.008459
0
0
0
0
0
1
0.059524
false
0
0.02381
0.003968
0.142857
0.039683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8de91facddbd7d35bd7ba7937ee91b396276006a
630
py
Python
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
6
2020-04-07T21:29:42.000Z
2021-06-08T00:23:53.000Z
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
import xmltodict from browsers import load_firefox GOOGLE_SITEMAP_URL = "https://careers.google.com/jobs/sitemap" def get_xml(): browser = load_firefox() browser.get(GOOGLE_SITEMAP_URL) jobs_data = xmltodict.parse(browser.page_source) browser.quit() return jobs_data def get_jobs(): jobs_dat...
21
62
0.646032
82
630
4.780488
0.426829
0.081633
0.081633
0
0
0
0
0
0
0
0
0
0.246032
630
29
63
21.724138
0.825263
0
0
0
0
0
0.106349
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8deb27f0761e2aaaa60c41fe1b1bca80aaa1cfe7
9,162
py
Python
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
# Testing Upload image feature import tempfile import os from PIL import Image # ---------------- from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework import test from rest_framework.test import APIClient ...
35.238462
79
0.649967
1,092
9,162
5.330586
0.211538
0.035733
0.045353
0.037794
0.48033
0.427074
0.377083
0.26748
0.226422
0.226422
0
0.015703
0.235429
9,162
259
80
35.374517
0.815275
0.119625
0
0.337079
0
0
0.078878
0.003271
0
0
0
0
0.151685
1
0.11236
false
0.016854
0.061798
0
0.219101
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8dee03510c0ac2b9c5008f158836e0b55eedc40e
1,666
py
Python
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
import requests from lxml import html import os import sys sys.path.append("..") header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"} def adafruitScrape(link): link = link.strip() response = requests.get(link,headers=head...
37.863636
141
0.647659
217
1,666
4.967742
0.414747
0.06679
0.037106
0.03154
0.346939
0.346939
0.293135
0.293135
0.293135
0.293135
0
0.025881
0.165066
1,666
44
142
37.863636
0.749101
0
0
0.315789
0
0.026316
0.25075
0.121176
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8def1994e3ba6e7b2d4593ea911ee13f3f4389a8
5,288
py
Python
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
1
2021-12-04T18:09:44.000Z
2021-12-04T18:09:44.000Z
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
import pdb import subprocess from functools import partial, wraps from math import prod from pathlib import Path from pprint import pprint from string import ( ascii_lowercase, digits as ascii_digits, ) from typing import Any, Callable, List, Iterable, Optional, Union from toolz import ( # type: ignore com...
27.398964
79
0.644667
757
5,288
4.373844
0.277411
0.010873
0.016913
0.021746
0.179704
0.15977
0.144669
0.128058
0.128058
0.054364
0
0.006359
0.22674
5,288
192
80
27.541667
0.803375
0.310893
0
0
0
0
0.027778
0
0
0
0
0
0
1
0.164948
false
0.010309
0.092784
0.051546
0.443299
0.030928
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8defd7400006559bffbbff0680b35455d86ade71
2,665
py
Python
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
76
2015-08-31T18:34:14.000Z
2021-10-16T13:33:52.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
41
2015-09-02T01:52:55.000Z
2022-02-28T21:50:31.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
43
2015-09-02T14:41:37.000Z
2021-12-01T16:52:08.000Z
#!/usr/bin/python # # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
32.5
132
0.641651
322
2,665
5.173913
0.465839
0.036014
0.015606
0.019208
0
0
0
0
0
0
0
0.009935
0.244653
2,665
81
133
32.901235
0.817685
0.34409
0
0
0
0
0.264019
0
0
0
0
0
0
1
0.022222
false
0
0.111111
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df00c7b6abbb17febb26deca50443ccd300a865
4,763
py
Python
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
# taken largely from https://github.com/ianvonseggern1/note-prediction from pydub import AudioSegment import pydub.scipy_effects import numpy as np import scipy import matplotlib.pyplot as plt from solo_generation_esac import * from utils import frequency_spectrum, \ calculate_distance, \ classify_note_attemp...
35.81203
89
0.664707
635
4,763
4.8
0.332283
0.059055
0.024934
0.013123
0.122047
0.059055
0.043307
0.019685
0
0
0
0.014856
0.236826
4,763
133
90
35.81203
0.823659
0.266429
0
0.075949
0
0
0.084223
0
0
0
0
0
0
1
0.037975
false
0
0.088608
0
0.164557
0.164557
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df01847a7b4b8bed8f795d24425994dc853d3c0
2,720
py
Python
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
119
2020-10-06T16:27:05.000Z
2022-03-28T00:27:18.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
275
2020-10-07T22:32:53.000Z
2022-03-31T15:57:44.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
30
2020-10-08T23:00:01.000Z
2022-02-25T17:04:22.000Z
# Copyright 2021 The Trieste Contributors # # 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...
34
99
0.758088
364
2,720
5.456044
0.357143
0.055388
0.022155
0.032226
0.329305
0.249748
0.249748
0.215509
0.215509
0.215509
0
0.012079
0.147794
2,720
79
100
34.43038
0.844694
0.20625
0
0.204545
0
0
0.01352
0
0
0
0
0
0.068182
1
0.090909
false
0
0.295455
0
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df1c6f7606169d28d7470f55794f4e8e7d28814
493
py
Python
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
4
2020-06-19T20:51:36.000Z
2020-07-05T17:12:56.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
10
2020-04-24T09:05:52.000Z
2020-12-17T14:00:04.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
2
2020-10-22T18:12:52.000Z
2020-10-28T16:25:07.000Z
from compas_cloud import Proxy import time print("\n starting a new Proxy and by default starts a server in background") proxy = Proxy(background=True) time.sleep(3) print("\n restarting the background server and open a new one in a prompt console") proxy.background = False proxy.restart() time.sleep(3) print("\n ch...
24.65
83
0.760649
83
493
4.506024
0.46988
0.064171
0.106952
0.120321
0.128342
0
0
0
0
0
0
0.009434
0.139959
493
20
84
24.65
0.872642
0
0
0.266667
0
0
0.48583
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
8df1ebaaebb6455a233f57c92e803cc41ed159be
3,871
py
Python
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
#-----------------SUPERMARKET MANAGEMENT SYSTEM-------------------- items = [] while True: print('------------------Welcome to the supermarket------------------') print('1. View items\n2. Add items for sale\n3. Purchase items\n4. Search items \n5. Edit items\n6. Exit') choice = int(input('Enter the number o...
40.322917
110
0.453888
386
3,871
4.520725
0.261658
0.045845
0.029799
0.032092
0.358739
0.34957
0.34957
0.34957
0.316332
0.270487
0
0.005773
0.373547
3,871
95
111
40.747368
0.713814
0.01705
0
0.470588
0
0.011765
0.353838
0.085699
0
0
0
0
0
1
0
false
0
0
0
0
0.352941
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df2385af3f40cba7575f1c6c89a8a66c7739db0
23,993
py
Python
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
1
2020-06-18T21:11:57.000Z
2020-06-18T21:11:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
87
2019-09-30T08:28:00.000Z
2020-12-03T08:39:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
null
null
null
"""Contains the links that can be downloaded.""" from hashlib import sha1 import logging import os from pathlib import Path import re import warnings from bs4 import BeautifulSoup from requests import Response import unidecode from vcm.core.exceptions import AlgorithmFailureError, MoodleError, ResponseError from vcm....
30.681586
98
0.578919
2,654
23,993
5.100603
0.148078
0.03472
0.040999
0.025116
0.365812
0.3175
0.288543
0.225678
0.182611
0.159637
0
0.003133
0.321635
23,993
781
99
30.720871
0.828582
0.08415
0
0.339518
0
0
0.115536
0.012349
0
0
0
0
0.011132
1
0.072356
false
0.003711
0.03154
0.001855
0.25974
0.003711
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df2655a19e924bcd99a2911fc97761b628649f1
7,472
py
Python
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
5
2021-04-29T21:07:18.000Z
2021-09-29T08:46:08.000Z
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
null
null
null
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
1
2018-04-07T12:26:21.000Z
2018-04-07T12:26:21.000Z
def main(): import pipedef pipe = pipedef.Pipeline() # ============================== GLOBAL PROPERTIES ================================= # global pipeline config pipe.config = { '_pipeline:_edge': {'capacity': 5}, } # ============================== INPUT FRAME LIST =============...
43.44186
111
0.636777
801
7,472
5.682896
0.235955
0.043058
0.04855
0.031634
0.321837
0.213093
0.18717
0.13181
0.11116
0.11116
0
0.009469
0.208512
7,472
171
112
43.695906
0.76023
0.207441
0
0.179245
0
0
0.48917
0.233755
0
0
0
0
0
1
0.009434
false
0
0.018868
0
0.037736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df37da869fe9f71df32fa2732b4a908910d89ba
1,918
py
Python
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template import pandas as pd import joblib # Declare a Flask app app = Flask(__name__) def model_predict(i): if i==1: return "Normal" else: return "Abnormal" @app.route('/', methods=['GET', 'POST']) # Main function here def main(): # If a form...
38.36
316
0.67049
232
1,918
5.306034
0.409483
0.10723
0.136474
0.064988
0.080422
0
0
0
0
0
0
0.011221
0.210115
1,918
49
317
39.142857
0.80132
0.120438
0
0.0625
0
0
0.165772
0.026834
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8df499879e2e02643bddc0414a78f011539ed93e
424
py
Python
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
1
2020-06-26T13:28:43.000Z
2020-06-26T13:28:43.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
7
2021-11-18T19:46:08.000Z
2022-03-12T01:03:01.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
null
null
null
import unittest from dcp.leetcode.str.find_and_replace import findReplaceString class Test_FindAndReplace(unittest.TestCase): def test_case1(self): str_in = "jjievdtjfb" indexes, sources, targets = [4,6,1], ["md","tjgb","jf"], ["foe","oov","e"] actual = findReplaceString(str_in...
24.941176
82
0.639151
47
424
5.638298
0.723404
0.037736
0.158491
0
0
0
0
0
0
0
0
0.012346
0.235849
424
17
83
24.941176
0.805556
0
0
0
0
0
0.082353
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
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
8df4c2e64e992b855a9e6d5e81533c702e3e464a
5,606
py
Python
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
import json from abc import ABCMeta, abstractmethod import six from moto.sts.models import ACCOUNT_ID @six.add_metaclass(ABCMeta) class TestConfig: """Provides the interface to use for creating test configurations. This class will provide the interface for what information will be needed for the SageMa...
29.197917
87
0.567428
489
5,606
6.343558
0.278119
0.058027
0.056738
0.040297
0.554803
0.508382
0.357511
0.357511
0.341715
0.235977
0
0.010339
0.327149
5,606
191
88
29.350785
0.812036
0.097217
0
0.506849
0
0.006849
0.202832
0.097926
0
0
0
0
0
1
0.136986
false
0.034247
0.027397
0.082192
0.294521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df6d2cc3ef1b38f8dcb2b9e634dc513aa241c09
5,748
py
Python
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
import base64 import datetime, pytz from re import X import io from matplotlib import pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from scipy import spatial from skyfield.api import load, Star from skyfield.projections import build_stereographic_projection from ..astro.angdi...
33.034483
108
0.59499
842
5,748
3.935867
0.325416
0.021726
0.016898
0.020519
0.028968
0.013881
0
0
0
0
0
0.066365
0.268615
5,748
174
109
33.034483
0.721931
0.03723
0
0.06015
0
0
0.050838
0.016946
0
0
0
0
0
1
0.030075
false
0
0.120301
0
0.18797
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8df72be42a3ea83a7f917562f0ba78dd4aaeb72c
884
py
Python
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
2
2021-01-11T16:13:40.000Z
2022-03-02T02:03:46.000Z
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
# 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Ent...
32.740741
371
0.618778
125
884
4.376
0.544
0.025594
0.047532
0.051188
0
0
0
0
0
0
0
0.01634
0.307692
884
26
372
34
0.877451
0.469457
0
0.210526
0
0
0.113978
0
0
0
0
0
0
1
0
false
0
0
0
0
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
8dfe8011c2244a0ed87994c9abfc3f5206f12836
2,371
py
Python
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
47.42
118
0.657107
326
2,371
4.699387
0.503067
0.039164
0.02154
0.020888
0.016971
0
0
0
0
0
0
0.013557
0.222269
2,371
49
119
48.387755
0.817245
0.577394
0
0
0
0
0.070295
0
0
0
0
0
0.0625
1
0.125
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c0031226e3df4483ca669793e8975e7761b6bcd
1,502
py
Python
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
from pybithumb.core import * from pandas import DataFrame import pandas as pd import datetime import math class Bithumb: @staticmethod def _convert_unit(unit): try: unit = math.floor(unit * 10000) / 10000 return unit except: return 0 ...
26.350877
117
0.515313
156
1,502
4.858974
0.50641
0.118734
0.094987
0.060686
0.155673
0.079156
0
0
0
0
0
0.012141
0.396804
1,502
56
118
26.821429
0.824503
0.159787
0
0.342857
0
0
0.040323
0
0
0
0
0
0
1
0.085714
false
0
0.142857
0
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c05545589141fb82f106641f89a15eb131c03e9
301
py
Python
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img = cv2.imread('city2.jpg',0) rows,cols = img.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),90,1) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow('image cv2',dst) cv2.waitKey(0) # to save the image # cv2.imwrite('image1.png',img) cv2.destroyAllWindows()
15.05
49
0.704319
51
301
4.156863
0.588235
0.056604
0
0
0
0
0
0
0
0
0
0.07197
0.122924
301
19
50
15.842105
0.731061
0.156146
0
0
0
0
0.072
0
0
0
0
0
0
1
0
false
0
0.222222
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
5c077ecb8a5382d71c5438b3e59abd26f0bd8969
1,160
py
Python
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
34.117647
74
0.649138
154
1,160
4.831169
0.655844
0.080645
0.034946
0.043011
0
0
0
0
0
0
0
0.012673
0.251724
1,160
33
75
35.151515
0.84447
0.662069
0
0
0
0
0.159509
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c0b1af22a5316e17602db8cfb4f8b44f7bf9111
781
py
Python
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
10
2015-04-09T02:18:48.000Z
2021-02-22T09:27:08.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
2
2017-04-16T14:07:59.000Z
2020-01-31T02:25:53.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
5
2015-04-09T02:20:45.000Z
2022-01-17T10:38:10.000Z
from fit.messages import Message from fit.types.extended import Sport, WorkoutCapabilities, MessageIndex, \ Intensity, WktStepTarget, WktStepDuration from fit.types.general import UInt16, String, UInt32 class Workout(Message): msg_type = 26 sport = Sport(4) capabilities = WorkoutCapabilities(5) n...
27.892857
74
0.724712
95
781
5.768421
0.515789
0.038321
0.043796
0.091241
0
0
0
0
0
0
0
0.052381
0.193342
781
27
75
28.925926
0.81746
0.044814
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.952381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
5c1434a7013b9bee370455ab2802787652471f6d
2,158
py
Python
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
1
2022-03-28T09:28:25.000Z
2022-03-28T09:28:25.000Z
import sys from hummingbot.core.api_throttler.data_types import RateLimit # REST endpoints BASE_PATH_URL = "https://api.kucoin.com" PUBLIC_WS_DATA_PATH_URL = "/api/v1/bullet-public" PRIVATE_WS_DATA_PATH_URL = "/api/v1/bullet-private" TICKER_PRICE_CHANGE_PATH_URL = "/api/v1/market/allTickers" EXCHANGE_INFO_PATH_URL = ...
43.16
108
0.810009
333
2,158
4.798799
0.231231
0.09199
0.110138
0.067584
0.409887
0.313517
0.313517
0.283479
0.283479
0.257822
0
0.020823
0.087581
2,158
49
109
44.040816
0.790757
0.006487
0
0
0
0
0.155462
0.085901
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
5c147b1581c9e42ed038ee8839eff0846fb1f39f
3,586
py
Python
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
1,110
2016-06-02T23:58:41.000Z
2020-11-29T07:24:20.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
49
2016-08-14T22:58:41.000Z
2020-07-17T17:59:56.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
300
2016-06-13T23:06:55.000Z
2020-11-18T22:42:55.000Z
from PIL import Image import numpy as np from tqdm import tqdm def histogram_equalization(x): hist, bins = np.histogram(x.flatten(), 255, [0, 256]) cdf = hist.cumsum() cdf_m = np.ma.masked_equal(cdf,0) cdf_m = (cdf_m - cdf_m.min())*255.0/(cdf_m.max()-cdf_m.min()) cdf = np.ma.filled(cdf_m,0).astyp...
38.148936
123
0.583101
639
3,586
3.214398
0.189358
0.037488
0.029211
0.020448
0.448393
0.361246
0.327167
0.307692
0.307692
0.287244
0
0.042259
0.234523
3,586
93
124
38.55914
0.706011
0
0
0.225
0
0
0.013385
0
0
0
0
0
0
1
0.075
false
0
0.0375
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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