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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a2a7f1bbe7b23f099969dbf0d398534767b960e | 115 | py | Python | example/dt/7.preprocessor/docker/build/loop_container.py | openmcp/Public_OpenMCP-Release | 95da3aeb0a184a70ed682a9851b2dbd945173837 | [
"Unlicense"
] | null | null | null | example/dt/7.preprocessor/docker/build/loop_container.py | openmcp/Public_OpenMCP-Release | 95da3aeb0a184a70ed682a9851b2dbd945173837 | [
"Unlicense"
] | null | null | null | example/dt/7.preprocessor/docker/build/loop_container.py | openmcp/Public_OpenMCP-Release | 95da3aeb0a184a70ed682a9851b2dbd945173837 | [
"Unlicense"
] | null | null | null |
import os
import sys
import time
if __name__ == '__main__':
while(True) :
print("adsf")
time.sleep(10)
| 11.5 | 26 | 0.643478 | 16 | 115 | 4.125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.226087 | 115 | 9 | 27 | 12.777778 | 0.719101 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2a5b9b993a53475ae424fed591f03a2d9fe6beb3 | 104 | py | Python | apps/notification/apps.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 1 | 2020-08-12T17:53:37.000Z | 2020-08-12T17:53:37.000Z | apps/notification/apps.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 12 | 2020-07-03T03:52:00.000Z | 2021-09-22T18:00:44.000Z | apps/notification/apps.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class NotificationConfig(AppConfig):
name = "apps.notification"
| 17.333333 | 36 | 0.778846 | 11 | 104 | 7.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 37 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a85f8b22f264d9c76e3ae4a86505483f901c1f4 | 912 | py | Python | server/.vim/plugged/python-mode/submodules/pylint/tests/functional/i/invalid_overridden_method.py | hkdb/sysconf | 99d334f7309657647059c4b37f25e33dffc81fc3 | [
"MIT"
] | 10 | 2020-07-21T21:59:54.000Z | 2021-07-19T11:01:47.000Z | server/.vim/plugged/python-mode/submodules/pylint/tests/functional/i/invalid_overridden_method.py | hkdb/sysconf | 99d334f7309657647059c4b37f25e33dffc81fc3 | [
"MIT"
] | null | null | null | server/.vim/plugged/python-mode/submodules/pylint/tests/functional/i/invalid_overridden_method.py | hkdb/sysconf | 99d334f7309657647059c4b37f25e33dffc81fc3 | [
"MIT"
] | 1 | 2021-01-30T18:17:01.000Z | 2021-01-30T18:17:01.000Z | # pylint: disable=missing-docstring, too-few-public-methods
import abc
class SuperClass(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def prop(self):
pass
@abc.abstractmethod
def method(self):
pass
class Prop(SuperClass):
@property
def prop(self):
return ... | 14.95082 | 59 | 0.619518 | 99 | 912 | 5.707071 | 0.323232 | 0.070796 | 0.077876 | 0.060177 | 0.322124 | 0.244248 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 912 | 60 | 60 | 15.2 | 0.871914 | 0.123904 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0.128205 | 0.025641 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
aa6a4dc1b7fa388f1d07b3ea39ca2a8494b726f0 | 94 | py | Python | appl/dictionary/gender.py | hbrls/weixin-mp-mockup | 6a9a6df695aaf1e3c85de9997b906a911f355fdf | [
"MIT"
] | 2 | 2016-05-26T12:41:24.000Z | 2016-09-20T04:09:06.000Z | appl/dictionary/gender.py | hbrls/weixin-mp-mockup | 6a9a6df695aaf1e3c85de9997b906a911f355fdf | [
"MIT"
] | null | null | null | appl/dictionary/gender.py | hbrls/weixin-mp-mockup | 6a9a6df695aaf1e3c85de9997b906a911f355fdf | [
"MIT"
] | 1 | 2015-06-25T17:57:46.000Z | 2015-06-25T17:57:46.000Z | # -*- coding: utf-8 -*-
GENDERS = {
1: (1, u'男'),
2: (2, u'女'),
3: (3, u'保密')
}
| 10.444444 | 23 | 0.319149 | 16 | 94 | 1.875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 0.340426 | 94 | 8 | 24 | 11.75 | 0.370968 | 0.223404 | 0 | 0 | 0 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa6ed59965da5e491a689a25d81e62ad00e86cd6 | 33 | py | Python | diofant/tests/logic/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | 57 | 2016-09-13T23:16:26.000Z | 2022-03-29T06:45:51.000Z | diofant/tests/logic/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | 402 | 2016-05-11T11:11:47.000Z | 2022-03-31T14:27:02.000Z | diofant/tests/logic/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | 20 | 2016-05-11T08:17:37.000Z | 2021-09-10T09:15:51.000Z | """
Tests for logic package.
"""
| 8.25 | 24 | 0.606061 | 4 | 33 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 33 | 3 | 25 | 11 | 0.740741 | 0.727273 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 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 | 4 |
aa6f45fc9c518a44671079095dc1142761f8efc5 | 651 | py | Python | app/shared_code/name_utils.py | KubaTaba1uga/spam_recycler | 76056635fdf610c6304e8034a3f66f235761ca76 | [
"MIT"
] | 2 | 2021-12-17T18:12:51.000Z | 2021-12-17T18:12:52.000Z | app/shared_code/name_utils.py | KubaTaba1uga/spam_recycler | 76056635fdf610c6304e8034a3f66f235761ca76 | [
"MIT"
] | null | null | null | app/shared_code/name_utils.py | KubaTaba1uga/spam_recycler | 76056635fdf610c6304e8034a3f66f235761ca76 | [
"MIT"
] | null | null | null | def create_spam_worker_name(user_id):
return f'user_{user_id}_spam_worker'
def create_email_worker_name(user_id):
return f'user_{user_id}_email_worker'
def create_worker_celery_name(worker_name):
return f"celery@{worker_name}"
def create_spam_worker_celery_name(user_id):
return create_worker_celer... | 24.111111 | 71 | 0.81874 | 108 | 651 | 4.351852 | 0.111111 | 0.153191 | 0.170213 | 0.204255 | 0.723404 | 0.723404 | 0.553191 | 0.553191 | 0.553191 | 0.238298 | 0 | 0 | 0.104455 | 651 | 26 | 72 | 25.038462 | 0.806175 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.159754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
aa6faac6f7392714cbf7822469a8a75fd2c12501 | 130 | py | Python | aditya.py | AdityaKane2001/wassatrial | 6c95ad4e096cc9b53b37030d5be6a91ad2405e0d | [
"Apache-2.0"
] | null | null | null | aditya.py | AdityaKane2001/wassatrial | 6c95ad4e096cc9b53b37030d5be6a91ad2405e0d | [
"Apache-2.0"
] | null | null | null | aditya.py | AdityaKane2001/wassatrial | 6c95ad4e096cc9b53b37030d5be6a91ad2405e0d | [
"Apache-2.0"
] | null | null | null | def aditya():
return "aditya"
def shantanu(num):
if num>10:
return "shantanu"
else:
return "patankar" | 16.25 | 25 | 0.569231 | 15 | 130 | 4.933333 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.315385 | 130 | 8 | 26 | 16.25 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
aa7a0a2ec1aebce31794b5a042f8a1d06e172288 | 1,922 | py | Python | src/test.py | nbonamy/download-manager | 179e1447223f88bdfe265ac55485f2e1936cc037 | [
"Apache-2.0"
] | 1 | 2020-05-26T15:08:13.000Z | 2020-05-26T15:08:13.000Z | src/test.py | nbonamy/download-manager | 179e1447223f88bdfe265ac55485f2e1936cc037 | [
"Apache-2.0"
] | null | null | null | src/test.py | nbonamy/download-manager | 179e1447223f88bdfe265ac55485f2e1936cc037 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import unittest
import utils
# test data
filenames = {
'Interstellar.mkv': 'Interstellar',
'Interstellar.avi': 'Interstellar',
'Interstellar.720p.mkv': 'Interstellar',
'Interstellar.MULTI.mkv': 'Interstellar',
'Interstellar.VOSTFR.mkv': 'Interstellar',
'Interstellar.VOST.mkv': 'Interstel... | 37.686275 | 83 | 0.707596 | 246 | 1,922 | 5.495935 | 0.235772 | 0.309172 | 0.186391 | 0.195266 | 0.482988 | 0.392751 | 0.266272 | 0.193047 | 0.079142 | 0.079142 | 0 | 0.101347 | 0.111863 | 1,922 | 50 | 84 | 38.44 | 0.690685 | 0.01873 | 0 | 0.046512 | 0 | 0 | 0.639405 | 0.371747 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa887ae242b245bb31244acdc183e0c50541bb27 | 232 | py | Python | package/scripts/params_status.py | avbfr/ambari-drill-service | c6d4808910b19b483ea8250d8fa7c432b5518f29 | [
"Apache-2.0"
] | null | null | null | package/scripts/params_status.py | avbfr/ambari-drill-service | c6d4808910b19b483ea8250d8fa7c432b5518f29 | [
"Apache-2.0"
] | null | null | null | package/scripts/params_status.py | avbfr/ambari-drill-service | c6d4808910b19b483ea8250d8fa7c432b5518f29 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
from resource_management import *
from resource_management.libraries.script.script import Script
config = Script.get_config()
drill_run_dir = config['configurations']['drill-env']['drill_run_dir']
| 23.2 | 70 | 0.793103 | 32 | 232 | 5.53125 | 0.53125 | 0.135593 | 0.248588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090517 | 232 | 9 | 71 | 25.777778 | 0.838863 | 0.086207 | 0 | 0 | 0 | 0 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
aac7e251524cab463b0be37fd1a42379b6d83483 | 509 | py | Python | old/test/test_utils/test_numeric_gradient.py | Faaizz/computer_vision | a6145c6b3b7d8b3492e85932fe96da6f46fcd0d4 | [
"RSA-MD"
] | null | null | null | old/test/test_utils/test_numeric_gradient.py | Faaizz/computer_vision | a6145c6b3b7d8b3492e85932fe96da6f46fcd0d4 | [
"RSA-MD"
] | 10 | 2021-03-31T20:18:26.000Z | 2022-02-10T02:35:09.000Z | old/test/test_utils/test_numeric_gradient.py | Faaizz/computer_vision | a6145c6b3b7d8b3492e85932fe96da6f46fcd0d4 | [
"RSA-MD"
] | null | null | null | import unittest, sys
import numpy as np
from src.utils.numeric_gradient import evaluate_gradient
class TestNumericGradient(unittest.TestCase):
def test_numeric_gradient(self):
# Vector valued function
def vec_valued(X):
# return np.array([(X[0]*X[1]), (X[0]+X[1])])
return ... | 31.8125 | 78 | 0.636542 | 74 | 509 | 4.283784 | 0.472973 | 0.025237 | 0.037855 | 0.050473 | 0.132492 | 0.132492 | 0.132492 | 0.132492 | 0.132492 | 0.132492 | 0 | 0.034826 | 0.210216 | 509 | 16 | 79 | 31.8125 | 0.753731 | 0.147348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
2acbd616d89967f3937ee31a576f39a64c167f92 | 154 | py | Python | tavern/util/list_util.py | rubyszu/tavern | 47766d1474f5f2b951ca482c41c055d4c79a7b13 | [
"MIT"
] | null | null | null | tavern/util/list_util.py | rubyszu/tavern | 47766d1474f5f2b951ca482c41c055d4c79a7b13 | [
"MIT"
] | null | null | null | tavern/util/list_util.py | rubyszu/tavern | 47766d1474f5f2b951ca482c41c055d4c79a7b13 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def remove_duplicate_elements(check_list):
func = lambda x,y:x if y in x else x + [y]
return reduce(func, [[], ] + check_list)
| 25.666667 | 43 | 0.642857 | 26 | 154 | 3.653846 | 0.692308 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.181818 | 154 | 5 | 44 | 30.8 | 0.746032 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2aeb5ce3d0cfdb79cf2bb17f75b45d776467e0e1 | 69 | py | Python | tests/__init__.py | molssi-seamm/supercell_step | 17fa7caa1f1d363831e6376fbc211bbd872152ff | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | molssi-seamm/supercell_step | 17fa7caa1f1d363831e6376fbc211bbd872152ff | [
"BSD-3-Clause"
] | 4 | 2020-06-18T23:22:02.000Z | 2021-02-04T18:22:12.000Z | tests/__init__.py | molssi-seamm/supercell_step | 17fa7caa1f1d363831e6376fbc211bbd872152ff | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for supercell_step."""
| 17.25 | 43 | 0.608696 | 9 | 69 | 4.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.15942 | 69 | 3 | 44 | 23 | 0.689655 | 0.869565 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6300c900e7405f3e14f9f5416b002011482a37ee | 69 | py | Python | src/container/kube-manager/kube_manager/vnc/__init__.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/container/kube-manager/kube_manager/vnc/__init__.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 2 | 2018-12-04T02:20:52.000Z | 2018-12-22T06:16:30.000Z | src/container/kube-manager/kube_manager/vnc/__init__.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | #
# Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
#
| 17.25 | 64 | 0.710145 | 9 | 69 | 5.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.173913 | 69 | 3 | 65 | 23 | 0.789474 | 0.898551 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6308ee8ab2732528221b63a7915f27c942451d45 | 110 | py | Python | intro/class2.py | SamuelPhases/django-bootcamp | ff6dbeb9e1470fe1d003c0e170426bfaf7912060 | [
"MIT"
] | null | null | null | intro/class2.py | SamuelPhases/django-bootcamp | ff6dbeb9e1470fe1d003c0e170426bfaf7912060 | [
"MIT"
] | null | null | null | intro/class2.py | SamuelPhases/django-bootcamp | ff6dbeb9e1470fe1d003c0e170426bfaf7912060 | [
"MIT"
] | null | null | null | from .classes import *
#inheritance
class Dog(Animal):
def activity(self):
Animal.active(self)
| 12.222222 | 27 | 0.663636 | 13 | 110 | 5.615385 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 110 | 8 | 28 | 13.75 | 0.858824 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
630c55010b6fa836af7b249ed594d0ac916f3650 | 258 | py | Python | cl_gym/backbones/__init__.py | imirzadeh/CL-Gym | 302bf7f0d9a96df61c32dec1dd4cacd19746179d | [
"MIT"
] | 26 | 2021-06-23T17:16:10.000Z | 2022-03-14T05:04:14.000Z | cl_gym/backbones/__init__.py | imirzadeh/CL-Gym | 302bf7f0d9a96df61c32dec1dd4cacd19746179d | [
"MIT"
] | null | null | null | cl_gym/backbones/__init__.py | imirzadeh/CL-Gym | 302bf7f0d9a96df61c32dec1dd4cacd19746179d | [
"MIT"
] | 2 | 2021-07-09T01:30:12.000Z | 2022-01-02T04:15:46.000Z | from cl_gym.backbones.base import ContinualBackbone
from cl_gym.backbones.mlp import MLP2Layers
from cl_gym.backbones.cnn import CNN1D
from cl_gym.backbones.resnet import ResNet18Small
__all__ = ['ContinualBackbone', 'MLP2Layers', 'CNN1D', 'ResNet18Small']
| 36.857143 | 71 | 0.825581 | 33 | 258 | 6.212121 | 0.424242 | 0.117073 | 0.17561 | 0.35122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 0.089147 | 258 | 6 | 72 | 43 | 0.838298 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
631036c78953c13f0ad5dad461199fb665b9cbaa | 215 | py | Python | src/myprojectprototype/app/test.py | naitao/MyProjectPrototype | 54a555921a1de154bd7b1499bce0c6b359717d42 | [
"MIT"
] | null | null | null | src/myprojectprototype/app/test.py | naitao/MyProjectPrototype | 54a555921a1de154bd7b1499bce0c6b359717d42 | [
"MIT"
] | null | null | null | src/myprojectprototype/app/test.py | naitao/MyProjectPrototype | 54a555921a1de154bd7b1499bce0c6b359717d42 | [
"MIT"
] | null | null | null | import pandas as pd
df = pd.read_csv("out.csv")
df.Last_update = df.Last_update.str.replace('\'', '')
#for i in df.index:
#df.loc[i, ['Last_update']] = df['Last_update'].loc[i].strip('\'')
df.to_csv("new.csv")
| 26.875 | 70 | 0.632558 | 39 | 215 | 3.333333 | 0.512821 | 0.307692 | 0.276923 | 0.246154 | 0.338462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 215 | 7 | 71 | 30.714286 | 0.684211 | 0.386047 | 0 | 0 | 0 | 0 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6326e2322b853a83d86d98202d4b35a10e012c86 | 130 | py | Python | securityheaders/models/setcookie/__init__.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 151 | 2018-07-29T22:34:43.000Z | 2022-03-22T05:08:27.000Z | securityheaders/models/setcookie/__init__.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 5 | 2019-04-24T07:31:36.000Z | 2021-04-15T14:31:23.000Z | securityheaders/models/setcookie/__init__.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 42 | 2018-07-31T08:18:59.000Z | 2022-03-28T08:18:32.000Z | from .setcookiedirective import SetCookieDirective
from .setcookie import SetCookie
__all__ = ['SetCookieDirective','SetCookie']
| 26 | 50 | 0.830769 | 11 | 130 | 9.454545 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 130 | 4 | 51 | 32.5 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0.207692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2d49f1086b4eb3dec76a34dc5e60bd951459e868 | 99 | py | Python | {{cookiecutter.app_name}}/tests/backend/test_{{cookiecutter.app_name}}.py | RobbieClarken/cookiecutter-flask-react | 6a5219e99c2d38f27fe42a7690bc6e1081226fbc | [
"MIT"
] | 1 | 2018-09-15T18:09:36.000Z | 2018-09-15T18:09:36.000Z | {{cookiecutter.app_name}}/tests/backend/test_{{cookiecutter.app_name}}.py | RobbieClarken/cookiecutter-flask-react | 6a5219e99c2d38f27fe42a7690bc6e1081226fbc | [
"MIT"
] | null | null | null | {{cookiecutter.app_name}}/tests/backend/test_{{cookiecutter.app_name}}.py | RobbieClarken/cookiecutter-flask-react | 6a5219e99c2d38f27fe42a7690bc6e1081226fbc | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.xfail
def test_tests_are_implemented():
raise NotImplementedError
| 14.142857 | 33 | 0.808081 | 12 | 99 | 6.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 6 | 34 | 16.5 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2d4a8ab9d50ff5918c89add4396db26c239beee7 | 215 | py | Python | planex/cms_core/apps.py | octue/planex-cms | 9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60 | [
"MIT"
] | null | null | null | planex/cms_core/apps.py | octue/planex-cms | 9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60 | [
"MIT"
] | 1 | 2021-01-12T18:13:21.000Z | 2021-01-12T18:13:21.000Z | planex/cms_core/apps.py | octue/planex-cms | 9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CMSCoreAppConfig(AppConfig):
name = "cms_core"
label = "cms_core"
verbose_name = "CMS Core"
def ready(self):
# import cms_core.signals
pass
| 17.916667 | 34 | 0.651163 | 26 | 215 | 5.230769 | 0.653846 | 0.205882 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265116 | 215 | 11 | 35 | 19.545455 | 0.860759 | 0.106977 | 0 | 0 | 0 | 0 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
2d5cb484fd2bd308a5a5ca3d1368c7da31e27b3d | 244 | py | Python | Python/Mundo 3/ex096.py | henrique-tavares/Coisas | f740518b1bedec5b0ea8c12ae07a2cac21eb51ae | [
"MIT"
] | 1 | 2020-02-07T20:39:26.000Z | 2020-02-07T20:39:26.000Z | Python/Mundo 3/ex096.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | Python/Mundo 3/ex096.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | def área(largura, altura):
print(f'\nA área de um terreno {largura}m x {altura}m é de {largura * altura}m².\n')
print(f'\n{"Controle de Terrenos":^25}', '-' * 25, sep='\n')
área(float(input("LARGURA (m): ")), float(input("ALTURA (m): "))) | 40.666667 | 88 | 0.614754 | 41 | 244 | 3.658537 | 0.512195 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.139344 | 244 | 6 | 89 | 40.666667 | 0.690476 | 0 | 0 | 0 | 0 | 0.25 | 0.538776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2d7a59291647dd4ccae5025ce59aa5fd25315f2d | 590 | py | Python | src/state.py | tomszir/chip8-py | b73c7f5478aa45bd98f0371daf4f6136c7da58cb | [
"MIT"
] | null | null | null | src/state.py | tomszir/chip8-py | b73c7f5478aa45bd98f0371daf4f6136c7da58cb | [
"MIT"
] | null | null | null | src/state.py | tomszir/chip8-py | b73c7f5478aa45bd98f0371daf4f6136c7da58cb | [
"MIT"
] | null | null | null | from enum import Enum
class StateType(Enum):
NEXT = 0
SKIP = 1
JUMP = 2
BLOCK = 3
NOT_IMPLEMENTED = 4
class State:
@staticmethod
def Next():
return (StateType.NEXT, 2)
@staticmethod
def Skip():
return (StateType.SKIP, 4)
@staticmethod
def SkipIf(condition: bool):
if condition:
... | 15.526316 | 42 | 0.654237 | 71 | 590 | 5.408451 | 0.380282 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020045 | 0.238983 | 590 | 37 | 43 | 15.945946 | 0.835189 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.178571 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2d97b731d3fdd31639a8608cc5e7855941d4095a | 1,051 | py | Python | JumpScale9Lib/sal/kvm/KVM.py | Jumpscale/lib9 | 82224784ef2a7071faeb48349007211c367bc673 | [
"Apache-2.0"
] | 2 | 2017-06-07T08:11:47.000Z | 2017-11-10T02:19:48.000Z | JumpScale9Lib/sal/kvm/KVM.py | Jumpscale/lib9 | 82224784ef2a7071faeb48349007211c367bc673 | [
"Apache-2.0"
] | 188 | 2017-06-21T06:16:13.000Z | 2020-06-17T14:20:24.000Z | JumpScale9Lib/sal/kvm/KVM.py | Jumpscale/lib9 | 82224784ef2a7071faeb48349007211c367bc673 | [
"Apache-2.0"
] | 3 | 2018-06-12T05:18:28.000Z | 2019-09-24T06:49:17.000Z | from js9 import j
from JumpScale9Lib.sal.kvm.Network import Network
from JumpScale9Lib.sal.kvm.Interface import Interface
from JumpScale9Lib.sal.kvm.Disk import Disk
from JumpScale9Lib.sal.kvm.Pool import Pool
from JumpScale9Lib.sal.kvm.StorageController import StorageController
from JumpScale9Lib.sal.kvm.KVMController... | 36.241379 | 69 | 0.758325 | 118 | 1,051 | 6.601695 | 0.228814 | 0.077022 | 0.231065 | 0.265725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011534 | 0.175071 | 1,051 | 28 | 70 | 37.535714 | 0.886967 | 0 | 0 | 0 | 0 | 0 | 0.021884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.44 | 0 | 0.52 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
2dad8351efbff9b0fa3a523f3aed688746b26694 | 41 | py | Python | code/abc069_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc069_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc069_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | s=input()
print(s[0]+str(len(s)-2)+s[-1]) | 20.5 | 31 | 0.560976 | 11 | 41 | 2.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.02439 | 41 | 2 | 31 | 20.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 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 | 1 | 0 | 4 |
930e945abe41ab93de78e9f85c96cbbe1bbf3436 | 621 | py | Python | graphene_gis/tests/test_converter.py | sknutsonsf/graphene-gis | b326ec1ce055a68118e281599209655693535582 | [
"MIT"
] | 27 | 2020-03-12T18:56:45.000Z | 2022-03-07T19:25:24.000Z | graphene_gis/tests/test_converter.py | sknutsonsf/graphene-gis | b326ec1ce055a68118e281599209655693535582 | [
"MIT"
] | 6 | 2020-11-08T15:44:18.000Z | 2022-02-28T12:26:33.000Z | graphene_gis/tests/test_converter.py | sknutsonsf/graphene-gis | b326ec1ce055a68118e281599209655693535582 | [
"MIT"
] | 8 | 2020-04-10T00:23:00.000Z | 2022-01-28T00:17:40.000Z | from django.contrib.gis.db import models as gis_models
from django.contrib.postgres import fields
from graphene_gis import scalars
from graphene_gis.converter import gis_converter, json_converter # noqa
from graphene_django.tests.test_converter import assert_conversion
def test_should_date_point_field_to_point_scala... | 34.5 | 75 | 0.855072 | 85 | 621 | 5.870588 | 0.411765 | 0.128257 | 0.078156 | 0.068136 | 0.240481 | 0.116232 | 0.116232 | 0 | 0 | 0 | 0 | 0 | 0.090177 | 621 | 17 | 76 | 36.529412 | 0.883186 | 0.006441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.272727 | true | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
93109c3812a694f0edc245de52b337a7f593d361 | 767 | py | Python | tests/test_config.py | 500-Error/weixin-SDK | d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863 | [
"MIT"
] | 1 | 2017-12-01T11:17:22.000Z | 2017-12-01T11:17:22.000Z | tests/test_config.py | 500-Error/weixin-SDK | d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863 | [
"MIT"
] | null | null | null | tests/test_config.py | 500-Error/weixin-SDK | d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863 | [
"MIT"
] | 1 | 2019-03-29T16:59:11.000Z | 2019-03-29T16:59:11.000Z | # encoding=utf-8
from weixin.config import *
def test_config():
config = Config(a=0, b=1)
assert config.a == 0
assert config.b == 1
config = Config({'a': 0, 'b': 1})
assert config.a == 0
assert config.b == 1
class ConfigObject:
A = 0
B = 1
a = 9
_p = 9... | 20.184211 | 53 | 0.558018 | 106 | 767 | 3.962264 | 0.245283 | 0.342857 | 0.114286 | 0.166667 | 0.745238 | 0.742857 | 0.680952 | 0.680952 | 0.285714 | 0.285714 | 0 | 0.054924 | 0.311604 | 767 | 37 | 54 | 20.72973 | 0.74053 | 0.045632 | 0 | 0.444444 | 0 | 0 | 0.024725 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
933837d955ae4df32d38b311e385f94bfcfec32d | 143 | py | Python | sweet_cms/applications/api/views.py | SunilPragroot/sweet | d048126007fd892cb8b6f80348920c8c5152a85c | [
"MIT"
] | 1 | 2021-04-16T14:25:36.000Z | 2021-04-16T14:25:36.000Z | sweet_cms/applications/api/views.py | SunilPragroot/sweet | d048126007fd892cb8b6f80348920c8c5152a85c | [
"MIT"
] | 122 | 2020-12-31T06:31:11.000Z | 2022-03-18T14:12:03.000Z | mycms___/webpack/api/views.py | Anioko/reusable-cms | 52e2a2f11a92c596bd13812d5fd14dffdcdcaa7f | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask_restful import Api
blueprint = Blueprint('api', __name__, url_prefix="/api")
main_api = Api(blueprint)
| 23.833333 | 57 | 0.783217 | 20 | 143 | 5.25 | 0.5 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 143 | 5 | 58 | 28.6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
934403beaaf4b180e03299ef44678f01f5d9fa9a | 306 | py | Python | exceptions_StopIteration.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | exceptions_StopIteration.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | exceptions_StopIteration.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | l=[0,1,2]
i=iter(l)
print i
print i.next()
print i.next()
print i.next()
print i.next()
'''
$ python exceptions_StopIteration.py
<listiterator object at 0x10045f650>
0
1
2
Traceback (most recent call last):
File "exceptions_StopIteration.py", line 19, in <module>
print i.next()
StopIteratiop
'''
| 13.909091 | 58 | 0.705882 | 49 | 306 | 4.367347 | 0.55102 | 0.168224 | 0.233645 | 0.21028 | 0.186916 | 0.186916 | 0.186916 | 0.186916 | 0.186916 | 0 | 0 | 0.065637 | 0.153595 | 306 | 21 | 59 | 14.571429 | 0.760618 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.714286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
936932697044ac0930d0a325c872cc0d84e60451 | 124 | py | Python | for.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | 2 | 2015-11-06T02:52:58.000Z | 2016-08-25T13:53:50.000Z | for.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | null | null | null | for.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
for i in range(1, 5):
print i
else:
print 'The for loop is over'
| 15.5 | 32 | 0.556452 | 22 | 124 | 3.136364 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.274194 | 124 | 8 | 33 | 15.5 | 0.733333 | 0.33871 | 0 | 0 | 0 | 0 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8780408c201b2cc8273c85cbfdc81fcfc187babc | 32 | py | Python | miscellaneous/__init__.py | Jinqi-Cheng/delivery_pal_server | b38f540919b9b61b6b22935e7801ce7da1f41db3 | [
"MIT"
] | null | null | null | miscellaneous/__init__.py | Jinqi-Cheng/delivery_pal_server | b38f540919b9b61b6b22935e7801ce7da1f41db3 | [
"MIT"
] | 1 | 2021-02-02T23:03:26.000Z | 2021-02-02T23:03:26.000Z | miscellaneous/__init__.py | Jinqi-Cheng/delivery_pal_server | b38f540919b9b61b6b22935e7801ce7da1f41db3 | [
"MIT"
] | null | null | null | """
Create Date ,
@author:
""" | 8 | 14 | 0.5 | 3 | 32 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 32 | 4 | 15 | 8 | 0.64 | 0.71875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 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 | 4 |
87bc64eb386da7d71f412d6254971c0a033ce42c | 156 | py | Python | autotf/ensemble/__init__.py | DAIM-ML/autotf | 3f82d858f49c27d5ecb624cee555fb8fd47bf067 | [
"BSD-3-Clause"
] | 8 | 2018-03-07T06:58:16.000Z | 2019-01-30T07:49:44.000Z | autotf/ensemble/__init__.py | DAIM-ML/autotf | 3f82d858f49c27d5ecb624cee555fb8fd47bf067 | [
"BSD-3-Clause"
] | null | null | null | autotf/ensemble/__init__.py | DAIM-ML/autotf | 3f82d858f49c27d5ecb624cee555fb8fd47bf067 | [
"BSD-3-Clause"
] | 1 | 2018-03-31T09:06:12.000Z | 2018-03-31T09:06:12.000Z | from .stack import Stacking
from .blend import Blending
from .subsemble import Subsemble
from .cobra import Cobra
__author__ = 'zwt'
__version__ = '0.1.1'
| 19.5 | 32 | 0.775641 | 22 | 156 | 5.136364 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.147436 | 156 | 7 | 33 | 22.285714 | 0.827068 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
87d34fc8425cac658cf10fe436f6d09ecd75bb51 | 74 | py | Python | init.py | lemon-mint/simplecompresser | dfc2093aedd6274583de21c9036f5f027960781f | [
"CC0-1.0"
] | 1 | 2019-12-15T12:38:56.000Z | 2019-12-15T12:38:56.000Z | init.py | lemon-mint/simplecompresser | dfc2093aedd6274583de21c9036f5f027960781f | [
"CC0-1.0"
] | null | null | null | init.py | lemon-mint/simplecompresser | dfc2093aedd6274583de21c9036f5f027960781f | [
"CC0-1.0"
] | null | null | null | import simplecodecompresser
compress = simplecodecompresser.compresscode
| 18.5 | 44 | 0.891892 | 5 | 74 | 13.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 74 | 3 | 45 | 24.666667 | 0.970588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 4 |
3559aa09fb0b15bbb230391339a5ffef5d5e6c3a | 95 | py | Python | baccoapp/mysandwich/apps.py | msienkiewicz7/baccoapp | d647ca205fdf06fe57fda7b6db164ae7d3387dad | [
"MIT"
] | null | null | null | baccoapp/mysandwich/apps.py | msienkiewicz7/baccoapp | d647ca205fdf06fe57fda7b6db164ae7d3387dad | [
"MIT"
] | null | null | null | baccoapp/mysandwich/apps.py | msienkiewicz7/baccoapp | d647ca205fdf06fe57fda7b6db164ae7d3387dad | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MysandwichConfig(AppConfig):
name = 'mysandwich'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3560cd014a8bc18cab944da79d4874523748b7a8 | 96 | py | Python | metarecord/apps.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | 2 | 2017-04-21T15:36:23.000Z | 2020-12-04T09:32:39.000Z | metarecord/apps.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | 168 | 2016-10-05T12:58:41.000Z | 2021-08-31T14:29:56.000Z | metarecord/apps.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | 7 | 2016-10-13T12:51:36.000Z | 2021-01-21T13:05:04.000Z | from django.apps import AppConfig
class InformationConfig(AppConfig):
name = 'metarecord'
| 16 | 35 | 0.770833 | 10 | 96 | 7.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 36 | 19.2 | 0.91358 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
356347db0a47bfb0add0fb35ad35665be47ae151 | 150 | py | Python | orhan-ergun/while_loop.py | jaredmauck/DEVASC | 6c0e4c6fcadc13b4d5445d4bd239d9fee878dc4a | [
"MIT"
] | null | null | null | orhan-ergun/while_loop.py | jaredmauck/DEVASC | 6c0e4c6fcadc13b4d5445d4bd239d9fee878dc4a | [
"MIT"
] | null | null | null | orhan-ergun/while_loop.py | jaredmauck/DEVASC | 6c0e4c6fcadc13b4d5445d4bd239d9fee878dc4a | [
"MIT"
] | null | null | null | from rich import print
count = 1
while count < 10:
print (count, "does not equal 10")
count = count + 1
else:
print(count, "equals 10")
| 15 | 38 | 0.626667 | 23 | 150 | 4.086957 | 0.565217 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.266667 | 150 | 9 | 39 | 16.666667 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
357a66d8d39b39713cfe93fb7400e8366249866b | 34,753 | py | Python | swift3/test/unit/test_obj.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | swift3/test/unit/test_obj.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | swift3/test/unit/test_obj.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 46.275632 | 79 | 0.595028 | 3,784 | 34,753 | 5.260307 | 0.080603 | 0.086009 | 0.028737 | 0.0422 | 0.797187 | 0.767194 | 0.729113 | 0.71997 | 0.688621 | 0.640543 | 0 | 0.022228 | 0.282825 | 34,753 | 750 | 80 | 46.337333 | 0.7764 | 0.036371 | 0 | 0.608347 | 0 | 0 | 0.171967 | 0.036013 | 0 | 0 | 0 | 0 | 0.272873 | 1 | 0.077047 | false | 0 | 0.019262 | 0 | 0.109149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3596f07e847ed59acf0ef697624d39c30c752391 | 772 | py | Python | zentral/contrib/monolith/migrations/0021_auto_20170409_1145.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 634 | 2015-10-30T00:55:40.000Z | 2022-03-31T02:59:00.000Z | zentral/contrib/monolith/migrations/0021_auto_20170409_1145.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 145 | 2015-11-06T00:17:33.000Z | 2022-03-16T13:30:31.000Z | zentral/contrib/monolith/migrations/0021_auto_20170409_1145.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 103 | 2015-11-07T07:08:49.000Z | 2022-03-18T17:34:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-04-09 11:45
from __future__ import unicode_literals
from django.db import migrations
from zentral.contrib.monolith.conf import monolith_conf
from zentral.contrib.monolith.models import ManifestEnrollmentPackage
from zentral.contrib.monolith.utils import buil... | 26.62069 | 76 | 0.778497 | 91 | 772 | 6.318681 | 0.538462 | 0.156522 | 0.18087 | 0.135652 | 0.16 | 0.16 | 0.16 | 0 | 0 | 0 | 0 | 0.05 | 0.145078 | 772 | 28 | 77 | 27.571429 | 0.821212 | 0.088083 | 0 | 0.117647 | 1 | 0 | 0.044223 | 0.03281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.294118 | 0 | 0.588235 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
35a75ee6fcfeccb95a8154465560a25adaddb315 | 249 | py | Python | src/pyuwds3/reasoning/grounding/route_generator.py | uwds3/uwds3 | 3ec70111d63db0c8d97d9f1e0110b7fe9ad56179 | [
"MIT"
] | null | null | null | src/pyuwds3/reasoning/grounding/route_generator.py | uwds3/uwds3 | 3ec70111d63db0c8d97d9f1e0110b7fe9ad56179 | [
"MIT"
] | null | null | null | src/pyuwds3/reasoning/grounding/route_generator.py | uwds3/uwds3 | 3ec70111d63db0c8d97d9f1e0110b7fe9ad56179 | [
"MIT"
] | null | null | null | import cv2
class RouteGenerator(object):
""" """
def __init__(self, model, weights, config_file, max_depth=25):
self.model = cv2.readNetFromTensorflow(model, weights)
def generate(self, depth_image, goal_track):
pass
| 20.75 | 66 | 0.674699 | 29 | 249 | 5.517241 | 0.724138 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.212851 | 249 | 11 | 67 | 22.636364 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
35d2d704480c3e93dfeaeb6f2d9fa1a72bf08613 | 1,358 | py | Python | sdk/python/pulumi_azure_native/kubernetes/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/kubernetes/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/kubernetes/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .connected_cluster import *
from .get_co... | 42.4375 | 96 | 0.809278 | 156 | 1,358 | 6.692308 | 0.384615 | 0.091954 | 0.130268 | 0.176245 | 0.463602 | 0.463602 | 0.176245 | 0 | 0 | 0 | 0 | 0.162595 | 0.12592 | 1,358 | 31 | 97 | 43.806452 | 0.716933 | 0.170103 | 0 | 0 | 1 | 0 | 0.155357 | 0.155357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.73913 | 0 | 0.73913 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
ea0ae9e093d99932442e626381703ba2427b5639 | 1,687 | py | Python | prettyqt/positioning/geopositioninfo.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/positioning/geopositioninfo.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/positioning/geopositioninfo.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from __future__ import annotations
from typing import Literal
from prettyqt import core, positioning
from prettyqt.qt import QtPositioning
from prettyqt.utils import bidict
ATTRIBUTE = bidict(
direction=QtPositioning.QGeoPositionInfo.Attribute.Direction,
ground_speed=QtPositioning.QGeoPositionInfo.Attribute... | 31.830189 | 88 | 0.757558 | 162 | 1,687 | 7.604938 | 0.339506 | 0.164773 | 0.185065 | 0.069805 | 0.050325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148192 | 1,687 | 52 | 89 | 32.442308 | 0.857342 | 0 | 0 | 0 | 0 | 0 | 0.09425 | 0.040901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.131579 | 0.184211 | 0.552632 | 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 | 1 | 1 | 0 | 0 | 4 |
ea55b3f64e7c9107489b5f4f104d283afa9973e9 | 159 | py | Python | my_wallet/stocks/forms.py | Bounty1993/my-wallet | c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa | [
"MIT"
] | null | null | null | my_wallet/stocks/forms.py | Bounty1993/my-wallet | c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa | [
"MIT"
] | 8 | 2020-06-05T19:52:06.000Z | 2022-03-11T23:40:19.000Z | my_wallet/stocks/forms.py | Bounty1993/my-wallet | c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa | [
"MIT"
] | null | null | null | from django import forms
from .models import Stocks
class NewStockForm(forms.ModelForm):
class Meta:
model = Stocks
fields = ['ticker']
| 15.9 | 36 | 0.666667 | 18 | 159 | 5.888889 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257862 | 159 | 9 | 37 | 17.666667 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ea59603c24a4e219a38ee3538ed0b51af8fce820 | 11,850 | py | Python | tests/concepts_test.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | 4 | 2019-04-25T21:09:39.000Z | 2020-07-26T08:57:00.000Z | tests/concepts_test.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | 1 | 2019-08-11T00:27:18.000Z | 2019-08-12T17:36:42.000Z | tests/concepts_test.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | null | null | null | import unittest
from icenews.concepts import Concepts
T1 = """Höfða mál vegna vopnasölu til Sádi-Arabíu
Mannréttindasamtök á Ítalíu, Þýskalandi og Jemen hafa höfðað mál á hendur ítölskum yfirvöldum og evrópskum vopnaframleiðendum fyrir meinta aðild að loftárásum Sádi-Araba og bandamanna þeirra í Jemen. Þar berjast þ... | 194.262295 | 2,015 | 0.813333 | 1,852 | 11,850 | 5.201944 | 0.476782 | 0.005086 | 0.004982 | 0.00519 | 0.065393 | 0.061657 | 0.056674 | 0.045049 | 0.045049 | 0.045049 | 0 | 0.016978 | 0.16 | 11,850 | 60 | 2,016 | 197.5 | 0.950372 | 0 | 0 | 0 | 0 | 0.422222 | 0.959916 | 0.014684 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ea8f0f72d49a5c4730779e0cc1c5d55c796a9166 | 1,327 | py | Python | employee/serializers.py | somkiet073/LeaveManagement | 753c6497bb1094deb86809135b25e558d4912700 | [
"MIT"
] | null | null | null | employee/serializers.py | somkiet073/LeaveManagement | 753c6497bb1094deb86809135b25e558d4912700 | [
"MIT"
] | null | null | null | employee/serializers.py | somkiet073/LeaveManagement | 753c6497bb1094deb86809135b25e558d4912700 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from employee.models import Department, Profile, AppoveGroup, Positions, Prename
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('url', 'username', 'email', 'fi... | 34.921053 | 110 | 0.696307 | 120 | 1,327 | 7.633333 | 0.375 | 0.282751 | 0.320961 | 0.351528 | 0.446507 | 0.056769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191409 | 1,327 | 38 | 111 | 34.921053 | 0.853681 | 0 | 0 | 0.354839 | 0 | 0 | 0.127259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 4 |
575bf9eb3fb36a2bf1c13f54bae3bd78645b5fcf | 271 | py | Python | src/syft/lib/python/primitive_interface.py | dnabanita7/PySyft | ce2510e65f5bad382e88806bcde30fa38c3c76c4 | [
"Apache-2.0"
] | 2 | 2018-07-23T20:34:10.000Z | 2020-08-01T09:09:09.000Z | packages/syft/src/syft/lib/python/primitive_interface.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 5 | 2020-09-11T05:47:12.000Z | 2020-10-13T08:36:17.000Z | packages/syft/src/syft/lib/python/primitive_interface.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 1 | 2020-10-15T06:13:38.000Z | 2020-10-15T06:13:38.000Z | # stdlib
from typing import Any
# syft relative
from ...core.common import UID
from ...core.common.serde.serializable import Serializable
class PyPrimitive(Serializable):
def __init__(self) -> None:
self._id: UID
def upcast(self) -> Any:
pass
| 18.066667 | 58 | 0.686347 | 34 | 271 | 5.323529 | 0.617647 | 0.088398 | 0.154696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214022 | 271 | 14 | 59 | 19.357143 | 0.849765 | 0.073801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.375 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
578688b8a425d751f6d28c6221e25d47bc55c76a | 79,584 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_ipv4_acl_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR ipv4\-acl package configuration.
This module contains definitions
for the following management objects\:
ipv4\-acl\-and\-prefix\-list\: IPv4 ACL configuration data
Copyright (c) 2013\-2016 by Cisco Systems, Inc.
... | 42.581059 | 225 | 0.444775 | 7,097 | 79,584 | 4.786389 | 0.041285 | 0.040508 | 0.050634 | 0.042863 | 0.800112 | 0.766728 | 0.711354 | 0.681474 | 0.651005 | 0.616091 | 0 | 0.023866 | 0.481931 | 79,584 | 1,868 | 226 | 42.603854 | 0.800024 | 0.284856 | 0 | 0.666667 | 0 | 0.010499 | 0.103669 | 0.066188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152231 | false | 0 | 0.038058 | 0.005249 | 0.494751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5787f5ee52f63c6cfd74ca994ff98ce017ffcc47 | 458 | py | Python | dong_mnist_example/config/default.py | libgirlenterprise/dong_mnist_example | fdcf2fcc457e717eeaddb631f071790eb1f39607 | [
"Apache-2.0"
] | 1 | 2019-06-26T02:26:53.000Z | 2019-06-26T02:26:53.000Z | dong_mnist_example/config/default.py | libgirlenterprise/dong_mnist_example | fdcf2fcc457e717eeaddb631f071790eb1f39607 | [
"Apache-2.0"
] | 4 | 2020-01-28T22:47:24.000Z | 2022-02-10T00:10:45.000Z | dong_mnist_example/config/default.py | libgirlenterprise/dong_mnist_example | fdcf2fcc457e717eeaddb631f071790eb1f39607 | [
"Apache-2.0"
] | 1 | 2019-08-20T17:04:05.000Z | 2019-08-20T17:04:05.000Z | from collections import OrderedDict
def get_config():
return OrderedDict([("self.compile", (":optimizer",
"adam",
":loss",
"sparse_categorical_crossentropy",
... | 41.636364 | 76 | 0.327511 | 23 | 458 | 6.391304 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.563319 | 458 | 10 | 77 | 45.8 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.203057 | 0.067686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
5798d77a2c9296ac2da8209cdf69ce85351f3796 | 547 | py | Python | deepleaps/workspace/src/dataloader/TensorTypes.py | Longseabear/deep-leaps-pytorch | abcb87f3079c0612bde4a4f94c75d7c05d5aee3a | [
"MIT"
] | 1 | 2021-02-27T18:00:39.000Z | 2021-02-27T18:00:39.000Z | deepleaps/workspace/src/dataloader/TensorTypes.py | Longseabear/deep-leaps-pytorch | abcb87f3079c0612bde4a4f94c75d7c05d5aee3a | [
"MIT"
] | null | null | null | deepleaps/workspace/src/dataloader/TensorTypes.py | Longseabear/deep-leaps-pytorch | abcb87f3079c0612bde4a4f94c75d7c05d5aee3a | [
"MIT"
] | null | null | null | from deepleaps.dataloader.TensorTypes import TensorType
import scipy.misc as misc
class IMAGE(TensorType):
def image_loader(self, path):
return misc.imread(path)/255.
def image_saver(self, path, data):
return misc.imsave(path, data)
def getSample(self, sample):
return self.image_l... | 22.791667 | 55 | 0.700183 | 70 | 547 | 5.385714 | 0.371429 | 0.116711 | 0.074271 | 0.095491 | 0.509284 | 0.509284 | 0.509284 | 0.509284 | 0.509284 | 0.286472 | 0 | 0.006912 | 0.206581 | 547 | 23 | 56 | 23.782609 | 0.861751 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.125 | 0.3125 | 0.9375 | 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 | 1 | 1 | 0 | 0 | 4 |
57bb4cb5cba175c3f14e276daa1e15c8754d69d7 | 111 | py | Python | python/verkefni1/mod_sum.py | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | python/verkefni1/mod_sum.py | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | python/verkefni1/mod_sum.py | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def mod_sum(n):
return sum([x for x in range(n) if (x % 3 == 0) or (x % 5 == 0)])
| 18.5 | 69 | 0.531532 | 24 | 111 | 2.416667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.252252 | 111 | 5 | 70 | 22.2 | 0.638554 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
57e460434bef856874045c5e2b88a3941304d478 | 306 | py | Python | board/mk3072/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | 1 | 2021-06-27T12:40:17.000Z | 2021-06-27T12:40:17.000Z | board/mk3072/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | null | null | null | board/mk3072/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | 5 | 2020-11-04T04:36:37.000Z | 2021-11-10T08:05:49.000Z | linux_only_targets="athostapp blink coapapp helloworld http2app httpapp jsengine_app linkkit_gateway linkkitapp lwm2mapp meshapp modbus_demo mqttapp otaapp tls udata_demo.sensor_cloud_demo udata_demo.sensor_local_demo udata_demo.udata_cloud_demo udata_demo.udata_local_demo udataapp ulocation.baseapp yts"
| 153 | 305 | 0.901961 | 45 | 306 | 5.755556 | 0.644444 | 0.173745 | 0.150579 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.071895 | 306 | 1 | 306 | 306 | 0.90493 | 0 | 0 | 0 | 0 | 1 | 0.928105 | 0.359477 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17b3bf75b3cd04da2851578a77cbce24ec64772f | 83 | py | Python | olmonopolet/vmp_api/__init__.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 2 | 2020-11-21T13:15:53.000Z | 2021-05-18T19:17:41.000Z | olmonopolet/vmp_api/__init__.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 6 | 2021-03-21T19:24:26.000Z | 2021-09-22T19:09:31.000Z | olmonopolet/vmp_api/__init__.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 1 | 2021-05-20T21:52:10.000Z | 2021-05-20T21:52:10.000Z | '''Functions used to retrieve data by use of the API available from Vinmonopolet''' | 83 | 83 | 0.783133 | 13 | 83 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 1 | 83 | 83 | 0.915493 | 0.927711 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17dfaa10b74d1cc6f9abaf48a71149eaf9a64603 | 45,359 | py | Python | code/tests/unit/payloads_for_tests.py | CiscoSecurity/tr-05-serverless-graylog | ea873a5538d6803396936e94d017e157628432dd | [
"MIT"
] | null | null | null | code/tests/unit/payloads_for_tests.py | CiscoSecurity/tr-05-serverless-graylog | ea873a5538d6803396936e94d017e157628432dd | [
"MIT"
] | null | null | null | code/tests/unit/payloads_for_tests.py | CiscoSecurity/tr-05-serverless-graylog | ea873a5538d6803396936e94d017e157628432dd | [
"MIT"
] | null | null | null | EXPECTED_RESPONSE_OF_JWKS_ENDPOINT = {
'keys': [
{
'kty': 'RSA',
'n': 'tSKfSeI0fukRIX38AHlKB1YPpX8PUYN2JdvfM-XjNmLfU1M74N0V'
'mdzIX95sneQGO9kC2xMIE-AIlt52Yf_KgBZggAlS9Y0Vx8DsSL2H'
'vOjguAdXir3vYLvAyyHin_mUisJOqccFKChHKjnk0uXy_38-1r17'
... | 48.512299 | 181 | 0.399039 | 2,830 | 45,359 | 6.272792 | 0.167491 | 0.036052 | 0.042587 | 0.014872 | 0.743184 | 0.71468 | 0.70578 | 0.699076 | 0.698851 | 0.691866 | 0 | 0.173943 | 0.488459 | 45,359 | 934 | 182 | 48.56424 | 0.59113 | 0 | 0 | 0.563715 | 0 | 0.019438 | 0.418153 | 0.175379 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17e1383f6cfbcbbba2ad55f81f370c16c4b03f3e | 106 | py | Python | db/__init__.py | ti-lei/iphone11 | f69e7050ecdc87651eab5e8fdb38e4f305a9257f | [
"bzip2-1.0.6"
] | null | null | null | db/__init__.py | ti-lei/iphone11 | f69e7050ecdc87651eab5e8fdb38e4f305a9257f | [
"bzip2-1.0.6"
] | null | null | null | db/__init__.py | ti-lei/iphone11 | f69e7050ecdc87651eab5e8fdb38e4f305a9257f | [
"bzip2-1.0.6"
] | null | null | null | from db.router import Router
from db import *
router = Router()
def get_db_router():
return router
| 11.777778 | 28 | 0.716981 | 16 | 106 | 4.625 | 0.4375 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 106 | 8 | 29 | 13.25 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
17e456504deca455b967b074d1398d4f839f72f8 | 170 | py | Python | libs/utils.py | quojama/takohachi | 8a3ed7d96b4ceb8b260233f1418aee91cf61320f | [
"MIT"
] | 2 | 2021-07-12T10:11:18.000Z | 2021-07-26T18:58:19.000Z | libs/utils.py | pistachiostudio/takohachi | 263c390ccd63065c43feee4156144a691075745f | [
"MIT"
] | 22 | 2021-10-01T02:36:39.000Z | 2022-03-16T03:07:35.000Z | libs/utils.py | pistachiostudio/takohachi | 263c390ccd63065c43feee4156144a691075745f | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta, timezone
def get_now_timestamp_jst() -> datetime:
JST = timezone(timedelta(hours=+9), "JST")
return datetime.now(JST)
| 24.285714 | 50 | 0.729412 | 22 | 170 | 5.5 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.152941 | 170 | 6 | 51 | 28.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
aa0468f5163f0c138c91ec4d5319dd6ccc74b208 | 3,613 | py | Python | c3/libraries/constants.py | picbeats/c3 | 4321c2a42006b58d7231746cfe05fa391f640aa1 | [
"Apache-2.0"
] | 45 | 2020-11-02T13:26:26.000Z | 2022-03-20T13:13:42.000Z | c3/libraries/constants.py | picbeats/c3 | 4321c2a42006b58d7231746cfe05fa391f640aa1 | [
"Apache-2.0"
] | 165 | 2020-10-30T17:20:25.000Z | 2022-03-31T12:59:48.000Z | c3/libraries/constants.py | picbeats/c3 | 4321c2a42006b58d7231746cfe05fa391f640aa1 | [
"Apache-2.0"
] | 28 | 2020-10-21T04:10:26.000Z | 2022-02-17T17:44:55.000Z | """All physical constants used in other code."""
import numpy as np
kb = 1.380649e-23
h = 6.62607015e-34
hbar = 1.054571817e-34
q_e = 1.602176634e-19 # electron charge
twopi = 6.2831853071795864769252867665590057683943387987502116419498891846
PREFIXES = {
"K": 1e3,
"M": 1e6,
"G": 1e9,
"T": 1e12,
... | 29.859504 | 88 | 0.464434 | 615 | 3,613 | 2.726829 | 0.188618 | 0.159809 | 0.182469 | 0.205128 | 0.545021 | 0.533691 | 0.502087 | 0.49195 | 0.451401 | 0.330948 | 0 | 0.250095 | 0.270689 | 3,613 | 120 | 89 | 30.108333 | 0.386338 | 0.029892 | 0 | 0.149533 | 0 | 0 | 0.047183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009346 | 0 | 0.009346 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 4 |
a4b8019a53bddce637fc18ba3fbfb40bdbadd574 | 861 | py | Python | krogon/logger.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | 1 | 2020-03-02T14:17:02.000Z | 2020-03-02T14:17:02.000Z | krogon/logger.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | krogon/logger.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | import logging
class Logger:
def __init__(self, name: str):
self.name = name
def add_prefix(self, suffix):
return Logger(self.name + ' -> ' + suffix)
def debug(self, message):
self.log('debug', message)
def error(self, message):
self.log('error', message)
def wa... | 27.774194 | 84 | 0.477352 | 89 | 861 | 4.561798 | 0.280899 | 0.12069 | 0.206897 | 0.221675 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001527 | 0.239257 | 861 | 30 | 85 | 28.7 | 0.618321 | 0.052265 | 0 | 0.1 | 0 | 0 | 0.203931 | 0.137592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.05 | 0.05 | 0.55 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a4cf9d6bfe920fabcaf2f3309749c8f79da72236 | 604 | py | Python | permissions.py | maurob/timeperiod | 1a014b054eb47f416f89bad9e5bccd1503baf326 | [
"MIT"
] | null | null | null | permissions.py | maurob/timeperiod | 1a014b054eb47f416f89bad9e5bccd1503baf326 | [
"MIT"
] | null | null | null | permissions.py | maurob/timeperiod | 1a014b054eb47f416f89bad9e5bccd1503baf326 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission
class IsCurrentUser(BasePermission):
def has_object_permission(self, request, view, obj):
return obj == request.user
class UserIsOwnerOrAdmin(BasePermission):
def has_permission(self, request, view):
return request.user and request.user.i... | 33.555556 | 63 | 0.731788 | 74 | 604 | 5.797297 | 0.337838 | 0.149184 | 0.13986 | 0.174825 | 0.214452 | 0.214452 | 0.214452 | 0.214452 | 0.214452 | 0 | 0 | 0 | 0.182119 | 604 | 18 | 64 | 33.555556 | 0.868421 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.333333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a4edcb8a4b11a812c9abc6f90ef8f951bf54ca29 | 57 | py | Python | marquant/__init__.py | CSF-BioComp/marquant | f83689c03134eac6311ebcd33ef3eca9db6f2782 | [
"MIT"
] | null | null | null | marquant/__init__.py | CSF-BioComp/marquant | f83689c03134eac6311ebcd33ef3eca9db6f2782 | [
"MIT"
] | null | null | null | marquant/__init__.py | CSF-BioComp/marquant | f83689c03134eac6311ebcd33ef3eca9db6f2782 | [
"MIT"
] | null | null | null | from marquant.microarray_analysis import slide_experiment | 57 | 57 | 0.929825 | 7 | 57 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 57 | 1 | 57 | 57 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
351bab681dc4d8ac10ef50d1897e31b401c68534 | 201 | py | Python | Exercise_5_4.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_5_4.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_5_4.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | #Alian Colors #2
alian_color = 'green'
if alian_color == 'green' or alian_color == 'yellow' or alian_color == 'red':
print("You just earned 5 points.")
else:
print("You just earned 10 points.") | 33.5 | 77 | 0.676617 | 31 | 201 | 4.258065 | 0.548387 | 0.30303 | 0.227273 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.179104 | 201 | 6 | 78 | 33.5 | 0.775758 | 0.069652 | 0 | 0 | 0 | 0 | 0.376344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
353048def3d07d25bfe98d37d503e9cdd7158470 | 902 | py | Python | tests/geographic/outliers/test_is_std_outlier.py | PEM-Humboldt/regi0 | 0d64587d5d87f57cddfc7a67bb8baf74cd70adf2 | [
"MIT"
] | null | null | null | tests/geographic/outliers/test_is_std_outlier.py | PEM-Humboldt/regi0 | 0d64587d5d87f57cddfc7a67bb8baf74cd70adf2 | [
"MIT"
] | 15 | 2022-02-03T11:38:37.000Z | 2022-03-09T23:23:04.000Z | tests/geographic/outliers/test_is_std_outlier.py | PEM-Humboldt/regi0 | 0d64587d5d87f57cddfc7a67bb8baf74cd70adf2 | [
"MIT"
] | null | null | null | """
Test cases for the regi0.geographic.outliers._is_std_outlier function.
"""
import numpy as np
import pytest
from regi0.geographic.outliers import _is_std_outlier
@pytest.fixture()
def values():
return np.array([52, 56, 53, 57, 51, 59, 1, 99])
def test_std(values):
result = _is_std_outlier(values)
e... | 29.096774 | 81 | 0.732816 | 131 | 902 | 4.832061 | 0.320611 | 0.268562 | 0.331754 | 0.347551 | 0.668246 | 0.668246 | 0.620853 | 0.612954 | 0.383886 | 0.383886 | 0 | 0.027273 | 0.146341 | 902 | 30 | 82 | 30.066667 | 0.794805 | 0.077605 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.166667 | 0.055556 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
102f600b23ccb704c3dce6c1e058f67a31fb34fd | 99 | py | Python | ImageAnalysis/ImageAnalysis/python/source/image_parsing/__init__.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | null | null | null | ImageAnalysis/ImageAnalysis/python/source/image_parsing/__init__.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 2 | 2021-09-07T23:43:53.000Z | 2022-01-13T00:39:55.000Z | ImageAnalysis/ImageAnalysis/python/source/image_parsing/__init__.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 1 | 2019-10-21T17:12:07.000Z | 2019-10-21T17:12:07.000Z | '''
Modules used to analyze and parse an image into a JSON file for the Perler Printer to read.
''' | 33 | 91 | 0.737374 | 18 | 99 | 4.055556 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191919 | 99 | 3 | 92 | 33 | 0.9125 | 0.919192 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1058807fc1d88fb5653f8b8f5d32e8dd40d318c6 | 97 | py | Python | bodynavigation/__init__.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | 5 | 2017-03-26T20:24:59.000Z | 2021-04-10T04:13:05.000Z | bodynavigation/__init__.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | null | null | null | bodynavigation/__init__.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | 2 | 2017-03-27T17:24:52.000Z | 2022-01-28T01:55:20.000Z | __all__ = ["body_navigation"]
from .body_navigation import BodyNavigation
__version__ = "0.6.1"
| 19.4 | 43 | 0.773196 | 12 | 97 | 5.416667 | 0.833333 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.113402 | 97 | 4 | 44 | 24.25 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
109af9bd4fd478c8f00eb08693a6ab281c2cc169 | 472 | py | Python | python/ql/test/experimental/library-tests/frameworks/stdlib/FileSystemAccess.py | NateD-MSFT/codeql | f0d5a91d59dca9a67e772beaa8b7f73ba876d831 | [
"MIT"
] | 3 | 2021-07-13T22:29:19.000Z | 2022-01-13T22:45:30.000Z | python/ql/test/experimental/library-tests/frameworks/stdlib/FileSystemAccess.py | 00mjk/codeql | dfc0e9b90619aab50bf8a5a6c5d1966bcc1f5b3b | [
"MIT"
] | 1 | 2021-04-21T19:58:49.000Z | 2021-04-21T19:58:49.000Z | python/ql/test/experimental/library-tests/frameworks/stdlib/FileSystemAccess.py | 00mjk/codeql | dfc0e9b90619aab50bf8a5a6c5d1966bcc1f5b3b | [
"MIT"
] | null | null | null | import builtins
import io
open("filepath") # $getAPathArgument="filepath"
open(file="filepath") # $getAPathArgument="filepath"
o = open
o("filepath") # $getAPathArgument="filepath"
o(file="filepath") # $getAPathArgument="filepath"
builtins.open("filepath") # $getAPathArgument="filepath"
builtins.open(file="fi... | 24.842105 | 62 | 0.730932 | 46 | 472 | 7.5 | 0.173913 | 0.556522 | 0.742029 | 0.417391 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097458 | 472 | 18 | 63 | 26.222222 | 0.809859 | 0.489407 | 0 | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 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 | 4 |
109d4d7e18c51f04775543f1346de3ad6a43f44d | 288 | py | Python | src/util.py | Allvaa/musicbot-py | ecab805135cf2d486331c4daa5903907cc6912ea | [
"MIT"
] | 1 | 2020-12-31T11:45:06.000Z | 2020-12-31T11:45:06.000Z | src/util.py | Allvaa/musicbot-py | ecab805135cf2d486331c4daa5903907cc6912ea | [
"MIT"
] | null | null | null | src/util.py | Allvaa/musicbot-py | ecab805135cf2d486331c4daa5903907cc6912ea | [
"MIT"
] | 1 | 2020-12-31T11:45:13.000Z | 2020-12-31T11:45:13.000Z | from src.structures import client
from discord.colour import Colour
import discord
class Util:
def __init__(self, bot: "client.MusicBot") -> None:
self.bot = bot
def embed(self, **kwargs) -> discord.Embed:
return discord.Embed(colour=Colour.blurple(), **kwargs)
| 26.181818 | 63 | 0.690972 | 37 | 288 | 5.27027 | 0.513514 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190972 | 288 | 10 | 64 | 28.8 | 0.83691 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
10a4fa5c321aad3b43fec2b8199697d3794df44b | 1,559 | py | Python | rbc/tests/test_utils.py | tupui/rbc | 630805b6a32a1e53883dd8502e9a0679c9923b0b | [
"BSD-3-Clause"
] | 21 | 2019-05-21T14:44:01.000Z | 2021-12-09T21:48:36.000Z | rbc/tests/test_utils.py | tupui/rbc | 630805b6a32a1e53883dd8502e9a0679c9923b0b | [
"BSD-3-Clause"
] | 349 | 2019-07-31T17:48:21.000Z | 2022-03-31T06:57:52.000Z | rbc/tests/test_utils.py | tupui/rbc | 630805b6a32a1e53883dd8502e9a0679c9923b0b | [
"BSD-3-Clause"
] | 10 | 2020-01-23T20:14:17.000Z | 2022-02-08T20:43:08.000Z | from rbc.utils import is_localhost, get_local_ip, triple_matches, check_returns_none
def test_is_localhost():
assert is_localhost(get_local_ip())
def test_triple_matches():
assert triple_matches('cuda', 'nvptx64-nvidia-cuda')
assert triple_matches('nvptx64-nvidia-cuda', 'cuda')
assert triple_matches... | 18.783133 | 84 | 0.597819 | 202 | 1,559 | 4.391089 | 0.193069 | 0.175874 | 0.234498 | 0.235626 | 0.632469 | 0.507328 | 0.507328 | 0.472379 | 0.414882 | 0.281849 | 0 | 0.020638 | 0.316228 | 1,559 | 82 | 85 | 19.012195 | 0.811445 | 0.00898 | 0 | 0.754386 | 0 | 0 | 0.087492 | 0.015554 | 0 | 0 | 0 | 0 | 0.298246 | 1 | 0.245614 | false | 0.035088 | 0.017544 | 0.070175 | 0.491228 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
10b3ed5f6b6d67d88d2364ed06cd670b0bf26b0a | 24,080 | py | Python | Projects/LakhMidi/fetchData.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | Projects/LakhMidi/fetchData.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | Projects/LakhMidi/fetchData.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | """#########################################################################
Author: Yingru Liu
Institute: Stony Brook University
Descriptions: the files contain the tools to extract the piano-rolls
representations of the midi files and to save them as
hdf5 data-set. The Piano-rolls rep... | 55.102975 | 121 | 0.621968 | 3,264 | 24,080 | 4.492341 | 0.290135 | 0.17493 | 0.309896 | 0.364114 | 0.469276 | 0.270886 | 0.117711 | 0.062948 | 0.04126 | 0.033827 | 0 | 0.017506 | 0.20054 | 24,080 | 437 | 122 | 55.102975 | 0.744169 | 0.035922 | 0 | 0.024064 | 0 | 0.018717 | 0.717554 | 0.404023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008021 | false | 0.005348 | 0.016043 | 0 | 0.032086 | 0.016043 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
529b687550fa45b28e927f9a08de162d355481c8 | 2,145 | py | Python | crypto4/src/writeup.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | crypto4/src/writeup.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | crypto4/src/writeup.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | from Crypto.Util.number import *
e = 65537
c = 19657997127631606992942743387466090025613514791616866084619244565511331009275751254657004083860029307546049827487765683663007284692019872203735287593122174936493232019489974221332262737999303566187062567433594292926330155392795066336870733605934927807359566256054189345... | 65 | 622 | 0.839161 | 104 | 2,145 | 17.230769 | 0.5 | 0.011161 | 0.008371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.824515 | 0.110023 | 2,145 | 32 | 623 | 67.03125 | 0.114196 | 0.020513 | 0 | 0 | 0 | 0 | 0.001935 | 0 | 0 | 1 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.107143 | 0.035714 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
52b094fe1dbcf4982d4d66018671d8a808f65d74 | 209 | py | Python | backend/workers/config.py | jmeisele/celery-farm | 7e2638a24717b37f1886a816c45b9d88f89cc726 | [
"MIT"
] | 3 | 2022-01-07T20:30:31.000Z | 2022-02-09T19:11:27.000Z | backend/workers/config.py | jmeisele/celery-farm | 7e2638a24717b37f1886a816c45b9d88f89cc726 | [
"MIT"
] | null | null | null | backend/workers/config.py | jmeisele/celery-farm | 7e2638a24717b37f1886a816c45b9d88f89cc726 | [
"MIT"
] | null | null | null | import os
from pydantic import BaseSettings
class CelerySettings(BaseSettings):
BROKER_URL: str = os.environ["BROKER_URL"]
BACKEND_URL: str = os.environ["BACKEND_URL"]
settings = CelerySettings()
| 17.416667 | 48 | 0.751196 | 25 | 209 | 6.12 | 0.52 | 0.117647 | 0.104575 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15311 | 209 | 11 | 49 | 19 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52b7dcd282174c108cb928f3b8a580076244216f | 89 | py | Python | train.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | train.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | train.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | """Train SSD model."""
from pytorch_ssd import cli
if __name__ == "__main__":
cli()
| 14.833333 | 27 | 0.651685 | 12 | 89 | 4.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191011 | 89 | 5 | 28 | 17.8 | 0.680556 | 0.179775 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52bcc4883fc5399a610d9708b5bb7b058bceb2cb | 102 | py | Python | run.py | Dev-Tayal/Searchterm-Network-Map | 488ec12b041cf2c8c25f6189494b685c2051c4ea | [
"MIT"
] | 3 | 2021-05-16T17:44:22.000Z | 2021-06-26T16:03:03.000Z | run.py | ritikverma2000/Searchterm-Network-Map | f81aebe8da56b389dd772a62d30f280240a16e44 | [
"MIT"
] | 1 | 2021-05-18T07:37:03.000Z | 2021-05-18T07:37:03.000Z | run.py | ritikverma2000/Searchterm-Network-Map | f81aebe8da56b389dd772a62d30f280240a16e44 | [
"MIT"
] | 2 | 2021-05-18T07:26:06.000Z | 2021-06-26T14:39:20.000Z | #!/usr/bin/env python3
if __name__ == "__main__":
import networkmap
networkmap.render_page()
| 17 | 28 | 0.696078 | 12 | 102 | 5.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.176471 | 102 | 5 | 29 | 20.4 | 0.72619 | 0.205882 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52c795365e502b789ebfce779e1192e3bc83b60f | 3,000 | py | Python | tensordata/utils/compress/_files_compress.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 13 | 2019-01-08T10:22:39.000Z | 2020-06-17T10:02:47.000Z | tensordata/utils/compress/_files_compress.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | null | null | null | tensordata/utils/compress/_files_compress.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 1 | 2020-06-17T10:02:49.000Z | 2020-06-17T10:02:49.000Z | import bz2
import gzip
import zipfile
import tarfile
import rarfile
import tensordata.gfile as gfile
__all__ = ['files_zip', 'files_tar', 'files_bz2']
def files_zip(files, zip_name):
"""Compression files to .zip.
Args:
files: str or list
if str, files should be file path;
... | 34.482759 | 89 | 0.595667 | 414 | 3,000 | 4.229469 | 0.130435 | 0.082239 | 0.089092 | 0.109652 | 0.802399 | 0.786979 | 0.732724 | 0.689891 | 0.632781 | 0.632781 | 0 | 0.006724 | 0.306 | 3,000 | 86 | 90 | 34.883721 | 0.834294 | 0.248667 | 0 | 0.568627 | 0 | 0 | 0.203573 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e2dc3875c06933360096d6719d92ba2b0ed512b | 198 | py | Python | pyqwikswitch/__init__.py | kellerza/pyqwikswitch | 9d4f080048221eaee93e3eefcf641919ff1af586 | [
"MIT"
] | null | null | null | pyqwikswitch/__init__.py | kellerza/pyqwikswitch | 9d4f080048221eaee93e3eefcf641919ff1af586 | [
"MIT"
] | 2 | 2018-04-14T11:29:13.000Z | 2018-05-18T22:11:47.000Z | pyqwikswitch/__init__.py | kellerza/pyqwikswitch | 9d4f080048221eaee93e3eefcf641919ff1af586 | [
"MIT"
] | 4 | 2018-04-14T12:30:54.000Z | 2018-10-07T17:08:34.000Z | """QwikSwitch USB Modem library for Python.
See: http://www.qwikswitch.co.za/qs-usb.php
Currently supports relays, buttons and LED dimmers
Source: http://www.github.com/kellerza/pyqwikswitch
"""
| 22 | 51 | 0.762626 | 29 | 198 | 5.206897 | 0.862069 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 198 | 8 | 52 | 24.75 | 0.853107 | 0.959596 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eab54bf827306a4dd2b3681a498da34ceff0514e | 71 | py | Python | co2mini_server.py | cointoss1973/co2mini-monitor | 4779a33b32434044074750ae92255028e0f74ec2 | [
"MIT"
] | null | null | null | co2mini_server.py | cointoss1973/co2mini-monitor | 4779a33b32434044074750ae92255028e0f74ec2 | [
"MIT"
] | null | null | null | co2mini_server.py | cointoss1973/co2mini-monitor | 4779a33b32434044074750ae92255028e0f74ec2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import co2meter as co2
co2.start_server()
| 11.833333 | 23 | 0.690141 | 11 | 71 | 4.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.197183 | 71 | 5 | 24 | 14.2 | 0.789474 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eabd14be65b0ee635e18860280a78c2f20ef704f | 157 | py | Python | .virtualenvs/django19/bin/django-admin.py | zrhans/pythonanywhere | 1e9dc9a8ce59872f89e5c61a34b8b858a3cad0ee | [
"Apache-2.0"
] | null | null | null | .virtualenvs/django19/bin/django-admin.py | zrhans/pythonanywhere | 1e9dc9a8ce59872f89e5c61a34b8b858a3cad0ee | [
"Apache-2.0"
] | null | null | null | .virtualenvs/django19/bin/django-admin.py | zrhans/pythonanywhere | 1e9dc9a8ce59872f89e5c61a34b8b858a3cad0ee | [
"Apache-2.0"
] | null | null | null | #!/home/zrhans/.virtualenvs/django19/bin/python3.4
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 26.166667 | 50 | 0.783439 | 20 | 157 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.095541 | 157 | 5 | 51 | 31.4 | 0.760563 | 0.312102 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eabe5cbe8e33bc013acea394ed56242fc11c9193 | 115 | py | Python | url.py | Smyja/innovation-sandbox-python | 3d44792e5f9dc1858a0b44704164ecd16f5e04d4 | [
"MIT"
] | 1 | 2020-03-09T23:15:27.000Z | 2020-03-09T23:15:27.000Z | url.py | Devcyclops/innovation-sandbox-python | cdf3d3782be9de643c7191e73d92294de3a20373 | [
"MIT"
] | 2 | 2020-03-09T12:18:45.000Z | 2021-06-02T00:59:26.000Z | url.py | Devcyclops/innovation-sandbox-python | cdf3d3782be9de643c7191e73d92294de3a20373 | [
"MIT"
] | 3 | 2020-03-07T09:42:59.000Z | 2020-03-26T21:58:46.000Z | def url(your_url):
root = 'https://sandboxapi.fsi.ng'
if your_url:
root = your_url
return root
| 19.166667 | 38 | 0.608696 | 17 | 115 | 3.941176 | 0.588235 | 0.313433 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278261 | 115 | 5 | 39 | 23 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 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 | 4 |
ead4cd793c1b64d224785d1cc3fc1e0ddd6b9040 | 526 | py | Python | container_service_extension/rde/models/abstractNativeEntity.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 81 | 2017-07-05T19:42:41.000Z | 2022-03-09T22:04:05.000Z | container_service_extension/rde/models/abstractNativeEntity.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 670 | 2017-07-05T16:48:02.000Z | 2022-03-31T13:40:53.000Z | container_service_extension/rde/models/abstractNativeEntity.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 64 | 2017-07-05T16:32:55.000Z | 2022-03-23T09:36:03.000Z | # container-service-extension
# Copyright (c) 2021 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
import abc
class AbstractNativeEntity(abc.ABC):
@classmethod
@abc.abstractmethod
def from_native_entity(cls, native_entity):
pass
@classmethod
@abc.abstractmethod... | 21.916667 | 68 | 0.705323 | 61 | 526 | 5.918033 | 0.655738 | 0.116343 | 0.232687 | 0.257618 | 0.301939 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.201521 | 526 | 23 | 69 | 22.869565 | 0.845238 | 0.224335 | 0 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.214286 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
eaea092eafb5addf68c151dc21586c60b5c8f8c2 | 1,641 | py | Python | test/likelihoods/test_multitask_gaussian_likelihood.py | techshot25/gpytorch | b4aee6f81a3428172d4914e7e0fef0e71cd1f519 | [
"MIT"
] | 1 | 2019-11-08T11:25:56.000Z | 2019-11-08T11:25:56.000Z | test/likelihoods/test_multitask_gaussian_likelihood.py | VonRosenchild/gpytorch | 092d523027a844939ba85d7ea8c8c7b7511843d5 | [
"MIT"
] | null | null | null | test/likelihoods/test_multitask_gaussian_likelihood.py | VonRosenchild/gpytorch | 092d523027a844939ba85d7ea8c8c7b7511843d5 | [
"MIT"
] | 1 | 2021-07-02T19:40:07.000Z | 2021-07-02T19:40:07.000Z | #!/usr/bin/env python3
import unittest
import torch
from gpytorch.lazy import KroneckerProductLazyTensor, RootLazyTensor
from gpytorch.likelihoods import MultitaskGaussianLikelihood
from gpytorch.distributions import MultitaskMultivariateNormal
from gpytorch.test.base_likelihood_test_case import BaseLikelihoodTestCase... | 32.176471 | 95 | 0.751371 | 178 | 1,641 | 6.758427 | 0.292135 | 0.083126 | 0.062344 | 0.078969 | 0.461347 | 0.44389 | 0.358271 | 0.358271 | 0.358271 | 0.358271 | 0 | 0.018129 | 0.159659 | 1,641 | 50 | 96 | 32.82 | 0.854242 | 0.012797 | 0 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0.151515 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
d810fae987525e13632028a32a1cb71c51a8037a | 253 | py | Python | string_func/example1.py | iansim/pythondemo | d69be8b1c7b6038e15f3ba073a35a1b4790ebc58 | [
"MIT"
] | null | null | null | string_func/example1.py | iansim/pythondemo | d69be8b1c7b6038e15f3ba073a35a1b4790ebc58 | [
"MIT"
] | null | null | null | string_func/example1.py | iansim/pythondemo | d69be8b1c7b6038e15f3ba073a35a1b4790ebc58 | [
"MIT"
] | null | null | null | # example1.py
import stringLength
import stringToLower
import stringToUpper
some_string = "Hello, Universe!"
print(stringLength.stringLength(some_string))
print(stringToLower.stringToLower(some_string))
print(stringToUpper.stringToUpper(some_string)) | 23 | 47 | 0.84585 | 27 | 253 | 7.777778 | 0.407407 | 0.190476 | 0.219048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.067194 | 253 | 11 | 48 | 23 | 0.885593 | 0.043478 | 0 | 0 | 0 | 0 | 0.06639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.428571 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
d82205606f03cedf71bd47591305462a9b1f29dc | 186 | py | Python | src/pipertask/package/pipertask/task.py | piper-tools/pipertask | 7c1789fee0a0a88f8a57fed698082d061e44dfaf | [
"Apache-2.0"
] | null | null | null | src/pipertask/package/pipertask/task.py | piper-tools/pipertask | 7c1789fee0a0a88f8a57fed698082d061e44dfaf | [
"Apache-2.0"
] | null | null | null | src/pipertask/package/pipertask/task.py | piper-tools/pipertask | 7c1789fee0a0a88f8a57fed698082d061e44dfaf | [
"Apache-2.0"
] | null | null | null | import abc
from typing import Dict, Any
class PiperTask(abc.ABC):
@abc.abstractmethod
def perform(self, context: str, config: Dict[str, Any]) -> None:
pass
| 16.909091 | 69 | 0.629032 | 24 | 186 | 4.875 | 0.708333 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268817 | 186 | 10 | 70 | 18.6 | 0.860294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
d832718744c0306712f8088ee1ff74059702b806 | 90 | py | Python | my_django_project/my_books/apps.py | phvv-me/python-django-deploy-sync-async | 42153cc3e0094af9efc576753d20870424b25537 | [
"MIT"
] | null | null | null | my_django_project/my_books/apps.py | phvv-me/python-django-deploy-sync-async | 42153cc3e0094af9efc576753d20870424b25537 | [
"MIT"
] | null | null | null | my_django_project/my_books/apps.py | phvv-me/python-django-deploy-sync-async | 42153cc3e0094af9efc576753d20870424b25537 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MyBooksConfig(AppConfig):
name = 'my_books'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dc7485447605bd6b6aad607e3152d33ed5e925ba | 32,842 | py | Python | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/struct_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | 1 | 2021-12-02T15:06:09.000Z | 2021-12-02T15:06:09.000Z | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/struct_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/struct_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null |
'Generated protocol buffer code.'
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from ....tensorflow.core.fra... | 290.637168 | 6,026 | 0.839261 | 4,358 | 32,842 | 5.938045 | 0.068151 | 0.03957 | 0.071219 | 0.063645 | 0.736224 | 0.693678 | 0.658011 | 0.625164 | 0.615504 | 0.579759 | 0 | 0.032685 | 0.037665 | 32,842 | 112 | 6,027 | 293.232143 | 0.78611 | 0.000944 | 0 | 0 | 1 | 0.621622 | 0.216285 | 0.153863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063063 | 0 | 0.063063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc847d99af8e338af227a48dfb6b580e6def68da | 103 | py | Python | untitled/precaritorazor/apps.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | untitled/precaritorazor/apps.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | untitled/precaritorazor/apps.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PrecaritorazorConfig(AppConfig):
name = 'precaritorazor'
| 17.166667 | 38 | 0.786408 | 10 | 103 | 8.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 39 | 20.6 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dc88e7dc384e897c65703300284e468c8f8718f3 | 193 | py | Python | specviz/tests/test_specviz_gui.py | ibusko/specviz | b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa | [
"BSD-3-Clause"
] | null | null | null | specviz/tests/test_specviz_gui.py | ibusko/specviz | b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa | [
"BSD-3-Clause"
] | null | null | null | specviz/tests/test_specviz_gui.py | ibusko/specviz | b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa | [
"BSD-3-Clause"
] | null | null | null | def test_spec_gui(specviz_gui):
"""
Generic test to ensure the pytest fixture is properly feeding an instance
of the specviz application.
"""
assert specviz_gui is not None
| 27.571429 | 77 | 0.715026 | 28 | 193 | 4.785714 | 0.75 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233161 | 193 | 6 | 78 | 32.166667 | 0.905405 | 0.523316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc8ddf059067fd709915e8d365ca6207056338f3 | 87 | py | Python | Bronze/Bronze_V/20254.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | Bronze/Bronze_V/20254.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | Bronze/Bronze_V/20254.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | Ur, Tr, Uo, To = map(int, input().split())
print(56 * Ur + 24 * Tr + 14 * Uo + 6 * To) | 29 | 43 | 0.505747 | 17 | 87 | 2.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 0.252874 | 87 | 3 | 43 | 29 | 0.569231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f49278176156bf56edd6563da568dae0c7e08a0f | 383 | py | Python | kiri_search/models/__init__.py | kiri-ai/kiri-search | 78a0f78b11b73cca8934054498d5713773d3e93a | [
"Apache-2.0"
] | null | null | null | kiri_search/models/__init__.py | kiri-ai/kiri-search | 78a0f78b11b73cca8934054498d5713773d3e93a | [
"Apache-2.0"
] | null | null | null | kiri_search/models/__init__.py | kiri-ai/kiri-search | 78a0f78b11b73cca8934054498d5713773d3e93a | [
"Apache-2.0"
] | null | null | null | from .tasks.qa import QA
from .tasks.summarisation import Summarisation
from .tasks.emotion import Emotion
from .tasks.classification import Classification
from .tasks.vectorisation import Vectorisation
from .tasks.generation import Generation
from .custom_models import T5QASummaryEmotion
from .models import BaseModel,... | 42.555556 | 92 | 0.859008 | 43 | 383 | 7.627907 | 0.395349 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002882 | 0.093995 | 383 | 8 | 93 | 47.875 | 0.942363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f4b3f87820e2ad14008d2f3cce0ee351b655b0eb | 46 | py | Python | RTool/prototype/__init__.py | RonNofar/RTool | c7cc53ba732d19f3eba8860539289b08773a15d3 | [
"MIT"
] | null | null | null | RTool/prototype/__init__.py | RonNofar/RTool | c7cc53ba732d19f3eba8860539289b08773a15d3 | [
"MIT"
] | null | null | null | RTool/prototype/__init__.py | RonNofar/RTool | c7cc53ba732d19f3eba8860539289b08773a15d3 | [
"MIT"
] | null | null | null | import RTool.prototype.tos
__all__ = ["tos"]
| 11.5 | 26 | 0.717391 | 6 | 46 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 46 | 3 | 27 | 15.333333 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 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 | 4 |
f4b601f11639004d10e7020842531a6e1ec297aa | 2,809 | py | Python | z2/part3/updated_part2_batch/jm/parser_errors_2/514866768.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 1 | 2020-04-16T12:13:47.000Z | 2020-04-16T12:13:47.000Z | z2/part3/updated_part2_batch/jm/parser_errors_2/514866768.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:50:15.000Z | 2020-05-19T14:58:30.000Z | z2/part3/updated_part2_batch/jm/parser_errors_2/514866768.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:45:13.000Z | 2020-06-09T19:18:31.000Z | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 514866768
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 4, 2, 15)
assert board i... | 27.009615 | 41 | 0.658953 | 499 | 2,809 | 3.56513 | 0.084168 | 0.296796 | 0.362563 | 0.483418 | 0.659359 | 0.656549 | 0.639123 | 0.504778 | 0.471051 | 0.453626 | 0 | 0.15512 | 0.182983 | 2,809 | 103 | 42 | 27.271845 | 0.620044 | 0 | 0 | 0.376471 | 0 | 0 | 0.026461 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 1 | 0 | false | 0 | 0.011765 | 0 | 0.011765 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f4c9f2a03387832c934b3c6c3ff6e1f2352ce16f | 129 | py | Python | slides/20160523-Python_Function/demo2.py | she02789222/test | fa10bd5be351ca3d4bef4f7d6c4510e65666de7c | [
"MIT"
] | 4 | 2018-11-29T04:06:29.000Z | 2021-11-29T07:00:44.000Z | slides/20160523-Python_Function/demo2.py | NTNUCIC/108 | 52961e76d299842c2d44d142d5c56ad665420ee6 | [
"MIT"
] | 6 | 2016-05-17T02:34:57.000Z | 2021-02-05T17:33:28.000Z | slides/20160523-Python_Function/demo2.py | NTNUCIC/108 | 52961e76d299842c2d44d142d5c56ad665420ee6 | [
"MIT"
] | 3 | 2019-02-17T05:58:46.000Z | 2019-02-18T15:09:55.000Z | def mutable_or_immutable(para):
para += '1'
a = 'a'
b = ['b']
mutable_or_immutable(a)
print(a)
mutable_or_immutable(b)
print(b) | 14.333333 | 31 | 0.697674 | 23 | 129 | 3.652174 | 0.391304 | 0.321429 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.124031 | 129 | 9 | 32 | 14.333333 | 0.734513 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 1 | 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 | 4 |
f4d2d4aa27cf2b99a599aaa00ada0793763e2c23 | 138 | py | Python | files/opt/graphite/conf/webapp/graphite/local_settings.py | cornernote/docker-shinken | cf55f989b4130ad6c1f30496009d50da057bb869 | [
"BSD-3-Clause"
] | null | null | null | files/opt/graphite/conf/webapp/graphite/local_settings.py | cornernote/docker-shinken | cf55f989b4130ad6c1f30496009d50da057bb869 | [
"BSD-3-Clause"
] | null | null | null | files/opt/graphite/conf/webapp/graphite/local_settings.py | cornernote/docker-shinken | cf55f989b4130ad6c1f30496009d50da057bb869 | [
"BSD-3-Clause"
] | 1 | 2020-08-11T07:40:11.000Z | 2020-08-11T07:40:11.000Z | LOG_DIR = '/var/log/graphite'
SECRET_KEY = "YzgzMWQ1NzgzN44udMjljNWIwNjRiZjQ5NTUyNjY2ZjkzOWI5OTljODU2MmViNmY5"
TIME_ZONE = 'Asia/Kolkata'
| 34.5 | 80 | 0.84058 | 12 | 138 | 9.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0.065217 | 138 | 3 | 81 | 46 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.681159 | 0.471014 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f4dd98c1337aecb03bb832f3809ad8ef0d9081f9 | 218 | py | Python | splash/__init__.py | chroming/splash | 18a74599ba836fd66a627b0fefc4d109afa0d73d | [
"BSD-3-Clause"
] | null | null | null | splash/__init__.py | chroming/splash | 18a74599ba836fd66a627b0fefc4d109afa0d73d | [
"BSD-3-Clause"
] | null | null | null | splash/__init__.py | chroming/splash | 18a74599ba836fd66a627b0fefc4d109afa0d73d | [
"BSD-3-Clause"
] | null | null | null | __version__ = '3.2'
from PyQt5.Qt import qVersion
from distutils.version import LooseVersion
version_info = tuple(LooseVersion(__version__).version)
pyqt_version = qVersion()
__all__ = ['__version__', 'version_info']
| 27.25 | 55 | 0.793578 | 26 | 218 | 5.923077 | 0.538462 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.100917 | 218 | 7 | 56 | 31.142857 | 0.770408 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f4e41468e331ea8c6d314c7e6fdaea3ad428495c | 93 | py | Python | backend/infovis/nicetable/apps.py | cientopolis/data-viz | 1c555db4af1f744b22c1a84d8fc73817263373a7 | [
"MIT"
] | null | null | null | backend/infovis/nicetable/apps.py | cientopolis/data-viz | 1c555db4af1f744b22c1a84d8fc73817263373a7 | [
"MIT"
] | 12 | 2020-02-12T01:22:45.000Z | 2022-02-26T16:37:56.000Z | backend/infovis/nicetable/apps.py | cientopolis/data-viz | 1c555db4af1f744b22c1a84d8fc73817263373a7 | [
"MIT"
] | 1 | 2019-10-02T20:04:23.000Z | 2019-10-02T20:04:23.000Z | from django.apps import AppConfig
class NicetableConfig(AppConfig):
name = 'nicetable'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5214069f4def8ce9adb37d2256a70b3dab137cd3 | 51 | py | Python | app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/__init__.py | HotMaps/building_h-c | db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f | [
"Apache-2.0"
] | 1 | 2021-05-11T06:41:04.000Z | 2021-05-11T06:41:04.000Z | app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/__init__.py | HotMaps/HotMaps-building_h-c | db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f | [
"Apache-2.0"
] | 2 | 2017-08-22T13:53:22.000Z | 2017-09-25T07:27:28.000Z | app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/__init__.py | HotMaps/Hotmaps-building_h-c | db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f | [
"Apache-2.0"
] | null | null | null | '''
Created on Apr 20, 2017
@author: simulant
'''
| 8.5 | 23 | 0.627451 | 7 | 51 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0.196078 | 51 | 5 | 24 | 10.2 | 0.634146 | 0.823529 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
521873f52a76528432e9d2a522c1df611bbeb632 | 471 | py | Python | order_microservice/order_microservice/settings/production.py | fga-eps-mds/2018.2-FGAPP-vendas | a0f457a2d7557a1db01d539f98f8518f55524d97 | [
"MIT"
] | null | null | null | order_microservice/order_microservice/settings/production.py | fga-eps-mds/2018.2-FGAPP-vendas | a0f457a2d7557a1db01d539f98f8518f55524d97 | [
"MIT"
] | 5 | 2018-10-03T02:00:15.000Z | 2018-10-24T12:29:15.000Z | order_microservice/order_microservice/settings/production.py | fga-eps-mds/2018.2-FGAPP-vendas | a0f457a2d7557a1db01d539f98f8518f55524d97 | [
"MIT"
] | null | null | null | from order_microservice.settings.common import *
DEBUG = False
SECRET_KEY = os.environ.get('SECRET_KEY')
ALLOWED_HOSTS = [os.environ.get('HOST')]
# settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ.get('DB_NAME'),
'HOST': os.environ.get('... | 26.166667 | 50 | 0.615711 | 60 | 471 | 4.683333 | 0.483333 | 0.224199 | 0.298932 | 0.24911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197452 | 471 | 18 | 51 | 26.166667 | 0.743386 | 0.023355 | 0 | 0 | 0 | 0 | 0.250545 | 0.063181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5226030daeaa87c3940ff35db55da37744bc7c89 | 108 | py | Python | rainbowmindmachine/apikeys.example.py | rainbow-mind-machine/rainbow-mind-machine | 3911ccf90db578e294f7e146916990ec14e1bdad | [
"MIT"
] | 8 | 2018-05-17T03:00:57.000Z | 2018-12-10T01:50:37.000Z | rainbowmindmachine/apikeys.example.py | rainbow-mind-machine/rainbow-mind-machine | 3911ccf90db578e294f7e146916990ec14e1bdad | [
"MIT"
] | 55 | 2018-05-15T04:52:33.000Z | 2018-09-09T23:48:29.000Z | rainbowmindmachine/apikeys.example.py | rainbow-mind-machine/rainbow-mind-machine | 3911ccf90db578e294f7e146916990ec14e1bdad | [
"MIT"
] | 3 | 2018-05-13T05:33:01.000Z | 2019-07-31T00:53:56.000Z | consumer_key = '123456'
consumer_secret = '123456'
flickr_key = '123456'
flickr_secret = '123456'
| 21.6 | 26 | 0.685185 | 12 | 108 | 5.833333 | 0.416667 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 0.203704 | 108 | 4 | 27 | 27 | 0.534884 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
52289acd6cc28e1ed1127d40c7ac07ee096bb702 | 1,086 | py | Python | test/test_update_atomic_bank_request.py | Basis-Theory/basistheory-python | 5fd0f3d20fd07e8de45d6d5919e092c696049df1 | [
"Apache-2.0"
] | null | null | null | test/test_update_atomic_bank_request.py | Basis-Theory/basistheory-python | 5fd0f3d20fd07e8de45d6d5919e092c696049df1 | [
"Apache-2.0"
] | null | null | null | test/test_update_atomic_bank_request.py | Basis-Theory/basistheory-python | 5fd0f3d20fd07e8de45d6d5919e092c696049df1 | [
"Apache-2.0"
] | null | null | null | """
Basis Theory API
## Getting Started * Sign-in to [Basis Theory](https://basistheory.com) and go to [Applications](https://portal.basistheory.com/applications) * Create a Basis Theory Server to Server Application * All permissions should be selected * Paste the API Key into the `BT-API-KEY` variable # noqa... | 28.578947 | 300 | 0.720074 | 124 | 1,086 | 6.217742 | 0.596774 | 0.042802 | 0.051881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007973 | 0.191529 | 1,086 | 37 | 301 | 29.351351 | 0.870159 | 0.540516 | 0 | 0.2 | 0 | 0 | 0.025918 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.2 | false | 0.2 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
5252974a76b096d2cfcc22e00f9d0969c4adf232 | 107 | py | Python | integrations/__init__.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 25 | 2020-05-07T22:51:11.000Z | 2021-11-17T16:14:42.000Z | integrations/__init__.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 3 | 2020-04-21T06:38:02.000Z | 2020-05-31T01:57:19.000Z | integrations/__init__.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 2 | 2020-05-14T01:47:32.000Z | 2020-06-03T21:58:12.000Z | # Don't automatically import anything in here. The individual integrations should be
# imported as needed.
| 35.666667 | 84 | 0.803738 | 15 | 107 | 5.733333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 107 | 2 | 85 | 53.5 | 0.945055 | 0.953271 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5261987085319e8f96780e9a0d602bcc262b85dd | 843 | py | Python | app/flask_app/models.py | mahfuz978/Buildweek-project-contributions | 28c76b40c17ff6c19cfd568c8b55c98b76bef9b8 | [
"MIT"
] | null | null | null | app/flask_app/models.py | mahfuz978/Buildweek-project-contributions | 28c76b40c17ff6c19cfd568c8b55c98b76bef9b8 | [
"MIT"
] | null | null | null | app/flask_app/models.py | mahfuz978/Buildweek-project-contributions | 28c76b40c17ff6c19cfd568c8b55c98b76bef9b8 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
db = SQLAlchemy()
migrate = Migrate()
class Song(db.Model):
id = db.Column(db.Integer, primary_key=True)
artist_name = db.Column(db.String)
track_id = db.Column(db.String)
track_name = db.Column(db.String)
acousti... | 30.107143 | 49 | 0.669039 | 116 | 843 | 4.793103 | 0.301724 | 0.258993 | 0.323741 | 0.269784 | 0.118705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209964 | 843 | 27 | 50 | 31.222222 | 0.834835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.913043 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 4 |
52846523c138545adacd1d66fcf9f2eab3077168 | 721 | py | Python | core-python/Core_Python/com/FunctionDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-23T05:24:19.000Z | 2022-02-17T16:37:51.000Z | core-python/Core_Python/com/FunctionDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 5 | 2020-10-01T05:08:37.000Z | 2020-10-12T03:18:10.000Z | core-python/Core_Python/com/FunctionDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-28T14:06:41.000Z | 2021-10-19T18:32:28.000Z | # add two numbers using function without return
'''def add(x,y):
print("addition is : ",(x+y))
x = int(input("Enter a first number for addition : "))
y = int(input("Enter a second number for addition : "))
add(x,y)'''
# add two numbers using function with return
'''def add(x,y):
return (x+y)
x = int(input("Ent... | 31.347826 | 61 | 0.660194 | 122 | 721 | 3.885246 | 0.213115 | 0.042194 | 0.164557 | 0.177215 | 0.822785 | 0.719409 | 0.542194 | 0.542194 | 0.542194 | 0.542194 | 0 | 0 | 0.177531 | 721 | 22 | 62 | 32.772727 | 0.799325 | 0.439667 | 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 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bff4e339e0efdccda2047b96fc3dcc9dbb2768ed | 21,049 | py | Python | test/reference-output/python.py | GoNZooo/gotyno-hs | a19ccf914272f475fa9b9729f15d52be73971f02 | [
"BSD-2-Clause"
] | 1 | 2022-03-22T13:16:05.000Z | 2022-03-22T13:16:05.000Z | test/reference-output/python.py | GoNZooo/gotyno-hs | a19ccf914272f475fa9b9729f15d52be73971f02 | [
"BSD-2-Clause"
] | null | null | null | test/reference-output/python.py | GoNZooo/gotyno-hs | a19ccf914272f475fa9b9729f15d52be73971f02 | [
"BSD-2-Clause"
] | null | null | null | import json
import typing
from dataclasses import dataclass
from gotyno_validation import validation
from gotyno_validation import encoding
from . import basic
@dataclass(frozen=True)
class SomeType:
type: typing.Literal['SomeType']
some_field: str
some_other_field: int
maybe_some_field: typing.Option... | 47.730159 | 448 | 0.744881 | 2,348 | 21,049 | 6.502555 | 0.046422 | 0.036547 | 0.069164 | 0.04611 | 0.796633 | 0.787202 | 0.684373 | 0.651362 | 0.603157 | 0.572963 | 0 | 0.00066 | 0.136349 | 21,049 | 441 | 449 | 47.730159 | 0.83921 | 0 | 0 | 0.501484 | 0 | 0 | 0.111876 | 0.022375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27003 | false | 0 | 0.017804 | 0.237389 | 0.783383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
870da62e775ae6a2f40a4764364cc7f71fc9670f | 60 | py | Python | workon/contrib/admin/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/admin/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/admin/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'workon.contrib.admin.apps.AdminConfig' | 60 | 60 | 0.85 | 8 | 60 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 60 | 1 | 60 | 60 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.606557 | 0.606557 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8714982948d5e0d02523ca5dedad99486272c582 | 27 | py | Python | data/studio21_generated/introductory/4308/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4308/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4308/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def make_acronym(phrase):
| 13.5 | 25 | 0.777778 | 4 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 2 | 26 | 13.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87305d2812a216bf38fe8c4ece5f7e766864b757 | 23,104 | py | Python | apps/humanmodifier.py | teddydragoone/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | 2 | 2016-11-23T16:37:15.000Z | 2018-02-13T04:18:23.000Z | apps/humanmodifier.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | apps/humanmodifier.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
**Project Name:** MakeHuman
**Product Home Page:** http://www.makehuman.org/
**Code Home Page:** http://code.google.com/p/makehuman/
**Authors:** Marc Flerackers
**Copyright(c):** MakeHuman Team 2001-2011
**Licensing:** GP... | 35.165906 | 172 | 0.563063 | 2,424 | 23,104 | 5.311056 | 0.097772 | 0.020662 | 0.027342 | 0.03076 | 0.785537 | 0.770312 | 0.737533 | 0.707628 | 0.688597 | 0.648128 | 0 | 0.017241 | 0.327216 | 23,104 | 656 | 173 | 35.219512 | 0.810988 | 0.072671 | 0 | 0.68593 | 0 | 0 | 0.027186 | 0.001014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163317 | false | 0 | 0.015075 | 0.030151 | 0.326633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.