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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dc9002e1c8726bf117e98e28fc6f0d87fd91549 | 586 | py | Python | src/onegov/core/orm/mixins/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/core/orm/mixins/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/core/orm/mixins/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.core.orm.mixins.content import content_property
from onegov.core.orm.mixins.content import ContentMixin
from onegov.core.orm.mixins.content import data_property
from onegov.core.orm.mixins.content import dict_property
from onegov.core.orm.mixins.content import meta_property
from onegov.core.orm.mixins.publi... | 30.842105 | 66 | 0.793515 | 72 | 586 | 6.291667 | 0.236111 | 0.154525 | 0.216336 | 0.262693 | 0.569536 | 0.518764 | 0.450331 | 0.291391 | 0 | 0 | 0 | 0 | 0.117747 | 586 | 18 | 67 | 32.555556 | 0.876209 | 0 | 0 | 0 | 0 | 0 | 0.170648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6dd7725f149cc8bce539bdb0ae033a7efaefb3bf | 207 | py | Python | python/DeepSeaSceneLighting/LightUnion.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | python/DeepSeaSceneLighting/LightUnion.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | python/DeepSeaSceneLighting/LightUnion.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaSceneLighting
class LightUnion(object):
NONE = 0
DirectionalLight = 1
PointLight = 2
SpotLight = 3
| 18.818182 | 68 | 0.724638 | 22 | 207 | 6.818182 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.222222 | 207 | 10 | 69 | 20.7 | 0.906832 | 0.47343 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6de61538380253a61838800ac957205f33489f1d | 233 | py | Python | waliki/slides/urls.py | loganchien/waliki | 54d002a566ecee51bdd68aaf63a8f40896b96499 | [
"BSD-3-Clause"
] | null | null | null | waliki/slides/urls.py | loganchien/waliki | 54d002a566ecee51bdd68aaf63a8f40896b96499 | [
"BSD-3-Clause"
] | null | null | null | waliki/slides/urls.py | loganchien/waliki | 54d002a566ecee51bdd68aaf63a8f40896b96499 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
from waliki.settings import WALIKI_SLUG_PATTERN
urlpatterns = patterns('waliki.slides.views',
url(r'^(?P<slug>' + WALIKI_SLUG_PATTERN + ')/slides$', 'slides', name='waliki_slides'),
)
| 29.125 | 91 | 0.733906 | 31 | 233 | 5.354839 | 0.548387 | 0.120482 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111588 | 233 | 7 | 92 | 33.285714 | 0.801932 | 0 | 0 | 0 | 0 | 0 | 0.244635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6df21a94ea5ceefc0ff45ddbe6e3170a2414c43e | 675 | py | Python | ctp/reformulators/__init__.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 41 | 2020-07-14T15:44:20.000Z | 2022-03-25T10:33:07.000Z | ctp/reformulators/__init__.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 3 | 2020-12-28T05:57:12.000Z | 2022-03-09T01:05:06.000Z | ctp/reformulators/__init__.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 12 | 2020-07-14T22:56:46.000Z | 2022-01-17T02:40:10.000Z | # -*- coding: utf-8 -*-
from ctp.reformulators.base import BaseReformulator
from ctp.reformulators.base import StaticReformulator
from ctp.reformulators.base import LinearReformulator
from ctp.reformulators.base import AttentiveReformulator
from ctp.reformulators.base import MemoryReformulator
from ctp.reformulators.b... | 30.681818 | 56 | 0.801481 | 60 | 675 | 8.95 | 0.283333 | 0.104283 | 0.297952 | 0.357542 | 0.446927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001689 | 0.122963 | 675 | 21 | 57 | 32.142857 | 0.905405 | 0.031111 | 0 | 0 | 0 | 0 | 0.217791 | 0.032209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6dfd53bc212a07a1dc6b7b151185c5fae815b986 | 217 | py | Python | cajas/investments/api/serializers/investment_serializer.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/investments/api/serializers/investment_serializer.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/investments/api/serializers/investment_serializer.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from ...models.investment import Investment
class InvestmentSerializer(serializers.ModelSerializer):
class Meta:
model = Investment
fields = ('__all__')
| 18.083333 | 56 | 0.732719 | 20 | 217 | 7.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198157 | 217 | 11 | 57 | 19.727273 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.032407 | 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 | 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 | 3 |
0973ff031540e03c02b85c0034de9814315ea6b5 | 350 | py | Python | constants.py | scaleflex/filerobot-migration | bdfb20ffbef6f4cfec87c361e0aae89a5160acc2 | [
"MIT"
] | null | null | null | constants.py | scaleflex/filerobot-migration | bdfb20ffbef6f4cfec87c361e0aae89a5160acc2 | [
"MIT"
] | null | null | null | constants.py | scaleflex/filerobot-migration | bdfb20ffbef6f4cfec87c361e0aae89a5160acc2 | [
"MIT"
] | null | null | null | # Version of the migration tool
VERSION = "0.6"
LOG_DIR="/var/log"
LOG_FILE_PATH="%s/filerobot-migrate.log" % LOG_DIR
UPLOADED_UUIDS_PATH="%s/filerobot-migrate-uploaded-uuids.log" % LOG_DIR
LOG_FAILED_PATH="%s/filerobot-migrate-failed" % LOG_DIR
LOG_RETRY_FAILED_PATH="%s/filerobot-migrate-retry-failed.log" % LOG_DIR
D... | 35 | 71 | 0.788571 | 58 | 350 | 4.482759 | 0.37931 | 0.115385 | 0.215385 | 0.323077 | 0.207692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.068571 | 350 | 9 | 72 | 38.888889 | 0.791411 | 0.082857 | 0 | 0 | 0 | 0 | 0.460815 | 0.398119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
097876871c752f3f60a5c501c9911cf25a3cdce0 | 259 | py | Python | tests/action_tests.py | richard-ma/workflow | 41fa6d08200436e0545a306234205d83886163b7 | [
"MIT"
] | null | null | null | tests/action_tests.py | richard-ma/workflow | 41fa6d08200436e0545a306234205d83886163b7 | [
"MIT"
] | null | null | null | tests/action_tests.py | richard-ma/workflow | 41fa6d08200436e0545a306234205d83886163b7 | [
"MIT"
] | null | null | null | from unittest import TestCase
from workflow import *
class ActionTestCase(TestCase):
def setUp(self):
self.action = Action()
def tearDown(self):
pass
def test_action_run(self):
self.assertEqual(None, self.action.run())
| 18.5 | 49 | 0.664093 | 31 | 259 | 5.483871 | 0.548387 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239382 | 259 | 13 | 50 | 19.923077 | 0.862944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.333333 | false | 0.111111 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
099ed49212b26ca036c4de6cbecbdb6149e30c70 | 11,447 | py | Python | LinearAlgebra/linSysTest.py | HKuz/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | 1 | 2020-06-14T20:10:04.000Z | 2020-06-14T20:10:04.000Z | LinearAlgebra/linSysTest.py | makramjandar/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | null | null | null | LinearAlgebra/linSysTest.py | makramjandar/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | 1 | 2019-12-09T12:48:05.000Z | 2019-12-09T12:48:05.000Z | #!/usr/local/bin/Python3
from vector import Vector
from plane import Plane
from hyperplane import Hyperplane
from linsys import LinearSystem
from linsysHyper import LinearSystemHyper
def main():
test_row_ops = False
test_triangular_form = False
test_rref = False
test_ge_solution = False
test_para... | 42.553903 | 108 | 0.576658 | 1,695 | 11,447 | 3.762832 | 0.141003 | 0.139229 | 0.203198 | 0.230793 | 0.618062 | 0.540452 | 0.53026 | 0.507839 | 0.474914 | 0.468956 | 0 | 0.125059 | 0.261641 | 11,447 | 268 | 109 | 42.712687 | 0.629555 | 0.030226 | 0 | 0.283105 | 0 | 0 | 0.074732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004566 | false | 0.077626 | 0.022831 | 0 | 0.027397 | 0.223744 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
09a3282c9e71f7d006144e659f825292fe82031e | 685 | py | Python | core/place.py | ldacosta/shopping-optimization | 469d41db064d93b80e5fdc15ffea12565f994a12 | [
"MIT"
] | null | null | null | core/place.py | ldacosta/shopping-optimization | 469d41db064d93b80e5fdc15ffea12565f994a12 | [
"MIT"
] | null | null | null | core/place.py | ldacosta/shopping-optimization | 469d41db064d93b80e5fdc15ffea12565f994a12 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""A physical place.
Example:
Attributes:
Todo:
* Nothing for now.
.. _Google Python Style Guide:
http://google.github.io/styleguide/pyguide.html
"""
from geometry.angle import AngleInRadians
class Place(object):
def __init__(self, latitude: AngleInRadians, longitude: AngleInR... | 24.464286 | 130 | 0.70073 | 74 | 685 | 6.405405 | 0.716216 | 0.075949 | 0.109705 | 0.147679 | 0.206751 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015986 | 0.178102 | 685 | 28 | 131 | 24.464286 | 0.825933 | 0.458394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
09a7f63fb1bcf2fdbb00c4d1c142b5dd34e32bea | 1,286 | py | Python | src/backend/socialapp/views/commentUpdateView.py | shouyang/group-CMPUT404-project | a8d114b493ad2786c90e8b1f10c087fa4d5c81de | [
"MIT"
] | 2 | 2019-02-04T17:55:48.000Z | 2019-03-11T23:22:14.000Z | src/backend/socialapp/views/commentUpdateView.py | shouyang/group-CMPUT404-project | a8d114b493ad2786c90e8b1f10c087fa4d5c81de | [
"MIT"
] | 7 | 2019-02-27T17:16:19.000Z | 2019-03-19T20:13:56.000Z | src/backend/socialapp/views/commentUpdateView.py | shouyang/group-CMPUT404-project | a8d114b493ad2786c90e8b1f10c087fa4d5c81de | [
"MIT"
] | 2 | 2019-04-10T17:01:07.000Z | 2019-04-17T01:08:16.000Z | from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.auth.mixins import UserPassesTestMixin
import... | 32.15 | 91 | 0.724728 | 160 | 1,286 | 5.65625 | 0.53125 | 0.066298 | 0.049724 | 0.046409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.191291 | 1,286 | 40 | 92 | 32.15 | 0.866346 | 0.041991 | 0 | 0.066667 | 0 | 0 | 0.052975 | 0.023635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.066667 | 0.366667 | 0.033333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
09ba0d90281117ac7ed96c74f55055d7e318d92b | 72 | py | Python | notifico/version.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 80 | 2015-01-01T07:55:35.000Z | 2019-04-23T14:47:35.000Z | notifico/version.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 88 | 2015-01-02T09:26:31.000Z | 2019-05-27T07:03:07.000Z | notifico/version.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 33 | 2015-01-12T18:16:30.000Z | 2019-02-02T01:15:41.000Z | # -*- coding: utf8 -*-
__all__ = ('__version__',)
__version__ = '1.0.0'
| 18 | 26 | 0.583333 | 8 | 72 | 3.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.152778 | 72 | 3 | 27 | 24 | 0.42623 | 0.277778 | 0 | 0 | 0 | 0 | 0.32 | 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 | 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 | 3 |
09c561d7b02f0bde6391db7b6d3b202bef15dbe7 | 2,947 | py | Python | libs/models.py | MathiasGruber/ReacherAgent-PyTorch | b2bfd4f36270a6b97998ae6551a8120318e33a68 | [
"MIT"
] | null | null | null | libs/models.py | MathiasGruber/ReacherAgent-PyTorch | b2bfd4f36270a6b97998ae6551a8120318e33a68 | [
"MIT"
] | 9 | 2019-10-26T11:58:51.000Z | 2021-08-25T15:30:23.000Z | libs/models.py | MathiasGruber/ReacherAgent-PyTorch | b2bfd4f36270a6b97998ae6551a8120318e33a68 | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torch.nn import functional as F
import numpy as np
class BaseModel(nn.Module):
"""Base model for both Actor and Critic"""
@staticmethod
def fan_in_initializer(layer):
"""Initializer hidden layer weights as described in DDPG paper"""
fan_in = layer.we... | 36.8375 | 90 | 0.623346 | 394 | 2,947 | 4.484772 | 0.22335 | 0.087153 | 0.057725 | 0.040747 | 0.730617 | 0.730617 | 0.710809 | 0.688172 | 0.688172 | 0.688172 | 0 | 0.033303 | 0.246013 | 2,947 | 79 | 91 | 37.303797 | 0.761926 | 0.283 | 0 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.093023 | 0 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09cae1aa547cfcfa0797d70749da4eefc1e23100 | 180 | py | Python | src/main/python/desklutter/main.py | Sakelariev/Desklutter | 46437a13318303a55c5a38621f6e11b3ff829897 | [
"MIT"
] | null | null | null | src/main/python/desklutter/main.py | Sakelariev/Desklutter | 46437a13318303a55c5a38621f6e11b3ff829897 | [
"MIT"
] | null | null | null | src/main/python/desklutter/main.py | Sakelariev/Desklutter | 46437a13318303a55c5a38621f6e11b3ff829897 | [
"MIT"
] | null | null | null | from desklutter.application_context import AppContext
import sys, os
if __name__ == '__main__':
appctxt = AppContext()
exit_code = appctxt.run()
sys.exit(exit_code)
| 18 | 53 | 0.722222 | 22 | 180 | 5.409091 | 0.681818 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 180 | 9 | 54 | 20 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
09cfc5813d579e7a34ade775c2135cff2b82aca2 | 1,178 | py | Python | example/socket/client.py | Jamesyang2333/fmm | 1ba7ced29fd135da038bbfdd726fafdae09eda48 | [
"Apache-2.0"
] | null | null | null | example/socket/client.py | Jamesyang2333/fmm | 1ba7ced29fd135da038bbfdd726fafdae09eda48 | [
"Apache-2.0"
] | null | null | null | example/socket/client.py | Jamesyang2333/fmm | 1ba7ced29fd135da038bbfdd726fafdae09eda48 | [
"Apache-2.0"
] | null | null | null | import socket
import sys
HOST, PORT = "localhost", 1235
data = " ".join(sys.argv[1:])
# Create a socket (SOCK_STREAM means a TCP socket)
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
# Connect to server and send data
sock.connect((HOST, PORT))
sock.sendall(bytes("LINESTRING(126.603110000... | 69.294118 | 735 | 0.749576 | 205 | 1,178 | 4.292683 | 0.541463 | 0.018182 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.528746 | 0.099321 | 1,178 | 17 | 736 | 69.294118 | 0.30066 | 0.104414 | 0 | 0 | 0 | 0.1 | 0.701521 | 0.105513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09d6bd4589137d38956a0a885a4978f44ede678d | 290 | py | Python | kolibri_pratham_plugin/kolibri_plugin.py | prathamopenschool1/kolibri-pratham-windows-plugin | 14271569cc5d0d22be3b5d2690a51f0ef276dd0b | [
"MIT"
] | null | null | null | kolibri_pratham_plugin/kolibri_plugin.py | prathamopenschool1/kolibri-pratham-windows-plugin | 14271569cc5d0d22be3b5d2690a51f0ef276dd0b | [
"MIT"
] | null | null | null | kolibri_pratham_plugin/kolibri_plugin.py | prathamopenschool1/kolibri-pratham-windows-plugin | 14271569cc5d0d22be3b5d2690a51f0ef276dd0b | [
"MIT"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
from kolibri.plugins.base import KolibriPluginBase
class PrathamPlugin(KolibriPluginBase):
def url_module(self):
from . import urls
return urls
def url_slug(self):
return "^pratham/"
| 26.363636 | 72 | 0.737931 | 33 | 290 | 6.212121 | 0.666667 | 0.058537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 290 | 10 | 73 | 29 | 0.883621 | 0 | 0 | 0 | 0 | 0 | 0.031034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.125 | 1 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
09e7eaaca392df11f62c3ee70d7d195ab9713bb4 | 1,041 | py | Python | setup.py | ParhamP/Autism_Treatment_Assistance | da79d474502f8747adde1139614317911604a2f9 | [
"Apache-2.0"
] | 15 | 2017-02-03T12:17:03.000Z | 2022-01-21T19:35:10.000Z | setup.py | Rahmeen14/Autism_Treatment_Assistance | da79d474502f8747adde1139614317911604a2f9 | [
"Apache-2.0"
] | 1 | 2018-07-29T23:41:30.000Z | 2018-07-29T23:48:36.000Z | setup.py | Rahmeen14/Autism_Treatment_Assistance | da79d474502f8747adde1139614317911604a2f9 | [
"Apache-2.0"
] | 8 | 2017-05-18T05:45:56.000Z | 2021-12-08T07:13:51.000Z | from setuptools import setup
setup(
name='Autism_Treatment_Assistance',
packages=['Autism_Treatment_Assistance'],
version='0.5',
scripts=['Autism_Treatment_Assistance/ata'],
description="Employs data science and deep learning to assist therapists treat a common autism symptom that involves interpr... | 49.571429 | 183 | 0.753122 | 116 | 1,041 | 6.603448 | 0.62069 | 0.137076 | 0.22846 | 0.082245 | 0.18799 | 0.18799 | 0.18799 | 0.127937 | 0 | 0 | 0 | 0.006711 | 0.14121 | 1,041 | 20 | 184 | 52.05 | 0.850112 | 0.017291 | 0 | 0 | 0 | 0.055556 | 0.666014 | 0.125367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09e960caa2c01b22eb64fac155c84102fac617c3 | 335 | py | Python | tests/resources/mlflow-test-plugin/mlflow_test_plugin/request_header_provider.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 10,351 | 2018-07-31T02:52:49.000Z | 2022-03-31T23:33:13.000Z | tests/resources/mlflow-test-plugin/mlflow_test_plugin/request_header_provider.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 3,733 | 2018-07-31T01:38:51.000Z | 2022-03-31T23:56:25.000Z | tests/resources/mlflow-test-plugin/mlflow_test_plugin/request_header_provider.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 2,596 | 2018-07-31T06:38:39.000Z | 2022-03-31T23:56:32.000Z | from mlflow.tracking.request_header.abstract_request_header_provider import RequestHeaderProvider
class PluginRequestHeaderProvider(RequestHeaderProvider):
"""RequestHeaderProvider provided through plugin system"""
def in_context(self):
return False
def request_headers(self):
return {"te... | 27.916667 | 97 | 0.770149 | 32 | 335 | 7.875 | 0.71875 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155224 | 335 | 11 | 98 | 30.454545 | 0.890459 | 0.155224 | 0 | 0 | 0 | 0 | 0.036101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
09f62a281a62a2b9837070c0dc68d22760073416 | 165 | py | Python | lxbe_tool/providers/module/__init__.py | mithro/lxbe-tool | 2ca6f59580a688a9cbc027d093a39c420390327e | [
"Apache-2.0"
] | 3 | 2019-06-23T03:15:15.000Z | 2019-11-28T08:00:07.000Z | lxbe_tool/providers/module/__init__.py | litex-hub/lxbe-tool | 2ca6f59580a688a9cbc027d093a39c420390327e | [
"Apache-2.0"
] | 2 | 2018-08-07T19:53:38.000Z | 2018-08-08T21:44:54.000Z | lxbe_tool/providers/module/__init__.py | mithro/lxbe-tool | 2ca6f59580a688a9cbc027d093a39c420390327e | [
"Apache-2.0"
] | 1 | 2020-08-07T22:49:55.000Z | 2020-08-07T22:49:55.000Z | """
Provides Python modules such as;
* LiteXXX referenced as submodules.
* (Maybe?) pip installable libraries like;
- colorterm
- hexfile
- etc
"""
| 13.75 | 43 | 0.648485 | 17 | 165 | 6.294118 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248485 | 165 | 11 | 44 | 15 | 0.862903 | 0.939394 | 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 | 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 | 3 |
61ed66c2d8428bb87406ff950665ff842c286bbb | 105 | py | Python | diskriminant.py | secginelif/python_algoritma1 | e132e9fbd30fb56a04734333c22bb5703c10c811 | [
"MIT"
] | null | null | null | diskriminant.py | secginelif/python_algoritma1 | e132e9fbd30fb56a04734333c22bb5703c10c811 | [
"MIT"
] | null | null | null | diskriminant.py | secginelif/python_algoritma1 | e132e9fbd30fb56a04734333c22bb5703c10c811 | [
"MIT"
] | null | null | null |
a = int(input("a :"))
b = int(input("b :"))
c = int(input("c :"))
delta = (b**2) - (4*a*c)
print(delta)
| 15 | 24 | 0.47619 | 20 | 105 | 2.5 | 0.45 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.180952 | 105 | 6 | 25 | 17.5 | 0.55814 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 3 |
111953b2c9f1d3d37b4c9b1ec14a01f893ccc154 | 2,699 | py | Python | PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_infrared_proximity_sensor.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_infrared_proximity_sensor.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_infrared_proximity_sensor.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | """
Capstone Team Project. Code to run on the EV3 robot (NOT on a laptop).
This code defines the InfraredProximitySensor class, for the robot's forward
facing sensor. The infrared sensor when it is in the mode in which it emits
infrared light and uses the reflected information to estimate distance to the
nearest obje... | 40.893939 | 83 | 0.521675 | 275 | 2,699 | 4.985455 | 0.447273 | 0.058352 | 0.061999 | 0.039387 | 0.141503 | 0.064187 | 0.064187 | 0.064187 | 0.064187 | 0.064187 | 0 | 0.011871 | 0.219711 | 2,699 | 65 | 84 | 41.523077 | 0.639126 | 0.655798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1130d9028c573b054680d899424920658745dda9 | 169 | py | Python | easy_unet/cleanup.py | horoiwa/VisionML | 95fa454a4c309f5e985dff1d067dd8341d260a3c | [
"MIT"
] | null | null | null | easy_unet/cleanup.py | horoiwa/VisionML | 95fa454a4c309f5e985dff1d067dd8341d260a3c | [
"MIT"
] | null | null | null | easy_unet/cleanup.py | horoiwa/VisionML | 95fa454a4c309f5e985dff1d067dd8341d260a3c | [
"MIT"
] | null | null | null | import shutil
import os
if __name__ == "__main__":
for dir_ in ["data", "checkpoints", "result"]:
if os.path.exists(dir_):
shutil.rmtree(dir_)
| 18.777778 | 50 | 0.60355 | 21 | 169 | 4.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254438 | 169 | 8 | 51 | 21.125 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.171598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
febad1401710998e6c519764b343ecd78f332898 | 19 | py | Python | qwe.py | long-mark/test | 4896ef615fa30f1ab186aac237c9460001601160 | [
"MIT"
] | null | null | null | qwe.py | long-mark/test | 4896ef615fa30f1ab186aac237c9460001601160 | [
"MIT"
] | null | null | null | qwe.py | long-mark/test | 4896ef615fa30f1ab186aac237c9460001601160 | [
"MIT"
] | null | null | null | str1 = "asdsafasf"
| 9.5 | 18 | 0.684211 | 2 | 19 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.157895 | 19 | 1 | 19 | 19 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fecbae06932c544b1a6d69646338a4002f8d0d23 | 343 | py | Python | stackstrap/commands/template/list.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 3 | 2015-04-19T09:36:49.000Z | 2017-02-08T23:41:22.000Z | stackstrap/commands/template/list.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 1 | 2021-03-25T21:27:19.000Z | 2021-03-25T21:27:19.000Z | stackstrap/commands/template/list.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 2 | 2015-05-22T08:25:54.000Z | 2018-03-05T00:33:25.000Z | from stackstrap.commands import Command
from stackstrap.template import Template
class List(Command):
"List all templates"
name = 'list'
def setup_parser(self, parser):
pass
def main(self, args):
# TODO: pretty this output up
for template in Template.available():
s... | 22.866667 | 45 | 0.658892 | 42 | 343 | 5.357143 | 0.666667 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259475 | 343 | 14 | 46 | 24.5 | 0.885827 | 0.137026 | 0 | 0 | 0 | 0 | 0.070064 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fedd42de73a96609890ad2619499ed55f0ae5fe6 | 313 | py | Python | tony-graphics1.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | tony-graphics1.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | tony-graphics1.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | from ezgraphics import GraphicsWindow
w= GraphicsWindow(640,480)
c= w.canvas()
c.setFill(0,255,255)
c.drawRect(310,260,100,100)
c.setFill(0,155,255)
c.drawRect(150,100,30,30)
c.setFill(0,55,155)
c.drawRect(180,130,50,50)
c.setFill(0,255,155)
c.drawRect(230,180,80,80)
c.setFill(0,155,155)
w.wait()
| 20.866667 | 38 | 0.702875 | 62 | 313 | 3.548387 | 0.419355 | 0.181818 | 0.204545 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292857 | 0.105431 | 313 | 14 | 39 | 22.357143 | 0.492857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 | 3 |
fee117b493ffd7b06040ebb2edc84540c7a9edfb | 367 | py | Python | aydin/util/misc/test/test_combinatorics.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 78 | 2021-11-08T16:11:23.000Z | 2022-03-27T17:51:04.000Z | aydin/util/misc/test/test_combinatorics.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 19 | 2021-11-08T17:15:40.000Z | 2022-03-30T17:46:55.000Z | aydin/util/misc/test/test_combinatorics.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 7 | 2021-11-09T17:42:32.000Z | 2022-03-09T00:37:57.000Z | from aydin.util.misc.combinatorics import closest_product
def test_closest_product():
u = [1, 2, 5, 7, 9, 10]
N = 15
result = closest_product(u, N)
print(f"closest_product({u}, {N}) = {result}")
assert result == [1, 3]
N = 27
result = closest_product(u, N)
print(f"closest_product({u... | 21.588235 | 57 | 0.610354 | 55 | 367 | 3.945455 | 0.490909 | 0.387097 | 0.345622 | 0.294931 | 0.571429 | 0.571429 | 0.571429 | 0.571429 | 0.571429 | 0.571429 | 0 | 0.046263 | 0.234332 | 367 | 16 | 58 | 22.9375 | 0.725979 | 0 | 0 | 0.363636 | 0 | 0 | 0.196185 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.181818 | 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 | 0 | 0 | 3 |
fee163e91843988e3864a190b197afe8b077225a | 1,537 | py | Python | Cura/Uranium/UM/Extension.py | TIAO-JI-FU/3d-printing-with-moveo-1 | 100ecfd1208fe1890f8bada946145d716b2298eb | [
"MIT"
] | null | null | null | Cura/Uranium/UM/Extension.py | TIAO-JI-FU/3d-printing-with-moveo-1 | 100ecfd1208fe1890f8bada946145d716b2298eb | [
"MIT"
] | null | null | null | Cura/Uranium/UM/Extension.py | TIAO-JI-FU/3d-printing-with-moveo-1 | 100ecfd1208fe1890f8bada946145d716b2298eb | [
"MIT"
] | null | null | null | # Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.
from UM.PluginObject import PluginObject
import collections
from typing import Optional, Any, Callable, List
## Base class for plugins that extend the functionality of Uranium.
# Every extension adds a (sub) menu to... | 34.931818 | 71 | 0.674691 | 210 | 1,537 | 4.8 | 0.380952 | 0.063492 | 0.079365 | 0.099206 | 0.177579 | 0.09127 | 0.09127 | 0.09127 | 0.09127 | 0.09127 | 0 | 0.004255 | 0.235524 | 1,537 | 43 | 72 | 35.744186 | 0.853617 | 0.440468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.157895 | 0.105263 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fee519d4b5a3b571a2ec984017c6f135bb91286d | 531 | py | Python | BurstCube/NoahSim/__init__.py | BurstCube/Simulation | e9e1da1d84281f4b026e30eec2b78b64bf48491d | [
"MIT"
] | null | null | null | BurstCube/NoahSim/__init__.py | BurstCube/Simulation | e9e1da1d84281f4b026e30eec2b78b64bf48491d | [
"MIT"
] | 15 | 2017-04-06T18:52:39.000Z | 2019-08-15T17:48:40.000Z | BurstCube/NoahSim/__init__.py | lepalmer/Simulation | 423b400b6124f6418f2903cc5f0a6ce553465602 | [
"MIT"
] | 3 | 2017-06-13T17:54:29.000Z | 2018-09-16T15:43:24.000Z | try:
import healpy
except:
print("Healpy module is not installed. Please enter 'pip install healpy' before proceeding.")
try:
import numpy
except:
print("Numpy module is not installed. Please enter 'pip install numpy' before proceeding.")
try:
import random
except:
print("Random module is ... | 24.136364 | 97 | 0.709981 | 67 | 531 | 5.626866 | 0.328358 | 0.095491 | 0.116711 | 0.159151 | 0.32626 | 0.32626 | 0.32626 | 0.32626 | 0 | 0 | 0 | 0 | 0.218456 | 531 | 21 | 98 | 25.285714 | 0.908434 | 0 | 0 | 0.5 | 0 | 0 | 0.615819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3125 | 0 | 0.3125 | 0.25 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fee5aae0609c89e0c6682b720c6efab095c8a24c | 813 | py | Python | dioptra/utils.py | dioptra-ai/collector-py | f8912f636da51d179a4bff95a311e40ca4bf7123 | [
"BSD-3-Clause"
] | 2 | 2021-10-01T17:45:01.000Z | 2022-03-10T21:05:41.000Z | dioptra/utils.py | dioptra-ai/collector-py | f8912f636da51d179a4bff95a311e40ca4bf7123 | [
"BSD-3-Clause"
] | null | null | null | dioptra/utils.py | dioptra-ai/collector-py | f8912f636da51d179a4bff95a311e40ca4bf7123 | [
"BSD-3-Clause"
] | null | null | null | """
Utility module
"""
import numbers
def validate_timestamp(timestamp):
return timestamp is not None
def validate_tags(tags):
return isinstance(tags, dict)
def validate_prediction(prediction):
return isinstance(prediction, str)
def validate_confidence(confidence):
return isinstance(confidence, nu... | 21.394737 | 57 | 0.752768 | 95 | 813 | 6.263158 | 0.336842 | 0.147899 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161132 | 813 | 37 | 58 | 21.972973 | 0.872434 | 0.01722 | 0 | 0 | 0 | 0 | 0.001266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0.045455 | 0.363636 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fef1b31b1f3d5ca04acde77cf49000b4d29c7abc | 201 | py | Python | klazor/forms.py | GtPsSd/klazor-heroku | 7d284a1f15216a8da2da4ca6772b0dfda7715e5e | [
"MIT"
] | null | null | null | klazor/forms.py | GtPsSd/klazor-heroku | 7d284a1f15216a8da2da4ca6772b0dfda7715e5e | [
"MIT"
] | 8 | 2020-02-12T00:31:24.000Z | 2022-02-10T08:41:34.000Z | klazor/forms.py | GtPsSd/klazor-heroku | 7d284a1f15216a8da2da4ca6772b0dfda7715e5e | [
"MIT"
] | 1 | 2019-07-15T01:33:27.000Z | 2019-07-15T01:33:27.000Z | from django import forms
from klazor.models import *
class CourseForm(forms.ModelForm):
class Meta:
model = Course
fields = ['title', 'tag_set', 'instructor_set', 'release_date']
| 22.333333 | 71 | 0.676617 | 24 | 201 | 5.541667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21393 | 201 | 8 | 72 | 25.125 | 0.841772 | 0 | 0 | 0 | 0 | 0 | 0.189055 | 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 | 0 | 0 | 0 | 3 |
3a0d6e70b8cc276ce5649ca967821d433b6ec4b2 | 711 | py | Python | build/lib/glycompare/__init__.py | LewisLabUCSD/GlyCompare | e0e5fb16c7117e681f167b5ee4ca40978db7fad7 | [
"MIT"
] | 7 | 2019-07-06T04:26:40.000Z | 2021-12-06T20:48:34.000Z | build/lib/glycompare/__init__.py | LewisLabUCSD/GlyCompare | e0e5fb16c7117e681f167b5ee4ca40978db7fad7 | [
"MIT"
] | 13 | 2019-07-07T06:43:08.000Z | 2022-01-03T22:01:17.000Z | build/lib/glycompare/__init__.py | LewisLabUCSD/GlyCompare | e0e5fb16c7117e681f167b5ee4ca40978db7fad7 | [
"MIT"
] | 3 | 2019-07-08T07:15:23.000Z | 2021-07-16T03:13:50.000Z | import getopt
import sys
from . import pipeline_functions
from . import merge_substructure_vec
from . import glycan_io
from . import json_utility
from . import nglycan_alignment
from . import plot_glycan_utilities
from . import clustering_analysis
from . import extract_substructures
from . import process_glycoprofiles
... | 22.21875 | 77 | 0.74121 | 94 | 711 | 5.361702 | 0.659574 | 0.198413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01855 | 0.165963 | 711 | 32 | 78 | 22.21875 | 0.831366 | 0.097046 | 0 | 0 | 0 | 0 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.043478 | 0.521739 | 0 | 0.521739 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3a2a846e73eb8e235178c71a7428638a17d40ebe | 468 | py | Python | ceml/backend/torch/costfunctions/losses.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 24 | 2019-07-12T08:11:25.000Z | 2021-12-09T19:24:53.000Z | ceml/backend/torch/costfunctions/losses.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 6 | 2020-09-28T04:42:44.000Z | 2021-09-27T06:59:36.000Z | ceml/backend/torch/costfunctions/losses.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 7 | 2019-09-11T13:54:57.000Z | 2021-01-14T13:13:26.000Z | # -*- coding: utf-8 -*-
import torch
def min_of_list(x):
return torch.min(x)
def loglikelihood(y_pred, y_target):
return torch.log(y_pred)[y_target]
def negloglikelihood(y_pred, y_target):
return -1. * loglikelihood(y_pred, y_target)
def l1(x, x_orig):
return torch.sum(torch.abs(x - x_orig))
def l... | 21.272727 | 59 | 0.675214 | 84 | 468 | 3.571429 | 0.333333 | 0.1 | 0.1 | 0.16 | 0.473333 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0.012853 | 0.168803 | 468 | 21 | 60 | 22.285714 | 0.758355 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0.076923 | 0.461538 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a2d19ae806ea485e094c3010253894ae8f262a3 | 231 | py | Python | tests/web.adblockplus.org/data/dataDonationPages.py | adblockplus/web.adblockplus.org | c2c570ce4f4296afc3577afe233c6b23b128f206 | [
"MIT"
] | 9 | 2016-01-29T18:05:29.000Z | 2021-10-06T04:21:55.000Z | tests/web.adblockplus.org/data/dataDonationPages.py | adblockplus/web.adblockplus.org | c2c570ce4f4296afc3577afe233c6b23b128f206 | [
"MIT"
] | 9 | 2015-04-06T19:03:32.000Z | 2019-05-28T13:34:55.000Z | tests/web.adblockplus.org/data/dataDonationPages.py | adblockplus/web.adblockplus.org | c2c570ce4f4296afc3577afe233c6b23b128f206 | [
"MIT"
] | 18 | 2015-04-06T17:42:31.000Z | 2021-10-06T04:26:29.000Z | TEST_DATA = [(
'donation_page',
'https://adblockplus.org/donate',
), (
'update_page',
'https://new.adblockplus.org/update',
), (
'first_run_page',
'https://welcome.adblockplus.org/installed'
)]
| 19.25 | 49 | 0.584416 | 23 | 231 | 5.652174 | 0.608696 | 0.207692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220779 | 231 | 11 | 50 | 21 | 0.722222 | 0 | 0 | 0.2 | 0 | 0 | 0.621739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a34d0c1a2ba828bfddc644d06fb930cb96d580a | 106 | py | Python | tvsched/adapters/repos/actor/models.py | astsu-dev/tv-schedule | 1cea36147e66b7163df6f7098cfda4d43f3bdde2 | [
"MIT"
] | null | null | null | tvsched/adapters/repos/actor/models.py | astsu-dev/tv-schedule | 1cea36147e66b7163df6f7098cfda4d43f3bdde2 | [
"MIT"
] | null | null | null | tvsched/adapters/repos/actor/models.py | astsu-dev/tv-schedule | 1cea36147e66b7163df6f7098cfda4d43f3bdde2 | [
"MIT"
] | null | null | null | from typing import TypedDict
class ActorRecord(TypedDict):
id: int
name: str
image_url: str
| 13.25 | 29 | 0.698113 | 14 | 106 | 5.214286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 106 | 7 | 30 | 15.142857 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
3a38cabc185673a468aadd76dc0bcedc03ff0832 | 58 | py | Python | atest/testresources/res_and_var_files/variables_in_pythonpath.py | gdw2/robot-framework | f25068edf1502e76ba8664d4b5ed1aebe0ee2434 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | atest/testresources/res_and_var_files/variables_in_pythonpath.py | gdw2/robot-framework | f25068edf1502e76ba8664d4b5ed1aebe0ee2434 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | atest/testresources/res_and_var_files/variables_in_pythonpath.py | gdw2/robot-framework | f25068edf1502e76ba8664d4b5ed1aebe0ee2434 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | PPATH_VARFILE = "Variable from varible file in PYTHONPATH" | 58 | 58 | 0.827586 | 8 | 58 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 1 | 58 | 58 | 0.921569 | 0 | 0 | 0 | 0 | 0 | 0.677966 | 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 | 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 | 3 |
3a479fb3000764f20bccacc1f3a7640e91b3135c | 4,480 | py | Python | aasaan/utils/datedeux.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | aasaan/utils/datedeux.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | 15 | 2020-06-05T19:26:26.000Z | 2022-03-11T23:33:53.000Z | aasaan/utils/datedeux.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | '''Copyright 2017, Deepak
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions i... | 41.481481 | 755 | 0.669866 | 570 | 4,480 | 5.17193 | 0.368421 | 0.033921 | 0.032564 | 0.023066 | 0.20692 | 0.154681 | 0.12076 | 0.088195 | 0.088195 | 0.088195 | 0 | 0.011301 | 0.229688 | 4,480 | 107 | 756 | 41.869159 | 0.842944 | 0.323884 | 0 | 0.114286 | 0 | 0 | 0.045334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.042857 | 0.2 | 0.671429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a4d1d832dba534275782edd0f7fd6f939a50c60 | 1,987 | py | Python | tests/unit/test_nova_client.py | abdullahzamanbabar/syntribos | 2d0a6344fe14c8edc6c5c1eba7adbedc154ff579 | [
"Apache-2.0"
] | 277 | 2015-09-23T22:55:16.000Z | 2020-05-17T18:45:46.000Z | tests/unit/test_nova_client.py | abdullahzamanbabar/syntribos | 2d0a6344fe14c8edc6c5c1eba7adbedc154ff579 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_nova_client.py | abdullahzamanbabar/syntribos | 2d0a6344fe14c8edc6c5c1eba7adbedc154ff579 | [
"Apache-2.0"
] | 72 | 2016-01-04T18:57:06.000Z | 2020-05-07T14:07:30.000Z | # Copyright 2016 Intel
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | 26.493333 | 74 | 0.706593 | 246 | 1,987 | 5.565041 | 0.463415 | 0.046019 | 0.050402 | 0.037253 | 0.306793 | 0.306793 | 0.306793 | 0.306793 | 0.306793 | 0.306793 | 0 | 0.012547 | 0.197786 | 1,987 | 74 | 75 | 26.851351 | 0.846299 | 0.329643 | 0 | 0.447368 | 0 | 0 | 0.06764 | 0.06764 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a58ae95d719e650ef8251214e5592bff3f6c967 | 303 | py | Python | ACME/utility/flipud.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/utility/flipud.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/utility/flipud.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | import torch
def flipud(tensor):
"""
Flips a given tensor along the first dimension (up to down)
Parameters
----------
tensor
a tensor at least two-dimensional
Returns
-------
Tensor
the flipped tensor
"""
return torch.flip(tensor, dims=[0])
| 15.15 | 63 | 0.567657 | 35 | 303 | 4.914286 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.313531 | 303 | 19 | 64 | 15.947368 | 0.822115 | 0.574257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
28b8c475d8668a568d2b1d70899b56350a44fd44 | 442 | py | Python | stream_service/__init__.py | BR1py/stream_service | 242af12590fc61e04373278a03060c4a923cbb13 | [
"MIT"
] | null | null | null | stream_service/__init__.py | BR1py/stream_service | 242af12590fc61e04373278a03060c4a923cbb13 | [
"MIT"
] | null | null | null | stream_service/__init__.py | BR1py/stream_service | 242af12590fc61e04373278a03060c4a923cbb13 | [
"MIT"
] | null | null | null | """
This code is taken from PyPi stream_service package
https://github.com/BR1py/stream_service
We publish here all the relevant classes for Users
"""
from __future__ import absolute_import
from .server import StreamChannelServer_Process
from .client import StreamChannelClient_Thread
from .lib import *
from .lib.frame... | 31.571429 | 110 | 0.839367 | 65 | 442 | 5.415385 | 0.615385 | 0.142045 | 0.073864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002525 | 0.104072 | 442 | 13 | 111 | 34 | 0.886364 | 0.323529 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
28c2ce7d0ea4c982aa01363dd262f9271de8dd0d | 313 | py | Python | samples/generated/Problem5.py | ucsd-wic-bpc/jsonstubber | 0c50d84af28be4a1905d6064aae028e1a4403509 | [
"MIT"
] | null | null | null | samples/generated/Problem5.py | ucsd-wic-bpc/jsonstubber | 0c50d84af28be4a1905d6064aae028e1a4403509 | [
"MIT"
] | null | null | null | samples/generated/Problem5.py | ucsd-wic-bpc/jsonstubber | 0c50d84af28be4a1905d6064aae028e1a4403509 | [
"MIT"
] | null | null | null | import json
import sys
def arrayTest(Arg1, Arg2, Arg3):
# TODO
return []
def main():
arg_list = json.loads(raw_input())
Arg1 = arg_list[0]
Arg2 = arg_list[1]
Arg3 = arg_list[2]
output = arrayTest(Arg1, Arg2, Arg3)
print(output)
if __name__ == '__main__':
sys.exit(main())
| 15.65 | 40 | 0.613419 | 44 | 313 | 4.068182 | 0.545455 | 0.156425 | 0.189944 | 0.234637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051064 | 0.249201 | 313 | 19 | 41 | 16.473684 | 0.710638 | 0.01278 | 0 | 0 | 0 | 0 | 0.026059 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.384615 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
28d86c793cf45088337ce9c5f9e736059d40fef4 | 819 | py | Python | psx/_dump_/35/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/35/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/35/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x800A2AB8, "VID_OpenModule__Fv", SN_NOWARN)
set_name(0x800A2B78, "InitScreens__Fv", SN_NOWARN)
set_name(0x800A2C68, "MEM_SetupMem__Fv", SN_NOWARN)
set_name(0x800A2C94, "SetupWorkRam__Fv", SN_NOWARN)
set_name(0x800A2D24, "SYSI_Init__Fv", SN_NOWARN)
set_name(0x800A2E30, "GM_Open__Fv", SN_NOWARN)
set_name(0x800A... | 45.5 | 56 | 0.813187 | 124 | 819 | 4.814516 | 0.354839 | 0.19933 | 0.294807 | 0.40201 | 0.413735 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0.152344 | 0.062271 | 819 | 17 | 57 | 48.176471 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.252747 | 0.025641 | 0 | 0 | 0.20757 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
28e70378297a4d95d86a86b32753e66d402e7335 | 169 | py | Python | samples/python/15.handling-attachments/bots/__init__.py | Aliacf21/BotBuilder-Samples | be48548edafd4efdc074f5a59ef2bb3af735ad9a | [
"MIT"
] | 1,998 | 2019-05-07T06:33:22.000Z | 2022-03-31T12:59:15.000Z | samples/python/15.handling-attachments/bots/__init__.py | Aliacf21/BotBuilder-Samples | be48548edafd4efdc074f5a59ef2bb3af735ad9a | [
"MIT"
] | 1,526 | 2020-09-05T18:57:14.000Z | 2020-12-03T01:45:40.000Z | samples/python/15.handling-attachments/bots/__init__.py | stevkan/BotBuilder-Samples | 75a21b412d8873906bed3460f7c5f0940a067d58 | [
"MIT"
] | 2,820 | 2016-09-21T03:47:43.000Z | 2019-05-03T15:12:46.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .attachments_bot import AttachmentsBot
__all__ = ["AttachmentsBot"]
| 24.142857 | 59 | 0.786982 | 19 | 169 | 6.736842 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136095 | 169 | 6 | 60 | 28.166667 | 0.876712 | 0.526627 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
28f9254ad4ce1c0275d71590116f6dfe874a6ad2 | 81 | py | Python | python/775.global-and-local-inversions.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/775.global-and-local-inversions.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/775.global-and-local-inversions.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def isIdealPermutation(self, A: List[int]) -> bool:
| 20.25 | 55 | 0.617284 | 9 | 81 | 5.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 81 | 3 | 56 | 27 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
28f98f16562f856d0c08628223b2ab39cfcdcf49 | 904 | py | Python | dampy/lib/AEM.py | ashokkumarta/dampy | 432d802f62da95eaa630cae651dabba56d50029c | [
"MIT"
] | 12 | 2019-10-03T11:55:08.000Z | 2020-10-27T08:57:54.000Z | dampy/lib/AEM.py | ashokkumarta/dampy | 432d802f62da95eaa630cae651dabba56d50029c | [
"MIT"
] | 7 | 2019-10-07T08:57:22.000Z | 2019-10-22T11:38:23.000Z | dampy/lib/AEM.py | ashokkumarta/dampy | 432d802f62da95eaa630cae651dabba56d50029c | [
"MIT"
] | 3 | 2019-08-20T08:53:25.000Z | 2022-02-08T09:21:43.000Z | # ashokkumar.ta@gmail.com / 24-May-2019
import requests, json
from requests.auth import HTTPBasicAuth
import logging
from dampy.lib.Connector import Connector
from dampy.lib.Assets import Assets
class AEM:
'''Class abstracting an AEM instance '''
def __init__(self, host='http://localhost:4502', user='admin'... | 34.769231 | 161 | 0.690265 | 123 | 904 | 4.97561 | 0.382114 | 0.089869 | 0.058824 | 0.084967 | 0.406863 | 0.406863 | 0.406863 | 0.406863 | 0.406863 | 0.336601 | 0 | 0.019231 | 0.19469 | 904 | 25 | 162 | 36.16 | 0.821429 | 0.551991 | 0 | 0 | 0 | 0 | 0.088571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e90867ee962f9e0c1cd62b65ee7814b6670d282f | 493 | py | Python | utils/sample.py | lim0606/pytorch-ardae-vae | 52f460a90fa5822692031ab7dcca39fa9168988e | [
"MIT"
] | 11 | 2020-06-11T03:01:46.000Z | 2021-06-17T02:59:39.000Z | utils/sample.py | lim0606/pytorch-ardae-vae | 52f460a90fa5822692031ab7dcca39fa9168988e | [
"MIT"
] | 1 | 2020-06-18T00:59:24.000Z | 2020-06-19T22:55:14.000Z | utils/sample.py | lim0606/pytorch-ardae-vae | 52f460a90fa5822692031ab7dcca39fa9168988e | [
"MIT"
] | null | null | null | import torch
def sample_laplace_noise(loc, scale, shape, dtype, device):
'''
https://github.com/pytorch/pytorch/blob/6911ce19d7fcf06e7af241e6494b23acdc320dc4/torch/distributions/laplace.py
'''
finfo = torch.finfo(dtype)
u = torch.zeros(shape, dtype=dtype, device=device).uniform_(finfo.eps - 1, 1)
... | 37.923077 | 115 | 0.718053 | 65 | 493 | 5.323077 | 0.476923 | 0.115607 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066194 | 0.141988 | 493 | 12 | 116 | 41.083333 | 0.751773 | 0.225152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e91e83275c10c3ed8f886f5f3e5c7305ee2e13b3 | 4,021 | py | Python | pygsw/vectors.py | lukecampbell/pygsw | 6fff87d7a296007d9b0ae18ccf6d775aacabd744 | [
"Apache-2.0"
] | 1 | 2021-08-28T12:20:36.000Z | 2021-08-28T12:20:36.000Z | pygsw/vectors.py | lukecampbell/pygsw | 6fff87d7a296007d9b0ae18ccf6d775aacabd744 | [
"Apache-2.0"
] | 1 | 2015-05-11T12:50:37.000Z | 2017-06-24T23:53:53.000Z | pygsw/vectors.py | lukecampbell/pygsw | 6fff87d7a296007d9b0ae18ccf6d775aacabd744 | [
"Apache-2.0"
] | 4 | 2015-01-14T16:29:16.000Z | 2015-06-09T16:01:37.000Z |
import seawater as gsw
import ctd
import practical_salinity as pracsal
import numpy as np
alpha = np.vectorize(lambda sa, ct, p : gsw.alpha(sa,ct,p))
alpha_wrt_t_exact = np.vectorize(lambda sa,t,p : gsw.alpha_wrt_t_exact(sa,t,p))
beta_const_t_exact = np.vectorize(lambda sa,t,p : gsw.beta_const_t_exact(sa,t,p))
be... | 36.554545 | 103 | 0.748073 | 818 | 4,021 | 3.452323 | 0.081907 | 0.20255 | 0.313031 | 0.24221 | 0.649433 | 0.550992 | 0.430949 | 0.327195 | 0.265935 | 0.091006 | 0 | 0.003857 | 0.097239 | 4,021 | 109 | 104 | 36.889908 | 0.774105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e931eaa3bf362c69819bccca31193157a5724476 | 279 | py | Python | automol/prop/__init__.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 2 | 2021-03-01T14:23:25.000Z | 2021-11-28T19:17:08.000Z | automol/prop/__init__.py | avcopan/autochem | 19d9b0402568170ae5ca0adecb460d36f258a9bd | [
"Apache-2.0"
] | 1 | 2021-02-12T21:02:22.000Z | 2021-02-12T21:35:33.000Z | automol/prop/__init__.py | avcopan/autochem | 19d9b0402568170ae5ca0adecb460d36f258a9bd | [
"Apache-2.0"
] | 7 | 2019-12-18T20:11:06.000Z | 2020-10-14T08:54:16.000Z | """
Libraries for handling molecular property calculations
"""
from automol.prop._wfn import total_dipole_moment
from automol.prop._wfn import total_polarizability
from automol.prop import freq
__all__ = [
'total_dipole_moment',
'total_polarizability',
'freq'
]
| 18.6 | 56 | 0.763441 | 33 | 279 | 6.090909 | 0.515152 | 0.164179 | 0.223881 | 0.179104 | 0.288557 | 0.288557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157706 | 279 | 14 | 57 | 19.928571 | 0.855319 | 0.193548 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e938c882eb22c833a1572fea749efdafd32963d4 | 339 | py | Python | edit/models/common/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 28 | 2021-03-23T09:00:33.000Z | 2022-03-10T03:55:00.000Z | edit/models/common/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 2 | 2021-04-17T20:08:55.000Z | 2022-02-01T17:48:55.000Z | edit/models/common/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 5 | 2021-05-19T07:35:56.000Z | 2022-01-13T02:11:50.000Z | from .utils import default_init_weights
from .cost_volume import compute_cost_volume, add_H_W_Padding
from .weightnet import WeightNet, WeightNet_DW
from .frn import FilterResponseNorm2d
from .bam import BAM
from .coordi_attention import CoordAtt
from .shuffle import ShuffleV2Block
from .net import MobileNeXt
from .net... | 30.818182 | 61 | 0.852507 | 48 | 339 | 5.8125 | 0.541667 | 0.071685 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.115044 | 339 | 10 | 62 | 33.9 | 0.923333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 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 | 3 |
e93d80623e73a2dad236b0ffe8a94334622e91d3 | 232 | py | Python | repos/system_upgrade/el7toel8/models/ntpmigrationdecision.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 21 | 2018-11-20T15:58:39.000Z | 2022-03-15T19:57:24.000Z | repos/system_upgrade/el7toel8/models/ntpmigrationdecision.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 732 | 2018-11-21T18:33:26.000Z | 2022-03-31T16:16:24.000Z | repos/system_upgrade/el7toel8/models/ntpmigrationdecision.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 85 | 2018-11-20T17:55:00.000Z | 2022-03-29T09:40:31.000Z | from leapp.models import Model, fields
from leapp.topics import SystemInfoTopic
class NtpMigrationDecision(Model):
topic = SystemInfoTopic
migrate_services = fields.List(fields.String())
config_tgz64 = fields.String()
| 25.777778 | 51 | 0.775862 | 26 | 232 | 6.846154 | 0.653846 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.146552 | 232 | 8 | 52 | 29 | 0.888889 | 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 | 0 | 0 | 0 | 3 |
3aa6157ae2bc459d41f2cd23e82663126c843205 | 1,618 | py | Python | stubs.min/System/Windows/__init___parts/DataTemplate.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/System/Windows/__init___parts/DataTemplate.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/DataTemplate.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class DataTemplate(FrameworkTemplate,INameScope,ISealable,IHaveResources,IQueryAmbient):
"""
Describes the visual structure of a data object.
DataTemplate()
DataTemplate(dataType: object)
"""
def ValidateTemplatedParent(self,*args):
"""
ValidateTemplatedParent(self: DataTemplate,templatedParent:... | 33.020408 | 215 | 0.718171 | 190 | 1,618 | 5.842105 | 0.4 | 0.081081 | 0.043243 | 0.051351 | 0.255856 | 0.255856 | 0.255856 | 0.255856 | 0.255856 | 0.255856 | 0 | 0 | 0.172435 | 1,618 | 48 | 216 | 33.708333 | 0.828977 | 0.342398 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3aa79a1ccb33c26ad180acab5d25297172ed89c7 | 203 | py | Python | home/urls.py | Plydow/escapeServe | 04fc3bdd467ab7d4a5ad0430da52edd11b124751 | [
"MIT"
] | null | null | null | home/urls.py | Plydow/escapeServe | 04fc3bdd467ab7d4a5ad0430da52edd11b124751 | [
"MIT"
] | null | null | null | home/urls.py | Plydow/escapeServe | 04fc3bdd467ab7d4a5ad0430da52edd11b124751 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
import home.views as views
urlpatterns = [
path('', views.step, name='step'),
path('azertyuiop', views.restart, name='restart'),
]
| 20.3 | 54 | 0.704433 | 27 | 203 | 5.296296 | 0.555556 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157635 | 203 | 9 | 55 | 22.555556 | 0.836257 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 3 |
3ab04c0cd1c233c71c9c9669e96c0c0e57840b77 | 189 | py | Python | hostel/common/urls_staff.py | phylocko/hostel | ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365 | [
"Apache-2.0"
] | null | null | null | hostel/common/urls_staff.py | phylocko/hostel | ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365 | [
"Apache-2.0"
] | null | null | null | hostel/common/urls_staff.py | phylocko/hostel | ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365 | [
"Apache-2.0"
] | 1 | 2020-10-31T17:33:52.000Z | 2020-10-31T17:33:52.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.employes_view, name='employes'),
path('<int:employee_id>/', views.employee_view, name='employee'),
] | 27 | 69 | 0.698413 | 24 | 189 | 5.375 | 0.541667 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137566 | 189 | 7 | 70 | 27 | 0.791411 | 0 | 0 | 0 | 0 | 0 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3ad11745e2dcba9a4c9cba424c16092eb35feb35 | 530 | py | Python | tests/test_utils.py | mk-fg/aetcd | ad133dba914ed12e1c35ce4318de80b13626f4f6 | [
"Apache-2.0"
] | 2 | 2022-02-02T15:18:04.000Z | 2022-03-16T06:39:26.000Z | tests/test_utils.py | mk-fg/aetcd | ad133dba914ed12e1c35ce4318de80b13626f4f6 | [
"Apache-2.0"
] | 6 | 2022-01-12T05:29:15.000Z | 2022-01-18T00:29:57.000Z | tests/test_utils.py | mk-fg/aetcd | ad133dba914ed12e1c35ce4318de80b13626f4f6 | [
"Apache-2.0"
] | 2 | 2022-01-11T14:34:18.000Z | 2022-01-28T15:53:20.000Z | import aetcd.utils
def test_prefix_range_end():
assert aetcd.utils.prefix_range_end(b'foo') == b'fop'
assert aetcd.utils.prefix_range_end(b'ab\xff') == b'ac\xff'
assert aetcd.utils.prefix_range_end(
b'a\xff\xff\xff\xff\xff') == b'b\xff\xff\xff\xff\xff'
def test_to_bytes():
assert isinstance(... | 33.125 | 66 | 0.690566 | 92 | 530 | 3.815217 | 0.23913 | 0.22792 | 0.153846 | 0.136752 | 0.77208 | 0.524217 | 0.264957 | 0 | 0 | 0 | 0 | 0 | 0.145283 | 530 | 15 | 67 | 35.333333 | 0.774834 | 0 | 0 | 0 | 0 | 0 | 0.14717 | 0.079245 | 0 | 0 | 0 | 0 | 0.636364 | 1 | 0.181818 | true | 0 | 0.090909 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3aefd03b8403d7d970436569e5ce258d9a9b5fac | 274 | py | Python | services/apis/django-api/source/api/gunicorn.conf.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | 4 | 2021-09-10T09:46:18.000Z | 2021-12-05T17:55:14.000Z | services/apis/django-api/source/api/gunicorn.conf.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | services/apis/django-api/source/api/gunicorn.conf.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | """
This is a configuration file for the gunicorn production server.
Currently, this only contains some code required by the Prometheus exporter.
"""
from prometheus_client import multiprocess
def child_exit(server, worker):
multiprocess.mark_process_dead(worker.pid)
| 27.4 | 76 | 0.80292 | 37 | 274 | 5.837838 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135037 | 274 | 9 | 77 | 30.444444 | 0.911392 | 0.518248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3af7c4e714ad1037bec37ca9128f08b2767246a1 | 3,231 | py | Python | rough_trade_calendar/views.py | craiga/rough-trade-calendar | 175c61391a50eaa4ada3dbc062158773cf72d9c0 | [
"MIT"
] | 1 | 2020-12-19T18:48:42.000Z | 2020-12-19T18:48:42.000Z | rough_trade_calendar/views.py | craiga/rough-trade-calendar | 175c61391a50eaa4ada3dbc062158773cf72d9c0 | [
"MIT"
] | 430 | 2019-07-03T21:09:12.000Z | 2021-11-09T08:09:41.000Z | rough_trade_calendar/views.py | craiga/rough-trade-calendar | 175c61391a50eaa4ada3dbc062158773cf72d9c0 | [
"MIT"
] | 1 | 2019-12-20T16:59:18.000Z | 2019-12-20T16:59:18.000Z | """Views."""
from datetime import timedelta
from django.contrib.syndication.views import Feed
from django.shortcuts import get_object_or_404
from django.urls import reverse
from django.utils import timezone
from django.views.generic import ListView
from django_ical.views import ICalFeed
from html2text import html2te... | 28.095652 | 88 | 0.67688 | 386 | 3,231 | 5.525907 | 0.256477 | 0.050633 | 0.052508 | 0.067511 | 0.344116 | 0.321144 | 0.321144 | 0.268636 | 0.268636 | 0.248476 | 0 | 0.005146 | 0.218199 | 3,231 | 114 | 89 | 28.342105 | 0.839272 | 0.081708 | 0 | 0.222222 | 0 | 0 | 0.072183 | 0.012598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0 | 0.125 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aaf9b71283a376497f972d924ec457759c734cb0 | 448 | py | Python | utils/clean_json5.py | rw1nkler/prjxray | aff076b47dcf6d653eb3ce791b41fd6cf4343edd | [
"ISC"
] | 583 | 2017-12-21T11:06:13.000Z | 2022-02-20T21:27:33.000Z | utils/clean_json5.py | rw1nkler/prjxray | aff076b47dcf6d653eb3ce791b41fd6cf4343edd | [
"ISC"
] | 1,212 | 2017-12-22T15:05:06.000Z | 2022-02-19T13:04:59.000Z | utils/clean_json5.py | mfkiwl/prjxray-xilinx-7-bitstream-fortmat | 5349556bc2c230801d6df0cf11bccb9cfd171639 | [
"ISC"
] | 134 | 2017-12-21T10:16:50.000Z | 2022-02-16T06:42:04.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import pyjson5
import simplejson
impo... | 20.363636 | 66 | 0.703125 | 69 | 448 | 4.449275 | 0.811594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034853 | 0.167411 | 448 | 21 | 67 | 21.333333 | 0.788204 | 0.587054 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c902eb46303d85b4bee841352960d866402c6bd6 | 1,295 | py | Python | class5_pandas.py | MarisaAlves/class5 | a715edf4f9f2dc8475d2876281cd5c1e492744bc | [
"MIT"
] | null | null | null | class5_pandas.py | MarisaAlves/class5 | a715edf4f9f2dc8475d2876281cd5c1e492744bc | [
"MIT"
] | null | null | null | class5_pandas.py | MarisaAlves/class5 | a715edf4f9f2dc8475d2876281cd5c1e492744bc | [
"MIT"
] | null | null | null | import pandas as pd
#creating dataframe from files
insurance_df = pd.read_csv(filepath_or_buffer = '~/Downloads/insurance.csv', sep =',', header=0)
#print(insurance_df.to_string())
print(insurance_df[['age']])
print(insurance_df.columns)
print(insurance_df.index)
print(insurance_df.dtypes)
print(insurance_df.... | 22.719298 | 117 | 0.745946 | 191 | 1,295 | 4.905759 | 0.408377 | 0.270011 | 0.273212 | 0.040555 | 0.110993 | 0.072572 | 0 | 0 | 0 | 0 | 0 | 0.027444 | 0.099614 | 1,295 | 57 | 118 | 22.719298 | 0.776158 | 0.338224 | 0 | 0 | 0 | 0 | 0.153302 | 0.029481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.894737 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
c9272c4db01307c1c46a5839ed779c6370e6314f | 309 | py | Python | src/GimelStudio/project/io.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 47 | 2020-05-22T09:10:05.000Z | 2021-04-08T06:27:50.000Z | src/GimelStudio/project/io.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 24 | 2020-08-26T13:51:10.000Z | 2021-04-18T01:41:51.000Z | src/GimelStudio/project/io.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 9 | 2020-08-16T14:27:14.000Z | 2021-02-17T19:04:34.000Z |
import io
import pickle
import os.path
import wx
from PIL import Image
import numpy as np
from GimelStudio import meta
class GimelStudioProject(object):
def __init__(self, parent):
self._parent = parent
self._version = meta.APP_VERSION
def OpenProject(self, path):
pass
| 14.714286 | 40 | 0.705502 | 41 | 309 | 5.146341 | 0.609756 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239482 | 309 | 20 | 41 | 15.45 | 0.897872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.538462 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c94696ab61abb7f8504be6bf5a5da9a0098b149d | 177 | py | Python | ex19.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | ex19.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | ex19.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | def gimmeabreak(njak, zrak):
print "njak: %d" % njak
print 'zrak: %d' % zrak
#this excercise is too easy, so I'll just fool around
gimmeabreak(3, 4)
gimmeabreak(-2343, 12)
| 17.7 | 53 | 0.683616 | 29 | 177 | 4.172414 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055172 | 0.180791 | 177 | 9 | 54 | 19.666667 | 0.77931 | 0.293785 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 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 | 0 | 0 | 3 |
c94b6ab931cb619050438b700ca449c0f3c82121 | 103 | py | Python | generators/simple/templates/src/platform/extensionRunner/corepyutils/typing_aliases.py | jfallaire/generator-ps-boilerplate-project | 36f544a54442c191430451715425da98ea76a63e | [
"MIT"
] | 2 | 2019-07-24T16:00:51.000Z | 2019-10-03T18:36:20.000Z | generators/simple/templates/src/platform/extensionRunner/corepyutils/typing_aliases.py | jfallaire/generator-ps-boilerplate-project | 36f544a54442c191430451715425da98ea76a63e | [
"MIT"
] | 19 | 2019-06-20T21:58:44.000Z | 2020-11-05T13:48:42.000Z | generators/simple/templates/src/platform/extensionRunner/corepyutils/typing_aliases.py | jfallaire/generator-ps-boilerplate-project | 36f544a54442c191430451715425da98ea76a63e | [
"MIT"
] | 1 | 2019-06-22T17:30:42.000Z | 2019-06-22T17:30:42.000Z | """Common typing aliases"""
from typing import Any, Callable
Comparison = Callable[[Any, Any], bool]
| 17.166667 | 39 | 0.718447 | 13 | 103 | 5.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 40 | 20.6 | 0.840909 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c95af28fb78b2352bf87d50fbce7b0291483c974 | 21 | py | Python | Instance/config.py | OKC254/one-minute-pitch | 98692310bb4cc65b395e29d310083f97105a2dac | [
"MIT"
] | null | null | null | Instance/config.py | OKC254/one-minute-pitch | 98692310bb4cc65b395e29d310083f97105a2dac | [
"MIT"
] | null | null | null | Instance/config.py | OKC254/one-minute-pitch | 98692310bb4cc65b395e29d310083f97105a2dac | [
"MIT"
] | null | null | null | SECRET_KEY = 'United' | 21 | 21 | 0.761905 | 3 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 21 | 1 | 21 | 21 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c95b70164433c47f43340eb21c6d916cf1d00737 | 523 | py | Python | textClassifier/scoring_methods.py | vikash06131721/autoMltext | 96f41161947d78c663e7f6b4ff452fc5bf2462e8 | [
"MIT"
] | null | null | null | textClassifier/scoring_methods.py | vikash06131721/autoMltext | 96f41161947d78c663e7f6b4ff452fc5bf2462e8 | [
"MIT"
] | null | null | null | textClassifier/scoring_methods.py | vikash06131721/autoMltext | 96f41161947d78c663e7f6b4ff452fc5bf2462e8 | [
"MIT"
] | null | null | null | from sklearn.metrics import f1_score, \
precision_score, recall_score, roc_auc_score, \
accuracy_score
import warnings
warnings.filterwarnings("ignore")
def scorer_f1(y_true,y_pred):
return f1_score(y_true,y_pred)
def scorer_precision(y_true,y_pred):
return precision_score(y_true,y_pred)
def scorer_recall(y... | 26.15 | 47 | 0.799235 | 91 | 523 | 4.186813 | 0.21978 | 0.131234 | 0.15748 | 0.262467 | 0.501312 | 0.251969 | 0.251969 | 0 | 0 | 0 | 0 | 0.006452 | 0.110899 | 523 | 20 | 48 | 26.15 | 0.812903 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c969d9fd3b4a766222c9969f69f892313278e3a1 | 344 | py | Python | helper.py | Paschoali/product-stars-api | 7e16e5c64f52e67cd122d52bbab723ff8cc3429e | [
"MIT"
] | null | null | null | helper.py | Paschoali/product-stars-api | 7e16e5c64f52e67cd122d52bbab723ff8cc3429e | [
"MIT"
] | null | null | null | helper.py | Paschoali/product-stars-api | 7e16e5c64f52e67cd122d52bbab723ff8cc3429e | [
"MIT"
] | null | null | null | import datetime
def get_hours_in_seconds(hours):
return datetime.timedelta(hours=hours).seconds
def is_json_content(request):
return True if request.content_type == 'application/json' else False
def is_empty_content_length(request):
return True if request and request.content_length and request.content... | 24.571429 | 96 | 0.790698 | 50 | 344 | 5.22 | 0.46 | 0.16092 | 0.130268 | 0.145594 | 0.199234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.139535 | 344 | 13 | 97 | 26.461538 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c976c562b99f9afc0e4de3808b382679280a2559 | 1,674 | py | Python | pysynphot/__init__.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | null | null | null | pysynphot/__init__.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | null | null | null | pysynphot/__init__.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | null | null | null | """
This __init__ file is used to expose the desired elements of the user
interface for interactive use.
"""
from __future__ import absolute_import
# For backwards compatibility
try:
from .version import *
except ImportError:
__svn_version__ = 'none'
__full_svn_info__ = 'none'
__svn_revision__ = __svn... | 29.368421 | 69 | 0.793907 | 196 | 1,674 | 6.260204 | 0.47449 | 0.07824 | 0.117359 | 0.03423 | 0.125509 | 0.07009 | 0.07009 | 0.07009 | 0.07009 | 0.07009 | 0 | 0.000708 | 0.156511 | 1,674 | 56 | 70 | 29.892857 | 0.868272 | 0.197133 | 0 | 0.114286 | 0 | 0 | 0.011338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.085714 | 0.628571 | 0 | 0.628571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a314bbdb68810ccc13f1f7498a1f444808678843 | 2,063 | py | Python | tests/test_needs_update.py | thusoy/porridge | f332b67f29bcbc19b7bb7da2f68ad3af35a9cd4d | [
"MIT"
] | 13 | 2017-07-26T14:20:27.000Z | 2021-07-12T17:17:21.000Z | tests/test_needs_update.py | thusoy/porridge | f332b67f29bcbc19b7bb7da2f68ad3af35a9cd4d | [
"MIT"
] | 1 | 2017-03-25T23:37:01.000Z | 2017-04-23T18:43:41.000Z | tests/test_needs_update.py | thusoy/porridge | f332b67f29bcbc19b7bb7da2f68ad3af35a9cd4d | [
"MIT"
] | 1 | 2018-08-02T07:48:40.000Z | 2018-08-02T07:48:40.000Z | import pytest
from porridge import Porridge
# All of these test cases are relative to the parameters of the Porridge
# instance created by `create_porridge()`
@pytest.mark.parametrize('reason,encoded', (
('old version, non-explicit', '$argon2i$m=16,t=2,p=2,keyid=key$AhkxHIhp4o4KOuYBCbduUg$vXvsYVvrrzRdOMpVLXgs4w'... | 45.844444 | 116 | 0.733883 | 276 | 2,063 | 5.413043 | 0.25 | 0.058902 | 0.026774 | 0.026774 | 0.582999 | 0.481928 | 0.353414 | 0.353414 | 0.342704 | 0.297189 | 0 | 0.068627 | 0.110034 | 2,063 | 44 | 117 | 46.886364 | 0.745098 | 0.063984 | 0 | 0.1875 | 0 | 0.375 | 0.604048 | 0.50493 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.09375 | false | 0 | 0.0625 | 0.03125 | 0.1875 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a35d521e9b6dc19156a1cdf393ae4aaae41e9947 | 2,738 | py | Python | covid19_il/data_handler/data_handlers/quarantine.py | natylaza89/covid19_il | ee5c46670383e76074edac4efe19f8d20e2f914d | [
"MIT"
] | 1 | 2020-11-17T17:57:17.000Z | 2020-11-17T17:57:17.000Z | covid19_il/data_handler/data_handlers/quarantine.py | natylaza89/covid19_il | ee5c46670383e76074edac4efe19f8d20e2f914d | [
"MIT"
] | null | null | null | covid19_il/data_handler/data_handlers/quarantine.py | natylaza89/covid19_il | ee5c46670383e76074edac4efe19f8d20e2f914d | [
"MIT"
] | 1 | 2020-11-17T17:57:20.000Z | 2020-11-17T17:57:20.000Z | from functools import lru_cache
from typing import Dict, Generator
from covid19_il.logger.logger import Logger
from covid19_il.data_handler.data_handlers.data_handler import DataHandler
from covid19_il.data_handler.enums.quarantine_amount import QuarantineAmount
class Quarantine(DataHandler):
""" Covid19_IL Quar... | 32.211765 | 112 | 0.662162 | 340 | 2,738 | 5.1 | 0.170588 | 0.074971 | 0.11534 | 0.083045 | 0.777393 | 0.714533 | 0.690311 | 0.646482 | 0.572664 | 0.543253 | 0 | 0.003908 | 0.252374 | 2,738 | 84 | 113 | 32.595238 | 0.843185 | 0.372169 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.227273 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a38138641f92a1589f5b32a89196cf163905485d | 568 | py | Python | metakernel/magics/get_magic.py | StephanRempel/metakernel | 83bfb3304381808b813762ce3845a722182faac4 | [
"BSD-3-Clause"
] | 276 | 2015-01-28T11:18:56.000Z | 2022-03-24T06:56:54.000Z | metakernel/magics/get_magic.py | StephanRempel/metakernel | 83bfb3304381808b813762ce3845a722182faac4 | [
"BSD-3-Clause"
] | 176 | 2015-01-16T01:08:45.000Z | 2022-03-03T17:26:03.000Z | metakernel/magics/get_magic.py | StephanRempel/metakernel | 83bfb3304381808b813762ce3845a722182faac4 | [
"BSD-3-Clause"
] | 95 | 2015-01-16T01:05:37.000Z | 2022-02-26T18:03:23.000Z | # Copyright (c) Metakernel Development Team.
# Distributed under the terms of the Modified BSD License.
from metakernel import Magic
class GetMagic(Magic):
def line_get(self, variable):
"""
%get VARIABLE - get a variable from the kernel in a Python-type.
This line magic is used to get a v... | 23.666667 | 72 | 0.661972 | 73 | 568 | 5.082192 | 0.547945 | 0.080863 | 0.06469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262324 | 568 | 23 | 73 | 24.695652 | 0.885442 | 0.408451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a39bb09a5e74fe3753d79f91ff1b62a99a796ab6 | 211 | py | Python | examples/cvpr2020/cifar10_exp_setups/nin.py | chency820/low-rank | 53cc6801637692e71cce6e1edf3d71509a9c16bb | [
"BSD-3-Clause"
] | 40 | 2020-05-19T01:31:02.000Z | 2022-01-28T00:25:33.000Z | examples/cvpr2020/cifar10_exp_setups/nin.py | chency820/low-rank | 53cc6801637692e71cce6e1edf3d71509a9c16bb | [
"BSD-3-Clause"
] | 3 | 2020-09-09T16:04:17.000Z | 2022-03-18T00:59:39.000Z | examples/cvpr2020/cifar10_exp_setups/nin.py | chency820/low-rank | 53cc6801637692e71cce6e1edf3d71509a9c16bb | [
"BSD-3-Clause"
] | 8 | 2020-09-08T14:11:16.000Z | 2022-01-28T00:25:41.000Z | from .vggs import vgg_all
from lc.models.torch.nincif import nincif_bn
__all__ = ["nin_all"]
class nin_all(vgg_all):
def __init__(self):
super(nin_all, self).__init__("nin_all", nincif_bn(), 'nincif_bn') | 26.375 | 70 | 0.739336 | 35 | 211 | 3.857143 | 0.457143 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123223 | 211 | 8 | 70 | 26.375 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a3a08f17af5867ba58de13018c7d3064169e95f5 | 206 | py | Python | app/users.py | AbhishekKumarSinha/flask-api | 3b8db79f8d3470ab9f3a6257db46fba0fd589420 | [
"MIT"
] | null | null | null | app/users.py | AbhishekKumarSinha/flask-api | 3b8db79f8d3470ab9f3a6257db46fba0fd589420 | [
"MIT"
] | null | null | null | app/users.py | AbhishekKumarSinha/flask-api | 3b8db79f8d3470ab9f3a6257db46fba0fd589420 | [
"MIT"
] | null | null | null | # To store registered users
registered_users = {}
# To store User staus Ture for Login & False for Logout
user_status = {}
user_account = {}
def total_users():
return len(registered_users)
| 18.727273 | 56 | 0.68932 | 27 | 206 | 5.074074 | 0.62963 | 0.328467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228155 | 206 | 10 | 57 | 20.6 | 0.861635 | 0.383495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6e69ddb0622508bfcb23436ec86d830df06ee3f8 | 1,171 | py | Python | built-in/PyTorch/Official/cv/scene_text_detection/DB_ID0706_for_Pytorch/data/processes/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/scene_text_detection/DB_ID0706_for_Pytorch/data/processes/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/scene_text_detection/DB_ID0706_for_Pytorch/data/processes/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # Copyright [yyyy] [name of copyright owner]
# Copyright 2020 Huawei Technologies Co., Ltd
#
# 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.or... | 43.37037 | 78 | 0.782237 | 158 | 1,171 | 5.689873 | 0.632911 | 0.066741 | 0.028921 | 0.035595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008214 | 0.168232 | 1,171 | 26 | 79 | 45.038462 | 0.914784 | 0.553373 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6e6f061bf3e88511a12d68d9eafbb9b6ea46df33 | 8,799 | py | Python | access_control/migrations/versions/e8d15433bc60_.py | hedleyroos/core-access-control | 9c275beecd4f37280f7234b358f5f9caad372378 | [
"BSD-3-Clause"
] | null | null | null | access_control/migrations/versions/e8d15433bc60_.py | hedleyroos/core-access-control | 9c275beecd4f37280f7234b358f5f9caad372378 | [
"BSD-3-Clause"
] | 71 | 2017-12-04T09:14:15.000Z | 2019-01-30T11:38:06.000Z | access_control/migrations/versions/e8d15433bc60_.py | hedleyroos/core-access-control | 9c275beecd4f37280f7234b358f5f9caad372378 | [
"BSD-3-Clause"
] | 1 | 2021-08-17T12:05:27.000Z | 2021-08-17T12:05:27.000Z | """empty message
Revision ID: e8d15433bc60
Revises:
Create Date: 2018-03-05 15:39:06.461420
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
import access_control
# revision identifiers, used by Alembic.
revision = 'e8d15433bc60'
down_revision = None
branch_labels = None... | 47.562162 | 106 | 0.680077 | 1,173 | 8,799 | 4.906223 | 0.081841 | 0.102867 | 0.119201 | 0.125109 | 0.809383 | 0.768549 | 0.720243 | 0.636316 | 0.582103 | 0.54179 | 0 | 0.007032 | 0.127287 | 8,799 | 184 | 107 | 47.820652 | 0.742414 | 0.032163 | 0 | 0.449102 | 0 | 0 | 0.230923 | 0.015804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011976 | false | 0 | 0.023952 | 0 | 0.035928 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6eb2b48b464f4f292641fd81b2dd09c3bd6fcbdb | 1,047 | py | Python | apps/shipping_addresses/models.py | feliamunda/Django_Store | 13da471d8f492c9cb0d3f596a8ec1ed38ab177f4 | [
"Apache-2.0"
] | null | null | null | apps/shipping_addresses/models.py | feliamunda/Django_Store | 13da471d8f492c9cb0d3f596a8ec1ed38ab177f4 | [
"Apache-2.0"
] | null | null | null | apps/shipping_addresses/models.py | feliamunda/Django_Store | 13da471d8f492c9cb0d3f596a8ec1ed38ab177f4 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from apps.users.models import User
# Create your models here.
class ShippingAddress(models.Model):
user = models.ForeignKey(User, null=False, blank=False, on_delete=models.CASCADE)
line1 = models.CharField(max_length=200)
line2 = models.CharField(max_length=200, null=True, bl... | 31.727273 | 85 | 0.692455 | 135 | 1,047 | 5.222222 | 0.451852 | 0.148936 | 0.178723 | 0.238298 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026097 | 0.194842 | 1,047 | 33 | 86 | 31.727273 | 0.810202 | 0.022923 | 0 | 0 | 0 | 0 | 0.011742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.130435 | 0.869565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6ebb998c1035a84d76c4b496b0fa7e94518b7f3e | 2,775 | py | Python | iati/home/migrations/0004_auto_20180626_1221.py | andylolz/IATI-Standard-Website | b781b9fe6b6430f93826e530e9560183bf8fd310 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | iati/home/migrations/0004_auto_20180626_1221.py | andylolz/IATI-Standard-Website | b781b9fe6b6430f93826e530e9560183bf8fd310 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | iati/home/migrations/0004_auto_20180626_1221.py | andylolz/IATI-Standard-Website | b781b9fe6b6430f93826e530e9560183bf8fd310 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | # Generated by Django 2.0.5 on 2018-06-26 12:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0019_delete_filter'),
('home', '0003_standardpage'),
]
operations = [
migrations.A... | 34.259259 | 297 | 0.575135 | 281 | 2,775 | 5.558719 | 0.288256 | 0.149808 | 0.191421 | 0.224712 | 0.644686 | 0.644686 | 0.619718 | 0.560819 | 0.560819 | 0.560819 | 0 | 0.024987 | 0.307748 | 2,775 | 80 | 298 | 34.6875 | 0.788131 | 0.016216 | 0 | 0.662162 | 1 | 0.013514 | 0.160924 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.067568 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ebef56df5588c2c4171606dad73321d65bb781e | 46,700 | py | Python | large-repo-master/test-3/nb21.py | victorsun123/numpy | 1fb036758b4035ab2c132d26f420e5bc3ffc917e | [
"BSD-3-Clause"
] | null | null | null | large-repo-master/test-3/nb21.py | victorsun123/numpy | 1fb036758b4035ab2c132d26f420e5bc3ffc917e | [
"BSD-3-Clause"
] | null | null | null | large-repo-master/test-3/nb21.py | victorsun123/numpy | 1fb036758b4035ab2c132d26f420e5bc3ffc917e | [
"BSD-3-Clause"
] | null | null | null | # Databricks notebook source
BGBQHOWGGFSMHPYXGTO
NZPBFOKMJLRQHTARPERJDKKJQZPZKYQCWGGKJLOJJGHLJABIYDVAYNJVEYPYNYHIEWTJHFMDBEJXY
YGPGFWXAJUKFLCXFPXDGXTEVNVRFKDXIYKLYACCVXBWTDQOQHXDNIJXRLNXBFSLJYR
EDQHGMWXXKNBGRPVWTVEYCIQJCENTCTADVYPELTBKBMSXQNCRTZGCMFGGEJIGIVKMIEBSWQPJOGQNEXRUEGOALGKVKQPTOZMLVQKCNKLQHNWIZOPPYI
VPOCQGWW... | 51.150055 | 868 | 0.975653 | 778 | 46,700 | 58.564267 | 0.978149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020321 | 46,700 | 913 | 869 | 51.150055 | 0.995891 | 0.007473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0.001319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ee91a85ebff50419cdde6daaf668aa9bf5b9158 | 87 | py | Python | collar/apps.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | collar/apps.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | collar/apps.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | 1 | 2021-04-01T16:52:35.000Z | 2021-04-01T16:52:35.000Z | from django.apps import AppConfig
class CollarConfig(AppConfig):
name = 'collar'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 | 0 | 0 | 0 | 3 |
42cc4af24b7f1b204ab630587045fb6ea34c00b0 | 175 | py | Python | nexus/nlptools/language_detect.py | leoll2/hyperboria | 30a0ae466b290208f690560160ef1f5c16e4a744 | [
"Unlicense"
] | 54 | 2021-01-07T03:02:36.000Z | 2022-03-28T17:19:29.000Z | nexus/nlptools/language_detect.py | the-superpirate/hyperboria | 74776166158d07b199677f9738862e5f1fa54367 | [
"Unlicense"
] | 10 | 2021-01-08T17:38:59.000Z | 2022-02-28T14:34:45.000Z | nexus/nlptools/language_detect.py | the-superpirate/hyperboria | 74776166158d07b199677f9738862e5f1fa54367 | [
"Unlicense"
] | 16 | 2020-12-28T18:31:44.000Z | 2022-02-22T15:00:53.000Z | import cld3
def detect_language(text: str) -> str:
prediction = cld3.get_language(text)
if prediction and prediction.is_reliable:
return prediction.language
| 21.875 | 45 | 0.731429 | 22 | 175 | 5.681818 | 0.636364 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.194286 | 175 | 7 | 46 | 25 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
42cd17a6f181e683456c8528a4cc2f97eb09a4d1 | 5,710 | py | Python | animec/waifu.py | DriftAsimov/animec | 4dacd0f87c8367305a905a6ff21aa6c4e611b8a2 | [
"MIT"
] | 29 | 2021-04-10T16:34:10.000Z | 2022-03-28T15:37:37.000Z | animec/waifu.py | DriftAsimov/animec | 4dacd0f87c8367305a905a6ff21aa6c4e611b8a2 | [
"MIT"
] | 8 | 2021-04-20T06:39:18.000Z | 2022-03-14T10:32:43.000Z | animec/waifu.py | DriftAsimov/Anime-Character-Package | 4dacd0f87c8367305a905a6ff21aa6c4e611b8a2 | [
"MIT"
] | 9 | 2021-04-20T10:27:30.000Z | 2021-09-06T05:30:15.000Z | import json
from .errors import NoResultFound
from urllib.request import urlopen, Request
from urllib.error import HTTPError
from random import choice
__all__ = ['Waifu']
class Waifu:
"""Represents the waifu class. Fetches image urls from `waifu.pics <https://waifu.pics/>`__."""
base = "https:... | 24.826087 | 136 | 0.545534 | 624 | 5,710 | 4.769231 | 0.168269 | 0.155242 | 0.139785 | 0.182796 | 0.313172 | 0.275202 | 0.027554 | 0.027554 | 0 | 0 | 0 | 0.005356 | 0.31331 | 5,710 | 229 | 137 | 24.934498 | 0.753634 | 0.161296 | 0 | 0.303279 | 0 | 0.008197 | 0.102185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.270492 | false | 0 | 0.040984 | 0 | 0.598361 | 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 | 0 | 1 | 0 | 0 | 3 |
42defc47aa17ae82dac2a9b680a67abd7f6be35c | 15,874 | py | Python | pysnmp-with-texts/RFC-HIPPI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/RFC-HIPPI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/RFC-HIPPI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module RFC-HIPPI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RFC-HIPPI-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:56:15 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 184.581395 | 1,044 | 0.79709 | 2,057 | 15,874 | 6.151191 | 0.165289 | 0.007587 | 0.076346 | 0.007587 | 0.582629 | 0.473406 | 0.435786 | 0.422588 | 0.411997 | 0.403936 | 0 | 0.0469 | 0.106778 | 15,874 | 85 | 1,045 | 186.752941 | 0.845476 | 0.020159 | 0 | 0 | 0 | 0.230769 | 0.47623 | 0.010614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089744 | 0 | 0.089744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
42e7c8d487b29f0265272203ed0c48e6194bcef5 | 3,979 | py | Python | superset/securityGeo/security_views.py | tommy2gis/swsk-map-dashboard | 0eb9c4e2935ea05063ed7720a53481f89c1e14a0 | [
"Apache-2.0"
] | null | null | null | superset/securityGeo/security_views.py | tommy2gis/swsk-map-dashboard | 0eb9c4e2935ea05063ed7720a53481f89c1e14a0 | [
"Apache-2.0"
] | 8 | 2021-02-02T22:33:08.000Z | 2022-03-29T22:27:54.000Z | superset/securityGeo/security_views.py | shitao1988/swsk-map-dashboard | 0eb9c4e2935ea05063ed7720a53481f89c1e14a0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from flask_cas import login_required
from superset.cas import myCas
from flask import g, redirect, flash, url_for
from flask_appbuilder._compat im... | 38.259615 | 109 | 0.64187 | 465 | 3,979 | 5.303226 | 0.292473 | 0.025547 | 0.025953 | 0.045418 | 0.223844 | 0.177616 | 0.177616 | 0.177616 | 0.112733 | 0.093268 | 0 | 0.001325 | 0.241518 | 3,979 | 103 | 110 | 38.631068 | 0.815772 | 0.479769 | 0 | 0.052632 | 0 | 0 | 0.060637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.421053 | 0 | 0.684211 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
42f156eaae6cc375814ac2dbb1b9d492c81fb729 | 3,964 | py | Python | src/DefaultClasses.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | src/DefaultClasses.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | src/DefaultClasses.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | from AST import *
from CIL import *
#TODO Definir en CIL algunos metodos predefinidos
class Defaults:
def ObjectClass():
#selfattribute=AttributeNode("self","Int",IntegerNode(0))
# identifier=AttributeNode("type#","Int",IntegerNode(0))
abort=MethodNode("abort",[],"Object",[])
typena... | 46.093023 | 180 | 0.650353 | 397 | 3,964 | 6.365239 | 0.183879 | 0.041156 | 0.074792 | 0.089038 | 0.294816 | 0.203403 | 0.145627 | 0.090226 | 0.044321 | 0 | 0 | 0.000885 | 0.145056 | 3,964 | 86 | 180 | 46.093023 | 0.744762 | 0.133451 | 0 | 0.089286 | 0 | 0 | 0.199124 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.25 | false | 0 | 0.035714 | 0 | 0.553571 | 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 | 0 | 1 | 0 | 0 | 3 |
6e095e5d816ab9d272fb9f0faca6e65cd4688e6b | 166 | py | Python | GoodsClass.py | HarborYuan/cashier | 7abffb4176e94bc8af4746399a5d2c24cd2f8f60 | [
"MIT"
] | 1 | 2019-03-07T15:16:57.000Z | 2019-03-07T15:16:57.000Z | GoodsClass.py | HarborYuan/cashier | 7abffb4176e94bc8af4746399a5d2c24cd2f8f60 | [
"MIT"
] | null | null | null | GoodsClass.py | HarborYuan/cashier | 7abffb4176e94bc8af4746399a5d2c24cd2f8f60 | [
"MIT"
] | null | null | null | class Goods(object):
__slots__ = ('id', 'name', 'price')
def __init__(self,id,name,price):
self.id=id
self.name=name
self.price=price | 23.714286 | 39 | 0.578313 | 22 | 166 | 4 | 0.454545 | 0.136364 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26506 | 166 | 7 | 40 | 23.714286 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e474400cf0673cf2bf931f04e4ee91bef7b4645 | 7,807 | py | Python | glyphs.py | pcrama/pylcdocr | 3e24c55d84b7a3918609eb41e55ce032ce421af9 | [
"BSD-2-Clause"
] | null | null | null | glyphs.py | pcrama/pylcdocr | 3e24c55d84b7a3918609eb41e55ce032ce421af9 | [
"BSD-2-Clause"
] | null | null | null | glyphs.py | pcrama/pylcdocr | 3e24c55d84b7a3918609eb41e55ce032ce421af9 | [
"BSD-2-Clause"
] | null | null | null | import numpy
def scale_array(arr, scale):
if (scale != int(scale)) or (scale < 1):
raise RuntimeError("scale={!r} must be a positive integer".format(scale))
elif scale == 1:
return arr
if len(arr.shape) == 2:
result = numpy.zeros(
(arr.shape[0] * scale, arr.shape[1] * sc... | 31.607287 | 122 | 0.380812 | 1,155 | 7,807 | 2.528139 | 0.090909 | 0.228767 | 0.277397 | 0.306849 | 0.543836 | 0.49726 | 0.476027 | 0.462329 | 0.462329 | 0.37774 | 0 | 0.129469 | 0.42321 | 7,807 | 246 | 123 | 31.735772 | 0.518987 | 0.017805 | 0 | 0.65678 | 0 | 0 | 0.023617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029661 | false | 0 | 0.004237 | 0.004237 | 0.067797 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2828e2dff54cd6895de66094491b85fa0f99c642 | 246 | py | Python | neighbourhood/urls.py | ZephonMakale/Neighbour-Watch | 77755fd135680cb6a2df08924ed2d1f33430cd1a | [
"MIT"
] | null | null | null | neighbourhood/urls.py | ZephonMakale/Neighbour-Watch | 77755fd135680cb6a2df08924ed2d1f33430cd1a | [
"MIT"
] | 8 | 2021-04-08T20:59:27.000Z | 2022-01-13T03:34:42.000Z | neighbourhood/urls.py | ZephonMakale/Neighbour-Watch | 77755fd135680cb6a2df08924ed2d1f33430cd1a | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('neighbourwatc.urls'))
] | 27.333333 | 43 | 0.747967 | 33 | 246 | 5.575758 | 0.424242 | 0.217391 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 246 | 9 | 44 | 27.333333 | 0.86385 | 0 | 0 | 0 | 0 | 0 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 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 | 3 |
284eb7ad8cd954b4c633ac6c2d72c140676caabc | 731 | py | Python | src/codes/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-02-06T02:59:17.000Z | 2021-11-15T18:13:27.000Z | src/codes/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-06-14T04:43:43.000Z | 2019-10-27T11:03:30.000Z | src/codes/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-03-14T07:40:56.000Z | 2019-12-30T23:11:36.000Z | """ This contains the basic codes that we need for code generation.
These include the coefficients which need to have code generated and
other types of codes (e.g., for loops) that are not yet implemented.
The encoders for writing the code are also found here.
ECHU: Note to AJ, in the future, structu... | 43 | 75 | 0.749658 | 98 | 731 | 5.591837 | 0.744898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194254 | 731 | 16 | 76 | 45.6875 | 0.93039 | 0.581395 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2853879693d6f76b91c3edff44742457b74328a8 | 196 | py | Python | config/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | config/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | config/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | keywords = ( "class", "def", "else", "end", "if", "int", "new", "nil", "obj", "print" )
primitives = ( "ID", "NUM", "NEWLINE" )
literals = [ ";", ":", "=", "(", ")", "{", "}", ".", "+", "-", "," ] | 65.333333 | 87 | 0.367347 | 16 | 196 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 196 | 3 | 88 | 65.333333 | 0.447205 | 0 | 0 | 0 | 0 | 0 | 0.28934 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
28629c6a72a1b56cd98ef515df3933857377f343 | 233 | py | Python | src/abe_sim/builder/actuators/head.py | vanjaSophie/abe_sim | ee309f639c170fff29bda9bcfb76555d75ea1a11 | [
"BSD-2-Clause"
] | null | null | null | src/abe_sim/builder/actuators/head.py | vanjaSophie/abe_sim | ee309f639c170fff29bda9bcfb76555d75ea1a11 | [
"BSD-2-Clause"
] | null | null | null | src/abe_sim/builder/actuators/head.py | vanjaSophie/abe_sim | ee309f639c170fff29bda9bcfb76555d75ea1a11 | [
"BSD-2-Clause"
] | null | null | null | from morse.builder.creator import ActuatorCreator
class Head(ActuatorCreator):
_classpath = "abe_sim.actuators.head.Head"
_blendname = "head"
def __init__(self, name=None):
ActuatorCreator.__init__(self, name)
| 23.3 | 49 | 0.729614 | 26 | 233 | 6.115385 | 0.692308 | 0.100629 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171674 | 233 | 9 | 50 | 25.888889 | 0.823834 | 0 | 0 | 0 | 0 | 0 | 0.133621 | 0.116379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
28716d57fb57eaf39b77c684ff4edb74ab260636 | 33 | py | Python | name.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | 1 | 2019-12-24T19:41:37.000Z | 2019-12-24T19:41:37.000Z | name.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | null | null | null | name.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | 1 | 2019-11-18T16:15:43.000Z | 2019-11-18T16:15:43.000Z | app_name="freenit" # noqa: E225
| 16.5 | 32 | 0.69697 | 5 | 33 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.151515 | 33 | 1 | 33 | 33 | 0.678571 | 0.30303 | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
288480f63b266108f9afc35a5e5ccd22e087ef01 | 297 | py | Python | tests/test_metric.py | davidthomas5412/ActiveOpticsSimulator | 8c2ef23e95ca9e712f113c13611e3a723936d1b7 | [
"MIT"
] | 4 | 2019-07-17T23:06:52.000Z | 2021-09-15T10:38:51.000Z | tests/test_metric.py | davidthomas5412/ActiveOpticsSimulator | 8c2ef23e95ca9e712f113c13611e3a723936d1b7 | [
"MIT"
] | 5 | 2019-09-05T22:13:11.000Z | 2019-11-18T02:55:08.000Z | tests/test_metric.py | davidthomas5412/ActiveOpticsSimulator | 8c2ef23e95ca9e712f113c13611e3a723936d1b7 | [
"MIT"
] | null | null | null | import numpy as np
from aos.metric import SumOfSquares
from aos.state import BendingState
def test_sum_of_squares():
arr = np.arange(BendingState.LENGTH)
x = BendingState(arr)
tm = SumOfSquares()
ref = np.sum(np.arange(BendingState.LENGTH) ** 2)
assert tm.evaluate(x) == ref
| 24.75 | 53 | 0.713805 | 42 | 297 | 4.97619 | 0.571429 | 0.066986 | 0.191388 | 0.248804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.181818 | 297 | 11 | 54 | 27 | 0.855967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
28a39a9e71a3b84988adf58877f75b7cf8860256 | 42 | py | Python | jembatan/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | jembatan/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | jembatan/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | __all__ = ['core', 'typesys', 'wrappers']
| 21 | 41 | 0.619048 | 4 | 42 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 42 | 1 | 42 | 42 | 0.594595 | 0 | 0 | 0 | 0 | 0 | 0.452381 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9594d98d8cb6de9c957d806676404348a418ce53 | 175 | py | Python | referly/referrals/forms.py | chhantyal/referly | d985b8fa36be0d565bc2bf2b86546729e9150565 | [
"BSD-3-Clause"
] | null | null | null | referly/referrals/forms.py | chhantyal/referly | d985b8fa36be0d565bc2bf2b86546729e9150565 | [
"BSD-3-Clause"
] | null | null | null | referly/referrals/forms.py | chhantyal/referly | d985b8fa36be0d565bc2bf2b86546729e9150565 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from .models import Referral
class ReferralUpdateForm(forms.ModelForm):
class Meta:
model = Referral
fields=('title', 'slug',) | 17.5 | 42 | 0.68 | 19 | 175 | 6.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 175 | 10 | 43 | 17.5 | 0.881481 | 0 | 0 | 0 | 0 | 0 | 0.051136 | 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 | 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 | 3 |
959d6e82a169d06acee60260114517b0bbf17cd8 | 208 | py | Python | gafconvert/src/refbed_loader.py | nguyetdang/PARROT | 82c3e3a97bcfb4ba5497f051fb229c5f8117a2ce | [
"MIT"
] | null | null | null | gafconvert/src/refbed_loader.py | nguyetdang/PARROT | 82c3e3a97bcfb4ba5497f051fb229c5f8117a2ce | [
"MIT"
] | null | null | null | gafconvert/src/refbed_loader.py | nguyetdang/PARROT | 82c3e3a97bcfb4ba5497f051fb229c5f8117a2ce | [
"MIT"
] | null | null | null | import pandas as pd
def refbed_loader(refbedpath):
refbed = pd.read_table(refbedpath, header=None)
refbed = refbed.rename(columns={0: "SegName", 1: "Start", 2: "End", 3: "SegID"})
return refbed
| 26 | 84 | 0.677885 | 29 | 208 | 4.793103 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.173077 | 208 | 7 | 85 | 29.714286 | 0.784884 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
959ee375f26e1f85fa58198a9986f6f28c84b498 | 1,509 | py | Python | flow/core/kernel/detector/base.py | parthjaggi/flow | 45c044536345091b634a0633d7e7fb3f66952542 | [
"MIT"
] | 5 | 2020-12-12T19:58:08.000Z | 2021-06-11T05:09:40.000Z | flow/core/kernel/detector/base.py | RaptorMai/flow | ad5a3c5b945e0ca6a7f101db739bca82cba1bc00 | [
"MIT"
] | 1 | 2021-01-23T14:34:11.000Z | 2021-01-23T14:34:11.000Z | flow/core/kernel/detector/base.py | parthjaggi/flow | 45c044536345091b634a0633d7e7fb3f66952542 | [
"MIT"
] | null | null | null | """Script containing the base detector kernel class."""
class KernelDetector(object):
"""Docstring
"""
def __init__(self, master_kernel):
"""DocString
"""
self.master_kernel = master_kernel
self.kernel_api = None
def pass_api(self, kernel_api):
"""DocString
... | 21.557143 | 58 | 0.591783 | 139 | 1,509 | 6.129496 | 0.309353 | 0.164319 | 0.387324 | 0.380282 | 0.589202 | 0.543427 | 0.437793 | 0.320423 | 0.133803 | 0 | 0 | 0 | 0.314115 | 1,509 | 69 | 59 | 21.869565 | 0.823188 | 0.211398 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0.038462 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
95cba40e34b6d28310ca0cf7209b32d9de085e49 | 557 | py | Python | vortex_auth/holder.py | sihrc/vortex-auth | 729701628b4e7e446ac86bbc85640e9c997b869f | [
"MIT"
] | null | null | null | vortex_auth/holder.py | sihrc/vortex-auth | 729701628b4e7e446ac86bbc85640e9c997b869f | [
"MIT"
] | null | null | null | vortex_auth/holder.py | sihrc/vortex-auth | 729701628b4e7e446ac86bbc85640e9c997b869f | [
"MIT"
] | null | null | null | class Auth(object):
def __init__(self, values=None):
self.values = values or {}
def __setattr__(self, name, value):
if name != "values":
self.values[name] = value
else:
super().__setattr__(name, value)
def __getattribute__(self, key):
if key != "valu... | 26.52381 | 50 | 0.56553 | 61 | 557 | 4.770492 | 0.393443 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328546 | 557 | 20 | 51 | 27.85 | 0.778075 | 0 | 0 | 0 | 0 | 0 | 0.021544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.058824 | 0.529412 | 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 | 0 | 1 | 0 | 0 | 3 |
95cd1bc7bf6b2dc704141a3d873081e20f78cc58 | 200 | py | Python | acapy_client/models/create_wallet_request_wallet_type.py | Indicio-tech/acapy-client | 0bd47af23308362db749c2671a3e7f8259855897 | [
"Apache-2.0"
] | 4 | 2021-08-05T09:20:34.000Z | 2021-08-08T19:37:29.000Z | acapy_client/models/create_wallet_request_wallet_type.py | Indicio-tech/acapy-client | 0bd47af23308362db749c2671a3e7f8259855897 | [
"Apache-2.0"
] | null | null | null | acapy_client/models/create_wallet_request_wallet_type.py | Indicio-tech/acapy-client | 0bd47af23308362db749c2671a3e7f8259855897 | [
"Apache-2.0"
] | 2 | 2021-08-12T18:18:45.000Z | 2021-08-14T13:22:28.000Z | from enum import Enum
class CreateWalletRequestWalletType(str, Enum):
ASKAR = "askar"
IN_MEMORY = "in_memory"
INDY = "indy"
def __str__(self) -> str:
return str(self.value)
| 18.181818 | 47 | 0.65 | 24 | 200 | 5.166667 | 0.583333 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245 | 200 | 10 | 48 | 20 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
95de8fd7e83b49cfb020b0901900bddb3b45dc92 | 61 | py | Python | code/abc147_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc147_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc147_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | S=input()
print(sum(S[i]!=S[-i-1] for i in range(len(S)//2))) | 30.5 | 51 | 0.57377 | 16 | 61 | 2.1875 | 0.6875 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.081967 | 61 | 2 | 51 | 30.5 | 0.589286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2501d3ab7437c7bb1e96d0b88f61af6c179c842f | 5,194 | py | Python | register.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | register.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | register.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | import json
import os
import importlib
from optparse import OptionParser
import boto.swf
import settings as settingsLib
import workflow
import activity
# Add parent directory for imports, so activity classes can use elife-poa-xml-generation
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sy... | 37.1 | 93 | 0.729688 | 540 | 5,194 | 6.792593 | 0.294444 | 0.200927 | 0.222737 | 0.008179 | 0.131952 | 0.123228 | 0.123228 | 0.123228 | 0.123228 | 0.071974 | 0 | 0.001843 | 0.164228 | 5,194 | 139 | 94 | 37.366906 | 0.843124 | 0.056219 | 0 | 0.072727 | 0 | 0 | 0.23971 | 0.042606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.018182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
250c6575a966b42270d95d79d72bfa9e5d31dfb1 | 456 | py | Python | raspberrypi/tcp/video/image_process.py | ChenHao96/tensorflow | 82b76ae80ebf5d1f320a6787371b9522e7cd5a69 | [
"Apache-2.0"
] | null | null | null | raspberrypi/tcp/video/image_process.py | ChenHao96/tensorflow | 82b76ae80ebf5d1f320a6787371b9522e7cd5a69 | [
"Apache-2.0"
] | null | null | null | raspberrypi/tcp/video/image_process.py | ChenHao96/tensorflow | 82b76ae80ebf5d1f320a6787371b9522e7cd5a69 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
DATA_HEAD_LENGTH = 16
def encode_image_array(image_shape=None):
if image_shape is not None:
# TODO:
return None
return None
def data_receive_length(data_head=None):
if data_head is not None:
# TODO:
return 0
return 0
def de... | 17.538462 | 57 | 0.635965 | 67 | 456 | 4.104478 | 0.358209 | 0.116364 | 0.098182 | 0.141818 | 0.309091 | 0.24 | 0.24 | 0.24 | 0 | 0 | 0 | 0.015244 | 0.280702 | 456 | 25 | 58 | 18.24 | 0.823171 | 0.122807 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 3 |
25289d6e366512b0f94f796d2689b3d652cd334c | 465 | py | Python | tests/test_voiceplay_cli.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | 2 | 2017-03-22T10:02:07.000Z | 2020-08-02T11:56:47.000Z | tests/test_voiceplay_cli.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | 69 | 2016-12-10T22:27:47.000Z | 2017-12-14T05:15:43.000Z | tests/test_voiceplay_cli.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | null | null | null | import unittest
from tests import mytestrunner
from voiceplay.cli.main import main
from voiceplay.cli.argparser.argparser import Help, MyArgumentParser
from voiceplay.cli.console.console import Console
class DummyTestCase(unittest.TestCase):
'''
'''
def setUp(self):
pass
def test_01_test_norma... | 20.217391 | 68 | 0.709677 | 53 | 465 | 6.018868 | 0.490566 | 0.122257 | 0.15047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.208602 | 465 | 22 | 69 | 21.136364 | 0.861413 | 0 | 0 | 0.2 | 0 | 0 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
252affda4beaadaf1fcfc5db90865a6aa0df52af | 559 | py | Python | tests/fixtures/erc20/test_smoke.py | iamdefinitelyahuman/defi-mocks | 42167850cad7c83b8257e134df2551906c524800 | [
"MIT"
] | 3 | 2020-05-26T22:46:00.000Z | 2022-02-03T08:07:08.000Z | tests/fixtures/erc20/test_smoke.py | iamdefinitelyahuman/defi-mocks | 42167850cad7c83b8257e134df2551906c524800 | [
"MIT"
] | null | null | null | tests/fixtures/erc20/test_smoke.py | iamdefinitelyahuman/defi-mocks | 42167850cad7c83b8257e134df2551906c524800 | [
"MIT"
] | null | null | null |
# TODO
def test_DAI(DAI, accounts):
assert DAI.decimals() == 18
DAI._mint_for_testing(10000000, {'from': accounts[0]})
assert DAI.balanceOf(accounts[0]) == 10000000
tx = DAI.transfer(accounts[1], 1000, {'from': accounts[0]})
assert tx.return_value is True
def test_USDT(USDT, accounts):
as... | 24.304348 | 64 | 0.667263 | 77 | 559 | 4.714286 | 0.337662 | 0.14876 | 0.143251 | 0.209366 | 0.683196 | 0.528926 | 0.528926 | 0.528926 | 0.30303 | 0.30303 | 0 | 0.11087 | 0.177102 | 559 | 22 | 65 | 25.409091 | 0.678261 | 0.007156 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0.045455 | 0.5 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
253696e858ae02286ce09b46621599bfcb9d6d65 | 1,795 | py | Python | src/tests/test_metrics.py | danipab12/Lab3 | 7b9f43fe169e4c8f745fa946dc0355c8ac739f16 | [
"MIT"
] | 13 | 2016-08-01T22:48:17.000Z | 2021-06-22T21:06:18.000Z | src/tests/test_metrics.py | danipab12/Lab3 | 7b9f43fe169e4c8f745fa946dc0355c8ac739f16 | [
"MIT"
] | null | null | null | src/tests/test_metrics.py | danipab12/Lab3 | 7b9f43fe169e4c8f745fa946dc0355c8ac739f16 | [
"MIT"
] | 11 | 2016-08-01T22:48:20.000Z | 2019-09-04T21:14:40.000Z | from unittest import TestCase
import numpy as np
import toolkit.metrics as metrics
class TestMotion(TestCase):
def test_true_positives(self):
y_true = np.array([[1, 1, 1, 1],
[1, 0, 1, 1],
[0, 0, 0, 1]])
y_pred = np.array([[0, 1, 1, 1],
... | 38.191489 | 75 | 0.418384 | 244 | 1,795 | 2.848361 | 0.135246 | 0.080576 | 0.069065 | 0.046043 | 0.821583 | 0.781295 | 0.778417 | 0.696403 | 0.588489 | 0.535252 | 0 | 0.108632 | 0.425627 | 1,795 | 47 | 76 | 38.191489 | 0.56547 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2538b0de9ea0184e4699dbd584291e70337e6998 | 988 | py | Python | weblog/bitorama/admin.py | Hassan1247/bitorama | e28d7889371d0d13643449bfef97161411056371 | [
"MIT"
] | 1 | 2021-10-05T13:40:49.000Z | 2021-10-05T13:40:49.000Z | weblog/bitorama/admin.py | Hassan1247/bitorama | e28d7889371d0d13643449bfef97161411056371 | [
"MIT"
] | null | null | null | weblog/bitorama/admin.py | Hassan1247/bitorama | e28d7889371d0d13643449bfef97161411056371 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'description', 'date_created']
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
list_display = ['post', 'text', 'username', 'verified', 'date_created']
@a... | 22.454545 | 75 | 0.732794 | 106 | 988 | 6.707547 | 0.349057 | 0.146273 | 0.213783 | 0.292546 | 0.274262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119433 | 988 | 43 | 76 | 22.976744 | 0.817241 | 0 | 0 | 0 | 0 | 0 | 0.163968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.