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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f5cec4dab4a61af2d19affa0c49d64bde5b59ea | 482 | py | Python | constants.py | Ahmed4221/CICD-Test | 27795a3a13e23905349e53bd2aa0b803c9f46e4e | [
"MIT"
] | null | null | null | constants.py | Ahmed4221/CICD-Test | 27795a3a13e23905349e53bd2aa0b803c9f46e4e | [
"MIT"
] | null | null | null | constants.py | Ahmed4221/CICD-Test | 27795a3a13e23905349e53bd2aa0b803c9f46e4e | [
"MIT"
] | 1 | 2022-03-04T09:32:45.000Z | 2022-03-04T09:32:45.000Z | DATA_URL = 'http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data'
DATA_COLUMNS = ['MPG', 'Cylinders', 'Displacement', 'Horsepower', 'Weight',
'Acceleration', 'Model Year', 'Origin']
NORMALIZE = False
TARGET_VARIABLE = 'MPG'
# FEATURES_TO_USE = [ 'Cylinders', 'Displacement', 'H... | 60.25 | 130 | 0.695021 | 54 | 482 | 6.055556 | 0.592593 | 0.042813 | 0.189602 | 0.2263 | 0.35474 | 0.35474 | 0.35474 | 0 | 0 | 0 | 0 | 0 | 0.118257 | 482 | 8 | 131 | 60.25 | 0.769412 | 0.26556 | 0 | 0 | 0 | 0.142857 | 0.495751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f6f28917806d3917821659bdd4b9e71dfeafd47 | 138 | py | Python | app/test.py | geekrohit/celery-sqs-spot | 070212fae2ebfa556f4e464f3003d7ad9db84c89 | [
"MIT"
] | 5 | 2020-09-08T08:21:16.000Z | 2021-06-07T17:34:06.000Z | app/test.py | geekrohit/celery-sqs-spot | 070212fae2ebfa556f4e464f3003d7ad9db84c89 | [
"MIT"
] | null | null | null | app/test.py | geekrohit/celery-sqs-spot | 070212fae2ebfa556f4e464f3003d7ad9db84c89 | [
"MIT"
] | null | null | null | import tasks
from time import sleep
print("add 3+5")
ret = tasks.add.delay(3,5)
print("Task ID:")
print(ret)
sleep(10)
print(ret.status)
| 13.8 | 26 | 0.710145 | 26 | 138 | 3.769231 | 0.576923 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0.123188 | 138 | 9 | 27 | 15.333333 | 0.760331 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9f768a050118653855801e9f4c10f35f7dc3c542 | 71 | py | Python | 04_datacamp/solutions/21_solutions.py | HirahTang/datascience_starter_course | a4429db9ae1795eaf52b795d16897466d769c40c | [
"CC0-1.0"
] | 3 | 2020-09-06T06:01:41.000Z | 2020-09-23T19:03:04.000Z | 02_pandas/solutions/21_solutions.py | glemaitre/smob_paristech_12_2018 | b669206f204a3e57e71efb3dd22e2ffbc4e0a309 | [
"CC0-1.0"
] | 4 | 2019-02-22T21:37:20.000Z | 2019-03-12T13:20:29.000Z | 02_pandas/solutions/21_solutions.py | glemaitre/smob_paristech_12_2018 | b669206f204a3e57e71efb3dd22e2ffbc4e0a309 | [
"CC0-1.0"
] | 5 | 2020-10-26T05:03:09.000Z | 2022-03-24T04:22:09.000Z | sns.violinplot(data=df, y='Fare', x='Survived', hue='Sex', split=True)
| 35.5 | 70 | 0.676056 | 12 | 71 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 71 | 1 | 71 | 71 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f8e2bea79a73246d327c6462021ed79c7794a9f | 902 | py | Python | fitness-backend/src/app/dao/class_descs_dao.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | fitness-backend/src/app/dao/class_descs_dao.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | fitness-backend/src/app/dao/class_descs_dao.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | from . import *
def get_all_class_descs():
return ClassDesc.query.all()
def get_class_desc_by_id(gym_class_id):
return ClassDesc.query.filter(ClassDesc.id == gym_class_id).first()
def get_class_descs_by_ids(class_desc_id_list):
result = []
for class_desc_id in class_desc_id_list:
optional_class_desc = ... | 30.066667 | 69 | 0.774945 | 140 | 902 | 4.592857 | 0.292857 | 0.22395 | 0.158631 | 0.087092 | 0.354588 | 0.143079 | 0.096423 | 0 | 0 | 0 | 0 | 0 | 0.140798 | 902 | 29 | 70 | 31.103448 | 0.829677 | 0 | 0 | 0 | 0 | 0 | 0.028825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.136364 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9f9e00ad9547e04d91c8aa1feaefeb37e32927ec | 3,729 | py | Python | Python/empire/aws/dynamodb/table_struct.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | Python/empire/aws/dynamodb/table_struct.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | Python/empire/aws/dynamodb/table_struct.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | from empire import *
from datetime import datetime
from empire.structs import *
from empire.enums.base_enum import BaseEnum
class TableStatuses(BaseEnum):
CREATING: Final[str] = 'CREATING'
UPDATING: Final[str] = 'UPDATING'
DELETING: Final[str] = 'DELETING'
ACTIVE: Final[str] = 'ACTIVE'
... | 28.906977 | 92 | 0.632609 | 412 | 3,729 | 5.378641 | 0.208738 | 0.104242 | 0.069495 | 0.0537 | 0.191787 | 0.060469 | 0.034296 | 0 | 0 | 0 | 0 | 0.000738 | 0.273532 | 3,729 | 128 | 93 | 29.132813 | 0.817276 | 0.016358 | 0 | 0.207921 | 0 | 0 | 0.023177 | 0.009893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217822 | false | 0 | 0.039604 | 0.207921 | 0.554455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9fa78b28a07f418c58ccf20283c5434fad0eec6a | 653 | py | Python | dataStructures/queue.py | evanxg852000/rockstartdev | cdcff119d35891cf69593f1e924153d29833c03f | [
"Apache-2.0"
] | 1 | 2020-08-27T22:24:47.000Z | 2020-08-27T22:24:47.000Z | dataStructures/queue.py | evanxg852000/rockstartdev | cdcff119d35891cf69593f1e924153d29833c03f | [
"Apache-2.0"
] | null | null | null | dataStructures/queue.py | evanxg852000/rockstartdev | cdcff119d35891cf69593f1e924153d29833c03f | [
"Apache-2.0"
] | null | null | null | from linkedlist import LinkedList
class Queue(object):
def __init__(self):
self._store = LinkedList()
def enqueue(self, data):
self._store.add_back(data)
def dequeue(self):
if(self._store.front() != None):
data = self._store.front().data
self._store.delete(... | 23.321429 | 51 | 0.57121 | 79 | 653 | 4.531646 | 0.341772 | 0.251397 | 0.195531 | 0.083799 | 0.134078 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310873 | 653 | 27 | 52 | 24.185185 | 0.795556 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.047619 | 0.619048 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fcedf2ab9dac9e5e1ad02c309c93250ae62f433 | 57 | py | Python | mscv/image/__init__.py | misads/mscv | 278eca0826afc4a9bed3f0b51dd148f45a024bc2 | [
"MIT"
] | 1 | 2020-09-24T12:08:53.000Z | 2020-09-24T12:08:53.000Z | mscv/image/__init__.py | misads/mscv | 278eca0826afc4a9bed3f0b51dd148f45a024bc2 | [
"MIT"
] | null | null | null | mscv/image/__init__.py | misads/mscv | 278eca0826afc4a9bed3f0b51dd148f45a024bc2 | [
"MIT"
] | null | null | null | from .image_io import tensor2im
__all__ = ['tensor2im']
| 14.25 | 31 | 0.754386 | 7 | 57 | 5.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.140351 | 57 | 3 | 32 | 19 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c7d44f6d3a5006c4d0e5f0b19c0fa33c82d9dbb | 139 | py | Python | examples/example11.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 41 | 2016-01-14T15:28:53.000Z | 2022-03-17T12:43:01.000Z | examples/example11.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 5 | 2016-01-20T09:42:30.000Z | 2016-12-22T22:54:27.000Z | examples/example11.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 3 | 2016-01-20T09:40:28.000Z | 2020-10-29T09:33:48.000Z | #!/usr/bin/env pyrate
executable('example11.bin', 'test.cpp test.c foo.cpp', link_mode = 'direct') # automatic switching to 'single' mode
| 34.75 | 115 | 0.719424 | 21 | 139 | 4.714286 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.115108 | 139 | 3 | 116 | 46.333333 | 0.788618 | 0.410072 | 0 | 0 | 0 | 0 | 0.525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c90649bb27117d5ca636f74bdc1cdadc161baa8 | 827 | py | Python | src/std/coppertop/std/_stats/core.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | src/std/coppertop/std/_stats/core.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | src/std/coppertop/std/_stats/core.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | # *******************************************************************************
#
# Copyright (c) 2021 David Briant. All rights reserved.
#
# *******************************************************************************
import math, numpy
from coppertop.pipe import *
from coppertop.std.linalg import tvarray
... | 23.628571 | 96 | 0.532044 | 102 | 827 | 4.313725 | 0.45098 | 0.136364 | 0.086364 | 0.077273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.162031 | 827 | 34 | 97 | 24.323529 | 0.619048 | 0.397823 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.166667 | 0.277778 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c9640eb2b1b6e4094768014382eeea71eecb59b | 280 | py | Python | refinery/bnpy/bnpy-dev/bnpy/init/__init__.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 103 | 2015-01-13T00:48:14.000Z | 2021-11-08T10:53:22.000Z | refinery/bnpy/bnpy-dev/bnpy/init/__init__.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 7 | 2015-02-21T04:03:40.000Z | 2021-08-23T20:24:54.000Z | refinery/bnpy/bnpy-dev/bnpy/init/__init__.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 27 | 2015-01-23T00:54:31.000Z | 2020-12-30T14:30:50.000Z | """
The :mod:`init` module gathers initialization procedures for model parameters
"""
import FromScratchGauss, FromScratchMult
import FromScratchBernRel
import FromSaved, FromTruth
__all__ = ['FromScratchGauss', 'FromSaved', 'FromTruth', 'FromScratchMult', 'FromScratchBernRel']
| 31.111111 | 97 | 0.8 | 24 | 280 | 9.166667 | 0.708333 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096429 | 280 | 8 | 98 | 35 | 0.869565 | 0.275 | 0 | 0 | 0 | 0 | 0.34359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4cabaaaa71bc8c7b1d2d71567920e2e8c642ab49 | 1,830 | py | Python | pages/home_page.py | aelnahas/automation-quandl | eadc773e45f2b3427fe8f865e517565a924a1d2c | [
"MIT"
] | null | null | null | pages/home_page.py | aelnahas/automation-quandl | eadc773e45f2b3427fe8f865e517565a924a1d2c | [
"MIT"
] | null | null | null | pages/home_page.py | aelnahas/automation-quandl | eadc773e45f2b3427fe8f865e517565a924a1d2c | [
"MIT"
] | null | null | null | from common.page_object import PageObject, PageNotLoaded
from pages.footer import Footer
from pages.locators import HomePageLocators
from pages.signin_page import SigninPage
from pages.top_bar import TopBarNav
class HomePage(PageObject):
""" Quandl's page object """
def is_loaded(self):
"""A Top Bar ... | 33.888889 | 85 | 0.659563 | 252 | 1,830 | 4.630952 | 0.27381 | 0.066838 | 0.041131 | 0.018852 | 0.114824 | 0.044559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260109 | 1,830 | 54 | 86 | 33.888889 | 0.861891 | 0.278689 | 0 | 0.129032 | 0 | 0 | 0.043235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.064516 | 0.16129 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4cba1f3c98ff9560aaa7ff49cb694eea97faa57d | 254 | py | Python | database/admin.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | null | null | null | database/admin.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | 10 | 2020-06-05T16:38:25.000Z | 2022-03-11T23:12:12.000Z | database/admin.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from database.models import Product, Input
class ProductAdmin(admin.ModelAdmin):
pass
class InputAdmin(admin.ModelAdmin):
pass
admin.site.register(Product, ProductAdmin)
admin.site.register(Input, InputAdmin)
| 19.538462 | 42 | 0.795276 | 31 | 254 | 6.516129 | 0.516129 | 0.168317 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 254 | 12 | 43 | 21.166667 | 0.90583 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4cc7b47fddb2bf60f6ef6c75cc67991feccb2f77 | 17,397 | py | Python | trelloengine/structures/card.py | MrFizban/TrelloEngine | 6843118585527487b0545ab204812b117e184f99 | [
"MIT"
] | null | null | null | trelloengine/structures/card.py | MrFizban/TrelloEngine | 6843118585527487b0545ab204812b117e184f99 | [
"MIT"
] | null | null | null | trelloengine/structures/card.py | MrFizban/TrelloEngine | 6843118585527487b0545ab204812b117e184f99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .base import Base
class Card(Base):
def __init__(self, app_key: str, token: str, id=None, use_log = False):
super(Card, self).__init__(app_key=app_key, token=token, id=id, use_log = use_log)
self.base_url = self.base_url + "/cards"
def create_card(self, id_list: s... | 33.327586 | 153 | 0.562856 | 2,096 | 17,397 | 4.479485 | 0.068702 | 0.033656 | 0.043668 | 0.063905 | 0.755459 | 0.720844 | 0.70753 | 0.686442 | 0.674619 | 0.643626 | 0 | 0.000248 | 0.304305 | 17,397 | 521 | 154 | 33.391555 | 0.77551 | 0.002184 | 0 | 0.576623 | 0 | 0 | 0.086368 | 0.001786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106494 | false | 0 | 0.002597 | 0 | 0.215584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cf6a6448c22497b68f30ccca1cfc8f0bdf1dcf9 | 229 | py | Python | vectorflow/__init__.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | vectorflow/__init__.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | vectorflow/__init__.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import core
from . import layer
from . import loss
from . import metric
from . import operator
from . import optimizer
from . import saver
from . import trainer
default_graph = core.default_graph
| 17.615385 | 34 | 0.733624 | 32 | 229 | 5.1875 | 0.46875 | 0.481928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.183406 | 229 | 12 | 35 | 19.083333 | 0.882353 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
e219e487320bf7761d971de54070a549be7082b6 | 312 | py | Python | package/PartSegCore/interpolation/setup.py | monotropauniflora/PartSeg | 68ccf8df4162174056028cbb677ab729e4c31994 | [
"BSD-3-Clause"
] | null | null | null | package/PartSegCore/interpolation/setup.py | monotropauniflora/PartSeg | 68ccf8df4162174056028cbb677ab729e4c31994 | [
"BSD-3-Clause"
] | null | null | null | package/PartSegCore/interpolation/setup.py | monotropauniflora/PartSeg | 68ccf8df4162174056028cbb677ab729e4c31994 | [
"BSD-3-Clause"
] | null | null | null | from distutils.core import setup
from distutils.extension import Extension
import numpy as np
from Cython.Build import cythonize
extensions = [Extension("bilinear_interpolation", ["bilinear_interpolation.pyx"], include_dirs=[np.get_include()])]
setup(ext_modules=cythonize(extensions), name="coloring image")
| 31.2 | 115 | 0.810897 | 39 | 312 | 6.358974 | 0.615385 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 312 | 9 | 116 | 34.666667 | 0.870175 | 0 | 0 | 0 | 0 | 0 | 0.198718 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e235ed612254f29f94af1052a76f3a6440419430 | 21,048 | py | Python | exercises_generation.py | Valadis-Mastoras/SemiGramEx | 420b6997fee0a438fb2ffd059aac5c7f430735e4 | [
"MIT",
"Unlicense"
] | 1 | 2021-06-15T19:00:42.000Z | 2021-06-15T19:00:42.000Z | exercises_generation.py | Valadis-Mastoras/SemiGramEx | 420b6997fee0a438fb2ffd059aac5c7f430735e4 | [
"MIT",
"Unlicense"
] | null | null | null | exercises_generation.py | Valadis-Mastoras/SemiGramEx | 420b6997fee0a438fb2ffd059aac5c7f430735e4 | [
"MIT",
"Unlicense"
] | null | null | null | import pandas as pd
import random
import spacy
from sentences_retrieval import retrieve_verb_tense
from exercise_types_creation import generate_grammar_mistake, generate_multiple_choice, generate_fib_verb
from helper_functions import PDF, extra_preprocessing, profanity_check
# Generate mistakes for the Find-... | 50.84058 | 195 | 0.662818 | 2,636 | 21,048 | 5.014416 | 0.098255 | 0.034725 | 0.042215 | 0.060977 | 0.738387 | 0.688455 | 0.658496 | 0.646467 | 0.642155 | 0.625057 | 0 | 0.019964 | 0.231328 | 21,048 | 414 | 196 | 50.84058 | 0.796959 | 0.072596 | 0 | 0.527027 | 1 | 0.006757 | 0.17128 | 0.033973 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02027 | null | null | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e25654d83e981788e112a0f23857331f87474061 | 124 | py | Python | convert.py | Brandiep/Web-Design-Challenge | df61d8193210fc8bc024352c696015ca3de8f50d | [
"ADSL"
] | null | null | null | convert.py | Brandiep/Web-Design-Challenge | df61d8193210fc8bc024352c696015ca3de8f50d | [
"ADSL"
] | null | null | null | convert.py | Brandiep/Web-Design-Challenge | df61d8193210fc8bc024352c696015ca3de8f50d | [
"ADSL"
] | null | null | null | import pandas as pd
cities_df = pd.read_csv("Resources/cities.csv")
cities_df.to_html('Resources/cities.html', index=False) | 31 | 55 | 0.790323 | 21 | 124 | 4.47619 | 0.619048 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 124 | 4 | 55 | 31 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0.328 | 0.168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e2589168c3cd0030c9824eb5481edea554b5578f | 230 | py | Python | topCoder/srms/300s/srm373/div2/the_equation.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/300s/srm373/div2/the_equation.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/300s/srm373/div2/the_equation.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | class TheEquation:
def leastSum(self, X, Y, P):
m = 2*P
for i in xrange(1, P+1):
for j in xrange(1, P+1):
if (X*i + Y*j)%P == 0:
m = min(m, i+j)
return m
| 25.555556 | 38 | 0.386957 | 39 | 230 | 2.282051 | 0.512821 | 0.179775 | 0.202247 | 0.224719 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.469565 | 230 | 8 | 39 | 28.75 | 0.680328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e25985ac8f247be818f4c40150031c5e82a0919c | 137 | py | Python | Leetcode/125. Valid Palindrome/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/125. Valid Palindrome/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/125. Valid Palindrome/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | class Solution:
def isPalindrome(self, s: str) -> bool:
s = re.sub('[^a-zA-Z0-9]', '', s).lower()
return s == s[::-1] | 34.25 | 49 | 0.489051 | 21 | 137 | 3.190476 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.262774 | 137 | 4 | 50 | 34.25 | 0.633663 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e27cc6fe44a0e7be11a774fd66ffa3af54a23d07 | 347 | py | Python | passgen/forms.py | diyajaiswal11/HackCorona | dc6f7803a77b7ce6325f8d61f5f4fe54076ea461 | [
"MIT"
] | 7 | 2020-04-06T13:00:14.000Z | 2021-08-07T04:26:53.000Z | passgen/forms.py | diyajaiswal11/HackCorona | dc6f7803a77b7ce6325f8d61f5f4fe54076ea461 | [
"MIT"
] | 10 | 2020-04-07T07:07:44.000Z | 2022-03-12T00:22:47.000Z | passgen/forms.py | diyajaiswal11/HackCorona | dc6f7803a77b7ce6325f8d61f5f4fe54076ea461 | [
"MIT"
] | 2 | 2020-04-03T08:36:34.000Z | 2021-07-27T19:22:15.000Z |
from django import forms
from django.forms import ModelForm
from .models import PassModel
class PassForm(ModelForm):
class Meta:
model= PassModel
fields='__all__'
exclude=['issuedate','uniquenumber','checked']
class DownloadForm(ModelForm):
class Meta:
model=PassModel
... | 23.133333 | 54 | 0.691643 | 35 | 347 | 6.742857 | 0.542857 | 0.084746 | 0.152542 | 0.194915 | 0.322034 | 0.322034 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21902 | 347 | 15 | 55 | 23.133333 | 0.870849 | 0 | 0 | 0.333333 | 0 | 0 | 0.146974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.25 | 0 | 0.583333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e2999feeabb824388657f24a637ec59031b5e2ee | 94 | py | Python | example_project/development.py | EnvSys/django-moderation | afa80926354bdc263d6d9214eb983000334d77e2 | [
"BSD-3-Clause"
] | 97 | 2015-03-21T02:18:39.000Z | 2022-02-22T01:30:19.000Z | example_project/development.py | EnvSys/django-moderation | afa80926354bdc263d6d9214eb983000334d77e2 | [
"BSD-3-Clause"
] | 85 | 2015-05-05T05:22:23.000Z | 2022-03-28T10:32:00.000Z | example_project/development.py | EnvSys/django-moderation | afa80926354bdc263d6d9214eb983000334d77e2 | [
"BSD-3-Clause"
] | 70 | 2015-04-13T07:29:32.000Z | 2022-03-24T10:54:58.000Z | from example_project.settings import *
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
| 18.8 | 40 | 0.734043 | 12 | 94 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.117021 | 94 | 4 | 41 | 23.5 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2c3dcc8703bb55147f3fa4edbcd35e8632072f0f | 547 | py | Python | tools/leetcode.147.Insertion Sort List/leetcode.147.Insertion Sort List.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.147.Insertion Sort List/leetcode.147.Insertion Sort List.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.147.Insertion Sort List/leetcode.147.Insertion Sort List.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def insertionSortList(self, head):
if not head:
return head
l = []
temp = h... | 547 | 547 | 0.497258 | 71 | 547 | 3.774648 | 0.478873 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.382084 | 547 | 1 | 547 | 547 | 0.781065 | 0.985375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c5fb0ac8fc9611c6c1a37427d9bfbd72cc9833e | 586 | py | Python | zeropassweb/passes/forms.py | andreatulimiero/netsec-hs18 | 3892da50c45f6c9600f7675c9b1b9669f76492ae | [
"MIT"
] | null | null | null | zeropassweb/passes/forms.py | andreatulimiero/netsec-hs18 | 3892da50c45f6c9600f7675c9b1b9669f76492ae | [
"MIT"
] | null | null | null | zeropassweb/passes/forms.py | andreatulimiero/netsec-hs18 | 3892da50c45f6c9600f7675c9b1b9669f76492ae | [
"MIT"
] | null | null | null | from django import forms
class UsernamePasswordForm(forms.Form):
username = forms.CharField(label='Username')
password = forms.CharField(label='Password', widget=forms.PasswordInput())
class TransactionForm(forms.Form):
from_user = forms.CharField(label='Sending user')
from_user_pwd = forms.CharField(... | 34.470588 | 78 | 0.755973 | 70 | 586 | 6.271429 | 0.414286 | 0.159453 | 0.216401 | 0.100228 | 0.164009 | 0.164009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131399 | 586 | 16 | 79 | 36.625 | 0.862475 | 0 | 0 | 0 | 0 | 0 | 0.202055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2c8b89d30fc25081cf2f278a034eef942572bc91 | 17 | py | Python | tests/pools/config.py | bolshoytoster/chia-blockchain | 1086fb255601de931dc771caa7327f4df5c87ace | [
"Apache-2.0"
] | 6 | 2021-09-13T17:20:49.000Z | 2022-02-09T04:31:47.000Z | tests/pools/config.py | jacobdmn/chia-blockchain | 29fad42e0c42654ec123e414966b1aa29789f384 | [
"Apache-2.0"
] | 21 | 2021-09-20T00:56:54.000Z | 2022-03-22T01:12:12.000Z | tests/pools/config.py | jacobdmn/chia-blockchain | 29fad42e0c42654ec123e414966b1aa29789f384 | [
"Apache-2.0"
] | 9 | 2021-09-13T17:54:04.000Z | 2022-03-15T08:38:35.000Z | job_timeout = 45
| 8.5 | 16 | 0.764706 | 3 | 17 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.176471 | 17 | 1 | 17 | 17 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c98456d30f5b46db435fa071b8c455399af76a6 | 686 | py | Python | diversos/dicionario.py | lcarlin/guppe | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | [
"Apache-2.0"
] | 1 | 2021-12-18T15:29:24.000Z | 2021-12-18T15:29:24.000Z | diversos/dicionario.py | lcarlin/guppe | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | [
"Apache-2.0"
] | null | null | null | diversos/dicionario.py | lcarlin/guppe | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | [
"Apache-2.0"
] | 3 | 2021-08-23T22:45:20.000Z | 2022-02-17T13:17:09.000Z | dicionario_sites = {"Diego": "diegomariano.com"}
print(dicionario_sites['Diego'])
dicionario_sites = {"Diego": "diegomariano.com", "Google": "google.com", "Udemy": "udemy.com", "Luiz Carlin" : "luizcarlin.com.br"}
print ("-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=")
for chave in dicionario_sites:
print (chave + " -... | 32.666667 | 131 | 0.514577 | 67 | 686 | 5.134328 | 0.283582 | 0.392442 | 0.197674 | 0.09593 | 0.465116 | 0.261628 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0.112245 | 686 | 21 | 132 | 32.666667 | 0.56486 | 0 | 0 | 0.4375 | 0 | 0 | 0.393013 | 0.232897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2c9ff33cb9ab974797f39885832876dd26c185fb | 2,520 | py | Python | unit_tests/tests_viewer_wrappers.py | inpho/vsm | d5fc930ccc95f275e10e151c8f05db2c05aba01f | [
"MIT"
] | 31 | 2015-01-30T20:09:48.000Z | 2021-08-13T12:57:49.000Z | unit_tests/tests_viewer_wrappers.py | inpho/vsm | d5fc930ccc95f275e10e151c8f05db2c05aba01f | [
"MIT"
] | 80 | 2015-01-30T19:08:40.000Z | 2019-11-02T20:15:56.000Z | unit_tests/tests_viewer_wrappers.py | inpho/vsm | d5fc930ccc95f275e10e151c8f05db2c05aba01f | [
"MIT"
] | 10 | 2015-09-18T01:52:23.000Z | 2019-07-14T08:22:06.000Z | import unittest2 as unittest
import numpy as np
from vsm.viewer.wrappers import *
from vsm.viewer.labeleddata import *
class TestViewerWrappers(unittest.TestCase):
# TODO: Rewrite these to be independent of LDA
pass
# def setUp(self):
# from vsm.corpus.util.corpusbuilders import random_corpu... | 36 | 80 | 0.62381 | 335 | 2,520 | 4.552239 | 0.256716 | 0.059016 | 0.161967 | 0.065574 | 0.210492 | 0.210492 | 0.199344 | 0.199344 | 0.16918 | 0.16918 | 0 | 0.018163 | 0.235317 | 2,520 | 69 | 81 | 36.521739 | 0.773223 | 0.769048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0 | false | 0.125 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
2cae49aa0a44a09528bd66033abea93d35437fa3 | 504 | py | Python | sundial2.py | WillBickerstaff/sundial | fe71387b48b7f742c4fd05fa9cabc145a06309f3 | [
"MIT"
] | 1 | 2018-02-28T19:22:16.000Z | 2018-02-28T19:22:16.000Z | sundial2.py | WillBickerstaff/sundial | fe71387b48b7f742c4fd05fa9cabc145a06309f3 | [
"MIT"
] | null | null | null | sundial2.py | WillBickerstaff/sundial | fe71387b48b7f742c4fd05fa9cabc145a06309f3 | [
"MIT"
] | null | null | null | import sys, itertools, textwrap, os
ltrs, minlen, wd = (sys.argv[1].lower(), int(sys.argv[2]), set())
dictwords = set(l.lower().strip() for l in open('/usr/share/dict/words') if l.strip() >= minlen and ltrs[0] in l.lower() and "'" not in l)
for i in range(minlen, len(ltrs) + 1): wd = wd | set(dictwords & set(''.join(l)... | 84 | 139 | 0.640873 | 94 | 504 | 3.43617 | 0.478723 | 0.037152 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011468 | 0.134921 | 504 | 5 | 140 | 100.8 | 0.729358 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2bf0969e67d27734fa01253a91f5e4e046a35eb | 658 | py | Python | apps/landfill/tests/test_ratings.py | muffinresearch/addons-server | 66613e9262a5e9475254091552de28a53b5b4072 | [
"BSD-3-Clause"
] | 1 | 2015-10-29T06:55:20.000Z | 2015-10-29T06:55:20.000Z | apps/landfill/tests/test_ratings.py | magopian/olympia | 70cad15111a89e3d5c715cbade8925b12d1b98dc | [
"BSD-3-Clause"
] | 5 | 2021-02-02T23:09:35.000Z | 2021-09-08T02:47:20.000Z | apps/landfill/tests/test_ratings.py | Acidburn0zzz/olympia | 7f766a5fdff255b827333d4fb01aa77546ed8c70 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from nose.tools import eq_
import amo
import amo.tests
from addons.models import Addon, Review
from landfill.ratings import generate_ratings
class RatingsTests(amo.tests.TestCase):
def setUp(self):
super(RatingsTests, self).setUp()
self.addon = Addon.objects.create(type=a... | 29.909091 | 71 | 0.694529 | 89 | 658 | 5.022472 | 0.47191 | 0.116331 | 0.060403 | 0.107383 | 0.089485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009191 | 0.173252 | 658 | 21 | 72 | 31.333333 | 0.8125 | 0.031915 | 0 | 0 | 1 | 0 | 0.053543 | 0.033071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e2d26b8259e1e81bdbe580366ba27a84506d83d5 | 660 | py | Python | ui/pypesvds/controllers/index.py | onfire73/pypeskg | 2171d0141e184999ba03c3e535ecc9bfddef10be | [
"Apache-2.0"
] | 117 | 2015-02-28T15:38:11.000Z | 2022-02-12T16:08:41.000Z | ui/pypesvds/controllers/index.py | onfire73/pypeskg | 2171d0141e184999ba03c3e535ecc9bfddef10be | [
"Apache-2.0"
] | 1 | 2015-10-07T19:59:52.000Z | 2015-10-07T19:59:52.000Z | ui/pypesvds/controllers/index.py | onfire73/pypeskg | 2171d0141e184999ba03c3e535ecc9bfddef10be | [
"Apache-2.0"
] | 41 | 2015-06-11T09:32:14.000Z | 2018-09-17T03:10:23.000Z | import logging
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort
# added for auth
from authkit.authorize.pylons_adaptors import authorize
from authkit.permissions import RemoteUser, ValidAuthKitUser, UserIn
from pypesvds.lib.base import BaseController, render
... | 27.5 | 68 | 0.739394 | 77 | 660 | 6.25974 | 0.597403 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178788 | 660 | 23 | 69 | 28.695652 | 0.889299 | 0.137879 | 0 | 0 | 0 | 0 | 0.046099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.461538 | 0.153846 | 0.846154 | 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 | 1 | 1 | 0 | 0 | 3 |
391c32283ee346df663ae8c4795bcab34662b1ee | 374 | py | Python | tests/integration/conftest.py | tonybaloney/django-xss-fuzzer | 3690e74562ac1136cdaf800940671b12c4b84386 | [
"Apache-2.0"
] | 32 | 2020-07-16T06:21:10.000Z | 2022-03-31T17:05:57.000Z | tests/integration/conftest.py | tonybaloney/django-xss-fuzzer | 3690e74562ac1136cdaf800940671b12c4b84386 | [
"Apache-2.0"
] | null | null | null | tests/integration/conftest.py | tonybaloney/django-xss-fuzzer | 3690e74562ac1136cdaf800940671b12c4b84386 | [
"Apache-2.0"
] | 2 | 2020-07-29T02:57:53.000Z | 2020-08-18T03:49:27.000Z | import pytest
@pytest.fixture(scope='session')
def session_capabilities(session_capabilities):
session_capabilities['loggingPrefs'] = {'browser': 'ALL'}
session_capabilities['goog:loggingPrefs'] = {'browser': 'ALL'}
return session_capabilities
@pytest.fixture
def chrome_options(chrome_options):
chr... | 23.375 | 66 | 0.759358 | 39 | 374 | 7.051282 | 0.410256 | 0.345455 | 0.189091 | 0.276364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128342 | 374 | 15 | 67 | 24.933333 | 0.843558 | 0 | 0 | 0 | 0 | 0 | 0.149733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39454a998a1d876a7f2b8bf1eece308fed813481 | 291 | py | Python | typic/constraints/error.py | ducminhgd/typical | 24157060fe463b0a5b110885e69544995c576ccc | [
"MIT"
] | null | null | null | typic/constraints/error.py | ducminhgd/typical | 24157060fe463b0a5b110885e69544995c576ccc | [
"MIT"
] | null | null | null | typic/constraints/error.py | ducminhgd/typical | 24157060fe463b0a5b110885e69544995c576ccc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
class ConstraintSyntaxError(SyntaxError):
"""A generic error indicating an improperly defined constraint."""
pass
class ConstraintValueError(ValueError):
"""A generic error indicating a value violates a constraint."""
pass
| 19.4 | 70 | 0.704467 | 32 | 291 | 6.40625 | 0.71875 | 0.078049 | 0.126829 | 0.22439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.178694 | 291 | 14 | 71 | 20.785714 | 0.853556 | 0.553265 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
39526d2a10e86ab0a92d08e6f7e23d2244b6c54d | 224 | py | Python | python/2936.py | josevictorp81/Uri-questions-solutions | 99e9bacb088ce59f58fb05531bb02f2fcffe26eb | [
"MIT"
] | 3 | 2019-09-24T00:15:47.000Z | 2019-09-25T02:52:27.000Z | python/2936.py | josevictorp81/Uri-questions-solutions | 99e9bacb088ce59f58fb05531bb02f2fcffe26eb | [
"MIT"
] | 1 | 2021-03-16T00:16:11.000Z | 2021-03-16T00:16:11.000Z | python/2936.py | josevictorp81/Uri-questions-solutions | 99e9bacb088ce59f58fb05531bb02f2fcffe26eb | [
"MIT"
] | 4 | 2019-10-19T12:56:03.000Z | 2019-10-23T23:24:06.000Z | curupira = int(input())
boitata = int(input())
boto = int(input())
mapinguari = int(input())
lara = int(input())
total = 225 + (curupira * 300) + (boitata *1500) + (boto * 600) + (mapinguari * 1000)+(lara*150)
print(total) | 24.888889 | 96 | 0.629464 | 29 | 224 | 4.862069 | 0.517241 | 0.283688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10582 | 0.15625 | 224 | 9 | 97 | 24.888889 | 0.640212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39533cde2ee14185ba3f5db7a44cec1f25bd7937 | 401 | py | Python | pytest/models/aws_cloud/volume_resource.py | Annapooraniqxf2/codacy | baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5 | [
"MIT"
] | null | null | null | pytest/models/aws_cloud/volume_resource.py | Annapooraniqxf2/codacy | baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5 | [
"MIT"
] | null | null | null | pytest/models/aws_cloud/volume_resource.py | Annapooraniqxf2/codacy | baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5 | [
"MIT"
] | null | null | null | """
This python file helps to read the ec2 volume information from AWS using boto3
"""
import boto3
from abc import ABC, abstractmethod
class VolumeResource(ABC):
"""This class is used to fetch details of ec2 instance using boto3"""
def __init__(self) -> None:
self.ec2_volume_service = boto3.resour... | 21.105263 | 78 | 0.685786 | 53 | 401 | 5.037736 | 0.622642 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026059 | 0.234414 | 401 | 19 | 79 | 21.105263 | 0.843648 | 0.354115 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3953c10051358359ac28b7451c229bb908d29c68 | 646 | py | Python | pythonproject/engine/display.py | emielhman/py-engine | 4de4f0fbdeb76f10e58e8ff392ab5488fec15a50 | [
"MIT"
] | null | null | null | pythonproject/engine/display.py | emielhman/py-engine | 4de4f0fbdeb76f10e58e8ff392ab5488fec15a50 | [
"MIT"
] | null | null | null | pythonproject/engine/display.py | emielhman/py-engine | 4de4f0fbdeb76f10e58e8ff392ab5488fec15a50 | [
"MIT"
] | null | null | null | import sys, pygame
class Display:
def __init__(self, game):
"""Display(game)"""
self._game = game
self._screen = None
def _init(self):
"""_init()"""
self._screen = pygame.display.set_mode(self._game.settings.get_screen_size(), self._game.settings.get_screen_f... | 30.761905 | 131 | 0.606811 | 76 | 646 | 4.710526 | 0.263158 | 0.134078 | 0.178771 | 0.212291 | 0.497207 | 0.497207 | 0.497207 | 0.497207 | 0.497207 | 0.497207 | 0 | 0 | 0.25387 | 646 | 20 | 132 | 32.3 | 0.742739 | 0.078947 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1a4ba5694cc017f58f30cbd809e4bda8d618daf2 | 306 | py | Python | src/schmetterling/log/log.py | bjuvensjo/schmetterling | 0cdbfe4f379a081d9d4711dd21866b90983365cf | [
"Apache-2.0"
] | null | null | null | src/schmetterling/log/log.py | bjuvensjo/schmetterling | 0cdbfe4f379a081d9d4711dd21866b90983365cf | [
"Apache-2.0"
] | null | null | null | src/schmetterling/log/log.py | bjuvensjo/schmetterling | 0cdbfe4f379a081d9d4711dd21866b90983365cf | [
"Apache-2.0"
] | null | null | null | from schmetterling.core.log import log_config, log_params_return
from schmetterling.log.state import LogState
@log_params_return('info')
def execute(state, log_dir, name, level):
log_handlers = log_config(log_dir, name, level)
return LogState(__name__, log_handlers['file_handler'].baseFilename)
| 34 | 72 | 0.797386 | 43 | 306 | 5.325581 | 0.465116 | 0.148472 | 0.104803 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 306 | 8 | 73 | 38.25 | 0.838828 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1a4cf179953a44432def4819e4265ca455404390 | 148 | py | Python | src/training/tensorflow/convert_tfjs.py | klawr/deepmech | 61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff | [
"MIT"
] | 1 | 2020-04-17T12:27:06.000Z | 2020-04-17T12:27:06.000Z | src/training/tensorflow/convert_tfjs.py | klawr/deepmech | 61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff | [
"MIT"
] | 1 | 2022-02-27T13:13:17.000Z | 2022-02-27T13:13:17.000Z | src/training/tensorflow/convert_tfjs.py | klawr/deepmech | 61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff | [
"MIT"
] | null | null | null | import tensorflowjs as tfjs
import tensorflow as tf
model = tf.keras.models.load_model("model.h5")
tfjs.converters.save_keras_model(model, "tfjs")
| 24.666667 | 47 | 0.797297 | 23 | 148 | 5 | 0.565217 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.094595 | 148 | 5 | 48 | 29.6 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1a591276b25283c3070b793dfc83cd4429f72915 | 43 | py | Python | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingOptional/lib.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingOptional/lib.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingOptional/lib.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | if True:
foo = 42
else:
foo = None
| 8.6 | 14 | 0.511628 | 7 | 43 | 3.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.395349 | 43 | 4 | 15 | 10.75 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a61b37cf2f3a92bcffbb3fe925e69a891c612d2 | 30 | py | Python | config.py | dgg32/graphql_genbank | fa8c8bc8949b48692e29c4e14869765d56545408 | [
"MIT"
] | null | null | null | config.py | dgg32/graphql_genbank | fa8c8bc8949b48692e29c4e14869765d56545408 | [
"MIT"
] | null | null | null | config.py | dgg32/graphql_genbank | fa8c8bc8949b48692e29c4e14869765d56545408 | [
"MIT"
] | null | null | null | api_key = ""
endpoint_url = "" | 15 | 17 | 0.633333 | 4 | 30 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 30 | 2 | 17 | 15 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a6c4e47223fbc6d6ef008b62c6e9707841d12f7 | 87 | py | Python | app/answer/apps.py | Ravishrks/examin | 974f8d86ca116b3135a482e8e81532a40ea187c3 | [
"MIT"
] | 1 | 2021-01-24T18:22:55.000Z | 2021-01-24T18:22:55.000Z | app/answer/apps.py | Ravishrks/examin | 974f8d86ca116b3135a482e8e81532a40ea187c3 | [
"MIT"
] | 16 | 2021-01-24T18:58:46.000Z | 2021-05-01T11:02:46.000Z | app/answer/apps.py | Ravishrks/examin | 974f8d86ca116b3135a482e8e81532a40ea187c3 | [
"MIT"
] | 8 | 2021-01-19T18:56:56.000Z | 2021-02-01T11:36:33.000Z | from django.apps import AppConfig
class AnswerConfig(AppConfig):
name = 'answer'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1a7db46297243a3280399b97711a431079ad2bc2 | 105 | py | Python | python/treelas/idx.py | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | 3 | 2020-06-18T13:31:26.000Z | 2021-04-05T17:42:56.000Z | python/treelas/idx.py | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | null | null | null | python/treelas/idx.py | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | null | null | null | from graphidx.idx import ( # noqa
BiAdjacent,
ChildrenIndex,
PartitionIndex,
cluster,
)
| 15 | 34 | 0.657143 | 9 | 105 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 105 | 6 | 35 | 17.5 | 0.896104 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a8f94080954e71ff8f8aef4d2051a667e0e9f39 | 113 | py | Python | tests/test_data/test_datasets/__init__.py | rlleshi/mmaction2 | 6993693f178b1a59e5eb07f1a3db484d5e5de61a | [
"Apache-2.0"
] | 1,870 | 2020-07-11T09:33:46.000Z | 2022-03-31T13:21:36.000Z | tests/test_data/test_datasets/__init__.py | rlleshi/mmaction2 | 6993693f178b1a59e5eb07f1a3db484d5e5de61a | [
"Apache-2.0"
] | 1,285 | 2020-07-11T11:18:57.000Z | 2022-03-31T08:41:17.000Z | tests/test_data/test_datasets/__init__.py | rlleshi/mmaction2 | 6993693f178b1a59e5eb07f1a3db484d5e5de61a | [
"Apache-2.0"
] | 557 | 2020-07-11T09:51:57.000Z | 2022-03-31T13:21:35.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from .base import BaseTestDataset
__all__ = ['BaseTestDataset']
| 22.6 | 47 | 0.769912 | 12 | 113 | 6.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 113 | 4 | 48 | 28.25 | 0.846939 | 0.39823 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1aaffaec560ca782a916d11717b21ee259b0cc46 | 334 | py | Python | tibber_aws/__init__.py | tibber/tibber-pyAws | abc9960e5050fc3640dff3828c5bb6e302c2b05e | [
"MIT"
] | null | null | null | tibber_aws/__init__.py | tibber/tibber-pyAws | abc9960e5050fc3640dff3828c5bb6e302c2b05e | [
"MIT"
] | 5 | 2020-12-04T12:48:30.000Z | 2021-12-16T13:24:20.000Z | tibber_aws/__init__.py | tibber/tibber-pyAws | abc9960e5050fc3640dff3828c5bb6e302c2b05e | [
"MIT"
] | 1 | 2021-06-08T12:52:20.000Z | 2021-06-08T12:52:20.000Z | # flake8: noqa
from .aws_base import get_aiosession
from .aws_lambda import invoke as lambda_invoke
from .aws_queue import Queue
from .aws_metadata import get_instance_id
from .s3 import STATE_NOT_EXISTING, STATE_OK, STATE_PRECONDITION_FAILED, S3Bucket
from .secret_manager import get_secret, get_secret_parser
from .sns... | 37.111111 | 81 | 0.850299 | 53 | 334 | 5.037736 | 0.528302 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.110778 | 334 | 8 | 82 | 41.75 | 0.888889 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1abb6271dabc1845e37e66f77612fa88a50278bf | 294 | py | Python | activeusers/urls.py | Yuego/django-activeusers | cdaf05a2a82f6ecf639e6febe4bed5f82a9bb33f | [
"MIT"
] | null | null | null | activeusers/urls.py | Yuego/django-activeusers | cdaf05a2a82f6ecf639e6febe4bed5f82a9bb33f | [
"MIT"
] | null | null | null | activeusers/urls.py | Yuego/django-activeusers | cdaf05a2a82f6ecf639e6febe4bed5f82a9bb33f | [
"MIT"
] | null | null | null | from django.conf.urls import url
from activeusers import views
app_name = 'activeusers'
urlpatterns = [
url(r'^refresh/$', views.update_active_users, name='activeusers-refresh-active-users', ),
url(r'^refresh/json/$', views.get_active_users, name='activeusers-get-active-users', ),
]
| 29.4 | 93 | 0.734694 | 39 | 294 | 5.410256 | 0.461538 | 0.208531 | 0.104265 | 0.246446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 294 | 9 | 94 | 32.666667 | 0.808429 | 0 | 0 | 0 | 0 | 0 | 0.326531 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1acdba2e41af7b0a2da357923a6a81737c7017dc | 220 | py | Python | plot_compo.py | AHinterding/etf-loader | 22b9e996d04ecee218fc01903f5fd32bb702ec58 | [
"MIT"
] | null | null | null | plot_compo.py | AHinterding/etf-loader | 22b9e996d04ecee218fc01903f5fd32bb702ec58 | [
"MIT"
] | null | null | null | plot_compo.py | AHinterding/etf-loader | 22b9e996d04ecee218fc01903f5fd32bb702ec58 | [
"MIT"
] | 2 | 2021-02-22T08:24:39.000Z | 2021-03-30T20:47:49.000Z | import datetime as dt
from etf_mapper import CompoMapper
if __name__ == '__main__':
mapper = CompoMapper()
plot_date = dt.date.today() # Download data first before running!
mapper.plot(plot_date, 'WOOD')
| 22 | 70 | 0.713636 | 29 | 220 | 5.034483 | 0.689655 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190909 | 220 | 9 | 71 | 24.444444 | 0.820225 | 0.159091 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46c04b4dc9ca5ef0a0167d73dfb9dab0e291a4df | 19,072 | py | Python | moonlight/score/reader_test.py | lithomas1/moonlight | cd22d6f47bbcf043a0027e91d342ae25dfc8a30a | [
"Apache-2.0"
] | 288 | 2018-04-17T17:05:46.000Z | 2022-03-31T13:02:56.000Z | moonlight/score/reader_test.py | lithomas1/moonlight | cd22d6f47bbcf043a0027e91d342ae25dfc8a30a | [
"Apache-2.0"
] | 38 | 2018-04-24T02:11:48.000Z | 2022-03-19T21:06:55.000Z | moonlight/score/reader_test.py | lithomas1/moonlight | cd22d6f47bbcf043a0027e91d342ae25dfc8a30a | [
"Apache-2.0"
] | 80 | 2018-04-17T20:41:58.000Z | 2022-03-29T18:13:58.000Z | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 41.551198 | 80 | 0.597106 | 2,578 | 19,072 | 4.189682 | 0.094259 | 0.063327 | 0.098509 | 0.101842 | 0.804925 | 0.780483 | 0.730303 | 0.684011 | 0.659013 | 0.564855 | 0 | 0.051473 | 0.275745 | 19,072 | 458 | 81 | 41.641921 | 0.730471 | 0.088087 | 0 | 0.596206 | 0 | 0 | 0.006988 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.0271 | false | 0 | 0.02439 | 0.00271 | 0.056911 | 0.00271 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
46c1c4dcdfec68b4cfea91f4f62de8297662c007 | 185 | py | Python | deal_solver/_context/__init__.py | orsinium-labs/deal-solver | 8983f783b4a069cfd70b44e526e7cb14c237796a | [
"MIT"
] | 8 | 2021-07-07T16:34:54.000Z | 2022-02-15T15:28:39.000Z | deal_solver/_context/__init__.py | orsinium-labs/deal-solver | 8983f783b4a069cfd70b44e526e7cb14c237796a | [
"MIT"
] | null | null | null | deal_solver/_context/__init__.py | orsinium-labs/deal-solver | 8983f783b4a069cfd70b44e526e7cb14c237796a | [
"MIT"
] | null | null | null | from ._context import Context
from ._layer import ExceptionInfo, ReturnInfo
from ._scope import Scope
__all__ = [
'Context',
'ExceptionInfo',
'ReturnInfo',
'Scope',
]
| 15.416667 | 45 | 0.686486 | 18 | 185 | 6.666667 | 0.444444 | 0.383333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210811 | 185 | 11 | 46 | 16.818182 | 0.821918 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46eafc84dedd9494c303cb4e287390a452bec59f | 3,969 | py | Python | geosoft/gxapi/GXTEST.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxapi/GXTEST.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxapi/GXTEST.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace the code in this block
### end... | 26.637584 | 135 | 0.627362 | 474 | 3,969 | 5.101266 | 0.280591 | 0.020265 | 0.037221 | 0.044665 | 0.515715 | 0.477667 | 0.477667 | 0.432175 | 0.406534 | 0.370141 | 0 | 0.01755 | 0.267826 | 3,969 | 149 | 136 | 26.637584 | 0.814522 | 0.561602 | 0 | 0.296296 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.074074 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
46f08f372591cc7ff0050e44673639cfc870a2c8 | 86 | py | Python | db_api/apps.py | constantine7cd/database-coursework | 0348e517dc08df367e1ca165dbe9ed238dec34b3 | [
"MIT"
] | 6 | 2018-08-11T14:52:40.000Z | 2021-01-06T01:39:15.000Z | db_api/apps.py | constantine7cd/database-coursework | 0348e517dc08df367e1ca165dbe9ed238dec34b3 | [
"MIT"
] | 10 | 2018-10-25T18:31:36.000Z | 2022-02-10T07:28:39.000Z | db_api/apps.py | constantine7cd/database-coursework | 0348e517dc08df367e1ca165dbe9ed238dec34b3 | [
"MIT"
] | 5 | 2018-10-25T19:41:07.000Z | 2020-07-11T09:26:50.000Z | from django.apps import AppConfig
class DbApiConfig(AppConfig):
name = 'db_api'
| 14.333333 | 33 | 0.744186 | 11 | 86 | 5.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 5 | 34 | 17.2 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2009dda42fb2308a648c0910b58e22d72b7f68e6 | 442 | py | Python | tests/test_stereo.py | zkbt/two-eyes | bf613650f03c8b88102c9bce203f27cbcdc58e17 | [
"MIT"
] | null | null | null | tests/test_stereo.py | zkbt/two-eyes | bf613650f03c8b88102c9bce203f27cbcdc58e17 | [
"MIT"
] | null | null | null | tests/test_stereo.py | zkbt/two-eyes | bf613650f03c8b88102c9bce203f27cbcdc58e17 | [
"MIT"
] | null | null | null | from twoeyes import Stereo
from twoeyes.imports import data_directory, os
example_directory = 'two-eyes-examples'
try:
os.mkdir(example_directory)
except:
pass
def test_stereo():
s = Stereo(os.path.join(data_directory, 'left.jpg'),
os.path.join(data_directory, 'right.jpg'))
s.to_sidebys... | 27.625 | 57 | 0.739819 | 60 | 442 | 5.25 | 0.466667 | 0.253968 | 0.238095 | 0.088889 | 0.32381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 442 | 15 | 58 | 29.466667 | 0.842246 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
20153cd4c47b675081faeac5e6d2e9f6432c02b6 | 239 | py | Python | Hackerrank_python/6.itertools/51.itertools.combinations_with_replacement().py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 39 | 2020-09-27T05:32:05.000Z | 2022-01-08T18:04:05.000Z | Hackerrank_python/6.itertools/51.itertools.combinations_with_replacement().py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 5 | 2020-10-02T13:33:00.000Z | 2021-03-01T14:06:08.000Z | Hackerrank_python/6.itertools/51.itertools.combinations_with_replacement().py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 6 | 2020-10-03T04:04:55.000Z | 2021-10-18T04:07:53.000Z | # Enter your code here. Read input from STDIN. Print output to STDOUT
from itertools import combinations_with_replacement
x=input().split()
s,p=x[0],int(x[1])
y=combinations_with_replacement(sorted(s),p)
for i in (y):
print(*i,sep="")
| 29.875 | 69 | 0.736402 | 42 | 239 | 4.095238 | 0.714286 | 0.186047 | 0.313953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.121339 | 239 | 7 | 70 | 34.142857 | 0.809524 | 0.280335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20418b8baf33f75d5e30629f3fb888ed09685333 | 2,075 | py | Python | core/data/astrosource/astro_source.py | xcamilox/frastro | 466fa3758a60484ace85022e5e5d404afd5a86ea | [
"Apache-2.0"
] | 1 | 2020-02-14T15:11:57.000Z | 2020-02-14T15:11:57.000Z | core/data/astrosource/astro_source.py | xcamilox/frastro | 466fa3758a60484ace85022e5e5d404afd5a86ea | [
"Apache-2.0"
] | null | null | null | core/data/astrosource/astro_source.py | xcamilox/frastro | 466fa3758a60484ace85022e5e5d404afd5a86ea | [
"Apache-2.0"
] | null | null | null | import time
import json
class AstroSource(object):
__id=""
__catalogs=[] # list of catalogs source
__images=[] #list of image source
__spectra=[] #list of spectral
__sumary={} #usfully data like: magnitud, redshift, name, id..etc
__date_request=000000 #timestamp(utc) with the last request to thi... | 29.225352 | 115 | 0.603373 | 224 | 2,075 | 5.209821 | 0.334821 | 0.051414 | 0.059983 | 0.017138 | 0.039417 | 0.039417 | 0.039417 | 0 | 0 | 0 | 0 | 0.003881 | 0.25494 | 2,075 | 71 | 116 | 29.225352 | 0.75097 | 0.078072 | 0 | 0 | 0 | 0 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.037037 | 0.111111 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
64490ebbe863c7adff809e21e55810fe1ecc235a | 6,496 | py | Python | configs/experiments.py | YuXie96/time | 8539d55d2449c712f54331b06720ab7faf3593df | [
"MIT"
] | null | null | null | configs/experiments.py | YuXie96/time | 8539d55d2449c712f54331b06720ab7faf3593df | [
"MIT"
] | null | null | null | configs/experiments.py | YuXie96/time | 8539d55d2449c712f54331b06720ab7faf3593df | [
"MIT"
] | null | null | null | """Experiments and corresponding analysis.
format adapted from https://github.com/gyyang/olfaction_evolution
Each experiment is described by a function that returns a list of configurations
function name is the experiment name
combinatorial mode:
config_ranges should not have repetitive values
sequential mode:
... | 32.48 | 80 | 0.636084 | 856 | 6,496 | 4.567757 | 0.165888 | 0.055243 | 0.051151 | 0.024552 | 0.736317 | 0.736317 | 0.689258 | 0.689258 | 0.689258 | 0.689258 | 0 | 0.013013 | 0.231065 | 6,496 | 199 | 81 | 32.643216 | 0.76977 | 0.111915 | 0 | 0.769231 | 0 | 0 | 0.081119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062937 | false | 0 | 0.076923 | 0 | 0.167832 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
646925d6be9141db7507a4f3fadccb1e4c0f8c1a | 4,639 | py | Python | tests/django_django_marshmallow/main/api.py | filwaitman/whatever-rest-framework | d67e1f12240c8c01078f752848f889e972403ad4 | [
"MIT"
] | 1 | 2019-08-11T22:13:20.000Z | 2019-08-11T22:13:20.000Z | tests/django_django_marshmallow/main/api.py | filwaitman/whatever-rest-framework | d67e1f12240c8c01078f752848f889e972403ad4 | [
"MIT"
] | 3 | 2019-08-06T18:20:50.000Z | 2021-06-10T21:47:56.000Z | tests/django_django_marshmallow/main/api.py | filwaitman/whatever-rest-framework | d67e1f12240c8c01078f752848f889e972403ad4 | [
"MIT"
] | null | null | null | from functools import partial
from django.views.generic import View
from wrf.api.base import BaseAPI, api_view
from wrf.base import APIError
from wrf.framework.django import DjangoFrameworkComponent
from wrf.orm.django import DjangoORMComponent
from wrf.pagination.base import NoPaginationComponent, PagePaginationComp... | 34.619403 | 127 | 0.725156 | 522 | 4,639 | 6.262452 | 0.237548 | 0.057204 | 0.068522 | 0.091465 | 0.275008 | 0.259407 | 0.242888 | 0.182625 | 0.062404 | 0 | 0 | 0.002612 | 0.174607 | 4,639 | 133 | 128 | 34.879699 | 0.851136 | 0.015952 | 0 | 0.117021 | 0 | 0 | 0.017313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.276596 | false | 0.010638 | 0.117021 | 0.234043 | 0.829787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
64692981266c660d6e87c1c48af817350e19ef43 | 164 | py | Python | applications/ex/models/db1.py | Gorang-Maniar/DGD | c7b2624c0d0bb0127214ec3804acbe2cc70f8ce0 | [
"BSD-3-Clause"
] | null | null | null | applications/ex/models/db1.py | Gorang-Maniar/DGD | c7b2624c0d0bb0127214ec3804acbe2cc70f8ce0 | [
"BSD-3-Clause"
] | null | null | null | applications/ex/models/db1.py | Gorang-Maniar/DGD | c7b2624c0d0bb0127214ec3804acbe2cc70f8ce0 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf8
db.define_table('post',
Field('Email',requires=IS_EMAIL()),
Field('filen','upload'),
auth.signature)
| 27.333333 | 51 | 0.506098 | 16 | 164 | 5.0625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.335366 | 164 | 5 | 52 | 32.8 | 0.733945 | 0.073171 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64bf3523958eea12276363a950c64e3247954cc5 | 4,481 | py | Python | migen/fomu.py | Freax13/fomu-workshop | dbf27d9d665e91b8e2541af82a280251d7a8cbf6 | [
"Apache-2.0"
] | 127 | 2019-08-20T09:45:51.000Z | 2022-02-28T10:04:13.000Z | migen/fomu.py | tcal-x/fomu-workshop | 9ffa4bfa46c6fefdea63a7d62bb3be2823aafa5d | [
"Apache-2.0"
] | 452 | 2019-08-19T12:45:52.000Z | 2022-03-28T12:07:40.000Z | migen/fomu.py | tcal-x/fomu-workshop | 9ffa4bfa46c6fefdea63a7d62bb3be2823aafa5d | [
"Apache-2.0"
] | 67 | 2019-08-21T18:46:27.000Z | 2022-03-06T22:41:08.000Z | """ Fomu board definitions (mapping of I/O pins, clock, etc.) """
from migen import *
from migen.build.generic_platform import *
from migen.build.lattice import LatticePlatform
class FomuPvtPlatform(LatticePlatform):
""" Based on
https://github.com/litex-hub/litex-boards/blob/master/litex_boards/partner/... | 31.556338 | 111 | 0.519304 | 451 | 4,481 | 4.937916 | 0.232816 | 0.193983 | 0.148181 | 0.145487 | 0.826673 | 0.760216 | 0.756174 | 0.59048 | 0.490795 | 0.490795 | 0 | 0.059319 | 0.311538 | 4,481 | 141 | 112 | 31.780142 | 0.662561 | 0.085026 | 0 | 0.564356 | 0 | 0 | 0.16963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059406 | false | 0 | 0.029703 | 0.029703 | 0.267327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3a09961971748e95294c2707f6bb197fcf2284e | 280 | py | Python | 11/src/11.3.7.py | XXG-Lab/Dragon | 741b36f8836d8a1d7a6912021ac3e54d57784124 | [
"MIT"
] | 4 | 2019-09-14T13:46:18.000Z | 2022-01-11T22:05:41.000Z | 11/src/11.3.7.py | XGG-Lab/Dragon | 741b36f8836d8a1d7a6912021ac3e54d57784124 | [
"MIT"
] | null | null | null | 11/src/11.3.7.py | XGG-Lab/Dragon | 741b36f8836d8a1d7a6912021ac3e54d57784124 | [
"MIT"
] | 2 | 2019-09-14T13:46:19.000Z | 2022-01-11T22:34:55.000Z | ps = []
for i in xrange(1, 30):
for j in xrange(i + 2, 40 - i):
ps.append((i, j))
fps = []
for k in xrange(2, 37 + 1):
for j in xrange(k + 1, min([k + 29, (k + 39) // 2]) + 1):
fps.append((j - k, j))
print len(ps), len(fps)
print sorted(ps) == sorted(fps)
| 25.454545 | 61 | 0.492857 | 55 | 280 | 2.509091 | 0.363636 | 0.231884 | 0.086957 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085 | 0.285714 | 280 | 10 | 62 | 28 | 0.605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3bddbb3df421b6caa8e372c4ba7f6584ea08efe | 328 | py | Python | bro/__init__.py | xuzuoyang/GitBro | 9e68af0bd6de1bf680e64c7d9a2b92ac99006056 | [
"MIT"
] | null | null | null | bro/__init__.py | xuzuoyang/GitBro | 9e68af0bd6de1bf680e64c7d9a2b92ac99006056 | [
"MIT"
] | null | null | null | bro/__init__.py | xuzuoyang/GitBro | 9e68af0bd6de1bf680e64c7d9a2b92ac99006056 | [
"MIT"
] | 1 | 2018-04-22T08:43:33.000Z | 2018-04-22T08:43:33.000Z | from .api import API
from .hub import (PullRequest, comment_pull_request, create_pull_request,
get_pull_request, merge_pull_request, update_pull_request)
__all__ = [
'API', 'PullRequest', 'create_pull_request', 'update_pull_request',
'get_pull_request', 'comment_pull_request', 'merge_pull_req... | 36.444444 | 76 | 0.746951 | 41 | 328 | 5.390244 | 0.317073 | 0.497738 | 0.162896 | 0.162896 | 0.574661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155488 | 328 | 8 | 77 | 41 | 0.797834 | 0 | 0 | 0 | 0 | 0 | 0.323171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3c6bd0c8c6024a7e62378c7eef5148a8182a37d | 114 | py | Python | Scripts/Rename_Selected_Objects.py | vitawebsitedesign/blender-python-scripts | b99e7695db32f8bb00ecbd5dc0cff4dff2f2e376 | [
"MIT"
] | null | null | null | Scripts/Rename_Selected_Objects.py | vitawebsitedesign/blender-python-scripts | b99e7695db32f8bb00ecbd5dc0cff4dff2f2e376 | [
"MIT"
] | null | null | null | Scripts/Rename_Selected_Objects.py | vitawebsitedesign/blender-python-scripts | b99e7695db32f8bb00ecbd5dc0cff4dff2f2e376 | [
"MIT"
] | null | null | null | import bpy
for obj in bpy.context.selected_objects:
obj.name = "GEO_sphere"
obj.data.name = "GEO_sphere"
| 19 | 40 | 0.710526 | 18 | 114 | 4.333333 | 0.666667 | 0.179487 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 114 | 5 | 41 | 22.8 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3d76962557a26cfec9d1d1c2815045588686f9f | 595 | py | Python | actusmp/model/term_group.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | actusmp/model/term_group.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | actusmp/model/term_group.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | import dataclasses
import typing
from actusmp.model.term_item import TermSet
@dataclasses.dataclass
class TermGroup():
group_id: str
name: str
term_set: TermSet
def __str__(self) -> str:
return f"term-group|{self.group_id}"
@dataclasses.dataclass
class TermGroupSet():
groups: typing.Li... | 21.25 | 66 | 0.670588 | 77 | 595 | 4.922078 | 0.415584 | 0.055409 | 0.131926 | 0.068602 | 0.153034 | 0.153034 | 0.153034 | 0.153034 | 0 | 0 | 0 | 0 | 0.211765 | 595 | 28 | 67 | 21.25 | 0.808102 | 0 | 0 | 0.210526 | 0 | 0 | 0.087248 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.210526 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b3f58fb8b17280727f0bcccdb9cdd16a083bde3e | 1,161 | py | Python | tictactoe/board.py | iTigrisha/tic-tac-toe | b9862e072c35559af9757f5862f47a84344c0062 | [
"Apache-2.0"
] | null | null | null | tictactoe/board.py | iTigrisha/tic-tac-toe | b9862e072c35559af9757f5862f47a84344c0062 | [
"Apache-2.0"
] | null | null | null | tictactoe/board.py | iTigrisha/tic-tac-toe | b9862e072c35559af9757f5862f47a84344c0062 | [
"Apache-2.0"
] | null | null | null | class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return f"[{self.x},{self.y}]"
class X(Point):
def __init__(self, x, y):
super().__init__(x, y)
def __str__(self):
return "X" + super().__str__()
class O(Point):
def __init__(... | 18.140625 | 57 | 0.42205 | 134 | 1,161 | 3.156716 | 0.216418 | 0.070922 | 0.104019 | 0.113475 | 0.295508 | 0.255319 | 0.212766 | 0.212766 | 0.212766 | 0.212766 | 0 | 0.009943 | 0.393626 | 1,161 | 63 | 58 | 18.428571 | 0.590909 | 0.127476 | 0 | 0.333333 | 0 | 0 | 0.040415 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.111111 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b6002f5bedf4b0a31c6716074aa4ac929c702652 | 1,100 | py | Python | Hello_world/hello_world.py | elsuizo/Kivy_work | 90da07721257a5e2ebf9eafacfb5a632f91cfbdd | [
"MIT"
] | null | null | null | Hello_world/hello_world.py | elsuizo/Kivy_work | 90da07721257a5e2ebf9eafacfb5a632f91cfbdd | [
"MIT"
] | null | null | null | Hello_world/hello_world.py | elsuizo/Kivy_work | 90da07721257a5e2ebf9eafacfb5a632f91cfbdd | [
"MIT"
] | null | null | null | #= -------------------------------------------------------------------------
# @file hello_world.py
#
# @date 02/14/16 10:41:21
# @author Martin Noblia
# @email martin.noblia@openmailbox.org
#
# @brief
#
# @detail
#
# Licence:
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | 26.829268 | 78 | 0.628182 | 148 | 1,100 | 4.608108 | 0.668919 | 0.021994 | 0.057185 | 0.083578 | 0.120235 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0.017335 | 0.160909 | 1,100 | 40 | 79 | 27.5 | 0.72156 | 0.745455 | 0 | 0 | 0 | 0 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
b61233be2d24962b742ef8df2d13d6f42d3ddee4 | 61 | py | Python | queries.py | mhmtsker/SamplePortfolio | 267224d29d89d5c0d0e2b17d4477700c3771acab | [
"MIT"
] | null | null | null | queries.py | mhmtsker/SamplePortfolio | 267224d29d89d5c0d0e2b17d4477700c3771acab | [
"MIT"
] | null | null | null | queries.py | mhmtsker/SamplePortfolio | 267224d29d89d5c0d0e2b17d4477700c3771acab | [
"MIT"
] | null | null | null | query = """select *
from prices
where date > '12.12.2012'""" | 20.333333 | 28 | 0.622951 | 9 | 61 | 4.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 0.163934 | 61 | 3 | 28 | 20.333333 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3743bce9ad7254535b14028c3096959883616398 | 61 | py | Python | nicenquickplotlib/__init__.py | SengerM/nicenquickplotlib | 9aeebcd07b581598c418dd47593d3c218bca6ebb | [
"MIT"
] | 2 | 2018-11-27T18:45:42.000Z | 2019-02-20T20:53:17.000Z | nicenquickplotlib/__init__.py | SengerM/nicenquickplotlib | 9aeebcd07b581598c418dd47593d3c218bca6ebb | [
"MIT"
] | null | null | null | nicenquickplotlib/__init__.py | SengerM/nicenquickplotlib | 9aeebcd07b581598c418dd47593d3c218bca6ebb | [
"MIT"
] | 1 | 2021-11-16T06:01:41.000Z | 2021-11-16T06:01:41.000Z | name = "nicenquickplotlib"
from .nq_user_functions import *
| 15.25 | 32 | 0.786885 | 7 | 61 | 6.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 61 | 3 | 33 | 20.333333 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3761e979aa10dd4a0153c0c3ac880bf9e59abf70 | 552 | py | Python | FusionIIIT/applications/online_cms/admin.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | FusionIIIT/applications/online_cms/admin.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | 6 | 2020-02-12T00:40:35.000Z | 2022-03-11T23:19:42.000Z | FusionIIIT/applications/online_cms/admin.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import (Assignment, CourseDocuments, CourseVideo, Forum,
ForumReply, Quiz, QuizQuestion, QuizResult, StudentAnswer,
StudentAssignment)
admin.site.register(CourseDocuments)
admin.site.register(CourseVideo)
admin.site.register(Quiz)... | 32.470588 | 79 | 0.775362 | 58 | 552 | 7.37931 | 0.310345 | 0.21028 | 0.397196 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128623 | 552 | 16 | 80 | 34.5 | 0.889813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37a4b2232dadf341025ae9c164ade352636f6ded | 179 | py | Python | horseback/chatobjects/chatobject.py | nasfarley88/horseback | b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f | [
"Unlicense"
] | null | null | null | horseback/chatobjects/chatobject.py | nasfarley88/horseback | b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f | [
"Unlicense"
] | null | null | null | horseback/chatobjects/chatobject.py | nasfarley88/horseback | b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f | [
"Unlicense"
] | null | null | null | class ChatObject:
def __init__(self, service, json):
"""Base class for objects emmitted from chat services."""
self.json = json
self.service = service
| 29.833333 | 65 | 0.636872 | 21 | 179 | 5.238095 | 0.666667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268156 | 179 | 5 | 66 | 35.8 | 0.839695 | 0.284916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37b8566cc11ea096931f32c80e36b8dd1ae7fcc0 | 65 | py | Python | test_package/module2.py | BigMountainTiger/p-virtualenv-excercise | 8f1f32de59f9b4b2be2ed9d212842385d3d48f1b | [
"MIT"
] | null | null | null | test_package/module2.py | BigMountainTiger/p-virtualenv-excercise | 8f1f32de59f9b4b2be2ed9d212842385d3d48f1b | [
"MIT"
] | null | null | null | test_package/module2.py | BigMountainTiger/p-virtualenv-excercise | 8f1f32de59f9b4b2be2ed9d212842385d3d48f1b | [
"MIT"
] | null | null | null | print('module2.py is initiated')
module2 = { 'name': 'module2' } | 21.666667 | 32 | 0.661538 | 8 | 65 | 5.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.138462 | 65 | 3 | 33 | 21.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.515152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
80623d60034e1f509af5feebf448f26c92603176 | 2,669 | py | Python | PyOpenGL-3.0.2/OpenGL/GL/ARB/sync.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/sync.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/sync.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | '''OpenGL extension ARB.sync
This module customises the behaviour of the
OpenGL.raw.GL.ARB.sync to provide a more
Python-friendly API
Overview (from the spec)
This extension introduces the concept of "sync objects". Sync
objects are a synchronization primitive - a representation of events
whose completion stat... | 40.439394 | 69 | 0.749344 | 391 | 2,669 | 5.11509 | 0.460358 | 0.035 | 0.011 | 0.014 | 0.018 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000934 | 0.197452 | 2,669 | 65 | 70 | 41.061538 | 0.932773 | 0.804421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
80771b26b5e73401a40df3c01e9e9a592e1c906b | 32 | py | Python | epochbot/constants.py | jaloo555/solana-easy-py | 8e28b8de52fbe4ee0b8e94a0f9c728114fc91728 | [
"MIT"
] | 4 | 2021-09-10T19:20:42.000Z | 2022-02-12T00:27:40.000Z | epochbot/constants.py | jaloo555/solana-easy-py | 8e28b8de52fbe4ee0b8e94a0f9c728114fc91728 | [
"MIT"
] | null | null | null | epochbot/constants.py | jaloo555/solana-easy-py | 8e28b8de52fbe4ee0b8e94a0f9c728114fc91728 | [
"MIT"
] | 1 | 2021-11-08T15:32:46.000Z | 2021-11-08T15:32:46.000Z | REFRESH_TIME = 15
LOAD_TIME = 10 | 16 | 17 | 0.78125 | 6 | 32 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0.15625 | 32 | 2 | 18 | 16 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
809d94835a0ffdb0599217000e5863d3ba0f906d | 140 | py | Python | InventorySystem/wood/apps.py | guyueming/PythonWeb | e8a38fc26c06ec78e1de61d65055dcfc480ef8f1 | [
"MIT"
] | null | null | null | InventorySystem/wood/apps.py | guyueming/PythonWeb | e8a38fc26c06ec78e1de61d65055dcfc480ef8f1 | [
"MIT"
] | null | null | null | InventorySystem/wood/apps.py | guyueming/PythonWeb | e8a38fc26c06ec78e1de61d65055dcfc480ef8f1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WoodConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'wood'
| 20 | 56 | 0.75 | 17 | 140 | 6.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 140 | 6 | 57 | 23.333333 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0.235714 | 0.207143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
80aaccc974dc25751b3961f7ef2ea240199c6ac5 | 804 | py | Python | tools/leetcode.165.Compare Version Numbers/leetcode.165.Compare Version Numbers.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.165.Compare Version Numbers/leetcode.165.Compare Version Numbers.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.165.Compare Version Numbers/leetcode.165.Compare Version Numbers.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution(object):
def compareVersion(self, version1, version2):
"""
:type version1: str
:type version2: str
:rtype: int
"""
v1 = version1.split('.')
v2 = version2.split('.')
while v1 and v2:
n1 = int(v1.pop(0))
n2... | 804 | 804 | 0.369403 | 88 | 804 | 3.375 | 0.306818 | 0.053872 | 0.060606 | 0.053872 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114362 | 0.532338 | 804 | 1 | 804 | 804 | 0.675532 | 0.063433 | 0 | 0.346154 | 0 | 0 | 0.002801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
80d54ba8746581594084d4990ebfd262311771b5 | 140 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/constants.py | yankeexe/cookiecutter-python-cli | 992bc1bf9af825b6ad144e5e4cbf969a58003347 | [
"MIT"
] | 4 | 2021-02-12T05:32:25.000Z | 2022-01-19T10:30:46.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/constants.py | yankeexe/cookiecutter-python-cli | 992bc1bf9af825b6ad144e5e4cbf969a58003347 | [
"MIT"
] | 1 | 2022-01-19T13:56:45.000Z | 2022-01-20T12:13:06.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/constants.py | yankeexe/cookiecutter-python-cli | 992bc1bf9af825b6ad144e5e4cbf969a58003347 | [
"MIT"
] | 1 | 2022-01-19T10:30:49.000Z | 2022-01-19T10:30:49.000Z | """
Constants for the CLI.
"""
WELCOME_MESSAGE = "Welcome to [bold green]{{cookiecutter.project_slug}}!![/bold green] Your CLI is working!"
| 28 | 108 | 0.714286 | 19 | 140 | 5.157895 | 0.789474 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 140 | 4 | 109 | 35 | 0.796748 | 0.157143 | 0 | 0 | 0 | 0 | 0.8 | 0.390909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
80f86d879376d95c9b8f00f57d6c20883339e7af | 481 | py | Python | app/behaviors/mail_behavior.py | Joeper214/mailingapp | 7eeb76c62d66efe66e3321a8fd706bc16d3ce57d | [
"MIT"
] | null | null | null | app/behaviors/mail_behavior.py | Joeper214/mailingapp | 7eeb76c62d66efe66e3321a8fd706bc16d3ce57d | [
"MIT"
] | null | null | null | app/behaviors/mail_behavior.py | Joeper214/mailingapp | 7eeb76c62d66efe66e3321a8fd706bc16d3ce57d | [
"MIT"
] | null | null | null | from ferris.core.ndb import Behavior
from app.behaviors.sanitize import Sanitize
class MailBehavior(Behavior):
sanitizer = Sanitize()
def before_put(self, instance):
instance.sender = self.sanitizer.sanitize_email(instance.sender)
instance.recipient = self.sanitizer.sanitize_email(instanc... | 37 | 78 | 0.756757 | 54 | 481 | 6.648148 | 0.425926 | 0.236769 | 0.233983 | 0.144847 | 0.373259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155925 | 481 | 12 | 79 | 40.083333 | 0.884236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
03c3e05bd3645a9521c002be0be14871a5bcdcb2 | 715 | py | Python | openslides_backend/action/actions/user/reset_password_to_default_temporary.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | openslides_backend/action/actions/user/reset_password_to_default_temporary.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | openslides_backend/action/actions/user/reset_password_to_default_temporary.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | from typing import Any, Dict
from ...util.register import register_action
from .check_temporary_mixin import CheckTemporaryMixin
from .reset_password_to_default import UserResetPasswordToDefaultAction
@register_action("user.reset_password_to_default_temporary")
class UserResetPasswordToDefaultTemporaryAction(
Ch... | 32.5 | 74 | 0.752448 | 77 | 715 | 6.779221 | 0.415584 | 0.057471 | 0.097701 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167832 | 715 | 21 | 75 | 34.047619 | 0.877311 | 0.166434 | 0 | 0 | 0 | 0 | 0.071813 | 0.071813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.363636 | 0.363636 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
03ce1a366f006f4fca121e84f134f782d5321ccf | 188 | py | Python | atlas/foundations_rest_api/src/foundations_rest_api/versioning.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_rest_api/src/foundations_rest_api/versioning.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_rest_api/src/foundations_rest_api/versioning.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z | from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution('foundations_rest_api').version
except DistributionNotFound:
__version__ = None | 37.6 | 66 | 0.835106 | 19 | 188 | 7.578947 | 0.736842 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111702 | 188 | 5 | 67 | 37.6 | 0.862275 | 0 | 0 | 0 | 0 | 0 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03ce7ae9bf86c01d16e01aabaf797ff6b1a46824 | 2,083 | py | Python | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/gui/designer.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | null | null | null | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/gui/designer.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 2 | 2021-09-07T23:43:53.000Z | 2022-01-13T00:39:55.000Z | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/gui/designer.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 1 | 2019-10-21T17:12:07.000Z | 2019-10-21T17:12:07.000Z | """
designer.py
"""
import warnings
warnings.filterwarnings("ignore")
import os
import sys
import wx
import wx
import beadgui
#Some constants
#BEAD_RADIUS = 1.75*mm
#BEAD_THICKNESS = 1*mm
#BOARD_SPACING = 4.85*mm
#BOARD_BORDER = 4*mm
#Some notes
#A4 60x43 = 2580
#A3 86x60 = 5160
#A2 86x120 = 10,320
#MARQUEE A4+A4 = 1... | 23.404494 | 91 | 0.644263 | 260 | 2,083 | 5.069231 | 0.496154 | 0.037178 | 0.049317 | 0.08346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034279 | 0.18771 | 2,083 | 89 | 92 | 23.404494 | 0.744681 | 0.228517 | 0 | 0.16 | 0 | 0 | 0.143489 | 0.039191 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.22 | false | 0.12 | 0.14 | 0 | 0.38 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
03e78b6520e7f9b93094df6fef50b90bfecf67f3 | 1,246 | py | Python | src/abaqus/AbaqusCAEDisplayPreferences/CaeGuiPrefs.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/AbaqusCAEDisplayPreferences/CaeGuiPrefs.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/AbaqusCAEDisplayPreferences/CaeGuiPrefs.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
class CaeGuiPrefs:
"""The CaeGuiPrefs object contains the details of the graphical preferences in a
guiPreferences section of the abaqus_2021.gpr file.
Attributes
----------
fileName: str
A String specifying the path to the preferences file.
Notes
-... | 26.510638 | 94 | 0.605136 | 130 | 1,246 | 5.792308 | 0.469231 | 0.058433 | 0.095618 | 0.079681 | 0.289509 | 0.204515 | 0.204515 | 0.204515 | 0.204515 | 0.146082 | 0 | 0.004673 | 0.313002 | 1,246 | 46 | 95 | 27.086957 | 0.875 | 0.685393 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
03e79da79575de7b43657ec72cc174f1a7d92f68 | 2,227 | py | Python | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/protocol/session/SessionState.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | 1 | 2022-02-17T19:14:46.000Z | 2022-02-17T19:14:46.000Z | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/protocol/session/SessionState.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/protocol/session/SessionState.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import List, Optional
from geniusweb.actions.Action import Action
from geniusweb.inform.Agreements import Agreements
from geniusweb.progress.Progress import Progress
from geniusweb.protocol.NegoState import NegoState
from geniusweb.protocol.session.SessionResult import Sessi... | 33.238806 | 77 | 0.748092 | 293 | 2,227 | 5.686007 | 0.477816 | 0.046819 | 0.037815 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182757 | 2,227 | 66 | 78 | 33.742424 | 0.915385 | 0.619219 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.421053 | 0 | 0.736842 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
2079d4630f60c4336538cbd1d0001fe14e3fd687 | 26,593 | py | Python | python-package/arboretum/core.py | sh1ng/arboretum | f3dbc4c2fc2b6ff86d9ede21082e4116dcd26e12 | [
"Apache-2.0"
] | 67 | 2017-01-24T19:04:07.000Z | 2020-12-27T13:11:21.000Z | python-package/arboretum/core.py | sh1ng/arboretum | f3dbc4c2fc2b6ff86d9ede21082e4116dcd26e12 | [
"Apache-2.0"
] | 9 | 2017-08-08T10:52:33.000Z | 2018-01-28T12:02:25.000Z | python-package/arboretum/core.py | sh1ng/arboretum | f3dbc4c2fc2b6ff86d9ede21082e4116dcd26e12 | [
"Apache-2.0"
] | 18 | 2016-10-15T12:53:09.000Z | 2019-04-02T21:48:08.000Z | # coding: utf-8
# pylint: disable=too-many-arguments, too-many-branches
"""Core Arboretum Library."""
from __future__ import absolute_import
import os
import ctypes
from ctypes import *
import numpy as np
import scipy.sparse
import json
from sklearn.metrics import mean_squared_error
from sklearn.metrics import roc_au... | 36.279673 | 139 | 0.545482 | 3,010 | 26,593 | 4.627575 | 0.116611 | 0.034245 | 0.008184 | 0.018092 | 0.765669 | 0.744346 | 0.719075 | 0.695312 | 0.691938 | 0.67722 | 0 | 0.014033 | 0.367578 | 26,593 | 732 | 140 | 36.329235 | 0.814187 | 0.276501 | 0 | 0.601648 | 0 | 0.005495 | 0.076167 | 0.003005 | 0 | 0 | 0 | 0 | 0.013736 | 1 | 0.065934 | false | 0.002747 | 0.027473 | 0 | 0.134615 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20bc58bc3f145bb4ebeede531eee7fea36319ee8 | 145 | py | Python | invertendo_sequencia.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | 1 | 2021-12-28T21:37:33.000Z | 2021-12-28T21:37:33.000Z | invertendo_sequencia.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | null | null | null | invertendo_sequencia.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | null | null | null | seq = []
n = 1
while n:
n = int(input(print("Digite um número: ")))
if n != 0:
seq.append(n)
print(seq)
print(seq[:-1])
| 14.5 | 47 | 0.482759 | 23 | 145 | 3.043478 | 0.565217 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.317241 | 145 | 9 | 48 | 16.111111 | 0.676768 | 0 | 0 | 0 | 0 | 0 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20df03ba84caced691bdbf9e1b4389f1dfe6677a | 112 | py | Python | IssueTypes.py | ckelleyRH/3age | 4203671a3186c5ba1e0c1183c50e1c779fee4617 | [
"Apache-2.0"
] | null | null | null | IssueTypes.py | ckelleyRH/3age | 4203671a3186c5ba1e0c1183c50e1c779fee4617 | [
"Apache-2.0"
] | 5 | 2021-07-21T20:50:36.000Z | 2021-08-02T22:42:05.000Z | IssueTypes.py | ckelleyRH/3age | 4203671a3186c5ba1e0c1183c50e1c779fee4617 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class IssueTypes(Enum):
REGRESSIONS = "REGRESSIONS"
NEW = "NEW"
OLD = "OLD"
| 14 | 31 | 0.633929 | 13 | 112 | 5.461538 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258929 | 112 | 7 | 32 | 16 | 0.855422 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
457f80be36e95eb7f40618a621d2654c9b902295 | 547 | bzl | Python | templates/compiler/BUILD.tmpl.bzl | iocat/rules_rescript | 51f1a9667e7f87745e7307a181f29d72349b2799 | [
"MIT"
] | 1 | 2022-01-16T16:20:35.000Z | 2022-01-16T16:20:35.000Z | templates/compiler/BUILD.tmpl.bzl | iocat/rules_rescript | 51f1a9667e7f87745e7307a181f29d72349b2799 | [
"MIT"
] | 1 | 2021-10-30T03:45:39.000Z | 2021-10-30T03:45:39.000Z | templates/compiler/BUILD.tmpl.bzl | iocat/rules_rescript | 51f1a9667e7f87745e7307a181f29d72349b2799 | [
"MIT"
] | null | null | null | {{AUTO_GENERATED_NOTICE}}
load("@{{REPO_NAME}}//:rules.bzl", "rescript_compiler")
rescript_compiler(
name = "darwin",
bsc = ":darwin/bsc.exe",
bsb_helper = ":darwin/bsb_helper.exe",
visibility = ["//visibility:public"],
)
rescript_compiler(
name = "linux",
bsc = ":linux/bsc.exe",
bsb_helpe... | 24.863636 | 55 | 0.632541 | 61 | 547 | 5.459016 | 0.327869 | 0.162162 | 0.18018 | 0.135135 | 0.462462 | 0.462462 | 0.348348 | 0.348348 | 0.348348 | 0 | 0 | 0.00883 | 0.171846 | 547 | 22 | 56 | 24.863636 | 0.726269 | 0 | 0 | 0.3 | 1 | 0 | 0.410584 | 0.164234 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
45b2ab662070fac81f631fb021335b262139db48 | 723 | py | Python | server.py | martinezpl/STARTHACK21-SBB-backend | fced44018498de7011843ef64e95c4bfe353a1b2 | [
"MIT"
] | null | null | null | server.py | martinezpl/STARTHACK21-SBB-backend | fced44018498de7011843ef64e95c4bfe353a1b2 | [
"MIT"
] | null | null | null | server.py | martinezpl/STARTHACK21-SBB-backend | fced44018498de7011843ef64e95c4bfe353a1b2 | [
"MIT"
] | null | null | null | # import main Flask class and request object
from flask import Flask, request
from logic import Logic
# create the Flask app
app = Flask("SBB-backend")
log = Logic()
@app.route('/detail')
def detail():
facility = request.args.get('facility')
date = request.args.get('date')
return log.detail(facility, date... | 20.657143 | 52 | 0.674965 | 106 | 723 | 4.509434 | 0.40566 | 0.083682 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023372 | 0.171508 | 723 | 34 | 53 | 21.264706 | 0.774624 | 0.135546 | 0 | 0 | 0 | 0 | 0.195161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.173913 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
45c41ad058953d053642b78b694fce55135af775 | 185 | py | Python | day-1/range-type.py | anishLearnsToCode/python-workshop-3 | 7a9ab7acc9202ca0a3e48c825cd516fcf0a1a747 | [
"MIT"
] | 2 | 2020-07-10T07:44:39.000Z | 2021-09-15T20:28:48.000Z | day-1/range-type.py | anishLearnsToCode/python-workshop-3 | 7a9ab7acc9202ca0a3e48c825cd516fcf0a1a747 | [
"MIT"
] | null | null | null | day-1/range-type.py | anishLearnsToCode/python-workshop-3 | 7a9ab7acc9202ca0a3e48c825cd516fcf0a1a747 | [
"MIT"
] | 1 | 2020-11-01T00:58:04.000Z | 2020-11-01T00:58:04.000Z | """
Range
range(stop)
range(start, stop)
range(start, stop, step)
default start = 0
default step = 1
"""
r = range(5, 10, 2)
print(r.start)
print(r.stop)
print(r.step)
print(type(r))
| 11.5625 | 24 | 0.659459 | 33 | 185 | 3.69697 | 0.393939 | 0.147541 | 0.229508 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.151351 | 185 | 15 | 25 | 12.333333 | 0.738854 | 0.524324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
afdafbf78ca7a8c6aca715f5b17741b53982195e | 315 | py | Python | plugins/sort_by_article_count/__init__.py | julianespinel/website | a16394cf878fdfd8e1fa86ed23779d31ec4f1316 | [
"MIT"
] | null | null | null | plugins/sort_by_article_count/__init__.py | julianespinel/website | a16394cf878fdfd8e1fa86ed23779d31ec4f1316 | [
"MIT"
] | 9 | 2020-08-30T19:52:19.000Z | 2021-10-03T16:55:45.000Z | plugins/sort_by_article_count/__init__.py | julianespinel/website | a16394cf878fdfd8e1fa86ed23779d31ec4f1316 | [
"MIT"
] | null | null | null | from pelican import signals
from . import count
def add_filter(pelican):
"""Add count_elements filter to Pelican."""
pelican.env.filters.update(
{'sort_by_article_count': count.sort_by_article_count})
def register():
"""Plugin registration."""
signals.generator_init.connect(add_filter)
| 22.5 | 63 | 0.72381 | 40 | 315 | 5.45 | 0.55 | 0.073395 | 0.119266 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 315 | 13 | 64 | 24.230769 | 0.825758 | 0.184127 | 0 | 0 | 0 | 0 | 0.085366 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
afdb61c93e1dc26d02a2eb2ac925c8eee96a8030 | 416 | py | Python | sklearn_pmml_model/linear_model/__init__.py | iamDecode/sklearn-pmml-model | 186c0655b6b42b787d58229118b187cc6b156b38 | [
"BSD-2-Clause"
] | 62 | 2018-06-14T05:57:00.000Z | 2022-03-15T03:03:42.000Z | sklearn_pmml_model/linear_model/__init__.py | iamDecode/sklearn-pmml-model | 186c0655b6b42b787d58229118b187cc6b156b38 | [
"BSD-2-Clause"
] | 30 | 2018-10-25T16:54:53.000Z | 2022-01-28T12:59:17.000Z | sklearn_pmml_model/linear_model/__init__.py | iamDecode/sklearn-pmml-model | 186c0655b6b42b787d58229118b187cc6b156b38 | [
"BSD-2-Clause"
] | 9 | 2018-06-19T09:56:18.000Z | 2022-03-17T16:23:44.000Z | """
The :mod:`sklearn_pmml_model.linear_model` module implements generalized linear models.
"""
# License: BSD 2-Clause
from .implementations import PMMLLinearRegression, PMMLLogisticRegression, PMMLRidge, \
PMMLRidgeClassifier, PMMLLasso, PMMLElasticNet
__all__ = [
'PMMLLinearRegression',
'PMMLLogisticR... | 23.111111 | 87 | 0.745192 | 32 | 416 | 9.46875 | 0.75 | 0.277228 | 0.336634 | 0.462046 | 0.613861 | 0.613861 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.153846 | 416 | 17 | 88 | 24.470588 | 0.857955 | 0.264423 | 0 | 0 | 0 | 0 | 0.312081 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afe6baab75a073cb5e6748d5cccb16284e823900 | 288 | py | Python | linuxmachinebeta/review/signals.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | linuxmachinebeta/review/signals.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | linuxmachinebeta/review/signals.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | from django.dispatch import receiver
from django.db.models.signals import post_delete
from linuxmachinebeta.review.models import ServiceReview
@receiver(post_delete, sender=ServiceReview)
def update_rating_after_delete(sender, instance, **kwargs):
instance.service.update_rating()
| 28.8 | 59 | 0.833333 | 36 | 288 | 6.5 | 0.583333 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090278 | 288 | 9 | 60 | 32 | 0.89313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aff2da562c9467d2b821bd02292abb2c111c8e51 | 399 | py | Python | xendbg/xen/vcpu.py | nspin/pyxendbg | c3d39e35e3319188558c8b8fd5cedf812ea7d15a | [
"MIT"
] | null | null | null | xendbg/xen/vcpu.py | nspin/pyxendbg | c3d39e35e3319188558c8b8fd5cedf812ea7d15a | [
"MIT"
] | null | null | null | xendbg/xen/vcpu.py | nspin/pyxendbg | c3d39e35e3319188558c8b8fd5cedf812ea7d15a | [
"MIT"
] | null | null | null | from xendbg.xen._bindings import ffi, lib
class VCPU:
def __init__(self, domain, vcpu_id):
self.domain = domain
self.vcpu_id = vcpu_id
def get_context(self):
return self.domain.xen.xenctrl.vcpu_getcontext(self.domain.domid, self.vcpu_id)
def set_context(self, ctx):
return... | 28.5 | 92 | 0.704261 | 59 | 399 | 4.525424 | 0.389831 | 0.224719 | 0.11236 | 0.142322 | 0.411985 | 0.411985 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 399 | 13 | 93 | 30.692308 | 0.829193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b3118fccc6c740374053be320c5f40787d3e0bca | 224 | py | Python | flask_boilerplate/admin/__init__.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | flask_boilerplate/admin/__init__.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | flask_boilerplate/admin/__init__.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# __author__ = 'Wells Jia'
# 管理后台入口文件
from flask import Blueprint
admin = Blueprint('admin', __name__, template_folder='./templates', static_folder='./static')
theme = 'default'
from . import views | 20.363636 | 93 | 0.700893 | 26 | 224 | 5.653846 | 0.769231 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.138393 | 224 | 11 | 94 | 20.363636 | 0.756477 | 0.241071 | 0 | 0 | 0 | 0 | 0.185629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 3 |
b33543603c3562635b0db257ef44e5d5d8f03136 | 50 | py | Python | refman/__init__.py | adriancaruana/refman | b66688e86ea670d484c941630867b83dda2eed2d | [
"MIT"
] | null | null | null | refman/__init__.py | adriancaruana/refman | b66688e86ea670d484c941630867b83dda2eed2d | [
"MIT"
] | null | null | null | refman/__init__.py | adriancaruana/refman | b66688e86ea670d484c941630867b83dda2eed2d | [
"MIT"
] | 1 | 2021-11-03T23:44:42.000Z | 2021-11-03T23:44:42.000Z | from .refman import RefMan
__version__ = "0.0.1"
| 12.5 | 26 | 0.72 | 8 | 50 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.16 | 50 | 3 | 27 | 16.666667 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2fa28c5ddd1ea9cc730e91ea160353f840363c13 | 777 | py | Python | src/haydi/base/permutations.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 5 | 2017-08-09T17:12:31.000Z | 2020-06-14T13:13:05.000Z | src/haydi/base/permutations.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 13 | 2017-01-31T15:42:13.000Z | 2017-12-04T11:24:26.000Z | src/haydi/base/permutations.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 2 | 2017-08-21T09:49:10.000Z | 2021-02-28T13:51:05.000Z | from .domain import Domain
from math import factorial
import itertools
import random
class Permutations(Domain):
def __init__(self, domain, name=None):
super(Permutations, self).__init__(name)
self._set_flags_from_domain(domain)
self.step_jumps = False # not implemented yet
self... | 26.793103 | 67 | 0.693694 | 94 | 777 | 5.531915 | 0.414894 | 0.115385 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003306 | 0.221364 | 777 | 28 | 68 | 27.75 | 0.856198 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.25 | false | 0 | 0.2 | 0.15 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2fa71c6515ad95240789218ff4129d3e0088bf09 | 278 | py | Python | src/normalisr/normalisr.py | lingfeiwang/normalisr | dac3b0ec266dac6db976387f9ddf3d595fff8a73 | [
"BSD-3-Clause"
] | 9 | 2020-07-14T16:18:23.000Z | 2021-12-10T01:44:32.000Z | src/normalisr/normalisr.py | lingfeiwang/normalisr | dac3b0ec266dac6db976387f9ddf3d595fff8a73 | [
"BSD-3-Clause"
] | null | null | null | src/normalisr/normalisr.py | lingfeiwang/normalisr | dac3b0ec266dac6db976387f9ddf3d595fff8a73 | [
"BSD-3-Clause"
] | 3 | 2021-06-30T08:36:55.000Z | 2022-01-21T09:13:21.000Z | #!/usr/bin/python3
from .qc import qc_reads, qc_outlier
from .lcpm import lcpm, scaling_factor
from .norm import normcov, compute_var, normvar
from .de import de
from .coex import coex
from .binnet import binnet
from .gocovt import gotop, pccovt
assert __name__ != "__main__"
| 23.166667 | 47 | 0.780576 | 43 | 278 | 4.767442 | 0.581395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.143885 | 278 | 11 | 48 | 25.272727 | 0.857143 | 0.061151 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2fbc22765839d4a8a41164a113f5216c0cf8ab7d | 685 | py | Python | run.py | icdlvru2021/project1-ai | 27d365e2672378ca741598113a34baf438934bbd | [
"Xnet",
"X11"
] | null | null | null | run.py | icdlvru2021/project1-ai | 27d365e2672378ca741598113a34baf438934bbd | [
"Xnet",
"X11"
] | 1 | 2021-05-28T05:58:26.000Z | 2021-06-03T11:31:39.000Z | run.py | icdlvru2021/project1-ai | 27d365e2672378ca741598113a34baf438934bbd | [
"Xnet",
"X11"
] | null | null | null | import pacman
import autograder
"""
run.py runs things that look like command-line arguments
for Berkeley Python. Leave the 'python pacman.py' part
at the beginning, just like running from the command line.
You should comment out all lines in the file except the one
you wan to run!
"""
#pacman.main('python pacman.py... | 32.619048 | 80 | 0.769343 | 107 | 685 | 4.88785 | 0.53271 | 0.099426 | 0.107075 | 0.126195 | 0.260038 | 0.095602 | 0 | 0 | 0 | 0 | 0 | 0.003339 | 0.125547 | 685 | 21 | 81 | 32.619048 | 0.869783 | 0.454015 | 0 | 0 | 0 | 0 | 0.482456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2fbffeb2e6ef66b417b8109ad76c075e24862f8d | 34,149 | py | Python | test/unit/test_resource_manager_v2.py | gmzcarlos/platform-services-python-sdk | 57198bffa99dba9410dfc55f93d70d1a31fae414 | [
"Apache-2.0"
] | null | null | null | test/unit/test_resource_manager_v2.py | gmzcarlos/platform-services-python-sdk | 57198bffa99dba9410dfc55f93d70d1a31fae414 | [
"Apache-2.0"
] | null | null | null | test/unit/test_resource_manager_v2.py | gmzcarlos/platform-services-python-sdk | 57198bffa99dba9410dfc55f93d70d1a31fae414 | [
"Apache-2.0"
] | 1 | 2020-07-30T10:27:14.000Z | 2020-07-30T10:27:14.000Z | # -*- coding: utf-8 -*-
# (C) Copyright IBM Corp. 2020.
#
# 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 l... | 46.147297 | 478 | 0.56233 | 3,375 | 34,149 | 5.367704 | 0.079111 | 0.076783 | 0.053654 | 0.027931 | 0.833352 | 0.772632 | 0.711912 | 0.630492 | 0.587933 | 0.559119 | 0 | 0.024387 | 0.202671 | 34,149 | 739 | 479 | 46.209743 | 0.640958 | 0.28932 | 0 | 0.478947 | 0 | 0.026316 | 0.260014 | 0.071243 | 0 | 0 | 0 | 0 | 0.115789 | 1 | 0.052632 | false | 0 | 0.021053 | 0 | 0.107895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fc3f3d20d6e65c13d642ed01067b22d2111ba71 | 300 | py | Python | webvep/webvep_api/urls.py | IanVermes/vep_api | 9d9d31eddd969aad1c462278ea1f1fb09153e054 | [
"MIT"
] | null | null | null | webvep/webvep_api/urls.py | IanVermes/vep_api | 9d9d31eddd969aad1c462278ea1f1fb09153e054 | [
"MIT"
] | 1 | 2020-03-30T10:52:58.000Z | 2020-03-30T16:46:31.000Z | webvep/webvep_api/urls.py | IanVermes/vep_api | 9d9d31eddd969aad1c462278ea1f1fb09153e054 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.urlpatterns import format_suffix_patterns
from webvep_api.views import ping_view, vcf_view, vep_view
urlpatterns = [path("ping/", ping_view), path("vcf/", vcf_view), path("vep/", vep_view)]
urlpatterns = format_suffix_patterns(urlpatterns)
| 37.5 | 88 | 0.8 | 43 | 300 | 5.302326 | 0.44186 | 0.105263 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 300 | 7 | 89 | 42.857143 | 0.838235 | 0 | 0 | 0 | 0 | 0 | 0.043333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2fcb3dc7d7b98589ab2492326602fe8773a9062d | 227 | py | Python | DESAFIO-012.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-012.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-012.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | # Um programa que resolve a hipotenusa #
from math import hypot
co = float(input('Comprimento do cateto opsoto: '))
ca = float(input('Comprimento do cateto adjacente: '))
print(f'A hipotenusa vai medir: {hypot(co, ca):.2f}')
| 28.375 | 54 | 0.718062 | 34 | 227 | 4.794118 | 0.705882 | 0.134969 | 0.257669 | 0.282209 | 0.355828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.14978 | 227 | 7 | 55 | 32.428571 | 0.839378 | 0.15859 | 0 | 0 | 0 | 0 | 0.569892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fd0cbf2caddcf5693c5adc23c15132dd7b12739 | 93 | py | Python | numerical/splines/__init__.py | shaxov/scikit-numerical | e426cc2d59cf90edb36d507a9b25eb047ae07af9 | [
"MIT"
] | 3 | 2019-04-22T08:34:09.000Z | 2019-04-28T16:08:02.000Z | numerical/splines/__init__.py | shaxov/scikit-numerical | e426cc2d59cf90edb36d507a9b25eb047ae07af9 | [
"MIT"
] | 7 | 2019-04-28T13:49:10.000Z | 2019-05-12T10:55:18.000Z | numerical/splines/__init__.py | shaxov/scikit-numerical | e426cc2d59cf90edb36d507a9b25eb047ae07af9 | [
"MIT"
] | null | null | null | from .definitions import (
linear,
schoenberg,
)
__all__ = ['linear', 'schoenberg']
| 13.285714 | 34 | 0.645161 | 8 | 93 | 7 | 0.75 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 93 | 6 | 35 | 15.5 | 0.767123 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fe42758f4647ecf2dbb93b1acf43f2dc68d040b | 1,414 | py | Python | evennia_extensions/character_extensions/storage_wrappers.py | dvoraen/arxcode | a89f2004fca10e0b1f1995c2420dd3ffbf08774b | [
"MIT"
] | 42 | 2018-08-12T00:55:24.000Z | 2021-12-24T15:16:08.000Z | evennia_extensions/character_extensions/storage_wrappers.py | dvoraen/arxcode | a89f2004fca10e0b1f1995c2420dd3ffbf08774b | [
"MIT"
] | 312 | 2018-10-22T23:03:27.000Z | 2022-02-06T13:02:58.000Z | evennia_extensions/character_extensions/storage_wrappers.py | dvoraen/arxcode | a89f2004fca10e0b1f1995c2420dd3ffbf08774b | [
"MIT"
] | 42 | 2018-08-12T00:41:48.000Z | 2022-01-27T14:03:16.000Z | from evennia_extensions.object_extensions.storage_wrappers import StorageWrapper
class RosterEntryWrapper(StorageWrapper):
def get_storage(self, instance):
return instance.obj.roster
def create_new_storage(self, instance):
raise AttributeError("This object does not have a RosterEntry to store... | 32.136364 | 86 | 0.75884 | 138 | 1,414 | 7.623188 | 0.289855 | 0.08365 | 0.144487 | 0.102662 | 0.579848 | 0.54943 | 0.44962 | 0.44962 | 0.44962 | 0.236692 | 0 | 0 | 0.178218 | 1,414 | 43 | 87 | 32.883721 | 0.905336 | 0 | 0 | 0.357143 | 0 | 0 | 0.03819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.821429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2ff27806addf76a135c443f4ea37c432fc5e88d3 | 107 | py | Python | startleft/config/paths.py | iriusrisk/startleft | 2833a09ca3c39636b34116bb0f8db0756643f05b | [
"Apache-2.0"
] | 9 | 2021-08-25T16:08:25.000Z | 2022-03-22T14:12:05.000Z | startleft/config/paths.py | iriusrisk/startleft | 2833a09ca3c39636b34116bb0f8db0756643f05b | [
"Apache-2.0"
] | 4 | 2021-08-17T13:30:43.000Z | 2022-03-15T07:53:13.000Z | startleft/config/paths.py | iriusrisk/startleft | 2833a09ca3c39636b34116bb0f8db0756643f05b | [
"Apache-2.0"
] | null | null | null | import os
default_cf_mapping_files = [os.path.dirname(__file__) + '/default-cloudformation-mapping.yaml']
| 26.75 | 95 | 0.794393 | 14 | 107 | 5.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 107 | 3 | 96 | 35.666667 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.336449 | 0.336449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2ffb6444772a1663eaca13c0b5dc08ab39f6f857 | 92 | py | Python | backend/base/urls/order_urls.py | sasan-sohrabi/proshop-DjangoReact | 8e40a616e1c4ab4df245e211a5d398b1497553cf | [
"MIT"
] | null | null | null | backend/base/urls/order_urls.py | sasan-sohrabi/proshop-DjangoReact | 8e40a616e1c4ab4df245e211a5d398b1497553cf | [
"MIT"
] | null | null | null | backend/base/urls/order_urls.py | sasan-sohrabi/proshop-DjangoReact | 8e40a616e1c4ab4df245e211a5d398b1497553cf | [
"MIT"
] | null | null | null | from django.urls import path
from base.views import order_views as views
urlpatterns = [
] | 15.333333 | 43 | 0.782609 | 14 | 92 | 5.071429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 6 | 44 | 15.333333 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6422251048ee1afc76da9eeea906ac3c7ea6adda | 1,537 | py | Python | composer/models/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | 2 | 2022-03-17T04:48:04.000Z | 2022-03-20T09:06:19.000Z | composer/models/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | null | null | null | composer/models/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
from composer.models.base import BaseMosaicModel as BaseMosaicModel
from composer.models.base import MosaicClassifier as MosaicClassifier
from composer.models.classify_mnist import MNIST_Classifier as MNIST_Classifier
from composer.models.classify_mnist import MnistClass... | 64.041667 | 91 | 0.883539 | 185 | 1,537 | 7.281081 | 0.221622 | 0.187082 | 0.280624 | 0.032665 | 0.491463 | 0.166295 | 0 | 0 | 0 | 0 | 0 | 0.052744 | 0.087183 | 1,537 | 23 | 92 | 66.826087 | 0.907341 | 0.029278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.