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
80c2c8943ef07c483151f723f33f2e25c9812ed4
823
py
Python
ctreport_selenium/ctreport_html/scripts/imagemodal.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
2
2020-08-30T13:12:52.000Z
2020-09-03T05:38:28.000Z
ctreport_selenium/ctreport_html/scripts/imagemodal.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
5
2020-01-10T07:01:24.000Z
2020-06-25T10:49:43.000Z
ctreport_selenium/ctreport_html/scripts/imagemodal.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
1
2020-10-13T02:27:04.000Z
2020-10-13T02:27:04.000Z
content = ''' <script> function createimagemodal(path,cap) { var html = '<div id="modalWindow1" class="modal" data-keyboard="false" data-backdrop="static">\ <span class="close1" onclick=deletemodal("modalWindow1") data-dismiss="modal">&times;</span>\ ...
45.722222
126
0.526124
72
823
6.013889
0.583333
0.023095
0
0
0
0
0
0
0
0
0
0.014109
0.311057
823
17
127
48.411765
0.749559
0
0
0
0
0.176471
0.979344
0.400972
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
80da3138e8cac3f24617b1c64d4a39e96388be05
111
py
Python
baseline/__init__.py
leonkozlowski/baseline
0403b922a9a1e600dd58df064f0e1652b4a99d95
[ "MIT" ]
null
null
null
baseline/__init__.py
leonkozlowski/baseline
0403b922a9a1e600dd58df064f0e1652b4a99d95
[ "MIT" ]
null
null
null
baseline/__init__.py
leonkozlowski/baseline
0403b922a9a1e600dd58df064f0e1652b4a99d95
[ "MIT" ]
null
null
null
"""Top-level package for baseline.""" __author__ = """Leon Kozlowski""" __email__ = "leonkozlowski@gmail.com"
22.2
37
0.711712
12
111
5.916667
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
111
4
38
27.75
0.717172
0.279279
0
0
0
0
0.5
0.310811
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
80fac091a53cec58756d148edb036bb9100199df
622
py
Python
webApi/books_api/book/models.py
FreeN1ckname/web_api
50b6ffc03f918e25d36ff11caa1cf5d83628646b
[ "MIT" ]
null
null
null
webApi/books_api/book/models.py
FreeN1ckname/web_api
50b6ffc03f918e25d36ff11caa1cf5d83628646b
[ "MIT" ]
null
null
null
webApi/books_api/book/models.py
FreeN1ckname/web_api
50b6ffc03f918e25d36ff11caa1cf5d83628646b
[ "MIT" ]
null
null
null
from django.db import models class Author(models.Model): name = models.CharField(max_length=255) def __str__(self): return self.name class Book(models.Model): image_path = models.TextField() title = models.CharField(max_length=120) description = models.TextField() full_description =...
25.916667
88
0.699357
74
622
5.675676
0.5
0.107143
0.128571
0.171429
0.22381
0
0
0
0
0
0
0.017857
0.189711
622
23
89
27.043478
0.815476
0
0
0.117647
0
0
0.017685
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.117647
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
80fb06b25902668929d58eb3b509e5307fafd92f
3,737
py
Python
src/features/feature_extraction.py
AalaaNagy88/Data_Extrafilteration
79a3af71ec6e020f5c97b73f48421a58c9d0cbd0
[ "FTL" ]
null
null
null
src/features/feature_extraction.py
AalaaNagy88/Data_Extrafilteration
79a3af71ec6e020f5c97b73f48421a58c9d0cbd0
[ "FTL" ]
null
null
null
src/features/feature_extraction.py
AalaaNagy88/Data_Extrafilteration
79a3af71ec6e020f5c97b73f48421a58c9d0cbd0
[ "FTL" ]
null
null
null
import tldextract import pandas as pd from collections import Counter import numpy as np """ Args: str_obj: raw data Returns: number of uppercase character in the raw data. """ def get_count_upper_case_letters(str_obj): count = 0 for elem in str_obj: if elem.isupper(): ...
19.463542
75
0.617073
527
3,737
4.163188
0.180266
0.139471
0.072926
0.094804
0.544667
0.520966
0.41021
0.385597
0.27484
0.209207
0
0.005204
0.280171
3,737
192
76
19.463542
0.810409
0
0
0.371429
0
0
0.002397
0
0
0
0
0
0
1
0.228571
false
0
0.057143
0.028571
0.514286
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
0393a02a3f437f1ea1a0d4adcfe7ef1fd52c869a
441
py
Python
mmdet3d/core/anchor/__init__.py
HuangCongQing/mmdetection3d
63197070ec99f3d1b4569e7f23558646371fffdc
[ "Apache-2.0" ]
2
2022-01-28T01:43:48.000Z
2022-03-08T14:12:49.000Z
mmdet3d/core/anchor/__init__.py
HuangCongQing/mmdetection3d
63197070ec99f3d1b4569e7f23558646371fffdc
[ "Apache-2.0" ]
1
2021-10-02T15:11:59.000Z
2021-10-04T02:58:30.000Z
mmdet3d/core/anchor/__init__.py
HuangCongQing/mmdetection3d
63197070ec99f3d1b4569e7f23558646371fffdc
[ "Apache-2.0" ]
1
2021-08-30T06:16:47.000Z
2021-08-30T06:16:47.000Z
# Copyright (c) OpenMMLab. All rights reserved. from mmdet.core.anchor import build_anchor_generator from .anchor_3d_generator import (AlignedAnchor3DRangeGenerator, AlignedAnchor3DRangeGeneratorPerCls, Anchor3DRangeGenerator) __all__ = [ 'Aligned...
40.090909
70
0.709751
29
441
10.448276
0.586207
0.072607
0.132013
0
0
0
0
0
0
0
0
0.020649
0.231293
441
10
71
44.1
0.873156
0.102041
0
0
0
0
0.274112
0.274112
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
03a98e551f1502caec750eff2235e3f624baba42
422
py
Python
tests/ex8_tests.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
tests/ex8_tests.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
tests/ex8_tests.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
from nose.tools import * from exercises import ex8 def test_palindrome(): ''' Test whether our palindrome check returns True ''' test_is_palindrome = ex8.is_palindrome('radar') assert_true(test_palindrome) def test_not_palindrome(): ''' Test whether our palindrome check returns False ...
21.1
54
0.718009
54
422
5.314815
0.351852
0.146341
0.146341
0.167247
0.487805
0.320557
0.320557
0
0
0
0
0.00885
0.196682
422
19
55
22.210526
0.837758
0.222749
0
0
0
0
0.030405
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
03be16b71d5df8fec6290c0562c7583fd15661ab
26,373
py
Python
sysinv/sysinv/sysinv/sysinv/tests/api/test_helm_charts.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/tests/api/test_helm_charts.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/tests/api/test_helm_charts.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # """ Tests for the helm chart methods. """ import mock from six.moves import http_client from sysinv.tests.api import base from sysinv.tests.db import base as dbbase from sysinv.tests.db import utils as dbutils class FakeConduc...
47.950909
82
0.580442
2,711
26,373
5.395057
0.086315
0.055791
0.077055
0.031724
0.766375
0.729728
0.684398
0.666416
0.638726
0.621701
0
0.001746
0.326812
26,373
549
83
48.038251
0.822068
0.091723
0
0.568878
0
0
0.162162
0.005238
0
0
0
0
0.191327
1
0.094388
false
0.002551
0.012755
0.010204
0.147959
0.002551
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
03cf70b70e04dff18e7c128c10b1ca87882d373d
697
py
Python
src/eduid_webapp/lookup_mobile_proofing/schemas.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
null
null
null
src/eduid_webapp/lookup_mobile_proofing/schemas.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
161
2017-04-13T07:56:38.000Z
2021-03-12T13:46:38.000Z
src/eduid_webapp/lookup_mobile_proofing/schemas.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
3
2016-05-16T20:25:49.000Z
2018-07-27T12:10:58.000Z
# -*- coding: utf-8 -*- from marshmallow import fields from eduid_common.api.schemas.base import EduidSchema, FluxStandardAction from eduid_common.api.schemas.csrf import CSRFRequestMixin, CSRFResponseMixin from eduid_common.api.schemas.validators import validate_nin __author__ = 'lundberg' class LookupMobileProof...
30.304348
77
0.800574
69
697
7.956522
0.507246
0.04918
0.081967
0.098361
0.136612
0
0
0
0
0
0
0.001631
0.120517
697
22
78
31.681818
0.893964
0.030129
0
0
0
0
0.011869
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
0
1
0
1
0
0
2
03e02068990d33c803296a496627d839aa8395e7
158
py
Python
dbtest.py
AnykeyNL/AutonomousDB_AutonomousLinux_Python
2c7bc7379c639e4762164e5d681202a58928ea63
[ "Apache-2.0" ]
null
null
null
dbtest.py
AnykeyNL/AutonomousDB_AutonomousLinux_Python
2c7bc7379c639e4762164e5d681202a58928ea63
[ "Apache-2.0" ]
null
null
null
dbtest.py
AnykeyNL/AutonomousDB_AutonomousLinux_Python
2c7bc7379c639e4762164e5d681202a58928ea63
[ "Apache-2.0" ]
1
2020-08-04T08:51:17.000Z
2020-08-04T08:51:17.000Z
import cx_Oracle DB = "xxx_high" DB_USER = "admin" DB_PASSWORD = "password" connection = cx_Oracle.connect(DB_USER, DB_PASSWORD, DB) print ("Connected")
13.166667
56
0.734177
23
158
4.73913
0.565217
0.146789
0
0
0
0
0
0
0
0
0
0
0.14557
158
11
57
14.363636
0.807407
0
0
0
0
0
0.192308
0
0
0
0
0
0
1
0
false
0.333333
0.166667
0
0.166667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
03f7f6933e025ddd5c53810d695306a37e6f015d
204
py
Python
core/const.py
michakinchen1988/spotify-downloader
3db04ce63510236c9a7a00f7b30391683c4c31c3
[ "MIT" ]
null
null
null
core/const.py
michakinchen1988/spotify-downloader
3db04ce63510236c9a7a00f7b30391683c4c31c3
[ "MIT" ]
null
null
null
core/const.py
michakinchen1988/spotify-downloader
3db04ce63510236c9a7a00f7b30391683c4c31c3
[ "MIT" ]
1
2021-07-27T00:32:12.000Z
2021-07-27T00:32:12.000Z
import logzero _log_format = ("%(color)s%(levelname)s:%(end_color)s %(message)s") formatter = logzero.LogFormatter(fmt=_log_format) # options log = logzero.setup_logger(formatter=formatter) args = None
22.666667
66
0.759804
28
204
5.321429
0.607143
0.120805
0
0
0
0
0
0
0
0
0
0
0.093137
204
8
67
25.5
0.805405
0.034314
0
0
0
0
0.246154
0.184615
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
03fca20871cb164cff545a00227143d29ef6f47f
1,146
py
Python
cucoloris/background.py
woernerm/cucoloris
c551751d72e873802451cb9afdf83678438806c4
[ "MIT" ]
null
null
null
cucoloris/background.py
woernerm/cucoloris
c551751d72e873802451cb9afdf83678438806c4
[ "MIT" ]
null
null
null
cucoloris/background.py
woernerm/cucoloris
c551751d72e873802451cb9afdf83678438806c4
[ "MIT" ]
null
null
null
"""Defines a background widget to create a single-color background.""" from os.path import dirname as _dirname from typing import Optional as _Optional from kivy.lang.builder import Builder as _Builder from kivy.properties import ListProperty as _ListProperty from kivy.uix.widget import Widget as _Widget _Builder.lo...
31.833333
71
0.67452
155
1,146
4.83871
0.43871
0.026667
0.056
0.053333
0.085333
0.085333
0.085333
0.085333
0.085333
0
0
0.008102
0.246073
1,146
35
72
32.742857
0.859954
0.354276
0
0
0
0
0.026738
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ff005b367c5ea64c0b0770d45246378de3d85d1a
227
py
Python
settings.py
cowgoat88/dcord-bcoin
cc464597d45fd46d88fc7e051edcb736580155d8
[ "MIT" ]
null
null
null
settings.py
cowgoat88/dcord-bcoin
cc464597d45fd46d88fc7e051edcb736580155d8
[ "MIT" ]
1
2021-03-31T19:57:50.000Z
2021-03-31T19:57:50.000Z
settings.py
cowgoat88/dcord-bcoin
cc464597d45fd46d88fc7e051edcb736580155d8
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os load_dotenv() DISCORD_CLIENT = os.getenv('DISCORD_CLIENT') DISCORD_GUILD = os.getenv('DISCORD_GUILD') DISCORD_CHANNEL = os.getenv('DISCORD_CHANNEL') WORLDCOIN = os.getenv('WORLDCOIN')
22.7
46
0.792952
31
227
5.548387
0.354839
0.186047
0.261628
0
0
0
0
0
0
0
0
0
0.092511
227
9
47
25.222222
0.834951
0
0
0
0
0
0.22467
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ff099386e9d6fdebc72bb87d2f9efa87d694485c
848
py
Python
app/core/utils/urls.py
sololuz/cibb-web
665de9832e8a262f9051f4075572f5aed0553f6e
[ "BSD-3-Clause" ]
null
null
null
app/core/utils/urls.py
sololuz/cibb-web
665de9832e8a262f9051f4075572f5aed0553f6e
[ "BSD-3-Clause" ]
null
null
null
app/core/utils/urls.py
sololuz/cibb-web
665de9832e8a262f9051f4075572f5aed0553f6e
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding:utf-8 -*- import django_sites as sites from django.core.urlresolvers import reverse as django_reverse URL_TEMPLATE = "{scheme}://{domain}/{path}" def build_url(path, scheme="http", domain="localhost"): return URL_TEMPLATE.format(scheme=scheme, domain=domain, path=path.lstrip("/")) def is_absolu...
29.241379
90
0.708726
119
848
4.907563
0.386555
0.131849
0.066781
0.061644
0
0
0
0
0
0
0
0.001395
0.154481
848
28
91
30.285714
0.81311
0.213443
0
0
0
0
0.067588
0.039939
0
0
0
0
0
1
0.285714
false
0
0.142857
0.071429
0.785714
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
205d1226d2532017ddc86cb1c0e4bd29f812d038
286
py
Python
seki/utils.py
ariwaranosai/seki
e0ef5a212055329226aa6cb16be6df6fa9397b37
[ "MIT" ]
null
null
null
seki/utils.py
ariwaranosai/seki
e0ef5a212055329226aa6cb16be6df6fa9397b37
[ "MIT" ]
null
null
null
seki/utils.py
ariwaranosai/seki
e0ef5a212055329226aa6cb16be6df6fa9397b37
[ "MIT" ]
null
null
null
""" Useful functions """ def singleton(cls): """turn a class into a singleton class""" instances = {} def get_instance(*args, **kwargs): if cls not in instances: instances[cls] = cls(*args, **kwargs) return instances[cls] return get_instance
23.833333
49
0.604895
34
286
5.029412
0.529412
0.128655
0
0
0
0
0
0
0
0
0
0
0.265734
286
12
50
23.833333
0.814286
0.181818
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
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
205e569db1515e54181b82aafbfe8267d2e271fb
5,475
py
Python
mllaunchpad/model_interface.py
TheFenrisLycaon/mllaunchpad
9de65d1bee29c64f4c3dee536d036c4cfeb3f079
[ "Apache-2.0" ]
15
2019-07-20T17:23:29.000Z
2021-06-03T11:16:54.000Z
mllaunchpad/model_interface.py
TheFenrisLycaon/mllaunchpad
9de65d1bee29c64f4c3dee536d036c4cfeb3f079
[ "Apache-2.0" ]
97
2019-07-19T11:22:16.000Z
2022-03-22T14:17:25.000Z
mllaunchpad/model_interface.py
TheFenrisLycaon/mllaunchpad
9de65d1bee29c64f4c3dee536d036c4cfeb3f079
[ "Apache-2.0" ]
7
2019-07-25T09:26:25.000Z
2022-03-22T09:32:41.000Z
# Stdlib imports import abc import logging logger = logging.getLogger(__name__) class ModelMakerInterface(abc.ABC): """Abstract model factory interface for Data-Scientist-created models. Please inherit from this class and put your training code into the method "create_trained_model". This method will be...
48.026316
140
0.685479
737
5,475
4.994573
0.312076
0.0326
0.028253
0.03423
0.387395
0.375441
0.375441
0.375441
0.322195
0.297745
0
0.000743
0.262831
5,475
113
141
48.451327
0.911298
0.782283
0
0.176471
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0.117647
0
0.529412
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
206ba10a933fb72d2b19d0e9ab24a9f9550bd9cb
307
py
Python
HR_pythonIsLeap.py
bluewitch/Code-Blue-Python
07230fbc8e20d263950ad2476e79da12b64cff2d
[ "MIT" ]
null
null
null
HR_pythonIsLeap.py
bluewitch/Code-Blue-Python
07230fbc8e20d263950ad2476e79da12b64cff2d
[ "MIT" ]
null
null
null
HR_pythonIsLeap.py
bluewitch/Code-Blue-Python
07230fbc8e20d263950ad2476e79da12b64cff2d
[ "MIT" ]
1
2020-02-13T14:47:12.000Z
2020-02-13T14:47:12.000Z
def is_leap(year): leap = False # Write your logic here # thought process #if year%4==0: # return True #elif year%100==0: # return False #elif year%400==0: # return True # Optimized, Python 3 return ((year%4==0)and(year%100!=0)or(year%400==0))
20.466667
55
0.543974
45
307
3.688889
0.533333
0.126506
0.072289
0
0
0
0
0
0
0
0
0.1
0.315961
307
14
56
21.928571
0.690476
0.488599
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
206d6601ea3b48f7c66bd3d4ac31c2e1ee8263b1
182
py
Python
config/custom_components/ziggonext/const.py
LRvdLinden/homeassistant-config
4f0e8bb08329b8af08fc90cb1699a9314e297ab7
[ "MIT" ]
288
2021-04-27T07:25:04.000Z
2022-03-23T14:38:36.000Z
config/custom_components/ziggonext/const.py
givemhell/homeassistant-config
8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a
[ "MIT" ]
6
2021-04-30T10:47:24.000Z
2022-01-12T01:14:15.000Z
config/custom_components/ziggonext/const.py
givemhell/homeassistant-config
8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a
[ "MIT" ]
28
2021-04-30T23:58:07.000Z
2022-02-15T04:33:46.000Z
"""Constants for the Ziggo Mediabox Next integration.""" ZIGGO_API = "ziggo_api" CONF_COUNTRY_CODE = "country_code" RECORD = "record" REWIND = "rewind" FAST_FORWARD = "fast_forward"
26
56
0.758242
24
182
5.458333
0.625
0.122137
0
0
0
0
0
0
0
0
0
0
0.120879
182
7
57
26
0.81875
0.274725
0
0
0
0
0.354331
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
206f2e5690a8c8a5753b6c5a8fda903d7277cf28
2,159
py
Python
peeringdb_server/import_views.py
vegu/peeringdb
b4a025c912f14706642d7edc9db6da998e024b8f
[ "BSD-2-Clause" ]
null
null
null
peeringdb_server/import_views.py
vegu/peeringdb
b4a025c912f14706642d7edc9db6da998e024b8f
[ "BSD-2-Clause" ]
null
null
null
peeringdb_server/import_views.py
vegu/peeringdb
b4a025c912f14706642d7edc9db6da998e024b8f
[ "BSD-2-Clause" ]
null
null
null
import json import base64 from django.http import JsonResponse, HttpResponse from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate from django_namespace_perms.util import has_perms from ratelimit.decorators import ratelimit, is_ratelimite...
33.215385
101
0.654933
249
2,159
5.522088
0.437751
0.036364
0.061091
0.075636
0.129455
0
0
0
0
0
0
0.014119
0.245484
2,159
64
102
33.734375
0.829957
0.049097
0
0.0625
0
0
0.137457
0.014237
0
0
0
0
0
1
0.0625
false
0.041667
0.333333
0
0.541667
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
2079c90bff1772e1e966affe418857a7e4bb91bd
339
py
Python
source/ex17.py
aurelo/lphw
8e1ecddc52a7c91fd0f53d4174c1079c63a10a81
[ "MIT" ]
null
null
null
source/ex17.py
aurelo/lphw
8e1ecddc52a7c91fd0f53d4174c1079c63a10a81
[ "MIT" ]
null
null
null
source/ex17.py
aurelo/lphw
8e1ecddc52a7c91fd0f53d4174c1079c63a10a81
[ "MIT" ]
null
null
null
from sys import argv from os.path import exists script, in_file, out_file = argv print "Copying from %r to %r" % (in_file, out_file) print "Does the out file exists? %r" % exists(out_file) print "Ready, hit RETURN to continue, CTRL-C to abort!" raw_input() open(out_file, 'w').write(open(in_file).read()); print "A...
21.1875
55
0.710914
60
339
3.883333
0.55
0.150215
0.077253
0.111588
0
0
0
0
0
0
0
0
0.156342
339
15
56
22.6
0.814685
0
0
0
0
0
0.339233
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
2081bf6de4e032f1f9d0a3bf558e292b89055291
461
py
Python
addonpayments/api/common/responses.py
javisenberg/addonpayments-Python-SDK
8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac
[ "MIT" ]
2
2018-04-11T13:53:38.000Z
2018-12-09T13:10:18.000Z
addonpayments/api/common/responses.py
javisenberg/addonpayments-Python-SDK
8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac
[ "MIT" ]
2
2019-03-28T12:49:16.000Z
2019-03-28T12:52:09.000Z
addonpayments/api/common/responses.py
javisenberg/addonpayments-Python-SDK
8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac
[ "MIT" ]
8
2017-07-10T13:32:23.000Z
2021-08-23T10:55:52.000Z
# -*- encoding: utf-8 -*- from __future__ import absolute_import, unicode_literals from addonpayments.responses import SdkResponse class ApiResponse(SdkResponse): """ Class representing the API response. You can consult the specific documentation of all API response fields on the website https://de...
27.117647
99
0.726681
50
461
6.56
0.78
0.097561
0
0
0
0
0
0
0
0
0
0.002604
0.167028
461
16
100
28.8125
0.851563
0.409978
0
0
0
0
0.21371
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2081e6615943f8a86ea6dcb14ff82a37b5c3e2da
2,532
py
Python
config/scripts/sf_rotate_mysql_passwords.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
config/scripts/sf_rotate_mysql_passwords.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
config/scripts/sf_rotate_mysql_passwords.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import yaml import uuid import subprocess # from: # http://stackoverflow.com/questions/8640959/how-can-i-control-what-scalar-form-pyyaml-uses-for-my-data # flake8: noqa def should_use_block(value): for c in u"\u000a\u000d\u001c\u001d\u001e\u0085\u2028\u2029": if c in value: r...
33.76
118
0.625592
335
2,532
4.659701
0.41791
0.032031
0.04164
0.067265
0.225496
0.225496
0.118514
0.055734
0
0
0
0.018887
0.205371
2,532
74
119
34.216216
0.756958
0.116509
0
0.188679
0
0
0.283214
0.066427
0
0
0
0
0
0
null
null
0.113208
0.056604
null
null
0.018868
0
0
0
null
0
0
0
0
0
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
208f84844a77651e5c6b60a88b1d5aed349bd63c
298
py
Python
tests/valid/circular_extension.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
tests/valid/circular_extension.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
tests/valid/circular_extension.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from fhir_types import FHIR_Extension p: FHIR_Extension = { "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", "valueBoolean": True, "valueAddress": {"city": "Springfield", "state": "Massachusetts", "country": "US"}, "_valueTime": { "id": "123", }, }
27.090909
87
0.627517
29
298
6.310345
0.862069
0.142077
0
0
0
0
0
0
0
0
0
0.016393
0.181208
298
10
88
29.8
0.733607
0
0
0
0
0
0.47651
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
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
1
0
0
0
0
0
0
2
2097cd625dc7bed0891d01d8ae4ffee3bd6ebc99
137
py
Python
init_db.py
mengguoru/yourRobot
bc0276f36913932be50b99fa22b7debddf6d9e71
[ "MIT" ]
null
null
null
init_db.py
mengguoru/yourRobot
bc0276f36913932be50b99fa22b7debddf6d9e71
[ "MIT" ]
null
null
null
init_db.py
mengguoru/yourRobot
bc0276f36913932be50b99fa22b7debddf6d9e71
[ "MIT" ]
null
null
null
import pickle data = { 'aa':'blabla', } if __name__ == '__main__': with open('data.pkl','wb') as db: pickle.dump(data,db)
19.571429
37
0.576642
19
137
3.736842
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.226277
137
7
38
19.571429
0.669811
0
0
0
0
0
0.188406
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
20ae501dee2d73c590109443f239d98243ef2d97
581
py
Python
tests/test_is_host_available.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
4
2020-04-17T15:54:43.000Z
2020-11-08T06:39:05.000Z
tests/test_is_host_available.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
65
2020-01-05T21:45:17.000Z
2022-03-31T16:50:20.000Z
tests/test_is_host_available.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
null
null
null
from pywinos import WinOSClient def test_is_host_available_remote(): tool = WinOSClient('8.8.8.8') response = tool.is_host_available(port=53) assert response, 'Response is not True' def test_is_host_unavailable_remote(): tool = WinOSClient('8.8.8.8') response = tool.is_host_available(port=22) ...
26.409091
53
0.72117
82
581
4.890244
0.341463
0.089776
0.187032
0.097257
0.456359
0.279302
0.279302
0.279302
0.279302
0.279302
0
0.025
0.173838
581
21
54
27.666667
0.810417
0.061962
0
0.153846
0
0
0.157699
0
0
0
0
0
0.230769
1
0.230769
false
0
0.076923
0
0.307692
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
1
0
0
0
0
0
0
0
2
20c119d600f2e8bb548756d54a35842d203d9516
552
py
Python
main/migrations/0006_auto_20201231_0458.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
null
null
null
main/migrations/0006_auto_20201231_0458.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
null
null
null
main/migrations/0006_auto_20201231_0458.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
3
2021-01-05T18:40:57.000Z
2021-05-14T07:56:20.000Z
# Generated by Django 3.1.4 on 2020-12-31 04:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0005_auto_20201230_1633'), ] operations = [ migrations.AlterField( model_name='competition', name='end_time'...
23
50
0.583333
55
552
5.727273
0.672727
0.126984
0.15873
0.184127
0.507937
0.507937
0
0
0
0
0
0.080729
0.304348
552
23
51
24
0.739583
0.081522
0
0.470588
1
0
0.132673
0.045545
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
20c14c1456596b7495e0b1d777334751383c0c59
2,518
py
Python
python-dsl/buck_parser/struct.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
1
2018-02-28T06:26:56.000Z
2018-02-28T06:26:56.000Z
python-dsl/buck_parser/struct.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
1
2018-12-10T15:54:22.000Z
2018-12-10T19:30:37.000Z
python-dsl/buck_parser/struct.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import with_statement import copy import json class StructEncoder(json.JSONEncoder): """Extends built-in JSONEncoder to support Struct serialization.""" def default(self, o): ...
31.873418
91
0.664019
301
2,518
5.23588
0.44186
0.039975
0.041244
0.031726
0.106599
0.071066
0.071066
0.071066
0.071066
0
0
0.001555
0.233916
2,518
78
92
32.282051
0.815448
0.328435
0
0
0
0
0.044025
0
0
0
0
0
0
1
0.297297
false
0
0.162162
0.081081
0.783784
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
20c77c1c8433649c0e1526e0616294036f9ec64a
1,632
py
Python
env/lib/python3.8/site-packages/_plotly_utils/importers.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/_plotly_utils/importers.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/_plotly_utils/importers.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import importlib def relative_import(parent_name, rel_modules=(), rel_classes=()): """ Helper function to import submodules lazily in Python 3.7+ Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list o...
32
88
0.643995
204
1,632
4.705882
0.279412
0.072917
0.0375
0.020833
0.085417
0.054167
0
0
0
0
0
0.005853
0.267157
1,632
50
89
32.64
0.796823
0.27451
0
0
0
0
0.043517
0
0
0
0
0
0
1
0.130435
false
0
0.478261
0.043478
0.782609
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
20ccec155416be06b51221defce20e96420c2759
924
py
Python
renderchan/contrib/ffmpeg.py
ave4/RenderChan
979c150abb8fcffebfe39410ed638dc2edeb4933
[ "BSD-3-Clause" ]
30
2015-02-12T13:21:30.000Z
2019-12-09T07:29:47.000Z
renderchan/contrib/ffmpeg.py
ave4/RenderChan
979c150abb8fcffebfe39410ed638dc2edeb4933
[ "BSD-3-Clause" ]
53
2015-12-20T17:04:00.000Z
2019-11-11T07:54:50.000Z
renderchan/contrib/ffmpeg.py
ave4/RenderChan
979c150abb8fcffebfe39410ed638dc2edeb4933
[ "BSD-3-Clause" ]
7
2015-08-10T01:38:28.000Z
2020-02-14T20:06:28.000Z
__author__ = 'Konstantin Dmitriev' from renderchan.module import RenderChanModule from renderchan.utils import which import subprocess import os import random class RenderChanFfmpegModule(RenderChanModule): def __init__(self): RenderChanModule.__init__(self) self.conf['binary']=self.findBinary("...
25.666667
107
0.678571
96
924
6.385417
0.583333
0.039152
0.045677
0
0
0
0
0
0
0
0
0.01087
0.203463
924
35
108
26.4
0.822011
0.024892
0
0
0
0
0.088071
0
0
0
0
0.028571
0
1
0.181818
false
0
0.227273
0.090909
0.545455
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
20d738bb7fcb6220be8cb545c1d61a558af84d64
860
py
Python
webdev/users/urls.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
null
null
null
webdev/users/urls.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
103
2021-04-25T21:28:11.000Z
2022-03-15T01:36:31.000Z
webdev/users/urls.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
null
null
null
from django.urls import path from webdev.users import views from django.contrib.auth import views as auth_views urlpatterns = [ path('login/', views.login_view, name='login'), path('logout/', auth_views.LogoutView.as_view(), name='logout'), path('password-reset/', auth_views.PasswordResetView.as_view(templ...
71.666667
167
0.781395
114
860
5.640351
0.27193
0.202177
0.105754
0.111975
0.354588
0.354588
0.354588
0.278383
0.161742
0.161742
0
0.002503
0.07093
860
12
168
71.666667
0.802253
0
0
0
0
0
0.354239
0.200929
0
0
0
0
0
1
0
false
0.363636
0.272727
0
0.272727
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
20d9858742730a9f45537a15f559a969c21b5e26
2,615
py
Python
qlib/rl/reward.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
1
2021-12-14T13:48:38.000Z
2021-12-14T13:48:38.000Z
qlib/rl/reward.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
null
null
null
qlib/rl/reward.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import annotations from typing import Generic, Any, TypeVar, TYPE_CHECKING from qlib.typehint import final if TYPE_CHECKING: from .utils.env_wrapper import EnvWrapper SimulatorState = TypeVar("SimulatorState") class Rewa...
30.764706
113
0.676482
286
2,615
6.038462
0.405594
0.048639
0.031268
0.037058
0.063694
0
0
0
0
0
0
0.001982
0.228298
2,615
84
114
31.130952
0.853816
0.538432
0
0
0
0
0.055846
0
0
0
0
0.011905
0
1
0.2
false
0
0.16
0.04
0.56
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
20e1b6b253cd3a7c949a31dc6912f101b7ccd4af
1,197
py
Python
7dof_arm_reaching/environment.py
YilunZhou/RoCUS
fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4
[ "MIT" ]
7
2020-11-20T20:45:49.000Z
2021-12-14T19:27:20.000Z
7dof_arm_reaching/environment.py
YilunZhou/RoCUS
fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4
[ "MIT" ]
1
2021-03-03T03:57:21.000Z
2021-03-03T03:57:21.000Z
7dof_arm_reaching/environment.py
YilunZhou/RoCUS
fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4
[ "MIT" ]
4
2020-11-20T17:00:27.000Z
2021-04-01T00:53:50.000Z
import numpy as np from pybulletgym_rocus.envs.roboschool.envs.manipulation.panda_reacher_env import PandaReacherEnv class PandaEnv(PandaReacherEnv): ''' a modified environment that runs for a maximum of 500 time steps, but terminates as soon as the target is reached. also supports calculating the log probability...
34.2
129
0.716792
190
1,197
4.384211
0.447368
0.054022
0.039616
0.02401
0
0
0
0
0
0
0
0.037512
0.153718
1,197
34
130
35.205882
0.784798
0.203008
0
0
0
0
0.005314
0
0
0
0
0
0.086957
1
0.26087
false
0
0.086957
0.043478
0.521739
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
4554a8f3004d63b39eaf98c606679de48cf1f389
738
py
Python
api/logging_utils.py
idrissneumann/devoxx2021-redhat-amadeus-contest
2c444939251e9102aced740aaa20c75edec9c89b
[ "Apache-2.0" ]
null
null
null
api/logging_utils.py
idrissneumann/devoxx2021-redhat-amadeus-contest
2c444939251e9102aced740aaa20c75edec9c89b
[ "Apache-2.0" ]
null
null
null
api/logging_utils.py
idrissneumann/devoxx2021-redhat-amadeus-contest
2c444939251e9102aced740aaa20c75edec9c89b
[ "Apache-2.0" ]
null
null
null
import sys from datetime import datetime from common_utils import get_env_var def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def is_error_log(log_level): return any(log_level.upper() == l for l in ['ERROR', 'FATAL']) LOG_LEVEL = get_env_var('LOG_LEVEL', 'INFO').upper() def is_log_enab...
29.52
106
0.646341
111
738
4.036036
0.369369
0.196429
0.040179
0.058036
0.267857
0
0
0
0
0
0
0
0.196477
738
24
107
30.75
0.755481
0
0
0
0
0
0.084011
0
0
0
0
0
0
1
0.222222
false
0
0.166667
0.111111
0.5
0.222222
0
0
0
null
0
0
0
0
0
0
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
455f673103e0eed5fffa4839d6ae0ad86efdb013
1,911
py
Python
dl/layers/activation.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
10
2020-06-28T05:50:41.000Z
2022-01-30T01:31:43.000Z
dl/layers/activation.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
null
null
null
dl/layers/activation.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
1
2020-07-26T12:36:32.000Z
2020-07-26T12:36:32.000Z
import numpy as np from .layer_base import LayerBase class ReluLayer(LayerBase): def __init__(self): super().__init__() self.cache = {} def id(self): return "Relu" def forward(self, x): y = np.maximum(x, 0) self.cache["is_negative"] = (x < 0) return y ...
17.694444
72
0.513344
248
1,911
3.790323
0.205645
0.134043
0.06383
0.085106
0.455319
0.393617
0.329787
0.329787
0.329787
0.329787
0
0.010334
0.341706
1,911
107
73
17.859813
0.736884
0
0
0.538462
0
0
0.036649
0
0
0
0
0
0
1
0.246154
false
0
0.030769
0.061538
0.523077
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
45756c733858fb1b429fac0af8fad3f0bc5564a4
298
py
Python
ifpi/Anos em cachorro.py
AlexCaprian/Python
4d343330bb4e82f639ca103b119f0a9eeee916e0
[ "MIT" ]
null
null
null
ifpi/Anos em cachorro.py
AlexCaprian/Python
4d343330bb4e82f639ca103b119f0a9eeee916e0
[ "MIT" ]
null
null
null
ifpi/Anos em cachorro.py
AlexCaprian/Python
4d343330bb4e82f639ca103b119f0a9eeee916e0
[ "MIT" ]
null
null
null
#A variável 'i' recebe um valor pelo teclado do usuário. i=int(input(f'Quantos anos você tem?')) #A variável 'c' recebe um valor do resultado da formula de calculo entre i e 7 c=i*7 #imprime 'Se você fosse um cachorro, você teria {c} anos.' print(f'Se você fosse um cachorro, você teria {c} anos.')
49.666667
78
0.728188
58
298
3.741379
0.551724
0.082949
0.119816
0.119816
0.322581
0.322581
0.322581
0.322581
0.322581
0
0
0.008032
0.16443
298
6
79
49.666667
0.863454
0.634228
0
0
0
0
0.64486
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
457b8baa9dc2a57b69b19a76b35e3d431414817d
2,689
py
Python
applications/post/migrations/0003_auto_20210630_0138.py
diegovasconcelo/FusionAI
7dbd1c7c0465e742ed1d4a2604244abbfccbea59
[ "MIT" ]
null
null
null
applications/post/migrations/0003_auto_20210630_0138.py
diegovasconcelo/FusionAI
7dbd1c7c0465e742ed1d4a2604244abbfccbea59
[ "MIT" ]
null
null
null
applications/post/migrations/0003_auto_20210630_0138.py
diegovasconcelo/FusionAI
7dbd1c7c0465e742ed1d4a2604244abbfccbea59
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-30 01:38 import ckeditor_uploader.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
35.381579
131
0.599479
255
2,689
6.14902
0.282353
0.098214
0.159439
0.184949
0.485332
0.466837
0.220663
0.076531
0.076531
0.076531
0
0.013423
0.279658
2,689
75
132
35.853333
0.796076
0.015991
0
0.521739
1
0
0.142209
0.009834
0
0
0
0
0
1
0
false
0
0.057971
0
0.101449
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
4588c4fcc40ce3008dbd5ffa6e671ec8200362a1
323
py
Python
coding_challenge/ship_manager/apps.py
jojacobsen/coding_challenge
94335f00f57a6c4d64cbc2b282a0ca099445e866
[ "MIT" ]
1
2022-03-06T15:40:56.000Z
2022-03-06T15:40:56.000Z
coding_challenge/ship_manager/apps.py
jojacobsen/coding_challenge
94335f00f57a6c4d64cbc2b282a0ca099445e866
[ "MIT" ]
null
null
null
coding_challenge/ship_manager/apps.py
jojacobsen/coding_challenge
94335f00f57a6c4d64cbc2b282a0ca099445e866
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ShipManagerConfig(AppConfig): """ Register Ship Manager app in project. """ default_auto_field = "django.db.models.BigAutoField" name = "coding_challenge.ship_manager" verbose_name = _("Ship Manager...
24.846154
56
0.736842
38
323
6.052632
0.736842
0.143478
0
0
0
0
0
0
0
0
0
0
0.176471
323
12
57
26.916667
0.864662
0.114551
0
0
0
0
0.259259
0.214815
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
459c476dbb994977cccfc07529daecee67d5327b
1,004
py
Python
app/api/cms/schema/__init__.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
app/api/cms/schema/__init__.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
app/api/cms/schema/__init__.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
from typing import List, Optional from lin import BaseModel, ParameterError from pydantic import EmailStr, Field, validator class EmailSchema(BaseModel): email: Optional[str] = Field(description="用户邮箱") @validator("email") def check_email(cls, v, values, **kwargs): return EmailStr.validate(v) if...
29.529412
82
0.686255
121
1,004
5.570248
0.454545
0.094955
0.08457
0.071217
0.118694
0.118694
0
0
0
0
0
0.009913
0.196215
1,004
33
83
30.424242
0.825279
0
0
0.086957
0
0
0.088645
0
0
0
0
0
0
1
0.130435
false
0.26087
0.130435
0.043478
0.695652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
459c75fab109a09ee63edc358d41aeab08842a24
556
py
Python
setup.py
hamhaingaurav/Cypher
789224cb4a7539976c9e58bdf9f51e00a1a83514
[ "MIT" ]
null
null
null
setup.py
hamhaingaurav/Cypher
789224cb4a7539976c9e58bdf9f51e00a1a83514
[ "MIT" ]
null
null
null
setup.py
hamhaingaurav/Cypher
789224cb4a7539976c9e58bdf9f51e00a1a83514
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name = 'cypher', version = '1.0', author = 'shashi', author_email = 'skssunny30@gmail.com', description = 'Password Encryptor by suggesting wheather a password is strong or not', long_description_content_type = 'text/markdown', url = 'https://github.com/w...
30.888889
90
0.651079
58
556
6.155172
0.844828
0
0
0
0
0
0
0
0
0
0
0.011628
0.226619
556
17
91
32.705882
0.818605
0
0
0
0
0
0.471223
0
0
0
0
0
0
1
0
true
0.0625
0.0625
0
0.0625
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
1
1
0
0
0
0
0
2
459f489516bb7118fe1f7af1a23c4fa4c32e22bb
315
py
Python
sorting_visualizer/variables.py
debdutgoswami/sorting-visualizer
e39e805acf22339b8ee06f8c8cd483e9c03ba3a4
[ "MIT" ]
3
2020-01-07T15:47:32.000Z
2020-09-13T14:05:32.000Z
sorting_visualizer/variables.py
debdutgoswami/sorting-visualizer
e39e805acf22339b8ee06f8c8cd483e9c03ba3a4
[ "MIT" ]
3
2020-10-04T18:03:36.000Z
2020-10-08T07:13:40.000Z
sorting_visualizer/variables.py
debdutgoswami/sorting-visualizer
e39e805acf22339b8ee06f8c8cd483e9c03ba3a4
[ "MIT" ]
3
2020-10-04T18:15:54.000Z
2021-01-20T19:43:49.000Z
sortname = { 'bubblesort': f'Bubble Sort O(n\N{SUPERSCRIPT TWO})', 'insertionsort': f'Insertion Sort O(n\N{SUPERSCRIPT TWO})', 'selectionsort': f'Selection Sort O(n\N{SUPERSCRIPT TWO})', 'mergesort': 'Merge Sort O(n log n)', 'quicksort': 'Quick Sort O(n log n)', 'heapsort': 'Heap Sort O(n log n)' }
63
118
0.647619
49
315
4.163265
0.408163
0.147059
0.176471
0.102941
0.455882
0.308824
0
0
0
0
0
0
0.165079
315
5
119
63
0.775665
0
0
0
0
0
0.753205
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
45b6bbeb3cf897842dbb59970794a0753263b183
410
py
Python
osbot_jira/lambdas/elk_to_slack.py
pbx-gs/OSBot-jira
7677afee1f80398ddcccd6b45423bf6adc20b970
[ "Apache-2.0" ]
1
2021-04-02T05:58:23.000Z
2021-04-02T05:58:23.000Z
osbot_jira/lambdas/elk_to_slack.py
pbx-gs/OSBot-jira
7677afee1f80398ddcccd6b45423bf6adc20b970
[ "Apache-2.0" ]
1
2021-09-03T09:55:39.000Z
2021-09-03T09:55:39.000Z
osbot_jira/lambdas/elk_to_slack.py
filetrust/OSBot-jira
d753fff59cf938cf94a51bf8bc7981691524b686
[ "Apache-2.0" ]
2
2021-04-02T05:58:29.000Z
2021-09-03T09:43:29.000Z
from osbot_aws.Dependencies import load_dependency from osbot_aws.helpers.Lambda_Helpers import log_to_elk def run(event, context): try: load_dependency("elastic") from osbot_jira.api.elk.Elk_To_Slack import ELK_to_Slack return ELK_to_Slack().handle_lambda_event(event) except Exception...
34.166667
78
0.736585
61
410
4.622951
0.491803
0.070922
0.141844
0.092199
0
0
0
0
0
0
0
0.002933
0.168293
410
11
79
37.272727
0.824047
0
0
0
0
0
0.092683
0.053659
0
0
0
0
0
1
0.111111
false
0
0.333333
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
0
0
0
1
0
1
0
0
2
45c064d0dfd0fe78f2ae6705a1e636119d95f20a
406
py
Python
rsa_demo/app/forms.py
henocdz/cryptography_escom
67b619d8e59687e8ca42ce355458000415b0111d
[ "MIT" ]
1
2016-06-03T12:39:23.000Z
2016-06-03T12:39:23.000Z
rsa_demo/app/forms.py
henocdz/cryptography_escom
67b619d8e59687e8ca42ce355458000415b0111d
[ "MIT" ]
null
null
null
rsa_demo/app/forms.py
henocdz/cryptography_escom
67b619d8e59687e8ca42ce355458000415b0111d
[ "MIT" ]
null
null
null
from flask.ext.wtf import Form from wtforms import StringField, BooleanField, TextField, TextAreaField from wtforms.validators import Required, URL class EncryptForm(Form): e = StringField('e') n = StringField('n') url = StringField('URL public key in b64') from_url = BooleanField('PubKey Base64', def...
33.833333
74
0.736453
49
406
6.081633
0.591837
0.073826
0
0
0
0
0
0
0
0
0
0.011696
0.157635
406
11
75
36.909091
0.859649
0
0
0
0
0
0.133005
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
45c9f149c34ac07ae881545640d3fb333592273a
13,604
py
Python
tests/test_commands.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
3
2019-12-10T10:22:36.000Z
2019-12-12T16:36:11.000Z
tests/test_commands.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
null
null
null
tests/test_commands.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
2
2019-11-14T16:26:52.000Z
2021-07-26T04:53:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Unit tests for LiQuer argument parser and command registry. """ import pytest from liquer.commands import * from liquer.state import State class TestArgumentParser: def test_argument_parser(self): parser = GENERIC_AP + INT_AP + FLOAT_AP + BOOLEAN_AP me...
34.180905
100
0.577624
1,512
13,604
5.026455
0.101852
0.076974
0.057895
0.015395
0.744605
0.715658
0.67
0.649868
0.636974
0.618947
0
0.036607
0.30322
13,604
397
101
34.267003
0.765165
0.233681
0
0.539683
0
0
0.07501
0.016938
0
0
0
0
0.178571
1
0.154762
false
0.011905
0.099206
0.063492
0.333333
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
45cfb31451b7ccd0b5486b47b34bfd8bfeee9e8a
347
py
Python
problem6.py
edpark13/euler
f16b5688164bdeaffbd1541efd14b84b09cce067
[ "MIT" ]
null
null
null
problem6.py
edpark13/euler
f16b5688164bdeaffbd1541efd14b84b09cce067
[ "MIT" ]
null
null
null
problem6.py
edpark13/euler
f16b5688164bdeaffbd1541efd14b84b09cce067
[ "MIT" ]
null
null
null
def sum_square_difference(n): """ Find the difference between the sum of the numbers 1 to n squared and the numbers 1 to n squared added """ square = 0 sum = 0 for i in xrange(1, n + 1): square += i**2 sum += i return sum**2 - square if __name__ == '__main__': print ...
23.133333
77
0.599424
54
347
3.62963
0.5
0.091837
0.193878
0.132653
0.214286
0.214286
0
0
0
0
0
0.045833
0.308357
347
14
78
24.785714
0.770833
0
0
0
0
0
0.035556
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
45d4dcd79eeb74e6b5a6245fe2982ac8c5b70227
781
py
Python
CodeForces/Round553Div2/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
CodeForces/Round553Div2/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
CodeForces/Round553Div2/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
l, r = map(int, input().split()) mod = 10 ** 9 + 7 def f(x): if x == 0: return 0 res = 1 cnt = 2 f = 1 b_s = 2 e_s = 4 b_f = 3 e_f = 9 x -= 1 while x > 0: if f: res += cnt * (b_s + e_s) // 2 b_s = e_s + 2 e_s = e_s + 2 * (4 * ...
20.025641
65
0.303457
134
781
1.604478
0.216418
0.055814
0.04186
0.055814
0.24186
0
0
0
0
0
0
0.098039
0.542894
781
38
66
20.552632
0.504202
0
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.029412
false
0
0
0
0.088235
0.029412
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
45df7a9e90a8e22a5d2f412a2546ad4c08e905f1
630
py
Python
lessons/my_mysql.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
lessons/my_mysql.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
lessons/my_mysql.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb config = {'host': '127.0.0.1', 'db': 'fps_ins_master', 'user': 'root', 'passwd': 'wooduan'} try: conn = MySQLdb.connect(host=config['host'], db=config['db'], user=config['user'], passwd=config['passwd']) conn.set_character_set('utf8') cur = conn....
22.5
110
0.601587
90
630
4.155556
0.566667
0.053476
0
0
0
0
0
0
0
0
0
0.023669
0.195238
630
27
111
23.333333
0.714004
0.071429
0
0
0
0
0.249141
0
0
0
0
0
0
0
null
null
0.125
0.0625
null
null
0.1875
0
0
0
null
0
0
0
0
0
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
afe1c12b684b6cb0c6b6e172109e21e99d78f73e
293
py
Python
app_account/admin.py
bogdandrienko/chrysotile-minerals
47a4097e29ee40f2606807e28b2da466dfd7f3f4
[ "MIT" ]
1
2021-02-13T08:40:51.000Z
2021-02-13T08:40:51.000Z
app_account/admin.py
bogdandrienko/chrysotile-minerals
47a4097e29ee40f2606807e28b2da466dfd7f3f4
[ "MIT" ]
null
null
null
app_account/admin.py
bogdandrienko/chrysotile-minerals
47a4097e29ee40f2606807e28b2da466dfd7f3f4
[ "MIT" ]
null
null
null
from django.contrib import admin admin.site.site_header = 'Панель управления' # default: "Django Administration" admin.site.index_title = 'Администрирование сайта' # default: "Site administration" admin.site.site_title = 'Админка' # default: "Django site admin"
41.857143
87
0.703072
32
293
6.34375
0.5
0.133005
0.128079
0
0
0
0
0
0
0
0
0
0.201365
293
6
88
48.833333
0.867521
0.313993
0
0
0
0
0.238579
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
aff5a6502482469561a1efb845851b55a167ed6a
225
py
Python
seaborn2.py
tobiasaditya/datascience_beginner
fa6868073951259e0a5f8a702de0bcc17c13d295
[ "MIT" ]
null
null
null
seaborn2.py
tobiasaditya/datascience_beginner
fa6868073951259e0a5f8a702de0bcc17c13d295
[ "MIT" ]
null
null
null
seaborn2.py
tobiasaditya/datascience_beginner
fa6868073951259e0a5f8a702de0bcc17c13d295
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import pandas as pd import matplotlib.pyplot as plt import seaborn as sb database = sb.load_dataset("tips") print(database) sb.jointplot(x='tip',y='total_bill',data=database) plt.show()
20.454545
50
0.773333
39
225
4.410256
0.666667
0.116279
0
0
0
0
0
0
0
0
0
0
0.12
225
11
51
20.454545
0.868687
0
0
0
0
0
0.075221
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
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
b30383e1e0812334365d6d00fc5de29d0adbcd14
450
py
Python
dags/api_exports/s3_path_helper.py
AgentIQ/aiq-airflow
e4463e00602dcdae26334d252502781534feeac8
[ "Apache-2.0" ]
null
null
null
dags/api_exports/s3_path_helper.py
AgentIQ/aiq-airflow
e4463e00602dcdae26334d252502781534feeac8
[ "Apache-2.0" ]
12
2020-04-03T17:05:53.000Z
2021-12-01T22:55:39.000Z
dags/api_exports/s3_path_helper.py
AgentIQ/aiq-airflow
e4463e00602dcdae26334d252502781534feeac8
[ "Apache-2.0" ]
null
null
null
from airflow.models import Variable from tools.utils.file_util import append_date_to_path from os import path ENV = Variable.get('ENVIRONMENT') def get_exports_bucket_name(): return 'exports-api' def invalid_data_dir_name(): return 'invalid-data' def get_s3_invalid_data_subfolder_path(): return appe...
21.428571
65
0.66
58
450
4.758621
0.5
0.15942
0.086957
0.115942
0
0
0
0
0
0
0
0.00304
0.268889
450
20
66
22.5
0.835866
0
0
0
0
0
0.075556
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
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
1
0
0
0
2
b306da6d5f950c8b54bd072e16269a79509ad8f3
759
py
Python
app/config.py
gnstaxo/vlaskola
cc6c4b7f85fa7c484c03b80732cdc0a6d66e42d3
[ "MIT" ]
null
null
null
app/config.py
gnstaxo/vlaskola
cc6c4b7f85fa7c484c03b80732cdc0a6d66e42d3
[ "MIT" ]
null
null
null
app/config.py
gnstaxo/vlaskola
cc6c4b7f85fa7c484c03b80732cdc0a6d66e42d3
[ "MIT" ]
null
null
null
import os from datetime import timedelta from flask import url_for class Config(object): DATABASE = { 'name': 'vlaskola', 'engine': 'peewee.PostgresqlDatabase', 'user': 'postgres' } SECRET_KEY = os.environ.get("SECRET_KEY") SECURITY_REGISTERABLE = True SECURITY_SEND_REGIS...
27.107143
59
0.706192
87
759
5.793103
0.655172
0.071429
0.047619
0
0
0
0
0
0
0
0
0
0.202899
759
27
60
28.111111
0.833058
0
0
0
0
0
0.168643
0.061924
0
0
0
0
0
1
0
false
0.090909
0.136364
0
0.772727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
b3186f1e4992e9372f7e2b537bf6791464dc0c9f
284
py
Python
src/contnext_viewer/constants.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
3
2022-01-14T11:56:08.000Z
2022-01-14T12:36:42.000Z
src/contnext_viewer/constants.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
src/contnext_viewer/constants.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
CONTEXT = {'cell_line': 'Cell Line', 'cellline': 'Cell Line', 'cell_type': 'Cell Type', 'celltype': 'Cell Type', 'tissue': 'Tissue', 'interactome': 'Interactome' } HIDDEN_FOLDER = '.contnext' ZENODO_URL = 'https://zenodo.org/record/5831786/files/data.zip?download=1'
31.555556
74
0.65493
34
284
5.352941
0.647059
0.131868
0.131868
0
0
0
0
0
0
0
0
0.033058
0.147887
284
9
74
31.555556
0.719008
0
0
0
0
0
0.603509
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
b322432a799a1d8bfebdcca1a1d23a0b8419147c
869
py
Python
src/curt/curt/modules/smarthome/base_provider.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
108
2021-08-09T17:10:39.000Z
2022-03-21T21:59:03.000Z
src/curt/curt/modules/smarthome/base_provider.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
15
2021-09-19T01:25:25.000Z
2022-03-28T18:47:49.000Z
src/curt/curt/modules/smarthome/base_provider.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
14
2021-08-10T04:42:17.000Z
2022-03-28T16:30:34.000Z
""" Copyright (C) Cortic Technology Corp. - All Rights Reserved Written by Michael Ng <michaelng@cortic.ca>, 2021 """ from abc import abstractmethod class BaseProvider: def __init__(self): self.token = "" @abstractmethod def config_control_handler(self, params): pass def command(se...
24.138889
59
0.634062
99
869
5.363636
0.434343
0.12806
0.084746
0.071563
0.222222
0.135593
0
0
0
0
0
0.0078
0.262371
869
36
60
24.138889
0.820593
0.125432
0
0.333333
0
0
0.098535
0
0
0
0
0
0
1
0.25
false
0.166667
0.041667
0
0.458333
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
b3257a07a0498038daca551c93dd11773e3cde75
261
py
Python
react-python/leadmanager/leadmanager/urls.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
null
null
null
react-python/leadmanager/leadmanager/urls.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
6
2021-04-08T20:20:47.000Z
2022-02-13T20:21:29.000Z
react-python/leadmanager/leadmanager/urls.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('', include('frontend.urls')), # home page react path('', include('leads.urls')), # leads page api path('', include('accounts.urls')), # accounts page api ]
26.1
58
0.67433
33
261
5.333333
0.484848
0.25
0
0
0
0
0
0
0
0
0
0
0.164751
261
9
59
29
0.807339
0.183908
0
0
0
0
0.173077
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
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
b32c54c34d8c482d4cbe8eb7df6bc337529fc1cb
13,751
py
Python
tools/moduletests/unit/test_arpignore.py
ketanbhut/aws-ec2rescue-linux
3a4c096f31005ea3b3c36bd8e6f840d457ccc937
[ "Apache-2.0" ]
null
null
null
tools/moduletests/unit/test_arpignore.py
ketanbhut/aws-ec2rescue-linux
3a4c096f31005ea3b3c36bd8e6f840d457ccc937
[ "Apache-2.0" ]
null
null
null
tools/moduletests/unit/test_arpignore.py
ketanbhut/aws-ec2rescue-linux
3a4c096f31005ea3b3c36bd8e6f840d457ccc937
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # # or in the "license" f...
52.888462
116
0.61661
1,592
13,751
5.146985
0.157035
0.076886
0.117891
0.078594
0.749085
0.719185
0.696241
0.664633
0.625946
0.605077
0
0.008993
0.272198
13,751
259
117
53.092664
0.809752
0.080794
0
0.552885
0
0.019231
0.256288
0.146394
0
0
0.001428
0
0.269231
1
0.081731
false
0
0.052885
0.009615
0.153846
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
b3410b7be2d9e7a7ca55f4f09e61f02b2e5dc114
15,379
py
Python
radical_translations/core/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
3
2022-02-08T18:03:44.000Z
2022-03-18T18:10:43.000Z
radical_translations/core/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
19
2020-05-11T15:36:35.000Z
2022-02-08T11:26:40.000Z
radical_translations/core/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict import pytest from radical_translations.agents.models import Organisation, Person from radical_translations.core.models import ( Classification, Contribution, Resource, ResourceRelationship, Title, ) from radical_translations.utils.models...
38.066832
88
0.675597
1,845
15,379
5.406504
0.069919
0.047018
0.080602
0.071579
0.806516
0.713383
0.667469
0.59589
0.544762
0.446917
0
0.002013
0.224657
15,379
403
89
38.16129
0.834535
0
0
0.48318
0
0
0.076143
0
0
0
0
0
0.348624
1
0.070336
false
0
0.018349
0
0.103976
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b34659616a666e655e69acc258aeb8b0540e5cba
498
py
Python
Bionic/core/Text.py
TarunavBA/Bionic
1b8981e9f4615db28a2a6800b5f1e0f0b83beed5
[ "MIT" ]
4
2021-11-11T09:47:57.000Z
2021-11-11T14:38:50.000Z
Bionic/core/Text.py
TarunavBA/Bionic
1b8981e9f4615db28a2a6800b5f1e0f0b83beed5
[ "MIT" ]
2
2021-11-11T09:41:18.000Z
2021-11-11T14:12:23.000Z
Bionic/core/Text.py
TarunavBA/Bionic
1b8981e9f4615db28a2a6800b5f1e0f0b83beed5
[ "MIT" ]
1
2021-11-11T14:02:00.000Z
2021-11-11T14:02:00.000Z
def Text(Text="", classname="", Type="h1", TextStyle="", Id="0"): if TextStyle != "": if classname != "": return f"""<{Type} id={Id} class='{classname}' style='{TextStyle}'>{Text}</{Type}>""" else: return f"""<{Type} id={Id} style='{TextStyle}'>{Text}</{Type}>""" else: ...
38.307692
97
0.463855
54
498
4.277778
0.259259
0.121212
0.190476
0.225108
0.753247
0.580087
0.580087
0.580087
0.34632
0
0
0.005391
0.25502
498
12
98
41.5
0.617251
0
0
0.454545
0
0
0.417671
0.210843
0
0
0
0
0
1
0.090909
false
0
0
0
0.454545
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
b348724e3c00bf807ec5e719cacee4f0dcc38030
1,964
py
Python
gf2_mul.py
fast-crypto-lab/Frobenius_AFFT
219893fbc5a37edb541cfb47cd46071bb79d3835
[ "MIT" ]
11
2018-02-17T04:08:58.000Z
2021-12-14T02:17:46.000Z
gf2_mul.py
fast-crypto-lab/Frobenius_AFFT
219893fbc5a37edb541cfb47cd46071bb79d3835
[ "MIT" ]
null
null
null
gf2_mul.py
fast-crypto-lab/Frobenius_AFFT
219893fbc5a37edb541cfb47cd46071bb79d3835
[ "MIT" ]
3
2018-03-12T06:17:36.000Z
2021-05-25T11:15:48.000Z
# Copyright (C) 2017 Ming-Shing Chen def gf2_mul( a , b ): return a&b # gf4 := gf2[x]/x^2+x+1 # 4 and , 3 xor def gf4_mul( a , b ): a0 = a&1 a1 = (a>>1)&1 b0 = b&1 b1 = (b>>1)&1 ab0 = a0&b0 ab1 = (a1&b0)^(a0&b1) ab2 = a1&b1 ab0 ^= ab2 ab1 ^= ab2 ab0 ^= (ab1<<1) return ab0 # gf16 := gf4[y]/y^...
21.11828
64
0.539715
378
1,964
2.703704
0.156085
0.053816
0.034247
0.041096
0.204501
0.17319
0.148728
0.113503
0.068493
0.068493
0
0.261954
0.265275
1,964
92
65
21.347826
0.446292
0.153259
0
0.056338
0
0
0
0
0
0
0.042373
0
0
1
0.112676
false
0
0
0.014085
0.225352
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
b3510d12c4a5ad5e4ba7e1619068d9f611a5a69e
1,190
py
Python
config/atari/env_wrapper.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
1
2021-12-12T09:04:34.000Z
2021-12-12T09:04:34.000Z
config/atari/env_wrapper.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
null
null
null
config/atari/env_wrapper.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
null
null
null
import numpy as np from core.game import Game from core.utils import arr_to_str class AtariWrapper(Game): def __init__(self, env, discount: float, cvt_string=True): """Atari Wrapper Parameters ---------- env: Any another env wrapper discount: float d...
27.045455
76
0.617647
142
1,190
5
0.387324
0.076056
0.033803
0.042254
0.273239
0.273239
0.273239
0.273239
0.273239
0.273239
0
0.002367
0.289916
1,190
43
77
27.674419
0.83787
0.159664
0
0.26087
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.130435
0.043478
0.521739
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
b35491db9849a7903d7123c4ca5120ff9a494fc3
524
py
Python
src/chat/views.py
rehhg/chat-app
07e3a1a3b222e18905bfa0f74597cfa5f055e1b0
[ "Apache-2.0" ]
null
null
null
src/chat/views.py
rehhg/chat-app
07e3a1a3b222e18905bfa0f74597cfa5f055e1b0
[ "Apache-2.0" ]
6
2019-12-05T09:30:43.000Z
2021-09-22T18:03:06.000Z
src/chat/views.py
rehhg/chat-app
07e3a1a3b222e18905bfa0f74597cfa5f055e1b0
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model from django.shortcuts import get_object_or_404 from .models import Chat, Contact User = get_user_model() def get_last_10_messages(chat_id): chat = get_object_or_404(Chat, id=chat_id) return reversed(chat.messages.order_by('-timestamp').all()[:10]) def get_use...
24.952381
68
0.778626
86
524
4.383721
0.325581
0.095491
0.145889
0.185676
0.206897
0.137931
0.137931
0.137931
0
0
0
0.041485
0.125954
524
20
69
26.2
0.781659
0
0
0
0
0
0.019084
0
0
0
0
0
0
1
0.25
false
0
0.25
0.083333
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
b36066fa60b3b8a3a79900f3ccf72771d6fcc450
180
py
Python
functions.py
iamnicoj/pythonplay
f847038524c59a5fe658712a2cf4f904ad52401e
[ "MIT" ]
null
null
null
functions.py
iamnicoj/pythonplay
f847038524c59a5fe658712a2cf4f904ad52401e
[ "MIT" ]
6
2021-03-02T21:28:15.000Z
2021-03-17T23:35:44.000Z
functions.py
iamnicoj/pythonplay
f847038524c59a5fe658712a2cf4f904ad52401e
[ "MIT" ]
null
null
null
import math def addition (x, y): return x + y def circle_area (r): return math.pi * (r ** 2) print(f"add 1 + 2 = {addition(1, 2)}") print(f"area 2 = {circle_area(2)}")
15
38
0.577778
33
180
3.090909
0.484848
0.039216
0.137255
0
0
0
0
0
0
0
0
0.050725
0.233333
180
11
39
16.363636
0.688406
0
0
0
0
0
0.294444
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.714286
0.285714
0
0
0
null
0
0
0
0
0
0
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
2fa91e4679e20e123785be90b3eabd53aba8c4b5
699
py
Python
x_rebirth_station_calculator/station_data/ol__technology_megacomplex.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
1
2016-04-17T11:00:22.000Z
2016-04-17T11:00:22.000Z
x_rebirth_station_calculator/station_data/ol__technology_megacomplex.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
x_rebirth_station_calculator/station_data/ol__technology_megacomplex.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
from x_rebirth_station_calculator.station_data import modules from x_rebirth_station_calculator.station_data.station_base import Station names = {'L044': 'Technology Megacomplex', 'L049': 'Techno-Megaplex'} smodules = [modules.QTubeYFab(production_method='ar', efficiency=174), modules.QTubeYFab(p...
46.6
74
0.738197
75
699
6.666667
0.413333
0.192
0.216
0.336
0.658
0.534
0.16
0
0
0
0
0.040404
0.150215
699
14
75
49.928571
0.801347
0
0
0
0
0
0.081545
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
2fae73d2344876612b9d4f846c244a1e9cfde325
179
py
Python
python_BJ/10872_recursion_factorial.py
DongUk-Park/im_coma
b5c1acdea3957dead6d884f5d4b257df3ae931aa
[ "MIT" ]
null
null
null
python_BJ/10872_recursion_factorial.py
DongUk-Park/im_coma
b5c1acdea3957dead6d884f5d4b257df3ae931aa
[ "MIT" ]
1
2022-03-22T02:30:53.000Z
2022-03-22T02:31:43.000Z
python_BJ/10872_recursion_factorial.py
DongUk-Park/im_coma
b5c1acdea3957dead6d884f5d4b257df3ae931aa
[ "MIT" ]
null
null
null
def factorial(n): if n == 0: return 1 elif n == 1: return 1 else: return factorial(n-1) * n example = int(input()) print(factorial(example))
14.916667
33
0.530726
25
179
3.8
0.52
0.210526
0
0
0
0
0
0
0
0
0
0.042373
0.340782
179
12
34
14.916667
0.762712
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.444444
0.111111
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
2fd1561b101a01e25ce5c2b3bb703bdaebce6934
2,071
py
Python
api/python/src/tgdb/impl/atomics.py
TIBCOSoftware/tgdb-client
92d0c8401003420cacdd90de56db877eae2d02d1
[ "Apache-2.0" ]
19
2018-01-22T19:45:34.000Z
2018-11-21T20:51:17.000Z
api/python/src/tgdb/impl/atomics.py
TIBCOSoftware/tgdb-client
92d0c8401003420cacdd90de56db877eae2d02d1
[ "Apache-2.0" ]
null
null
null
api/python/src/tgdb/impl/atomics.py
TIBCOSoftware/tgdb-client
92d0c8401003420cacdd90de56db877eae2d02d1
[ "Apache-2.0" ]
8
2016-10-29T17:41:06.000Z
2021-02-25T19:18:49.000Z
""" * Copyright 2019 TIBCO Software 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. * A copy of the License is included in the distribution package with this file. * You also may obtain a copy of the L...
24.364706
99
0.610333
285
2,071
4.4
0.501754
0.089314
0.095694
0.066986
0.220893
0.177033
0.177033
0.177033
0.15311
0.15311
0
0.023364
0.276678
2,071
84
100
24.654762
0.813752
0.512796
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.238095
false
0
0.047619
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
2fd621bcac24989af51f35582819e2cd47078101
2,398
py
Python
clima/password_store.py
d3rp/fissle
770a140e42e6d8f7d55b3211a6ba691d2a915a2d
[ "Apache-2.0" ]
1
2021-05-21T12:54:32.000Z
2021-05-21T12:54:32.000Z
clima/password_store.py
d3rp/fissle
770a140e42e6d8f7d55b3211a6ba691d2a915a2d
[ "Apache-2.0" ]
4
2020-03-24T17:37:35.000Z
2020-12-03T13:22:35.000Z
clima/password_store.py
d3rp/fissle
770a140e42e6d8f7d55b3211a6ba691d2a915a2d
[ "Apache-2.0" ]
null
null
null
import glob from pathlib import Path from subprocess import check_output PW_STORE_PATH = str(Path.home() / ".password-store") def get_gpg_id(rel_p, mapped_gpg_ids): # print(f'looking for gpg-id in {rel_p}') if rel_p not in mapped_gpg_ids: if len(rel_p) > 2: return get_gpg_id(str(Path(rel...
26.065217
92
0.619683
365
2,398
3.827397
0.30137
0.050107
0.077309
0.021475
0.112384
0.080888
0.080888
0.080888
0.080888
0.080888
0
0.001684
0.257298
2,398
91
93
26.351648
0.782706
0.130108
0
0.237288
0
0
0.108225
0.046657
0
0
0
0.010989
0
1
0.135593
false
0.050847
0.050847
0.016949
0.305085
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
2fda5ea88b8dc238f7d09610ce06d4c604e53aa9
690
py
Python
plugins/auth/fps_auth/config.py
jtpio/jupyverse
2419c7d2cee618b791908f8a63db9f7b18cab78e
[ "MIT" ]
null
null
null
plugins/auth/fps_auth/config.py
jtpio/jupyverse
2419c7d2cee618b791908f8a63db9f7b18cab78e
[ "MIT" ]
null
null
null
plugins/auth/fps_auth/config.py
jtpio/jupyverse
2419c7d2cee618b791908f8a63db9f7b18cab78e
[ "MIT" ]
null
null
null
from fps.config import PluginModel, get_config # type: ignore from fps.hooks import register_config, register_plugin_name # type: ignore from pydantic import SecretStr from typing import Literal class AuthConfig(PluginModel): client_id: str = "" client_secret: SecretStr = SecretStr("") redirect_uri: str...
27.6
75
0.711594
88
690
5.386364
0.590909
0.029536
0.059072
0
0
0
0
0
0
0
0
0
0.192754
690
24
76
28.75
0.850987
0.12029
0
0
0
0
0.072968
0
0
0
0
0.041667
0
1
0.055556
false
0
0.222222
0.055556
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
1
0
0
0
0
0
0
0
1
0
0
2
2fdcf38e782e03a1735de2215b700a65d3019698
61
py
Python
kmeans_practice/__init__.py
Miaotaizhou/Rush
22c4883bc6b3ca74cfe4f19374245b0feeca9242
[ "Unlicense" ]
1
2019-06-02T07:35:04.000Z
2019-06-02T07:35:04.000Z
matplot/__init__.py
Miaotaizhou/Rush
22c4883bc6b3ca74cfe4f19374245b0feeca9242
[ "Unlicense" ]
null
null
null
matplot/__init__.py
Miaotaizhou/Rush
22c4883bc6b3ca74cfe4f19374245b0feeca9242
[ "Unlicense" ]
null
null
null
#! usr/bin/python3 # *-* coding=UTF-8 *-* __author__ = "Rush"
20.333333
22
0.606557
8
61
4.125
1
0
0
0
0
0
0
0
0
0
0
0.037736
0.131148
61
3
23
20.333333
0.584906
0.622951
0
0
0
0
0.181818
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
2fe3e8b0d9b68720308882034355271028be5908
511
py
Python
Others/code_festival/code-formula-2014-quala/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/code_festival/code-formula-2014-quala/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/code_festival/code-formula-2014-quala/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): a, b = map(int, input().split()) pins = ['x' for _ in range(10)] p = list(map(int, input().split())) for pi in p: pins[pi - 1] = '.' if b > 0: q = list(map(int, input().split())) for qi in q: pins[qi - 1] = 'o' print(...
18.925926
43
0.457926
77
511
2.922078
0.415584
0.16
0.213333
0.266667
0.551111
0.382222
0
0
0
0
0
0.033333
0.295499
511
26
44
19.653846
0.591667
0.041096
0
0
0
0
0.030738
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.0625
0.25
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
2ff03c06b3c15b5db327599412c4e9192c9280a3
2,900
py
Python
mnist_models/models.py
kevinnowland/mnist-models
34c3d5c1aa5a6b394b26bf828fd955e77010ab28
[ "MIT" ]
1
2021-10-12T19:53:56.000Z
2021-10-12T19:53:56.000Z
mnist_models/models.py
kevinnowland/mnist-models
34c3d5c1aa5a6b394b26bf828fd955e77010ab28
[ "MIT" ]
null
null
null
mnist_models/models.py
kevinnowland/mnist-models
34c3d5c1aa5a6b394b26bf828fd955e77010ab28
[ "MIT" ]
null
null
null
"""module of classes holding models, pretrained or otherwise. The SVMModel and LogisticModel classes do not admit any hyperparameter changes, so any change requires using the basic MnistModel class. """ import numpy as np from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score fr...
27.102804
73
0.621724
358
2,900
4.843575
0.307263
0.046713
0.044983
0.025952
0.16263
0.16263
0.130334
0.085352
0
0
0
0.001918
0.281034
2,900
106
74
27.358491
0.829736
0.381724
0
0.175
0
0
0.035264
0.032116
0
0
0
0
0
1
0.25
false
0
0.125
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2ff8683d54f0baf2f067b5ed99fb95d4bfc93daa
1,552
py
Python
sentiment_analyser/tests/task.py
gorkemyontem/SWE-573-2020
6a9ca57d294066fcc0db640f45d38d7341754a68
[ "MIT" ]
null
null
null
sentiment_analyser/tests/task.py
gorkemyontem/SWE-573-2020
6a9ca57d294066fcc0db640f45d38d7341754a68
[ "MIT" ]
35
2020-11-02T17:06:35.000Z
2021-03-10T07:56:03.000Z
sentiment_analyser/tests/task.py
gorkemyontem/SWE-573-2020
6a9ca57d294066fcc0db640f45d38d7341754a68
[ "MIT" ]
1
2021-02-02T14:38:27.000Z
2021-02-02T14:38:27.000Z
from django.test import TestCase from accounts.models import CustomUser from analyser.models import SentenceAnalysis, SubmissionAnalysis, CommentAnalysis, TagMeAnalysis, TagMeSentenceAnalysis from analyser.tasks import one_time_schedules, polarity_analysis_submission_task, polarity_analysis_comment_task, tagme_analysis...
47.030303
143
0.808634
185
1,552
6.491892
0.297297
0.133222
0.108243
0.124896
0.257286
0.174854
0.084929
0.084929
0
0
0
0.008811
0.122423
1,552
32
144
48.5
0.872981
0
0
0
0
0
0.158607
0.158607
0
0
0
0
0.115385
1
0.153846
false
0
0.423077
0
0.615385
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
6425f2c944c2381e7dfa5825c89f2ef3d64a2cae
176
py
Python
Strings/task1.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
Strings/task1.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
Strings/task1.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
mystr="Python is a multipurpose and simply learning langauge" for i in mystr: print(i,end=" ") print() print(mystr.find("simply")) print(mystr[0:11]+ " programming")
14.666667
62
0.681818
26
176
4.615385
0.692308
0.166667
0
0
0
0
0
0
0
0
0
0.020408
0.164773
176
11
63
16
0.795918
0
0
0
0
0
0.417143
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
0
1
0
2
6436e8075fa6e700f03151fbf03a3ac9c13938d5
2,418
py
Python
pirates/pvp/SiegeManagerBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/pvp/SiegeManagerBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/pvp/SiegeManagerBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.pvp.SiegeManagerBase from pirates.piratesbase import PLocalizer class SiegeManagerBase: __module__ = __name__ ANNOUNCER...
32.675676
104
0.682796
224
2,418
7.191964
0.325893
0.067039
0.063315
0.078212
0.157666
0
0
0
0
0
0
0.025876
0.232837
2,418
74
105
32.675676
0.842588
0.084367
0
0.056604
0
0
0.022172
0
0
0
0
0
0
1
0.301887
false
0
0.018868
0.113208
0.490566
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
ff26022a0d5a9ce7ac9b056578febf2cfa016805
1,475
py
Python
nixio/__init__.py
hkchekc/nixpy
632dae8ab46a770111b529c2c8ee5c4acb87aaab
[ "BSD-3-Clause" ]
null
null
null
nixio/__init__.py
hkchekc/nixpy
632dae8ab46a770111b529c2c8ee5c4acb87aaab
[ "BSD-3-Clause" ]
null
null
null
nixio/__init__.py
hkchekc/nixpy
632dae8ab46a770111b529c2c8ee5c4acb87aaab
[ "BSD-3-Clause" ]
1
2021-06-09T11:31:38.000Z
2021-06-09T11:31:38.000Z
# -*- coding: utf-8 -*- # Copyright © 2014, German Neuroinformatics Node (G-Node) # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICENSE file in the root of the Project. # NIX object classes from .f...
33.522727
78
0.738305
177
1,475
6.056497
0.485876
0.022388
0.026119
0.035448
0
0
0
0
0
0
0
0.004078
0.168814
1,475
43
79
34.302326
0.869494
0.208136
0
0
0
0
0.247405
0
0
0
0
0
0
1
0
false
0
0.714286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ff3463474b813d6e888b77f0d45642a0ba6df6cd
521
py
Python
libtcd/compat.py
dairiki/python-libtcd
c9d1fd3f30e3088f125bf05fb592f30daf9de51d
[ "BSD-3-Clause" ]
null
null
null
libtcd/compat.py
dairiki/python-libtcd
c9d1fd3f30e3088f125bf05fb592f30daf9de51d
[ "BSD-3-Clause" ]
null
null
null
libtcd/compat.py
dairiki/python-libtcd
c9d1fd3f30e3088f125bf05fb592f30daf9de51d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from __future__ import absolute_import from six import text_type try: from collections import OrderedDict # noqa except ImportError: # pragma: NO COVER from ordereddict import OrderedDict # noqa def bytes_(s, encoding='latin-1', errors='strict'): ""...
26.05
61
0.639155
65
521
4.984615
0.553846
0.08642
0.12963
0.092593
0.216049
0.216049
0.216049
0
0
0
0
0.004975
0.228407
521
19
62
27.421053
0.800995
0.293666
0
0
0
0
0.037464
0
0
0
0
0
0
1
0.1
false
0
0.5
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
ff600fe0862f46bd480b7c108bdd6917a0602990
533
py
Python
molsysmt/item/openmm_PDBFile/to_mdtraj_Topology.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/openmm_PDBFile/to_mdtraj_Topology.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/openmm_PDBFile/to_mdtraj_Topology.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt._private.digestion import * def to_mdtraj_Topology(item, atom_indices='all', syntaxis='MolSysMT'): if check: digest_item(item, 'openmm.PDBFile') atom_indices = digest_atom_indices(atom_indices) from .to_openmm_Topology import to_openmm...
28.052632
70
0.772983
71
533
5.394366
0.309859
0.172324
0.125326
0.120104
0.120104
0
0
0
0
0
0
0
0.155722
533
18
71
29.611111
0.851111
0
0
0
0
0
0.046992
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
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
ff84e0acd9eeee88b162afdeb1c68b61e29bbceb
15,667
py
Python
test_nmd.py
jessicalettes/nmd-exons
2f014c952ec17b4b3936ff504b6406abc2cab4e4
[ "MIT" ]
null
null
null
test_nmd.py
jessicalettes/nmd-exons
2f014c952ec17b4b3936ff504b6406abc2cab4e4
[ "MIT" ]
null
null
null
test_nmd.py
jessicalettes/nmd-exons
2f014c952ec17b4b3936ff504b6406abc2cab4e4
[ "MIT" ]
null
null
null
import gffutils import pandas.util.testing as pdt import pandas as pd import pytest @pytest.fixture def database(): return '/Users/rhythmicstar/projects/exon_evolution//gencode.v19.' \ 'annotation.outrigger.nmdtest.gtf.db' @pytest.fixture def exon_ids(): return ('exon:chr10:101510126-101510153:+'...
46.489614
79
0.521478
1,436
15,667
5.470752
0.155292
0.09165
0.04277
0.033096
0.652113
0.60998
0.585412
0.554099
0.509801
0.509801
0
0.336262
0.360694
15,667
336
80
46.627976
0.448083
0
0
0.53125
0
0
0.372503
0.311802
0
0
0
0
0.034722
1
0.104167
false
0
0.017361
0.069444
0.197917
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
ffa01cd378091f29a97da598df11c7c6f86be82c
487
py
Python
python/makoutil.py
WalrusCow/wmcd.ca
67339f82aa2121d4a6d32e9fe5112819c7106450
[ "MIT" ]
null
null
null
python/makoutil.py
WalrusCow/wmcd.ca
67339f82aa2121d4a6d32e9fe5112819c7106450
[ "MIT" ]
3
2015-03-05T04:52:21.000Z
2015-03-07T07:57:05.000Z
python/makoutil.py
WalrusCow/blerg
67339f82aa2121d4a6d32e9fe5112819c7106450
[ "MIT" ]
null
null
null
import os import functools from mako.lookup import TemplateLookup DIR = os.path.dirname(os.path.abspath(__file__)) templateDirs = [os.path.join(DIR, 'templates')] templateLookup = TemplateLookup(directories=templateDirs) def serveTemplate(path): def deco(func): @functools.wraps(func) def _serve(...
25.631579
57
0.687885
55
487
5.963636
0.527273
0.054878
0
0
0
0
0
0
0
0
0
0
0.197125
487
18
58
27.055556
0.838875
0
0
0
0
0
0.01848
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0
0.642857
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
ffa3b0352abacb60759e4f95084d6f64481920aa
1,910
py
Python
OR_web_GUI/packages/extendGPIO.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
null
null
null
OR_web_GUI/packages/extendGPIO.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
8
2018-11-27T16:12:45.000Z
2021-06-10T21:10:58.000Z
OR_web_GUI/packages/extendGPIO.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
1
2021-02-24T19:13:44.000Z
2021-02-24T19:13:44.000Z
# This file will load only if OPi.GPIO fails because of a Dev environment. # The basic idea is that when a pin is made HIGH or LOW it is writen into a file, # and then when the input is checked it reads the file....... from . import extendJSON as JSON # Values LOW = 0 HIGH = 1 # Modes BCM = 11 BOARD = 10 # Pull PU...
17.363636
90
0.648691
290
1,910
4.217241
0.427586
0.045789
0.035977
0.016353
0.282911
0.282911
0.282911
0.282911
0.282911
0.282911
0
0.021862
0.257592
1,910
110
91
17.363636
0.840621
0.267539
0
0.346154
0
0
0.020089
0
0
0
0
0
0
1
0.25
false
0.153846
0.019231
0.057692
0.326923
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
442879a13cc8117ac0195ded874e2c236d1e67cb
229
py
Python
Python/leetcode/InorderSuccessorInBst.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode/InorderSuccessorInBst.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode/InorderSuccessorInBst.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Created on 1.12.2016 @author: Darren ''' ''' Given a binary search tree and a node in it, find the in-order successor of that node in the BST. Note: If the given node has no in-order successor in the tree, return null. '''
20.818182
97
0.703057
43
229
3.744186
0.674419
0.074534
0.198758
0
0
0
0
0
0
0
0
0.038043
0.196507
229
10
98
22.9
0.836957
0.161572
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
4428f26c499145e61d25da9876a3e0c72bf9e081
32,780
py
Python
compiler/front_end/symbol_resolver_test.py
chloeyutianyi/emboss
ec9b566848d322e0afd598327a6e81a8c7953008
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
compiler/front_end/symbol_resolver_test.py
chloeyutianyi/emboss
ec9b566848d322e0afd598327a6e81a8c7953008
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
compiler/front_end/symbol_resolver_test.py
chloeyutianyi/emboss
ec9b566848d322e0afd598327a6e81a8c7953008
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
43.76502
80
0.619738
4,075
32,780
4.74135
0.08
0.066767
0.020496
0.028259
0.766575
0.728844
0.709849
0.667719
0.632731
0.589876
0
0.017473
0.259732
32,780
748
81
43.823529
0.778744
0.049512
0
0.571646
0
0
0.189471
0.007778
0
0
0
0.001337
0.150915
1
0.068598
false
0
0.041159
0.003049
0.118902
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
442e61a29cbb223c86a15ddd35212e3b4b25e8f8
3,893
py
Python
progressivis/storage/base.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
51
2015-09-14T16:31:02.000Z
2022-01-12T17:56:53.000Z
progressivis/storage/base.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
10
2017-11-15T15:10:05.000Z
2022-01-19T07:36:43.000Z
progressivis/storage/base.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
5
2017-11-14T20:20:56.000Z
2020-01-22T06:26:51.000Z
from abc import ABCMeta, abstractmethod, abstractproperty from contextlib import contextmanager class StorageObject(metaclass=ABCMeta): @abstractproperty def name(self): pass @abstractproperty def attrs(self): pass @abstractproperty def __len__(self): pass class Attr...
20.489474
78
0.629335
395
3,893
5.951899
0.217722
0.071459
0.15185
0.077414
0.347086
0.308805
0.288388
0.288388
0.244151
0.219906
0
0
0.288723
3,893
189
79
20.597884
0.849043
0.017981
0
0.614286
0
0
0.00655
0
0
0
0
0
0.007143
1
0.285714
false
0.235714
0.014286
0.021429
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
44489873a2925a9022ddd77df4045ad6d3d84cfb
2,102
py
Python
tcex/api/tc/v3/security/users/user_filter.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/security/users/user_filter.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/security/users/user_filter.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""User TQL Filter""" # standard library from enum import Enum # first-party from tcex.api.tc.v3.api_endpoints import ApiEndpoints from tcex.api.tc.v3.filter_abc import FilterABC from tcex.api.tc.v3.tql.tql_type import TqlType class UserFilter(FilterABC): """Filter Object for Users""" @property def _api...
33.365079
87
0.625595
275
2,102
4.669091
0.210909
0.093458
0.062305
0.08567
0.316199
0.266355
0.266355
0.246885
0.179128
0
0
0.001948
0.267364
2,102
62
88
33.903226
0.831818
0.399619
0
0
0
0
0.032258
0
0
0
0
0
0
1
0.333333
false
0
0.222222
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
444ab2b16f42dba2506a2b12c27ffc11ca0c3557
297
py
Python
processes/views.py
cybrvybe/AU7OMA7A-BI
1895abdd4b1ec0908b08ece65df460fc23925f25
[ "MIT" ]
null
null
null
processes/views.py
cybrvybe/AU7OMA7A-BI
1895abdd4b1ec0908b08ece65df460fc23925f25
[ "MIT" ]
null
null
null
processes/views.py
cybrvybe/AU7OMA7A-BI
1895abdd4b1ec0908b08ece65df460fc23925f25
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import viewsets from .models import Process from .serializers import ProcessSerializer # Create your views here. class ProcessView(viewsets.ModelViewSet): serializer_class = ProcessSerializer queryset = Process.objects.all()
33
43
0.79798
33
297
7.121212
0.69697
0
0
0
0
0
0
0
0
0
0
0
0.151515
297
8
44
37.125
0.93254
0.077441
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
1
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
444db0b1db514119c2f27418d38ccb473c3f040f
3,740
py
Python
tests/contrib/django/test_cache_wrapper.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:29.000Z
2019-11-24T23:09:29.000Z
tests/contrib/django/test_cache_wrapper.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/django/test_cache_wrapper.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:30.000Z
2019-11-24T23:09:30.000Z
# 3rd party from nose.tools import eq_, ok_, assert_raises from django.core.cache import caches # testing from .utils import DjangoTraceTestCase class DjangoCacheTest(DjangoTraceTestCase): """ Ensures that the tracing doesn't break the Django cache framework """ def test_wrapper_get_and_set(self)...
27.910448
64
0.579144
498
3,740
4.158635
0.186747
0.034766
0.0676
0.082086
0.758088
0.704973
0.656688
0.645099
0.625785
0.604056
0
0.01866
0.297861
3,740
133
65
28.120301
0.769992
0.150802
0
0.566265
0
0
0.128107
0
0
0
0
0
0.036145
1
0.120482
false
0
0.036145
0
0.168675
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
44764406d795c33ec5ab16ac135f2c7098aa4053
2,943
py
Python
PyPoll/main.py
laquita44/python-challenge
ca48470dbe2fca591b137d108890e9d6662531d3
[ "CNRI-Python", "RSA-MD" ]
null
null
null
PyPoll/main.py
laquita44/python-challenge
ca48470dbe2fca591b137d108890e9d6662531d3
[ "CNRI-Python", "RSA-MD" ]
null
null
null
PyPoll/main.py
laquita44/python-challenge
ca48470dbe2fca591b137d108890e9d6662531d3
[ "CNRI-Python", "RSA-MD" ]
null
null
null
import os import csv import collections from collections import Counter # variables in list candidate_votes = [] candidate_selection = [] # set File path file_path = os.path.join("..", "Resources", "election_data.csv") # set path for reader with open(file_path) as csvfile: csv_reader = csv.reader...
39.24
105
0.608563
376
2,943
4.606383
0.220745
0.218245
0.19746
0.092379
0.471709
0.468822
0.460162
0.32679
0.243649
0.243649
0
0.031765
0.154944
2,943
74
106
39.77027
0.664656
0.117567
0
0.177778
0
0.177778
0.441434
0.337052
0
0
0
0
0
1
0
false
0
0.088889
0
0.088889
0.244444
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
4476fec67019a93fd8b9f049af7fa03342216a08
423
gyp
Python
binding.gyp
epsitec-sa/node-darwin-ipc
3ae4327629cfbf64bab66b47f10a035dc7cfa7cd
[ "MIT" ]
null
null
null
binding.gyp
epsitec-sa/node-darwin-ipc
3ae4327629cfbf64bab66b47f10a035dc7cfa7cd
[ "MIT" ]
null
null
null
binding.gyp
epsitec-sa/node-darwin-ipc
3ae4327629cfbf64bab66b47f10a035dc7cfa7cd
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "sharedMemory", "include_dirs": [ "<!(node -e \"require('napi-macros')\")" ], "sources": [ "./src/sharedMemory.cpp" ], "libraries": [], }, { "target_name": "messaging", "include_dirs": [ "<!(node -e \"require('na...
21.15
50
0.432624
31
423
5.774194
0.516129
0.111732
0.167598
0.178771
0.480447
0.480447
0.480447
0.480447
0.480447
0
0
0
0.321513
423
20
51
21.15
0.623693
0
0
0.4
0
0
0.459906
0.051887
0
0
0
0
0
1
0
true
0
0
0
0
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
448af547f6bde50905fdf9b748648859ea3fd814
429
py
Python
Usefull_python2/protectedSample.py
innacroft/Python_codes
76bfba52858550e89c53dcbc72e5d0ef608edc64
[ "MIT" ]
null
null
null
Usefull_python2/protectedSample.py
innacroft/Python_codes
76bfba52858550e89c53dcbc72e5d0ef608edc64
[ "MIT" ]
null
null
null
Usefull_python2/protectedSample.py
innacroft/Python_codes
76bfba52858550e89c53dcbc72e5d0ef608edc64
[ "MIT" ]
null
null
null
def protected(func): def wrapper(password): if password=='platzi': return func() else: print('Contrasena invalida') return wrapper @protected def protected_func(): print('To contrasena es correcta') if __name__ == "__main__": password=str(raw_input('Ingresa tu ...
22.578947
56
0.645688
45
429
5.888889
0.488889
0.196226
0.120755
0
0
0
0
0
0
0
0
0
0.242424
429
19
57
22.578947
0.815385
0.118881
0
0
0
0
0.218667
0
0
0
0
0
0
1
0.230769
false
0.307692
0
0
0.384615
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
44962fab5e344275aa089bcbc43a459b73b36419
3,227
py
Python
Python/PythonIntro/Exercises.py
IQSS/workshops
f060ee3b883c93cb4eb1410b13c3d9f8509233d8
[ "CC-BY-4.0" ]
30
2017-03-25T14:18:11.000Z
2019-05-27T18:00:49.000Z
Python/PythonIntro/Exercises.py
IQSS/workshops
f060ee3b883c93cb4eb1410b13c3d9f8509233d8
[ "CC-BY-4.0" ]
2
2018-08-13T18:52:32.000Z
2018-08-22T19:49:01.000Z
Python/PythonIntro/Exercises.py
IQSS/workshops
f060ee3b883c93cb4eb1410b13c3d9f8509233d8
[ "CC-BY-4.0" ]
97
2017-03-24T14:35:46.000Z
2019-08-07T10:56:39.000Z
# --- # jupyter: # jupytext: # formats: ipynb,md,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.3' # jupytext_version: 0.8.6 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Introduction to Py...
36.258427
453
0.735048
510
3,227
4.635294
0.401961
0.01269
0.018613
0.020305
0.153553
0.072758
0
0
0
0
0
0.00972
0.202975
3,227
88
454
36.670455
0.909409
0.952897
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
4496c20f5c4fb764a3ac99e4d1b647621d408376
260
py
Python
py/data.py
JuliaTagBot/Faceless.jl
db6e20659a2ba589468adf36b67cf9e7f4325bfe
[ "MIT" ]
2
2015-11-29T06:25:24.000Z
2019-07-19T17:19:32.000Z
py/data.py
JuliaTagBot/Faceless.jl
db6e20659a2ba589468adf36b67cf9e7f4325bfe
[ "MIT" ]
null
null
null
py/data.py
JuliaTagBot/Faceless.jl
db6e20659a2ba589468adf36b67cf9e7f4325bfe
[ "MIT" ]
2
2016-03-27T19:08:07.000Z
2020-02-08T11:29:35.000Z
import h5py import numpy as np from os.path import expanduser def load_data(filename=expanduser("~/data/CK/dataset_10708.h5")): with h5py.File(filename,'r') as hf: data = hf.get('dataset') np_data = np.array(data) return np_data
21.666667
65
0.669231
40
260
4.25
0.6
0.070588
0
0
0
0
0
0
0
0
0
0.039024
0.211538
260
11
66
23.636364
0.790244
0
0
0
0
0
0.131783
0.100775
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
922365e16b4f6b9c4ba62a86e1a0fde777a967ac
2,484
py
Python
faker/providers/phone_number/ro_RO/__init__.py
jeffwright13/faker
9192d5143d5f1b832cc0f44b3f7ee89ca28c975a
[ "MIT" ]
12,077
2015-01-01T18:30:07.000Z
2022-03-31T23:22:01.000Z
faker/providers/phone_number/ro_RO/__init__.py
jeffwright13/faker
9192d5143d5f1b832cc0f44b3f7ee89ca28c975a
[ "MIT" ]
1,306
2015-01-03T05:18:55.000Z
2022-03-31T02:43:04.000Z
env/lib/python3.9/site-packages/faker/providers/phone_number/ro_RO/__init__.py
simotwo/AbileneParadox-ddd
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
1,855
2015-01-08T14:20:10.000Z
2022-03-25T17:23:32.000Z
from .. import Provider as PhoneNumberProvider class Provider(PhoneNumberProvider): formats = ( '021 ### ####', '0231 ### ###', '0232 ### ###', '0233 ### ###', '0234 ### ###', '0235 ### ###', '0236 ### ###', '0237 ### ###', '0238 ### ###', ...
23.433962
46
0.190419
108
2,484
4.37963
0.981481
0
0
0
0
0
0
0
0
0
0
0.287691
0.447262
2,484
105
47
23.657143
0.05681
0
0
0
0
0
0.478261
0
0
0
0
0
0
1
0
false
0
0.009709
0
0.029126
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
922369ae6a13292571a8462a372cd8effcdf3fba
590
py
Python
5oop-data-type.py
syedmurad1/OOP-Python
d09627269c12ce901677ec1053bdf565861030d7
[ "MIT" ]
null
null
null
5oop-data-type.py
syedmurad1/OOP-Python
d09627269c12ce901677ec1053bdf565861030d7
[ "MIT" ]
null
null
null
5oop-data-type.py
syedmurad1/OOP-Python
d09627269c12ce901677ec1053bdf565861030d7
[ "MIT" ]
null
null
null
# Text Type: str # Numeric Types: int, float, complex # Sequence Types: list, tuple, range # Mapping Type: dict # Set Types: set, frozenset # Boolean Type: bool # Binary Types: bytes, bytearray, memoryview x = float(1) # x will be 1.0 y = float(2.8) # y will be 2.8 z = float("3") # z will be 3.0 w = float("4.2...
23.6
65
0.49661
85
590
3.447059
0.482353
0.081911
0.068259
0.088737
0.105802
0.105802
0
0
0
0
0
0.031056
0.181356
590
24
66
24.583333
0.575569
0.522034
0
0.222222
0
0
0.475472
0.422642
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
923b5d8d8b333f5ff110aed7e719352a8d17e1a9
1,054
py
Python
vectorhub/encoders/text/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
385
2020-10-26T13:12:11.000Z
2021-10-07T15:14:48.000Z
vectorhub/encoders/text/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
24
2020-10-29T13:16:31.000Z
2021-08-31T06:47:33.000Z
vectorhub/encoders/text/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
45
2020-10-29T15:25:19.000Z
2021-09-05T21:50:57.000Z
""" Base Text2Vec Model """ import warnings from ...base import Base2Vec from abc import ABC, abstractmethod from typing import Union, List, Dict class BaseText2Vec(Base2Vec, ABC): def read(self, text: str): """An abstract method to specify the read method to read the data. """ pass ...
27.736842
88
0.606262
127
1,054
4.905512
0.448819
0.192616
0.128411
0.060995
0
0
0
0
0
0
0
0.005435
0.301708
1,054
38
89
27.736842
0.841033
0.121442
0
0.24
0
0
0.157418
0
0
0
0
0
0
1
0.2
false
0.08
0.16
0.04
0.52
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
9253e004856f00085511368daf084cddb829b4f8
992
py
Python
bm25/inverted_index.py
nlp-greyfoss/nlp-algorithms
7fc269dbab03b8712ab4d1a9fbc9fcb1e375c749
[ "Apache-2.0" ]
null
null
null
bm25/inverted_index.py
nlp-greyfoss/nlp-algorithms
7fc269dbab03b8712ab4d1a9fbc9fcb1e375c749
[ "Apache-2.0" ]
null
null
null
bm25/inverted_index.py
nlp-greyfoss/nlp-algorithms
7fc269dbab03b8712ab4d1a9fbc9fcb1e375c749
[ "Apache-2.0" ]
null
null
null
import collections class Dictionary(dict): ''' data structure for InvertedIndex word -> postings(doc_id->word_count) ''' def __missing__(self, key): postings = collections.defaultdict(int) self[key] = postings return postings class InvertedIndex: def ...
22.545455
48
0.561492
104
992
5.105769
0.346154
0.158192
0.101695
0.06403
0
0
0
0
0
0
0
0.001538
0.344758
992
43
49
23.069767
0.815385
0.15625
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.047619
0.095238
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
9254c4f956bff0d116a8b3ed0549f4b3aa0b7f63
190
py
Python
dash/app.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
dash/app.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
dash/app.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
""" Create dasp app using Flask """ import dash from flask import Flask server = Flask(__name__) app = dash.Dash(__name__, server=server) app.config.suppress_callback_exceptions = True
13.571429
46
0.757895
26
190
5.153846
0.576923
0.164179
0
0
0
0
0
0
0
0
0
0
0.147368
190
13
47
14.615385
0.82716
0.142105
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
926f9d5782274124e53c746d6d36c2b55224def1
485
py
Python
idb/cli/commands/kill.py
sergey-plevako-badoo/FBSimulatorControl
117af8508ba7405bdbacd29ec95a0523b3926ad3
[ "MIT" ]
1
2019-06-12T16:46:25.000Z
2019-06-12T16:46:25.000Z
idb/cli/commands/kill.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
null
null
null
idb/cli/commands/kill.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
1
2021-08-20T08:04:16.000Z
2021-08-20T08:04:16.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from argparse import Namespace from idb.cli.commands.base import BaseCommand from idb.client.client import IdbClient class KillCommand(BaseCommand): @property def description(self) -> str: return "Kill the...
23.095238
71
0.692784
62
485
5.387097
0.693548
0.041916
0.077844
0.101796
0
0
0
0
0
0
0
0.002618
0.212371
485
20
72
24.25
0.871728
0.187629
0
0.166667
0
0
0.058673
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.166667
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
0
1
1
0
0
2
927432564b3ddaf25d9edbbff2e5c01710c29b1f
55
py
Python
dallinger/version.py
istresearch/Dallinger
47e4967ded9e01edbc8c1ae7132c9ec30a87f116
[ "MIT" ]
1
2020-01-29T04:13:26.000Z
2020-01-29T04:13:26.000Z
dallinger/version.py
jcpeterson/Dallinger
55bf00efddb19ab8b7201b65c461996793edf6f4
[ "MIT" ]
null
null
null
dallinger/version.py
jcpeterson/Dallinger
55bf00efddb19ab8b7201b65c461996793edf6f4
[ "MIT" ]
1
2019-02-07T14:16:39.000Z
2019-02-07T14:16:39.000Z
"""Dallinger version number.""" __version__ = "4.0.0"
13.75
31
0.654545
7
55
4.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0.0625
0.127273
55
3
32
18.333333
0.604167
0.454545
0
0
0
0
0.208333
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
92777d7e1071268c9dcf7c21200e7017df67f42d
11,915
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/crprange/crprange.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/crprange/crprange.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/crprange/crprange.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
41.515679
324
0.754343
1,532
11,915
5.819843
0.180809
0.019067
0.020413
0.034545
0.616196
0.566958
0.53275
0.516487
0.516487
0.516487
0
0.000816
0.176836
11,915
286
325
41.660839
0.908238
0.65833
0
0.142857
0
0
0.111548
0.050275
0
0
0
0
0
1
0.336735
false
0
0.020408
0
0.55102
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
927f700fa8c1d0afea3e7c9f34840323c68915d7
630
py
Python
koosli/decorators.py
Koosli/koosli.org
56d8276bb4f68727df95419222429379ec5be302
[ "MIT" ]
null
null
null
koosli/decorators.py
Koosli/koosli.org
56d8276bb4f68727df95419222429379ec5be302
[ "MIT" ]
null
null
null
koosli/decorators.py
Koosli/koosli.org
56d8276bb4f68727df95419222429379ec5be302
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from functools import update_wrapper from flask import g, request, redirect, url_for, current_app, abort def admin_required(user): '''Ensure that the currently logged in user is an admin. If user is not logged in, redirect to login page. ''' def decorator(fn): def w...
27.391304
67
0.626984
81
630
4.753086
0.54321
0.062338
0.072727
0
0
0
0
0
0
0
0
0.008753
0.274603
630
22
68
28.636364
0.833698
0.2
0
0
0
0
0.02045
0
0
0
0
0
0
1
0.25
false
0
0.166667
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
9281dad69f90ff3e460784ee907241649c3dd3e4
350
py
Python
wechat/download.py
dadoyi/wechat_worker
d932219e44a74358815682157b29243fb18fbb83
[ "MIT" ]
null
null
null
wechat/download.py
dadoyi/wechat_worker
d932219e44a74358815682157b29243fb18fbb83
[ "MIT" ]
null
null
null
wechat/download.py
dadoyi/wechat_worker
d932219e44a74358815682157b29243fb18fbb83
[ "MIT" ]
null
null
null
import urllib.request name = 'icon/icon18_1.png' # 网络上图片的地址 img_src = 'http://www.htmlsucai.com/demo/2018/07/%e4%bb%bf%e5%be%ae%e4%bf%a1%e7%bd%91%e9%a1%b5%e7%89%88%e8%81%8a%e5%a4%a9%e7%95%8c%e9%9d%a2%e6%a8%a1%e6%9d%bf/images/'+name # 将远程数据下载到本地,第二个参数就是要保存到本地的文件名 urllib.request.urlretrieve(img_src,'D:/project/wechat...
31.818182
171
0.737143
70
350
3.642857
0.742857
0.101961
0
0
0
0
0
0
0
0
0
0.129129
0.048571
350
10
172
35
0.636637
0.105714
0
0
0
0.25
0.677419
0.125806
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
928d944ebda78c94fdd823261090c9ef2c57c3af
3,465
py
Python
sqlpuzzle/_queries/delete.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
8
2015-03-19T11:25:32.000Z
2020-09-02T11:30:10.000Z
sqlpuzzle/_queries/delete.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
7
2015-03-23T14:34:28.000Z
2022-02-21T12:36:01.000Z
sqlpuzzle/_queries/delete.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
4
2018-11-28T21:59:27.000Z
2020-01-05T01:50:08.000Z
from sqlpuzzle.exceptions import ConfirmDeleteAllException from sqlpuzzle._queries.options import Options from sqlpuzzle._queryparts import Tables, Where from .query import Query __all__ = ('Delete',) class DeleteOptions(Options): _definition_of_options = { 'ignore': { 'off': '', ...
27.283465
95
0.612121
389
3,465
5.251928
0.22108
0.063632
0.069995
0.035242
0.395497
0.220754
0.182085
0.147822
0.147822
0.147822
0
0.000801
0.279076
3,465
126
96
27.5
0.817054
0.285137
0
0.275362
0
0
0.057381
0.026719
0
0
0
0
0
1
0.231884
false
0
0.057971
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
92a9dd245291f088114d2e3fa89af75f96e4c592
342
py
Python
docs/examples_src/raw_query_usage/parse_with_unset_default.py
dynalz/odmantic
f20f08f8ab1768534c1e743f7539bfe4f8c73bdd
[ "0BSD" ]
486
2020-10-19T05:33:53.000Z
2022-03-30T12:54:57.000Z
docs/examples_src/raw_query_usage/parse_with_unset_default.py
dynalz/odmantic
f20f08f8ab1768534c1e743f7539bfe4f8c73bdd
[ "0BSD" ]
183
2020-10-19T18:15:25.000Z
2022-03-31T04:59:21.000Z
docs/examples_src/raw_query_usage/parse_with_unset_default.py
dynalz/odmantic
f20f08f8ab1768534c1e743f7539bfe4f8c73bdd
[ "0BSD" ]
53
2020-10-19T09:35:01.000Z
2022-03-31T20:39:51.000Z
from bson import ObjectId from odmantic import Model class Player(Model): name: str level: int = 1 document = {"name": "Leeroy", "_id": ObjectId("5f8352a87a733b8b18b0cb27")} user = Player.parse_doc(document) print(repr(user)) #> Player( #> id=ObjectId("5f8352a87a733b8b18b0cb27"), #> name="Leeroy",...
17.1
74
0.660819
38
342
5.894737
0.578947
0.089286
0.303571
0
0
0
0
0
0
0
0
0.121429
0.181287
342
19
75
18
0.678571
0.269006
0
0
0
0
0.15102
0.097959
0
0
0
0
0
1
0
false
0
0.25
0
0.625
0.125
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
92ae2c7f2b20ff4f228a10bfadebba1e54547e2f
106
py
Python
6/pizza.py
liuhanyu200/pygame
38a68e779e6b0a63edb1758fca98ebbf40bb0444
[ "BSD-3-Clause" ]
null
null
null
6/pizza.py
liuhanyu200/pygame
38a68e779e6b0a63edb1758fca98ebbf40bb0444
[ "BSD-3-Clause" ]
null
null
null
6/pizza.py
liuhanyu200/pygame
38a68e779e6b0a63edb1758fca98ebbf40bb0444
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- pizza = { 'crust': 'thick', 'toppings': ['mushrooms', 'extra cheese'], }
13.25
46
0.5
10
106
5.3
1
0
0
0
0
0
0
0
0
0
0
0.012195
0.226415
106
7
47
15.142857
0.634146
0.188679
0
0
0
0
0.46988
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