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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1819f983328db9ab39683cceed0a3ea350fcd669 | 227 | py | Python | script_runner/__init__.py | corcoja/worker.python | b8e51ab6016e60308ac787628de98a76540b0198 | [
"Apache-2.0"
] | null | null | null | script_runner/__init__.py | corcoja/worker.python | b8e51ab6016e60308ac787628de98a76540b0198 | [
"Apache-2.0"
] | null | null | null | script_runner/__init__.py | corcoja/worker.python | b8e51ab6016e60308ac787628de98a76540b0198 | [
"Apache-2.0"
] | null | null | null | from ._python_script_runner import PythonScriptRunner
from ._pip_package_installer import PipPackageInstaller
from ._python_version import PythonVersion
__all__ = ["PythonVersion", "PythonScriptRunner", "PipPackageInstaller"]
| 37.833333 | 72 | 0.859031 | 21 | 227 | 8.714286 | 0.619048 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079295 | 227 | 5 | 73 | 45.4 | 0.875598 | 0 | 0 | 0 | 0 | 0 | 0.220264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1824b2cb1cd9ebd15c269eaafaeb7b5c94859a32 | 2,217 | py | Python | core/Core.py | songzan/mylang | 6539b9d1680fdb3238616da90ec7d19a5d10885f | [
"Apache-2.0"
] | 1 | 2021-02-23T11:32:24.000Z | 2021-02-23T11:32:24.000Z | core/Core.py | songzan/mylang | 6539b9d1680fdb3238616da90ec7d19a5d10885f | [
"Apache-2.0"
] | null | null | null | core/Core.py | songzan/mylang | 6539b9d1680fdb3238616da90ec7d19a5d10885f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import shutil
import time
import sys
import os
FOF = chr(0)
EIN = chr(1)
OUT = chr(2)
QSTR = chr(3)
FAIL = chr(0)
PASS = chr(1)
def hextochar(s): return int(s,16)
def dectochar(s): return int(s,10)
def now():
return time.strftime("%Y%m%d%H%M%S",time.localtime())
def upper(_str): r... | 17.186047 | 55 | 0.64276 | 379 | 2,217 | 3.548813 | 0.287599 | 0.09368 | 0.107063 | 0.067658 | 0.218587 | 0.087732 | 0.058736 | 0.034201 | 0.034201 | 0.034201 | 0 | 0.017386 | 0.19576 | 2,217 | 128 | 56 | 17.320313 | 0.73696 | 0.009021 | 0 | 0.130435 | 0 | 0 | 0.013661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.391304 | false | 0.01087 | 0.043478 | 0.25 | 0.630435 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1826745e19d5b99285df02b53009c09a9bbac93b | 1,384 | py | Python | app/models.py | hannakr/street-trees-yvr | 085bdaf3153a2e4a7e9b95df324e40c02bd639a7 | [
"MIT"
] | null | null | null | app/models.py | hannakr/street-trees-yvr | 085bdaf3153a2e4a7e9b95df324e40c02bd639a7 | [
"MIT"
] | null | null | null | app/models.py | hannakr/street-trees-yvr | 085bdaf3153a2e4a7e9b95df324e40c02bd639a7 | [
"MIT"
] | null | null | null | from app import db
class House(db.Model):
id = db.Column(db.Integer, primary_key=True)
civicNumber = db.Column(db.Integer, index=True)
stdStreet = db.Column(db.String(255), index=True)
stdStreetSorted = db.Column(db.String(255), index=True)
neighbourhoodName = db.Column(db.String(255), index=True)
... | 37.405405 | 71 | 0.671965 | 192 | 1,384 | 4.791667 | 0.270833 | 0.208696 | 0.26087 | 0.278261 | 0.446739 | 0.178261 | 0.178261 | 0.086957 | 0.086957 | 0.086957 | 0 | 0.041775 | 0.169798 | 1,384 | 36 | 72 | 38.444444 | 0.758921 | 0 | 0 | 0.125 | 0 | 0 | 0.033237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0.0625 | 1 | 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 | 0 | 0 | 0 | 3 |
183aa34a4acca129f05199334a170ff5f3245b94 | 569 | py | Python | codeforces.com/1472B/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | codeforces.com/1472B/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | codeforces.com/1472B/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | number_of_test_cases = int(input())
for i in range(number_of_test_cases):
number_of_candies = int(input())
one_gram_candies_number = 0
two_grams_candies_number = 0
for weight in map(int, input().split()):
if weight == 1:
one_gram_candies_number += 1
else:
two_g... | 27.095238 | 75 | 0.632689 | 83 | 569 | 3.951807 | 0.337349 | 0.317073 | 0.213415 | 0.304878 | 0.35061 | 0.286585 | 0 | 0 | 0 | 0 | 0 | 0.026379 | 0.267135 | 569 | 20 | 76 | 28.45 | 0.760192 | 0 | 0 | 0.25 | 0 | 0 | 0.01406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 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 | 0 | 0 | 0 | 3 |
18433b602bb8c7273ede99ee6aec68ab4d3f05fc | 193 | py | Python | proj/web/landing.py | momothereal/code-jam-2 | a00e73ec7a912f6f583e398db29b517bf061605c | [
"MIT"
] | 1 | 2018-08-19T16:03:13.000Z | 2018-08-19T16:03:13.000Z | proj/web/landing.py | momothereal/code-jam-2 | a00e73ec7a912f6f583e398db29b517bf061605c | [
"MIT"
] | 2 | 2019-12-26T16:50:43.000Z | 2020-01-06T19:02:21.000Z | proj/web/landing.py | momothereal/code-jam-2 | a00e73ec7a912f6f583e398db29b517bf061605c | [
"MIT"
] | null | null | null | from flask import render_template
from flask.views import MethodView
class LandingView(MethodView):
def get(self):
return render_template(
"./landing.html"
)
| 17.545455 | 34 | 0.663212 | 21 | 193 | 6 | 0.714286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264249 | 193 | 10 | 35 | 19.3 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
184dbaebf4fc6e0416ea66fc3d22f5f7004a8ffc | 3,359 | py | Python | util/decode_encode.py | Pxtri2156/AdelaiDet_v2 | 50408b575f9beebf8a1c9f704a3489ce69a94958 | [
"BSD-2-Clause"
] | 3 | 2021-08-24T08:51:49.000Z | 2021-12-18T15:47:17.000Z | util/decode_encode.py | Pxtri2156/AdelaiDet_v2 | 50408b575f9beebf8a1c9f704a3489ce69a94958 | [
"BSD-2-Clause"
] | 1 | 2021-08-10T17:30:53.000Z | 2021-08-24T08:44:02.000Z | util/decode_encode.py | Pxtri2156/AdelaiDet_v2 | 50408b575f9beebf8a1c9f704a3489ce69a94958 | [
"BSD-2-Clause"
] | 1 | 2021-11-09T15:24:06.000Z | 2021-11-09T15:24:06.000Z | # Origin dictionary of ABCnet
# CTLABELS = [' ','!','"','#','$','%','&','\'','(',')','*','+',',','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[','\\',']','^','_','`','a','b','c','d... | 93.305556 | 1,164 | 0.234296 | 542 | 3,359 | 1.439114 | 0.241697 | 0.070513 | 0.061538 | 0.05 | 0.217949 | 0.217949 | 0.217949 | 0.217949 | 0.166667 | 0.166667 | 0 | 0.012214 | 0.220006 | 3,359 | 36 | 1,165 | 93.305556 | 0.285115 | 0.484966 | 0 | 0.692308 | 0 | 0 | 0.133488 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
18570933384df080d543587aa0fa7affd5ca952b | 96 | py | Python | Database/Project/addbooks/apps.py | ChoKyuWon/SchoolProjects | 71a5decefc85ae941ba2d537c4507ba8e615cc34 | [
"MIT"
] | null | null | null | Database/Project/addbooks/apps.py | ChoKyuWon/SchoolProjects | 71a5decefc85ae941ba2d537c4507ba8e615cc34 | [
"MIT"
] | null | null | null | Database/Project/addbooks/apps.py | ChoKyuWon/SchoolProjects | 71a5decefc85ae941ba2d537c4507ba8e615cc34 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AddbooksConfig(AppConfig):
name = 'addbooks'
| 16 | 34 | 0.71875 | 10 | 96 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 96 | 5 | 35 | 19.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 | 0 | 0 | 0 | 3 |
18605aa512f4c1b2134d37c96c2802379d5b2328 | 479 | py | Python | src/InstPyr/Interfaces/Arduino/test.py | soodsidd/instpyr | 138d0a8164dc388187fde58329b9ff770af77af4 | [
"MIT"
] | null | null | null | src/InstPyr/Interfaces/Arduino/test.py | soodsidd/instpyr | 138d0a8164dc388187fde58329b9ff770af77af4 | [
"MIT"
] | null | null | null | src/InstPyr/Interfaces/Arduino/test.py | soodsidd/instpyr | 138d0a8164dc388187fde58329b9ff770af77af4 | [
"MIT"
] | null | null | null | import pyfirmata
import time
board=pyfirmata.Arduino('COM3')
it=pyfirmata.util.Iterator(board)
it.start()
board.digital[13].mode=1
board.analog[1].enable_reporting()
while True:
# sw=board.digital[7].read()
# if sw is True:
# board.digital[13].write(1)
# else:
# board.digital[13].write(0... | 20.826087 | 36 | 0.643006 | 74 | 479 | 4.148649 | 0.405405 | 0.234528 | 0.228013 | 0.247557 | 0.325733 | 0.19544 | 0.19544 | 0.19544 | 0 | 0 | 0 | 0.063613 | 0.179541 | 479 | 23 | 37 | 20.826087 | 0.717557 | 0.26096 | 0 | 0.153846 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 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 | 0 | 0 | 0 | 3 |
1866b6bb1a94604d14a1c83a62c250a910dfc839 | 64 | py | Python | Day_1_Scientific_Python/pandas/_solutions/pandas_06_groupby_operations8.py | rth/data-science-workshop-2021 | 4a048d9732c60b6015c324212abdb4c51041263c | [
"BSD-3-Clause"
] | null | null | null | Day_1_Scientific_Python/pandas/_solutions/pandas_06_groupby_operations8.py | rth/data-science-workshop-2021 | 4a048d9732c60b6015c324212abdb4c51041263c | [
"BSD-3-Clause"
] | 1 | 2021-05-17T08:43:36.000Z | 2021-05-17T08:43:36.000Z | Day_1_Scientific_Python/pandas/_solutions/pandas_06_groupby_operations8.py | rth/data-science-workshop-2021 | 4a048d9732c60b6015c324212abdb4c51041263c | [
"BSD-3-Clause"
] | 1 | 2021-05-13T12:06:35.000Z | 2021-05-13T12:06:35.000Z | titles.groupby('decade').size().plot(kind='bar', color='green'); | 64 | 64 | 0.6875 | 9 | 64 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 64 | 1 | 64 | 64 | 0.698413 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
186e5595e486449af16d1a854586a09de0449e60 | 307 | py | Python | instaapp/admin.py | budds300/Instagram | 08a37dc30493504428aa8de81726631510b2b28f | [
"MIT"
] | null | null | null | instaapp/admin.py | budds300/Instagram | 08a37dc30493504428aa8de81726631510b2b28f | [
"MIT"
] | null | null | null | instaapp/admin.py | budds300/Instagram | 08a37dc30493504428aa8de81726631510b2b28f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile, Image, Like, Subscribers, Comment, Follow
# Register your models here.
admin.site.register(Profile)
admin.site.register(Image)
admin.site.register(Like)
admin.site.register(Subscribers)
admin.site.register(Comment)
admin.site.register(Follow)
| 25.583333 | 70 | 0.807818 | 42 | 307 | 5.904762 | 0.380952 | 0.217742 | 0.41129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084691 | 307 | 11 | 71 | 27.909091 | 0.882562 | 0.084691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1871cfaa318481778d34537d8a31d75fe6e6b7db | 289 | py | Python | catalog/bindings/csw/abstract_time_complex_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/abstract_time_complex_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/abstract_time_complex_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.abstract_time_object_type import AbstractTimeObjectType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class AbstractTimeComplexType(AbstractTimeObjectType):
"""
The abstract supertype for temporal complexes.
"""
| 24.083333 | 73 | 0.795848 | 29 | 289 | 7.689655 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128028 | 289 | 11 | 74 | 26.272727 | 0.884921 | 0.15917 | 0 | 0 | 0 | 0 | 0.114537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
187e504d17d3a877f491989c39fb5c94f7ef6f3d | 103 | py | Python | exercises/exc_02_05.py | deep-diver/test-course22 | 2d2668d3b9a54546c681bc27efbbc9b326af1ab1 | [
"MIT"
] | null | null | null | exercises/exc_02_05.py | deep-diver/test-course22 | 2d2668d3b9a54546c681bc27efbbc9b326af1ab1 | [
"MIT"
] | null | null | null | exercises/exc_02_05.py | deep-diver/test-course22 | 2d2668d3b9a54546c681bc27efbbc9b326af1ab1 | [
"MIT"
] | 1 | 2020-07-01T21:46:44.000Z | 2020-07-01T21:46:44.000Z | # 값 자체에 대한 자료형 확인
print(____(34))
# temperature 변수의 자료형을 확인
temperature = -1.5
print(____(_________))
| 14.714286 | 25 | 0.708738 | 15 | 103 | 3.733333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.165049 | 103 | 6 | 26 | 17.166667 | 0.604651 | 0.378641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
188042759cb8b0fcd63f013afb63741f8682dfa6 | 1,239 | py | Python | server/login/models.py | ltw18/action_recognition | fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07 | [
"MIT"
] | 1 | 2020-05-19T08:50:03.000Z | 2020-05-19T08:50:03.000Z | server/login/models.py | ltw18/action_recognition | fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07 | [
"MIT"
] | null | null | null | server/login/models.py | ltw18/action_recognition | fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
# Create your models here.
class User(models.Model):
# id = models.UUIDField(primary_key=True, editable=False, default=uuid4,)
username = models.CharField(max_length=8,default='admin')
password = models.CharField(max_lengt... | 38.71875 | 80 | 0.69088 | 149 | 1,239 | 5.630872 | 0.496644 | 0.107271 | 0.128725 | 0.171633 | 0.255066 | 0.255066 | 0.104887 | 0 | 0 | 0 | 0 | 0.059943 | 0.151735 | 1,239 | 31 | 81 | 39.967742 | 0.738344 | 0.364003 | 0 | 0 | 0 | 0 | 0.11054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
188070097f6059e2b6526d06c69c91f1119de59e | 1,147 | py | Python | recursos/migrations/0003_descripcion_textField.py | josemfc/centro-recursos | 5779f3e04e3ad9b536786b90ccbd70c21dc888d6 | [
"Apache-2.0"
] | null | null | null | recursos/migrations/0003_descripcion_textField.py | josemfc/centro-recursos | 5779f3e04e3ad9b536786b90ccbd70c21dc888d6 | [
"Apache-2.0"
] | null | null | null | recursos/migrations/0003_descripcion_textField.py | josemfc/centro-recursos | 5779f3e04e3ad9b536786b90ccbd70c21dc888d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-16 11:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recursos', '0002_add_urlField'),
]
operations = [
migrations.AlterField(
... | 27.97561 | 92 | 0.563208 | 110 | 1,147 | 5.718182 | 0.554545 | 0.158983 | 0.198728 | 0.230525 | 0.317965 | 0.317965 | 0 | 0 | 0 | 0 | 0 | 0.037831 | 0.308631 | 1,147 | 40 | 93 | 28.675 | 0.755359 | 0.058413 | 0 | 0.454545 | 1 | 0 | 0.118849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43ea23f67b5cc38f7e45069e0b0cd420d5dd7ba6 | 176 | py | Python | src/missmercs/exps/__init__.py | eliavw/missmercs | 3903e49c854cda9e330b0d9cebed87c4a56c68e3 | [
"MIT"
] | null | null | null | src/missmercs/exps/__init__.py | eliavw/missmercs | 3903e49c854cda9e330b0d9cebed87c4a56c68e3 | [
"MIT"
] | null | null | null | src/missmercs/exps/__init__.py | eliavw/missmercs | 3903e49c854cda9e330b0d9cebed87c4a56c68e3 | [
"MIT"
] | null | null | null | from .io import (
starai_original_filepath,
dataset_filepath,
query_filepath,
get_starai_dataset_names,
)
from .StarAiFlow import StarAiFlow, MercsStarAiFlow
| 17.6 | 51 | 0.767045 | 19 | 176 | 6.736842 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 176 | 9 | 52 | 19.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
43f53cc46172ff1447312416efd94e37a03b44a2 | 206 | py | Python | usf_dime_novels/db/tests/collection_test.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | 1 | 2018-08-11T03:30:10.000Z | 2018-08-11T03:30:10.000Z | usf_dime_novels/db/tests/collection_test.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | 4 | 2017-06-26T16:19:22.000Z | 2021-06-01T22:17:21.000Z | usf_dime_novels/db/tests/collection_test.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""db/tests/collection_test.py
By David J. Thomas, thePortus.com, dave.a.base@gmail.com
Unit test for the Collection, Publisher, Subject, and many-to-many tables
that join them
"""
| 25.75 | 73 | 0.718447 | 34 | 206 | 4.323529 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.131068 | 206 | 7 | 74 | 29.428571 | 0.815642 | 0.956311 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
43f8f231aea2d1fab6212f1d92d7b0613d6da964 | 3,622 | py | Python | Lib/plat-aix4/IN.py | Hadron/python | 73137f499ed658169f49273eee46845e3b53e800 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/plat-aix4/IN.py | Hadron/python | 73137f499ed658169f49273eee46845e3b53e800 | [
"PSF-2.0"
] | 40 | 2016-05-29T00:24:56.000Z | 2020-07-13T11:56:58.000Z | Lib/plat-aix4/IN.py | Hadron/python | 73137f499ed658169f49273eee46845e3b53e800 | [
"PSF-2.0"
] | 50 | 2016-01-23T11:58:16.000Z | 2019-03-01T18:13:21.000Z | # Generated by h2py from /usr/include/netinet/in.h
# Included from net/nh.h
# Included from sys/machine.h
LITTLE_ENDIAN = 1234
BIG_ENDIAN = 4321
PDP_ENDIAN = 3412
BYTE_ORDER = BIG_ENDIAN
DEFAULT_GPR = 0xDEADBEEF
MSR_EE = 0x8000
MSR_PR = 0x4000
MSR_FP = 0x2000
MSR_ME = 0x1000
MSR_FE = 0x0800
MSR_FE0 = 0x0800
MSR_SE = ... | 21.819277 | 71 | 0.770293 | 580 | 3,622 | 4.475862 | 0.441379 | 0.013482 | 0.023112 | 0.025424 | 0.032357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245557 | 0.1455 | 3,622 | 165 | 72 | 21.951515 | 0.593215 | 0.027333 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.236147 | 0 | 0 | 1 | 0.103448 | false | 0 | 0 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
43fcd0614c6e134ca6f9d8ad18d376c9a4312347 | 2,574 | py | Python | formater.py | MaferMazu/arithmetic-operators-pre-and-post-order | 8a4283f167f306e926a10e329f8fb1f7b945da03 | [
"MIT"
] | null | null | null | formater.py | MaferMazu/arithmetic-operators-pre-and-post-order | 8a4283f167f306e926a10e329f8fb1f7b945da03 | [
"MIT"
] | null | null | null | formater.py | MaferMazu/arithmetic-operators-pre-and-post-order | 8a4283f167f306e926a10e329f8fb1f7b945da03 | [
"MIT"
] | null | null | null | from node import Node
OPERATORS=["*","/","+","-"]
def string_from_preorder(mylist):
""" Function that convert list in preorder to the arithmetic expression
Input:
mylist : list
Elements to analize and convert
Output:
return : str
Arithmetic expression in string"""
... | 36.253521 | 137 | 0.506605 | 327 | 2,574 | 3.944954 | 0.140673 | 0.11938 | 0.055814 | 0.060465 | 0.829457 | 0.786047 | 0.708527 | 0.655814 | 0.620155 | 0.506977 | 0 | 0.027237 | 0.400932 | 2,574 | 70 | 138 | 36.771429 | 0.809339 | 0.153846 | 0 | 0.583333 | 0 | 0 | 0.001889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.041667 | 0.020833 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a101395d42785c951303f615f422d47d314d992f | 190 | py | Python | programacion1/practica1/p1_listas.py | AgustinParmisano/tecnicatura_analisis_sistemas | e64a1922eaf3685706652a2fb9414671014118fc | [
"PSF-2.0"
] | 2 | 2019-11-05T22:10:02.000Z | 2019-12-26T22:24:16.000Z | programacion1/practica1/p1_listas.py | AgustinParmisano/tecnicatura_analisis_sistemas | e64a1922eaf3685706652a2fb9414671014118fc | [
"PSF-2.0"
] | null | null | null | programacion1/practica1/p1_listas.py | AgustinParmisano/tecnicatura_analisis_sistemas | e64a1922eaf3685706652a2fb9414671014118fc | [
"PSF-2.0"
] | null | null | null | nombre="roberto"
edad=25
persona=["jorge","peralta",34256643,1987,0]
print(persona)
clave_personal=persona[2] * persona[-2]
print(clave_personal)
persona[-1]=clave_personal
print(persona)
| 17.272727 | 43 | 0.768421 | 27 | 190 | 5.296296 | 0.555556 | 0.272727 | 0.27972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0.063158 | 190 | 10 | 44 | 19 | 0.702247 | 0 | 0 | 0.25 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a1057808abe87377d579c06ca2cacbab8692788a | 206 | py | Python | proyecto_final/encuestas/forms.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null | proyecto_final/encuestas/forms.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null | proyecto_final/encuestas/forms.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null |
from django import forms
from encuestas.models import Respuesta
class FormularioRespuesta(forms.ModelForm):
class Meta:
model = Respuesta
fields = ('pregunta', 'respuesta')
| 17.166667 | 43 | 0.674757 | 20 | 206 | 6.95 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252427 | 206 | 11 | 44 | 18.727273 | 0.902597 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a11a19e63334955db23f34606f513204be17ec7b | 1,024 | py | Python | Python/string_methods.py | Kennethowl/Practicas-Java-y-Python | b7be57970e0786e3db31768267c6e5e1c5c88bdc | [
"MIT"
] | null | null | null | Python/string_methods.py | Kennethowl/Practicas-Java-y-Python | b7be57970e0786e3db31768267c6e5e1c5c88bdc | [
"MIT"
] | null | null | null | Python/string_methods.py | Kennethowl/Practicas-Java-y-Python | b7be57970e0786e3db31768267c6e5e1c5c88bdc | [
"MIT"
] | null | null | null | Mystring = "Castlevania"
Mystring2 = "C a s t l e v a n i a"
Otherstring = "Mankind"
# Comando dir -> Sacar Metodos
# print(dir(Mystring))
# print(Mystring.title())
# print(Mystring.upper())
# print(Otherstring.lower())
# print(Mystring.lower())
# print(Mystring.swapcase())
# print(Otherstring.replace("Mankind", "Pale... | 26.947368 | 68 | 0.69043 | 142 | 1,024 | 4.978873 | 0.401408 | 0.367751 | 0.059406 | 0.067893 | 0.104668 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018681 | 0.111328 | 1,024 | 38 | 69 | 26.947368 | 0.758242 | 0.679688 | 0 | 0 | 0 | 0 | 0.498328 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a12eea4f523bf7d2f6b3e18c539a6add4d5a60a1 | 243 | py | Python | twitter/api/admin.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | twitter/api/admin.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | twitter/api/admin.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Tweet, Follow
class TweetAdmin(admin.ModelAdmin):
pass
class FollowAdmin(admin.ModelAdmin):
pass
admin.site.register(Tweet, TweetAdmin)
admin.site.register(Follow, FollowAdmin)
| 17.357143 | 40 | 0.781893 | 30 | 243 | 6.333333 | 0.5 | 0.157895 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131687 | 243 | 13 | 41 | 18.692308 | 0.900474 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a158368ff2d42c478ab3e0b709382be8905646fd | 109 | py | Python | Models/hardware/camera.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | Models/hardware/camera.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | Models/hardware/camera.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | from enum import Enum
class Camera(Enum):
Brio = 1,
Brio_left = 2,
Brio_right = 3
USB = 4,
| 12.111111 | 21 | 0.577982 | 17 | 109 | 3.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.330275 | 109 | 8 | 22 | 13.625 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
a15ff6c1d49aaead0d757a0e8ad7f19b6fe419aa | 677 | py | Python | src/py_dss_interface/models/Generators/Generators.py | PauloRadatz/py_dss_interface | dc9373b0dd090b3a4c906ebe211e94509326c2f3 | [
"MIT"
] | 8 | 2020-08-15T12:56:03.000Z | 2022-01-04T15:51:14.000Z | src/py_dss_interface/models/Generators/Generators.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 24 | 2021-04-24T18:33:19.000Z | 2021-11-13T14:59:54.000Z | src/py_dss_interface/models/Generators/Generators.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 7 | 2020-08-15T12:56:04.000Z | 2021-10-04T16:14:30.000Z | # -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
from py_dss_interface.models.Generators.GeneratorsF import GeneratorsF
from py_dss_interface.models.Generators.GeneratorsI import GeneratorsI
from py_dss_interface.models.Generators.GeneratorsS import GeneratorsS
from py_dss_interface.models.Generators.... | 39.823529 | 118 | 0.803545 | 79 | 677 | 6.78481 | 0.481013 | 0.044776 | 0.067164 | 0.134328 | 0.253731 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.125554 | 677 | 16 | 119 | 42.3125 | 0.888514 | 0.409158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
a16aa3cc444ef822957e47d6e810afe916acc680 | 1,141 | py | Python | topics/forms.py | mblacklock/sohkahtoa | 89623b436dc1adf482308f22aa1eba81db343fde | [
"MIT"
] | null | null | null | topics/forms.py | mblacklock/sohkahtoa | 89623b436dc1adf482308f22aa1eba81db343fde | [
"MIT"
] | null | null | null | topics/forms.py | mblacklock/sohkahtoa | 89623b436dc1adf482308f22aa1eba81db343fde | [
"MIT"
] | null | null | null | from django import forms
##from topic.models import Subtopic, Topic
##
##class TopicForm(forms.ModelForm):
## name = forms.CharField(max_length=Topic._meta.get_field('name').max_length, help_text="Please enter the topic name.")
## slug = forms.CharField(widget=forms.HiddenInput(), required=False)
##
## class ... | 35.65625 | 129 | 0.638913 | 139 | 1,141 | 5.093525 | 0.33813 | 0.09887 | 0.072034 | 0.097458 | 0.440678 | 0.409605 | 0.409605 | 0.293785 | 0.293785 | 0.132768 | 0 | 0.003264 | 0.194566 | 1,141 | 31 | 130 | 36.806452 | 0.767138 | 0.902717 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a1a9d39b6afb5c867be4d5997c2bd1003a6c2197 | 275 | py | Python | boa3_test/test_sc/interop_test/oracle/OracleRequestCallCallbackMismatchedType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/interop_test/oracle/OracleRequestCallCallbackMismatchedType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/interop_test/oracle/OracleRequestCallCallbackMismatchedType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from typing import Any
from boa3.builtin import public
from boa3.builtin.interop.oracle import Oracle
@public
def oracle_call(url: str, request_filter: str, user_data: Any, gas_for_response: int):
Oracle.request(url, request_filter, 1234, user_data, gas_for_response)
| 27.5 | 86 | 0.796364 | 43 | 275 | 4.883721 | 0.511628 | 0.07619 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024896 | 0.123636 | 275 | 9 | 87 | 30.555556 | 0.846473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a1ba00b266d85ab212275893974efbee5412fe6c | 203 | py | Python | handler.py | FelixWieland/simbution | 152a65ff5f0cef36087494c20244e35fa8750bad | [
"MIT"
] | 1 | 2020-03-04T00:24:44.000Z | 2020-03-04T00:24:44.000Z | handler.py | FelixWieland/simbution | 152a65ff5f0cef36087494c20244e35fa8750bad | [
"MIT"
] | 254 | 2020-03-04T00:02:06.000Z | 2020-11-13T00:33:20.000Z | handler.py | FelixWieland/simbution | 152a65ff5f0cef36087494c20244e35fa8750bad | [
"MIT"
] | null | null | null | from src.githubhandlers import handle_github_issue
def simbution(event, context):
statusCode, body = handle_github_issue()
return {
"statusCode": statusCode,
"body": body
}
| 20.3 | 50 | 0.674877 | 21 | 203 | 6.333333 | 0.666667 | 0.180451 | 0.255639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 203 | 9 | 51 | 22.555556 | 0.858065 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a1cc1e986d1cdd0660fc349a65126ec0b763c507 | 326 | py | Python | pytest_stepwise/compat.py | nip3o/pytest-stepwise | 045ef57fdfea1dc698ef9754ddc9ac98978cf696 | [
"MIT"
] | 12 | 2015-01-26T03:51:07.000Z | 2018-10-24T11:35:22.000Z | pytest_stepwise/compat.py | nip3o/pytest-stepwise | 045ef57fdfea1dc698ef9754ddc9ac98978cf696 | [
"MIT"
] | 13 | 2015-03-18T19:42:18.000Z | 2018-11-15T16:21:55.000Z | pytest_stepwise/compat.py | nip3o/pytest-stepwise | 045ef57fdfea1dc698ef9754ddc9ac98978cf696 | [
"MIT"
] | 2 | 2015-09-23T14:23:25.000Z | 2018-08-01T10:10:49.000Z | import pytest
try:
from _pytest.cacheprovider import Cache
except ImportError:
from pytest_cache import Cache
try:
# pytest 3.7+
Cache = Cache.for_config
except AttributeError:
pass
if hasattr(pytest, 'hookimpl'):
tryfirst = pytest.hookimpl(tryfirst=True)
else:
tryfirst = pytest.mark.try... | 17.157895 | 45 | 0.723926 | 40 | 326 | 5.825 | 0.525 | 0.085837 | 0.188841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.199387 | 326 | 18 | 46 | 18.111111 | 0.885057 | 0.033742 | 0 | 0.153846 | 0 | 0 | 0.025559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
a1fe9e3bcd932bcfcb990676cf74784e1cee977e | 1,240 | py | Python | src/crate/client/sqlalchemy/tests/__init__.py | mxm/crate-python | de13bf4a04e7c45864ebfdc144dffe1ddb53b88f | [
"Apache-2.0"
] | null | null | null | src/crate/client/sqlalchemy/tests/__init__.py | mxm/crate-python | de13bf4a04e7c45864ebfdc144dffe1ddb53b88f | [
"Apache-2.0"
] | null | null | null | src/crate/client/sqlalchemy/tests/__init__.py | mxm/crate-python | de13bf4a04e7c45864ebfdc144dffe1ddb53b88f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import TestSuite, makeSuite
from .connection_test import SqlAlchemyConnectionTest
from .dict_test import SqlAlchemyDictTypeTest
from .datetime_test import SqlAlchemyDateAndDateTimeTest
from .compiler_test import SqlAlchemyCompilerTest
from .update_test import SqlAlchemyUpdateTest
... | 38.75 | 67 | 0.824194 | 123 | 1,240 | 8.138211 | 0.325203 | 0.0999 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004529 | 0.109677 | 1,240 | 31 | 68 | 40 | 0.902174 | 0.016935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.461538 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a1fea4aa629467e7e592499846621171bf31f935 | 348 | py | Python | backend/django_app/core/models/__init__.py | bekurmann/BA_polity | 933c9df9d935066cc498c5da8e1e0f68742f6ee5 | [
"MIT"
] | null | null | null | backend/django_app/core/models/__init__.py | bekurmann/BA_polity | 933c9df9d935066cc498c5da8e1e0f68742f6ee5 | [
"MIT"
] | null | null | null | backend/django_app/core/models/__init__.py | bekurmann/BA_polity | 933c9df9d935066cc498c5da8e1e0f68742f6ee5 | [
"MIT"
] | null | null | null | from .politican import Politican
from .party import Party
from .parlament import Parlament
from .commission import Commission
from .fraction import Fraction
from .executive import Executive
from .affair import Affair, AffairDebate, AffairFile
from .topic import Topic
from .session import Session
from .membership import... | 15.130435 | 52 | 0.798851 | 42 | 348 | 6.619048 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 348 | 22 | 53 | 15.818182 | 0.958621 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b8191f59b501eec7499b52d7fa9642dd2bb3692f | 23 | py | Python | python-midonetclient/src/midonetclient/__init__.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 19 | 2015-04-13T06:52:38.000Z | 2018-04-12T07:08:30.000Z | python-midonetclient/src/midonetclient/__init__.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 14 | 2015-04-12T12:28:18.000Z | 2019-02-06T20:54:33.000Z | python-midonetclient/src/midonetclient/__init__.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 3 | 2015-09-07T10:01:31.000Z | 2016-10-11T09:42:05.000Z | __version__ = "master"
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
62b5c525ca8f551f26eac59a2808e4043aee7f3b | 397 | py | Python | litewql/exceptions.py | felixfire/LiteWQL | 8b47d1617041f1e9505bdbee713536a13a3ef88e | [
"Apache-2.0"
] | null | null | null | litewql/exceptions.py | felixfire/LiteWQL | 8b47d1617041f1e9505bdbee713536a13a3ef88e | [
"Apache-2.0"
] | null | null | null | litewql/exceptions.py | felixfire/LiteWQL | 8b47d1617041f1e9505bdbee713536a13a3ef88e | [
"Apache-2.0"
] | null | null | null |
class ParsingError(Exception):
pass
class CastError(Exception):
original_exception = None
def __init__(self, exception):
if isinstance(exception, Exception):
message = str(exception)
self.original_exception = exception
else:
message = str(exception)
... | 20.894737 | 47 | 0.624685 | 36 | 397 | 6.583333 | 0.444444 | 0.21519 | 0.177215 | 0.194093 | 0.337553 | 0.337553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297229 | 397 | 18 | 48 | 22.055556 | 0.849462 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
62bc5bd8fce6286bf2b65696e84a543d71b7d09f | 2,025 | py | Python | elf/wrapper/generic.py | qin-yu/elf | bb8e0a41c1c2539ac6f866271751139271fbeeb1 | [
"MIT"
] | 23 | 2019-09-07T23:02:08.000Z | 2022-03-19T09:50:58.000Z | elf/wrapper/generic.py | qin-yu/elf | bb8e0a41c1c2539ac6f866271751139271fbeeb1 | [
"MIT"
] | 34 | 2019-08-07T11:54:01.000Z | 2022-03-29T09:50:54.000Z | elf/wrapper/generic.py | qin-yu/elf | bb8e0a41c1c2539ac6f866271751139271fbeeb1 | [
"MIT"
] | 12 | 2019-08-23T09:01:29.000Z | 2021-11-09T01:21:20.000Z | import numpy as np
from .base import SimpleTransformationWrapper, WrapperBase
from ..util import normalize_index, squeeze_singletons
# TODO allow arbitrary range for normalization
class NormalizeWrapper(SimpleTransformationWrapper):
""" Wrapper to normalize tensor to 0, 1.
"""
eps = 1.e-6
def __init_... | 28.928571 | 72 | 0.653827 | 243 | 2,025 | 5.156379 | 0.300412 | 0.043097 | 0.026337 | 0.040702 | 0.134078 | 0.092578 | 0.092578 | 0.092578 | 0.092578 | 0.092578 | 0 | 0.003922 | 0.244444 | 2,025 | 69 | 73 | 29.347826 | 0.815033 | 0.095802 | 0 | 0.173913 | 0 | 0 | 0.003863 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.23913 | false | 0 | 0.065217 | 0.086957 | 0.543478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
62c6fbb6f8095b3f57b4d0ebea9d59c183c92845 | 29,462 | py | Python | faun.py | HazekiahWon/PyTorch-MFNet | 846bc63bc753791c11ab2aed45706d6c9fac8113 | [
"MIT"
] | null | null | null | faun.py | HazekiahWon/PyTorch-MFNet | 846bc63bc753791c11ab2aed45706d6c9fac8113 | [
"MIT"
] | null | null | null | faun.py | HazekiahWon/PyTorch-MFNet | 846bc63bc753791c11ab2aed45706d6c9fac8113 | [
"MIT"
] | null | null | null | #
# @Author: Songyang Zhang
# @Date: 2019-03-11 18:18:00
# @Last Modified by: Songyang Zhang
# @Last Modified time: 2019-03-11 18:18:00
#
import torch
from torch import nn
from torch.nn import functional as F
import time
# from maskrcnn_benchmark.layers import FrozenBatchNorm2d
# from maskrcnn_benchmark.layers ... | 46.178683 | 194 | 0.584482 | 3,912 | 29,462 | 4.149029 | 0.069018 | 0.03635 | 0.011213 | 0.019222 | 0.772164 | 0.740435 | 0.720596 | 0.684246 | 0.655597 | 0.63465 | 0 | 0.023493 | 0.297841 | 29,462 | 638 | 195 | 46.178683 | 0.761106 | 0.320956 | 0 | 0.514286 | 0 | 0 | 0.007057 | 0 | 0 | 0 | 0 | 0.001567 | 0 | 1 | 0.053968 | false | 0.003175 | 0.012698 | 0 | 0.12381 | 0.003175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
62e6139f400e456fa390e610d6c10a13162f13a6 | 94 | py | Python | db.py | renzhichaos/try | eb29d400a5cab01d04e063e50885eb1c1c41ae92 | [
"Apache-2.0"
] | 1 | 2018-01-09T02:17:10.000Z | 2018-01-09T02:17:10.000Z | db.py | renzhichaos/try | eb29d400a5cab01d04e063e50885eb1c1c41ae92 | [
"Apache-2.0"
] | null | null | null | db.py | renzhichaos/try | eb29d400a5cab01d04e063e50885eb1c1c41ae92 | [
"Apache-2.0"
] | null | null | null | import pymysql
db = pymysql.Connect("localhost", "root", "root", "test")
cursor = db.cursor() | 23.5 | 57 | 0.680851 | 12 | 94 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 4 | 58 | 23.5 | 0.771084 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
62eb73f09ef0e4e90c681555e89fa8fdebf15f4b | 223 | py | Python | class-notes/chapter_10/import_practice/result3.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | class-notes/chapter_10/import_practice/result3.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | class-notes/chapter_10/import_practice/result3.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 19 10:57:27 2021
@author: user24
"""
from test1.test_children import test_children
result = test_children.average(56, 67, 46, 81, 76)
print("test children",result) | 20.272727 | 51 | 0.668161 | 34 | 223 | 4.294118 | 0.794118 | 0.328767 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.183857 | 223 | 11 | 52 | 20.272727 | 0.659341 | 0.336323 | 0 | 0 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1a010fdf7845ff2b4a371aeca377b1e80e52953c | 90 | py | Python | love/lover/apps.py | woshinib/text | ad40b5992d0006c95b39e6f449e0cae16deb256d | [
"MIT"
] | null | null | null | love/lover/apps.py | woshinib/text | ad40b5992d0006c95b39e6f449e0cae16deb256d | [
"MIT"
] | null | null | null | love/lover/apps.py | woshinib/text | ad40b5992d0006c95b39e6f449e0cae16deb256d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LoverConfig(AppConfig):
name = 'lover'
| 15 | 34 | 0.7 | 10 | 90 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 90 | 5 | 35 | 18 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1a065b7be49fddacc9d2ffebb63c274a5c76ac85 | 91 | py | Python | fengxiaolu/20180326/1/4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | fengxiaolu/20180326/1/4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | fengxiaolu/20180326/1/4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | x=int(input("输入一个数字"))
if x in range(101:)
print("你好棒啊!继续努力“)
elsa:
print("乖乖,你咋这么不听话呢")
| 15.166667 | 22 | 0.659341 | 16 | 91 | 3.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.10989 | 91 | 5 | 23 | 18.2 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 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 | 0 | 0 | 3 |
1a20961933d48beae06626d23252078177b60e40 | 3,608 | py | Python | manager/integration/tests/test_ha.py | yasker/longhorn-tests | 2b58d6af98da7528a88369aee21b4f1cda1c7025 | [
"Apache-2.0"
] | null | null | null | manager/integration/tests/test_ha.py | yasker/longhorn-tests | 2b58d6af98da7528a88369aee21b4f1cda1c7025 | [
"Apache-2.0"
] | null | null | null | manager/integration/tests/test_ha.py | yasker/longhorn-tests | 2b58d6af98da7528a88369aee21b4f1cda1c7025 | [
"Apache-2.0"
] | null | null | null | import common
import pytest
from common import clients # NOQA
from common import SIZE, VOLUME_NAME, DEV_PATH
from common import wait_for_volume_state, wait_for_volume_delete
def test_ha_simple_recovery(clients): # NOQA
# get a random client
for host_id, client in clients.iteritems():
break
volu... | 33.719626 | 70 | 0.675443 | 442 | 3,608 | 5.294118 | 0.151584 | 0.106838 | 0.083333 | 0.105556 | 0.788034 | 0.774786 | 0.734188 | 0.699145 | 0.682051 | 0.682051 | 0 | 0.013699 | 0.190687 | 3,608 | 106 | 71 | 34.037736 | 0.787671 | 0.016353 | 0 | 0.61039 | 0 | 0 | 0.122812 | 0 | 0 | 0 | 0 | 0 | 0.350649 | 1 | 0.025974 | false | 0 | 0.064935 | 0 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a24ede9c79f47a57464db3e79f6162065f1ceb1 | 110 | py | Python | trainme/src/cfg.py | Aditta-das/autotrainer | 326fe154bddfbfa465fa1ebdbb601f26c019cce3 | [
"Apache-2.0"
] | null | null | null | trainme/src/cfg.py | Aditta-das/autotrainer | 326fe154bddfbfa465fa1ebdbb601f26c019cce3 | [
"Apache-2.0"
] | null | null | null | trainme/src/cfg.py | Aditta-das/autotrainer | 326fe154bddfbfa465fa1ebdbb601f26c019cce3 | [
"Apache-2.0"
] | null | null | null | class CFG:
random_state = 42
shuffle = True
test_size = 0.3
no_of_fold = 5
use_gpu = False | 18.333333 | 21 | 0.609091 | 18 | 110 | 3.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.327273 | 110 | 6 | 22 | 18.333333 | 0.77027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
a7e05e5228f14a4fde8facc5ad20d5c54ec3f883 | 10,386 | py | Python | kubernetes/client/models/io_xk8s_cluster_infrastructure_v1beta1_aws_fargate_profile_spec.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/io_xk8s_cluster_infrastructure_v1beta1_aws_fargate_profile_spec.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/io_xk8s_cluster_infrastructure_v1beta1_aws_fargate_profile_spec.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
fr... | 38.898876 | 261 | 0.676873 | 1,138 | 10,386 | 6.010545 | 0.157294 | 0.042105 | 0.214035 | 0.171053 | 0.608626 | 0.543713 | 0.498538 | 0.367836 | 0.264035 | 0.203947 | 0 | 0.027577 | 0.25284 | 10,386 | 266 | 262 | 39.045113 | 0.853866 | 0.468515 | 0 | 0.086207 | 1 | 0 | 0.095319 | 0.014827 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0 | 0.034483 | 0 | 0.327586 | 0.017241 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7e4671104a9274e507b518e6f71fdf8dd667f1c | 333 | py | Python | sysidentpy/utils/__init__.py | neylsoncrepalde/sysidentpy | 3d241ff3c460a8e01f9bd8afbaf17f27ec3937f3 | [
"BSD-3-Clause"
] | 107 | 2020-05-19T12:59:56.000Z | 2022-03-29T05:25:27.000Z | sysidentpy/utils/__init__.py | nataliakeles/sysidentpy | d1af4243e7c3d2c0b456fb9b4fe120965a7ededc | [
"BSD-3-Clause"
] | 20 | 2020-05-24T15:56:15.000Z | 2022-03-05T19:54:02.000Z | sysidentpy/utils/__init__.py | nataliakeles/sysidentpy | d1af4243e7c3d2c0b456fb9b4fe120965a7ededc | [
"BSD-3-Clause"
] | 25 | 2020-05-19T14:02:17.000Z | 2022-03-15T20:17:58.000Z | from ._check_arrays import (
check_length,
check_dimension,
check_infinity,
check_nan,
check_X_y,
)
from .generate_data import get_miso_data, get_siso_data
__ALL__ = [
"check_length",
"check_dimension",
"check_infinity",
"check_nan",
"check_X_y",
"get_miso_data",
"get_s... | 16.65 | 55 | 0.66967 | 43 | 333 | 4.55814 | 0.372093 | 0.112245 | 0.163265 | 0.255102 | 0.765306 | 0.765306 | 0.540816 | 0.540816 | 0.540816 | 0.540816 | 0 | 0 | 0.228228 | 333 | 19 | 56 | 17.526316 | 0.762646 | 0 | 0 | 0 | 1 | 0 | 0.255255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7f050a687226459f167a6163a412ba5dca04eb0 | 619 | py | Python | bgmol/tests/systems/test_minipeptides.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 4 | 2021-06-29T23:06:05.000Z | 2021-09-11T19:48:10.000Z | bgmol/tests/systems/test_minipeptides.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 5 | 2021-11-12T18:45:50.000Z | 2022-01-26T13:27:58.000Z | bgmol/tests/systems/test_minipeptides.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 3 | 2021-09-10T10:34:19.000Z | 2022-02-04T08:23:46.000Z | import pytest
from bgmol.systems import MiniPeptide, AMINO_ACIDS
@pytest.mark.parametrize("aminoacid", AMINO_ACIDS)
@pytest.mark.parametrize("solvated", [True, False])
def test_monopeptide_systems(aminoacid, solvated):
MiniPeptide(aminoacid, solvated=solvated)
@pytest.mark.slow
@pytest.mark.parametrize("aminoa... | 28.136364 | 63 | 0.783522 | 72 | 619 | 6.597222 | 0.333333 | 0.126316 | 0.221053 | 0.168421 | 0.362105 | 0.231579 | 0.231579 | 0.231579 | 0.231579 | 0.231579 | 0 | 0.010601 | 0.085622 | 619 | 21 | 64 | 29.47619 | 0.828622 | 0 | 0 | 0.142857 | 0 | 0 | 0.116317 | 0.038772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7f2a87196e9473fe4b00888b98835ac4b9276ff | 114 | py | Python | Python/modulos.py | schiblich/Practice | bb3572328196bf47b07ec03bc3e78b87ecaf783c | [
"MIT"
] | null | null | null | Python/modulos.py | schiblich/Practice | bb3572328196bf47b07ec03bc3e78b87ecaf783c | [
"MIT"
] | null | null | null | Python/modulos.py | schiblich/Practice | bb3572328196bf47b07ec03bc3e78b87ecaf783c | [
"MIT"
] | 1 | 2022-01-31T21:27:23.000Z | 2022-01-31T21:27:23.000Z | import math
num = int(input("Digite o numero..."))
print("A raiz quadrada de {} e {}".format(num, math.sqrt(num))) | 38 | 63 | 0.657895 | 19 | 114 | 3.947368 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 114 | 3 | 63 | 38 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.382609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c5075e93574e36b31e24c9fd7d09595646191967 | 1,138 | py | Python | flood_impact/myimpact/calculator.py | apa-dev/nola-ready-for-rain-water-assignment | 6a751bf0d0cb863a3e7636892850a5a9b5457549 | [
"MIT"
] | 1 | 2018-04-25T13:46:59.000Z | 2018-04-25T13:46:59.000Z | flood_impact/myimpact/calculator.py | apa-dev/nola-ready-for-rain-water-assignment | 6a751bf0d0cb863a3e7636892850a5a9b5457549 | [
"MIT"
] | 3 | 2020-02-11T22:45:19.000Z | 2021-06-10T20:22:23.000Z | flood_impact/myimpact/calculator.py | apa-dev/nola-ready-for-rain-water-assignment | 6a751bf0d0cb863a3e7636892850a5a9b5457549 | [
"MIT"
] | null | null | null | from django.conf import settings
class FloodImpactCalculator(object):
"""
a simple rainfall runoff calculator, based on this model:
https://en.wikipedia.org/wiki/Runoff_curve_number
"""
def __init__(self, cover_type, area_square_feet, rainfall=1.5):
self.soil_type ... | 36.709677 | 117 | 0.616872 | 146 | 1,138 | 4.59589 | 0.431507 | 0.053651 | 0.083458 | 0.053651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022005 | 0.281195 | 1,138 | 30 | 118 | 37.933333 | 0.798289 | 0.202109 | 0 | 0.117647 | 0 | 0 | 0.001156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c512c762a8b157a9ef0f507cb5be0fdaa1be2130 | 725 | py | Python | snafu/configs.py | uranusjr/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 27 | 2017-10-09T02:41:23.000Z | 2020-12-18T22:42:55.000Z | snafu/configs.py | imbi7py/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 10 | 2017-12-20T02:24:54.000Z | 2018-02-22T17:10:04.000Z | snafu/configs.py | imbi7py/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 1 | 2020-12-19T05:56:54.000Z | 2020-12-19T05:56:54.000Z | import json
import pathlib
def get_value(key):
with pathlib.Path(__file__).with_name('installation.json').open() as f:
data = json.load(f)
return data[key]
def get_directory(key):
path = pathlib.Path(__file__).parent.joinpath(get_value(key))
path.mkdir(parents=True, exist_ok=True)
return... | 21.969697 | 75 | 0.707586 | 105 | 725 | 4.580952 | 0.4 | 0.074844 | 0.149688 | 0.137214 | 0.10395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157241 | 725 | 32 | 76 | 22.65625 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.102069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.15 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c5316838c6d193a745d53d45547928df50e6e642 | 287 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/_glgets.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/_glgets.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/_glgets.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | """glGet* auto-generation of output arrays (DO NOT EDIT, AUTOGENERATED)"""
try:
from OpenGL.raw.GL._lookupint import LookupInt as _L
except ImportError:
def _L(*args):
raise RuntimeError( "Need to define a lookupint for this api" )
_glget_size_mapping = _m = {}
| 31.888889 | 75 | 0.689895 | 39 | 287 | 4.897436 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212544 | 287 | 8 | 76 | 35.875 | 0.845133 | 0.236934 | 0 | 0 | 1 | 0 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c54a3914783bbd1f1a2dad51f2c0ad6bb97526ad | 5,995 | py | Python | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2022_01_30_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2022_01_30_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2022_01_30_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.677419 | 94 | 0.727773 | 538 | 5,995 | 7.8829 | 0.193309 | 0.179203 | 0.116482 | 0.170243 | 0.319264 | 0.092431 | 0.092431 | 0.092431 | 0.092431 | 0.092431 | 0 | 0.008031 | 0.189992 | 5,995 | 154 | 95 | 38.928571 | 0.865321 | 0.157798 | 0 | 0 | 0 | 0 | 0.160704 | 0.055367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.541667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c56520693e52a1505be6188d2eb8686aba61cf3f | 1,890 | py | Python | superviselySDK/supervisely_lib/api/project_api.py | nicehuster/mmdetection-supervisely-person-datasets | ff1b57e16a71378510571dbb9cebfdb712656927 | [
"Apache-2.0"
] | 40 | 2019-05-05T08:08:18.000Z | 2021-10-17T00:07:58.000Z | superviselySDK/supervisely_lib/api/project_api.py | nicehuster/mmdetection-supervisely-person-datasets | ff1b57e16a71378510571dbb9cebfdb712656927 | [
"Apache-2.0"
] | 8 | 2019-06-13T06:00:08.000Z | 2021-07-24T05:25:33.000Z | superviselySDK/supervisely_lib/api/project_api.py | nicehuster/mmdetection-supervisely-person-datasets | ff1b57e16a71378510571dbb9cebfdb712656927 | [
"Apache-2.0"
] | 6 | 2019-07-30T06:36:27.000Z | 2021-06-03T11:57:36.000Z | # coding: utf-8
from collections import namedtuple
from supervisely_lib.api.module_api import ApiField, ModuleApi
from supervisely_lib._utils import camel_to_snake
class ProjectApi(ModuleApi):
_info_sequence = [ApiField.ID,
ApiField.NAME,
ApiField.DESCRIPTION,
... | 36.346154 | 120 | 0.619048 | 220 | 1,890 | 5.086364 | 0.286364 | 0.068811 | 0.050938 | 0.050938 | 0.211796 | 0.085791 | 0.085791 | 0.085791 | 0.085791 | 0.085791 | 0 | 0.000737 | 0.282011 | 1,890 | 51 | 121 | 37.058824 | 0.823876 | 0.006878 | 0 | 0.054054 | 0 | 0 | 0.064568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.081081 | 0.108108 | 0.621622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c56fcb1d1acd6477ccae1acc2a1455bf12445187 | 3,196 | py | Python | quandoo/QuandooModel.py | fraser-langton/Quandoo | 3a5e1241b645129d805213d01221ede8f2b79aa2 | [
"MIT"
] | 1 | 2019-08-08T11:05:28.000Z | 2019-08-08T11:05:28.000Z | quandoo/QuandooModel.py | fraser-langton/Quandoo | 3a5e1241b645129d805213d01221ede8f2b79aa2 | [
"MIT"
] | 1 | 2021-01-31T23:16:09.000Z | 2021-03-05T01:33:49.000Z | quandoo/QuandooModel.py | fraser-langton/Quandoo | 3a5e1241b645129d805213d01221ede8f2b79aa2 | [
"MIT"
] | 1 | 2020-08-19T09:06:42.000Z | 2020-08-19T09:06:42.000Z | import json
import sys
from datetime import datetime
import tzlocal
class PrettyClass:
useless_attrs = ["api_response", "agent"]
def __str__(self):
useful_attrs = ["{}: {}".format(key, val) for key, val in self.__dict__.items() if
key not in self.useless_attrs]
return... | 29.869159 | 109 | 0.584481 | 385 | 3,196 | 4.6 | 0.257143 | 0.088086 | 0.050819 | 0.020328 | 0.223038 | 0.223038 | 0.223038 | 0.177866 | 0.177866 | 0.177866 | 0 | 0.004248 | 0.263454 | 3,196 | 106 | 110 | 30.150943 | 0.748088 | 0.00219 | 0 | 0.2 | 0 | 0 | 0.068089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.053333 | 0.146667 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3d6dd6a36191574fbf05b3e0290676b9abdb33b9 | 23,244 | py | Python | server/content_app/tests/test_content.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | 2 | 2021-11-16T04:46:47.000Z | 2022-02-15T12:06:08.000Z | server/content_app/tests/test_content.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | null | null | null | server/content_app/tests/test_content.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | null | null | null | from typing import Optional
from django.contrib.auth.models import Group
from rest_framework.test import APITestCase
from content_app.models import Category
from user_app.models import User
from user_app.tests.services.user_services import UserAuthAPITestService
from .services.content_services import ContentAPITestS... | 50.203024 | 118 | 0.707236 | 2,734 | 23,244 | 5.638625 | 0.058522 | 0.085625 | 0.051829 | 0.037299 | 0.869162 | 0.778088 | 0.684938 | 0.62007 | 0.512909 | 0.429489 | 0 | 0.028261 | 0.205343 | 23,244 | 462 | 119 | 50.311688 | 0.806345 | 0.111341 | 0 | 0.331343 | 0 | 0 | 0.064818 | 0 | 0 | 0 | 0 | 0 | 0.286567 | 1 | 0.01791 | false | 0.065672 | 0.020896 | 0.002985 | 0.044776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3d7ea11d75aec23879b9c4347967901d56a1d667 | 241 | py | Python | dubhe-visual-server/parser_service/tbparser/__init__.py | Gouzhong1223/Dubhe | 8959a51704410dc38b595a0926646b9928451c9a | [
"Apache-2.0"
] | 1 | 2022-01-11T07:14:37.000Z | 2022-01-11T07:14:37.000Z | dubhe-visual-server/parser_service/tbparser/__init__.py | Gouzhong1223/Dubhe | 8959a51704410dc38b595a0926646b9928451c9a | [
"Apache-2.0"
] | 1 | 2022-03-04T07:19:43.000Z | 2022-03-04T07:19:43.000Z | dubhe-visual-server/parser_service/tbparser/__init__.py | Gouzhong1223/Dubhe | 8959a51704410dc38b595a0926646b9928451c9a | [
"Apache-2.0"
] | 1 | 2022-03-20T13:09:14.000Z | 2022-03-20T13:09:14.000Z | from tbparser.summary_reader import SummaryReader
from tbparser.events_reader import EventsFileReader
from tbparser.projector_reader import Projector_Reader
__all__ = [
'EventsFileReader',
'Projector_Reader',
'SummaryReader',
]
| 24.1 | 54 | 0.804979 | 24 | 241 | 7.708333 | 0.416667 | 0.194595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 241 | 9 | 55 | 26.777778 | 0.885167 | 0 | 0 | 0 | 0 | 0 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3da65b58ffadcca4e7d507a73645cc058cf2b42d | 921 | py | Python | office365/runtime/auth/providers/oauth_token_provider.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/runtime/auth/providers/oauth_token_provider.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/runtime/auth/providers/oauth_token_provider.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.runtime.auth.authentication_provider import AuthenticationProvider
class OAuthTokenProvider(AuthenticationProvider):
""" OAuth token provider for AAD"""
def __init__(self, token_func=None):
self._error = None
self._token_func = token_func
self._cached_token = None
... | 35.423077 | 96 | 0.675353 | 98 | 921 | 5.959184 | 0.397959 | 0.085616 | 0.128425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.239957 | 921 | 25 | 97 | 36.84 | 0.825714 | 0.10532 | 0 | 0 | 0 | 0 | 0.050378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.133333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3da6c949eabd7756f3b84157e1c94fc6254f5c30 | 83 | py | Python | Atividade de Sequenciais/Gasolina.py | ThiagoAciole/Logica_Algoritimos_Python | f687d09d0f90d6b0c349bcd1fada4c9cc6516a92 | [
"MIT"
] | null | null | null | Atividade de Sequenciais/Gasolina.py | ThiagoAciole/Logica_Algoritimos_Python | f687d09d0f90d6b0c349bcd1fada4c9cc6516a92 | [
"MIT"
] | null | null | null | Atividade de Sequenciais/Gasolina.py | ThiagoAciole/Logica_Algoritimos_Python | f687d09d0f90d6b0c349bcd1fada4c9cc6516a92 | [
"MIT"
] | null | null | null | #Gasolina
t=float(input())
v=float(input())
l=(t*v) /12
print("{:.3f}".format(l) )
| 13.833333 | 26 | 0.590361 | 15 | 83 | 3.266667 | 0.666667 | 0.408163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.084337 | 83 | 5 | 27 | 16.6 | 0.605263 | 0.096386 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 3 |
3daab2fe44b6d253ae699327f3438803f27d54fb | 517 | py | Python | mcscript/lang/resource/TypeResource.py | Inky-developer/McScript | 1047fe0c73a2aea19e457ad8a08267a3ce4b18b3 | [
"MIT"
] | 8 | 2020-04-11T19:18:00.000Z | 2021-06-03T15:46:05.000Z | mcscript/lang/resource/TypeResource.py | Inky-developer/McScript | 1047fe0c73a2aea19e457ad8a08267a3ce4b18b3 | [
"MIT"
] | null | null | null | mcscript/lang/resource/TypeResource.py | Inky-developer/McScript | 1047fe0c73a2aea19e457ad8a08267a3ce4b18b3 | [
"MIT"
] | 1 | 2020-10-07T16:24:44.000Z | 2020-10-07T16:24:44.000Z | from mcscript.lang.Type import Type
from mcscript.lang.atomic_types import MetaType
from mcscript.lang.resource.base.ResourceBase import Resource
class TypeResource(Resource):
"""
Holds a resource type
"""
def type(self) -> Type:
return MetaType
def supports_scoreboard(self) -> bool:
... | 22.478261 | 61 | 0.686654 | 61 | 517 | 5.655738 | 0.459016 | 0.104348 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235977 | 517 | 22 | 62 | 23.5 | 0.873418 | 0.083172 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0.25 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3dafe0993309257737c8b4ee58ffd5b7825cb176 | 516 | py | Python | lacosmic/__init__.py | larrybradley/lacosmic | 8b79e79a30078eabb320c33d8ae312212a166e03 | [
"BSD-3-Clause"
] | 6 | 2020-06-12T21:58:15.000Z | 2022-03-23T14:52:23.000Z | lacosmic/__init__.py | larrybradley/lacosmic | 8b79e79a30078eabb320c33d8ae312212a166e03 | [
"BSD-3-Clause"
] | 2 | 2021-01-29T16:36:23.000Z | 2021-11-30T05:07:22.000Z | lacosmic/__init__.py | larrybradley/lacosmic | 8b79e79a30078eabb320c33d8ae312212a166e03 | [
"BSD-3-Clause"
] | 4 | 2016-09-07T19:09:43.000Z | 2021-11-30T03:21:40.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Package to remove cosmic rays from an astronomical image using the
L.A.Cosmic algorithm (van Dokkum 2001; PASP 113, 1420).
"""
# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ---------------------------... | 36.857143 | 78 | 0.50969 | 58 | 516 | 4.5 | 0.827586 | 0.076628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.139535 | 516 | 13 | 79 | 39.692308 | 0.560811 | 0.852713 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3dd7979af638bb8728dcf50e635c756b80c1bcb6 | 823 | py | Python | tests/emukit/test_functions/test_ishigami_function.py | ndalchau/emukit | eb6754ea016a7cd82b275bb4075676b5ed662634 | [
"Apache-2.0"
] | 152 | 2020-10-24T13:12:57.000Z | 2022-03-25T11:35:41.000Z | tests/emukit/test_functions/test_ishigami_function.py | Tony-Chiong/emukit | a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a | [
"Apache-2.0"
] | 87 | 2020-10-26T10:29:25.000Z | 2022-03-04T11:17:59.000Z | tests/emukit/test_functions/test_ishigami_function.py | Tony-Chiong/emukit | a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a | [
"Apache-2.0"
] | 41 | 2020-10-24T11:59:21.000Z | 2022-03-22T17:08:30.000Z | import numpy as np
from emukit.test_functions.sensitivity import Ishigami
def test_ishigami_function():
ishigami = Ishigami(a=5, b=0.1)
assert(ishigami.fidelity1(np.array([[0, 1, 0]])).shape == (1,))
assert(ishigami.fidelity2(np.array([[0, 1, 0]])).shape == (1,))
assert(ishigami.fidelity3(np.array([... | 39.190476 | 67 | 0.591738 | 124 | 823 | 3.903226 | 0.25 | 0.159091 | 0.340909 | 0.330579 | 0.636364 | 0.578512 | 0.547521 | 0.547521 | 0.247934 | 0 | 0 | 0.077574 | 0.138518 | 823 | 20 | 68 | 41.15 | 0.605078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.733333 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a7bd023e2c17a51950ee698c88eecc45a95cb12 | 233 | py | Python | Desafios/Desafio030.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Desafios/Desafio030.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Desafios/Desafio030.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | #Crie um programa que leia um número inteiro e mostre na tela se ele é par ou ímpar.
n1 = int(input('Digite um número inteiro: '))
resultado = n1 % 2
if resultado == 0:
print('O número é par')
else:
print('o número é impar') | 29.125 | 84 | 0.678112 | 42 | 233 | 3.761905 | 0.690476 | 0.101266 | 0.189873 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.218884 | 233 | 8 | 85 | 29.125 | 0.846154 | 0.356223 | 0 | 0 | 0 | 0 | 0.373333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 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 | 3 |
9a7d6a95dbe71105118575e0f896f1294a0f2578 | 2,804 | py | Python | sendgrid/helpers/mail/subscription_substitution_tag.py | ewh/sendgrid-python | b07bbfaeb9d43cca7f87a17829706af5e1297b3f | [
"MIT"
] | 1,268 | 2015-01-07T01:26:41.000Z | 2022-03-31T12:40:59.000Z | sendgrid/helpers/mail/subscription_substitution_tag.py | ewh/sendgrid-python | b07bbfaeb9d43cca7f87a17829706af5e1297b3f | [
"MIT"
] | 881 | 2015-01-08T23:14:57.000Z | 2022-03-30T15:10:21.000Z | sendgrid/helpers/mail/subscription_substitution_tag.py | ewh/sendgrid-python | b07bbfaeb9d43cca7f87a17829706af5e1297b3f | [
"MIT"
] | 761 | 2015-01-08T10:28:25.000Z | 2022-03-29T12:04:42.000Z | class SubscriptionSubstitutionTag(object):
"""The subscription substitution tag of an SubscriptionTracking."""
def __init__(self, subscription_substitution_tag=None):
"""Create a SubscriptionSubstitutionTag object
:param subscription_substitution_tag: A tag that will be replaced with
... | 47.525424 | 79 | 0.595934 | 295 | 2,804 | 5.538983 | 0.216949 | 0.165239 | 0.231334 | 0.113831 | 0.725214 | 0.640759 | 0.640759 | 0.529988 | 0.529988 | 0.529988 | 0 | 0 | 0.36127 | 2,804 | 58 | 80 | 48.344828 | 0.912339 | 0.665835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9a7f6f656677e9bb051ef3230d1c2d0435edd2e3 | 32 | py | Python | core/pythos/modules/web/__init__.py | pdinkins/cloud-chain | 5736757b77b3950322f0653cea7c7a2b1baa3585 | [
"MIT"
] | 4 | 2019-01-31T23:16:46.000Z | 2020-07-27T17:33:14.000Z | core/pythos/modules/web/__init__.py | pdinkins/cloud-chain | 5736757b77b3950322f0653cea7c7a2b1baa3585 | [
"MIT"
] | 1 | 2020-07-07T04:52:12.000Z | 2020-07-07T04:52:12.000Z | core/pythos/modules/web/__init__.py | pdinkins/cloud-chain | 5736757b77b3950322f0653cea7c7a2b1baa3585 | [
"MIT"
] | null | null | null | __all__ = ["scraper", "crawler"] | 32 | 32 | 0.65625 | 3 | 32 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
9a95bf1c2bd913de31e29dd0b0b34ec0d71127d0 | 199 | py | Python | grand/test_graph.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 31 | 2020-10-16T16:46:02.000Z | 2022-03-04T20:45:05.000Z | grand/test_graph.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 15 | 2020-10-15T16:28:49.000Z | 2022-02-10T16:41:32.000Z | grand/test_graph.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | null | null | null | import unittest
from . import Graph, NetworkXBackend
class TestGraph(unittest.TestCase):
def test_can_create(self):
Graph()
def test_can_use_nx_backend(self):
Graph().nx
| 15.307692 | 38 | 0.693467 | 25 | 199 | 5.28 | 0.64 | 0.106061 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221106 | 199 | 12 | 39 | 16.583333 | 0.851613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9abd0505ddb6d22c1b2b9da2b828492e254361c1 | 134 | py | Python | modules/oracle/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | 1 | 2020-05-29T04:27:50.000Z | 2020-05-29T04:27:50.000Z | modules/oracle/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | null | null | null | modules/oracle/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | null | null | null |
description = """
Adds Oracle database settings to your project.
For more information, visit:
http://cx-oracle.sourceforge.net/
"""
| 16.75 | 46 | 0.738806 | 17 | 134 | 5.823529 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 134 | 7 | 47 | 19.142857 | 0.853448 | 0 | 0 | 0 | 0 | 0 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9aca54257e8fbf4114affe3e18f895a2df994101 | 398 | py | Python | nc/management/commands/nc_constraints_sql.py | OpenDataPolicingNC/Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 25 | 2015-09-12T23:10:52.000Z | 2021-03-24T08:39:46.000Z | nc/management/commands/nc_constraints_sql.py | OpenDataPolicingNC/Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 159 | 2015-07-01T03:57:23.000Z | 2021-04-17T21:09:19.000Z | nc/management/commands/nc_constraints_sql.py | copelco/NC-Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 8 | 2015-10-02T16:56:40.000Z | 2020-10-18T01:16:29.000Z | from django.core.management.base import BaseCommand
from django.db import connections
from tsdata.sql import get_add_constraints_and_indexes
class Command(BaseCommand):
"""Inspect and print current NC database constraints and indexes"""
def handle(self, *args, **options):
cursor = connections['traff... | 30.615385 | 71 | 0.766332 | 51 | 398 | 5.784314 | 0.607843 | 0.142373 | 0.213559 | 0.135593 | 0.183051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148241 | 398 | 12 | 72 | 33.166667 | 0.870206 | 0.153266 | 0 | 0 | 0 | 0 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9ae618e5eb58d7bdc146daa958a3e642cf3a34ec | 329 | py | Python | antu/io/datasets/dataset.py | chrikoehn/antu | 806acae7275a5b4762557a3676e1600c41520b66 | [
"Apache-2.0"
] | 17 | 2018-12-28T09:39:12.000Z | 2021-09-21T11:56:00.000Z | antu/io/datasets/dataset.py | chrikoehn/antu | 806acae7275a5b4762557a3676e1600c41520b66 | [
"Apache-2.0"
] | 3 | 2019-01-21T06:14:16.000Z | 2020-05-25T13:18:09.000Z | antu/io/datasets/dataset.py | chrikoehn/antu | 806acae7275a5b4762557a3676e1600c41520b66 | [
"Apache-2.0"
] | 11 | 2018-12-31T09:06:03.000Z | 2021-06-18T07:00:53.000Z | from typing import Dict, List
from abc import ABCMeta, abstractmethod
from antu.io.vocabulary import Vocabulary
from antu.io.instance import Instance
class Dataset(metaclass=ABCMeta):
vocabulary_set: Vocabulary = {}
datasets: Dict[str, List[Instance]] = {}
@abstractmethod
def build_dataset():
... | 19.352941 | 44 | 0.726444 | 39 | 329 | 6.076923 | 0.538462 | 0.067511 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 329 | 16 | 45 | 20.5625 | 0.890977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0.1 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
9af00bab98ec1c1781d843ef2cad08e336225834 | 320 | py | Python | libft/regularizers/regularizer.py | kcosta42/Multilayer_Perceptron | 51e2f9e0532c6e1e9b826b12171903b780e0ba4f | [
"MIT"
] | 1 | 2020-09-26T10:40:45.000Z | 2020-09-26T10:40:45.000Z | libft/regularizers/regularizer.py | kcosta42/Multilayer_Perceptron | 51e2f9e0532c6e1e9b826b12171903b780e0ba4f | [
"MIT"
] | null | null | null | libft/regularizers/regularizer.py | kcosta42/Multilayer_Perceptron | 51e2f9e0532c6e1e9b826b12171903b780e0ba4f | [
"MIT"
] | null | null | null |
class Regularizer(object):
"""Regularizer base class."""
def __call__(self, x):
return self.call(x)
def call(self, x):
"""Invokes the `Regularizer` instance."""
return 0.0
def gradient(self, x):
"""Compute gradient for the `Regularizer` instance."""
return 0.0
| 22.857143 | 62 | 0.58125 | 38 | 320 | 4.789474 | 0.421053 | 0.082418 | 0.120879 | 0.131868 | 0.32967 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0.017316 | 0.278125 | 320 | 13 | 63 | 24.615385 | 0.770563 | 0.3375 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b129a507ff5685dda1a855b7fa1794d8046268ca | 92 | py | Python | opendssdirect3.7/opendssdirect/DSSEvents.py | jihoonog/co_sim_platform | f5a6dbd4e6774484614c0ab6f614ce86835c5341 | [
"MIT"
] | 5 | 2020-02-20T17:12:33.000Z | 2020-12-23T16:28:34.000Z | opendssdirect3.7/opendssdirect/DSSEvents.py | jihoonog/co_sim_platform | f5a6dbd4e6774484614c0ab6f614ce86835c5341 | [
"MIT"
] | 3 | 2020-07-14T01:20:17.000Z | 2020-11-12T18:15:09.000Z | opendssdirect3.7/opendssdirect/DSSEvents.py | jihoonog/co_sim_platform | f5a6dbd4e6774484614c0ab6f614ce86835c5341 | [
"MIT"
] | 5 | 2020-02-21T16:35:27.000Z | 2021-01-22T09:03:37.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
_columns = []
__all__ = []
| 13.142857 | 38 | 0.652174 | 10 | 92 | 5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.184783 | 92 | 6 | 39 | 15.333333 | 0.653333 | 0.228261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b13c6a03e10d10b27c98ceca3026e4206eae1d81 | 66 | py | Python | tests/plugins/test_plugin_2/__init__.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | tests/plugins/test_plugin_2/__init__.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | tests/plugins/test_plugin_2/__init__.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | from .test_plugin_2 import TestPlugin2
__all__ = ["TestPlugin2"]
| 16.5 | 38 | 0.787879 | 8 | 66 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.121212 | 66 | 3 | 39 | 22 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b13fd32022db76d46e770ea558ca03df4ac563da | 428 | py | Python | phasepy/sgt/__init__.py | tkeskita/phasepy | d5a5573859258857ab1570568ad171c3c9b86d82 | [
"MIT"
] | null | null | null | phasepy/sgt/__init__.py | tkeskita/phasepy | d5a5573859258857ab1570568ad171c3c9b86d82 | [
"MIT"
] | null | null | null | phasepy/sgt/__init__.py | tkeskita/phasepy | d5a5573859258857ab1570568ad171c3c9b86d82 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
from .path_sk import ten_beta0_sk
from .path_hk import ten_beta0_hk
from .reference_component import ten_beta0_reference
from .sgt_beta0 import sgt_mix_beta0
from .sgtpuros import ten_fit, sgt_pure
from .linear_spot import sgt_linear, sgt_spot
from .co... | 28.533333 | 64 | 0.852804 | 70 | 428 | 4.8 | 0.385714 | 0.107143 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013193 | 0.114486 | 428 | 14 | 65 | 30.571429 | 0.873351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b14fb8816e6807596d6f2b34843ccb5f1ef59b66 | 244 | py | Python | venv/lib/python2.7/site-packages/alembic/testing/__init__.py | jessekl/twiliochallenge | 2bba8bc2e0928880f1e2abe6b53b96dbc67ef34f | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/alembic/testing/__init__.py | jessekl/twiliochallenge | 2bba8bc2e0928880f1e2abe6b53b96dbc67ef34f | [
"MIT"
] | 309 | 2016-10-27T23:47:06.000Z | 2017-04-02T04:40:21.000Z | snowflakeEnv/lib/python2.7/site-packages/alembic/testing/__init__.py | brandonium21/snowflake | fe4aedc5632f5f10ca73d550ff164410a7a36ba1 | [
"BSD-2-Clause"
] | null | null | null | from .fixtures import TestBase
from .assertions import eq_, ne_, is_, assert_raises_message, \
eq_ignore_whitespace, assert_raises
from .util import provide_metadata
from alembic import util
from .config import requirements as requires
| 22.181818 | 63 | 0.811475 | 33 | 244 | 5.727273 | 0.636364 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 244 | 10 | 64 | 24.4 | 0.908654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b157a43de6721bccd0b9bb8de9118765cc74f439 | 1,317 | py | Python | dataxHWSp2021/HW1_BootcampReview/student/tests/q42.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 28 | 2020-06-15T23:53:36.000Z | 2022-03-19T09:27:02.000Z | dataxHWSp2021/HW1_BootcampReview/student/tests/q42.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 4 | 2020-06-24T22:20:31.000Z | 2022-02-28T01:37:36.000Z | dataxHWSp2021/HW1_BootcampReview/student/tests/q42.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 78 | 2020-06-19T09:41:01.000Z | 2022-02-05T00:13:29.000Z | test = { 'name': 'q42',
'points': 3,
'suites': [ { 'cases': [ { 'code': '>>> '
'print(np.round(model.coef_, '
'3))\n'
'[ 0.024 0.023 -0.073 0.001 '
... | 57.26087 | 78 | 0.200456 | 103 | 1,317 | 2.553398 | 0.582524 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.350348 | 0.672741 | 1,317 | 22 | 79 | 59.863636 | 0.259861 | 0 | 0 | 0 | 0 | 0 | 0.284738 | 0.020501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
b19875a4dbdb45c70792222d3b23b7ec5e2f5051 | 7,163 | py | Python | groupy/garray/garray.py | veya2ztn/mltool | 4ed151152845ebe3de128e1f53c478581c1492e4 | [
"IJG"
] | 1 | 2022-03-13T01:42:00.000Z | 2022-03-13T01:42:00.000Z | groupy/garray/garray.py | veya2ztn/mltool | 4ed151152845ebe3de128e1f53c478581c1492e4 | [
"IJG"
] | null | null | null | groupy/garray/garray.py | veya2ztn/mltool | 4ed151152845ebe3de128e1f53c478581c1492e4 | [
"IJG"
] | null | null | null |
import copy
import numpy as np
# TODO: add checks in constructor to make sure data argument is well formed (for the given parameterization).
# TODO: for example, for a finite group, when p=='int', we want data >= 0 and data <= order_of_G
class GArray(object):
"""
GArray is a wrapper of numpy.ndarray that ca... | 38.304813 | 118 | 0.644981 | 953 | 7,163 | 4.724029 | 0.256034 | 0.027988 | 0.011106 | 0.013327 | 0.181253 | 0.16215 | 0.147934 | 0.147934 | 0.147934 | 0.147934 | 0 | 0.003259 | 0.271674 | 7,163 | 187 | 119 | 38.304813 | 0.859689 | 0.460422 | 0 | 0.180723 | 0 | 0 | 0.076705 | 0 | 0 | 0 | 0 | 0.010695 | 0 | 1 | 0.216867 | false | 0 | 0.024096 | 0.084337 | 0.554217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b1a9c0064bcf194c390f1d4b5f97ee62b07f2f40 | 257 | py | Python | assessor_mark15.py | piyushsingariya/assessor-series | 263b5852b83689f25e03fb2efb174b1aa13c7cf2 | [
"MIT"
] | 1 | 2019-06-16T17:15:41.000Z | 2019-06-16T17:15:41.000Z | assessor_mark15.py | piyushsingariya/assessor-series | 263b5852b83689f25e03fb2efb174b1aa13c7cf2 | [
"MIT"
] | null | null | null | assessor_mark15.py | piyushsingariya/assessor-series | 263b5852b83689f25e03fb2efb174b1aa13c7cf2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''The Goal of this script is to place the data in a
python dictionary of unique results.'''
# To accomplish this parsing we need a XML file that can be
# parsed so do scan your localhost using this command
# nmap -oX test 127.0.0.1
| 36.714286 | 60 | 0.735409 | 49 | 257 | 3.857143 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0.190661 | 257 | 6 | 61 | 42.833333 | 0.879808 | 0.945525 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
b1aacbcdcf4666018dae748b59f77f6d78b792c5 | 218 | py | Python | Curso-em-video/Aula_13.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | Curso-em-video/Aula_13.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | Curso-em-video/Aula_13.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | #faça um algoritimo que leia o salario de um funcionario e mostre seu novo salario, com 15% de aumento
n = int(input('Qual seu salario atual?:'))
print('Seu salario de {} vai passar a ser{}'.format(n, n + (n * 0.15)))
| 54.5 | 102 | 0.692661 | 40 | 218 | 3.775 | 0.7 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.174312 | 218 | 3 | 103 | 72.666667 | 0.811111 | 0.463303 | 0 | 0 | 0 | 0 | 0.517241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
b1ae8e71792d8820effde727d5f095d079df78e6 | 1,232 | py | Python | restmore/forms.py | zbyte64/python-restmore | 86916009806b9390260b8445f5536fa6aa345862 | [
"MIT"
] | 1 | 2015-08-08T15:45:54.000Z | 2015-08-08T15:45:54.000Z | restmore/forms.py | zbyte64/python-restmore | 86916009806b9390260b8445f5536fa6aa345862 | [
"MIT"
] | null | null | null | restmore/forms.py | zbyte64/python-restmore | 86916009806b9390260b8445f5536fa6aa345862 | [
"MIT"
] | null | null | null | from django.utils.datastructures import MultiValueDict
class DjangoFormMixin(object):
'''
Django form helper
'''
form_class = None
def get_form_class(self):
return self.form_class
def make_form(self, **kwargs):
#TODO is this correct?
if 'data' not in kwargs:
... | 34.222222 | 106 | 0.657468 | 143 | 1,232 | 5.51049 | 0.447552 | 0.101523 | 0.030457 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01326 | 0.265422 | 1,232 | 35 | 107 | 35.2 | 0.857459 | 0.262987 | 0 | 0 | 0 | 0 | 0.020809 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
494c28b9cd1630e76fe7d815cff9a3de53dece26 | 623 | py | Python | myprorate/forms.py | Rodgersouko/pro-rate | 552c8e799390c73c2d720315667664f8d40f922e | [
"MIT"
] | 1 | 2021-02-25T20:48:27.000Z | 2021-02-25T20:48:27.000Z | myprorate/forms.py | Rodgersouko/pro-rate | 552c8e799390c73c2d720315667664f8d40f922e | [
"MIT"
] | null | null | null | myprorate/forms.py | Rodgersouko/pro-rate | 552c8e799390c73c2d720315667664f8d40f922e | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Post
from pyuploadcare.dj.forms import ImageField
class SignupForm(UserCreationForm):
email = forms.EmailField(
max_length=254, help_text='Required. Inform a vali... | 27.086957 | 76 | 0.693419 | 71 | 623 | 6.056338 | 0.577465 | 0.069767 | 0.07907 | 0.097674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00998 | 0.195827 | 623 | 22 | 77 | 28.318182 | 0.848303 | 0 | 0 | 0.125 | 0 | 0 | 0.170144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.3125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
49510a539e8947182d7caf812b6aff75ebc5ea6f | 217 | py | Python | src/abaqus/BasicGeometry/ModelDot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/BasicGeometry/ModelDot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/BasicGeometry/ModelDot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | class ModelDot:
"""The ModelDot object can be used to access an actual MeshNode, ReferencePoint, or ConstrainedSketchVertex
object.
Notes
-----
This object can be accessed by:
"""
pass
| 18.083333 | 111 | 0.654378 | 25 | 217 | 5.68 | 0.8 | 0.126761 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271889 | 217 | 11 | 112 | 19.727273 | 0.898734 | 0.728111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
495d48c6f2881b8b3ee0a086852eb19c4e3736a6 | 4,783 | py | Python | src/app/blog/tests/__init__.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | src/app/blog/tests/__init__.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | src/app/blog/tests/__init__.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | LONG_BLOG_POST = """
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget nibh ac purus euismod pharetra nec ac justo. Suspendisse fringilla tellus ipsum, quis vulputate leo eleifend pellentesque. Vivamus rhoncus augue justo, elementum commodo urna egestas in. Maecenas fermentum et orci sit amet egesta... | 318.866667 | 871 | 0.821451 | 700 | 4,783 | 5.61 | 0.252857 | 0.02139 | 0.008149 | 0.012732 | 0.077413 | 0.077413 | 0.077413 | 0.077413 | 0.077413 | 0.077413 | 0 | 0 | 0.147606 | 4,783 | 15 | 872 | 318.866667 | 0.963208 | 0 | 0 | 0 | 0 | 0.777778 | 0.994983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
496876b1ade92ac9cd27c356acabe11a45638bae | 14,152 | py | Python | kmip/tests/unit/core/messages/contents/test_protocol_version.py | ondrap/PyKMIP | c8ea17d8faf827e0f9d004972835128a1a71569f | [
"Apache-2.0"
] | 179 | 2015-03-20T06:08:59.000Z | 2022-03-14T02:24:38.000Z | kmip/tests/unit/core/messages/contents/test_protocol_version.py | imharshr/PyKMIP | 9403ff3d2aa83de4c786b8eedeb85d169fd4a594 | [
"Apache-2.0"
] | 600 | 2015-04-08T14:14:48.000Z | 2022-03-28T13:49:47.000Z | kmip/tests/unit/core/messages/contents/test_protocol_version.py | imharshr/PyKMIP | 9403ff3d2aa83de4c786b8eedeb85d169fd4a594 | [
"Apache-2.0"
] | 131 | 2015-03-30T12:51:49.000Z | 2022-03-23T04:34:34.000Z | # Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 33.456265 | 79 | 0.62712 | 1,667 | 14,152 | 5.192561 | 0.120576 | 0.11957 | 0.074861 | 0.043323 | 0.809381 | 0.794016 | 0.763286 | 0.689117 | 0.622689 | 0.588147 | 0 | 0.031578 | 0.286179 | 14,152 | 422 | 80 | 33.535545 | 0.825282 | 0.286037 | 0 | 0.4375 | 0 | 0.017857 | 0.084835 | 0.040583 | 0 | 0 | 0 | 0 | 0.28125 | 1 | 0.147321 | false | 0 | 0.017857 | 0 | 0.174107 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4971b6651270f637dce65c6c03dff53055811c2f | 192 | py | Python | src/gilbert/types.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 11 | 2019-02-11T05:11:24.000Z | 2021-03-03T15:48:24.000Z | src/gilbert/types.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 28 | 2019-05-07T20:00:10.000Z | 2020-12-11T21:28:53.000Z | src/gilbert/types.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 5 | 2019-05-06T20:17:27.000Z | 2019-08-05T01:50:02.000Z | from pathlib import Path
from typing import ByteString, Callable, Dict, Tuple, Union
LoaderResult = Tuple[Union[None, ByteString, str], Dict]
LoaderFunction = Callable[[Path], LoaderResult]
| 27.428571 | 59 | 0.78125 | 23 | 192 | 6.521739 | 0.608696 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 192 | 6 | 60 | 32 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
497448cff5124f30864ef3e85d0c9a51bae3d76c | 66 | py | Python | Parte 2/contagem-pares.py | ohniluap/python-exercises | 7a7af8eced2811791bc4dfebcfab84100b46224c | [
"MIT"
] | null | null | null | Parte 2/contagem-pares.py | ohniluap/python-exercises | 7a7af8eced2811791bc4dfebcfab84100b46224c | [
"MIT"
] | null | null | null | Parte 2/contagem-pares.py | ohniluap/python-exercises | 7a7af8eced2811791bc4dfebcfab84100b46224c | [
"MIT"
] | null | null | null | for contagem in range(2, 51, 2):
print(contagem, end=' ')
| 22 | 32 | 0.575758 | 10 | 66 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.257576 | 66 | 3 | 33 | 22 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
498feaf7fbcabe26d39ea999882345b3b1344028 | 1,685 | py | Python | app/tests/crud/conftest.py | qtdemo1/ibm-ops | 29f3d4ba406a1c39a007468977784d6c39f056bb | [
"Apache-2.0"
] | null | null | null | app/tests/crud/conftest.py | qtdemo1/ibm-ops | 29f3d4ba406a1c39a007468977784d6c39f056bb | [
"Apache-2.0"
] | null | null | null | app/tests/crud/conftest.py | qtdemo1/ibm-ops | 29f3d4ba406a1c39a007468977784d6c39f056bb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2020 IBM
# 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 t... | 28.559322 | 88 | 0.757864 | 240 | 1,685 | 5.216667 | 0.4375 | 0.047923 | 0.063898 | 0.050319 | 0.079872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006276 | 0.148961 | 1,685 | 58 | 89 | 29.051724 | 0.866806 | 0.342433 | 0 | 0.166667 | 0 | 0 | 0.004575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.066667 | 0.233333 | 0.133333 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
b8c939a7a81ffbd19ffd91a1eb3abd41f43e5071 | 164 | py | Python | api/config.py | jozo/keyless-coding-challenge | 902bd65970b7379161cd32cc442c49855d71a925 | [
"MIT"
] | null | null | null | api/config.py | jozo/keyless-coding-challenge | 902bd65970b7379161cd32cc442c49855d71a925 | [
"MIT"
] | null | null | null | api/config.py | jozo/keyless-coding-challenge | 902bd65970b7379161cd32cc442c49855d71a925 | [
"MIT"
] | null | null | null | import os
HOST = os.getenv("API_HOST", "0.0.0.0")
PORT = os.getenv("API_PORT", 8000)
MAX_CONTENT_SIZE = int(os.getenv("MAX_CONTENT_SIZE", 5 * 1024 * 1024)) # 5MB
| 27.333333 | 77 | 0.676829 | 30 | 164 | 3.5 | 0.5 | 0.228571 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 0.134146 | 164 | 5 | 78 | 32.8 | 0.612676 | 0.018293 | 0 | 0 | 0 | 0 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 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 | 3 |
b8f2dd661b1f526c1bdb1cc7c84b7de1914e1b42 | 171 | py | Python | cleaner.py | kendalled/PythonScripts | 9c2747fa27066e5f02c98e3cb7aca578e9e51ff1 | [
"MIT"
] | null | null | null | cleaner.py | kendalled/PythonScripts | 9c2747fa27066e5f02c98e3cb7aca578e9e51ff1 | [
"MIT"
] | null | null | null | cleaner.py | kendalled/PythonScripts | 9c2747fa27066e5f02c98e3cb7aca578e9e51ff1 | [
"MIT"
] | null | null | null | # Combine and Clean
import pandas as pd
temp_df = pd.read_csv('mergedARFINAL.csv')
#
temp_df = temp_df.drop_duplicates()
print(temp_df)
temp_df.to_csv('cleaned.csv')
| 13.153846 | 42 | 0.748538 | 29 | 171 | 4.137931 | 0.586207 | 0.25 | 0.166667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 171 | 12 | 43 | 14.25 | 0.805369 | 0.099415 | 0 | 0 | 0 | 0 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
771748b6f60086ab82d7bb7cc8bc7fad40e649fe | 1,592 | py | Python | project/races/migrations/0001_initial.py | joelsmith80/modern-django | bc9b0d0aa593f6f51b65a948bc916b8e8919f429 | [
"MIT"
] | null | null | null | project/races/migrations/0001_initial.py | joelsmith80/modern-django | bc9b0d0aa593f6f51b65a948bc916b8e8919f429 | [
"MIT"
] | null | null | null | project/races/migrations/0001_initial.py | joelsmith80/modern-django | bc9b0d0aa593f6f51b65a948bc916b8e8919f429 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-30 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Race',
fields=[
('id', models.AutoField(aut... | 39.8 | 114 | 0.567211 | 145 | 1,592 | 6.089655 | 0.517241 | 0.210646 | 0.16308 | 0.1812 | 0.289921 | 0.226501 | 0.11778 | 0 | 0 | 0 | 0 | 0.019538 | 0.292714 | 1,592 | 39 | 115 | 40.820513 | 0.764654 | 0.028266 | 0 | 0 | 1 | 0 | 0.101618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7729128d6428b51b8f1c2d237275b3f0cd09820c | 2,346 | py | Python | junos_get_bgp_config.py | ksator/junos-automation-with-NAPALM | aee4382b2fdeaad0186a8771c90bb0e14d7b563e | [
"MIT"
] | 15 | 2017-12-06T18:11:19.000Z | 2021-06-14T07:41:36.000Z | junos_get_bgp_config.py | ksator/junos-automation-with-NAPALM | aee4382b2fdeaad0186a8771c90bb0e14d7b563e | [
"MIT"
] | null | null | null | junos_get_bgp_config.py | ksator/junos-automation-with-NAPALM | aee4382b2fdeaad0186a8771c90bb0e14d7b563e | [
"MIT"
] | 9 | 2017-11-15T15:42:11.000Z | 2020-12-26T13:23:05.000Z | from napalm_base import get_network_driver
from pprint import pprint
junos_driver = get_network_driver('junos')
junos_device = {'username': 'pytraining', 'password': 'Poclab123', 'hostname': '172.30.179.95'}
print('-'*60)
with junos_driver(**junos_device) as junos:
pprint(junos.get_bgp_config())
print('-'*60)
... | 46 | 95 | 0.348252 | 196 | 2,346 | 3.954082 | 0.316327 | 0.030968 | 0.045161 | 0.054194 | 0.450323 | 0.450323 | 0.388387 | 0.291613 | 0.291613 | 0.291613 | 0 | 0.047107 | 0.484228 | 2,346 | 50 | 96 | 46.92 | 0.593388 | 0 | 0 | 0.222222 | 0 | 0 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.222222 | null | null | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
773126afd5a7f5b2653dead9073ac6d26663a287 | 510 | py | Python | Contents/Libraries/Shared/plex_activity/sources/base.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/plex_activity/sources/base.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/plex_activity/sources/base.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 191 | 2015-01-02T18:27:22.000Z | 2022-03-29T10:49:48.000Z | from pyemitter import Emitter
from threading import Thread
import logging
log = logging.getLogger(__name__)
class Source(Emitter):
name = None
def __init__(self):
self.thread = Thread(target=self._run_wrapper)
def start(self):
self.thread.start()
def run(self):
pass
de... | 20.4 | 99 | 0.631373 | 65 | 510 | 4.753846 | 0.523077 | 0.05178 | 0.090615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270588 | 510 | 24 | 100 | 21.25 | 0.830645 | 0 | 0 | 0 | 0 | 0 | 0.086275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
91fbba87fe3032fd0d0094806eeb0751744dfe91 | 2,792 | py | Python | metrics.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | metrics.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | metrics.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | from typing import Dict, TypeVar, Generic, Iterable, Sized
import torch
from __types import MetricFuncs
# NOTE: the calling function is expected to handle whether the gradient is tracked for tensors passed in
T = TypeVar("T")
# TODO: if we need to add a bind step, make sure it's a consistent interface across al... | 34.469136 | 113 | 0.69341 | 392 | 2,792 | 4.790816 | 0.331633 | 0.028754 | 0.030351 | 0.036741 | 0.288605 | 0.288605 | 0.288605 | 0.288605 | 0.288605 | 0.217252 | 0 | 0.005391 | 0.202722 | 2,792 | 80 | 114 | 34.9 | 0.838275 | 0.222421 | 0 | 0.204545 | 0 | 0 | 0.000463 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.272727 | false | 0 | 0.068182 | 0.068182 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
620cee80ff60a8aa6a6f8aaeeeb78e3d3a4abe2e | 2,842 | py | Python | test/bmi/grid_uniform_rectilinear.py | franklinzhanggis/model-interoperable-engine | 40b724813bec9af16f4ca95e36f8ff16be787315 | [
"MIT"
] | 1 | 2016-10-07T07:13:39.000Z | 2016-10-07T07:13:39.000Z | test/bmi/grid_uniform_rectilinear.py | franklinzhanggis/model-interoperable-engine | 40b724813bec9af16f4ca95e36f8ff16be787315 | [
"MIT"
] | 1 | 2018-11-21T14:13:07.000Z | 2018-11-21T14:13:12.000Z | test/bmi/grid_uniform_rectilinear.py | franklinzhanggis/model-interoperable-engine | 40b724813bec9af16f4ca95e36f8ff16be787315 | [
"MIT"
] | 4 | 2018-11-07T15:09:01.000Z | 2021-05-12T09:29:27.000Z | #! /usr/bin/env python
"""Interface that describes uniform rectilinear grids."""
from .grid import BmiGrid
class BmiGridUniformRectilinear(BmiGrid):
"""Methods that describe a uniform rectilinear grid.
In a 2D uniform grid, every grid cell (or element) is a rectangle and all
cells have the same dimensi... | 26.560748 | 79 | 0.57354 | 356 | 2,842 | 4.47191 | 0.36236 | 0.045226 | 0.022613 | 0.024497 | 0.324121 | 0.313442 | 0.284548 | 0.284548 | 0.284548 | 0.284548 | 0 | 0.002633 | 0.331809 | 2,842 | 106 | 80 | 26.811321 | 0.835703 | 0.729064 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
62145eb79ea6af981871c4f2dcb1a0cee733840e | 502 | py | Python | watpi/apps/camera/urls.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 1 | 2021-01-02T23:48:19.000Z | 2021-01-02T23:48:19.000Z | watpi/apps/camera/urls.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 47 | 2017-10-07T00:56:04.000Z | 2017-12-10T11:03:58.000Z | watpi/apps/camera/urls.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 2 | 2017-10-09T03:56:02.000Z | 2017-10-16T01:24:14.000Z | # TODO:
# # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
# from django.conf.urls import include, url
# from . import views
# urlpatterns = [
# url(r'^$', views.index, name='index'),
# url(r'^take_photo/$', views.snap_photo, name='take_photo'),
# url(r'^take_lg_photo/$', views.snap_lg_ph... | 33.466667 | 76 | 0.657371 | 70 | 502 | 4.414286 | 0.4 | 0.064725 | 0.07767 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.145418 | 502 | 14 | 77 | 35.857143 | 0.713287 | 0.942231 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.071429 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
621fb37e91d5fe8a56ae0248dc075fee6ca08773 | 194 | py | Python | data_collection/gazette/spiders/sc_paulo_lopes.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_paulo_lopes.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_paulo_lopes.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScPauloLopesSpider(FecamGazetteSpider):
name = "sc_paulo_lopes"
FECAM_QUERY = "cod_entidade:193"
TERRITORY_ID = "4212304"
| 24.25 | 51 | 0.773196 | 21 | 194 | 6.904762 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.149485 | 194 | 7 | 52 | 27.714286 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.190722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
62233873715ffdc3ac565aa2dee749e3942a3764 | 253 | py | Python | molecule/default/tests/test_default.py | bihealth/ansible-role-irods-server-sodar-rules | 458fe5a24a7c43a6995b296ba59768ee105528ee | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | bihealth/ansible-role-irods-server-sodar-rules | 458fe5a24a7c43a6995b296ba59768ee105528ee | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | bihealth/ansible-role-irods-server-sodar-rules | 458fe5a24a7c43a6995b296ba59768ee105528ee | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_conf_file(host):
assert host.file("/etc/irods/sodar.re").exists
| 23 | 63 | 0.782609 | 35 | 253 | 5.428571 | 0.685714 | 0.147368 | 0.221053 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094862 | 253 | 10 | 64 | 25.3 | 0.829694 | 0 | 0 | 0 | 0 | 0 | 0.177866 | 0.090909 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
622ed6053858ae0795a77503e7989100e109afa4 | 294 | py | Python | src/yellowdog_client/model/task_summary.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/task_summary.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/task_summary.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime
from typing import Dict, Optional
from .task_status import TaskStatus
@dataclass
class TaskSummary:
statusCounts: Optional[Dict[TaskStatus, int]] = None
taskCount: int = 0
lastUpdatedTime: Optional[datetime] = None
| 22.615385 | 56 | 0.778912 | 34 | 294 | 6.705882 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.163265 | 294 | 12 | 57 | 24.5 | 0.922764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
623bd136bb00632f7db92c2d9f9c70704786c289 | 178 | py | Python | conv_gp/utils/misc.py | Ninalgad/DeepCGP | 9752fed3d37ddb500f8ea2be2781a01a5773ba24 | [
"MIT"
] | 66 | 2018-10-06T08:27:17.000Z | 2022-01-10T14:27:04.000Z | conv_gp/utils/misc.py | Ninalgad/DeepCGP | 9752fed3d37ddb500f8ea2be2781a01a5773ba24 | [
"MIT"
] | 4 | 2018-11-01T07:45:40.000Z | 2019-09-04T13:40:29.000Z | conv_gp/utils/misc.py | Ninalgad/DeepCGP | 9752fed3d37ddb500f8ea2be2781a01a5773ba24 | [
"MIT"
] | 18 | 2018-10-09T23:34:07.000Z | 2021-12-01T16:47:20.000Z | from gpflow.actions import Action
class RunOpAction(Action):
def __init__(self, op):
self.op = op
def run(self, context):
context.session.run(self.op)
| 17.8 | 36 | 0.651685 | 24 | 178 | 4.666667 | 0.583333 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241573 | 178 | 9 | 37 | 19.777778 | 0.82963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
62441148c4a93d86c28b517f3ac323ead188c08a | 335 | py | Python | compiled/construct/nested_type_param.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 4 | 2017-04-08T12:55:11.000Z | 2020-12-05T21:09:31.000Z | compiled/construct/nested_type_param.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 7 | 2018-04-23T01:30:33.000Z | 2020-10-30T23:56:14.000Z | compiled/construct/nested_type_param.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 6 | 2017-04-08T11:41:14.000Z | 2020-10-30T22:47:31.000Z | from construct import *
from construct.lib import *
nested_type_param__nested__my_type = Struct(
'body' / FixedSized(this.my_len, GreedyString(encoding='ASCII')),
)
nested_type_param__nested = Struct(
)
nested_type_param = Struct(
'main_seq' / LazyBound(lambda: nested_type_param__nested__my_type),
)
_schema = nes... | 20.9375 | 68 | 0.791045 | 45 | 335 | 5.333333 | 0.466667 | 0.208333 | 0.3125 | 0.2625 | 0.225 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110448 | 335 | 15 | 69 | 22.333333 | 0.805369 | 0 | 0 | 0 | 0 | 0 | 0.050746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 3 |
62546e0fc05a2398395ffb1f113c435ba4b291d2 | 285 | py | Python | TypeConversion.py | ejrach/exercises-mosh | baaa02dff58652a9910d654be9bdd3e76dece9b7 | [
"MIT"
] | null | null | null | TypeConversion.py | ejrach/exercises-mosh | baaa02dff58652a9910d654be9bdd3e76dece9b7 | [
"MIT"
] | null | null | null | TypeConversion.py | ejrach/exercises-mosh | baaa02dff58652a9910d654be9bdd3e76dece9b7 | [
"MIT"
] | null | null | null | birth_year = input('Birth year: ')
print(type(birth_year))
age = 2019 - int(birth_year)
print(type(age))
print(age)
#exercise
weight_in_lbs = input('What is your weight (in pounds)? ')
weight_in_kg = float(weight_in_lbs) * 0.454
print('Your weight is (in kg): ' + str(weight_in_kg))
| 23.75 | 58 | 0.712281 | 49 | 285 | 3.918367 | 0.428571 | 0.208333 | 0.145833 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032389 | 0.133333 | 285 | 11 | 59 | 25.909091 | 0.744939 | 0.02807 | 0 | 0 | 0 | 0 | 0.250909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
625c30656b029d8a6b20b6bce1223ad9d3edb569 | 367 | gyp | Python | binding.gyp | GusFors/NodeTabletInputLinux | 8dc5abd4ce1733e973199cd797376c86e9e84562 | [
"MIT"
] | null | null | null | binding.gyp | GusFors/NodeTabletInputLinux | 8dc5abd4ce1733e973199cd797376c86e9e84562 | [
"MIT"
] | null | null | null | binding.gyp | GusFors/NodeTabletInputLinux | 8dc5abd4ce1733e973199cd797376c86e9e84562 | [
"MIT"
] | null | null | null | {
'targets': [
{
'target_name': 'pointer',
'sources': ['pointer.cc'],
'include_dirs': ['<!(node -e \'require("nan")\')'],
'link_settings': {
'libraries': [
'-lX11',
]
},
'cflags': [
... | 20.388889 | 63 | 0.27248 | 18 | 367 | 5.388889 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.547684 | 367 | 17 | 64 | 21.588235 | 0.572289 | 0 | 0 | 0 | 0 | 0 | 0.280654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 3 |
626d2f70df15b358195f8d56bae921feb273db53 | 382 | py | Python | Automata/Finite_State_Machines/exceptions.py | steph-en-m/datastructures_-_algorithms | b399ff3a93ab6e328861cc33636cbf925dfc49f6 | [
"MIT"
] | 1 | 2019-09-19T12:47:09.000Z | 2019-09-19T12:47:09.000Z | Automata/Finite_State_Machines/exceptions.py | steph-en-m/datastructures_n_algorithms | b399ff3a93ab6e328861cc33636cbf925dfc49f6 | [
"MIT"
] | null | null | null | Automata/Finite_State_Machines/exceptions.py | steph-en-m/datastructures_n_algorithms | b399ff3a93ab6e328861cc33636cbf925dfc49f6 | [
"MIT"
] | null | null | null | # Author: Stephen Mugisha
# FSM exceptions
class InitializationError(Exception):
"""
State Machine InitializationError
exception raised.
"""
def __init__(self, message, payload=None):
self.message = message
self.payload = payload #more exception args
... | 23.875 | 55 | 0.60733 | 35 | 382 | 6.4 | 0.6 | 0.147321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314136 | 382 | 15 | 56 | 25.466667 | 0.854962 | 0.287958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6289c1c69a01766a09536741e0832a910b3cd658 | 107 | py | Python | kontranto_igra/apps.py | zd-mioc/Kontranto | 928f8e6ca1c8c136878d0dd036321053ab461049 | [
"MIT"
] | 1 | 2020-07-19T11:11:08.000Z | 2020-07-19T11:11:08.000Z | kontranto_igra/apps.py | zd-mioc/Kontranto | 928f8e6ca1c8c136878d0dd036321053ab461049 | [
"MIT"
] | null | null | null | kontranto_igra/apps.py | zd-mioc/Kontranto | 928f8e6ca1c8c136878d0dd036321053ab461049 | [
"MIT"
] | 1 | 2021-03-01T08:39:41.000Z | 2021-03-01T08:39:41.000Z | from django.apps import AppConfig
class KontrantoIgraConfig(AppConfig):
name = 'kontranto_igra'
| 17.833333 | 38 | 0.747664 | 11 | 107 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 107 | 5 | 39 | 21.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 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 | 0 | 0 | 0 | 3 |
628ca0307b5476143bb31ac23a100ab0bce274c2 | 12,746 | py | Python | tests/test_schemas.py | shokakucarrier/atomic-reactor | 3ad81a5532cde317d0fddd4578f27438e88ee637 | [
"BSD-3-Clause"
] | null | null | null | tests/test_schemas.py | shokakucarrier/atomic-reactor | 3ad81a5532cde317d0fddd4578f27438e88ee637 | [
"BSD-3-Clause"
] | 16 | 2021-12-07T09:12:31.000Z | 2022-03-30T07:24:04.000Z | tests/test_schemas.py | shokakucarrier/atomic-reactor | 3ad81a5532cde317d0fddd4578f27438e88ee637 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2022 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
import pytest
from atomic_reactor.util import validate_with_schema
from osbs.exceptions import OsbsValidationException
SOURCE_CONTAINERS_U... | 40.852564 | 194 | 0.671348 | 1,362 | 12,746 | 6.003671 | 0.140235 | 0.046472 | 0.061636 | 0.057234 | 0.843586 | 0.795646 | 0.719212 | 0.652807 | 0.5842 | 0.556194 | 0 | 0.061808 | 0.192688 | 12,746 | 311 | 195 | 40.983923 | 0.732847 | 0.029107 | 0 | 0.473118 | 0 | 0.050179 | 0.543054 | 0.268449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003584 | false | 0 | 0.010753 | 0 | 0.014337 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6291a969a113e9653d1f08f4a3366384c68bfb24 | 772 | py | Python | utils/base.py | Aashishpanchal/cpm | 56db23e28f7efa303b47a87b9b2094c2647470e9 | [
"MIT"
] | 5 | 2022-01-05T12:19:50.000Z | 2022-02-03T14:58:07.000Z | utils/base.py | Aashishpanchal/cpm | 56db23e28f7efa303b47a87b9b2094c2647470e9 | [
"MIT"
] | null | null | null | utils/base.py | Aashishpanchal/cpm | 56db23e28f7efa303b47a87b9b2094c2647470e9 | [
"MIT"
] | 1 | 2022-02-03T14:57:23.000Z | 2022-02-03T14:57:23.000Z | from cpm.core.color import colorize
import time
class ExecutionTime(object):
def __init__(self):
self.start_time = None
self.end_time = None
self.execution_time = None
def start(self):
self.start_time = time.time()
def end(self):
self.end_time = time.t... | 29.692308 | 86 | 0.610104 | 97 | 772 | 4.639175 | 0.309278 | 0.071111 | 0.086667 | 0.075556 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.008834 | 0.266839 | 772 | 25 | 87 | 30.88 | 0.786219 | 0 | 0 | 0 | 0 | 0 | 0.064257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.105263 | 0.105263 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.