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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21c4e67bcec2a79afa2f1eebd700ab15449d0b2d | 4,665 | py | Python | aether-odk-module/aether/odk/api/serializers.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | null | null | null | aether-odk-module/aether/odk/api/serializers.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | null | null | null | aether-odk-module/aether/odk/api/serializers.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 by eHealth Africa : http://www.eHealthAfrica.org
#
# See the NOTICE file distributed with this work for additional information
# regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with
# the License. Y... | 33.321429 | 113 | 0.674384 | 537 | 4,665 | 5.709497 | 0.348231 | 0.018265 | 0.019569 | 0.026093 | 0.236791 | 0.221135 | 0.150685 | 0.150685 | 0.119374 | 0.119374 | 0 | 0.002263 | 0.242229 | 4,665 | 139 | 114 | 33.561151 | 0.865064 | 0.198928 | 0 | 0.288889 | 0 | 0 | 0.111709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.1 | 0.088889 | 0 | 0.377778 | 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 |
21c5953806a590d303da60ce30af9e05c9ffcf7f | 1,046 | py | Python | client.py | Klark007/Selbstfahrendes-Auto-im-Modell | d7fe81392de2b29b7dbc7c9d929fa0031b89900b | [
"MIT"
] | null | null | null | client.py | Klark007/Selbstfahrendes-Auto-im-Modell | d7fe81392de2b29b7dbc7c9d929fa0031b89900b | [
"MIT"
] | null | null | null | client.py | Klark007/Selbstfahrendes-Auto-im-Modell | d7fe81392de2b29b7dbc7c9d929fa0031b89900b | [
"MIT"
] | null | null | null | import socket
from ast import literal_eval
import Yetiborg.Drive as Yetiborg
HEADERSIZE = 2
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 12345)) # 192.168.0.11 / localhost / 192.168.0.108
# car always looks up at the beginning
car = Yetiborg.Yetiborg((0, 1))
"""
fs: finished
"... | 18.350877 | 75 | 0.637667 | 148 | 1,046 | 4.425676 | 0.513514 | 0.032061 | 0.021374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039555 | 0.226577 | 1,046 | 56 | 76 | 18.678571 | 0.770087 | 0.209369 | 0 | 0.068966 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.103448 | 0 | 0.206897 | 0.103448 | 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 |
21cf42098efd959d6275b16af7c4990f494ec81b | 859 | py | Python | inv/migrations/0001_subinterface_managed_object.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | inv/migrations/0001_subinterface_managed_object.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | inv/migrations/0001_subinterface_managed_object.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Initialize SubInterface.managed_object
# ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# -----------------------------------------------------------------... | 35.791667 | 84 | 0.463329 | 82 | 859 | 4.743902 | 0.5 | 0.200514 | 0.128535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014577 | 0.201397 | 859 | 23 | 85 | 37.347826 | 0.552478 | 0.462165 | 0 | 0 | 0 | 0 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21d04b45422de71cb56cbdb189ae8ae7a0615c7b | 14,224 | py | Python | utils/etrm_stochastic_grid_search/residual_analysis.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 7 | 2016-08-30T15:18:11.000Z | 2021-08-22T00:28:10.000Z | utils/etrm_stochastic_grid_search/residual_analysis.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 2 | 2016-06-08T06:41:45.000Z | 2016-06-23T20:47:26.000Z | utils/etrm_stochastic_grid_search/residual_analysis.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 1 | 2018-09-18T10:38:08.000Z | 2018-09-18T10:38:08.000Z | # ===============================================================================
# Copyright 2019 Jan Hendrickx and Gabriel Parrish
#
# 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:/... | 37.729443 | 147 | 0.710911 | 2,165 | 14,224 | 4.430947 | 0.143187 | 0.043365 | 0.031273 | 0.037527 | 0.647451 | 0.630251 | 0.613677 | 0.601584 | 0.573022 | 0.564266 | 0 | 0.0197 | 0.122118 | 14,224 | 377 | 148 | 37.729443 | 0.748538 | 0.335208 | 0 | 0.531818 | 0 | 0 | 0.143925 | 0.021567 | 0 | 0 | 0 | 0.002653 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.013636 | 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 |
21d487a575334245b8424e08a0ec1c4d3a7ff96b | 672 | py | Python | src/person/migrations/0004_actors_moved.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 10 | 2021-01-10T09:39:16.000Z | 2022-02-05T06:40:47.000Z | src/person/migrations/0004_actors_moved.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | null | null | null | src/person/migrations/0004_actors_moved.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 1 | 2021-01-11T17:04:06.000Z | 2021-01-11T17:04:06.000Z | # Generated by Django 3.1.5 on 2021-03-22 17:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0010_actors_moved'),
('person', '0003_refactoring_movie_person_m2m_rels'),
]
operations = [
migrations.AddField(
... | 26.88 | 113 | 0.605655 | 70 | 672 | 5.642857 | 0.685714 | 0.091139 | 0.116456 | 0.136709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05499 | 0.269345 | 672 | 24 | 114 | 28 | 0.749491 | 0.066964 | 0 | 0.222222 | 1 | 0 | 0.2144 | 0.0608 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 |
21d580ac0342437490dbebbfefc2c13b2463ec74 | 4,265 | py | Python | ds5-scripts/aosp_8_1/arm/time.py | rewhy/happer | 3b48894e2d91f150f1aee0ce75291b9ca2a29bbe | [
"Apache-2.0"
] | 32 | 2021-04-08T05:39:51.000Z | 2022-03-31T03:49:35.000Z | ds5-scripts/aosp_8_1/arm/time.py | rewhy/happer | 3b48894e2d91f150f1aee0ce75291b9ca2a29bbe | [
"Apache-2.0"
] | 2 | 2021-04-14T08:31:30.000Z | 2021-08-29T19:12:09.000Z | ds5-scripts/aosp_8_1/arm/time.py | rewhy/happer | 3b48894e2d91f150f1aee0ce75291b9ca2a29bbe | [
"Apache-2.0"
] | 3 | 2021-06-08T08:52:56.000Z | 2021-06-23T17:28:51.000Z | # time.py
import gc
import os
import sys
from arm_ds.debugger_v1 import Debugger
from arm_ds.debugger_v1 import DebugException
import config
import memory
import mmu
# obtain current execution state
debugger = Debugger()
execution_state = debugger.getCurrentExecutionContext()
def cleanup():
if... | 32.557252 | 126 | 0.687222 | 584 | 4,265 | 4.75 | 0.246575 | 0.055876 | 0.028839 | 0.023792 | 0.537131 | 0.50036 | 0.46323 | 0.443403 | 0.397981 | 0.397981 | 0 | 0.039409 | 0.190856 | 4,265 | 130 | 127 | 32.807692 | 0.764416 | 0.161547 | 0 | 0.317073 | 0 | 0.04878 | 0.093732 | 0.014646 | 0 | 0 | 0.02314 | 0.007692 | 0.036585 | 0 | null | null | 0 | 0.097561 | null | null | 0.04878 | 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 |
21d8495b0fdeb7179e8f4818df4634dea3eb06dd | 312 | py | Python | 0118.Pascal's_Triangle/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 5 | 2020-05-23T02:18:26.000Z | 2021-07-05T05:36:01.000Z | 0118.Pascal's_Triangle/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2020-06-10T07:17:24.000Z | 2020-07-20T02:21:24.000Z | 0118.Pascal's_Triangle/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2019-04-23T13:01:50.000Z | 2019-04-23T13:01:50.000Z | class Solution:
def generate(self, num_rows):
if num_rows == 0:
return []
ans = [1]
result = [ans]
for _ in range(num_rows - 1):
ans = [1] + [ans[i] + ans[i + 1] for i in range(len(ans[:-1]))] + [1]
result.append(ans)
return result
| 28.363636 | 81 | 0.464744 | 42 | 312 | 3.357143 | 0.452381 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.387821 | 312 | 10 | 82 | 31.2 | 0.701571 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21dc1958ff8c27f13a30ce7881d7c3c522568e75 | 4,738 | py | Python | bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | 1 | 2021-11-04T21:48:14.000Z | 2021-11-04T21:48:14.000Z | ################################################################################
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your op... | 37.904 | 105 | 0.47003 | 671 | 4,738 | 3.299553 | 0.275708 | 0.045167 | 0.04878 | 0.069106 | 0.36495 | 0.191509 | 0.067299 | 0 | 0 | 0 | 0 | 0.087068 | 0.34065 | 4,738 | 124 | 106 | 38.209677 | 0.621639 | 0.265935 | 0 | 0.151899 | 0 | 0 | 0.084618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.113924 | 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 |
21df81c4df3e4f5c8e3d15ec62909fed82741b3f | 6,633 | py | Python | python/coffer/coins/impl/_segwittx.py | Steve132/wallet_standard | 09c909b24dc17cf6a0a433644d8f1912e886ab1c | [
"MIT"
] | null | null | null | python/coffer/coins/impl/_segwittx.py | Steve132/wallet_standard | 09c909b24dc17cf6a0a433644d8f1912e886ab1c | [
"MIT"
] | null | null | null | python/coffer/coins/impl/_segwittx.py | Steve132/wallet_standard | 09c909b24dc17cf6a0a433644d8f1912e886ab1c | [
"MIT"
] | null | null | null | from _satoshitx import *
import struct
#https://bitcoincore.org/en/segwit_wallet_dev/
class SWitnessTransaction(STransaction):
def __init__(version,flag,ins,outs,witness,locktime):
super(SWitnessTransaction,self).__init__(version,ins,outs,locktime)
self.flag=flag
self.witness=witness
def serialize(self):
tx... | 30.013575 | 192 | 0.692748 | 863 | 6,633 | 5.223638 | 0.23175 | 0.022183 | 0.025954 | 0.021739 | 0.281943 | 0.201198 | 0.150177 | 0.131766 | 0.053239 | 0.038154 | 0 | 0.015859 | 0.172923 | 6,633 | 220 | 193 | 30.15 | 0.805869 | 0.108096 | 0 | 0.134615 | 0 | 0 | 0.024626 | 0 | 0 | 0 | 0 | 0.013636 | 0 | 1 | 0.096154 | false | 0 | 0.019231 | 0.019231 | 0.221154 | 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 |
21e7aa187114df23f75c99353a77c5e6edd5021a | 1,067 | py | Python | CoTeTo/CoTeTo/import_file.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | CoTeTo/CoTeTo/import_file.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | CoTeTo/CoTeTo/import_file.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
if sys.version_info >= (3, 3):
import importlib
def import_file(module_path='', module=''):
importlib.invalidate_caches()
if module in sys.modules:
del sys.modules[module]
sys.path.insert(0, module_path)
loader = importlib.find_lo... | 23.711111 | 91 | 0.622306 | 143 | 1,067 | 4.391608 | 0.412587 | 0.063694 | 0.044586 | 0.06051 | 0.347134 | 0.292994 | 0.200637 | 0.200637 | 0.200637 | 0.200637 | 0 | 0.015424 | 0.270853 | 1,067 | 44 | 92 | 24.25 | 0.791774 | 0.1209 | 0 | 0.413793 | 0 | 0 | 0.083422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.310345 | 0 | 0.448276 | 0.068966 | 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 |
21f110499fa4d164d3ecef0734601aa0553b4aba | 24,849 | py | Python | Homework1.py | nicolac1999/Homework-ADM | 3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737 | [
"MIT"
] | null | null | null | Homework1.py | nicolac1999/Homework-ADM | 3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737 | [
"MIT"
] | null | null | null | Homework1.py | nicolac1999/Homework-ADM | 3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737 | [
"MIT"
] | null | null | null | #Exercises of the Problem 1 (77/91)
#Say "Hello, World!" With Python
print ("Hello, World!")
#Python If-Else
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(raw_input().strip())
if n%2==1:
print("Weird")
else:
if n>2 and n<5 :
... | 19.026799 | 156 | 0.540706 | 3,734 | 24,849 | 3.479914 | 0.115426 | 0.044328 | 0.024473 | 0.036401 | 0.434046 | 0.357857 | 0.280437 | 0.243112 | 0.211867 | 0.204941 | 0 | 0.022463 | 0.283392 | 24,849 | 1,305 | 157 | 19.041379 | 0.70725 | 0.070989 | 0 | 0.475392 | 0 | 0.003356 | 0.047821 | 0.009776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102908 | null | null | 0.1566 | 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 |
21f17d842da515de7fc906d22c723ce681702761 | 2,046 | py | Python | oms/test/test_order.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 5 | 2021-08-10T23:16:44.000Z | 2022-03-17T17:27:00.000Z | oms/test/test_order.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 330 | 2021-06-10T17:28:22.000Z | 2022-03-31T00:55:48.000Z | oms/test/test_order.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 6 | 2021-06-10T17:20:32.000Z | 2022-03-28T08:08:03.000Z | import logging
import helpers.hunit_test as hunitest
import oms.order as omorder
import oms.order_example as oordexam
_LOG = logging.getLogger(__name__)
class TestOrder1(hunitest.TestCase):
def test1(self) -> None:
"""
Test building and serializing an Order.
"""
order = oordexam.... | 37.888889 | 236 | 0.663245 | 312 | 2,046 | 4.153846 | 0.253205 | 0.090278 | 0.104167 | 0.118056 | 0.743827 | 0.676698 | 0.676698 | 0.676698 | 0.622685 | 0.622685 | 0 | 0.127034 | 0.218964 | 2,046 | 53 | 237 | 38.603774 | 0.68398 | 0.091887 | 0 | 0.228571 | 0 | 0.057143 | 0.430786 | 0.166113 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.228571 | 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 |
21f180b857dbd23c3f25d5d18d9b868a2c717d34 | 1,147 | py | Python | mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import calendar
import frappe
from datetime import datetime
from frappe.utils import today
from frappe import _
from frappe.model.document import Docum... | 38.233333 | 174 | 0.741935 | 168 | 1,147 | 4.875 | 0.458333 | 0.10989 | 0.029304 | 0.076923 | 0.115995 | 0.115995 | 0.080586 | 0 | 0 | 0 | 0 | 0.010299 | 0.153444 | 1,147 | 29 | 175 | 39.551724 | 0.833162 | 0.110724 | 0 | 0 | 0 | 0 | 0.274606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 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 |
21f37da3a047adbe8267c14542444fce93f2f143 | 628 | py | Python | vocoder.py | tapsoft/autovc | b89183b4f02facbeaee73c2c91ef05615e7985c0 | [
"MIT"
] | 1 | 2021-05-18T19:09:05.000Z | 2021-05-18T19:09:05.000Z | vocoder.py | tapsoft/autovc | b89183b4f02facbeaee73c2c91ef05615e7985c0 | [
"MIT"
] | null | null | null | vocoder.py | tapsoft/autovc | b89183b4f02facbeaee73c2c91ef05615e7985c0 | [
"MIT"
] | null | null | null | import os
import torch
import librosa
import pickle
import soundfile as sf
from synthesis import build_model
from synthesis import wavegen
spect_vc = pickle.load(open('results.pkl', 'rb'))
device = torch.device("cuda")
model = build_model().to(device)
checkpoint = torch.load("checkpoint_step001000000_ema.pth")
model.l... | 27.304348 | 67 | 0.727707 | 91 | 628 | 4.912088 | 0.505495 | 0.058166 | 0.085011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038889 | 0.140127 | 628 | 23 | 67 | 27.304348 | 0.788889 | 0.090764 | 0 | 0 | 0 | 0 | 0.120841 | 0.056042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0.052632 | 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 |
21f395f0029b2866265b7a849d224eea97a12f20 | 2,067 | py | Python | my_drawing/bouncing_ball.py | YuanMaSa/stancode-projects | d4b8d07650786bdd25fb00c5bada6914cc18b5f4 | [
"MIT"
] | null | null | null | my_drawing/bouncing_ball.py | YuanMaSa/stancode-projects | d4b8d07650786bdd25fb00c5bada6914cc18b5f4 | [
"MIT"
] | null | null | null | my_drawing/bouncing_ball.py | YuanMaSa/stancode-projects | d4b8d07650786bdd25fb00c5bada6914cc18b5f4 | [
"MIT"
] | null | null | null | """
File: bouncing_ball.py
Name: Jonathan Ma
-------------------------
TODO:
"""
from campy.graphics.gobjects import GOval
from campy.graphics.gwindow import GWindow
from campy.gui.events.timer import pause
from campy.gui.events.mouse import onmouseclicked
VX = 3
DELAY = 10
GRAVITY = 1
SIZE = 20
REDUC... | 23.488636 | 71 | 0.562651 | 265 | 2,067 | 4.260377 | 0.384906 | 0.053144 | 0.024801 | 0.031887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022711 | 0.339623 | 2,067 | 87 | 72 | 23.758621 | 0.804396 | 0.221577 | 0 | 0.081633 | 0 | 0 | 0.059345 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.122449 | 0.061224 | 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 |
21f6ac953977adb43d4446f137f14e3d19478056 | 285 | py | Python | dist/urls.py | tfmt/netboot | abd690d463dfd14488b0d295512d61ce5c5bc97d | [
"Apache-2.0"
] | null | null | null | dist/urls.py | tfmt/netboot | abd690d463dfd14488b0d295512d61ce5c5bc97d | [
"Apache-2.0"
] | null | null | null | dist/urls.py | tfmt/netboot | abd690d463dfd14488b0d295512d61ce5c5bc97d | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from dist import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^add$', views.AddCategoryView.as_view(), name='add_category'),
url(r'^(?P<cat_id>\d+)/$', views.CategoryView.as_view(), name='category'),
]
| 28.5 | 78 | 0.663158 | 41 | 285 | 4.487805 | 0.560976 | 0.065217 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 285 | 9 | 79 | 31.666667 | 0.736 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21f9319e8b6fa0bf2f0d17cbb3ff738368d5fe28 | 358 | py | Python | advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py | rocabrera/python-learning | 578b6f6f64a59039956e2ff8eca9eb486127722f | [
"MIT"
] | 3 | 2021-04-16T01:30:05.000Z | 2021-07-22T21:00:45.000Z | advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py | rocabrera/python-learning | 578b6f6f64a59039956e2ff8eca9eb486127722f | [
"MIT"
] | null | null | null | advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py | rocabrera/python-learning | 578b6f6f64a59039956e2ff8eca9eb486127722f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-10 04:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='descripton',
new... | 18.842105 | 47 | 0.578212 | 37 | 358 | 5.486486 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076613 | 0.307263 | 358 | 18 | 48 | 19.888889 | 0.741935 | 0.125698 | 0 | 0 | 1 | 0 | 0.138264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21f9b7045b329df6f1fc9828f5e918547ef50c4d | 917 | py | Python | core/dbt/perf_utils.py | dcereijodo/dbt | 204fc25c2168710d2549515ffe4846880b89fdec | [
"Apache-2.0"
] | 1 | 2021-04-08T03:33:33.000Z | 2021-04-08T03:33:33.000Z | core/dbt/perf_utils.py | azhard/dbt | 9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55 | [
"Apache-2.0"
] | 1 | 2021-04-30T21:33:11.000Z | 2021-04-30T21:33:11.000Z | core/dbt/perf_utils.py | azhard/dbt | 9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55 | [
"Apache-2.0"
] | 1 | 2021-06-04T16:00:44.000Z | 2021-06-04T16:00:44.000Z | """A collection of performance-enhancing functions that have to know just a
little bit too much to go anywhere else.
"""
from dbt.adapters.factory import get_adapter
from dbt.parser.manifest import load_manifest
from dbt.contracts.graph.manifest import Manifest
from dbt.config import RuntimeConfig
def get_full_manife... | 38.208333 | 75 | 0.760087 | 131 | 917 | 5.229008 | 0.519084 | 0.040876 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17121 | 917 | 23 | 76 | 39.869565 | 0.901316 | 0.4253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
21fc6b78c90650153fe0a66ddcecb6e108d72054 | 367 | py | Python | apc/apc/apc_config.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | apc/apc/apc_config.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | apc/apc/apc_config.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 11:30:05 2019
@author: Jongmin Sung
"""
# config.py
import os
from pathlib import Path
from inspect import currentframe, getframeinfo
fname = getframeinfo(currentframe()).filename # current file name
current_dir = Path(fname).resolve().parent
data_dir = Path(fna... | 16.681818 | 65 | 0.716621 | 50 | 367 | 5.22 | 0.68 | 0.05364 | 0.091954 | 0.145594 | 0.191571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041801 | 0.152589 | 367 | 21 | 66 | 17.47619 | 0.797428 | 0.297003 | 0 | 0 | 0 | 0 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
21fe43d98daef7dd3ebf40de9036c681e2844778 | 8,798 | py | Python | balsam/management/commands/balsam_service.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | balsam/management/commands/balsam_service.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | balsam/management/commands/balsam_service.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | import os,sys,logging,multiprocessing,Queue,traceback
logger = logging.getLogger(__name__)
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from balsam import models,BalsamJobReceiver,QueueMessage
from common import DirCleaner,log_uncaught_exceptions,TransitionJob
fro... | 50.855491 | 153 | 0.587406 | 949 | 8,798 | 5.316122 | 0.270811 | 0.034886 | 0.028543 | 0.028543 | 0.28226 | 0.168682 | 0.136967 | 0.136967 | 0.108028 | 0.108028 | 0 | 0.000512 | 0.333712 | 8,798 | 172 | 154 | 51.151163 | 0.860116 | 0.140145 | 0 | 0.224 | 0 | 0.008 | 0.152142 | 0 | 0 | 0 | 0 | 0.005814 | 0 | 0 | null | null | 0 | 0.056 | 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 |
1d0099bd08d14b67316e62ac1133b0502a7f11ee | 369 | py | Python | jts/backend/review/migrations/0003_auto_20191011_1025.py | goupaz/babylon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-08-08T09:03:17.000Z | 2019-08-08T09:03:17.000Z | backend/review/migrations/0003_auto_20191011_1025.py | goupaz/website | ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add | [
"Apache-2.0"
] | 2 | 2020-10-09T19:16:09.000Z | 2020-10-10T20:40:41.000Z | jts/backend/review/migrations/0003_auto_20191011_1025.py | goupaz/babylon-hackathon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-07-21T01:42:21.000Z | 2019-07-21T01:42:21.000Z | # Generated by Django 2.2 on 2019-10-11 17:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('review', '0002_auto_20191009_1119'),
]
operations = [
migrations.RenameField(
model_name='review',
old_name='is_deleted',
... | 19.421053 | 46 | 0.593496 | 40 | 369 | 5.275 | 0.775 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11583 | 0.298103 | 369 | 18 | 47 | 20.5 | 0.698842 | 0.116531 | 0 | 0 | 1 | 0 | 0.17284 | 0.070988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d058aadd2ea53eaf7bc8c3792809f3c95cbd8ca | 2,056 | py | Python | algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py | junteudjio/algorithms_in_python | 90ceced09828aedf845605e5236f48ea92a4419e | [
"MIT"
] | null | null | null | algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py | junteudjio/algorithms_in_python | 90ceced09828aedf845605e5236f48ea92a4419e | [
"MIT"
] | null | null | null | algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py | junteudjio/algorithms_in_python | 90ceced09828aedf845605e5236f48ea92a4419e | [
"MIT"
] | 1 | 2018-10-15T06:28:45.000Z | 2018-10-15T06:28:45.000Z | from random import shuffle
__author__ = 'Junior Teudjio'
def quick_select(l, k, find_largest=True):
"""
return the k_th largest/smallest element of list l
Parameters
----------
l : list
k : int
find_largest : Boolean
True if return the k_th largest element False if return the k-t... | 28.164384 | 109 | 0.548638 | 293 | 2,056 | 3.65529 | 0.266212 | 0.102708 | 0.112045 | 0.060691 | 0.273576 | 0.089636 | 0.089636 | 0 | 0 | 0 | 0 | 0.017332 | 0.354572 | 2,056 | 73 | 110 | 28.164384 | 0.789751 | 0.089494 | 0 | 0.276596 | 0 | 0 | 0.013871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.106383 | 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 |
1d0a47a3797d1d7c500c16f2bd41153122397e81 | 1,187 | py | Python | rest_framework_sav/views.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 21 | 2015-03-04T09:25:47.000Z | 2019-11-08T14:19:24.000Z | rest_framework_sav/views.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 1 | 2015-03-04T09:26:17.000Z | 2015-03-11T13:10:20.000Z | rest_framework_sav/views.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 1 | 2020-05-17T04:16:27.000Z | 2020-05-17T04:16:27.000Z | """Views for Django Rest Framework Session Endpoint extension."""
from django.contrib.auth import login, logout
from rest_framework import parsers, renderers
from rest_framework.authtoken.serializers import AuthTokenSerializer
from rest_framework.response import Response
from rest_framework.views import APIView
cla... | 30.435897 | 68 | 0.711879 | 123 | 1,187 | 6.756098 | 0.504065 | 0.078219 | 0.081829 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194608 | 1,187 | 38 | 69 | 31.236842 | 0.869247 | 0.155013 | 0 | 0 | 0 | 0 | 0.068228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df0469beb5c62575548fc779498cc9b3a9cc1490 | 1,547 | py | Python | tests/bench_bgra2rgb.py | RedFantom/python-mss | 7e26de184b1e6a0800231b01451f794087a76f73 | [
"MIT"
] | null | null | null | tests/bench_bgra2rgb.py | RedFantom/python-mss | 7e26de184b1e6a0800231b01451f794087a76f73 | [
"MIT"
] | null | null | null | tests/bench_bgra2rgb.py | RedFantom/python-mss | 7e26de184b1e6a0800231b01451f794087a76f73 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
2018-03-19.
Maximum screenshots in 1 second by computing BGRA raw values to RGB.
GNU/Linux
pil_frombytes 139
mss_rgb 119
pil_frombytes_rgb 51
numpy_flip 31
numpy_slice 29
macOS
pil_frombytes 209
mss_rgb 174
pil_frombytes_rgb 113
numpy_fl... | 19.582278 | 76 | 0.580478 | 206 | 1,547 | 4.15534 | 0.383495 | 0.140187 | 0.087617 | 0.03972 | 0.140187 | 0.140187 | 0.077103 | 0.077103 | 0 | 0 | 0 | 0.055344 | 0.32256 | 1,547 | 78 | 77 | 19.833333 | 0.76145 | 0.306399 | 0 | 0 | 0 | 0 | 0.012207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.15625 | 0.125 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
df0b8deb7b8139e6384b8790377b34bff7533519 | 2,725 | py | Python | ACME/render/renderer.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/render/renderer.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/render/renderer.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | import neural_renderer as nr
from ..math.unitvec import *
class Renderer(nr.Renderer):
"""
A class extending the Neural Renderer
Attributes
----------
device : str or torch.device (optional)
the tensor the renderer will be stored to (default is 'cuda:0')
culling : str (optional)
... | 27.806122 | 80 | 0.601468 | 296 | 2,725 | 5.405405 | 0.263514 | 0.055 | 0.0475 | 0.054375 | 0.3 | 0.2625 | 0.21625 | 0.175 | 0.175 | 0.175 | 0 | 0.004787 | 0.310092 | 2,725 | 97 | 81 | 28.092784 | 0.846277 | 0.47633 | 0 | 0 | 0 | 0 | 0.019784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df0c4609dc3d7030697a254872dda6cfb67438db | 641 | py | Python | setup.py | Wirtos/aioregex | b426fb99769d54d627e189bd058c4b724559fb80 | [
"MIT"
] | null | null | null | setup.py | Wirtos/aioregex | b426fb99769d54d627e189bd058c4b724559fb80 | [
"MIT"
] | null | null | null | setup.py | Wirtos/aioregex | b426fb99769d54d627e189bd058c4b724559fb80 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="aioregex",
version="0.1",
author="Wirtos_new",
author_email="Wirtos.new@gmail.com",
description="regex to allow both sync and async callables in the sub as repl",
url="https://wirtos.github.io/aioregex/",
packages=setuptools.find_packages(),
pro... | 29.136364 | 82 | 0.639626 | 73 | 641 | 5.547945 | 0.780822 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007952 | 0.215289 | 641 | 21 | 83 | 30.52381 | 0.797217 | 0 | 0 | 0 | 0 | 0 | 0.49766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
df144e0efba2d31bbcba42a1f4cb228efa1dd83b | 406 | py | Python | electrum/networks/auxpow_mixin.py | ZenyattaAbosom/AbosomElectrum | 02748b0b14e37385d6e77591d122e592740222bf | [
"MIT"
] | 4 | 2020-06-27T22:43:34.000Z | 2021-04-12T02:29:30.000Z | electrum/networks/auxpow_mixin.py | ZenyattaAbosom/AbosomElectrum | 02748b0b14e37385d6e77591d122e592740222bf | [
"MIT"
] | 21 | 2020-06-20T15:02:50.000Z | 2021-04-07T10:14:59.000Z | electrum/networks/auxpow_mixin.py | ZenyattaAbosom/AbosomElectrum | 02748b0b14e37385d6e77591d122e592740222bf | [
"MIT"
] | 13 | 2020-06-28T08:13:28.000Z | 2021-12-28T00:11:56.000Z | class AuxPowMixin(object):
AUXPOW_START_HEIGHT = 0
AUXPOW_CHAIN_ID = 0x0001
BLOCK_VERSION_AUXPOW_BIT = 0
@classmethod
def is_auxpow_active(cls, header) -> bool:
height_allows_auxpow = header['block_height'] >= cls.AUXPOW_START_HEIGHT
version_allows_auxpow = header['version'] & cls.B... | 40.6 | 80 | 0.743842 | 52 | 406 | 5.365385 | 0.442308 | 0.172043 | 0.121864 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021212 | 0.187192 | 406 | 10 | 81 | 40.6 | 0.824242 | 0 | 0 | 0 | 0 | 0 | 0.046683 | 0 | 0 | 0 | 0.014742 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df1524fa7728c1adb3ef0c319a786a66845f1e94 | 159 | py | Python | Problems/dicecup.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | Problems/dicecup.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | Problems/dicecup.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | from sys import stdin
a,b = [int(x) for x in stdin.readline().split(' ')]
diff = abs(a-b) +1
a = min(a,b) +1
print(a)
for x in range(1,diff):
print(a+x)
| 15.9 | 51 | 0.591195 | 35 | 159 | 2.685714 | 0.514286 | 0.06383 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.201258 | 159 | 9 | 52 | 17.666667 | 0.716535 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df1fe7022c513f9daa84d71c86c0ba7d7afec1ce | 1,396 | py | Python | fdrtd/builtins/util/kvstorage.py | chart21/fdrtd | c5f8ba84f8e367580572f2759683dfd3789b0b80 | [
"MIT"
] | null | null | null | fdrtd/builtins/util/kvstorage.py | chart21/fdrtd | c5f8ba84f8e367580572f2759683dfd3789b0b80 | [
"MIT"
] | 10 | 2021-08-29T00:03:36.000Z | 2022-02-18T09:19:38.000Z | fdrtd/builtins/util/kvstorage.py | chart21/fdrtd | c5f8ba84f8e367580572f2759683dfd3789b0b80 | [
"MIT"
] | 2 | 2021-08-28T21:44:10.000Z | 2021-12-16T23:23:58.000Z | """
contains microservice KeyValueStorage
"""
import uuid as _uuid
from fdrtd.server.microservice import Microservice
class KeyValueStorage(Microservice):
"""stores and retrieves values by key"""
def __init__(self, bus, endpoint):
super().__init__(bus, endpoint)
self.storages = {'default': ... | 30.347826 | 55 | 0.626791 | 148 | 1,396 | 5.844595 | 0.283784 | 0.09711 | 0.09711 | 0.134104 | 0.2 | 0.158382 | 0.108671 | 0 | 0 | 0 | 0 | 0.000946 | 0.242837 | 1,396 | 45 | 56 | 31.022222 | 0.817408 | 0.162607 | 0 | 0.153846 | 0 | 0 | 0.061008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 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 |
df2437ca766dc3a07e7da531239e5dd32c32401c | 1,773 | py | Python | gracc-oneoffs/remove-odd-procs/remove-odd-procs.py | opensciencegrid/gracc-tools | 86297d0a8b6b208b6c661473647fdc69f438afec | [
"Apache-2.0"
] | null | null | null | gracc-oneoffs/remove-odd-procs/remove-odd-procs.py | opensciencegrid/gracc-tools | 86297d0a8b6b208b6c661473647fdc69f438afec | [
"Apache-2.0"
] | 1 | 2017-06-17T19:25:51.000Z | 2017-06-19T15:33:22.000Z | gracc-oneoffs/remove-odd-procs/remove-odd-procs.py | opensciencegrid/gracc-tools | 86297d0a8b6b208b6c661473647fdc69f438afec | [
"Apache-2.0"
] | 2 | 2017-06-16T20:07:38.000Z | 2017-06-17T15:03:18.000Z | #!/usr/bin/python
import elasticsearch
from elasticsearch_dsl import Search, A, Q
#import logging
import sys
import os
#logging.basicConfig(level=logging.WARN)
#es = elasticsearch.Elasticsearch(
# ['https://gracc.opensciencegrid.org/q'],
# timeout=300, use_ssl=True, verify_certs=False)
es = elasticsea... | 30.568966 | 128 | 0.667795 | 237 | 1,773 | 4.864979 | 0.443038 | 0.062446 | 0.048569 | 0.02255 | 0.097138 | 0.065915 | 0 | 0 | 0 | 0 | 0 | 0.039972 | 0.181613 | 1,773 | 57 | 129 | 31.105263 | 0.754652 | 0.35251 | 0 | 0.117647 | 0 | 0 | 0.178697 | 0.036092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df2507bcc55adf702b1c6993e0b76f7f643ef8d6 | 849 | py | Python | Hasoc/create_folds.py | tezike/Hasoc | b29c5ec877a1751b04f86227a6ad264be8c06d81 | [
"Apache-2.0"
] | 1 | 2020-11-24T07:48:55.000Z | 2020-11-24T07:48:55.000Z | Hasoc/create_folds.py | tezike/Hasoc | b29c5ec877a1751b04f86227a6ad264be8c06d81 | [
"Apache-2.0"
] | null | null | null | Hasoc/create_folds.py | tezike/Hasoc | b29c5ec877a1751b04f86227a6ad264be8c06d81 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/create_folds.ipynb (unless otherwise specified).
__all__ = ['df', 'df', 'y', 'kf', 'df', 'y']
# Cell
import os
import pandas as pd
from sklearn.model_selection import StratifiedKFold
# Cell
df = pd.read_csv(os.path.join('../data', 'en_task_a', 'hasoc_2020_en_train_new... | 29.275862 | 96 | 0.684335 | 149 | 849 | 3.697987 | 0.456376 | 0.021779 | 0.032668 | 0.047187 | 0.402904 | 0.341198 | 0.341198 | 0.341198 | 0.341198 | 0.341198 | 0 | 0.019947 | 0.114252 | 849 | 29 | 97 | 29.275862 | 0.712766 | 0.134276 | 0 | 0.235294 | 1 | 0 | 0.172603 | 0.036986 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 |
df2f4471a03807c5058e593384972868df67d33c | 709 | py | Python | taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py | JMosqueraM/algoritmos_y_programacion | 30dc179b976f1db24401b110496250fbcb98938e | [
"MIT"
] | null | null | null | taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py | JMosqueraM/algoritmos_y_programacion | 30dc179b976f1db24401b110496250fbcb98938e | [
"MIT"
] | null | null | null | taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py | JMosqueraM/algoritmos_y_programacion | 30dc179b976f1db24401b110496250fbcb98938e | [
"MIT"
] | null | null | null | #Calcular el salario neto de un tnrabajador en fucion del numero de horas trabajadas, el precio de la hora
#y el descuento fijo al sueldo base por concepto de impuestos del 20%
horas = float(input("Ingrese el numero de horas trabajadas: "))
precio_hora = float(input("Ingrese el precio por hora trabajada: "))
sueldo_ba... | 59.083333 | 175 | 0.753173 | 121 | 709 | 4.330579 | 0.404959 | 0.114504 | 0.097328 | 0.108779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0134 | 0.157969 | 709 | 12 | 176 | 59.083333 | 0.864322 | 0.244006 | 0 | 0 | 0 | 0.125 | 0.613084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df321ec897b131393422f40ec400fe5025edb45a | 3,189 | py | Python | cs15211/BattleshipsInABoard.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/BattleshipsInABoard.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/BattleshipsInABoard.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://github.com/kamyu104/LeetCode/blob/master/Python/battleships-in-a-board.py'
# Time: O(m * n)
# Space: O(1)
#
#
# Description: 419. Battleships in a Board
#
# Given an 2D board, count how many different battleships are in it.
# The battleships are represented with 'X's, empty slots are represented ... | 31.574257 | 105 | 0.558169 | 466 | 3,189 | 3.791845 | 0.373391 | 0.03056 | 0.023769 | 0.013582 | 0.153367 | 0.081494 | 0.03622 | 0.03622 | 0 | 0 | 0 | 0.025792 | 0.306993 | 3,189 | 101 | 106 | 31.574257 | 0.773756 | 0.334588 | 0 | 0 | 0 | 0.092593 | 0.690141 | 0.024769 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.166667 | 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 |
df3715d9a9064f79f11dad87ba56f6a3d27743a1 | 289 | py | Python | tests/test_wrong_url.py | alexella1/python-ascii_magic | df189da5dc59d4cd6f6fe003a75c99539247851f | [
"MIT"
] | null | null | null | tests/test_wrong_url.py | alexella1/python-ascii_magic | df189da5dc59d4cd6f6fe003a75c99539247851f | [
"MIT"
] | null | null | null | tests/test_wrong_url.py | alexella1/python-ascii_magic | df189da5dc59d4cd6f6fe003a75c99539247851f | [
"MIT"
] | null | null | null | from context import ascii_magic
try:
output = ascii_magic.from_url('https://wow.zamimg.com/uploads/blog/images/20516-afterlives-ardenweald-4k-desktop-wallpapers.jpg')
ascii_magic.to_terminal(output)
except OSError as e:
print(f'Could not load the image, server said: {e.code} {e.msg}') | 41.285714 | 130 | 0.782007 | 47 | 289 | 4.702128 | 0.829787 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.086505 | 289 | 7 | 131 | 41.285714 | 0.814394 | 0 | 0 | 0 | 0 | 0.166667 | 0.52069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df38488be49b126da2ba8c4b38d9a97d5b60ae28 | 2,706 | py | Python | book/code/imdb - project4+5 scrape popular film list and poster.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | book/code/imdb - project4+5 scrape popular film list and poster.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | book/code/imdb - project4+5 scrape popular film list and poster.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from selenium import webdriver
import requests
import time
class Film(object):
"""docstring for film"""
def __init__(self):
self.title = ""
self.rank = ""
self.year_of_production = ""
self.link = ""
def create_phantom_driver():
driver = webdriver.PhantomJS(executable_path = ... | 20.5 | 96 | 0.682927 | 409 | 2,706 | 4.315403 | 0.298289 | 0.045326 | 0.024929 | 0.031728 | 0.218697 | 0.144476 | 0.098584 | 0.053258 | 0.053258 | 0.053258 | 0 | 0.008873 | 0.167036 | 2,706 | 131 | 97 | 20.656489 | 0.774179 | 0.15558 | 0 | 0.246377 | 0 | 0 | 0.107939 | 0.019625 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057971 | null | null | 0.130435 | 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 |
df4060697a7eb303c5884fc6599a1897ddcbd97e | 4,264 | bzl | Python | apple/bundling/debug_symbol_actions.bzl | kastiglione/rules_apple | 3745c3f03b9d29a04671fd4fac96468ca7031fd6 | [
"Apache-2.0"
] | 2 | 2019-09-01T06:06:40.000Z | 2020-11-10T00:37:01.000Z | apple/bundling/debug_symbol_actions.bzl | c-parsons/rules_apple | f75c4b1be219cb32704d900bd1a42ab200eab445 | [
"Apache-2.0"
] | null | null | null | apple/bundling/debug_symbol_actions.bzl | c-parsons/rules_apple | f75c4b1be219cb32704d900bd1a42ab200eab445 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 39.481481 | 82 | 0.695826 | 579 | 4,264 | 4.979275 | 0.352332 | 0.045092 | 0.022546 | 0.030524 | 0.231009 | 0.181755 | 0.160943 | 0.160943 | 0.160943 | 0.160943 | 0 | 0.007324 | 0.231473 | 4,264 | 107 | 83 | 39.850467 | 0.872444 | 0.554409 | 0 | 0.243902 | 0 | 0 | 0.106455 | 0.079275 | 0 | 0 | 0 | 0.018692 | 0 | 1 | 0.04878 | false | 0 | 0 | 0 | 0.097561 | 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 |
df4381be0a6af61c9a8d19296067917654a1c8b3 | 3,958 | py | Python | ipyannotator/ipytyping/annotations.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | ipyannotator/ipytyping/annotations.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | ipyannotator/ipytyping/annotations.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00c_annotation_types.ipynb (unless otherwise specified).
__all__ = []
# Internal Cell
from pathlib import Path
from collections.abc import MutableMapping
from typing import Dict, Optional, Iterable, Any, Union
from ipywidgets import Layout
from ..mltypes import OutputIm... | 29.102941 | 104 | 0.641991 | 427 | 3,958 | 5.69555 | 0.285714 | 0.067845 | 0.024671 | 0.034539 | 0.229441 | 0.171053 | 0.10773 | 0.090461 | 0.090461 | 0.090461 | 0 | 0.0062 | 0.266549 | 3,958 | 136 | 105 | 29.102941 | 0.831554 | 0.074027 | 0 | 0.262136 | 1 | 0 | 0.043025 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 1 | 0.135922 | false | 0 | 0.058252 | 0.038835 | 0.31068 | 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 |
df53e4881da04ab4f402645f9a8a2b4862a0381d | 1,049 | py | Python | flow/urls.py | Xinghui-Wu/FlowMeter | c2780fe7f8b8d2d6136296e53d1ee95e5660afc4 | [
"MIT"
] | null | null | null | flow/urls.py | Xinghui-Wu/FlowMeter | c2780fe7f8b8d2d6136296e53d1ee95e5660afc4 | [
"MIT"
] | null | null | null | flow/urls.py | Xinghui-Wu/FlowMeter | c2780fe7f8b8d2d6136296e53d1ee95e5660afc4 | [
"MIT"
] | 1 | 2021-05-17T13:01:26.000Z | 2021-05-17T13:01:26.000Z | """FlowMeter URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | 32.78125 | 77 | 0.701621 | 154 | 1,049 | 4.714286 | 0.383117 | 0.082645 | 0.020661 | 0.033058 | 0.161157 | 0.161157 | 0.103306 | 0 | 0 | 0 | 0 | 0.009174 | 0.168732 | 1,049 | 31 | 78 | 33.83871 | 0.823395 | 0.595806 | 0 | 0 | 0 | 0 | 0.098321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 |
df58cc87adff05d56c9092da2fe099ff0776f22b | 6,033 | py | Python | Glassdoor scraping/main.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 2 | 2021-05-27T12:43:20.000Z | 2022-02-24T07:01:55.000Z | Glassdoor scraping/main.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 5 | 2021-03-19T08:52:22.000Z | 2021-09-22T19:21:44.000Z | Glassdoor scraping/main.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 2 | 2020-09-29T03:27:38.000Z | 2020-11-07T05:41:10.000Z | # import libraries
import time
import datetime
from argparse import ArgumentParser
from datetime import date
import re
import json
import numpy as np
import pandas as pd
import django
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_c... | 30.469697 | 132 | 0.671805 | 815 | 6,033 | 4.878528 | 0.258896 | 0.029427 | 0.055584 | 0.022636 | 0.238682 | 0.228119 | 0.191901 | 0.170775 | 0.115694 | 0.115694 | 0 | 0.000215 | 0.227747 | 6,033 | 198 | 133 | 30.469697 | 0.853187 | 0.064479 | 0 | 0.2125 | 0 | 0 | 0.199533 | 0.008613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00625 | false | 0.075 | 0.10625 | 0 | 0.1125 | 0.00625 | 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 |
df599e9d10321b7bdbba2162c39d2da1b3bddbed | 468 | py | Python | week12/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | week12/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | 13 | 2021-03-10T08:46:52.000Z | 2022-03-02T08:13:58.000Z | week12/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | from django.urls import path
#from api.views import company_list, company_details, company_vacancies, vacancies_list, vacancy_detail
from api.views import company_list, company_details
urlpatterns = [
path('companies/', company_list),
path('companies/<int:company_id>/', company_details),
#path('companies/<... | 39 | 103 | 0.758547 | 58 | 468 | 5.862069 | 0.293103 | 0.097059 | 0.070588 | 0.105882 | 0.4 | 0.252941 | 0.252941 | 0.252941 | 0 | 0 | 0 | 0 | 0.111111 | 468 | 11 | 104 | 42.545455 | 0.817308 | 0.538462 | 0 | 0 | 0 | 0 | 0.174528 | 0.127358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
df5bcf4144a389293dde7bcc338b8d079f6fde6d | 6,587 | py | Python | glom/test/test_path_and_t.py | justinvanwinkle/glom | 6451e9800b50078b60ebb480be83385cc70b1b3a | [
"BSD-3-Clause"
] | null | null | null | glom/test/test_path_and_t.py | justinvanwinkle/glom | 6451e9800b50078b60ebb480be83385cc70b1b3a | [
"BSD-3-Clause"
] | null | null | null | glom/test/test_path_and_t.py | justinvanwinkle/glom | 6451e9800b50078b60ebb480be83385cc70b1b3a | [
"BSD-3-Clause"
] | null | null | null |
from pytest import raises
from glom import glom, Path, S, T, A, PathAccessError, GlomError, BadSpec
def test_list_path_access():
assert glom(list(range(10)), Path(1)) == 1
def test_path():
_obj = object()
target = {'a': {'b.b': [None, {_obj: [None, None, 'd']}]}}
assert glom(target, Path('a', 'b.b... | 27.560669 | 108 | 0.570366 | 1,017 | 6,587 | 3.609636 | 0.154376 | 0.020703 | 0.017979 | 0.028603 | 0.409698 | 0.253337 | 0.186598 | 0.148461 | 0.148461 | 0.129937 | 0 | 0.018999 | 0.232883 | 6,587 | 238 | 109 | 27.676471 | 0.7075 | 0.115986 | 0 | 0.113475 | 0 | 0.021277 | 0.141207 | 0 | 0 | 0 | 0 | 0 | 0.468085 | 1 | 0.141844 | false | 0 | 0.021277 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df61b88c89a2f284a18232a1fc105ff2477b2b45 | 4,665 | py | Python | FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py | ideaworld/FHIR_Tester | 62844af2de510b65535df5ae60da03a082097df0 | [
"MIT"
] | null | null | null | FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py | ideaworld/FHIR_Tester | 62844af2de510b65535df5ae60da03a082097df0 | [
"MIT"
] | 4 | 2020-06-05T17:40:18.000Z | 2022-02-11T03:38:16.000Z | FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py | bowen1993/FHIR_Tester | 62844af2de510b65535df5ae60da03a082097df0 | [
"MIT"
] | 1 | 2016-11-22T01:04:16.000Z | 2016-11-22T01:04:16.000Z | from CodeGenerator import *
class MonkeyInterpreter:
def __init__(self, prog, filename="", identify="", base_path=""):
self.prog = prog
self.func_table = {}
self.code_str = ''
self.filename = filename
self.url = ''
self.driver = ''
self.indent = 0
self... | 35.075188 | 174 | 0.569132 | 527 | 4,665 | 4.870968 | 0.244782 | 0.046747 | 0.059992 | 0.052591 | 0.326841 | 0.317491 | 0.286716 | 0.213089 | 0.201013 | 0.201013 | 0 | 0.007657 | 0.300107 | 4,665 | 133 | 175 | 35.075188 | 0.77856 | 0 | 0 | 0.252101 | 0 | 0.02521 | 0.220103 | 0.098157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016807 | 0.042017 | null | null | 0.008403 | 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 |
df622c6b331e5a543976b1e74365b5b1c5deac19 | 1,027 | py | Python | migrations/versions/1a869ac514c_.py | isabella232/comport | 117123862415261095a917ed7f2037c1f986b474 | [
"BSD-3-Clause"
] | 35 | 2015-11-14T18:32:45.000Z | 2022-01-23T15:15:05.000Z | migrations/versions/1a869ac514c_.py | codeforamerica/comport | 117123862415261095a917ed7f2037c1f986b474 | [
"BSD-3-Clause"
] | 119 | 2015-11-20T22:45:34.000Z | 2022-02-10T23:02:36.000Z | migrations/versions/1a869ac514c_.py | isabella232/comport | 117123862415261095a917ed7f2037c1f986b474 | [
"BSD-3-Clause"
] | 19 | 2015-11-20T20:41:52.000Z | 2022-01-26T04:12:34.000Z | """empty message
Revision ID: 1a869ac514c
Revises: 52887f8e06b
Create Date: 2015-09-29 11:06:57.293537
"""
# revision identifiers, used by Alembic.
revision = '1a869ac514c'
down_revision = '52887f8e06b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - plea... | 28.527778 | 65 | 0.686465 | 130 | 1,027 | 5.4 | 0.407692 | 0.079772 | 0.149573 | 0.179487 | 0.441595 | 0.441595 | 0.441595 | 0.396011 | 0 | 0 | 0 | 0.078341 | 0.15482 | 1,027 | 35 | 66 | 29.342857 | 0.730415 | 0.281402 | 0 | 0 | 0 | 0 | 0.119149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 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 |
df6c0d5895a889ba43d3854f304957c6a4db6d15 | 2,310 | py | Python | tests/test_compat.py | eisensheng/pytest-catchlog | f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6 | [
"MIT"
] | 85 | 2015-02-24T20:14:30.000Z | 2021-04-29T09:07:59.000Z | tests/test_compat.py | eisensheng/pytest-catchlog | f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6 | [
"MIT"
] | 67 | 2015-04-22T16:07:47.000Z | 2020-03-19T14:14:19.000Z | tests/test_compat.py | eisensheng/pytest-catchlog | f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6 | [
"MIT"
] | 25 | 2015-05-17T15:22:55.000Z | 2019-01-07T09:21:24.000Z | # -*- coding: utf-8 -*-
import pytest
def test_camel_case_aliases(testdir):
testdir.makepyfile('''
import logging
logger = logging.getLogger(__name__)
def test_foo(caplog):
caplog.setLevel(logging.INFO)
logger.debug('boo!')
with caplog.atLevel(logging... | 28.518519 | 77 | 0.59697 | 243 | 2,310 | 5.506173 | 0.255144 | 0.106876 | 0.082212 | 0.059791 | 0.587444 | 0.573991 | 0.483558 | 0.398356 | 0.347534 | 0.347534 | 0 | 0.006571 | 0.275325 | 2,310 | 80 | 78 | 28.875 | 0.792712 | 0.009091 | 0 | 0.616667 | 0 | 0 | 0.693485 | 0.212505 | 0 | 0 | 0 | 0 | 0.233333 | 1 | 0.05 | false | 0 | 0.066667 | 0 | 0.116667 | 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 |
df709514b8d346cc0a38a3bd3f1378bb77a71fa2 | 4,561 | py | Python | tests/unit-tests/test_rst_lists.py | hazemelraffiee/confluencebuilder | c283e7fb513c156b9b6e0ba3694fc3e0468a74c9 | [
"BSD-2-Clause"
] | 90 | 2016-07-21T00:39:19.000Z | 2019-03-08T08:27:17.000Z | tests/unit-tests/test_rst_lists.py | hazemelraffiee/confluencebuilder | c283e7fb513c156b9b6e0ba3694fc3e0468a74c9 | [
"BSD-2-Clause"
] | 124 | 2016-10-18T20:06:48.000Z | 2019-03-08T04:41:53.000Z | tests/unit-tests/test_rst_lists.py | hazemelraffiee/confluencebuilder | c283e7fb513c156b9b6e0ba3694fc3e0468a74c9 | [
"BSD-2-Clause"
] | 39 | 2016-07-21T00:39:52.000Z | 2019-03-06T14:33:31.000Z | # -*- coding: utf-8 -*-
"""
:copyright: Copyright 2020-2022 Sphinx Confluence Builder Contributors (AUTHORS)
:license: BSD-2-Clause (LICENSE)
"""
from tests.lib.testcase import ConfluenceTestCase
from tests.lib.testcase import setup_builder
from tests.lib import parse
import os
class TestConfluenceRstLists(Confluenc... | 40.362832 | 80 | 0.557772 | 469 | 4,561 | 5.296375 | 0.215352 | 0.120773 | 0.072464 | 0.073269 | 0.582528 | 0.553543 | 0.338969 | 0.32649 | 0.252013 | 0.211755 | 0 | 0.01584 | 0.252576 | 4,561 | 112 | 81 | 40.723214 | 0.712819 | 0.042535 | 0 | 0.202703 | 0 | 0 | 0.101725 | 0 | 0 | 0 | 0 | 0 | 0.486486 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.094595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df772962564e76e30a2b4e2a05a98491303c2ed2 | 5,776 | py | Python | smartystreets_python_sdk/client_builder.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | null | null | null | smartystreets_python_sdk/client_builder.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | null | null | null | smartystreets_python_sdk/client_builder.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | null | null | null | import smartystreets_python_sdk as smarty
from smartystreets_python_sdk.us_street import Client as USStreetClient
from smartystreets_python_sdk.us_zipcode import Client as USZIPClient
from smartystreets_python_sdk.us_extract import Client as USExtractClient
from smartystreets_python_sdk.us_autocomplete import Client as... | 38 | 113 | 0.691136 | 732 | 5,776 | 5.259563 | 0.230874 | 0.025714 | 0.027013 | 0.04987 | 0.315844 | 0.234805 | 0.203117 | 0.14987 | 0.061039 | 0.061039 | 0 | 0.003888 | 0.243075 | 5,776 | 151 | 114 | 38.251656 | 0.876715 | 0.279778 | 0 | 0.102564 | 0 | 0 | 0.065638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0.025641 | 0.076923 | 0 | 0.487179 | 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 |
df7cecff3f2a6d3cc5c868cae77bf8a3ce21f622 | 1,302 | py | Python | api/models.py | UAACC/pro | c5424574427ac3521cb70b0d62b841fa128f5166 | [
"MIT"
] | null | null | null | api/models.py | UAACC/pro | c5424574427ac3521cb70b0d62b841fa128f5166 | [
"MIT"
] | null | null | null | api/models.py | UAACC/pro | c5424574427ac3521cb70b0d62b841fa128f5166 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import AbstractUser
class Author(models.Model):
username = models.CharField(max_length=50, unique=True)
display_name = models.CharField(max_length=50, null=True, blank=True)
email = models.EmailField(null=True, b... | 39.454545 | 93 | 0.740399 | 164 | 1,302 | 5.75 | 0.341463 | 0.079533 | 0.09544 | 0.127253 | 0.469777 | 0.355249 | 0.265111 | 0.180276 | 0.180276 | 0.180276 | 0 | 0.011628 | 0.141321 | 1,302 | 33 | 94 | 39.454545 | 0.831843 | 0.208141 | 0 | 0 | 0 | 0 | 0.012695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df84e85ea375a45ff61026ef8e92ba96e7e0f291 | 426 | py | Python | assessment/migrations/0010_assessment_open_status.py | sravanireddy1102/peerevaluationsystem | 3dc46447a6b3b581e8738db58e7b861c421cdc0f | [
"MIT"
] | 2 | 2020-06-17T15:17:19.000Z | 2020-10-06T08:03:29.000Z | assessment/migrations/0010_assessment_open_status.py | sravanireddy1102/peerevaluationsystem | 3dc46447a6b3b581e8738db58e7b861c421cdc0f | [
"MIT"
] | 3 | 2021-03-30T13:33:22.000Z | 2021-06-04T23:21:52.000Z | assessment/migrations/0010_assessment_open_status.py | YichengShen/EaglesPeerEvaluationSystem | 853e35bf569efb87dc56064e6ec44a4e3c95c537 | [
"MIT"
] | 1 | 2022-01-02T07:01:37.000Z | 2022-01-02T07:01:37.000Z | # Generated by Django 3.0.2 on 2020-04-29 20:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assessment', '0009_auto_20200426_1103'),
]
operations = [
migrations.AddField(
model_name='assessment',
name='open_s... | 22.421053 | 80 | 0.622066 | 46 | 426 | 5.630435 | 0.782609 | 0.061776 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.265258 | 426 | 18 | 81 | 23.666667 | 0.728435 | 0.105634 | 0 | 0 | 1 | 0 | 0.171504 | 0.060686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df8a62c0847934ac75248a075f1ad448f85f7372 | 1,347 | py | Python | build_utils/salt_utils.py | maharg101/gdl-100-provision | 71651d1f6dd40de841f99cb9a6d1accb16ea39c1 | [
"Apache-2.0"
] | null | null | null | build_utils/salt_utils.py | maharg101/gdl-100-provision | 71651d1f6dd40de841f99cb9a6d1accb16ea39c1 | [
"Apache-2.0"
] | 1 | 2021-06-01T21:55:56.000Z | 2021-06-01T21:55:56.000Z | build_utils/salt_utils.py | maharg101/gdl-100-provision | 71651d1f6dd40de841f99cb9a6d1accb16ea39c1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
salt_utils.py
Description: Utility methods for configuration of Salt Cloud.
Written by: maharg101 on 27th March 2018
"""
import io
import yaml
def generate_openstack_conf(params):
"""
Generate an openstack.conf file-like given the supplied params dict.
:param params: A dicti... | 34.538462 | 106 | 0.64588 | 154 | 1,347 | 5.38961 | 0.506494 | 0.06747 | 0.043373 | 0.043373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.256867 | 1,347 | 38 | 107 | 35.447368 | 0.818182 | 0.272457 | 0 | 0 | 1 | 0 | 0.134879 | 0.023182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.086957 | 0 | 0.173913 | 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 |
df8d73ce0b9ecd6d1a67506333d218eaea46a306 | 9,698 | py | Python | gather/weighted_corr.py | mrJeppard/clusterdb-ingest | f52f3ee03a1071ef15a63412e1e2085fdf74e584 | [
"MIT"
] | null | null | null | gather/weighted_corr.py | mrJeppard/clusterdb-ingest | f52f3ee03a1071ef15a63412e1e2085fdf74e584 | [
"MIT"
] | null | null | null | gather/weighted_corr.py | mrJeppard/clusterdb-ingest | f52f3ee03a1071ef15a63412e1e2085fdf74e584 | [
"MIT"
] | null | null | null | """
Weighted correlation of NES vectors. The idea is to weight positive values on either vector. Positive values
"""
import pandas as pd
import numpy as np
from scipy.spatial.distance import pdist
from scipy.spatial.distance import squareform
def m(x, w):
"""Weighted Mean"""
return np.sum(x * w) / np.sum(w)
... | 24.739796 | 108 | 0.642813 | 1,330 | 9,698 | 4.508271 | 0.185714 | 0.03002 | 0.038025 | 0.016011 | 0.356237 | 0.319713 | 0.257505 | 0.227318 | 0.204803 | 0.190127 | 0 | 0.022465 | 0.187564 | 9,698 | 391 | 109 | 24.803069 | 0.738546 | 0 | 0 | 0.196721 | 0 | 0 | 0.185538 | 0.088939 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032787 | null | null | 0.005464 | 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 |
df8eda08eeceb3a4e4b4d62b56b2aacf6a21c336 | 16,807 | py | Python | highearthorbit.py | orithena/highearthorbit | a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1 | [
"MIT"
] | 3 | 2017-06-17T10:13:38.000Z | 2019-01-18T18:40:59.000Z | highearthorbit.py | orithena/highearthorbit | a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1 | [
"MIT"
] | null | null | null | highearthorbit.py | orithena/highearthorbit | a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import twython, time, pprint, traceback, os, sys
import config
from twython import TwythonStreamer, TwythonError, TwythonRateLimitError
import urllib, json, glob, re
import thread
queuelock = thread.allocate_lock()
watchlock = thread.allocate_lock()
import logging
logging.basicConfig(filename='highea... | 49.143275 | 208 | 0.606057 | 2,216 | 16,807 | 4.481047 | 0.199007 | 0.019738 | 0.028197 | 0.01712 | 0.292346 | 0.211782 | 0.176032 | 0.1572 | 0.150554 | 0.117321 | 0 | 0.007423 | 0.262569 | 16,807 | 341 | 209 | 49.28739 | 0.793771 | 0.092402 | 0 | 0.216607 | 0 | 0.01083 | 0.23314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021661 | null | null | 0.00361 | 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 |
df92c2b640273d1fde6e35ef399b77e27ac3c838 | 6,847 | py | Python | script.py | Relex12/mywebsite_jekyll | 58a4536c3049f0f575b60dbcfb33789ea1a909ea | [
"MIT"
] | null | null | null | script.py | Relex12/mywebsite_jekyll | 58a4536c3049f0f575b60dbcfb33789ea1a909ea | [
"MIT"
] | null | null | null | script.py | Relex12/mywebsite_jekyll | 58a4536c3049f0f575b60dbcfb33789ea1a909ea | [
"MIT"
] | null | null | null | from os import path
from os import system
if (not path.exists("../Relex12.github.io/")):
raise FileNotFoundError("Relex12.github.io directory not found")
if (not path.exists("../Markdown-Table-of-Contents/")):
raise FileNotFoundError("Markdown-Table-of-Contents directory not found")
##################... | 67.792079 | 154 | 0.637505 | 816 | 6,847 | 5.341912 | 0.121324 | 0.049553 | 0.092911 | 0.123882 | 0.545309 | 0.432668 | 0.317963 | 0.186281 | 0.114935 | 0.069511 | 0 | 0.001778 | 0.096393 | 6,847 | 100 | 155 | 68.47 | 0.702764 | 0.005112 | 0 | 0 | 0 | 0 | 0.660175 | 0.209843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022989 | 0.022989 | 0 | 0.022989 | 0.022989 | 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 |
10c36b8fc1840cfb5a40958316805cad9712d3bb | 8,254 | py | Python | snipmyvideo.py | rascoro1/SnipMyVideo | 0728684fa271ec140f90c7878e41d7e55eec1989 | [
"MIT"
] | 3 | 2016-07-22T00:34:50.000Z | 2016-09-02T16:52:23.000Z | snipmyvideo.py | rascoro1/SnipMyVideo | 0728684fa271ec140f90c7878e41d7e55eec1989 | [
"MIT"
] | 2 | 2016-09-06T04:11:44.000Z | 2018-01-29T21:57:51.000Z | snipmyvideo.py | rascoro1/SnipMyVideo | 0728684fa271ec140f90c7878e41d7e55eec1989 | [
"MIT"
] | 1 | 2016-09-02T20:39:25.000Z | 2016-09-02T20:39:25.000Z | from moviepy.editor import *
from moviepy import Clip
import sys
import os
"""
This is a simple script that can only snip your code and return it back in one video
This script requires moviepy.py
Is can be obtained through pip:
pip install moviepy
Output file can be '.mp4', 'ogv', 'webm'
You can mod... | 34.974576 | 146 | 0.63448 | 1,156 | 8,254 | 4.439446 | 0.239619 | 0.01286 | 0.035074 | 0.037412 | 0.15608 | 0.133476 | 0.096259 | 0.088854 | 0.088854 | 0.088854 | 0 | 0.026286 | 0.257936 | 8,254 | 235 | 147 | 35.123404 | 0.811592 | 0.118003 | 0 | 0.080645 | 0 | 0.008065 | 0.205354 | 0.032161 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.153226 | 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 |
10d2a94ebd88d32ad26b964e29b12c2b154a5761 | 7,858 | py | Python | HSTB/drivers/hips_log.py | noaa-ocs-hydrography/drivers | d798a851b7b06c986c811a84242529038fd0b2b3 | [
"CC0-1.0"
] | 2 | 2021-04-28T17:37:30.000Z | 2022-01-28T21:56:17.000Z | HSTB/drivers/hips_log.py | noaa-ocs-hydrography/drivers | d798a851b7b06c986c811a84242529038fd0b2b3 | [
"CC0-1.0"
] | 1 | 2020-11-05T13:57:34.000Z | 2020-11-05T14:00:26.000Z | HSTB/drivers/hips_log.py | noaa-ocs-hydrography/drivers | d798a851b7b06c986c811a84242529038fd0b2b3 | [
"CC0-1.0"
] | 1 | 2021-04-09T08:29:54.000Z | 2021-04-09T08:29:54.000Z | import xml.etree.ElementTree as ElementTree
import os
class CARISObject:
"""A generic CARIS object with a name"""
def __init__(self):
"""Initialize with empty name"""
self.name = ''
def __init__(self, name):
"""Initialize with a name provided"""
self.name = name
def ... | 27.865248 | 102 | 0.573556 | 977 | 7,858 | 4.452405 | 0.128966 | 0.024828 | 0.038851 | 0.028966 | 0.135172 | 0.123218 | 0.116322 | 0.108506 | 0.108506 | 0.108506 | 0 | 0.00277 | 0.310893 | 7,858 | 281 | 103 | 27.964413 | 0.800554 | 0.213286 | 0 | 0.155689 | 0 | 0 | 0.019293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269461 | false | 0 | 0.011976 | 0 | 0.449102 | 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 |
10d567f52597f63ae873c81fa0c69444cf588834 | 6,863 | py | Python | uiConfig.py | g-ulrich/ScreenShotToDiscord | 7228d01637d426a2767a9531576880180a49c92f | [
"MIT"
] | null | null | null | uiConfig.py | g-ulrich/ScreenShotToDiscord | 7228d01637d426a2767a9531576880180a49c92f | [
"MIT"
] | null | null | null | uiConfig.py | g-ulrich/ScreenShotToDiscord | 7228d01637d426a2767a9531576880180a49c92f | [
"MIT"
] | null | null | null | from PyQt5.QtCore import QTimer, QTime
from PyQt5 import QtGui, QtWidgets
import time
import random
import os
import datetime
import requests
import sqlite3 as sql
import database_impl as db
from date_tools import dt
def datetime_diff(old_datetime, new_datetime, dates_are_strings=True):
"""
String dates shoul... | 43.713376 | 181 | 0.616203 | 911 | 6,863 | 4.503842 | 0.230516 | 0.086278 | 0.026322 | 0.037046 | 0.32001 | 0.291981 | 0.263709 | 0.219352 | 0.165489 | 0.165489 | 0 | 0.030233 | 0.243334 | 6,863 | 156 | 182 | 43.99359 | 0.759869 | 0.017776 | 0 | 0.192 | 0 | 0.024 | 0.115344 | 0.003162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072 | false | 0.064 | 0.08 | 0 | 0.176 | 0.008 | 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 |
10db0a1461dd4901dea43c8088f2d331ca5bbb5e | 908 | py | Python | icetray/resources/test/shoulddo.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | icetray/resources/test/shoulddo.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | icetray/resources/test/shoulddo.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | #!/usr/bin/env python
#
# Sample i3module in python
#
from icecube.icetray import *
from I3Tray import *
tray = I3Tray()
# generate empty frames
tray.AddModule("BottomlessSource","bottomless")
def make_counter(base):
class ShouldCounter(base):
def __init__(self, context):
base.__init__(self... | 23.282051 | 77 | 0.615639 | 98 | 908 | 5.510204 | 0.510204 | 0.064815 | 0.055556 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016566 | 0.268722 | 908 | 38 | 78 | 23.894737 | 0.796687 | 0.092511 | 0 | 0.090909 | 1 | 0 | 0.121175 | 0.029376 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.409091 | 0.090909 | 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 |
10db498d974995cdddc73b0eb663f988c2c1a75e | 3,405 | py | Python | Scripts/Biochemistry/Merge_Compounds.py | nkkchem/ModelSEEDDatabase | a117e433f540e931ee60a961f0d23cfc23cc387d | [
"MIT"
] | null | null | null | Scripts/Biochemistry/Merge_Compounds.py | nkkchem/ModelSEEDDatabase | a117e433f540e931ee60a961f0d23cfc23cc387d | [
"MIT"
] | null | null | null | Scripts/Biochemistry/Merge_Compounds.py | nkkchem/ModelSEEDDatabase | a117e433f540e931ee60a961f0d23cfc23cc387d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os, sys
temp=list();
header=1;
sys.path.append('../../Libs/Python')
from BiochemPy import Reactions, Compounds
ReactionsHelper = Reactions()
Reactions_Dict = ReactionsHelper.loadReactions()
CompoundsHelper = Compounds()
Compounds_Dict = CompoundsHelper.loadCompounds()
Compound_To_Merge_... | 34.744898 | 130 | 0.676065 | 455 | 3,405 | 4.883516 | 0.272527 | 0.070207 | 0.057606 | 0.049505 | 0.205671 | 0.150765 | 0.133663 | 0.133663 | 0.133663 | 0.133663 | 0 | 0.009937 | 0.202056 | 3,405 | 97 | 131 | 35.103093 | 0.807876 | 0.246402 | 0 | 0.166667 | 0 | 0 | 0.081601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 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 |
10dc80116f563ea0a2e9886f4435631d1b02b4b4 | 299 | py | Python | 021_loguru/multifile01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | null | null | null | 021_loguru/multifile01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | 49 | 2021-01-12T07:25:17.000Z | 2022-03-12T00:53:24.000Z | 021_loguru/multifile01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | null | null | null | from loguru import logger
from multifile02 import sum_ab
def run():
logger.add("log_multifile.log")
logger.info("="*30)
logger.info("start run")
sum_ab(5, 7)
logger.info("end run")
def main():
run()
logger.success('Complete.')
if __name__ == "__main__":
main()
| 14.95 | 35 | 0.625418 | 41 | 299 | 4.292683 | 0.560976 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.217391 | 299 | 19 | 36 | 15.736842 | 0.726496 | 0 | 0 | 0 | 0 | 0 | 0.170569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | true | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10dd33d3f2c88f6ed9447b48563fc0a3cb09360a | 4,903 | py | Python | reservas/settings/base.py | fedegallar/reservas | 75fc06b9dedf53eca76b61ea0ccc914d5e084b2d | [
"MIT"
] | 1 | 2018-11-10T14:57:54.000Z | 2018-11-10T14:57:54.000Z | reservas/settings/base.py | fedegallar/reservas | 75fc06b9dedf53eca76b61ea0ccc914d5e084b2d | [
"MIT"
] | 6 | 2020-06-05T17:11:56.000Z | 2021-09-07T23:38:00.000Z | reservas/settings/base.py | fedegallar/reservas | 75fc06b9dedf53eca76b61ea0ccc914d5e084b2d | [
"MIT"
] | 1 | 2019-04-16T20:00:05.000Z | 2019-04-16T20:00:05.000Z | # coding=utf-8
"""
Django settings for reservas project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
... | 29.011834 | 98 | 0.698756 | 598 | 4,903 | 5.608696 | 0.423077 | 0.054264 | 0.035778 | 0.029219 | 0.140429 | 0.130292 | 0.081097 | 0.081097 | 0.023852 | 0 | 0 | 0.015764 | 0.171936 | 4,903 | 168 | 99 | 29.184524 | 0.810345 | 0.314705 | 0 | 0 | 1 | 0 | 0.467548 | 0.361178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021505 | 0 | 0.021505 | 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 |
10df133a433492185e9da42e3e25c81ed4744f41 | 2,206 | py | Python | src/main/resources/alm/CreateDefect.py | xebialabs-community/xlr-hpalm-plugin | e374f9082595a34afe7bef8e644715b2b0462c33 | [
"MIT"
] | null | null | null | src/main/resources/alm/CreateDefect.py | xebialabs-community/xlr-hpalm-plugin | e374f9082595a34afe7bef8e644715b2b0462c33 | [
"MIT"
] | 1 | 2019-05-13T17:36:45.000Z | 2019-05-13T17:36:45.000Z | src/main/resources/alm/CreateDefect.py | xebialabs-community/xlr-hpalm-plugin | e374f9082595a34afe7bef8e644715b2b0462c33 | [
"MIT"
] | 3 | 2019-05-10T17:48:20.000Z | 2020-07-08T14:22:20.000Z | #
# Copyright 2021 XEBIALABS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli... | 50.136364 | 462 | 0.714415 | 286 | 2,206 | 5.465035 | 0.51049 | 0.056302 | 0.042226 | 0.047985 | 0.118362 | 0.055022 | 0.055022 | 0 | 0 | 0 | 0 | 0.003959 | 0.198549 | 2,206 | 43 | 463 | 51.302326 | 0.880091 | 0.479601 | 0 | 0 | 0 | 0 | 0.108179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.1 | null | null | 0.033333 | 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 |
10e1be91406866f0d1fa96365de13d361b7ae9cd | 291 | py | Python | nltktest.py | HeikkiKeskustalo/Fuzzy-String-Matching | 21215d58473f2af72c039d6d3c186e18f04dd893 | [
"MIT"
] | null | null | null | nltktest.py | HeikkiKeskustalo/Fuzzy-String-Matching | 21215d58473f2af72c039d6d3c186e18f04dd893 | [
"MIT"
] | 7 | 2018-06-28T03:57:04.000Z | 2018-08-28T12:37:19.000Z | nltktest.py | EvoluzTampere/Fuzzy-String-Matching | 9137f23f9713e2778a8894cbfd3ef1dc34913599 | [
"MIT"
] | 1 | 2018-08-07T07:41:00.000Z | 2018-08-07T07:41:00.000Z | from nltk.stem.snowball import SnowballStemmer
letter = [u'kissassa']
for word in letter:
print word, SnowballStemmer("finnish").stem(word)
# read file (get a string)
# detect charset (UTF-8)
# decode (get a Unicode code point presentation)
# tokenize
# try out the Snowball stemmer
| 20.785714 | 53 | 0.738832 | 41 | 291 | 5.243902 | 0.804878 | 0.037209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.164948 | 291 | 13 | 54 | 22.384615 | 0.880658 | 0.453608 | 0 | 0 | 0 | 0 | 0.098684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10eabbde5c8c1ecebe18272de8da83e00ed981a5 | 2,711 | py | Python | satchless/checkout/tests/__init__.py | styleseat/satchless | 884d0256c6af9b1de596d3875ee12dc02ecfaf8a | [
"BSD-4-Clause"
] | 1 | 2017-11-26T18:53:40.000Z | 2017-11-26T18:53:40.000Z | satchless/checkout/tests/__init__.py | styleseat/satchless | 884d0256c6af9b1de596d3875ee12dc02ecfaf8a | [
"BSD-4-Clause"
] | 13 | 2015-01-22T23:47:52.000Z | 2022-01-13T20:22:34.000Z | satchless/checkout/tests/__init__.py | styleseat/satchless | 884d0256c6af9b1de596d3875ee12dc02ecfaf8a | [
"BSD-4-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.conf import settings
from django.http import HttpResponse
from django.test import (
Client,
TestCase,
)
from satchless.cart.tests import TestCart
from ...cart.models import CART_SESSION_KEY
from ...order.app import order_app
from ...pri... | 34.316456 | 93 | 0.677241 | 321 | 2,711 | 5.464174 | 0.267913 | 0.039909 | 0.023945 | 0.017104 | 0.230901 | 0.198974 | 0.116306 | 0.057013 | 0.057013 | 0.057013 | 0 | 0.001446 | 0.234969 | 2,711 | 78 | 94 | 34.75641 | 0.844262 | 0.007746 | 0 | 0.064516 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0 | 0.193548 | 0.016129 | 0.580645 | 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 |
10f540c5034ca1b5afdb44405af84acd35b8db36 | 385 | py | Python | tests/unicode/unicode_id.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 692 | 2016-12-19T23:25:35.000Z | 2022-03-31T14:20:48.000Z | tests/unicode/unicode_id.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 509 | 2017-03-28T19:37:18.000Z | 2022-03-31T20:31:43.000Z | tests/unicode/unicode_id.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 228 | 2016-12-19T05:03:30.000Z | 2022-03-22T18:13:00.000Z | # test unicode in identifiers
# comment
# αβγδϵφζ
# global identifiers
α = 1
αβγ = 2
bβ = 3
βb = 4
print(α, αβγ, bβ, βb)
# function, argument, local identifiers
def α(β, γ):
δ = β + γ
print(β, γ, δ)
α(1, 2)
# class, method identifiers
class φ:
def __init__(self):
pass
def δ(self, ϵ):
... | 13.75 | 39 | 0.584416 | 64 | 385 | 3.453125 | 0.53125 | 0.027149 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.275325 | 385 | 27 | 40 | 14.259259 | 0.759857 | 0.327273 | 0 | 0 | 0 | 0 | 0.003968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0 | 0 | 0.235294 | 0.176471 | 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 |
10f5834075ee59a03333434f3790eb69637b29a2 | 552 | py | Python | examples/hsets.py | gfmartins/cssdbpy | f2369dd46caeb6bd84f2b1deacb8fb9416b26afc | [
"BSD-2-Clause"
] | 85 | 2016-09-05T19:41:37.000Z | 2021-11-08T11:26:54.000Z | examples/hsets.py | gfmartins/cssdbpy | f2369dd46caeb6bd84f2b1deacb8fb9416b26afc | [
"BSD-2-Clause"
] | 10 | 2016-09-22T06:42:08.000Z | 2018-12-12T13:55:16.000Z | examples/hsets.py | deslum/ssdbpy | 4cecc6f421bbf1782334b294569801c5808aaaa1 | [
"BSD-2-Clause"
] | 9 | 2016-09-06T08:41:32.000Z | 2020-09-08T04:04:23.000Z | from cssdbpy import Connection
from time import time
import md5
if __name__ == '__main__':
conn = Connection('127.0.0.1', 8888)
for i in xrange(0, 10000):
md5word = md5.new('word{}'.format(i)).hexdigest()
create = conn.execute('hset','words', md5word, int(time()))
value = conn.execute('hget','words', md5word)... | 32.470588 | 61 | 0.677536 | 75 | 552 | 4.88 | 0.52 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056485 | 0.134058 | 552 | 16 | 62 | 34.5 | 0.709205 | 0 | 0 | 0 | 0 | 0 | 0.150362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.142857 | 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 |
10fd538c1e9b6fd2668077d80094be203d83e7ee | 531 | py | Python | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | 1 | 2020-09-14T04:23:07.000Z | 2020-09-14T04:23:07.000Z | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | null | null | null | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-09-09 05:08
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gyms', '0002_auto_20200903_1750'),
]
operations = [
migrations.AlterField(
model_name='gym',
... | 26.55 | 170 | 0.642185 | 63 | 531 | 5.31746 | 0.777778 | 0.059701 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082524 | 0.224105 | 531 | 19 | 171 | 27.947368 | 0.730583 | 0.080979 | 0 | 0 | 1 | 0 | 0.148148 | 0.047325 | 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 |
8012691c1adce7b34dee33223df2c745e8a1cd12 | 5,830 | py | Python | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 10 | 2017-01-25T15:47:06.000Z | 2022-01-07T10:08:48.000Z | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 7 | 2016-02-10T10:19:22.000Z | 2018-11-30T23:21:04.000Z | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 4 | 2018-08-22T07:19:52.000Z | 2018-11-05T09:16:52.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Compare to numpy data"""
import sys
import numpy as np
import multipletau
from test_correlate import get_sample_arrays_cplx
def test_corresponds_ac():
myframe = sys._getframe()
myname = myframe.f_code.co_name
print("running ", myname)
a = np.concatenate... | 33.125 | 71 | 0.456089 | 649 | 5,830 | 3.949153 | 0.224961 | 0.008584 | 0.066329 | 0.044479 | 0.615685 | 0.606321 | 0.600078 | 0.595006 | 0.589934 | 0.576668 | 0 | 0.030368 | 0.440823 | 5,830 | 175 | 72 | 33.314286 | 0.755828 | 0.158148 | 0 | 0.766355 | 0 | 0 | 0.012661 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 1 | 0.046729 | false | 0 | 0.037383 | 0 | 0.084112 | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8015962c36f7108badf443ec7534f5753cd6e921 | 2,101 | py | Python | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | 1 | 2022-03-16T23:56:09.000Z | 2022-03-16T23:56:09.000Z | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null |
from __future__ import print_function
from argparse import Namespace
# a video display model to check timing
import pytest
from myhdl import Signal, intbv, instance, delay, StopSimulation, now
from rhea.system import Clock, Reset, Global
from rhea.cores.video.lcd import LT24Interface
from rhea.models.video import ... | 26.2625 | 83 | 0.640647 | 272 | 2,101 | 4.742647 | 0.397059 | 0.046512 | 0.051163 | 0.065116 | 0.068217 | 0.068217 | 0.068217 | 0.068217 | 0.068217 | 0.068217 | 0 | 0.041451 | 0.265112 | 2,101 | 79 | 84 | 26.594937 | 0.794041 | 0.042361 | 0 | 0 | 0 | 0 | 0.034895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.036364 | 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 |
801d907dbd6651a1c3f1baa79169bbd085c486ee | 2,682 | py | Python | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 1 | 2017-01-23T19:21:23.000Z | 2017-01-23T19:21:23.000Z | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 14 | 2016-01-21T17:18:21.000Z | 2022-02-09T19:21:59.000Z | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 3 | 2016-01-25T19:32:21.000Z | 2016-08-23T15:37:38.000Z | import six
if six.PY3:
from unittest import mock
from io import StringIO
else:
import mock
from cStringIO import StringIO
from http.client import responses
import json
from django import test
from request_signer.client.generic import Response
class ResponseTests(test.TestCase):
def setUp(self):
... | 42.571429 | 96 | 0.751305 | 350 | 2,682 | 5.414286 | 0.248571 | 0.101319 | 0.084433 | 0.097098 | 0.367282 | 0.338786 | 0.150923 | 0.150923 | 0.150923 | 0.150923 | 0 | 0.008505 | 0.16704 | 2,682 | 62 | 97 | 43.258065 | 0.839749 | 0 | 0 | 0.081633 | 0 | 0 | 0.071961 | 0.0261 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.204082 | false | 0 | 0.183673 | 0 | 0.408163 | 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 |
802cdedc55b19a30eabaf8043c64d8287cf38eb3 | 1,064 | py | Python | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 3 | 2020-12-24T14:42:49.000Z | 2022-03-23T07:28:58.000Z | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 1 | 2021-01-20T10:24:49.000Z | 2021-01-30T07:52:47.000Z | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | null | null | null | import asyncio
import time
from rap.client import Client
from rap.common.exceptions import FuncNotFoundError
client: Client = Client("example", [{"ip": "localhost", "port": "9000"}])
# in register, must use async def...
@client.register()
async def raise_msg_exc(a: int, b: int) -> int:
pass
# in register, mus... | 23.130435 | 105 | 0.662594 | 147 | 1,064 | 4.605442 | 0.47619 | 0.059084 | 0.041359 | 0.050222 | 0.32644 | 0.32644 | 0.257016 | 0.153619 | 0.153619 | 0.153619 | 0 | 0.008274 | 0.204887 | 1,064 | 45 | 106 | 23.644444 | 0.791962 | 0.06485 | 0 | 0.258065 | 0 | 0 | 0.090726 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0 | false | 0.064516 | 0.16129 | 0 | 0.16129 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8032858404b723ecb11e6d7ac5febb5da3de0fd6 | 1,452 | py | Python | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | # TODO write utilities for running MCMC stuff
import networkx as nx
from graph_tool.inference import minimize_blockmodel_dl
from graph_tool import load_graph
import numpy as np
import pandas as pd
import os
from src.graph import MetaGraph
def run_minimize_blockmodel(mg, temp_loc=None, weight_model=None):
meta = ... | 29.632653 | 86 | 0.694215 | 222 | 1,452 | 4.297297 | 0.414414 | 0.044025 | 0.027254 | 0.033543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0.202479 | 1,452 | 48 | 87 | 30.25 | 0.82038 | 0.059917 | 0 | 0 | 0 | 0 | 0.081558 | 0.047024 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.027778 | false | 0 | 0.194444 | 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 |
803911ad68063ce4c7a23b2522b750059f50235b | 21,773 | py | Python | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/Sniper | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | 1 | 2021-04-22T05:27:08.000Z | 2021-04-22T05:27:08.000Z | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# BEGIN_LEGAL
# BSD License
#
# Copyright (c)2014 Intel Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above... | 33.809006 | 123 | 0.606715 | 2,926 | 21,773 | 4.407724 | 0.175325 | 0.007366 | 0.013026 | 0.016283 | 0.183066 | 0.136931 | 0.074746 | 0.059084 | 0.028224 | 0.022176 | 0 | 0.009848 | 0.286456 | 21,773 | 643 | 124 | 33.861586 | 0.820288 | 0.318514 | 0 | 0.225 | 0 | 0.007143 | 0.112127 | 0.016388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.010714 | 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 |
803a46dade15dfe7d529009beb897901bfbdb1e7 | 2,918 | py | Python | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T05:30:36.000Z | 2019-06-27T05:30:36.000Z | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | null | null | null | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T05:29:50.000Z | 2019-06-27T05:29:50.000Z | #!/usr/bin/env python
"""This module remains for backwards compatibility reasons and will be
removed in PyDy 0.4.0."""
import warnings
from .ode_function_generators import generate_ode_function as new_gen_ode_func
with warnings.catch_warnings():
warnings.simplefilter('once')
warnings.warn("This module, 'pyd... | 39.972603 | 79 | 0.643934 | 322 | 2,918 | 5.717391 | 0.363354 | 0.0478 | 0.029875 | 0.040739 | 0.319935 | 0.274307 | 0.238457 | 0.238457 | 0.238457 | 0.178164 | 0 | 0.003318 | 0.276902 | 2,918 | 72 | 80 | 40.527778 | 0.869194 | 0.391707 | 0 | 0.333333 | 1 | 0 | 0.305656 | 0.129964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
803e4182cc11eec12d785bce525dec0268a1a586 | 749 | py | Python | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from azure.identity.aio._credentials.managed_identity import ImdsCredential
import pytest
from helpers_async import AsyncMockTransport
@pytest.mark.asyncio
async def ... | 24.16129 | 75 | 0.691589 | 73 | 749 | 6.849315 | 0.534247 | 0.04 | 0.068 | 0.088 | 0.528 | 0.528 | 0.132 | 0 | 0 | 0 | 0 | 0.003125 | 0.145527 | 749 | 30 | 76 | 24.966667 | 0.778125 | 0.189586 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
803fc0980572bedb582462a274dae0d462a1eb72 | 241 | py | Python | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python3
"""SoloLearn > Code Coach > Hovercraft"""
sales = int(input('How many did you sell? ')) * 3
expense = 21
if sales > expense:
print('Profit')
elif sales < expense:
print('Loss')
else:
print('Broke Even')
| 18.538462 | 49 | 0.630705 | 33 | 241 | 4.606061 | 0.818182 | 0.157895 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.19917 | 241 | 12 | 50 | 20.083333 | 0.766839 | 0.240664 | 0 | 0 | 0 | 0 | 0.242938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
8040774ec7da6d6e9a3a5ad4d793d25841c16e92 | 2,522 | py | Python | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | null | null | null | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | null | null | null | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | 1 | 2021-04-05T13:27:02.000Z | 2021-04-05T13:27:02.000Z | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import AuthenticationForm
from web3 import Web3
from .forms import SignupForm
from Key.models import Key
#The views and templates in this app a... | 34.081081 | 104 | 0.657811 | 296 | 2,522 | 5.537162 | 0.290541 | 0.080537 | 0.043929 | 0.04881 | 0.377669 | 0.363636 | 0.23795 | 0.195241 | 0.140329 | 0.140329 | 0 | 0.009326 | 0.234734 | 2,522 | 74 | 105 | 34.081081 | 0.839896 | 0.069389 | 0 | 0.483871 | 0 | 0 | 0.092537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0.064516 | 0.112903 | 0 | 0.33871 | 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 |
8041201eb138a5c9f79a0273b50738c537af71ad | 398 | py | Python | app/__init__.py | Paulvitalis200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | null | null | null | app/__init__.py | Paulvitalis200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | 4 | 2018-10-21T18:28:03.000Z | 2018-10-24T12:48:24.000Z | app/__init__.py | Paulstar200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | null | null | null | from flask import Flask, Blueprint
from flask_jwt_extended import JWTManager
def create_app(config):
app = Flask(__name__)
from instance.config import app_config
app.config.from_object(app_config[config])
app.config['JWT_SECRET_KEY'] = 'jwt-secret-string'
from .api.V1 import productsale_api as p... | 22.111111 | 54 | 0.738693 | 56 | 398 | 5 | 0.428571 | 0.160714 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.180905 | 398 | 17 | 55 | 23.411765 | 0.855828 | 0 | 0 | 0 | 0 | 0 | 0.077889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.181818 | 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 |
8044c8aa6dbc56f89bc318d636c18413c449c80a | 599 | py | Python | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | from math import sqrt
from typing import Tuple
def quadratic(a: float, b: float, c: float) -> Tuple[float, float]:
'''Compute roots of the quadratic equation:
a*x**2 + b*x + c = 0
For example:
>>> x1, x2 = quadratic(a=4, b=11, c=7)
>>> x1
-1.0
... | 23.96 | 67 | 0.42571 | 89 | 599 | 2.865169 | 0.348315 | 0.023529 | 0.023529 | 0.117647 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126404 | 0.405676 | 599 | 24 | 68 | 24.958333 | 0.589888 | 0.395659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
805364bb7db976a9ae2d3096d0339f8997426097 | 2,610 | py | Python | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | null | null | null | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | 3 | 2021-03-19T11:26:35.000Z | 2021-09-08T01:43:48.000Z | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | null | null | null | from keras.datasets import imdb
top_words = 10000
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=top_words)
#imdb.get_word_index()
word_dict = imdb.get_word_index()
word_dict = { key:(value + 3) for key, value in word_dict.items() }
word_dict[''] = 0 # Padding
word_dict['>'] = 1 # Start
word_dict['?'... | 33.461538 | 94 | 0.728736 | 387 | 2,610 | 4.751938 | 0.369509 | 0.052202 | 0.040783 | 0.016313 | 0.113649 | 0.113649 | 0.066884 | 0.038608 | 0.038608 | 0 | 0 | 0.016481 | 0.139847 | 2,610 | 78 | 95 | 33.461538 | 0.802673 | 0.092337 | 0 | 0.033333 | 0 | 0 | 0.07155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.05 | 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 |
8058a85467ead4f2df3d7aeae90f5f3cb7569943 | 9,954 | py | Python | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 5 | 2017-03-31T03:25:09.000Z | 2021-12-17T02:28:24.000Z | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 165 | 2016-08-11T01:59:47.000Z | 2017-10-10T06:32:12.000Z | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 11 | 2015-06-15T04:25:59.000Z | 2021-04-18T09:39:16.000Z | # crawl_drugbank.py
import time
import pickle
import json
import MySQLdb
import httplib
import urllib2 as urllib
from collections import defaultdict
import dbcrawler_util as util
from datetime import datetime
from bs4 import BeautifulSoup as bs
outDir = '/home/tor/robotics/prj/csipb-jamu-prj/dataset/drugbank/drugbank... | 35.55 | 140 | 0.544806 | 1,150 | 9,954 | 4.646957 | 0.228696 | 0.019461 | 0.022455 | 0.026946 | 0.378743 | 0.33271 | 0.315494 | 0.288922 | 0.288922 | 0.273578 | 0 | 0.034017 | 0.308921 | 9,954 | 279 | 141 | 35.677419 | 0.742841 | 0.166466 | 0 | 0.149171 | 0 | 0.027624 | 0.199248 | 0.093921 | 0 | 0 | 0 | 0 | 0.01105 | 0 | null | null | 0 | 0.060773 | null | null | 0.049724 | 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 |
8058ac0f97a55a2585c802f841a4705f0c870641 | 1,051 | py | Python | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | null | null | null | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | 1 | 2021-03-27T15:52:06.000Z | 2021-03-27T15:52:06.000Z | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
# -------------- Add path of _k2.so into sys.path --------------
import os as _os
import sys as _sys
_current_module = _sys.modules[__name__]
_k2_dir = _os.path.dirname(_current_module.__file__)
if not hasattr(_current_module, "__path__"):
__path__ = [_k2_dir]
elif _k2_dir... | 27.657895 | 75 | 0.652712 | 145 | 1,051 | 4.213793 | 0.468966 | 0.05892 | 0.05892 | 0.05892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018079 | 0.157945 | 1,051 | 37 | 76 | 28.405405 | 0.672316 | 0.482398 | 0 | 0 | 0 | 0 | 0.050752 | 0 | 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 |
337be1ea8a2157dad08a162f07bb9bd2265babca | 2,710 | py | Python | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
import os
import shutil
import subprocess
import zipfile
"""
Copy Speci... | 24.862385 | 85 | 0.627306 | 389 | 2,710 | 4.249357 | 0.362468 | 0.018149 | 0.018149 | 0.029038 | 0.099214 | 0.072595 | 0.055656 | 0.055656 | 0.055656 | 0.055656 | 0 | 0.0105 | 0.261993 | 2,710 | 108 | 86 | 25.092593 | 0.816 | 0.371956 | 0 | 0.117647 | 0 | 0 | 0.078135 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.098039 | false | 0 | 0.117647 | 0 | 0.235294 | 0.058824 | 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 |
337fb62497c441679efa5ff81eacc164419c490b | 458 | py | Python | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | 1 | 2017-05-02T21:28:02.000Z | 2017-05-02T21:28:02.000Z | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | null | null | null | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | null | null | null | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name="giraffe",
version="0.1",
package_dir={"giraffe" : ""},
packages=["giraffe"],
cmdclass = {'build_ext': build_ext},
ext_modules = [
Exten... | 28.625 | 75 | 0.576419 | 46 | 458 | 5.586957 | 0.478261 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.286026 | 458 | 15 | 76 | 30.533333 | 0.779817 | 0 | 0 | 0 | 0 | 0 | 0.194323 | 0.050218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.214286 | 0 | 0.214286 | 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 |
3383b63311713ea3400e46bf259718c4551057ed | 921 | py | Python | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | import click
from modules.processor import build_report, print_report
@click.group(invoke_without_command=True)
@click.option('--files', '-f', required=True, type=str, prompt="Provide the path to data files")
@click.pass_context
def cli_root(ctx, files):
ctx.meta['files'] = files
@cli_root.command()
@click.argu... | 29.709677 | 107 | 0.710098 | 132 | 921 | 4.840909 | 0.492424 | 0.051643 | 0.075117 | 0.089202 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145494 | 921 | 30 | 108 | 30.7 | 0.811944 | 0.109663 | 0 | 0.391304 | 0 | 0 | 0.127139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.130435 | 0.086957 | 0 | 0.217391 | 0.130435 | 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 |
3385d0740834d136b94244297d0e01af822e4328 | 622 | py | Python | Blatt1/src/script.py | lewis206/Computational_Physics | 06ad6126685eaf65f5834bfe70ebd91b33314395 | [
"MIT"
] | null | null | null | Blatt1/src/script.py | lewis206/Computational_Physics | 06ad6126685eaf65f5834bfe70ebd91b33314395 | [
"MIT"
] | null | null | null | Blatt1/src/script.py | lewis206/Computational_Physics | 06ad6126685eaf65f5834bfe70ebd91b33314395 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
# Set fontsize larger for latex plots
matplotlib.rcParams.update({'font.size': 20})
# Generate data from file
x, y = np.genfromtxt("bin/python_Aufgabe2.txt", unpack=True)
m, n = x[-1], y[-1]
# Plotting
plt.figure(figsize=(12,7))
plt.grid()
plt.xla... | 27.043478 | 70 | 0.680064 | 110 | 622 | 3.8 | 0.572727 | 0.019139 | 0.014354 | 0.019139 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037567 | 0.101286 | 622 | 22 | 71 | 28.272727 | 0.710197 | 0.109325 | 0 | 0 | 1 | 0 | 0.14 | 0.041818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3387d6dfab24bbf352088172ca1497dc6db9c9b1 | 712 | py | Python | build.py | LagoLunatic/GCFT | d838614804058c7b7ea5c62b37251a2795f5c791 | [
"MIT"
] | 38 | 2020-01-14T01:20:15.000Z | 2022-02-15T00:03:33.000Z | build.py | LagoLunatic/GCFT | d838614804058c7b7ea5c62b37251a2795f5c791 | [
"MIT"
] | 7 | 2020-01-13T18:08:07.000Z | 2022-01-13T02:20:30.000Z | build.py | LagoLunatic/GCFT | d838614804058c7b7ea5c62b37251a2795f5c791 | [
"MIT"
] | 1 | 2021-09-23T19:30:55.000Z | 2021-09-23T19:30:55.000Z |
from zipfile import ZipFile
import os
from version import VERSION
base_name = "GameCube File Tools"
base_name_with_version = base_name + " " + VERSION
import struct
if (struct.calcsize("P") * 8) == 64:
base_name_with_version += "_64bit"
base_zip_name = base_name_with_version
else:
base_name_with_version += "_... | 26.37037 | 56 | 0.723315 | 110 | 712 | 4.354545 | 0.354545 | 0.150313 | 0.150313 | 0.237996 | 0.125261 | 0.125261 | 0.125261 | 0 | 0 | 0 | 0 | 0.011438 | 0.140449 | 712 | 26 | 57 | 27.384615 | 0.771242 | 0 | 0 | 0.105263 | 0 | 0 | 0.153305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 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 |
3388f9df9b80255086f1204a7c8b7e0f3646bb15 | 2,012 | py | Python | src/main/resources/servicenow/OpenTicket.py | xdanw/xld-servicenow-incidentlog | 9ae4ccf5a110dab0294aa38cd04b2abc8615acba | [
"MIT"
] | null | null | null | src/main/resources/servicenow/OpenTicket.py | xdanw/xld-servicenow-incidentlog | 9ae4ccf5a110dab0294aa38cd04b2abc8615acba | [
"MIT"
] | null | null | null | src/main/resources/servicenow/OpenTicket.py | xdanw/xld-servicenow-incidentlog | 9ae4ccf5a110dab0294aa38cd04b2abc8615acba | [
"MIT"
] | null | null | null |
import json
import requests
import requests.utils
# Fixes some issues with TLS
import os
os.environ['REQUESTS_CA_BUNDLE'] = 'ca.pem';
# --- Debug Purposes Only, Server Config Is Hard Coded ---
#
#
# print "Debug ... " + deployed.ResultUri;
# response = requests.get('https://webhook.site/062e2ea7-5a36-4abb-a2c8-862... | 30.484848 | 123 | 0.695328 | 263 | 2,012 | 5.258555 | 0.501901 | 0.03543 | 0.052061 | 0.033261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022844 | 0.129722 | 2,012 | 65 | 124 | 30.953846 | 0.76699 | 0.423459 | 0 | 0 | 0 | 0 | 0.341571 | 0.045013 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 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 |
338af8622848bff11a1275eae70f3a73f237b0cc | 439 | py | Python | algoanim/stats.py | Gaming32/Python-AlgoAnim | c6df06e263f52d57ca91471830ff8fa14f1d85db | [
"MIT"
] | null | null | null | algoanim/stats.py | Gaming32/Python-AlgoAnim | c6df06e263f52d57ca91471830ff8fa14f1d85db | [
"MIT"
] | null | null | null | algoanim/stats.py | Gaming32/Python-AlgoAnim | c6df06e263f52d57ca91471830ff8fa14f1d85db | [
"MIT"
] | null | null | null | class Stats:
writes: int
reads: int
accesses: int
def __init__(self) -> None:
self.reset()
def reset(self) -> None:
self.writes = 0
self.reads = 0
self.accesses = 0
def add_reads(self, count: int = 1) -> None:
self.reads += count
self.accesses +... | 20.904762 | 49 | 0.542141 | 55 | 439 | 4.218182 | 0.272727 | 0.137931 | 0.103448 | 0.112069 | 0.181034 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0.341686 | 439 | 20 | 50 | 21.95 | 0.785467 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
338bdb61b810291631438e77fffbc7457c38058b | 1,421 | py | Python | Core/Stealer/FileZilla.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 375 | 2020-03-17T06:20:50.000Z | 2022-03-29T22:27:23.000Z | Core/Stealer/FileZilla.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 44 | 2020-04-06T22:37:59.000Z | 2020-11-15T15:53:39.000Z | Core/Stealer/FileZilla.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 173 | 2020-04-01T17:17:26.000Z | 2022-03-24T13:28:15.000Z | # Import modules
import os
from xml.dom import minidom
from base64 import b64decode
# Fetch servers from FileZilla
FileZilla = os.getenv('AppData') + '\\FileZilla\\'
def StealFileZilla():
if not os.path.exists(FileZilla):
return []
RecentServersPath = FileZilla + 'recentservers.xml'
SiteManag... | 33.046512 | 148 | 0.696692 | 144 | 1,421 | 6.875 | 0.319444 | 0.193939 | 0.121212 | 0.028283 | 0.567677 | 0.567677 | 0.567677 | 0.567677 | 0.567677 | 0.567677 | 0 | 0.016639 | 0.154117 | 1,421 | 43 | 149 | 33.046512 | 0.806988 | 0.056298 | 0 | 0.428571 | 0 | 0 | 0.123552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.107143 | 0 | 0.214286 | 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 |
338c3eed58a47fa30a2aa03ae3da78bb3efa67b1 | 535 | py | Python | oldcontrib/tools/gallery/urls.py | servee/django-servee-oldcontrib | 836447ebbd53db0b53879a35468c02e57f65105f | [
"BSD-Source-Code"
] | null | null | null | oldcontrib/tools/gallery/urls.py | servee/django-servee-oldcontrib | 836447ebbd53db0b53879a35468c02e57f65105f | [
"BSD-Source-Code"
] | null | null | null | oldcontrib/tools/gallery/urls.py | servee/django-servee-oldcontrib | 836447ebbd53db0b53879a35468c02e57f65105f | [
"BSD-Source-Code"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('oldcontrib.tools.gallery.views',
url(r'^add_to_gallery/$', view='add_to_gallery', name='add_to_gallery'),
url(r'^remove_from_gallery/$', view='remove_from_gallery', name='remove_from_gallery'),
url(r'^create_gallery/$', view='create_gallery', ... | 59.444444 | 94 | 0.745794 | 74 | 535 | 5.027027 | 0.324324 | 0.053763 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080374 | 535 | 9 | 95 | 59.444444 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.570896 | 0.182836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
339039daaf7ffa710ba3dbd6f69316cd722f2b38 | 843 | py | Python | anymesh/tests/reactortester.py | AnyMesh/anyMesh-Python | 017b7808f2fbdc765604488d325678c28be438c0 | [
"MIT"
] | 39 | 2015-04-09T12:55:25.000Z | 2022-01-09T17:56:39.000Z | anymesh/tests/reactortester.py | AnyMesh/anyMesh-Python | 017b7808f2fbdc765604488d325678c28be438c0 | [
"MIT"
] | null | null | null | anymesh/tests/reactortester.py | AnyMesh/anyMesh-Python | 017b7808f2fbdc765604488d325678c28be438c0 | [
"MIT"
] | 13 | 2015-12-17T21:56:26.000Z | 2019-06-01T18:22:02.000Z | import unittest
from twisted.internet import reactor, task
class ReactorTestCase(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(ReactorTestCase, self).__init__(*args, **kwargs)
self.done = False
def timeOutAfter(self, seconds):
f = reactor.callLater(seconds, self.timedO... | 28.1 | 62 | 0.619217 | 92 | 843 | 5.586957 | 0.423913 | 0.062257 | 0.046693 | 0.062257 | 0.22179 | 0.116732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274021 | 843 | 29 | 63 | 29.068966 | 0.839869 | 0 | 0 | 0.25 | 0 | 0 | 0.068802 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3397953b644d0f59b96f9efd7c056d0243abb45a | 380 | py | Python | src/run-shoutcloud/run-shoutcloud-aws.py | kpwbo/comparing-FaaS | dfede88cc9efb1a70ef96603e851436bdc177429 | [
"MIT"
] | null | null | null | src/run-shoutcloud/run-shoutcloud-aws.py | kpwbo/comparing-FaaS | dfede88cc9efb1a70ef96603e851436bdc177429 | [
"MIT"
] | null | null | null | src/run-shoutcloud/run-shoutcloud-aws.py | kpwbo/comparing-FaaS | dfede88cc9efb1a70ef96603e851436bdc177429 | [
"MIT"
] | null | null | null | from locust import HttpLocust, TaskSet, task
class WebsiteTasks(TaskSet):
@task
def bcrypt(self):
headers = { "Content-type": "application/json" }
payload = '{"message":"hello world"}'
self.client.post("/SHOUTCLOUD", payload, headers = headers)
class WebsiteUser(HttpLocust):
... | 27.142857 | 67 | 0.642105 | 41 | 380 | 5.878049 | 0.707317 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.239474 | 380 | 13 | 68 | 29.230769 | 0.82699 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3398cb226db154c17c5156d32cace490ac81678b | 198 | py | Python | 02_sequences/0201_listcomp/020103_cartesian/__main__.py | forseti/py-workout-01 | 9ebb36748ec7d4751b2c81086134df320c0f58ed | [
"Apache-2.0"
] | null | null | null | 02_sequences/0201_listcomp/020103_cartesian/__main__.py | forseti/py-workout-01 | 9ebb36748ec7d4751b2c81086134df320c0f58ed | [
"Apache-2.0"
] | null | null | null | 02_sequences/0201_listcomp/020103_cartesian/__main__.py | forseti/py-workout-01 | 9ebb36748ec7d4751b2c81086134df320c0f58ed | [
"Apache-2.0"
] | null | null | null | colors = ['black', 'white']
sizes = ['S', 'M', 'L']
tshirts = [
(color, size)
for color in colors
for size in sizes
]
print(f"Cartesian products from {colors} and {sizes}: {tshirts}")
| 18 | 65 | 0.59596 | 27 | 198 | 4.37037 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 198 | 10 | 66 | 19.8 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.343434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3399587139e4c6f0b9e4a5bc16f77ab6a41e223b | 807 | py | Python | software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py | vthakur7f/OpenCellular | 0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2019-01-17T21:03:51.000Z | 2019-01-17T21:03:51.000Z | software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py | vthakur7f/OpenCellular | 0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py | vthakur7f/OpenCellular | 0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | # create this file
# rerouting all requests that have ‘api’ in the url to the <code>apps.core.urls
from django.conf.urls import url
from django.urls import path
from rest_framework import routers
from base.src import views
from base.src.views import InitViewSet
#from base.src.views import UploadFileForm
#upload stuf... | 26.9 | 79 | 0.759603 | 116 | 807 | 5.241379 | 0.439655 | 0.065789 | 0.069079 | 0.059211 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130112 | 807 | 29 | 80 | 27.827586 | 0.866097 | 0.257745 | 0 | 0 | 0 | 0 | 0.092749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
339e1f9b6047c43589a665151b5f5b6446ffe99f | 1,407 | py | Python | api/v2/views/image_version_license.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | api/v2/views/image_version_license.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | api/v2/views/image_version_license.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import Q
import django_filters
from core.models import ApplicationVersionLicense as ImageVersionLicense
from api.v2.serializers.details import ImageVersionLicenseSerializer
from api.v2.views.base import AuthModelViewSet
class VersionFilter(django_filters.FilterSet):
version_id = django_filt... | 33.5 | 81 | 0.734186 | 156 | 1,407 | 6.371795 | 0.435897 | 0.065392 | 0.018109 | 0.05835 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001767 | 0.195451 | 1,407 | 41 | 82 | 34.317073 | 0.876325 | 0.113717 | 0 | 0 | 0 | 0 | 0.038079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.2 | 0.08 | 0.76 | 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 |
339ef85148fe55aaa28cf0f86e5f3b80b5277dee | 1,964 | py | Python | pypybox2d/joints/__init__.py | the-mba/Progra-Super-Mario | 90dc2a4ba815732b6e92652c7f8bb4a345d25e91 | [
"MIT"
] | null | null | null | pypybox2d/joints/__init__.py | the-mba/Progra-Super-Mario | 90dc2a4ba815732b6e92652c7f8bb4a345d25e91 | [
"MIT"
] | null | null | null | pypybox2d/joints/__init__.py | the-mba/Progra-Super-Mario | 90dc2a4ba815732b6e92652c7f8bb4a345d25e91 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# C++ version Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
# Python port by Ken Lauer / http://pybox2d.googlecode.com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any ... | 42.695652 | 99 | 0.735234 | 266 | 1,964 | 5.31203 | 0.541353 | 0.042463 | 0.019816 | 0.032555 | 0.087757 | 0.087757 | 0.087757 | 0.087757 | 0.087757 | 0.087757 | 0 | 0.025593 | 0.184318 | 1,964 | 45 | 100 | 43.644444 | 0.856429 | 0.5 | 0 | 0 | 0 | 0.05 | 0.277293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.65 | 0 | 0.65 | 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 |
33a5d6a0778311e0740b6ce7a927d2f68fa7baf5 | 380 | py | Python | lang/tags/data_null.py | ghouston/knausj_talon | 098bb3e89261b19f4b2eda0ca0696f398c50e931 | [
"MIT"
] | 5 | 2020-02-16T13:39:10.000Z | 2020-02-19T19:29:56.000Z | lang/tags/data_null.py | ghouston/knausj_talon | 098bb3e89261b19f4b2eda0ca0696f398c50e931 | [
"MIT"
] | null | null | null | lang/tags/data_null.py | ghouston/knausj_talon | 098bb3e89261b19f4b2eda0ca0696f398c50e931 | [
"MIT"
] | 2 | 2020-02-19T15:10:44.000Z | 2020-02-19T16:55:38.000Z | from talon import Context, Module
ctx = Context()
mod = Module()
mod.tag("code_data_null", desc="Tag for enabling commands relating to null")
@mod.action_class
class Actions:
def code_insert_null():
"""Inserts null"""
def code_insert_is_null():
"""Inserts check for null"""
def code_ins... | 20 | 76 | 0.665789 | 53 | 380 | 4.54717 | 0.509434 | 0.087137 | 0.161826 | 0.141079 | 0.157676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 380 | 18 | 77 | 21.111111 | 0.803333 | 0.163158 | 0 | 0 | 0 | 0 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33a772f892d4ed50cf326d5af75052977fcc4c7b | 695 | py | Python | body/tests/test_medicine.py | dylanjboyd/bodytastic | ee2299ba523c8c6b627028d70ab32b6da97cb2ea | [
"MIT"
] | null | null | null | body/tests/test_medicine.py | dylanjboyd/bodytastic | ee2299ba523c8c6b627028d70ab32b6da97cb2ea | [
"MIT"
] | 81 | 2022-03-04T23:46:02.000Z | 2022-03-19T13:06:46.000Z | body/tests/test_medicine.py | dylanjboyd/bodytastic | ee2299ba523c8c6b627028d70ab32b6da97cb2ea | [
"MIT"
] | null | null | null | from body.tests.login_test_case import LoginTestCase
from body.tests.model_helpers import create_ledger_entry, create_medicine
from freezegun import freeze_time
from django.utils.timezone import make_aware, datetime
@freeze_time(make_aware(datetime(2022, 3, 1)))
class MedicineTests(LoginTestCase):
def test_ledger... | 38.611111 | 95 | 0.755396 | 88 | 695 | 5.727273 | 0.534091 | 0.071429 | 0.10119 | 0.099206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015679 | 0.174101 | 695 | 17 | 96 | 40.882353 | 0.862369 | 0.12518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 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 |
33a9396a5c748b360eebc18de6c808b8faa43521 | 20,818 | py | Python | bqskit/utils/test/types.py | BQSKit/bqskit | 8471f28299a7fb49a2d9d82b24e49c331c9dec22 | [
"BSD-3-Clause-LBNL"
] | 13 | 2021-05-26T21:32:26.000Z | 2022-03-15T17:48:10.000Z | bqskit/utils/test/types.py | BQSKit/bqskit | 8471f28299a7fb49a2d9d82b24e49c331c9dec22 | [
"BSD-3-Clause-LBNL"
] | 20 | 2021-05-26T20:17:15.000Z | 2022-02-27T20:04:10.000Z | bqskit/utils/test/types.py | BQSKit/bqskit | 8471f28299a7fb49a2d9d82b24e49c331c9dec22 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-10-05T16:00:47.000Z | 2021-10-08T01:30:06.000Z | """This module contains functions to generate strategies from annotations."""
from __future__ import annotations
import collections
import inspect
import sys
from itertools import chain
from itertools import combinations
from typing import Any
from typing import Callable
from typing import Iterable
from typing import ... | 35.893103 | 80 | 0.619944 | 2,423 | 20,818 | 5.069336 | 0.101114 | 0.043312 | 0.06741 | 0.08182 | 0.745176 | 0.663926 | 0.518603 | 0.459904 | 0.446634 | 0.395262 | 0 | 0.007074 | 0.273417 | 20,818 | 579 | 81 | 35.955095 | 0.804972 | 0.083533 | 0 | 0.576555 | 1 | 0 | 0.044647 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 1 | 0.028708 | false | 0.004785 | 0.098086 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33a9e48d845125b9644014be228bb6ef28ca1951 | 4,743 | py | Python | Forward_Warp/python/forward_warp_python.py | hologerry/Forward-Warp | 82a32a372383b3c69f9666cb5b8189dbfb05d328 | [
"MIT"
] | 81 | 2019-07-04T20:51:34.000Z | 2022-03-26T15:58:42.000Z | Forward_Warp/python/forward_warp_python.py | wbhu/Forward-Warp | 90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce | [
"MIT"
] | 9 | 2020-05-04T04:59:16.000Z | 2021-12-21T19:06:31.000Z | Forward_Warp/python/forward_warp_python.py | wbhu/Forward-Warp | 90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce | [
"MIT"
] | 9 | 2019-09-04T02:09:12.000Z | 2021-11-27T09:31:49.000Z | import torch
from torch.nn import Module, Parameter
from torch.autograd import Function
class Forward_Warp_Python:
@staticmethod
def forward(im0, flow, interpolation_mode):
im1 = torch.zeros_like(im0)
B = im0.shape[0]
H = im0.shape[2]
W = im0.shape[3]
if interpolation_m... | 46.5 | 81 | 0.356525 | 668 | 4,743 | 2.360778 | 0.080838 | 0.024096 | 0.036145 | 0.03551 | 0.558022 | 0.462904 | 0.426126 | 0.409639 | 0.344959 | 0.344959 | 0 | 0.044055 | 0.507063 | 4,743 | 101 | 82 | 46.960396 | 0.630453 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.030612 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33b43ed36a9638956d846bca8d46fb665ecc2a68 | 2,295 | py | Python | e/mail-relay/web/apps/localized_mail/models.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | e/mail-relay/web/apps/localized_mail/models.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | e/mail-relay/web/apps/localized_mail/models.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | #coding=utf-8
import os
from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
from apps.core.models import Customer
CHECK_RESULT = (
('', '--'),
('high_risk', u'高危邮件'),
('sender_blacklist', u'发件黑'),
('keyword_blacklist', u'内容黑'),
('subject_blackl... | 38.898305 | 119 | 0.67756 | 325 | 2,295 | 4.618462 | 0.375385 | 0.047968 | 0.077948 | 0.101932 | 0.229847 | 0.213191 | 0.187875 | 0.111925 | 0.111925 | 0.058628 | 0 | 0.009769 | 0.152505 | 2,295 | 58 | 120 | 39.568966 | 0.761954 | 0.005229 | 0 | 0.058824 | 0 | 0 | 0.138475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039216 | 0.098039 | null | null | 0.019608 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.