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
d4d95342f41061299c64490ea9ab6705d5a84b95
634
py
Python
chapter-6/holdings/holdings/clients.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
115
2017-11-06T08:12:07.000Z
2022-02-25T09:56:59.000Z
chapter-6/holdings/holdings/clients.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
12
2017-08-05T14:51:35.000Z
2020-12-01T11:05:14.000Z
chapter-6/holdings/holdings/clients.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
82
2017-08-05T09:41:12.000Z
2022-02-18T00:57:39.000Z
import logging import requests from tenacity import before_log, retry, stop_after_attempt class MarketDataClient(object): logger = logging.getLogger(__name__) base_url = 'http://market-data:8000' def _make_request(self, url): response = requests.get( f"{self.base_url}/{url}", header...
26.416667
83
0.675079
79
634
5.177215
0.531646
0.080685
0.07824
0.102689
0
0
0
0
0
0
0
0.009862
0.200315
634
23
84
27.565217
0.796844
0
0
0
0
0
0.143533
0.033123
0
0
0
0
0
1
0.1875
false
0
0.1875
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
d4d9e6d71e69698ba77a6289f74120c3c4f42de9
1,528
py
Python
openclean/profiling/tests.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
4
2021-04-20T09:06:26.000Z
2021-11-20T20:31:28.000Z
openclean/profiling/tests.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
14
2021-01-19T19:23:16.000Z
2021-04-28T14:31:03.000Z
openclean/profiling/tests.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
5
2021-08-24T11:57:21.000Z
2022-03-17T04:39:04.000Z
# This file is part of the Data Cleaning Library (openclean). # # Copyright (C) 2018-2021 New York University. # # openclean is released under the Revised BSD License. See file LICENSE for # full license details. """Helper class for testing profiling functionality.""" from collections import Counter from openclean.d...
29.960784
78
0.646597
190
1,528
5.178947
0.489474
0.030488
0.01626
0.022358
0.030488
0
0
0
0
0
0
0.00724
0.276832
1,528
50
79
30.56
0.883258
0.584424
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
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
d4e3e40c747dc3f18235ac1cf9b360b007d513c8
15,286
py
Python
tests/extension/types_/axi_/slave_read/test_types_axi_slave_read.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/types_/axi_/slave_read/test_types_axi_slave_read.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/types_/axi_/slave_read/test_types_axi_slave_read.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import veriloggen import types_axi_slave_read expected_verilog = """ module test; reg CLK; reg RST; reg [32-1:0] myaxi_awaddr; reg [8-1:0] myaxi_awlen; reg [3-1:0] myaxi_awsize; reg [2-1:0] myaxi_awburst; reg [1-1:0] myaxi_awlo...
23.699225
1,255
0.630315
2,322
15,286
3.689922
0.059001
0.024043
0.037582
0.009804
0.476657
0.186391
0.152428
0.14204
0.14204
0.1243
0
0.066573
0.258079
15,286
644
1,256
23.736025
0.688916
0
0
0.33156
0
0.005319
0.961272
0.065027
0
0
0
0
0.001773
1
0.001773
false
0
0.010638
0
0.012411
0.001773
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d4f53a6bcfe05e611929e885704509e9deec3431
13,825
py
Python
desktop/core/ext-py/kerberos-1.3.0/pysrc/kerberos.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
pysrc/kerberos.py
ass-a2s/ccs-pykerberos
24b0ca75a03f283c089f90befe88299158d3dc18
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
pysrc/kerberos.py
ass-a2s/ccs-pykerberos
24b0ca75a03f283c089f90befe88299158d3dc18
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
## # Copyright (c) 2006-2018 Apple 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 applicable l...
29.924242
80
0.715009
1,929
13,825
5.049767
0.231208
0.015194
0.048763
0.043117
0.450262
0.413407
0.376655
0.351093
0.310851
0.303665
0
0.011475
0.224665
13,825
461
81
29.989154
0.897285
0.761519
0
0.04918
0
0
0
0
0
0
0
0
0
1
0.360656
false
0.081967
0
0
0.409836
0
0
0
0
null
0
0
0
0
0
0
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
be012fdc10f24eba06be394052fbaac1f2cf481f
8,414
py
Python
tests/unit_tests/test_scaling.py
AppliedMechanics/AMfe
be209dffe4d170aca735f1e912fd5cb448502119
[ "BSD-3-Clause" ]
21
2017-06-01T15:55:33.000Z
2022-03-13T08:43:31.000Z
tests/unit_tests/test_scaling.py
AppliedMechanics/AMfeti
be209dffe4d170aca735f1e912fd5cb448502119
[ "BSD-3-Clause" ]
1
2022-01-08T07:20:15.000Z
2022-01-13T23:56:33.000Z
tests/unit_tests/test_scaling.py
AppliedMechanics/AMfeti
be209dffe4d170aca735f1e912fd5cb448502119
[ "BSD-3-Clause" ]
10
2018-01-11T23:48:55.000Z
2022-01-12T15:58:54.000Z
"""Test routines for scaling module""" from unittest import TestCase import numpy as np from numpy.testing import assert_array_almost_equal from scipy.sparse import csr_matrix from amfeti.scaling import MultiplicityScaling from ..tools import CustomDictAssertTest class MultiplicityScalingTest(TestCase): def setU...
64.229008
106
0.334561
728
8,414
3.763736
0.090659
0.062774
0.054745
0.186861
0.7
0.613869
0.475182
0.413869
0.365328
0.297445
0
0.071853
0.520323
8,414
130
107
64.723077
0.607037
0.003803
0
0.173913
0
0
0.095989
0
0
0
0
0
0.043478
1
0.034783
false
0.008696
0.052174
0
0.095652
0
0
0
0
null
0
0
1
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
0
0
0
0
0
2
be0415cd009890d1be04ff42711ff94802a4ac3c
2,232
py
Python
app/models2.py
migot01/Maintraq
4ab547ec3c7cb1bfc3769f3e32a33a82cfa42d0a
[ "MIT" ]
null
null
null
app/models2.py
migot01/Maintraq
4ab547ec3c7cb1bfc3769f3e32a33a82cfa42d0a
[ "MIT" ]
10
2018-05-27T12:15:07.000Z
2019-10-21T16:14:33.000Z
app/models2.py
migot01/Maintraq
4ab547ec3c7cb1bfc3769f3e32a33a82cfa42d0a
[ "MIT" ]
null
null
null
import uuid from werkzeug.security import generate_password_hash, check_password_hash from app.helpers import create_user, check_email,get_title,create_request from datetime import datetime, timedelta import jwt from app import app class User(object): """ """ def __init__(self, email=None, first_name=...
32.347826
89
0.560036
245
2,232
4.967347
0.383673
0.036976
0.018077
0.027938
0.034511
0
0
0
0
0
0
0.003434
0.34767
2,232
68
90
32.823529
0.832418
0.116487
0
0.042553
1
0
0.060274
0
0
0
0
0
0
1
0.106383
false
0.106383
0.12766
0
0.404255
0
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
1
0
0
0
0
0
2
be166920d577cb6b7a00f38baf9ee4eb65550488
274
py
Python
basic/samples/pdf/__init__.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
1
2019-07-25T09:09:54.000Z
2019-07-25T09:09:54.000Z
basic/samples/pdf/__init__.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
null
null
null
basic/samples/pdf/__init__.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: sample Desc : Python操作PDF: 1. 读取内容使用slate 0.4.1(基于PDFMiner),只能用于Python2 2. 各种PDF操作,包括读取内容、合并、分割、旋转、提取页面等等使用PyPDF2 目前最好的做法是使用PDFMiner,安装之后: pdf2txt.py -o pc.txt /home/mango/work/perfect.pdf 然后自己去分享pc.txt文件即可 """
16.117647
49
0.726277
39
274
5.102564
0.974359
0
0
0
0
0
0
0
0
0
0
0.036735
0.105839
274
16
50
17.125
0.77551
0.952555
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
be1c73b73240a55d77edd0360fbbb7c0a71f072d
1,077
py
Python
intro-python/parsing-json/nested_data.py
Truxton-Marley/dne-dna-code
129aefd27c3acca2b4a481448b06818444125b80
[ "MIT" ]
null
null
null
intro-python/parsing-json/nested_data.py
Truxton-Marley/dne-dna-code
129aefd27c3acca2b4a481448b06818444125b80
[ "MIT" ]
null
null
null
intro-python/parsing-json/nested_data.py
Truxton-Marley/dne-dna-code
129aefd27c3acca2b4a481448b06818444125b80
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Working with nested data hands-on exercise / coding challenge.""" import json import os import pprint # Get the absolute path for the directory where this file is located "here" here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, "interfaces.json")) as file: ...
31.676471
80
0.673166
160
1,077
4.45625
0.43125
0.067321
0.036466
0.030856
0.075736
0.075736
0
0
0
0
0
0.005663
0.18013
1,077
34
80
31.676471
0.801812
0.389044
0
0
0
0
0.297214
0.040248
0
0
0
0.029412
0
1
0
false
0
0.214286
0
0.214286
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
2
be2436cd4f2689e0d4337540f5b6b4d721151bcf
370
py
Python
sklearn_protocols/__init__.py
hmasdev/sklearn-protocols
7906dabbd2a1f634fa08b5623cc41a2dc46e3c8d
[ "MIT" ]
null
null
null
sklearn_protocols/__init__.py
hmasdev/sklearn-protocols
7906dabbd2a1f634fa08b5623cc41a2dc46e3c8d
[ "MIT" ]
null
null
null
sklearn_protocols/__init__.py
hmasdev/sklearn-protocols
7906dabbd2a1f634fa08b5623cc41a2dc46e3c8d
[ "MIT" ]
null
null
null
from .model import ( RegressorProtocol, ClassifierProtocol, ClassifierWithPredictProbaProtocol, TransformerProtocol, ClusterProtocol, ) __version__ = "0.0" __all__ = [ RegressorProtocol.__name__, ClassifierProtocol.__name__, ClassifierWithPredictProbaProtocol.__name__, TransformerP...
20.555556
48
0.759459
22
370
11.5
0.545455
0
0
0
0
0
0
0
0
0
0
0.006536
0.172973
370
17
49
21.764706
0.820261
0
0
0
0
0
0.008108
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
be25674c10d076e77faed4b734051c49178e2003
256
py
Python
hsx_01/meiduo_mall/meiduo_mall/apps/goods/urls.py
hsx9527/test01
06cd5886af8707dd3c18da7b96cb0192b5c7e861
[ "MIT" ]
null
null
null
hsx_01/meiduo_mall/meiduo_mall/apps/goods/urls.py
hsx9527/test01
06cd5886af8707dd3c18da7b96cb0192b5c7e861
[ "MIT" ]
7
2021-01-06T20:08:25.000Z
2022-02-27T09:54:45.000Z
hsx_01/meiduo_mall/meiduo_mall/apps/goods/urls.py
hsx9527/test01
06cd5886af8707dd3c18da7b96cb0192b5c7e861
[ "MIT" ]
null
null
null
from django.urls import re_path from .views import * urlpatterns = [ re_path(r'^list/(?P<category_id>\d+)/skus/$', ListView.as_view()), re_path(r'^hot/(?P<category_id>\d+)/$', HotGoodsView.as_view()), # re_path(r'^search/$', MySearchView()), ]
32
70
0.648438
38
256
4.157895
0.578947
0.151899
0.132911
0.151899
0.164557
0
0
0
0
0
0
0
0.121094
256
8
71
32
0.702222
0.148438
0
0
0
0
0.276498
0.276498
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
be2af7291be92c33f0577821e801d821ff916907
1,243
py
Python
kubeflow_batch_predict/dataflow/_aggregators.py
yupbank/batch-predict
0da05ed87e15ad0a89eeccbf42acae0272359324
[ "Apache-2.0" ]
17
2018-10-02T05:16:08.000Z
2022-01-30T10:53:13.000Z
kubeflow_batch_predict/dataflow/_aggregators.py
ggaaooppeenngg/batch-predict
0da05ed87e15ad0a89eeccbf42acae0272359324
[ "Apache-2.0" ]
20
2018-04-30T22:54:20.000Z
2019-07-19T13:56:38.000Z
kubeflow_batch_predict/dataflow/_aggregators.py
ggaaooppeenngg/batch-predict
0da05ed87e15ad0a89eeccbf42acae0272359324
[ "Apache-2.0" ]
10
2018-04-30T21:50:41.000Z
2020-11-27T10:37:39.000Z
# Copyright 2018 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 applicable law or a...
34.527778
79
0.766693
175
1,243
5.394286
0.611429
0.063559
0.060381
0.033898
0
0
0
0
0
0
0
0.007597
0.152856
1,243
35
80
35.514286
0.888889
0.666935
0
0
0
0
0.102094
0.054974
0
0
0
0.028571
0
1
0.142857
false
0
0.142857
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
1
0
0
0
0
0
0
0
1
0
0
2
077801de804bb3835e319add331a064fbf8e9491
282
py
Python
contact/models.py
agiledesign2/django-base-ajax
674101c8a8a49dbf85df88e43a855e1509bea90a
[ "MIT" ]
7
2020-12-12T23:54:55.000Z
2022-01-19T11:37:02.000Z
contact/models.py
agiledesign2/django-base-ajax
674101c8a8a49dbf85df88e43a855e1509bea90a
[ "MIT" ]
7
2020-05-16T09:44:23.000Z
2022-02-10T10:38:18.000Z
contact/models.py
agiledesign2/django-base-ajax
674101c8a8a49dbf85df88e43a855e1509bea90a
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Contact(models.Model): name = models.CharField(max_length = 100) email = models.EmailField() message = models.TextField() timestamp = models.DateTimeField(auto_now_add = True) def __str__(self): return self.name
25.636364
54
0.758865
38
282
5.447368
0.789474
0
0
0
0
0
0
0
0
0
0
0.012346
0.138298
282
11
55
25.636364
0.839506
0.085106
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
0783186d0d640b8ef45a2ec50bbde8f4774e1fa6
1,695
py
Python
chemdataextractor/scrape/__init__.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
6
2019-12-05T17:10:19.000Z
2021-08-10T15:15:10.000Z
chemdataextractor/scrape/__init__.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
null
null
null
chemdataextractor/scrape/__init__.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
2
2020-06-29T06:58:53.000Z
2021-03-21T08:39:36.000Z
# -*- coding: utf-8 -*- """ chemdataextractor.scrape ~~~~~~~~~~~~~~~~~~~~~~~~ Declarative scraping framework for extracting structured data from HTML and XML documents. :copyright: Copyright 2016 by Matt Swain. :license: MIT, see LICENSE file for more details. """ from __future__ import absolute_import from __future...
41.341463
117
0.666667
198
1,695
5.590909
0.767677
0.036134
0.057814
0
0
0
0
0
0
0
0
0.007534
0.138643
1,695
40
118
42.375
0.750685
0.184071
0
0
0
0
0.238165
0
0
0
0
0
0
1
0
false
0
0.521739
0
0.521739
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
07909dd9c158084c4389296bb851051f10acc7f8
948
py
Python
tests/parsing/test_contract_items.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
1
2017-05-06T22:58:13.000Z
2017-05-06T22:58:13.000Z
tests/parsing/test_contract_items.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
null
null
null
tests/parsing/test_contract_items.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
null
null
null
from tests.compat import unittest from tests.utils import make_api_result from evelink.parsing import contract_items as evelink_c class ContractItemsTestCase(unittest.TestCase): def test_parse_contract_items(self): api_result, _, _ = make_api_result("char/contract_items.xml") result = evelink_c.pa...
52.666667
121
0.647679
109
948
5.422018
0.449541
0.050761
0.186125
0.182741
0.230118
0.13198
0.13198
0.13198
0
0
0
0.106771
0.189873
948
17
122
55.764706
0.66276
0
0
0
0
0
0.242872
0.024287
0
0
0
0
0.071429
1
0.071429
false
0
0.214286
0
0.357143
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
0798c1d8c8cbcc78a14fb67a7ec6b14e2d1cf763
2,419
py
Python
newest/state.py
larsjsol/Newest
a4d49f4a492453d8042d981d097dcd1c4cd1798a
[ "MIT" ]
null
null
null
newest/state.py
larsjsol/Newest
a4d49f4a492453d8042d981d097dcd1c4cd1798a
[ "MIT" ]
null
null
null
newest/state.py
larsjsol/Newest
a4d49f4a492453d8042d981d097dcd1c4cd1798a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from datetime import datetime, timezone from zmq.utils.jsonapi import dumps, loads from dateutil.parser import parser class State: """ The current known state of software versions. """ protocol_version = (0, 1) def __init__(self): self.software_versions = {} de...
32.689189
106
0.639107
291
2,419
5.116838
0.32646
0.08865
0.053727
0.034251
0.189389
0.116857
0
0
0
0
0
0.001106
0.25217
2,419
73
107
33.136986
0.822001
0.220752
0
0.054054
0
0
0.1062
0
0
0
0
0
0
1
0.216216
false
0
0.081081
0.054054
0.513514
0
0
0
0
null
0
0
0
0
0
0
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
0799064b62c2275fe1b55d9f4ed4af93f65bbe09
8,563
py
Python
proxylist/base.py
lorien/proxylist
7d078fcd5d82a8aa45d9849d7a75335f27b8f7bf
[ "MIT" ]
15
2015-10-08T18:08:29.000Z
2022-03-02T17:58:42.000Z
proxylist/base.py
lorien/proxylist
7d078fcd5d82a8aa45d9849d7a75335f27b8f7bf
[ "MIT" ]
1
2020-01-25T18:11:15.000Z
2020-01-26T12:17:24.000Z
proxylist/base.py
lorien/proxylist
7d078fcd5d82a8aa45d9849d7a75335f27b8f7bf
[ "MIT" ]
11
2015-10-16T14:13:06.000Z
2020-06-12T13:45:59.000Z
""" Module to load proxy list and select/rotate proxies from it. """ from __future__ import absolute_import import re import itertools import logging from random import randint import six from six.moves.urllib.request import urlopen __all__ = ('Proxy', 'InvalidProxyLine', 'FileProxySource', 'WebProxySource'...
30.365248
78
0.588929
1,022
8,563
4.748532
0.188845
0.025963
0.016073
0.029672
0.174943
0.115393
0.073975
0.037503
0.017721
0
0
0.001852
0.306435
8,563
281
79
30.47331
0.815289
0.127759
0
0.173267
0
0
0.101589
0.004228
0
0
0
0.010676
0.004951
1
0.148515
false
0.069307
0.034653
0.034653
0.326733
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
07a03fb145604472b82a3c923653a7dffcd6b60c
12,805
py
Python
dagobah/daemon/api.py
usertesting/dagobah
a60f921900f68708d19c68227349081d31737cd6
[ "WTFPL" ]
574
2015-01-01T23:43:17.000Z
2022-03-29T13:15:57.000Z
dagobah/daemon/api.py
yutiansut/dagobah
e624180c2291034960302c9e0b818b65b5a7ee11
[ "WTFPL" ]
72
2015-01-09T22:10:52.000Z
2020-10-06T05:13:06.000Z
dagobah/daemon/api.py
yutiansut/dagobah
e624180c2291034960302c9e0b818b65b5a7ee11
[ "WTFPL" ]
157
2015-01-04T02:40:50.000Z
2021-12-20T08:13:22.000Z
""" HTTP API methods for Dagobah daemon. """ import StringIO import json from flask import request, abort, send_file from flask_login import login_required from .daemon import app from .util import validate_dict, api_call, allowed_file dagobah = app.config['dagobah'] @app.route('/api/jobs', methods=['GET']) @login...
26.456612
78
0.552284
1,567
12,805
4.271857
0.068283
0.078428
0.047655
0.083657
0.734389
0.709591
0.703167
0.672393
0.550941
0.513295
0
0.012066
0.31394
12,805
483
79
26.511387
0.749915
0.00859
0
0.658031
0
0
0.119335
0.010326
0
0
0
0
0
1
0.07513
false
0
0.020725
0.005181
0.11658
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07a24619073ef83553511b2ec9964a1d2db5833d
185
py
Python
src/check.py
AnnFernandes/Handwritten-Line-Text-Recognition-using-Deep-Learning-with-Tensorflow
f04dc4a9c57eb50228dead30cf5bd414ecb8606d
[ "Apache-2.0" ]
1
2019-11-29T07:10:05.000Z
2019-11-29T07:10:05.000Z
src/check.py
AnnFernandes/Handwritten-Line-Text-Recognition-using-Deep-Learning-with-Tensorflow
f04dc4a9c57eb50228dead30cf5bd414ecb8606d
[ "Apache-2.0" ]
null
null
null
src/check.py
AnnFernandes/Handwritten-Line-Text-Recognition-using-Deep-Learning-with-Tensorflow
f04dc4a9c57eb50228dead30cf5bd414ecb8606d
[ "Apache-2.0" ]
null
null
null
import numpy as np batch_size = 10 img_size = (800, 64) random_matrix = np.random.random((batch_size, img_size[0], img_size[1])) print(random_matrix) print(random_matrix.shape)
23.125
73
0.735135
31
185
4.129032
0.516129
0.164063
0.265625
0
0
0
0
0
0
0
0
0.056604
0.140541
185
8
74
23.125
0.748428
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
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
07bcdd6e0b82c5c3cdc6e0362b69c6492c13915f
26,852
py
Python
demo/apm.py
kingdavid72/APMonitor
e03760f196a25f77c7c73082d1db652fac0b3a01
[ "BSD-2-Clause-FreeBSD" ]
4
2020-05-19T06:23:39.000Z
2022-02-19T17:42:17.000Z
apm.py
KGkiotsalitis/bus-dispatching-in-rolling-horizons
22594644615519e6ef62cfb83ffca1e51e8238cb
[ "MIT" ]
1
2019-12-19T01:28:28.000Z
2019-12-19T19:13:13.000Z
apm.py
KGkiotsalitis/bus-dispatching-in-rolling-horizons
22594644615519e6ef62cfb83ffca1e51e8238cb
[ "MIT" ]
9
2018-05-19T06:15:19.000Z
2022-02-19T17:42:35.000Z
# Import import csv import math import os import random import string import time import webbrowser from contextlib import closing import sys # Get Python version ver = sys.version_info[0] #print('Version: '+str(ver)) if ver==2: # Python 2 import urllib else: # Python 3+ import urll...
34.918075
102
0.492217
3,094
26,852
4.215902
0.120233
0.032429
0.030052
0.034345
0.724164
0.711898
0.694036
0.692502
0.686906
0.683839
0
0.00565
0.393602
26,852
768
103
34.963542
0.795431
0.295769
0
0.682327
0
0
0.059454
0.001417
0.004474
0
0
0
0
1
0.080537
false
0.002237
0.038031
0
0.201342
0.022371
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
07d1558589e5d512ae52b3ee99c9ad6abb644a8f
662
py
Python
main.py
curi0sity-97/photo-organizer
f8429895aded24288e672935dfb8821ea830b755
[ "MIT" ]
null
null
null
main.py
curi0sity-97/photo-organizer
f8429895aded24288e672935dfb8821ea830b755
[ "MIT" ]
null
null
null
main.py
curi0sity-97/photo-organizer
f8429895aded24288e672935dfb8821ea830b755
[ "MIT" ]
null
null
null
from library_organizer import read_google_photos, read_manifest, retrieve_metadata, check_manifest_result,\ update_google_photos_images def perform_sync(): tcur = datetime.now() manifest = read_manifest() check_manifest_result(manifest) update_google_photos_images(manifest) # update_google...
26.48
109
0.725076
82
662
5.45122
0.54878
0.134228
0.120805
0.161074
0.143177
0
0
0
0
0
0
0
0.167674
662
25
110
26.48
0.811252
0.043807
0
0
0
0
0.200949
0.03481
0
0
0
0
0
1
0.071429
false
0.071429
0.071429
0
0.142857
0.071429
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
1
0
0
0
0
0
2
07d1e77455ad008f2c005cb8255a63809b3d7143
491
py
Python
stepper/sample.py
kotaproj/esp32mpy_recipe
104cb1eae31da37c9b80f2afaedc4964c1ed80a1
[ "MIT" ]
null
null
null
stepper/sample.py
kotaproj/esp32mpy_recipe
104cb1eae31da37c9b80f2afaedc4964c1ed80a1
[ "MIT" ]
null
null
null
stepper/sample.py
kotaproj/esp32mpy_recipe
104cb1eae31da37c9b80f2afaedc4964c1ed80a1
[ "MIT" ]
null
null
null
from step import Stepper MOTOR_STEPS = (2048) PIN_MOTOR_1 = (27) PIN_MOTOR_2 = (26) PIN_MOTOR_3 = (25) PIN_MOTOR_4 = (23) my_motor = Stepper(MOTOR_STEPS, PIN_MOTOR_1, PIN_MOTOR_2, PIN_MOTOR_3, PIN_MOTOR_4) for i in range(50, 150, 1): my_motor.set_speed(i/10) my_motor.step(16) for i in ran...
20.458333
57
0.653768
92
491
3.173913
0.315217
0.219178
0.188356
0.075342
0.328767
0.219178
0.219178
0.219178
0.219178
0.219178
0
0.138817
0.207739
491
23
58
21.347826
0.611825
0.183299
0
0.142857
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07d2be1fb5a87545db15dc58708c9e47001aeaa6
2,398
py
Python
pyutils/utils.py
eltrompetero/innovation
b59617f5f1486d7f4caf620192d5e8d95cf30f7f
[ "MIT" ]
null
null
null
pyutils/utils.py
eltrompetero/innovation
b59617f5f1486d7f4caf620192d5e8d95cf30f7f
[ "MIT" ]
null
null
null
pyutils/utils.py
eltrompetero/innovation
b59617f5f1486d7f4caf620192d5e8d95cf30f7f
[ "MIT" ]
null
null
null
# ====================================================================================== # # Useful functions for analyzing corp data. # Author: Eddie Lee, edlee@santafe.edu # ====================================================================================== # import numpy as np import pandas as pd from fastparquet...
25.510638
93
0.580067
309
2,398
4.459547
0.449838
0.021771
0.029028
0.033382
0.037736
0
0
0
0
0
0
0.013845
0.216847
2,398
93
94
25.784946
0.719915
0.338616
0
0
0
0
0.066197
0.03169
0
0
0
0
0
1
0.147059
false
0
0.352941
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
07e1f6d0e70a1b0820307cb8de189d553654f9df
3,322
py
Python
shoppingcart/shoppingcart_pb2_grpc.py
sleipnir/python-support
f70ad028ba509956290b2af5f8f19716de85109c
[ "Apache-2.0" ]
1
2021-08-21T20:40:32.000Z
2021-08-21T20:40:32.000Z
shoppingcart/shoppingcart_pb2_grpc.py
eigr/functions-python-sdk
d057b67235edb0feb505db2bde60022d958d1209
[ "Apache-2.0" ]
null
null
null
shoppingcart/shoppingcart_pb2_grpc.py
eigr/functions-python-sdk
d057b67235edb0feb505db2bde60022d958d1209
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from shoppingcart import shoppingcart_pb2 as shoppingcart_dot_shoppingcart__pb2 class ShoppingCartStub(object): # missing associated documentation comment in...
40.512195
96
0.770921
350
3,322
6.974286
0.208571
0.06145
0.099549
0.11061
0.730848
0.661204
0.531749
0.422368
0.422368
0.422368
0
0.005722
0.158338
3,322
81
97
41.012346
0.86731
0.118904
0
0.355932
1
0
0.11712
0.061316
0
0
0
0
0
1
0.084746
false
0.084746
0.050847
0
0.169492
0
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
1
0
0
0
0
0
2
07e5cd3c32c3092a11151e5ae35e09273c3d0465
593
py
Python
naiads/utils/Utils.py
royarzun/clara-std-services
4130c59105d3d2171839c67b83952099df8e84c9
[ "MIT" ]
null
null
null
naiads/utils/Utils.py
royarzun/clara-std-services
4130c59105d3d2171839c67b83952099df8e84c9
[ "MIT" ]
2
2016-08-10T03:35:48.000Z
2016-08-18T22:26:33.000Z
naiads/utils/Utils.py
royarzun/clara-std-services
4130c59105d3d2171839c67b83952099df8e84c9
[ "MIT" ]
null
null
null
# coding=utf-8 import os from array import array from time import strftime def convert_to_root_array(list_array): return array('d', list_array) def create_filename(path, filename): timestamp_str = strftime("%Y%m%d%H%M%S") return path + filename + "_" + timestamp_str + ".root" def get_limits(list_arra...
22.807692
58
0.684654
90
593
4.333333
0.511111
0.115385
0.076923
0.123077
0
0
0
0
0
0
0
0.006186
0.182125
593
25
59
23.72
0.797938
0.020236
0
0
0
0
0.088083
0
0
0
0
0
0
1
0.266667
false
0
0.2
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
1
0
0
0
1
0
0
0
2
07f7499762c3d28f2130a0d2cd3c7f668a6eac70
498
py
Python
examples/distilling/evaluation/project_verification/build_indexing.py
liuxianming/DistillingCaffe
2dec7f33c1873c4edc1068602d282982df1f18f4
[ "BSD-2-Clause" ]
null
null
null
examples/distilling/evaluation/project_verification/build_indexing.py
liuxianming/DistillingCaffe
2dec7f33c1873c4edc1068602d282982df1f18f4
[ "BSD-2-Clause" ]
null
null
null
examples/distilling/evaluation/project_verification/build_indexing.py
liuxianming/DistillingCaffe
2dec7f33c1873c4edc1068602d282982df1f18f4
[ "BSD-2-Clause" ]
null
null
null
"""Build indexing using extracted features """ import numpy as np import os, os.path import pickle import scipy.spatial from scipy.spatial.distance import pdist, squareform """Build index Given feature matrix feature_mat, k is the number of nearest neighbors to choose """ def build_index(feature_mat, k): sample_c...
24.9
57
0.7249
73
498
4.794521
0.616438
0.114286
0.062857
0
0
0
0
0
0
0
0
0.002445
0.178715
498
19
58
26.210526
0.853301
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.454545
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
07fff66e2a8f927700edc89e64e3a79dc4a1617d
2,138
py
Python
Chapter09/state_2.py
shoshan/Clean-Code-in-Python
8f436223912f8bc80029f2393440665e56dbba07
[ "MIT" ]
402
2018-08-19T03:09:40.000Z
2022-03-30T08:10:26.000Z
Chapter09/state_2.py
shoshan/Clean-Code-in-Python
8f436223912f8bc80029f2393440665e56dbba07
[ "MIT" ]
3
2019-01-29T20:36:28.000Z
2022-03-02T02:16:23.000Z
Chapter09/state_2.py
shoshan/Clean-Code-in-Python
8f436223912f8bc80029f2393440665e56dbba07
[ "MIT" ]
140
2018-09-16T05:47:46.000Z
2022-03-31T03:20:30.000Z
"""Clean Code in Python - Chapter 9: Common Design Patterns > State """ import abc from log import logger from state_1 import InvalidTransitionError class MergeRequestState(abc.ABC): def __init__(self, merge_request): self._merge_request = merge_request @abc.abstractmethod def open(self): ...
22.989247
77
0.655753
247
2,138
5.412955
0.234818
0.107704
0.119671
0.062827
0.173523
0.173523
0.080778
0
0
0
0
0.003096
0.244621
2,138
92
78
23.23913
0.824768
0.044434
0
0.433333
0
0
0.085884
0.020237
0
0
0
0
0
1
0.333333
false
0
0.05
0.083333
0.55
0
0
0
0
null
0
0
0
0
0
0
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
5800e208f1e9ec00c4c099cbdaf7aa9c1fa7907c
466
py
Python
krit/invitations/receivers.py
huroncg/krit-teams
ce96a49de44496c2f86e37dd917c51952fbbdeed
[ "BSD-3-Clause" ]
null
null
null
krit/invitations/receivers.py
huroncg/krit-teams
ce96a49de44496c2f86e37dd917c51952fbbdeed
[ "BSD-3-Clause" ]
null
null
null
krit/invitations/receivers.py
huroncg/krit-teams
ce96a49de44496c2f86e37dd917c51952fbbdeed
[ "BSD-3-Clause" ]
1
2021-02-26T01:38:35.000Z
2021-02-26T01:38:35.000Z
from django.dispatch import receiver from krit.registration.models import SignupCodeResult from krit.registration.signals import signup_code_used from .models import Invitation @receiver(signup_code_used, sender=SignupCodeResult) def handle_signup_code_used(sender, **kwargs): result = kwargs.get("signup_code_res...
29.125
54
0.776824
56
466
6.285714
0.482143
0.142045
0.119318
0.113636
0
0
0
0
0
0
0
0
0.152361
466
15
55
31.066667
0.891139
0
0
0
0
0
0.038627
0
0
0
0
0
0
1
0.083333
false
0.083333
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
5802cb215113b30bc3106aadab0eeadc6de0e616
21,297
py
Python
tests/type/test_predicate.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
tests/type/test_predicate.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
tests/type/test_predicate.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
from pytest import raises # type: ignore from graphql.language import DirectiveLocation from graphql.type import ( GraphQLArgument, GraphQLDeprecatedDirective, GraphQLBoolean, GraphQLDirective, GraphQLEnumType, GraphQLFloat, GraphQLID, GraphQLIncludeDirective, GraphQLInputField, ...
39.659218
87
0.681927
2,301
21,297
5.8505
0.049544
0.05289
0.046798
0.056158
0.696108
0.531496
0.392587
0.246249
0.141287
0.014708
0
0.001014
0.259285
21,297
536
88
39.733209
0.852361
0.000563
0
0.126411
0
0
0.006249
0
0
0
0
0
0.510158
1
0.241535
false
0
0.006772
0
0.248307
0
0
0
0
null
0
0
0
0
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
1
0
0
0
0
0
0
0
2
6af81b43f58a6e1bffafb616654f3b0c80ca1ba0
12,137
py
Python
airbyte-integrations/connectors/source-google-analytics-v4/unit_tests/unit_test.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/source-google-analytics-v4/unit_tests/unit_test.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
5
2022-02-22T14:49:48.000Z
2022-03-19T10:43:08.000Z
airbyte-integrations/connectors/source-google-analytics-v4/unit_tests/unit_test.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import json import logging from pathlib import Path from unittest.mock import MagicMock, patch from urllib.parse import unquote import pendulum import pytest from airbyte_cdk.models import ConfiguredAirbyteCatalog from airbyte_cdk.sources.streams.http.auth ...
35.908284
139
0.744006
1,557
12,137
5.441233
0.145793
0.047214
0.028329
0.038362
0.770066
0.729698
0.683074
0.65085
0.65085
0.642115
0
0.007497
0.153745
12,137
337
140
36.014837
0.81735
0.070611
0
0.59387
0
0.007663
0.212414
0.054915
0
0
0
0
0.157088
1
0.088123
false
0.003831
0.042146
0
0.137931
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
6afde18a959ce6ca0da861f708621da744f7a487
828
py
Python
mandala/all.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
9
2022-02-22T19:24:01.000Z
2022-03-23T04:46:41.000Z
mandala/all.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
mandala/all.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
import typing from .core.utils import CompatArg, AsType, AsTransient, AsDelayedStorage, Mut, Skip, Mark from .core.bases import unwrap, detached from .core.config import CoreConfig from .core.wrap import wrap_detached from .storages.kv_impl.sqlite_impl import SQLiteStorage from .storages.kv_impl.joblib_impl import Jobl...
37.636364
89
0.815217
115
828
5.782609
0.504348
0.045113
0.042105
0.054135
0.078195
0
0
0
0
0
0
0
0.114734
828
21
90
39.428571
0.907231
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.8
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
0
0
0
1
0
1
0
0
2
ed056decfe224db19bed102a648393e902392ba5
391
py
Python
halo_bian/bian/domain/event.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
halo_bian/bian/domain/event.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
halo_bian/bian/domain/event.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
import uuid from halo_app.domain.event import AbsHaloEvent from halo_bian.bian.app.context import BianContext from halo_bian.bian.bian import ActionTerms class AbsBianEvent(AbsHaloEvent): action_term = None def __init__(self, context:BianContext,name:str,action_term:ActionTerms): super(AbsBianEvent...
24.4375
77
0.780051
51
391
5.686275
0.45098
0.137931
0.082759
0.110345
0
0
0
0
0
0
0
0
0.14578
391
15
78
26.066667
0.868263
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.444444
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
ed0b5866a5e35e7e83e13af79731c62bee8aaaed
249
py
Python
unnecessary_math.py
MarioRguezz/ISOExposition
8300268355a41afb41ce1d7aa527203008c37cc8
[ "Apache-2.0" ]
null
null
null
unnecessary_math.py
MarioRguezz/ISOExposition
8300268355a41afb41ce1d7aa527203008c37cc8
[ "Apache-2.0" ]
null
null
null
unnecessary_math.py
MarioRguezz/ISOExposition
8300268355a41afb41ce1d7aa527203008c37cc8
[ "Apache-2.0" ]
null
null
null
''' La función muestra como el código se ejecuta, qué espera y cuál es su salida. En caso de que no coincida, la prueba fallará ''' def multiply(a, b): """ >>> multiply(4, 3) 12 >>> multiply('a', 3) 'aaa' """ return a * b
20.75
92
0.574297
39
249
3.666667
0.820513
0.125874
0
0
0
0
0
0
0
0
0
0.027933
0.281125
249
12
93
20.75
0.77095
0.690763
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ed0f26876e0fd5437d37b574e27eba0cead983b1
1,373
py
Python
pyllars/sparse_vector.py
bmmalone/pyllars
e37c2bd6fba91a587e54f0bc6a456cee050a6d00
[ "MIT" ]
3
2020-04-19T15:22:43.000Z
2022-01-05T16:06:50.000Z
pyllars/sparse_vector.py
bmmalone/pyllars
e37c2bd6fba91a587e54f0bc6a456cee050a6d00
[ "MIT" ]
19
2018-12-29T13:59:39.000Z
2021-07-22T11:53:23.000Z
pyllars/sparse_vector.py
bmmalone/pymisc-utils
a1000824623d7db4873836864c14b830cc81aeed
[ "MIT" ]
null
null
null
""" This class is a thin wrapper around scipy.sparse.lil_matrix to reduce the notational burden when dealing with sparse vectors. Internally, they are simply stored as sparse matrices. By default, the sparse vectors are created as integer row matrices. The scipy.sparse.lil_matrix representation is used. THIS CLASS HA...
29.212766
84
0.622724
174
1,373
4.712644
0.436782
0.053659
0.05122
0.073171
0.080488
0.080488
0.080488
0.080488
0
0
0
0.004137
0.295703
1,373
46
85
29.847826
0.843847
0.547706
0
0
0
0
0
0
0
0
0
0
0
1
0.4
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
ed14bae8e800f94eaee259b21f08df06cf533069
782
py
Python
Back-end/iot_smart_home/accounts/migrations/0002_alter_contractor_resume_and_more.py
sepahanit/IOT-SMARTHOME-IUT
9a86ea8fff870ea147c6efd60745e19a289d0d4e
[ "MIT" ]
1
2022-01-29T22:57:26.000Z
2022-01-29T22:57:26.000Z
Back-end/iot_smart_home/accounts/migrations/0002_alter_contractor_resume_and_more.py
erfanbahrami/iot-smart-home-api
068c5ee077e9b3a1cb0969009e80405a26d2021b
[ "MIT" ]
null
null
null
Back-end/iot_smart_home/accounts/migrations/0002_alter_contractor_resume_and_more.py
erfanbahrami/iot-smart-home-api
068c5ee077e9b3a1cb0969009e80405a26d2021b
[ "MIT" ]
2
2022-01-27T09:15:19.000Z
2022-01-30T20:57:43.000Z
# Generated by Django 4.0.1 on 2022-01-13 17:16 from django.db import migrations import django_bleach.models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='contractor', nam...
26.066667
74
0.597187
78
782
5.858974
0.512821
0.105033
0.157549
0.190372
0.568928
0.568928
0.444201
0.350109
0.350109
0.350109
0
0.034296
0.29156
782
29
75
26.965517
0.790614
0.057545
0
0.434783
1
0
0.102041
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
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
ed1c39f973097676df05e0114f0a0bf76361532f
3,271
py
Python
PhdTesterExample/phdTesterExample/models.py
Koldar/phdTester
b9eddc33409869fa327eef20dd0c05b336a71d97
[ "MIT" ]
1
2019-07-09T17:30:49.000Z
2019-07-09T17:30:49.000Z
PhdTesterExample/phdTesterExample/models.py
Koldar/phdTester
b9eddc33409869fa327eef20dd0c05b336a71d97
[ "MIT" ]
145
2019-05-22T17:22:50.000Z
2021-02-10T02:25:05.000Z
PhdTesterExample/phdTesterExample/models.py
Koldar/phdTester
b9eddc33409869fa327eef20dd0c05b336a71d97
[ "MIT" ]
null
null
null
from typing import Dict import string_utils import phdTester as phd class SortTestContext(phd.AbstractTestContext): def __init__(self, ut: "SortAlgorithm" = None, te: "SortEnvironment" = None): super().__init__(ut, te) @property def ut(self) -> "SortAlgorithm": return self._ut @pr...
26.811475
124
0.638337
323
3,271
6.219814
0.219814
0.059731
0.043803
0.041812
0.170234
0.134395
0.131409
0.102539
0.038825
0
0
0
0.244879
3,271
121
125
27.033058
0.81336
0.152858
0
0.262295
0
0.016393
0.115118
0.046995
0
0
0
0
0
1
0.229508
false
0
0.04918
0.098361
0.508197
0
0
0
0
null
0
0
0
0
0
0
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
ed1dd2c09eb6b1500a5c2ec26b7d25a4d8bde913
1,589
py
Python
tests/pyxl_original/test_errors.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
tests/pyxl_original/test_errors.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
tests/pyxl_original/test_errors.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
# coding: mixt import pytest from mixt.codec.register import pyxl_decode from mixt.exceptions import ParserError def test_malformed_if(): with pytest.raises(ParserError): pyxl_decode(b""" <Fragment> <if cond="{true}">foo</if> this is incorrect! ...
25.629032
52
0.499056
163
1,589
4.723926
0.202454
0.103896
0.145455
0.245455
0.622078
0.622078
0.622078
0.562338
0.562338
0.562338
0
0
0.348647
1,589
61
53
26.04918
0.743961
0.007552
0
0.68
0
0
0.537143
0.074286
0
0
0
0
0
1
0.12
true
0
0.06
0
0.18
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
1
0
0
0
0
0
0
2
ed25e613d23cb8d2d264542f6b5ae8f44bf1adf0
25,550
py
Python
sdk/python/pulumi_azure_native/certificateregistration/v20200601/app_service_certificate_order.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/certificateregistration/v20200601/app_service_certificate_order.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/certificateregistration/v20200601/app_service_certificate_order.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
43.900344
2,081
0.658395
2,696
25,550
5.914318
0.083086
0.069677
0.064346
0.042897
0.746943
0.647538
0.575353
0.450298
0.415303
0.362935
0
0.009114
0.231311
25,550
581
2,082
43.975904
0.802749
0.170568
0
0.46281
1
0
0.206009
0.136423
0
0
0
0
0
1
0.14876
false
0.002755
0.022039
0
0.278237
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
ed32f0ac7ceafd4f8aabdbb9f27efe91014c9553
216
py
Python
discord_data/common.py
seanbreckenridge/discord_data
92a71f4362567a39b7d41b81702c07868a85f182
[ "Apache-2.0" ]
6
2020-10-27T01:23:01.000Z
2021-10-02T21:27:47.000Z
discord_data/common.py
seanbreckenridge/discord_data
92a71f4362567a39b7d41b81702c07868a85f182
[ "Apache-2.0" ]
3
2021-03-20T04:32:06.000Z
2022-02-10T04:28:22.000Z
discord_data/common.py
seanbreckenridge/discord_data
92a71f4362567a39b7d41b81702c07868a85f182
[ "Apache-2.0" ]
1
2021-10-02T23:52:21.000Z
2021-10-02T23:52:21.000Z
from typing import Union from pathlib import Path PathIsh = Union[str, Path] def expand_path(path: PathIsh) -> Path: if isinstance(path, str): path = Path(path) return path.expanduser().absolute()
19.636364
39
0.689815
29
216
5.103448
0.517241
0.162162
0
0
0
0
0
0
0
0
0
0
0.203704
216
10
40
21.6
0.860465
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
ed456a3edcb26f25ba9644d33b232d93aaa7ed8e
1,379
py
Python
examples/chanlun/feature/03/ex_setup_commands.py
garywangiam02/vnpy
fbb168bf977d95ae874e92a3655c6c893db16a1f
[ "MIT" ]
null
null
null
examples/chanlun/feature/03/ex_setup_commands.py
garywangiam02/vnpy
fbb168bf977d95ae874e92a3655c6c893db16a1f
[ "MIT" ]
null
null
null
examples/chanlun/feature/03/ex_setup_commands.py
garywangiam02/vnpy
fbb168bf977d95ae874e92a3655c6c893db16a1f
[ "MIT" ]
null
null
null
# coding=utf-8 from pytdx.parser.base import BaseParser from pytdx.helper import get_datetime, get_volume, get_price from collections import OrderedDict import struct class ExSetupCmd1(BaseParser): def setup(self): # self.send_pkg = bytearray.fromhex("01 01 48 65 00 01 52 00 52 00 54 24 1f 32 c6 e5" ...
53.038462
97
0.460479
231
1,379
2.722944
0.454545
0.069952
0.104928
0.139905
0.441971
0.441971
0.441971
0.441971
0.416534
0.416534
0
0.333333
0.497462
1,379
25
98
55.16
0.574315
0.373459
0
0
0
0
0.315421
0
0
0
0
0
0
1
0.142857
false
0.071429
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
ed4fbfac36b74f5d9d3d7d151dd4dfd5ee7c227f
3,635
py
Python
SMT2/Torres/torres.py
luispozas/PR
34a36ec09d9a1bc9f5cc99882243da5f453c24e8
[ "MIT" ]
1
2021-06-06T18:28:48.000Z
2021-06-06T18:28:48.000Z
SMT2/Torres/torres.py
luispozas/PR
34a36ec09d9a1bc9f5cc99882243da5f453c24e8
[ "MIT" ]
null
null
null
SMT2/Torres/torres.py
luispozas/PR
34a36ec09d9a1bc9f5cc99882243da5f453c24e8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys # altura : altura de la torre # disp : piezas disponibles # Colores: Azul = 0, Rojo = 1 , Verde = 2; altura = int(input()) disp1 = input().split() disp = [] for i in range(len(disp1)): disp.append(int(disp1[i])) def torre (i): return "torre_"+str(i) def setlogic(l): return...
25.068966
92
0.569739
542
3,635
3.804428
0.230627
0.052376
0.023278
0.038797
0.359845
0.309893
0.170223
0.130941
0.109602
0.031038
0
0.037651
0.203576
3,635
144
93
25.243056
0.674611
0.310316
0
0.193182
0
0
0.092416
0
0
0
0
0.006944
0.102273
1
0.215909
false
0
0.011364
0.159091
0.454545
0.147727
0
0
0
null
0
0
0
0
0
0
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
ed56b039382be2171b9d6d37154bb3ffcaf1cb4c
351
py
Python
openproblems/api/load.py
dburkhardt/SingleCellOpenProblems
ce792172085e7d2cdf1ec6a40d2f5b55179b4062
[ "MIT" ]
134
2020-08-19T07:35:56.000Z
2021-05-19T11:37:50.000Z
openproblems/api/load.py
dburkhardt/SingleCellOpenProblems
ce792172085e7d2cdf1ec6a40d2f5b55179b4062
[ "MIT" ]
175
2020-08-17T15:26:06.000Z
2021-05-14T11:03:46.000Z
openproblems/api/load.py
LuckyMD/SingleCellOpenProblems
0ae39db494557e1dd9f28e59dda765527191eee1
[ "MIT" ]
46
2020-10-08T21:11:37.000Z
2021-04-25T07:05:28.000Z
from . import utils def load_dataset(task_name, function_name, test): """Load a dataset for a task.""" fun = utils.get_function(task_name, "datasets", function_name) return fun(test=test) def main(args): """Run the ``load`` subcommand.""" adata = load_dataset(args.task, args.name, args.test) ...
25.071429
66
0.683761
51
351
4.54902
0.490196
0.094828
0
0
0
0
0
0
0
0
0
0.003448
0.173789
351
13
67
27
0.796552
0.156695
0
0
0
0
0.02807
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
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
ed5a5fdba5687f084b8f6076c72c34c46a95181f
214
py
Python
prof_mod.py
VandyChris/PythonForDataAnalysis
9bd39b16be746cf909953ac8ac21ce0b4e203a8f
[ "MIT" ]
null
null
null
prof_mod.py
VandyChris/PythonForDataAnalysis
9bd39b16be746cf909953ac8ac21ce0b4e203a8f
[ "MIT" ]
null
null
null
prof_mod.py
VandyChris/PythonForDataAnalysis
9bd39b16be746cf909953ac8ac21ce0b4e203a8f
[ "MIT" ]
null
null
null
from numpy.random import randn def add_and_sum(x, y): added = x + y summed = added.sum(axis=1) return summed def call_function(): x = randn(1000, 1000) y = randn(1000, 1000) return add_and_sum(x, y)
21.4
31
0.668224
38
214
3.631579
0.5
0.043478
0.130435
0.144928
0.15942
0
0
0
0
0
0
0.100592
0.21028
214
10
32
21.4
0.715976
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ed6172ae663ce1e852ba416427de6ef1d2fcaf2e
1,980
py
Python
pytorch_lightning/plugins/environments/cluster_environment.py
GabrielePicco/pytorch-lightning
0d6dfd42d8965347a258e3d20e83bddd344e718f
[ "Apache-2.0" ]
4
2021-07-27T14:39:02.000Z
2022-03-07T10:57:13.000Z
pytorch_lightning/plugins/environments/cluster_environment.py
GabrielePicco/pytorch-lightning
0d6dfd42d8965347a258e3d20e83bddd344e718f
[ "Apache-2.0" ]
2
2021-07-03T07:07:32.000Z
2022-03-10T16:07:20.000Z
pytorch_lightning/plugins/environments/cluster_environment.py
GabrielePicco/pytorch-lightning
0d6dfd42d8965347a258e3d20e83bddd344e718f
[ "Apache-2.0" ]
1
2022-01-08T14:06:27.000Z
2022-01-08T14:06:27.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
33.559322
103
0.683333
258
1,980
5.20155
0.46124
0.114009
0.029806
0.031297
0.138599
0.09687
0.09687
0.09687
0.076006
0.076006
0
0.00262
0.228788
1,980
58
104
34.137931
0.876228
0.581313
0
0.5
0
0
0
0
0
0
0
0
0
1
0.416667
false
0.125
0.041667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ed6b2ff9b3d95cfb8e1e5129c3d883adf4da5782
385
py
Python
md_translate/utils.py
ilyachch/docs-trans-app
fd91ab6fdf6b718be61c0559836d708223ce9280
[ "MIT" ]
10
2020-01-01T13:40:32.000Z
2021-08-21T07:56:35.000Z
md_translate/utils.py
ilyachch/docs-trans-app
fd91ab6fdf6b718be61c0559836d708223ce9280
[ "MIT" ]
13
2019-05-15T06:36:09.000Z
2021-09-25T23:47:37.000Z
md_translate/utils.py
ilyachch/docs-trans-app
fd91ab6fdf6b718be61c0559836d708223ce9280
[ "MIT" ]
4
2019-10-08T06:27:46.000Z
2021-06-03T08:51:05.000Z
from translators import apis # type: ignore from md_translate import const from md_translate.exceptions import UnknownServiceError def get_translator_by_service_name(service_name: str) -> apis.Tse: translator_class = const.TRANSLATOR_BY_SERVICE_NAME.get(service_name) if translator_class is None: rai...
32.083333
73
0.81039
50
385
5.94
0.5
0.185185
0.10101
0.154882
0
0
0
0
0
0
0
0
0.142857
385
11
74
35
0.9
0.031169
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ed6f7ec4b4c2a6ec29f71b484b7e9c4b157de8f6
1,715
py
Python
spark_auto_mapper_fhir/value_sets/precision_estimate_type.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/precision_estimate_type.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/precision_estimate_type.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
34.3
88
0.753936
178
1,715
7.117978
0.426966
0.082873
0.099448
0.116022
0.394633
0.358327
0.358327
0.358327
0.276243
0.276243
0
0.005491
0.150437
1,715
49
89
35
0.864104
0.253061
0
0
0
0
0.088945
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ed7820073c1921ab0b6afce373215376f5e0e213
15,907
py
Python
Project4/views_templates.py
sockduct/Udacity-FSND
565db445652b0da41f251047cf34233c5e6146b9
[ "MIT" ]
null
null
null
Project4/views_templates.py
sockduct/Udacity-FSND
565db445652b0da41f251047cf34233c5e6146b9
[ "MIT" ]
null
null
null
Project4/views_templates.py
sockduct/Udacity-FSND
565db445652b0da41f251047cf34233c5e6146b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: ascii -*- ################################################################################################### # # Python version(s) used/tested: # * Python 2.7.12-32 on Ubuntu 16.04.2 LTS # * Python 2.7.13-32 on Windows 7 # * Python 3.5.2-32 on Ubuntu 16.04.2 LTS # * Python 3.6.1-32...
37.9642
107
0.642233
1,984
15,907
5.039315
0.263105
0.020804
0.014003
0.016003
0.264153
0.213443
0.179336
0.153331
0.121624
0.076215
0
0.017971
0.219903
15,907
418
108
38.055024
0.787735
0.304771
0
0.280172
0
0
0.169381
0.008945
0
0
0
0
0
0
null
null
0.073276
0.086207
null
null
0.073276
0
0
0
null
0
0
0
0
0
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
ed7da8a2aa6ce2187cce19929470687044c959b5
3,151
py
Python
flavio/io/instanceio.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
61
2016-03-09T16:19:39.000Z
2022-03-30T00:55:51.000Z
flavio/io/instanceio.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
167
2016-03-15T15:25:57.000Z
2022-02-27T22:19:22.000Z
flavio/io/instanceio.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
57
2016-03-15T14:24:23.000Z
2022-01-14T01:00:03.000Z
"""Functions to load and dump class instances from and to YAML dictionaries or streams.""" import flavio import voluptuous as vol import yaml from collections import OrderedDict class YAMLLoadable(object): """Base class for objects that can be loaded and dumped from and to a dict or YAML stream.""" # th...
33.168421
85
0.679784
423
3,151
4.917258
0.304965
0.020192
0.021154
0.017308
0.180288
0.180288
0.1375
0.104808
0
0
0
0
0.22596
3,151
94
86
33.521277
0.852809
0.344018
0
0.078431
0
0
0.018173
0
0
0
0
0
0
1
0.235294
false
0
0.078431
0.039216
0.627451
0
0
0
0
null
0
0
0
0
0
0
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
ed815fef63b31e736c9a35cdd5d9fc88357ced53
43,395
py
Python
pysnmp/Juniper-System-Clock-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Juniper-System-Clock-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Juniper-System-Clock-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Juniper-System-Clock-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-System-Clock-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:53:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
147.101695
6,403
0.771494
4,468
43,395
7.492614
0.077216
0.058249
0.080652
0.094094
0.476626
0.437823
0.396392
0.38274
0.334678
0.310422
0
0.065523
0.077152
43,395
294
6,404
147.602041
0.77042
0.007881
0
0.101449
0
0.01087
0.238454
0.154911
0
0
0
0
0
1
0
false
0
0.028986
0
0.137681
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ed8717d8100b40bd671ecfd19df8577f56d71f23
9,634
py
Python
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/configuration3.py
romit-kumar/PowerShell-DSC-for-Linux
de82b0f1c2191fbc695bb22523f0f7780c1a3114
[ "MIT" ]
null
null
null
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/configuration3.py
romit-kumar/PowerShell-DSC-for-Linux
de82b0f1c2191fbc695bb22523f0f7780c1a3114
[ "MIT" ]
null
null
null
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/configuration3.py
romit-kumar/PowerShell-DSC-for-Linux
de82b0f1c2191fbc695bb22523f0f7780c1a3114
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ==================================== # Copyright (c) Microsoft Corporation. All rights reserved. # ==================================== import importHelper importHelper.install_aliases() import configparser import os import sys import serializerfactory json = serializerfactory.get_serialize...
35.160584
127
0.711542
1,117
9,634
5.724261
0.163832
0.044729
0.039412
0.04645
0.371286
0.251329
0.1736
0.097279
0.072412
0.072412
0
0.000933
0.221403
9,634
273
128
35.289377
0.851486
0.172929
0
0.057692
0
0
0.075777
0.028528
0
0
0
0
0
1
0.160256
false
0.051282
0.038462
0.128205
0.339744
0.00641
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
0
2
71ec21ae09ea080c972190abbeb176bbfa00fb1d
2,702
py
Python
registry/domain/models/organization_member.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
registry/domain/models/organization_member.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
registry/domain/models/organization_member.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
from uuid import uuid4 from common.utils import datetime_to_string class OrganizationMember(object): def __init__(self, org_uuid, username, status, role, address=None, invite_code=None, transaction_hash=None, invited_on=None, updated_on=None): self.__role = role self.__org_uuid =...
26.490196
112
0.633235
323
2,702
4.863777
0.151703
0.074475
0.080204
0.028644
0.203692
0.057288
0
0
0
0
0
0.001028
0.279793
2,702
101
113
26.752475
0.806269
0
0
0.24359
0
0
0.029608
0
0
0
0
0
0
1
0.269231
false
0
0.025641
0.153846
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
71fb812cd1919ad2115f85e01a4e729bce16b4a0
16,780
py
Python
pysnmp/CTRON-SFPS-CALL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CTRON-SFPS-CALL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CTRON-SFPS-CALL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CTRON-SFPS-CALL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SFPS-CALL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:15:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
132.125984
2,548
0.749166
1,978
16,780
6.35541
0.093023
0.019569
0.016466
0.017182
0.448731
0.419457
0.336091
0.29926
0.294487
0.238326
0
0.0777
0.09112
16,780
126
2,549
133.174603
0.746574
0.019785
0
0
0
0
0.118134
0.010706
0
0
0
0
0
1
0
false
0.008475
0.059322
0
0.067797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9c087c64cccb416373ebd5b43832430d6b2dd92c
536
py
Python
backend/treeckle/users/migrations/0010_auto_20210708_1620.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
null
null
null
backend/treeckle/users/migrations/0010_auto_20210708_1620.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
1
2021-11-28T06:18:51.000Z
2021-11-28T06:18:51.000Z
backend/treeckle/users/migrations/0010_auto_20210708_1620.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
1
2021-08-02T09:20:10.000Z
2021-08-02T09:20:10.000Z
# Generated by Django 3.2.3 on 2021-07-08 16:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0009_gmailauthentication'), ] operations = [ migrations.RemoveField( model_name='user', name='third_party_authentic...
21.44
47
0.572761
48
536
6.25
0.645833
0.14
0.173333
0.2
0.32
0.32
0.32
0.32
0
0
0
0.052198
0.320896
536
24
48
22.333333
0.771978
0.083955
0
0.388889
1
0
0.194274
0.100205
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
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
9c1270a5bbbe1cd0bca120127700d0922f79d41b
2,933
py
Python
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
2
2017-02-13T11:55:56.000Z
2017-02-15T08:27:49.000Z
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
null
null
null
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
null
null
null
import pymongo import os import datetime from base64 import decodestring from bson.objectid import ObjectId from pymongo import MongoClient config_file = open("config", 'r') collection = '' database = '' #Parse the configuration (config) file for line in config_file: field,val = line.split("=") if(field == "COLL...
30.237113
115
0.707467
430
2,933
4.725581
0.369767
0.062992
0.089567
0.082677
0.317421
0.185532
0.164862
0.153051
0.09498
0
0
0.022842
0.119332
2,933
96
116
30.552083
0.763841
0.390726
0
0.078431
0
0
0.272367
0.057191
0
0
0
0.010417
0
0
null
null
0
0.117647
null
null
0.078431
0
0
0
null
0
0
0
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
9c151b9c94727553de4af55b007ddf35fbbe0ca0
1,215
py
Python
Level1/Lessons12977/wowo0709.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12977/wowo0709.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12977/wowo0709.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
# 소수 만들기 from math import sqrt def solution(nums): answer = 0 for i in range(len(nums)): for j in range(i+1,len(nums)): for k in range(i+1,j): flag = 1 num = nums[i] + nums[k] + nums[j] for n in range(2,int(sqrt(num))+1): ...
25.851064
51
0.51358
271
1,215
2.398524
0.295203
0.12
0.172308
0.036923
0.086154
0.04
0
0
0
0
0
0.256287
0.312757
1,215
47
52
25.851064
0.491018
0.004938
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
9c1725af21530638134951a47cd55927d486bddb
123,343
py
Python
java/java2py/java2python-0.5.1/java2python/lang/JavaLexer.py
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
7adab3877fc1d3f1d5f57e6c1743dae8f76f72c5
[ "Apache-2.0" ]
3,266
2017-08-06T16:51:46.000Z
2022-03-30T07:34:24.000Z
java/java2py/java2python-0.5.1/java2python/lang/JavaLexer.py
hashDanChibueze/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
bef2c415d154a052c00e99a05f0870af7a5819ac
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
java/java2py/java2python-0.5.1/java2python/lang/JavaLexer.py
hashDanChibueze/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
bef2c415d154a052c00e99a05f0870af7a5819ac
[ "Apache-2.0" ]
1,449
2017-08-06T17:40:59.000Z
2022-03-31T12:03:24.000Z
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 Java.g 2012-01-29 13:54:05 import sys from antlr3 import * from antlr3.compat import set, frozenset # for convenience in actions HIDDEN = BaseRecognizer.HIDDEN # token types PACKAGE=84 EXPONENT=173 STAR=49 WHILE=103 MOD=32 MOD_ASSIGN=33 CASE=58 CHAR=60 NEW=82 DO=64 GENERIC_TYPE_...
23.333901
1,174
0.469244
15,986
123,343
3.525272
0.064807
0.037796
0.066542
0.050555
0.529483
0.463632
0.426386
0.400231
0.389371
0.378174
0
0.174857
0.380824
123,343
5,285
1,175
23.338316
0.563054
0.159052
0
0.526969
0
0.092264
0.194628
0.176019
0
0
0
0
0.001774
1
0.044003
false
0.139461
0.003194
0
0.05181
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9c2b66a37641559dc7bb07a463ae8972203ec073
1,069
py
Python
hw/hw09/tests/multiples_3.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
hw/hw09/tests/multiples_3.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
hw/hw09/tests/multiples_3.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
test = { 'name': 'multiples_3', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> (car multiples-of-three) 3 scm> (list? (cdr multiples-of-three)) ; Check to make sure variable contains a stream #f scm> (list? (cdr (cdr-stream m...
28.891892
113
0.460243
141
1,069
3.48227
0.453901
0.13442
0.195519
0.10387
0.321792
0.248473
0.248473
0
0
0
0
0.059084
0.366698
1,069
36
114
29.694444
0.666174
0
0
0.166667
0
0.166667
0.793265
0.019645
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9c2c8307b85f151581670e8c50e1033d0c99ee2e
61,881
py
Python
pysnmp-with-texts/NBS-OTNPM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/NBS-OTNPM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/NBS-OTNPM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module NBS-OTNPM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-OTNPM-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:17:31 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
144.244755
6,082
0.794493
6,902
61,881
7.122863
0.089829
0.065416
0.114479
0.010821
0.557361
0.424556
0.367581
0.346935
0.323644
0.235243
0
0.059626
0.088008
61,881
428
6,083
144.581776
0.8115
0.005171
0
0.004773
0
0.124105
0.318527
0.036879
0
0
0.00195
0
0
1
0
false
0
0.019093
0
0.040573
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9c2c845d503fa13d0189a5f8e591e18afc37b8a0
1,056
py
Python
tests/authorization/models.py
ninumedia/django-tastypie
4e4de4dddff9feeda4bed9d1e334ed286c409792
[ "BSD-3-Clause" ]
null
null
null
tests/authorization/models.py
ninumedia/django-tastypie
4e4de4dddff9feeda4bed9d1e334ed286c409792
[ "BSD-3-Clause" ]
2
2017-04-07T16:28:25.000Z
2017-05-23T04:52:17.000Z
tests/authorization/models.py
ninumedia/django-tastypie
4e4de4dddff9feeda4bed9d1e334ed286c409792
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.db import models class AuthorProfile(models.Model): user = models.OneToOneField(User, related_name='author_profile') short_bio = models.CharField(max_length=255, blank=True, default='') bio = models.TextFi...
37.714286
76
0.71875
140
1,056
5.285714
0.471429
0.040541
0.064865
0.064865
0.213514
0
0
0
0
0
0
0.010124
0.158144
1,056
27
77
39.111111
0.822272
0.127841
0
0.111111
0
0
0.06325
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0.111111
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
9c31b5c31906504c93ffb05ba04ed22705e74525
418
py
Python
src/spaceone/core/service/__init__.py
stat-kwon/python-core
387fda0a57705c1329846d1bea83b7b92f24cabe
[ "Apache-2.0" ]
14
2020-06-01T08:17:43.000Z
2022-01-13T22:37:50.000Z
src/spaceone/core/service/__init__.py
stat-kwon/python-core
387fda0a57705c1329846d1bea83b7b92f24cabe
[ "Apache-2.0" ]
7
2020-08-11T23:05:59.000Z
2022-01-12T05:08:49.000Z
src/spaceone/core/service/__init__.py
stat-kwon/python-core
387fda0a57705c1329846d1bea83b7b92f24cabe
[ "Apache-2.0" ]
11
2020-06-01T08:17:49.000Z
2021-11-25T08:26:37.000Z
from spaceone.core.service.utils import * from spaceone.core.service.service import * __all__ = ['BaseService', 'transaction', 'authentication_handler', 'authorization_handler', 'mutation_handler', 'event_handler', 'check_required', 'append_query_filter', 'change_tag_filter', 'change_timestamp_value', ...
59.714286
115
0.763158
46
418
6.434783
0.586957
0.162162
0.108108
0.155405
0
0
0
0
0
0
0
0
0.11244
418
6
116
69.666667
0.797844
0
0
0
0
0
0.578947
0.260766
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
9c3652ed616a97f1fd60550284c0a6d47b41caa9
1,665
py
Python
songbook/__main__.py
mathiaswk/songbook
703cecc1d24d1065fd6218f48451877580c817ef
[ "MIT" ]
null
null
null
songbook/__main__.py
mathiaswk/songbook
703cecc1d24d1065fd6218f48451877580c817ef
[ "MIT" ]
null
null
null
songbook/__main__.py
mathiaswk/songbook
703cecc1d24d1065fd6218f48451877580c817ef
[ "MIT" ]
null
null
null
""" songbook.__main__ ~~~~~~~~~~~~~~~~~ A one line summary of the module or program, terminated by a period. """ import argparse from songbook import __version__ from songbook.cli import cli from songbook.gui import gui def _build_parser(): parser = argparse.ArgumentParser(prog='songbook', descript...
28.706897
95
0.609009
209
1,665
4.660287
0.397129
0.110883
0.209446
0.117043
0.206366
0.080082
0.055441
0
0
0
0
0
0.224024
1,665
57
96
29.210526
0.75387
0.066667
0
0.170732
0
0
0.293351
0
0
0
0
0.017544
0
1
0.04878
false
0
0.097561
0
0.170732
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
9c424d7754343c590e38c919248eeb281e754f55
838
py
Python
q2_api_client/clients/mobile_ws/v2_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/mobile_ws/v2_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/mobile_ws/v2_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
from q2_api_client.clients.base_q2_client import BaseQ2Client from q2_api_client.endpoints.mobile_ws_endpoints import V2Endpoint class V2Client(BaseQ2Client): def get_commercial_tax_payments(self): """GET /mobilews/v2/commercial/taxpayment :return: Response object :rtype: requests.Respon...
33.52
87
0.717184
102
838
5.588235
0.382353
0.105263
0.084211
0.052632
0.519298
0.403509
0.403509
0.403509
0.277193
0.277193
0
0.01632
0.195704
838
24
88
34.916667
0.829377
0.272076
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
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
1
0
0
0
0
1
0
0
2
9c4e08a81fa2cafd46af4c8d0253db5eaf0073bb
19,808
py
Python
src/ssh_audit/kexdh.py
stefanjay/ssh-audit
ee811fa3b40df378423c445fec4521ea2c0ecba1
[ "MIT" ]
1
2021-06-04T19:55:21.000Z
2021-06-04T19:55:21.000Z
src/ssh_audit/kexdh.py
stefanjay/ssh-audit
ee811fa3b40df378423c445fec4521ea2c0ecba1
[ "MIT" ]
null
null
null
src/ssh_audit/kexdh.py
stefanjay/ssh-audit
ee811fa3b40df378423c445fec4521ea2c0ecba1
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (C) 2017-2020 Joe Testa (jtesta@positronsecurity.com) Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in...
54.120219
2,071
0.721628
2,380
19,808
5.783613
0.247479
0.008718
0.012786
0.018598
0.239811
0.212278
0.161714
0.118344
0.111733
0.077152
0
0.190828
0.194164
19,808
365
2,072
54.268493
0.671532
0.257674
0
0.303191
0
0.015957
0.37573
0.347969
0
1
0
0.00274
0
1
0.148936
false
0
0.042553
0.015957
0.308511
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
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
2
9c5707ff8012fd28dc76181051dd92cc37e3c79f
2,107
py
Python
Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_request.py
ptrckhmmr/ChatBotforCulturalInstitutions
c3da1a6d142e306c2e3183ba5609553e15a0e124
[ "Apache-2.0" ]
1
2020-12-24T13:28:35.000Z
2020-12-24T13:28:35.000Z
Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_request.py
ptrckhmmr/ChatBotforCulturalInstitutions
c3da1a6d142e306c2e3183ba5609553e15a0e124
[ "Apache-2.0" ]
null
null
null
Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_request.py
ptrckhmmr/ChatBotforCulturalInstitutions
c3da1a6d142e306c2e3183ba5609553e15a0e124
[ "Apache-2.0" ]
null
null
null
import pytest from attr.exceptions import FrozenInstanceError from mindmeld.components.request import Request, Params, FrozenParams @pytest.fixture def request(): return Request(domain='some_domain', intent='some_intent', entities=(), text='some_text') def test_domain(request): with pytest.raises...
27.363636
94
0.667299
212
2,107
6.495283
0.207547
0.108932
0.174292
0.330428
0.472767
0.41467
0.129993
0.079884
0
0
0
0
0.219269
2,107
76
95
27.723684
0.837082
0.026103
0
0.387755
0
0
0.067005
0
0
0
0
0
0
1
0.204082
false
0
0.061224
0.020408
0.285714
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
9c6296b20a014354603e01eea7e45b5500fe9c61
4,878
py
Python
src/fidesctl/cli/commands/generate.py
ethyca/fides
03f4521cba31f01e482d3b7d02f6f1f59abaae74
[ "Apache-2.0" ]
153
2021-11-01T20:59:33.000Z
2022-03-31T02:31:50.000Z
src/fidesctl/cli/commands/generate.py
ethyca/fides
03f4521cba31f01e482d3b7d02f6f1f59abaae74
[ "Apache-2.0" ]
205
2021-11-03T12:33:03.000Z
2022-03-31T20:33:14.000Z
src/fidesctl/cli/commands/generate.py
ethyca/fides
03f4521cba31f01e482d3b7d02f6f1f59abaae74
[ "Apache-2.0" ]
24
2021-11-03T15:08:14.000Z
2022-03-30T05:51:45.000Z
"""Contains the generate group of CLI commands for Fidesctl.""" import click from fidesctl.cli.options import ( aws_access_key_id_option, aws_region_option, aws_secret_access_key_option, connection_string_option, credentials_id_option, include_null_flag, okta_org_url_option, okta_token...
28.526316
88
0.732062
640
4,878
5.320313
0.198438
0.049633
0.028194
0.02467
0.472834
0.425551
0.308957
0.218502
0.179148
0.140675
0
0.000254
0.193317
4,878
170
89
28.694118
0.865057
0.284338
0
0.382609
1
0
0.038727
0
0
0
0
0
0
1
0.052174
false
0.052174
0.043478
0
0.095652
0
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
1
0
0
0
0
0
2
9c71942acd9c4d02bbf5f89b10912c5dba214492
5,682
py
Python
espnet/nets/asr_interface.py
kqwyf/espnet
78057f3ad8f69998cfa8b8c88fe51c5943f67e41
[ "Apache-2.0" ]
3
2021-05-27T13:33:37.000Z
2021-10-06T05:52:20.000Z
espnet/nets/asr_interface.py
kqwyf/espnet
78057f3ad8f69998cfa8b8c88fe51c5943f67e41
[ "Apache-2.0" ]
null
null
null
espnet/nets/asr_interface.py
kqwyf/espnet
78057f3ad8f69998cfa8b8c88fe51c5943f67e41
[ "Apache-2.0" ]
2
2021-11-30T07:42:44.000Z
2021-12-01T07:10:01.000Z
"""ASR Interface module.""" import argparse from espnet.bin.asr_train import get_parser from espnet.utils.dynamic_import import dynamic_import from espnet.utils.fill_missing_args import fill_missing_args class ASRInterface: """ASR Interface for ESPnet model implementation.""" @staticmethod def add_argum...
34.228916
88
0.644139
675
5,682
5.322963
0.257778
0.015029
0.018369
0.036738
0.418313
0.365154
0.304481
0.274979
0.203729
0.184247
0
0.004763
0.261
5,682
165
89
34.436364
0.850917
0.457937
0
0.036364
0
0
0.231947
0.108713
0
0
0
0
0.018182
1
0.236364
false
0
0.145455
0.018182
0.509091
0
0
0
0
null
0
0
0
0
0
0
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
9c7cc6985912193094f9488cab3579ebbac8b042
2,847
py
Python
ise-hotspot-access-code.py
dagolovach/ise-hotspot-access-code
83d2cadaa2a15c292f80d6a33048dd7c31c7f741
[ "MIT" ]
null
null
null
ise-hotspot-access-code.py
dagolovach/ise-hotspot-access-code
83d2cadaa2a15c292f80d6a33048dd7c31c7f741
[ "MIT" ]
null
null
null
ise-hotspot-access-code.py
dagolovach/ise-hotspot-access-code
83d2cadaa2a15c292f80d6a33048dd7c31c7f741
[ "MIT" ]
null
null
null
# ----------------------------------------------------------- # Generate a new access-code for the ISE Hotspot portal, # push it to the ISE using API and send an email with # new access-code # # requires the portal-id # # (C) 2019 Dmitry Golovach # email dmitry.golovach@outlook.com # -----------------------------------...
31.285714
138
0.612926
326
2,847
5.248466
0.358896
0.052601
0.032729
0.039743
0.194039
0.194039
0.194039
0.194039
0.16014
0.16014
0
0.006118
0.2536
2,847
90
139
31.633333
0.799059
0.367404
0
0.088889
1
0
0.235294
0.013529
0
0
0
0
0
1
0.066667
false
0.088889
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9c7e116b42dd5ab781f175abebd600d7ce721133
183
py
Python
day1/__main__.py
adampirani/advent-of-code-2020-python
8e2bfaef83ff509b6198af43787435dc41bc4b60
[ "Unlicense" ]
null
null
null
day1/__main__.py
adampirani/advent-of-code-2020-python
8e2bfaef83ff509b6198af43787435dc41bc4b60
[ "Unlicense" ]
null
null
null
day1/__main__.py
adampirani/advent-of-code-2020-python
8e2bfaef83ff509b6198af43787435dc41bc4b60
[ "Unlicense" ]
null
null
null
from day1.src.products import findTripleProduct EXPENSES = open('day1/input.txt', 'r') expenses_array = EXPENSES.read().splitlines() print(findTripleProduct(2020, expenses_array))
22.875
47
0.781421
22
183
6.409091
0.727273
0.184397
0
0
0
0
0
0
0
0
0
0.035928
0.087432
183
7
48
26.142857
0.808383
0
0
0
0
0
0.082418
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
92c4e0f6cdef6f5ce30d9ce3f99c8a3d0be3ea44
2,114
py
Python
app/lib/twitter_api/rates.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/lib/twitter_api/rates.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/lib/twitter_api/rates.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
""" Handle Twitter API rate limit error. The newer version of tweepy accepts the following in tweepy.API object. - wait_on_rate_limit: If the api until next rate limit window is reached to continue. Default is False. - wait_on_rate_limit_notify: Default is False. If the api prints a notification when the rate...
39.886792
93
0.727531
331
2,114
4.616314
0.498489
0.03534
0.02945
0.02945
0.026178
0
0
0
0
0
0
0.011418
0.212867
2,114
52
94
40.653846
0.906851
0.842952
0
0
0
0
0.079051
0
0
0
0
0.019231
0
1
0.111111
false
0
0.222222
0
0.333333
0.111111
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
1
0
0
0
0
0
0
0
0
0
0
2
92d1cfb69330a0cd6ef4c0a089be195ea3e220bb
2,921
py
Python
a_storage/codec/_codec_data.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
null
null
null
a_storage/codec/_codec_data.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2022-03-28T13:44:24.000Z
2022-03-28T13:53:57.000Z
a_storage/codec/_codec_data.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2019-02-18T17:05:06.000Z
2022-03-22T19:42:38.000Z
import abc #=============================================== class _CodecData: sCreateFunc = None @classmethod def create(cls, master, parent, schema_instr, default_name = "?"): return cls.sCreateFunc(master, parent, schema_instr, default_name) def __init__(self, master, parent, schema_instr, d...
29.806122
78
0.592263
320
2,921
5.290625
0.259375
0.085056
0.059067
0.063792
0.166568
0.148848
0
0
0
0
0
0.000484
0.292023
2,921
97
79
30.113402
0.818182
0.01609
0
0.202532
0
0
0.05047
0
0
0
0
0
0.075949
1
0.21519
false
0
0.012658
0.139241
0.443038
0
0
0
0
null
0
0
0
0
0
0
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
92de3bea15f957a46824d66786241607cfdf26c6
632
py
Python
Tokenization/TokenizationTest02.py
SunWooBang/NLP-Practice
0047abcad88e83fc7944cd97ecfae78f243ee636
[ "MIT" ]
1
2020-05-02T14:33:48.000Z
2020-05-02T14:33:48.000Z
Tokenization/TokenizationTest02.py
SunWooBang/NLP-Practice
0047abcad88e83fc7944cd97ecfae78f243ee636
[ "MIT" ]
null
null
null
Tokenization/TokenizationTest02.py
SunWooBang/NLP-Practice
0047abcad88e83fc7944cd97ecfae78f243ee636
[ "MIT" ]
null
null
null
#*nltk를 이용한 문장 토큰화* from nltk.tokenize import sent_tokenize text = "His barber kept his word. But keeping such a huge secret to himself was driving him crazy. Finally, the barber went up a mountain and almost to the edge of a cliff. He dug a hole in the midst of some reeds. He looked about, to mae sure no one was near....
45.142857
261
0.759494
124
632
3.830645
0.669355
0.101053
0.134737
0.092632
0.16
0.16
0.16
0
0
0
0
0.001908
0.170886
632
14
262
45.142857
0.90458
0.085443
0
0.444444
0
0.111111
0.637153
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
92df50cf0543254340fc9b9b7faed234d5c2f44e
290
py
Python
tools/remove_all.py
CodyKochmann/stock_info
8de591b5a589aefebccab3650cb5dfea987ab4c8
[ "MIT" ]
null
null
null
tools/remove_all.py
CodyKochmann/stock_info
8de591b5a589aefebccab3650cb5dfea987ab4c8
[ "MIT" ]
null
null
null
tools/remove_all.py
CodyKochmann/stock_info
8de591b5a589aefebccab3650cb5dfea987ab4c8
[ "MIT" ]
null
null
null
def remove_all(input_string,to_be_removed): ''' removes all instance of a substring from a string ''' while(to_be_removed in input_string): input_string = ''.join(input_string.split(to_be_removed)) return(input_string) if __name__ == '__main__': print(remove_all('hello world','l'))
32.222222
59
0.755172
45
290
4.4
0.577778
0.277778
0.166667
0
0
0
0
0
0
0
0
0
0.113793
290
8
60
36.25
0.770428
0.168966
0
0
0
0
0.085837
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
92e6f07046bf7fb3c454e2fdbb9563c84e20bd66
1,404
py
Python
ticket/forms.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-21T16:24:18.000Z
2021-12-21T16:24:18.000Z
ticket/forms.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T01:05:55.000Z
2021-12-10T01:05:55.000Z
ticket/forms.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T00:48:33.000Z
2021-12-10T00:48:33.000Z
from django import forms from django.forms import ModelForm,DateInput,Textarea,TextInput,Form,CheckboxInput from .models import Ticket from datetime import datetime class DateInput(forms.DateInput): input_type = 'date' class TicketForm(forms.ModelForm): class Meta: model = Ticket fields = ['...
46.8
166
0.689459
153
1,404
6.30719
0.333333
0.139896
0.186529
0.150259
0.462176
0.28601
0.28601
0.28601
0.28601
0.28601
0
0.004874
0.123219
1,404
29
167
48.413793
0.779041
0
0
0
0
0
0.149786
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.782609
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
92f2c9aa9daf4480549681b07dc4aaee1bb9e024
3,002
py
Python
django_project/settings.py
shivam0501/CC-PROJECT
74797b648c8b9d45ac063669320d97ccaafec902
[ "Unlicense" ]
null
null
null
django_project/settings.py
shivam0501/CC-PROJECT
74797b648c8b9d45ac063669320d97ccaafec902
[ "Unlicense" ]
null
null
null
django_project/settings.py
shivam0501/CC-PROJECT
74797b648c8b9d45ac063669320d97ccaafec902
[ "Unlicense" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # It is okay to share the secret key this time, because this application is not used in production # If you want to deploy this application, then you will need to re...
30.632653
98
0.697202
339
3,002
6.047198
0.471976
0.095122
0.058049
0.027317
0.12878
0.096585
0
0
0
0
0
0.008107
0.178215
3,002
97
99
30.948454
0.822862
0.172885
0
0
0
0
0.565305
0.465427
0
0
0
0
0
1
0
false
0.067568
0.013514
0
0.013514
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
92faf44208c23843cf6cb4b6f0813e89a193d1f1
1,129
py
Python
netmiko/keymile/keymile_ssh.py
AAm-kun/netmiko
1c5d2e4c345778ee46e5e487f62c66d02f297625
[ "MIT" ]
null
null
null
netmiko/keymile/keymile_ssh.py
AAm-kun/netmiko
1c5d2e4c345778ee46e5e487f62c66d02f297625
[ "MIT" ]
null
null
null
netmiko/keymile/keymile_ssh.py
AAm-kun/netmiko
1c5d2e4c345778ee46e5e487f62c66d02f297625
[ "MIT" ]
null
null
null
import time from netmiko.no_enable import NoEnable from netmiko.no_config import NoConfig from netmiko.cisco.cisco_ios import CiscoIosBase class KeymileSSH(NoEnable, NoConfig, CiscoIosBase): def __init__(self, **kwargs): kwargs.setdefault("default_enter", "\r\n") return super().__init__(**kwargs)...
34.212121
83
0.685562
143
1,129
5.111888
0.503497
0.057456
0.053352
0.057456
0
0
0
0
0
0
0
0.003333
0.202834
1,129
32
84
35.28125
0.808889
0.151461
0
0
0
0
0.020277
0
0
0
0
0
0
1
0.238095
false
0
0.190476
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
1
0
0
0
0
1
0
0
2
130d27240be549a058db739cc1a2864d7c8d82f1
136
py
Python
02/requests.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
2
2017-09-24T02:29:48.000Z
2017-10-05T11:15:22.000Z
02/requests.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
02/requests.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
import requests res = requests.get("http://api.aoikujira.com/time/get.php") text = res.text print(text) bin = res.content print(bin)
13.6
59
0.720588
22
136
4.454545
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.117647
136
9
60
15.111111
0.816667
0
0
0
0
0
0.272059
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
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
13362fddcdcb7a60942ced9de99802074e9481f2
876
py
Python
wolphin/exceptions.py
locationlabs/wolphin
bf8d8c25903c291a869fc3acb46d87c3d57d6812
[ "Apache-2.0" ]
null
null
null
wolphin/exceptions.py
locationlabs/wolphin
bf8d8c25903c291a869fc3acb46d87c3d57d6812
[ "Apache-2.0" ]
null
null
null
wolphin/exceptions.py
locationlabs/wolphin
bf8d8c25903c291a869fc3acb46d87c3d57d6812
[ "Apache-2.0" ]
1
2021-09-08T09:54:29.000Z
2021-09-08T09:54:29.000Z
class WolphinException(Exception): """ Base class for wolphin related exceptions """ def __init__(self, message=None): """ WolphinException constructor :param message: error message for the exception """ self.message = message def __str__(self): ret...
18.25
73
0.65411
85
876
6.647059
0.588235
0.155752
0.184071
0
0
0
0
0
0
0
0
0.00311
0.265982
876
47
74
18.638298
0.875583
0.390411
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.153846
false
0.307692
0
0.076923
0.615385
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
13386ec9cbb3d6a97b80c07120c5a06891e0cf69
1,693
py
Python
lib/third_party/requests/packages/__init__.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/third_party/requests/packages/__init__.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/third_party/requests/packages/__init__.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
''' Debian and other distributions "unbundle" requests' vendored dependencies, and rewrite all imports to use the global versions of ``urllib3`` and ``chardet``. The problem with this is that not only requests itself imports those dependencies, but third-party code outside of the distros' control too. In reaction to t...
36.021277
78
0.754873
239
1,693
5.32636
0.527197
0.050275
0.030636
0.039277
0
0
0
0
0
0
0
0.010714
0.173066
1,693
46
79
36.804348
0.898571
0.709982
0
0.333333
0
0
0.076763
0
0
0
0
0
0
1
0
false
0
0.611111
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1338ec1d6675a5e8114aab03ad773c1bbaf6d760
10,061
py
Python
MyWatchList/models.py
fgl-foundation/MovieDB
17bf065336f52f7f6ef423f85b6aa5315b1d685f
[ "MIT" ]
null
null
null
MyWatchList/models.py
fgl-foundation/MovieDB
17bf065336f52f7f6ef423f85b6aa5315b1d685f
[ "MIT" ]
1
2019-11-01T15:47:04.000Z
2019-11-01T15:47:04.000Z
MyWatchList/models.py
fgl-foundation/MovieDB
17bf065336f52f7f6ef423f85b6aa5315b1d685f
[ "MIT" ]
null
null
null
import datetime from django.db import models from taggit.managers import TaggableManager from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.auth.models import User from django.urls import rever...
31.539185
115
0.704204
1,198
10,061
5.767112
0.171953
0.025474
0.04458
0.057751
0.45419
0.408887
0.331162
0.250253
0.240266
0.171371
0
0.004
0.180002
10,061
319
116
31.539185
0.833455
0
0
0.361111
0
0
0.03717
0
0
0
0
0
0
1
0.138889
false
0.00463
0.050926
0.111111
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
133995c61b774a99247ae32d8b3f3bdfd15a484c
263
py
Python
packages/pyright-internal/src/tests/samples/genericTypes27.py
ashb/pyright
9ef8ec236f88eb5332363974087f9e581f20f697
[ "MIT" ]
1
2020-12-28T16:58:24.000Z
2020-12-28T16:58:24.000Z
packages/pyright-internal/src/tests/samples/genericTypes27.py
ashb/pyright
9ef8ec236f88eb5332363974087f9e581f20f697
[ "MIT" ]
3
2022-03-03T03:03:24.000Z
2022-03-25T14:43:54.000Z
packages/pyright-internal/src/tests/samples/genericTypes27.py
ashb/pyright
9ef8ec236f88eb5332363974087f9e581f20f697
[ "MIT" ]
null
null
null
# This sample tests that a generic type alias can use # a compatible bound TypeVar. from typing import Generic, TypeVar D = TypeVar("D", bool, int, float, object) E = TypeVar("E", bool, int, float, object) class Gen(Generic[D]): pass GenAlias = Gen[E]
16.4375
53
0.688213
41
263
4.414634
0.634146
0.088398
0.132597
0.198895
0
0
0
0
0
0
0
0
0.197719
263
15
54
17.533333
0.85782
0.30038
0
0
0
0
0.011111
0
0
0
0
0
0
1
0
false
0.166667
0.166667
0
0.333333
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
1
0
0
0
0
0
2
133e63787fe0cec6a70bca2eaacfa2e628d2b385
197
py
Python
config/logger/file_logger.py
phirasit/TestcaseGenerator
443f320e927a606d9d64933b60591c67c83b6630
[ "MIT" ]
null
null
null
config/logger/file_logger.py
phirasit/TestcaseGenerator
443f320e927a606d9d64933b60591c67c83b6630
[ "MIT" ]
null
null
null
config/logger/file_logger.py
phirasit/TestcaseGenerator
443f320e927a606d9d64933b60591c67c83b6630
[ "MIT" ]
null
null
null
from config.logger import Logger class FileLogger(Logger): def __init__(self, file_name): self.fp = open(file_name, 'a') def write(self, msg): self.fp.write(msg + "\n")
17.909091
38
0.624365
28
197
4.178571
0.607143
0.136752
0
0
0
0
0
0
0
0
0
0
0.238579
197
10
39
19.7
0.78
0
0
0
0
0
0.015228
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
1
0
0
0
0
0
0
0
2
1344c23ebbe9a78ca0165253cf260f991c7c73d9
228
py
Python
models/schemas.py
stylepatrick/crypto_price_tracker
cae3e6642209472a23f0d3de8482c7e45c90f2ad
[ "MIT" ]
null
null
null
models/schemas.py
stylepatrick/crypto_price_tracker
cae3e6642209472a23f0d3de8482c7e45c90f2ad
[ "MIT" ]
null
null
null
models/schemas.py
stylepatrick/crypto_price_tracker
cae3e6642209472a23f0d3de8482c7e45c90f2ad
[ "MIT" ]
null
null
null
from datetime import datetime from pydantic import BaseModel class CoinBase(BaseModel): name: str price: float class Coin(CoinBase): id: int time_created: datetime class Config: orm_mode = True
13.411765
30
0.688596
28
228
5.535714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.258772
228
16
31
14.25
0.91716
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.9
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
134928e6721789de037f9619c2d1f2462f68389d
634
py
Python
lib/coginvasion/friends/FriendRequest.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
lib/coginvasion/friends/FriendRequest.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
lib/coginvasion/friends/FriendRequest.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: lib.coginvasion.friends.FriendRequest from direct.directnotify.DirectNotifyGlobal import directNotify from direct.gui.DirectGui import D...
42.266667
104
0.760252
80
634
5.925
0.65
0.008439
0
0
0
0
0
0
0
0
0
0.080882
0.141956
634
15
105
42.266667
0.790441
0.335962
0
0
0
0
0.031175
0
0
0
0
0
0
1
0.111111
false
0
0.333333
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
134a475e8554f33fe233e9ce74e14203ca891951
276
py
Python
testapp/models.py
mani571/apiview_1
21918d14c0dca08475b733e1f6756c1f4d3fb654
[ "BSD-3-Clause" ]
null
null
null
testapp/models.py
mani571/apiview_1
21918d14c0dca08475b733e1f6756c1f4d3fb654
[ "BSD-3-Clause" ]
null
null
null
testapp/models.py
mani571/apiview_1
21918d14c0dca08475b733e1f6756c1f4d3fb654
[ "BSD-3-Clause" ]
null
null
null
from django.db import models # Create your models here. class details(models.Model): name=models.CharField(max_length=20) position=models.CharField(max_length=10) mobile=models.IntegerField() address=models.TextField(max_length=50) class Meta: db_table="DETAILS"
18.4
41
0.778986
39
276
5.410256
0.641026
0.127962
0.170616
0.227488
0
0
0
0
0
0
0
0.02449
0.112319
276
15
42
18.4
0.836735
0.086957
0
0
0
0
0.027888
0
0
0
0
0
0
1
0
false
0
0.125
0
0.875
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
134e20d47e5442f3110c4ba01708bd310bd06e7b
1,188
py
Python
tests/test_conv_pad.py
f-sky/DeepV2D
5c1c6f58ee359d045a7efd5161445ea87d83bdbe
[ "BSD-3-Clause" ]
1
2021-09-29T06:49:42.000Z
2021-09-29T06:49:42.000Z
tests/test_conv_pad.py
f-sky/DeepV2D
5c1c6f58ee359d045a7efd5161445ea87d83bdbe
[ "BSD-3-Clause" ]
null
null
null
tests/test_conv_pad.py
f-sky/DeepV2D
5c1c6f58ee359d045a7efd5161445ea87d83bdbe
[ "BSD-3-Clause" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES'] = '' import numpy as np import matplotlib.pyplot as plt import sys import warnings warnings.filterwarnings("ignore", message=r"Passing", category=FutureWarning) import tensorflow as tf from tensorflow.contrib import slim np.random.seed(0) config = tf.ConfigProto( devi...
28.285714
83
0.664141
179
1,188
4.346369
0.486034
0.051414
0.03856
0.046272
0
0
0
0
0
0
0
0.080285
0.171717
1,188
41
84
28.97561
0.710366
0.23569
0
0
0
0
0.04581
0
0
0
0
0.02439
0
1
0
false
0.043478
0.304348
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
13544123ddf73c82dc89e4c2e3fdcdb2ccff0aec
494
py
Python
Hackerrank/Python/07 - Collections/03 - collections.namedtuple().py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Hackerrank/Python/07 - Collections/03 - collections.namedtuple().py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Hackerrank/Python/07 - Collections/03 - collections.namedtuple().py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
# ======================== # Information # ======================== # Direct Link: https://www.hackerrank.com/challenges/py-collections-namedtuple/problem # Difficulty: Easy # Max Score: 20 # Language: Python # ======================== # Solution # ======================== from collections...
26
90
0.508097
45
494
5.555556
0.777778
0.096
0
0
0
0
0
0
0
0
0
0.007246
0.161943
494
18
91
27.444444
0.596618
0.540486
0
0
0
0
0.065657
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
136aedd52a26cd7ade2fec977fc17b08afd00cc2
906
py
Python
miniDocker/tests/server/test_standalone.py
WhiteVermouth/miniDocker-server
74ea83653f0b8d7b7e4bb98c6ba0fa22e925fb80
[ "MIT" ]
5
2018-06-13T00:46:45.000Z
2019-07-16T10:24:19.000Z
miniDocker/tests/server/test_standalone.py
WhiteVermouth/miniDocker-server
74ea83653f0b8d7b7e4bb98c6ba0fa22e925fb80
[ "MIT" ]
1
2018-06-14T11:37:23.000Z
2018-06-14T11:37:23.000Z
miniDocker/tests/server/test_standalone.py
WhiteVermouth/miniDocker-server
74ea83653f0b8d7b7e4bb98c6ba0fa22e925fb80
[ "MIT" ]
1
2020-07-19T02:08:51.000Z
2020-07-19T02:08:51.000Z
from miniDocker.server.standalone import * def test_list_containers(): print(list_containers()) def test_stop_container(name): res = stop_container(name) if res["status"] == "success": print("success") def test_start_container(name): res = start_container(name) if res["status"] == "suc...
19.695652
45
0.636865
113
906
4.814159
0.238938
0.090074
0.099265
0.165441
0.472426
0.472426
0.472426
0.362132
0.362132
0.362132
0
0
0.211921
906
45
46
20.133333
0.761905
0
0
0.344828
0
0
0.15011
0
0
0
0
0
0
1
0.241379
false
0
0.034483
0
0.275862
0.241379
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
136c8c0f4ea658593706de40449b3b4311b93149
81
py
Python
food_data.py
Siddhant8/repo-template
da97e5482a2cc75caf8241c29e8b46e2ae92c136
[ "Unlicense" ]
null
null
null
food_data.py
Siddhant8/repo-template
da97e5482a2cc75caf8241c29e8b46e2ae92c136
[ "Unlicense" ]
null
null
null
food_data.py
Siddhant8/repo-template
da97e5482a2cc75caf8241c29e8b46e2ae92c136
[ "Unlicense" ]
1
2022-01-12T20:22:12.000Z
2022-01-12T20:22:12.000Z
#food_item data = {"apple": 1, "banana": 5, "milk": 10, "bread": 3, "yogurt": 16}
40.5
70
0.567901
13
81
3.461538
1
0
0
0
0
0
0
0
0
0
0
0.101449
0.148148
81
2
70
40.5
0.550725
0.111111
0
0
0
0
0.361111
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
1377c3d87e85c2a7dc8097098fae6877ba054194
442
py
Python
litebot/core/minecraft/rpc.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
22
2020-10-18T22:36:51.000Z
2022-03-27T07:49:25.000Z
litebot/core/minecraft/rpc.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
8
2021-07-14T06:46:47.000Z
2021-08-17T06:09:52.000Z
litebot/core/minecraft/rpc.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
7
2021-05-04T16:56:19.000Z
2021-10-12T05:44:31.000Z
from typing import Callable def rpc(*, name) -> Callable: """Decorate a coroutine as an RPC method that can be executed by the server. Args: name: The name of the RPC method Returns: A decorator that will mark the coroutine as an RPC method """ def decorator(func) -> Callable: ...
23.263158
80
0.647059
60
442
4.55
0.516667
0.098901
0.095238
0.117216
0.161172
0
0
0
0
0
0
0
0.291855
442
19
81
23.263158
0.872204
0.427602
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
137e51bb8e083eb532b29bf2df3c27fbf208253b
802
py
Python
demos/oneliners.py
dendisuhubdy/mpyc
07c22fd5ae09fe310b6172847b99e009753d88fe
[ "MIT" ]
null
null
null
demos/oneliners.py
dendisuhubdy/mpyc
07c22fd5ae09fe310b6172847b99e009753d88fe
[ "MIT" ]
null
null
null
demos/oneliners.py
dendisuhubdy/mpyc
07c22fd5ae09fe310b6172847b99e009753d88fe
[ "MIT" ]
null
null
null
"""Couple of MPyC oneliners. Run with m parties to compute: - m = sum_{i=0}^{m-1} 1 = sum(1 for i in range(m)) - m**2 = sum_{i=0}^{m-1} 2i+1 = sum(2*i+1 for i in range(m)) - 2**m = prod_{i=0}^{m-1} 2 = prod(2 for i in range(m)) - m! = prod_{i=0}^{m-1} i+1 = prod(i+1 for i in range(m)) B...
38.190476
86
0.599751
164
802
2.908537
0.27439
0.075472
0.113208
0.033543
0.530398
0.501048
0.408805
0.327044
0.327044
0.327044
0
0.060651
0.157107
802
20
87
40.1
0.64497
0.488778
0
0
0
0
0.059553
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
2
1385d773d28d9a3083aa4902868748572d388f20
283
py
Python
1_beginner/chapter1/practice/style.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
4
2021-03-01T00:32:45.000Z
2021-05-21T22:01:52.000Z
1_beginner/chapter1/practice/style.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
29
2020-09-12T22:56:04.000Z
2021-09-25T17:08:42.000Z
1_beginner/chapter1/practice/style.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
7
2021-02-25T01:50:55.000Z
2022-02-28T00:00:42.000Z
# Style # Uncomment the following code, then # fix the style in this file so that it runs properly # and there are comments explaining the program """ print("Hello World!") print("This is a Python program") age = input("Enter your age: ") print("Your age is " + age) """
17.6875
53
0.674912
43
283
4.44186
0.72093
0.073298
0
0
0
0
0
0
0
0
0
0
0.215548
283
15
54
18.866667
0.86036
0.925795
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
13975248eb2650630d0279166ec3f069b1018cfc
574
py
Python
paquetes/ej4-utils/utils/string/validacion.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
paquetes/ej4-utils/utils/string/validacion.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
paquetes/ej4-utils/utils/string/validacion.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
# string/validacion.py """ Validar que una cadena de texto {@param str} cumpla un mínimo de caracteres {@param min_length} Ejemplo: validate_min_length("Hola mundo", 3) -> True """ def validate_min_length(str, min_length): if str is None: return False return len(str)>=min_length """ Validar que u...
30.210526
99
0.698606
86
574
4.5
0.383721
0.116279
0.067183
0.098191
0.423773
0.423773
0.423773
0.423773
0.423773
0.423773
0
0.004329
0.195122
574
19
100
30.210526
0.833333
0.297909
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
0
0
0
null
0
0
0
0
0
0
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
13a9765d89465250b161ca4cfa248ac332463f1c
194
py
Python
evie/routes/base.py
Netroxen/evie.cms
9c8247d222cc13a9db1ab9bbcc6c41f499c6d785
[ "MIT" ]
1
2021-12-16T19:50:23.000Z
2021-12-16T19:50:23.000Z
evie/routes/base.py
Netroxen/evie.cms
9c8247d222cc13a9db1ab9bbcc6c41f499c6d785
[ "MIT" ]
null
null
null
evie/routes/base.py
Netroxen/evie.cms
9c8247d222cc13a9db1ab9bbcc6c41f499c6d785
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from quart import Blueprint, render_template bp = Blueprint('base', __name__) @bp.route('/') async def index(): return await render_template('base/base.html.j2')
17.636364
53
0.680412
26
194
4.846154
0.769231
0.222222
0
0
0
0
0
0
0
0
0
0.012121
0.149485
194
10
54
19.4
0.751515
0.108247
0
0
0
0
0.128655
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0.4
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
13ac08ab43bda0d53932ce328f7f6c571547a7f2
3,088
py
Python
tests/test_config.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "Apache-2.0" ]
null
null
null
tests/test_config.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "Apache-2.0" ]
null
null
null
tests/test_config.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "Apache-2.0" ]
null
null
null
import mock import pytest from redbeat.schedulers import RedBeatConfig, CELERY_4_OR_GREATER from basecase import AppCase class test_RedBeatConfig(AppCase): def setup(self): self.conf = RedBeatConfig(self.app) def test_app(self): self.assertEqual(self.app, self.conf.app) def test_lock_t...
40.103896
84
0.703044
438
3,088
4.716895
0.150685
0.092933
0.110358
0.122459
0.759923
0.636012
0.604066
0.604066
0.604066
0.604066
0
0.005934
0.181347
3,088
76
85
40.631579
0.811313
0.039508
0
0.310345
0
0
0.098886
0
0
0
0
0
0.344828
1
0.224138
false
0
0.068966
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
13aea7e94915333c53d9469a34aaf5d2a028276b
1,472
py
Python
equipment/armor.py
jyurkiw/py_cyberpunk_2020_rest_api
f423761622c11b6f91556560a309697144a166a5
[ "MIT" ]
null
null
null
equipment/armor.py
jyurkiw/py_cyberpunk_2020_rest_api
f423761622c11b6f91556560a309697144a166a5
[ "MIT" ]
null
null
null
equipment/armor.py
jyurkiw/py_cyberpunk_2020_rest_api
f423761622c11b6f91556560a309697144a166a5
[ "MIT" ]
null
null
null
from util import db from util import getFilteredQuery from flask import jsonify from flask_restful import Resource from flask_restful import reqparse from urllib.parse import unquote _armorCollection = db.armor class ArmorListApi(Resource): def get(self): return jsonify(getFilteredQuery(_ar...
32
76
0.695652
162
1,472
6.191358
0.302469
0.071785
0.135593
0.139581
0.490528
0.462612
0.462612
0.247258
0
0
0
0
0.199049
1,472
45
77
32.711111
0.850721
0
0
0.125
0
0
0.053259
0
0
0
0
0
0
1
0.15625
false
0
0.1875
0.125
0.65625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
13c39075d06908e724a0ebf5da80931cbcff3aad
522
py
Python
src/Day5_RemoveDuplicatesFromSortedListII.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Day5_RemoveDuplicatesFromSortedListII.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Day5_RemoveDuplicatesFromSortedListII.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
from typing import List class Solution: def findKthPositive(self, arr: List[int], k: int) -> int: missing_numbers = 0 next_expected = 1 for x in arr: while x != next_expected: missing_numbers += 1 if missing_numbers == k: ret...
26.1
61
0.521073
61
522
4.295082
0.42623
0.267176
0.148855
0.160305
0
0
0
0
0
0
0
0.022508
0.404215
522
20
62
26.1
0.819936
0
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.4
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
13c97007189dae04abd901ee398494a9dabc587f
328
py
Python
score/masking_warning_color.py
SuperShinyEyes/Score-Tool
907dd9e695c9950c6f168480e591a239cdf6a826
[ "MIT" ]
2
2020-09-25T20:35:58.000Z
2020-10-10T17:24:15.000Z
score/masking_warning_color.py
SuperShinyEyes/Score-Tool
907dd9e695c9950c6f168480e591a239cdf6a826
[ "MIT" ]
1
2020-10-10T17:57:02.000Z
2020-10-28T15:13:49.000Z
score/masking_warning_color.py
SuperShinyEyes/Score-Tool
907dd9e695c9950c6f168480e591a239cdf6a826
[ "MIT" ]
1
2020-09-25T20:36:06.000Z
2020-09-25T20:36:06.000Z
def color(val): if val < 60: r = 0 g = 255 b = 0 if val >= 60: r = ((val - 60) / 20) * 255 g = 255 b = 120 if val >= 80: r = 255 g = 255 - (((val - 80) / 20) * 255) b = 120 - (((val - 80) / 20) * 120) return 'rgb({},{},{})'.format(...
21.866667
43
0.332317
47
328
2.319149
0.340426
0.137615
0.12844
0.146789
0
0
0
0
0
0
0
0.271676
0.472561
328
15
44
21.866667
0.358382
0
0
0.142857
0
0
0.039514
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
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
13cd2425aac94174a04857f1f2c2ba4ecc65c8a4
1,167
py
Python
ietf/ipr/feeds.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-09-02T19:53:12.000Z
2015-09-02T19:53:12.000Z
ietf/ipr/feeds.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/ipr/feeds.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright The IETF Trust 2007, All Rights Reserved from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Atom1Feed from django.core.urlresolvers import reverse_lazy from django.utils.safestring import mark_safe from ietf.ipr.models import IprDisclosureBase class LatestIprDisclosu...
28.463415
102
0.676093
149
1,167
5.174497
0.456376
0.045396
0.054475
0.041505
0.072633
0.072633
0.072633
0.072633
0
0
0
0.008989
0.237361
1,167
40
103
29.175
0.857303
0.042845
0
0.2
0
0
0.104933
0
0
0
0
0
0
1
0.2
false
0
0.166667
0.133333
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
13ceaecd9da662e33949472d0b4e77af71d3dbb9
1,750
py
Python
sdk/python/pulumi_azure_native/resources/v20210401/_enums.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/resources/v20210401/_enums.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/resources/v20210401/_enums.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'DeploymentMode', 'ExpressionEvaluationOptionsScopeType', 'ExtendedLocationType', 'OnErrorDeployment...
31.25
433
0.721143
194
1,750
6.438144
0.541237
0.028022
0.040032
0.038431
0.04964
0.04964
0.04964
0
0
0
0
0.000714
0.199429
1,750
55
434
31.818182
0.890792
0.476571
0
0
1
0
0.298329
0.068019
0
0
0
0
0
1
0
false
0
0.04
0
0.72
0
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
13d439b8f20fea937e4d002fd0aa50aada03d697
741
py
Python
pyxel/music.py
sacredhotdog/pyxel
08da48dbd1ac53c06cf8a383f28d66fd89f78f4a
[ "MIT" ]
1
2019-10-18T01:54:10.000Z
2019-10-18T01:54:10.000Z
pyxel/music.py
Shiozaki-s21/pyxel
8938d656fccf1c87d56fa4187e9d6b242b132c75
[ "MIT" ]
null
null
null
pyxel/music.py
Shiozaki-s21/pyxel
8938d656fccf1c87d56fa4187e9d6b242b132c75
[ "MIT" ]
null
null
null
class Music: def __init__(self): self._ch0 = [] self._ch1 = [] self._ch2 = [] self._ch3 = [] @property def ch0(self): return self._ch0 @property def ch1(self): return self._ch1 @property def ch2(self): return self._ch2 @property...
18.073171
38
0.516869
96
741
3.739583
0.135417
0.083565
0.155989
0
0
0
0
0
0
0
0
0.066946
0.354926
741
40
39
18.525
0.6841
0
0
0.129032
0
0
0
0
0
0
0
0
0
1
0.322581
false
0
0
0.129032
0.483871
0
0
0
0
null
0
0
0
0
0
0
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
13d720fa3dfdb5b76c1c20dba0fcde0412524d07
13,769
py
Python
Proj029Pipelines/pipeline_proj029_replication.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
Proj029Pipelines/pipeline_proj029_replication.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
Proj029Pipelines/pipeline_proj029_replication.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
""" ======================================= Compare original and new RNA-seq data at Day14 vs. Day0 ======================================= :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python """ # load modules from ruffus import * import CGAT.Experiment as E import logging as L import CGAT.Database as ...
37.415761
122
0.511511
1,559
13,769
4.476588
0.186017
0.034102
0.021493
0.024072
0.648517
0.641782
0.632899
0.628027
0.620003
0.616564
0
0.015381
0.173651
13,769
367
123
37.517711
0.597996
0.074079
0
0.545455
0
0.177273
0.603969
0.196752
0
0
0
0
0
1
0.05
false
0.004545
0.131818
0
0.186364
0.004545
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2