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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e0f55cd3aa79697bce0973576f40551777dd8c0 | 728 | py | Python | liquid/python/tags/inherited.py | pemontto/liquidpy | bf84d631a2ecab0c020ba883bf2a09042715f772 | [
"Apache-2.0"
] | null | null | null | liquid/python/tags/inherited.py | pemontto/liquidpy | bf84d631a2ecab0c020ba883bf2a09042715f772 | [
"Apache-2.0"
] | null | null | null | liquid/python/tags/inherited.py | pemontto/liquidpy | bf84d631a2ecab0c020ba883bf2a09042715f772 | [
"Apache-2.0"
] | null | null | null | """About tags inherited from standard mode
Attributes
BASE_GRAMMAR: The base grammar for python mode
tag_manager: The tag manager for python mode
"""
from pathlib import Path
from ...tags.manager import TagManager as TagManagerStandard
from ...tags.grammar import Grammar
from ...tags.tag import Tag as TagStand... | 29.12 | 78 | 0.741758 | 97 | 728 | 5.453608 | 0.371134 | 0.10397 | 0.049149 | 0.056711 | 0.071834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167582 | 728 | 24 | 79 | 30.333333 | 0.872937 | 0.399725 | 0 | 0 | 0 | 0 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4e1250b3a0035feb90528471a9285da3a2f81ada | 1,561 | py | Python | tests/test_torchvision.py | osai-ai/dockai | 61cf10567cced9b8a5af2855ec880e8730532916 | [
"MIT"
] | null | null | null | tests/test_torchvision.py | osai-ai/dockai | 61cf10567cced9b8a5af2855ec880e8730532916 | [
"MIT"
] | null | null | null | tests/test_torchvision.py | osai-ai/dockai | 61cf10567cced9b8a5af2855ec880e8730532916 | [
"MIT"
] | null | null | null | from time import sleep
import pytest
import torch
from torchvision.ops import roi_align
class TestTorchvision:
@pytest.fixture(scope="class", params=[3, 17])
def num_points(self, request):
return request.param
@pytest.fixture(scope="class", params=[10, 64])
def width(self, request):
... | 31.857143 | 95 | 0.647662 | 208 | 1,561 | 4.817308 | 0.317308 | 0.077844 | 0.107784 | 0.137725 | 0.334331 | 0.276447 | 0.241517 | 0.187625 | 0.187625 | 0.187625 | 0 | 0.03231 | 0.206919 | 1,561 | 48 | 96 | 32.520833 | 0.77706 | 0 | 0 | 0.2 | 0 | 0 | 0.028187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.114286 | 0.142857 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4e1a546f6ea25dfb6456e34048120a18e209eaa0 | 208 | py | Python | celery_task/__init__.py | yougaUsth/simple-celery | 08ecf86933507dee79429f6e906c7d2eb799856c | [
"MIT"
] | null | null | null | celery_task/__init__.py | yougaUsth/simple-celery | 08ecf86933507dee79429f6e906c7d2eb799856c | [
"MIT"
] | null | null | null | celery_task/__init__.py | yougaUsth/simple-celery | 08ecf86933507dee79429f6e906c7d2eb799856c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from celery import Celery, platforms
app = Celery("task")
app.config_from_object('celery_task.celery_config')
platforms.C_FORCE_ROOT = True
| 18.909091 | 51 | 0.769231 | 29 | 208 | 5.137931 | 0.62069 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.120192 | 208 | 10 | 52 | 20.8 | 0.808743 | 0.100962 | 0 | 0 | 0 | 0 | 0.156757 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4e210c17ece556dcd920b2bb641d6a18a1587dc6 | 8,015 | py | Python | testing/plugin_instance_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 1 | 2020-04-10T09:47:54.000Z | 2020-04-10T09:47:54.000Z | testing/plugin_instance_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 10 | 2019-05-30T18:29:10.000Z | 2020-02-15T02:16:42.000Z | testing/plugin_instance_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 2 | 2020-02-04T02:56:21.000Z | 2020-04-25T20:05:16.000Z | import os
import sys
import unittest
import uuid
from nanome import PluginInstance
from nanome.api.plugin_instance import _DefaultPlugin
from nanome.api import structure, ui
from nanome.util import enums, Vector3, Quaternion, config
if sys.version_info.major >= 3:
from unittest.mock import MagicMock
e... | 35.464602 | 92 | 0.684841 | 982 | 8,015 | 5.253564 | 0.190428 | 0.154681 | 0.191898 | 0.072495 | 0.357821 | 0.283001 | 0.215158 | 0.171933 | 0.100407 | 0.077922 | 0 | 0.005197 | 0.231815 | 8,015 | 225 | 93 | 35.622222 | 0.832711 | 0.037555 | 0 | 0.106509 | 0 | 0 | 0.019511 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 1 | 0.272189 | false | 0 | 0.059172 | 0 | 0.337278 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e2febb20e4d67a6dafa8818361872984d650fb8 | 1,659 | py | Python | tests/test_decorators.py | markin/elmo-alerting | 7562f8f05acbe9632a2e6c19da72d15c571b9e75 | [
"BSD-3-Clause"
] | null | null | null | tests/test_decorators.py | markin/elmo-alerting | 7562f8f05acbe9632a2e6c19da72d15c571b9e75 | [
"BSD-3-Clause"
] | null | null | null | tests/test_decorators.py | markin/elmo-alerting | 7562f8f05acbe9632a2e6c19da72d15c571b9e75 | [
"BSD-3-Clause"
] | null | null | null | from threading import Lock
import pytest
from elmo.api.decorators import require_lock, require_session
from elmo.api.exceptions import LockNotAcquired, PermissionDenied
def test_require_session_present():
"""Should succeed if a session ID is available."""
class TestClient(object):
def __init__(self... | 22.418919 | 65 | 0.615431 | 183 | 1,659 | 5.360656 | 0.251366 | 0.056065 | 0.057085 | 0.097859 | 0.574924 | 0.546381 | 0.546381 | 0.477064 | 0.477064 | 0.308869 | 0 | 0.0103 | 0.29777 | 1,659 | 73 | 66 | 22.726027 | 0.83176 | 0.156721 | 0 | 0.697674 | 0 | 0 | 0.002909 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.27907 | false | 0 | 0.093023 | 0.093023 | 0.55814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4e3d4fa1300fa48573b88c6315f270637f616d76 | 1,631 | py | Python | tests/test_res_check_metaclass.py | misaki-sugiyama/unladen-chant | 28ac51ed9ef6eba8da8b5dafd13cf3abc1e63d5c | [
"Apache-2.0"
] | null | null | null | tests/test_res_check_metaclass.py | misaki-sugiyama/unladen-chant | 28ac51ed9ef6eba8da8b5dafd13cf3abc1e63d5c | [
"Apache-2.0"
] | null | null | null | tests/test_res_check_metaclass.py | misaki-sugiyama/unladen-chant | 28ac51ed9ef6eba8da8b5dafd13cf3abc1e63d5c | [
"Apache-2.0"
] | null | null | null | import pytest
pytestmark = pytest.mark.forked
from unladenchant.resourcecheck import MetaMixinResourceChecker
class MetaClassTest(MetaMixinResourceChecker, type):
pass
class BaseClass(metaclass=MetaClassTest):
pass
## Testing pass and failure
def rescheckPassed():
return True
def rescheckFailed():
r... | 26.737705 | 63 | 0.698958 | 160 | 1,631 | 6.96875 | 0.33125 | 0.03139 | 0.098655 | 0.134529 | 0.455605 | 0.3713 | 0.3713 | 0.3713 | 0.32287 | 0.186547 | 0 | 0.013953 | 0.209074 | 1,631 | 60 | 64 | 27.183333 | 0.850388 | 0.02943 | 0 | 0.340426 | 0 | 0 | 0.043093 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.212766 | false | 0.12766 | 0.042553 | 0.042553 | 0.659574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4e3fe1c8c8818994caf91d65e4c3869ac570639f | 173 | py | Python | Year calculation.py | alaminskaib/PythonPrograms | 0112715d7700a4ebfd0da64a62f8ac20a43f7c79 | [
"MIT"
] | 2 | 2019-11-11T17:19:10.000Z | 2019-11-11T17:22:46.000Z | Year calculation.py | alaminskaib/PythonPrograms | 0112715d7700a4ebfd0da64a62f8ac20a43f7c79 | [
"MIT"
] | null | null | null | Year calculation.py | alaminskaib/PythonPrograms | 0112715d7700a4ebfd0da64a62f8ac20a43f7c79 | [
"MIT"
] | null | null | null | year= int(input("Give the value of year:"))
if((year%4==0 and year%100==0) or (Year%400==0)):
print("This is a leap year")
else:
print("This is not leap year")
| 28.833333 | 50 | 0.606936 | 33 | 173 | 3.181818 | 0.636364 | 0.171429 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0.202312 | 173 | 5 | 51 | 34.6 | 0.688406 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d70ca280f4f08aef01023da8fb208958fa5803b | 460 | py | Python | colos/sfbx/__init__.py | asmodehn/colos | 8894c3a758489b639638ba9aa9c83f7d621648eb | [
"MIT"
] | null | null | null | colos/sfbx/__init__.py | asmodehn/colos | 8894c3a758489b639638ba9aa9c83f7d621648eb | [
"MIT"
] | 4 | 2018-04-11T09:13:05.000Z | 2018-04-11T09:28:18.000Z | colos/sfbx/__init__.py | asmodehn/colos | 8894c3a758489b639638ba9aa9c83f7d621648eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The aim of this package is to :
# - guarantee protected code execution is safe and *will* happen (eventually)
# - report usage via colosstat
# - recover when code fails ( possibly recording previous state, for example )
# one possibility is to implement another levelof ... | 41.818182 | 96 | 0.741304 | 65 | 460 | 5.246154 | 0.8 | 0.035191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002646 | 0.178261 | 460 | 10 | 97 | 46 | 0.899471 | 0.96087 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d7a0f0018ec32fb50d147552cd1d3e28431140d | 306 | py | Python | sonosscripts/modules.py | RobinDeBaets/SonosScripts | e3a4f27259d9881ebdc3176069e7fe428f88c244 | [
"WTFPL"
] | null | null | null | sonosscripts/modules.py | RobinDeBaets/SonosScripts | e3a4f27259d9881ebdc3176069e7fe428f88c244 | [
"WTFPL"
] | 1 | 2019-11-21T20:22:01.000Z | 2019-11-21T20:22:01.000Z | sonosscripts/modules.py | RobinDeBaets/SonosScripts | e3a4f27259d9881ebdc3176069e7fe428f88c244 | [
"WTFPL"
] | 1 | 2020-08-01T18:02:21.000Z | 2020-08-01T18:02:21.000Z |
from sonosscripts import stop, play_pause, previous, next, change_bass, change_volume, mute_volume
modules = {
"stop": stop,
"play_pause": play_pause,
"previous": previous,
"next": next,
"change_bass": change_bass,
"change_volume": change_volume,
"mute_volume": mute_volume
}
| 23.538462 | 98 | 0.69281 | 37 | 306 | 5.405405 | 0.351351 | 0.135 | 0.24 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 306 | 12 | 99 | 25.5 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d872c11430e2faa3e970e4a406f2f735e7a91bc | 122 | py | Python | gaussianmean.py | rjw57/fear-python-example | b95440fff6471d2555dce63ed8b26a0a7c8d2ed1 | [
"MIT"
] | 1 | 2016-06-27T08:28:23.000Z | 2016-06-27T08:28:23.000Z | gaussianmean.py | rjw57/fear-python-example | b95440fff6471d2555dce63ed8b26a0a7c8d2ed1 | [
"MIT"
] | null | null | null | gaussianmean.py | rjw57/fear-python-example | b95440fff6471d2555dce63ed8b26a0a7c8d2ed1 | [
"MIT"
] | null | null | null | import numpy as np
def main():
s = np.mean(np.random.randn(100))
print(s)
if __name__ == '__main__':
main()
| 13.555556 | 37 | 0.598361 | 19 | 122 | 3.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.237705 | 122 | 8 | 38 | 15.25 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9da1d621b03730a6eb8d7bba6dfd398419916f66 | 7,261 | py | Python | test/nba/test_fzrs.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 21 | 2016-03-12T00:59:04.000Z | 2022-03-01T21:32:51.000Z | test/nba/test_fzrs.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 1 | 2017-04-17T04:39:46.000Z | 2017-04-17T04:39:46.000Z | test/nba/test_fzrs.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 4 | 2016-07-25T11:55:52.000Z | 2019-06-19T20:55:53.000Z |
import tempfile
import shutil
import os
import pandas
import numpy as np
import datetime
import pkg_resources
from unittest import TestCase
from dfs.nba.featurizers import feature_generators
from dfs.nba.featurizers import fantasy_points_fzr, last5games_fzr, nf_stats_fzr, vegas_fzr, \
opp_ffpg_fzr, salary_fzr
class... | 49.060811 | 115 | 0.450764 | 792 | 7,261 | 4.026515 | 0.301768 | 0.015679 | 0.01756 | 0.025086 | 0.131703 | 0.054249 | 0.054249 | 0.049859 | 0.049859 | 0.014111 | 0 | 0.27964 | 0.433136 | 7,261 | 148 | 116 | 49.060811 | 0.495141 | 0.037185 | 0 | 0.097744 | 0 | 0.007519 | 0.023476 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 1 | 0.075188 | false | 0 | 0.075188 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9dabb9b1903ea38cf40c186f6bcbd195fb25dff0 | 618 | py | Python | logpot/admin/file.py | moremorefor/logpot | 26a48766dc764f93aa29f6d949af8a05de5d9152 | [
"MIT"
] | 4 | 2016-08-31T08:03:09.000Z | 2019-03-15T07:11:49.000Z | logpot/admin/file.py | moremorefor/logpot | 26a48766dc764f93aa29f6d949af8a05de5d9152 | [
"MIT"
] | 4 | 2021-05-10T00:34:14.000Z | 2022-03-11T23:22:06.000Z | logpot/admin/file.py | moremorefor/logpot | 26a48766dc764f93aa29f6d949af8a05de5d9152 | [
"MIT"
] | 1 | 2017-08-08T22:51:13.000Z | 2017-08-08T22:51:13.000Z | #-*- coding: utf-8 -*-
from logpot.admin.base import AuthenticateView
from logpot.utils import ImageUtil
from flask import flash, redirect
from flask_admin import expose
from flask_admin.contrib.fileadmin import FileAdmin
from flask_admin.babel import gettext
import os
import os.path as op
from operator import itemg... | 24.72 | 53 | 0.775081 | 79 | 618 | 5.860759 | 0.518987 | 0.077754 | 0.090713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001923 | 0.158576 | 618 | 24 | 54 | 25.75 | 0.888462 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.588235 | 0 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9dd308c092689ec19be480b950fd1043adb5873d | 1,139 | py | Python | api-gateway/fcgi/handwritten/python/fcgi_codec.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | 3 | 2022-03-25T17:28:53.000Z | 2022-03-29T03:30:25.000Z | api-gateway/fcgi/handwritten/python/fcgi_codec.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | null | null | null | api-gateway/fcgi/handwritten/python/fcgi_codec.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | 1 | 2022-03-27T12:44:19.000Z | 2022-03-27T12:44:19.000Z | import numpy as np
class CTCCodec(object):
""" Convert index to label """
def __init__(self, char_label, top_k):
# char_label : all the characters.
self.top_k = top_k
self.index = {}
list_character = list(char_label)
for i, char in enumerate(list_character):
... | 30.783784 | 127 | 0.600527 | 147 | 1,139 | 4.401361 | 0.367347 | 0.200927 | 0.216383 | 0.12983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011097 | 0.287972 | 1,139 | 36 | 128 | 31.638889 | 0.786683 | 0.128183 | 0 | 0 | 0 | 0 | 0.007179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9dd7a2e49e2ed72a4a6612efc5a036e4272aa367 | 1,325 | py | Python | toontown/ai/DistributedTrashcanZeroMgr.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/ai/DistributedTrashcanZeroMgr.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/ai/DistributedTrashcanZeroMgr.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 import DistributedObject
from toontown.ai import DistributedPhaseEventMgr
class DistributedTrashcanZeroMgr(DistributedPhaseEventMgr.DistributedPhaseEventMgr):
neverDisable = 1
notify = DirectNotifyGlobal.directNotify.newCategory('Distri... | 42.741935 | 87 | 0.768302 | 101 | 1,325 | 10 | 0.366337 | 0.285149 | 0.10099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00089 | 0.151698 | 1,325 | 30 | 88 | 44.166667 | 0.897687 | 0 | 0 | 0 | 0 | 0 | 0.109434 | 0.06717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9dd8bbfb2717a06b4b3ec45eb064716d069fb7b0 | 269 | py | Python | vibrant_frequencies/cli.py | garstka/vibrant-frequencies | e237bf97089c87ca3e9335ba0d2abd09756b98fc | [
"MIT"
] | 2 | 2019-01-31T15:13:37.000Z | 2020-11-19T03:24:12.000Z | vibrant_frequencies/cli.py | garstka/vibrant-frequencies | e237bf97089c87ca3e9335ba0d2abd09756b98fc | [
"MIT"
] | null | null | null | vibrant_frequencies/cli.py | garstka/vibrant-frequencies | e237bf97089c87ca3e9335ba0d2abd09756b98fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Console script for vibrant_frequencies."""
import logging
import click
from .prototype import visualize
@click.command()
def main():
logging.getLogger('').setLevel(logging.WARN)
visualize()
if __name__ == "__main__":
main()
| 14.944444 | 48 | 0.67658 | 30 | 269 | 5.766667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.167286 | 269 | 17 | 49 | 15.823529 | 0.767857 | 0.230483 | 0 | 0 | 0 | 0 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9de764b4415129ff93630dd93ad535a3c634a3e9 | 625 | py | Python | webapp/models/steps.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | webapp/models/steps.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | webapp/models/steps.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column,Integer,String, Float
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from config.envvar import *
Base = declarative_base()
class Steps(Base):
__tablename__ = "steps"
id = Column(Integer, primary_key=True, autoincrement=True)
recip... | 31.25 | 120 | 0.7184 | 79 | 625 | 5.443038 | 0.468354 | 0.074419 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.1488 | 625 | 19 | 121 | 32.894737 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
9def3bfc70e4954b3590123b603ffa0f9d2385b3 | 79 | py | Python | wmtexe/__init__.py | csdms/wmt-exe | d1e21537135a2d2c442ae6244427b076803d1254 | [
"MIT"
] | null | null | null | wmtexe/__init__.py | csdms/wmt-exe | d1e21537135a2d2c442ae6244427b076803d1254 | [
"MIT"
] | 10 | 2016-02-04T17:55:34.000Z | 2019-03-19T21:10:39.000Z | wmtexe/__init__.py | csdms/wmt-exe | d1e21537135a2d2c442ae6244427b076803d1254 | [
"MIT"
] | 1 | 2015-07-29T22:22:46.000Z | 2015-07-29T22:22:46.000Z | """The CSDMS Web Modeling Tool (WMT) execution server."""
__version__ = '0.3'
| 19.75 | 57 | 0.683544 | 11 | 79 | 4.545455 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.151899 | 79 | 3 | 58 | 26.333333 | 0.716418 | 0.64557 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9df469a37713b98c57237b63b551cab2396ffeab | 4,687 | py | Python | theory/func/bardell/print_bardell_integrals_to_C.py | mrosemeier/compmech | f18f6d0471c72b26a3b014d2df41df3463505eae | [
"BSD-3-Clause"
] | 4 | 2019-02-05T06:12:12.000Z | 2022-03-25T14:41:18.000Z | theory/func/bardell/print_bardell_integrals_to_C.py | saullocastro/panels | 5387daab1ec656b065f7a9be820e2c234e53764e | [
"BSD-3-Clause"
] | null | null | null | theory/func/bardell/print_bardell_integrals_to_C.py | saullocastro/panels | 5387daab1ec656b065f7a9be820e2c234e53764e | [
"BSD-3-Clause"
] | 2 | 2019-06-05T07:19:35.000Z | 2020-12-29T00:22:18.000Z | import os
import glob
from ast import literal_eval
import numpy as np
import sympy
from sympy import pi, sin, cos, var
from sympy.printing import ccode
from compmech.conecyl.sympytools import mprint_as_sparse, pow2mult
var('x1t, x1r, x2t, x2r')
var('y1t, y1r, y2t, y2r')
var('xi1, xi2')
var('c0, c1')
subs = {
... | 34.211679 | 100 | 0.53019 | 564 | 4,687 | 4.251773 | 0.221631 | 0.056297 | 0.010008 | 0.01251 | 0.484153 | 0.449541 | 0.436614 | 0.342786 | 0.307756 | 0.2794 | 0 | 0.032074 | 0.328142 | 4,687 | 136 | 101 | 34.463235 | 0.729438 | 0 | 0 | 0.299145 | 0 | 0 | 0.334756 | 0.071901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094017 | null | null | 0.435897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
9df4e6c48971da6fc4b9921811db567e82ddd1ec | 6,277 | py | Python | src/distributeddictionarylearning.py | att/Distributed-Dictionary-Learning | c6915477dac1ffe7d9a732dd31333d540f5bd00b | [
"MIT"
] | 5 | 2020-07-25T18:44:54.000Z | 2022-03-27T14:14:20.000Z | src/distributeddictionarylearning.py | att/Distributed-Dictionary-Learning | c6915477dac1ffe7d9a732dd31333d540f5bd00b | [
"MIT"
] | null | null | null | src/distributeddictionarylearning.py | att/Distributed-Dictionary-Learning | c6915477dac1ffe7d9a732dd31333d540f5bd00b | [
"MIT"
] | 3 | 2019-09-04T08:04:09.000Z | 2022-03-27T14:14:26.000Z | import time
import numpy as np
from sparsecoding import sparse_encode_omp
from sparsecoding import sparse_encode_nnmp
from distributedpowermethod import distri_powermethod
def cloud_ksvd(X, AtomN, dict_init, s, NodeN, networkGraph, vec_init, max_iter, powerIterations, consensusIterations):
sigdim = ... | 44.204225 | 135 | 0.463916 | 677 | 6,277 | 4.205318 | 0.128508 | 0.097998 | 0.084299 | 0.057956 | 0.784686 | 0.753776 | 0.690903 | 0.659993 | 0.659993 | 0.659993 | 0 | 0.01288 | 0.418671 | 6,277 | 142 | 136 | 44.204225 | 0.767334 | 0 | 0 | 0.657407 | 0 | 0 | 0.011406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.046296 | 0 | 0.083333 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d18d78e18bf3386dbb4d67d5c7497d3685c7a3b5 | 101 | py | Python | src/libsrv/lib/lib__PROJECT_/__init__.py | tecnickcom/pygen | 9c969137b472c100fe8815ec5a52beabd08e179b | [
"MIT"
] | 7 | 2018-04-23T08:03:12.000Z | 2021-01-28T20:44:19.000Z | src/lib/_PROJECT_/__init__.py | tecnickcom/pygen | 9c969137b472c100fe8815ec5a52beabd08e179b | [
"MIT"
] | 1 | 2018-07-09T09:44:54.000Z | 2018-07-09T09:44:54.000Z | src/libapp/lib/lib__PROJECT_/__init__.py | tecnickcom/pygen | 9c969137b472c100fe8815ec5a52beabd08e179b | [
"MIT"
] | 1 | 2018-07-09T09:33:43.000Z | 2018-07-09T09:33:43.000Z | """~#SHORTDESCRIPTION#~"""
__version__ = "1.0.0"
__release__ = "1"
__program_name__ = "~#PROJECT#~"
| 16.833333 | 32 | 0.643564 | 10 | 101 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.108911 | 101 | 5 | 33 | 20.2 | 0.533333 | 0.19802 | 0 | 0 | 0 | 0 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d18eb208e3b4bdd661680b8efa65073500d31974 | 728 | py | Python | relations/controllers.py | poad42/arxiv-external-links | a60941d93f20d85e8e524240631f6f3234c03e02 | [
"MIT"
] | null | null | null | relations/controllers.py | poad42/arxiv-external-links | a60941d93f20d85e8e524240631f6f3234c03e02 | [
"MIT"
] | null | null | null | relations/controllers.py | poad42/arxiv-external-links | a60941d93f20d85e8e524240631f6f3234c03e02 | [
"MIT"
] | null | null | null | """
Request controllers for the external links service.
These may be used handle requests originating from the :mod:`.routes.api`
and/or the :mod:`.routes.ui`.
If the behavior of these controllers diverges along the UI/API lines, then we
can split this into ``controllers/api.py`` and ``controllers/ui.py``.
"""
from ... | 29.12 | 77 | 0.722527 | 105 | 728 | 5 | 0.561905 | 0.08 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.167582 | 728 | 25 | 78 | 29.12 | 0.861386 | 0.583791 | 0 | 0 | 0 | 0 | 0.018051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d192362b3381c7ad2fe4d69f9810feb1a55a0fba | 4,775 | py | Python | core/tests/test_StenciledFile.py | mxmlnkn/ratarmount | f63a5f6af64ccb43c1075884626ea61ba0202f83 | [
"MIT"
] | 208 | 2019-02-21T08:10:54.000Z | 2022-03-20T12:07:31.000Z | core/tests/test_StenciledFile.py | mxmlnkn/ratarmount | f63a5f6af64ccb43c1075884626ea61ba0202f83 | [
"MIT"
] | 72 | 2019-04-18T08:54:26.000Z | 2022-03-27T11:41:58.000Z | core/tests/test_StenciledFile.py | mxmlnkn/ratarmount | f63a5f6af64ccb43c1075884626ea61ba0202f83 | [
"MIT"
] | 19 | 2019-03-15T18:23:10.000Z | 2021-09-10T14:17:16.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pylint: disable=wrong-import-position
# pylint: disable=protected-access
import concurrent.futures
import io
import os
import sys
import tempfile
import threading
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from ratarmountcore i... | 40.811966 | 103 | 0.595602 | 596 | 4,775 | 4.713087 | 0.196309 | 0.236739 | 0.212887 | 0.093984 | 0.394446 | 0.248487 | 0.212887 | 0.143111 | 0.143111 | 0.115344 | 0 | 0.076672 | 0.229738 | 4,775 | 116 | 104 | 41.163793 | 0.687058 | 0.026178 | 0 | 0.129032 | 0 | 0 | 0.017653 | 0 | 0 | 0 | 0 | 0 | 0.397849 | 1 | 0.107527 | false | 0 | 0.075269 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1a59054375691b39ba6ea30c594eff643b8391c | 5,787 | py | Python | scripts/elfw-plotResults.py | multimedia-eurecat/ELFW | 98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2 | [
"Apache-2.0"
] | 15 | 2020-07-10T08:19:13.000Z | 2022-02-24T08:52:24.000Z | scripts/elfw-plotResults.py | multimedia-eurecat/ELFW | 98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2 | [
"Apache-2.0"
] | 7 | 2020-08-11T06:26:54.000Z | 2021-04-23T08:32:21.000Z | scripts/elfw-plotResults.py | multimedia-eurecat/ELFW | 98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2 | [
"Apache-2.0"
] | 5 | 2020-08-11T09:09:42.000Z | 2020-11-25T12:02:54.000Z | import math
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
# from matplotlib.ticker import MaxNLocator
# Rafael Redondo (c) Eurecat 2020
colors = np.array([
[[247, 197, 188],[242, 151, 136],[242, 120, 99],[237, 85, 59]],
[[255, 242, 196], [247, 232, 176], [250, 225, 135], [... | 49.887931 | 183 | 0.637809 | 1,016 | 5,787 | 3.595472 | 0.397638 | 0.028744 | 0.03066 | 0.027101 | 0.227484 | 0.201204 | 0.19354 | 0.178757 | 0.178757 | 0.163427 | 0 | 0.417348 | 0.133402 | 5,787 | 116 | 184 | 49.887931 | 0.311067 | 0.106273 | 0 | 0.1 | 0 | 0 | 0.035251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.05 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1aa0e60389e9105536a41fff2a976838f0e6c36 | 1,202 | py | Python | pywinrt/winsdk/windows/graphics/printing/printticket/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/graphics/printing/printticket/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/graphics/printing/printticket/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import enum
import winsdk
_ns_module = winsdk._import_ns_module("Windows.Graphics.Printing.PrintTicket")
try:
import winsdk.windows.data.xml.dom
except Exception:
pass
try:
import winsdk.windows.foundation
except Exc... | 26.130435 | 86 | 0.811148 | 122 | 1,202 | 7.795082 | 0.467213 | 0.084122 | 0.047319 | 0.069401 | 0.107256 | 0.107256 | 0.107256 | 0.107256 | 0 | 0 | 0 | 0.011494 | 0.131448 | 1,202 | 45 | 87 | 26.711111 | 0.899425 | 0.069884 | 0 | 0.323529 | 1 | 0 | 0.033154 | 0.033154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.088235 | 0.176471 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d1aca4dd340ce95cab59972197c8c8400eb12629 | 482 | py | Python | Tinify.dzbundle/tinify/result_meta.py | F-Pseudonym/dropzone4-actions | d36f581a6be081ff303324bf3ca35daa5133c36a | [
"Ruby"
] | 1 | 2021-02-01T22:44:36.000Z | 2021-02-01T22:44:36.000Z | Tinify.dzbundle/tinify/result_meta.py | F-Pseudonym/dropzone4-actions | d36f581a6be081ff303324bf3ca35daa5133c36a | [
"Ruby"
] | null | null | null | Tinify.dzbundle/tinify/result_meta.py | F-Pseudonym/dropzone4-actions | d36f581a6be081ff303324bf3ca35daa5133c36a | [
"Ruby"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
class ResultMeta(object):
def __init__(self, meta):
self._meta = meta
@property
def width(self):
return int(self._meta['Image-Width'])
@property
def height(self):
ret... | 21.909091 | 82 | 0.639004 | 57 | 482 | 5.070175 | 0.491228 | 0.138408 | 0.089965 | 0.117647 | 0.179931 | 0.179931 | 0 | 0 | 0 | 0 | 0 | 0.002732 | 0.240664 | 482 | 21 | 83 | 22.952381 | 0.786885 | 0.043568 | 0 | 0.2 | 0 | 0 | 0.067538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.266667 | 0.733333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d1ad2457b9a62c330bcd5b7334696d9a9143b52a | 855 | py | Python | app.py | wataxiwaX/OSCspider | 7f0635c49cca6c14ffac3a37cbb9c10cc2c15cc0 | [
"MIT"
] | null | null | null | app.py | wataxiwaX/OSCspider | 7f0635c49cca6c14ffac3a37cbb9c10cc2c15cc0 | [
"MIT"
] | null | null | null | app.py | wataxiwaX/OSCspider | 7f0635c49cca6c14ffac3a37cbb9c10cc2c15cc0 | [
"MIT"
] | 1 | 2019-04-29T10:52:40.000Z | 2019-04-29T10:52:40.000Z | # -*- coding: UTF-8 -*-
from spider import *
def main_view():
print '-------------------------------------------------------'
print 'l.列出项目\ts.查找项目\tc.更新项目\tq.退出'
print '|---0.顺序 \t|---0.关键字'
print '|---1.收藏↑\t|---1.收藏>='
print '|---2.收藏↓\t|---2.收藏<'
print '|---3.评论↑\t|---3.评论>='
print '|-... | 23.75 | 67 | 0.389474 | 121 | 855 | 2.735537 | 0.471074 | 0.072508 | 0.042296 | 0.054381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026646 | 0.253801 | 855 | 36 | 68 | 23.75 | 0.482759 | 0.024561 | 0 | 0.066667 | 0 | 0 | 0.366146 | 0.241297 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.366667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1c367c3ef3880ac8d8c1957203e2309d51cb673 | 315 | py | Python | 378.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | 378.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | 378.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | #LeetCode problem 378: Kth Smallest Element in a Sorted Matrix
class Solution:
def kthSmallest(self, matrix: List[List[int]], k: int) -> int:
res=[]
for i in range(len(matrix)):
for j in range(len(matrix[0])):
res.append(matrix[i][j])
return(sorted(res)[k-1]) | 39.375 | 66 | 0.584127 | 46 | 315 | 4 | 0.608696 | 0.076087 | 0.108696 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.273016 | 315 | 8 | 67 | 39.375 | 0.781659 | 0.193651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1cc9f6841588916d3d185d0c46b0a187fc51e4e | 1,731 | py | Python | generics/models.py | morfat/falcon-quick-start | e2940d7bbf2f687627fcc18aa9440abc144f3e5c | [
"MIT"
] | null | null | null | generics/models.py | morfat/falcon-quick-start | e2940d7bbf2f687627fcc18aa9440abc144f3e5c | [
"MIT"
] | null | null | null | generics/models.py | morfat/falcon-quick-start | e2940d7bbf2f687627fcc18aa9440abc144f3e5c | [
"MIT"
] | null | null | null | import math
import falcon
import jsonschema
class Model(object):
db_table=""# db table name
properties={} #schema properties
schema={} #to hold schema for each model
required=[] #list of required fields
def __init__(self,db):
self._db=db
self.validated_data={}
self.r... | 21.6375 | 122 | 0.601964 | 219 | 1,731 | 4.648402 | 0.347032 | 0.034381 | 0.050098 | 0.020629 | 0.017682 | 0.017682 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28885 | 1,731 | 79 | 123 | 21.911392 | 0.82697 | 0.132871 | 0 | 0.076923 | 0 | 0 | 0.055368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0.076923 | 0.076923 | 0.051282 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d1f9ffd286225f029ae5ec4ee93beabb47e019b6 | 783 | py | Python | example/testapi/migrations/0001_initial.py | Albatrous/django-slack-forms | baee37942085bf2f9e35beb9a4a4aa767b319b35 | [
"MIT"
] | 1 | 2019-06-20T00:11:58.000Z | 2019-06-20T00:11:58.000Z | example/testapi/migrations/0001_initial.py | Albatrous/django-slack-forms | baee37942085bf2f9e35beb9a4a4aa767b319b35 | [
"MIT"
] | 3 | 2020-02-11T23:46:14.000Z | 2021-06-10T21:10:37.000Z | example/testapi/migrations/0001_initial.py | Albatrous/django-slack-forms | baee37942085bf2f9e35beb9a4a4aa767b319b35 | [
"MIT"
] | 3 | 2019-12-13T06:53:18.000Z | 2021-06-04T07:12:56.000Z | # Generated by Django 2.1.4 on 2018-12-12 16:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
('id', models.AutoField(aut... | 30.115385 | 114 | 0.573436 | 83 | 783 | 5.337349 | 0.578313 | 0.10158 | 0.13544 | 0.162528 | 0.23702 | 0.23702 | 0.162528 | 0 | 0 | 0 | 0 | 0.041219 | 0.287356 | 783 | 25 | 115 | 31.32 | 0.752688 | 0.057471 | 0 | 0 | 1 | 0 | 0.047554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1fd6f1f588ff407c01adf35cb99c44793ba7e08 | 659 | py | Python | ami/config/__init__.py | NCKU-CCS/energy-blockchain | 1b87b74579d2e5d658b92bb7ee656a246e4b2380 | [
"MIT"
] | null | null | null | ami/config/__init__.py | NCKU-CCS/energy-blockchain | 1b87b74579d2e5d658b92bb7ee656a246e4b2380 | [
"MIT"
] | 4 | 2019-08-15T11:54:35.000Z | 2020-11-26T10:56:02.000Z | ami/config/__init__.py | NCKU-CCS/energy-blockchain | 1b87b74579d2e5d658b92bb7ee656a246e4b2380 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
from Cryptodome.Signature import PKCS1_v1_5 as Signature_pkcs1_v1_5
from Cryptodome.PublicKey import RSA
load_dotenv()
API_URI = os.environ.get("API_URI", "https://nodes.thetangle.org:443").split(",")
API_OPEN = ... | 29.954545 | 81 | 0.798179 | 113 | 659 | 4.300885 | 0.336283 | 0.08642 | 0.098765 | 0.057613 | 0.349794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039669 | 0.081942 | 659 | 21 | 82 | 31.380952 | 0.763636 | 0.025797 | 0 | 0 | 0 | 0 | 0.194053 | 0.071987 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ae0f034944c35cf482cef502709dd21969753521 | 554 | py | Python | py/jsontoimgmd_all.py | zhouhaixian/Twikoo-Magic | e5ff88bfb58ab97ffa9c395ab302e696ddefc66f | [
"MIT"
] | 59 | 2021-01-06T01:32:07.000Z | 2022-03-26T04:56:46.000Z | py/jsontoimgmd_all.py | zhouhaixian/Twikoo-Magic | e5ff88bfb58ab97ffa9c395ab302e696ddefc66f | [
"MIT"
] | 5 | 2021-01-14T17:31:12.000Z | 2022-03-26T05:25:40.000Z | py/jsontoimgmd_all.py | zhouhaixian/Twikoo-Magic | e5ff88bfb58ab97ffa9c395ab302e696ddefc66f | [
"MIT"
] | 22 | 2021-02-15T12:06:59.000Z | 2022-02-11T05:51:43.000Z | import json
import os
classlist = os.listdir("./image/")
for classname in classlist:
# "./Classification/"+classname+"/"
try: os.mkdir("./Classification/"+classname+"/")
except: pass
filenamelist = os.listdir("./image/"+classname)
url = "https://cdn.jsdelivr.net/gh/2x-ercha/twikoo-magic/image/" +... | 30.777778 | 86 | 0.606498 | 64 | 554 | 5.25 | 0.59375 | 0.205357 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004454 | 0.189531 | 554 | 18 | 87 | 30.777778 | 0.743875 | 0.059567 | 0 | 0 | 0 | 0 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ae2166a391abaacff03859c883ab005463fa8d39 | 561 | py | Python | vsenvs.py | KaoruShiga/geister_rl | a0dbf6bd7f79b0366727664da6d9f1cf3060190e | [
"MIT"
] | 8 | 2021-03-12T00:06:44.000Z | 2022-01-15T20:09:51.000Z | vsenvs.py | KaoruShiga/geister_rl | a0dbf6bd7f79b0366727664da6d9f1cf3060190e | [
"MIT"
] | null | null | null | vsenvs.py | KaoruShiga/geister_rl | a0dbf6bd7f79b0366727664da6d9f1cf3060190e | [
"MIT"
] | 1 | 2021-10-04T07:42:01.000Z | 2021-10-04T07:42:01.000Z | import random as rnd
import numpy as np
from random_agent import RandomAgent
from geister2 import Geister2
from vsenv import VsEnv
class VsEnvs(VsEnv):
"""複数のエージェントからランダムに一つ使うやつ"""
# Resetting
def on_episode_begin(self, init_red0):
self._opponent = rnd.choice(self._opponents)
return super(... | 29.526316 | 67 | 0.716578 | 72 | 561 | 5.319444 | 0.430556 | 0.062663 | 0.073107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015419 | 0.190731 | 561 | 18 | 68 | 31.166667 | 0.828194 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ae371956e205306769109642792d7cbf72cc52de | 156 | py | Python | snake/__init__.py | lparolari/snake | ceaaec051584be768c9541fb106234e6de2b4900 | [
"MIT"
] | 1 | 2020-11-02T11:04:49.000Z | 2020-11-02T11:04:49.000Z | snake/__init__.py | lparolari/snake | ceaaec051584be768c9541fb106234e6de2b4900 | [
"MIT"
] | 112 | 2019-09-24T20:08:23.000Z | 2021-02-08T00:36:07.000Z | snake/__init__.py | lparolari/snake | ceaaec051584be768c9541fb106234e6de2b4900 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for snake."""
__author__ = """Luca Parolari"""
__email__ = 'luca.parolari23@gmail.com'
__version__ = '0.2.2'
| 19.5 | 39 | 0.641026 | 20 | 156 | 4.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.134615 | 156 | 7 | 40 | 22.285714 | 0.607407 | 0.326923 | 0 | 0 | 0 | 0 | 0.434343 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ae3968619345b1a7bf80058788bc082425067214 | 3,592 | py | Python | tf_ops/genCompileScript.py | chenzhutian/MCCNN | e28ca4a2deeecbfd1c8939ca666fcc010554fcbb | [
"MIT"
] | 90 | 2018-07-05T13:43:43.000Z | 2022-01-21T08:23:06.000Z | tf_ops/genCompileScript.py | DylanWusee/MCCNN | 13c2afb81aa231779b2be564ae31931b1d82e3fa | [
"MIT"
] | 9 | 2018-11-08T14:22:59.000Z | 2022-03-13T08:35:15.000Z | tf_ops/genCompileScript.py | DylanWusee/MCCNN | 13c2afb81aa231779b2be564ae31931b1d82e3fa | [
"MIT"
] | 12 | 2018-11-09T09:31:46.000Z | 2021-06-21T01:23:11.000Z | '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
\file genCompileScript.py
\brief Python script to generate the compile script for unix systems.
\copyright Copyright (c) 2018 Visual Computing group of Ulm University,
Germany. See the LICENSE file at the... | 71.84 | 214 | 0.65618 | 474 | 3,592 | 4.829114 | 0.316456 | 0.023591 | 0.04893 | 0.04893 | 0.441678 | 0.392311 | 0.345129 | 0.317169 | 0.317169 | 0.317169 | 0 | 0.01307 | 0.169265 | 3,592 | 49 | 215 | 73.306122 | 0.754021 | 0.094933 | 0 | 0.076923 | 1 | 0.205128 | 0.506787 | 0.043269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ae3d486c599d0d195d2c989a9d3e670a0c3383e1 | 431 | py | Python | connect.py | XtremeCurling/nextbus2pg | 4a7b32ecbc5232c3a7e4a81152aea87b2c80d517 | [
"MIT"
] | null | null | null | connect.py | XtremeCurling/nextbus2pg | 4a7b32ecbc5232c3a7e4a81152aea87b2c80d517 | [
"MIT"
] | 4 | 2018-04-03T21:12:24.000Z | 2018-05-13T22:53:43.000Z | connect.py | XtremeCurling/nextbus2pg | 4a7b32ecbc5232c3a7e4a81152aea87b2c80d517 | [
"MIT"
] | null | null | null | import urllib
import psycopg2
import psycopg2.extras
# Connect to a postgres database. Tweak some things.
def pgconnect(pghost, pgdb, pguser):
connection = psycopg2.connect(host = pghost, dbname = pgdb, user = pguser)
# Set autocommit to avoid repetitive connection.commit() statements.
connection.autocom... | 28.733333 | 78 | 0.74942 | 51 | 431 | 6.313725 | 0.666667 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.178654 | 431 | 14 | 79 | 30.785714 | 0.898305 | 0.354988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ae5037c12585478c8a1c85ed99c80d350dbc79af | 415 | py | Python | mathMB/__init__.py | mburger-stsci/mathMB | 107c11a6e65429c5f7d2facb4ce4e199538a39d8 | [
"BSD-3-Clause"
] | null | null | null | mathMB/__init__.py | mburger-stsci/mathMB | 107c11a6e65429c5f7d2facb4ce4e199538a39d8 | [
"BSD-3-Clause"
] | null | null | null | mathMB/__init__.py | mburger-stsci/mathMB | 107c11a6e65429c5f7d2facb4ce4e199538a39d8 | [
"BSD-3-Clause"
] | null | null | null | from .interpu import interpu
from .minmaxmean import minmaxmean
from .randomdeviates import random_deviates_1d, random_deviates_2d
from .rotation_matrix import rotation_matrix
from .smooth import smooth, smooth_sphere
from .fit_model import fit_model
from .histogram import HistogramSphere, Histogram, Histogram2d
name... | 29.642857 | 66 | 0.824096 | 53 | 415 | 6.056604 | 0.566038 | 0.087227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.113253 | 415 | 13 | 67 | 31.923077 | 0.855978 | 0 | 0 | 0 | 0 | 0 | 0.098795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ae585b1ebb6ddaac2ce15869614a545c6f947635 | 342 | py | Python | pangolin/core/context_processors.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | pangolin/core/context_processors.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | pangolin/core/context_processors.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.timezone import now
from .utils import intspace, set_param
def extra(request):
ctx = {
'dir': dir, 'list': list, 'len': len, 'enumerate': enumerate, 'range': range,
'settings': settings,
'now': now, 'intspace': intspace, 'set_param': set_... | 26.307692 | 85 | 0.652047 | 43 | 342 | 5.116279 | 0.488372 | 0.109091 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21345 | 342 | 12 | 86 | 28.5 | 0.817844 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ae722ba487151806c74bc4bb207a931bee8b9346 | 818 | py | Python | meiduo_mall/apps/users/utils.py | 150619/meiduo_mall_project | c0441ad744c6dd0e2962d5e734c842e237b9ad0b | [
"MIT"
] | null | null | null | meiduo_mall/apps/users/utils.py | 150619/meiduo_mall_project | c0441ad744c6dd0e2962d5e734c842e237b9ad0b | [
"MIT"
] | null | null | null | meiduo_mall/apps/users/utils.py | 150619/meiduo_mall_project | c0441ad744c6dd0e2962d5e734c842e237b9ad0b | [
"MIT"
] | null | null | null | import re
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import JsonResponse
from apps.users.models import User
class AuthMobile(ModelBackend):
def authenticate(self, request, username=None, password=None, **kwargs):
try:
... | 29.214286 | 76 | 0.656479 | 92 | 818 | 5.804348 | 0.554348 | 0.05618 | 0.06367 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011382 | 0.248166 | 818 | 27 | 77 | 30.296296 | 0.856911 | 0 | 0 | 0.190476 | 0 | 0 | 0.03423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.238095 | 0.047619 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
ae84e004def4ae5d171603fde9ae436d07658e06 | 1,675 | py | Python | tilequeue/queue/file.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 29 | 2016-11-03T18:39:21.000Z | 2022-02-27T17:42:37.000Z | tilequeue/queue/file.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 146 | 2016-07-07T16:41:07.000Z | 2021-12-11T00:27:20.000Z | tilequeue/queue/file.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 28 | 2016-08-19T16:08:52.000Z | 2021-07-26T10:16:29.000Z | from tilequeue.queue import MessageHandle
import threading
class OutputFileQueue(object):
'''
A local, file-based queue for storing the coordinates of tiles to render.
Can be used as a drop-in replacement for `tilequeue.queue.sqs.SqsQueue`.
Note that it doesn't support reading/writing from multiple `t... | 28.389831 | 79 | 0.590448 | 214 | 1,675 | 4.537383 | 0.485981 | 0.043254 | 0.049434 | 0.049434 | 0.061792 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006157 | 0.321194 | 1,675 | 58 | 80 | 28.87931 | 0.847845 | 0.284179 | 0 | 0.157895 | 0 | 0 | 0.001726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ae98e871311e8fb43a781a04df1f457c09b8bd46 | 587 | py | Python | x_rebirth_station_calculator/station_data/modules/valley_forge.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | 1 | 2016-04-17T11:00:22.000Z | 2016-04-17T11:00:22.000Z | x_rebirth_station_calculator/station_data/modules/valley_forge.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | null | null | null | x_rebirth_station_calculator/station_data/modules/valley_forge.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | null | null | null | from x_rebirth_station_calculator.station_data.station_base import Module
from x_rebirth_station_calculator.station_data.station_base import Production
from x_rebirth_station_calculator.station_data.station_base import Consumption
from x_rebirth_station_calculator.station_data import wares
names = {'L044': 'Valley For... | 39.133333 | 78 | 0.775128 | 70 | 587 | 6.228571 | 0.414286 | 0.045872 | 0.110092 | 0.174312 | 0.483945 | 0.483945 | 0.483945 | 0.392202 | 0.392202 | 0.392202 | 0 | 0.035225 | 0.129472 | 587 | 14 | 79 | 41.928571 | 0.818004 | 0 | 0 | 0 | 0 | 0 | 0.059625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
881f656efbfa94bdb3489d35c6e705e30fa814e3 | 2,703 | py | Python | blog/migrations/0006_auto_20220424_1910.py | moboroboo/training-site | 053628c9ce131c3d88c621b837bf67fdd3c59cf2 | [
"MIT"
] | null | null | null | blog/migrations/0006_auto_20220424_1910.py | moboroboo/training-site | 053628c9ce131c3d88c621b837bf67fdd3c59cf2 | [
"MIT"
] | null | null | null | blog/migrations/0006_auto_20220424_1910.py | moboroboo/training-site | 053628c9ce131c3d88c621b837bf67fdd3c59cf2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-04-24 14:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_jalali.db.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 35.565789 | 146 | 0.593045 | 271 | 2,703 | 5.738007 | 0.357934 | 0.099035 | 0.160772 | 0.186495 | 0.282958 | 0.282958 | 0 | 0 | 0 | 0 | 0 | 0.012365 | 0.281909 | 2,703 | 75 | 147 | 36.04 | 0.788769 | 0.017018 | 0 | 0.521739 | 1 | 0 | 0.152166 | 0.00904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057971 | 0 | 0.101449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
884fed80e4bfbef3b30a1a62c33621b37d15f8a9 | 2,089 | py | Python | include/PyBool_builder.py | tyler-utah/PBL | 842a3fab949528bc03ee03d1f802e4163604d0f5 | [
"BSD-2-Clause-FreeBSD"
] | 9 | 2015-04-03T10:40:35.000Z | 2021-02-18T21:54:54.000Z | include/PyBool_builder.py | tyler-utah/PBL | 842a3fab949528bc03ee03d1f802e4163604d0f5 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-08-06T18:46:35.000Z | 2017-08-07T14:01:23.000Z | include/PyBool_builder.py | tyler-utah/PBL | 842a3fab949528bc03ee03d1f802e4163604d0f5 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2015-10-09T05:42:04.000Z | 2022-03-24T19:07:19.000Z | #Tyler Sorensen
#February 15, 2012
#University of Utah
#PyBool_builder.py
#The interface to build recursive style boolean expressions
#See README.txt for more information
def mk_const_expr(val):
"""
returns a constant expression of value VAL
VAL should be of type boolean
"""
return {"type" : "con... | 23.47191 | 59 | 0.560555 | 254 | 2,089 | 4.535433 | 0.255906 | 0.121528 | 0.067708 | 0.091146 | 0.471354 | 0.451389 | 0.386285 | 0.386285 | 0.386285 | 0.345486 | 0 | 0.042053 | 0.328387 | 2,089 | 88 | 60 | 23.738636 | 0.779045 | 0.426999 | 0 | 0.375 | 0 | 0 | 0.13215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0.03125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
886187760f06162d24653efb204965a6811cff20 | 2,029 | py | Python | kacl/validation.py | kianmeng/python-kacl | 98df1a6c93489e0078deadd47ee80212ffab597e | [
"MIT"
] | 8 | 2020-01-07T10:29:19.000Z | 2022-03-15T13:55:50.000Z | kacl/validation.py | kianmeng/python-kacl | 98df1a6c93489e0078deadd47ee80212ffab597e | [
"MIT"
] | 10 | 2020-01-07T10:30:41.000Z | 2022-03-20T14:25:53.000Z | kacl/validation.py | kianmeng/python-kacl | 98df1a6c93489e0078deadd47ee80212ffab597e | [
"MIT"
] | 5 | 2020-01-15T07:45:41.000Z | 2022-03-20T13:34:49.000Z | class KACLValidationError():
def __init__(self, line="", line_number=0, start_character_pos=None, end_character_pos=None, error_message=""):
self.__line_number = line_number
self.__start_character_pos = start_character_pos
self.__end_character_pos = end_character_pos
self.__error_mes... | 36.890909 | 115 | 0.588467 | 210 | 2,029 | 5.171429 | 0.157143 | 0.165746 | 0.110497 | 0.066298 | 0.27256 | 0.228361 | 0.139963 | 0.073665 | 0 | 0 | 0 | 0.003668 | 0.328241 | 2,029 | 54 | 116 | 37.574074 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.0345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0 | 0.139535 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
886c6ba2396b2e58f84b93dfe9961e27c379d6bf | 520 | py | Python | fly/ModelStart.py | cheburakshu/fly | d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5 | [
"Apache-2.0"
] | null | null | null | fly/ModelStart.py | cheburakshu/fly | d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5 | [
"Apache-2.0"
] | null | null | null | fly/ModelStart.py | cheburakshu/fly | d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5 | [
"Apache-2.0"
] | null | null | null | import time
import sys
import threading
import asyncio
# fly
from .ModelBootstrap import ModelBootstrap
from . import ModelManager
def bootstrap(_filename,):
#Model Bootstrap
runForEver = threading.Event()
mb = ModelBootstrap(filename=_filename,)
runForEver.wait()
#runForEver = threading.E... | 21.666667 | 72 | 0.725 | 60 | 520 | 6.25 | 0.6 | 0.101333 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002358 | 0.184615 | 520 | 23 | 73 | 22.608696 | 0.882075 | 0.421154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.6 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
886e4ad951e13066662fa39167df5cb479e0a992 | 664 | py | Python | features/steps/public_pages.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 6 | 2021-05-12T08:40:36.000Z | 2022-01-25T08:31:06.000Z | features/steps/public_pages.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 14 | 2021-05-12T09:03:08.000Z | 2021-06-10T13:18:52.000Z | features/steps/public_pages.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 1 | 2021-05-14T20:54:15.000Z | 2021-05-14T20:54:15.000Z | from behave import when, then
from application.models import Member
@when(u'I request \'{page}\'')
def step_impl(context, page):
context.response = context.test.client.get(page)
@when(u'there are no members')
def step_impl(context):
Member.objects.all().delete()
@then(u'I see \'{content}\'')
def step_imp... | 22.896552 | 77 | 0.709337 | 98 | 664 | 4.755102 | 0.397959 | 0.075107 | 0.118026 | 0.193133 | 0.515021 | 0.515021 | 0.515021 | 0.197425 | 0.197425 | 0 | 0 | 0.003442 | 0.125 | 664 | 28 | 78 | 23.714286 | 0.798623 | 0 | 0 | 0.235294 | 0 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.294118 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
887679321d473fff8303fdde842a58ecb25c93a7 | 57 | py | Python | training/constants.py | vlad-danaila/deep_hiv_ab_pred | 651e9174cef9d5f27de328536aec5ebea3af8f3d | [
"MIT"
] | null | null | null | training/constants.py | vlad-danaila/deep_hiv_ab_pred | 651e9174cef9d5f27de328536aec5ebea3af8f3d | [
"MIT"
] | null | null | null | training/constants.py | vlad-danaila/deep_hiv_ab_pred | 651e9174cef9d5f27de328536aec5ebea3af8f3d | [
"MIT"
] | null | null | null | ACCURACY = 0
MATTHEWS_CORRELATION_COEFFICIENT = 1
AUC = 2 | 19 | 36 | 0.807018 | 8 | 57 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.140351 | 57 | 3 | 37 | 19 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8892e5ee057de88b320831e0b236a98d613b4df9 | 763 | py | Python | pacu/data/roles.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | 1 | 2022-03-09T14:51:54.000Z | 2022-03-09T14:51:54.000Z | pacu/data/roles.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | pacu/data/roles.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | # import typing
#
# import boto3
# import typer
#
# import pacu.data as p
#
#
# if typing.TYPE_CHECKING:
# from mypy_boto3_iam import type_defs as t
# from mypy_boto3_iam.client import IAMClient
# from mypy_boto3_iam.paginator import ListRolesPaginator
#
#
# def fetch(profile_name: typing.Optional[str] = ty... | 29.346154 | 87 | 0.709043 | 97 | 763 | 5.329897 | 0.484536 | 0.046422 | 0.075435 | 0.092843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007849 | 0.165138 | 763 | 25 | 88 | 30.52 | 0.803768 | 0.933159 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
889eb3167b3872b5371c8a539d4347c8d68744c1 | 760 | py | Python | SBTK_League_Helper/src/tools/exceptions.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | SBTK_League_Helper/src/tools/exceptions.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | SBTK_League_Helper/src/tools/exceptions.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | # This need to be sorted out in a smarter way
class InitializationError(Exception):
def __init__(self, SomeClass, description):
self.value = SomeClass
self.description = description.format(SomeClass.__name__)
def __str__(self):
return self.description
class ReservedValueError(Exce... | 24.516129 | 65 | 0.696053 | 76 | 760 | 6.697368 | 0.407895 | 0.117878 | 0.062868 | 0.078585 | 0.141454 | 0.141454 | 0.141454 | 0 | 0 | 0 | 0 | 0 | 0.230263 | 760 | 31 | 66 | 24.516129 | 0.870085 | 0.056579 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.190476 | 0 | 0.095238 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
88afd99ff229803940fa1debc0013f26c15e67cf | 366 | py | Python | workflow/config/add_path.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | workflow/config/add_path.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | workflow/config/add_path.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | import sys
class add_path():
def __init__(self, path):
self.path = path
def __enter__(self):
sys.path.insert(0, self.path)
def __exit__(self, exc_type, exc_value, traceback):
try:
sys.path.remove(self.path)
except ValueError:
pass
""" Remove """
... | 17.428571 | 55 | 0.581967 | 46 | 366 | 4.282609 | 0.521739 | 0.162437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.297814 | 366 | 20 | 56 | 18.3 | 0.762646 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.076923 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
31f3b0c501535082c9dc4e17a5fec3613081ac58 | 1,644 | py | Python | GFG/cloud.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 13 | 2021-02-27T10:27:22.000Z | 2021-10-05T13:56:28.000Z | GFG/cloud.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 15 | 2021-03-06T14:23:49.000Z | 2022-01-29T07:10:21.000Z | GFG/cloud.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 24 | 2021-03-04T06:15:12.000Z | 2021-11-14T22:15:13.000Z | # A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds. The character must jump from cloud to cloud until it reaches the start again.
# There is an array of clouds, e and an energy level e=100. The character starts from c[0] and uses 1... | 68.5 | 309 | 0.695864 | 320 | 1,644 | 3.575 | 0.290625 | 0.083916 | 0.007867 | 0.024476 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0.659091 | 0 | 0.037361 | 0.234793 | 1,644 | 24 | 310 | 68.5 | 0.872019 | 0.874696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
31fb8e7e0a458819ec76cfb1aa5beea0df8e62d1 | 559 | py | Python | supriya/ugens/Dreset.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/Dreset.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/Dreset.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | import collections
from supriya import CalculationRate
from supriya.ugens.DUGen import DUGen
class Dreset(DUGen):
"""
Resets demand-rate UGens.
::
>>> source = supriya.ugens.Dseries(start=0, step=2)
>>> dreset = supriya.ugens.Dreset(
... reset=0,
... source=sourc... | 19.964286 | 84 | 0.581395 | 53 | 559 | 6.018868 | 0.528302 | 0.112853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009877 | 0.275492 | 559 | 27 | 85 | 20.703704 | 0.777778 | 0.415027 | 0 | 0 | 0 | 0 | 0.040441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ee06e35d76242b1961bfd6577cb91d816498e4c1 | 157 | py | Python | template/Test/components/Counter/style.py | Salenia/Orca | 1b3381eb22c6c269fa3d6d9c07e997bcc92f1702 | [
"MIT"
] | null | null | null | template/Test/components/Counter/style.py | Salenia/Orca | 1b3381eb22c6c269fa3d6d9c07e997bcc92f1702 | [
"MIT"
] | null | null | null | template/Test/components/Counter/style.py | Salenia/Orca | 1b3381eb22c6c269fa3d6d9c07e997bcc92f1702 | [
"MIT"
] | null | null | null | from core.object import Object
style= Object({
'btn': {
'bg': '#123321',
'fg': '#dddddd',
'font': ('Ariel', 14, 'bold')
}
}) | 17.444444 | 37 | 0.452229 | 16 | 157 | 4.4375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.318471 | 157 | 9 | 38 | 17.444444 | 0.588785 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee11bc1258b4bdb1e1c427f2c1da2afcdccd329f | 1,141 | py | Python | examples/python3/force_platform.py | pariterre/ezc3d | 53999b44a17819dc86e485f99887cea5ee4b7112 | [
"MIT"
] | 83 | 2018-05-26T00:08:14.000Z | 2022-03-31T17:08:41.000Z | examples/python3/force_platform.py | pariterre/ezc3d | 53999b44a17819dc86e485f99887cea5ee4b7112 | [
"MIT"
] | 183 | 2018-05-23T18:09:59.000Z | 2022-03-31T18:36:04.000Z | examples/python3/force_platform.py | pariterre/ezc3d | 53999b44a17819dc86e485f99887cea5ee4b7112 | [
"MIT"
] | 37 | 2018-07-20T14:15:30.000Z | 2021-12-09T06:40:26.000Z | import ezc3d
# This example reads a file that contains 2 force platforms. It thereafter print some metadata and data for one them
c3d = ezc3d.c3d("../c3dFiles/ezc3d-testFiles-master/ezc3d-testFiles-master/Qualisys.c3d", extract_forceplat_data=True)
print(f"Number of force platform = {len(c3d['data']['platform'])}")
... | 36.806452 | 118 | 0.688869 | 173 | 1,141 | 4.49711 | 0.387283 | 0.092545 | 0.061697 | 0.03599 | 0.056555 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032641 | 0.113935 | 1,141 | 30 | 119 | 38.033333 | 0.736894 | 0.15688 | 0 | 0.227273 | 0 | 0 | 0.675732 | 0.182008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.818182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ee269436a0a76c7351b420811a929b16e0ed781d | 772 | py | Python | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2 on 2020-03-30 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20200330_2200'),
]
operations = [
migrations.AlterField(
model_name='boughtproduct',
name='quantity... | 26.62069 | 70 | 0.586788 | 73 | 772 | 6.082192 | 0.506849 | 0.135135 | 0.168919 | 0.195946 | 0.522523 | 0.522523 | 0.522523 | 0.522523 | 0.522523 | 0.522523 | 0 | 0.060662 | 0.295337 | 772 | 28 | 71 | 27.571429 | 0.755515 | 0.055699 | 0 | 0.545455 | 1 | 0 | 0.137552 | 0.031637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee2dd69c4e68177c7e58799c681d8b2eea7e81a6 | 76 | py | Python | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | n = int(input())
result=0
for i in range(1,n+1):
result+=i
print(result) | 15.2 | 22 | 0.631579 | 16 | 76 | 3 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.171053 | 76 | 5 | 23 | 15.2 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee3a458bc0b453128e0670c2c4878e148f4fd267 | 2,903 | py | Python | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | from django.db import models
from users.models import User, BaseModel
class CommonModel(models.Model):
"""This is common model which we are using for common attributes not
included in Database as a table
:param models.Model: Class to create a new instance of a model,
instantiate it like any other Pyt... | 32.255556 | 108 | 0.695143 | 368 | 2,903 | 5.342391 | 0.258152 | 0.030519 | 0.042726 | 0.070193 | 0.574771 | 0.554425 | 0.522889 | 0.46999 | 0.46999 | 0.43235 | 0 | 0.003975 | 0.220117 | 2,903 | 89 | 109 | 32.617978 | 0.864399 | 0.346194 | 0 | 0.333333 | 0 | 0 | 0.08206 | 0.057159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0.153846 | 0.820513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ee3d3b33e7d00e0c127a259c954eabf576b5a09b | 523 | py | Python | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 17 | 2019-05-04T13:25:33.000Z | 2022-01-22T14:50:49.000Z | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 25 | 2020-05-24T03:29:42.000Z | 2021-03-29T07:07:47.000Z | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 7 | 2019-05-30T00:15:58.000Z | 2022-01-16T14:37:25.000Z | import pytest
from utils import make_hash_sha256
# test_utils.py
def test_make_hash_sha256():
w = {'a': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
x = {'a': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
y = {'b': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
z = {(3, 4): 'e', 'b'... | 34.866667 | 65 | 0.548757 | 95 | 523 | 2.831579 | 0.273684 | 0.237918 | 0.416357 | 0.148699 | 0.301115 | 0.301115 | 0.301115 | 0.301115 | 0.301115 | 0.230483 | 0 | 0.093897 | 0.185468 | 523 | 14 | 66 | 37.357143 | 0.537559 | 0.024857 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee3f1dab5bbae9fc4ca6f9d759f36e46c7e4b97c | 62 | py | Python | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | TOKEN = ""
GUILD = ""
# crypto bot
API_KEY_COINMARKETCAP = "" | 12.4 | 26 | 0.645161 | 7 | 62 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 62 | 5 | 26 | 12.4 | 0.76 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee40c9e058cfde444787c36d7ef8a53e584dde9c | 403 | py | Python | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 3 | 2016-03-08T20:55:54.000Z | 2019-06-13T14:31:50.000Z | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 13 | 2015-10-07T18:21:37.000Z | 2018-07-30T12:51:40.000Z | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 4 | 2016-03-14T18:12:33.000Z | 2020-07-08T15:41:50.000Z | #!/usr/bin/env python
import os
import sys
import time
import django
sys.path.insert(0, './tests')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
if __name__ == '__main__':
from django.core.management import execute_from_command_line
args = sys.argv
args.insert(1, 'test')
if len(args) ... | 19.190476 | 64 | 0.704715 | 57 | 403 | 4.684211 | 0.596491 | 0.082397 | 0.134831 | 0.164794 | 0.194757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.168734 | 403 | 20 | 65 | 20.15 | 0.785075 | 0.049628 | 0 | 0 | 0 | 0 | 0.162304 | 0.057592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ee4ffc00f5aac29ae91942bab254cf9e630e3326 | 2,002 | py | Python | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | # Copyright (c) 2013, University of Liverpool
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program ... | 35.75 | 84 | 0.675824 | 261 | 2,002 | 5.130268 | 0.478927 | 0.023898 | 0.026886 | 0.042569 | 0.218073 | 0.218073 | 0.194175 | 0.143391 | 0.143391 | 0.143391 | 0 | 0.006609 | 0.244256 | 2,002 | 56 | 85 | 35.75 | 0.878387 | 0.455544 | 0 | 0.36 | 0 | 0 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.12 | 0.04 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ee524291fb83e3e5c6e37a9185fb2243d6f26277 | 4,727 | py | Python | nucleus/io/bedgraph.py | gaybro8777/nucleus | 3bd27ac076a6f3f93e49a27ed60661858e727dda | [
"BSD-3-Clause"
] | 721 | 2018-03-30T14:34:17.000Z | 2022-03-23T00:09:18.000Z | nucleus/io/bedgraph.py | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 38 | 2018-03-31T09:02:23.000Z | 2022-03-23T21:16:41.000Z | nucleus/io/bedgraph.py | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 123 | 2018-03-30T21:51:18.000Z | 2021-12-13T06:59:31.000Z | # Copyright 2018 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 33.524823 | 80 | 0.767929 | 652 | 4,727 | 5.412577 | 0.31135 | 0.024936 | 0.022103 | 0.021536 | 0.209691 | 0.159252 | 0.068008 | 0.047606 | 0.025503 | 0.025503 | 0 | 0.003781 | 0.160779 | 4,727 | 140 | 81 | 33.764286 | 0.885808 | 0.607574 | 0 | 0.057143 | 0 | 0 | 0.024812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.228571 | 0.085714 | 0.742857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ee56a41665eea1578283e8ab5f16b946f7b0fc97 | 1,091 | py | Python | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cloudmesh.shell.command import command
from cloudmesh.shell.command import PluginCommand
from cloudmesh.docopts_example.api.manager import Manager
from cloudmesh.common.console import Console
from cloudmesh.common.util import path_expand
from pprint import pprint
from cloudmes... | 26.609756 | 97 | 0.64528 | 123 | 1,091 | 5.617886 | 0.414634 | 0.11288 | 0.082489 | 0.065123 | 0.183792 | 0.069465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287809 | 1,091 | 41 | 98 | 26.609756 | 0.889318 | 0.212649 | 0 | 0 | 0 | 0 | 0.090791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.444444 | 0 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ee625190ee933eb34ed6aced294e275dfea0c9b7 | 1,482 | py | Python | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | null | null | null | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | null | null | null | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | 1 | 2022-01-14T05:43:49.000Z | 2022-01-14T05:43:49.000Z | # SecretPlots
# Copyright (c) 2019. SecretBiology
#
# Author: Rohit Suratekar
# Organisation: SecretBiology
# Website: https://github.com/secretBiology/SecretPlots
# Licence: MIT License
# Creation: 05/10/19, 7:52 PM
#
# All Location Managers will go here
from SecretPlots.managers._axis import AxisManager
from... | 23.15625 | 69 | 0.653171 | 180 | 1,482 | 5.25 | 0.361111 | 0.081481 | 0.059259 | 0.033862 | 0.217989 | 0.101587 | 0.101587 | 0.101587 | 0.101587 | 0.101587 | 0 | 0.013749 | 0.263833 | 1,482 | 63 | 70 | 23.52381 | 0.852429 | 0.163293 | 0 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.097561 | 0.097561 | 0.512195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ee700eb445091218a56c4ea006f8edce90b03bd2 | 8,170 | py | Python | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 4 | 2020-07-26T20:33:09.000Z | 2022-02-14T00:17:27.000Z | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 9 | 2020-08-01T21:29:55.000Z | 2022-01-03T00:45:17.000Z | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 3 | 2020-08-26T18:37:55.000Z | 2022-02-14T00:18:01.000Z | import configparser
import re
import sys
import os
from typing import Optional, Mapping, Iterator, Any, List, Dict
_default_settings = {
"node": {
"id.message": "Terrestrial Amateur Radio Packet Network node ${node.alias} op is ${node.call}",
"id.interval": 600,
"admin.enabled": False,
... | 30.599251 | 103 | 0.59645 | 1,000 | 8,170 | 4.652 | 0.171 | 0.051591 | 0.051161 | 0.022356 | 0.282244 | 0.22442 | 0.218401 | 0.184437 | 0.138865 | 0.123388 | 0 | 0.005795 | 0.281885 | 8,170 | 266 | 104 | 30.714286 | 0.787114 | 0.00918 | 0 | 0.177885 | 0 | 0 | 0.129634 | 0.014582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221154 | false | 0 | 0.028846 | 0.134615 | 0.471154 | 0.004808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
ee7534e127b9fb25131caade726542eb20c6bbe5 | 208 | py | Python | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 1 | 2021-08-03T05:58:20.000Z | 2021-08-03T05:58:20.000Z | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 1 | 2020-06-13T13:29:35.000Z | 2020-06-15T12:45:04.000Z | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 3 | 2021-07-08T08:31:28.000Z | 2022-03-31T14:08:58.000Z | # Licensed under an MIT style license -- see LICENSE.md
from .utils import (
gw_results_file, functions, history_dictionary, command_line_arguments
)
__author__ = ["Charlie Hoy <charlie.hoy@ligo.org>"]
| 26 | 74 | 0.759615 | 28 | 208 | 5.321429 | 0.892857 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 208 | 7 | 75 | 29.714286 | 0.837079 | 0.254808 | 0 | 0 | 0 | 0 | 0.222222 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee7bdfb8faa653258cb1a64cd8897b40dfd8e04b | 207 | py | Python | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | import sys
from swatcher import Swatcher
if __name__ == "__main__":
files = sys.argv[1:]
for file in files:
s = Swatcher(file)
s.export_ase_file()
s.export_palette_image()
| 17.25 | 32 | 0.628019 | 28 | 207 | 4.214286 | 0.642857 | 0.084746 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.275362 | 207 | 11 | 33 | 18.818182 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee877e586d4bfd06ebea25a4cf5e0bb5c99e4dd0 | 1,488 | py | Python | test_update_resource_property.py | mconlon17/vivo-foundation | 202f458bc72fb76c7d89240091c4fb00522cfe3f | [
"BSD-3-Clause"
] | null | null | null | test_update_resource_property.py | mconlon17/vivo-foundation | 202f458bc72fb76c7d89240091c4fb00522cfe3f | [
"BSD-3-Clause"
] | 1 | 2015-04-04T01:38:51.000Z | 2015-04-04T01:38:51.000Z | tools/test_update_resource_property.py | mconlon17/vivo-1.5-improvement | 44d8335eb7bbe518374a53c0e1f9f39014023ee7 | [
"BSD-3-Clause"
] | null | null | null | """
test_update_resource_property.py -- Given a VIVO URI, a predicate, and two
URIs -- VIVO resource URI and the source URI, generate the add and subtract
RDF necessary to execute "five case logic" in updating VIVO with an
authoritative source URI.
Note. In common use, the source data is presented... | 33.818182 | 80 | 0.635753 | 225 | 1,488 | 4.111111 | 0.422222 | 0.037838 | 0.043243 | 0.03027 | 0.036757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.25336 | 1,488 | 43 | 81 | 34.604651 | 0.812781 | 0 | 0 | 0 | 1 | 0 | 0.377294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.291667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9941d5b23d70a37ae7fb2286ed5ef0edd392a4d | 227 | py | Python | tinned_django/project_name/config/apps_config/pymorphy.py | futurecolors/tinned-django | 9603c1bb746c733e1248abddb0097642702070b7 | [
"MIT"
] | 1 | 2015-05-08T10:54:59.000Z | 2015-05-08T10:54:59.000Z | tinned_django/project_name/config/apps_config/pymorphy.py | futurecolors/tinned-django | 9603c1bb746c733e1248abddb0097642702070b7 | [
"MIT"
] | null | null | null | tinned_django/project_name/config/apps_config/pymorphy.py | futurecolors/tinned-django | 9603c1bb746c733e1248abddb0097642702070b7 | [
"MIT"
] | null | null | null | # coding: utf-8
import os
class PyMorphy(object):
@property
def PYMORPHY_DICTS(self):
return {
'ru': {
'dir': os.path.join(self.ROOT_PATH, 'data/pymorphy'),
},
} | 18.916667 | 69 | 0.493392 | 24 | 227 | 4.583333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.370044 | 227 | 12 | 70 | 18.916667 | 0.762238 | 0.057269 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
c9a2771f62caa857ef11e61807ee5881fe3bec39 | 353 | py | Python | schemas/tag.py | airflow-plugins/pardot_plugin | 163a33dd1eb0fd750821824a67f1a83e1c5b188e | [
"Apache-2.0"
] | null | null | null | schemas/tag.py | airflow-plugins/pardot_plugin | 163a33dd1eb0fd750821824a67f1a83e1c5b188e | [
"Apache-2.0"
] | null | null | null | schemas/tag.py | airflow-plugins/pardot_plugin | 163a33dd1eb0fd750821824a67f1a83e1c5b188e | [
"Apache-2.0"
] | 2 | 2019-03-26T14:15:40.000Z | 2021-03-24T11:33:55.000Z | """
Tags
http://developer.pardot.com/kb/api-version-4/tags/
http://developer.pardot.com/kb/object-field-references/#tag
"""
tag = [{'name': 'id',
'type': 'integer'},
{'name': 'name',
'type': 'varchar(512)'},
{'name': 'created_at',
'type': 'timestamp'},
{'name': 'updated_at... | 22.0625 | 59 | 0.529745 | 39 | 353 | 4.74359 | 0.589744 | 0.086486 | 0.183784 | 0.248649 | 0.302703 | 0.302703 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.220963 | 353 | 15 | 60 | 23.533333 | 0.658182 | 0.328612 | 0 | 0 | 0 | 0 | 0.414847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9a32c37376f6fbf21ec0007633081e608e34031 | 125 | py | Python | packages/vic_kubuntu_14_10/vlc/__init__.py | warvariuc/mykde | 01c2f617d8556e279870d32247d07216a49a41da | [
"BSD-3-Clause"
] | 5 | 2016-01-31T18:32:45.000Z | 2019-12-22T07:16:22.000Z | packages/vic_kubuntu_14_10/vlc/__init__.py | warvariuc/mykde | 01c2f617d8556e279870d32247d07216a49a41da | [
"BSD-3-Clause"
] | null | null | null | packages/vic_kubuntu_14_10/vlc/__init__.py | warvariuc/mykde | 01c2f617d8556e279870d32247d07216a49a41da | [
"BSD-3-Clause"
] | 1 | 2019-06-17T16:02:36.000Z | 2019-06-17T16:02:36.000Z | import mykde
class Action(mykde.BaseAction):
name = "VLC"
description = "VLC Media Player"
packages = ['vlc']
| 13.888889 | 36 | 0.64 | 14 | 125 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 125 | 8 | 37 | 15.625 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9a902b8d915c544016edb40caeb6192c52c369d | 3,914 | py | Python | hightime/util.py | tkrebes/hightime | 5312266c808556f11bde1725bc968564180df0f1 | [
"MIT"
] | null | null | null | hightime/util.py | tkrebes/hightime | 5312266c808556f11bde1725bc968564180df0f1 | [
"MIT"
] | null | null | null | hightime/util.py | tkrebes/hightime | 5312266c808556f11bde1725bc968564180df0f1 | [
"MIT"
] | null | null | null | import sys
from .sitimeunit import SITimeUnit
isPython3Compat = (sys.version_info.major == 3)
isPython36Compat = (isPython3Compat and (sys.version_info.minor >= 6))
def normalize_frac_seconds(a, b):
"""Returns 3-tuple containing (normalized frac_seconds for a, normalized
frac_seconds for b, most precise (sm... | 42.543478 | 80 | 0.699796 | 500 | 3,914 | 5.152 | 0.202 | 0.251941 | 0.221273 | 0.093168 | 0.54309 | 0.423137 | 0.267857 | 0.157609 | 0.142081 | 0.113354 | 0 | 0.022156 | 0.227389 | 3,914 | 91 | 81 | 43.010989 | 0.829696 | 0.321921 | 0 | 0.18 | 0 | 0 | 0.08539 | 0.016451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9ca952daadbee6b22e4cb8d53f17d4f335031b8 | 222 | py | Python | accounts/urls.py | afg984/happpycoding | d881de4d70abea3062928454d55dcc816d37b3a5 | [
"MIT"
] | 6 | 2015-11-28T13:34:38.000Z | 2016-10-11T11:59:50.000Z | accounts/urls.py | afg984/happpycoding | d881de4d70abea3062928454d55dcc816d37b3a5 | [
"MIT"
] | null | null | null | accounts/urls.py | afg984/happpycoding | d881de4d70abea3062928454d55dcc816d37b3a5 | [
"MIT"
] | null | null | null | from django_fsu import url
from . import views
urlpatterns = [
url('login/', views.login, name='login'),
url('logout/', views.logout, name='logout'),
url('profile/<int:pk>', views.profile, name='profile'),
]
| 22.2 | 59 | 0.648649 | 29 | 222 | 4.931034 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157658 | 222 | 9 | 60 | 24.666667 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.211712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9dcfb8d245f4e4c379ad41c4bae671d93734033 | 1,236 | py | Python | perfkitbenchmarker/context.py | robfrut135/PerfKitBenchmarker | ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c | [
"Apache-2.0"
] | 3 | 2018-04-28T13:06:14.000Z | 2020-06-09T02:39:44.000Z | perfkitbenchmarker/context.py | robfrut135/PerfKitBenchmarker | ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c | [
"Apache-2.0"
] | 1 | 2018-03-15T21:01:27.000Z | 2018-03-15T21:01:27.000Z | perfkitbenchmarker/context.py | robfrut135/PerfKitBenchmarker | ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c | [
"Apache-2.0"
] | 6 | 2019-06-11T18:59:57.000Z | 2021-03-02T19:14:42.000Z | # Copyright 2015 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 30.9 | 78 | 0.771036 | 171 | 1,236 | 5.473684 | 0.578947 | 0.064103 | 0.068376 | 0.034188 | 0.076923 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.158576 | 1,236 | 39 | 79 | 31.692308 | 0.892308 | 0.707929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c9e4abe60b90e60426a219ee6fec07063b3f40f3 | 305 | py | Python | src/api/pages.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | src/api/pages.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | src/api/pages.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | import tornado.web
from content import PAGES
def page_controller(handler_instance, path):
if path in PAGES:
handler_instance.write(PAGES[path].serialize())
else:
handler_instance.set_status(404)
handler_instance.write({
'message': 'A resource was not found for this path.'
})
| 21.785714 | 58 | 0.721311 | 41 | 305 | 5.219512 | 0.682927 | 0.280374 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.183607 | 305 | 13 | 59 | 23.461538 | 0.84739 | 0 | 0 | 0 | 0 | 0 | 0.15082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9e841e014e87b7075f87ca19eeab4f20f7fce6c | 355 | py | Python | RoomsOnRent/Blog/admin.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/Blog/admin.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/Blog/admin.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post, Comment
class PostAdmin(admin.ModelAdmin):
list_display = ('author','title','created_date','published_date','image')
class CommentAdmin(admin.ModelAdmin):
list_display = ('post','author','created_date')
admin.site.register(Post,PostAdmin)
admin.s... | 22.1875 | 77 | 0.760563 | 43 | 355 | 6.162791 | 0.511628 | 0.10566 | 0.143396 | 0.196226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101408 | 355 | 15 | 78 | 23.666667 | 0.830721 | 0 | 0 | 0 | 0 | 0 | 0.180282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a0032619f7b2be9a51cd2a3915144c4401d3f01e | 655 | py | Python | tests/unit/utils/test_utils.py | jadami10/flower | 05e848d37a5abbdd4b34156d57a23166fc5efc3d | [
"BSD-3-Clause"
] | 7 | 2019-10-07T11:16:06.000Z | 2021-09-24T11:57:56.000Z | tests/unit/utils/test_utils.py | KonstantinKlepikov/flower | 89e71c8c00dcb51bc584e908fc6b2ba97706e89a | [
"BSD-3-Clause"
] | 3 | 2016-07-25T04:16:40.000Z | 2018-08-08T05:05:10.000Z | tests/unit/utils/test_utils.py | Gabriel-Desharnais/flowest | a8c6bdaa24317124c3ba27eed07d62f8c4cc8531 | [
"BSD-3-Clause"
] | 8 | 2019-08-27T16:05:32.000Z | 2021-12-15T17:29:03.000Z | import unittest
from flower.utils import bugreport
from celery import Celery
class BugreportTests(unittest.TestCase):
def test_default(self):
report = bugreport()
self.assertFalse('Unknown Celery version' in report)
self.assertTrue('tornado' in report)
self.assertTrue('humanize' i... | 29.772727 | 60 | 0.674809 | 75 | 655 | 5.853333 | 0.32 | 0.145786 | 0.164009 | 0.300683 | 0.592255 | 0.592255 | 0.592255 | 0.592255 | 0.592255 | 0.592255 | 0 | 0 | 0.233588 | 655 | 21 | 61 | 31.190476 | 0.874502 | 0 | 0 | 0.470588 | 0 | 0 | 0.131298 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a008c9a8ae43052aa04c604f338705e7dbe4bc71 | 1,939 | py | Python | gocdapi/stage.py | andrewphilipsmith/gocdapi | 82eb37c6b00a918b6bcf4184a66cad7344cfaa2e | [
"MIT"
] | 8 | 2015-01-23T12:50:30.000Z | 2020-01-21T11:00:19.000Z | gocdapi/stage.py | andrewphilipsmith/gocdapi | 82eb37c6b00a918b6bcf4184a66cad7344cfaa2e | [
"MIT"
] | 7 | 2015-01-27T23:17:05.000Z | 2016-06-08T15:27:07.000Z | gocdapi/stage.py | andrewphilipsmith/gocdapi | 82eb37c6b00a918b6bcf4184a66cad7344cfaa2e | [
"MIT"
] | 2 | 2015-11-23T18:33:24.000Z | 2020-07-15T09:01:34.000Z | """
Module for gocdapi Stage class
"""
from gocdapi.gobase import GoBase
class Stage(GoBase):
"""
Class to hold Go Server Stage information
"""
def __init__(self, go_server, pipeline, data):
"""Inits Stage objects.
Args:
go_server (Go): A Go object which this Stage belon... | 29.378788 | 112 | 0.625064 | 254 | 1,939 | 4.622047 | 0.370079 | 0.040886 | 0.028109 | 0.035775 | 0.146508 | 0.069847 | 0.069847 | 0.069847 | 0.069847 | 0 | 0 | 0.002174 | 0.288293 | 1,939 | 65 | 113 | 29.830769 | 0.848551 | 0.525529 | 0 | 0 | 0 | 0 | 0.065903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a015a79f3a34467630656ad6b59d1a4c00a2d976 | 13,757 | py | Python | arcfire/arcfire/models.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | null | null | null | arcfire/arcfire/models.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | 38 | 2015-10-21T19:10:36.000Z | 2015-12-18T11:57:12.000Z | arcfire/arcfire/models.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.core.validators import MaxValueValidator, MinValueValidator
from django.core.urlresolvers import reverse
from django.conf import settings
# # # # # # # # # # # # # # # # # # # # # # # # # # #
# Level 0: base abstract and infrastructure classes... | 31.993023 | 460 | 0.622301 | 1,645 | 13,757 | 5.103343 | 0.272948 | 0.021441 | 0.020012 | 0.028946 | 0.265277 | 0.202501 | 0.153186 | 0.09994 | 0.094937 | 0.08922 | 0 | 0.00826 | 0.243222 | 13,757 | 429 | 461 | 32.067599 | 0.798098 | 0.297521 | 0 | 0.241026 | 0 | 0.030769 | 0.21112 | 0.004597 | 0 | 0 | 0 | 0.018648 | 0 | 1 | 0.076923 | false | 0.005128 | 0.025641 | 0.030769 | 0.528205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4e50c9eaddb3cc1ea6331eb13dca8d92f32d04fe | 1,321 | py | Python | lect01_codes/lect01_eg/multiprocess_eg/mp_main.py | radiumweilei/chinahadoop-python-ai-2 | f45271b073f99b9c46de150aa87bcf4adc5feca2 | [
"Apache-2.0"
] | null | null | null | lect01_codes/lect01_eg/multiprocess_eg/mp_main.py | radiumweilei/chinahadoop-python-ai-2 | f45271b073f99b9c46de150aa87bcf4adc5feca2 | [
"Apache-2.0"
] | null | null | null | lect01_codes/lect01_eg/multiprocess_eg/mp_main.py | radiumweilei/chinahadoop-python-ai-2 | f45271b073f99b9c46de150aa87bcf4adc5feca2 | [
"Apache-2.0"
] | 1 | 2019-11-11T09:42:06.000Z | 2019-11-11T09:42:06.000Z | import os
import time
from datetime import datetime
from multiprocessing import Process, Pool
def run_proc(n):
print('第{}次循环,子进程id:{},父进程id:{}'.format(n, os.getpid(), os.getppid()))
time.sleep(1)
if __name__ == '__main__':
print('父进程id', os.getpid())
# 1. 顺序执行任务
# start = datetime.now()
# ... | 23.175439 | 74 | 0.551098 | 175 | 1,321 | 4.074286 | 0.302857 | 0.154278 | 0.112202 | 0.13324 | 0.605891 | 0.605891 | 0.538569 | 0.497896 | 0.457223 | 0.457223 | 0 | 0.02268 | 0.265708 | 1,321 | 56 | 75 | 23.589286 | 0.712371 | 0.628312 | 0 | 0 | 0 | 0 | 0.081678 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4e51a3f60a853dcb91ad39c536974879ba250f9f | 268 | py | Python | strings_12/tests/test_change_case.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | null | null | null | strings_12/tests/test_change_case.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 2 | 2019-04-15T06:29:55.000Z | 2019-04-19T17:34:32.000Z | strings_12/tests/test_change_case.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 1 | 2019-11-19T04:51:18.000Z | 2019-11-19T04:51:18.000Z | import pytest
from ..change_case import change_case
@pytest.mark.parametrize("x_str, expected", [
("BLACKstar", "blackSTAR"),
("jOhn", "JoHN")
])
def test_change_case(x_str, expected):
actual = change_case(x_str)
assert actual == expected
| 22.333333 | 46 | 0.664179 | 33 | 268 | 5.151515 | 0.484848 | 0.235294 | 0.141176 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197761 | 268 | 11 | 47 | 24.363636 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0.159533 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e584909a422d8166030333d2adb063c0ced43a9 | 1,019 | py | Python | server/account/models.py | istommao/fakedataset | 365ef0c68d1ecac30ab2c9908e6a5efa1da5d81e | [
"MIT"
] | null | null | null | server/account/models.py | istommao/fakedataset | 365ef0c68d1ecac30ab2c9908e6a5efa1da5d81e | [
"MIT"
] | null | null | null | server/account/models.py | istommao/fakedataset | 365ef0c68d1ecac30ab2c9908e6a5efa1da5d81e | [
"MIT"
] | null | null | null | """account models."""
from django.contrib.auth.hashers import (
check_password, make_password
)
from django.db import models
from extension.modelutils import RandomFixedCharField
class Account(models.Model):
uid = RandomFixedCharField('编号', max_length=32, unique=True)
username = models.CharField('用户名',... | 28.305556 | 66 | 0.693817 | 123 | 1,019 | 5.512195 | 0.422764 | 0.106195 | 0.088496 | 0.050147 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.197252 | 1,019 | 35 | 67 | 29.114286 | 0.821516 | 0.020608 | 0 | 0 | 0 | 0 | 0.027356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.391304 | 0.130435 | 0.043478 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
4e5f6c409675e74bac8adf5ea0c951c284a25d25 | 181 | py | Python | asyncy/constants/LineConstants.py | rashmi43/platform-engine | dd9a22742bc8dc43a530ea5edef39b3c35db57c1 | [
"Apache-2.0"
] | null | null | null | asyncy/constants/LineConstants.py | rashmi43/platform-engine | dd9a22742bc8dc43a530ea5edef39b3c35db57c1 | [
"Apache-2.0"
] | null | null | null | asyncy/constants/LineConstants.py | rashmi43/platform-engine | dd9a22742bc8dc43a530ea5edef39b3c35db57c1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class LineConstants:
method = 'method'
output = 'output'
enter = 'enter'
parent = 'parent'
command = 'command'
service = 'service'
| 16.454545 | 23 | 0.563536 | 17 | 181 | 6 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.281768 | 181 | 10 | 24 | 18.1 | 0.776923 | 0.116022 | 0 | 0 | 0 | 0 | 0.234177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4e69ad09d076ffa2812d0d72b1983c1392ea46e1 | 29,469 | py | Python | wicarproject/carapi/carupload_tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | 1 | 2018-04-20T04:58:50.000Z | 2018-04-20T04:58:50.000Z | wicarproject/carapi/carupload_tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | 7 | 2021-02-08T20:24:49.000Z | 2022-03-11T23:26:33.000Z | wicarproject/carapi/carupload_tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | null | null | null | import os
import unittest
import sqlalchemy
from flask import Flask,session,url_for,redirect
from flask_sqlalchemy import SQLAlchemy
from application import create_app ,db
import unittest
import json
from caruser.models import User, UserBank
from carupload.models import CarOption,Car,CarImage
from flask_testing import ... | 43.083333 | 137 | 0.574468 | 3,459 | 29,469 | 4.6817 | 0.08991 | 0.029332 | 0.034581 | 0.036742 | 0.773929 | 0.732 | 0.697542 | 0.681116 | 0.647524 | 0.622144 | 0 | 0.013347 | 0.29828 | 29,469 | 683 | 138 | 43.146413 | 0.769766 | 0.0226 | 0 | 0.637343 | 0 | 0 | 0.116053 | 0.007123 | 0.010772 | 0 | 0 | 0 | 0.122083 | 1 | 0.061041 | false | 0 | 0.039497 | 0 | 0.102334 | 0.001795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e6a00926225b1d573a3d0b1379d0479bee2d1ba | 2,165 | py | Python | neural-network/model/gcn_lib/sparse/data_util.py | BuildJet/hongbomiao.com | 33bcbf63c51f9df725811ddbdef49d0db46146ef | [
"MIT"
] | 104 | 2019-08-09T21:27:48.000Z | 2022-03-29T11:58:36.000Z | neural-network/model/gcn_lib/sparse/data_util.py | BuildJet/hongbomiao.com | 33bcbf63c51f9df725811ddbdef49d0db46146ef | [
"MIT"
] | 4,187 | 2019-08-04T08:19:36.000Z | 2022-03-31T22:43:20.000Z | neural-network/model/gcn_lib/sparse/data_util.py | BuildJet/hongbomiao.com | 33bcbf63c51f9df725811ddbdef49d0db46146ef | [
"MIT"
] | 19 | 2019-08-06T00:53:05.000Z | 2022-01-04T05:55:48.000Z | # allowable multiple choice node and edge features
# code from https://github.com/snap-stanford/ogb/blob/master/ogb/utils/features.py
allowable_features = {
"possible_atomic_num_list": list(range(1, 119)) + ["misc"], # type: ignore
"possible_chirality_list": [
"CHI_UNSPECIFIED",
"CHI_TETRAHEDRA... | 35.491803 | 82 | 0.590762 | 237 | 2,165 | 5.004219 | 0.35865 | 0.186341 | 0.27403 | 0.244519 | 0.309444 | 0.165261 | 0.109612 | 0.109612 | 0.109612 | 0.021922 | 0 | 0.029225 | 0.272979 | 2,165 | 60 | 83 | 36.083333 | 0.724269 | 0.065589 | 0 | 0.185185 | 0 | 0 | 0.381872 | 0.2526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0.037037 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e71fbacfde29db685d3ecdd9b0c31b58a97a5ef | 1,841 | py | Python | generator/contact.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | generator/contact.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | generator/contact.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | from models.model_contact import Contact
import random
import string
import os.path
import jsonpickle
import getopt
import sys
def random_string(prefix, maxlen):
symbols = string.ascii_letters + string.digits
return prefix + ''.join([random.choice(symbols) for i in range(random.randrange(maxlen))])
try:
... | 33.472727 | 96 | 0.551331 | 204 | 1,841 | 4.843137 | 0.446078 | 0.206478 | 0.212551 | 0.022267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032031 | 0.304726 | 1,841 | 54 | 97 | 34.092593 | 0.739844 | 0 | 0 | 0 | 0 | 0 | 0.056491 | 0.014123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.152174 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e8fedac1be1849239d5c90fd7ed2234086dcfe6 | 698 | py | Python | profiles/models.py | ev-agelos/acr-server | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | 1 | 2021-03-11T04:25:07.000Z | 2021-03-11T04:25:07.000Z | profiles/models.py | ev-agelos/acr-server | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | 7 | 2020-03-06T17:37:01.000Z | 2021-09-22T17:40:10.000Z | profiles/models.py | ev-agelos/ac-rank | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from django_countries.fields import CountryField
class Profile(models.Model):
"""Extend user model with a country field."""
user = models.OneToOneField(... | 29.083333 | 70 | 0.767908 | 93 | 698 | 5.655914 | 0.430108 | 0.095057 | 0.045627 | 0.08365 | 0.110266 | 0.110266 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12894 | 698 | 23 | 71 | 30.347826 | 0.865132 | 0.055874 | 0 | 0.133333 | 0 | 0 | 0.024502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4e92e1a84cbde5bdb7f5c55409d43bffcb5d668d | 17,703 | py | Python | octopus_deploy_swagger_client/models/user_role_resource.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/models/user_role_resource.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/models/user_role_resource.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | 42.555288 | 2,033 | 0.673106 | 1,736 | 17,703 | 6.644585 | 0.151498 | 0.024967 | 0.091547 | 0.081144 | 0.712961 | 0.638405 | 0.615778 | 0.47889 | 0.452189 | 0.366363 | 0 | 0.01339 | 0.223747 | 17,703 | 415 | 2,034 | 42.657831 | 0.826008 | 0.254477 | 0 | 0.10582 | 1 | 0 | 0.32542 | 0.064952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.015873 | 0 | 0.285714 | 0.010582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e99de297b6c41fb361b034e5f59be29d6569791 | 316 | py | Python | exercises/exc_G1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_G1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_G1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | num_list = [10,50,30,12,6,8,100]
def max_min_first_last(nlist):
____________________ # Maximum number
____________________ # Minimum number
____________________ # First number
____________________ # Last number
return _____________________________________
print( max_min_first_last(num_list) )
| 28.727273 | 48 | 0.78481 | 31 | 316 | 3.967742 | 0.645161 | 0.113821 | 0.178862 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048507 | 0.151899 | 316 | 10 | 49 | 31.6 | 0.410448 | 0.170886 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4eb925716edb4ee9dd67f2ff8a8ea4fae8d882c9 | 312 | py | Python | library/fcntl_test.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/fcntl_test.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/fcntl_test.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
import unittest
class FcntlModuleTest(unittest.TestCase):
def test_it_imports(self):
import fcntl
self.assertEqual(fcntl.__name__, "fcntl")
if __name__ == "__main__":
unittest.main()
| 20.8 | 76 | 0.695513 | 38 | 312 | 5.342105 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.176282 | 312 | 14 | 77 | 22.285714 | 0.785992 | 0.307692 | 0 | 0 | 0 | 0 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4ebc1c80bd48bd6945b5be017cbcc2dddcc7d826 | 589 | py | Python | emailtemplates/admin.py | mpasternak/django-emailtemplates | 529e0120c8c3a58605257eff893df636a5cbf8d0 | [
"MIT"
] | 1 | 2015-05-18T13:51:08.000Z | 2015-05-18T13:51:08.000Z | emailtemplates/admin.py | mpasternak/django-emailtemplates | 529e0120c8c3a58605257eff893df636a5cbf8d0 | [
"MIT"
] | null | null | null | emailtemplates/admin.py | mpasternak/django-emailtemplates | 529e0120c8c3a58605257eff893df636a5cbf8d0 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from django.contrib import admin
from emailtemplates.models import EmailTemplate
from emailtemplates.models import MailServerFailure
class EmailTemplateAdmin(admin.ModelAdmin):
list_display = ['desc', 'subject']
readonly_fields = ['uid']
pass
admin.site.register(Ema... | 26.772727 | 63 | 0.726655 | 57 | 589 | 7.403509 | 0.526316 | 0.085308 | 0.113744 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.162988 | 589 | 21 | 64 | 28.047619 | 0.853955 | 0.039049 | 0 | 0.153846 | 0 | 0 | 0.095764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
4ebf8d3d945323e73e17ed94dafefa6fcbf477bd | 380 | py | Python | src/pip/_internal/resolution/mixology/package.py | OhMyBuggg/pip | 89d500c658dcd1f55a42bf5f77e052e6d17ed9d0 | [
"MIT"
] | null | null | null | src/pip/_internal/resolution/mixology/package.py | OhMyBuggg/pip | 89d500c658dcd1f55a42bf5f77e052e6d17ed9d0 | [
"MIT"
] | 1 | 2020-09-25T18:54:26.000Z | 2020-09-25T18:54:26.000Z | src/pip/_internal/resolution/mixology/package.py | OhMyBuggg/pip | 89d500c658dcd1f55a42bf5f77e052e6d17ed9d0 | [
"MIT"
] | null | null | null | class Package(object):
def __init__(self, name):
self._name = name
@classmethod
def root(cls): # type: () -> Package
return Package("_root_")
@property
def __str__(self):
return self._name
def __eq__(self, other):
return str(other == self._name)
def __re... | 22.352941 | 48 | 0.584211 | 43 | 380 | 4.651163 | 0.418605 | 0.2 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284211 | 380 | 17 | 48 | 22.352941 | 0.735294 | 0.05 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.307692 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4ec3208965da07154e57bd52236ae75fc871d372 | 776 | py | Python | src/nltkproperties.py | marufzubery/Red-List-Bot | 6c9f737ede6d4c823693476fa7b7b85bf4dcf5a8 | [
"Apache-2.0"
] | null | null | null | src/nltkproperties.py | marufzubery/Red-List-Bot | 6c9f737ede6d4c823693476fa7b7b85bf4dcf5a8 | [
"Apache-2.0"
] | null | null | null | src/nltkproperties.py | marufzubery/Red-List-Bot | 6c9f737ede6d4c823693476fa7b7b85bf4dcf5a8 | [
"Apache-2.0"
] | null | null | null |
import nltk
import numpy as np
from nltk.stem.porter import PorterStemmer
nltk.download('punkt')
stemmer = PorterStemmer()
# splitting a string into words, punctuation and numbers
def tokenize(sentence):
return nltk.word_tokenize(sentence)
# generating the root form the words ex: universe - univers, universi... | 24.25 | 81 | 0.725515 | 114 | 776 | 4.850877 | 0.508772 | 0.122966 | 0.068716 | 0.079566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.195876 | 776 | 31 | 82 | 25.032258 | 0.879808 | 0.280928 | 0 | 0 | 0 | 0 | 0.009058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4ec57a734fd6e6ba23c2187e7f9b9d79eb49894f | 742 | py | Python | src/push_api_clientpy/__init__.py | coveo/push-api-client.py | bc4e7a6befbaed14ac16863cc25ff43ef41525d8 | [
"MIT"
] | null | null | null | src/push_api_clientpy/__init__.py | coveo/push-api-client.py | bc4e7a6befbaed14ac16863cc25ff43ef41525d8 | [
"MIT"
] | 1 | 2022-02-09T11:59:17.000Z | 2022-02-09T11:59:17.000Z | src/push_api_clientpy/__init__.py | coveo/push-api-client.py | bc4e7a6befbaed14ac16863cc25ff43ef41525d8 | [
"MIT"
] | null | null | null | import sys
if sys.version_info[:2] >= (3, 8):
# TODO: Import directly (no need for conditional) when `python_requires = >= 3.8`
from importlib.metadata import PackageNotFoundError, version # pragma: no cover
else:
from importlib_metadata import PackageNotFoundError, version # pragma: no cover
try:
#... | 32.26087 | 85 | 0.745283 | 91 | 742 | 5.934066 | 0.571429 | 0.074074 | 0.072222 | 0.1 | 0.248148 | 0.248148 | 0.248148 | 0.248148 | 0.248148 | 0 | 0 | 0.008183 | 0.17655 | 742 | 22 | 86 | 33.727273 | 0.875614 | 0.269542 | 0 | 0 | 0 | 0 | 0.057836 | 0.044776 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4ece3ece6512a9e1cbd43be4fb424a421b22f700 | 1,384 | py | Python | python/paddle_fl/split_learning/core/reader/reader_base.py | jhjiangcs/PaddleFL | debcc3809f634f696637e1fd8f15ca2430b0c1df | [
"Apache-2.0"
] | 2 | 2021-03-02T09:24:31.000Z | 2021-05-27T21:00:29.000Z | python/paddle_fl/split_learning/core/reader/reader_base.py | JedHong/PaddleFL | 4b10985f808511d63f2efc76e387103ccde14e32 | [
"Apache-2.0"
] | null | null | null | python/paddle_fl/split_learning/core/reader/reader_base.py | JedHong/PaddleFL | 4b10985f808511d63f2efc76e387103ccde14e32 | [
"Apache-2.0"
] | 1 | 2020-05-18T11:07:38.000Z | 2020-05-18T11:07:38.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.542857 | 112 | 0.680636 | 194 | 1,384 | 4.737113 | 0.546392 | 0.065288 | 0.039173 | 0.055495 | 0.041349 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017179 | 0.200867 | 1,384 | 34 | 113 | 40.705882 | 0.813743 | 0.442197 | 0 | 0.111111 | 0 | 0 | 0.146631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4ed7072eb26c7d3dbe4f2527653e38fa3cf65c67 | 638 | py | Python | app/__init__.py | PabloEckardt/Flask-Login-Example | a230a6ce6678b52bb4c62b0b62b167edd927ebd0 | [
"MIT"
] | null | null | null | app/__init__.py | PabloEckardt/Flask-Login-Example | a230a6ce6678b52bb4c62b0b62b167edd927ebd0 | [
"MIT"
] | null | null | null | app/__init__.py | PabloEckardt/Flask-Login-Example | a230a6ce6678b52bb4c62b0b62b167edd927ebd0 | [
"MIT"
] | null | null | null | from flask import current_app, Flask, redirect, url_for
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
import config
from flask_login import LoginManager
app = Flask(__name__)
app.config.from_object(config) # load config.py
app.secret_key = 'super duper mega secret key'
login_manager = LoginManag... | 31.9 | 69 | 0.80721 | 97 | 638 | 5.14433 | 0.443299 | 0.12024 | 0.068136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 638 | 19 | 70 | 33.578947 | 0.907273 | 0.260188 | 0 | 0 | 0 | 0 | 0.066524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.533333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
14cd52d75b110058b96680b7258b9682ab53013c | 592 | py | Python | python/0496.toy-factory.py | Ubastic/lintcode | 9f600eece075410221a24859331a810503c76014 | [
"MIT"
] | 6 | 2019-10-02T02:24:49.000Z | 2021-11-18T10:08:07.000Z | python/0496.toy-factory.py | Ubastic/lintcode | 9f600eece075410221a24859331a810503c76014 | [
"MIT"
] | 1 | 2020-02-28T03:42:36.000Z | 2020-03-07T09:26:00.000Z | src/0496.toy-factory/0496.toy-factory.py | jiangshanmeta/lintcode | 7d7003825b5a7b9fd5b0be57aa2d84391e0d1fa5 | [
"MIT"
] | 2 | 2020-07-25T08:42:38.000Z | 2021-05-07T06:16:46.000Z | """
Your object will be instantiated and called as such:
ty = ToyFactory()
toy = ty.getToy(type)
toy.talk()
"""
class Toy:
def talk(self):
raise NotImplementedError('This method should have implemented.')
class Dog(Toy):
def talk(self):
print('Wow')
class Cat(Toy):
def talk(self):
... | 20.413793 | 73 | 0.584459 | 75 | 592 | 4.613333 | 0.546667 | 0.052023 | 0.086705 | 0.121387 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29223 | 592 | 29 | 74 | 20.413793 | 0.825776 | 0.297297 | 0 | 0.1875 | 0 | 0 | 0.120098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.6875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
14e0f7d00154bf2e7af79e4ad4be7d9c4b233cd5 | 347 | py | Python | src/server/main.py | IsaacLean/project-owl | ba1b995f28abe461d40af5884d974bee15e0625f | [
"MIT"
] | 1 | 2018-10-23T01:42:14.000Z | 2018-10-23T01:42:14.000Z | src/server/main.py | IsaacLean/project-owl | ba1b995f28abe461d40af5884d974bee15e0625f | [
"MIT"
] | 1 | 2015-10-03T18:26:42.000Z | 2015-10-03T18:26:42.000Z | src/server/main.py | IsaacLean/project-owl | ba1b995f28abe461d40af5884d974bee15e0625f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import webapp2
from pkg.controllers.transactionctrl import TransactionCtrl
from pkg.controllers.appctrl import AppCtrl
from pkg.controllers.debug import Debug
app = webapp2.WSGIApplication([
('/transaction', TransactionCtrl),
('/transaction/([0-9]+)', TransactionCtrl),
('/', AppCtrl),
('/deb... | 24.785714 | 59 | 0.746398 | 38 | 347 | 6.815789 | 0.473684 | 0.081081 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.100865 | 347 | 13 | 60 | 26.692308 | 0.817308 | 0.057637 | 0 | 0 | 0 | 0 | 0.122699 | 0.064417 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
14ff9b4e350a6ca08c90a2722fd722026d991e51 | 1,857 | py | Python | ravager/housekeeping.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | null | null | null | ravager/housekeeping.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | 1 | 2022-03-15T06:55:48.000Z | 2022-03-15T15:38:20.000Z | ravager/housekeeping.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | 2 | 2022-02-09T21:30:57.000Z | 2022-03-15T06:19:57.000Z | from ravager.database.tasks import Tasks
import logging
from ravager.database.helpers import setup_db
from ravager.config import DATABASE_URL, LOGS_DIR
from ravager.helpers.check_process import Process
from subprocess import check_call
logger = logging.getLogger(__file__)
setup_db.create_tables()
logger.info("Databas... | 36.411765 | 74 | 0.726979 | 247 | 1,857 | 5.275304 | 0.352227 | 0.230238 | 0.317728 | 0.101305 | 0.154259 | 0.082118 | 0.053722 | 0 | 0 | 0 | 0 | 0.032063 | 0.109855 | 1,857 | 50 | 75 | 37.14 | 0.756201 | 0.050619 | 0 | 0 | 0 | 0 | 0.277273 | 0.152273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.15 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09000834339f325e00a15ac2eaa5bf2ddeeff627 | 1,110 | py | Python | MGTU-demo/arrange_signs.py | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | MGTU-demo/arrange_signs.py | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | MGTU-demo/arrange_signs.py | webkadiz/olympiad-problems | 620912815904c0f95b91ccd193ca3db0ea20e507 | [
"MIT"
] | null | null | null | from math import inf
nums = list(map(int, input().split()))
signs = { '+': 1, '-': 2, '*': 3, '/': 4, '%': 5, '=': 0 }
anss = []
def comb(nums, exp, wasEq):
if not nums:
try:
res = eval(exp)
except:
res = 0
if type(res) == bool and eval(exp):
anss.append(exp)
return
return
cur, nrest = str(n... | 17.076923 | 58 | 0.544144 | 170 | 1,110 | 3.505882 | 0.323529 | 0.166107 | 0.221477 | 0.276846 | 0.365772 | 0.365772 | 0.352349 | 0.352349 | 0.352349 | 0.352349 | 0 | 0.020214 | 0.242342 | 1,110 | 64 | 59 | 17.34375 | 0.688466 | 0 | 0 | 0.044444 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.066667 | 0.088889 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09003f8db6874b60bff5eb74103e02a1d139ecc6 | 222 | py | Python | ex052.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | ex052.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | ex052.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | num = int (input ('Digite um número inteiro: '))
if num % 2 != 0 and num % 3 != 0 and num % 5 != 0 and num % 7 != 0:
print ('{} é um número primo'.format(num))
else:
print ('{} não é um número primo.'.format(num))
| 37 | 67 | 0.567568 | 39 | 222 | 3.230769 | 0.512821 | 0.190476 | 0.166667 | 0.222222 | 0.365079 | 0.365079 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0.247748 | 222 | 5 | 68 | 44.4 | 0.706587 | 0 | 0 | 0 | 0 | 0 | 0.31982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.