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
2c2296a7af80752c885721e618ab896d2c0978d7
2,110
py
Python
tests/test_heartbeat.py
maxerbubba/stepfunctions_activity_worker
846e9a2351f96b20855588845fba8be9a1a72a7b
[ "MIT" ]
6
2018-11-29T18:37:35.000Z
2021-06-07T14:14:16.000Z
tests/test_heartbeat.py
maxerbubba/stepfunctions_activity_worker
846e9a2351f96b20855588845fba8be9a1a72a7b
[ "MIT" ]
6
2018-11-30T16:14:32.000Z
2019-10-16T15:41:16.000Z
tests/test_heartbeat.py
maxerbubba/stepfunctions_activity_worker
846e9a2351f96b20855588845fba8be9a1a72a7b
[ "MIT" ]
1
2019-10-11T05:00:08.000Z
2019-10-11T05:00:08.000Z
"""Tests for stepfunctions_activity_worker.heartbeat. Since Heartbeat inherits from threading.Timer we're testing against the functionality that we override/extending to it. """ from unittest import mock import pytest from stepfunctions_activity_worker.heartbeat import Heartbeat @pytest.fixture def heartbeat_args(...
27.051282
71
0.7109
255
2,110
5.694118
0.278431
0.125344
0.044077
0.071625
0.466942
0.402204
0.358127
0.297521
0.227273
0.227273
0
0.002849
0.168246
2,110
77
72
27.402597
0.824501
0.203318
0
0.390244
0
0
0.021898
0
0
0
0
0
0.097561
1
0.146341
false
0.02439
0.073171
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c2794286b828cae460d295bd29cdfc5c27b425e
632
py
Python
python/reverseString.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/reverseString.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/reverseString.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
class Solution: def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-place instead. Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array,...
33.263158
80
0.571203
92
632
3.923913
0.630435
0.024931
0.027701
0
0
0
0
0
0
0
0
0.012107
0.346519
632
19
81
33.263158
0.861985
0.561709
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
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
2c280a854d5dd0052e5104746e9e594265513c8d
1,251
py
Python
otptags.py
azukacchi/scriptsdump
c54d1dcf42ac0e5242786fa4364c7532ed7b5446
[ "MIT" ]
2
2021-09-10T03:21:33.000Z
2021-11-14T20:02:53.000Z
otptags.py
azukacchi/scriptsdump
c54d1dcf42ac0e5242786fa4364c7532ed7b5446
[ "MIT" ]
null
null
null
otptags.py
azukacchi/scriptsdump
c54d1dcf42ac0e5242786fa4364c7532ed7b5446
[ "MIT" ]
null
null
null
import re from bs4 import BeautifulSoup import os.path from datetime import date import requests import csv import time delay = 6 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) filename = 'ao3tags.csv' filepath = os.path.join(BASE_DIR, filename) def tagcount(): urls = [] # list of link to your otp tag...
26.617021
72
0.605116
158
1,251
4.677215
0.56962
0.032476
0
0
0
0
0
0
0
0
0
0.00974
0.261391
1,251
46
73
27.195652
0.790043
0.1247
0
0
0
0
0.089908
0
0
0
0
0
0
1
0.030303
false
0
0.212121
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c293d8c5436830faf8721c88cbacb4b46a95b30
412
py
Python
INF1511/Chapter3/matrix1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter3/matrix1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter3/matrix1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
table = [[0 for i in range(3)] for j in range(3)] print("Enter values for a matrix of order 3 x 3") for d1 in range(3): for d2 in range(3): table[d1][d2] = int(input()) print("Elements of the matrix are %a" % table) print("Elements of the matrix are ") for row in table: print(row) s = 0 for row in table...
27.466667
56
0.618932
82
412
3.109756
0.353659
0.109804
0.12549
0.086275
0.211765
0.211765
0
0
0
0
0
0.039088
0.254854
412
14
57
29.428571
0.791531
0
0
0.142857
0
0
0.337379
0
0
0
0
0
0
1
0
false
0
0
0
0
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c2944dad267b75f5e9b14f426638486e1db3d9f
2,880
py
Python
djangosige/apps/base/views_mixins.py
CTECHSUL/SG
0d4822b3826e015ad24690815bb9c52952431ea7
[ "MIT" ]
330
2017-07-03T08:41:24.000Z
2022-03-31T04:34:17.000Z
djangosige/apps/base/views_mixins.py
CTECHSUL/SG
0d4822b3826e015ad24690815bb9c52952431ea7
[ "MIT" ]
107
2017-07-03T22:21:35.000Z
2022-03-30T08:10:24.000Z
djangosige/apps/base/views_mixins.py
matfurrier/SIGEsistema
6b0072741809c5e5077d201862ea76d839161735
[ "MIT" ]
258
2017-06-27T20:11:46.000Z
2022-03-20T21:46:34.000Z
from __future__ import unicode_literals from django.contrib import messages from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.shortcuts import redirect class SuperUserRequiredMixin(object): @method_decorator(login_required(login_url='login...
38.918919
109
0.657292
313
2,880
5.86262
0.329073
0.058856
0.059946
0.040872
0.276839
0.245232
0.245232
0.222888
0.182561
0.182561
0
0
0.253125
2,880
73
110
39.452055
0.853092
0.009028
0
0.310345
0
0
0.117461
0
0
0
0
0
0
1
0.12069
false
0
0.086207
0.034483
0.465517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c2a8fd306dc8e296f6feb602bca22708c15866f
1,601
py
Python
source/CheckJobStatusFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator-1
8bfec78ff64432d2b2804050116994d76928cb81
[ "MIT" ]
null
null
null
source/CheckJobStatusFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator-1
8bfec78ff64432d2b2804050116994d76928cb81
[ "MIT" ]
null
null
null
source/CheckJobStatusFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator-1
8bfec78ff64432d2b2804050116994d76928cb81
[ "MIT" ]
null
null
null
import boto3 import os import logging from datetime import datetime def lambda_handler(event, context): """This function checks and returns the import assets job status""" try: global log_level log_level = str(os.environ.get('LOG_LEVEL')).upper() valid_log_levels = ['DEBUG...
28.589286
77
0.562773
171
1,601
5.081871
0.438596
0.055236
0.034522
0.06214
0.193326
0.193326
0.193326
0.193326
0.193326
0.193326
0
0.004562
0.315428
1,601
55
78
29.109091
0.788321
0.038101
0
0.238095
0
0
0.188641
0
0
0
0
0
0
1
0.02381
false
0
0.095238
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c2b3898833c53843db57d3da758950386a9aad9
7,592
py
Python
languages/python/cp857_5x7.py
ercanersoy/font-library
7d71b41bddea9d87c230afbaec1a92412ebd7ad9
[ "CC0-1.0" ]
1
2019-03-30T13:34:24.000Z
2019-03-30T13:34:24.000Z
languages/python/cp857_5x7.py
ercanersoy/font-library
7d71b41bddea9d87c230afbaec1a92412ebd7ad9
[ "CC0-1.0" ]
null
null
null
languages/python/cp857_5x7.py
ercanersoy/font-library
7d71b41bddea9d87c230afbaec1a92412ebd7ad9
[ "CC0-1.0" ]
null
null
null
# cp857_5x7.py - CP857 5x7 font file for Python # # Copyright (c) 2019-2022 Ercan Ersoy # This file is written by Ercan Ersoy. # This file is licensed under CC0-1.0 Universal License. cp857_5x7 = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x14, 0x7F, 0x14, 0...
32.583691
56
0.609326
1,154
7,592
4.006932
0.107452
0.179931
0.116782
0.076125
0.126298
0.055363
0.033737
0.021626
0
0
0
0.557272
0.241043
7,592
232
57
32.724138
0.245227
0.022787
0
0.066372
0
0
0
0
0
0
0.604344
0
0
1
0
false
0
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
0
3
2c2d0f019ed042f9d5ffe83c988029566ce8aae5
282
py
Python
fjord/redirector/providers/dummy.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
16
2015-02-06T14:35:57.000Z
2021-07-10T11:14:00.000Z
fjord/redirector/providers/dummy.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
310
2015-01-07T14:39:35.000Z
2016-05-02T17:41:30.000Z
fjord/redirector/providers/dummy.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
22
2015-01-15T13:46:03.000Z
2020-07-24T10:08:51.000Z
from fjord.redirector import Redirector class DummyRedirector(Redirector): def handle_redirect(self, request, redirect): if redirect.startswith('dummy:'): redirect = redirect.split(':') return 'http://example.com/' + redirect[1] return
28.2
54
0.648936
28
282
6.5
0.714286
0
0
0
0
0
0
0
0
0
0
0.00463
0.234043
282
9
55
31.333333
0.837963
0
0
0
0
0
0.092199
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
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
2c2ec23931c6b9f6cf2d97ddfef973d0d7caa687
12,363
py
Python
app/models.py
eellkk/flask_learn
18810a09a7384af15d3767b56274c990fe1c154b
[ "MIT" ]
null
null
null
app/models.py
eellkk/flask_learn
18810a09a7384af15d3767b56274c990fe1c154b
[ "MIT" ]
null
null
null
app/models.py
eellkk/flask_learn
18810a09a7384af15d3767b56274c990fe1c154b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 20 11:26:41 2016 @author: Administrator """ #从__init__.py中导入db,db = SQLAlchemt() from . import db,login_manager #导入Werkzeug中的security模块支持密码散列 from werkzeug.security import generate_password_hash,check_password_hash from flask.ext.login import UserMixin,Anonymo...
37.01497
164
0.604708
1,488
12,363
4.869624
0.183468
0.034226
0.042782
0.025807
0.427822
0.356611
0.301132
0.223296
0.19183
0.170301
0
0.00834
0.272588
12,363
334
165
37.01497
0.797398
0.017552
0
0.270588
0
0
0.079864
0.00602
0
0
0.002374
0
0
1
0.129412
false
0.039216
0.062745
0.043137
0.498039
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3065c1d277ab3a50d50ca18e17bde26be17ca4
2,657
py
Python
main.py
firestalk/vk_delpost
79ae0ad94e65a81da2a103370dccd7765cff3db5
[ "MIT" ]
null
null
null
main.py
firestalk/vk_delpost
79ae0ad94e65a81da2a103370dccd7765cff3db5
[ "MIT" ]
null
null
null
main.py
firestalk/vk_delpost
79ae0ad94e65a81da2a103370dccd7765cff3db5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from splinter import Browser from time import sleep import re import json import sys class VkDelPost: def __init__(self): self.account = self.load_cfg() def main(self): email = self.account['email'] passw = self.account['passw'] w...
34.506494
129
0.519759
321
2,657
4.155763
0.386293
0.053973
0.053973
0.056222
0.146927
0.110945
0.110945
0.110945
0.110945
0.110945
0
0.008676
0.349266
2,657
76
130
34.960526
0.762869
0.016184
0
0.106061
0
0.030303
0.192956
0.078101
0
0
0
0
0
1
0.075758
false
0.030303
0.075758
0
0.242424
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c324eb057bd0ddba6a6403d5a9df98e2318b393
948
py
Python
pandagg/node/query/joining.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
null
null
null
pandagg/node/query/joining.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
null
null
null
pandagg/node/query/joining.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
null
null
null
from pandagg.node.query.compound import CompoundClause from pandagg.node.query._parameter_clause import Path, QueryP class Nested(CompoundClause): DEFAULT_OPERATOR = QueryP PARAMS_WHITELIST = ["path", "query", "score_mode", "ignore_unmapped"] KEY = "nested" def __init__(self, *args, **kwargs): ...
24.947368
76
0.64557
102
948
5.72549
0.460784
0.107877
0.148973
0.179795
0.363014
0.273973
0.188356
0
0
0
0
0
0.232068
948
37
77
25.621622
0.802198
0
0
0.107143
0
0
0.17616
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.607143
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
1
0
0
2
257385445594750f579250d74f0144116e915ee8
19,130
py
Python
ptest/usb_session.py
athena255/FlightSoftware
c3fd7dcc6c265fad9843f8992b60d5a773c99f23
[ "MIT" ]
null
null
null
ptest/usb_session.py
athena255/FlightSoftware
c3fd7dcc6c265fad9843f8992b60d5a773c99f23
[ "MIT" ]
1
2020-09-20T20:11:06.000Z
2020-09-20T20:11:06.000Z
ptest/usb_session.py
athena255/FlightSoftware
c3fd7dcc6c265fad9843f8992b60d5a773c99f23
[ "MIT" ]
null
null
null
import time import datetime import serial import threading import json import traceback import queue import os import pty import subprocess from multiprocessing import Process import glob from elasticsearch import Elasticsearch from .data_consumers import Datastore, Logger from .http_cmd import create_usb_session_endp...
38.961303
163
0.595086
2,372
19,130
4.668212
0.185919
0.016256
0.013908
0.012011
0.256931
0.209428
0.17195
0.123544
0.123544
0.111623
0
0.003206
0.315107
19,130
490
164
39.040816
0.841933
0.246262
0
0.243986
0
0
0.119573
0.004605
0
0
0
0
0.006873
1
0.061856
false
0
0.051546
0
0.223368
0.044674
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25750c8794444def7be2e0ed0c2beae4eab5e2f1
1,233
py
Python
Python Programs/matrix-add-top-row.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
2
2021-06-26T21:50:59.000Z
2021-09-18T04:55:51.000Z
Python Programs/matrix-add-top-row.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Python Programs/matrix-add-top-row.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Matrix Add Top Row Matrix Add Top Row: A matrix of size R*C is given as the input to the program. The program must add the elements in the first row in each column to the elements in the below rows by equally dividing them. Then the program must print the modified matrix as the output. Note: If the integer cannot be e...
25.6875
267
0.657745
255
1,233
3.184314
0.403922
0.034483
0.022167
0.04064
0.029557
0
0
0
0
0
0
0.12743
0.248986
1,233
47
268
26.234043
0.74838
0
0
0.170213
0
0
0.001623
0
0
0
0
0
0
0
null
null
0
0
null
null
0.085106
0
0
0
null
0
0
0
0
0
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
25760e26ccc984f053e0ae3f5160d2bb9ebef9f4
11,044
py
Python
test/composed_visitor_test.py
FreeYourSoul/FreExGraph
375ff2111c68442d35cb88a2e98f16279c705bd6
[ "MIT" ]
3
2021-04-16T20:44:13.000Z
2022-02-11T00:57:40.000Z
test/composed_visitor_test.py
FreeYourSoul/FreExGraph
375ff2111c68442d35cb88a2e98f16279c705bd6
[ "MIT" ]
null
null
null
test/composed_visitor_test.py
FreeYourSoul/FreExGraph
375ff2111c68442d35cb88a2e98f16279c705bd6
[ "MIT" ]
1
2021-03-25T19:49:27.000Z
2021-03-25T19:49:27.000Z
# MIT License # # Copyright (c) 2021 Quentin Balland # Project : https://github.com/FreeYourSoul/FreExGraph # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including wi...
42.806202
87
0.741579
1,612
11,044
4.643921
0.10732
0.135186
0.060112
0.027785
0.747262
0.735773
0.687684
0.685947
0.685947
0.683275
0
0.004909
0.169957
11,044
257
88
42.972763
0.811716
0.107298
0
0.561856
0
0
0.006507
0
0
0
0
0
0.07732
1
0.046392
false
0
0.015464
0
0.097938
0
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
257840704f660f29957142fc99721907a1db3293
29,073
py
Python
test/test_nfvbench.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
test/test_nfvbench.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
test/test_nfvbench.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Cisco Systems, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
34.98556
98
0.52836
3,137
29,073
4.668154
0.167357
0.011609
0.030729
0.028681
0.509151
0.468929
0.42584
0.372166
0.357484
0.340686
0
0.084915
0.316651
29,073
830
99
35.027711
0.652187
0.072782
0
0.2
0
0
0.131651
0.002731
0
0
0
0
0.254902
1
0.094118
false
0.003922
0.07451
0.035294
0.219608
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2578bd207d261948c34574e9d8df87d9062a4d4d
264
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py
xiaopeng163/lazyflask
98ae0c218c90739358c1ec90ae2daa3660d10e1b
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py
xiaopeng163/lazyflask
98ae0c218c90739358c1ec90ae2daa3660d10e1b
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py
xiaopeng163/lazyflask
98ae0c218c90739358c1ec90ae2daa3660d10e1b
[ "Apache-2.0" ]
1
2018-11-05T05:56:29.000Z
2018-11-05T05:56:29.000Z
# Copyright 2015-2018 Cisco Systems, Inc. # All rights reserved. from cxcom.rest.blue_print import blue_print from {{cookiecutter.module_name}}.api.index.index import Index BLUE_PRINT_PUBLIC = blue_print('engine_status', 'templates', [ [Index, '/', "/"] ])
24
62
0.731061
35
264
5.314286
0.685714
0.193548
0
0
0
0
0
0
0
0
0
0.034783
0.128788
264
10
63
26.4
0.773913
0.227273
0
0
0
0
0.119403
0
0
0
0
0
0
0
null
null
0
0.4
null
null
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
257a8f3de4b6bc7e806d488851674359ff3825e1
5,141
py
Python
tests/costnonlinear.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
3
2021-08-28T01:42:40.000Z
2021-12-02T22:39:45.000Z
tests/costnonlinear.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
null
null
null
tests/costnonlinear.py
rafaelrojasmiliani/gsplines
663b10f6d53b498a1e892d9eb32a345153de36d2
[ "MIT" ]
null
null
null
""" Test the cost function from the problem 1010 """ import numpy as np import sympy as sp import quadpy import unittest from opttrj.costnonlinear import cCostNonLinear from itertools import tee class cMyCost(cCostNonLinear): def runningCost(self, _t, _tauv, _u): pass def runningCostGradient(sel...
30.60119
78
0.471309
666
5,141
3.474474
0.202703
0.041487
0.041487
0.025929
0.474935
0.434313
0.346586
0.337943
0.273552
0.267502
0
0.046482
0.380665
5,141
167
79
30.784431
0.680276
0.008559
0
0.341085
0
0
0.129204
0
0
0
0
0
0.054264
1
0.093023
false
0.015504
0.062016
0.015504
0.193798
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257a9b3e29b5b9199eb2a23693635e96b83f0500
737
py
Python
src/server/BroadcastThread.py
spectacularGavin/rasp-sec-camera
3730b7a93e9fd30bfffe9529ed990528a32c5a5c
[ "MIT" ]
null
null
null
src/server/BroadcastThread.py
spectacularGavin/rasp-sec-camera
3730b7a93e9fd30bfffe9529ed990528a32c5a5c
[ "MIT" ]
null
null
null
src/server/BroadcastThread.py
spectacularGavin/rasp-sec-camera
3730b7a93e9fd30bfffe9529ed990528a32c5a5c
[ "MIT" ]
null
null
null
from threading import Thread from subprocess import Popen, PIPE from wsgiref.simple_server import WSGIServer class BroadcastThread(Thread): def __init__(self, converter: Popen, websocket_server: WSGIServer): super(BroadcastThread, self).__init__() self.converter = converter self.websocket_s...
35.095238
77
0.625509
76
737
5.894737
0.539474
0.145089
0.075893
0
0
0
0
0
0
0
0
0.011605
0.298507
737
21
78
35.095238
0.854932
0
0
0
0
0
0.02439
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257bddd8105c20a3bf215b1b22c1c4992b667b8c
5,630
py
Python
manga_py/providers/mangadex_org_v2.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
manga_py/providers/mangadex_org_v2.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
manga_py/providers/mangadex_org_v2.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
import re from manga_py.provider import Provider from .helpers.std import Std from html import escape class MangaDexOrg(Provider, Std): __content = None __chapters = None __languages = None __countries = { '': 'Other', 'bd': 'Bengali', 'bg': 'Bulgarian', 'br': 'Portugue...
30.934066
111
0.539076
596
5,630
4.921141
0.338926
0.033754
0.019093
0.011592
0.042278
0.042278
0.023866
0
0
0
0
0.001774
0.298934
5,630
181
112
31.104972
0.741323
0.01048
0
0.026667
0
0
0.172773
0.013111
0
0
0
0
0
1
0.126667
false
0
0.026667
0.046667
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
257bfa0c3f881287a5a522f4b4310e46894a8022
1,494
py
Python
setup.py
VerseGroup/vg-em
3c9a93aa9c3c3cba2bace9259bab8b2668b54069
[ "MIT" ]
2
2022-01-13T18:33:25.000Z
2022-01-13T18:34:56.000Z
setup.py
VerseGroup/EM-python
3c9a93aa9c3c3cba2bace9259bab8b2668b54069
[ "MIT" ]
null
null
null
setup.py
VerseGroup/EM-python
3c9a93aa9c3c3cba2bace9259bab8b2668b54069
[ "MIT" ]
null
null
null
import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() VERSION = "1.3.0" DESCRIPTION="VerseGroups encryption manager class (RSA and Fernet wrapped AES sessions through RSA) for secure transmission of data. Also includes utilities such ...
38.307692
203
0.663989
161
1,494
6.062112
0.608696
0.076844
0.102459
0.106557
0
0
0
0
0
0
0
0.012521
0.198126
1,494
39
204
38.307692
0.80217
0
0
0
0
0.027778
0.520401
0.020736
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257cd5d4b4e8ff0ea36956f5af38747aff84e4d6
24,314
py
Python
passl/modeling/backbones/discrete_vae.py
lmk123568/PASSL
a4974a665b164b71831b38b5bd8b849615a17f12
[ "Apache-2.0" ]
null
null
null
passl/modeling/backbones/discrete_vae.py
lmk123568/PASSL
a4974a665b164b71831b38b5bd8b849615a17f12
[ "Apache-2.0" ]
null
null
null
passl/modeling/backbones/discrete_vae.py
lmk123568/PASSL
a4974a665b164b71831b38b5bd8b849615a17f12
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.816412
135
0.521181
3,084
24,314
3.852464
0.11284
0.027944
0.013467
0.02424
0.596583
0.55593
0.515866
0.492719
0.47698
0.461325
0
0.028343
0.35716
24,314
718
136
33.86351
0.731798
0.168874
0
0.661224
0
0
0.053723
0
0
0
0
0
0.004082
1
0.087755
false
0.008163
0.020408
0.028571
0.195918
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257d2b7a3c0cb97294399826eb46725bc5e9506f
33,921
py
Python
Index.py
Trabalho-APC-DASH/Painel-APC
1920c7e1a188ba350268f926c0bf69552f0ab4a2
[ "MIT" ]
null
null
null
Index.py
Trabalho-APC-DASH/Painel-APC
1920c7e1a188ba350268f926c0bf69552f0ab4a2
[ "MIT" ]
null
null
null
Index.py
Trabalho-APC-DASH/Painel-APC
1920c7e1a188ba350268f926c0bf69552f0ab4a2
[ "MIT" ]
null
null
null
# VERSÃO FINAL - ÚNICA - V1.0 # ALTERADA EM 03/04 -- 18:30 # EXPORTAÇÕES: import plotly.express as px from pandas import read_excel from dash import Dash, dcc, html, Input, Output, State import plotly.graph_objects as go # IMPORTAÇÃO DE BOOTSTRAP PARA FAZER SITE: import dash_bootstrap_components as dbc # DECLARAÇÃ...
35.743941
745
0.538811
3,799
33,921
4.764675
0.224796
0.015911
0.023203
0.007182
0.417712
0.371416
0.3544
0.33407
0.298823
0.283355
0
0.027973
0.286519
33,921
949
746
35.743941
0.719899
0.236609
0
0.372792
0
0.012367
0.298456
0.00245
0
0
0
0.001054
0
1
0.022968
false
0
0.021201
0
0.081272
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257e05fcff394b8322ba4dd1554e86692b4c8292
3,918
py
Python
editline/tests/test_editline.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
4
2017-10-05T19:34:32.000Z
2021-05-18T23:29:44.000Z
editline/tests/test_editline.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
2
2018-03-30T22:38:17.000Z
2018-03-30T22:39:13.000Z
editline/tests/test_editline.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
null
null
null
""" Unit testing for parts of the editline and _editline modules. """ import os import sys import unittest import subprocess from test.support import import_module # too bad this thing moved ... try: if sys.version_info[0] >= 3 and sys.version_info[1] >= 5: from test.support.script_helper import assert_pyt...
36.962264
86
0.671006
499
3,918
5.01002
0.248497
0.096
0.112
0.0768
0.6724
0.6404
0.6388
0.6388
0.6388
0.6388
0
0.018218
0.229454
3,918
105
87
37.314286
0.809871
0.14829
0
0.48
0
0
0.114838
0
0
0
0
0
0.36
1
0.16
false
0
0.333333
0.013333
0.533333
0
0
0
0
null
0
0
0
0
0
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
1
0
1
0
0
3
257e22ee1110fa746c97def96ea06dd14c1ece1b
13,035
py
Python
py2many/inference.py
nsauzede/py2many
7a4c8d0bd200c287281fc397bedafd755a44fa64
[ "MIT" ]
2
2021-05-13T11:44:33.000Z
2021-05-14T00:37:26.000Z
py2many/inference.py
nsauzede/py2many
7a4c8d0bd200c287281fc397bedafd755a44fa64
[ "MIT" ]
null
null
null
py2many/inference.py
nsauzede/py2many
7a4c8d0bd200c287281fc397bedafd755a44fa64
[ "MIT" ]
null
null
null
import ast from ctypes import c_int8, c_int16, c_int32, c_int64 from ctypes import c_uint8, c_uint16, c_uint32, c_uint64 from dataclasses import dataclass from typing import Optional from py2many.analysis import get_id from py2many.clike import CLikeTranspiler from py2many.tracer import is_enum @dataclass class Inf...
33.595361
88
0.582739
1,597
13,035
4.555416
0.123982
0.061581
0.040412
0.037113
0.401924
0.312165
0.267491
0.240962
0.170447
0.109553
0
0.008808
0.329344
13,035
387
89
33.682171
0.823381
0.034906
0
0.282132
0
0
0.042931
0.002549
0
0
0
0.002584
0
1
0.07837
false
0
0.025078
0.003135
0.250784
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
257e4eb0dea44309c2b7cddb8176aa3e129b02d2
7,258
py
Python
evaluate.py
LijieFan/PKU-MMD
cfa6aad468ce6675c6027de1173e366603705d63
[ "Apache-2.0" ]
49
2017-05-30T15:28:36.000Z
2022-03-16T06:33:52.000Z
evaluate.py
LijieFan/PKU-MMD
cfa6aad468ce6675c6027de1173e366603705d63
[ "Apache-2.0" ]
7
2018-12-07T15:05:50.000Z
2021-11-04T08:21:00.000Z
evaluate.py
ECHO960/PKU-MMD
cfa6aad468ce6675c6027de1173e366603705d63
[ "Apache-2.0" ]
9
2018-03-03T17:24:16.000Z
2021-01-15T07:02:07.000Z
# Copyright (c) 2017 Chunhui_Liu@STRUCT_ICST_PKU, All rights reserved. # # evaluation protocols used for PKU-MMD dataset # http://www.icst.pku.edu.cn/struct/Projects/PKUMMD.html # # In proposal folder: # each file contains results for one video. # several lines in one file, # each line contain: label, start_fra...
37.606218
83
0.666161
1,116
7,258
4.182796
0.157706
0.017138
0.025707
0.043702
0.456084
0.376392
0.314053
0.289417
0.289417
0.280634
0
0.011982
0.172086
7,258
192
84
37.802083
0.764853
0.293883
0
0.264463
0
0
0.069072
0.037098
0
0
0
0
0
0
null
null
0
0.024793
null
null
0.07438
0
0
0
null
0
0
0
0
0
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
257ed12cd5a7b5088a1d81e7a2c06131e88f0e37
3,086
py
Python
train.py
cyrusmvahid/LSTNet-Gluon
c2e8b34bcd67220bd87647fdf9d01baa0023133d
[ "Apache-2.0" ]
null
null
null
train.py
cyrusmvahid/LSTNet-Gluon
c2e8b34bcd67220bd87647fdf9d01baa0023133d
[ "Apache-2.0" ]
null
null
null
train.py
cyrusmvahid/LSTNet-Gluon
c2e8b34bcd67220bd87647fdf9d01baa0023133d
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse import mxnet as mx from mxnet import nd, gluon, autograd from dataset import TimeSeriesData from model import LSTNet import time import multiprocessing as mp def train(file_path, out_path): ts_data = TimeSeriesData(file_path, window=24*7, horizon=24) ct...
33.912088
146
0.598509
412
3,086
4.262136
0.368932
0.031891
0.013667
0.023918
0.088838
0.088838
0.036446
0.036446
0
0
0
0.020796
0.283215
3,086
90
147
34.288889
0.773056
0.0849
0
0
0
0
0.084577
0
0
0
0
0
0
1
0.015385
false
0
0.123077
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2582945bf9536fba450ea2b236790e0e288299e8
2,821
py
Python
tests/ahv_vm/test_ahv_vm.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
tests/ahv_vm/test_ahv_vm.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
tests/ahv_vm/test_ahv_vm.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
from calm.dsl.builtins import AhvVmDisk, AhvVmNic, AhvVmGC, AhvVmGpu from calm.dsl.builtins import basic_cred, ahv_vm_resources from calm.dsl.builtins import vm_disk_package, read_local_file from calm.dsl.config import get_context AhvVm = ahv_vm_resources() CENTOS_USERNAME = read_local_file(".tests/centos_username")...
31.344444
88
0.69408
340
2,821
5.505882
0.385294
0.037393
0.041132
0.038462
0.266026
0.169872
0.093483
0
0
0
0
0.02053
0.171216
2,821
89
89
31.696629
0.780154
0.007799
0
0
0
0
0.149381
0.076625
0
0
0
0
0.016949
1
0.033898
false
0.050847
0.084746
0
0.288136
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2584851a4d17126b2fb8d6436c754e69633733dc
724
py
Python
validator/rules_src/dict.py
Varun-22/Validator
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
[ "MIT" ]
41
2020-05-07T15:35:12.000Z
2021-11-01T03:57:09.000Z
validator/rules_src/dict.py
Varun-22/Validator
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
[ "MIT" ]
83
2020-05-09T22:11:26.000Z
2022-03-10T19:06:46.000Z
validator/rules_src/dict.py
Varun-22/Validator
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
[ "MIT" ]
25
2020-05-27T22:46:01.000Z
2022-03-04T01:36:11.000Z
from validator.rules_src import Rule class Dict(Rule): """ The field under validation must be a dictionary (Python map) Examples: >>> from validator import validate >>> reqs = {"data" : {"key1" : "val1", "key2" : "val2"} } >>> rule = {"data" : "dict"} >>> validate(reqs, rule) True ...
20.685714
64
0.540055
83
724
4.53012
0.554217
0.095745
0.06383
0.106383
0.148936
0.148936
0
0
0
0
0
0.015595
0.291436
724
34
65
21.294118
0.717349
0.470994
0
0
0
0
0.107034
0
0
0
0
0
0
1
0.272727
false
0.090909
0.090909
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
2585c90edb71c281306603ef92afa4de591ee6b2
1,944
py
Python
data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(arr, n): sum = 0 maxsize = - 1 for i in range(0, n - 1): sum = - 1 if (arr[i] == 0) else 1 ...
41.361702
112
0.474794
352
1,944
2.573864
0.414773
0.02649
0.019868
0.019868
0
0
0
0
0
0
0
0.329771
0.326132
1,944
46
113
42.26087
0.361832
0.095165
0
0
0
0
0.023986
0
0
0
0
0
0
1
0.027778
false
0
0
0
0.055556
0.083333
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
2585e87eaaff2fdd76309cfdbd38bd7f7c95efca
935
py
Python
setup.py
DiegoLing33/ling-simple-api
d4b3789cf6110afa3c2db822ff6593079927eca1
[ "MIT" ]
2
2020-10-28T14:00:05.000Z
2020-10-30T11:55:27.000Z
setup.py
DiegoLing33/ling-simple-api
d4b3789cf6110afa3c2db822ff6593079927eca1
[ "MIT" ]
null
null
null
setup.py
DiegoLing33/ling-simple-api
d4b3789cf6110afa3c2db822ff6593079927eca1
[ "MIT" ]
null
null
null
# ██╗░░░░░██╗███╗░░██╗░██████╗░░░░██████╗░██╗░░░░░░█████╗░░█████╗░██╗░░██╗ # ██║░░░░░██║████╗░██║██╔════╝░░░░██╔══██╗██║░░░░░██╔══██╗██╔══██╗██║░██╔╝ # ██║░░░░░██║██╔██╗██║██║░░██╗░░░░██████╦╝██║░░░░░███████║██║░░╚═╝█████═╝░ # ██║░░░░░██║██║╚████║██║░░╚██╗░░░██╔══██╗██║░░░░░██╔══██║██║░░██╗██╔═██╗░ # ███████╗██║██...
35.961538
75
0.319786
63
935
11.571429
0.777778
0.016461
0
0
0
0
0
0
0
0
0
0.014815
0.13369
935
25
76
37.4
0.350617
0.554011
0
0
0
0
0.408867
0.051724
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
258619b27ba7620cfaf422123a35bececd0c3a59
6,826
py
Python
sdk/python/pulumi_aws/directconnect/connection.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/directconnect/connection.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/directconnect/connection.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Connec...
52.507692
287
0.693671
844
6,826
5.374408
0.216825
0.033951
0.042328
0.037698
0.578042
0.542108
0.525573
0.492504
0.477513
0.449074
0
0.015089
0.223264
6,826
129
288
52.914729
0.840438
0.360973
0
0.030303
1
0
0.162473
0.025784
0
0
0
0
0
1
0.060606
false
0.015152
0.090909
0.030303
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2587f8ca4edd7908a4b73ab0a1763c2cc0753214
4,882
py
Python
main.py
prateek-77/rcan-it
587904556d8127bca83690deaaa26e34e051a576
[ "MIT" ]
57
2022-01-28T04:44:42.000Z
2022-03-31T13:26:35.000Z
main.py
chisyliu/rcan-it
eb1794777ffef4eadd8a6a06f4419380a0b17435
[ "MIT" ]
6
2022-02-08T11:17:19.000Z
2022-03-27T07:40:18.000Z
main.py
chisyliu/rcan-it
eb1794777ffef4eadd8a6a06f4419380a0b17435
[ "MIT" ]
10
2022-01-28T07:31:12.000Z
2022-03-15T01:35:03.000Z
import os import random import argparse import numpy as np import torch import torch.nn as nn import torch.distributed as dist import torch.backends.cudnn as cudnn from ptsr import model from ptsr.data import Data from ptsr.config import load_cfg from ptsr.model import get_num_params from ptsr.utils imp...
36.432836
95
0.630274
609
4,882
4.865353
0.267652
0.039487
0.043874
0.02025
0.096524
0.043874
0.027
0.027
0.027
0.027
0
0.002216
0.260549
4,882
133
96
36.706767
0.81856
0.070668
0
0.057692
0
0
0.167235
0.017292
0
0
0
0
0
1
0.038462
false
0
0.125
0
0.182692
0.048077
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2588ddff6bc7f93f79f0d46e93db16a0b7b7e0ea
886
py
Python
factions.py
Fuih/tqs-bot
d2b0f4b86da1cd0d3fea6fa42529fe2b7f899a76
[ "MIT" ]
null
null
null
factions.py
Fuih/tqs-bot
d2b0f4b86da1cd0d3fea6fa42529fe2b7f899a76
[ "MIT" ]
null
null
null
factions.py
Fuih/tqs-bot
d2b0f4b86da1cd0d3fea6fa42529fe2b7f899a76
[ "MIT" ]
null
null
null
from discord import Color FACTIONS = { 'Thục': 3, 'Quần': 5, 'Ngụy': 7, 'Ngô': 11 } FACTION_COLORS = { FACTIONS['Thục']: Color.red(), FACTIONS['Quần']: Color.dark_grey(), FACTIONS['Ngụy']: Color.blue(), FACTIONS['Ngô']: Color.green(), FACTIONS['Thục']*FACTIONS['Quần']: Color.dark_r...
30.551724
69
0.633183
112
886
4.901786
0.321429
0.10929
0.116576
0.076503
0.182149
0
0
0
0
0
0
0.043185
0.163657
886
29
70
30.551724
0.697706
0
0
0
0
0
0.085682
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2588e42576eb79c4a1e848245e4fe3ba547f0a58
75
py
Python
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
2,970
2017-06-08T00:24:43.000Z
2022-03-30T12:14:55.000Z
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
3,530
2017-05-09T08:29:10.000Z
2022-03-21T02:11:45.000Z
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
972
2017-05-09T07:03:50.000Z
2022-03-23T07:48:48.000Z
#!/usr/bin/env python3 print("Hello World") import sys; print(sys.path);
10.714286
22
0.693333
12
75
4.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.015152
0.12
75
6
23
12.5
0.772727
0.28
0
0
0
0
0.207547
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.666667
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
0
1
0
5
2589a0d87beeb28e6dcfc7237ba25fd6df784ac8
1,857
py
Python
tencentcloud/bizlive/v20190313/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/bizlive/v20190313/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/bizlive/v20190313/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
26.528571
82
0.803446
181
1,857
8.171271
0.61326
0.040568
0.017579
0.021636
0
0
0
0
0
0
0
0.009163
0.118471
1,857
69
83
26.913043
0.894319
0.409801
0
0
0
0
0.425212
0.368768
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2589b69bdb44179b5ee78c49ec9b5fbc3cadace8
4,828
py
Python
symphony/cli/gql/gql/client.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
2
2020-11-05T18:58:26.000Z
2021-02-09T06:42:49.000Z
symphony/cli/gql/gql/client.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
10
2021-03-31T20:19:00.000Z
2022-02-19T07:09:57.000Z
symphony/cli/gql/gql/client.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
3
2020-08-20T18:45:34.000Z
2020-08-20T20:18:42.000Z
#!/usr/bin/env python3 import warnings from logging import Logger, getLogger from typing import Any, Dict, Optional, cast from graphql import ( build_ast_schema, build_client_schema, get_introspection_query, parse, ) from graphql.language.ast import DocumentNode from graphql.type.schema import GraphQL...
34
88
0.629453
509
4,828
5.787819
0.265226
0.028513
0.013578
0.013238
0.114732
0.076035
0.032587
0.032587
0
0
0
0.002061
0.296396
4,828
141
89
34.241135
0.865175
0.014085
0
0.034483
0
0
0.103912
0
0
0
0
0
0.034483
1
0.051724
false
0.017241
0.086207
0
0.232759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
258c8543e27ed658663d2ca6dbb29648a1842bd2
1,219
py
Python
chem-axon-setup/lambdas/trigger_compound_reg_pipeline.py
spatel-gfb/data-lake-as-code
a5479befd55998a24d535d572a78d803c678dd32
[ "MIT-0" ]
null
null
null
chem-axon-setup/lambdas/trigger_compound_reg_pipeline.py
spatel-gfb/data-lake-as-code
a5479befd55998a24d535d572a78d803c678dd32
[ "MIT-0" ]
null
null
null
chem-axon-setup/lambdas/trigger_compound_reg_pipeline.py
spatel-gfb/data-lake-as-code
a5479befd55998a24d535d572a78d803c678dd32
[ "MIT-0" ]
null
null
null
import boto3 import os import logging """ Create a logging function and initiate it. """ format_string = "%(asctime)s %(name)s [%(levelname)s] %(message)s" logger = logging.getLogger('comp-reg-data-load-pipeline-lambda') handler = logging.StreamHandler() logger.setLevel(logging.DEBUG) formatter = logging.Formatter(for...
36.939394
96
0.66612
149
1,219
5.328859
0.489933
0.060453
0.050378
0.037783
0
0
0
0
0
0
0
0.002107
0.221493
1,219
32
97
38.09375
0.834563
0.104184
0
0
0
0
0.244701
0.052987
0
0
0
0
0
1
0.05
false
0
0.15
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
258ce0c4afc8aff3be542bf864890a33228e3553
1,017
py
Python
auto_derby/terminal.py
DoctrineAlanK/auto-derby
781e860b06b9686e56feab115d2212251cd99d10
[ "MIT" ]
235
2021-05-24T12:09:18.000Z
2022-03-31T03:44:08.000Z
auto_derby/terminal.py
DoctrineAlanK/auto-derby
781e860b06b9686e56feab115d2212251cd99d10
[ "MIT" ]
193
2021-05-27T16:49:14.000Z
2022-03-31T16:38:08.000Z
auto_derby/terminal.py
DoctrineAlanK/auto-derby
781e860b06b9686e56feab115d2212251cd99d10
[ "MIT" ]
89
2021-05-30T17:07:24.000Z
2022-03-27T15:41:04.000Z
# -*- coding=UTF-8 -*- # pyright: strict from __future__ import annotations import contextlib from typing import Text from . import sound, window class PromptDisabled(PermissionError): def __init__(self): super().__init__("prompt disabled") class g: pause_sound_path = "" prompt_sound_path = "...
19.941176
64
0.662734
121
1,017
5.305785
0.438017
0.152648
0.093458
0.070093
0.096573
0.096573
0.096573
0.096573
0
0
0
0.001295
0.240905
1,017
50
65
20.34
0.830311
0.035398
0
0.285714
0
0
0.075665
0
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
258cee1ed8e38aa6d11f224a86d185f53caa2d9e
765
py
Python
backend/db.py
vrutkovs/catcatgo
80e7d0b0335a44488a1582ab067be59ec998c6e7
[ "Apache-2.0" ]
1
2018-05-07T20:09:05.000Z
2018-05-07T20:09:05.000Z
backend/db.py
vrutkovs/catcatgo
80e7d0b0335a44488a1582ab067be59ec998c6e7
[ "Apache-2.0" ]
null
null
null
backend/db.py
vrutkovs/catcatgo
80e7d0b0335a44488a1582ab067be59ec998c6e7
[ "Apache-2.0" ]
null
null
null
import sys from pymongo import MongoClient from pymongo.errors import ServerSelectionTimeoutError class Mongo(): def __init__(self, username, password, host, port, db): try: self.client = MongoClient('mongodb://{}:{}@{}:{}/{}' .format(username, password, host, port, db)) ...
30.6
68
0.576471
80
765
5.45
0.575
0.114679
0.091743
0.110092
0.119266
0
0
0
0
0
0
0
0.301961
765
24
69
31.875
0.816479
0
0
0
0
0
0.081046
0.031373
0
0
0
0
0
1
0.1
false
0.1
0.15
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
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
258dcda4d3e81c18066625b31adc90681cca2a6b
3,717
py
Python
rkmt/options/convert_options.py
corenel/rknn-model-tools
8af9c062ea4955a76ba9986a6cab6f771c9e678a
[ "MIT" ]
1
2020-07-09T08:50:50.000Z
2020-07-09T08:50:50.000Z
rkmt/options/convert_options.py
corenel/rknn-model-tools
8af9c062ea4955a76ba9986a6cab6f771c9e678a
[ "MIT" ]
null
null
null
rkmt/options/convert_options.py
corenel/rknn-model-tools
8af9c062ea4955a76ba9986a6cab6f771c9e678a
[ "MIT" ]
1
2020-07-09T08:50:31.000Z
2020-07-09T08:50:31.000Z
from rkmt.options.base_options import BaseOptions class ConvertOptions(BaseOptions): """Arguments parser for model conversion.""" def initialize(self, parser): BaseOptions.initialize(self, parser) parser.add_argument('--platform', type=str, ...
38.71875
99
0.517622
378
3,717
4.917989
0.309524
0.07262
0.137171
0.045186
0.208714
0.157612
0.126412
0.126412
0.073158
0.037655
0
0.001757
0.387409
3,717
95
100
39.126316
0.814668
0.026365
0
0.325
0
0
0.258726
0.008864
0
0
0
0
0.0375
1
0.025
false
0
0.0125
0
0.075
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
258dcfd014f8ea06a5fb2f72aa227e24e3074687
12,657
py
Python
facebook_downloader/__init__.py
coej/facebook_downloader
b354387f818521e431aaeb81ff70890c2905ba1e
[ "MIT" ]
1
2015-08-19T03:51:16.000Z
2015-08-19T03:51:16.000Z
facebook_downloader/__init__.py
coej/facebook_downloader
b354387f818521e431aaeb81ff70890c2905ba1e
[ "MIT" ]
null
null
null
facebook_downloader/__init__.py
coej/facebook_downloader
b354387f818521e431aaeb81ff70890c2905ba1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Python 2/3 compatibility from __future__ import (print_function, unicode_literals, division) from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError __metac...
30.572464
118
0.572569
1,478
12,657
4.696211
0.201624
0.020746
0.014119
0.015128
0.191183
0.15358
0.119723
0.119723
0.119723
0.112664
0
0.007879
0.328119
12,657
413
119
30.646489
0.808325
0.106976
0
0.285235
0
0
0.067401
0.004529
0
0
0
0
0
1
0.09396
false
0.016779
0.083893
0.013423
0.291946
0.083893
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2590970997787e3c270df4ec7937f3094133ac02
5,172
py
Python
commands/create_episodes.py
havanagrawal/wikidata-toolkit
5f39f449ac48eb4b7d93f9b51efa47a4206953e4
[ "MIT" ]
5
2019-07-29T15:05:14.000Z
2020-10-15T03:02:50.000Z
commands/create_episodes.py
havanagrawal/wikidata-toolkit
5f39f449ac48eb4b7d93f9b51efa47a4206953e4
[ "MIT" ]
16
2019-07-29T05:59:14.000Z
2021-12-13T20:06:09.000Z
commands/create_episodes.py
havanagrawal/wikidata-toolkit
5f39f449ac48eb4b7d93f9b51efa47a4206953e4
[ "MIT" ]
8
2019-12-20T02:27:11.000Z
2020-10-15T05:25:40.000Z
import csv from pywikibot import ItemPage, Site import properties.wikidata_properties as wp from utils import RepoUtils from .errors import SuspiciousTitlesError def read_titles(filepath): with open(filepath, "r") as f: reader = csv.reader(f) return list(reader) def create_episode_quickstateme...
39.480916
185
0.703016
718
5,172
4.835655
0.194986
0.067396
0.03485
0.043203
0.382777
0.299827
0.220334
0.156106
0.156106
0.079493
0
0.000483
0.199923
5,172
130
186
39.784615
0.838569
0.145205
0
0.051948
0
0.025974
0.242312
0.117919
0
0
0
0
0
1
0.064935
false
0
0.064935
0
0.181818
0.12987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2591756f58979e1697229e248af9186007db7429
14,777
py
Python
listener/fhir_validator.py
ideaworld/Tester
21b0106f2affe13636688339cef129aa855e5041
[ "Unlicense" ]
null
null
null
listener/fhir_validator.py
ideaworld/Tester
21b0106f2affe13636688339cef129aa855e5041
[ "Unlicense" ]
null
null
null
listener/fhir_validator.py
ideaworld/Tester
21b0106f2affe13636688339cef129aa855e5041
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import re import os import json import requests versions_url = { 1 : "http://hl7.org/fhir/2017Jan/%s.profile.json", 2 : "http://hl7.org/fhir/STU3/%s.profile.json" } DATE_RE = re.compile(r'-?([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01]))?)?') DATETIME_RE = re.compil...
37.889744
312
0.540908
1,797
14,777
4.257095
0.124096
0.022222
0.020131
0.023529
0.265359
0.232026
0.193203
0.152941
0.143399
0.116471
0
0.018592
0.315693
14,777
390
313
37.889744
0.737935
0.035393
0
0.273273
0
0.012012
0.132921
0.048967
0
0
0
0
0
0
null
null
0.003003
0.012012
null
null
0.009009
0
0
0
null
0
0
0
0
0
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
2593b87aa1477b56a51e9ed6f2959196a21fd9b9
8,507
py
Python
modelkit/assets/manager.py
tgenin/modelkit
2c67b7e12575fa51221f713c2c094030228402ee
[ "MIT" ]
null
null
null
modelkit/assets/manager.py
tgenin/modelkit
2c67b7e12575fa51221f713c2c094030228402ee
[ "MIT" ]
null
null
null
modelkit/assets/manager.py
tgenin/modelkit
2c67b7e12575fa51221f713c2c094030228402ee
[ "MIT" ]
null
null
null
import os import re from typing import Union, cast import filelock from structlog import get_logger from modelkit.assets import errors from modelkit.assets.remote import RemoteAssetsStore from modelkit.assets.settings import AssetsManagerSettings, AssetSpec from modelkit.assets.versioning import ( VERSION_RE, ...
41.296117
88
0.505231
823
8,507
5.031592
0.1774
0.060855
0.042502
0.035499
0.321178
0.28568
0.250906
0.18015
0.162521
0.101183
0
0.000609
0.420947
8,507
205
89
41.497561
0.840032
0.046315
0
0.217877
0
0
0.086881
0.00506
0
0
0
0
0
1
0.022346
false
0.005587
0.055866
0
0.134078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2595bdd2cbc9598042685c93170a1adc72d0d989
2,303
py
Python
Train/misc/DeepJetTrain_regr_class_dense_conv.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
1
2019-11-12T01:51:30.000Z
2019-11-12T01:51:30.000Z
Train/misc/DeepJetTrain_regr_class_dense_conv.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
null
null
null
Train/misc/DeepJetTrain_regr_class_dense_conv.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
5
2017-11-03T15:51:27.000Z
2019-05-29T14:45:23.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function # some private extra plots #from NBatchLogger import NBatchLogger import matplotlib #if no X11 use below matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np from keras import backend as K ...
31.547945
162
0.776813
338
2,303
5.136095
0.440828
0.03629
0.051843
0.028802
0.051843
0.036866
0
0
0
0
0
0.015466
0.101607
2,303
72
163
31.986111
0.823586
0.21624
0
0
0
0
0.149804
0.054779
0
0
0
0
0
1
0
false
0
0.347826
0
0.347826
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
25992567ed4a32a8d244b10358769547aa3cd880
1,783
py
Python
node/gcn.py
TrueNobility303/Machine-Learning-Cora
9e35ebfe8d4db20031aff8361e55af8a1404bc93
[ "MIT" ]
1
2021-07-04T04:25:15.000Z
2021-07-04T04:25:15.000Z
node/gcn.py
TrueNobility303/Machine-Learning-Graph
9e35ebfe8d4db20031aff8361e55af8a1404bc93
[ "MIT" ]
null
null
null
node/gcn.py
TrueNobility303/Machine-Learning-Graph
9e35ebfe8d4db20031aff8361e55af8a1404bc93
[ "MIT" ]
1
2021-07-30T03:18:59.000Z
2021-07-30T03:18:59.000Z
import torch from torch_geometric.datasets import Planetoid import torch.nn.functional as F from torch_geometric.nn import GCNConv from torch_geometric.nn import GINConv,SAGEConv from torch.nn import Linear,Sequential,BatchNorm1d,ReLU device = torch.device('cuda:0') class Net(torch.nn.Module): def __init__(self,di...
28.301587
74
0.632081
253
1,783
4.324111
0.367589
0.032907
0.04936
0.036563
0.047532
0
0
0
0
0
0
0.032538
0.224341
1,783
63
75
28.301587
0.758496
0.026921
0
0.046512
0
0
0.026885
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0
0.325581
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
259ba1f2708bdca386f6f7be8aad800497a1495c
6,893
py
Python
src/data_loading.py
JuanitaSmith/ml_capstone_mailout_prediction
30d1e1218107d05ab59afc38f51e4c7f3e1d287c
[ "CNRI-Python" ]
1
2021-12-16T17:11:10.000Z
2021-12-16T17:11:10.000Z
src/data_loading.py
JuanitaSmith/ml_capstone_mailout_prediction
30d1e1218107d05ab59afc38f51e4c7f3e1d287c
[ "CNRI-Python" ]
null
null
null
src/data_loading.py
JuanitaSmith/ml_capstone_mailout_prediction
30d1e1218107d05ab59afc38f51e4c7f3e1d287c
[ "CNRI-Python" ]
null
null
null
import pandas as pd from src.config import path_raw, filename_levels, filename_attributes, filename_levels_sheet, filename_attributes_sheet, \ filename_customer_delimiter def load_levels(filename, sheet): """ Load attribute information levels from excel into a dataframe Args: filename (st...
38.294444
122
0.652691
834
6,893
5.23741
0.264988
0.044643
0.019231
0.011676
0.332875
0.305632
0.274267
0.223901
0.205128
0.179029
0
0.009272
0.248948
6,893
179
123
38.50838
0.833881
0.32105
0
0.153846
0
0
0.128365
0
0
0
0
0
0
1
0.051282
false
0
0.025641
0
0.128205
0.089744
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
259bf22657fe2b0b15bb9d6863fe4331ffc37d73
5,486
py
Python
src/tespy/components/basics/subsystem_interface.py
anmartens/tespy
9a543d67cd8266c15cb9940ca640d6a8eda27a28
[ "MIT" ]
1
2020-02-25T08:41:03.000Z
2020-02-25T08:41:03.000Z
src/tespy/components/basics/subsystem_interface.py
anmartens/tespy
9a543d67cd8266c15cb9940ca640d6a8eda27a28
[ "MIT" ]
null
null
null
src/tespy/components/basics/subsystem_interface.py
anmartens/tespy
9a543d67cd8266c15cb9940ca640d6a8eda27a28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for class SubsystemInterface. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/components/basics/subsystem_interface.py SPDX-License-Identifi...
33.248485
102
0.636165
687
5,486
4.943231
0.318777
0.047703
0.012956
0.024735
0.209658
0.182273
0.135453
0.106596
0.073027
0.073027
0
0.016577
0.252279
5,486
164
103
33.45122
0.811312
0.611374
0
0.232558
0
0
0.151617
0.044036
0
0
0
0
0
1
0.116279
false
0
0.046512
0.069767
0.348837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
259d44dbda9ce86ab423e568cef5c1816855ebe3
6,820
py
Python
sktime/transformations/series/outlier_detection.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/outlier_detection.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/outlier_detection.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Implements transformers for detecting outliers in a time series.""" __author__ = ["aiwalter"] __all__ = ["HampelFilter"] import warnings import numpy as np import pandas as pd from sktime.for...
31.284404
88
0.590469
855
6,820
4.553216
0.31345
0.061649
0.041099
0.013357
0.097611
0.065245
0.052402
0.021577
0.021577
0.021577
0
0.011514
0.312317
6,820
217
89
31.428571
0.818337
0.431818
0
0.134831
0
0
0.069274
0.020603
0
0
0
0
0
1
0.067416
false
0
0.05618
0
0.213483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
259e11dd3aaf45645c9f959e012d62ca41044dc3
7,735
py
Python
Self Replicating Insanity.py
smcclennon/SRI
4883f6e20c012b3d52a11f49888e2553e2960539
[ "MIT" ]
null
null
null
Self Replicating Insanity.py
smcclennon/SRI
4883f6e20c012b3d52a11f49888e2553e2960539
[ "MIT" ]
null
null
null
Self Replicating Insanity.py
smcclennon/SRI
4883f6e20c012b3d52a11f49888e2553e2960539
[ "MIT" ]
null
null
null
# Self Replicating Insanity # github.com/smcclennon/SRI project_title = 'SRI' ver = '1.0.1' # Insane mode (Windows only) # Each replicated file will be ran in another console window, # and each of the files ran will replicate and run everything agian # Quickly sucks up ram, will most likely cause the machine to freez...
44.2
164
0.382935
912
7,735
4.427632
0.237939
0.193165
0.20951
0.208024
0.250124
0.18524
0.102774
0.080981
0.066617
0.040119
0
0.011006
0.342211
7,735
175
164
44.2
0.512775
0.154493
0
0.068493
0
0.047945
0.582514
0
0
0
0
0
0
1
0.027397
false
0
0.020548
0
0.123288
0.034247
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
259e2c5f61cd5489f4613bd21c2dec609dd81df0
1,012
py
Python
main.py
PaulMakesStuff/RaspberryPiWeatherDisplay
d9507d9cf45ecd71b6d0a322033dd998d3843632
[ "MIT" ]
1
2021-03-06T16:03:56.000Z
2021-03-06T16:03:56.000Z
main.py
PaulMakesStuff/RaspberryPiWeatherDisplay
d9507d9cf45ecd71b6d0a322033dd998d3843632
[ "MIT" ]
null
null
null
main.py
PaulMakesStuff/RaspberryPiWeatherDisplay
d9507d9cf45ecd71b6d0a322033dd998d3843632
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import signal import buttonshim from weather import displayWeather import os def flash_led(interval, times, r, g, b): for i in range( times ): buttonshim.set_pixel(r, g, b) time.sleep( interval ) buttonshim.set_pixel(0, 0, 0) time.sle...
24.095238
42
0.652174
161
1,012
3.944099
0.285714
0.025197
0.018898
0.075591
0.418898
0.31811
0.198425
0.125984
0.125984
0.125984
0
0.086076
0.219368
1,012
42
43
24.095238
0.717722
0.020751
0
0.30303
0
0
0.033684
0
0
0
0
0
0
1
0.181818
false
0
0.151515
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
259ef3d9c03a15a85a5e68fc83639850d12d9247
3,057
py
Python
size_constrained_clustering/shrinkage.py
vergilijus/size_constrained_clustering
be520ee0535b3f73d779e498a9046ef77d69355d
[ "MIT" ]
26
2020-07-04T11:30:09.000Z
2022-02-04T22:12:24.000Z
size_constrained_clustering/shrinkage.py
vergilijus/size_constrained_clustering
be520ee0535b3f73d779e498a9046ef77d69355d
[ "MIT" ]
4
2020-07-04T14:50:49.000Z
2022-03-23T22:09:08.000Z
size_constrained_clustering/shrinkage.py
vergilijus/size_constrained_clustering
be520ee0535b3f73d779e498a9046ef77d69355d
[ "MIT" ]
15
2020-08-19T10:37:25.000Z
2022-03-21T05:00:26.000Z
#!usr/bin/python 3.6 #-*-coding:utf-8-*- ''' @file: shrinkage.py, shrinkage clustering @Author: Jing Wang (jingw2@foxmail.com) @Date: 06/24/2020 @Paper reference: Shrinkage Clustering: A fast and \ size-constrained clustering algorithm for biomedical applications ''' import os import sys path = os.path.dirname(o...
31.193878
111
0.57213
411
3,057
4.075426
0.350365
0.042985
0.031045
0.025075
0.046567
0
0
0
0
0
0
0.020554
0.315669
3,057
97
112
31.515464
0.780115
0.283284
0
0
0
0
0
0
0
0
0
0
0.06
1
0.08
false
0
0.12
0
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25a092bb2e72769fd405cdd4fba33e5a42c809e8
792
py
Python
test.py
blurryface92/student-portal
aec15d6177c0c37ad815b2e63e4c8fa68dc8df53
[ "MIT" ]
1
2022-01-21T16:10:18.000Z
2022-01-21T16:10:18.000Z
test.py
blurryface92/student-portal
aec15d6177c0c37ad815b2e63e4c8fa68dc8df53
[ "MIT" ]
null
null
null
test.py
blurryface92/student-portal
aec15d6177c0c37ad815b2e63e4c8fa68dc8df53
[ "MIT" ]
1
2022-01-21T16:10:42.000Z
2022-01-21T16:10:42.000Z
import json from flask import Flask, request, jsonify,render_template app=Flask(__name__) with open("students.json") as f: data = json.load(f) @app.route('/home',methods=['GET','POST']) def index(): if request.method == 'POST': email = request.form['email'] password ...
36
109
0.582071
94
792
4.819149
0.414894
0.12362
0.13245
0.075055
0.233996
0.233996
0.233996
0.233996
0.233996
0
0
0
0.256313
792
22
110
36
0.7691
0
0
0
0
0
0.148964
0
0
0
0
0
0
1
0.105263
false
0.157895
0.105263
0.052632
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
25a0e9db9daf776824e6238029ee56df46f2c287
1,678
py
Python
plot/plot_bins.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
12
2020-03-11T06:04:53.000Z
2021-12-06T04:33:24.000Z
plot/plot_bins.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
null
null
null
plot/plot_bins.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
1
2021-02-23T07:01:18.000Z
2021-02-23T07:01:18.000Z
import argparse, numpy as np, os import matplotlib as mpl, matplotlib.cm as cm, matplotlib.pyplot as plt mpl.rcParams["axes.spines.right"] = False mpl.rcParams["axes.spines.top"] = False mpl.rc('font', family='serif') def plot_bins(var, n_bins, bounds=None): # Calculate percentiles v = np.load(os.path.join('data', ...
34.958333
89
0.670441
273
1,678
4.025641
0.432234
0.031847
0.046406
0.038217
0.050955
0
0
0
0
0
0
0.027548
0.134684
1,678
47
90
35.702128
0.729339
0.037545
0
0
0
0
0.160149
0.01676
0
0
0
0
0
1
0.028571
false
0
0.057143
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25a2b693009d526ad09a5ccd2c4cb2a7e3d5b21d
338
py
Python
Demos/Module4/sets_finish.py
bdheard/PythonEssentials
89aac7177a2f8802663bbbaed876e7554ccc739d
[ "MIT" ]
null
null
null
Demos/Module4/sets_finish.py
bdheard/PythonEssentials
89aac7177a2f8802663bbbaed876e7554ccc739d
[ "MIT" ]
null
null
null
Demos/Module4/sets_finish.py
bdheard/PythonEssentials
89aac7177a2f8802663bbbaed876e7554ccc739d
[ "MIT" ]
null
null
null
# # sets # david_courses = {"History", "Music", "Arts", "Literature", "Calculus"} james_courses = {"Biology", "Chemistry", "Physics", "Statistics", "Calculus"} # intersection print(david_courses.intersection(james_courses)) # difference print(david_courses.difference(james_courses)) # union print(david_courses.unio...
21.125
77
0.745562
36
338
6.777778
0.472222
0.196721
0.209016
0
0
0
0
0
0
0
0
0
0.091716
338
15
78
22.533333
0.794788
0.100592
0
0
0
0
0.252525
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
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
0
0
0
0
0
0
0
1
0
2
25a339aa4cddbd0bc3c3654b51a81e46ed37cd4b
283
py
Python
tasks/aws.py
elieof/ansible-role-artifacts_to_s3
5e6a0f68c66c4714b0a7439c0eac2325e14a0a1a
[ "MIT" ]
null
null
null
tasks/aws.py
elieof/ansible-role-artifacts_to_s3
5e6a0f68c66c4714b0a7439c0eac2325e14a0a1a
[ "MIT" ]
null
null
null
tasks/aws.py
elieof/ansible-role-artifacts_to_s3
5e6a0f68c66c4714b0a7439c0eac2325e14a0a1a
[ "MIT" ]
null
null
null
import boto3 # client = boto3.client('s3') # response = client.list_buckets() # print(response) s3 = boto3.resource('s3') object_acl = s3.ObjectAcl('elieof-eoo','/artifacts/projects/autotest_artifacts_to_s3/releases/1.0.0/git_package.zip') object_acl.put(ACL='authenticated-read')
28.3
117
0.759717
41
283
5.073171
0.658537
0.105769
0
0
0
0
0
0
0
0
0
0.041985
0.074205
283
10
118
28.3
0.751908
0.268551
0
0
0
0
0.514706
0.367647
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25a38ec4aea7b8a56416a4d31b2980a2324c2705
1,460
py
Python
digsby/src/util/plistutil.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/util/plistutil.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/util/plistutil.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
''' Some tools to convert a .plist into python objects. Incomplete. TODO: add load(s)/dump(s) functions to match the 'data shelving' interfaces of pickle, simplejson, pyyaml, etc. ''' #_type_map = dict(real = (float, 'cdata'), # integer = (int, 'cdata'), # true ...
27.54717
112
0.55
165
1,460
4.666667
0.393939
0.045455
0.051948
0.057143
0.051948
0
0
0
0
0
0
0.004158
0.341096
1,460
52
113
28.076923
0.796258
0.369863
0
0.068966
0
0
0.030516
0
0
0
0
0.019231
0
1
0.241379
false
0
0
0.172414
0.517241
0
0
0
0
null
0
0
0
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
25a6be76ef468185b1e4d897e0b9f7a388376eaf
205
py
Python
exercise5.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
2
2022-01-13T15:55:58.000Z
2022-02-11T23:18:34.000Z
exercise5.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
exercise5.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
# -*- Coding: utf-8 -*- print("CONVERSOR DE REAL EM DÓLAR") print("---------------------------") r = float(input("Digite o valor em real(R$): ")) d = r / 5.54 print(f"Esse valor em dólar(U$) é: {d}")
18.636364
48
0.497561
32
205
3.1875
0.6875
0.137255
0
0
0
0
0
0
0
0
0
0.023529
0.170732
205
10
49
20.5
0.576471
0.102439
0
0
0
0
0.61326
0.149171
0
0
0
0
0
1
0
false
0
0
0
0
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
25a7a3ffbbb7d6682b950f2f6c5f6f4d10c6c18c
1,735
py
Python
al_bench/__init__.py
Leengit/ALBench
18d0ff19f4c954f69785cca91e11c45f87268698
[ "Apache-2.0" ]
null
null
null
al_bench/__init__.py
Leengit/ALBench
18d0ff19f4c954f69785cca91e11c45f87268698
[ "Apache-2.0" ]
null
null
null
al_bench/__init__.py
Leengit/ALBench
18d0ff19f4c954f69785cca91e11c45f87268698
[ "Apache-2.0" ]
null
null
null
# ========================================================================== # # Copyright NumFOCUS # # 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/...
45.657895
88
0.70951
236
1,735
5.199153
0.495763
0.0489
0.041565
0.02608
0.03586
0
0
0
0
0
0
0.004818
0.162536
1,735
37
89
46.891892
0.839642
0.433429
0
0
0
0
0.053191
0
0
0
0
0
0
1
0
false
0
0.5
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
25a8985013702867d298b80f39523be51b7e0efb
17,761
py
Python
nauta/nauta.py
fsadannn/nauta-cli
7ab21fddcbf9cfc8db9a005e9ec883519637b524
[ "MIT" ]
null
null
null
nauta/nauta.py
fsadannn/nauta-cli
7ab21fddcbf9cfc8db9a005e9ec883519637b524
[ "MIT" ]
null
null
null
nauta/nauta.py
fsadannn/nauta-cli
7ab21fddcbf9cfc8db9a005e9ec883519637b524
[ "MIT" ]
null
null
null
import os import time import logging import logging.handlers from typing import Dict, List, Union, Any, Optional from requests import Session import requests from parsel import Selector from .constants import NautaState, LogLevel, CONFIG from .user_cls import User from .utils import get_inputs, get_info, human_secs fr...
39.381375
139
0.557964
2,004
17,761
4.808383
0.13024
0.031756
0.010274
0.01868
0.694894
0.660336
0.631071
0.607098
0.591947
0.579078
0
0.003008
0.32622
17,761
451
140
39.381375
0.802206
0.004392
0
0.672414
0
0
0.218992
0.01052
0
0
0
0
0
1
0.039409
false
0.059113
0.036946
0.002463
0.150246
0.049261
0
0
0
null
0
0
0
0
0
0
0
0
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
25a8cb527fbad1a5590666d38407b531a7390a95
3,995
py
Python
src/scripts/data_processing/fill_missing_values_with_interpolation.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
src/scripts/data_processing/fill_missing_values_with_interpolation.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
src/scripts/data_processing/fill_missing_values_with_interpolation.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
import pandas as pd from sklearn.preprocessing import MinMaxScaler import src.config.constants as constants import src.common as common import src.munging as process_data import src.ts as ts_util def reverse_min_max_scaling(logger, source_df, target_df, features, scaler_dict): for name in features: mm =...
31.456693
98
0.624781
513
3,995
4.551657
0.230019
0.06424
0.033405
0.041113
0.398287
0.376017
0.315632
0.253961
0.220985
0.220985
0
0.007274
0.277347
3,995
126
99
31.706349
0.801524
0.124656
0
0.290323
0
0
0.114491
0.05538
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.107527
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25a912c6b85b838095734a453a49dc1d85038a60
2,112
py
Python
stixcore/products/tests/test_bsd.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
1
2022-03-31T13:42:43.000Z
2022-03-31T13:42:43.000Z
stixcore/products/tests/test_bsd.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
192
2020-11-03T22:40:19.000Z
2022-03-31T15:17:13.000Z
stixcore/products/tests/test_bsd.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
3
2020-11-09T15:05:18.000Z
2022-01-21T07:52:51.000Z
import re from unittest.mock import patch import numpy as np import pytest from stixcore.data.test import test_data from stixcore.products.level0 import scienceL0 as sl0 from stixcore.products.level1 import scienceL1 as sl1 testpackets = [(test_data.tmtc.TM_21_6_20_complete, sl0.RawPixelData, sl1.RawPixelData, ...
44.93617
100
0.671875
284
2,112
4.795775
0.376761
0.041116
0.052863
0.061674
0.180617
0.154185
0.054332
0
0
0
0
0.154706
0.195076
2,112
46
101
45.913043
0.646471
0.046402
0
0
0
0
0.171642
0.018905
0
0
0
0.021739
0.171429
1
0.028571
false
0
0.2
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
25a9b4d8e6473092e7beb77c5938cbaa57f66a4a
8,344
py
Python
3d_fitting/transfer2video_v3.py
duguqiankun/NeuralVoicePuppetry
26b87d98a1ecfe6e4a6738641e6436ab1a9ece31
[ "BSD-3-Clause" ]
null
null
null
3d_fitting/transfer2video_v3.py
duguqiankun/NeuralVoicePuppetry
26b87d98a1ecfe6e4a6738641e6436ab1a9ece31
[ "BSD-3-Clause" ]
null
null
null
3d_fitting/transfer2video_v3.py
duguqiankun/NeuralVoicePuppetry
26b87d98a1ecfe6e4a6738641e6436ab1a9ece31
[ "BSD-3-Clause" ]
1
2021-12-21T08:20:34.000Z
2021-12-21T08:20:34.000Z
import os # os.environ['CUDA_VISIBLE_DEVICES'] = '6' from facenet_pytorch import MTCNN from core.options import ImageFittingOptions import cv2 import face_alignment import numpy as np from core import get_recon_model import os import torch import pickle import core.utils as utils import torch.nn as nn imp...
29.90681
186
0.590125
1,119
8,344
4.225201
0.216265
0.054992
0.021151
0.01269
0.157995
0.103849
0.094966
0.066201
0.049069
0.030457
0
0.039506
0.271932
8,344
279
187
29.90681
0.738765
0.058365
0
0.042169
0
0
0.07732
0.03588
0
0
0
0
0
1
0.018072
false
0
0.108434
0
0.138554
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25ab2cfa339a691b746236596cac21c0e0e39942
200
py
Python
examples/keys.py
notchxor/ueosio
0169075c6814461932eb5ce30f851ef70401fb61
[ "MIT" ]
1
2020-06-19T00:08:25.000Z
2020-06-19T00:08:25.000Z
examples/keys.py
notchxor/ueosio
0169075c6814461932eb5ce30f851ef70401fb61
[ "MIT" ]
null
null
null
examples/keys.py
notchxor/ueosio
0169075c6814461932eb5ce30f851ef70401fb61
[ "MIT" ]
null
null
null
from ueosio import gen_key_pair, get_pub_key ## Print Key Pair print(gen_key_pair()) ## Get Public Address from Private Key print(get_pub_key('5KJfEtwkMBp8t5HtgGfFZVdiUJhDejS5sbiE5siMVe1xs6RQa6y'))
25
73
0.825
27
200
5.814815
0.481481
0.133758
0.127389
0.165605
0
0
0
0
0
0
0
0.044444
0.1
200
7
74
28.571429
0.827778
0.25
0
0
0
0
0.351724
0.351724
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.666667
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
25ac8194d8ccbd9a09f074296efd798e9bbe2bfd
132
py
Python
PyTrinamic/ic/TMC2041/TMC2041_register_variant.py
trinamic-AA/PyTrinamic
b054f4baae8eb6d3f5d2574cf69c232f66abb4ee
[ "MIT" ]
37
2019-01-13T11:08:45.000Z
2022-03-25T07:18:15.000Z
PyTrinamic/ic/TMC2041/TMC2041_register_variant.py
AprDec/PyTrinamic
a9db10071f8fbeebafecb55c619e5893757dd0ce
[ "MIT" ]
56
2019-02-25T02:48:27.000Z
2022-03-31T08:45:34.000Z
PyTrinamic/ic/TMC2041/TMC2041_register_variant.py
AprDec/PyTrinamic
a9db10071f8fbeebafecb55c619e5893757dd0ce
[ "MIT" ]
26
2019-01-14T05:20:16.000Z
2022-03-08T13:27:35.000Z
''' Created on 24.10.2019 @author: JM ''' class TMC2041_register_variant: " ===== TMC2041 register variants ===== " "..."
13.2
45
0.583333
14
132
5.357143
0.857143
0.4
0
0
0
0
0
0
0
0
0
0.152381
0.204545
132
10
46
13.2
0.561905
0.55303
0
0
0
0
0.461538
0
0
0
0
0
0
1
0
true
0
0
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
25afa92abc41404c658c8f5eea275176109abd43
11,308
py
Python
prune_layer_v5_weightingByKernel.py
bolifeyo/Pruned-YOLO
fc1b7203fdb8a4fb8eda8491e5ad2683eab5d159
[ "Apache-2.0" ]
33
2021-03-18T11:34:14.000Z
2021-12-28T06:21:47.000Z
prune_layer_v5_weightingByKernel.py
bolifeyo/Pruned-YOLO
fc1b7203fdb8a4fb8eda8491e5ad2683eab5d159
[ "Apache-2.0" ]
10
2021-03-19T03:35:26.000Z
2022-01-11T06:30:18.000Z
prune_layer_v5_weightingByKernel.py
bolifeyo/Pruned-YOLO
fc1b7203fdb8a4fb8eda8491e5ad2683eab5d159
[ "Apache-2.0" ]
10
2021-03-24T11:55:46.000Z
2022-01-23T03:38:06.000Z
import argparse import torch.nn.functional as F import torch.optim.lr_scheduler as lr_scheduler import torch.utils.data import torch.nn as nn import test # import test.py to get mAP after each epoch from models.yolo import * from models.experimental import * from models.common import * from utils.datasets import * fr...
46.921162
164
0.624337
1,702
11,308
3.912456
0.153937
0.056765
0.09551
0.090104
0.341643
0.306953
0.275867
0.26055
0.241928
0.207689
0
0.013415
0.23532
11,308
240
165
47.116667
0.756679
0.05191
0
0.125604
0
0.019324
0.092227
0
0
0
0
0
0.019324
1
0.028986
false
0.004831
0.057971
0
0.111111
0.033816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25afbfde05c67785ccd3dc5ab3cf731469a73398
23,741
py
Python
shirp/handler.py
cedricg92/event-manager
d07fafe88dca06a4d1a07e2a368122b0fb18ccfd
[ "Apache-2.0" ]
null
null
null
shirp/handler.py
cedricg92/event-manager
d07fafe88dca06a4d1a07e2a368122b0fb18ccfd
[ "Apache-2.0" ]
null
null
null
shirp/handler.py
cedricg92/event-manager
d07fafe88dca06a4d1a07e2a368122b0fb18ccfd
[ "Apache-2.0" ]
null
null
null
import datetime import fnmatch import gzip import shutil import tarfile import time import croniter import hdfs from watchdog.events import PatternMatchingEventHandler, FileCreatedEvent, FileModifiedEvent, FileMovedEvent, os, \ FileSystemEvent def add_log_str(log_pattern, strlog): """Add log in logfile ...
39.241322
119
0.614212
2,771
23,741
5.103934
0.071815
0.076999
0.100191
0.062787
0.771689
0.729831
0.718447
0.692852
0.665064
0.617832
0
0.000876
0.278463
23,741
604
120
39.306291
0.824752
0.204372
0
0.474843
0
0
0.028859
0
0
0
0
0
0
1
0.106918
false
0
0.028302
0
0.311321
0.012579
0
0
0
null
0
0
0
0
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
3
25b040492768293a10b1f4bb4b453755073193ce
7,907
py
Python
dialogue.py
Maxzolythus/Badmoon-Working-Title-pre-alpha-I-hate-that-word-
f90068d670432a5c32a0d0938529968e1da375c8
[ "CC0-1.0" ]
null
null
null
dialogue.py
Maxzolythus/Badmoon-Working-Title-pre-alpha-I-hate-that-word-
f90068d670432a5c32a0d0938529968e1da375c8
[ "CC0-1.0" ]
null
null
null
dialogue.py
Maxzolythus/Badmoon-Working-Title-pre-alpha-I-hate-that-word-
f90068d670432a5c32a0d0938529968e1da375c8
[ "CC0-1.0" ]
null
null
null
""" Full of social stuff with the other characters Up ur social links dialogue.py Max Ferguson """ from main import * sLink = {"Steve": 0, "Zara": 0, "Aeyden": 0, "Emil": 0, "Douche": 0, "Diana": 0, "Cheryl": 0, "Hiram": 0, "Eduardo": 0} def steve(place, sLink, stats, name, pronouns): """ "Dykey" cis Werewol...
38.950739
119
0.554825
1,053
7,907
4.166192
0.296296
0.013677
0.030773
0.038979
0.4062
0.337816
0.311602
0.209027
0.209027
0.209027
0
0.004632
0.344758
7,907
202
120
39.143564
0.842115
0.367143
0
0.378641
0
0.009709
0.349107
0
0
0
0
0
0
1
0.087379
false
0.116505
0.009709
0
0.097087
0.116505
0
0
0
null
0
0
0
0
0
0
0
0
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
25b0c94c1b7162ba39eb9ea90001ad594220bda8
2,417
py
Python
tests/test_status.py
tbartelmess/python-nomad
3ddbf904af2947992722a9dcf58c23eb0078fc8f
[ "MIT" ]
null
null
null
tests/test_status.py
tbartelmess/python-nomad
3ddbf904af2947992722a9dcf58c23eb0078fc8f
[ "MIT" ]
null
null
null
tests/test_status.py
tbartelmess/python-nomad
3ddbf904af2947992722a9dcf58c23eb0078fc8f
[ "MIT" ]
null
null
null
import pytest import tests.common as common import nomad import sys @pytest.fixture def nomad_setup(): n = nomad.Nomad(host=common.IP, port=common.NOMAD_PORT, verify=False, token=common.NOMAD_TOKEN) return n # integration tests requires nomad Vagrant VM or Binary running def test_get_leader(nomad_setup): ...
28.435294
99
0.733968
357
2,417
4.72549
0.193277
0.201541
0.189686
0.124481
0.658566
0.518672
0.471844
0.362774
0.186129
0.186129
0
0.029254
0.151427
2,417
84
100
28.77381
0.793272
0.025238
0
0.113208
0
0
0.042906
0
0
0
0
0
0.339623
1
0.264151
false
0.018868
0.075472
0
0.358491
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
25b158d89271f5b65a9c02d9dbc2083e03cdfb9a
154
py
Python
enums/Matiere.py
ythepaut/visi301_univdefender
13f0e564ad3265aabf77544755873b8584d296de
[ "CC-BY-3.0" ]
7
2019-10-08T15:48:18.000Z
2021-07-06T13:20:54.000Z
enums/Matiere.py
ythepaut/visi301_univdefender
13f0e564ad3265aabf77544755873b8584d296de
[ "CC-BY-3.0" ]
null
null
null
enums/Matiere.py
ythepaut/visi301_univdefender
13f0e564ad3265aabf77544755873b8584d296de
[ "CC-BY-3.0" ]
3
2019-10-08T15:47:55.000Z
2019-12-13T23:28:12.000Z
"""Module Enum:Matiere""" from enum import Enum class Matiere(Enum): """Enum : Matiere""" HISTOIRE = 0 MATHS = 1 INFO = 2 SPORT = 3
14
25
0.571429
20
154
4.4
0.7
0.25
0
0
0
0
0
0
0
0
0
0.036697
0.292208
154
10
26
15.4
0.770642
0.220779
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
25b171c31a40f6d8668db31079821a30e464b8d6
155
py
Python
tests/plugins/viz/conftest.py
andrsd/otter
3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f
[ "MIT" ]
null
null
null
tests/plugins/viz/conftest.py
andrsd/otter
3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f
[ "MIT" ]
30
2020-02-25T13:29:59.000Z
2022-01-07T20:19:05.000Z
tests/plugins/viz/conftest.py
andrsd/otter
3d47d4ad433b5e7bd1a1d5fed45b4950de14c25f
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def viz_plugin(qtbot): from otter.plugins.viz.VizPlugin import VizPlugin plugin = VizPlugin(None) yield plugin
17.222222
53
0.748387
20
155
5.75
0.65
0
0
0
0
0
0
0
0
0
0
0
0.180645
155
8
54
19.375
0.905512
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.5
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
25b188508f38bd8df1c9c5cddf7b6a70e5657a2c
10,338
py
Python
get_data_thomson.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
get_data_thomson.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
get_data_thomson.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 5 18:24:43 2020 @author: mlampert """ import os import copy #FLAP imports and settings import flap import flap_mdsplus flap_mdsplus.register('NSTX_MDSPlus') thisdir = os.path.dirname(os.path.realpath(__file__)) fn = os.path.join(thisdir,"flap_ns...
42.368852
128
0.523796
1,118
10,338
4.597496
0.223614
0.023152
0.02179
0.034241
0.298638
0.205253
0.129572
0.070428
0.070428
0.049416
0
0.010938
0.380925
10,338
244
129
42.368852
0.792188
0.086961
0
0.205128
0
0
0.131205
0.00467
0
0
0
0
0
1
0.010256
false
0
0.041026
0
0.05641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25b2dee9cd1192a7a5e75e961aa831313600a105
1,351
py
Python
res/007-itertools.py
leialbert/keep-learning-python
7bbf2226e6e99e87661f15ea46e6149b61d9912f
[ "MIT" ]
null
null
null
res/007-itertools.py
leialbert/keep-learning-python
7bbf2226e6e99e87661f15ea46e6149b61d9912f
[ "MIT" ]
null
null
null
res/007-itertools.py
leialbert/keep-learning-python
7bbf2226e6e99e87661f15ea46e6149b61d9912f
[ "MIT" ]
null
null
null
from itertools import product a = [1,2] b = [3,4] c = [4] prd = product(a,b) print(prd) print(list(prd)) prd = product(a,c,repeat=2) print(list(prd)) from itertools import permutations a = [1,2,3] per = permutations(a) print(list(per)) a = [1,2,3] per = permutations(a,2) print(list(per)) from itertools import combi...
18.256757
57
0.665433
240
1,351
3.683333
0.245833
0.0181
0.027149
0.027149
0.2319
0.176471
0.131222
0.085973
0.085973
0.085973
0
0.045614
0.156181
1,351
74
58
18.256757
0.729825
0.087343
0
0.333333
0
0
0.044082
0
0
0
0
0
0
1
0.019608
false
0
0.156863
0.019608
0.196078
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25b43442eeb848a6a93a6d999d5f0e66f89b810e
1,234
py
Python
searches/depth_first_search.py
exterkamps/Python-Data-Structures
8594ed934edeaded4866999932384d12fb4519c3
[ "Apache-2.0" ]
3
2018-10-15T17:38:29.000Z
2021-03-24T02:55:46.000Z
searches/depth_first_search.py
exterkamp/Python-Data-Structures
8594ed934edeaded4866999932384d12fb4519c3
[ "Apache-2.0" ]
null
null
null
searches/depth_first_search.py
exterkamp/Python-Data-Structures
8594ed934edeaded4866999932384d12fb4519c3
[ "Apache-2.0" ]
null
null
null
def depth_first_search(grid, start, target): """ Search a 2d grid for a given target starting at start. Args: grid: the input grid as a List[List] start: the start grid in format (x,y) zero index target: the target value to find in the grid Returns: Coordinate of the tar...
29.380952
130
0.548622
177
1,234
3.757062
0.322034
0.045113
0.031579
0.054135
0.159399
0.064662
0.064662
0.064662
0
0
0
0.031746
0.336305
1,234
41
131
30.097561
0.78022
0.246353
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25b4f049fb62cc24f11e54dc8fc2ba379ccfdcb5
3,634
py
Python
test_bear_todo_counter.py
attomos/bear_todo_counter
4a42955f6a76f25cc4fdcdba3fe6dd79dcfeb217
[ "MIT" ]
1
2019-07-27T14:51:45.000Z
2019-07-27T14:51:45.000Z
test_bear_todo_counter.py
attomos/bear_todo_counter
4a42955f6a76f25cc4fdcdba3fe6dd79dcfeb217
[ "MIT" ]
null
null
null
test_bear_todo_counter.py
attomos/bear_todo_counter
4a42955f6a76f25cc4fdcdba3fe6dd79dcfeb217
[ "MIT" ]
null
null
null
from bear_todo_counter import append_todo_count def test_simple_todo(): txt = """\ Tasks + Task one - Task two - Task three""" actual = append_todo_count(txt) expected = """\ Tasks [1/3] + Task one - Task two - Task three""" assert actual == expected def test_todo_with_emoji(): txt = """\ Tasks ...
21.00578
171
0.635938
568
3,634
4.024648
0.15669
0.034996
0.048994
0.082677
0.884952
0.86133
0.841207
0.780402
0.780402
0.730096
0
0.021777
0.216566
3,634
172
172
21.127907
0.772041
0.011833
0
0.811688
0
0.025974
0.63246
0
0
0
0
0
0.058442
1
0.058442
false
0
0.006494
0
0.064935
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
25b56d59ee51fe287acc9555362e89eb0880dd7a
8,915
py
Python
ibmcli/tests/unit/test_api.py
powellquiring/pycli
ecc5beec84833b978dfa41259ab3ac306617fc55
[ "Apache-2.0" ]
null
null
null
ibmcli/tests/unit/test_api.py
powellquiring/pycli
ecc5beec84833b978dfa41259ab3ac306617fc55
[ "Apache-2.0" ]
2
2021-04-06T18:19:56.000Z
2021-06-02T03:28:55.000Z
ibmcli/tests/unit/test_api.py
powellquiring/pycli
ecc5beec84833b978dfa41259ab3ac306617fc55
[ "Apache-2.0" ]
null
null
null
import ibmcli import re def test_plugin_list(): example_output = """Listing installed plug-ins... Plugin Name Version Status dev 2.4.0 cloud-functions/wsk/functions/fn 1.0.35 container-service/kubernetes-service 0.4.38 ...
51.531792
271
0.636455
1,139
8,915
4.894644
0.321335
0.01722
0.016144
0.022422
0.161794
0.133812
0.110135
0.110135
0.08287
0.056323
0
0.053276
0.275715
8,915
173
272
51.531792
0.810129
0.004936
0
0.040541
0
0.101351
0.726494
0.049493
0
0
0
0
0.141892
1
0.067568
false
0
0.027027
0
0.094595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25b8845e4d182b367e71bf9679fb75ef834e9cbd
2,228
py
Python
Chapter13/final/bookr/reviews/tests.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
97
2021-03-01T12:54:30.000Z
2022-03-28T02:57:26.000Z
Chapter13/final/bookr/reviews/tests.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
81
2020-08-27T04:56:04.000Z
2022-03-12T00:53:40.000Z
Chapter13/final/bookr/reviews/tests.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
163
2020-12-25T14:38:38.000Z
2022-03-30T10:31:40.000Z
import os from django.conf import settings from django.test import TestCase, Client from django.utils import timezone from reviews.models import Book, Publisher class Activity2Test(TestCase): @classmethod def setUpTestData(cls): p = Publisher.objects.create(name='Test Publisher') Book.object...
40.509091
120
0.666517
306
2,228
4.718954
0.359477
0.033241
0.049862
0.049862
0.297784
0.207756
0.15374
0.110803
0.110803
0
0
0.002882
0.221275
2,228
54
121
41.259259
0.829395
0.135099
0
0.058824
0
0.058824
0.208553
0.131996
0
0
0
0
0.147059
1
0.058824
false
0
0.147059
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25bc4ad308584b1f25deefeed2a0843dc4fbf607
955
py
Python
django/devbot/project/urls.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
8
2015-03-10T20:03:09.000Z
2018-06-14T23:03:58.000Z
django/devbot/project/urls.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
3
2015-07-14T22:44:47.000Z
2020-06-05T23:43:05.000Z
django/devbot/project/urls.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, patterns, url from django.contrib import admin from django.views.generic import TemplateView admin.autodiscover() urlpatterns = patterns( '', (r'^grappelli/', include('grappelli.urls')), (r'^chatterbox/', include('chatterbox.urls', nam...
32.931034
76
0.653403
111
955
5.531532
0.441441
0.065147
0.045603
0.052117
0.153094
0.153094
0.153094
0.153094
0.153094
0
0
0
0.183246
955
28
77
34.107143
0.787179
0.064921
0
0.181818
0
0
0.265169
0.104494
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25bcf1ca297f8201e6f00eeb98ba8123ff5c8130
1,753
py
Python
graph_embeddings/models/complex.py
navidmdn/Multi-hop-qa-rl
81ac9c2b4a37bd9a18dea3980624e338f4b16b4a
[ "MIT" ]
null
null
null
graph_embeddings/models/complex.py
navidmdn/Multi-hop-qa-rl
81ac9c2b4a37bd9a18dea3980624e338f4b16b4a
[ "MIT" ]
null
null
null
graph_embeddings/models/complex.py
navidmdn/Multi-hop-qa-rl
81ac9c2b4a37bd9a18dea3980624e338f4b16b4a
[ "MIT" ]
null
null
null
from graph_embeddings.models.embedding_model import EmbeddingModel import torch class ComplEx(EmbeddingModel): def __init__(self, data_loader, entity_dim, rel_dim, loss_type, device, do_batch_norm, **kwargs): super(ComplEx, self).__init__( data_loader, entity_dim, rel_dim, los...
37.297872
105
0.634912
240
1,753
4.3875
0.25
0.066477
0.041785
0.062678
0.271605
0.248813
0.146249
0.106363
0.106363
0.106363
0
0.025365
0.257844
1,753
46
106
38.108696
0.784012
0
0
0.052632
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25be2dc9f7c0978f0a272dbf62277c5be22a8d3f
1,921
py
Python
aiopika_macrobase/rpc/endpoint.py
mbcores/aiopika-macrobase
a3351b9eed3cc80995070675d99e7e68022b65d9
[ "MIT" ]
null
null
null
aiopika_macrobase/rpc/endpoint.py
mbcores/aiopika-macrobase
a3351b9eed3cc80995070675d99e7e68022b65d9
[ "MIT" ]
1
2020-08-06T07:42:48.000Z
2020-08-06T07:42:48.000Z
aiopika_macrobase/rpc/endpoint.py
mbcores/aiopika-macrobase
a3351b9eed3cc80995070675d99e7e68022b65d9
[ "MIT" ]
3
2020-04-07T10:02:16.000Z
2021-07-08T05:16:11.000Z
from macrobase_driver.logging import set_request_id from sentry_sdk import capture_exception from .request import RPCRequest, RPCResponse, RPCMessageType from ..endpoint import AiopikaEndpoint from ..result import AiopikaResult from aio_pika import IncomingMessage from structlog import get_logger log = get_logger('m...
35.574074
101
0.690265
202
1,921
6.49505
0.386139
0.030488
0.032012
0.027439
0.10061
0.10061
0.10061
0.10061
0.10061
0.10061
0
0
0.222801
1,921
53
102
36.245283
0.878768
0.019261
0
0.08
0
0
0.059669
0.021567
0
0
0
0
0
1
0
false
0
0.28
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25be66a44bc977c43292b8dbb8604562501b636d
23,766
py
Python
FWCore/Framework/test/test_module_delete_subprocess_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
5
2020-07-02T19:05:26.000Z
2022-02-25T14:37:09.000Z
FWCore/Framework/test/test_module_delete_subprocess_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
524
2018-01-29T15:50:45.000Z
2021-08-04T14:03:21.000Z
FWCore/Framework/test/test_module_delete_subprocess_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
8
2020-06-08T16:28:54.000Z
2021-11-16T14:40:00.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("A") process.maxEvents.input = 8 process.source = cms.Source("EmptySource") #process.Tracer = cms.Service("Tracer") # Process tree # A (Process) # ^ # \- B # | ^ # | \- BA # | # \- C # | # \- D # ^ # \- DA # Cases to test # - event/lumi/run/pro...
44.256983
162
0.79963
1,591
23,766
11.940918
0.157762
0.028056
0.041057
0.053269
0.316928
0.196179
0.182019
0.177492
0.146068
0.099695
0
0.007253
0.106581
23,766
536
163
44.339552
0.887486
0.048767
0
0.207637
0
0
0.179065
0.167171
0
0
0
0
0
1
0.002387
false
0
0.002387
0
0.00716
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
25bf347b5a170666d625bcf8fa70e4e815aea2e9
511
py
Python
src/lithopscloud/modules/gen2/lithops/image.py
Cohen-J-Omer/lithopscloud
bc897ae3952e0faca42581846a8b3169a0b5b49f
[ "Apache-2.0" ]
2
2021-08-22T04:36:34.000Z
2021-11-08T16:02:57.000Z
src/lithopscloud/modules/gen2/lithops/image.py
Cohen-J-Omer/lithopscloud
bc897ae3952e0faca42581846a8b3169a0b5b49f
[ "Apache-2.0" ]
null
null
null
src/lithopscloud/modules/gen2/lithops/image.py
Cohen-J-Omer/lithopscloud
bc897ae3952e0faca42581846a8b3169a0b5b49f
[ "Apache-2.0" ]
1
2021-08-22T08:45:19.000Z
2021-08-22T08:45:19.000Z
from typing import Any, Dict from lithopscloud.modules.gen2.image import ImageConfig class LithopsImageConfig(ImageConfig): def __init__(self, base_config: Dict[str, Any]) -> None: super().__init__(base_config) self.defaults['image_id'] = base_config['ibm_vpc'].get('image_id') def update_c...
34.066667
84
0.733855
68
511
5.102941
0.470588
0.144092
0.121037
0.138329
0.115274
0
0
0
0
0
0
0.002288
0.144814
511
14
85
36.5
0.791762
0
0
0
0
0
0.127202
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
25c058848ef8c6856f73ea330d8c5a94d4371927
85
py
Python
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PairsConfig(AppConfig): name = 'pairs'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
25c10987a4ba7935613dd91db86e1f9e7f66e461
1,640
py
Python
superRes_Train/test.py
abhijitramesh/Eagle-eye
a79f6a1a6d7f2c887cc98f7afb7c6dbe823c7cee
[ "Apache-2.0" ]
2
2021-02-15T14:58:19.000Z
2021-02-17T22:51:34.000Z
superRes_Train/test.py
abhijitramesh/Eagle-eye
a79f6a1a6d7f2c887cc98f7afb7c6dbe823c7cee
[ "Apache-2.0" ]
null
null
null
superRes_Train/test.py
abhijitramesh/Eagle-eye
a79f6a1a6d7f2c887cc98f7afb7c6dbe823c7cee
[ "Apache-2.0" ]
null
null
null
import torch from utils import * from PIL import Image, ImageDraw, ImageFont device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def super_res(img): ## SRRESNET srresnet_checkpoint = "./checkpoint_srresnet.pth.tar" srresnet = torch.load(srresnet_checkpoint,map_location=device)['model'] ...
34.166667
119
0.70122
232
1,640
4.650862
0.280172
0.055607
0.072289
0.050046
0.205746
0.205746
0.164968
0.124189
0.124189
0.124189
0
0.015119
0.153049
1,640
48
120
34.166667
0.761699
0.071951
0
0
0
0
0.124011
0.067942
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25c1eb5997e281f0e9cff107c934f0f8dbe2e2eb
13,571
py
Python
src/jsleakcheck.py
Letractively/leak-finder-for-javascript
3a6c872313dc94d9f5c71950d30b14c01d63078c
[ "Apache-2.0" ]
null
null
null
src/jsleakcheck.py
Letractively/leak-finder-for-javascript
3a6c872313dc94d9f5c71950d30b14c01d63078c
[ "Apache-2.0" ]
null
null
null
src/jsleakcheck.py
Letractively/leak-finder-for-javascript
3a6c872313dc94d9f5c71950d30b14c01d63078c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2012 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by...
36.877717
80
0.663179
1,633
13,571
5.397428
0.244948
0.034944
0.01838
0.009644
0.146358
0.13592
0.122532
0.112321
0.085546
0.044021
0
0.002046
0.243829
13,571
367
81
36.978202
0.856851
0.066465
0
0.135747
0
0
0.251
0.039286
0
0
0
0
0
0
null
null
0.004525
0.036199
null
null
0.031674
0
0
0
null
0
0
0
0
0
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
25c22b5ef0da2b64f093b2f009b804a76def2bb9
1,298
py
Python
map/header.py
WhereGroup/mapconverter
cd0aa5f533194c85cf6e098fadc079ea61b63fce
[ "MIT" ]
9
2020-05-13T13:45:54.000Z
2022-03-30T10:43:45.000Z
map/header.py
WhereGroup/mapconverter
cd0aa5f533194c85cf6e098fadc079ea61b63fce
[ "MIT" ]
4
2020-09-09T10:01:08.000Z
2022-01-15T17:59:11.000Z
map/header.py
WhereGroup/mapconverter
cd0aa5f533194c85cf6e098fadc079ea61b63fce
[ "MIT" ]
1
2022-03-16T17:08:16.000Z
2022-03-16T17:08:16.000Z
# coding=utf-8 def create_header(xml_document, arc_doc_info): """ Creates the Header in the DOM :param xml_document: The DOM / Document for writing the QGIS-File :return: the header element in the DOM """ header_element = xml_document.createElement("qgis") header_element.setAttribute("projectna...
41.870968
89
0.782743
150
1,298
6.453333
0.306667
0.134298
0.092975
0.160124
0.103306
0.103306
0.103306
0
0
0
0
0.007042
0.124807
1,298
30
90
43.266667
0.84507
0.114792
0
0
0
0
0.096546
0.018601
0
0
0
0
0
1
0.052632
false
0
0
0
0.105263
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
25c357277c48f76703f9498b78790dfaeab86dcd
488
py
Python
easyai/tasks/utility/base_test.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
1
2020-09-05T09:18:56.000Z
2020-09-05T09:18:56.000Z
easyai/tasks/utility/base_test.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
8
2020-04-20T02:18:55.000Z
2022-03-12T00:24:50.000Z
easyai/tasks/utility/base_test.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: import abc from easyai.helper.timer_process import TimerProcess from easyai.tasks.utility.base_task import BaseTask class BaseTest(BaseTask): def __init__(self, config_path): super().__init__() self.timer = TimerProcess() self.config...
20.333333
52
0.678279
60
488
5.25
0.583333
0.095238
0.088889
0
0
0
0
0
0
0
0
0.002618
0.217213
488
23
53
21.217391
0.82199
0.10041
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.214286
false
0.142857
0.214286
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
1
0
1
0
0
0
0
0
2
25c460aba52525705ae564ecd9a987d6cd1c6003
8,755
py
Python
populous/media/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
2
2016-05-09T01:17:08.000Z
2017-07-18T23:35:01.000Z
populous/media/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
null
null
null
populous/media/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ from django.contrib.sites.managers import CurrentSiteManager from django.contrib.sites.models import Site from populous.filebrowser.fields import FileBrowseField from populous.staff.models impo...
42.916667
282
0.672073
1,071
8,755
5.281046
0.159664
0.036598
0.041372
0.054102
0.644272
0.629774
0.599364
0.560113
0.512376
0.455269
0
0.007843
0.184466
8,755
204
283
42.916667
0.784314
0.079155
0
0.527778
0
0
0.150196
0
0
0
0
0
0
1
0.104167
false
0
0.055556
0.048611
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
25c4d04411b12679ad3412cf2a77df2f6285b638
1,580
py
Python
day9/flask_day3/sqlalchemy_demo1/demo4.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
day9/flask_day3/sqlalchemy_demo1/demo4.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
day9/flask_day3/sqlalchemy_demo1/demo4.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import ( create_engine, Column, Integer, String, Float, Boolean, DECIMAL, Enum, DateTime, DATE, Time, Text ) from sqlalchemy.dialects.mysql import LONGTEXT from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker # 这是...
24.6875
103
0.703165
189
1,580
5.767196
0.529101
0.051376
0.049541
0
0
0
0
0
0
0
0
0.040801
0.177848
1,580
63
104
25.079365
0.798306
0.261392
0
0
0
0
0.085965
0.037719
0
0
0
0
0
1
0
false
0.047619
0.190476
0
0.404762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25c5027aeec82d81b35c8aa9d76e300f3294343e
5,378
py
Python
publications/2021-al-generator-lulc/scripts/results.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
1
2021-01-25T00:09:32.000Z
2021-01-25T00:09:32.000Z
publications/2021-al-generator-lulc/scripts/results.py
joaopfonseca/research
ac4ad6fa05b5985050c63dc9e4e18cd00965e09b
[ "MIT" ]
20
2021-12-10T11:54:59.000Z
2022-03-18T17:55:33.000Z
publications/2021-al-generator-lulc/scripts/results.py
joaopfonseca/research
ac4ad6fa05b5985050c63dc9e4e18cd00965e09b
[ "MIT" ]
null
null
null
""" Generate the main experimental results. """ # Author: Joao Fonseca <jpmrfonseca@gmail.com> # Georgios Douzas <gdouzas@icloud.com> # License: MIT from os.path import join import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.neighbors import KNeighborsClassifier from sklearn....
28.305263
88
0.598364
596
5,378
5.114094
0.307047
0.023622
0.01706
0.023622
0.2979
0.229659
0.200787
0.177165
0.147638
0.122047
0
0.012814
0.288955
5,378
189
89
28.455026
0.784257
0.087021
0
0.243056
1
0
0.123974
0.025657
0
0
0
0
0
1
0.034722
false
0
0.104167
0.013889
0.173611
0
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
25c6233c949be37003df81cd078a37810b00f6ff
2,411
py
Python
recovery/TopoMADSrc/src/train.py
imperial-qore/CAROL
57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9
[ "BSD-3-Clause" ]
1
2022-03-19T16:37:40.000Z
2022-03-19T16:37:40.000Z
recovery/TopoMADSrc/src/train.py
imperial-qore/CAROL
57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9
[ "BSD-3-Clause" ]
null
null
null
recovery/TopoMADSrc/src/train.py
imperial-qore/CAROL
57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9
[ "BSD-3-Clause" ]
null
null
null
from .constants import * from .utils import * import torch.nn as nn from tqdm import tqdm from .plotter import * anomaly_loss = nn.MSELoss(reduction = 'none') mse_loss = nn.MSELoss(reduction = 'mean') def custom_loss(model, pred_state, true_state, thresholds): aloss = mse_loss(pred_state.view(-1), torch.tensor(true_...
41.568966
125
0.705931
388
2,411
4.177835
0.244845
0.061073
0.064158
0.02591
0.159161
0.037014
0
0
0
0
0
0.013546
0.142679
2,411
57
126
42.298246
0.770682
0.003318
0
0
0
0.019608
0.04
0.00875
0
0
0
0
0
1
0.078431
false
0
0.098039
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25c8813ed4ae67c3e35bea39915c2befdf4b00ec
1,498
py
Python
curation_projects/sites/sarit/main.py
sanskrit-coders/doc_curation
6da4cab5d97232b84b2a656becca9136da13a00b
[ "MIT" ]
7
2020-04-25T08:55:55.000Z
2020-12-21T05:31:00.000Z
curation_projects/sites/sarit/main.py
sanskrit-coders/doc_curation
6da4cab5d97232b84b2a656becca9136da13a00b
[ "MIT" ]
15
2020-04-25T08:31:42.000Z
2021-07-24T12:23:42.000Z
curation_projects/sites/sarit/main.py
sanskrit-coders/doc_curation
6da4cab5d97232b84b2a656becca9136da13a00b
[ "MIT" ]
4
2020-04-25T06:28:37.000Z
2020-12-19T21:30:10.000Z
import logging import os from pathlib import Path from curation_utils.file_helper import clear_bad_chars from doc_curation import tei from doc_curation.md.file import MdFile def dump_sarit_markdown(src_dir, dest_dir): file_paths = sorted(Path(src_dir).glob("*.xml")) for file_path in file_paths: file_path = s...
48.322581
249
0.755007
234
1,498
4.57265
0.277778
0.061682
0.106542
0.079439
0.440187
0.371963
0.371963
0.326168
0.220561
0.08785
0
0.001473
0.093458
1,498
30
250
49.933333
0.786451
0.512684
0
0
0
0
0.084138
0.041379
0
0
0
0
0
1
0.066667
false
0
0.4
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
25c9be0aa40c9cc11065bccf3512fe3ff60fb71c
1,193
py
Python
Model/Characteristics.py
ProjectBlackFalcon/DatBot
8b2cc64af78757b832d8bc6a1373fb74b7a4316f
[ "MIT" ]
7
2017-11-22T13:28:41.000Z
2019-10-17T08:47:40.000Z
Model/Characteristics.py
ProjectBlackFalcon/DatBot
8b2cc64af78757b832d8bc6a1373fb74b7a4316f
[ "MIT" ]
3
2018-10-07T15:59:34.000Z
2019-01-15T11:56:18.000Z
Model/Characteristics.py
ProjectBlackFalcon/DatBot
8b2cc64af78757b832d8bc6a1373fb74b7a4316f
[ "MIT" ]
null
null
null
class Characteristics: def __init__(self): self.level = None self.xp = None self.xp_next_level_floor = None self.weight = None self.weight_max = None self.health_percent = None self.jobs = None self.vi = None self.int = None self.agi ...
29.825
118
0.52808
136
1,193
4.455882
0.301471
0.171617
0.033003
0.049505
0.066007
0
0
0
0
0
0
0
0.346186
1,193
39
119
30.589744
0.776923
0
0
0
0
0
0.10394
0
0
0
0
0
0
1
0.085714
false
0
0
0.028571
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25c9dfc31337ec370a3cc01b5ad5fd8eda8cf639
285
py
Python
deca/cmds/process_rtpc.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
50
2019-06-05T04:01:04.000Z
2022-03-05T14:56:43.000Z
deca/cmds/process_rtpc.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
115
2019-03-27T13:34:00.000Z
2022-03-11T23:43:12.000Z
deca/cmds/process_rtpc.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
13
2020-01-25T01:15:49.000Z
2022-02-08T02:20:05.000Z
import sys from deca.ff_rtpc import Rtpc class FakeVfs: def hash_string_match(self, hash32=None, hash48=None, hash64=None): return [] in_file = sys.argv[1] with open(in_file, 'rb') as f: rtpc = Rtpc() rtpc.deserialize(f) print(rtpc.dump_to_string(FakeVfs()))
16.764706
71
0.684211
45
285
4.177778
0.688889
0.06383
0
0
0
0
0
0
0
0
0
0.030303
0.189474
285
16
72
17.8125
0.78355
0
0
0
0
0
0.007018
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25cc917b26808f7902aee415f3383c9b04b96aba
5,328
py
Python
apps/v1api/views/contract.py
ekivemark/BlueButtonFHIR_API
9b5d9ca92b1e5ff0e9de046c87596ff3d5e66eef
[ "Apache-2.0" ]
5
2016-03-02T23:25:39.000Z
2020-10-29T07:28:42.000Z
apps/v1api/views/contract.py
HowardEdidin/BlueButtonFHIR_API
b8433055507bcc334f70bc864eacd379a04f69db
[ "Apache-2.0" ]
13
2020-02-11T22:50:32.000Z
2022-03-11T23:12:48.000Z
apps/v1api/views/contract.py
HowardEdidin/BlueButtonFHIR_API
b8433055507bcc334f70bc864eacd379a04f69db
[ "Apache-2.0" ]
4
2016-02-02T19:17:24.000Z
2020-10-10T16:10:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 """ BlueButtonFHIR_API FILE: apps.v1api.contract Created: 1/4/16 1:22 AM Write consent by beneficiary to allow use of their data by third party application Status: Experimental Get FHIR Contract format from http://hl7.org/fhir/contract.html ...
45.538462
109
0.671547
537
5,328
6.64432
0.337058
0.080717
0.045404
0.055493
0.395179
0.371357
0.34389
0.29176
0.246637
0.220852
0
0.004434
0.195758
5,328
116
110
45.931034
0.828238
0.951389
0
0
0
0
0.260163
0.085366
0
0
0
0
0
1
0.142857
false
0.142857
0.142857
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
25ccb0913ef4b3651479a239662414ae76f45041
609
py
Python
oauthprovider/permissions.py
avryhof/sub-g
46f403d189eb16de93a5ff8ab7fe88507bcaf2fd
[ "MIT" ]
null
null
null
oauthprovider/permissions.py
avryhof/sub-g
46f403d189eb16de93a5ff8ab7fe88507bcaf2fd
[ "MIT" ]
null
null
null
oauthprovider/permissions.py
avryhof/sub-g
46f403d189eb16de93a5ff8ab7fe88507bcaf2fd
[ "MIT" ]
null
null
null
from rest_framework import permissions from .models import AuthorizedAgent class AuthorizedAgentPermission(permissions.BasePermission): def has_permission(self, request, view): is_authorized = False try: AuthorizedAgent.objects.get(authorized=True, app_key=request.auth) exce...
22.555556
78
0.697865
59
609
7.050847
0.542373
0.144231
0.134615
0.149038
0.461538
0.461538
0.326923
0.326923
0.326923
0.326923
0
0
0.246305
609
26
79
23.423077
0.906318
0
0
0.375
0
0
0
0
0
0
0
0
0
1
0.125
false
0.0625
0.125
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
1
0
0
0
0
0
1
25cd9bc3d7f75b07d01d83640a5c5130f4b01fee
113
py
Python
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
null
null
null
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
4
2020-12-03T10:21:09.000Z
2020-12-07T05:46:40.000Z
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
null
null
null
from os import path from os.path import join DATA_PATH = join(path.sep, 'workspace', 'classification', 'data')
18.833333
65
0.734513
17
113
4.823529
0.529412
0.146341
0
0
0
0
0
0
0
0
0
0
0.141593
113
5
66
22.6
0.845361
0
0
0
0
0
0.238938
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
25cdaf7cb219ebcc1a48a35fc052d380b63d54ae
655
py
Python
cobl/lexicon/migrations/0137_normalize_nexus_exports.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
3
2017-05-30T04:40:43.000Z
2019-04-25T14:54:54.000Z
cobl/lexicon/migrations/0137_normalize_nexus_exports.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
null
null
null
cobl/lexicon/migrations/0137_normalize_nexus_exports.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
3
2018-07-02T13:42:12.000Z
2019-05-17T13:11:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import json from django.db import migrations def forwards_func(apps, schema_editor): NexusExport = apps.get_model("lexicon", "NexusExport") for export in NexusExport.objects.all(): settings = json.loads(export.exportSettin...
24.259259
59
0.690076
76
655
5.736842
0.631579
0.055046
0.06422
0.091743
0
0
0
0
0
0
0
0.032443
0.2
655
26
60
25.192308
0.799618
0.032061
0
0
0
0
0.075949
0.036392
0
0
0
0
0
1
0.117647
false
0.058824
0.176471
0
0.470588
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
25ce92f15804d39fd750d921a11abe1b5d750803
1,622
py
Python
bites/bite021.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite021.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite021.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
1
2019-07-16T19:12:52.000Z
2019-07-16T19:12:52.000Z
cars = { 'Ford': ['Falcon', 'Focus', 'Festiva', 'Fairlane'], 'Holden': ['Commodore', 'Captiva', 'Barina', 'Trailblazer'], 'Nissan': ['Maxima', 'Pulsar', '350Z', 'Navara'], 'Honda': ['Civic', 'Accord', 'Odyssey', 'Jazz'], 'Jeep': ['Grand Cherokee', 'Cherokee', 'Trailhawk', 'Trackhawk'] } def get_al...
34.510638
71
0.6418
209
1,622
4.870813
0.401914
0.049116
0.041257
0.044204
0
0
0
0
0
0
0
0.003147
0.2164
1,622
47
72
34.510638
0.797797
0.286683
0
0.074074
0
0
0.161698
0
0
0
0
0
0
1
0.148148
false
0
0
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
25cf4945d974bdc43f8bfbe0d747b72c20968c9e
3,027
py
Python
homeassistant/components/switch/mysensors.py
magas0/home-assistant
3c9e4934946ce99f5193ca550296034e86337997
[ "MIT" ]
null
null
null
homeassistant/components/switch/mysensors.py
magas0/home-assistant
3c9e4934946ce99f5193ca550296034e86337997
[ "MIT" ]
null
null
null
homeassistant/components/switch/mysensors.py
magas0/home-assistant
3c9e4934946ce99f5193ca550296034e86337997
[ "MIT" ]
null
null
null
""" Support for MySensors switches. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/switch.mysensors/ """ import logging from homeassistant.components import mysensors from homeassistant.components.switch import SwitchDevice from homeassistant.const impo...
36.035714
75
0.650479
396
3,027
4.732323
0.328283
0.044824
0.048559
0.044824
0.270011
0.254002
0.18143
0.164354
0.164354
0.164354
0
0.001783
0.258672
3,027
83
76
36.46988
0.833333
0.225966
0
0.150943
0
0
0
0
0
0
0
0
0
1
0.09434
false
0
0.075472
0
0.264151
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0