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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3e2a0ac0503f5dc07ca496db5ccde98867c070b | 93 | py | Python | dlc/pose-tensorflow/net_factory.py | JaneliaSciComp/delectable | a8a1eb23b96f83c332d4b14593e0ae209bb062b2 | [
"BSD-3-Clause"
] | null | null | null | dlc/pose-tensorflow/net_factory.py | JaneliaSciComp/delectable | a8a1eb23b96f83c332d4b14593e0ae209bb062b2 | [
"BSD-3-Clause"
] | 1 | 2020-03-09T07:32:01.000Z | 2020-03-09T17:43:00.000Z | dlc/pose-tensorflow/nnet/net_factory.py | JaneliaSciComp/delectable | a8a1eb23b96f83c332d4b14593e0ae209bb062b2 | [
"BSD-3-Clause"
] | 1 | 2020-06-16T04:12:58.000Z | 2020-06-16T04:12:58.000Z | from nnet.pose_net import PoseNet
def pose_net(cfg):
cls = PoseNet
return cls(cfg)
| 13.285714 | 33 | 0.698925 | 15 | 93 | 4.2 | 0.666667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 93 | 6 | 34 | 15.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
430402d4455b92d16eb05a544b90fc89eded6d1a | 274 | py | Python | kedro/framework/cli/__init__.py | hfwittmann/kedro | b0d4fcd8f19b49a7916d78fd09daeb6209a7b6c6 | [
"Apache-2.0"
] | 1 | 2021-11-25T12:33:13.000Z | 2021-11-25T12:33:13.000Z | kedro/framework/cli/__init__.py | MerelTheisenQB/kedro | 1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827 | [
"Apache-2.0"
] | null | null | null | kedro/framework/cli/__init__.py | MerelTheisenQB/kedro | 1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827 | [
"Apache-2.0"
] | null | null | null | """``kedro.framework.cli`` implements commands available from Kedro's CLI.
"""
from .cli import get_project_context, main
from .utils import command_with_verbosity, load_entry_points
__all__ = ["get_project_context", "main", "command_with_verbosity", "load_entry_points"]
| 34.25 | 88 | 0.788321 | 37 | 274 | 5.405405 | 0.567568 | 0.1 | 0.17 | 0.21 | 0.35 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094891 | 274 | 7 | 89 | 39.142857 | 0.806452 | 0.259124 | 0 | 0 | 0 | 0 | 0.316327 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
43078238db5cfaba6f3c4b017569cdaf0cf2dff0 | 303 | py | Python | cvxlinreg/abs_value.py | alexshtf/inc_prox_pt | a826c7179a528757399e661c5619a68dad254711 | [
"MIT"
] | null | null | null | cvxlinreg/abs_value.py | alexshtf/inc_prox_pt | a826c7179a528757399e661c5619a68dad254711 | [
"MIT"
] | null | null | null | cvxlinreg/abs_value.py | alexshtf/inc_prox_pt | a826c7179a528757399e661c5619a68dad254711 | [
"MIT"
] | null | null | null | import math
class AbsValue:
def eval(self, z):
return abs(z)
def conjugate_has_compact_domain(self):
return True
def domain(self):
return (-1, 1)
def conjugate(self, s):
if -1 <= s <= 1:
return 0
else:
return math.inf
| 15.947368 | 43 | 0.518152 | 39 | 303 | 3.948718 | 0.538462 | 0.155844 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.386139 | 303 | 18 | 44 | 16.833333 | 0.801075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.846154 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
431052d72c290d057f695aebfccff80b6ecec3c2 | 32,126 | py | Python | torchdrug/layers/conv.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 772 | 2021-08-10T05:03:46.000Z | 2022-03-31T12:48:31.000Z | torchdrug/layers/conv.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 77 | 2021-08-12T16:19:15.000Z | 2022-03-30T14:32:14.000Z | torchdrug/layers/conv.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 90 | 2021-08-11T16:27:13.000Z | 2022-03-28T11:41:53.000Z | import functools
import torch
from torch import nn
from torch.nn import functional as F
from torch.utils import checkpoint
from torch_scatter import scatter_mean, scatter_add, scatter_max
from torchdrug import data, layers, utils
from torchdrug.layers import functional
class MessagePassingBase(nn.Module):
"""
... | 41.081841 | 121 | 0.640976 | 3,995 | 32,126 | 4.927409 | 0.075094 | 0.041859 | 0.049784 | 0.02032 | 0.764084 | 0.745339 | 0.721514 | 0.690323 | 0.665481 | 0.661468 | 0 | 0.007907 | 0.263867 | 32,126 | 781 | 122 | 41.134443 | 0.824475 | 0.20183 | 0 | 0.725296 | 0 | 0 | 0.006754 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 1 | 0.088933 | false | 0.019763 | 0.01581 | 0 | 0.195652 | 0.003953 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
433e9e9e80a4303c7e141d6834d195f78e013a25 | 3,899 | py | Python | metalibm_core/core/advanced_operations.py | kalray/metalibm | e331ee4a1b3df9ebdf581453852ac019d7c1b6da | [
"MIT"
] | 27 | 2018-03-12T16:49:36.000Z | 2021-12-15T06:53:55.000Z | metalibm_core/core/advanced_operations.py | kalray/metalibm | e331ee4a1b3df9ebdf581453852ac019d7c1b6da | [
"MIT"
] | 57 | 2018-03-12T16:49:56.000Z | 2021-03-04T15:25:39.000Z | metalibm_core/core/advanced_operations.py | kalray/metalibm | e331ee4a1b3df9ebdf581453852ac019d7c1b6da | [
"MIT"
] | 4 | 2018-03-12T15:40:22.000Z | 2018-11-28T14:34:54.000Z | # -*- coding: utf-8 -*-
## @package advanced_operations
# Metalibm Description Language advanced Operations
###############################################################################
# This file is part of metalibm (https://github.com/kalray/metalibm)
############################################################... | 37.854369 | 84 | 0.620415 | 461 | 3,899 | 5.136659 | 0.444685 | 0.037162 | 0.021959 | 0.028716 | 0.105997 | 0.073902 | 0.073902 | 0.073902 | 0.055743 | 0.055743 | 0 | 0.00521 | 0.212362 | 3,899 | 102 | 85 | 38.22549 | 0.765874 | 0.542703 | 0 | 0.125 | 0 | 0 | 0.024555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0.125 | 0.03125 | 0.125 | 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 | 1 | 1 | 0 | 0 | 4 |
4a32263dc33654dd970020bbf524b4d9f6cff4b0 | 600 | py | Python | task_manager/shell.py | natszp/Tasker | 263ba508b75bca939ad5879db0ccc2a1ce1c39a4 | [
"MIT"
] | null | null | null | task_manager/shell.py | natszp/Tasker | 263ba508b75bca939ad5879db0ccc2a1ce1c39a4 | [
"MIT"
] | null | null | null | task_manager/shell.py | natszp/Tasker | 263ba508b75bca939ad5879db0ccc2a1ce1c39a4 | [
"MIT"
] | null | null | null | from manager.models import Task
from datetime import datetime
task1 = Task.objects.create(name="zrobic koalcje", description="pożywna i staropolskia", date_created=datetime.now(), importance=False)
task2 = Task.objects.create(name="zrobic zakupy", description="warzywa w Lidlu i miesny", date_created=datetime.now(), im... | 75 | 143 | 0.791667 | 79 | 600 | 5.962025 | 0.493671 | 0.093418 | 0.144374 | 0.178344 | 0.424628 | 0.309979 | 0 | 0 | 0 | 0 | 0 | 0.007233 | 0.078333 | 600 | 7 | 144 | 85.714286 | 0.844485 | 0 | 0 | 0 | 0 | 0 | 0.231667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4a3b848bde2e2dc5e18626e7c84b91315bb787ee | 351 | py | Python | sst/tests/test_utils/logger_utils.py | Adamage/tutorials | b6600c052613909dbec378fea4a69deff46004dc | [
"MIT"
] | null | null | null | sst/tests/test_utils/logger_utils.py | Adamage/tutorials | b6600c052613909dbec378fea4a69deff46004dc | [
"MIT"
] | 78 | 2021-09-20T11:48:08.000Z | 2021-10-21T07:10:39.000Z | sst/tests/test_utils/logger_utils.py | Adamage/tutorials | b6600c052613909dbec378fea4a69deff46004dc | [
"MIT"
] | null | null | null | import logging
def disable_logging():
logging.disable(logging.CRITICAL)
def enable_logging():
logging.disable(logging.NOTSET)
class MockHandler(logging.Handler):
def __init__(self, stream):
super().__init__()
self.log_records = stream
def emit(self, record):
self.log_recor... | 18.473684 | 52 | 0.692308 | 40 | 351 | 5.775 | 0.5 | 0.181818 | 0.181818 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193732 | 351 | 18 | 53 | 19.5 | 0.816254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4a493da45c1fcd153742053cfc6c491cb42b91c8 | 31 | py | Python | tests/__init__.py | toddrme2178/pandas_ext | 6e5fd5aa3e567dec641014dfaee3c9f616f7e057 | [
"MIT"
] | 4 | 2018-10-04T19:59:28.000Z | 2020-09-12T01:47:40.000Z | tests/__init__.py | toddrme2178/pandas_ext | 6e5fd5aa3e567dec641014dfaee3c9f616f7e057 | [
"MIT"
] | 11 | 2019-01-09T17:32:24.000Z | 2019-05-09T16:01:00.000Z | tests/__init__.py | toddrme2178/pandas_ext | 6e5fd5aa3e567dec641014dfaee3c9f616f7e057 | [
"MIT"
] | 1 | 2019-12-03T21:16:26.000Z | 2019-12-03T21:16:26.000Z | """Initialize test package."""
| 15.5 | 30 | 0.677419 | 3 | 31 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.75 | 0.774194 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a4ca06fd216c39984feab2385ed1e02123c4370 | 574 | py | Python | special_process/process_flume.py | linlife/Nagios | edd60b218ffcc4569a2d07fb42f4e2752fac3f15 | [
"Apache-2.0"
] | null | null | null | special_process/process_flume.py | linlife/Nagios | edd60b218ffcc4569a2d07fb42f4e2752fac3f15 | [
"Apache-2.0"
] | null | null | null | special_process/process_flume.py | linlife/Nagios | edd60b218ffcc4569a2d07fb42f4e2752fac3f15 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
import os
import sys
str1='usr/lib/jvm/java-1.7.0/bin/java -Xmx1024m -cp /opt/app/logcollector/flume/conf:/opt/app/logcollector/flume/lib/*:/opt/app/logcollector/flume/plugins.d/kafka-sink/lib/*:/opt/app/logcollector/flume/plugins.d/kafka-sink/libext/* -Djava.library.path= org.apache.flume.n... | 31.888889 | 287 | 0.702091 | 96 | 574 | 4.197917 | 0.59375 | 0.059553 | 0.17866 | 0.228288 | 0.2134 | 0.2134 | 0.2134 | 0.2134 | 0.2134 | 0 | 0 | 0.025948 | 0.127178 | 574 | 17 | 288 | 33.764706 | 0.778443 | 0.04007 | 0 | 0 | 0 | 0.083333 | 0.670909 | 0.441818 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a5972cfb6b36acac3107ef07a192ca15c0f57b1 | 8,001 | py | Python | sdk/python/pulumi_aws/servicediscovery/_inputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 260 | 2018-06-18T14:57:00.000Z | 2022-03-29T11:41:03.000Z | sdk/python/pulumi_aws/servicediscovery/_inputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 1,154 | 2018-06-19T20:38:20.000Z | 2022-03-31T19:48:16.000Z | sdk/python/pulumi_aws/servicediscovery/_inputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-06-28T03:20:27.000Z | 2022-03-29T11:41:06.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 43.016129 | 233 | 0.67679 | 1,011 | 8,001 | 5.222552 | 0.148368 | 0.091667 | 0.05303 | 0.0375 | 0.80303 | 0.710985 | 0.641856 | 0.617424 | 0.586742 | 0.568561 | 0 | 0.005979 | 0.226597 | 8,001 | 185 | 234 | 43.248649 | 0.847285 | 0.373703 | 0 | 0.40367 | 1 | 0 | 0.120206 | 0.03814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201835 | false | 0 | 0.045872 | 0 | 0.366972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a7b0c76f22f7bd0ff38b3f5cc2d57868cd3ca54 | 159 | py | Python | Image-Editor/src/Functions/Functions.py | TheCodingJungle/Python-Projects | eaec5b363b190fb013bcacbed48410c4b338fcc5 | [
"MIT"
] | 5 | 2021-02-08T13:53:16.000Z | 2021-09-20T05:14:19.000Z | Image-Editor/src/Functions/Functions.py | TheCodingJungle/Python-Projects | eaec5b363b190fb013bcacbed48410c4b338fcc5 | [
"MIT"
] | 1 | 2021-07-29T20:00:34.000Z | 2021-07-29T20:00:34.000Z | Image-Editor/src/Functions/Functions.py | TheCodingJungle/Python-Projects | eaec5b363b190fb013bcacbed48410c4b338fcc5 | [
"MIT"
] | 1 | 2021-08-31T04:22:17.000Z | 2021-08-31T04:22:17.000Z | # This file helps in imorting the functions.
from Crop import crop
from Resize import resize
from writeImage import writeImage
from readImage import readImage | 26.5 | 44 | 0.836478 | 23 | 159 | 5.782609 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 159 | 6 | 45 | 26.5 | 0.985185 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4a8ee5737d82130c4f63b558717f9be85ad0b4cb | 70 | py | Python | grortir/externals/__init__.py | wojtekPi/grortir | 0ef8b495527a4f3861e5df5db756d0ee3ed4aa6f | [
"MIT"
] | null | null | null | grortir/externals/__init__.py | wojtekPi/grortir | 0ef8b495527a4f3861e5df5db756d0ee3ed4aa6f | [
"MIT"
] | null | null | null | grortir/externals/__init__.py | wojtekPi/grortir | 0ef8b495527a4f3861e5df5db756d0ee3ed4aa6f | [
"MIT"
] | null | null | null | """Package contains modified external modules."""
# pylint: skip-file
| 23.333333 | 49 | 0.742857 | 8 | 70 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 70 | 2 | 50 | 35 | 0.83871 | 0.885714 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a97ad5e7eb4f1fb5b934b4567d0e119e4ec23a1 | 26,313 | py | Python | tests/core/test_test.py | Racerinorbit/golem | b02c7acaed6e84ff565e34e8626e835ec451e2e4 | [
"MIT"
] | null | null | null | tests/core/test_test.py | Racerinorbit/golem | b02c7acaed6e84ff565e34e8626e835ec451e2e4 | [
"MIT"
] | null | null | null | tests/core/test_test.py | Racerinorbit/golem | b02c7acaed6e84ff565e34e8626e835ec451e2e4 | [
"MIT"
] | null | null | null | import os
import sys
import pytest
from golem.core import test as test_module, settings_manager
from golem.core.project import Project
from golem.core.test import Test
SAMPLE_TEST_CONTENT = """
description = 'some description'
tags = []
data = [{'a': 'b'}]
pages = ['page1', 'page2']
def setup(data):
page1.f... | 41.178404 | 99 | 0.588226 | 3,070 | 26,313 | 4.764821 | 0.059283 | 0.078206 | 0.078958 | 0.068841 | 0.802776 | 0.777276 | 0.738515 | 0.695515 | 0.669059 | 0.63939 | 0 | 0.003349 | 0.296431 | 26,313 | 638 | 100 | 41.242947 | 0.786798 | 0.031657 | 0 | 0.647834 | 0 | 0 | 0.13447 | 0.003898 | 0 | 0 | 0 | 0 | 0.167608 | 1 | 0.05838 | false | 0.037665 | 0.028249 | 0 | 0.103578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
4ab2343efbef3578ec75b383a439660e519b94e0 | 122 | py | Python | samples/migrateADCGen1/mappers/__init__.py | daniel-dqsdatalabs/pyapacheatlas | 7fbc0ae3b3c661db07a443306995d4c416a01e1a | [
"MIT"
] | 104 | 2020-12-07T14:18:20.000Z | 2022-03-16T12:11:21.000Z | samples/migrateADCGen1/mappers/__init__.py | daniel-dqsdatalabs/pyapacheatlas | 7fbc0ae3b3c661db07a443306995d4c416a01e1a | [
"MIT"
] | 98 | 2020-12-23T20:27:02.000Z | 2022-03-10T15:44:43.000Z | samples/migrateADCGen1/mappers/__init__.py | daniel-dqsdatalabs/pyapacheatlas | 7fbc0ae3b3c661db07a443306995d4c416a01e1a | [
"MIT"
] | 47 | 2020-12-17T16:28:31.000Z | 2022-02-22T03:12:19.000Z | from .assetmapper import AssetMapper
from .assetfactory import AssetFactory
from .sqlserver import SqlServerTableMapper
| 20.333333 | 43 | 0.860656 | 12 | 122 | 8.75 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 122 | 5 | 44 | 24.4 | 0.972222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
43531c2f54d2dd69fe9cc867d839f38ee386c401 | 58 | py | Python | scripts/test_dist.py | xcgoner/gluon-exp | 432a1aafc1466720b6169bb41caabb2a217b0797 | [
"Apache-2.0"
] | null | null | null | scripts/test_dist.py | xcgoner/gluon-exp | 432a1aafc1466720b6169bb41caabb2a217b0797 | [
"Apache-2.0"
] | null | null | null | scripts/test_dist.py | xcgoner/gluon-exp | 432a1aafc1466720b6169bb41caabb2a217b0797 | [
"Apache-2.0"
] | null | null | null | import mxnet as mx
from mxnet import nd, gluon, autograd
| 14.5 | 37 | 0.775862 | 10 | 58 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 58 | 3 | 38 | 19.333333 | 0.957447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
435de3efa8dda26cee5eb9106382f815219461b4 | 10,762 | py | Python | model-optimizer/mo/front/common/partial_infer/split_test.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | 3 | 2020-02-09T23:25:37.000Z | 2021-01-19T09:44:12.000Z | model-optimizer/mo/front/common/partial_infer/split_test.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | null | null | null | model-optimizer/mo/front/common/partial_infer/split_test.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | 2 | 2020-04-18T16:24:39.000Z | 2021-01-19T09:42:19.000Z | """
Copyright (c) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 49.141553 | 114 | 0.556588 | 1,411 | 10,762 | 3.992913 | 0.11056 | 0.083067 | 0.069223 | 0.051118 | 0.78612 | 0.757011 | 0.713348 | 0.705538 | 0.695066 | 0.679624 | 0 | 0.039969 | 0.283962 | 10,762 | 218 | 115 | 49.366972 | 0.69115 | 0.062535 | 0 | 0.603659 | 0 | 0 | 0.158376 | 0 | 0 | 0 | 0 | 0 | 0.128049 | 1 | 0.097561 | false | 0 | 0.036585 | 0 | 0.182927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
43790ed6541807d42a3623ea81620f736075ba4f | 214 | py | Python | uitwerkingen/1h-importeren.py | harcel/PyDataScienceIntroNL | 8041b55203b941d8c0f189cdd19bdfd96420225c | [
"MIT"
] | null | null | null | uitwerkingen/1h-importeren.py | harcel/PyDataScienceIntroNL | 8041b55203b941d8c0f189cdd19bdfd96420225c | [
"MIT"
] | null | null | null | uitwerkingen/1h-importeren.py | harcel/PyDataScienceIntroNL | 8041b55203b941d8c0f189cdd19bdfd96420225c | [
"MIT"
] | null | null | null | import eigenlib as lib
lib.geefmeinfo()
# get the documentation (alt-tab werkt ook!)
print(lib.plus3.__doc__)
print()
print(lib.plus3(8.))
print(lib.plus3(np.array([2., 109.])))
print(lib.plus3('stykje tekst'))
| 17.833333 | 44 | 0.71028 | 34 | 214 | 4.352941 | 0.647059 | 0.216216 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.102804 | 214 | 11 | 45 | 19.454545 | 0.723958 | 0.196262 | 0 | 0 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.714286 | 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 | 1 | 0 | 4 |
43a2580c665d4b19a10c859abedc4c4be97819ca | 226 | py | Python | bbridge_sdk/entity/request/nlp_data.py | bbridge-team/bbridge-sdk-python | 10a46b9ff87a91fdebc65f74cfb30a05a10bb641 | [
"MIT"
] | null | null | null | bbridge_sdk/entity/request/nlp_data.py | bbridge-team/bbridge-sdk-python | 10a46b9ff87a91fdebc65f74cfb30a05a10bb641 | [
"MIT"
] | 1 | 2017-03-16T06:39:38.000Z | 2017-03-16T09:50:27.000Z | bbridge_sdk/entity/request/nlp_data.py | bbridge-team/bbridge-sdk-python | 10a46b9ff87a91fdebc65f74cfb30a05a10bb641 | [
"MIT"
] | 1 | 2017-04-07T01:29:55.000Z | 2017-04-07T01:29:55.000Z | class NLPData(object):
def __init__(self, sentences):
"""
:type sentences: list[str]
"""
self.__sentences = sentences
@property
def sentences(self):
return self.__sentences
| 20.545455 | 36 | 0.579646 | 21 | 226 | 5.857143 | 0.571429 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314159 | 226 | 10 | 37 | 22.6 | 0.793548 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
43a65437ec6212e13e832d9123f0c69b28eecb73 | 3,516 | py | Python | tests/test_config_validation.py | anderskaplan/pomosite | 59bc8e670c9a765953bc0535cf17de82e6fdec65 | [
"MIT"
] | null | null | null | tests/test_config_validation.py | anderskaplan/pomosite | 59bc8e670c9a765953bc0535cf17de82e6fdec65 | [
"MIT"
] | null | null | null | tests/test_config_validation.py | anderskaplan/pomosite | 59bc8e670c9a765953bc0535cf17de82e6fdec65 | [
"MIT"
] | null | null | null | import unittest
from pathlib import Path
import shutil
from xml.etree import ElementTree
from pomosite import generate, ConfigurationError
content_path = str(Path(Path(__file__).parent, "data/test_templating"))
output_dir = "temp/test_validation"
class TestConfigValidation(unittest.TestCase):
@classmethod
de... | 32.555556 | 77 | 0.498294 | 291 | 3,516 | 5.704467 | 0.247423 | 0.072289 | 0.108434 | 0.057831 | 0.768072 | 0.748193 | 0.748193 | 0.659639 | 0.659639 | 0.659639 | 0 | 0.004192 | 0.389363 | 3,516 | 107 | 78 | 32.859813 | 0.76898 | 0 | 0 | 0.530612 | 1 | 0 | 0.156428 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 1 | 0.071429 | false | 0 | 0.05102 | 0 | 0.132653 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
43bc1a799a8508aff2a9dff6ef99dbc8ae4b1eeb | 359 | py | Python | tasks/EPAM/python_course/foundation-python/l2/m2-15.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | 2 | 2022-01-19T18:01:35.000Z | 2022-02-06T06:54:38.000Z | tasks/EPAM/python_course/foundation-python/l2/m2-15.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | tasks/EPAM/python_course/foundation-python/l2/m2-15.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | # is Evaluates to true if the variables on either side of the operator point to the same object and false otherwise. x is y, here is results in 1 if id(x) equals id(y).
# is not Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y, here is not resul... | 119.666667 | 189 | 0.749304 | 76 | 359 | 3.539474 | 0.368421 | 0.074349 | 0.104089 | 0.118959 | 0.572491 | 0.572491 | 0.460967 | 0.460967 | 0.460967 | 0.460967 | 0 | 0.007018 | 0.206128 | 359 | 3 | 189 | 119.666667 | 0.936842 | 0.986072 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
78f6064317aa3269772fc5e1c4d7da5880a767bc | 304 | py | Python | csp/__init__.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | csp/__init__.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | csp/__init__.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | from .csp import CSP
from .tetris_csp import TetrisCSP
from .csp_algorithms import CSPAlgorithms
from .variable import Variable
from .constraint import Constraint
from .tetromino_puzzle_constraint import TetrominoPuzzleConstraint
from .tetris_variable import TetrisVariable
from .csp_util import CSPUtil
| 33.777778 | 66 | 0.868421 | 38 | 304 | 6.789474 | 0.394737 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 304 | 8 | 67 | 38 | 0.948529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
601a4669ee0b03503a3661d1800f5462f100acbf | 188 | py | Python | froide/upload/serializers.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | froide/upload/serializers.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | froide/upload/serializers.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Upload
class UploadSerializer(serializers.ModelSerializer):
class Meta:
model = Upload
fields = '__all__'
| 18.8 | 52 | 0.728723 | 19 | 188 | 6.947368 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218085 | 188 | 9 | 53 | 20.888889 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
603a3febf50bf50252584143949326911364fed7 | 514 | py | Python | ezidapp/models/datacite_queue.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 9 | 2020-02-26T00:45:09.000Z | 2021-11-07T23:07:06.000Z | ezidapp/models/datacite_queue.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 213 | 2020-04-07T21:36:17.000Z | 2022-03-29T21:26:04.000Z | ezidapp/models/datacite_queue.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 7 | 2020-04-07T20:04:51.000Z | 2021-08-19T01:11:55.000Z | # =============================================================================
#
# EZID :: ezidapp/models/datacite_queue.py
#
# Database model for the DataCite queue.
#
# Author:
# Greg Janee <gjanee@ucop.edu>
#
# License:
# Copyright (c) 2015, Regents of the University of California
# http://creativecommons.org... | 24.47619 | 79 | 0.509728 | 42 | 514 | 6.166667 | 0.833333 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.11284 | 514 | 20 | 80 | 25.7 | 0.559211 | 0.754864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
603e8d3db9a72dc84eeac73a6fd500ce2b340db7 | 274 | py | Python | clientes/gateway.py | lauraziebarth/vendas-backend | 026a86f1995af63f02738dd6166ebb3e145878a3 | [
"MIT"
] | null | null | null | clientes/gateway.py | lauraziebarth/vendas-backend | 026a86f1995af63f02738dd6166ebb3e145878a3 | [
"MIT"
] | null | null | null | clientes/gateway.py | lauraziebarth/vendas-backend | 026a86f1995af63f02738dd6166ebb3e145878a3 | [
"MIT"
] | null | null | null | from clientes.models import Cliente
def busca_um_cliente(cliente_id):
return Cliente.objects.get(id=cliente_id)
def busca_clientes_nao_excluidos():
return Cliente.objects.filter(excluido=False)
def busca_todos_os_clientes():
return Cliente.objects.all()
| 17.125 | 49 | 0.781022 | 38 | 274 | 5.368421 | 0.526316 | 0.117647 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131387 | 274 | 15 | 50 | 18.266667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 1 | 0 | 0 | 4 |
6076ab4045f42373d8afc9df3315a7e7b053b69b | 188 | py | Python | F_Machine_learning/2_Supervised-Learning/solutions/ex0_4b.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | Lab2-ML-tissue-classification/solutions/ex0_4b.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | Lab2-ML-tissue-classification/solutions/ex0_4b.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | def data_splitter(data, idxs):
subsample = data[idxs]
return subsample
## Note: matrices are indexed like mat[rows, cols]. If only one is provided, it is interpreted as mat[rows]. | 37.6 | 108 | 0.723404 | 29 | 188 | 4.655172 | 0.758621 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180851 | 188 | 5 | 108 | 37.6 | 0.876623 | 0.558511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
609011e393f39f606ec754ea21754db7263e684c | 45 | py | Python | run_tests.py | acud/py-swarm | 50f4b0eaa8266c721453fb44f4e2312aa5de15f0 | [
"BSD-3-Clause"
] | 1 | 2021-07-27T07:45:53.000Z | 2021-07-27T07:45:53.000Z | run_tests.py | acud/py-swarm | 50f4b0eaa8266c721453fb44f4e2312aa5de15f0 | [
"BSD-3-Clause"
] | null | null | null | run_tests.py | acud/py-swarm | 50f4b0eaa8266c721453fb44f4e2312aa5de15f0 | [
"BSD-3-Clause"
] | null | null | null | #!/bin/bash
python -m unittest test/*.py -v
| 11.25 | 31 | 0.644444 | 8 | 45 | 3.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 3 | 32 | 15 | 0.763158 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6097a63bab820b8fe6085ed3b1fc0834611b451b | 169 | py | Python | hamiltorch/__init__.py | kakodkar/hamiltorch | 0ed85dacb28a77b27b9cb9c55ed178284ca7f195 | [
"BSD-2-Clause"
] | 237 | 2019-10-06T02:41:50.000Z | 2022-03-25T19:55:56.000Z | hamiltorch/__init__.py | leoduan/hamiltorch | ac8feb278df2abd238a3d50604645a247c9610fd | [
"BSD-2-Clause"
] | 15 | 2020-01-06T17:21:49.000Z | 2022-03-10T07:35:02.000Z | hamiltorch/__init__.py | leoduan/hamiltorch | ac8feb278df2abd238a3d50604645a247c9610fd | [
"BSD-2-Clause"
] | 47 | 2019-12-20T20:05:34.000Z | 2022-01-04T15:48:44.000Z | __version__ = '0.4.0.dev1'
from .samplers import sample, sample_model, predict_model, sample_split_model, Sampler, Integrator, Metric
from .util import set_random_seed
| 33.8 | 106 | 0.810651 | 25 | 169 | 5.08 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.106509 | 169 | 4 | 107 | 42.25 | 0.81457 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
609e4f40804e523cf72716523a36f877e41b594a | 26,153 | py | Python | code/k.py | davidbradway/klassysouthkarolina | 0b4ccee55543bc759c7684d6326b5d3768eeb4f4 | [
"Apache-2.0"
] | 2 | 2017-07-10T15:39:43.000Z | 2018-12-16T20:04:47.000Z | code/k.py | davidbradway/klassysouthkarolina | 0b4ccee55543bc759c7684d6326b5d3768eeb4f4 | [
"Apache-2.0"
] | null | null | null | code/k.py | davidbradway/klassysouthkarolina | 0b4ccee55543bc759c7684d6326b5d3768eeb4f4 | [
"Apache-2.0"
] | null | null | null | kwords=['ka', 'kababish', 'kabaka', 'kabaragoya', 'kabard', 'kabardian', 'kabaya', 'kabbeljaws', 'kabel', 'kaberu', 'kabiet', 'kabirpanthi', 'kabistan', 'kabonga', 'kabuki', 'kabuli', 'kabyle', 'kachari', 'kachin', 'kachin', 'kadaga', 'kadarite', 'kadaya', 'kadayan', 'kaddish', 'kadein', 'kadikane', 'kadischi', 'kadmi'... | 13,076.5 | 26,152 | 0.651015 | 2,282 | 26,153 | 7.460999 | 0.982033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087218 | 26,153 | 1 | 26,153 | 26,153 | 0.713221 | 0 | 0 | 0 | 0 | 0 | 0.650786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
60e6008a0ea47071e572e2098c826d44ff862e6c | 171 | py | Python | mod_kvm/forms.py | T1duS/ccextractor-web | 73e704640d13c9b5d84ae2e8bc5bdcf352caaa75 | [
"MIT"
] | 19 | 2018-05-18T13:55:54.000Z | 2019-10-26T10:08:45.000Z | mod_kvm/forms.py | T1duS/ccextractor-web | 73e704640d13c9b5d84ae2e8bc5bdcf352caaa75 | [
"MIT"
] | 23 | 2018-06-04T07:10:15.000Z | 2019-10-27T18:45:21.000Z | mod_kvm/forms.py | T1duS/ccextractor-web | 73e704640d13c9b5d84ae2e8bc5bdcf352caaa75 | [
"MIT"
] | 21 | 2018-07-07T07:54:12.000Z | 2020-11-24T14:35:27.000Z | """
ccextractor-web | forms.py
Author : Saurabh Shrivastava
Email : saurabh.shrivastava54+ccextractorweb[at]gmail.com
Link : https://github.com/saurabhshri
"""
| 19 | 60 | 0.719298 | 19 | 171 | 6.473684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.152047 | 171 | 8 | 61 | 21.375 | 0.834483 | 0.94152 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
60eab9810e9971ebc6e1640abf5bd26c0f7d8b50 | 54 | py | Python | wflow-py/wflow/bmimodel.py | edwinkost/wflow | ee9291d4b556d7b61f7f13bcb972774be9a16cec | [
"MIT"
] | null | null | null | wflow-py/wflow/bmimodel.py | edwinkost/wflow | ee9291d4b556d7b61f7f13bcb972774be9a16cec | [
"MIT"
] | null | null | null | wflow-py/wflow/bmimodel.py | edwinkost/wflow | ee9291d4b556d7b61f7f13bcb972774be9a16cec | [
"MIT"
] | null | null | null | # Simple script to link to python wflow bmi models
| 10.8 | 50 | 0.740741 | 9 | 54 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 54 | 4 | 51 | 13.5 | 0.97561 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
60fc4076cf8a1b43ce9adc265eba2909a91456bf | 33 | py | Python | ox_herd/core/__init__.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 1 | 2021-11-28T20:35:31.000Z | 2021-11-28T20:35:31.000Z | ox_herd/core/__init__.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 5 | 2017-11-21T00:21:13.000Z | 2021-06-30T19:47:54.000Z | ox_herd/core/__init__.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 4 | 2021-12-17T10:58:15.000Z | 2021-12-23T14:38:40.000Z | """Core modules for ox_herd.
"""
| 11 | 28 | 0.636364 | 5 | 33 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 33 | 2 | 29 | 16.5 | 0.714286 | 0.757576 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
71cd1afdacfa6b319174fec97a3ff7763260d03b | 141 | py | Python | annotateapp/apps.py | joerodd/POnSS | 8f0317100dcd3515f24e321747e9e266760b19f0 | [
"MIT"
] | 1 | 2020-09-02T00:57:02.000Z | 2020-09-02T00:57:02.000Z | annotateapp/apps.py | joerodd/POnSS | 8f0317100dcd3515f24e321747e9e266760b19f0 | [
"MIT"
] | null | null | null | annotateapp/apps.py | joerodd/POnSS | 8f0317100dcd3515f24e321747e9e266760b19f0 | [
"MIT"
] | 1 | 2021-04-01T17:39:28.000Z | 2021-04-01T17:39:28.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class AnnotateApp2Config(AppConfig):
name = 'annotate_app2'
| 17.625 | 39 | 0.808511 | 16 | 141 | 6.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.141844 | 141 | 7 | 40 | 20.142857 | 0.876033 | 0 | 0 | 0 | 0 | 0 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 4 |
e0973d9a0b11ebb30d69d34e6189a759ca72c96e | 251 | py | Python | hardware/opentrons_hardware/firmware_bindings/message.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 235 | 2017-10-27T20:37:27.000Z | 2022-03-30T14:09:49.000Z | hardware/opentrons_hardware/firmware_bindings/message.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 8,425 | 2017-10-26T15:25:43.000Z | 2022-03-31T23:54:26.000Z | hardware/opentrons_hardware/firmware_bindings/message.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 130 | 2017-11-09T21:02:37.000Z | 2022-03-15T18:01:24.000Z | """Can message."""
from __future__ import annotations
from dataclasses import dataclass
from .arbitration_id import ArbitrationId
@dataclass(frozen=True)
class CanMessage:
"""A can message."""
arbitration_id: ArbitrationId
data: bytes
| 17.928571 | 41 | 0.752988 | 28 | 251 | 6.535714 | 0.642857 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159363 | 251 | 13 | 42 | 19.307692 | 0.867299 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e0c26560e36d59fb0f99a2f1310d2d64b6afc1bb | 102 | py | Python | Codewars/8kyu/find-the-position/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/find-the-position/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/find-the-position/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
position = lambda alphabet: f'Position of alphabet: {ord(alphabet) - ord("a") + 1}'
| 25.5 | 83 | 0.647059 | 16 | 102 | 4.125 | 0.75 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.166667 | 102 | 3 | 84 | 34 | 0.729412 | 0.137255 | 0 | 0 | 0 | 0 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e0c392565b189a84b1cb5ab883a9dc67a421970c | 15,753 | py | Python | tensorflow_quantum/core/ops/noise/noisy_sampled_expectation_op_test.py | quantummind/quantum | fd952d0362c5445eef0da4437fb3e5ebb16b7948 | [
"Apache-2.0"
] | 2 | 2021-09-24T09:41:47.000Z | 2021-10-04T20:55:09.000Z | tensorflow_quantum/core/ops/noise/noisy_sampled_expectation_op_test.py | quantummind/quantum | fd952d0362c5445eef0da4437fb3e5ebb16b7948 | [
"Apache-2.0"
] | 1 | 2021-11-15T04:47:04.000Z | 2021-11-15T04:47:04.000Z | tensorflow_quantum/core/ops/noise/noisy_sampled_expectation_op_test.py | quantummind/quantum | fd952d0362c5445eef0da4437fb3e5ebb16b7948 | [
"Apache-2.0"
] | 1 | 2021-05-10T09:12:40.000Z | 2021-05-10T09:12:40.000Z | # Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 46.606509 | 80 | 0.629213 | 1,798 | 15,753 | 5.214127 | 0.13515 | 0.09792 | 0.0736 | 0.08512 | 0.74592 | 0.727147 | 0.711893 | 0.704213 | 0.67872 | 0.66208 | 0 | 0.009739 | 0.282994 | 15,753 | 337 | 81 | 46.744807 | 0.820274 | 0.134197 | 0 | 0.599174 | 0 | 0 | 0.041 | 0 | 0 | 0 | 0 | 0 | 0.103306 | 1 | 0.020661 | false | 0 | 0.028926 | 0 | 0.053719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
e0f29fdf785e76fa0c82155c03ab6a73bc274610 | 7,530 | py | Python | followers/tests/test_views.py | HanSaloZu/drf-blog-api | 966776e59ed7699a9e94aeb85fdd6785c2532a3a | [
"MIT"
] | null | null | null | followers/tests/test_views.py | HanSaloZu/drf-blog-api | 966776e59ed7699a9e94aeb85fdd6785c2532a3a | [
"MIT"
] | null | null | null | followers/tests/test_views.py | HanSaloZu/drf-blog-api | 966776e59ed7699a9e94aeb85fdd6785c2532a3a | [
"MIT"
] | null | null | null | from urllib.parse import urlencode
from django.urls import reverse
from utils.tests import APIViewTestCase, ListAPIViewTestCase
from ..services import follow, is_following
class FollowersListAPIViewTestCase(ListAPIViewTestCase):
def url(self, parameters={}):
url = reverse("followers_list")
if p... | 35.518868 | 80 | 0.652324 | 876 | 7,530 | 5.377854 | 0.13242 | 0.053067 | 0.062407 | 0.054129 | 0.761622 | 0.755678 | 0.741032 | 0.711951 | 0.66695 | 0.656336 | 0 | 0.00717 | 0.240637 | 7,530 | 211 | 81 | 35.687204 | 0.816719 | 0.052722 | 0 | 0.657143 | 0 | 0 | 0.077122 | 0.006176 | 0 | 0 | 0 | 0 | 0.121429 | 1 | 0.135714 | false | 0.05 | 0.028571 | 0.007143 | 0.207143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
e0f7e58b1ba501b8d6abb6593275dfb88668af75 | 7,682 | py | Python | ht_web_service/apps/ht/migrations/0004_auto_20180330_1138.py | Kit-Angelov/ht-web-service | 9eabc0696634c2e5eba2c9789cc32f548d84cccb | [
"MIT"
] | 1 | 2018-11-09T07:31:41.000Z | 2018-11-09T07:31:41.000Z | ht_web_service/apps/ht/migrations/0004_auto_20180330_1138.py | Kit-Angelov/ht-web-service | 9eabc0696634c2e5eba2c9789cc32f548d84cccb | [
"MIT"
] | 5 | 2020-06-05T17:15:40.000Z | 2021-09-07T23:39:19.000Z | ht_web_service/apps/ht/migrations/0004_auto_20180330_1138.py | Kit-Angelov/ht-web-service | 9eabc0696634c2e5eba2c9789cc32f548d84cccb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-30 08:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ht', '0003_auto_20180329_1022'),
]
operations = [
migrations.AddField(
... | 44.923977 | 202 | 0.623145 | 815 | 7,682 | 5.70184 | 0.196319 | 0.060039 | 0.106736 | 0.133419 | 0.819238 | 0.819238 | 0.758984 | 0.68711 | 0.591564 | 0.499247 | 0 | 0.030813 | 0.264905 | 7,682 | 170 | 203 | 45.188235 | 0.791394 | 0.008982 | 0 | 0.564417 | 1 | 0 | 0.233114 | 0.014717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01227 | 0 | 0.030675 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
46045a2f93ad27b884b5a038fb3cb447429aa6cd | 92 | py | Python | prometheus_flask/__init__.py | lishulong16/mokitou | 96c5af6f86b2786ffda203f023b4a5f11015853f | [
"MIT"
] | 1 | 2018-04-25T01:32:15.000Z | 2018-04-25T01:32:15.000Z | prometheus_flask/__init__.py | lishulong16/mokitou | 96c5af6f86b2786ffda203f023b4a5f11015853f | [
"MIT"
] | null | null | null | prometheus_flask/__init__.py | lishulong16/mokitou | 96c5af6f86b2786ffda203f023b4a5f11015853f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@contact: lishulong.never@gmail.com
@time: 2018/5/8 上午10:17
"""
| 15.333333 | 35 | 0.597826 | 14 | 92 | 3.928571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 0.130435 | 92 | 5 | 36 | 18.4 | 0.55 | 0.891304 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
46061ef6e20ced89d91a0e256bf1797c6a0bb0d4 | 109 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/schedules/exceptions.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/schedules/exceptions.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/schedules/exceptions.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # lint-amnesty, pylint: disable=missing-module-docstring
class CourseUpdateDoesNotExist(Exception):
pass
| 27.25 | 56 | 0.807339 | 11 | 109 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 109 | 3 | 57 | 36.333333 | 0.897959 | 0.495413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
461a580983356f9d90d59948b5dc6cbbf3373922 | 113 | py | Python | decloud/__init__.py | CNES/decloud | 6b06ae98bfe68821b4ebd0e7ba06723809cb9b42 | [
"Apache-2.0"
] | 8 | 2022-02-25T13:15:07.000Z | 2022-03-20T18:29:49.000Z | decloud/__init__.py | CNES/decloud | 6b06ae98bfe68821b4ebd0e7ba06723809cb9b42 | [
"Apache-2.0"
] | 1 | 2022-02-25T13:21:33.000Z | 2022-02-25T13:21:33.000Z | decloud/__init__.py | CNES/decloud | 6b06ae98bfe68821b4ebd0e7ba06723809cb9b42 | [
"Apache-2.0"
] | 1 | 2022-03-31T23:43:12.000Z | 2022-03-31T23:43:12.000Z | """
Decloud provides all the things to perform experiments with Sentinel-1/2, and targets image de-clouding.
"""
| 28.25 | 104 | 0.761062 | 17 | 113 | 5.058824 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.141593 | 113 | 3 | 105 | 37.666667 | 0.865979 | 0.920354 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1ca0f9cc3279f0794201d0d2445a81f22a943387 | 62 | py | Python | muttdown/__main__.py | guygma/muttdown | cd596cfdd976cd719cb16e247c574b2778050f6f | [
"ISC"
] | 50 | 2015-07-02T17:55:53.000Z | 2021-11-20T18:53:55.000Z | muttdown/__main__.py | guygma/muttdown | cd596cfdd976cd719cb16e247c574b2778050f6f | [
"ISC"
] | 19 | 2015-06-03T17:08:04.000Z | 2020-09-16T21:19:56.000Z | muttdown/__main__.py | guygma/muttdown | cd596cfdd976cd719cb16e247c574b2778050f6f | [
"ISC"
] | 11 | 2015-06-01T15:27:58.000Z | 2019-12-03T20:11:00.000Z | import sys
from muttdown.main import main
sys.exit(main())
| 8.857143 | 30 | 0.741935 | 10 | 62 | 4.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 62 | 6 | 31 | 10.333333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
1ca3e17a607ab3b8327c02023ef54e15e792ed45 | 91 | py | Python | Accessible_Campus-master/Geodjango/firstgis/apps.py | zzrose/Campus_Locator | 9262968165c198c15cffd0b3165c97b26bdafed2 | [
"Apache-2.0"
] | 1 | 2019-02-25T23:17:29.000Z | 2019-02-25T23:17:29.000Z | Geodjango/firstgis/apps.py | Harrymissi/Accessible_Campus | e20c14a18809e86e90b4aff528d2966a5b36f416 | [
"Apache-2.0"
] | null | null | null | Geodjango/firstgis/apps.py | Harrymissi/Accessible_Campus | e20c14a18809e86e90b4aff528d2966a5b36f416 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class FirstgisConfig(AppConfig):
name = 'firstgis'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 | 1 | 0 | 0 | 4 |
1cba67972eae70c38a5f159726a88bc4b37b549e | 458 | py | Python | network/serializers.py | pawangeek/PollsChain | 6059796c671d3250f2cd8bb36171bf54013d176e | [
"MIT"
] | null | null | null | network/serializers.py | pawangeek/PollsChain | 6059796c671d3250f2cd8bb36171bf54013d176e | [
"MIT"
] | null | null | null | network/serializers.py | pawangeek/PollsChain | 6059796c671d3250f2cd8bb36171bf54013d176e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Transaction, Block, Peer
class TransactionSerializer(serializers.ModelSerializer):
class Meta:
model = Transaction
fields='__all__'
class BlockSerializer(serializers.ModelSerializer):
class Meta:
model=Block
fields='... | 19.913043 | 57 | 0.696507 | 42 | 458 | 7.380952 | 0.47619 | 0.251613 | 0.3 | 0.33871 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224891 | 458 | 22 | 58 | 20.818182 | 0.873239 | 0 | 0 | 0.357143 | 0 | 0 | 0.054585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 4 |
1cf675b9c4f0372a456cb39d55b19295e1898797 | 276 | py | Python | ShopperMiles/vendor/admin_export/urls.py | juansahe/shoppy | 265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5 | [
"MIT"
] | null | null | null | ShopperMiles/vendor/admin_export/urls.py | juansahe/shoppy | 265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5 | [
"MIT"
] | null | null | null | ShopperMiles/vendor/admin_export/urls.py | juansahe/shoppy | 265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5 | [
"MIT"
] | null | null | null | # from django.conf.urls import url, patterns
# from django.contrib.admin.views.decorators import staff_member_required
# from .views import AdminExport
# view = staff_member_required(AdminExport.as_view())
# urlpatterns = [
# url(r'^export/$', view, name="export"),
# ]
| 27.6 | 73 | 0.735507 | 35 | 276 | 5.657143 | 0.6 | 0.10101 | 0.191919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 276 | 9 | 74 | 30.666667 | 0.825 | 0.923913 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e81fe97b06635861c4434a4d7f1849781b8f46a5 | 425 | py | Python | flex/void.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | flex/void.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | flex/void.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | import builtins
class VoidType(object):
__slots__ = ()
def __new__(cls):
if not hasattr(builtins, 'Void'):
builtins.Void = super(VoidType, cls).__new__(cls)
return builtins.Void
def __len__(self):
return 0
def __bool__(self):
return False
__nonzero__ = __bool__
# def __getnewargs__(self):
# re... | 13.709677 | 52 | 0.684706 | 52 | 425 | 4.788462 | 0.461538 | 0.200803 | 0.11245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.195294 | 425 | 30 | 53 | 14.166667 | 0.725146 | 0.084706 | 0 | 0.117647 | 0 | 0 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.235294 | 0.823529 | 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 | 1 | 0 | 0 | 4 |
e820d6a0b3d0db228100e64bfb41667b2ef6fb5f | 1,693 | py | Python | tests/test_160-security_policies.py | britive/python-api | 2daa7693f1d4adf03626abd78598e30f62b6e2e6 | [
"MIT"
] | null | null | null | tests/test_160-security_policies.py | britive/python-api | 2daa7693f1d4adf03626abd78598e30f62b6e2e6 | [
"MIT"
] | null | null | null | tests/test_160-security_policies.py | britive/python-api | 2daa7693f1d4adf03626abd78598e30f62b6e2e6 | [
"MIT"
] | null | null | null | from .cache import * # will also import some globals like `britive`
def test_create(cached_security_policy):
assert isinstance(cached_security_policy, dict)
def test_list(cached_security_policy):
policies = britive.security_policies.list()
assert isinstance(policies, list)
assert cached_security_po... | 35.270833 | 97 | 0.763142 | 220 | 1,693 | 5.572727 | 0.186364 | 0.2969 | 0.277325 | 0.161501 | 0.628059 | 0.628059 | 0.628059 | 0.430669 | 0.430669 | 0.430669 | 0 | 0.006118 | 0.131128 | 1,693 | 47 | 98 | 36.021277 | 0.827328 | 0.025989 | 0 | 0.25 | 0 | 0 | 0.055252 | 0 | 0 | 0 | 0 | 0 | 0.34375 | 1 | 0.21875 | false | 0 | 0.03125 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1c1576961bfaf65770fd47940e1dc49e91254e5d | 209 | py | Python | pacote-download/atividades-python/fatorial.py | bigmaster112/matheus-python | 865a5420c9d5f5f38f7bba67aea0841c23896cee | [
"MIT"
] | null | null | null | pacote-download/atividades-python/fatorial.py | bigmaster112/matheus-python | 865a5420c9d5f5f38f7bba67aea0841c23896cee | [
"MIT"
] | null | null | null | pacote-download/atividades-python/fatorial.py | bigmaster112/matheus-python | 865a5420c9d5f5f38f7bba67aea0841c23896cee | [
"MIT"
] | null | null | null | numero = int(input('Digite um numero'))
fatorial = numero
contador = 1
while (numero - contador) > 1:
fatorial = fatorial * (numero-contador)
contador +=1
print('O fatorial de ', numero,'é', fatorial) | 26.125 | 45 | 0.674641 | 27 | 209 | 5.222222 | 0.481481 | 0.297872 | 0.312057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.181818 | 209 | 8 | 45 | 26.125 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.147619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 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 | 4 |
1c264ac43a5f389b625f961b872cdca85ac616a3 | 412 | py | Python | pystreamable/exceptions.py | jernejovc/pystreamable | 78e342dd502bedac6214781bf4f4f85f5a444471 | [
"MIT"
] | 9 | 2017-08-09T19:29:16.000Z | 2021-11-29T02:50:24.000Z | pystreamable/exceptions.py | jernejovc/pystreamable | 78e342dd502bedac6214781bf4f4f85f5a444471 | [
"MIT"
] | 3 | 2017-10-11T18:41:05.000Z | 2018-10-22T09:04:12.000Z | pystreamable/exceptions.py | jernejovc/pystreamable | 78e342dd502bedac6214781bf4f4f85f5a444471 | [
"MIT"
] | 3 | 2019-08-25T13:17:25.000Z | 2021-01-22T18:11:10.000Z | from __future__ import print_function
class StreamableApiException(Exception):
"""
Base class for all Streamable API wrapper exceptions.
"""
pass
class StreamableApiServerException(StreamableApiException):
"""
Streamable API server exception.
"""
pass
class StreamableApiClientExcep... | 17.913043 | 59 | 0.711165 | 33 | 412 | 8.727273 | 0.606061 | 0.135417 | 0.243056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216019 | 412 | 22 | 60 | 18.727273 | 0.891641 | 0.288835 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.428571 | 0.142857 | 0 | 0.571429 | 0.142857 | 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 | 1 | 0 | 0 | 4 |
1c3a864ae8eabfe2c5b0f38f8dad8915a9ad63fe | 918 | py | Python | fbdplc/wires.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | 4 | 2021-09-18T13:32:57.000Z | 2022-03-15T22:13:56.000Z | fbdplc/wires.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | null | null | null | fbdplc/wires.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | 2 | 2021-12-06T20:19:04.000Z | 2022-03-15T22:13:58.000Z | '''
Edges in a block diagram computational graph. The edges themselves don't have direction,
but the ports that they attach to may.
'''
class WireConnection:
pass
class NamedConnection(WireConnection):
def __init__(self, target_uid: int, target_port: str):
self.target_uid = target_uid
self.t... | 24.810811 | 95 | 0.686275 | 125 | 918 | 4.784 | 0.464 | 0.133779 | 0.130435 | 0.083612 | 0.254181 | 0.123746 | 0.123746 | 0 | 0 | 0 | 0 | 0.001403 | 0.223312 | 918 | 36 | 96 | 25.5 | 0.837307 | 0.279956 | 0 | 0.235294 | 0 | 0 | 0.156151 | 0.154574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.058824 | 0 | 0.117647 | 0.647059 | 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 | 1 | 1 | 0 | 0 | 4 |
1c470f3b148dd13ad815f7979d810003cd90888e | 1,031 | py | Python | tests/datastructures/test_shuffle.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 5 | 2018-12-03T19:18:50.000Z | 2021-05-31T07:17:06.000Z | tests/datastructures/test_shuffle.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 1 | 2017-06-07T04:33:46.000Z | 2017-06-07T04:33:46.000Z | tests/datastructures/test_shuffle.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 1 | 2017-06-06T07:29:07.000Z | 2017-06-06T07:29:07.000Z | """Tests for the :mod:`campy.datastructures.shuffle` module."""
# These reference shuffled values are being generated by Python running
# 3.7.2 (default, Dec 27 2018, 07:35:06) \n[Clang 10.0.0 (clang-1000.11.45.5)]
# on macOS 10.14.2
from campy.datastructures.shuffle import shuffle
import random
def test_shuffle_li... | 22.413043 | 84 | 0.681862 | 158 | 1,031 | 4.335443 | 0.449367 | 0.091971 | 0.183942 | 0.131387 | 0.322628 | 0.148905 | 0.148905 | 0.148905 | 0.148905 | 0.148905 | 0 | 0.078089 | 0.167798 | 1,031 | 45 | 85 | 22.911111 | 0.72028 | 0.403492 | 0 | 0.294118 | 1 | 0 | 0.069884 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.294118 | true | 0 | 0.117647 | 0 | 0.411765 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1c5c01689b84baac6ad976451aff4b8f71dcb9ea | 191 | py | Python | psi/templates/io/__init__.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | 2 | 2020-07-10T07:49:52.000Z | 2020-11-15T13:20:52.000Z | psi/templates/io/__init__.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | 1 | 2020-04-20T20:37:48.000Z | 2020-04-20T20:37:48.000Z | psi/templates/io/__init__.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | 3 | 2020-04-17T15:03:36.000Z | 2022-01-14T23:19:29.000Z | # Configurations in this directory prefixed with _ are meant to be copied using
# `psi-config creaate-io` and modified. Configurations without the underscore
# prefix can be loaded directly.
| 47.75 | 79 | 0.801047 | 27 | 191 | 5.62963 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151832 | 191 | 3 | 80 | 63.666667 | 0.938272 | 0.963351 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1c65c8302cb402e20550924e947dda41320f571a | 559 | py | Python | email_manager/admin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | email_manager/admin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | email_manager/admin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | from django.contrib import admin
from email_manager.models import EmailLog
@admin.register(EmailLog)
class EmailLogAdmin(admin.ModelAdmin):
list_per_page = 500
ordering = ('-created',)
list_display = ('created', 'subject', 'recipient_list', 'from_email', 'probably_sent',)
search_fields = ('recipient_... | 26.619048 | 91 | 0.708408 | 68 | 559 | 5.602941 | 0.558824 | 0.047244 | 0.165354 | 0.188976 | 0.338583 | 0.338583 | 0.338583 | 0.23622 | 0.23622 | 0 | 0 | 0.006579 | 0.184258 | 559 | 20 | 92 | 27.95 | 0.828947 | 0 | 0 | 0.214286 | 0 | 0 | 0.13059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.214286 | 0.928571 | 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 | 1 | 1 | 0 | 0 | 4 |
1c75d6064875274b31b97ad8cae1f13bfb2d5de5 | 2,379 | py | Python | tardis/default_settings/__init__.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | tardis/default_settings/__init__.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | tardis/default_settings/__init__.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=wildcard-import
# first apps, so other files can add to INSTALLED_APPS
from tardis.default_settings.apps import *
from tardis.default_settings.admins import *
from tardis.default_settings.analytics import *
from tardis.default_settings.auth import *
from tardis.default_settings.caches import *
from ... | 39 | 72 | 0.704918 | 287 | 2,379 | 5.66899 | 0.358885 | 0.172096 | 0.292563 | 0.43024 | 0.534112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003171 | 0.204708 | 2,379 | 60 | 73 | 39.65 | 0.856765 | 0.057167 | 0 | 0 | 0 | 0 | 0.064314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.58 | 0 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1c778325f7fa92db35a01d5d91f9f2732c6f24e7 | 2,158 | py | Python | DailyProgrammer/DP20150410W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20150410W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20150410W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[Weekly #22] Machine Learning
https://www.reddit.com/r/dailyprogrammer/comments/3206mk/weekly_22_machine_learning/
# [](#WeeklyIcon) Asimov would be proud!
[Machine learning](http://en.wikipedia.org/wiki/Machine_learning) is a diverse field spanning from optimization and
data classification, to computer vision an... | 56.789474 | 125 | 0.7924 | 323 | 2,158 | 5.204334 | 0.55418 | 0.05354 | 0.035693 | 0.038667 | 0.150506 | 0.088043 | 0.047591 | 0 | 0 | 0 | 0 | 0.012036 | 0.114458 | 2,158 | 37 | 126 | 58.324324 | 0.867609 | 0.966636 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1c96ecd4e43bb877ddf87f71d953cf922f10d8ed | 247 | py | Python | openpds/core/management/commands/flumoji_firebase.py | eschloss/FluFuture | 385506f5d12201b3909d08e42fb1ebb5c0cb323f | [
"MIT"
] | null | null | null | openpds/core/management/commands/flumoji_firebase.py | eschloss/FluFuture | 385506f5d12201b3909d08e42fb1ebb5c0cb323f | [
"MIT"
] | null | null | null | openpds/core/management/commands/flumoji_firebase.py | eschloss/FluFuture | 385506f5d12201b3909d08e42fb1ebb5c0cb323f | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
import logging
from openpds.questions.tasks import howAreYouFeelingTodayAllUsers
class Command(BaseCommand):
def handle(self, *args, **kwargs):
howAreYouFeelingTodayAllUsers.delay()
| 30.875 | 65 | 0.801619 | 25 | 247 | 7.92 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121457 | 247 | 7 | 66 | 35.285714 | 0.912442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
98cd4bedbf051d709881b2f5aecbf5d8bd582be8 | 508 | py | Python | oops_fhir/r4/value_set/loinccodes.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/loinccodes.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/loinccodes.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.valueset import ValueSet as _ValueSet
from oops_fhir.utils import ValueSet
__all__ = ["LOINCCodes"]
_resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json"))
class LOINCCodes(ValueSet):
"""
LOINC Codes
This value set includes all LOINC codes
... | 17.517241 | 69 | 0.698819 | 64 | 508 | 5.3125 | 0.640625 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012469 | 0.21063 | 508 | 28 | 70 | 18.142857 | 0.835411 | 0.322835 | 0 | 0 | 0 | 0 | 0.047468 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
98e783cd42569d2e132137c2f145ad0161ef41c3 | 201 | py | Python | tests/conftest.py | araneto/foodelivery | 9c8c587307286d9f0b79206bf8464d8fff9073fa | [
"MIT"
] | null | null | null | tests/conftest.py | araneto/foodelivery | 9c8c587307286d9f0b79206bf8464d8fff9073fa | [
"MIT"
] | 1 | 2020-09-14T22:09:03.000Z | 2020-09-14T22:09:03.000Z | tests/conftest.py | araneto/foodelivery | 9c8c587307286d9f0b79206bf8464d8fff9073fa | [
"MIT"
] | null | null | null | """
Run make install before run tests
"""
import pytest
from foodelivery.app import create_app
@pytest.fixture(scope="module")
def app():
"""Instance of Main flask app"""
return create_app()
| 16.75 | 38 | 0.706468 | 28 | 201 | 5 | 0.714286 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169154 | 201 | 11 | 39 | 18.272727 | 0.838323 | 0.298507 | 0 | 0 | 0 | 0 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
98f753d1c4e5758d90059e57e232a2987db844a3 | 123 | py | Python | lectures/code/dict_print.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/dict_print.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/dict_print.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | >>> d = {1: 'one', 2: 'two', 3: 'three'}
>>> for key, value in d.items():
... print key, value
...
1 one
2 two
3 three
| 15.375 | 40 | 0.495935 | 22 | 123 | 2.772727 | 0.590909 | 0.131148 | 0.163934 | 0.262295 | 0.459016 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.243902 | 123 | 7 | 41 | 17.571429 | 0.591398 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
98fe2100e443a72cbbb6f3d74c7b430f232ca6d3 | 239 | py | Python | textToBraille/admin.py | JoelVG/text-to-braille | 9e6f5c7337d2d402378cd96f9476eb39d7b82328 | [
"MIT"
] | null | null | null | textToBraille/admin.py | JoelVG/text-to-braille | 9e6f5c7337d2d402378cd96f9476eb39d7b82328 | [
"MIT"
] | 1 | 2022-02-06T21:12:48.000Z | 2022-02-06T21:12:48.000Z | textToBraille/admin.py | JoelVG/text-to-braille | 9e6f5c7337d2d402378cd96f9476eb39d7b82328 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Translation
# Register your models here.
class TranslationAdmin(admin.ModelAdmin):
list_display = ('text', 'braille_translation')
admin.site.register(Translation, TranslationAdmin) | 29.875 | 50 | 0.803347 | 27 | 239 | 7.037037 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108787 | 239 | 8 | 51 | 29.875 | 0.892019 | 0.108787 | 0 | 0 | 0 | 0 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
c7086ad17884ddb1f62e33bef40213c6c10d2055 | 883 | py | Python | baselines/EMNLP2019/uri_features.py | ParikhKadam/knowledge-net | abc4ed3ebb88bfde8c1f02709371324ae6347ba0 | [
"MIT"
] | 240 | 2019-09-13T21:33:24.000Z | 2022-03-28T02:35:00.000Z | baselines/EMNLP2019/uri_features.py | ParikhKadam/knowledge-net | abc4ed3ebb88bfde8c1f02709371324ae6347ba0 | [
"MIT"
] | 8 | 2020-01-28T23:04:59.000Z | 2021-05-21T16:01:28.000Z | baselines/EMNLP2019/uri_features.py | ParikhKadam/knowledge-net | abc4ed3ebb88bfde8c1f02709371324ae6347ba0 | [
"MIT"
] | 34 | 2019-09-21T00:19:37.000Z | 2022-02-04T19:59:23.000Z | import itertools
import numpy as np
import networkx as nx
import vocab
def coref_score(instance, property_id):
return [ instance.subject_entity["coref_score"], instance.object_entity["coref_score"] ]
def el_score(instance, property_id):
return [ instance.subject_entity["el_score"], instance.object_entity["el_scor... | 31.535714 | 90 | 0.775764 | 126 | 883 | 5.134921 | 0.325397 | 0.092736 | 0.139104 | 0.185471 | 0.366306 | 0.323029 | 0.15456 | 0.15456 | 0 | 0 | 0 | 0.005161 | 0.12231 | 883 | 28 | 91 | 31.535714 | 0.829677 | 0 | 0 | 0 | 0 | 0 | 0.048643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.173913 | 0.217391 | 0.695652 | 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 | 1 | 1 | 0 | 0 | 4 |
c71c65dfc54a49c0ce16a8b9dccc0de2db33751d | 881 | py | Python | python/dgl/_dataloading/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 9,516 | 2018-12-08T22:11:31.000Z | 2022-03-31T13:04:33.000Z | python/dgl/_dataloading/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 2,494 | 2018-12-08T22:43:00.000Z | 2022-03-31T21:16:27.000Z | python/dgl/_dataloading/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 2,529 | 2018-12-08T22:56:14.000Z | 2022-03-31T13:07:41.000Z | """The ``dgl.dataloading`` package contains:
* Data loader classes for iterating over a set of nodes or edges in a graph and generates
computation dependency via neighborhood sampling methods.
* Various sampler classes that perform neighborhood sampling for multi-layer GNNs.
* Negative samplers for link prediction... | 30.37931 | 89 | 0.77412 | 120 | 881 | 5.641667 | 0.708333 | 0.059084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164586 | 881 | 28 | 90 | 31.464286 | 0.919837 | 0.676504 | 0 | 0 | 1 | 0 | 0.02518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c738c4999ed8cdf2e8966d52f4e0656d6ad275a7 | 866 | py | Python | bat/report/report.py | XUANLANcognition/Bat | 4ee2e81aa4e41b8a355701fa6d24a1e00115c3a4 | [
"BSD-2-Clause"
] | null | null | null | bat/report/report.py | XUANLANcognition/Bat | 4ee2e81aa4e41b8a355701fa6d24a1e00115c3a4 | [
"BSD-2-Clause"
] | null | null | null | bat/report/report.py | XUANLANcognition/Bat | 4ee2e81aa4e41b8a355701fa6d24a1e00115c3a4 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- config : utf-8 -*-
'help'
class Report(object):
"""
You can wirte the report has created into a html file.
"""
def __init__(self, headtitle, content):
self.headtitle = 'Bat''s' + headtitle
self.content = content
def replace(self):
self.cont... | 25.470588 | 78 | 0.553118 | 99 | 866 | 4.757576 | 0.444444 | 0.280255 | 0.127389 | 0.186837 | 0.369427 | 0.131635 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.266744 | 866 | 33 | 79 | 26.242424 | 0.733858 | 0.12933 | 0 | 0.111111 | 0 | 0 | 0.071527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c75374fcb3ef0a237f3413fc6e0302c93e408590 | 19,165 | py | Python | epg/epgcpmg.py | jtamir/mri-sim-py | f606b835412bfc6a84dc0a8124807ea0979f663c | [
"MIT"
] | 5 | 2019-09-06T18:51:56.000Z | 2020-05-26T10:17:29.000Z | epg/epgcpmg.py | jtamir/mri-sim-py | f606b835412bfc6a84dc0a8124807ea0979f663c | [
"MIT"
] | null | null | null | epg/epgcpmg.py | jtamir/mri-sim-py | f606b835412bfc6a84dc0a8124807ea0979f663c | [
"MIT"
] | 5 | 2017-02-19T14:28:43.000Z | 2020-06-10T07:42:54.000Z | #!/usr/bin/python
# EPG CPMG simulation code, based off of Matlab scripts from Brian Hargreaves <bah@stanford.edu>
# 2015 Jonathan Tamir <jtamir@eecs.berkeley.edu>
import numpy as np
from warnings import warn
def rf(FpFmZ, alpha):
"Same as rf2, but only returns FpFmZ"""
return rf2(FpFmZ, alpha)[0]
def rf2(F... | 29.081942 | 145 | 0.58899 | 3,117 | 19,165 | 3.52743 | 0.091434 | 0.025466 | 0.021282 | 0.020009 | 0.801273 | 0.753342 | 0.716417 | 0.677035 | 0.65075 | 0.622556 | 0 | 0.04724 | 0.279833 | 19,165 | 658 | 146 | 29.12614 | 0.749384 | 0.365249 | 0 | 0.550877 | 0 | 0 | 0.044641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119298 | false | 0.014035 | 0.010526 | 0.007018 | 0.249123 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
c75f9945d45f38861b45531d76bfde2007d0d0d4 | 827 | py | Python | website/migrations/0006_auto_20181006_2147.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 4 | 2021-03-17T21:09:18.000Z | 2022-03-03T17:10:51.000Z | website/migrations/0006_auto_20181006_2147.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 15 | 2018-08-21T19:01:06.000Z | 2022-03-11T23:29:26.000Z | website/migrations/0006_auto_20181006_2147.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 2 | 2018-08-21T18:46:36.000Z | 2021-11-13T16:23:53.000Z | # Generated by Django 2.1.2 on 2018-10-06 20:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0005_committeerolemember_role_short_name'),
]
operations = [
migrations.AlterModelOptions(
name='committeerolemember',
... | 27.566667 | 71 | 0.600967 | 69 | 827 | 7.028986 | 0.550725 | 0.22268 | 0.25567 | 0.197938 | 0.136082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032203 | 0.286578 | 827 | 29 | 72 | 28.517241 | 0.789831 | 0.054414 | 0 | 0.347826 | 1 | 0 | 0.297436 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c771695886348bb3e9603b85ca5837f2f876019e | 148 | py | Python | plnx_demo_parameterize/plnx_sanity/conf.py | Xilinx/roast-examples | 2d39194b6c8bc6e2efc793f1256c530d40c898d2 | [
"MIT"
] | null | null | null | plnx_demo_parameterize/plnx_sanity/conf.py | Xilinx/roast-examples | 2d39194b6c8bc6e2efc793f1256c530d40c898d2 | [
"MIT"
] | null | null | null | plnx_demo_parameterize/plnx_sanity/conf.py | Xilinx/roast-examples | 2d39194b6c8bc6e2efc793f1256c530d40c898d2 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2020 Xilinx, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
#
plnx_package_boot = True # Generate Package Boot Images
| 21.142857 | 56 | 0.743243 | 20 | 148 | 5.4 | 0.9 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.162162 | 148 | 6 | 57 | 24.666667 | 0.83871 | 0.743243 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c78ee4155340a40daab30f067efa7855099612dd | 83 | py | Python | myweb/pub_form/form_upload.py | marktiu7/Web | 206876df425699e2e345aea8afc4efd27362f519 | [
"Apache-2.0"
] | null | null | null | myweb/pub_form/form_upload.py | marktiu7/Web | 206876df425699e2e345aea8afc4efd27362f519 | [
"Apache-2.0"
] | null | null | null | myweb/pub_form/form_upload.py | marktiu7/Web | 206876df425699e2e345aea8afc4efd27362f519 | [
"Apache-2.0"
] | null | null | null | from django import forms
class UploadFile(forms.Form):
file=forms.FileField()
| 16.6 | 29 | 0.759036 | 11 | 83 | 5.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 4 | 30 | 20.75 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 4 |
c79fe6b29df0aed29daf66fe94c63ca18e713983 | 198 | py | Python | scripts/arcrest/agol/__init__.py | datastark/crime-analysis-toolbox | af45e4ba59284d78b1c7d3e208a05e5001d024dd | [
"Apache-2.0"
] | 5 | 2019-01-12T13:57:52.000Z | 2021-05-04T01:24:53.000Z | scripts/arcrest/agol/__init__.py | datastark/crime-analysis-toolbox | af45e4ba59284d78b1c7d3e208a05e5001d024dd | [
"Apache-2.0"
] | null | null | null | scripts/arcrest/agol/__init__.py | datastark/crime-analysis-toolbox | af45e4ba59284d78b1c7d3e208a05e5001d024dd | [
"Apache-2.0"
] | 1 | 2018-08-11T19:09:57.000Z | 2018-08-11T19:09:57.000Z | from __future__ import absolute_import
from .services import FeatureService, FeatureLayer, TableLayer, TiledService
from . import helperservices
from ._uploads import Uploads
__version__ = "3.5.3"
| 28.285714 | 76 | 0.828283 | 23 | 198 | 6.695652 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.116162 | 198 | 6 | 77 | 33 | 0.862857 | 0 | 0 | 0 | 0 | 0 | 0.025253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
c7b02e3aa2da4eb60a526c0d6e2fa5915fcfb1af | 40,072 | py | Python | game/gameplay/level.py | chadfraser/CluGame | 090f3749e102c5331136298356d543c8b4e8a9a5 | [
"MIT"
] | 2 | 2018-05-17T11:14:19.000Z | 2018-05-24T21:16:07.000Z | game/gameplay/level.py | chadfraser/CluGame | 090f3749e102c5331136298356d543c8b4e8a9a5 | [
"MIT"
] | null | null | null | game/gameplay/level.py | chadfraser/CluGame | 090f3749e102c5331136298356d543c8b4e8a9a5 | [
"MIT"
] | null | null | null | import pygame
import random
from game.tools.asset_cache import getImage
import game.tools.constants as c
class Level:
"""Create a new level object.
This class should not be called directly. Only call its subclasses.
Attributes:
rubberTilesHorizontal: A list of tuples indicating which columns an... | 69.089655 | 119 | 0.474147 | 5,741 | 40,072 | 3.291413 | 0.056262 | 0.007621 | 0.020375 | 0.069644 | 0.7817 | 0.757462 | 0.748254 | 0.712214 | 0.67935 | 0.642252 | 0 | 0.125959 | 0.336095 | 40,072 | 579 | 120 | 69.208981 | 0.584311 | 0.318751 | 0 | 0.155689 | 0 | 0 | 0.00784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02994 | false | 0 | 0.011976 | 0 | 0.065868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
c7b3f98bfbcc3eb8db3d0f88535ff41566e41fcd | 185 | py | Python | budgetbuddy/stocks/apps.py | michaelqknguyen/Budget-Buddy | d1d25648d29f9b398b399e63b187b54daf3be521 | [
"MIT"
] | null | null | null | budgetbuddy/stocks/apps.py | michaelqknguyen/Budget-Buddy | d1d25648d29f9b398b399e63b187b54daf3be521 | [
"MIT"
] | null | null | null | budgetbuddy/stocks/apps.py | michaelqknguyen/Budget-Buddy | d1d25648d29f9b398b399e63b187b54daf3be521 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class StocksConfig(AppConfig):
name = 'budgetbuddy.stocks'
verbose_name = _('Stocks')
| 23.125 | 54 | 0.767568 | 22 | 185 | 6.272727 | 0.727273 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151351 | 185 | 7 | 55 | 26.428571 | 0.878981 | 0 | 0 | 0 | 0 | 0 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 4 |
c7bbd120d8b2d28d027984c87205f445484d5dfd | 759 | py | Python | stage/factory/base.py | daveshed/linearstage | 79d34d02482cd6c34102d07f29f6d2c7b7088c08 | [
"MIT"
] | null | null | null | stage/factory/base.py | daveshed/linearstage | 79d34d02482cd6c34102d07f29f6d2c7b7088c08 | [
"MIT"
] | null | null | null | stage/factory/base.py | daveshed/linearstage | 79d34d02482cd6c34102d07f29f6d2c7b7088c08 | [
"MIT"
] | null | null | null | #pylint: disable=missing-docstring
#pyling: enable=missing-docstring
import abc
class StageFactoryBase(abc.ABC):
"""
The factory base class that provides necessary objects required to
instantiate a Stage object.
"""
@abc.abstractproperty
def minimum_position(self):
"""The stage minimum... | 23 | 75 | 0.635046 | 86 | 759 | 5.569767 | 0.5 | 0.158664 | 0.183716 | 0.175365 | 0.150313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28195 | 759 | 32 | 76 | 23.71875 | 0.878899 | 0.43083 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c7e9561ef48f0b334718cd86a746e2aeb7d60039 | 532 | py | Python | wagtail_editor_extensions/utils/feature.py | mattdood/wagtail-editor-extensions | ecd60ffa6adaa77470f8b1081f4a6a2d994e7f7c | [
"MIT"
] | null | null | null | wagtail_editor_extensions/utils/feature.py | mattdood/wagtail-editor-extensions | ecd60ffa6adaa77470f8b1081f4a6a2d994e7f7c | [
"MIT"
] | null | null | null | wagtail_editor_extensions/utils/feature.py | mattdood/wagtail-editor-extensions | ecd60ffa6adaa77470f8b1081f4a6a2d994e7f7c | [
"MIT"
] | null | null | null | from wagtail_editor_extensions.conf import get_setting
def get_feature_choices(feature_setting):
return tuple(get_setting(feature_setting).items())
def get_feature_name(feature_name, name):
feature = '%s_%s' % (feature_name, name)
return feature
def get_feature_name_upper(feature_name, name):
retu... | 28 | 103 | 0.791353 | 77 | 532 | 5.064935 | 0.272727 | 0.310256 | 0.179487 | 0.130769 | 0.364103 | 0.323077 | 0.174359 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 532 | 18 | 104 | 29.555556 | 0.831557 | 0 | 0 | 0 | 0 | 0 | 0.009399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.3 | 0.9 | 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 | 1 | 0 | 0 | 4 |
c7f524dc0b5952d8ed6eeb0a6f5f053697b986c6 | 3,507 | py | Python | COLORFUL-Python/colorful-server/run_examples.py | FFFFOX/COLORFUL | 3a6fab6184f94b0a3a5b3e56a649cca076ddfc91 | [
"MIT"
] | 77 | 2021-12-09T03:14:31.000Z | 2022-03-06T06:06:38.000Z | COLORFUL-Python/colorful-server/run_examples.py | FFFFOX/COLORFUL | 3a6fab6184f94b0a3a5b3e56a649cca076ddfc91 | [
"MIT"
] | 1 | 2021-12-09T03:22:23.000Z | 2021-12-09T03:22:23.000Z | COLORFUL-Python/colorful-server/run_examples.py | FFFFOX/COLORFUL | 3a6fab6184f94b0a3a5b3e56a649cca076ddfc91 | [
"MIT"
] | 9 | 2021-12-09T07:02:41.000Z | 2021-12-17T07:51:04.000Z | from recolor import Core
def main():
# Simulating Protanopia with diagnosed degree of 0.9 and saving the image to file.
Core.simulate(input_path='Examples_Check/ex_original.jpg',
return_type='save',
save_path='Examples_Check/ex_simulate_protanopia.png',
si... | 45.545455 | 119 | 0.646421 | 422 | 3,507 | 5.111374 | 0.151659 | 0.100139 | 0.141864 | 0.158554 | 0.782568 | 0.76217 | 0.726936 | 0.691701 | 0.675012 | 0.674084 | 0 | 0.016555 | 0.27659 | 3,507 | 76 | 120 | 46.144737 | 0.833662 | 0.252067 | 0 | 0.490196 | 0 | 0 | 0.302682 | 0.262835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | true | 0 | 0.019608 | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1bec560cd25b3932b83ccc67b2a7c9975b2c145c | 4,371 | py | Python | imf/tests/test_imf.py | segasai/imf | 9a33b9e68b0af677dab86511e343d6099d9ea530 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | imf/tests/test_imf.py | segasai/imf | 9a33b9e68b0af677dab86511e343d6099d9ea530 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | imf/tests/test_imf.py | segasai/imf | 9a33b9e68b0af677dab86511e343d6099d9ea530 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | import pytest
import numpy as np
import itertools
from .. import imf
from ..imf import kroupa, chabrier2005
@pytest.mark.parametrize(('inp', 'out', 'rtol', 'atol'),
[(0.05, 5.6159, 1e-3, 1e-3),
(1.5, 0.0359, 1e-4, 1e-4),
(1.0, 0.0914, 1e-4... | 38.342105 | 85 | 0.548616 | 653 | 4,371 | 3.611026 | 0.147014 | 0.025445 | 0.021204 | 0.025445 | 0.757422 | 0.752332 | 0.729432 | 0.714589 | 0.639101 | 0.639101 | 0 | 0.115336 | 0.277968 | 4,371 | 113 | 86 | 38.681416 | 0.631812 | 0.114619 | 0 | 0.56 | 0 | 0 | 0.047334 | 0 | 0 | 0 | 0 | 0 | 0.213333 | 1 | 0.106667 | false | 0 | 0.066667 | 0 | 0.173333 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
1bf80f3b3752e5b287d0b8e6c0b588d768bd9936 | 391 | py | Python | RawArchiver/TimedTriggers/TriggerManage.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | RawArchiver/TimedTriggers/TriggerManage.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | RawArchiver/TimedTriggers/TriggerManage.py | rrosajp/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z |
import logging
import abc
import datetime
import traceback
import urllib.parse
import sqlalchemy.exc
import common.database as db
# import RawArchiver.TimedTriggers.RawRollingRewalkTrigger
# def exposed_raw_rewalk_old():
# '''
# Trigger the rewalking system on the rawarchiver
# '''
# run = RawArchiver.TimedT... | 17 | 84 | 0.787724 | 42 | 391 | 7.261905 | 0.690476 | 0.157377 | 0.308197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13555 | 391 | 22 | 85 | 17.772727 | 0.902367 | 0.608696 | 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 | 1 | 0 | 0 | 4 |
400e8fd638e662ffd2e604a84ee3770ee327d2d0 | 142 | py | Python | run.py | arryaaas/Met-Num | 4975efdd98b7d69dd3684eb2eb6a138134b51ce3 | [
"MIT"
] | null | null | null | run.py | arryaaas/Met-Num | 4975efdd98b7d69dd3684eb2eb6a138134b51ce3 | [
"MIT"
] | null | null | null | run.py | arryaaas/Met-Num | 4975efdd98b7d69dd3684eb2eb6a138134b51ce3 | [
"MIT"
] | null | null | null | from app import app
import os
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app.run(debug=True, port=port) | 23.666667 | 45 | 0.647887 | 22 | 142 | 3.818182 | 0.681818 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.204225 | 142 | 6 | 46 | 23.666667 | 0.707965 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
4038b1b4ae008c4e4a97fb17709b6104f7b17487 | 204 | py | Python | mellon/path.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 5 | 2016-12-20T19:39:01.000Z | 2021-01-08T16:19:17.000Z | mellon/path.py | CrowdStrike/mellon | 7216f255d397a41b1c2777a1b02f1c085d07ddfe | [
"MIT"
] | 1 | 2018-03-21T17:05:13.000Z | 2018-03-21T17:05:13.000Z | mellon/path.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 2 | 2017-11-01T15:03:27.000Z | 2018-11-13T03:04:44.000Z | from zope.component.factory import Factory
from zope import interface
from . import IPath
@interface.implementer(IPath)
class FilesystemPath(str):
pass
filesystemPathFactory = Factory(FilesystemPath) | 25.5 | 47 | 0.823529 | 23 | 204 | 7.304348 | 0.565217 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112745 | 204 | 8 | 47 | 25.5 | 0.928177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
403e5248774c44cfc57d17b7d058b3105c020f24 | 203 | py | Python | overholt/users/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 1,152 | 2015-01-04T16:30:17.000Z | 2022-03-27T19:50:52.000Z | overholt/users/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 25 | 2020-07-06T08:49:08.000Z | 2021-07-27T06:15:43.000Z | overholt/users/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 218 | 2015-01-06T20:41:52.000Z | 2022-03-25T19:07:53.000Z | # -*- coding: utf-8 -*-
"""
overholt.users
~~~~~~~~~~~~~~
overholt users package
"""
from ..core import Service
from .models import User
class UsersService(Service):
__model__ = User
| 13.533333 | 28 | 0.596059 | 21 | 203 | 5.571429 | 0.714286 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.221675 | 203 | 14 | 29 | 14.5 | 0.734177 | 0.374384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
4087934eb49184e801ab0929fdb930bd0267d5b1 | 902 | py | Python | python/src/aoc/year2017/day1.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | 1 | 2021-02-16T21:30:04.000Z | 2021-02-16T21:30:04.000Z | python/src/aoc/year2017/day1.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | null | null | null | python/src/aoc/year2017/day1.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | null | null | null | from aoc.util import load_input
def solve_captcha(line):
"""
>>> solve_captcha('1122')
3
>>> solve_captcha('1111')
4
>>> solve_captcha('1234')
0
>>> solve_captcha('91212129')
9
"""
return sum(int(c) for i, c in enumerate(line) if line[i - 1] == c)
def part1(lines):
re... | 19.608696 | 103 | 0.583149 | 126 | 902 | 3.904762 | 0.404762 | 0.113821 | 0.213415 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105109 | 0.240577 | 902 | 45 | 104 | 20.044444 | 0.613139 | 0.314856 | 0 | 0 | 0 | 0 | 0.017208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
40880c5e38e35d28917caa19394f49c8079c8309 | 470 | py | Python | tests/__init__.py | pauliacomi/pyGAPS | c4d45b710e171c937471686437e382e05aec4ed5 | [
"MIT"
] | 35 | 2018-01-24T14:59:08.000Z | 2022-03-10T02:47:58.000Z | tests/__init__.py | pauliacomi/pyGAPS | c4d45b710e171c937471686437e382e05aec4ed5 | [
"MIT"
] | 29 | 2018-01-06T12:08:08.000Z | 2022-03-11T20:26:53.000Z | tests/__init__.py | pauliacomi/pyGAPS | c4d45b710e171c937471686437e382e05aec4ed5 | [
"MIT"
] | 20 | 2019-06-12T19:20:29.000Z | 2022-03-02T09:57:02.000Z | # TODO saturation_pressure for each point
# TODO isotherm excess / absolute
# TODO implement AIF
# TODO osmotic ensemble
# TODO universal adsorption isotherm model UAIM
# TODO double check all model solvers
# TODO volume_liquid loading mode
# TODO universal adsorption isotherm model (UAIM)
# TODO deeper integration wit... | 33.571429 | 54 | 0.797872 | 65 | 470 | 5.738462 | 0.692308 | 0.069705 | 0.123324 | 0.16622 | 0.235925 | 0.235925 | 0.235925 | 0 | 0 | 0 | 0 | 0 | 0.16383 | 470 | 13 | 55 | 36.153846 | 0.949109 | 0.942553 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.076923 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
409ae6195baf24502a85c3bcc544eefd1d198fcc | 140 | py | Python | tests/myapp/urls.py | clover-es/django-mptt | 6c78234659e10b15e9a102bc19f8bd26a6bf3b58 | [
"MIT"
] | 5 | 2018-09-08T18:31:49.000Z | 2021-07-17T02:05:06.000Z | tests/myapp/urls.py | clover-es/django-mptt | 6c78234659e10b15e9a102bc19f8bd26a6bf3b58 | [
"MIT"
] | null | null | null | tests/myapp/urls.py | clover-es/django-mptt | 6c78234659e10b15e9a102bc19f8bd26a6bf3b58 | [
"MIT"
] | 1 | 2019-06-25T17:13:02.000Z | 2019-06-25T17:13:02.000Z | import django
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [url(r'^admin/', admin.site.urls)]
| 20 | 48 | 0.764286 | 21 | 140 | 5.095238 | 0.571429 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 140 | 6 | 49 | 23.333333 | 0.869919 | 0 | 0 | 0 | 0 | 0 | 0.05 | 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 | 1 | 0 | 0 | 4 |
40a4597b17358399dcfd29900eb9a636becacfa2 | 3,105 | py | Python | tests/test_api.py | aidanmcdonagh22/shorty | 2a7a79bc35941eda4a535f25807a56c3bcf587c1 | [
"MIT"
] | null | null | null | tests/test_api.py | aidanmcdonagh22/shorty | 2a7a79bc35941eda4a535f25807a56c3bcf587c1 | [
"MIT"
] | null | null | null | tests/test_api.py | aidanmcdonagh22/shorty | 2a7a79bc35941eda4a535f25807a56c3bcf587c1 | [
"MIT"
] | null | null | null | from .utils import check_api_response
from requests_mock import Mocker
# Integration Testing
class TestShortlinkView:
def test_no_url(self, client):
# perform client post to endpoint
response = client.post('/shortlinks', json={ "provider": "bitly" })
# check response
check_... | 37.409639 | 105 | 0.553623 | 328 | 3,105 | 5.140244 | 0.219512 | 0.071174 | 0.066429 | 0.067616 | 0.785291 | 0.785291 | 0.785291 | 0.785291 | 0.662515 | 0.662515 | 0 | 0.012411 | 0.325282 | 3,105 | 82 | 106 | 37.865854 | 0.792363 | 0.114976 | 0 | 0.553191 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.042553 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
40bc4a36759cf1fb735daafeaf1a9c7fe1a66580 | 504 | py | Python | db_context/Context.py | crippledfaith/shop | fb6a520170968e9f90d4d70c3f6a4e793b105e84 | [
"Apache-2.0"
] | null | null | null | db_context/Context.py | crippledfaith/shop | fb6a520170968e9f90d4d70c3f6a4e793b105e84 | [
"Apache-2.0"
] | null | null | null | db_context/Context.py | crippledfaith/shop | fb6a520170968e9f90d4d70c3f6a4e793b105e84 | [
"Apache-2.0"
] | null | null | null | from pymongo import MongoClient
class Context:
def __init__(self):
self.client = MongoClient(port=27017)
self.db = self.client.shop
def save(self, collection_name, obj):
self.db[collection_name].insert_one(obj)
def update(self, collection_name, obj):
self.db[collection_na... | 28 | 101 | 0.664683 | 68 | 504 | 4.647059 | 0.411765 | 0.265823 | 0.170886 | 0.199367 | 0.389241 | 0.389241 | 0.389241 | 0.389241 | 0 | 0 | 0 | 0.012255 | 0.190476 | 504 | 17 | 102 | 29.647059 | 0.762255 | 0 | 0 | 0 | 0 | 0 | 0.031809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
40be4052d0b2e6de09ff0edfe724246d49c56e0c | 97 | py | Python | src/api/jp/kanjivg.py | Xifax/suzu-web | ebe6b87093f73bf8a100d7b78b1d4a83cf203315 | [
"BSD-2-Clause"
] | null | null | null | src/api/jp/kanjivg.py | Xifax/suzu-web | ebe6b87093f73bf8a100d7b78b1d4a83cf203315 | [
"BSD-2-Clause"
] | null | null | null | src/api/jp/kanjivg.py | Xifax/suzu-web | ebe6b87093f73bf8a100d7b78b1d4a83cf203315 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
KanjiVG stub
"""
class KanjiVG:
pass
| 9.7 | 23 | 0.536082 | 12 | 97 | 4.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.247423 | 97 | 9 | 24 | 10.777778 | 0.69863 | 0.56701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
40dc02ef4eafdaa22394a1b06dc6ab6f7ccb8ddb | 175 | py | Python | src/natasy/neural_network/layers/hiddenlayer.py | disooqi/DNN | f87a10afba0810778ab3669f30e20128779f9da0 | [
"AFL-3.0"
] | 3 | 2019-03-03T11:01:26.000Z | 2022-02-01T15:53:47.000Z | src/natasy/neural_network/layers/hiddenlayer.py | disooqi/DNN | f87a10afba0810778ab3669f30e20128779f9da0 | [
"AFL-3.0"
] | 20 | 2018-10-31T16:54:21.000Z | 2021-08-28T06:05:56.000Z | src/natasy/neural_network/layers/hiddenlayer.py | disooqi/Natasy | f87a10afba0810778ab3669f30e20128779f9da0 | [
"AFL-3.0"
] | null | null | null | from . import NeuralNetworkLayer
class HiddenLayer(NeuralNetworkLayer):
def __init__(self, *args, **kwargs):
super(HiddenLayer, self).__init__(*args, **kwargs)
| 21.875 | 58 | 0.714286 | 17 | 175 | 6.882353 | 0.647059 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 175 | 7 | 59 | 25 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 4 |
40f8f66a4d55e39902ce1951d1b7a771e6affc06 | 42 | py | Python | jupyterhub/etc/jupyterhub/jupyterhub_config.py | nevdullcode/vagrant-jupyterhub | 41a361a64dd38c07abb863da0e0a1585acad1bff | [
"MIT"
] | 1 | 2021-04-18T19:56:28.000Z | 2021-04-18T19:56:28.000Z | jupyterhub/etc/jupyterhub/jupyterhub_config.py | nevdullcode/vagrant-jupyterhub | 41a361a64dd38c07abb863da0e0a1585acad1bff | [
"MIT"
] | null | null | null | jupyterhub/etc/jupyterhub/jupyterhub_config.py | nevdullcode/vagrant-jupyterhub | 41a361a64dd38c07abb863da0e0a1585acad1bff | [
"MIT"
] | null | null | null | c.Authenticator.admin_users = {'vagrant'}
| 21 | 41 | 0.761905 | 5 | 42 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
40fcc69cdab9b5733a6cbbf5c796e97d633fde88 | 2,187 | py | Python | pychip8/operations/__init__.py | edwin-jones/pychip8 | da8c850cdba90cbb6d1244de3b6118be8119c67d | [
"MIT"
] | null | null | null | pychip8/operations/__init__.py | edwin-jones/pychip8 | da8c850cdba90cbb6d1244de3b6118be8119c67d | [
"MIT"
] | 4 | 2018-09-02T20:37:47.000Z | 2018-09-08T19:11:08.000Z | pychip8/operations/__init__.py | edwin-jones/pychip8 | da8c850cdba90cbb6d1244de3b6118be8119c67d | [
"MIT"
] | null | null | null | from pychip8.operations.set_x_to_y import SetXToY
from pychip8.operations.set_x import SetX
from pychip8.operations.set_i import SetI
from pychip8.operations.random import Random
from pychip8.operations.save_registers_zero_to_x import SaveRegistersZeroToX
from pychip8.operations.load_registers_zero_to_x import LoadRegi... | 53.341463 | 80 | 0.89209 | 307 | 2,187 | 6.104235 | 0.276873 | 0.199573 | 0.381003 | 0.110993 | 0.422092 | 0.144077 | 0.073639 | 0.036286 | 0 | 0 | 0 | 0.016626 | 0.064929 | 2,187 | 40 | 81 | 54.675 | 0.899756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 4 |
dc0ece8ea8024b7639e8aef0ff9259fc64b7906d | 210 | py | Python | crypto/large case/secret.py | n0trix/SUSCTF2022_official_wp | 51224930c59cd732b9d80cc63d95dd1a06ebc308 | [
"MIT"
] | 32 | 2022-03-01T06:57:42.000Z | 2022-03-27T09:23:07.000Z | crypto/large case/secret.py | n0trix/SUSCTF2022_official_wp | 51224930c59cd732b9d80cc63d95dd1a06ebc308 | [
"MIT"
] | null | null | null | crypto/large case/secret.py | n0trix/SUSCTF2022_official_wp | 51224930c59cd732b9d80cc63d95dd1a06ebc308 | [
"MIT"
] | 6 | 2022-03-01T06:49:09.000Z | 2022-03-21T13:21:26.000Z | e=259776235785533
message=b'For RSA, the wrong key generation method can also reveal information. You recover my secret message, and here is the flag:SUSCTF{N0n_c0prime_RSA_c1pher_cAn_a1s0_recover_me33age!!!}' | 105 | 191 | 0.833333 | 34 | 210 | 4.941176 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 0.104762 | 210 | 2 | 191 | 105 | 0.776596 | 0 | 0 | 0 | 0 | 0.5 | 0.857143 | 0.3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9088f7e6a1eb4276bc6e187d21405ff6eb5f15a2 | 3,735 | py | Python | web/sufee/views.py | shalevy1/Flask-Sufee-Admin | 3a663c2a49ef07772de646317eab350d795e0e5e | [
"MIT"
] | 1 | 2020-07-13T03:55:56.000Z | 2020-07-13T03:55:56.000Z | web/sufee/views.py | shalevy1/Flask-Sufee-Admin | 3a663c2a49ef07772de646317eab350d795e0e5e | [
"MIT"
] | null | null | null | web/sufee/views.py | shalevy1/Flask-Sufee-Admin | 3a663c2a49ef07772de646317eab350d795e0e5e | [
"MIT"
] | 1 | 2020-09-11T17:30:37.000Z | 2020-09-11T17:30:37.000Z | from flask import Flask
from flask import render_template
from flask import abort
from sufee import app
@app.route("/")
@app.route("/home")
def index():
template = 'index.html'
return render_template(template)
@app.route("/about")
def aboutindex():
template = 'about.html'
return render_template(templa... | 22.91411 | 39 | 0.701473 | 473 | 3,735 | 5.41649 | 0.105708 | 0.174863 | 0.193599 | 0.290398 | 0.553474 | 0.540984 | 0.540984 | 0.494145 | 0.123341 | 0.08509 | 0 | 0 | 0.147256 | 3,735 | 162 | 40 | 23.055556 | 0.804396 | 0.027845 | 0 | 0.24 | 0 | 0 | 0.225655 | 0.011862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.032 | 0 | 0.512 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9090469fa96e932346e141d16f47b247dde38a8c | 230 | py | Python | src/sage/version.py | haiyashah/sage | 55a711e3d6251f2ff4f3bcccc4c6a8b7a2a8d1b2 | [
"BSL-1.0"
] | null | null | null | src/sage/version.py | haiyashah/sage | 55a711e3d6251f2ff4f3bcccc4c6a8b7a2a8d1b2 | [
"BSL-1.0"
] | null | null | null | src/sage/version.py | haiyashah/sage | 55a711e3d6251f2ff4f3bcccc4c6a8b7a2a8d1b2 | [
"BSL-1.0"
] | null | null | null | # Sage version information for Python scripts
# This file is auto-generated by the sage-update-version script, do not edit!
version = '9.6.beta5'
date = '2022-03-12'
banner = 'SageMath version 9.6.beta5, Release Date: 2022-03-12'
| 38.333333 | 77 | 0.743478 | 39 | 230 | 4.384615 | 0.717949 | 0.093567 | 0.105263 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111675 | 0.143478 | 230 | 5 | 78 | 46 | 0.756345 | 0.517391 | 0 | 0 | 1 | 0 | 0.657407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
90b254aa4492a406e7bdbaae580cc675d6f89529 | 381 | py | Python | apps/staff/templatetags/staff_template_filters.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | null | null | null | apps/staff/templatetags/staff_template_filters.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | 8 | 2020-02-12T01:02:15.000Z | 2022-03-11T23:53:39.000Z | apps/staff/templatetags/staff_template_filters.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def len(a):
return a.__len__()
@register.filter
def modulo(a, b):
return a % b
@register.filter
def name(staff, lang):
if lang == "fa":
return staff.persian_firstname + " " + staff.persian_lastname
else:
re... | 16.565217 | 69 | 0.669291 | 48 | 381 | 5.145833 | 0.479167 | 0.17004 | 0.206478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217848 | 381 | 22 | 70 | 17.318182 | 0.828859 | 0 | 0 | 0.214286 | 0 | 0 | 0.010526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
90d9b9a8576d5d62c0259b9fe249745ff6afe877 | 1,380 | py | Python | benchmarks/cinderella.py | stanlysamuel/gensys | 87e924235dcda592bd37e694d54ccc0b62e4a34a | [
"MIT"
] | null | null | null | benchmarks/cinderella.py | stanlysamuel/gensys | 87e924235dcda592bd37e694d54ccc0b62e4a34a | [
"MIT"
] | null | null | null | benchmarks/cinderella.py | stanlysamuel/gensys | 87e924235dcda592bd37e694d54ccc0b62e4a34a | [
"MIT"
] | null | null | null | from gensys.helper import *
from gensys.fixpoints import *
from z3 import *
#Cinderella-Stepmother game of 5 buckets with bucket size of C.
# 1. Define Environment moves
def environment(b1, b2, b3, b4, b5, b1_, b2_, b3_, b4_, b5_):
return And(b1_ + b2_ + b3_ + b4_ + b5_ == b1 + b2 + b3 + b4 + b5 + 1, b1_>=b1, b... | 37.297297 | 119 | 0.574638 | 255 | 1,380 | 2.843137 | 0.172549 | 0.09931 | 0.124138 | 0.165517 | 0.451034 | 0.451034 | 0.362759 | 0.29931 | 0.270345 | 0.270345 | 0 | 0.172316 | 0.230435 | 1,380 | 37 | 120 | 37.297297 | 0.510358 | 0.098551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.142857 | 0.333333 | 0.809524 | 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 | 1 | 1 | 0 | 0 | 4 |
29563b18f2ee7efac2a242cf2a303898b0505e3f | 24 | py | Python | data/studio21_generated/introductory/3172/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3172/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3172/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def parse_fen(string):
| 12 | 22 | 0.75 | 4 | 24 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 2 | 23 | 12 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
296f5eabbb26a7428b7eb5ce12e1c70bb2c5c798 | 199 | py | Python | python/simple_keyword_arguments.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 59 | 2016-10-27T03:33:17.000Z | 2022-03-03T06:10:10.000Z | python/simple_keyword_arguments.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 6 | 2017-01-07T19:27:33.000Z | 2019-11-10T21:29:59.000Z | python/simple_keyword_arguments.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 27 | 2016-09-20T16:22:03.000Z | 2022-01-15T09:28:06.000Z | def set_fill_color(red, green, blue):
pass
def draw_rectangle(corner, other_corner):
pass
set_fill_color(red=161, green=219, blue=114)
draw_rectangle(corner=(105,20), other_corner=(60,60))
| 22.111111 | 53 | 0.743719 | 33 | 199 | 4.242424 | 0.545455 | 0.1 | 0.171429 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102857 | 0.120603 | 199 | 8 | 54 | 24.875 | 0.697143 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
29845881af93bb75270c761046387972658af4e3 | 518 | py | Python | skift/__init__.py | dimidd/skift | 48ce16ff07710cde956ff3a7071d83cbbd0f9977 | [
"MIT"
] | 244 | 2018-02-04T09:33:32.000Z | 2022-03-06T05:26:36.000Z | skift/__init__.py | dimidd/skift | 48ce16ff07710cde956ff3a7071d83cbbd0f9977 | [
"MIT"
] | 19 | 2018-02-16T03:23:45.000Z | 2022-02-14T13:06:41.000Z | skift/__init__.py | dimidd/skift | 48ce16ff07710cde956ff3a7071d83cbbd0f9977 | [
"MIT"
] | 28 | 2018-02-05T06:54:46.000Z | 2022-02-03T14:47:14.000Z | """Utilities for pandas."""
from .core import FirstColFtClassifier # noqa: F401
from .core import IdxBasedFtClassifier # noqa: F401
from .core import FirstObjFtClassifier # noqa: F401
from .core import ColLblBasedFtClassifier # noqa: F401
from .core import SeriesFtClassifier # noqa: F401
from ._version import ge... | 28.777778 | 57 | 0.725869 | 60 | 518 | 6.1 | 0.416667 | 0.10929 | 0.191257 | 0.174863 | 0.240437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035129 | 0.175676 | 518 | 17 | 58 | 30.470588 | 0.822014 | 0.148649 | 0 | 0 | 0 | 0 | 0.081207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
461e11134327f36ac57873ad2fa3db8c7445fa13 | 218 | py | Python | mentor_mentee/mentor_mentee/doctype/relation/relation.py | sehjal408/SK | 9796fa2d7754a8583db246abdb09341824f254c2 | [
"MIT"
] | null | null | null | mentor_mentee/mentor_mentee/doctype/relation/relation.py | sehjal408/SK | 9796fa2d7754a8583db246abdb09341824f254c2 | [
"MIT"
] | null | null | null | mentor_mentee/mentor_mentee/doctype/relation/relation.py | sehjal408/SK | 9796fa2d7754a8583db246abdb09341824f254c2 | [
"MIT"
] | null | null | null | # Copyright (c) 2022, SK and contributors
# For license information, please see license.txt
import frappe
from frappe.website.website_generator import WebsiteGenerator
class Relation(WebsiteGenerator):
pass
| 15.571429 | 61 | 0.788991 | 26 | 218 | 6.576923 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.155963 | 218 | 13 | 62 | 16.769231 | 0.907609 | 0.399083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
46595df494e81791f7fca742cdfdd7448f09a9ff | 831 | py | Python | matchbook/tests/test_apiclient.py | jackrhunt13/matchbook | a12ac26e272ddc004f2590b4f4ad8f4715f1df66 | [
"MIT"
] | 11 | 2017-07-11T10:08:19.000Z | 2021-01-22T17:08:44.000Z | matchbook/tests/test_apiclient.py | oddoneuk/matchbook | eb37817c4f6604097be406edf2df7f711586dcf6 | [
"MIT"
] | 10 | 2017-07-14T23:43:25.000Z | 2021-08-19T17:21:10.000Z | matchbook/tests/test_apiclient.py | oddoneuk/matchbook | eb37817c4f6604097be406edf2df7f711586dcf6 | [
"MIT"
] | 9 | 2017-12-13T13:25:42.000Z | 2021-07-16T18:24:23.000Z |
import unittest
from matchbook.apiclient import APIClient
from matchbook.endpoints import Betting, Account, KeepAlive, Login, Logout, MarketData, ReferenceData, Reporting
class APIClientTest(unittest.TestCase):
def test_apiclient_init(self):
client = APIClient('username', 'password')
assert str... | 37.772727 | 112 | 0.726835 | 84 | 831 | 7.130952 | 0.392857 | 0.213689 | 0.293823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186522 | 831 | 21 | 113 | 39.571429 | 0.886095 | 0 | 0 | 0 | 0 | 0 | 0.056627 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
465ea013fb24a2d6820687e62ebe6b5f80c99a82 | 342 | py | Python | ooer/models/user.py | williammck/ooer | d6dc07627acfa41de824b86addf4eb70ecc8fc76 | [
"MIT"
] | null | null | null | ooer/models/user.py | williammck/ooer | d6dc07627acfa41de824b86addf4eb70ecc8fc76 | [
"MIT"
] | null | null | null | ooer/models/user.py | williammck/ooer | d6dc07627acfa41de824b86addf4eb70ecc8fc76 | [
"MIT"
] | null | null | null | from mongoengine import *
from flask_login import UserMixin
class User(Document, UserMixin, object):
username = StringField(required=True, unique=True)
email = StringField()
def get_id(self):
return str(self.id)
def __repr__(self):
return self.username
def __str__(self):
... | 20.117647 | 54 | 0.681287 | 41 | 342 | 5.439024 | 0.560976 | 0.134529 | 0.125561 | 0.197309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233918 | 342 | 16 | 55 | 21.375 | 0.851145 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
467196265c0667547d23bb24cd17be53c71cb8f3 | 137 | py | Python | lender_books/apps.py | joyliao07/django_lender | 332bae3be31842fbf4e43443bd04a9467fce5a3d | [
"MIT"
] | 1 | 2019-02-27T01:51:30.000Z | 2019-02-27T01:51:30.000Z | lender_books/apps.py | joyliao07/django_lender | 332bae3be31842fbf4e43443bd04a9467fce5a3d | [
"MIT"
] | 4 | 2019-01-08T00:56:19.000Z | 2019-01-11T03:14:21.000Z | lender_books/apps.py | joyliao07/django_lender | 332bae3be31842fbf4e43443bd04a9467fce5a3d | [
"MIT"
] | null | null | null | """To configurate app lender_books."""
from django.apps import AppConfig
class LenderBooksConfig(AppConfig):
name = 'lender_books'
| 19.571429 | 38 | 0.759124 | 16 | 137 | 6.375 | 0.8125 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 137 | 6 | 39 | 22.833333 | 0.864407 | 0.233577 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
467f5b347cbaa534e381c0d1b0b13ac58ef48616 | 117 | py | Python | gputools/denoise/__init__.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 89 | 2015-08-28T14:17:33.000Z | 2022-01-20T16:19:34.000Z | gputools/denoise/__init__.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 24 | 2015-08-28T19:06:22.000Z | 2022-02-21T21:10:13.000Z | gputools/denoise/__init__.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 17 | 2015-08-28T18:56:43.000Z | 2021-09-15T23:15:36.000Z | from .nlm3 import nlm3
from .nlm2 import nlm2
from .bilateral2 import bilateral2
from .bilateral3 import bilateral3
| 19.5 | 34 | 0.820513 | 16 | 117 | 6 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.145299 | 117 | 5 | 35 | 23.4 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4686aca7a7aa468b4230731e1687c9dfcfee1f59 | 58 | py | Python | src/Basket.py | MattBlue92/progettoGiocattolo | 8d4c7f924d9ebc3358e1d575b968e1c695e3d312 | [
"MIT"
] | null | null | null | src/Basket.py | MattBlue92/progettoGiocattolo | 8d4c7f924d9ebc3358e1d575b968e1c695e3d312 | [
"MIT"
] | 3 | 2020-05-12T09:21:20.000Z | 2020-05-12T20:27:55.000Z | src/Basket.py | MattBlue92/progettoGiocattolo | 8d4c7f924d9ebc3358e1d575b968e1c695e3d312 | [
"MIT"
] | null | null | null | class Basket:
def getPrice(self):
return 100; | 14.5 | 23 | 0.603448 | 7 | 58 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.310345 | 58 | 4 | 24 | 14.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.