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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88fbfcd58c0fce981e3b3a319912bd08eceec6dd | 150 | py | Python | python/_PYTHONSTARTUP.py | mfarrugi/.dots | e8abf8eeb285187c7b9d3d6064fc9cbfe3eadbdd | [
"MIT"
] | 1 | 2018-09-17T15:34:14.000Z | 2018-09-17T15:34:14.000Z | python/_PYTHONSTARTUP.py | mfarrugi/.dots | e8abf8eeb285187c7b9d3d6064fc9cbfe3eadbdd | [
"MIT"
] | null | null | null | python/_PYTHONSTARTUP.py | mfarrugi/.dots | e8abf8eeb285187c7b9d3d6064fc9cbfe3eadbdd | [
"MIT"
] | 1 | 2018-11-19T10:56:47.000Z | 2018-11-19T10:56:47.000Z | import subprocess
def shell(*args):
return (subprocess.check_output(args)
.decode('ascii')
.strip()
.split('\n'))
| 18.75 | 42 | 0.546667 | 15 | 150 | 5.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 150 | 7 | 43 | 21.428571 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
001108a70d1432d86e35906c243dde7c11c0bd34 | 91 | py | Python | server/dockyard/service/interface/manager/__init__.py | tor4z/Galileo-dockyard | c7f65c1466a1450315935ad03a5a504e7bdb1660 | [
"MIT"
] | null | null | null | server/dockyard/service/interface/manager/__init__.py | tor4z/Galileo-dockyard | c7f65c1466a1450315935ad03a5a504e7bdb1660 | [
"MIT"
] | null | null | null | server/dockyard/service/interface/manager/__init__.py | tor4z/Galileo-dockyard | c7f65c1466a1450315935ad03a5a504e7bdb1660 | [
"MIT"
] | null | null | null | from dockyard.var import GLOBAL
routes = []
def init():
GLOBAL.routes.extend(routes) | 13 | 32 | 0.703297 | 12 | 91 | 5.333333 | 0.75 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 91 | 7 | 32 | 13 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
00148430ef8d0c59b2fb43f8963ed49b5ead0bac | 28 | py | Python | junn/common/launcher/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/common/launcher/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/common/launcher/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | """JUNN launcher helper."""
| 14 | 27 | 0.642857 | 3 | 28 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.72 | 0.75 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0022bf34c7e00c6b570a3a68125178f9abc9ea22 | 38 | py | Python | bot/settings.py | RunningMSN/interview-bot | 346ea7ad5241a39fbafba7191d395b627abf0d96 | [
"MIT"
] | null | null | null | bot/settings.py | RunningMSN/interview-bot | 346ea7ad5241a39fbafba7191d395b627abf0d96 | [
"MIT"
] | null | null | null | bot/settings.py | RunningMSN/interview-bot | 346ea7ad5241a39fbafba7191d395b627abf0d96 | [
"MIT"
] | null | null | null | # Discord API Bot Token
bot_token = "" | 19 | 23 | 0.710526 | 6 | 38 | 4.333333 | 0.666667 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 2 | 24 | 19 | 0.83871 | 0.552632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
00414f14df45dff8bc1a5702510b6aefae4aef9e | 247 | gyp | Python | binding.gyp | inception-soa/inception.streams.av | ef94fe8a8da50d26b1ae243cea316e09fc774c0f | [
"Apache-2.0"
] | null | null | null | binding.gyp | inception-soa/inception.streams.av | ef94fe8a8da50d26b1ae243cea316e09fc774c0f | [
"Apache-2.0"
] | null | null | null | binding.gyp | inception-soa/inception.streams.av | ef94fe8a8da50d26b1ae243cea316e09fc774c0f | [
"Apache-2.0"
] | null | null | null | {
"targets": [
{
"target_name": "inception.streams.av",
"sources": ["src/inception.streams.av.c"],
"include_dirs": [
"<!(node -e \"require('nan')\")"
]
}
],
}
| 20.583333 | 54 | 0.37247 | 18 | 247 | 5 | 0.833333 | 0.355556 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.425101 | 247 | 11 | 55 | 22.454545 | 0.633803 | 0 | 0 | 0 | 0 | 0 | 0.40081 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc3757ecabe659b144e7a17a778f73836e2d3b58 | 1,091 | py | Python | clients/python/test/test_actions_api.py | adipolak/lakeFS | 798e7b7d42f20dba2261c7ecbdc56a5c9131a28c | [
"Apache-2.0"
] | 1 | 2022-02-02T08:52:15.000Z | 2022-02-02T08:52:15.000Z | clients/python/test/test_actions_api.py | adipolak/lakeFS | 798e7b7d42f20dba2261c7ecbdc56a5c9131a28c | [
"Apache-2.0"
] | null | null | null | clients/python/test/test_actions_api.py | adipolak/lakeFS | 798e7b7d42f20dba2261c7ecbdc56a5c9131a28c | [
"Apache-2.0"
] | null | null | null | """
lakeFS API
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: services@treeverse.io
Generated by: https://openapi-generator.tech
"""
import unittest
import lakefs_client
from lakefs_client.api.actions_api import ActionsApi # noqa: E501
class TestActionsApi(... | 18.810345 | 66 | 0.60495 | 138 | 1,091 | 4.557971 | 0.376812 | 0.08903 | 0.069952 | 0.09539 | 0.267091 | 0.139905 | 0 | 0 | 0 | 0 | 0 | 0.031662 | 0.305225 | 1,091 | 57 | 67 | 19.140351 | 0.798153 | 0.408799 | 0 | 0.277778 | 1 | 0 | 0.015296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.277778 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
cc57a043c5cd3ac55ad095151ce826024e589aa2 | 117 | py | Python | Baekjoon/Python/10870.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | 2 | 2020-05-23T01:55:38.000Z | 2020-07-07T15:59:00.000Z | Baekjoon/Python/10870.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | Baekjoon/Python/10870.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | def fibonacci(n):
if n < 2: return n
return fibonacci(n - 1) + fibonacci(n - 2)
print(fibonacci(int(input())))
| 19.5 | 44 | 0.632479 | 19 | 117 | 3.894737 | 0.526316 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.196581 | 117 | 5 | 45 | 23.4 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc81fa54f8b7f16ec1404f835b50c10ce1bc54d8 | 244 | py | Python | rosen98_gasabs.py | DaveOri/pyGasAbs | 966eae26d0d356f33bb8964c912d63e2fffe2345 | [
"MIT"
] | null | null | null | rosen98_gasabs.py | DaveOri/pyGasAbs | 966eae26d0d356f33bb8964c912d63e2fffe2345 | [
"MIT"
] | null | null | null | rosen98_gasabs.py | DaveOri/pyGasAbs | 966eae26d0d356f33bb8964c912d63e2fffe2345 | [
"MIT"
] | null | null | null | import numpy as np
from rosen98_gasabs import rosen98_gasabs as r98
# rosen98_gasabs(f[GHz], absolute_humidity[kg/m3], pressure[Pa])
r98(94.0,300,0.001,100000.0)
r98(94.0,300,0.01,100000.0)
# OUT = [0(always), absAir[Np/km], absH2O[Np/km]]
| 22.181818 | 64 | 0.721311 | 47 | 244 | 3.659574 | 0.574468 | 0.226744 | 0.069767 | 0.104651 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220183 | 0.106557 | 244 | 10 | 65 | 24.4 | 0.568807 | 0.45082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aea0294ddb7fae3c160bdf92312595a51649a14c | 459 | py | Python | RESTful_Face_Web/expiring_token/models.py | luzhoutao/face | ae5910f57ae86412e8a56adbefe4f260dde216f0 | [
"MIT"
] | null | null | null | RESTful_Face_Web/expiring_token/models.py | luzhoutao/face | ae5910f57ae86412e8a56adbefe4f260dde216f0 | [
"MIT"
] | null | null | null | RESTful_Face_Web/expiring_token/models.py | luzhoutao/face | ae5910f57ae86412e8a56adbefe4f260dde216f0 | [
"MIT"
] | null | null | null | from django.db import models
from rest_framework.authtoken.models import Token
from django.utils import timezone
# Create your models here.
class ExpiringToken(Token):
expired_time = models.DateTimeField(null=True)
def expired(self):
"""Return boolean indicating token expiration."""
return ti... | 28.6875 | 69 | 0.747277 | 57 | 459 | 5.912281 | 0.526316 | 0.130564 | 0.136499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167756 | 459 | 15 | 70 | 30.6 | 0.882199 | 0.150327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
aee476b8eb46b564e8a91fec9ca52b7246c45b54 | 178 | py | Python | src/blogapp/forms.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | src/blogapp/forms.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | src/blogapp/forms.py | Rutujakenjale/Rest-Api-Django | 4deacc199fef6b65b2020dd2e5dfbc45351dd804 | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
from .models import Article
class ArticleForm(forms.ModelForm):
class Meta:
model=Article
fields=['Title','Author','published_date','description'] | 25.428571 | 58 | 0.769663 | 22 | 178 | 6.181818 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 178 | 7 | 58 | 25.428571 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4e2c6c6866881be94ab35cafe00f6917fa9fd5e4 | 1,745 | py | Python | app.py | AdrianoZapata/sistema_login | a311d5e283ba917e5d26d63e001befdccf1e60e3 | [
"MIT"
] | null | null | null | app.py | AdrianoZapata/sistema_login | a311d5e283ba917e5d26d63e001befdccf1e60e3 | [
"MIT"
] | null | null | null | app.py | AdrianoZapata/sistema_login | a311d5e283ba917e5d26d63e001befdccf1e60e3 | [
"MIT"
] | null | null | null | from bottle import Bottle, route, run
from bottle import request, template
from bottle import static_file, get
from bottle import error
'''
@route('/')
@route('/user/<nome>')
def index(nome='Unknown'):
return '<center><h1>Look how awesome you are</h1>' + nome + '</h1></center>'
@route('/artigo/<id>')
def a... | 29.083333 | 91 | 0.661318 | 230 | 1,745 | 4.93913 | 0.378261 | 0.044014 | 0.056338 | 0.084507 | 0.242958 | 0.184859 | 0.184859 | 0.147887 | 0.147887 | 0 | 0 | 0.013396 | 0.144413 | 1,745 | 60 | 92 | 29.083333 | 0.747488 | 0.025215 | 0 | 0.083333 | 0 | 0 | 0.207803 | 0.092357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.138889 | 0.111111 | 0.166667 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
9d6d04973203ded39acca742d62539be1f82545d | 419 | py | Python | DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-stack-class.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-stack-class.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-stack-class.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Stack(object):
def __init__(self):
self.stack = []
def push(self, value):
self.stack.append(value)
def pop(self):
return self.stack.pop()
def is_empty(self):
return self.stack == []
def size(self):
return len(self.stack)
# Example
s ... | 17.458333 | 32 | 0.536993 | 62 | 419 | 3.548387 | 0.33871 | 0.204545 | 0.109091 | 0.172727 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027119 | 0.295943 | 419 | 23 | 33 | 18.217391 | 0.718644 | 0.057279 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.166667 | 0.5 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
9da345adf94022cdb82528b95c856892806c16e8 | 216 | py | Python | workflow/apps.py | thomasbtf/snakesite | fba1cd3faf717d10ffc286f33f88f4b3398e72c3 | [
"MIT"
] | 1 | 2021-09-30T09:45:26.000Z | 2021-09-30T09:45:26.000Z | workflow/apps.py | thomasbtf/snakesite | fba1cd3faf717d10ffc286f33f88f4b3398e72c3 | [
"MIT"
] | 1 | 2021-05-22T16:24:06.000Z | 2021-05-22T16:24:06.000Z | workflow/apps.py | thomasbtf/snakesite | fba1cd3faf717d10ffc286f33f88f4b3398e72c3 | [
"MIT"
] | 1 | 2021-09-30T09:46:24.000Z | 2021-09-30T09:46:24.000Z | from django.apps import AppConfig
class WorkflowConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "workflow"
def ready(self):
import workflow.signals # noqa: F401
| 21.6 | 56 | 0.712963 | 25 | 216 | 6.08 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.199074 | 216 | 9 | 57 | 24 | 0.861272 | 0.046296 | 0 | 0 | 0 | 0 | 0.181373 | 0.142157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9dcaa374cf582b24a3cb494d790da3cb680a512a | 10 | py | Python | templates/FLASK/blog.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | 1 | 2021-11-26T19:09:09.000Z | 2021-11-26T19:09:09.000Z | templates/FLASK/blog.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | null | null | null | templates/FLASK/blog.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | null | null | null | # blog.py
| 5 | 9 | 0.6 | 2 | 10 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 10 | 1 | 10 | 10 | 0.75 | 0.7 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9dfd3dc462a8d16c5a8df64b569ebc84f97bb187 | 96 | py | Python | spectrocrunch/materials/__init__.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | 3 | 2018-04-16T15:51:36.000Z | 2019-12-16T11:21:05.000Z | spectrocrunch/materials/__init__.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | spectrocrunch/materials/__init__.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Compounds and mixtures with calculation of physical properties.
"""
| 19.2 | 66 | 0.677083 | 11 | 96 | 5.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.15625 | 96 | 4 | 67 | 24 | 0.790123 | 0.895833 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3b053b0fd161bb7de5cd0088a21e666d954af89a | 5,105 | py | Python | tests/testing_output_files/src/dense/dense.py | RS-Coop/Correll_Lab | 7c9ea0ff0ce3f54848a0eb112ef29b28d8e735e5 | [
"MIT"
] | 4 | 2021-05-31T23:49:39.000Z | 2022-03-16T12:27:08.000Z | tests/testing_output_files/src/dense/dense.py | RS-Coop/Correll_Lab | 7c9ea0ff0ce3f54848a0eb112ef29b28d8e735e5 | [
"MIT"
] | 1 | 2021-10-02T19:51:01.000Z | 2022-01-20T21:45:37.000Z | tests/testing_output_files/src/dense/dense.py | correlllab/nn4mc_py | 24fa3f9187f7d89692041b640c48f91c2a77b644 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | 30.568862 | 118 | 0.727326 | 765 | 5,105 | 4.419608 | 0.20915 | 0.055309 | 0.023662 | 0.040225 | 0.178054 | 0.127181 | 0.127181 | 0.10352 | 0.077492 | 0.077492 | 0 | 0.013314 | 0.176102 | 5,105 | 166 | 119 | 30.753012 | 0.790537 | 0.090695 | 0 | 0.111111 | 1 | 0 | 0.038079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.051282 | 0.153846 | 0.598291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d178d8994592fbff04d26c8aac479115dbdd9296 | 208 | py | Python | dataset/__init__.py | ThuYShao/pytorch-worker | 1d5a576e0ad887d981c0aa06bdae6a23637b870b | [
"MIT"
] | null | null | null | dataset/__init__.py | ThuYShao/pytorch-worker | 1d5a576e0ad887d981c0aa06bdae6a23637b870b | [
"MIT"
] | null | null | null | dataset/__init__.py | ThuYShao/pytorch-worker | 1d5a576e0ad887d981c0aa06bdae6a23637b870b | [
"MIT"
] | null | null | null | from .nlp.JsonFromFiles import JsonFromFilesDataset
from .others.FilenameOnly import FilenameOnlyDataset
dataset_list = {
"JsonFromFiles": JsonFromFilesDataset,
"FilenameOnly": FilenameOnlyDataset
}
| 26 | 52 | 0.8125 | 16 | 208 | 10.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120192 | 208 | 7 | 53 | 29.714286 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0.120192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d194108162246aeac07f9565129b82b2c8538085 | 146 | py | Python | katas/kyu_7/the_office_1_outed.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_7/the_office_1_outed.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_7/the_office_1_outed.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def outed(meet, boss):
result = (sum(meet.values()) + meet[boss]) / len(meet)
return 'Nice Work Champ!' if result > 5 else 'Get Out Now!'
| 36.5 | 63 | 0.623288 | 23 | 146 | 3.956522 | 0.782609 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.205479 | 146 | 3 | 64 | 48.666667 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d19feeba1b4c0cdd0df98a55d0e8941b0fa03414 | 80 | py | Python | abc/ABC139/python/b.py | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC139/python/b.py | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC139/python/b.py | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | import math
A, B = map(int, input().split())
print(math.ceil(((B-A)/(A-1))+1)) | 20 | 33 | 0.575 | 16 | 80 | 2.875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.1125 | 80 | 4 | 33 | 20 | 0.619718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d1c156eea0e6d2003239e32460c9e7e914159139 | 199 | py | Python | app/api/v1/user.py | DanylZhang/Netflix-Genre | d68d5b01d8ba25e776edb5fca4f4295a7d3a55a1 | [
"MIT"
] | null | null | null | app/api/v1/user.py | DanylZhang/Netflix-Genre | d68d5b01d8ba25e776edb5fca4f4295a7d3a55a1 | [
"MIT"
] | 2 | 2021-05-09T17:55:15.000Z | 2021-12-13T19:58:57.000Z | app/api/v1/user.py | DanylZhang/Netflix-Genre | d68d5b01d8ba25e776edb5fca4f4295a7d3a55a1 | [
"MIT"
] | null | null | null | from flask import Blueprint
# blueprint
from app.libs.redprint import Redprint
user = Blueprint('user', __name__)
api = Redprint('user')
@api.route('/get')
def get_user():
return "I'm danyl"
| 15.307692 | 38 | 0.708543 | 28 | 199 | 4.857143 | 0.607143 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155779 | 199 | 12 | 39 | 16.583333 | 0.809524 | 0.045226 | 0 | 0 | 0 | 0 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0.571429 | 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 | 1 | 0 | 4 |
d1c1f772be4bbd1f58b9a975a7dc50b165fd1431 | 257 | py | Python | quote.py | periodically-makes-puns/CipherBot | d59795c6bd7aebe381a35e8695daeafeefd91542 | [
"MIT"
] | null | null | null | quote.py | periodically-makes-puns/CipherBot | d59795c6bd7aebe381a35e8695daeafeefd91542 | [
"MIT"
] | null | null | null | quote.py | periodically-makes-puns/CipherBot | d59795c6bd7aebe381a35e8695daeafeefd91542 | [
"MIT"
] | null | null | null | import random
file = "data/quotes.txt"
quotes = open(file, "r", encoding="utf-8").readlines() # use builtin readlines
def reload():
quotes = open(file, "r", encoding="utf-8").readlines()
def getQuote() -> str:
return random.choice(quotes).strip() | 25.7 | 78 | 0.669261 | 35 | 257 | 4.914286 | 0.6 | 0.116279 | 0.162791 | 0.174419 | 0.418605 | 0.418605 | 0.418605 | 0.418605 | 0 | 0 | 0 | 0.009091 | 0.143969 | 257 | 10 | 79 | 25.7 | 0.772727 | 0.081712 | 0 | 0.285714 | 0 | 0 | 0.114894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ae43fddedade101e5d9d6d647b91e92395d2b2aa | 209 | py | Python | fpas/crud/crud_item.py | martin-hanzely/fpas | 0b30c363a66b98eeb8f6b081a2ab74fc55dd6375 | [
"Unlicense"
] | null | null | null | fpas/crud/crud_item.py | martin-hanzely/fpas | 0b30c363a66b98eeb8f6b081a2ab74fc55dd6375 | [
"Unlicense"
] | null | null | null | fpas/crud/crud_item.py | martin-hanzely/fpas | 0b30c363a66b98eeb8f6b081a2ab74fc55dd6375 | [
"Unlicense"
] | null | null | null | from fpas.crud.crud_base import CRUDBase
from fpas.models.item import Item
from fpas.schemas import ItemCreate, ItemUpdate
class CRUDItem(CRUDBase[Item, ItemCreate, ItemUpdate]): ...
item = CRUDItem(Item)
| 20.9 | 59 | 0.789474 | 28 | 209 | 5.857143 | 0.464286 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119617 | 209 | 9 | 60 | 23.222222 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ae6942660ab9f082686db17f16a71ec885349c8b | 546 | py | Python | ggpy/cruft/autocode/GamePreviewException.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | 1 | 2015-01-26T19:07:45.000Z | 2015-01-26T19:07:45.000Z | ggpy/cruft/autocode/GamePreviewException.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | ggpy/cruft/autocode/GamePreviewException.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" generated source for module GamePreviewException """
# package: org.ggp.base.player.gamer.exception
@SuppressWarnings("serial")
class GamePreviewException(Exception):
""" generated source for class GamePreviewException """
def __init__(self, cause):
""" generated source for met... | 36.4 | 72 | 0.712454 | 56 | 546 | 6.660714 | 0.607143 | 0.160858 | 0.193029 | 0.128686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177656 | 546 | 14 | 73 | 39 | 0.830735 | 0.43956 | 0 | 0 | 1 | 0 | 0.218638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ae8b5a10d28c6937f647e92f9f564b76d3f2adbe | 858 | py | Python | store/tests/test_urls.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | store/tests/test_urls.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | store/tests/test_urls.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse, resolve
class TestStoreURLs(TestCase):
def test_urls(self):
self.assertEqual(reverse('store:main'), '/store/')
self.assertEqual(reverse('store:list'), '/store/list/')
self.assertEqual(reverse('store:create'), '/store/create/... | 50.470588 | 87 | 0.671329 | 101 | 858 | 5.643564 | 0.237624 | 0.263158 | 0.192982 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004071 | 0.141026 | 858 | 16 | 88 | 53.625 | 0.769335 | 0 | 0 | 0 | 0 | 0 | 0.27972 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ae8d018366f73b2f3ad5d099501197179e3e5aa5 | 198 | py | Python | venv/lib/python2.7/dist-packages/landscape/lib/__init__.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/lib/__init__.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/lib/__init__.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | """
This package contains the Landscape library. Code inside this
package must be generic and self-contained, depending only on
code inside of the package itself or libraries outside
Landscape.
"""
| 28.285714 | 61 | 0.79798 | 29 | 198 | 5.448276 | 0.758621 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 198 | 6 | 62 | 33 | 0.940476 | 0.954545 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ae95018faf20a81439cd444ca5b892080f9fa8c2 | 892 | py | Python | myfunds/modules/security.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | myfunds/modules/security.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | myfunds/modules/security.py | anzodev/myfunds | 9f6cda99f443cec064d15d7ff7780f297cbdfe10 | [
"MIT"
] | null | null | null | from abc import ABC
from abc import abstractmethod
from werkzeug.security import check_password_hash
from werkzeug.security import generate_password_hash
class PasswordHasher(ABC):
@abstractmethod
def make_hash(self, password: str) -> str:
...
@abstractmethod
def is_hash_correct(self, passwo... | 29.733333 | 87 | 0.70852 | 110 | 892 | 5.454545 | 0.290909 | 0.14 | 0.1 | 0.086667 | 0.263333 | 0.263333 | 0.263333 | 0.166667 | 0.166667 | 0.166667 | 0 | 0.016783 | 0.19843 | 892 | 29 | 88 | 30.758621 | 0.822378 | 0 | 0 | 0.380952 | 1 | 0 | 0.04148 | 0.034753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.47619 | 0.190476 | 0.095238 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
883f223c5cfe6a9309871c7904089a6c1b06bd47 | 81 | py | Python | __init__.py | ASPDB/ASPDB-Data | 112bc9880068e4f9d100b1f40ee2b33533424cb8 | [
"Apache-2.0"
] | 1 | 2016-12-09T16:51:33.000Z | 2016-12-09T16:51:33.000Z | __init__.py | ASPDB/ASPDB-Data | 112bc9880068e4f9d100b1f40ee2b33533424cb8 | [
"Apache-2.0"
] | 4 | 2016-12-10T17:11:45.000Z | 2016-12-14T17:16:20.000Z | __init__.py | ASPDB/ASPDB-Data | 112bc9880068e4f9d100b1f40ee2b33533424cb8 | [
"Apache-2.0"
] | null | null | null | """
ASPDB®
======
A manually curated dedicated acid shock proteins database.
"""
| 13.5 | 58 | 0.679012 | 10 | 81 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 81 | 5 | 59 | 16.2 | 0.797101 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
884bfa5c51a932929a7dfe8c047780c084742b9a | 58 | py | Python | apps/shop/utils/__init__.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | null | null | null | apps/shop/utils/__init__.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | 7 | 2021-02-20T13:17:16.000Z | 2021-04-17T18:43:25.000Z | apps/shop/utils/__init__.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | null | null | null | # flake8: noqa
from .delta_util import (
DeltaUtil,
)
| 11.6 | 25 | 0.672414 | 7 | 58 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.224138 | 58 | 4 | 26 | 14.5 | 0.822222 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
88528d7ab0217fe5bbf2acb11218d967d4414c53 | 201 | py | Python | Models/__init__.py | austrian-code-wizard/Timeinator | f83351587d877a97611aa228787b9fed00d495d3 | [
"MIT"
] | null | null | null | Models/__init__.py | austrian-code-wizard/Timeinator | f83351587d877a97611aa228787b9fed00d495d3 | [
"MIT"
] | null | null | null | Models/__init__.py | austrian-code-wizard/Timeinator | f83351587d877a97611aa228787b9fed00d495d3 | [
"MIT"
] | null | null | null | from Models.models import User, Task, Interval
from Models.schema import UserSchema, TaskSchema, IntervalSchema
User.schema = UserSchema()
Task.schema = TaskSchema()
Interval.schema = IntervalSchema() | 33.5 | 64 | 0.80597 | 23 | 201 | 7.043478 | 0.434783 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 201 | 6 | 65 | 33.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
887cf5169da1874d50e9c798c371f03375f7214d | 759 | py | Python | independentreserve/__init__.py | MelchiSalins/pyindependentreserve | 91ffc6d9667fc08acf4eb0a2afcf942e480801cb | [
"MIT"
] | 18 | 2017-12-01T09:39:34.000Z | 2021-08-13T05:45:08.000Z | independentreserve/__init__.py | MelchiSalins/pyindependentreserve | 91ffc6d9667fc08acf4eb0a2afcf942e480801cb | [
"MIT"
] | 10 | 2017-09-03T08:27:37.000Z | 2021-07-01T05:53:04.000Z | independentreserve/__init__.py | MelchiSalins/pyindependentreserve | 91ffc6d9667fc08acf4eb0a2afcf942e480801cb | [
"MIT"
] | 13 | 2017-09-28T12:20:11.000Z | 2021-10-05T01:23:56.000Z | """
Independent Reserve features a JSON based API, that is comprised of Public and Private methods.
All API calls must be made over SSL to https://api.independentreserve.com .
Public methods do not require an authentication token and should be accessed via HTTP GET.
Private methods require a valid authentication token... | 54.214286 | 117 | 0.795784 | 121 | 759 | 4.991736 | 0.595041 | 0.049669 | 0.072848 | 0.056291 | 0.082781 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.163373 | 759 | 14 | 118 | 54.214286 | 0.943307 | 0.857708 | 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 | 1 | 0 | 0 | 4 |
888d738a485baa93fc39cc81df747fbade1afe55 | 20,087 | py | Python | englishtobengali/entobn.py | jabedparadox/englishtobengali | bd28fca3583d297f114364450a8f1d5c100b8a27 | [
"MIT"
] | null | null | null | englishtobengali/entobn.py | jabedparadox/englishtobengali | bd28fca3583d297f114364450a8f1d5c100b8a27 | [
"MIT"
] | null | null | null | englishtobengali/entobn.py | jabedparadox/englishtobengali | bd28fca3583d297f114364450a8f1d5c100b8a27 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#!/usr/bin/python3
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf8 -*-
# Python Web Based English To Bangla Translator (Google, Bing, Yandex, Baidu).
# Author :- Md Jabed Ali(jabed)
# Facebook :- https://www.facebook.com/paradox.jabed
# Github ... | 63.365931 | 2,199 | 0.569423 | 2,538 | 20,087 | 4.402679 | 0.228526 | 0.022552 | 0.012887 | 0.013424 | 0.73671 | 0.727045 | 0.716306 | 0.696617 | 0.68203 | 0.68203 | 0 | 0.070478 | 0.274556 | 20,087 | 316 | 2,200 | 63.566456 | 0.696335 | 0.345447 | 0 | 0.463277 | 0 | 0.045198 | 0.25598 | 0.027074 | 0.028249 | 0 | 0 | 0 | 0 | 1 | 0.045198 | false | 0.00565 | 0.067797 | 0 | 0.163842 | 0.011299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
889630bf02fd88370a17c78c7cc4b290d4688774 | 1,513 | py | Python | flax_models/bert/run_classifier_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 7 | 2021-06-15T05:54:29.000Z | 2022-02-21T06:57:06.000Z | flax_models/bert/run_classifier_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 12 | 2021-08-25T16:15:31.000Z | 2022-02-10T05:10:37.000Z | flax_models/bert/run_classifier_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 5 | 2021-11-25T07:40:17.000Z | 2022-03-22T11:13:39.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 33.622222 | 75 | 0.750165 | 229 | 1,513 | 4.842795 | 0.60262 | 0.054103 | 0.037872 | 0.028855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007994 | 0.173166 | 1,513 | 44 | 76 | 34.386364 | 0.878497 | 0.617317 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.214286 | false | 0.071429 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
889ef2572807e042465ce43d61bf963580218897 | 42 | py | Python | pyexcel_xlsxr/_version.py | mobanbot/pyexcel-xlsxr | d9e53b6d773b6e35ee48c9d460cb8baf36eef797 | [
"BSD-3-Clause"
] | null | null | null | pyexcel_xlsxr/_version.py | mobanbot/pyexcel-xlsxr | d9e53b6d773b6e35ee48c9d460cb8baf36eef797 | [
"BSD-3-Clause"
] | null | null | null | pyexcel_xlsxr/_version.py | mobanbot/pyexcel-xlsxr | d9e53b6d773b6e35ee48c9d460cb8baf36eef797 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.5.2'
__author__ = 'C.W.'
| 14 | 21 | 0.619048 | 7 | 42 | 2.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.142857 | 42 | 2 | 22 | 21 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
88a54b0805ca261a699ad2360ff913f87c9269b5 | 38,251 | py | Python | python/examples/Colormapping_Backup.py | Tornadiz/LOGO_Colormapping | 9bab54899f3afa3c6147277e3feea82eaf86c596 | [
"BSD-2-Clause"
] | null | null | null | python/examples/Colormapping_Backup.py | Tornadiz/LOGO_Colormapping | 9bab54899f3afa3c6147277e3feea82eaf86c596 | [
"BSD-2-Clause"
] | null | null | null | python/examples/Colormapping_Backup.py | Tornadiz/LOGO_Colormapping | 9bab54899f3afa3c6147277e3feea82eaf86c596 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# rpi_ws281x library Colormapping
# Author: Norbert Karpen
#
# To map specific LED strip locations to a color gradient
#
import time
from rpi_ws281x import *
import argparse
import numpy as np
import copy
# LED strip configuration:
LED_COUNT = 130 # Number of LED pixels.
LED_PIN ... | 159.379167 | 24,996 | 0.486968 | 6,677 | 38,251 | 2.728022 | 0.073536 | 0.016799 | 0.023223 | 0.015921 | 0.133956 | 0.112654 | 0.072083 | 0.063464 | 0.059511 | 0.044414 | 0 | 0.414703 | 0.208021 | 38,251 | 239 | 24,997 | 160.046025 | 0.186572 | 0.173041 | 0 | 0.026316 | 0 | 0 | 0.003556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.065789 | 0 | 0.144737 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
88a96ebb6bb32c3a368b1b1f159bb483e6dda05c | 55 | py | Python | classgroup/views/admin.py | wanderknight/OnlineJudge | dc1a085867a7f26799931f7ab6d58e071f75cf1c | [
"MIT"
] | null | null | null | classgroup/views/admin.py | wanderknight/OnlineJudge | dc1a085867a7f26799931f7ab6d58e071f75cf1c | [
"MIT"
] | null | null | null | classgroup/views/admin.py | wanderknight/OnlineJudge | dc1a085867a7f26799931f7ab6d58e071f75cf1c | [
"MIT"
] | null | null | null | __author__ = 'wanderknight'
__time__ = '2019/8/9 20:31' | 27.5 | 27 | 0.727273 | 8 | 55 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 0.109091 | 55 | 2 | 28 | 27.5 | 0.44898 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
88ae297d2240f240020aaafaacc83b9ba081748a | 218 | py | Python | pytarallo/ProductToUpload.py | pippo314/pytarallo | ede1b47a2777317cf7c37aa51d7edfc9d8064e31 | [
"MIT"
] | null | null | null | pytarallo/ProductToUpload.py | pippo314/pytarallo | ede1b47a2777317cf7c37aa51d7edfc9d8064e31 | [
"MIT"
] | null | null | null | pytarallo/ProductToUpload.py | pippo314/pytarallo | ede1b47a2777317cf7c37aa51d7edfc9d8064e31 | [
"MIT"
] | null | null | null | from pytarallo.Product import Product
class ProductToUpload(Product):
"""Not sure what this is"""
def __init__(self, data: dict):
"""Constructor for ProductToUpload"""
super().__init__(data)
| 21.8 | 45 | 0.669725 | 24 | 218 | 5.75 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 218 | 9 | 46 | 24.222222 | 0.802326 | 0.243119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
88b5a3f02b92247c7b02d0307b21178d1f7556b5 | 362 | py | Python | airbyte-integrations/connectors/source-bitrix24-crm/source_bitrix24_crm/utils.py | adventum/airbyte | e563d1bce7c192882c719fc112bfc371e701ea48 | [
"MIT"
] | null | null | null | airbyte-integrations/connectors/source-bitrix24-crm/source_bitrix24_crm/utils.py | adventum/airbyte | e563d1bce7c192882c719fc112bfc371e701ea48 | [
"MIT"
] | null | null | null | airbyte-integrations/connectors/source-bitrix24-crm/source_bitrix24_crm/utils.py | adventum/airbyte | e563d1bce7c192882c719fc112bfc371e701ea48 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
def get_yesterday_date() -> str:
"""Returns yesterday date (mm/dd/yyyy for requests report)."""
return (datetime.now() - timedelta(1)).date().strftime("%Y/%m/%d") + "T23:59:59"
def get_today_minus_n_days_date(days: int):
return (datetime.now() - timedelta(days)).... | 32.909091 | 87 | 0.668508 | 54 | 362 | 4.351852 | 0.592593 | 0.051064 | 0.144681 | 0.221277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04127 | 0.129834 | 362 | 10 | 88 | 36.2 | 0.704762 | 0.154696 | 0 | 0 | 0 | 0 | 0.113333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ee1608bfc397ef6cd86c476cdfbd665f0ba9d0d9 | 185 | py | Python | common/mod/Mod.py | wode490390/Mod-stub | 0a1451f39e9c41c6a6645257f76d9a01591342ce | [
"MIT"
] | null | null | null | common/mod/Mod.py | wode490390/Mod-stub | 0a1451f39e9c41c6a6645257f76d9a01591342ce | [
"MIT"
] | null | null | null | common/mod/Mod.py | wode490390/Mod-stub | 0a1451f39e9c41c6a6645257f76d9a01591342ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def Binding(name, version):
pass
def InitServer():
pass
def DestroyServer():
pass
def InitClient():
pass
def DestroyClient():
pass
| 8.409091 | 27 | 0.589189 | 20 | 185 | 5.45 | 0.6 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.275676 | 185 | 21 | 28 | 8.809524 | 0.80597 | 0.113514 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ee2b8628e865cc2f5567aa9c66d769d53d4631c8 | 1,441 | py | Python | steam_inbox.py | AgincourtProjects/Steam-Email-Service | 278e2f1b07bcd73ba7ded831f95d06fc7f6cbd11 | [
"MIT"
] | null | null | null | steam_inbox.py | AgincourtProjects/Steam-Email-Service | 278e2f1b07bcd73ba7ded831f95d06fc7f6cbd11 | [
"MIT"
] | null | null | null | steam_inbox.py | AgincourtProjects/Steam-Email-Service | 278e2f1b07bcd73ba7ded831f95d06fc7f6cbd11 | [
"MIT"
] | null | null | null | import imaplib
import email
host = 'imap.gmail.com'
username = 'kunforever16@gmail.com'
password = 'additya007'
mail = imaplib.IMAP4_SSL(host)
mail.login(username, password)
mail.select("inbox")
_, search_data = mail.search(None, 'UNSEEN')
mail_list = search_data[0].split()
latest = mail_list[-1]
_, data = mail.fe... | 53.37037 | 905 | 0.680083 | 303 | 1,441 | 3.188119 | 0.349835 | 0.151139 | 0.189441 | 0.202899 | 0.279503 | 0.279503 | 0.279503 | 0.272257 | 0.272257 | 0.270186 | 0 | 0.050642 | 0.081888 | 1,441 | 26 | 906 | 55.423077 | 0.679516 | 0.047883 | 0 | 0 | 0 | 0.105263 | 0.687363 | 0.330898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.105263 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ee2d9fce933882cb2481f6db8ce1bbd344c89f26 | 143 | py | Python | django_directed/urls.py | jacklinke/django-directed | 8ef8cd8a71e9a03a8628dce6465351f676f542ff | [
"Apache-2.0"
] | 2 | 2022-02-09T10:15:40.000Z | 2022-02-22T14:11:03.000Z | django_directed/urls.py | jacklinke/django-directed | 8ef8cd8a71e9a03a8628dce6465351f676f542ff | [
"Apache-2.0"
] | 1 | 2022-02-20T14:49:37.000Z | 2022-02-20T14:49:37.000Z | django_directed/urls.py | jacklinke/django-directed | 8ef8cd8a71e9a03a8628dce6465351f676f542ff | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from django.views.generic import TemplateView
from . import views
app_name = "django_directed"
urlpatterns = []
| 17.875 | 45 | 0.79021 | 19 | 143 | 5.842105 | 0.631579 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13986 | 143 | 7 | 46 | 20.428571 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ee443e82f0dbc4ed50509bda6ebd72f7adaba101 | 168 | py | Python | 08_pr3_05.py | AmreshTripathy/Python | e86420fef7f52da393be5b50ac2f13bddfeb3306 | [
"Apache-2.0"
] | 4 | 2021-05-27T05:06:09.000Z | 2021-06-12T17:12:47.000Z | 08_pr3_05.py | AmreshTripathy/Python | e86420fef7f52da393be5b50ac2f13bddfeb3306 | [
"Apache-2.0"
] | null | null | null | 08_pr3_05.py | AmreshTripathy/Python | e86420fef7f52da393be5b50ac2f13bddfeb3306 | [
"Apache-2.0"
] | null | null | null | letter = "Dear Harry, This python course is nice! Thanks!"
print (letter)
formatted_letter = "Dear Harry,\nThis course is nice!\nThanks!"
print (formatted_letter ) | 33.6 | 64 | 0.738095 | 23 | 168 | 5.304348 | 0.565217 | 0.163934 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 168 | 5 | 65 | 33.6 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.539394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
c9bb9da975d4e98bb70a9018354bb0c7626be25b | 13,527 | py | Python | src/chatbots/intentions/talk.py | leolani/cltl-chatbots | 45a2300c87853911b53f19e53ab7c8a4705ba2e6 | [
"Apache-2.0"
] | null | null | null | src/chatbots/intentions/talk.py | leolani/cltl-chatbots | 45a2300c87853911b53f19e53ab7c8a4705ba2e6 | [
"Apache-2.0"
] | 14 | 2021-11-02T08:33:53.000Z | 2022-03-30T16:00:01.000Z | src/chatbots/intentions/talk.py | leolani/cltl-chatbots | 45a2300c87853911b53f19e53ab7c8a4705ba2e6 | [
"Apache-2.0"
] | 1 | 2021-12-11T11:54:29.000Z | 2021-12-11T11:54:29.000Z | import os
import sys
from random import choice
import pprint
from cltl.brain.long_term_memory import LongTermMemory
from cltl.brain.utils.helper_functions import brain_response_to_json
from cltl.combot.backend.api.discrete import UtteranceType
from cltl.reply_generation.data.sentences import ELOQUENCE
from cltl.reply_... | 40.258929 | 125 | 0.566423 | 1,340 | 13,527 | 5.457463 | 0.127612 | 0.055791 | 0.024614 | 0.031177 | 0.75523 | 0.741146 | 0.705456 | 0.68262 | 0.68262 | 0.662792 | 0 | 0.000468 | 0.368596 | 13,527 | 335 | 126 | 40.379104 | 0.855755 | 0.064242 | 0 | 0.753676 | 0 | 0 | 0.021384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033088 | false | 0 | 0.051471 | 0 | 0.117647 | 0.161765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c9c3a153e7e6518d8c4fc7f469b7b7b64cc8fc49 | 96 | py | Python | biplane_kine/graphing/__init__.py | klevis-a/process-vicon-biplane | f140589b4705f0d6411b80b8e2699add68d08662 | [
"MIT"
] | 1 | 2021-11-10T21:09:59.000Z | 2021-11-10T21:09:59.000Z | biplane_kine/graphing/__init__.py | klevis-a/process-vicon-biplane | f140589b4705f0d6411b80b8e2699add68d08662 | [
"MIT"
] | null | null | null | biplane_kine/graphing/__init__.py | klevis-a/process-vicon-biplane | f140589b4705f0d6411b80b8e2699add68d08662 | [
"MIT"
] | null | null | null | """This package provides contains utilities for graphing Vicon and biplane fluoroscopy data."""
| 48 | 95 | 0.802083 | 12 | 96 | 6.416667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 96 | 1 | 96 | 96 | 0.916667 | 0.927083 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a00a65b7ddea8dc99ee7ff1851dc7e40899d32a3 | 246 | py | Python | app/es.py | Ferlab-Ste-Justine/csv-to-es | 85d4a6ccd60115007607bc330232b40d77fc022e | [
"Apache-2.0"
] | null | null | null | app/es.py | Ferlab-Ste-Justine/csv-to-es | 85d4a6ccd60115007607bc330232b40d77fc022e | [
"Apache-2.0"
] | null | null | null | app/es.py | Ferlab-Ste-Justine/csv-to-es | 85d4a6ccd60115007607bc330232b40d77fc022e | [
"Apache-2.0"
] | null | null | null | from elasticsearch import Elasticsearch
def get_es(conf) -> Elasticsearch:
return Elasticsearch(
hosts=conf['elasticsearch']['host'],
scheme=conf['elasticsearch']['scheme'],
port=conf['elasticsearch']['port'],
)
| 24.6 | 47 | 0.654472 | 23 | 246 | 6.956522 | 0.521739 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 246 | 9 | 48 | 27.333333 | 0.808081 | 0 | 0 | 0 | 0 | 0 | 0.215447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
4e5384ed6739a072be19c7a06e2acc67985243ac | 592 | py | Python | 200-299/295.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | 200-299/295.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | 200-299/295.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | class MedianFinder:
def __init__(self):
"""
initialize your data structure here.
"""
self.nums = []
self.length = 0
def addNum(self, num: int) -> None:
bisect.insort(self.nums, num)
self.length += 1
def findMedian(self) -> float:
r... | 24.666667 | 140 | 0.584459 | 76 | 592 | 4.486842 | 0.473684 | 0.175953 | 0.140762 | 0.211144 | 0.167155 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.282095 | 592 | 23 | 141 | 25.73913 | 0.778824 | 0.282095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4e6d0844205212e72428c847e0e4d7ea114529ed | 171 | py | Python | dapricot/__init__.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/__init__.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/__init__.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.module_loading import autodiscover_modules
def autodiscover():
autodiscover_modules('dapricot')
default_app_config = 'dapricot.apps.DapricotConfig' | 28.5 | 60 | 0.830409 | 19 | 171 | 7.210526 | 0.789474 | 0.277372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 171 | 6 | 61 | 28.5 | 0.878205 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4e85e1e5cc1b28371bc7356a6ebee340230c8e31 | 827 | py | Python | celadon/apps/form/models.py | ninapavlich/caledon | c5c1af7ac038b8e62e31637822d5412ad8587cbd | [
"MIT"
] | null | null | null | celadon/apps/form/models.py | ninapavlich/caledon | c5c1af7ac038b8e62e31637822d5412ad8587cbd | [
"MIT"
] | null | null | null | celadon/apps/form/models.py | ninapavlich/caledon | c5c1af7ac038b8e62e31637822d5412ad8587cbd | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from carbon.compounds.form.models import Form as BaseForm
from carbon.compounds.form.models import FormField as BaseFormField
from carbon.compounds.form.models import FormEntry as BaseFormEntry
from carbon.compou... | 24.323529 | 79 | 0.834341 | 99 | 827 | 6.939394 | 0.30303 | 0.087336 | 0.165939 | 0.200873 | 0.305677 | 0.305677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114873 | 827 | 33 | 80 | 25.060606 | 0.938525 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.190476 | 0.428571 | 0 | 0.809524 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
4e88b5287ec00f50565e2f5ada09f42e335f681f | 165 | py | Python | Yadu/generic/10.py | SrishtiGameLab/ema-virtual-worlds-s1c1ws-1617 | 483049e05ac032af4f3f2023c059eb8ffa3c369d | [
"MIT"
] | null | null | null | Yadu/generic/10.py | SrishtiGameLab/ema-virtual-worlds-s1c1ws-1617 | 483049e05ac032af4f3f2023c059eb8ffa3c369d | [
"MIT"
] | null | null | null | Yadu/generic/10.py | SrishtiGameLab/ema-virtual-worlds-s1c1ws-1617 | 483049e05ac032af4f3f2023c059eb8ffa3c369d | [
"MIT"
] | null | null | null | '''
datetime
'''
from datetime import datetime
now = datetime.now()
print now.year
print now.month
print now.day
print now.hour
print now.minute
print now.second | 11 | 29 | 0.751515 | 26 | 165 | 4.769231 | 0.423077 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 15 | 30 | 11 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.75 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
4ea83995a3865d6cc99180f78d883e4fbdffde44 | 87 | py | Python | test/api/week_info/config.py | me2nuk/CTF-info | d811946f95368a80e561d113cbd5411f6f590c98 | [
"MIT"
] | null | null | null | test/api/week_info/config.py | me2nuk/CTF-info | d811946f95368a80e561d113cbd5411f6f590c98 | [
"MIT"
] | null | null | null | test/api/week_info/config.py | me2nuk/CTF-info | d811946f95368a80e561d113cbd5411f6f590c98 | [
"MIT"
] | null | null | null | auth_key = "AIzaSyC8kuwqFhzPZYxxfItL0we2tQzIVl2nZuM"
calendars_Id = "ctftime@gmail.com" | 43.5 | 52 | 0.850575 | 8 | 87 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.057471 | 87 | 2 | 53 | 43.5 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 0.443182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4edc0967751fbc424183b4d6b4fc2abcc2628bfa | 2,282 | py | Python | ipcam/src/remove_snap.py | jack139/HF | 4810f4ee2faf9ab51c867e105addc139da2adfd1 | [
"BSD-3-Clause"
] | 10 | 2019-04-07T20:13:23.000Z | 2021-12-07T06:23:52.000Z | ipcam/src/remove_snap.py | jack139/HF | 4810f4ee2faf9ab51c867e105addc139da2adfd1 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T16:11:22.000Z | 2020-05-29T16:11:22.000Z | ipcam/src/remove_snap.py | jack139/HF | 4810f4ee2faf9ab51c867e105addc139da2adfd1 | [
"BSD-3-Clause"
] | 6 | 2017-10-20T10:53:33.000Z | 2020-04-24T06:34:18.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import sys
import shutil, os
from config import setting
#{ ObjectId("534ce70e1ecffb0b5565221d"), "192.168.100.15", "放映厅3", "K307PBVQ3GV3" }
#{ ObjectId("534cf1b11ecffb0b5565225d"), "192.168.100.22", "放映厅4", "K307FX2N35KX" }
#{ ObjectId("534cf3c01ecffb0b55652264"), "1... | 28.17284 | 84 | 0.698948 | 221 | 2,282 | 7.140271 | 0.466063 | 0.016477 | 0.039924 | 0.04943 | 0.047529 | 0.047529 | 0 | 0 | 0 | 0 | 0 | 0.317404 | 0.128834 | 2,282 | 80 | 85 | 28.525 | 0.476358 | 0.343996 | 0 | 0 | 0 | 0 | 0.532073 | 0.486158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0913f6aaa799906b156aab088806466f150b4a05 | 97 | py | Python | models/BiBloSA.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 576 | 2017-12-13T12:44:20.000Z | 2022-03-03T13:28:58.000Z | models/BiBloSA.py | motefly/TextClassificationBenchmark | 77cbf922e3abe1241961c2759170a4657a3a4672 | [
"MIT"
] | 21 | 2017-12-17T07:46:25.000Z | 2020-08-20T16:55:01.000Z | models/BiBloSA.py | motefly/TextClassificationBenchmark | 77cbf922e3abe1241961c2759170a4657a3a4672 | [
"MIT"
] | 149 | 2017-12-13T15:00:37.000Z | 2022-03-23T18:29:44.000Z | # -*- coding: utf-8 -*-
#https://github.com/galsang/BiBloSA-pytorch/blob/master/model/model.py
| 19.4 | 70 | 0.690722 | 14 | 97 | 4.785714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.082474 | 97 | 4 | 71 | 24.25 | 0.741573 | 0.927835 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0935b3a6a31731fca608350755e68650f8fd10d1 | 473 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class SuccessfulExecution(object):
def __init__(self):
self.response = None
self.updatedData = None
def getResponse(self):
return self.response
def setResponse(self, response):
self.response = res... | 19.708333 | 68 | 0.678647 | 46 | 473 | 6.891304 | 0.456522 | 0.15142 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245243 | 473 | 23 | 69 | 20.565217 | 0.887955 | 0.139535 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
094029e32c3fac9214dc951ca6564f88061ab551 | 124 | py | Python | binner/exception.py | Zbooni/binner | 292236e6bd4668aa904c2cd9a00cacc792984603 | [
"MIT"
] | 29 | 2015-03-19T02:54:31.000Z | 2020-12-21T00:11:35.000Z | binner/exception.py | nadirhamid/binner | 292236e6bd4668aa904c2cd9a00cacc792984603 | [
"MIT"
] | 2 | 2017-11-02T15:58:54.000Z | 2019-12-07T20:45:53.000Z | binner/exception.py | Zbooni/binner | 292236e6bd4668aa904c2cd9a00cacc792984603 | [
"MIT"
] | 10 | 2015-03-19T03:01:28.000Z | 2018-06-28T22:04:05.000Z |
## exception when an error based proportion
## of bins to items is received
class DistributionException(Exception):
pass
| 17.714286 | 43 | 0.782258 | 16 | 124 | 6.0625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 124 | 6 | 44 | 20.666667 | 0.932692 | 0.556452 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
117de92352dbd13d19056c68909e1500cff214bf | 169 | py | Python | pyPseudo/error/ResolveError.py | johnyob/Pseudo | 02e637e93872e786201538f719cd19676a03c170 | [
"MIT"
] | 1 | 2019-03-10T21:25:47.000Z | 2019-03-10T21:25:47.000Z | pyPseudo/error/ResolveError.py | johnyob/Pseudo | 02e637e93872e786201538f719cd19676a03c170 | [
"MIT"
] | null | null | null | pyPseudo/error/ResolveError.py | johnyob/Pseudo | 02e637e93872e786201538f719cd19676a03c170 | [
"MIT"
] | null | null | null | from pyPseudo.error.RuntimeError import RuntimeError
class ResolveError(RuntimeError):
def __init__(self, token, message):
super().__init__(token, message)
| 28.166667 | 52 | 0.757396 | 18 | 169 | 6.666667 | 0.722222 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147929 | 169 | 5 | 53 | 33.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1190cdf55bf313430c66edb0631bb91371f60135 | 203 | py | Python | rpspp/classifier/_base.py | walwe/rpspp | 0899f54d78a48bc538d9be097899ff2cb50150ce | [
"MIT"
] | 2 | 2021-11-25T13:40:57.000Z | 2022-03-30T04:11:41.000Z | rpspp/classifier/_base.py | walwe/rpspp | 0899f54d78a48bc538d9be097899ff2cb50150ce | [
"MIT"
] | null | null | null | rpspp/classifier/_base.py | walwe/rpspp | 0899f54d78a48bc538d9be097899ff2cb50150ce | [
"MIT"
] | null | null | null |
class ClassifierMixin:
def fit(self, data, labels, test_data=None, test_label=None, log_dir=None):
raise NotImplementedError
def predict(self, data):
raise NotImplementedError
| 22.555556 | 79 | 0.70936 | 24 | 203 | 5.875 | 0.625 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211823 | 203 | 8 | 80 | 25.375 | 0.88125 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
119f0ba9b9f9532a2f86f37e869f10715526a3a2 | 1,544 | py | Python | mys/pygments/pygments/lexers/web.py | eerimoq/sython | 90937bf44b798b9c1ae0d18e31e11e95967b46c6 | [
"MIT"
] | 83 | 2020-08-18T18:48:46.000Z | 2021-01-01T17:00:45.000Z | mys/pygments/pygments/lexers/web.py | eerimoq/sython | 90937bf44b798b9c1ae0d18e31e11e95967b46c6 | [
"MIT"
] | 31 | 2021-01-05T00:32:36.000Z | 2022-02-23T13:34:33.000Z | mys/pygments/pygments/lexers/web.py | eerimoq/sython | 90937bf44b798b9c1ae0d18e31e11e95967b46c6 | [
"MIT"
] | 7 | 2021-01-03T11:53:03.000Z | 2022-02-22T17:49:42.000Z | """
pygments.lexers.web
~~~~~~~~~~~~~~~~~~~
Just export previously exported lexers.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexers.actionscript import ActionScript3Lexer
from pygments.lexers.actionscript import A... | 37.658537 | 70 | 0.830311 | 190 | 1,544 | 6.726316 | 0.315789 | 0.295775 | 0.366197 | 0.120501 | 0.584507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007988 | 0.108161 | 1,544 | 40 | 71 | 38.6 | 0.920116 | 0.152202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.928571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
11c0faab3a0cb9d4b29464fdccdbf75f4d47d4c9 | 61 | py | Python | models/vision/detection/configs/faster_rcnn/SM/CI/2/faster_rcnn_r50v1_d_fpn_1x_coco.py | piyushghai/deep-learning-models | eebc5007a9f60540a98ed8ea5f9fbd5786b21db9 | [
"Apache-2.0",
"MIT"
] | 129 | 2018-07-21T11:51:16.000Z | 2022-03-09T07:15:09.000Z | models/vision/detection/configs/faster_rcnn/SM/CI/2/faster_rcnn_r50v1_d_fpn_1x_coco.py | piyushghai/deep-learning-models | eebc5007a9f60540a98ed8ea5f9fbd5786b21db9 | [
"Apache-2.0",
"MIT"
] | 20 | 2018-09-13T23:19:56.000Z | 2021-05-22T02:12:53.000Z | models/vision/detection/configs/faster_rcnn/SM/CI/2/faster_rcnn_r50v1_d_fpn_1x_coco.py | piyushghai/deep-learning-models | eebc5007a9f60540a98ed8ea5f9fbd5786b21db9 | [
"Apache-2.0",
"MIT"
] | 74 | 2018-07-23T12:14:01.000Z | 2022-01-21T05:17:13.000Z | base_files = ['../../2/faster_rcnn_r50v1_d_fpn_1x_coco.py']
| 20.333333 | 59 | 0.721311 | 11 | 61 | 3.363636 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0.065574 | 61 | 2 | 60 | 30.5 | 0.561404 | 0 | 0 | 0 | 0 | 0 | 0.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
11eed7b432bb8a6d687d8a88640ab1a4e3bd88f4 | 26 | py | Python | subdomains/__init__.py | abe312/django-subdomains | 4064c485d5161ce7289cdbd861675afe6f037196 | [
"MIT"
] | 26 | 2017-06-30T05:42:00.000Z | 2021-10-04T06:40:23.000Z | subdomains/__init__.py | abe312/django-subdomains | 4064c485d5161ce7289cdbd861675afe6f037196 | [
"MIT"
] | 4 | 2017-09-16T20:12:31.000Z | 2021-12-06T14:14:41.000Z | subdomains/__init__.py | abe312/django-subdomains | 4064c485d5161ce7289cdbd861675afe6f037196 | [
"MIT"
] | 15 | 2017-05-30T06:50:02.000Z | 2020-07-29T20:16:56.000Z | __version__ = (3, 0, '1')
| 13 | 25 | 0.538462 | 4 | 26 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.192308 | 26 | 1 | 26 | 26 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eebedd6d18d1335e99b1c8c90a3f2d425e07df1a | 105 | py | Python | backend/program/models.py | solmari323/Hackathon-NASA-2020-II | 893585aef009148a263ee310a0a843854b6d218c | [
"MIT"
] | null | null | null | backend/program/models.py | solmari323/Hackathon-NASA-2020-II | 893585aef009148a263ee310a0a843854b6d218c | [
"MIT"
] | null | null | null | backend/program/models.py | solmari323/Hackathon-NASA-2020-II | 893585aef009148a263ee310a0a843854b6d218c | [
"MIT"
] | null | null | null | from django.db import models
class Program(models.Model):
title = models.CharField(max_length=200)
| 17.5 | 44 | 0.761905 | 15 | 105 | 5.266667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.142857 | 105 | 5 | 45 | 21 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
eede212b5dede22b3bffd2a59c3f037f4152e183 | 179 | py | Python | eventlet/green/time.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | 1 | 2015-02-05T19:54:48.000Z | 2015-02-05T19:54:48.000Z | eventlet/green/time.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | null | null | null | eventlet/green/time.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | 1 | 2020-06-27T16:03:14.000Z | 2020-06-27T16:03:14.000Z | __time = __import__('time')
for var in dir(__time):
exec "%s = __time.%s" % (var, var)
__patched__ = ['sleep']
from eventlet.greenthread import sleep
sleep # silence pyflakes
| 25.571429 | 38 | 0.698324 | 24 | 179 | 4.625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 179 | 6 | 39 | 29.833333 | 0.74 | 0.089385 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eee42c27192758ba3eaa802a5d3b7992f6143e8d | 746 | py | Python | examples/people_api/flask/load_people.py | sebastiandev/peach | 503a0b00ed1562e8d619c5c6f4ca5be6c1d17339 | [
"MIT"
] | 20 | 2017-04-27T09:00:12.000Z | 2021-11-15T14:28:31.000Z | examples/people_api/flask/load_people.py | sebastiandev/peach | 503a0b00ed1562e8d619c5c6f4ca5be6c1d17339 | [
"MIT"
] | 1 | 2019-12-07T07:42:10.000Z | 2019-12-07T07:42:10.000Z | examples/people_api/flask/load_people.py | sebastiandev/peach | 503a0b00ed1562e8d619c5c6f4ca5be6c1d17339 | [
"MIT"
] | 2 | 2018-08-13T20:10:09.000Z | 2019-03-27T02:04:55.000Z | #!/usr/bin/env python
from peach import Peach
from peach.handlers.flask import FlaskHandler
from peach.utils import module_dir
Peach.init(config=module_dir(__file__), handler=FlaskHandler())
from app import People
People.add(People(name='Lionel', age=28, address='Somewhere in Barcelona'))
People.add(People(name='... | 35.52381 | 81 | 0.760054 | 110 | 746 | 5.1 | 0.4 | 0.112299 | 0.187166 | 0.237077 | 0.213904 | 0.163993 | 0.163993 | 0.163993 | 0 | 0 | 0 | 0.020498 | 0.08445 | 746 | 20 | 82 | 37.3 | 0.800878 | 0.02681 | 0 | 0 | 0 | 0 | 0.26105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e11750e9c63062c0d62e834595d198489425a268 | 261 | py | Python | python/solusvm/vm_action.py | BwmBama/scripts | 4dc46ad5522962466d6957b0f1fa6bcac4b73921 | [
"Apache-2.0"
] | 26 | 2016-03-11T21:10:52.000Z | 2021-11-15T05:31:51.000Z | python/solusvm/vm_action.py | BwmBama/scripts | 4dc46ad5522962466d6957b0f1fa6bcac4b73921 | [
"Apache-2.0"
] | 1 | 2020-05-13T10:37:00.000Z | 2020-05-13T10:37:00.000Z | python/solusvm/vm_action.py | BwmBama/scripts | 4dc46ad5522962466d6957b0f1fa6bcac4b73921 | [
"Apache-2.0"
] | 14 | 2016-03-25T14:03:59.000Z | 2022-01-27T06:23:12.000Z | #coding:utf-8
from solusvm import SolusVMClient
from config import SOLUS_URL,SOLUS_CLIENTS
for solus_client in SOLUS_CLIENTS:
solus_client = SolusVMClient(SOLUS_URL,solus_client["key"],solus_client["hash"])
print solus_client.serverStatus().text
| 26.1 | 84 | 0.789272 | 36 | 261 | 5.472222 | 0.527778 | 0.279188 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.126437 | 261 | 9 | 85 | 29 | 0.859649 | 0.045977 | 0 | 0 | 0 | 0 | 0.028226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0112caa47aa9aed9aa08df78fa7411c92fb605dd | 224 | py | Python | chapter3/3_3_1.py | kungbob/Machine_Learning_In_Action | 007db9d2a6c957d314ecd0b4322cad5b04da7113 | [
"MIT"
] | null | null | null | chapter3/3_3_1.py | kungbob/Machine_Learning_In_Action | 007db9d2a6c957d314ecd0b4322cad5b04da7113 | [
"MIT"
] | 1 | 2018-01-05T15:48:33.000Z | 2018-01-05T15:54:22.000Z | chapter3/3_3_1.py | kungbob/Machine_Learning_In_Action | 007db9d2a6c957d314ecd0b4322cad5b04da7113 | [
"MIT"
] | 2 | 2019-02-12T01:35:20.000Z | 2019-03-24T03:00:51.000Z | import trees, treePlotter
myDat, labels = trees.createDataSet()
print(labels)
myTree = treePlotter.retrieveTree(0)
print(myTree)
print(trees.classify(myTree, labels, [1, 0]))
print(trees.classify(myTree, labels, [1, 1]))
| 20.363636 | 45 | 0.745536 | 29 | 224 | 5.758621 | 0.413793 | 0.071856 | 0.215569 | 0.287425 | 0.371257 | 0.371257 | 0 | 0 | 0 | 0 | 0 | 0.024876 | 0.102679 | 224 | 10 | 46 | 22.4 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
01210afa6c3e191ea011a98708fce02e2debe72c | 184 | py | Python | SysPy_ver/func_search.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 4 | 2017-12-28T14:00:16.000Z | 2021-01-21T08:53:14.000Z | SysPy_ver/func_search.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 1 | 2018-07-31T16:27:00.000Z | 2018-07-31T16:27:37.000Z | SysPy_ver/func_search.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 2 | 2015-10-12T09:13:13.000Z | 2020-01-06T12:22:55.000Z | import libs._func_lib
reload(libs._func_lib)
def func_search():
func_vars = libs._func_lib.fir_filt_s([-0.1, 0.2], "1.7")
print("func_search.func_vars:", func_vars)
return func_vars | 30.666667 | 58 | 0.755435 | 35 | 184 | 3.571429 | 0.485714 | 0.256 | 0.264 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.086957 | 184 | 6 | 59 | 30.666667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
012e04ad5c24ba746a4d0e4268c220f7662e0d7b | 615 | py | Python | homura/utils/__init__.py | wangjunyan305/homura | 815750e927e0eeaac3f5c0bf49d8d46dabaf5988 | [
"Apache-2.0"
] | null | null | null | homura/utils/__init__.py | wangjunyan305/homura | 815750e927e0eeaac3f5c0bf49d8d46dabaf5988 | [
"Apache-2.0"
] | null | null | null | homura/utils/__init__.py | wangjunyan305/homura | 815750e927e0eeaac3f5c0bf49d8d46dabaf5988 | [
"Apache-2.0"
] | null | null | null | from .backends import einsum, torch_to_xp, xp_to_torch
from .benchmarks import timeit
from .containers import TensorDataClass, TensorTuple
from .distributed import (distributed_print, distributed_ready_main, get_global_rank, get_local_rank, get_num_nodes,
get_world_size, if_is_master, init_dis... | 61.5 | 116 | 0.756098 | 76 | 615 | 5.684211 | 0.539474 | 0.032407 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196748 | 615 | 9 | 117 | 68.333333 | 0.874494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0160dc72e18017efa1f95134eef943e901b0fb14 | 110 | gyp | Python | 3rdParty/nodejs/8.0.0/source/test/addons-napi/test_globals/binding.gyp | Internet-of-People/ApertusVR | 3bb954ef02beb8a5a54ac7c062a55b7a0cf402bf | [
"MIT"
] | null | null | null | 3rdParty/nodejs/8.0.0/source/test/addons-napi/test_globals/binding.gyp | Internet-of-People/ApertusVR | 3bb954ef02beb8a5a54ac7c062a55b7a0cf402bf | [
"MIT"
] | null | null | null | 3rdParty/nodejs/8.0.0/source/test/addons-napi/test_globals/binding.gyp | Internet-of-People/ApertusVR | 3bb954ef02beb8a5a54ac7c062a55b7a0cf402bf | [
"MIT"
] | null | null | null | {
"targets": [
{
"target_name": "test_globals",
"sources": [ "test_globals.c" ]
}
]
}
| 12.222222 | 37 | 0.454545 | 9 | 110 | 5.222222 | 0.777778 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336364 | 110 | 8 | 38 | 13.75 | 0.643836 | 0 | 0 | 0 | 0 | 0 | 0.463636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6d780ad0bb0e1ab1f0d8fbe4f8c8201497586e15 | 368 | py | Python | good_practice_examples/cms_app.py | bitmazk/django-good-practice-examples | 923789b29790e4e0617b94a81db0b7f4c8537231 | [
"MIT"
] | null | null | null | good_practice_examples/cms_app.py | bitmazk/django-good-practice-examples | 923789b29790e4e0617b94a81db0b7f4c8537231 | [
"MIT"
] | 2 | 2020-02-11T23:25:49.000Z | 2020-06-05T17:24:26.000Z | good_practice_examples/cms_app.py | bitlabstudio/django-good-practice-examples | 923789b29790e4e0617b94a81db0b7f4c8537231 | [
"MIT"
] | 2 | 2016-05-11T02:05:06.000Z | 2016-06-12T20:09:57.000Z | """CMS app-hook for the ``good_practice_examples`` app."""
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
class GoodPracticeExamplesApphook(CMSApp):
name = _("Good practice examples")
urls = ["good_practice_examples.urls"]
app... | 30.666667 | 58 | 0.796196 | 46 | 368 | 6.130435 | 0.543478 | 0.12766 | 0.212766 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11413 | 368 | 11 | 59 | 33.454545 | 0.865031 | 0.141304 | 0 | 0 | 0 | 0 | 0.158065 | 0.087097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6d845bead79007d9272ad8979290c4b8b801b0c1 | 310 | py | Python | gamecraft/django_prometheus_light/views.py | micktwomey/gamecraft-mk-iii | b1d649571a4d0725d20eaa6988e063a1eddd8843 | [
"MIT"
] | 1 | 2015-09-08T20:09:58.000Z | 2015-09-08T20:09:58.000Z | gamecraft/django_prometheus_light/views.py | micktwomey/gamecraft-mk-iii | b1d649571a4d0725d20eaa6988e063a1eddd8843 | [
"MIT"
] | null | null | null | gamecraft/django_prometheus_light/views.py | micktwomey/gamecraft-mk-iii | b1d649571a4d0725d20eaa6988e063a1eddd8843 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.views.decorators.cache import never_cache
from prometheus_client import generate_latest, CONTENT_TYPE_LATEST
@never_cache
def metrics(request):
"""Exposes prometheus metrics"""
return HttpResponse(generate_latest(), content_type=CONTENT_TYPE_LATEST)
| 28.181818 | 76 | 0.825806 | 39 | 310 | 6.307692 | 0.512821 | 0.134146 | 0.170732 | 0.203252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106452 | 310 | 10 | 77 | 31 | 0.888087 | 0.083871 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6de928d71ed038140c879dfba7c2191967159282 | 92 | py | Python | oddt/scoring/functions/__init__.py | mwojcikowski/opendrugdiscovery | 174b22f6a9378bfbb1f435a6e71cad13218e5e6d | [
"BSD-3-Clause"
] | null | null | null | oddt/scoring/functions/__init__.py | mwojcikowski/opendrugdiscovery | 174b22f6a9378bfbb1f435a6e71cad13218e5e6d | [
"BSD-3-Clause"
] | null | null | null | oddt/scoring/functions/__init__.py | mwojcikowski/opendrugdiscovery | 174b22f6a9378bfbb1f435a6e71cad13218e5e6d | [
"BSD-3-Clause"
] | null | null | null | from .RFScore import rfscore
from .NNScore import nnscore
__all__ = ['rfscore', 'nnscore']
| 18.4 | 32 | 0.75 | 11 | 92 | 5.909091 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 92 | 4 | 33 | 23 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
097f25194131547181a422a1632ae39e9de574d6 | 1,110 | py | Python | tools/scoring/dimensions/entity/connection_identification.py | ahemphill/digitalbuildings | 56a03b0055f9f771c3ed0a962f6bfb2b1d968947 | [
"Apache-2.0"
] | null | null | null | tools/scoring/dimensions/entity/connection_identification.py | ahemphill/digitalbuildings | 56a03b0055f9f771c3ed0a962f6bfb2b1d968947 | [
"Apache-2.0"
] | null | null | null | tools/scoring/dimensions/entity/connection_identification.py | ahemphill/digitalbuildings | 56a03b0055f9f771c3ed0a962f6bfb2b1d968947 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 29.210526 | 78 | 0.769369 | 155 | 1,110 | 5.483871 | 0.670968 | 0.070588 | 0.030588 | 0.037647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.167568 | 1,110 | 37 | 79 | 30 | 0.911255 | 0.858559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
098d7e7d695e220d942c49498f755e6fd11b63b9 | 302 | py | Python | numba/nodes/bitwise.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | numba/nodes/bitwise.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | numba/nodes/bitwise.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import ast
from numba.nodes import *
from numba import typesystem
def is_bitwise(op):
return isinstance(op, (ast.BitAnd, ast.BitOr, ast.BitXor,
ast.LShift, ast.RShift, ast.Invert))
| 30.2 | 64 | 0.68543 | 40 | 302 | 5 | 0.65 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.208609 | 302 | 9 | 65 | 33.555556 | 0.832636 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0.142857 | 0.857143 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 4 |
099b3998ec6594f107e88d4dc335fde806a6e990 | 231 | py | Python | pyvalidator/utils/includes.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 15 | 2021-11-01T14:14:56.000Z | 2022-03-17T11:52:29.000Z | pyvalidator/utils/includes.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 1 | 2022-03-16T13:39:16.000Z | 2022-03-17T09:16:00.000Z | pyvalidator/utils/includes.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | null | null | null | def includes(list, val):
return val in list
def includesNot(list, val):
return val not in list
def includesSome(list, listVal):
for item in listVal:
if item in list:
return True
return False
| 16.5 | 32 | 0.636364 | 33 | 231 | 4.454545 | 0.454545 | 0.122449 | 0.176871 | 0.217687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 231 | 13 | 33 | 17.769231 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
09c229700e438633ec5e16ce0063c5c31acdbd91 | 177 | py | Python | 03.Complete Python Developer - Zero to Mastery - AN/03.Advanced Python Object Oriented Programming/mro example.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 3 | 2020-06-01T04:17:18.000Z | 2020-12-18T03:05:55.000Z | 03.Complete Python Developer - Zero to Mastery - AN/03.Advanced Python Object Oriented Programming/mro example.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 1 | 2020-04-25T08:01:59.000Z | 2020-04-25T08:01:59.000Z | 03.Complete Python Developer - Zero to Mastery - AN/03.Advanced Python Object Oriented Programming/mro example.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 7 | 2020-04-26T10:02:36.000Z | 2021-06-08T05:12:46.000Z | # https://data-flair.training/blogs/python-multiple-inheritance/
class X:pass
class Y: pass
class Z:pass
class A(X,Y):pass
class B(Y,Z):pass
class M(B,A,Z):pass
print(M.mro()) | 17.7 | 64 | 0.723164 | 36 | 177 | 3.555556 | 0.5 | 0.351563 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096045 | 177 | 10 | 65 | 17.7 | 0.8 | 0.350282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.857143 | 0 | 0 | 0.857143 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
09df289ceb225a0f1cdb372b38af5c1fb6a84e1f | 16,626 | py | Python | length/tests.py | Tiki92/converter | a14582bfec5b3cc4b5bb299f2fe1c55cb7ef4437 | [
"MIT"
] | null | null | null | length/tests.py | Tiki92/converter | a14582bfec5b3cc4b5bb299f2fe1c55cb7ef4437 | [
"MIT"
] | null | null | null | length/tests.py | Tiki92/converter | a14582bfec5b3cc4b5bb299f2fe1c55cb7ef4437 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.urls import reverse
class TestLengthConversion(TestCase):
"""
This class contains tests that convert measurements from one
unit of measurement to another.
"""
def setUp(self):
"""
This method runs before the execution of each te... | 32.22093 | 64 | 0.562312 | 1,813 | 16,626 | 4.944291 | 0.097628 | 0.062472 | 0.079764 | 0.116577 | 0.836457 | 0.830768 | 0.781348 | 0.730366 | 0.503458 | 0.503458 | 0 | 0.063386 | 0.313004 | 16,626 | 515 | 65 | 32.283495 | 0.721415 | 0.01221 | 0 | 0.576233 | 0 | 0 | 0.150465 | 0 | 0 | 0 | 0 | 0 | 0.123318 | 1 | 0.125561 | false | 0 | 0.004484 | 0 | 0.132287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
09e90523a6979663cb3a2a00a42b07163debeb4e | 231 | py | Python | backend/Sapereaude.py | josuuribe/sapereaude | 2e221fa9c5cc5c1a5fa927146e15bfd950766009 | [
"Apache-2.0"
] | null | null | null | backend/Sapereaude.py | josuuribe/sapereaude | 2e221fa9c5cc5c1a5fa927146e15bfd950766009 | [
"Apache-2.0"
] | null | null | null | backend/Sapereaude.py | josuuribe/sapereaude | 2e221fa9c5cc5c1a5fa927146e15bfd950766009 | [
"Apache-2.0"
] | null | null | null | import sys
from Console import Console
sys.path.extend(['E:\\Proyectos\\sapereaude', 'E:\\Proyectos\\sapereaude\\backend', 'E:/Proyectos/sapereaude'])
if __name__ == '__main__':
console = Console(sys.argv)
console.show()
| 25.666667 | 111 | 0.705628 | 28 | 231 | 5.535714 | 0.535714 | 0.193548 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 231 | 8 | 112 | 28.875 | 0.759804 | 0 | 0 | 0 | 0 | 0 | 0.38961 | 0.354978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
09f997c8abcb17d8247317e2687e858b53a84afa | 148 | py | Python | tests/test_easy_problems/test_1_to_50/test_two_sum_ii.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | null | null | null | tests/test_easy_problems/test_1_to_50/test_two_sum_ii.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | 1 | 2021-09-22T12:26:14.000Z | 2021-09-22T12:26:14.000Z | tests/test_easy_problems/test_1_to_50/test_two_sum_ii.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | null | null | null | from faker import Faker
import unittest
class TestTwoNumbersTestCase(unittest.TestCase):
def test_empty(self):
self.assertEqual(1,1) | 16.444444 | 48 | 0.75 | 18 | 148 | 6.111111 | 0.722222 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.175676 | 148 | 9 | 49 | 16.444444 | 0.885246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
61edae10e2e232866444d739766c12f05260df3d | 249 | py | Python | mmcls/models/necks/__init__.py | apulis/ApulisVision | d1f226f4bc769b03c5565b9d6e76dd9823771cc7 | [
"Apache-2.0"
] | 1 | 2020-09-09T05:10:39.000Z | 2020-09-09T05:10:39.000Z | mmcls/models/necks/__init__.py | apulis/ApulisVision | d1f226f4bc769b03c5565b9d6e76dd9823771cc7 | [
"Apache-2.0"
] | null | null | null | mmcls/models/necks/__init__.py | apulis/ApulisVision | d1f226f4bc769b03c5565b9d6e76dd9823771cc7 | [
"Apache-2.0"
] | 1 | 2021-03-31T02:00:13.000Z | 2021-03-31T02:00:13.000Z | from .adaptive_avgmaxpool2d import AdaptiveAvgMaxPool2d
from .adaptive_catavgmaxpool2d import AdaptiveCatAvgMaxPool2d
from .gap import GlobalAveragePooling
__all__ = [
'GlobalAveragePooling', 'AdaptiveAvgMaxPool2d', 'AdaptiveCatAvgMaxPool2d'
]
| 31.125 | 77 | 0.84739 | 18 | 249 | 11.388889 | 0.555556 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.096386 | 249 | 7 | 78 | 35.571429 | 0.884444 | 0 | 0 | 0 | 0 | 0 | 0.253012 | 0.092369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1113cef620acb8aaf313b7e4db4a75d5db02ae61 | 102 | py | Python | file_and_io/chdir.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | file_and_io/chdir.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | file_and_io/chdir.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
# -*- coding: UTF-8 -*-
import os
# 将当前目录改为"/home/newdir"
os.chdir("/tmp") | 14.571429 | 24 | 0.568627 | 14 | 102 | 4.142857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.186275 | 102 | 7 | 25 | 14.571429 | 0.674699 | 0.598039 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
111a49832cf511f4c23e7b47b76d2fc565b26d2f | 198 | py | Python | server/instances/config.py | Chikuji/intelligent-systems-project | 9b5e6e8ece24ecbf198ba717b86f1255df00373b | [
"MIT"
] | null | null | null | server/instances/config.py | Chikuji/intelligent-systems-project | 9b5e6e8ece24ecbf198ba717b86f1255df00373b | [
"MIT"
] | null | null | null | server/instances/config.py | Chikuji/intelligent-systems-project | 9b5e6e8ece24ecbf198ba717b86f1255df00373b | [
"MIT"
] | null | null | null | import os
MODEL_PATH = os.environ['MODEL_PATH']
NLTK_STOPWORDS_PATH = os.environ['API_DIR'] + os.environ['NLTK_STOPWORDS_PATH']
JSON_TEST = os.environ['API_DIR'] + os.environ['JSON_TEST'] | 33 | 79 | 0.722222 | 30 | 198 | 4.433333 | 0.366667 | 0.338346 | 0.195489 | 0.225564 | 0.360902 | 0.360902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126263 | 198 | 6 | 80 | 33 | 0.768786 | 0 | 0 | 0 | 0 | 0 | 0.261307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1132c536d33aea4d0af3365706885bd1836b3f8c | 263 | py | Python | main/serializer.py | mayconabe/djangorest | 22b582188685831ac189216ca91b403ec60fc33e | [
"MIT"
] | 1 | 2022-01-11T22:16:34.000Z | 2022-01-11T22:16:34.000Z | main/serializer.py | mayconabe/djangorest | 22b582188685831ac189216ca91b403ec60fc33e | [
"MIT"
] | null | null | null | main/serializer.py | mayconabe/djangorest | 22b582188685831ac189216ca91b403ec60fc33e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from main.models import Usuario
class UsuarioSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Usuario
fields = ['url', 'id', 'nome', 'sobrenome', 'data_nasc', 'idade', 'is_admin'] | 32.875 | 85 | 0.714829 | 28 | 263 | 6.607143 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171103 | 263 | 8 | 85 | 32.875 | 0.848624 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
114d734204b71ab9b24c4a0b9836ae798d6336ac | 7,006 | py | Python | graylog/models/__init__.py | yumimobi/graylog.py | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | [
"Apache-2.0"
] | 10 | 2016-09-27T08:13:22.000Z | 2018-09-04T13:15:42.000Z | graylog/models/__init__.py | yumimobi/graylog.py | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | [
"Apache-2.0"
] | 1 | 2019-08-28T16:16:09.000Z | 2019-08-28T16:16:09.000Z | graylog/models/__init__.py | yumimobi/graylog.py | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | [
"Apache-2.0"
] | 5 | 2016-11-03T07:45:18.000Z | 2021-08-19T14:21:49.000Z | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.1.1+01d50e5
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you m... | 46.397351 | 104 | 0.878533 | 823 | 7,006 | 7.233293 | 0.402187 | 0.052411 | 0.009575 | 0.007055 | 0.012767 | 0.012767 | 0.012767 | 0 | 0 | 0 | 0 | 0.002051 | 0.09549 | 7,006 | 150 | 105 | 46.706667 | 0.937352 | 0.110762 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.008 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fefe881a3a4f8e5e6ea6c1c0e39fd59b43d84b17 | 500 | py | Python | __version__.py | alexanderepstein/cryptowatch | 7fed9abe67b32e5a7dff798b8f8d8f1f9bbcdd53 | [
"MIT"
] | 331 | 2017-09-10T05:23:05.000Z | 2022-03-07T14:51:04.000Z | __version__.py | alexanderepstein/cryptowatch | 7fed9abe67b32e5a7dff798b8f8d8f1f9bbcdd53 | [
"MIT"
] | 16 | 2017-09-10T14:03:50.000Z | 2021-05-26T19:35:53.000Z | __version__.py | alexanderepstein/cryptowatch | 7fed9abe67b32e5a7dff798b8f8d8f1f9bbcdd53 | [
"MIT"
] | 44 | 2017-09-10T08:15:15.000Z | 2021-03-13T11:05:14.000Z | #_________ __ __ .__
#\_ ___ \_______ ___.__._______/ |_ ______ _ _______ _/ |_ ____ | |__
#/ \ \/\_ __ < | |\____ \ __\/ _ \ \/ \/ /\__ \\ __\/ ___\| | \
#\ \____| | \/\___ || |_> > | ( <_> ) / / __ \| | \ \___| Y \
# \_... | 62.5 | 80 | 0.286 | 5 | 500 | 2.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0.494 | 500 | 7 | 81 | 71.428571 | 0.031621 | 0.93 | 0 | 0 | 0 | 0 | 0.206897 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a186f95dc329e5b36a42bc2f5c86ee955952334 | 301 | py | Python | tests/test_base.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | 1 | 2021-10-19T20:00:02.000Z | 2021-10-19T20:00:02.000Z | tests/test_base.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | null | null | null | tests/test_base.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | null | null | null | from django_google_json_style_api import base
class TestSnakeToCamel:
"""This test covers _snake_to_camel method"""
def test_snake_string(self):
assert base._snake_to_camel("snake_case") == "snakeCase"
def test_empty_string(self):
assert base._snake_to_camel("") == ""
| 25.083333 | 64 | 0.714286 | 40 | 301 | 4.925 | 0.6 | 0.106599 | 0.182741 | 0.203046 | 0.324873 | 0.324873 | 0.324873 | 0 | 0 | 0 | 0 | 0 | 0.182724 | 301 | 11 | 65 | 27.363636 | 0.800813 | 0.129568 | 0 | 0 | 0 | 0 | 0.074219 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
28b455cec802b6f8afe2a8282f3ee6af751fd355 | 165 | py | Python | ex014.py | lucaspereirag/pythonProject | 15a88762ca94322918474537bbed13e0ed2b60a6 | [
"MIT"
] | null | null | null | ex014.py | lucaspereirag/pythonProject | 15a88762ca94322918474537bbed13e0ed2b60a6 | [
"MIT"
] | null | null | null | ex014.py | lucaspereirag/pythonProject | 15a88762ca94322918474537bbed13e0ed2b60a6 | [
"MIT"
] | null | null | null | temperatura = float(input('Informe a temperatura em ºC: '))
fahrenheit = ((temperatura * 9 / 5) + 32)
print('A temperatura em fahrenheit: {}ºF'.format(fahrenheit))
| 33 | 61 | 0.70303 | 21 | 165 | 5.52381 | 0.666667 | 0.206897 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.139394 | 165 | 4 | 62 | 41.25 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0.375758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
28b6b4cbeb419fa3110b255d25a672e71ce93ced | 151 | py | Python | src/fatsecret/__init__.py | walexnelson/pyfatsecret | 15c8a48d144c2682df7374b72f154629e00f5b4b | [
"MIT"
] | 21 | 2015-01-18T16:46:07.000Z | 2022-02-15T00:52:55.000Z | src/fatsecret/__init__.py | walexnelson/pyfatsecret | 15c8a48d144c2682df7374b72f154629e00f5b4b | [
"MIT"
] | 3 | 2017-03-13T20:51:08.000Z | 2019-02-07T01:29:29.000Z | src/fatsecret/__init__.py | walexnelson/pyfatsecret | 15c8a48d144c2682df7374b72f154629e00f5b4b | [
"MIT"
] | 23 | 2015-02-17T07:09:39.000Z | 2021-09-16T03:42:12.000Z | from .fatsecret import (
Fatsecret,
BaseFatsecretError,
GeneralError,
AuthenticationError,
ParameterError,
ApplicationError,
)
| 16.777778 | 24 | 0.708609 | 9 | 151 | 11.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231788 | 151 | 8 | 25 | 18.875 | 0.922414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
28e8cdf813504f8779296e61c5f00c178b1cdc97 | 251 | py | Python | toontown/estate/DistributedFlowerAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/estate/DistributedFlowerAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/estate/DistributedFlowerAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 57 | 2019-11-03T07:47:37.000Z | 2022-03-22T00:41:49.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedFlowerAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedFlowerAI')
| 41.833333 | 79 | 0.876494 | 19 | 251 | 11.578947 | 0.578947 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071713 | 251 | 5 | 80 | 50.2 | 0.944206 | 0 | 0 | 0 | 0 | 0 | 0.075697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
28f60232c33615cd20a787c09f6df3961f2cc8c8 | 153 | py | Python | handle_alerts.py | mandano/bitvavo_trailing_stop | 491e9296d377265ef6837a6c1dd3898e4af334aa | [
"MIT"
] | null | null | null | handle_alerts.py | mandano/bitvavo_trailing_stop | 491e9296d377265ef6837a6c1dd3898e4af334aa | [
"MIT"
] | null | null | null | handle_alerts.py | mandano/bitvavo_trailing_stop | 491e9296d377265ef6837a6c1dd3898e4af334aa | [
"MIT"
] | 1 | 2021-05-24T17:48:44.000Z | 2021-05-24T17:48:44.000Z | from models.AlertHandler import AlertHandler
import main
if __name__ == '__main__':
ah = AlertHandler()
ah.update_alerts()
ah.save_alerts()
| 19.125 | 44 | 0.718954 | 18 | 153 | 5.555556 | 0.611111 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183007 | 153 | 7 | 45 | 21.857143 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e919e887d4c153790e4189bcd45029bc440fa729 | 47 | py | Python | Chapter04/lambda_python.py | PacktPublishing/Python-Data-Science-with-AI-for-Noobs | d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830 | [
"MIT"
] | 8 | 2019-02-21T15:50:38.000Z | 2021-11-08T13:10:49.000Z | Chapter04/lambda_python.py | PacktPublishing/Python-Data-Science-with-AI-for-Noobs | d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830 | [
"MIT"
] | null | null | null | Chapter04/lambda_python.py | PacktPublishing/Python-Data-Science-with-AI-for-Noobs | d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830 | [
"MIT"
] | 7 | 2018-12-26T08:17:22.000Z | 2020-08-24T08:23:11.000Z | answer = lambda number, power : number ** power | 47 | 47 | 0.723404 | 6 | 47 | 5.666667 | 0.666667 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 1 | 47 | 47 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
e91c96e21cb1ff9943d8b3d125261e111534f489 | 124 | py | Python | Shishkin_Anatoliy_lesson_4/hello/hello_module.py | kpu3uc/1824_GB_Python_1 | 3759379fc99a815f546f4497974a11aacf49df0a | [
"MIT"
] | 2 | 2021-11-01T20:52:13.000Z | 2021-11-01T20:52:23.000Z | Shishkin_Anatoliy_lesson_4/hello/hello_module.py | kpu3uc/1824_GB_Python_1 | 3759379fc99a815f546f4497974a11aacf49df0a | [
"MIT"
] | null | null | null | Shishkin_Anatoliy_lesson_4/hello/hello_module.py | kpu3uc/1824_GB_Python_1 | 3759379fc99a815f546f4497974a11aacf49df0a | [
"MIT"
] | 3 | 2021-11-05T06:25:18.000Z | 2021-11-17T17:50:09.000Z | def say_hello(name):
print(f'Привет, {name}!')
def hello2(attr):
pass
if __name__ == '__main__':
print(__name__)
| 13.777778 | 28 | 0.645161 | 17 | 124 | 3.941176 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.185484 | 124 | 8 | 29 | 15.5 | 0.653465 | 0 | 0 | 0 | 0 | 0 | 0.185484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e92baa427fb6a1a20aebab2ba96eba4e8c170ef6 | 217 | py | Python | NewPee/Authors/function_handler.py | CMPUT404W19T3/NewPee | ba34341e0407746c12aec72689e50fbc2054ae77 | [
"MIT"
] | 2 | 2019-02-19T17:11:58.000Z | 2019-02-19T17:19:28.000Z | NewPee/Authors/function_handler.py | CMPUT404W19T3/NewPee | ba34341e0407746c12aec72689e50fbc2054ae77 | [
"MIT"
] | 74 | 2019-02-01T17:15:02.000Z | 2022-03-08T21:09:44.000Z | NewPee/Authors/function_handler.py | CMPUT404W19T3/NewPee | ba34341e0407746c12aec72689e50fbc2054ae77 | [
"MIT"
] | 1 | 2019-03-15T16:09:51.000Z | 2019-03-15T16:09:51.000Z | from django.contrib.auth.models import User
from django.db import models
from models import Author
import uuid
def check_friend_status(User1ID, User2ID):
pass
def check_username_availablity(user1ID):
pass | 16.692308 | 43 | 0.797235 | 31 | 217 | 5.451613 | 0.612903 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.152074 | 217 | 13 | 44 | 16.692308 | 0.902174 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e937e74dfc45e32cf982978d4d1f50ab42262a93 | 232 | py | Python | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name.replace("-", "_") }}/scripts/predict_test.py | MAVJ/orbyter-cookiecutter | c37edca8c45428b619f421e0067d925dfee5c24b | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name.replace("-", "_") }}/scripts/predict_test.py | MAVJ/orbyter-cookiecutter | c37edca8c45428b619f421e0067d925dfee5c24b | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name.replace("-", "_") }}/scripts/predict_test.py | MAVJ/orbyter-cookiecutter | c37edca8c45428b619f421e0067d925dfee5c24b | [
"MIT"
] | null | null | null | from click.testing import CliRunner
from {{cookiecutter.repo_name.replace("-", "_")}}.scripts.predict import main
def test_predict():
runner = CliRunner()
result = runner.invoke(main, [])
assert result.exit_code == 0
| 23.2 | 77 | 0.698276 | 28 | 232 | 5.642857 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.159483 | 232 | 9 | 78 | 25.777778 | 0.805128 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e93a103a0c2d23ebdc3068fcfda7b8efd2c00b63 | 998 | py | Python | test/test_empty.py | BlockMarkets/python-rest-sdk | aa8e9b59ba86ded1da7a6fdcdad3c2ed76efc00e | [
"Apache-2.0"
] | null | null | null | test/test_empty.py | BlockMarkets/python-rest-sdk | aa8e9b59ba86ded1da7a6fdcdad3c2ed76efc00e | [
"Apache-2.0"
] | null | null | null | test/test_empty.py | BlockMarkets/python-rest-sdk | aa8e9b59ba86ded1da7a6fdcdad3c2ed76efc00e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
BlockMarkets Cryptocurrency API
The BlockMarkets API provides real-time and historical market data on cryptocurrencies from the world's leading crypto exchanges. Sign up for a free, unlimited API key at [BlockMarkets Cryptocurrency API](https://www.blockmarkets.io/cryptocurrency-api). # n... | 24.95 | 271 | 0.708417 | 122 | 998 | 5.688525 | 0.614754 | 0.073487 | 0.083573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016414 | 0.206413 | 998 | 39 | 272 | 25.589744 | 0.859848 | 0.559118 | 0 | 0.214286 | 0 | 0 | 0.019901 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.214286 | false | 0.214286 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
e93e7ffbab5dab4b065be05e387eaadd67f6a2f3 | 588 | py | Python | rest_helpers/tests/test_type_deserializers.py | WillFr/restlax | ec47617d915094137077f641427976f04acd8d47 | [
"Apache-2.0"
] | 1 | 2019-07-03T16:29:05.000Z | 2019-07-03T16:29:05.000Z | rest_helpers/tests/test_type_deserializers.py | WillFr/restlax | ec47617d915094137077f641427976f04acd8d47 | [
"Apache-2.0"
] | null | null | null | rest_helpers/tests/test_type_deserializers.py | WillFr/restlax | ec47617d915094137077f641427976f04acd8d47 | [
"Apache-2.0"
] | null | null | null | from rest_helpers import type_deserializers
class TestTypeDeserializers(object):
def test_bool_deserializer(self):
assert type_deserializers.bool_deserializer("")
assert type_deserializers.bool_deserializer("True")
assert type_deserializers.bool_deserializer("true")
assert not typ... | 39.2 | 64 | 0.761905 | 64 | 588 | 6.6875 | 0.328125 | 0.317757 | 0.294393 | 0.462617 | 0.738318 | 0.518692 | 0.518692 | 0.317757 | 0.317757 | 0.317757 | 0 | 0.004065 | 0.163265 | 588 | 15 | 65 | 39.2 | 0.865854 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a64e7d7a7955f280699f6c9800209bef540c37c | 568 | py | Python | components/mpas-seaice/testing_and_setup/testcases/square/square_quadhex/run_testcase.py | Fa-Li/E3SM | a91995093ec6fc0dd6e50114f3c70b5fb64de0f0 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | 235 | 2018-04-23T16:30:06.000Z | 2022-03-21T17:53:12.000Z | components/mpas-seaice/testing_and_setup/testcases/square/square_quadhex/run_testcase.py | Fa-Li/E3SM | a91995093ec6fc0dd6e50114f3c70b5fb64de0f0 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | 2,372 | 2018-04-20T18:12:34.000Z | 2022-03-31T23:43:17.000Z | components/mpas-seaice/testing_and_setup/testcases/square/square_quadhex/run_testcase.py | Fa-Li/E3SM | a91995093ec6fc0dd6e50114f3c70b5fb64de0f0 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | 254 | 2018-04-20T20:43:32.000Z | 2022-03-30T20:13:38.000Z | from create_grids import create_grids
from create_ics import create_ics
from run_model import run_model
from set_difference_fields import set_difference_fields
from plot_testcase import plot_testcase
#-------------------------------------------------------------------------------
def run_square_quadhex_testcase():
... | 21.846154 | 80 | 0.56338 | 55 | 568 | 5.236364 | 0.327273 | 0.114583 | 0.197917 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 568 | 25 | 81 | 22.72 | 0.576 | 0.278169 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.384615 | 0 | 0.461538 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3a8d77b07a0f3b34d2c3240c2a9bdaf7c5b77fe5 | 311 | py | Python | sleepless/app/views/dashboard.py | Shagrat/eye-of-sauron | a80072f7af0fd6d324532eb405e831e34267d797 | [
"MIT"
] | null | null | null | sleepless/app/views/dashboard.py | Shagrat/eye-of-sauron | a80072f7af0fd6d324532eb405e831e34267d797 | [
"MIT"
] | null | null | null | sleepless/app/views/dashboard.py | Shagrat/eye-of-sauron | a80072f7af0fd6d324532eb405e831e34267d797 | [
"MIT"
] | null | null | null | """
Dashboard module provides classes and functions to generate and return HTML
pages as responses
"""
from flask import render_template
from flask.views import View
class ShowDashboard(View):
"""
Default Index View
"""
def dispatch_request(self):
return render_template('index.html')
| 20.733333 | 75 | 0.726688 | 39 | 311 | 5.717949 | 0.717949 | 0.080717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196141 | 311 | 14 | 76 | 22.214286 | 0.892 | 0.363344 | 0 | 0 | 1 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
3ac226599b198d8de40276e63e1187fe1769aadd | 290 | py | Python | gehomesdk/erd/converters/specialized/erd_unit_type_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/specialized/erd_unit_type_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/specialized/erd_unit_type_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | from ..abstract import ErdReadOnlyConverter
from ..primitives import *
from gehomesdk.erd.values.common import ErdUnitType
class ErdUnitTypeConverter(ErdReadOnlyConverter[ErdUnitType]):
def erd_decode(self, value: str) -> ErdUnitType:
return ErdUnitType(erd_decode_int(value))
| 36.25 | 62 | 0.796552 | 31 | 290 | 7.354839 | 0.612903 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 290 | 7 | 63 | 41.428571 | 0.894118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
3ace3050877e325265a65529d34908ee0bf1bc6c | 277 | py | Python | web/registry/admin.py | dimitrios-ath/agentos | e01d13447c52cdcecef6a1ecaadcf6160df1d104 | [
"Apache-2.0"
] | 1 | 2021-10-04T19:32:31.000Z | 2021-10-04T19:32:31.000Z | web/registry/admin.py | andyk/agentos | 2f5fc5443bfae586c3a9fc7c5bffcca860a0d878 | [
"Apache-2.0"
] | 2 | 2021-02-19T20:16:26.000Z | 2022-01-03T15:06:50.000Z | web/registry/admin.py | andyk/agentos | 2f5fc5443bfae586c3a9fc7c5bffcca860a0d878 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Component
from .models import ComponentDependency
from .models import Repo
from .models import Run
admin.site.register(Component)
admin.site.register(ComponentDependency)
admin.site.register(Repo)
admin.site.register(Run)
| 23.083333 | 40 | 0.830325 | 37 | 277 | 6.216216 | 0.324324 | 0.173913 | 0.278261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093863 | 277 | 11 | 41 | 25.181818 | 0.916335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ad49ff5e2c9c04518b68b0bd654ca424042bbe6 | 150 | py | Python | daru_wheel/apps.py | gibeongideon/daruapp | 20c454023674aeb66bf6c2880e81a8a00a4c92bc | [
"Unlicense",
"MIT"
] | 3 | 2021-05-26T12:38:22.000Z | 2021-06-26T12:49:29.000Z | daru_wheel/apps.py | gibeongideon/daruapp | 20c454023674aeb66bf6c2880e81a8a00a4c92bc | [
"Unlicense",
"MIT"
] | null | null | null | daru_wheel/apps.py | gibeongideon/daruapp | 20c454023674aeb66bf6c2880e81a8a00a4c92bc | [
"Unlicense",
"MIT"
] | 1 | 2021-05-04T05:45:26.000Z | 2021-05-04T05:45:26.000Z | from django.apps import AppConfig
class DaruWheelConfig(AppConfig):
name = "daru_wheel"
def ready(self):
import daru_wheel.signals
| 16.666667 | 33 | 0.713333 | 18 | 150 | 5.833333 | 0.777778 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213333 | 150 | 8 | 34 | 18.75 | 0.889831 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aafd7c70a8306019e1f8cbe4e39a0d85c7869a3b | 576 | py | Python | SourceCode/Python/Graphs/Graph.py | ChalmersGU-data-structure-courses/OpenDSA | abfc48391336cb6d118a065550816c0bb8665767 | [
"MIT"
] | null | null | null | SourceCode/Python/Graphs/Graph.py | ChalmersGU-data-structure-courses/OpenDSA | abfc48391336cb6d118a065550816c0bb8665767 | [
"MIT"
] | 1 | 2021-11-09T10:15:47.000Z | 2021-11-10T12:21:45.000Z | SourceCode/Python/Graphs/Graph.py | ChalmersGU-data-structure-courses/OpenDSA | abfc48391336cb6d118a065550816c0bb8665767 | [
"MIT"
] | null | null | null | #/* *** ODSATag: GraphADT *** */
class Graph:
def nodeCount(self): raise NotImplementedError
def edgeCount(self): raise NotImplementedError
def getValue(self, v): raise NotImplementedError
def setValue(self, v, val): raise NotImplementedError
def addEdge(self, v, w, wgt): raise NotImplementedError
... | 44.307692 | 59 | 0.715278 | 64 | 576 | 6.4375 | 0.34375 | 0.524272 | 0.524272 | 0.080097 | 0.240291 | 0.240291 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 576 | 12 | 60 | 48 | 0.863732 | 0.112847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.9 | false | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c91163aa49a473629dd65ef99f5b49cb9fa6b632 | 434 | py | Python | portfolio/views.py | shyuldashov/my-portfolio-root | 7b8f4dfcdedd61aa44a75844b76d9d286f05ea68 | [
"MIT"
] | null | null | null | portfolio/views.py | shyuldashov/my-portfolio-root | 7b8f4dfcdedd61aa44a75844b76d9d286f05ea68 | [
"MIT"
] | null | null | null | portfolio/views.py | shyuldashov/my-portfolio-root | 7b8f4dfcdedd61aa44a75844b76d9d286f05ea68 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Project
def home(request):
projects = Project.objects.all()
# post_title = Project.title
# post_description = Project.description
# post_image = Project.image
# post_url = Project.title
return render(request, 'portfolio/home.html', {'proj... | 27.125 | 73 | 0.728111 | 53 | 434 | 5.830189 | 0.509434 | 0.07767 | 0.122977 | 0.18123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008287 | 0.165899 | 434 | 15 | 74 | 28.933333 | 0.845304 | 0.269585 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.