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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2ec6377b6cc9303e46211e079b606a72c0cb73b | 216 | py | Python | app/services/category_services/list.py | brunocamposal/fast-food-simulator | 6dc7f33cdebd222998fc88df9264853c741c64ca | [
"MIT"
] | 2 | 2021-01-11T23:47:17.000Z | 2021-01-13T13:16:50.000Z | app/services/category_services/list.py | brunocamposal/kitchin-kanri | 6dc7f33cdebd222998fc88df9264853c741c64ca | [
"MIT"
] | 7 | 2021-01-13T13:16:46.000Z | 2021-01-21T16:07:28.000Z | app/services/category_services/list.py | brunocamposal/kitchin-kanri | 6dc7f33cdebd222998fc88df9264853c741c64ca | [
"MIT"
] | null | null | null | from app.models import Category
from app.serializer.category_schema import categories_schema
from http import HTTPStatus
def category_list():
return categories_schema.jsonify(Category.query.all()), HTTPStatus.OK | 36 | 73 | 0.833333 | 29 | 216 | 6.068966 | 0.586207 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 216 | 6 | 73 | 36 | 0.902564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
a2ef2f44d915accf4336e360cd9905b8232fadb6 | 156 | py | Python | scrapy-redis/tests/test_package_import.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | 3,305 | 2017-07-01T09:19:10.000Z | 2022-03-31T10:22:21.000Z | scrapy-redis/tests/test_package_import.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | 129 | 2017-07-03T23:19:23.000Z | 2022-03-29T18:01:29.000Z | scrapy-redis/tests/test_package_import.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | 995 | 2017-07-02T04:09:27.000Z | 2022-03-30T10:46:25.000Z | import scrapy_redis
def test_package_metadata():
assert scrapy_redis.__author__
assert scrapy_redis.__email__
assert scrapy_redis.__version__
| 19.5 | 35 | 0.807692 | 19 | 156 | 5.684211 | 0.578947 | 0.407407 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 156 | 7 | 36 | 22.285714 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a2fdad07403aa04563e846da42c76d367d5963ea | 64 | py | Python | torchlab/encoder/__init__.py | MarvinTeichmann/TorchLab | d837dfddf893559a259f31a1980986033665cac3 | [
"MIT"
] | 3 | 2019-08-29T00:23:28.000Z | 2020-12-07T11:13:54.000Z | torchlab/encoder/__init__.py | MarvinTeichmann/TorchLab | d837dfddf893559a259f31a1980986033665cac3 | [
"MIT"
] | null | null | null | torchlab/encoder/__init__.py | MarvinTeichmann/TorchLab | d837dfddf893559a259f31a1980986033665cac3 | [
"MIT"
] | null | null | null | from . import resnet
from . import vgg
# from . import densenet
| 16 | 24 | 0.734375 | 9 | 64 | 5.222222 | 0.555556 | 0.638298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203125 | 64 | 3 | 25 | 21.333333 | 0.921569 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0c2e4fb7c87dadb36ba2c4f4ee4d66133d257195 | 141 | py | Python | tpc_webapp/blog/admin.py | sahilpabale/ThePunchCoders-Website | b80226e053b194882ce520e5afe8b123f0a57630 | [
"MIT"
] | null | null | null | tpc_webapp/blog/admin.py | sahilpabale/ThePunchCoders-Website | b80226e053b194882ce520e5afe8b123f0a57630 | [
"MIT"
] | 3 | 2021-03-30T13:31:05.000Z | 2021-09-22T19:00:31.000Z | tpc_webapp/blog/admin.py | sahilpabale/ThePunchCoders-Website | b80226e053b194882ce520e5afe8b123f0a57630 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post, BlogComment
# Register your models here.
admin.site.register((Post, BlogComment)) | 28.2 | 40 | 0.801418 | 19 | 141 | 5.947368 | 0.631579 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113475 | 141 | 5 | 40 | 28.2 | 0.904 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a78ce19174a232532590443629fa08a0bf25a2cf | 2,644 | py | Python | tests/test_time_control.py | erdc/AdhModel | 2c5d49dd4cca484a6c46ded6e1f6dec25db4722c | [
"BSD-3-Clause"
] | 3 | 2019-06-26T13:41:46.000Z | 2019-10-16T02:11:29.000Z | tests/test_time_control.py | erdc/AdhModel | 2c5d49dd4cca484a6c46ded6e1f6dec25db4722c | [
"BSD-3-Clause"
] | 5 | 2019-06-26T14:29:03.000Z | 2019-07-15T19:25:59.000Z | tests/test_time_control.py | erdc/AdhModel | 2c5d49dd4cca484a6c46ded6e1f6dec25db4722c | [
"BSD-3-Clause"
] | 2 | 2019-07-26T14:31:14.000Z | 2019-09-03T18:06:39.000Z | import unittest
from adhmodel.simulation.time_control import TimeControl
class TestIo(unittest.TestCase):
def test_dependency_time_step_option(self):
tc = TimeControl()
# test to ensure the string objects haven't changed
base_list = ['Steady state solution (TC STD)', 'Time step series (SE... | 62.952381 | 96 | 0.754917 | 386 | 2,644 | 4.810881 | 0.134715 | 0.163705 | 0.129241 | 0.147011 | 0.790522 | 0.753904 | 0.731287 | 0.731287 | 0.731287 | 0.731287 | 0 | 0.00905 | 0.164145 | 2,644 | 41 | 97 | 64.487805 | 0.831222 | 0.061649 | 0 | 0.575758 | 0 | 0 | 0.098586 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a79d1e4b8e52ab49fc9e107752ec59a42ab9eec0 | 22,321 | py | Python | activatable_model/tests/tests.py | ambitioninc/django-activatable-model | e1967e44d97a03b1a6f1723aa3241bc56ab23eb7 | [
"MIT"
] | 16 | 2015-02-15T18:41:17.000Z | 2021-04-13T15:53:45.000Z | activatable_model/tests/tests.py | ambitioninc/django-activatable-model | e1967e44d97a03b1a6f1723aa3241bc56ab23eb7 | [
"MIT"
] | 5 | 2015-03-30T17:40:10.000Z | 2021-12-18T12:55:30.000Z | activatable_model/tests/tests.py | ambitioninc/django-activatable-model | e1967e44d97a03b1a6f1723aa3241bc56ab23eb7 | [
"MIT"
] | 9 | 2015-03-30T16:21:20.000Z | 2018-10-08T14:38:33.000Z | from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db import models
from django.test import TestCase, TransactionTestCase
from django_dynamic_fixture import G
from mock import patch, MagicMock, call
from activatable_model.models import BaseActivata... | 46.405405 | 116 | 0.703374 | 2,522 | 22,321 | 5.954401 | 0.071372 | 0.039955 | 0.034627 | 0.063928 | 0.827396 | 0.812346 | 0.786975 | 0.77066 | 0.749151 | 0.721516 | 0 | 0.005306 | 0.206263 | 22,321 | 480 | 117 | 46.502083 | 0.842298 | 0.098876 | 0 | 0.626781 | 0 | 0 | 0.036455 | 0.020629 | 0 | 0 | 0 | 0 | 0.219373 | 1 | 0.096866 | false | 0 | 0.02849 | 0 | 0.190883 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
38f224c6d42f60314d43862c7f76924112fe0231 | 48 | py | Python | enthought/pyface/image_cache.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/image_cache.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/image_cache.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.image_cache import *
| 16 | 32 | 0.791667 | 7 | 48 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 33 | 24 | 0.902439 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ac08a98a9428604b077c0ef95dba37df5e4324d8 | 232 | py | Python | repartee/views.py | multiple1902/repartee | bfbd1b8433c086ee3ae877f08156949515c3c977 | [
"Apache-2.0",
"MIT"
] | 1 | 2017-05-15T10:39:29.000Z | 2017-05-15T10:39:29.000Z | repartee/views.py | multiple1902/repartee | bfbd1b8433c086ee3ae877f08156949515c3c977 | [
"Apache-2.0",
"MIT"
] | null | null | null | repartee/views.py | multiple1902/repartee | bfbd1b8433c086ee3ae877f08156949515c3c977 | [
"Apache-2.0",
"MIT"
] | null | null | null | from django.shortcuts import render_to_response
from django.template import loader,Context, RequestContext
def homepage(request):
return render_to_response("index.html", {
}, context_instance = RequestContext(request))
| 33.142857 | 58 | 0.784483 | 27 | 232 | 6.555556 | 0.666667 | 0.112994 | 0.180791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133621 | 232 | 6 | 59 | 38.666667 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
ac1e3a17249ed7fabec26e3144c7b5c9e12e2296 | 26 | py | Python | PythonStuff1.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | null | null | null | PythonStuff1.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | 3 | 2020-03-24T18:02:39.000Z | 2020-10-06T21:32:23.000Z | PythonStuff1.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | 1 | 2017-07-31T13:15:54.000Z | 2017-07-31T13:15:54.000Z | import os
print('hello')
| 6.5 | 14 | 0.692308 | 4 | 26 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 3 | 15 | 8.666667 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
3bc1e75a9aa4aaf79ecf9267d703153fb4b64770 | 147 | py | Python | Coding-Challenges/maxProfitWithKTransactions/max_profit_with_k_transactions.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 33 | 2019-12-02T23:29:47.000Z | 2022-03-24T02:40:36.000Z | Coding-Challenges/maxProfitWithKTransactions/max_profit_with_k_transactions.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 39 | 2020-01-15T19:28:12.000Z | 2021-11-26T05:13:29.000Z | Coding-Challenges/maxProfitWithKTransactions/max_profit_with_k_transactions.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 49 | 2019-12-02T23:29:53.000Z | 2022-03-03T01:11:37.000Z | #!/usr/bin/env python3
def max_profit_with_k_transactions(prices, k):
pass
print(max_profit_with_k_transactions([5, 11, 3, 50, 60, 90], 2))
| 18.375 | 64 | 0.721088 | 26 | 147 | 3.769231 | 0.769231 | 0.183673 | 0.265306 | 0.285714 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 0.136054 | 147 | 7 | 65 | 21 | 0.677165 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 0.333333 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
3bce665f205789716aa1b80cbfff0b1599ce98f7 | 1,723 | py | Python | black.py | mrytty/gradu-public | 537337ab3dc49be9f1f4283706b0f4dcbc8cb059 | [
"MIT"
] | null | null | null | black.py | mrytty/gradu-public | 537337ab3dc49be9f1f4283706b0f4dcbc8cb059 | [
"MIT"
] | null | null | null | black.py | mrytty/gradu-public | 537337ab3dc49be9f1f4283706b0f4dcbc8cb059 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.stats import norm
from dcf import dcf
def blacklet(K, F, vol, omega=1):
log_ratio = np.log(F / K)
d1 = (log_ratio + 0.5 * vol**2) / vol
d2 = (log_ratio - 0.5 * vol**2) / vol
return F * omega * norm.cdf(omega * d1) - K * omega * norm.cdf(omega * d2)
d... | 22.376623 | 92 | 0.547882 | 247 | 1,723 | 3.761134 | 0.210526 | 0.017223 | 0.103337 | 0.073197 | 0.800861 | 0.800861 | 0.800861 | 0.764263 | 0.764263 | 0.751346 | 0 | 0.029686 | 0.315728 | 1,723 | 76 | 93 | 22.671053 | 0.75827 | 0 | 0 | 0.526316 | 0 | 0 | 0.014661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.078947 | 0 | 0.394737 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3be24e315c01210b57e504b94f4df287c7bc40bd | 140 | py | Python | src/pyfonycore/bootstrap/config/raw/allowed_environments_resolver.py | pyfony/core | 32cb2e959590307fb845ccafec90b8264fdad4ab | [
"MIT"
] | null | null | null | src/pyfonycore/bootstrap/config/raw/allowed_environments_resolver.py | pyfony/core | 32cb2e959590307fb845ccafec90b8264fdad4ab | [
"MIT"
] | null | null | null | src/pyfonycore/bootstrap/config/raw/allowed_environments_resolver.py | pyfony/core | 32cb2e959590307fb845ccafec90b8264fdad4ab | [
"MIT"
] | null | null | null | def resolve(raw_config):
return raw_config["allowed_environments"] if "allowed_environments" in raw_config else ["dev", "test", "prod"]
| 46.666667 | 114 | 0.75 | 19 | 140 | 5.263158 | 0.684211 | 0.27 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 140 | 2 | 115 | 70 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.364286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 0 | 1 | 1 | 0 | 0 | 6 |
ce077b174ce3b952791acabe4ad68c568a6a939e | 116 | py | Python | src/__init__.py | Briles/gruvbox | d127fc8887ea006ead49e97eed4d89955fbb5e16 | [
"MIT"
] | 251 | 2016-03-04T04:32:10.000Z | 2022-03-22T09:52:02.000Z | src/__init__.py | Briles/gruvbox | d127fc8887ea006ead49e97eed4d89955fbb5e16 | [
"MIT"
] | 50 | 2016-03-09T07:41:55.000Z | 2021-01-20T11:09:56.000Z | src/__init__.py | Briles/gruvbox | d127fc8887ea006ead49e97eed4d89955fbb5e16 | [
"MIT"
] | 23 | 2016-05-21T19:57:27.000Z | 2022-02-01T15:44:00.000Z | #!/usr/bin/env python
# coding: utf-8
from .documentation import *
from .support import *
from .gruvbox import *
| 12.888889 | 28 | 0.706897 | 16 | 116 | 5.125 | 0.75 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.172414 | 116 | 8 | 29 | 14.5 | 0.84375 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
025350c0c7033d82c74777bd3a2c1b8afcf6343c | 128 | py | Python | vika/types/__init__.py | Borye/vika.py | 7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f | [
"MIT"
] | 39 | 2020-10-27T13:17:37.000Z | 2022-03-17T11:04:39.000Z | vika/types/__init__.py | Borye/vika.py | 7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f | [
"MIT"
] | 9 | 2020-10-27T14:44:48.000Z | 2022-01-19T04:46:58.000Z | vika/types/__init__.py | Borye/vika.py | 7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f | [
"MIT"
] | 8 | 2020-10-27T15:12:34.000Z | 2022-01-19T14:23:15.000Z | from .field import *
from .record import *
from .view import *
from .node import *
from .space import *
from .response import *
| 18.285714 | 23 | 0.71875 | 18 | 128 | 5.111111 | 0.444444 | 0.543478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 128 | 6 | 24 | 21.333333 | 0.884615 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0254447d57a0be3bf836d0336eada1d2f33217de | 44 | py | Python | libs/yowsup/yowsup/yowsup/layers/protocol_messages/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 22 | 2017-07-14T20:01:17.000Z | 2022-03-08T14:22:39.000Z | libs/yowsup/yowsup/yowsup/layers/protocol_messages/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 6 | 2017-07-14T21:03:50.000Z | 2021-06-10T19:08:32.000Z | libs/yowsup/yowsup/yowsup/layers/protocol_messages/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 13 | 2017-07-14T20:13:14.000Z | 2020-11-12T08:06:05.000Z | from .layer import YowMessagesProtocolLayer
| 22 | 43 | 0.886364 | 4 | 44 | 9.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 1 | 44 | 44 | 0.975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
02696a25dbbc101c97d3de57d8484432e689854f | 77 | py | Python | dfdt/__init__.py | zpleunis/dfdt | afd6d2a9b19c053ad5f7b6318f2e061cf7fb3964 | [
"BSD-3-Clause"
] | 7 | 2020-10-01T13:36:23.000Z | 2021-12-18T02:20:33.000Z | dfdt/__init__.py | zpleunis/dfdt | afd6d2a9b19c053ad5f7b6318f2e061cf7fb3964 | [
"BSD-3-Clause"
] | null | null | null | dfdt/__init__.py | zpleunis/dfdt | afd6d2a9b19c053ad5f7b6318f2e061cf7fb3964 | [
"BSD-3-Clause"
] | null | null | null | from .dfdt_utils import DynamicSpectrum
from .ac_mc_drift import ac_mc_drift
| 25.666667 | 39 | 0.87013 | 13 | 77 | 4.769231 | 0.615385 | 0.129032 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 2 | 40 | 38.5 | 0.898551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
026e5393739ba0193181f08049127f04fc8f480d | 108 | py | Python | office365/teams/teamsTabConfiguration.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/teams/teamsTabConfiguration.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/teams/teamsTabConfiguration.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | from office365.runtime.client_value import ClientValue
class TeamsTabConfiguration(ClientValue):
pass
| 18 | 54 | 0.833333 | 11 | 108 | 8.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.12037 | 108 | 5 | 55 | 21.6 | 0.905263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
5a1803881b4e1656541c80773b9db3c8d08d9ba0 | 76 | py | Python | utils/emote.py | Rishiraj0100/world-chat | 46f0c255348e06787339c464c31577f90daea253 | [
"MIT"
] | 14 | 2021-02-16T16:01:41.000Z | 2022-01-30T06:28:22.000Z | utils/emote.py | Rishiraj0100/world-chat | 46f0c255348e06787339c464c31577f90daea253 | [
"MIT"
] | null | null | null | utils/emote.py | Rishiraj0100/world-chat | 46f0c255348e06787339c464c31577f90daea253 | [
"MIT"
] | 6 | 2021-02-16T16:01:56.000Z | 2021-07-16T11:24:50.000Z | check = "<:check:773959361953267742>"
xmark = "<:xmark:773959363379462184>"
| 25.333333 | 37 | 0.736842 | 6 | 76 | 9.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.514286 | 0.078947 | 76 | 2 | 38 | 38 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0.710526 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5a327e1467e7628b0f29ca76e88c9af75e3b23ec | 162 | py | Python | datasets/__init__.py | NoelShin/selfmask | 396e0a3636b29591f505b6711be45eabe292919a | [
"MIT"
] | 11 | 2022-03-24T02:45:33.000Z | 2022-03-30T02:53:33.000Z | datasets/__init__.py | NoelShin/selfmask | 396e0a3636b29591f505b6711be45eabe292919a | [
"MIT"
] | 2 | 2022-03-25T11:08:34.000Z | 2022-03-30T14:13:26.000Z | datasets/__init__.py | NoelShin/selfmask | 396e0a3636b29591f505b6711be45eabe292919a | [
"MIT"
] | 1 | 2022-03-30T02:53:35.000Z | 2022-03-30T02:53:35.000Z | # saliency object detection dataset
from datasets.dut_omron import DUTOMRONDataset
from datasets.duts import DUTSDataset
from datasets.ecssd import ECSSDDataset
| 27 | 46 | 0.864198 | 20 | 162 | 6.95 | 0.7 | 0.258993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 162 | 5 | 47 | 32.4 | 0.965278 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5a8393eb6f5fe3821855cd70263a0a338512f0ec | 656 | py | Python | tests/test_hacks.py | Laserlicht/deepl-translate | 23332c3042065f376f3b602a281248e30c80dec8 | [
"MIT"
] | 1 | 2022-02-18T10:12:51.000Z | 2022-02-18T10:12:51.000Z | tests/test_hacks.py | Lain1984/deepl-translate | ca61c63ff23031291fbaf220de92018fb85a57f0 | [
"MIT"
] | null | null | null | tests/test_hacks.py | Lain1984/deepl-translate | ca61c63ff23031291fbaf220de92018fb85a57f0 | [
"MIT"
] | 2 | 2020-12-09T19:00:20.000Z | 2022-03-11T06:17:51.000Z | from deepl.hacks import calculate_valid_timestamp, generate_id
def test_calculate_valid_timestamp():
assert 10 == calculate_valid_timestamp(timestamp=10, i_count=0)
assert 11 == calculate_valid_timestamp(timestamp=10, i_count=1)
assert 12 == calculate_valid_timestamp(timestamp=10, i_count=2)
assert 12... | 41 | 67 | 0.775915 | 97 | 656 | 4.896907 | 0.278351 | 0.265263 | 0.435789 | 0.471579 | 0.656842 | 0.656842 | 0.656842 | 0.404211 | 0.404211 | 0 | 0 | 0.089474 | 0.131098 | 656 | 15 | 68 | 43.733333 | 0.74386 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.727273 | 1 | 0.181818 | true | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce50f807d741b49c254ef465207f171cabe8e2b2 | 6,131 | py | Python | src/genie/libs/parser/iosxe/tests/ShowApTagSummary/cli/equal/golden_output_expected.py | cphannan/genieparser | 0b32e1ea633c532d67d89476aa5500f569cfbc6e | [
"Apache-2.0"
] | 1 | 2020-05-26T13:06:10.000Z | 2020-05-26T13:06:10.000Z | src/genie/libs/parser/iosxe/tests/ShowApTagSummary/cli/equal/golden_output_expected.py | dalwar23/genieparser | a9df45d3ee23f107bfb55915068e90782f92fc99 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowApTagSummary/cli/equal/golden_output_expected.py | dalwar23/genieparser | a9df45d3ee23f107bfb55915068e90782f92fc99 | [
"Apache-2.0"
] | 2 | 2021-02-12T21:42:30.000Z | 2021-02-12T21:47:51.000Z | expected_output = {
"ap_name": {
"b25a-13-cap10": {
"ap_mac": "3c41.0fee.5094",
"site_tag_name": "default-site-tag-fabric",
"policy_tag_name": "PT_Fabri_B25_B25-1_fe778",
"rf_tag_name": "Standard",
"misconfigured": "No",
"tag_source": "... | 36.933735 | 58 | 0.495351 | 668 | 6,131 | 4.181138 | 0.097305 | 0.150376 | 0.078768 | 0.128894 | 0.885786 | 0.840673 | 0.827784 | 0.827784 | 0.827784 | 0.827784 | 0 | 0.108642 | 0.339423 | 6,131 | 165 | 59 | 37.157576 | 0.580988 | 0 | 0 | 0.606061 | 0 | 0 | 0.518676 | 0.153319 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce5e16471e58422e7e3ce0350500eafe12061782 | 351 | py | Python | utils/opt.py | hello-code2021/IDLMPIA | f8e303016bfc5fe7bb9978f972ad64e7b0adfe8e | [
"MIT"
] | null | null | null | utils/opt.py | hello-code2021/IDLMPIA | f8e303016bfc5fe7bb9978f972ad64e7b0adfe8e | [
"MIT"
] | null | null | null | utils/opt.py | hello-code2021/IDLMPIA | f8e303016bfc5fe7bb9978f972ad64e7b0adfe8e | [
"MIT"
] | null | null | null | epoch = 100
train_result = "/home/yetaoyu/zc/Classification/patch_train_results"
train_dataset_dir = "/home/yetaoyu/zc/Classification/patch_data"
test_data_dir = "/home/yetaoyu/zc/Classification/patch_data"
test_result_dir = "/home/yetaoyu/zc/Classification/patch_test_results"
model_weight_path = "/home/yetaoyu/zc/Clas... | 58.5 | 73 | 0.834758 | 49 | 351 | 5.632653 | 0.346939 | 0.199275 | 0.235507 | 0.48913 | 0.757246 | 0.757246 | 0.630435 | 0.311594 | 0 | 0 | 0 | 0.008982 | 0.048433 | 351 | 6 | 73 | 58.5 | 0.817365 | 0 | 0 | 0 | 0 | 0 | 0.670455 | 0.670455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce9078ecffa5494ec28794ac6f868981192729ad | 73 | py | Python | examples/__init__.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | examples/__init__.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | examples/__init__.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | from . import condition_flags
from . import fp
from . import reg_overlap
| 18.25 | 29 | 0.794521 | 11 | 73 | 5.090909 | 0.636364 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 73 | 3 | 30 | 24.333333 | 0.918033 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ce9e41a98e3d71fabd2577d7712145f9919c8e0a | 5,298 | py | Python | financial_analysis/tests/test_set_freq.py | Kautenja/financial-analysis | 96870edc4b8762bb0ed297b937b263a69221c23e | [
"MIT"
] | 1 | 2022-02-26T01:27:23.000Z | 2022-02-26T01:27:23.000Z | financial_analysis/tests/test_set_freq.py | Kautenja/financial-analysis | 96870edc4b8762bb0ed297b937b263a69221c23e | [
"MIT"
] | null | null | null | financial_analysis/tests/test_set_freq.py | Kautenja/financial-analysis | 96870edc4b8762bb0ed297b937b263a69221c23e | [
"MIT"
] | 3 | 2020-09-10T21:11:32.000Z | 2021-12-06T09:38:18.000Z | """Test cases for the set_freq module."""
from unittest import TestCase
import numpy as np
import pandas as pd
from ..set_freq import set_freq
#
# MARK: lossless conversions
#
class ShouldLosslessConvertUsingGroupby(TestCase):
def test(self):
index = pd.to_datetime([1000, 2000, 3000], unit='ms')
p... | 46.884956 | 95 | 0.665345 | 679 | 5,298 | 5.063328 | 0.142857 | 0.055846 | 0.031414 | 0.059337 | 0.837696 | 0.837696 | 0.837696 | 0.837696 | 0.786504 | 0.786504 | 0 | 0.04689 | 0.211023 | 5,298 | 112 | 96 | 47.303571 | 0.775598 | 0.312005 | 0 | 0.627119 | 0 | 0 | 0.009725 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 1 | 0.084746 | false | 0 | 0.067797 | 0 | 0.237288 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0cac7eafb604f1065119b389c7dc00e48e4926ac | 4,941 | py | Python | setVolunteers.py | zoctobere/Siren | 325bcbf78d721e20eecad953dfbf54cacddc0889 | [
"MIT"
] | null | null | null | setVolunteers.py | zoctobere/Siren | 325bcbf78d721e20eecad953dfbf54cacddc0889 | [
"MIT"
] | null | null | null | setVolunteers.py | zoctobere/Siren | 325bcbf78d721e20eecad953dfbf54cacddc0889 | [
"MIT"
] | null | null | null | from discord.ext import commands
from builtins import bot
import db
import config
@bot.command()
async def setcommentary(ctx, arg1, arg2, arg3):
if ctx.channel.id != config.adminChannel:
return
arg1 = arg1.upper()
if not db.doesRestreamExist(arg1):
await ctx.send('```No res... | 39.528 | 213 | 0.626391 | 614 | 4,941 | 5.035831 | 0.143322 | 0.080207 | 0.062096 | 0.101876 | 0.799483 | 0.799483 | 0.791721 | 0.791721 | 0.754851 | 0.754851 | 0 | 0.014921 | 0.253997 | 4,941 | 124 | 214 | 39.846774 | 0.823928 | 0 | 0 | 0.741935 | 0 | 0.053763 | 0.318455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043011 | 0 | 0.204301 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0cc895e5b57267bc734bd131915232e7c0cc8de7 | 5,014 | py | Python | int/tests/test_invitations.py | ryjones/aries-acapy-plugin-toolbox | 70108e2264a31831dab0fe9aafc70b3c310808c5 | [
"Apache-2.0"
] | 1 | 2019-11-08T21:59:28.000Z | 2019-11-08T21:59:28.000Z | int/tests/test_invitations.py | ryjones/aries-acapy-plugin-toolbox | 70108e2264a31831dab0fe9aafc70b3c310808c5 | [
"Apache-2.0"
] | 1 | 2019-11-15T21:30:18.000Z | 2019-11-15T21:30:18.000Z | int/tests/test_invitations.py | ryjones/aries-acapy-plugin-toolbox | 70108e2264a31831dab0fe9aafc70b3c310808c5 | [
"Apache-2.0"
] | 4 | 2019-11-08T21:59:31.000Z | 2019-11-18T21:21:22.000Z | """Invitations tests"""
import pytest
from acapy_client import Client
from acapy_client.api.connection import delete_connection, get_connections
@pytest.fixture(autouse=True)
async def clear_invitation_state(backchannel: Client, connection_id: str):
"""Clear invitation after each test."""
yield
connection... | 34.342466 | 122 | 0.613482 | 586 | 5,014 | 5.110922 | 0.165529 | 0.039065 | 0.055092 | 0.06611 | 0.812354 | 0.812354 | 0.792988 | 0.792988 | 0.790985 | 0.763606 | 0 | 0.008552 | 0.25369 | 5,014 | 145 | 123 | 34.57931 | 0.791823 | 0.021141 | 0 | 0.578512 | 0 | 0.090909 | 0.340397 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 1 | 0 | false | 0 | 0.024793 | 0 | 0.024793 | 0.016529 | 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 | 0 | 0 | 6 |
0cfb925753b1745fc256897f88dc0873a2553657 | 41 | py | Python | mfr/extensions/docx/__init__.py | yacchin1205/RDM-modular-file-renderer | 5bd18175a681d21e7be7fe0238132335a1cd8ded | [
"Apache-2.0"
] | 36 | 2015-08-31T20:24:22.000Z | 2021-12-17T17:02:44.000Z | mfr/extensions/docx/__init__.py | yacchin1205/RDM-modular-file-renderer | 5bd18175a681d21e7be7fe0238132335a1cd8ded | [
"Apache-2.0"
] | 190 | 2015-01-02T06:22:01.000Z | 2022-01-19T11:27:03.000Z | mfr/extensions/docx/__init__.py | yacchin1205/RDM-modular-file-renderer | 5bd18175a681d21e7be7fe0238132335a1cd8ded | [
"Apache-2.0"
] | 47 | 2015-01-27T15:45:22.000Z | 2021-01-27T22:43:03.000Z | from .render import DocxRenderer # noqa
| 20.5 | 40 | 0.780488 | 5 | 41 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 41 | 1 | 41 | 41 | 0.941176 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0b4fcac310c4fc6d17afd6f739b8fd7c34474951 | 158 | py | Python | BingRewards/src/config.py | Stefano-Solo/bing-rewards | 601eecbe9e11ba0928d3acc33d2e55a31576dbf7 | [
"MIT"
] | null | null | null | BingRewards/src/config.py | Stefano-Solo/bing-rewards | 601eecbe9e11ba0928d3acc33d2e55a31576dbf7 | [
"MIT"
] | null | null | null | BingRewards/src/config.py | Stefano-Solo/bing-rewards | 601eecbe9e11ba0928d3acc33d2e55a31576dbf7 | [
"MIT"
] | null | null | null | credentials = dict(
email = '',
password = '',
telegram_api_token = '__telegram_api_token__',
telegram_userid = '__telegram_userid__'
)
| 22.571429 | 51 | 0.64557 | 14 | 158 | 6.285714 | 0.571429 | 0.25 | 0.363636 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240506 | 158 | 6 | 52 | 26.333333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.269737 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
0b88b303dcafb0c8f13c83989b6cba9e6d899fb7 | 72 | py | Python | close_numerical_matches/__init__.py | shmulvad/close_numerical_matches | 03bcc013eda3f79f417ded2c8e4d96af32a15401 | [
"MIT"
] | 1 | 2021-07-11T13:35:21.000Z | 2021-07-11T13:35:21.000Z | close_numerical_matches/__init__.py | shmulvad/close_numerical_matches | 03bcc013eda3f79f417ded2c8e4d96af32a15401 | [
"MIT"
] | null | null | null | close_numerical_matches/__init__.py | shmulvad/close_numerical_matches | 03bcc013eda3f79f417ded2c8e4d96af32a15401 | [
"MIT"
] | null | null | null | from .version import __version__
from .find_matches import find_matches
| 24 | 38 | 0.861111 | 10 | 72 | 5.6 | 0.5 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 2 | 39 | 36 | 0.875 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0baa46c524e9807ef5dc1884c70c1f269e812b14 | 167 | py | Python | conftest.py | mpolidori/harvest-travis | 000c85b09294812d27fa5faea6ea10a60ae989c7 | [
"PostgreSQL"
] | 2 | 2017-10-02T22:25:43.000Z | 2017-12-31T14:54:17.000Z | conftest.py | NCAR/ckanext-harvest | 51d03fa527376eb3e73a90fd9771b82f89d97398 | [
"PostgreSQL"
] | null | null | null | conftest.py | NCAR/ckanext-harvest | 51d03fa527376eb3e73a90fd9771b82f89d97398 | [
"PostgreSQL"
] | null | null | null | # -*- coding: utf-8 -*-
pytest_plugins = [
u'ckan.tests.pytest_ckan.ckan_setup',
u'ckan.tests.pytest_ckan.fixtures',
u'ckanext.harvest.tests.fixtures',
]
| 20.875 | 41 | 0.670659 | 23 | 167 | 4.695652 | 0.521739 | 0.092593 | 0.185185 | 0.296296 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.149701 | 167 | 7 | 42 | 23.857143 | 0.753521 | 0.125749 | 0 | 0 | 0 | 0 | 0.652778 | 0.652778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e7e8441db738b85aba179108724297db1901eff5 | 4,323 | py | Python | chat-plugin/chat/test/test_predicate.py | lyoung83/chat | b21a3255db6c825a22a4ef02642fb9c3cb72d9c3 | [
"Apache-2.0"
] | 17 | 2016-04-09T09:54:43.000Z | 2021-06-29T04:59:54.000Z | chat-plugin/chat/test/test_predicate.py | lyoung83/chat | b21a3255db6c825a22a4ef02642fb9c3cb72d9c3 | [
"Apache-2.0"
] | 210 | 2016-01-27T09:57:29.000Z | 2020-10-29T17:19:44.000Z | chat-plugin/chat/test/test_predicate.py | lyoung83/chat | b21a3255db6c825a22a4ef02642fb9c3cb72d9c3 | [
"Apache-2.0"
] | 21 | 2016-06-22T11:48:56.000Z | 2019-01-07T17:08:45.000Z | import unittest
from ..query import Predicate
class TestPredicate(unittest.TestCase):
def test_simple_in(self):
p = Predicate(_id__in=["a", "b", "c"])
self.assertListEqual(
["in", {"$type": "keypath", "$val": "_id"},
["a", "b", "c"]]
, p.to_dict())
def test... | 51.464286 | 133 | 0.459866 | 462 | 4,323 | 4.047619 | 0.12987 | 0.176471 | 0.224599 | 0.205348 | 0.824599 | 0.759893 | 0.72246 | 0.680214 | 0.658289 | 0.633155 | 0 | 0.015008 | 0.291002 | 4,323 | 83 | 134 | 52.084337 | 0.595106 | 0 | 0 | 0.319444 | 0 | 0 | 0.214715 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.111111 | false | 0 | 0.027778 | 0 | 0.152778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f00da208bbb7f65efc1010ca225d6220ace0e69d | 30 | py | Python | PyMturkGspread/__init__.py | haldunanil/PyMturkGspread | 2f617930461f89323af96298948ee576f0ccea8c | [
"MIT"
] | null | null | null | PyMturkGspread/__init__.py | haldunanil/PyMturkGspread | 2f617930461f89323af96298948ee576f0ccea8c | [
"MIT"
] | null | null | null | PyMturkGspread/__init__.py | haldunanil/PyMturkGspread | 2f617930461f89323af96298948ee576f0ccea8c | [
"MIT"
] | null | null | null | from .mturk import GoogleForms | 30 | 30 | 0.866667 | 4 | 30 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f05c30bc59993e3d8a80e3a05c3f976468a99996 | 3,987 | py | Python | tests/test_product_variations.py | lotrekagency/pywoo | 84034c053a4873246394203ae819190e8402c057 | [
"MIT"
] | 5 | 2019-09-11T15:39:57.000Z | 2022-01-21T14:23:51.000Z | tests/test_product_variations.py | lotrekagency/pywoo | 84034c053a4873246394203ae819190e8402c057 | [
"MIT"
] | 2 | 2019-10-11T15:34:28.000Z | 2019-10-15T15:38:23.000Z | tests/test_product_variations.py | lotrekagency/pywoo | 84034c053a4873246394203ae819190e8402c057 | [
"MIT"
] | 1 | 2021-06-17T17:27:02.000Z | 2021-06-17T17:27:02.000Z | import unittest
from mock import patch
from pywoo.pywoo import Api
from pywoo.models.product_variations import ProductVariation
from tests.tools import mock_request
class TestProductVariation(unittest.TestCase):
@patch('pywoo.pywoo.requests.api.request', side_effect=mock_request)
def test_api_post(self, fu... | 38.708738 | 72 | 0.686481 | 515 | 3,987 | 5.08932 | 0.097087 | 0.100725 | 0.069439 | 0.154903 | 0.892026 | 0.892026 | 0.892026 | 0.892026 | 0.877146 | 0.877146 | 0 | 0.021164 | 0.194131 | 3,987 | 102 | 73 | 39.088235 | 0.794585 | 0 | 0 | 0.605634 | 0 | 0 | 0.190369 | 0.088287 | 0 | 0 | 0 | 0 | 0.225352 | 1 | 0.15493 | false | 0 | 0.070423 | 0 | 0.239437 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b2cd1abafb4efcf565e288216890e652357967bd | 80 | py | Python | rve/cmd/__init__.py | eupedrosa/ros-venv | 7d203288ec5ab54467b1e54406f94b876ab54ece | [
"BSD-3-Clause"
] | null | null | null | rve/cmd/__init__.py | eupedrosa/ros-venv | 7d203288ec5ab54467b1e54406f94b876ab54ece | [
"BSD-3-Clause"
] | null | null | null | rve/cmd/__init__.py | eupedrosa/ros-venv | 7d203288ec5ab54467b1e54406f94b876ab54ece | [
"BSD-3-Clause"
] | null | null | null |
from . import init
from . import run
from . import remove
from . import status
| 13.333333 | 20 | 0.7375 | 12 | 80 | 4.916667 | 0.5 | 0.677966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 80 | 5 | 21 | 16 | 0.936508 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b2f7f5ba03af869001e57d67fd929a5d364aaa0e | 9,555 | py | Python | .ipynb_checkpoints/utils_continuous-checkpoint.py | hsharsh/pinn-torch | fa563b324c286ec4425529f5ea1db03e68bec2f3 | [
"MIT"
] | 1 | 2022-01-25T04:27:33.000Z | 2022-01-25T04:27:33.000Z | utils_continuous.py | hsharsh/pinn-torch | fa563b324c286ec4425529f5ea1db03e68bec2f3 | [
"MIT"
] | null | null | null | utils_continuous.py | hsharsh/pinn-torch | fa563b324c286ec4425529f5ea1db03e68bec2f3 | [
"MIT"
] | null | null | null | # Data processing imports
import scipy.io as io
import numpy as np
from pyDOE import lhs
# Plotting imports
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
from scipy.interpolate import griddata
import matplotlib.gridspec as gridspec
def load_dataset(file):
data = io.loadma... | 35.786517 | 141 | 0.569963 | 1,660 | 9,555 | 3.139759 | 0.126506 | 0.024559 | 0.023024 | 0.030698 | 0.763239 | 0.754221 | 0.731389 | 0.723715 | 0.710668 | 0.710668 | 0 | 0.059324 | 0.200837 | 9,555 | 266 | 142 | 35.921053 | 0.623232 | 0.072737 | 0 | 0.774359 | 0 | 0.010256 | 0.105366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.035897 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
652a270a18b7168a39e6adf7657a9a7c192f2373 | 1,767 | py | Python | stubs/3.2/math.py | TimSimpsonR/mypy | 5e6fd6335e0662b0477e1d678269f33e6f4194ba | [
"PSF-2.0"
] | 1 | 2019-06-16T07:05:32.000Z | 2019-06-16T07:05:32.000Z | stubs/3.2/math.py | TimSimpsonR/mypy | 5e6fd6335e0662b0477e1d678269f33e6f4194ba | [
"PSF-2.0"
] | null | null | null | stubs/3.2/math.py | TimSimpsonR/mypy | 5e6fd6335e0662b0477e1d678269f33e6f4194ba | [
"PSF-2.0"
] | null | null | null | # Stubs for math
# Ron Murawski <ron@horizonchess.com>
# based on: http://docs.python.org/3.2/library/math.html
from typing import overload, Tuple, Iterable
# ----- variables and constants -----
e = 0.0
pi = 0.0
# ----- functions -----
def ceil(x: float) -> int: pass
def copysign(x: float, y: float) -> float: pass
... | 32.722222 | 56 | 0.651952 | 300 | 1,767 | 3.84 | 0.27 | 0.243056 | 0.34375 | 0.398438 | 0.548611 | 0.083333 | 0.083333 | 0 | 0 | 0 | 0 | 0.007509 | 0.170911 | 1,767 | 53 | 57 | 33.339623 | 0.77884 | 0.092247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.931818 | false | 0.931818 | 0.022727 | 0 | 0.954545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
e8f5a6f57f0912d48a5cf5d5564ecf3cd6ce96fc | 22,135 | py | Python | fonts/vector/romanc.py | szczys/st7789_mpy | bc854ec453d7644ce1773f7ed4d41504f37d376b | [
"MIT"
] | 153 | 2020-02-02T11:03:14.000Z | 2022-03-30T05:47:07.000Z | fonts/vector/romanc.py | skylin008/st7789_mpy | f304991fc5558be653df5f0de928494b85cbc60d | [
"MIT"
] | 58 | 2020-04-11T23:23:02.000Z | 2022-03-26T20:45:23.000Z | fonts/vector/romanc.py | skylin008/st7789_mpy | f304991fc5558be653df5f0de928494b85cbc60d | [
"MIT"
] | 50 | 2020-02-02T11:05:23.000Z | 2022-03-22T15:24:42.000Z | WIDTH = 32
HEIGHT = 32
FIRST = 0x20
LAST = 0x7f
_font =\
b'\x00\x4a\x5a\x0e\x4d\x57\x52\x46\x51\x48\x52\x54\x53\x48\x52'\
b'\x46\x20\x52\x52\x48\x52\x4e\x20\x52\x52\x59\x51\x5a\x52\x5b'\
b'\x53\x5a\x52\x59\x15\x49\x5b\x4e\x46\x4d\x47\x4d\x4d\x20\x52'\
b'\x4e\x47\x4d\x4d\x20\x52\x4e\x46\x4f\x47\x4d\x4d\x20\x52\x57'\
b'... | 63.062678 | 64 | 0.707567 | 5,435 | 22,135 | 2.880957 | 0.027047 | 0.107677 | 0.0684 | 0.012262 | 0.461042 | 0.380508 | 0.325393 | 0.276408 | 0.234066 | 0.201175 | 0 | 0.380139 | 0.016445 | 22,135 | 350 | 65 | 63.242857 | 0.339075 | 0 | 0 | 0.028818 | 0 | 0.976945 | 0.918003 | 0.918003 | 0 | 1 | 0.000361 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3301c7fa1e602409a8c75b49cd17175439693d61 | 1,220 | py | Python | api/app/customer/schemas.py | Sguerreroo/electricity-market-analysis | 32576f65a056ec1c94f098273dabdd1c2090e9f6 | [
"MIT"
] | null | null | null | api/app/customer/schemas.py | Sguerreroo/electricity-market-analysis | 32576f65a056ec1c94f098273dabdd1c2090e9f6 | [
"MIT"
] | null | null | null | api/app/customer/schemas.py | Sguerreroo/electricity-market-analysis | 32576f65a056ec1c94f098273dabdd1c2090e9f6 | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, validate
class CustomerSchema(Schema):
name = fields.Str(
required=True,
error_messages={"required": "Introduce tu nombre"},
validate=[
validate.Length(
max=255,
error="Campo demasiado largo"
)
]
)
surname = fields.Str(
required=True,
error_messages... | 20.677966 | 78 | 0.662295 | 137 | 1,220 | 5.846715 | 0.284672 | 0.113608 | 0.106117 | 0.131086 | 0.817728 | 0.817728 | 0.817728 | 0.817728 | 0.817728 | 0.751561 | 0 | 0.013265 | 0.196721 | 1,220 | 59 | 79 | 20.677966 | 0.804082 | 0 | 0 | 0.581818 | 0 | 0 | 0.266994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
330c84322598b728ad154dbe8a530d87c6116950 | 1,218 | py | Python | qiling/qiling/cc/arm.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | qiling/qiling/cc/arm.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | qiling/qiling/cc/arm.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | #!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
from unicorn.arm_const import UC_ARM_REG_R0, UC_ARM_REG_R1, UC_ARM_REG_R2, UC_ARM_REG_R3
from unicorn.arm64_const import (
UC_ARM64_REG_X0, UC_ARM64_REG_X1, UC_ARM64_REG_X2, UC_ARM64_REG_X3,
UC_ARM64_REG_X4, UC_ARM6... | 29.707317 | 163 | 0.763547 | 208 | 1,218 | 3.990385 | 0.288462 | 0.143373 | 0.204819 | 0.036145 | 0.66988 | 0.66988 | 0.66988 | 0.66988 | 0.66988 | 0.66988 | 0 | 0.068311 | 0.134647 | 1,218 | 40 | 164 | 30.45 | 0.719165 | 0.103448 | 0 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.16 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
683b48a041071ed728c9b592e467586fca8e65f8 | 5,524 | py | Python | gslab_misc/gencat/tests/test_zipFile.py | AakaashRao/gslab_python | 864f708ec80f4381235506489b8c117e54e16450 | [
"MIT"
] | 12 | 2017-03-03T20:48:50.000Z | 2020-11-27T23:37:15.000Z | gslab_misc/gencat/tests/test_zipFile.py | AakaashRao/gslab_python | 864f708ec80f4381235506489b8c117e54e16450 | [
"MIT"
] | 132 | 2017-01-11T23:32:01.000Z | 2022-03-31T17:00:06.000Z | gslab_misc/gencat/tests/test_zipFile.py | AakaashRao/gslab_python | 864f708ec80f4381235506489b8c117e54e16450 | [
"MIT"
] | 10 | 2017-07-22T02:35:29.000Z | 2021-02-16T00:09:44.000Z | import unittest
import os
import shutil
import zipfile
import sys
# Ensure the script is run from its own directory
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append('../../')
from gencat import gencat
class MockCat(gencat):
def makeZipDict(self):
pass
def makeConcatDict(self):... | 36.826667 | 105 | 0.568248 | 680 | 5,524 | 4.472059 | 0.161765 | 0.07366 | 0.061493 | 0.055245 | 0.800723 | 0.789872 | 0.768826 | 0.75633 | 0.745807 | 0.745807 | 0 | 0.01692 | 0.272448 | 5,524 | 149 | 106 | 37.073826 | 0.739736 | 0.067161 | 0 | 0.637255 | 0 | 0 | 0.283455 | 0.07373 | 0 | 0 | 0 | 0 | 0.156863 | 1 | 0.078431 | false | 0.019608 | 0.058824 | 0 | 0.156863 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6841ded7f748c97b1c2bed89db300573835d7f7c | 2,272 | py | Python | gns3.py | packetscaper/CCIE-RS-Lab | 40710a1d66a9f617488ffb3deedfa530989c2f98 | [
"MIT"
] | 31 | 2019-07-31T14:42:02.000Z | 2022-03-29T16:38:37.000Z | gns3.py | packetscaper/CCIE-RS-Lab | 40710a1d66a9f617488ffb3deedfa530989c2f98 | [
"MIT"
] | 1 | 2021-03-26T16:29:04.000Z | 2021-07-18T14:15:09.000Z | gns3.py | packetscaper/CCIE-RS-Lab | 40710a1d66a9f617488ffb3deedfa530989c2f98 | [
"MIT"
] | 10 | 2019-07-28T08:02:07.000Z | 2022-02-25T10:05:19.000Z | import yaml
from LabConnection import *
import threading
import requests,json,time,yaml
class Gns3:
def __init__(self):
with open('yamlfiles/console.yaml') as f:
o = yaml.safe_load(f)
self.gns3_host = "http://"+o["gns3_host_ip"]+":3080/"
def start(self,device):
url = self.gns3_host+"v2/p... | 28.049383 | 82 | 0.588468 | 291 | 2,272 | 4.446735 | 0.226804 | 0.092736 | 0.049459 | 0.061824 | 0.782071 | 0.782071 | 0.782071 | 0.782071 | 0.782071 | 0.709428 | 0 | 0.008939 | 0.261444 | 2,272 | 80 | 83 | 28.4 | 0.762217 | 0 | 0 | 0.610169 | 0 | 0 | 0.179577 | 0.009683 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
686a0cb1da548004ea57c95432efe5601832a90e | 27 | py | Python | meiduo_mall/meiduo_mall/settings/__init__.py | linbo-boy/Meiduo-Shopping-Mall | f5a46e742f27d33a25dffc47c3fb34914c7c59b1 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/settings/__init__.py | linbo-boy/Meiduo-Shopping-Mall | f5a46e742f27d33a25dffc47c3fb34914c7c59b1 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/settings/__init__.py | linbo-boy/Meiduo-Shopping-Mall | f5a46e742f27d33a25dffc47c3fb34914c7c59b1 | [
"MIT"
] | null | null | null | # 存放配置文件的目录,分为开发dev和线上prod
| 13.5 | 26 | 0.851852 | 2 | 27 | 11.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 27 | 1 | 27 | 27 | 0.92 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d7ab6ab61d4663a28865678ca623c22ecd6b84f9 | 584 | py | Python | tests/test.py | davidbistolas/py-simple-audio | ad8afd2086c8570ecfb29e6b404fc4a5849c1255 | [
"MIT"
] | 121 | 2015-12-01T06:18:31.000Z | 2022-03-14T11:46:10.000Z | tests/test.py | davidbistolas/py-simple-audio | ad8afd2086c8570ecfb29e6b404fc4a5849c1255 | [
"MIT"
] | 51 | 2015-09-08T18:47:44.000Z | 2022-01-07T14:34:44.000Z | tests/test.py | davidbistolas/py-simple-audio | ad8afd2086c8570ecfb29e6b404fc4a5849c1255 | [
"MIT"
] | 28 | 2016-03-09T17:10:58.000Z | 2022-03-08T23:24:35.000Z | import simpleaudio as sa
import unittest
class TestSimpleaudio(unittest.TestCase):
def test_num_channels(self):
self.assertRaises(ValueError, sa.play_buffer, b'\0' * 16, 0, 2, 44100)
self.assertRaises(ValueError, sa.play_buffer, b'\0' * 16, 3, 2, 44100)
def test_bytes_per_chan(self):
... | 32.444444 | 78 | 0.674658 | 86 | 584 | 4.44186 | 0.348837 | 0.209424 | 0.340314 | 0.366492 | 0.615183 | 0.615183 | 0.615183 | 0.615183 | 0.615183 | 0.615183 | 0 | 0.105932 | 0.191781 | 584 | 17 | 79 | 34.352941 | 0.70339 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0bd20c4cfdbf17e0475d21a04f34f83082a3a7fe | 31 | py | Python | tests/__init__.py | gitter-badger/vcspull | 9584c6d40fca8e9f36970894ce620a891723d9b5 | [
"MIT"
] | 169 | 2015-01-13T14:57:28.000Z | 2018-02-17T13:40:58.000Z | tests/__init__.py | gitter-badger/vcspull | 9584c6d40fca8e9f36970894ce620a891723d9b5 | [
"MIT"
] | 198 | 2018-03-11T19:11:14.000Z | 2022-03-26T23:01:08.000Z | tests/__init__.py | gitter-badger/vcspull | 9584c6d40fca8e9f36970894ce620a891723d9b5 | [
"MIT"
] | 9 | 2015-01-05T13:37:19.000Z | 2016-11-25T05:40:01.000Z | from . import fixtures # noqa
| 15.5 | 30 | 0.709677 | 4 | 31 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 31 | 1 | 31 | 31 | 0.916667 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
040cb43b42a679bae7e1cea30ce8644b92a7c6b6 | 50,243 | py | Python | txdav/common/datastore/podding/test/test_conduit.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 462 | 2016-08-14T17:43:24.000Z | 2022-03-17T07:38:16.000Z | txdav/common/datastore/podding/test/test_conduit.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 72 | 2016-09-01T23:19:35.000Z | 2020-02-05T02:09:26.000Z | txdav/common/datastore/podding/test/test_conduit.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 171 | 2016-08-16T03:50:30.000Z | 2022-03-26T11:49:55.000Z | ##
# Copyright (c) 2005-2017 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 45.551224 | 158 | 0.690484 | 5,138 | 50,243 | 6.715064 | 0.080576 | 0.059997 | 0.085212 | 0.059678 | 0.810272 | 0.787809 | 0.784592 | 0.77297 | 0.751609 | 0.723291 | 0 | 0.030313 | 0.191071 | 50,243 | 1,102 | 159 | 45.592559 | 0.818591 | 0.038214 | 0 | 0.681648 | 0 | 0 | 0.099822 | 0.011544 | 0 | 0 | 0 | 0 | 0.203496 | 1 | 0.041199 | false | 0 | 0.029963 | 0.003745 | 0.089888 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
041a41c21a479aa773799cd09b5a93ee5a8a115d | 208 | py | Python | Lib/ufo2ft/kernFeatureWriter.py | belluzj/ufo2ft | 72cab16137c3da797b8384dd66f9fbcf65ad9978 | [
"MIT"
] | null | null | null | Lib/ufo2ft/kernFeatureWriter.py | belluzj/ufo2ft | 72cab16137c3da797b8384dd66f9fbcf65ad9978 | [
"MIT"
] | null | null | null | Lib/ufo2ft/kernFeatureWriter.py | belluzj/ufo2ft | 72cab16137c3da797b8384dd66f9fbcf65ad9978 | [
"MIT"
] | null | null | null | """This module is deprecated! It's kept here only for backward compatibility.
Please import the new ufo2ft.featureWriters module.
"""
from ufo2ft.featureWriters.kernFeatureWriter import * # pragma: no cover
| 41.6 | 77 | 0.793269 | 27 | 208 | 6.111111 | 0.851852 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.129808 | 208 | 4 | 78 | 52 | 0.900552 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9bdd9739f584772f354f12dda8704ca96ca7e7ac | 7,380 | py | Python | im2mesh/onet_multi_layers_predict/models/feature_extractor.py | bezirganyan/Occup-R2N2 | 9adf6d0a9cc6f884fc17c80b24e72060dbacf3c1 | [
"MIT"
] | 2 | 2020-06-03T20:54:26.000Z | 2021-09-15T06:57:57.000Z | im2mesh/onet_multi_layers_predict/models/feature_extractor.py | bezirganyan/Occup-R2N2 | 9adf6d0a9cc6f884fc17c80b24e72060dbacf3c1 | [
"MIT"
] | null | null | null | im2mesh/onet_multi_layers_predict/models/feature_extractor.py | bezirganyan/Occup-R2N2 | 9adf6d0a9cc6f884fc17c80b24e72060dbacf3c1 | [
"MIT"
] | 2 | 2020-06-14T12:27:22.000Z | 2020-10-27T16:55:04.000Z | import torch.nn as nn
import torch
import torch.nn.functional as F
from im2mesh.onet_multi_layers_predict.models import resnet
from im2mesh.common import normalize_imagenet
import im2mesh.common as common
def kmax_pooling(x, dim, k):
index = x.topk(k, dim=dim)[1].sort(dim=dim)[0]
return x.gather(dim, index)
c... | 32.654867 | 123 | 0.59336 | 1,062 | 7,380 | 3.925612 | 0.12806 | 0.01823 | 0.043656 | 0.021588 | 0.80355 | 0.794435 | 0.769729 | 0.754857 | 0.749101 | 0.741425 | 0 | 0.068772 | 0.300542 | 7,380 | 225 | 124 | 32.8 | 0.738861 | 0.123035 | 0 | 0.610063 | 0 | 0 | 0.012686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069182 | false | 0 | 0.037736 | 0 | 0.176101 | 0.018868 | 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 | 0 | 0 | 6 |
50062d3eb0b7a6ce853267189edef5492f1a8e9e | 17,597 | py | Python | misago/misago/threads/tests/test_thread_editreply_api.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/threads/tests/test_thread_editreply_api.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/threads/tests/test_thread_editreply_api.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from datetime import timedelta
from django.test.client import BOUNDARY, MULTIPART_CONTENT, encode_multipart
from django.urls import reverse
from django.utils import timezone
from .. import test
from ...acl.test import patch_user_acl
from ...categories.models import Category
from ...users.test import AuthenticatedUser... | 38.088745 | 85 | 0.652554 | 2,238 | 17,597 | 4.914656 | 0.087578 | 0.081826 | 0.089917 | 0.087008 | 0.813983 | 0.785617 | 0.759433 | 0.753432 | 0.722066 | 0.711246 | 0 | 0.01124 | 0.226459 | 17,597 | 461 | 86 | 38.171367 | 0.796797 | 0.073251 | 0 | 0.595238 | 0 | 0 | 0.124133 | 0.016778 | 0 | 0 | 0 | 0 | 0.258929 | 1 | 0.10119 | false | 0.011905 | 0.029762 | 0 | 0.136905 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
50521f699f2cd7deae7492a6a14bf8db3ecbdf8e | 34,732 | py | Python | deepsleep/trainer.py | HTJR/deepsleepnet | d4906b4875547a45175eaba8bdde280b7b1496f1 | [
"Apache-2.0"
] | 266 | 2017-06-24T03:27:52.000Z | 2022-03-28T14:21:03.000Z | deepsleep/trainer.py | HOCHAN-LEE/deepsleepnet | 24dedefbff5f3ab9cd7e8d20808afb866261302d | [
"Apache-2.0"
] | 43 | 2017-07-13T13:03:02.000Z | 2022-01-07T06:49:45.000Z | deepsleep/trainer.py | HOCHAN-LEE/deepsleepnet | 24dedefbff5f3ab9cd7e8d20808afb866261302d | [
"Apache-2.0"
] | 136 | 2017-07-09T11:45:51.000Z | 2022-03-24T19:45:30.000Z | import itertools
import os
import re
import time
from datetime import datetime
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from sklearn.metrics import confusion_matrix, f1_score
from deepsleep.data_loader import NonSeqDataLoader, Se... | 42.879012 | 137 | 0.497092 | 3,759 | 34,732 | 4.288641 | 0.091514 | 0.021773 | 0.017989 | 0.012902 | 0.803548 | 0.773959 | 0.752311 | 0.73916 | 0.719682 | 0.719682 | 0 | 0.01286 | 0.406714 | 34,732 | 809 | 138 | 42.932015 | 0.769485 | 0.151676 | 0 | 0.693989 | 0 | 0 | 0.050723 | 0.005265 | 0 | 0 | 0 | 0 | 0.003643 | 1 | 0.018215 | false | 0 | 0.025501 | 0 | 0.056466 | 0.091075 | 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 | 0 | 0 | 6 |
5059e219845b4a249306d11e0aeb71b92919c849 | 101 | py | Python | tests/test_util.py | eikendev/dudendas | b03074deac55e4fb2eed105d2685a19c21651b2e | [
"MIT"
] | null | null | null | tests/test_util.py | eikendev/dudendas | b03074deac55e4fb2eed105d2685a19c21651b2e | [
"MIT"
] | null | null | null | tests/test_util.py | eikendev/dudendas | b03074deac55e4fb2eed105d2685a19c21651b2e | [
"MIT"
] | null | null | null | from dudendas.util import *
def test_textify():
assert textify(" foo bar (3a) ") == "foo bar"
| 16.833333 | 50 | 0.633663 | 14 | 101 | 4.5 | 0.785714 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.217822 | 101 | 5 | 51 | 20.2 | 0.78481 | 0 | 0 | 0 | 0 | 0 | 0.217822 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
acf4b1f9aea318929865cb4e4d405e43d405a471 | 19 | py | Python | rpiwepd/lib/__init__.py | genwch/rpiwepd | 27ced8ef1255f17b475b231f6aefc1e4f8ab6a27 | [
"MIT"
] | null | null | null | rpiwepd/lib/__init__.py | genwch/rpiwepd | 27ced8ef1255f17b475b231f6aefc1e4f8ab6a27 | [
"MIT"
] | null | null | null | rpiwepd/lib/__init__.py | genwch/rpiwepd | 27ced8ef1255f17b475b231f6aefc1e4f8ab6a27 | [
"MIT"
] | null | null | null | from .epd import *
| 9.5 | 18 | 0.684211 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4a078c75b2e45c2072b55df47666e43db044972b | 348 | py | Python | lazythumbs/tests/__init__.py | caktus/lazythumbs | 006ac42f9f4ac600d4c85d0929f4e2c755d4f853 | [
"MIT"
] | 1 | 2017-07-24T22:06:25.000Z | 2017-07-24T22:06:25.000Z | lazythumbs/tests/__init__.py | caktus/lazythumbs | 006ac42f9f4ac600d4c85d0929f4e2c755d4f853 | [
"MIT"
] | null | null | null | lazythumbs/tests/__init__.py | caktus/lazythumbs | 006ac42f9f4ac600d4c85d0929f4e2c755d4f853 | [
"MIT"
] | null | null | null | from lazythumbs.tests.test_server import RenderTest, GetViewTest
from lazythumbs.tests.test_templatetag import LazythumbSyntaxTest, LazythumbGeometryCompileTest, LazythumbRenderTest
from lazythumbs.tests.test_templatetag import ImgAttrsRenderTest
from lazythumbs.tests.test_util import TestGeometry, TestComputeIMG, Tes... | 69.6 | 116 | 0.893678 | 34 | 348 | 9.029412 | 0.529412 | 0.18241 | 0.247557 | 0.299674 | 0.260586 | 0.260586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066092 | 348 | 4 | 117 | 87 | 0.944615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4a140e53ca915217379ec66d0341919746bb8c0d | 58 | py | Python | src/apps/trainings/viewsets/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 27 | 2020-05-03T11:01:27.000Z | 2022-03-17T05:33:10.000Z | src/apps/trainings/viewsets/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 54 | 2020-05-09T01:18:41.000Z | 2022-01-22T10:31:15.000Z | src/apps/trainings/viewsets/__init__.py | sanderland/katago-server | 6414fab080d007c05068a06ff4f25907b92848bd | [
"MIT"
] | 9 | 2020-09-29T11:31:32.000Z | 2022-03-09T01:37:50.000Z | from .network import NetworkViewSet, NetworkViewSetForElo
| 29 | 57 | 0.87931 | 5 | 58 | 10.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 58 | 1 | 58 | 58 | 0.962264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4a22fcc3c8ad1a3e760e61dd35132bec7ac943e6 | 6,735 | py | Python | src/pymap3d/ned.py | ryanpavlick/pymap3d | 968f6837b1550503461f884d8ce2e1b10c0db1f4 | [
"BSD-2-Clause"
] | 116 | 2020-02-23T02:04:18.000Z | 2022-03-29T00:19:37.000Z | src/pymap3d/ned.py | ryanpavlick/pymap3d | 968f6837b1550503461f884d8ce2e1b10c0db1f4 | [
"BSD-2-Clause"
] | 19 | 2020-03-02T08:13:46.000Z | 2022-03-30T17:50:00.000Z | src/pymap3d/ned.py | ryanpavlick/pymap3d | 968f6837b1550503461f884d8ce2e1b10c0db1f4 | [
"BSD-2-Clause"
] | 28 | 2020-02-24T11:56:03.000Z | 2022-03-29T02:29:37.000Z | """ Transforms involving NED North East Down """
from __future__ import annotations
import typing
from .enu import geodetic2enu, aer2enu, enu2aer
from .ecef import ecef2geodetic, ecef2enuv, ecef2enu, enu2ecef
from .ellipsoid import Ellipsoid
if typing.TYPE_CHECKING:
from numpy import ndarray
def aer2ned(
a... | 22.009804 | 86 | 0.585449 | 770 | 6,735 | 5.114286 | 0.119481 | 0.121889 | 0.10132 | 0.055866 | 0.804469 | 0.7839 | 0.775775 | 0.76968 | 0.76968 | 0.754698 | 0 | 0.013931 | 0.317892 | 6,735 | 305 | 87 | 22.081967 | 0.843274 | 0.585895 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0 | 0.088235 | 0 | 0.294118 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c5928fd8bf3c19beebe27419c9d9fea66df3cb49 | 3,262 | py | Python | GrowingNeuralGasPlotter.py | lucasolip/UnsupervisedArchitectures | fd724cdbb6a0fba8274edba1f4de49a74ab315bd | [
"MIT"
] | null | null | null | GrowingNeuralGasPlotter.py | lucasolip/UnsupervisedArchitectures | fd724cdbb6a0fba8274edba1f4de49a74ab315bd | [
"MIT"
] | null | null | null | GrowingNeuralGasPlotter.py | lucasolip/UnsupervisedArchitectures | fd724cdbb6a0fba8274edba1f4de49a74ab315bd | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import tensorflow as tf
class GrowingNeuralGasPlotter(object):
@staticmethod
def plotGraphConnectedComponent(pathFigure, nameFigure, A, N, X, edges):
if len(X[0]) == 3:
figure = plt.figure()
axis = figure.add_subplot(projection='3d')
... | 39.780488 | 118 | 0.523605 | 416 | 3,262 | 4.074519 | 0.170673 | 0.031858 | 0.031858 | 0.035398 | 0.810619 | 0.810619 | 0.787611 | 0.787021 | 0.724484 | 0.710324 | 0 | 0.028808 | 0.29767 | 3,262 | 82 | 119 | 39.780488 | 0.711043 | 0.007357 | 0 | 0.57971 | 0 | 0 | 0.029151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.028986 | 0 | 0.130435 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c59e8e61f9141dc03f11a055fa4a295a8b6650b8 | 146 | py | Python | build_gpcr/management/commands/build_endogenous_ligands.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 21 | 2016-01-20T09:33:14.000Z | 2021-12-20T19:19:45.000Z | build_gpcr/management/commands/build_endogenous_ligands.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 75 | 2016-02-26T16:29:58.000Z | 2022-03-21T12:35:13.000Z | build_gpcr/management/commands/build_endogenous_ligands.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 77 | 2016-01-22T08:44:26.000Z | 2022-02-01T15:54:56.000Z | from build.management.commands.build_endogenous_ligands import Command as BuildEndogenousLigands
class Command(BuildEndogenousLigands):
pass | 29.2 | 96 | 0.863014 | 15 | 146 | 8.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 146 | 5 | 97 | 29.2 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
c5a64c18b42a86afdc12e1669501e0e9abbc3754 | 11,909 | py | Python | Prob_WE/wasserstein/operators.py | albpurpura/PE4IR | 54c5d471181cdb64225ecd738577b9f1f94c8d24 | [
"Apache-2.0"
] | null | null | null | Prob_WE/wasserstein/operators.py | albpurpura/PE4IR | 54c5d471181cdb64225ecd738577b9f1f94c8d24 | [
"Apache-2.0"
] | null | null | null | Prob_WE/wasserstein/operators.py | albpurpura/PE4IR | 54c5d471181cdb64225ecd738577b9f1f94c8d24 | [
"Apache-2.0"
] | null | null | null | """
Author: Marco Maggipinto
Copyright: (C) 2019-2020 <http://www.dei.unipd.it/
Department of Information Engineering> (DEI), <http://www.unipd.it/ University of Padua>, Italy
License: <http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0>
"""
import time
import torch
class BuresP... | 37.332288 | 121 | 0.571752 | 1,951 | 11,909 | 3.311123 | 0.093798 | 0.018576 | 0.039009 | 0.039164 | 0.823375 | 0.797368 | 0.789938 | 0.78065 | 0.78065 | 0.76548 | 0 | 0.033883 | 0.261483 | 11,909 | 318 | 122 | 37.449686 | 0.700625 | 0.119993 | 0 | 0.640351 | 0 | 0 | 0.009392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.008772 | 0 | 0.20614 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a869172e2eed90c5a66784f962ea72e355055a89 | 14,012 | py | Python | tests/schema/mysql/test_mysql_schema.py | mandarvaze/orm | 35b3858caafab91c8690fc325a9472c04de4d00b | [
"MIT"
] | null | null | null | tests/schema/mysql/test_mysql_schema.py | mandarvaze/orm | 35b3858caafab91c8690fc325a9472c04de4d00b | [
"MIT"
] | null | null | null | tests/schema/mysql/test_mysql_schema.py | mandarvaze/orm | 35b3858caafab91c8690fc325a9472c04de4d00b | [
"MIT"
] | null | null | null | from src.masonite.orm.grammar.mysql_grammar import MySQLGrammar
from src.masonite.orm.blueprint.Blueprint import Blueprint
from src.masonite.orm.grammar.GrammarFactory import GrammarFactory
from src.masonite.orm.schema.Schema import Schema
import unittest, inspect
class BaseTestCreateGrammar:
def setUp(self):
... | 32.662005 | 106 | 0.58143 | 1,488 | 14,012 | 5.284274 | 0.083333 | 0.050871 | 0.056976 | 0.101742 | 0.908178 | 0.895205 | 0.893298 | 0.868625 | 0.850566 | 0.811395 | 0 | 0.007204 | 0.286683 | 14,012 | 428 | 107 | 32.738318 | 0.77949 | 0.149301 | 0 | 0.592157 | 0 | 0.003922 | 0.193893 | 0.001869 | 0 | 0 | 0 | 0 | 0.086275 | 1 | 0.152941 | false | 0.007843 | 0.019608 | 0 | 0.258824 | 0.294118 | 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 | 0 | 0 | 6 |
a89a53e13ecb73b4d2bf5fea96f5746f2db7b3f1 | 162 | py | Python | app/config/views.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 1 | 2019-04-28T12:21:51.000Z | 2019-04-28T12:21:51.000Z | app/config/views.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-30T05:44:44.000Z | 2020-06-05T18:56:41.000Z | app/config/views.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-23T05:21:41.000Z | 2018-08-08T05:00:42.000Z | from django.http import HttpResponse
from django.shortcuts import render, redirect
def index(request):
return render(request, 'pensions/pensions_list.html') | 27 | 57 | 0.802469 | 21 | 162 | 6.142857 | 0.714286 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117284 | 162 | 6 | 57 | 27 | 0.902098 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 0.165644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
a8b92df4236143df4b3c01c4d048c78f795db432 | 127 | py | Python | t.py | vansin/pix2code | caa3d2bcba9944ca9e9439f7551c8440c0087b8a | [
"Apache-2.0"
] | null | null | null | t.py | vansin/pix2code | caa3d2bcba9944ca9e9439f7551c8440c0087b8a | [
"Apache-2.0"
] | null | null | null | t.py | vansin/pix2code | caa3d2bcba9944ca9e9439f7551c8440c0087b8a | [
"Apache-2.0"
] | null | null | null |
import tensorflow as tf
gpu_device_name = tf.test.gpu_device_name()
#print(gpu_device_name)
print(tf.test.is_gpu_available()) | 21.166667 | 43 | 0.811024 | 22 | 127 | 4.318182 | 0.5 | 0.284211 | 0.410526 | 0.378947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07874 | 127 | 6 | 44 | 21.166667 | 0.811966 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a8cbab364f4bef461d1cad7e23b10052916535a2 | 45 | py | Python | src/flask_pyoidc/__init__.py | infohash/Flask-pyoidc | 7d50c3e4bb5298044752e07aea8e2d2d00d29b1b | [
"Apache-2.0"
] | 64 | 2017-01-31T09:08:15.000Z | 2021-12-21T21:05:45.000Z | src/flask_pyoidc/__init__.py | infohash/Flask-pyoidc | 7d50c3e4bb5298044752e07aea8e2d2d00d29b1b | [
"Apache-2.0"
] | 99 | 2017-02-08T22:38:54.000Z | 2022-03-31T22:03:27.000Z | src/flask_pyoidc/__init__.py | infohash/Flask-pyoidc | 7d50c3e4bb5298044752e07aea8e2d2d00d29b1b | [
"Apache-2.0"
] | 33 | 2017-02-09T18:19:51.000Z | 2021-12-24T17:48:52.000Z | from .flask_pyoidc import OIDCAuthentication
| 22.5 | 44 | 0.888889 | 5 | 45 | 7.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7633fdcafcc2291c659fc2d7c33f8c232d071a76 | 102 | py | Python | simulations/ecg/p.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | 2 | 2019-04-02T00:17:57.000Z | 2019-08-20T05:21:46.000Z | simulations/ecg/p.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | 13 | 2019-04-01T00:37:01.000Z | 2020-10-04T00:50:01.000Z | simulations/ecg/p.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | null | null | null | import math
def p(M_P,t_P,W_P,t):
return M_P * math.exp(-1 * ((t - t_P)/(math.sqrt(2) * W_P)) ** 2)
| 20.4 | 66 | 0.568627 | 26 | 102 | 2 | 0.461538 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.176471 | 102 | 4 | 67 | 25.5 | 0.583333 | 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 | 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 | 6 |
4f50e42e960f390840fab47ebb82d938368fc417 | 1,688 | py | Python | tests/test_gke.py | andrewpsp/astrobase | 7adaa7c23bab3dbfdd90e18b5a10ed114b20bedd | [
"Apache-2.0"
] | 34 | 2021-04-12T02:56:07.000Z | 2022-03-24T21:56:58.000Z | tests/test_gke.py | andrewpsp/astrobase | 7adaa7c23bab3dbfdd90e18b5a10ed114b20bedd | [
"Apache-2.0"
] | 2 | 2021-12-29T04:07:24.000Z | 2022-03-16T06:05:05.000Z | tests/test_gke.py | andrewpsp/astrobase | 7adaa7c23bab3dbfdd90e18b5a10ed114b20bedd | [
"Apache-2.0"
] | 1 | 2021-05-30T03:59:07.000Z | 2021-05-30T03:59:07.000Z | from unittest import mock
from tests.factories import ClusterFactory
cluster_examples = ClusterFactory()
def test_create_cluster(client):
with mock.patch(
"astrobase.apis.gke.GKEApi.make_create_request"
) as mock_gke_api_request:
mock_gke_api_request.return_value = {"name": "astrobase-gke-ap... | 34.44898 | 75 | 0.675355 | 211 | 1,688 | 5.170616 | 0.208531 | 0.076994 | 0.109991 | 0.093492 | 0.824931 | 0.824931 | 0.796517 | 0.796517 | 0.796517 | 0.714024 | 0 | 0.011169 | 0.204384 | 1,688 | 48 | 76 | 35.166667 | 0.801191 | 0 | 0 | 0.526316 | 0 | 0 | 0.277251 | 0.200237 | 0 | 0 | 0 | 0 | 0.184211 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.157895 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8c23ca0439fd9a2cd9b86c5ac82d687887c84d5e | 145 | py | Python | client_wishlist/wishlist/admin.py | EVolpert/client_whishlist | b2da64a53e978bc77bc4fb9a8c9b9dc4af66c5b1 | [
"CC0-1.0"
] | null | null | null | client_wishlist/wishlist/admin.py | EVolpert/client_whishlist | b2da64a53e978bc77bc4fb9a8c9b9dc4af66c5b1 | [
"CC0-1.0"
] | 5 | 2021-03-30T14:20:02.000Z | 2021-09-22T19:29:15.000Z | client_wishlist/wishlist/admin.py | EVolpert/client_whishlist | b2da64a53e978bc77bc4fb9a8c9b9dc4af66c5b1 | [
"CC0-1.0"
] | 1 | 2020-08-18T16:35:12.000Z | 2020-08-18T16:35:12.000Z | from django.contrib import admin
from wishlist.models import Wishlist
@admin.register(Wishlist)
class WishlistAdmin(admin.ModelAdmin):
pass | 20.714286 | 38 | 0.813793 | 18 | 145 | 6.555556 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 145 | 7 | 39 | 20.714286 | 0.921875 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
8b22e4d1c248a5fd419cb4dc89a783f169ce6d7c | 10,955 | py | Python | tests/api/test_communities.py | LEv145/python-twitch-client | f1f45cf8afb1da1335b8f29023d4db5855f009bf | [
"MIT"
] | 171 | 2017-02-25T19:22:22.000Z | 2022-02-13T22:23:14.000Z | tests/api/test_communities.py | LEv145/python-twitch-client | f1f45cf8afb1da1335b8f29023d4db5855f009bf | [
"MIT"
] | 55 | 2017-03-13T01:41:50.000Z | 2022-02-11T20:38:54.000Z | tests/api/test_communities.py | LEv145/python-twitch-client | f1f45cf8afb1da1335b8f29023d4db5855f009bf | [
"MIT"
] | 68 | 2017-02-25T20:07:46.000Z | 2022-02-04T16:48:47.000Z | import json
import pytest
import responses
from twitch.client import TwitchClient
from twitch.constants import BASE_URL
from twitch.exceptions import TwitchAttributeException
from twitch.resources import Community, User
example_community = {
"_id": "e9f17055-810f-4736-ba40-fba4ac541caa",
"name": "DallasTeste... | 26.083333 | 85 | 0.672478 | 1,245 | 10,955 | 5.706827 | 0.085141 | 0.089796 | 0.074314 | 0.080507 | 0.880366 | 0.855735 | 0.827445 | 0.797044 | 0.76228 | 0.747361 | 0 | 0.018825 | 0.199909 | 10,955 | 419 | 86 | 26.145585 | 0.791786 | 0 | 0 | 0.68932 | 0 | 0 | 0.141031 | 0.042994 | 0 | 0 | 0 | 0 | 0.139159 | 1 | 0.071197 | false | 0.009709 | 0.022654 | 0 | 0.093851 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8c6672e903fbd2db5155939f1b1597017c2c194e | 40 | py | Python | pyhcl/lib/__init__.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | 1 | 2021-12-10T14:02:54.000Z | 2021-12-10T14:02:54.000Z | pyhcl/lib/__init__.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/lib/__init__.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | 1 | 2022-03-04T03:36:01.000Z | 2022-03-04T03:36:01.000Z | from .fifo.fifo import BubbleFifoFactory | 40 | 40 | 0.875 | 5 | 40 | 7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 40 | 1 | 40 | 40 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
8cef041bcd91a43c1443fa376c88bd6bfb52ff6a | 23 | py | Python | pixel_table/modes/rain/__init__.py | Spooner/pixel-table | 87ac04adbb74702bee3dcaa5c6bded7786cf73e7 | [
"MIT"
] | null | null | null | pixel_table/modes/rain/__init__.py | Spooner/pixel-table | 87ac04adbb74702bee3dcaa5c6bded7786cf73e7 | [
"MIT"
] | null | null | null | pixel_table/modes/rain/__init__.py | Spooner/pixel-table | 87ac04adbb74702bee3dcaa5c6bded7786cf73e7 | [
"MIT"
] | null | null | null | from .rain import Rain
| 11.5 | 22 | 0.782609 | 4 | 23 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
50f2010022ed389ce74c9ce90b8243696999822e | 17,354 | py | Python | tests/gold_tests/pluginTest/stek_share/stek_share.test.py | cmcfarlen/trafficserver | 2aa1d3106398eb082e5a454212b0273c63d5f69d | [
"Apache-2.0"
] | null | null | null | tests/gold_tests/pluginTest/stek_share/stek_share.test.py | cmcfarlen/trafficserver | 2aa1d3106398eb082e5a454212b0273c63d5f69d | [
"Apache-2.0"
] | null | null | null | tests/gold_tests/pluginTest/stek_share/stek_share.test.py | cmcfarlen/trafficserver | 2aa1d3106398eb082e5a454212b0273c63d5f69d | [
"Apache-2.0"
] | null | null | null | '''
'''
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License");... | 68.054902 | 719 | 0.737006 | 2,755 | 17,354 | 4.48167 | 0.115789 | 0.053454 | 0.045355 | 0.032397 | 0.776788 | 0.766664 | 0.728841 | 0.728841 | 0.711185 | 0.711185 | 0 | 0.075361 | 0.09773 | 17,354 | 254 | 720 | 68.322835 | 0.713182 | 0.056471 | 0 | 0.409524 | 0 | 0.085714 | 0.604345 | 0.39492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004762 | false | 0 | 0.009524 | 0 | 0.02381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
0f9903717282ace68a922c0e9fff62361a606a72 | 5,637 | py | Python | graphtheory/algorithms/topsort.py | gitter-badger/graphs-dict | 2be1a5b140feb050eec799d6cadf6de5eef01745 | [
"BSD-3-Clause"
] | 36 | 2015-09-20T20:55:39.000Z | 2021-09-20T05:49:03.000Z | graphtheory/algorithms/topsort.py | gitter-badger/graphs-dict | 2be1a5b140feb050eec799d6cadf6de5eef01745 | [
"BSD-3-Clause"
] | 6 | 2016-03-25T21:41:46.000Z | 2020-02-12T03:18:59.000Z | graphtheory/algorithms/topsort.py | gitter-badger/graphs-dict | 2be1a5b140feb050eec799d6cadf6de5eef01745 | [
"BSD-3-Clause"
] | 9 | 2016-09-12T07:57:27.000Z | 2022-03-21T16:15:39.000Z | #!/usr/bin/python
try:
from Queue import Queue
except ImportError: # Python 3
from queue import Queue
xrange = range
#from graphtheory.traversing.dfs import DFSWithRecursion as SimpleDFS
from graphtheory.traversing.dfs import SimpleDFS
class TopologicalSortDFS:
"""Topological sorting of nodes from... | 30.144385 | 78 | 0.570694 | 652 | 5,637 | 4.872699 | 0.190184 | 0.065156 | 0.041549 | 0.024551 | 0.830028 | 0.779352 | 0.769279 | 0.758892 | 0.758892 | 0.732137 | 0 | 0.00963 | 0.318432 | 5,637 | 186 | 79 | 30.306452 | 0.817283 | 0.367571 | 0 | 0.597561 | 0 | 0 | 0.03095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.195122 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ba01e35a3224231d896e89ab978be9af3db5660b | 25 | py | Python | S1E1/Sample Code/my_first_program.py | SMPParthaS/Python-For-Beginners | d3d8d08c405a9358d64ae23d00d574654532b96a | [
"MIT"
] | null | null | null | S1E1/Sample Code/my_first_program.py | SMPParthaS/Python-For-Beginners | d3d8d08c405a9358d64ae23d00d574654532b96a | [
"MIT"
] | null | null | null | S1E1/Sample Code/my_first_program.py | SMPParthaS/Python-For-Beginners | d3d8d08c405a9358d64ae23d00d574654532b96a | [
"MIT"
] | 2 | 2020-11-09T19:02:47.000Z | 2020-12-09T19:48:05.000Z | print("This is the way!") | 25 | 25 | 0.68 | 5 | 25 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
e849c439b1a082baae91c909db599ebf6e20023c | 72,480 | py | Python | tests/test_elmo_ner.py | K-Mike/deep_ner | ffe1bcd64f7e38066866daa0cdd943300ba9ed4e | [
"Apache-2.0"
] | null | null | null | tests/test_elmo_ner.py | K-Mike/deep_ner | ffe1bcd64f7e38066866daa0cdd943300ba9ed4e | [
"Apache-2.0"
] | null | null | null | tests/test_elmo_ner.py | K-Mike/deep_ner | ffe1bcd64f7e38066866daa0cdd943300ba9ed4e | [
"Apache-2.0"
] | null | null | null | import copy
import gc
import os
import pickle
import re
import sys
import tempfile
import unittest
import numpy as np
from sklearn.exceptions import NotFittedError
try:
from deep_ner.elmo_ner import ELMo_NER
from deep_ner.utils import load_dataset
from deep_ner.quality import calculate_prediction_quality
... | 54.537246 | 120 | 0.633126 | 9,447 | 72,480 | 4.622737 | 0.052821 | 0.008243 | 0.07742 | 0.013098 | 0.913673 | 0.892171 | 0.868357 | 0.854549 | 0.84555 | 0.83694 | 0 | 0.045023 | 0.250442 | 72,480 | 1,328 | 121 | 54.578313 | 0.758706 | 0 | 0 | 0.59292 | 0 | 0.004827 | 0.21061 | 0.006871 | 0 | 0 | 0 | 0 | 0.320998 | 1 | 0.06436 | false | 0 | 0.012872 | 0 | 0.078037 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e84d23fb4b720cca566d2742904cd909b7187d70 | 34 | py | Python | 31/00/list.remove.5.py | pylangstudy/201705 | c69de524faa67fa2d96267d5a51ed9794208f0e4 | [
"CC0-1.0"
] | null | null | null | 31/00/list.remove.5.py | pylangstudy/201705 | c69de524faa67fa2d96267d5a51ed9794208f0e4 | [
"CC0-1.0"
] | 38 | 2017-05-25T07:08:48.000Z | 2017-05-31T01:42:41.000Z | 31/00/list.remove.5.py | pylangstudy/201705 | c69de524faa67fa2d96267d5a51ed9794208f0e4 | [
"CC0-1.0"
] | null | null | null | l = [1,2,3,4]
del l[100]
print(l)
| 8.5 | 13 | 0.529412 | 10 | 34 | 1.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.176471 | 34 | 3 | 14 | 11.333333 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e8c9dd477284f0273b3698331381a0b72005ecde | 1,423 | py | Python | util/data/gen/textinputframework.dll.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | util/data/gen/textinputframework.dll.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | util/data/gen/textinputframework.dll.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | symbols = []
exports = [{'type': 'function', 'name': 'DllCanUnloadNow', 'address': '0x7ffb110e4e00'}, {'type': 'function', 'name': 'DllGetActivationFactory', 'address': '0x7ffb110e4e30'}, {'type': 'function', 'name': 'DllGetClassObject', 'address': '0x7ffb110e4e70'}, {'type': 'function', 'name': 'InputFocusChanged', 'a... | 711.5 | 1,410 | 0.683064 | 104 | 1,423 | 9.346154 | 0.384615 | 0.209877 | 0.279835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107821 | 0.074491 | 1,423 | 2 | 1,410 | 711.5 | 0.63022 | 0 | 0 | 0 | 0 | 0 | 0.672753 | 0.124298 | 0 | 0 | 0.167135 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e8d6e06c6af45d7061e8784a4a529ba02df0350a | 16,985 | py | Python | sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py | csssuf/pulumi-kubernetes | 8d007166d0e8968fcabaeecd0cee13f9c08d97f1 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py | csssuf/pulumi-kubernetes | 8d007166d0e8968fcabaeecd0cee13f9c08d97f1 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py | csssuf/pulumi-kubernetes | 8d007166d0e8968fcabaeecd0cee13f9c08d97f1 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** 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 _utilities
from . import outp... | 62.907407 | 509 | 0.710863 | 2,033 | 16,985 | 5.757501 | 0.11215 | 0.055446 | 0.048697 | 0.043059 | 0.831269 | 0.804955 | 0.757112 | 0.719863 | 0.682358 | 0.649381 | 0 | 0.001756 | 0.195467 | 16,985 | 269 | 510 | 63.141264 | 0.854812 | 0.456108 | 0 | 0.4 | 1 | 0 | 0.144631 | 0.067602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0.006061 | 0.048485 | 0 | 0.284848 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2cdbdc43a6f9fe1e2fbc0e42b941e72a584fc3cc | 6,572 | py | Python | tests/unit/commands/status_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 421 | 2015-06-02T16:29:59.000Z | 2021-06-03T18:44:42.000Z | tests/unit/commands/status_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 404 | 2015-06-02T20:23:42.000Z | 2019-08-21T16:59:41.000Z | tests/unit/commands/status_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 16 | 2015-06-16T17:21:02.000Z | 2020-03-27T02:27:09.000Z | from mock import patch, Mock, call
from ...testcases import DustyTestCase
from dusty.commands.status import _has_active_container, get_dusty_status
from dusty.schemas.base_schema_class import DustySchema
from ..utils import get_app_dusty_schema, get_bundle_dusty_schema, get_lib_dusty_schema
class TestStatusCommands(D... | 63.192308 | 205 | 0.689744 | 823 | 6,572 | 5.085055 | 0.09356 | 0.060215 | 0.103226 | 0.08411 | 0.940741 | 0.934289 | 0.93405 | 0.93405 | 0.914695 | 0.846117 | 0 | 0.009605 | 0.176202 | 6,572 | 103 | 206 | 63.805825 | 0.763391 | 0 | 0 | 0.680851 | 0 | 0 | 0.227024 | 0.1479 | 0 | 0 | 0 | 0 | 0.234043 | 1 | 0.085106 | false | 0 | 0.053191 | 0 | 0.148936 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2ced6ac8779a2621bf68d4b0f580e7b3aeab83a4 | 58 | py | Python | prt_mail_messages/__init__.py | sagar-organiztion/custom_repo2 | 30687143b3b6a7820305075d15fd15fbd61141d1 | [
"Apache-2.0"
] | null | null | null | prt_mail_messages/__init__.py | sagar-organiztion/custom_repo2 | 30687143b3b6a7820305075d15fd15fbd61141d1 | [
"Apache-2.0"
] | null | null | null | prt_mail_messages/__init__.py | sagar-organiztion/custom_repo2 | 30687143b3b6a7820305075d15fd15fbd61141d1 | [
"Apache-2.0"
] | null | null | null | from . import models # noqa
from . import wizard # noqa
| 19.333333 | 28 | 0.689655 | 8 | 58 | 5 | 0.625 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 58 | 2 | 29 | 29 | 0.909091 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fa201b797e417adad9763e6671010a321eaecba1 | 725 | py | Python | test/test_cluster_plugin.py | RyanSiu1995/argocd-python-client | 2e8f097fe09f247a46ac70692241a93d1acd076a | [
"MIT"
] | 1 | 2021-11-20T13:37:43.000Z | 2021-11-20T13:37:43.000Z | test/test_cluster_plugin.py | RyanSiu1995/argocd-python-client | 2e8f097fe09f247a46ac70692241a93d1acd076a | [
"MIT"
] | null | null | null | test/test_cluster_plugin.py | RyanSiu1995/argocd-python-client | 2e8f097fe09f247a46ac70692241a93d1acd076a | [
"MIT"
] | null | null | null | """
Consolidate Services
Description of all APIs # noqa: E501
The version of the OpenAPI document: version not set
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import argocd_python_client
from argocd_python_client.model.cluster_plugin import ClusterPlugin
class Tes... | 20.138889 | 79 | 0.685517 | 80 | 725 | 6.05 | 0.65 | 0.033058 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.234483 | 725 | 35 | 80 | 20.714286 | 0.861261 | 0.434483 | 0 | 0.230769 | 1 | 0 | 0.02139 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.230769 | false | 0.230769 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
fa575a9ef17332478ba773f79636bab15ead7d4d | 69 | py | Python | connectedcars/__init__.py | heslegrave/connectedcars-python | 29dca7bb33d549dbb4803688032ae3a13b932eba | [
"MIT"
] | 4 | 2019-11-11T00:21:33.000Z | 2020-10-27T19:47:35.000Z | connectedcars/__init__.py | heslegrave/connectedcars-python | 29dca7bb33d549dbb4803688032ae3a13b932eba | [
"MIT"
] | 2 | 2020-06-29T20:17:55.000Z | 2020-10-25T19:17:38.000Z | connectedcars/__init__.py | heslegrave/connectedcars-python | 29dca7bb33d549dbb4803688032ae3a13b932eba | [
"MIT"
] | 2 | 2020-07-20T16:08:48.000Z | 2020-11-01T14:55:20.000Z | from .client import *
from .models import *
from .exceptions import * | 23 | 25 | 0.753623 | 9 | 69 | 5.777778 | 0.555556 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 69 | 3 | 25 | 23 | 0.896552 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d7087e9ee4cdb577e50b32daacbb521e85f4e480 | 492 | py | Python | opendeep/optimization/loss/__init__.py | vitruvianscience/OpenDeep | e96efc449101094354b615cf15afe6d03644fc36 | [
"Apache-2.0"
] | 252 | 2015-03-13T21:55:22.000Z | 2021-09-06T21:37:38.000Z | opendeep/optimization/loss/__init__.py | afcarl/OpenDeep | e96efc449101094354b615cf15afe6d03644fc36 | [
"Apache-2.0"
] | 16 | 2015-03-14T06:47:04.000Z | 2016-09-23T19:13:35.000Z | opendeep/optimization/loss/__init__.py | afcarl/OpenDeep | e96efc449101094354b615cf15afe6d03644fc36 | [
"Apache-2.0"
] | 68 | 2015-03-14T00:05:53.000Z | 2020-06-04T13:36:13.000Z | from __future__ import division, absolute_import, print_function
from opendeep.optimization.loss.loss import *
from opendeep.optimization.loss.binary_crossentropy import *
from opendeep.optimization.loss.categorical_crossentropy import *
from opendeep.optimization.loss.isotropic_gaussian_LL import *
from opendeep.opt... | 37.846154 | 65 | 0.851626 | 62 | 492 | 6.564516 | 0.33871 | 0.235872 | 0.471744 | 0.550369 | 0.653563 | 0.402948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 492 | 12 | 66 | 41 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ad7ba4397c5c934384de131b1688608495888b8a | 153,371 | py | Python | lib/ult/ult.py | abreza/HOI-CL | c5be517bb26eac73ef88a39d6ec9e564c3379714 | [
"MIT"
] | 40 | 2021-04-09T17:53:08.000Z | 2022-03-30T02:38:10.000Z | lib/ult/ult.py | abreza/HOI-CL | c5be517bb26eac73ef88a39d6ec9e564c3379714 | [
"MIT"
] | 21 | 2021-04-09T19:05:47.000Z | 2022-01-31T23:17:16.000Z | lib/ult/ult.py | abreza/HOI-CL | c5be517bb26eac73ef88a39d6ec9e564c3379714 | [
"MIT"
] | 8 | 2021-05-30T12:37:00.000Z | 2022-03-14T03:13:57.000Z | # --------------------------------------------------------
# Tensorflow VCL
# Licensed under The MIT License [see LICENSE for details]
# Written by Zhi Hou
# --------------------------------------------------------
"""
Generating training instance
"""
from __future__ import absolute_import
from __future__ import divi... | 49.442618 | 163 | 0.532989 | 20,492 | 153,371 | 3.761419 | 0.04026 | 0.040478 | 0.03573 | 0.004567 | 0.870406 | 0.848882 | 0.829993 | 0.81074 | 0.79028 | 0.774738 | 0 | 0.089126 | 0.318404 | 153,371 | 3,101 | 164 | 49.458562 | 0.648211 | 0.102066 | 0 | 0.699747 | 0 | 0 | 0.043074 | 0.013681 | 0 | 0 | 0 | 0 | 0.002534 | 1 | 0.025338 | false | 0.002111 | 0.016047 | 0 | 0.061233 | 0.009291 | 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 | 0 | 0 | 6 |
0f0e142729a14317a69e8d385afb46bde4284923 | 61 | py | Python | ContactHands/contact_hands_two_stream/evaluation/__init__.py | seoyoon130/Graduation_Project | 9082cb93fb4f73c3a1577f63e906e6eb7f147dc4 | [
"Apache-2.0"
] | 26 | 2020-10-20T01:58:26.000Z | 2022-02-24T11:48:10.000Z | ContactHands/contact_hands_two_stream/evaluation/__init__.py | seoyoon130/Graduation_Project | 9082cb93fb4f73c3a1577f63e906e6eb7f147dc4 | [
"Apache-2.0"
] | 5 | 2020-10-21T05:39:08.000Z | 2021-09-17T13:57:29.000Z | contact_hands_two_stream/evaluation/__init__.py | cvlab-stonybrook/ContactHands | 6aba9a5f098b50529e589b7835264df9264844e9 | [
"MIT"
] | 1 | 2022-02-24T11:48:14.000Z | 2022-02-24T11:48:14.000Z | from .evaluator_ourdata import PascalVOCContactHandsEvaluator | 61 | 61 | 0.934426 | 5 | 61 | 11.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 61 | 1 | 61 | 61 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0f0f1ff11d8e7394f9595e6cacdd63bb00caad24 | 368 | py | Python | unsup_spatial_pred/__init__.py | alaflaquiere/unsupervised-spatial-predictor | 3c8aa02dc20782d31d1df791dd5e92dce275aec2 | [
"MIT"
] | null | null | null | unsup_spatial_pred/__init__.py | alaflaquiere/unsupervised-spatial-predictor | 3c8aa02dc20782d31d1df791dd5e92dce275aec2 | [
"MIT"
] | null | null | null | unsup_spatial_pred/__init__.py | alaflaquiere/unsupervised-spatial-predictor | 3c8aa02dc20782d31d1df791dd5e92dce275aec2 | [
"MIT"
] | null | null | null | from unsup_spatial_pred.utils.data_utils import get_dataloader, load_regular_grid
from unsup_spatial_pred.network.siamese_network import SiameseSMPredictor
from unsup_spatial_pred.analyze.evaluator import Evaluator
from unsup_spatial_pred.analyze.live_visualizer import save_embedding, start_display_server
from unsup_sp... | 61.333333 | 91 | 0.907609 | 52 | 368 | 6.038462 | 0.538462 | 0.143312 | 0.254777 | 0.318471 | 0.171975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059783 | 368 | 5 | 92 | 73.6 | 0.907514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0f36515b28109285aae7c23e030b46c1cbf8a95e | 151 | py | Python | src/rendering/__init__.py | CorentinBrtx/image-stitching | 7ee7eda3bd8717dd9996eacb9d58eb4ed1e6ad80 | [
"MIT"
] | 9 | 2022-01-25T14:59:57.000Z | 2022-03-24T13:25:23.000Z | src/rendering/__init__.py | CorentinBrtx/image-stitching | 7ee7eda3bd8717dd9996eacb9d58eb4ed1e6ad80 | [
"MIT"
] | null | null | null | src/rendering/__init__.py | CorentinBrtx/image-stitching | 7ee7eda3bd8717dd9996eacb9d58eb4ed1e6ad80 | [
"MIT"
] | null | null | null | from .gain_compensation import set_gain_compensations
from .multiband_blending import multi_band_blending
from .simple_blending import simple_blending
| 37.75 | 53 | 0.900662 | 20 | 151 | 6.4 | 0.55 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 151 | 3 | 54 | 50.333333 | 0.920863 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0f4d4816c48653d27898204dea4f719c0e7b0d70 | 18,887 | py | Python | steprocker.py | RavnikM/Py-TMCM-1110-Steprocker | 7e6e833514b0da38c0ef4c2420246c0b940e2f47 | [
"MIT"
] | null | null | null | steprocker.py | RavnikM/Py-TMCM-1110-Steprocker | 7e6e833514b0da38c0ef4c2420246c0b940e2f47 | [
"MIT"
] | null | null | null | steprocker.py | RavnikM/Py-TMCM-1110-Steprocker | 7e6e833514b0da38c0ef4c2420246c0b940e2f47 | [
"MIT"
] | null | null | null | import serial
import struct
from threading import Lock
class Steprocker():
def __init__(self,port):
self.lock = Lock()
self.serial = serial.Serial(port=port,
baudrate=9600,
bytesize=serial.EIGHTBITS,
parit... | 33.726786 | 127 | 0.488219 | 2,028 | 18,887 | 4.480276 | 0.073965 | 0.032357 | 0.034669 | 0.054479 | 0.858684 | 0.835021 | 0.831279 | 0.825116 | 0.825116 | 0.813119 | 0 | 0.079542 | 0.42156 | 18,887 | 560 | 128 | 33.726786 | 0.752128 | 0.278816 | 0 | 0.67619 | 0 | 0 | 0.047271 | 0.028922 | 0 | 0 | 0.000311 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.009524 | 0 | 0.228571 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0f73d88b9937826c02dab99cd4c7276831c1e11d | 147 | py | Python | testapp/wagtail_wordpress_importer/test/__init__.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/test/__init__.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/test/__init__.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | from .api_fetcher_tests import *
from .base_importer_command_tests import *
from .import_delete_commands_tests import *
from .utils_tests import *
| 29.4 | 43 | 0.836735 | 21 | 147 | 5.428571 | 0.52381 | 0.385965 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 147 | 4 | 44 | 36.75 | 0.870229 | 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 | 0 | 0 | 0 | 6 |
7e1e3187a0e1016eb15ae2703d1db86e3b2ac079 | 10,078 | py | Python | autox/autoxserver.py | fanghy06/AutoX | 0bad349ef1b047152e2608760fd5d197128be723 | [
"Apache-2.0"
] | 499 | 2021-07-27T02:57:58.000Z | 2022-03-28T12:08:27.000Z | autox/autoxserver.py | fanghy06/AutoX | 0bad349ef1b047152e2608760fd5d197128be723 | [
"Apache-2.0"
] | 9 | 2021-08-03T15:14:56.000Z | 2022-03-11T07:06:06.000Z | autox/autoxserver.py | fanghy06/AutoX | 0bad349ef1b047152e2608760fd5d197128be723 | [
"Apache-2.0"
] | 87 | 2021-07-27T01:13:02.000Z | 2022-03-29T02:14:09.000Z | from autox.autox_server.ensemble import ensemble
from autox.autox_server.feature_engineer import fe_count, fe_onehot, fe_shift, fe_time_diff
from autox.autox_server.feature_engineer import fe_kv, fe_stat_for_same_prefix, fe_frequency
from autox.autox_server.feature_engineer import fe_time_count, fe_window_count, fe_tim... | 65.869281 | 191 | 0.743798 | 1,768 | 10,078 | 3.76414 | 0.054864 | 0.120962 | 0.07438 | 0.087603 | 0.864162 | 0.832757 | 0.798948 | 0.787979 | 0.728174 | 0.728174 | 0 | 0.007727 | 0.165311 | 10,078 | 152 | 192 | 66.302632 | 0.783405 | 0 | 0 | 0.59322 | 0 | 0 | 0.031359 | 0.015282 | 0 | 0 | 0 | 0 | 0.025424 | 1 | 0.042373 | false | 0 | 0.101695 | 0 | 0.161017 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7e2d4fd2ac241c2c37224631a6c00435bed89865 | 993 | py | Python | tests/dfa2re/test_dfa2re.py | xinqin23/ShapeIt | 4c643f71bca3b1acc388c688b0e8ffb59109be03 | [
"MIT"
] | null | null | null | tests/dfa2re/test_dfa2re.py | xinqin23/ShapeIt | 4c643f71bca3b1acc388c688b0e8ffb59109be03 | [
"MIT"
] | null | null | null | tests/dfa2re/test_dfa2re.py | xinqin23/ShapeIt | 4c643f71bca3b1acc388c688b0e8ffb59109be03 | [
"MIT"
] | null | null | null | import pytest
import networkx as nx
from shapeit.shape_it import ShapeIt
def test_dfa2re_0():
aut = nx.MultiDiGraph()
aut.add_node(0, initial=True, accepting=False)
aut.add_node(1, initial=False, accepting=True)
aut.add_edge(0, 1, label='0')
aut.add_edge(1, 0, label='0')
aut.add_edge(1, 0, label='1')
shapeit =... | 24.825 | 48 | 0.657603 | 169 | 993 | 3.745562 | 0.16568 | 0.123223 | 0.110585 | 0.075829 | 0.805687 | 0.805687 | 0.805687 | 0.755134 | 0.728278 | 0.728278 | 0 | 0.058207 | 0.134945 | 993 | 40 | 49 | 24.825 | 0.678696 | 0 | 0 | 0.612903 | 0 | 0 | 0.075453 | 0.023139 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.193548 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0e521a825cb19d628f10c01686a3109c63584d9c | 6,384 | py | Python | tests/test_menu_items.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | null | null | null | tests/test_menu_items.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | null | null | null | tests/test_menu_items.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | 2 | 2018-10-01T17:45:19.000Z | 2020-12-07T13:48:25.000Z | import json
from app import create_app, db
from app.models import User, UserType
from .base import BaseTest
class MenuItemTests(BaseTest):
def setUp(self):
self.app = create_app(config_name='testing')
self.client = self.app.test_client()
with self.app.app_context():
db.create_a... | 37.333333 | 78 | 0.60213 | 824 | 6,384 | 4.450243 | 0.115291 | 0.087265 | 0.052359 | 0.102263 | 0.818653 | 0.787565 | 0.755113 | 0.737388 | 0.714208 | 0.645487 | 0 | 0.015924 | 0.272086 | 6,384 | 170 | 79 | 37.552941 | 0.773187 | 0.015038 | 0 | 0.530612 | 0 | 0 | 0.136856 | 0.004297 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.122449 | false | 0 | 0.027211 | 0.006803 | 0.183673 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0e6736307dc21e4437a017717108fb9cd2e908df | 41 | py | Python | bowling/sort/selection/__init__.py | necromuralist/Bowling-For-Data | 8fb2bff206bf419812f96a5ad243e1d82959a00a | [
"MIT"
] | null | null | null | bowling/sort/selection/__init__.py | necromuralist/Bowling-For-Data | 8fb2bff206bf419812f96a5ad243e1d82959a00a | [
"MIT"
] | null | null | null | bowling/sort/selection/__init__.py | necromuralist/Bowling-For-Data | 8fb2bff206bf419812f96a5ad243e1d82959a00a | [
"MIT"
] | null | null | null | from .selection import selection_counter
| 20.5 | 40 | 0.878049 | 5 | 41 | 7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
adfbe28608e10d8964372bec46988193eac2c970 | 250 | py | Python | Talent and Weapon Level-Up Material Drops/src/algorithm/__init__.py | RaylaKurosaki1503/Genshin_Impact-Projects | 3828663914f2f74da9747cd9ffd983ef313ae0c5 | [
"MIT"
] | null | null | null | Talent and Weapon Level-Up Material Drops/src/algorithm/__init__.py | RaylaKurosaki1503/Genshin_Impact-Projects | 3828663914f2f74da9747cd9ffd983ef313ae0c5 | [
"MIT"
] | null | null | null | Talent and Weapon Level-Up Material Drops/src/algorithm/__init__.py | RaylaKurosaki1503/Genshin_Impact-Projects | 3828663914f2f74da9747cd9ffd983ef313ae0c5 | [
"MIT"
] | null | null | null | """
Author: Rayla Kurosaki
File: __init__.py
Description: The initialization file for the package algorithm.
"""
from algorithm.phase1_get_data import *
from algorithm.phase2_print_to_file import *
from algorithm.phase3_print_to_workbook import *
| 20.833333 | 63 | 0.812 | 34 | 250 | 5.617647 | 0.647059 | 0.204188 | 0.198953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.12 | 250 | 11 | 64 | 22.727273 | 0.854545 | 0.424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.666667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
70c1ef8a5b5fef704533a23848def370b4801ae2 | 5,305 | py | Python | tests/test_single_category_update.py | PatrickCmd/Yummy-Recipe-RestAPI | 8911678be501d233e39f1b5c5a46aa3e82e5c844 | [
"MIT"
] | null | null | null | tests/test_single_category_update.py | PatrickCmd/Yummy-Recipe-RestAPI | 8911678be501d233e39f1b5c5a46aa3e82e5c844 | [
"MIT"
] | 41 | 2017-11-07T00:39:02.000Z | 2019-10-21T15:09:58.000Z | tests/test_single_category_update.py | PatrickCmd/Yummy-Recipe-RestAPI | 8911678be501d233e39f1b5c5a46aa3e82e5c844 | [
"MIT"
] | 3 | 2017-11-18T16:03:34.000Z | 2017-12-20T19:49:59.000Z | # tests/test_single_category_update.py
import unittest
import json
import uuid
import time
from api import db
from api.models import User, RecipeCategory
from tests.register_login import RegisterLogin
class TestUpdateSingleCategoriesBlueprint(RegisterLogin):
def test_update_single_recipe_category(self):
... | 42.103175 | 79 | 0.481433 | 436 | 5,305 | 5.704128 | 0.197248 | 0.084439 | 0.028951 | 0.062726 | 0.825895 | 0.825895 | 0.798552 | 0.766787 | 0.710092 | 0.671492 | 0 | 0.012346 | 0.435061 | 5,305 | 125 | 80 | 42.44 | 0.817484 | 0.061074 | 0 | 0.69697 | 0 | 0 | 0.158238 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 1 | 0.030303 | false | 0 | 0.070707 | 0 | 0.111111 | 0.010101 | 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 | 0 | 0 | 6 |
70c2f075a6dbedbe2aebe6fb9502f022768e876b | 119 | py | Python | detection/data/util.py | stanford-policylab/surveilling-surveillance | bbb9a147927a6342eecfe07ffa756b3acdb63f35 | [
"MIT"
] | 8 | 2021-05-21T03:38:52.000Z | 2021-11-21T08:32:41.000Z | detection/data/util.py | stanford-policylab/surveilling-surveillance | bbb9a147927a6342eecfe07ffa756b3acdb63f35 | [
"MIT"
] | null | null | null | detection/data/util.py | stanford-policylab/surveilling-surveillance | bbb9a147927a6342eecfe07ffa756b3acdb63f35 | [
"MIT"
] | 1 | 2021-06-13T21:49:14.000Z | 2021-06-13T21:49:14.000Z | from pathlib import Path, PosixPath
def _is_path(file_path):
return isinstance(file_path, (str, PosixPath))
| 17 | 54 | 0.731092 | 16 | 119 | 5.1875 | 0.6875 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184874 | 119 | 6 | 55 | 19.833333 | 0.85567 | 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 | 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 | 6 |
70c62e8e855d3b712588b926c684c8ff454e3bf3 | 60 | py | Python | package-eg-test.py | thinmarwin/python-exercises | 2d8ccdf9b0fcf73802b161ca31dd0428e92bbc66 | [
"MIT"
] | null | null | null | package-eg-test.py | thinmarwin/python-exercises | 2d8ccdf9b0fcf73802b161ca31dd0428e92bbc66 | [
"MIT"
] | null | null | null | package-eg-test.py | thinmarwin/python-exercises | 2d8ccdf9b0fcf73802b161ca31dd0428e92bbc66 | [
"MIT"
] | null | null | null | import package_example.ex41
package-example.ex41.convert()
| 15 | 30 | 0.833333 | 8 | 60 | 6.125 | 0.625 | 0.571429 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.066667 | 60 | 3 | 31 | 20 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
70d0d010999cf9fc72930b2583309f9127a9f629 | 99 | py | Python | custom_django_auth_backend/logging.py | Chiorufarewerin/custom-django-auth-backend | 89aa2330933472f8cfb13ad3c488d4347b6db128 | [
"MIT"
] | null | null | null | custom_django_auth_backend/logging.py | Chiorufarewerin/custom-django-auth-backend | 89aa2330933472f8cfb13ad3c488d4347b6db128 | [
"MIT"
] | null | null | null | custom_django_auth_backend/logging.py | Chiorufarewerin/custom-django-auth-backend | 89aa2330933472f8cfb13ad3c488d4347b6db128 | [
"MIT"
] | null | null | null | from .settings import LOGGER_NAME
from .utils import get_logger
logger = get_logger(LOGGER_NAME)
| 16.5 | 33 | 0.818182 | 15 | 99 | 5.133333 | 0.466667 | 0.25974 | 0.38961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 5 | 34 | 19.8 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cb5e57b476ba9567514018000954b065d84a62f5 | 34 | py | Python | digital_signature/__init__.py | syamamura0x00/RedRIbbon | 9a035d3e64b70eee7519cccad9d9735e509d5a2f | [
"Apache-2.0"
] | null | null | null | digital_signature/__init__.py | syamamura0x00/RedRIbbon | 9a035d3e64b70eee7519cccad9d9735e509d5a2f | [
"Apache-2.0"
] | null | null | null | digital_signature/__init__.py | syamamura0x00/RedRIbbon | 9a035d3e64b70eee7519cccad9d9735e509d5a2f | [
"Apache-2.0"
] | null | null | null |
from .digital_signature import *
| 11.333333 | 32 | 0.794118 | 4 | 34 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 2 | 33 | 17 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cb8a427f9a37f405511471601f02b428dc29f6f9 | 96 | py | Python | suricate/api/main/__init__.py | marco-buttu/suricate | 89cb406ffde7a67db2ac8594d3e9c371924c57bb | [
"BSD-3-Clause"
] | 1 | 2020-03-26T15:27:42.000Z | 2020-03-26T15:27:42.000Z | suricate/api/main/__init__.py | marco-buttu/suricate | 89cb406ffde7a67db2ac8594d3e9c371924c57bb | [
"BSD-3-Clause"
] | 75 | 2019-08-19T14:21:08.000Z | 2020-03-26T11:24:12.000Z | suricate/api/main/__init__.py | marco-buttu/suricate | 89cb406ffde7a67db2ac8594d3e9c371924c57bb | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint
main = Blueprint('main', __name__)
from suricate.api import views
| 16 | 34 | 0.78125 | 13 | 96 | 5.461538 | 0.692308 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 96 | 5 | 35 | 19.2 | 0.865854 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
cba41a7cf1c04aed8dfd66206d9c9b49393f1262 | 160 | py | Python | lambdas/Frontend-Lambda/create_token.py | david-fisher/320-F19-Track-I | cddff29ad9f79a794928eb29d44bc9f53f46f3fd | [
"BSD-3-Clause"
] | 8 | 2019-09-04T14:18:30.000Z | 2020-02-04T18:06:50.000Z | lambdas/Frontend-Lambda/create_token.py | david-fisher/320-F19-Track-I | cddff29ad9f79a794928eb29d44bc9f53f46f3fd | [
"BSD-3-Clause"
] | 103 | 2019-09-19T18:15:25.000Z | 2020-05-05T01:39:40.000Z | lambdas/Frontend-Lambda/create_token.py | david-fisher/320-F19-Track-I | cddff29ad9f79a794928eb29d44bc9f53f46f3fd | [
"BSD-3-Clause"
] | 2 | 2020-01-17T18:46:46.000Z | 2020-05-04T15:53:34.000Z | import random
import string
def rand_token(N=64):
return ''.join(random.choices(string.ascii_uppercase + string.digits + string.ascii_lowercase, k=N))
| 26.666667 | 104 | 0.74375 | 23 | 160 | 5.043478 | 0.695652 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.1375 | 160 | 6 | 105 | 26.666667 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
cbb305385a5c951c924dac8441e15d42b33ad71b | 46 | py | Python | Modulo_5/semana_1/crear_arreglos/arange.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | null | null | null | Modulo_5/semana_1/crear_arreglos/arange.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | null | null | null | Modulo_5/semana_1/crear_arreglos/arange.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | import numpy as np
print(np.arange(1,50,3))
| 9.2 | 24 | 0.695652 | 10 | 46 | 3.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.152174 | 46 | 4 | 25 | 11.5 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
cbbc3bb7486135cb35b5a26282d6f9a051675662 | 134 | py | Python | python/code_challenges/insertion-sort/tests/test_insertion_sort.py | YAHIAQOUS/data-structures-and-algorithms | 73ed1d7f6bb0f60af3cafbac468122c4a035f348 | [
"MIT"
] | null | null | null | python/code_challenges/insertion-sort/tests/test_insertion_sort.py | YAHIAQOUS/data-structures-and-algorithms | 73ed1d7f6bb0f60af3cafbac468122c4a035f348 | [
"MIT"
] | 8 | 2021-08-14T14:46:14.000Z | 2021-09-13T20:30:29.000Z | python/code_challenges/insertion-sort/tests/test_insertion_sort.py | YAHIAQOUS/data-structures-and-algorithms | 73ed1d7f6bb0f60af3cafbac468122c4a035f348 | [
"MIT"
] | 1 | 2021-12-05T13:25:31.000Z | 2021-12-05T13:25:31.000Z | from insertion_sort import insertion_sort
def test_insertion_sort():
assert insertion_sort([8,4,23,42,16,15]) == [4,8,15,16,23,42]
| 26.8 | 63 | 0.746269 | 25 | 134 | 3.8 | 0.52 | 0.547368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 0.097015 | 134 | 4 | 64 | 33.5 | 0.619835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 6 |
cbd0908e3f5b3b0101f7b0384d46765a6096579a | 48 | py | Python | multiply.py | AdvaitShiralkar/calculatorpython | 4c9de99c217f2210f574f9c329af887ce728b3dd | [
"MIT"
] | null | null | null | multiply.py | AdvaitShiralkar/calculatorpython | 4c9de99c217f2210f574f9c329af887ce728b3dd | [
"MIT"
] | null | null | null | multiply.py | AdvaitShiralkar/calculatorpython | 4c9de99c217f2210f574f9c329af887ce728b3dd | [
"MIT"
] | null | null | null | def multiply_2(number):
return number * 2
| 16 | 24 | 0.666667 | 7 | 48 | 4.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.25 | 48 | 2 | 25 | 24 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.