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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de0cb1734bbbfde47318cbe0652abebc803baf10 | 737 | py | Python | dl/layers/layer_base.py | nuka137/DeepLearningFramework | 613881e46b48c2206b9424a49106455cb2336d2e | [
"MIT"
] | 10 | 2020-06-28T05:50:41.000Z | 2022-01-30T01:31:43.000Z | dl/layers/layer_base.py | nuka137/DeepLearningFramework | 613881e46b48c2206b9424a49106455cb2336d2e | [
"MIT"
] | null | null | null | dl/layers/layer_base.py | nuka137/DeepLearningFramework | 613881e46b48c2206b9424a49106455cb2336d2e | [
"MIT"
] | 1 | 2020-07-26T12:36:32.000Z | 2020-07-26T12:36:32.000Z | class LayerBase:
name_counter = {}
def __init__(self):
cls = self.__class__
if self.id() not in cls.name_counter:
cls.name_counter[self.id()] = 0
self.name_ = "{}_{}".format(self.id(), cls.name_counter[self.id()])
cls.name_counter[self.id()] += 1
... | 21.057143 | 76 | 0.545455 | 78 | 737 | 4.935897 | 0.346154 | 0.142857 | 0.145455 | 0.14026 | 0.171429 | 0.119481 | 0.119481 | 0 | 0 | 0 | 0 | 0.004098 | 0.337856 | 737 | 34 | 77 | 21.676471 | 0.784836 | 0 | 0 | 0.227273 | 0 | 0 | 0.007112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.045455 | 0 | 0.136364 | 0.590909 | 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 |
a9abc917df449e8a1cd762d816558b96406a79d7 | 13,329 | py | Python | backend/course/views.py | ducluongtran9121/Web-Application-Project | 548c711c8aa245e7965d054e8e71f1ecb3819d36 | [
"MIT"
] | 1 | 2022-01-20T16:04:22.000Z | 2022-01-20T16:04:22.000Z | backend/course/views.py | ducluongtran9121/Web-Application-Project | 548c711c8aa245e7965d054e8e71f1ecb3819d36 | [
"MIT"
] | null | null | null | backend/course/views.py | ducluongtran9121/Web-Application-Project | 548c711c8aa245e7965d054e8e71f1ecb3819d36 | [
"MIT"
] | 1 | 2021-09-07T05:47:36.000Z | 2021-09-07T05:47:36.000Z | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.parsers import FormParser, MultiPartParser, JSONParser
from rest_framework.views import APIView
from rest_framework import mixins
from rest_framework import viewsets
from rest_framework.decorators imp... | 40.513678 | 103 | 0.637482 | 1,474 | 13,329 | 5.637042 | 0.088874 | 0.079191 | 0.032495 | 0.04116 | 0.768564 | 0.756529 | 0.713925 | 0.694067 | 0.684318 | 0.660489 | 0 | 0.01326 | 0.258834 | 13,329 | 328 | 104 | 40.637195 | 0.827817 | 0.009528 | 0 | 0.542125 | 0 | 0 | 0.09653 | 0.016897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069597 | false | 0 | 0.058608 | 0.003663 | 0.373626 | 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 |
a9b0d43459d2f34bb47d05a2ec1eeb22c4297edf | 739 | py | Python | Products/PloneGetPaid/browser/upgrade.py | collective/Products.PloneGetPaid | 8a89ce3585315d84221b7ab46bfb28beeefda3b2 | [
"ZPL-2.1"
] | 2 | 2019-10-27T22:12:10.000Z | 2021-02-17T19:54:55.000Z | Products/PloneGetPaid/browser/upgrade.py | collective/Products.PloneGetPaid | 8a89ce3585315d84221b7ab46bfb28beeefda3b2 | [
"ZPL-2.1"
] | 1 | 2017-08-24T11:40:25.000Z | 2017-08-24T13:38:45.000Z | Products/PloneGetPaid/browser/upgrade.py | collective/Products.PloneGetPaid | 8a89ce3585315d84221b7ab46bfb28beeefda3b2 | [
"ZPL-2.1"
] | 2 | 2016-02-04T09:06:52.000Z | 2021-02-17T19:55:02.000Z |
from Products.Five.browser import BrowserView
from Products.PloneGetPaid import generations
class AdminUpgrade( BrowserView ):
log = None
def __call__( self ):
if self.request.form.has_key('upgrade'):
self.log = self._upgrade()
return super( AdminUpgrade, self ).__call__(... | 28.423077 | 56 | 0.633288 | 68 | 739 | 6.720588 | 0.470588 | 0.148797 | 0.137856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282815 | 739 | 26 | 57 | 28.423077 | 0.862264 | 0.031123 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0.1875 | 0.875 | 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 |
a9c3e9e0dda7d322dd1d6202afc95fb5b7109d98 | 1,260 | py | Python | bead/tech/persistence.py | krisztianfekete/lib | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 1 | 2016-05-06T15:14:22.000Z | 2016-05-06T15:14:22.000Z | bead/tech/persistence.py | e3krisztian/bead | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 21 | 2017-02-16T13:49:06.000Z | 2021-11-20T21:38:45.000Z | bead/tech/persistence.py | ceumicrodata/bead | 180527203b8dadd0e1acd9c6f73be1887b61bc44 | [
"Unlicense"
] | 1 | 2016-10-25T22:09:53.000Z | 2016-10-25T22:09:53.000Z | '''
Functions to persist python structures or load them.
'''
import io
import json
# json is used for serializing objects for persistence as it is
# - in the standard library from >=2.6 (including 3.*)
# - 2.7 version decodes strings as unicode, unlike e.g. the csv module
# - the interface is also becoming the standa... | 21 | 70 | 0.69127 | 192 | 1,260 | 4.473958 | 0.447917 | 0.076834 | 0.052387 | 0.041909 | 0.200233 | 0.181607 | 0.072177 | 0 | 0 | 0 | 0 | 0.009911 | 0.199206 | 1,260 | 59 | 71 | 21.355932 | 0.841427 | 0.320635 | 0 | 0 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.107143 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e703f638b11be9a31e74c76c5f2705218ca34c29 | 1,023 | py | Python | tests/test_q0202.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | null | null | null | tests/test_q0202.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | 1 | 2018-07-04T23:10:20.000Z | 2018-07-04T23:10:20.000Z | tests/test_q0202.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | null | null | null | """Unit tests for q0202.py."""
import unittest
from src.utils.linkedlist import LinkedList
from src.q0202 import kth_element_to_last
class TestKthElementToLast(unittest.TestCase):
"""Tests for kth element to last."""
def test_kth_element_to_last(self):
linked_list = LinkedList()
self.assertE... | 34.1 | 67 | 0.72434 | 147 | 1,023 | 4.653061 | 0.238095 | 0.175439 | 0.210526 | 0.280702 | 0.635965 | 0.635965 | 0.51462 | 0.51462 | 0.51462 | 0.450292 | 0 | 0.026005 | 0.173021 | 1,023 | 29 | 68 | 35.275862 | 0.782506 | 0.053763 | 0 | 0.210526 | 0 | 0 | 0.008359 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e70f71d19d36afa6253641c9196b2797d1ffa6f1 | 169 | py | Python | idest_dash_components/_imports_.py | idest/dash_components | 44e29323dd54f16c02cca5eb019601654fba8866 | [
"MIT"
] | null | null | null | idest_dash_components/_imports_.py | idest/dash_components | 44e29323dd54f16c02cca5eb019601654fba8866 | [
"MIT"
] | null | null | null | idest_dash_components/_imports_.py | idest/dash_components | 44e29323dd54f16c02cca5eb019601654fba8866 | [
"MIT"
] | null | null | null | from .ExampleComponent import ExampleComponent
from .Import import Import
from .Slider import Slider
__all__ = [
"ExampleComponent",
"Import",
"Slider",
]
| 15.363636 | 46 | 0.715976 | 16 | 169 | 7.3125 | 0.3125 | 0.376068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195266 | 169 | 10 | 47 | 16.9 | 0.860294 | 0 | 0 | 0 | 0 | 0 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7447d71759c5246a3f402ae442a8385d0297f32 | 196 | py | Python | Backend/clear_db.py | nemonanja/furry-ironman | 3b14d089a246c31b1826b907e27f3038c7df26bd | [
"Apache-2.0"
] | 4 | 2015-02-19T13:57:42.000Z | 2015-03-24T13:11:45.000Z | Backend/clear_db.py | nemonanja/furry-ironman | 3b14d089a246c31b1826b907e27f3038c7df26bd | [
"Apache-2.0"
] | 3 | 2015-02-19T14:13:57.000Z | 2016-11-07T13:38:03.000Z | Backend/clear_db.py | nemonanja/furry-ironman | 3b14d089a246c31b1826b907e27f3038c7df26bd | [
"Apache-2.0"
] | null | null | null | import sqlite3
conn = sqlite3.connect('swp.db')
c = conn.cursor()
c.execute('DELETE FROM data')
c.execute('DELETE FROM api')
c.execute("VACUUM")
conn.commit()
conn.close()
print "db cleared"
| 13.066667 | 32 | 0.69898 | 30 | 196 | 4.566667 | 0.6 | 0.175182 | 0.20438 | 0.262774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.127551 | 196 | 14 | 33 | 14 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.270408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e751deea327d8e57915f5c7c3d593ab3882054ae | 117 | py | Python | acmicpc/10987.py | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/10987.py | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/10987.py | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | l = ['a', 'e', 'i', 'o', 'u']
c = 0
for i in input():
for j in l:
if i == j:
c += 1
print(c)
| 14.625 | 29 | 0.324786 | 23 | 117 | 1.652174 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.42735 | 117 | 7 | 30 | 16.714286 | 0.537313 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e760d256bfe50e5b10eb634d354f504fe3c7f98a | 92 | py | Python | ChristmasSocks/src/client/core/consts.py | dsw7/ChristmasSocks | b430f4d32c08190c68df0c6568e6108a1300bde3 | [
"MIT"
] | null | null | null | ChristmasSocks/src/client/core/consts.py | dsw7/ChristmasSocks | b430f4d32c08190c68df0c6568e6108a1300bde3 | [
"MIT"
] | 6 | 2021-07-13T07:39:46.000Z | 2021-08-22T05:49:43.000Z | ChristmasSocks/src/client/core/consts.py | dsw7/ChristmasSocks | b430f4d32c08190c68df0c6568e6108a1300bde3 | [
"MIT"
] | null | null | null | PROJECT_TITLE = '--- ChristmasSocks Remote Server Management Software ---'
PANEL_MARGIN = 3
| 30.666667 | 74 | 0.76087 | 10 | 92 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.130435 | 92 | 2 | 75 | 46 | 0.8375 | 0 | 0 | 0 | 0 | 0 | 0.608696 | 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 |
e77383dad9281b79b5583d81c6d500125744ebe8 | 75 | py | Python | wickedhot/__init__.py | thatch/wickedhot | fd1ef92f96a79bd83997cb4a514631bfc3e36204 | [
"MIT"
] | null | null | null | wickedhot/__init__.py | thatch/wickedhot | fd1ef92f96a79bd83997cb4a514631bfc3e36204 | [
"MIT"
] | null | null | null | wickedhot/__init__.py | thatch/wickedhot | fd1ef92f96a79bd83997cb4a514631bfc3e36204 | [
"MIT"
] | null | null | null | from wickedhot.one_hot_encoder import OneHotEncoder
__version__ = "0.1.6"
| 18.75 | 51 | 0.813333 | 11 | 75 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.106667 | 75 | 3 | 52 | 25 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 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 |
e780ae703d4bb679c499b7d2e6afac9596ba2f71 | 235 | py | Python | core/mongodb.py | naolArega/buchi | cecc807a23a1177dc387b03aa05b4b2700e05977 | [
"MIT"
] | null | null | null | core/mongodb.py | naolArega/buchi | cecc807a23a1177dc387b03aa05b4b2700e05977 | [
"MIT"
] | 5 | 2022-03-18T08:00:14.000Z | 2022-03-21T16:58:27.000Z | core/mongodb.py | naolArega/buchi | cecc807a23a1177dc387b03aa05b4b2700e05977 | [
"MIT"
] | 1 | 2022-03-21T18:58:34.000Z | 2022-03-21T18:58:34.000Z | import asyncio
from decouple import config
from motor.motor_asyncio import AsyncIOMotorClient
cs = config("MONGODB_CS")
client = AsyncIOMotorClient(cs)
client.get_io_loop = asyncio.get_running_loop
buchi = client.get_database('buchi') | 29.375 | 50 | 0.829787 | 32 | 235 | 5.875 | 0.5 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093617 | 235 | 8 | 51 | 29.375 | 0.882629 | 0 | 0 | 0 | 0 | 0 | 0.063559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
e782d8493528622698e7d201c0798da66ecd7ec1 | 668 | py | Python | Exercise02/2-21.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | Exercise02/2-21.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | Exercise02/2-21.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | '''
@Date: 2019-07-10 17:12:59
@Author: ywyz
@LastModifiedBy: ywyz
@Github: https://github.com/ywyz
@LastEditors: ywyz
@LastEditTime: 2019-07-10 18:05:17
'''
monthlySavingAmount = eval(input("Enter the monthly saving amount: "))
firstMonth = monthlySavingAmount * (1 + 0.00417)
secondMonth = (firstMonth + monthlySavingA... | 39.294118 | 70 | 0.727545 | 78 | 668 | 6.230769 | 0.525641 | 0.246914 | 0.259259 | 0.320988 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120275 | 0.128743 | 668 | 16 | 71 | 41.75 | 0.714777 | 0.223054 | 0 | 0 | 0 | 0 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
e79a86d47284879371571e757dbaf4cfb159b360 | 4,816 | py | Python | datasets/tr_cpi_parser.py | davidpaulkim/Stock-Market-Price-Prediction | 925fea67e48b2cc72e1e6ee821066633eeae21e3 | [
"MIT"
] | 8 | 2021-04-25T15:11:28.000Z | 2021-11-08T14:35:16.000Z | datasets/tr_cpi_parser.py | davidpaulkim/Stock-Market-Price-Prediction | 925fea67e48b2cc72e1e6ee821066633eeae21e3 | [
"MIT"
] | 1 | 2022-01-15T13:06:42.000Z | 2022-01-15T13:06:42.000Z | datasets/tr_cpi_parser.py | davidpaulkim/Stock-Market-Price-Prediction | 925fea67e48b2cc72e1e6ee821066633eeae21e3 | [
"MIT"
] | 3 | 2021-05-05T15:07:18.000Z | 2021-10-19T22:38:56.000Z | # src= "https://tcmb.gov.tr/wps/wcm/connect/EN/TCMB+EN/Main+Menu/Statistics/Inflation+Data/Consumer+Prices"
cpi_values = """02-2021 15.61 0.91
01-2021 14.97 1.68
12-2020 14.60 1.25
11-2020 14.03 2.30
10-2020 11.89 2.13
09-2020 11.75 0.97
08-2020 11.77 0.86
07-2020 11.76 0.58
06-2020 12.62 1.13
05-2020 11.39 1.36
04-202... | 19.341365 | 111 | 0.668605 | 1,509 | 4,816 | 2.129225 | 0.111332 | 0.00747 | 0.003735 | 0.003735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.733218 | 0.158638 | 4,816 | 249 | 112 | 19.341365 | 0.059724 | 0.021802 | 0 | 0 | 0 | 0 | 0.962633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004065 | 0 | 0.004065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7aa6ebde8ed6cfd76bdf9c6ccf79ad514ea71af | 3,801 | py | Python | test/test_matcher/test_marketorder.py | Miksus/ecosys | f30b21b10340b5ac92acc8bb34eb3d4ead3bff51 | [
"MIT"
] | 2 | 2022-02-28T16:23:23.000Z | 2022-03-16T21:57:07.000Z | test/test_matcher/test_marketorder.py | Miksus/ecosys | f30b21b10340b5ac92acc8bb34eb3d4ead3bff51 | [
"MIT"
] | null | null | null | test/test_matcher/test_marketorder.py | Miksus/ecosys | f30b21b10340b5ac92acc8bb34eb3d4ead3bff51 | [
"MIT"
] | null | null | null |
import pytest
import sys
sys.path.append('..')
from ecosys.trading_platform.matcher.stockmarket import StockMatcher
def test_last_price_only_market_orders():
market = StockMatcher()
market.place_ask(quantity=50, order_type="market", party="Market Asker")
market.place_bid(quantity=100, order_type="market"... | 38.01 | 100 | 0.692449 | 519 | 3,801 | 4.878613 | 0.109827 | 0.139021 | 0.082938 | 0.109005 | 0.851106 | 0.830964 | 0.750395 | 0.686019 | 0.635861 | 0.553318 | 0 | 0.031775 | 0.138911 | 3,801 | 99 | 101 | 38.393939 | 0.741827 | 0.023152 | 0 | 0.552239 | 0 | 0 | 0.148421 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 1 | 0.104478 | false | 0 | 0.044776 | 0 | 0.149254 | 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 |
e7cf7935a445b8fc0fad2efbd30f0f630d51e5aa | 188 | py | Python | src/traingame/__version__.py | timolesterhuis/traingame | 8617b9d0ca90d933f10cea7390653901a311ed9a | [
"MIT"
] | null | null | null | src/traingame/__version__.py | timolesterhuis/traingame | 8617b9d0ca90d933f10cea7390653901a311ed9a | [
"MIT"
] | null | null | null | src/traingame/__version__.py | timolesterhuis/traingame | 8617b9d0ca90d933f10cea7390653901a311ed9a | [
"MIT"
] | null | null | null | __title__ = "traingame"
__description__ = "Train your own AI and race it!"
__url__ = ""
__version__ = "0.4.0"
__author__ = "Timo Lesterhuis"
__author_email__ = "timo.lesterhuis@nl.ey.com"
| 26.857143 | 50 | 0.734043 | 25 | 188 | 4.52 | 0.84 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.132979 | 188 | 6 | 51 | 31.333333 | 0.674847 | 0 | 0 | 0 | 0 | 0 | 0.446809 | 0.132979 | 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 | 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 |
99b26122958d850c23089d3d107bedf2caa2c12e | 129 | py | Python | itscsapp/research/apps.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/research/apps.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/research/apps.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ResearchConfig(AppConfig):
name = "itscsapp.research"
verbose_name = "Research"
| 21.5 | 33 | 0.751938 | 14 | 129 | 6.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 129 | 5 | 34 | 25.8 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.193798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
99cc9fbd1d9431de09308d0f485004ae8aceef88 | 2,342 | py | Python | Products/GSSearch/tests/test_searchmessage.py | groupserver/Products.GSSearch | 2b843b688812cfd382ed0e8caf92a6eef287f4c4 | [
"ZPL-2.1"
] | null | null | null | Products/GSSearch/tests/test_searchmessage.py | groupserver/Products.GSSearch | 2b843b688812cfd382ed0e8caf92a6eef287f4c4 | [
"ZPL-2.1"
] | null | null | null | Products/GSSearch/tests/test_searchmessage.py | groupserver/Products.GSSearch | 2b843b688812cfd382ed0e8caf92a6eef287f4c4 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2004, 2005 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | 36.59375 | 82 | 0.572161 | 223 | 2,342 | 5.883408 | 0.569507 | 0.02439 | 0.032012 | 0.030488 | 0.045732 | 0.045732 | 0 | 0 | 0 | 0 | 0 | 0.01971 | 0.26345 | 2,342 | 63 | 83 | 37.174603 | 0.74087 | 0.716055 | 0 | 0.181818 | 0 | 0 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 0 | 0.363636 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
99e23533c3fdb3d28da4270c5b0a19f3a3207ad2 | 187 | py | Python | students/K33402/Velts Andrey/lab0304/backend/events/urls.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33402/Velts Andrey/lab0304/backend/events/urls.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33402/Velts Andrey/lab0304/backend/events/urls.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | from rest_framework.routers import DefaultRouter
from .views import EventViewSet
router = DefaultRouter()
router.register(r"", EventViewSet, basename="events")
urlpatterns = router.urls
| 26.714286 | 53 | 0.812834 | 21 | 187 | 7.190476 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096257 | 187 | 6 | 54 | 31.166667 | 0.893491 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
821e0ef094d03d380adb27dc53476c5592f9dd1d | 233 | py | Python | timetracker/sheets/tasks.py | tm-kn/CHT2520-assignment2 | 05d8c8372d60672e603acf201d1fbf7ffde9484e | [
"BSD-2-Clause"
] | null | null | null | timetracker/sheets/tasks.py | tm-kn/CHT2520-assignment2 | 05d8c8372d60672e603acf201d1fbf7ffde9484e | [
"BSD-2-Clause"
] | 9 | 2019-12-04T23:33:07.000Z | 2022-02-10T12:23:54.000Z | timetracker/sheets/tasks.py | tm-kn/cht2520-assignment2 | 05d8c8372d60672e603acf201d1fbf7ffde9484e | [
"BSD-2-Clause"
] | null | null | null | from timetracker.celery import app
from timetracker.sheets.models import TimeSheet
@app.task
def generate_csv_file_for_timesheet(sheet_id, end_datetime):
sheet = TimeSheet.objects.get(pk=sheet_id)
sheet.generate_csv_file()
| 25.888889 | 60 | 0.811159 | 34 | 233 | 5.294118 | 0.617647 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111588 | 233 | 8 | 61 | 29.125 | 0.869565 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
82286b1e1d7683d5fa92d97d88949a2085ff8a6d | 150 | py | Python | behind/chats/routing.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | null | null | null | behind/chats/routing.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | 6 | 2021-03-19T01:22:45.000Z | 2021-06-10T18:59:30.000Z | behind/chats/routing.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | null | null | null | from django.urls import path
from chats import consumers
websocket_urlpatterns = [
path('ws/v1/chat_rooms/<int:id>/', consumers.ChatConsumer),
] | 21.428571 | 63 | 0.753333 | 20 | 150 | 5.55 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.126667 | 150 | 7 | 64 | 21.428571 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0.172185 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
419c49c431cf90e0b19749582ab85135c66adde6 | 568 | py | Python | tests/test_index.py | alytle/local-lambda-toolkit | e61b982c8740dd8b1b1709e759f86e408b4d4d7a | [
"MIT"
] | null | null | null | tests/test_index.py | alytle/local-lambda-toolkit | e61b982c8740dd8b1b1709e759f86e408b4d4d7a | [
"MIT"
] | null | null | null | tests/test_index.py | alytle/local-lambda-toolkit | e61b982c8740dd8b1b1709e759f86e408b4d4d7a | [
"MIT"
] | null | null | null | import mock
import unittest
from mock import patch, Mock, MagicMock
import boto3
from botocore.stub import Stubber
import sys
sys.path.append("..")
import awslambda
class TestHandler(unittest.TestCase):
def test_handler(self):
"""
Test the handler operates as expected.
"""
pass
... | 18.322581 | 52 | 0.653169 | 65 | 568 | 5.461538 | 0.584615 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025761 | 0.248239 | 568 | 30 | 53 | 18.933333 | 0.805621 | 0.306338 | 0 | 0 | 0 | 0 | 0.027248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.466667 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
41a07d92c5cc71c6a03582d8b2318484185aa41a | 52 | py | Python | conf_site/cms/__init__.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | null | null | null | conf_site/cms/__init__.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | null | null | null | conf_site/cms/__init__.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | null | null | null | default_app_config = "conf_site.cms.apps.CmsConfig"
| 26 | 51 | 0.826923 | 8 | 52 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 52 | 1 | 52 | 52 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 0.538462 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41c3b5df28d941e6233b03a754823a6326731df0 | 735 | py | Python | eve_station/database/models/core/api_key.py | narthollis/eve-station | 0347616c38245b8d38731b271f85c4b30419464a | [
"Apache-2.0"
] | null | null | null | eve_station/database/models/core/api_key.py | narthollis/eve-station | 0347616c38245b8d38731b271f85c4b30419464a | [
"Apache-2.0"
] | null | null | null | eve_station/database/models/core/api_key.py | narthollis/eve-station | 0347616c38245b8d38731b271f85c4b30419464a | [
"Apache-2.0"
] | null | null | null | from ...database import Base
from sqlalchemy import Column, Integer, String
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.dialects.postgresql import ARRAY
from ...database import Base
class ApiKey(Base):
api_key_id = Column(Integer, primary_ke... | 31.956522 | 78 | 0.770068 | 89 | 735 | 6.202247 | 0.337079 | 0.188406 | 0.13587 | 0.181159 | 0.418478 | 0.418478 | 0.277174 | 0.195652 | 0 | 0 | 0 | 0.004724 | 0.136054 | 735 | 22 | 79 | 33.409091 | 0.864567 | 0 | 0 | 0.133333 | 0 | 0 | 0.12517 | 0.12517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
41c7ab1ca75ed02f37f0acc9c2b28056baeb4f20 | 133 | py | Python | tests/stresstest/map_test.py | realead/tighthash | f6a3b062be146834c8f84f1c7b68cdd1604eee4f | [
"MIT"
] | null | null | null | tests/stresstest/map_test.py | realead/tighthash | f6a3b062be146834c8f84f1c7b68cdd1604eee4f | [
"MIT"
] | null | null | null | tests/stresstest/map_test.py | realead/tighthash | f6a3b062be146834c8f84f1c7b68cdd1604eee4f | [
"MIT"
] | null | null | null |
import sys
sys.path.append('..')
from tighthash import pmap
from testutils import testing_map
testing_map("TightHashMap", pmap)
| 12.090909 | 33 | 0.766917 | 18 | 133 | 5.555556 | 0.611111 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135338 | 133 | 10 | 34 | 13.3 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
41ccc02a5dd96ec664121048a3045cc338f0ee68 | 70 | py | Python | settings.py | moki9/flickrize | 5a93765b3327728dcf9c3c404cffadab7d409082 | [
"Unlicense"
] | null | null | null | settings.py | moki9/flickrize | 5a93765b3327728dcf9c3c404cffadab7d409082 | [
"Unlicense"
] | null | null | null | settings.py | moki9/flickrize | 5a93765b3327728dcf9c3c404cffadab7d409082 | [
"Unlicense"
] | null | null | null | FLICKR_FEED='https://api.flickr.com/services/feeds/photos_public.gne'
| 35 | 69 | 0.814286 | 11 | 70 | 5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 70 | 1 | 70 | 70 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.785714 | 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 |
68c5e72ef4b80afc8cb1c4861bcc2d5939d984b1 | 250 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py | sreecodeslayer/cookiecutter-flask-restful | cbac01b2de6db68b7c46b05ecd52028415feb067 | [
"MIT"
] | 5 | 2018-05-12T15:34:11.000Z | 2020-07-09T09:16:02.000Z | order_manager/extensions.py | sreecodeslayer/order_manager | 4140569bc4f0fc898b7e683be596265279a146fc | [
"MIT"
] | null | null | null | order_manager/extensions.py | sreecodeslayer/order_manager | 4140569bc4f0fc898b7e683be596265279a146fc | [
"MIT"
] | 1 | 2019-02-13T09:57:55.000Z | 2019-02-13T09:57:55.000Z | from passlib.hash import pbkdf2_sha256
from flask_jwt_extended import JWTManager
from flask_marshmallow import Marshmallow
from flask_mongoengine import MongoEngine
db = MongoEngine()
jwt = JWTManager()
ma = Marshmallow()
pwd_context = pbkdf2_sha256 | 27.777778 | 41 | 0.844 | 32 | 250 | 6.375 | 0.5 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.112 | 250 | 9 | 42 | 27.777778 | 0.882883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.5 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
68dcdfc5a67d680fb850b9727c25c4d5be6c55c1 | 299 | py | Python | gs/content/form/base/__init__.py | groupserver/gs.content.form.base | 7d76ca6860aadbdab4aa63b13f0ce670cbbd242e | [
"ZPL-2.1"
] | null | null | null | gs/content/form/base/__init__.py | groupserver/gs.content.form.base | 7d76ca6860aadbdab4aa63b13f0ce670cbbd242e | [
"ZPL-2.1"
] | null | null | null | gs/content/form/base/__init__.py | groupserver/gs.content.form.base | 7d76ca6860aadbdab4aa63b13f0ce670cbbd242e | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
#lint:disable
from .checkbox import multi_check_box_widget
from .form import SiteForm
from .radio import radio_widget
from .select import select_widget
from .disabledtextwidget import disabled_text_widget
#lint:enable
| 29.9 | 56 | 0.829431 | 41 | 299 | 5.731707 | 0.585366 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.107023 | 299 | 9 | 57 | 33.222222 | 0.876404 | 0.147157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ec27351be0561587dee37c0ed6586d86c665b13f | 780 | py | Python | src/skmultiflow/data/stats/aggregate_stats_buffered.py | trajkova-elena/scikit-multiflow | dd372c677a97346a9c60cd25b45b350e0fd83d3c | [
"BSD-3-Clause"
] | 1 | 2020-09-16T12:03:29.000Z | 2020-09-16T12:03:29.000Z | src/skmultiflow/data/stats/aggregate_stats_buffered.py | trajkova-elena/scikit-multiflow | dd372c677a97346a9c60cd25b45b350e0fd83d3c | [
"BSD-3-Clause"
] | null | null | null | src/skmultiflow/data/stats/aggregate_stats_buffered.py | trajkova-elena/scikit-multiflow | dd372c677a97346a9c60cd25b45b350e0fd83d3c | [
"BSD-3-Clause"
] | 3 | 2020-10-02T08:36:52.000Z | 2020-10-21T10:50:20.000Z | import numpy as np
class StdDev:
"""
Taken from
https://math.stackexchange.com/questions/198336/how-to-calculate-standard-deviation-with-streaming-inputs
"""
def __init__(self, buffer):
self.buffer = buffer
def register_value(self, value):
values = self.buffer.register_value(v... | 23.636364 | 109 | 0.660256 | 98 | 780 | 5.071429 | 0.346939 | 0.181087 | 0.066398 | 0.102616 | 0.603622 | 0.603622 | 0.603622 | 0.603622 | 0.603622 | 0.603622 | 0 | 0.009967 | 0.228205 | 780 | 32 | 110 | 24.375 | 0.815615 | 0.148718 | 0 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ec2aca50be7eac2b5476ae77b8db206850c1fe8f | 185 | py | Python | alipay/create_direct_pay_by_user/dpn/urls.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/urls.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/urls.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | from django.conf.urls import url
from alipay.create_direct_pay_by_user.dpn import views
urlpatterns = [
url(r'^$', views.dpn, {'item_check_callable': None}, name='alipay-dpn'),
]
| 23.125 | 76 | 0.72973 | 28 | 185 | 4.607143 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 185 | 7 | 77 | 26.428571 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.167568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
ec3abe5f60d25bf9ef05effbb747857fa96f006a | 2,390 | py | Python | tests/test_parsingtools.py | raymanP/matlab2python | 93cc0737f631221112935a76d7cbc45480c31f6d | [
"MIT"
] | 49 | 2019-12-15T23:52:53.000Z | 2022-03-31T12:52:07.000Z | tests/test_parsingtools.py | raymanP/matlab2python | 93cc0737f631221112935a76d7cbc45480c31f6d | [
"MIT"
] | 5 | 2021-09-11T21:30:30.000Z | 2021-12-01T01:07:51.000Z | tests/test_parsingtools.py | raymanP/matlab2python | 93cc0737f631221112935a76d7cbc45480c31f6d | [
"MIT"
] | 7 | 2020-12-10T16:30:19.000Z | 2022-03-14T03:05:57.000Z | import numpy as np
import unittest
from matlabparser.parsing_tools import *
# --------------------------------------------------------------------------------}
# ---
# --------------------------------------------------------------------------------{
class TestParsingTools(unittest.TestCase):
def assert... | 51.956522 | 84 | 0.524268 | 246 | 2,390 | 4.939024 | 0.272358 | 0.320988 | 0.126749 | 0.17284 | 0.678189 | 0.562963 | 0.526749 | 0.525926 | 0.375309 | 0.375309 | 0 | 0.036027 | 0.187029 | 2,390 | 45 | 85 | 53.111111 | 0.589295 | 0.227615 | 0 | 0 | 0 | 0 | 0.095078 | 0 | 0 | 0 | 0 | 0 | 0.793103 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b56f1930f38e520d3f80e761e61e2204504be9b | 289 | py | Python | nanak_customization/nanak_customization/sales_invoice.py | JitendraSAW/Nanak-Stores | 68fca376a5aa27ed030ae7682e91f150faf4f09c | [
"MIT"
] | null | null | null | nanak_customization/nanak_customization/sales_invoice.py | JitendraSAW/Nanak-Stores | 68fca376a5aa27ed030ae7682e91f150faf4f09c | [
"MIT"
] | null | null | null | nanak_customization/nanak_customization/sales_invoice.py | JitendraSAW/Nanak-Stores | 68fca376a5aa27ed030ae7682e91f150faf4f09c | [
"MIT"
] | 1 | 2022-03-29T05:18:07.000Z | 2022-03-29T05:18:07.000Z | import frappe
def after_submit(self,method):
if self.picklist_reference:
frappe.db.set_value("Nanak Pick List", self.picklist_reference, "sales_invoice", self.name)
frappe.db.set_value("Nanak Pick List", self.picklist_reference, "sales_invoice_status", "Created") | 48.166667 | 106 | 0.737024 | 39 | 289 | 5.230769 | 0.538462 | 0.176471 | 0.308824 | 0.156863 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0 | 0 | 0.148789 | 289 | 6 | 106 | 48.166667 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b5b79bdd119944db8ece8ca89c7c7084b7b3974 | 306 | py | Python | src/profiling_command.py | chilin0525/model-layer-profiling | a6db805b48b2a2a064eb41cb1a50ddda0f5ed79d | [
"MIT"
] | null | null | null | src/profiling_command.py | chilin0525/model-layer-profiling | a6db805b48b2a2a064eb41cb1a50ddda0f5ed79d | [
"MIT"
] | null | null | null | src/profiling_command.py | chilin0525/model-layer-profiling | a6db805b48b2a2a064eb41cb1a50ddda0f5ed79d | [
"MIT"
] | null | null | null | def generate_command(model_type, gpu_idx, command):
dlprof = "dlprof --reports all" + \
" --force=true" + \
" --mode=" + model_type + \
" --formats=json" + \
" --output_path=log " + command
return dlprof
| 30.6 | 53 | 0.431373 | 25 | 306 | 5.08 | 0.76 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.437909 | 306 | 9 | 54 | 34 | 0.738372 | 0 | 0 | 0 | 1 | 0 | 0.245098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b64f9f6617a3733c1c3abcf24134ee301a42005 | 369 | py | Python | wab/core/emails/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | null | null | null | wab/core/emails/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2020-12-17T13:51:12.000Z | 2020-12-17T13:51:12.000Z | wab/core/emails/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2021-05-18T12:30:53.000Z | 2021-05-18T12:30:53.000Z | from django.db.models import BooleanField, CharField, TextField
from wab.core.components.models import BaseModel
class EmailTemplate(BaseModel):
code = CharField("Specific code for core app", max_length=50, blank=True, null=True, editable=False, unique=True)
is_protected = BooleanField("Is protected", defaul... | 36.9 | 117 | 0.769648 | 47 | 369 | 6 | 0.680851 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006231 | 0.130081 | 369 | 9 | 118 | 41 | 0.872274 | 0 | 0 | 0 | 0 | 0 | 0.135501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6b72e46806a6f10889fe2bb7b8cb2127e773fb44 | 694 | py | Python | src/strategy/Hand.py | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | 31 | 2018-10-19T15:28:36.000Z | 2022-02-14T03:01:25.000Z | src/strategy/Hand.py | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | null | null | null | src/strategy/Hand.py | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | 10 | 2019-01-10T04:02:12.000Z | 2021-11-17T01:52:15.000Z | HANDVALUE_GUU = 0
HANDVALUE_CHO = 1
HANDVALUE_PAA = 2
name = ["石头", "剪刀", "布"]
class Hand:
def __init__(self, handvalue):
self.handvalue = handvalue
@staticmethod
def get_hand(handvalue):
return hand[handvalue]
def is_stronger_than(self, h):
return self.fight(h) == 1
de... | 19.828571 | 70 | 0.580692 | 90 | 694 | 4.266667 | 0.333333 | 0.169271 | 0.085938 | 0.078125 | 0.151042 | 0.151042 | 0.151042 | 0.151042 | 0.151042 | 0 | 0 | 0.020661 | 0.302594 | 694 | 34 | 71 | 20.411765 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.007205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6b76cf5d562988805f26f22cee27d5c8230be6f2 | 367 | py | Python | solutions/2021/prob_07.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | 1 | 2021-02-27T09:46:06.000Z | 2021-02-27T09:46:06.000Z | solutions/2021/prob_07.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | null | null | null | solutions/2021/prob_07.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | 1 | 2021-02-27T12:03:33.000Z | 2021-02-27T12:03:33.000Z | chars = list()
kjdas = False
for char in input().lower().replace(".", "").replace(",", "").replace("#", "").replace("'", "").replace("\"", "").replace(":", "").replace(";", "").replace("-", ""):
if char in chars:
print("Not an isogram")
kjdas = True
break
chars.append(char)
... | 26.214286 | 166 | 0.498638 | 37 | 367 | 4.945946 | 0.513514 | 0.535519 | 0.688525 | 0.765027 | 0.306011 | 0.306011 | 0.306011 | 0 | 0 | 0 | 0 | 0 | 0.237057 | 367 | 13 | 167 | 28.230769 | 0.653571 | 0 | 0 | 0 | 0 | 0 | 0.206215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
6b7dc5201e29164975cefef35ca4320d2e8cd50b | 491 | py | Python | statsig/statsig.py | ramikhalaf/python-sdk | fab15fd31698a33df3469aa9e53c5f5d0654017f | [
"ISC"
] | null | null | null | statsig/statsig.py | ramikhalaf/python-sdk | fab15fd31698a33df3469aa9e53c5f5d0654017f | [
"ISC"
] | null | null | null | statsig/statsig.py | ramikhalaf/python-sdk | fab15fd31698a33df3469aa9e53c5f5d0654017f | [
"ISC"
] | null | null | null | from .statsig_server import StatsigServer
__instance = StatsigServer()
def initialize(secretKey, options = None):
__instance.initialize(secretKey, options)
def check_gate(user, gate):
return __instance.check_gate(user, gate)
def get_config(user, config):
return __instance.get_config(user, config)
def g... | 22.318182 | 46 | 0.761711 | 60 | 491 | 5.883333 | 0.35 | 0.076487 | 0.110482 | 0.096317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14053 | 491 | 21 | 47 | 23.380952 | 0.836493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.071429 | 0.214286 | 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 |
6b7f7573462370827a3259de775d6e9bd9f5a9fc | 529 | py | Python | tests/test_0123-atlas-issues.py | nikoladze/uproot4 | 57fafcfd73c40aea21dd19a439c76c79fd370768 | [
"BSD-3-Clause"
] | null | null | null | tests/test_0123-atlas-issues.py | nikoladze/uproot4 | 57fafcfd73c40aea21dd19a439c76c79fd370768 | [
"BSD-3-Clause"
] | null | null | null | tests/test_0123-atlas-issues.py | nikoladze/uproot4 | 57fafcfd73c40aea21dd19a439c76c79fd370768 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE
from __future__ import absolute_import
import pytest
import skhep_testdata
import uproot4
def test_version():
assert uproot4.classname_decode(
uproot4.classname_encode("xAOD::MissingETAuxAssociationMap_v2")
) == (... | 29.388889 | 85 | 0.763705 | 58 | 529 | 6.706897 | 0.551724 | 0.164524 | 0.329049 | 0.143959 | 0.421594 | 0.421594 | 0.421594 | 0.421594 | 0.421594 | 0.421594 | 0 | 0.028322 | 0.132325 | 529 | 17 | 86 | 31.117647 | 0.819172 | 0.1569 | 0 | 0.181818 | 0 | 0 | 0.315315 | 0.315315 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | true | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6bb6ac8da22d1c52f010e0a69bc327e27adf3f97 | 52 | py | Python | tests/asp/gringo/simplify.002.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/asp/gringo/simplify.002.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/asp/gringo/simplify.002.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
a :- b, not a.
"""
output = """
{}
"""
| 6.5 | 14 | 0.326923 | 6 | 52 | 2.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288462 | 52 | 7 | 15 | 7.428571 | 0.459459 | 0 | 0 | 0.333333 | 0 | 0 | 0.384615 | 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 |
6bb78d12ef997486af29b093c3acf5606588f915 | 42 | py | Python | msg/__init__.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | 7 | 2018-02-28T19:03:48.000Z | 2020-12-21T01:15:34.000Z | msg/__init__.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | msg/__init__.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | default_app_config = 'msg.apps.MsgConfig'
| 21 | 41 | 0.809524 | 6 | 42 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 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 |
6bbad1de33119559beae16c809e025f31bc4f1b4 | 272 | py | Python | Examples/Suppliments/hello_unicode.py | Sharmila8/intropython2016 | a69aa6f6d0cd28c6a29d0b8adb9ef1ff9e2e8479 | [
"Unlicense"
] | null | null | null | Examples/Suppliments/hello_unicode.py | Sharmila8/intropython2016 | a69aa6f6d0cd28c6a29d0b8adb9ef1ff9e2e8479 | [
"Unlicense"
] | null | null | null | Examples/Suppliments/hello_unicode.py | Sharmila8/intropython2016 | a69aa6f6d0cd28c6a29d0b8adb9ef1ff9e2e8479 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
hello = 'Hello '
world = u'世界'
print hello + world
print u"It was nice weather today: it reached 80\u00B0"
print u"Maybe it will reach 90\N{degree sign}"
print u"It is extremely rare for it ever to reach 100° in Seattle"
| 19.428571 | 66 | 0.6875 | 51 | 272 | 3.686275 | 0.72549 | 0.095745 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.191176 | 272 | 13 | 67 | 20.923077 | 0.8 | 0.154412 | 0 | 0 | 0 | 0 | 0.649123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6bc88113cd69bfcee43f318a12ae1fc9110005ba | 4,591 | py | Python | apps/api/cached.py | moogoo78/portal20 | 085d598af0448ad34e22aa55981f7e82a042a893 | [
"MIT"
] | 7 | 2020-12-31T13:57:58.000Z | 2022-02-07T08:05:15.000Z | apps/api/cached.py | moogoo78/portal20 | 085d598af0448ad34e22aa55981f7e82a042a893 | [
"MIT"
] | 75 | 2020-03-16T07:18:28.000Z | 2022-03-31T09:55:15.000Z | apps/api/cached.py | moogoo78/portal20 | 085d598af0448ad34e22aa55981f7e82a042a893 | [
"MIT"
] | 9 | 2020-01-06T14:08:51.000Z | 2022-01-03T05:19:54.000Z | COUNTRY_ROWS = [
{
"label": "Taiwan",
"count": 296877
},
{
"label": "886",
"count": 15531
},
{
"label": "NP",
"count": 1783
},
{
"label": "TW",
"count": 1600
},... | 56.679012 | 3,177 | 0.406447 | 482 | 4,591 | 3.86722 | 0.323651 | 0.05794 | 0.100322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225182 | 0.280331 | 4,591 | 80 | 3,178 | 57.3875 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0.357221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bd2c544b80d9d6eb625e14ca5a9fd0c07d26abc | 748 | py | Python | tests/models.py | ckirby/django-model-ident | a25ee9ab733eeed5c2fa1a4bd8f9ead09b857090 | [
"BSD-2-Clause"
] | 2 | 2018-11-07T20:56:45.000Z | 2019-10-05T01:36:56.000Z | tests/models.py | ckirby/django-model-ident | a25ee9ab733eeed5c2fa1a4bd8f9ead09b857090 | [
"BSD-2-Clause"
] | 1 | 2018-11-07T20:59:22.000Z | 2018-11-07T21:10:15.000Z | tests/models.py | ckirby/django-model-ident | a25ee9ab733eeed5c2fa1a4bd8f9ead09b857090 | [
"BSD-2-Clause"
] | null | null | null | from django.db import models
class BaseManagerModel(models.Model):
@classmethod
def create(cls):
return cls.objects.create()
class TestManager(models.Manager):
def get_queryset(self):
return super(TestManager, self).get_queryset().none()
class RenameManagerModel(models.Model):
inst... | 19.684211 | 61 | 0.685829 | 78 | 748 | 6.551282 | 0.320513 | 0.086106 | 0.156556 | 0.180039 | 0.389432 | 0.389432 | 0.32681 | 0.32681 | 0.32681 | 0 | 0 | 0 | 0.208556 | 748 | 37 | 62 | 20.216216 | 0.863176 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.208333 | 0.833333 | 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 |
6bda7a302e5c98700b13fcb1d21392d2a8275721 | 231 | py | Python | exercises/en/exc_08_04a.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 1 | 2020-06-26T20:15:44.000Z | 2020-06-26T20:15:44.000Z | exercises/en/exc_08_04a.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 20 | 2020-06-15T23:05:20.000Z | 2020-09-01T22:07:45.000Z | exercises/en/exc_08_04a.py | UBC-MDS/MCL-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-06-25T20:53:13.000Z | 2020-06-25T20:53:13.000Z | import numpy as np
# Create 2 lists containing any the same number of elements
# Save each as objects named a_list and b_list
____
____
# Using boolean operators, what is outputted when you test to see if they are equal?
____ | 19.25 | 85 | 0.770563 | 39 | 231 | 4.205128 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.207792 | 231 | 12 | 86 | 19.25 | 0.89071 | 0.800866 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bde005a172bc171bf713bf6845e7047342b63d8 | 237 | py | Python | qftimports.py | Bra-A-Ket/QFTools | 09a32c93165138e657f0e81813c5e512f7093ead | [
"Apache-2.0"
] | 1 | 2021-12-09T21:11:11.000Z | 2021-12-09T21:11:11.000Z | qftimports.py | Bra-A-Ket/QFTools | 09a32c93165138e657f0e81813c5e512f7093ead | [
"Apache-2.0"
] | null | null | null | qftimports.py | Bra-A-Ket/QFTools | 09a32c93165138e657f0e81813c5e512f7093ead | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# external packages
import os
import getopt
import sys
from time import time
import itertools as it
import csv
from collections import Counter
import numpy as np
# internal imports
from qftoolslib.wick import *
| 14.8125 | 31 | 0.797468 | 36 | 237 | 5.25 | 0.666667 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.164557 | 237 | 15 | 32 | 15.8 | 0.949495 | 0.236287 | 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 |
6bf14c169c9cf6573eb59def7a5847271c27f290 | 499 | py | Python | examples/long_example.py | AdrieanKhisbe/logupdate.py | 4053415babee08d3fe14d46fa519bf9edd29a0ee | [
"MIT"
] | 5 | 2018-09-17T07:38:34.000Z | 2018-09-23T20:30:31.000Z | examples/long_example.py | AdrieanKhisbe/logupdate.py | 4053415babee08d3fe14d46fa519bf9edd29a0ee | [
"MIT"
] | 2 | 2020-03-25T19:11:38.000Z | 2020-04-16T07:23:49.000Z | examples/long_example.py | AdrieanKhisbe/logupdate.py | 4053415babee08d3fe14d46fa519bf9edd29a0ee | [
"MIT"
] | null | null | null | from logupdate import logupdate
from time import sleep
logupdate("This is gonna be...")
sleep(1)
logupdate("This is gonna be a very very very long example")
sleep(3)
logupdate("This is gonna be a very very very long example with very very long lines that span over terminal size")
sleep(3)
logupdate(
"""This is gon... | 29.352941 | 114 | 0.755511 | 84 | 499 | 4.488095 | 0.345238 | 0.169761 | 0.159151 | 0.212202 | 0.69496 | 0.636605 | 0.636605 | 0.636605 | 0.636605 | 0.636605 | 0 | 0.009547 | 0.160321 | 499 | 16 | 115 | 31.1875 | 0.890215 | 0 | 0 | 0.230769 | 0 | 0 | 0.472376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bf3d1cc238054ce70d6db4870045100c534df70 | 1,881 | py | Python | spartan/expr/__init__.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | spartan/expr/__init__.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | spartan/expr/__init__.py | MaggieQi/spartan | 24b9f977d0a9ae99e672bf90d80a0f22ac41d133 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Definitions of expressions and optimizations.
In Spartan, operations are not performed immediately. Instead, they are
represented using a graph of `Expr` nodes. Expression graphs can be
evaluated using the `Expr.evaluate` or `Expr.force` methods.
The `base` module contains the definition ... | 34.833333 | 107 | 0.785752 | 277 | 1,881 | 5.274368 | 0.476534 | 0.052704 | 0.032854 | 0.024641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000616 | 0.136629 | 1,881 | 53 | 108 | 35.490566 | 0.899015 | 0.497076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.740741 | 0 | 0.740741 | 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 |
6bfa50370670176e60c08b7fdbd8265e2ea74d9b | 1,311 | py | Python | galini/relaxations/continuous.py | michaelbynum/galini | e9d15ab7ebff49f89f643643d3d67fa573290290 | [
"Apache-2.0"
] | null | null | null | galini/relaxations/continuous.py | michaelbynum/galini | e9d15ab7ebff49f89f643643d3d67fa573290290 | [
"Apache-2.0"
] | null | null | null | galini/relaxations/continuous.py | michaelbynum/galini | e9d15ab7ebff49f89f643643d3d67fa573290290 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Francesco Ceccon
#
# 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 writ... | 34.5 | 74 | 0.73074 | 162 | 1,311 | 5.864198 | 0.574074 | 0.063158 | 0.027368 | 0.033684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007612 | 0.198322 | 1,311 | 37 | 75 | 35.432432 | 0.896289 | 0.471396 | 0 | 0 | 0 | 0 | 0.016296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.6875 | 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 |
6bfe37d411587bd05b84cc449e6406ce2dba33a4 | 1,119 | py | Python | ideas/web/doc-viewer/service/utils/hasher.py | ctfcup/2019-task-based | 3f1d76fb66471567bb33a09bab210e584f3635df | [
"MIT"
] | 1 | 2021-12-21T07:24:22.000Z | 2021-12-21T07:24:22.000Z | ideas/web/doc-viewer/service/utils/hasher.py | keltecc/ctfcup-2019-taskbased | 401beae15da91fcacc19eb306c077e7981fd850a | [
"MIT"
] | null | null | null | ideas/web/doc-viewer/service/utils/hasher.py | keltecc/ctfcup-2019-taskbased | 401beae15da91fcacc19eb306c077e7981fd850a | [
"MIT"
] | null | null | null | from math import sin
from wsgi import HASH_SALT
def calculate_hash(data: str) -> str:
return _calculate_inner(HASH_SALT + data)
def _calculate_inner(data: str) -> str:
A = 0x12345678
B = 0x9ABCDEF0
C = 0xDEADDEAD
D = 0xC0FEC0FE
E = 0xFEEDBEAF
X = [int(0xFFFFFFFF * sin(i)) & 0xFFFFFFFF fo... | 27.292683 | 67 | 0.486148 | 188 | 1,119 | 2.856383 | 0.260638 | 0.026071 | 0.027933 | 0.121043 | 0.119181 | 0.100559 | 0.05959 | 0 | 0 | 0 | 0 | 0.050198 | 0.323503 | 1,119 | 40 | 68 | 27.975 | 0.659181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155496 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.206897 | 0.551724 | 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 |
d432f0b6b3c542dfc499eb0c86c9c0883a4425bf | 433 | py | Python | other/dingding/dingtalk/api/rest/OapiFinanceIdCardOcrRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiFinanceIdCardOcrRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiFinanceIdCardOcrRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | '''
Created by auto_sdk on 2021.01.26
'''
from dingtalk.api.base import RestApi
class OapiFinanceIdCardOcrRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.back_picture_url = None
self.front_picture_url = None
self.id_card_no = None
self.request_id = None
self.user_mobile = Non... | 22.789474 | 43 | 0.755196 | 63 | 433 | 4.920635 | 0.603175 | 0.103226 | 0.070968 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021448 | 0.138568 | 433 | 18 | 44 | 24.055556 | 0.809651 | 0.076212 | 0 | 0 | 0 | 0 | 0.091837 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.538462 | 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 |
d470eaf544e3acd291cf87f1ac918fa520cb5ebc | 385 | py | Python | webapp/ansible/roles/webapp/files/webapp/app/form.py | iganari/hisucon2018 | be002210b7a07b3f7d7d95d26a2653a2021fdeaa | [
"MIT"
] | 4 | 2018-10-04T11:15:35.000Z | 2019-03-27T14:24:53.000Z | webapp/ansible/roles/webapp/files/webapp/app/form.py | iganari/hisucon2018 | be002210b7a07b3f7d7d95d26a2653a2021fdeaa | [
"MIT"
] | null | null | null | webapp/ansible/roles/webapp/files/webapp/app/form.py | iganari/hisucon2018 | be002210b7a07b3f7d7d95d26a2653a2021fdeaa | [
"MIT"
] | 2 | 2019-01-23T04:42:16.000Z | 2021-09-17T06:50:38.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
name = StringField('Name', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
rememb... | 35 | 73 | 0.771429 | 37 | 385 | 7.972973 | 0.567568 | 0.074576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 385 | 10 | 74 | 38.5 | 0.877976 | 0 | 0 | 0 | 0 | 0 | 0.05974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
2e039a33483a2d7782af93334c1ff8d69e0178e0 | 41 | py | Python | Modulo_1/semana2/Estructura-de-Datos/list/listas-remove.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_1/semana2/Estructura-de-Datos/list/listas-remove.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_1/semana2/Estructura-de-Datos/list/listas-remove.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | a=["a", "b", "c"]
a.remove("a")
print(a) | 13.666667 | 17 | 0.439024 | 9 | 41 | 2 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 41 | 3 | 18 | 13.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
2e1cd67fa9c46a1e222aea71efa3b999151f6255 | 6,514 | py | Python | test/test_npu/test_ne.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-12-02T03:07:35.000Z | 2021-12-02T03:07:35.000Z | test/test_npu/test_ne.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-11-12T07:23:03.000Z | 2021-11-12T08:28:13.000Z | test/test_npu/test_ne.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law... | 40.459627 | 99 | 0.562327 | 926 | 6,514 | 3.760259 | 0.136069 | 0.024124 | 0.020678 | 0.062033 | 0.736646 | 0.726881 | 0.713958 | 0.695003 | 0.657668 | 0.609133 | 0 | 0.071738 | 0.291679 | 6,514 | 160 | 100 | 40.7125 | 0.682922 | 0.090267 | 0 | 0.467742 | 0 | 0 | 0.004906 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.129032 | false | 0 | 0.048387 | 0 | 0.282258 | 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 |
2e2091009c4cde01e65d9d6d155994a2df15274f | 3,394 | py | Python | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_python_scalar.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_python_scalar.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_python_scalar.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import sys
import unittest
from dynd import nd, ndt
from datetime import date
if sys.version_info >= (3, 0):
unicode = str
class TestPythonScalar(unittest.TestCase):
def test_bool(self):
# Boolean true/false
a = nd.array(True)
self.assertEqual(nd.type_of(a), ndt.bool)
self.asse... | 35.354167 | 75 | 0.605775 | 522 | 3,394 | 3.798851 | 0.170498 | 0.279879 | 0.222895 | 0.08472 | 0.704488 | 0.692385 | 0.692385 | 0.629854 | 0.570348 | 0.570348 | 0 | 0.052136 | 0.248379 | 3,394 | 95 | 76 | 35.726316 | 0.725206 | 0.07307 | 0 | 0.4 | 0 | 0 | 0.026794 | 0 | 0 | 0 | 0 | 0 | 0.506667 | 1 | 0.093333 | false | 0 | 0.053333 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e3901bd1141a3c2858224acff0cf8877e77b094 | 449 | py | Python | booktoshare.py | gozik/booktoshare | 22e5a972a2435efb88d6de97998d45fbbf99e591 | [
"MIT"
] | null | null | null | booktoshare.py | gozik/booktoshare | 22e5a972a2435efb88d6de97998d45fbbf99e591 | [
"MIT"
] | null | null | null | booktoshare.py | gozik/booktoshare | 22e5a972a2435efb88d6de97998d45fbbf99e591 | [
"MIT"
] | null | null | null | import click
from flask import current_app
from app import db, create_app
from app.models.auth import User, Role
from app.models.books import Book
def register(app):
@app.cli.command("create_admin")
@click.argument("password")
def create_admin(password):
pass # TODO
app = create_app()
register... | 15.482759 | 38 | 0.688196 | 63 | 449 | 4.761905 | 0.444444 | 0.07 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202673 | 449 | 28 | 39 | 16.035714 | 0.837989 | 0.008909 | 0 | 0 | 0 | 0 | 0.068337 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.1875 | false | 0.1875 | 0.3125 | 0.0625 | 0.5625 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
2e3f8c9a28f51310ed1ba0df8ae46c7496713d56 | 242 | py | Python | background/urls.py | Ultimatum22/MediaPanel | b37f8f278763a129dddf6cd1bf6d462aa12c3316 | [
"Apache-2.0"
] | null | null | null | background/urls.py | Ultimatum22/MediaPanel | b37f8f278763a129dddf6cd1bf6d462aa12c3316 | [
"Apache-2.0"
] | null | null | null | background/urls.py | Ultimatum22/MediaPanel | b37f8f278763a129dddf6cd1bf6d462aa12c3316 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url, patterns
from background import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^update/', views.update),
) | 30.25 | 61 | 0.508264 | 24 | 242 | 5.125 | 0.583333 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 242 | 8 | 62 | 30.25 | 0.798701 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 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 |
2e44a6be596a7a6319c36c6a5ef5f8a3d894cd2f | 322 | py | Python | django_backend/fleet/serializers.py | CapacitacionDesoft/travels-log | 9b70061ec6a9bde14c14b255498a04a85ecf642c | [
"MIT"
] | 2 | 2021-05-20T18:26:08.000Z | 2021-08-31T02:43:26.000Z | django_backend/fleet/serializers.py | CapacitacionDesoft/travels-log | 9b70061ec6a9bde14c14b255498a04a85ecf642c | [
"MIT"
] | null | null | null | django_backend/fleet/serializers.py | CapacitacionDesoft/travels-log | 9b70061ec6a9bde14c14b255498a04a85ecf642c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Driver, Vehicle
class DriverSerializers(serializers.ModelSerializer):
class Meta:
model = Driver
fields = '__all__'
class VehicleSerializers(serializers.ModelSerializer):
class Meta:
model = Vehicle
fields = '__all__'... | 20.125 | 54 | 0.708075 | 30 | 322 | 7.3 | 0.533333 | 0.237443 | 0.283105 | 0.319635 | 0.365297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229814 | 322 | 15 | 55 | 21.466667 | 0.883065 | 0 | 0 | 0.4 | 0 | 0 | 0.043614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
2e5d40cef78acbd57ef0783742ed1dd8e911a220 | 248 | py | Python | kitsune/questions/urls_api.py | AndrewDVXI/kitsune | 84bd4fa60346681c3fc5a03b0b1540fd1335cee2 | [
"BSD-3-Clause"
] | 929 | 2015-01-04T08:08:51.000Z | 2022-03-31T06:20:44.000Z | kitsune/questions/urls_api.py | hafixo/kitsune | d7756872e16590eea1c6adaeb5bc78f83414d753 | [
"BSD-3-Clause"
] | 1,751 | 2015-01-02T00:04:37.000Z | 2022-03-31T10:24:30.000Z | kitsune/questions/urls_api.py | hixio-mh/kitsune | d7756872e16590eea1c6adaeb5bc78f83414d753 | [
"BSD-3-Clause"
] | 605 | 2015-01-01T14:08:36.000Z | 2022-03-28T15:39:45.000Z | from rest_framework import routers
from kitsune.questions.api import QuestionViewSet, AnswerViewSet
router = routers.SimpleRouter()
router.register(r"question", QuestionViewSet)
router.register(r"answer", AnswerViewSet)
urlpatterns = router.urls
| 27.555556 | 64 | 0.830645 | 28 | 248 | 7.321429 | 0.642857 | 0.136585 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084677 | 248 | 8 | 65 | 31 | 0.903084 | 0 | 0 | 0 | 0 | 0 | 0.056452 | 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 |
2e641dbb5ca7fa9570ab8a6dcd40ceac2384a131 | 3,072 | py | Python | main4.py | tamurata/E04a-Sprites | 0b762cbb1b7ce3028b5d55f404e71035a648b37a | [
"MIT"
] | null | null | null | main4.py | tamurata/E04a-Sprites | 0b762cbb1b7ce3028b5d55f404e71035a648b37a | [
"MIT"
] | null | null | null | main4.py | tamurata/E04a-Sprites | 0b762cbb1b7ce3028b5d55f404e71035a648b37a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import utils, os, random, time, open_color, arcade
utils.check_version((3,7))
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
SCREEN_TITLE = "Sprites Example"
class MyGame(arcade.Window):
def __init__(self):
super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
file_path = ... | 32.336842 | 85 | 0.688477 | 436 | 3,072 | 4.557339 | 0.222477 | 0.271766 | 0.338198 | 0.243583 | 0.699547 | 0.61852 | 0.61852 | 0.600403 | 0.465526 | 0.465526 | 0 | 0.035831 | 0.200521 | 3,072 | 95 | 86 | 32.336842 | 0.773208 | 0.011068 | 0 | 0.238806 | 0 | 0 | 0.10785 | 0.100264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0.014925 | 0.014925 | 0 | 0.119403 | 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 |
2e671713ec0f0e7ca3fc58109636f50329b8276c | 277 | py | Python | minos/auth_token/exceptions.py | minos-framework/minos-auth-token | 8c16251ae95f2ea260f7dce77d1b3376ac27138b | [
"MIT"
] | 5 | 2022-01-25T18:12:18.000Z | 2022-02-05T11:01:44.000Z | minos/auth_token/exceptions.py | minos-framework/minos-auth-token | 8c16251ae95f2ea260f7dce77d1b3376ac27138b | [
"MIT"
] | null | null | null | minos/auth_token/exceptions.py | minos-framework/minos-auth-token | 8c16251ae95f2ea260f7dce77d1b3376ac27138b | [
"MIT"
] | null | null | null | class TokenConfigException(Exception):
"""Base Api Gateway Exception."""
class NoTokenException(TokenConfigException):
"""Exception to be raised when token is not available."""
class ApiGatewayConfigException(TokenConfigException):
"""Base config exception."""
| 25.181818 | 61 | 0.754513 | 25 | 277 | 8.36 | 0.68 | 0.277512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137184 | 277 | 10 | 62 | 27.7 | 0.874477 | 0.368231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e85f2e223ae56b9d27f68487a99401d18fc3385 | 4,687 | py | Python | solutions/PE700.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | 1 | 2022-01-22T19:48:44.000Z | 2022-01-22T19:48:44.000Z | solutions/PE700.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | null | null | null | solutions/PE700.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | null | null | null | """
PROBLEM
Leonhard Euler was born on 15 April 1707.
Consider the sequence 1504170715041707n mod 4503599627370517.
An element of this sequence is defined to be an Eulercoin if it is strictly smaller than all previously found Eulercoins.
For example, the first term is 1504170715041707 which is the first Eulercoin. Th... | 49.336842 | 121 | 0.729464 | 502 | 4,687 | 6.796813 | 0.669323 | 0.011723 | 0.018464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.591592 | 0.147429 | 4,687 | 94 | 122 | 49.861702 | 0.261512 | 0.866652 | 0 | 0 | 0 | 0 | 0.01406 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5cfaaa5f558e012683cb6b3d84aacc17a49feb61 | 171 | py | Python | smartystreets_python_sdk/response.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 19 | 2017-01-20T16:34:19.000Z | 2021-12-09T15:56:09.000Z | smartystreets_python_sdk/response.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 25 | 2016-12-11T01:20:19.000Z | 2022-03-24T19:59:25.000Z | smartystreets_python_sdk/response.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 28 | 2016-12-31T17:06:07.000Z | 2022-02-17T00:09:02.000Z | class Response:
def __init__(self, payload, status_code, error=None):
self.payload = payload
self.status_code = status_code
self.error = error
| 28.5 | 57 | 0.660819 | 21 | 171 | 5.047619 | 0.47619 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25731 | 171 | 5 | 58 | 34.2 | 0.834646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf099c17441d3ecf838d518b9eb1e522a572e6a9 | 172 | py | Python | usermanager/users/urls.py | yasminhillis/user-manager | 3ffee07e6a11ff2142cbbf28f92db5055a9d6d69 | [
"MIT"
] | 1 | 2020-12-21T08:45:32.000Z | 2020-12-21T08:45:32.000Z | usermanager/users/urls.py | yasminhillis/user-manager | 3ffee07e6a11ff2142cbbf28f92db5055a9d6d69 | [
"MIT"
] | null | null | null | usermanager/users/urls.py | yasminhillis/user-manager | 3ffee07e6a11ff2142cbbf28f92db5055a9d6d69 | [
"MIT"
] | null | null | null | from rest_framework import routers
from .api import UserViewSet
router = routers.DefaultRouter()
router.register('users', UserViewSet, 'users')
urlpatterns = router.urls | 24.571429 | 46 | 0.796512 | 20 | 172 | 6.8 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110465 | 172 | 7 | 47 | 24.571429 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
cf0f277eb1653c6d14bf52b9cfc2f926f57ce4e0 | 370 | py | Python | application/handlers/api/apikmldownloader.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | 1 | 2019-10-11T14:43:53.000Z | 2019-10-11T14:43:53.000Z | application/handlers/api/apikmldownloader.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | null | null | null | application/handlers/api/apikmldownloader.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | null | null | null | import json
from application.handlers.base import BaseHandler
class APIKMLDownloader(BaseHandler):
def get(self):
if self.request.get('project_code'):
project_code = self.request.get('project_code')
self.response.headers['Content-Type'] = 'application/json'
self.response... | 41.111111 | 75 | 0.694595 | 43 | 370 | 5.860465 | 0.511628 | 0.218254 | 0.111111 | 0.166667 | 0.198413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183784 | 370 | 9 | 75 | 41.111111 | 0.834437 | 0 | 0 | 0 | 0 | 0 | 0.172507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf1c28b997498cc722d150547539a70f147add48 | 210 | py | Python | qsar/tests.py | kingrichard2005/qsarweb-public | 56e4d972b79ad5b124801200bb20e76571896daf | [
"MIT"
] | null | null | null | qsar/tests.py | kingrichard2005/qsarweb-public | 56e4d972b79ad5b124801200bb20e76571896daf | [
"MIT"
] | null | null | null | qsar/tests.py | kingrichard2005/qsarweb-public | 56e4d972b79ad5b124801200bb20e76571896daf | [
"MIT"
] | null | null | null | from django.test import TestCase
# Create your tests here.
class IndexViewsTestCase(TestCase):
def test_index(self):
resp = self.client.get('/qsar/')
self.assertEqual(resp.status_code, 200) | 30 | 47 | 0.709524 | 27 | 210 | 5.444444 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.180952 | 210 | 7 | 47 | 30 | 0.837209 | 0.109524 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
cf310100bbfcb5d948de426d29d4664d5872fcb2 | 510 | py | Python | pipedrive/abstract.py | bindlock/pipedrivepy | a51d51345bf6bdfbcdefc6476c7bba6466e22cba | [
"MIT"
] | null | null | null | pipedrive/abstract.py | bindlock/pipedrivepy | a51d51345bf6bdfbcdefc6476c7bba6466e22cba | [
"MIT"
] | null | null | null | pipedrive/abstract.py | bindlock/pipedrivepy | a51d51345bf6bdfbcdefc6476c7bba6466e22cba | [
"MIT"
] | null | null | null | from .chain import Chain
class AbstractClient:
ENDPOINT = 'https://{domain}.pipedrive.com/api/{version}/{path}'
def __init__(self, domain: str, token: str, version: str = 'v1'):
self.domain = domain
self.token = token
self.version = version
def __getattr__(self, name: str) -> Ch... | 28.333333 | 88 | 0.656863 | 64 | 510 | 5.015625 | 0.390625 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.211765 | 510 | 17 | 89 | 30 | 0.79602 | 0 | 0 | 0 | 0 | 0 | 0.103922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.727273 | 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 |
cf49477981ef06a4e50deadc3461edb8c70dff14 | 203 | py | Python | Vpp3_FlowVisualization/Package/__init__.py | kaijunhuang1994/VirtualPowerPrinciple-v1.0 | 08ca86b05a7a477c698dcec874c0ce487cac75af | [
"MIT"
] | null | null | null | Vpp3_FlowVisualization/Package/__init__.py | kaijunhuang1994/VirtualPowerPrinciple-v1.0 | 08ca86b05a7a477c698dcec874c0ce487cac75af | [
"MIT"
] | null | null | null | Vpp3_FlowVisualization/Package/__init__.py | kaijunhuang1994/VirtualPowerPrinciple-v1.0 | 08ca86b05a7a477c698dcec874c0ce487cac75af | [
"MIT"
] | null | null | null | import sys
path = sys.path[0] + "/Package/parser"
sys.path.append(path)
path = sys.path[0] + "/Package/vector"
sys.path.append(path)
path = sys.path[0] + "/Package/solvercontrol"
sys.path.append(path) | 20.3 | 45 | 0.699507 | 32 | 203 | 4.4375 | 0.28125 | 0.34507 | 0.232394 | 0.253521 | 0.640845 | 0.507042 | 0.507042 | 0.507042 | 0.507042 | 0 | 0 | 0.016575 | 0.108374 | 203 | 10 | 46 | 20.3 | 0.767956 | 0 | 0 | 0.428571 | 0 | 0 | 0.254902 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
cf582cba426ed1cbdd03a19e06bff67c3b66cbf5 | 64 | py | Python | inkpy_jinja/__init__.py | ar4s/InkPy | b1fd4138eb964109a9a2b5cf2d3fefa42a01aa53 | [
"Apache-2.0"
] | 2 | 2016-01-19T17:58:09.000Z | 2016-01-28T12:27:50.000Z | inkpy_jinja/__init__.py | ar4s/InkPy | b1fd4138eb964109a9a2b5cf2d3fefa42a01aa53 | [
"Apache-2.0"
] | 1 | 2016-06-06T12:31:05.000Z | 2016-06-06T12:31:05.000Z | inkpy_jinja/__init__.py | ar4s/InkPy | b1fd4138eb964109a9a2b5cf2d3fefa42a01aa53 | [
"Apache-2.0"
] | 2 | 2015-11-17T12:54:55.000Z | 2016-04-27T09:46:50.000Z | # -*- coding: utf-8 -*-
from .api import pdf
__all__ = ['pdf']
| 12.8 | 23 | 0.5625 | 9 | 64 | 3.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.203125 | 64 | 4 | 24 | 16 | 0.607843 | 0.328125 | 0 | 0 | 0 | 0 | 0.073171 | 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 |
cf6fcea205dd84ea4fc792a9a351ea03f97dd8c1 | 1,377 | py | Python | tools/gui-editor/wrapper/item.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 8 | 2015-02-03T20:23:49.000Z | 2022-02-15T07:51:05.000Z | tools/gui-editor/wrapper/item.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | null | null | null | tools/gui-editor/wrapper/item.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 2 | 2017-02-13T18:04:00.000Z | 2020-08-24T03:21:37.000Z | __author__ = 'JordSti'
import surface
import object_wrap
import style
class item(object_wrap.object_wrap):
def __init__(self, obj=None):
object_wrap.object_wrap.__init__(self, obj)
def set_dimension(self, width, height):
self.lib.Item_setDimension(self.obj, width, height)
def set_point(s... | 28.102041 | 65 | 0.676834 | 200 | 1,377 | 4.435 | 0.235 | 0.110485 | 0.148816 | 0.101466 | 0.35513 | 0.21195 | 0.101466 | 0 | 0 | 0 | 0 | 0 | 0.213508 | 1,377 | 48 | 66 | 28.6875 | 0.819021 | 0.03268 | 0 | 0 | 0 | 0 | 0.005259 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.393939 | false | 0 | 0.090909 | 0.151515 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
cf70fd309c58d7253a2cb84773f123db6176f6f0 | 2,170 | py | Python | app/admin/views.py | lemocla/business-analysis-project | 663de29deb242f028b6defe75d7174a8c37ff596 | [
"MIT"
] | 10 | 2022-03-02T19:52:46.000Z | 2022-03-29T16:58:12.000Z | app/admin/views.py | Code-Institute-Community/dlr-project | 0073a03adbd94b335df84e8996187de09297644b | [
"MIT"
] | 48 | 2022-03-02T16:45:55.000Z | 2022-03-29T19:03:08.000Z | app/admin/views.py | Code-Institute-Community/dlr-project | 0073a03adbd94b335df84e8996187de09297644b | [
"MIT"
] | 9 | 2022-03-02T20:41:27.000Z | 2022-03-27T16:37:20.000Z | from flask_admin import AdminIndexView, expose
from werkzeug.security import generate_password_hash
from app.admin.decorators import admin_access
from app.admin.forms import UserForm, OrganisationForm
from app.admin.flask_admin.views import CustomModelView
# Customized admin views
class DashboardView(AdminIndexView)... | 33.90625 | 78 | 0.648848 | 252 | 2,170 | 5.337302 | 0.349206 | 0.04461 | 0.04461 | 0.04461 | 0.359108 | 0.305576 | 0.305576 | 0.305576 | 0.232714 | 0.136803 | 0 | 0.007326 | 0.245161 | 2,170 | 63 | 79 | 34.444444 | 0.813797 | 0.087558 | 0 | 0.190476 | 1 | 0 | 0.137791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.142857 | 0.119048 | 0.047619 | 0.547619 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cf71ec3f45a56ada9d8318c51364deb76ed1ab46 | 23,718 | py | Python | pysnmp-with-texts/OSPF-TRAP-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/OSPF-TRAP-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/OSPF-TRAP-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 OSPF-TRAP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OSPF-TRAP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:35:39 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... | 197.65 | 1,448 | 0.778607 | 2,774 | 23,718 | 6.656453 | 0.16907 | 0.031465 | 0.064825 | 0.007365 | 0.515299 | 0.440942 | 0.435093 | 0.424479 | 0.412943 | 0.40222 | 0 | 0.031278 | 0.094148 | 23,718 | 119 | 1,449 | 199.310924 | 0.828159 | 0.013492 | 0 | 0.045872 | 0 | 0.238532 | 0.504596 | 0.050408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06422 | 0 | 0.06422 | 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 |
cf7680f6bd9da942b1efcdabbd74acd3fbc3f455 | 788 | py | Python | clients/models.py | JaviManobanda/client_manager_CLI | 5d7cedb18f8cf07b34250d0da401bc7e983bab07 | [
"MIT"
] | null | null | null | clients/models.py | JaviManobanda/client_manager_CLI | 5d7cedb18f8cf07b34250d0da401bc7e983bab07 | [
"MIT"
] | null | null | null | clients/models.py | JaviManobanda/client_manager_CLI | 5d7cedb18f8cf07b34250d0da401bc7e983bab07 | [
"MIT"
] | null | null | null | import uuid
class ClientModel:
"""Client models
Args:
name ([type]): [description]
company ([type]): [description]
mail ([type]): [description]
position ([type]): [description]
uid ([type], optional): [description]. Defaults to None.
... | 27.172414 | 69 | 0.549492 | 78 | 788 | 5.487179 | 0.487179 | 0.140187 | 0.074766 | 0.11215 | 0.126168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.329949 | 788 | 28 | 70 | 28.142857 | 0.808712 | 0.361675 | 0 | 0 | 0 | 0 | 0.06506 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d85f4175b9e0c9ff02992a843932988f349ddb34 | 2,265 | py | Python | UserProfile/models.py | Hudeh/Hubmart | 2c360ce05c86e87699b86a420b6086f8e95737db | [
"MIT"
] | null | null | null | UserProfile/models.py | Hudeh/Hubmart | 2c360ce05c86e87699b86a420b6086f8e95737db | [
"MIT"
] | null | null | null | UserProfile/models.py | Hudeh/Hubmart | 2c360ce05c86e87699b86a420b6086f8e95737db | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
# from safedelete.models import SafeDeleteModel
# from safedelete.models import SOFT_DELETE_CASCADE
# from safedelete.managers import SafeDeleteAllManager
class UserManager(BaseUserManager):
def create_user(self, ... | 35.390625 | 103 | 0.689625 | 277 | 2,265 | 5.505415 | 0.310469 | 0.036066 | 0.042623 | 0.055738 | 0.158689 | 0.119344 | 0.119344 | 0.043279 | 0 | 0 | 0 | 0.008375 | 0.209272 | 2,265 | 64 | 104 | 35.390625 | 0.843104 | 0.096247 | 0 | 0.166667 | 0 | 0 | 0.036507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.083333 | 0.041667 | 0.145833 | 0.708333 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
d86fe3e59077faa906f31e8b8d61dc6680f6af07 | 316 | py | Python | cowsay/lib/cows/kitty.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/kitty.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/kitty.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | def Kitty(thoughts, eyes, eye, tongue):
return f"""
{thoughts}
{thoughts}
("\`-' '-/") .___..--' ' "\`-._
\` {eye}_ {eye} ) \`-. ( ) .\`-.__. \`)
(_Y_.) ' ._ ) \`._\` ; \`\` -. .-'
_.. \`--'_..-_/ /--' _ .' ,4
( i l ),-'' ( l i),' ( ( ! .-'
""" | 31.6 | 59 | 0.25 | 18 | 316 | 3.555556 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.382911 | 316 | 10 | 60 | 31.6 | 0.323077 | 0 | 0 | 0.2 | 0 | 0 | 0.820189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0.1 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8714c068938830d48bc35b355ece724bb67bbe6 | 102 | py | Python | src/position.py | hideraldus13/loro | e1316aca747ace71b3b871bf0ec748358c4131f0 | [
"MIT"
] | null | null | null | src/position.py | hideraldus13/loro | e1316aca747ace71b3b871bf0ec748358c4131f0 | [
"MIT"
] | 4 | 2021-09-19T16:20:21.000Z | 2021-09-19T17:52:49.000Z | src/position.py | hideraldus13/loro | e1316aca747ace71b3b871bf0ec748358c4131f0 | [
"MIT"
] | null | null | null | import pyautogui
import time
for i in range(10):
print(pyautogui.position())
time.sleep(0.5)
| 14.571429 | 31 | 0.696078 | 16 | 102 | 4.4375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.186275 | 102 | 6 | 32 | 17 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d89fd0beeeb91a5b5a21e715f050c15cd93eb82c | 1,239 | py | Python | app/Main/SYS/UniqueOperators.py | fineans/Vython | 6243043d4d5993fa03a91a254e96c6d5746848d4 | [
"MIT"
] | null | null | null | app/Main/SYS/UniqueOperators.py | fineans/Vython | 6243043d4d5993fa03a91a254e96c6d5746848d4 | [
"MIT"
] | null | null | null | app/Main/SYS/UniqueOperators.py | fineans/Vython | 6243043d4d5993fa03a91a254e96c6d5746848d4 | [
"MIT"
] | null | null | null | from rply.token import BaseBox
import sys
from Main.Errors import error, errors
class UniqueOp(BaseBox):
def __init__(self, var):
self.var = var
class Increment(UniqueOp):
def eval(self):
try:
self.var.value = self.var.value + 1
return self.var.value
except:
... | 27.533333 | 66 | 0.477805 | 115 | 1,239 | 5.113043 | 0.26087 | 0.190476 | 0.204082 | 0.102041 | 0.707483 | 0.707483 | 0.646259 | 0.646259 | 0.646259 | 0.646259 | 0 | 0.00554 | 0.417272 | 1,239 | 44 | 67 | 28.159091 | 0.808864 | 0 | 0 | 0.631579 | 0 | 0 | 0.074253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.078947 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8a1a869a2f0b2e2f4419155a10c351c386df964 | 216 | py | Python | src/wavegrad/random.py | JeremyCCHsu/test-debug | 88b3d153a4fa8d2b3eb905e9e3fd74bc9b5f9f55 | [
"Apache-2.0"
] | null | null | null | src/wavegrad/random.py | JeremyCCHsu/test-debug | 88b3d153a4fa8d2b3eb905e9e3fd74bc9b5f9f55 | [
"Apache-2.0"
] | null | null | null | src/wavegrad/random.py | JeremyCCHsu/test-debug | 88b3d153a4fa8d2b3eb905e9e3fd74bc9b5f9f55 | [
"Apache-2.0"
] | null | null | null | from scipy.stats import truncnorm
import numpy as np
import torch
def truncnorm_like(x):
size = [int(s) for s in x.shape]
eps = truncnorm.rvs(-3.001, 3.001, size=size) / 3.
return torch.from_numpy(eps)
| 21.6 | 54 | 0.689815 | 38 | 216 | 3.868421 | 0.605263 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.194444 | 216 | 9 | 55 | 24 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
d8c442bd7ee824f682505163f5af3dff0db2d460 | 222 | py | Python | fiasco_api/tags/urls.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | fiasco_api/tags/urls.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | fiasco_api/tags/urls.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | from django.urls import path
from .views import TagListCreateView, TagRetrieveUpdateDestroyView
urlpatterns = [
path('', TagListCreateView.as_view()),
path('<int:pk>/', TagRetrieveUpdateDestroyView.as_view()),
]
| 24.666667 | 66 | 0.752252 | 21 | 222 | 7.857143 | 0.619048 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 222 | 8 | 67 | 27.75 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 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 |
d8d5f2a3f87d76c722079d7e05934e1e302c9f5f | 526 | py | Python | lifetracker/tracker/urls.py | KenN7/LifeTracker | 6efbe974ddfd5486ad662ed51a69c6d63d4a6379 | [
"Apache-2.0"
] | null | null | null | lifetracker/tracker/urls.py | KenN7/LifeTracker | 6efbe974ddfd5486ad662ed51a69c6d63d4a6379 | [
"Apache-2.0"
] | null | null | null | lifetracker/tracker/urls.py | KenN7/LifeTracker | 6efbe974ddfd5486ad662ed51a69c6d63d4a6379 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url, include
import django.contrib.auth.views
import tracker.views
urlpatterns = [
url(r'^$', tracker.views.tracker_page, name='tracker-page'),
url(r'^door-opener$', tracker.views.door_opener, name='door-opener'),
url(r'^login$', django.contrib.auth.views.login, {'t... | 43.833333 | 104 | 0.646388 | 68 | 526 | 4.941176 | 0.323529 | 0.154762 | 0.202381 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152091 | 526 | 11 | 105 | 47.818182 | 0.753363 | 0.087452 | 0 | 0 | 0 | 0 | 0.202505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
d8dcf07ab7427cd6b50469f276ee69859e48ed14 | 295 | py | Python | jd/api/rest/OrderCheckRefuseOrderQueryRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 5 | 2019-10-30T01:16:30.000Z | 2020-06-14T03:32:19.000Z | jd/api/rest/OrderCheckRefuseOrderQueryRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 2 | 2020-10-12T07:12:48.000Z | 2021-06-02T03:15:47.000Z | jd/api/rest/OrderCheckRefuseOrderQueryRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 3 | 2019-12-06T17:33:49.000Z | 2021-03-01T13:24:22.000Z | from jd.api.base import RestApi
class OrderCheckRefuseOrderQueryRequest(RestApi):
def __init__(self,domain='gw.api.360buy.com',port=80):
RestApi.__init__(self,domain, port)
self.date = None
self.page = None
def getapiname(self):
return 'biz.order.checkRefuseOrder.query'
| 17.352941 | 56 | 0.735593 | 38 | 295 | 5.5 | 0.684211 | 0.076555 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0.149153 | 295 | 16 | 57 | 18.4375 | 0.812749 | 0 | 0 | 0 | 0 | 0 | 0.16955 | 0.110727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 |
d8ece7bff78aefa2d4bf16f5ecb894ad7d75f6f8 | 59 | py | Python | researchWork/__init__.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | researchWork/__init__.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | researchWork/__init__.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | default_app_config = 'researchWork.apps.ResearchWorkConfig' | 59 | 59 | 0.881356 | 6 | 59 | 8.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 59 | 1 | 59 | 59 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8f15e0efdd8a2ff7f5ae304dc40ff668634fed8 | 2,623 | py | Python | tests/test_base.py | byashimov/django-pkgconf | 01b301ea5995fedfdb0fad3f89097cd4ab72a9b3 | [
"BSD-3-Clause"
] | 15 | 2016-05-13T08:55:31.000Z | 2021-08-16T12:52:40.000Z | tests/test_base.py | pythoneast/django-pkgconf | 01b301ea5995fedfdb0fad3f89097cd4ab72a9b3 | [
"BSD-3-Clause"
] | null | null | null | tests/test_base.py | pythoneast/django-pkgconf | 01b301ea5995fedfdb0fad3f89097cd4ab72a9b3 | [
"BSD-3-Clause"
] | 3 | 2019-12-06T23:41:09.000Z | 2021-09-13T10:37:54.000Z | from django.test import SimpleTestCase
from django.test.utils import override_settings
import myconf
import mymixinconf
import myprefixconf
class MyConfTest(SimpleTestCase):
def test_setup(self):
self.assertEqual(myconf.__name__, 'myconf')
# Generated prefix
self.assertEqual(myconf.__pre... | 33.202532 | 73 | 0.672131 | 286 | 2,623 | 6.006993 | 0.22028 | 0.218277 | 0.2078 | 0.058207 | 0.37078 | 0.176368 | 0.097788 | 0.045402 | 0 | 0 | 0 | 0.00146 | 0.216546 | 2,623 | 78 | 74 | 33.628205 | 0.83455 | 0.027449 | 0 | 0.178571 | 0 | 0 | 0.077376 | 0 | 0 | 0 | 0 | 0 | 0.482143 | 1 | 0.196429 | false | 0 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8f17a46701094a775201e999a32306207d10ffe | 317 | py | Python | Challenges/Desafio019.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | Challenges/Desafio019.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | Challenges/Desafio019.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | from random import choice
print('****** Sorteio de Alunos ******')
a1 = str(input('Digite o nome do aluno 1: '))
a2 = str(input('Digite o nome do aluno 2: '))
a3 = str(input('Digite o nome do aluno 3: '))
a4 = str(input('Digite o nome do aluno 4: '))
print('O aluno escolhido é: {}'.format(choice([a1, a2, a3, a4])))
| 39.625 | 65 | 0.62776 | 55 | 317 | 3.618182 | 0.472727 | 0.160804 | 0.281407 | 0.301508 | 0.522613 | 0.522613 | 0.522613 | 0 | 0 | 0 | 0 | 0.045455 | 0.167192 | 317 | 7 | 66 | 45.285714 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.498423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
2b172ff5a41c8bd48de7cb831b64acfbd46cfb1f | 149 | py | Python | training/twop/onevone.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | null | null | null | training/twop/onevone.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | 5 | 2019-12-27T15:04:48.000Z | 2020-03-06T17:36:41.000Z | training/twop/onevone.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | null | null | null | from math import pi
from twop.defending import Defending
onevone_exercises = [
Defending("Optimizer Testing", car_y=1000, car_spin=-pi / 2),
]
| 18.625 | 65 | 0.738255 | 21 | 149 | 5.095238 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.161074 | 149 | 7 | 66 | 21.285714 | 0.816 | 0 | 0 | 0 | 0 | 0 | 0.114094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
2b41d324233680acf26fb18208f95296368d75cf | 290 | py | Python | tests/test_functions.py | enceladus-rex/chainer-transformer | 6db0e0ea4b71c6614dd8455066eec65fed0e8eb5 | [
"MIT"
] | null | null | null | tests/test_functions.py | enceladus-rex/chainer-transformer | 6db0e0ea4b71c6614dd8455066eec65fed0e8eb5 | [
"MIT"
] | null | null | null | tests/test_functions.py | enceladus-rex/chainer-transformer | 6db0e0ea4b71c6614dd8455066eec65fed0e8eb5 | [
"MIT"
] | null | null | null | from chainer_transformer.functions import generate_positional_encodings
import pytest
def test_generate_positional_encoding():
start = 0
end = 100
dim = 256
l = end - start
output = generate_positional_encodings(start, end, dim)
assert output.shape == (l, dim)
| 19.333333 | 71 | 0.72069 | 36 | 290 | 5.583333 | 0.611111 | 0.268657 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030568 | 0.210345 | 290 | 14 | 72 | 20.714286 | 0.847162 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b5a5e091c48d434be991781320ecb860e6c683e | 249 | py | Python | helpers/utils.py | mirceamironenco/GANs | c3525e94fb2595501f7a3fc4fd59c4ebba55dd75 | [
"MIT"
] | 8 | 2017-04-05T12:09:11.000Z | 2018-03-23T19:46:16.000Z | helpers/utils.py | mirceamironenco/autoencoders | ba7f7faf154b2b0344239b620ec2fb58758fdad9 | [
"MIT"
] | null | null | null | helpers/utils.py | mirceamironenco/autoencoders | ba7f7faf154b2b0344239b620ec2fb58758fdad9 | [
"MIT"
] | 7 | 2017-04-05T12:09:17.000Z | 2018-03-23T19:47:34.000Z | def print_flags(flags):
for key, value in vars(flags).items():
print("{}: {}".format(key, str(value)))
def load_mnist():
from tensorflow.examples.tutorials.mnist import input_data
return input_data.read_data_sets("./MNIST_data", one_hot=True)
| 31.125 | 63 | 0.738956 | 38 | 249 | 4.631579 | 0.684211 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100402 | 249 | 7 | 64 | 35.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
992b055589da5ea8304bad0272a7cdfaf70af65c | 480 | py | Python | src/datasets/dataset_student.py | oscareriksson/FedML-master-thesis | 05326a490a22104e708176ada4b3591eaa48922d | [
"Apache-2.0"
] | null | null | null | src/datasets/dataset_student.py | oscareriksson/FedML-master-thesis | 05326a490a22104e708176ada4b3591eaa48922d | [
"Apache-2.0"
] | null | null | null | src/datasets/dataset_student.py | oscareriksson/FedML-master-thesis | 05326a490a22104e708176ada4b3591eaa48922d | [
"Apache-2.0"
] | null | null | null | from torch.utils.data import Dataset
class StudentData(Dataset):
def __init__(self, dataset):
self.dataset = dataset
def __getitem__(self, index):
if isinstance(index, list):
data, _ = self.dataset[[i for i in index]]
else:
data, _ = self.da... | 25.263158 | 54 | 0.541667 | 51 | 480 | 4.823529 | 0.509804 | 0.223577 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.364583 | 480 | 19 | 55 | 25.263158 | 0.806557 | 0.047917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.583333 | 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 |
992fadfd41919441283d91eaf4399989ee07d6b3 | 393 | py | Python | core/app/models/point.py | bitreport-org/Bitreport | f480c410d340e57645a9a23d12fe2a2d3d2add39 | [
"MIT"
] | 3 | 2020-10-29T10:50:43.000Z | 2021-12-20T03:29:42.000Z | core/app/models/point.py | bitreport-org/Bitreport | f480c410d340e57645a9a23d12fe2a2d3d2add39 | [
"MIT"
] | 5 | 2020-10-11T09:15:53.000Z | 2022-03-31T01:46:38.000Z | core/app/models/point.py | bitreport-org/Bitreport | f480c410d340e57645a9a23d12fe2a2d3d2add39 | [
"MIT"
] | 1 | 2021-09-15T10:46:04.000Z | 2021-09-15T10:46:04.000Z | class Point:
info = None
def __init__(self, x, y):
self.x = x
self.y = y
def __repr__(self):
return f"Point({self.x}, {self.y}), {self.info}"
def __eq__(self, other):
return (self.x == other.x) and (self.y == other.y)
def __hash__(self):
return hash((self.... | 20.684211 | 58 | 0.534351 | 59 | 393 | 3.271186 | 0.305085 | 0.129534 | 0.093264 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307888 | 393 | 18 | 59 | 21.833333 | 0.709559 | 0 | 0 | 0 | 0 | 0 | 0.096692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9947b14b591e86de1385e222b0980f232963a16c | 1,497 | py | Python | flask_mongodb/serializers/meta.py | juanmanuel96/flask-mongodb | 4c4002a45294a55ecea67f4cf4f2e6a93fedc12a | [
"BSD-2-Clause"
] | null | null | null | flask_mongodb/serializers/meta.py | juanmanuel96/flask-mongodb | 4c4002a45294a55ecea67f4cf4f2e6a93fedc12a | [
"BSD-2-Clause"
] | null | null | null | flask_mongodb/serializers/meta.py | juanmanuel96/flask-mongodb | 4c4002a45294a55ecea67f4cf4f2e6a93fedc12a | [
"BSD-2-Clause"
] | null | null | null | from wtforms.meta import DefaultMeta
class SerializerMeta(DefaultMeta):
def render_field(self, field, render_kw):
"""
render_field allows customization of how widget rendering is done.
The default implementation calls ``field.widget(field, **render_kw)``
"""
super().rende... | 25.372881 | 77 | 0.637943 | 176 | 1,497 | 5.215909 | 0.329545 | 0.068627 | 0.091503 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285905 | 1,497 | 59 | 78 | 25.372881 | 0.858746 | 0.325985 | 0 | 0.172414 | 0 | 0 | 0.016538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.172414 | 0.758621 | 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 |
99577f9d5420f8f52fa7630b5eaabddb37973495 | 510 | py | Python | test.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | test.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | test.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | '''
I/O:
Input: image to be inferenced
Output: depth image
Relation: out = model(in)
path -> readimg -> image -> transform -> tensor
tensor -> model
model: get model from get_model() in train.py, load_param from .pth file
model -> output tensor -> transpose to H x W x C -> imshow & save... | 26.842105 | 76 | 0.703922 | 76 | 510 | 4.671053 | 0.578947 | 0.067606 | 0.073239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.217647 | 510 | 18 | 77 | 28.333333 | 0.887218 | 0.619608 | 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 |
996c466b9cc32d3b0e680d44371e78058741815a | 563 | py | Python | utils/db_api/db_commands.py | KARTASAR/DatingBot | fa20bb9188e6d9744ecdb35854ea54fb7ea8fd55 | [
"MIT"
] | 12 | 2021-10-20T16:05:02.000Z | 2022-03-22T14:20:30.000Z | utils/db_api/db_commands.py | KARTASAR/DatingBot | fa20bb9188e6d9744ecdb35854ea54fb7ea8fd55 | [
"MIT"
] | 17 | 2021-11-02T20:33:14.000Z | 2022-03-17T11:45:24.000Z | utils/db_api/db_commands.py | KARTASAR/DatingBot | fa20bb9188e6d9744ecdb35854ea54fb7ea8fd55 | [
"MIT"
] | 7 | 2021-09-25T20:19:17.000Z | 2022-02-20T09:31:41.000Z | from django_project.telegrambot.usersmanage.models import User
from asgiref.sync import sync_to_async
@sync_to_async
def select_user(telegram_id: int):
user = User.objects.filter(telegram_id=telegram_id).first()
return user
@sync_to_async
def add_user(telegram_id, name, username, age):
return User(teleg... | 22.52 | 100 | 0.761989 | 85 | 563 | 4.788235 | 0.352941 | 0.14742 | 0.135135 | 0.137592 | 0.09828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129663 | 563 | 24 | 101 | 23.458333 | 0.830612 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 |
997b94a07aec367cb21ba13537745812397dd46f | 2,614 | py | Python | pydatajson/status_indicators_generator.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 13 | 2017-05-17T13:33:43.000Z | 2021-08-10T18:42:59.000Z | pydatajson/status_indicators_generator.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 296 | 2016-11-29T14:01:09.000Z | 2020-10-27T22:42:26.000Z | pydatajson/status_indicators_generator.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 11 | 2017-07-06T17:02:31.000Z | 2021-07-19T14:46:51.000Z | # -*- coding: utf-8 -*-
from pydatajson.readers import read_catalog
from pydatajson.reporting import generate_datasets_summary
from pydatajson.validators\
.distribution_download_urls_validator \
import DistributionDownloadUrlsValidator
class StatusIndicatorsGenerator(object):
def __init__(self, catalog,... | 36.305556 | 79 | 0.675593 | 313 | 2,614 | 5.309904 | 0.210863 | 0.066185 | 0.070397 | 0.051143 | 0.466306 | 0.40373 | 0.2858 | 0.209988 | 0.149218 | 0 | 0 | 0.002537 | 0.245983 | 2,614 | 71 | 80 | 36.816901 | 0.84069 | 0.008034 | 0 | 0.111111 | 1 | 0 | 0.03242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240741 | false | 0 | 0.055556 | 0.166667 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
998dfe783cd0afd5aa3c98858cae6d2a0bbb3d9b | 24 | py | Python | custom_components/magic_lights/const.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | custom_components/magic_lights/const.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | custom_components/magic_lights/const.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | DOMAIN = "magic_lights"
| 12 | 23 | 0.75 | 3 | 24 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
999410323f1e3061ec203e6b43132629ee65bfa8 | 1,584 | py | Python | signup/models.py | PingaxAnalytics/koob_beta | f05baa247c083394ecc338be33cab689b9398714 | [
"Apache-2.0"
] | null | null | null | signup/models.py | PingaxAnalytics/koob_beta | f05baa247c083394ecc338be33cab689b9398714 | [
"Apache-2.0"
] | null | null | null | signup/models.py | PingaxAnalytics/koob_beta | f05baa247c083394ecc338be33cab689b9398714 | [
"Apache-2.0"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | 45.257143 | 104 | 0.763258 | 221 | 1,584 | 5.343891 | 0.443439 | 0.165114 | 0.198137 | 0.264183 | 0.334462 | 0.287892 | 0.237087 | 0 | 0 | 0 | 0 | 0.027489 | 0.150253 | 1,584 | 34 | 105 | 46.588235 | 0.849926 | 0.315657 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41ef6ab762b9d5f6437333b1bb28de06d674e502 | 204 | py | Python | Ch8/08-tuple-01.py | akuks/Python3.6---Novice-to-Ninja | b66ef89e13d6c67b1010c1ea2a8041a62ee01983 | [
"Unlicense"
] | null | null | null | Ch8/08-tuple-01.py | akuks/Python3.6---Novice-to-Ninja | b66ef89e13d6c67b1010c1ea2a8041a62ee01983 | [
"Unlicense"
] | null | null | null | Ch8/08-tuple-01.py | akuks/Python3.6---Novice-to-Ninja | b66ef89e13d6c67b1010c1ea2a8041a62ee01983 | [
"Unlicense"
] | null | null | null | # Create Tuple
tup = (1, 2, 3, "Hello", "World")
print(tup)
# Looping in Tuple
for item in tup:
print (item)
# in operator
b = 4 in tup
print(b)
# Not in Operator
b = 4 not in tup
print (b)
| 9.272727 | 33 | 0.598039 | 37 | 204 | 3.297297 | 0.459459 | 0.122951 | 0.245902 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.27451 | 204 | 21 | 34 | 9.714286 | 0.790541 | 0.284314 | 0 | 0.25 | 0 | 0 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 3 |
41fd209e3300d9bab96956a2b1b77b7887aae5d7 | 63 | py | Python | Calculator/Sqroot.py | rn44/statsCalculator | b827edfc49d9251c7490ede3e578b58b49d9bb13 | [
"MIT"
] | null | null | null | Calculator/Sqroot.py | rn44/statsCalculator | b827edfc49d9251c7490ede3e578b58b49d9bb13 | [
"MIT"
] | null | null | null | Calculator/Sqroot.py | rn44/statsCalculator | b827edfc49d9251c7490ede3e578b58b49d9bb13 | [
"MIT"
] | 2 | 2020-11-07T03:34:17.000Z | 2020-12-10T16:34:55.000Z | def sqroot(a):
a = float(a)
b = a ** (1/2)
return b | 15.75 | 18 | 0.444444 | 12 | 63 | 2.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.365079 | 63 | 4 | 19 | 15.75 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
514798930f38965b8820d73d8bfc3fff01934c9a | 90 | py | Python | djangocms_moderation/__init__.py | Aiky30/djangocms-moderation | c7e1c4ed3528cd770af9b4c109a066f290272ff4 | [
"BSD-3-Clause"
] | 2 | 2019-12-17T16:20:58.000Z | 2020-05-12T02:34:55.000Z | djangocms_moderation/__init__.py | Aiky30/djangocms-moderation | c7e1c4ed3528cd770af9b4c109a066f290272ff4 | [
"BSD-3-Clause"
] | 15 | 2019-05-10T15:34:04.000Z | 2020-04-06T06:44:42.000Z | djangocms_moderation/__init__.py | Aiky30/djangocms-moderation | c7e1c4ed3528cd770af9b4c109a066f290272ff4 | [
"BSD-3-Clause"
] | 5 | 2019-06-26T19:22:50.000Z | 2020-10-09T16:18:36.000Z | __version__ = "1.0.28"
default_app_config = "djangocms_moderation.apps.ModerationConfig"
| 22.5 | 65 | 0.811111 | 11 | 90 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.077778 | 90 | 3 | 66 | 30 | 0.746988 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 0.466667 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
514e5e30fd381b27808c1e4002d4bd05efb835b4 | 129 | py | Python | src/agent/dora/specifier.py | abagaria/opiq | b7df5134d8b265972ad70f7ba92b385f1e3fe5f2 | [
"MIT"
] | 13 | 2020-02-13T16:09:16.000Z | 2021-07-21T16:23:39.000Z | src/agent/dora/specifier.py | abagaria/opiq | b7df5134d8b265972ad70f7ba92b385f1e3fe5f2 | [
"MIT"
] | 2 | 2020-08-04T01:46:37.000Z | 2021-06-28T10:30:53.000Z | src/agent/dora/specifier.py | abagaria/opiq | b7df5134d8b265972ad70f7ba92b385f1e3fe5f2 | [
"MIT"
] | 3 | 2020-08-01T07:33:02.000Z | 2021-11-13T20:54:55.000Z | from .maze_conv import DQN as maze_conv
def get_net(name):
nets = {
"maze": maze_conv,
}
return nets[name]
| 14.333333 | 39 | 0.604651 | 19 | 129 | 3.894737 | 0.631579 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294574 | 129 | 8 | 40 | 16.125 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5153bcea63c3203d3fa0b4fc6322085e65153fc5 | 481 | py | Python | test/test3.py | astraw/svg_stack | de9872c8c933ff96821fd8bff9d887270051b4b7 | [
"MIT"
] | 91 | 2015-01-06T00:02:11.000Z | 2022-03-26T13:55:45.000Z | test/test3.py | astraw/svg_stack | de9872c8c933ff96821fd8bff9d887270051b4b7 | [
"MIT"
] | 21 | 2016-02-05T19:43:23.000Z | 2021-12-18T21:21:41.000Z | test/test3.py | astraw/svg_stack | de9872c8c933ff96821fd8bff9d887270051b4b7 | [
"MIT"
] | 42 | 2015-04-14T18:23:07.000Z | 2022-03-26T08:49:05.000Z | #!/usr/bin/env python
from __future__ import print_function
import subprocess
# stack two Inkscape generated files
subprocess.check_call(
'../svg_stack.py --direction=h --margin=100 red_ball.svg blue_triangle.svg > shapes_test.svg',
shell=True)
# Inkscape files don't pass xmllint -- don't test
print('You sh... | 26.722222 | 98 | 0.748441 | 71 | 481 | 4.887324 | 0.647887 | 0.086455 | 0.112392 | 0.103746 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.149688 | 481 | 17 | 99 | 28.294118 | 0.841076 | 0.365904 | 0 | 0 | 1 | 0.166667 | 0.585284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a9ca78f4c9cd197c935eb9531245f8cfb11074b | 115 | py | Python | scenarios/dispute_list/executable.py | timgates42/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 12 | 2015-04-12T06:18:33.000Z | 2021-03-03T23:54:19.000Z | scenarios/dispute_list/executable.py | takwas/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 1 | 2021-11-24T20:10:19.000Z | 2021-11-24T20:10:19.000Z | scenarios/dispute_list/executable.py | takwas/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 14 | 2015-03-23T17:52:06.000Z | 2021-11-24T11:04:15.000Z | import balanced
balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY')
disputes = balanced.Dispute.query | 23 | 63 | 0.852174 | 11 | 115 | 8.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.06087 | 115 | 5 | 64 | 23 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.353448 | 0.353448 | 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 |
5ae5c3eb8e221f4879abff2dcf3b540cd4c53a91 | 20,192 | py | Python | pyscf/scf/test/test_addons.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 7 | 2020-03-06T15:14:17.000Z | 2021-04-05T04:52:21.000Z | pyscf/scf/test/test_addons.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 36 | 2018-08-22T19:44:03.000Z | 2020-05-09T10:02:36.000Z | pyscf/scf/test/test_addons.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 4 | 2018-02-14T16:28:28.000Z | 2019-08-12T16:40:30.000Z | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | 49.369193 | 136 | 0.658875 | 3,060 | 20,192 | 4.142484 | 0.088562 | 0.06106 | 0.100584 | 0.132139 | 0.821789 | 0.776743 | 0.719075 | 0.687678 | 0.650757 | 0.590802 | 0 | 0.053365 | 0.182399 | 20,192 | 408 | 137 | 49.490196 | 0.714459 | 0.111331 | 0 | 0.249231 | 0 | 0 | 0.01569 | 0 | 0 | 0 | 0 | 0 | 0.353846 | 1 | 0.049231 | false | 0 | 0.030769 | 0 | 0.083077 | 0.003077 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.