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
7a33a8a8695860ddb6163f6f5857cdcec9984aa3
822
py
Python
cmskit/recipes/menu.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
1
2015-09-28T10:10:34.000Z
2015-09-28T10:10:34.000Z
cmskit/recipes/menu.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
null
null
null
cmskit/recipes/menu.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from django.utils.translation import get_language from cms.menu_bases import CMSAttachMenu from menus.base import Menu, NavigationNode from menus.menu_pool import menu_pool from cmskit.recipes.models import Recipe class RecipesMenu(CMSAtt...
27.4
66
0.600973
86
822
5.593023
0.569767
0.049896
0.06237
0.108108
0.133056
0
0
0
0
0
0
0.001805
0.326034
822
29
67
28.344828
0.866426
0.025547
0
0
0
0
0.015019
0
0
0
0
0
0
1
0.045455
false
0.045455
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
7a33ddcfa2b3e722458ff7163d0ad438baf597ed
6,218
py
Python
code/results-past/figure-3-b.py
shaifulcse/codemetrics-with-context-replication
9f0fe6e840d204b70efc9610e6887a64f9a51ce7
[ "MIT" ]
null
null
null
code/results-past/figure-3-b.py
shaifulcse/codemetrics-with-context-replication
9f0fe6e840d204b70efc9610e6887a64f9a51ce7
[ "MIT" ]
null
null
null
code/results-past/figure-3-b.py
shaifulcse/codemetrics-with-context-replication
9f0fe6e840d204b70efc9610e6887a64f9a51ce7
[ "MIT" ]
null
null
null
""" """ import re import os import matplotlib.pyplot as plt import re import numpy as np import math from scipy.stats.stats import pearsonr from scipy.stats.stats import kendalltau import scipy from matplotlib.patches import Rectangle from scipy import stats import seaborn as sns import pandas as pd sns.set(font_scal...
24.772908
122
0.603731
811
6,218
4.499383
0.240444
0.055906
0.06906
0.075363
0.257605
0.199507
0.140861
0.129076
0.10359
0.10359
0
0.027546
0.246864
6,218
250
123
24.872
0.751655
0.06063
0
0.19186
0
0
0.062069
0.011897
0
0
0
0
0
1
0.052326
false
0
0.075581
0
0.145349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a34367f5bced4609356f0cde39e3a13b062d891
4,585
py
Python
ppmi_tweet_collector.py
wolferobert3/uweat_icsc_2022
172f4cdd737f7405bdc83357e3dabeee94251efc
[ "MIT" ]
null
null
null
ppmi_tweet_collector.py
wolferobert3/uweat_icsc_2022
172f4cdd737f7405bdc83357e3dabeee94251efc
[ "MIT" ]
null
null
null
ppmi_tweet_collector.py
wolferobert3/uweat_icsc_2022
172f4cdd737f7405bdc83357e3dabeee94251efc
[ "MIT" ]
null
null
null
import pandas as pd from os import path, listdir import pickle from nltk import word_tokenize import json import re import emoji import string TARGET_STATE = 'OR' source_dir = f'' twitter_files = [i for i in list(listdir(source_dir)) if TARGET_STATE in i] punctuation_list = list(string.punctuation) + ['....
39.188034
144
0.638168
694
4,585
3.920749
0.18732
0.114664
0.057332
0.088203
0.362367
0.332598
0.284454
0.209849
0.169055
0.168688
0
0.010261
0.213522
4,585
117
145
39.188034
0.742651
0.023555
0
0.102273
0
0.011364
0.118173
0.088573
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
7a38fc376b5e5fd6f4153aa152aa553785289bf1
911
py
Python
all/054.py
brenodt/Desafio-365-dias-programando
6c899b4f2e314b9a3a75734f39509a665016e206
[ "MIT" ]
null
null
null
all/054.py
brenodt/Desafio-365-dias-programando
6c899b4f2e314b9a3a75734f39509a665016e206
[ "MIT" ]
null
null
null
all/054.py
brenodt/Desafio-365-dias-programando
6c899b4f2e314b9a3a75734f39509a665016e206
[ "MIT" ]
null
null
null
from collections import OrderedDict # OrderedDict deve ser importado! def enesimo_nao_repetido(entrada: str, n: int): # Cria o dicionário usando OrderedDict e inicializa # cada chave com o valor 0 dicionario = OrderedDict.fromkeys(entrada, 0) # Conta a ocorrência de cada letra for letra in entr...
28.46875
70
0.668496
130
911
4.546154
0.615385
0.060914
0.106599
0.07445
0
0
0
0
0
0
0
0.010324
0.255763
911
32
71
28.46875
0.861357
0.333699
0
0
0
0
0.078859
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a4693933697b877ba83ef27e07a84e5fbb283c6
884
py
Python
motorway/contrib/amazon_kinesis/intersections.py
alesdotio/motorway
8514f9e6494c9e55576705b72dda306c175e62dc
[ "Apache-2.0" ]
1
2016-09-16T14:51:59.000Z
2016-09-16T14:51:59.000Z
motorway/contrib/amazon_kinesis/intersections.py
alesdotio/motorway
8514f9e6494c9e55576705b72dda306c175e62dc
[ "Apache-2.0" ]
null
null
null
motorway/contrib/amazon_kinesis/intersections.py
alesdotio/motorway
8514f9e6494c9e55576705b72dda306c175e62dc
[ "Apache-2.0" ]
1
2020-12-12T17:35:55.000Z
2020-12-12T17:35:55.000Z
import json import boto.kinesis from motorway.intersection import Intersection class KinesisInsertIntersection(Intersection): stream_name = None def __init__(self, **kwargs): super(KinesisInsertIntersection, self).__init__(**kwargs) self.conn = boto.kinesis.connect_to_region(**self.connection...
29.466667
104
0.640271
93
884
5.817204
0.580645
0.073937
0.051756
0
0
0
0
0
0
0
0
0.001546
0.2681
884
29
105
30.482759
0.834621
0.087104
0
0
0
0
0.110834
0.031133
0
0
0
0
0.047619
1
0.142857
false
0
0.142857
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a4758fe075141b33a34759f92db71968b493b1d
3,034
py
Python
middle-tier/app/interact_contract.py
Surfndez/Microsoft-Identities-on-the-Ethereum-Blockchain
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
[ "MIT" ]
4
2018-07-23T22:01:16.000Z
2020-09-22T11:15:39.000Z
middle-tier/app/interact_contract.py
Surfndez/Microsoft-Identities-on-the-Ethereum-Blockchain
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
[ "MIT" ]
1
2021-01-21T13:15:16.000Z
2021-01-21T13:15:16.000Z
middle-tier/app/interact_contract.py
Surfndez/Microsoft-Identities-on-the-Ethereum-Blockchain
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
[ "MIT" ]
5
2018-07-20T00:23:11.000Z
2020-09-22T11:15:47.000Z
import json import time import web3 import sha3 from os import environ from web3 import Web3, HTTPProvider from web3.contract import ConciseContract from contract import IDENTITY_STORE_JSON API_KEY = environ.get('API_KEY') PRIVATE_KEY = environ.get('PRIVATE_KEY') CONTRACT_ADDRESS = environ.get('CONTRACT_ADDRESS') ...
30.34
83
0.627884
343
3,034
5.387755
0.35277
0.018939
0.012987
0.036797
0.055195
0.055195
0.055195
0
0
0
0
0.016856
0.276533
3,034
99
84
30.646465
0.825057
0.060976
0
0.027027
0
0
0.111228
0
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.216216
0.094595
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a4900d73a1ad7f743a5146f147752cc74077496
2,227
py
Python
startup/90-functions.py
NSLS-II-XPD-tomo/profile_collection
a960faa6bd24dc87bd094399f2124f80159207be
[ "BSD-3-Clause" ]
null
null
null
startup/90-functions.py
NSLS-II-XPD-tomo/profile_collection
a960faa6bd24dc87bd094399f2124f80159207be
[ "BSD-3-Clause" ]
null
null
null
startup/90-functions.py
NSLS-II-XPD-tomo/profile_collection
a960faa6bd24dc87bd094399f2124f80159207be
[ "BSD-3-Clause" ]
2
2021-11-08T19:13:50.000Z
2022-01-08T16:17:01.000Z
print(f'Loading {__file__}') def configure_area_det(det,acq_time,acq_period=None,exposure=None,num_exposures=1): if det.name == 'prosilica': acq_time = min(acq_time,25) if det.cam.acquire.get() == 0: yield from bps.abs_set(det.cam.acquire, 1, wait=True) if det.name == 'dexela': ...
40.490909
118
0.624158
327
2,227
4.003058
0.180428
0.080214
0.139037
0.114591
0.689076
0.669977
0.637892
0.637892
0.571429
0.538579
0
0.014414
0.252357
2,227
54
119
41.240741
0.771772
0
0
0.425
0
0.05
0.028289
0
0
0
0
0
0
1
0.025
false
0
0
0
0.05
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a4982c716e53e21237cd2d0f5536f385174c347
15,085
py
Python
same-same.py
gwk/same-same
065674668bf26dd2bcc62ab7a556629d21647fe4
[ "CC0-1.0" ]
22
2018-05-25T20:45:46.000Z
2021-01-24T23:26:20.000Z
same-same.py
gwk/same-same
065674668bf26dd2bcc62ab7a556629d21647fe4
[ "CC0-1.0" ]
null
null
null
same-same.py
gwk/same-same
065674668bf26dd2bcc62ab7a556629d21647fe4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # Dedicated to the public domain under CC0: https://creativecommons.org/publicdomain/zero/1.0/. import re from argparse import ArgumentParser from difflib import SequenceMatcher from itertools import chain, groupby from os import environ from sys import stderr, stdout from typing import * from t...
33.300221
124
0.646868
2,431
15,085
3.828466
0.203209
0.012894
0.007091
0.005587
0.121092
0.072634
0.058236
0.038036
0.028581
0.019985
0
0.019585
0.214717
15,085
452
125
33.373894
0.766081
0.214915
0
0.058997
0
0.0059
0.163408
0.011241
0
0
0.003584
0.002212
0.041298
1
0.056047
false
0.0059
0.023599
0.00885
0.115044
0.035398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a4aca28089648fa6cf04d319fbef84a5a8cbf94
1,912
py
Python
ED_Chapter4.py
Wang-ZhengYi/ED_Chapter5_code
f63861ab8b6bce4756b7f0e1fd15041a976c1a38
[ "MIT" ]
1
2019-12-19T11:04:49.000Z
2019-12-19T11:04:49.000Z
ED_Chapter4.py
Wang-ZhengYi/ED_assignment
f63861ab8b6bce4756b7f0e1fd15041a976c1a38
[ "MIT" ]
null
null
null
ED_Chapter4.py
Wang-ZhengYi/ED_assignment
f63861ab8b6bce4756b7f0e1fd15041a976c1a38
[ "MIT" ]
null
null
null
#!\usr\bin\python3 # -*- coding: utf-8 -*- ''' Created on Oct. 2019 ED_Chapter4 @author: ZYW @ BNU ''' import numpy as np import matplotlib.pyplot as plt from matplotlib import cm from scipy import interpolate from mpl_toolkits.mplot3d import Axes3D import os from matplotlib import font_manager as fm, rcParams impo...
29.875
80
0.643828
368
1,912
3.25
0.394022
0.016722
0.01505
0.040134
0.147157
0.103679
0.103679
0.090301
0.090301
0.048495
0
0.061429
0.11454
1,912
63
81
30.349206
0.645009
0.190377
0
0
0
0
0.066617
0
0
0
0
0
0
1
0.051282
false
0
0.205128
0.025641
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a4f041d9b0a170d8f07557ba868331447b86391
3,748
py
Python
experiments/prediction_similarity.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
experiments/prediction_similarity.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
experiments/prediction_similarity.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
import os import torch import argparse import yaml import utils import matplotlib.pyplot as plt import seaborn as sns import math import numpy as np from datetime import date def plot_matrix_as_heatmap(matrix,show=False,title='',xlabel='',ylabel='',save_path=''): '''plots the cosine similariy ma...
33.765766
122
0.648346
526
3,748
4.444867
0.30038
0.083832
0.025663
0.017964
0.366125
0.329341
0.289991
0.289991
0.289991
0.289991
0
0.011648
0.221185
3,748
110
123
34.072727
0.789311
0.021078
0
0.326087
0
0
0.076078
0.005917
0
0
0
0
0
1
0.01087
false
0
0.108696
0
0.119565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a4fe2e81bcaaac8a994f19cd3b167cfb47d0dfa
2,116
py
Python
plugins/pattern_navigate.py
OdatNurd/SublimeScraps
e9f97d2abc2a182ccec4a7ac8fa56e0911ef4c5c
[ "MIT" ]
2
2017-01-26T06:27:58.000Z
2017-07-13T22:48:19.000Z
plugins/pattern_navigate.py
OdatNurd/SublimeScraps
e9f97d2abc2a182ccec4a7ac8fa56e0911ef4c5c
[ "MIT" ]
null
null
null
plugins/pattern_navigate.py
OdatNurd/SublimeScraps
e9f97d2abc2a182ccec4a7ac8fa56e0911ef4c5c
[ "MIT" ]
null
null
null
import sublime import sublime_plugin # Related Reading: # https://forum.sublimetext.com/t/find-for-a-macro/57387/ # # This example command allows you to jump the cursor to the next or previous # location of a given pattern of text, which can be either a regex or not and # case sensitive or not based on command arg...
37.785714
79
0.666352
308
2,116
4.568182
0.435065
0.017768
0.023454
0.015636
0.041222
0.041222
0.041222
0
0
0
0
0.006406
0.262287
2,116
55
80
38.472727
0.894939
0.518904
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a50d6dea9ac0f55af007919a82e31ba7ff4734d
6,440
py
Python
main.py
gaelfargeas/markdown_to_static_site
8f270ab38e7cf93f74b58bd64c96e7571f8c5262
[ "BSD-3-Clause" ]
1
2021-12-13T12:00:21.000Z
2021-12-13T12:00:21.000Z
main.py
gaelfargeas/markdown_to_static_site
8f270ab38e7cf93f74b58bd64c96e7571f8c5262
[ "BSD-3-Clause" ]
null
null
null
main.py
gaelfargeas/markdown_to_static_site
8f270ab38e7cf93f74b58bd64c96e7571f8c5262
[ "BSD-3-Clause" ]
null
null
null
import argparse from pathlib import Path import markdown2 import jinja2 import os import shutil parser = argparse.ArgumentParser() parser.add_argument("-i", help="Chemin du/des source.", type=str) parser.add_argument("-o", help="Chemin du dossier des fichiers générés.", type=str) parser.add_argument("-t", help="Chem...
34.438503
88
0.39472
576
6,440
4.230903
0.164931
0.055806
0.051703
0.029545
0.579811
0.526057
0.501436
0.501436
0.482561
0.482561
0
0.007998
0.495186
6,440
186
89
34.623656
0.741618
0.005435
0
0.535211
0
0
0.072634
0
0
0
0
0
0
1
0.007042
false
0
0.042254
0
0.056338
0.084507
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a574b70d61a04a7120b0d3ff05a024266c78785
5,837
py
Python
src/rics/cardinality/_enum.py
rsundqvist/rics
c67ff6703facb3170535dcf173d7e55734cedbc6
[ "MIT" ]
1
2022-02-24T22:12:13.000Z
2022-02-24T22:12:13.000Z
src/rics/cardinality/_enum.py
rsundqvist/rics
c67ff6703facb3170535dcf173d7e55734cedbc6
[ "MIT" ]
26
2022-02-24T21:08:51.000Z
2022-03-19T19:55:26.000Z
src/rics/cardinality/_enum.py
rsundqvist/rics
c67ff6703facb3170535dcf173d7e55734cedbc6
[ "MIT" ]
null
null
null
from enum import Enum from typing import Tuple, Union # CardinalityLiteral = Literal["1:1", "1:N", "N:1", "M:N"] CardinalityT = Union[str, "Cardinality"] class Cardinality(Enum): """Enumeration type for cardinality relationships. Cardinalities are comparable using numerical operators, and can be thought of ...
31.38172
120
0.582662
687
5,837
4.848617
0.244541
0.040528
0.015011
0.026418
0.221855
0.194236
0.138397
0.088262
0.083458
0.058841
0
0.012314
0.262635
5,837
185
121
31.551351
0.761617
0.328422
0
0.094118
0
0.011765
0.087578
0.013405
0
0
0
0
0.011765
1
0.176471
false
0.011765
0.023529
0.011765
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a5751b3bd6e1acf691790d0550d0f5c13fdbbcc
5,443
py
Python
salt-pillar-linter.py
Noah-Huppert/salt-pillar-linter
a18d5504a46fe314e729ed611a0d8b29a2ea97aa
[ "MIT" ]
1
2019-10-13T18:52:25.000Z
2019-10-13T18:52:25.000Z
salt-pillar-linter.py
Noah-Huppert/salt-pillar-linter
a18d5504a46fe314e729ed611a0d8b29a2ea97aa
[ "MIT" ]
null
null
null
salt-pillar-linter.py
Noah-Huppert/salt-pillar-linter
a18d5504a46fe314e729ed611a0d8b29a2ea97aa
[ "MIT" ]
1
2019-03-18T16:51:40.000Z
2019-03-18T16:51:40.000Z
#!/usr/bin/env python3 import argparse import os import sys import re import yaml import jinja2 # {{{1 Parse arguments parser = argparse.ArgumentParser(description="Lints Salt states to ensure " + "pillars are used correctly") parser.prog = 'salt-pillar-linter' parser.add_argument('-...
29.263441
84
0.529855
634
5,443
4.395899
0.291798
0.017223
0.027628
0.040187
0.112307
0.06315
0.047363
0.047363
0
0
0
0.003721
0.358075
5,443
185
85
29.421622
0.793932
0.103619
0
0.229508
0
0
0.152514
0.007214
0
0
0
0
0
1
0.016393
false
0
0.04918
0
0.081967
0.155738
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a58e81c41213397323d2016af44248b99f994ce
15,107
py
Python
machine.py
rkronberg/ml-project
3129beb4ad1c92d7813df1611ccebdeca591b513
[ "MIT" ]
null
null
null
machine.py
rkronberg/ml-project
3129beb4ad1c92d7813df1611ccebdeca591b513
[ "MIT" ]
null
null
null
machine.py
rkronberg/ml-project
3129beb4ad1c92d7813df1611ccebdeca591b513
[ "MIT" ]
null
null
null
''' Optimal hyperparameters for CM + Laplacian kernel Ea: alpha 1e-11, gamma 1e-4 polarizability: alpha 1e-3, gamma 1e-4 HOMO-LUMO gap: alpha 1e-2, gamma 1e-4 Dipole moment: alpha 1e-1, gamma 1e-3 Optimal hyperparameters for BoB + Laplacian kernel Ea: alpha 1e-11, gamma 1e...
41.05163
131
0.585358
2,235
15,107
3.908725
0.205369
0.035027
0.016026
0.018544
0.330243
0.252518
0.196314
0.175137
0.143887
0.119277
0
0.048628
0.271728
15,107
367
132
41.163488
0.74541
0.284702
0
0.116279
0
0
0.092924
0.018343
0
0
0
0
0
1
0.037209
false
0
0.046512
0.004651
0.116279
0.013953
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a5a3364c51511dc6143a8fdb73fad93ea8e274b
981
py
Python
allegro_notify/soap/response/__init__.py
marlowww/AllegroNotify
5fa8581debacbfa6e28cb2f3a0e6c177c88bc724
[ "MIT" ]
null
null
null
allegro_notify/soap/response/__init__.py
marlowww/AllegroNotify
5fa8581debacbfa6e28cb2f3a0e6c177c88bc724
[ "MIT" ]
null
null
null
allegro_notify/soap/response/__init__.py
marlowww/AllegroNotify
5fa8581debacbfa6e28cb2f3a0e6c177c88bc724
[ "MIT" ]
null
null
null
from rinse import NS_MAP from rinse.util import safe_parse_string from soap import SoapFault class SoapResponse(): def __init__(self, response): self._response = response # Parse response try: self._doc = safe_parse_string(response.content) self._body = self._doc.x...
31.645161
74
0.607543
119
981
4.789916
0.462185
0.04386
0.052632
0
0
0
0
0
0
0
0
0.001425
0.284404
981
30
75
32.7
0.810541
0.049949
0
0
0
0
0.121636
0.032293
0
0
0
0
0
1
0.047619
false
0
0.190476
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
7a5b5fa3f82709fc1c5b8a1b0be0a9e5c031ce11
16,969
py
Python
ecn.py
asappinc/emergent_comms_negotiation
19ad405dcb83a3a521b6e1752cec075b69aa164b
[ "MIT" ]
9
2020-03-04T13:24:25.000Z
2022-03-15T09:52:37.000Z
ecn.py
asappinc/emergent_comms_negotiation
19ad405dcb83a3a521b6e1752cec075b69aa164b
[ "MIT" ]
2
2019-12-30T07:28:33.000Z
2020-10-13T11:38:34.000Z
ecn.py
asappinc/emergent_comms_negotiation
19ad405dcb83a3a521b6e1752cec075b69aa164b
[ "MIT" ]
6
2018-03-15T18:08:45.000Z
2019-07-15T06:49:16.000Z
import json import time import argparse import os import datetime from os import path import numpy as np import torch from torch import autograd, optim, nn from torch.autograd import Variable import torch.nn.functional as F import nets import sampling import rewards_lib import alive_sieve def render_action(t, s, pro...
38.830664
129
0.613236
2,145
16,969
4.522611
0.142657
0.052263
0.072364
0.029482
0.353366
0.327801
0.273271
0.231213
0.199464
0.183074
0
0.012472
0.281808
16,969
436
130
38.919725
0.78354
0.0452
0
0.245283
0
0.002695
0.067497
0.007472
0
0
0
0
0
1
0.024259
false
0
0.040431
0
0.078167
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a5cd88fd8c0d16613c9c5ac3d7d23b3867ecc8f
2,724
py
Python
nexar_requests.py
NexarDeveloper/nexar-examples-py
9a55964d9a847cf124e8928308369074e67d1dfe
[ "MIT" ]
null
null
null
nexar_requests.py
NexarDeveloper/nexar-examples-py
9a55964d9a847cf124e8928308369074e67d1dfe
[ "MIT" ]
null
null
null
nexar_requests.py
NexarDeveloper/nexar-examples-py
9a55964d9a847cf124e8928308369074e67d1dfe
[ "MIT" ]
null
null
null
"""Resources for making Nexar requests.""" import os, requests, re from typing import Callable, Dict, Iterator from requests_toolbelt import MultipartEncoder NEXAR_URL = "https://api.nexar.com/graphql" NEXAR_FILE_URL = "https://files.nexar.com/Upload/WorkflowAttachment" class NexarClient: def __init__(self, toke...
32.819277
85
0.552863
289
2,724
5.103806
0.33564
0.016949
0.034576
0.042712
0.179661
0.105763
0.065085
0.065085
0.065085
0.065085
0
0.000547
0.329295
2,724
82
86
33.219512
0.806787
0.042584
0
0.129032
0
0
0.118441
0.009645
0
0
0
0
0
1
0.112903
false
0
0.048387
0.016129
0.274194
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a5ea12ecc4b49137705efc9bc329a10e0a04827
1,560
py
Python
lab3/test.py
dssgabriel/obhpc
6358dffc85b18e1e65cb80f8e9b11b191b86463d
[ "MIT" ]
null
null
null
lab3/test.py
dssgabriel/obhpc
6358dffc85b18e1e65cb80f8e9b11b191b86463d
[ "MIT" ]
null
null
null
lab3/test.py
dssgabriel/obhpc
6358dffc85b18e1e65cb80f8e9b11b191b86463d
[ "MIT" ]
null
null
null
import numpy as np import sys import time import mblas # Python matrix multiplication def sgemm_py(A, B, C, n): for i in range(0, n): for j in range(0, n): loc = A[i * n + j] for k in range(0, n): C[i * n + k] += loc * B[j * n + k] # Time measurement of Python sgem...
23.636364
54
0.592949
257
1,560
3.459144
0.210117
0.026997
0.101237
0.058493
0.445444
0.409449
0.389201
0.389201
0.310461
0.310461
0
0.015598
0.260256
1,560
65
55
24
0.754766
0.136538
0
0.261905
0
0
0.026139
0
0
0
0
0
0
1
0.119048
false
0
0.095238
0
0.285714
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
7a5efdd3fa22d91097ebe01edb43cd8a8309df98
2,817
py
Python
main.py
devlocalhost/covidpy
4c2e8ce8831a389b9ca5bad8ed64aa3c4fb5c60c
[ "MIT" ]
null
null
null
main.py
devlocalhost/covidpy
4c2e8ce8831a389b9ca5bad8ed64aa3c4fb5c60c
[ "MIT" ]
null
null
null
main.py
devlocalhost/covidpy
4c2e8ce8831a389b9ca5bad8ed64aa3c4fb5c60c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from traceback import format_exc from requests import get from colorhex import colorex, BOLD from datetime import datetime from sys import exit from os import system BLURPLE = '7289da' GREEN = '43b581' YELLOW = 'fdcc4b' RED = 'f04947' def main(): system('clear') country = input(colorex('Ent...
29.652632
188
0.709265
394
2,817
5.002538
0.30203
0.055809
0.065956
0.05175
0.354135
0.292745
0.292745
0.24759
0.24759
0.24759
0
0.011213
0.14519
2,817
95
189
29.652632
0.807309
0.007455
0
0.382353
0
0.044118
0.424535
0.015379
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.117647
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a60ed8d5b51faf0acae3eb73b2aefe676b8f9fb
407
py
Python
data-detective-airflow/dags/dags/dummy/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/dags/dags/dummy/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2022-03-14T16:50:41.000Z
2022-03-14T16:50:41.000Z
data-detective-airflow/dags/dags/dummy/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
import yaml from pandas import DataFrame def val_translate(context, in_df: DataFrame, file_name: str) -> DataFrame: task = context.get('task') out_df = in_df.copy() with open(f'{task.dag.etc_dir}/{file_name}', 'r', encoding='utf-8') as cfg: config = yaml.safe_load(cfg) out_df['test'] = out_df....
27.133333
79
0.633907
62
407
3.983871
0.645161
0.080972
0
0
0
0
0
0
0
0
0
0.006289
0.218673
407
14
80
29.071429
0.77044
0
0
0
0
0
0.117936
0.07371
0
0
0
0
0
1
0.083333
false
0
0.166667
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
7a61638ec41b218d13f9ed19e5fe88c4dfeca072
331
py
Python
Regex/3_Group_Groups_ Groupdict.py
FaranakAlikhah/ADM-HW1
f4255112c58a4a200d04c943c74f096cc31e9dad
[ "MIT" ]
null
null
null
Regex/3_Group_Groups_ Groupdict.py
FaranakAlikhah/ADM-HW1
f4255112c58a4a200d04c943c74f096cc31e9dad
[ "MIT" ]
null
null
null
Regex/3_Group_Groups_ Groupdict.py
FaranakAlikhah/ADM-HW1
f4255112c58a4a200d04c943c74f096cc31e9dad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # section 13.Regex and Parsing challenges : # # ### writer : Faranak Alikhah 1954128 # ### 3. Group(), Groups() & Groupdict() : # In[ ]: import re s= input() pattern=r'([A-Z a-z 0-9])\1+'#alphabet numeric m=re.search(pattern,s) if m: print(m.group(1)) else: prin...
13.791667
47
0.589124
51
331
3.823529
0.784314
0.020513
0
0
0
0
0
0
0
0
0
0.060837
0.205438
331
23
48
14.391304
0.680608
0.528701
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a631c8b774ce30119cf2fb20a75fd6b612229ac
2,238
py
Python
checker/__main__.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
3
2020-08-09T15:17:44.000Z
2022-03-19T22:16:25.000Z
checker/__main__.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
4
2020-08-12T21:25:16.000Z
2021-04-17T10:57:57.000Z
checker/__main__.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
1
2020-12-17T10:06:37.000Z
2020-12-17T10:06:37.000Z
"""Represents executable entrypoint for `pep8-checker` application.""" import http import os from typing import Any, Dict, Optional from pathlib import Path import attr from bottle import TEMPLATE_PATH, abort, request, route, run, view import requests TEMPLATE_PATH.append(str(Path('./') / 'checker' / 'views')) def a...
27.975
78
0.602324
268
2,238
4.940299
0.391791
0.021148
0.018127
0.022659
0.049849
0.049849
0.049849
0
0
0
0
0.005974
0.252011
2,238
79
79
28.329114
0.784946
0.164433
0
0
0
0
0.143643
0
0
0
0
0
0
1
0.075472
false
0
0.132075
0
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a66f09c5519425a30cfc0792ff8af6ceb340d6d
15,676
py
Python
Projects/Space Invaders/main c clara.py
busterbeam/pygame
5dbbfd8dff5785e5d1010909aec51e9ef8d1cf5c
[ "MIT" ]
6
2018-05-26T13:06:34.000Z
2021-11-08T11:44:28.000Z
Projects/Space Invaders/main c clara.py
busterbeam/pygame
5dbbfd8dff5785e5d1010909aec51e9ef8d1cf5c
[ "MIT" ]
1
2018-09-11T18:35:56.000Z
2019-05-06T13:41:32.000Z
Projects/Space Invaders/main c clara.py
busterbeam/pygame
5dbbfd8dff5785e5d1010909aec51e9ef8d1cf5c
[ "MIT" ]
11
2018-06-01T01:53:11.000Z
2021-08-11T01:00:17.000Z
import pygame from pygame.locals import * from os.path import realpath, dirname from time import time from random import randint def main(): running, settings = load() while running: settings = update(settings) draw(**settings) running = check_exit(**settings) pygame.quit() quit...
36.37123
158
0.559773
2,124
15,676
3.974576
0.093691
0.08055
0.06823
0.027719
0.41874
0.346245
0.277422
0.260602
0.219972
0.214996
0
0.02628
0.288785
15,676
431
159
36.37123
0.730918
0.008803
0
0.265985
0
0
0.101577
0.023367
0
0
0
0
0
1
0.097187
false
0.005115
0.012788
0.002558
0.16624
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a699d75b7048967367caac0285a0e4744e00927
2,168
py
Python
src/redrawing/components/debug.py
ReDrawing/redrawing
20743f0c8d64d9d2e15cefa840423c9698c74653
[ "MIT" ]
1
2021-04-20T00:00:15.000Z
2021-04-20T00:00:15.000Z
src/redrawing/components/debug.py
ReDrawing/redrawing
20743f0c8d64d9d2e15cefa840423c9698c74653
[ "MIT" ]
null
null
null
src/redrawing/components/debug.py
ReDrawing/redrawing
20743f0c8d64d9d2e15cefa840423c9698c74653
[ "MIT" ]
1
2021-07-18T03:57:01.000Z
2021-07-18T03:57:01.000Z
import time from .stage import Stage class Debug_Stage(Stage): '''! Stage for debugging, print messages in setup and process ''' configs_default={"name":"debug_stage", "blank_line":False, "wait_key": False, "wait_seconds": 0, "context_debug":"context"} def __init__(self, configs={}): ...
32.358209
127
0.579336
264
2,168
4.587121
0.242424
0.109001
0.06441
0.056152
0.366639
0.366639
0.366639
0.348472
0.348472
0.348472
0
0.002695
0.315498
2,168
66
128
32.848485
0.813342
0.374077
0
0.48
0
0
0.24144
0
0
0
0
0
0
1
0.12
false
0
0.08
0
0.28
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a69a21aa05fe2df5e6fa114f41410a45c4bd7d5
6,659
py
Python
bin/build.py
mgijax/mgv-data
99a2f5a8f56d7ebb6a014431d8a20df721df58e2
[ "MIT" ]
1
2022-03-04T06:20:33.000Z
2022-03-04T06:20:33.000Z
bin/build.py
JoelRichardson/mgv-data
99a2f5a8f56d7ebb6a014431d8a20df721df58e2
[ "MIT" ]
1
2021-04-06T13:17:47.000Z
2021-04-06T13:17:47.000Z
bin/build.py
JoelRichardson/mgv-data
99a2f5a8f56d7ebb6a014431d8a20df721df58e2
[ "MIT" ]
1
2022-03-04T11:49:53.000Z
2022-03-04T11:49:53.000Z
# # build.py # # Builds a back end for MGV based on a config file. # import os import sys import time import json from argparse import ArgumentParser import re from urllib.request import urlopen import gzip from lib.Config import ConfigFileReader from lib.Downloader import downloaderNameMap from lib.Importer import i...
37.410112
134
0.522301
772
6,659
4.433938
0.257772
0.051417
0.05463
0.018697
0.129127
0.09816
0.084721
0.0409
0.018113
0
0
0.001136
0.33894
6,659
177
135
37.621469
0.776465
0.038895
0
0.162162
0
0.027027
0.199561
0
0
0
0
0
0
1
0.054054
false
0.006757
0.114865
0.006757
0.222973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a6c43158e65f1ef63580d8b4dd6ab79de3bce35
10,245
py
Python
plane_waves/polarization_animation.py
raptor/ECEn360_Winter2016
65076f19c561ee51c8757720694d1ef00f829bdb
[ "MIT" ]
null
null
null
plane_waves/polarization_animation.py
raptor/ECEn360_Winter2016
65076f19c561ee51c8757720694d1ef00f829bdb
[ "MIT" ]
1
2019-03-03T00:54:52.000Z
2019-03-04T18:06:38.000Z
plane_waves/polarization_animation.py
raptor/ECEn360_Winter2016
65076f19c561ee51c8757720694d1ef00f829bdb
[ "MIT" ]
1
2019-03-02T02:50:24.000Z
2019-03-02T02:50:24.000Z
#---------------------------------------------------------------------- # # 9/25/18 - Update to use Python 3.6, PyQt5 and pyqtgraph 0.10.0 # G. Nordin #---------------------------------------------------------------------- from PyQt5 import QtGui, QtCore import pyqtgraph as pg import pyqtgraph.opengl as gl import nump...
35.085616
140
0.730112
1,682
10,245
4.218193
0.171225
0.019168
0.007611
0.007329
0.364764
0.292319
0.261311
0.25229
0.234249
0.196476
0
0.033576
0.127867
10,245
291
141
35.206186
0.760492
0.219815
0
0.150754
0
0
0.022607
0
0
0
0
0
0
1
0.025126
false
0
0.025126
0
0.060302
0.01005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a6d0f5efa3463ae20d88607a8d5407e7e5f2f04
4,102
py
Python
FEMpy/tests/unit/test_assemblers.py
floydie7/FEMpy
50e11b88dc249ff7c599472b455b07b04df1afd7
[ "MIT" ]
null
null
null
FEMpy/tests/unit/test_assemblers.py
floydie7/FEMpy
50e11b88dc249ff7c599472b455b07b04df1afd7
[ "MIT" ]
null
null
null
FEMpy/tests/unit/test_assemblers.py
floydie7/FEMpy
50e11b88dc249ff7c599472b455b07b04df1afd7
[ "MIT" ]
1
2022-01-22T06:39:38.000Z
2022-01-22T06:39:38.000Z
import numpy as np from FEMpy import Mesh, FEBasis, Assemblers mesh_1D_linear = Mesh.Interval1D(0, 1, 1/2, 'linear') basis_1D_linear = FEBasis.IntervalBasis1D('linear') mesh_1D_quadratic = Mesh.Interval1D(0, 1, 1/2, 'quadratic') basis_1D_quadratic = FEBasis.IntervalBasis1D('quadratic') mesh_2D_triangular_linear = M...
53.973684
112
0.515358
512
4,102
3.875
0.132813
0.058468
0.049899
0.034274
0.749496
0.682964
0.612903
0.540323
0.524698
0.497984
0
0.131401
0.352511
4,102
75
113
54.693333
0.615587
0.044125
0
0.038462
0
0
0.01072
0
0
0
0
0
0.115385
1
0.134615
false
0
0.038462
0.019231
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
7a6f7d87a2d1fb4721a02d6017c7510a78a70218
7,420
py
Python
fonts/terminus-font-4.49.1/bin/bdf.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
fonts/terminus-font-4.49.1/bin/bdf.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
fonts/terminus-font-4.49.1/bin/bdf.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
# # Copyright (C) 2017-2020 Dimitar Toshkov Zhekov <dimitar.zhekov@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later v...
23.935484
105
0.68814
1,101
7,420
4.514078
0.235241
0.034406
0.028169
0.032596
0.273843
0.198793
0.135614
0.099396
0.065996
0.065996
0
0.019133
0.175876
7,420
309
106
24.012945
0.793622
0.124124
0
0.182796
0
0
0.087212
0
0
0
0
0
0
1
0.145161
false
0
0.026882
0.069892
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
7a6f999b096c719861108c73f2eea05851482105
9,488
py
Python
gym_brt/envs/qube_base_env.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
gym_brt/envs/qube_base_env.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
gym_brt/envs/qube_base_env.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import division import gym import time import math import numpy as np from gym import spaces from gym.utils import seeding from gym_brt.quanser import QubeServo2, QubeServo2Simulator from gym_brt.control import QubeFlipUpCont...
33.059233
106
0.602867
1,178
9,488
4.617997
0.202037
0.028125
0.004963
0.004412
0.194118
0.113971
0.104779
0.069853
0.039706
0.039706
0
0.027998
0.296058
9,488
286
107
33.174825
0.786495
0.096648
0
0.127358
0
0
0.02037
0.002708
0
0
0
0.003497
0
1
0.084906
false
0
0.056604
0.018868
0.216981
0.004717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a70d71d5291dbc0c13322848d901d168bba6bc7
3,178
py
Python
main/helpers.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
1
2021-11-28T05:46:45.000Z
2021-11-28T05:46:45.000Z
main/helpers.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
main/helpers.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 from werkzeug import import_string, cached_property from functools import wraps from flask import request,render_template,session,current_app,url_for from datetime import timedelta,datetime # from main.extensions import redis_store from flask_sse import sse # from urllib.parse import urljoin # from urll...
28.890909
73
0.648521
414
3,178
4.746377
0.309179
0.035623
0.021374
0.022901
0.078372
0.033588
0
0
0
0
0
0.00574
0.232536
3,178
110
74
28.890909
0.799918
0.237256
0
0
0
0
0.053981
0
0
0
0
0
0
1
0.178571
false
0
0.214286
0.035714
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a710889018c82681c9e827f743aab1961a6e26a
1,482
py
Python
LeetCode/medium/search_a_2d_matrix_ii.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
LeetCode/medium/search_a_2d_matrix_ii.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
LeetCode/medium/search_a_2d_matrix_ii.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
''' https://leetcode.com/problems/search-a-2d-matrix-ii/ 240. Search a 2D Matrix II Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix has the following properties: - Integers in each row are sorted in ascending from left to right. - Intege...
32.933333
134
0.536437
206
1,482
3.859223
0.514563
0.067925
0.037736
0.060377
0.210063
0.072956
0
0
0
0
0
0.057082
0.361673
1,482
44
135
33.681818
0.783298
0.412281
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a718a243bcf5867511bde8c48494b0dbfa75d51
7,503
py
Python
automow_ekf/src/automow_ekf/__init__.py
Auburn-Automow/au_automow_common
920be6a740aa6d738e9954417b41490e353efd04
[ "BSD-3-Clause" ]
43
2016-03-05T17:06:29.000Z
2022-03-10T08:50:46.000Z
automow_ekf/src/automow_ekf/__init__.py
qintxwd/au_automow_common
920be6a740aa6d738e9954417b41490e353efd04
[ "BSD-3-Clause" ]
2
2017-07-10T12:43:49.000Z
2019-03-13T13:57:31.000Z
automow_ekf/src/automow_ekf/__init__.py
qintxwd/au_automow_common
920be6a740aa6d738e9954417b41490e353efd04
[ "BSD-3-Clause" ]
22
2016-03-23T06:10:52.000Z
2022-03-10T08:50:49.000Z
import numpy as np import threading def wrapToPi(angle): """ Wrap a given angle in radians to the range -pi to pi. @param angle : The angle to be wrapped @param type angle : float @return : Wrapped angle @rtype : float """ return np.mod(angle + np.pi, 2.0 * np.pi) - np.pi class Aut...
38.086294
103
0.514461
1,280
7,503
2.867188
0.107813
0.076294
0.141689
0.053951
0.584469
0.539237
0.462398
0.39346
0.318801
0.222888
0
0.055622
0.329068
7,503
196
104
38.280612
0.673421
0.1666
0
0.136691
0
0
0.000331
0
0
0
0
0
0
1
0.100719
false
0
0.014388
0
0.273381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a719e5fbbaf6f206dcab2bd1b09cd9219be9533
2,028
py
Python
functions/oxford.py
codefire53/aegisbot
b4cb4f42e3cbdf8554eb234661cc6091e83f1be4
[ "MIT" ]
null
null
null
functions/oxford.py
codefire53/aegisbot
b4cb4f42e3cbdf8554eb234661cc6091e83f1be4
[ "MIT" ]
null
null
null
functions/oxford.py
codefire53/aegisbot
b4cb4f42e3cbdf8554eb234661cc6091e83f1be4
[ "MIT" ]
null
null
null
'''Importing necessary modules''' from urllib.parse import quote import urllib import requests from bs4 import BeautifulSoup '''Function to search word/phrase on oxford dictionary''' def define(word): #Oxford dictionary search query url url='https://en.oxforddictionaries.com/definition/'+quote(word) #Parse ...
45.066667
113
0.61785
275
2,028
4.516364
0.421818
0.016103
0.02657
0
0
0
0
0
0
0
0
0.002011
0.2643
2,028
44
114
46.090909
0.830429
0.321499
0
0
0
0
0.140661
0
0
0
0
0
0
1
0.035714
false
0
0.142857
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
7a72cc0496b6255bcf4c039018a93cc9e747a2d4
3,546
py
Python
checkov/common/output/baseline.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
checkov/common/output/baseline.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
checkov/common/output/baseline.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import json from collections import defaultdict from typing import Any, TYPE_CHECKING if TYPE_CHECKING: from checkov.common.output.record import Record from checkov.common.output.report import Report from checkov.common.typing import _BaselineFinding, _BaselineFailedChec...
40.295455
111
0.57868
392
3,546
4.936224
0.239796
0.099225
0.028941
0.041344
0.170026
0.15814
0.130749
0.082687
0.045478
0.045478
0
0.0017
0.336435
3,546
87
112
40.758621
0.820654
0.147208
0
0
0
0
0.049232
0
0
0
0
0
0
1
0.105263
false
0.035088
0.122807
0
0.298246
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a7625718df7e6640a9e34803147593716f4fd9f
5,618
py
Python
tests/support/rabbitmq/__init__.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
32
2019-06-10T13:24:11.000Z
2021-12-17T21:00:41.000Z
tests/support/rabbitmq/__init__.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
26
2019-12-17T12:51:00.000Z
2022-02-16T16:13:14.000Z
tests/support/rabbitmq/__init__.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
1
2021-09-11T03:55:30.000Z
2021-09-11T03:55:30.000Z
import json import logging import urllib.parse from time import sleep from typing import Generator from typing import Optional import requests from requests.adapters import HTTPAdapter from tests.support.dtos import ConsumerStatus from tests.support.dtos import CurrentDestinationStatus from tests.support.dtos import ...
41.007299
117
0.672481
611
5,618
5.826514
0.222586
0.061798
0.050562
0.038202
0.266292
0.196067
0.170225
0.105618
0.105618
0.105618
0
0.009933
0.229441
5,618
136
118
41.308824
0.812428
0
0
0.070175
0
0
0.122998
0.016376
0
0
0
0
0.008772
1
0.052632
false
0
0.096491
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a77731700f270ddcae5f715cc1cc8dec54c3bd0
964
py
Python
Searching/Ternary Search/Python/TernarySearch.py
priyanshi2808/DSA
1e907e869a55049c6b5d9469d8d52bfce2add4f0
[ "MIT" ]
8
2021-10-14T16:31:54.000Z
2022-01-05T11:56:37.000Z
Searching/Ternary Search/Python/TernarySearch.py
priyanshi2808/DSA
1e907e869a55049c6b5d9469d8d52bfce2add4f0
[ "MIT" ]
55
2021-10-15T14:53:05.000Z
2021-12-21T07:29:00.000Z
Searching/Ternary Search/Python/TernarySearch.py
priyanshi2808/DSA
1e907e869a55049c6b5d9469d8d52bfce2add4f0
[ "MIT" ]
12
2021-10-14T12:13:22.000Z
2022-02-22T13:41:42.000Z
# Here, left = 0 and right = length of array - 1 def ternarySearch(ar , key , left , right): if left < right: inter = (right - left ) // 3 rightmid = right - inter leftmid = left +inter if (ar[rightmid] == key ): print( "Element found!Index:",rig...
22.952381
64
0.48029
102
964
4.539216
0.343137
0.097192
0.116631
0.086393
0.107991
0
0
0
0
0
0
0.033392
0.409751
964
41
65
23.512195
0.780316
0.135892
0
0.105263
0
0
0.065375
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.368421
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
7a7790db65580f59c5c2b4b7513f7c447480f699
1,114
py
Python
feature_engineering/featuretools.py
bukosabino/ml-utils
3f9379e0558a3db8f4b43b924da8fa30f6d42edb
[ "MIT" ]
2
2019-03-03T15:17:51.000Z
2021-01-31T15:35:21.000Z
feature_engineering/featuretools.py
bukosabino/ml-utils
3f9379e0558a3db8f4b43b924da8fa30f6d42edb
[ "MIT" ]
null
null
null
feature_engineering/featuretools.py
bukosabino/ml-utils
3f9379e0558a3db8f4b43b924da8fa30f6d42edb
[ "MIT" ]
1
2018-10-20T16:42:54.000Z
2018-10-20T16:42:54.000Z
import featuretools as ft def merge_featuretools(df_parent, df_related, parent_column, related_column, date_column): """Automated feature engineering More info: https://www.featuretools.com https://github.com/featuretools/featuretools https://docs.featuretools.com http://www.jmaxkanter.com/st...
32.764706
93
0.66158
128
1,114
5.546875
0.4375
0.050704
0.039437
0.039437
0.064789
0
0
0
0
0
0
0.004723
0.239677
1,114
33
94
33.757576
0.83353
0.29623
0
0
0
0
0.061415
0
0
0
0
0
0
1
0.083333
false
0
0.083333
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
7a788cd072bdcfa375e6dc2987b8609a8045d6fa
6,234
py
Python
recommender/colaborative/prepare_data.py
DigasNikas/PyRecommender
fb056929bba45431a5fc98691332b9bf91e730bb
[ "MIT" ]
2
2017-05-27T15:06:04.000Z
2018-11-23T06:43:25.000Z
recommender/colaborative/prepare_data.py
DigasNikas/PyRecommender
fb056929bba45431a5fc98691332b9bf91e730bb
[ "MIT" ]
null
null
null
recommender/colaborative/prepare_data.py
DigasNikas/PyRecommender
fb056929bba45431a5fc98691332b9bf91e730bb
[ "MIT" ]
null
null
null
from pyspark import SQLContext from pyspark.sql.functions import lit from datetime import datetime def prepare_data(sc, months, output_path): sqlContext = SQLContext(sc) sqlContext.setConf('spark.sql.parquet.compression.codec', 'snappy') blacklist = [] blacklist_top50 = ['({})|'.format(x) for x in g...
38.9625
115
0.623837
774
6,234
4.788114
0.205426
0.040475
0.105505
0.025634
0.401241
0.320022
0.286023
0.21047
0.174312
0.146249
0
0.012937
0.243664
6,234
159
116
39.207547
0.773065
0.076195
0
0.142857
0
0
0.104384
0.013396
0
0
0
0
0
1
0.071429
false
0.026786
0.026786
0
0.169643
0.044643
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a7b176678afd25894ed7a7d41c1b8b41f6c77eb
6,711
py
Python
social-update.py
uditvashisht/SaralGyaanTwitterRedditBot
7e6238afd57383eb6a95df4395e23c868c5e4b2c
[ "MIT" ]
null
null
null
social-update.py
uditvashisht/SaralGyaanTwitterRedditBot
7e6238afd57383eb6a95df4395e23c868c5e4b2c
[ "MIT" ]
null
null
null
social-update.py
uditvashisht/SaralGyaanTwitterRedditBot
7e6238afd57383eb6a95df4395e23c868c5e4b2c
[ "MIT" ]
null
null
null
import tweepy import praw import prawcore import time import requests import logging import os import shutil import facebook import requests # pip install python-decouple from decouple import config # Login Credentials REDDIT_CLIENT_ID = config('REDDIT_CLIENT_ID') REDDIT_CLIENT_SECRET = config('REDDIT_CLIENT_SECRET')...
30.22973
139
0.627924
779
6,711
5.223363
0.288832
0.044237
0.026542
0.017695
0.147456
0.120177
0.101008
0.055542
0.043254
0.043254
0
0.004091
0.271495
6,711
221
140
30.366516
0.828186
0.252868
0
0.226087
0
0.008696
0.224087
0.043223
0
0
0
0
0
1
0.043478
false
0.026087
0.095652
0
0.147826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a7eeca58b940b9dce392dd95136944747af3a0f
2,553
py
Python
youths/management/commands/import_youth_data.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
null
null
null
youths/management/commands/import_youth_data.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
31
2020-07-02T11:26:39.000Z
2022-03-12T00:50:49.000Z
youths/management/commands/import_youth_data.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
null
null
null
import json from django.contrib.auth import get_user_model from django.core import serializers from django.core.management.base import BaseCommand from django.db import transaction from django.db.models.signals import post_save from helusers.models import ADGroup, ADGroupMapping from sequences.models import Sequence ...
37
120
0.647865
288
2,553
5.559028
0.388889
0.109931
0.04747
0.035603
0.12055
0.057464
0.039975
0
0
0
0
0.001598
0.264787
2,553
68
121
37.544118
0.851359
0
0
0
0
0.019231
0.100274
0.025069
0
0
0
0
0
1
0.038462
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a7f11e6c6a877151c17c25eab1dd510ce82e20f
2,412
py
Python
1_screen_pipeline/03_peak_intersection/pcommon.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
5
2020-07-30T02:35:20.000Z
2020-12-24T01:26:47.000Z
1_screen_pipeline/03_peak_intersection/pcommon.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
6
2021-03-04T10:30:11.000Z
2022-03-16T16:47:47.000Z
1_screen_pipeline/03_peak_intersection/pcommon.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
2
2020-12-08T10:05:02.000Z
2022-03-10T09:41:19.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng from __future__ import print_function import sys import os import gzip import json sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../metadata...
33.5
110
0.569652
271
2,412
5.02214
0.431734
0.036738
0.038207
0.024982
0.038207
0.038207
0
0
0
0
0
0.00519
0.281095
2,412
71
111
33.971831
0.7797
0.044362
0
0.054545
0
0
0.173837
0.051282
0
0
0
0
0
1
0.054545
false
0
0.127273
0
0.236364
0.163636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a8034f5cd14516baa13647e9508787ee3e7837b
18,882
py
Python
nested/train_vgg.py
yingyichen-cyy/Nested-Co-teaching
8b7e3ed02d8994d93dcb2011340fe28ba6012283
[ "MIT" ]
39
2021-04-29T08:36:59.000Z
2022-02-26T03:53:48.000Z
nested/train_vgg.py
yingyichen-cyy/Nested-Co-teaching
8b7e3ed02d8994d93dcb2011340fe28ba6012283
[ "MIT" ]
1
2021-05-19T07:53:53.000Z
2021-09-24T09:00:45.000Z
nested/train_vgg.py
yingyichen-cyy/Nested-Co-teaching
8b7e3ed02d8994d93dcb2011340fe28ba6012283
[ "MIT" ]
3
2021-05-14T06:53:19.000Z
2021-08-04T13:44:24.000Z
import torch import torch.nn as nn import torch.optim as optim from torch.optim.lr_scheduler import MultiStepLR import json import os import argparse import utils from model import vgg import itertools import numpy as np import random import torchvision import torchvision.transforms as transforms from torch.utils...
37.915663
283
0.517848
2,016
18,882
4.69494
0.15129
0.027364
0.031379
0.010988
0.464237
0.439197
0.402007
0.390808
0.374326
0.365029
0
0.020141
0.300551
18,882
498
284
37.915663
0.696525
0.111588
0
0.437107
0
0.006289
0.086517
0.002828
0
0
0
0
0
1
0.022013
false
0
0.053459
0
0.091195
0.034591
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a8cb7844af88c35eb1b63d6733fa0006e6aff06
1,291
py
Python
src/xg_all/xg.py
tapojyotipaul/xgboost-benchmarks
789b99acbf401617a45a8c82dbae1210378527d8
[ "Apache-2.0" ]
null
null
null
src/xg_all/xg.py
tapojyotipaul/xgboost-benchmarks
789b99acbf401617a45a8c82dbae1210378527d8
[ "Apache-2.0" ]
null
null
null
src/xg_all/xg.py
tapojyotipaul/xgboost-benchmarks
789b99acbf401617a45a8c82dbae1210378527d8
[ "Apache-2.0" ]
2
2021-04-07T12:32:42.000Z
2021-04-21T16:28:42.000Z
from timeit import default_timer as timer import xgboost as xgb import common import gc NUM_LOOPS = 100 PARAMS = { 'objective': 'reg:squarederror', 'alpha': 0.9, 'max_bin': 256, 'scale_pos_weight': 2, 'learning_rate': 0.1, 'subsample': 1, 'reg_lambda': 1, 'min_child_weight': 0, ...
26.346939
81
0.659954
172
1,291
4.69186
0.5
0.02974
0
0
0
0
0
0
0
0
0
0.036743
0.219985
1,291
49
82
26.346939
0.764647
0.10457
0
0
0
0
0.138261
0
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.138889
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
7a8dbcfb9f48db68d70725b0f63d6593739a5371
255
py
Python
gyak/03/duplum-torol.py
horverno/sze-academic-python
3ac8f2c62b827822f529dc600eef91713e82d551
[ "MIT" ]
4
2019-06-24T17:01:03.000Z
2021-11-09T21:48:32.000Z
gyak/03/duplum-torol.py
horverno/sze-academic-python
3ac8f2c62b827822f529dc600eef91713e82d551
[ "MIT" ]
null
null
null
gyak/03/duplum-torol.py
horverno/sze-academic-python
3ac8f2c62b827822f529dc600eef91713e82d551
[ "MIT" ]
6
2018-07-24T10:08:14.000Z
2021-09-11T20:40:47.000Z
# irjunk olyan python kodot, amely kitorli egy listabol a duplumokat a = [10,20,30,20,10,50,60,40,80,50,40] dup_items = set() uniq_items = [] for x in a: if x not in dup_items: uniq_items.append(x) dup_items.add(x) print(dup_items)
19.615385
68
0.662745
48
255
3.395833
0.604167
0.196319
0
0
0
0
0
0
0
0
0
0.11
0.215686
255
12
69
21.25
0.705
0.258824
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a91c1b9651492ee7c9426b0fcd2c1c972c0dcc4
7,034
py
Python
rudderthralloc/forcealloc.py
kplindegaard/pycs2
a21a9b9403b84601e889bf253b85b11659ea5896
[ "BSD-2-Clause" ]
2
2021-04-21T01:53:11.000Z
2022-03-21T10:05:23.000Z
rudderthralloc/forcealloc.py
kplindegaard/pycs2
a21a9b9403b84601e889bf253b85b11659ea5896
[ "BSD-2-Clause" ]
null
null
null
rudderthralloc/forcealloc.py
kplindegaard/pycs2
a21a9b9403b84601e889bf253b85b11659ea5896
[ "BSD-2-Clause" ]
1
2020-09-16T03:47:12.000Z
2020-09-16T03:47:12.000Z
""" forcealloc.py - Map commanded thrust to generalized, cartesian forces """ # BSD 2-Clause License # # Copyright (c) 2001-2017, Karl-Petter Lindegaard # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
33.495238
95
0.565254
996
7,034
3.980924
0.276104
0.022951
0.011349
0.017654
0.387894
0.371248
0.351576
0.351576
0.351576
0.327364
0
0.066624
0.329969
7,034
209
96
33.655502
0.774666
0.486636
0
0.371134
0
0
0
0
0
0
0
0
0
1
0.041237
false
0
0.030928
0
0.113402
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7a958e3eba071c4fbf127852dcb80e42dd73f774
3,982
py
Python
docly/logic/logic_main.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
29
2020-12-31T08:27:32.000Z
2022-02-15T08:48:51.000Z
docly/logic/logic_main.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
4
2020-12-30T18:18:54.000Z
2021-08-03T14:42:35.000Z
docly/logic/logic_main.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
2
2022-01-04T17:58:22.000Z
2022-02-05T13:04:14.000Z
import os import sys from io import open import numpy as np import torch import torch.nn as nn from .example import make_example, make_new_example from .input_features import convert_examples_to_features from torch.utils.data import DataLoader, Dataset, SequentialSampler, TensorDataset from transformers import (WEIG...
35.553571
112
0.659719
525
3,982
4.725714
0.270476
0.016123
0.016929
0.03023
0.322048
0.322048
0.295042
0.244256
0.217654
0.143491
0
0.00703
0.249874
3,982
111
113
35.873874
0.823569
0
0
0.170455
0
0
0.013059
0.005776
0
0
0
0
0
1
0.022727
false
0
0.136364
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7a975bde69531b07d4ebbabad0e38aa1e1ed2b20
268
py
Python
app.py
zhoujiahua/TaskTool
ba8e359be0d016f0e14a5ac5671ce926945bf21e
[ "MIT" ]
null
null
null
app.py
zhoujiahua/TaskTool
ba8e359be0d016f0e14a5ac5671ce926945bf21e
[ "MIT" ]
null
null
null
app.py
zhoujiahua/TaskTool
ba8e359be0d016f0e14a5ac5671ce926945bf21e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- from flask import Flask from common.BaseClass import Student app = Flask(__name__) @app.route('/') def home_index(): BQ = Student('jerry', 18) return BQ.get_user_info() if __name__ == '__main__': app.run()
14.105263
36
0.645522
37
268
4.27027
0.756757
0
0
0
0
0
0
0
0
0
0
0.018349
0.186567
268
18
37
14.888889
0.706422
0.145522
0
0
0
0
0.061674
0
0
0
0
0
0
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
7aa3477bd6ed541a43bdde0d7bf39d526c22e133
646
py
Python
01/116.py
shuowangphd/lcpy
18e11bf7ca77acacadeeef93bf6b7f1667eae2cd
[ "MIT" ]
null
null
null
01/116.py
shuowangphd/lcpy
18e11bf7ca77acacadeeef93bf6b7f1667eae2cd
[ "MIT" ]
null
null
null
01/116.py
shuowangphd/lcpy
18e11bf7ca77acacadeeef93bf6b7f1667eae2cd
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None): self.val = val self.left = left self.right = right self.next = next """ class Solution: def connect(self, root: 'Optional[Node]') -> 'Option...
29.363636
101
0.520124
81
646
4.098765
0.320988
0.072289
0
0
0
0
0
0
0
0
0
0.002439
0.365325
646
22
102
29.363636
0.807317
0.368421
0
0
0
0
0.069825
0
0
0
0
0
0
1
0.083333
false
0
0
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
7aa4fa934c1256120ad178cb78b93a531007672d
821
py
Python
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
null
null
null
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
1
2020-10-30T02:01:39.000Z
2020-10-30T02:01:39.000Z
data/signals/rel_coords.py
TYSSSY/Apb-gcn
b7c9324d3ef3baafa2fe85d57fc1f81f24e0b1e7
[ "MIT" ]
null
null
null
import numpy as np def get_relative_coordinates(sample, references=(4, 8, 12, 16)): # input: C, T, V, M c, t, v, m = sample.shape final_sample = np.zeros((4 * c, t, v, m)) valid_frames = (sample != 0).sum(axis=3).sum(axis=2).sum(axis=0) > 0 start = valid_frames.argmax...
31.576923
88
0.5676
123
821
3.642276
0.382114
0.022321
0.033482
0.044643
0.125
0
0
0
0
0
0
0.036244
0.260658
821
25
89
32.84
0.701812
0.06821
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7aa5f484404f8770edc1499119077e82dbc3d9e3
4,774
py
Python
src/preprocess_librosa.py
Un-bias/musicnn-training
c7aa67bd1641592fcf43467c37db01b553dd4e5c
[ "0BSD" ]
41
2019-07-24T07:11:53.000Z
2022-03-28T13:42:34.000Z
src/preprocess_librosa.py
Un-bias/musicnn-training
c7aa67bd1641592fcf43467c37db01b553dd4e5c
[ "0BSD" ]
3
2020-05-04T13:17:58.000Z
2020-11-14T14:37:06.000Z
src/preprocess_librosa.py
Un-bias/musicnn-training
c7aa67bd1641592fcf43467c37db01b553dd4e5c
[ "0BSD" ]
13
2019-08-19T15:52:00.000Z
2021-03-22T02:36:33.000Z
import os import librosa from joblib import Parallel, delayed import json import config_file import argparse import pickle import numpy as np from pathlib import Path DEBUG = False def compute_audio_repr(audio_file, audio_repr_file): audio, sr = librosa.load(audio_file, sr=config['resample_sr']) if config['...
42.247788
139
0.651445
610
4,774
4.855738
0.288525
0.069885
0.047265
0.067522
0.304862
0.272113
0.243754
0.227549
0.133018
0.053005
0
0.003512
0.22455
4,774
112
140
42.625
0.796596
0.076875
0
0.0375
0
0
0.205233
0.055518
0
0
0
0
0
1
0.0375
false
0
0.1125
0
0.1625
0.0875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7aa67f347816a860d8954caac66621040cc0046d
532
py
Python
45/45.py
cleamoon/ProjectEuler
8d51ad089e5fa21c709161fc658f8c4b533a3ac3
[ "MIT" ]
null
null
null
45/45.py
cleamoon/ProjectEuler
8d51ad089e5fa21c709161fc658f8c4b533a3ac3
[ "MIT" ]
null
null
null
45/45.py
cleamoon/ProjectEuler
8d51ad089e5fa21c709161fc658f8c4b533a3ac3
[ "MIT" ]
null
null
null
ltn = [] lpn = [] for i in range(1, 1000000): t = 143 + i p = 165 + i ltn.append(t * (2 * t - 1)) lpn.append(p * (3 * p - 1) // 2) def bst(n, b = 0, e = len(ltn)): if b >= e: if ltn[b] == n: return True else: return False else: m = (b + e)//2 ...
18.344828
36
0.381579
84
532
2.416667
0.369048
0.059113
0.049261
0.108374
0.147783
0.147783
0
0
0
0
0
0.076923
0.462406
532
28
37
19
0.632867
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7aa6a0eddaf3a04a78ac717238e95549001e1d08
2,508
py
Python
tests/python/test_workitems.py
mdp/rpaframework
d427a3a4b9ea360780e449ece2674e275060310e
[ "Apache-2.0" ]
null
null
null
tests/python/test_workitems.py
mdp/rpaframework
d427a3a4b9ea360780e449ece2674e275060310e
[ "Apache-2.0" ]
null
null
null
tests/python/test_workitems.py
mdp/rpaframework
d427a3a4b9ea360780e449ece2674e275060310e
[ "Apache-2.0" ]
null
null
null
import copy import pytest from RPA.Robocloud.Items import BaseAdapter, Items VALID_DATABASE = { ("test-ws", "test-item"): {"username": "testguy", "address": "guy@company.com"}, ("test-ws", "second-item"): {"username": "another", "address": "dude@company.com"}, } class MockAdapter(BaseAdapter): DATABASE ...
27.56044
87
0.702153
329
2,508
5.155015
0.243161
0.063679
0.044222
0.064858
0.367335
0.288915
0.288915
0.267689
0.255896
0.255896
0
0
0.176236
2,508
90
88
27.866667
0.82091
0.042265
0
0.241379
0
0
0.130525
0
0
0
0
0
0.189655
1
0.172414
false
0
0.051724
0.017241
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7aa74729651c5f6bb13c86b7a22664c4c8570ee6
7,418
py
Python
seq2seq/models/conv_seq2seq.py
gyy8426/TF_concaption
7b3face47c96c885b2715605122328b7b6bef609
[ "Apache-2.0" ]
342
2017-06-23T12:47:32.000Z
2021-12-06T06:56:15.000Z
seq2seq/models/conv_seq2seq.py
gyy8426/TF_concaption
7b3face47c96c885b2715605122328b7b6bef609
[ "Apache-2.0" ]
26
2017-07-25T01:39:39.000Z
2020-06-08T09:59:17.000Z
seq2seq/models/conv_seq2seq.py
gyy8426/TF_concaption
7b3face47c96c885b2715605122328b7b6bef609
[ "Apache-2.0" ]
123
2017-06-25T16:02:37.000Z
2020-07-08T08:14:11.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.758242
181
0.685495
929
7,418
5.241119
0.259419
0.023413
0.025878
0.022181
0.376463
0.272335
0.222633
0.212364
0.151571
0.110084
0
0.01914
0.204098
7,418
181
182
40.983425
0.805556
0.209356
0
0.211382
0
0
0.209427
0.122065
0
0
0
0
0
1
0.089431
false
0
0.089431
0.01626
0.284553
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7aac8956f007f10c83a2012e4e3af7ab31bb2c4c
12,374
py
Python
src/approach/finetuning.py
tunglamlqddb/DFKD
924220a81d2a08bf07e50d86028e04899248d17b
[ "MIT" ]
null
null
null
src/approach/finetuning.py
tunglamlqddb/DFKD
924220a81d2a08bf07e50d86028e04899248d17b
[ "MIT" ]
null
null
null
src/approach/finetuning.py
tunglamlqddb/DFKD
924220a81d2a08bf07e50d86028e04899248d17b
[ "MIT" ]
null
null
null
import torch, warnings import torch.nn.functional as F import torch.nn as nn import numpy as np from argparse import ArgumentParser from .incremental_learning import Inc_Learning_Appr from datasets.exemplars_dataset import ExemplarsDataset class Appr(Inc_Learning_Appr): """Class implementing the finetuning base...
47.409962
223
0.601422
1,530
12,374
4.692157
0.191503
0.032595
0.020059
0.017551
0.333473
0.279983
0.256025
0.218136
0.195431
0.195431
0
0.011894
0.293357
12,374
261
224
47.409962
0.809126
0.091401
0
0.217172
0
0
0.033992
0.009393
0
0
0
0.003831
0
1
0.080808
false
0
0.035354
0.005051
0.207071
0.005051
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7aacb536ae303f634a3016d2c8edb89930e0c942
11,609
py
Python
SMA/lab_simfleet/simfleet/mystrategy.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
SMA/lab_simfleet/simfleet/mystrategy.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
SMA/lab_simfleet/simfleet/mystrategy.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
import json import random from loguru import logger from simfleet.customer import CustomerStrategyBehaviour from simfleet.fleetmanager import FleetManagerStrategyBehaviour from simfleet.helpers import PathRequestException, distance_in_meters from simfleet.protocol import ( REQUEST_PERFORMATIVE, ACCEPT_PERFORM...
41.909747
111
0.484193
917
11,609
5.970556
0.164667
0.073973
0.049315
0.06137
0.454247
0.384658
0.331872
0.262283
0.191233
0.179726
0
0.001321
0.413214
11,609
276
112
42.061594
0.802408
0.073564
0
0.348214
0
0
0.103131
0
0
0
0
0
0
1
0
false
0
0.040179
0
0.066964
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7ab152d88bdfe1c7ddd598bc9ed02543b5951c4d
1,582
py
Python
Chapter07/cell_counting.py
giulic3/DeepLearningLifeSciences
20b4b2eeff421d331722637899845e4c9a4a52a6
[ "MIT" ]
1
2020-04-06T04:17:27.000Z
2020-04-06T04:17:27.000Z
Chapter07/cell_counting.py
joe-nano/DeepLearningLifeSciences
258066f904159a7c1c81aba16e74ae4e6b4263b5
[ "MIT" ]
null
null
null
Chapter07/cell_counting.py
joe-nano/DeepLearningLifeSciences
258066f904159a7c1c81aba16e74ae4e6b4263b5
[ "MIT" ]
1
2020-02-16T23:43:16.000Z
2020-02-16T23:43:16.000Z
import deepchem as dc import deepchem.models.tensorgraph.layers as layers import numpy as np import os import re RETRAIN = False # Load the datasets. image_dir = 'BBBC005_v1_images' files = [] labels = [] for f in os.listdir(image_dir): if f.endswith('.TIF'): files.append(os.path.join(image_dir, f)) labels....
32.285714
95
0.747155
248
1,582
4.625
0.459677
0.031386
0.012206
0.01918
0.040105
0.040105
0
0
0
0
0
0.031892
0.108091
1,582
48
96
32.958333
0.781006
0.054994
0
0
0
0
0.075788
0
0
0
0
0
0
1
0
false
0
0.128205
0
0.128205
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7ab161405dab5a9d19625915f984dc3130fe9f36
2,428
py
Python
fn_playbook_utils/fn_playbook_utils/components/funct_pb_get_playbook_data.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_playbook_utils/fn_playbook_utils/components/funct_pb_get_playbook_data.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_playbook_utils/fn_playbook_utils/components/funct_pb_get_playbook_data.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- #(c) Copyright IBM Corp. 2010, 2021. All Rights Reserved. #pragma pylint: disable=unused-argument, no-self-use, line-too-long """AppFunction implementation""" from cachetools import cached, TTLCache from resilient_circuits import AppFunctionComponent, app_function, FunctionResult from fn_playbo...
36.787879
99
0.66598
315
2,428
4.790476
0.35873
0.042412
0.032472
0.039761
0.163022
0.031809
0
0
0
0
0
0.008104
0.237644
2,428
65
100
37.353846
0.807131
0.250412
0
0
0
0
0.122248
0
0
0
0
0
0
1
0.088235
false
0
0.088235
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ab7f304cf92455bd030e34fb9b57d32e2f4394e
1,864
py
Python
Amazone/Android_Phone_Price.py
anivalogy/Web_Scraping
9431ee434e9c19adcf45d185065625608755acc4
[ "Apache-2.0" ]
1
2020-11-10T11:30:07.000Z
2020-11-10T11:30:07.000Z
Amazone/Android_Phone_Price.py
anivalogy/Web_Scraping
9431ee434e9c19adcf45d185065625608755acc4
[ "Apache-2.0" ]
null
null
null
Amazone/Android_Phone_Price.py
anivalogy/Web_Scraping
9431ee434e9c19adcf45d185065625608755acc4
[ "Apache-2.0" ]
1
2020-12-24T12:25:40.000Z
2020-12-24T12:25:40.000Z
import csv from bs4 import BeautifulSoup from selenium import webdriver import csv from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver import Chrome def get_url(search_item): template="https://www.amazon.in/s?k={}&crid=1GNY6Q6AHOOKS&sprefix=and%2Caps%2C524&ref=nb_sb_ss_ts-oa...
24.207792
111
0.624464
235
1,864
4.859574
0.455319
0.052539
0.022767
0.028021
0.108581
0.108581
0.108581
0.108581
0.108581
0.108581
0
0.012057
0.243562
1,864
76
112
24.526316
0.797872
0.045064
0
0.212766
0
0.021277
0.168362
0
0
0
0
0
0
1
0.06383
false
0
0.148936
0
0.276596
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ab8479693143f8c93f4e4b1bf7ece0d1eb036d2
658
py
Python
construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def bstFromPreorder(self, preorder: List[int]) -> Optional[TreeNode]: def subtree(lo, hi): ...
31.333333
73
0.550152
78
658
4.576923
0.423077
0.061625
0
0
0
0
0
0
0
0
0
0.009324
0.348024
658
21
74
31.333333
0.822844
0.051672
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0
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
7ab93f465042b5cca276e73a401edc8f8be4aec0
4,113
py
Python
aimsprop/xyz.py
mtzgroup/aimsprop
464d88ad7a817da73027fd2ab7b12476bf59f83d
[ "MIT" ]
1
2022-03-28T13:11:56.000Z
2022-03-28T13:11:56.000Z
aimsprop/xyz.py
mtzgroup/aimsprop
464d88ad7a817da73027fd2ab7b12476bf59f83d
[ "MIT" ]
11
2021-03-17T17:53:58.000Z
2021-07-17T17:59:25.000Z
aimsprop/xyz.py
mtzgroup/aimsprop
464d88ad7a817da73027fd2ab7b12476bf59f83d
[ "MIT" ]
2
2021-04-05T08:36:35.000Z
2021-05-20T22:12:12.000Z
import os import re import numpy as np from . import atom_data, bundle # TODO: Maybe should be in atom data _N_table = {val: key for key, val in list(atom_data.atom_symbol_table.items())} def parse_xyz( filename: str, label=1, w=1.0, I=1, t0=0.0, dt=20.0, ts=None, N_table=None, ) ->...
30.021898
84
0.540968
548
4,113
4
0.306569
0.008212
0.00958
0.010949
0.097172
0.076186
0.057026
0.057026
0.05292
0
0
0.022787
0.349137
4,113
136
85
30.242647
0.79604
0.302942
0
0.046512
0
0
0.056139
0.013401
0
0
0
0.007353
0
1
0.023256
false
0
0.046512
0
0.081395
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7ab9500cd5c1495d990ceec333363832a2cb723e
745
py
Python
src/wafec/fi/hypothesis/models/test_parameter.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
src/wafec/fi/hypothesis/models/test_parameter.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
src/wafec/fi/hypothesis/models/test_parameter.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from . import Base class FITestParameter(Base): __tablename__ = 'test_parameter' id = Column(Integer, primary_key=True) test_id = Column(Integer, ForeignKey('test.id')) test = relationship('FITest') name = Column(String(255), index...
35.47619
88
0.759732
83
745
6.53012
0.385542
0.167897
0.110701
0.138376
0.193727
0.140221
0
0
0
0
0
0.004702
0.143624
745
20
89
37.25
0.844828
0
0
0
0
0
0.162416
0.126175
0
0
0
0
0
1
0
false
0
0.1875
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7abd3d620eef1318489c51e350759a7e9fd53d7a
1,481
py
Python
hack/merge_cluster_roles.py
philips/cluster-monitoring-operator
e3d89785ebd70b369e8b9b4a1d8cfe93d3354731
[ "Apache-2.0" ]
null
null
null
hack/merge_cluster_roles.py
philips/cluster-monitoring-operator
e3d89785ebd70b369e8b9b4a1d8cfe93d3354731
[ "Apache-2.0" ]
2
2018-08-13T11:46:13.000Z
2018-08-13T12:47:12.000Z
hack/merge_cluster_roles.py
philips/cluster-monitoring-operator
e3d89785ebd70b369e8b9b4a1d8cfe93d3354731
[ "Apache-2.0" ]
2
2018-09-09T19:03:40.000Z
2020-01-08T22:24:43.000Z
#!/usr/bin/python """ merge_cluster_roles.py - merge OpenShift cluster roles into one """ # Copyright (c) 2018 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.ap...
30.854167
74
0.667792
215
1,481
4.502326
0.525581
0.061983
0.035124
0.033058
0
0
0
0
0
0
0
0.009475
0.21607
1,481
47
75
31.510638
0.824289
0.427414
0
0
0
0
0.153382
0
0
0
0
0
0
1
0.04
false
0
0.16
0
0.2
0.28
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7abe0503f9560abe292475ee88102fdcd3ba34ab
7,005
py
Python
internationalflavor/timezone/data.py
MounirMesselmeni/django-internationalflavor
30ea407fc9972243ea45f45c1ce09d5d17961730
[ "BSD-3-Clause" ]
22
2015-02-09T11:01:56.000Z
2021-07-02T23:34:56.000Z
internationalflavor/timezone/data.py
MounirMesselmeni/django-internationalflavor
30ea407fc9972243ea45f45c1ce09d5d17961730
[ "BSD-3-Clause" ]
19
2015-02-09T11:04:09.000Z
2021-11-26T08:07:44.000Z
internationalflavor/timezone/data.py
MounirMesselmeni/django-internationalflavor
30ea407fc9972243ea45f45c1ce09d5d17961730
[ "BSD-3-Clause" ]
18
2015-04-16T08:39:38.000Z
2021-07-08T08:07:41.000Z
import datetime from django.core.exceptions import ImproperlyConfigured from django.utils.encoding import force_text from django.utils.functional import lazy from django.utils.translation import gettext_lazy as _, gettext import itertools from internationalflavor.timezone._cldr_data import TIMEZONE_NAMES, METAZONE_NAM...
39.801136
118
0.698644
940
7,005
5
0.218085
0.042128
0.032553
0.029787
0.262979
0.170213
0.105319
0.105319
0.039574
0.02
0
0.007788
0.211849
7,005
175
119
40.028571
0.843507
0.287937
0
0.12766
0
0
0.057172
0
0
0
0
0
0
1
0.074468
false
0
0.12766
0
0.308511
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7ac2453ef253d20470030f8d8112f23a1f877440
1,366
py
Python
sloth-scratch.py
xer0-1ne/sloth-scratch
1d81ffe65ff7d72fcc766a6ba025366a3319a838
[ "MIT" ]
null
null
null
sloth-scratch.py
xer0-1ne/sloth-scratch
1d81ffe65ff7d72fcc766a6ba025366a3319a838
[ "MIT" ]
null
null
null
sloth-scratch.py
xer0-1ne/sloth-scratch
1d81ffe65ff7d72fcc766a6ba025366a3319a838
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from assets.lib.bottle import route, run, static_file, response, request, redirect #get default routes for files/paths @route('/<filepath:path>') def server_static(filepath): return static_file(filepath, root="./") #route index as default page @route('/') def index(): filena...
25.296296
82
0.666911
157
1,366
5.764331
0.471338
0.053039
0.066298
0.059669
0.201105
0.201105
0.201105
0.201105
0.201105
0.201105
0
0.004521
0.190337
1,366
53
83
25.773585
0.813743
0.073206
0
0.216216
0
0
0.164025
0.01664
0
0
0
0
0
1
0.108108
false
0
0.054054
0.027027
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f816a322098d1a1e68d37250e949dfedc9e5d44
2,569
py
Python
neighbour/views.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
null
null
null
neighbour/views.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
4
2020-06-05T23:21:40.000Z
2021-06-10T21:57:32.000Z
neighbour/views.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required from .forms import SignupForm, HoodForm, UserProfileUpdateForm, UserUpdateForm from .models import * from django.core.urlresol...
30.223529
79
0.657844
293
2,569
5.706485
0.259386
0.047847
0.090909
0.037679
0.165072
0.088517
0.044258
0
0
0
0
0.006051
0.228104
2,569
84
80
30.583333
0.837115
0.034644
0
0.184615
0
0
0.07658
0
0
0
0
0
0
1
0.107692
false
0
0.153846
0.015385
0.415385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f81ac36d9e586a2803a67107baad029f84be150
2,636
py
Python
isitfit/dotMan.py
autofitcloud/isitf
6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1
[ "Apache-2.0" ]
82
2019-09-04T17:39:10.000Z
2021-08-10T14:59:18.000Z
isitfit/dotMan.py
autofitcloud/isitf
6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1
[ "Apache-2.0" ]
11
2019-09-10T03:54:19.000Z
2020-02-21T22:58:44.000Z
isitfit/dotMan.py
autofitcloud/isitf
6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1
[ "Apache-2.0" ]
9
2019-09-13T15:57:42.000Z
2021-02-13T15:56:40.000Z
import os class DotMan: def get_dotisitfit(self): # get home import pathlib p1_home = str(pathlib.Path.home()) # check dot folder p2_dot = os.path.join(p1_home, ".isitfit") if not os.path.exists(p2_dot): pathlib.Path(p2_dot).mkdir(exist_ok=True) return p2_dot def get_myuid(sel...
24.407407
74
0.646434
400
2,636
4.1425
0.34
0.042245
0.02414
0.019916
0.045263
0
0
0
0
0
0
0.008193
0.259105
2,636
107
75
24.635514
0.840246
0.270106
0
0.079365
0
0
0.05235
0
0
0
0
0
0
1
0.111111
false
0.015873
0.111111
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f865163bfbe4b0bc8d900996f2290d3bae441c0
437
py
Python
workflows/base/interaction_views.py
xflows/clowdflows
697b36ebc976d1ba4ab726bda2fc4593422af080
[ "MIT" ]
38
2015-11-21T08:16:14.000Z
2021-06-22T16:14:12.000Z
workflows/base/interaction_views.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/base/interaction_views.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
26
2016-01-11T17:51:07.000Z
2022-02-24T11:49:40.000Z
import json from django.shortcuts import render def base_js_snippet(request, input_dict, output_dict, widget): try: inputs = json.dumps(input_dict['in']) except: raise Exception("Problem serializing the inputs. Only JSON-serializable objects can be used.") return render(request, 'interacti...
36.416667
102
0.695652
54
437
5.481481
0.62963
0.091216
0.087838
0
0
0
0
0
0
0
0
0
0.19222
437
11
103
39.727273
0.838527
0
0
0
0
0
0.311213
0.075515
0
0
0
0
0
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
8f8686c5c30243fe1085ef5f1ba45de06bb5c4cd
928
py
Python
jira_devops/release_notes/settings.py
clutcher/jira_devops
61360f3fa9bd9b402d752dde84b3cf486245879e
[ "MIT" ]
null
null
null
jira_devops/release_notes/settings.py
clutcher/jira_devops
61360f3fa9bd9b402d752dde84b3cf486245879e
[ "MIT" ]
null
null
null
jira_devops/release_notes/settings.py
clutcher/jira_devops
61360f3fa9bd9b402d752dde84b3cf486245879e
[ "MIT" ]
null
null
null
import os from django.apps import AppConfig class ReleaseNotesAppConfig(AppConfig): name = 'jira_devops.release_notes' verbose_name = 'Release Notes' DEFAULT_JIRA_RELEASE_FIELD_MAP = { "hac_update": "customfield_13359", "need_impex": "customfield_13360", "need_manual": "customfie...
29.935484
119
0.690733
103
928
5.84466
0.533981
0.054817
0.079734
0.094684
0.086379
0
0
0
0
0
0
0.034341
0.215517
928
30
120
30.933333
0.792582
0
0
0
0
0
0.284483
0.050647
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f88225e95ec2579d2321422fdd57413d254306d
3,581
py
Python
azad/exp/alternatives/optuna_dqn2.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
6
2018-09-11T21:06:12.000Z
2022-01-28T17:36:52.000Z
azad/exp/alternatives/optuna_dqn2.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
null
null
null
azad/exp/alternatives/optuna_dqn2.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
2
2018-09-12T00:40:52.000Z
2018-10-29T15:45:54.000Z
"""Tune the dqn2 model of wythoff's using the opotune lib""" import optuna import fire import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.utils.data from torchvision import datasets from torchvision import transforms from azad.exp.alternatives import wythoff_dq...
29.113821
75
0.543144
411
3,581
4.579075
0.364964
0.035069
0.022317
0.023379
0.031881
0.031881
0
0
0
0
0
0.020282
0.366657
3,581
122
76
29.352459
0.809524
0.088523
0
0
0
0
0.061149
0
0
0
0
0
0
1
0.055556
false
0
0.122222
0.011111
0.233333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f90f912716a6632b2bcc2ac457c7c623545be22
869
py
Python
gsplines/services/gsplinesjson.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
3
2021-08-28T01:42:40.000Z
2021-12-02T22:39:45.000Z
gsplines/services/gsplinesjson.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
null
null
null
gsplines/services/gsplinesjson.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
null
null
null
from ..piecewisefunction.piecewisefunction import cPiecewiseFunction import json import numpy as np import gsplines.basis def piecewise2json(_pw): basis_name = _pw.basis_.__class__.__name__ if hasattr(_pw.basis_, 'params_'): basis_params = _pw.basis_.params_ else: basis_params = None ...
22.868421
68
0.665132
109
869
4.963303
0.385321
0.101664
0.048059
0
0
0
0
0
0
0
0
0.011852
0.223245
869
37
69
23.486486
0.78963
0
0
0.076923
0
0
0.008055
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f926ec70f17a27fd3a3870a6289f1a7f3c638c1
3,085
py
Python
ovos_utils/waiting_for_mycroft/settings_gui_generator.py
forslund/ovos_utils
bfca2d9175b72b0d157385af07627aefcd280177
[ "Apache-2.0" ]
3
2021-11-10T11:46:05.000Z
2022-03-06T01:59:51.000Z
ovos_utils/waiting_for_mycroft/settings_gui_generator.py
forslund/ovos_utils
bfca2d9175b72b0d157385af07627aefcd280177
[ "Apache-2.0" ]
5
2021-08-10T17:26:49.000Z
2022-03-03T14:43:55.000Z
ovos_utils/waiting_for_mycroft/settings_gui_generator.py
forslund/ovos_utils
bfca2d9175b72b0d157385af07627aefcd280177
[ "Apache-2.0" ]
1
2021-11-19T09:31:07.000Z
2021-11-19T09:31:07.000Z
# Copyright 2020 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
33.901099
75
0.60778
351
3,085
5.162393
0.339031
0.07947
0.07947
0.01766
0.449227
0.449227
0.449227
0.449227
0.397351
0.353201
0
0.00373
0.3047
3,085
91
76
33.901099
0.841026
0.316045
0
0.590909
0
0
0.050226
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f949563ac0e205ebc380e370afe4937e75dab84
2,690
py
Python
blender/.blender/scripts/textplugin_templates.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
41
2021-02-18T05:56:26.000Z
2021-12-06T07:58:15.000Z
blender/.blender/scripts/textplugin_templates.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
19
2021-02-18T05:59:03.000Z
2022-01-13T01:00:52.000Z
blender/.blender/scripts/textplugin_templates.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
18
2021-02-22T13:32:56.000Z
2022-01-22T12:38:29.000Z
#!BPY """ Name: 'Template Completion | Tab' Blender: 246 Group: 'TextPlugin' Shortcut: 'Tab' Tooltip: 'Completes templates based on the text preceding the cursor' """ # Only run if we have the required modules try: import bpy from BPyTextPlugin import * from Blender import Text except ImportError: OK = False else:...
21.693548
69
0.568773
427
2,690
3.531616
0.30445
0.019894
0.007958
0.01061
0.155172
0.155172
0.155172
0.140584
0.140584
0.140584
0
0.02891
0.215613
2,690
123
70
21.869919
0.685782
0.141264
0
0.265306
0
0
0.194166
0.032651
0
0
0.002612
0
0
1
0.010204
false
0
0.040816
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f94b300e2b34ff76f0d2873be32657ff67630be
1,939
py
Python
kive/file_access_utils.py
cfe-lab/Kive
e46b9eb40f085d579c12f47b6b5696d5ee93a9d3
[ "BSD-3-Clause" ]
2
2016-10-02T18:24:53.000Z
2019-01-19T09:37:56.000Z
kive/file_access_utils.py
cfe-lab/Kive
e46b9eb40f085d579c12f47b6b5696d5ee93a9d3
[ "BSD-3-Clause" ]
1,190
2015-07-10T22:57:23.000Z
2022-03-30T05:10:14.000Z
kive/file_access_utils.py
cfe-lab/Kive
e46b9eb40f085d579c12f47b6b5696d5ee93a9d3
[ "BSD-3-Clause" ]
2
2019-07-16T00:25:25.000Z
2019-11-25T16:32:58.000Z
""" Basic file-checking functionality used by Kive. """ import hashlib import mimetypes import os from contextlib import contextmanager from django.http import FileResponse def build_download_response(field_file): # Intentionally leave this open for streaming response. # FileResponse will close it when stre...
30.777778
78
0.700877
268
1,939
4.951493
0.488806
0.094951
0.03165
0.027129
0
0
0
0
0
0
0
0.009253
0.219701
1,939
62
79
31.274194
0.867812
0.410005
0
0
0
0
0.057728
0
0
0
0
0
0
1
0.09375
false
0
0.15625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f958f12563b74a6555a910c0edcd3c3aff2c51a
16,170
py
Python
gem/quaternion.py
AlexMarinescu/pyGameMath
5257291431bb45db0274dc48edf24694ecfe2e2d
[ "BSD-2-Clause-FreeBSD" ]
8
2020-04-15T22:30:52.000Z
2022-01-18T01:05:45.000Z
gem/quaternion.py
SmithSamuelM/gem
d05dfa50739aa0b3dcd5e9cd2eb7d147fb4c0d63
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
gem/quaternion.py
SmithSamuelM/gem
d05dfa50739aa0b3dcd5e9cd2eb7d147fb4c0d63
[ "BSD-2-Clause-FreeBSD" ]
1
2021-11-12T00:41:21.000Z
2021-11-12T00:41:21.000Z
import math import six.moves as sm from gem import vector from gem import matrix def quat_identity(): ''' Returns the quaternion identity. ''' return [1.0, 0.0, 0.0, 0.0] def quat_add(quat, quat1): ''' Add two quaternions. ''' return [quat[0] + quat1[0], quat[1] + quat1[1], quat[2] + quat1[2], quat[3]...
32.865854
123
0.60402
2,229
16,170
4.309107
0.08838
0.011036
0.008121
0.006663
0.570953
0.450703
0.389485
0.356065
0.300156
0.232795
0
0.052518
0.254607
16,170
491
124
32.93279
0.744379
0.095857
0
0.300836
0
0
0
0
0
0
0
0
0
1
0.169916
false
0
0.011142
0.019499
0.401114
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f980b7c105970772ce222d03d8f0a75f6d84be2
9,141
py
Python
entity.py
TheNicGard/DungeonStar
525aeb53217166d2ce83e4e91a3b8c1b102f0dcb
[ "MIT" ]
3
2019-07-11T17:54:42.000Z
2021-03-09T10:58:13.000Z
entity.py
BandW2011/DungeonStar
525aeb53217166d2ce83e4e91a3b8c1b102f0dcb
[ "MIT" ]
1
2019-07-11T17:55:38.000Z
2020-05-03T06:34:56.000Z
entity.py
TheNicGard/DungeonStar
525aeb53217166d2ce83e4e91a3b8c1b102f0dcb
[ "MIT" ]
null
null
null
import tcod as libtcod import math from components.item import Item from render_functions import RenderOrder class Entity: def __init__(self, id, x, y, char, color, name, weight=0, blocks=False, render_order = RenderOrder.CORPSE, fighter=None, ai=None, item=None, inventory=None, s...
37.310204
122
0.597528
1,260
9,141
4.244444
0.16746
0.020194
0.029918
0.036462
0.544316
0.544316
0.514959
0.499439
0.48074
0.47457
0
0.007801
0.326879
9,141
244
123
37.463115
0.861368
0.233672
0
0.32716
0
0
0.009897
0
0
0
0
0
0
1
0.080247
false
0
0.024691
0.012346
0.203704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f99c35a950490ba3164b9cd0128d650d0ec5cf9
5,459
py
Python
qasrl/models/question.py
gililior/qasrl-modeling
2f9684536f6d5f0283b0e4b90a911ea12fa72f72
[ "MIT" ]
1
2021-07-18T18:55:54.000Z
2021-07-18T18:55:54.000Z
qasrl/models/question.py
gililior/qasrl-modeling
2f9684536f6d5f0283b0e4b90a911ea12fa72f72
[ "MIT" ]
2
2021-09-13T15:52:39.000Z
2021-10-06T21:58:06.000Z
qasrl/models/question.py
gililior/qasrl-modeling
2f9684536f6d5f0283b0e4b90a911ea12fa72f72
[ "MIT" ]
1
2021-09-19T13:46:49.000Z
2021-09-19T13:46:49.000Z
from typing import Dict, List, TextIO, Optional, Set, Tuple from overrides import overrides import torch from torch.nn.modules import Linear, Dropout from torch.autograd import Variable import torch.nn.functional as F from allennlp.common import Params from allennlp.common.checks import ConfigurationError from allenn...
50.546296
122
0.709104
669
5,459
5.428999
0.230194
0.055066
0.053965
0.036344
0.377478
0.294328
0.236509
0.199615
0.19163
0.19163
0
0.001643
0.219454
5,459
107
123
51.018692
0.850739
0.077304
0
0.151163
0
0
0.049334
0
0
0
0
0
0
1
0.081395
false
0
0.232558
0.023256
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f9c7d739dfd9df8261ba3fb8f8da2e2029bd3f2
7,059
py
Python
libkloudtrader/algorithm.py
KloudTrader/libkloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
11
2019-01-16T16:10:09.000Z
2021-03-02T00:59:17.000Z
libkloudtrader/algorithm.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
425
2019-07-10T06:59:49.000Z
2021-01-12T05:32:14.000Z
libkloudtrader/algorithm.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
6
2019-03-15T16:25:06.000Z
2021-05-03T10:02:13.000Z
from typing import Any, List import random import time import datetime import numpy as np import pandas as pd import libkloudtrader.stocks as stocks from libkloudtrader.exceptions import InvalidAlgorithmMode, EmptySymbolBucket, InvalidDataFeedType from libkloudtrader.enumerables import Data_Types import libkloudtrader....
40.803468
145
0.563536
732
7,059
5.239071
0.271858
0.03442
0.032855
0.017731
0.257888
0.226336
0.167927
0.147588
0.131421
0.131421
0
0.009994
0.333758
7,059
172
146
41.040698
0.803104
0.099873
0
0.22549
0
0
0.11556
0.014315
0
0
0
0
0
1
0.019608
false
0
0.147059
0
0.166667
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f9d7cb9d8688441fb1f44b0f15087c179e57505
34,164
py
Python
src/wavecalLib.py
rterrien/HPFSpec2
e7cefc37184926ae65a4626a0fe3299cc6b3deb3
[ "MIT" ]
null
null
null
src/wavecalLib.py
rterrien/HPFSpec2
e7cefc37184926ae65a4626a0fe3299cc6b3deb3
[ "MIT" ]
null
null
null
src/wavecalLib.py
rterrien/HPFSpec2
e7cefc37184926ae65a4626a0fe3299cc6b3deb3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function, division, unicode_literals import numpy as np import copy import scipy.optimize from skimage import filters from skimage import morphology from scipy import interpolate from astropy.stats import biweight_location, mad_std from collections import OrderedDict...
33.363281
140
0.61837
4,502
34,164
4.566193
0.153487
0.016199
0.021112
0.01868
0.367223
0.327674
0.297174
0.276937
0.272316
0.261176
0
0.011877
0.287759
34,164
1,023
141
33.395894
0.832943
0.42776
0
0.367946
0
0
0.05662
0
0
0
0
0
0.011287
1
0.054176
false
0
0.031603
0
0.106095
0.011287
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fa0f8b72083d7c88830c1eaf19a165da04a03d6
4,215
py
Python
src/update_repositories_md.py
computer-science-engineering/readme
0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8
[ "MIT" ]
null
null
null
src/update_repositories_md.py
computer-science-engineering/readme
0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8
[ "MIT" ]
8
2021-01-04T10:38:37.000Z
2021-04-24T06:32:12.000Z
src/update_repositories_md.py
computer-science-engineering/readme
0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8
[ "MIT" ]
null
null
null
import json import os from itertools import chain, groupby from operator import itemgetter, sub from urllib.parse import urlparse import git import numpy as np import validators from mdutils.mdutils import MdUtils LCS_REPO_NAME = 'learning-computer-science' def walk_max_depth(top, maxdepth): dirs, nondirs = [],...
32.423077
83
0.612337
545
4,215
4.504587
0.231193
0.034216
0.021996
0.021181
0.154379
0.099389
0.052953
0.030957
0.030957
0.030957
0
0.004881
0.270937
4,215
129
84
32.674419
0.794012
0.018268
0
0.096154
0
0
0.074873
0.006058
0
0
0
0
0
1
0.086538
false
0
0.086538
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fa273b6250c57b641ea8334821621b4a5dcb2d9
625
py
Python
intercepts.py
XDCoder3289/x_y_intercepts_coordinate-plane
f332829f0f8055c2a05b7cbf9564105b81e96407
[ "MIT" ]
null
null
null
intercepts.py
XDCoder3289/x_y_intercepts_coordinate-plane
f332829f0f8055c2a05b7cbf9564105b81e96407
[ "MIT" ]
null
null
null
intercepts.py
XDCoder3289/x_y_intercepts_coordinate-plane
f332829f0f8055c2a05b7cbf9564105b81e96407
[ "MIT" ]
null
null
null
# Calculator for calculating x and y intercepts xaxis = int(input("Enter the x axis(excluding the variable): ")) yaxis = int(input("Enter the y axis(excluding the variable): ")) equality = int(input("What is the equation equal to: ")) # example 3x + 4y = 6 # x - intercept can be found out by supposing y = 0 # ...
27.173913
66
0.6256
87
625
4.448276
0.494253
0.103359
0.067183
0.082687
0
0
0
0
0
0
0
0.019272
0.2528
625
23
67
27.173913
0.809422
0.2176
0
0
0
0
0.310195
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.153846
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fa45edbf6a77ed236667d3c6563904200b0867d
1,950
py
Python
cimbar/util/symhash.py
sz3/cimbar
6d41d8b7bf42a646e6afec5772525fc6296c4c5a
[ "MIT" ]
25
2020-08-21T01:19:34.000Z
2022-03-26T12:58:31.000Z
cimbar/util/symhash.py
sz3/cimbar
6d41d8b7bf42a646e6afec5772525fc6296c4c5a
[ "MIT" ]
null
null
null
cimbar/util/symhash.py
sz3/cimbar
6d41d8b7bf42a646e6afec5772525fc6296c4c5a
[ "MIT" ]
4
2021-01-04T08:54:32.000Z
2022-03-26T13:00:20.000Z
import imagehash def matrix_slice(l, dim, start, end): # start and end are tuples startX, startY = start endX, endY = end res = [] print(f'len l is {len(l)}') for y in range(startY, endY): for x in range(startX, endX): i = x + (y*dim) print(f'{x}, {y} ({i}) = {l...
29.545455
81
0.533846
262
1,950
3.847328
0.236641
0.098214
0.019841
0.041667
0.198413
0.081349
0.061508
0
0
0
0
0.02784
0.318462
1,950
65
82
30
0.730625
0.045128
0
0.08
0
0
0.02154
0
0
0
0
0
0
1
0.14
false
0
0.02
0.04
0.3
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fa806eec0f9962a1d72ce6896e50f6d4b6fa870
3,417
py
Python
leaf/doc_events/salary_slip.py
leaftechnology/leaf
7f1ce0628a19605615a93c2673f08bdc91ca2c0d
[ "MIT" ]
null
null
null
leaf/doc_events/salary_slip.py
leaftechnology/leaf
7f1ce0628a19605615a93c2673f08bdc91ca2c0d
[ "MIT" ]
null
null
null
leaf/doc_events/salary_slip.py
leaftechnology/leaf
7f1ce0628a19605615a93c2673f08bdc91ca2c0d
[ "MIT" ]
1
2020-06-11T21:44:59.000Z
2020-06-11T21:44:59.000Z
import frappe from datetime import * @frappe.whitelist() def add_leave_encashment(doc, method): from_date = (datetime.strptime(doc.start_date, "%Y-%m-%d")).date() to_date = (datetime.strptime(doc.end_date, "%Y-%m-%d")).date() salary_structure = frappe.db.sql(""" SELECT * FROM `tabSalary Structure Assignme...
48.126761
180
0.648815
450
3,417
4.728889
0.22
0.084586
0.036184
0.031955
0.388628
0.286654
0.24906
0.24906
0.214286
0.214286
0
0.019181
0.206614
3,417
70
181
48.814286
0.765769
0.002049
0
0.172414
0
0.034483
0.215312
0
0
0
0
0
0
1
0.12069
false
0
0.034483
0.017241
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fa83efc91ad5f26caada18999efa7a20f73758a
1,427
py
Python
setup.py
openeuler-mirror/A-Tune-Collector
ce1d990034eb3fbdcc8e0101be955a7370bdc6c8
[ "MulanPSL-1.0" ]
null
null
null
setup.py
openeuler-mirror/A-Tune-Collector
ce1d990034eb3fbdcc8e0101be955a7370bdc6c8
[ "MulanPSL-1.0" ]
null
null
null
setup.py
openeuler-mirror/A-Tune-Collector
ce1d990034eb3fbdcc8e0101be955a7370bdc6c8
[ "MulanPSL-1.0" ]
null
null
null
import os import shutil from setuptools import setup, find_packages from setuptools.command.install import install from setuptools.command.test import test version = '0.1' class InstallScripts(install): """ install scripts """ def run(self): install.run(self) class TestCommand(test): ...
26.924528
111
0.602663
159
1,427
5.251572
0.490566
0.083832
0.050299
0
0
0
0
0
0
0
0
0.009625
0.271899
1,427
52
112
27.442308
0.794033
0.01822
0
0
0
0
0.215328
0.082482
0
0
0
0
0
1
0.055556
false
0
0.138889
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
8fa88115d46b2c412775b4cba4b87b0497c0dd29
3,002
py
Python
projects/CharGrid/inference.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
3
2020-03-15T18:33:21.000Z
2020-03-28T18:06:45.000Z
projects/CharGrid/inference.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
2
2021-09-08T01:46:39.000Z
2022-01-13T02:22:56.000Z
projects/CharGrid/inference.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
null
null
null
import os import random import cv2 import detectron2.utils.comm as comm from detectron2 import model_zoo from detectron2.checkpoint import DetectionCheckpointer from detectron2.config import get_cfg from detectron2.data import build_detection_test_loader, build_detection_train_loader, get_detection_dataset_dicts, \ ...
33.730337
117
0.675883
368
3,002
5.309783
0.383152
0.078813
0.027636
0.024565
0.178096
0.134084
0.102354
0.102354
0.053224
0.053224
0
0.012356
0.218188
3,002
88
118
34.113636
0.820196
0.012991
0
0.077922
0
0
0.038838
0
0
0
0
0
0
1
0.038961
false
0
0.233766
0
0.298701
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fab5fa61656c5e5cabced79af44120fbf3f0dc1
7,953
py
Python
romshake/core/numerical_rom_builder.py
jrekoske/reduced-order-shaking
cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47
[ "MIT" ]
null
null
null
romshake/core/numerical_rom_builder.py
jrekoske/reduced-order-shaking
cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47
[ "MIT" ]
null
null
null
romshake/core/numerical_rom_builder.py
jrekoske/reduced-order-shaking
cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47
[ "MIT" ]
null
null
null
import os import pickle import logging import numpy as np import pandas as pd from scipy.stats import qmc from romshake.sample import voronoi from romshake.core.reduced_order_model import ReducedOrderModel FNAME = 'rom_builder.pkl' class NumericalRomBuilder(): def __init__(self, folder, simulator, n_seeds_initi...
40.576531
78
0.608324
994
7,953
4.693159
0.246479
0.019293
0.018006
0.013934
0.173633
0.101393
0.052519
0.0388
0.032583
0.017578
0
0.002179
0.307557
7,953
195
79
40.784615
0.844925
0.28178
0
0.070175
0
0
0.061636
0
0
0
0
0
0
1
0.04386
false
0
0.070175
0
0.149123
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fac5dd366786148f026b7a575637e3933c748e7
37,610
py
Python
misc/model.py
TheShadow29/grounded-video-description
eae96ba8db084e9cec6aac5cb920112f761f3ac5
[ "BSD-3-Clause" ]
1
2021-04-19T12:05:34.000Z
2021-04-19T12:05:34.000Z
misc/model.py
TheShadow29/grounded-video-description
eae96ba8db084e9cec6aac5cb920112f761f3ac5
[ "BSD-3-Clause" ]
null
null
null
misc/model.py
TheShadow29/grounded-video-description
eae96ba8db084e9cec6aac5cb920112f761f3ac5
[ "BSD-3-Clause" ]
1
2021-07-12T07:16:18.000Z
2021-07-12T07:16:18.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from __future__ import absolute_import from __future__ import division from __future__ import print_function import torc...
50.619112
168
0.602632
5,275
37,610
3.992038
0.078863
0.038465
0.015956
0.014959
0.639757
0.574366
0.527021
0.469085
0.430715
0.413335
0
0.021157
0.282398
37,610
742
169
50.687332
0.759087
0.086546
0
0.399287
0
0
0.018507
0.004087
0
0
0
0
0.016043
1
0.012478
false
0
0.030303
0
0.065954
0.00713
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fac820506cfa2b173f4a71f0937824ec8098018
5,371
py
Python
apps/front/urls.py
1786016767jjk/pj
17de9e2ab2bac842abf7ad4605c00dcb1a7d079f
[ "Apache-2.0" ]
null
null
null
apps/front/urls.py
1786016767jjk/pj
17de9e2ab2bac842abf7ad4605c00dcb1a7d079f
[ "Apache-2.0" ]
null
null
null
apps/front/urls.py
1786016767jjk/pj
17de9e2ab2bac842abf7ad4605c00dcb1a7d079f
[ "Apache-2.0" ]
null
null
null
# 前台 from flask.views import MethodView from apps.front.forms import SendSmsCodeForm,SignupFrom,FindpwdFrom,SendCodeForm,AddPostForm,SigninFrom from flask import Blueprint,make_response from flask import render_template,session from flask import views,request,jsonify import string,random from apps.common.baseResp imp...
31.046243
183
0.62614
620
5,371
5.341935
0.346774
0.043176
0.052838
0.037742
0.176027
0.156099
0.10628
0.10628
0.035024
0.035024
0
0.015885
0.24986
5,371
173
184
31.046243
0.806155
0.101098
0
0.259843
0
0
0.062905
0
0
0
0
0
0
1
0.094488
false
0.015748
0.141732
0.015748
0.433071
0.031496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fac9ed6a463a4b70203af101a3a252ddbc496f4
1,911
py
Python
logger.py
thatsIch/sublime-rainmeter
89d67adfd0ef196360785aa2aedecb693f71e965
[ "MIT" ]
56
2015-11-16T06:45:51.000Z
2021-12-31T10:06:55.000Z
logger.py
thatsIch/sublime-rainmeter
89d67adfd0ef196360785aa2aedecb693f71e965
[ "MIT" ]
82
2016-11-06T01:18:50.000Z
2021-12-15T04:37:50.000Z
logger.py
thatsIch/sublime-rainmeter
89d67adfd0ef196360785aa2aedecb693f71e965
[ "MIT" ]
8
2015-11-26T19:28:49.000Z
2021-03-08T22:39:26.000Z
"""This module provides general methods for logging puprposes. Basic operations are: * info * error with these operations it is easier to track from where the information is printed """ import os import inspect from datetime import datetime import sublime __LOG = None ''' Called automatically from ST3 if plugin...
22.482353
99
0.682365
238
1,911
5.281513
0.470588
0.038186
0.050915
0.055688
0.23389
0.23389
0.186158
0.186158
0.186158
0.186158
0
0.007299
0.211408
1,911
84
100
22.75
0.826808
0.207745
0
0.277778
0
0
0.076692
0.037594
0
0
0
0
0
1
0.138889
false
0
0.111111
0
0.277778
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
8fb18dd9019ef56c95d458fb46ca62af50467f38
4,655
py
Python
doc_gen/doc_gen.py
alters-mit/multimodal_challenge
1a2c6bdde290e474fa2cd6400970ef723f50ac30
[ "MIT" ]
1
2022-01-23T08:57:02.000Z
2022-01-23T08:57:02.000Z
doc_gen/doc_gen.py
alters-mit/multimodal_challenge
1a2c6bdde290e474fa2cd6400970ef723f50ac30
[ "MIT" ]
null
null
null
doc_gen/doc_gen.py
alters-mit/multimodal_challenge
1a2c6bdde290e474fa2cd6400970ef723f50ac30
[ "MIT" ]
null
null
null
from pathlib import Path from py_md_doc import PyMdDoc import re if __name__ == "__main__": # API documentation. md = PyMdDoc(input_directory=Path("../multimodal_challenge"), files=["dataset/dataset_trial.py", "dataset/env_audio_materials...
62.905405
120
0.565199
586
4,655
4.346416
0.269625
0.090695
0.051826
0.066745
0.369454
0.332548
0.303887
0.279545
0.253632
0.253632
0
0.005091
0.240387
4,655
73
121
63.767123
0.715215
0.108915
0
0.08
0
0.06
0.369886
0.094408
0
0
0
0
0
1
0
false
0
0.06
0
0.06
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fb2aab2d43bbb4a377c18a57b8bf99fa7afb6cb
13,288
py
Python
squidasm/sim/stack/common.py
QuTech-Delft/squidasm
1d223a428620a2fb42a8a0e321dce732a1678f0d
[ "MIT" ]
2
2022-01-16T00:25:27.000Z
2022-01-21T13:56:45.000Z
squidasm/sim/stack/common.py
QuTech-Delft/squidasm
1d223a428620a2fb42a8a0e321dce732a1678f0d
[ "MIT" ]
8
2022-01-20T14:00:47.000Z
2022-03-29T13:05:21.000Z
squidasm/sim/stack/common.py
QuTech-Delft/squidasm
1d223a428620a2fb42a8a0e321dce732a1678f0d
[ "MIT" ]
1
2022-01-23T18:55:47.000Z
2022-01-23T18:55:47.000Z
import logging from dataclasses import dataclass from typing import Dict, Generator, List, Optional, Set, Tuple, Union import netsquid as ns from netqasm.lang import operand from netqasm.lang.encoding import RegisterName from netqasm.sdk.shared_memory import Arrays, RegisterGroup, setup_registers from netsquid.compone...
33.725888
88
0.620184
1,614
13,288
4.885998
0.157373
0.02739
0.020289
0.006974
0.352904
0.326401
0.29191
0.244103
0.203779
0.175374
0
0.001685
0.285446
13,288
393
89
33.811705
0.828857
0.03966
0
0.274194
0
0
0.039881
0.01052
0
0
0
0
0.022581
1
0.158065
false
0.003226
0.032258
0.035484
0.374194
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fb746921db0beee169291a09d57914c192dae4a
3,599
py
Python
rocheml/test/test_datasetgenerator.py
haydenroche5/rocheml
e081915f83697a6b95d7e13a63eb9a69e4bdde84
[ "MIT" ]
null
null
null
rocheml/test/test_datasetgenerator.py
haydenroche5/rocheml
e081915f83697a6b95d7e13a63eb9a69e4bdde84
[ "MIT" ]
null
null
null
rocheml/test/test_datasetgenerator.py
haydenroche5/rocheml
e081915f83697a6b95d7e13a63eb9a69e4bdde84
[ "MIT" ]
null
null
null
import unittest from datasetio.datasetwriter import DatasetWriter from datasetio.datasetgenerator import DatasetGenerator import h5py import os import numpy as np import string import random import math class TestDatasetGenerator(unittest.TestCase): def setUp(self): self.feat_length = 5 self.seq_l...
35.284314
87
0.591275
430
3,599
4.716279
0.251163
0.088757
0.02712
0.02712
0.361933
0.33925
0.325937
0.294379
0.294379
0.294379
0
0.008454
0.309808
3,599
101
88
35.633663
0.807971
0.021395
0
0.231707
0
0
0.031818
0
0
0
0
0
0.02439
1
0.097561
false
0
0.109756
0.012195
0.256098
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fba32d12111f85dc80af9dc8bb2227ff00fd5d8
1,814
py
Python
tests/v2/test_parser.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
14
2018-03-02T15:39:19.000Z
2020-02-25T12:52:40.000Z
tests/v2/test_parser.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
16
2018-03-19T15:02:18.000Z
2020-02-08T02:06:07.000Z
tests/v2/test_parser.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
14
2018-03-17T10:43:30.000Z
2020-03-12T10:49:51.000Z
"""Test parser functions that converts the incoming json from API into dataclass models.""" from dataclasses import dataclass from typing import Optional import pytest from aiohue.util import dataclass_from_dict @dataclass class BasicModelChild: """Basic test model.""" a: int b: str c: str d: Op...
25.549296
91
0.624035
237
1,814
4.704641
0.337553
0.116592
0.13722
0.145291
0.251121
0.222422
0
0
0
0
0
0.016393
0.260198
1,814
70
92
25.914286
0.814456
0.233186
0
0.346939
0
0
0.044021
0
0
0
0
0
0.142857
1
0.020408
false
0
0.081633
0
0.346939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fba6a4b08985a65fc7dc336160371e54cc2ae45
2,155
py
Python
core/src/zeit/cms/workflow/modified.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/workflow/modified.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/workflow/modified.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
from datetime import datetime import pytz import zeit.cms.content.dav import zeit.cms.interfaces import zeit.cms.workflow.interfaces import zope.component import zope.dublincore.interfaces import zope.interface MIN_DATE = datetime.min.replace(tzinfo=pytz.UTC) @zope.component.adapter(zeit.cms.interfaces.ICMSContent)...
34.206349
78
0.76891
261
2,155
6.176245
0.237548
0.069479
0.065136
0.108561
0.42866
0.365385
0.365385
0.365385
0.318859
0.245658
0
0
0.141067
2,155
62
79
34.758065
0.870881
0
0
0.24
0
0
0.015777
0
0
0
0
0
0
1
0.08
false
0
0.16
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fbaf754c41ad4481aa6be8c252c4463ffd41432
10,141
py
Python
bin/dm_proc_imob.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
bin/dm_proc_imob.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
bin/dm_proc_imob.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This analyzes imitate observe behavioural data.It could be generalized to analyze any rapid event-related design experiment fairly easily. Usage: dm_proc_imob.py [options] <study> Arguments: <study> Name of study in system-wide configuration file. Options: --subject ...
40.40239
176
0.636229
1,451
10,141
4.24397
0.229497
0.032153
0.04417
0.042222
0.38584
0.325106
0.297174
0.286781
0.282559
0.242611
0
0.021731
0.228577
10,141
250
177
40.564
0.765435
0.189922
0
0.19375
0
0.1
0.472905
0.172324
0
0
0
0
0
1
0.025
false
0
0.05625
0
0.10625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fbddd6698d341ba15c0546d8eddaff98692a0b3
1,713
py
Python
examples/cls/v20201016/uploadlog.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
examples/cls/v20201016/uploadlog.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
examples/cls/v20201016/uploadlog.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf-8 -*- import os import sys from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # 导入对应产品模块的client models。 from tencentcloud.common import common_client from tencentcloud.common.profile.client_profile import ClientPr...
34.959184
95
0.730881
172
1,713
7.197674
0.581395
0.06462
0.088853
0.045234
0.048465
0
0
0
0
0
0
0.055827
0.163456
1,713
48
96
35.6875
0.808095
0.224168
0
0
0
0
0.178843
0.103501
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fbe0c898a3e6ca3bd07184204c83e01965e71a7
1,746
py
Python
collectors/spiders/committee_speech.py
alvesmatheus/fala-camarada
47015fe95422d5f71c279e47edacdd31ea3f71b8
[ "MIT" ]
7
2021-02-11T20:36:16.000Z
2021-02-12T17:22:05.000Z
collectors/spiders/committee_speech.py
alvesmatheus/fala-camarada
47015fe95422d5f71c279e47edacdd31ea3f71b8
[ "MIT" ]
null
null
null
collectors/spiders/committee_speech.py
alvesmatheus/fala-camarada
47015fe95422d5f71c279e47edacdd31ea3f71b8
[ "MIT" ]
null
null
null
import re import pandas as pd from scrapy import Spider, Request from bs4 import BeautifulSoup from collectors.loaders import CommitteeSpeechLoader from collectors.utils.constants import ( COMMITTEES_SCHEDULE_PATH, SPEECH_SPEAKER_PATTERN, COMMITTEE_SPEECH_URL ) class CommitteeSpeechSpider(Spider): na...
30.103448
73
0.631157
197
1,746
5.360406
0.467005
0.039773
0.05303
0
0
0
0
0
0
0
0
0.005464
0.266323
1,746
57
74
30.631579
0.818891
0
0
0
0
0
0.096793
0.015464
0
0
0
0
0
1
0.073171
false
0
0.146341
0
0.292683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fc021d0c8051f8cee45541b0c98bbc63e0e0171
16,823
py
Python
steelpy/f2uModel/mesh/sqlite/element.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
4
2021-09-28T12:52:01.000Z
2022-02-24T22:30:22.000Z
steelpy/f2uModel/mesh/sqlite/element.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
steelpy/f2uModel/mesh/sqlite/element.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
# Copyright (c) 2009-2022 fem2ufo # # Python stdlib imports from dataclasses import dataclass from array import array from collections import Counter from collections.abc import Mapping from math import dist from typing import NamedTuple, Tuple, List, Iterator, Iterable, Union, Dict from itertools import chain # pa...
33.713427
97
0.535041
1,774
16,823
4.878241
0.130214
0.021493
0.030044
0.058239
0.425468
0.3945
0.345852
0.300786
0.277675
0.234343
0
0.01068
0.354396
16,823
499
98
33.713427
0.786115
0.161267
0
0.304054
0
0.003378
0.031398
0
0
0
0
0.004008
0
1
0.118243
false
0
0.040541
0.006757
0.239865
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fc0d6ad5b5827802c283b1aeac28939ea11fd86
1,256
py
Python
tools/convert_lf.py
might-and-magic/mm678_i18n
ddc37c743ac37169908641dcd5328a7ccae5138f
[ "MIT" ]
17
2020-02-25T14:37:23.000Z
2022-02-21T15:33:09.000Z
tools/convert_lf.py
tomchen/csv2po
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
[ "MIT" ]
1
2022-01-09T02:14:56.000Z
2022-02-13T10:08:11.000Z
tools/convert_lf.py
tomchen/csv2po
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
[ "MIT" ]
3
2020-10-06T20:38:13.000Z
2021-02-17T02:11:17.000Z
# Batch convert LF to '\n' and vice versa # Tool of csv2po.py # By Tom CHEN <tomchen.org@gmail.com> (tomchen.org) import re from pathlib import Path from getfilepaths import getFilePaths def convertLf(inputPath, outputPath, encoding = None, SlashNTolf = True): # check LF (non CRLF) f = inputPath.open(mode = 'r', new...
44.857143
176
0.710191
173
1,256
5.098266
0.433526
0.00907
0.049887
0.058957
0.281179
0.192744
0.192744
0.108844
0
0
0
0.010073
0.130573
1,256
27
177
46.518519
0.797619
0.240446
0
0
0
0
0.101266
0.059072
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8fc2ed7dd777338b030108cb7bb036127694653d
5,939
py
Python
src/semantic_segmentation/classic_trainer.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
7
2022-01-10T19:04:34.000Z
2022-03-16T03:19:48.000Z
src/semantic_segmentation/classic_trainer.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
src/semantic_segmentation/classic_trainer.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
import logging import os import time from glob import glob import cv2 as cv import numpy as np import pandas as pd import torch from src.semantic_segmentation.loaders import GTDataset, RGBIncrementalDataset from src.semantic_segmentation.trainer import Trainer from src.semantic_segmentation.utils.losses import CrossEn...
42.120567
140
0.58461
748
5,939
4.479947
0.229947
0.045956
0.025067
0.032229
0.240525
0.170994
0.143539
0.088033
0.088033
0.075201
0
0.009736
0.290958
5,939
140
141
42.421429
0.786037
0.03014
0
0.088
0
0.016
0.07287
0.021739
0
0
0
0
0
1
0.032
false
0
0.104
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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