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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
413b38ee3a60acf1072a456c99ead8ab544dbcfd | 21 | py | Python | python/testData/codeInsight/controlflow/assignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/codeInsight/controlflow/assignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/codeInsight/controlflow/assignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | aaa = aaa + bbb * ccc | 21 | 21 | 0.571429 | 4 | 21 | 3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 21 | 1 | 21 | 21 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4141316aa37a6f59aec8f87bf45f118a30570c2a | 253 | py | Python | backend_ch1_sec1/authorization/admin.py | Cathy-t/2019-3-2 | 0db1c921a1f94cb52eb82e2dad2c5eb5273736dd | [
"MIT"
] | 3 | 2020-05-29T05:02:04.000Z | 2020-06-01T10:35:41.000Z | backend_ch1_sec1/authorization/admin.py | Cathy-t/2019-3-2 | 0db1c921a1f94cb52eb82e2dad2c5eb5273736dd | [
"MIT"
] | null | null | null | backend_ch1_sec1/authorization/admin.py | Cathy-t/2019-3-2 | 0db1c921a1f94cb52eb82e2dad2c5eb5273736dd | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from authorization.models import User
# admin.site.register(User)
@admin.register(User)
class AuthorizationUserAdmin(admin.ModelAdmin):
# 设置需要被屏蔽的属性
exclude = ['open_id']
pass | 19.461538 | 47 | 0.754941 | 30 | 253 | 6.333333 | 0.666667 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15415 | 253 | 13 | 48 | 19.461538 | 0.88785 | 0.249012 | 0 | 0 | 0 | 0 | 0.037433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 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 |
4141470fd0bdca014339714df82312b8f323ed3a | 379 | py | Python | VI_semester/mobile_robots/point.py | dainiusjocas/labs | 25aa0ae2032681dbaf0afd83f3d80bedddea6407 | [
"Beerware"
] | 1 | 2019-04-16T22:05:42.000Z | 2019-04-16T22:05:42.000Z | VI_semester/mobile_robots/point.py | dainiusjocas/labs | 25aa0ae2032681dbaf0afd83f3d80bedddea6407 | [
"Beerware"
] | null | null | null | VI_semester/mobile_robots/point.py | dainiusjocas/labs | 25aa0ae2032681dbaf0afd83f3d80bedddea6407 | [
"Beerware"
] | null | null | null | #!/usr/bin/env python
class Point:
''' Class that represents a point in a map '''
def __init__(self, x = 0, y = 0):
self.x = x
self.y = y
def values(self):
return [self.x, self.y]
def __repr__(self):
return "({0}, {1})".format(self.x, self.y)
def __eq__(self, othe... | 22.294118 | 54 | 0.538259 | 60 | 379 | 3.2 | 0.416667 | 0.130208 | 0.09375 | 0.104167 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.300792 | 379 | 16 | 55 | 23.6875 | 0.709434 | 0.158311 | 0 | 0 | 0 | 0 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 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 |
4159f1799c9152fbb277e83f8012784b09393188 | 504 | py | Python | access/models.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 1 | 2015-03-17T04:13:47.000Z | 2015-03-17T04:13:47.000Z | access/models.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 27 | 2015-04-14T20:18:24.000Z | 2015-06-16T20:01:06.000Z | access/models.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
# generate an authentication token for a user on creation
# http://www.tomchristie.com/rest-framework-2-docs/api-guide/authentication#generating-tokens
... | 45.818182 | 93 | 0.811508 | 72 | 504 | 5.583333 | 0.638889 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002203 | 0.099206 | 504 | 11 | 94 | 45.818182 | 0.88326 | 0.289683 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
415bb4d9d18bf02102165828bbd8ea188781c482 | 4,148 | py | Python | roboskeeter/unit_tests.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/unit_tests.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/unit_tests.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | __author__ = 'richard'
import unittest
from roboskeeter.math.math_toolbox import *
class SampleTest(unittest.TestCase):
def test(self):
self.assertEqual(3 ** 2, 9)
class TestSorcery(unittest.TestCase):
def __init__(self):
pass
def setUp(self):
pass
#
def test_curvatur... | 36.385965 | 118 | 0.609209 | 553 | 4,148 | 4.341772 | 0.206148 | 0.043732 | 0.074969 | 0.134111 | 0.577676 | 0.555185 | 0.49521 | 0.476052 | 0.426072 | 0.369846 | 0 | 0.061269 | 0.228785 | 4,148 | 113 | 119 | 36.707965 | 0.689278 | 0.843057 | 0 | 0.133333 | 0 | 0 | 0.027574 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0.133333 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
41636fd29cb83e2c27ca94ababe8f33ee73c0e0c | 2,473 | py | Python | tests/ssh/test_ssh_certificate_authority_factory.py | lyft/bless | 2a12482958b83d4eae7765b29742611d342f0626 | [
"Apache-2.0"
] | 19 | 2017-01-31T02:20:33.000Z | 2020-07-22T05:50:38.000Z | tests/ssh/test_ssh_certificate_authority_factory.py | lyft/bless | 2a12482958b83d4eae7765b29742611d342f0626 | [
"Apache-2.0"
] | 35 | 2016-08-03T17:49:35.000Z | 2021-06-22T18:20:52.000Z | tests/ssh/test_ssh_certificate_authority_factory.py | lyft/bless | 2a12482958b83d4eae7765b29742611d342f0626 | [
"Apache-2.0"
] | 7 | 2016-12-16T16:54:30.000Z | 2021-08-30T14:05:31.000Z | import pytest
from bless.ssh.certificate_authorities.rsa_certificate_authority import RSACertificateAuthority, SSHCertificateSignatureKeyType
from bless.ssh.certificate_authorities.ssh_certificate_authority_factory import \
get_ssh_certificate_authority
from bless.ssh.public_keys.ssh_public_key import SSHPublicKey... | 41.216667 | 131 | 0.819248 | 342 | 2,473 | 5.432749 | 0.134503 | 0.05113 | 0.083961 | 0.088805 | 0.804629 | 0.752422 | 0.682992 | 0.630248 | 0.535522 | 0.468245 | 0 | 0.013717 | 0.115649 | 2,473 | 60 | 132 | 41.216667 | 0.835848 | 0 | 0 | 0.395349 | 0 | 0 | 0.009297 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 1 | 0.186047 | false | 0.186047 | 0.116279 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4171b437d478bb11fc9c1ef2e071556a10334307 | 622 | py | Python | tests/text_extraction/test_jaccard_word_level_similarity.py | chiehpower/evaluations | 15825a4a1207e4021a3497d4d8c50405d7cc1f87 | [
"MIT"
] | 15 | 2020-08-07T21:32:14.000Z | 2021-11-15T10:29:28.000Z | tests/text_extraction/test_jaccard_word_level_similarity.py | chiehpower/evaluations | 15825a4a1207e4021a3497d4d8c50405d7cc1f87 | [
"MIT"
] | null | null | null | tests/text_extraction/test_jaccard_word_level_similarity.py | chiehpower/evaluations | 15825a4a1207e4021a3497d4d8c50405d7cc1f87 | [
"MIT"
] | 1 | 2021-08-28T05:47:40.000Z | 2021-08-28T05:47:40.000Z | """Tests for jaccard_word_level_similarity function"""
from evaluations.text_extraction import jaccard_word_level_similarity
def test_all_true():
"""
100% similarity
"""
assert jaccard_word_level_similarity(
"Hello, how are you?",
"Hello, how are you?"
) == 1.
def test_half_true... | 18.294118 | 69 | 0.599678 | 74 | 622 | 4.743243 | 0.527027 | 0.156695 | 0.22792 | 0.37037 | 0.358974 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0.020179 | 0.282958 | 622 | 33 | 70 | 18.848485 | 0.766816 | 0.149518 | 0 | 0.1875 | 0 | 0 | 0.188285 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | true | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41745eb54a122464fc8edf20b98323202b83ac1e | 2,367 | py | Python | forums/dummy_data.py | LouayH/Forums-WebApp | 1464114ecb603225cec350b5ab9b83f31ec888c8 | [
"MIT"
] | null | null | null | forums/dummy_data.py | LouayH/Forums-WebApp | 1464114ecb603225cec350b5ab9b83f31ec888c8 | [
"MIT"
] | null | null | null | forums/dummy_data.py | LouayH/Forums-WebApp | 1464114ecb603225cec350b5ab9b83f31ec888c8 | [
"MIT"
] | 1 | 2018-03-28T14:01:53.000Z | 2018-03-28T14:01:53.000Z | from . import models, stores
from time import sleep
try:
last_id = models.Member.objects.latest('id').id
except (KeyError, models.Member.DoesNotExist):
last_id = 0
dummy_members = [
models.Member(id=last_id+1, name="Manar", age=23),
models.Member(id=last_id+2, name="Nour", age=21),
models.Member(id=last_id... | 67.628571 | 200 | 0.754119 | 368 | 2,367 | 4.76087 | 0.263587 | 0.059361 | 0.077055 | 0.10274 | 0.748288 | 0.725457 | 0.723744 | 0.695205 | 0.695205 | 0.674658 | 0 | 0.015152 | 0.135615 | 2,367 | 35 | 201 | 67.628571 | 0.841153 | 0 | 0 | 0 | 0 | 0.1 | 0.459459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 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 |
417f369324e32cd506b601fb04f255e3c23c2912 | 20 | py | Python | algorithms/__init__.py | lucaspg96/pattern-recognition | ba78c90795e9074825436e5cf5d394cedf869225 | [
"MIT"
] | 1 | 2018-11-08T00:59:15.000Z | 2018-11-08T00:59:15.000Z | algorithms/__init__.py | lucaspg96/pattern-recognition | ba78c90795e9074825436e5cf5d394cedf869225 | [
"MIT"
] | null | null | null | algorithms/__init__.py | lucaspg96/pattern-recognition | ba78c90795e9074825436e5cf5d394cedf869225 | [
"MIT"
] | null | null | null | name = "algorithms"
| 10 | 19 | 0.7 | 2 | 20 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.823529 | 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 |
4183848cf28498406666971d2138f4229eb9f562 | 584 | py | Python | invenio_records_presentation/workflows/__init__.py | CESNET/invenio-records-presentation | 547a2652a97feb1c6cd50e1ea917c2b5decb9286 | [
"MIT"
] | null | null | null | invenio_records_presentation/workflows/__init__.py | CESNET/invenio-records-presentation | 547a2652a97feb1c6cd50e1ea917c2b5decb9286 | [
"MIT"
] | 4 | 2019-03-19T16:18:22.000Z | 2021-06-28T12:33:14.000Z | invenio_records_presentation/workflows/__init__.py | CESNET/invenio-records-presentation | 547a2652a97feb1c6cd50e1ea917c2b5decb9286 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CESNET.
#
# Invenio Records Presentation is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
""" Presentation workflow."""
class PresentationWorkflow(object):
workflow = []
def __in... | 25.391304 | 89 | 0.739726 | 69 | 584 | 6.014493 | 0.623188 | 0.096386 | 0.057831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.160959 | 584 | 22 | 90 | 26.545455 | 0.836735 | 0.395548 | 0 | 0 | 0 | 0 | 0.143695 | 0.085044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
41a51db4ebb708e2ecd31fd7431cd810135e2622 | 58 | py | Python | bio/scheduler/__init__.py | ZuluPro/bio-directory | 4cdd3967e97363f59795d7b0fdb85998029370ff | [
"BSD-2-Clause"
] | null | null | null | bio/scheduler/__init__.py | ZuluPro/bio-directory | 4cdd3967e97363f59795d7b0fdb85998029370ff | [
"BSD-2-Clause"
] | null | null | null | bio/scheduler/__init__.py | ZuluPro/bio-directory | 4cdd3967e97363f59795d7b0fdb85998029370ff | [
"BSD-2-Clause"
] | null | null | null | default_app_config = 'bio.scheduler.apps.SchedulerConfig'
| 29 | 57 | 0.844828 | 7 | 58 | 6.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0.586207 | 0.586207 | 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 |
41ae32c612f834ded7fb83bf1fdfbb504f699999 | 1,579 | py | Python | PyFlow/Packages/PyflowBase/Nodes/getVar.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/Packages/PyflowBase/Nodes/getVar.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/Packages/PyflowBase/Nodes/getVar.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | from copy import copy
import uuid
from PyFlow.Packages.PyflowBase import PACKAGE_NAME
from PyFlow.Core import NodeBase
from PyFlow.Core.Variable import Variable
from PyFlow.Core.Common import *
from PyFlow import CreateRawPin
class getVar(NodeBase):
def __init__(self, name, var=None):
super(getVar, self)... | 27.224138 | 81 | 0.658645 | 176 | 1,579 | 5.852273 | 0.340909 | 0.067961 | 0.040777 | 0.046602 | 0.192233 | 0.137864 | 0.137864 | 0.137864 | 0 | 0 | 0 | 0 | 0.233059 | 1,579 | 57 | 82 | 27.701754 | 0.850537 | 0 | 0 | 0.133333 | 0 | 0 | 0.035465 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.222222 | false | 0 | 0.155556 | 0.111111 | 0.555556 | 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 |
41b1111b391bcbc8164c1f8190e0369069b63ee3 | 147 | py | Python | Part12/solr cores/sweet/solr_ingest.py | usc-cs599-group5/Content_Enrichment | 80e067aa7c99735d1398666c2873928342c5c1e1 | [
"Apache-2.0"
] | null | null | null | Part12/solr cores/sweet/solr_ingest.py | usc-cs599-group5/Content_Enrichment | 80e067aa7c99735d1398666c2873928342c5c1e1 | [
"Apache-2.0"
] | null | null | null | Part12/solr cores/sweet/solr_ingest.py | usc-cs599-group5/Content_Enrichment | 80e067aa7c99735d1398666c2873928342c5c1e1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from SolrClient import SolrClient
solr = SolrClient('http://localhost:8983/solr')
solr.local_index('sweet', 'sweet.json')
| 21 | 47 | 0.748299 | 20 | 147 | 5.45 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.088435 | 147 | 6 | 48 | 24.5 | 0.776119 | 0.142857 | 0 | 0 | 0 | 0 | 0.328 | 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 |
41c5fc2ea3e3827f588f1409676d23d270674c4f | 309 | py | Python | molsysmt/item/openmm_GromacsTopFile/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/item/openmm_GromacsTopFile/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/item/openmm_GromacsTopFile/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | from .is_openmm_GromacsTopFile import is_openmm_GromacsTopFile
from .extract import extract
from .add import add
from .append_structures import append_structures
from .get import *
from .set import *
from .to_openmm_Topology import to_openmm_Topology
from .to_molsysmt_Topology import to_molsysmt_Topology
| 25.75 | 62 | 0.854369 | 44 | 309 | 5.681818 | 0.318182 | 0.064 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113269 | 309 | 11 | 63 | 28.090909 | 0.912409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
41ce930def719483eecc3bf9cd65a80d96d76520 | 306 | py | Python | modules/payroll_manage/urls.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | 1 | 2018-11-27T08:08:07.000Z | 2018-11-27T08:08:07.000Z | modules/payroll_manage/urls.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | modules/payroll_manage/urls.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from django.conf.urls import url, include
# 费用管理相关
urlpatterns = [
url(r'^detail/', include('modules.payroll_manage.payroll_detail.urls', namespace='payroll_detail')), # 薪资明细
url(r'^gather/', include('modules.payroll_manage.payroll_gather.urls', namespace='payroll_gather')), # 薪资汇总
]
| 30.6 | 109 | 0.74183 | 40 | 306 | 5.525 | 0.525 | 0.036199 | 0.190045 | 0.244344 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.094771 | 306 | 9 | 110 | 34 | 0.794224 | 0.094771 | 0 | 0 | 0 | 0 | 0.470588 | 0.308824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68c1466e8f519dcf2591314c329e48d01af47815 | 3,160 | py | Python | unidef/utils/vtable.py | qiujiangkun/unidef | 6d3ca31a6b1d498f38f483d4174f79f7fe920f65 | [
"MIT"
] | 4 | 2021-11-08T10:01:19.000Z | 2022-03-17T06:27:14.000Z | unidef/utils/vtable.py | qiujiangkun/unidef | 6d3ca31a6b1d498f38f483d4174f79f7fe920f65 | [
"MIT"
] | null | null | null | unidef/utils/vtable.py | qiujiangkun/unidef | 6d3ca31a6b1d498f38f483d4174f79f7fe920f65 | [
"MIT"
] | null | null | null | from typedmodel.compat import *
from typedmodel.utils import my_beartype, reannotate, abstract, check_pep_type
class TypeAcceptor:
def __init__(self, annotation):
self.annotation = annotation
def __call__(self, val):
return check_pep_type(val, self.annotation)
def __str__(self):
... | 29.811321 | 84 | 0.571203 | 360 | 3,160 | 4.691667 | 0.25 | 0.0373 | 0.062167 | 0.067496 | 0.208407 | 0.185909 | 0.143872 | 0.12315 | 0.12315 | 0.12315 | 0 | 0.005067 | 0.312975 | 3,160 | 105 | 85 | 30.095238 | 0.772916 | 0.015506 | 0 | 0.179487 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 1 | 0.217949 | false | 0 | 0.025641 | 0.115385 | 0.551282 | 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 |
68c1f444a156817773f1329c0122d336d932e4db | 1,530 | py | Python | Level 2/Power Hungry/test_solution.py | Kronopt/google-foobar | 1c9387fdce6d31793811223cd61aa49e30e913d5 | [
"MIT"
] | null | null | null | Level 2/Power Hungry/test_solution.py | Kronopt/google-foobar | 1c9387fdce6d31793811223cd61aa49e30e913d5 | [
"MIT"
] | null | null | null | Level 2/Power Hungry/test_solution.py | Kronopt/google-foobar | 1c9387fdce6d31793811223cd61aa49e30e913d5 | [
"MIT"
] | null | null | null | import unittest
import solution
class TestSolution(unittest.TestCase):
"""Tests as specified in the README"""
def test1(self):
self.assertEqual(solution.solution([2, -3, 1, 0, -5]), "30")
def test2(self):
self.assertEqual(solution.solution([2, 0, 2, 2, 0]), "8")
def test3(self):
... | 26.842105 | 85 | 0.575163 | 205 | 1,530 | 4.253659 | 0.239024 | 0.073395 | 0.09289 | 0.110092 | 0.722477 | 0.682339 | 0.553899 | 0.469037 | 0.280963 | 0.280963 | 0 | 0.105843 | 0.228105 | 1,530 | 56 | 86 | 27.321429 | 0.632515 | 0.027451 | 0 | 0 | 0 | 0 | 0.022267 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | false | 0 | 0.057143 | 0 | 0.514286 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
68c53a79d6da5c0e98c08b5b2c9013e214935dff | 27 | py | Python | client/labml/internal/computer/__init__.py | elgalu/labml | 511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee | [
"MIT"
] | 463 | 2021-05-28T03:21:14.000Z | 2022-03-28T06:28:21.000Z | client/labml/internal/computer/__init__.py | elgalu/labml | 511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee | [
"MIT"
] | 15 | 2021-06-22T10:02:36.000Z | 2021-12-20T06:14:12.000Z | client/labml/internal/computer/__init__.py | elgalu/labml | 511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee | [
"MIT"
] | 29 | 2020-06-03T07:13:31.000Z | 2021-05-23T18:20:34.000Z | CONFIGS_FOLDER = '.labml'
| 9 | 25 | 0.703704 | 3 | 27 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 2 | 26 | 13.5 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 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 |
68d2cfeb03255cf63fa9cfb13d52306dba298e08 | 526 | py | Python | config.py | draffter/PyJarvis | 33f705b480604d87cf5ced3771448d815f3f367d | [
"MIT"
] | null | null | null | config.py | draffter/PyJarvis | 33f705b480604d87cf5ced3771448d815f3f367d | [
"MIT"
] | null | null | null | config.py | draffter/PyJarvis | 33f705b480604d87cf5ced3771448d815f3f367d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ConfigParser import SafeConfigParser
import codecs
class Config(object):
def __init__(self):
self.config = SafeConfigParser()
self.parse_config()
def parse_config(self):
with codecs.open('config.ini', 'r', encoding='utf-8') as f:
self.config.rea... | 29.222222 | 67 | 0.652091 | 67 | 526 | 5 | 0.462687 | 0.119403 | 0.101493 | 0.137313 | 0.197015 | 0.197015 | 0 | 0 | 0 | 0 | 0 | 0.007264 | 0.214829 | 526 | 18 | 68 | 29.222222 | 0.803874 | 0.039924 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
68ffb6313019bbb83600696b794eca63338f0b31 | 78 | py | Python | Daedric/exceptions.py | Firefight-Rhizome/Daedric | 29adaa145c07cfd388d7078b8c399fc73d763b3e | [
"Apache-2.0"
] | null | null | null | Daedric/exceptions.py | Firefight-Rhizome/Daedric | 29adaa145c07cfd388d7078b8c399fc73d763b3e | [
"Apache-2.0"
] | null | null | null | Daedric/exceptions.py | Firefight-Rhizome/Daedric | 29adaa145c07cfd388d7078b8c399fc73d763b3e | [
"Apache-2.0"
] | null | null | null |
class SenderNotScoreOwner(Exception):
message = 'SENDER_NOT_SCORE_OWNER'
| 19.5 | 38 | 0.794872 | 8 | 78 | 7.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 78 | 3 | 39 | 26 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ec0084cec4bc67f43dc06c7560e1c8aa7d326674 | 1,459 | py | Python | client/python/anna/common.py | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 489 | 2019-08-09T18:50:19.000Z | 2022-03-31T20:06:30.000Z | client/python/anna/common.py | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 46 | 2019-08-27T12:13:09.000Z | 2021-10-06T06:05:33.000Z | client/python/anna/common.py | stolet/anna | a2aa8cd962371d1e0ed38b636d1d4c6054eeb228 | [
"Apache-2.0"
] | 109 | 2019-08-16T03:07:12.000Z | 2022-02-26T01:31:17.000Z | # Copyright 2019 U.C. Berkeley RISE Lab
#
# 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 agree... | 31.042553 | 75 | 0.703907 | 220 | 1,459 | 4.445455 | 0.431818 | 0.042945 | 0.08589 | 0.07362 | 0.278119 | 0.278119 | 0.251534 | 0.251534 | 0.214724 | 0.155419 | 0 | 0.013913 | 0.211789 | 1,459 | 46 | 76 | 31.717391 | 0.836522 | 0.420836 | 0 | 0 | 0 | 0 | 0.018094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.285714 | 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 |
ec191e42c6fe421fa844112b7f2c3fc458677570 | 120 | py | Python | api/ver1/users/strings.py | pcf26536/politico-api | 1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c | [
"MIT"
] | 1 | 2019-02-22T19:34:32.000Z | 2019-02-22T19:34:32.000Z | api/ver1/users/strings.py | pcf26536/politico-api | 1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c | [
"MIT"
] | null | null | null | api/ver1/users/strings.py | pcf26536/politico-api | 1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c | [
"MIT"
] | 1 | 2019-02-07T22:12:25.000Z | 2019-02-07T22:12:25.000Z | fname = 'firstname'
lname = 'lastname'
email = 'email'
phone = 'phoneNumber'
pspt = 'passportUrl'
admin = 'isAdmin' | 20 | 22 | 0.666667 | 12 | 120 | 6.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 120 | 6 | 23 | 20 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.439655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ec20a1c66b1981ed0a31649c35db6b37a59d6b99 | 246 | py | Python | nnet/learning_rate_func/_constant_lr.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | nnet/learning_rate_func/_constant_lr.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | nnet/learning_rate_func/_constant_lr.py | zhaoyan1117/NeuralNet | a0343dd469e981bf9b4f18db0209ca9bfaf58c4f | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import, division
from ._base import LearningRateFuncBase
class ConstantLR(LearningRateFuncBase):
def __init__(self, eta_0):
self.eta_0 = eta_0
def apply(self, t, net):
return self.eta_0
| 20.5 | 48 | 0.723577 | 32 | 246 | 5.125 | 0.5625 | 0.097561 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.207317 | 246 | 11 | 49 | 22.363636 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 |
ec20f741477177d33e3865dd2ba376bb19b9e471 | 705 | py | Python | tools/leetcode.029.Divide Two Integers/leetcode.029.Divide Two Integers.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.029.Divide Two Integers/leetcode.029.Divide Two Integers.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.029.Divide Two Integers/leetcode.029.Divide Two Integers.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @return an integer
def divide(self, dividend, divisor):
if divisor == 0:
return
if dividend == 0:
return 0
sign = (dividend * divisor > 0)
remainder = abs(dividend)
divisor = abs(divisor)
cnt = 0
while remainder > ... | 705 | 705 | 0.415603 | 69 | 705 | 4.246377 | 0.318841 | 0.153584 | 0.040956 | 0.047782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.502128 | 705 | 1 | 705 | 705 | 0.797721 | 0.025532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec52c4c9005856715ec44e41527c31f1eb750bd6 | 293 | py | Python | aws-python-rest-api-with-pynamodb/todos/list.py | jmpfrazao/examples | c35fbed8857d34016f6f8742f3de974cb3ff4fd1 | [
"MIT"
] | 10,320 | 2016-11-14T06:25:37.000Z | 2022-03-31T17:26:31.000Z | aws-python-rest-api-with-pynamodb/todos/list.py | jmpfrazao/examples | c35fbed8857d34016f6f8742f3de974cb3ff4fd1 | [
"MIT"
] | 394 | 2016-11-17T13:50:48.000Z | 2022-03-27T21:04:47.000Z | aws-python-rest-api-with-pynamodb/todos/list.py | jmpfrazao/examples | c35fbed8857d34016f6f8742f3de974cb3ff4fd1 | [
"MIT"
] | 4,775 | 2016-11-18T01:15:59.000Z | 2022-03-31T09:16:09.000Z | import json
from todos.todo_model import TodoModel
def todo_list(event, context):
# fetch all todos from the database
results = TodoModel.scan()
# create a response
return {'statusCode': 200,
'body': json.dumps({'items': [dict(result) for result in results]})}
| 22.538462 | 80 | 0.668942 | 38 | 293 | 5.105263 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.221843 | 293 | 12 | 81 | 24.416667 | 0.837719 | 0.174061 | 0 | 0 | 0 | 0 | 0.079498 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6b787c166b037ee03c921025e86c22f9b96a06c2 | 113 | py | Python | fudbyte/apps/core/admin.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | null | null | null | fudbyte/apps/core/admin.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T03:03:36.000Z | 2022-01-13T01:33:56.000Z | fudbyte/apps/core/admin.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'nii'
from django.contrib import admin
from .models import DataScrap
admin.site.register(DataScrap) | 22.6 | 32 | 0.814159 | 15 | 113 | 5.866667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 113 | 5 | 33 | 22.6 | 0.871287 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 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 |
6ba981c4ff5ecbaea4e9c5e959f3b40006529c7a | 432,219 | py | Python | tools/Parser_and_Converters/python/pynmrml/nmrML_lib.py | proccaserra/nmrML | ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949 | [
"MIT"
] | 20 | 2015-02-04T23:23:11.000Z | 2022-03-06T12:58:01.000Z | tools/Parser_and_Converters/python/pynmrml/nmrML_lib.py | proccaserra/nmrML | ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949 | [
"MIT"
] | 85 | 2015-03-04T19:31:03.000Z | 2022-02-03T10:03:08.000Z | tools/Parser_and_Converters/python/pynmrml/nmrML_lib.py | proccaserra/nmrML | ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949 | [
"MIT"
] | 11 | 2015-01-19T06:19:16.000Z | 2022-02-03T10:04:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Wed Dec 18 17:30:45 2013 by generateDS.py version 2.11a.
#
import sys
import getopt
import re as re_
import base64
import datetime as datetime_
etree_ = None
Verbose_import_ = False
(
XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_el... | 51.375134 | 440 | 0.664749 | 42,624 | 432,219 | 6.542558 | 0.020083 | 0.060071 | 0.017686 | 0.040245 | 0.733912 | 0.690845 | 0.666723 | 0.638294 | 0.609302 | 0.599211 | 0 | 0.00281 | 0.23579 | 432,219 | 8,412 | 441 | 51.381241 | 0.841468 | 0.00832 | 0 | 0.700859 | 1 | 0.000126 | 0.087239 | 0.038184 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013896 | 0.0048 | null | null | 0.067711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bbbb7ae338e0941ac8582e69506117dd51287d8 | 141 | py | Python | analysis/scratch/get-cmip6.py | ashiklom/hector_permafrost_emit | 184b64c09b4497fd301811036fcd6976496fc64a | [
"MIT"
] | 1 | 2020-02-06T14:01:34.000Z | 2020-02-06T14:01:34.000Z | analysis/scratch/get-cmip6.py | ashiklom/hector_permafrost_emit | 184b64c09b4497fd301811036fcd6976496fc64a | [
"MIT"
] | 1 | 2019-01-17T21:41:34.000Z | 2019-01-18T20:40:03.000Z | analysis/scratch/get-cmip6.py | ashiklom/hector_permafrost_emit | 184b64c09b4497fd301811036fcd6976496fc64a | [
"MIT"
] | 2 | 2020-04-08T00:07:18.000Z | 2021-09-01T20:01:16.000Z | #!/usr/bin/env python3
import intake
url = "https://storage.cloud.google.com/cmip6/pangeo-cmip6.json"
col = intake.open_esm_datastore(url)
| 20.142857 | 64 | 0.758865 | 22 | 141 | 4.772727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.085106 | 141 | 6 | 65 | 23.5 | 0.790698 | 0.148936 | 0 | 0 | 0 | 0 | 0.470588 | 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 |
6bea1aa3d3c740c387da72b5a980c995132c7686 | 568 | py | Python | game/components/deck.py | will-weiss/coup | db77dc92db7f8c0b86697945f2141c2e68217e67 | [
"MIT"
] | null | null | null | game/components/deck.py | will-weiss/coup | db77dc92db7f8c0b86697945f2141c2e68217e67 | [
"MIT"
] | null | null | null | game/components/deck.py | will-weiss/coup | db77dc92db7f8c0b86697945f2141c2e68217e67 | [
"MIT"
] | null | null | null | import random
class Deck:
def __init__(self, roles, num):
self.__remaining = []
for role in roles:
for i in range(num):
self.add(role)
self.shuffle()
@property
def size(self):
return len(self.__remaining)
def shuffle(self):
random.sh... | 20.285714 | 40 | 0.56338 | 67 | 568 | 4.567164 | 0.373134 | 0.212418 | 0.071895 | 0.098039 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327465 | 568 | 27 | 41 | 21.037037 | 0.801047 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.095238 | 0.52381 | 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 |
6bf7ccc69c48bb0b91d3541062f11eb0f926fe84 | 1,541 | py | Python | tests/conftest.py | chrislarson1/virtex | 36eb47d1ace297951cae36edc8a00544b85fed79 | [
"Apache-2.0"
] | 5 | 2020-06-17T06:22:32.000Z | 2022-03-04T09:25:31.000Z | tests/conftest.py | virtexlabs/virtex | 36eb47d1ace297951cae36edc8a00544b85fed79 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | virtexlabs/virtex | 36eb47d1ace297951cae36edc8a00544b85fed79 | [
"Apache-2.0"
] | null | null | null | # -------------------------------------------------------------------
# Copyright 2021 Virtex authors. 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.... | 27.035088 | 75 | 0.671642 | 205 | 1,541 | 4.985366 | 0.497561 | 0.058708 | 0.117417 | 0.1409 | 0.278865 | 0.199609 | 0.144814 | 0.074364 | 0.074364 | 0 | 0 | 0.006015 | 0.136924 | 1,541 | 56 | 76 | 27.517857 | 0.762406 | 0.460091 | 0 | 0.25 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.25 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6bf8340dd66fabcfa0ec9b96bcefe1443cd89919 | 4,967 | py | Python | preprocess_minh.py | onvungocminh/Python_binding_fromC | 17fd858ab49f3bdfe0dbd25d10d825ca153b2b1d | [
"Apache-2.0"
] | 1 | 2021-07-20T10:18:09.000Z | 2021-07-20T10:18:09.000Z | preprocess_minh.py | onvungocminh/Python_binding_fromC | 17fd858ab49f3bdfe0dbd25d10d825ca153b2b1d | [
"Apache-2.0"
] | null | null | null | preprocess_minh.py | onvungocminh/Python_binding_fromC | 17fd858ab49f3bdfe0dbd25d10d825ca153b2b1d | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
from matplotlib import pyplot as plt
import scipy
from scipy.spatial import distance
import os
import re
from sklearn import mixture
from scipy.special import logsumexp
import sklearn.preprocessing
from sklearn.neighbors import KernelDensity
# Compute the log of likelihood ratio
def pre... | 27.904494 | 105 | 0.712704 | 835 | 4,967 | 4.034731 | 0.130539 | 0.014248 | 0.042743 | 0.053428 | 0.718017 | 0.704957 | 0.704957 | 0.680617 | 0.680617 | 0.669635 | 0 | 0.025484 | 0.146769 | 4,967 | 178 | 106 | 27.904494 | 0.769467 | 0.178579 | 0 | 0.587629 | 0 | 0 | 0.017756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0 | 0.113402 | 0 | 0.216495 | 0.092784 | 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 |
6bf9528747707ef55306e127d3ec70eaa7c219c9 | 860 | py | Python | sensortoolkit/calculate/__init__.py | USEPA/sensortoolkit | a9da32fd4df492154c6e4cc570011d14e933ee83 | [
"MIT"
] | 2 | 2022-02-25T21:59:04.000Z | 2022-03-01T19:37:38.000Z | sensortoolkit/calculate/__init__.py | USEPA/sensortoolkit | a9da32fd4df492154c6e4cc570011d14e933ee83 | [
"MIT"
] | null | null | null | sensortoolkit/calculate/__init__.py | USEPA/sensortoolkit | a9da32fd4df492154c6e4cc570011d14e933ee83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Analysis modules supporting the calculation of parameter quantities and
statistical metrics that are either recommended by U.S. EPA's Performance
Targets Reports, or may be used to compliment performance evaluation efforts.
===================================================================... | 29.655172 | 80 | 0.704651 | 115 | 860 | 5.104348 | 0.591304 | 0.006814 | 0.017036 | 0.030664 | 0.057922 | 0.057922 | 0.057922 | 0 | 0 | 0 | 0 | 0.036685 | 0.144186 | 860 | 28 | 81 | 30.714286 | 0.76087 | 0.582558 | 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 |
6bfbbc182f0495b202deb2c1ca0e7e2e2e2a30e5 | 30 | py | Python | src/test/data/pa2/AdditionalTestCases_pa2/error_assign_compatibility.py | Leo-Enrique-Wu/chocopy_compiler_semantic_analysis | e89f6434dd7d274d4838457316143f312226495f | [
"BSD-2-Clause"
] | null | null | null | src/test/data/pa2/AdditionalTestCases_pa2/error_assign_compatibility.py | Leo-Enrique-Wu/chocopy_compiler_semantic_analysis | e89f6434dd7d274d4838457316143f312226495f | [
"BSD-2-Clause"
] | null | null | null | src/test/data/pa2/AdditionalTestCases_pa2/error_assign_compatibility.py | Leo-Enrique-Wu/chocopy_compiler_semantic_analysis | e89f6434dd7d274d4838457316143f312226495f | [
"BSD-2-Clause"
] | null | null | null | x:[[int]] = None
x = [[None]]
| 10 | 16 | 0.433333 | 5 | 30 | 2.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 30 | 2 | 17 | 15 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d40cb00e3e1757244c69f10109977204358193c0 | 384 | py | Python | ctt/decorators.py | HiddenData/django-ctt | 06fdbd7d878eedfa433ae5abe961a4aba15d1a99 | [
"MIT"
] | 3 | 2015-10-24T01:04:53.000Z | 2019-01-24T08:59:49.000Z | ctt/decorators.py | HiddenData/django-ctt | 06fdbd7d878eedfa433ae5abe961a4aba15d1a99 | [
"MIT"
] | null | null | null | ctt/decorators.py | HiddenData/django-ctt | 06fdbd7d878eedfa433ae5abe961a4aba15d1a99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#vim: set ts=4 sw=4 et fdm=marker : */
import functools
def filtered_qs(func):
"""
#TODO: zrobić, obsługę funkcji z argumentami
:param func:
:return:
"""
@functools.wraps(func)
def wrapped(self, *args, **kwargs):
ret_qs = func(self)
... | 18.285714 | 48 | 0.596354 | 51 | 384 | 4.431373 | 0.705882 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010381 | 0.247396 | 384 | 20 | 49 | 19.2 | 0.771626 | 0.377604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d4146b7c069b53612d603249b7b02b7453678880 | 954 | py | Python | appengine/findit/gae_libs/pipeline_wrapper.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/findit/gae_libs/pipeline_wrapper.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/findit/gae_libs/pipeline_wrapper.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Deprecated(crbug.com/766383). Please use gae_libs/pipelines.py instead."""
import pipeline as pipeline
from pipeline import handlers as pipeline_handlers
... | 29.8125 | 79 | 0.732704 | 139 | 954 | 4.928058 | 0.611511 | 0.040876 | 0.061314 | 0.052555 | 0.072993 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0.012642 | 0.17086 | 954 | 31 | 80 | 30.774194 | 0.85335 | 0.397275 | 0 | 0.25 | 0 | 0 | 0.070144 | 0.070144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.1875 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d41c1da5e4372b0755d2f326aaf3df2247b465bb | 2,524 | py | Python | databricks_cli/commands/api.py | jaipreet-s/databricks-cli | 8e2849a91b594cadba702e13aebcc391afa6c54e | [
"Apache-2.0"
] | 252 | 2017-06-03T06:08:02.000Z | 2022-03-24T16:43:02.000Z | databricks_cli/commands/api.py | jaipreet-s/databricks-cli | 8e2849a91b594cadba702e13aebcc391afa6c54e | [
"Apache-2.0"
] | 310 | 2017-06-28T06:00:07.000Z | 2022-03-31T15:23:07.000Z | databricks_cli/commands/api.py | jaipreet-s/databricks-cli | 8e2849a91b594cadba702e13aebcc391afa6c54e | [
"Apache-2.0"
] | 192 | 2017-07-31T01:00:43.000Z | 2022-03-13T19:19:21.000Z | # Databricks CLI
# Copyright 2021 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"), except
# that the use of services to which certain application programming
# interfaces (each, an "API") connect requires that the user first obtain
# a license for the use of the APIs from Databricks,... | 48.538462 | 95 | 0.748811 | 349 | 2,524 | 5.252149 | 0.424069 | 0.04419 | 0.042008 | 0.0491 | 0.148936 | 0.096017 | 0.046918 | 0.046918 | 0.046918 | 0 | 0 | 0.008185 | 0.1771 | 2,524 | 51 | 96 | 49.490196 | 0.874338 | 0.462361 | 0 | 0 | 0 | 0 | 0.022523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d41f2719e3911e98e9f3979a289fd6020cf63ce1 | 304 | py | Python | ktane/services/message_service.py | hanzikl/ktane-controller | 3116e76cd56f2c4348df99427c52db1c8ea065e9 | [
"MIT"
] | null | null | null | ktane/services/message_service.py | hanzikl/ktane-controller | 3116e76cd56f2c4348df99427c52db1c8ea065e9 | [
"MIT"
] | null | null | null | ktane/services/message_service.py | hanzikl/ktane-controller | 3116e76cd56f2c4348df99427c52db1c8ea065e9 | [
"MIT"
] | null | null | null | class MessageService:
def __init__(self, connection):
self.connection = connection
def send_simple_message(self, message):
print("Sending message: {}".format(message))
enc_message = bytes(source=message + "\n", encoding='utf8')
self.connection.write(enc_message)
| 33.777778 | 67 | 0.674342 | 33 | 304 | 5.969697 | 0.575758 | 0.213198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.203947 | 304 | 8 | 68 | 38 | 0.809917 | 0 | 0 | 0 | 0 | 0 | 0.082237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4225177cb4bbec6024d638bd70f43eefb62a893 | 290 | py | Python | OOPS/section 3/script.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | OOPS/section 3/script.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 2 | 2021-12-10T10:25:19.000Z | 2021-12-10T10:27:15.000Z | OOPS/section 3/script.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | null | null | null | class Speed:
def __init__(self):
self.speed = 10
self.__new_speed = 80
def get_new_speed(self):
return self.__new_speed
def set_new_speed(self,newspeed):
self.__new_speed = newspeed
s = Speed()
print(s.speed)
print(s.get_new_speed()) | 18.125 | 37 | 0.624138 | 41 | 290 | 3.95122 | 0.341463 | 0.296296 | 0.222222 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.275862 | 290 | 16 | 38 | 18.125 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d44449cd98cf94d98812beacd73b29a7386216d1 | 505 | py | Python | Three_Part_Moudule/Flask/helloflask/demos/hello/app.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 2 | 2019-01-24T15:06:59.000Z | 2019-01-25T07:34:45.000Z | Three_Part_Moudule/Flask/helloflask/demos/hello/app.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-12-23T09:45:11.000Z | 2019-12-23T09:45:11.000Z | Three_Part_Moudule/Flask/helloflask/demos/hello/app.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-07-18T14:21:35.000Z | 2019-07-18T14:21:35.000Z | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '<h1>Hello Flask!</h1>'
# 为视图绑定多个URL
@app.route('/hi')
@app.route('/hello')
def say_hello():
return '<h1>Hello, Flask!</h1>'
# 动态URL
@app.route('/greet', defaults={'name': 'Programmer'})
@app.route('/greet/<name>')
def greet(na... | 18.703704 | 53 | 0.613861 | 69 | 505 | 4.42029 | 0.289855 | 0.183607 | 0.170492 | 0.118033 | 0.452459 | 0.321311 | 0.190164 | 0 | 0 | 0 | 0 | 0.018265 | 0.132673 | 505 | 26 | 54 | 19.423077 | 0.678082 | 0.031683 | 0 | 0 | 0 | 0 | 0.302594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.230769 | 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 |
d4738dda24f64c9d3e8157bf250f0e2ff2e6d420 | 94 | py | Python | brain/brain_libs/LU_model/test.py | zuxfoucault/DoctorBot_demo | 82e24078da4d2e6caba728b959812401109e014d | [
"MIT"
] | 1 | 2020-09-24T07:26:14.000Z | 2020-09-24T07:26:14.000Z | brain/brain_libs/LU_model/test.py | lintzuhsiang/Doctorbot | 6be98bbf380d14bb789d30a137ded3b51b3f31fd | [
"MIT"
] | null | null | null | brain/brain_libs/LU_model/test.py | lintzuhsiang/Doctorbot | 6be98bbf380d14bb789d30a137ded3b51b3f31fd | [
"MIT"
] | null | null | null | import train_model
sf = train_model.SlotFilling()
slot = sf.decode("請問得青光眼會怎麼樣")
print (slot) | 18.8 | 30 | 0.765957 | 13 | 94 | 5.384615 | 0.692308 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 94 | 5 | 31 | 18.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
d47873e2d8316baf1ae4dbb7126995b239fc27ba | 302 | py | Python | src/pybeatsaver/models/search_response.py | Kiyomi-Parents/PyBeatSaver | ce4d957f0e2dd2e151958a861b25952fbfd47479 | [
"MIT"
] | null | null | null | src/pybeatsaver/models/search_response.py | Kiyomi-Parents/PyBeatSaver | ce4d957f0e2dd2e151958a861b25952fbfd47479 | [
"MIT"
] | 12 | 2022-02-03T14:31:06.000Z | 2022-03-24T20:17:05.000Z | src/pybeatsaver/models/search_response.py | Kiyomi-Parents/PyBeatSaver | ce4d957f0e2dd2e151958a861b25952fbfd47479 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import *
from dataclasses_json import dataclass_json
from .fields import default
from .map_detail import MapDetail
@dataclass_json
@dataclass
class SearchResponse:
docs: Optional[List[MapDetail]] = default()
redirect: Optional[str] = default()
| 20.133333 | 47 | 0.788079 | 36 | 302 | 6.5 | 0.5 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 302 | 14 | 48 | 21.571429 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.8 | 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 |
d480435ac5c7be75d38bbe0ba7678604e0aee61e | 250 | py | Python | robo_app.py | MandyYdnam/Robo_App | e34712e59300d57f363884cb82bff20fe7953e63 | [
"Apache-2.0"
] | 9 | 2020-06-17T05:11:32.000Z | 2022-03-17T08:51:27.000Z | robo_app.py | MandyYdnam/Robo_App | e34712e59300d57f363884cb82bff20fe7953e63 | [
"Apache-2.0"
] | 23 | 2020-04-09T14:20:00.000Z | 2021-09-11T05:41:34.000Z | robo_app.py | MandyYdnam/Robo_App | e34712e59300d57f363884cb82bff20fe7953e63 | [
"Apache-2.0"
] | 2 | 2020-10-08T03:39:13.000Z | 2021-07-12T10:27:33.000Z | from robo_app import application
from sys import platform
import multiprocessing
if __name__ == "__main__":
if platform == 'darwin':
multiprocessing.set_start_method("spawn")
app = application.Application()
app.mainloop()
| 27.777778 | 50 | 0.708 | 27 | 250 | 6.148148 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204 | 250 | 8 | 51 | 31.25 | 0.834171 | 0 | 0 | 0 | 0 | 0 | 0.078512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
d48a5c0cac5578eb8dcf7ec2ad5379e49b1b9839 | 310 | py | Python | token.py | doubledherin/my_compiler | c8d6343d97e1f84b98c8830ee2d2fb69c89cce49 | [
"MIT"
] | 3 | 2018-06-14T12:20:53.000Z | 2020-11-20T05:11:58.000Z | token.py | doubledherin/my_compiler | c8d6343d97e1f84b98c8830ee2d2fb69c89cce49 | [
"MIT"
] | 1 | 2017-10-21T21:30:06.000Z | 2017-10-21T23:37:03.000Z | token.py | doubledherin/my_compiler | c8d6343d97e1f84b98c8830ee2d2fb69c89cce49 | [
"MIT"
] | 2 | 2018-06-14T14:07:26.000Z | 2021-04-19T03:46:10.000Z | class Token(object):
def __init__(self, type, value):
self.type = type
self.value = value
def __str__(self):
return 'Token({type}, {value})'.format(
type=self.type,
value=repr(self.value)
)
def __repr__(self):
return self.__str__()
| 22.142857 | 47 | 0.541935 | 35 | 310 | 4.342857 | 0.342857 | 0.157895 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329032 | 310 | 13 | 48 | 23.846154 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 0.545455 | 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 |
d48b39733919760dc9a641c888054ad126ec07c9 | 109 | py | Python | turtt.py | nir21-meet/meet2019y1lab5 | 90a4ed46bb51f1e76e5d15a9db7e63dcdaa558dd | [
"MIT"
] | null | null | null | turtt.py | nir21-meet/meet2019y1lab5 | 90a4ed46bb51f1e76e5d15a9db7e63dcdaa558dd | [
"MIT"
] | null | null | null | turtt.py | nir21-meet/meet2019y1lab5 | 90a4ed46bb51f1e76e5d15a9db7e63dcdaa558dd | [
"MIT"
] | null | null | null | import turtle
gg=turtle.clone()
def fr():
turtle.forward(200)
turtle.onkeypress(fr,' ')
turtle.listen()
| 13.625 | 25 | 0.697248 | 15 | 109 | 5.066667 | 0.666667 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.12844 | 109 | 7 | 26 | 15.571429 | 0.768421 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e039d5b6ee4d88fd11afadfa883f91ec8638928 | 1,399 | py | Python | py8dis/beebasm.py | ZornsLemma/py8dis | 90077cc86482c23e622845f865937dd9df232077 | [
"MIT"
] | 5 | 2021-09-10T12:25:16.000Z | 2022-03-01T13:01:06.000Z | py8dis/beebasm.py | ZornsLemma/py8dis | 90077cc86482c23e622845f865937dd9df232077 | [
"MIT"
] | null | null | null | py8dis/beebasm.py | ZornsLemma/py8dis | 90077cc86482c23e622845f865937dd9df232077 | [
"MIT"
] | null | null | null | from __future__ import print_function
import sys
import classification
import config
import utils
config.set_formatter(sys.modules[__name__])
output_filename = None
explicit_a = True
def set_output_filename(filename):
global output_filename
output_filename = filename
def hex2(n):
return "&%s" % utils.... | 19.704225 | 80 | 0.616154 | 192 | 1,399 | 4.265625 | 0.3125 | 0.102564 | 0.08547 | 0.09768 | 0.141636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.249464 | 1,399 | 70 | 81 | 19.985714 | 0.771429 | 0 | 0 | 0.038462 | 0 | 0 | 0.115082 | 0 | 0 | 0 | 0.002859 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.096154 | 0.211538 | 0.634615 | 0.019231 | 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 |
2e0a20473d07815ffba5b3252fa964756c69b6fe | 108 | py | Python | 4. condicoes/exemplo_1.py | lusmoura/Python-workshop | 41a0f82e964a0a77a95d558806e7200dc3fab052 | [
"MIT"
] | 1 | 2021-11-10T18:33:48.000Z | 2021-11-10T18:33:48.000Z | 4. condicoes/exemplo_1.py | lusmoura/Python-workshop | 41a0f82e964a0a77a95d558806e7200dc3fab052 | [
"MIT"
] | null | null | null | 4. condicoes/exemplo_1.py | lusmoura/Python-workshop | 41a0f82e964a0a77a95d558806e7200dc3fab052 | [
"MIT"
] | null | null | null | idade = 17
if idade >= 18:
print('A pessoa pode dirigir')
else:
print('A pessoa não pode dirigir')
| 15.428571 | 38 | 0.638889 | 17 | 108 | 4.058824 | 0.647059 | 0.173913 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.240741 | 108 | 6 | 39 | 18 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e12a37079ed5ce4f51b6ab7b1a63dbf781bc711 | 106 | py | Python | 0x09-python-everything_is_object/100-magic_string.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | null | null | null | 0x09-python-everything_is_object/100-magic_string.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | null | null | null | 0x09-python-everything_is_object/100-magic_string.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | 1 | 2020-09-25T17:54:36.000Z | 2020-09-25T17:54:36.000Z | #!/usr/bin/python3
globvar = 0
def magic_string():
global globvar++
return ("Bootcamp" * globvar)
| 17.666667 | 33 | 0.660377 | 13 | 106 | 5.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.188679 | 106 | 5 | 34 | 21.2 | 0.77907 | 0.160377 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e157070c9f444929cffa087f63f830a4ba3f70b | 396 | py | Python | crawling/spiders/__init__.py | franloza/apiestas | 46978f58858b1d3822b2f80eb8948009944aa005 | [
"MIT"
] | 53 | 2019-11-19T03:02:06.000Z | 2022-01-13T15:29:38.000Z | crawling/spiders/__init__.py | franloza/apiestas | 46978f58858b1d3822b2f80eb8948009944aa005 | [
"MIT"
] | 3 | 2019-12-27T22:49:11.000Z | 2021-03-31T18:59:36.000Z | crawling/spiders/__init__.py | franloza/apiestas | 46978f58858b1d3822b2f80eb8948009944aa005 | [
"MIT"
] | 5 | 2021-04-25T13:02:48.000Z | 2022-02-16T13:57:21.000Z | # This package will contain the spiders of your Scrapy project
#
# Please refer to the documentation for information on how to create and manage
# your spiders.
from .codere import CodereSpider
from .luckia import LuckiaSpider
from .marcaapuestas import MarcaApuestasSpider
from .sportium import SportiumSpider
from .elc... | 39.6 | 79 | 0.840909 | 49 | 396 | 6.795918 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 396 | 10 | 80 | 39.6 | 0.968023 | 0.383838 | 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 |
2e2526d0fd2d5fbf844981d613dc1374e502000d | 135 | py | Python | json_yaml/read_yaml.py | caseymorris87/pynet-ons-dec21 | 6dea8bfc3620225656a765cb0f5be7d055fb474f | [
"Apache-2.0"
] | 1 | 2021-12-21T04:57:32.000Z | 2021-12-21T04:57:32.000Z | json_yaml/read_yaml.py | caseymorris87/pynet-ons-dec21 | 6dea8bfc3620225656a765cb0f5be7d055fb474f | [
"Apache-2.0"
] | null | null | null | json_yaml/read_yaml.py | caseymorris87/pynet-ons-dec21 | 6dea8bfc3620225656a765cb0f5be7d055fb474f | [
"Apache-2.0"
] | 11 | 2021-12-07T16:04:22.000Z | 2022-02-09T12:20:05.000Z | import yaml
from rich import print
yaml_file = "my_file.yml"
with open(yaml_file) as f:
output = yaml.safe_load(f)
print(output)
| 15 | 30 | 0.733333 | 24 | 135 | 3.958333 | 0.625 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 135 | 8 | 31 | 16.875 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2e352710e292e6ce126fcb9425e4b4f7c3851f8b | 273 | py | Python | RealisticWeatherAPI/models/report.py | girisagar46/ModernFastAPI | ac530c7db22000c608b41403a3477a376fbaac28 | [
"Apache-2.0"
] | 1 | 2021-11-01T03:33:49.000Z | 2021-11-01T03:33:49.000Z | RealisticWeatherAPI/models/report.py | girisagar46/ModernFastAPI | ac530c7db22000c608b41403a3477a376fbaac28 | [
"Apache-2.0"
] | null | null | null | RealisticWeatherAPI/models/report.py | girisagar46/ModernFastAPI | ac530c7db22000c608b41403a3477a376fbaac28 | [
"Apache-2.0"
] | null | null | null | import datetime
from typing import Optional
from pydantic import BaseModel
from models.location import Location
class ReportSubmittal(BaseModel):
description: str
location: Location
class Report(ReportSubmittal):
id: str
created_date: Optional[datetime.datetime]
| 16.058824 | 42 | 0.81685 | 32 | 273 | 6.9375 | 0.53125 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 273 | 16 | 43 | 17.0625 | 0.936709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 |
2e35ded28be9ce6826976c8171daa24543a67b69 | 1,169 | py | Python | arts-main/arts_core/migrations/0032_auto_20211115_2213.py | conix-center/arts | 3ee48a4de49be3c6df744673581720d3eeaa9923 | [
"BSD-3-Clause"
] | 3 | 2022-01-25T16:36:19.000Z | 2022-03-04T06:00:16.000Z | arts-main/arts_core/migrations/0032_auto_20211115_2213.py | conix-center/arts | 3ee48a4de49be3c6df744673581720d3eeaa9923 | [
"BSD-3-Clause"
] | 8 | 2020-09-17T18:13:47.000Z | 2022-02-23T20:55:59.000Z | arts-main/arts_core/migrations/0032_auto_20211115_2213.py | conix-center/arts | 3ee48a4de49be3c6df744673581720d3eeaa9923 | [
"BSD-3-Clause"
] | 1 | 2020-11-12T09:34:14.000Z | 2020-11-12T09:34:14.000Z | # Generated by Django 3.0.14 on 2021-11-15 22:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('arts_core', '0031_auto_20210420_1457'),
]
operations = [
migrations.AlterField(
model_name='module',
name='apis',
... | 29.974359 | 102 | 0.565441 | 113 | 1,169 | 5.716814 | 0.424779 | 0.154799 | 0.193498 | 0.224458 | 0.667183 | 0.667183 | 0.490712 | 0.490712 | 0.490712 | 0.413313 | 0 | 0.069512 | 0.298546 | 1,169 | 38 | 103 | 30.763158 | 0.718293 | 0.03935 | 0 | 0.59375 | 1 | 0 | 0.1124 | 0.043711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 |
2e38773f9c77e34b384b964a2f762cb6ac2f7928 | 2,313 | py | Python | sim/model/clock.py | Exclosure/telescope-sim | 88a6e4c605cfb1d658b9449cb22d295f26320bec | [
"Apache-2.0"
] | null | null | null | sim/model/clock.py | Exclosure/telescope-sim | 88a6e4c605cfb1d658b9449cb22d295f26320bec | [
"Apache-2.0"
] | null | null | null | sim/model/clock.py | Exclosure/telescope-sim | 88a6e4c605cfb1d658b9449cb22d295f26320bec | [
"Apache-2.0"
] | null | null | null | import datetime
import math
from skyfield.timelib import Time
from skyfield import api
ts = api.load.timescale()
def increment_tt_by_seconds(tt: Time, seconds: float) -> Time:
return increment_tt_by_timedelta(tt, datetime.timedelta(seconds=seconds))
def increment_tt_by_timedelta(tt: Time, time_delta: datetime... | 27.86747 | 81 | 0.664073 | 306 | 2,313 | 4.735294 | 0.205882 | 0.049689 | 0.035887 | 0.022084 | 0.066253 | 0.033126 | 0.033126 | 0.033126 | 0 | 0 | 0 | 0.01573 | 0.230437 | 2,313 | 82 | 82 | 28.207317 | 0.798315 | 0 | 0 | 0.067797 | 0 | 0 | 0.00735 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.271186 | false | 0 | 0.067797 | 0.118644 | 0.559322 | 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 |
2e57d3fc3873f3957981c736e13dc3a49fd498f8 | 124 | py | Python | Oneliner/tests/unimplemented/andersk-2.py | dreampiggy/PyScript | 8f8bf8616ee93afad9fd477808699b6b1f206d95 | [
"MIT"
] | 3 | 2017-02-15T06:02:51.000Z | 2018-09-04T13:20:11.000Z | Oneliner/tests/unimplemented/andersk-2.py | lizhuoli1126/PyScript | 8f8bf8616ee93afad9fd477808699b6b1f206d95 | [
"MIT"
] | null | null | null | Oneliner/tests/unimplemented/andersk-2.py | lizhuoli1126/PyScript | 8f8bf8616ee93afad9fd477808699b6b1f206d95 | [
"MIT"
] | 1 | 2017-06-22T03:59:16.000Z | 2017-06-22T03:59:16.000Z | # Test by andersk
## The issue here is that when we modify y, we also instantiate a new y...
x = [1]
y = x
y += [2]
print x
| 17.714286 | 74 | 0.629032 | 26 | 124 | 3 | 0.769231 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.25 | 124 | 6 | 75 | 20.666667 | 0.817204 | 0.701613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e68f05f11f338a135dbfaf17154382fc5ca2819 | 2,132 | py | Python | cpc/type/ArrayType.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T07:10:19.000Z | 2021-05-09T07:10:19.000Z | cpc/type/ArrayType.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | cpc/type/ArrayType.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | from .Type import Type
class ArrayType(Type):
undefined = -1
def __init__(self,base_type,pointer_size,length=None):
self.base_type = base_type
self.pointer_size = pointer_size
if length == None:
self.length = ArrayType.undefined
else:
self.length = lengt... | 30.898551 | 120 | 0.60788 | 273 | 2,132 | 4.52381 | 0.14652 | 0.14251 | 0.145749 | 0.116599 | 0.271255 | 0.174899 | 0.050202 | 0 | 0 | 0 | 0 | 0.001318 | 0.287993 | 2,132 | 69 | 121 | 30.898551 | 0.812253 | 0 | 0 | 0.169811 | 0 | 0 | 0.001875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0.018868 | 0.132075 | 0.698113 | 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 |
cf164ba01463d1bba2f22f9859ccb455073adf42 | 224 | py | Python | practice1/5.2.py | StanislavDanilov/python3_course | 3e73fb2bb96662cfc7d84eb08a6535a82ce194af | [
"MIT"
] | null | null | null | practice1/5.2.py | StanislavDanilov/python3_course | 3e73fb2bb96662cfc7d84eb08a6535a82ce194af | [
"MIT"
] | null | null | null | practice1/5.2.py | StanislavDanilov/python3_course | 3e73fb2bb96662cfc7d84eb08a6535a82ce194af | [
"MIT"
] | null | null | null | couch = int(input(": "))
i = 1;
while True:
if ((i*2) == couch) or (i == couch):
print(i)
break
elif ((i*2+1) == couch):
print(i)
break
else:
pass
i = i + 1
| 16 | 41 | 0.383929 | 30 | 224 | 2.866667 | 0.5 | 0.046512 | 0.255814 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.441964 | 224 | 13 | 42 | 17.230769 | 0.648 | 0 | 0 | 0.333333 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cf22d365ff471c3397d2df335ed673d8f4f8d306 | 1,450 | py | Python | aiotdlib/api/types/video_chat.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/types/video_chat.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/types/video_chat.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 37.179487 | 169 | 0.56069 | 144 | 1,450 | 5.5 | 0.5 | 0.056818 | 0.041667 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000947 | 0.271724 | 1,450 | 38 | 170 | 38.157895 | 0.749053 | 0.637241 | 0 | 0 | 1 | 0 | 0.030501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.923077 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf37a046428a98c5f96b74e7bb30b31b76b6c61c | 60 | py | Python | mayan/apps/display/__init__.py | CMU-313/fall-2021-hw2-i-m-not-sure | eeae5ff8ced613603bb6e12ef81767b024d1cffb | [
"Apache-2.0"
] | null | null | null | mayan/apps/display/__init__.py | CMU-313/fall-2021-hw2-i-m-not-sure | eeae5ff8ced613603bb6e12ef81767b024d1cffb | [
"Apache-2.0"
] | 20 | 2021-09-15T21:47:42.000Z | 2021-10-01T20:00:35.000Z | mayan/apps/display/__init__.py | CMU-313/fall-2021-hw2-i-m-not-sure | eeae5ff8ced613603bb6e12ef81767b024d1cffb | [
"Apache-2.0"
] | null | null | null | default_app_config = 'mayan.apps.display.apps.CandidateApp'
| 30 | 59 | 0.833333 | 8 | 60 | 6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.842105 | 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 |
cf39560b570a3899849f3bd7a4b28084a1ccf481 | 187 | py | Python | bids-validator/bids_validator/__init__.py | bendhouseart/bids-validator | c1c961599b086fdacf61cbc2327b35e8002f9bc3 | [
"MIT"
] | 84 | 2018-10-27T07:44:17.000Z | 2022-03-29T16:01:25.000Z | bids-validator/bids_validator/__init__.py | bendhouseart/bids-validator | c1c961599b086fdacf61cbc2327b35e8002f9bc3 | [
"MIT"
] | 723 | 2018-09-26T22:14:28.000Z | 2022-03-29T16:00:52.000Z | bids-validator/bids_validator/__init__.py | bendhouseart/bids-validator | c1c961599b086fdacf61cbc2327b35e8002f9bc3 | [
"MIT"
] | 58 | 2018-10-05T15:33:25.000Z | 2022-01-19T12:13:12.000Z | """BIDS validator common Python package."""
from .bids_validator import BIDSValidator
__all__ = ['BIDSValidator']
from . import _version
__version__ = _version.get_versions()['version']
| 26.714286 | 48 | 0.775401 | 20 | 187 | 6.65 | 0.6 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106952 | 187 | 6 | 49 | 31.166667 | 0.796407 | 0.197861 | 0 | 0 | 0 | 0 | 0.138889 | 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 |
cf4239265e879368b7f279a64d8b66e240ff26f1 | 95 | py | Python | wikisearch/apps.py | skupriienko/Keyphrase_extractor | d9748ef5f52384cf56effcd24fa1ce25a2b09cd5 | [
"MIT"
] | null | null | null | wikisearch/apps.py | skupriienko/Keyphrase_extractor | d9748ef5f52384cf56effcd24fa1ce25a2b09cd5 | [
"MIT"
] | null | null | null | wikisearch/apps.py | skupriienko/Keyphrase_extractor | d9748ef5f52384cf56effcd24fa1ce25a2b09cd5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WikisearchConfig(AppConfig):
name = 'wikisearch'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf5c1e3d47f95fd37869e3e31c8cc7bd1e74314a | 7,642 | py | Python | scratch/logistic_regression.py | mauney/data-science-from-scratch | 9e48712ba0204a1b4682133219cba200e806f57b | [
"MIT"
] | 7,365 | 2015-04-17T23:19:16.000Z | 2022-03-31T21:30:37.000Z | scratch/logistic_regression.py | SeolHuiGwan9478/Datamining | 6651c8a1c217a7c29366ffbf0cd7102b27d0651f | [
"MIT"
] | 79 | 2015-04-29T08:06:09.000Z | 2021-10-18T01:54:58.000Z | scratch/logistic_regression.py | SeolHuiGwan9478/Datamining | 6651c8a1c217a7c29366ffbf0cd7102b27d0651f | [
"MIT"
] | 4,184 | 2015-04-23T13:18:44.000Z | 2022-03-31T09:35:47.000Z |
tuples = [(0.7,48000,1),(1.9,48000,0),(2.5,60000,1),(4.2,63000,0),(6,76000,0),(6.5,69000,0),(7.5,76000,0),(8.1,88000,0),(8.7,83000,1),(10,83000,1),(0.8,43000,0),(1.8,60000,0),(10,79000,1),(6.1,76000,0),(1.4,50000,0),(9.1,92000,0),(5.8,75000,0),(5.2,69000,0),(1,56000,0),(6,67000,0),(4.9,74000,0),(6.4,63000,1),(6.2,8200... | 47.7625 | 2,777 | 0.588066 | 1,435 | 7,642 | 3.049477 | 0.15122 | 0.011883 | 0.033592 | 0.017825 | 0.177559 | 0.11106 | 0.024223 | 0.024223 | 0.009141 | 0.009141 | 0 | 0.268654 | 0.18804 | 7,642 | 160 | 2,778 | 47.7625 | 0.436583 | 0.054567 | 0 | 0.14 | 0 | 0 | 0.030105 | 0.012265 | 0 | 0 | 0 | 0 | 0.03 | 1 | 0.08 | false | 0 | 0.14 | 0.03 | 0.3 | 0.01 | 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 |
cf62b4e7dbe98b68aeddbd4db2bd663c453af7a2 | 188 | py | Python | test whether a number is within 100 of 1000 or 2000.py | Max143/Python_programs | 5084900844d7f6c39a255a6cfb8fa5120a189026 | [
"MIT"
] | null | null | null | test whether a number is within 100 of 1000 or 2000.py | Max143/Python_programs | 5084900844d7f6c39a255a6cfb8fa5120a189026 | [
"MIT"
] | null | null | null | test whether a number is within 100 of 1000 or 2000.py | Max143/Python_programs | 5084900844d7f6c39a255a6cfb8fa5120a189026 | [
"MIT"
] | null | null | null | # TEST WHETHER A NUMBER IS WITHIN 100 OF 1000 OR 2000
n = int(input("Input integer : "))
def ashi():
return ((abs(1000 - n) <= 100) or (abs(2000 - n) <= 100))
print(ashi())
| 20.888889 | 62 | 0.574468 | 30 | 188 | 3.6 | 0.666667 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0.255319 | 188 | 8 | 63 | 23.5 | 0.592857 | 0.271277 | 0 | 0 | 0 | 0 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 0 | 3 |
cf63934ceb56be386ad808ada1e771be736e51d8 | 540 | py | Python | collaborations/utils.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T01:06:09.000Z | 2021-11-08T11:18:24.000Z | collaborations/utils.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 49 | 2017-08-01T18:59:58.000Z | 2022-02-12T01:54:53.000Z | collaborations/utils.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 3 | 2017-08-01T21:12:05.000Z | 2017-10-02T20:37:07.000Z | """
Utility methods for collaborators.
This module has methods to get collaborators, users you've invited, and users who have invited you.
"""
from django.contrib.auth.models import User
def get_collaborators(user):
return User.objects.filter(to_users__from_user=user).filter(from_users__to_user=user)
def get_in... | 31.764706 | 99 | 0.805556 | 85 | 540 | 4.8 | 0.352941 | 0.117647 | 0.073529 | 0.154412 | 0.522059 | 0.42402 | 0.348039 | 0.22549 | 0.22549 | 0.22549 | 0 | 0 | 0.101852 | 540 | 16 | 100 | 33.75 | 0.841237 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cf6e840764a0058b11f5c793debc0c0f81d6b200 | 280 | py | Python | tests/test_serial_pc_control.py | carlosperate/python-serial-pc-control | 1389dac2ad33255dbd0edad565ebc498dc515a44 | [
"MIT"
] | 6 | 2021-05-04T17:48:34.000Z | 2022-03-01T01:44:05.000Z | tests/test_serial_pc_control.py | carlosperate/python-serial-pc-control | 1389dac2ad33255dbd0edad565ebc498dc515a44 | [
"MIT"
] | 2 | 2021-12-31T02:16:47.000Z | 2022-03-01T17:54:04.000Z | tests/test_serial_pc_control.py | carlosperate/serial-pc-control | 7c9c18bcbf61773d9afefd4677c14cd4e350ed8b | [
"MIT"
] | 2 | 2021-02-05T17:51:57.000Z | 2021-12-23T10:58:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Carlos Pereira Atencio
# SPDX-License-Identifier: MIT
"""Package tests."""
from serial_pc_control import __version__
def test_version():
"""Test the version is correct."""
assert __version__ == "0.1.0"
| 23.333333 | 43 | 0.685714 | 38 | 280 | 4.763158 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038136 | 0.157143 | 280 | 11 | 44 | 25.454545 | 0.728814 | 0.564286 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d84268a88933fdb89ddc9d421f220c59910e73fc | 1,234 | py | Python | agronet_be/AgronetApp/views/userCreateView.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-06T00:39:08.000Z | 2021-10-06T00:39:08.000Z | agronet_be/AgronetApp/views/userCreateView.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | null | null | null | agronet_be/AgronetApp/views/userCreateView.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-03T13:39:31.000Z | 2021-10-03T13:39:31.000Z | from rest_framework import status, views
from rest_framework.response import Response
from rest_framework_simplejwt.serializers import PasswordField, TokenObtainPairSerializer
from AgronetApp.models.user import User
from rest_framework import generics
from AgronetApp.serializers.userSerializer import UserSeriali... | 44.071429 | 96 | 0.726094 | 118 | 1,234 | 7.440678 | 0.491525 | 0.074032 | 0.077449 | 0.052392 | 0.056948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002979 | 0.183955 | 1,234 | 27 | 97 | 45.703704 | 0.868918 | 0.512966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.666667 | 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 |
d8485d2f48d2e7823f682427344fb2e9dec5682f | 6,683 | py | Python | core/app/alarm/tests/test_camera_video.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | core/app/alarm/tests/test_camera_video.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | core/app/alarm/tests/test_camera_video.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | import uuid
from devices.factories import DeviceFactory, DeviceTypeFactory
from alarm.use_cases.data import InMotionVideoData
from unittest.mock import Mock, patch, MagicMock, call
from django.test import TestCase
from alarm.use_cases.camera_video import RPICameraVideo, camera_video
class CameraVideoTestCase(TestCas... | 38.408046 | 158 | 0.692503 | 840 | 6,683 | 5.105952 | 0.10119 | 0.0429 | 0.048496 | 0.06062 | 0.790161 | 0.746095 | 0.714619 | 0.67848 | 0.670786 | 0.6526 | 0 | 0.015727 | 0.219811 | 6,683 | 173 | 159 | 38.630058 | 0.806866 | 0 | 0 | 0.522059 | 0 | 0 | 0.173874 | 0.164297 | 0 | 0 | 0 | 0 | 0.132353 | 1 | 0.058824 | false | 0 | 0.044118 | 0 | 0.117647 | 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 |
d862944823de7549e640a21e45af5a45b87741dd | 247 | py | Python | cyclic_imports_example/test_cyclic_import.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | 1 | 2015-11-26T15:53:58.000Z | 2015-11-26T15:53:58.000Z | cyclic_imports_example/test_cyclic_import.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | null | null | null | cyclic_imports_example/test_cyclic_import.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | null | null | null | import cyclic_import.moderator_user as moderator_user
import cyclic_import.standard_gamer as standard_gamer
moder = moderator_user.ModeratorUser()
simple_user = standard_gamer.StandardGamer()
simple_user2 = moder.get_user(moder.STANDARD_GAMER)
| 27.444444 | 53 | 0.8583 | 33 | 247 | 6.060606 | 0.393939 | 0.26 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.080972 | 247 | 8 | 54 | 30.875 | 0.876652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
d86d786036ad4fe4fa8d6be096f31c62f371b4da | 146 | py | Python | config8.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config8.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config8.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | 1 | 2018-03-05T19:42:13.000Z | 2018-03-05T19:42:13.000Z | provider "aws" {
access_key = "AKIAJIQLB53ECGHA6HZQ"
secret_key = "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"
region = "${var.region}"
}
| 24.333333 | 57 | 0.726027 | 11 | 146 | 9.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 0.157534 | 146 | 5 | 58 | 29.2 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.520548 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d86fdf58dc3f67b21bbdbcef0082784509b43ff2 | 209 | py | Python | src/keystore/core.py | AndrewLaganaro/specter-diy | 5d986c281d0a8e494f47ad4265a54dd9e6912d8e | [
"MIT"
] | null | null | null | src/keystore/core.py | AndrewLaganaro/specter-diy | 5d986c281d0a8e494f47ad4265a54dd9e6912d8e | [
"MIT"
] | null | null | null | src/keystore/core.py | AndrewLaganaro/specter-diy | 5d986c281d0a8e494f47ad4265a54dd9e6912d8e | [
"MIT"
] | 1 | 2021-01-14T09:45:18.000Z | 2021-01-14T09:45:18.000Z | """Base classes for inheritance"""
from errors import BaseError
class KeyStoreError(BaseError):
NAME = "Keystore error"
class PinError(KeyStoreError):
NAME = "PIN error"
class KeyStore:
pass
| 13.933333 | 34 | 0.712919 | 23 | 209 | 6.478261 | 0.695652 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196172 | 209 | 14 | 35 | 14.928571 | 0.886905 | 0.133971 | 0 | 0 | 0 | 0 | 0.131429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d88bfd8d597623db85bd482852228fa9b0e0d6c4 | 580 | py | Python | test/test_formatter.py | ta08/girepo | 73ce6dd108428590a69fbe19fe1ad8b337d4462f | [
"Apache-2.0"
] | null | null | null | test/test_formatter.py | ta08/girepo | 73ce6dd108428590a69fbe19fe1ad8b337d4462f | [
"Apache-2.0"
] | 27 | 2019-09-05T15:36:10.000Z | 2021-07-13T20:23:14.000Z | test/test_formatter.py | ta08/girepo | 73ce6dd108428590a69fbe19fe1ad8b337d4462f | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from girepo.formatter import beautify_text
class TestFormatter(TestCase):
def test_beautify_text(self):
test_data = [
("Hello World", "|", "Hello World"),
("Hello | World", "|", "Hello \| World"),
("Hello $ World", "$", "Hello \$ World"),... | 29 | 57 | 0.55 | 55 | 580 | 5.690909 | 0.454545 | 0.255591 | 0.335463 | 0.447284 | 0.255591 | 0.255591 | 0.255591 | 0.255591 | 0.255591 | 0.255591 | 0 | 0 | 0.312069 | 580 | 19 | 58 | 30.526316 | 0.784461 | 0 | 0 | 0 | 0 | 0 | 0.182759 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
d88ce57158ae32a107cbcf800aa7c109de70f988 | 394 | py | Python | src/lib/tuples.py | harpreet-kaur-mahant/LearningPython | 9863784f037e1ec4569c709bc20557ba7114cbf2 | [
"MIT"
] | null | null | null | src/lib/tuples.py | harpreet-kaur-mahant/LearningPython | 9863784f037e1ec4569c709bc20557ba7114cbf2 | [
"MIT"
] | null | null | null | src/lib/tuples.py | harpreet-kaur-mahant/LearningPython | 9863784f037e1ec4569c709bc20557ba7114cbf2 | [
"MIT"
] | null | null | null | #learning Tuples/couples
my_tuple = (1,2,3,2)
print(my_tuple)
print(type(my_tuple))
#Indexing of the tuple
print( my_tuple[3])
print(len(my_tuple))
#Count the number of occurences of the object in the tuple
print(my_tuple.count(1))
print(my_tuple.count(2))
print(my_tuple.count(3))
#Returns the very first index of... | 19.7 | 58 | 0.756345 | 75 | 394 | 3.84 | 0.306667 | 0.243056 | 0.291667 | 0.15625 | 0.298611 | 0.229167 | 0.229167 | 0.229167 | 0.229167 | 0 | 0 | 0.028736 | 0.116751 | 394 | 20 | 59 | 19.7 | 0.798851 | 0.395939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.9 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d8997e3e2b81d56e0811bf8859c7018c1db59b4d | 753 | py | Python | tally_ho/apps/tally/migrations/0022_auto_20200312_0715.py | onaio/tally-ho | f7a81909755924370653051bfc8315588dc75356 | [
"Apache-2.0"
] | 12 | 2015-09-07T17:12:42.000Z | 2021-12-29T07:51:18.000Z | tally_ho/apps/tally/migrations/0022_auto_20200312_0715.py | onaio/tally-ho | f7a81909755924370653051bfc8315588dc75356 | [
"Apache-2.0"
] | 122 | 2018-09-18T04:05:39.000Z | 2022-01-17T10:12:48.000Z | tally_ho/apps/tally/migrations/0022_auto_20200312_0715.py | onaio/tally-ho | f7a81909755924370653051bfc8315588dc75356 | [
"Apache-2.0"
] | 13 | 2015-06-06T17:32:34.000Z | 2020-09-10T12:58:07.000Z | # Generated by Django 2.1.1 on 2020-03-12 07:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tally', '0021_auto_20200302_0605'),
]
operations = [
migrations.RemoveField(
model_name='resultformstats',
name='end... | 24.290323 | 57 | 0.571049 | 66 | 753 | 6.348485 | 0.606061 | 0.085919 | 0.229117 | 0.267303 | 0.350835 | 0.350835 | 0 | 0 | 0 | 0 | 0 | 0.060784 | 0.322709 | 753 | 30 | 58 | 25.1 | 0.760784 | 0.059761 | 0 | 0.458333 | 1 | 0 | 0.185552 | 0.032578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 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 |
d89f70b5a8cde55d71bb7aab13f1e388abc0b2bd | 2,370 | py | Python | src/abaqus/Constraint/DisplayBody.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Constraint/DisplayBody.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Constraint/DisplayBody.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .Constraint import Constraint
from ..Assembly.PartInstance import PartInstance
from ..BasicGeometry.ModelDotArray import ModelDotArray
class DisplayBody(Constraint):
"""The DisplayBody object defines a constraint such that the specified instance is used for
display only and ... | 32.027027 | 116 | 0.662025 | 269 | 2,370 | 5.802974 | 0.427509 | 0.054452 | 0.038437 | 0.023062 | 0.167841 | 0.134529 | 0.134529 | 0.096092 | 0.096092 | 0.096092 | 0 | 0 | 0.282278 | 2,370 | 73 | 117 | 32.465753 | 0.917695 | 0.702532 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0.363636 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d8a2d1ce2f023aa0607e85ec3daf1038cc5dea02 | 1,325 | py | Python | PauseBot.py | trulshj/pausebot | c8784b044c3c099a38272564f69341d74f26c26e | [
"MIT"
] | null | null | null | PauseBot.py | trulshj/pausebot | c8784b044c3c099a38272564f69341d74f26c26e | [
"MIT"
] | 1 | 2020-09-30T07:01:02.000Z | 2020-09-30T07:01:02.000Z | PauseBot.py | trulshj/pause-bot | c8784b044c3c099a38272564f69341d74f26c26e | [
"MIT"
] | 1 | 2020-09-30T19:04:09.000Z | 2020-09-30T19:04:09.000Z | from enum import IntEnum, unique
from slack import WebClient
from slack.errors import SlackApiError
@unique
class Pause(IntEnum):
"""
An enum for pause types
"""
Break = 15
Lunch = 30
class User():
"""
Abstract class for storing users, should contain the following:
User's display nam... | 24.090909 | 143 | 0.68 | 193 | 1,325 | 4.632124 | 0.42487 | 0.03915 | 0.024609 | 0.03132 | 0.058166 | 0.058166 | 0.058166 | 0 | 0 | 0 | 0 | 0.008105 | 0.255094 | 1,325 | 55 | 144 | 24.090909 | 0.89767 | 0.564528 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.315789 | 0.157895 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d8d6b102cba39df0d58d147389d1779f22f66aef | 103 | py | Python | pacman-termux/test/pacman/tests/pacman004.py | Maxython/pacman-for-termux | 3b208eb9274cbfc7a27fca673ea8a58f09ebad47 | [
"MIT"
] | 23 | 2021-05-21T19:11:06.000Z | 2022-03-31T18:14:20.000Z | source/pacman-6.0.1/test/pacman/tests/pacman004.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 11 | 2021-05-21T12:08:44.000Z | 2021-12-21T08:30:08.000Z | source/pacman-6.0.1/test/pacman/tests/pacman004.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-09-26T08:44:40.000Z | 2021-09-26T08:44:40.000Z | self.description = "Test command line option (-v)"
self.args = "-v"
self.addrule("PACMAN_RETCODE=1")
| 17.166667 | 50 | 0.699029 | 15 | 103 | 4.733333 | 0.8 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.126214 | 103 | 5 | 51 | 20.6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.456311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8de095c22fbb47f6de14adacc08d1017eed681a | 378 | py | Python | project/db/models/category_model.py | sunday-ucheawaji/API- | 07fb4b596cfe8e85b8575a8e70a8c886d3ab627a | [
"MIT"
] | null | null | null | project/db/models/category_model.py | sunday-ucheawaji/API- | 07fb4b596cfe8e85b8575a8e70a8c886d3ab627a | [
"MIT"
] | null | null | null | project/db/models/category_model.py | sunday-ucheawaji/API- | 07fb4b596cfe8e85b8575a8e70a8c886d3ab627a | [
"MIT"
] | 1 | 2022-02-09T14:13:20.000Z | 2022-02-09T14:13:20.000Z | from django.db import models
import uuid
class Category(models.Model):
id = models.UUIDField(primary_key=True, unique=True, editable=False, default=uuid.uuid4)
title = models.CharField(max_length=50)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
... | 29.076923 | 92 | 0.730159 | 51 | 378 | 5.196078 | 0.686275 | 0.060377 | 0.158491 | 0.188679 | 0.211321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.174603 | 378 | 13 | 93 | 29.076923 | 0.839744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
d8df65fc40610d17898ba2f15e7b8df8b42e87c6 | 889 | py | Python | pdfgenerator_api/settings.py | jrbenriquez/django-pdfgenerator-api | cfd3f8ac7e40b8a2021502462792016cf751728b | [
"MIT"
] | 1 | 2019-04-09T04:09:50.000Z | 2019-04-09T04:09:50.000Z | pdfgenerator_api/settings.py | jrbenriquez/django-pdfgenerator-api | cfd3f8ac7e40b8a2021502462792016cf751728b | [
"MIT"
] | null | null | null | pdfgenerator_api/settings.py | jrbenriquez/django-pdfgenerator-api | cfd3f8ac7e40b8a2021502462792016cf751728b | [
"MIT"
] | null | null | null | from django.conf import settings
PDFGENERATOR_API_BASEPATH = getattr(settings,
'PDFGENERATOR_API_BASEPATH',
'https://us1.pdfgeneratorapi.com/api/v3/')
PDFGENERATOR_API_KEY = getattr(settings, 'PDFGENERATOR_API_KEY',
N... | 28.677419 | 77 | 0.64117 | 83 | 889 | 6.409639 | 0.337349 | 0.394737 | 0.345865 | 0.394737 | 0.259399 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0.006309 | 0.286839 | 889 | 30 | 78 | 29.633333 | 0.832808 | 0 | 0 | 0.272727 | 0 | 0 | 0.267717 | 0.191226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 |
d8f92ae87fc4bb47c1d1064aa6e56c73f77f2727 | 151 | py | Python | example/config.py | ask/flask-celery | 537a2ec2bfcbd3c0073bdeb3c78417fc7eb6a428 | [
"BSD-3-Clause"
] | 107 | 2015-01-11T20:37:35.000Z | 2022-02-18T05:39:28.000Z | example/config.py | ask/flask-celery | 537a2ec2bfcbd3c0073bdeb3c78417fc7eb6a428 | [
"BSD-3-Clause"
] | 8 | 2015-02-19T19:05:20.000Z | 2021-01-11T16:58:17.000Z | example/config.py | ask/flask-celery | 537a2ec2bfcbd3c0073bdeb3c78417fc7eb6a428 | [
"BSD-3-Clause"
] | 19 | 2015-09-13T17:25:17.000Z | 2020-05-08T05:04:30.000Z | CELERY_RESULT_BACKEND = "redis"
CELERY_REDIS_HOST = "localhost"
CELERY_REDIS_PORT = 6379
CELERY_REDIS_DB = 0
BROKER_URL = 'redis://localhost:6379/0'
| 18.875 | 39 | 0.781457 | 22 | 151 | 4.954545 | 0.545455 | 0.302752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.112583 | 151 | 7 | 40 | 21.571429 | 0.738806 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 0.16 | 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 |
2b0d630f435fc552022db61f6f263efa9b370414 | 221 | py | Python | acmicpc/2133/2133.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 3 | 2019-03-09T05:19:23.000Z | 2019-04-06T09:26:36.000Z | acmicpc/2133/2133.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2020-02-23T10:38:04.000Z | 2020-02-23T10:38:04.000Z | acmicpc/2133/2133.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2019-05-22T13:47:53.000Z | 2019-05-22T13:47:53.000Z | # 점화식 : X[n+1] = 4X[n-1] - X[n-3]
N = int(input())
d = [0 for i in range(31)]
d[2] = 3
for i in range(4, 31, 2):
d[i] = d[2] * d[i-2]
for j in range(4, i, 2):
d[i] += d[i-j] * 2
d[i] += 2
print(d[N])
| 18.416667 | 33 | 0.41629 | 56 | 221 | 1.642857 | 0.339286 | 0.108696 | 0.130435 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124183 | 0.307692 | 221 | 11 | 34 | 20.090909 | 0.477124 | 0.140271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b2e0eb8fe58137266b6da0b90d74431199bd522 | 302 | py | Python | test/test_parse_audio_json.py | BoudhayanBanerjee/political-ad-classifier | e7b7bd76eadd4bde536862449e71370903d22114 | [
"MIT"
] | 2 | 2017-06-20T19:18:20.000Z | 2017-06-30T19:01:44.000Z | test/test_parse_audio_json.py | BoudhayanBanerjee/political-ad-classifier | e7b7bd76eadd4bde536862449e71370903d22114 | [
"MIT"
] | null | null | null | test/test_parse_audio_json.py | BoudhayanBanerjee/political-ad-classifier | e7b7bd76eadd4bde536862449e71370903d22114 | [
"MIT"
] | null | null | null | from adclassifier import google_interface
inputpath = r'D:\adclassifier\labelled_dataset\non_political\api_responses\speech'
outputpath = r'D:\adclassifier\labelled_dataset\non_political\text_datasets\speech'
google_interface.json_parser(inputpath=inputpath, outputpath=outputpath, filetype='audio')
| 43.142857 | 90 | 0.857616 | 37 | 302 | 6.756757 | 0.594595 | 0.12 | 0.112 | 0.176 | 0.328 | 0.328 | 0.328 | 0 | 0 | 0 | 0 | 0 | 0.049669 | 302 | 6 | 91 | 50.333333 | 0.87108 | 0 | 0 | 0 | 0 | 0 | 0.460265 | 0.443709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b373bf607e3ee9a2c892e00af91cd094535cd62 | 4,240 | py | Python | disease_spread_model/model/collectors.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | disease_spread_model/model/collectors.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | disease_spread_model/model/collectors.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | from .my_math_utils import *
# POPULATION STATE RELATED ============================================================================================
# Ordinary agents---------------------------------------------------
def calculate_ordinary_pearson_number_susceptible(model):
return int(np.sum(model.A_state_by_hou... | 31.641791 | 119 | 0.613443 | 442 | 4,240 | 5.472851 | 0.162896 | 0.1389 | 0.112443 | 0.124018 | 0.595701 | 0.395205 | 0.291029 | 0.291029 | 0.25217 | 0.25217 | 0 | 0.002907 | 0.107547 | 4,240 | 133 | 120 | 31.879699 | 0.636364 | 0.266274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.460317 | false | 0 | 0.015873 | 0.444444 | 0.936508 | 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 |
2b3d0ddbb9781b4e37457a927797c42ec813b60a | 1,707 | py | Python | tools/config/config.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | tools/config/config.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | tools/config/config.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | class Config:
def __init__(self, data: any=None):
assert type(data) == dict
self._data = {} if data is None else data
def get(self, key: str, default: any=None) -> any:
d, key = self.resolve(key)
return d[key] if key in d else default
def __getitem__(self, key: str... | 31.611111 | 118 | 0.527241 | 235 | 1,707 | 3.719149 | 0.276596 | 0.056064 | 0.045767 | 0.051487 | 0.139588 | 0.118993 | 0.070938 | 0.070938 | 0.070938 | 0 | 0 | 0.001757 | 0.333333 | 1,707 | 53 | 119 | 32.207547 | 0.766257 | 0 | 0 | 0.076923 | 0 | 0 | 0.132406 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.25641 | false | 0 | 0 | 0.102564 | 0.512821 | 0.025641 | 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 |
99241b54e8aed0e4e272ffbcd533ed3d2491c36e | 370 | py | Python | py-backend/test/resources/resources_paths.py | smmnloes/MaxMovieRec | f3a5099f31e63ab0781443726de87a5b3b0bd5ad | [
"BSD-3-Clause"
] | 5 | 2019-09-27T16:47:56.000Z | 2020-05-18T15:29:06.000Z | py-backend/test/resources/resources_paths.py | smmnloes/MaxMovieRec | f3a5099f31e63ab0781443726de87a5b3b0bd5ad | [
"BSD-3-Clause"
] | 15 | 2019-12-27T08:00:10.000Z | 2022-03-02T02:47:19.000Z | py-backend/test/resources/resources_paths.py | smmnloes/pyMDB | f3a5099f31e63ab0781443726de87a5b3b0bd5ad | [
"BSD-3-Clause"
] | null | null | null | import os
RESOURCES_ROOT = os.path.dirname(os.path.abspath(__file__))
TEST_DBS_PATH = os.path.join(RESOURCES_ROOT, 'test_dbs')
TEST_TEMP_DB_PATH = os.path.join(TEST_DBS_PATH, 'temp.db')
TEST_QUERY_DB_PATH = os.path.join(TEST_DBS_PATH, 'query.db')
TEST_USER_DB_PATH = os.path.join(TEST_DBS_PATH, 'users.db')
TEST_DATASET... | 41.111111 | 61 | 0.789189 | 66 | 370 | 4.015152 | 0.257576 | 0.158491 | 0.188679 | 0.264151 | 0.509434 | 0.509434 | 0.30566 | 0.30566 | 0 | 0 | 0 | 0 | 0.07027 | 370 | 8 | 62 | 46.25 | 0.770349 | 0 | 0 | 0 | 0 | 0 | 0.105405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
992b3b19c0e96f7da93a211f7b13e6c2cc37741e | 23 | py | Python | tests/__init__.py | FidelityInternational/nsxramlclient | 002aca6cf1151afad66c9a4c6384646a86ee29f3 | [
"MIT"
] | 44 | 2015-09-03T11:50:01.000Z | 2019-12-09T18:11:03.000Z | tests/__init__.py | FidelityInternational/nsxramlclient | 002aca6cf1151afad66c9a4c6384646a86ee29f3 | [
"MIT"
] | 18 | 2015-11-08T16:34:56.000Z | 2019-10-18T21:17:05.000Z | tests/__init__.py | FidelityInternational/nsxramlclient | 002aca6cf1151afad66c9a4c6384646a86ee29f3 | [
"MIT"
] | 36 | 2015-09-24T02:06:19.000Z | 2020-09-28T08:34:41.000Z | __author__ = 'yfauser'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
99593b926a54c7c2952baaa9cdbc00d90f2ddab4 | 849 | py | Python | ENTRY_MODULE/ConditionalStatementsAdvanced/EXERCISE/07_Hotel_Room.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | ENTRY_MODULE/ConditionalStatementsAdvanced/EXERCISE/07_Hotel_Room.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | 1 | 2022-01-15T10:33:56.000Z | 2022-01-15T10:33:56.000Z | ENTRY_MODULE/ConditionalStatementsAdvanced/EXERCISE/07_Hotel_Room.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | room_types: tuple = ('Apartment', 'Studio',)
months: tuple = ('May', 'June', 'July', 'August', 'September', 'October',)
prices: tuple = ((
65.00, 68.70, 77.00, 77.00, 68.70, 65.00,
),(
50.00, 75.20, 76.00, 76.00, 75.20, 50.00,
),)
discounts: tuple = ((
(1.00, 1.00, 1.00, 1.00, 1.00, 1.00,),
(1.00, 1.0... | 28.3 | 74 | 0.54417 | 153 | 849 | 2.980392 | 0.30719 | 0.157895 | 0.175439 | 0.263158 | 0.179825 | 0.153509 | 0.153509 | 0.153509 | 0.153509 | 0.118421 | 0 | 0.216495 | 0.200236 | 849 | 29 | 75 | 29.275862 | 0.455081 | 0 | 0 | 0.291667 | 0 | 0 | 0.083628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9959a48e36228468bf5f1ad4beecddf9b9dc3189 | 128 | py | Python | CLE/Module_DeploymentMonitoring/apps.py | CherBoon/Cloudtopus | 41e4b3743d8f5f988373d14937a1ed8dbdf92afb | [
"MIT"
] | 3 | 2019-03-04T02:55:25.000Z | 2021-02-13T09:00:52.000Z | CLE/Module_DeploymentMonitoring/apps.py | MartinTeo/Cloudtopus | ebcc57cdf10ca2b73343f03abb33a12ab9c6edef | [
"MIT"
] | 6 | 2019-02-28T08:54:25.000Z | 2022-03-02T14:57:04.000Z | CLE/Module_DeploymentMonitoring/apps.py | MartinTeo/Cloudtopus | ebcc57cdf10ca2b73343f03abb33a12ab9c6edef | [
"MIT"
] | 2 | 2019-02-28T08:52:15.000Z | 2019-09-24T18:32:01.000Z | from django.apps import AppConfig
class ModuleDeploymentmonitoringConfig(AppConfig):
name = 'Module_DeploymentMonitoring'
| 21.333333 | 50 | 0.828125 | 11 | 128 | 9.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 128 | 5 | 51 | 25.6 | 0.929204 | 0 | 0 | 0 | 0 | 0 | 0.210938 | 0.210938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9974cc1c0414267a9b94f6def41a51f3b1499702 | 152 | py | Python | case-letters.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | case-letters.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | case-letters.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | country = input('your country please: ')
if country.lower() == 'india':
print('You are a proud Indian')
else:
print('You are not from India !')
| 25.333333 | 40 | 0.644737 | 22 | 152 | 4.454545 | 0.727273 | 0.163265 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 152 | 5 | 41 | 30.4 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9998bdfea04ec13b01ce54af8f45caa667e3f5f3 | 2,067 | py | Python | tests/level_test.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | tests/level_test.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | tests/level_test.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | from config.constants import CELL
from game.display.screen import Screen
from game.game import Game
from game.levels.text_level import TextLevel
from game.player.player import Player
from unittest import TestCase
import os
class TestLevel(TestCase):
def test_get_view_1(self):
g = Game()
m = Text... | 43.0625 | 117 | 0.624577 | 274 | 2,067 | 4.653285 | 0.193431 | 0.225882 | 0.213333 | 0.235294 | 0.690196 | 0.654118 | 0.643137 | 0.604706 | 0.476078 | 0.476078 | 0 | 0.06053 | 0.232704 | 2,067 | 47 | 118 | 43.978723 | 0.74338 | 0 | 0 | 0.268293 | 0 | 0 | 0.074988 | 0.043058 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.268293 | 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 |
99ab729cb38805dd7a9d7a763f37ff5cad4494ae | 2,215 | py | Python | src/scs_core/model/pmx/s1/pmx_request.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 3 | 2019-03-12T01:59:58.000Z | 2020-09-12T07:27:42.000Z | src/scs_core/model/pmx/s1/pmx_request.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 1 | 2018-04-20T07:58:38.000Z | 2021-03-27T08:52:45.000Z | src/scs_core/model/pmx/s1/pmx_request.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 4 | 2017-09-29T13:08:43.000Z | 2019-10-09T09:13:58.000Z | """
Created on 13 Aug 2020
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
example document:
{"particulates":
{"tag": "scs-be2-3", "src": "N3", "rec": "2020-08-16T07:52:24Z",
"val": {"per": 4.9, "pm1": 17.8, "pm2p5": 19.4, "pm10": 19.5,
"bin": [703, 32, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | 30.342466 | 118 | 0.369752 | 203 | 2,215 | 3.8867 | 0.463054 | 0.045627 | 0.064639 | 0.081115 | 0.024081 | 0.024081 | 0.024081 | 0.024081 | 0.024081 | 0.024081 | 0 | 0.060214 | 0.197743 | 2,215 | 72 | 119 | 30.763889 | 0.383793 | 0.585102 | 0 | 0.095238 | 0 | 0 | 0.06351 | 0.030023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.190476 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
41f8dc9b3e805a69f1ef9920ef59287b531a496b | 4,139 | py | Python | tests/test_addAllSemesterCourses.py | jhelgert/IliasDownloaderUniMA | 64f654e58d809552abdb4fe6e006665cb52a6951 | [
"MIT"
] | 6 | 2020-08-03T17:51:59.000Z | 2021-08-04T10:58:21.000Z | tests/test_addAllSemesterCourses.py | jhelgert/IliasDownloaderUniMA | 64f654e58d809552abdb4fe6e006665cb52a6951 | [
"MIT"
] | 19 | 2020-09-03T13:41:43.000Z | 2021-12-03T09:38:50.000Z | tests/test_addAllSemesterCourses.py | jhelgert/IliasDownloaderUniMA | 64f654e58d809552abdb4fe6e006665cb52a6951 | [
"MIT"
] | 6 | 2020-08-04T08:47:34.000Z | 2021-08-04T10:57:48.000Z | from IliasDownloaderUniMA import IliasDownloaderUniMA
from bs4 import BeautifulSoup
import datetime
import math
no_regular_course = """
<a class="il_ContainerItemTitle" href="ilias.php?ref_id=988270&cmdClass=ilrepositorygui&cmdNode=vi&baseClass=ilrepositorygui">Digitalisierung in der Lehre (Hilfskräfte und... | 39.798077 | 219 | 0.741725 | 564 | 4,139 | 5.248227 | 0.182624 | 0.131757 | 0.027365 | 0.062162 | 0.784797 | 0.723986 | 0.723986 | 0.705068 | 0.619932 | 0.461824 | 0 | 0.047747 | 0.099299 | 4,139 | 103 | 220 | 40.184466 | 0.746245 | 0.060643 | 0 | 0.416667 | 0 | 0.069444 | 0.355273 | 0.180876 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
511231f003b4cf0e5e297f3368c612ccaa3965ed | 278 | py | Python | test/test_resources/python-unittest/py_several_files/Root/test/test2.py | jocelyn/codeboard_mantra | 05a4c783dbae8d87b55c834382d8d12f957ffea9 | [
"MIT"
] | 1 | 2019-01-12T02:57:53.000Z | 2019-01-12T02:57:53.000Z | test/test_resources/python-unittest/py_several_files/Root/test/test2.py | jocelyn/codeboard_mantra | 05a4c783dbae8d87b55c834382d8d12f957ffea9 | [
"MIT"
] | 1 | 2017-10-13T11:57:41.000Z | 2017-10-13T11:57:41.000Z | test/test_resources/python-unittest/py_several_files/Root/test/test2.py | jocelyn/codeboard_mantra | 05a4c783dbae8d87b55c834382d8d12f957ffea9 | [
"MIT"
] | 6 | 2017-10-13T11:27:58.000Z | 2020-10-06T19:06:22.000Z | from Root import c
import unittest
class test2(unittest.TestCase):
def test_c1(self):
self.assertEqual(c.bar1(),1)
def test_c2(self):
self.assertEqual(c.bar2(),2)
def test_barFail(self):
self.assertEqual(c.bar1()+c.bar2(),4)
if __name__ == '__main__':
unittest.main()
| 23.166667 | 39 | 0.719424 | 44 | 278 | 4.295455 | 0.522727 | 0.111111 | 0.301587 | 0.31746 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.115108 | 278 | 11 | 40 | 25.272727 | 0.727642 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5119a0fc732d2277c7b2a4c7524d170cc6c4e7de | 393 | py | Python | sse/views.py | UoW-CPC/Asclepios-Client | 11011f6b4f1056cfe9d5aff9bd67eda72f7b804a | [
"Apache-1.1"
] | 1 | 2020-04-19T20:56:06.000Z | 2020-04-19T20:56:06.000Z | sse/views.py | UoW-CPC/Asclepios-Client | 11011f6b4f1056cfe9d5aff9bd67eda72f7b804a | [
"Apache-1.1"
] | 4 | 2020-03-17T16:15:22.000Z | 2020-12-21T10:32:42.000Z | sse/views.py | UoW-CPC/Asclepios-Client | 11011f6b4f1056cfe9d5aff9bd67eda72f7b804a | [
"Apache-1.1"
] | 1 | 2020-03-25T11:43:01.000Z | 2020-03-25T11:43:01.000Z | from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
from django.views.generic import CreateView
from .models import Patient
from django.shortcuts import render, redirect
from django.conf import settings
class PatientCreateView(CreateView):
model = Pati... | 24.5625 | 45 | 0.778626 | 49 | 393 | 6.204082 | 0.530612 | 0.197368 | 0.125 | 0.164474 | 0.203947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157761 | 393 | 15 | 46 | 26.2 | 0.918429 | 0 | 0 | 0 | 0 | 0 | 0.058524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 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 |
5140a8c3c3c7eb6d4ca1c15df9b39e22730d0886 | 1,997 | py | Python | backend/uclapi/roombookings/migrations/0002_room.py | balping/uclapi | 57cb77a58a2f8fc5bb523b459fa074380f4d8dcc | [
"MIT"
] | null | null | null | backend/uclapi/roombookings/migrations/0002_room.py | balping/uclapi | 57cb77a58a2f8fc5bb523b459fa074380f4d8dcc | [
"MIT"
] | null | null | null | backend/uclapi/roombookings/migrations/0002_room.py | balping/uclapi | 57cb77a58a2f8fc5bb523b459fa074380f4d8dcc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-24 10:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('roombookings', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 46.44186 | 95 | 0.577867 | 215 | 1,997 | 5.265116 | 0.32093 | 0.135159 | 0.229682 | 0.275618 | 0.583922 | 0.583922 | 0.379859 | 0.379859 | 0.379859 | 0 | 0 | 0.033585 | 0.269404 | 1,997 | 42 | 96 | 47.547619 | 0.742289 | 0.034051 | 0 | 0 | 1 | 0 | 0.093977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.142857 | 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 |
5141574cedacd557e9194fadd7dcb01f7d57953f | 26,718 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/nt.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/-762174762/nt.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/-762174762/nt.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module nt
# from (built-in)
# by generator 1.147
"""
This module provides access to operating system functionality that is
standardized by the C Standard and the POSIX standard (a thinly
disguised Unix interface). Refer to the library manual and
corresponding Unix manual entries for more informatio... | 31.921147 | 1,086 | 0.639232 | 3,468 | 26,718 | 4.691465 | 0.202422 | 0.071112 | 0.109404 | 0.137677 | 0.484204 | 0.443208 | 0.375538 | 0.307437 | 0.2815 | 0.270928 | 0 | 0.025105 | 0.227749 | 26,718 | 836 | 1,087 | 31.95933 | 0.763437 | 0.158545 | 0 | 0.390244 | 0 | 0.015244 | 0.399826 | 0.242364 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0.003049 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
515551566c1642e2a6d682177f2308ac9b7a1cae | 21,842 | py | Python | tests/test_injector.py | hyperleex/dependencies | 188843f616670a90e5e4a4c48b2fb954a460c2ee | [
"BSD-2-Clause"
] | null | null | null | tests/test_injector.py | hyperleex/dependencies | 188843f616670a90e5e4a4c48b2fb954a460c2ee | [
"BSD-2-Clause"
] | null | null | null | tests/test_injector.py | hyperleex/dependencies | 188843f616670a90e5e4a4c48b2fb954a460c2ee | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from inspect import isclass
import pytest
from dependencies import Injector
from dependencies.exceptions import DependencyError
from helpers import CodeCollector
def test_lambda_dependency():
"""Inject lambda function."""
class Foo(object):
def __init__(self, add):
... | 20.31814 | 87 | 0.636297 | 2,687 | 21,842 | 4.994045 | 0.116859 | 0.025635 | 0.025188 | 0.032938 | 0.432372 | 0.34317 | 0.299873 | 0.260303 | 0.209256 | 0.177733 | 0 | 0.022597 | 0.254418 | 21,842 | 1,074 | 88 | 20.337058 | 0.801412 | 0.178509 | 0 | 0.513274 | 0 | 0 | 0.062618 | 0 | 0 | 0 | 0 | 0 | 0.090265 | 1 | 0.221239 | false | 0.053097 | 0.00885 | 0.030088 | 0.534513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5a92a2081749770cb0a0e3e96f0f27d928a2f11b | 128 | py | Python | redvault/__init__.py | ast0815/redvault | 3557c51c41e8e4229855d0c40871f6d4105d7148 | [
"MIT"
] | null | null | null | redvault/__init__.py | ast0815/redvault | 3557c51c41e8e4229855d0c40871f6d4105d7148 | [
"MIT"
] | null | null | null | redvault/__init__.py | ast0815/redvault | 3557c51c41e8e4229855d0c40871f6d4105d7148 | [
"MIT"
] | null | null | null | """Top-level package for Redvault."""
__author__ = """Lukas Koch"""
__email__ = 'lukas.koch@mailbox.org'
__version__ = '0.1.0'
| 21.333333 | 37 | 0.679688 | 17 | 128 | 4.411765 | 0.823529 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.117188 | 128 | 5 | 38 | 25.6 | 0.637168 | 0.242188 | 0 | 0 | 0 | 0 | 0.406593 | 0.241758 | 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 |
5aa000eff61d58eea2deb12802241b5a320bb4f8 | 343 | py | Python | leetcode/easy/Add_Binary.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | 6 | 2022-03-02T23:08:00.000Z | 2022-03-07T07:26:48.000Z | leetcode/easy/Add_Binary.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | null | null | null | leetcode/easy/Add_Binary.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | null | null | null | class Solution:
def addBinary(self, a: str, b: str) -> str:
def decimalToBinary(n):
return bin(n).replace("0b","")
def binaryToDecimal(n):
return int(n,2)
a = binaryToDecimal(a)
b = binaryToDecimal(b)
return decimalToBinary... | 21.4375 | 47 | 0.48105 | 35 | 343 | 4.714286 | 0.485714 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009852 | 0.408163 | 343 | 16 | 48 | 21.4375 | 0.802956 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5aaac78ce2ea39e495407e5659b998f59fbf12d1 | 108 | py | Python | notebooks/solutions/groupby_02.py | cpaniaguam/pandas-head-to-tail | c809b6ae5834057c51006ecc908266e6d5d05b15 | [
"CC-BY-4.0"
] | 88 | 2016-12-29T06:49:10.000Z | 2022-03-19T20:37:27.000Z | notebooks/solutions/groupby_02.py | paritosh666/pandas-head-to-tail | 891a72ea5a21f8e0c8f6a6d22c03a1de26a6f30b | [
"CC-BY-4.0"
] | 8 | 2018-06-17T21:47:27.000Z | 2018-07-11T22:31:17.000Z | notebooks/solutions/groupby_02.py | paritosh666/pandas-head-to-tail | 891a72ea5a21f8e0c8f6a6d22c03a1de26a6f30b | [
"CC-BY-4.0"
] | 76 | 2016-12-30T08:56:28.000Z | 2022-02-27T08:05:26.000Z | order = df.groupby("profile_name").review_overall.cumcount()
df.groupby(order).review_overall.mean().plot()
| 36 | 60 | 0.777778 | 15 | 108 | 5.4 | 0.666667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 108 | 2 | 61 | 54 | 0.778846 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5aae2999ca98c8843e6e06411b8be484b42abab0 | 840 | py | Python | src/code/data-structures/DoublyLinkedList/DoublyLinkedList.test.py | angshumanHalder/discord-bot | 5b3b6042c901a1563abeee48ee8f267aa5c79fe2 | [
"MIT"
] | null | null | null | src/code/data-structures/DoublyLinkedList/DoublyLinkedList.test.py | angshumanHalder/discord-bot | 5b3b6042c901a1563abeee48ee8f267aa5c79fe2 | [
"MIT"
] | null | null | null | src/code/data-structures/DoublyLinkedList/DoublyLinkedList.test.py | angshumanHalder/discord-bot | 5b3b6042c901a1563abeee48ee8f267aa5c79fe2 | [
"MIT"
] | null | null | null | from DoublyLinkedList import DoublyLinkedList
linkedList = DoublyLinkedList()
assert linkedList.push_beginning(1) is True
assert linkedList.push_beginning(2) is True
assert linkedList.push_end(3) is True
assert linkedList.push_end(4) is True
assert linkedList.push_end(5) is True
assert linkedList.push_at_index(80, 3) ... | 38.181818 | 47 | 0.766667 | 133 | 840 | 4.56391 | 0.210526 | 0.474465 | 0.177924 | 0.326194 | 0.502471 | 0.331137 | 0.187809 | 0.187809 | 0 | 0 | 0 | 0.064644 | 0.097619 | 840 | 21 | 48 | 40 | 0.736148 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.9 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
5ac732e5dfef1a47b8190ff6bb87d3ef8c4762c3 | 700 | py | Python | posts/migrations/0004_auto_20190430_1457.py | mhfd28/blog13 | 7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf | [
"MIT"
] | null | null | null | posts/migrations/0004_auto_20190430_1457.py | mhfd28/blog13 | 7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf | [
"MIT"
] | 10 | 2020-02-12T00:11:55.000Z | 2022-03-11T23:45:54.000Z | posts/migrations/0004_auto_20190430_1457.py | mhfd28/blog13 | 7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2019-04-30 14:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_subscription'),
]
operations = [
migrations.RenameField(
model_name='membership',
old_name='stripe_plan_id',
... | 24.137931 | 47 | 0.575714 | 68 | 700 | 5.647059 | 0.485294 | 0.164063 | 0.203125 | 0.234375 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039916 | 0.32 | 700 | 28 | 48 | 25 | 0.766807 | 0.064286 | 0 | 0.272727 | 1 | 0 | 0.222052 | 0.033691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
5ad53689dc3af5a79ee9c6762f5d0b6161971043 | 105 | py | Python | tests/gui_test.py | Faianca/Anime-Tv-shows-Scrapper | 70512656a64c7371aaa49148fa5c89be57820378 | [
"Apache-2.0"
] | null | null | null | tests/gui_test.py | Faianca/Anime-Tv-shows-Scrapper | 70512656a64c7371aaa49148fa5c89be57820378 | [
"Apache-2.0"
] | 9 | 2021-02-08T20:20:14.000Z | 2022-03-02T14:54:40.000Z | tests/gui_test.py | Faianca/Anime-Tv-shows-Scrapper | 70512656a64c7371aaa49148fa5c89be57820378 | [
"Apache-2.0"
] | null | null | null | import pyscreenshot as ImageGrab
# part of the screen
im=ImageGrab.grab(bbox=(10,10,500,500))
im.show()
| 17.5 | 39 | 0.752381 | 18 | 105 | 4.388889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0.114286 | 105 | 5 | 40 | 21 | 0.741935 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.