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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83e52adda3026c499e19061566ad4a39d7896f37 | 627 | py | Python | tests/test_headlines.py | wangechimk/Daily-post | 25edea276d34c6949c5877a14d2f5b46a8694078 | [
"MIT"
] | null | null | null | tests/test_headlines.py | wangechimk/Daily-post | 25edea276d34c6949c5877a14d2f5b46a8694078 | [
"MIT"
] | null | null | null | tests/test_headlines.py | wangechimk/Daily-post | 25edea276d34c6949c5877a14d2f5b46a8694078 | [
"MIT"
] | null | null | null | import unittest
from app.models import Headlines
class SourcesTest(unittest.TestCase):
'''
'''
def setUp(self):
'''
'''
self.top_article = Headlines('bbc-news','https://www.google.com/img','https://www.google.com')
def test_source(self):
'''
test for creation of a new instance
'''
self.assertTrue(isinstance(self.top_article, Headlines))
def test_init(self):
'''
'''
self.top_article.title = 'bbc-news'
self.top_article.url_to_image='https://www.google.com/img'
self.top_article.url='https://www.google.com' | 27.26087 | 102 | 0.596491 | 76 | 627 | 4.802632 | 0.473684 | 0.09589 | 0.191781 | 0.186301 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250399 | 627 | 23 | 103 | 27.26087 | 0.776596 | 0.055821 | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f7d036e5edd9d04a6654a293d8589e83667d0b3c | 60 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/nestedComprehensions.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/nestedComprehensions.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/nestedComprehensions.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def f(xs, ys):
return [[(x, y) for y in ys] for x in xs] | 30 | 45 | 0.533333 | 15 | 60 | 2.133333 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283333 | 60 | 2 | 45 | 30 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 4 |
f7e738cf7e4346ff8cf174f25bdb6cdc5c5e72a8 | 9,398 | py | Python | master/django_scantron/scan/views.py | dsmith73/scantron | 9b82c9fb7e3f2d95c56e7e52aa5a090a4ac8ed6e | [
"Apache-2.0"
] | 2 | 2020-07-12T11:11:26.000Z | 2021-02-12T00:24:45.000Z | master/django_scantron/scan/views.py | dsmith73/scantron | 9b82c9fb7e3f2d95c56e7e52aa5a090a4ac8ed6e | [
"Apache-2.0"
] | 6 | 2021-03-19T13:21:02.000Z | 2022-02-10T09:49:06.000Z | master/django_scantron/scan/views.py | dsmith73/scantron | 9b82c9fb7e3f2d95c56e7e52aa5a090a4ac8ed6e | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.urlresolvers import reverse, reverse_lazy
from django.http import Http404
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from django.views.generic.list import ListView
from django_scantron.models import Scan
from django_scantron.scan.forms import ScanForm
class ScanListView(LoginRequiredMixin, ListView):
login_url = "/login/"
model = Scan
template_name = "django_scantron/scan_list.html"
# paginate_by = 20
context_object_name = "scan_list"
allow_empty = True
page_kwarg = "page"
paginate_orphans = 0
def __init__(self, **kwargs):
return super(ScanListView, self).__init__(**kwargs)
def dispatch(self, *args, **kwargs):
return super(ScanListView, self).dispatch(*args, **kwargs)
def get(self, request, *args, **kwargs):
return super(ScanListView, self).get(request, *args, **kwargs)
def get_queryset(self):
return super(ScanListView, self).get_queryset()
def get_allow_empty(self):
return super(ScanListView, self).get_allow_empty()
def get_context_data(self, *args, **kwargs):
ret = super(ScanListView, self).get_context_data(*args, **kwargs)
return ret
def get_paginate_by(self, queryset):
return super(ScanListView, self).get_paginate_by(queryset)
def get_context_object_name(self, object_list):
return super(ScanListView, self).get_context_object_name(object_list)
def paginate_queryset(self, queryset, page_size):
return super(ScanListView, self).paginate_queryset(queryset, page_size)
def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True):
return super(ScanListView, self).get_paginator(queryset, per_page, orphans=0, allow_empty_first_page=True)
def render_to_response(self, context, **response_kwargs):
return super(ScanListView, self).render_to_response(context, **response_kwargs)
def get_template_names(self):
return super(ScanListView, self).get_template_names()
class ScanDetailView(LoginRequiredMixin, DetailView):
login_url = "/login/"
model = Scan
template_name = "django_scantron/scan_detail.html"
context_object_name = "scan"
slug_field = "slug"
slug_url_kwarg = "slug"
pk_url_kwarg = "pk"
def __init__(self, **kwargs):
return super(ScanDetailView, self).__init__(**kwargs)
def dispatch(self, *args, **kwargs):
return super(ScanDetailView, self).dispatch(*args, **kwargs)
def get(self, request, *args, **kwargs):
return super(ScanDetailView, self).get(request, *args, **kwargs)
def get_object(self, queryset=None):
return super(ScanDetailView, self).get_object(queryset)
def get_queryset(self):
return super(ScanDetailView, self).get_queryset()
def get_slug_field(self):
return super(ScanDetailView, self).get_slug_field()
def get_context_data(self, **kwargs):
ret = super(ScanDetailView, self).get_context_data(**kwargs)
return ret
def get_context_object_name(self, obj):
return super(ScanDetailView, self).get_context_object_name(obj)
def render_to_response(self, context, **response_kwargs):
return super(ScanDetailView, self).render_to_response(context, **response_kwargs)
def get_template_names(self):
return super(ScanDetailView, self).get_template_names()
class ScanCreateView(LoginRequiredMixin, CreateView):
login_url = "/login/"
model = Scan
form_class = ScanForm
fields = ["site_name", "scan_command", "scan_type", "target_file", "scan_agent", "start_time"]
template_name = "django_scantron/scan_create.html"
success_url = reverse_lazy("scan_list")
def __init__(self, **kwargs):
return super(ScanCreateView, self).__init__(**kwargs)
def dispatch(self, request, *args, **kwargs):
return super(ScanCreateView, self).dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
return super(ScanCreateView, self).get(request, *args, **kwargs)
def post(self, request, *args, **kwargs):
return super(ScanCreateView, self).post(request, *args, **kwargs)
def get_form_class(self):
return super(ScanCreateView, self).get_form_class()
def get_form(self, form_class=ScanForm):
return super(ScanCreateView, self).get_form(form_class)
def get_form_kwargs(self, **kwargs):
return super(ScanCreateView, self).get_form_kwargs(**kwargs)
def get_initial(self):
return super(ScanCreateView, self).get_initial()
def form_invalid(self, form):
return super(ScanCreateView, self).form_invalid(form)
def form_valid(self, form):
obj = form.save(commit=False)
obj.save()
return super(ScanCreateView, self).form_valid(form)
def get_context_data(self, **kwargs):
ret = super(ScanCreateView, self).get_context_data(**kwargs)
return ret
def render_to_response(self, context, **response_kwargs):
return super(ScanCreateView, self).render_to_response(context, **response_kwargs)
def get_template_names(self):
return super(ScanCreateView, self).get_template_names()
def get_success_url(self):
return self.success_url
class ScanUpdateView(LoginRequiredMixin, UpdateView):
login_url = "/login/"
model = Scan
form_class = ScanForm
fields = ["site_name", "scan_command", "scan_type", "target_file", "scan_agent", "start_time"]
template_name = "django_scantron/scan_update.html"
initial = {}
slug_field = "slug"
slug_url_kwarg = "slug"
pk_url_kwarg = "pk"
context_object_name = "scan"
def __init__(self, **kwargs):
return super(ScanUpdateView, self).__init__(**kwargs)
def dispatch(self, *args, **kwargs):
return super(ScanUpdateView, self).dispatch(*args, **kwargs)
def get(self, request, *args, **kwargs):
return super(ScanUpdateView, self).get(request, *args, **kwargs)
def post(self, request, *args, **kwargs):
return super(ScanUpdateView, self).post(request, *args, **kwargs)
def get_object(self, queryset=None):
return super(ScanUpdateView, self).get_object(queryset)
def get_queryset(self):
return super(ScanUpdateView, self).get_queryset()
def get_slug_field(self):
return super(ScanUpdateView, self).get_slug_field()
def get_form_class(self):
return super(ScanUpdateView, self).get_form_class()
def get_form(self, form_class=ScanForm):
return super(ScanUpdateView, self).get_form(form_class)
def get_form_kwargs(self, **kwargs):
return super(ScanUpdateView, self).get_form_kwargs(**kwargs)
def get_initial(self):
return super(ScanUpdateView, self).get_initial()
def form_invalid(self, form):
return super(ScanUpdateView, self).form_invalid(form)
def form_valid(self, form):
obj = form.save(commit=False)
obj.save()
return super(ScanUpdateView, self).form_valid(form)
def get_context_data(self, **kwargs):
ret = super(ScanUpdateView, self).get_context_data(**kwargs)
return ret
def get_context_object_name(self, obj):
return super(ScanUpdateView, self).get_context_object_name(obj)
def render_to_response(self, context, **response_kwargs):
return super(ScanUpdateView, self).render_to_response(context, **response_kwargs)
def get_template_names(self):
return super(ScanUpdateView, self).get_template_names()
def get_success_url(self):
return reverse("scan_list")
class ScanDeleteView(LoginRequiredMixin, DeleteView):
login_url = "/login/"
model = Scan
template_name = "django_scantron/scan_delete.html"
slug_field = "slug"
slug_url_kwarg = "slug"
pk_url_kwarg = "pk"
context_object_name = "scan"
def __init__(self, **kwargs):
return super(ScanDeleteView, self).__init__(**kwargs)
def dispatch(self, *args, **kwargs):
return super(ScanDeleteView, self).dispatch(*args, **kwargs)
def get(self, request, *args, **kwargs):
raise Http404
def post(self, request, *args, **kwargs):
return super(ScanDeleteView, self).post(request, *args, **kwargs)
def delete(self, request, *args, **kwargs):
return super(ScanDeleteView, self).delete(request, *args, **kwargs)
def get_object(self, queryset=None):
return super(ScanDeleteView, self).get_object(queryset)
def get_queryset(self):
return super(ScanDeleteView, self).get_queryset()
def get_slug_field(self):
return super(ScanDeleteView, self).get_slug_field()
def get_context_data(self, **kwargs):
ret = super(ScanDeleteView, self).get_context_data(**kwargs)
return ret
def get_context_object_name(self, obj):
return super(ScanDeleteView, self).get_context_object_name(obj)
def render_to_response(self, context, **response_kwargs):
return super(ScanDeleteView, self).render_to_response(context, **response_kwargs)
def get_template_names(self):
return super(ScanDeleteView, self).get_template_names()
def get_success_url(self):
return reverse("scan_list")
| 34.424908 | 114 | 0.699723 | 1,145 | 9,398 | 5.483843 | 0.087336 | 0.101609 | 0.067686 | 0.073897 | 0.83405 | 0.750119 | 0.648511 | 0.629081 | 0.588629 | 0.588629 | 0 | 0.001438 | 0.185997 | 9,398 | 272 | 115 | 34.551471 | 0.819346 | 0.001702 | 0 | 0.497409 | 0 | 0 | 0.042324 | 0.016844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.34715 | false | 0 | 0.041451 | 0.305699 | 0.948187 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
7905c2a58d5806248e42f39d1e66c108cb0f711c | 360 | py | Python | espionage/constants.py | iAbdullahMughal/espionage | b223d82700fcdb27f4e4eae632466c53de061717 | [
"MIT"
] | 7 | 2021-12-20T12:49:30.000Z | 2022-02-24T13:37:28.000Z | espionage/constants.py | iAbdullahMughal/espionage | b223d82700fcdb27f4e4eae632466c53de061717 | [
"MIT"
] | 1 | 2021-12-27T15:02:53.000Z | 2021-12-27T15:02:53.000Z | espionage/constants.py | iAbdullahMughal/espionage | b223d82700fcdb27f4e4eae632466c53de061717 | [
"MIT"
] | 3 | 2021-12-27T14:58:46.000Z | 2022-01-03T08:19:41.000Z | class Constants:
"""Storing all constants of the project."""
_author = "muhammad abdullah"
_email = "iamabdullahmughal@gmail.com"
_version = "0.0.4"
@property
def author(self):
return self._author
@property
def email(self):
return self._email
@property
def version(self):
return self._version
| 20 | 47 | 0.622222 | 40 | 360 | 5.45 | 0.525 | 0.151376 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.277778 | 360 | 17 | 48 | 21.176471 | 0.826923 | 0.102778 | 0 | 0.230769 | 0 | 0 | 0.154574 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
790b3807375d1144379c018e82b0ad95968c4ace | 205 | py | Python | examples/get_file_name_demo.py | smilelight/lightUtils | e9b7ed35ed50cf6b7c6284fe60918ce4dc71beac | [
"MIT"
] | 2 | 2020-01-23T02:03:19.000Z | 2020-12-13T09:05:45.000Z | examples/get_file_name_demo.py | smilelight/lightUtils | e9b7ed35ed50cf6b7c6284fe60918ce4dc71beac | [
"MIT"
] | null | null | null | examples/get_file_name_demo.py | smilelight/lightUtils | e9b7ed35ed50cf6b7c6284fe60918ce4dc71beac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/7/7 9:11
# @Author : lightsmile
# @Software: PyCharm
from lightutils import get_file_name
if __name__ == '__main__':
print(get_file_name("hello_world.py"))
| 20.5 | 42 | 0.663415 | 29 | 205 | 4.241379 | 0.827586 | 0.113821 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 0.17561 | 205 | 9 | 43 | 22.777778 | 0.668639 | 0.42439 | 0 | 0 | 0 | 0 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 4 |
790c283a5a74d9bcd5fc3079c028df79210d6a0c | 187 | py | Python | Course/functions/example_12.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null | Course/functions/example_12.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null | Course/functions/example_12.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null | #sum = 10
def func1():
#sum = 20
print('Local1:', sum)
def func2():
#sum = 30
print('Local 2:', sum)
func2()
func1()
print("Global:", sum([1, 2, 3]))
| 11.6875 | 32 | 0.459893 | 25 | 187 | 3.44 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.326203 | 187 | 15 | 33 | 12.466667 | 0.563492 | 0.128342 | 0 | 0 | 0 | 0 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0 | 0 | 0.285714 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
790d374b8e55abde416cd25922fb73cbf1bcc3be | 174 | py | Python | bookworm/__init__.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 36 | 2020-11-15T03:21:39.000Z | 2022-03-05T01:11:26.000Z | bookworm/__init__.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 90 | 2020-10-06T14:46:07.000Z | 2022-03-31T03:03:34.000Z | bookworm/__init__.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 20 | 2020-09-30T17:40:44.000Z | 2022-03-17T19:59:53.000Z | # coding: utf-8
import gettext
# Make the gettext function _() available in the global namespace, even if no i18n is in use
gettext.install("bookworm", names=["ngettext"])
| 24.857143 | 92 | 0.741379 | 26 | 174 | 4.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.155172 | 174 | 6 | 93 | 29 | 0.85034 | 0.597701 | 0 | 0 | 0 | 0 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 4 |
791897c0f2aa4f376babc3f0cbc6794c11b86aa5 | 190 | py | Python | practicality/frontend/views.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | 1 | 2019-09-02T17:31:39.000Z | 2019-09-02T17:31:39.000Z | practicality/frontend/views.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | 5 | 2019-12-20T15:55:58.000Z | 2021-08-22T01:26:16.000Z | practicality/frontend/views.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
def home(request):
"""
View function for simply rendering the Ionic Angular
index.html
"""
return render(request, 'www/index.html')
| 19 | 56 | 0.684211 | 24 | 190 | 5.416667 | 0.833333 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 190 | 9 | 57 | 21.111111 | 0.878378 | 0.331579 | 0 | 0 | 0 | 0 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
792f7a40b42ff8ea31e2ee27188e0de96d37ca6b | 207 | py | Python | trailblazer/server/ext.py | Mropat/trailblazer | 6f9b6e9451bf97fcd8eae2b0d016df04f2df5249 | [
"MIT"
] | 3 | 2019-08-16T13:16:41.000Z | 2021-05-31T16:00:04.000Z | trailblazer/server/ext.py | Mropat/trailblazer | 6f9b6e9451bf97fcd8eae2b0d016df04f2df5249 | [
"MIT"
] | 167 | 2017-05-06T20:22:54.000Z | 2022-03-21T13:08:46.000Z | trailblazer/server/ext.py | Mropat/trailblazer | 6f9b6e9451bf97fcd8eae2b0d016df04f2df5249 | [
"MIT"
] | 6 | 2017-06-16T12:14:30.000Z | 2021-07-09T13:36:09.000Z | # -*- coding: utf-8 -*-
from flask_alchy import Alchy
from trailblazer.store import BaseHandler, models
class TrailblazerAlchy(Alchy, BaseHandler):
pass
store = TrailblazerAlchy(Model=models.Model)
| 17.25 | 49 | 0.758454 | 24 | 207 | 6.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.144928 | 207 | 11 | 50 | 18.818182 | 0.875706 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
7935e4d404297c538d5c7f64da7f41330fc1b9d2 | 108 | py | Python | app.py | wuriebah/python-docs-hello-world | 2d3cbb228fe58b2f17c3e7bb7bb33cf05b3e35bf | [
"MIT"
] | null | null | null | app.py | wuriebah/python-docs-hello-world | 2d3cbb228fe58b2f17c3e7bb7bb33cf05b3e35bf | [
"MIT"
] | null | null | null | app.py | wuriebah/python-docs-hello-world | 2d3cbb228fe58b2f17c3e7bb7bb33cf05b3e35bf | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, Ing.wurie!"
| 13.5 | 30 | 0.657407 | 15 | 108 | 4.466667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 108 | 7 | 31 | 15.428571 | 0.752809 | 0 | 0 | 0 | 0 | 0 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f70b602fa67e6e8b514ce3156eac1f98c7a45b36 | 303 | py | Python | src/main/resources/docs/tests/R0914.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | src/main/resources/docs/tests/R0914.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | src/main/resources/docs/tests/R0914.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | ##Patterns: R0914: { "max-locals": "3" }
##Warn: R0914
def doEverything(thing):
a = 3
b = 3
c = 3
d = 3
e = 3
f = 3
g = 3
h = 3
i = 3
j = 3
k = 3
l = 3
m = 3
n = 3
o = 3
p = 3
q = 3
r = 3
s = 3
t = 3
| 12.625 | 41 | 0.30363 | 50 | 303 | 1.84 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223077 | 0.570957 | 303 | 23 | 42 | 13.173913 | 0.484615 | 0.161716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f7163d24a95dcc2a6bddc0e3154afb84cd313c70 | 53 | py | Python | python/tevreden/__init__.py | lhengstmengel/tevreden-sdk | 704b575b264f72954a7bb3afc57a9db94f1e273b | [
"MIT"
] | null | null | null | python/tevreden/__init__.py | lhengstmengel/tevreden-sdk | 704b575b264f72954a7bb3afc57a9db94f1e273b | [
"MIT"
] | null | null | null | python/tevreden/__init__.py | lhengstmengel/tevreden-sdk | 704b575b264f72954a7bb3afc57a9db94f1e273b | [
"MIT"
] | null | null | null | from tevreden.apiclient import APIClient
| 8.833333 | 40 | 0.679245 | 5 | 53 | 7.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301887 | 53 | 5 | 41 | 10.6 | 0.972973 | 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 | 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 | 0 | 0 | 4 |
f720066904260a4d87d72e6f5790ddf77d44d217 | 101 | py | Python | codes_auto/1603.running-sum-of-1d-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1603.running-sum-of-1d-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1603.running-sum-of-1d-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=1603 lang=python3
#
# [1603] running-sum-of-1d-array
#
None
# @lc code=end | 14.428571 | 42 | 0.673267 | 18 | 101 | 3.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0.138614 | 101 | 7 | 43 | 14.428571 | 0.666667 | 0.831683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f74986152a8154f43beea4b8188cb2427678c7bb | 29,540 | py | Python | src/domainClient/models/domain_public_adapter_web_api_models_v1_listings_commercial_search_request.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 5 | 2021-04-12T04:10:42.000Z | 2021-04-28T05:54:22.000Z | src/domainClient/models/domain_public_adapter_web_api_models_v1_listings_commercial_search_request.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 35 | 2020-05-26T14:21:37.000Z | 2022-03-29T16:14:42.000Z | src/domainClient/models/domain_public_adapter_web_api_models_v1_listings_commercial_search_request.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 2 | 2020-05-26T14:02:12.000Z | 2022-01-10T08:19:49.000Z | # coding: utf-8
"""
Domain Group API V1
Provides public access to Domain's microservices # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'page_number': 'int',
'advertiser_id': 'int',
'page_size': 'int',
'property_types': 'list[str]',
'price': 'DomainPublicAdapterWebApiModelsV1ListingsCommercialPriceSearch',
'locations': 'list[DomainPublicAdapterWebApiModelsV1ListingsCommercialLocationSearch]',
'keywords': 'list[str]',
'geo_window': 'DomainPublicAdapterWebApiModelsV1ListingsCommercialGeoWindow',
'land_area_min': 'int',
'land_area_max': 'int',
'building_size_min': 'int',
'building_size_max': 'int',
'search_mode': 'str',
'occupancy': 'str',
'sort': 'str',
'sale_type': 'str',
'property_title': 'str',
'parking': 'DomainPublicAdapterWebApiModelsV1ListingsCommercialParkingSearch',
'exclusion_types': 'list[str]',
'annual_return': 'int'
}
attribute_map = {
'page_number': 'pageNumber',
'advertiser_id': 'advertiserId',
'page_size': 'pageSize',
'property_types': 'propertyTypes',
'price': 'price',
'locations': 'locations',
'keywords': 'keywords',
'geo_window': 'geoWindow',
'land_area_min': 'landAreaMin',
'land_area_max': 'landAreaMax',
'building_size_min': 'buildingSizeMin',
'building_size_max': 'buildingSizeMax',
'search_mode': 'searchMode',
'occupancy': 'occupancy',
'sort': 'sort',
'sale_type': 'saleType',
'property_title': 'propertyTitle',
'parking': 'parking',
'exclusion_types': 'exclusionTypes',
'annual_return': 'annualReturn'
}
def __init__(self, page_number=None, advertiser_id=None, page_size=None, property_types=None, price=None, locations=None, keywords=None, geo_window=None, land_area_min=None, land_area_max=None, building_size_min=None, building_size_max=None, search_mode=None, occupancy=None, sort=None, sale_type=None, property_title=None, parking=None, exclusion_types=None, annual_return=None): # noqa: E501
"""DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest - a model defined in Swagger""" # noqa: E501
self._page_number = None
self._advertiser_id = None
self._page_size = None
self._property_types = None
self._price = None
self._locations = None
self._keywords = None
self._geo_window = None
self._land_area_min = None
self._land_area_max = None
self._building_size_min = None
self._building_size_max = None
self._search_mode = None
self._occupancy = None
self._sort = None
self._sale_type = None
self._property_title = None
self._parking = None
self._exclusion_types = None
self._annual_return = None
self.discriminator = None
if page_number is not None:
self.page_number = page_number
if advertiser_id is not None:
self.advertiser_id = advertiser_id
if page_size is not None:
self.page_size = page_size
if property_types is not None:
self.property_types = property_types
if price is not None:
self.price = price
if locations is not None:
self.locations = locations
if keywords is not None:
self.keywords = keywords
if geo_window is not None:
self.geo_window = geo_window
if land_area_min is not None:
self.land_area_min = land_area_min
if land_area_max is not None:
self.land_area_max = land_area_max
if building_size_min is not None:
self.building_size_min = building_size_min
if building_size_max is not None:
self.building_size_max = building_size_max
if search_mode is not None:
self.search_mode = search_mode
if occupancy is not None:
self.occupancy = occupancy
if sort is not None:
self.sort = sort
if sale_type is not None:
self.sale_type = sale_type
if property_title is not None:
self.property_title = property_title
if parking is not None:
self.parking = parking
if exclusion_types is not None:
self.exclusion_types = exclusion_types
if annual_return is not None:
self.annual_return = annual_return
@property
def page_number(self):
"""Gets the page_number of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
# noqa: E501
:return: The page_number of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._page_number
@page_number.setter
def page_number(self, page_number):
"""Sets the page_number of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
# noqa: E501
:param page_number: The page_number of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._page_number = page_number
@property
def advertiser_id(self):
"""Gets the advertiser_id of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Agency ID # noqa: E501
:return: The advertiser_id of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._advertiser_id
@advertiser_id.setter
def advertiser_id(self, advertiser_id):
"""Sets the advertiser_id of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Agency ID # noqa: E501
:param advertiser_id: The advertiser_id of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._advertiser_id = advertiser_id
@property
def page_size(self):
"""Gets the page_size of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Search results page size # noqa: E501
:return: The page_size of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._page_size
@page_size.setter
def page_size(self, page_size):
"""Sets the page_size of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Search results page size # noqa: E501
:param page_size: The page_size of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._page_size = page_size
@property
def property_types(self):
"""Gets the property_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Listing property types # noqa: E501
:return: The property_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: list[str]
"""
return self._property_types
@property_types.setter
def property_types(self, property_types):
"""Sets the property_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Listing property types # noqa: E501
:param property_types: The property_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: list[str]
"""
allowed_values = ["unknown", "accessoriesParts", "accommodationTourism", "accounting", "acreageSemiRural", "adult", "advertisingMarketing", "aerial", "aeronautical", "agedCare", "agricultural", "air", "aircraft", "alarms", "alcoholLiquor", "amusements", "animalRelated", "apartmentUnitFlat", "aquaculture", "aquaticMarineMarinaBerth", "artsCrafts", "autoElectrical", "automotive", "backpackerHostel", "bakery", "barsNightclubs", "beautyHealth", "beautyProducts", "beautySalon", "bedAndBreakfast", "bikeAndMotorcycle", "blockOfUnits", "boardingKennels", "boatsMarineMarinaBerth", "bookkeeping", "brokerage", "builder", "buildingAndConstruction", "bus", "butcher", "cafeCoffeeShop", "car", "carBusTruck", "carDealership", "carRental", "carSpace", "carWash", "caravanPark", "carpenter", "catering", "childCare", "civil", "cleaning", "cleaningAndMaintenance", "clinicalPractice", "clothingAccessories", "clothingFootwear", "communication", "communications", "computerIT", "computerAndInternet", "construction", "convenienceStore", "copyLaminate", "courier", "cropHarvesting", "customs", "dairyFarming", "deli", "dental", "detailing", "developmentLand", "developmentSite", "distributors", "drivingSchools", "duplex", "educationTraining", "educational", "electrical", "employmentRecruitment", "entertainment", "entertainmentTechnology", "export", "farm", "farming", "fertiliser", "finance", "financialServices", "fishingForestry", "floristNursery", "foodBeverage", "foodBeverageHospitality", "franchiseBusinessOpportunities", "freight", "fruitVegFreshProduce", "fruitPicking", "functionCentre", "furnitureTimber", "gambling", "gardenHousehold", "gardenNurseries", "gardening", "glassCeramic", "guestHouseBB", "guesthouse", "hairdresser", "healthBeauty", "healthSpa", "hire", "homeGarden", "homeBased", "newHomeDesigns", "homewareHardware", "hospital", "hotel", "hotelLeisure", "hotelMotelPub", "house", "newHouseLand", "huntingTrap", "import", "importExportWholesale", "industrialManufacturing", "industrialWarehouse", "insemination", "insurance", "internationalNewDevelopment", "internet", "irrigationServices", "juiceBar", "landClearing", "newLand", "landscaping", "laundryDryCleaning", "legal", "leisureEntertainment", "limousineTaxi", "livestock", "internationalCommercial", "machinery", "machineryMetal", "managementRights", "manufacturers", "manufacturingEngineering", "marine", "massage", "mechanicalRepair", "media", "medical", "medicalConsulting", "medicalPractice", "miningEarthMoving", "mobileServices", "motel", "motorcycle", "musicRelated", "mustering", "nails", "naturalTherapies", "newApartments", "newsagency", "nursery", "nursingHome", "offices", "officeSupplies", "oilGas", "onStreet", "panelBeating", "paperPrinting", "parkingCarSpace", "penthouse", "pestRelated", "pharmacies", "plastic", "plumbing", "poolWater", "postOffices", "printPhoto", "professional", "propertyRealEstate", "rail", "recreationSport", "recruitment", "repair", "resort", "restaurant", "retail", "retailer", "retirementVillage", "road", "rural", "ruralCommercialFarming", "scientific", "sea", "security", "semiDetached", "serviceStation", "serviced", "services", "shearing", "showroomsBulkyGoods", "specialistFarm", "sportsComplexGym", "studio", "supermarket", "takeawayFood", "taxi", "terrace", "themePark", "tours", "townhouse", "training", "transportDistribution", "travel", "truck", "vacantLand", "vending", "villa", "water", "welding", "wholesale", "wholesalers", "withShowroomWarehouse", "withinShoppingComplex", "woolClassing", "wreckers", "tattersalls", "servicedOffices", "other", "alcoholGrocery", "cafeRestaurant", "discountStore", "ecoFriendly", "green", "grocery", "specialityRetail", "storage", "travelAgency", "varietyStore", "franchiseNew", "business"] # noqa: E501
if not set(property_types).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `property_types` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(property_types) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._property_types = property_types
@property
def price(self):
"""Gets the price of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Price search criteria # noqa: E501
:return: The price of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: DomainPublicAdapterWebApiModelsV1ListingsCommercialPriceSearch
"""
return self._price
@price.setter
def price(self, price):
"""Sets the price of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Price search criteria # noqa: E501
:param price: The price of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: DomainPublicAdapterWebApiModelsV1ListingsCommercialPriceSearch
"""
self._price = price
@property
def locations(self):
"""Gets the locations of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Location search criteria # noqa: E501
:return: The locations of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: list[DomainPublicAdapterWebApiModelsV1ListingsCommercialLocationSearch]
"""
return self._locations
@locations.setter
def locations(self, locations):
"""Sets the locations of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Location search criteria # noqa: E501
:param locations: The locations of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: list[DomainPublicAdapterWebApiModelsV1ListingsCommercialLocationSearch]
"""
self._locations = locations
@property
def keywords(self):
"""Gets the keywords of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Search listings by keyword # noqa: E501
:return: The keywords of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: list[str]
"""
return self._keywords
@keywords.setter
def keywords(self, keywords):
"""Sets the keywords of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Search listings by keyword # noqa: E501
:param keywords: The keywords of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: list[str]
"""
self._keywords = keywords
@property
def geo_window(self):
"""Gets the geo_window of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Geospatial search (polygon) # noqa: E501
:return: The geo_window of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: DomainPublicAdapterWebApiModelsV1ListingsCommercialGeoWindow
"""
return self._geo_window
@geo_window.setter
def geo_window(self, geo_window):
"""Sets the geo_window of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Geospatial search (polygon) # noqa: E501
:param geo_window: The geo_window of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: DomainPublicAdapterWebApiModelsV1ListingsCommercialGeoWindow
"""
self._geo_window = geo_window
@property
def land_area_min(self):
"""Gets the land_area_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Minimum land area # noqa: E501
:return: The land_area_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._land_area_min
@land_area_min.setter
def land_area_min(self, land_area_min):
"""Sets the land_area_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Minimum land area # noqa: E501
:param land_area_min: The land_area_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._land_area_min = land_area_min
@property
def land_area_max(self):
"""Gets the land_area_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Maximum land area # noqa: E501
:return: The land_area_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._land_area_max
@land_area_max.setter
def land_area_max(self, land_area_max):
"""Sets the land_area_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Maximum land area # noqa: E501
:param land_area_max: The land_area_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._land_area_max = land_area_max
@property
def building_size_min(self):
"""Gets the building_size_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Minimum building area # noqa: E501
:return: The building_size_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._building_size_min
@building_size_min.setter
def building_size_min(self, building_size_min):
"""Sets the building_size_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Minimum building area # noqa: E501
:param building_size_min: The building_size_min of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._building_size_min = building_size_min
@property
def building_size_max(self):
"""Gets the building_size_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Maximum building area # noqa: E501
:return: The building_size_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._building_size_max
@building_size_max.setter
def building_size_max(self, building_size_max):
"""Sets the building_size_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Maximum building area # noqa: E501
:param building_size_max: The building_size_max of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._building_size_max = building_size_max
@property
def search_mode(self):
"""Gets the search_mode of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Search mode # noqa: E501
:return: The search_mode of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: str
"""
return self._search_mode
@search_mode.setter
def search_mode(self, search_mode):
"""Sets the search_mode of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Search mode # noqa: E501
:param search_mode: The search_mode of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: str
"""
allowed_values = ["forSale", "forLease", "sold", "leased"] # noqa: E501
if search_mode not in allowed_values:
raise ValueError(
"Invalid value for `search_mode` ({0}), must be one of {1}" # noqa: E501
.format(search_mode, allowed_values)
)
self._search_mode = search_mode
@property
def occupancy(self):
"""Gets the occupancy of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Occupancy # noqa: E501
:return: The occupancy of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: str
"""
return self._occupancy
@occupancy.setter
def occupancy(self, occupancy):
"""Sets the occupancy of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Occupancy # noqa: E501
:param occupancy: The occupancy of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: str
"""
self._occupancy = occupancy
@property
def sort(self):
"""Gets the sort of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Sorting order # noqa: E501
:return: The sort of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: str
"""
return self._sort
@sort.setter
def sort(self, sort):
"""Sets the sort of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Sorting order # noqa: E501
:param sort: The sort of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: str
"""
allowed_values = ["default", "newestFirst", "cheapestTotalFirst", "cheapestPerSqmFirst", "mostExpensiveTotalFirst", "mostExpensivePerSqmFirst", "suburbAsc", "suburbDesc", "buildingSizeAsc", "buildingSizeDesc"] # noqa: E501
if sort not in allowed_values:
raise ValueError(
"Invalid value for `sort` ({0}), must be one of {1}" # noqa: E501
.format(sort, allowed_values)
)
self._sort = sort
@property
def sale_type(self):
"""Gets the sale_type of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Sale type # noqa: E501
:return: The sale_type of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: str
"""
return self._sale_type
@sale_type.setter
def sale_type(self, sale_type):
"""Sets the sale_type of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Sale type # noqa: E501
:param sale_type: The sale_type of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: str
"""
allowed_values = ["standardSale", "auction", "expressionOfInterest", "tender"] # noqa: E501
if sale_type not in allowed_values:
raise ValueError(
"Invalid value for `sale_type` ({0}), must be one of {1}" # noqa: E501
.format(sale_type, allowed_values)
)
self._sale_type = sale_type
@property
def property_title(self):
"""Gets the property_title of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Property title # noqa: E501
:return: The property_title of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: str
"""
return self._property_title
@property_title.setter
def property_title(self, property_title):
"""Sets the property_title of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Property title # noqa: E501
:param property_title: The property_title of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: str
"""
allowed_values = ["freehold", "strata", "noBuilding"] # noqa: E501
if property_title not in allowed_values:
raise ValueError(
"Invalid value for `property_title` ({0}), must be one of {1}" # noqa: E501
.format(property_title, allowed_values)
)
self._property_title = property_title
@property
def parking(self):
"""Gets the parking of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Parking search criteria # noqa: E501
:return: The parking of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: DomainPublicAdapterWebApiModelsV1ListingsCommercialParkingSearch
"""
return self._parking
@parking.setter
def parking(self, parking):
"""Sets the parking of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Parking search criteria # noqa: E501
:param parking: The parking of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: DomainPublicAdapterWebApiModelsV1ListingsCommercialParkingSearch
"""
self._parking = parking
@property
def exclusion_types(self):
"""Gets the exclusion_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Exclusion Types # noqa: E501
:return: The exclusion_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: list[str]
"""
return self._exclusion_types
@exclusion_types.setter
def exclusion_types(self, exclusion_types):
"""Sets the exclusion_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Exclusion Types # noqa: E501
:param exclusion_types: The exclusion_types of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: list[str]
"""
allowed_values = ["surroundingSuburbs", "withoutPrice"] # noqa: E501
if not set(exclusion_types).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `exclusion_types` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(exclusion_types) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._exclusion_types = exclusion_types
@property
def annual_return(self):
"""Gets the annual_return of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
Minimum annual return (in percents) # noqa: E501
:return: The annual_return of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:rtype: int
"""
return self._annual_return
@annual_return.setter
def annual_return(self, annual_return):
"""Sets the annual_return of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest.
Minimum annual return (in percents) # noqa: E501
:param annual_return: The annual_return of this DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest. # noqa: E501
:type: int
"""
self._annual_return = annual_return
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, DomainPublicAdapterWebApiModelsV1ListingsCommercialSearchRequest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| 42.936047 | 3,775 | 0.684157 | 2,654 | 29,540 | 7.435192 | 0.166918 | 0.047433 | 0.283789 | 0.228754 | 0.547864 | 0.453454 | 0.401307 | 0.297725 | 0.20899 | 0.099427 | 0 | 0.020524 | 0.228064 | 29,540 | 687 | 3,776 | 42.998544 | 0.844845 | 0.405484 | 0 | 0.099668 | 1 | 0 | 0.280724 | 0.044301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152824 | false | 0 | 0.013289 | 0 | 0.262458 | 0.009967 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f7528efb357f8800aad34201e746c2dbc3462389 | 129 | py | Python | data_processing/libmesh/setup.py | vedanthpadigelwar/if-net | 81c3068a52c619cf6de800807226d3801cb4d057 | [
"Unlicense"
] | 209 | 2020-04-17T02:19:56.000Z | 2022-03-01T06:51:22.000Z | data_processing/libmesh/setup.py | vedanthpadigelwar/if-net | 81c3068a52c619cf6de800807226d3801cb4d057 | [
"Unlicense"
] | 39 | 2020-04-22T09:28:40.000Z | 2022-03-28T11:23:48.000Z | data_processing/libmesh/setup.py | vedanthpadigelwar/if-net | 81c3068a52c619cf6de800807226d3801cb4d057 | [
"Unlicense"
] | 45 | 2020-04-17T06:28:51.000Z | 2022-03-22T12:38:56.000Z | from setuptools import setup
from Cython.Build import cythonize
setup(name = 'libmesh',
ext_modules = cythonize("*.pyx"))
| 21.5 | 39 | 0.728682 | 16 | 129 | 5.8125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 129 | 5 | 40 | 25.8 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 4 |
f75957e4f6c11befb8a924de462f305ef98b03ee | 124 | py | Python | cases/pert.py | lacknc/Andes | 3664ff69406ac01381b675393d6ac96fcf080b25 | [
"Apache-2.0"
] | 1 | 2018-01-11T22:58:17.000Z | 2018-01-11T22:58:17.000Z | cases/pert.py | rwl/Andes | 6818dcc86bd7e1a5028b5be1deee3d6b4171c540 | [
"Apache-2.0"
] | null | null | null | cases/pert.py | rwl/Andes | 6818dcc86bd7e1a5028b5be1deee3d6b4171c540 | [
"Apache-2.0"
] | null | null | null | """Sample perturbation file. It trips the 9th generator at t=2"""
def pert(t, system):
if 2.0 <= t <=2.2:
pass | 20.666667 | 65 | 0.58871 | 22 | 124 | 3.318182 | 0.772727 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.258065 | 124 | 6 | 66 | 20.666667 | 0.728261 | 0.475806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f775c4fb3feb391273907f579d4f44c759e7d858 | 103 | py | Python | krypton/src/classes/Line.py | beratcmn/krypton | 1aa68d0190595c72fbb9fd3c476ea4fe9484cd6d | [
"MIT"
] | 1 | 2021-11-10T22:28:49.000Z | 2021-11-10T22:28:49.000Z | krypton/src/classes/Line.py | beratcmn/krypton | 1aa68d0190595c72fbb9fd3c476ea4fe9484cd6d | [
"MIT"
] | 3 | 2021-11-14T23:48:56.000Z | 2022-03-30T21:10:08.000Z | krypton/src/classes/Line.py | beratcmn/krypton | 1aa68d0190595c72fbb9fd3c476ea4fe9484cd6d | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Line:
line: int
level: int
value: str
| 11.444444 | 33 | 0.68932 | 13 | 103 | 5.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262136 | 103 | 8 | 34 | 12.875 | 0.934211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
e39004dc76a991c2d927e9a8751885fdca9deb3a | 19,363 | py | Python | python/tvm/topi/cuda/argwhere.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | 2 | 2019-12-10T02:11:26.000Z | 2019-12-13T14:26:09.000Z | python/tvm/topi/cuda/argwhere.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | null | null | null | python/tvm/topi/cuda/argwhere.py | zhenlohuang/tvm | fd2e6d17120a79533852c6bb705429d9c7bc286b | [
"Apache-2.0"
] | 1 | 2021-08-05T09:11:53.000Z | 2021-08-05T09:11:53.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# pylint: disable=too-many-arguments, invalid-name
"""Argwhere operator"""
import logging
import tvm
from tvm import te
from tvm._ffi import get_global_func
from .injective import schedule_injective_from_existing
from .nms import atomic_add
from .sort import topk, topk_thrust, argsort, argsort_thrust
from .. import tag
from ..transform import strided_slice, adv_index, squeeze
logger = logging.getLogger("topi")
def _get_sort_func(mode=0):
"""Get sort function for argwhere. mode 0 for topk and others for argsort."""
if get_global_func("tvm.contrib.thrust.sort", allow_missing=True):
ret = topk_thrust if mode == 0 else argsort_thrust
else:
logger.warning(
"It's highly recommended to enable thrust library with set(USE_THRUST ON)"
" when compiling argwhere for cuda target. Otherwise, it can result in"
" significant performance degradation or incorrect result"
)
ret = topk if mode == 0 else argsort
return ret
def argwhere_1d_ir(condition, out):
"""Low level IR for argwhere 1D
Parameters
----------
condition : Buffer
The condition buffer.
out : Buffer
The output buffer.
Returns
-------
stmt : Stmt
The result IR statement.
"""
ib = tvm.tir.ir_builder.create()
a0 = condition.shape[0]
condition = ib.buffer_ptr(condition)
out = ib.buffer_ptr(out)
valid_index = ib.allocate("int32", (1,), name="valid_index", scope="global")
tmp = ib.allocate("int32", (1,), name="tmp", scope="local")
one_count = tvm.tir.const(1, dtype="int32")
max_threads = int(tvm.target.Target.current(allow_none=False).max_num_threads)
nthread_tx = max_threads
# Limit threads to a single block to make sure atomic_add works normally.
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", nthread_tx)
len_inner_for = a0 // nthread_tx + 1
valid_index[0] = 0
with ib.for_range(0, len_inner_for, name="i") as i:
idx = tx * len_inner_for + i
with ib.if_scope(idx < a0):
with ib.if_scope(condition[idx] != 0):
tmp[0] = atomic_add(
tvm.tir.call_intrin("handle", "tir.address_of", valid_index[0]),
one_count,
)
out[tmp[0]] = idx
return ib.get()
def argwhere_1d(output_shape, condition):
"""Compute for argwhere 1D
Parameters
----------
condition : list of int or tvm.tir.Any
The output shape
out : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
stmt : Stmt
The result IR statement.
"""
condition_buf = tvm.tir.decl_buffer(
condition.shape, condition.dtype, "data_buf", data_alignment=8
)
out_buf = tvm.tir.decl_buffer(output_shape, "int32", "out_buf", data_alignment=8)
out = te.extern(
[output_shape],
[condition],
lambda ins, outs: argwhere_1d_ir(ins[0], outs[0]),
dtype=["int32"],
in_buffers=[condition_buf],
out_buffers=[out_buf],
name="argwhere_1d",
tag="argwhere1d_gpu",
)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)) and int(out.shape[0]) <= 1:
return out
sorted_out = _get_sort_func()(
out, k=0, axis=0, ret_type="values", is_ascend="True", dtype="int32"
)
return sorted_out
def argwhere_2d_ir(condition, out):
"""Low level IR for argwhere 2D
Parameters
----------
condition : Buffer
The condition buffer.
out : Buffer
The output buffer.
Returns
-------
stmt : Stmt
The result IR statement.
"""
ib = tvm.tir.ir_builder.create()
a0 = condition.shape[0]
a1 = condition.shape[1]
condition = ib.buffer_ptr(condition)
out = ib.buffer_ptr(out)
valid_index = ib.allocate("int32", (1,), name="valid_index", scope="local")
tmp = ib.allocate("int32", (1,), name="tmp", scope="local")
one_count = tvm.tir.const(1, dtype="int32")
max_threads = int(tvm.target.Target.current(allow_none=False).max_num_threads)
nthread_tx = max_threads
# Limit threads to a single block to make sure atomic_add works normally.
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", nthread_tx)
len_inner_for = (a0 * a1) // nthread_tx + 1
valid_index[0] = 0
with ib.for_range(0, len_inner_for, name="i") as i:
idx = tx * len_inner_for + i
with ib.if_scope(idx < (a0 * a1)):
with ib.if_scope(condition[idx] != 0):
tmp[0] = atomic_add(
tvm.tir.call_intrin("handle", "tir.address_of", valid_index[0]),
one_count,
)
out[tmp[0] * 2] = tvm.tir.floordiv(idx, a1)
out[tmp[0] * 2 + 1] = tvm.tir.floormod(idx, a1)
return ib.get()
def argwhere_2d(output_shape, condition):
"""Compute for argwhere 2D
Parameters
----------
condition : list of int or tvm.tir.Any
The output shape
out : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
stmt : Stmt
The result IR statement.
"""
condition_buf = tvm.tir.decl_buffer(
condition.shape, condition.dtype, "data_buf", data_alignment=8
)
out_buf = tvm.tir.decl_buffer(output_shape, "int32", "out_buf", data_alignment=8)
out = te.extern(
[output_shape],
[condition],
lambda ins, outs: argwhere_2d_ir(ins[0], outs[0]),
dtype=["int32"],
in_buffers=[condition_buf],
out_buffers=[out_buf],
name="argwhere_2d",
tag="argwhere2d_gpu",
)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)) and int(out.shape[0]) <= 1:
return out
sort_func = _get_sort_func(1)
# sort the output from the least significant to the most significant
# column.
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)):
out1 = strided_slice(out, [0, 1], [out.shape[0], 2])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
out1 = strided_slice(out, [0, 0], [out.shape[0], 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
else:
out1 = strided_slice(out, [0, 1], [out.shape[0], 2], [1, 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
out1 = strided_slice(out, [0, 0], [out.shape[0], 1], [1, 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
return out
def argwhere_3d_ir(condition, out):
"""Low level IR for argwhere 3D
Parameters
----------
condition : Buffer
The condition buffer.
out : Buffer
The output buffer.
Returns
-------
stmt : Stmt
The result IR statement.
"""
ib = tvm.tir.ir_builder.create()
a0 = condition.shape[0]
a1 = condition.shape[1]
a2 = condition.shape[2]
s1 = a1 * a2
s0 = a0 * s1
condition = ib.buffer_ptr(condition)
out = ib.buffer_ptr(out)
valid_index = ib.allocate("int32", (1,), name="valid_index", scope="local")
tmp = ib.allocate("int32", (1,), name="tmp", scope="local")
one_count = tvm.tir.const(1, dtype="int32")
max_threads = int(tvm.target.Target.current(allow_none=False).max_num_threads)
nthread_tx = max_threads
# Limit threads to a single block to make sure atomic_add works normally.
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", nthread_tx)
len_inner_for = s0 // nthread_tx + 1
fdiv = tvm.tir.floordiv
fmod = tvm.tir.floormod
valid_index[0] = 0
with ib.for_range(0, len_inner_for, name="i") as i:
idx = tx * len_inner_for + i
with ib.if_scope(idx < s0):
with ib.if_scope(condition[idx] != 0):
tmp[0] = atomic_add(
tvm.tir.call_intrin("handle", "tir.address_of", valid_index[0]),
one_count,
)
out[tmp[0] * 3] = fdiv(idx, s1)
out[tmp[0] * 3 + 1] = fdiv(fmod(idx, s1), a2)
out[tmp[0] * 3 + 2] = fmod(idx, a2)
return ib.get()
def argwhere_3d(output_shape, condition):
"""Compute for argwhere 3D
Parameters
----------
condition : list of int or tvm.tir.Any
The output shape
out : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
stmt : Stmt
The result IR statement.
"""
condition_buf = tvm.tir.decl_buffer(
condition.shape, condition.dtype, "data_buf", data_alignment=8
)
out_buf = tvm.tir.decl_buffer(output_shape, "int32", "out_buf", data_alignment=8)
out = te.extern(
[output_shape],
[condition],
lambda ins, outs: argwhere_3d_ir(ins[0], outs[0]),
dtype=["int32"],
in_buffers=[condition_buf],
out_buffers=[out_buf],
name="argwhere_3d",
tag="argwhere3d_gpu",
)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)) and int(out.shape[0]) <= 1:
return out
# sort the output from the least significant to the most significant
# column.
sort_func = _get_sort_func(1)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)):
for i in reversed(range(3)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
else:
for i in reversed(range(3)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1], [1, 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
return out
def argwhere_4d_ir(condition, out):
"""Low level IR for argwhere 4D
Parameters
----------
condition : Buffer
The condition buffer.
out : Buffer
The output buffer.
Returns
-------
stmt : Stmt
The result IR statement.
"""
ib = tvm.tir.ir_builder.create()
a0 = condition.shape[0]
a1 = condition.shape[1]
a2 = condition.shape[2]
a3 = condition.shape[3]
s1 = a2 * a3
s2 = a1 * s1
s0 = a0 * s2
condition = ib.buffer_ptr(condition)
out = ib.buffer_ptr(out)
valid_index = ib.allocate("int32", (1,), name="valid_index", scope="local")
tmp = ib.allocate("int32", (1,), name="tmp", scope="local")
one_count = tvm.tir.const(1, dtype="int32")
max_threads = int(tvm.target.Target.current(allow_none=False).max_num_threads)
nthread_tx = max_threads
# Limit threads to a single block to make sure atomic_add works normally.
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", nthread_tx)
len_inner_for = s0 // nthread_tx + 1
fdiv = tvm.tir.floordiv
fmod = tvm.tir.floormod
valid_index[0] = 0
with ib.for_range(0, len_inner_for, name="i") as i:
idx = tx * len_inner_for + i
with ib.if_scope(idx < s0):
with ib.if_scope(condition[idx] != 0):
tmp[0] = atomic_add(
tvm.tir.call_intrin("handle", "tir.address_of", valid_index[0]),
one_count,
)
out[tmp[0] * 4] = fdiv(idx, s2)
out[tmp[0] * 4 + 1] = fdiv(fmod(idx, s2), s1)
out[tmp[0] * 4 + 2] = fdiv(fmod(idx, s1), a3)
out[tmp[0] * 4 + 3] = fmod(idx, a3)
return ib.get()
def argwhere_4d(output_shape, condition):
"""Compute for argwhere 4D
Parameters
----------
condition : list of int or tvm.tir.Any
The output shape
out : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
stmt : Stmt
The result IR statement.
"""
condition_buf = tvm.tir.decl_buffer(
condition.shape, condition.dtype, "data_buf", data_alignment=8
)
out_buf = tvm.tir.decl_buffer(output_shape, "int32", "out_buf", data_alignment=8)
out = te.extern(
[output_shape],
[condition],
lambda ins, outs: argwhere_4d_ir(ins[0], outs[0]),
dtype=["int32"],
in_buffers=[condition_buf],
out_buffers=[out_buf],
name="argwhere_4d",
tag="argwhere4d_gpu",
)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)) and int(out.shape[0]) <= 1:
return out
# sort the output from the least significant to the most significant
# column.
sort_func = _get_sort_func(1)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)):
for i in reversed(range(4)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
else:
for i in reversed(range(4)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1], [1, 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
return out
def argwhere_5d_ir(condition, out):
"""Low level IR for argwhere 5D
Parameters
----------
condition : Buffer
The condition buffer.
out : Buffer
The output buffer.
Returns
-------
stmt : Stmt
The result IR statement.
"""
ib = tvm.tir.ir_builder.create()
a0 = condition.shape[0]
a1 = condition.shape[1]
a2 = condition.shape[2]
a3 = condition.shape[3]
a4 = condition.shape[4]
s1 = a3 * a4
s2 = a2 * s1
s3 = a1 * s2
s0 = a0 * s3
condition = ib.buffer_ptr(condition)
out = ib.buffer_ptr(out)
valid_index = ib.allocate("int32", (1,), name="valid_index", scope="local")
tmp = ib.allocate("int32", (1,), name="tmp", scope="local")
one_count = tvm.tir.const(1, dtype="int32")
max_threads = int(tvm.target.Target.current(allow_none=False).max_num_threads)
nthread_tx = max_threads
# Limit threads to a single block to make sure atomic_add works normally.
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", nthread_tx)
len_inner_for = s0 // nthread_tx + 1
fdiv = tvm.tir.floordiv
fmod = tvm.tir.floormod
valid_index[0] = 0
with ib.for_range(0, len_inner_for, name="i") as i:
idx = tx * len_inner_for + i
with ib.if_scope(idx < s0):
with ib.if_scope(condition[idx] != 0):
tmp[0] = atomic_add(
tvm.tir.call_intrin("handle", "tir.address_of", valid_index[0]),
one_count,
)
out[tmp[0] * 5] = fdiv(idx, s3)
out[tmp[0] * 5 + 1] = fdiv(fmod(idx, s3), s2)
out[tmp[0] * 5 + 2] = fdiv(fmod(idx, s2), s1)
out[tmp[0] * 5 + 3] = fdiv(fmod(idx, s1), a4)
out[tmp[0] * 5 + 4] = fmod(idx, a4)
return ib.get()
def argwhere_5d(output_shape, condition):
"""Compute for argwhere 5D
Parameters
----------
condition : list of int or tvm.tir.Any
The output shape
out : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
stmt : Stmt
The result IR statement.
"""
condition_buf = tvm.tir.decl_buffer(
condition.shape, condition.dtype, "data_buf", data_alignment=8
)
out_buf = tvm.tir.decl_buffer(output_shape, "int32", "out_buf", data_alignment=8)
out = te.extern(
[output_shape],
[condition],
lambda ins, outs: argwhere_5d_ir(ins[0], outs[0]),
dtype=["int32"],
in_buffers=[condition_buf],
out_buffers=[out_buf],
name="argwhere_5d",
tag="argwhere5d_gpu",
)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)) and int(out.shape[0]) <= 1:
return out
# sort the output from the least significant to the most significant
# column.
sort_func = _get_sort_func(1)
if isinstance(out.shape[0], (int, tvm.tir.expr.IntImm)):
for i in reversed(range(5)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
else:
for i in reversed(range(5)):
out1 = strided_slice(out, [0, i], [out.shape[0], i + 1], [1, 1])
out2 = sort_func(out1, axis=0, dtype="int32")
out3 = squeeze(out2)
out = adv_index(out, [out3])
return out
def argwhere(output_shape, condition):
"""Find the indices of elements of a tensor that are non-zero.
Parameters
----------
output_shape : tvm.te.Tensor
Tensor with output shape info.
condition : tvm.te.Tensor
Tensor with boolean values.
Returns
-------
out : tvm.te.Tensor
Indices of non-zero elements.
"""
if len(condition.shape) == 1:
return argwhere_1d(output_shape.shape, condition)
if len(condition.shape) == 2:
return argwhere_2d(output_shape.shape, condition)
if len(condition.shape) == 3:
return argwhere_3d(output_shape.shape, condition)
if len(condition.shape) == 4:
return argwhere_4d(output_shape.shape, condition)
if len(condition.shape) == 5:
return argwhere_5d(output_shape.shape, condition)
raise ValueError("Argwhere does not support rank higher than 5")
def schedule_argwhere(outs):
"""Schedule for argwhere on cuda.
Parameters
----------
outs: Array of Tensor
The computation graph description of argwhere
in the format of an array of tensors.
Returns
-------
s: Schedule
The computation schedule for argwhere
"""
outs = [outs] if isinstance(outs, te.tensor.Tensor) else outs
s = te.create_schedule([x.op for x in outs])
scheduled_ops = []
def traverse(op):
if tag.is_injective(op.tag):
schedule_injective_from_existing(s, op.output(0))
for tensor in op.input_tensors:
if tensor.op.input_tensors and tensor.op not in scheduled_ops:
traverse(tensor.op)
scheduled_ops.append(op)
for out in outs:
traverse(out.op)
return s
| 29.561832 | 87 | 0.594278 | 2,664 | 19,363 | 4.18018 | 0.105856 | 0.025323 | 0.019397 | 0.016164 | 0.764098 | 0.747306 | 0.728807 | 0.728807 | 0.689655 | 0.689655 | 0 | 0.033495 | 0.275319 | 19,363 | 654 | 88 | 29.607034 | 0.76012 | 0.212674 | 0 | 0.648725 | 0 | 0 | 0.068725 | 0.001574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03966 | false | 0 | 0.025496 | 0 | 0.127479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e3b77a7c0c0b36b646b50f5a387aedbd8c2b9824 | 54 | py | Python | prueba.py | edujav1924/smartedu | 9dbdafbbd335a736067299fb5fc0dc8c20933690 | [
"Intel"
] | null | null | null | prueba.py | edujav1924/smartedu | 9dbdafbbd335a736067299fb5fc0dc8c20933690 | [
"Intel"
] | null | null | null | prueba.py | edujav1924/smartedu | 9dbdafbbd335a736067299fb5fc0dc8c20933690 | [
"Intel"
] | null | null | null | from playsound import playsound
playsound('file.wav')
| 18 | 31 | 0.814815 | 7 | 54 | 6.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 54 | 2 | 32 | 27 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 4 |
e3c8ce1b396de7ebdd722e3ec1f7b8c7e66e9235 | 341 | py | Python | tests/panda/panda/exceptions.py | vmware-archive/vio | f2d5511bf1bac57f9670d5384debfb89750f9873 | [
"Apache-2.0"
] | 15 | 2016-02-29T14:00:52.000Z | 2018-11-30T02:29:37.000Z | tests/panda/panda/exceptions.py | vmware-archive/vio | f2d5511bf1bac57f9670d5384debfb89750f9873 | [
"Apache-2.0"
] | null | null | null | tests/panda/panda/exceptions.py | vmware-archive/vio | f2d5511bf1bac57f9670d5384debfb89750f9873 | [
"Apache-2.0"
] | 8 | 2016-03-15T13:30:56.000Z | 2018-03-13T18:59:37.000Z | class ProvisionError(Exception):
"""Provisioning exceptions"""
class NotSupportedError(Exception):
"""Not supported exceptions"""
class NotCompletedError(Exception):
"""Not completed exceptions"""
class TimeoutError(Exception):
"""Time out exceptions"""
class NotFoundError(Exception):
"""Not Found exceptions"""
| 17.947368 | 35 | 0.715543 | 29 | 341 | 8.413793 | 0.517241 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152493 | 341 | 18 | 36 | 18.944444 | 0.844291 | 0.334311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e3d25ca920e052d7dc8418bfc24a4f3aa4f7af6d | 27 | py | Python | bad/forWrongTypePassed.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | bad/forWrongTypePassed.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | bad/forWrongTypePassed.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | for i in range("str",5) {
} | 13.5 | 25 | 0.555556 | 6 | 27 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.185185 | 27 | 2 | 26 | 13.5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e3d8a6e6061c6696793c27e0ece3287272dd6fb2 | 313 | py | Python | addon/register/__init__.py | SonuMajhi68/Cpack | 7c16cf9d21069c735a2c095905518adcb559a4a7 | [
"MIT"
] | null | null | null | addon/register/__init__.py | SonuMajhi68/Cpack | 7c16cf9d21069c735a2c095905518adcb559a4a7 | [
"MIT"
] | 3 | 2021-08-09T10:29:08.000Z | 2021-08-30T11:12:44.000Z | addon/register/__init__.py | SonuMajhi68/Cpack | 7c16cf9d21069c735a2c095905518adcb559a4a7 | [
"MIT"
] | null | null | null |
def register_addon():
from ..menu import register_menu
from ..operator import register_operator
register_menu()
register_operator()
def unregister_addon():
from ..menu import unregister_menu
from ..operator import unregister_operator
unregister_menu()
unregister_operator()
| 17.388889 | 46 | 0.728435 | 34 | 313 | 6.411765 | 0.235294 | 0.082569 | 0.119266 | 0.174312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201278 | 313 | 17 | 47 | 18.411765 | 0.872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e3debd09df4af98ce8a8273b9fe5233dba53073e | 192 | py | Python | src/resdk/utils/__init__.py | AGregorc/resolwe-bio-py | 62304e5d4c54c917575421701c6977dc63fc3a8f | [
"Apache-2.0"
] | 4 | 2016-09-28T16:00:05.000Z | 2018-08-16T16:14:10.000Z | src/resdk/utils/__init__.py | AGregorc/resolwe-bio-py | 62304e5d4c54c917575421701c6977dc63fc3a8f | [
"Apache-2.0"
] | 229 | 2016-03-28T19:41:00.000Z | 2022-03-16T15:02:15.000Z | src/resdk/utils/__init__.py | AGregorc/resolwe-bio-py | 62304e5d4c54c917575421701c6977dc63fc3a8f | [
"Apache-2.0"
] | 18 | 2016-03-10T16:11:57.000Z | 2021-06-01T10:01:49.000Z | """ReSDK utils."""
import re
def is_email(value):
"""Check if given value looks like an email address."""
email_regex = r"[^@]+@[^@]+\.[^@]+"
return re.match(email_regex, value)
| 21.333333 | 59 | 0.598958 | 26 | 192 | 4.307692 | 0.730769 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182292 | 192 | 8 | 60 | 24 | 0.713376 | 0.322917 | 0 | 0 | 0 | 0 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
e3fb104c0ae2c38c0266773acd76226d17ad3db6 | 137 | py | Python | FormacaoPython/ComandoIfElse.py | RondineleG/OwlPaper | eee64d7b0bc9a10ebfbce1d02da52039f1424e17 | [
"MIT"
] | null | null | null | FormacaoPython/ComandoIfElse.py | RondineleG/OwlPaper | eee64d7b0bc9a10ebfbce1d02da52039f1424e17 | [
"MIT"
] | null | null | null | FormacaoPython/ComandoIfElse.py | RondineleG/OwlPaper | eee64d7b0bc9a10ebfbce1d02da52039f1424e17 | [
"MIT"
] | null | null | null | numero = 42
chute = input('Digite um número:')
if chute == numero:
print('Você acertou')
else:
print('Você errou') | 19.571429 | 35 | 0.576642 | 17 | 137 | 4.647059 | 0.764706 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.284672 | 137 | 7 | 36 | 19.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54008f66d9e40d390ff6d68fd3db5bc351640b6a | 66,315 | py | Python | testing/python_script_test1_big.py | kstepanmpmg/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | testing/python_script_test1_big.py | tomzhang/mldb | a09cf2d9ca454d1966b9e49ae69f2fe6bf571494 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | testing/python_script_test1_big.py | matebestek/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | # This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
from mldb import mldb
# Test python script
print("Hello, world!")
print(mldb.script)
mldb.log(str(mldb.script))
mldb.log("Hello, world")
# There are 65k of newlines here on purpose, so the script doesn't fit within
# a pipe buffer.
| 1.004544 | 77 | 0.003483 | 54 | 66,315 | 4.277778 | 0.722222 | 0.08658 | 0.121212 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022814 | 0.996034 | 66,315 | 66,014 | 78 | 1.00456 | 0.855513 | 0.00279 | 0 | 0 | 0 | 0 | 0.198413 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5403f55e525d050233db90504923b0e7b7af7e95 | 258 | py | Python | src/regions/models.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/regions/models.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/regions/models.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.urls import reverse
class Region(models.Model):
code = models.CharField(max_length=2, unique=True)
name = models.CharField(max_length=255)
def __str__(self):
return f"{self.code} : {self.name}"
| 23.454545 | 54 | 0.705426 | 37 | 258 | 4.756757 | 0.648649 | 0.113636 | 0.204545 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.178295 | 258 | 10 | 55 | 25.8 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.096899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5407ab5db32ba40d123e0a576300c0c806157922 | 251 | py | Python | GetUndownloadMags.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | 1 | 2017-05-03T12:18:31.000Z | 2017-05-03T12:18:31.000Z | GetUndownloadMags.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | null | null | null | GetUndownloadMags.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | 1 | 2020-10-29T04:00:04.000Z | 2020-10-29T04:00:04.000Z | import index.MagnetIO as magnetIO
from engine import clpig as clpig
#magnetIO.getMagnetFromDB()
magnetIO.getUndownloadMagnets()
# 拷贝当前没有下载的magnet到t_wrong_magnets
#magnetIO.copyWrongMagnets()
# 测试代码
#print(clpig.readMagnet("RCTD-035", "")) | 22.818182 | 40 | 0.772908 | 26 | 251 | 7.384615 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.123506 | 251 | 11 | 40 | 22.818182 | 0.859091 | 0.513944 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
540dea7bee162822b160687e7194312ffe6105f6 | 84 | py | Python | template/template.py | cgarjun/pathresolver | ef6b111196f4c78b735c8667c4d529f6c9e017e3 | [
"MIT"
] | null | null | null | template/template.py | cgarjun/pathresolver | ef6b111196f4c78b735c8667c4d529f6c9e017e3 | [
"MIT"
] | null | null | null | template/template.py | cgarjun/pathresolver | ef6b111196f4c78b735c8667c4d529f6c9e017e3 | [
"MIT"
] | null | null | null |
all_show_root = '/User/arjun/nirvana/projects'
show_root = all_show_root+'/{show}'
| 21 | 46 | 0.75 | 13 | 84 | 4.461538 | 0.538462 | 0.413793 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 84 | 3 | 47 | 28 | 0.753247 | 0 | 0 | 0 | 0 | 0 | 0.421687 | 0.337349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
582d50abc3c29e4dd91138ab5f82e4dfa2414a26 | 892 | py | Python | jinjamator/plugins/content/jm/environment.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | null | null | null | jinjamator/plugins/content/jm/environment.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | null | null | null | jinjamator/plugins/content/jm/environment.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | null | null | null | import logging
import os
log = logging.getLogger()
def site_path():
return _jinjamator._configuration.get("jinjamator_site_path", None)
def jinjamator_base_directory():
return _jinjamator._configuration.get("jinjamator_base_directory", None)
def jinjamator_global_tasks_base_dirs():
return _jinjamator._configuration.get("global_tasks_base_dirs", None)
def python_requirements():
path = os.path.join(jinjamator_base_directory(), "requirements.txt")
with open(path, "r") as fh:
return fh.read().split("\n")
def get(var, default=None):
"""
jinja2 helper function to access the os environment
"""
return os.environ.get(var, default)
def pop(var, default=None):
"""
jinja2 helper function to access the os environment
"""
try:
data = os.environ.pop(var)
except KeyError:
data = default
return data
| 21.238095 | 76 | 0.696188 | 112 | 892 | 5.339286 | 0.401786 | 0.080268 | 0.145485 | 0.160535 | 0.334448 | 0.19398 | 0.19398 | 0.19398 | 0.19398 | 0.19398 | 0 | 0.002782 | 0.193946 | 892 | 41 | 77 | 21.756098 | 0.828929 | 0.115471 | 0 | 0 | 0 | 0 | 0.113456 | 0.062005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.142857 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
582fcb4d908fd13bf7497a3bfdb3635f9095bbec | 404 | py | Python | ag_data/admin.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 5 | 2020-05-05T20:05:12.000Z | 2020-11-10T23:57:44.000Z | ag_data/admin.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 38 | 2020-05-06T23:30:13.000Z | 2020-12-01T15:07:08.000Z | ag_data/admin.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 10 | 2020-05-04T17:08:07.000Z | 2020-05-23T17:35:47.000Z | from django.contrib import admin # noqa f401
from .models import (
AGVenue,
AGEvent,
AGActiveEvent,
AGSensorType,
AGSensor,
AGMeasurement,
ErrorLog,
)
admin.site.register(AGVenue)
admin.site.register(AGEvent)
admin.site.register(AGSensorType)
admin.site.register(AGSensor)
admin.site.register(AGMeasurement)
admin.site.register(ErrorLog)
admin.site.register(AGActiveEvent)
| 20.2 | 45 | 0.759901 | 45 | 404 | 6.822222 | 0.377778 | 0.205212 | 0.387622 | 0.162866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.141089 | 404 | 19 | 46 | 21.263158 | 0.876081 | 0.022277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
583296c6d5c2d15cda098aa17ed85f49e3654cb4 | 45 | py | Python | fancycmd/__init__.py | anyms/fancycmd | cbbbacd175a769b451b79e73b3354db527374e81 | [
"MIT"
] | 1 | 2019-05-27T09:32:46.000Z | 2019-05-27T09:32:46.000Z | fancycmd/__init__.py | anyms/fancycmd | cbbbacd175a769b451b79e73b3354db527374e81 | [
"MIT"
] | null | null | null | fancycmd/__init__.py | anyms/fancycmd | cbbbacd175a769b451b79e73b3354db527374e81 | [
"MIT"
] | null | null | null | from .cmd import Cmd
__version__ = "0.0.1"
| 15 | 22 | 0.666667 | 8 | 45 | 3.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.2 | 45 | 2 | 23 | 22.5 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
584c3ebfe62fc4d2d9f6b38998d7954e16674646 | 310 | py | Python | src/models/train_best_bdt.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | src/models/train_best_bdt.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | src/models/train_best_bdt.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | '''
Trains a boosting tree
'''
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.ensemble import RandomForestClassifier
from models.train_bdt import run_BDT
run_BDT(RandomForestClassifier, 2, 50, 1, save=True, test=False)
| 25.833333 | 64 | 0.76129 | 36 | 310 | 6.472222 | 0.611111 | 0.141631 | 0.16309 | 0.214592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015686 | 0.177419 | 310 | 12 | 65 | 25.833333 | 0.898039 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
58854140c4e254f7f0007f15ea555d86ae1e4842 | 249 | py | Python | proyectosclases/pruebas/turtle_square.py | raysakarina/raysakarina | c7f870d7665ad33837c9e8f1dc67e25c96ed8cfb | [
"CC-BY-3.0"
] | null | null | null | proyectosclases/pruebas/turtle_square.py | raysakarina/raysakarina | c7f870d7665ad33837c9e8f1dc67e25c96ed8cfb | [
"CC-BY-3.0"
] | null | null | null | proyectosclases/pruebas/turtle_square.py | raysakarina/raysakarina | c7f870d7665ad33837c9e8f1dc67e25c96ed8cfb | [
"CC-BY-3.0"
] | null | null | null | import turtle
tortuga = turtle.Turtle()
tortuga.forward(50)
tortuga.right(90) # Rotate clockwise by 90 degrees
tortuga.forward(50)
tortuga.right(90)
tortuga.forward(50)
tortuga.right(90)
tortuga.forward(50)
tortuga.right(90)
turtle.done()
| 13.833333 | 54 | 0.751004 | 36 | 249 | 5.194444 | 0.333333 | 0.299465 | 0.342246 | 0.491979 | 0.641711 | 0.641711 | 0.481283 | 0.481283 | 0.481283 | 0.481283 | 0 | 0.082192 | 0.120482 | 249 | 17 | 55 | 14.647059 | 0.77169 | 0.120482 | 0 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
5887a48853d2f3a0d23383e4e10af18c0f0764fc | 90 | py | Python | niftynet/network/__init__.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 1,403 | 2017-08-30T11:49:45.000Z | 2022-03-31T11:44:05.000Z | niftynet/network/__init__.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 360 | 2017-10-03T15:33:53.000Z | 2021-03-17T06:27:38.000Z | niftynet/network/__init__.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 464 | 2017-09-13T20:56:32.000Z | 2022-02-11T20:33:47.000Z | """
.. module:: niftynet.network
:synopsis: Neural network (re-)implementations.
"""
| 12.857143 | 50 | 0.655556 | 8 | 90 | 7.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 90 | 6 | 51 | 15 | 0.776316 | 0.877778 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | 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 | 4 |
58934f7b209239421a0896486c8ad9d5dc00cfac | 4,017 | py | Python | tests/test_mcup.py | detrin/MCUP | 2adbae2cf7701e12e0f48f0a6a9d93ced4c7867c | [
"MIT"
] | 3 | 2019-11-18T15:00:57.000Z | 2020-11-17T19:17:18.000Z | tests/test_mcup.py | detrin/MCUP | 2adbae2cf7701e12e0f48f0a6a9d93ced4c7867c | [
"MIT"
] | 1 | 2019-11-18T15:01:30.000Z | 2019-11-19T20:07:25.000Z | tests/test_mcup.py | detrin/MCUP | 2adbae2cf7701e12e0f48f0a6a9d93ced4c7867c | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from mcup import Measurement
from mcup import DataGenerator
from mcup import parameter_error_estimator
from mcup.utils import local_numpy_seed
class TestMeasurement(unittest.TestCase):
def test_set_data(self):
def linear_fun(x, c):
return c[0] * x + c[1]
data_len = 10
boundaries = [1.0, 10.0]
params = [1, 0]
x_err = 0.1 * np.ones(data_len)
y_err = 0.1 * np.ones(data_len)
datagen = DataGenerator(linear_fun, data_len, boundaries, params=params)
x_data = datagen.add_noise_x(const_err=x_err)
y_data = datagen.add_noise_y(const_err=y_err)
measurement = Measurement(x=None, y=y_data)
measurement = Measurement(x=x_data, y=y_data)
def test_init(self):
def linear_fun(x, c):
return c[0] * x + c[1]
data_len = 10
boundaries = [1.0, 10.0]
params = [1, 0]
x_err = 0.1 * np.ones(data_len)
y_err = 0.1 * np.ones(data_len)
datagen = DataGenerator(linear_fun, data_len, boundaries, params=params)
x_data = datagen.add_noise_x(const_err=x_err)
y_data = datagen.add_noise_y(const_err=y_err)
measurement = Measurement()
with self.assertRaises(TypeError) as context:
measurement = Measurement(x=x_data, y=y_data)
measurement.set_data(x=None, y=y_data)
with self.assertRaises(TypeError) as context:
measurement = Measurement(x=5, y=y_data)
with self.assertRaises(TypeError) as context:
measurement = Measurement(x=[0, 1], y=[0, 1, 2])
with self.assertRaises(TypeError) as context:
measurement = Measurement(x=[[0, 0], [1, 1]], y=[0, 1], x_err=[0.1, 0.1])
def test_set_function(self):
def linear_fun(x, c):
return c[0] * x + c[1]
data_len = 10
boundaries = [1.0, 10.0]
params = [1, 0]
x_err = 0.1 * np.ones(data_len)
y_err = 0.1 * np.ones(data_len)
datagen = DataGenerator(linear_fun, data_len, boundaries, params=params)
x_data = datagen.add_noise_x(const_err=x_err)
y_data = datagen.add_noise_y(const_err=y_err)
measurement = Measurement(x=x_data, y=y_data)
with self.assertRaises(TypeError) as context:
measurement.set_function(5, params)
with self.assertRaises(TypeError) as context:
measurement.set_function(linear_fun, 5)
self.assertTrue(measurement.set_function(linear_fun, params))
def test_evaluate_params(self):
def linear_fun(x, c):
return c[0] * x + c[1]
with local_numpy_seed(42):
data_len = 10
boundaries = [1.0, 10.0]
params = [1, 0]
x_err = 0.1 * np.ones((data_len))
y_err = 0.1 * np.ones((data_len))
datagen = DataGenerator(linear_fun, data_len, boundaries, params=params)
x_data = datagen.add_noise_x(const_err=x_err)
y_data = datagen.add_noise_y(const_err=y_err)
measurement = Measurement(x=x_data, y=y_data, y_err=y_err, x_err=x_err)
with self.assertRaises(RuntimeError) as context:
measurement.evaluate_params()
measurement.set_function(linear_fun, params)
params_mean, params_std = measurement.evaluate_params(
iter_num=10, num_diff=False
)
self.assertTrue(
np.allclose(params_mean, np.array([0.99351374, -0.08966872]))
)
self.assertTrue(np.allclose(params_std, np.array([0.01823801, 0.09489745])))
params_mean, params_std = measurement.evaluate_params(
iter_num=10, num_diff=True
)
# self.assertTrue(
# np.allclose(params_mean, np.array([0.99172421, -0.05093282]))
# )
# self.assertTrue(np.allclose(params_std, np.array([0.012989, 0.08706437])))
| 34.042373 | 88 | 0.603435 | 556 | 4,017 | 4.136691 | 0.127698 | 0.048696 | 0.019565 | 0.024348 | 0.787826 | 0.777391 | 0.745217 | 0.745217 | 0.725652 | 0.596087 | 0 | 0.053715 | 0.286283 | 4,017 | 117 | 89 | 34.333333 | 0.748518 | 0.039582 | 0 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0.095238 | false | 0 | 0.071429 | 0.047619 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
543eb6dac1c277a9fd8e3fcfef2124e54cb73020 | 225 | py | Python | 15-if-statements-and-comparisons.py | davwheat-bhasvic/btec-summer-work | fbf7fed6cb852fe72cbc55bb571aafbf7d34e13c | [
"MIT"
] | null | null | null | 15-if-statements-and-comparisons.py | davwheat-bhasvic/btec-summer-work | fbf7fed6cb852fe72cbc55bb571aafbf7d34e13c | [
"MIT"
] | null | null | null | 15-if-statements-and-comparisons.py | davwheat-bhasvic/btec-summer-work | fbf7fed6cb852fe72cbc55bb571aafbf7d34e13c | [
"MIT"
] | null | null | null | def max_num(n1, n2, n3):
# 2x less comparisons than FCC's version
max1 = n1 if n1 >= n2 else n2
return n3 if n3 >= max1 else max1
print(max_num(10, 20, 30))
print(max_num(10, 30, 20))
print(max_num(30, 20, 10))
| 22.5 | 44 | 0.64 | 45 | 225 | 3.111111 | 0.466667 | 0.171429 | 0.235714 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 0.226667 | 225 | 9 | 45 | 25 | 0.626437 | 0.168889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
545e6e966bb52cea189aa6eaafd5e44019bc0aca | 665 | py | Python | actions/models.py | khicks01/assistant-bot-kyle | 2e7cbf06f8437994e3c3d095a490fb145e272ba8 | [
"MIT"
] | null | null | null | actions/models.py | khicks01/assistant-bot-kyle | 2e7cbf06f8437994e3c3d095a490fb145e272ba8 | [
"MIT"
] | null | null | null | actions/models.py | khicks01/assistant-bot-kyle | 2e7cbf06f8437994e3c3d095a490fb145e272ba8 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class SlackPost(models.Model):
user_request = models.TextField()
def __str__(self):
return str(self.user_request)
class AnswersDatabase(models.Model):
context = models.TextField()
keywords = models.TextField()
resource = models.TextField()
def __str__(self):
return str(self.context)
def __len__(self):
return len(self.context)
class Topics(models.Model):
context = models.TextField()
aliases = models.TextField()
def __str__(self):
return str(self.context)
def __len__(self):
return len(self.context)
| 22.931034 | 37 | 0.655639 | 76 | 665 | 5.447368 | 0.328947 | 0.217391 | 0.130435 | 0.152174 | 0.613527 | 0.454106 | 0.454106 | 0.454106 | 0.362319 | 0.362319 | 0 | 0 | 0.240602 | 665 | 29 | 38 | 22.931034 | 0.819802 | 0.03609 | 0 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5463fb81f1af07f967d079a382fc8dd29b4fcd2f | 36 | py | Python | CP/filename.py | nitinvbharti/RoadRunner | 92de7761a103f3bdcd4f2fa0e0281a8b0e49c649 | [
"BSD-3-Clause"
] | null | null | null | CP/filename.py | nitinvbharti/RoadRunner | 92de7761a103f3bdcd4f2fa0e0281a8b0e49c649 | [
"BSD-3-Clause"
] | null | null | null | CP/filename.py | nitinvbharti/RoadRunner | 92de7761a103f3bdcd4f2fa0e0281a8b0e49c649 | [
"BSD-3-Clause"
] | 3 | 2019-02-08T15:13:27.000Z | 2019-02-25T14:08:22.000Z |
class critical_section:
tid = 0 | 12 | 23 | 0.694444 | 5 | 36 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.25 | 36 | 3 | 24 | 12 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
54932f9d09b0198dd5067bea0d143d14e46b096f | 177 | py | Python | plot.py | chamhoo/FM-FFM | adae51569d1647332896b9bb321fb7b5967980db | [
"MIT"
] | null | null | null | plot.py | chamhoo/FM-FFM | adae51569d1647332896b9bb321fb7b5967980db | [
"MIT"
] | null | null | null | plot.py | chamhoo/FM-FFM | adae51569d1647332896b9bb321fb7b5967980db | [
"MIT"
] | null | null | null | import psutil
import os
def memory(string):
info = psutil.virtual_memory()
print(string, psutil.Process(os.getpid()).memory_info().rss/10**9, ' / ', info.total/10**9)
| 22.125 | 95 | 0.677966 | 26 | 177 | 4.538462 | 0.576923 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.141243 | 177 | 7 | 96 | 25.285714 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5497b346402ae1df6aae9e37402a71dde3c6c0ce | 51 | py | Python | src/__init__.py | MarkHallett/mh | 0be14875940f8d53003a430a322818f7e6a6669a | [
"MIT"
] | 1 | 2019-03-13T23:45:07.000Z | 2019-03-13T23:45:07.000Z | src/__init__.py | MarkHallett/mh | 0be14875940f8d53003a430a322818f7e6a6669a | [
"MIT"
] | null | null | null | src/__init__.py | MarkHallett/mh | 0be14875940f8d53003a430a322818f7e6a6669a | [
"MIT"
] | null | null | null | '''
Documentation regarding the mh package...
'''
| 10.2 | 41 | 0.666667 | 5 | 51 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 4 | 42 | 12.75 | 0.790698 | 0.803922 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | 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 | 4 |
54a23733bb751a87de7296ecd0e1ebf87e9880b8 | 9,995 | py | Python | panns_inference/models.py | Omar-AE/panns_inference | 523bceee90fa62244caa8232ed9a6c30e3a7a927 | [
"MIT"
] | null | null | null | panns_inference/models.py | Omar-AE/panns_inference | 523bceee90fa62244caa8232ed9a6c30e3a7a927 | [
"MIT"
] | null | null | null | panns_inference/models.py | Omar-AE/panns_inference | 523bceee90fa62244caa8232ed9a6c30e3a7a927 | [
"MIT"
] | null | null | null | """This models.py contains selected models from:
https://github.com/qiuqiangkong/audioset_tagging_cnn/blob/master/pytorch/models.py
"""
import os
import sys
import math
import time
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from torch.nn.parameter import Parameter
from torchlibrosa.stft import Spectrogram, LogmelFilterBank
from torchlibrosa.augmentation import SpecAugmentation
from .pytorch_utils import do_mixup, interpolate, pad_framewise_output
def init_layer(layer):
"""Initialize a Linear or Convolutional layer. """
nn.init.xavier_uniform_(layer.weight)
if hasattr(layer, 'bias'):
if layer.bias is not None:
layer.bias.data.fill_(0.)
def init_bn(bn):
"""Initialize a Batchnorm layer. """
bn.bias.data.fill_(0.)
bn.weight.data.fill_(1.)
class ConvBlock(nn.Module):
def __init__(self, in_channels, out_channels):
super(ConvBlock, self).__init__()
self.conv1 = nn.Conv2d(in_channels=in_channels,
out_channels=out_channels,
kernel_size=(3, 3), stride=(1, 1),
padding=(1, 1), bias=False)
self.conv2 = nn.Conv2d(in_channels=out_channels,
out_channels=out_channels,
kernel_size=(3, 3), stride=(1, 1),
padding=(1, 1), bias=False)
self.bn1 = nn.BatchNorm2d(out_channels)
self.bn2 = nn.BatchNorm2d(out_channels)
self.init_weight()
def init_weight(self):
init_layer(self.conv1)
init_layer(self.conv2)
init_bn(self.bn1)
init_bn(self.bn2)
def forward(self, input, pool_size=(2, 2), pool_type='avg'):
x = input
x = F.relu_(self.bn1(self.conv1(x)))
x = F.relu_(self.bn2(self.conv2(x)))
if pool_type == 'max':
x = F.max_pool2d(x, kernel_size=pool_size)
elif pool_type == 'avg':
x = F.avg_pool2d(x, kernel_size=pool_size)
elif pool_type == 'avg+max':
x1 = F.avg_pool2d(x, kernel_size=pool_size)
x2 = F.max_pool2d(x, kernel_size=pool_size)
x = x1 + x2
else:
raise Exception('Incorrect argument!')
return x
class Cnn14(nn.Module):
def __init__(self, sample_rate, window_size, hop_size, mel_bins, fmin,
fmax, classes_num):
super(Cnn14, self).__init__()
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None
# Spectrogram extractor
self.spectrogram_extractor = Spectrogram(n_fft=window_size, hop_length=hop_size,
win_length=window_size, window=window, center=center, pad_mode=pad_mode,
freeze_parameters=True)
# Logmel feature extractor
self.logmel_extractor = LogmelFilterBank(sr=sample_rate, n_fft=window_size,
n_mels=mel_bins, fmin=fmin, fmax=fmax, ref=ref, amin=amin, top_db=top_db,
freeze_parameters=True)
# Spec augmenter
self.spec_augmenter = SpecAugmentation(time_drop_width=64, time_stripes_num=2,
freq_drop_width=8, freq_stripes_num=2)
self.bn0 = nn.BatchNorm2d(64)
self.conv_block1 = ConvBlock(in_channels=1, out_channels=64)
self.conv_block2 = ConvBlock(in_channels=64, out_channels=128)
self.conv_block3 = ConvBlock(in_channels=128, out_channels=256)
self.conv_block4 = ConvBlock(in_channels=256, out_channels=512)
self.conv_block5 = ConvBlock(in_channels=512, out_channels=1024)
self.conv_block6 = ConvBlock(in_channels=1024, out_channels=2048)
self.fc1 = nn.Linear(2048, 2048, bias=True)
self.fc_audioset = nn.Linear(2048, classes_num, bias=True)
self.init_weight()
def init_weight(self):
init_bn(self.bn0)
init_layer(self.fc1)
init_layer(self.fc_audioset)
def forward(self, input, mixup_lambda=None):
"""
Input: (batch_size, data_length)"""
x = self.spectrogram_extractor(input) # (batch_size, 1, time_steps, freq_bins)
x = self.logmel_extractor(x) # (batch_size, 1, time_steps, mel_bins)
x = x.transpose(1, 3)
x = self.bn0(x)
x = x.transpose(1, 3)
if self.training:
x = self.spec_augmenter(x)
# Mixup on spectrogram
if self.training and mixup_lambda is not None:
x = do_mixup(x, mixup_lambda)
x = self.conv_block1(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block2(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block3(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block4(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block5(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block6(x, pool_size=(1, 1), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = torch.mean(x, dim=3)
(x1, _) = torch.max(x, dim=2)
x2 = torch.mean(x, dim=2)
x = x1 + x2
x = F.dropout(x, p=0.5, training=self.training)
x = F.relu_(self.fc1(x))
embedding = F.dropout(x, p=0.5, training=self.training)
clipwise_output = torch.sigmoid(self.fc_audioset(x))
output_dict = {'clipwise_output': clipwise_output, 'embedding': embedding}
return output_dict
class Cnn14_DecisionLevelMax(nn.Module):
def __init__(self, sample_rate, window_size, hop_size, mel_bins, fmin,
fmax, classes_num):
super(Cnn14_DecisionLevelMax, self).__init__()
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None
self.interpolate_ratio = 32 # Downsampled ratio
# Spectrogram extractor
self.spectrogram_extractor = Spectrogram(n_fft=window_size, hop_length=hop_size,
win_length=window_size, window=window, center=center, pad_mode=pad_mode,
freeze_parameters=True)
# Logmel feature extractor
self.logmel_extractor = LogmelFilterBank(sr=sample_rate, n_fft=window_size,
n_mels=mel_bins, fmin=fmin, fmax=fmax, ref=ref, amin=amin, top_db=top_db,
freeze_parameters=True)
# Spec augmenter
self.spec_augmenter = SpecAugmentation(time_drop_width=64, time_stripes_num=2,
freq_drop_width=8, freq_stripes_num=2)
self.bn0 = nn.BatchNorm2d(64)
self.conv_block1 = ConvBlock(in_channels=1, out_channels=64)
self.conv_block2 = ConvBlock(in_channels=64, out_channels=128)
self.conv_block3 = ConvBlock(in_channels=128, out_channels=256)
self.conv_block4 = ConvBlock(in_channels=256, out_channels=512)
self.conv_block5 = ConvBlock(in_channels=512, out_channels=1024)
self.conv_block6 = ConvBlock(in_channels=1024, out_channels=2048)
self.fc1 = nn.Linear(2048, 2048, bias=True)
self.fc_audioset = nn.Linear(2048, classes_num, bias=True)
self.init_weight()
def init_weight(self):
init_bn(self.bn0)
init_layer(self.fc1)
init_layer(self.fc_audioset)
def forward(self, input, mixup_lambda=None):
"""
Input: (batch_size, data_length)"""
x = self.spectrogram_extractor(input) # (batch_size, 1, time_steps, freq_bins)
x = self.logmel_extractor(x) # (batch_size, 1, time_steps, mel_bins)
frames_num = x.shape[2]
x = x.transpose(1, 3)
x = self.bn0(x)
x = x.transpose(1, 3)
if self.training:
x = self.spec_augmenter(x)
# Mixup on spectrogram
if self.training and mixup_lambda is not None:
x = do_mixup(x, mixup_lambda)
x = self.conv_block1(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block2(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block3(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block4(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block5(x, pool_size=(2, 2), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = self.conv_block6(x, pool_size=(1, 1), pool_type='avg')
x = F.dropout(x, p=0.2, training=self.training)
x = torch.mean(x, dim=3)
x1 = F.max_pool1d(x, kernel_size=3, stride=1, padding=1)
x2 = F.avg_pool1d(x, kernel_size=3, stride=1, padding=1)
x = x1 + x2
x = F.dropout(x, p=0.5, training=self.training)
x = x.transpose(1, 2)
x = F.relu_(self.fc1(x))
x = F.dropout(x, p=0.5, training=self.training)
segmentwise_output = torch.sigmoid(self.fc_audioset(x))
(clipwise_output, _) = torch.max(segmentwise_output, dim=1)
# Get framewise output
framewise_output = interpolate(segmentwise_output, self.interpolate_ratio)
framewise_output = pad_framewise_output(framewise_output, frames_num)
output_dict = {'framewise_output': framewise_output,
'clipwise_output': clipwise_output}
return output_dict | 36.746324 | 89 | 0.611006 | 1,377 | 9,995 | 4.217139 | 0.137981 | 0.033064 | 0.035819 | 0.027553 | 0.742552 | 0.730153 | 0.722921 | 0.711555 | 0.690374 | 0.673498 | 0 | 0.041173 | 0.273437 | 9,995 | 272 | 90 | 36.746324 | 0.758469 | 0.063132 | 0 | 0.649215 | 0 | 0 | 0.016332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057592 | false | 0 | 0.073298 | 0 | 0.162304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54af978b565323e41995c6aefbf988d7bad4710f | 94 | py | Python | parapred-runner.py | lewis-chinery/parapred | 6c233b8e47b4d755d2a5b7825075a1cb496105d3 | [
"MIT"
] | 41 | 2017-09-08T17:22:46.000Z | 2022-03-04T23:00:08.000Z | parapred-runner.py | lewis-chinery/parapred | 6c233b8e47b4d755d2a5b7825075a1cb496105d3 | [
"MIT"
] | 8 | 2018-07-05T11:36:45.000Z | 2022-02-09T23:26:44.000Z | parapred-runner.py | lewis-chinery/parapred | 6c233b8e47b4d755d2a5b7825075a1cb496105d3 | [
"MIT"
] | 17 | 2018-09-13T05:02:29.000Z | 2022-02-13T10:41:21.000Z | #!/usr/bin/env python
from parapred.parapred import main
if __name__=="__main__":
main()
| 15.666667 | 34 | 0.712766 | 13 | 94 | 4.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 94 | 5 | 35 | 18.8 | 0.7375 | 0.212766 | 0 | 0 | 0 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 4 |
54b208d332ed0fe025fbe1be2c0b9fb7530569c9 | 8,357 | py | Python | apps/materialPlanning/migrations/0002_auto_20211024_1816.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | apps/materialPlanning/migrations/0002_auto_20211024_1816.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | apps/materialPlanning/migrations/0002_auto_20211024_1816.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-10-24 10:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('materialPlanning', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Calibration',
new_name='calibration',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Currency',
new_name='currency',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Dimension',
new_name='dimension',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Drawing',
new_name='drawing',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='EngineerUser',
new_name='engineer_user',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='EquipmentName',
new_name='equipment_name',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='ImportanceLevel',
new_name='importance_level',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='InstallationQuantity',
new_name='installation_quantity',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='ManufacturerModel',
new_name='manufacturer_model',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='ManufacturerName',
new_name='manufacturer_name',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='ManufacturerPartNumber',
new_name='manufacturer_part_number',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='MaterialNumber',
new_name='material_number',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='PartSpecialTreatment',
new_name='part_special_treatment',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='PlantTechCode',
new_name='plant_tech_code',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='PurchaseType',
new_name='purchase_type',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Repairable',
new_name='repairable',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='StorageLocation',
new_name='storage_location',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='Unit',
new_name='unit',
),
migrations.RenameField(
model_name='materialplanningmodel',
old_name='UnitPrice',
new_name='unit_price',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='GICategory',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='HandoverStock',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='MaxStock',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='MinStock',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='PartDescriptionEN',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='PartDescriptionZh',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierCode',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierContactPerson',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierContactPhone',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierEmail',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierModel',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierName',
),
migrations.RemoveField(
model_name='materialplanningmodel',
name='SupplierPartNumber',
),
migrations.AddField(
model_name='materialplanningmodel',
name='gi_category',
field=models.CharField(default=None, help_text='gi_category', max_length=100, null=True, verbose_name='GI类别'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='handover_stock',
field=models.CharField(default=None, help_text='Handover Stock', max_length=100, null=True, verbose_name='初始移交库存'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='max_stock',
field=models.CharField(default=None, help_text='Max Stock', max_length=100, null=True, verbose_name='最大库存量'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='min_stock',
field=models.CharField(default=None, help_text='Min Stock', max_length=100, null=True, verbose_name='安全库存'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='part_description_en',
field=models.CharField(default=None, help_text='Part Description EN', max_length=100, null=True, verbose_name='零件描述(英文)'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='part_description_zh',
field=models.CharField(default=None, help_text='Part Description Zh', max_length=100, null=True, verbose_name='零件描述(中文)'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_code',
field=models.CharField(default=None, help_text='Supplier Code', max_length=100, null=True, verbose_name='供应商编码'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_contact_person',
field=models.CharField(default=None, help_text='Supplier Contact Person', max_length=100, null=True, verbose_name='供应商联系人'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_contact_phone',
field=models.CharField(default=None, help_text='Supplier Contact Phone', max_length=100, null=True, verbose_name='供应商联系电话'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_email',
field=models.CharField(default=None, help_text='Supplier Email', max_length=100, null=True, verbose_name='供应商邮箱'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_model',
field=models.CharField(default=None, help_text='Supplier Model', max_length=100, null=True, verbose_name='供应商的规格型号'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_name',
field=models.CharField(default=None, help_text='Supplier Name', max_length=100, null=True, verbose_name='供应商名称'),
),
migrations.AddField(
model_name='materialplanningmodel',
name='supplier_part_number',
field=models.CharField(default=None, help_text='Supplier Part Number', max_length=100, null=True, verbose_name='供应商的订货号'),
),
]
| 36.977876 | 136 | 0.593275 | 680 | 8,357 | 7.058824 | 0.180882 | 0.084375 | 0.28125 | 0.184167 | 0.762708 | 0.762708 | 0.570417 | 0.266875 | 0.045 | 0 | 0 | 0.009935 | 0.301424 | 8,357 | 225 | 137 | 37.142222 | 0.812264 | 0.005385 | 0 | 0.616438 | 1 | 0 | 0.257882 | 0.132371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.027397 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54b4cc28c9a817cfb3d7e8d048d28f95ef3e0901 | 116 | py | Python | data.py | alxyok/darcy | b66dbe8aca78e03902346e050bcb293fea0a9442 | [
"MIT"
] | null | null | null | data.py | alxyok/darcy | b66dbe8aca78e03902346e050bcb293fea0a9442 | [
"MIT"
] | null | null | null | data.py | alxyok/darcy | b66dbe8aca78e03902346e050bcb293fea0a9442 | [
"MIT"
] | null | null | null | import jax.numpy as jnp
def gaussian_random_field(alpha, tau, s):
xi = jnp.random.nultivariate_normal(42, | 23.2 | 44 | 0.724138 | 18 | 116 | 4.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.181034 | 116 | 5 | 44 | 23.2 | 0.831579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
49aec3f48a4cd5891b343d6dfd4ec6b93e9e5557 | 87 | py | Python | wokkel/test/__init__.py | Gandi/wokkel | 74631b43f5016ac32443468fd608a9baa1ecce39 | [
"MIT"
] | null | null | null | wokkel/test/__init__.py | Gandi/wokkel | 74631b43f5016ac32443468fd608a9baa1ecce39 | [
"MIT"
] | null | null | null | wokkel/test/__init__.py | Gandi/wokkel | 74631b43f5016ac32443468fd608a9baa1ecce39 | [
"MIT"
] | null | null | null | # Copyright (c) Ralph Meijer.
# See LICENSE for details.
"""
Tests for L{wokkel}.
"""
| 12.428571 | 29 | 0.643678 | 12 | 87 | 4.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 87 | 6 | 30 | 14.5 | 0.788732 | 0.850575 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | 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 | 4 |
49c9814ebdea1fe948586e33d70a02f6c675c672 | 38 | py | Python | projects/hi.py | SilverBlaze109/VAMPY2017 | 68197544009aebc494b640b5d266c97ad6331c00 | [
"MIT"
] | null | null | null | projects/hi.py | SilverBlaze109/VAMPY2017 | 68197544009aebc494b640b5d266c97ad6331c00 | [
"MIT"
] | null | null | null | projects/hi.py | SilverBlaze109/VAMPY2017 | 68197544009aebc494b640b5d266c97ad6331c00 | [
"MIT"
] | null | null | null |
i = str( 1 - 10)
print("Hello" * i)
| 7.6 | 18 | 0.473684 | 7 | 38 | 2.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.289474 | 38 | 4 | 19 | 9.5 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
49d3e3d420cdf8eac619e3f4c01fefe98b9409ad | 254 | py | Python | aioqiwi/terminals/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 33 | 2019-05-26T09:31:29.000Z | 2021-11-26T12:38:01.000Z | aioqiwi/terminals/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 15 | 2019-05-22T11:55:05.000Z | 2020-06-17T17:48:34.000Z | aioqiwi/terminals/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 12 | 2019-06-02T17:16:54.000Z | 2021-03-21T11:57:29.000Z | from ..core.tooling.htstrings import HeadTailString
class TerminalsURL(HeadTailString):
__head__ = "https://edge.qiwi.com/"
class urls:
base = TerminalsURL("locator/v3/nearest/clusters")
ttp_groups = TerminalsURL("locator/v3/ttp-groups")
| 23.090909 | 54 | 0.740157 | 29 | 254 | 6.310345 | 0.724138 | 0.20765 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.129921 | 254 | 10 | 55 | 25.4 | 0.819005 | 0 | 0 | 0 | 0 | 0 | 0.275591 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
49e70a4b9fc346284c0878a08039b2ae5aa15908 | 181 | py | Python | modules_external/car.py | smanisha92/python101 | 797a80459ce9b2345cd51c614072f0ee633d3159 | [
"MIT"
] | null | null | null | modules_external/car.py | smanisha92/python101 | 797a80459ce9b2345cd51c614072f0ee633d3159 | [
"MIT"
] | null | null | null | modules_external/car.py | smanisha92/python101 | 797a80459ce9b2345cd51c614072f0ee633d3159 | [
"MIT"
] | null | null | null | """
This is our own module which does not exist in python builtin library
"""
def info(make, model):
print("Make of the car: " + make)
print("Model of the car: " + model)
| 20.111111 | 69 | 0.646409 | 29 | 181 | 4.034483 | 0.724138 | 0.08547 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232044 | 181 | 8 | 70 | 22.625 | 0.841727 | 0.381215 | 0 | 0 | 0 | 0 | 0.336538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.666667 | 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 | 0 | 0 | 0 | 1 | 0 | 4 |
3f919733b20ed57ad76c910fd463f529cabfb1ec | 469 | py | Python | test.py | SimonGreenhill/abvdoutliers | 4bac7b36793d2b5547c46c9c5b1f357d5c7c1213 | [
"CC-BY-4.0"
] | 3 | 2021-11-23T14:29:13.000Z | 2022-01-20T13:54:07.000Z | test.py | SimonGreenhill/abvdoutliers | 4bac7b36793d2b5547c46c9c5b1f357d5c7c1213 | [
"CC-BY-4.0"
] | 28 | 2021-08-24T09:14:01.000Z | 2022-02-08T00:27:21.000Z | test.py | SimonGreenhill/abvdoutliers | 4bac7b36793d2b5547c46c9c5b1f357d5c7c1213 | [
"CC-BY-4.0"
] | 1 | 2021-11-23T14:45:50.000Z | 2021-11-23T14:45:50.000Z | def test_valid(cldf_dataset, cldf_logger):
assert cldf_dataset.validate(log=cldf_logger)
# should be 210 items
def test_parameters(cldf_dataset):
assert len(list(cldf_dataset["ParameterTable"])) == 210
## test we have some languages
#def test_languages(cldf_dataset):
# assert len(list(cldf_dataset["LanguageTable"])) == 417
#
#
## test we have some cognates
#def test_cognates(cldf_dataset):
# assert len(list(cldf_dataset["CognateTable"])) == 78602
| 26.055556 | 60 | 0.744136 | 64 | 469 | 5.234375 | 0.40625 | 0.262687 | 0.152239 | 0.179104 | 0.313433 | 0.313433 | 0.313433 | 0 | 0 | 0 | 0 | 0.034398 | 0.132196 | 469 | 17 | 61 | 27.588235 | 0.788698 | 0.545842 | 0 | 0 | 0 | 0 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f92a5687ed4f90103e6293008988557c7b97595 | 222 | py | Python | src/keras/keras/engine/topology.py | lu791019/iii_HA_Image_Recognition_DL | d5f56d62af6d3aac1c216ca4ff309db08a8c9072 | [
"Apache-2.0"
] | null | null | null | src/keras/keras/engine/topology.py | lu791019/iii_HA_Image_Recognition_DL | d5f56d62af6d3aac1c216ca4ff309db08a8c9072 | [
"Apache-2.0"
] | null | null | null | src/keras/keras/engine/topology.py | lu791019/iii_HA_Image_Recognition_DL | d5f56d62af6d3aac1c216ca4ff309db08a8c9072 | [
"Apache-2.0"
] | null | null | null | """This module is deprecated, but kept around for backwards compatibility.
"""
from .base_layer import Layer, Node, InputSpec
from .input_layer import Input, InputLayer
from .network import Network, get_source_inputs
| 37 | 75 | 0.788288 | 30 | 222 | 5.7 | 0.733333 | 0.128655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144144 | 222 | 5 | 76 | 44.4 | 0.9 | 0.31982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3fbd7aff8ec869752c4153674fe27d523ccff73a | 791 | py | Python | trove/contrib/labelers/clinical/numerics.py | raymondzmc/trove | 69b5190d4e7bf566a00bc4b988052aefbada37e1 | [
"Apache-2.0"
] | 52 | 2020-12-14T16:31:12.000Z | 2022-03-25T06:36:00.000Z | trove/contrib/labelers/clinical/numerics.py | raymondzmc/trove | 69b5190d4e7bf566a00bc4b988052aefbada37e1 | [
"Apache-2.0"
] | 3 | 2021-02-13T12:48:29.000Z | 2021-12-09T09:34:58.000Z | trove/contrib/labelers/clinical/numerics.py | raymondzmc/trove | 69b5190d4e7bf566a00bc4b988052aefbada37e1 | [
"Apache-2.0"
] | 15 | 2021-01-03T16:52:42.000Z | 2022-03-25T07:44:49.000Z | import re
###############################################################################
#
# Sub-patterns
#
###############################################################################
###############################################################################
#
# Labeling Functions / Regular Expressions
#
###############################################################################
rgx_temps = r'''[1-9][0-9]{0,2}([.][0-9]+)*\s*(°|degree[s]*)(f|fahrenheit|c|celcius)'''
rgx_percents = r'''([1-9][0-9]{0,2}|[0][.][0-9]+)([%]|percent)'''
rgx_measures = r'''[1-9][,]*[0-9]{0,3}\s*(mg|ml|mcg/hr|mcg|gram)'''
rgx_phone = r'''[(]*[1-9][0-9]{2}[)]*[-][0-9]{3}[-][0-9]{4}|(pgr|pager)\s*[0-9]{3,}'''
rgx_blanks = r'''[=_-]{3,}''' # headers ====== , underlines _______ etc
| 35.954545 | 90 | 0.299621 | 83 | 791 | 2.710843 | 0.46988 | 0.08 | 0.053333 | 0.071111 | 0.12 | 0.097778 | 0.071111 | 0.071111 | 0 | 0 | 0 | 0.05156 | 0.068268 | 791 | 21 | 91 | 37.666667 | 0.252374 | 0.117573 | 0 | 0 | 0 | 0.666667 | 0.621984 | 0.597855 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3fc81531842ce011e96c789898655cc88d058bc4 | 64 | py | Python | python/anyascii/_data/_2e0.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | python/anyascii/_data/_2e0.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | python/anyascii/_data/_2e0.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | b=' Lao Gun Geng' | 64 | 64 | 0.171875 | 4 | 64 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.78125 | 64 | 1 | 64 | 64 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3fe2c1e1d6e7f60f2a8d7a6fcbf48769c720ac8c | 151 | py | Python | ffi/python/tests/test_version.py | Wave-View-Imaging/citi | 82e99760489f02a9ad311b9bf178d0995e7926ea | [
"CNRI-Python"
] | null | null | null | ffi/python/tests/test_version.py | Wave-View-Imaging/citi | 82e99760489f02a9ad311b9bf178d0995e7926ea | [
"CNRI-Python"
] | 9 | 2021-05-12T15:30:00.000Z | 2022-03-17T19:53:46.000Z | ffi/python/tests/test_version.py | Wave-View-Imaging/citi | 82e99760489f02a9ad311b9bf178d0995e7926ea | [
"CNRI-Python"
] | null | null | null | import unittest
import citi
class TestVersion(unittest.TestCase):
def test_version(self):
self.assertTrue(hasattr(citi, '__version__'))
| 16.777778 | 53 | 0.735099 | 17 | 151 | 6.235294 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165563 | 151 | 8 | 54 | 18.875 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0.072848 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3fe9ae40efa549390ec18ce0f0f18e2833d3ee3c | 608 | py | Python | datapad/__init__.py | huyng/datapad | 2782bbf4f4a8f7813184a6bcffcf0662627eee81 | [
"Apache-2.0"
] | 8 | 2019-12-30T22:51:13.000Z | 2020-08-04T09:49:40.000Z | datapad/__init__.py | huyng/datapad | 2782bbf4f4a8f7813184a6bcffcf0662627eee81 | [
"Apache-2.0"
] | null | null | null | datapad/__init__.py | huyng/datapad | 2782bbf4f4a8f7813184a6bcffcf0662627eee81 | [
"Apache-2.0"
] | null | null | null |
# Copyright 2019 Huy Nguyen
#
# 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
#
# Software distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from . import io
from . import fields
from .sequence import Sequence
| 33.777778 | 79 | 0.730263 | 90 | 608 | 4.933333 | 0.666667 | 0.135135 | 0.058559 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.207237 | 608 | 17 | 80 | 35.764706 | 0.904564 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ff713aeca78c1bcf31300e9e2819899e32a389d | 276 | py | Python | predictor/predictor.py | WeijieChen2017/MMIPS | 1e4cd1f1d046b50e73233065acb4ecc5150bff31 | [
"MIT"
] | null | null | null | predictor/predictor.py | WeijieChen2017/MMIPS | 1e4cd1f1d046b50e73233065acb4ecc5150bff31 | [
"MIT"
] | null | null | null | predictor/predictor.py | WeijieChen2017/MMIPS | 1e4cd1f1d046b50e73233065acb4ecc5150bff31 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from basic_class.basic_class import basic_class
class predictor_supervisor(basic_class):
def __init__(self, pred_conf):
super().__init__()
self.pred_conf = pred_conf
def predict_on_data(self):
pass
| 19.714286 | 47 | 0.673913 | 37 | 276 | 4.540541 | 0.594595 | 0.238095 | 0.142857 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.210145 | 276 | 13 | 48 | 21.230769 | 0.766055 | 0.137681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3ffd617980a2037f70bc94f2cdb42178222a2082 | 726 | py | Python | 4.7.py | Pontianak/Python-For-Informatics | 0645c5e8114e9b91959a47380dcd7da620eb552e | [
"MIT"
] | 1 | 2016-05-16T14:41:07.000Z | 2016-05-16T14:41:07.000Z | 4.7.py | Pontianak/Python-For-Informatics-Assignments | 0645c5e8114e9b91959a47380dcd7da620eb552e | [
"MIT"
] | null | null | null | 4.7.py | Pontianak/Python-For-Informatics-Assignments | 0645c5e8114e9b91959a47380dcd7da620eb552e | [
"MIT"
] | null | null | null | # Copyright (c) 2015 Pontianak
import os
def computegrade(Score):
if Score < 0:
sScore = "Bad Score"
return sScore
elif Score < 0.6:
sScore = "F"
return sScore
elif Score > 1.0:
sScore = "Bad Score"
return sScore
elif Score >= 0.9:
sScore = "A"
return sScore
elif Score >= 0.8:
sScore = "B"
return sScore
elif Score >= 0.7:
sScore = "C"
return sScore
elif Score >= 0.6:
sScore = "D"
return sScore
try:
os.system('cls')
Score = float(raw_input("Enter Score between 0.0 and 1.0: "))
except:
print "Bad Score"
quit()
stringGrade = computegrade(Score)
print stringGrade
| 19.621622 | 65 | 0.545455 | 92 | 726 | 4.293478 | 0.402174 | 0.212658 | 0.243038 | 0.318987 | 0.389873 | 0.278481 | 0.278481 | 0.187342 | 0.187342 | 0 | 0 | 0.044586 | 0.35124 | 726 | 36 | 66 | 20.166667 | 0.794055 | 0.038567 | 0 | 0.290323 | 0 | 0 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.064516 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b74bb361862b3da5099b2132ce9558c5e507983e | 117 | py | Python | rummy/constants/resource_path.py | priyankamadhwal/Python-Rummy | ab73596faffd2e9d7dbc12c25098cf998ff0b1d9 | [
"MIT"
] | 19 | 2018-01-10T13:56:17.000Z | 2021-01-01T22:32:49.000Z | rummy/constants/resource_path.py | priyankamadhwal/Python-Rummy | ab73596faffd2e9d7dbc12c25098cf998ff0b1d9 | [
"MIT"
] | 20 | 2018-10-01T14:54:07.000Z | 2020-10-05T11:06:18.000Z | rummy/constants/resource_path.py | priyankamadhwal/Python-Rummy | ab73596faffd2e9d7dbc12c25098cf998ff0b1d9 | [
"MIT"
] | 9 | 2018-10-01T19:56:10.000Z | 2020-09-10T13:16:36.000Z | # coding=utf-8
from pkg_resources import resource_filename
TEMPLATE_PATH = resource_filename('rummy', 'templates/')
| 23.4 | 56 | 0.803419 | 15 | 117 | 6 | 0.866667 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.094017 | 117 | 4 | 57 | 29.25 | 0.839623 | 0.102564 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b75028ce3d74614641763d67b0c111402c4ab101 | 178 | py | Python | src/python_3d_printing/setup.py | vladBaciu/ILSF | 80c00ad9194942ae48a6802972e8009cfdd37fe9 | [
"BSD-2-Clause"
] | null | null | null | src/python_3d_printing/setup.py | vladBaciu/ILSF | 80c00ad9194942ae48a6802972e8009cfdd37fe9 | [
"BSD-2-Clause"
] | null | null | null | src/python_3d_printing/setup.py | vladBaciu/ILSF | 80c00ad9194942ae48a6802972e8009cfdd37fe9 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe
setup(options = {"py2exe":{ "excludes": ["_pytest","qtpy"] } },
console = ['python_interface.py']) | 29.666667 | 65 | 0.629213 | 20 | 178 | 5.5 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.162921 | 178 | 6 | 66 | 29.666667 | 0.718121 | 0.117978 | 0 | 0 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 4 |
b7548fd2ae8ee98b0f50fc549b54a412c556330b | 151 | py | Python | tests/basics/builtin_chr.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 7 | 2019-10-18T13:41:39.000Z | 2022-03-15T17:27:57.000Z | tests/basics/builtin_chr.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | null | null | null | tests/basics/builtin_chr.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 2 | 2020-06-23T09:10:15.000Z | 2020-12-22T06:42:14.000Z | # test builtin chr (whether or not we support unicode)
print(chr(65))
try:
chr(0x110000)
print("FAIL")
except ValueError:
print("PASS")
| 13.727273 | 54 | 0.662252 | 21 | 151 | 4.761905 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0.211921 | 151 | 10 | 55 | 15.1 | 0.764706 | 0.344371 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 1 | 0 | true | 0.166667 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
b7570d467e735961d47e7cdc0900b591fe89a624 | 89 | py | Python | saleor/salingo/apps.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | null | null | null | saleor/salingo/apps.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | 8 | 2022-02-14T04:25:58.000Z | 2022-03-28T04:53:16.000Z | saleor/salingo/apps.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | null | null | null | from django.apps import AppConfig
class SalingoConfig(AppConfig):
name = 'Salingo'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b79ee08224670854b286d7701d183421c120b223 | 5,038 | py | Python | tools/nntool/generation/generators/__init__.py | bot-motion/gap_sdk | bd117a8a4b5384b2b889f72effbfed4f7f938a88 | [
"Apache-2.0"
] | null | null | null | tools/nntool/generation/generators/__init__.py | bot-motion/gap_sdk | bd117a8a4b5384b2b889f72effbfed4f7f938a88 | [
"Apache-2.0"
] | null | null | null | tools/nntool/generation/generators/__init__.py | bot-motion/gap_sdk | bd117a8a4b5384b2b889f72effbfed4f7f938a88 | [
"Apache-2.0"
] | null | null | null | from .bindings.mult8.conv_bindings_generator import \
conv_bindings_generator as mult8_conv_bondings_generator
from .bindings.mult8.fc_binding_generator import \
fc_bindings_generator as mult8_fc_bindigns_generator
from .bindings.mult8.inout_bindings_generator import \
in_out_bindings_generator as mult8_in_out_bindings_generator
from .bindings.mult8.inout_infos_bindings_generator import \
in_out_infos_bindings_generator
from .bindings.mult8.mat_vect_mult_bindings_generator import \
mat_vect_mul_bindings_generator as mult8_mat_vect_mul_bindings_generator
from .bindings.mult8.matadd_bindings_generator import \
matadd_bindings_generator as mult8_matadd_bindings_generator
from .bindings.mult8.multi_inout_bindings_generator import \
multi_in_out_bindings_generator
from .bindings.mult8.rnn_bindings_generator import rnn_bindings_generator
from .bindings.mult8.softmax_bindings_generator import \
softmax_bindings_generator as mult8_softmax_bindings_generator
from .bindings.mult8.ssd_postprocess_bindings_generator import \
ssd_postprocess_bindings_generator
from .bindings.pow2.conv_bindings_generator import \
conv_bindings_generator as pow2_conv_bindings_generator
from .bindings.pow2.fc_bindings_generator import \
fc_bindings_generator as pow2_fc_bindings_generator
from .bindings.pow2.inout_bindings_generator import \
in_out_bindings_generator as pow2_in_out_bindings_generator
from .bindings.pow2.matadd_bindings_generator import \
matadd_bindings_generator as pow2_matadd_bindings_generator
from .bindings.pow2.matscale_bindings_generator import \
matscale_bindings_generator as pow2_matscale_bindings_generator
from .bindings.pow2.softmax_bindings_generator import \
softmax_bindings_generator as pow2_softmax_bindings_generator
from .bindings.pow2.transpose_bindings_generator import \
transpose_bindings_generator
from .generator_decorators import (RegisteredGeneratorsMixin,
generation_function)
from .globals.constant_input_generator import constant_input_globals_generator
from .globals.filter_generator import filter_globals_generator
from .globals.input_generator import inputs_input_generator
from .globals.mult8_filter_generator import mult8_filter_globals_generator
from .globals.mult8_infos_generator import mult8_infos_generator
from .globals.mult8_rnn_infos_generator import mult8_rnn_infos_generator
from .globals.mult8_ssd_globals_generator import mult8_ssd_globals_generator
from .globals.output_generator import outputs_output_generator
from .kernels.general.imageformat_kernels_generator import \
imageformat_kernels_generator
from .kernels.general.resizer_kernel_generator import resize_kernels_generator
from .kernels.mult8.conv_pool_relu_kernels_generator import \
conv_pool_relu_kernels_generator as mult8_conv_pool_relu_kernels_generator
from .kernels.mult8.copy_kernels_generator import copy_kernel_generator
from .kernels.mult8.expressions_kernels_generator import \
expressions_kernels_generator
from .kernels.mult8.global_pool_kernels_generator import \
global_pool_kernels_generator as mult8_global_pool_kernels_generator
from .kernels.mult8.linear_relu_kernels_generator import \
linear_relu_kernels_generator
from .kernels.mult8.mat_vect_mult_kernels_generator import \
mat_vect_mult_kernel_generator
from .kernels.mult8.matadd_kernels_generator import matadd_kernel_generator
from .kernels.mult8.pool_relu_kernels_generator import \
pool_act_kernels_generator as mult8_pool_act_kernels_generatoor
from .kernels.mult8.rnn_kernels_generator import rnn_kernels_generator
from .kernels.mult8.softmax_kernels_generator import \
softmax_kernels_generator as mult8_softmax_kernels_generator
from .kernels.mult8.ssd_postprocess_kernels_generator import \
ssdpostprocess_kernels_generator
from .kernels.mult8.three_d_transpose_kernels_generator import \
three_d_transpose_kernels_generator as \
mult8_three_d_transpose_kernels_generator
from .kernels.pow2.conv_pool_relu_kernels_generator import \
conv_pool_relu_kernels_generator as pow2_conv_pool_relu_kernels_generator
from .kernels.pow2.global_pool_kernels_generator import \
global_pool_kernels_generator as pow2_global_pool_kernels_generator
from .kernels.pow2.linear_relu_kernels_generator import \
linear_relu_kernels_generator as pow2_linear_relu_kernels_generator
from .kernels.pow2.matadd_kernels_generator import \
matadd_kernels_generator as pow2_matadd_kernels_generator
from .kernels.pow2.matscale_kernels_generator import \
matscale_kernels_generator as pow2_matscale_kernels_generator
from .kernels.pow2.pool_relu_kernels_generator import \
pool_kernels_generator as pow2_pool_kernels_generator
from .kernels.pow2.softmax_kernels_generator import \
softmax_kernels_generator as pow2_softmax_kernels_generator
from .kernels.pow2.three_d_transpose_kernels_generator import \
three_d_transpose_kernels_generator as \
pow2_three_d_transpose_kernels_generator
| 58.581395 | 78 | 0.874752 | 659 | 5,038 | 6.186646 | 0.084977 | 0.204072 | 0.103017 | 0.112583 | 0.66961 | 0.402992 | 0.292372 | 0.254108 | 0.149129 | 0.095168 | 0 | 0.015284 | 0.090909 | 5,038 | 85 | 79 | 59.270588 | 0.874891 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.564706 | 0 | 0.564706 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b7adf873e24e331fc8e77ced668c4f9bc5f95300 | 29,084 | py | Python | Interaction/Widgets/Testing/Python/TestTensorWidget2.py | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Interaction/Widgets/Testing/Python/TestTensorWidget2.py | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Interaction/Widgets/Testing/Python/TestTensorWidget2.py | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestTensorWidget2.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================
'''
# Test the vtkTensorWidget and vtkTensorRepresentation classes
import vtk
import vtk.test.Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# These are the pre-recorded events to drive the test
Recording = \
"# StreamVersion 1.1\n\
ExposeEvent 0 299 0 0 0 0\n\
RenderEvent 0 299 0 0 0 0\n\
EnterEvent 185 1 0 0 0 0\n\
MouseMoveEvent 185 1 0 0 0 0\n\
MouseMoveEvent 180 10 0 0 0 0\n\
MouseMoveEvent 177 14 0 0 0 0\n\
MouseMoveEvent 173 19 0 0 0 0\n\
MouseMoveEvent 170 25 0 0 0 0\n\
MouseMoveEvent 169 29 0 0 0 0\n\
MouseMoveEvent 166 34 0 0 0 0\n\
MouseMoveEvent 165 36 0 0 0 0\n\
MouseMoveEvent 165 39 0 0 0 0\n\
MouseMoveEvent 164 42 0 0 0 0\n\
MouseMoveEvent 164 45 0 0 0 0\n\
MouseMoveEvent 164 48 0 0 0 0\n\
MouseMoveEvent 164 51 0 0 0 0\n\
MouseMoveEvent 164 54 0 0 0 0\n\
MouseMoveEvent 164 56 0 0 0 0\n\
MouseMoveEvent 164 60 0 0 0 0\n\
MouseMoveEvent 164 63 0 0 0 0\n\
MouseMoveEvent 164 66 0 0 0 0\n\
MouseMoveEvent 165 71 0 0 0 0\n\
MouseMoveEvent 165 75 0 0 0 0\n\
MouseMoveEvent 165 78 0 0 0 0\n\
MouseMoveEvent 165 81 0 0 0 0\n\
MouseMoveEvent 164 86 0 0 0 0\n\
MouseMoveEvent 164 90 0 0 0 0\n\
MouseMoveEvent 163 95 0 0 0 0\n\
MouseMoveEvent 163 100 0 0 0 0\n\
MouseMoveEvent 161 109 0 0 0 0\n\
MouseMoveEvent 160 117 0 0 0 0\n\
MouseMoveEvent 158 126 0 0 0 0\n\
MouseMoveEvent 156 136 0 0 0 0\n\
MouseMoveEvent 156 148 0 0 0 0\n\
MouseMoveEvent 156 158 0 0 0 0\n\
MouseMoveEvent 156 173 0 0 0 0\n\
MouseMoveEvent 156 182 0 0 0 0\n\
MouseMoveEvent 155 189 0 0 0 0\n\
MouseMoveEvent 155 196 0 0 0 0\n\
MouseMoveEvent 155 204 0 0 0 0\n\
MouseMoveEvent 155 209 0 0 0 0\n\
MouseMoveEvent 154 214 0 0 0 0\n\
MouseMoveEvent 152 218 0 0 0 0\n\
MouseMoveEvent 152 221 0 0 0 0\n\
MouseMoveEvent 151 226 0 0 0 0\n\
MouseMoveEvent 151 229 0 0 0 0\n\
MouseMoveEvent 151 231 0 0 0 0\n\
MouseMoveEvent 150 232 0 0 0 0\n\
MouseMoveEvent 149 235 0 0 0 0\n\
MouseMoveEvent 149 236 0 0 0 0\n\
MouseMoveEvent 149 238 0 0 0 0\n\
MouseMoveEvent 148 239 0 0 0 0\n\
MouseMoveEvent 148 240 0 0 0 0\n\
MouseMoveEvent 148 241 0 0 0 0\n\
MouseMoveEvent 147 243 0 0 0 0\n\
MouseMoveEvent 146 244 0 0 0 0\n\
MouseMoveEvent 146 245 0 0 0 0\n\
MouseMoveEvent 145 247 0 0 0 0\n\
MouseMoveEvent 144 249 0 0 0 0\n\
MouseMoveEvent 144 251 0 0 0 0\n\
MouseMoveEvent 144 250 0 0 0 0\n\
MouseMoveEvent 144 249 0 0 0 0\n\
MouseMoveEvent 144 247 0 0 0 0\n\
MouseMoveEvent 145 245 0 0 0 0\n\
MouseMoveEvent 146 243 0 0 0 0\n\
MouseMoveEvent 146 241 0 0 0 0\n\
MouseMoveEvent 146 240 0 0 0 0\n\
MouseMoveEvent 146 239 0 0 0 0\n\
MouseMoveEvent 146 237 0 0 0 0\n\
MouseMoveEvent 147 235 0 0 0 0\n\
MouseMoveEvent 147 234 0 0 0 0\n\
MouseMoveEvent 147 232 0 0 0 0\n\
MouseMoveEvent 148 230 0 0 0 0\n\
MouseMoveEvent 148 228 0 0 0 0\n\
MouseMoveEvent 148 226 0 0 0 0\n\
MouseMoveEvent 148 225 0 0 0 0\n\
MouseMoveEvent 148 224 0 0 0 0\n\
MouseMoveEvent 149 222 0 0 0 0\n\
MouseMoveEvent 150 221 0 0 0 0\n\
MouseMoveEvent 150 220 0 0 0 0\n\
MouseMoveEvent 150 220 0 0 0 0\n\
MouseMoveEvent 150 219 0 0 0 0\n\
MouseMoveEvent 150 218 0 0 0 0\n\
MouseMoveEvent 151 216 0 0 0 0\n\
MouseMoveEvent 151 214 0 0 0 0\n\
MouseMoveEvent 151 212 0 0 0 0\n\
MouseMoveEvent 151 211 0 0 0 0\n\
MouseMoveEvent 151 210 0 0 0 0\n\
MouseMoveEvent 151 209 0 0 0 0\n\
LeftButtonPressEvent 151 209 0 0 0 0\n\
RenderEvent 151 209 0 0 0 0\n\
MouseMoveEvent 152 210 0 0 0 0\n\
RenderEvent 152 210 0 0 0 0\n\
MouseMoveEvent 152 212 0 0 0 0\n\
RenderEvent 152 212 0 0 0 0\n\
MouseMoveEvent 153 214 0 0 0 0\n\
RenderEvent 153 214 0 0 0 0\n\
MouseMoveEvent 153 216 0 0 0 0\n\
RenderEvent 153 216 0 0 0 0\n\
MouseMoveEvent 154 218 0 0 0 0\n\
RenderEvent 154 218 0 0 0 0\n\
MouseMoveEvent 154 222 0 0 0 0\n\
RenderEvent 154 222 0 0 0 0\n\
MouseMoveEvent 155 224 0 0 0 0\n\
RenderEvent 155 224 0 0 0 0\n\
MouseMoveEvent 156 226 0 0 0 0\n\
RenderEvent 156 226 0 0 0 0\n\
MouseMoveEvent 156 227 0 0 0 0\n\
RenderEvent 156 227 0 0 0 0\n\
MouseMoveEvent 156 228 0 0 0 0\n\
RenderEvent 156 228 0 0 0 0\n\
MouseMoveEvent 156 229 0 0 0 0\n\
RenderEvent 156 229 0 0 0 0\n\
MouseMoveEvent 157 231 0 0 0 0\n\
RenderEvent 157 231 0 0 0 0\n\
MouseMoveEvent 157 233 0 0 0 0\n\
RenderEvent 157 233 0 0 0 0\n\
MouseMoveEvent 157 234 0 0 0 0\n\
RenderEvent 157 234 0 0 0 0\n\
MouseMoveEvent 158 235 0 0 0 0\n\
RenderEvent 158 235 0 0 0 0\n\
MouseMoveEvent 158 236 0 0 0 0\n\
RenderEvent 158 236 0 0 0 0\n\
MouseMoveEvent 158 237 0 0 0 0\n\
RenderEvent 158 237 0 0 0 0\n\
MouseMoveEvent 158 238 0 0 0 0\n\
RenderEvent 158 238 0 0 0 0\n\
MouseMoveEvent 158 239 0 0 0 0\n\
RenderEvent 158 239 0 0 0 0\n\
MouseMoveEvent 158 242 0 0 0 0\n\
RenderEvent 158 242 0 0 0 0\n\
MouseMoveEvent 158 244 0 0 0 0\n\
RenderEvent 158 244 0 0 0 0\n\
MouseMoveEvent 158 246 0 0 0 0\n\
RenderEvent 158 246 0 0 0 0\n\
MouseMoveEvent 158 248 0 0 0 0\n\
RenderEvent 158 248 0 0 0 0\n\
MouseMoveEvent 158 249 0 0 0 0\n\
RenderEvent 158 249 0 0 0 0\n\
MouseMoveEvent 158 250 0 0 0 0\n\
RenderEvent 158 250 0 0 0 0\n\
MouseMoveEvent 158 250 0 0 0 0\n\
RenderEvent 158 250 0 0 0 0\n\
MouseMoveEvent 158 252 0 0 0 0\n\
RenderEvent 158 252 0 0 0 0\n\
MouseMoveEvent 158 252 0 0 0 0\n\
RenderEvent 158 252 0 0 0 0\n\
MouseMoveEvent 158 253 0 0 0 0\n\
RenderEvent 158 253 0 0 0 0\n\
MouseMoveEvent 158 254 0 0 0 0\n\
RenderEvent 158 254 0 0 0 0\n\
MouseMoveEvent 158 255 0 0 0 0\n\
RenderEvent 158 255 0 0 0 0\n\
MouseMoveEvent 158 257 0 0 0 0\n\
RenderEvent 158 257 0 0 0 0\n\
MouseMoveEvent 158 259 0 0 0 0\n\
RenderEvent 158 259 0 0 0 0\n\
MouseMoveEvent 158 260 0 0 0 0\n\
RenderEvent 158 260 0 0 0 0\n\
MouseMoveEvent 158 261 0 0 0 0\n\
RenderEvent 158 261 0 0 0 0\n\
LeftButtonReleaseEvent 158 261 0 0 0 0\n\
RenderEvent 158 261 0 0 0 0\n\
MouseMoveEvent 158 260 0 0 0 0\n\
MouseMoveEvent 158 259 0 0 0 0\n\
MouseMoveEvent 158 257 0 0 0 0\n\
MouseMoveEvent 157 255 0 0 0 0\n\
MouseMoveEvent 157 253 0 0 0 0\n\
MouseMoveEvent 156 250 0 0 0 0\n\
MouseMoveEvent 155 245 0 0 0 0\n\
MouseMoveEvent 155 241 0 0 0 0\n\
MouseMoveEvent 155 235 0 0 0 0\n\
MouseMoveEvent 153 227 0 0 0 0\n\
MouseMoveEvent 153 222 0 0 0 0\n\
MouseMoveEvent 153 215 0 0 0 0\n\
MouseMoveEvent 153 211 0 0 0 0\n\
MouseMoveEvent 153 208 0 0 0 0\n\
MouseMoveEvent 153 203 0 0 0 0\n\
MouseMoveEvent 153 201 0 0 0 0\n\
MouseMoveEvent 153 199 0 0 0 0\n\
MouseMoveEvent 153 198 0 0 0 0\n\
MouseMoveEvent 154 197 0 0 0 0\n\
MouseMoveEvent 154 196 0 0 0 0\n\
MouseMoveEvent 154 195 0 0 0 0\n\
MouseMoveEvent 154 194 0 0 0 0\n\
MouseMoveEvent 155 192 0 0 0 0\n\
MouseMoveEvent 155 190 0 0 0 0\n\
MouseMoveEvent 156 190 0 0 0 0\n\
MouseMoveEvent 156 188 0 0 0 0\n\
MouseMoveEvent 156 186 0 0 0 0\n\
MouseMoveEvent 157 182 0 0 0 0\n\
MouseMoveEvent 158 181 0 0 0 0\n\
MouseMoveEvent 158 178 0 0 0 0\n\
MouseMoveEvent 159 176 0 0 0 0\n\
MouseMoveEvent 160 174 0 0 0 0\n\
MouseMoveEvent 160 172 0 0 0 0\n\
MouseMoveEvent 161 170 0 0 0 0\n\
MouseMoveEvent 162 167 0 0 0 0\n\
MouseMoveEvent 163 165 0 0 0 0\n\
MouseMoveEvent 164 163 0 0 0 0\n\
MouseMoveEvent 165 161 0 0 0 0\n\
MouseMoveEvent 165 159 0 0 0 0\n\
MouseMoveEvent 166 159 0 0 0 0\n\
MouseMoveEvent 167 158 0 0 0 0\n\
MouseMoveEvent 168 157 0 0 0 0\n\
MouseMoveEvent 169 157 0 0 0 0\n\
MouseMoveEvent 170 157 0 0 0 0\n\
MouseMoveEvent 172 157 0 0 0 0\n\
MouseMoveEvent 174 157 0 0 0 0\n\
MouseMoveEvent 176 157 0 0 0 0\n\
MouseMoveEvent 181 156 0 0 0 0\n\
MouseMoveEvent 183 156 0 0 0 0\n\
MouseMoveEvent 185 156 0 0 0 0\n\
MouseMoveEvent 188 155 0 0 0 0\n\
MouseMoveEvent 190 155 0 0 0 0\n\
MouseMoveEvent 192 154 0 0 0 0\n\
MouseMoveEvent 195 154 0 0 0 0\n\
MouseMoveEvent 197 154 0 0 0 0\n\
MouseMoveEvent 199 153 0 0 0 0\n\
MouseMoveEvent 200 152 0 0 0 0\n\
MouseMoveEvent 201 152 0 0 0 0\n\
MouseMoveEvent 203 151 0 0 0 0\n\
MouseMoveEvent 203 150 0 0 0 0\n\
MouseMoveEvent 205 150 0 0 0 0\n\
MouseMoveEvent 207 149 0 0 0 0\n\
MouseMoveEvent 209 147 0 0 0 0\n\
MouseMoveEvent 210 147 0 0 0 0\n\
MouseMoveEvent 212 145 0 0 0 0\n\
MouseMoveEvent 213 144 0 0 0 0\n\
MouseMoveEvent 215 143 0 0 0 0\n\
MouseMoveEvent 216 142 0 0 0 0\n\
MouseMoveEvent 217 142 0 0 0 0\n\
MouseMoveEvent 218 141 0 0 0 0\n\
MouseMoveEvent 219 140 0 0 0 0\n\
MouseMoveEvent 220 139 0 0 0 0\n\
MouseMoveEvent 220 138 0 0 0 0\n\
MouseMoveEvent 220 137 0 0 0 0\n\
MouseMoveEvent 220 136 0 0 0 0\n\
MouseMoveEvent 221 135 0 0 0 0\n\
MouseMoveEvent 222 134 0 0 0 0\n\
MouseMoveEvent 222 133 0 0 0 0\n\
MouseMoveEvent 222 132 0 0 0 0\n\
MouseMoveEvent 223 131 0 0 0 0\n\
MouseMoveEvent 223 132 0 0 0 0\n\
MouseMoveEvent 222 133 0 0 0 0\n\
MouseMoveEvent 221 134 0 0 0 0\n\
MouseMoveEvent 221 135 0 0 0 0\n\
MouseMoveEvent 221 136 0 0 0 0\n\
MouseMoveEvent 221 137 0 0 0 0\n\
MouseMoveEvent 221 138 0 0 0 0\n\
MouseMoveEvent 220 138 0 0 0 0\n\
KeyPressEvent 220 138 0 116 1 t\n\
CharEvent 220 138 0 116 1 t\n\
KeyReleaseEvent 220 138 0 116 1 t\n\
LeftButtonPressEvent 220 138 0 0 0 t\n\
RenderEvent 220 138 0 0 0 t\n\
MouseMoveEvent 220 138 0 0 0 t\n\
RenderEvent 220 138 0 0 0 t\n\
MouseMoveEvent 219 138 0 0 0 t\n\
RenderEvent 219 138 0 0 0 t\n\
MouseMoveEvent 218 138 0 0 0 t\n\
RenderEvent 218 138 0 0 0 t\n\
MouseMoveEvent 217 138 0 0 0 t\n\
RenderEvent 217 138 0 0 0 t\n\
MouseMoveEvent 216 138 0 0 0 t\n\
RenderEvent 216 138 0 0 0 t\n\
MouseMoveEvent 215 138 0 0 0 t\n\
RenderEvent 215 138 0 0 0 t\n\
MouseMoveEvent 214 138 0 0 0 t\n\
RenderEvent 214 138 0 0 0 t\n\
MouseMoveEvent 212 137 0 0 0 t\n\
RenderEvent 212 137 0 0 0 t\n\
MouseMoveEvent 209 137 0 0 0 t\n\
RenderEvent 209 137 0 0 0 t\n\
MouseMoveEvent 206 137 0 0 0 t\n\
RenderEvent 206 137 0 0 0 t\n\
MouseMoveEvent 204 137 0 0 0 t\n\
RenderEvent 204 137 0 0 0 t\n\
MouseMoveEvent 202 137 0 0 0 t\n\
RenderEvent 202 137 0 0 0 t\n\
MouseMoveEvent 200 137 0 0 0 t\n\
RenderEvent 200 137 0 0 0 t\n\
MouseMoveEvent 197 137 0 0 0 t\n\
RenderEvent 197 137 0 0 0 t\n\
MouseMoveEvent 195 137 0 0 0 t\n\
RenderEvent 195 137 0 0 0 t\n\
MouseMoveEvent 194 137 0 0 0 t\n\
RenderEvent 194 137 0 0 0 t\n\
MouseMoveEvent 193 137 0 0 0 t\n\
RenderEvent 193 137 0 0 0 t\n\
MouseMoveEvent 192 137 0 0 0 t\n\
RenderEvent 192 137 0 0 0 t\n\
MouseMoveEvent 190 137 0 0 0 t\n\
RenderEvent 190 137 0 0 0 t\n\
MouseMoveEvent 188 137 0 0 0 t\n\
RenderEvent 188 137 0 0 0 t\n\
MouseMoveEvent 187 137 0 0 0 t\n\
RenderEvent 187 137 0 0 0 t\n\
MouseMoveEvent 185 137 0 0 0 t\n\
RenderEvent 185 137 0 0 0 t\n\
MouseMoveEvent 183 136 0 0 0 t\n\
RenderEvent 183 136 0 0 0 t\n\
MouseMoveEvent 183 135 0 0 0 t\n\
RenderEvent 183 135 0 0 0 t\n\
MouseMoveEvent 182 135 0 0 0 t\n\
RenderEvent 182 135 0 0 0 t\n\
MouseMoveEvent 181 135 0 0 0 t\n\
RenderEvent 181 135 0 0 0 t\n\
MouseMoveEvent 180 135 0 0 0 t\n\
RenderEvent 180 135 0 0 0 t\n\
LeftButtonReleaseEvent 180 135 0 0 0 t\n\
RenderEvent 180 135 0 0 0 t\n\
MouseMoveEvent 181 136 0 0 0 t\n\
MouseMoveEvent 184 136 0 0 0 t\n\
MouseMoveEvent 187 137 0 0 0 t\n\
MouseMoveEvent 195 138 0 0 0 t\n\
MouseMoveEvent 201 138 0 0 0 t\n\
MouseMoveEvent 206 140 0 0 0 t\n\
MouseMoveEvent 212 141 0 0 0 t\n\
MouseMoveEvent 217 142 0 0 0 t\n\
MouseMoveEvent 221 143 0 0 0 t\n\
MouseMoveEvent 222 143 0 0 0 t\n\
MouseMoveEvent 224 143 0 0 0 t\n\
MouseMoveEvent 225 143 0 0 0 t\n\
MouseMoveEvent 225 143 0 0 0 t\n\
MouseMoveEvent 226 143 0 0 0 t\n\
MouseMoveEvent 227 143 0 0 0 t\n\
MouseMoveEvent 228 143 0 0 0 t\n\
MouseMoveEvent 229 143 0 0 0 t\n\
MouseMoveEvent 230 144 0 0 0 t\n\
MouseMoveEvent 231 144 0 0 0 t\n\
MouseMoveEvent 232 144 0 0 0 t\n\
MouseMoveEvent 233 144 0 0 0 t\n\
MouseMoveEvent 234 144 0 0 0 t\n\
MouseMoveEvent 235 144 0 0 0 t\n\
MouseMoveEvent 236 144 0 0 0 t\n\
MouseMoveEvent 237 144 0 0 0 t\n\
MouseMoveEvent 239 144 0 0 0 t\n\
MouseMoveEvent 241 144 0 0 0 t\n\
MouseMoveEvent 242 144 0 0 0 t\n\
MouseMoveEvent 243 144 0 0 0 t\n\
MouseMoveEvent 244 144 0 0 0 t\n\
MouseMoveEvent 245 144 0 0 0 t\n\
MouseMoveEvent 246 144 0 0 0 t\n\
MouseMoveEvent 247 144 0 0 0 t\n\
MouseMoveEvent 247 145 0 0 0 t\n\
MouseMoveEvent 248 145 0 0 0 t\n\
MouseMoveEvent 247 144 0 0 0 t\n\
MouseMoveEvent 246 144 0 0 0 t\n\
MouseMoveEvent 244 142 0 0 0 t\n\
MouseMoveEvent 239 139 0 0 0 t\n\
MouseMoveEvent 237 138 0 0 0 t\n\
MouseMoveEvent 232 136 0 0 0 t\n\
MouseMoveEvent 227 133 0 0 0 t\n\
MouseMoveEvent 220 131 0 0 0 t\n\
MouseMoveEvent 214 130 0 0 0 t\n\
MouseMoveEvent 209 130 0 0 0 t\n\
MouseMoveEvent 204 130 0 0 0 t\n\
MouseMoveEvent 198 130 0 0 0 t\n\
MouseMoveEvent 195 133 0 0 0 t\n\
MouseMoveEvent 190 133 0 0 0 t\n\
MouseMoveEvent 184 135 0 0 0 t\n\
MouseMoveEvent 180 138 0 0 0 t\n\
MouseMoveEvent 177 138 0 0 0 t\n\
MouseMoveEvent 176 139 0 0 0 t\n\
MouseMoveEvent 174 140 0 0 0 t\n\
MouseMoveEvent 172 141 0 0 0 t\n\
MouseMoveEvent 171 142 0 0 0 t\n\
MouseMoveEvent 170 142 0 0 0 t\n\
MouseMoveEvent 169 142 0 0 0 t\n\
MouseMoveEvent 168 143 0 0 0 t\n\
MouseMoveEvent 167 143 0 0 0 t\n\
MouseMoveEvent 166 144 0 0 0 t\n\
MouseMoveEvent 164 145 0 0 0 t\n\
MouseMoveEvent 162 146 0 0 0 t\n\
MouseMoveEvent 161 146 0 0 0 t\n\
MouseMoveEvent 160 146 0 0 0 t\n\
MouseMoveEvent 159 146 0 0 0 t\n\
MouseMoveEvent 157 146 0 0 0 t\n\
MouseMoveEvent 156 147 0 0 0 t\n\
MouseMoveEvent 155 147 0 0 0 t\n\
MouseMoveEvent 155 147 0 0 0 t\n\
MouseMoveEvent 154 147 0 0 0 t\n\
MouseMoveEvent 153 148 0 0 0 t\n\
MouseMoveEvent 153 149 0 0 0 t\n\
MouseMoveEvent 153 149 0 0 0 t\n\
MouseMoveEvent 154 150 0 0 0 t\n\
MouseMoveEvent 155 150 0 0 0 t\n\
MouseMoveEvent 157 150 0 0 0 t\n\
MouseMoveEvent 158 150 0 0 0 t\n\
MouseMoveEvent 160 150 0 0 0 t\n\
MouseMoveEvent 161 150 0 0 0 t\n\
MouseMoveEvent 162 150 0 0 0 t\n\
MouseMoveEvent 163 150 0 0 0 t\n\
MouseMoveEvent 164 150 0 0 0 t\n\
MouseMoveEvent 165 150 0 0 0 t\n\
MouseMoveEvent 166 150 0 0 0 t\n\
MouseMoveEvent 167 150 0 0 0 t\n\
MouseMoveEvent 169 150 0 0 0 t\n\
MouseMoveEvent 170 150 0 0 0 t\n\
MouseMoveEvent 171 150 0 0 0 t\n\
MouseMoveEvent 172 150 0 0 0 t\n\
MouseMoveEvent 174 149 0 0 0 t\n\
MouseMoveEvent 176 149 0 0 0 t\n\
MouseMoveEvent 178 149 0 0 0 t\n\
MouseMoveEvent 180 149 0 0 0 t\n\
MouseMoveEvent 183 149 0 0 0 t\n\
MouseMoveEvent 188 149 0 0 0 t\n\
MouseMoveEvent 190 149 0 0 0 t\n\
MouseMoveEvent 195 149 0 0 0 t\n\
MouseMoveEvent 197 149 0 0 0 t\n\
MouseMoveEvent 199 149 0 0 0 t\n\
MouseMoveEvent 202 149 0 0 0 t\n\
MouseMoveEvent 205 149 0 0 0 t\n\
MouseMoveEvent 208 149 0 0 0 t\n\
MouseMoveEvent 210 149 0 0 0 t\n\
MouseMoveEvent 211 149 0 0 0 t\n\
MouseMoveEvent 212 149 0 0 0 t\n\
MouseMoveEvent 213 149 0 0 0 t\n\
MouseMoveEvent 213 149 0 0 0 t\n\
MouseMoveEvent 214 149 0 0 0 t\n\
MouseMoveEvent 215 149 0 0 0 t\n\
MouseMoveEvent 216 149 0 0 0 t\n\
MouseMoveEvent 218 149 0 0 0 t\n\
MouseMoveEvent 220 149 0 0 0 t\n\
MouseMoveEvent 223 149 0 0 0 t\n\
MouseMoveEvent 225 149 0 0 0 t\n\
MouseMoveEvent 226 149 0 0 0 t\n\
MouseMoveEvent 227 149 0 0 0 t\n\
MouseMoveEvent 229 149 0 0 0 t\n\
MouseMoveEvent 230 149 0 0 0 t\n\
MouseMoveEvent 231 149 0 0 0 t\n\
MouseMoveEvent 232 149 0 0 0 t\n\
MouseMoveEvent 233 149 0 0 0 t\n\
MouseMoveEvent 234 149 0 0 0 t\n\
MouseMoveEvent 235 149 0 0 0 t\n\
MouseMoveEvent 236 149 0 0 0 t\n\
MouseMoveEvent 238 149 0 0 0 t\n\
MouseMoveEvent 240 149 0 0 0 t\n\
MouseMoveEvent 243 149 0 0 0 t\n\
MouseMoveEvent 244 149 0 0 0 t\n\
MouseMoveEvent 245 149 0 0 0 t\n\
MouseMoveEvent 246 149 0 0 0 t\n\
MouseMoveEvent 247 149 0 0 0 t\n\
MouseMoveEvent 248 149 0 0 0 t\n\
MouseMoveEvent 249 149 0 0 0 t\n\
MouseMoveEvent 250 149 0 0 0 t\n\
MouseMoveEvent 251 149 0 0 0 t\n\
MouseMoveEvent 252 149 0 0 0 t\n\
MouseMoveEvent 253 149 0 0 0 t\n\
MouseMoveEvent 254 148 0 0 0 t\n\
MouseMoveEvent 255 148 0 0 0 t\n\
MouseMoveEvent 257 147 0 0 0 t\n\
MouseMoveEvent 258 147 0 0 0 t\n\
MouseMoveEvent 260 146 0 0 0 t\n\
MouseMoveEvent 262 145 0 0 0 t\n\
MouseMoveEvent 263 144 0 0 0 t\n\
MouseMoveEvent 264 144 0 0 0 t\n\
MouseMoveEvent 265 144 0 0 0 t\n\
MouseMoveEvent 266 144 0 0 0 t\n\
LeftButtonPressEvent 266 144 0 0 0 t\n\
RenderEvent 266 144 0 0 0 t\n\
MouseMoveEvent 265 144 0 0 0 t\n\
RenderEvent 265 144 0 0 0 t\n\
MouseMoveEvent 264 144 0 0 0 t\n\
RenderEvent 264 144 0 0 0 t\n\
MouseMoveEvent 263 144 0 0 0 t\n\
RenderEvent 263 144 0 0 0 t\n\
MouseMoveEvent 260 144 0 0 0 t\n\
RenderEvent 260 144 0 0 0 t\n\
MouseMoveEvent 258 144 0 0 0 t\n\
RenderEvent 258 144 0 0 0 t\n\
MouseMoveEvent 255 144 0 0 0 t\n\
RenderEvent 255 144 0 0 0 t\n\
MouseMoveEvent 253 144 0 0 0 t\n\
RenderEvent 253 144 0 0 0 t\n\
MouseMoveEvent 250 144 0 0 0 t\n\
RenderEvent 250 144 0 0 0 t\n\
MouseMoveEvent 248 144 0 0 0 t\n\
RenderEvent 248 144 0 0 0 t\n\
MouseMoveEvent 247 144 0 0 0 t\n\
RenderEvent 247 144 0 0 0 t\n\
MouseMoveEvent 245 144 0 0 0 t\n\
RenderEvent 245 144 0 0 0 t\n\
MouseMoveEvent 245 144 0 0 0 t\n\
RenderEvent 245 144 0 0 0 t\n\
MouseMoveEvent 244 144 0 0 0 t\n\
RenderEvent 244 144 0 0 0 t\n\
MouseMoveEvent 243 144 0 0 0 t\n\
RenderEvent 243 144 0 0 0 t\n\
MouseMoveEvent 242 144 0 0 0 t\n\
RenderEvent 242 144 0 0 0 t\n\
MouseMoveEvent 241 144 0 0 0 t\n\
RenderEvent 241 144 0 0 0 t\n\
MouseMoveEvent 240 145 0 0 0 t\n\
RenderEvent 240 145 0 0 0 t\n\
MouseMoveEvent 239 145 0 0 0 t\n\
RenderEvent 239 145 0 0 0 t\n\
MouseMoveEvent 238 145 0 0 0 t\n\
RenderEvent 238 145 0 0 0 t\n\
MouseMoveEvent 237 145 0 0 0 t\n\
RenderEvent 237 145 0 0 0 t\n\
MouseMoveEvent 235 145 0 0 0 t\n\
RenderEvent 235 145 0 0 0 t\n\
MouseMoveEvent 233 145 0 0 0 t\n\
RenderEvent 233 145 0 0 0 t\n\
MouseMoveEvent 232 145 0 0 0 t\n\
RenderEvent 232 145 0 0 0 t\n\
MouseMoveEvent 230 145 0 0 0 t\n\
RenderEvent 230 145 0 0 0 t\n\
MouseMoveEvent 229 145 0 0 0 t\n\
RenderEvent 229 145 0 0 0 t\n\
MouseMoveEvent 228 145 0 0 0 t\n\
RenderEvent 228 145 0 0 0 t\n\
MouseMoveEvent 227 145 0 0 0 t\n\
RenderEvent 227 145 0 0 0 t\n\
MouseMoveEvent 226 145 0 0 0 t\n\
RenderEvent 226 145 0 0 0 t\n\
MouseMoveEvent 225 145 0 0 0 t\n\
RenderEvent 225 145 0 0 0 t\n\
MouseMoveEvent 225 145 0 0 0 t\n\
RenderEvent 225 145 0 0 0 t\n\
MouseMoveEvent 224 145 0 0 0 t\n\
RenderEvent 224 145 0 0 0 t\n\
MouseMoveEvent 223 145 0 0 0 t\n\
RenderEvent 223 145 0 0 0 t\n\
MouseMoveEvent 222 145 0 0 0 t\n\
RenderEvent 222 145 0 0 0 t\n\
MouseMoveEvent 221 145 0 0 0 t\n\
RenderEvent 221 145 0 0 0 t\n\
MouseMoveEvent 220 145 0 0 0 t\n\
RenderEvent 220 145 0 0 0 t\n\
MouseMoveEvent 219 145 0 0 0 t\n\
RenderEvent 219 145 0 0 0 t\n\
MouseMoveEvent 218 145 0 0 0 t\n\
RenderEvent 218 145 0 0 0 t\n\
MouseMoveEvent 217 145 0 0 0 t\n\
RenderEvent 217 145 0 0 0 t\n\
MouseMoveEvent 217 145 0 0 0 t\n\
RenderEvent 217 145 0 0 0 t\n\
MouseMoveEvent 216 145 0 0 0 t\n\
RenderEvent 216 145 0 0 0 t\n\
MouseMoveEvent 215 145 0 0 0 t\n\
RenderEvent 215 145 0 0 0 t\n\
MouseMoveEvent 215 145 0 0 0 t\n\
RenderEvent 215 145 0 0 0 t\n\
MouseMoveEvent 213 145 0 0 0 t\n\
RenderEvent 213 145 0 0 0 t\n\
MouseMoveEvent 211 145 0 0 0 t\n\
RenderEvent 211 145 0 0 0 t\n\
MouseMoveEvent 210 145 0 0 0 t\n\
RenderEvent 210 145 0 0 0 t\n\
MouseMoveEvent 209 145 0 0 0 t\n\
RenderEvent 209 145 0 0 0 t\n\
MouseMoveEvent 208 145 0 0 0 t\n\
RenderEvent 208 145 0 0 0 t\n\
MouseMoveEvent 207 145 0 0 0 t\n\
RenderEvent 207 145 0 0 0 t\n\
MouseMoveEvent 206 145 0 0 0 t\n\
RenderEvent 206 145 0 0 0 t\n\
MouseMoveEvent 204 145 0 0 0 t\n\
RenderEvent 204 145 0 0 0 t\n\
MouseMoveEvent 203 145 0 0 0 t\n\
RenderEvent 203 145 0 0 0 t\n\
MouseMoveEvent 202 145 0 0 0 t\n\
RenderEvent 202 145 0 0 0 t\n\
LeftButtonReleaseEvent 202 145 0 0 0 t\n\
RenderEvent 202 145 0 0 0 t\n\
KeyPressEvent 202 145 0 114 1 r\n\
CharEvent 202 145 0 114 1 r\n\
RenderEvent 202 145 0 114 1 r\n\
KeyReleaseEvent 202 145 0 114 1 r\n\
MouseMoveEvent 202 145 0 0 0 r\n\
MouseMoveEvent 201 145 0 0 0 r\n\
MouseMoveEvent 199 142 0 0 0 r\n\
MouseMoveEvent 198 140 0 0 0 r\n\
MouseMoveEvent 197 139 0 0 0 r\n\
MouseMoveEvent 196 138 0 0 0 r\n\
MouseMoveEvent 195 137 0 0 0 r\n\
MouseMoveEvent 194 136 0 0 0 r\n\
MouseMoveEvent 194 135 0 0 0 r\n\
MouseMoveEvent 193 134 0 0 0 r\n\
MouseMoveEvent 193 133 0 0 0 r\n\
MouseMoveEvent 193 131 0 0 0 r\n\
MouseMoveEvent 192 131 0 0 0 r\n\
MouseMoveEvent 192 130 0 0 0 r\n\
MouseMoveEvent 191 129 0 0 0 r\n\
MouseMoveEvent 191 127 0 0 0 r\n\
MouseMoveEvent 190 127 0 0 0 r\n\
MouseMoveEvent 190 125 0 0 0 r\n\
MouseMoveEvent 190 124 0 0 0 r\n\
MouseMoveEvent 188 123 0 0 0 r\n\
MouseMoveEvent 188 122 0 0 0 r\n\
MouseMoveEvent 188 121 0 0 0 r\n\
MouseMoveEvent 188 120 0 0 0 r\n\
MouseMoveEvent 188 118 0 0 0 r\n\
MouseMoveEvent 188 117 0 0 0 r\n\
MouseMoveEvent 188 115 0 0 0 r\n\
MouseMoveEvent 188 112 0 0 0 r\n\
MouseMoveEvent 188 107 0 0 0 r\n\
MouseMoveEvent 188 105 0 0 0 r\n\
MouseMoveEvent 186 100 0 0 0 r\n\
MouseMoveEvent 186 95 0 0 0 r\n\
MouseMoveEvent 183 88 0 0 0 r\n\
MouseMoveEvent 182 82 0 0 0 r\n\
MouseMoveEvent 179 75 0 0 0 r\n\
MouseMoveEvent 176 69 0 0 0 r\n\
MouseMoveEvent 175 66 0 0 0 r\n\
MouseMoveEvent 172 61 0 0 0 r\n\
MouseMoveEvent 169 57 0 0 0 r\n\
MouseMoveEvent 168 54 0 0 0 r\n\
MouseMoveEvent 166 51 0 0 0 r\n\
MouseMoveEvent 165 49 0 0 0 r\n\
MouseMoveEvent 164 48 0 0 0 r\n\
MouseMoveEvent 164 47 0 0 0 r\n\
MouseMoveEvent 163 45 0 0 0 r\n\
MouseMoveEvent 163 45 0 0 0 r\n\
MouseMoveEvent 161 45 0 0 0 r\n\
MouseMoveEvent 161 45 0 0 0 r\n\
MouseMoveEvent 160 45 0 0 0 r\n\
MouseMoveEvent 159 45 0 0 0 r\n\
MouseMoveEvent 158 45 0 0 0 r\n\
MouseMoveEvent 157 45 0 0 0 r\n\
MouseMoveEvent 157 45 0 0 0 r\n\
MouseMoveEvent 156 45 0 0 0 r\n\
MouseMoveEvent 155 45 0 0 0 r\n\
MouseMoveEvent 154 45 0 0 0 r\n\
MouseMoveEvent 153 45 0 0 0 r\n\
LeftButtonPressEvent 153 45 0 0 0 r\n\
RenderEvent 153 45 0 0 0 r\n\
MouseMoveEvent 153 45 0 0 0 r\n\
RenderEvent 153 45 0 0 0 r\n\
MouseMoveEvent 153 44 0 0 0 r\n\
RenderEvent 153 44 0 0 0 r\n\
MouseMoveEvent 153 43 0 0 0 r\n\
RenderEvent 153 43 0 0 0 r\n\
MouseMoveEvent 153 42 0 0 0 r\n\
RenderEvent 153 42 0 0 0 r\n\
MouseMoveEvent 154 41 0 0 0 r\n\
RenderEvent 154 41 0 0 0 r\n\
MouseMoveEvent 154 39 0 0 0 r\n\
RenderEvent 154 39 0 0 0 r\n\
MouseMoveEvent 154 37 0 0 0 r\n\
RenderEvent 154 37 0 0 0 r\n\
MouseMoveEvent 154 35 0 0 0 r\n\
RenderEvent 154 35 0 0 0 r\n\
MouseMoveEvent 154 34 0 0 0 r\n\
RenderEvent 154 34 0 0 0 r\n\
MouseMoveEvent 154 33 0 0 0 r\n\
RenderEvent 154 33 0 0 0 r\n\
MouseMoveEvent 154 32 0 0 0 r\n\
RenderEvent 154 32 0 0 0 r\n\
MouseMoveEvent 154 32 0 0 0 r\n\
RenderEvent 154 32 0 0 0 r\n\
MouseMoveEvent 154 31 0 0 0 r\n\
RenderEvent 154 31 0 0 0 r\n\
MouseMoveEvent 154 29 0 0 0 r\n\
RenderEvent 154 29 0 0 0 r\n\
MouseMoveEvent 154 28 0 0 0 r\n\
RenderEvent 154 28 0 0 0 r\n\
MouseMoveEvent 155 26 0 0 0 r\n\
RenderEvent 155 26 0 0 0 r\n\
MouseMoveEvent 155 25 0 0 0 r\n\
RenderEvent 155 25 0 0 0 r\n\
MouseMoveEvent 155 24 0 0 0 r\n\
RenderEvent 155 24 0 0 0 r\n\
MouseMoveEvent 155 23 0 0 0 r\n\
RenderEvent 155 23 0 0 0 r\n\
MouseMoveEvent 155 21 0 0 0 r\n\
RenderEvent 155 21 0 0 0 r\n\
MouseMoveEvent 155 19 0 0 0 r\n\
RenderEvent 155 19 0 0 0 r\n\
MouseMoveEvent 155 17 0 0 0 r\n\
RenderEvent 155 17 0 0 0 r\n\
MouseMoveEvent 155 16 0 0 0 r\n\
RenderEvent 155 16 0 0 0 r\n\
MouseMoveEvent 155 15 0 0 0 r\n\
RenderEvent 155 15 0 0 0 r\n\
MouseMoveEvent 155 14 0 0 0 r\n\
RenderEvent 155 14 0 0 0 r\n\
MouseMoveEvent 155 13 0 0 0 r\n\
RenderEvent 155 13 0 0 0 r\n\
MouseMoveEvent 156 12 0 0 0 r\n\
RenderEvent 156 12 0 0 0 r\n\
MouseMoveEvent 156 11 0 0 0 r\n\
RenderEvent 156 11 0 0 0 r\n\
MouseMoveEvent 156 10 0 0 0 r\n\
RenderEvent 156 10 0 0 0 r\n\
MouseMoveEvent 156 9 0 0 0 r\n\
RenderEvent 156 9 0 0 0 r\n\
MouseMoveEvent 156 8 0 0 0 r\n\
RenderEvent 156 8 0 0 0 r\n\
MouseMoveEvent 156 7 0 0 0 r\n\
RenderEvent 156 7 0 0 0 r\n\
MouseMoveEvent 156 6 0 0 0 r\n\
RenderEvent 156 6 0 0 0 r\n\
MouseMoveEvent 156 6 0 0 0 r\n\
RenderEvent 156 6 0 0 0 r\n\
MouseMoveEvent 156 6 0 0 0 r\n\
RenderEvent 156 6 0 0 0 r\n\
MouseMoveEvent 156 8 0 0 0 r\n\
RenderEvent 156 8 0 0 0 r\n\
MouseMoveEvent 156 10 0 0 0 r\n\
RenderEvent 156 10 0 0 0 r\n\
MouseMoveEvent 156 12 0 0 0 r\n\
RenderEvent 156 12 0 0 0 r\n\
MouseMoveEvent 156 15 0 0 0 r\n\
RenderEvent 156 15 0 0 0 r\n\
MouseMoveEvent 156 17 0 0 0 r\n\
RenderEvent 156 17 0 0 0 r\n\
MouseMoveEvent 156 19 0 0 0 r\n\
RenderEvent 156 19 0 0 0 r\n\
MouseMoveEvent 156 21 0 0 0 r\n\
RenderEvent 156 21 0 0 0 r\n\
MouseMoveEvent 156 22 0 0 0 r\n\
RenderEvent 156 22 0 0 0 r\n\
MouseMoveEvent 156 23 0 0 0 r\n\
RenderEvent 156 23 0 0 0 r\n\
LeftButtonReleaseEvent 156 23 0 0 0 r\n\
RenderEvent 156 23 0 0 0 r\n\
"
# Create the RenderWindow, Renderer and both Actors
#
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iRen = vtk.vtkRenderWindowInteractor()
iRen.SetRenderWindow(renWin);
# Define callback for the widget
def SelectPolygons(widget, event_string):
'''
The callback takes two parameters.
Parameters:
widget - the object that generates the event.
event_string - the event name (which is a string).
'''
tsWidget
# Create a representation for the widget
tensor = [1,0,0, 0,2,0, 0,0,4]
pos = [1,2,3]
rep = vtk.vtkTensorRepresentation()
tensProp = rep.GetEllipsoidProperty()
tensProp.SetColor(0.4,0.4,0.8)
tensProp.SetRepresentationToWireframe()
rep.SetPlaceFactor(1)
rep.PlaceTensor(tensor,pos)
# The widget proper
tsWidget = vtk.vtkTensorWidget()
tsWidget.SetInteractor(iRen)
tsWidget.SetRepresentation(rep)
tsWidget.AddObserver("EndInteractionEvent", SelectPolygons)
tsWidget.On()
# Handle playback of events
recorder = vtk.vtkInteractorEventRecorder()
recorder.SetInteractor(iRen)
#recorder.SetFileName("record.log")
#recorder.On()
#recorder.Record()
recorder.ReadFromInputStringOn()
recorder.SetInputString(Recording)
# Add the actors to the renderer, set the background and size
#
ren.SetBackground(0.1, 0.2, 0.4)
renWin.SetSize(300, 300)
# render and interact with data
ren.ResetCamera()
renWin.Render()
# Playack events
recorder.Play()
iRen.Start()
| 35.861899 | 73 | 0.654518 | 6,038 | 29,084 | 3.152037 | 0.06161 | 0.17665 | 0.15227 | 0.065994 | 0.877154 | 0.876576 | 0.849359 | 0.211223 | 0.181747 | 0.180118 | 0 | 0.317436 | 0.283386 | 29,084 | 810 | 74 | 35.906173 | 0.59572 | 0.041982 | 0 | 0.147952 | 0 | 0 | 0.000683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001321 | false | 0 | 0.003963 | 0 | 0.005284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
b7cb0e3125c5a79a5d6daa36fec23c39861fdf76 | 128 | py | Python | assembla/tests/auth.tmpl.py | ixc/assembla | 34fe9ed301e488f98b8de68034701ceec0314abe | [
"MIT"
] | null | null | null | assembla/tests/auth.tmpl.py | ixc/assembla | 34fe9ed301e488f98b8de68034701ceec0314abe | [
"MIT"
] | null | null | null | assembla/tests/auth.tmpl.py | ixc/assembla | 34fe9ed301e488f98b8de68034701ceec0314abe | [
"MIT"
] | null | null | null | auth = (
'', # API key, ex: `8a71541e5fb2e4741120`
'' # API key secret, ex: `a260dc4448c81c907fc7c85ad09d31306c425417`
) | 32 | 71 | 0.671875 | 10 | 128 | 8.6 | 0.7 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.413462 | 0.1875 | 128 | 4 | 72 | 32 | 0.413462 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
b7d8951318b6426523f185048d44a646d534b1a2 | 112 | py | Python | billy2pupa/ma.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 33 | 2016-11-05T07:25:48.000Z | 2022-01-31T03:40:43.000Z | billy2pupa/ma.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 16 | 2015-02-05T21:25:58.000Z | 2015-09-18T20:27:06.000Z | billy2pupa/ma.py | backwardn/billy | 07ac788d25a6c79d03dd0e3d55459bbb55e22439 | [
"BSD-3-Clause"
] | 22 | 2015-03-23T07:13:20.000Z | 2016-06-10T04:41:06.000Z | from openstatesapi.jurisdiction import make_jurisdiction
J = make_jurisdiction('ma')
J.url = 'http://mass.gov'
| 22.4 | 56 | 0.776786 | 15 | 112 | 5.666667 | 0.733333 | 0.376471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 112 | 4 | 57 | 28 | 0.841584 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4d121948078c26ed1b0ba1d2c9f769aab1488ea1 | 185 | py | Python | tests/test_environment.py | epandurski/swaptacular_debtor | 0b33c303c6b18e2b9cef396bf40ddef1ad09a8c8 | [
"MIT"
] | null | null | null | tests/test_environment.py | epandurski/swaptacular_debtor | 0b33c303c6b18e2b9cef396bf40ddef1ad09a8c8 | [
"MIT"
] | null | null | null | tests/test_environment.py | epandurski/swaptacular_debtor | 0b33c303c6b18e2b9cef396bf40ddef1ad09a8c8 | [
"MIT"
] | null | null | null | import os
def test_database_uri():
assert os.environ['SQLALCHEMY_DATABASE_URI']
def test_app_configuration(app):
assert app.config['DEBUG']
assert app.config['TESTING']
| 16.818182 | 48 | 0.735135 | 25 | 185 | 5.2 | 0.56 | 0.107692 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151351 | 185 | 10 | 49 | 18.5 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0.124324 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4d232cf962c3a9b536716d7ae181ef867ad6b08a | 189 | py | Python | main/serialize.py | Sotonka/DRF_dropdown | 8faddecc2858baeb97f93d0b7bb65507cf886dfe | [
"MIT"
] | null | null | null | main/serialize.py | Sotonka/DRF_dropdown | 8faddecc2858baeb97f93d0b7bb65507cf886dfe | [
"MIT"
] | null | null | null | main/serialize.py | Sotonka/DRF_dropdown | 8faddecc2858baeb97f93d0b7bb65507cf886dfe | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Country
class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = '__all__' | 23.625 | 53 | 0.740741 | 19 | 189 | 7.105263 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 189 | 8 | 54 | 23.625 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4d2b93f197240d57a3eb65cb97cb20d1a562ca51 | 522 | py | Python | gencove/command/basespace/autoimports/autoimport_list/utils.py | gncv/gencove-cli | b4bcbe5b6a1506544472542af8b2384d21c7cbe4 | [
"Apache-2.0"
] | 1 | 2020-04-28T06:31:53.000Z | 2020-04-28T06:31:53.000Z | gencove/command/basespace/autoimports/autoimport_list/utils.py | gncv/gencove-cli | b4bcbe5b6a1506544472542af8b2384d21c7cbe4 | [
"Apache-2.0"
] | null | null | null | gencove/command/basespace/autoimports/autoimport_list/utils.py | gncv/gencove-cli | b4bcbe5b6a1506544472542af8b2384d21c7cbe4 | [
"Apache-2.0"
] | 1 | 2021-07-29T08:24:51.000Z | 2021-07-29T08:24:51.000Z | """Utilities for processing BaseSpace autoimports."""
def get_line(basespace_autoimport):
"""Build a list of relevant data to be printed.
Args:
basespace_autoimport (BaseSpaceProjectImport): instance of
BaseSpace autoimport
Returns:
list(str): list of relevant data to be printed
"""
return "\t".join(
[
str(basespace_autoimport.id),
str(basespace_autoimport.project_id),
str(basespace_autoimport.identifier),
]
)
| 24.857143 | 66 | 0.628352 | 53 | 522 | 6.056604 | 0.54717 | 0.35514 | 0.205607 | 0.11215 | 0.180685 | 0.180685 | 0.180685 | 0 | 0 | 0 | 0 | 0 | 0.285441 | 522 | 20 | 67 | 26.1 | 0.86059 | 0.482759 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4d4c916c8b269e50474671e27e49ae496e1c057d | 134 | py | Python | programming-laboratory-I/5pvu/serie.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/5pvu/serie.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/5pvu/serie.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Série: PA de razão 3
for i in range(4, 3002, 3):
print i
| 16.75 | 32 | 0.686567 | 23 | 134 | 4 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 0.201493 | 134 | 7 | 33 | 19.142857 | 0.700935 | 0.649254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
4d664d0e78d956523166db866f6d55089b76211a | 295 | py | Python | wavespec/__init__.py | mattkjames7/wavespec | 2928ac3f4fb921a21caba3663b0d7c22e43692fa | [
"MIT"
] | 1 | 2021-01-04T15:08:57.000Z | 2021-01-04T15:08:57.000Z | wavespec/__init__.py | mattkjames7/wavespec | 2928ac3f4fb921a21caba3663b0d7c22e43692fa | [
"MIT"
] | null | null | null | wavespec/__init__.py | mattkjames7/wavespec | 2928ac3f4fb921a21caba3663b0d7c22e43692fa | [
"MIT"
] | null | null | null | from . import Globals
from ._CheckFirstImport import _CheckFirstImport
_CheckFirstImport()
from . import LombScargle
from . import Fourier
from . import Test
from . import Spectrogram
from . import CrossPhase
from . import Filter
from . import PCA
from . import DetectWaves
from . import Tools
| 21.071429 | 48 | 0.8 | 35 | 295 | 6.657143 | 0.371429 | 0.429185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155932 | 295 | 13 | 49 | 22.692308 | 0.935743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4d782d88a26a0c9609ffffa00f48c90348589eb3 | 98 | py | Python | electripy/__main__.py | dylannalex/electripy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | 21 | 2021-10-17T01:29:21.000Z | 2022-03-11T22:39:37.000Z | electripy/__main__.py | dylannalex/ElectriPy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | null | null | null | electripy/__main__.py | dylannalex/ElectriPy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | 3 | 2021-10-30T20:08:50.000Z | 2022-01-15T10:24:37.000Z | from electripy.visualization import simulation
if __name__ == "__main__":
simulation.main()
| 16.333333 | 46 | 0.755102 | 10 | 98 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 47 | 19.6 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 4 |
4d8b24634fea396c409dc1f197b9fb5c3b411aa8 | 95 | py | Python | showroom/archive/models.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 52 | 2016-06-15T17:21:46.000Z | 2022-03-09T14:53:01.000Z | showroom/archive/models.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 24 | 2016-10-18T08:45:18.000Z | 2022-02-18T01:44:56.000Z | showroom/archive/models.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 27 | 2016-10-16T10:51:24.000Z | 2022-03-09T14:53:03.000Z | from collections import namedtuple
VideoGroup = namedtuple('VideoGroup', ['name', 'streams'])
| 23.75 | 58 | 0.757895 | 9 | 95 | 8 | 0.777778 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 95 | 3 | 59 | 31.666667 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4d8b411c7fe52ff88865c3b4828349a608858308 | 148 | py | Python | tests/test_demangle.py | benfred/py-cpp-demangle | 14fb768b1f9eaac304f56b259800cb46de6ff25a | [
"MIT"
] | 23 | 2018-06-28T15:46:02.000Z | 2022-03-19T17:26:23.000Z | tests/test_demangle.py | benfred/py-cpp-demangle | 14fb768b1f9eaac304f56b259800cb46de6ff25a | [
"MIT"
] | 3 | 2019-07-19T11:24:13.000Z | 2021-01-17T20:28:36.000Z | tests/test_demangle.py | benfred/py-cpp-demangle | 14fb768b1f9eaac304f56b259800cb46de6ff25a | [
"MIT"
] | 3 | 2019-04-17T02:47:55.000Z | 2021-08-21T14:27:00.000Z | import doctest
import cpp_demangle
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(cpp_demangle))
return tests
| 18.5 | 54 | 0.783784 | 19 | 148 | 5.947368 | 0.631579 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141892 | 148 | 7 | 55 | 21.142857 | 0.889764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4d938c8218029e2ecb3fd3fdb65774aaf3f737e1 | 123 | py | Python | autocache/__init__.py | tkaemming/autocache | a4539f33ba920324baf6c0e385116fbf0a4f0805 | [
"MIT"
] | 1 | 2019-08-02T13:26:11.000Z | 2019-08-02T13:26:11.000Z | autocache/__init__.py | tkaemming/autocache | a4539f33ba920324baf6c0e385116fbf0a4f0805 | [
"MIT"
] | null | null | null | autocache/__init__.py | tkaemming/autocache | a4539f33ba920324baf6c0e385116fbf0a4f0805 | [
"MIT"
] | null | null | null | from autocache.decorators import cached
# Trick pyflakes into think we actually do something with imported values.
cached
| 24.6 | 74 | 0.829268 | 17 | 123 | 6 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 123 | 4 | 75 | 30.75 | 0.971429 | 0.585366 | 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 | 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 | 0 | 0 | 4 |
4db5cffead7c073693c24f7e0ae5a1ee729c8483 | 1,599 | gyp | Python | binding.gyp | agnat/n2o | d556de47783b528d0f98b85b02433286312eacc8 | [
"MIT"
] | 6 | 2016-07-28T14:04:02.000Z | 2019-06-06T04:03:32.000Z | binding.gyp | agnat/n2o | d556de47783b528d0f98b85b02433286312eacc8 | [
"MIT"
] | null | null | null | binding.gyp | agnat/n2o | d556de47783b528d0f98b85b02433286312eacc8 | [
"MIT"
] | 1 | 2018-06-07T05:18:06.000Z | 2018-06-07T05:18:06.000Z | { 'targets': [
{ 'target_name' : 'n2o'
, 'sources' :
[ 'n2o/arg_from_js.hpp'
, 'n2o/class.hpp'
, 'n2o/config.h'
, 'n2o/converter/arg_from_js.hpp'
, 'n2o/converter/builtin_converters.hpp'
, 'n2o/converter/constructor_function.hpp'
, 'n2o/converter/convertible_function.hpp'
, 'n2o/converter/from_js.hpp'
, 'n2o/converter/registered.hpp'
, 'n2o/converter/registrations.hpp'
, 'n2o/converter/registry.hpp'
, 'n2o/converter/rvalue_from_js_data.hpp'
, 'n2o/converter/to_js_function_type.hpp'
, 'n2o/ctor.hpp'
, 'n2o/default_call_policies.hpp'
, 'n2o/detail/caller.hpp'
, 'n2o/detail/destroy.hpp'
, 'n2o/detail/exception_handler.hpp'
, 'n2o/detail/make_function.hpp'
, 'n2o/detail/property_value.hpp'
, 'n2o/detail/referent_storage.hpp'
, 'n2o/detail/translate_exception.hpp'
, 'n2o/detail/void_ptr.hpp'
, 'n2o/errors.hpp'
, 'n2o/exception_translator.hpp'
, 'n2o/function.hpp'
, 'n2o/function_wrapper.hpp'
, 'n2o/invoke.hpp'
, 'n2o/js_type_info.hpp'
, 'n2o/module.hpp'
, 'n2o/object.hpp'
, 'n2o/objects/object_base.hpp'
, 'n2o/preprocessor.hpp'
, 'n2o/signature.hpp'
, 'n2o/to_js_value.hpp'
, 'n2o/type_id.hpp'
, 'n2o/type_list.hpp'
, 'n2o/value_arg.hpp'
, 'src/binding.cpp'
, 'src/builtin_converters.cpp'
, 'src/errors.cpp'
, 'src/from_js.cpp'
, 'src/function_wrapper.cpp'
, 'src/registry.cpp'
, 'src/type_id.cpp'
]
, 'includes': ['n2o.gypi']
, 'all_dependent_settings': { 'includes': ['n2o.gypi'] }
}
]}
| 29.072727 | 58 | 0.626642 | 204 | 1,599 | 4.720588 | 0.308824 | 0.224299 | 0.140187 | 0.037383 | 0.062305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031832 | 0.194497 | 1,599 | 54 | 59 | 29.611111 | 0.715839 | 0 | 0 | 0 | 0 | 0 | 0.696496 | 0.453692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4df5070048fb61ec14771996b8d026e72120c9ab | 2,144 | py | Python | src/tutorial/role.py | ndsev/zserio-tutorial-python | 28cc4992f79bbe30efc7ef3fd5ad4d741243e5cc | [
"BSD-3-Clause"
] | 2 | 2021-01-28T14:09:34.000Z | 2021-05-19T07:44:22.000Z | src/tutorial/role.py | ndsev/zserio-tutorial-python | 28cc4992f79bbe30efc7ef3fd5ad4d741243e5cc | [
"BSD-3-Clause"
] | 1 | 2021-10-09T04:02:30.000Z | 2021-10-15T10:15:32.000Z | src/tutorial/role.py | ndsev/zserio-tutorial-python | 28cc4992f79bbe30efc7ef3fd5ad4d741243e5cc | [
"BSD-3-Clause"
] | null | null | null | """
Automatically generated by Zserio Python extension version 2.4.0.
Generator setup: writerCode, pubsubCode, serviceCode, sqlCode.
"""
from __future__ import annotations
import enum
import typing
import zserio
class Role(enum.Enum):
DEVELOPER = 0
TEAM_LEAD = 1
CTO = 2
@classmethod
def from_reader(cls: typing.Type['Role'], reader: zserio.BitStreamReader) -> 'Role':
return cls(reader.read_bits(8))
@classmethod
def from_reader_packed(cls: typing.Type['Role'],
context_node: zserio.array.PackingContextNode,
reader: zserio.BitStreamReader) -> 'Role':
return cls(context_node.context.read(zserio.array.BitFieldArrayTraits(8), reader))
@staticmethod
def create_packing_context(context_node: zserio.array.PackingContextNode) -> None:
context_node.create_context()
def init_packing_context(self, context_node: zserio.array.PackingContextNode) -> None:
context_node.context.init(self.value)
def bitsizeof(self, _bitposition: int = 0) -> int:
return 8
def bitsizeof_packed(self, context_node: zserio.array.PackingContextNode,
bitposition: int) -> int:
return context_node.context.bitsizeof(zserio.array.BitFieldArrayTraits(8),
bitposition, self.value)
def initialize_offsets(self, bitposition: int) -> int:
return bitposition + self.bitsizeof(bitposition)
def initialize_offsets_packed(self, context_node: zserio.array.PackingContextNode,
bitposition: int) -> int:
return bitposition + self.bitsizeof_packed(context_node, bitposition)
def write(self, writer: zserio.BitStreamWriter, *, zserio_call_initialize_offsets: bool = True) -> None:
del zserio_call_initialize_offsets
writer.write_bits(self.value, 8)
def write_packed(self, context_node: zserio.array.PackingContextNode,
writer: zserio.BitStreamWriter) -> None:
context_node.context.write(zserio.array.BitFieldArrayTraits(8), writer, self.value)
| 38.285714 | 108 | 0.678638 | 230 | 2,144 | 6.152174 | 0.278261 | 0.093286 | 0.072085 | 0.093286 | 0.354064 | 0.325795 | 0.266431 | 0.180919 | 0.10318 | 0.10318 | 0 | 0.00786 | 0.228545 | 2,144 | 55 | 109 | 38.981818 | 0.847642 | 0.059701 | 0 | 0.105263 | 1 | 0 | 0.007968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.157895 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
128b1ad9461504d2bdcb57044fd45d7cb8836a98 | 2,008 | py | Python | tests/integrations/test_called_with.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 23 | 2015-10-27T20:13:46.000Z | 2021-12-22T03:18:29.000Z | tests/integrations/test_called_with.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 70 | 2016-09-29T07:30:06.000Z | 2020-08-26T06:42:50.000Z | tests/integrations/test_called_with.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 10 | 2015-05-13T17:35:21.000Z | 2021-05-06T12:40:01.000Z | from unittest import TestCase
from mock import Mock
from robber import expect
from tests import must_fail
class TestCalledWithIntegrations(TestCase):
def test_called_with_one_arg_success(self):
mock = Mock()
mock(1)
expect(mock).to.be.called_with(1)
def test_called_with_multiple_args_success(self):
mock = Mock()
mock(1, 2, 3, a=4, b=5)
expect(mock).to.be.called_with(1, 2, 3, a=4, b=5)
def test_called_with_only_kwargs_success(self):
mock = Mock()
mock(a=4, b=5)
expect(mock).to.be.called_with(a=4, b=5)
@must_fail
def test_not_called(self):
mock = Mock()
expect(mock).to.be.called_with(1)
@must_fail
def test_called_with_one_arg_failure(self):
mock = Mock()
mock(2)
expect(mock).to.be.called_with(1)
@must_fail
def test_called_with_multiple_args_failure(self):
mock = Mock()
mock(1, 2, 3)
expect(mock).to.be.called_with(1, 2, 3, a=4, b=5)
@must_fail
def test_called_with_only_kwargs_failure(self):
mock = Mock()
mock(a=1, b=2)
expect(mock).to.be.called_with(a=4, b=5)
def test_called_not_a_mock(self):
self.assertRaises(TypeError, expect('a').to.be.called_with, 1)
self.assertRaises(TypeError, expect(1).to.be.called_with, 1)
def test_not_called_with_one_arg_success(self):
mock = Mock()
mock(2)
expect(mock).not_to.be.called_with(1)
def test_not_called_with_multiple_args_success(self):
mock = Mock()
mock(1, 2, 3)
expect(mock).not_to.be.called_with(1, 2, 3, a=4, b=5)
@must_fail
def test_not_called_with_one_arg_failure(self):
mock = Mock()
mock(1)
expect(mock).not_to.be.called_with(1)
@must_fail
def test_not_called_with_multiple_args_failure(self):
mock = Mock()
mock(1, 2, 3, a=4, b=5)
expect(mock).not_to.be.called_with(1, 2, 3, a=4, b=5)
| 27.506849 | 70 | 0.62749 | 323 | 2,008 | 3.640867 | 0.114551 | 0.195578 | 0.110544 | 0.154762 | 0.814626 | 0.761905 | 0.727041 | 0.670918 | 0.64881 | 0.512755 | 0 | 0.037111 | 0.248506 | 2,008 | 72 | 71 | 27.888889 | 0.742213 | 0 | 0 | 0.631579 | 0 | 0 | 0.000498 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.210526 | false | 0 | 0.070175 | 0 | 0.298246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
12a35c967ee5cc3aa6d711e8709d8af7b4c534ef | 17,366 | py | Python | output/models/sun_data/elem_decl/name/name008/name00804/name00804_xsd/name00804.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/elem_decl/name/name008/name00804/name00804_xsd/name00804.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/elem_decl/name/name008/name00804/name00804_xsd/name00804.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "ElemDecl/name"
@dataclass
class H:
class Meta:
name = "H---"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class H111:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Hhhh:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class II:
class Meta:
name = "I--I"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class I11I:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class IiiI:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class JJ:
class Meta:
name = "J-J-"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class J1J1:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class JjJj:
class Meta:
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class KKk:
class Meta:
name = "K-KK"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class K1Kk:
class Meta:
name = "K1KK"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class KkKk:
class Meta:
name = "KkKK"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Ll:
class Meta:
name = "LL--"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Ll11:
class Meta:
name = "LL11"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Llll:
class Meta:
name = "LLll"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class MmM:
class Meta:
name = "MM-M"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Mm1M:
class Meta:
name = "MM1M"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class MmmM:
class Meta:
name = "MMmM"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Nnn:
class Meta:
name = "NNN-"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Nnn1:
class Meta:
name = "NNN1"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Nnnn:
class Meta:
name = "NNNn"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Oooo:
class Meta:
name = "OOOO"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Aaaa:
class Meta:
name = "aaaa"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Bbb0:
class Meta:
name = "bbb0"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class BbbB:
class Meta:
name = "bbbB"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Bbb:
class Meta:
name = "bbb_"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Cc0C:
class Meta:
name = "cc0c"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class CcCc:
class Meta:
name = "ccCc"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class CcC:
class Meta:
name = "cc_c"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Dd00:
class Meta:
name = "dd00"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class DdDd:
class Meta:
name = "ddDD"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Dd:
class Meta:
name = "dd__"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class E0Ee:
class Meta:
name = "e0ee"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class EEee:
class Meta:
name = "eEee"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class EEe:
class Meta:
name = "e_ee"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class F0F0:
class Meta:
name = "f0f0"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class FFfF:
class Meta:
name = "fFfF"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class FF:
class Meta:
name = "f_f_"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class G000:
class Meta:
name = "g000"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class GGgg:
class Meta:
name = "gGGG"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class G:
class Meta:
name = "g___"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class P00P:
class Meta:
name = "p00p"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class PPpp:
class Meta:
name = "pPPp"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class PP:
class Meta:
name = "p__p"
namespace = "ElemDecl/name"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
@dataclass
class Root:
class Meta:
name = "root"
namespace = "ElemDecl/name"
aaaa: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
bbb_b: Optional[int] = field(
default=None,
metadata={
"name": "bbbB",
"type": "Element",
"required": True,
}
)
cc_cc: Optional[int] = field(
default=None,
metadata={
"name": "ccCc",
"type": "Element",
"required": True,
}
)
dd_dd: Optional[int] = field(
default=None,
metadata={
"name": "ddDD",
"type": "Element",
"required": True,
}
)
e_eee: Optional[int] = field(
default=None,
metadata={
"name": "eEee",
"type": "Element",
"required": True,
}
)
f_ff_f: Optional[int] = field(
default=None,
metadata={
"name": "fFfF",
"type": "Element",
"required": True,
}
)
p_ppp: Optional[int] = field(
default=None,
metadata={
"name": "pPPp",
"type": "Element",
"required": True,
}
)
g_ggg: Optional[int] = field(
default=None,
metadata={
"name": "gGGG",
"type": "Element",
"required": True,
}
)
hhhh: Optional[int] = field(
default=None,
metadata={
"name": "Hhhh",
"type": "Element",
"required": True,
}
)
iii_i: Optional[int] = field(
default=None,
metadata={
"name": "IiiI",
"type": "Element",
"required": True,
}
)
jj_jj: Optional[int] = field(
default=None,
metadata={
"name": "JjJj",
"type": "Element",
"required": True,
}
)
kk_kk: Optional[int] = field(
default=None,
metadata={
"name": "KkKK",
"type": "Element",
"required": True,
}
)
llll: Optional[int] = field(
default=None,
metadata={
"name": "LLll",
"type": "Element",
"required": True,
}
)
mmm_m: Optional[int] = field(
default=None,
metadata={
"name": "MMmM",
"type": "Element",
"required": True,
}
)
nnnn: Optional[int] = field(
default=None,
metadata={
"name": "NNNn",
"type": "Element",
"required": True,
}
)
oooo: Optional[int] = field(
default=None,
metadata={
"name": "OOOO",
"type": "Element",
"required": True,
}
)
bbb0: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
cc0c: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
dd00: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
e0ee: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
f0f0: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
p00p: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
g000: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
bbb: Optional[int] = field(
default=None,
metadata={
"name": "bbb_",
"type": "Element",
"required": True,
}
)
cc_c: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
dd: Optional[int] = field(
default=None,
metadata={
"name": "dd__",
"type": "Element",
"required": True,
}
)
e_ee: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"required": True,
}
)
f_f: Optional[int] = field(
default=None,
metadata={
"name": "f_f_",
"type": "Element",
"required": True,
}
)
p_p: Optional[int] = field(
default=None,
metadata={
"name": "p__p",
"type": "Element",
"required": True,
}
)
g: Optional[int] = field(
default=None,
metadata={
"name": "g___",
"type": "Element",
"required": True,
}
)
h111: Optional[int] = field(
default=None,
metadata={
"name": "H111",
"type": "Element",
"required": True,
}
)
i11_i: Optional[int] = field(
default=None,
metadata={
"name": "I11I",
"type": "Element",
"required": True,
}
)
j1_j1: Optional[int] = field(
default=None,
metadata={
"name": "J1J1",
"type": "Element",
"required": True,
}
)
k1_kk: Optional[int] = field(
default=None,
metadata={
"name": "K1KK",
"type": "Element",
"required": True,
}
)
ll11: Optional[int] = field(
default=None,
metadata={
"name": "LL11",
"type": "Element",
"required": True,
}
)
mm1_m: Optional[int] = field(
default=None,
metadata={
"name": "MM1M",
"type": "Element",
"required": True,
}
)
nnn1: Optional[int] = field(
default=None,
metadata={
"name": "NNN1",
"type": "Element",
"required": True,
}
)
h: Optional[int] = field(
default=None,
metadata={
"name": "H---",
"type": "Element",
"required": True,
}
)
i_i: Optional[int] = field(
default=None,
metadata={
"name": "I--I",
"type": "Element",
"required": True,
}
)
j_j: Optional[int] = field(
default=None,
metadata={
"name": "J-J-",
"type": "Element",
"required": True,
}
)
k_kk: Optional[int] = field(
default=None,
metadata={
"name": "K-KK",
"type": "Element",
"required": True,
}
)
ll: Optional[int] = field(
default=None,
metadata={
"name": "LL--",
"type": "Element",
"required": True,
}
)
mm_m: Optional[int] = field(
default=None,
metadata={
"name": "MM-M",
"type": "Element",
"required": True,
}
)
nnn: Optional[int] = field(
default=None,
metadata={
"name": "NNN-",
"type": "Element",
"required": True,
}
)
| 17.995855 | 40 | 0.448923 | 1,436 | 17,366 | 5.39415 | 0.059889 | 0.124968 | 0.181771 | 0.261296 | 0.781823 | 0.750323 | 0.750323 | 0.644591 | 0.576814 | 0.576814 | 0 | 0.007666 | 0.421571 | 17,366 | 964 | 41 | 18.014523 | 0.763464 | 0 | 0 | 0.588164 | 0 | 0 | 0.127491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002415 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
12c4b09ed62205f77292500f3f74769286bfbc10 | 312 | py | Python | lecture03/exercise03-A/template.py | nd-cse-34872-su21/cse-34872-su21-examples | 0294bb0964b502bbb8541054977988c4a3b49dab | [
"MIT"
] | 2 | 2020-06-01T16:46:39.000Z | 2020-12-01T21:50:12.000Z | lecture03/02_perfect/template.py | nd-cse-34872-su20/cse-34872-su20-examples | 683039c19b2e2bd0c3c28713b73e46a9deaa227c | [
"MIT"
] | null | null | null | lecture03/02_perfect/template.py | nd-cse-34872-su20/cse-34872-su20-examples | 683039c19b2e2bd0c3c28713b73e46a9deaa227c | [
"MIT"
] | 6 | 2020-06-03T23:56:26.000Z | 2020-08-26T15:05:17.000Z | #!/usr/bin/env python3
# Perfect Square
import sys
def is_perfect_square(n):
# TODO: Use binary search to determine if n is a perfect valid square
return False
def main():
for n in map(int, sys.stdin):
print('Yes' if is_perfect_square(n) else 'No')
if __name__ == '__main__':
main()
| 18.352941 | 73 | 0.663462 | 50 | 312 | 3.9 | 0.66 | 0.2 | 0.153846 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.227564 | 312 | 16 | 74 | 19.5 | 0.804979 | 0.333333 | 0 | 0 | 0 | 0 | 0.063415 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
12e9b6d214ea3842fb3c3e11f35ba0e4eb6a9cfb | 233 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-themes-DarkTheme-colorbar_horizontal-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-themes-DefaultTheme-colorbar_horizontal-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-themes-DarkTheme-colorbar_horizontal-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Set the default horizontal colorbar width to 0.6.
#
import pyvista
pyvista.global_theme.colorbar_horizontal.width = 0.6
#
# Set the default horizontal colorbar height to 0.2.
#
pyvista.global_theme.colorbar_horizontal.height = 0.2
| 25.888889 | 53 | 0.793991 | 36 | 233 | 5.027778 | 0.416667 | 0.066298 | 0.143646 | 0.254144 | 0.740331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.124464 | 233 | 8 | 54 | 29.125 | 0.848039 | 0.429185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
12f9eb14c4d14232ec004d1da7e9df7bd619af3d | 24 | py | Python | bdd100k/label/__init__.py | Celeven1996/bdd100k | 3b49d1b25f903ea9f2465590b3b7be115b6f0cb5 | [
"BSD-3-Clause"
] | 193 | 2020-09-22T09:48:17.000Z | 2022-03-31T20:49:24.000Z | bdd100k/label/__init__.py | Celeven1996/bdd100k | 3b49d1b25f903ea9f2465590b3b7be115b6f0cb5 | [
"BSD-3-Clause"
] | 60 | 2020-09-28T15:44:40.000Z | 2022-03-31T07:58:58.000Z | bdd100k/label/__init__.py | Celeven1996/bdd100k | 3b49d1b25f903ea9f2465590b3b7be115b6f0cb5 | [
"BSD-3-Clause"
] | 41 | 2020-09-27T02:52:20.000Z | 2022-02-21T03:33:39.000Z | """Format utilities."""
| 12 | 23 | 0.625 | 2 | 24 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 24 | 1 | 24 | 24 | 0.681818 | 0.708333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
12fa3e17f8acffb41be9fb888167250be58e3161 | 3,421 | py | Python | docs/epilog.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | 5 | 2015-03-23T10:25:40.000Z | 2021-05-29T06:00:40.000Z | docs/epilog.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | null | null | null | docs/epilog.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | 1 | 2019-02-17T14:45:29.000Z | 2019-02-17T14:45:29.000Z | rst_epilog = """
.. |T| image:: /images/Tap.*
:height: 12px
:width: 12px
.. |Q| image:: /images/Untap.*
:height: 12px
:width: 12px
.. |W| image:: /images/mana/W.*
:height: 12px
:width: 12px
.. |U| image:: /images/mana/U.*
:height: 12px
:width: 12px
.. |B| image:: /images/mana/B.*
:height: 12px
:width: 12px
.. |R| image:: /images/mana/R.*
:height: 12px
:width: 12px
.. |G| image:: /images/mana/G.*
:height: 12px
:width: 12px
.. |X| image:: /images/mana/X.*
:height: 12px
:width: 12px
.. |S| image:: /images/mana/S.*
:height: 12px
:width: 12px
.. |0| image:: /images/mana/0.*
:height: 12px
:width: 12px
.. |1| image:: /images/mana/1.*
:height: 12px
:width: 12px
.. |2| image:: /images/mana/2.*
:height: 12px
:width: 12px
.. |3| image:: /images/mana/3.*
:height: 12px
:width: 12px
.. |4| image:: /images/mana/4.*
:height: 12px
:width: 12px
.. |5| image:: /images/mana/5.*
:height: 12px
:width: 12px
.. |6| image:: /images/mana/6.*
:height: 12px
:width: 12px
.. |7| image:: /images/mana/7.*
:height: 12px
:width: 12px
.. |8| image:: /images/mana/8.*
:height: 12px
:width: 12px
.. |9| image:: /images/mana/9.*
:height: 12px
:width: 12px
.. |10| image:: /images/mana/10.*
:height: 12px
:width: 12px
.. |11| image:: /images/mana/11.*
:height: 12px
:width: 12px
.. |12| image:: /images/mana/12.*
:height: 12px
:width: 12px
.. |13| image:: /images/mana/13.*
:height: 12px
:width: 12px
.. |14| image:: /images/mana/14.*
:height: 12px
:width: 12px
.. |15| image:: /images/mana/15.*
:height: 12px
:width: 12px
.. |16| image:: /images/mana/16.*
:height: 12px
:width: 12px
.. |W/U| image:: /images/mana/WU.*
:height: 12px
:width: 12px
.. |W/B| image:: /images/mana/WB.*
:height: 12px
:width: 12px
.. |U/B| image:: /images/mana/UB.*
:height: 12px
:width: 12px
.. |U/R| image:: /images/mana/UR.*
:height: 12px
:width: 12px
.. |B/R| image:: /images/mana/BR.*
:height: 12px
:width: 12px
.. |B/G| image:: /images/mana/BG.*
:height: 12px
:width: 12px
.. |R/W| image:: /images/mana/RW.*
:height: 12px
:width: 12px
.. |R/G| image:: /images/mana/RG.*
:height: 12px
:width: 12px
.. |G/W| image:: /images/mana/GW.*
:height: 12px
:width: 12px
.. |G/U| image:: /images/mana/GU.*
:height: 12px
:width: 12px
.. |2/W| image:: /images/mana/2W.*
:height: 12px
:width: 12px
.. |2/U| image:: /images/mana/2U.*
:height: 12px
:width: 12px
.. |2/B| image:: /images/mana/2B.*
:height: 12px
:width: 12px
.. |2/R| image:: /images/mana/2R.*
:height: 12px
:width: 12px
.. |2/G| image:: /images/mana/2G.*
:height: 12px
:width: 12px
.. |P| image:: /images/mana/P.*
:height: 12px
:width: 12px
.. |W/P| image:: /images/mana/PW.*
:height: 12px
:width: 12px
.. |U/P| image:: /images/mana/PU.*
:height: 12px
:width: 12px
.. |B/P| image:: /images/mana/PB.*
:height: 12px
:width: 12px
.. |R/P| image:: /images/mana/PR.*
:height: 12px
:width: 12px
.. |G/P| image:: /images/mana/PG.*
:height: 12px
:width: 12px
.. |C| image:: /images/C.*
:height: 12px
:width: 12px
.. |PW| image:: /images/PW.*
:height: 12px
:width: 12px
"""
| 16.687805 | 34 | 0.532008 | 459 | 3,421 | 3.962963 | 0.126362 | 0.296317 | 0.404068 | 0.51182 | 0.298516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098526 | 0.246419 | 3,421 | 204 | 35 | 16.769608 | 0.60706 | 0 | 0 | 0.657718 | 0 | 0 | 0.994154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4209bf5e7b6c6cfaa70835bc6547ad9170e158a7 | 76 | py | Python | aizythfinder/aizynthfinder/__init__.py | reymond-group/CASP-and-dataset-performance | ee335a955a42318da24f2a18d7a5709b5fa03c5c | [
"MIT"
] | 18 | 2019-11-13T10:05:30.000Z | 2022-03-22T09:58:43.000Z | aizythfinder/aizynthfinder/__init__.py | reymond-group/CASP-and-dataset-performance | ee335a955a42318da24f2a18d7a5709b5fa03c5c | [
"MIT"
] | 2 | 2020-02-24T10:54:45.000Z | 2021-03-02T09:59:28.000Z | aizythfinder/aizynthfinder/__init__.py | reymond-group/CASP-and-dataset-performance | ee335a955a42318da24f2a18d7a5709b5fa03c5c | [
"MIT"
] | 11 | 2020-02-25T09:37:23.000Z | 2021-05-24T08:27:14.000Z | from .aizynthfinder import AiZynthFinder
from .jupyter_gui import AiZynthApp | 38 | 40 | 0.881579 | 9 | 76 | 7.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 76 | 2 | 41 | 38 | 0.956522 | 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 | 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 | 0 | 0 | 4 |
420bd2238dbdd70942c758211d6efdd7ab312304 | 1,420 | py | Python | test/test_traverse.py | alexey1214/matrix | 792e67ddc5cd5ab7f9c2d92053795b5e355e050c | [
"MIT"
] | null | null | null | test/test_traverse.py | alexey1214/matrix | 792e67ddc5cd5ab7f9c2d92053795b5e355e050c | [
"MIT"
] | null | null | null | test/test_traverse.py | alexey1214/matrix | 792e67ddc5cd5ab7f9c2d92053795b5e355e050c | [
"MIT"
] | null | null | null | from matrix import operations
def test_empty():
matrix = []
answer = []
assert operations._traverse(matrix) == answer
def test_one():
matrix = [[10]]
answer = [10]
assert operations._traverse(matrix) == answer
def test_two():
matrix = [
[10, 20],
[30, 40],
]
answer = [
10, 30,
40, 20,
]
assert operations._traverse(matrix) == answer
def test_three():
matrix = [
[10, 20, 30],
[40, 50, 60],
[70, 80, 90],
]
answer = [
10, 40, 70,
80, 90, 60,
30, 20, 50,
]
assert operations._traverse(matrix) == answer
def test_four():
matrix = [
[10, 20, 30, 40],
[50, 60, 70, 80],
[90, 100, 110, 120],
[130, 140, 150, 160],
]
answer = [
10, 50, 90, 130,
140, 150, 160, 120,
80, 40, 30, 20,
60, 100, 110, 70,
]
assert operations._traverse(matrix) == answer
def test_five():
matrix = [
[10, 20, 30, 40, 50],
[60, 70, 80, 90, 100],
[110, 120, 130, 140, 150],
[160, 170, 180, 190, 200],
[210, 220, 230, 240, 250],
]
answer = [
10, 60, 110, 160, 210,
220, 230, 240, 250, 200,
150, 100, 50, 40, 30,
20, 70, 120, 170, 180,
190, 140, 90, 80, 130,
]
assert operations._traverse(matrix) == answer
| 19.189189 | 49 | 0.46338 | 174 | 1,420 | 3.712644 | 0.229885 | 0.130031 | 0.22291 | 0.278638 | 0.633127 | 0.509288 | 0.509288 | 0.176471 | 0.176471 | 0.176471 | 0 | 0.302273 | 0.380282 | 1,420 | 73 | 50 | 19.452055 | 0.431818 | 0 | 0 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 1 | 0.098361 | false | 0 | 0.016393 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4212b5a650249fdc3f764b952304440199252c12 | 205 | py | Python | civbot/app/service/game_state_notifier.py | keotl/civ5-slack-bot | 90ad0949c725d81fd03d6e7c25f70484ae0cf6a7 | [
"MIT"
] | 4 | 2020-03-22T00:51:50.000Z | 2022-01-14T19:29:28.000Z | civbot/app/service/game_state_notifier.py | keotl/civ5-slack-bot | 90ad0949c725d81fd03d6e7c25f70484ae0cf6a7 | [
"MIT"
] | null | null | null | civbot/app/service/game_state_notifier.py | keotl/civ5-slack-bot | 90ad0949c725d81fd03d6e7c25f70484ae0cf6a7 | [
"MIT"
] | null | null | null | from civbot.app.resource.civhook.civ_hook_model import CivHookStateModel
class GameStateNotifier(object):
def notify(self, game_id: str, state: CivHookStateModel):
raise NotImplementedError
| 25.625 | 72 | 0.790244 | 23 | 205 | 6.913043 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141463 | 205 | 7 | 73 | 29.285714 | 0.903409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
42160156b6693585d7c845ccd2719ff49075602d | 816 | py | Python | graviteeio_cli/graviteeio/apim/apis/actions.py | YoranSys/graviteeio-cli | 9a5f90658e6e376682c26ea07e26fb8ebe8338f3 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/graviteeio/apim/apis/actions.py | YoranSys/graviteeio-cli | 9a5f90658e6e376682c26ea07e26fb8ebe8338f3 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/graviteeio/apim/apis/actions.py | YoranSys/graviteeio-cli | 9a5f90658e6e376682c26ea07e26fb8ebe8338f3 | [
"Apache-2.0"
] | null | null | null | # import click
# @click.command()
# @click.argument('api_id', required=True)
# @click.pass_obj
# def start(obj, api_id):
# """start api"""
# api_client = obj['api_client']
# resp = api_client.start_api(api_id)
# click.echo("API {} is started".format(api_id))
# @click.command()
# @click.argument('api_id', required=True)
# @click.pass_obj
# def stop(obj, api_id):
# """stop api"""
# api_client = obj['api_client']
# resp = api_client.stop_api(api_id)
# click.echo("API {} is stopped".format(api_id))
# @click.command()
# @click.argument('api_id', required=True)
# @click.pass_obj
# def deploy(obj, api_id):
# """deploy api configuration"""
# api_client = obj['api_client']
# resp = api_client.deploy_api(api_id)
# click.echo("API {} is deployed".format(api_id))
| 25.5 | 53 | 0.640931 | 117 | 816 | 4.239316 | 0.196581 | 0.120968 | 0.100806 | 0.15121 | 0.739919 | 0.739919 | 0.739919 | 0.606855 | 0.538306 | 0.389113 | 0 | 0 | 0.170343 | 816 | 31 | 54 | 26.322581 | 0.732644 | 0.930147 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
423f357accd734a066b556ff19ed745d3c8a2da8 | 132 | py | Python | nets/ResNet50.py | forkshim/My-LabelImg | 70438923a1650ce671eeaaec199ea6b6a26404b5 | [
"MIT"
] | 2 | 2022-01-05T02:40:53.000Z | 2022-02-27T11:23:43.000Z | nets/ResNet50.py | SuJiKiNen/My-LabelImg | 70438923a1650ce671eeaaec199ea6b6a26404b5 | [
"MIT"
] | null | null | null | nets/ResNet50.py | SuJiKiNen/My-LabelImg | 70438923a1650ce671eeaaec199ea6b6a26404b5 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
"""
This python file implements the resnet-50
network used for training and testing
""" | 16.5 | 41 | 0.772727 | 21 | 132 | 4.857143 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.174242 | 132 | 8 | 42 | 16.5 | 0.917431 | 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 | 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 | 0 | 0 | 4 |
42539062b9b9b63facb10bd71ecd9a2830fe3a9a | 70 | py | Python | courspider/faculty_calendar_resources/faculty.py | Zylphrex/courspider | bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd | [
"MIT"
] | null | null | null | courspider/faculty_calendar_resources/faculty.py | Zylphrex/courspider | bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd | [
"MIT"
] | null | null | null | courspider/faculty_calendar_resources/faculty.py | Zylphrex/courspider | bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd | [
"MIT"
] | null | null | null | from enum import Enum
class Faculty(Enum):
ARTS_AND_SCIENCE = 0
| 11.666667 | 24 | 0.728571 | 11 | 70 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.214286 | 70 | 5 | 25 | 14 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
42843f25f8199ca4ea989eb1be49e6be6684451c | 82 | py | Python | django_simple_admin_email/__init__.py | twrought/django-simple-admin-email | 72356b04838bcc6b588d7ddc03294c20d4e11b0a | [
"MIT"
] | 2 | 2019-12-30T22:08:53.000Z | 2020-01-03T02:03:53.000Z | django_simple_admin_email/__init__.py | twrought/django-simple-admin-email | 72356b04838bcc6b588d7ddc03294c20d4e11b0a | [
"MIT"
] | null | null | null | django_simple_admin_email/__init__.py | twrought/django-simple-admin-email | 72356b04838bcc6b588d7ddc03294c20d4e11b0a | [
"MIT"
] | null | null | null | default_app_config = "django_simple_admin_email.apps.DjangoSimpleAdminEmailConfig" | 82 | 82 | 0.914634 | 9 | 82 | 7.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 82 | 1 | 82 | 82 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.710843 | 0.710843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4284e6304336d3e74ce405e9e72ad679aee47f8d | 221 | py | Python | leadsaveurs/searcher/serializers/SearchSerialziers.py | hamzabouissi/leadsaveurs | befb1a36d4a0712ff58fb408381e93123b9a00ec | [
"MIT"
] | null | null | null | leadsaveurs/searcher/serializers/SearchSerialziers.py | hamzabouissi/leadsaveurs | befb1a36d4a0712ff58fb408381e93123b9a00ec | [
"MIT"
] | 1 | 2022-03-01T11:23:01.000Z | 2022-03-01T11:23:01.000Z | leadsaveurs/searcher/serializers/SearchSerialziers.py | hamzabouissi/leadsaveurs | befb1a36d4a0712ff58fb408381e93123b9a00ec | [
"MIT"
] | null | null | null | from rest_framework import serializers
from leadsaveurs.users.models import User
class HomeSearchSerializerOut(serializers.ModelSerializer):
class Meta:
model = User
fields = ("id", "name", "role")
| 22.1 | 59 | 0.719457 | 23 | 221 | 6.869565 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19457 | 221 | 9 | 60 | 24.555556 | 0.88764 | 0 | 0 | 0 | 0 | 0 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
42967c4156fa823d75397c1a7b6eb6b19c2011ae | 1,355 | py | Python | entry/migrations/0010_auto_20201027_1539.py | Shrinidhi1904/AtlasCopco | 3116d8f7bdff9635952c3db741adc8abe93bfb72 | [
"MIT"
] | 1 | 2021-07-10T12:13:17.000Z | 2021-07-10T12:13:17.000Z | entry/migrations/0010_auto_20201027_1539.py | Shrinidhi1904/AtlasCopco | 3116d8f7bdff9635952c3db741adc8abe93bfb72 | [
"MIT"
] | null | null | null | entry/migrations/0010_auto_20201027_1539.py | Shrinidhi1904/AtlasCopco | 3116d8f7bdff9635952c3db741adc8abe93bfb72 | [
"MIT"
] | 10 | 2020-09-25T14:04:02.000Z | 2021-11-04T18:41:40.000Z | # Generated by Django 3.1.1 on 2020-10-27 10:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entry', '0009_auto_20201027_1300'),
]
operations = [
migrations.AlterField(
model_name='visitor',
name='in_time',
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name='visitor',
name='out_time',
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name='visitor',
name='photo_id',
field=models.ImageField(blank=True, null=True, upload_to='media/photo_id'),
),
migrations.AlterField(
model_name='visitor',
name='photo_id_number',
field=models.CharField(blank=True, max_length=20, null=True),
),
migrations.AlterField(
model_name='visitor',
name='qrcode',
field=models.ImageField(blank=True, null=True, upload_to='media/qrcodes'),
),
migrations.AlterField(
model_name='visitor',
name='token',
field=models.CharField(blank=True, max_length=200, null=True),
),
]
| 30.795455 | 88 | 0.550554 | 133 | 1,355 | 5.466165 | 0.383459 | 0.165062 | 0.206327 | 0.23934 | 0.729023 | 0.729023 | 0.618982 | 0.514443 | 0.37414 | 0.37414 | 0 | 0.039735 | 0.331365 | 1,355 | 43 | 89 | 31.511628 | 0.762693 | 0.03321 | 0 | 0.540541 | 1 | 0 | 0.115415 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
42a1e9e0431fbc04e42573fc951b6f6735c39845 | 7,818 | py | Python | src/genie/libs/parser/iosxr/tests/ShowRunRouterIsis/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowRunRouterIsis/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowRunRouterIsis/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
'isis': {
'test2': {
'address_family': {
'ipv4_unicast': {
'advertise': 'passive_only',
'metric': '100000',
'metric_style': 'wide',
'redistribute': 'static '
'level_2 '
'metric '
'10',
'router_id': '10.25.5.6',
'segment_routing': {'mpls': 'sr-prefer'},
'spf': 'prefix_priority '
'medium '
'ISIS_PREFIX_PRIORITY_MEDIUM',
'spf_interval': {'initial_wait': '50',
'maximum_wait': '5000',
'secondary_wait': '150'}}},
'interfaces': {
'Bundle-Ether15': {
'address_family': {
'ipv4_unicast': {
'fast_reroute': 'per_prefix '
'ti_lfa',
'metric': '10'}
},
'other': ['point-to-point']},
'HundredGigE0/0/0/100': {
'address_family': {
'ipv4_unicast': {
'fast_reroute': 'per_prefix '
'ti_lfa',
'metric': '10'}
},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/101': {
'address_family': {
'ipv4_unicast': {
'fast_reroute': 'per_prefix '
'ti_lfa',
'metric': '10'}},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/102': {
'address_family': {
'ipv4_unicast': {
'metric': '10'}},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/103': {
'address_family': {
'ipv4_unicast': {
'fast_reroute': 'per_prefix '
'ti_lfa',
'metric': '10'}},
'bfd': {'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/104': {
'address_family': {
'ipv4_unicast': {
'metric': '100'}
},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/105': {
'address_family': {
'ipv4_unicast': {
'metric': '100'}
},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/106': {
'address_family': {
'ipv4_unicast': {
'metric': '100'}
},
'bfd': {'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/107': {
'address_family': {
'ipv4_unicast': {
'metric': '100'}},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/108': {
'address_family': {
'ipv4_unicast': {
'metric': '200000'}},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'HundredGigE0/0/0/109': {
'address_family': {
'ipv4_unicast': {
'metric': '200000'}
},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point',
'RP/0/RP0/CPU0:spine1-tatooine#']},
'Loopback0': {
'address_family': {
'ipv4_unicast': {
'metric': '10',
'prefix_sid': 'index '
'288'}
},
'other': ['passive']},
'TenGigE0/0/0/0/200': {},
'TenGigE0/0/0/0/201': {
'address_family': {
'ipv4_unicast': {
'metric': '10'}
},
'bfd': {
'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']},
'TenGigE0/0/0/0/202': {
'address_family': {
'ipv4_unicast': {
'metric': '10'}
},
'bfd': {'fast_detect': 'ipv4',
'minimum_interval': '250',
'multiplier': '3'},
'other': ['point-to-point']}
},
'is_type': 'level-2-only',
'log': 'adjacency changes',
'lsp_gen_interval': {
'initial_wait': '20',
'maximum_wait': '5000',
'secondary_wait': '100'},
'lsp_refresh_interval': '35000',
'max_lsp_lifetime': '65535',
'net': '10.9.3.4.5.6',
'segment_routing': {},
'set_overload_bit': 'on-startup 300'}
}
}
| 44.931034 | 69 | 0.27846 | 434 | 7,818 | 4.799539 | 0.246544 | 0.015362 | 0.12242 | 0.172828 | 0.734037 | 0.707153 | 0.691791 | 0.676908 | 0.676908 | 0.676908 | 0 | 0.082412 | 0.594909 | 7,818 | 173 | 70 | 45.190751 | 0.575308 | 0 | 0 | 0.619883 | 0 | 0 | 0.289278 | 0.007293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
42ad611b7957459e33a1643314fd874f0339ae45 | 50 | py | Python | encrypt_config/exceptions.py | luiscberrocal/encrypt_config | 659dff6180117c421191b998512b7da6bbd0039f | [
"Apache-2.0"
] | null | null | null | encrypt_config/exceptions.py | luiscberrocal/encrypt_config | 659dff6180117c421191b998512b7da6bbd0039f | [
"Apache-2.0"
] | null | null | null | encrypt_config/exceptions.py | luiscberrocal/encrypt_config | 659dff6180117c421191b998512b7da6bbd0039f | [
"Apache-2.0"
] | null | null | null | class EncryptConfigException(Exception):
pass
| 16.666667 | 40 | 0.8 | 4 | 50 | 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 2 | 41 | 25 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
35fc9cd9f9a24573b8b1bc17fc9577479c2055a3 | 30 | py | Python | Bot/config.py | yamozha/discordpibot | 4995f24a4a249d95e9ccfc8e37f7eebcea8f9a9e | [
"MIT"
] | 2 | 2018-07-04T15:03:32.000Z | 2018-07-28T10:50:26.000Z | Bot/config.py | yamozha/discordpibot | 4995f24a4a249d95e9ccfc8e37f7eebcea8f9a9e | [
"MIT"
] | null | null | null | Bot/config.py | yamozha/discordpibot | 4995f24a4a249d95e9ccfc8e37f7eebcea8f9a9e | [
"MIT"
] | null | null | null | TOKEN = 'insert bot key here'
| 15 | 29 | 0.7 | 5 | 30 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 30 | 1 | 30 | 30 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c4055950544578ae8ce375025966b559861462aa | 929 | gyp | Python | chrome/browser/resources/settings/settings_main/compiled_resources2.gyp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/browser/resources/settings/settings_main/compiled_resources2.gyp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/resources/settings/settings_main/compiled_resources2.gyp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'settings_main_rendered',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:assert',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'settings_main',
'dependencies': [
'settings_main_rendered',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:promise_resolver',
'../settings_page/compiled_resources2.gyp:main_page_behavior',
'../settings_page/compiled_resources2.gyp:settings_router',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
| 35.730769 | 83 | 0.642626 | 102 | 929 | 5.617647 | 0.54902 | 0.157068 | 0.183246 | 0.109948 | 0.509599 | 0.394415 | 0.394415 | 0.394415 | 0 | 0 | 0 | 0.014589 | 0.188375 | 929 | 25 | 84 | 37.16 | 0.745358 | 0.166846 | 0 | 0.318182 | 0 | 0 | 0.714286 | 0.607792 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c437bb93c915f39db64fcf7418357195a8f540c4 | 199 | py | Python | tests/utils.py | kannaiah/pycobertura | b5126f2dd4d425f2b83eaa4edf256485b0544559 | [
"MIT"
] | null | null | null | tests/utils.py | kannaiah/pycobertura | b5126f2dd4d425f2b83eaa4edf256485b0544559 | [
"MIT"
] | 1 | 2021-06-07T13:11:59.000Z | 2021-06-08T09:54:08.000Z | tests/utils.py | nilleb/pycobertura | 25ce699cfb9410d24f8a995b11dce75f64468e75 | [
"MIT"
] | null | null | null | SOURCE_FILE = 'tests/cobertura.xml'
def make_cobertura(xml=SOURCE_FILE, *args, **kwargs):
from pycobertura import Cobertura
cobertura = Cobertura(xml, *args, **kwargs)
return cobertura
| 24.875 | 53 | 0.728643 | 24 | 199 | 5.916667 | 0.541667 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160804 | 199 | 7 | 54 | 28.428571 | 0.850299 | 0 | 0 | 0 | 0 | 0 | 0.095477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c464ce4664bd6ffe627ff35319ad23dbf43b84ed | 266 | py | Python | source/dl/callbacks/CometCallback.py | FrancescoSaverioZuppichini/Smash-Bros-Melee | 4ca6f67240bfe60e86a82409c4056aaa25a5a860 | [
"MIT"
] | null | null | null | source/dl/callbacks/CometCallback.py | FrancescoSaverioZuppichini/Smash-Bros-Melee | 4ca6f67240bfe60e86a82409c4056aaa25a5a860 | [
"MIT"
] | null | null | null | source/dl/callbacks/CometCallback.py | FrancescoSaverioZuppichini/Smash-Bros-Melee | 4ca6f67240bfe60e86a82409c4056aaa25a5a860 | [
"MIT"
] | null | null | null | from poutyne.framework.callbacks import Callback
class CometCallback(Callback):
def __init__(self, experiment):
super().__init__()
self.experiment = experiment
def on_epoch_end(self, epoch, logs):
self.experiment.log_metrics(logs)
| 24.181818 | 48 | 0.706767 | 30 | 266 | 5.9 | 0.633333 | 0.237288 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199248 | 266 | 10 | 49 | 26.6 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c46743647b8de2f172d4e6ba2862fcc9a3a0135d | 247 | py | Python | examples/python/cpu/tensors/ocean_eye.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | 27 | 2018-08-16T21:32:49.000Z | 2021-11-30T10:31:08.000Z | examples/python/cpu/tensors/ocean_eye.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | null | null | null | examples/python/cpu/tensors/ocean_eye.py | kant/ocean-tensor-package | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | [
"Apache-2.0"
] | 13 | 2018-08-17T17:33:16.000Z | 2021-11-30T10:31:09.000Z | import pyOcean_cpu as ocean
a = ocean.eye(3)
print(a)
a = ocean.eye(3,ocean.int16)
print(a)
a = ocean.eye(3,ocean.cpu)
print(a)
a = ocean.eye(2,3,ocean.double)
print(a)
a = ocean.eye(2,4,2)
print(a)
a = ocean.eye(3,4,-1,ocean.cpu)
print(a)
| 11.761905 | 31 | 0.65587 | 54 | 247 | 2.981481 | 0.259259 | 0.223602 | 0.335404 | 0.372671 | 0.559006 | 0.559006 | 0.26087 | 0 | 0 | 0 | 0 | 0.061321 | 0.1417 | 247 | 20 | 32 | 12.35 | 0.698113 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.461538 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
674754e45f32c90b1203cca6982b3e9959dc7627 | 1,449 | py | Python | observatorio/dados/migrations/0010_auto_20201021_1505.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | observatorio/dados/migrations/0010_auto_20201021_1505.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | observatorio/dados/migrations/0010_auto_20201021_1505.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-21 18:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dados', '0009_auto_20201021_1504'),
]
operations = [
migrations.RenameField(
model_name='variavelcontinentedecimal',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelcontinenteinteiro',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelestadodecimal',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelestadointeiro',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelmunicipiodecimal',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelmunicipiointeiro',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelpaisdecimal',
old_name='valora',
new_name='valor',
),
migrations.RenameField(
model_name='variavelpaisinteiro',
old_name='valora',
new_name='valor',
),
]
| 26.833333 | 51 | 0.543133 | 116 | 1,449 | 6.551724 | 0.336207 | 0.221053 | 0.273684 | 0.315789 | 0.539474 | 0.539474 | 0.506579 | 0.506579 | 0.506579 | 0.506579 | 0 | 0.032979 | 0.351277 | 1,449 | 53 | 52 | 27.339623 | 0.775532 | 0.031056 | 0 | 0.680851 | 1 | 0 | 0.2097 | 0.116262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
676dc3e67d6238bd3a944fdd4bebed2076fdc792 | 1,042 | py | Python | manga_py/providers/mangahub_ru.py | Abijithkrishna/manga-py | 03b142ecb944ef37a36e5095ffa580209021e3b0 | [
"MIT"
] | 337 | 2019-08-27T16:14:50.000Z | 2022-03-29T09:58:22.000Z | manga_py/providers/mangahub_ru.py | Abijithkrishna/manga-py | 03b142ecb944ef37a36e5095ffa580209021e3b0 | [
"MIT"
] | 225 | 2019-08-25T15:02:01.000Z | 2022-03-31T06:36:09.000Z | manga_py/providers/mangahub_ru.py | Abijithkrishna/manga-py | 03b142ecb944ef37a36e5095ffa580209021e3b0 | [
"MIT"
] | 41 | 2019-10-04T13:28:02.000Z | 2022-03-19T08:18:34.000Z | import html
from manga_py.provider import Provider
from .helpers.std import Std
class MangaHubRu(Provider, Std):
def get_chapter_index(self) -> str:
idx = self.re.search(r'/read/[^/]+/[^\d]+(\d+)/(\d+)/', self.chapter).groups()
return '{}-{}'.format(*idx)
def get_content(self):
return self._get_content('{}/{}')
def get_manga_name(self) -> str:
return self._get_name(r'\.\w{2,7}/([^/]+)/?')
def get_chapters(self):
return self._elements('.d-flex > a[href*="/read/"]')
def get_files(self):
parser = self.html_fromstring(self.chapter, 'reader')
if not parser:
return []
result = parser[0].get('data-reader-store')
result = self.json.loads(html.unescape(result))['scans']
n = self.http().normalize_uri
return [n(i['src']) for i in result]
def get_cover(self):
return self._cover_from_content('img.cover-detail-img')
def book_meta(self) -> dict:
# todo meta
pass
main = MangaHubRu
| 26.05 | 86 | 0.590211 | 138 | 1,042 | 4.311594 | 0.478261 | 0.060504 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.234165 | 1,042 | 39 | 87 | 26.717949 | 0.741855 | 0.008637 | 0 | 0 | 0 | 0 | 0.132881 | 0.029098 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.269231 | false | 0.038462 | 0.115385 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6772411b3d34eb5ef11d1c71a8b27b852b11fca7 | 78 | py | Python | python/testData/resolve/ClassPrivateInMethodNested.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/ClassPrivateInMethodNested.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/ClassPrivateInMethodNested.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class A(object):
__X = 1
def f(self):
def moo():
self._<ref>_X
| 11.142857 | 19 | 0.512821 | 13 | 78 | 2.769231 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.320513 | 78 | 6 | 20 | 13 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.