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
9fc0d1b9a9c10748e46d20c0b5d1e05f290df6e6
1,769
py
Python
simpletextgenerator/models/worklist.py
thtroyer/simple-text-generator
2b84d5fc5efa6311331210cabfb74e4305fcf947
[ "MIT" ]
1
2018-08-04T02:01:15.000Z
2018-08-04T02:01:15.000Z
simpletextgenerator/models/worklist.py
thtroyer/simple-text-generator
2b84d5fc5efa6311331210cabfb74e4305fcf947
[ "MIT" ]
21
2020-09-25T22:52:32.000Z
2021-07-07T01:40:27.000Z
simpletextgenerator/models/worklist.py
thtroyer/simple-text-generator
2b84d5fc5efa6311331210cabfb74e4305fcf947
[ "MIT" ]
1
2019-01-11T21:00:26.000Z
2019-01-11T21:00:26.000Z
import abc from typing import List, Tuple class WorkList: def __init__(self, items_to_complete: Tuple): self._progress_current_task = 0 self._items_to_complete = items_to_complete self._current_item_index = 0 self._training_rate = 0 self._generating_rate = 0 def get_ti...
32.163636
111
0.701526
229
1,769
4.978166
0.209607
0.105263
0.118421
0.116667
0.39386
0.374561
0.328947
0.221053
0.221053
0.221053
0
0.014641
0.227812
1,769
54
112
32.759259
0.819912
0
0
0.128205
0
0
0
0
0
0
0
0
0
1
0.25641
false
0.025641
0.051282
0.051282
0.487179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9fc11d45072844cb0cd37380e1602836f1deb636
2,547
py
Python
CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py
yujijun/Higlass
0eec629a81a02d37a6872f3efee16da66accf832
[ "Apache-2.0" ]
null
null
null
CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py
yujijun/Higlass
0eec629a81a02d37a6872f3efee16da66accf832
[ "Apache-2.0" ]
null
null
null
CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py
yujijun/Higlass
0eec629a81a02d37a6872f3efee16da66accf832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 25 09:56:15 2019 @author: yujijun Description: QC by FRiP >= 0.25 and filter out non-information tissues Input: 03-Homo_sapiens_ca_DNase_QC(906)_add_info_mannually.csv Output: 04-Homo_sapiens_ca_DNase_QC(906)_non-info-tissue_FRiP0p25(5...
39.796875
142
0.709855
353
2,547
4.818697
0.379603
0.078189
0.10582
0.162258
0.326279
0.282187
0.253968
0.168136
0.168136
0.130511
0
0.074286
0.175501
2,547
64
143
39.796875
0.735714
0.146839
0
0
0
0.055556
0.177696
0.141601
0
0
0
0
0
1
0
false
0
0.138889
0
0.138889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9fc2a29255c0ae2e9ff1820f112e173145cbae9c
1,558
py
Python
apply_alis.py
esalesky/vecalign
2d77bc94ae75545bf00a5b3a136a6c8808bc0dce
[ "Apache-2.0" ]
1
2021-02-07T12:50:42.000Z
2021-02-07T12:50:42.000Z
apply_alis.py
esalesky/vecalign
2d77bc94ae75545bf00a5b3a136a6c8808bc0dce
[ "Apache-2.0" ]
null
null
null
apply_alis.py
esalesky/vecalign
2d77bc94ae75545bf00a5b3a136a6c8808bc0dce
[ "Apache-2.0" ]
null
null
null
import sys import json alifile = sys.argv[1] srcfile = sys.argv[2] tgtfile = sys.argv[3] outdir = sys.argv[4] src = sys.argv[5] tgt = sys.argv[6] mistakes = "summary."+src+"-"+tgt talk = srcfile.split('/')[1].split('.')[0] srcs = [] tgts = [] with open(srcfile,'r') as f: line = f.readline().strip() while ...
30.54902
165
0.516688
218
1,558
3.692661
0.293578
0.052174
0.096894
0.134161
0.455901
0.455901
0.395031
0.26087
0.171429
0.09441
0
0.011797
0.292683
1,558
50
166
31.16
0.718693
0
0
0.214286
0
0
0.146341
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fc3bb2c808aba76d2ab45c51a84200ca700599c
249
py
Python
ptsites/sites/52pt.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
202
2020-01-24T05:27:18.000Z
2021-06-22T09:31:54.000Z
ptsites/sites/52pt.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
16
2021-08-01T10:08:23.000Z
2022-02-04T04:18:08.000Z
ptsites/sites/52pt.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
62
2020-01-24T05:27:24.000Z
2021-06-16T04:46:22.000Z
from ..schema.nexusphp import BakatestHR class MainClass(BakatestHR): URL = 'https://52pt.site/' USER_CLASSES = { 'downloaded': [2748779069440, 6047313952768], 'share_ratio': [3.05, 4.55], 'days': [280, 700] }
20.75
53
0.598394
26
249
5.653846
0.961538
0
0
0
0
0
0
0
0
0
0
0.212766
0.24498
249
11
54
22.636364
0.569149
0
0
0
0
0
0.172691
0
0
0
0
0
0
1
0
false
0
0.125
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9fc41abfd81f224dca3b66260e6fcdbb8fc02f87
2,095
py
Python
tests/accounts/test_models.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
tests/accounts/test_models.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
19
2018-12-10T20:06:21.000Z
2021-06-10T21:03:31.000Z
tests/accounts/test_models.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.test import TestCase from app.accounts.models import User class UserModelTestCase(TestCase): def setUp(self): self.user = User.objects.create(first_name='James', last_name='Njenga', password='this!@#', email='jamesn...
36.754386
79
0.644391
239
2,095
5.48954
0.238494
0.073171
0.112043
0.128049
0.536585
0.303354
0.303354
0.303354
0.270579
0.234756
0
0.025974
0.228162
2,095
56
80
37.410714
0.785405
0.010024
0
0.3
0
0
0.185944
0.104929
0
0
0
0
0.175
1
0.175
false
0.075
0.075
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9fc41cd77d4e57818df84bb0ceeea19889bf81e8
29,754
py
Python
src/meadowgrid/coordinator_client.py
meadowdata/meadowflow
8d4d93e3de2ac8636eb8f5ce058c28b398684806
[ "MIT" ]
4
2021-12-23T16:08:12.000Z
2022-02-13T21:39:44.000Z
src/meadowgrid/coordinator_client.py
meadowdata/meadowflow
8d4d93e3de2ac8636eb8f5ce058c28b398684806
[ "MIT" ]
13
2021-12-07T21:54:12.000Z
2022-03-02T22:33:22.000Z
src/meadowgrid/coordinator_client.py
hrichardlee/meadowdata
5d302956474d9f53c43afa0d7ce9a4b4d98591c5
[ "MIT" ]
1
2021-11-14T17:39:12.000Z
2021-11-14T17:39:12.000Z
from __future__ import annotations import json import pickle from types import TracebackType from typing import ( Any, Dict, Iterable, List, Literal, Optional, Sequence, Tuple, Type, Union, ) import grpc import grpc.aio from meadowgrid.config import ( DEFAULT_COORDINATOR_A...
34.517401
90
0.660214
3,187
29,754
5.871352
0.143709
0.017636
0.009833
0.008016
0.502351
0.469859
0.445329
0.404019
0.389269
0.386704
0
0.001888
0.270216
29,754
861
91
34.557491
0.85986
0.097634
0
0.451923
0
0
0.03085
0.008103
0
0
0
0.005807
0
1
0.052885
false
0
0.019231
0.016026
0.136218
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fc445c6165c6d787145e2412f48a99144d7b211
162
py
Python
mobycity/contact/urls.py
LucienD/Mobct
1c8422b30c205bdb2dc21c988f74280194980ec4
[ "MIT" ]
null
null
null
mobycity/contact/urls.py
LucienD/Mobct
1c8422b30c205bdb2dc21c988f74280194980ec4
[ "MIT" ]
null
null
null
mobycity/contact/urls.py
LucienD/Mobct
1c8422b30c205bdb2dc21c988f74280194980ec4
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from contact import views urlpatterns = patterns( '', url(r'^$', views.contact_form, name='contact_form'), )
18
56
0.697531
21
162
5.285714
0.619048
0.198198
0
0
0
0
0
0
0
0
0
0
0.166667
162
9
57
18
0.822222
0
0
0
0
0
0.08589
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9fc5e1ec082c1dc64629283b6d98a6ca4c9dc871
7,387
py
Python
mlprodict/testing/einsum/blas_lapack.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
mlprodict/testing/einsum/blas_lapack.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
mlprodict/testing/einsum/blas_lapack.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
""" @file @brief Direct calls to libraries :epkg:`BLAS` and :epkg:`LAPACK`. """ import numpy from scipy.linalg.blas import sgemm, dgemm # pylint: disable=E0611 from .direct_blas_lapack import ( # pylint: disable=E0401,E0611 dgemm_dot, sgemm_dot) def pygemm(transA, transB, M, N, K, alpha, A, lda, B, ldb, beta, C...
36.935
76
0.447137
1,030
7,387
3.094175
0.107767
0.018199
0.055224
0.060245
0.585817
0.508943
0.475055
0.474427
0.442736
0.442736
0
0.028839
0.422634
7,387
199
77
37.120603
0.718406
0.046027
0
0.443787
0
0
0.080092
0
0
0
0
0
0
1
0.017751
false
0
0.017751
0
0.159763
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fc68a4cdb7aede2fa706f461d87678b1999a5be
1,037
py
Python
Dataset/Leetcode/train/28/46.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/28/46.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/28/46.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: """ first time: total time: time complexity:O(m+n) space complexity:O(m+n) idea:KMP算法。将needle字符串、"#"、haystack字符串连接组成新的字符串s,利用kmp算法记录下needle字符串的所有位置的前缀函数值,迭代s中haystack部分字符串,依次计算每个位置的前缀函数值,但不用记录下来,只需用一个临时变量记下上一个位置的前缀函数值即可,直到找到某个位置的前缀函数值为m,停止迭代,利用停止迭代的下标值可以计算出needle字符串第一次在haystack中...
28.805556
214
0.528447
118
1,037
4.644068
0.398305
0.014599
0.058394
0.065693
0.189781
0.10219
0.054745
0.054745
0
0
0
0.020927
0.35487
1,037
35
215
29.628571
0.798206
0.057859
0
0.26087
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9fc751ca772d95c9fba3fd41ba8e849861b0bb38
942
py
Python
vnpy/app/pytdx_loader/my_pytdx/export_csv_process/deal_data_from_tdx_export.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
vnpy/app/pytdx_loader/my_pytdx/export_csv_process/deal_data_from_tdx_export.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
vnpy/app/pytdx_loader/my_pytdx/export_csv_process/deal_data_from_tdx_export.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- __author__ = 'Fangyang' import pandas as pd if __name__ == '__main__': df = pd.read_csv('30#RBL8.csv', '\t', encoding='gbk', skiprows=1) df.dropna(inplace=True) df.columns = [i.strip() for i in df.columns] df['时间'] = df['时间'].apply(lambda x: f' {int(x):04d}') df['datetime']...
28.545455
88
0.505308
124
942
3.66129
0.548387
0.059471
0.026432
0
0
0
0
0
0
0
0
0.014556
0.270701
942
32
89
29.4375
0.646288
0.021231
0
0
0
0
0.215217
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fc81a8e3744dff7164a87f49c91d191a525afcd
2,270
py
Python
actigamma/inventory.py
markharley12/actigamma
d53f312f34e1836ac59492af0ef34949f88dce00
[ "Apache-2.0" ]
null
null
null
actigamma/inventory.py
markharley12/actigamma
d53f312f34e1836ac59492af0ef34949f88dce00
[ "Apache-2.0" ]
null
null
null
actigamma/inventory.py
markharley12/actigamma
d53f312f34e1836ac59492af0ef34949f88dce00
[ "Apache-2.0" ]
null
null
null
""" A module for defining inventories of unstable nuclides """ import collections from .exceptions import UnphysicalValueException class UnstablesInventory(): """ A simple data structure to represent inventory data. A list of zais and activities (Bq). Note that this should only be us...
29.480519
86
0.588546
272
2,270
4.808824
0.415441
0.058869
0.022936
0.038991
0.154434
0.133028
0.133028
0.133028
0.133028
0.133028
0
0.017567
0.322907
2,270
76
87
29.868421
0.833442
0.311894
0
0.235294
0
0
0.121987
0
0
0
0
0.013158
0
1
0.235294
false
0
0.058824
0.088235
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
9fc869508ae4d45a48987984f851c74c934ef136
93
py
Python
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
import kobra.core def main(): kobra.core.kobra() if __name__ == "__main__": main()
11.625
26
0.623656
12
93
4.166667
0.583333
0.36
0
0
0
0
0
0
0
0
0
0
0.215054
93
7
27
13.285714
0.684932
0
0
0
0
0
0.086022
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9fc9c247d6481a1122f3f4d83c3c28ba389eea83
1,903
py
Python
Davies_etal_GMD_2021/2D_cartesian/compressible_case/manual_diff_compressible_base.py
sghelichkhani/G-ADOPT
fc0144a6779b59899151b845a828d5357c36a372
[ "MIT" ]
6
2021-11-04T02:49:30.000Z
2022-02-11T10:01:04.000Z
Davies_etal_GMD_2021/2D_cartesian/compressible_case/manual_diff_compressible_base.py
sghelichkhani/G-ADOPT
fc0144a6779b59899151b845a828d5357c36a372
[ "MIT" ]
null
null
null
Davies_etal_GMD_2021/2D_cartesian/compressible_case/manual_diff_compressible_base.py
sghelichkhani/G-ADOPT
fc0144a6779b59899151b845a828d5357c36a372
[ "MIT" ]
null
null
null
# Additional constants and definition of compressible reference state: Ra = Constant(1e5) # Rayleigh number Di = Constant(0.5) # Dissipation number T0 = Constant(0.091) # Non-dimensional surface temperature tcond = Constant(1.0) # Thermal conductivity rho_0, alpha, cpr, cvr, gruneisen = 1.0, 1.0, 1.0, 1.0, 1.0 rhobar =...
61.387097
261
0.583815
243
1,903
4.514403
0.395062
0.021878
0.071103
0.014585
0.025524
0.025524
0.009116
0.009116
0
0
0
0.028725
0.121913
1,903
30
262
63.433333
0.627768
0.130846
0
0.142857
0
0
0.0743
0.045676
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9fca9f7d491a694fff98012f4e6702309d723b8f
3,229
py
Python
chapter_3/api_limit/main.py
rinjyu/the_red
c099e830ae3ee9063c3e9d29f4ee627241c7eeed
[ "Apache-2.0" ]
13
2021-07-26T06:09:19.000Z
2022-03-22T07:01:22.000Z
chapter_3/api_limit/main.py
rinjyu/the_red
c099e830ae3ee9063c3e9d29f4ee627241c7eeed
[ "Apache-2.0" ]
11
2021-07-25T03:35:25.000Z
2021-08-13T23:05:38.000Z
chapter_3/api_limit/main.py
rinjyu/the_red
c099e830ae3ee9063c3e9d29f4ee627241c7eeed
[ "Apache-2.0" ]
8
2021-09-02T14:54:17.000Z
2022-03-14T10:28:37.000Z
from typing import Optional from fastapi import FastAPI, Request, Response from fastapi.responses import JSONResponse from pydantic import BaseModel from bs4 import BeautifulSoup from datetime import datetime import hashlib import struct import logging import json_logging import urllib.parse import redis import httpx ...
25.626984
91
0.672344
438
3,229
4.86758
0.312785
0.022514
0.033771
0.056285
0.093809
0.031895
0
0
0
0
0
0.017127
0.204398
3,229
125
92
25.832
0.812768
0
0
0.021277
0
0
0.106225
0
0
0
0
0
0
1
0.042553
false
0
0.234043
0.010638
0.351064
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fcb3dd5ea45fa154b7c723d953ac5bdd41cf155
142
py
Python
source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
def hash(astring, tablesize): sum = 0 for pos in range(len(astring)): sum = sum + ord(astring[pos]) return sum%tablesize
20.285714
37
0.612676
20
142
4.35
0.65
0
0
0
0
0
0
0
0
0
0
0.009615
0.267606
142
6
38
23.666667
0.826923
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9fcc6f1e1e7f1be00621469ed65e90c025c47ebf
3,270
py
Python
google-cloud-os_login/synth.py
kawabatas/google-cloud-ruby
525ea553b1887f70ac85f8c70a489b04df17a2da
[ "Apache-2.0" ]
1
2018-09-09T03:50:51.000Z
2018-09-09T03:50:51.000Z
google-cloud-os_login/synth.py
kawabatas/google-cloud-ruby
525ea553b1887f70ac85f8c70a489b04df17a2da
[ "Apache-2.0" ]
null
null
null
google-cloud-os_login/synth.py
kawabatas/google-cloud-ruby
525ea553b1887f70ac85f8c70a489b04df17a2da
[ "Apache-2.0" ]
null
null
null
import synthtool as s import synthtool.gcp as gcp import logging import re logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() # Temporary until we get Ruby-specific tools into synthtool def merge_gemspec(src, dest, path): regex = re.compile(r'^\s+gem.version\s*=\s*"[\d\.]+"$', flags=re.MULTIL...
34.421053
116
0.656269
478
3,270
4.378661
0.23431
0.13139
0.10559
0.146202
0.64214
0.571906
0.497372
0.35786
0.321548
0.29097
0
0.022191
0.131804
3,270
94
117
34.787234
0.715041
0.098165
0
0.298701
0
0.038961
0.470088
0.342624
0
0
0
0
0
1
0.025974
false
0
0.051948
0
0.103896
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fcd5f20a314e26094f35885214b213594b50dd7
1,341
py
Python
Events/Announcements.py
GhostyCatt/TheCloud
4693865268935d55dad948270f0cf35dee64e2cb
[ "MIT" ]
2
2021-09-21T03:00:55.000Z
2021-10-03T11:59:27.000Z
Events/Announcements.py
GhostyCatt/TheCloud
4693865268935d55dad948270f0cf35dee64e2cb
[ "MIT" ]
1
2021-09-22T11:29:39.000Z
2021-09-22T11:29:39.000Z
Events/Announcements.py
GhostyCatt/TheCloud
4693865268935d55dad948270f0cf35dee64e2cb
[ "MIT" ]
1
2021-09-19T19:43:17.000Z
2021-09-19T19:43:17.000Z
# Library Imports import nextcord, json from nextcord.ext import commands # Custom Imports from Functions.Embed import * # Options from Json with open('Config/Options.json') as RawOptions: Options = json.load(RawOptions) # onMessage Class class Tags(commands.Cog): def __init__(self, bot:commands.Bot): ...
29.152174
110
0.623415
163
1,341
5.092025
0.447853
0.039759
0.033735
0
0
0
0
0
0
0
0
0
0.281879
1,341
46
111
29.152174
0.86189
0.196868
0
0
0
0.043478
0.158668
0.083252
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fcdc078a3c5fc9a267aa5dee40a6497f21a1428
1,469
py
Python
ArchiveTestScripts/TestMappingToolsPoint.py
simon-m-mudd/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
34
2017-01-31T17:03:26.000Z
2021-09-15T17:23:21.000Z
ArchiveTestScripts/TestMappingToolsPoint.py
simon-m-mudd/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
14
2017-01-11T19:45:08.000Z
2020-11-03T16:36:38.000Z
ArchiveTestScripts/TestMappingToolsPoint.py
LSDtopotools/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
21
2015-11-26T10:24:19.000Z
2021-09-15T17:23:22.000Z
#============================================================================== # These are some scripts for testing the functionality of LSDMappingTools #============================================================================== # -*- coding: utf-8 -*- """ Created on Mon May 22 14:08:16 2016 @author: smudd """ i...
28.803922
80
0.633764
129
1,469
7.031008
0.581395
0.061742
0.072767
0.08269
0.2172
0.154355
0.154355
0.154355
0.154355
0.154355
0
0.010569
0.162696
1,469
51
81
28.803922
0.726829
0.354663
0
0
0
0
0.167235
0.075085
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4c7c20cba3230b3e6d55458b5081946f8702b692
4,156
py
Python
mivp.py
IgiArdiyanto/control-engineering-with-python
18ca06d339d6c2391ce77ac73e552f20f85cee30
[ "CC-BY-4.0" ]
null
null
null
mivp.py
IgiArdiyanto/control-engineering-with-python
18ca06d339d6c2391ce77ac73e552f20f85cee30
[ "CC-BY-4.0" ]
null
null
null
mivp.py
IgiArdiyanto/control-engineering-with-python
18ca06d339d6c2391ce77ac73e552f20f85cee30
[ "CC-BY-4.0" ]
null
null
null
# Third-Party Libraries import numpy as np import scipy.integrate as sci import matplotlib.pyplot as plt import matplotlib.animation as ani def solve(**kwargs): kwargs = kwargs.copy() kwargs["dense_output"] = True y0s = kwargs["y0s"] del kwargs["y0s"] results = [] for y0 in y0s: kwargs...
31.014925
75
0.550529
626
4,156
3.527157
0.238019
0.014493
0.006793
0.021739
0.12817
0.11096
0.11096
0.11096
0.057065
0.024457
0
0.029582
0.292348
4,156
133
76
31.24812
0.721183
0.127045
0
0.10101
0
0
0.041863
0
0
0
0
0
0.010101
1
0.050505
false
0
0.040404
0
0.121212
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c7cf06f6615026f91a04b38e7f6379eff09c2c5
1,962
py
Python
backpack/core/derivatives/batchnorm2d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
null
null
null
backpack/core/derivatives/batchnorm2d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
null
null
null
backpack/core/derivatives/batchnorm2d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
2
2021-06-11T14:15:28.000Z
2021-06-16T11:19:11.000Z
from warnings import warn from torch import einsum from torch.nn import BatchNorm2d import torch from backpack.core.derivatives.basederivatives import BaseParameterDerivatives class BatchNorm2dDerivatives(BaseParameterDerivatives): def get_module(self): return BatchNorm2d def hessian_is_zero(self): ...
31.645161
78
0.633028
266
1,962
4.413534
0.296992
0.041738
0.059625
0.065588
0.482964
0.413118
0.398637
0.398637
0.398637
0.398637
0
0.009233
0.282365
1,962
61
79
32.163934
0.824574
0.029052
0
0.326087
0
0
0.089905
0
0
0
0
0.016393
0
1
0.217391
false
0
0.108696
0.152174
0.586957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
0
0
0
3
4c7e6bd77ab65323eb06473f3ed2421080810b4e
1,527
py
Python
python/tree/0687_longest_univalue_path.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0687_longest_univalue_path.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0687_longest_univalue_path.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def longestUnivaluePath(self, root): """ :type root: TreeNode :rtype: int """ self.longest...
22.130435
72
0.535036
209
1,527
3.866029
0.220096
0.111386
0.02599
0.029703
0.350248
0.350248
0.350248
0.350248
0.240099
0.240099
0
0.026
0.345121
1,527
68
73
22.455882
0.782
0.044532
0
0.446429
0
0
0
0
0
0
0
0
0.053571
1
0.071429
false
0
0
0
0.160714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c7ee32f103861f2bdf80dc4d5169437dce47947
607
py
Python
utils/no_accent_vietnamese.py
thanhhocse96/hcmut-simple-qna-nlp
695578ea41e52a29499b69a82397e39a35b87ed9
[ "MIT" ]
null
null
null
utils/no_accent_vietnamese.py
thanhhocse96/hcmut-simple-qna-nlp
695578ea41e52a29499b69a82397e39a35b87ed9
[ "MIT" ]
null
null
null
utils/no_accent_vietnamese.py
thanhhocse96/hcmut-simple-qna-nlp
695578ea41e52a29499b69a82397e39a35b87ed9
[ "MIT" ]
null
null
null
import re def no_accent_vietnamese(s): s = re.sub(r'[àáạảãâầấậẩẫăằắặẳẵ]', 'a', s) s = re.sub(r'[ÀÁẠẢÃĂẰẮẶẲẴÂẦẤẬẨẪ]', 'A', s) s = re.sub(r'[èéẹẻẽêềếệểễ]', 'e', s) s = re.sub(r'[ÈÉẸẺẼÊỀẾỆỂỄ]', 'E', s) s = re.sub(r'[òóọỏõôồốộổỗơờớợởỡ]', 'o', s) s = re.sub(r'[ÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠ]', 'O', s) s = r...
31.947368
46
0.492586
107
607
2.775701
0.242991
0.094276
0.188552
0.329966
0.690236
0.6633
0.59596
0.59596
0.552189
0.552189
0
0
0.2257
607
19
47
31.947368
0.631915
0
0
0
0
0
0.289474
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4c7ef5af9648a44ab563c7f58736739886217b9f
1,362
py
Python
run_prod.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
run_prod.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
run_prod.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
from logging import INFO, getLogger, Formatter from logging.handlers import TimedRotatingFileHandler from gevent.wsgi import WSGIServer import os from octopus.app import create_app from octopus.settings import ProdConfig def main(): # Init the app app = create_app(ProdConfig) if not os.path.exists(os.path.dir...
34.05
87
0.68649
160
1,362
5.6375
0.41875
0.124169
0.113082
0.069845
0.075388
0.075388
0.075388
0
0
0
0
0
0.209251
1,362
40
88
34.05
0.837512
0.037445
0
0
0
0.035714
0.117737
0.018349
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4c7ef9027ceaf92eb61c91378c1f43643f9bf1e2
604
py
Python
global_config.py
mlscoder/douyin_robot
efb0495b902eecda4fc7afec254796ced6d73fba
[ "MIT" ]
6
2020-09-20T05:36:46.000Z
2022-01-03T11:20:02.000Z
global_config.py
mlscoder/douyin_robot
efb0495b902eecda4fc7afec254796ced6d73fba
[ "MIT" ]
null
null
null
global_config.py
mlscoder/douyin_robot
efb0495b902eecda4fc7afec254796ced6d73fba
[ "MIT" ]
5
2020-10-09T03:54:15.000Z
2022-01-03T11:19:56.000Z
# -- coding: utf-8 -- # 当前版本 VERSION = "0.0.1" DEBUG_SWITCH = True FACE_PATH = 'face/' # 你的adb安装目录 中间不能有空格 adb_path = "D:\\ClockworkMod\\Universal\\adb.exe" # 视频下载目录 需要先创建目录 没有新增创建方法 localVideoPath = 'E:/download' # 模拟器视频存放地址 # 我使用的逍遥模拟器,不同模拟器储存路径不一样,需要确认 address = '/storage/emulated/0/DCIM/Camera/' # 百度开放人脸识别API...
18.875
49
0.754967
66
604
6.818182
0.893939
0
0
0
0
0
0
0
0
0
0
0.060491
0.124172
604
31
50
19.483871
0.79017
0.316225
0
0
0
0
0.501247
0.448878
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4c7f9dd3621cafca3e66c672329e6080fd0e396e
850
py
Python
gore/tests/test_groups_api.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
4
2017-07-26T13:23:06.000Z
2019-02-21T14:55:34.000Z
gore/tests/test_groups_api.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
26
2017-08-02T08:52:06.000Z
2022-03-04T15:13:26.000Z
gore/tests/test_groups_api.py
akx/gentry
f4205f5a14054231d064657347862a15ecf4c0e0
[ "MIT" ]
null
null
null
import json import pytest from django.utils.encoding import force_str from gore.tests.utils import create_events from gore.utils.event_grouper import group_events @pytest.mark.django_db def test_groups_api(project, admin_client): events = create_events(project, 10) group_events(project, events) list_res...
34
116
0.727059
131
850
4.503817
0.351145
0.061017
0.061017
0.054237
0.159322
0.128814
0.128814
0.128814
0.128814
0
0
0.010825
0.130588
850
24
117
35.416667
0.787551
0
0
0
0
0
0.082353
0
0
0
0
0
0.277778
1
0.111111
false
0
0.277778
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c81e0b91aee1874fb0847aaca9e6ba1817a18a0
3,084
py
Python
app/base/models.py
Sharp-Objects/dashboard
4dbc64ce725d39e235c09405e720abc71f22f1c8
[ "MIT" ]
null
null
null
app/base/models.py
Sharp-Objects/dashboard
4dbc64ce725d39e235c09405e720abc71f22f1c8
[ "MIT" ]
15
2021-06-19T09:28:20.000Z
2021-06-20T07:03:08.000Z
app/base/models.py
Sharp-Objects/dashboard
4dbc64ce725d39e235c09405e720abc71f22f1c8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2021 - present SharpObjects """ from datetime import datetime from flask_login import UserMixin from sqlalchemy import Binary, Column, Integer, String, TIMESTAMP from app import db, login_manager from app.base.util import hash_pass class Recommendation(db.Model, UserMixin...
29.371429
84
0.653696
371
3,084
5.19407
0.253369
0.067462
0.033212
0.051894
0.445252
0.442657
0.412558
0.365854
0.318111
0.318111
0
0.006321
0.230545
3,084
104
85
29.653846
0.805731
0.021401
0
0.405405
0
0
0.040864
0.014618
0
0
0
0
0
1
0.135135
false
0.054054
0.067568
0.067568
0.675676
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4c84f647ccee627d658ba14428984f8bae4c5f2e
2,134
py
Python
example.py
filipinascimento/dbgz
a3b10e89c78377c00978da0a876f5ad8e8416794
[ "BSD-3-Clause" ]
null
null
null
example.py
filipinascimento/dbgz
a3b10e89c78377c00978da0a876f5ad8e8416794
[ "BSD-3-Clause" ]
null
null
null
example.py
filipinascimento/dbgz
a3b10e89c78377c00978da0a876f5ad8e8416794
[ "BSD-3-Clause" ]
null
null
null
import dbgz from tqdm.auto import tqdm # Defining a scheme scheme = [ ("anInteger","i"), ("aFloat","f"), ("aString","s"), ("anIntArray","I"), ("aFloatArray","F"), ("anStringArray","S"), ] # Writing some data to a dbgz file totalCount = 1000000; with dbgz.DBGZWriter("test.dbgz",scheme) as fd: # New entr...
27.358974
94
0.671978
295
2,134
4.854237
0.322034
0.013966
0.044693
0.046089
0.363128
0.363128
0.363128
0.342179
0.342179
0.342179
0
0.027273
0.175258
2,134
77
95
27.714286
0.786364
0.108716
0
0.288136
0
0
0.108822
0.011622
0
0
0
0
0.050847
1
0
false
0
0.033898
0
0.033898
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c86a51544001c2dfc13bb79a6366ed8c9dfd180
2,994
py
Python
tests/test_graphql.py
d-danilkin/ariadne
62b1363752394439f21d8be1b48074b4ba280493
[ "BSD-3-Clause" ]
1,778
2018-07-09T09:54:24.000Z
2022-03-31T18:22:56.000Z
tests/test_graphql.py
d-danilkin/ariadne
62b1363752394439f21d8be1b48074b4ba280493
[ "BSD-3-Clause" ]
639
2018-07-12T12:39:25.000Z
2022-03-28T04:02:52.000Z
tests/test_graphql.py
d-danilkin/ariadne
62b1363752394439f21d8be1b48074b4ba280493
[ "BSD-3-Clause" ]
154
2018-08-10T18:50:49.000Z
2022-03-31T17:48:14.000Z
import pytest from graphql import GraphQLError from graphql.validation.rules import ValidationRule from ariadne import graphql, graphql_sync, subscribe class AlwaysInvalid(ValidationRule): def leave_operation_definition( # pylint: disable=unused-argument self, *args, **kwargs ): self.context...
31.851064
88
0.690381
330
2,994
6.027273
0.20303
0.031674
0.085973
0.066365
0.807441
0.777778
0.768225
0.677728
0.62544
0.528406
0
0.002447
0.181029
2,994
93
89
32.193548
0.808728
0.010354
0
0.527778
0
0
0.194191
0
0
0
0
0
0.25
1
0.055556
false
0
0.055556
0
0.125
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4c89860afb4f5c0a1a774e264d8171fe2b027967
116
py
Python
codeup/2782.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
codeup/2782.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
codeup/2782.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
from math import factorial as f a,b =map(int,input().split()) a-=1 b-=1 print((f(a+b) // (f(a) * f(b))) %1000000000)
23.2
44
0.603448
25
116
2.8
0.6
0.085714
0.085714
0
0
0
0
0
0
0
0
0.118812
0.12931
116
5
44
23.2
0.574257
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
4c89b04a077491bd121c0b5380c9d59cfa2be2d5
2,298
py
Python
model.py
Shellyga/Adversarial-Domain-Adaptation-with-Keras
cb8f0d083ba8d59c91c3371bf62438ba1e679f4a
[ "MIT" ]
27
2019-09-27T03:05:15.000Z
2021-11-15T18:29:32.000Z
model.py
Shellyga/Adversarial-Domain-Adaptation-with-Keras
cb8f0d083ba8d59c91c3371bf62438ba1e679f4a
[ "MIT" ]
3
2020-04-09T03:02:56.000Z
2020-09-29T02:00:21.000Z
model.py
Shellyga/Adversarial-Domain-Adaptation-with-Keras
cb8f0d083ba8d59c91c3371bf62438ba1e679f4a
[ "MIT" ]
8
2020-03-11T12:04:46.000Z
2021-12-10T12:48:06.000Z
import random import numpy as np from keras.models import Model from keras.applications.resnet50 import ResNet50 from keras.layers import Input, Conv2D, MaxPool2D, Flatten, Dense from keras.layers import BatchNormalization, Activation, Dropout def build_embedding(param, inp): network = eval(param["network_name"]) ...
39.62069
84
0.70322
286
2,298
5.475524
0.241259
0.063218
0.045977
0.04023
0.530651
0.44636
0.086845
0
0
0
0
0.035361
0.163185
2,298
58
85
39.62069
0.778991
0
0
0.106383
0
0
0.15659
0
0
0
0
0
0
1
0.12766
false
0
0.12766
0
0.382979
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c8c52db67d8c73d5f8888df4a3820dbf62cb559
11,068
py
Python
trainers/dualsdf_trainer.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
107
2020-04-07T01:15:14.000Z
2022-03-17T09:32:46.000Z
trainers/dualsdf_trainer.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
6
2020-05-16T00:41:28.000Z
2021-04-27T16:04:21.000Z
trainers/dualsdf_trainer.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
17
2020-04-14T10:50:24.000Z
2022-01-20T09:43:08.000Z
import os import numpy as np # PyTorch import torch import torch.nn as nn import torch.nn.functional as F import importlib import itertools from trainers.base_trainer import BaseTrainer import toolbox.lr_scheduler import models.embeddings def KLD(mu, logvar): KLD = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar...
43.403922
153
0.634984
1,465
11,068
4.537884
0.159044
0.021059
0.029483
0.011282
0.272262
0.174338
0.076564
0.018351
0.006318
0.006318
0
0.01469
0.249639
11,068
254
154
43.574803
0.785792
0.041652
0
0.075758
0
0
0.065967
0.019091
0
0
0
0
0
1
0.090909
false
0
0.080808
0
0.237374
0.050505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c8c896fdc27ee3c019aaff66effafb8eec960ab
1,355
py
Python
demo/prefix.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
demo/prefix.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
demo/prefix.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. import demo_setup demo_setup.sys_path() from jenkinsflow.flow import serial import demo_security as security def main(api): with serial(api, timeout=70, ...
36.621622
133
0.690775
185
1,355
4.864865
0.508108
0.062222
0.066667
0.08
0.144444
0.144444
0.082222
0.082222
0
0
0
0.040854
0.205166
1,355
36
134
37.638889
0.7948
0.222878
0
0
0
0
0.107824
0.024809
0
0
0
0
0
1
0.047619
false
0.047619
0.238095
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
4c8d5df56e5c869cf814f4c9392ec927f0c539f7
3,010
py
Python
xos/tosca/tests/observertest.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/tosca/tests/observertest.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/tosca/tests/observertest.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
from basetest import * import logging import StringIO import subprocess import sys from synchronizers.base.event_loop import XOSObserver from synchronizers.model_policy import run_policy_once from xos.config import set_override from xos.logger import Logger, observer_logger class BaseObserverToscaTest(BaseToscaTest)...
30.714286
98
0.634219
339
3,010
5.39823
0.306785
0.04918
0.030601
0.039344
0.244809
0.229508
0.138798
0.138798
0.138798
0.138798
0
0.000453
0.26711
3,010
97
99
31.030928
0.829102
0
0
0.285714
0
0
0.109671
0.015287
0
0
0
0
0
0
null
null
0
0.116883
null
null
0.116883
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4c8d7876159f4f21ee120eba231f0b4deb1ae81c
11,763
py
Python
pub/dispatcher/folder/functions/provider.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
2
2021-07-27T10:38:57.000Z
2021-10-10T20:42:56.000Z
pub/dispatcher/folder/functions/provider.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
pub/dispatcher/folder/functions/provider.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
# coding=utf-8 import time import pub.response.error as error import pub.settings as s import pub.tables.resources as resource import pub.tables.template as template import pub.tables.comments as comments import pub.tables.user as user import pub.response.json as j from django.core.paginator import Paginator,EmptyPa...
29.629723
108
0.529202
1,369
11,763
4.375457
0.119065
0.015359
0.035058
0.035058
0.594324
0.54207
0.526878
0.455593
0.420534
0.420534
0
0.004718
0.351271
11,763
397
109
29.629723
0.780239
0.020148
0
0.571942
0
0
0.076736
0
0
0
0
0
0
1
0.032374
false
0.028777
0.053957
0
0.183453
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c8db11b7dd7dcf2b6211c1f0a40f4d60d60fa2d
5,932
py
Python
heart_rate_job.py
aws-samples/analysis-of-medical-device-data-using-data-lake
8f6d9b9da671781d74c3fb16e2603c36fb412047
[ "Apache-2.0", "MIT-0" ]
null
null
null
heart_rate_job.py
aws-samples/analysis-of-medical-device-data-using-data-lake
8f6d9b9da671781d74c3fb16e2603c36fb412047
[ "Apache-2.0", "MIT-0" ]
null
null
null
heart_rate_job.py
aws-samples/analysis-of-medical-device-data-using-data-lake
8f6d9b9da671781d74c3fb16e2603c36fb412047
[ "Apache-2.0", "MIT-0" ]
2
2021-06-10T19:00:19.000Z
2021-06-14T08:06:53.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" ...
28.382775
77
0.662508
745
5,932
5.148993
0.297987
0.031022
0.009385
0.010949
0.094108
0.056048
0.037018
0.024505
0.024505
0.024505
0
0.014449
0.218307
5,932
209
78
28.382775
0.81281
0.190492
0
0.145038
0
0
0.169111
0.026823
0
0
0
0
0
1
0.045802
false
0
0.053435
0
0.145038
0.137405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c8dd18bf6b1f2a4486b4e2a0e51159bc676afcf
325
py
Python
cobra/basico/aula2/aula2.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
cobra/basico/aula2/aula2.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
cobra/basico/aula2/aula2.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
print('824','176','070', sep= '.', end= '-') print('18') print('ola', type('ola')) print(10, type(10)) print(10.5, type(10.5)) print(True, type(True)) nome = 'heder' idade = 22 altura = 1.72 print('\n') print(f'{nome} tem {idade} anos e {altura} de altura') print('{} tem {} anos e {} de altura'.format(nome,idade,altu...
21.666667
64
0.606154
55
325
3.581818
0.472727
0.071066
0
0
0
0
0
0
0
0
0
0.091873
0.129231
325
14
65
23.214286
0.60424
0
0
0
0
0
0.304615
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
4c8de32d916e9b3f90196563715f0a8c2cb915a6
65,211
py
Python
vector/geometry.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
vector/geometry.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
vector/geometry.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 18 10:46:25 2012 @author: pietro """ import ctypes import re from collections import namedtuple import numpy as np import grass.lib.gis as libgis import grass.lib.vector as libvect from grass.pygrass.utils import decode from grass.pygrass.errors import GrassError, map...
34.576352
89
0.541826
8,556
65,211
3.961431
0.070594
0.008202
0.019472
0.016994
0.527645
0.462825
0.395114
0.34425
0.317431
0.286245
0
0.045045
0.346031
65,211
1,885
90
34.594695
0.74973
0.395807
0
0.319693
0
0
0.034571
0
0
0
0
0.002122
0
1
0.170077
false
0.005115
0.017903
0.023018
0.34399
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c8efa85e744b76647579e30a8854809ccf53601
1,144
py
Python
题源分类/LeetCode/LeetCode日刷/python/86.分隔链表.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
题源分类/LeetCode/LeetCode日刷/python/86.分隔链表.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
题源分类/LeetCode/LeetCode日刷/python/86.分隔链表.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=86 lang=python3 # # [86] 分隔链表 # # https://leetcode-cn.com/problems/partition-list/description/ # # algorithms # Medium (60.30%) # Likes: 286 # Dislikes: 0 # Total Accepted: 61.5K # Total Submissions: 102K # Testcase Example: '[1,4,3,2,5,2]\n3' # # 给定一个链表和一个特定值 x,对链表进行分隔,使得所有小于 x 的节点都在大...
19.389831
62
0.518357
148
1,144
3.97973
0.5
0.010187
0.010187
0.013582
0.020374
0.020374
0
0
0
0
0
0.073236
0.343531
1,144
58
63
19.724138
0.711052
0.47465
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
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
4c8fd0fae2531e16841cf0bbd497e0d00735382d
325
py
Python
core/migrations/0002_auto_20181117_0622.py
girisagar46/KalaPatthar
1d4219f6a8f315fbeeece2355200a54acff70d1f
[ "MIT" ]
null
null
null
core/migrations/0002_auto_20181117_0622.py
girisagar46/KalaPatthar
1d4219f6a8f315fbeeece2355200a54acff70d1f
[ "MIT" ]
null
null
null
core/migrations/0002_auto_20181117_0622.py
girisagar46/KalaPatthar
1d4219f6a8f315fbeeece2355200a54acff70d1f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-17 06:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( name='website', unique_together=set(), ), ...
18.055556
47
0.587692
33
325
5.727273
0.878788
0
0
0
0
0
0
0
0
0
0
0.083333
0.298462
325
17
48
19.117647
0.745614
0.138462
0
0
1
0
0.082734
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4c93042abb669c8eb64eeb6b34ebae4584d33589
6,121
py
Python
dbgr/commands.py
JakubTesarek/dbgr
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
[ "Apache-2.0" ]
8
2019-05-23T19:45:46.000Z
2021-02-08T17:21:21.000Z
dbgr/commands.py
JakubTesarek/dbgr
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
[ "Apache-2.0" ]
86
2019-05-13T14:20:20.000Z
2019-06-19T11:48:59.000Z
dbgr/commands.py
JakubTesarek/dbgr
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
[ "Apache-2.0" ]
1
2021-02-08T17:21:22.000Z
2021-02-08T17:21:22.000Z
import argparse import sys import traceback import textwrap import colorama from dbgr.requests import get_requests, execute_request, parse_cmd_arguments, parse_module_name from dbgr.environment import init_environment, get_environments, DEFAULT_ENVIRONMENT, Environment from dbgr.session import close_session from dbgr.c...
36.218935
97
0.64777
700
6,121
5.457143
0.237143
0.020419
0.040314
0.032984
0.228534
0.155236
0.11466
0.11466
0.092147
0.065969
0
0.001944
0.243588
6,121
168
98
36.434524
0.82311
0.011273
0
0.216783
0
0
0.199517
0.054194
0
0
0
0
0.013986
1
0.013986
false
0
0.06993
0
0.111888
0.146853
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c937faa9484185d720ae8ecabcd36a21ab840b4
14,965
py
Python
Initial Submission (20200803) Version/Pre-Print (20200624) Version/Analysis Code/CovidDataSmoothing.py
hazhirr/CovidGlobal
7af63d0dd5eede1887473cb46f81c43b36905ee9
[ "MIT" ]
7
2020-07-09T07:41:05.000Z
2021-06-21T12:19:17.000Z
Pre-Print (20200624) Version/Analysis Code/CovidDataSmoothing.py
maftouni/CovidGlobal
2c501b009e3d4ada55a41a50f7485d0471ba5157
[ "MIT" ]
1
2020-07-24T08:59:04.000Z
2020-07-29T17:48:48.000Z
Pre-Print (20200624) Version/Analysis Code/CovidDataSmoothing.py
maftouni/CovidGlobal
2c501b009e3d4ada55a41a50f7485d0471ba5157
[ "MIT" ]
6
2020-07-11T05:27:08.000Z
2021-11-15T14:15:16.000Z
import json import subprocess import numpy as np import pandas as pd import matplotlib.pyplot as plt from shutil import copy from scipy import interpolate from statsmodels.tsa.seasonal import STL def import_datasets(datalist, vdfname): """ Creates Vensim script to convert CSVs to VDFs """ print("Importing da...
43.002874
122
0.622787
1,847
14,965
5.01137
0.244721
0.01815
0.017286
0.02204
0.23736
0.173077
0.10242
0.089888
0.089888
0.076491
0
0.008815
0.257066
14,965
347
123
43.126801
0.823709
0.204811
0
0.107143
0
0
0.078026
0.021287
0
0
0
0
0
1
0.053571
false
0.008929
0.058036
0.008929
0.138393
0.040179
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c93cc337dca485d98c775bb39dfd03d9c06d0e8
15,992
py
Python
ytHelper_2.2.py
mime-r/ytHelper
60b2508945155c3da51f31b3cb5718d998874d89
[ "MIT" ]
1
2020-04-16T00:46:33.000Z
2020-04-16T00:46:33.000Z
ytHelper_2.2.py
mime-r/ytHelper
60b2508945155c3da51f31b3cb5718d998874d89
[ "MIT" ]
1
2020-06-05T00:19:37.000Z
2020-06-05T00:19:37.000Z
ytHelper_2.2.py
mime-r/ytHelper
60b2508945155c3da51f31b3cb5718d998874d89
[ "MIT" ]
null
null
null
import sys import urllib.request, urllib.error, urllib from os import system, path import warnings import socket from time import time #resolve dependencies in general system("pip install pytube3") # test: https://www.youtube.com/watch?v=ZW0evffIxEM def validate(_url): try: conn = urllib....
36.180995
222
0.508317
1,591
15,992
5.029541
0.194846
0.012747
0.04124
0.02012
0.335291
0.297926
0.294926
0.270557
0.25856
0.222194
0
0.011947
0.371936
15,992
441
223
36.263039
0.784648
0.036893
0
0.408696
0
0.011594
0.284087
0.027981
0
0
0
0
0
1
0.046377
false
0
0.04058
0
0.104348
0.171014
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c950f7453ebd206d12fabd552386800c3036ada
9,100
py
Python
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow import keras import json import os import tempfile import numpy as np import base64 from rafiki.model import BaseModel, InvalidModelParamsException, validate_model_class, load_dataset from rafiki.constants import TaskType class TfSingleHiddenLayer(BaseModel): ''' Implem...
44.607843
152
0.518352
1,466
9,100
3.092769
0.206003
0.21438
0.306352
0.392589
0.355315
0.321129
0.298853
0.277239
0.2618
0.2618
0
0.21093
0.326374
9,100
203
153
44.827586
0.528711
0.043407
0
0.246835
0
0.012658
0.057021
0.010828
0
0
0
0.004926
0
1
0.06962
false
0
0.056962
0.018987
0.177215
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4c9518e0261cbc58d523826d89c4dfe29f75e909
3,140
py
Python
python/vineyard/contrib/ml/tests/test_tensorflow.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
417
2020-10-23T12:35:27.000Z
2021-04-15T09:37:00.000Z
python/vineyard/contrib/ml/tests/test_tensorflow.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
160
2020-10-27T16:27:12.000Z
2021-04-19T01:35:29.000Z
python/vineyard/contrib/ml/tests/test_tensorflow.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
28
2020-10-27T15:40:48.000Z
2021-04-16T08:03:16.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020-2021 Alibaba Group Holding Limited. # # 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/LI...
33.763441
93
0.672293
485
3,140
4.249485
0.313402
0.081514
0.014556
0.020378
0.395439
0.344008
0.318292
0.237749
0.237749
0.196021
0
0.030159
0.197452
3,140
92
94
34.130435
0.787698
0.196178
0
0.327869
0
0
0.015158
0
0
0
0
0
0.147541
1
0.081967
false
0
0.131148
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c97ad8ba1a77eed21ae5643d4c35409d78078e3
60
py
Python
pl_bolts/models/gans/__init__.py
hecoding/pytorch-lightning-bolts
4d254fde6112b21436003028d553a726bf7ea6ef
[ "Apache-2.0" ]
1
2021-04-27T14:45:16.000Z
2021-04-27T14:45:16.000Z
pl_bolts/models/gans/__init__.py
hecoding/pytorch-lightning-bolts
4d254fde6112b21436003028d553a726bf7ea6ef
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/gans/__init__.py
hecoding/pytorch-lightning-bolts
4d254fde6112b21436003028d553a726bf7ea6ef
[ "Apache-2.0" ]
1
2021-03-24T15:13:02.000Z
2021-03-24T15:13:02.000Z
from pl_bolts.models.gans.basic.basic_gan_module import GAN
30
59
0.866667
11
60
4.454545
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.066667
60
1
60
60
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4c9a84f8253717a93adac72ab174be3242be0231
815
py
Python
dodo_commands/extra/dodo_standard_commands/commit-config.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
8
2016-12-01T16:45:45.000Z
2020-05-05T20:56:57.000Z
dodo_commands/extra/dodo_standard_commands/commit-config.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
75
2017-01-29T19:25:45.000Z
2020-01-28T09:40:47.000Z
dodo_commands/extra/dodo_standard_commands/commit-config.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
2
2017-06-01T09:55:20.000Z
2017-06-08T14:45:08.000Z
import os from dodo_commands import Dodo from dodo_commands.framework.config import Paths def _args(): Dodo.parser.add_argument("--alt", help="Run an alternative git command") Dodo.parser.add_argument( "--message", "-m", dest="message", help="The commit message" ) args = Dodo.parse_args() ...
26.290323
76
0.58773
111
815
4.198198
0.414414
0.090129
0.085837
0.090129
0.085837
0.085837
0
0
0
0
0
0
0.238037
815
30
77
27.166667
0.750403
0
0
0
0
0
0.152147
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c9ab569ed53de75a09e58003f565fbbac8fe687
116
py
Python
src/operandi_server/models.py
MehmedGIT/OPERANDI_TestRepo
529d053d4e225642c4b07016edf54736d957a025
[ "Apache-2.0" ]
8
2022-01-26T09:53:57.000Z
2022-03-21T10:40:28.000Z
src/operandi_server/models.py
MehmedGIT/OPERANDI_TestRepo
529d053d4e225642c4b07016edf54736d957a025
[ "Apache-2.0" ]
null
null
null
src/operandi_server/models.py
MehmedGIT/OPERANDI_TestRepo
529d053d4e225642c4b07016edf54736d957a025
[ "Apache-2.0" ]
null
null
null
# Specific response models of the OPERANDI server will be implemented here # TODO: Implement proper response models
38.666667
74
0.818966
16
116
5.9375
0.875
0.294737
0
0
0
0
0
0
0
0
0
0
0.155172
116
2
75
58
0.969388
0.956897
0
null
0
null
0
0
null
0
0
0.5
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
6
4c9d3702180edfaf0a737cf90d54fceb65b83a9d
567
py
Python
binarysearch/unobstructedBuildings.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2021-06-06T19:55:22.000Z
2021-06-06T19:55:22.000Z
binarysearch/unobstructedBuildings.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2022-01-20T19:20:33.000Z
2022-01-20T23:51:46.000Z
binarysearch/unobstructedBuildings.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
null
null
null
class Solution: def solve(self, heights): if len(heights) == 0: return [] unobstructedBuildings = [] for i in range(len(heights) - 1): taller = False for j in range(i + 1, len(heights)): if heights[j] >= heights[i]: ...
23.625
54
0.467372
50
567
5.3
0.46
0.150943
0.083019
0
0
0
0
0
0
0
0
0.012821
0.449735
567
24
55
23.625
0.836538
0
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c9d50b4d5470d2a113d89a96a9303316be6b402
6,698
py
Python
learned_optimization/tasks/base.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
70
2021-12-16T07:12:11.000Z
2022-03-31T19:13:36.000Z
learned_optimization/tasks/base.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
10
2021-12-29T10:03:37.000Z
2022-03-22T15:59:55.000Z
learned_optimization/tasks/base.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
5
2021-12-16T04:52:35.000Z
2022-03-22T03:45:31.000Z
# coding=utf-8 # Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.009259
86
0.690505
931
6,698
4.77551
0.223416
0.094467
0.053981
0.05668
0.250112
0.167341
0.097166
0.084121
0.081871
0.081871
0
0.004962
0.217677
6,698
215
87
31.153488
0.843511
0.205434
0
0.171642
0
0
0.078051
0.017323
0
0
0
0.004651
0.007463
1
0.171642
false
0.014925
0.044776
0.067164
0.447761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca0190c94c79935df54c58f489fb8c663c6a881
4,171
py
Python
model/triplet/train.py
JoyPang123/facial_identity_system
073b98c0bb0eaa22fd5b1ba1da4d72ccead52106
[ "MIT" ]
6
2021-12-27T15:56:34.000Z
2022-03-19T03:49:55.000Z
model/triplet/train.py
JoyPang123/facial_identity_system
073b98c0bb0eaa22fd5b1ba1da4d72ccead52106
[ "MIT" ]
null
null
null
model/triplet/train.py
JoyPang123/facial_identity_system
073b98c0bb0eaa22fd5b1ba1da4d72ccead52106
[ "MIT" ]
null
null
null
import argparse import numpy as np import torch import torch.nn as nn import wandb from tqdm import tqdm from utils import plot_points from dataset import make_loader from model import TripletNet def train(args): model_config = { "batch_size": args.batch_size, "epochs": args.epochs, ...
28.965278
115
0.588828
500
4,171
4.724
0.326
0.038103
0.071973
0.024132
0.102032
0
0
0
0
0
0
0.010221
0.296332
4,171
143
116
29.167832
0.794549
0.036202
0
0.090909
0
0.009091
0.167248
0.035145
0
0
0
0
0
1
0.009091
false
0
0.081818
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca174e15e7e6d3ff3b9cc14f44bd721bb8f551b
10,573
py
Python
src/teach/modeling/toast/SequentialSubgoalDataModule.py
pablokvitca/teach
d538de5d5850266ff298099182af6d148f111f03
[ "MIT" ]
null
null
null
src/teach/modeling/toast/SequentialSubgoalDataModule.py
pablokvitca/teach
d538de5d5850266ff298099182af6d148f111f03
[ "MIT" ]
null
null
null
src/teach/modeling/toast/SequentialSubgoalDataModule.py
pablokvitca/teach
d538de5d5850266ff298099182af6d148f111f03
[ "MIT" ]
null
null
null
import json import logging import os import re import unicodedata from typing import Optional import torch from pytorch_lightning import LightningDataModule from torch import Tensor from torch.nn.utils.rnn import pad_sequence from torch.utils.data import Dataset, DataLoader from tqdm import trange from teach.logger i...
40.822394
127
0.660929
1,339
10,573
4.878267
0.129948
0.029394
0.023882
0.011941
0.457134
0.361758
0.246632
0.216779
0.182333
0.150337
0
0.001796
0.262839
10,573
258
128
40.98062
0.836284
0.00227
0
0.109524
0
0
0.045235
0.002086
0
0
0
0
0
1
0.095238
false
0
0.066667
0.02381
0.252381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca1a5301e7174c96f53f063cec9fd099a683307
8,551
py
Python
pydocx/export/xml.py
elibri/pydocx
fd99474a06f91f91542cf38fbf0687f9b1f95a93
[ "Apache-2.0" ]
null
null
null
pydocx/export/xml.py
elibri/pydocx
fd99474a06f91f91542cf38fbf0687f9b1f95a93
[ "Apache-2.0" ]
null
null
null
pydocx/export/xml.py
elibri/pydocx
fd99474a06f91f91542cf38fbf0687f9b1f95a93
[ "Apache-2.0" ]
null
null
null
from pydocx.openxml import wordprocessing from pydocx.export import PyDocXHTMLExporter from pydocx.export.html import HtmlTag, is_only_whitespace, is_not_empty_and_not_only_whitespace from itertools import chain #https://pydocx.readthedocs.io/en/latest/extending.html BLOCK_ELEMENTS = ['document', 'body', 'head', 'h1...
33.533333
173
0.692551
1,092
8,551
5.223443
0.210623
0.037868
0.038745
0.031557
0.313815
0.220021
0.190393
0.15568
0.129032
0.115007
0
0.003825
0.205122
8,551
254
174
33.665354
0.835369
0.075781
0
0.287958
0
0
0.049315
0.002916
0
0
0
0
0
1
0.167539
false
0.026178
0.020942
0.052356
0.282723
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca28c17f162d99eb6c5eaddca06b1c84a527be0
2,704
py
Python
hm/model/load_balancer.py
tsuru/hm
02702b151504d6f6556ac849a256d51d31f31947
[ "BSD-3-Clause" ]
8
2015-10-16T13:49:42.000Z
2020-11-28T09:06:41.000Z
hm/model/load_balancer.py
tsuru/hm
02702b151504d6f6556ac849a256d51d31f31947
[ "BSD-3-Clause" ]
3
2015-01-02T13:01:47.000Z
2018-05-02T18:24:58.000Z
hm/model/load_balancer.py
tsuru/hm
02702b151504d6f6556ac849a256d51d31f31947
[ "BSD-3-Clause" ]
7
2015-01-02T12:59:35.000Z
2018-06-06T21:11:46.000Z
# Copyright 2014 hm authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from hm import lb_managers, log, model from hm.model.host import Host class LoadBalancer(model.BaseModel): def __init__(self, id, name, address, conf=None, **kw...
31.44186
101
0.599482
355
2,704
4.419718
0.264789
0.056087
0.045889
0.038241
0.156788
0.12747
0.089229
0
0
0
0
0.002075
0.286982
2,704
85
102
31.811765
0.811722
0.053624
0
0.101449
0
0
0.043836
0
0
0
0
0
0
1
0.144928
false
0
0.028986
0.043478
0.289855
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca4c1f402e01ef024957603075787c57d8d1ec9
1,409
py
Python
NLG/NLG_python.py
abha-m/PlotsToNaturalLanguage
5c4e59aa1772a13c2bce4775b3a385327c191d88
[ "MIT" ]
1
2020-03-28T04:10:21.000Z
2020-03-28T04:10:21.000Z
NLG/NLG_python.py
abha-m/PlotsToNaturalLanguage
5c4e59aa1772a13c2bce4775b3a385327c191d88
[ "MIT" ]
1
2020-07-20T15:51:12.000Z
2020-07-20T15:51:12.000Z
NLG/NLG_python.py
abha-m/PlotsToNaturalLanguage
5c4e59aa1772a13c2bce4775b3a385327c191d88
[ "MIT" ]
null
null
null
from simplenlg import Lexicon from simplenlg import NLGFactory from simplenlg import Realiser words = ['Month', 'Infected'] correlation_value = -0.4444 lexicon = Lexicon.getDefaultLexicon() nlgFactory = NLGFactory(lexicon) realiser = Realiser(lexicon) start_s = nlgFactory.createClause("From the above scatterplot ma...
32.022727
121
0.761533
172
1,409
6.162791
0.319767
0.090566
0.096226
0.099057
0.429245
0.429245
0.429245
0.307547
0.307547
0.264151
0
0.020851
0.149042
1,409
43
122
32.767442
0.863219
0.092974
0
0
0
0
0.262785
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
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
4ca78fa765346c83978039b5933d69d06e638d05
308
py
Python
books_scrapy/utils/bili.py
hdtls/books-scrapy
d8e72463df05de16fafc4207e3c292284a7c126d
[ "Apache-2.0" ]
null
null
null
books_scrapy/utils/bili.py
hdtls/books-scrapy
d8e72463df05de16fafc4207e3c292284a7c126d
[ "Apache-2.0" ]
null
null
null
books_scrapy/utils/bili.py
hdtls/books-scrapy
d8e72463df05de16fafc4207e3c292284a7c126d
[ "Apache-2.0" ]
null
null
null
def keygen(id): table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF" indices = [9, 8, 1, 6, 2, 4] x = (id ^ 177451812) + 8728348608 result = list(f"1 4 1 7 ") for i in range(len(indices)): result[indices[i]] = table[x // 58 ** i % 58] return "".join(result)
34.222222
72
0.603896
40
308
4.65
0.675
0
0
0
0
0
0
0
0
0
0
0.181034
0.246753
308
8
73
38.5
0.62069
0
0
0
0
0
0.220779
0.188312
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ca7e64c654283641b201d9518479bce2b4cb1c9
18,410
py
Python
slug/sed.py
AstroJacobLi/slug
ea6f61a96b594fedc498680b702104727b4ebae0
[ "MIT" ]
2
2019-07-05T05:58:29.000Z
2021-12-19T01:32:17.000Z
slug/sed.py
AstroJacobLi/slug
ea6f61a96b594fedc498680b702104727b4ebae0
[ "MIT" ]
1
2019-07-14T02:32:17.000Z
2019-07-25T23:53:32.000Z
slug/sed.py
AstroJacobLi/slug
ea6f61a96b594fedc498680b702104727b4ebae0
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import copy import warnings import numpy as np import astropy from astropy.table import Table, Column HSCFILTERS = ['g', 'r', 'i', 'z', 'y'] SNRBANDS = {'g': 80, 'r': 100, 'i': 100, 'z': 100, 'y': 50} __all__ = ['calc_kcor', 'deredden_hsc_flux_s18a']...
29.741519
87
0.467626
2,617
18,410
3.248758
0.392816
0.058104
0.04446
0.022583
0.143731
0.092449
0.076688
0.055752
0.047518
0.016584
0
0.347103
0.343835
18,410
618
88
29.789644
0.356705
0.189625
0
0.212919
0
0
0.041598
0.003179
0
0
0
0
0.011962
1
0.016746
false
0
0.014354
0
0.052632
0.004785
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4ca857c39f727b07393d2f535a3e8bd1603dd8b6
12,947
py
Python
torch_spread/buffer_tools.py
Alexanders101/TorchSpread
27cb9c6ead97d8b92284f6eff016bd6e406505e9
[ "MIT" ]
1
2019-08-15T11:16:05.000Z
2019-08-15T11:16:05.000Z
torch_spread/buffer_tools.py
Alexanders101/TorchSpread
27cb9c6ead97d8b92284f6eff016bd6e406505e9
[ "MIT" ]
null
null
null
torch_spread/buffer_tools.py
Alexanders101/TorchSpread
27cb9c6ead97d8b92284f6eff016bd6e406505e9
[ "MIT" ]
null
null
null
from typing import Union, Dict, List, Tuple, Callable, Optional import numpy as np import torch from torch import Tensor from .utilities import ShapeBufferType, DtypeBufferType, BufferType def buffer_fill_information(buffer: BufferType, shape: Optional[ShapeBufferType] = None, ...
35.765193
120
0.660385
1,665
12,947
4.992192
0.0997
0.059673
0.034649
0.031761
0.599254
0.523701
0.448749
0.413258
0.37091
0.346607
0
0.001436
0.247084
12,947
361
121
35.864266
0.851252
0.199969
0
0.385366
0
0
0.009071
0
0
0
0
0
0.009756
1
0.097561
false
0
0.02439
0
0.326829
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ca8d49e6589490aed254df06f33b92770647de9
1,076
py
Python
server/src/project_n/app/share/mem/McharacterManager.py
isuhao/gamein9miao
df8624b0e3223a12eb1dc833ce8fa89fd715aa5b
[ "MIT" ]
1
2018-04-18T02:38:14.000Z
2018-04-18T02:38:14.000Z
server/src/project_n/app/share/mem/McharacterManager.py
isuhao/gamein9miao
df8624b0e3223a12eb1dc833ce8fa89fd715aa5b
[ "MIT" ]
null
null
null
server/src/project_n/app/share/mem/McharacterManager.py
isuhao/gamein9miao
df8624b0e3223a12eb1dc833ce8fa89fd715aa5b
[ "MIT" ]
null
null
null
#-*-coding:utf8-*- ''' Created on 2013-4-27 @author: lan ''' from firefly.utils.singleton import Singleton from app.share.dbopear import dbCharacter from firefly.dbentrust.memclient import mclient from mcharacter import Mcharacter class McharacterManager: __metaclass__ = Singleton def __init__(self)...
23.911111
61
0.575279
98
1,076
6.234694
0.530612
0.06874
0.08347
0.12766
0.237316
0.237316
0.237316
0.176759
0.176759
0.176759
0
0.010929
0.319703
1,076
45
62
23.911111
0.82377
0.124535
0
0.15
0
0
0.039459
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4cadb4bb0a5ad5e4a7aa9e25a73576123f2f889f
6,596
py
Python
venv/Model/InputModel.py
florianbeyer/maptor
8fd899dd3123484fd83b7aa74a007edc8879dba6
[ "MIT" ]
1
2022-03-15T13:35:26.000Z
2022-03-15T13:35:26.000Z
venv/Model/InputModel.py
florianbeyer/maptor
8fd899dd3123484fd83b7aa74a007edc8879dba6
[ "MIT" ]
9
2021-01-30T16:55:50.000Z
2022-03-12T00:54:37.000Z
venv/Model/InputModel.py
florianbeyer/maptor
8fd899dd3123484fd83b7aa74a007edc8879dba6
[ "MIT" ]
1
2020-12-21T02:24:46.000Z
2020-12-21T02:24:46.000Z
import numpy as np from osgeo import gdal, ogr, gdal_array# I/O image data import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from PyQt5.QtWidgets import QFileDialog, QMessageBox class InputModule(): Training_File_Path = "" Validation_File_Path = "" Trg_Attribute_Selected = "" ...
35.085106
118
0.621286
804
6,596
4.863184
0.221393
0.024297
0.020716
0.029156
0.365217
0.259335
0.19821
0.19821
0.161381
0.143478
0
0.015973
0.278654
6,596
187
119
35.272727
0.805801
0.050788
0
0.207407
0
0
0.078168
0
0
0
0
0
0.014815
1
0.118519
false
0
0.037037
0.037037
0.266667
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cae97a8b9b1d838dfdad2c01c8512a13a09b3ca
675
py
Python
plugs_auth/tests/test_models.py
solocompt/plugs-auth
0d9c683b34ea4128a78c1772cf361c65573ae005
[ "MIT" ]
1
2017-01-10T23:25:33.000Z
2017-01-10T23:25:33.000Z
plugs_auth/tests/test_models.py
solocompt/plugs-auth
0d9c683b34ea4128a78c1772cf361c65573ae005
[ "MIT" ]
1
2017-01-08T00:01:13.000Z
2017-01-08T00:01:13.000Z
plugs_auth/tests/test_models.py
yo-solo/plugs-auth
0d9c683b34ea4128a78c1772cf361c65573ae005
[ "MIT" ]
null
null
null
""" Testing Models """ from django.contrib.auth import get_user_model from plugs_core.testcases import PlugsAPITestCase model = get_user_model() class TestModels(PlugsAPITestCase): """ Testing Models """ def test_superuser_can_login_with_new_account(self): """ Ensures superuser is c...
23.275862
57
0.641481
71
675
5.901408
0.633803
0.064439
0.057279
0
0
0
0
0
0
0
0
0
0.251852
675
28
58
24.107143
0.829703
0.161481
0
0
0
0
0.111538
0
0
0
0
0
0.166667
1
0.083333
false
0.25
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
1
0
0
0
0
0
1
4caef8626df07a14e03b74c2f52928d5db0d7897
8,882
py
Python
test/test_core_notes64.py
mebeim/pyelftools
10214f1af5724c5d2faa2fe41a1f50c38d7dd25b
[ "Unlicense" ]
1,358
2015-01-10T10:59:14.000Z
2022-03-31T21:58:08.000Z
test/test_core_notes64.py
mebeim/pyelftools
10214f1af5724c5d2faa2fe41a1f50c38d7dd25b
[ "Unlicense" ]
308
2015-01-19T09:15:14.000Z
2022-03-31T03:05:46.000Z
test/test_core_notes64.py
mebeim/pyelftools
10214f1af5724c5d2faa2fe41a1f50c38d7dd25b
[ "Unlicense" ]
490
2015-01-12T10:06:43.000Z
2022-03-27T03:26:28.000Z
#------------------------------------------------------------------------------ # elftools tests # # Maxim Akhmedov (max42@yandex-team.ru) # This code is in the public domain #------------------------------------------------------------------------------ import unittest import os from elftools.elf.elffile import ELFFi...
46.020725
79
0.450799
804
8,882
4.773632
0.245025
0.117249
0.123762
0.047421
0.465868
0.334549
0.334549
0.307712
0.28322
0.251172
0
0.159142
0.443932
8,882
192
80
46.260417
0.617939
0.146589
0
0.4
0
0
0.133953
0.055085
0
0
0.049754
0
0.22963
1
0.037037
false
0
0.02963
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb051b8da815b0f715c8c32ade2d345d518173e
7,818
py
Python
tools/keo_solver.py
nschloe/pynosh
331454b29246e6c009878589aad2dccb9fda6c30
[ "MIT" ]
8
2016-01-04T22:49:25.000Z
2021-05-07T17:23:43.000Z
tools/keo_solver.py
nschloe/pynosh
331454b29246e6c009878589aad2dccb9fda6c30
[ "MIT" ]
1
2015-11-09T18:39:31.000Z
2015-11-09T18:39:31.000Z
tools/keo_solver.py
nschloe/pynosh
331454b29246e6c009878589aad2dccb9fda6c30
[ "MIT" ]
1
2021-03-20T22:01:47.000Z
2021-03-20T22:01:47.000Z
# -*- coding: utf-8 -*- # """ Solve a linear equation system with the kinetic energy operator. """ import numerical_methods as nm import sys from scipy.sparse.linalg import LinearOperator import time import numpy import cmath import matplotlib.pyplot as pp from matplotlib import rc rc("text", usetex=True) rc("font", ...
28.429091
84
0.621898
896
7,818
5.253348
0.311384
0.049076
0.037179
0.039516
0.181644
0.126407
0.100701
0.100701
0.090079
0
0
0.020244
0.254413
7,818
274
85
28.532847
0.787271
0.23868
0
0.078431
0
0
0.095587
0.003919
0
0
0
0
0
1
0.039216
false
0
0.084967
0
0.163399
0.071895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb092e33092705019794a96c46a0832dd7384a9
605
py
Python
src/main.py
jasondelport/PythonPlayground
e3badf931e7209b339f38c101248033c888c1cd8
[ "MIT" ]
null
null
null
src/main.py
jasondelport/PythonPlayground
e3badf931e7209b339f38c101248033c888c1cd8
[ "MIT" ]
null
null
null
src/main.py
jasondelport/PythonPlayground
e3badf931e7209b339f38c101248033c888c1cd8
[ "MIT" ]
null
null
null
import os import sys import functions as func print (f'version -> {sys.version}') print (f'version info -> {sys.version_info}') print (f'path -> {sys.path}') print (f'cwd -> {os.getcwd()}') for k, v in os.environ.items(): print(f'{k} -> {v}') print (f'arguments -> {str(sys.argv)}') x = 3 # a whole...
17.794118
58
0.57686
89
605
3.910112
0.47191
0.12069
0.074713
0
0
0
0
0
0
0
0
0.035398
0.252893
605
33
59
18.333333
0.734513
0.132231
0
0
0
0
0.270633
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0.521739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
4cb1dfac090a28c6105bc1ff28f47e2c049b8adb
462
py
Python
backend/apps/query/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
41
2019-01-02T09:36:54.000Z
2022-02-20T13:13:05.000Z
backend/apps/query/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
15
2019-09-30T05:40:20.000Z
2022-02-17T19:28:41.000Z
backend/apps/query/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
23
2019-02-18T10:50:10.000Z
2022-01-06T07:53:18.000Z
# -*- coding:utf-8 -*- from django.conf.urls import url, include from apps.query.views import * from rest_framework import routers router = routers.DefaultRouter() router.register(r'querysqllog', QuerySqlLogViewSet, basename="querysqllog") urlpatterns = [ # url(r'^', include(router.urls)), url(r'querysql...
30.8
75
0.722944
54
462
6.111111
0.592593
0.048485
0.054545
0.060606
0
0
0
0
0
0
0
0.002475
0.125541
462
15
76
30.8
0.814356
0.04329
0
0
0
0
0.120729
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb24cadffc9b78656273d003057453de758f210
1,478
py
Python
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
3
2019-07-08T16:33:44.000Z
2019-09-03T18:34:25.000Z
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
null
null
null
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
null
null
null
import sympl as sp import numpy as np from marble.state import AliasDict class NotAColumnException(Exception): pass class ColumnStore(sp.Monitor): """ Stores single-column values as numpy arrays to later retrieve a timeseries. """ def __init__(self, *args, **kwargs): super(ColumnStore, ...
32.130435
81
0.577131
175
1,478
4.714286
0.44
0.09697
0.145455
0.092121
0.24
0.196364
0.196364
0.196364
0.196364
0.196364
0
0.005941
0.316644
1,478
45
82
32.844444
0.810891
0.18065
0
0.153846
0
0
0.048246
0
0
0
0
0
0
1
0.115385
false
0.076923
0.115385
0.038462
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4cb25ef8ce8ae3207f43473f68b374b2d28f1800
678
py
Python
test/test_io.py
JPYamamoto/secret_sharing_shamir
b73abc7e721ad52b6b22571b0427cb72f6d9a7c2
[ "MIT" ]
null
null
null
test/test_io.py
JPYamamoto/secret_sharing_shamir
b73abc7e721ad52b6b22571b0427cb72f6d9a7c2
[ "MIT" ]
null
null
null
test/test_io.py
JPYamamoto/secret_sharing_shamir
b73abc7e721ad52b6b22571b0427cb72f6d9a7c2
[ "MIT" ]
null
null
null
from shamir.io import IO import os import string import random TEST_FILE = './test/test_assets/io_test.txt' class TestIO: def test_read_write_text(self): length = random.getrandbits(8) content = ''.join(random.choice(string.ascii_letters) for _ in range(length)) IO.write_file(TEST_FILE, ...
23.37931
85
0.662242
91
678
4.725275
0.406593
0.093023
0.111628
0.074419
0.237209
0.237209
0
0
0
0
0
0.007707
0.234513
678
28
86
24.214286
0.820809
0
0
0.105263
0
0
0.044313
0.044313
0
0
0
0
0.105263
1
0.105263
false
0
0.210526
0
0.368421
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb33f614509a8b3ea124e5daa0d312746e38a70
999
py
Python
apps/stix-shifter/stix_shifter_threatbus/test_message_mapping.py
GTrunSec/threatbus
030993a0d10adf25929b85ef0a19bbdc657210f6
[ "BSD-3-Clause" ]
212
2020-01-25T12:05:54.000Z
2022-03-22T05:59:35.000Z
apps/stix-shifter/stix_shifter_threatbus/test_message_mapping.py
GTrunSec/threatbus
030993a0d10adf25929b85ef0a19bbdc657210f6
[ "BSD-3-Clause" ]
57
2020-01-28T14:23:32.000Z
2022-03-10T13:18:11.000Z
apps/stix-shifter/stix_shifter_threatbus/test_message_mapping.py
GTrunSec/threatbus
030993a0d10adf25929b85ef0a19bbdc657210f6
[ "BSD-3-Clause" ]
11
2020-02-01T15:15:15.000Z
2022-01-20T18:37:22.000Z
import unittest from stix2 import Indicator, Sighting from .message_mapping import map_bundle_to_sightings class TestMessageMapping(unittest.TestCase): def setUp(self): self.observations = [ { "type": "identity", }, {"type": "observed-data", "some-prop":...
32.225806
81
0.577578
103
999
5.466019
0.495146
0.047957
0.039076
0.071048
0.10302
0.10302
0
0
0
0
0
0.034335
0.3003
999
30
82
33.3
0.771102
0
0
0
0
0
0.144144
0.024024
0
0
0
0
0.153846
1
0.076923
false
0
0.115385
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb3542f6225736c4abeace73a4f769f34a28587
767
py
Python
tests/test_views/test_list_page.py
dmkskn/polka_curses
910b85671187c0a2eb44302ecac285e2d0ae92eb
[ "MIT" ]
2
2020-02-02T01:44:07.000Z
2020-06-06T13:27:33.000Z
tests/test_views/test_list_page.py
dmkskn/polka_curses
910b85671187c0a2eb44302ecac285e2d0ae92eb
[ "MIT" ]
null
null
null
tests/test_views/test_list_page.py
dmkskn/polka_curses
910b85671187c0a2eb44302ecac285e2d0ae92eb
[ "MIT" ]
null
null
null
import pytest from polka_curses.views.list_page import ListPage, BookInListItem @pytest.fixture def listpage(list_): return ListPage(list_) @pytest.fixture def bookitem(listpage): return BookInListItem(listpage.list_.books[0]) def test_get_list_from_page(listpage): assert listpage.list_ def test_ge...
21.914286
65
0.782269
104
767
5.432692
0.288462
0.084956
0.053097
0.090265
0.102655
0
0
0
0
0
0
0.003021
0.136897
767
34
66
22.558824
0.850453
0
0
0.095238
0
0
0
0
0
0
0
0
0.285714
1
0.285714
false
0
0.095238
0.095238
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4cb376e186ae5bdec1baea83c847e4b3599af7ec
756
py
Python
src/TheBlueAllianceAPI.py
orangelight/FRC-Vision-Scoring-and-Win-Probability
8dd00bb9c7dc25942d0981cfa17776c4ab9705ac
[ "MIT" ]
null
null
null
src/TheBlueAllianceAPI.py
orangelight/FRC-Vision-Scoring-and-Win-Probability
8dd00bb9c7dc25942d0981cfa17776c4ab9705ac
[ "MIT" ]
null
null
null
src/TheBlueAllianceAPI.py
orangelight/FRC-Vision-Scoring-and-Win-Probability
8dd00bb9c7dc25942d0981cfa17776c4ab9705ac
[ "MIT" ]
null
null
null
import requests def get_event_match_keys_with_vidoes(event_key): r = requests.get('http://www.thebluealliance.com/api/v3/event/%s/matches' % event_key, headers={'':''}) json = r.json() match_video = {} for match in json: if len(match['videos']): if match['videos'][0]['type'] == 'yo...
34.363636
107
0.607143
97
756
4.556701
0.371134
0.072398
0.049774
0.072398
0.393665
0.393665
0.393665
0.393665
0.393665
0.393665
0
0.006757
0.216931
756
22
108
34.363636
0.739865
0
0
0.222222
0
0
0.227213
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb68db523550c4a88d88916f63eb63b23484a1c
111
py
Python
python/stars2.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
1
2019-09-27T17:46:41.000Z
2019-09-27T17:46:41.000Z
python/stars2.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
null
null
null
python/stars2.py
Xanonymous-GitHub/main
53120110bd8dc9ab33424fa26d1a8ca5b9256ebe
[ "Apache-2.0" ]
5
2019-09-30T16:41:14.000Z
2019-10-25T11:13:39.000Z
while True: n = int(input("n=?")) for x in range(0, n, 1): print(" "*(n-(x+1)), "*"*(x+1))
22.2
40
0.387387
19
111
2.263158
0.631579
0.093023
0
0
0
0
0
0
0
0
0
0.051948
0.306306
111
4
41
27.75
0.506494
0
0
0
0
0
0.046729
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4cb6dfb1668dbc770346a5632ef8993ceafc242e
2,592
py
Python
dskc/visualization/graphs/shortcuts/text.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/visualization/graphs/shortcuts/text.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/visualization/graphs/shortcuts/text.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from dskc.clean import get_text_from from dskc.visualization import graphs from dskc.visualization.graphs.types.word_cloud.word_cloud import word_cloud, text_proportion_success from dskc._util.string import get_display_text import pandas as pd from . import util from matplotlib import pyplot as plt def _wordcloud(ser...
35.027027
119
0.628472
305
2,592
5.009836
0.219672
0.117801
0.094241
0.135471
0.503272
0.402487
0.35144
0.308246
0.280105
0.280105
0
0.002195
0.297068
2,592
73
120
35.506849
0.836443
0.035494
0
0.0625
0
0
0.037721
0
0
0
0
0
0
1
0.083333
false
0
0.145833
0
0.291667
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb796dd4c548360d380c69351baad3aace13298
1,333
py
Python
atmos/genModel.py
aasensio/ALMA-Zeeman
c17c5f1bd7117efe3be1e97b4cd1e9422bc315e2
[ "MIT" ]
1
2020-08-12T20:26:15.000Z
2020-08-12T20:26:15.000Z
atmos/genModel.py
aasensio/ALMA-Zeeman
c17c5f1bd7117efe3be1e97b4cd1e9422bc315e2
[ "MIT" ]
null
null
null
atmos/genModel.py
aasensio/ALMA-Zeeman
c17c5f1bd7117efe3be1e97b4cd1e9422bc315e2
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as pl yearInSec = 365.0*24.0*3600.0 solarMassPerYear = 1.99e33 / yearInSec RStar = 4e13 TStar = 2330.0 MStar = 0.8 * 1.99e33 R0 = 1.2 * RStar Rc = 5 * RStar Rw = 20.0 * RStar vexp = 14.5 * 1e5 vturb = 1.0 MLoss = 2e-5 * solarMassPerYear G = 6.67259e-8 k = 1.381e-16 mg = 2.3 ...
27.204082
158
0.573893
272
1,333
2.805147
0.327206
0.04194
0.036697
0.04194
0.395806
0.395806
0.395806
0.395806
0.395806
0.395806
0
0.15576
0.186047
1,333
48
159
27.770833
0.547465
0
0
0.238095
0
0.095238
0.274569
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cb8d136ebd26e2fa31c7a1b81f70cae8eea56c2
203
py
Python
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
print "Buna! Sung gigi! Sunt petrolier! Gigi Petrolieru'!" print "Gigi este momentan conflictuat despre ce sa faca..." print "Azi sunt mai vorbaret decat deobicei! N-am ce face, se termina sesiunea..."
40.6
82
0.748768
31
203
4.903226
0.806452
0
0
0
0
0
0
0
0
0
0
0
0.152709
203
4
83
50.75
0.883721
0
0
0
0
0
0.866337
0
0
0
0
0
0
0
null
null
0
0
null
null
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
4cbaca48566978aca709be3f417c3e53a7bfd418
307
py
Python
cli/utils.py
mihaiparvu/nvidia-bot
3c1c4df8f79880bbb86e818a3d208c9878d479b4
[ "MIT" ]
28
2021-02-18T20:36:10.000Z
2022-01-09T11:38:00.000Z
cli/utils.py
javadash/nvidia-bot
6f26946532ffd607eb505996773e4dcda0df853a
[ "MIT" ]
null
null
null
cli/utils.py
javadash/nvidia-bot
6f26946532ffd607eb505996773e4dcda0df853a
[ "MIT" ]
14
2021-03-17T06:13:59.000Z
2022-01-26T00:24:26.000Z
import click import questionary class QuestionaryOption(click.Option): def __init__(self, param_decls=None, **attrs): click.Option.__init__(self, param_decls, **attrs) def prompt_for_value(self, ctx): return questionary.select(self.prompt, choices=self.type.choices).unsafe_ask()
27.909091
86
0.736156
39
307
5.461538
0.589744
0.103286
0.122066
0.169014
0
0
0
0
0
0
0
0
0.149837
307
10
87
30.7
0.816092
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
4cbc67363189895ebbbc90a0685761a9c7791bac
516
py
Python
test/img2base64.py
yotcap/face-compare
980d399d00ee1d56e719780a62e7bf28907a3684
[ "MIT" ]
null
null
null
test/img2base64.py
yotcap/face-compare
980d399d00ee1d56e719780a62e7bf28907a3684
[ "MIT" ]
null
null
null
test/img2base64.py
yotcap/face-compare
980d399d00ee1d56e719780a62e7bf28907a3684
[ "MIT" ]
null
null
null
#coding=utf-8 import csv import base64 def image_to_base64(): '''封装把图片转换为base64编码格式''' o = open(r"./1-0.jpg", 'rb') base64_data = base64.b64encode(o.read()) s = base64_data.decode() return ("data:image/png;base64,%s"%s) def base64_write_csv(): '''把生成的base64写入CSV文件''' f = open(r'./image.csv...
21.5
53
0.637597
71
516
4.338028
0.492958
0.116883
0.084416
0.142857
0
0
0
0
0
0
0
0.063529
0.176357
516
23
54
22.434783
0.661176
0.094961
0
0
0
0
0.134066
0.052747
0
0
0
0
0
1
0.133333
false
0
0.133333
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
4cbd54d4e866828fe0e21e93254d8f66e103db86
80
py
Python
learning_racer/teleoperate/__init__.py
tikisi/airc-rl-agent
280ae6e1f30fff991ccf78e1075c5c25edab6866
[ "MIT" ]
69
2020-03-27T03:02:20.000Z
2022-03-03T10:08:09.000Z
learning_racer/teleoperate/__init__.py
rl-jetbot/airc-rl-agent
b8266f5b09a81fe2d1fdeeb72e48f4bb24273049
[ "MIT" ]
46
2020-02-28T13:42:40.000Z
2022-01-26T23:47:12.000Z
learning_racer/teleoperate/__init__.py
rl-jetbot/airc-rl-agent
b8266f5b09a81fe2d1fdeeb72e48f4bb24273049
[ "MIT" ]
22
2020-03-16T17:32:05.000Z
2022-02-15T23:50:10.000Z
from .ipc_teleop import Teleoperator from .message_queue import NotebookBackend
26.666667
42
0.875
10
80
6.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.1
80
2
43
40
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4cc077a37142c3b4386ac8f190903bf434814a20
4,822
py
Python
ray/models.py
Shiqan/fortnite-replay-reader
5efb522704621c66ace840c9968777f682ae2adb
[ "MIT" ]
30
2018-11-08T16:33:50.000Z
2022-03-06T20:52:54.000Z
ray/models.py
Shiqan/fortnite-replay-reader
5efb522704621c66ace840c9968777f682ae2adb
[ "MIT" ]
20
2018-11-22T20:42:32.000Z
2021-08-07T00:09:39.000Z
ray/models.py
Shiqan/fortnite-replay-reader
5efb522704621c66ace840c9968777f682ae2adb
[ "MIT" ]
20
2018-11-12T22:31:46.000Z
2022-03-06T20:52:45.000Z
import datetime import re from collections import defaultdict from dataclasses import dataclass, field from enum import Enum from typing import List, Tuple from ray import logger __all__ = ['BitTypes', 'HistoryTypes', 'ChunkTypes', 'EventTypes', 'Elimination', 'Stats', 'TeamStats', 'Header', 'H...
28.364706
128
0.668602
581
4,822
5.35284
0.414802
0.024759
0.016399
0.010289
0.01672
0.01672
0
0
0
0
0
0.016902
0.251555
4,822
169
129
28.532544
0.844832
0.197843
0
0.107692
0
0.007692
0.095804
0.013988
0
0
0.002111
0
0
1
0.023077
false
0
0.053846
0
0.869231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4cc3954d297eebbd37ccdacd728db29e907bb798
457
py
Python
frappe/core/doctype/custom_script/custom_script.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
1
2022-03-05T16:02:39.000Z
2022-03-05T16:02:39.000Z
frappe/core/doctype/custom_script/custom_script.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
1
2015-07-11T20:52:38.000Z
2019-12-06T15:00:58.000Z
frappe/core/doctype/custom_script/custom_script.py
pawaranand/phr_frappe
d997ae7d6fbade4b2c4a2491603d988876dfd67e
[ "MIT" ]
2
2015-09-05T05:30:23.000Z
2018-03-21T19:45:10.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr from frappe.model.document import Document class CustomScript(Document): def autoname(self): self.name = self.dt + "-" + sel...
22.85
71
0.761488
66
457
5.121212
0.590909
0.053254
0.088757
0.118343
0.195266
0.195266
0.195266
0
0
0
0
0.01023
0.14442
457
19
72
24.052632
0.85422
0.214442
0
0.181818
0
0
0.002825
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
4cc3f6dad88e745abaa2a72a51c49e94ec854132
1,160
py
Python
4_Structured_GE/struct_ge.py
nkphysics/Computational-Linear-Algebra-
8e82585e25b58f73179c0b0ace63fcda9f480f07
[ "MIT" ]
1
2021-12-09T20:14:22.000Z
2021-12-09T20:14:22.000Z
4_Structured_GE/struct_ge.py
nkphysics/Computational-Linear-Algebra-
8e82585e25b58f73179c0b0ace63fcda9f480f07
[ "MIT" ]
null
null
null
4_Structured_GE/struct_ge.py
nkphysics/Computational-Linear-Algebra-
8e82585e25b58f73179c0b0ace63fcda9f480f07
[ "MIT" ]
1
2022-03-12T12:27:21.000Z
2022-03-12T12:27:21.000Z
# Computational Linear Algebra #4 Structured Gaussian Elimination # By: Nick Space Cowboy import numpy as np class Cowboy_Lin_Alg(object): def solve_utri(self, Utri, b): n = len(Utri) # row dimension of the Utri matrix x = np.zeros_like(b, dtype=np.float64) for i in range(n - 1, -1, -1): # loop to iterate thro...
25.777778
82
0.577586
227
1,160
2.885463
0.317181
0.015267
0.085496
0.051908
0.222901
0.158779
0.158779
0.082443
0
0
0
0.033113
0.218966
1,160
44
83
26.363636
0.689845
0.173276
0
0.105263
0
0
0.040966
0
0
0
0
0
0
1
0.052632
false
0
0.026316
0
0.157895
0.315789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cc4d02c3cfce0ada481de55b240a788dce0d962
6,819
py
Python
src/build/mac_toolchain.py
Abreto/naiveproxy
5d84bf9f18eb5a949558086bad7c945bb9051362
[ "BSD-3-Clause" ]
1
2020-03-11T03:44:02.000Z
2020-03-11T03:44:02.000Z
src/build/mac_toolchain.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
src/build/mac_toolchain.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ If should_use_hermetic_xcode.py emits "1", and the current toolchain is out of date: * Downloads the hermetic mac toolchain *...
34.969231
80
0.729432
906
6,819
5.318985
0.331126
0.017431
0.026562
0.019091
0.108114
0.074497
0.055198
0
0
0
0
0.011111
0.155301
6,819
194
81
35.149485
0.825521
0.30151
0
0.215517
0
0
0.238762
0.120017
0
0
0
0.005155
0
1
0.051724
false
0
0.068966
0
0.206897
0.206897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cc5ad8039746ed8e70f6bec48980a31f5bed3e0
5,050
py
Python
processout/activity.py
SMAKSS/processout-python
2af27fe1eeb8d5106123ee502a9bedfe336c951b
[ "MIT" ]
1
2020-10-11T07:29:51.000Z
2020-10-11T07:29:51.000Z
processout/activity.py
SMAKSS/processout-python
2af27fe1eeb8d5106123ee502a9bedfe336c951b
[ "MIT" ]
null
null
null
processout/activity.py
SMAKSS/processout-python
2af27fe1eeb8d5106123ee502a9bedfe336c951b
[ "MIT" ]
null
null
null
try: from urllib.parse import quote_plus except ImportError: from urllib import quote_plus import processout from processout.networking.request import Request from processout.networking.response import Response # The content of this file was automatically generated class Activity(object): def __init__(...
24.396135
71
0.542574
560
5,050
4.744643
0.141071
0.060218
0.039142
0.055326
0.236357
0.143018
0.109146
0.109146
0.109146
0.109146
0
0.000619
0.360396
5,050
206
72
24.514563
0.821981
0.170495
0
0.264463
0
0
0.033868
0
0
0
0
0
0
1
0.14876
false
0
0.049587
0
0.355372
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cc723b5f5ac890194076952666fdd96857ba1db
475
py
Python
AirLog/__main__.py
minorsecond/AirLog
91d4a801229281377545896cc62b291606e31df1
[ "MIT" ]
null
null
null
AirLog/__main__.py
minorsecond/AirLog
91d4a801229281377545896cc62b291606e31df1
[ "MIT" ]
null
null
null
AirLog/__main__.py
minorsecond/AirLog
91d4a801229281377545896cc62b291606e31df1
[ "MIT" ]
null
null
null
import data as csv __version__ = "0.2" callsign_endpoint = "http://hamcall.net/call?callsign=" print(f"AirLog Version: {__version__}") questions = ["Callsign", "Name", "Location", "Comm type", "Notes", "signal ( x/10 )"] data = {} while 0 < len(questions): for question in questions: print(question + "?") answ...
21.590909
85
0.669474
60
475
5.15
0.616667
0.090615
0
0
0
0
0
0
0
0
0
0.014963
0.155789
475
21
86
22.619048
0.755611
0
0
0
0
0
0.244211
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cc800bfe4dc3a21da35a227b447df7f3dadc120
364
py
Python
sweep/hooks.py
dropseedlabs/pullrespond
99cc529dac97fb737264e1e2743795c6f7257e8a
[ "MIT" ]
2
2018-01-24T16:49:50.000Z
2018-04-19T04:34:57.000Z
sweep/hooks.py
dropseed/sweep
99cc529dac97fb737264e1e2743795c6f7257e8a
[ "MIT" ]
26
2017-09-25T17:15:57.000Z
2018-11-05T17:07:29.000Z
sweep/hooks.py
dropseedlabs/reduce
99cc529dac97fb737264e1e2743795c6f7257e8a
[ "MIT" ]
2
2017-11-01T20:42:09.000Z
2019-02-13T21:45:12.000Z
from os import path from subprocess import check_call import click def run_hook(name, *args): hook_path = path.expanduser('~/.sweep/hooks/' + name) if path.exists(hook_path): # run the script with the given args click.secho('Found hook for {}, running {}'.format(name, hook_path), fg='blue') ...
28
87
0.667582
53
364
4.45283
0.566038
0.135593
0
0
0
0
0
0
0
0
0
0
0.203297
364
12
88
30.333333
0.813793
0.093407
0
0
0
0
0.146341
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4cc88d9a4e9effcd400d874cbc738191ab51d5f4
2,642
py
Python
adefa/tests/test_result.py
budtmo/adefa
448812c2bef2ffa989e357529fb481b70231933b
[ "Apache-2.0" ]
3
2017-08-22T12:40:46.000Z
2017-11-01T13:08:15.000Z
adefa/tests/test_result.py
butomo1989/adefa
448812c2bef2ffa989e357529fb481b70231933b
[ "Apache-2.0" ]
1
2021-04-20T17:13:08.000Z
2021-04-20T17:13:08.000Z
adefa/tests/test_result.py
budtmo/adefa
448812c2bef2ffa989e357529fb481b70231933b
[ "Apache-2.0" ]
2
2017-08-22T12:55:56.000Z
2017-12-12T10:23:52.000Z
"""Unit test to test get test result.""" from unittest import TestCase from adefa import cli from adefa.tests import runner import mock class TestResult(TestCase): """Unit test class to test get test result.""" def test_valid_result(self): cli.client.get_run = mock.MagicMock(return_value={'run': {...
42.612903
115
0.629826
331
2,642
4.879154
0.259819
0.055728
0.117647
0.148607
0.636533
0.613003
0.575851
0.575851
0.525697
0.48483
0
0.010511
0.207797
2,642
61
116
43.311475
0.761108
0.028388
0
0.340426
0
0
0.15493
0.025039
0
0
0
0
0.212766
1
0.106383
false
0
0.085106
0
0.212766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ccb64646aeb2b50f616763b71a0d4b8be17cc46
876
py
Python
euclidIR/fitlc.py
sdhawan21/euclidIR
15b3e8ba1a033ac6a1d80ea1a1a33176fa0633d3
[ "MIT" ]
null
null
null
euclidIR/fitlc.py
sdhawan21/euclidIR
15b3e8ba1a033ac6a1d80ea1a1a33176fa0633d3
[ "MIT" ]
null
null
null
euclidIR/fitlc.py
sdhawan21/euclidIR
15b3e8ba1a033ac6a1d80ea1a1a33176fa0633d3
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import sncosmo from simlc import simlc from astropy.table import Table class lcfit: def __init__(self): self.model = sncosmo.Model(source='Hsiao') def obs_tab(self, taxis, bandarr): """ Create the astropy table with the...
20.857143
66
0.482877
97
876
4.268041
0.525773
0.065217
0.067633
0
0
0
0
0
0
0
0
0.037594
0.392694
876
41
67
21.365854
0.740602
0
0
0
0
0
0.052219
0
0
0
0
0
0
0
null
null
0
0.217391
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ccc8df1356db8bd08571c1845f788cd223e8846
2,082
py
Python
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-20T08:10:29.000Z
2022-03-20T08:10:29.000Z
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-21T04:54:10.000Z
2022-03-21T04:54:10.000Z
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-02-25T01:28:10.000Z
2022-02-25T01:28:10.000Z
import os from argparse import ArgumentParser from collections import OrderedDict import torch import torch.nn as nn import random import pickle import pytorch_lightning as pl from options.train_options import TrainOptions from pytorch_lightning.callbacks import ModelCheckpoint import numpy as np import sys sys.path.ap...
30.173913
132
0.670029
271
2,082
4.98893
0.424354
0.048817
0.073965
0.053254
0.266272
0.266272
0.223373
0.174556
0
0
0
0.042745
0.202209
2,082
69
133
30.173913
0.771222
0.07781
0
0.071429
0
0
0.314689
0.18139
0
0
0
0
0
1
0
false
0
0.267857
0
0.267857
0.089286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cce67d9f4c01fa5e0acf82e671f6eb2877be221
1,758
py
Python
tests/test_address.py
DPInvaders/pyacryl2
bad81a4ae192e9c7e44ac858a76eee5c5abb5bc5
[ "MIT" ]
3
2020-03-31T09:39:53.000Z
2021-12-21T06:07:30.000Z
tests/test_address.py
DPInvaders/pyacryl2
bad81a4ae192e9c7e44ac858a76eee5c5abb5bc5
[ "MIT" ]
1
2020-02-25T07:23:46.000Z
2020-02-25T07:23:46.000Z
tests/test_address.py
DPInvaders/pyacryl2
bad81a4ae192e9c7e44ac858a76eee5c5abb5bc5
[ "MIT" ]
1
2020-04-25T10:59:34.000Z
2020-04-25T10:59:34.000Z
import unittest from unittest.mock import patch import base58 from pyacryl2 import AcrylClient from pyacryl2.utils import AcrylAddress from pyacryl2.utils import AcrylAddressGenerator from pyacryl2.utils import AcrylAsyncAddress class AddressGeneratorTest(unittest.TestCase): def setUp(self): self.addre...
35.16
112
0.746303
178
1,758
7.179775
0.308989
0.068858
0.093897
0.084507
0.235524
0.235524
0.205008
0.205008
0
0
0
0.015764
0.17008
1,758
49
113
35.877551
0.860178
0
0
0.138889
0
0
0.058054
0.039841
0
0
0
0
0.194444
1
0.166667
false
0
0.194444
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ccecb0ab234dba1d0a934f7d728bb510ba23bdf
9,606
py
Python
CxSM_UnitaryGauge_UFO/couplings.py
YangPhy/CxSM_FR
10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a
[ "MIT" ]
null
null
null
CxSM_UnitaryGauge_UFO/couplings.py
YangPhy/CxSM_FR
10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a
[ "MIT" ]
null
null
null
CxSM_UnitaryGauge_UFO/couplings.py
YangPhy/CxSM_FR
10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a
[ "MIT" ]
null
null
null
# This file was automatically created by FeynRules 2.3.36 # Mathematica version: 11.3.0 for Linux x86 (64-bit) (March 7, 2018) # Date: Tue 15 Feb 2022 16:39:02 from object_library import all_couplings, Coupling from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot GC_1 = Coupling(name =...
38.733871
204
0.452738
1,511
9,606
2.798147
0.082065
0.189215
0.212867
0.119678
0.669584
0.613765
0.554872
0.460738
0.312677
0.216651
0
0.11313
0.295128
9,606
247
205
38.890688
0.511298
0.015928
0
0.324022
0
0.162011
0.408975
0.330123
0
0
0
0
0
0
null
null
0
0.011173
null
null
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
4ccf132cb7ea99f836f5615b2f6cafbc71c7f9b8
1,871
py
Python
core/atypes_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
1
2020-07-07T09:58:57.000Z
2020-07-07T09:58:57.000Z
core/atypes_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
42
2018-11-11T08:08:46.000Z
2020-01-10T11:15:47.000Z
core/atypes_emitter.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
null
null
null
"Обработка событий из логов с использованием потоков (Rx)" from __future__ import annotations import logging from typing import Tuple from rx.subject import Subject from rx.core.abc.disposable import Disposable from .atypes import Atype0, Atype1, Atype2, Atype3, Atype4, Atype5, Atype6, Atype7, Atype8, Atype9, \ Aty...
39.808511
119
0.637092
208
1,871
5.586538
0.442308
0.03012
0.024096
0.041308
0.259897
0.259897
0.259897
0.259897
0.259897
0.259897
0
0.054665
0.266702
1,871
46
120
40.673913
0.792274
0.058792
0
0
0
0
0.112774
0
0
0
0
0
0
1
0.076923
false
0
0.179487
0
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
4ccf9675205633b150c85c2b3406abfaf9bf3ed5
7,825
py
Python
tests/test_combustion/test_points/test_rotate.py
TidalPaladin/combustion
69b9a2b9baf90b81ed9098b4f0391f5c15efaee7
[ "Apache-2.0" ]
3
2020-07-09T22:18:19.000Z
2021-11-08T03:47:19.000Z
tests/test_combustion/test_points/test_rotate.py
TidalPaladin/combustion
69b9a2b9baf90b81ed9098b4f0391f5c15efaee7
[ "Apache-2.0" ]
15
2020-06-12T21:48:59.000Z
2022-02-05T18:41:50.000Z
tests/test_combustion/test_points/test_rotate.py
TidalPaladin/combustion
69b9a2b9baf90b81ed9098b4f0391f5c15efaee7
[ "Apache-2.0" ]
1
2021-02-15T20:06:16.000Z
2021-02-15T20:06:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import timeit from math import radians import pytest import torch from combustion.points import RandomRotate, Rotate, random_rotate, rotate class TestRotateFunctional: @pytest.mark.parametrize( "x,y,z", [ pytest.param(0.0, 0.0, 0.0, id="...
33.297872
112
0.529329
1,087
7,825
3.75713
0.109476
0.042605
0.048482
0.048972
0.753673
0.729432
0.68952
0.676298
0.643976
0.602351
0
0.063974
0.300831
7,825
234
113
33.440171
0.682508
0.005367
0
0.603015
0
0
0.04511
0
0
0
0
0
0.090452
1
0.090452
false
0
0.025126
0
0.135678
0.015075
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4cd06c63e71502403d0c04b0230831a34965b8e6
2,101
py
Python
src/kitman/apps/iam/domain.py
madskronborg/saas-toolkit
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
[ "MIT" ]
null
null
null
src/kitman/apps/iam/domain.py
madskronborg/saas-toolkit
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
[ "MIT" ]
null
null
null
src/kitman/apps/iam/domain.py
madskronborg/saas-toolkit
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
[ "MIT" ]
null
null
null
from typing import Generic, Protocol, TypeVar from uuid import UUID from fastapi.security.base import SecurityBase from fastapi import Response from kitman.core.domain import DependencyCallable, OpenAPIResponseType, IModel from kitman.core.schemas import Schema # Types TUser = TypeVar("TUser", bound="IUser") TSubje...
23.087912
78
0.696335
213
2,101
6.760563
0.375587
0.033333
0.033333
0.041667
0.102778
0.102778
0
0
0
0
0
0
0.204188
2,101
90
79
23.344444
0.861244
0.02713
0
0.196721
0
0
0.056946
0
0
0
0
0
0
1
0.032787
false
0
0.098361
0
0.327869
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cd15c015024ede7506c129916f56cd62f88c5c2
7,835
py
Python
applied/tasks/absa/models/capsule_network.py
ndoll1998/AppliedTransformers
76cbdef6fdd765b2178af71038a61e3e71e0cec9
[ "MIT" ]
3
2020-09-02T03:51:49.000Z
2020-09-18T14:09:48.000Z
applied/tasks/absa/models/capsule_network.py
ndoll1998/AppliedTransformers
76cbdef6fdd765b2178af71038a61e3e71e0cec9
[ "MIT" ]
null
null
null
applied/tasks/absa/models/capsule_network.py
ndoll1998/AppliedTransformers
76cbdef6fdd765b2178af71038a61e3e71e0cec9
[ "MIT" ]
2
2021-01-30T12:37:43.000Z
2021-05-19T06:29:31.000Z
# import torch import torch import torch.nn as nn import torch.nn.functional as F # import applied transformers from .base import ABSA_Model from ..datasets.base import ABSA_Dataset, ABSA_DatasetItem from applied.core.model import Encoder, InputFeatures # import utils from applied.common import align_shape from typing ...
41.675532
109
0.668156
971
7,835
5.166838
0.197734
0.041858
0.016942
0.020929
0.139326
0.10285
0.055013
0.030696
0.030696
0.030696
0
0.00967
0.234461
7,835
187
110
41.898396
0.826776
0.12508
0
0.033058
0
0
0.002224
0
0
0
0
0
0
1
0.115702
false
0
0.066116
0.024793
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cd3b1fb3f495d190148790e7dbd913279a3389a
5,604
py
Python
vise/analyzer/vasp/plot_band.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
16
2020-07-14T13:14:05.000Z
2022-03-04T13:39:30.000Z
vise/analyzer/vasp/plot_band.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
10
2021-03-15T20:47:45.000Z
2021-08-19T00:47:12.000Z
vise/analyzer/vasp/plot_band.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
6
2020-03-03T00:42:39.000Z
2022-02-22T02:34:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. import re from copy import deepcopy from typing import List import numpy as np from pymatgen.electronic_structure.plotter import BSPlotter from pymatgen.io.vasp import Vasprun from vise.analyzer.plot_band import BandPlotIn...
37.864865
93
0.579586
686
5,604
4.476676
0.271137
0.039075
0.016281
0.013676
0.130251
0.105503
0.091176
0.073592
0.030609
0
0
0.010234
0.31995
5,604
147
94
38.122449
0.795592
0.065489
0
0.06422
0
0
0.020463
0
0
0
0
0
0
1
0.100917
false
0
0.082569
0.045872
0.293578
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cd3c91eb26f0a5f4b316c7e2bbe909064fe4e8e
2,298
py
Python
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
null
null
null
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
150
2019-11-14T17:48:22.000Z
2021-08-05T20:39:31.000Z
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
2
2019-01-23T11:42:25.000Z
2021-01-08T13:01:49.000Z
import logging.handlers import logging import os from config import Config from base.singleton import Singleton class Logger(metaclass=Singleton): def __init__(self, dir_path=os.path.dirname(os.path.realpath(__file__))+os.path.sep): formatter = logging.Formatter('%(levelname)s %(asctime)s file ...
37.672131
114
0.663621
259
2,298
5.752896
0.216216
0.067114
0.075168
0.128859
0.855034
0.771812
0.715436
0.653691
0.653691
0.653691
0
0
0.22846
2,298
60
115
38.3
0.840384
0.061358
0
0.511628
0
0.046512
0.136711
0
0
0
0
0
0
1
0.093023
false
0
0.116279
0
0.302326
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4cd4a53c4c7dcb84977fbd1be35492605fe06f89
6,445
py
Python
examples/calculator.py
MartinHowarth/shimmer
541247482748300bbebf9bdec5ecdc19339fe665
[ "MIT" ]
3
2019-12-15T12:51:58.000Z
2022-01-11T01:35:31.000Z
examples/calculator.py
MartinHowarth/shimmer
541247482748300bbebf9bdec5ecdc19339fe665
[ "MIT" ]
101
2019-12-13T12:21:54.000Z
2020-04-28T08:21:35.000Z
examples/calculator.py
MartinHowarth/shimmer
541247482748300bbebf9bdec5ecdc19339fe665
[ "MIT" ]
null
null
null
"""Example of a simple calculator written using shimmer.""" from typing import Optional, List, Callable from pyglet.window import key import cocos from shimmer.components.box_layout import create_box_layout, BoxGridDefinition from shimmer.components.font import FontDefinition from shimmer.data_structures import Whit...
33.393782
99
0.626222
706
6,445
5.570822
0.298867
0.033054
0.021358
0.019069
0.122044
0.113399
0.052886
0.036105
0
0
0
0.009087
0.282855
6,445
192
100
33.567708
0.841843
0.226532
0
0.126984
0
0
0.020337
0.004725
0
0
0
0
0
1
0.087302
false
0
0.087302
0
0.246032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cd55930cca43249b54a8a2cddae9a20e44e6b82
776
py
Python
src/yellowdog_client/model/exceptions/service_client_exception.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/exceptions/service_client_exception.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/exceptions/service_client_exception.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
from typing import Tuple class ServiceClientException(Exception): __http_status_code = None # type: int __message = None # type: str __details = None # type: Tuple[str] def __init__(self, http_status_code, message, details=()): # type: (int, str, Tuple[str]...
32.333333
63
0.576031
85
776
4.764706
0.329412
0.123457
0.17284
0.133333
0.232099
0
0
0
0
0
0
0
0.31701
776
23
64
33.73913
0.764151
0.094072
0
0
0
0
0.027221
0
0
0
0
0
0
1
0.111111
false
0
0.055556
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
4cd5bdd2126b0c926a1a7cde13ce6c70bdc0f2b9
398
py
Python
nodefinder/__init__.py
greschd/NodeFinder
0204789afb13fcd1ffb86fd3c013e7debafb2590
[ "Apache-2.0" ]
2
2020-01-29T16:47:18.000Z
2021-05-24T16:39:00.000Z
nodefinder/__init__.py
greschd/NodeFinder
0204789afb13fcd1ffb86fd3c013e7debafb2590
[ "Apache-2.0" ]
12
2018-07-11T23:42:19.000Z
2021-10-07T21:39:12.000Z
nodefinder/__init__.py
greschd/NodeFinder
0204789afb13fcd1ffb86fd3c013e7debafb2590
[ "Apache-2.0" ]
2
2019-11-06T00:22:53.000Z
2019-11-06T00:38:23.000Z
# -*- coding: utf-8 -*- # © 2017-2019, ETH Zurich, Institut für Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> """A tool to find and identify nodal features in band structures. """ __version__ = '0.1.1' from . import coordinate_system from . import search from . import identify from . import io from ....
23.411765
65
0.711055
55
398
4.963636
0.727273
0.18315
0
0
0
0
0
0
0
0
0
0.035928
0.160804
398
16
66
24.875
0.778443
0.459799
0
0
0
0
0.184466
0
0
0
0
0
0
1
0
false
0
0.714286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4cd7ca1f3d81d21216933ef7820282bad2c03dec
6,891
py
Python
fipie/portfolio.py
thoriuchi0531/tutti
d0fe202864edc9d257654743db6dc44a67a1d7ed
[ "MIT" ]
1
2021-11-14T15:53:38.000Z
2021-11-14T15:53:38.000Z
fipie/portfolio.py
thoriuchi0531/fipie
d0fe202864edc9d257654743db6dc44a67a1d7ed
[ "MIT" ]
null
null
null
fipie/portfolio.py
thoriuchi0531/fipie
d0fe202864edc9d257654743db6dc44a67a1d7ed
[ "MIT" ]
null
null
null
from typing import Optional import numpy as np import pandas as pd from fipie import tree from fipie.cluster import ClusterAlgo, NoCluster from fipie.weighting import Weighting class Portfolio: """ A portfolio of instrument returns """ def __init__(self, ret: pd.DataFrame): """ Create a ``Portfolio...
41.263473
119
0.59672
788
6,891
5.126904
0.225888
0.038119
0.020792
0.030693
0.397277
0.332426
0.305198
0.305198
0.305198
0.288861
0
0.00195
0.330286
6,891
166
120
41.512048
0.873456
0.42824
0
0.291139
0
0
0.043391
0
0
0
0
0
0
1
0.088608
false
0
0.075949
0
0.278481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4cdad0fc7f0f559ab2c9b190dbc34f788f6aa6ac
7,113
py
Python
CNN_train.py
5220243/taili_code_case
8cc6c36359336c64b8e3c13afa8e891ebfe73a1b
[ "MIT" ]
null
null
null
CNN_train.py
5220243/taili_code_case
8cc6c36359336c64b8e3c13afa8e891ebfe73a1b
[ "MIT" ]
null
null
null
CNN_train.py
5220243/taili_code_case
8cc6c36359336c64b8e3c13afa8e891ebfe73a1b
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import logging from CNN_input import read_dataset logging.basicConfig(format='%(levelname)s:%(asctime)s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') DATASET_DIR = r'C:\Users\PycharmProjects\Cifar' N_FEATURES = 3072 # 3072 = 32*32*3 N_CLASSES = 7 ...
44.45625
134
0.584563
963
7,113
4.128764
0.245068
0.03169
0.022636
0.033954
0.285966
0.201459
0.201459
0.152414
0.137324
0.108149
0
0.03263
0.280472
7,113
159
135
44.735849
0.744236
0.017433
0
0.2
0
0
0.064185
0.011284
0
0
0
0
0
0
null
null
0
0.030769
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4cdc507cf33994472459111fbe7ed64ee358d760
6,588
py
Python
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
import unittest import numpy as np from src.scene.point import ImagePoint, WorldPoint class TestImagePoint(unittest.TestCase): def test_p_x(self) -> None: """ Assert the self.x property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int...
32.136585
74
0.556163
829
6,588
4.260555
0.107358
0.087769
0.051529
0.022084
0.854757
0.762458
0.716308
0.689977
0.689977
0.689977
0
0.029182
0.339405
6,588
204
75
32.294118
0.782399
0.104888
0
0.656716
0
0
0.049848
0
0
0
0
0
0.171642
1
0.097015
false
0
0.022388
0
0.134328
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4