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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55bf7c0fd38644f15389a2050b31b7aaf77a1ab8 | 555 | py | Python | source/config.sample.py | Stegoo/ogame-caller | 29efcb36a503cae17110a52d3a4079a0a7103c80 | [
"MIT"
] | 1 | 2016-06-11T08:09:55.000Z | 2016-06-11T08:09:55.000Z | source/config.sample.py | Stegoo/ogame-caller | 29efcb36a503cae17110a52d3a4079a0a7103c80 | [
"MIT"
] | null | null | null | source/config.sample.py | Stegoo/ogame-caller | 29efcb36a503cae17110a52d3a4079a0a7103c80 | [
"MIT"
] | null | null | null | og_login = 'your_login'
og_password = 'your_password'
og_domain = 'fr'
og_universe = '10'
og_id_mother_planet = '1234567'
og_planets = {'340001', '340002', '340003'} #every planets except the target one
og_main_planet_coordonates = ['1', '300', '6']
og_metal_threshold = 1000000
og_large_cargo_to_send = '100'
mobile_num... | 37 | 88 | 0.758559 | 82 | 555 | 4.817073 | 0.719512 | 0.035443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105906 | 0.115315 | 555 | 14 | 89 | 39.642857 | 0.698574 | 0.063063 | 0 | 0 | 0 | 0 | 0.402698 | 0.11368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e946ffb60cdc297515beab1b9799f0b73dd33de5 | 187 | py | Python | project_name/settings/apps/system.py | thnee/django-template | d1e4f8dfe65c86f64c9a06c8cc195dbe6658320e | [
"MIT"
] | 1 | 2018-07-20T23:35:32.000Z | 2018-07-20T23:35:32.000Z | project_name/settings/apps/system.py | thnee/django-template | d1e4f8dfe65c86f64c9a06c8cc195dbe6658320e | [
"MIT"
] | null | null | null | project_name/settings/apps/system.py | thnee/django-template | d1e4f8dfe65c86f64c9a06c8cc195dbe6658320e | [
"MIT"
] | null | null | null |
from ..base import * # noqa
INSTALLED_APPS += [
'django.contrib.admin',
'apps.admin_site',
'apps.backoffice',
'apps.frontoffice',
]
ROOT_URLCONF = 'apps.system.urls'
| 14.384615 | 33 | 0.636364 | 21 | 187 | 5.52381 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203209 | 187 | 12 | 34 | 15.583333 | 0.778523 | 0.02139 | 0 | 0 | 0 | 0 | 0.455556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9486638fd8a10b8ffdbd75d04bc1f1765ab2d3d | 4,250 | py | Python | test/preprocess_tests/error_correct_intbcs_to_whitelist_test.py | YosefLab/SingleCellLineageTracing | d9133fc80c8314e7935fde037dd86111cac47447 | [
"MIT"
] | 52 | 2019-05-14T02:06:24.000Z | 2022-03-27T05:22:56.000Z | test/preprocess_tests/error_correct_intbcs_to_whitelist_test.py | sbradford2/Cassiopeia | 010072b307f7eadbf10dc4af8b2165e48f1736a7 | [
"MIT"
] | 88 | 2019-06-07T15:07:45.000Z | 2022-03-22T14:40:03.000Z | test/preprocess_tests/error_correct_intbcs_to_whitelist_test.py | sbradford2/Cassiopeia | 010072b307f7eadbf10dc4af8b2165e48f1736a7 | [
"MIT"
] | 17 | 2019-05-17T00:46:16.000Z | 2022-03-25T00:39:18.000Z | import os
import unittest
import numpy as np
import pandas as pd
import cassiopeia
class TestErrorCorrectIntBCstoWhitelist(unittest.TestCase):
def setUp(self):
dir_path = os.path.dirname(os.path.realpath(__file__))
test_files_path = os.path.join(dir_path, "test_files")
self.whitelist_fp ... | 29.72028 | 80 | 0.346118 | 344 | 4,250 | 4.090116 | 0.313953 | 0.014215 | 0.083156 | 0.022743 | 0.4371 | 0.4371 | 0.4371 | 0.4371 | 0.394456 | 0.394456 | 0 | 0.041988 | 0.512471 | 4,250 | 142 | 81 | 29.929577 | 0.637066 | 0 | 0 | 0.5 | 0 | 0 | 0.107529 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.023438 | false | 0 | 0.039063 | 0 | 0.070313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e959592adfd887c2afb9be4ecd90e478c6286dfd | 21,377 | py | Python | visualizer.py | margrietpalm/VisGrid3D-python | b89adba4821a90ed5a43c67a8b2d5e34b24a9681 | [
"MIT"
] | null | null | null | visualizer.py | margrietpalm/VisGrid3D-python | b89adba4821a90ed5a43c67a8b2d5e34b24a9681 | [
"MIT"
] | null | null | null | visualizer.py | margrietpalm/VisGrid3D-python | b89adba4821a90ed5a43c67a8b2d5e34b24a9681 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Visualizes data on a cubic lattice
Built specifically to visualize the VTK files created by Morpheus
"""
import os
import glob
import sys
import argparse
import numpy as np
import vtk
from vtk.util import numpy_support as VN
from matplotlib import colors
found_im2movie = True
try:
from ... | 42.163708 | 134 | 0.615708 | 2,747 | 21,377 | 4.688751 | 0.156534 | 0.020264 | 0.038276 | 0.011646 | 0.261335 | 0.201941 | 0.158385 | 0.146429 | 0.115761 | 0.086646 | 0 | 0.011609 | 0.270665 | 21,377 | 506 | 135 | 42.247036 | 0.814508 | 0.03471 | 0 | 0.13941 | 0 | 0 | 0.096607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02681 | null | null | 0.02681 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e95c172452853effc34799873407c0124471e6e2 | 515 | py | Python | envpy/error.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | 1 | 2020-07-22T12:19:26.000Z | 2020-07-22T12:19:26.000Z | envpy/error.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | envpy/error.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | class BaseError(Exception): ...
class UnknownError(BaseError): ...
class InvalidIDError(BaseError): ...
class NotFoundIDError(BaseError): ...
class NotFoundEnviromentVariableError(BaseError):
def __init__(self, enviromentVariable):
self.enviromentVariable : str = enviromentVariable
self.message... | 28.611111 | 85 | 0.712621 | 46 | 515 | 7.717391 | 0.478261 | 0.11831 | 0.146479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170874 | 515 | 18 | 86 | 28.611111 | 0.831382 | 0 | 0 | 0 | 0 | 0 | 0.197674 | 0.04845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e95c5f404c1c6dbdfcb0b6afd297cb33e7d4fffb | 313 | py | Python | problems/sqrtx/solution-2.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 2 | 2021-03-25T01:58:55.000Z | 2021-08-06T12:47:13.000Z | problems/sqrtx/solution-2.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 3 | 2019-08-27T13:25:42.000Z | 2021-08-28T17:49:34.000Z | problems/sqrtx/solution-2.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 1 | 2021-08-14T08:49:39.000Z | 2021-08-14T08:49:39.000Z | class Solution:
def mySqrt(self, x: int) -> int:
l = 0
# x = 1 特例
r = x // 2 + 1
while l < r:
mid = l + (r - l + 1) // 2
square = mid * mid
if square > x:
r = mid - 1
else:
l = mid
return l | 24.076923 | 38 | 0.316294 | 40 | 313 | 2.475 | 0.475 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05303 | 0.578275 | 313 | 13 | 39 | 24.076923 | 0.69697 | 0.025559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e95dd4bfe3c13ddb818f345afd78c9b4ceefd523 | 292 | py | Python | mtp_api/apps/security/migrations/0011_delete_securitydataupdate.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 5 | 2016-01-05T12:21:35.000Z | 2020-10-28T17:06:02.000Z | mtp_api/apps/security/migrations/0011_delete_securitydataupdate.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 209 | 2015-06-12T09:39:41.000Z | 2022-03-21T16:01:19.000Z | mtp_api/apps/security/migrations/0011_delete_securitydataupdate.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 1 | 2021-04-11T06:19:23.000Z | 2021-04-11T06:19:23.000Z | # Generated by Django 1.10.5 on 2017-03-01 15:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('security', '0010_prisoner_profile_uniqueness'),
]
operations = [
migrations.DeleteModel(name='SecurityDataUpdate'),
]
| 24.333333 | 58 | 0.688356 | 32 | 292 | 6.1875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085837 | 0.202055 | 292 | 11 | 59 | 26.545455 | 0.763949 | 0.157534 | 0 | 0 | 1 | 0 | 0.237705 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e96562fe15b6a77fe1b86fa8a8dc888ca6804c4f | 710 | py | Python | leagueinputs.py | pritish-devurkar/Hackathon2021_FFL | 91ac1ee9f3fbdcff2bb61d0e72b7173cc43235c9 | [
"MIT"
] | null | null | null | leagueinputs.py | pritish-devurkar/Hackathon2021_FFL | 91ac1ee9f3fbdcff2bb61d0e72b7173cc43235c9 | [
"MIT"
] | null | null | null | leagueinputs.py | pritish-devurkar/Hackathon2021_FFL | 91ac1ee9f3fbdcff2bb61d0e72b7173cc43235c9 | [
"MIT"
] | null | null | null | from wtforms import Form, IntegerField, StringField, validators, SelectField, FieldList, FormField
class InputForm(Form):
league_id = IntegerField(
label='League ID',
validators=[validators.InputRequired()]
)
year = IntegerField(
label='Year', default=2021,
validators=[vali... | 28.4 | 98 | 0.664789 | 62 | 710 | 7.548387 | 0.451613 | 0.17094 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.21831 | 710 | 25 | 99 | 28.4 | 0.832432 | 0 | 0 | 0.181818 | 0 | 0 | 0.049226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9673c747cef26760262baf5975169759bb3f20a | 5,216 | py | Python | geomstats/geometry/stratified/point_set.py | shubhamtalbar96/geomstats | 9c17ccede7e3f0fddf31487c59227c677216a2b9 | [
"MIT"
] | null | null | null | geomstats/geometry/stratified/point_set.py | shubhamtalbar96/geomstats | 9c17ccede7e3f0fddf31487c59227c677216a2b9 | [
"MIT"
] | null | null | null | geomstats/geometry/stratified/point_set.py | shubhamtalbar96/geomstats | 9c17ccede7e3f0fddf31487c59227c677216a2b9 | [
"MIT"
] | null | null | null | """Class for Stratified Spaces.
Lead authors: Anna Calissano & Jonas Lueg
"""
import functools
import itertools
from abc import ABC, abstractmethod
def broadcast_lists(list_a, list_b):
"""Broadcast two lists.
Similar behavior as ``gs.broadcast_arrays``, but for lists.
"""
n_a = len(list_a)
n_b ... | 24.720379 | 78 | 0.562117 | 582 | 5,216 | 4.898625 | 0.266323 | 0.038583 | 0.027359 | 0.01403 | 0.246229 | 0.207646 | 0.202736 | 0.202736 | 0.202736 | 0.202736 | 0 | 0.001686 | 0.317868 | 5,216 | 210 | 79 | 24.838095 | 0.799607 | 0.515913 | 0 | 0.140351 | 0 | 0 | 0.02012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.052632 | 0 | 0.491228 | 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 | 0 | 0 | 0 | 0 | 1 |
e96929282955bec37791a3b9f1660b805c17aa97 | 392 | py | Python | CodeWars/arr_diff.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-27T06:12:55.000Z | 2021-02-27T06:12:55.000Z | CodeWars/arr_diff.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-02T08:52:17.000Z | 2021-02-03T08:19:12.000Z | CodeWars/arr_diff.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | null | null | null | def arr_diff(arr1, arr2):
if len(arr2) == 0:
return arr1
result = list()
for i in range(0, len(arr1)):
flag = False
for j in range(0, len(arr2)):
if arr1[i] == arr2[j]:
flag = True
if not flag:
result.append(arr1[i])
return r... | 18.666667 | 37 | 0.482143 | 58 | 392 | 3.224138 | 0.431034 | 0.074866 | 0.117647 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090535 | 0.380102 | 392 | 21 | 38 | 18.666667 | 0.679012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 1 |
e9706c18a10d53c2ad04aa6354aa63d84e7fad06 | 259 | py | Python | enumeracion.py | DannielF/Python | e65fe95885efb15991ad1e9493a1df15a147e602 | [
"MIT"
] | 1 | 2020-07-24T23:49:35.000Z | 2020-07-24T23:49:35.000Z | enumeracion.py | DannielF/Python | e65fe95885efb15991ad1e9493a1df15a147e602 | [
"MIT"
] | null | null | null | enumeracion.py | DannielF/Python | e65fe95885efb15991ad1e9493a1df15a147e602 | [
"MIT"
] | null | null | null | objetive = int(input('Choose a whole number: '))
answer = 0
while answer**2 < objetive:
answer += 1
if answer**2 == objetive:
print(f'Square root of {objetive} is {answer}')
else:
print(f'{objetive} it doesn´t have square root exact') | 23.545455 | 58 | 0.633205 | 39 | 259 | 4.230769 | 0.666667 | 0.084848 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.227799 | 259 | 11 | 58 | 23.545455 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e973b86386326e6e0b2d7ac6f8bcbb6a0c213c15 | 505 | py | Python | pe8.py | ChrisCalderon/project-euler | 96055343fc3ef7653184708fe350018ee751ea17 | [
"MIT"
] | 1 | 2015-12-16T05:13:30.000Z | 2015-12-16T05:13:30.000Z | pe8.py | ChrisCalderon/project-euler | 96055343fc3ef7653184708fe350018ee751ea17 | [
"MIT"
] | null | null | null | pe8.py | ChrisCalderon/project-euler | 96055343fc3ef7653184708fe350018ee751ea17 | [
"MIT"
] | null | null | null | import sys
def yield_next_product(ints, n):
# ints is a string
while len(ints) > n:
next_sequence = ints[:n]
zero = next_sequence.find('0')
if zero > -1:
ints = ints[zero + 1:]
else:
yield reduce(lambda a, b: a*int(b), next_sequence, 1)
ints =... | 24.047619 | 65 | 0.538614 | 73 | 505 | 3.520548 | 0.479452 | 0.077821 | 0.124514 | 0.155642 | 0.163424 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019774 | 0.29901 | 505 | 20 | 66 | 25.25 | 0.706215 | 0.031683 | 0 | 0 | 0 | 0 | 0.036961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9750e072441737d3230cafcbaa533a5bcde7d14 | 1,789 | py | Python | services/gevent-server.py | kevinmcguinness/axes-research | 2d7bffcec128d30ae538b5979148aa90b91df393 | [
"Apache-2.0"
] | 1 | 2015-03-31T11:58:35.000Z | 2015-03-31T11:58:35.000Z | services/gevent-server.py | kevinmcguinness/axes-research | 2d7bffcec128d30ae538b5979148aa90b91df393 | [
"Apache-2.0"
] | null | null | null | services/gevent-server.py | kevinmcguinness/axes-research | 2d7bffcec128d30ae538b5979148aa90b91df393 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Django gevent server for axes research
"""
import os, sys
def setup_paths():
import site
old_sys_path = list(sys.path)
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
py_version = '%d.%d' % (sys.version_info[0], sys.version_info[1])
# Setup... | 26.308824 | 81 | 0.665735 | 247 | 1,789 | 4.595142 | 0.388664 | 0.067841 | 0.026432 | 0.040529 | 0.086344 | 0.086344 | 0.086344 | 0 | 0 | 0 | 0 | 0.004905 | 0.202348 | 1,789 | 67 | 82 | 26.701493 | 0.79047 | 0.045277 | 0 | 0 | 0 | 0 | 0.140436 | 0.077482 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.139535 | null | null | 0.046512 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98ace4a88ab8fd2ddca62207b8c489b9535a7ae | 152 | py | Python | beginner_contest/068/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/068/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/068/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
n = int(input())
exp = 0
while 2 ** (exp + 1) <= n:
exp += 1
print(2 ** exp)
| 13.818182 | 30 | 0.592105 | 25 | 152 | 3.6 | 0.64 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.223684 | 152 | 10 | 31 | 15.2 | 0.694915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98b353ea298a023faefd69a90a0ab24aab21f0d | 390 | py | Python | src/server/worker/worker_manager/shared/lock_application.py | dpaola2/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 15 | 2015-02-14T02:39:04.000Z | 2021-12-13T14:17:15.000Z | src/server/worker/worker_manager/shared/lock_application.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | null | null | null | src/server/worker/worker_manager/shared/lock_application.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 11 | 2015-08-07T11:47:02.000Z | 2021-04-29T08:08:24.000Z | import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'orm.settings'
from orm.models import *
def lock_application(func):
def lock_and_call(application_name, *args, **kwargs):
lock = LocalApplicationLocks.lock(application_name)
try:
func(application_name, *args, **kwargs)
finally:
... | 30 | 59 | 0.689744 | 44 | 390 | 5.886364 | 0.522727 | 0.173745 | 0.084942 | 0.19305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212821 | 390 | 12 | 60 | 32.5 | 0.843648 | 0 | 0 | 0 | 0 | 0 | 0.087179 | 0.05641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 0 | 1 |
e98c40add42dee7b0a69a3ccd71ecca2d9455584 | 2,097 | py | Python | sugar/tests/cors.py | acdha/django-sugar | cd41b8160e22856818cb1ce1df6fe83f9882ac36 | [
"BSD-3-Clause"
] | 2 | 2015-12-01T01:14:32.000Z | 2015-12-01T13:51:54.000Z | sugar/tests/cors.py | acdha/django-sugar | cd41b8160e22856818cb1ce1df6fe83f9882ac36 | [
"BSD-3-Clause"
] | null | null | null | sugar/tests/cors.py | acdha/django-sugar | cd41b8160e22856818cb1ce1df6fe83f9882ac36 | [
"BSD-3-Clause"
] | 2 | 2015-06-09T09:10:08.000Z | 2021-03-17T14:08:24.000Z | from django.conf import settings
from django.test.testcases import TestCase
from django.http import HttpRequest, HttpResponse
from sugar.middleware.cors import CORSMiddleware
class CORSTests(TestCase):
def test_middleware(self):
cors = CORSMiddleware()
request = HttpRequest()
request.pat... | 33.285714 | 101 | 0.628994 | 208 | 2,097 | 6.283654 | 0.288462 | 0.079572 | 0.110176 | 0.146901 | 0.719204 | 0.719204 | 0.466718 | 0.428462 | 0.428462 | 0.428462 | 0 | 0 | 0.233667 | 2,097 | 62 | 102 | 33.822581 | 0.813317 | 0.063424 | 0 | 0.365854 | 0 | 0 | 0.27958 | 0.103053 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.073171 | false | 0 | 0.097561 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e99231cb17e2047d42c1604e4518bd0d36aafa88 | 428 | py | Python | excAnalyser/countReps.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | excAnalyser/countReps.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | excAnalyser/countReps.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | def countReps(phase_list, total_phases):
mx=max(phase_list)
if len(phase_list)<total_phases:
return phase_list
if mx<total_phases//2:
return phase_list
f_occ=phase_list.index(mx)
phase_list.reverse()
l_occ=len(phase_list)-phase_list.index(mx)-1
phase_list.reverse()
if (0 ... | 30.571429 | 63 | 0.665888 | 69 | 428 | 3.84058 | 0.318841 | 0.441509 | 0.169811 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.224299 | 428 | 14 | 64 | 30.571429 | 0.783133 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9951bae33e027d95e8f1195a647e138a7f86979 | 606 | py | Python | setup.py | nuodb/nuodb-aws-quickstart | 0f98dc6e0e0a9645fd453b9490b02faa959e9a9b | [
"BSD-3-Clause"
] | 2 | 2015-09-29T19:18:16.000Z | 2021-01-19T20:57:49.000Z | setup.py | nuodb/nuodb-aws-quickstart | 0f98dc6e0e0a9645fd453b9490b02faa959e9a9b | [
"BSD-3-Clause"
] | null | null | null | setup.py | nuodb/nuodb-aws-quickstart | 0f98dc6e0e0a9645fd453b9490b02faa959e9a9b | [
"BSD-3-Clause"
] | 1 | 2017-05-17T10:06:57.000Z | 2017-05-17T10:06:57.000Z | from setuptools import setup
import sys
setup(name='nuodbawsquickstart',
version='1.1.0',
description='Script to deploy a multi-region and multi-instance AWS cluster',
url='http://github.com/nuodb/nuodb-aws-quickstart',
author='NuoDB Inc.',
author_email='info@nuodb.com',
#data_files... | 37.875 | 95 | 0.683168 | 70 | 606 | 5.828571 | 0.728571 | 0.039216 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005941 | 0.166667 | 606 | 15 | 96 | 40.4 | 0.80198 | 0.145215 | 0 | 0 | 0 | 0 | 0.468085 | 0.052224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e9ac4a42d64af44467c2d4e3bfe8d13f596afb52 | 1,589 | py | Python | K-Nearest-Neighbors.py | nightheronry/Basic-ML-Algorithm-Reimplementations | 02f24830f7f60d5b4457a4ce167f685ea31326c3 | [
"MIT"
] | null | null | null | K-Nearest-Neighbors.py | nightheronry/Basic-ML-Algorithm-Reimplementations | 02f24830f7f60d5b4457a4ce167f685ea31326c3 | [
"MIT"
] | null | null | null | K-Nearest-Neighbors.py | nightheronry/Basic-ML-Algorithm-Reimplementations | 02f24830f7f60d5b4457a4ce167f685ea31326c3 | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
import math
from operator import itemgetter
import sys
#This program is just a rough reimplementation of k nearest neighbors in Python. It's not particularly
#optimized in any way but it does give a sense of how the the algorithm chooses the closest
#neighbor... | 30.557692 | 103 | 0.70988 | 238 | 1,589 | 4.722689 | 0.453782 | 0.010676 | 0.008007 | 0.007117 | 0.021352 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045732 | 0.174323 | 1,589 | 51 | 104 | 31.156863 | 0.810976 | 0.263688 | 0 | 0 | 0 | 0 | 0.041554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.088235 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b53492d99bc905d1cb8ae761e1398cd131aad4 | 887 | py | Python | lintcode/python/Q0582_Word_Break_II.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | 2 | 2019-03-03T04:03:49.000Z | 2019-06-26T02:43:49.000Z | lintcode/python/Q0582_Word_Break_II.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | null | null | null | lintcode/python/Q0582_Word_Break_II.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | null | null | null | class Solution:
"""
@param: s: A string
@param: wordDict: A set of words.
@return: All possible sentences.
"""
def wordBreak(self, s, wordDict):
# write your code here
return self._recursiveWordBreak(s, wordDict, {})
def _recursiveWordBreak(self, s, wordDict, memo):
... | 30.586207 | 89 | 0.493799 | 93 | 887 | 4.677419 | 0.397849 | 0.062069 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.411499 | 887 | 29 | 90 | 30.586207 | 0.833333 | 0.121759 | 0 | 0 | 0 | 0 | 0.001323 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.095238 | false | 0 | 0 | 0.047619 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e9c2a32fb2db897a045af6973c766fad8b2fc2a4 | 39,917 | py | Python | tests/conftest.py | LiamOSullivan/datacube-ows | 6ff10853081b08d8de8485bd3c9c976cdae03390 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | LiamOSullivan/datacube-ows | 6ff10853081b08d8de8485bd3c9c976cdae03390 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | LiamOSullivan/datacube-ows | 6ff10853081b08d8de8485bd3c9c976cdae03390 | [
"Apache-2.0"
] | null | null | null | # This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import datetime
import time
from unittest.mock import MagicMock
import numpy as np
import pytest
import reques... | 33.742181 | 103 | 0.345442 | 3,084 | 39,917 | 4.321012 | 0.174773 | 0.012607 | 0.03722 | 0.016209 | 0.516059 | 0.465406 | 0.411151 | 0.384662 | 0.341888 | 0.294837 | 0 | 0.060897 | 0.514568 | 39,917 | 1,183 | 104 | 33.742181 | 0.626826 | 0.027432 | 0 | 0.42086 | 0 | 0.005489 | 0.201861 | 0.018637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032937 | false | 0.004575 | 0.012809 | 0.010979 | 0.071363 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9d0a49a8d959130ca202b16c5c913aff69e4200 | 4,341 | py | Python | services/coordinator/src/configurator/targets/spilo_postgres_configurator.py | asmv/kubernetes-tuning-framework | 182f5b6882353c3af3b0d72bc4c6269914a37771 | [
"MIT"
] | null | null | null | services/coordinator/src/configurator/targets/spilo_postgres_configurator.py | asmv/kubernetes-tuning-framework | 182f5b6882353c3af3b0d72bc4c6269914a37771 | [
"MIT"
] | null | null | null | services/coordinator/src/configurator/targets/spilo_postgres_configurator.py | asmv/kubernetes-tuning-framework | 182f5b6882353c3af3b0d72bc4c6269914a37771 | [
"MIT"
] | null | null | null | from typing import List, Dict
from . import _target_configurator_base
from .. import configurator_enums
import template
import optimize
import launch
from os import path
import yaml
import warnings
import time
import re
class SpiloPostgresConfigurator(_target_configurator_base.TargetConfigurator):
label = ... | 52.939024 | 150 | 0.663672 | 534 | 4,341 | 5.192884 | 0.340824 | 0.051569 | 0.023801 | 0.025965 | 0.286332 | 0.230797 | 0.218897 | 0.218897 | 0.218897 | 0.200505 | 0 | 0.003526 | 0.216079 | 4,341 | 81 | 151 | 53.592593 | 0.811343 | 0.092375 | 0 | 0.121212 | 0 | 0 | 0.163488 | 0.018052 | 0 | 0 | 0 | 0.012346 | 0.015152 | 1 | 0.060606 | false | 0 | 0.166667 | 0 | 0.318182 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e9d76d6ab60420c341b3e1fb9dced6d8a061a9f0 | 7,264 | py | Python | tests/unit/resources/test_fcs_file_parse_args.py | primitybio/cellengine-python-toolk | 1f9dd168f1f27e2beba69f02e340371190857b33 | [
"MIT"
] | 4 | 2021-01-12T17:03:37.000Z | 2021-12-16T13:23:57.000Z | tests/unit/resources/test_fcs_file_parse_args.py | primitybio/cellengine-python-toolk | 1f9dd168f1f27e2beba69f02e340371190857b33 | [
"MIT"
] | 61 | 2021-01-11T05:27:16.000Z | 2022-03-08T01:50:09.000Z | tests/unit/resources/test_fcs_file_parse_args.py | primitybio/cellengine-python-toolkit | 1f9dd168f1f27e2beba69f02e340371190857b33 | [
"MIT"
] | null | null | null | import json
import pytest
import responses
from cellengine.utils.generate_id import generate_id
from cellengine.resources.fcs_file import FcsFile
EXP_ID = "5d38a6f79fae87499999a74b"
FCSFILE_ID = "5d64abe2ca9df61349ed8e7c"
@responses.activate
def test_should_get_fcs_file(ENDPOINT_BASE, client, fcs_files):
file_i... | 27.938462 | 87 | 0.636839 | 906 | 7,264 | 4.824503 | 0.14128 | 0.05445 | 0.062457 | 0.07138 | 0.734843 | 0.688172 | 0.648593 | 0.612674 | 0.602837 | 0.561428 | 0 | 0.041166 | 0.244218 | 7,264 | 259 | 88 | 28.046332 | 0.755009 | 0.0413 | 0 | 0.548673 | 1 | 0 | 0.167388 | 0.096165 | 0 | 0 | 0 | 0 | 0.053097 | 1 | 0.048673 | false | 0 | 0.022124 | 0 | 0.070796 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e9deff2a1fa1b028b4b10693cccd2459ce65fd01 | 1,243 | py | Python | examples/ionsat/ionsat_mean_power.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 3 | 2020-05-26T06:32:47.000Z | 2020-10-04T03:44:12.000Z | examples/ionsat/ionsat_mean_power.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 1 | 2020-05-25T13:11:00.000Z | 2020-05-25T13:11:00.000Z | examples/ionsat/ionsat_mean_power.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 2 | 2020-05-26T06:33:09.000Z | 2021-11-03T15:44:00.000Z | import space_mission_design
from space_mission_design.celestlab import celestlab_wrapper
from space_mission_design.visualisation import ploting_map
import numpy as np
import matplotlib.pyplot as plt
plt.style.use("presentation")
from astropy import units as u
from poliastro.bodies import Earth, Mars, Sun
from polias... | 35.514286 | 133 | 0.768302 | 177 | 1,243 | 5.19209 | 0.542373 | 0.052231 | 0.078346 | 0.071817 | 0.060936 | 0.060936 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.126307 | 1,243 | 34 | 134 | 36.558824 | 0.824125 | 0.029767 | 0 | 0 | 0 | 0.043478 | 0.211794 | 0.108804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.478261 | 0 | 0.478261 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
756380da37afea67a092507dd7a6d973238b8f14 | 15,483 | py | Python | build/lib/musicazoo/nlp/__main__.py | ixalis/musicpi | 503b9d464f17c91ba3c5cf8c3542e004615a8e9c | [
"MIT"
] | null | null | null | build/lib/musicazoo/nlp/__main__.py | ixalis/musicpi | 503b9d464f17c91ba3c5cf8c3542e004615a8e9c | [
"MIT"
] | null | null | null | build/lib/musicazoo/nlp/__main__.py | ixalis/musicpi | 503b9d464f17c91ba3c5cf8c3542e004615a8e9c | [
"MIT"
] | null | null | null | import json
import os
import random
import re
import signal
import socket
import subprocess
import tornado.httpclient
import traceback
import urllib
import urllib2
import shmooze.lib.packet as packet
import shmooze.lib.service as service
import shmooze.settings as settings
import urllib2
from bs4 import BeautifulSoup... | 35.430206 | 381 | 0.57702 | 1,893 | 15,483 | 4.60486 | 0.209192 | 0.04474 | 0.059883 | 0.029253 | 0.282322 | 0.257543 | 0.239417 | 0.205575 | 0.188138 | 0.178502 | 0 | 0.00839 | 0.268682 | 15,483 | 436 | 382 | 35.511468 | 0.761459 | 0.080992 | 0 | 0.216138 | 0 | 0.005764 | 0.218362 | 0.029242 | 0 | 0 | 0 | 0.002294 | 0.017291 | 0 | null | null | 0.008646 | 0.048991 | null | null | 0.020173 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7574118d2b67cc4104ea15dc7fbf17151d449cea | 1,785 | py | Python | athanor_entity/entities/aspects.py | volundmush/athanor_entity | 968361bb8875dfef198ce8b2c486ba2fb1665444 | [
"BSD-3-Clause"
] | null | null | null | athanor_entity/entities/aspects.py | volundmush/athanor_entity | 968361bb8875dfef198ce8b2c486ba2fb1665444 | [
"BSD-3-Clause"
] | null | null | null | athanor_entity/entities/aspects.py | volundmush/athanor_entity | 968361bb8875dfef198ce8b2c486ba2fb1665444 | [
"BSD-3-Clause"
] | null | null | null | """
The Aspect system is SUPPOSED to handle things like Character Classes, Final Fantasy Jobs, Professions, etc.
Also Species/Races.
We'll see how well that works out.
"""
class Aspect(object):
name = "Unknown Aspect"
def __init__(self, handler, slot, in_data=None):
self.persistent = handler.owner.p... | 30.775862 | 108 | 0.609524 | 227 | 1,785 | 4.718062 | 0.396476 | 0.028011 | 0.020542 | 0.037348 | 0.336134 | 0.304388 | 0.304388 | 0.244631 | 0.179272 | 0.179272 | 0 | 0 | 0.318207 | 1,785 | 57 | 109 | 31.315789 | 0.880033 | 0.518768 | 0 | 0.111111 | 0 | 0 | 0.029895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.055556 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
757b179533ec01b1159594be3ac3e79786cca948 | 4,343 | py | Python | spot-ingest/common/utils.py | maduhu/Apache-Spot-Incubator | 208413c237bc54cf71792bf98f5ef2eef62b19f0 | [
"Apache-2.0"
] | 6 | 2019-03-04T13:04:35.000Z | 2021-08-19T05:30:31.000Z | spot-ingest/common/utils.py | maduhu/Apache-Spot-Incubator | 208413c237bc54cf71792bf98f5ef2eef62b19f0 | [
"Apache-2.0"
] | null | null | null | spot-ingest/common/utils.py | maduhu/Apache-Spot-Incubator | 208413c237bc54cf71792bf98f5ef2eef62b19f0 | [
"Apache-2.0"
] | 6 | 2019-04-04T11:20:37.000Z | 2022-02-10T13:47:17.000Z | #!/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Licens... | 34.19685 | 118 | 0.704352 | 580 | 4,343 | 5.127586 | 0.336207 | 0.03766 | 0.01883 | 0.025555 | 0.213181 | 0.195024 | 0.181574 | 0.160726 | 0.135171 | 0.135171 | 0 | 0.005747 | 0.198711 | 4,343 | 126 | 119 | 34.468254 | 0.848851 | 0.217822 | 0 | 0.272727 | 0 | 0 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
757cb18c24d7258523a126cfa592ba68d5b328aa | 1,711 | py | Python | temperature.py | pso-code/shiny-domotic | 6c1e297f872201a45c6076099f9a9c21a81a8c65 | [
"MIT"
] | null | null | null | temperature.py | pso-code/shiny-domotic | 6c1e297f872201a45c6076099f9a9c21a81a8c65 | [
"MIT"
] | null | null | null | temperature.py | pso-code/shiny-domotic | 6c1e297f872201a45c6076099f9a9c21a81a8c65 | [
"MIT"
] | null | null | null | import glob
import time
import datetime
def read_temperature_file (location) :
# Opens the file containing the temperature
temperature_file = open(location)
# Reading the file...
content = temperature_file.read()
# Closing file after reading
temperature_file.close()
return content
def ext... | 31.109091 | 104 | 0.682642 | 227 | 1,711 | 5.004405 | 0.405286 | 0.066021 | 0.033451 | 0.051056 | 0.065141 | 0.065141 | 0.065141 | 0.065141 | 0.065141 | 0.065141 | 0 | 0.013699 | 0.189363 | 1,711 | 54 | 105 | 31.685185 | 0.805335 | 0.333723 | 0 | 0 | 0 | 0 | 0.117333 | 0.028444 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
757d01ba738eed43f857f2e4b13557be14a2c031 | 419 | py | Python | django_socketio_chat/utils.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | 6 | 2016-10-29T13:31:53.000Z | 2021-04-21T04:42:47.000Z | django_socketio_chat/utils.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | null | null | null | django_socketio_chat/utils.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | 7 | 2015-04-09T22:34:09.000Z | 2022-03-17T20:06:14.000Z | from rest_framework.renderers import JSONRenderer
from django.utils import simplejson
def prepare_for_emit(obj):
"""
Prepare the object for emit() by Tornadio2's (too simple) JSON renderer
- render to JSON using Django REST Framework 2's JSON renderer
- convert back to _simple_ Python object using Dja... | 27.933333 | 75 | 0.73747 | 57 | 419 | 5.333333 | 0.561404 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.193317 | 419 | 14 | 76 | 29.928571 | 0.893491 | 0.479714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
757da203cb3a8d3eb846c533982873f0ac04a7f6 | 1,050 | py | Python | coding-challenges/array-problems/search-insert-position/solution.py | mcqueenjordan/learning_sandbox | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | 1 | 2018-05-12T04:52:21.000Z | 2018-05-12T04:52:21.000Z | coding-challenges/array-problems/search-insert-position/solution.py | mcqueenjordan/learning | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | 1 | 2016-06-03T00:42:17.000Z | 2016-06-07T01:55:33.000Z | coding-challenges/array-problems/search-insert-position/solution.py | mcqueenjordan/learning_sandbox | ffe739ba3ad7b62938daaa271e9f738c305f4499 | [
"MIT"
] | null | null | null | class Solution:
def searchInsert(self, nums, target):
"""
Given a sorted array and a target value, return the index if the target
is found. If not, return the index where it would be if it were
inserted in order. You may assume no duplicates in the array.
"""
return b... | 30.882353 | 79 | 0.588571 | 143 | 1,050 | 4.293706 | 0.335664 | 0.07329 | 0.148208 | 0.143322 | 0.381107 | 0.2443 | 0.159609 | 0.159609 | 0.159609 | 0 | 0 | 0.008276 | 0.309524 | 1,050 | 33 | 80 | 31.818182 | 0.838621 | 0.187619 | 0 | 0.086957 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0 | 0.043478 | 0.565217 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
757e4691925e560e4aaa014d4efc5df8038d23de | 683 | py | Python | cwProject/cwApp/migrations/0003_car.py | cs-fullstack-2019-spring/django-models3-cw-autumn-ragland | dae982a6f778d49bbf05fd8be31c0dac57d9a918 | [
"Apache-2.0"
] | null | null | null | cwProject/cwApp/migrations/0003_car.py | cs-fullstack-2019-spring/django-models3-cw-autumn-ragland | dae982a6f778d49bbf05fd8be31c0dac57d9a918 | [
"Apache-2.0"
] | null | null | null | cwProject/cwApp/migrations/0003_car.py | cs-fullstack-2019-spring/django-models3-cw-autumn-ragland | dae982a6f778d49bbf05fd8be31c0dac57d9a918 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2019-02-21 17:52
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cwApp', '0002_auto_20190221_1735'),
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
... | 28.458333 | 114 | 0.581259 | 71 | 683 | 5.478873 | 0.71831 | 0.077121 | 0.113111 | 0.128535 | 0.174807 | 0.174807 | 0 | 0 | 0 | 0 | 0 | 0.075051 | 0.278184 | 683 | 23 | 115 | 29.695652 | 0.713996 | 0.065886 | 0 | 0 | 1 | 0 | 0.075472 | 0.036164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
758b577aa1cd9bf7e2bac0c75124ed88af04fdf8 | 701 | py | Python | Crypto-Nexus/ChatCommon.py | idnrfc/Crypto-Nexus | b08f925d32e0c2a65992b43f6c5226206aa5a33b | [
"BSD-2-Clause"
] | 1 | 2016-04-09T00:54:32.000Z | 2016-04-09T00:54:32.000Z | Crypto-Nexus/ChatCommon.py | idnrfc/Crypto-Nexus | b08f925d32e0c2a65992b43f6c5226206aa5a33b | [
"BSD-2-Clause"
] | null | null | null | Crypto-Nexus/ChatCommon.py | idnrfc/Crypto-Nexus | b08f925d32e0c2a65992b43f6c5226206aa5a33b | [
"BSD-2-Clause"
] | null | null | null | """
개발환경 : PyQt5 x64, Python 3.4.3 x64, Windows 8.1 x64
파일 : ChatCommon.py
내용 : 그냥 공통적이고 주로 쓰이는 변수만 정리
"""
class ChatCommon:
# 타입 지정을 위한 변수... 그냥 자주 쓰는거
TYPE_OF_CAESAR = 0
TYPE_OF_TRANSPOSITION = 1
TYPE_OF_AFFINE = 2
# 프로그램에서 지정한 형식의 메세지가 아닌 경우
TYPE_OF_WRONG_MESSAGE = 0
# 기타 변수들, 정규식, 시저... | 26.961538 | 120 | 0.620542 | 103 | 701 | 4.038835 | 0.757282 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.212554 | 701 | 25 | 121 | 28.04 | 0.695652 | 0.25107 | 0 | 0 | 0 | 0.076923 | 0.182524 | 0.16699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
758c2e4d593fb0a01cb8f12bb2d28d98e3eff2ab | 1,570 | py | Python | example_004_oop_decorator_pattern.py | s-c-23/Elements-of-Software-Design | 4a29b6e864b792f7dc3bafd25b13e9abd8d79798 | [
"MIT"
] | 3 | 2021-12-08T00:55:56.000Z | 2022-03-01T20:14:56.000Z | example_004_oop_decorator_pattern.py | mhmdaliabd/Elements-of-Software-Design | 2c2ee2c80b64e251fbaaa9ef9a5ddf6848d232d1 | [
"MIT"
] | null | null | null | example_004_oop_decorator_pattern.py | mhmdaliabd/Elements-of-Software-Design | 2c2ee2c80b64e251fbaaa9ef9a5ddf6848d232d1 | [
"MIT"
] | 19 | 2021-08-31T20:41:59.000Z | 2022-03-31T22:46:22.000Z | """The Decorator pattern is used to dynamically add a new features/functionalities
to an object without changing its implementation. It differs from inheritance because
the new functionalities are attached to that particular object on-demand,
not to the entire subclass."""
class HashTag:
"""Represents a hash tag t... | 26.166667 | 99 | 0.652866 | 201 | 1,570 | 4.865672 | 0.412935 | 0.067485 | 0.033742 | 0.03272 | 0.177914 | 0.141104 | 0.141104 | 0.141104 | 0.141104 | 0.141104 | 0 | 0 | 0.225478 | 1,570 | 60 | 100 | 26.166667 | 0.804276 | 0.389172 | 0 | 0.346154 | 0 | 0 | 0.112798 | 0.067245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.076923 | 0.5 | 0.115385 | 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 | 0 | 0 | 0 | 0 | 1 |
758c8947753baee4a23fd1c4bac4b97e344e8778 | 388 | py | Python | tests/core/specifications/test_object_of_account_specification.py | douwevandermeij/fractal | 66b04892b4d6fd8ee6a0c07b6e230f4321165085 | [
"MIT"
] | 2 | 2021-08-12T05:19:08.000Z | 2022-01-29T16:22:37.000Z | tests/core/specifications/test_object_of_account_specification.py | douwevandermeij/fractal | 66b04892b4d6fd8ee6a0c07b6e230f4321165085 | [
"MIT"
] | null | null | null | tests/core/specifications/test_object_of_account_specification.py | douwevandermeij/fractal | 66b04892b4d6fd8ee6a0c07b6e230f4321165085 | [
"MIT"
] | null | null | null | from dataclasses import make_dataclass
from fractal.core.specifications.object_of_account_specification import (
ObjectOfAccountSpecification,
)
def test_object_of_account_specification():
spec = ObjectOfAccountSpecification("abc", "def")
DC = make_dataclass("DC", [("id", str), ("account_id", str)])
... | 32.333333 | 73 | 0.75 | 46 | 388 | 6.043478 | 0.543478 | 0.093525 | 0.107914 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115979 | 388 | 11 | 74 | 35.272727 | 0.810496 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 1 |
75913ddb7374ccff56f949c0831577759c727f62 | 301 | py | Python | trade/urls.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | 2 | 2018-11-16T12:38:24.000Z | 2019-07-15T05:18:31.000Z | trade/urls.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | 8 | 2020-02-11T23:17:26.000Z | 2022-02-10T09:33:44.000Z | trade/urls.py | RoosDaniel/Fadderjobb | 2333be793930c4b45e8c05bde6ae29044fdc900c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = "trade"
urlpatterns = [
path('start/<str:receiver_username>/', views.start, name="start"),
path('<str:other_username>/', views.see_trade, name="see"),
path('change/<str:other_username>', views.change_trade, name="change"),
]
| 23.153846 | 75 | 0.687708 | 40 | 301 | 5.025 | 0.425 | 0.19403 | 0.159204 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13289 | 301 | 12 | 76 | 25.083333 | 0.770115 | 0 | 0 | 0 | 0 | 0 | 0.322259 | 0.259136 | 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 | 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 | 1 |
759d972ac37629296b460f629e9fe2f7acf6da23 | 846 | py | Python | cvs_scrapy/pipelines.py | joehwang/auto-door | 651794e5a8f89c62fee4327fcfffc0a7331b6925 | [
"MIT"
] | 5 | 2020-07-27T14:37:25.000Z | 2022-03-26T00:20:11.000Z | cvs_scrapy/pipelines.py | joehwang/auto-door | 651794e5a8f89c62fee4327fcfffc0a7331b6925 | [
"MIT"
] | null | null | null | cvs_scrapy/pipelines.py | joehwang/auto-door | 651794e5a8f89c62fee4327fcfffc0a7331b6925 | [
"MIT"
] | 1 | 2022-03-29T04:05:09.000Z | 2022-03-29T04:05:09.000Z | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import redis
import re
import os
class CvsScrapyPipeline(object):
def open_spider(self,spider):
self._redis = redis.Redis(h... | 33.84 | 106 | 0.665485 | 133 | 846 | 4.165414 | 0.541353 | 0.064982 | 0.057762 | 0.028881 | 0.032491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006739 | 0.122931 | 846 | 25 | 107 | 33.84 | 0.739892 | 0.251773 | 0 | 0 | 0 | 0 | 0.14992 | 0.068581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.1875 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75a125a1cac45b8eb85adb96aa3b21849d9fbc07 | 805 | py | Python | App/utils/need_login.py | msamunetogetoge/BookRecommendationApp | 8d77c9f72626650d3e55bc5ddc76b7606918abd3 | [
"MIT"
] | null | null | null | App/utils/need_login.py | msamunetogetoge/BookRecommendationApp | 8d77c9f72626650d3e55bc5ddc76b7606918abd3 | [
"MIT"
] | 1 | 2021-12-28T14:33:51.000Z | 2021-12-28T14:33:51.000Z | App/utils/need_login.py | msamunetogetoge/BookRecommendationApp | 8d77c9f72626650d3e55bc5ddc76b7606918abd3 | [
"MIT"
] | null | null | null | from functools import wraps
from django.shortcuts import render
from Login.models import M_User
def need_login(redirect_field_name:str, err_msg:str, view_func=None):
"""
login が必要な場所で使う。
loginしていない時に、redirecr_field_name に{'msg':err_masg} を付与してrenderする。
Args:
redirect_field_name (str): ... | 30.961538 | 70 | 0.638509 | 90 | 805 | 5.522222 | 0.477778 | 0.072435 | 0.102616 | 0.080483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27205 | 805 | 26 | 71 | 30.961538 | 0.848123 | 0.289441 | 0 | 0 | 0 | 0 | 0.005859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75a322e206f422faa7456a6d44de2b764ae9d843 | 2,484 | py | Python | sdk/python/pulumi_azure/network/network_security_group.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/network_security_group.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/network_security_group.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
from .. import utilities, tables
class NetworkSecurityGroup(pulumi.CustomResource):
"""
Ma... | 45.163636 | 223 | 0.714171 | 307 | 2,484 | 5.442997 | 0.407166 | 0.098743 | 0.050868 | 0.025135 | 0.104129 | 0.026332 | 0 | 0 | 0 | 0 | 0 | 0.000515 | 0.217794 | 2,484 | 54 | 224 | 46 | 0.859496 | 0.363124 | 0 | 0 | 1 | 0 | 0.212062 | 0.035668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.066667 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
75a814726cc37ad2824621ec6728b0d5c0d46f24 | 1,153 | py | Python | Python 3 - WebScraping/Teste2.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - WebScraping/Teste2.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - WebScraping/Teste2.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | '''import requests
r = requests.get('https://www.investopedia.com/terms/f/forex.asp')
print(r.text)
print(r.encoding)
print(r.headers)
print(r.status_code)'''
html_doc = """
<html><head><title>The Dormouse's story</title></head>
<body>
<p class="title"><b>The Dormouse's story</b></p>
<p class="story">Once upon a tim... | 29.564103 | 87 | 0.707719 | 188 | 1,153 | 4.319149 | 0.43617 | 0.077586 | 0.068966 | 0.059113 | 0.225369 | 0.155172 | 0.155172 | 0.155172 | 0.155172 | 0.155172 | 0 | 0.004735 | 0.084128 | 1,153 | 39 | 88 | 29.564103 | 0.764205 | 0.159584 | 0 | 0 | 0 | 0.157895 | 0.693705 | 0.104116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75b78216fa77050ebd1ab3b7e9f789410df85b06 | 202 | py | Python | programmers/skill-test-lv1/get_middle_char.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 3 | 2019-03-09T05:19:23.000Z | 2019-04-06T09:26:36.000Z | programmers/skill-test-lv1/get_middle_char.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2020-02-23T10:38:04.000Z | 2020-02-23T10:38:04.000Z | programmers/skill-test-lv1/get_middle_char.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2019-05-22T13:47:53.000Z | 2019-05-22T13:47:53.000Z | def solution(s):
length = len(s)
return s[length // 2] if length % 2 != 0 else s[(length // 2)-1:(length // 2)+1]
# Test
# s = 'abcde'
s = 'qwer'
print(solution(s))
#5 -> 2
#4 -> [1:3] # 1, 2
| 16.833333 | 84 | 0.509901 | 37 | 202 | 2.783784 | 0.486486 | 0.271845 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0.247525 | 202 | 11 | 85 | 18.363636 | 0.585526 | 0.188119 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75b9010d008ed356b580c0b290c633991aa5bd2f | 481 | py | Python | index.py | z0di4ckX/IP-finder | 32fe3b7dfbfe2f71a640592a82b6b9e82e4aa8a0 | [
"MIT"
] | null | null | null | index.py | z0di4ckX/IP-finder | 32fe3b7dfbfe2f71a640592a82b6b9e82e4aa8a0 | [
"MIT"
] | null | null | null | index.py | z0di4ckX/IP-finder | 32fe3b7dfbfe2f71a640592a82b6b9e82e4aa8a0 | [
"MIT"
] | null | null | null | from flask import Flask, redirect, url_for, render_template
#import ip_finder
app = Flask(__name__)
@app.route("/<name>")
def home(name):
return render_template("index.html", content=name)
# @app.route("/<name>")
# def user(name):
# return f"Hello {name}!"
# # Working on it!
# @app.route("/<ipF>")
# def ip(i... | 20.913043 | 59 | 0.629938 | 67 | 481 | 4.268657 | 0.447761 | 0.111888 | 0.097902 | 0.111888 | 0.132867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 481 | 23 | 60 | 20.913043 | 0.709677 | 0.494802 | 0 | 0 | 0 | 0 | 0.107759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
75bc399f35fc8b0693c2cbc1474eccc7d4475e2d | 1,450 | py | Python | openmdao.gui/src/openmdao/gui/urls.py | OzanCKN/OpenMDAO-Framework | 05e9d4b9bc41d0ec00a7073545146c925cd33b0b | [
"Apache-2.0"
] | 3 | 2015-06-02T00:36:28.000Z | 2018-11-03T00:35:21.000Z | openmdao.gui/src/openmdao/gui/urls.py | JustinSGray/OpenMDAO-Framework | 7ebd7fda0b10fbe8a86ae938dc4f135396dd9759 | [
"Apache-2.0"
] | null | null | null | openmdao.gui/src/openmdao/gui/urls.py | JustinSGray/OpenMDAO-Framework | 7ebd7fda0b10fbe8a86ae938dc4f135396dd9759 | [
"Apache-2.0"
] | 1 | 2020-07-15T02:45:54.000Z | 2020-07-15T02:45:54.000Z | from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth import views as authviews
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# favicon
(r'^favicon\.ico$', 'django.views.generic.simp... | 40.277778 | 112 | 0.638621 | 168 | 1,450 | 5.446429 | 0.386905 | 0.113661 | 0.111475 | 0.120219 | 0.10929 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196552 | 1,450 | 35 | 113 | 41.428571 | 0.785408 | 0.157241 | 0 | 0 | 0 | 0 | 0.514868 | 0.338997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.157895 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75be7063451454f98f4de23e6e3827a54274a52a | 5,317 | py | Python | landscape/prerequisites.py | shaneramey/landscape-cli | a367f54355b2dcc3c9f1f472e850d1f9e68de007 | [
"BSD-3-Clause"
] | null | null | null | landscape/prerequisites.py | shaneramey/landscape-cli | a367f54355b2dcc3c9f1f472e850d1f9e68de007 | [
"BSD-3-Clause"
] | null | null | null | landscape/prerequisites.py | shaneramey/landscape-cli | a367f54355b2dcc3c9f1f472e850d1f9e68de007 | [
"BSD-3-Clause"
] | null | null | null | import subprocess as sp
import platform
import os.path
import logging
def install_prerequisites(os_platform):
"""
Installs prerequisites for the landscape CLI tool
Returns: None
"""
install_gsed(os_platform)
install_minikube(os_platform)
install_lastpass(os_platform)
install_vault(os_p... | 34.751634 | 131 | 0.641903 | 699 | 5,317 | 4.761087 | 0.147353 | 0.07512 | 0.046274 | 0.033654 | 0.582332 | 0.559796 | 0.533053 | 0.46875 | 0.324519 | 0.157452 | 0 | 0.026284 | 0.220049 | 5,317 | 152 | 132 | 34.980263 | 0.776224 | 0.054354 | 0 | 0.268908 | 0 | 0.058824 | 0.165626 | 0.01894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084034 | false | 0.05042 | 0.033613 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75c983f040119c605e4fee4ad841f65415743aa9 | 545 | py | Python | fluent_pages/pagetypes/textfile/page_type_plugins.py | django-fluent/django-fluent-pages | b98c806f27379b1ebf3566164ee3273f66bd6fe2 | [
"Apache-2.0"
] | 59 | 2016-07-25T00:48:36.000Z | 2022-03-25T03:12:10.000Z | fluent_pages/pagetypes/textfile/page_type_plugins.py | edoburu/django-fluent-pages | b98c806f27379b1ebf3566164ee3273f66bd6fe2 | [
"Apache-2.0"
] | 64 | 2015-01-13T14:09:23.000Z | 2016-06-16T11:59:35.000Z | fluent_pages/pagetypes/textfile/page_type_plugins.py | edoburu/django-fluent-pages | b98c806f27379b1ebf3566164ee3273f66bd6fe2 | [
"Apache-2.0"
] | 12 | 2015-03-09T16:35:40.000Z | 2016-06-15T20:32:35.000Z | from django.http import HttpResponse
from fluent_pages.extensions import PageTypePlugin, page_type_pool
from .models import TextFile
@page_type_pool.register
class TextFilePlugin(PageTypePlugin):
model = TextFile
is_file = True
def get_response(self, request, textfile, **kwargs):
content_type =... | 28.684211 | 80 | 0.744954 | 67 | 545 | 5.850746 | 0.597015 | 0.168367 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.185321 | 545 | 18 | 81 | 30.277778 | 0.878378 | 0.040367 | 0 | 0 | 0 | 0 | 0.028791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
75cbb85347aef40487f7defde795bad519f11b7a | 835 | py | Python | Alien Invasion/sound_fx.py | rubotic1/AlienInvaders | d5166fe62b5d3ae83206a30818f73e775715b97e | [
"CC0-1.0"
] | null | null | null | Alien Invasion/sound_fx.py | rubotic1/AlienInvaders | d5166fe62b5d3ae83206a30818f73e775715b97e | [
"CC0-1.0"
] | null | null | null | Alien Invasion/sound_fx.py | rubotic1/AlienInvaders | d5166fe62b5d3ae83206a30818f73e775715b97e | [
"CC0-1.0"
] | null | null | null | import pygame
class Sound_fx:
"""Clase que controla el sonido."""
def __init__(self):
""" Inicializamos el sonido y cargamos los recursos"""
self.init_music = 'sound/01_Title Screen.mp3'
self.game_music = 'sound/12_Invader_Homeworld.mp3'
self.shot = pygame.mixer.Sound('sound/shot.wav')
self.alien = pygame... | 24.558824 | 79 | 0.735329 | 135 | 835 | 4.37037 | 0.340741 | 0.167797 | 0.108475 | 0.071186 | 0.223729 | 0.223729 | 0.223729 | 0.111864 | 0 | 0 | 0 | 0.021769 | 0.11976 | 835 | 33 | 80 | 25.30303 | 0.780952 | 0.092216 | 0 | 0.095238 | 0 | 0 | 0.149194 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 |
75cca6164f25534a563ae00deedda2e426c15ba7 | 2,366 | py | Python | pokemon/migrations/0002_auto_20200224_0512.py | andresRah/PokemonDjango | 0f8d5eadf574f3a56adf769ffef9086e5631cce7 | [
"MIT"
] | null | null | null | pokemon/migrations/0002_auto_20200224_0512.py | andresRah/PokemonDjango | 0f8d5eadf574f3a56adf769ffef9086e5631cce7 | [
"MIT"
] | null | null | null | pokemon/migrations/0002_auto_20200224_0512.py | andresRah/PokemonDjango | 0f8d5eadf574f3a56adf769ffef9086e5631cce7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-24 05:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pokemon', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Evolution',
... | 40.793103 | 127 | 0.565934 | 225 | 2,366 | 5.835556 | 0.28 | 0.061691 | 0.082254 | 0.115765 | 0.648896 | 0.648896 | 0.545316 | 0.527799 | 0.527799 | 0.437928 | 0 | 0.027107 | 0.282756 | 2,366 | 57 | 128 | 41.508772 | 0.746612 | 0.019019 | 0 | 0.470588 | 1 | 0 | 0.090987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.098039 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
75d2de6d790907a59e9e6e2e244668977553c33a | 268 | py | Python | app.py | uvcloud/sample-12factor-docker-flask | 111895d46a71f81b818d8990598530d6578e2ebd | [
"Apache-2.0"
] | null | null | null | app.py | uvcloud/sample-12factor-docker-flask | 111895d46a71f81b818d8990598530d6578e2ebd | [
"Apache-2.0"
] | null | null | null | app.py | uvcloud/sample-12factor-docker-flask | 111895d46a71f81b818d8990598530d6578e2ebd | [
"Apache-2.0"
] | null | null | null |
from flask import Flask,render_template
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route("/welcome")
def welcome():
return render_template("welcome.html")
if __name__ == '__main__':
app.run(host='0.0.0.0',debug=True)
| 17.866667 | 42 | 0.675373 | 38 | 268 | 4.394737 | 0.552632 | 0.035928 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017467 | 0.145522 | 268 | 14 | 43 | 19.142857 | 0.71179 | 0 | 0 | 0 | 0 | 0 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
75d43054652568a8d5e6dfa4a1aed378fff9b422 | 3,043 | py | Python | augmentation/augmentation.py | akaver/pbt-demo-mnist | 98d27a9c00596c89b0d3004d645138b931d6b2d7 | [
"MIT"
] | null | null | null | augmentation/augmentation.py | akaver/pbt-demo-mnist | 98d27a9c00596c89b0d3004d645138b931d6b2d7 | [
"MIT"
] | null | null | null | augmentation/augmentation.py | akaver/pbt-demo-mnist | 98d27a9c00596c89b0d3004d645138b931d6b2d7 | [
"MIT"
] | null | null | null | import logging
import PIL
import random
import numpy as np
import torch
import torchvision.transforms.functional as TF
log = logging.getLogger(__name__)
# define augmentation functions
def auto_contrast(img: torch.Tensor, level: float, fill=None) -> torch.Tensor:
fill = img[0, 0, 0].item() if fill is None else... | 21.892086 | 79 | 0.662175 | 439 | 3,043 | 4.471526 | 0.202733 | 0.179317 | 0.114111 | 0.154865 | 0.585329 | 0.534386 | 0.534386 | 0.534386 | 0.534386 | 0.490576 | 0 | 0.012273 | 0.223464 | 3,043 | 138 | 80 | 22.050725 | 0.818451 | 0.068682 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195402 | false | 0.137931 | 0.068966 | 0 | 0.321839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75f3c24e685020776e8ebfdfafee38708def2372 | 409 | py | Python | bluetooth_write.py | DethCount/usb-gamepad | d33dbc851e73f4c3702d50b3ef0e42e0aef39725 | [
"MIT"
] | null | null | null | bluetooth_write.py | DethCount/usb-gamepad | d33dbc851e73f4c3702d50b3ef0e42e0aef39725 | [
"MIT"
] | null | null | null | bluetooth_write.py | DethCount/usb-gamepad | d33dbc851e73f4c3702d50b3ef0e42e0aef39725 | [
"MIT"
] | null | null | null | import time
import concurrent
import asyncio
import bleak
async def main():
loop = asyncio.new_event_loop()
client = bleak.BleakClient('D8:A9:8B:7E:1E:D2')
is_connected = await client.connect()
print(is_connected)
response = await client.write_gatt_char('0000ffe1-0000-1000-8000-00805f9b34fb', b'MO... | 22.722222 | 103 | 0.713936 | 57 | 409 | 4.877193 | 0.719298 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.163814 | 409 | 17 | 104 | 24.058824 | 0.701754 | 0 | 0 | 0 | 0 | 0 | 0.185819 | 0.08802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
75fd32ef089a9bfac568dfdcfc1ddc49d5a561f9 | 1,280 | py | Python | atlas/foundations_contrib/src/test/helpers/test_lazy_redis.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_contrib/src/test/helpers/test_lazy_redis.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_contrib/src/test/helpers/test_lazy_redis.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
import unittest
from mock import Mock
from foundations_contrib.helpers.lazy_redis import LazyRedis
class TestLazyRedis(unittest.TestCase):
class MockObject(object):
def __init__(self):
self.value = 5
self.name = 'mock'
def setUp(self):
pass
def test_get_attr_ret... | 31.219512 | 71 | 0.678125 | 146 | 1,280 | 5.664384 | 0.308219 | 0.097944 | 0.048368 | 0.067715 | 0.604595 | 0.604595 | 0.532044 | 0.348247 | 0.348247 | 0.348247 | 0 | 0.002064 | 0.242969 | 1,280 | 40 | 72 | 32 | 0.851393 | 0 | 0 | 0.266667 | 0 | 0 | 0.075841 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.233333 | false | 0.033333 | 0.1 | 0.033333 | 0.433333 | 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 | 0 | 0 | 0 | 0 | 1 |
75ff1398bbc310506a90de3534f63656822b793d | 2,894 | py | Python | subs2cia/subzipper.py | mdVNwyRbm/subs2cia | 5277bbdbf7ac0d1cf4cc995b8cd758d8e798ac36 | [
"MIT"
] | 53 | 2020-02-03T02:48:14.000Z | 2022-03-22T15:51:26.000Z | subs2cia/subzipper.py | mdVNwyRbm/subs2cia | 5277bbdbf7ac0d1cf4cc995b8cd758d8e798ac36 | [
"MIT"
] | 21 | 2020-05-17T11:09:36.000Z | 2022-03-20T09:52:30.000Z | subs2cia/subzipper.py | mdVNwyRbm/subs2cia | 5277bbdbf7ac0d1cf4cc995b8cd758d8e798ac36 | [
"MIT"
] | 5 | 2020-09-11T17:17:03.000Z | 2022-03-18T20:25:17.000Z | from subs2cia.argparser import get_args_subzipper
from subs2cia.sources import is_language
import logging
from pathlib import Path
import pycountry
from pprint import pprint
def start():
args = get_args_subzipper()
args = vars(args)
if args['verbose']:
# if args['debug']:
logging.basicCo... | 34.047059 | 117 | 0.604008 | 373 | 2,894 | 4.640751 | 0.292225 | 0.044483 | 0.02773 | 0.051993 | 0.291161 | 0.263432 | 0.242634 | 0.160601 | 0.160601 | 0.098209 | 0 | 0.00331 | 0.269178 | 2,894 | 84 | 118 | 34.452381 | 0.81513 | 0.078438 | 0 | 0.163934 | 0 | 0 | 0.291839 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.016393 | false | 0 | 0.098361 | 0 | 0.131148 | 0.016393 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2f03dbbe6b306d3df9e94b8c0728c72037c17837 | 2,870 | py | Python | venv/lib/python2.7/dist-packages/landscape/monitor/plugin.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/monitor/plugin.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/monitor/plugin.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | from logging import info
from twisted.internet.defer import succeed
from landscape.log import format_object
from landscape.lib.log import log_failure
from landscape.broker.client import BrokerClientPlugin
class MonitorPlugin(BrokerClientPlugin):
"""
@cvar persist_name: If specified as a string, a C{_persist... | 30.210526 | 79 | 0.629965 | 351 | 2,870 | 5.02849 | 0.353276 | 0.062323 | 0.033994 | 0.019263 | 0.033994 | 0.033994 | 0.033994 | 0.033994 | 0 | 0 | 0 | 0 | 0.292334 | 2,870 | 94 | 80 | 30.531915 | 0.86903 | 0.263763 | 0 | 0.081633 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0.020408 | 0.102041 | 0 | 0.530612 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f930f6185327c364b16097a9f40e2bb0a63fc7b3 | 1,682 | py | Python | blog/migrations/0003_auto_20190504_0806.py | avahmh/Drman | 4beaf4c72770c2477004ea3835c3ecdc14390b61 | [
"Apache-2.0"
] | null | null | null | blog/migrations/0003_auto_20190504_0806.py | avahmh/Drman | 4beaf4c72770c2477004ea3835c3ecdc14390b61 | [
"Apache-2.0"
] | null | null | null | blog/migrations/0003_auto_20190504_0806.py | avahmh/Drman | 4beaf4c72770c2477004ea3835c3ecdc14390b61 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-04 08:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_post_likes'),
]
o... | 38.227273 | 170 | 0.598692 | 166 | 1,682 | 5.915663 | 0.5 | 0.057026 | 0.114053 | 0.13442 | 0.203666 | 0.203666 | 0.203666 | 0 | 0 | 0 | 0 | 0.019433 | 0.265755 | 1,682 | 43 | 171 | 39.116279 | 0.775709 | 0.041023 | 0 | 0.138889 | 1 | 0 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.194444 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f93a18b4f140df8636d548ac9cffdee16ce08bd4 | 8,557 | py | Python | gwtarget/DESI_mainInjector/Main-Injector-master/python/sourceProb.py | rknop/timedomain | d3e3c43dfbb9cadc150ea04024d9b4132cb9ca17 | [
"MIT"
] | 1 | 2021-06-18T05:25:27.000Z | 2021-06-18T05:25:27.000Z | gwtarget/DESI_mainInjector/Main-Injector-master/python/sourceProb.py | MatthewPortman/timedomain | b9c6c2e6804d7dde56311d9402769be545d505d0 | [
"MIT"
] | null | null | null | gwtarget/DESI_mainInjector/Main-Injector-master/python/sourceProb.py | MatthewPortman/timedomain | b9c6c2e6804d7dde56311d9402769be545d505d0 | [
"MIT"
] | null | null | null | import numpy as np
import os
import scipy.stats
import mags
import hp2np
import warnings
license="""
Copyright (C) 2014 James Annis
This program is free software; you can redistribute it and/or modify it
under the terms of version 3 of the GNU General Public License as
published by the Free Software Found... | 39.252294 | 92 | 0.591446 | 1,088 | 8,557 | 4.559743 | 0.329044 | 0.01411 | 0.008063 | 0.009675 | 0.139488 | 0.122959 | 0.091917 | 0.050796 | 0.050796 | 0.050796 | 0 | 0.022111 | 0.323478 | 8,557 | 217 | 93 | 39.43318 | 0.834859 | 0.217366 | 0 | 0.129496 | 0 | 0 | 0.176329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064748 | null | null | 0.014388 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f947786aaadeb19aed277c43c63d523a03846953 | 3,979 | py | Python | examples/control_point_av.py | aleixq/python3-brisa | 6815632cd377f456eedfc5b4d203a107e291fc8a | [
"MIT"
] | 4 | 2015-02-18T21:42:17.000Z | 2020-03-22T14:38:12.000Z | examples/control_point_av.py | aleixq/python3-brisa | 6815632cd377f456eedfc5b4d203a107e291fc8a | [
"MIT"
] | null | null | null | examples/control_point_av.py | aleixq/python3-brisa | 6815632cd377f456eedfc5b4d203a107e291fc8a | [
"MIT"
] | 2 | 2016-04-03T10:11:55.000Z | 2021-12-27T03:00:31.000Z | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php or see LICENSE file.
# Copyright 2007-2008 Brisa Team <brisa-develop@garage.maemo.org>
from brisa.core.reactors import install_default_reactor
reactor = install_default_reactor()
import sys
from brisa.upnp.control_point.control_point_a... | 32.614754 | 72 | 0.565971 | 441 | 3,979 | 4.854875 | 0.29932 | 0.035965 | 0.044839 | 0.023821 | 0.093414 | 0.075666 | 0.053246 | 0 | 0 | 0 | 0 | 0.007468 | 0.326967 | 3,979 | 121 | 73 | 32.884298 | 0.792009 | 0.040714 | 0 | 0.021053 | 0 | 0 | 0.113559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042105 | null | null | 0.189474 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94a401c567479ec13ef4a7cf6d833324193e069 | 7,348 | py | Python | assemblyline/assemblyline/common/yara/yara_importer.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | common/yara/yara_importer.py | rtruxal/assemblyline | d1f02c9c7c8859d4c0b7ac231d91d544bb3a33eb | [
"MIT"
] | null | null | null | common/yara/yara_importer.py | rtruxal/assemblyline | d1f02c9c7c8859d4c0b7ac231d91d544bb3a33eb | [
"MIT"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z |
import os
import logging
from assemblyline.common import isotime
from assemblyline.al.common import forge
class YaraImporter(object):
REQUIRED_META = ['description', 'id', 'organisation', 'poc', 'rule_version', 'yara_version', 'rule_group']
def __init__(self, logger=None):
if not logger:
... | 39.505376 | 119 | 0.547904 | 861 | 7,348 | 4.452962 | 0.200929 | 0.041732 | 0.028169 | 0.019823 | 0.173709 | 0.102243 | 0.050078 | 0.03495 | 0.018779 | 0.018779 | 0 | 0.00268 | 0.33982 | 7,348 | 185 | 120 | 39.718919 | 0.787673 | 0.008438 | 0 | 0.157895 | 0 | 0 | 0.150783 | 0.00357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065789 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94aea46aa4ac81907f1f71a8b62edb96f7f49e0 | 6,757 | py | Python | test.py | doncat99/zvt | 831183bdf7a6d0fc3acd3ea51984df590078eec6 | [
"MIT"
] | 10 | 2020-08-08T04:43:00.000Z | 2021-07-23T05:38:11.000Z | test.py | doncat99/zvt | 831183bdf7a6d0fc3acd3ea51984df590078eec6 | [
"MIT"
] | 1 | 2021-08-14T12:19:18.000Z | 2021-09-30T06:44:04.000Z | test.py | doncat99/zvt | 831183bdf7a6d0fc3acd3ea51984df590078eec6 | [
"MIT"
] | 1 | 2021-12-16T01:57:37.000Z | 2021-12-16T01:57:37.000Z | # import asyncio
# import functools
# import time
# import random
# import multiprocessing
# import aiomultiprocess
# import uvloop
# import numpy as np
# from tqdm import tqdm
# # # 下载协程
# # async def download(url):
# # cost = time.time()
# # await asyncio.sleep(3) # 模拟1秒的下载过程
# # return 'cost: {}'.for... | 25.692015 | 101 | 0.585319 | 847 | 6,757 | 4.538371 | 0.266824 | 0.022893 | 0.012487 | 0.01769 | 0.128512 | 0.084287 | 0.084287 | 0.054631 | 0.054631 | 0.042664 | 0 | 0.010585 | 0.258991 | 6,757 | 262 | 102 | 25.790076 | 0.75714 | 0.869321 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94e916c1aad06edd61cfe84172c159c77df48f7 | 5,257 | py | Python | pyny/fields.py | 7pairs/pyny | cf4ad9a5955207f99eb1beb7bcd6fc0cfa8e4fb8 | [
"Apache-2.0"
] | null | null | null | pyny/fields.py | 7pairs/pyny | cf4ad9a5955207f99eb1beb7bcd6fc0cfa8e4fb8 | [
"Apache-2.0"
] | 50 | 2015-03-01T11:53:00.000Z | 2021-12-22T12:01:32.000Z | pyny/fields.py | 7pairs/pyny | cf4ad9a5955207f99eb1beb7bcd6fc0cfa8e4fb8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2015−2019 Jun-ya HASEBA
#
# 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 applic... | 21.028 | 74 | 0.5642 | 470 | 5,257 | 6.193617 | 0.32766 | 0.021986 | 0.026451 | 0.03607 | 0.402611 | 0.369976 | 0.369976 | 0.354174 | 0.292339 | 0.191 | 0 | 0.003731 | 0.337265 | 5,257 | 249 | 75 | 21.11245 | 0.831516 | 0.427811 | 0 | 0.490566 | 0 | 0 | 0.011542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0.056604 | 0 | 0.679245 | 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 | 0 | 0 | 0 | 0 | 1 |
f951e56906f6675bf3d54a788c7aaed5a54a2c48 | 4,626 | py | Python | yolov5-coreml-tflite-converter/utils/constants.py | SchweizerischeBundesbahnen/sbb-ml-models | 485356aeb0a277907c160d435f7f654154046a70 | [
"MIT"
] | null | null | null | yolov5-coreml-tflite-converter/utils/constants.py | SchweizerischeBundesbahnen/sbb-ml-models | 485356aeb0a277907c160d435f7f654154046a70 | [
"MIT"
] | null | null | null | yolov5-coreml-tflite-converter/utils/constants.py | SchweizerischeBundesbahnen/sbb-ml-models | 485356aeb0a277907c160d435f7f654154046a70 | [
"MIT"
] | null | null | null | import os
# -------------------------------------------------------------------------------------------------------------------- #
# Constants
# -------------------------------------------------------------------------------------------------------------------- #
# General
# - - - - - - - - - - - - - - - - - - - - - -... | 35.584615 | 120 | 0.409641 | 354 | 4,626 | 5.112994 | 0.440678 | 0.01989 | 0.033149 | 0.028729 | 0.060773 | 0.024309 | 0 | 0 | 0 | 0 | 0 | 0.03116 | 0.250757 | 4,626 | 129 | 121 | 35.860465 | 0.491056 | 0.524859 | 0 | 0 | 0 | 0.013889 | 0.263921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.013889 | 0.027778 | 0.069444 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f95455bc85c6084c042798c88824832b7eaf077e | 4,314 | py | Python | tests/plugins/test_yum_inject.py | goldmann/dock | 6323b2b443d765fb6a8c88de123d8ed8a94751a9 | [
"BSD-3-Clause"
] | null | null | null | tests/plugins/test_yum_inject.py | goldmann/dock | 6323b2b443d765fb6a8c88de123d8ed8a94751a9 | [
"BSD-3-Clause"
] | null | null | null | tests/plugins/test_yum_inject.py | goldmann/dock | 6323b2b443d765fb6a8c88de123d8ed8a94751a9 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2015 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import print_function
import os
try:
from collections import OrderedDict
except ImportError:
# Python 2.6
from o... | 33.703125 | 303 | 0.665508 | 550 | 4,314 | 5.121818 | 0.272727 | 0.063898 | 0.093717 | 0.018459 | 0.718495 | 0.681576 | 0.663827 | 0.663827 | 0.641108 | 0.641108 | 0 | 0.006973 | 0.202133 | 4,314 | 127 | 304 | 33.968504 | 0.811447 | 0.041956 | 0 | 0.592233 | 0 | 0.019417 | 0.361455 | 0.034424 | 0 | 0 | 0 | 0 | 0.048544 | 1 | 0.029126 | false | 0.009709 | 0.106796 | 0 | 0.145631 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f954c5db58174e9a698552dd6c7159c64c5e3059 | 396 | py | Python | run/base/hpe_base_util.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | 23 | 2020-10-13T18:10:32.000Z | 2022-03-02T04:28:42.000Z | run/base/hpe_base_util.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | 1 | 2021-07-20T02:11:54.000Z | 2021-09-24T02:33:27.000Z | run/base/hpe_base_util.py | KAIST-HCIL/DeepFisheyeNet | ecdf9265a0f7c5048ace0636c0ce26260a39f352 | [
"MIT"
] | null | null | null | from dataset.data_model import HandDataModel
def unpack_data(results, is_eval = False):
joint_out = results['joint']
heatmap = None
heatmap_true = None
if not is_eval:
heatmap = results['heatmap']
heatmap_true = results['heatmap_true']
heatmap_reprojected = results['heatmap_repr... | 30.461538 | 64 | 0.714646 | 47 | 396 | 5.744681 | 0.446809 | 0.162963 | 0.133333 | 0.214815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 396 | 12 | 65 | 33 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.108586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 1 |
f969c5e5863404974f3c55216fbd71bd87d43e8e | 1,123 | py | Python | timelap/models.py | TonyEight/django-timelap | af84c1bc979afce303218f76036b05a365f905d2 | [
"MIT"
] | null | null | null | timelap/models.py | TonyEight/django-timelap | af84c1bc979afce303218f76036b05a365f905d2 | [
"MIT"
] | null | null | null | timelap/models.py | TonyEight/django-timelap | af84c1bc979afce303218f76036b05a365f905d2 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
__all__ = ['ModelWithDateRange', 'ModelWithDateTimeRange',]
class ModelWithDateRange(models.Model):
# Attributes
start_date = models.DateField()
end_date = models.DateField(... | 27.390244 | 77 | 0.64203 | 121 | 1,123 | 5.801653 | 0.338843 | 0.051282 | 0.059829 | 0.074074 | 0.245014 | 0.245014 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0.277827 | 1,123 | 40 | 78 | 28.075 | 0.865598 | 0.050757 | 0 | 0.25 | 0 | 0 | 0.135977 | 0.020774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.541667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f96a5cd102d79f4665c7d1e7ef0ae555b0627bfc | 1,954 | py | Python | 28_uvm_component/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | 1 | 2022-01-10T02:00:35.000Z | 2022-01-10T02:00:35.000Z | 28_uvm_component/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | null | null | null | 28_uvm_component/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | 1 | 2022-01-11T16:12:02.000Z | 2022-01-11T16:12:02.000Z | import pyuvm
from pyuvm import *
# # uvm_component
# ## Running the phases
# Figure 1: A uvm_test demonstrating the phase methods
@pyuvm.test()
class PhaseTest(uvm_test): # uvm_test extends uvm_component
def build_phase(self):
print("1 build_phase")
def connect_phase(self):
print("2 connect... | 25.710526 | 71 | 0.68219 | 277 | 1,954 | 4.584838 | 0.256318 | 0.120472 | 0.088189 | 0.066142 | 0.307087 | 0.21811 | 0.135433 | 0.114961 | 0.055118 | 0 | 0 | 0.008393 | 0.207267 | 1,954 | 75 | 72 | 26.053333 | 0.811491 | 0.26868 | 0 | 0.365854 | 0 | 0 | 0.185847 | 0.035025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.04878 | 0 | 0.439024 | 0.219512 | 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 | 0 | 0 | 0 | 0 | 1 |
f96c44b178b0aab12517ce477aea5a91169b2d12 | 439 | py | Python | aula06/Strings_P1.py | viniciusFernandesInacio/Curso_Python | fb6c28db86ea89a29a59cef93841fd91934d8f7f | [
"MIT"
] | null | null | null | aula06/Strings_P1.py | viniciusFernandesInacio/Curso_Python | fb6c28db86ea89a29a59cef93841fd91934d8f7f | [
"MIT"
] | null | null | null | aula06/Strings_P1.py | viniciusFernandesInacio/Curso_Python | fb6c28db86ea89a29a59cef93841fd91934d8f7f | [
"MIT"
] | null | null | null | curso="Curso de Python"
#print(curso[9:15])
#print(curso.strip()) #remove os espaços da string
#print(curso.lower().strip()) #converte a string para letras minusculas
#print(curso.upper()) #converte a string para letras maiusculas
#print(curso.replace("Python","SQL")) #troca objetos da array
a=curso.split(" ")... | 39.909091 | 88 | 0.708428 | 67 | 439 | 4.641791 | 0.597015 | 0.160772 | 0.096463 | 0.122187 | 0.160772 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010554 | 0.136674 | 439 | 11 | 89 | 39.909091 | 0.810026 | 0.744875 | 0 | 0 | 0 | 0 | 0.242718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f96f2df127222e796ccf497071cf367b97f6270d | 1,135 | py | Python | src/labeling.py | misads/im_scripts | bfefed7caca761a767686b9c95dba264110b0f63 | [
"MIT"
] | 8 | 2019-11-22T04:08:04.000Z | 2020-01-09T13:45:12.000Z | src/labeling.py | misads/im_scripts | bfefed7caca761a767686b9c95dba264110b0f63 | [
"MIT"
] | null | null | null | src/labeling.py | misads/im_scripts | bfefed7caca761a767686b9c95dba264110b0f63 | [
"MIT"
] | 1 | 2019-12-01T12:11:25.000Z | 2019-12-01T12:11:25.000Z | # encoding=utf-8
import pdb
import numpy as np
import os
import argparse
import cv2
import numpy as np
from src.base import Base
from src.load_config import load_yml
from src.misc_utils import attach_file_suffix, binaryzation, args, random_crop
class Labeling(Base):
def __init__(self, cfg):
Base.__init_... | 24.673913 | 105 | 0.614978 | 168 | 1,135 | 3.940476 | 0.458333 | 0.031722 | 0.039275 | 0.045317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045131 | 0.25815 | 1,135 | 45 | 106 | 25.222222 | 0.741093 | 0.186784 | 0 | 0.074074 | 0 | 0 | 0.022976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.481481 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f97b5838cb1f8477763affd1c9cf4c3040e28b4d | 2,350 | py | Python | adv_patch_bench/models/common.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | 1 | 2021-09-05T05:23:29.000Z | 2021-09-05T05:23:29.000Z | adv_patch_bench/models/common.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | null | null | null | adv_patch_bench/models/common.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | null | null | null | from turtle import forward
import torch
import torch.nn as nn
class Normalize(nn.Module):
def __init__(self, mean, std, *args, **kwargs):
super().__init__()
self.register_buffer('mean', torch.tensor(mean)[None, :, None, None])
self.register_buffer('std', torch.tensor(std)[None, :, None, No... | 37.903226 | 98 | 0.47617 | 294 | 2,350 | 3.72449 | 0.319728 | 0.065753 | 0.031963 | 0.027397 | 0.46758 | 0.336073 | 0.257534 | 0.191781 | 0.12968 | 0.073059 | 0 | 0.111182 | 0.330213 | 2,350 | 61 | 99 | 38.52459 | 0.584498 | 0.78383 | 0 | 0 | 0 | 0 | 0.015837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f97c214723b84bd7a32eecac5f84ba29c6117f4e | 3,274 | py | Python | main_headless.py | riteshgn/aryabhatta-2048 | 772f9877d6d32b738c84a8c1a4cc89b92a3cf3b5 | [
"Apache-2.0"
] | null | null | null | main_headless.py | riteshgn/aryabhatta-2048 | 772f9877d6d32b738c84a8c1a4cc89b92a3cf3b5 | [
"Apache-2.0"
] | null | null | null | main_headless.py | riteshgn/aryabhatta-2048 | 772f9877d6d32b738c84a8c1a4cc89b92a3cf3b5 | [
"Apache-2.0"
] | null | null | null | import json
import statistics
import time
# from ai_engine.engine_best_score_v2 import BestScore as AIEngine
# from ai_engine.engine_best_score_with_depth import BestScoreWithDepth as AIEngine
from ai_engine.engine_expectimax_with_heur_v1 import Expectimax as AIEngine
from ai_oracle.oracle_python_impl import OraclePyt... | 30.598131 | 83 | 0.641417 | 395 | 3,274 | 5.070886 | 0.268354 | 0.020969 | 0.032451 | 0.02696 | 0.045931 | 0.045931 | 0 | 0 | 0 | 0 | 0 | 0.004607 | 0.204337 | 3,274 | 106 | 84 | 30.886792 | 0.764299 | 0.086133 | 0 | 0 | 0 | 0 | 0.218164 | 0.033512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.12 | 0 | 0.16 | 0.453333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f987acc3e2a6739f467bb0721d45cea4545e581c | 8,673 | py | Python | src/modeling/datagens.py | ilrd/Pulmonary-Fibrosis | c3a24ec72336c58e717ce6e3eab5bdd8e812090a | [
"Apache-2.0"
] | null | null | null | src/modeling/datagens.py | ilrd/Pulmonary-Fibrosis | c3a24ec72336c58e717ce6e3eab5bdd8e812090a | [
"Apache-2.0"
] | null | null | null | src/modeling/datagens.py | ilrd/Pulmonary-Fibrosis | c3a24ec72336c58e717ce6e3eab5bdd8e812090a | [
"Apache-2.0"
] | null | null | null | import numpy as np
from tensorflow import keras
import pandas as pd
import os
class DcmDataGenerator(keras.utils.Sequence):
"""Generates data for Keras
Sequence based data generator. Suitable for building data generator for training and prediction.
"""
def __init__(self, images_path, dim=(15, 512, 51... | 32.728302 | 112 | 0.603367 | 1,179 | 8,673 | 4.194232 | 0.166243 | 0.03458 | 0.022245 | 0.016987 | 0.508392 | 0.451769 | 0.427503 | 0.410313 | 0.39636 | 0.39636 | 0 | 0.031582 | 0.284446 | 8,673 | 264 | 113 | 32.852273 | 0.765227 | 0.23994 | 0 | 0.318841 | 1 | 0 | 0.040116 | 0.016338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137681 | false | 0 | 0.028986 | 0 | 0.275362 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f989a7cc0f2766a0d47b1de789a3518d32b81931 | 1,631 | py | Python | lib/fuzzy_word_search_results.py | dev-mike-del/fuzzy-word-search | 88fe443d9bb297328626a842c906ae5a833975f6 | [
"MIT"
] | null | null | null | lib/fuzzy_word_search_results.py | dev-mike-del/fuzzy-word-search | 88fe443d9bb297328626a842c906ae5a833975f6 | [
"MIT"
] | null | null | null | lib/fuzzy_word_search_results.py | dev-mike-del/fuzzy-word-search | 88fe443d9bb297328626a842c906ae5a833975f6 | [
"MIT"
] | null | null | null | """This module performs a 'fuzzy search on on JSON file"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.fuzzy_word_search_work import FuzzyWordSearchWork
# Performs a 'fuzzy search' on given JSON.
# See test_input.json for JSON format
class FuzzyWordSearch(FuzzyWordSearchWork):
"""
Performs a 'fuzzy... | 37.068182 | 91 | 0.625383 | 199 | 1,631 | 4.944724 | 0.40201 | 0.122967 | 0.106707 | 0.096545 | 0.260163 | 0.200203 | 0.168699 | 0.168699 | 0.093496 | 0.093496 | 0 | 0.001698 | 0.277744 | 1,631 | 43 | 92 | 37.930233 | 0.833616 | 0.415083 | 0 | 0 | 0 | 0 | 0.190421 | 0.064252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.052632 | 0 | 0.263158 | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9964e496525c169fa2c2c9e0acc2da877499b55 | 548 | py | Python | src/tasks/lesson03/task301.py | vadimkondratovich/asd | 5f2db494f739ea663795c5d4a924ced942cb1852 | [
"MIT"
] | null | null | null | src/tasks/lesson03/task301.py | vadimkondratovich/asd | 5f2db494f739ea663795c5d4a924ced942cb1852 | [
"MIT"
] | 8 | 2021-01-10T09:38:54.000Z | 2021-02-28T12:33:58.000Z | src/tasks/lesson03/task301.py | vadimkondratovich/asd | 5f2db494f739ea663795c5d4a924ced942cb1852 | [
"MIT"
] | null | null | null | from django.http import HttpRequest, HttpResponse
from main.util import render_template
TEMPLATE = "tasks/lesson03/task301.html"
def handler(request: HttpRequest) -> HttpResponse:
name = request.GET.get("name")
context = {
"input_name": name,
"greeting_name": name or "anonymous",
}
... | 22.833333 | 72 | 0.689781 | 62 | 548 | 5.854839 | 0.532258 | 0.115702 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.195255 | 548 | 24 | 73 | 22.833333 | 0.807256 | 0 | 0 | 0 | 0 | 0 | 0.17122 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f99a42b28853dfd6a0a8ac3c51e7a4e9460bd008 | 417 | py | Python | application/tests/test_camera.py | Sapfir0/web-premier-eye | f060b01e98a923374ea60360ba133caaa654b6c7 | [
"MIT"
] | null | null | null | application/tests/test_camera.py | Sapfir0/web-premier-eye | f060b01e98a923374ea60360ba133caaa654b6c7 | [
"MIT"
] | null | null | null | application/tests/test_camera.py | Sapfir0/web-premier-eye | f060b01e98a923374ea60360ba133caaa654b6c7 | [
"MIT"
] | 1 | 2020-01-06T18:27:45.000Z | 2020-01-06T18:27:45.000Z | import unittest
from config import Config as cfg
import requests
class Camera(unittest.TestCase):
routeUrl = cfg.serverUrl + "gallery/camera"
camerasList = [1,2,3]
def test_IsAllCamerasAvailable(self):
for camera in self.camerasList:
r = requests.get(f"{self.routeUrl}/{camera}")
... | 18.954545 | 57 | 0.669065 | 50 | 417 | 5.38 | 0.66 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.223022 | 417 | 21 | 58 | 19.857143 | 0.811728 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.057971 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f99a9ede9a6d28975a3238fd7f28e88b2a4db69d | 2,620 | py | Python | app/core/migrations/0004_auto_20201128_2021.py | vivek92-tech/SocialSphere-Insta-clone | e2a90ddc13bf59bb1e379a4fb9ef918e2ec494db | [
"MIT"
] | 1 | 2020-12-01T19:45:50.000Z | 2020-12-01T19:45:50.000Z | app/core/migrations/0004_auto_20201128_2021.py | vivek92-tech/SocialSphere-Insta-clone | e2a90ddc13bf59bb1e379a4fb9ef918e2ec494db | [
"MIT"
] | null | null | null | app/core/migrations/0004_auto_20201128_2021.py | vivek92-tech/SocialSphere-Insta-clone | e2a90ddc13bf59bb1e379a4fb9ef918e2ec494db | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-28 20:21
import core.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
dependencies = [
('core', '0003_user_profile_pic')... | 41.587302 | 150 | 0.605725 | 276 | 2,620 | 5.561594 | 0.333333 | 0.036482 | 0.045603 | 0.058632 | 0.491205 | 0.409772 | 0.256678 | 0.256678 | 0.191531 | 0.191531 | 0 | 0.014508 | 0.263359 | 2,620 | 62 | 151 | 42.258065 | 0.780829 | 0.017176 | 0 | 0.410714 | 1 | 0 | 0.100272 | 0.008162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.160714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f99bc8ec1f3b78cb28b3dde500d03eedb58bd827 | 1,209 | py | Python | tests/test_ges.py | stevenengler/witness-encryption | 061882a69b8d55571186b3aa1e402335e3e9bf09 | [
"MIT"
] | null | null | null | tests/test_ges.py | stevenengler/witness-encryption | 061882a69b8d55571186b3aa1e402335e3e9bf09 | [
"MIT"
] | 1 | 2021-06-27T15:14:29.000Z | 2021-06-27T21:01:06.000Z | tests/test_ges.py | stevenengler/witness-encryption | 061882a69b8d55571186b3aa1e402335e3e9bf09 | [
"MIT"
] | 1 | 2021-06-27T15:15:46.000Z | 2021-06-27T15:15:46.000Z | from trivial_ges import TrivialGES
import sys
# Testing
l = int(sys.argv[1])
n = int(sys.argv[2])
print("Instantiating with lambda = ", l, " n = ", n)
x = TrivialGES(l, n)
print("n: ", x.get_n())
print("lambda: ", x.get_lambda())
e = x.sample()
print("Sample 1:", e)
f = print("Sample 2: ", x.sample())
f = print("Sa... | 28.116279 | 74 | 0.65426 | 206 | 1,209 | 3.815534 | 0.296117 | 0.068702 | 0.05598 | 0.033079 | 0.347328 | 0.127226 | 0.127226 | 0.07888 | 0.07888 | 0 | 0 | 0.009709 | 0.148056 | 1,209 | 42 | 75 | 28.785714 | 0.753398 | 0.00579 | 0 | 0.121212 | 0 | 0 | 0.401168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0.69697 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f99dec0432733f2ecfc3b6ffb676f4124b3342e2 | 242 | py | Python | objetto/reactions.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | 8 | 2020-12-10T21:04:06.000Z | 2022-01-22T07:43:07.000Z | objetto/reactions.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | null | null | null | objetto/reactions.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | 1 | 2022-01-20T21:39:48.000Z | 2022-01-20T21:39:48.000Z | # -*- coding: utf-8 -*-
"""Reactions."""
from ._reactions import CustomReaction, Limit, LimitChildren, UniqueAttributes, reaction
__all__ = [
"reaction",
"CustomReaction",
"UniqueAttributes",
"LimitChildren",
"Limit",
]
| 18.615385 | 88 | 0.652893 | 18 | 242 | 8.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.18595 | 242 | 12 | 89 | 20.166667 | 0.771574 | 0.136364 | 0 | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9a2a90ebf87e531e5c74755cda20bb89c09ef02 | 392 | py | Python | Products/mcdutils/ftests/functest.py | zms-publishing/Products.mcdutils | c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab | [
"ZPL-2.1"
] | null | null | null | Products/mcdutils/ftests/functest.py | zms-publishing/Products.mcdutils | c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab | [
"ZPL-2.1"
] | 5 | 2019-03-28T21:17:09.000Z | 2021-09-03T10:30:16.000Z | Products/mcdutils/ftests/functest.py | zms-publishing/Products.mcdutils | c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab | [
"ZPL-2.1"
] | 2 | 2020-12-31T20:03:23.000Z | 2021-09-02T16:03:22.000Z | # Run this test from 'zopectl run'
# Requires that we are running a memcached on localhost, port 11211
import transaction
from .proxy import MemCacheProxy
proxy = MemCacheProxy(['localhost:11211'])
session = proxy.new_or_existing('foobar')
print(session)
session['abc'] = 123
print(session)
transaction.commit()
p... | 18.666667 | 67 | 0.755102 | 50 | 392 | 5.88 | 0.62 | 0.14966 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058309 | 0.125 | 392 | 20 | 68 | 19.6 | 0.798834 | 0.25 | 0 | 0.2 | 0 | 0 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.3 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9b415d1dca9f6df40e87ff53ca32952fea20b8a | 17,342 | py | Python | getPeriodicBoundaryCondition.py | mo-hanxuan/MagicPBC | 7eac61be2fa6e96b1a26f04d4ebb0971df32b281 | [
"MIT"
] | 1 | 2021-10-13T05:55:11.000Z | 2021-10-13T05:55:11.000Z | getPeriodicBoundaryCondition.py | mo-hanxuan/MagicPBC | 7eac61be2fa6e96b1a26f04d4ebb0971df32b281 | [
"MIT"
] | null | null | null | getPeriodicBoundaryCondition.py | mo-hanxuan/MagicPBC | 7eac61be2fa6e96b1a26f04d4ebb0971df32b281 | [
"MIT"
] | null | null | null | """
generate periodic boundary condition (PBC).
Two methods to detect and partition the surface-nodes:
1. graph-method: (recommended, can deal with arbitrary deformed shape):
use dictionary-data-structure to map facet-nodes to element-number,
where the surface-facet is shared ... | 44.580977 | 136 | 0.535982 | 2,214 | 17,342 | 4.177507 | 0.130985 | 0.051573 | 0.037842 | 0.038058 | 0.644718 | 0.610661 | 0.567521 | 0.561466 | 0.55087 | 0.521786 | 0 | 0.035761 | 0.300196 | 17,342 | 389 | 137 | 44.580977 | 0.726351 | 0.197613 | 0 | 0.496296 | 1 | 0.022222 | 0.186781 | 0.019253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.011111 | 0 | 0.033333 | 0.018519 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9b769f3d06dba30e5e2c04b864b5bd4e5d5cb3b | 7,194 | py | Python | protector/tests/query_test/test_query.py | adobe/opentsdb-protector | bd87336a4925c5c1352cefa86a2047c7d1f4ae2b | [
"BSD-3-Clause"
] | 9 | 2019-07-18T18:42:51.000Z | 2021-12-16T16:38:10.000Z | protector/tests/query_test/test_query.py | adobe/opentsdb-protector | bd87336a4925c5c1352cefa86a2047c7d1f4ae2b | [
"BSD-3-Clause"
] | 3 | 2019-08-14T13:28:31.000Z | 2020-06-19T22:45:18.000Z | protector/tests/query_test/test_query.py | adobe/opentsdb-protector | bd87336a4925c5c1352cefa86a2047c7d1f4ae2b | [
"BSD-3-Clause"
] | 3 | 2019-10-04T12:22:51.000Z | 2020-09-26T08:29:41.000Z | # Copyright 2019 Adobe
# All Rights Reserved.
#
# NOTICE: Adobe permits you to use, modify, and distribute this file in
# accordance with the terms of the Adobe license agreement accompanying
# it. If you have received this file from a source other than Adobe,
# then your use, modification, or distribution of it ... | 32.26009 | 72 | 0.403809 | 447 | 7,194 | 6.46085 | 0.348993 | 0.020776 | 0.033241 | 0.041551 | 0.644737 | 0.577216 | 0.543629 | 0.543629 | 0.543629 | 0.495152 | 0 | 0.132365 | 0.492772 | 7,194 | 223 | 73 | 32.26009 | 0.659085 | 0.071309 | 0 | 0.664921 | 0 | 0 | 0.686966 | 0.051147 | 0 | 0 | 0 | 0 | 0.020942 | 1 | 0.020942 | false | 0 | 0.020942 | 0 | 0.04712 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9b8ef20608e28c8979559136e3e00c9960f6993 | 633 | py | Python | cart/migrations/0004_auto_20220119_1206.py | rahulbiswas24680/Django-Ecommerce | 89c0cbc12241b89bd88ce46b6c2f2e918b5719a7 | [
"MIT"
] | null | null | null | cart/migrations/0004_auto_20220119_1206.py | rahulbiswas24680/Django-Ecommerce | 89c0cbc12241b89bd88ce46b6c2f2e918b5719a7 | [
"MIT"
] | null | null | null | cart/migrations/0004_auto_20220119_1206.py | rahulbiswas24680/Django-Ecommerce | 89c0cbc12241b89bd88ce46b6c2f2e918b5719a7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-19 12:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_product_favourite_products'),
('cart', '0003_auto_20220119_0620'),
]
operations = [
mi... | 25.32 | 112 | 0.606635 | 67 | 633 | 5.597015 | 0.626866 | 0.064 | 0.074667 | 0.117333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075431 | 0.266983 | 633 | 24 | 113 | 26.375 | 0.732759 | 0.07109 | 0 | 0.222222 | 1 | 0 | 0.168942 | 0.09215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9bab718345db9a7e575a7d3b0d9ece044fe91e8 | 9,405 | py | Python | ui/ui.py | zinuzian-portfolio/ImageLab2019-ContourFinder | 842b633267fafd40e91d3b5f604bbc561911f830 | [
"MIT"
] | 4 | 2019-07-26T05:42:43.000Z | 2022-03-29T01:50:32.000Z | ui/ui.py | zinuzian/ImageLab2019 | 842b633267fafd40e91d3b5f604bbc561911f830 | [
"MIT"
] | null | null | null | ui/ui.py | zinuzian/ImageLab2019 | 842b633267fafd40e91d3b5f604bbc561911f830 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'basic.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.se... | 57.347561 | 102 | 0.732483 | 859 | 9,405 | 7.969732 | 0.181607 | 0.061058 | 0.05317 | 0.02454 | 0.241455 | 0.131464 | 0.012854 | 0 | 0 | 0 | 0 | 0.025123 | 0.157788 | 9,405 | 163 | 103 | 57.699387 | 0.839162 | 0.018713 | 0 | 0.020134 | 1 | 0 | 0.082204 | 0.002386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013423 | false | 0 | 0.020134 | 0 | 0.040268 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9bb6f7e1dcf91393fe65066ee7efeddf90dbcf6 | 3,237 | py | Python | blog/models.py | dkirel/HappyLens | 713f0a5232b263649c15f2d76a001149014a8c65 | [
"MIT"
] | null | null | null | blog/models.py | dkirel/HappyLens | 713f0a5232b263649c15f2d76a001149014a8c65 | [
"MIT"
] | 13 | 2020-03-24T15:26:22.000Z | 2022-03-11T23:12:46.000Z | blog/models.py | dkirel/HappyLens | 713f0a5232b263649c15f2d76a001149014a8c65 | [
"MIT"
] | null | null | null | import datetime
import random
import string
import bcrypt
import os
from django.db import models
from django.conf import settings
from django.contrib import admin
from django import forms
from djangotoolbox.fields import EmbeddedModelField, ListField
SOURCES = (('du', 'Direct Upload'),
('tu', 'Tumblr Post'... | 30.828571 | 118 | 0.661415 | 387 | 3,237 | 5.405685 | 0.294574 | 0.060229 | 0.095602 | 0.107553 | 0.261472 | 0.212715 | 0.196463 | 0.09369 | 0.09369 | 0.049713 | 0 | 0.016817 | 0.210071 | 3,237 | 104 | 119 | 31.125 | 0.80133 | 0 | 0 | 0.152542 | 0 | 0 | 0.048581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.169492 | 0.084746 | 0.728814 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f9bffca2f5c517171e95372c6d4a76c18526ef34 | 1,284 | py | Python | src/arrays/word-ladder-2.py | vighnesh153/ds-algo | 79c401dad2d2e575ce1913184ca8665f2712a5b8 | [
"MIT"
] | null | null | null | src/arrays/word-ladder-2.py | vighnesh153/ds-algo | 79c401dad2d2e575ce1913184ca8665f2712a5b8 | [
"MIT"
] | null | null | null | src/arrays/word-ladder-2.py | vighnesh153/ds-algo | 79c401dad2d2e575ce1913184ca8665f2712a5b8 | [
"MIT"
] | 1 | 2020-08-09T06:37:21.000Z | 2020-08-09T06:37:21.000Z | from collections import defaultdict
def generate_graph(word_list):
graph = defaultdict(set)
for word in word_list:
for i in range(len(word)):
new_word = word[:i] + '*' + word[i + 1:]
graph[new_word].add(word)
graph[word].add(new_word)
return graph
def get_ne... | 24.226415 | 66 | 0.564642 | 151 | 1,284 | 4.642384 | 0.264901 | 0.064194 | 0.03709 | 0.062767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003538 | 0.339564 | 1,284 | 52 | 67 | 24.692308 | 0.823113 | 0 | 0 | 0.052632 | 1 | 0 | 0.000779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.026316 | 0 | 0.210526 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9c0a95e338cd22aa08929a02e9e40e30e971e32 | 5,216 | py | Python | vacca/main.py | tango-controls/VACCA | 53a7d2ec0333db37be61bf7e7859a4d114cb6db9 | [
"CC-BY-3.0"
] | 2 | 2017-09-01T20:07:30.000Z | 2020-06-08T02:26:06.000Z | vacca/main.py | tango-controls/VACCA | 53a7d2ec0333db37be61bf7e7859a4d114cb6db9 | [
"CC-BY-3.0"
] | 4 | 2016-12-24T06:37:07.000Z | 2017-09-22T15:26:38.000Z | vacca/main.py | tango-controls/VACCA | 53a7d2ec0333db37be61bf7e7859a4d114cb6db9 | [
"CC-BY-3.0"
] | 2 | 2016-12-23T19:20:41.000Z | 2017-01-31T15:07:32.000Z | #!/usr/bin/env python
"""
Vacca runner; this file emulates this call:
>taurusgui vacca
Config file (or Property name) is obtained from shell args, then env,
then properties in this order.
If empty, a DEFAULT profile is created pointing to default.py
MAIN CODE FOR PANELS GENERATION IS IN vacca.config SUBMODULE
""... | 28.502732 | 86 | 0.640913 | 727 | 5,216 | 4.537827 | 0.281981 | 0.033343 | 0.012125 | 0.008487 | 0.113671 | 0.074871 | 0.052743 | 0.044256 | 0.030918 | 0.030918 | 0 | 0.00603 | 0.173313 | 5,216 | 182 | 87 | 28.659341 | 0.759045 | 0.026649 | 0 | 0.147826 | 0 | 0 | 0.346076 | 0.00626 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026087 | 0.104348 | null | null | 0.121739 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9c4977c37ea36df8fd869138ab5ba842b5cb400 | 5,413 | py | Python | videoretrieval/base/base_dataset.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 1 | 2020-05-22T14:51:28.000Z | 2020-05-22T14:51:28.000Z | videoretrieval/base/base_dataset.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 4 | 2020-05-31T21:57:44.000Z | 2020-07-23T23:32:52.000Z | videoretrieval/base/base_dataset.py | googleinterns/via-content-understanding | ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09 | [
"Apache-2.0"
] | 1 | 2020-05-19T17:28:10.000Z | 2020-05-19T17:28:10.000Z | """Defines a base class for datasets.
Copyright 2020 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 33.83125 | 80 | 0.650656 | 715 | 5,413 | 4.766434 | 0.246154 | 0.039613 | 0.030516 | 0.034038 | 0.221538 | 0.114143 | 0.081279 | 0.081279 | 0.021714 | 0 | 0 | 0.002037 | 0.274524 | 5,413 | 159 | 81 | 34.044025 | 0.865801 | 0.426566 | 0 | 0.307692 | 0 | 0 | 0.041841 | 0.007322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.102564 | 0.051282 | 0 | 0.282051 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9d60f56eb6dffb26d2edef7271c4314abba71c4 | 2,528 | py | Python | downloader/RateLimiter.py | pixolution/PixolutionImageDownloader | 8c62982b8162894a84902012355257a52bcf0073 | [
"Apache-2.0"
] | 9 | 2019-03-27T18:25:11.000Z | 2021-09-02T03:42:29.000Z | downloader/RateLimiter.py | kobbycyber/PixolutionImageDownloader | a3f05a703be8b319f518344885b6521d0929dc57 | [
"Apache-2.0"
] | 1 | 2019-09-06T01:34:59.000Z | 2019-09-07T19:10:02.000Z | downloader/RateLimiter.py | kobbycyber/PixolutionImageDownloader | a3f05a703be8b319f518344885b6521d0929dc57 | [
"Apache-2.0"
] | 3 | 2019-10-03T15:32:24.000Z | 2021-04-14T17:45:25.000Z | #!bin/python3
# -*- coding: utf-8 -*-1
import threading
import functools
import time
from downloader.ThreadSafe import SingletonMixin
from downloader.ThreadSafe import synchronized
"""
A rate limiter to ensure that only a given number of call are made
per given time interval
"""
class RateLimiter(SingletonMixin):
... | 35.111111 | 87 | 0.65981 | 347 | 2,528 | 4.772334 | 0.357349 | 0.05314 | 0.051329 | 0.050725 | 0.110507 | 0.082729 | 0.049517 | 0.049517 | 0.049517 | 0 | 0 | 0.0155 | 0.259889 | 2,528 | 71 | 88 | 35.605634 | 0.867985 | 0.103639 | 0 | 0.189189 | 0 | 0 | 0.095813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.054054 | 0.135135 | 0.027027 | 0.324324 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9de2e094536fe180bd517067e80b6c338b16697 | 300 | py | Python | src/world_entity/player.py | rahul38888/opworld | 706959676f270fd70902f17da717c102eeae2cf0 | [
"Apache-2.0"
] | null | null | null | src/world_entity/player.py | rahul38888/opworld | 706959676f270fd70902f17da717c102eeae2cf0 | [
"Apache-2.0"
] | null | null | null | src/world_entity/player.py | rahul38888/opworld | 706959676f270fd70902f17da717c102eeae2cf0 | [
"Apache-2.0"
] | null | null | null | from ursina.prefabs.first_person_controller import FirstPersonController
class Player(FirstPersonController):
def __init__(self, position, init_health):
super(Player, self).__init__()
self.position = position
self.health = init_health
self.last_max_jump_pos = 0
| 30 | 72 | 0.73 | 34 | 300 | 6 | 0.617647 | 0.078431 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.196667 | 300 | 9 | 73 | 33.333333 | 0.842324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9e0a120b6f900b4dfe2a59915d91c0a970c5a36 | 420 | py | Python | frontend/migrations/0003_page_js.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 48 | 2018-09-30T11:07:52.000Z | 2021-12-07T03:32:59.000Z | frontend/migrations/0003_page_js.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 100 | 2018-10-13T18:37:25.000Z | 2021-11-11T12:14:45.000Z | frontend/migrations/0003_page_js.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 11 | 2018-10-08T14:59:33.000Z | 2022-03-02T03:21:09.000Z | # Generated by Django 2.1.12 on 2019-10-14 14:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('frontend', '0002_auto_20191010_0025'),
]
operations = [
migrations.AddField(
model_name='page',
name='js',
... | 22.105263 | 90 | 0.6 | 49 | 420 | 5.040816 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104918 | 0.27381 | 420 | 18 | 91 | 23.333333 | 0.704918 | 0.109524 | 0 | 0 | 1 | 0 | 0.177419 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9e62dc4c30144376a4f7514843acb32620f551e | 1,982 | py | Python | awardsapp/migrations/0002_auto_20210407_1707.py | RYAN2540/awwwards | b0de349c58904d87b9500999504f3d6967cc319d | [
"MIT"
] | null | null | null | awardsapp/migrations/0002_auto_20210407_1707.py | RYAN2540/awwwards | b0de349c58904d87b9500999504f3d6967cc319d | [
"MIT"
] | null | null | null | awardsapp/migrations/0002_auto_20210407_1707.py | RYAN2540/awwwards | b0de349c58904d87b9500999504f3d6967cc319d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-07 14:07
import awardsapp.models
import cloudinary.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('awardsapp', '0001_initial'),
]
operations = [
migrations.A... | 35.392857 | 138 | 0.583249 | 180 | 1,982 | 6.283333 | 0.433333 | 0.04863 | 0.037135 | 0.058355 | 0.268789 | 0.268789 | 0.198055 | 0.198055 | 0.198055 | 0 | 0 | 0.019122 | 0.287588 | 1,982 | 55 | 139 | 36.036364 | 0.78187 | 0.022704 | 0 | 0.244898 | 1 | 0 | 0.135401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f9e7fbdf746e7a51c77bdbcecde139d6bbeee9bf | 1,038 | py | Python | getfutures.py | pushkarlanke/stockcode | 1f7294e505090fa3b36d0a12a14c48d1ed51fd5c | [
"MIT"
] | null | null | null | getfutures.py | pushkarlanke/stockcode | 1f7294e505090fa3b36d0a12a14c48d1ed51fd5c | [
"MIT"
] | null | null | null | getfutures.py | pushkarlanke/stockcode | 1f7294e505090fa3b36d0a12a14c48d1ed51fd5c | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
import pandas as pd
import nsepy as ns
from datetime import date
# In[2]:
stocks = pd.read_csv("stocklist.csv")
# In[3]:
stocks
# In[4]:
expiry = date(2017,2,23),date(2017,3,30),date(2017,4,27),date(2017,5,25),date(2017,6,29),
date(2017,7,27),date(2017,8,31),date(2017,9,28),date(201... | 15.969231 | 100 | 0.542389 | 148 | 1,038 | 3.756757 | 0.439189 | 0.172662 | 0.035971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157823 | 0.291908 | 1,038 | 64 | 101 | 16.21875 | 0.598639 | 0 | 0 | 0 | 0 | 0 | 0.078142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dda4272b418354065f43a474b0a198ec6db38603 | 2,561 | py | Python | Users/serializers.py | gordiig/Un_RSOI_Curs_Auth | 743a423131730b0e7a025fcae5564a1d932fa92d | [
"MIT"
] | null | null | null | Users/serializers.py | gordiig/Un_RSOI_Curs_Auth | 743a423131730b0e7a025fcae5564a1d932fa92d | [
"MIT"
] | 2 | 2021-03-19T00:42:05.000Z | 2021-03-30T12:57:46.000Z | Users/serializers.py | gordiig/Un_RSOI_Curs_Auth | 743a423131730b0e7a025fcae5564a1d932fa92d | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from Users.utils import is_moderator
class UserSerializer(serializers.ModelSerializer):
"""
Сериализатор спискового представления юзера
"""
is_moderator = serializer... | 34.146667 | 120 | 0.663803 | 262 | 2,561 | 6.301527 | 0.324427 | 0.070866 | 0.036342 | 0.07026 | 0.294367 | 0.241066 | 0.241066 | 0.241066 | 0.241066 | 0.206541 | 0 | 0.01078 | 0.23936 | 2,561 | 74 | 121 | 34.608108 | 0.836756 | 0.045685 | 0 | 0.320755 | 0 | 0 | 0.086739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.245283 | 0.075472 | 0.018868 | 0.433962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dda925605dcabdacdc063dde6cc0792e74a7db52 | 2,936 | py | Python | reference/gtf2fasta.py | joshsbloom/eQTL_BYxRM | ad83786947a94089e624e4e0256a5bd91b8c0373 | [
"MIT"
] | 3 | 2018-08-06T18:41:58.000Z | 2020-08-10T02:09:55.000Z | reference/gtf2fasta.py | joshsbloom/eQTL_BYxRM | ad83786947a94089e624e4e0256a5bd91b8c0373 | [
"MIT"
] | null | null | null | reference/gtf2fasta.py | joshsbloom/eQTL_BYxRM | ad83786947a94089e624e4e0256a5bd91b8c0373 | [
"MIT"
] | 3 | 2018-07-17T15:10:45.000Z | 2021-08-16T18:00:22.000Z | #!/usr/local/bin/python
from optparse import OptionParser
from BCBio import GFF
from Bio.Seq import Seq
from Bio import SeqIO
from Bio.Alphabet import generic_dna
from Bio.SeqRecord import SeqRecord
import subprocess
import os
import sys
def lookupSequences(files):
gtf_file = open(files['gtf_file'])
records =... | 27.185185 | 71 | 0.559264 | 354 | 2,936 | 4.531073 | 0.316384 | 0.030549 | 0.029925 | 0.028055 | 0.105362 | 0.066708 | 0.066708 | 0.038653 | 0 | 0 | 0 | 0.006101 | 0.330041 | 2,936 | 107 | 72 | 27.439252 | 0.809354 | 0.007493 | 0 | 0.111111 | 0 | 0 | 0.100664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.074074 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dda96be2bce685f1e80ceb8ee5c56945f5a160c0 | 406 | py | Python | rqrunner.py | angstwad/arlo-sms | b176903bf4b92c243f3ad8d8bdd77bbb9f9289f0 | [
"Apache-2.0"
] | null | null | null | rqrunner.py | angstwad/arlo-sms | b176903bf4b92c243f3ad8d8bdd77bbb9f9289f0 | [
"Apache-2.0"
] | null | null | null | rqrunner.py | angstwad/arlo-sms | b176903bf4b92c243f3ad8d8bdd77bbb9f9289f0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from redis import Redis
from rq import Queue, Connection, Worker
from mailhook.config import config
# Preload libraries
import twilio
# Provide queue names to listen to as arguments to this script,
# similar to rqworker
redis_conn = Redis(config.REDIS_HOST)
with Connection(redis_... | 20.3 | 63 | 0.716749 | 61 | 406 | 4.721311 | 0.590164 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.182266 | 406 | 19 | 64 | 21.368421 | 0.861446 | 0.29803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ddab6e852284a2723c0501102978c5ddbd4d7516 | 1,848 | py | Python | codedigger/codeforces/views.py | prayutsu/Backend | 944c37f0941fc6836a04c5bb85936558b9b30cff | [
"Apache-2.0"
] | null | null | null | codedigger/codeforces/views.py | prayutsu/Backend | 944c37f0941fc6836a04c5bb85936558b9b30cff | [
"Apache-2.0"
] | null | null | null | codedigger/codeforces/views.py | prayutsu/Backend | 944c37f0941fc6836a04c5bb85936558b9b30cff | [
"Apache-2.0"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import generics, mixins, permissions
from .models import user, country, organization, contest
from .serializers import UserSerializer, CountrySerializer, OrganizationSerializer, ContestSerializer
from user.seriali... | 29.333333 | 101 | 0.704004 | 200 | 1,848 | 6.425 | 0.395 | 0.051362 | 0.046693 | 0.051362 | 0.228016 | 0.184436 | 0.184436 | 0.155642 | 0.085603 | 0 | 0 | 0.001354 | 0.200758 | 1,848 | 62 | 102 | 29.806452 | 0.868653 | 0 | 0 | 0.044444 | 0 | 0 | 0.04816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.311111 | 0.044444 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ddafd0ee70c0f3cf9341e2b26d9673757a2559e3 | 507 | py | Python | main.py | PravunathSingh/Realtime-Tweets | a5c28cb77cb2f7a10cbec4372cb2755bc7cdbbce | [
"MIT"
] | null | null | null | main.py | PravunathSingh/Realtime-Tweets | a5c28cb77cb2f7a10cbec4372cb2755bc7cdbbce | [
"MIT"
] | null | null | null | main.py | PravunathSingh/Realtime-Tweets | a5c28cb77cb2f7a10cbec4372cb2755bc7cdbbce | [
"MIT"
] | null | null | null | # create a credentials.py file with the following keys
from credentials import ckey, csecret, atoken, asecret
from tweepy import Stream, OAuthHandler
from tweepy.streaming import StreamListener
class listener(StreamListener):
def on_data(self, data):
print(data)
return True
def on_error(self,... | 26.684211 | 54 | 0.747535 | 63 | 507 | 5.952381 | 0.619048 | 0.058667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16568 | 507 | 18 | 55 | 28.166667 | 0.886525 | 0.102564 | 0 | 0 | 0 | 0 | 0.013245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0.153846 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ddb05e35581e22c6b5e09dc38b31ea96615dcf67 | 643 | py | Python | apps/sushi/migrations/0038_jsonfield.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | apps/sushi/migrations/0038_jsonfield.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | apps/sushi/migrations/0038_jsonfield.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-20 13:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sushi', '0037_broken_credentials'),
]
operations = [
migrations.AlterField(
model_name='sushicr... | 25.72 | 76 | 0.620529 | 65 | 643 | 6.030769 | 0.661538 | 0.040816 | 0.127551 | 0.147959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040426 | 0.269051 | 643 | 24 | 77 | 26.791667 | 0.793617 | 0.069984 | 0 | 0.222222 | 1 | 0 | 0.169463 | 0.038591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ddb4c125af06d12d9b35ca10f3c0fccf34485750 | 3,152 | py | Python | apps/cars/migrations/0001_initial.py | Marpop/demo-car-app | ed3c1892e476eee8e6dcd3836ffc709cc7cac44b | [
"MIT"
] | null | null | null | apps/cars/migrations/0001_initial.py | Marpop/demo-car-app | ed3c1892e476eee8e6dcd3836ffc709cc7cac44b | [
"MIT"
] | 1 | 2021-06-21T00:09:04.000Z | 2021-06-23T20:23:19.000Z | apps/cars/migrations/0001_initial.py | Marpop/demo-car-app | ed3c1892e476eee8e6dcd3836ffc709cc7cac44b | [
"MIT"
] | null | null | null | import django.core.validators
import django.db.models.deletion
import django.utils.timezone
from django.db import migrations, models
import model_utils.fields
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Car",
... | 30.901961 | 72 | 0.36453 | 177 | 3,152 | 6.384181 | 0.327684 | 0.063717 | 0.084956 | 0.092035 | 0.548673 | 0.502655 | 0.502655 | 0.502655 | 0.502655 | 0.502655 | 0 | 0.004261 | 0.553299 | 3,152 | 101 | 73 | 31.207921 | 0.798295 | 0 | 0 | 0.631579 | 0 | 0 | 0.038388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.094737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddb685b28868a7a064c834751c2374db72027516 | 449 | py | Python | src/loaders/loader_json.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | 2 | 2020-02-27T13:15:07.000Z | 2020-09-19T15:19:29.000Z | src/loaders/loader_json.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | src/loaders/loader_json.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | import os
import json
from .exceptions import DataLoadException
class JsonDataLoader:
"""
Load base calculation data
from provided JSON file.
"""
def __init__(self, path):
self._path = path
def load(self):
if not os.path.exists(self._path):
raise DataLoadExceptio... | 19.521739 | 64 | 0.605791 | 55 | 449 | 4.818182 | 0.545455 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305122 | 449 | 22 | 65 | 20.409091 | 0.849359 | 0.113586 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ddc3fe6e40847eeb621473a4770402ffd51b7277 | 408 | py | Python | backend/urls.py | opustm/mvp-backend | 3c25d575fbd299c84df48e8448ec63d11cc08a8e | [
"MIT"
] | null | null | null | backend/urls.py | opustm/mvp-backend | 3c25d575fbd299c84df48e8448ec63d11cc08a8e | [
"MIT"
] | null | null | null | backend/urls.py | opustm/mvp-backend | 3c25d575fbd299c84df48e8448ec63d11cc08a8e | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from .views import documentation
from .router import router
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
path('tokenAuth/', obtain_jwt_token),
path('', documentation, name='documentation'),
path('', include('m... | 25.5 | 53 | 0.720588 | 51 | 408 | 5.647059 | 0.411765 | 0.114583 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144608 | 408 | 15 | 54 | 27.2 | 0.825215 | 0 | 0 | 0 | 0 | 0 | 0.093137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ddc79ecf400ad7abcb7a259041933689d656f04b | 327 | py | Python | Warmup/compare_the_triplet.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | Warmup/compare_the_triplet.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | Warmup/compare_the_triplet.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | def compare(a, b):
scoreA = 0
scoreB = 0
for i in range(len(a)):
if a[i] > b[i]:
scoreA += 1
elif a[i] < b[i]:
scoreB += 1
return (scoreA, scoreB)
a = list(map(int, input().split()))
b = list(map(int, input().split()))
scoreA, scoreB = compare(a,b)
print(scoreA, ... | 23.357143 | 35 | 0.510703 | 51 | 327 | 3.27451 | 0.431373 | 0.215569 | 0.107784 | 0.047904 | 0.239521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.30581 | 327 | 14 | 36 | 23.357143 | 0.718062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddcaa9bc86bac4a9f804bf62daebf45eb899e40a | 2,212 | py | Python | talks/2016-09-27-intro-tensorflow/visualize_activations.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 12 | 2016-10-05T04:32:41.000Z | 2020-08-24T08:23:54.000Z | talks/2016-09-27-intro-tensorflow/visualize_activations.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 2 | 2016-10-04T19:38:10.000Z | 2017-12-15T17:43:41.000Z | talks/2016-09-27-intro-tensorflow/visualize_activations.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 2 | 2017-10-03T23:16:21.000Z | 2017-12-13T23:53:53.000Z | from models.base_convnet import inference
import matplotlib.pyplot as plt
import tensorflow as tf
import cv2
import os
IMAGE_SIZE = 24
def plotNNFilter(units):
"""
Function to plot a certain layer
:param units: convnet layer
"""
filters = units.shape[3]
plt.figure(1, figsize=(20, 20))
for... | 30.30137 | 82 | 0.670434 | 303 | 2,212 | 4.762376 | 0.392739 | 0.033264 | 0.031185 | 0.056133 | 0.146916 | 0.087318 | 0.036036 | 0 | 0 | 0 | 0 | 0.020349 | 0.222423 | 2,212 | 73 | 83 | 30.30137 | 0.818605 | 0.046112 | 0 | 0.073171 | 0 | 0 | 0.035885 | 0.01555 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.02439 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddd0033520b18395bd243c68cd33c70e65c6ed9b | 487 | py | Python | algoritmos/sort_recursive.py | corahama/python | 234fa60ac6258905b158f1e114868a2629d52773 | [
"MIT"
] | 1 | 2021-12-22T16:02:27.000Z | 2021-12-22T16:02:27.000Z | algoritmos/sort_recursive.py | corahama/python | 234fa60ac6258905b158f1e114868a2629d52773 | [
"MIT"
] | null | null | null | algoritmos/sort_recursive.py | corahama/python | 234fa60ac6258905b158f1e114868a2629d52773 | [
"MIT"
] | null | null | null | def sort_array(stack):
if len(stack) == 0:
return stack
top = stack.pop()
sort_array(stack)
insert_element_in_ordered_stack(stack, top)
return stack
def insert_element_in_ordered_stack(stack, value):
if len(stack) == 0 or stack[-1] <= value:
stack.append(value)
return
... | 22.136364 | 50 | 0.638604 | 70 | 487 | 4.114286 | 0.357143 | 0.09375 | 0.15625 | 0.229167 | 0.368056 | 0.368056 | 0.256944 | 0 | 0 | 0 | 0 | 0.024129 | 0.234086 | 487 | 21 | 51 | 23.190476 | 0.747989 | 0 | 0 | 0.25 | 0 | 0 | 0.016427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.3125 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.