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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df1619e0de764e35a2ccdc3d5a6d44d209a6d530 | 468 | py | Python | disp/cli/cmd_tools.py | zhubonan/disp | c36da25fc97e38111a6786df24957f01ba7f30f3 | [
"MIT"
] | 1 | 2022-03-01T03:44:43.000Z | 2022-03-01T03:44:43.000Z | disp/cli/cmd_tools.py | zhubonan/disp | c36da25fc97e38111a6786df24957f01ba7f30f3 | [
"MIT"
] | null | null | null | disp/cli/cmd_tools.py | zhubonan/disp | c36da25fc97e38111a6786df24957f01ba7f30f3 | [
"MIT"
] | null | null | null | """
Collection of useful tools
"""
import click
from ase.io import read
from disp.tools.modcell import modify_cell
@click.group('tools')
@click.pass_context
def tools(ctx):
"""Collection of tools"""
_ = ctx
@tools.command('modcell')
@click.argument('base_cell')
@click.argument('other_cell')
def modcell(base... | 21.272727 | 67 | 0.717949 | 68 | 468 | 4.794118 | 0.470588 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 468 | 21 | 68 | 22.285714 | 0.804938 | 0.205128 | 0 | 0 | 0 | 0 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
df1791b726c2c4c30dcb445047b45db003847db1 | 485 | py | Python | String/784.The Longest Common Prefix II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | String/784.The Longest Common Prefix II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | String/784.The Longest Common Prefix II/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param words: the n strings
@param target: the target string
@return: The ans
"""
def the_longest_common_prefix(self, words, target):
# write your code here
ans = 0
for word in words:
same = 0
for j in range(0, len(target)):
... | 24.25 | 61 | 0.480412 | 61 | 485 | 3.770492 | 0.540984 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017986 | 0.426804 | 485 | 20 | 62 | 24.25 | 0.809353 | 0.204124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
df18cfd08258cd819d95a1c31c14beb7287ddf2d | 485 | py | Python | examples/list_stable_particles.py | tianluyuan/particletools | 73fc56e7ec1fdd2de026852b68cc58ebb5ea72a9 | [
"MIT"
] | 2 | 2015-12-05T21:01:16.000Z | 2018-05-10T14:37:39.000Z | examples/list_stable_particles.py | tianluyuan/particletools | 73fc56e7ec1fdd2de026852b68cc58ebb5ea72a9 | [
"MIT"
] | 3 | 2018-06-08T14:39:42.000Z | 2019-06-28T20:22:39.000Z | examples/list_stable_particles.py | tianluyuan/particletools | 73fc56e7ec1fdd2de026852b68cc58ebb5ea72a9 | [
"MIT"
] | 4 | 2018-01-04T14:06:22.000Z | 2019-04-27T20:03:32.000Z | from __future__ import print_function
from particletools.tables import (PYTHIAParticleData, c_speed_of_light,
print_stable, make_stable_list)
import math
pdata = PYTHIAParticleData()
print_stable(pdata.ctau('D0') / c_speed_of_light,
title=('Particles with known finite li... | 37.307692 | 72 | 0.674227 | 62 | 485 | 5 | 0.564516 | 0.03871 | 0.051613 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02122 | 0.22268 | 485 | 12 | 73 | 40.416667 | 0.801061 | 0 | 0 | 0 | 0 | 0 | 0.216495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
df19b7348273520ff9b25234f69c488ff8ccb734 | 305 | py | Python | bin/shell.py | charnley/optimize_gamess_parameters | c2cf28d17b73b1d1177a110ac5ce12dbb34b0b73 | [
"MIT"
] | 1 | 2021-06-03T18:37:28.000Z | 2021-06-03T18:37:28.000Z | bin/shell.py | charnley/optimize_gamess_parameters | c2cf28d17b73b1d1177a110ac5ce12dbb34b0b73 | [
"MIT"
] | null | null | null | bin/shell.py | charnley/optimize_gamess_parameters | c2cf28d17b73b1d1177a110ac5ce12dbb34b0b73 | [
"MIT"
] | null | null | null |
from subprocess import Popen, PIPE
def shell(cmd, shell=False):
if shell:
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
else:
cmd = cmd.split()
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
output, err = p.communicate()
return output
| 20.333333 | 72 | 0.622951 | 42 | 305 | 4.52381 | 0.5 | 0.084211 | 0.094737 | 0.2 | 0.305263 | 0.305263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255738 | 305 | 14 | 73 | 21.785714 | 0.837004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
df19f9645cf6aa4e457aabcc7af0e1510407c3fb | 1,837 | py | Python | app/question/migrations/0001_initial.py | PICT-ACM-Student-Chapter/OJ_API | 9172c2bedb82d5091d535d27c548385b35aeacad | [
"MIT"
] | 2 | 2021-08-14T18:10:37.000Z | 2022-03-03T17:16:45.000Z | app/question/migrations/0001_initial.py | PICT-ACM-Student-Chapter/OJ_API | 9172c2bedb82d5091d535d27c548385b35aeacad | [
"MIT"
] | null | null | null | app/question/migrations/0001_initial.py | PICT-ACM-Student-Chapter/OJ_API | 9172c2bedb82d5091d535d27c548385b35aeacad | [
"MIT"
] | 1 | 2021-09-22T09:12:21.000Z | 2021-09-22T09:12:21.000Z | # Generated by Django 3.1.4 on 2020-12-22 07:46
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import question.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('core', '0001_initial'),
]
operations = [
... | 41.75 | 166 | 0.605879 | 182 | 1,837 | 5.989011 | 0.423077 | 0.068807 | 0.055046 | 0.06055 | 0.185321 | 0.133945 | 0.078899 | 0 | 0 | 0 | 0 | 0.019636 | 0.251497 | 1,837 | 43 | 167 | 42.72093 | 0.773091 | 0.024496 | 0 | 0.222222 | 1 | 0 | 0.109497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
df1e17f93813a288887df06baac1be22d96dab38 | 1,705 | py | Python | jim/fizzbuzz_objects.py | CorySpitzer/FizzBuzz | c225723805175f77a5cda3da98d8859e9943b7bc | [
"MIT"
] | null | null | null | jim/fizzbuzz_objects.py | CorySpitzer/FizzBuzz | c225723805175f77a5cda3da98d8859e9943b7bc | [
"MIT"
] | null | null | null | jim/fizzbuzz_objects.py | CorySpitzer/FizzBuzz | c225723805175f77a5cda3da98d8859e9943b7bc | [
"MIT"
] | 1 | 2020-04-24T11:12:26.000Z | 2020-04-24T11:12:26.000Z | """
fizzbuzz_objects.py (Python 2.7.5)
An object oriented approach to the FizzBuzz problem.
Jim Mahoney | cs.marlboro.edu | Jan 2014 | opensource.org/licenses/MIT
"""
class FizzBuzzInt(object):
""" An integer with a string representation per the FizzBuzz recipe.
>>> print FizzBuzzInt(7)
7... | 27.5 | 77 | 0.561877 | 200 | 1,705 | 4.655 | 0.49 | 0.038668 | 0.032223 | 0.038668 | 0.083781 | 0.083781 | 0.083781 | 0.083781 | 0.083781 | 0.083781 | 0 | 0.027875 | 0.326686 | 1,705 | 61 | 78 | 27.95082 | 0.783101 | 0.153079 | 0 | 0.083333 | 0 | 0 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 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 |
df1fedf40898efe3d4cf2f0274b0fc7ffbd014ca | 12,179 | py | Python | vendors/rez-2.23.1-py2.7/rez/serialise.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 4 | 2019-01-11T03:41:28.000Z | 2019-09-12T06:57:17.000Z | vendors/rez-2.23.1-py2.7/rez/serialise.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | null | null | null | vendors/rez-2.23.1-py2.7/rez/serialise.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 2 | 2019-01-10T05:00:18.000Z | 2020-02-15T16:32:56.000Z | """
Read and write data from file. File caching via a memcached server is supported.
"""
from rez.package_resources_ import package_rex_keys
from rez.utils.scope import ScopeContext
from rez.utils.sourcecode import SourceCode, early, late, include
from rez.utils.logging_ import print_debug
from rez.utils.filesystem imp... | 33.095109 | 87 | 0.597504 | 1,460 | 12,179 | 4.830137 | 0.269863 | 0.022689 | 0.040839 | 0.023823 | 0.148043 | 0.121384 | 0.106069 | 0.077992 | 0.077992 | 0.054736 | 0 | 0.001817 | 0.32203 | 12,179 | 367 | 88 | 33.185286 | 0.852247 | 0.158634 | 0 | 0.177665 | 0 | 0 | 0.05046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005076 | 0.101523 | null | null | 0.010152 | 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 |
df2389e71cb7139f57a390f14cee0af9c38689c3 | 544 | py | Python | web/pipeline/migrations/0078_auto_20200904_0711.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0078_auto_20200904_0711.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0078_auto_20200904_0711.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-09-04 07:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0077_community_parent_community'),
]
operations = [
migrations.AlterField(
model_n... | 27.2 | 152 | 0.672794 | 62 | 544 | 5.758065 | 0.612903 | 0.067227 | 0.078431 | 0.123249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0.213235 | 544 | 19 | 153 | 28.631579 | 0.787383 | 0.084559 | 0 | 0 | 1 | 0 | 0.199597 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
df28b6272fb8ba4458a616d52214399d455abf3b | 4,100 | py | Python | src/python/wakplot.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | 7 | 2018-04-03T06:37:42.000Z | 2021-11-08T11:44:06.000Z | src/python/wakplot.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | null | null | null | src/python/wakplot.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | 3 | 2016-10-27T20:23:34.000Z | 2019-12-13T13:54:11.000Z | #!/usr/bin/env python
from scipy import *
from pylab import *
from scipy import weave
import glob, os, sys
code="""
#line 10 "wakplot.py"
using namespace std;
double Ry2eV = 13.6056920311654;
double Ax = 0;
for (int ib=0; ib<nbands; ib++){
complex<double> ekw=ekom(ib);
if (e... | 29.927007 | 164 | 0.497561 | 526 | 4,100 | 3.855513 | 0.334601 | 0.027613 | 0.023669 | 0.031558 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03195 | 0.335854 | 4,100 | 136 | 165 | 30.147059 | 0.712817 | 0.067561 | 0 | 0.040404 | 0 | 0.010101 | 0.160105 | 0.017848 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010101 | 0.040404 | null | null | 0.070707 | 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 |
df356d7e27883dc962bbfd0f942b0413223a69f3 | 1,413 | py | Python | vendoasg.py | asgard-sp-z-o-o/vendoasg | 9fbd45fc76acd89228773a7ca6a0d2e27382aa31 | [
"MIT"
] | null | null | null | vendoasg.py | asgard-sp-z-o-o/vendoasg | 9fbd45fc76acd89228773a7ca6a0d2e27382aa31 | [
"MIT"
] | null | null | null | vendoasg.py | asgard-sp-z-o-o/vendoasg | 9fbd45fc76acd89228773a7ca6a0d2e27382aa31 | [
"MIT"
] | null | null | null | #! python
#-*- coding: utf-8 -*-
import requests
import json
class Vendo:
def __init__(self, url_api):
self.setHeader({'Content-Type' : 'application/json', "Content-Length" : "length"})
self.setApi(url_api)
def setApi(self,api_url):
self.API_URL = api_url
def setHeader(self, api... | 32.113636 | 90 | 0.624912 | 164 | 1,413 | 5.152439 | 0.280488 | 0.057988 | 0.089941 | 0.108876 | 0.252071 | 0.190533 | 0.101775 | 0 | 0 | 0 | 0 | 0.000931 | 0.239915 | 1,413 | 44 | 91 | 32.113636 | 0.785847 | 0.020524 | 0 | 0.125 | 0 | 0 | 0.185828 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 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 |
df37caa36bc64bd6f243703a127723d1eecec34a | 7,088 | py | Python | lygos/plot_tess_psfn.py | tdaylan/pandora | 98a3184d77eaa8c10cf3e8e99d61150674aebacc | [
"MIT"
] | 2 | 2020-07-17T12:04:02.000Z | 2020-08-04T08:43:51.000Z | lygos/plot_tess_psfn.py | tdaylan/pandora | 98a3184d77eaa8c10cf3e8e99d61150674aebacc | [
"MIT"
] | null | null | null | lygos/plot_tess_psfn.py | tdaylan/pandora | 98a3184d77eaa8c10cf3e8e99d61150674aebacc | [
"MIT"
] | null | null | null | from util import *
import h5py
pathdata = os.environ['TCAT_DATA_PATH'] + '/tesspsfn/'
pathtemp = pathdata + 'temp.txt'
indxcams = range(1, 5)
indxccds = range(1, 5)
indxrows = [1, 513, 1025, 1536, 2048]
indxcols = [45, 557, 1069, 1580, 2092]
#boolplotflgt = False
boolplotflgt = True
pathsave = pathdata + 'listpsfn.... | 33.752381 | 118 | 0.495909 | 849 | 7,088 | 4.097762 | 0.246172 | 0.022133 | 0.048865 | 0.051739 | 0.390342 | 0.366772 | 0.294337 | 0.275366 | 0.275366 | 0.275366 | 0 | 0.047509 | 0.328866 | 7,088 | 209 | 119 | 33.913876 | 0.683834 | 0.624012 | 0 | 0.095238 | 0 | 0 | 0.083333 | 0.011164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.095238 | 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 |
df37ce4cd583eef92c091f30fa16e37a0fb0e597 | 1,371 | py | Python | product_api/api.py | Lnvictor/ProductAPI | e54c1522fa23f88a6850fbea755577cefff76e20 | [
"Apache-2.0"
] | null | null | null | product_api/api.py | Lnvictor/ProductAPI | e54c1522fa23f88a6850fbea755577cefff76e20 | [
"Apache-2.0"
] | null | null | null | product_api/api.py | Lnvictor/ProductAPI | e54c1522fa23f88a6850fbea755577cefff76e20 | [
"Apache-2.0"
] | null | null | null | """
Http Server for our API
"""
from flask import Flask, jsonify, request
from controller import product_controller
app = Flask(__name__)
def serialize(products):
return list(map(lambda p: p.serialize(), products))
@app.route("/product/<name>")
def get_product(name: str):
return jsonify({"product": produ... | 23.637931 | 88 | 0.66229 | 171 | 1,371 | 5.111111 | 0.25731 | 0.116705 | 0.09611 | 0.045767 | 0.251716 | 0.189931 | 0.112128 | 0.112128 | 0.112128 | 0.112128 | 0 | 0 | 0.171408 | 1,371 | 57 | 89 | 24.052632 | 0.769366 | 0.016776 | 0 | 0.114286 | 0 | 0 | 0.126119 | 0.034328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.057143 | 0.114286 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
df425afe1e88edd6315b0a065ef6548c348e63d6 | 1,249 | py | Python | backend/api/migrations/0011_annotation.py | cerob/bounswe2018group6 | 6f18bfa629a7422862151050a4e187163baddb68 | [
"MIT"
] | 12 | 2018-02-06T06:52:07.000Z | 2021-04-11T15:19:15.000Z | backend/api/migrations/0011_annotation.py | ozgursolak/bounswe2018group6 | 6f18bfa629a7422862151050a4e187163baddb68 | [
"MIT"
] | 151 | 2018-02-11T20:53:48.000Z | 2019-01-08T08:35:46.000Z | backend/api/migrations/0011_annotation.py | ozgursolak/bounswe2018group6 | 6f18bfa629a7422862151050a4e187163baddb68 | [
"MIT"
] | 7 | 2018-02-06T20:27:25.000Z | 2019-02-23T10:10:01.000Z | # Generated by Django 2.1.2 on 2018-12-28 16:58
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name')... | 37.848485 | 150 | 0.626101 | 130 | 1,249 | 5.853846 | 0.538462 | 0.04205 | 0.055191 | 0.086728 | 0.22339 | 0.13929 | 0.13929 | 0.13929 | 0.13929 | 0 | 0 | 0.037076 | 0.244195 | 1,249 | 32 | 151 | 39.03125 | 0.769068 | 0.036029 | 0 | 0 | 1 | 0 | 0.142263 | 0.063228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.269231 | 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 |
df42b4189fa35c0ed0556b7478334c2cf02cae32 | 3,303 | py | Python | multivariate.py | ChaofanChen/ORCSimulator | af2122239d4ff9d541490b01d063b70e70e3d1cb | [
"Info-ZIP"
] | null | null | null | multivariate.py | ChaofanChen/ORCSimulator | af2122239d4ff9d541490b01d063b70e70e3d1cb | [
"Info-ZIP"
] | 4 | 2020-02-06T17:55:00.000Z | 2020-11-12T07:56:37.000Z | multivariate.py | ChaofanChen/ORCSimulator | af2122239d4ff9d541490b01d063b70e70e3d1cb | [
"Info-ZIP"
] | 6 | 2020-01-21T09:26:49.000Z | 2021-04-18T09:57:27.000Z | import matplotlib.pyplot as plt
from geothermal_orc_design import multivariate_optimization
from collections import OrderedDict
from znes_plotting import plot, shared
import pandas as pd
import numpy as np
import itertools
from matplotlib.ticker import MaxNLocator
import json
import sys
cur_dir = sys.argv[1] if len(s... | 34.051546 | 105 | 0.669391 | 514 | 3,303 | 4.182879 | 0.383268 | 0.029767 | 0.027907 | 0.022326 | 0.090233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029808 | 0.146836 | 3,303 | 96 | 106 | 34.40625 | 0.732434 | 0.543143 | 0 | 0 | 0 | 0 | 0.125777 | 0.022115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.30303 | 0 | 0.30303 | 0.030303 | 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 |
df5768db39947d3207bb733619d11d3731cabd1e | 1,829 | py | Python | common/env_wrapper.py | Frager/Deep-Neuroevolution-In-SC2LE | acebeccf6461cc46d8503bc33b2ce9f1cd8af844 | [
"MIT"
] | 1 | 2020-11-09T02:24:21.000Z | 2020-11-09T02:24:21.000Z | common/env_wrapper.py | Frager/Deep-Neuroevolution-In-SC2LE | acebeccf6461cc46d8503bc33b2ce9f1cd8af844 | [
"MIT"
] | null | null | null | common/env_wrapper.py | Frager/Deep-Neuroevolution-In-SC2LE | acebeccf6461cc46d8503bc33b2ce9f1cd8af844 | [
"MIT"
] | null | null | null | from common.preprocessor import Preprocessor
class EnvWrapper:
# Wrapper class for SC2Env.
# Used to fit the data coming from SC2Env to the agents model and vice versa
def __init__(self, env, model_config):
self.env = env
self.model_config = model_config
self.preprocesso... | 39.76087 | 100 | 0.674686 | 204 | 1,829 | 5.862745 | 0.284314 | 0.107023 | 0.043478 | 0.073579 | 0.167224 | 0.132107 | 0 | 0 | 0 | 0 | 0 | 0.001468 | 0.255331 | 1,829 | 45 | 101 | 40.644444 | 0.876652 | 0.118097 | 0 | 0.0625 | 0 | 0 | 0.046065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.03125 | 0.0625 | 0.4375 | 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 |
df57bca7279a1dfe16ec3856449b0f28ce2709aa | 5,223 | py | Python | py/rest/convert.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | py/rest/convert.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | py/rest/convert.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | import py
from py.__.process.cmdexec import ExecutionFailed
# utility functions to convert between various formats
format_to_dotargument = {"png": "png",
"eps": "ps",
"ps": "ps",
"pdf": "ps",
}
def ps2eps(ps):
# X... | 31.847561 | 88 | 0.537239 | 667 | 5,223 | 4.161919 | 0.284858 | 0.025937 | 0.04611 | 0.030259 | 0.126081 | 0.088256 | 0.063401 | 0.063401 | 0.063401 | 0.063401 | 0 | 0.015962 | 0.316293 | 5,223 | 163 | 89 | 32.042945 | 0.761411 | 0.04844 | 0 | 0.100719 | 0 | 0.014388 | 0.222491 | 0.019146 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028777 | null | null | 0.007194 | 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 |
df5856e58057a335253fc4c1aa67ee4fbe7ed20e | 1,138 | py | Python | apps/shortener/migrations/0009_auto_20200824_2124.py | ShAlireza/Yektanet | 9e638395b85346b7536cf422c514ae7762faa9b4 | [
"MIT"
] | null | null | null | apps/shortener/migrations/0009_auto_20200824_2124.py | ShAlireza/Yektanet | 9e638395b85346b7536cf422c514ae7762faa9b4 | [
"MIT"
] | null | null | null | apps/shortener/migrations/0009_auto_20200824_2124.py | ShAlireza/Yektanet | 9e638395b85346b7536cf422c514ae7762faa9b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-24 21:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shortener', '0008_auto_20200824_1342'),
]
operations = [
migrations.AlterField(
model_name='short... | 33.470588 | 151 | 0.596661 | 116 | 1,138 | 5.689655 | 0.551724 | 0.036364 | 0.042424 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037349 | 0.27065 | 1,138 | 33 | 152 | 34.484848 | 0.757831 | 0.037786 | 0 | 0.185185 | 1 | 0 | 0.124428 | 0.041171 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 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 |
df59bead4afe8e02583f52992748c1f5177a0b4b | 21,496 | py | Python | build/PureCloudPlatformClientV2/models/evaluation.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 10 | 2019-02-22T00:27:08.000Z | 2021-09-12T23:23:44.000Z | build/PureCloudPlatformClientV2/models/evaluation.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 5 | 2018-06-07T08:32:00.000Z | 2021-07-28T17:37:26.000Z | build/PureCloudPlatformClientV2/models/evaluation.py | MyPureCloud/platform-client-sdk-python | 51249f4c655a1c8a67561c9eaa852ef95e25e57d | [
"MIT"
] | 6 | 2020-04-09T17:43:07.000Z | 2022-02-17T08:48:05.000Z | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... | 28.173001 | 215 | 0.592994 | 2,416 | 21,496 | 5.11548 | 0.104305 | 0.048548 | 0.12946 | 0.042479 | 0.579254 | 0.453354 | 0.399304 | 0.31386 | 0.273809 | 0.259406 | 0 | 0.003592 | 0.326572 | 21,496 | 762 | 216 | 28.209974 | 0.850166 | 0.434592 | 0 | 0.109489 | 0 | 0 | 0.107484 | 0.004312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208029 | false | 0 | 0.018248 | 0 | 0.343066 | 0.00365 | 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 |
df5dc1575dd57a90432ea1da757efdaeb72eeb5e | 692 | py | Python | addons/pythonscript_repl/plugin.py | matheus2740/godot-python | f98cceb5fa13fd134b4353a45ba0fc8f0f8e6f7e | [
"CC-BY-3.0"
] | null | null | null | addons/pythonscript_repl/plugin.py | matheus2740/godot-python | f98cceb5fa13fd134b4353a45ba0fc8f0f8e6f7e | [
"CC-BY-3.0"
] | null | null | null | addons/pythonscript_repl/plugin.py | matheus2740/godot-python | f98cceb5fa13fd134b4353a45ba0fc8f0f8e6f7e | [
"CC-BY-3.0"
] | null | null | null | from godot import exposed, export, EditorPlugin
from godot import *
BASE_RES = str(ProjectSettings.localize_path(__file__)).rsplit("/", 1)[0]
PYTHON_REPL_RES = ResourceLoader.load(f"{BASE_RES}/python_repl.tscn")
@exposed(tool=True)
class plugin(EditorPlugin):
def _enter_tree(self):
# Initialization of t... | 28.833333 | 85 | 0.700867 | 95 | 692 | 4.821053 | 0.536842 | 0.104803 | 0.065502 | 0.065502 | 0.100437 | 0.100437 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.196532 | 692 | 23 | 86 | 30.086957 | 0.820144 | 0.102601 | 0 | 0 | 0 | 0 | 0.063107 | 0.043689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
df605613ab7557f9287678d5ae30ae377ee4c675 | 4,289 | py | Python | tests/integration/test_encrypted_disk/test.py | thealexjo/ClickHouse | b65fd7fbfe15fff9cff933d07b2cb0b48be56ed3 | [
"Apache-2.0"
] | 1 | 2021-07-21T21:05:16.000Z | 2021-07-21T21:05:16.000Z | tests/integration/test_encrypted_disk/test.py | thealexjo/ClickHouse | b65fd7fbfe15fff9cff933d07b2cb0b48be56ed3 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_encrypted_disk/test.py | thealexjo/ClickHouse | b65fd7fbfe15fff9cff933d07b2cb0b48be56ed3 | [
"Apache-2.0"
] | null | null | null | import pytest
from helpers.cluster import ClickHouseCluster
from helpers.client import QueryRuntimeException
FIRST_PART_NAME = "all_1_1_0"
@pytest.fixture(scope="module")
def cluster():
try:
cluster = ClickHouseCluster(__file__)
node = cluster.add_instance("node",
... | 39.712963 | 219 | 0.64304 | 529 | 4,289 | 5.026465 | 0.175803 | 0.084618 | 0.024821 | 0.041369 | 0.753291 | 0.697255 | 0.697255 | 0.682964 | 0.682964 | 0.682964 | 0 | 0.016215 | 0.20914 | 4,289 | 107 | 220 | 40.084112 | 0.767689 | 0 | 0 | 0.5625 | 0 | 0 | 0.400375 | 0.11007 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.0625 | false | 0 | 0.046875 | 0 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df644498e07e2840a6a8672c916768dfacbb645f | 683 | py | Python | makai_kingdom/wish.py | misterfifths/nis_mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | 1 | 2021-10-18T13:42:09.000Z | 2021-10-18T13:42:09.000Z | makai_kingdom/wish.py | misterfifths/nis-mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | null | null | null | makai_kingdom/wish.py | misterfifths/nis-mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | null | null | null | import ctypes as C
from typing import Final
from platform_config import PSP
from astruct import typed_struct
from astruct.type_hints import *
from utils import CountedTable
@typed_struct
class Wish(C.Structure):
_pack_ = 1
mana_cost: CUInt32
level_req: CUInt16
id: CUInt16
_zero: CUInt8
_NA... | 21.34375 | 73 | 0.718887 | 94 | 683 | 4.946809 | 0.585106 | 0.047312 | 0.047312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033088 | 0.203514 | 683 | 31 | 74 | 22.032258 | 0.821691 | 0 | 0 | 0 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.904762 | 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 |
df657504e6b9d97764139bb83f05842137501da1 | 12,242 | py | Python | src/data_process/convert_face_to_voc.py | MatthewK3023/FoodCalorieDetector | b0bfa4e0f10bd70bbb9b2bee085a15706c566fe5 | [
"MIT"
] | null | null | null | src/data_process/convert_face_to_voc.py | MatthewK3023/FoodCalorieDetector | b0bfa4e0f10bd70bbb9b2bee085a15706c566fe5 | [
"MIT"
] | null | null | null | src/data_process/convert_face_to_voc.py | MatthewK3023/FoodCalorieDetector | b0bfa4e0f10bd70bbb9b2bee085a15706c566fe5 | [
"MIT"
] | null | null | null | import os,h5py,cv2,sys,shutil
import numpy as np
from xml.dom.minidom import Document
rootdir="../"
convet2yoloformat=True
convert2vocformat=True
resized_dim=(48, 48)
#最小取20大小的脸,并且补齐
minsize2select=20
usepadding=True
datasetprefix="/home/yanhe/data/widerface"#
def gen_hdf5():
imgdir=rootdir+"/WIDE... | 44.035971 | 127 | 0.524669 | 1,223 | 12,242 | 5.192968 | 0.162715 | 0.065502 | 0.079358 | 0.034168 | 0.293655 | 0.271138 | 0.205322 | 0.179184 | 0.149425 | 0.139663 | 0 | 0.022778 | 0.340141 | 12,242 | 277 | 128 | 44.194946 | 0.763432 | 0.027038 | 0 | 0.251938 | 0 | 0 | 0.07248 | 0.013601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.007752 | 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 |
df67f640fa222774fe9a039e2ef83669416dc98e | 1,050 | py | Python | Python/PycharmProjects/aula 12/desafio 045.py | MarcelaSamili/Desafios-do-curso-de-Python | f331e91821c0c25b3e32d2075254ef650292f280 | [
"MIT"
] | null | null | null | Python/PycharmProjects/aula 12/desafio 045.py | MarcelaSamili/Desafios-do-curso-de-Python | f331e91821c0c25b3e32d2075254ef650292f280 | [
"MIT"
] | null | null | null | Python/PycharmProjects/aula 12/desafio 045.py | MarcelaSamili/Desafios-do-curso-de-Python | f331e91821c0c25b3e32d2075254ef650292f280 | [
"MIT"
] | null | null | null | #Crie um programa que faça o computador jogar Jokenpô com você.
import random
from time import sleep
print('VAMOS JOGAR JOKEMPO!')
print('''Coloque:
[1]PEDRA
[2]PAPEL
[3]TESOURA''')
op = input('Qual opção voce escolhe?')
lista = ['1','2','3']
pc = random.choice(lista)
sleep(1)
print('\033[36mJO!')
sleep(1)
print('\033... | 32.8125 | 70 | 0.618095 | 172 | 1,050 | 3.773256 | 0.302326 | 0.123267 | 0.064715 | 0.1849 | 0.531587 | 0.510015 | 0.510015 | 0.466872 | 0.414484 | 0.414484 | 0 | 0.107223 | 0.15619 | 1,050 | 31 | 71 | 33.870968 | 0.625282 | 0.059048 | 0 | 0.266667 | 0 | 0 | 0.445795 | 0.02229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 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 |
df6c8c993cd6c079508d84bf6948880d7e773e94 | 1,226 | py | Python | setup.py | thep0y/types-jieba | 58ecfbca515547717a4e22dacef873b532c5db23 | [
"MIT"
] | null | null | null | setup.py | thep0y/types-jieba | 58ecfbca515547717a4e22dacef873b532c5db23 | [
"MIT"
] | null | null | null | setup.py | thep0y/types-jieba | 58ecfbca515547717a4e22dacef873b532c5db23 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: thepoy
# @Email: thepoy@163.com
# @File Name: setup.py
# @Created: 2022-03-31 09:43:35
# @Modified: 2022-03-31 18:45:33
import codecs
from setuptools import setup, find_packages
with codecs.open("README.md", "r", "utf-8") as fd:
setup(
n... | 27.244444 | 54 | 0.510604 | 134 | 1,226 | 4.485075 | 0.604478 | 0.08985 | 0.064892 | 0.056572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049322 | 0.338499 | 1,226 | 44 | 55 | 27.863636 | 0.691739 | 0.141109 | 0 | 0 | 0 | 0 | 0.354685 | 0.064054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.060606 | 0 | 0.060606 | 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 |
df6fcfefb66d61d77d6aeb42deeb8bb604386d44 | 3,691 | py | Python | 10. Old Project/Projects/Sampling/wiseml/data_preparation/labeling.py | Collapse24/Work-projects | 9b84273a88eb529fd7dcca1a103b938972a36c2b | [
"MIT"
] | null | null | null | 10. Old Project/Projects/Sampling/wiseml/data_preparation/labeling.py | Collapse24/Work-projects | 9b84273a88eb529fd7dcca1a103b938972a36c2b | [
"MIT"
] | null | null | null | 10. Old Project/Projects/Sampling/wiseml/data_preparation/labeling.py | Collapse24/Work-projects | 9b84273a88eb529fd7dcca1a103b938972a36c2b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def add_fthm_label(data: pd.DataFrame, target_column: str, thresholds: list, window_size: int):
"""
Fixed Time-Horizon model labeling
0 - keep
1 - up
2 - down
:param data: source pandas dataframe
:param target_column: name of price column... | 37.282828 | 154 | 0.657545 | 502 | 3,691 | 4.703187 | 0.203187 | 0.086404 | 0.074545 | 0.040237 | 0.710292 | 0.693774 | 0.667937 | 0.631936 | 0.631936 | 0.623465 | 0 | 0.017733 | 0.220807 | 3,691 | 98 | 155 | 37.663265 | 0.803199 | 0.379843 | 0 | 0.35 | 0 | 0 | 0.123543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df7a8c7a5810a26e0fd6e7a2c2950cc0e4f2e6ac | 1,912 | py | Python | jobs/send_zipfile_to_teacher.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | jobs/send_zipfile_to_teacher.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | jobs/send_zipfile_to_teacher.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
PROJ_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, PROJ_DIR)
import pymysql
import datetime
import fire
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.schedulers.background import B... | 31.344262 | 81 | 0.591527 | 203 | 1,912 | 5.334975 | 0.507389 | 0.050785 | 0.060018 | 0.092336 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019345 | 0.297071 | 1,912 | 61 | 82 | 31.344262 | 0.786458 | 0.021967 | 0 | 0 | 0 | 0 | 0.153023 | 0.036918 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.1875 | null | null | 0.041667 | 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 |
df8027c2ecdf38b65f94bf8c05f478b7da6168b7 | 983 | py | Python | ibmcnx/config/WebSessionTO.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | 11 | 2015-03-07T14:09:43.000Z | 2022-03-16T07:31:55.000Z | ibmcnx/config/WebSessionTO.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | null | null | null | ibmcnx/config/WebSessionTO.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | 9 | 2015-03-04T16:50:46.000Z | 2020-05-22T05:31:27.000Z | '''
Set WebSession Timeout in all application servers
Author: Christoph Stoettner
Mail: christoph.stoettner@stoeps.de
Documentation: http://scripting101.stoeps.de
Version: 5.0.1
Date: 09/19/2015
License: Apache 2.0
'''
import ibmcnx.functions
def getAnswer(question):
answer... | 24.575 | 103 | 0.669379 | 107 | 983 | 6.130841 | 0.626168 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022756 | 0.19532 | 983 | 39 | 104 | 25.205128 | 0.806574 | 0 | 0 | 0.190476 | 0 | 0 | 0.237241 | 0.028966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.238095 | 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 |
df83778ffe7da02b399fcd2c08ea05111d224959 | 533 | py | Python | mpf/platforms/visual_pinball_engine/generate.py | enteryourinitials/mpf | 8fa529aacc1b163c71557adb61b591077d66c77e | [
"MIT"
] | null | null | null | mpf/platforms/visual_pinball_engine/generate.py | enteryourinitials/mpf | 8fa529aacc1b163c71557adb61b591077d66c77e | [
"MIT"
] | null | null | null | mpf/platforms/visual_pinball_engine/generate.py | enteryourinitials/mpf | 8fa529aacc1b163c71557adb61b591077d66c77e | [
"MIT"
] | null | null | null | """Generate python files from protobufs."""
import glob
import re
from grpc_tools import protoc
protoc.main([
'grpc_tools.protoc',
'--proto_path=protobuf/',
'--python_out=.',
'--grpc_python_out=.'
] + list(glob.iglob('./protobuf/*.proto')))
# Make pb2 imports in generated scripts relative
for script... | 24.227273 | 72 | 0.613508 | 71 | 533 | 4.492958 | 0.605634 | 0.056426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011682 | 0.196998 | 533 | 21 | 73 | 25.380952 | 0.733645 | 0.159475 | 0 | 0 | 1 | 0 | 0.303167 | 0.049774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
df850e1b89ef185f008b217da9086521fc69ba4b | 7,106 | py | Python | sciquence/sequences/cutting.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 8 | 2017-10-23T17:59:35.000Z | 2021-05-10T03:01:30.000Z | sciquence/sequences/cutting.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2019-08-25T19:24:12.000Z | 2019-09-05T12:16:10.000Z | sciquence/sequences/cutting.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2018-02-28T09:47:53.000Z | 2019-08-25T19:24:16.000Z | # Krzysztof Joachimiak 2017
# sciquence: Time series & sequences in Python
#
# Functions for sequence processing
# Author: Krzysztof Joachimiak
#
# License: MIT
import numpy as np
from itertools import groupby
############## Getting sequences ##############
def seq(array):
'''
Cut input array into sequences... | 22.416404 | 103 | 0.525049 | 1,036 | 7,106 | 3.562741 | 0.117761 | 0.048225 | 0.053644 | 0.050935 | 0.708751 | 0.639935 | 0.626659 | 0.599837 | 0.589271 | 0.573828 | 0 | 0.079532 | 0.302843 | 7,106 | 316 | 104 | 22.487342 | 0.665523 | 0.028427 | 0 | 0.508475 | 0 | 0 | 0.004182 | 0 | 0 | 0 | 0 | 0.003165 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.016949 | 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 |
df8f5f1d0deac3c20a7e071b24801a16c5495649 | 3,033 | py | Python | qf_lib/common/utils/miscellaneous/kelly.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/common/utils/miscellaneous/kelly.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/common/utils/miscellaneous/kelly.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | 38.392405 | 119 | 0.702934 | 441 | 3,033 | 4.746032 | 0.387755 | 0.028667 | 0.028667 | 0.036312 | 0.212613 | 0.17248 | 0.148113 | 0.148113 | 0.148113 | 0.103201 | 0 | 0.013305 | 0.231784 | 3,033 | 78 | 120 | 38.884615 | 0.884549 | 0.735905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df90c1f0425ed54a7c76e9f96eb3ce8ed15c0376 | 3,290 | py | Python | homework_4.py | pyaiveoleg/computing_practicum | c91cc72f33ae6e744bfb2a5e0b23e3647fa0089a | [
"MIT"
] | null | null | null | homework_4.py | pyaiveoleg/computing_practicum | c91cc72f33ae6e744bfb2a5e0b23e3647fa0089a | [
"MIT"
] | null | null | null | homework_4.py | pyaiveoleg/computing_practicum | c91cc72f33ae6e744bfb2a5e0b23e3647fa0089a | [
"MIT"
] | null | null | null | import math
from typing import Callable
class Method:
@staticmethod
def calculate(f: Callable, a: float, b: float):
pass
@staticmethod
def name():
pass
class left_rectangle(Method):
@staticmethod
def calculate(f: Callable, a: float, b: float):
return f(a) * (b - a)
... | 29.115044 | 122 | 0.530091 | 429 | 3,290 | 4.016317 | 0.221445 | 0.12188 | 0.085316 | 0.12188 | 0.466048 | 0.428903 | 0.373186 | 0.319211 | 0.30296 | 0.245502 | 0 | 0.039761 | 0.289058 | 3,290 | 112 | 123 | 29.375 | 0.696879 | 0 | 0 | 0.380952 | 0 | 0 | 0.245593 | 0.027964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.02381 | 0.02381 | 0.130952 | 0.428571 | 0.130952 | 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 |
10c2225747c151ae452c3d83e62044c65fc146d6 | 2,213 | py | Python | src/backup.py | Kynda/Public-Utility-Scripts | 0c347c65292a23dea798f1f6a112f1fed5fc9c68 | [
"MIT"
] | null | null | null | src/backup.py | Kynda/Public-Utility-Scripts | 0c347c65292a23dea798f1f6a112f1fed5fc9c68 | [
"MIT"
] | null | null | null | src/backup.py | Kynda/Public-Utility-Scripts | 0c347c65292a23dea798f1f6a112f1fed5fc9c68 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from scp import SCPClient
import datetime
import paramiko
import argparse
import tarfile
import os
# Parse Command Line Arguments
description = '''
This script creates a tarball of a specified destination and copies it to a remote destination
using ssh on the destination. Requires configured ss... | 33.530303 | 155 | 0.722097 | 328 | 2,213 | 4.832317 | 0.402439 | 0.039748 | 0.075079 | 0.023975 | 0.026498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001057 | 0.145052 | 2,213 | 65 | 156 | 34.046154 | 0.836681 | 0.100768 | 0 | 0 | 0 | 0 | 0.363131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.119048 | 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 |
10c762e725d0a4101e4d78e10b74f6f6328151a2 | 612 | py | Python | attre2vec/aggregators/base.py | attre2vec/attre2vec | f36a2581f3d17887d6201a76624d4ced93d6503f | [
"MIT"
] | null | null | null | attre2vec/aggregators/base.py | attre2vec/attre2vec | f36a2581f3d17887d6201a76624d4ced93d6503f | [
"MIT"
] | null | null | null | attre2vec/aggregators/base.py | attre2vec/attre2vec | f36a2581f3d17887d6201a76624d4ced93d6503f | [
"MIT"
] | null | null | null | """Implementations of edge walk aggregators."""
import abc
import torch
from torch import nn
class BaseAggregator(abc.ABC, nn.Module):
"""Base class for edge walk aggregators."""
def __init__(self):
"""Inits BaseAggregator."""
super().__init__()
self._device = torch.device(
... | 23.538462 | 62 | 0.617647 | 67 | 612 | 5.462687 | 0.567164 | 0.065574 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267974 | 612 | 25 | 63 | 24.48 | 0.816964 | 0.245098 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.1875 | 0 | 0.375 | 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 |
10cbb3033c427f3cecd5c6f22e3889f7bbfc70b5 | 24,389 | py | Python | BasicExperiments/MovieListTask_Builder_d1.py | djangraw/PsychoPyParadigms | f63072221f9abb7fb1c64457b65dcb3555e3919b | [
"MIT"
] | 50 | 2016-02-27T23:06:57.000Z | 2021-12-23T01:22:18.000Z | BasicExperiments/MovieListTask_Builder_d1.py | caofeizhen/PsychoPyParadigms | dd0921d94d21cc04be8f74de684e24f09dbc9e4d | [
"MIT"
] | null | null | null | BasicExperiments/MovieListTask_Builder_d1.py | caofeizhen/PsychoPyParadigms | dd0921d94d21cc04be8f74de684e24f09dbc9e4d | [
"MIT"
] | 44 | 2016-10-03T10:47:06.000Z | 2021-12-23T01:22:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.90.1),
on Tue May 8 15:02:31 2018
Created 5/8/18 by DJ.
Updated 5/8/18 by DJ - added NetStationEEG code from https://github.com/imnotamember/PyNetstation (per Pete's instructions)
Updated 6/8/18 by... | 39.337097 | 164 | 0.679692 | 3,120 | 24,389 | 5.299679 | 0.189744 | 0.002419 | 0.016329 | 0.016934 | 0.571575 | 0.539764 | 0.519565 | 0.496099 | 0.472513 | 0.458361 | 0 | 0.009365 | 0.216327 | 24,389 | 619 | 165 | 39.400646 | 0.855753 | 0.405921 | 0 | 0.5 | 0 | 0 | 0.092255 | 0.015966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.011765 | 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 |
10ced9882b9c1b55de7da6acf4f2fdd7f88cfc0d | 407 | py | Python | abc/abc189/abc189c-2.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc189/abc189c-2.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc189/abc189c-2.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | from sys import setrecursionlimit
setrecursionlimit(10 ** 6)
N, *A = map(int, open(0).read().split())
def f(a):
n = len(a)
m = min(a)
result = m * n
i = 0
for j in range(n):
if a[j] != m:
continue
if i < j:
result = max(result, f(a[i:j]))
i = j + 1... | 16.28 | 43 | 0.46683 | 67 | 407 | 2.835821 | 0.462687 | 0.042105 | 0.157895 | 0.168421 | 0.189474 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.371007 | 407 | 24 | 44 | 16.958333 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0.055556 | 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 |
10d71700213d48f549f6561d4b43c0432ccfb5e6 | 281 | py | Python | pyjournal.py | dwillcox/pyjournal2 | 473cf29effc10d8bbf8ad73edb310fff4a8288ee | [
"BSD-3-Clause"
] | null | null | null | pyjournal.py | dwillcox/pyjournal2 | 473cf29effc10d8bbf8ad73edb310fff4a8288ee | [
"BSD-3-Clause"
] | null | null | null | pyjournal.py | dwillcox/pyjournal2 | 473cf29effc10d8bbf8ad73edb310fff4a8288ee | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
a simple commandline-driven scientific journal in LaTeX managed by git
"""
import pyjournal2.main_util as main_util
if __name__ == "__main__":
tdefs = main_util.read_config()
targs = main_util.get_args(tdefs)
main_util.main(targs, tdefs)
| 20.071429 | 70 | 0.729537 | 41 | 281 | 4.634146 | 0.682927 | 0.210526 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.163701 | 281 | 13 | 71 | 21.615385 | 0.8 | 0.327402 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
10df6d5a8ccae417a35ca39bfde295a2c22b9201 | 611 | py | Python | oauth/migrations/0003_auto_20190531_0914.py | enjoy-binbin/Django-blog | 0fcf3709fabeee49874343b3a4ab80582698c466 | [
"MIT"
] | 111 | 2019-06-01T06:40:36.000Z | 2021-11-14T19:57:22.000Z | oauth/migrations/0003_auto_20190531_0914.py | WyattPQ/Django-blog | eae42c30bd232442b305f8563c17b8b5ab5cf29e | [
"MIT"
] | 19 | 2019-06-11T00:45:54.000Z | 2022-03-11T23:47:53.000Z | oauth/migrations/0003_auto_20190531_0914.py | WyattPQ/Django-blog | eae42c30bd232442b305f8563c17b8b5ab5cf29e | [
"MIT"
] | 24 | 2019-06-01T06:40:39.000Z | 2020-10-11T14:03:08.000Z | # Generated by Django 2.1.5 on 2019-05-31 09:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('oauth', '0002_auto_20190512_1129'),
]
operations = [
migrations.AlterModelOptions(
name='oauthconfig',
options={'ordering': ... | 27.772727 | 113 | 0.600655 | 62 | 611 | 5.741935 | 0.612903 | 0.123596 | 0.174157 | 0.123596 | 0.185393 | 0.185393 | 0 | 0 | 0 | 0 | 0 | 0.076087 | 0.247136 | 611 | 21 | 114 | 29.095238 | 0.697826 | 0.07365 | 0 | 0.266667 | 1 | 0 | 0.319149 | 0.04078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
10df70366d3501833c0bd694bc29559c8c3fb62a | 2,885 | py | Python | pirates/piratesgui/SheetFrame.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/piratesgui/SheetFrame.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/piratesgui/SheetFrame.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.piratesgui.SheetFrame
from pirates.piratesgui import ListFrame
from pirates.piratesgui import PiratesGuiGlobals
class SheetFram... | 42.426471 | 143 | 0.544887 | 272 | 2,885 | 5.705882 | 0.400735 | 0.028995 | 0.021263 | 0.034794 | 0.103093 | 0.081186 | 0.054124 | 0 | 0 | 0 | 0 | 0.041644 | 0.359099 | 2,885 | 68 | 144 | 42.426471 | 0.797729 | 0.071057 | 0 | 0.111111 | 0 | 0 | 0.009342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10e3f7928887541e890ca78624a9ac75cd5a1aab | 259 | py | Python | client2.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client2.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client2.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | import socket
import time
# ? HOW to check the connection does exist
# ? How to unbind
# ? socket.error: [Errno 111] Connection refused
s=socket.socket()
host='127.0.0.1'
port=1121
while s.connect((host,port)):
print s.recv(1024)
time.sleep(0.5)
| 16.1875 | 48 | 0.687259 | 43 | 259 | 4.139535 | 0.674419 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089202 | 0.177606 | 259 | 15 | 49 | 17.266667 | 0.746479 | 0.397683 | 0 | 0 | 0 | 0 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10e4ca2fc35b48b5cb7b91be6a0f778e9d4ea291 | 1,057 | py | Python | vmain.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | 7 | 2017-08-27T01:55:19.000Z | 2021-04-13T09:43:08.000Z | vmain.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | null | null | null | vmain.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | 2 | 2017-12-07T03:26:03.000Z | 2018-09-02T04:05:51.000Z | import os
import sys
import subprocess
foldername = 'results'
ocrFileName = 'python v1-3-arg.py'
for filename in os.listdir('/home/ubuntu/pyview/Test/pics'):
#print filename
fullFilename = (u'/home/ubuntu/pyview/Test/pics/'+filename)
#create new path for results
pathForEachResult = foldernam... | 33.03125 | 116 | 0.701987 | 118 | 1,057 | 6.279661 | 0.40678 | 0.053981 | 0.048583 | 0.064777 | 0.348178 | 0.211876 | 0.211876 | 0.211876 | 0.211876 | 0.14305 | 0 | 0.012458 | 0.164617 | 1,057 | 31 | 117 | 34.096774 | 0.826727 | 0.527909 | 0 | 0 | 0 | 0 | 0.27533 | 0.129956 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.1 | 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 |
10eea8780951754c735866caca2562d493facd08 | 11,828 | py | Python | Paper_13/Classes/Transfer_to_RAM.py | ADGiuliano/DevAndCompForRecSys2016 | f8c4d5a1f184d5e773f841dce9f855ba0d792b65 | [
"MIT"
] | null | null | null | Paper_13/Classes/Transfer_to_RAM.py | ADGiuliano/DevAndCompForRecSys2016 | f8c4d5a1f184d5e773f841dce9f855ba0d792b65 | [
"MIT"
] | null | null | null | Paper_13/Classes/Transfer_to_RAM.py | ADGiuliano/DevAndCompForRecSys2016 | f8c4d5a1f184d5e773f841dce9f855ba0d792b65 | [
"MIT"
] | null | null | null | """
@author: Andrea Domenico Giuliano
@contact: andreadomenico.giuliano@studenti.unipd.it
@organization: University of Padua
"""
import sqlite3
import datetime
import Pikle_operations as p_o
from Functions import Time_Calcolation as tc
from Functions import Users_dict as u_d
from Functions import Items_dict... | 34.483965 | 105 | 0.566114 | 1,668 | 11,828 | 3.654676 | 0.104317 | 0.05315 | 0.032808 | 0.027559 | 0.383694 | 0.193898 | 0.08399 | 0.052329 | 0.029364 | 0.02149 | 0 | 0.038452 | 0.316199 | 11,828 | 343 | 106 | 34.483965 | 0.715257 | 0.195553 | 0 | 0.142105 | 0 | 0 | 0.01954 | 0.00268 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042105 | null | null | 0.057895 | 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 |
10f687b43989c0016f1aafd980090344d30b58e7 | 3,300 | py | Python | qbittorrent/connectors.py | CuteFwan/aqbit | 8a05364fdb7bf78b9422f490db96a80b0481482a | [
"MIT"
] | null | null | null | qbittorrent/connectors.py | CuteFwan/aqbit | 8a05364fdb7bf78b9422f490db96a80b0481482a | [
"MIT"
] | null | null | null | qbittorrent/connectors.py | CuteFwan/aqbit | 8a05364fdb7bf78b9422f490db96a80b0481482a | [
"MIT"
] | null | null | null | from .errors import TorrentHashNotFound, TorrentNotValid, HttpException
import aiohttp
import asyncio
import json
class AConnector:
def __init__(self, *, base, session = None, loop = None):
self.base = base
self.loop = loop or asyncio.get_event_loop()
self.session = session
async def ... | 33.673469 | 96 | 0.543939 | 353 | 3,300 | 5.050992 | 0.291785 | 0.061694 | 0.024678 | 0.020191 | 0.46719 | 0.446999 | 0.337633 | 0.25687 | 0.205272 | 0.081884 | 0 | 0.010778 | 0.353333 | 3,300 | 98 | 97 | 33.673469 | 0.824742 | 0 | 0 | 0.314286 | 0 | 0 | 0.065389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.071429 | 0 | 0.271429 | 0.014286 | 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 |
10f77cb4d9e3c53745dbcdfee54cc430bfe2ee54 | 2,721 | py | Python | tests/test_aquamonitor_integration_client.py | NIVANorge/odm2-postgres-api | 5f25dcfe9f97465f1641227b8cdbed2543255db5 | [
"MIT"
] | null | null | null | tests/test_aquamonitor_integration_client.py | NIVANorge/odm2-postgres-api | 5f25dcfe9f97465f1641227b8cdbed2543255db5 | [
"MIT"
] | 83 | 2020-04-16T11:35:31.000Z | 2022-03-15T13:22:33.000Z | tests/test_aquamonitor_integration_client.py | NIVANorge/odm2-postgres-api | 5f25dcfe9f97465f1641227b8cdbed2543255db5 | [
"MIT"
] | null | null | null | import os
import pytest
from httpx import AsyncClient
from odm2_postgres_api.aquamonitor.aquamonitor_client import (
get_method_by_id,
get_project_stations,
get_taxonomy,
get_taxonomy_domain_id,
get_taxonomy_codes,
)
from odm2_postgres_api.aquamonitor.aquamonitor_mapping import METHODS_NIVABASE_MA... | 34.884615 | 113 | 0.763322 | 361 | 2,721 | 5.509695 | 0.32687 | 0.102564 | 0.024133 | 0.034691 | 0.216189 | 0.216189 | 0.111614 | 0.111614 | 0.111614 | 0.111614 | 0 | 0.004374 | 0.159868 | 2,721 | 77 | 114 | 35.337662 | 0.865704 | 0.103271 | 0 | 0.109091 | 0 | 0 | 0.101607 | 0 | 0 | 0 | 0 | 0.012987 | 0.272727 | 1 | 0 | false | 0.036364 | 0.090909 | 0 | 0.090909 | 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 |
800415c2c5d58ddf84f83107556dd0bf293e5470 | 2,422 | py | Python | try.py | tssga-arch/myotc | 4fd166f4b59b856f68d531f9ef6c5cb9419a43fa | [
"BSD-2-Clause"
] | null | null | null | try.py | tssga-arch/myotc | 4fd166f4b59b856f68d531f9ef6c5cb9419a43fa | [
"BSD-2-Clause"
] | null | null | null | try.py | tssga-arch/myotc | 4fd166f4b59b856f68d531f9ef6c5cb9419a43fa | [
"BSD-2-Clause"
] | 1 | 2021-12-01T12:44:27.000Z | 2021-12-01T12:44:27.000Z | #!/usr/bin/env python3
import re
from pprint import pprint
import os
import yaml
import random
import string
from passlib.hash import md5_crypt, sha256_crypt, sha512_crypt
secrets_file = '_secrets_file_'
yaml_pp_vars = dict(os.environ)
yaml_pp_vars[secrets_file] = '_secrets.yaml'
secrets = None
sshkey_re = re.comp... | 28.162791 | 81 | 0.586292 | 324 | 2,422 | 4.283951 | 0.290123 | 0.090778 | 0.151297 | 0.110231 | 0.391931 | 0.307637 | 0.280259 | 0.238473 | 0.238473 | 0.238473 | 0 | 0.060288 | 0.25351 | 2,422 | 85 | 82 | 28.494118 | 0.707412 | 0.008671 | 0 | 0.057143 | 0 | 0 | 0.236348 | 0.097541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.128571 | 0.1 | 0 | 0.1 | 0.042857 | 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 |
8008928830363983d192bf078e62c5345e6bedce | 241 | py | Python | djpaddle/urls.py | abroun/dj-paddle | 8945137c9ff70ae00d519625f81b10d1bc6bf071 | [
"MIT"
] | 32 | 2020-06-06T10:36:24.000Z | 2022-02-06T10:41:42.000Z | djpaddle/urls.py | abroun/dj-paddle | 8945137c9ff70ae00d519625f81b10d1bc6bf071 | [
"MIT"
] | 21 | 2020-01-03T15:29:18.000Z | 2020-06-01T21:59:09.000Z | djpaddle/urls.py | abroun/dj-paddle | 8945137c9ff70ae00d519625f81b10d1bc6bf071 | [
"MIT"
] | 18 | 2020-06-05T21:35:32.000Z | 2022-02-08T10:55:26.000Z | from django.urls import path
from . import views
app_name = "djpaddle"
urlpatterns = [
path("webhook/", views.paddle_webhook_view, name="webhook"),
path("post-checkout/", views.post_checkout_api_view, name="post_checkout_api"),
]
| 21.909091 | 83 | 0.73029 | 32 | 241 | 5.25 | 0.5 | 0.214286 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 241 | 10 | 84 | 24.1 | 0.803828 | 0 | 0 | 0 | 0 | 0 | 0.224066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
800b0a79b7d012824d3f7b29d9b4487819c5dc3c | 448 | py | Python | code/004.py | i4leader/Python-Basic-Pratice-100question | 53ed7958a7966bd2336fdf089f2b718e68accd92 | [
"MIT"
] | null | null | null | code/004.py | i4leader/Python-Basic-Pratice-100question | 53ed7958a7966bd2336fdf089f2b718e68accd92 | [
"MIT"
] | null | null | null | code/004.py | i4leader/Python-Basic-Pratice-100question | 53ed7958a7966bd2336fdf089f2b718e68accd92 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
year = int(input("请输入年:"))
month = int(input("请输入月份:"))
day = int(input("请输入几号:"))
leapyear = [0,31,29,31,30,31,30,31,31,30,31,30,31]
normalyear = [0,31,28,31,30,31,30,31,31,30,31,30,31]
days = 0
i = month
if year%4 == 0:
for temp in range(0,i,1):
days += leapyear[temp]
print("今年是... | 19.478261 | 52 | 0.589286 | 82 | 448 | 3.219512 | 0.402439 | 0.121212 | 0.181818 | 0.121212 | 0.310606 | 0.310606 | 0.310606 | 0.310606 | 0.151515 | 0.151515 | 0 | 0.158904 | 0.185268 | 448 | 22 | 53 | 20.363636 | 0.564384 | 0.037946 | 0 | 0.125 | 0 | 0 | 0.07907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
800fa3da15c555059bd7e1a81cab343ed37567e2 | 24,414 | py | Python | master_code/otherMiscCode/tools_da_riordinare/kd3hdf5.py | brunetto/MasterThesisCode | 947b7b5948e5649eb52b61a14c335a62df057406 | [
"MIT"
] | null | null | null | master_code/otherMiscCode/tools_da_riordinare/kd3hdf5.py | brunetto/MasterThesisCode | 947b7b5948e5649eb52b61a14c335a62df057406 | [
"MIT"
] | null | null | null | master_code/otherMiscCode/tools_da_riordinare/kd3hdf5.py | brunetto/MasterThesisCode | 947b7b5948e5649eb52b61a14c335a62df057406 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import tables as tb
import numpy as np
import sys
# Global variables for patching the tree.
n_traverse = 0
####################################################################################
# kd3 # ... | 46.770115 | 129 | 0.553043 | 3,219 | 24,414 | 4.02858 | 0.148493 | 0.04673 | 0.042104 | 0.027761 | 0.510796 | 0.465145 | 0.418415 | 0.384639 | 0.359269 | 0.328655 | 0 | 0.021598 | 0.338126 | 24,414 | 521 | 130 | 46.859885 | 0.780927 | 0.142582 | 0 | 0.355049 | 0 | 0 | 0.052372 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 0 | null | null | 0.029316 | 0.026059 | null | null | 0.071661 | 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 |
801339c7adb3e3e3360b5ab8d56d9c94c64a7bfa | 724 | py | Python | napari/plugins/__init__.py | yinawang28/napari | 6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957 | [
"BSD-3-Clause"
] | null | null | null | napari/plugins/__init__.py | yinawang28/napari | 6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957 | [
"BSD-3-Clause"
] | null | null | null | napari/plugins/__init__.py | yinawang28/napari | 6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957 | [
"BSD-3-Clause"
] | null | null | null | import sys
from pluggy import HookimplMarker
from ._hook_callers import execute_hook
from .exceptions import PluginError, PluginImportError, PluginRegistrationError
from .manager import PluginManager
# Marker to be imported and used in plugins (and for own implementations)
# Note: plugins may also just import pluggy... | 27.846154 | 79 | 0.783149 | 79 | 724 | 6.974684 | 0.506329 | 0.054446 | 0.130672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150552 | 724 | 25 | 80 | 28.96 | 0.895935 | 0.327348 | 0 | 0 | 0 | 0 | 0.253112 | 0.10166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
8013643ae72db39a1dfaf9c4313b3ea7eb9a045d | 16,384 | py | Python | orchestration/__init__.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-03-18T18:27:49.000Z | 2019-03-18T18:27:49.000Z | orchestration/__init__.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-17T21:33:15.000Z | 2020-12-17T21:35:41.000Z | orchestration/__init__.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-01-05T08:23:20.000Z | 2021-01-05T08:23:20.000Z | import os
from time import sleep
from commonLib.DBManager import DB
from orchestration.analyzing import (AnalysisRunnerSingle,
AnalysisRunnerDelta,
AnalysisGroupRunner)
from orchestration.definition import (ExperimentDefinition,
... | 45.010989 | 81 | 0.551453 | 1,874 | 16,384 | 4.53682 | 0.127001 | 0.0741 | 0.043754 | 0.031052 | 0.682898 | 0.649259 | 0.620442 | 0.586097 | 0.557634 | 0.538697 | 0 | 0.00685 | 0.376282 | 16,384 | 364 | 82 | 45.010989 | 0.82513 | 0.22345 | 0 | 0.660079 | 0 | 0 | 0.090454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.051383 | 0.027668 | 0 | 0.090909 | 0.094862 | 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 |
8016168eee490c7e3718f6aad33ce377d9d97e8d | 690 | py | Python | hivs_pp/migrations/0012_allow_blank_gender_field_on_delivery.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_pp/migrations/0012_allow_blank_gender_field_on_delivery.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_pp/migrations/0012_allow_blank_gender_field_on_delivery.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-10-25 16:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hivs_pp', '0011_rename_field_confidential_to_is_confidential_on_service'),
]
operations = [
migrations.Alte... | 34.5 | 282 | 0.7 | 91 | 690 | 5.120879 | 0.637363 | 0.051502 | 0.060086 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034111 | 0.192754 | 690 | 19 | 283 | 36.315789 | 0.802513 | 0.065217 | 0 | 0 | 1 | 0 | 0.315708 | 0.093313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
8029904bcc5ffd58d99b88b9566b65e2fd6420ec | 2,290 | py | Python | npt/datasets/income.py | jacobkimmel/non-parametric-transformers | 5c94a76e2006a4ae949dc337c0db808a234970c2 | [
"Apache-2.0"
] | 302 | 2021-06-06T16:44:18.000Z | 2022-03-23T08:05:47.000Z | npt/datasets/income.py | jacobkimmel/non-parametric-transformers | 5c94a76e2006a4ae949dc337c0db808a234970c2 | [
"Apache-2.0"
] | 2 | 2021-07-02T09:59:45.000Z | 2021-08-03T11:52:10.000Z | npt/datasets/income.py | jacobkimmel/non-parametric-transformers | 5c94a76e2006a4ae949dc337c0db808a234970c2 | [
"Apache-2.0"
] | 29 | 2021-06-06T16:44:21.000Z | 2022-03-31T09:18:32.000Z | from pathlib import Path
import numpy as np
import pandas as pd
from sklearn.datasets import fetch_openml
from npt.datasets.base import BaseDataset
class IncomeDataset(BaseDataset):
def __init__(self, c):
super().__init__(
fixed_test_set_index=-99762)
self.c = c
def load(self):
... | 32.714286 | 79 | 0.640175 | 322 | 2,290 | 4.400621 | 0.453416 | 0.045166 | 0.073395 | 0.02964 | 0.064926 | 0.064926 | 0.064926 | 0.064926 | 0.064926 | 0.064926 | 0 | 0.019185 | 0.271616 | 2,290 | 70 | 80 | 32.714286 | 0.830336 | 0.371179 | 0 | 0 | 0 | 0 | 0.035357 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.066667 | false | 0.033333 | 0.166667 | 0 | 0.266667 | 0.1 | 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 |
8029a232b8019b7d158db7a945daa69d65042a4d | 1,493 | py | Python | src/library/requirements.py | dylanhogg/crazy-awesome-python | 402698318b76ab1c75ae07581cb9a8f406df162a | [
"MIT"
] | 13 | 2020-09-13T23:31:35.000Z | 2022-03-29T10:57:36.000Z | src/library/requirements.py | dylanhogg/crazy-awesome-python | 402698318b76ab1c75ae07581cb9a8f406df162a | [
"MIT"
] | 1 | 2021-04-11T22:54:30.000Z | 2021-04-11T22:54:55.000Z | src/library/requirements.py | dylanhogg/crazy-awesome-python | 402698318b76ab1c75ae07581cb9a8f406df162a | [
"MIT"
] | 1 | 2022-02-09T15:52:19.000Z | 2022-02-09T15:52:19.000Z | import urllib.request
import urllib.error
from pathlib import Path
from loguru import logger
def save_content(repopath, branch, filename, content):
folder = "data/"
Path(folder).mkdir(parents=True, exist_ok=True)
out_filename = folder + repopath.replace("/", "~") + f"~{filename}"
with open(out_filena... | 33.931818 | 109 | 0.663094 | 177 | 1,493 | 5.491525 | 0.497175 | 0.08642 | 0.135802 | 0.05144 | 0.148148 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0.004318 | 0.22438 | 1,493 | 43 | 110 | 34.72093 | 0.83506 | 0.170797 | 0 | 0 | 0 | 0 | 0.123277 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.090909 | false | 0 | 0.121212 | 0 | 0.30303 | 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 |
802e89d4b41bf682b9dedadc316063a252214a47 | 4,605 | py | Python | buildroot/support/testing/infra/emulator.py | rbrenton/hassos | fa6f7ac74ddba50e76f5779c613c56d937684844 | [
"Apache-2.0"
] | 617 | 2015-01-04T14:33:56.000Z | 2022-03-24T22:42:25.000Z | buildroot/support/testing/infra/emulator.py | rbrenton/hassos | fa6f7ac74ddba50e76f5779c613c56d937684844 | [
"Apache-2.0"
] | 631 | 2015-01-01T22:53:25.000Z | 2022-03-17T18:41:00.000Z | buildroot/support/testing/infra/emulator.py | rbrenton/hassos | fa6f7ac74ddba50e76f5779c613c56d937684844 | [
"Apache-2.0"
] | 133 | 2015-03-03T18:40:05.000Z | 2022-03-18T13:34:26.000Z | import pexpect
import infra
class Emulator(object):
def __init__(self, builddir, downloaddir, logtofile, timeout_multiplier):
self.qemu = None
self.downloaddir = downloaddir
self.logfile = infra.open_log_file(builddir, "run", logtofile)
# We use elastic runners on the cloud to ru... | 38.375 | 78 | 0.567427 | 540 | 4,605 | 4.762963 | 0.342593 | 0.049767 | 0.027216 | 0.032659 | 0.045101 | 0.031104 | 0 | 0 | 0 | 0 | 0 | 0.008775 | 0.331813 | 4,605 | 119 | 79 | 38.697479 | 0.827104 | 0.267318 | 0 | 0.083333 | 0 | 0 | 0.105232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.055556 | 0.027778 | 0 | 0.138889 | 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 |
80337a0d50878560afca93106205946acd655633 | 1,622 | py | Python | lang/py/cookbook/v2/source/cb2_2_29_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_29_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_29_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | def VersionFile(file_spec, vtype='copy'):
import os, shutil
if os.path.isfile(file_spec):
# check the 'vtype' parameter
if vtype not in ('copy', 'rename'):
raise ValueError, 'Unknown vtype %r' % (vtype,)
# Determine root filename so the extension doesn't get longer
n... | 34.510638 | 76 | 0.532059 | 209 | 1,622 | 4.038278 | 0.488038 | 0.066351 | 0.112559 | 0.14218 | 0.168246 | 0.099526 | 0.099526 | 0.099526 | 0.099526 | 0.099526 | 0 | 0.020192 | 0.358816 | 1,622 | 46 | 77 | 35.26087 | 0.791346 | 0.225647 | 0 | 0.212121 | 0 | 0 | 0.078905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.151515 | 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 |
803e7217a1264f814720e5c7c9076e829863438a | 268 | py | Python | app/__init__.py | azhou5211/recipeat | 8d21864a7ec99e4384389c1be79723f6ccb75d67 | [
"MIT"
] | 3 | 2021-03-18T18:55:32.000Z | 2022-03-25T10:37:34.000Z | app/__init__.py | azhou5211/recipeat | 8d21864a7ec99e4384389c1be79723f6ccb75d67 | [
"MIT"
] | 12 | 2021-03-09T07:07:31.000Z | 2021-03-15T08:42:26.000Z | app/__init__.py | smuktevi/recipeat | 7931af517c3ad7ead932e8f4fd6df96c64d52e1c | [
"MIT"
] | 7 | 2021-02-16T02:04:24.000Z | 2021-03-22T20:48:26.000Z | # import the flask library
from flask import Flask
from config import Config
# configure an object of class Flask with __name__
app = Flask(__name__)
app.config.from_object(Config)
# here app is a package not to be confused with directory app
from app import routes
| 24.363636 | 61 | 0.794776 | 44 | 268 | 4.636364 | 0.545455 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16791 | 268 | 10 | 62 | 26.8 | 0.914798 | 0.496269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
803f7376c65ac17cd73e4fec0e02b587aac216f5 | 258 | py | Python | ForLoop/VowelsSum.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | 1 | 2020-09-22T13:25:34.000Z | 2020-09-22T13:25:34.000Z | ForLoop/VowelsSum.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | null | null | null | ForLoop/VowelsSum.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | 1 | 2020-10-17T09:27:46.000Z | 2020-10-17T09:27:46.000Z | text = input()
sum = 0
for symbol in text:
if symbol == "a":
sum += 1
elif symbol == "e":
sum += 2
elif symbol == "i":
sum += 3
elif symbol == "o":
sum += 4
elif symbol == "u":
sum += 5
print(sum) | 16.125 | 23 | 0.422481 | 35 | 258 | 3.114286 | 0.571429 | 0.366972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.414729 | 258 | 16 | 24 | 16.125 | 0.682119 | 0 | 0 | 0 | 0 | 0 | 0.019305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 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 |
803f7c7217f177817396da8eaa24b414f010dbda | 2,715 | py | Python | main.py | wwwins/BrainWavePy | 28260e6c272c2c92b19abe57d5d1c31d8fcf3423 | [
"MIT"
] | null | null | null | main.py | wwwins/BrainWavePy | 28260e6c272c2c92b19abe57d5d1c31d8fcf3423 | [
"MIT"
] | null | null | null | main.py | wwwins/BrainWavePy | 28260e6c272c2c92b19abe57d5d1c31d8fcf3423 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# main.py
# 分析 EEG 轉換成聲音
import os
from subprocess import Popen, PIPE
from time import sleep
from random import randrange
from random import random
from player import MPG123Player
ENABLE_MPG123 = False
ENABLE_MPLAYER = False
ENABLE_MPG123PLAYER = True
files = []
p = None
doremi = None
eegArr... | 28.578947 | 118 | 0.58011 | 339 | 2,715 | 4.59882 | 0.362832 | 0.00898 | 0.041052 | 0.051315 | 0.345734 | 0.345734 | 0.327133 | 0.268121 | 0.178319 | 0.178319 | 0 | 0.056801 | 0.260773 | 2,715 | 94 | 119 | 28.882979 | 0.71998 | 0.210313 | 0 | 0.220339 | 0 | 0 | 0.071563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | null | null | 0.101695 | 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 |
8045a8334c5b75552a9307a5ae5dfaaf1e348a32 | 165 | py | Python | 50_List_Remove_item/main.py | jmmedel/Python-Tutorials- | 243ae9a6b51a4fce03dd90c02da13b859cbfbe5f | [
"MIT"
] | null | null | null | 50_List_Remove_item/main.py | jmmedel/Python-Tutorials- | 243ae9a6b51a4fce03dd90c02da13b859cbfbe5f | [
"MIT"
] | null | null | null | 50_List_Remove_item/main.py | jmmedel/Python-Tutorials- | 243ae9a6b51a4fce03dd90c02da13b859cbfbe5f | [
"MIT"
] | null | null | null |
"""
Remove Item
There are several methods to remove items from a list:
"""
thislist = ["apple", "banana", "cherry"]
thislist.remove("banana")
print(thislist)
| 11 | 54 | 0.678788 | 21 | 165 | 5.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169697 | 165 | 14 | 55 | 11.785714 | 0.817518 | 0.4 | 0 | 0 | 0 | 0 | 0.270588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8045f79d2fb437dd872a6f4a14dfda605bf09fcd | 3,932 | py | Python | controller/modules/NetworkOperations.py | saumitraaditya/ControllersMulticast | a20274e232a8e43e0517e04e369ef340592a578d | [
"MIT"
] | null | null | null | controller/modules/NetworkOperations.py | saumitraaditya/ControllersMulticast | a20274e232a8e43e0517e04e369ef340592a578d | [
"MIT"
] | null | null | null | controller/modules/NetworkOperations.py | saumitraaditya/ControllersMulticast | a20274e232a8e43e0517e04e369ef340592a578d | [
"MIT"
] | null | null | null | from controller.modules.NetworkGraph import ConnEdgeAdjacenctList
from controller.modules.NetworkGraph import ConnectionEdge
from controller.modules.NetworkGraph import EdgeTypesOut
class OperationsModel():
def __init__(self, conn_edge, op_type, priority):
self.conn_edge = conn_edge
self.op_type =... | 50.410256 | 107 | 0.600966 | 405 | 3,932 | 5.533333 | 0.167901 | 0.155288 | 0.149933 | 0.196787 | 0.710843 | 0.627398 | 0.601517 | 0.564034 | 0.526551 | 0.432396 | 0 | 0.002965 | 0.313835 | 3,932 | 77 | 108 | 51.064935 | 0.82765 | 0 | 0 | 0.298507 | 0 | 0 | 0.085453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.044776 | 0 | 0.19403 | 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 |
804f391b0ca1018db3c804a4009349d5cf01b66b | 823 | py | Python | shop/migrations/0010_auto_20210911_0602.py | Johirul300/BookShop-Project | 93471903a3753710a4ba4fe1e9bcc965fecacfea | [
"MIT"
] | null | null | null | shop/migrations/0010_auto_20210911_0602.py | Johirul300/BookShop-Project | 93471903a3753710a4ba4fe1e9bcc965fecacfea | [
"MIT"
] | null | null | null | shop/migrations/0010_auto_20210911_0602.py | Johirul300/BookShop-Project | 93471903a3753710a4ba4fe1e9bcc965fecacfea | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-09-11 06:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0009_rename_customer_cart_user'),
]
operations = [
migrations.RemoveField(
model_name='... | 28.37931 | 121 | 0.607533 | 92 | 823 | 5.315217 | 0.48913 | 0.06544 | 0.08589 | 0.134969 | 0.331288 | 0.331288 | 0.331288 | 0.331288 | 0.331288 | 0.331288 | 0 | 0.031509 | 0.267315 | 823 | 28 | 122 | 29.392857 | 0.779436 | 0.054678 | 0 | 0.272727 | 1 | 0 | 0.118557 | 0.03866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
80538930cfd0a6f4e47c7c395706ae02da487496 | 6,044 | py | Python | src/cone/firebase/management.py | conestack/cone.firebase | d7debd76240e3f50e50968b453987e7d7baf9c2d | [
"BSD-2-Clause"
] | null | null | null | src/cone/firebase/management.py | conestack/cone.firebase | d7debd76240e3f50e50968b453987e7d7baf9c2d | [
"BSD-2-Clause"
] | null | null | null | src/cone/firebase/management.py | conestack/cone.firebase | d7debd76240e3f50e50968b453987e7d7baf9c2d | [
"BSD-2-Clause"
] | 1 | 2021-02-03T11:14:29.000Z | 2021-02-03T11:14:29.000Z | from cone.app import ugm_backend
from cone.ugm.events import UserCreatedEvent
from cone.ugm.events import UserDeletedEvent
from cone.ugm.events import UserModifiedEvent
from firebase_admin import auth
from firebase_admin.auth import UserNotFoundError
from pyramid.security import remember
from typing import List
from ty... | 33.208791 | 118 | 0.65321 | 798 | 6,044 | 4.825815 | 0.185464 | 0.046741 | 0.056089 | 0.034277 | 0.403532 | 0.356531 | 0.343547 | 0.296546 | 0.262529 | 0.235004 | 0 | 0.006586 | 0.24636 | 6,044 | 181 | 119 | 33.392265 | 0.838858 | 0.132694 | 0 | 0.341085 | 0 | 0 | 0.153176 | 0.008521 | 0 | 0 | 0 | 0.005525 | 0 | 1 | 0.062016 | false | 0.054264 | 0.093023 | 0 | 0.193798 | 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 |
338b93b6420f5487a22c8d5f0680abff469c4816 | 475 | py | Python | PedSimulation/gui/drawer/scene_drawer.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | 1 | 2018-08-15T17:42:58.000Z | 2018-08-15T17:42:58.000Z | PedSimulation/gui/drawer/scene_drawer.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | null | null | null | PedSimulation/gui/drawer/scene_drawer.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | null | null | null | # TODO write docs
class SceneDrawer(object):
def __init__(self, device, register):
self.device = device
self.background_color = "black"
self.entity_register = register
def draw(self, scene):
for entity in scene.entities:
if entity.drawer is not None:
... | 26.388889 | 63 | 0.602105 | 53 | 475 | 5.226415 | 0.528302 | 0.129964 | 0.129964 | 0.158845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317895 | 475 | 17 | 64 | 27.941176 | 0.854938 | 0.031579 | 0 | 0.166667 | 0 | 0 | 0.010941 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
338ba16c37243500b24f2350802cfa01c28a3bde | 10,993 | py | Python | nrm_django/contacts/models.py | 18F/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 5 | 2020-11-18T20:00:02.000Z | 2021-04-16T23:50:07.000Z | nrm_django/contacts/models.py | USDAForestService/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 210 | 2021-04-28T16:26:34.000Z | 2022-03-14T16:31:21.000Z | nrm_django/contacts/models.py | USDAForestService/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 2 | 2021-07-06T20:57:27.000Z | 2021-07-07T13:06:46.000Z | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed =... | 39.260714 | 112 | 0.67352 | 1,448 | 10,993 | 4.935773 | 0.205111 | 0.134322 | 0.098223 | 0.128446 | 0.572828 | 0.525115 | 0.495033 | 0.403106 | 0.34448 | 0.277739 | 0 | 0.017861 | 0.225871 | 10,993 | 279 | 113 | 39.401434 | 0.821974 | 0.083508 | 0 | 0.318367 | 1 | 0.004082 | 0.174856 | 0.006664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004082 | false | 0 | 0.008163 | 0 | 0.395918 | 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 |
338fd627e97fc78fc664bacccc7a87a6fbbb44d0 | 18,465 | py | Python | nodes/roboclaw_node.py | utahrobotics/phidgets_ros | 9ecf457470642142ffaa4eac4cd427aa578023b2 | [
"BSD-2-Clause"
] | null | null | null | nodes/roboclaw_node.py | utahrobotics/phidgets_ros | 9ecf457470642142ffaa4eac4cd427aa578023b2 | [
"BSD-2-Clause"
] | null | null | null | nodes/roboclaw_node.py | utahrobotics/phidgets_ros | 9ecf457470642142ffaa4eac4cd427aa578023b2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from math import pi, cos, sin
import sys
import diagnostic_msgs
import diagnostic_updater
sys.path.insert(1, '/home/usr2020/usr_ws/src/phidgets_ros/src')
from roboclaw_driver.roboclaw_driver import Roboclaw
import rospy
import tf
from geometry_msgs.msg import Quate... | 46.394472 | 172 | 0.610506 | 2,220 | 18,465 | 4.921171 | 0.169369 | 0.050526 | 0.026453 | 0.05135 | 0.463066 | 0.326041 | 0.26865 | 0.231487 | 0.179314 | 0.170709 | 0 | 0.029583 | 0.282372 | 18,465 | 397 | 173 | 46.511335 | 0.794883 | 0.12678 | 0 | 0.227119 | 0 | 0 | 0.095557 | 0.005435 | 0 | 0 | 0.006446 | 0.002519 | 0 | 0 | null | null | 0.010169 | 0.040678 | 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 |
3393b82f9d88de0ad6c687348190cf6e8a451d1c | 594 | py | Python | ms2ldaviz/add_parentmass.py | RP0001/ms2ldaviz | 35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7 | [
"MIT"
] | 6 | 2017-10-27T02:37:55.000Z | 2020-11-07T15:43:57.000Z | ms2ldaviz/add_parentmass.py | RP0001/ms2ldaviz | 35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7 | [
"MIT"
] | 134 | 2016-07-20T08:35:34.000Z | 2020-07-22T13:51:49.000Z | ms2ldaviz/add_parentmass.py | RP0001/ms2ldaviz | 35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7 | [
"MIT"
] | 9 | 2016-07-19T15:39:27.000Z | 2020-02-11T16:13:14.000Z | import os
import pickle
import numpy as np
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings")
import django
django.setup()
import jsonpickle
from basicviz.models import Experiment,Document
if __name__ == '__main__':
experiment_name = sys.argv[1]
experiment = Experiment.objects.get(na... | 25.826087 | 69 | 0.76431 | 78 | 594 | 5.666667 | 0.512821 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.124579 | 594 | 23 | 70 | 25.826087 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.107563 | 0.036975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 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 |
33979fc33a2fcc2eb29015cb146d289db49aad5d | 1,068 | py | Python | automol/extern/pybel_.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 2 | 2021-03-01T14:23:25.000Z | 2021-11-28T19:17:08.000Z | automol/extern/pybel_.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 1 | 2021-02-12T21:02:22.000Z | 2021-02-12T21:35:33.000Z | automol/extern/pybel_.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 7 | 2019-12-18T20:11:06.000Z | 2020-10-14T08:54:16.000Z | """ pybel interface
"""
import pybel
from phydat import ptab
import automol.geom.base
# geometry
def to_geometry(pbm):
""" Build an automol geometry data structure from a Pybel molecule object.
:param pbm: Pybel molecule object
:type pbm: Pybel object
:rtype: automol geometry data struct... | 22.723404 | 78 | 0.646067 | 145 | 1,068 | 4.724138 | 0.344828 | 0.113869 | 0.166423 | 0.087591 | 0.262774 | 0.216058 | 0.216058 | 0.216058 | 0.216058 | 0.216058 | 0 | 0.001256 | 0.254682 | 1,068 | 46 | 79 | 23.217391 | 0.859296 | 0.431648 | 0 | 0 | 0 | 0 | 0.020284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3397b90fe54c7a0c3b1a62ca3bdb6a78f0a522f3 | 1,204 | py | Python | PAL/Cross/pupy/packages/all/portscan.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 2 | 2017-11-23T01:07:37.000Z | 2021-06-25T05:03:49.000Z | PAL/Cross/pupy/packages/all/portscan.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | null | null | null | PAL/Cross/pupy/packages/all/portscan.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 1 | 2018-05-22T02:28:43.000Z | 2018-05-22T02:28:43.000Z | # -*- coding: UTF8 -*-
# Copyright (c) 2015, Nicolas VERDIER (contact@n1nj4.eu)
# Pupy is under the BSD 3-Clause license. see the LICENSE file at the root of the project for the detailed licence terms
from scapy.all import *
def format_response(pkt):
res=""
if "R" in pkt.sprintf("%TCP.flags%"):
res+="T... | 40.133333 | 124 | 0.599668 | 174 | 1,204 | 4.068966 | 0.528736 | 0.067797 | 0.091808 | 0.072034 | 0.233051 | 0.233051 | 0.233051 | 0.233051 | 0.233051 | 0.233051 | 0 | 0.030114 | 0.200166 | 1,204 | 29 | 125 | 41.517241 | 0.705088 | 0.16113 | 0 | 0.090909 | 0 | 0 | 0.254473 | 0.092445 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.045455 | null | null | 0.272727 | 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 |
3398460bb5dc0f20d17aebc6490935a40d8a8a58 | 3,816 | py | Python | thespiae/conf/exception.py | apleshakov/thespiae | db872dcf8981a3a76b9b4a3b06099427bb8f48c0 | [
"Apache-2.0"
] | null | null | null | thespiae/conf/exception.py | apleshakov/thespiae | db872dcf8981a3a76b9b4a3b06099427bb8f48c0 | [
"Apache-2.0"
] | null | null | null | thespiae/conf/exception.py | apleshakov/thespiae | db872dcf8981a3a76b9b4a3b06099427bb8f48c0 | [
"Apache-2.0"
] | null | null | null | #
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2020 Andrey Pleshakov
#
# 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 requi... | 32.067227 | 105 | 0.770702 | 410 | 3,816 | 6.858537 | 0.34878 | 0.054765 | 0.087838 | 0.110953 | 0.305477 | 0.223329 | 0.051209 | 0.051209 | 0.051209 | 0.051209 | 0 | 0.003862 | 0.117925 | 3,816 | 118 | 106 | 32.338983 | 0.831551 | 0.15435 | 0 | 0.38806 | 0 | 0 | 0.20536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.089552 | 0.104478 | 0 | 0.477612 | 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 |
3398ac1387149db5b5e3b6fe411c1bcff6a17279 | 400 | py | Python | tabnine-vim/third_party/ycmd/third_party/frozendict/setup.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | 239 | 2018-04-20T06:58:32.000Z | 2022-03-22T18:06:08.000Z | tabnine-vim/third_party/ycmd/third_party/frozendict/setup.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | 10 | 2018-12-09T13:49:06.000Z | 2021-07-03T00:38:53.000Z | tabnine-vim/third_party/ycmd/third_party/frozendict/setup.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | 99 | 2018-07-20T09:16:13.000Z | 2022-03-20T11:58:56.000Z | from distutils.core import setup
setup(
name = 'frozendict',
version = '0.3',
url = 'https://github.com/slezica/python-frozendict',
author = 'Santiago Lezica',
author_email = 'slezica89@gmail.com',
packages = ['frozendict'],
license = 'MIT License',
description ... | 23.529412 | 62 | 0.6125 | 41 | 400 | 5.926829 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.2475 | 400 | 16 | 63 | 25 | 0.79402 | 0 | 0 | 0 | 0 | 0 | 0.3625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
3399d2bb73245459fd00eb61c2a46595ab792560 | 9,924 | py | Python | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Sax.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Sax.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Sax.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | ########################################################################
# $Header: /var/local/cvsroot/4Suite/Ft/Xml/Sax.py,v 1.8 2006/04/12 21:06:09 uogbuji Exp $
"""
Abstraction module for Domlette SAX usage.
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRI... | 34.821053 | 90 | 0.66979 | 1,169 | 9,924 | 5.627032 | 0.282293 | 0.016418 | 0.010946 | 0.014442 | 0.190027 | 0.15339 | 0.119033 | 0.090301 | 0.080268 | 0.080268 | 0 | 0.004186 | 0.253829 | 9,924 | 284 | 91 | 34.943662 | 0.884132 | 0.032447 | 0 | 0.294643 | 0 | 0 | 0.007823 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0 | null | null | 0.008929 | 0.080357 | 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 |
339c3d5c7f9fef7c243f4b5993b4b6f9e906d308 | 1,550 | py | Python | app/forms.py | mihalw28/library_books | bdb82341e65fc8a3f91f7b111f63ab343a62427b | [
"MIT"
] | 1 | 2020-04-22T18:05:18.000Z | 2020-04-22T18:05:18.000Z | app/forms.py | mihalw28/library_books | bdb82341e65fc8a3f91f7b111f63ab343a62427b | [
"MIT"
] | 1 | 2019-05-21T16:19:02.000Z | 2019-05-24T12:24:21.000Z | app/forms.py | mihalw28/library_books | bdb82341e65fc8a3f91f7b111f63ab343a62427b | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import DataRequired, ValidationError
from app.models import Book, Author, Category
class AddBook(FlaskForm):
title = StringField("Tytuł książki", validators=[DataRequired()])
author = StringFie... | 34.444444 | 96 | 0.690968 | 160 | 1,550 | 6.6625 | 0.5875 | 0.082552 | 0.043152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203871 | 1,550 | 44 | 97 | 35.227273 | 0.863857 | 0.116129 | 0 | 0.060606 | 0 | 0 | 0.173881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.151515 | 0 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
339ed86cc98e9ceed8a3e909d90ae122738e9927 | 1,277 | py | Python | tools/Polygraphy/tests/tools/args/onnxrt/test_loader.py | borisfom/TensorRT | 42805f078052daad1a98bc5965974fcffaad0960 | [
"Apache-2.0"
] | 1 | 2022-03-05T08:46:19.000Z | 2022-03-05T08:46:19.000Z | tools/Polygraphy/tests/tools/args/onnxrt/test_loader.py | maxpark/TensorRT | 46253b644142a1d9632ba463422abfc5dcefc371 | [
"Apache-2.0"
] | null | null | null | tools/Polygraphy/tests/tools/args/onnxrt/test_loader.py | maxpark/TensorRT | 46253b644142a1d9632ba463422abfc5dcefc371 | [
"Apache-2.0"
] | 1 | 2022-03-19T16:03:30.000Z | 2022-03-19T16:03:30.000Z | #
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 39.90625 | 97 | 0.75646 | 164 | 1,277 | 5.817073 | 0.646341 | 0.062893 | 0.027254 | 0.033543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007449 | 0.158966 | 1,277 | 31 | 98 | 41.193548 | 0.880819 | 0.455756 | 0 | 0 | 0 | 0 | 0.07511 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
33a12f3847954e7d13dbf4a03019477dd6984954 | 373 | py | Python | jobs/reverse_strings.py | mtahmed/antnest | 97a46f165475f71b1cd0b10626232cd586e102b3 | [
"WTFPL"
] | 1 | 2016-10-07T07:19:11.000Z | 2016-10-07T07:19:11.000Z | jobs/reverse_strings.py | mtahmed/antnest | 97a46f165475f71b1cd0b10626232cd586e102b3 | [
"WTFPL"
] | null | null | null | jobs/reverse_strings.py | mtahmed/antnest | 97a46f165475f71b1cd0b10626232cd586e102b3 | [
"WTFPL"
] | null | null | null | def processor(self, string):
return string[::-1]
def split(self, input_data, processor):
import taskunit
input_lines = input_data.split('\n')
for input_line in input_lines:
yield taskunit.TaskUnit(data=input_line, processor=processor)
def combine(self):
for t in self.taskunits:
pri... | 23.3125 | 69 | 0.691689 | 51 | 373 | 4.921569 | 0.470588 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.201072 | 373 | 15 | 70 | 24.866667 | 0.838926 | 0 | 0 | 0 | 0 | 0 | 0.037534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.5 | 0.083333 | 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 |
33a55f9d37ed82d0c841f04d3a0d780acca33075 | 46,205 | py | Python | swarm5 - Copy.py | bobmitch/swarm | c17ea99ec58a0dd76d970887e83651f5bd0da3c2 | [
"MIT"
] | null | null | null | swarm5 - Copy.py | bobmitch/swarm | c17ea99ec58a0dd76d970887e83651f5bd0da3c2 | [
"MIT"
] | null | null | null | swarm5 - Copy.py | bobmitch/swarm | c17ea99ec58a0dd76d970887e83651f5bd0da3c2 | [
"MIT"
] | null | null | null | from psyco.classes import *
from heapq import heappush, heappop
import math
import operator
import pyglet
pyglet.options['debug_gl'] = False # TURN ON FOR DEBUGGIN GL!!!
import random
from pyglet.window import key
from pyglet.window import mouse
from pyglet.gl import *
from pyglet import clock
import cop... | 32.243545 | 202 | 0.653436 | 7,183 | 46,205 | 4.09244 | 0.086872 | 0.026432 | 0.011974 | 0.015512 | 0.484216 | 0.385257 | 0.321098 | 0.28361 | 0.251871 | 0.225269 | 0 | 0.031311 | 0.215475 | 46,205 | 1,432 | 203 | 32.266061 | 0.779635 | 0.117109 | 0 | 0.372493 | 0 | 0 | 0.016754 | 0.001411 | 0 | 0 | 0 | 0.000698 | 0 | 0 | null | null | 0.031519 | 0.010506 | null | null | 0.00191 | 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 |
33a9144f8096ecd331898bf5f4edb5bd17b6021e | 699 | py | Python | scofield/account/urls.py | howiworkdaily/scofield-project | f0daaf785c344a0da1f5b624518c9fa6c0514745 | [
"BSD-3-Clause"
] | 4 | 2016-04-10T13:37:58.000Z | 2018-06-11T18:49:29.000Z | scofield/account/urls.py | howiworkdaily/scofield-project | f0daaf785c344a0da1f5b624518c9fa6c0514745 | [
"BSD-3-Clause"
] | null | null | null | scofield/account/urls.py | howiworkdaily/scofield-project | f0daaf785c344a0da1f5b624518c9fa6c0514745 | [
"BSD-3-Clause"
] | 2 | 2015-04-08T19:52:19.000Z | 2021-02-10T08:08:19.000Z | from django.conf.urls.defaults import *
from account.forms import *
urlpatterns = patterns('',
url(r'^email/$', 'account.views.email', name="acct_email"),
url(r'^signup/$', 'account.views.signup', name="acct_signup"),
url(r'^login/$', 'account.views.login', name="acct_login"),
url(r'^password_change/$'... | 43.6875 | 120 | 0.686695 | 91 | 699 | 5.098901 | 0.32967 | 0.060345 | 0.056034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101574 | 699 | 15 | 121 | 46.6 | 0.738854 | 0 | 0 | 0 | 0 | 0 | 0.565903 | 0.212034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.181818 | 0 | 0.181818 | 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 |
33aa28fc065a4eb6e380a9824c6aad15f3a9e308 | 74,480 | py | Python | test/e2e/live_cluster/test_show.py | jfwm2/aerospike-admin | 3ce721bbd249eca73046345620941a6aef325589 | [
"Apache-2.0"
] | null | null | null | test/e2e/live_cluster/test_show.py | jfwm2/aerospike-admin | 3ce721bbd249eca73046345620941a6aef325589 | [
"Apache-2.0"
] | null | null | null | test/e2e/live_cluster/test_show.py | jfwm2/aerospike-admin | 3ce721bbd249eca73046345620941a6aef325589 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013-2021 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 31.734129 | 112 | 0.531727 | 7,243 | 74,480 | 5.186387 | 0.093331 | 0.024917 | 0.025556 | 0.029815 | 0.707627 | 0.671742 | 0.660775 | 0.640303 | 0.626035 | 0.607534 | 0 | 0.010496 | 0.362983 | 74,480 | 2,346 | 113 | 31.747656 | 0.781263 | 0.060405 | 0 | 0.625874 | 0 | 0 | 0.259736 | 0.114808 | 0 | 0 | 0 | 0.007246 | 0.051948 | 1 | 0.028971 | false | 0.006494 | 0.003996 | 0 | 0.04995 | 0.000999 | 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 |
33af11bcd28b86d8364746851a4798dff2204521 | 2,226 | py | Python | navitia_client/departures.py | leonardbinet/navitia-python | f3886793c84b541ed3d410a1732e12ac4b5e3dde | [
"MIT"
] | 9 | 2017-01-10T14:40:31.000Z | 2022-02-14T19:25:18.000Z | navitia_client/departures.py | leonardbinet/navitia-python | f3886793c84b541ed3d410a1732e12ac4b5e3dde | [
"MIT"
] | 2 | 2016-12-15T15:05:58.000Z | 2019-05-30T10:30:21.000Z | navitia_client/departures.py | leonardbinet/navitia-python | f3886793c84b541ed3d410a1732e12ac4b5e3dde | [
"MIT"
] | 3 | 2017-10-06T10:45:38.000Z | 2021-01-21T14:29:43.000Z | """
Departures
http://doc.navitia.io/#departures
Also known as /departures service.
This endpoint retrieves a list of departures from a specific datetime of a selected object. Departures are ordered chronologically in ascending order as:
url Result
/coverage/{region_i... | 42 | 157 | 0.637466 | 267 | 2,226 | 5.235955 | 0.389513 | 0.053648 | 0.034335 | 0.034335 | 0.25608 | 0.226037 | 0.178827 | 0.134478 | 0.134478 | 0.134478 | 0 | 0 | 0.278976 | 2,226 | 52 | 158 | 42.807692 | 0.871028 | 0.410602 | 0 | 0.192308 | 0 | 0 | 0.185957 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 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 |
33b37233149d05e86cd85a055e24a3ee1ae0e970 | 323 | py | Python | tools/project_gen/proj/handlego.py | qsock/qim | 5591726d191b705fe6ac4f8c9c5e6112e4c0152c | [
"MIT"
] | null | null | null | tools/project_gen/proj/handlego.py | qsock/qim | 5591726d191b705fe6ac4f8c9c5e6112e4c0152c | [
"MIT"
] | null | null | null | tools/project_gen/proj/handlego.py | qsock/qim | 5591726d191b705fe6ac4f8c9c5e6112e4c0152c | [
"MIT"
] | null | null | null |
content = '''package main
import (
"context"
"github.com/qsock/qim/lib/proto/ret"
)
type Server struct{}
func (*Server) Ping(ctx context.Context, req *ret.NoArgs) (*ret.NoArgs, error) {
return new(ret.NoArgs), nil
}'''
def gen(name, srv_dir) :
with open(srv_dir+"/handle.go", "w") as f:
f.write(conte... | 19 | 80 | 0.650155 | 49 | 323 | 4.244898 | 0.755102 | 0.129808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167183 | 323 | 17 | 81 | 19 | 0.773234 | 0 | 0 | 0 | 0 | 0.083333 | 0.678019 | 0.111455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33b6e5f2e1df5f9edb69ada82a6f43878467cc82 | 622 | py | Python | repo_utils/coverage_maker.py | ACEnglish/truvari | 9c640c395c8edb9314dffbd8c4357260ee473a1d | [
"MIT"
] | 16 | 2022-02-23T21:24:53.000Z | 2022-03-29T09:49:22.000Z | repo_utils/coverage_maker.py | ACEnglish/truvari | 9c640c395c8edb9314dffbd8c4357260ee473a1d | [
"MIT"
] | 8 | 2022-03-09T16:10:59.000Z | 2022-03-30T20:26:56.000Z | repo_utils/coverage_maker.py | ACEnglish/truvari | 9c640c395c8edb9314dffbd8c4357260ee473a1d | [
"MIT"
] | null | null | null | """
Utility to run pylint and update the badge
"""
import re
import sys
import json
from io import StringIO
import anybadge
# Get the score
data = json.load(open(sys.argv[1], 'r'))
coverage_pct = round(data['totals']['percent_covered'])
# Define thresholds: <2=red, <4=orange <8=yellow <10=green
thresholds = {20: 'red... | 23.037037 | 63 | 0.638264 | 82 | 622 | 4.768293 | 0.658537 | 0.084399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035124 | 0.221865 | 622 | 26 | 64 | 23.923077 | 0.772727 | 0.199357 | 0 | 0 | 0 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
33b8ea1e1748463ce1a1e047d54a2ecb2c83d8cb | 4,265 | py | Python | src/lab/dynamic_sql.py | john-james-sf/predict-fda | 69396584b3cdd2f412e37e5f6eae0b9856413ad0 | [
"BSD-3-Clause"
] | null | null | null | src/lab/dynamic_sql.py | john-james-sf/predict-fda | 69396584b3cdd2f412e37e5f6eae0b9856413ad0 | [
"BSD-3-Clause"
] | null | null | null | src/lab/dynamic_sql.py | john-james-sf/predict-fda | 69396584b3cdd2f412e37e5f6eae0b9856413ad0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# =========================================================================== #
# Project : Drug Approval Analytics #
# Version : 0.1.0 #
# File : \src\lab\dynamic_sql.... | 46.868132 | 127 | 0.475498 | 452 | 4,265 | 4.404867 | 0.44469 | 0.030136 | 0.025113 | 0.019588 | 0.162732 | 0.116524 | 0.116524 | 0.116524 | 0.116524 | 0.116524 | 0 | 0.020799 | 0.289801 | 4,265 | 90 | 128 | 47.388889 | 0.636514 | 0.45041 | 0 | 0.102564 | 0 | 0 | 0.135861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.051282 | 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 |
33bd00e39392ef287389425cf10c68e23a85dd90 | 1,208 | py | Python | core/urls.py | damiso15/location_api | a6b460cd7ea6dd54bfca25ee077e63dd0ea114d5 | [
"MIT"
] | null | null | null | core/urls.py | damiso15/location_api | a6b460cd7ea6dd54bfca25ee077e63dd0ea114d5 | [
"MIT"
] | 7 | 2021-02-08T20:52:25.000Z | 2022-01-13T03:11:11.000Z | core/urls.py | damiso15/location_api | a6b460cd7ea6dd54bfca25ee077e63dd0ea114d5 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from rest_framework.documentation import include_docs_urls
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
from rest_framework import permissi... | 37.75 | 128 | 0.725166 | 159 | 1,208 | 5.327044 | 0.371069 | 0.059032 | 0.033058 | 0.042503 | 0.160567 | 0.106257 | 0.106257 | 0.106257 | 0.106257 | 0 | 0 | 0.003933 | 0.158113 | 1,208 | 31 | 129 | 38.967742 | 0.828909 | 0.100166 | 0 | 0 | 0 | 0 | 0.190702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
33c151e969f951b36aee62f5ec07707268e6a1ee | 1,622 | py | Python | helpingnetwork/organization/forms.py | neopentane/Techathon_19 | defaea24e55bdc4a26138a7a8c8813f5b12156f2 | [
"MIT"
] | null | null | null | helpingnetwork/organization/forms.py | neopentane/Techathon_19 | defaea24e55bdc4a26138a7a8c8813f5b12156f2 | [
"MIT"
] | 22 | 2020-02-12T00:01:41.000Z | 2022-03-11T23:44:42.000Z | helpingnetwork/organization/forms.py | neopentane/Techathon_19 | defaea24e55bdc4a26138a7a8c8813f5b12156f2 | [
"MIT"
] | 2 | 2019-04-03T18:01:54.000Z | 2019-04-04T03:57:55.000Z | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Organization,OrganizationImages
from evelist.models import Event,EventImages
class OrganizationRegisterForm(UserCreationForm):
name=forms.CharField(required=True, label="Org... | 34.510638 | 122 | 0.763255 | 185 | 1,622 | 6.67027 | 0.302703 | 0.079417 | 0.056726 | 0.084279 | 0.321718 | 0.180713 | 0.123987 | 0.123987 | 0.123987 | 0 | 0 | 0.007417 | 0.085697 | 1,622 | 46 | 123 | 35.26087 | 0.82468 | 0 | 0 | 0.151515 | 0 | 0 | 0.200758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030303 | 0.151515 | 0 | 0.606061 | 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 |
33c27529dccf8f76b0590fc0e658803187b17fad | 1,094 | py | Python | tests/unit/test_readHelper.py | woshiange/python-lambda | 922ed4bd3a7b48a9f4a4565fc3c78fbdc17eed40 | [
"ISC"
] | 1,441 | 2016-03-28T20:54:05.000Z | 2022-03-29T23:09:59.000Z | tests/unit/test_readHelper.py | woshiange/python-lambda | 922ed4bd3a7b48a9f4a4565fc3c78fbdc17eed40 | [
"ISC"
] | 631 | 2016-04-03T07:46:07.000Z | 2022-03-15T09:52:02.000Z | tests/unit/test_readHelper.py | woshiange/python-lambda | 922ed4bd3a7b48a9f4a4565fc3c78fbdc17eed40 | [
"ISC"
] | 261 | 2016-04-05T21:05:44.000Z | 2022-01-12T20:58:30.000Z | import os
import unittest
import yaml
from aws_lambda.helpers import read
class TestReadHelper(unittest.TestCase):
TEST_FILE = "readTmp.txt"
def setUp(self):
with open(TestReadHelper.TEST_FILE, "w") as tmp_file:
tmp_file.write("testYaml: testing")
def tearDown(self):
os.re... | 29.567568 | 77 | 0.709324 | 132 | 1,094 | 5.621212 | 0.30303 | 0.075472 | 0.177898 | 0.140162 | 0.572776 | 0.361186 | 0.247978 | 0.150943 | 0.150943 | 0.150943 | 0 | 0 | 0.195612 | 1,094 | 36 | 78 | 30.388889 | 0.843182 | 0 | 0 | 0.08 | 0 | 0 | 0.085009 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.48 | 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 |
33c8d103f1c3c1414087a47bfbb84680c9c04b40 | 340 | py | Python | public/templates/_default.py | WinterTechForum/amazebot | 1689a36f8fdb8b74a6d955ea383ad5bcb646409a | [
"Apache-2.0"
] | null | null | null | public/templates/_default.py | WinterTechForum/amazebot | 1689a36f8fdb8b74a6d955ea383ad5bcb646409a | [
"Apache-2.0"
] | null | null | null | public/templates/_default.py | WinterTechForum/amazebot | 1689a36f8fdb8b74a6d955ea383ad5bcb646409a | [
"Apache-2.0"
] | null | null | null | from time import sleep
from org.jointheleague.ecolban.rpirobot import SimpleIRobot, Sonar
robot = SimpleIRobot()
sonar = Sonar()
def setup():
# Initialization code here
pass
def loop():
# Repeating code here
return True
def shutdown():
robot.reset()
robot.stop()
robot.closeConnection()
setup()
while loop... | 13.076923 | 66 | 0.729412 | 42 | 340 | 5.904762 | 0.619048 | 0.137097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 340 | 26 | 67 | 13.076923 | 0.870175 | 0.129412 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.125 | 0.0625 | 0.375 | 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 |
33c9082c959405a1982de071689c5b25d818a22c | 566 | py | Python | Workshop6/1b.py | Camiloasc1/OptimizationUNAL | 7755f6ee4f78a5e0b63c7217b32efbc78fb40877 | [
"MIT"
] | null | null | null | Workshop6/1b.py | Camiloasc1/OptimizationUNAL | 7755f6ee4f78a5e0b63c7217b32efbc78fb40877 | [
"MIT"
] | null | null | null | Workshop6/1b.py | Camiloasc1/OptimizationUNAL | 7755f6ee4f78a5e0b63c7217b32efbc78fb40877 | [
"MIT"
] | null | null | null | from Workshop6.Graph import *
C = {}
makeDLinkW(C, '1', '4', 10)
makeDLinkW(C, '1', '2', 5)
makeDLinkW(C, '2', '5', 1)
makeDLinkW(C, '2', '3', 7)
makeDLinkW(C, '3', '6', 4)
makeDLinkW(C, '4', '7', 11)
makeDLinkW(C, '4', '5', 3)
makeDLinkW(C, '5', '8', 7)
makeDLinkW(C, '5', '6', 3)
makeDLinkW(C, '6', '9', 5)
make... | 16.647059 | 29 | 0.542403 | 97 | 566 | 3.164948 | 0.226804 | 0.609121 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 0.159011 | 566 | 33 | 30 | 17.151515 | 0.512605 | 0 | 0 | 0 | 0 | 0 | 0.074205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.095238 | 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 |
33cd2cb691801e11e61448b327f9a02d2373d7bb | 3,391 | py | Python | examples/cw/cw_users.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | examples/cw/cw_users.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | examples/cw/cw_users.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | 1 | 2020-08-27T13:17:00.000Z | 2020-08-27T13:17:00.000Z | """
CubicWeb instance request (user mode)
=====================================
Credit: A Grigis
pycaravel is a Python package that enables you to parse various source of data.
In this tutorial you will learn how to parse and search in a CubicWeb instance.
First checks
------------
In order to test if pycaravel pac... | 35.694737 | 79 | 0.611914 | 400 | 3,391 | 5.1425 | 0.4475 | 0.037433 | 0.043753 | 0.040836 | 0.05931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008829 | 0.131525 | 3,391 | 94 | 80 | 36.074468 | 0.689643 | 0.510174 | 0 | 0 | 0 | 0 | 0.23989 | 0.07261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0.551724 | 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 |
33d273e474670714845e18d5422cebeebe24b1e3 | 230 | py | Python | 0x0A-python-inheritance/1-my_list.py | BennettDixon/holbertonschool-higher_level_programming | 3fbcd5e009548aab5539ce8610b4113f005964c4 | [
"MIT"
] | 1 | 2022-02-07T12:13:18.000Z | 2022-02-07T12:13:18.000Z | 0x0A-python-inheritance/1-my_list.py | BennettDixon/holbertonschool-higher_level_programming | 3fbcd5e009548aab5539ce8610b4113f005964c4 | [
"MIT"
] | null | null | null | 0x0A-python-inheritance/1-my_list.py | BennettDixon/holbertonschool-higher_level_programming | 3fbcd5e009548aab5539ce8610b4113f005964c4 | [
"MIT"
] | 1 | 2021-12-06T18:15:54.000Z | 2021-12-06T18:15:54.000Z | #!/usr/bin/python3
class MyList(list):
"""extended version of list
"""
def print_sorted(self):
"""prints the list in ascending order
"""
copy = self[:]
copy.sort()
print(copy)
| 17.692308 | 45 | 0.530435 | 26 | 230 | 4.653846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.330435 | 230 | 12 | 46 | 19.166667 | 0.779221 | 0.395652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.4 | 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 |
33dbaf565debd89baf443b9842493c83b9a701e6 | 3,081 | py | Python | keyword_preprocess.py | w-garcia/BugClustering | 95636fac5adf507e162063aab40f5560b564d61a | [
"Apache-2.0"
] | 3 | 2016-08-28T22:43:26.000Z | 2018-10-21T15:07:33.000Z | keyword_preprocess.py | w-garcia/BugClustering | 95636fac5adf507e162063aab40f5560b564d61a | [
"Apache-2.0"
] | 4 | 2016-07-12T22:51:32.000Z | 2016-08-05T06:58:11.000Z | keyword_preprocess.py | w-garcia/BugClustering | 95636fac5adf507e162063aab40f5560b564d61a | [
"Apache-2.0"
] | null | null | null | from util import cwd
import util
from jira import *
import DBModel
def get_full_description(j, line):
begin_key = line.find('[') + 1
end_key = line.find(']') - 1
issue_id = line[begin_key: end_key + 1]
try:
issue = j.issue(issue_id)
except JIRAError:
print JIRAError.message
... | 35.011364 | 117 | 0.644596 | 348 | 3,081 | 5.416667 | 0.270115 | 0.099204 | 0.096552 | 0.042971 | 0.411671 | 0.339523 | 0.30557 | 0.249337 | 0.249337 | 0.249337 | 0 | 0.006885 | 0.245699 | 3,081 | 87 | 118 | 35.413793 | 0.804217 | 0.064914 | 0 | 0.140351 | 0 | 0 | 0.062957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070175 | null | null | 0.070175 | 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 |
33dcc6e7865a2d37a085da69d483eff232de5858 | 819 | py | Python | Ex087.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | Ex087.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | Ex087.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | #Desafio: Aprimore o desafio anterior, mostrando no final:
# A) A soma de todos os valores pares digitados.
# B) A soma dos valores da terceira coluna.
# C) O maior valor da segunda linha.
matriz = [[], [], []]
par = soma = maior = 0
for n in range(0, 3):
for i in range(0, 3):
num = int(input(f'Digite um ... | 30.333333 | 61 | 0.551893 | 136 | 819 | 3.323529 | 0.382353 | 0.044248 | 0.070796 | 0.079646 | 0.360619 | 0.307522 | 0.137168 | 0 | 0 | 0 | 0 | 0.030769 | 0.285714 | 819 | 26 | 62 | 31.5 | 0.74188 | 0.221001 | 0 | 0.095238 | 0 | 0 | 0.273302 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33e1385a7ae905b5505ab158039a24d335f5a5c3 | 1,850 | py | Python | backend/api/tests/routes/test_auth.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | 45 | 2020-09-23T15:38:41.000Z | 2021-09-15T19:27:57.000Z | backend/api/tests/routes/test_auth.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | null | null | null | backend/api/tests/routes/test_auth.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | null | null | null | # Test cases for /login and /signup
import unittest
from rest_framework.test import APIClient
from api.models import User, Group
class LoginTestCase(unittest.TestCase):
def setUp(self) -> None:
self.username = 'testuser'
self.password = 'testpassword'
self.client = APIClient()
... | 26.811594 | 74 | 0.62973 | 221 | 1,850 | 5.131222 | 0.348416 | 0.074074 | 0.070547 | 0.095238 | 0.291005 | 0.206349 | 0.070547 | 0 | 0 | 0 | 0 | 0.009427 | 0.254595 | 1,850 | 68 | 75 | 27.205882 | 0.812908 | 0.126486 | 0 | 0.243902 | 0 | 0 | 0.053292 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 1 | 0.146341 | false | 0.146341 | 0.073171 | 0 | 0.243902 | 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 |
33eb96c9ce88e46575dc85886fa77cabea78d401 | 116,198 | py | Python | core/objs/xml_modelo_106.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | null | null | null | core/objs/xml_modelo_106.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | null | null | null | core/objs/xml_modelo_106.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | 2 | 2017-12-04T14:59:22.000Z | 2018-12-06T18:50:29.000Z | # !/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
ERP+
"""
__author__ = 'António Anacleto'
__credits__ = []
__version__ = "1.0"
__maintainer__ = "António Anacleto"
__status__ = "Development"
__model_name__ = 'xml_modelo_106.XMLModelo106'
import auth, base_models
from orm import *
from form import *
import erp_confi... | 58.244612 | 385 | 0.549244 | 12,957 | 116,198 | 4.640735 | 0.061666 | 0.0232 | 0.022451 | 0.010976 | 0.776767 | 0.728788 | 0.673291 | 0.597605 | 0.551555 | 0.502994 | 0 | 0.024769 | 0.328388 | 116,198 | 1,995 | 386 | 58.244612 | 0.745733 | 0.077557 | 0 | 0.494484 | 0 | 0.00584 | 0.217174 | 0.046144 | 0 | 0 | 0 | 0.003509 | 0 | 1 | 0.026606 | false | 0.001947 | 0.021415 | 0.000649 | 0.088903 | 0.005191 | 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 |
33f71ca31dccaeb916b60a85cead11a6668cb0f9 | 331 | py | Python | CODES/20. Loop for/loops.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 4 | 2019-05-04T00:33:25.000Z | 2021-05-29T20:37:59.000Z | CODES/20. Loop for/loops.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | null | null | null | CODES/20. Loop for/loops.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 3 | 2020-05-05T13:14:28.000Z | 2022-02-03T16:18:37.000Z | result = 0
"""
i = 0
while i < 4:
nr = int(input("Please give me the number: "))
result += nr
i += 1
print("The result of adding numbers is: ", result)
"""
for i in range(1000):
if (i%2 == 0):
print(i, " is even number")
print("The result of adding numbers is: ", resu... | 15.761905 | 51 | 0.510574 | 49 | 331 | 3.44898 | 0.530612 | 0.094675 | 0.16568 | 0.189349 | 0.43787 | 0.43787 | 0.43787 | 0.43787 | 0 | 0 | 0 | 0.046083 | 0.344411 | 331 | 20 | 52 | 16.55 | 0.732719 | 0 | 0 | 0 | 0 | 0 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
33f7c33689a20915fc1f4a3c5dac83028c67c253 | 5,275 | py | Python | annotations/gtf.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | annotations/gtf.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | annotations/gtf.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | import bisect
from annotations.db_connect import Connection
class GTF(Connection):
TABLE = "GTF"
GENE_BUCKET_SIZE = 1000000
COLUMNS = [
"chromosome",
"source",
"feature",
"start",
"end",
"score",
"strand",
"frame",
"attribute",
... | 37.411348 | 114 | 0.556398 | 579 | 5,275 | 5.008636 | 0.253886 | 0.041724 | 0.064483 | 0.075862 | 0.26069 | 0.247241 | 0.181034 | 0.137586 | 0.137586 | 0 | 0 | 0.066103 | 0.283033 | 5,275 | 140 | 115 | 37.678571 | 0.700687 | 0 | 0 | 0.057377 | 0 | 0.008197 | 0.178578 | 0.010616 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016393 | 0.016393 | null | null | 0.098361 | 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 |
33fac7be8ff2424df0f0b3d70d510351cf8a6e46 | 1,404 | py | Python | python/graphs/shortest_path.py | tachyonsoftware/algorithms | 29149a55de173b42dfa461838877fa66d018629f | [
"MIT"
] | 17 | 2016-06-29T08:41:51.000Z | 2022-02-04T13:39:13.000Z | python/graphs/shortest_path.py | tachyonsoftware/algorithms | 29149a55de173b42dfa461838877fa66d018629f | [
"MIT"
] | null | null | null | python/graphs/shortest_path.py | tachyonsoftware/algorithms | 29149a55de173b42dfa461838877fa66d018629f | [
"MIT"
] | 4 | 2016-05-09T19:02:47.000Z | 2021-02-22T02:05:41.000Z | def get_shortest_path(in_nodes, start, dest):
shortest_paths = {start: (0, [start])}
def _get_shortest(dest, shortest_paths=shortest_paths):
if dest not in shortest_paths:
incoming_edges = in_nodes[dest]
shortest_path, shortest_cost = None, None
for in_node, cost i... | 31.909091 | 75 | 0.519943 | 176 | 1,404 | 3.818182 | 0.278409 | 0.107143 | 0.0625 | 0.050595 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013963 | 0.336895 | 1,404 | 43 | 76 | 32.651163 | 0.707841 | 0.025641 | 0 | 0 | 0 | 0 | 0.020498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.032258 | 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 |
33ff02fcc88d04f5a6a92117af0aba556644900b | 1,055 | py | Python | src/zsl/application/modules/task_router.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 2 | 2017-05-17T08:08:52.000Z | 2019-03-25T00:24:51.000Z | src/zsl/application/modules/task_router.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 100 | 2017-01-11T13:43:11.000Z | 2022-02-10T09:27:18.000Z | src/zsl/application/modules/task_router.py | AtteqCom/zsl | 0d418ef957c9780263b1031dbc59482cd974bc04 | [
"MIT"
] | 1 | 2017-05-10T10:27:01.000Z | 2017-05-10T10:27:01.000Z | """
:mod:`zsl.application.modules.task_router_module`
-------------------------------------------------
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from builtins import *
from injector import ClassProvider, Module, provides, singleton
from zsl import Config, inject
from zsl... | 35.166667 | 107 | 0.738389 | 112 | 1,055 | 6.705357 | 0.4375 | 0.067909 | 0.055925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127014 | 1,055 | 29 | 108 | 36.37931 | 0.815418 | 0.134597 | 0 | 0 | 0 | 0 | 0.014444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0.0625 | 0.75 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
33ff3a23a0cdf7f57d27c0874bdae76f244af614 | 1,142 | py | Python | wordmarker/data/formatter.py | lostblackknight/wordmarker | cbdfd6b6d5ae8c48b11825afcf86afe9f7386a48 | [
"MIT"
] | 2 | 2021-04-19T14:26:24.000Z | 2021-05-01T14:59:20.000Z | wordmarker/data/formatter.py | lostblackknight/wordmarker | cbdfd6b6d5ae8c48b11825afcf86afe9f7386a48 | [
"MIT"
] | null | null | null | wordmarker/data/formatter.py | lostblackknight/wordmarker | cbdfd6b6d5ae8c48b11825afcf86afe9f7386a48 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
class Formatter(metaclass=ABCMeta):
"""
::
格式化的抽象类
"""
@abstractmethod
def format(self, *args):
"""
.. note::
格式化数据
:param args: 数据
:return: - 格式化后的数据
"""
pass
class SqlFormatter(Forma... | 18.126984 | 74 | 0.405429 | 98 | 1,142 | 4.663265 | 0.591837 | 0.061269 | 0.056893 | 0.065646 | 0.122538 | 0.122538 | 0 | 0 | 0 | 0 | 0 | 0.014876 | 0.470228 | 1,142 | 62 | 75 | 18.419355 | 0.740496 | 0.408932 | 0 | 0 | 0 | 0 | 0.004255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.0625 | 0 | 0.375 | 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 |
d5043264b0518e56862d01c7eb94c5e8dbf8d283 | 28,970 | py | Python | tests/nn/test_inference.py | Tyelab/sleap | 67b4b3e762571e70beadf940a64ed62d9481dafe | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/nn/test_inference.py | Tyelab/sleap | 67b4b3e762571e70beadf940a64ed62d9481dafe | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/nn/test_inference.py | Tyelab/sleap | 67b4b3e762571e70beadf940a64ed62d9481dafe | [
"BSD-3-Clause-Clear"
] | null | null | null | import pytest
import numpy as np
import tensorflow as tf
import sleap
from numpy.testing import assert_array_equal, assert_allclose
from sleap.nn.data.confidence_maps import (
make_confmaps,
make_grid_vectors,
make_multi_confmaps,
)
from sleap.nn.inference import (
InferenceLayer,
InferenceModel,
... | 36.624526 | 88 | 0.659717 | 4,135 | 28,970 | 4.409432 | 0.064813 | 0.044041 | 0.038392 | 0.029178 | 0.775133 | 0.741951 | 0.699665 | 0.65025 | 0.605221 | 0.572808 | 0 | 0.037873 | 0.189748 | 28,970 | 790 | 89 | 36.670886 | 0.738891 | 0.023749 | 0 | 0.466981 | 0 | 0 | 0.071199 | 0.001911 | 0 | 0 | 0 | 0 | 0.308176 | 1 | 0.033019 | false | 0 | 0.011006 | 0 | 0.04717 | 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 |
d5052f42bc5a5490eb5f2ded6251bc9b58c74e88 | 2,609 | py | Python | utils/status.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | 3 | 2022-01-04T09:21:19.000Z | 2022-01-14T22:38:04.000Z | utils/status.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | null | null | null | utils/status.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | null | null | null | # Copyright 2021-present, Lorenzo Bonicelli, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Simone Calderara.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from datetime import datetime
import sys
from time import time
... | 39.530303 | 112 | 0.562668 | 343 | 2,609 | 4.174927 | 0.28863 | 0.069832 | 0.048883 | 0.018855 | 0.639665 | 0.639665 | 0.639665 | 0.603352 | 0.603352 | 0.603352 | 0 | 0.021111 | 0.31008 | 2,609 | 65 | 113 | 40.138462 | 0.772222 | 0.279034 | 0 | 0.512821 | 0 | 0 | 0.070826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.102564 | 0 | 0.205128 | 0.051282 | 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 |
d50977a1173e03333bd9db653a52f766451f5c25 | 21,392 | py | Python | varsom_avalanche_client/models/avalanche_problem.py | NVE/python-varsom-avalanche-client | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | [
"MIT"
] | null | null | null | varsom_avalanche_client/models/avalanche_problem.py | NVE/python-varsom-avalanche-client | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | [
"MIT"
] | null | null | null | varsom_avalanche_client/models/avalanche_problem.py | NVE/python-varsom-avalanche-client | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Snøskredvarsel API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v5.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
imp... | 33.848101 | 594 | 0.674131 | 2,567 | 21,392 | 5.244644 | 0.058044 | 0.037436 | 0.137265 | 0.121667 | 0.732155 | 0.609002 | 0.537027 | 0.394786 | 0.345911 | 0.214291 | 0 | 0.015528 | 0.253412 | 21,392 | 631 | 595 | 33.901743 | 0.827437 | 0.341997 | 0 | 0.083942 | 1 | 0 | 0.101715 | 0.037272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175182 | false | 0 | 0.010949 | 0 | 0.29562 | 0.007299 | 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 |
d50d43df4cf8d4e11c7ce02236ebeed703b1073c | 824 | py | Python | Backspace String Compare.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Backspace String Compare.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Backspace String Compare.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
print(S[0])
stack = []
for i in S:
if i=="#":
if len(stack)==0:
continue
stack.pop()
else:
s... | 21.128205 | 55 | 0.298544 | 79 | 824 | 3.113924 | 0.303797 | 0.130081 | 0.146341 | 0.065041 | 0.569106 | 0.569106 | 0.569106 | 0.569106 | 0.373984 | 0.373984 | 0 | 0.020649 | 0.588592 | 824 | 38 | 56 | 21.684211 | 0.705015 | 0 | 0 | 0.551724 | 0 | 0 | 0.002427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.103448 | 0.103448 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.