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... | 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
... | 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 vers... | 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 DomainPublicAdapterWebApiModelsV1Listin... | 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 u... | 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... | 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... | 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.regis... | 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]
... | 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.TextF... | 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.... | 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... | 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["Langu... | 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
#
... | 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 di... | 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"
... | 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_... | 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.c... | 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 prin... | 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/... | 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_rea... | 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_arg... | 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,
}
)
... | 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.*
... | 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],
]
ans... | 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... | 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... | 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 '
... | 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:... | 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_nam... | 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):
retu... | 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.