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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
412fe155ce8f770d2b5717c5b7ab13cbfed0d9fa | 624 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/sprint-prep/codesignal-my-solutions-master/boxBlurImage/boxBlurImage.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/sprint-prep/codesignal-my-solutions-master/boxBlurImage/boxBlurImage.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/sprint-prep/codesignal-my-solutions-master/boxBlurImage/boxBlurImage.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def boxBlur(image):
m = len(image) - 2
n = len(image[0]) - 2
blur_img = [[0] * n for _ in range(m)]
for i in range(1, m + 1):
for j in range(1, n + 1):
indexes = [
[i - 1, j - 1],
[i - 1, j],
[i - 1, j + 1],
[i, j - 1... | 24 | 79 | 0.307692 | 89 | 624 | 2.11236 | 0.292135 | 0.074468 | 0.111702 | 0.106383 | 0.18617 | 0.117021 | 0.117021 | 0.117021 | 0.117021 | 0.117021 | 0 | 0.076923 | 0.520833 | 624 | 25 | 80 | 24.96 | 0.551839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41358f8fc8848e4915fe8ae70c94a1cee74f1385 | 9,511 | py | Python | tests/test_numba_toolbox_gpu.py | 3d-pli/SLIX | 649f0b1d82416a32913b72b5f8d7fa9d01e30c2b | [
"MIT"
] | 5 | 2020-08-31T14:32:42.000Z | 2022-01-22T14:28:22.000Z | tests/test_numba_toolbox_gpu.py | 3d-pli/SLIX | 649f0b1d82416a32913b72b5f8d7fa9d01e30c2b | [
"MIT"
] | 10 | 2020-10-10T20:02:05.000Z | 2020-10-25T20:56:50.000Z | tests/test_numba_toolbox_gpu.py | 3d-pli/SLIX | 649f0b1d82416a32913b72b5f8d7fa9d01e30c2b | [
"MIT"
] | 1 | 2020-10-25T20:24:26.000Z | 2020-10-25T20:24:26.000Z | import SLIX
if SLIX.toolbox.gpu_available:
print(SLIX.toolbox.gpu_available)
from SLIX.GPU import _toolbox as ntoolbox
import cupy
from numba import cuda
threads_per_block = (1, 1)
blocks_per_grid = (1, 1)
class TestNumbaToolboxGPU:
def test_peak_cleanup(self):
test_on... | 51.690217 | 126 | 0.551151 | 1,313 | 9,511 | 3.794364 | 0.082254 | 0.075873 | 0.089723 | 0.098756 | 0.740265 | 0.715777 | 0.662987 | 0.620233 | 0.580891 | 0.539342 | 0 | 0.084098 | 0.312375 | 9,511 | 183 | 127 | 51.972678 | 0.677064 | 0.031017 | 0 | 0.442953 | 0 | 0 | 0.017052 | 0 | 0 | 0 | 0 | 0 | 0.134228 | 1 | 0.04698 | false | 0 | 0.026846 | 0 | 0.080537 | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
413b69f2d8d6d676145239e0e4dc5c544d719fcb | 1,506 | py | Python | background/send_fake_charge_message.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | 2 | 2017-12-02T13:58:30.000Z | 2018-08-02T17:07:59.000Z | background/send_fake_charge_message.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | background/send_fake_charge_message.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(PROJECT_ROOT, os.pardir))
sys.path.append(os.path.abspath(os.path.join(os.path.abspath(__file__), '../')))
sys.path.append(os.path.abspath(os.path.join(os.path.abspath(__file__), '..... | 31.375 | 125 | 0.727756 | 218 | 1,506 | 4.724771 | 0.357798 | 0.104854 | 0.126214 | 0.072816 | 0.303884 | 0.257282 | 0.257282 | 0.257282 | 0.257282 | 0.257282 | 0 | 0.006006 | 0.115538 | 1,506 | 47 | 126 | 32.042553 | 0.767267 | 0.013944 | 0 | 0 | 0 | 0 | 0.051922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.233333 | null | null | 0.033333 | 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 |
414610323bc22fa2f541ea09dc606552d383985c | 1,371 | py | Python | tests/test_sedas_api.py | oskarfkrauss/sedas_pyapi | 7b6f0e99185f05415f257ef63ce369f6a7fbacde | [
"Apache-2.0"
] | 3 | 2019-07-02T11:29:46.000Z | 2020-08-20T21:09:07.000Z | tests/test_sedas_api.py | oskarfkrauss/sedas_pyapi | 7b6f0e99185f05415f257ef63ce369f6a7fbacde | [
"Apache-2.0"
] | 10 | 2019-07-02T14:17:00.000Z | 2020-06-22T13:17:40.000Z | tests/test_sedas_api.py | oskarfkrauss/sedas_pyapi | 7b6f0e99185f05415f257ef63ce369f6a7fbacde | [
"Apache-2.0"
] | 3 | 2019-09-18T01:11:00.000Z | 2021-07-14T09:36:41.000Z | """
Copyright 2019 Satellite Applications Catapult
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 applica... | 31.159091 | 112 | 0.660832 | 165 | 1,371 | 5.436364 | 0.557576 | 0.06689 | 0.056856 | 0.033445 | 0.225195 | 0.124861 | 0.124861 | 0 | 0 | 0 | 0 | 0.009091 | 0.277899 | 1,371 | 43 | 113 | 31.883721 | 0.89697 | 0.436178 | 0 | 0.363636 | 0 | 0 | 0.17036 | 0.054017 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.136364 | false | 0.136364 | 0.136364 | 0 | 0.318182 | 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 |
414b3ef829e8576d38f93ab890c8925b8db9f0eb | 964 | py | Python | medicare_appeals/tests/appeals_tests.py | 18F/medicare-appeals-prototyping | 51f7a4a2f9dee4a78ef8197d8a80ed255e3dcc56 | [
"CC0-1.0"
] | 1 | 2019-07-01T19:18:10.000Z | 2019-07-01T19:18:10.000Z | medicare_appeals/tests/appeals_tests.py | 18F/medicare-appeals-prototyping | 51f7a4a2f9dee4a78ef8197d8a80ed255e3dcc56 | [
"CC0-1.0"
] | 1 | 2019-03-07T00:36:56.000Z | 2019-03-07T00:36:56.000Z | medicare_appeals/tests/appeals_tests.py | 18F/medicare-appeals-prototyping | 51f7a4a2f9dee4a78ef8197d8a80ed255e3dcc56 | [
"CC0-1.0"
] | 1 | 2021-02-14T09:47:01.000Z | 2021-02-14T09:47:01.000Z | import pytest
from medicare_appeals.appeals import models
from medicare_appeals.tests import factories
@pytest.fixture(scope='function')
def build_an_appeal():
"""
Build a single appeal
"""
appeal = factories.AppealFactory()
@pytest.fixture(scope='function')
def build_two_appeals():
"""
Buil... | 23.512195 | 60 | 0.697095 | 118 | 964 | 5.567797 | 0.389831 | 0.076104 | 0.068493 | 0.079148 | 0.255708 | 0.179604 | 0 | 0 | 0 | 0 | 0 | 0.008883 | 0.182573 | 964 | 40 | 61 | 24.1 | 0.824873 | 0.160788 | 0 | 0.210526 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
414eb727c14d3a8702eb1f87c1e5d959b4212353 | 5,472 | py | Python | tests/test_plugin.py | fopina/tgbotplug | 80e47e599b3d52224333bb78fb346e785ce6440c | [
"MIT"
] | 1 | 2015-12-26T20:52:57.000Z | 2015-12-26T20:52:57.000Z | tests/test_plugin.py | fopina/tgbotplug | 80e47e599b3d52224333bb78fb346e785ce6440c | [
"MIT"
] | 28 | 2015-07-16T20:01:30.000Z | 2016-01-29T17:10:20.000Z | tests/test_plugin.py | fopina/tgbotplug | 80e47e599b3d52224333bb78fb346e785ce6440c | [
"MIT"
] | 1 | 2015-07-17T13:00:07.000Z | 2015-07-17T13:00:07.000Z | from tgbot import plugintest
from sample_plugin import TestPlugin
class TestPluginTest(plugintest.PluginTestCase):
def setUp(self):
self.plugin = TestPlugin()
self.bot = self.fake_bot(
'',
plugins=[self.plugin],
)
def test_print_commands(self):
from cSt... | 27.089109 | 78 | 0.539474 | 581 | 5,472 | 4.91222 | 0.172117 | 0.115627 | 0.189208 | 0.053959 | 0.590399 | 0.514366 | 0.443938 | 0.32726 | 0.286265 | 0.204275 | 0 | 0.023523 | 0.331871 | 5,472 | 201 | 79 | 27.223881 | 0.757112 | 0.030519 | 0 | 0.45679 | 0 | 0 | 0.163142 | 0.003965 | 0 | 0 | 0 | 0 | 0.203704 | 1 | 0.067901 | false | 0 | 0.018519 | 0 | 0.092593 | 0.012346 | 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 |
41545cd87226da6c84d891f1c17107d42f98a2bc | 243 | py | Python | tests/conftest.py | sameraslan/rymscraper | 0b6cf3bbe28ee8e7af7eb25edaacb19c5299abe9 | [
"MIT"
] | 41 | 2019-08-05T13:13:50.000Z | 2022-03-01T21:31:56.000Z | tests/conftest.py | sameraslan/rymscraper | 0b6cf3bbe28ee8e7af7eb25edaacb19c5299abe9 | [
"MIT"
] | 30 | 2019-07-03T09:45:48.000Z | 2022-02-14T22:43:38.000Z | tests/conftest.py | sameraslan/rymscraper | 0b6cf3bbe28ee8e7af7eb25edaacb19c5299abe9 | [
"MIT"
] | 6 | 2020-09-09T11:16:04.000Z | 2022-03-01T21:31:50.000Z | from rymscraper import RymNetwork
import pytest
# @pytest.fixture
@pytest.fixture(scope="session", autouse=True)
def network():
network = RymNetwork(headless=True)
yield network
network.browser.close()
network.browser.quit()
| 20.25 | 46 | 0.736626 | 28 | 243 | 6.392857 | 0.607143 | 0.145251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152263 | 243 | 11 | 47 | 22.090909 | 0.868932 | 0.061728 | 0 | 0 | 0 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
4165014f1e773004b198ae9ce8c3f458bdf06d59 | 1,430 | py | Python | implementation/server/factories/books_author.py | Aincient/cleo | 933ef372fa7847d943206d72bfb03c201dbafbd6 | [
"Apache-2.0"
] | null | null | null | implementation/server/factories/books_author.py | Aincient/cleo | 933ef372fa7847d943206d72bfb03c201dbafbd6 | [
"Apache-2.0"
] | null | null | null | implementation/server/factories/books_author.py | Aincient/cleo | 933ef372fa7847d943206d72bfb03c201dbafbd6 | [
"Apache-2.0"
] | 3 | 2018-10-01T12:04:36.000Z | 2021-01-07T09:30:50.000Z | """
Books Author model factory.
"""
import random
from factory import DjangoModelFactory, LazyAttribute
from books.models import Author
from .factory_faker import Faker
__all__ = (
'AuthorFactory',
'LimitedAuthorFactory',
'SingleAuthorFactory',
)
class BaseAuthorFactory(DjangoModelFactory):
"""Ba... | 20.428571 | 53 | 0.648252 | 147 | 1,430 | 6.14966 | 0.401361 | 0.057522 | 0.049779 | 0.063053 | 0.181416 | 0.095133 | 0.095133 | 0.095133 | 0.095133 | 0.095133 | 0 | 0.013526 | 0.224476 | 1,430 | 69 | 54 | 20.724638 | 0.801623 | 0.130769 | 0 | 0.135135 | 0 | 0 | 0.129167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 0.702703 | 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 |
416b9a2e3f262136524701fc1cf9a747d34d2b52 | 1,221 | py | Python | efls-console/console/argo_template/test_template.py | universe-hcy/Elastic-Federated-Learning-Solution | 4e047fbbe6ae9809cd631499b7d3a3855dfe2208 | [
"Apache-2.0"
] | 65 | 2021-09-30T01:54:34.000Z | 2022-03-26T13:57:15.000Z | efls-console/console/argo_template/test_template.py | universe-hcy/Elastic-Federated-Learning-Solution | 4e047fbbe6ae9809cd631499b7d3a3855dfe2208 | [
"Apache-2.0"
] | 24 | 2021-09-30T09:25:43.000Z | 2022-03-29T06:33:44.000Z | efls-console/console/argo_template/test_template.py | universe-hcy/Elastic-Federated-Learning-Solution | 4e047fbbe6ae9809cd631499b7d3a3855dfe2208 | [
"Apache-2.0"
] | 18 | 2021-09-30T09:04:08.000Z | 2022-03-31T10:17:27.000Z | # -*- coding: utf8 -*-
import kfp
def flip_coin():
return kfp.dsl.ContainerOp(
name='Flip a coin',
image='python:alpine3.6',
command=['python', '-c', """
import random
res = "heads" if random.randint(0, 1) == 0 else "tails"
with open('/output', 'w') as f:
f.write(res)
"""],
... | 24.42 | 109 | 0.605242 | 170 | 1,221 | 4.182353 | 0.323529 | 0.059072 | 0.067511 | 0.129395 | 0.367089 | 0.21519 | 0.21519 | 0.127989 | 0.090014 | 0.090014 | 0 | 0.012245 | 0.197379 | 1,221 | 49 | 110 | 24.918367 | 0.713265 | 0.01638 | 0 | 0 | 0 | 0 | 0.277731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0.121212 | 0.363636 | 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 |
416c2483708c4c8529e381936e15eaa39dbf4ead | 1,258 | py | Python | cdc_config.py | dlf412/mysql-cdc-redis | 7c694a23c74818ec238b1b2c505a6a09dfa666b2 | [
"MIT"
] | 4 | 2017-01-23T02:54:36.000Z | 2019-08-23T12:32:06.000Z | cdc_config.py | dlf412/mysql-cdc-redis | 7c694a23c74818ec238b1b2c505a6a09dfa666b2 | [
"MIT"
] | null | null | null | cdc_config.py | dlf412/mysql-cdc-redis | 7c694a23c74818ec238b1b2c505a6a09dfa666b2 | [
"MIT"
] | 1 | 2020-07-28T22:55:10.000Z | 2020-07-28T22:55:10.000Z | #!/usr/bin/env python
# encoding: utf-8
# redis for saving binlog file and position
# please reverse the db + 1 for saving mysql changed data
redis_url = "redis://127.0.0.1/0"
cache_url = "redis://127.0.0.1/1"
# mysql server id
server_id = 1
# mysql connection setting
mysql_settings = {'host': '192.168.1.34',
... | 25.673469 | 69 | 0.678855 | 190 | 1,258 | 4.4 | 0.573684 | 0.021531 | 0.026316 | 0.028708 | 0.033493 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0.047475 | 0.213037 | 1,258 | 48 | 70 | 26.208333 | 0.79697 | 0.552464 | 0 | 0 | 0 | 0 | 0.28361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0 | 0 | 0 | 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 |
417d4fb6e4a55ecda6257b9ca9d6f852424b6385 | 311 | py | Python | portfolio_api/serializers/project.py | tjeerddie/portfolio-backend | 6969a4527c4b675076a7209d82a4c5279706d662 | [
"MIT"
] | null | null | null | portfolio_api/serializers/project.py | tjeerddie/portfolio-backend | 6969a4527c4b675076a7209d82a4c5279706d662 | [
"MIT"
] | 15 | 2020-10-28T08:25:04.000Z | 2020-11-04T10:25:14.000Z | portfolio_api/serializers/project.py | tjeerddie/portfolio-backend | 6969a4527c4b675076a7209d82a4c5279706d662 | [
"MIT"
] | null | null | null | from portfolio_admin.models import Project
from rest_framework import serializers
class ProjectSerializer(serializers.ModelSerializer):
skills = serializers.StringRelatedField(many=True)
class Meta:
model = Project
exclude = ['id', 'created_at', 'updated_at', 'portfolio', 'private']
| 28.272727 | 76 | 0.73955 | 32 | 311 | 7.0625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167203 | 311 | 10 | 77 | 31.1 | 0.872587 | 0 | 0 | 0 | 0 | 0 | 0.122187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
417f73448991316973bdacd9f585b773211e833b | 1,177 | py | Python | cmsplugin_embed/migrations/0001_initial.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_embed/migrations/0001_initial.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_embed/migrations/0001_initial.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-23 16:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0016_auto_20160608_1535'),
]... | 36.78125 | 231 | 0.605777 | 130 | 1,177 | 5.315385 | 0.6 | 0.034732 | 0.040521 | 0.063676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066815 | 0.237043 | 1,177 | 31 | 232 | 37.967742 | 0.702673 | 0.057774 | 0 | 0 | 1 | 0 | 0.17179 | 0.039783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 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 |
41802d8d6fb00784870bca138e05da016e54c9c1 | 530 | py | Python | tests/r/test_friendship.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_friendship.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_friendship.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.friendship import friendship
def test_friendship():
"""Test module friendship.py by downloading
friendship.csv and testing shape of
extrac... | 22.083333 | 48 | 0.760377 | 72 | 530 | 5.319444 | 0.569444 | 0.078329 | 0.125326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009153 | 0.175472 | 530 | 23 | 49 | 23.043478 | 0.867277 | 0.218868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
41847f1a3485345e65a3518c4d58b04df211e964 | 33,937 | py | Python | ege_date.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | ege_date.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | ege_date.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | '''create files contains estimated generalization errors for model
sys.argv: year month day
The sale_date of the models. Uses data up to the day before the sale date
Files created:
year-month-day-MODEL-SCOPE-T[-MODELPARAMS].foldResult
where:
MODEL is one of the models {ols, lasso, ridge, rf, xt}
SCOPE... | 40.740696 | 114 | 0.539971 | 3,911 | 33,937 | 4.417796 | 0.108156 | 0.037967 | 0.035189 | 0.042829 | 0.473087 | 0.436451 | 0.377358 | 0.37024 | 0.341764 | 0.331983 | 0 | 0.012002 | 0.381295 | 33,937 | 832 | 115 | 40.789663 | 0.810878 | 0.03922 | 0 | 0.453293 | 0 | 0.006126 | 0.091366 | 0.007616 | 0 | 0 | 0 | 0 | 0.027565 | 0 | null | null | 0 | 0.024502 | null | null | 0.094946 | 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 |
4186470c387a7fb8c1febf4ec4c7f5546fdf8fda | 3,457 | py | Python | generators/generate_interactions_personalize_offers.py | ajayfenix/retail-demo-store | 8e66e4c4ee120c0c403332d4e18aefa34089d1b4 | [
"MIT-0"
] | null | null | null | generators/generate_interactions_personalize_offers.py | ajayfenix/retail-demo-store | 8e66e4c4ee120c0c403332d4e18aefa34089d1b4 | [
"MIT-0"
] | null | null | null | generators/generate_interactions_personalize_offers.py | ajayfenix/retail-demo-store | 8e66e4c4ee120c0c403332d4e18aefa34089d1b4 | [
"MIT-0"
] | null | null | null | """
A simple script for generating sample data for learning to give personalised offers.
"""
import json
import pandas as pd
import numpy as np
import gzip
import random
import logging
GENERATE_INBALANCED_DATA = False
NUM_INTERACTIONS_PER_USER = 3
FIRST_TIMESTAMP = 1591803782 # 2020-06-10, 18:43:02
LAST_TIMESTAMP = ... | 37.576087 | 117 | 0.719699 | 487 | 3,457 | 4.917864 | 0.38809 | 0.043841 | 0.016701 | 0.027557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018412 | 0.198727 | 3,457 | 91 | 118 | 37.989011 | 0.846209 | 0.289268 | 0 | 0 | 1 | 0 | 0.139621 | 0.090198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.122449 | 0 | 0.142857 | 0.020408 | 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 |
419c624d167f07aec6e5dabd16cbe0ee58a6eb5c | 1,434 | py | Python | py3canvas/apis/brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | py3canvas/apis/brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | py3canvas/apis/brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | """BrandConfigs API Version 1.0.
This API client was generated using a template. Make sure this code is valid before using it.
"""
import logging
from datetime import date, datetime
from .base import BaseCanvasAPI
class BrandConfigsAPI(BaseCanvasAPI):
"""BrandConfigs API Version 1.0."""
def __init__(self, *... | 33.348837 | 99 | 0.630404 | 177 | 1,434 | 4.983051 | 0.508475 | 0.047619 | 0.049887 | 0.052154 | 0.21542 | 0.111111 | 0.111111 | 0.111111 | 0.111111 | 0.111111 | 0 | 0.006796 | 0.281729 | 1,434 | 42 | 100 | 34.142857 | 0.849515 | 0.354951 | 0 | 0 | 1 | 0.043478 | 0.150059 | 0.083236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 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 |
41a1d20577bbe82d5e4dea52d30238ff4459fa28 | 2,721 | py | Python | dl_markup/UndoRedo.py | ekuptsov/dl_markup | 1af6f458f8e9c188b82549012938cb9157207ec7 | [
"MIT"
] | null | null | null | dl_markup/UndoRedo.py | ekuptsov/dl_markup | 1af6f458f8e9c188b82549012938cb9157207ec7 | [
"MIT"
] | null | null | null | dl_markup/UndoRedo.py | ekuptsov/dl_markup | 1af6f458f8e9c188b82549012938cb9157207ec7 | [
"MIT"
] | 2 | 2021-04-23T11:05:54.000Z | 2021-05-12T22:51:00.000Z | from abc import ABC, abstractmethod
from PyQt5 import QtWidgets
from .Scene import Scene
class ICommand(ABC):
"""Abstract command."""
@abstractmethod
def execute(self):
"""Execute command."""
pass
@abstractmethod
def un_execute(self):
"""Undo command execution."""
... | 25.669811 | 82 | 0.588754 | 296 | 2,721 | 5.14527 | 0.233108 | 0.050558 | 0.063033 | 0.031517 | 0.132633 | 0.069599 | 0.03283 | 0 | 0 | 0 | 0 | 0.000536 | 0.313855 | 2,721 | 105 | 83 | 25.914286 | 0.815212 | 0.251011 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0.037736 | 0.056604 | 0 | 0.320755 | 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 |
41aeff694e3dffc5a5880ac3793fc964af90010c | 1,077 | py | Python | tests/datamodules/util/test_predict_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | 3 | 2022-02-10T17:35:41.000Z | 2022-03-04T10:38:58.000Z | tests/datamodules/util/test_predict_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | 3 | 2022-02-02T09:12:18.000Z | 2022-02-16T13:42:30.000Z | tests/datamodules/util/test_predict_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | null | null | null | import pytest
import torch
from torchvision.transforms import ToTensor
from src.datamodules.utils.dataset_predict import DatasetPredict
from src.datamodules.utils.misc import ImageDimensions
from tests.test_data.dummy_data_hisdb.dummy_data import data_dir
@pytest.fixture
def file_path_list(data_dir):
test_data_p... | 32.636364 | 108 | 0.780873 | 159 | 1,077 | 4.974843 | 0.339623 | 0.141593 | 0.045512 | 0.049305 | 0.126422 | 0.126422 | 0.126422 | 0.126422 | 0.126422 | 0.126422 | 0 | 0.026427 | 0.121634 | 1,077 | 32 | 109 | 33.65625 | 0.809725 | 0 | 0 | 0.173913 | 0 | 0 | 0.010214 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.173913 | false | 0 | 0.26087 | 0.043478 | 0.521739 | 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 |
41b5a6f4979f4132f429fa48bac651586af87479 | 1,484 | py | Python | ec2objects/ec2object/networkinterface.py | zorani/aws-ec2-objects | d75833293355b18f8d656cff0ac9626f9bd73bd5 | [
"MIT"
] | null | null | null | ec2objects/ec2object/networkinterface.py | zorani/aws-ec2-objects | d75833293355b18f8d656cff0ac9626f9bd73bd5 | [
"MIT"
] | null | null | null | ec2objects/ec2object/networkinterface.py | zorani/aws-ec2-objects | d75833293355b18f8d656cff0ac9626f9bd73bd5 | [
"MIT"
] | null | null | null | from __future__ import annotations
from dataclasses import dataclass
from dataclasses import field
from ..ec2common.ec2exceptions import *
@dataclass
class NetworkInterfaceAttributes:
Association: object = None
Attachment: object = None
Description: str = None
Groups: object = field(default_factory=... | 29.098039 | 83 | 0.725741 | 148 | 1,484 | 7.040541 | 0.344595 | 0.067179 | 0.086372 | 0.119962 | 0.139155 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00423 | 0.203504 | 1,484 | 50 | 84 | 29.68 | 0.877327 | 0.301887 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.033333 | 0.133333 | 0 | 0.9 | 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 |
41bcd7db569a8f261ade07991632df20803f2a0f | 3,531 | py | Python | scripts/modules.d/199-Keyboard-Default.py | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | scripts/modules.d/199-Keyboard-Default.py | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | scripts/modules.d/199-Keyboard-Default.py | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | #***
#*********************************************************************
#*************************************************************************
#***
#*** GizmoDaemon Config Script
#*** Keyboard Default config
#***
#*****************************************
#*****************************************
... | 31.247788 | 124 | 0.605211 | 354 | 3,531 | 5.954802 | 0.446328 | 0.078273 | 0.072581 | 0.085389 | 0.306452 | 0.306452 | 0.306452 | 0.262808 | 0.181214 | 0.181214 | 0 | 0.00477 | 0.168791 | 3,531 | 112 | 125 | 31.526786 | 0.713458 | 0.157746 | 0 | 0.190476 | 0 | 0 | 0.061008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
41be42acefbfb95449ab3abea6aa2c34084087e8 | 1,171 | py | Python | scripts/experiments/rpy_PELT.py | JackKelly/slicedpy | c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62 | [
"Apache-2.0"
] | 3 | 2017-02-03T22:05:25.000Z | 2017-08-29T19:06:17.000Z | scripts/experiments/rpy_PELT.py | JackKelly/slicedpy | c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62 | [
"Apache-2.0"
] | null | null | null | scripts/experiments/rpy_PELT.py | JackKelly/slicedpy | c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, division
from rpy2.robjects.packages import importr
from rpy2.robjects import FloatVector
import numpy as np
from os import path
from pda.channel import Channel
"""
Documentation for changepoint R package:
http://cran.r-project.org/web/packages/changepoint/changepoint.pdf
"""
cp... | 29.275 | 66 | 0.688301 | 153 | 1,171 | 5.150327 | 0.490196 | 0.040609 | 0.071066 | 0.045685 | 0.088832 | 0.083756 | 0.083756 | 0.083756 | 0.083756 | 0 | 0 | 0.05411 | 0.179334 | 1,171 | 39 | 67 | 30.025641 | 0.765869 | 0.300598 | 0 | 0 | 0 | 0 | 0.108069 | 0.069164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0.105263 | 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 |
41c01528ade1de70314e3c693332188cb33270c6 | 763 | py | Python | sa/profiles/Huawei/VRP/get_interface_status_ex.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Huawei/VRP/get_interface_status_ex.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Huawei/VRP/get_interface_status_ex.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Huawei.VRP.get_interface_status_ex
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------... | 36.333333 | 80 | 0.543906 | 71 | 763 | 5.676056 | 0.577465 | 0.08933 | 0.133995 | 0.148883 | 0.143921 | 0.143921 | 0 | 0 | 0 | 0 | 0 | 0.016517 | 0.12713 | 763 | 20 | 81 | 38.15 | 0.588589 | 0.419397 | 0 | 0 | 0 | 0 | 0.078161 | 0.078161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
41c66ad0ddc416a26147eb550b212fec1a360db8 | 2,077 | py | Python | Exercicios/Resposta-EstruturaDeRepeticao/Exerc_46.py | ThaisAlves7/Exercicios_PythonBrasil | 3c55f56c44b4da9953a79398859e7c73a155dc0e | [
"MIT"
] | null | null | null | Exercicios/Resposta-EstruturaDeRepeticao/Exerc_46.py | ThaisAlves7/Exercicios_PythonBrasil | 3c55f56c44b4da9953a79398859e7c73a155dc0e | [
"MIT"
] | null | null | null | Exercicios/Resposta-EstruturaDeRepeticao/Exerc_46.py | ThaisAlves7/Exercicios_PythonBrasil | 3c55f56c44b4da9953a79398859e7c73a155dc0e | [
"MIT"
] | null | null | null | # Em uma competição de salto em distância cada atleta tem direito a cinco saltos. No final da série de saltos de cada atleta, o
# melhor e o pior resultados são eliminados. O seu resultado fica sendo a média dos três valores restantes. Você deve fazer um
# programa que receba o nome e as cinco distâncias alcançadas pel... | 39.188679 | 127 | 0.685604 | 332 | 2,077 | 4.228916 | 0.376506 | 0.05698 | 0.022792 | 0.012821 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016139 | 0.224362 | 2,077 | 52 | 128 | 39.942308 | 0.854128 | 0.463649 | 0 | 0.137931 | 0 | 0 | 0.320255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.448276 | 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 |
68b9646938da2d0f30eaeb3d2af5141e3d848f13 | 4,518 | py | Python | sentry/plugins/sentry_redmine/models.py | m0sth8/django-sentry | 1fd836d7029331aa17e2560a3be94996287ad9d3 | [
"BSD-3-Clause"
] | 1 | 2015-07-15T19:04:48.000Z | 2015-07-15T19:04:48.000Z | sentry/plugins/sentry_redmine/models.py | m0sth8/django-sentry | 1fd836d7029331aa17e2560a3be94996287ad9d3 | [
"BSD-3-Clause"
] | null | null | null | sentry/plugins/sentry_redmine/models.py | m0sth8/django-sentry | 1fd836d7029331aa17e2560a3be94996287ad9d3 | [
"BSD-3-Clause"
] | null | null | null | """
sentry.plugins.sentry_redmine.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from django import forms
from django.core.context_processors import csrf
from django.core.urlresolvers import reverse
fr... | 40.339286 | 115 | 0.552457 | 461 | 4,518 | 5.266811 | 0.342733 | 0.025947 | 0.021417 | 0.019769 | 0.068781 | 0.037479 | 0.028007 | 0.028007 | 0 | 0 | 0 | 0.006592 | 0.328464 | 4,518 | 112 | 116 | 40.339286 | 0.793672 | 0 | 0 | 0.102273 | 0 | 0 | 0.113631 | 0.015043 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.159091 | 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 |
68bddb0b2793b653f6cfac0bdf0cad7338108fd9 | 3,157 | py | Python | utils.py | YunzhuLi/CompositionalKoopmanOperators | 116057b11192bb2fbea2b9af411cddcee354dae8 | [
"MIT"
] | 56 | 2020-04-28T14:34:15.000Z | 2022-03-18T13:22:31.000Z | utils.py | YunzhuLi/CompositionalKoopmanOperators | 116057b11192bb2fbea2b9af411cddcee354dae8 | [
"MIT"
] | 4 | 2020-06-29T19:53:27.000Z | 2021-04-05T05:18:40.000Z | utils.py | YunzhuLi/CompositionalKoopmanOperators | 116057b11192bb2fbea2b9af411cddcee354dae8 | [
"MIT"
] | 8 | 2020-06-09T16:12:24.000Z | 2021-11-15T21:43:57.000Z | import sys
import h5py
import numpy as np
import torch
from torch.autograd import Variable
def print_args(args):
print("===== Experiment Configuration =====")
options = vars(args)
for key, value in options.items():
print(f'{key}: {value}')
print("====================================")
def ran... | 22.876812 | 118 | 0.568895 | 502 | 3,157 | 3.420319 | 0.241036 | 0.009319 | 0.010483 | 0.006989 | 0.213162 | 0.102504 | 0.095515 | 0.068725 | 0.068725 | 0.047758 | 0 | 0.030743 | 0.258156 | 3,157 | 137 | 119 | 23.043796 | 0.702391 | 0.005068 | 0 | 0.126316 | 0 | 0 | 0.028034 | 0.011469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242105 | false | 0 | 0.052632 | 0.084211 | 0.463158 | 0.042105 | 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 |
68c8a599d298690dffbd221b7dc2b3d3a43eb90c | 481 | py | Python | formidable/migrations/0009_field_parameters.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | 11 | 2018-02-14T08:15:23.000Z | 2021-09-10T02:16:38.000Z | formidable/migrations/0009_field_parameters.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | 61 | 2017-11-27T10:15:43.000Z | 2021-06-28T14:17:25.000Z | formidable/migrations/0009_field_parameters.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | 2 | 2019-04-06T11:17:05.000Z | 2020-10-10T08:36:27.000Z | # Generated by Django 1.11.6 on 2018-07-23 10:37
from django.db import migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('formidable', '0008_formidable_item_value_field_size'),
]
operations = [
migrations.AddField(
model_name='field'... | 21.863636 | 64 | 0.594595 | 49 | 481 | 5.714286 | 0.734694 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059347 | 0.299376 | 481 | 21 | 65 | 22.904762 | 0.771513 | 0.095634 | 0 | 0.133333 | 1 | 0 | 0.143187 | 0.08545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 |
68cbfd412bee025f0b20b2a8ab576a3c6350c281 | 2,189 | py | Python | custom_email_user/models.py | garyburgmann/django-custom-email-user | 260413fd242a507fb2652959d4b81c8b0eb0f5e9 | [
"MIT"
] | 2 | 2019-08-25T20:26:08.000Z | 2020-08-05T13:56:54.000Z | custom_email_user/models.py | garyburgmann/django-custom-email-user | 260413fd242a507fb2652959d4b81c8b0eb0f5e9 | [
"MIT"
] | null | null | null | custom_email_user/models.py | garyburgmann/django-custom-email-user | 260413fd242a507fb2652959d4b81c8b0eb0f5e9 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractUser
from django.core.validators import EmailValidator
from django.contrib.auth.validators import UnicodeUsernameValidator
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **kwargs):
... | 27.708861 | 81 | 0.610324 | 230 | 2,189 | 5.704348 | 0.352174 | 0.030488 | 0.025915 | 0.032012 | 0.455793 | 0.455793 | 0.455793 | 0.414634 | 0.414634 | 0.277439 | 0 | 0.007767 | 0.294198 | 2,189 | 78 | 82 | 28.064103 | 0.841424 | 0.053906 | 0 | 0.392857 | 0 | 0 | 0.135458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.071429 | 0 | 0.285714 | 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 |
68da8e57f92b8f87536ef1aa6951625da1f7feca | 2,500 | py | Python | src/LinConGauss/core/linear_constraints.py | alpiges/LinConGauss | eb86d5424cf2761f0c4f7e274aa0821150dc933f | [
"MIT"
] | 9 | 2020-03-13T18:30:05.000Z | 2022-01-23T10:48:01.000Z | src/LinConGauss/core/linear_constraints.py | alpiges/LinConGauss | eb86d5424cf2761f0c4f7e274aa0821150dc933f | [
"MIT"
] | 5 | 2020-09-02T09:37:28.000Z | 2021-11-02T14:18:22.000Z | src/LinConGauss/core/linear_constraints.py | alpiges/LinConGauss | eb86d5424cf2761f0c4f7e274aa0821150dc933f | [
"MIT"
] | 1 | 2021-05-03T20:35:53.000Z | 2021-05-03T20:35:53.000Z | import numpy as np
class LinearConstraints():
def __init__(self, A, b, mode='Intersection'):
"""
Defines linear functions f(x) = Ax + b.
The integration domain is defined as the union of where all of these functions are positive if mode='Union'
or the domain where any of the functio... | 37.878788 | 115 | 0.602 | 344 | 2,500 | 4.313953 | 0.247093 | 0.013477 | 0.037736 | 0.051213 | 0.338949 | 0.338949 | 0.270216 | 0.252022 | 0.233154 | 0.233154 | 0 | 0.014294 | 0.3004 | 2,500 | 66 | 116 | 37.878788 | 0.834191 | 0.49 | 0 | 0 | 0 | 0 | 0.028515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68db3851e56de877c738be0007eb111575f3a402 | 909 | py | Python | paperswithcode/models/method.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 78 | 2020-10-26T11:08:41.000Z | 2022-03-31T18:38:40.000Z | paperswithcode/models/method.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 15 | 2020-10-31T11:46:07.000Z | 2022-01-21T09:01:43.000Z | paperswithcode/models/method.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 13 | 2020-11-12T00:07:39.000Z | 2022-01-14T03:07:45.000Z | from typing import List, Optional
from tea_client.models import TeaClientModel
from paperswithcode.models.page import Page
class Method(TeaClientModel):
"""Method object.
Attributes:
id (str): Method ID.
name (str): Method short name.
full_name (str): Method full name.
descr... | 24.567568 | 73 | 0.658966 | 114 | 909 | 5.210526 | 0.359649 | 0.060606 | 0.043771 | 0.070707 | 0.087542 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256326 | 909 | 36 | 74 | 25.25 | 0.878698 | 0.588559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.272727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68de44250ed40654a75ee0a8812567669dc32295 | 482 | py | Python | setup.py | Etaoni/qiagen-clinical-insights-requests-api | 33c02d67ac57bbb00e8e496647517e72c67e8130 | [
"MIT"
] | null | null | null | setup.py | Etaoni/qiagen-clinical-insights-requests-api | 33c02d67ac57bbb00e8e496647517e72c67e8130 | [
"MIT"
] | null | null | null | setup.py | Etaoni/qiagen-clinical-insights-requests-api | 33c02d67ac57bbb00e8e496647517e72c67e8130 | [
"MIT"
] | 1 | 2020-06-15T16:47:25.000Z | 2020-06-15T16:47:25.000Z | from setuptools import setup
with open('README.md', 'r') as readme:
long_description = readme.read()
setup(
name='qci-api',
version='0.1.1',
packages=['qci'],
url='https://github.com/Etaoni/qci-api',
license='MIT License',
author='Alex Lin',
author_email='alexwllin@gmail.com',
desc... | 26.777778 | 77 | 0.688797 | 64 | 482 | 5.078125 | 0.71875 | 0.184615 | 0.116923 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.165975 | 482 | 17 | 78 | 28.352941 | 0.800995 | 0 | 0 | 0 | 0 | 0 | 0.323651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
68e38ecd06c69ca18e3e13bab62d43f9b2896283 | 387 | py | Python | Packages/LiveReload/server/SimpleResourceServer.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 4 | 2018-06-08T23:18:47.000Z | 2020-02-24T06:14:06.000Z | Packages/LiveReload/server/SimpleResourceServer.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 3 | 2021-05-10T18:59:14.000Z | 2021-09-02T01:50:15.000Z | Packages/LiveReload/server/SimpleResourceServer.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 2 | 2019-04-10T01:02:42.000Z | 2021-02-05T08:41:38.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
class SimpleResourceServer(object):
"""SimpleResourceServer"""
def __init__(self):
self.static_files = []
def has_file(self, path):
"""Traverse added static_files return object"""
for l_file in self.static_files:
if path == ... | 20.368421 | 55 | 0.583979 | 44 | 387 | 4.886364 | 0.568182 | 0.153488 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.289406 | 387 | 18 | 56 | 21.5 | 0.778182 | 0.260982 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68eb0c4c0c3806a91ef9b15b03abbd68fa118f0a | 5,070 | py | Python | appengine/monorail/framework/servlet_helpers.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/monorail/framework/servlet_helpers.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/monorail/framework/servlet_helpers.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Helper functions used by the Monorail servlet base class."""
from __future__ import print_fu... | 31.490683 | 79 | 0.730966 | 698 | 5,070 | 5.202006 | 0.34957 | 0.014872 | 0.031396 | 0.024787 | 0.209033 | 0.188102 | 0.168273 | 0.109336 | 0.109336 | 0.096392 | 0 | 0.007231 | 0.181657 | 5,070 | 160 | 80 | 31.6875 | 0.86792 | 0.425247 | 0 | 0.029851 | 0 | 0 | 0.064912 | 0.01154 | 0 | 0 | 0 | 0 | 0.044776 | 1 | 0.149254 | false | 0 | 0.19403 | 0.044776 | 0.507463 | 0.014925 | 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 |
68ebb9e7ebbaf96e77ad8cf70e1e7d0dcb49f92b | 1,365 | py | Python | app/account/migrations/0001_initial.py | newer027/hlf_backend | d309faf12edf16dec986b1dc5b0b006deeaa3222 | [
"MIT"
] | null | null | null | app/account/migrations/0001_initial.py | newer027/hlf_backend | d309faf12edf16dec986b1dc5b0b006deeaa3222 | [
"MIT"
] | 5 | 2020-06-06T01:40:57.000Z | 2022-02-10T09:27:26.000Z | app/account/migrations/0001_initial.py | newer027/hlf_backend | d309faf12edf16dec986b1dc5b0b006deeaa3222 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-09-20 05:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cont... | 37.916667 | 157 | 0.613919 | 141 | 1,365 | 5.780142 | 0.48227 | 0.07362 | 0.088344 | 0.117791 | 0.127607 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026575 | 0.255678 | 1,365 | 35 | 158 | 39 | 0.775591 | 0.032967 | 0 | 0 | 1 | 0 | 0.130501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.107143 | 0 | 0.25 | 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 |
68ef53b404ea85e6041d1586276c392dc7fd6002 | 9,846 | py | Python | testdata/PyFEM-master/pyfem/elements/SLSutils.py | Konstantin8105/py4go | 7c9f3cf0d939ad94d13abe109d15c885ca849cda | [
"MIT"
] | 3 | 2021-01-28T17:40:50.000Z | 2021-10-05T17:48:32.000Z | testdata/PyFEM-master/pyfem/elements/SLSutils.py | Konstantin8105/py4go | 7c9f3cf0d939ad94d13abe109d15c885ca849cda | [
"MIT"
] | 1 | 2021-07-04T14:38:48.000Z | 2021-07-04T14:38:48.000Z | testdata/PyFEM-master/pyfem/elements/SLSutils.py | Konstantin8105/py4go | 7c9f3cf0d939ad94d13abe109d15c885ca849cda | [
"MIT"
] | 2 | 2021-07-11T12:51:08.000Z | 2021-10-05T17:48:44.000Z | ############################################################################
# This Python file is part of PyFEM, the code that accompanies the book: #
# #
# 'Non-Linear Finite Element Analysis of Solids and Structures' #
# R. ... | 34.547368 | 85 | 0.404936 | 1,463 | 9,846 | 2.711552 | 0.142174 | 0.020166 | 0.027225 | 0.01815 | 0.4061 | 0.299471 | 0.228888 | 0.079657 | 0.079657 | 0 | 0 | 0.113415 | 0.27016 | 9,846 | 284 | 86 | 34.669014 | 0.438631 | 0.300427 | 0 | 0.088398 | 0 | 0 | 0.004389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071823 | false | 0.005525 | 0.01105 | 0.01105 | 0.154696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68f2aded7306c8b21153def46226a5fa78c72319 | 464 | py | Python | wrapper_plugins/jpeg2000_wrapper/tests/test_wrapper.py | spongezhang/maskgen | 7284e300d1cb326a5349879de0bace9cfa8788a8 | [
"BSD-3-Clause"
] | null | null | null | wrapper_plugins/jpeg2000_wrapper/tests/test_wrapper.py | spongezhang/maskgen | 7284e300d1cb326a5349879de0bace9cfa8788a8 | [
"BSD-3-Clause"
] | null | null | null | wrapper_plugins/jpeg2000_wrapper/tests/test_wrapper.py | spongezhang/maskgen | 7284e300d1cb326a5349879de0bace9cfa8788a8 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import os
import numpy as np
class TestToolSet(unittest.TestCase):
def test_all(self):
from jpeg2000_wrapper import opener
img = np.random.randint(0, high=255, size=(2000, 4000, 6), dtype=np.uint8)
opener.writeJPeg2000File('foo.jp2',img)
newimg = opener.openJPeg2000... | 25.777778 | 82 | 0.659483 | 61 | 464 | 4.852459 | 0.639344 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081744 | 0.209052 | 464 | 17 | 83 | 27.294118 | 0.724796 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 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 |
68f39a8375980b7220a1bbd78bfe0b258881d830 | 3,871 | py | Python | log_it/extensions/marshmallow/log.py | tanj/log-it | d7223af1d0216d3febe4ebc39e06e24dceb3115f | [
"BSD-3-Clause"
] | null | null | null | log_it/extensions/marshmallow/log.py | tanj/log-it | d7223af1d0216d3febe4ebc39e06e24dceb3115f | [
"BSD-3-Clause"
] | null | null | null | log_it/extensions/marshmallow/log.py | tanj/log-it | d7223af1d0216d3febe4ebc39e06e24dceb3115f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=R0903, C0115
"""
log_it.extensions.marshmallow.log
---------------------------------
Marshmallow Log Models
:copyright: (c) 2021 by John te Bokkel
:license: BSD, see LICENSE for more details
"""
from datetime import datetime
from marshmallow_sqlalchemy i... | 22.375723 | 67 | 0.686386 | 369 | 3,871 | 7.138211 | 0.281843 | 0.06492 | 0.083523 | 0.098709 | 0.299544 | 0.249051 | 0.110478 | 0.084282 | 0.047836 | 0.047836 | 0 | 0.004316 | 0.221906 | 3,871 | 172 | 68 | 22.505814 | 0.870186 | 0.084474 | 0 | 0.476636 | 0 | 0 | 0.014827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056075 | 0 | 0.635514 | 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 |
68f44251c8667224408a3c0d8afed57eada65555 | 906 | py | Python | goodgames/games/migrations/0006_auto_20171128_0232.py | mooshu1x2/goodgames | 346c996cf6b561fbcb36a8e6b4616fa0c16104db | [
"Apache-2.0"
] | null | null | null | goodgames/games/migrations/0006_auto_20171128_0232.py | mooshu1x2/goodgames | 346c996cf6b561fbcb36a8e6b4616fa0c16104db | [
"Apache-2.0"
] | 6 | 2020-02-12T00:20:09.000Z | 2021-06-10T19:59:04.000Z | goodgames/games/migrations/0006_auto_20171128_0232.py | michellebeard/goodgames | 346c996cf6b561fbcb36a8e6b4616fa0c16104db | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-28 02:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0005_auto_20171128_0225'),
]
operations = [
migrations.RemoveField... | 36.24 | 403 | 0.592715 | 89 | 906 | 5.898876 | 0.674157 | 0.034286 | 0.049524 | 0.064762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0.210817 | 906 | 24 | 404 | 37.75 | 0.685315 | 0.075055 | 0 | 0.235294 | 1 | 0 | 0.304192 | 0.027545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
68f9622a0d537e66ba0cebd6a730f7e23be4f919 | 515 | py | Python | TwitterDatabase/Executables/make_database_tables.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | null | null | null | TwitterDatabase/Executables/make_database_tables.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | 6 | 2020-03-24T17:34:24.000Z | 2021-12-13T20:14:34.000Z | TwitterDatabase/Executables/make_database_tables.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | null | null | null | """
Created by adam on 6/30/18
"""
__author__ = 'adam'
import environment as env
from TwitterDatabase.DatabaseAccessObjects.DataConnections import MySqlConnection
from TwitterDatabase.Models.TweetORM import create_db_tables
if __name__ == '__main__':
credential_file = env.CREDENTIAL_FILE
# credential_file = '... | 28.611111 | 92 | 0.768932 | 62 | 515 | 5.983871 | 0.66129 | 0.150943 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011338 | 0.143689 | 515 | 17 | 93 | 30.294118 | 0.829932 | 0.221359 | 0 | 0 | 0 | 0 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
68fa1fa851e21b05bd8418a91532b34fdcb1c60b | 6,375 | py | Python | PEASTrainer.py | SiqiT/PEAS | 03a79ce7a5934fa07a6070aadcaad07cc60e05a9 | [
"MIT"
] | null | null | null | PEASTrainer.py | SiqiT/PEAS | 03a79ce7a5934fa07a6070aadcaad07cc60e05a9 | [
"MIT"
] | null | null | null | PEASTrainer.py | SiqiT/PEAS | 03a79ce7a5934fa07a6070aadcaad07cc60e05a9 | [
"MIT"
] | null | null | null | import sys
import pandas as pd
import numpy as np
import PEASUtil
from sklearn.neural_network import MLPClassifier
from sklearn import preprocessing
import joblib
import argparse
import os
from sklearn.impute import SimpleImputer
from sklearn.model_selection import train_test_split
from sklearn.model_selection import ... | 37.946429 | 140 | 0.707137 | 759 | 6,375 | 5.859025 | 0.355731 | 0.03463 | 0.030582 | 0.014392 | 0.128851 | 0.085901 | 0.085901 | 0.085901 | 0.085901 | 0.085901 | 0 | 0.022437 | 0.140078 | 6,375 | 168 | 141 | 37.946429 | 0.788763 | 0.283451 | 0 | 0.057471 | 0 | 0 | 0.173832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.057471 | 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 |
ec0554aa433757f4af2820d34bfe2c42e94f5ecb | 6,905 | py | Python | Environment.py | markriedl/westworld | 8dc7727beaa5865303e377b02aaffc4629439c91 | [
"MIT"
] | 18 | 2016-12-07T12:22:02.000Z | 2020-11-08T09:39:35.000Z | Environment.py | markriedl/westworld | 8dc7727beaa5865303e377b02aaffc4629439c91 | [
"MIT"
] | null | null | null | Environment.py | markriedl/westworld | 8dc7727beaa5865303e377b02aaffc4629439c91 | [
"MIT"
] | null | null | null | import random
import copy
import sys
from Observation import *
from Reward import *
from Action import *
class Environment:
# The grid world
# 1 = walls
# 4 = goal (non-terminal)
# 5 = goal (terminal)
map = [[1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 1],
[1, 0, 0, 4, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1... | 25.574074 | 154 | 0.649095 | 999 | 6,905 | 4.474474 | 0.183183 | 0.164653 | 0.010067 | 0.010738 | 0.243177 | 0.218792 | 0.194631 | 0.179195 | 0.157942 | 0.157942 | 0 | 0.041674 | 0.218103 | 6,905 | 270 | 155 | 25.574074 | 0.786257 | 0.280377 | 0 | 0.203947 | 0 | 0 | 0.012575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.019737 | 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 |
ec07b28c878279fc1bd630dbcf5e0af128ba857b | 334 | py | Python | Contacts/migrations/0003_auto_20180303_0254.py | simonescob/Agendadj | badd90f3fce0950aa151840f7015c68632c7a203 | [
"MIT"
] | null | null | null | Contacts/migrations/0003_auto_20180303_0254.py | simonescob/Agendadj | badd90f3fce0950aa151840f7015c68632c7a203 | [
"MIT"
] | null | null | null | Contacts/migrations/0003_auto_20180303_0254.py | simonescob/Agendadj | badd90f3fce0950aa151840f7015c68632c7a203 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-03 02:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Contacts', '0002_auto_20180303_0253'),
]
operations = [
migrations.RenameModel(
old_name='Contacts',
new_name='Contact',
... | 18.555556 | 48 | 0.598802 | 36 | 334 | 5.416667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130802 | 0.290419 | 334 | 17 | 49 | 19.647059 | 0.691983 | 0.134731 | 0 | 0 | 1 | 0 | 0.160279 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
ec08915e70576fa1d9ef70c32d6ff00d18857b71 | 1,859 | py | Python | pylark/api_service_link_open_mini_program.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | pylark/api_service_link_open_mini_program.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | pylark/api_service_link_open_mini_program.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class OpenMiniProgramReq(object):
app_id: str = attr.ib(
default="", metadata={"re... | 37.18 | 133 | 0.665412 | 243 | 1,859 | 4.909465 | 0.411523 | 0.041073 | 0.052808 | 0.093881 | 0.310981 | 0.288349 | 0.236379 | 0.236379 | 0.236379 | 0.140821 | 0 | 0.001985 | 0.187197 | 1,859 | 49 | 134 | 37.938776 | 0.787558 | 0.267348 | 0 | 0.04878 | 1 | 0 | 0.167775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.02439 | 0.121951 | 0.02439 | 0.390244 | 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 |
ec0eb172eff4cb3c0e0b227ff83ebd6a54ea13b2 | 2,498 | py | Python | rmp/models/raw/__init__.py | rji-futures-lab/django-rmp-data | 6580961dd965025f312127bdd788f2771463f0b5 | [
"MIT"
] | null | null | null | rmp/models/raw/__init__.py | rji-futures-lab/django-rmp-data | 6580961dd965025f312127bdd788f2771463f0b5 | [
"MIT"
] | 67 | 2018-08-29T18:15:56.000Z | 2020-06-05T18:57:59.000Z | rmp/models/raw/__init__.py | rji-futures-lab/django-rmp-data | 6580961dd965025f312127bdd788f2771463f0b5 | [
"MIT"
] | 6 | 2018-10-18T19:19:38.000Z | 2021-09-15T17:21:52.000Z | from .tbl import (
tblExecutiveSummaries,
tblFacility,
tblRMPError,
tblRMPTrack,
)
from .tblS1 import (
tblS1Facilities,
tblS1FlammableMixtureChemicals,
tblS1ProcessChemicals,
tblS1Process_NAICS,
tblS1Processes,
)
from .tblS2 import tblS2ToxicsWorstCase
from .tblS3 import tblS3Toxics... | 26.020833 | 55 | 0.755404 | 138 | 2,498 | 13.471014 | 0.405797 | 0.054868 | 0.083916 | 0.066703 | 0.651963 | 0.593868 | 0.48951 | 0.48951 | 0.48951 | 0.48951 | 0 | 0.027563 | 0.172138 | 2,498 | 95 | 56 | 26.294737 | 0.871373 | 0 | 0 | 0 | 0 | 0 | 0.343875 | 0.226982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117021 | 0 | 0.117021 | 0 | 0 | 0 | 1 | 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 |
ec116a10a1f6198fc47e56a91d6024ddc0faad5a | 6,273 | py | Python | bot2/retweet_twitterbot.py | tmcellfree/twitterbot_repo | 48eff5aaaf061cc86ba116803a68f22ad8d799d7 | [
"MIT"
] | null | null | null | bot2/retweet_twitterbot.py | tmcellfree/twitterbot_repo | 48eff5aaaf061cc86ba116803a68f22ad8d799d7 | [
"MIT"
] | null | null | null | bot2/retweet_twitterbot.py | tmcellfree/twitterbot_repo | 48eff5aaaf061cc86ba116803a68f22ad8d799d7 | [
"MIT"
] | null | null | null | # Reference adapted from https://www.digitalocean.com/community/tutorials/how-to-create-a-twitterbot-with-python-3-and-the-tweepy-library
# Import Tweepy, sleep, credentials.py
import tweepy
from time import sleep
from datetime import datetime
import csv
import sys
import random # This is for using random lines in th... | 36.47093 | 137 | 0.646102 | 813 | 6,273 | 4.933579 | 0.317343 | 0.024433 | 0.016455 | 0.017951 | 0.307654 | 0.286462 | 0.270007 | 0.256046 | 0.24009 | 0.220643 | 0 | 0.006332 | 0.219512 | 6,273 | 171 | 138 | 36.684211 | 0.812909 | 0.379404 | 0 | 0.357143 | 0 | 0.010204 | 0.097744 | 0.02005 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102041 | null | null | 0.183673 | 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 |
ec1784af7411b7512973c19459cbd8d041c62eef | 3,824 | py | Python | sheep-vs-dog-master - DDPG/env.py | CuteWans/sheep-vs-dog | 4d1542eaa22fd618976757704e584d2c62db5b21 | [
"MIT"
] | null | null | null | sheep-vs-dog-master - DDPG/env.py | CuteWans/sheep-vs-dog | 4d1542eaa22fd618976757704e584d2c62db5b21 | [
"MIT"
] | null | null | null | sheep-vs-dog-master - DDPG/env.py | CuteWans/sheep-vs-dog | 4d1542eaa22fd618976757704e584d2c62db5b21 | [
"MIT"
] | null | null | null | import numpy as np
import gym
from gym.envs.classic_control import rendering
class ChaseEnv(object):
viewer = None
dt = 0.1
alpha_bound = [0, np.pi]
state_dim = 2
action_dim = 1
def __init__(self, _R, _r, _sheepTheta, _sheepV, _dogTheta, _dogV):
self.state = np.zeros(3, dtype=np.float... | 33.252174 | 126 | 0.52249 | 541 | 3,824 | 3.609982 | 0.160813 | 0.230415 | 0.102407 | 0.043011 | 0.315412 | 0.222222 | 0.180236 | 0.180236 | 0.151562 | 0.151562 | 0 | 0.048088 | 0.336559 | 3,824 | 114 | 127 | 33.54386 | 0.721719 | 0.0034 | 0 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.031915 | 0 | 0.159574 | 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 |
ec1fe04ab60fa7526700f1d4c0208da79507dcba | 495 | py | Python | py/ae/semantic/style.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | py/ae/semantic/style.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | py/ae/semantic/style.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | import sys
import ae_backend
# ======================================================================
def style_with_one_modifier(chart: ae_backend.chart_v3.Chart, style_name: str, selector: dict[str, object], modifier: dict[str, object], priority: int) -> set[str]:
style = chart.styles()[style_name]
style.pr... | 38.076923 | 164 | 0.521212 | 49 | 495 | 5.061224 | 0.44898 | 0.108871 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002257 | 0.105051 | 495 | 12 | 165 | 41.25 | 0.557562 | 0.284848 | 0 | 0 | 0 | 0 | 0 | 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 |
ec26223a040ad20d5cedb090c0054f45db2461bd | 755 | py | Python | python_3/synthetic_data_generator/experiments/expr_generate_random_id_numbers.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | null | null | null | python_3/synthetic_data_generator/experiments/expr_generate_random_id_numbers.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | 39 | 2020-10-11T06:57:35.000Z | 2021-11-02T08:57:01.000Z | python_3/synthetic_data_generator/experiments/expr_generate_random_id_numbers.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 13 08:10:33 2020
@author: Ashish
"""
import random, string
n=10
def generate_random_id_numbers() -> list:
""" Generate dummy Health Service ID numbers similar to NHS 10 digit format
See: https://www.nhs.uk/using-the-nhs/about-the-nhs/what-is-an-nhs-numbe... | 32.826087 | 82 | 0.621192 | 114 | 755 | 3.938596 | 0.5 | 0.062361 | 0.089087 | 0.093541 | 0.285078 | 0.285078 | 0.285078 | 0.285078 | 0.285078 | 0.285078 | 0 | 0.034072 | 0.222517 | 755 | 23 | 83 | 32.826087 | 0.730835 | 0.29404 | 0 | 0 | 1 | 0 | 0.02045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.153846 | 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 |
ec2907c87210dcd0a7b12a2f3a174cb3aa2f18d0 | 2,607 | py | Python | alter_wrapper.py | anish-lu-yihe/MINERVA | 931d79170855cb187992ee1fb8520ae61f3cf875 | [
"MIT"
] | null | null | null | alter_wrapper.py | anish-lu-yihe/MINERVA | 931d79170855cb187992ee1fb8520ae61f3cf875 | [
"MIT"
] | null | null | null | alter_wrapper.py | anish-lu-yihe/MINERVA | 931d79170855cb187992ee1fb8520ae61f3cf875 | [
"MIT"
] | null | null | null | import numpy as np
import alternative_implementations.minerva2 as dwhite54
from rpy2.robjects.packages import SignatureTranslatedAnonymousPackage
import rpy2.robjects.numpy2ri as rpyn
class model1(dwhite54.Minerva2):
def reset(self):
self.__init__(self.features_per_trace)
def get_memory_matri... | 37.782609 | 129 | 0.629076 | 325 | 2,607 | 4.861538 | 0.252308 | 0.039873 | 0.049367 | 0.037975 | 0.370886 | 0.311392 | 0.222785 | 0.148101 | 0.148101 | 0.103797 | 0 | 0.017617 | 0.259685 | 2,607 | 69 | 130 | 37.782609 | 0.801036 | 0 | 0 | 0.296296 | 0 | 0 | 0.021898 | 0.015367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240741 | false | 0 | 0.074074 | 0.074074 | 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 |
ec2d0079498237ea6556d1376b69600aeb333443 | 984 | py | Python | buyfree_mall/buyfree_mall/apps/areas/views.py | GalphaXie/E-commerce | e358089c8002739b121cf7ced7d27b093303de94 | [
"MIT"
] | null | null | null | buyfree_mall/buyfree_mall/apps/areas/views.py | GalphaXie/E-commerce | e358089c8002739b121cf7ced7d27b093303de94 | [
"MIT"
] | null | null | null | buyfree_mall/buyfree_mall/apps/areas/views.py | GalphaXie/E-commerce | e358089c8002739b121cf7ced7d27b093303de94 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from rest_framework.viewsets import ReadOnlyModelViewSet
from rest_framework_extensions.cache.mixins import CacheResponseMixin
from areas.models import Area
from areas.serializers import AreaSerializer, SubAreaSerializer
class AreasViewSet(CacheResponseM... | 25.230769 | 78 | 0.65752 | 105 | 984 | 6.066667 | 0.580952 | 0.025118 | 0.053375 | 0.050235 | 0.069074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257114 | 984 | 38 | 79 | 25.894737 | 0.871409 | 0.213415 | 0 | 0.235294 | 0 | 0 | 0.011429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.764706 | 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 |
ec2f2a9e33306dc9c00506460aecc9c28578bbc6 | 3,403 | py | Python | lean/components/config/project_config_manager.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 76 | 2021-02-03T02:32:32.000Z | 2022-03-28T17:04:03.000Z | lean/components/config/project_config_manager.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 64 | 2021-02-28T23:14:17.000Z | 2022-03-30T23:22:24.000Z | lean/components/config/project_config_manager.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 50 | 2021-02-11T01:25:24.000Z | 2022-03-17T03:56:29.000Z | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# 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... | 42.012346 | 119 | 0.716427 | 457 | 3,403 | 5.214442 | 0.341357 | 0.060428 | 0.017625 | 0.030214 | 0.073437 | 0.073437 | 0.073437 | 0.073437 | 0.073437 | 0.073437 | 0 | 0.010817 | 0.212166 | 3,403 | 80 | 120 | 42.5375 | 0.878031 | 0.468704 | 0 | 0 | 0 | 0 | 0.041293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.225806 | 0 | 0.548387 | 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 |
ec349dbf9e67a41bf501422962e0ecfb9d6b2fa3 | 458 | py | Python | generate.py | mdsitton/pyogl | 16666dfdb9ad0606d9737bb0ed324ac7f16e8b47 | [
"BSD-2-Clause"
] | null | null | null | generate.py | mdsitton/pyogl | 16666dfdb9ad0606d9737bb0ed324ac7f16e8b47 | [
"BSD-2-Clause"
] | null | null | null | generate.py | mdsitton/pyogl | 16666dfdb9ad0606d9737bb0ed324ac7f16e8b47 | [
"BSD-2-Clause"
] | null | null | null | from pglgen import pycodegen
# This is somewhat of a hack
# It injects a variable into the builtins so that its simple
# to check for code genetation in the types system.
try:
import __builtin__ as builtins
except ImportError:
import builtins
builtins.genGL = True
def main():
apis = ['gl', 'wgl', 'glx', '... | 21.809524 | 60 | 0.681223 | 64 | 458 | 4.671875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231441 | 458 | 20 | 61 | 22.9 | 0.849432 | 0.29476 | 0 | 0 | 0 | 0 | 0.059561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 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 |
ec35689ebc1832b0bac53ca691eda983a7d443bd | 6,539 | py | Python | src/main/python/data_pipeline/open_data_raw_material_price/core.py | meowpunch/bobsim-research | 4411ac6eaf5b760611f689b0a9e290546e2f5435 | [
"MIT"
] | 2 | 2020-03-01T17:42:44.000Z | 2020-03-09T06:13:34.000Z | src/main/python/data_pipeline/open_data_raw_material_price/core.py | meowpunch/bobsim-research | 4411ac6eaf5b760611f689b0a9e290546e2f5435 | [
"MIT"
] | 2 | 2020-04-01T16:48:06.000Z | 2020-04-04T11:04:10.000Z | src/main/python/data_pipeline/open_data_raw_material_price/core.py | meowpunch/bobsim-research | 4411ac6eaf5b760611f689b0a9e290546e2f5435 | [
"MIT"
] | null | null | null | import pandas as pd
from data_pipeline.dtype import dtype, reduction_dtype
from data_pipeline.translate import translation
from data_pipeline.unit import get_unit
from utils.handle_null import NullHandler
from utils.logging import init_logger
from utils.s3_manager.manage import S3Manager
from utils.sparse import filte... | 34.781915 | 119 | 0.61095 | 832 | 6,539 | 4.625 | 0.248798 | 0.034304 | 0.02027 | 0.02079 | 0.126299 | 0.093035 | 0.076403 | 0.076403 | 0 | 0 | 0 | 0.007512 | 0.287506 | 6,539 | 187 | 120 | 34.967914 | 0.818416 | 0.220982 | 0 | 0.09 | 0 | 0 | 0.143901 | 0.088764 | 0 | 0 | 0 | 0.032086 | 0 | 1 | 0.12 | false | 0 | 0.09 | 0.01 | 0.33 | 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 |
ec3c6a2b580ccc0a39b25cc1babf3f8148fdf218 | 3,687 | py | Python | test/test_encryption.py | tunapro1234/DBEX | faaae11bab4239f7092c6e37a017fb935ae5fcd2 | [
"MIT"
] | null | null | null | test/test_encryption.py | tunapro1234/DBEX | faaae11bab4239f7092c6e37a017fb935ae5fcd2 | [
"MIT"
] | null | null | null | test/test_encryption.py | tunapro1234/DBEX | faaae11bab4239f7092c6e37a017fb935ae5fcd2 | [
"MIT"
] | null | null | null | from dbex.encryption import DBEXMetaEncrypter
from dbex.encryption import DebugEncrypter
from dbex.__init__ import Decoder # sonunda
from dbex.__init__ import Encoder
import unittest
import os
enc, dec = Encoder(), Decoder()
class TestEncryption(unittest.TestCase):
test_file = "dbex/test/TestEncryption.json"
... | 27.514925 | 77 | 0.588012 | 411 | 3,687 | 5.153285 | 0.206813 | 0.056657 | 0.01983 | 0.033994 | 0.589235 | 0.545798 | 0.416903 | 0.398017 | 0.337583 | 0.316808 | 0 | 0.015861 | 0.298888 | 3,687 | 133 | 78 | 27.721805 | 0.803482 | 0.001899 | 0 | 0.535354 | 0 | 0 | 0.044046 | 0.007885 | 0 | 0 | 0 | 0 | 0.050505 | 1 | 0.131313 | false | 0.080808 | 0.060606 | 0 | 0.292929 | 0.010101 | 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 |
ec3f7a9e6f882bc1b271544298e6e0ff91d09350 | 325 | py | Python | otree_manager/otree_manager/om/processors.py | chkgk/otree_manager | d0c3cb6136d61b2bef4f3baf4f736439ae20aca4 | [
"MIT"
] | 2 | 2019-12-17T13:48:41.000Z | 2020-04-30T02:43:12.000Z | otree_manager/otree_manager/om/processors.py | chkgk/otree_manager | d0c3cb6136d61b2bef4f3baf4f736439ae20aca4 | [
"MIT"
] | 18 | 2019-08-28T12:00:48.000Z | 2020-06-05T19:20:58.000Z | otree_manager/otree_manager/om/processors.py | chkgk/otree_manager | d0c3cb6136d61b2bef4f3baf4f736439ae20aca4 | [
"MIT"
] | 1 | 2020-09-22T11:35:22.000Z | 2020-09-22T11:35:22.000Z | from django.conf import settings as django_conf
def settings(request):
"""Provides easy access to settings stored in django conf"""
return {
'DEMO': django_conf.DEMO,
'MIN_WORKERS': django_conf.MIN_WORKERS,
'MAX_WORKERS': django_conf.MAX_WORKERS,
'MAX_WEB': django_conf.MAX_WEB,
... | 32.5 | 64 | 0.68 | 43 | 325 | 4.883721 | 0.465116 | 0.333333 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221538 | 325 | 10 | 65 | 32.5 | 0.83004 | 0.166154 | 0 | 0 | 0 | 0 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
ec44a91b567bedf847d6c69cf05c25ce76e311e8 | 1,103 | py | Python | asana/resources/project_memberships.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 266 | 2015-02-13T18:14:08.000Z | 2022-03-29T22:03:33.000Z | asana/resources/project_memberships.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 77 | 2015-02-13T00:22:11.000Z | 2022-02-20T07:56:14.000Z | asana/resources/project_memberships.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 95 | 2015-03-18T23:28:57.000Z | 2022-02-20T23:28:58.000Z |
from .gen.project_memberships import _ProjectMemberships
class ProjectMemberships(_ProjectMemberships):
"""Project Memberships resource"""
def find_by_project(self, project, params={}, **options):
"""Returns the compact project membership records for the project.
Parameters
---------... | 36.766667 | 89 | 0.647325 | 114 | 1,103 | 6.149123 | 0.385965 | 0.145506 | 0.025678 | 0.065621 | 0.099857 | 0.099857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236627 | 1,103 | 29 | 90 | 38.034483 | 0.832542 | 0.440617 | 0 | 0 | 0 | 0 | 0.108055 | 0.108055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec49d1355139df89b88714e37261d8808c7d0023 | 5,551 | py | Python | papers/tests/test_views.py | anujmittal94/spiresearch | fed27d36f941101b17979b4882eeab1144fb4a54 | [
"MIT"
] | 1 | 2021-12-30T08:46:45.000Z | 2021-12-30T08:46:45.000Z | papers/tests/test_views.py | anujmittal94/spiresearch | fed27d36f941101b17979b4882eeab1144fb4a54 | [
"MIT"
] | null | null | null | papers/tests/test_views.py | anujmittal94/spiresearch | fed27d36f941101b17979b4882eeab1144fb4a54 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.urls import reverse
from papers.models import UserRead, UserProject
from accounts.models import CustomUser
class IndexViewTest(TestCase):
def test_index(self):
response = self.client.get(reverse('index'))
self.assertEqual(response.status_code, ... | 36.519737 | 129 | 0.67051 | 625 | 5,551 | 5.8816 | 0.112 | 0.057127 | 0.068553 | 0.079978 | 0.670294 | 0.670294 | 0.643362 | 0.592764 | 0.573993 | 0.507073 | 0 | 0.019725 | 0.187173 | 5,551 | 151 | 130 | 36.761589 | 0.794991 | 0 | 0 | 0.49505 | 0 | 0 | 0.142137 | 0.020537 | 0 | 0 | 0 | 0 | 0.277228 | 1 | 0.148515 | false | 0.108911 | 0.039604 | 0 | 0.237624 | 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 |
ec4a72d7cd4bf3888f78bca9d6bb4a456ad067d1 | 1,825 | py | Python | aria/utils/process.py | enricorusso/incubator-ariatosca | 3748b1962697712bde29c9de781d867c6c5ffad1 | [
"Apache-2.0"
] | 1 | 2018-10-13T06:32:10.000Z | 2018-10-13T06:32:10.000Z | aria/utils/process.py | enricorusso/incubator-ariatosca | 3748b1962697712bde29c9de781d867c6c5ffad1 | [
"Apache-2.0"
] | null | null | null | aria/utils/process.py | enricorusso/incubator-ariatosca | 3748b1962697712bde29c9de781d867c6c5ffad1 | [
"Apache-2.0"
] | 1 | 2020-06-16T15:13:06.000Z | 2020-06-16T15:13:06.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 35.096154 | 90 | 0.709589 | 273 | 1,825 | 4.695971 | 0.391941 | 0.046802 | 0.037442 | 0.024961 | 0.410296 | 0.391576 | 0.360374 | 0.360374 | 0.360374 | 0.304212 | 0 | 0.004828 | 0.205479 | 1,825 | 51 | 91 | 35.784314 | 0.87931 | 0.722192 | 0 | 0 | 0 | 0 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec53111885031d99994357673946a6b5a4ca57b0 | 449 | py | Python | backend/instruments/api/v1/urls.py | codepanda64/logs-and-metas-for-stations | c2fca7b149eaea25b4df45e6cb4af01cc8ad7204 | [
"Apache-2.0"
] | null | null | null | backend/instruments/api/v1/urls.py | codepanda64/logs-and-metas-for-stations | c2fca7b149eaea25b4df45e6cb4af01cc8ad7204 | [
"Apache-2.0"
] | null | null | null | backend/instruments/api/v1/urls.py | codepanda64/logs-and-metas-for-stations | c2fca7b149eaea25b4df45e6cb4af01cc8ad7204 | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter, SimpleRouter
from . import views
app_name = "instruments"
router = SimpleRouter()
router.register(r"models", views.InstrumentModelViewSet)
router.register(r"entities", views.InstrumentEntityViewSet)
# router.register(
# r"mo... | 22.45 | 87 | 0.777283 | 50 | 449 | 6.9 | 0.58 | 0.121739 | 0.130435 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004988 | 0.106904 | 449 | 19 | 88 | 23.631579 | 0.855362 | 0.231626 | 0 | 0 | 0 | 0 | 0.073529 | 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 |
ec5769d61c071c52b20199d81d990b0bf745273b | 1,060 | py | Python | authentik/outposts/migrations/0001_initial.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/outposts/migrations/0001_initial.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/outposts/migrations/0001_initial.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | # Generated by Django 3.1 on 2020-08-25 20:45
import uuid
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("authentik_core", "0008_auto_20200824_1532"),
]
operations = [
migration... | 25.853659 | 84 | 0.451887 | 78 | 1,060 | 6.051282 | 0.692308 | 0.055085 | 0.088983 | 0.114407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053448 | 0.45283 | 1,060 | 40 | 85 | 26.5 | 0.760345 | 0.040566 | 0 | 0.15625 | 1 | 0 | 0.09064 | 0.04532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.21875 | 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 |
6b599684679ec90ec6e1efbb59b3610cba4335a0 | 18,575 | py | Python | scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_ipv6.py | jmguzmanc/trex-core | 4309f75cfce1faf56dbf4b5eae9046851f79ffb4 | [
"Apache-2.0"
] | null | null | null | scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_ipv6.py | jmguzmanc/trex-core | 4309f75cfce1faf56dbf4b5eae9046851f79ffb4 | [
"Apache-2.0"
] | null | null | null | scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_ipv6.py | jmguzmanc/trex-core | 4309f75cfce1faf56dbf4b5eae9046851f79ffb4 | [
"Apache-2.0"
] | null | null | null | from trex.emu.api import *
from trex.emu.emu_plugins.emu_plugin_base import *
from trex.emu.trex_emu_conversions import Ipv6
from trex.emu.trex_emu_validator import EMUValidator
import trex.utils.parsing_opts as parsing_opts
class IPV6Plugin(EMUPluginBase):
'''Defines ipv6 plugin
RFC 4443: Internet Con... | 42.701149 | 134 | 0.526837 | 2,197 | 18,575 | 4.140191 | 0.111061 | 0.034631 | 0.008905 | 0.009235 | 0.695141 | 0.646548 | 0.615875 | 0.613786 | 0.608509 | 0.604222 | 0 | 0.027347 | 0.364145 | 18,575 | 434 | 135 | 42.799539 | 0.742782 | 0.200162 | 0 | 0.508197 | 0 | 0 | 0.103117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077869 | false | 0.004098 | 0.020492 | 0 | 0.184426 | 0.02459 | 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 |
6b5a6980b11f6b1f99562e4ee00c55c312e2b2e8 | 2,075 | py | Python | src/quantrt/api/auth.py | ardieb/quantrt | 4a65b97218711ce8ebc7ae90588546cbee72e646 | [
"MIT"
] | null | null | null | src/quantrt/api/auth.py | ardieb/quantrt | 4a65b97218711ce8ebc7ae90588546cbee72e646 | [
"MIT"
] | null | null | null | src/quantrt/api/auth.py | ardieb/quantrt | 4a65b97218711ce8ebc7ae90588546cbee72e646 | [
"MIT"
] | null | null | null | import base64
import hashlib
import hmac
import json
import time
import quantrt.common.log
from typing import Union, Dict
__all__ = ["load_credentials", "sign_websocket_request"]
def load_credentials(credentials: str) -> Dict:
"""Create an authenticated coinbasepro rest client api from a dictionary or json fi... | 34.583333 | 98 | 0.666024 | 249 | 2,075 | 5.493976 | 0.345382 | 0.02924 | 0.035088 | 0.038012 | 0.121345 | 0.070175 | 0.070175 | 0.070175 | 0.070175 | 0.070175 | 0 | 0.010474 | 0.217831 | 2,075 | 59 | 99 | 35.169492 | 0.832409 | 0.248675 | 0 | 0.055556 | 0 | 0 | 0.170861 | 0.01457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.083333 | 0.194444 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b5b72537beabd9677ba6120abd0c23cd184b18e | 241 | py | Python | convert_grayscale.py | Programista3/Python-OpenCV-Examples | 73081d3a107a0f55285466a0dc9eac6605e69414 | [
"BSD-3-Clause"
] | null | null | null | convert_grayscale.py | Programista3/Python-OpenCV-Examples | 73081d3a107a0f55285466a0dc9eac6605e69414 | [
"BSD-3-Clause"
] | null | null | null | convert_grayscale.py | Programista3/Python-OpenCV-Examples | 73081d3a107a0f55285466a0dc9eac6605e69414 | [
"BSD-3-Clause"
] | null | null | null | import cv2
image = cv2.imread('media/Leaves.jpg', 1) # Load a color image
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # Convert image to grayscale
cv2.imshow('Image in grayscale', gray) # Show image
cv2.waitKey(0)
cv2.destroyAllWindows() | 34.428571 | 75 | 0.755187 | 37 | 241 | 4.891892 | 0.621622 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.120332 | 241 | 7 | 76 | 34.428571 | 0.806604 | 0.232365 | 0 | 0 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
6b5bba2136570a93dd51c227dbdf23537b2d507c | 2,741 | py | Python | src/striga/service/sitebus/_stsvcsb_view.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/service/sitebus/_stsvcsb_view.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/service/sitebus/_stsvcsb_view.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | import os, logging as L
import striga.core.exception
import striga.server.application
from ._stsvcsb_utils import PathLimiter, LoabableObject
###
class View(PathLimiter, LoabableObject):
'''
Process bus object that executes Striga views
'''
def __init__(self, rootdir, source, mode, entry = 'main', pat... | 37.547945 | 144 | 0.711784 | 351 | 2,741 | 5.501425 | 0.384615 | 0.121181 | 0.036251 | 0.051787 | 0.205075 | 0.09218 | 0.036251 | 0.036251 | 0.036251 | 0.036251 | 0 | 0.00088 | 0.170741 | 2,741 | 72 | 145 | 38.069444 | 0.848658 | 0.186428 | 0 | 0.142857 | 0 | 0 | 0.192469 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 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 |
6b5c4b8110652ca7ea76deaaae570b12bb6c4140 | 704 | py | Python | lib/galaxy/job_metrics/formatting.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 1,085 | 2015-02-18T16:14:38.000Z | 2022-03-30T23:52:07.000Z | lib/galaxy/job_metrics/formatting.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 11,253 | 2015-02-18T17:47:32.000Z | 2022-03-31T21:47:03.000Z | lib/galaxy/job_metrics/formatting.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 1,000 | 2015-02-18T16:18:10.000Z | 2022-03-29T08:22:56.000Z | """Utilities related to formatting job metrics for human consumption."""
class JobMetricFormatter:
"""Format job metric key-value pairs for human consumption in Web UI."""
def format(self, key, value):
return (str(key), str(value))
def seconds_to_str(value):
"""Convert seconds to a simple simpl... | 32 | 101 | 0.620739 | 102 | 704 | 4.264706 | 0.480392 | 0.027586 | 0.087356 | 0.05977 | 0.101149 | 0.101149 | 0.101149 | 0 | 0 | 0 | 0 | 0.026119 | 0.238636 | 704 | 21 | 102 | 33.52381 | 0.785448 | 0.292614 | 0 | 0 | 0 | 0.083333 | 0.334025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6b5e4041cb0abf1f531759e1b2317ec290fdb3d2 | 1,577 | py | Python | tests/homework_1/task_1/test_vector.py | pyaiveoleg/semester_4_python | 51d56f2083d2f06994e148b7cd0f288050a0f40d | [
"MIT"
] | null | null | null | tests/homework_1/task_1/test_vector.py | pyaiveoleg/semester_4_python | 51d56f2083d2f06994e148b7cd0f288050a0f40d | [
"MIT"
] | 2 | 2021-03-04T22:34:00.000Z | 2021-04-05T16:38:20.000Z | tests/homework_1/task_1/test_vector.py | pyaiveoleg/semester_4_python | 51d56f2083d2f06994e148b7cd0f288050a0f40d | [
"MIT"
] | null | null | null | import unittest
from homeworks.homework_1.task_1.vector import Vector
class VectorTest(unittest.TestCase):
def test_empty_vector(self):
with self.assertRaises(ValueError):
self.assertEqual(Vector([]).length(), 0)
def test_int_length(self):
self.assertEqual(Vector([3, 4]).length()... | 36.674419 | 112 | 0.649334 | 230 | 1,577 | 4.278261 | 0.213043 | 0.078252 | 0.065041 | 0.060976 | 0.422764 | 0.388211 | 0.327236 | 0.327236 | 0.24187 | 0.162602 | 0 | 0.117005 | 0.187064 | 1,577 | 42 | 113 | 37.547619 | 0.650546 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 1 | 0.333333 | false | 0 | 0.066667 | 0 | 0.433333 | 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 |
6b615e69819e8474bd0302325883eb6d1dd9ebd4 | 729 | py | Python | icIceFonksiyon.py | cyrionp/PythonLectures | 64348479434ed9aea54010f6f165b92eb597b994 | [
"MIT"
] | null | null | null | icIceFonksiyon.py | cyrionp/PythonLectures | 64348479434ed9aea54010f6f165b92eb597b994 | [
"MIT"
] | null | null | null | icIceFonksiyon.py | cyrionp/PythonLectures | 64348479434ed9aea54010f6f165b92eb597b994 | [
"MIT"
] | null | null | null | def greeting(name):
print("Hello ",name)
'''
print(greeting("Ali"))
sayHello=greeting
print(sayHello)
print(greeting)
del sayHello
print(greeting)
#print(sayHello)
#Encapsulation
def outer(num1):
def inner_increment(num1):
return num1+1
num2=inner_increment(num1)
print(num1,num2)
outer(10)... | 18.225 | 59 | 0.685871 | 97 | 729 | 5.103093 | 0.412371 | 0.121212 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.197531 | 729 | 39 | 60 | 18.692308 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.137472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.384615 | 0.230769 | 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 |
6b691b2050de10fc644b558af3c7fb9f17d100e5 | 309 | py | Python | ci.py | Glitter23/trying | d0ff497836bd3ed54da96b7682ace14bf741a1f2 | [
"CC0-1.0"
] | null | null | null | ci.py | Glitter23/trying | d0ff497836bd3ed54da96b7682ace14bf741a1f2 | [
"CC0-1.0"
] | null | null | null | ci.py | Glitter23/trying | d0ff497836bd3ed54da96b7682ace14bf741a1f2 | [
"CC0-1.0"
] | null | null | null | #Compounnd Interest
def ci(t,p,r):
A = p *((1+(r/100))**t)
CI = A - p
return CI
z=ci(4,50000,4)
print(z)
#amount
def amount(p,r,t):
A = p *((1+(r/100))**t)
return A
#rate
def rate(A,p,t):
r=((A/p)**(1/t)) - 1
return r
k=rate(90000,45000,2)
print(k)
| 13.434783 | 28 | 0.462783 | 60 | 309 | 2.383333 | 0.35 | 0.06993 | 0.062937 | 0.055944 | 0.111888 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 0.31068 | 309 | 22 | 29 | 14.045455 | 0.539906 | 0.090615 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b6a555c897a13bffac0f465ac2c08f040d71566 | 252 | py | Python | corrige_media/corrige_media.py | Arthurnevs/E1 | 17de7fe2852a93d90dfb3fa61fdefda16e8b7938 | [
"Apache-2.0"
] | null | null | null | corrige_media/corrige_media.py | Arthurnevs/E1 | 17de7fe2852a93d90dfb3fa61fdefda16e8b7938 | [
"Apache-2.0"
] | null | null | null | corrige_media/corrige_media.py | Arthurnevs/E1 | 17de7fe2852a93d90dfb3fa61fdefda16e8b7938 | [
"Apache-2.0"
] | null | null | null | '''
UFCG
PROGRAMAÇÃO 1
JOSE ARTHUR NEVES DE BRITO - 119210204
CORRIGE MEDIA
'''
nota1 = 10
nota2 = 5
media = (nota1 + nota2) / 2
print("Nota 1: {:4.1f}".format(nota1))
print("Nota 2: {:4.1f}".format(nota2))
print("Média : {:4.1f}".format(media))
| 14 | 39 | 0.634921 | 39 | 252 | 4.102564 | 0.564103 | 0.05625 | 0.16875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.166667 | 252 | 17 | 40 | 14.823529 | 0.628571 | 0.285714 | 0 | 0 | 0 | 0 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 |
6b6b8683ed7598cf753769d51a23dd2037922a54 | 346 | py | Python | Exercicios Python/ex0018.py | AlanOliveira1998/ExerciciosPython01-100 | c5d518156107e59ff9e7696391e2772a807a2866 | [
"MIT"
] | null | null | null | Exercicios Python/ex0018.py | AlanOliveira1998/ExerciciosPython01-100 | c5d518156107e59ff9e7696391e2772a807a2866 | [
"MIT"
] | null | null | null | Exercicios Python/ex0018.py | AlanOliveira1998/ExerciciosPython01-100 | c5d518156107e59ff9e7696391e2772a807a2866 | [
"MIT"
] | null | null | null | #Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente e calcule e mostre a sua hipotenusa
import math
co = float(input('Digite o valor do cateto oposto:'))
ca = float(input('Digite o valor do cateto adjacente:'))
h = math.hypot(co, ca)
print(f'O valor da hipotenusa corresponde a {h}')
# h = (c... | 49.428571 | 115 | 0.702312 | 62 | 346 | 3.919355 | 0.532258 | 0.131687 | 0.115226 | 0.139918 | 0.246914 | 0.246914 | 0.246914 | 0 | 0 | 0 | 0 | 0.014035 | 0.176301 | 346 | 7 | 116 | 49.428571 | 0.838596 | 0.424855 | 0 | 0 | 0 | 0 | 0.535354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
6b6bb557ea8af1f7d05b08821b7355796e39af5b | 1,640 | py | Python | pytest_tornado/test/test_server.py | FRI-DAY/pytest-tornado | 0fe26d5e49707bf962c472c548895a15f0c4fd8e | [
"Apache-2.0"
] | null | null | null | pytest_tornado/test/test_server.py | FRI-DAY/pytest-tornado | 0fe26d5e49707bf962c472c548895a15f0c4fd8e | [
"Apache-2.0"
] | null | null | null | pytest_tornado/test/test_server.py | FRI-DAY/pytest-tornado | 0fe26d5e49707bf962c472c548895a15f0c4fd8e | [
"Apache-2.0"
] | null | null | null | import functools
import pytest
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write('Hello, world')
application = tornado.web.Application([
(r'/', MainHandler),
(r'/f00', MainHandler),
])
@pytest.fixture(scope='module')
def app():
... | 23.098592 | 72 | 0.725 | 231 | 1,640 | 4.848485 | 0.277056 | 0.169643 | 0.075 | 0.091071 | 0.321429 | 0.2375 | 0.2375 | 0.2375 | 0.2375 | 0.157143 | 0 | 0.013828 | 0.162195 | 1,640 | 70 | 73 | 23.428571 | 0.80131 | 0 | 0 | 0.152174 | 0 | 0 | 0.028659 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.217391 | false | 0 | 0.086957 | 0.043478 | 0.369565 | 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 |
6b6cca3268856e4c8b28bfe29db663bd44253368 | 1,835 | py | Python | PythonBaseDemo/CommonModules/10.8/Counter_test2.py | CypHelp/TestNewWorldDemo | ee6f73df05756f191c1c56250fa290461fdd1b9a | [
"Apache-2.0"
] | null | null | null | PythonBaseDemo/CommonModules/10.8/Counter_test2.py | CypHelp/TestNewWorldDemo | ee6f73df05756f191c1c56250fa290461fdd1b9a | [
"Apache-2.0"
] | null | null | null | PythonBaseDemo/CommonModules/10.8/Counter_test2.py | CypHelp/TestNewWorldDemo | ee6f73df05756f191c1c56250fa290461fdd1b9a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#########################################################################
# 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> #
# author yeeku.H.lee kongyeeku@163.com #
# #
# version 1.0 ... | 39.891304 | 73 | 0.354768 | 172 | 1,835 | 3.767442 | 0.517442 | 0.009259 | 0.027778 | 0.037037 | 0.040123 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038936 | 0.426158 | 1,835 | 45 | 74 | 40.777778 | 0.576448 | 0.638692 | 0 | 0.105263 | 0 | 0 | 0.113684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.421053 | 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 |
6b792350d3b2c31d012cadd673b275d9b0a97a57 | 5,455 | py | Python | lightkurve/correctors/corrector.py | burke86/lightkurve | fda3e92544ccc3c6b38d003b2980a232fbcbbd0b | [
"MIT"
] | null | null | null | lightkurve/correctors/corrector.py | burke86/lightkurve | fda3e92544ccc3c6b38d003b2980a232fbcbbd0b | [
"MIT"
] | null | null | null | lightkurve/correctors/corrector.py | burke86/lightkurve | fda3e92544ccc3c6b38d003b2980a232fbcbbd0b | [
"MIT"
] | null | null | null | """Implements the abstract `Corrector` base class.
"""
from abc import ABC, abstractmethod
import matplotlib
import numpy as np
from .. import LightCurve
from .metrics import overfit_metric_lombscargle, underfit_metric_neighbors
class Corrector(ABC):
"""Abstract base class documenting the required structure of ... | 36.366667 | 96 | 0.652246 | 656 | 5,455 | 5.285061 | 0.29878 | 0.063455 | 0.047592 | 0.025382 | 0.26882 | 0.201904 | 0.160369 | 0.084223 | 0.061148 | 0.028267 | 0 | 0.002011 | 0.270761 | 5,455 | 149 | 97 | 36.610738 | 0.869532 | 0.534555 | 0 | 0.12963 | 0 | 0 | 0.074718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0.018519 | 0.092593 | 0 | 0.407407 | 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 |
6b79dbf9698fdd15d7fc1090efe01f946a98900b | 338 | py | Python | Financely/basic_app/get_stock_info.py | Frostday/Financely | 23226aca0ad21971cb61d13509e16651b304d207 | [
"MIT"
] | 8 | 2021-05-28T16:09:36.000Z | 2022-02-27T23:12:48.000Z | Financely/basic_app/get_stock_info.py | Frostday/Financely | 23226aca0ad21971cb61d13509e16651b304d207 | [
"MIT"
] | null | null | null | Financely/basic_app/get_stock_info.py | Frostday/Financely | 23226aca0ad21971cb61d13509e16651b304d207 | [
"MIT"
] | 8 | 2021-05-28T16:01:48.000Z | 2022-02-27T23:12:50.000Z | import urllib.request, json
def getStockInfo(var):
var = var.replace(' ','')
url = "https://finance.yahoo.com/_finance_doubledown/api/resource/searchassist;searchTerm={}?device=console&returnMeta=true".format(var)
response = urllib.request.urlopen(url)
data = json.loads(response.read())
return data... | 37.555556 | 140 | 0.710059 | 41 | 338 | 5.804878 | 0.731707 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121302 | 338 | 8 | 141 | 42.25 | 0.801347 | 0 | 0 | 0 | 0 | 0.142857 | 0.372781 | 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 |
6b7e1f8bd552ded2d2a63b5f4a2f4713535b2535 | 4,878 | py | Python | pyjdbc/java.py | manifoldai/pyjdbc | bf5ad84af8d413b7e2144d6cc08234597a689b1d | [
"Apache-2.0"
] | 2 | 2021-02-10T09:03:33.000Z | 2021-09-26T06:33:38.000Z | pyjdbc/java.py | manifoldai/pyjdbc | bf5ad84af8d413b7e2144d6cc08234597a689b1d | [
"Apache-2.0"
] | 6 | 2021-01-06T19:37:37.000Z | 2021-07-21T13:40:07.000Z | pyjdbc/java.py | manifoldai/pyjdbc | bf5ad84af8d413b7e2144d6cc08234597a689b1d | [
"Apache-2.0"
] | 1 | 2021-07-21T14:51:09.000Z | 2021-07-21T14:51:09.000Z | import jpype
from jpype import JClass
# Enable Java imports
from jpype import JArray
def get_url(path: str):
"""
Formats a given path into a url object.
Converts `/home/myfile.txt` into `file:/home/myfile.txt`
:param path:
:return:
"""
Paths = JClass('java.nio.file.Paths')
url = Pat... | 28.360465 | 113 | 0.610086 | 566 | 4,878 | 5.190813 | 0.318021 | 0.051055 | 0.010892 | 0.016338 | 0.117086 | 0.096664 | 0.05582 | 0.05582 | 0.030633 | 0 | 0 | 0.002889 | 0.290283 | 4,878 | 172 | 114 | 28.360465 | 0.845754 | 0.219967 | 0 | 0.232323 | 0 | 0 | 0.12905 | 0.01648 | 0 | 0 | 0 | 0.005814 | 0 | 1 | 0.20202 | false | 0 | 0.030303 | 0.080808 | 0.434343 | 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 |
6b825ab36a0275db064eba205029616f1da5aba9 | 3,049 | py | Python | nidhogg/__init__.py | ifxit/nidho | 7d49bb7d879d0f3d444df50f2c18c2cdf883216c | [
"MIT"
] | 11 | 2016-06-09T12:07:14.000Z | 2018-01-18T08:01:08.000Z | nidhogg/__init__.py | ifxit/nidho | 7d49bb7d879d0f3d444df50f2c18c2cdf883216c | [
"MIT"
] | 4 | 2016-07-06T11:06:34.000Z | 2020-01-02T10:11:48.000Z | nidhogg/__init__.py | ifxit/nidhogg | 7d49bb7d879d0f3d444df50f2c18c2cdf883216c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .sevenmode import SevenMode
from .clustermode import ClusterMode
from .core import NidhoggException
__all__ = ["get_netapp", "get_best_volume_by_size", "get_best_volume_by_quota"]
def get_netapp(url, username, password, verify=False):
"""Retu... | 35.453488 | 92 | 0.697606 | 410 | 3,049 | 5.073171 | 0.268293 | 0.048077 | 0.025 | 0.028846 | 0.4625 | 0.380769 | 0.346154 | 0.323077 | 0.323077 | 0.323077 | 0 | 0.003731 | 0.208921 | 3,049 | 85 | 93 | 35.870588 | 0.858624 | 0.58183 | 0 | 0.333333 | 0 | 0 | 0.115903 | 0.042228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.166667 | 0 | 0.458333 | 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 |
6b867950af05f51748dfdcc3842d9b9e922d38d2 | 2,375 | py | Python | cohesivenet/macros/admin.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | cohesivenet/macros/admin.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | cohesivenet/macros/admin.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | import time
from typing import Dict, List
from cohesivenet import VNS3Client, data_types
from cohesivenet.macros import api_operations
def roll_api_password(
new_password, clients: List[VNS3Client]
) -> data_types.BulkOperationResult:
"""roll_api_password
Update all passwords for clients
Arguments:... | 27.616279 | 86 | 0.679158 | 268 | 2,375 | 5.746269 | 0.276119 | 0.072727 | 0.054545 | 0.042857 | 0.275974 | 0.240909 | 0.220779 | 0.220779 | 0.171429 | 0.171429 | 0 | 0.009503 | 0.246737 | 2,375 | 85 | 87 | 27.941176 | 0.851314 | 0.301474 | 0 | 0.184211 | 0 | 0 | 0.097106 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0.210526 | 0.105263 | 0 | 0.421053 | 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 |
6b8d2ec0a62ec328ccc711c5e34c8d142a88aae4 | 1,467 | py | Python | aegea/top.py | lvreynoso/aegea | 102f438d120d7e5cfd1eea538dde0bff4220548a | [
"Apache-2.0"
] | 57 | 2017-02-16T21:42:54.000Z | 2022-02-19T01:18:57.000Z | aegea/top.py | lvreynoso/aegea | 102f438d120d7e5cfd1eea538dde0bff4220548a | [
"Apache-2.0"
] | 50 | 2017-02-18T09:52:20.000Z | 2022-01-24T19:26:35.000Z | aegea/top.py | lvreynoso/aegea | 102f438d120d7e5cfd1eea538dde0bff4220548a | [
"Apache-2.0"
] | 20 | 2017-02-22T02:00:25.000Z | 2021-07-08T19:38:37.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
import os, sys
from datetime import datetime
from typing import List
import boto3
import botocore.exceptions
from . import register_parser
from .util import ThreadPoolExecutor
from .util.printing import format_table, page_output
def ... | 43.147059 | 104 | 0.732106 | 194 | 1,467 | 5.314433 | 0.407216 | 0.033948 | 0.067895 | 0.106693 | 0.204656 | 0.083414 | 0.083414 | 0.083414 | 0.083414 | 0.083414 | 0 | 0.007974 | 0.145194 | 1,467 | 33 | 105 | 44.454545 | 0.814195 | 0.019768 | 0 | 0 | 0 | 0 | 0.091289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.444444 | 0.074074 | 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 |
6b90281e5a6cdbce7e69a74ced9396efc7b1036c | 2,636 | py | Python | tests/test_chi_water.py | noahkconley/city-scrapers | 37420ce3a9295c2aac68c0fb4a957ad41394a801 | [
"MIT"
] | null | null | null | tests/test_chi_water.py | noahkconley/city-scrapers | 37420ce3a9295c2aac68c0fb4a957ad41394a801 | [
"MIT"
] | null | null | null | tests/test_chi_water.py | noahkconley/city-scrapers | 37420ce3a9295c2aac68c0fb4a957ad41394a801 | [
"MIT"
] | null | null | null | from datetime import date, time
import pytest
import json
from city_scrapers.spiders.chi_water import Chi_waterSpider
test_response = []
with open('tests/files/chi_water_test.json') as f:
test_response.extend(json.loads(f.read()))
spider = Chi_waterSpider()
# This line throws error
parsed_items = [item for item ... | 28.042553 | 136 | 0.66085 | 334 | 2,636 | 5.053892 | 0.389222 | 0.097749 | 0.09064 | 0.074645 | 0.339455 | 0.280213 | 0.238744 | 0.238744 | 0.060427 | 0 | 0 | 0.067828 | 0.172231 | 2,636 | 93 | 137 | 28.344086 | 0.705775 | 0.024279 | 0 | 0.107692 | 0 | 0.061538 | 0.334643 | 0.030636 | 0 | 0 | 0 | 0 | 0.215385 | 1 | 0.215385 | false | 0.015385 | 0.061538 | 0 | 0.276923 | 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 |
6b9b5cf21aada355d2b4aaf0ac39868d1535a30d | 7,033 | py | Python | inverter.py | akarasman/yolo-heatmaps | 3d1f114416d2bbc4eda4f50282c704fe89179416 | [
"MIT"
] | null | null | null | inverter.py | akarasman/yolo-heatmaps | 3d1f114416d2bbc4eda4f50282c704fe89179416 | [
"MIT"
] | null | null | null | inverter.py | akarasman/yolo-heatmaps | 3d1f114416d2bbc4eda4f50282c704fe89179416 | [
"MIT"
] | null | null | null | # trunk-ignore(black-py)
import torch
from torch.nn import Conv1d, Conv2d, Conv3d, MaxPool1d, MaxPool2d, MaxPool3d, Linear, Upsample
from lrp.utils import Flatten
from inverter_util import ( upsample_inverse, max_pool_nd_inverse,
max_pool_nd_fwd_hook, conv_nd_fwd_hook, linear_fwd_hook,
... | 34.140777 | 112 | 0.585668 | 768 | 7,033 | 5.196615 | 0.221354 | 0.070158 | 0.045101 | 0.051115 | 0.202456 | 0.145578 | 0.080431 | 0.029567 | 0.029567 | 0.029567 | 0 | 0.006623 | 0.334423 | 7,033 | 206 | 113 | 34.140777 | 0.845973 | 0.215413 | 0 | 0.057692 | 0 | 0 | 0.068559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.173077 | 0.038462 | 0.009615 | 0.25 | 0.019231 | 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 |
6ba246c7b1d599530def3880e82c53c033f0d1a0 | 2,573 | py | Python | generate_maze.py | temibabs/MPHRL | 6fa458fe269f2040eee8a99ecbd0ccd5cff20779 | [
"MIT"
] | 8 | 2019-07-16T21:36:50.000Z | 2021-05-06T20:27:01.000Z | generate_maze.py | temibabs/MPHRL | 6fa458fe269f2040eee8a99ecbd0ccd5cff20779 | [
"MIT"
] | 19 | 2019-03-11T06:16:57.000Z | 2022-02-10T00:08:51.000Z | generate_maze.py | temibabs/MPHRL | 6fa458fe269f2040eee8a99ecbd0ccd5cff20779 | [
"MIT"
] | 3 | 2019-03-07T09:28:32.000Z | 2020-06-01T04:01:05.000Z | import os
import numpy as np
import tensorflow as tf
from config import c, n
import utils
def calc_lookat(corridors):
l, t, r, b = zip(* [i['pos'] for i in corridors])
min_l = min(l)
max_r = max(r)
min_b = min(b)
max_t = max(t)
return [np.mean([min_l, max_r]), np.mean([min_b, max_t]), 0]
d... | 30.270588 | 85 | 0.534396 | 376 | 2,573 | 3.537234 | 0.297872 | 0.026316 | 0.018045 | 0.024812 | 0.154887 | 0.129323 | 0.105263 | 0 | 0 | 0 | 0 | 0.036374 | 0.326856 | 2,573 | 84 | 86 | 30.630952 | 0.731524 | 0.013603 | 0 | 0.088235 | 0 | 0 | 0.026046 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.220588 | 0.029412 | 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 |
6ba3e6523720db5ff4ed3d93b53137ab59f0e8e5 | 2,144 | py | Python | discordbot.py | umeharaumeo/discordpy-startup | 568fb97d02bdc7a2f0c11bf59f0699cc3269c51e | [
"MIT"
] | null | null | null | discordbot.py | umeharaumeo/discordpy-startup | 568fb97d02bdc7a2f0c11bf59f0699cc3269c51e | [
"MIT"
] | null | null | null | discordbot.py | umeharaumeo/discordpy-startup | 568fb97d02bdc7a2f0c11bf59f0699cc3269c51e | [
"MIT"
] | null | null | null | import discord
import os
token = os.environ['TOKEN_ON_TOKEN']
# 接続に必要なオブジェクトを生成
client = discord.Client()
# メッセージ受信時に動作する処理
@client.event
async def on_message(message):
# メッセージ送信者がBotだった場合は無視する
if message.author.bot:
return
if message.content == 'ID':
embed = discord.Embed(title='おのすにゃん'... | 29.777778 | 77 | 0.616138 | 252 | 2,144 | 5.25 | 0.321429 | 0.102041 | 0.169312 | 0.243386 | 0.309902 | 0.269085 | 0.208617 | 0.146636 | 0.089191 | 0.089191 | 0 | 0.023795 | 0.235541 | 2,144 | 71 | 78 | 30.197183 | 0.776693 | 0.035914 | 0 | 0.088889 | 0 | 0 | 0.14452 | 0 | 0 | 0 | 0.007759 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.066667 | 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 |
6baa07edfb46618589038dd72647cebdb49d4a79 | 258 | py | Python | tests/test_tutorial/importers/test_tutorial001.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 1 | 2020-01-28T05:10:14.000Z | 2020-01-28T05:10:14.000Z | tests/test_tutorial/importers/test_tutorial001.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 38 | 2019-11-12T10:49:25.000Z | 2021-04-07T12:10:24.000Z | tests/test_tutorial/importers/test_tutorial001.py | OpenPecha/openpecha | 73359686e2b3a703c6018aecbffe7adb4f485c88 | [
"Apache-2.0"
] | 6 | 2021-08-30T04:02:15.000Z | 2021-12-27T03:39:41.000Z | from pathlib import Path
from docs_src.importers.hfml.tutorial001 import result
def test_hfml_base():
output_fn = Path("tests") / "formatters" / "hfml" / "data" / "kangyur_base.txt"
expected = output_fn.read_text()
assert result == expected
| 21.5 | 83 | 0.709302 | 34 | 258 | 5.176471 | 0.705882 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.174419 | 258 | 11 | 84 | 23.454545 | 0.812207 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6bb93d704e6b1a6395af8ea1eb5be2e97589b7fa | 1,659 | py | Python | skyfield/projections.py | dieli/python-skyfield | e81db985cefcc63cf47f9d8f324ad5cae5374a5c | [
"MIT"
] | null | null | null | skyfield/projections.py | dieli/python-skyfield | e81db985cefcc63cf47f9d8f324ad5cae5374a5c | [
"MIT"
] | null | null | null | skyfield/projections.py | dieli/python-skyfield | e81db985cefcc63cf47f9d8f324ad5cae5374a5c | [
"MIT"
] | null | null | null |
from numpy import sqrt
from .functions import length_of
def _derive_stereographic():
"""Compute the formulae to cut-and-paste into the routine below."""
from sympy import symbols, atan2, acos, rot_axis1, rot_axis3, Matrix
x_c, y_c, z_c, x, y, z = symbols('x_c y_c z_c x y z')
# The angles we'll need t... | 36.065217 | 214 | 0.599759 | 328 | 1,659 | 2.835366 | 0.277439 | 0.045161 | 0.035484 | 0.060215 | 0.233333 | 0.224731 | 0.21828 | 0.173118 | 0.148387 | 0.129032 | 0 | 0.033938 | 0.236287 | 1,659 | 45 | 215 | 36.866667 | 0.700079 | 0.264617 | 0 | 0.076923 | 0 | 0 | 0.014143 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.346154 | 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 |
6bc157b1ac69fb7b7829530fc691151c88f743c3 | 4,607 | py | Python | odoo-13.0/addons/website_slides_survey/models/slide_slide.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_slides_survey/models/slide_slide.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_slides_survey/models/slide_slide.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class SlidePartnerRelation(models.Model):
_inherit = 'slide.slide.partner'
user_input_ids = fields.One2many('survey.user_input', 'slide_partner_id', 'Certification attempts... | 45.166667 | 156 | 0.624267 | 536 | 4,607 | 5.087687 | 0.257463 | 0.069307 | 0.037404 | 0.03667 | 0.224056 | 0.127979 | 0.127979 | 0.10451 | 0.10451 | 0.079208 | 0 | 0.001819 | 0.283916 | 4,607 | 101 | 157 | 45.613861 | 0.824795 | 0.123074 | 0 | 0.157895 | 0 | 0 | 0.193116 | 0.027335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.118421 | 0.013158 | 0 | 0.276316 | 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 |
6bc8b1eac905f5ec4bd05e55f21a7f2b7ddf1e4c | 850 | py | Python | stib_administraciones/personales/models.py | nfheredia/stib-administraciones | 05dae746d2fecf75c1d50c4ee679c02ddbf7208a | [
"BSD-3-Clause"
] | null | null | null | stib_administraciones/personales/models.py | nfheredia/stib-administraciones | 05dae746d2fecf75c1d50c4ee679c02ddbf7208a | [
"BSD-3-Clause"
] | null | null | null | stib_administraciones/personales/models.py | nfheredia/stib-administraciones | 05dae746d2fecf75c1d50c4ee679c02ddbf7208a | [
"BSD-3-Clause"
] | 1 | 2020-10-28T15:46:48.000Z | 2020-10-28T15:46:48.000Z | from django.db import models
from ..core.models import TimeStampedModel
class Personales(TimeStampedModel):
"""
Modelo para almacenar los diferentes
tipos de personales que trabajan en un edificio.
Ej: Portero, Limpieza, Seguridad
"""
nombre = models.CharField(blank=False,
... | 32.692308 | 75 | 0.583529 | 83 | 850 | 5.843373 | 0.626506 | 0.090722 | 0.070103 | 0.107216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.34 | 850 | 25 | 76 | 34 | 0.85918 | 0.16 | 0 | 0 | 0 | 0 | 0.146413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6bc9edbb8ccee97c5717038b3bf868ea29b5d920 | 938 | py | Python | app/main/hs_api_log_forms.py | RRRoger/MyWebserver-flask | 0a49d4f7b592b7e27c55f343d58c9dd08ceda3aa | [
"MIT"
] | 20 | 2020-08-18T08:46:16.000Z | 2022-02-09T09:56:36.000Z | app/main/hs_api_log_forms.py | RRRoger/MyWebserver-flask | 0a49d4f7b592b7e27c55f343d58c9dd08ceda3aa | [
"MIT"
] | null | null | null | app/main/hs_api_log_forms.py | RRRoger/MyWebserver-flask | 0a49d4f7b592b7e27c55f343d58c9dd08ceda3aa | [
"MIT"
] | 8 | 2021-04-08T05:44:51.000Z | 2022-02-09T06:44:01.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, PasswordField, IntegerField, TextAreaField, BooleanField
from wtforms.validators import DataRequired, EqualTo, Length
class HsApiLogSearch(FlaskForm):
methods = [
('url', 'URL'),
('create_uid', 'Create User'... | 29.3125 | 115 | 0.696162 | 90 | 938 | 7.1 | 0.544444 | 0.106416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190832 | 938 | 31 | 116 | 30.258065 | 0.841897 | 0 | 0 | 0 | 0 | 0 | 0.085288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.125 | 0 | 0.791667 | 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 |
6bcc7989a592630a08d170e6060f736447063ab6 | 2,625 | py | Python | validate_infrastruture.py | dell-ai-engineering/BigDL4CDSW | 4f01ae6d64202770304c4a90475332b6559da846 | [
"Apache-2.0"
] | 2 | 2019-02-05T17:17:32.000Z | 2021-09-24T02:11:28.000Z | validate_infrastruture.py | dell-ai-engineering/BigDL4CDSW | 4f01ae6d64202770304c4a90475332b6559da846 | [
"Apache-2.0"
] | null | null | null | validate_infrastruture.py | dell-ai-engineering/BigDL4CDSW | 4f01ae6d64202770304c4a90475332b6559da846 | [
"Apache-2.0"
] | null | null | null | import os
import os.path
from IPython.display import display, HTML
def html_log(message,tag="H1", color="black",center=False):
if center:
display(HTML('<{tag}> <center> <font color="{color}"> {message}</font></center></{tag}>'.format(tag=tag, message=message,color=color)))
else:
display(HTML('<... | 35.472973 | 140 | 0.640381 | 372 | 2,625 | 4.416667 | 0.276882 | 0.066951 | 0.036519 | 0.051735 | 0.352404 | 0.195983 | 0.141205 | 0.105904 | 0 | 0 | 0 | 0.008772 | 0.174857 | 2,625 | 73 | 141 | 35.958904 | 0.749769 | 0.130667 | 0 | 0.240741 | 0 | 0.018519 | 0.352567 | 0.025897 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.037037 | 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 |
6bdb825bf4818176c5b717c419edc52f0d40e6f4 | 1,688 | py | Python | getDailyBhav.py | krthkj/pythonDumps | 92bc29d15ae5a677fbffc89dc0c6053d62a30e60 | [
"MIT"
] | null | null | null | getDailyBhav.py | krthkj/pythonDumps | 92bc29d15ae5a677fbffc89dc0c6053d62a30e60 | [
"MIT"
] | null | null | null | getDailyBhav.py | krthkj/pythonDumps | 92bc29d15ae5a677fbffc89dc0c6053d62a30e60 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import zipfile # read, test zipfile
import os, errno # delete file and handle error
import urllib2 # download file
import datetime # date and time object
# deletes the file
def silentRemove(filename):
try:
os.remove(filename)
print filename + " removed"
except OSError as e:
if e.errno != err... | 23.774648 | 88 | 0.729858 | 219 | 1,688 | 5.616438 | 0.461187 | 0.019512 | 0.017073 | 0.021138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004892 | 0.152251 | 1,688 | 70 | 89 | 24.114286 | 0.854647 | 0.140403 | 0 | 0.203704 | 0 | 0 | 0.086926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | 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 |
6bdbd90c39a8a507cb6c315bb6281e4c2f8213c7 | 473 | py | Python | aquascope/data_processing/export.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | null | null | null | aquascope/data_processing/export.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 3 | 2019-04-03T13:22:47.000Z | 2019-12-02T15:49:31.000Z | aquascope/data_processing/export.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 2 | 2019-05-15T13:30:42.000Z | 2020-06-12T02:42:49.000Z | import os
import tempfile
from aquascope.webserver.data_access.conversions import list_of_item_dicts_to_tsv
from aquascope.webserver.data_access.storage.export import upload_export_file
def export_items(items, storage_client):
with tempfile.TemporaryDirectory() as tmpdirname:
local_filepath = os.path.joi... | 36.384615 | 81 | 0.811839 | 64 | 473 | 5.65625 | 0.5 | 0.107735 | 0.121547 | 0.143646 | 0.287293 | 0.110497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124736 | 473 | 12 | 82 | 39.416667 | 0.874396 | 0 | 0 | 0 | 0 | 0 | 0.02537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6be8c5e52822b40ec6333f3929f364b58823e70e | 1,924 | py | Python | opendc-web/opendc-web-api/opendc/api/traces.py | Timovanmilligen/opendc | eb39c3094e51194e7070261b761e15543fdd8699 | [
"MIT"
] | 32 | 2017-03-16T10:55:51.000Z | 2022-03-01T09:03:22.000Z | opendc-web/opendc-web-api/opendc/api/traces.py | Timovanmilligen/opendc | eb39c3094e51194e7070261b761e15543fdd8699 | [
"MIT"
] | 58 | 2021-11-14T22:57:55.000Z | 2021-11-27T22:22:37.000Z | opendc-web/opendc-web-api/opendc/api/traces.py | CloudScheduling/opendc | 9afb7a40f478780e83d311a37fd7a32d293e3941 | [
"MIT"
] | 17 | 2017-03-17T17:22:57.000Z | 2022-03-24T20:05:18.000Z | # Copyright (c) 2021 AtLarge Research
#
# 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 Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publis... | 37 | 81 | 0.718815 | 264 | 1,924 | 5.19697 | 0.5 | 0.06414 | 0.01895 | 0.040816 | 0.055394 | 0.055394 | 0.055394 | 0 | 0 | 0 | 0 | 0.002623 | 0.20738 | 1,924 | 51 | 82 | 37.72549 | 0.897049 | 0.634096 | 0 | 0.25 | 0 | 0 | 0.012403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4072981a97c282625e4618dede9983114832cfb | 575 | py | Python | migrations/versions/640_add_framework_agreement_version_to_.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 25 | 2015-01-14T10:45:13.000Z | 2021-05-26T17:21:41.000Z | migrations/versions/640_add_framework_agreement_version_to_.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 641 | 2015-01-15T11:10:50.000Z | 2021-06-15T22:18:42.000Z | migrations/versions/640_add_framework_agreement_version_to_.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 22 | 2015-06-13T15:37:45.000Z | 2021-08-19T23:40:49.000Z | """add framework_agreement_version to Framework
Revision ID: 640
Revises: 630
Create Date: 2016-06-16 11:37:21.802880
"""
# revision identifiers, used by Alembic.
revision = '640'
down_revision = '630'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('frameworks', sa.Column('framewo... | 22.115385 | 101 | 0.721739 | 77 | 575 | 5.246753 | 0.636364 | 0.178218 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071869 | 0.153043 | 575 | 25 | 102 | 23 | 0.7577 | 0.269565 | 0 | 0 | 0 | 0 | 0.429612 | 0.196602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
d40b7e397a5a0488f4168d4a181ba2ef434aa51a | 22,971 | py | Python | 6.NAS.py | yassine-afrouni/network-automation | aba69220a61db0da75fd736e51594f756a123a5c | [
"MIT"
] | null | null | null | 6.NAS.py | yassine-afrouni/network-automation | aba69220a61db0da75fd736e51594f756a123a5c | [
"MIT"
] | null | null | null | 6.NAS.py | yassine-afrouni/network-automation | aba69220a61db0da75fd736e51594f756a123a5c | [
"MIT"
] | null | null | null | # NAS.py
# Network automation sys
#
# Created by yassen on 5/6/20.
# Copyright © 2021 yassen & nouhaila. All rights reserved.
from netmiko import ConnectHandler
from netmiko.ssh_exception import NetMikoTimeoutException, AuthenticationException
from paramiko.ssh_exception import SSHException
import getpass
from ti... | 47.071721 | 135 | 0.472073 | 2,172 | 22,971 | 4.810773 | 0.150092 | 0.02584 | 0.033592 | 0.018949 | 0.42339 | 0.380036 | 0.305484 | 0.276869 | 0.247966 | 0.19399 | 0 | 0.009344 | 0.315136 | 22,971 | 487 | 136 | 47.168378 | 0.65478 | 0 | 0 | 0.344473 | 0 | 0 | 0.180294 | 0.011043 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015424 | 0.030848 | null | null | 0.138817 | 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 |
d431856193238f6b5f5f264ba4c554b6fd10901a | 6,625 | py | Python | src/programy/clients/restful/asyncio/microsoft/client.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/clients/restful/asyncio/microsoft/client.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/clients/restful/asyncio/microsoft/client.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 4 | 2019-04-01T15:42:23.000Z | 2020-11-05T08:14:27.000Z | """
Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.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 Software without restriction, including without limitation
the rights to use, copy, m... | 40.644172 | 120 | 0.693283 | 719 | 6,625 | 6.15299 | 0.33936 | 0.047468 | 0.027125 | 0.036618 | 0.216998 | 0.178797 | 0.143083 | 0.143083 | 0.11528 | 0.095841 | 0 | 0.004554 | 0.237736 | 6,625 | 162 | 121 | 40.895062 | 0.871485 | 0.164679 | 0 | 0.148148 | 0 | 0 | 0.047421 | 0.003982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.083333 | 0.037037 | 0.296296 | 0.037037 | 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 |
d43d0f4f6fdc85998daf33241cd4b8559b2cd62a | 14,831 | py | Python | meteocat_api_client/xarxes/xema/mesurades.py | herrera-lu/meteocat-api-client | c5ff627c954123786543a0712c82181f76e87d7c | [
"MIT"
] | null | null | null | meteocat_api_client/xarxes/xema/mesurades.py | herrera-lu/meteocat-api-client | c5ff627c954123786543a0712c82181f76e87d7c | [
"MIT"
] | null | null | null | meteocat_api_client/xarxes/xema/mesurades.py | herrera-lu/meteocat-api-client | c5ff627c954123786543a0712c82181f76e87d7c | [
"MIT"
] | 1 | 2022-03-16T13:28:32.000Z | 2022-03-16T13:28:32.000Z | from typing import List
from ...excepcions import MeteocatLocalError
from ...helpers.utils import formateja_valors_data, neteja_diccionari, genera_info
class Mesurades:
def mesurades_x_1_variable_d_totes_estacions_o_1_estacio(
self, codi_variable: int, any: int, mes: int, dia: int, codi_estacio: str = Non... | 47.08254 | 190 | 0.334435 | 1,014 | 14,831 | 4.776134 | 0.197239 | 0.040884 | 0.028908 | 0.027462 | 0.653314 | 0.630601 | 0.559364 | 0.525501 | 0.508776 | 0.437332 | 0 | 0.044576 | 0.588564 | 14,831 | 314 | 191 | 47.232484 | 0.748771 | 0.680332 | 0 | 0.370968 | 0 | 0 | 0.138946 | 0.118412 | 0 | 0 | 0 | 0.006369 | 0 | 1 | 0.112903 | false | 0 | 0.048387 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d440d0f4a8d93884176491fe304b6bb2aee81213 | 744 | py | Python | src/lib/approximation/dense.py | evolutics/sparse-approximation | fda419b2ca0f6563a4668bae23ca0b94936ff8e8 | [
"MIT"
] | null | null | null | src/lib/approximation/dense.py | evolutics/sparse-approximation | fda419b2ca0f6563a4668bae23ca0b94936ff8e8 | [
"MIT"
] | null | null | null | src/lib/approximation/dense.py | evolutics/sparse-approximation | fda419b2ca0f6563a4668bae23ca0b94936ff8e8 | [
"MIT"
] | null | null | null | """
Minimizes D(b, Ax) for x ∈ ℝ₊^N where aₙ, b ∈ ℝ₊^M and D is a divergence.
These occur as ingredients of algorithms for the sparse case.
"""
import cvxpy
import numpy
def euclidean(A, b):
return _solve_convex(A, b, lambda p, q: cvxpy.norm2(p - q))
def total_variation(A, b):
return _solve_convex(A, b, ... | 21.882353 | 85 | 0.643817 | 125 | 744 | 3.808 | 0.472 | 0.021008 | 0.07563 | 0.081933 | 0.121849 | 0.121849 | 0.121849 | 0.121849 | 0.121849 | 0.121849 | 0 | 0.013793 | 0.22043 | 744 | 33 | 86 | 22.545455 | 0.8 | 0.182796 | 0 | 0 | 0 | 0 | 0.076667 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d445023b93e7a45a9c60c9ebe3c21bfc9e56bb17 | 590 | py | Python | src/experiment.py | rainwangphy/cgate | e2e8b474d1a3fa8c0d2893688033e28edd2e1d8a | [
"MIT"
] | 15 | 2021-03-03T12:53:37.000Z | 2022-01-27T05:32:46.000Z | src/experiment.py | lit-leo/cgate | e2e8b474d1a3fa8c0d2893688033e28edd2e1d8a | [
"MIT"
] | null | null | null | src/experiment.py | lit-leo/cgate | e2e8b474d1a3fa8c0d2893688033e28edd2e1d8a | [
"MIT"
] | 4 | 2021-03-17T07:23:49.000Z | 2021-12-27T01:54:40.000Z | """Experiments infrastructure.
This module contains functions with preparations for an experiment.
"""
import os
from config import cfg
def init():
r"""
Checks, if results folder has already been used and prevents overwriting of the results.
Returns:
None
"""
old, new = cfg.RESULTS_ROOT... | 26.818182 | 116 | 0.661017 | 82 | 590 | 4.719512 | 0.621951 | 0.031008 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227119 | 590 | 21 | 117 | 28.095238 | 0.848684 | 0.344068 | 0 | 0 | 0 | 0 | 0.37535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d44d35cfda4685f696a103379d1328babd42ce91 | 19,394 | py | Python | python/mbox/lego/box/block_settings_ui.py | chowooseoung/mbox | 138c375686251723adb7ee9544c8e0a4cfffdceb | [
"MIT"
] | null | null | null | python/mbox/lego/box/block_settings_ui.py | chowooseoung/mbox | 138c375686251723adb7ee9544c8e0a4cfffdceb | [
"MIT"
] | 1 | 2021-06-25T04:19:01.000Z | 2021-06-25T04:19:01.000Z | python/mbox/lego/box/block_settings_ui.py | chowooseoung/mbox | 138c375686251723adb7ee9544c8e0a4cfffdceb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'block_settings_ui.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
########... | 48.485 | 519 | 0.734763 | 2,173 | 19,394 | 6.341003 | 0.100322 | 0.054866 | 0.056826 | 0.058785 | 0.451629 | 0.29545 | 0.181363 | 0.079178 | 0.045359 | 0.045359 | 0 | 0.032014 | 0.156028 | 19,394 | 399 | 520 | 48.606516 | 0.809812 | 0.021966 | 0 | 0.01083 | 1 | 0.00722 | 0.086239 | 0.019164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00722 | false | 0 | 0.01083 | 0 | 0.021661 | 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 |
d45258a9e0916abbdf3f0926f3103ffa31f82905 | 5,532 | py | Python | graphene_django_jwt/schema/mutations.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/mutations.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/mutations.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | from calendar import timegm
from django.contrib.auth import get_user_model
from django.contrib.auth.signals import user_logged_in, user_logged_out
from django.db import transaction
import graphene
from graphene.types.generic import GenericScalar
from graphene_django_jwt import signals
from graphene_django_jwt.blackl... | 35.012658 | 105 | 0.729212 | 614 | 5,532 | 6.355049 | 0.164495 | 0.129165 | 0.078934 | 0.086622 | 0.383906 | 0.29062 | 0.19144 | 0.154792 | 0.143772 | 0.116094 | 0 | 0 | 0.191251 | 5,532 | 157 | 106 | 35.235669 | 0.87215 | 0 | 0 | 0.307692 | 0 | 0 | 0.00235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059829 | false | 0.051282 | 0.111111 | 0 | 0.495727 | 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 |
d45339d6256130cf6e2e8e3895d65ad0a879ed00 | 5,765 | py | Python | python_scripts/calculate_training_set_size_vs_loss.py | GoldenholzLab/LPC-RCT | b14bc440ad3f8acfbf6f776ddd749475818af70d | [
"MIT"
] | null | null | null | python_scripts/calculate_training_set_size_vs_loss.py | GoldenholzLab/LPC-RCT | b14bc440ad3f8acfbf6f776ddd749475818af70d | [
"MIT"
] | null | null | null | python_scripts/calculate_training_set_size_vs_loss.py | GoldenholzLab/LPC-RCT | b14bc440ad3f8acfbf6f776ddd749475818af70d | [
"MIT"
] | null | null | null | from train_keras_model import build_single_perceptron
import matplotlib.pyplot as plt
import numpy as np
import json
import os
import time
os.environ['KMP_DUPLICATE_LIB_OK']='True'
def create_model_and_load_training_data(training_data_dir,
training_samples_file_name):
trai... | 37.193548 | 119 | 0.653079 | 639 | 5,765 | 5.264476 | 0.161189 | 0.164982 | 0.160523 | 0.187277 | 0.666171 | 0.624554 | 0.557669 | 0.51962 | 0.5 | 0.472057 | 0 | 0.008625 | 0.296097 | 5,765 | 154 | 120 | 37.435065 | 0.820355 | 0 | 0 | 0.285714 | 0 | 0 | 0.021166 | 0.01093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.053571 | 0 | 0.125 | 0.008929 | 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 |
d45343f85589351284f49473ae43a8e08481bcf8 | 1,522 | py | Python | thread_queue_tests/test_queue_not_empty_exception.py | timmartin19/thread-queue | 6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268 | [
"MIT"
] | null | null | null | thread_queue_tests/test_queue_not_empty_exception.py | timmartin19/thread-queue | 6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268 | [
"MIT"
] | null | null | null | thread_queue_tests/test_queue_not_empty_exception.py | timmartin19/thread-queue | 6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
from thread_queue import QueueNotEmptyException, ThreadTaskException
class TestQueueNotEmptyException(unittest.TestCase):
def test_all_unprocessed_... | 47.5625 | 100 | 0.737845 | 160 | 1,522 | 6.63125 | 0.20625 | 0.092366 | 0.092366 | 0.04901 | 0.639962 | 0.639962 | 0.617342 | 0.617342 | 0.617342 | 0.617342 | 0 | 0.002331 | 0.154402 | 1,522 | 31 | 101 | 49.096774 | 0.822067 | 0 | 0 | 0.48 | 0 | 0 | 0.096583 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.12 | false | 0 | 0.24 | 0 | 0.4 | 0.04 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.