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
4351985d13f69a48315f0d844bd4b7e16a5810fd
21,107
py
Python
snakeskin/protos/token/transaction_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
5
2019-08-08T17:16:02.000Z
2021-05-15T07:28:31.000Z
snakeskin/protos/token/transaction_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
4
2019-08-20T15:07:12.000Z
2020-07-31T17:50:51.000Z
snakeskin/protos/token/transaction_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
2
2019-08-20T15:22:48.000Z
2019-12-17T19:38:55.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: snakeskin/protos/token/transaction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _messa...
39.975379
1,802
0.757332
2,538
21,107
5.99015
0.085106
0.043676
0.029928
0.031573
0.698678
0.640926
0.600539
0.566993
0.553575
0.544892
0
0.034148
0.116217
21,107
527
1,803
40.051233
0.780851
0.034491
0
0.644211
1
0.004211
0.200599
0.132489
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4352cf8cc62524bfd5dc1b67d7dff5e5e8013eac
264
py
Python
tests/field_tests/urls.py
callat-qcd/django-gvar
ae4a6153573653cd913be5642b02d0c4dbdc86db
[ "BSD-3-Clause" ]
null
null
null
tests/field_tests/urls.py
callat-qcd/django-gvar
ae4a6153573653cd913be5642b02d0c4dbdc86db
[ "BSD-3-Clause" ]
8
2020-06-08T11:01:33.000Z
2021-09-22T19:11:21.000Z
tests/field_tests/urls.py
callat-qcd/django-gvar
ae4a6153573653cd913be5642b02d0c4dbdc86db
[ "BSD-3-Clause" ]
null
null
null
"""URLs for tests to check rendering of gvars.""" from django.urls import path from field_tests.views import IndexView, DeleteAllView urlpatterns = [ path("", IndexView.as_view(), name="index"), path("delete/", DeleteAllView.as_view(), name="delete"), ]
26.4
60
0.708333
34
264
5.411765
0.647059
0.065217
0.108696
0
0
0
0
0
0
0
0
0
0.140152
264
9
61
29.333333
0.810573
0.162879
0
0
0
0
0.083721
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
436fa9bdc229d0bf04638c96a2cbb8c69abdcc40
5,080
py
Python
deeppavlov/core/agent/rich_content.py
alexeyyakimovich/DeepPavlov
a95149294bc7fa30baaa15c629adad4c1cba264e
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/core/agent/rich_content.py
alexeyyakimovich/DeepPavlov
a95149294bc7fa30baaa15c629adad4c1cba264e
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/core/agent/rich_content.py
alexeyyakimovich/DeepPavlov
a95149294bc7fa30baaa15c629adad4c1cba264e
[ "Apache-2.0" ]
1
2022-02-08T14:41:28.000Z
2022-02-08T14:41:28.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
32.151899
86
0.662205
596
5,080
5.567114
0.276846
0.054852
0.050633
0.079566
0.385775
0.340567
0.233876
0.185051
0.163954
0.090416
0
0.00217
0.274213
5,080
157
87
32.356688
0.897749
0.59311
0
0.128205
0
0
0.008197
0
0
0
0
0
0
1
0.333333
false
0.025641
0.051282
0.025641
0.692308
0
0
0
0
null
0
0
0
0
0
0
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
437e813479680d1c7a351c22774b14c5c43cfcd7
1,393
py
Python
notebooks/py_regression/custom.py
Asrst/fast-ml-api
4c7a366f53f0221fb7e10254fb93aae49721f6f9
[ "Apache-2.0" ]
null
null
null
notebooks/py_regression/custom.py
Asrst/fast-ml-api
4c7a366f53f0221fb7e10254fb93aae49721f6f9
[ "Apache-2.0" ]
null
null
null
notebooks/py_regression/custom.py
Asrst/fast-ml-api
4c7a366f53f0221fb7e10254fb93aae49721f6f9
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pandas as pd from .ridge_regression import RidgeRegression from scipy import optimize class CustomRegressor(RidgeRegression): def __init__(self, l2_penality=1, max_iter = 1000): self.l2_penality = l2_penality self.max_iter = max_iter self.W = None ...
26.788462
76
0.607322
197
1,393
4.106599
0.28934
0.055624
0.044499
0.074166
0.066749
0.066749
0
0
0
0
0
0.014
0.282125
1,393
52
77
26.788462
0.795
0.025126
0
0.105263
0
0
0.008246
0
0
0
0
0
0
1
0.210526
false
0
0.131579
0.078947
0.552632
0
0
0
0
null
0
0
0
0
0
0
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
4389cd99ced072c3319848423b9c9c5d6dff2eb6
4,147
py
Python
virtual/lib/python3.6/site-packages/macaroonbakery/bakery/_identity.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/macaroonbakery/bakery/_identity.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
11
2020-06-05T20:57:31.000Z
2021-09-22T18:35:03.000Z
flask/lib/python3.6/site-packages/macaroonbakery/bakery/_identity.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
# Copyright 2017 Canonical Ltd. # Licensed under the LGPLv3, see LICENCE file for details. import abc from ._error import IdentityError class Identity(object): ''' Holds identity information declared in a first party caveat added when discharging a third party caveat. ''' __metaclass__ = abc.ABCMeta ...
32.653543
78
0.653002
520
4,147
5.15
0.332692
0.018297
0.037341
0.035474
0.176251
0.163181
0.074683
0.036594
0.036594
0
0
0.001689
0.28599
4,147
126
79
32.912698
0.902736
0.512901
0
0.47619
0
0
0.155515
0.012658
0
0
0
0.007937
0
1
0.261905
false
0
0.047619
0.02381
0.619048
0
0
0
0
null
0
0
0
0
0
0
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
43926725fef4e0bdaeadf21ba5599c10d838ab99
2,572
py
Python
yoti_python_sdk/doc_scan/session/create/check/document_authenticity.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
9
2017-11-12T05:38:58.000Z
2021-08-04T16:33:26.000Z
yoti_python_sdk/doc_scan/session/create/check/document_authenticity.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
237
2017-04-26T09:40:44.000Z
2022-02-24T10:29:43.000Z
yoti_python_sdk/doc_scan/session/create/check/document_authenticity.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
9
2017-05-02T11:41:44.000Z
2021-04-28T13:49:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from yoti_python_sdk.doc_scan import constants from yoti_python_sdk.utils import YotiSerializable, remove_null_values from .requested_check import RequestedCheck class RequestedDocumentAuthenticityCheckConfig(YotiSerializable): """ The configura...
26.515464
78
0.667185
244
2,572
6.729508
0.270492
0.15408
0.082217
0.032887
0.275274
0.243605
0.209501
0.164434
0.164434
0.164434
0
0.000528
0.263608
2,572
96
79
26.791667
0.86642
0.28577
0
0.15
0
0
0.007552
0
0
0
0
0
0
1
0.275
false
0
0.1
0.075
0.65
0
0
0
0
null
0
0
0
0
0
0
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
4398f6ccd6025aa6af7c01f2a7f9c3401b026b95
8,233
py
Python
azure-eventgrid/azure/eventgrid/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-eventgrid/azure/eventgrid/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-eventgrid/azure/eventgrid/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
60.985185
153
0.847565
728
8,233
9.127747
0.195055
0.051467
0.046953
0.040632
0.763732
0.760572
0.666968
0.349737
0.251618
0.088187
0
0.007343
0.106765
8,233
134
154
61.440299
0.896247
0.054901
0
0
0
0
0.141184
0.13166
0
0
0
0
0
1
0
false
0
0.639344
0
0.639344
0.02459
0
0
0
null
0
0
0
0
1
0
0
0
0
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
2
43a58c8c593816e4ce3a91a1e47053e3adb79780
768
py
Python
examples/roboclaw_readeeprom.py
2bndy5/roboclaw
a610b698ce98313b11486d54596532d0873fa43b
[ "MIT" ]
null
null
null
examples/roboclaw_readeeprom.py
2bndy5/roboclaw
a610b698ce98313b11486d54596532d0873fa43b
[ "MIT" ]
null
null
null
examples/roboclaw_readeeprom.py
2bndy5/roboclaw
a610b698ce98313b11486d54596532d0873fa43b
[ "MIT" ]
null
null
null
import time from roboclaw import Roboclaw try: # if on win32 or linux from serial import SerialException, Serial as UART except ImportError: try: # try CircuitPython from board import UART except ImportError: try: # try MicroPythom from roboclaw.usart_serial_ctx impor...
26.482759
69
0.636719
97
768
5.010309
0.505155
0.061728
0.08642
0.098765
0.213992
0
0
0
0
0
0
0.044405
0.266927
768
28
70
27.428571
0.818828
0.292969
0
0.25
0
0
0.027723
0
0
0
0.007921
0
0
0
null
null
0
0.35
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
43b18d0dffd0420c24cce9a33acc326dde455673
1,229
py
Python
tf_basic/tf_diffs.py
delavet/tf_train
4e136303cc524eda4add87ec4b29b3c672b2365d
[ "MIT" ]
1
2020-03-01T03:28:45.000Z
2020-03-01T03:28:45.000Z
tf_basic/tf_diffs.py
delavet/tf_train
4e136303cc524eda4add87ec4b29b3c672b2365d
[ "MIT" ]
null
null
null
tf_basic/tf_diffs.py
delavet/tf_train
4e136303cc524eda4add87ec4b29b3c672b2365d
[ "MIT" ]
null
null
null
import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import sklearn import pandas as pd import os import sys import time import tensorflow as tf from sklearn.preprocessing import StandardScaler #用于归一化 from sklearn.datasets import fetch_california_housing from sklearn.model_selection import train...
22.345455
64
0.704638
200
1,229
4.175
0.34
0.009581
0.017964
0.067066
0.069461
0
0
0
0
0
0
0.038424
0.174125
1,229
54
65
22.759259
0.784236
0.013019
0
0
0
0
0
0
0
0
0
0
0
1
0.102564
false
0
0.333333
0.076923
0.512821
0.179487
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
43c93ebb13291de6675461a44cd1dfc365273cb8
1,483
py
Python
adles/interfaces/cloud_interface.py
GhostofGoes/ADLES
5627f03fc6895f75c277d0d2dc66f69eb20611f1
[ "Apache-2.0" ]
30
2017-03-07T23:32:28.000Z
2022-02-06T03:07:10.000Z
adles/interfaces/cloud_interface.py
GhostofGoes/cybersecurity-environment-automation
5627f03fc6895f75c277d0d2dc66f69eb20611f1
[ "Apache-2.0" ]
11
2017-04-01T00:35:37.000Z
2019-10-01T03:04:10.000Z
adles/interfaces/cloud_interface.py
GhostofGoes/cybersecurity-environment-automation
5627f03fc6895f75c277d0d2dc66f69eb20611f1
[ "Apache-2.0" ]
13
2017-03-31T23:27:59.000Z
2020-05-26T10:28:38.000Z
import logging from adles.interfaces.libcloud_interface import LibcloudInterface class CloudInterface(LibcloudInterface): """Generic interface for all cloud platforms.""" def __init__(self, infra, spec): """ :param dict infra: Dict of infrastructure information :param dict spec: Dict...
32.23913
68
0.671612
174
1,483
5.390805
0.362069
0.029851
0.041578
0.03838
0.117271
0.063966
0
0
0
0
0
0
0.231288
1,483
45
69
32.955556
0.822807
0.127444
0
0.142857
0
0
0.038186
0
0
0
0
0
0
1
0.25
false
0.142857
0.071429
0.071429
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
78dcb73719a72ffc6a3e0d0e677173810105043e
1,380
py
Python
cap2/capalyzer/table_parser/cap_table_parser.py
nanusefue/CAP2-1
670b343ac7629fe0e64e86263ae420b01952f427
[ "MIT" ]
9
2020-07-10T15:45:12.000Z
2022-01-19T10:44:13.000Z
cap2/capalyzer/table_parser/cap_table_parser.py
nanusefue/CAP2-1
670b343ac7629fe0e64e86263ae420b01952f427
[ "MIT" ]
14
2020-06-15T16:04:54.000Z
2022-03-12T01:05:47.000Z
cap2/capalyzer/table_parser/cap_table_parser.py
nanusefue/CAP2-1
670b343ac7629fe0e64e86263ae420b01952f427
[ "MIT" ]
5
2021-01-05T01:26:48.000Z
2022-01-23T11:20:49.000Z
import os import logging import pandas as pd logger = logging.getLogger(__name__) # Same name as calling module logger.addHandler(logging.NullHandler()) # No output unless configured by calling program class CAPTableParser: """This class builds summary tables for a set of samples.""" def __init__(self, na...
37.297297
117
0.694928
188
1,380
4.882979
0.367021
0.076253
0.076253
0.043573
0.446623
0.413943
0.413943
0.337691
0.337691
0.337691
0
0.005495
0.208696
1,380
36
118
38.333333
0.835165
0.228261
0
0.173913
0
0
0.183044
0.088632
0
0
0
0
0
1
0.217391
false
0
0.130435
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
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
6017b21d66a7d0d64244393c209d6dee3b674fb1
403
py
Python
catalog/tests/test_model.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
null
null
null
catalog/tests/test_model.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
4
2021-03-30T13:45:45.000Z
2021-09-22T19:14:52.000Z
catalog/tests/test_model.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
null
null
null
from django.test import TestCase class TestOne(TestCase): def setUpTestData(cls): print('Run once only') pass def setUp(self) -> None: print('Begin set up') def tearDown(self) -> None: print('Stop ') def test_1(self): print('test 1') self.assertTrue(...
18.318182
32
0.568238
50
403
4.54
0.56
0.070485
0.114537
0
0
0
0
0
0
0
0
0.014388
0.310174
403
22
33
18.318182
0.802158
0
0
0
0
0
0.10396
0
0
0
0
0
0.133333
1
0.333333
false
0.066667
0.066667
0
0.466667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
6035d09926006d26fb3d54ec587b60a3547bdb81
8,314
py
Python
tests/testcases/consistency_tests.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
null
null
null
tests/testcases/consistency_tests.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
7
2017-02-22T15:24:54.000Z
2021-05-06T22:43:15.000Z
tests/testcases/consistency_tests.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
5
2016-08-23T08:52:00.000Z
2020-03-25T21:28:31.000Z
import unittest import logging from esgfpid.assistant.consistency import Checker as Checker import esgfpid.exceptions # need SolrError # Logging LOGGER = logging.getLogger(__name__) LOGGER.addHandler(logging.NullHandler()) # Test resources: import resources.TESTVALUES as TESTHELPERS ''' Unit tests for esgfpid.assist...
34.786611
134
0.663098
913
8,314
5.841183
0.154436
0.04744
0.043878
0.049503
0.769173
0.707294
0.686855
0.686855
0.685543
0.676167
0
0
0.243325
8,314
239
135
34.786611
0.847719
0.173322
0
0.620968
0
0
0.123309
0.004459
0
0
0
0
0.137097
1
0.104839
false
0.032258
0.040323
0
0.153226
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
6039d13cb48f7a28cd800c961ca3613cb3f3ef37
53,027
py
Python
tests/integration/test_transaction.py
dz/braintree_python
a894c78ec091d81797fa93dc9016142172f3e5e8
[ "MIT" ]
1
2015-05-20T16:45:18.000Z
2015-05-20T16:45:18.000Z
tests/integration/test_transaction.py
dz/braintree_python
a894c78ec091d81797fa93dc9016142172f3e5e8
[ "MIT" ]
null
null
null
tests/integration/test_transaction.py
dz/braintree_python
a894c78ec091d81797fa93dc9016142172f3e5e8
[ "MIT" ]
null
null
null
from tests.test_helper import * class TestTransaction(unittest.TestCase): def test_sale_returns_a_successful_result_with_type_of_sale(self): result = Transaction.sale({ "amount": TransactionAmounts.Authorize, "credit_card": { "number": "4111111111111111", ...
41.459734
124
0.617648
4,956
53,027
6.337369
0.070621
0.102394
0.026999
0.044829
0.794989
0.737424
0.691161
0.650853
0.61306
0.582336
0
0.046434
0.275463
53,027
1,278
125
41.492175
0.771057
0
0
0.603006
0
0
0.158561
0.021838
0
0
0
0
0.244032
0
null
null
0
0.000884
null
null
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
603d54f223f5a2aa252bd1863803db7ad254318a
3,136
py
Python
Sketches/MPS/Experiments/UDP/NewDP.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/Experiments/UDP/NewDP.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/Experiments/UDP/NewDP.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
import socket import errno import Axon from Kamaelia.Internet.Selector import Selector from Kamaelia.IPC import newReader, newWriter class UDPReceiver(Axon.Component.component): Inboxes = {"inbox" : "NOT USED", "control" : "Recieve shutdown messages", "ReadReady" : "Receive ...
36.465116
102
0.570153
307
3,136
5.680782
0.364821
0.036697
0.037844
0.020642
0.376147
0.376147
0.376147
0.324541
0.324541
0.149083
0
0.009087
0.333227
3,136
85
103
36.894118
0.824964
0.05102
0
0.378788
0
0
0.130596
0
0
0
0
0.011765
0
0
null
null
0.015152
0.075758
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
604096994cb89a83e755c0fc828faaccfe9e69da
170
py
Python
fhireval/test_suite/extensions/test_extension_validation.py
ncpi-fhir/ncpi-fhir-platform-evaluation
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
[ "CC0-1.0" ]
null
null
null
fhireval/test_suite/extensions/test_extension_validation.py
ncpi-fhir/ncpi-fhir-platform-evaluation
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
[ "CC0-1.0" ]
15
2021-03-19T21:59:15.000Z
2021-05-14T23:27:17.000Z
fhireval/test_suite/extensions/test_extension_validation.py
ncpi-fhir/ncpi-fhir-platform-evaluation
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
[ "CC0-1.0" ]
null
null
null
import pytest import pdb test_id = f"{'2.4.2':10} - Extensions Validated" test_weight = 4 def test_extension_validation(host): assert 0 == 1, "TODO - Write Test"
15.454545
48
0.694118
27
170
4.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0.057554
0.182353
170
10
49
17
0.76259
0
0
0
0
0
0.307692
0
0
0
0
0
0.166667
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
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
2
6043a1a2957f384d82ba0f0ecdce5f594c52ed01
396
py
Python
shop/models/defaults/order.py
powellc/django-shop
6a1d9393ff8b945738dcd26a3c061489f9602c44
[ "BSD-3-Clause" ]
null
null
null
shop/models/defaults/order.py
powellc/django-shop
6a1d9393ff8b945738dcd26a3c061489f9602c44
[ "BSD-3-Clause" ]
null
null
null
shop/models/defaults/order.py
powellc/django-shop
6a1d9393ff8b945738dcd26a3c061489f9602c44
[ "BSD-3-Clause" ]
1
2018-10-08T20:21:00.000Z
2018-10-08T20:21:00.000Z
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from shop.models.defaults.bases import BaseOrder from shop.models.defaults.managers import OrderManager class Order(BaseOrder): objects = OrderManager() class Meta(object): abstract = False app_label = 'shop' ...
26.4
55
0.684343
45
396
5.844444
0.688889
0.060837
0.106464
0.1673
0
0
0
0
0
0
0
0.003215
0.214646
396
14
56
28.285714
0.842444
0.05303
0
0
0
0
0.040214
0
0
0
0
0
0
1
0
false
0
0.3
0
0.6
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
604f6a6a0a1a4c3b38ee062683483dfbc3745c95
2,356
py
Python
src/common_paths.py
ivallesp/scriptGAN
b1e210dcf9f526848e1bf7b6457979f7d343a5f9
[ "MIT" ]
7
2019-10-15T07:40:57.000Z
2021-10-13T22:23:59.000Z
src/common_paths.py
ivallesp/scriptGAN
b1e210dcf9f526848e1bf7b6457979f7d343a5f9
[ "MIT" ]
null
null
null
src/common_paths.py
ivallesp/scriptGAN
b1e210dcf9f526848e1bf7b6457979f7d343a5f9
[ "MIT" ]
2
2020-09-01T17:33:34.000Z
2021-09-21T18:07:58.000Z
import json import os def _norm_path(path): """ Decorator function intended for using it to normalize a the output of a path retrieval function. Useful for fixing the slash/backslash windows cases. """ def normalize_path(*args, **kwargs): return os.path.normpath(path(*args, **kwargs)) ...
27.395349
120
0.685908
324
2,356
4.734568
0.225309
0.071708
0.073012
0.065189
0.615385
0.559322
0.535854
0.469361
0.469361
0.404172
0
0.002136
0.205008
2,356
86
121
27.395349
0.816871
0.251698
0
0.352941
0
0
0.087137
0
0
0
0
0
0.019608
1
0.27451
false
0
0.039216
0.039216
0.588235
0
0
0
0
null
0
0
0
0
0
0
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
606883101173f73145d854de8a2f2616db39a0a1
1,052
py
Python
fixture/project.py
electrosvoboda/python_traning_mantis
86ec1ad30ca1eb7deefd8b3692a49c05935b53e6
[ "Apache-2.0" ]
null
null
null
fixture/project.py
electrosvoboda/python_traning_mantis
86ec1ad30ca1eb7deefd8b3692a49c05935b53e6
[ "Apache-2.0" ]
null
null
null
fixture/project.py
electrosvoboda/python_traning_mantis
86ec1ad30ca1eb7deefd8b3692a49c05935b53e6
[ "Apache-2.0" ]
null
null
null
from model.project import Project class ProjectHelper: def __init__(self, app): self.app = app def open_project_page(self): wd = self.app.wd wd.find_element_by_link_text("Manage").click() wd.find_element_by_css_selector("span.bracket").click() wd.find_element_by_xpath...
35.066667
99
0.659696
150
1,052
4.333333
0.34
0.064615
0.14
0.161538
0.270769
0.224615
0.224615
0
0
0
0
0.006098
0.220532
1,052
30
100
35.066667
0.786585
0
0
0.130435
0
0.086957
0.137702
0.046534
0
0
0
0
0
1
0.217391
false
0
0.043478
0
0.304348
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
606963ee86c334770fcf1be160a483457021e399
667
py
Python
supriya/ugens/Integrator.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Integrator.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Integrator.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.Filter import Filter class Integrator(Filter): """ A leaky integrator. :: >>> source = supriya.ugens.In.ar(bus=0) >>> integrator = supriya.ugens.Integrator.ar( ... coefficient=1, ... source...
20.84375
79
0.608696
59
667
6.694915
0.525424
0.091139
0
0
0
0
0
0
0
0
0
0.006122
0.265367
667
31
80
21.516129
0.8
0.362819
0
0
0
0
0.078378
0
0
0
0
0
0
1
0
false
0
0.333333
0
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
1
0
1
0
0
2
606aee35282dd019af8198479aefeaaa2f5ef36e
419
py
Python
discuss/comments/filters.py
unmade/discuss-project
fbebf942742457891672dc5e6aebf19bdfb61bcc
[ "MIT" ]
1
2019-12-13T02:14:16.000Z
2019-12-13T02:14:16.000Z
discuss/comments/filters.py
unmade/discuss-project
fbebf942742457891672dc5e6aebf19bdfb61bcc
[ "MIT" ]
null
null
null
discuss/comments/filters.py
unmade/discuss-project
fbebf942742457891672dc5e6aebf19bdfb61bcc
[ "MIT" ]
null
null
null
import django_filters from .models import Comment class CommentFilter(django_filters.FilterSet): created = django_filters.DateTimeFromToRangeFilter(name='created_at') username = django_filters.CharFilter(name='author__username') user = django_filters.NumberFilter(name='author_id') class Meta: ...
29.928571
80
0.73747
46
419
6.456522
0.543478
0.218855
0
0
0
0
0
0
0
0
0
0
0.155131
419
13
81
32.230769
0.838983
0
0
0
0
0
0.186158
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.777778
0
0
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
2
607104bc40d149b5b9410b6c1609717ca90ba426
5,948
py
Python
leopusher/models.py
hosseinmoghimi/phoenix2
7ace62969c364f691595f6d230676fd4a35dea44
[ "MIT" ]
null
null
null
leopusher/models.py
hosseinmoghimi/phoenix2
7ace62969c364f691595f6d230676fd4a35dea44
[ "MIT" ]
null
null
null
leopusher/models.py
hosseinmoghimi/phoenix2
7ace62969c364f691595f6d230676fd4a35dea44
[ "MIT" ]
1
2020-11-12T23:57:20.000Z
2020-11-12T23:57:20.000Z
from utility.persian import PersianCalendar from django.db import models from django.utils.translation import gettext as _ from .enums import PusherChannelNameEnum from django.shortcuts import reverse from pusher import Pusher from .constants import MESSAGES_PAGE_SIZE import json import requests class PusherChannelEven...
40.739726
137
0.674849
675
5,948
5.687407
0.205926
0.065903
0.017192
0.032821
0.288617
0.206825
0.138578
0.083355
0.083355
0.0323
0
0.006099
0.200572
5,948
146
138
40.739726
0.801262
0
0
0.223141
0
0.008264
0.156497
0.051437
0
0
0
0
0
1
0.140496
false
0
0.07438
0.107438
0.603306
0.024793
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
607fa6851a870108d9dd38b1cfc92c5e89d37b63
594
py
Python
brdashsite/batchrecords/utils.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/utils.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/utils.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
import io from xhtml2pdf import pisa from django.template.loader import get_template from django.template import Context from django.http import HttpResponse from cgi import escape def render_to_pdf(template_src, context_dict): template = get_template(template_src) context = Context(context_dict) html = template....
33
72
0.784512
85
594
5.376471
0.494118
0.065646
0.078775
0
0
0
0
0
0
0
0
0.011364
0.111111
594
18
73
33
0.854167
0
0
0
0
0
0.094118
0
0
0
0
0
0
1
0.066667
false
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
608011864c8cafb82cdc546a83cdfc7e7ccbdaba
863
py
Python
console/management/commands/exportcontributors.py
unilot/pre-ico
6d4bd6648b3a1fbc169bd3e331385736d3974046
[ "MIT" ]
1
2018-08-03T03:32:32.000Z
2018-08-03T03:32:32.000Z
console/management/commands/exportcontributors.py
unilot/pre-ico
6d4bd6648b3a1fbc169bd3e331385736d3974046
[ "MIT" ]
8
2020-02-11T21:44:14.000Z
2022-01-13T00:33:35.000Z
console/management/commands/exportcontributors.py
unilot/pre-ico
6d4bd6648b3a1fbc169bd3e331385736d3974046
[ "MIT" ]
1
2018-02-17T12:52:46.000Z
2018-02-17T12:52:46.000Z
from pprint import pprint from django.core.management.base import BaseCommand from django.db.models.query_utils import Q from django.utils import timezone from console.utils import AppWeb3, ContractHelper, AccountHelper from preico import settings from cp import models from cp.serializers import auth from django.cont...
29.758621
122
0.757822
110
863
5.827273
0.545455
0.078003
0.060842
0.056162
0
0
0
0
0
0
0
0.002736
0.152955
863
28
123
30.821429
0.874145
0.158749
0
0
0
0
0.029126
0
0
0
0
0
0
1
0.0625
false
0
0.6875
0
0.875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
608183bb151c9e513ab8fd573ed1f3f01cc26eb6
426
py
Python
sandbox/data_inputs.py
xuanxu/galactica
8478c89783ff8b46ef3896388b4ab3bbea01e2e0
[ "MIT" ]
null
null
null
sandbox/data_inputs.py
xuanxu/galactica
8478c89783ff8b46ef3896388b4ab3bbea01e2e0
[ "MIT" ]
4
2019-10-04T10:32:53.000Z
2021-10-09T09:19:52.000Z
sandbox/data_inputs.py
xuanxu/galactica
8478c89783ff8b46ef3896388b4ab3bbea01e2e0
[ "MIT" ]
null
null
null
def read_file(file_path): data_file = open(file_path, "r") data = data_file.readlines() data_file.close() return data nt = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ep_s = [1, 0.882, 0.607, 0.325, 0.135, 0.044, 0.011, 0.002, 3.35e-4, 4e-5, 3.7e-6] ep_c = [1, 0.977, 0.878, 0.699, 0.449, 0.230, 0.088, 0.023,...
30.428571
85
0.568075
104
426
2.230769
0.528846
0.103448
0.043103
0
0
0
0
0
0
0
0
0.380117
0.197183
426
13
86
32.769231
0.298246
0
0
0
0
0
0.002358
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
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
0
0
0
0
0
0
0
0
0
0
0
0
2
60888f698c2c5f860deabc3e548d0898c7ca28d1
642
py
Python
python/ex5.py
resonanttoe/educationalstuff
e20f229cbf8f4dacef3f1f51127af251d9219a89
[ "Unlicense" ]
null
null
null
python/ex5.py
resonanttoe/educationalstuff
e20f229cbf8f4dacef3f1f51127af251d9219a89
[ "Unlicense" ]
null
null
null
python/ex5.py
resonanttoe/educationalstuff
e20f229cbf8f4dacef3f1f51127af251d9219a89
[ "Unlicense" ]
null
null
null
name = 'Zed A. Shaw' age = 35 # not a lie height = 74 # inches weight = 180 # lbs eyes = 'Blue' teeth = 'White' hair = 'Brown' heightcm = height * 2.54 weightkg = weight * 0.453592 print "Let's talk about %s." % name print "He's %d inches (or %d cm) tall." % (height, heightcm) print "He's %d pounds (or %d kg) heavy." ...
30.571429
65
0.646417
114
642
3.640351
0.561404
0.050602
0.057831
0.043373
0
0
0
0
0
0
0
0.033465
0.208723
642
20
66
32.1
0.783465
0.107477
0
0
0
0
0.43838
0
0
0
0
0
0
0
null
null
0
0
null
null
0.411765
0
0
0
null
0
0
0
0
0
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
1
0
2
60915e527aceca9d796c5f761e0e578fb5b8d4b2
228
py
Python
schnitzer/convert_neuroscope.py
tjd2002/to_nwb
62ebb2b0d67d0ff9b9dd67d863ef1e12e3769901
[ "BSD-3-Clause" ]
null
null
null
schnitzer/convert_neuroscope.py
tjd2002/to_nwb
62ebb2b0d67d0ff9b9dd67d863ef1e12e3769901
[ "BSD-3-Clause" ]
null
null
null
schnitzer/convert_neuroscope.py
tjd2002/to_nwb
62ebb2b0d67d0ff9b9dd67d863ef1e12e3769901
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np fpath_base = '/Users/bendichter/Desktop/Schnitzer/data/test1_171207_181558' amp_fpath = os.path.join(fpath_base, 'amplifier.dat') amp_data = np.fromfile(amp_fpath, dtype=np.int16).reshape(-1, 32)
25.333333
75
0.776316
37
228
4.594595
0.702703
0.105882
0
0
0
0
0
0
0
0
0
0.086957
0.092105
228
8
76
28.5
0.7343
0
0
0
0
0
0.320175
0.263158
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
60a954fccadec452301a32c8805bb9e60cc15573
843
py
Python
armi/physics/neutronics/latticePhysics/__init__.py
keckler/armi
b5f95b4795aa21e00fd6786f6994862a4bdccb16
[ "Apache-2.0" ]
162
2019-11-01T17:35:58.000Z
2022-03-18T04:22:39.000Z
armi/physics/neutronics/latticePhysics/__init__.py
keckler/armi
b5f95b4795aa21e00fd6786f6994862a4bdccb16
[ "Apache-2.0" ]
315
2019-11-01T17:32:05.000Z
2022-03-30T03:51:42.000Z
armi/physics/neutronics/latticePhysics/__init__.py
keckler/armi
b5f95b4795aa21e00fd6786f6994862a4bdccb16
[ "Apache-2.0" ]
55
2019-11-01T16:59:59.000Z
2022-03-25T18:19:06.000Z
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
33.72
80
0.782918
125
843
5.264
0.648
0.091185
0.039514
0.048632
0
0
0
0
0
0
0
0.011268
0.15777
843
24
81
35.125
0.915493
0.744958
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
60b1fa217f445b6762f4f0c87ed09b5dde7aa378
538
py
Python
accounting_app/accounting_app/doctype/fiscal_year/fiscal_year.py
HarshMule20/Accounting-App
fd79e2374904b7c189209aa956206f36eed6396b
[ "MIT" ]
null
null
null
accounting_app/accounting_app/doctype/fiscal_year/fiscal_year.py
HarshMule20/Accounting-App
fd79e2374904b7c189209aa956206f36eed6396b
[ "MIT" ]
null
null
null
accounting_app/accounting_app/doctype/fiscal_year/fiscal_year.py
HarshMule20/Accounting-App
fd79e2374904b7c189209aa956206f36eed6396b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Harsh Mule and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from datetime import datetime class FiscalYear(Document): def before_submit(self): """ to s...
31.647059
65
0.739777
79
538
4.924051
0.64557
0.084833
0.077121
0.097686
0.159383
0.159383
0
0
0
0
0
0.023861
0.143123
538
17
66
31.647059
0.819957
0.312268
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
60b5ba8083c55940107692941781377b0bf274c7
597
py
Python
example/app/testapp/wsgi.py
adamchainz/apig-ws
aedaa2b19d4c00c5f8eafa5141357843c4e7826c
[ "MIT" ]
119
2018-03-02T20:22:27.000Z
2022-03-25T10:17:21.000Z
example/app/testapp/wsgi.py
adamchainz/apig-ws
aedaa2b19d4c00c5f8eafa5141357843c4e7826c
[ "MIT" ]
93
2018-03-08T14:09:35.000Z
2021-12-21T09:33:05.000Z
example/app/testapp/wsgi.py
adamchainz/apig-ws
aedaa2b19d4c00c5f8eafa5141357843c4e7826c
[ "MIT" ]
20
2018-11-30T20:32:27.000Z
2021-09-03T12:17:29.000Z
import json import os from typing import Any, Dict from django.core.wsgi import get_wsgi_application from apig_wsgi import make_lambda_handler os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testapp.settings") application = get_wsgi_application() apig_wsgi_handler = make_lambda_handler(application, binary_support...
28.428571
85
0.78057
86
597
5.197674
0.418605
0.053691
0.067114
0.067114
0.085011
0
0
0
0
0
0
0.003802
0.118928
597
20
86
29.85
0.846008
0
0
0
0
0
0.063652
0.036851
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.538462
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
60cb9d12779c5d0d6d4bfb82457d313a096d00fe
657
py
Python
packageopt/services/agents/implementations/strategy_optimal_agent.py
nspostnov/for-article-optimal-position-liquidation
857152b0450c39cfcdb3d329e57ed07efe344356
[ "MIT" ]
null
null
null
packageopt/services/agents/implementations/strategy_optimal_agent.py
nspostnov/for-article-optimal-position-liquidation
857152b0450c39cfcdb3d329e57ed07efe344356
[ "MIT" ]
null
null
null
packageopt/services/agents/implementations/strategy_optimal_agent.py
nspostnov/for-article-optimal-position-liquidation
857152b0450c39cfcdb3d329e57ed07efe344356
[ "MIT" ]
null
null
null
from ..abstract_base_classes.agent import Agent __all__ = ['StrategyOptimalAgent'] class StrategyOptimalAgent(Agent): def __init__(self, strategyoptimalrepo, strategyoptimalsolver): self._strategyoptimalrepo = strategyoptimalrepo self._strategyoptimalsolver = strategyoptimalsolver def get(s...
32.85
72
0.738204
52
657
9.019231
0.442308
0.245203
0.162047
0.17484
0.187633
0
0
0
0
0
0
0
0.194825
657
19
73
34.578947
0.886578
0
0
0.153846
0
0
0.030441
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.384615
0
0
0
0
null
1
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
2
60db7625afca8a1c75eb4519122dd7ae2b8a4310
625
py
Python
extract_wav.py
souvikg10/asr_training_pipeline
abd7f2b88a5035890d85e5b172266ea0cdd2cd93
[ "Apache-2.0" ]
null
null
null
extract_wav.py
souvikg10/asr_training_pipeline
abd7f2b88a5035890d85e5b172266ea0cdd2cd93
[ "Apache-2.0" ]
null
null
null
extract_wav.py
souvikg10/asr_training_pipeline
abd7f2b88a5035890d85e5b172266ea0cdd2cd93
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import requests, zipfile, StringIO import re import librosa class ExtractFiles(object): def __init__(self,zipfile): self.zipfile = zipfile def get_wav_files(self,d...
26.041667
57
0.768
79
625
5.696203
0.493671
0.088889
0.142222
0
0
0
0
0
0
0
0
0
0.1488
625
23
58
27.173913
0.845865
0
0
0
0
0
0.0208
0
0
0
0
0
0
1
0.105263
false
0
0.368421
0
0.578947
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
1
0
1
0
0
2
60eba82c09d5ea32b317a3e22d456512111d8a5d
659
py
Python
apps/sso/forms/sendmail.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
apps/sso/forms/sendmail.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
apps/sso/forms/sendmail.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
import logging from django import forms from django.utils.translation import gettext_lazy as _ from sso.forms import bootstrap logger = logging.getLogger(__name__) class SendMailForm(forms.Form): subject = forms.CharField(label=_("Subject"), required=True, max_length=1024, widget=bootstrap.TextInput()) mess...
34.684211
111
0.685888
77
659
5.636364
0.584416
0.046083
0.087558
0.096774
0
0
0
0
0
0
0
0.022222
0.180577
659
18
112
36.611111
0.781481
0
0
0
0
0
0.056146
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
60fb0b5aaefb5c655c6d12f80effe8e3d150d9d7
286
py
Python
src/tblink_rpc_utils/type_spec.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc_utils/type_spec.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc_utils/type_spec.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 17, 2021 @author: mballance ''' from enum import Enum, auto class TypeKind(Enum): Bool = auto() Int = auto() Map = auto() Str = auto() Vec = auto() class TypeSpec(object): def __init__(self, kind): self.kind = kind pass
15.052632
29
0.566434
36
286
4.388889
0.694444
0.113924
0
0
0
0
0
0
0
0
0
0.030151
0.304196
286
19
30
15.052632
0.763819
0.15035
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0.090909
0.090909
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
60fbe9e75570c5c6f193978e72ce075974cc35d5
1,719
py
Python
tests/logic/test_ldap.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
5
2020-02-13T15:25:37.000Z
2021-05-06T21:05:14.000Z
tests/logic/test_ldap.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
28
2019-11-12T14:14:08.000Z
2022-03-11T16:29:27.000Z
tests/logic/test_ldap.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
8
2019-12-10T15:46:02.000Z
2021-11-02T12:24:52.000Z
import pytest import flask import sampledb import sampledb.models from sampledb.logic.errors import LDAPNotConfiguredError def test_search_ldap(app): user = sampledb.logic.ldap._get_user_dn_and_attributes(app.config['TESTING_LDAP_UNKNOWN_LOGIN'], [app.config['LDAP_MAIL_ATTRIBUTE']]) assert user is None ...
35.8125
137
0.76498
239
1,719
5.196653
0.175732
0.108696
0.150564
0.161031
0.785024
0.738325
0.638486
0.535427
0.438808
0.369565
0
0
0.125654
1,719
47
138
36.574468
0.826347
0.013962
0
0.193548
0
0
0.164894
0.062057
0
0
0
0
0.322581
1
0.129032
false
0.032258
0.16129
0
0.290323
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
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
880a37cab7837e83f2cb53c0e2bd5e4f0245af58
686
py
Python
snmpsim/grammar/abstract.py
fixpoint/snmpsim
4fab003c5e290e636a7e7755e4515ec7d53a5409
[ "BSD-2-Clause" ]
null
null
null
snmpsim/grammar/abstract.py
fixpoint/snmpsim
4fab003c5e290e636a7e7755e4515ec7d53a5409
[ "BSD-2-Clause" ]
1
2019-02-25T03:39:33.000Z
2019-02-25T06:18:55.000Z
snmpsim/grammar/abstract.py
fixpoint/snmpsim
4fab003c5e290e636a7e7755e4515ec7d53a5409
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of snmpsim software. # # Copyright (c) 2010-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/snmpsim/license.html # from snmpsim import error class AbstractGrammar: def parse(self, line): raise error.SnmpsimError('Method not implemented at %s' % \ ...
31.181818
67
0.603499
76
686
5.131579
0.539474
0.076923
0.169231
0.215385
0.476923
0.476923
0.476923
0.476923
0.476923
0.476923
0
0.016598
0.297376
686
21
68
32.666667
0.792531
0.212828
0
0.545455
0
0
0.157599
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
880e3b8b513ad0dd838db88bd984e2ad513f951b
10,996
py
Python
venv/lib/python3.6/site-packages/oslo_utils/tests/test_reflection.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
74
2015-01-12T10:17:40.000Z
2021-12-02T16:45:25.000Z
venv/lib/python3.6/site-packages/oslo_utils/tests/test_reflection.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
2
2016-05-10T14:41:15.000Z
2021-05-09T06:13:13.000Z
venv/lib/python3.6/site-packages/oslo_utils/tests/test_reflection.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
54
2015-02-02T14:33:42.000Z
2021-12-02T16:45:24.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! 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...
30.544444
79
0.639142
1,255
10,996
5.302789
0.181673
0.044177
0.051089
0.041022
0.552066
0.45695
0.36003
0.322765
0.253644
0.192938
0
0.003525
0.251728
10,996
359
80
30.629526
0.805299
0.083121
0
0.286325
0
0
0.044031
0.010834
0
0
0
0
0.200855
1
0.282051
false
0.081197
0.017094
0.017094
0.401709
0
0
0
0
null
0
0
0
0
0
0
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
714b2ce167b0c063dbe7bbb3bf96022a208c8e45
965
py
Python
tablify.py
mdcallag/mysql-tools
02d18542735a528c4a6cca951207393383266bb9
[ "Apache-2.0" ]
226
2015-01-02T19:34:20.000Z
2022-03-22T02:00:45.000Z
tablify.py
mdcallag/mysql-tools
02d18542735a528c4a6cca951207393383266bb9
[ "Apache-2.0" ]
1
2021-07-12T12:06:55.000Z
2021-07-12T12:06:55.000Z
tablify.py
mdcallag/mysql-tools
02d18542735a528c4a6cca951207393383266bb9
[ "Apache-2.0" ]
88
2015-02-10T04:52:11.000Z
2021-10-12T01:26:26.000Z
#!/usr/bin/python2 # 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 ...
26.081081
74
0.737824
148
965
4.709459
0.655405
0.086083
0.037303
0.045911
0
0
0
0
0
0
0
0.011264
0.172021
965
36
75
26.805556
0.861076
0.60829
0
0
0
0
0.131737
0.062874
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.083333
0
0
0
null
0
0
0
0
0
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
71532ef05dab7de96ab6bc26fdc6ce295e9e71ff
247
py
Python
null-pattern/myobjectfactory.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
null-pattern/myobjectfactory.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
null-pattern/myobjectfactory.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
from myclass import MyClass from nullclass import NullClass class MyObjectFactory: @staticmethod def create_object(value): if value == 'myclass': return MyClass() else: return NullClass()
22.454545
32
0.611336
23
247
6.521739
0.608696
0
0
0
0
0
0
0
0
0
0
0
0.327935
247
10
33
24.7
0.903614
0
0
0
0
0
0.029536
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
715868919849d340013dde84bf9e59d97d8f1bf0
2,233
py
Python
scripts/update_user_details.py
centuri-engineering/clicket
ac790e4c4b9a0f47cec35073e74de97964673475
[ "MIT" ]
null
null
null
scripts/update_user_details.py
centuri-engineering/clicket
ac790e4c4b9a0f47cec35073e74de97964673475
[ "MIT" ]
28
2020-06-02T08:36:15.000Z
2021-05-21T16:32:14.000Z
scripts/update_user_details.py
centuri-engineering/flicket
ac790e4c4b9a0f47cec35073e74de97964673475
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- from application import db, app from application.flicket.models.flicket_user import FlicketUser from application.flicket.scripts.flicket_user_details import FlicketUserDetails @app.cli.command("total_user_posts") def total_user_posts(): """ Command used by manage.py to up...
34.353846
113
0.628751
280
2,233
4.867857
0.3
0.072634
0.09391
0.058694
0.75055
0.718269
0.674982
0.674982
0.674982
0.674982
0
0.004932
0.273623
2,233
64
114
34.890625
0.835388
0.097179
0
0.612245
0
0
0.271673
0
0
0
0
0
0
1
0.040816
false
0
0.061224
0
0.102041
0.244898
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
715a256d1109a9ca0a8b1d2050a8a71a7e8b9eff
7,040
py
Python
slash_util/context.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
30
2022-01-27T01:43:00.000Z
2022-03-18T21:41:10.000Z
slash_util/context.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
16
2022-01-27T03:17:20.000Z
2022-02-21T22:14:23.000Z
slash_util/context.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
18
2022-01-27T01:42:49.000Z
2022-03-06T21:55:29.000Z
from __future__ import annotations from typing import TYPE_CHECKING, Generic, TypeVar, overload import discord from discord.utils import MISSING from .core import Command BotT = TypeVar("BotT", bound='Bot') CogT = TypeVar("CogT", bound='Cog') CtxT = TypeVar("CtxT", bound='Context') if TYPE_CHECKING: from typin...
46.013072
289
0.67017
819
7,040
5.725275
0.218559
0.029857
0.053316
0.057582
0.400299
0.38537
0.373001
0.302623
0.302623
0.239923
0
0.000357
0.205256
7,040
152
290
46.315789
0.837712
0.117045
0
0.190476
0
0
0.012259
0
0
0
0
0
0
1
0.206349
false
0
0.15873
0.015873
0.539683
0
0
0
0
null
0
0
0
0
0
0
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
715e8e99e0d753cae398211e1ca21ae9ba5ab151
7,621
py
Python
tests/forms_tests/field_tests/test_urlfield.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
2
2020-09-25T04:02:25.000Z
2020-10-15T00:01:00.000Z
tests/forms_tests/field_tests/test_urlfield.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/forms_tests/field_tests/test_urlfield.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-10-15T00:01:13.000Z
2020-10-15T00:01:13.000Z
from django.forms import URLField, ValidationError from django.test import SimpleTestCase from . import FormFieldAssertionsMixin class URLFieldTest(FormFieldAssertionsMixin, SimpleTestCase): def test_urlfield_1(self): f = URLField() self.assertWidgetRendersTo(f, '<input type="url" name="f" id="i...
47.63125
119
0.60622
898
7,621
5.097996
0.193764
0.068152
0.072084
0.229358
0.655745
0.59502
0.562691
0.50415
0.49716
0.451726
0
0.021341
0.225299
7,621
159
120
47.930818
0.753388
0.034247
0
0.427536
0
0.021739
0.325986
0.002993
0
0
0
0
0.413043
1
0.086957
false
0
0.021739
0
0.115942
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
1
0
0
0
0
0
0
0
0
0
2
716290f5f6262c1f99f4276fb1eda620ecee6566
246
py
Python
bugged broccoli/test_hex_to_binary.py
Haydens-workshop/very-bugged-broccoli
6120d9bc5ffa56013a142440555ed3afcf1cb2ca
[ "MIT" ]
null
null
null
bugged broccoli/test_hex_to_binary.py
Haydens-workshop/very-bugged-broccoli
6120d9bc5ffa56013a142440555ed3afcf1cb2ca
[ "MIT" ]
null
null
null
bugged broccoli/test_hex_to_binary.py
Haydens-workshop/very-bugged-broccoli
6120d9bc5ffa56013a142440555ed3afcf1cb2ca
[ "MIT" ]
null
null
null
from backend.util.hex_to_binary import hex_to_binary def test_hex_to_binary(): original_number = 789 hex_number = hex(original_number)[2:] binary = hex_to_binary(hex_number) assert int(binary_number, 2) == original_number
30.75
53
0.739837
37
246
4.513514
0.405405
0.11976
0.263473
0
0
0
0
0
0
0
0
0.024752
0.178862
246
8
54
30.75
0.80198
0
0
0
0
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
1
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
716866f42c9c8dca4873525ec9b759f264fe76a4
81
py
Python
index.py
Yael1861/petunia
2fb97b9c16f59296c0e59ba384d3eefe74b1f58e
[ "MIT" ]
null
null
null
index.py
Yael1861/petunia
2fb97b9c16f59296c0e59ba384d3eefe74b1f58e
[ "MIT" ]
null
null
null
index.py
Yael1861/petunia
2fb97b9c16f59296c0e59ba384d3eefe74b1f58e
[ "MIT" ]
null
null
null
from tkinter import * window = Tk() window.title("Petunia") window.mainloop()
13.5
24
0.703704
10
81
5.7
0.8
0
0
0
0
0
0
0
0
0
0
0
0.148148
81
5
25
16.2
0.826087
0
0
0
0
0
0.0875
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
71813de21da17036280924c27e0b7f6514b070b0
507
py
Python
implementation/unitTest/meshReaderTest.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
implementation/unitTest/meshReaderTest.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
implementation/unitTest/meshReaderTest.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
from graphicUtils.visualizer.mayaviVisualizer import visualize_mesh from datasetReader.h5py.meshReader import MeshReader from mayavi import mlab import numpy as np reader = MeshReader("/media/saurabh/e56e40fb-030d-4f7f-9e63-42ed5f7f6c71/preprocessing_new/") dataset = reader.get_dataset("03948459") with dataset: a ...
42.25
93
0.773176
54
507
7.185185
0.648148
0.06701
0.072165
0.237113
0
0
0
0
0
0
0
0.143498
0.120316
507
11
94
46.090909
0.726457
0
0
0
0
0
0.30572
0.2643
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
2
7184fad0fb4fd9eb7e1ba140323f9c509b323582
926
py
Python
mindboggle/shapes/zernike/helpers.py
cemlyn007/mindboggle
947d4b3f41fb7a24c079550c7255c4d16939d740
[ "CC-BY-3.0", "Apache-2.0" ]
118
2015-10-23T19:03:30.000Z
2022-03-17T04:46:27.000Z
mindboggle/shapes/zernike/helpers.py
cemlyn007/mindboggle
947d4b3f41fb7a24c079550c7255c4d16939d740
[ "CC-BY-3.0", "Apache-2.0" ]
136
2015-10-23T06:03:05.000Z
2021-11-30T05:31:09.000Z
mindboggle/shapes/zernike/helpers.py
cemlyn007/mindboggle
947d4b3f41fb7a24c079550c7255c4d16939d740
[ "CC-BY-3.0", "Apache-2.0" ]
56
2015-10-23T13:04:30.000Z
2022-03-16T02:44:06.000Z
import numpy as np def nested_loop(stack, args): if len(stack) != 0: fn = stack.pop() for i in fn(*args): for j in nested_loop(stack, args+[i]): yield (i,)+j stack.append(fn) else: yield tuple() def nest(*_stack): return nested_loop(list(reversed...
25.027027
62
0.561555
141
926
3.553191
0.368794
0.05988
0.08982
0.095808
0
0
0
0
0
0
0
0.013413
0.275378
926
36
63
25.722222
0.733234
0
0
0
0
0
0.021598
0
0
0
0
0
0.034483
1
0.241379
false
0
0.034483
0.137931
0.37931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
718d8ea2644aa79f94054ae18de35b2023b2fb1b
7,884
py
Python
unit_tests/Add_land_charge/test_address_for_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/Add_land_charge/test_address_for_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/Add_land_charge/test_address_for_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from unittest.mock import patch from unit_tests.utilities import Utilities from flask import url_for from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import LocalLandChargeItem from maintain_fronten...
41.494737
107
0.723998
947
7,884
5.673706
0.13622
0.047087
0.059557
0.078169
0.789875
0.756374
0.685278
0.678578
0.658478
0.649172
0
0.008222
0.182395
7,884
189
108
41.714286
0.825318
0
0
0.557143
0
0
0.130518
0.052258
0
0
0
0
0.207143
1
0.085714
false
0
0.064286
0
0.164286
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
719d0a676a9bd6b524c8850f068d37c6a95d1697
376
py
Python
vedro/core/__init__.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
2
2021-08-24T12:49:30.000Z
2022-01-23T07:21:25.000Z
vedro/core/__init__.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
20
2015-12-09T11:04:23.000Z
2022-03-20T09:18:17.000Z
vedro/core/__init__.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
3
2015-12-09T07:31:23.000Z
2022-01-28T11:03:24.000Z
from .._core import ( Dispatcher, ExcInfo, Plugin, Report, Runner, ScenarioResult, ScenarioStatus, StepResult, StepStatus, VirtualScenario, VirtualStep, ) __all__ = ("Dispatcher", "Plugin", "ScenarioResult", "StepResult", "ScenarioStatus", "StepStatus", "VirtualSc...
22.117647
98
0.638298
26
376
9.038462
0.576923
0.102128
0.306383
0
0
0
0
0
0
0
0
0
0.226064
376
16
99
23.5
0.80756
0
0
0
0
0
0.289894
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
1
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
0
0
2
71a71ebfe60baace707af69edec15acdfc586a28
6,156
py
Python
tests/test_packages/test_protocols/test_tac.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_tac.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_tac.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
38.716981
80
0.673489
724
6,156
5.462707
0.212707
0.166877
0.113274
0.155752
0.737295
0.697092
0.678635
0.678635
0.678635
0.643742
0
0.029649
0.194607
6,156
158
81
38.962025
0.768052
0.147498
0
0.762295
0
0
0.111985
0.004602
0
0
0
0
0.122951
1
0.016393
false
0
0.02459
0
0.040984
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
71b1b0276bae35fbbb47bffdcb711a99646b0d6c
295
py
Python
erroranalysis/erroranalysis/_internal/error_report/__init__.py
conradmr94/responsible-ai-widgets
bc88bd164077ae43de47007885e8cbf23f7e7e9d
[ "MIT" ]
null
null
null
erroranalysis/erroranalysis/_internal/error_report/__init__.py
conradmr94/responsible-ai-widgets
bc88bd164077ae43de47007885e8cbf23f7e7e9d
[ "MIT" ]
null
null
null
erroranalysis/erroranalysis/_internal/error_report/__init__.py
conradmr94/responsible-ai-widgets
bc88bd164077ae43de47007885e8cbf23f7e7e9d
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # Licensed under the MIT License. """Init file, used for backwards compatibility.""" from erroranalysis.report import ( ErrorReport, as_error_report, json_converter) __all__ = ['ErrorReport', 'as_error_report', 'json_converter']
26.818182
50
0.708475
32
295
6.21875
0.78125
0.130653
0.180905
0.241206
0.371859
0.371859
0
0
0
0
0
0
0.19322
295
10
51
29.5
0.836134
0.383051
0
0
0
0
0.228571
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
71b24acd2e6f3dda9e4ad9c895364b9a583826ef
216,404
py
Python
samuri6.py
Redsamuribot/vpssamu
a8bdeb76d577536e064b761b6543b626c5900088
[ "MIT" ]
null
null
null
samuri6.py
Redsamuribot/vpssamu
a8bdeb76d577536e064b761b6543b626c5900088
[ "MIT" ]
null
null
null
samuri6.py
Redsamuribot/vpssamu
a8bdeb76d577536e064b761b6543b626c5900088
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import LINETCR from LINETCR.lib.curve.ttypes import * from datetime import datetime import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, tweepy, ctypes, urllib, urllib2, wikipedia, goslate import timeit from bs4 import BeautifulSoup from urllib impor...
46.40875
446
0.415117
23,260
216,404
3.986629
0.077601
0.07894
0.066592
0.076837
0.748914
0.70238
0.661659
0.62467
0.593913
0.569434
0
0.015145
0.441942
216,404
4,662
447
46.418704
0.725022
0.010277
0
0.630583
0
0.007748
0.164111
0.02058
0.002051
0
0
0
0
0
null
null
0.021422
0.004102
null
null
0.015725
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
71bfbe7046a1862036e2251c879d2527478da559
2,495
py
Python
aws_lambda_powertools/utilities/data_classes/appsync/scalar_types_utils.py
BrockReece/aws-lambda-powertools-python
590fa3ceb5ac935abaff77f2c7a47bc63c2998e1
[ "Apache-2.0" ]
null
null
null
aws_lambda_powertools/utilities/data_classes/appsync/scalar_types_utils.py
BrockReece/aws-lambda-powertools-python
590fa3ceb5ac935abaff77f2c7a47bc63c2998e1
[ "Apache-2.0" ]
204
2021-06-25T11:20:42.000Z
2022-03-31T11:22:10.000Z
aws_lambda_powertools/utilities/data_classes/appsync/scalar_types_utils.py
flpStrri/aws-lambda-powertools-python
87907c2d5578692829125ae2cd81b719af532c1f
[ "Apache-2.0", "MIT-0" ]
1
2021-05-13T11:35:12.000Z
2021-05-13T11:35:12.000Z
import datetime import time import uuid def _formatted_time(now: datetime.date, fmt: str, timezone_offset: int) -> str: """String formatted time with optional timezone offset Parameters ---------- now : datetime.date Current datetime with zero timezone offset fmt : str Data format...
27.722222
112
0.649699
325
2,495
4.901538
0.304615
0.2285
0.085374
0.081607
0.538606
0.437539
0.391086
0.305712
0.305712
0.305712
0
0.020451
0.235671
2,495
89
113
28.033708
0.814893
0.541483
0
0
0
0
0.044444
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.761905
0
0
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
1
0
0
0
0
0
0
0
2
71d2ec57891d9e948f0c636f038dca4c693a0bdd
9,473
py
Python
2 - Solution.py
nchauhan890/python-teaching-old
77df36689e938d6c5c95a62285ea1e897dd2fefb
[ "MIT" ]
1
2020-08-05T18:12:24.000Z
2020-08-05T18:12:24.000Z
2 - Solution.py
nchauhan890/python-teaching-old
77df36689e938d6c5c95a62285ea1e897dd2fefb
[ "MIT" ]
null
null
null
2 - Solution.py
nchauhan890/python-teaching-old
77df36689e938d6c5c95a62285ea1e897dd2fefb
[ "MIT" ]
null
null
null
"""Notes on while loop exercise.""" # Notes: # This exercise combines the use of while loops, lists # and lists to expand on previous usage. # You may need to use multiline strings in this # exercise to print a menu with options. There are # a few ways to do this: print("""Type a number to perform the operation: 1 ...
32.441781
71
0.608783
1,416
9,473
4.054379
0.21822
0.054346
0.028741
0.022296
0.40115
0.387215
0.350984
0.317366
0.287232
0.249782
0
0.015922
0.283965
9,473
291
72
32.553265
0.830459
0.47229
0
0.891892
0
0
0.322547
0
0
0
0
0
0
0
null
null
0.033784
0
null
null
0.263514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
71d8735688cd848755a6d1da98122114de75c627
381
py
Python
src/demo_tzcolors/types/tzcolors_auction/parameter/create_auction.py
pravin-d/dipdup-py
934703e1d9ade2f5c798e9da79dc6f2deb0a7a24
[ "MIT" ]
39
2021-04-13T10:53:27.000Z
2022-02-11T00:53:44.000Z
src/demo_tzcolors/types/tzcolors_auction/parameter/create_auction.py
pravin-d/dipdup-py
934703e1d9ade2f5c798e9da79dc6f2deb0a7a24
[ "MIT" ]
113
2021-06-01T18:16:42.000Z
2022-03-28T06:12:58.000Z
src/demo_tzcolors/types/tzcolors_auction/parameter/create_auction.py
pravin-d/dipdup-py
934703e1d9ade2f5c798e9da79dc6f2deb0a7a24
[ "MIT" ]
16
2021-05-26T07:04:40.000Z
2022-03-29T06:50:25.000Z
# generated by datamodel-codegen: # filename: create_auction.json from __future__ import annotations from pydantic import BaseModel from pydantic import Extra class CreateAuctionParameter(BaseModel): class Config: extra = Extra.forbid auction_id: str bid_amount: str end_timestamp: str ...
19.05
40
0.737533
46
381
5.869565
0.586957
0.088889
0.133333
0
0
0
0
0
0
0
0
0
0.215223
381
19
41
20.052632
0.90301
0.167979
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.916667
0
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
1
0
0
2
71e75049d4bd859186449a4baa9038b45ce241f9
124
py
Python
test/gcech_test.py
chujie/generalized-cech-complex
79f1f24d9cd75030924bc823fdbe5560194b18b3
[ "MIT" ]
null
null
null
test/gcech_test.py
chujie/generalized-cech-complex
79f1f24d9cd75030924bc823fdbe5560194b18b3
[ "MIT" ]
null
null
null
test/gcech_test.py
chujie/generalized-cech-complex
79f1f24d9cd75030924bc823fdbe5560194b18b3
[ "MIT" ]
null
null
null
from gcech import CechComplex, CechComplexLE if __name__ == 'main': cech = CechComplexLE() cech_mod = CechComplex()
24.8
44
0.717742
13
124
6.461538
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.185484
124
5
45
24.8
0.831683
0
0
0
0
0
0.032
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
e08a0d5de730d6e1ed10a15e2c0e259889bf6ec6
5,642
py
Python
lenet5/network.py
rhewett/distdl-examples
5ad375eae03a8e10904e134c3d0e4947ce75f513
[ "BSD-2-Clause" ]
1
2020-10-21T18:55:47.000Z
2020-10-21T18:55:47.000Z
lenet5/network.py
rhewett/distdl-examples
5ad375eae03a8e10904e134c3d0e4947ce75f513
[ "BSD-2-Clause" ]
null
null
null
lenet5/network.py
rhewett/distdl-examples
5ad375eae03a8e10904e134c3d0e4947ce75f513
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import torch from layers import DistributedNetworkOutput from layers import Flatten from mpi4py import MPI import distdl def generate_sequential_network(): net = torch.nn.Sequential(torch.nn.Conv2d(1, 6, kernel_size=(5, 5), ...
51.761468
90
0.375399
471
5,642
4.229299
0.191083
0.066767
0.044177
0.128514
0.529618
0.459839
0.440763
0.348394
0.235944
0.235944
0
0.048246
0.555477
5,642
108
91
52.240741
0.746013
0.047678
0
0.433333
1
0
0
0
0
0
0
0
0
1
0.022222
false
0
0.066667
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
2
e08ca5c2681a548777e8eb3c4aae92830fe0f8d4
684
py
Python
Problems/Sliding_Window/subarray_with_given_sum.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
Problems/Sliding_Window/subarray_with_given_sum.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
Problems/Sliding_Window/subarray_with_given_sum.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
""" Given an unsorted array A of size N that contains only non-negative integers, find a continuous sub-array which adds to a given number S. Input: N = 5, S = 12 arr = [1,2,3,7,5] Output: [2, 4] Explanation: The sum of elements from 2nd position to 4th position is 12. Input: N = 10, S = 15 arr = [1,2,3,4,5,6,7,8,9,1...
22.8
137
0.665205
136
684
3.242647
0.433824
0.018141
0.027211
0.027211
0.30839
0.292517
0.151927
0.049887
0.049887
0.049887
0
0.104129
0.185673
684
29
138
23.586207
0.687612
0.595029
0
0
0
0
0.02974
0
0
0
0
0
0
1
0.25
false
0.125
0.125
0
0.375
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
e08fb189b11fd724311f5fc34e62426fe98b5188
530
py
Python
snypy/core/models/models.py
snypy/snypy-backend
064ebd3f5706bca610e4364bdedab63fd503c579
[ "MIT" ]
null
null
null
snypy/core/models/models.py
snypy/snypy-backend
064ebd3f5706bca610e4364bdedab63fd503c579
[ "MIT" ]
11
2021-11-09T19:57:09.000Z
2022-03-22T21:05:36.000Z
snypy/core/models/models.py
snypy/snypy-backend
064ebd3f5706bca610e4364bdedab63fd503c579
[ "MIT" ]
null
null
null
from django.db import models class BaseModel(models.Model): class Meta: abstract = True @property def editable(self): return self.__class__.objects.filter(pk=self.pk).editable().exists() @property def deletable(self): return self.__class__.objects.filter(pk=self.pk).delet...
23.043478
77
0.69434
64
530
5.546875
0.453125
0.061972
0.095775
0.11831
0.394366
0.225352
0.225352
0.225352
0.225352
0
0
0
0.198113
530
22
78
24.090909
0.835294
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.133333
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
e0915de9e594527b7959cff14ecf746fad02a265
39,585
py
Python
scripts/checkout.py
jtjones1001/nvme_info
9beed4bd083f28bc277ae52e0c8d414d51e08559
[ "MIT" ]
1
2021-03-09T05:35:49.000Z
2021-03-09T05:35:49.000Z
scripts/checkout.py
jtjones1001/nvme_info
9beed4bd083f28bc277ae52e0c8d414d51e08559
[ "MIT" ]
1
2021-01-21T17:29:56.000Z
2021-01-21T17:29:56.000Z
scripts/checkout.py
jtjones1001/nvme_info
9beed4bd083f28bc277ae52e0c8d414d51e08559
[ "MIT" ]
1
2021-03-09T05:35:59.000Z
2021-03-09T05:35:59.000Z
#-------------------------------------------------------------------------------------------------------------------- # Example python script that runs a few functional tests on NVMe drives. Goal is to demonstrate how to use nvmecmd # and fio to define custom NVMe tests. This is an example only and is not a comprehe...
59.977273
151
0.451257
3,863
39,585
4.472172
0.119596
0.053716
0.021417
0.027958
0.735992
0.716775
0.689164
0.671278
0.667516
0.652061
0
0.009785
0.295188
39,585
659
152
60.068285
0.609427
0.304206
0
0.667519
0
0.007673
0.208609
0.037559
0
0
0
0
0
1
0
false
0.012788
0.007673
0
0.007673
0.002558
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
e0b05ee3c9f5741528ce5dddf2dc40469e71731d
3,431
py
Python
PROJ/TIME_CHANGED/DV_Swaps_Options/Script_TC_Levy_VarSwap.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/TIME_CHANGED/DV_Swaps_Options/Script_TC_Levy_VarSwap.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/TIME_CHANGED/DV_Swaps_Options/Script_TC_Levy_VarSwap.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
1
2022-01-07T15:31:45.000Z
2022-01-07T15:31:45.000Z
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # Script_TC_Levy_VarSwap.m ################################################################## ### Variance Swaps - Time C...
33.970297
121
0.593704
462
3,431
4.190476
0.38961
0.092975
0.179752
0.284607
0.341942
0.238636
0.140496
0
0
0
0
0.046182
0.198484
3,431
101
122
33.970297
0.657818
0.439522
0
0
1
0
0.141722
0.060265
0
0
0
0
0
1
0
false
0
0.075
0
0.075
0.025
0
0
0
null
0
0
1
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
2
e0c4d7e2a457ce0f5785b2b6e967be6771e46fa0
776
py
Python
db/migrations/0069_auto_20210323_1523.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
1
2022-03-03T09:55:57.000Z
2022-03-03T09:55:57.000Z
db/migrations/0069_auto_20210323_1523.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
7
2022-02-09T10:44:53.000Z
2022-03-28T03:29:43.000Z
db/migrations/0069_auto_20210323_1523.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-23 15:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('db', '0068_auto_20210323_1151'), ] operations = [ migrations.AddField( model_name='company', name='link_education', ...
26.758621
74
0.583763
83
776
5.313253
0.481928
0.122449
0.156463
0.183673
0.619048
0.619048
0.619048
0.52381
0.52381
0.52381
0
0.078899
0.29768
776
28
75
27.714286
0.730275
0.05799
0
0.545455
1
0
0.115226
0.03155
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e0c6730dd09811e67867a3af3b2a7458aa9cfdcb
418
py
Python
tests/test_db.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
tests/test_db.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
tests/test_db.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
from sdbms import SimpleDb from sdbms.core import DbManager, QueryParser import pytest import unittest.mock def test_db_execute(): sd = SimpleDb() sd._parser = unittest.mock.create_autospec(QueryParser, spec_set=True)() sd._manager = unittest.mock.create_autospec(DbManager, spec_set=True)() _ = sd...
22
76
0.746411
56
418
5.339286
0.517857
0.120401
0.120401
0.173913
0
0
0
0
0
0
0
0
0.148325
418
18
77
23.222222
0.839888
0
0
0
0
0
0.081731
0
0
0
0
0
0.1
1
0.1
false
0
0.4
0
0.5
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
1
0
0
0
0
2
e0cae0d06584a35c4fd52b8d78fae2e541725381
3,190
py
Python
gui/uis/api/analysis.py
almogze/PSI
142e9c71e74cf9882edfb2525d955a1c20bcb448
[ "MIT" ]
null
null
null
gui/uis/api/analysis.py
almogze/PSI
142e9c71e74cf9882edfb2525d955a1c20bcb448
[ "MIT" ]
null
null
null
gui/uis/api/analysis.py
almogze/PSI
142e9c71e74cf9882edfb2525d955a1c20bcb448
[ "MIT" ]
null
null
null
import string from PIL import Image import numpy as np import pandas as pd import os from gui.uis.api.fitting import Functions_Fit, Functions_Texts, Fit class Analysis(object): _instance = None def __new__(self): if not Analysis._instance: self._instance = super(Analysis, self).__new__(s...
27.73913
103
0.606897
399
3,190
4.646617
0.243108
0.063107
0.042071
0.036677
0.217907
0.102481
0.070119
0.040992
0
0
0
0.001795
0.301254
3,190
114
104
27.982456
0.829969
0.031975
0
0.231707
0
0
0.001623
0
0
0
0
0
0
1
0.219512
false
0
0.073171
0.097561
0.560976
0
0
0
0
null
0
0
0
0
0
0
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
e0cfee94ccdd4aff1cdcd698a2815556d0a1abd0
541
py
Python
app/extension/database/__init__.py
zeroday0619/zerodayTTS
d13a31b1f8f9ced436596abe9714ed39288fc352
[ "MIT" ]
3
2021-10-04T14:59:34.000Z
2021-12-27T04:44:15.000Z
app/extension/database/__init__.py
zeroday0619/zerodayTTS
d13a31b1f8f9ced436596abe9714ed39288fc352
[ "MIT" ]
9
2021-11-16T03:12:32.000Z
2022-03-28T15:13:28.000Z
app/extension/database/__init__.py
zeroday0619/zerodayTTS
d13a31b1f8f9ced436596abe9714ed39288fc352
[ "MIT" ]
null
null
null
import sqlalchemy metadata = sqlalchemy.MetaData() # TTS 지정채널 설정 관련(?) servers = sqlalchemy.Table( "servers", metadata, sqlalchemy.Column("id", sqlalchemy.BigInteger, primary_key=True), sqlalchemy.Column( "user_id", sqlalchemy.BigInteger, nullable=False ), # 채널 지정 등록한 user id sqlalche...
27.05
70
0.674677
61
541
5.901639
0.409836
0.2
0.244444
0.25
0.291667
0
0
0
0
0
0
0
0.212569
541
19
71
28.473684
0.84507
0.120148
0
0.375
0
0
0.080679
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e0e67627b08b22ea96a372aa4a2090785efe125d
494
py
Python
customaddons/costing/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
customaddons/costing/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
customaddons/costing/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- { 'name': 'Lot/Sno Cost', 'category': 'Website/Website', 'summary': 'Added lot cost in addition to standard, fifo, avco', 'version': '1.0', 'depends': ['stock_account','product','stock'], 'data':[ 'costing_view.xml','lotcost_list_detail_view.xml','stock_inventory_...
32.933333
92
0.633603
59
494
5.152542
0.779661
0.069079
0
0
0
0
0
0
0
0
0
0.007538
0.194332
494
14
93
35.285714
0.756281
0.04251
0
0
0
0
0.683652
0.127389
0
0
0
0
0
1
0
true
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
e0e6dc879923593d36493ab2a3a78b15633c0dfb
1,669
py
Python
python/elo7/wsgi.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
python/elo7/wsgi.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
python/elo7/wsgi.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
#********************************************************************************# # # # нεℓℓσ,вαтεs! #...
57.551724
106
0.250449
79
1,669
5.21519
0.746835
0.048544
0.087379
0
0
0
0
0
0
0
0
0.02027
0.556621
1,669
28
107
59.607143
0.536486
0.701618
0
0
0
0
0.074946
0.047109
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
1
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
2
e0ed1078b12a43c01e665828b787161224077d78
985
py
Python
mongo_storage/fields.py
madisona/django-mongo-storage
3861137d4b38a7bd8a12cbbaf04410090c0b7fe6
[ "BSD-2-Clause" ]
3
2018-05-28T18:31:20.000Z
2021-03-15T22:25:32.000Z
mongo_storage/fields.py
madisona/django-mongo-storage
3861137d4b38a7bd8a12cbbaf04410090c0b7fe6
[ "BSD-2-Clause" ]
null
null
null
mongo_storage/fields.py
madisona/django-mongo-storage
3861137d4b38a7bd8a12cbbaf04410090c0b7fe6
[ "BSD-2-Clause" ]
3
2015-01-24T06:38:48.000Z
2020-07-29T08:49:28.000Z
""" When GridFSStorage saves a file, it is giving Django back the ObjectId, not the file name. Sometimes it is nice to know the file name. Using the MongoFileField instead of Django's regular FileField you can access the file name. Sample usage: class MyModel(models.Model): content = MongoFileField(upload_to="my...
24.02439
75
0.751269
135
985
5.348148
0.555556
0.066482
0.045706
0
0
0
0
0
0
0
0
0
0.168528
985
41
76
24.02439
0.881563
0.456853
0
0
0
0
0.099048
0.072381
0
0
0
0
0
1
0.066667
false
0.066667
0.266667
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
460ea3ea19075fc0d789bdc4152caac95ac2df4e
20,149
py
Python
sahara/db/api.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
161
2015-01-05T11:46:42.000Z
2022-01-05T07:41:39.000Z
sahara/db/api.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
sahara/db/api.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
118
2015-01-29T06:34:35.000Z
2021-12-06T07:30:09.000Z
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.780757
78
0.703757
2,676
20,149
5.10725
0.103886
0.041706
0.026999
0.014487
0.724885
0.670593
0.559303
0.470037
0.377113
0.320334
0
0.000825
0.218075
20,149
633
79
31.830964
0.866646
0.463547
0
0.227679
0
0
0.00339
0.002393
0
0
0
0
0
1
0.330357
false
0
0.017857
0
0.633929
0
0
0
0
null
0
0
0
0
0
0
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
461504af3d6f16f5970b3ede1c4cec67f824d10a
4,095
py
Python
src/core/src/tortuga/objects/nic.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/objects/nic.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/objects/nic.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
27.3
75
0.613431
441
4,095
5.612245
0.315193
0.040404
0.04202
0.020606
0.181818
0.181818
0.158384
0.129293
0.129293
0.129293
0
0.004973
0.263492
4,095
149
76
27.483221
0.81565
0.216606
0
0.181818
0
0
0.055753
0
0
0
0
0
0
1
0.298701
false
0
0.064935
0.064935
0.558442
0
0
0
0
null
0
0
0
0
0
0
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
4619315497fc0bb48fb39c55cad8a40e9921b810
4,420
py
Python
BurnieYilmazRS19/dataPrep/VADER/helperTests.py
Charles0009/crypto_finance_analysis
028938afabf0e9fbf352e8136acdc5d9753ba56d
[ "MIT" ]
null
null
null
BurnieYilmazRS19/dataPrep/VADER/helperTests.py
Charles0009/crypto_finance_analysis
028938afabf0e9fbf352e8136acdc5d9753ba56d
[ "MIT" ]
null
null
null
BurnieYilmazRS19/dataPrep/VADER/helperTests.py
Charles0009/crypto_finance_analysis
028938afabf0e9fbf352e8136acdc5d9753ba56d
[ "MIT" ]
null
null
null
import unittest import pandas as pd from helper.helper import helper class TestHelper(unittest.TestCase): def test_sentimentLabeller(self): self.assertEqual(helper.sentimentLabeller(-0.9), "NEG") self.assertEqual(helper.sentimentLabeller(-0.6), "NEG") self.assertEqual(helper.senti...
48.571429
98
0.65181
486
4,420
5.816872
0.164609
0.133357
0.169791
0.19809
0.701804
0.6682
0.550407
0.550407
0.528122
0.528122
0
0.013394
0.206109
4,420
91
99
48.571429
0.792249
0
0
0.369863
0
0
0.085431
0
0
0
0
0
0.506849
1
0.150685
false
0
0.041096
0.027397
0.205479
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
1
0
0
0
0
0
0
0
0
0
2
1c9ef4596c1a55133f701f3c0495bf42f24fb376
717
py
Python
example/utils.py
anehx/django-rest-framework-json-api
2eea7725e85d908740671352951cbf854f28bc3f
[ "BSD-2-Clause" ]
1,011
2015-07-23T00:39:13.000Z
2022-03-25T11:05:08.000Z
example/utils.py
anehx/django-rest-framework-json-api
2eea7725e85d908740671352951cbf854f28bc3f
[ "BSD-2-Clause" ]
819
2015-07-21T13:43:30.000Z
2022-03-20T22:01:51.000Z
example/utils.py
anehx/django-rest-framework-json-api
2eea7725e85d908740671352951cbf854f28bc3f
[ "BSD-2-Clause" ]
345
2015-07-21T14:29:26.000Z
2022-03-22T03:25:04.000Z
from rest_framework.renderers import BrowsableAPIRenderer class BrowsableAPIRendererWithoutForms(BrowsableAPIRenderer): """Renders the browsable api, but excludes the forms.""" def get_context(self, *args, **kwargs): ctx = super().get_context(*args, **kwargs) ctx["display_edit_forms"] = False...
34.142857
67
0.672245
89
717
5.269663
0.640449
0.025586
0.055437
0
0
0
0
0
0
0
0
0
0.23152
717
20
68
35.85
0.85118
0.292887
0
0
0
0
0.037975
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.8
0
0
0
0
null
0
0
0
0
0
0
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
1c9f02c0673fe73e5d987a27749844e70f996833
851
py
Python
StartStop/startstop_taskset.py
naveenmandepudi/Locust-series
c6bc207fc6723c2e617beb1958e713e24a868788
[ "MIT" ]
18
2021-03-20T02:08:18.000Z
2022-03-17T22:44:06.000Z
StartStop/startstop_taskset.py
naveenmandepudi/Locust-series
c6bc207fc6723c2e617beb1958e713e24a868788
[ "MIT" ]
null
null
null
StartStop/startstop_taskset.py
naveenmandepudi/Locust-series
c6bc207fc6723c2e617beb1958e713e24a868788
[ "MIT" ]
24
2021-04-05T19:40:09.000Z
2022-03-21T02:17:53.000Z
from locust import HttpUser, task, constant, TaskSet class MyTest(TaskSet): def on_start(self): self.client.get("/", name=self.on_start.__name__) print("Start") @task def browse_product_1(self): self.client.get("/product/OLJCESPC7Z", name=self.browse_product_1.__name__) p...
25.787879
83
0.645123
110
851
4.672727
0.309091
0.151751
0.136187
0.16537
0.198444
0.105058
0.105058
0
0
0
0
0.015015
0.217391
851
33
84
25.787879
0.756757
0
0
0.125
0
0
0.142019
0
0
0
0
0
0
1
0.208333
false
0
0.041667
0
0.458333
0.208333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
1ca97a755d7a6090562750b9b28708e5efcd955c
1,009
py
Python
unfold/transactions/tests/test_urls.py
wesny/unfold
6594054f7408ac142fc6e902093b6fc8cbfda94e
[ "MIT" ]
null
null
null
unfold/transactions/tests/test_urls.py
wesny/unfold
6594054f7408ac142fc6e902093b6fc8cbfda94e
[ "MIT" ]
null
null
null
unfold/transactions/tests/test_urls.py
wesny/unfold
6594054f7408ac142fc6e902093b6fc8cbfda94e
[ "MIT" ]
null
null
null
from django.urls import reverse, resolve from test_plus.test import TestCase class TestTransactionURLs(TestCase): def setUp(self): self.user = self.make_user() def test_purchase_reverse(self): """users:list should reverse to /users/.""" self.assertEqual(reverse('transactions:purchase...
36.035714
82
0.674926
119
1,009
5.605042
0.252101
0.052474
0.11994
0.149925
0.554723
0.554723
0.554723
0.554723
0.554723
0.554723
0
0
0.178394
1,009
28
82
36.035714
0.804584
0.187314
0
0
0
0
0.220126
0.163522
0
0
0
0
0.333333
1
0.4
false
0
0.133333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
1cb561cf0e695ac4b1fff54600a78a00fa5de2d7
679
py
Python
app/libs/command.py
mohansd/cyx-xElec-server
bef67274ba85d6172ac1ef4dd3df8c8ce86c6c61
[ "Apache-2.0" ]
null
null
null
app/libs/command.py
mohansd/cyx-xElec-server
bef67274ba85d6172ac1ef4dd3df8c8ce86c6c61
[ "Apache-2.0" ]
null
null
null
app/libs/command.py
mohansd/cyx-xElec-server
bef67274ba85d6172ac1ef4dd3df8c8ce86c6c61
[ "Apache-2.0" ]
null
null
null
OFF = { 1: "640600140000C03B", 2: "64060015000091FB", 3: "64060016000061FB", 4: "640600170000303B" } ON = { 1: "64060014000101FB", 2: "640600150001503B", 3: "640600160001A03B", 4: "640600170001F1FB" } BASIC = { "version": "AA550004E00100E5", "sign": "AA550004E0230107", "clo...
19.4
39
0.618557
47
679
8.893617
0.829787
0
0
0
0
0
0
0
0
0
0
0.543925
0.212077
679
34
40
19.970588
0.237383
0
0
0
0
0
0.580265
0
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
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
1cc085916d4cbc6a6b0387550569da8ce0070b4e
2,509
py
Python
opt/nn_opt_utils.py
DRealArun/nasbot
6eb26ee44bf171205b9df2fe29af90ecbd2abb65
[ "MIT" ]
null
null
null
opt/nn_opt_utils.py
DRealArun/nasbot
6eb26ee44bf171205b9df2fe29af90ecbd2abb65
[ "MIT" ]
null
null
null
opt/nn_opt_utils.py
DRealArun/nasbot
6eb26ee44bf171205b9df2fe29af90ecbd2abb65
[ "MIT" ]
null
null
null
""" Some utilities when optimising over neural networks. --kandasamy@cs.cmu.edu """ # pylint: disable=no-member # Local from opt.function_caller import FunctionCaller from nn import nn_examples class NNFunctionCaller(FunctionCaller): """ Mostly just a place holder class for a Neural network function caller. ""...
40.467742
90
0.625349
354
2,509
4.059322
0.214689
0.167015
0.208072
0.222686
0.429367
0.321503
0.237996
0.237996
0.192067
0
0
0.039467
0.25269
2,509
61
91
41.131148
0.726933
0.262654
0
0
0
0
0.00335
0
0
0
0
0
0
1
0.078947
false
0.026316
0.052632
0
0.263158
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1cca7abaaf0f7c6dc9761027c1a8af6064bb74cf
16,064
py
Python
functionality/kmeans_cluster_ijcai18_1_201_9_exp199_search_best_k_200K.py
neerbek/taboo-selective
56b126e4aa6d08c53b33ebffe0c7d5063bc1719e
[ "MIT" ]
null
null
null
functionality/kmeans_cluster_ijcai18_1_201_9_exp199_search_best_k_200K.py
neerbek/taboo-selective
56b126e4aa6d08c53b33ebffe0c7d5063bc1719e
[ "MIT" ]
null
null
null
functionality/kmeans_cluster_ijcai18_1_201_9_exp199_search_best_k_200K.py
neerbek/taboo-selective
56b126e4aa6d08c53b33ebffe0c7d5063bc1719e
[ "MIT" ]
1
2019-02-12T16:04:14.000Z
2019-02-12T16:04:14.000Z
# -*- coding: utf-8 -*- """ Created on March 9, 2018 @author: neerbek Search for k values """ import os os.chdir("../../taboo-core") from numpy.random import RandomState # type: ignore from sklearn.cluster import KMeans # type: ignore import ai_util import confusion_matrix import kmeans_cluster_util as kutil imp...
49.276074
706
0.616845
2,568
16,064
3.785047
0.239875
0.016667
0.012963
0.013169
0.44465
0.395988
0.367387
0.363786
0.347634
0.336831
0
0.299524
0.124191
16,064
325
707
49.427692
0.391357
0.602465
0
0.526316
0
0.008772
0.077769
0.007208
0
0
0
0
0
1
0
false
0
0.078947
0
0.078947
0.105263
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
1ccf0fc2cd297ac70fd1ed22c69ece514864ee8a
1,705
py
Python
api/views.py
glitzybunny/django-stat-app
e2fe6307f1820e9ccca9f8498134f49500e0c091
[ "MIT" ]
1
2020-08-31T17:53:06.000Z
2020-08-31T17:53:06.000Z
api/views.py
glitzybunny/django-stat-app
e2fe6307f1820e9ccca9f8498134f49500e0c091
[ "MIT" ]
1
2021-06-10T22:32:40.000Z
2021-06-10T22:32:40.000Z
api/views.py
glitzybunny/django-stat-app
e2fe6307f1820e9ccca9f8498134f49500e0c091
[ "MIT" ]
1
2020-11-04T04:46:03.000Z
2020-11-04T04:46:03.000Z
from rest_framework.views import APIView from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response from rest_framework.pagination import LimitOffsetPagination from django.core.exceptions import ObjectDoesNotExist from rest_framework.decorators import api_view, permission_c...
29.396552
72
0.702053
194
1,705
6.108247
0.386598
0.076793
0.086076
0.04557
0.140084
0
0
0
0
0
0
0.001494
0.214663
1,705
57
73
29.912281
0.883495
0.115543
0
0.181818
0
0
0.029952
0
0
0
0
0
0
1
0.060606
false
0
0.363636
0
0.606061
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1cd5cd85768e680bead9b6f42a90ba82c7a9b173
1,230
py
Python
TS3_JH_acq/jobs/dark_current/v0/producer_dark_current.py
lsst-camera-dh/ccstsscripts
28e021a15640b346709cfbf6b68ae6cc9a2e5dd3
[ "BSD-3-Clause-LBNL" ]
null
null
null
TS3_JH_acq/jobs/dark_current/v0/producer_dark_current.py
lsst-camera-dh/ccstsscripts
28e021a15640b346709cfbf6b68ae6cc9a2e5dd3
[ "BSD-3-Clause-LBNL" ]
1
2015-04-14T18:01:25.000Z
2015-04-14T18:01:25.000Z
TS3_JH_acq/jobs/dark_current/v0/producer_dark_current.py
lsst-camera-dh/ccstsscripts
28e021a15640b346709cfbf6b68ae6cc9a2e5dd3
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python import os import sys import shutil import pyfits import lsst.eotest.image_utils as imutils import lsst.eotest.sensor as sensorTest from lcatr.harness.helpers import dependency_glob dark_files = dependency_glob('*_dark_dark*.fits', jobname='TS3_dark') mask_files = dependency_glob('*_mask.fits') p...
34.166667
107
0.752846
187
1,230
4.743316
0.465241
0.072153
0.047351
0.060879
0.105975
0.105975
0.105975
0.105975
0.105975
0
0
0.014898
0.126829
1,230
35
108
35.142857
0.810987
0.296748
0
0
0
0
0.175991
0.051282
0
0
0
0
0
0
null
null
0
0.368421
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
1ce1b6bc16c4f18bfea6f2d76c958ad163f0be19
282
py
Python
models/policy/eps_greedy.py
danilonumeroso/role
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
1
2021-06-24T16:30:45.000Z
2021-06-24T16:30:45.000Z
models/policy/eps_greedy.py
danilonumeroso/chess-rl
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
null
null
null
models/policy/eps_greedy.py
danilonumeroso/chess-rl
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
null
null
null
from models.policy import DecayingEpsilonGreedy class EpsilonGreedy(DecayingEpsilonGreedy): def __init__(self, eps): super(EpsilonGreedy, self).__init__( eps_decay=1, eps_start=eps ) def update(self): pass
20.142857
47
0.599291
26
282
6.115385
0.653846
0
0
0
0
0
0
0
0
0
0
0.005291
0.329787
282
13
48
21.692308
0.835979
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.1
0.1
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
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
2
1ceb221ea7f2adb7b9ad813325ac26d6e2361860
996
py
Python
data/groups.py
RKSCapul/demo-hermitcraft-concept-site-backend-r2
ef1f2c7ee16be0301445a2e2902def0df2d08546
[ "MIT" ]
null
null
null
data/groups.py
RKSCapul/demo-hermitcraft-concept-site-backend-r2
ef1f2c7ee16be0301445a2e2902def0df2d08546
[ "MIT" ]
null
null
null
data/groups.py
RKSCapul/demo-hermitcraft-concept-site-backend-r2
ef1f2c7ee16be0301445a2e2902def0df2d08546
[ "MIT" ]
null
null
null
from application import db from flask import jsonify class groups(db.Model): __table_args__ = { 'schema': 'hermits' } __tablename__ = 'groups_' group_code = db.Column(db.String(), primary_key=True) name = db.Column(db.String()) group_duration = db.Column(db.String()) def __init__(self, name = ''): se...
23.714286
55
0.651606
123
996
5.01626
0.300813
0.116694
0.145867
0.207455
0.385737
0.385737
0.385737
0.288493
0.145867
0.145867
0
0
0.201807
996
42
56
23.714286
0.776101
0
0
0.264706
0
0
0.080241
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.088235
0.705882
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
1cf506ab241e39e21f4121a5facf87fdcbd7584a
691
py
Python
test/nn/models/test_jumping_knowledge.py
MendelXu/pytorch_geometric
3b931ca44382cf90e730dc34f0fd6cc25a5b0fda
[ "MIT" ]
2
2019-10-10T07:01:07.000Z
2020-11-04T06:26:42.000Z
test/nn/models/test_jumping_knowledge.py
sdauzcm/--pyg
676972f32507dbdec16c4a4ab46166032e5bfc04
[ "MIT" ]
null
null
null
test/nn/models/test_jumping_knowledge.py
sdauzcm/--pyg
676972f32507dbdec16c4a4ab46166032e5bfc04
[ "MIT" ]
1
2019-10-31T01:15:03.000Z
2019-10-31T01:15:03.000Z
import torch from torch_geometric.nn import JumpingKnowledge def test_jumping_knowledge(): num_nodes, channels, num_layers = 100, 16, 4 xs = list([torch.randn(num_nodes, channels) for _ in range(num_layers)]) model = JumpingKnowledge('cat') assert model.__repr__() == 'JumpingKnowledge(cat)' asser...
34.55
76
0.700434
82
691
5.597561
0.365854
0.143791
0.174292
0.202614
0.28976
0.215686
0.215686
0
0
0
0
0.010363
0.162084
691
19
77
36.368421
0.782383
0
0
0.142857
0
0
0.107091
0.092619
0
0
0
0
0.428571
1
0.071429
false
0
0.142857
0
0.214286
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
1
0
0
0
0
0
0
0
0
0
2
e80206a0cb572b4d28ac6efae83787404fbec73b
2,116
py
Python
src/models.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/models.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/models.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
from app import db from sqlalchemy.orm import relationship import hashlib def create_db(): db.create_all() class UserModel(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key = True) password = db.Column(db.String(255), nullable = False) email = db.Column(db.String(255), un...
27.128205
91
0.674858
264
2,116
5.234848
0.268939
0.075253
0.086831
0.086107
0.408104
0.33864
0.33864
0.33864
0.26411
0.26411
0
0.010613
0.198488
2,116
77
92
27.480519
0.804245
0
0
0.351852
0
0
0.074669
0
0
0
0
0
0
1
0.166667
false
0.092593
0.055556
0.055556
0.759259
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
e805acc7d1cf91446ecae8c3b0f6e11db2995acf
676
py
Python
paper/sim.sample.py
agausmann/CS5803-project
dd13ce5750ac49050a18fab4ecde0edcf05f789b
[ "0BSD" ]
null
null
null
paper/sim.sample.py
agausmann/CS5803-project
dd13ce5750ac49050a18fab4ecde0edcf05f789b
[ "0BSD" ]
null
null
null
paper/sim.sample.py
agausmann/CS5803-project
dd13ce5750ac49050a18fab4ecde0edcf05f789b
[ "0BSD" ]
null
null
null
class Component: def tick(self): # Compute new state, but do not # update the value of output(). self.buffer = ... def tock(self): # Update the value of output() # based on the state from tick(). self.out = self.buffer def output(self): # The output ...
24.142857
45
0.569527
83
676
4.638554
0.457831
0.062338
0.083117
0.103896
0.244156
0.12987
0
0
0
0
0
0
0.346154
676
27
46
25.037037
0.871041
0.368343
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.071429
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e810a186d60bb7f28c0797d73ff5c551194f7387
26,634
py
Python
src/simulation/dynamics/gravityEffector/_UnitTest/test_gravityDynEffector.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
src/simulation/dynamics/gravityEffector/_UnitTest/test_gravityDynEffector.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
src/simulation/dynamics/gravityEffector/_UnitTest/test_gravityDynEffector.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
''' ''' ''' ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all c...
47.731183
176
0.696516
3,160
26,634
5.833861
0.198418
0.004123
0.012151
0.032547
0.561269
0.51565
0.47974
0.446813
0.436235
0.430485
0
0.028783
0.208193
26,634
557
177
47.816876
0.84537
0.267966
0
0.386364
0
0
0.093238
0.027718
0
0
0
0
0.010101
0
null
null
0.070707
0.035354
null
null
0.012626
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
e82168f5e5963346904e3243b96b8db901fe8d86
27,346
py
Python
NN-with-OOP/neural_nets_oop6.py
pranavsastry/neural-nets-with-OOP
a4db4aa860c786220ae9346c7b8ce6730b64aee1
[ "MIT" ]
null
null
null
NN-with-OOP/neural_nets_oop6.py
pranavsastry/neural-nets-with-OOP
a4db4aa860c786220ae9346c7b8ce6730b64aee1
[ "MIT" ]
null
null
null
NN-with-OOP/neural_nets_oop6.py
pranavsastry/neural-nets-with-OOP
a4db4aa860c786220ae9346c7b8ce6730b64aee1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """neural-nets-OOP-final.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1jXIIY8fxu1DkQ5m7VLC0ayARQBzKARlM """ import numpy as np from sklearn.datasets import make_moons import math from pandas import DataFrame import matp...
36.70604
245
0.644701
4,696
27,346
3.552172
0.098595
0.024279
0.011031
0.010911
0.481446
0.423296
0.368923
0.328697
0.295666
0.271087
0
0.030063
0.181379
27,346
744
246
36.755376
0.71509
0.001975
0
0.242958
1
0
0.057189
0.004088
0
0
0
0
0
0
null
null
0
0.021127
null
null
0.040493
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
1
0
0
0
0
0
0
0
0
2
e824878c15467535d49be8880f60f774f4eedb86
784
py
Python
mat/mat/modules/android/static/fragment_injection.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
null
null
null
mat/mat/modules/android/static/fragment_injection.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
null
null
null
mat/mat/modules/android/static/fragment_injection.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
1
2019-09-21T16:12:04.000Z
2019-09-21T16:12:04.000Z
from mat.utils.utils import Utils, Issue class Issue(Issue): TITLE = 'Fragment Injection Check' DESCRIPTION = 'Checks if the application is vulnerable to fragment injection' ID = 'fragment-injection' ISSUE_TITLE = 'Application Vulnerable To Fragment Injection' FINDINGS = 'The Te...
35.636364
90
0.693878
92
784
5.847826
0.51087
0.157993
0.111524
0.16171
0
0
0
0
0
0
0
0.003263
0.218112
784
21
91
37.333333
0.874388
0
0
0
0
0
0.324393
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.071429
0.714286
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
e827996ab96332e6c04ac7d7b47969ec1b81f4c2
60
py
Python
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
DIR_RAW = 'raw/' DIR_RESULT = 'result/' DIR_LOCAL = 'local/'
20
22
0.666667
9
60
4.111111
0.444444
0
0
0
0
0
0
0
0
0
0
0
0.133333
60
3
23
20
0.711538
0
0
0
0
0
0.278689
0
0
0
0
0
0
1
0
false
0
0
0
0
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
e82be5bdaec392c7bc26c83e997f65290a9d71a9
285
py
Python
src/status/admin.py
ricardoBento/Django-Angular-Ionic
fea23986deb613603a150d11787b609971c7152f
[ "MIT" ]
277
2017-12-10T19:47:15.000Z
2022-03-27T06:27:57.000Z
src/status/admin.py
avanish981/REST-API
b5e4afe61ae1f21cb4928bf1f15be546d9252a5d
[ "MIT" ]
8
2020-02-12T03:21:26.000Z
2022-01-13T01:51:42.000Z
src/status/admin.py
hmtanbir/django-angular-ionic
2984ce6bdf7a54290671095e60d3bd7bb39b14a8
[ "MIT" ]
160
2017-12-10T19:19:17.000Z
2022-03-27T06:27:58.000Z
from django.contrib import admin from .forms import StatusForm from .models import Status class StatusAdmin(admin.ModelAdmin): list_display = ['user', '__str__', 'image'] form = StatusForm # class Meta: # model = Status admin.site.register(Status, StatusAdmin)
20.357143
47
0.708772
33
285
5.969697
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.192982
285
14
48
20.357143
0.856522
0.105263
0
0
0
0
0.063241
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1c0040ac62002f953e15d2e87af2bd7ae083a9a8
324
py
Python
geoloc-server/routerinfo/__init__.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
1
2021-12-06T01:32:56.000Z
2021-12-06T01:32:56.000Z
geoloc-server/routerinfo/__init__.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
null
null
null
geoloc-server/routerinfo/__init__.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ routerinfo ~~~~~~ A module to convert multiple router IP address aliases to a single router IP address. :author: Muzammil Abdul Rehman :copyright: Northeastern University © 2018. :license: Custom BSD, see LICENSE for more details. :email: passport@ccs.neu.edu ...
21.6
89
0.654321
41
324
5.195122
0.853659
0.075117
0.140845
0
0
0
0
0
0
0
0
0.02008
0.231481
324
14
90
23.142857
0.831325
0.876543
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
1c06220a63155ce2637832eef1a676612af88318
39,898
py
Python
batch_cube.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
2
2020-11-12T06:41:44.000Z
2022-02-27T13:50:38.000Z
batch_cube.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
null
null
null
batch_cube.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
2
2018-05-22T02:40:23.000Z
2018-07-28T11:14:41.000Z
""" An implementation of an array Rubic's cubes. Actions are stored in this order (corresponding to these numbers) 0:L, 1:L', 2:R, 3:R', 4:U, 5:U', 6:D, 7:D', 8:F, 9:F', 10:B, 11:B' Internally the cube is stored as an integer array of dimension ? x 54 One row for each cube, stored in a way easy to import into...
45.082486
260
0.432453
6,889
39,898
2.443461
0.056322
0.009505
0.00802
0.008555
0.569417
0.52908
0.492544
0.465158
0.461059
0.380621
0
0.329951
0.389869
39,898
884
261
45.133484
0.361541
0.079879
0
0.263868
0
0.001499
0.005943
0
0
0
0
0
0.04048
1
0.041979
false
0
0.005997
0.014993
0.074963
0.025487
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
1c08c9be4f600f5214471814990df3c20e0f3fcf
773
py
Python
jskit/use_enc/use_enc.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jskit/use_enc/use_enc.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jskit/use_enc/use_enc.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
import numpy as np import tensorflow_hub as hub import tensorflow as tf import tensorflow_text # noqa from jaseci.actions.live_actions import jaseci_action from typing import Union module = hub.load("https://tfhub.dev/google/universal-sentence-encoder/4") @jaseci_action(act_group=['use'], aliases=['get_embedding']...
27.607143
79
0.737387
118
773
4.576271
0.491525
0.088889
0.062963
0.074074
0.085185
0
0
0
0
0
0
0.007474
0.134541
773
27
80
28.62963
0.799701
0.005175
0
0
0
0
0.104302
0
0
0
0
0
0
1
0.105263
false
0
0.368421
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1c08f28396e284634d1f5f684c801392e512572d
8,878
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/apps/user/serializers.py
RignonNoel/django-init
4f00ec5f9ad8083a8dea5483c4e43712fceeba7a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/apps/user/serializers.py
RignonNoel/django-init
4f00ec5f9ad8083a8dea5483c4e43712fceeba7a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/apps/user/serializers.py
RignonNoel/django-init
4f00ec5f9ad8083a8dea5483c4e43712fceeba7a
[ "MIT" ]
1
2019-11-20T17:24:33.000Z
2019-11-20T17:24:33.000Z
import re from django.contrib.auth import get_user_model, password_validation from django.contrib.auth.models import Permission from django.core.exceptions import ValidationError, ObjectDoesNotExist from django.contrib.auth import authenticate from django.utils.translation import ugettext_lazy as _ from rest_framewor...
28.546624
76
0.574792
848
8,878
5.816038
0.244104
0.027575
0.025547
0.03974
0.386253
0.359084
0.324006
0.306164
0.306164
0.246959
0
0.003846
0.326425
8,878
310
77
28.63871
0.820903
0.013517
0
0.458678
0
0
0.146376
0.003434
0
0
0
0
0
0
null
null
0.165289
0.045455
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
1c14d49276aa3503925eb8a781b6c5fa0e6589b2
468
py
Python
tollan/utils/tests/test_dict_from_regex_match.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
tollan/utils/tests/test_dict_from_regex_match.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
tollan/utils/tests/test_dict_from_regex_match.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python from ..misc import dict_from_regex_match def test_dict_from_regex_match(): pattern = r'(?P<key1>\d+)_(?P<key2>\w+)?' assert dict_from_regex_match(pattern, '01_abc') == { 'key1': '01', 'key2': 'abc' } assert dict_from_regex_match(pattern, '01_abc...
23.4
69
0.510684
56
468
3.964286
0.5
0.144144
0.234234
0.324324
0.436937
0.324324
0.324324
0.324324
0
0
0
0.04717
0.320513
468
19
70
24.631579
0.650943
0.044872
0
0
0
0
0.161435
0.06278
0
0
0
0
0.142857
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1c175ed3392e0b413da16dfa3d0f55232598b239
590
py
Python
requestdemo/2.request_addheader.py
liang1024/CrawlerDemo
f9b93d062477ff96c31decc600f35e2dc84d27e4
[ "Apache-2.0" ]
null
null
null
requestdemo/2.request_addheader.py
liang1024/CrawlerDemo
f9b93d062477ff96c31decc600f35e2dc84d27e4
[ "Apache-2.0" ]
null
null
null
requestdemo/2.request_addheader.py
liang1024/CrawlerDemo
f9b93d062477ff96c31decc600f35e2dc84d27e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 ''' 使用request为请求添加header ''' import requests kw = {'wd':'权利的游戏'} headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"} # params 接收一个字典或者字符串的查询参数,字典类型自动转换为url编码,不需要urlencode() response = requests.get("http://www.b...
21.071429
142
0.752542
77
590
5.753247
0.714286
0.146727
0
0
0
0
0
0
0
0
0
0.055344
0.111864
590
28
143
21.071429
0.790076
0.276271
0
0
0
0.111111
0.392857
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.555556
0
0
0
null
0
0
0
0
0
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
1
0
2
1c1c07c39e5dfc1d00a652a39b295966f16a1a8e
388
py
Python
polls/admin.py
awsbreathpanda/mysite
c3db9db48c26e93e459875b267e1eebb90dc79a3
[ "MIT" ]
null
null
null
polls/admin.py
awsbreathpanda/mysite
c3db9db48c26e93e459875b267e1eebb90dc79a3
[ "MIT" ]
null
null
null
polls/admin.py
awsbreathpanda/mysite
c3db9db48c26e93e459875b267e1eebb90dc79a3
[ "MIT" ]
null
null
null
from polls.models import Choice, Question from django.contrib import admin # Register your models here. class QuestionAdmin(admin.ModelAdmin): list_display = ['id', 'question_text', 'pub_date'] class ChoiceAdmin(admin.ModelAdmin): list_display = ['id', 'question', 'choice_text', 'votes'] admin.site.regist...
25.866667
61
0.757732
47
388
6.148936
0.510638
0.124567
0.131488
0.179931
0.249135
0.249135
0
0
0
0
0
0
0.118557
388
15
62
25.866667
0.845029
0.06701
0
0
0
0
0.135734
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
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
1c4396f29e3704807e1fce11fdaed48c810a35a5
7,393
py
Python
okta/resource_clients/domain_client.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/resource_clients/domain_client.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/resource_clients/domain_client.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 - Present Okta, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
26.123675
90
0.548357
756
7,393
5.167989
0.190476
0.06194
0.069107
0.0645
0.686972
0.673151
0.673151
0.643972
0.62708
0.62708
0
0.00297
0.36237
7,393
282
91
26.216312
0.825838
0.090626
0
0.762712
0
0
0.101559
0.020613
0
0
0
0
0
1
0.00565
false
0
0.022599
0
0.158192
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1c4fc873f7458e6d0054945007928a9bedba0bcd
719
py
Python
tests/_test_classes.py
gimntut/overloading.py
b9224635158f079eeeb4c42908103d96e57b43de
[ "MIT" ]
122
2015-02-02T18:13:53.000Z
2022-03-10T15:49:42.000Z
tests/_test_classes.py
gimntut/overloading.py
b9224635158f079eeeb4c42908103d96e57b43de
[ "MIT" ]
8
2015-05-01T21:44:08.000Z
2020-12-23T11:22:54.000Z
tests/_test_classes.py
gimntut/overloading.py
b9224635158f079eeeb4c42908103d96e57b43de
[ "MIT" ]
19
2015-02-15T20:53:22.000Z
2021-12-29T09:29:17.000Z
from overloading import * from test_overloading import * class C: @overload def f(self, *args): return 'default' @overload def f(self, foo, bar:int): return ('any', 'int') @overload def f(self, foo, bar): return ('any', 'any') assert C.f.__doc__ == 'f(...)\n\n' ins...
18.921053
51
0.514604
107
719
3.392523
0.28972
0.115702
0.151515
0.165289
0.429752
0.391185
0.22865
0.15978
0.15978
0
0
0.001919
0.275382
719
37
52
19.432432
0.694818
0
0
0.269231
0
0
0.100279
0
0
0
0
0
0.230769
1
0.153846
false
0
0.076923
0.153846
0.461538
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
1
0
0
0
2
1c570cac783d50549381e0f5f41d1a5f50648de4
203
py
Python
bitrix24/__init__.py
kabilovtoha/bitrix24-python-sdk
74740abd38f814420830bbcda586ee739f03ff12
[ "MIT" ]
33
2016-08-30T06:33:59.000Z
2021-09-02T10:10:36.000Z
bitrix24/__init__.py
kabilovtoha/bitrix24-python-sdk
74740abd38f814420830bbcda586ee739f03ff12
[ "MIT" ]
5
2016-12-11T19:22:28.000Z
2020-10-27T01:52:33.000Z
bitrix24/__init__.py
kabilovtoha/bitrix24-python-sdk
74740abd38f814420830bbcda586ee739f03ff12
[ "MIT" ]
31
2016-09-20T09:02:32.000Z
2022-01-28T00:47:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Init file for Bitrix24 module""" from .bitrix24 import * __author__ = 'Vladislav Sikach' __author_email__ = 'github@sijmusic.info' __version__ = '1.0.1'
22.555556
41
0.694581
27
203
4.740741
0.888889
0
0
0
0
0
0
0
0
0
0
0.045455
0.133005
203
8
42
25.375
0.681818
0.35468
0
0
0
0
0.330645
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
1c59f2add67315f9be546e293668e93d3127dbab
463
py
Python
test/run_proxy_server.py
IPVL/swift_test
41d1ee3d575036a0788425b20da87aeee00bb605
[ "MIT" ]
null
null
null
test/run_proxy_server.py
IPVL/swift_test
41d1ee3d575036a0788425b20da87aeee00bb605
[ "MIT" ]
null
null
null
test/run_proxy_server.py
IPVL/swift_test
41d1ee3d575036a0788425b20da87aeee00bb605
[ "MIT" ]
null
null
null
from os.path import isfile import sys from swift.common.utils import parse_options from swift.common.wsgi import run_wsgi pass # (clac) print 'Number of arguments:', len(sys.argv), 'arguments.' pass # (clac) print 'Argument List:', str(sys.argv) if __name__ == '__main__': conf_file, options = parse_options() ...
28.9375
72
0.686825
70
463
4.357143
0.485714
0.114754
0.098361
0
0
0
0
0
0
0
0
0.007853
0.174946
463
15
73
30.866667
0.790576
0.235421
0
0.166667
0
0
0.105413
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
1c6ad74bb507227adf329f9ca0004c811725589c
280
py
Python
src/edgeServer/clear_data.py
kpbhole/CDN
725f90c710bf6fd82efe015b387447b6465eacd9
[ "MIT" ]
3
2019-12-27T11:43:58.000Z
2020-11-21T10:09:44.000Z
src/edgeServer/clear_data.py
kpbhole/CDN
725f90c710bf6fd82efe015b387447b6465eacd9
[ "MIT" ]
1
2019-04-19T20:17:59.000Z
2019-04-19T20:17:59.000Z
src/edgeServer/clear_data.py
kpbhole/CDN
725f90c710bf6fd82efe015b387447b6465eacd9
[ "MIT" ]
3
2019-05-26T19:23:31.000Z
2021-04-14T10:07:41.000Z
import pickle import sys import os sys.path.insert(0, "../") from config import * f = open(EDGE_CONTENT_DICT_FILENAME, 'wb') pickle.dump(dict(), f) f.close() f = open(EDGE_LRU_FILENAME, 'wb') pickle.dump(dict(), f) f.close() for f in os.listdir('data/'): os.remove('data/'+f)
16.470588
42
0.678571
48
280
3.854167
0.5
0.054054
0.097297
0.216216
0.335135
0.335135
0.335135
0.335135
0
0
0
0.004082
0.125
280
17
43
16.470588
0.75102
0
0
0.307692
0
0
0.060498
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
1
0
0
0
0
2