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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b48b9a465a40ad938627cb3aff48b3fbd10b5d75 | 9,386 | py | Python | extensions/.stubs/clrclasses/Autodesk/AutoCAD/Windows/Data/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | 1 | 2020-03-25T03:27:24.000Z | 2020-03-25T03:27:24.000Z | extensions/.stubs/clrclasses/Autodesk/AutoCAD/Windows/Data/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | extensions/.stubs/clrclasses/Autodesk/AutoCAD/Windows/Data/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | import __clrclasses__.Autodesk.AutoCAD.Windows.Data.Render as Render
from __clrclasses__.Autodesk.AutoCAD.Windows.Data import AnimationEditor
from __clrclasses__.Autodesk.AutoCAD.Windows.Data import AttachmentPointCommand
from __clrclasses__.Autodesk.AutoCAD.Windows.Data import AutoCompleteList
from __clrclasses__.Auto... | 75.088 | 97 | 0.894204 | 993 | 9,386 | 7.952669 | 0.132931 | 0.282639 | 0.392554 | 0.502469 | 0.721033 | 0.716475 | 0.716475 | 0 | 0 | 0 | 0 | 0.00045 | 0.052845 | 9,386 | 124 | 98 | 75.693548 | 0.887852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c30c0c1445e9826855b84d6f759a165da02d08a0 | 11,545 | py | Python | tests/conftest.py | alxwdm/TichuAgent | d498d1050264d13c920018006e3dcc2a04bc61df | [
"MIT"
] | null | null | null | tests/conftest.py | alxwdm/TichuAgent | d498d1050264d13c920018006e3dcc2a04bc61df | [
"MIT"
] | null | null | null | tests/conftest.py | alxwdm/TichuAgent | d498d1050264d13c920018006e3dcc2a04bc61df | [
"MIT"
] | null | null | null | # pytest test cases configuration file
import pytest
from env.card import Card
from env.cards import Cards
from env.player import Player
# define pytest fixtures
# class Card test fixtures
# 2
@pytest.fixture(scope='session', autouse='True')
def Spd_2():
return Card(name='2', suit='Spade')
@pytest.fixture(sco... | 28.435961 | 104 | 0.682633 | 1,875 | 11,545 | 4.024 | 0.033067 | 0.161962 | 0.224254 | 0.311465 | 0.919284 | 0.913983 | 0.777601 | 0.749636 | 0.512392 | 0.412459 | 0 | 0.028252 | 0.12317 | 11,545 | 405 | 105 | 28.506173 | 0.71708 | 0.020702 | 0 | 0.335664 | 0 | 0 | 0.120656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.328671 | false | 0.003497 | 0.013986 | 0.328671 | 0.671329 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
c32ae4306fe6b2c78e7137055dc202966cb92401 | 571 | py | Python | captivity/tests/test_concat.py | maxsnijders/captivity | c3c2bde554f83e567c8e078db4e6bccda57eff8b | [
"MIT"
] | null | null | null | captivity/tests/test_concat.py | maxsnijders/captivity | c3c2bde554f83e567c8e078db4e6bccda57eff8b | [
"MIT"
] | null | null | null | captivity/tests/test_concat.py | maxsnijders/captivity | c3c2bde554f83e567c8e078db4e6bccda57eff8b | [
"MIT"
] | null | null | null | import pytest
def test_concat_with_duplicate_columns():
import captivity
import pandas as pd
with pytest.raises(captivity.CaptivityException):
pd.concat(
[pd.DataFrame({"a": [1], "b": [2]}), pd.DataFrame({"c": [0], "b": [3]}),],
axis=1,
)
def test_concat_mismatch... | 23.791667 | 86 | 0.555166 | 67 | 571 | 4.626866 | 0.358209 | 0.141935 | 0.083871 | 0.180645 | 0.793548 | 0.793548 | 0.793548 | 0.793548 | 0.793548 | 0.793548 | 0 | 0.023981 | 0.269702 | 571 | 23 | 87 | 24.826087 | 0.719424 | 0 | 0 | 0.588235 | 0 | 0 | 0.014011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | true | 0 | 0.294118 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
c3323793181baabb4518873c0a31ea7347587298 | 13,368 | py | Python | setup/categories/ae_setup.py | caotians1/OD-test-master | e272421294a3614bdcdb3a4e4b530f613dad1a1c | [
"MIT"
] | 3 | 2020-10-07T18:35:50.000Z | 2021-02-23T06:36:21.000Z | setup/categories/ae_setup.py | caotians1/OD-test-master | e272421294a3614bdcdb3a4e4b530f613dad1a1c | [
"MIT"
] | null | null | null | setup/categories/ae_setup.py | caotians1/OD-test-master | e272421294a3614bdcdb3a4e4b530f613dad1a1c | [
"MIT"
] | 3 | 2020-10-08T14:38:15.000Z | 2021-11-08T11:51:48.000Z | from __future__ import print_function
import os
from termcolor import colored
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
import models as Models
import global_vars as Global
from utils.iterative_trainer import IterativeTrainer, IterativeTrainerConfig
from ut... | 43.402597 | 141 | 0.626945 | 1,699 | 13,368 | 4.75927 | 0.135962 | 0.035617 | 0.019787 | 0.013851 | 0.921593 | 0.921593 | 0.921593 | 0.911576 | 0.898714 | 0.898714 | 0 | 0.010826 | 0.25374 | 13,368 | 307 | 142 | 43.543974 | 0.799719 | 0.085802 | 0 | 0.827273 | 0 | 0 | 0.068171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0 | 0.072727 | 0 | 0.109091 | 0.059091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c364f9f64e3a263734552f026ff7ab28a230f6e5 | 125 | py | Python | jarbas/core/context_processors.py | vbarceloscs/serenata-de-amor | 87e6c8932469478d177372ed7b6311cd66a71efe | [
"MIT"
] | 3,001 | 2016-08-08T17:43:36.000Z | 2018-02-09T19:13:35.000Z | jarbas/core/context_processors.py | vbarceloscs/serenata-de-amor | 87e6c8932469478d177372ed7b6311cd66a71efe | [
"MIT"
] | 259 | 2016-08-08T09:53:23.000Z | 2018-01-24T13:30:27.000Z | jarbas/core/context_processors.py | vbarceloscs/serenata-de-amor | 87e6c8932469478d177372ed7b6311cd66a71efe | [
"MIT"
] | 674 | 2016-08-08T22:04:04.000Z | 2018-02-05T15:30:15.000Z | from django.conf import settings
def google_analytics(request):
return {'google_analytics': settings.GOOGLE_ANALYTICS}
| 20.833333 | 58 | 0.8 | 15 | 125 | 6.466667 | 0.666667 | 0.463918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 125 | 5 | 59 | 25 | 0.881818 | 0 | 0 | 0 | 0 | 0 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
c37eb98768066defa62a097e3fabdddd9d4dd3b1 | 162,822 | py | Python | libcloud/compute/constants/ec2_region_details_complete.py | r2ronoha/libcloud | 1524a4c54d79284f1172b32e0d9598ec8b47eda1 | [
"Apache-2.0"
] | null | null | null | libcloud/compute/constants/ec2_region_details_complete.py | r2ronoha/libcloud | 1524a4c54d79284f1172b32e0d9598ec8b47eda1 | [
"Apache-2.0"
] | null | null | null | libcloud/compute/constants/ec2_region_details_complete.py | r2ronoha/libcloud | 1524a4c54d79284f1172b32e0d9598ec8b47eda1 | [
"Apache-2.0"
] | 1 | 2019-08-05T10:12:02.000Z | 2019-08-05T10:12:02.000Z | # File generated by contrib/scrape-ec2-sizes.py script - DO NOT EDIT manually
# 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... | 26.934988 | 77 | 0.372179 | 12,437 | 162,822 | 4.862507 | 0.019699 | 0.004365 | 0.003803 | 0.005953 | 0.976569 | 0.960926 | 0.954874 | 0.954411 | 0.954411 | 0.953601 | 0 | 0.135892 | 0.476956 | 162,822 | 6,044 | 78 | 26.939444 | 0.574217 | 0.005085 | 0 | 0.978766 | 1 | 0 | 0.407438 | 0.004285 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6f589cf6d6ba464e0009c3d2f0808580c6eb2cb5 | 31,570 | py | Python | client/model/types_conservation_status_taxa.py | surroundaustralia/ndesgateway-testclient | fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T02:32:20.000Z | 2022-03-08T02:32:20.000Z | client/model/types_conservation_status_taxa.py | surroundaustralia/ndesgateway-testclient | fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2 | [
"BSD-3-Clause"
] | 2 | 2022-03-16T06:40:48.000Z | 2022-03-17T00:08:05.000Z | client/model/types_conservation_status_taxa.py | surroundaustralia/ndesgateway-testclient | fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2 | [
"BSD-3-Clause"
] | 1 | 2022-03-09T23:10:39.000Z | 2022-03-09T23:10:39.000Z | # from https://linked.data.gov.au/dataset/bdr/conservation-status-taxa-wa
# in the sop_recipe_abis_model datagraphs
CONSERVATION_STATUS_TAXA = [
"https://test-idafd.biodiversity.org.au/name/afd/70162908",
"https://test-idafd.biodiversity.org.au/name/afd/70162916",
"https://test-idafd.biodiversity.org.au/nam... | 63.777778 | 73 | 0.719164 | 4,441 | 31,570 | 5.111236 | 0.11619 | 0.194678 | 0.302833 | 0.562404 | 0.821975 | 0.821975 | 0.821975 | 0.821975 | 0 | 0 | 0 | 0.134964 | 0.078112 | 31,570 | 495 | 74 | 63.777778 | 0.644963 | 0.003516 | 0 | 0 | 0 | 0 | 0.874082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6f66d39509b2371343f234d5244ff58766540af6 | 2,112 | py | Python | tests/test_app.py | postadress/robotframework-webservice | 2fc112b3b4bd7493c6c8cb1e00655b24e20bd1e5 | [
"Apache-2.0"
] | 5 | 2021-07-04T13:37:02.000Z | 2021-09-22T15:56:57.000Z | tests/test_app.py | postadress/robotframework-webservice | 2fc112b3b4bd7493c6c8cb1e00655b24e20bd1e5 | [
"Apache-2.0"
] | null | null | null | tests/test_app.py | postadress/robotframework-webservice | 2fc112b3b4bd7493c6c8cb1e00655b24e20bd1e5 | [
"Apache-2.0"
] | 1 | 2021-09-07T07:37:30.000Z | 2021-09-07T07:37:30.000Z | from fastapi.testclient import TestClient
import unittest
from RobotFrameworkService.main import app
class EndpointTesttest_s(unittest.TestCase):
def test_is_service_available(self):
with TestClient(app) as client:
response = client.get("/status")
self.assertEqual(200, response.status... | 41.411765 | 130 | 0.724432 | 241 | 2,112 | 6.112033 | 0.190871 | 0.0611 | 0.14053 | 0.114053 | 0.819416 | 0.819416 | 0.819416 | 0.813306 | 0.813306 | 0.715547 | 0 | 0.01397 | 0.186553 | 2,112 | 50 | 131 | 42.24 | 0.843423 | 0 | 0 | 0.473684 | 0 | 0 | 0.209953 | 0.206635 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.210526 | false | 0 | 0.078947 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
488dc8928c219190e5b4dfbc67d7445b8b3c9373 | 8,007 | py | Python | src/transformers/utils/dummy_tokenizers_objects.py | Yokohide0317/transformers | 1089c30a4a3c56dcf017e500ba4b44e5c39f68dd | [
"Apache-2.0"
] | 1 | 2022-01-22T14:31:15.000Z | 2022-01-22T14:31:15.000Z | src/transformers/utils/dummy_tokenizers_objects.py | Yokohide0317/transformers | 1089c30a4a3c56dcf017e500ba4b44e5c39f68dd | [
"Apache-2.0"
] | null | null | null | src/transformers/utils/dummy_tokenizers_objects.py | Yokohide0317/transformers | 1089c30a4a3c56dcf017e500ba4b44e5c39f68dd | [
"Apache-2.0"
] | null | null | null | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..file_utils import DummyObject, requires_backends
class AlbertTokenizerFast(metaclass=DummyObject):
_backends = ["tokenizers"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["tokenizers"])
... | 25.100313 | 75 | 0.692519 | 697 | 8,007 | 7.56528 | 0.106169 | 0.139579 | 0.238953 | 0.324294 | 0.801252 | 0.801252 | 0.801252 | 0.801252 | 0.801252 | 0.801252 | 0 | 0.001055 | 0.171225 | 8,007 | 318 | 76 | 25.179245 | 0.79355 | 0.010741 | 0 | 0.745856 | 1 | 0 | 0.113665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.248619 | false | 0 | 0.005525 | 0 | 0.751381 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 12 |
48980b32d470be8627222c14e21285de3040220d | 922 | py | Python | Ch_7_Mangle Data Like a Pro/7_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | 1 | 2020-07-21T08:34:08.000Z | 2020-07-21T08:34:08.000Z | Ch_7_Mangle Data Like a Pro/7_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | null | null | null | Ch_7_Mangle Data Like a Pro/7_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | null | null | null | email_template = \
'''
Dear {salutation} {name},
Thank you for your letter. We are sorry that our {product} {verbed} in your
{room}. Please note that it should never be used in a {room}, especially
near any {animals}.
Send us your receipt and {amount} for shipping and handling. We will send
you another {product} tha... | 23.641026 | 75 | 0.727766 | 145 | 922 | 4.6 | 0.37931 | 0.041979 | 0.053973 | 0.068966 | 0.932534 | 0.932534 | 0.932534 | 0.932534 | 0.932534 | 0.932534 | 0 | 0 | 0.172451 | 922 | 39 | 76 | 23.641026 | 0.874181 | 0.017354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 7 |
48eb518fdbe52c19ba8aa4fe22070f64828c14b1 | 8,851 | py | Python | basicInfo/views.py | laylalaisy/Educational-Administration-System | 1d30775cb429e6a3d7e0aff0934b38418bac6fba | [
"Apache-2.0"
] | 4 | 2018-07-13T04:01:09.000Z | 2022-03-26T06:53:03.000Z | basicInfo/views.py | laylalaisy/Educational-Administration-System | 1d30775cb429e6a3d7e0aff0934b38418bac6fba | [
"Apache-2.0"
] | null | null | null | basicInfo/views.py | laylalaisy/Educational-Administration-System | 1d30775cb429e6a3d7e0aff0934b38418bac6fba | [
"Apache-2.0"
] | 2 | 2018-07-23T14:40:28.000Z | 2018-09-19T03:39:23.000Z | from django.shortcuts import render
from django.http import HttpResponseForbidden
# Create your views here.
def default(request):
return render(request, 'basicInfo/basic_homepage.html', {})
def signup(request):
return render(request, "basicInfo/basic_signup.html", {})
def login(request):
... | 27.746082 | 77 | 0.648966 | 924 | 8,851 | 6.058442 | 0.0671 | 0.099678 | 0.115398 | 0.170061 | 0.902465 | 0.849411 | 0.816542 | 0.816542 | 0.816542 | 0.816542 | 0 | 0.004412 | 0.231725 | 8,851 | 318 | 78 | 27.833333 | 0.818824 | 0.002599 | 0 | 0.633858 | 0 | 0 | 0.216578 | 0.129571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133858 | false | 0 | 0.007874 | 0.011811 | 0.393701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
5b1b2ef8471154fb644a358da996c6e20c168c70 | 13,624 | py | Python | tools/mo/unit_tests/mo/middle/dequantize_linear_resolver_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2021-02-01T06:35:55.000Z | 2021-02-01T06:35:55.000Z | tools/mo/unit_tests/mo/middle/dequantize_linear_resolver_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | tools/mo/unit_tests/mo/middle/dequantize_linear_resolver_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2021-07-14T07:40:50.000Z | 2021-07-27T01:40:03.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import unittest
import numpy as np
from openvino.tools.mo.middle.dequantize_linear_resolver import DequantizeLinearResolver
from openvino.tools.mo.front.common.partial_infer.utils import int64_array
from openvino.tools.mo.utils.ir_engi... | 57.243697 | 112 | 0.438784 | 1,333 | 13,624 | 4.177044 | 0.07952 | 0.072917 | 0.073276 | 0.057471 | 0.848599 | 0.831717 | 0.796516 | 0.766164 | 0.748922 | 0.748922 | 0 | 0.038466 | 0.39702 | 13,624 | 237 | 113 | 57.485232 | 0.639318 | 0.005652 | 0 | 0.72381 | 0 | 0 | 0.236267 | 0.012995 | 0 | 0 | 0 | 0 | 0.014286 | 1 | 0.014286 | false | 0 | 0.033333 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
825729d7ada1eddd7737c57df63bdb56b3e0725b | 105 | py | Python | tinder_api/__init__.py | Tohaker/Tinder | 23290cf3d6c23d1f35f5a192bc59d4b426ccbb66 | [
"MIT"
] | 22 | 2020-05-20T08:34:44.000Z | 2022-01-30T23:53:11.000Z | tinder_api/__init__.py | Tohaker/Tinder | 23290cf3d6c23d1f35f5a192bc59d4b426ccbb66 | [
"MIT"
] | 5 | 2020-07-06T20:28:54.000Z | 2021-12-31T21:55:13.000Z | tinder_api/__init__.py | Tohaker/Tinder | 23290cf3d6c23d1f35f5a192bc59d4b426ccbb66 | [
"MIT"
] | 7 | 2020-09-15T03:17:57.000Z | 2022-02-11T08:21:04.000Z | from tinder_api import api_endpoints
from tinder_api.api import Tinder_API
from tinder_api import helpers | 35 | 37 | 0.885714 | 18 | 105 | 4.888889 | 0.333333 | 0.409091 | 0.443182 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104762 | 105 | 3 | 38 | 35 | 0.93617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
826028a73b1b2292efa32dd3dae414fbde49bf78 | 892 | py | Python | __init__.py | OOXXXXOO/WSNet | b64aa7d80fe0a7aa8a440f2bb6df1f1e497a7620 | [
"Apache-2.0"
] | 12 | 2019-08-20T06:27:15.000Z | 2022-02-15T05:26:58.000Z | __init__.py | OOXXXXOO/WSNet | b64aa7d80fe0a7aa8a440f2bb6df1f1e497a7620 | [
"Apache-2.0"
] | null | null | null | __init__.py | OOXXXXOO/WSNet | b64aa7d80fe0a7aa8a440f2bb6df1f1e497a7620 | [
"Apache-2.0"
] | 7 | 2019-08-26T03:31:26.000Z | 2022-03-19T06:17:39.000Z | # **************************************************************************** #
# #
# ::: :::::::: #
# __init__.py :+: :+: :+: ... | 68.615385 | 80 | 0.113229 | 26 | 892 | 3.730769 | 0.653846 | 0.309278 | 0.164948 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077562 | 0.595291 | 892 | 12 | 81 | 74.333333 | 0.191136 | 0.933857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
82c9366d285e3bc855ac5f3f42562da471c00cd8 | 20,585 | py | Python | sdk/python/pulumi_alicloud/cen/instance_attachment.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/cen/instance_attachment.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/cen/instance_attachment.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 43.155136 | 147 | 0.655332 | 2,533 | 20,585 | 5.033557 | 0.072246 | 0.166196 | 0.065882 | 0.056 | 0.860078 | 0.841333 | 0.830824 | 0.821255 | 0.803451 | 0.780706 | 0 | 0.003022 | 0.244547 | 20,585 | 476 | 148 | 43.245798 | 0.816861 | 0.304348 | 0 | 0.646825 | 1 | 0 | 0.131139 | 0.046208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0.003968 | 0.019841 | 0 | 0.27381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
7d6432490965bf4ddf7906c4dc54c18f4d5aec2a | 5,667 | py | Python | entropy/datasets.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | 10 | 2021-03-25T11:56:37.000Z | 2021-12-25T19:40:29.000Z | entropy/datasets.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | null | null | null | entropy/datasets.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | 1 | 2021-12-28T10:39:57.000Z | 2021-12-28T10:39:57.000Z | import torch
import random
import numpy as np
from scipy.signal import lfilter
### Build dataset for toy example #1
def QProper_signals1(len_train, len_val, len_test, n):
# Generate Q-Proper signal for train
train_dataset = torch.zeros((len_train, n * 4))
for i in range(len_train):
q0 = torch.ran... | 34.981481 | 91 | 0.596083 | 939 | 5,667 | 3.478168 | 0.072417 | 0.018371 | 0.105634 | 0.114819 | 0.901715 | 0.895591 | 0.839865 | 0.825168 | 0.775566 | 0.767299 | 0 | 0.063586 | 0.228516 | 5,667 | 162 | 92 | 34.981481 | 0.68344 | 0.045703 | 0 | 0.595238 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.031746 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
7d86f1aca3b3d3d346e836d765c307e9ed36de05 | 50,866 | py | Python | devilry/devilry_group/tests/test_feedbackfeed/examiner/test_feedbackfeed_examiner_discuss.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_group/tests/test_feedbackfeed/examiner/test_feedbackfeed_examiner_discuss.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_group/tests/test_feedbackfeed/examiner/test_feedbackfeed_examiner_discuss.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z | # -*- coding: utf-8 -*-
from datetime import timedelta
from django.core import mail
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from django.utils import timezone
from django.conf import settings
from model_bakery import baker
from devilry.devilry_comment import mod... | 55.591257 | 131 | 0.682342 | 5,056 | 50,866 | 6.617089 | 0.055973 | 0.033357 | 0.028366 | 0.025735 | 0.935378 | 0.925096 | 0.908387 | 0.895116 | 0.881695 | 0.873117 | 0 | 0.009361 | 0.227165 | 50,866 | 914 | 132 | 55.652079 | 0.841698 | 0.027071 | 0 | 0.796319 | 0 | 0.011043 | 0.144405 | 0.065611 | 0 | 0 | 0 | 0 | 0.173006 | 1 | 0.051534 | false | 0.008589 | 0.017178 | 0 | 0.079755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7dba81fba80a39f3d871a8641f564e7ed9fcb868 | 50,366 | py | Python | tests/test_credssp.py | DankDumpster/requests-credssp | 3aeccb9efa8a2e4e34359b1c6b0bc002cd9fde43 | [
"MIT"
] | 19 | 2016-09-06T19:11:52.000Z | 2022-03-05T23:30:37.000Z | tests/test_credssp.py | DankDumpster/requests-credssp | 3aeccb9efa8a2e4e34359b1c6b0bc002cd9fde43 | [
"MIT"
] | 24 | 2016-09-02T04:03:34.000Z | 2022-02-17T05:44:23.000Z | tests/test_credssp.py | DankDumpster/requests-credssp | 3aeccb9efa8a2e4e34359b1c6b0bc002cd9fde43 | [
"MIT"
] | 5 | 2016-10-26T16:08:49.000Z | 2021-05-10T04:19:15.000Z | import collections
import os
import re
import requests
import struct
import warnings
import pytest
from xml.etree import ElementTree as ET
from requests_credssp.credssp import CredSSPContext, HttpCredSSPAuth
from requests_credssp.exceptions import AuthenticationException, InvalidConfigurationException, NTStatusExcep... | 49.621675 | 1,280 | 0.499841 | 6,687 | 50,366 | 3.7048 | 0.094661 | 0.013563 | 0.017438 | 0.019375 | 0.786268 | 0.765561 | 0.74885 | 0.722734 | 0.703278 | 0.682974 | 0 | 0.160714 | 0.350177 | 50,366 | 1,014 | 1,281 | 49.670611 | 0.59623 | 0.031053 | 0 | 0.742373 | 0 | 0.00678 | 0.405244 | 0.304497 | 0 | 0 | 0.000615 | 0 | 0.054237 | 1 | 0.062147 | false | 0.00904 | 0.012429 | 0.00904 | 0.106215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7deb87270455ef49cd2459acc11beb09e29c215a | 1,707 | py | Python | config.demo.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | config.demo.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | config.demo.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | # ██╗░░░░░██╗███╗░░██╗░██████╗░░░░██████╗░██╗░░░░░░█████╗░░█████╗░██╗░░██╗
# ██║░░░░░██║████╗░██║██╔════╝░░░░██╔══██╗██║░░░░░██╔══██╗██╔══██╗██║░██╔╝
# ██║░░░░░██║██╔██╗██║██║░░██╗░░░░██████╦╝██║░░░░░███████║██║░░╚═╝█████═╝░
# ██║░░░░░██║██║╚████║██║░░╚██╗░░░██╔══██╗██║░░░░░██╔══██║██║░░██╗██╔═██╗░
# ███████╗██║██... | 34.836735 | 75 | 0.318102 | 120 | 1,707 | 11.508333 | 0.458333 | 0.047067 | 0.04924 | 0.045619 | 0.74294 | 0.703838 | 0.703838 | 0.703838 | 0.703838 | 0.703838 | 0 | 0.012203 | 0.087873 | 1,707 | 48 | 76 | 35.5625 | 0.318561 | 0.667838 | 0 | 0 | 0 | 0 | 0.245841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
81becf0f8669a1954b155b671c2eec2206947dff | 5,334 | py | Python | pyapr/converter/converter_methods.py | mosaic-group/PyLibAPR | 4b5af50c26b4770c460460f9491bd840af2537da | [
"Apache-2.0"
] | 7 | 2021-07-02T11:08:30.000Z | 2022-03-07T20:54:33.000Z | pyapr/converter/converter_methods.py | mosaic-group/PyLibAPR | 4b5af50c26b4770c460460f9491bd840af2537da | [
"Apache-2.0"
] | 19 | 2020-12-17T09:32:09.000Z | 2022-01-08T20:22:16.000Z | pyapr/converter/converter_methods.py | mosaic-group/PyLibAPR | 4b5af50c26b4770c460460f9491bd840af2537da | [
"Apache-2.0"
] | 1 | 2021-01-19T14:23:36.000Z | 2021-01-19T14:23:36.000Z | import pyapr
import numpy as np
def get_apr(image, rel_error=0.1, gradient_smoothing=2, verbose=True, params=None):
# check that the image array is c-contiguous
if not image.flags['C_CONTIGUOUS']:
print('WARNING: \'image\' argument given to get_apr is not C-contiguous \n'
'input image h... | 35.798658 | 123 | 0.655231 | 645 | 5,334 | 5.305426 | 0.181395 | 0.043834 | 0.060491 | 0.012274 | 0.870251 | 0.853887 | 0.853887 | 0.853887 | 0.820573 | 0.779369 | 0 | 0.010755 | 0.233033 | 5,334 | 148 | 124 | 36.040541 | 0.825715 | 0.132358 | 0 | 0.757576 | 0 | 0 | 0.215588 | 0.04277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.020202 | 0 | 0.080808 | 0.10101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
81d2b88773f7ac335ce891860ac99cb204b289f7 | 1,070 | py | Python | tests/etl/workflow/regimen_to_treatment/expected_outputs.py | PDCMFinder/pdcm-etl | df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de | [
"Apache-2.0"
] | 1 | 2022-01-28T16:01:59.000Z | 2022-01-28T16:01:59.000Z | tests/etl/workflow/regimen_to_treatment/expected_outputs.py | PDCMFinder/pdcm-etl | df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de | [
"Apache-2.0"
] | 37 | 2022-02-09T18:19:13.000Z | 2022-03-29T12:14:19.000Z | tests/etl/workflow/regimen_to_treatment/expected_outputs.py | PDCMFinder/pdcm-etl | df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de | [
"Apache-2.0"
] | null | null | null | expected_regimen_to_treatment = [
{
"id": "1",
"regimen_ontology_term_id": "1",
"treatment_ontology_term_id": "1"
},
{
"id": "2",
"regimen_ontology_term_id": "1",
"treatment_ontology_term_id": "2"
},
{
"id": "3",
"regimen_ontology_term_... | 22.291667 | 41 | 0.48972 | 112 | 1,070 | 4.169643 | 0.142857 | 0.462527 | 0.539615 | 0.404711 | 0.880086 | 0.880086 | 0.867238 | 0.867238 | 0.867238 | 0 | 0 | 0.038244 | 0.340187 | 1,070 | 47 | 42 | 22.765957 | 0.623229 | 0 | 0 | 0.234043 | 0 | 0 | 0.462617 | 0.420561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c4b6fe0bb543bd533c5e2067f3bf734ba2815250 | 876 | py | Python | tests/test_ret_types.py | Cologler/bytecode2ast-python | 407b261a493e018bc86388040ddfb6fb0e4b96d9 | [
"MIT"
] | null | null | null | tests/test_ret_types.py | Cologler/bytecode2ast-python | 407b261a493e018bc86388040ddfb6fb0e4b96d9 | [
"MIT"
] | null | null | null | tests/test_ret_types.py | Cologler/bytecode2ast-python | 407b261a493e018bc86388040ddfb6fb0e4b96d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from utils import get_instrs_from_b2a, get_instrs
def test_return_none():
def func():
return None
assert get_instrs(func) == get_instrs_from_b2a(func)
def test_return_true():
def func()... | 19.466667 | 56 | 0.644977 | 123 | 876 | 4.268293 | 0.243902 | 0.24 | 0.173333 | 0.213333 | 0.630476 | 0.630476 | 0.630476 | 0.630476 | 0.630476 | 0.630476 | 0 | 0.032164 | 0.219178 | 876 | 44 | 57 | 19.909091 | 0.73538 | 0.111872 | 0 | 0.48 | 0 | 0 | 0.005188 | 0 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.48 | true | 0 | 0.04 | 0.24 | 0.76 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
c4be772540ff6830b9282271962bf59995e2a59d | 436 | py | Python | examples/python/cpu/tensors/tensor_reshape_01.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | 27 | 2018-08-16T21:32:49.000Z | 2021-11-30T10:31:08.000Z | examples/python/cpu/tensors/tensor_reshape_01.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | null | null | null | examples/python/cpu/tensors/tensor_reshape_01.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | 13 | 2018-08-17T17:33:16.000Z | 2021-11-30T10:31:09.000Z | import pyOcean_cpu as ocean
# Fortran-style strides
a = ocean.tensor([3,4],'F');
a.copy(range(a.nelem))
print(a)
print(a.strides)
b = a.reshape([2,3,2])
print(b)
print(b.storage.obj == a.storage.obj)
a.reshape([2,6],True)
print(a)
# C-style strides
a = ocean.tensor([3,4],'C');
a.copy(range(a.nelem))
print(a)
print... | 14.533333 | 37 | 0.655963 | 87 | 436 | 3.275862 | 0.287356 | 0.126316 | 0.126316 | 0.126316 | 0.884211 | 0.884211 | 0.884211 | 0.701754 | 0.701754 | 0.701754 | 0 | 0.036082 | 0.110092 | 436 | 29 | 38 | 15.034483 | 0.698454 | 0.084862 | 0 | 0.842105 | 0 | 0 | 0.005063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.526316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
c4c3e62adf0aa32d271b739ebd85610d1721338c | 28,122 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_mpp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_mpp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_mpp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_lib_mpp_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR lib\-mpp package operational data.
This module contains definitions
for the following management objects\:
management\-plane\-protection\: Management Plane Protection (MPP)
operational data
Copyright (c) 2013... | 34.004837 | 269 | 0.490861 | 2,817 | 28,122 | 4.682996 | 0.054668 | 0.057611 | 0.072013 | 0.063069 | 0.900925 | 0.887887 | 0.877047 | 0.864615 | 0.864615 | 0.864615 | 0 | 0.021258 | 0.417893 | 28,122 | 826 | 270 | 34.046005 | 0.784606 | 0.236861 | 0 | 0.841823 | 0 | 0.018767 | 0.140253 | 0.09828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179625 | false | 0.002681 | 0.0563 | 0.016086 | 0.557641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
1efab36210a230086a8000e15777be036b3b0cda | 36,392 | py | Python | tools/slice_attributes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | tools/slice_attributes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | tools/slice_attributes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env /usr/bin/plcsh
#
# Convert old planetlab3 slice attributes and initscripts to new
# planetlab4 ones.
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
import re
import base64
# Convert nm_net_{exempt_,}{min,max}_rate (bps) to
# net_{i2_,}{min,max}_rat... | 129.508897 | 17,210 | 0.835678 | 2,615 | 36,392 | 11.499426 | 0.305927 | 0.006385 | 0.005853 | 0.007682 | 0.122876 | 0.094543 | 0.079711 | 0.064414 | 0.060091 | 0.060091 | 0 | 0.108421 | 0.087602 | 36,392 | 280 | 17,211 | 129.971429 | 0.797223 | 0.056304 | 0 | 0.358382 | 0 | 0.017341 | 0.87173 | 0.699857 | 0 | 1 | 0.000992 | 0 | 0 | 1 | 0 | false | 0.069364 | 0.011561 | 0 | 0.011561 | 0.011561 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
484eb883e98e133b19068b7ead86555eeaa224eb | 3,710 | py | Python | cnf_xplor/item_enter/forms.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | cnf_xplor/item_enter/forms.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | 46 | 2020-02-17T18:50:49.000Z | 2020-06-03T17:20:56.000Z | cnf_xplor/item_enter/forms.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | import django.forms as forms
from cnf_xplor.api.models import Food, FoodGroup, FoodSource, Nutrient, ConversionFactor, Measure
class EnterFood(forms.ModelForm):
class Meta:
model = Food
fields = ["GROUP","SOURCE", "COUNTRY_C", "FOOD_DESC", "FOOD_DESC_F", "COMMENT_T", "FN_COMMENT_F"]
GROUP = f... | 66.25 | 155 | 0.729919 | 470 | 3,710 | 5.623404 | 0.12766 | 0.104048 | 0.141884 | 0.17972 | 0.840333 | 0.819145 | 0.819145 | 0.819145 | 0.819145 | 0.800605 | 0 | 0 | 0.099461 | 3,710 | 55 | 156 | 67.454545 | 0.791081 | 0.028302 | 0 | 0.547619 | 0 | 0 | 0.169534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
6fcafe94992fe5fba631e6c4fe17add9d370bdb5 | 8,885 | py | Python | models/efficient_capsnet_graph_AIS.py | whongfeiHK/AIS-curve-prediction-Deep-Learning | b1f321c6fa6fbd2c854e7d9d16953ca49519bc1a | [
"Apache-2.0"
] | 1 | 2022-01-13T16:41:01.000Z | 2022-01-13T16:41:01.000Z | models/efficient_capsnet_graph_AIS.py | whongfeiHK/AIS-curve-prediction-Deep-Learning | b1f321c6fa6fbd2c854e7d9d16953ca49519bc1a | [
"Apache-2.0"
] | null | null | null | models/efficient_capsnet_graph_AIS.py | whongfeiHK/AIS-curve-prediction-Deep-Learning | b1f321c6fa6fbd2c854e7d9d16953ca49519bc1a | [
"Apache-2.0"
] | 1 | 2022-01-16T06:33:28.000Z | 2022-01-16T06:33:28.000Z | import numpy as np
import tensorflow as tf
from utils.layers import PrimaryCaps, FCCaps, Length, Mask
from keras import regularizers
def efficient_capsnet_graph(input_shape):
"""
Efficient-CapsNet graph architecture.
Parameters
----------
input_shape: list
network input shape
"""
... | 58.071895 | 241 | 0.715701 | 1,278 | 8,885 | 4.844288 | 0.115023 | 0.234049 | 0.254402 | 0.264578 | 0.833145 | 0.797125 | 0.763528 | 0.727992 | 0.695203 | 0.695203 | 0 | 0.066538 | 0.122116 | 8,885 | 152 | 242 | 58.453947 | 0.727179 | 0.437929 | 0 | 0.274194 | 0 | 0 | 0.062319 | 0.021048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.064516 | 0 | 0.193548 | 0.064516 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
b5145c1cd0afbf6451b24730d934e64becc7a381 | 7,826 | py | Python | mapclientplugins/scaffoldgroupmanagerstep/resources_rc.py | rchristie/mapclientplugins.scaffoldgroupmanagerstep | 50661cf2f20eee35552b3e2d5c51ee8c28593ada | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldgroupmanagerstep/resources_rc.py | rchristie/mapclientplugins.scaffoldgroupmanagerstep | 50661cf2f20eee35552b3e2d5c51ee8c28593ada | [
"Apache-2.0"
] | 1 | 2020-05-12T05:24:24.000Z | 2020-05-13T04:00:12.000Z | mapclientplugins/scaffoldgroupmanagerstep/resources_rc.py | rchristie/mapclientplugins.scaffoldgroupmanagerstep | 50661cf2f20eee35552b3e2d5c51ee8c28593ada | [
"Apache-2.0"
] | 4 | 2020-05-07T03:12:05.000Z | 2021-05-27T21:20:20.000Z | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Sun 3. May 12:51:01 2020
# by: The Resource Compiler for PySide (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore
qt_resource_data = b"\x00\x00\x09*\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00@\x0... | 355.727273 | 6,818 | 0.743675 | 1,743 | 7,826 | 3.325301 | 0.335628 | 0.052795 | 0.041925 | 0.020704 | 0.045031 | 0.04089 | 0.039337 | 0.039337 | 0.034679 | 0.030021 | 0 | 0.239043 | 0.011628 | 7,826 | 21 | 6,819 | 372.666667 | 0.510278 | 0.023384 | 0 | 0 | 0 | 0.333333 | 0.952194 | 0.949312 | 0 | 0 | 0.001048 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d20894a2674853cb5c66e424db2ba19362a44cfb | 91,181 | py | Python | regular_language/unit_tests/test_lark_parser.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | 1 | 2021-12-03T07:20:18.000Z | 2021-12-03T07:20:18.000Z | regular_language/unit_tests/test_lark_parser.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | null | null | null | regular_language/unit_tests/test_lark_parser.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Unit Tests for lark_parser.py."""
import unittest
import nlpregex.regular_language.lark_parser
from nlpregex.regular_language.fa import DFA_from_NFA
class test_lark_parser( unittest.TestCase ):
def __init__( self, *args, **kwargs ):
unittest.TestCase.__i... | 43.009906 | 164 | 0.532172 | 9,705 | 91,181 | 4.780113 | 0.02102 | 0.056908 | 0.054321 | 0.072428 | 0.966869 | 0.958764 | 0.953482 | 0.943825 | 0.935871 | 0.93115 | 0 | 0.093733 | 0.345708 | 91,181 | 2,119 | 165 | 43.030203 | 0.68387 | 0.413748 | 0 | 0.709333 | 0 | 0.006222 | 0.157161 | 0.01115 | 0 | 0 | 0 | 0 | 0.097778 | 1 | 0.098667 | false | 0 | 0.002667 | 0 | 0.102222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d21d568a72cdb7a7ca7013826560d1272ef478cd | 3,605 | py | Python | python_modules/dagster/dagster_tests/core_tests/runtime_types_tests/test_python_set.py | pseudoPixels/dagster | ac78bdbec54754d35f51d706fc5b0bacfe49f2bf | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/runtime_types_tests/test_python_set.py | pseudoPixels/dagster | ac78bdbec54754d35f51d706fc5b0bacfe49f2bf | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/runtime_types_tests/test_python_set.py | pseudoPixels/dagster | ac78bdbec54754d35f51d706fc5b0bacfe49f2bf | [
"Apache-2.0"
] | null | null | null | import typing
import pytest
from dagster import (
DagsterTypeCheckError,
InputDefinition,
Optional,
OutputDefinition,
execute_solid,
lambda_solid,
)
from dagster.core.types.runtime.python_set import create_typed_runtime_set
from dagster.core.types.runtime.runtime_type import resolve_to_runtime... | 27.105263 | 88 | 0.715673 | 492 | 3,605 | 4.896341 | 0.111789 | 0.068493 | 0.069738 | 0.07472 | 0.879618 | 0.822748 | 0.782482 | 0.77501 | 0.764218 | 0.764218 | 0 | 0.007307 | 0.164771 | 3,605 | 132 | 89 | 27.310606 | 0.79276 | 0 | 0 | 0.670455 | 0 | 0 | 0.018863 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.25 | false | 0 | 0.056818 | 0.113636 | 0.420455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
d2300a99826e536597dfbcce4722a90f6d350735 | 89 | py | Python | DATnet-master/utils/__init__.py | limit-scu/2019-TPAMI-DATNet | 30ade0642928217541b76b0152382894b7ab73ea | [
"MIT"
] | 1 | 2019-11-08T02:45:08.000Z | 2019-11-08T02:45:08.000Z | DATnet-master/utils/__init__.py | limit-scu/2019-TPAMI-DATNet | 30ade0642928217541b76b0152382894b7ab73ea | [
"MIT"
] | null | null | null | DATnet-master/utils/__init__.py | limit-scu/2019-TPAMI-DATNet | 30ade0642928217541b76b0152382894b7ab73ea | [
"MIT"
] | null | null | null | from utils.data_utils import *
from utils.data_utils import *
from utils.logger import *
| 22.25 | 30 | 0.797753 | 14 | 89 | 4.928571 | 0.357143 | 0.391304 | 0.376812 | 0.521739 | 0.826087 | 0.826087 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 89 | 3 | 31 | 29.666667 | 0.896104 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 11 |
d27bbd10baaf9903aea66a53d0b9dfafd5f86b3f | 88,025 | py | Python | SSP3_version1.py | ShivamGaurUQ/Student_Staff_Partnership_Project | 18fc694bffc3ffb531cea53199e47581834f8bef | [
"MIT"
] | 1 | 2019-09-11T15:05:28.000Z | 2019-09-11T15:05:28.000Z | SSP3_version1.py | ShivamGaurUQ/Student_Staff_Partnership_Project | 18fc694bffc3ffb531cea53199e47581834f8bef | [
"MIT"
] | null | null | null | SSP3_version1.py | ShivamGaurUQ/Student_Staff_Partnership_Project | 18fc694bffc3ffb531cea53199e47581834f8bef | [
"MIT"
] | null | null | null |
# coding: utf-8
# <h1><center>Student Feedback Data Analysis</center></h1>
# <img src="analytics.jpg" width="500" height="100" align="center"/>
# In[47]:
#import libraries
import nltk
from nltk.corpus import wordnet as wn
from nltk import pos_tag, word_tokenize
import xlrd
nltk.download('averaged_perceptron_tagge... | 43.022972 | 225 | 0.499858 | 8,768 | 88,025 | 4.87979 | 0.070027 | 0.034708 | 0.022648 | 0.02398 | 0.890969 | 0.880335 | 0.877109 | 0.871944 | 0.870098 | 0.864722 | 0 | 0.014209 | 0.385175 | 88,025 | 2,045 | 226 | 43.04401 | 0.776367 | 0.085964 | 0 | 0.849693 | 0 | 0 | 0.100139 | 0.012405 | 0 | 0 | 0 | 0.000489 | 0 | 1 | 0.02684 | false | 0 | 0.075153 | 0.000767 | 0.104294 | 0.035276 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9649ec5f99e1946cbd7869af31d388b45ab5c531 | 154 | py | Python | src/ctc/db/schemas/contract_abis/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/db/schemas/contract_abis/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/db/schemas/contract_abis/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from .contract_abis_intake import *
from .contract_abis_queries import *
from .contract_abis_schema_defs import *
from .contract_abis_statements import *
| 30.8 | 40 | 0.844156 | 21 | 154 | 5.761905 | 0.428571 | 0.396694 | 0.528926 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 154 | 4 | 41 | 38.5 | 0.876812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
965639b56a0c354898c0ebfaeb987a83f421f419 | 8,951 | py | Python | kats/tests/compat/test_pandas.py | utkucanaytac/Kats | 9781615750a2f3b49f16cccf335b5c29fdfd181a | [
"MIT"
] | null | null | null | kats/tests/compat/test_pandas.py | utkucanaytac/Kats | 9781615750a2f3b49f16cccf335b5c29fdfd181a | [
"MIT"
] | null | null | null | kats/tests/compat/test_pandas.py | utkucanaytac/Kats | 9781615750a2f3b49f16cccf335b5c29fdfd181a | [
"MIT"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import inspect
import unittest
from typing import Any, Dict
from unittest.mock import ANY, patch
import pandas as pd
from kats.compat impor... | 38.416309 | 89 | 0.634566 | 1,168 | 8,951 | 4.605308 | 0.100171 | 0.082543 | 0.116936 | 0.081986 | 0.873768 | 0.861684 | 0.852389 | 0.852389 | 0.846068 | 0.841049 | 0 | 0.014116 | 0.256061 | 8,951 | 232 | 90 | 38.581897 | 0.793663 | 0.119316 | 0 | 0.746114 | 0 | 0 | 0.170887 | 0.094923 | 0 | 0 | 0 | 0.00431 | 0.378238 | 1 | 0.051813 | false | 0 | 0.031088 | 0 | 0.103627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
966b5dc82a242f3d339736d5c5830bf7e337f437 | 104 | py | Python | FastAPISQLAlchamyGraphQL/app/conf/__init__.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | 29 | 2021-03-31T02:42:59.000Z | 2022-03-12T16:20:05.000Z | FastAPISQLAlchamy/app/conf/__init__.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | null | null | null | FastAPISQLAlchamy/app/conf/__init__.py | scionoftech/FastAPI-Full-Stack-Samples | e7d42661ed59324ff20f419d05c6cd1e7dab7e97 | [
"MIT"
] | 4 | 2021-08-21T01:02:00.000Z | 2022-01-09T15:33:51.000Z | from .config import ProjectSettings
from .config import DBSettings
from .config import EmailSettings
| 26 | 36 | 0.826923 | 12 | 104 | 7.166667 | 0.5 | 0.348837 | 0.55814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 3 | 37 | 34.666667 | 0.966292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fb6108fcd422c819e467bf6cffe636b88988ac98 | 182 | py | Python | parser/generation/generation.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | parser/generation/generation.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | parser/generation/generation.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | # Internal imports
from extraction.extraction import FoundExpression
def generate(parsed_expression, exp: FoundExpression):
# Write the actual data out to a PB message
pass | 26 | 54 | 0.785714 | 23 | 182 | 6.173913 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17033 | 182 | 7 | 55 | 26 | 0.940397 | 0.318681 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
83a18c57e22ae39b6567b0bc0c30dc882c14c7f5 | 433 | py | Python | tests/internal/encryption_support/test_encryption_support_unsupported_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/encryption_support/test_encryption_support_unsupported_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/encryption_support/test_encryption_support_unsupported_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | 1 | 2021-12-15T11:58:22.000Z | 2021-12-15T11:58:22.000Z |
# Testing module encryption_support.unsupported
import pytest
import ec2_compare.internal.encryption_support.unsupported
def test_get_internal_data_encryption_support_unsupported_get_instances_list():
assert len(ec2_compare.internal.encryption_support.unsupported.get_instances_list()) > 0
def test_get_internal_data... | 43.3 | 90 | 0.877598 | 56 | 433 | 6.339286 | 0.339286 | 0.287324 | 0.473239 | 0.349296 | 0.828169 | 0.828169 | 0.625352 | 0.625352 | 0.625352 | 0 | 0 | 0.012285 | 0.060046 | 433 | 9 | 91 | 48.111111 | 0.859951 | 0.103926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
79193a1a6434b81833234d4905a806bc2b445431 | 180 | py | Python | custom/icds_reports/utils/connections.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/utils/connections.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/utils/connections.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | null | null | null | from corehq.sql_db.connections import get_db_alias_or_none, ICDS_UCR_CITUS_ENGINE_ID
def get_icds_ucr_citus_db_alias():
return get_db_alias_or_none(ICDS_UCR_CITUS_ENGINE_ID)
| 30 | 84 | 0.872222 | 34 | 180 | 3.970588 | 0.5 | 0.155556 | 0.266667 | 0.177778 | 0.533333 | 0.533333 | 0.533333 | 0.533333 | 0.533333 | 0.533333 | 0 | 0 | 0.083333 | 180 | 5 | 85 | 36 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
f7038372acea8564b8305e0beb5f6d7f87ed3aa9 | 6,454 | py | Python | experiments/increasing_dim/Exp_1/kron.py | vdutor/VFF | 459be5b480bba49e8c15dc7daeca5fd1ddd762df | [
"Apache-2.0"
] | 75 | 2016-11-21T21:50:12.000Z | 2022-03-22T17:56:36.000Z | experiments/increasing_dim/Exp_1/kron.py | vdutor/VFF | 459be5b480bba49e8c15dc7daeca5fd1ddd762df | [
"Apache-2.0"
] | 4 | 2018-03-22T19:47:08.000Z | 2021-10-06T14:49:54.000Z | experiments/increasing_dim/Exp_1/kron.py | vdutor/VFF | 459be5b480bba49e8c15dc7daeca5fd1ddd762df | [
"Apache-2.0"
] | 26 | 2016-11-22T14:14:58.000Z | 2022-02-03T18:29:20.000Z | import numpy as np
import sys
import gpflow
import VFF
from time import time
from config import *
dim = sys.argv[1]
rep = sys.argv[2]
print('vff: dimension {}, replicate {}'.format(dim, r))
# data
data = np.load('data/data_dim{}_rep{}.npz'.format(dim, 0))
# full_gp
def prodkern(dim):
return gpflow.kernels.Pro... | 37.523256 | 101 | 0.503719 | 775 | 6,454 | 4.046452 | 0.165161 | 0.03125 | 0.049107 | 0.026786 | 0.85236 | 0.829401 | 0.829401 | 0.821747 | 0.819834 | 0.814094 | 0 | 0.007694 | 0.355593 | 6,454 | 171 | 102 | 37.74269 | 0.746333 | 0.058413 | 0 | 0.741379 | 0 | 0 | 0.083137 | 0.033221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008621 | false | 0 | 0.051724 | 0.008621 | 0.068966 | 0.043103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f75efe55e0752308a88d8a370ac20d517a61aa6c | 3,481 | py | Python | You-Can.py | suliman3177/kingusa123 | 6cd83198f6c42184c584bdf1a96a3167ddf2a71d | [
"MIT"
] | null | null | null | You-Can.py | suliman3177/kingusa123 | 6cd83198f6c42184c584bdf1a96a3167ddf2a71d | [
"MIT"
] | null | null | null | You-Can.py | suliman3177/kingusa123 | 6cd83198f6c42184c584bdf1a96a3167ddf2a71d | [
"MIT"
] | null | null | null | #!/usr/bin/python3 -B
#coded By :VIGITMHS
#iam not Hacker
import marshal as m
data = m.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00s\xc0\x00\x00\x00d\x00d\x01l\x00Z\x00d\x00d\x01l\x01Z\x01d\x00d\x02l\x02m\x03Z\x03\x01\x00d\x03Z\x04d\x04Z\x05d\x05Z\x06d\x06Z\x0... | 580.166667 | 3,390 | 0.559322 | 516 | 3,481 | 3.736434 | 0.428295 | 0.102697 | 0.102697 | 0.093361 | 0.099585 | 0.076245 | 0.076245 | 0.063797 | 0.048237 | 0.048237 | 0 | 0.181118 | 0.141913 | 3,481 | 6 | 3,391 | 580.166667 | 0.464346 | 0.014938 | 0 | 0 | 0 | 0.666667 | 0.683304 | 0.392294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
f760c218e50b9c6a0ae0262311f284f08a5ff5d8 | 3,488 | py | Python | cgi-bin/tools/shapes.py | quartzcms/Learning-Bot | 2ca01ce3bfe724f82681b86d79570c3665bc0541 | [
"MIT"
] | 2 | 2019-03-17T02:51:44.000Z | 2019-11-24T02:44:09.000Z | cgi-bin/tools/shapes.py | quartzcms/Learning-Bot | 2ca01ce3bfe724f82681b86d79570c3665bc0541 | [
"MIT"
] | null | null | null | cgi-bin/tools/shapes.py | quartzcms/Learning-Bot | 2ca01ce3bfe724f82681b86d79570c3665bc0541 | [
"MIT"
] | null | null | null | import sys
import cgi
import os
class Shapes():
def __init__(self, form, output):
self.form = form
self.output = output
def ovale(self, grid, size, pointsWH):
x = (size[0] // 5)
for i, array in enumerate(grid):
spacing_height = round(((pointsWH[1][1] - pointsWH[1][0]) / 2) - (size[1] / 2))
bottom_si... | 41.035294 | 86 | 0.608658 | 567 | 3,488 | 3.567901 | 0.081129 | 0.071181 | 0.126545 | 0.0435 | 0.903114 | 0.886802 | 0.886802 | 0.886802 | 0.875927 | 0.85566 | 0 | 0.044771 | 0.21875 | 3,488 | 85 | 87 | 41.035294 | 0.697615 | 0 | 0 | 0.772152 | 0 | 0 | 0.001146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0.012658 | 0.037975 | 0 | 0.177215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e3c0f60de3ee6d2a07aa66810c5957d07b470442 | 50,979 | py | Python | aioes/client/indices.py | DLizogub/aioes | 51658066f35699e871c8ba02e133b725043dcb84 | [
"Apache-2.0"
] | null | null | null | aioes/client/indices.py | DLizogub/aioes | 51658066f35699e871c8ba02e133b725043dcb84 | [
"Apache-2.0"
] | null | null | null | aioes/client/indices.py | DLizogub/aioes | 51658066f35699e871c8ba02e133b725043dcb84 | [
"Apache-2.0"
] | 1 | 2017-03-02T12:41:16.000Z | 2017-03-02T12:41:16.000Z | import asyncio
from .utils import NamespacedClient
from .utils import _make_path
from aioes.exception import NotFoundError
default = object()
class IndicesClient(NamespacedClient):
@asyncio.coroutine
def analyze(self, index=None, body=None, *,
analyzer=default, char_filters=default, field=d... | 44.023316 | 113 | 0.607995 | 5,617 | 50,979 | 5.356952 | 0.053765 | 0.030907 | 0.067797 | 0.092124 | 0.826886 | 0.800432 | 0.786607 | 0.765969 | 0.753606 | 0.721635 | 0 | 0 | 0.309108 | 50,979 | 1,157 | 114 | 44.061366 | 0.85432 | 0.218168 | 0 | 0.717258 | 0 | 0 | 0.121531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044064 | false | 0 | 0.004896 | 0 | 0.099143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e3fa906e89622df8e791b9b4e0cd124633752065 | 115 | py | Python | molsysmt/element/group/aminoacid/is_aminoacid.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/element/group/aminoacid/is_aminoacid.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/element/group/aminoacid/is_aminoacid.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | from .get_aminoacid_type_from_name import name_to_type
def is_aminoacid(name):
return (name in name_to_type)
| 19.166667 | 54 | 0.808696 | 20 | 115 | 4.2 | 0.55 | 0.142857 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 115 | 5 | 55 | 23 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
585e6e8ac0813fba7b68734c5473ee1f2aab876e | 9,049 | py | Python | parked_tests/test_graph_attribute_functions.py | rhoadesScholar/daisy | 78cdd2ed0d67647a6602fb53cc952214450f3753 | [
"MIT"
] | null | null | null | parked_tests/test_graph_attribute_functions.py | rhoadesScholar/daisy | 78cdd2ed0d67647a6602fb53cc952214450f3753 | [
"MIT"
] | null | null | null | parked_tests/test_graph_attribute_functions.py | rhoadesScholar/daisy | 78cdd2ed0d67647a6602fb53cc952214450f3753 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import daisy
import logging
import unittest
import networkx as nx
logger = logging.getLogger(__name__)
# logging.basicConfig(level=logging.DEBUG)
daisy.scheduler._NO_SPAWN_STATUS_THREAD = True
class TestFilterMongoGraph(unittest.TestCase):
def get_mongo_graph_provider(
... | 36.051793 | 79 | 0.502155 | 948 | 9,049 | 4.565401 | 0.105485 | 0.090111 | 0.044362 | 0.043669 | 0.821858 | 0.786275 | 0.779575 | 0.746303 | 0.746303 | 0.746303 | 0 | 0.042429 | 0.395734 | 9,049 | 250 | 80 | 36.196 | 0.749086 | 0.00442 | 0 | 0.752381 | 0 | 0 | 0.029422 | 0 | 0 | 0 | 0 | 0 | 0.080952 | 1 | 0.02381 | false | 0 | 0.02381 | 0.004762 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
586e8d8d8b9e2b527886a629551621c55e26b844 | 94,580 | py | Python | lang/python/github/com/metaprov/modelaapi/services/trainerd/v1/trainerd_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | null | null | null | lang/python/github/com/metaprov/modelaapi/services/trainerd/v1/trainerd_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | null | null | null | lang/python/github/com/metaprov/modelaapi/services/trainerd/v1/trainerd_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: github.com/metaprov/modelaapi/services/trainerd/v1/trainerd.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | 58.599752 | 10,954 | 0.791859 | 12,043 | 94,580 | 5.87802 | 0.028564 | 0.03639 | 0.074588 | 0.094026 | 0.884445 | 0.866787 | 0.859667 | 0.853819 | 0.843351 | 0.815254 | 0 | 0.035377 | 0.094132 | 94,580 | 1,613 | 10,955 | 58.636082 | 0.790854 | 0.028621 | 0 | 0.712401 | 1 | 0.00066 | 0.277273 | 0.244096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023747 | 0 | 0.023747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
588212f39e4bea744345717e6a276e763ad997e6 | 7,471 | py | Python | core/test/vs/test_node.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | 3 | 2021-06-20T02:24:10.000Z | 2022-01-26T23:55:33.000Z | core/test/vs/test_node.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | null | null | null | core/test/vs/test_node.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from recc.vs.slot import SlotDirection, SlotCategory, Slot
from recc.vs.node import NodeEdge, Node
class NodeTestCase(unittest.TestCase):
def setUp(self):
self.in_flow = Slot(0, "s0", 0, "n", SlotDirection.Input, SlotCategory.Flow)
self.out_flow = Slot(1, "... | 46.403727 | 86 | 0.703253 | 1,029 | 7,471 | 4.819242 | 0.061224 | 0.154265 | 0.229885 | 0.260536 | 0.869732 | 0.843517 | 0.843114 | 0.817705 | 0.817705 | 0.805606 | 0 | 0.013414 | 0.18177 | 7,471 | 160 | 87 | 46.69375 | 0.797808 | 0.002811 | 0 | 0.719697 | 0 | 0 | 0.004699 | 0 | 0 | 0 | 0 | 0 | 0.689394 | 1 | 0.037879 | false | 0 | 0.022727 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
5435399d5814112d5c02f989b0ceca61c9385ed3 | 860 | py | Python | archive/MCQ/datasets/utils.py | dreinq/DeepQ | abb6d8b492f802fefbc0095e8719377dc708069c | [
"Apache-2.0"
] | null | null | null | archive/MCQ/datasets/utils.py | dreinq/DeepQ | abb6d8b492f802fefbc0095e8719377dc708069c | [
"Apache-2.0"
] | null | null | null | archive/MCQ/datasets/utils.py | dreinq/DeepQ | abb6d8b492f802fefbc0095e8719377dc708069c | [
"Apache-2.0"
] | 1 | 2020-11-23T09:13:58.000Z | 2020-11-23T09:13:58.000Z | import numpy as np
def fvecs_read(filename, c_contiguous=True):
fv = np.fromfile(filename, dtype=np.float32)
if fv.size == 0:
return np.zeros((0, 0))
dim = fv.view(np.int32)[0]
assert dim > 0
fv = fv.reshape(-1, 1 + dim)
if not all(fv.view(np.int32)[:, 0] == dim):
raise IOError(... | 27.741935 | 64 | 0.575581 | 136 | 860 | 3.595588 | 0.272059 | 0.04908 | 0.06544 | 0.106339 | 0.912065 | 0.912065 | 0.912065 | 0.912065 | 0.912065 | 0.912065 | 0 | 0.047695 | 0.268605 | 860 | 30 | 65 | 28.666667 | 0.72973 | 0 | 0 | 0.814815 | 0 | 0 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
49b54a0e957fe3863e5702ede37c8b274e16ef3f | 15,963 | py | Python | tempest/api/workloadmgr/rbac/test_tvault_rbac_backuprole_touser_policyjson.py | deepanshusagar/tempest-1 | 2c7609ef72a606e2b6c39d185f98aa28b4d20afa | [
"Apache-2.0"
] | null | null | null | tempest/api/workloadmgr/rbac/test_tvault_rbac_backuprole_touser_policyjson.py | deepanshusagar/tempest-1 | 2c7609ef72a606e2b6c39d185f98aa28b4d20afa | [
"Apache-2.0"
] | null | null | null | tempest/api/workloadmgr/rbac/test_tvault_rbac_backuprole_touser_policyjson.py | deepanshusagar/tempest-1 | 2c7609ef72a606e2b6c39d185f98aa28b4d20afa | [
"Apache-2.0"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd())
from tempest.api.workloadmgr import base
from tempest import config
from tempest import test
from oslo_log import log as logging
from tempest import tvaultconf
from tempest import reporting
from tempest import command_argument_string
from tempest.util import cli_parser
... | 57.420863 | 124 | 0.687966 | 1,987 | 15,963 | 5.312531 | 0.08002 | 0.037893 | 0.054566 | 0.066313 | 0.837249 | 0.81385 | 0.770273 | 0.712202 | 0.68956 | 0.683308 | 0 | 0.00694 | 0.241809 | 15,963 | 277 | 125 | 57.628159 | 0.86524 | 0.064963 | 0 | 0.396313 | 0 | 0 | 0.304826 | 0.005773 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.101382 | 0.0553 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
49e8176df4e3a50d5eb972b036da94008135514d | 39,825 | py | Python | ELECTRIC/mdi/tests/test_mdi.py | janash/ELECTRIC | 007819cebdb26a27e706af68922721ddd5fe4a1a | [
"BSD-3-Clause"
] | null | null | null | ELECTRIC/mdi/tests/test_mdi.py | janash/ELECTRIC | 007819cebdb26a27e706af68922721ddd5fe4a1a | [
"BSD-3-Clause"
] | null | null | null | ELECTRIC/mdi/tests/test_mdi.py | janash/ELECTRIC | 007819cebdb26a27e706af68922721ddd5fe4a1a | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import glob
import subprocess
import pytest
try: # Check for local build
sys.path.append('../build')
import MDI_Library as mdi
except ImportError: # Check for installed package
import mdi
build_dir = "../build"
sys.path.append(build_dir)
driver_out_expected_f90 = """ Engine name: MM
... | 44.646861 | 185 | 0.683792 | 5,409 | 39,825 | 4.793123 | 0.053614 | 0.042698 | 0.056931 | 0.06642 | 0.912675 | 0.905423 | 0.891692 | 0.859909 | 0.816092 | 0.746895 | 0 | 0.040668 | 0.192392 | 39,825 | 891 | 186 | 44.69697 | 0.765414 | 0.106918 | 0 | 0.712919 | 0 | 0.00319 | 0.238359 | 0.04628 | 0 | 0 | 0 | 0 | 0.244019 | 1 | 0.043062 | false | 0 | 0.012759 | 0 | 0.057416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b71531c40a544879f67af037dc63f3658cb349e8 | 108 | py | Python | sdt_metrics/__init__.py | bollaking/sdt-metrics | 2132801c36e69102d5c7a042062ba80535cef0f1 | [
"BSD-3-Clause"
] | null | null | null | sdt_metrics/__init__.py | bollaking/sdt-metrics | 2132801c36e69102d5c7a042062ba80535cef0f1 | [
"BSD-3-Clause"
] | null | null | null | sdt_metrics/__init__.py | bollaking/sdt-metrics | 2132801c36e69102d5c7a042062ba80535cef0f1 | [
"BSD-3-Clause"
] | null | null | null | from .support import *
from .plotting import *
from ._sdt_metrics import *
from ._sdt_metrics import _S
| 21.6 | 29 | 0.75 | 15 | 108 | 5.066667 | 0.466667 | 0.394737 | 0.342105 | 0.526316 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 4 | 30 | 27 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
3fd1c5c4baa65d34af26e01f7c009304540f1897 | 605 | py | Python | Initials.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | Initials.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | Initials.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | print("My name is Jessica Bonnie Ayomide")
print("JJJJJJJJJJJJJ BBBBBBBBBB A")
print(" J B B A A")
print(" J B B A A")
print(" J B B A A")
print(" J B B A A")
print(" J BB... | 46.538462 | 51 | 0.317355 | 70 | 605 | 2.742857 | 0.2 | 0.28125 | 0.291667 | 0.166667 | 0.489583 | 0.489583 | 0.489583 | 0.489583 | 0.489583 | 0.489583 | 0 | 0 | 0.603306 | 605 | 12 | 52 | 50.416667 | 0.8 | 0 | 0 | 0.666667 | 0 | 0 | 0.797639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
b7510df03978635b1d1dd94e0cc082003f3aa08e | 17,418 | py | Python | src/data_loader.py | Taye310/hmd | 46d453392213b8ead39f8e850054fc7bbb81146b | [
"MIT"
] | null | null | null | src/data_loader.py | Taye310/hmd | 46d453392213b8ead39f8e850054fc7bbb81146b | [
"MIT"
] | null | null | null | src/data_loader.py | Taye310/hmd | 46d453392213b8ead39f8e850054fc7bbb81146b | [
"MIT"
] | null | null | null | from torch.utils.data.dataset import Dataset
import numpy as np
import PIL.Image
import random
import json
import pickle
import torchvision.transforms as transforms
from utility import center_crop
import os
import cv2
import configparser
conf = configparser.ConfigParser()
conf.read(u'../conf.ini', encoding='utf8')
tgt... | 37.059574 | 100 | 0.524056 | 2,191 | 17,418 | 3.893199 | 0.090826 | 0.030363 | 0.03939 | 0.031653 | 0.823095 | 0.811958 | 0.781008 | 0.75932 | 0.756389 | 0.728722 | 0 | 0.029402 | 0.322425 | 17,418 | 469 | 101 | 37.138593 | 0.693357 | 0.190263 | 0 | 0.765517 | 0 | 0 | 0.04583 | 0.008779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062069 | false | 0 | 0.037931 | 0.02069 | 0.168966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b77bb594277aad12ca4e874bc36e5e0acbbb6f99 | 3,766 | py | Python | tests/tasks/mysql/test_mysql.py | vlad-mois/prefect | 5427ddb2e49dc4732ad034c58ed2604ea1faa4a3 | [
"Apache-2.0"
] | 3 | 2021-11-09T10:46:58.000Z | 2022-03-11T04:22:35.000Z | tests/tasks/mysql/test_mysql.py | vlad-mois/prefect | 5427ddb2e49dc4732ad034c58ed2604ea1faa4a3 | [
"Apache-2.0"
] | null | null | null | tests/tasks/mysql/test_mysql.py | vlad-mois/prefect | 5427ddb2e49dc4732ad034c58ed2604ea1faa4a3 | [
"Apache-2.0"
] | 1 | 2022-03-11T04:22:40.000Z | 2022-03-11T04:22:40.000Z | import pytest
import pymysql
from unittest.mock import MagicMock
from prefect.tasks.mysql.mysql import MySQLExecute, MySQLFetch
class TestMySQLExecute:
def test_construction(self):
task = MySQLExecute(db_name="test", user="test", password="test", host="test")
assert (task.commit is False) and (ta... | 39.229167 | 150 | 0.635953 | 445 | 3,766 | 5.177528 | 0.193258 | 0.065104 | 0.047743 | 0.06684 | 0.823351 | 0.764323 | 0.735677 | 0.722222 | 0.712674 | 0.684896 | 0 | 0.00139 | 0.235794 | 3,766 | 95 | 151 | 39.642105 | 0.799166 | 0 | 0 | 0.605263 | 0 | 0.039474 | 0.237387 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.144737 | false | 0.197368 | 0.052632 | 0 | 0.223684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
b7aebd54c20d3154cab1dfe3274a13e135f6b8d8 | 400 | py | Python | Platforms/Web/Processing/__init__.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 2 | 2017-09-14T08:07:55.000Z | 2021-05-18T05:05:05.000Z | Platforms/Web/Processing/__init__.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 111 | 2018-04-15T14:32:14.000Z | 2021-03-28T21:06:29.000Z | Platforms/Web/Processing/__init__.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 1 | 2018-04-15T13:24:44.000Z | 2018-04-15T13:24:44.000Z | import Platforms.Web.Processing.Account as Account
import Platforms.Web.Processing.Admin as Admin
import Platforms.Web.Processing.Api as Api
import Platforms.Web.Processing.Discord as Discord
import Platforms.Web.Processing.Twitch as Twitch
import Platforms.Web.Processing.errors as errors
import Platforms.Web.Processi... | 44.444444 | 56 | 0.86 | 56 | 400 | 6.142857 | 0.232143 | 0.348837 | 0.418605 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 400 | 9 | 56 | 44.444444 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b7f812758c108f6bbf0f3ac2fa32b49e9949e4f6 | 134,671 | py | Python | main.py | w4rexx/MeCopy | 25e48439b654e3afab053c3b015ac2d97ad8c7f2 | [
"MIT"
] | null | null | null | main.py | w4rexx/MeCopy | 25e48439b654e3afab053c3b015ac2d97ad8c7f2 | [
"MIT"
] | null | null | null | main.py | w4rexx/MeCopy | 25e48439b654e3afab053c3b015ac2d97ad8c7f2 | [
"MIT"
] | 1 | 2021-12-21T08:56:10.000Z | 2021-12-21T08:56:10.000Z | """
MeCopy (Modular Extension Copy) It is a GUI for Robocopy based on independent modules
in which you can copy, move or delete files on your computer at the same time without
any module interfering with each other.
Copyright© W4rex / Alejandro Duarte
Github: https://github.com/w4rexx/MeCopy
"""
import sys
import... | 37.253389 | 332 | 0.640524 | 18,647 | 134,671 | 4.357001 | 0.030943 | 0.019349 | 0.01669 | 0.017724 | 0.90072 | 0.855905 | 0.80224 | 0.77142 | 0.71682 | 0.693655 | 0 | 0.046187 | 0.220901 | 134,671 | 3,615 | 333 | 37.253389 | 0.728131 | 0.009787 | 0 | 0.524672 | 0 | 0.008096 | 0.184421 | 0.006962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053971 | false | 0.050116 | 0.01118 | 0 | 0.065921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
4d2cb4d1d4cc023a0d4070cae391a7b262a9e4eb | 544 | py | Python | notebook/numpy_1d_to_2d.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/numpy_1d_to_2d.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/numpy_1d_to_2d.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import numpy as np
a = np.arange(6)
print(a)
# [0 1 2 3 4 5]
print(a.reshape(2, 3))
# [[0 1 2]
# [3 4 5]]
print(a.reshape(-1, 3))
# [[0 1 2]
# [3 4 5]]
print(a.reshape(2, -1))
# [[0 1 2]
# [3 4 5]]
# print(a.reshape(3, 4))
# ValueError: cannot reshape array of size 6 into shape (3,4)
# print(a.reshape(-1, 4))
... | 17 | 61 | 0.544118 | 115 | 544 | 2.573913 | 0.208696 | 0.060811 | 0.070946 | 0.094595 | 0.810811 | 0.810811 | 0.810811 | 0.75 | 0.75 | 0.685811 | 0 | 0.143187 | 0.204044 | 544 | 31 | 62 | 17.548387 | 0.540416 | 0.520221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 7 |
4d947a0b167d9de255a54dc5be6979955989f1a7 | 998 | py | Python | Projects/GameClass Coding Exercise/minimax_helper.py | echen805/AIND | 969b4cad97ddbf7841c79dad862d4d1142825565 | [
"MIT"
] | null | null | null | Projects/GameClass Coding Exercise/minimax_helper.py | echen805/AIND | 969b4cad97ddbf7841c79dad862d4d1142825565 | [
"MIT"
] | null | null | null | Projects/GameClass Coding Exercise/minimax_helper.py | echen805/AIND | 969b4cad97ddbf7841c79dad862d4d1142825565 | [
"MIT"
] | null | null | null |
def min_value(gameState):
""" Return the game state utility if the game is over,
otherwise return the minimum value over all legal successors
# HINT: Assume that the utility is ALWAYS calculated for
player 1, NOT for the "active" player
"""
# TODO: finish this function!
if gam... | 31.1875 | 64 | 0.647295 | 138 | 998 | 4.637681 | 0.311594 | 0.0875 | 0.053125 | 0.071875 | 0.9375 | 0.9375 | 0.85 | 0.85 | 0.85 | 0.85 | 0 | 0.005457 | 0.265531 | 998 | 32 | 65 | 31.1875 | 0.867667 | 0.488978 | 0 | 0.571429 | 0 | 0 | 0.015453 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
151829b2983743fbbaa34d611b1b2854c61eaf08 | 110,488 | py | Python | sdk/VisualSearch/visual_search_client/models/_models.py | WMRamadan/bing-search-sdk-for-python | 276d9cd6963c939081b3dec91bdd9aded42b3b35 | [
"MIT"
] | 12 | 2021-03-11T20:24:12.000Z | 2022-02-10T22:55:03.000Z | sdk/VisualSearch/visual_search_client/models/_models.py | WMRamadan/bing-search-sdk-for-python | 276d9cd6963c939081b3dec91bdd9aded42b3b35 | [
"MIT"
] | null | null | null | sdk/VisualSearch/visual_search_client/models/_models.py | WMRamadan/bing-search-sdk-for-python | 276d9cd6963c939081b3dec91bdd9aded42b3b35 | [
"MIT"
] | 10 | 2021-03-09T17:02:48.000Z | 2022-02-12T18:40:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator})
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ---------------------------------------... | 40.119099 | 271 | 0.611578 | 13,491 | 110,488 | 4.885479 | 0.053814 | 0.041208 | 0.018571 | 0.027674 | 0.809285 | 0.787179 | 0.778941 | 0.753877 | 0.74975 | 0.743878 | 0 | 0.001021 | 0.237447 | 110,488 | 2,753 | 272 | 40.133672 | 0.781254 | 0.483546 | 0 | 0.743976 | 1 | 0 | 0.344387 | 0.003716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031627 | false | 0 | 0.001506 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
127c540ca775ec4f4070d88907e7e29e4bff751f | 3,831 | py | Python | fnat_testset/testlib/Huawei3328.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | fnat_testset/testlib/Huawei3328.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | fnat_testset/testlib/Huawei3328.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | import pexpect
class Huawei3328:
def __init__(self,str_host,str_user=None,str_passwd=None):
self.ipaddr=str_host
print('Huawei3328')
def set_speed_duplex_value(self,port,speed,duplex):
if (speed == 'auto' and duplex == 'auto'):
child = pexpect.spawn('telnet %s' % self.... | 37.194175 | 71 | 0.528322 | 410 | 3,831 | 4.890244 | 0.134146 | 0.246384 | 0.152618 | 0.131671 | 0.874813 | 0.874813 | 0.874813 | 0.874813 | 0.874813 | 0.874813 | 0 | 0.010322 | 0.342469 | 3,831 | 102 | 72 | 37.558824 | 0.785629 | 0 | 0 | 0.793478 | 0 | 0 | 0.193784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0.01087 | 0.01087 | 0 | 0.086957 | 0.076087 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
128f99f10db94172b49267c111a6a535911f3722 | 507 | py | Python | food/models.py | Frank1963-mpoyi/Fast-Food-Web-App | 4dff055c6785708b6bf98bfb5fac13dc61e089bc | [
"MIT"
] | null | null | null | food/models.py | Frank1963-mpoyi/Fast-Food-Web-App | 4dff055c6785708b6bf98bfb5fac13dc61e089bc | [
"MIT"
] | null | null | null | food/models.py | Frank1963-mpoyi/Fast-Food-Web-App | 4dff055c6785708b6bf98bfb5fac13dc61e089bc | [
"MIT"
] | null | null | null | from django.db import models
class Pizza(models.Model):
name = models.CharField(max_length=120)
priceM = models.DecimalField(max_digits=4, decimal_places=2)
priceL = models.DecimalField(max_digits=4, decimal_places=2)
pImage = models.URLField()
class Burger(models.Model):
name = models.Char... | 29.823529 | 64 | 0.731755 | 67 | 507 | 5.38806 | 0.373134 | 0.199446 | 0.232687 | 0.299169 | 0.764543 | 0.764543 | 0.764543 | 0.764543 | 0.764543 | 0.764543 | 0 | 0.032864 | 0.159763 | 507 | 17 | 65 | 29.823529 | 0.814554 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
12f7c3e6b9c591636bf2b34b2fc629208a6099f2 | 71,151 | py | Python | cassandra_storage.py | SunBurst/hydroview-celery | a69e6b5ec755bb91056a30b924e7d7c05386898a | [
"MIT"
] | null | null | null | cassandra_storage.py | SunBurst/hydroview-celery | a69e6b5ec755bb91056a30b924e7d7c05386898a | [
"MIT"
] | null | null | null | cassandra_storage.py | SunBurst/hydroview-celery | a69e6b5ec755bb91056a30b924e7d7c05386898a | [
"MIT"
] | null | null | null | #!/usr/bin/env
# -*- coding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import argparse
import datetime
import logging.config
import pytz
from campbellsciparser import cr
from tasks import insert_to_daily_single_measurements_by_sensor
from tasks impo... | 52.509963 | 286 | 0.706357 | 9,989 | 71,151 | 4.62709 | 0.018721 | 0.050736 | 0.058416 | 0.04907 | 0.975227 | 0.972782 | 0.970078 | 0.96839 | 0.966508 | 0.957443 | 0 | 0.002214 | 0.187475 | 71,151 | 1,354 | 287 | 52.548744 | 0.797274 | 0.013788 | 0 | 0.843996 | 0 | 0 | 0.116875 | 0.02719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033304 | false | 0 | 0.022787 | 0 | 0.087642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
421a640fce40664e6ed3ad534d67e313c603bdf4 | 9,369 | py | Python | test/doublylinkedlist_test.py | ruyadorno/simple-data-structures | 28d6aeebb6d909fe64a327c3ec1c39526d35a173 | [
"MIT"
] | 2 | 2017-09-29T10:01:32.000Z | 2022-02-20T01:02:38.000Z | test/doublylinkedlist_test.py | ruyadorno/simple-data-structures | 28d6aeebb6d909fe64a327c3ec1c39526d35a173 | [
"MIT"
] | 1 | 2017-02-28T14:27:46.000Z | 2020-04-17T16:34:53.000Z | test/doublylinkedlist_test.py | ruyadorno/simple-data-structures | 28d6aeebb6d909fe64a327c3ec1c39526d35a173 | [
"MIT"
] | 1 | 2022-02-20T01:02:39.000Z | 2022-02-20T01:02:39.000Z | import unittest
from doublylinkedlist import DoublyLinkedList, DoublyLinkedListNode, DoublyLinkedListError
class TestDoublyLinkedList(unittest.TestCase):
def test_create_new_linked_list(self):
dl_list = DoublyLinkedList()
self.assertIsInstance(dl_list, DoublyLinkedList)
def test_create_new_li... | 43.780374 | 90 | 0.652578 | 1,331 | 9,369 | 4.381668 | 0.055597 | 0.150206 | 0.05144 | 0.159636 | 0.91701 | 0.86917 | 0.813272 | 0.80727 | 0.787894 | 0.780007 | 0 | 0.020969 | 0.211015 | 9,369 | 213 | 91 | 43.985915 | 0.767992 | 0 | 0 | 0.564246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.486034 | 1 | 0.178771 | false | 0 | 0.011173 | 0 | 0.195531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
429bd00baf3ef49a96893b9200b61be3510c533c | 121 | py | Python | odoo-13.0/addons/base_import_module/models/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/base_import_module/models/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/base_import_module/models/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
from . import base_import_module
from . import ir_module
from . import ir_ui_view
| 20.166667 | 32 | 0.719008 | 19 | 121 | 4.315789 | 0.631579 | 0.365854 | 0.390244 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.165289 | 121 | 5 | 33 | 24.2 | 0.792079 | 0.280992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
35eec08215d3d083527a356bb3fa7e82708262a1 | 4,978 | py | Python | acorns/plotting.py | jdhenshaw/leodis | 9c018d69102e15f0387aa9449944fa90f20c5a0d | [
"MIT"
] | 3 | 2020-04-06T12:11:21.000Z | 2022-01-07T07:52:21.000Z | acorns/plotting.py | jdhenshaw/leodis | 9c018d69102e15f0387aa9449944fa90f20c5a0d | [
"MIT"
] | null | null | null | acorns/plotting.py | jdhenshaw/leodis | 9c018d69102e15f0387aa9449944fa90f20c5a0d | [
"MIT"
] | 1 | 2019-10-30T15:37:17.000Z | 2019-10-30T15:37:17.000Z | # Licensed under an MIT open source license - see LICENSE
"""
acorns - Agglomerative Clustering for ORgansing Nested Structures
Copyright (c) 2017 Jonathan D. Henshaw
CONTACT: j.d.henshaw@ljmu.ac.uk
"""
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.pyplot import cm
from mpl_toolkits.mplot3d import... | 45.254545 | 119 | 0.557855 | 660 | 4,978 | 4.119697 | 0.15 | 0.121368 | 0.206326 | 0.083854 | 0.873115 | 0.866495 | 0.866495 | 0.866495 | 0.8573 | 0.847738 | 0 | 0.043091 | 0.277421 | 4,978 | 109 | 120 | 45.669725 | 0.712816 | 0.038771 | 0 | 0.83908 | 0 | 0 | 0.020096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.057471 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c401717d01596c47e1ecc86c08755daba143cae7 | 21,857 | py | Python | mobilenet.py | QFaceblue/Driving-Behavior-Recognition | 98c8fab51c7074852598ea9119f472ed7b1bda13 | [
"Apache-2.0"
] | 1 | 2022-03-13T14:37:17.000Z | 2022-03-13T14:37:17.000Z | mobilenet.py | QFaceblue/Driving-Behavior-Recognition | 98c8fab51c7074852598ea9119f472ed7b1bda13 | [
"Apache-2.0"
] | null | null | null | mobilenet.py | QFaceblue/Driving-Behavior-Recognition | 98c8fab51c7074852598ea9119f472ed7b1bda13 | [
"Apache-2.0"
] | null | null | null | from torch import nn
__all__ = ['MobileNetV2']
def _make_divisible(v, divisor, min_value=None):
"""
This function is taken from the original tf repo.
It ensures that all layers have a channel number that is divisible by 8
It can be seen here:
https://github.com/tensorflow/models/blob/master/resear... | 36.489149 | 107 | 0.569383 | 2,902 | 21,857 | 4.13439 | 0.099242 | 0.048758 | 0.036423 | 0.018003 | 0.835389 | 0.822887 | 0.812469 | 0.804134 | 0.794382 | 0.791132 | 0 | 0.040689 | 0.317473 | 21,857 | 599 | 108 | 36.489149 | 0.763574 | 0.22693 | 0 | 0.705729 | 0 | 0 | 0.017391 | 0.00303 | 0 | 0 | 0 | 0 | 0.010417 | 1 | 0.065104 | false | 0 | 0.010417 | 0.007813 | 0.153646 | 0.013021 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c438fb161b7d5262c315d1aaafbc5136989d05ef | 84,051 | py | Python | src/plugins/srv6-mobile/extra/runner.py | cscnull/vpp | c95eefb393d05167ce6e35e5617179f536de0bda | [
"Apache-2.0"
] | null | null | null | src/plugins/srv6-mobile/extra/runner.py | cscnull/vpp | c95eefb393d05167ce6e35e5617179f536de0bda | [
"Apache-2.0"
] | null | null | null | src/plugins/srv6-mobile/extra/runner.py | cscnull/vpp | c95eefb393d05167ce6e35e5617179f536de0bda | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from os.path import dirname, realpath, split,\
join, isdir, exists
from os import remove, system, mkdir
from logging import getLogger, basicConfig,\
DEBUG, INFO, ERROR
from argparse import ArgumentParser
from atexit import register
from shutil import rmtree
from jinja2 import Environmen... | 32.552672 | 110 | 0.557019 | 12,347 | 84,051 | 3.635539 | 0.032721 | 0.045224 | 0.022723 | 0.030298 | 0.868762 | 0.850472 | 0.835145 | 0.82942 | 0.827883 | 0.825454 | 0 | 0.085557 | 0.284256 | 84,051 | 2,581 | 111 | 32.565285 | 0.660599 | 0.043831 | 0 | 0.755807 | 0 | 0.008161 | 0.235739 | 0.000753 | 0 | 0 | 0 | 0.000387 | 0.000628 | 1 | 0.052103 | false | 0.001883 | 0.006905 | 0.008161 | 0.084118 | 0.072819 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c478170930724a811dfa7830ebef5b7b3e5c4760 | 3,938 | py | Python | test/test_2d_line.py | BurnySc2/Python-Generators | 428263db1e75fe54e4bdb90c39262c528b878388 | [
"MIT"
] | null | null | null | test/test_2d_line.py | BurnySc2/Python-Generators | 428263db1e75fe54e4bdb90c39262c528b878388 | [
"MIT"
] | null | null | null | test/test_2d_line.py | BurnySc2/Python-Generators | 428263db1e75fe54e4bdb90c39262c528b878388 | [
"MIT"
] | null | null | null | import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import math
from hypothesis import given, settings, strategies as st
from generators_2d.generators import generate_2d_line
@given(
st.integers(min_value=-10 ** 5, max_value=10 ** 5),
st.integers(min_value=-10 ** 5, max_value=10 ... | 29.609023 | 69 | 0.584053 | 682 | 3,938 | 3.205279 | 0.133431 | 0.021958 | 0.073193 | 0.131747 | 0.801006 | 0.774016 | 0.774016 | 0.747941 | 0.702653 | 0.668801 | 0 | 0.100633 | 0.237938 | 3,938 | 132 | 70 | 29.833333 | 0.627791 | 0.074657 | 0 | 0.553191 | 1 | 0 | 0.009351 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.053191 | false | 0 | 0.042553 | 0 | 0.095745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
672ce002de690c0f9465a092c53d7a026be83156 | 31,029 | py | Python | py4j-python/src/py4j/tests/memory_leak_test.py | dHannasch/py4j | 21f17f9e723729433f5f1abcf79482c1efb2ff89 | [
"BSD-3-Clause"
] | 3,301 | 2018-10-01T16:30:44.000Z | 2022-03-30T08:07:16.000Z | py4j-python/src/py4j/tests/memory_leak_test.py | dHannasch/py4j | 21f17f9e723729433f5f1abcf79482c1efb2ff89 | [
"BSD-3-Clause"
] | 308 | 2015-01-08T00:29:52.000Z | 2022-02-16T02:31:17.000Z | py4j-python/src/py4j/tests/memory_leak_test.py | dHannasch/py4j | 21f17f9e723729433f5f1abcf79482c1efb2ff89 | [
"BSD-3-Clause"
] | 765 | 2018-10-09T02:02:19.000Z | 2022-03-31T12:06:21.000Z | # -*- coding: UTF-8 -*-
from contextlib import contextmanager
import gc
from multiprocessing import Process
import subprocess
import unittest
from py4j.java_gateway import (
JavaGateway, GatewayParameters, CallbackServerParameters,
DEFAULT_PORT, DEFAULT_PYTHON_PROXY_PORT)
from py4j.clientserver import (
Cl... | 40.507833 | 78 | 0.618099 | 2,649 | 31,029 | 7.081918 | 0.090223 | 0.054371 | 0.047601 | 0.077399 | 0.848827 | 0.835394 | 0.801493 | 0.793923 | 0.773987 | 0.762473 | 0 | 0.016005 | 0.305295 | 31,029 | 765 | 79 | 40.560784 | 0.854287 | 0.16549 | 0 | 0.829091 | 0 | 0 | 0.009895 | 0.003648 | 0 | 0 | 0 | 0 | 0.161818 | 1 | 0.085455 | false | 0 | 0.018182 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
674cd9effe46aa856791aad5cfee5cbd9ff2ea52 | 6,639 | py | Python | aimsweb/aims/models.py | DNATUNA/ELKDjangoWork | 8c1b20e802a16d3d7922d1e20c80a900c23ffad1 | [
"MIT"
] | null | null | null | aimsweb/aims/models.py | DNATUNA/ELKDjangoWork | 8c1b20e802a16d3d7922d1e20c80a900c23ffad1 | [
"MIT"
] | 3 | 2019-11-23T05:08:18.000Z | 2021-06-10T21:06:51.000Z | aimsweb/aims/models.py | DNATUNA/ELKDjangoWork | 8c1b20e802a16d3d7922d1e20c80a900c23ffad1 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.urls import reverse
# Create your models here.
class LogInfo(models.Model):
aims_id = models.CharField(max_length=100)
host_id = models.CharField(max_length=100)
app_id = models.CharField(max_length=100)
app_name = models.Char... | 54.418033 | 86 | 0.758096 | 985 | 6,639 | 4.880203 | 0.08731 | 0.146037 | 0.19222 | 0.226337 | 0.897857 | 0.891408 | 0.870605 | 0.841689 | 0.841689 | 0.841689 | 0 | 0.051995 | 0.128031 | 6,639 | 121 | 87 | 54.867769 | 0.778373 | 0.003615 | 0 | 0.201923 | 0 | 0 | 0.003327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028846 | false | 0 | 0.028846 | 0.019231 | 0.980769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 9 |
67698258d58d0a1918ac97b7476911f69f73bf86 | 17,613 | py | Python | sdk/python/pulumi_azure/mysql/flexible_server_configuration.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/mysql/flexible_server_configuration.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/mysql/flexible_server_configuration.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 49.754237 | 284 | 0.68069 | 2,097 | 17,613 | 5.528851 | 0.100143 | 0.053131 | 0.065206 | 0.053131 | 0.827411 | 0.809039 | 0.802657 | 0.774452 | 0.767983 | 0.754614 | 0 | 0.007158 | 0.230625 | 17,613 | 353 | 285 | 49.895184 | 0.848424 | 0.475842 | 0 | 0.602273 | 1 | 0 | 0.104003 | 0.020922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153409 | false | 0.005682 | 0.028409 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
67a3d4ae1c7b0cfeee8c426acb4eb96c8114ee10 | 157 | py | Python | keydecomposer/__init__.py | DocSchlock/KeyDecomposer | 581422e49e5eff2853f4f43b2e2c675cd40da664 | [
"BSD-3-Clause"
] | null | null | null | keydecomposer/__init__.py | DocSchlock/KeyDecomposer | 581422e49e5eff2853f4f43b2e2c675cd40da664 | [
"BSD-3-Clause"
] | null | null | null | keydecomposer/__init__.py | DocSchlock/KeyDecomposer | 581422e49e5eff2853f4f43b2e2c675cd40da664 | [
"BSD-3-Clause"
] | null | null | null | from .keydecompose import decompose_frame, recur_weights, generate_weighted_series
__all__ = ['decompose_frame','recur_weights','generate_weighted_series']
| 39.25 | 82 | 0.847134 | 18 | 157 | 6.722222 | 0.611111 | 0.231405 | 0.31405 | 0.429752 | 0.793388 | 0.793388 | 0.793388 | 0 | 0 | 0 | 0 | 0 | 0.063694 | 157 | 3 | 83 | 52.333333 | 0.823129 | 0 | 0 | 0 | 1 | 0 | 0.33121 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
67a549aceb79ea0d1f5543bae9d7505cb1a9f411 | 2,908 | py | Python | test/pyaz/ams/account_filter/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | test/pyaz/ams/account_filter/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | 9 | 2021-09-24T16:37:24.000Z | 2021-12-24T00:39:19.000Z | test/pyaz/ams/account_filter/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def create(account_name, resource_group, name, start_timestamp=None, end_timestamp=None, presentation_window_duration=None, live_backoff_duration=None, timescale=None, force_end_timestamp=None, bitrate=None, first_quality=None, tracks=None):
... | 39.297297 | 293 | 0.689133 | 364 | 2,908 | 5.401099 | 0.164835 | 0.071211 | 0.050865 | 0.053408 | 0.90234 | 0.870804 | 0.870804 | 0.870804 | 0.833164 | 0.833164 | 0 | 0.004288 | 0.198074 | 2,908 | 73 | 294 | 39.835616 | 0.838765 | 0 | 0 | 0.820896 | 0 | 0 | 0.065681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.029851 | 0 | 0.179104 | 0.223881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
67c1a3dcc8915fc7fd6555a1d5521205b59ea28d | 16,833 | py | Python | tests/test_atom.py | jkohrman/dnstwister | ff668f139a5d49665fd555340be2b63b6c2a91e7 | [
"Unlicense"
] | null | null | null | tests/test_atom.py | jkohrman/dnstwister | ff668f139a5d49665fd555340be2b63b6c2a91e7 | [
"Unlicense"
] | null | null | null | tests/test_atom.py | jkohrman/dnstwister | ff668f139a5d49665fd555340be2b63b6c2a91e7 | [
"Unlicense"
] | null | null | null | """Tests of the atom behaviour."""
# -*- coding: UTF-8 -*-
import base64
import datetime
import textwrap
import unittest
import pytest
import flask.ext.webtest
import mock
import webtest.app
import dnstwister
from dnstwister import tools
import patches
@mock.patch('dnstwister.repository.db', patche... | 43.835938 | 145 | 0.595675 | 1,908 | 16,833 | 5.187631 | 0.126834 | 0.004849 | 0.03334 | 0.023641 | 0.913417 | 0.885734 | 0.874621 | 0.861285 | 0.845322 | 0.836027 | 0 | 0.118809 | 0.277966 | 16,833 | 383 | 146 | 43.950392 | 0.695573 | 0.106636 | 0 | 0.808824 | 0 | 0.058824 | 0.540146 | 0.152045 | 0 | 0 | 0 | 0.005222 | 0.099265 | 1 | 0.044118 | false | 0 | 0.040441 | 0 | 0.091912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
67f0b45fe3b23d31d877bb9115bb3fa1da43fa74 | 66,953 | py | Python | yandex/cloud/mdb/postgresql/v1/config/host13_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 36 | 2018-12-23T13:51:50.000Z | 2022-03-25T07:48:24.000Z | yandex/cloud/mdb/postgresql/v1/config/host13_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 15 | 2019-02-28T04:55:09.000Z | 2022-03-06T23:17:24.000Z | yandex/cloud/mdb/postgresql/v1/config/host13_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 18 | 2019-02-23T07:10:57.000Z | 2022-03-28T14:41:08.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/mdb/postgresql/v1/config/host13.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | 65.640196 | 9,166 | 0.797769 | 8,550 | 66,953 | 5.878363 | 0.060702 | 0.041385 | 0.087326 | 0.068225 | 0.780919 | 0.764544 | 0.756725 | 0.740251 | 0.718046 | 0.677457 | 0 | 0.054656 | 0.098487 | 66,953 | 1,019 | 9,167 | 65.704612 | 0.778028 | 0.005108 | 0 | 0.613751 | 1 | 0.008089 | 0.233919 | 0.200225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006067 | 0 | 0.006067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
db2a68efc21037b8245aec7fcd6a0709e07240e0 | 2,164 | py | Python | sdk/python/pulumi_aws/secretsmanager/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/secretsmanager/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/secretsmanager/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 36.066667 | 142 | 0.712569 | 242 | 2,164 | 6.090909 | 0.297521 | 0.21981 | 0.268657 | 0.141113 | 0.72863 | 0.72863 | 0.72863 | 0.72863 | 0.72863 | 0.72863 | 0 | 0.000575 | 0.195933 | 2,164 | 59 | 143 | 36.677966 | 0.846552 | 0.28281 | 0 | 0.666667 | 1 | 0 | 0.166323 | 0.166323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.151515 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
e1d87411fb96da065e806ccc7f4e72aedfc9905b | 446 | py | Python | day2/test_day2.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | day2/test_day2.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | day2/test_day2.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | from day2 import *
import unittest
def test_run_intcode_computer():
assert run_intcode_computer([1,0,0,0,99]) == [2,0,0,0,99]
assert run_intcode_computer([2,3,0,3,99]) == [2,3,0,6,99]
assert run_intcode_computer([2,4,4,5,99,0]) == [2,4,4,5,99,9801]
assert run_intcode_computer([1,1,1,4,99,5,6,0,99]) == ... | 44.6 | 103 | 0.647982 | 104 | 446 | 2.653846 | 0.259615 | 0.217391 | 0.391304 | 0.434783 | 0.615942 | 0.391304 | 0.094203 | 0.094203 | 0 | 0 | 0 | 0.261965 | 0.109865 | 446 | 9 | 104 | 49.555556 | 0.433249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2252a2644c4f46ed139989cc4c39c1696d549f4a | 2,996 | py | Python | tests/unit_tests/test_tethys_apps/test_cli/test_list_commands.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2020-10-08T20:38:33.000Z | 2020-10-08T20:38:33.000Z | tests/unit_tests/test_tethys_apps/test_cli/test_list_commands.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2018-04-14T19:40:54.000Z | 2018-04-14T19:40:54.000Z | tests/unit_tests/test_tethys_apps/test_cli/test_list_commands.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2021-09-07T14:47:11.000Z | 2021-09-07T14:47:11.000Z | import unittest
import mock
from tethys_apps.cli.list_command import list_command
try:
from StringIO import StringIO
except ImportError:
from io import StringIO # noqa: F401
class ListCommandTests(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
@mock.patch('... | 36.096386 | 113 | 0.693591 | 394 | 2,996 | 4.918782 | 0.139594 | 0.096491 | 0.067079 | 0.087719 | 0.865325 | 0.852941 | 0.852941 | 0.852941 | 0.852941 | 0.852941 | 0 | 0.00375 | 0.198932 | 2,996 | 82 | 114 | 36.536585 | 0.80375 | 0.038385 | 0 | 0.728814 | 0 | 0 | 0.190542 | 0.154381 | 0 | 0 | 0 | 0 | 0.186441 | 1 | 0.084746 | false | 0.033898 | 0.101695 | 0 | 0.20339 | 0.152542 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
22600a57d4b310a8b8a79c1799a74fce742c848e | 9,010 | py | Python | src/dns/azext_dns/tests/latest/test_dns_commands.py | mayank88mahajan/azure-cli-extensions | 8bd389a1877bffd14052bec5519ce75dc6fc34cf | [
"MIT"
] | 1 | 2019-05-10T19:58:09.000Z | 2019-05-10T19:58:09.000Z | src/dns/azext_dns/tests/latest/test_dns_commands.py | mayank88mahajan/azure-cli-extensions | 8bd389a1877bffd14052bec5519ce75dc6fc34cf | [
"MIT"
] | null | null | null | src/dns/azext_dns/tests/latest/test_dns_commands.py | mayank88mahajan/azure-cli-extensions | 8bd389a1877bffd14052bec5519ce75dc6fc34cf | [
"MIT"
] | 1 | 2021-07-28T14:50:54.000Z | 2021-07-28T14:50:54.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 51.781609 | 150 | 0.575472 | 1,266 | 9,010 | 4.035545 | 0.14218 | 0.063026 | 0.126052 | 0.146408 | 0.895087 | 0.8945 | 0.884713 | 0.874535 | 0.855158 | 0.855158 | 0 | 0.026189 | 0.237181 | 9,010 | 173 | 151 | 52.080925 | 0.717154 | 0.094673 | 0 | 0.775862 | 0 | 0.267241 | 0.526904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.025862 | 0 | 0.051724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
97db50d2849762e9e8fce2dd03942342c5cab4e4 | 272 | py | Python | new-feature.py | zacczakk/ismdtutorial | 219deb5f801e057592c72e73229d0470d0ad38a1 | [
"Unlicense"
] | 2 | 2021-03-12T17:08:21.000Z | 2022-03-21T09:09:22.000Z | new-feature.py | zacczakk/ismdtutorial | 219deb5f801e057592c72e73229d0470d0ad38a1 | [
"Unlicense"
] | null | null | null | new-feature.py | zacczakk/ismdtutorial | 219deb5f801e057592c72e73229d0470d0ad38a1 | [
"Unlicense"
] | null | null | null | E = [[ 0, 1, 0, 0, 0, 0],
[E21, 0, 0, E24, E25, 0],
[ 0, 0, 0, 1, 0, 0],
[ 0, 0, E43, 0, 0, -1],
[ 0, 0, 0, 0, 0, 1],
[E61, 0, 0, E64, E65, 0]]
| 38.857143 | 45 | 0.1875 | 37 | 272 | 1.378378 | 0.27027 | 0.627451 | 0.529412 | 0.392157 | 0.470588 | 0.392157 | 0.27451 | 0 | 0 | 0 | 0 | 0.421569 | 0.625 | 272 | 6 | 46 | 45.333333 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
97e9b2e553509f65526061b8c93b1c492238621a | 46,884 | py | Python | sw/sw.py | NIXC/Toxic-Cogs | 249977008121e3e8dd1bdca487be16228f4a1660 | [
"MIT"
] | null | null | null | sw/sw.py | NIXC/Toxic-Cogs | 249977008121e3e8dd1bdca487be16228f4a1660 | [
"MIT"
] | null | null | null | sw/sw.py | NIXC/Toxic-Cogs | 249977008121e3e8dd1bdca487be16228f4a1660 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2018-Present NeuroAssassin
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,... | 48.735967 | 100 | 0.458365 | 4,544 | 46,884 | 4.663072 | 0.057658 | 0.03398 | 0.041909 | 0.049743 | 0.846619 | 0.818963 | 0.806975 | 0.793903 | 0.753693 | 0.743688 | 0 | 0.012076 | 0.411825 | 46,884 | 961 | 101 | 48.786681 | 0.75631 | 0.023654 | 0 | 0.70575 | 0 | 0 | 0.123934 | 0 | 0 | 0 | 0.004379 | 0 | 0 | 1 | 0.003382 | false | 0.002255 | 0.007892 | 0 | 0.027058 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
97ef752b83e615d9888b7b7f8458da11f1907e90 | 159 | py | Python | stubalyzer/conftest.py | kialo/stub-analyzer | db702a23abda64a3f8e8debf5e175f62732ce827 | [
"MIT"
] | 7 | 2019-11-04T13:02:09.000Z | 2021-09-16T11:36:16.000Z | stubalyzer/conftest.py | kialo/stub-analyzer | db702a23abda64a3f8e8debf5e175f62732ce827 | [
"MIT"
] | 9 | 2019-12-04T14:46:47.000Z | 2022-01-03T15:29:53.000Z | stubalyzer/conftest.py | kialo/stub-analyzer | db702a23abda64a3f8e8debf5e175f62732ce827 | [
"MIT"
] | null | null | null | import pytest
from testing.util import MypyNodeFactory, mypy_node_factory
@pytest.fixture
def mypy_nodes() -> MypyNodeFactory:
return mypy_node_factory
| 17.666667 | 59 | 0.811321 | 20 | 159 | 6.2 | 0.65 | 0.129032 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 159 | 8 | 60 | 19.875 | 0.898551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
3f162555af2967f4dc9f7914c4f057f23bf0e254 | 121 | py | Python | bflib/items/jewelry/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/items/jewelry/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/items/jewelry/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.items.base import Item
from bflib.items import listing
@listing.register_type
class Jewelry(Item):
pass
| 15.125 | 33 | 0.785124 | 18 | 121 | 5.222222 | 0.666667 | 0.191489 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14876 | 121 | 7 | 34 | 17.285714 | 0.912621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
3f2a37489eb60d8ee21ccc8ecc329c6cb23cf780 | 51,397 | py | Python | src/oci/cloud_guard/cloud_guard_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/cloud_guard/cloud_guard_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/cloud_guard/cloud_guard_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 53.371755 | 251 | 0.698504 | 6,641 | 51,397 | 5.124228 | 0.03644 | 0.038877 | 0.050426 | 0.034058 | 0.945489 | 0.926712 | 0.915192 | 0.902028 | 0.898002 | 0.892889 | 0 | 0.00091 | 0.230305 | 51,397 | 962 | 252 | 53.427235 | 0.859302 | 0.458937 | 0 | 0.806683 | 0 | 0 | 0.026224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054893 | false | 0 | 0.004773 | 0 | 0.178998 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
58bfa069bfa7cc3647a01173c6223477abd52ea5 | 2,671 | py | Python | keras_segmentation/data_utils/bounding_box_iou_based_network_utils.py | mwaseema/image-segmentation-keras-implementation | e137b55c3a19787309f086744e3f7ed1b4df4520 | [
"MIT"
] | 1 | 2021-12-09T10:33:18.000Z | 2021-12-09T10:33:18.000Z | keras_segmentation/data_utils/bounding_box_iou_based_network_utils.py | mwaseema/image-segmentation-keras-implementation | e137b55c3a19787309f086744e3f7ed1b4df4520 | [
"MIT"
] | null | null | null | keras_segmentation/data_utils/bounding_box_iou_based_network_utils.py | mwaseema/image-segmentation-keras-implementation | e137b55c3a19787309f086744e3f7ed1b4df4520 | [
"MIT"
] | 1 | 2022-02-11T18:59:43.000Z | 2022-02-11T18:59:43.000Z | import tensorflow as tf
from keras import backend as K
from keras_segmentation.custom_losses import smooth_l1_loss
def bounding_box_iou_based_network_loss(y_true, y_pred):
pred_x1 = y_pred[:, 0]
pred_y1 = y_pred[:, 1]
pred_x2 = pred_x1 + y_pred[:, 2]
pred_y2 = pred_y1 + y_pred[:, 3]
true_x1 = y_... | 36.094595 | 115 | 0.678772 | 427 | 2,671 | 3.854801 | 0.114754 | 0.043742 | 0.072904 | 0.043742 | 0.869988 | 0.859052 | 0.859052 | 0.859052 | 0.816525 | 0.816525 | 0 | 0.053622 | 0.204043 | 2,671 | 73 | 116 | 36.589041 | 0.720602 | 0.008985 | 0 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.061224 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
58fa83f000f2d5f12eb5c2113826fc258b041c0c | 1,645 | py | Python | tests/blocks/signal/iirfilter_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 559 | 2016-07-02T19:07:39.000Z | 2022-03-28T15:02:21.000Z | tests/blocks/signal/iirfilter_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 68 | 2016-07-03T05:35:47.000Z | 2022-03-30T21:24:07.000Z | tests/blocks/signal/iirfilter_spec.py | telent/luaradio | c1cb47325e4eb2886915f810fff5324571aeb59d | [
"MIT"
] | 64 | 2016-07-02T23:59:10.000Z | 2022-02-02T18:11:07.000Z | import numpy
import scipy.signal
from generate import *
def generate():
def gentaps(n):
b, a = scipy.signal.butter(n - 1, 0.5)
return b.astype(numpy.float32), a.astype(numpy.float32)
def process(b_taps, a_taps, x):
return [scipy.signal.lfilter(b_taps, a_taps, x).astype(type(x[0]))]
... | 49.848485 | 174 | 0.691185 | 270 | 1,645 | 4.055556 | 0.140741 | 0.118721 | 0.109589 | 0.182648 | 0.77169 | 0.761644 | 0.745205 | 0.745205 | 0.745205 | 0.681279 | 0 | 0.094465 | 0.176292 | 1,645 | 32 | 175 | 51.40625 | 0.713653 | 0 | 0 | 0.24 | 1 | 0 | 0.302736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0.04 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
4502ac5fa102e0bc1790c06fd3eb3f8792a57e1e | 2,652 | py | Python | .c9/metadata/environment/helloWorld.py | shubhampotale/fuzzy-telegram | dff3b55f23ad243b88a8f222d74020c57842193d | [
"MIT"
] | null | null | null | .c9/metadata/environment/helloWorld.py | shubhampotale/fuzzy-telegram | dff3b55f23ad243b88a8f222d74020c57842193d | [
"MIT"
] | null | null | null | .c9/metadata/environment/helloWorld.py | shubhampotale/fuzzy-telegram | dff3b55f23ad243b88a8f222d74020c57842193d | [
"MIT"
] | null | null | null | {"filter":false,"title":"helloWorld.py","tooltip":"/helloWorld.py","undoManager":{"mark":6,"position":6,"stack":[[{"start":{"row":2,"column":3},"end":{"row":3,"column":0},"action":"insert","lines":["",""],"id":1},{"start":{"row":3,"column":0},"end":{"row":4,"column":0},"action":"insert","lines":["",""]}],[{"start":{"ro... | 2,652 | 2,652 | 0.553922 | 392 | 2,652 | 3.747449 | 0.145408 | 0.122532 | 0.306331 | 0.20354 | 0.603812 | 0.575221 | 0.549353 | 0.549353 | 0.462219 | 0.462219 | 0 | 0.057692 | 0 | 2,652 | 1 | 2,652 | 2,652 | 0.496229 | 0 | 0 | 0 | 0 | 0 | 0.498681 | 0.015077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
18914f8c6a7118c8b912c78ac9f81d9599133f5c | 272 | py | Python | PYTHON/pythonDesafios/desafio057.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio057.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio057.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | sexo = str(input('Digidite (F) ou (M) para indicar se é feminino ou masculino: ')).upper().strip()[0]
while sexo not in 'FMfm':
sexo = str( input( 'Digidite (F) ou (M) para indicar se é feminino ou masculino: ' ) ).upper().strip()[0]
print('Obrigado! sexo registrado') | 68 | 109 | 0.665441 | 43 | 272 | 4.209302 | 0.534884 | 0.077348 | 0.132597 | 0.220994 | 0.751381 | 0.751381 | 0.751381 | 0.751381 | 0.751381 | 0.751381 | 0 | 0.008734 | 0.158088 | 272 | 4 | 110 | 68 | 0.781659 | 0 | 0 | 0.5 | 0 | 0 | 0.553114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
18a1815cdbb9b1535638c94583e00d5917a09f9c | 116 | py | Python | collie/movielens/__init__.py | RomaKoks/collie_recs | bc8979c8dbf68deefb030336d50f07f788cf1667 | [
"BSD-3-Clause"
] | 70 | 2021-04-13T20:13:35.000Z | 2021-07-08T03:01:29.000Z | collie/movielens/__init__.py | RomaKoks/collie_recs | bc8979c8dbf68deefb030336d50f07f788cf1667 | [
"BSD-3-Clause"
] | 18 | 2021-07-13T22:06:11.000Z | 2022-01-27T16:27:37.000Z | collie/movielens/__init__.py | RomaKoks/collie_recs | bc8979c8dbf68deefb030336d50f07f788cf1667 | [
"BSD-3-Clause"
] | 11 | 2021-07-14T04:58:49.000Z | 2022-03-05T00:19:22.000Z | from collie.movielens.get_data import *
from collie.movielens.run import *
from collie.movielens.visualize import *
| 29 | 40 | 0.818966 | 16 | 116 | 5.875 | 0.5 | 0.319149 | 0.606383 | 0.531915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 116 | 3 | 41 | 38.666667 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
18d6e7220d177b964762f0c9b18d552114bc423c | 12,260 | py | Python | cairo/conanfile.py | popescu-af/conan-recipes | ad3f2eb10ebc4d75357f730374e5f554a577d3aa | [
"MIT"
] | null | null | null | cairo/conanfile.py | popescu-af/conan-recipes | ad3f2eb10ebc4d75357f730374e5f554a577d3aa | [
"MIT"
] | null | null | null | cairo/conanfile.py | popescu-af/conan-recipes | ad3f2eb10ebc4d75357f730374e5f554a577d3aa | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools
import os, shutil
cmakelists_txt="""\
project(cairo LANGUAGES C)
cmake_minimum_required(VERSION 3.5)
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -w -fPIC")
endif()
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
if(NOT CMAKE_... | 51.512605 | 110 | 0.764274 | 1,914 | 12,260 | 4.638454 | 0.147858 | 0.151385 | 0.224037 | 0.335886 | 0.748254 | 0.734062 | 0.734062 | 0.72415 | 0.582226 | 0.270106 | 0 | 0.002851 | 0.084421 | 12,260 | 237 | 111 | 51.729958 | 0.788062 | 0.002121 | 0 | 0.018018 | 0 | 0.004505 | 0.871403 | 0.714274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022523 | false | 0 | 0.009009 | 0 | 0.09009 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e171a5c5c8613d2389889230e3d49759bb78b616 | 30,456 | py | Python | SimPEG/EM/FDEM/FieldsFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | 1 | 2020-11-27T03:26:22.000Z | 2020-11-27T03:26:22.000Z | SimPEG/EM/FDEM/FieldsFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | null | null | null | SimPEG/EM/FDEM/FieldsFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.sparse as sp
import SimPEG
from SimPEG import Utils
from SimPEG.EM.Utils import omega
from SimPEG.Utils import Zero, Identity
class Fields(SimPEG.Problem.Fields):
"""
Fancy Field Storage for a FDEM survey. Only one field type is stored for
each problem, the rest are co... | 35.331787 | 154 | 0.607171 | 3,749 | 30,456 | 4.860496 | 0.047746 | 0.059269 | 0.031391 | 0.042147 | 0.831303 | 0.814839 | 0.792119 | 0.771266 | 0.758149 | 0.731588 | 0 | 0.001647 | 0.302305 | 30,456 | 861 | 155 | 35.372822 | 0.855899 | 0.472419 | 0 | 0.425926 | 0 | 0 | 0.048975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207407 | false | 0 | 0.022222 | 0 | 0.477778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
e18fb08f71eef65c110a75e64c5ead9db3e77a70 | 5,660 | py | Python | tests/test_projection.py | resonance20/pyronn-torch | 1707f955f9aecd3c3f8767e7d4516bd3b0298cfe | [
"MIT"
] | null | null | null | tests/test_projection.py | resonance20/pyronn-torch | 1707f955f9aecd3c3f8767e7d4516bd3b0298cfe | [
"MIT"
] | null | null | null | tests/test_projection.py | resonance20/pyronn-torch | 1707f955f9aecd3c3f8767e7d4516bd3b0298cfe | [
"MIT"
] | null | null | null | #
# Copyright © 2020 Stephan Seitz <stephan.seitz@fau.de>
#
# Distributed under terms of the GPLv3 license.
"""
"""
import numpy as np
import pytest
import pyronn_torch
def test_init():
assert pyronn_torch.cpp_extension
@pytest.mark.parametrize('with_texture', ('with_texture', False))
@pytest.mark.parametriz... | 30.76087 | 79 | 0.641519 | 767 | 5,660 | 4.585398 | 0.143416 | 0.061416 | 0.020472 | 0.063122 | 0.820586 | 0.806085 | 0.804379 | 0.793005 | 0.766847 | 0.723344 | 0 | 0.151253 | 0.224382 | 5,660 | 183 | 80 | 30.928962 | 0.649658 | 0.04841 | 0 | 0.764228 | 0 | 0 | 0.027949 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.073171 | false | 0 | 0.089431 | 0 | 0.162602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e1a89978db04c6d4bb41d715fd6fb4d53f2cd2d2 | 9,019 | py | Python | services/event_service/event_info_services.py | hnguyenworkstation/hoocons_backend | 725461812a172ca0a88181e3399e6e2294953273 | [
"MIT"
] | null | null | null | services/event_service/event_info_services.py | hnguyenworkstation/hoocons_backend | 725461812a172ca0a88181e3399e6e2294953273 | [
"MIT"
] | null | null | null | services/event_service/event_info_services.py | hnguyenworkstation/hoocons_backend | 725461812a172ca0a88181e3399e6e2294953273 | [
"MIT"
] | null | null | null | from datetime import datetime
from flask_jwt import jwt_required, current_identity
from flask_restful import reqparse, Resource
from static import app_constant
import static.status as status
from models.base_event import BaseEvent
from models.action import BaseAction
class CreateEventRequest(Resource):
@jwt_req... | 44.428571 | 120 | 0.633773 | 1,049 | 9,019 | 5.241182 | 0.123928 | 0.052746 | 0.074209 | 0.064933 | 0.88123 | 0.865042 | 0.859403 | 0.837941 | 0.837941 | 0.837941 | 0 | 0.013114 | 0.264442 | 9,019 | 202 | 121 | 44.648515 | 0.815647 | 0.013305 | 0 | 0.761006 | 0 | 0 | 0.097358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044025 | false | 0 | 0.044025 | 0 | 0.314465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e1cc7c6f02af0f9d76606577120ee27bbbe72d90 | 4,751 | py | Python | quadrotor/src/quadrotor/controller.py | siavash1999/IDAS-quadrotor | dc8daa9e699b696743dff970620f382257cb8802 | [
"BSD-3-Clause"
] | 1 | 2021-07-23T13:26:45.000Z | 2021-07-23T13:26:45.000Z | quadrotor/src/quadrotor/controller.py | siavash1999/IDAS-quadrotor | dc8daa9e699b696743dff970620f382257cb8802 | [
"BSD-3-Clause"
] | null | null | null | quadrotor/src/quadrotor/controller.py | siavash1999/IDAS-quadrotor | dc8daa9e699b696743dff970620f382257cb8802 | [
"BSD-3-Clause"
] | 1 | 2021-08-04T15:30:37.000Z | 2021-08-04T15:30:37.000Z | from control import lqr
import numpy as np
# -------------------------------------------------------------------------------------------------
def Correction2D(K):
for i in range(len(K)):
for j in range(len(K[0])):
if abs(K[i][j]) < 1e-6:
K[i][j] = 0
return K
# ---------------------------------------------... | 36.829457 | 99 | 0.291097 | 813 | 4,751 | 1.692497 | 0.094711 | 0.655523 | 0.865552 | 1.008721 | 0.759448 | 0.739826 | 0.734738 | 0.711483 | 0.704215 | 0.704215 | 0 | 0.206099 | 0.399495 | 4,751 | 128 | 100 | 37.117188 | 0.2762 | 0.185856 | 0 | 0.39 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.02 | 0.01 | 0.12 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
834a028c23ff5e8e423d39690de7746351d117f0 | 56 | py | Python | tests/test_mass_project/test_mass_project.py | SBRG/MASS-project | 9e247658700421622df3ba55014709b2c0833435 | [
"MIT"
] | null | null | null | tests/test_mass_project/test_mass_project.py | SBRG/MASS-project | 9e247658700421622df3ba55014709b2c0833435 | [
"MIT"
] | null | null | null | tests/test_mass_project/test_mass_project.py | SBRG/MASS-project | 9e247658700421622df3ba55014709b2c0833435 | [
"MIT"
] | 1 | 2021-11-23T00:37:28.000Z | 2021-11-23T00:37:28.000Z | def test_mass_project_import():
import mass_project
| 18.666667 | 31 | 0.803571 | 8 | 56 | 5.125 | 0.625 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 56 | 2 | 32 | 28 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
8350073ebe35c9778a9dbc815f8ae7df6302bc63 | 57,603 | py | Python | sdk/python/pulumi_azure/cdn/endpoint.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/cdn/endpoint.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/cdn/endpoint.py | davidobrien1985/pulumi-azure | 811beeea473bd798d77354521266a87a2fac5888 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Endpoi... | 81.822443 | 489 | 0.662813 | 6,975 | 57,603 | 5.376057 | 0.056201 | 0.085365 | 0.050403 | 0.033442 | 0.949411 | 0.94629 | 0.941464 | 0.937357 | 0.918742 | 0.914849 | 0 | 0.002021 | 0.209798 | 57,603 | 703 | 490 | 81.938834 | 0.821785 | 0.596202 | 0 | 0.019802 | 1 | 0 | 0.161389 | 0.034729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039604 | false | 0.009901 | 0.059406 | 0.019802 | 0.326733 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
55c64e6db27fa0e0bc7b70d5cb7799119ea0b394 | 1,537 | py | Python | roadmap_tools/scripts/file_handler.py | JKBehrens/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 16 | 2018-12-11T13:02:58.000Z | 2022-02-28T09:05:20.000Z | roadmap_tools/scripts/file_handler.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-11-04T13:16:49.000Z | 2022-02-28T09:17:30.000Z | roadmap_tools/scripts/file_handler.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2019-02-12T12:41:25.000Z | 2022-02-09T12:55:56.000Z | #!/usr/bin/env python
"""
Copyright (c) 2018 Robert Bosch GmbH
All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the
LICENSE file in the root directory of this source tree.
@author: Jan Behrens
"""
import cPickle as pickle
class file_handler:
def load_prm(self, file_name... | 29.557692 | 72 | 0.644112 | 219 | 1,537 | 4.296804 | 0.292237 | 0.102019 | 0.070138 | 0.102019 | 0.735388 | 0.735388 | 0.735388 | 0.735388 | 0.735388 | 0.735388 | 0 | 0.004281 | 0.240078 | 1,537 | 51 | 73 | 30.137255 | 0.80137 | 0.149642 | 0 | 0.827586 | 0 | 0 | 0.08622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0.034483 | 0.034483 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3607edf4bc12efb91d3a35611fe4368b5d8a39a0 | 63,755 | py | Python | tests/functional/test_notebooks.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | tests/functional/test_notebooks.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | tests/functional/test_notebooks.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | import json
import mock
import pytest
from click.testing import CliRunner
from gradient.api_sdk import sdk_exceptions
from gradient.api_sdk.clients.http_client import default_headers
from gradient.cli import cli
from tests import MockResponse, example_responses
EXPECTED_HEADERS = default_headers.copy()
EXPECTED_HEAD... | 43.223729 | 127 | 0.588942 | 6,532 | 63,755 | 5.37523 | 0.055726 | 0.023355 | 0.023696 | 0.033608 | 0.893281 | 0.877474 | 0.856968 | 0.825382 | 0.795022 | 0.775626 | 0 | 0.023166 | 0.301263 | 63,755 | 1,474 | 128 | 43.253053 | 0.764995 | 0.00549 | 0 | 0.701039 | 0 | 0 | 0.221753 | 0.083414 | 0 | 0 | 0 | 0.000678 | 0.115108 | 1 | 0.041567 | false | 0.001599 | 0.006395 | 0 | 0.135891 | 0.023181 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
364c028538c1c44b737307d6bc409ccae5818a66 | 22,877 | py | Python | tests/test_bucketlist.py | faithngetich/Buckectlist | f7503d2de93d733a8ef44a8c36d9410d40fea4e3 | [
"MIT"
] | null | null | null | tests/test_bucketlist.py | faithngetich/Buckectlist | f7503d2de93d733a8ef44a8c36d9410d40fea4e3 | [
"MIT"
] | 1 | 2017-05-27T19:52:14.000Z | 2017-05-29T08:52:50.000Z | tests/test_bucketlist.py | faithngetich/Buckectlist | f7503d2de93d733a8ef44a8c36d9410d40fea4e3 | [
"MIT"
] | null | null | null | import os
import json
import unittest
from flask_sqlalchemy import SQLAlchemy
from flask_testing import TestCase
from app.models import db
from app import create_app
from app.config import Config
from app.models.models import User, BucketList, Item
TEST_DB = 'test.db'
class TestDevelopmentConfig(unittest.TestCase):... | 35.633956 | 88 | 0.471478 | 1,960 | 22,877 | 5.407143 | 0.066837 | 0.061898 | 0.112097 | 0.132478 | 0.922627 | 0.919702 | 0.915173 | 0.904039 | 0.904039 | 0.876864 | 0 | 0.020471 | 0.417056 | 22,877 | 641 | 89 | 35.689548 | 0.77422 | 0.035669 | 0 | 0.807763 | 0 | 0 | 0.15594 | 0.023452 | 0 | 0 | 0 | 0 | 0.053604 | 1 | 0.033272 | false | 0.051756 | 0.016636 | 0 | 0.051756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
3668328057acf9fd96d68e25d328c08fdf7035c8 | 175 | py | Python | src/aestheta/environment.py | NSCC-COGS/Aestheta | 527517c64b03cf4206a177b3bd0fe223c8ef386a | [
"MIT"
] | 8 | 2021-01-26T13:43:09.000Z | 2022-02-03T20:15:42.000Z | src/aestheta/environment.py | NSCC-COGS/Aestheta | 527517c64b03cf4206a177b3bd0fe223c8ef386a | [
"MIT"
] | 62 | 2021-02-09T14:42:13.000Z | 2021-05-03T18:26:16.000Z | src/aestheta/environment.py | NSCC-COGS/Aestheta | 527517c64b03cf4206a177b3bd0fe223c8ef386a | [
"MIT"
] | 3 | 2021-01-26T13:43:12.000Z | 2021-02-04T12:31:55.000Z | import struct
#import toml
def bitness():
return struct.calcsize("P") * 8
#def load_config():
# with open('Config/config.toml') as f:
# return toml.load(f) | 19.444444 | 42 | 0.628571 | 25 | 175 | 4.36 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.222857 | 175 | 9 | 43 | 19.444444 | 0.794118 | 0.554286 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
36f7be87d19e7754de6a2a7667c21f3c10cf9935 | 14,042 | py | Python | recipes/views.py | kayoslab/CookbookAPI | 4a80c486bdcdf238514bd2035b371d640f6ab2ed | [
"MIT"
] | null | null | null | recipes/views.py | kayoslab/CookbookAPI | 4a80c486bdcdf238514bd2035b371d640f6ab2ed | [
"MIT"
] | null | null | null | recipes/views.py | kayoslab/CookbookAPI | 4a80c486bdcdf238514bd2035b371d640f6ab2ed | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.db.models import QuerySet
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from rest_framework import status
from recipes.models import Recipe
from recipes.serializers imp... | 39.666667 | 94 | 0.485615 | 1,253 | 14,042 | 5.34158 | 0.146848 | 0.059166 | 0.080681 | 0.056029 | 0.860899 | 0.848947 | 0.83789 | 0.834155 | 0.816525 | 0.816525 | 0 | 0.008458 | 0.44431 | 14,042 | 353 | 95 | 39.779037 | 0.849289 | 0 | 0 | 0.794721 | 0 | 0 | 0.384062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020528 | false | 0 | 0.032258 | 0 | 0.099707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.