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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
877de1b49e268b03b13b377f183427a17a5bcb69 | 4,120 | py | Python | test/integration/fast_output_test.py | karldw/pudl | 2a0fe38f8ba742a2cd78ef6eb3b1efe106f45940 | [
"MIT"
] | null | null | null | test/integration/fast_output_test.py | karldw/pudl | 2a0fe38f8ba742a2cd78ef6eb3b1efe106f45940 | [
"MIT"
] | null | null | null | test/integration/fast_output_test.py | karldw/pudl | 2a0fe38f8ba742a2cd78ef6eb3b1efe106f45940 | [
"MIT"
] | null | null | null | """PyTest cases related to the integration between FERC1 & EIA 860/923."""
import logging
import os
import sys
import geopandas as gpd
import pytest
import pudl
logger = logging.getLogger(__name__)
@pytest.fixture(scope="module")
def fast_out(pudl_engine, pudl_datastore_fixture):
"""A PUDL output object for us... | 30.977444 | 78 | 0.717476 | 599 | 4,120 | 4.741235 | 0.285476 | 0.051761 | 0.022183 | 0.035211 | 0.332042 | 0.207746 | 0.13662 | 0.094366 | 0.064085 | 0 | 0 | 0.050457 | 0.177427 | 4,120 | 132 | 79 | 31.212121 | 0.787548 | 0.266019 | 0 | 0.028169 | 0 | 0 | 0.223254 | 0.007224 | 0 | 0 | 0 | 0 | 0.084507 | 1 | 0.225352 | false | 0 | 0.084507 | 0 | 0.338028 | 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 | 0 | 0 | 0 | 1 |
87821f0341bd64940ede1f02184eb2f9b6e99b08 | 3,645 | py | Python | site_scons/site_tools/auto_install_binaries.py | GeertBosch/mongo | 884d232473dca72e0872f0e540d4c3108c1e0b3d | [
"Apache-2.0"
] | 1 | 2018-03-07T22:12:35.000Z | 2018-03-07T22:12:35.000Z | site_scons/site_tools/auto_install_binaries.py | GeertBosch/mongo | 884d232473dca72e0872f0e540d4c3108c1e0b3d | [
"Apache-2.0"
] | 4 | 2019-02-22T10:05:59.000Z | 2021-03-26T00:20:23.000Z | site_scons/site_tools/auto_install_binaries.py | GeertBosch/mongo | 884d232473dca72e0872f0e540d4c3108c1e0b3d | [
"Apache-2.0"
] | 10 | 2018-11-29T07:17:30.000Z | 2022-03-07T01:33:41.000Z | import SCons
def exists(env):
return True
def generate(env):
env.Tool('install')
suffix_map = {
env.subst('$PROGSUFFIX') : 'bin',
'.dylib' : 'lib',
'.so' : 'lib',
}
def auto_install(env, target, source, **kwargs):
prefixDir = env.Dir('$INSTALL_DIR')
acti... | 36.45 | 107 | 0.611797 | 418 | 3,645 | 5.169856 | 0.322967 | 0.035632 | 0.026377 | 0.024988 | 0.110597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000393 | 0.301235 | 3,645 | 99 | 108 | 36.818182 | 0.848057 | 0.135254 | 0 | 0 | 1 | 0 | 0.073225 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.082192 | false | 0 | 0.027397 | 0.013699 | 0.164384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8788c4a23bd7e3d71a9305771e907f62146c86cc | 1,752 | py | Python | release/stubs.min/Autodesk/Revit/UI/__init___parts/TextBox.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/UI/__init___parts/TextBox.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/UI/__init___parts/TextBox.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class TextBox(RibbonItem):
""" The TextBox object represents text-based control that allows the user to enter text. """
Image = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""The image of the TextBox.
Get: Image(self: TextBox) -> ImageSource
Set: Image(self: T... | 19.043478 | 97 | 0.63242 | 218 | 1,752 | 5.077982 | 0.261468 | 0.162602 | 0.097561 | 0.130081 | 0.35682 | 0.35682 | 0.31346 | 0.31346 | 0.31346 | 0.31346 | 0 | 0 | 0.260845 | 1,752 | 91 | 98 | 19.252747 | 0.854826 | 0.047945 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8791024d53bdb355d5637d8fa7d74e2932fa709f | 1,229 | py | Python | app/schema.py | LEO-Pharma-R-D-Data-Analytics/leo-optimizer | 7001a77a578d53068dfcf45064e978cbd833f5c9 | [
"Apache-2.0"
] | 2 | 2021-12-20T19:59:59.000Z | 2022-02-22T12:13:39.000Z | app/schema.py | LEO-Pharma-R-D-Data-Analytics/leo-optimizer | 7001a77a578d53068dfcf45064e978cbd833f5c9 | [
"Apache-2.0"
] | null | null | null | app/schema.py | LEO-Pharma-R-D-Data-Analytics/leo-optimizer | 7001a77a578d53068dfcf45064e978cbd833f5c9 | [
"Apache-2.0"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
from app.models import City
from app.models import Continent
from app.models import Country
from app.models import District
from app.models import Governor
from app.models import Mayor
from app.models import State
from leo_optimizer import gql_optimizer
... | 18.073529 | 69 | 0.73393 | 143 | 1,229 | 6.188811 | 0.300699 | 0.055367 | 0.102825 | 0.150282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001022 | 0.204231 | 1,229 | 67 | 70 | 18.343284 | 0.903885 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0.052632 | 0.815789 | 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 | 0 | 1 | 0 | 0 | 1 |
87a1ff10bb972b6c15e13c39d6566293ee26292f | 460 | py | Python | Python 3/20.prac_no3.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | 1 | 2021-06-11T08:55:03.000Z | 2021-06-11T08:55:03.000Z | Python 3/20.prac_no3.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | null | null | null | Python 3/20.prac_no3.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | null | null | null | <<<<<<< HEAD
res = 0
a= 100
for i in range(1, 3):
res = a >> i
#print(f' 중간값 {res}')
res = res + 1
#print(f' 중간값+1 {res}')
#print(f' 최종값 {res}')
print(res)
# 정처기 비트이동문제 구현
=======
coffee = {'아메리카노':2500,'카푸치노':3500,'카페라떼':3000,'레몬레이드':2000}
for c in sorted(coffee.items(),key=lambda x:x[1],reverse=T... | 17.037037 | 63 | 0.578261 | 70 | 460 | 3.8 | 0.585714 | 0.067669 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140584 | 0.180435 | 460 | 26 | 64 | 17.692308 | 0.564987 | 0.165217 | 0 | 0 | 0 | 0 | 0.071053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.266667 | 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 | 0 | 0 | 1 |
87a54b9c754b4cdf889e2887f2623a9beab8bfcc | 548 | py | Python | forceDAQ/daq/__init__.py | raunaqbhirangi/pyForceDAQ | a2a41cd7a4a4f0afd178bc5555ba4e0540902d30 | [
"MIT"
] | null | null | null | forceDAQ/daq/__init__.py | raunaqbhirangi/pyForceDAQ | a2a41cd7a4a4f0afd178bc5555ba4e0540902d30 | [
"MIT"
] | null | null | null | forceDAQ/daq/__init__.py | raunaqbhirangi/pyForceDAQ | a2a41cd7a4a4f0afd178bc5555ba4e0540902d30 | [
"MIT"
] | null | null | null | __author__ = "Oliver Lindemann"
__version__ = "0.3"
from ._config import DAQConfiguration
from ._pyATIDAQ import ATI_CDLL
from .. import USE_DUMMY_SENSOR
#### change import here if you want to use nidaqmx instead of pydaymx ####
try:
# from ._daq_read_Analog_pydaqmx import DAQReadAnalog
from ..daq._daq_read_... | 28.842105 | 74 | 0.790146 | 72 | 548 | 5.583333 | 0.513889 | 0.069652 | 0.129353 | 0.126866 | 0.20398 | 0.20398 | 0.20398 | 0 | 0 | 0 | 0 | 0.004292 | 0.149635 | 548 | 18 | 75 | 30.444444 | 0.858369 | 0.213504 | 0 | 0.166667 | 0 | 0 | 0.140143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.083333 | 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 | 0 | 0 | 0 | 1 |
87a5573f0a2f174e48c594eb1b6115d40ef49663 | 310 | py | Python | aifeynman/__init__.py | lacava/AI-Feynman | d53c055ca17d0684fd7ba7d72df8856668e2e132 | [
"MIT"
] | null | null | null | aifeynman/__init__.py | lacava/AI-Feynman | d53c055ca17d0684fd7ba7d72df8856668e2e132 | [
"MIT"
] | null | null | null | aifeynman/__init__.py | lacava/AI-Feynman | d53c055ca17d0684fd7ba7d72df8856668e2e132 | [
"MIT"
] | null | null | null | """AI Feynman
"""
from .sklearn import AIFeynmanRegressor
from .S_run_aifeynman import run_aifeynman
from .get_demos import get_demos
__title__ = "aifeynman"
__version__ = "2.0.7.6"
__license__ = "MIT"
__copyright__ = "Copyright 2020 Silviu-Marian Udrescu"
__all__ = ["run_aifeynman", "AIFeynmanRegressor"]
| 22.142857 | 54 | 0.774194 | 38 | 310 | 5.631579 | 0.657895 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029304 | 0.119355 | 310 | 13 | 55 | 23.846154 | 0.754579 | 0.032258 | 0 | 0 | 0 | 0 | 0.293515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
87a888025285537a5de14274618d0a601c6347fe | 427 | py | Python | tests/settings.py | cobusc/protected-media-prototype | 578e5ceaa8132cfaee46648a6e2ca58a5c892392 | [
"BSD-3-Clause"
] | 35 | 2017-06-12T10:49:46.000Z | 2022-03-02T18:13:17.000Z | tests/settings.py | cobusc/protected-media-prototype | 578e5ceaa8132cfaee46648a6e2ca58a5c892392 | [
"BSD-3-Clause"
] | 8 | 2017-11-02T16:37:29.000Z | 2022-03-21T12:28:13.000Z | tests/settings.py | cobusc/protected-media-prototype | 578e5ceaa8132cfaee46648a6e2ca58a5c892392 | [
"BSD-3-Clause"
] | 8 | 2017-05-16T06:41:42.000Z | 2022-01-28T18:42:32.000Z | SECRET_KEY = "test"
BASE_DIR = "/tmp"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "/tmp/db.sqlite3"
}
}
INCLUDED_APPS = [
"protected_media"
]
PROTECTED_MEDIA_ROOT = "/tmp/protected-media-test/"
PROTECTED_MEDIA_URL = "/myprotectedmedia/"
PROTECTED_MEDIA_SERV... | 17.791667 | 51 | 0.672131 | 49 | 427 | 5.55102 | 0.510204 | 0.308824 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005666 | 0.173302 | 427 | 23 | 52 | 18.565217 | 0.764873 | 0 | 0 | 0 | 0 | 0 | 0.360656 | 0.12178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87ad635614f93fe5b0c098a7be6bcf35a2178c03 | 1,848 | py | Python | sites/utils.py | GeorgOhneH/ethz-document-fetcher | 42921e5d71698a269eb54cf9d3979e4a7d88a9cf | [
"MIT"
] | 15 | 2020-03-17T15:43:46.000Z | 2022-01-08T04:23:49.000Z | sites/utils.py | GeorgOhneH/ethz-document-fetcher | 42921e5d71698a269eb54cf9d3979e4a7d88a9cf | [
"MIT"
] | 5 | 2020-03-12T10:05:27.000Z | 2021-03-03T16:01:47.000Z | sites/utils.py | GeorgOhneH/ethz-document-fetcher | 42921e5d71698a269eb54cf9d3979e4a7d88a9cf | [
"MIT"
] | 2 | 2020-03-17T17:09:20.000Z | 2020-12-28T22:59:17.000Z | import logging
import re
from core.downloader import is_extension_forbidden
from sites import zoom, polybox
logger = logging.getLogger(__name__)
def remove_vz_id(name):
return re.sub(r"[0-9]{3}-[0-9]{4}-[0-9]{2}L\s*", "", name)
async def process_single_file_url(session, queue, base_path, download_settings, ur... | 39.319149 | 106 | 0.566017 | 190 | 1,848 | 5.242105 | 0.336842 | 0.136546 | 0.076305 | 0.040161 | 0.172691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009959 | 0.347944 | 1,848 | 46 | 107 | 40.173913 | 0.816598 | 0 | 0 | 0.055556 | 0 | 0.027778 | 0.081169 | 0.016234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.083333 | 0.111111 | 0.027778 | 0.194444 | 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 | 0 | 0 | 0 | 1 |
87adc5c2d3c03a82f800f88a28a7d3ee1831eee0 | 966 | py | Python | tests/StubTimer.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 12 | 2018-08-02T13:40:22.000Z | 2022-03-01T09:08:32.000Z | tests/StubTimer.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | null | null | null | tests/StubTimer.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 1 | 2020-10-24T13:11:13.000Z | 2020-10-24T13:11:13.000Z | from threading import Timer
class StubTimer:
timers = []
def __init__(self, times_faster=10):
self.t = None
self.callback = None
self.times_faster = times_faster
print('Created stubtimer')
def init(self, period, mode, callback):
self.callback = callback
se... | 25.421053 | 63 | 0.600414 | 116 | 966 | 4.827586 | 0.37931 | 0.053571 | 0.107143 | 0.067857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014903 | 0.305383 | 966 | 37 | 64 | 26.108108 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.026915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.034483 | 0.344828 | 0.034483 | 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 | 0 | 0 | 0 | 1 |
87ae52db35a14f7d7c203eeb8e789df180b88a1e | 3,524 | py | Python | osm_nbi/nbi.py | ed1000/osm_nbi_flask | d942b4d8aecea0a10b07a466d1694151636d9e7b | [
"Apache-2.0"
] | null | null | null | osm_nbi/nbi.py | ed1000/osm_nbi_flask | d942b4d8aecea0a10b07a466d1694151636d9e7b | [
"Apache-2.0"
] | null | null | null | osm_nbi/nbi.py | ed1000/osm_nbi_flask | d942b4d8aecea0a10b07a466d1694151636d9e7b | [
"Apache-2.0"
] | 1 | 2022-03-15T15:45:57.000Z | 2022-03-15T15:45:57.000Z | import flask
from base64 import standard_b64decode
from engine import Engine, EngineException
from nsd_v1.ns_descriptors import ns_descriptors as nsd_v1_ns_descriptors
from nsd_v1.pnf_descriptors import pnf_descriptors as nsd_v1_pnf_descriptors
from nsd_v1.subscriptions import subscriptions as nsd_v1_subscriptions
f... | 44.607595 | 115 | 0.688706 | 449 | 3,524 | 5.138085 | 0.231626 | 0.026008 | 0.031209 | 0.02384 | 0.293455 | 0.122237 | 0 | 0 | 0 | 0 | 0 | 0.020788 | 0.221907 | 3,524 | 79 | 116 | 44.607595 | 0.820569 | 0.139898 | 0 | 0.071429 | 0 | 0 | 0.123592 | 0.08118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.142857 | 0.196429 | 0 | 0.214286 | 0.142857 | 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 | 0 | 0 | 0 | 1 |
87b0e1b800767a90bc96d66c8ce2cee87dd963de | 3,213 | py | Python | Password Generator.py | PeterOyelegbin/Password-Generator | e229af9087ee3e091f24a0adac23da463b459ff7 | [
"CNRI-Python"
] | null | null | null | Password Generator.py | PeterOyelegbin/Password-Generator | e229af9087ee3e091f24a0adac23da463b459ff7 | [
"CNRI-Python"
] | null | null | null | Password Generator.py | PeterOyelegbin/Password-Generator | e229af9087ee3e091f24a0adac23da463b459ff7 | [
"CNRI-Python"
] | null | null | null | # Password Generator
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QIcon, QFont, QPixmap
from random import shuffle
class Generator:
def __init__(self):
# Create frame
frame = QFrame()
vb.addWidget(frame)
# Add label
form = QFor... | 28.433628 | 118 | 0.62714 | 367 | 3,213 | 5.476839 | 0.405995 | 0.029851 | 0.016915 | 0.020896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01941 | 0.230314 | 3,213 | 112 | 119 | 28.6875 | 0.79256 | 0.043573 | 0 | 0.045977 | 0 | 0.011494 | 0.126347 | 0.007835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.091954 | 0.045977 | 0 | 0.091954 | 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 | 0 | 0 | 0 | 1 |
87be667e2d581cf65a1e9a8e1bf636daf3339c25 | 424 | py | Python | userDB/migrations/0012_auto_20190317_1705.py | raumzeitlabor/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | 2 | 2018-04-02T20:47:06.000Z | 2019-05-30T12:26:29.000Z | userDB/migrations/0012_auto_20190317_1705.py | slowpoketail/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | 10 | 2018-03-05T00:33:11.000Z | 2018-03-18T18:06:47.000Z | userDB/migrations/0012_auto_20190317_1705.py | raumzeitlabor/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-17 17:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userDB', '0011_auto_20180318_1739'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='member',
... | 22.315789 | 88 | 0.615566 | 46 | 424 | 5.565217 | 0.804348 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099678 | 0.266509 | 424 | 18 | 89 | 23.555556 | 0.723473 | 0.106132 | 0 | 0 | 1 | 0 | 0.127321 | 0.061008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87c292def3e1b55bd1ccf6f1f44a89344ac2f657 | 2,625 | py | Python | news/migrations/0012_auto_20190127_1249.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 10 | 2017-11-25T01:47:20.000Z | 2020-03-24T18:28:24.000Z | news/migrations/0012_auto_20190127_1249.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 319 | 2017-11-16T09:56:03.000Z | 2022-03-28T00:24:37.000Z | news/migrations/0012_auto_20190127_1249.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | 6 | 2017-11-12T14:04:08.000Z | 2021-03-10T09:41:18.000Z | # Generated by Django 2.1.5 on 2019-01-27 11:49
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 41.666667 | 160 | 0.612952 | 274 | 2,625 | 5.729927 | 0.354015 | 0.07707 | 0.073248 | 0.085987 | 0.380255 | 0.347771 | 0.267516 | 0.267516 | 0.267516 | 0.267516 | 0 | 0.021972 | 0.254476 | 2,625 | 62 | 161 | 42.33871 | 0.780276 | 0.017143 | 0 | 0.375 | 1 | 0 | 0.163305 | 0.008922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089286 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87c794c207a5cd685e0e97eaaed696bb2001c17d | 174,160 | py | Python | romeo.py | btwmendes/Automate-the-Boring-Stuff | eb8825e709bdb293f21592b388453e65f9825d32 | [
"CC0-1.0"
] | null | null | null | romeo.py | btwmendes/Automate-the-Boring-Stuff | eb8825e709bdb293f21592b388453e65f9825d32 | [
"CC0-1.0"
] | null | null | null | romeo.py | btwmendes/Automate-the-Boring-Stuff | eb8825e709bdb293f21592b388453e65f9825d32 | [
"CC0-1.0"
] | null | null | null | spam = """The Project Gutenberg EBook of Romeo and Juliet, by William Shakespeare
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gu... | 35.850144 | 81 | 0.690113 | 30,048 | 174,160 | 3.999933 | 0.136082 | 0.011848 | 0.008536 | 0.004193 | 0.056128 | 0.036842 | 0.024104 | 0.016349 | 0.010617 | 0.006922 | 0 | 0.001688 | 0.262023 | 174,160 | 4,857 | 82 | 35.857525 | 0.933453 | 0 | 0 | 0.026796 | 0 | 0.002762 | 0.999816 | 0.000408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003591 | 0.001105 | 0 | 0.001105 | 0.001105 | 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 | 0 | 0 | 1 |
87cd6700553a2c0d71e56b36a22ebca8dcc2d2a9 | 661 | py | Python | hvm_met_api.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | hvm_met_api.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | hvm_met_api.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | # API: The Met
# No key required
import requests
# r = requests.get('https://collectionapi.metmuseum.org')
# print('The request code was:',r.status_code)
# print('Here is the text of the webpage:',r.text)
# Finding object ID using the search
# r = requests.get('https://collectionapi.metmuseum.org/public/collection/v... | 34.789474 | 135 | 0.750378 | 104 | 661 | 4.75 | 0.509615 | 0.054656 | 0.072874 | 0.103239 | 0.327935 | 0.327935 | 0.327935 | 0.242915 | 0.242915 | 0.242915 | 0 | 0.013675 | 0.114977 | 661 | 19 | 136 | 34.789474 | 0.830769 | 0.774584 | 0 | 0 | 0 | 0 | 0.514493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
87d078e0665f5b01ddffcce6c54e61d70b8ecc49 | 532 | py | Python | scripts/tabulate_biosamples.py | ropolomx/snakefiles | 4ac04c2b70c495eee44abe2165257fc1fcae5a43 | [
"MIT"
] | null | null | null | scripts/tabulate_biosamples.py | ropolomx/snakefiles | 4ac04c2b70c495eee44abe2165257fc1fcae5a43 | [
"MIT"
] | null | null | null | scripts/tabulate_biosamples.py | ropolomx/snakefiles | 4ac04c2b70c495eee44abe2165257fc1fcae5a43 | [
"MIT"
] | 1 | 2019-03-05T01:14:17.000Z | 2019-03-05T01:14:17.000Z | import pandas as pd
from pathlib import import Path
def parse_biosample(biosample):
fields = {}
with biosample.open('r') as f:
for line in f:
l = line.strip()
if l.startswith('/'):
k, v = l.lstrip('/').split('=')
fields[k] = v
return fiel... | 16.625 | 47 | 0.590226 | 67 | 532 | 4.641791 | 0.597015 | 0.090032 | 0.14791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002639 | 0.287594 | 532 | 31 | 48 | 17.16129 | 0.817942 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87d0caecffcfe0bb7d30884996da0c25d8a990af | 39,455 | py | Python | phyutil/phylib/lattice/element.py | frib-high-level-controls/phyhlc | 6486607e3aa0212054a12e9f2ad1a3ef15542f48 | [
"BSD-3-Clause"
] | 1 | 2018-03-22T15:18:54.000Z | 2018-03-22T15:18:54.000Z | phyutil/phylib/lattice/element.py | frib-high-level-controls/phyhlc | 6486607e3aa0212054a12e9f2ad1a3ef15542f48 | [
"BSD-3-Clause"
] | null | null | null | phyutil/phylib/lattice/element.py | frib-high-level-controls/phyhlc | 6486607e3aa0212054a12e9f2ad1a3ef15542f48 | [
"BSD-3-Clause"
] | null | null | null | """
Element
~~~~~~~~
:author: Lingyun Yang
:date: 2011-05-13 10:28
"""
import re
import copy
import logging
# from unitconv import *
# public symbols
__all__ = [ "merge", "ASCENDING", "DESCENDING", "UNSPECIFIED" ]
_logger = logging.getLogger(__name__)
# flags bit pattern
_DISABLED = 0x01
_READONLY = 0x02
UNSPECIF... | 35.577096 | 93 | 0.532556 | 4,851 | 39,455 | 4.249845 | 0.12348 | 0.041036 | 0.017656 | 0.005821 | 0.247187 | 0.19936 | 0.161768 | 0.132518 | 0.107635 | 0.091337 | 0 | 0.007042 | 0.341376 | 39,455 | 1,108 | 94 | 35.609206 | 0.786308 | 0.077658 | 0 | 0.21626 | 0 | 0.001626 | 0.05731 | 0 | 0 | 0 | 0.000298 | 0.00361 | 0 | 0 | null | null | 0.001626 | 0.004878 | null | null | 0.001626 | 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 | 0 | 0 | 1 |
87d0ce4ce7a119a5d3c9913f8b4ceba78a40d5b3 | 3,406 | py | Python | border.py | agadiraju/SeniorDesign | e6d5be0a826ac52100090794c65405d2af9f1252 | [
"MIT"
] | null | null | null | border.py | agadiraju/SeniorDesign | e6d5be0a826ac52100090794c65405d2af9f1252 | [
"MIT"
] | null | null | null | border.py | agadiraju/SeniorDesign | e6d5be0a826ac52100090794c65405d2af9f1252 | [
"MIT"
] | null | null | null | import sys
import math
import numpy as np
#from sklearn.cluster import KMeans
import cv2
from scipy import ndimage
def mse(imageA, imageB):
# the 'Mean Squared Error' between the two images is the
# sum of the squared difference between the two images;
# NOTE: the two images must have the same dimension
err = n... | 30.410714 | 139 | 0.684674 | 531 | 3,406 | 4.329567 | 0.222222 | 0.121792 | 0.073075 | 0.076555 | 0.737277 | 0.655937 | 0.655937 | 0.632014 | 0.577642 | 0.577642 | 0 | 0.06022 | 0.1468 | 3,406 | 111 | 140 | 30.684685 | 0.730902 | 0.295068 | 0 | 0.576271 | 0 | 0 | 0.012685 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.016949 | 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 | 0 | 0 | 1 |
87d3addb7fbe46a4bc3d532227d377d606b23dd9 | 1,052 | py | Python | fenhong/dumpData.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | null | null | null | fenhong/dumpData.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | 1 | 2019-11-04T07:56:09.000Z | 2019-11-04T07:56:09.000Z | fenhong/dumpData.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | null | null | null | import sys
import time
import urllib2
from bs4 import BeautifulSoup
def parseData(url):
req=urllib2.urlopen(url)
data=req.read()
soup=BeautifulSoup(data,from_encoding='utf-8')
target=soup.find(id='sharebonus_1')
if target is None:
return None
tds=target.find('tbody').find_all('td')
result=[]
tmp=[]
for i,td... | 21.469388 | 108 | 0.652091 | 174 | 1,052 | 3.862069 | 0.511494 | 0.017857 | 0.032738 | 0.041667 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032917 | 0.162548 | 1,052 | 48 | 109 | 21.916667 | 0.729852 | 0 | 0 | 0.217391 | 0 | 0.021739 | 0.138783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.065217 | 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 | 0 | 0 | 1 |
87dcf3f72c40286a15608e979b7c1559979d2a31 | 266 | py | Python | git/session.py | aanu1143/github-scrap | 2bced1375e48c49d0b324046b6a2c23a942f6bbf | [
"MIT"
] | 1 | 2021-03-18T08:32:26.000Z | 2021-03-18T08:32:26.000Z | git/session.py | aanu1143/github-scrap | 2bced1375e48c49d0b324046b6a2c23a942f6bbf | [
"MIT"
] | 2 | 2020-10-01T11:35:24.000Z | 2021-03-21T11:48:02.000Z | git/session.py | aanu1143/github-scrap | 2bced1375e48c49d0b324046b6a2c23a942f6bbf | [
"MIT"
] | 2 | 2020-10-01T08:26:39.000Z | 2020-10-01T14:49:32.000Z | import requests
def get_session():
s = requests.Session()
s.headers.update({
'user-agent': 'Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36'
})
return s | 33.25 | 160 | 0.665414 | 42 | 266 | 4.190476 | 0.785714 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133641 | 0.184211 | 266 | 8 | 161 | 33.25 | 0.677419 | 0 | 0 | 0 | 0 | 0.142857 | 0.546816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87e426e96fca4f13d12027cded120e5623883ebb | 2,594 | py | Python | bp_eval/bpredict/predictors/gshare.py | alexf91/gem5-advanced-computer-architecture | 01fb031c0cc42410e148a26d0c3d891fb1372381 | [
"BSD-3-Clause"
] | 1 | 2020-03-25T09:35:45.000Z | 2020-03-25T09:35:45.000Z | bp_eval/bpredict/predictors/gshare.py | alexf91/gem5-advanced-computer-architecture | 01fb031c0cc42410e148a26d0c3d891fb1372381 | [
"BSD-3-Clause"
] | null | null | null | bp_eval/bpredict/predictors/gshare.py | alexf91/gem5-advanced-computer-architecture | 01fb031c0cc42410e148a26d0c3d891fb1372381 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright 2019 Alexander Fasching
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 is distributed ... | 35.054054 | 78 | 0.641866 | 359 | 2,594 | 4.45961 | 0.395543 | 0.056215 | 0.043723 | 0.035603 | 0.139288 | 0.104934 | 0 | 0 | 0 | 0 | 0 | 0.012365 | 0.251735 | 2,594 | 73 | 79 | 35.534247 | 0.812468 | 0.344641 | 0 | 0.052632 | 0 | 0 | 0.029073 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.184211 | false | 0 | 0.026316 | 0.026316 | 0.342105 | 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 | 0 | 0 | 0 | 1 |
87e73a11e303318862b778fc6ae43cc38965ac61 | 3,258 | py | Python | src/sardana/tango/core/__init__.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 43 | 2016-11-25T15:21:23.000Z | 2021-08-20T06:09:40.000Z | src/sardana/tango/core/__init__.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 1,263 | 2016-11-25T15:58:37.000Z | 2021-11-02T22:23:47.000Z | src/sardana/tango/core/__init__.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 58 | 2016-11-21T11:33:55.000Z | 2021-09-01T06:21:21.000Z | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under th... | 44.630137 | 88 | 0.70841 | 298 | 3,258 | 7.45302 | 0.54698 | 0.006754 | 0.016209 | 0.025664 | 0.045025 | 0.045025 | 0.030617 | 0 | 0 | 0 | 0 | 0.001806 | 0.150399 | 3,258 | 72 | 89 | 45.25 | 0.800578 | 0.232351 | 0 | 0 | 0 | 0 | 0.64632 | 0.375325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87e96a82176579d16968f74c00b7e8848e3090e0 | 3,169 | py | Python | bin/ufits-collapse_taxonomy.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | 1 | 2020-05-28T06:47:07.000Z | 2020-05-28T06:47:07.000Z | bin/ufits-collapse_taxonomy.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | null | null | null | bin/ufits-collapse_taxonomy.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import sys, os, argparse
import pandas as pd
from natsort import natsorted
class colr:
GRN = '\033[92m'
END = '\033[0m'
WARN = '\033[93m'
class MyFormatter(argparse.ArgumentDefaultsHelpFormatter):
def __init__(self,prog):
super(MyFormatter,self).__init__(prog,max_help_p... | 31.69 | 144 | 0.612812 | 472 | 3,169 | 4.044492 | 0.387712 | 0.010477 | 0.010477 | 0.014667 | 0.134625 | 0.089576 | 0.066527 | 0.048193 | 0.048193 | 0.048193 | 0 | 0.018489 | 0.197854 | 3,169 | 99 | 145 | 32.010101 | 0.732494 | 0.041969 | 0 | 0.168831 | 0 | 0 | 0.171168 | 0.015868 | 0.012987 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038961 | null | null | 0.038961 | 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 | 0 | 0 | 1 |
87eab857fa6cb6d4df1f8da0e1deac6449cd7484 | 3,084 | py | Python | mud/events/go.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | mud/events/go.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | mud/events/go.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Denys Duchier, IUT d'Orléans
#==============================================================================
from .event import Event2
from .info import InfoEvent
class EnterPortalEvent(Event2):
NAME = "enter-portal"
@property
def exit(self):
return ... | 27.783784 | 79 | 0.601492 | 342 | 3,084 | 5.324561 | 0.216374 | 0.085667 | 0.036244 | 0.056013 | 0.4514 | 0.389896 | 0.389896 | 0.389896 | 0.310818 | 0.283361 | 0 | 0.008749 | 0.258755 | 3,084 | 110 | 80 | 28.036364 | 0.787839 | 0.072309 | 0 | 0.475 | 0 | 0 | 0.104415 | 0.008409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.1 | 0.025 | 0.0625 | 0.4625 | 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 | 0 | 0 | 0 | 1 |
87ec69d6611020a6e8cc65bc88888d2aa76d600a | 1,072 | py | Python | Data Science With Python/09-manipulating-dataframes-with-pandas/01-extracting-and-transforming-data/06-subselecting-dataframes-with-lists.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 3 | 2019-05-12T04:49:24.000Z | 2020-05-06T00:40:28.000Z | Data Science With Python/09-manipulating-dataframes-with-pandas/01-extracting-and-transforming-data/06-subselecting-dataframes-with-lists.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/09-manipulating-dataframes-with-pandas/01-extracting-and-transforming-data/06-subselecting-dataframes-with-lists.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
Subselecting DataFrames with lists
You can use lists to select specific row and column labels with the .loc[] accessor. In this exercise, your job is to select the counties ['Philadelphia', 'Centre', 'Fulton'] and the columns ['winner','Obama','Romney'] from the election DataFrame, which has been pre-loaded for yo... | 44.666667 | 313 | 0.749067 | 165 | 1,072 | 4.830303 | 0.387879 | 0.097867 | 0.065245 | 0.075282 | 0.203262 | 0.12798 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.154851 | 1,072 | 23 | 314 | 46.608696 | 0.87638 | 0.847948 | 0 | 0 | 0 | 0 | 0.269737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87f2ea15e90a0e9f737301ed9dd489268d3a42cf | 419 | py | Python | tests/capture.py | timcera/plottoolbox | b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298 | [
"BSD-3-Clause"
] | null | null | null | tests/capture.py | timcera/plottoolbox | b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298 | [
"BSD-3-Clause"
] | 6 | 2021-09-06T21:26:12.000Z | 2022-03-30T11:55:56.000Z | tests/capture.py | timcera/plottoolbox | b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Capture function
----------------------------------
"""
import sys
try:
from cStringIO import StringIO
except:
from io import StringIO
def capture(func, *args, **kwds):
sys.stdout = StringIO() # capture output
out = func(*args, **kwds)
out = sys.stdout.getvalue() ... | 16.115385 | 49 | 0.541766 | 46 | 419 | 4.934783 | 0.565217 | 0.123348 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.25537 | 419 | 25 | 50 | 16.76 | 0.721154 | 0.24821 | 0 | 0.285714 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 1 |
87f626d6ed28ad4e715e6203ff9200260b74c11c | 25,218 | py | Python | config.py | maxuanquang/SfmLearner-Redesign | 0250a9cc443b5754ba45f69153a03ca26f903a7b | [
"MIT"
] | 1 | 2021-09-26T15:02:10.000Z | 2021-09-26T15:02:10.000Z | config.py | maxuanquang/SfmLearner-Redesign | 0250a9cc443b5754ba45f69153a03ca26f903a7b | [
"MIT"
] | null | null | null | config.py | maxuanquang/SfmLearner-Redesign | 0250a9cc443b5754ba45f69153a03ca26f903a7b | [
"MIT"
] | null | null | null | # Copyright Niantic 2019. Patent Pending. All rights reserved.
#
# This software is licensed under the terms of the Monodepth2 licence
# which allows for non-commercial use only, the full terms of which are made
# available in the LICENSE file.
from __future__ import absolute_import, division, print_function
import o... | 55.915743 | 270 | 0.46554 | 2,201 | 25,218 | 5.238982 | 0.17901 | 0.086723 | 0.110485 | 0.178475 | 0.583037 | 0.50438 | 0.443327 | 0.35565 | 0.295464 | 0.204839 | 0 | 0.008303 | 0.441193 | 25,218 | 450 | 271 | 56.04 | 0.809963 | 0.299905 | 0 | 0.337165 | 0 | 0.015326 | 0.276489 | 0.030003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.019157 | 0 | 0.049808 | 0.011494 | 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 | 0 | 0 | 0 | 1 |
e2018c41e102dfa1647eb9296561778b9362b2d0 | 576 | py | Python | mainApp/migrations/0005_auto_20200815_1522.py | asanka9/youtubeAdmin | 3848027dfd5cf6493eeab9c50a9be9e2fb634b28 | [
"Apache-2.0"
] | null | null | null | mainApp/migrations/0005_auto_20200815_1522.py | asanka9/youtubeAdmin | 3848027dfd5cf6493eeab9c50a9be9e2fb634b28 | [
"Apache-2.0"
] | null | null | null | mainApp/migrations/0005_auto_20200815_1522.py | asanka9/youtubeAdmin | 3848027dfd5cf6493eeab9c50a9be9e2fb634b28 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.5 on 2020-08-15 09:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainApp', '0004_auto_20200815_1215'),
]
operations = [
migrations.AddField(
model_name='videolessons',
name='emb_url... | 24 | 65 | 0.586806 | 59 | 576 | 5.59322 | 0.694915 | 0.054545 | 0.127273 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096059 | 0.295139 | 576 | 23 | 66 | 25.043478 | 0.716749 | 0.078125 | 0 | 0.235294 | 1 | 0 | 0.120983 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e202a607188e3e8dd5dc1d9776d4ec7e34ab6fd5 | 277 | py | Python | comics/urls.py | minicomi/minicomi | 7b2705f41c6d0cf4f6963ebb886641ecd98951b6 | [
"MIT"
] | 2 | 2017-12-31T23:43:50.000Z | 2018-01-10T21:27:16.000Z | comics/urls.py | minicomi/minicomi | 7b2705f41c6d0cf4f6963ebb886641ecd98951b6 | [
"MIT"
] | 48 | 2017-12-11T18:04:05.000Z | 2022-02-27T10:22:19.000Z | comics/urls.py | grampajoe/minicomi | 7b2705f41c6d0cf4f6963ebb886641ecd98951b6 | [
"MIT"
] | 3 | 2017-12-08T19:14:14.000Z | 2021-06-15T12:33:39.000Z | from django.urls import path
from django.views.generic.base import TemplateView
from .views import DashboardView
urlpatterns = [
path('', TemplateView.as_view(template_name='home.html'), name='home'),
path('dashboard/', DashboardView.as_view(), name='dashboard'),
]
| 25.181818 | 75 | 0.740072 | 34 | 277 | 5.941176 | 0.529412 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119134 | 277 | 10 | 76 | 27.7 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0.115523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 |
e203c30f11c5839736cb299c77208430f89d837a | 8,432 | py | Python | test/saucelabs/search_test.py | imanerachid/ima | f32d26af194f2107b28d63a8d2b8e9a65c89bec1 | [
"BSD-3-Clause"
] | 180 | 2015-01-01T13:40:04.000Z | 2022-03-10T19:38:32.000Z | test/saucelabs/search_test.py | imanerachid/ima | f32d26af194f2107b28d63a8d2b8e9a65c89bec1 | [
"BSD-3-Clause"
] | 2,556 | 2015-01-03T06:07:26.000Z | 2022-03-30T11:22:57.000Z | test/saucelabs/search_test.py | imanerachid/ima | f32d26af194f2107b28d63a8d2b8e9a65c89bec1 | [
"BSD-3-Clause"
] | 64 | 2015-01-21T18:13:31.000Z | 2022-02-24T02:12:26.000Z | # -*- coding: utf-8 -*-
import sys
from helpers import waitForUrlChange, pageLoadWait
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
# Gloabl css selectors
inputContainerClass = 'ga-search-input-cont... | 36.502165 | 92 | 0.668762 | 1,005 | 8,432 | 5.564179 | 0.248756 | 0.012876 | 0.01824 | 0.012876 | 0.493562 | 0.469957 | 0.388054 | 0.349428 | 0.347282 | 0.347282 | 0 | 0.041104 | 0.20944 | 8,432 | 230 | 93 | 36.66087 | 0.79778 | 0.092861 | 0 | 0.33908 | 0 | 0.051724 | 0.295845 | 0.081662 | 0 | 0 | 0 | 0.004348 | 0.011494 | 0 | null | null | 0 | 0.028736 | null | null | 0.091954 | 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 | 0 | 0 | 1 |
e2057be1d42b69ee913f5bfb9f271ed144dc24d2 | 49,146 | py | Python | data_analysis/analysis_utils.py | frederickayala/lbsn_group_recsys | ab2dce76ec73700868db1f5cf0db2f80ed62cf8a | [
"MIT"
] | 16 | 2017-09-02T11:28:35.000Z | 2021-08-24T16:06:47.000Z | data_analysis/analysis_utils.py | frederickayala/lbsn_group_recsys | ab2dce76ec73700868db1f5cf0db2f80ed62cf8a | [
"MIT"
] | 7 | 2020-11-18T21:13:12.000Z | 2022-01-13T00:41:46.000Z | data_analysis/analysis_utils.py | frederickayala/lbsn_group_recsys | ab2dce76ec73700868db1f5cf0db2f80ed62cf8a | [
"MIT"
] | 1 | 2021-04-07T02:36:33.000Z | 2021-04-07T02:36:33.000Z | import random
import pandas as pd
import io
import json
from dateutil import parser
from collections import OrderedDict, deque
import time
import csv
import difflib
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
import os
import sys, traceback
from matplotlib.legend_handler import HandlerLine2D
im... | 52.338658 | 142 | 0.635372 | 6,137 | 49,146 | 4.733094 | 0.074955 | 0.03546 | 0.022825 | 0.015905 | 0.630254 | 0.568527 | 0.512617 | 0.454505 | 0.41364 | 0.376356 | 0 | 0.005804 | 0.249766 | 49,146 | 939 | 143 | 52.338658 | 0.781997 | 0.02749 | 0 | 0.279946 | 0 | 0 | 0.168282 | 0.022404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05249 | null | null | 0.026918 | 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 | 0 | 0 | 1 |
e209a9c98b2ec8ff6c39ddb32fa390fec09b197e | 147 | py | Python | src/model/hex.py | bleehu/pyhextml | d5bbeccc427fb712d03aa4c09b98780fd43150ad | [
"MIT"
] | null | null | null | src/model/hex.py | bleehu/pyhextml | d5bbeccc427fb712d03aa4c09b98780fd43150ad | [
"MIT"
] | null | null | null | src/model/hex.py | bleehu/pyhextml | d5bbeccc427fb712d03aa4c09b98780fd43150ad | [
"MIT"
] | null | null | null |
class Hex:
def __init__(self):
self.x = 0
self.y = 0
self.text = ""
self.notes = ""
self.icons = []
| 13.363636 | 23 | 0.414966 | 17 | 147 | 3.352941 | 0.647059 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.44898 | 147 | 10 | 24 | 14.7 | 0.679012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
e20c75855758e152492df7586c2e05185bffbea7 | 444 | py | Python | setup.py | danikavu/Ableton-Drum-Rack | a607d25137a31d83f5ef9bfbace5e717e7cf5c10 | [
"MIT"
] | 10 | 2021-11-02T16:31:17.000Z | 2022-03-23T18:53:44.000Z | setup.py | danikavu/Ableton-Drum-Rack | a607d25137a31d83f5ef9bfbace5e717e7cf5c10 | [
"MIT"
] | null | null | null | setup.py | danikavu/Ableton-Drum-Rack | a607d25137a31d83f5ef9bfbace5e717e7cf5c10 | [
"MIT"
] | 1 | 2022-03-21T13:00:34.000Z | 2022-03-21T13:00:34.000Z | from setuptools import setup
setup(
name='abletondrumrack',
version='1.0.1',
author='Daniel Kavoulakos',
author_email='dan_kavoulakos@hotmail.com',
description='Create Ableton Live 11 Drum Rack presets.',
license='MIT',
packages=['.abletondrumrack'],
package_data={'.abletondrumrack': ['ableton_files/*']},
... | 24.666667 | 59 | 0.648649 | 46 | 444 | 6.130435 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019444 | 0.189189 | 444 | 18 | 60 | 24.666667 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0.402247 | 0.058427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e210ed7ae96d8d439d98a16ecc2f66845bf02551 | 1,530 | py | Python | Hesap Makinesi/hesap_makinesi.py | ege-psd/Toolkit | eda0c0058c40165794bbd58d7d0cbfa91c6b20ea | [
"Unlicense"
] | null | null | null | Hesap Makinesi/hesap_makinesi.py | ege-psd/Toolkit | eda0c0058c40165794bbd58d7d0cbfa91c6b20ea | [
"Unlicense"
] | null | null | null | Hesap Makinesi/hesap_makinesi.py | ege-psd/Toolkit | eda0c0058c40165794bbd58d7d0cbfa91c6b20ea | [
"Unlicense"
] | null | null | null | while True:
print('Hesap Makinesi İşleme Hazırdır.')
try:
print('Toplama: 1\nÇıkarma: 2\nÇarpma: 3\nBölme: 4\nÜs Alma: 5')
islem = int(input('İşlem Seçiniz: '))
if islem == 1:
print('Toplama İşlemini Seçtiniz.')
sayi1 = int(input('1. Sayıyı Giriniz: '))
... | 35.581395 | 80 | 0.539869 | 190 | 1,530 | 4.421053 | 0.289474 | 0.033333 | 0.053571 | 0.10119 | 0.628571 | 0.597619 | 0.597619 | 0.561905 | 0.519048 | 0.519048 | 0 | 0.036786 | 0.324837 | 1,530 | 42 | 81 | 36.428571 | 0.762827 | 0 | 0 | 0.235294 | 0 | 0 | 0.390196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.411765 | 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 | 0 | 0 | 1 | 0 | 1 |
3555ac5318e42a9036915816825026d370f5e72e | 491 | py | Python | foundation_public/models/country.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | foundation_public/models/country.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | foundation_public/models/country.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from foundation_public.models.abstract_place import AbstractPublicPlace
class PublicCountry(AbstractPublicPlace):
"""
A country.
https://schema.org/Country
"""
class Meta:
app_label = 'foundation_public'
... | 24.55 | 71 | 0.694501 | 54 | 491 | 6 | 0.648148 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217923 | 491 | 19 | 72 | 25.842105 | 0.84375 | 0.077393 | 0 | 0 | 0 | 0 | 0.108545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
355d70a5833750a5595b84de94ad6f105b1b4352 | 1,642 | py | Python | facts/all_mounts.py | linux-place/ansible-role-cis-amazon-linux | 13d578ccad6af718a12d95013fd48a4506907862 | [
"MIT"
] | 152 | 2016-09-05T19:59:02.000Z | 2022-03-23T13:00:50.000Z | facts/all_mounts.py | linux-place/ansible-role-cis-amazon-linux | 13d578ccad6af718a12d95013fd48a4506907862 | [
"MIT"
] | 50 | 2016-11-07T10:47:08.000Z | 2021-05-07T11:46:03.000Z | facts/all_mounts.py | linux-place/ansible-role-cis-amazon-linux | 13d578ccad6af718a12d95013fd48a4506907862 | [
"MIT"
] | 123 | 2016-11-16T14:08:29.000Z | 2022-02-22T09:51:50.000Z | #!/usr/bin/python
##
# all_mounts.fact
# This is a custom fact that will gather all
# mounts into a fact, ansible_mounts will only
# get mounts that are tied to a physical device
# that will leave out many mounts
##
import os
import json
##
# get_file_content
# gets the content of a file
# path - the path to the fil... | 21.605263 | 79 | 0.588307 | 212 | 1,642 | 4.433962 | 0.391509 | 0.105319 | 0.044681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005286 | 0.30877 | 1,642 | 75 | 80 | 21.893333 | 0.822907 | 0.230816 | 0 | 0.095238 | 0 | 0 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.047619 | null | null | 0.02381 | 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 | 0 | 0 | 1 |
355e1a59c0268dcfb88520282c1eaf35cba3be88 | 2,476 | py | Python | h2o-r/scripts/usage_finder.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-r/scripts/usage_finder.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-r/scripts/usage_finder.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | import sys, os
import re
cd = os.path.realpath(os.getcwd())
possible_ns_parent_dir = cd
while(True):
possible_ns_dir = os.path.join(possible_ns_parent_dir, "h2o-package")
possible_ns = os.path.join(possible_ns_dir, "NAMESPACE")
if os.path.exists(possible_ns):
namespace_dir = possible_ns
br... | 30.195122 | 101 | 0.555735 | 353 | 2,476 | 3.776204 | 0.232295 | 0.097524 | 0.096024 | 0.114029 | 0.141785 | 0.034509 | 0.034509 | 0 | 0 | 0 | 0 | 0.003957 | 0.285541 | 2,476 | 81 | 102 | 30.567901 | 0.749576 | 0 | 0 | 0.092308 | 0 | 0 | 0.080372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030769 | null | null | 0.046154 | 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 | 0 | 0 | 1 |
3560d66e5b64fc7a54e3551d1f02e0cc81b63e46 | 2,183 | py | Python | oruliner/__main__.py | CoDeRgAnEsh/1line | 507ef35b0006fc2998463dee92c2fdae53fe0694 | [
"MIT"
] | 3 | 2019-06-11T16:19:09.000Z | 2020-05-25T18:43:38.000Z | oruliner/__main__.py | CoDeRgAnEsh/1line | 507ef35b0006fc2998463dee92c2fdae53fe0694 | [
"MIT"
] | null | null | null | oruliner/__main__.py | CoDeRgAnEsh/1line | 507ef35b0006fc2998463dee92c2fdae53fe0694 | [
"MIT"
] | null | null | null | import argparse
import sys
import traceback
from .oruliner import oruline
def main():
usage = ['oruliner --help',
'oruliner [--debug] [infile.py [outfile.py]]',
]
parser = argparse.ArgumentParser(usage='\n '.join(usage),
description=("if infile is given and outfile is no... | 32.102941 | 78 | 0.530921 | 229 | 2,183 | 4.982533 | 0.349345 | 0.043821 | 0.044698 | 0.038563 | 0.101665 | 0.071867 | 0.071867 | 0.071867 | 0.071867 | 0 | 0 | 0.000651 | 0.295923 | 2,183 | 67 | 79 | 32.58209 | 0.741705 | 0.089327 | 0 | 0.293103 | 0 | 0 | 0.191125 | 0.07766 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.155172 | 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 | 0 | 0 | 1 |
356d8f377f5fba200d61db7dc6115ed9e6c051bc | 486 | py | Python | strats/place.py | crschmidt/crapssim | 924973690d6c504e9312c0b5d7b868dba6fa3191 | [
"Apache-2.0"
] | null | null | null | strats/place.py | crschmidt/crapssim | 924973690d6c504e9312c0b5d7b868dba6fa3191 | [
"Apache-2.0"
] | null | null | null | strats/place.py | crschmidt/crapssim | 924973690d6c504e9312c0b5d7b868dba6fa3191 | [
"Apache-2.0"
] | null | null | null | from sim import TABLE_MIN
def place_6_8(player, point):
if not 'place-6' in player.current_bets:
player.bet('place-6', 18)
if not 'place-8' in player.current_bets:
player.bet('place-8', 18)
def place_inside(player, point):
for i in [6, 8]:
if not 'place-%s' % i in player.current_be... | 30.375 | 53 | 0.584362 | 82 | 486 | 3.365854 | 0.304878 | 0.072464 | 0.144928 | 0.275362 | 0.57971 | 0.57971 | 0.57971 | 0.34058 | 0.34058 | 0.34058 | 0 | 0.053371 | 0.26749 | 486 | 15 | 54 | 32.4 | 0.72191 | 0 | 0 | 0.153846 | 0 | 0 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 |
356efad08649568969fd305b2d7611c7290c717b | 1,864 | py | Python | shared/python/summary_util.py | carol-hsu/relay-bench | 0facffedb3cbb0d5f110769a84bba68718cff72b | [
"Apache-2.0"
] | 7 | 2019-10-03T22:41:18.000Z | 2020-05-31T18:52:15.000Z | shared/python/summary_util.py | carol-hsu/relay-bench | 0facffedb3cbb0d5f110769a84bba68718cff72b | [
"Apache-2.0"
] | 14 | 2019-10-18T19:13:53.000Z | 2021-09-08T01:36:37.000Z | shared/python/summary_util.py | carol-hsu/relay-bench | 0facffedb3cbb0d5f110769a84bba68718cff72b | [
"Apache-2.0"
] | 4 | 2019-10-03T21:34:03.000Z | 2022-02-23T10:29:49.000Z | """
Code for writing simple summaries of analyzed data.
"""
from common import (write_status, write_summary, sort_data, render_exception)
def summary_by_dev_and_network(data, devs, networks):
if not devs:
return ''
ret = 'Format: ({})\n'.format(', '.join(networks))
for dev in devs:
ret += '... | 36.54902 | 99 | 0.618562 | 248 | 1,864 | 4.467742 | 0.342742 | 0.027076 | 0.043321 | 0.032491 | 0.138087 | 0.084838 | 0.084838 | 0.084838 | 0.084838 | 0.084838 | 0 | 0.005087 | 0.261803 | 1,864 | 50 | 100 | 37.28 | 0.800145 | 0.175429 | 0 | 0.277778 | 0 | 0 | 0.068393 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 1 |
356f20b2bb6541941ff31a6c1caeab891a6fe4f4 | 1,218 | py | Python | BET64/__main__.py | reactive-firewall/BET-64 | 9a4ca428a7781d0b71aa693dc1105c3772ff88a4 | [
"MIT-0"
] | null | null | null | BET64/__main__.py | reactive-firewall/BET-64 | 9a4ca428a7781d0b71aa693dc1105c3772ff88a4 | [
"MIT-0"
] | null | null | null | BET64/__main__.py | reactive-firewall/BET-64 | 9a4ca428a7781d0b71aa693dc1105c3772ff88a4 | [
"MIT-0"
] | null | null | null | # -*- coding: utf-8 -*-
# Python Repo Template
# ..................................
# Copyright (c) 2017-2018, Kendrick Walls
# ..................................
# Licensed under MIT (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# .......... | 29 | 74 | 0.640394 | 163 | 1,218 | 4.711656 | 0.588957 | 0.078125 | 0.033854 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037681 | 0.150246 | 1,218 | 41 | 75 | 29.707317 | 0.704348 | 0.610016 | 0 | 0.111111 | 0 | 0 | 0.161572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
356fd227857fabb3bfca92c089365deefbbbabb5 | 1,026 | py | Python | players/views.py | OnerInce/nfl-rest_api | 8d66d68ae7f04476a1b9f509e69a9d0dc83bfcca | [
"Apache-2.0"
] | 2 | 2021-06-14T18:14:10.000Z | 2022-01-29T18:45:28.000Z | players/views.py | OnerInce/nfl-rest_api | 8d66d68ae7f04476a1b9f509e69a9d0dc83bfcca | [
"Apache-2.0"
] | null | null | null | players/views.py | OnerInce/nfl-rest_api | 8d66d68ae7f04476a1b9f509e69a9d0dc83bfcca | [
"Apache-2.0"
] | 1 | 2022-02-09T14:14:20.000Z | 2022-02-09T14:14:20.000Z | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework import viewsets
from rest_framework.response import Response
from .models import Player, Team
from .serializers import PlayerSerializer, TeamSerializer
def APIWelcomeView(request):
return JsonResponse({'result':'error', ... | 31.090909 | 104 | 0.727096 | 119 | 1,026 | 6.176471 | 0.445378 | 0.040816 | 0.065306 | 0.089796 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.177388 | 1,026 | 33 | 105 | 31.090909 | 0.866114 | 0 | 0 | 0.090909 | 0 | 0 | 0.061344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3573a615a704dae3d2f0a92d77030c4f6332b329 | 3,551 | py | Python | blast_parser.py | sandyjmacdonald/blast_parser | bbbd47442a28a06cfb58a36edfdf82b7358e6090 | [
"MIT"
] | null | null | null | blast_parser.py | sandyjmacdonald/blast_parser | bbbd47442a28a06cfb58a36edfdf82b7358e6090 | [
"MIT"
] | null | null | null | blast_parser.py | sandyjmacdonald/blast_parser | bbbd47442a28a06cfb58a36edfdf82b7358e6090 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Takes a .xml formatted blast results file as input and prints the query and hit ids
# for sequences passing the thresholds passed via the command line arguments. For sequences
# with no hits below the thresholds, the program returns "no hits below threshold" rather
# than the hit id.
import ge... | 36.989583 | 114 | 0.678119 | 584 | 3,551 | 3.993151 | 0.263699 | 0.018868 | 0.027015 | 0.02916 | 0.344768 | 0.340909 | 0.311321 | 0.286449 | 0.286449 | 0.286449 | 0 | 0.009184 | 0.172064 | 3,551 | 95 | 115 | 37.378947 | 0.784014 | 0.220501 | 0 | 0.222222 | 0 | 0.083333 | 0.354449 | 0.068839 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.041667 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3577f3b4f1819d24b0ae41fa60742a9b38acdc3b | 532 | py | Python | confidential_ml_utils/__init__.py | Azure/confidential-ml-utils | c21e4c30ba06a4375103ee46ab45a10044c56657 | [
"MIT"
] | 12 | 2020-06-11T06:58:54.000Z | 2021-04-29T17:42:54.000Z | confidential_ml_utils/__init__.py | Azure/confidential-ml-utils | c21e4c30ba06a4375103ee46ab45a10044c56657 | [
"MIT"
] | 67 | 2020-07-14T16:57:13.000Z | 2022-03-01T21:04:26.000Z | confidential_ml_utils/__init__.py | Azure/confidential-ml-utils | c21e4c30ba06a4375103ee46ab45a10044c56657 | [
"MIT"
] | 2 | 2020-12-27T11:12:46.000Z | 2021-03-03T23:05:16.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
Confidential ML utilities.
"""
from .constants import DataCategory # noqa: F401
from .logging import enable_confidential_logging # noqa: F401
from .exceptions import prefix_stack_trace # noqa: F401
import warnings
__version__ = "0.9.1"
... | 26.6 | 86 | 0.744361 | 69 | 532 | 5.608696 | 0.768116 | 0.062016 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0.161654 | 532 | 19 | 87 | 28 | 0.831839 | 0.242481 | 0 | 0 | 0 | 0 | 0.457801 | 0.066496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3577fbbd8989c956cc7d300b7f15cd26d756c963 | 382 | py | Python | bqskit/ir/opt/instantiaters/__init__.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 13 | 2021-05-26T21:32:26.000Z | 2022-03-15T17:48:10.000Z | bqskit/ir/opt/instantiaters/__init__.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 20 | 2021-05-26T20:17:15.000Z | 2022-02-27T20:04:10.000Z | bqskit/ir/opt/instantiaters/__init__.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-10-05T16:00:47.000Z | 2021-10-08T01:30:06.000Z | """This package contains instantiation implementations."""
# from bqskitrs import CeresInstantiater
from __future__ import annotations
from bqskit.ir.opt.instantiaters.minimization import Minimization
from bqskit.ir.opt.instantiaters.qfactor import QFactor
instantiater_order = [QFactor, Minimization]
__all__ = [
... | 22.470588 | 65 | 0.78534 | 38 | 382 | 7.631579 | 0.526316 | 0.068966 | 0.082759 | 0.103448 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13089 | 382 | 16 | 66 | 23.875 | 0.873494 | 0.240838 | 0 | 0 | 0 | 0 | 0.130282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
357937874008e946387f11e4afd1b66ae3f56d16 | 3,448 | py | Python | datafreezer/migrations/0001_initial.py | thirawr/django-datafreezer-sample | ef007e9ea583c963c012224fbab133154214cf0c | [
"MIT"
] | 1 | 2017-03-07T15:53:31.000Z | 2017-03-07T15:53:31.000Z | datafreezer/migrations/0001_initial.py | thirawr/django-datafreezer-sample | ef007e9ea583c963c012224fbab133154214cf0c | [
"MIT"
] | null | null | null | datafreezer/migrations/0001_initial.py | thirawr/django-datafreezer-sample | ef007e9ea583c963c012224fbab133154214cf0c | [
"MIT"
] | 2 | 2016-09-02T04:53:06.000Z | 2018-04-11T21:38:22.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-12 16:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations... | 48.56338 | 229 | 0.584107 | 351 | 3,448 | 5.606838 | 0.339031 | 0.045732 | 0.039634 | 0.051829 | 0.375 | 0.345528 | 0.278455 | 0.278455 | 0.278455 | 0.278455 | 0 | 0.015312 | 0.261311 | 3,448 | 70 | 230 | 49.257143 | 0.757362 | 0.019432 | 0 | 0.387097 | 1 | 0 | 0.148313 | 0.023979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
357a632df3015b5c9385abc0fd0716713f95719e | 1,127 | py | Python | restaurants/views.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | null | null | null | restaurants/views.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | 2 | 2020-06-05T20:36:05.000Z | 2021-03-19T22:23:00.000Z | restaurants/views.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | null | null | null | from rest_framework import viewsets, permissions, response, views
from .utils import RestaurantSerializer
from .models import Restaurant
class StatisticView(views.APIView):
"""
Return a list of specifics restaurants.
"""
def get_object(self, pk):
try:
restaurants = Restaurant.objec... | 31.305556 | 81 | 0.689441 | 112 | 1,127 | 6.857143 | 0.5 | 0.066406 | 0.072917 | 0.080729 | 0.091146 | 0.091146 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.230701 | 1,127 | 36 | 82 | 31.305556 | 0.882353 | 0.149956 | 0 | 0.1 | 0 | 0 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3584da12440906880233d7218bc7dd0dafebf3b9 | 1,497 | wsgi | Python | finsim-trans/src/finsim_trans/finsim_trans.wsgi | sei-inam/finsim | 0839b3fc15600be59743b84fb4801e9175d54cb4 | [
"Unlicense",
"MIT"
] | 14 | 2019-08-01T12:00:00.000Z | 2021-06-27T06:07:03.000Z | finsim-trans/src/finsim_trans/finsim_trans.wsgi | sei-inam/finsim | 0839b3fc15600be59743b84fb4801e9175d54cb4 | [
"Unlicense",
"MIT"
] | null | null | null | finsim-trans/src/finsim_trans/finsim_trans.wsgi | sei-inam/finsim | 0839b3fc15600be59743b84fb4801e9175d54cb4 | [
"Unlicense",
"MIT"
] | 9 | 2019-06-18T13:17:21.000Z | 2022-02-02T20:08:11.000Z | # FinSim
# Copyright 2018 Carnegie Mellon University. All Rights Reserved.
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, ... | 78.789474 | 514 | 0.800267 | 242 | 1,497 | 4.892562 | 0.553719 | 0.060811 | 0.081081 | 0.021959 | 0.033784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.148297 | 1,497 | 18 | 515 | 83.166667 | 0.924706 | 0.798931 | 0 | 0 | 0 | 0 | 0.306897 | 0.306897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
3586830d039b66a71449604b1edb1df9e305d499 | 8,260 | py | Python | Modeling_Scripts/02_real_import_wrapper_MBTA.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | 3 | 2019-08-29T13:31:14.000Z | 2021-06-18T06:10:06.000Z | Modeling_Scripts/02_real_import_wrapper_MBTA.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | null | null | null | Modeling_Scripts/02_real_import_wrapper_MBTA.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | null | null | null | #------------------------------------------------------------------------------
# Name: Real Import Wrapper for MBTA
#
# Purpose: This function interfaces with a csv containing ridership data
# provided by Boston's Massachusetts Bay Transportation Authority.
# This function only pro... | 40.292683 | 389 | 0.61816 | 1,052 | 8,260 | 4.631179 | 0.210076 | 0.037767 | 0.042693 | 0.041051 | 0.313218 | 0.26642 | 0.241379 | 0.20936 | 0.156404 | 0.122742 | 0 | 0.012378 | 0.217554 | 8,260 | 205 | 390 | 40.292683 | 0.741451 | 0.218402 | 0 | 0.223214 | 0 | 0.053571 | 0.451164 | 0.128145 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026786 | null | null | 0.223214 | 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 | 0 | 0 | 1 |
358db2dafe489677098a851da661a0378a3f76f0 | 7,447 | py | Python | pandas-gradebook-project/data/generate_data.py | syberflea/materials | 54f44725b40edf00c1b523d7a85b34a85014d7eb | [
"MIT"
] | 3,682 | 2018-05-07T19:45:24.000Z | 2022-03-31T15:19:10.000Z | pandas-gradebook-project/data/generate_data.py | sribarrow/materials | c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5 | [
"MIT"
] | 148 | 2018-05-15T21:18:49.000Z | 2022-03-21T11:25:39.000Z | pandas-gradebook-project/data/generate_data.py | sribarrow/materials | c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5 | [
"MIT"
] | 5,535 | 2018-05-25T23:36:08.000Z | 2022-03-31T16:55:52.000Z | """Generate random data for the project."""
from dataclasses import dataclass, field, asdict
from typing import Optional
from random import choice, seed as py_rand_seed
from pathlib import Path
import numpy as np
from faker import Faker
import pandas as pd
from dateutil import parser, rrule
fake = Faker()
seed = 111... | 28.423664 | 79 | 0.565865 | 972 | 7,447 | 4.160494 | 0.219136 | 0.025223 | 0.021761 | 0.024481 | 0.292779 | 0.269782 | 0.169634 | 0.158754 | 0.079871 | 0.0591 | 0 | 0.036218 | 0.295555 | 7,447 | 261 | 80 | 28.532567 | 0.734655 | 0.039613 | 0 | 0.223684 | 1 | 0 | 0.166526 | 0.033502 | 0 | 0 | 0 | 0 | 0.004386 | 1 | 0.017544 | false | 0 | 0.035088 | 0.013158 | 0.109649 | 0.004386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3598184ac3a78c57074040ffccb043409ac4e5d8 | 1,036 | py | Python | examples/foo.py | if1live/importd | 4b1dd2cc43923f44f2c509a3e4a0568fa3d4f9b2 | [
"BSD-3-Clause"
] | 183 | 2015-01-14T02:15:54.000Z | 2021-04-02T01:31:08.000Z | examples/foo.py | if1live/importd | 4b1dd2cc43923f44f2c509a3e4a0568fa3d4f9b2 | [
"BSD-3-Clause"
] | 31 | 2015-01-07T16:25:46.000Z | 2021-02-15T08:30:45.000Z | examples/foo.py | if1live/importd | 4b1dd2cc43923f44f2c509a3e4a0568fa3d4f9b2 | [
"BSD-3-Clause"
] | 23 | 2015-01-05T09:34:55.000Z | 2018-05-17T07:27:36.000Z | from importd import d
d(
DEBUG=True,
SMART_RETURN=True,
) # configure django
def real_index2(request):
return d.HttpResponse("real_index2")
d(# configure other urlpatterns
d.patterns("",
("^$", real_index2),
)
)
@d # /index/
def index(request):
import time
return "index.html", {"msg"... | 21.142857 | 79 | 0.6361 | 150 | 1,036 | 4.28 | 0.42 | 0.054517 | 0.034268 | 0.071651 | 0.084112 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0.010664 | 0.185328 | 1,036 | 48 | 80 | 21.583333 | 0.75 | 0.108108 | 0 | 0.111111 | 0 | 0 | 0.079521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
359a25bc83124fc92c5e09b15e87081dcd1caec3 | 188 | py | Python | fichas/ficha5/exe3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | fichas/ficha5/exe3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | fichas/ficha5/exe3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | # 3)
def asterisco():
num = int(input("Quantos asteriscos :"))
contador = 0
while contador < num:
print( end = "*")
contador = contador + 1
asterisco()
| 15.666667 | 44 | 0.531915 | 19 | 188 | 5.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.329787 | 188 | 12 | 45 | 15.666667 | 0.769841 | 0.010638 | 0 | 0 | 0 | 0 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35a3f8ee2bdb7417c573b6721ee65ab91f464889 | 2,420 | py | Python | Compliant_control/gym-panda/VIC/load_PILCO_VIC.py | martihmy/Compliant_control | 485f627fa83d59f414f41bd57c5d37528ef5f1ec | [
"Apache-2.0"
] | null | null | null | Compliant_control/gym-panda/VIC/load_PILCO_VIC.py | martihmy/Compliant_control | 485f627fa83d59f414f41bd57c5d37528ef5f1ec | [
"Apache-2.0"
] | null | null | null | Compliant_control/gym-panda/VIC/load_PILCO_VIC.py | martihmy/Compliant_control | 485f627fa83d59f414f41bd57c5d37528ef5f1ec | [
"Apache-2.0"
] | null | null | null | import gym
import gym_panda #need to be imported !!
import random
import numpy as np
import matplotlib.pyplot as plt
import time
import execnet
from pilco.models import PILCO
from pilco.controllers import RbfController, LinearController
from pilco.rewards import ExponentialReward
import tensorflow as tf
from gpflow ... | 25.744681 | 138 | 0.76405 | 388 | 2,420 | 4.471649 | 0.332474 | 0.032277 | 0.069164 | 0.057637 | 0.320461 | 0.278963 | 0.254755 | 0.254755 | 0.254755 | 0.232277 | 0 | 0.008107 | 0.133471 | 2,420 | 93 | 139 | 26.021505 | 0.819266 | 0.033884 | 0 | 0.081633 | 0 | 0 | 0.162259 | 0.031824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.306122 | 0 | 0.306122 | 0.22449 | 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 | 0 | 0 | 0 | 1 |
35b6c9833f41aab858bfc6b475e49d4dbbef1ad4 | 700 | py | Python | nano_magic/use_cases/select_match.py | pitzer42/nano_tcg | c984b253b8a53a707460aac21c10f140d16d902e | [
"MIT"
] | 1 | 2020-09-30T21:03:37.000Z | 2020-09-30T21:03:37.000Z | nano_magic/use_cases/select_match.py | pitzer42/nano_tcg | c984b253b8a53a707460aac21c10f140d16d902e | [
"MIT"
] | null | null | null | nano_magic/use_cases/select_match.py | pitzer42/nano_tcg | c984b253b8a53a707460aac21c10f140d16d902e | [
"MIT"
] | null | null | null | from nano_magic.entities.match import Match
from nano_magic.repositories.match import MatchRepository
async def select_match(client, matches: MatchRepository, channel_factory):
while True:
match_id = await client.request_match_id()
match_password = await client.request_match_password()
mat... | 33.333333 | 74 | 0.63 | 77 | 700 | 5.480519 | 0.363636 | 0.082938 | 0.085308 | 0.109005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312857 | 700 | 20 | 75 | 35 | 0.877339 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.111111 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 1 |
35d0dd826e2bcebcc6fd61675eaf322c087fa134 | 1,350 | py | Python | dex/logic.py | ardunn/dion | db1d2ae93d6b729a8c066e200b0e2e6e0dd0ff21 | [
"BSD-2-Clause"
] | 15 | 2020-08-23T19:41:49.000Z | 2021-05-24T00:03:33.000Z | dex/logic.py | ardunn/dex | db1d2ae93d6b729a8c066e200b0e2e6e0dd0ff21 | [
"BSD-2-Clause"
] | 46 | 2020-07-29T04:59:55.000Z | 2021-12-10T08:42:43.000Z | dex/logic.py | ardunn/dionysus | db1d2ae93d6b729a8c066e200b0e2e6e0dd0ff21 | [
"BSD-2-Clause"
] | 2 | 2020-08-24T17:26:22.000Z | 2021-07-31T17:04:43.000Z | import random
from typing import List
from dex.task import Task
from dex.util import AttrDict
def rank_tasks(task_collection: AttrDict, limit: int = 0, include_inactive: bool = False) -> List[Task]:
"""
Order a task collection
1. remove abandoned and done tasks
2. deprioritize held tasks
3. ... | 30.681818 | 109 | 0.691111 | 182 | 1,350 | 5.016484 | 0.39011 | 0.138007 | 0.029573 | 0.036145 | 0.11391 | 0.11391 | 0.11391 | 0.081051 | 0 | 0 | 0 | 0.003872 | 0.234815 | 1,350 | 44 | 110 | 30.681818 | 0.879961 | 0.35037 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35d2ce33330926eb06ddcba2afffb878505e4ace | 15,849 | py | Python | PODutils.py | Mopolino8/ASIIT | eaf66f70cccb2480a86b027293f1321d6c877d81 | [
"MIT"
] | null | null | null | PODutils.py | Mopolino8/ASIIT | eaf66f70cccb2480a86b027293f1321d6c877d81 | [
"MIT"
] | null | null | null | PODutils.py | Mopolino8/ASIIT | eaf66f70cccb2480a86b027293f1321d6c877d81 | [
"MIT"
] | 1 | 2019-11-24T17:50:33.000Z | 2019-11-24T17:50:33.000Z | '''
This is a set of utility funcitons useful for analysing POD data. Plotting and data reorganization functions
'''
#Plot 2D POD modes
def plotPODmodes2D(X,Y,Umodes,Vmodes,plotModes,saveFolder = None):
'''
Plot 2D POD modes
Inputs:
X - 2D array with columns constant
Y - 2D array with rows ... | 37.117096 | 153 | 0.555871 | 2,272 | 15,849 | 3.81382 | 0.141285 | 0.012118 | 0.013964 | 0.015234 | 0.714945 | 0.69648 | 0.66382 | 0.632776 | 0.620312 | 0.606809 | 0 | 0.036009 | 0.297369 | 15,849 | 427 | 154 | 37.117096 | 0.742098 | 0.222979 | 0 | 0.582979 | 0 | 0 | 0.048672 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.038298 | false | 0 | 0.06383 | 0.004255 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
35d6837625de87bb5f463c52f4985ccb73963892 | 22,242 | py | Python | str_spec.py | i2mint/py2misc | 9b1fc25984dd1a504aa87700be4c3dcfcebc6f80 | [
"Apache-2.0"
] | null | null | null | str_spec.py | i2mint/py2misc | 9b1fc25984dd1a504aa87700be4c3dcfcebc6f80 | [
"Apache-2.0"
] | null | null | null | str_spec.py | i2mint/py2misc | 9b1fc25984dd1a504aa87700be4c3dcfcebc6f80 | [
"Apache-2.0"
] | null | null | null | """
This module is about generating, validating, and operating on (parametrized) fields (i.e. stings, e.g. paths).
"""
import re
import os
from functools import partial, wraps
from types import MethodType
from py2store.signatures import set_signature_of_func
from py2store.errors import KeyValidationError, _assert_con... | 42.285171 | 122 | 0.601475 | 2,916 | 22,242 | 4.378944 | 0.128258 | 0.028193 | 0.023494 | 0.00603 | 0.36197 | 0.311849 | 0.249354 | 0.219438 | 0.206437 | 0.206437 | 0 | 0.004349 | 0.266073 | 22,242 | 525 | 123 | 42.365714 | 0.777873 | 0.873168 | 0 | 0.439024 | 0 | 0 | 0.119365 | 0 | 0 | 0 | 0 | 0.001905 | 0.02439 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35daa9040d86c3fd3ff19698a537f73af1a9c240 | 3,622 | py | Python | monitor/performance_validation/generate_dataset.py | opengauss-mirror/openGauss-AI | 449ce3cac81ced74dd56edf76709553411b0814a | [
"MulanPSL-1.0"
] | 1 | 2021-12-22T08:31:07.000Z | 2021-12-22T08:31:07.000Z | monitor/performance_validation/generate_dataset.py | opengauss-mirror/openGauss-AI | 449ce3cac81ced74dd56edf76709553411b0814a | [
"MulanPSL-1.0"
] | null | null | null | monitor/performance_validation/generate_dataset.py | opengauss-mirror/openGauss-AI | 449ce3cac81ced74dd56edf76709553411b0814a | [
"MulanPSL-1.0"
] | 3 | 2021-12-16T13:55:57.000Z | 2022-02-24T09:53:49.000Z | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 29.933884 | 118 | 0.597184 | 508 | 3,622 | 4.17126 | 0.338583 | 0.022652 | 0.018877 | 0.019821 | 0.152902 | 0.123643 | 0.123643 | 0.123643 | 0.091553 | 0.091553 | 0 | 0.01459 | 0.26201 | 3,622 | 121 | 119 | 29.933884 | 0.778152 | 0.081171 | 0 | 0.146341 | 0 | 0 | 0.102742 | 0.006629 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060976 | null | null | 0.012195 | 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 | 0 | 0 | 1 |
ea051a7170c6d8e0c34af943541039fe180de96d | 1,402 | py | Python | zfs_test/replicate_test/snapshot_test/list_test.py | pingiun/zfs-replicate | f6bf9a5fd84320d220b629d12ade589b8ff91a24 | [
"BSD-2-Clause"
] | null | null | null | zfs_test/replicate_test/snapshot_test/list_test.py | pingiun/zfs-replicate | f6bf9a5fd84320d220b629d12ade589b8ff91a24 | [
"BSD-2-Clause"
] | null | null | null | zfs_test/replicate_test/snapshot_test/list_test.py | pingiun/zfs-replicate | f6bf9a5fd84320d220b629d12ade589b8ff91a24 | [
"BSD-2-Clause"
] | null | null | null | """zfs.replicate.snapshot tests"""
import string
from typing import Any, Dict, List
from hypothesis import given
from hypothesis.searchstrategy import SearchStrategy
from hypothesis.strategies import fixed_dictionaries, integers, lists, none, text
from zfs.replicate.filesystem.type import filesystem
from zfs.replica... | 31.863636 | 117 | 0.745364 | 169 | 1,402 | 6.076923 | 0.331361 | 0.046738 | 0.058423 | 0.046738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127675 | 1,402 | 43 | 118 | 32.604651 | 0.839738 | 0.103424 | 0 | 0 | 0 | 0 | 0.079096 | 0.051655 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.115385 | false | 0 | 0.307692 | 0.038462 | 0.461538 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ea08c7777f966860da4a84b76917b11e7cc7f3c2 | 383 | py | Python | modulector/migrations/0012_auto_20201022_0449.py | omics-datascience/modulector | 357d8f6f8eab5d04b2357a08d177d75cbdad001a | [
"MIT"
] | 2 | 2021-07-10T20:45:58.000Z | 2021-08-18T02:24:58.000Z | modulector/migrations/0012_auto_20201022_0449.py | omics-datascience/modulector | 357d8f6f8eab5d04b2357a08d177d75cbdad001a | [
"MIT"
] | 3 | 2021-11-07T23:18:58.000Z | 2021-11-22T23:17:35.000Z | modulector/migrations/0012_auto_20201022_0449.py | omics-datascience/modulector | 357d8f6f8eab5d04b2357a08d177d75cbdad001a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-10-22 04:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modulector', '0011_auto_20201022_0448'),
]
operations = [
migrations.AlterField(
model_name='mirnadrugs',
name='cond... | 20.157895 | 50 | 0.597911 | 39 | 383 | 5.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113971 | 0.289817 | 383 | 18 | 51 | 21.277778 | 0.713235 | 0.117493 | 0 | 0 | 1 | 0 | 0.154762 | 0.068452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea135c515e25e0185158273891f2040166d4dc04 | 378 | py | Python | node/migrations/0004_node_enable.py | 404-SpongeBob-SquarePants/CMPUT404-project-socialdistribution | 191be12a63e528ce63045be56a183146ce87720c | [
"Apache-2.0"
] | 1 | 2020-04-01T21:37:49.000Z | 2020-04-01T21:37:49.000Z | node/migrations/0004_node_enable.py | 404-SpongeBob-SquarePants/CMPUT404-project-socialdistribution | 191be12a63e528ce63045be56a183146ce87720c | [
"Apache-2.0"
] | 7 | 2020-03-06T00:20:30.000Z | 2020-04-04T21:04:43.000Z | node/migrations/0004_node_enable.py | 404-SpongeBob-SquarePants/CMPUT404-project-socialdistribution | 191be12a63e528ce63045be56a183146ce87720c | [
"Apache-2.0"
] | 1 | 2020-07-08T07:29:49.000Z | 2020-07-08T07:29:49.000Z | # Generated by Django 3.0.3 on 2020-04-07 06:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('node', '0003_node_shareimage'),
]
operations = [
migrations.AddField(
model_name='node',
name='enable',
... | 19.894737 | 52 | 0.589947 | 40 | 378 | 5.5 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071161 | 0.293651 | 378 | 18 | 53 | 21 | 0.752809 | 0.119048 | 0 | 0 | 1 | 0 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea1386a16fe824ee7e33e56a89e977526f823456 | 491 | py | Python | ics/structures/flex_vnet_mode.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | ics/structures/flex_vnet_mode.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | ics/structures/flex_vnet_mode.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
from enum import IntEnum
class flex_vnet_mode(IntEnum):
"""A ctypes-compatible IntEnum superclass."""
@classmethod
def from_param(cls, obj):
return int(obj)
flexVnetModeDisabled = 0
flexVnetModeOneSingl... | 21.347826 | 72 | 0.720978 | 60 | 491 | 5.816667 | 0.816667 | 0.045845 | 0.068768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.215886 | 491 | 22 | 73 | 22.318182 | 0.893506 | 0.307536 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea15f979323d2eb549c7b8a38e8200cdb132c103 | 205 | py | Python | index.py | nakagawa333/Wikipedia | f3dbb03509f088eda395d6b7beeceb8b8246a0d3 | [
"MIT"
] | null | null | null | index.py | nakagawa333/Wikipedia | f3dbb03509f088eda395d6b7beeceb8b8246a0d3 | [
"MIT"
] | null | null | null | index.py | nakagawa333/Wikipedia | f3dbb03509f088eda395d6b7beeceb8b8246a0d3 | [
"MIT"
] | null | null | null | from flask import Flask,render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=True,port="3000",host="0.0.0.0") | 20.5 | 47 | 0.707317 | 32 | 205 | 4.09375 | 0.6875 | 0.045802 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.102439 | 205 | 10 | 47 | 20.5 | 0.668478 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 0 | 0 | 0 | 1 |
ea1d52958211154d0e5dca897723a629dee335cf | 2,776 | py | Python | macro/account.py | pradishb/auto_watch_client | f93258589b658261f5eb16679eef509e96670364 | [
"Apache-2.0"
] | 1 | 2020-06-26T11:07:34.000Z | 2020-06-26T11:07:34.000Z | macro/account.py | pradishb/auto_watch_client | f93258589b658261f5eb16679eef509e96670364 | [
"Apache-2.0"
] | 2 | 2020-06-26T11:55:07.000Z | 2021-06-02T00:28:58.000Z | macro/account.py | pradishb/auto_watch_client | f93258589b658261f5eb16679eef509e96670364 | [
"Apache-2.0"
] | null | null | null | ''' Module for account related macros '''
import logging
from process import kill_process
from settings import LEAGUE_CLIENT_PROCESS, REGION, LOCALE
from .exceptions import (AccountBannedException,
AuthenticationFailureException, BadUsernameException,
ConsentRequiredE... | 35.589744 | 102 | 0.646614 | 300 | 2,776 | 5.87 | 0.343333 | 0.05565 | 0.035775 | 0.02385 | 0.069279 | 0.020443 | 0 | 0 | 0 | 0 | 0 | 0.006533 | 0.228026 | 2,776 | 77 | 103 | 36.051948 | 0.815212 | 0.06304 | 0 | 0.070175 | 0 | 0 | 0.258681 | 0.119391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0.052632 | 0.070175 | 0 | 0.22807 | 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 | 0 | 0 | 0 | 1 |
ea1dd9b45fc5a9ac9a0310236b4f9257beee1691 | 516 | py | Python | lognotif/filemenu/urls.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | lognotif/filemenu/urls.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | lognotif/filemenu/urls.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from django.conf import settings
from .views import open_new_window_view, quit_app_view
app_name = 'filemenu'
urlpatterns = [
path('new', open_new_window_view, name='open_new... | 28.666667 | 76 | 0.804264 | 72 | 516 | 5.472222 | 0.347222 | 0.101523 | 0.098985 | 0.129442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 516 | 17 | 77 | 30.352941 | 0.852814 | 0 | 0 | 0 | 0 | 0 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 |
ea2a1d49d0e215089ba7deea3bfee5ce4c304d67 | 2,814 | py | Python | gpdb/contrib/postgis/raster/scripts/python/genraster.py | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 3 | 2017-12-10T16:41:21.000Z | 2020-07-08T12:59:12.000Z | gpdb/contrib/postgis/raster/scripts/python/genraster.py | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpdb/contrib/postgis/raster/scripts/python/genraster.py | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 4 | 2017-12-10T16:41:35.000Z | 2020-11-28T12:20:30.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# $Id$
#
# A very simple generator of rasters for testing WKT Raster.
# A test file is a matrix of numbered cells greyscaled randomly.
#
# Requirements: Python + Python Imaging Library (PIL)
# Also, path to FreeSans.ttf is a hardcoded Unix path, so fix it if you need.
#
... | 33.5 | 105 | 0.620469 | 435 | 2,814 | 3.926437 | 0.427586 | 0.026347 | 0.047424 | 0.029274 | 0.100703 | 0.076698 | 0.043911 | 0.025761 | 0 | 0 | 0 | 0.02733 | 0.206823 | 2,814 | 83 | 106 | 33.903614 | 0.737903 | 0.362829 | 0 | 0.071429 | 0 | 0.047619 | 0.166045 | 0.062811 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0.142857 | 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 | 0 | 0 | 1 |
ea2be75d29d5f4e477ba627be5c9848082ba3966 | 1,298 | py | Python | tutorials/pubsub/app/pubsub-client/pubsub-client.py | DynamicRemo/serverless-eventing | 36a00beee0de1b1fd10bc4fb50a13137befb878d | [
"Apache-2.0"
] | 9 | 2020-04-06T20:50:28.000Z | 2021-01-29T13:38:19.000Z | tutorials/pubsub/app/pubsub-client/pubsub-client.py | DynamicRemo/serverless-eventing | 36a00beee0de1b1fd10bc4fb50a13137befb878d | [
"Apache-2.0"
] | 1 | 2020-04-30T23:25:44.000Z | 2020-04-30T23:25:44.000Z | tutorials/pubsub/app/pubsub-client/pubsub-client.py | DynamicRemo/serverless-eventing | 36a00beee0de1b1fd10bc4fb50a13137befb878d | [
"Apache-2.0"
] | 5 | 2020-05-01T15:20:07.000Z | 2021-04-08T16:41:35.000Z | import os
import io
import json
import logging
import time
import json
import requests
from google.cloud import pubsub_v1
import cloudevents.exceptions as cloud_exceptions
from cloudevents.http import from_http
from flask import Flask, jsonify, redirect, render_template, request, Response
app = Flask(__name__)
PR... | 22.37931 | 79 | 0.711094 | 173 | 1,298 | 5.179191 | 0.468208 | 0.030134 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011132 | 0.169492 | 1,298 | 58 | 79 | 22.37931 | 0.820037 | 0.048536 | 0 | 0.114286 | 0 | 0 | 0.118078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.314286 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 |
ea35b57d1a0c962baa447303c3636f391278fe0e | 3,663 | py | Python | python/output.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | 2 | 2020-04-05T06:14:36.000Z | 2020-10-04T11:26:45.000Z | python/output.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | null | null | null | python/output.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GuiLayout.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_RobotController(object):
def setupUi(self, RobotController):
... | 45.222222 | 89 | 0.699154 | 372 | 3,663 | 6.827957 | 0.303763 | 0.066142 | 0.066142 | 0.035433 | 0.208268 | 0.197638 | 0.088976 | 0.088976 | 0.056693 | 0.056693 | 0 | 0.03942 | 0.189735 | 3,663 | 80 | 90 | 45.7875 | 0.816375 | 0.049959 | 0 | 0.164179 | 1 | 0 | 0.072272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.014925 | 0 | 0.059701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea378e4b54d17db2a14b9a164752e32daf7f2f38 | 2,886 | py | Python | old/md-service/Server.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 16 | 2015-01-02T15:39:04.000Z | 2016-03-17T06:38:46.000Z | old/md-service/Server.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 37 | 2015-01-28T20:58:05.000Z | 2016-03-22T04:01:32.000Z | old/md-service/Server.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 8 | 2015-04-08T02:26:03.000Z | 2016-03-04T05:56:24.000Z | #!/usr/bin/python
#
# Simple standalone HTTP server for testing MDAPI
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Modifications by Jude Nelson
# $Id$
#
import os
import sys
import getopt
import traceback
import BaseHTTPServer
sys.path.append("/usr/share/SMDS... | 26.236364 | 99 | 0.616424 | 354 | 2,886 | 4.960452 | 0.432203 | 0.022779 | 0.034169 | 0.035877 | 0.160592 | 0.133257 | 0.101367 | 0.05467 | 0.05467 | 0.05467 | 0 | 0.009664 | 0.247055 | 2,886 | 109 | 100 | 26.477064 | 0.798435 | 0.096674 | 0 | 0.149254 | 0 | 0 | 0.240114 | 0.018753 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104478 | null | null | 0.089552 | 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 | 0 | 0 | 1 |
ea3a872f16c1619fb2e0d2274811e3c7299f9b96 | 1,185 | py | Python | neutron_fwaas/privileged/tests/functional/utils.py | mail2nsrajesh/neutron-fwaas | 8d7cc87711c279789af70af4034b5f4f45dc41b0 | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/privileged/tests/functional/utils.py | mail2nsrajesh/neutron-fwaas | 8d7cc87711c279789af70af4034b5f4f45dc41b0 | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/privileged/tests/functional/utils.py | mail2nsrajesh/neutron-fwaas | 8d7cc87711c279789af70af4034b5f4f45dc41b0 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Thales Services SAS
# 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 r... | 32.027027 | 78 | 0.727426 | 172 | 1,185 | 4.895349 | 0.593023 | 0.071259 | 0.047506 | 0.071259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009336 | 0.186498 | 1,185 | 36 | 79 | 32.916667 | 0.864108 | 0.557806 | 0 | 0 | 0 | 0 | 0.025591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ea3de4d708d06f8e92f69d1b79675d6428c1c9b5 | 5,527 | py | Python | service/car_pooling/CarPooling.py | aifriend/car_pooling_service | bdae98b8a3dc32bc4813e323605cf38a8a420025 | [
"MIT"
] | null | null | null | service/car_pooling/CarPooling.py | aifriend/car_pooling_service | bdae98b8a3dc32bc4813e323605cf38a8a420025 | [
"MIT"
] | null | null | null | service/car_pooling/CarPooling.py | aifriend/car_pooling_service | bdae98b8a3dc32bc4813e323605cf38a8a420025 | [
"MIT"
] | null | null | null | from car_pooling.IService import IService
class CarPooling(IService):
BAD_REQUEST = -1
NOT_ALLOCATED = 0
MAX_SEAT = 6
def __init__(self, _car_pooling=None):
"""
Class for car pooling service
:param _car_pooling: Car pooling list (format: [(1,1),(2,2),...])
"""
... | 35.88961 | 96 | 0.616248 | 698 | 5,527 | 4.550143 | 0.147564 | 0.103904 | 0.074937 | 0.030227 | 0.375315 | 0.248741 | 0.129093 | 0.105164 | 0.105164 | 0.105164 | 0 | 0.003169 | 0.314818 | 5,527 | 153 | 97 | 36.124183 | 0.83549 | 0.106568 | 0 | 0.266055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155963 | false | 0.119266 | 0.009174 | 0.018349 | 0.40367 | 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 | 0 | 0 | 0 | 1 |
ea3e578524017d2b7f588f91553ee160569d8ac2 | 50,489 | py | Python | FeatureAlignment.py | kpeaton/altanalyze_wikitest | 93c38590d624fe75da51fbb7cffa55d8bd004a44 | [
"Apache-2.0"
] | 1 | 2018-09-01T03:00:38.000Z | 2018-09-01T03:00:38.000Z | FeatureAlignment.py | kpeaton/altanalyze_wikitest | 93c38590d624fe75da51fbb7cffa55d8bd004a44 | [
"Apache-2.0"
] | null | null | null | FeatureAlignment.py | kpeaton/altanalyze_wikitest | 93c38590d624fe75da51fbb7cffa55d8bd004a44 | [
"Apache-2.0"
] | null | null | null | ###FeatureAlignment
#Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the S... | 63.269424 | 275 | 0.676088 | 6,231 | 50,489 | 5.196116 | 0.103354 | 0.014455 | 0.009636 | 0.011026 | 0.509158 | 0.440158 | 0.38305 | 0.354758 | 0.321463 | 0.291967 | 0 | 0.010423 | 0.232328 | 50,489 | 797 | 276 | 63.348808 | 0.824918 | 0.137832 | 0 | 0.259091 | 0 | 0 | 0.05908 | 0.014927 | 0.006061 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001515 | 0.083333 | null | null | 0.030303 | 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 | 0 | 0 | 1 |
ea420c4d8691173ecb3f646afb940711d48ce24a | 484 | py | Python | experiment/ea/make_tweet_tokenized_data_master.py | iecasszyjy/tweet_search-master | e4978521a39964c22ae46bf35d6ff17710e8e6c6 | [
"MIT"
] | null | null | null | experiment/ea/make_tweet_tokenized_data_master.py | iecasszyjy/tweet_search-master | e4978521a39964c22ae46bf35d6ff17710e8e6c6 | [
"MIT"
] | 2 | 2021-03-31T18:54:16.000Z | 2021-12-13T19:49:08.000Z | experiment/ea/make_tweet_tokenized_data_master.py | iecasszyjy/tweet_search-master | e4978521a39964c22ae46bf35d6ff17710e8e6c6 | [
"MIT"
] | null | null | null | from tqdm import tqdm
import pymongo
import redis
import json
from bson import json_util
client = pymongo.MongoClient('localhost:27017')
db = client.tweet
r = redis.StrictRedis(host='localhost', port=6379, db=0)
events = [e for e in db.current_event.find({},{'_id':1})]
def send_message(eid):
message = {'event_... | 25.473684 | 65 | 0.725207 | 76 | 484 | 4.407895 | 0.539474 | 0.059701 | 0.035821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025822 | 0.119835 | 484 | 19 | 66 | 25.473684 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 |
ea43e051fb553f99c0ca78feab9e750b9c19db17 | 687 | py | Python | recipe/core/migrations/0005_auto_20180710_0541.py | gotoeveryone/myrecipe | 3651ed004d4e976d4b896cd92091291ff875ff02 | [
"BSD-3-Clause"
] | null | null | null | recipe/core/migrations/0005_auto_20180710_0541.py | gotoeveryone/myrecipe | 3651ed004d4e976d4b896cd92091291ff875ff02 | [
"BSD-3-Clause"
] | 2 | 2020-06-05T16:42:26.000Z | 2021-06-10T17:28:30.000Z | recipe/core/migrations/0005_auto_20180710_0541.py | gotoeveryone/myrecipe | 3651ed004d4e976d4b896cd92091291ff875ff02 | [
"BSD-3-Clause"
] | 1 | 2018-11-12T10:33:58.000Z | 2018-11-12T10:33:58.000Z | # Generated by Django 2.0.5 on 2018-07-10 05:41
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20180625_1319'),
]
operations = [
migrations.RemoveField(
model_name='cuisine',
... | 27.48 | 131 | 0.601164 | 68 | 687 | 5.955882 | 0.676471 | 0.074074 | 0.148148 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071721 | 0.289665 | 687 | 24 | 132 | 28.625 | 0.758197 | 0.065502 | 0 | 0.222222 | 1 | 0 | 0.107813 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea456b039fa6ea8ad2f71eea799ed26ccc531724 | 1,032 | py | Python | tests/blocks/signal/manchesterdecoder_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 559 | 2016-07-02T19:07:39.000Z | 2022-03-28T15:02:21.000Z | tests/blocks/signal/manchesterdecoder_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 68 | 2016-07-03T05:35:47.000Z | 2022-03-30T21:24:07.000Z | tests/blocks/signal/manchesterdecoder_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 64 | 2016-07-02T23:59:10.000Z | 2022-02-02T18:11:07.000Z | import numpy
from generate import *
def generate():
def manchester_encode(x):
out = numpy.array([], dtype=numpy.bool_)
for b in x:
if b:
out = numpy.append(out, [True, False])
else:
out = numpy.append(out, [False, True])
return out
... | 35.586207 | 143 | 0.641473 | 137 | 1,032 | 4.744526 | 0.313869 | 0.061538 | 0.141538 | 0.086154 | 0.513846 | 0.409231 | 0.369231 | 0.369231 | 0.286154 | 0.172308 | 0 | 0.037406 | 0.222868 | 1,032 | 28 | 144 | 36.857143 | 0.773067 | 0 | 0 | 0 | 1 | 0 | 0.251938 | 0.021318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea469a2c291ee4e2d3a96bb296f810f6f58b6e0a | 210 | py | Python | gym_magic/__init__.py | pgniewko/magic-square-rl | f8dbf0435e7fb202f25fe846138770c3795a0b2e | [
"MIT"
] | null | null | null | gym_magic/__init__.py | pgniewko/magic-square-rl | f8dbf0435e7fb202f25fe846138770c3795a0b2e | [
"MIT"
] | null | null | null | gym_magic/__init__.py | pgniewko/magic-square-rl | f8dbf0435e7fb202f25fe846138770c3795a0b2e | [
"MIT"
] | null | null | null | import logging
from gym.envs.registration import register
logger = logging.getLogger(__name__)
register(
id='MagicSquare3x3-v0',
entry_point='gym_magic.envs:MagicSquare3x3',
timestep_limit=100,
)
| 19.090909 | 48 | 0.766667 | 25 | 210 | 6.16 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.133333 | 210 | 10 | 49 | 21 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.219048 | 0.138095 | 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 | 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 | 1 |
ea4b7e9cbef4aba129fc856bf47ddcba5d8c55bc | 14,866 | py | Python | hrDataFeeder.py | jt112/SymplecticElements | d59c9f161c48acf0c651cb7e5587a522ce2945bd | [
"MIT"
] | null | null | null | hrDataFeeder.py | jt112/SymplecticElements | d59c9f161c48acf0c651cb7e5587a522ce2945bd | [
"MIT"
] | null | null | null | hrDataFeeder.py | jt112/SymplecticElements | d59c9f161c48acf0c651cb7e5587a522ce2945bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# This script queries the Faculty Data Repository (FDR) and the Service Directory (SD) for faculty HR data to feed Symplectic Elements.
# For FDR records without email addresses it can query the LDAP Service Directory using the python util package
# from https://intranet.lib.duke.edu/download/pyt... | 46.748428 | 241 | 0.639984 | 1,826 | 14,866 | 5.101314 | 0.232202 | 0.019324 | 0.01825 | 0.007085 | 0.13226 | 0.09168 | 0.063983 | 0.054106 | 0.042512 | 0.030274 | 0 | 0.004367 | 0.260595 | 14,866 | 317 | 242 | 46.895899 | 0.843068 | 0.268667 | 0 | 0.146825 | 0 | 0.003968 | 0.201446 | 0.050524 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.063492 | null | null | 0.035714 | 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 | 0 | 0 | 1 |
ea55946f07d3928def145ef4cb7fadebb38ebd82 | 7,843 | py | Python | Python/museum-acmaa.py | usc-isi-i2/acmaa-lod | 2f244e5e3470fd4567fd0d226b5abb302fb3e4a8 | [
"CC0-1.0"
] | null | null | null | Python/museum-acmaa.py | usc-isi-i2/acmaa-lod | 2f244e5e3470fd4567fd0d226b5abb302fb3e4a8 | [
"CC0-1.0"
] | null | null | null | Python/museum-acmaa.py | usc-isi-i2/acmaa-lod | 2f244e5e3470fd4567fd0d226b5abb302fb3e4a8 | [
"CC0-1.0"
] | null | null | null | ## Define the functions used in mapping the dataset of ACMAA
## To avoid having the same function name in different python script files, each function here adds a prefix with "ac_".
## By Chao on 05-08-2014@ISI
def ac_objectUri():
return "object/" + getValue("Accession Number")
def ac_objectIdentifierUri():
retu... | 28.010714 | 133 | 0.69578 | 955 | 7,843 | 5.619895 | 0.225131 | 0.045649 | 0.034843 | 0.035402 | 0.348239 | 0.226197 | 0.176262 | 0.148686 | 0.13937 | 0.097634 | 0 | 0.006297 | 0.14956 | 7,843 | 279 | 134 | 28.111111 | 0.798351 | 0.166518 | 0 | 0.356098 | 0 | 0.009756 | 0.256454 | 0.037031 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea56bd730d0512d51bfe7af990f529dcbe34aac4 | 253 | py | Python | EstruturaSequencial/04.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | EstruturaSequencial/04.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | EstruturaSequencial/04.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | '''
4. Faça um Programa que peça as 4 notas bimestrais e mostre a média.
'''
notas = list()
for contador in range(4):
notas.append(float(input(f'Insira a nota do {contador + 1}º bimestre: ')))
print(f'A média das notas é {sum(notas)/len(notas)}')
| 25.3 | 78 | 0.675889 | 45 | 253 | 3.8 | 0.733333 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0.173913 | 253 | 9 | 79 | 28.111111 | 0.799043 | 0.268775 | 0 | 0 | 0 | 0 | 0.485876 | 0.129944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea5ffdfa99fabfc5cfc10f5845c9d1e79dda2d1c | 3,063 | py | Python | ml_collections/config_dict/examples/frozen_config_dict.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 311 | 2020-08-25T14:44:55.000Z | 2022-03-30T17:19:45.000Z | ml_collections/config_dict/examples/frozen_config_dict.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 9 | 2020-11-14T04:00:23.000Z | 2022-02-18T21:03:33.000Z | ml_collections/config_dict/examples/frozen_config_dict.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 19 | 2020-08-25T21:52:30.000Z | 2022-03-13T22:25:20.000Z | # Copyright 2021 The ML Collections Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 33.659341 | 80 | 0.709109 | 436 | 3,063 | 4.816514 | 0.295872 | 0.047143 | 0.034286 | 0.011429 | 0.251905 | 0.2 | 0.114286 | 0.087619 | 0.087619 | 0.04 | 0 | 0.014024 | 0.161933 | 3,063 | 90 | 81 | 34.033333 | 0.804051 | 0.371531 | 0 | 0.096154 | 0 | 0 | 0.213907 | 0.045648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.076923 | 0.596154 | 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 | 0 | 0 | 1 | 0 | 1 |
ea64b669e8f1e8995af2296a77f1f8b623e4ac6f | 3,301 | py | Python | Derivation/derivation.py | opensciencegrid/network_analytics | 3a645d4632a42435dc6f8697e646d445f11f2786 | [
"MIT"
] | null | null | null | Derivation/derivation.py | opensciencegrid/network_analytics | 3a645d4632a42435dc6f8697e646d445f11f2786 | [
"MIT"
] | null | null | null | Derivation/derivation.py | opensciencegrid/network_analytics | 3a645d4632a42435dc6f8697e646d445f11f2786 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# 1 stream 22.87s user 3.27s system 4% cpu 9:39.41 total
# 10 streams 25.15s user 4.63s system 47% cpu 1:02.48 total 7480 requests/second
from datetime import datetime
from elasticsearch import Elasticsearch
import threading
from threading import Thread
import subproce... | 27.739496 | 165 | 0.520448 | 379 | 3,301 | 4.453826 | 0.403694 | 0.037322 | 0.056872 | 0.068128 | 0.23282 | 0.23282 | 0.216825 | 0.216825 | 0.164692 | 0.164692 | 0 | 0.04974 | 0.299606 | 3,301 | 118 | 166 | 27.974576 | 0.680363 | 0.26598 | 0 | 0.16092 | 0 | 0 | 0.232877 | 0.051889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.091954 | 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 | 0 | 0 | 1 |
ea66cc0259334ce663e68658926d9058abc16972 | 4,064 | py | Python | MiGRIDS/UserInterface/loadSets.py | mmuellerstoffels/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 8 | 2019-02-18T14:18:55.000Z | 2022-03-04T12:34:24.000Z | MiGRIDS/UserInterface/loadSets.py | mmuellerstoffels/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 3 | 2019-02-13T09:42:08.000Z | 2019-05-10T16:59:02.000Z | MiGRIDS/UserInterface/loadSets.py | acep-uaf/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 3 | 2019-06-10T19:49:22.000Z | 2021-05-08T08:42:57.000Z | from UserInterface.ProjectSQLiteHandler import ProjectSQLiteHandler
from Controller.UIToHandler import UIToHandler
from UserInterface.makeAttributeXML import integerToTimeIndex
def updateSetsSql(set, setupModel):
uihandler = UIToHandler()
xmlfile = setupModel.getSetAttributeXML(set)
soup = uihandler.getSet... | 47.255814 | 163 | 0.674705 | 464 | 4,064 | 5.868534 | 0.37931 | 0.028645 | 0.044069 | 0.039662 | 0.13845 | 0.099155 | 0.099155 | 0.05729 | 0.05729 | 0 | 0 | 0.002823 | 0.215551 | 4,064 | 85 | 164 | 47.811765 | 0.851317 | 0.17372 | 0 | 0.067797 | 0 | 0 | 0.185796 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.050847 | false | 0 | 0.118644 | 0.016949 | 0.237288 | 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 | 0 | 0 | 0 | 1 |
ea675eda9a91db3d28d49cd75d82922c0aaebd3b | 251 | py | Python | Darlington/phase1/python Basic 1/day 4 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Darlington/phase1/python Basic 1/day 4 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Darlington/phase1/python Basic 1/day 4 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | def substring_copy(str, n):
flen = 2
if flen > len(str):
flen = len(str)
substr = str[:flen]
result = ""
for i in range(n):
result = result + substr
return result
print(substring_copy('abcdef', 2))
print(substring_copy('p', 3)); | 20.916667 | 34 | 0.621514 | 38 | 251 | 4.026316 | 0.526316 | 0.254902 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.223108 | 251 | 12 | 35 | 20.916667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea6cfb51c70cecbb81d99385ffa1c52916df23eb | 609 | py | Python | application/migrations/0011_auto_20150212_1646.py | dhosterman/hebrew_order_david | c86a83c9e3e1e22dd0427c7c03525f2503fff574 | [
"MIT"
] | null | null | null | application/migrations/0011_auto_20150212_1646.py | dhosterman/hebrew_order_david | c86a83c9e3e1e22dd0427c7c03525f2503fff574 | [
"MIT"
] | null | null | null | application/migrations/0011_auto_20150212_1646.py | dhosterman/hebrew_order_david | c86a83c9e3e1e22dd0427c7c03525f2503fff574 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('application', '0010_auto_20150119_1555'),
]
operations = [
migrations.RenameField(
model_name='otherdetails',
... | 24.36 | 51 | 0.622332 | 59 | 609 | 5.983051 | 0.559322 | 0.090652 | 0.147309 | 0.169972 | 0.385269 | 0.27762 | 0.27762 | 0 | 0 | 0 | 0 | 0.038636 | 0.277504 | 609 | 24 | 52 | 25.375 | 0.763636 | 0.034483 | 0 | 0.333333 | 0 | 0 | 0.255973 | 0.196246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea6fb94d19bab86e449a3b12df6d3a18eec54167 | 1,138 | py | Python | app_Resoluciones/views.py | mosheArch/medidasdeapremio | ee147801925b131d49533ad54fc267cb8f6cc4ce | [
"MIT"
] | null | null | null | app_Resoluciones/views.py | mosheArch/medidasdeapremio | ee147801925b131d49533ad54fc267cb8f6cc4ce | [
"MIT"
] | null | null | null | app_Resoluciones/views.py | mosheArch/medidasdeapremio | ee147801925b131d49533ad54fc267cb8f6cc4ce | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import CreateView, ListView, UpdateView, DeleteView
from .models import Resoluciones
from .formResoluciones import FormResoluciones
class ViewCreateResolucion(CreateView):
model = Resoluciones
template_name = 'resoluciones/crearResolucion.html'
... | 29.947368 | 77 | 0.762742 | 108 | 1,138 | 7.916667 | 0.398148 | 0.079532 | 0.116959 | 0.135673 | 0.355556 | 0.259649 | 0.259649 | 0.259649 | 0.259649 | 0.259649 | 0 | 0 | 0.161687 | 1,138 | 37 | 78 | 30.756757 | 0.896226 | 0 | 0 | 0.407407 | 0 | 0 | 0.178383 | 0.11775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ea73547c85f58c4502607a25259bef96ee4ad261 | 630 | py | Python | ocpmodels/models/base.py | Irlirion/ocp | 6fb3e794eef31559db990300198eca20f41d8f37 | [
"MIT",
"BSD-3-Clause"
] | 242 | 2020-10-14T11:10:43.000Z | 2022-03-29T07:50:18.000Z | ocpmodels/models/base.py | Irlirion/ocp | 6fb3e794eef31559db990300198eca20f41d8f37 | [
"MIT",
"BSD-3-Clause"
] | 100 | 2020-10-13T23:27:04.000Z | 2022-03-23T16:50:26.000Z | ocpmodels/models/base.py | Irlirion/ocp | 6fb3e794eef31559db990300198eca20f41d8f37 | [
"MIT",
"BSD-3-Clause"
] | 86 | 2020-10-15T05:56:28.000Z | 2022-03-16T16:11:45.000Z | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import torch.nn as nn
class BaseModel(nn.Module):
def __init__(self, num_atoms=None, bond_feat_dim=None, num_targets=None):
sup... | 26.25 | 77 | 0.696825 | 92 | 630 | 4.543478 | 0.576087 | 0.050239 | 0.078947 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21746 | 630 | 23 | 78 | 27.391304 | 0.84787 | 0.268254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea8266e5742526905abffcd2bd328e7b557d9cc7 | 36,233 | py | Python | src/cake/engine.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 14 | 2017-06-16T11:56:24.000Z | 2022-01-27T15:09:22.000Z | src/cake/engine.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 19 | 2015-01-18T10:45:50.000Z | 2019-12-19T06:02:24.000Z | src/cake/engine.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 6 | 2017-06-07T04:14:12.000Z | 2021-03-24T14:25:53.000Z | """Engine-Level Classes and Utilities.
@see: Cake Build System (http://sourceforge.net/projects/cake-build)
@copyright: Copyright (c) 2010 Lewis Baker, Stuart McMahon.
@license: Licensed under the MIT license.
"""
import codecs
import threading
import traceback
import sys
import os
import os.path
import time
import ... | 32.495964 | 107 | 0.671046 | 4,390 | 36,233 | 5.51754 | 0.155125 | 0.008051 | 0.006688 | 0.007018 | 0.169226 | 0.122203 | 0.083189 | 0.058707 | 0.036743 | 0.033358 | 0 | 0.002097 | 0.249938 | 36,233 | 1,114 | 108 | 32.525135 | 0.889171 | 0.044435 | 0 | 0.225141 | 0 | 0 | 0.040789 | 0 | 0 | 0 | 0 | 0.000898 | 0.009381 | 0 | null | null | 0.005629 | 0.033771 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea82cab91272804ca7dfc5f56e7f217b00250f57 | 953 | py | Python | average_simple.py | yig/imagestack | cae605b53c8f3800e6532c1e5bde473b63a0d9de | [
"CC0-1.0"
] | 1 | 2021-05-25T17:06:20.000Z | 2021-05-25T17:06:20.000Z | average_simple.py | yig/imagestack | cae605b53c8f3800e6532c1e5bde473b63a0d9de | [
"CC0-1.0"
] | null | null | null | average_simple.py | yig/imagestack | cae605b53c8f3800e6532c1e5bde473b63a0d9de | [
"CC0-1.0"
] | 1 | 2022-01-10T03:13:48.000Z | 2022-01-10T03:13:48.000Z | #!/usr/local/bin/python2.7
import Image
from numpy import *
import sys
def usage():
print >> sys.stderr, 'Usage:', sys.argv[0], 'path/to/image1 path/to/image2 [... path/to/imageN] path/to/output'
sys.exit(-1)
if len( sys.argv ) < 4:
usage()
filenames = sys.argv[1:-1]
outname = sys.argv[-1]
num = 0
avg... | 21.659091 | 115 | 0.589717 | 135 | 953 | 4.162963 | 0.488889 | 0.049822 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042194 | 0.253935 | 953 | 43 | 116 | 22.162791 | 0.748242 | 0.026233 | 0 | 0 | 0 | 0.034483 | 0.16397 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | null | null | 0 | 0.103448 | null | null | 0.137931 | 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 | 0 | 0 | 1 |
ea85f92349cedd3bad82db5640677ca991c7584e | 453 | py | Python | bin/checkschema.py | joshua-stone/OpenRecipeBook-Ebook | bad9c10301ed9e9d37fbffb0709f3954c4ce540a | [
"MIT"
] | null | null | null | bin/checkschema.py | joshua-stone/OpenRecipeBook-Ebook | bad9c10301ed9e9d37fbffb0709f3954c4ce540a | [
"MIT"
] | 1 | 2021-09-07T02:12:36.000Z | 2021-09-07T02:12:36.000Z | bin/checkschema.py | joshua-stone/OpenRecipeBook-Ebook | bad9c10301ed9e9d37fbffb0709f3954c4ce540a | [
"MIT"
] | 1 | 2020-04-28T05:15:55.000Z | 2020-04-28T05:15:55.000Z | #!/usr/bin/env python3
import sys
sys.path.append('lib')
from validators import validate_file_list
from sys import exit, argv
if __name__ == '__main__':
try:
if len(argv) < 3:
raise ValueError('Not enough arguments!')
schema, infiles = argv[1], argv[2:]
except Exception as e:
... | 19.695652 | 54 | 0.615894 | 60 | 453 | 4.45 | 0.633333 | 0.089888 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018237 | 0.273731 | 453 | 22 | 55 | 20.590909 | 0.793313 | 0.046358 | 0 | 0.133333 | 0 | 0 | 0.116009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ea87dd7782ed2564d8f44078bbc68948322c1db4 | 4,643 | py | Python | games/views.py | alexdeathway/Gecom | 2a0fc87887d73d15eba183625dc8a429defe851f | [
"MIT"
] | 7 | 2021-11-15T06:28:05.000Z | 2022-02-22T11:36:00.000Z | games/views.py | alexdeathway/Gecom | 2a0fc87887d73d15eba183625dc8a429defe851f | [
"MIT"
] | 3 | 2021-11-02T16:10:49.000Z | 2022-02-01T08:30:38.000Z | games/views.py | alexdeathway/Gecom | 2a0fc87887d73d15eba183625dc8a429defe851f | [
"MIT"
] | null | null | null | from django.http.response import Http404
from django.shortcuts import render,reverse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import (
CreateView,
ListView,
DetailView,
... | 33.890511 | 83 | 0.668103 | 476 | 4,643 | 6.344538 | 0.19958 | 0.027815 | 0.045033 | 0.021192 | 0.515563 | 0.429139 | 0.40894 | 0.382119 | 0.322517 | 0.29404 | 0 | 0.003088 | 0.232824 | 4,643 | 136 | 84 | 34.139706 | 0.84475 | 0.026061 | 0 | 0.378641 | 0 | 0 | 0.09741 | 0.054018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126214 | false | 0 | 0.07767 | 0.038835 | 0.669903 | 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 | 0 | 1 | 0 | 0 | 1 |
ea8ea7af84b02f4f4df3d73dc855b06eaf7c8e11 | 469 | py | Python | blender/arm/logicnode/physics/LN_get_rb_first_contact.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,583 | 2016-07-27T08:25:47.000Z | 2022-03-31T10:42:17.000Z | blender/arm/logicnode/physics/LN_get_rb_first_contact.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,122 | 2016-07-31T14:20:04.000Z | 2022-03-31T20:44:14.000Z | blender/arm/logicnode/physics/LN_get_rb_first_contact.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 451 | 2016-08-12T05:52:58.000Z | 2022-03-31T01:33:07.000Z | from arm.logicnode.arm_nodes import *
class GetFirstContactNode(ArmLogicTreeNode):
"""Returns the first object that is colliding with the given object.
@seeNode Get Contacts
"""
bl_idname = 'LNGetFirstContactNode'
bl_label = 'Get RB First Contact'
arm_section = 'contact'
arm_version = 1
... | 27.588235 | 72 | 0.701493 | 54 | 469 | 5.944444 | 0.685185 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.204691 | 469 | 16 | 73 | 29.3125 | 0.857909 | 0.187633 | 0 | 0 | 0 | 0 | 0.275956 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ea91a938a45d186d81b471c8e32ec02cdd2d3f32 | 18,704 | py | Python | Road2Knowledge/Script.py | fbellidopazos/OpenScience-Public | 3763feccd1371ccbae6aae611bd3575fff7bfcaf | [
"BSD-3-Clause"
] | null | null | null | Road2Knowledge/Script.py | fbellidopazos/OpenScience-Public | 3763feccd1371ccbae6aae611bd3575fff7bfcaf | [
"BSD-3-Clause"
] | 3 | 2021-09-10T11:11:45.000Z | 2021-09-17T10:50:51.000Z | Road2Knowledge/Script.py | fbellidopazos/OpenScience-Public | 3763feccd1371ccbae6aae611bd3575fff7bfcaf | [
"BSD-3-Clause"
] | null | null | null |
whereData = "../OpenAire/publication/" # where to store and access OpenAire data
# MUST end with a slash!!!!
download = False # if True, download OpenAire data, else use existing data from whereData
extract = True # if True, extract the ta... | 31.863714 | 241 | 0.609976 | 2,512 | 18,704 | 4.443073 | 0.121417 | 0.023923 | 0.035481 | 0.044351 | 0.501926 | 0.422901 | 0.335812 | 0.208135 | 0.194875 | 0.180002 | 0 | 0.04859 | 0.268285 | 18,704 | 586 | 242 | 31.918089 | 0.766915 | 0.049722 | 0 | 0.180523 | 0 | 0.023753 | 0.795444 | 0.071719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011876 | false | 0.014252 | 0.028504 | 0 | 0.04038 | 0.073634 | 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 | 0 | 0 | 1 |
ea927ae8c757ebb2c03333d28206755e9b6233cd | 1,970 | py | Python | tests/test_hunter_lab.py | facelessuser/coloraide-extras | 957d34de90be1537af13cbd5443377d9101dbc10 | [
"MIT"
] | null | null | null | tests/test_hunter_lab.py | facelessuser/coloraide-extras | 957d34de90be1537af13cbd5443377d9101dbc10 | [
"MIT"
] | 4 | 2022-03-15T17:52:14.000Z | 2022-03-23T04:59:10.000Z | tests/test_hunter_lab.py | facelessuser/coloraide-extras | 957d34de90be1537af13cbd5443377d9101dbc10 | [
"MIT"
] | null | null | null | """Test Hunter Lab."""
import unittest
from . import util
from coloraide_extras import Color
import pytest
class TestHunterLab(util.ColorAssertsPyTest):
"""Test Hunter Lab."""
COLORS = [
('red', 'color(--hunter-lab 46.113 82.672 28.408)'),
('orange', 'color(--hunter-lab 69.407 23.266 40.946)'... | 30.307692 | 81 | 0.545685 | 280 | 1,970 | 3.810714 | 0.317857 | 0.160262 | 0.183693 | 0.074977 | 0.240862 | 0.207123 | 0.187441 | 0.187441 | 0.187441 | 0.187441 | 0 | 0.141239 | 0.238071 | 1,970 | 64 | 82 | 30.78125 | 0.56962 | 0.054315 | 0 | 0.097561 | 0 | 0 | 0.341932 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 1 | 0.121951 | false | 0 | 0.097561 | 0 | 0.292683 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ea969c9096f6740e2c411d534894f86367e9b364 | 591 | py | Python | Software/src/liv/iotConnectors/devicehive/tests/test_connectdevicehive.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | Software/src/liv/iotConnectors/devicehive/tests/test_connectdevicehive.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | Software/src/liv/iotConnectors/devicehive/tests/test_connectdevicehive.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | from mock import patch, Mock
from unittest import TestCase
from devicehive import connectDeviceHive, reactor
class ConnectDeviceHiveTestCase(TestCase):
def setUp(self):
self.factory = Mock()
def test_calls_http(self):
with patch('twisted.internet.reactor.connectTCP') as f:
connec... | 29.55 | 66 | 0.692047 | 68 | 591 | 5.955882 | 0.441176 | 0.081481 | 0.059259 | 0.098765 | 0.390123 | 0.207407 | 0.207407 | 0.207407 | 0 | 0 | 0 | 0 | 0.204738 | 591 | 19 | 67 | 31.105263 | 0.861702 | 0 | 0 | 0.142857 | 0 | 0 | 0.138748 | 0.059222 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea9e53e5846aa5caaabf67c76501fd7010558ef1 | 19,146 | py | Python | Gds/src/fprime_gds/common/testing_fw/predicates.py | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | 1 | 2021-05-08T10:56:01.000Z | 2021-05-08T10:56:01.000Z | Gds/src/fprime_gds/common/testing_fw/predicates.py | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | 1 | 2021-04-11T06:34:02.000Z | 2021-05-04T17:15:32.000Z | Gds/src/fprime_gds/common/testing_fw/predicates.py | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | null | null | null | """
predicates.py:
This file contains basic predicates as well as event and telemetry predicates used by the
gds_test_api.py. The predicates are organized by type and can be used to search histories.
:author: koran
"""
from inspect import signature
from fprime_gds.common.data_types.ch_data import ChData
from fprime_... | 32.896907 | 100 | 0.574376 | 2,292 | 19,146 | 4.613438 | 0.096859 | 0.036315 | 0.017685 | 0.027331 | 0.696803 | 0.673539 | 0.650842 | 0.625591 | 0.609325 | 0.596368 | 0 | 0.002935 | 0.305912 | 19,146 | 581 | 101 | 32.953528 | 0.792761 | 0.371775 | 0 | 0.522088 | 0 | 0.004016 | 0.069261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208835 | false | 0 | 0.012048 | 0 | 0.506024 | 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 | 0 | 0 | 0 | 1 |
576a9e9dff7fa7d51749341b4b2342e6069c872f | 14,692 | py | Python | ultracart/models/order_payment_credit_card.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | 1 | 2018-03-15T16:56:23.000Z | 2018-03-15T16:56:23.000Z | ultracart/models/order_payment_credit_card.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | ultracart/models/order_payment_credit_card.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2 # noqa: E501
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class OrderPaymentCreditCard(o... | 36.366337 | 341 | 0.673496 | 1,703 | 14,692 | 5.505578 | 0.098649 | 0.123294 | 0.131399 | 0.112628 | 0.730482 | 0.611775 | 0.520158 | 0.390678 | 0.330418 | 0.188993 | 0 | 0.018481 | 0.256058 | 14,692 | 403 | 342 | 36.456576 | 0.839341 | 0.389736 | 0 | 0.076471 | 1 | 0 | 0.106959 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164706 | false | 0 | 0.017647 | 0 | 0.3 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
576bc1631e893021013202bfc832b6a8bbe2f7a5 | 20,747 | py | Python | src/plant_costsse/nrel_csm_bos/nrel_csm_bos.py | WISDEM/Plant_CostsSE | c93c99fbb23a92c7222f15259bd3e204fb323407 | [
"Apache-2.0"
] | 1 | 2018-12-27T09:03:16.000Z | 2018-12-27T09:03:16.000Z | src/plant_costsse/nrel_csm_bos/nrel_csm_bos.py | WISDEM/Plant_CostsSE | c93c99fbb23a92c7222f15259bd3e204fb323407 | [
"Apache-2.0"
] | 2 | 2015-07-08T19:53:35.000Z | 2017-09-03T14:06:44.000Z | src/plant_costsse/nrel_csm_bos/nrel_csm_bos.py | WISDEM/Plant_CostsSE | c93c99fbb23a92c7222f15259bd3e204fb323407 | [
"Apache-2.0"
] | 5 | 2017-09-14T17:09:33.000Z | 2021-04-19T18:39:55.000Z | """
bos_csm_component.py
Created by NWTC Systems Engineering Sub-Task on 2012-08-01.
Copyright (c) NREL. All rights reserved.
"""
from openmdao.main.api import Component, Assembly, VariableTree
from openmdao.main.datatypes.api import Int, Bool, Float, Array, VarTree
from fusedwind.plant_cost.fused_bos_costs import B... | 50.356796 | 179 | 0.642647 | 2,706 | 20,747 | 4.604952 | 0.113821 | 0.069818 | 0.048311 | 0.021347 | 0.650911 | 0.602761 | 0.509189 | 0.377097 | 0.353021 | 0.290988 | 0 | 0.032212 | 0.256326 | 20,747 | 411 | 180 | 50.479319 | 0.775423 | 0.046465 | 0 | 0.241379 | 0 | 0 | 0.101001 | 0.014392 | 0 | 0 | 0 | 0.002433 | 0 | 0 | null | null | 0 | 0.018809 | null | null | 0.028213 | 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 | 0 | 0 | 1 |
576d41b170d7bc3995b59f9f274c1a6367bce482 | 4,558 | py | Python | pydsdl/_expression/_test.py | coderkalyan/pydsdl | ae3519229e85167383748044c0462979e17c3308 | [
"MIT"
] | 4 | 2020-02-11T08:39:07.000Z | 2021-09-09T20:37:52.000Z | pydsdl/_expression/_test.py | coderkalyan/pydsdl | ae3519229e85167383748044c0462979e17c3308 | [
"MIT"
] | 70 | 2018-10-31T19:19:52.000Z | 2022-03-28T08:06:08.000Z | pydsdl/_expression/_test.py | coderkalyan/pydsdl | ae3519229e85167383748044c0462979e17c3308 | [
"MIT"
] | 8 | 2018-11-20T14:56:34.000Z | 2021-11-25T16:33:40.000Z | # Copyright (c) 2018 UAVCAN Consortium
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel@uavcan.org>
# pylint: disable=consider-using-in,protected-access,too-many-statements
import fractions
from . import _any, _primitive, _container, _operator
# noinspection PyUnres... | 40.336283 | 113 | 0.637999 | 577 | 4,558 | 4.854419 | 0.197574 | 0.121385 | 0.064263 | 0.097108 | 0.46769 | 0.394145 | 0.25598 | 0.223135 | 0.223135 | 0.190289 | 0 | 0.053996 | 0.179245 | 4,558 | 112 | 114 | 40.696429 | 0.694734 | 0.087758 | 0 | 0.064103 | 0 | 0 | 0.086432 | 0.005553 | 0 | 0 | 0 | 0 | 0.410256 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
576ff09bf2b77b54b3155315daf2c3441568e922 | 555 | py | Python | homeassistant/components/config/zwave.py | adolfoeliazat/voidhomecontrol | 6d733253811c553912e46e24debec818b28b0688 | [
"Apache-2.0"
] | 1 | 2020-08-14T15:01:33.000Z | 2020-08-14T15:01:33.000Z | homeassistant/components/config/zwave.py | adolfoeliazat/voidhomecontrol | 6d733253811c553912e46e24debec818b28b0688 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/config/zwave.py | adolfoeliazat/voidhomecontrol | 6d733253811c553912e46e24debec818b28b0688 | [
"Apache-2.0"
] | 1 | 2020-08-26T20:54:14.000Z | 2020-08-26T20:54:14.000Z | """Provide configuration end points for Z-Wave."""
import asyncio
from homeassistant.components.config import EditKeyBasedConfigView
from homeassistant.components.zwave import DEVICE_CONFIG_SCHEMA_ENTRY
import homeassistant.helpers.config_validation as cv
CONFIG_PATH = 'zwave_device_config.yaml'
@asyncio.coroutine... | 27.75 | 69 | 0.776577 | 69 | 555 | 6.028986 | 0.57971 | 0.115385 | 0.129808 | 0.110577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140541 | 555 | 19 | 70 | 29.210526 | 0.872117 | 0.133333 | 0 | 0 | 0 | 0 | 0.089362 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.