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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5785e6a036807a5d9394d69f5f7eaf543965d731 | 879 | py | Python | Tree/maxDepth.py | konantian/LeetCode | f97609cfe139159bc000cac5b39a1d0c28517d24 | [
"MIT"
] | 2 | 2018-06-02T03:57:20.000Z | 2018-10-20T22:15:17.000Z | Tree/maxDepth.py | konantian/leetcode | f97609cfe139159bc000cac5b39a1d0c28517d24 | [
"MIT"
] | null | null | null | Tree/maxDepth.py | konantian/leetcode | f97609cfe139159bc000cac5b39a1d0c28517d24 | [
"MIT"
] | 1 | 2019-01-31T05:17:19.000Z | 2019-01-31T05:17:19.000Z | '''
Source : https://leetcode.com/problems/maximum-depth-of-binary-tree/
Author : Yuan Wang
Date : 2018-07-21
/**********************************************************************************
*Given a binary tree, find its maximum depth.
*
*The maximum depth is the number of nodes along the longest path from the ... | 21.975 | 84 | 0.544937 | 115 | 879 | 4.165217 | 0.530435 | 0.075157 | 0.100209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033557 | 0.152446 | 879 | 40 | 85 | 21.975 | 0.609396 | 0.739477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
57891dccfc7a6660f1ab82ce9811e218955d5cf9 | 685 | py | Python | geoscript/geom/io/wkt.py | jericks/geoscript-py | 8dc600343f42dd87b1981023522a1a8cf56006a9 | [
"MIT"
] | null | null | null | geoscript/geom/io/wkt.py | jericks/geoscript-py | 8dc600343f42dd87b1981023522a1a8cf56006a9 | [
"MIT"
] | null | null | null | geoscript/geom/io/wkt.py | jericks/geoscript-py | 8dc600343f42dd87b1981023522a1a8cf56006a9 | [
"MIT"
] | null | null | null | from com.vividsolutions.jts.io import WKTReader, WKTWriter
from geoscript.util import deprecated
def readWKT(wkt):
"""
Constructs a geometry from Well Known Text.
*wkt* is the Well Known Text string representing the geometry as described by http://en.wikipedia.org/wiki/Well-known_text.
>>> readWKT('POINT (1... | 20.757576 | 125 | 0.683212 | 98 | 685 | 4.765306 | 0.489796 | 0.077088 | 0.111349 | 0.051392 | 0.085653 | 0.085653 | 0.085653 | 0 | 0 | 0 | 0 | 0.014235 | 0.179562 | 685 | 32 | 126 | 21.40625 | 0.816726 | 0.559124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
579790343ca70d2a664becf8ebf185a247791ae7 | 1,862 | py | Python | neighbourhood/models.py | Mutembeijoe/hood_yetu | 5759bbf95a8dd0c7a62987773b71a1a7531ae074 | [
"MIT"
] | null | null | null | neighbourhood/models.py | Mutembeijoe/hood_yetu | 5759bbf95a8dd0c7a62987773b71a1a7531ae074 | [
"MIT"
] | 9 | 2020-02-12T03:06:29.000Z | 2022-03-12T00:11:25.000Z | neighbourhood/models.py | Mutembeijoe/hood_yetu | 5759bbf95a8dd0c7a62987773b71a1a7531ae074 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import ArrayField
from django.urls import reverse
# Create your models here.
class Neighbourhood(models.Model):
image = models.ImageField(upload_to='neighbourhood_avatars', default='dummy_neighbourhood.jpg')
name = models.CharField(max_length=2... | 33.854545 | 107 | 0.697637 | 216 | 1,862 | 5.842593 | 0.388889 | 0.071315 | 0.085578 | 0.114105 | 0.405705 | 0.318542 | 0.318542 | 0.318542 | 0.318542 | 0.318542 | 0 | 0.015323 | 0.193878 | 1,862 | 55 | 108 | 33.854545 | 0.82545 | 0.012889 | 0 | 0.232558 | 0 | 0 | 0.089276 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0.116279 | 0.744186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
579ed39e3894484e564f4d2f67bafed408849d23 | 169 | py | Python | seno/wallet/trading/trade_status.py | emilson0407/seno-blockchain | fa73fc06639faaacbb82504a6c8698c3bcab57c0 | [
"Apache-2.0"
] | 11,902 | 2019-12-05T00:14:29.000Z | 2022-03-31T23:25:37.000Z | seno/wallet/trading/trade_status.py | emilson0407/seno-blockchain | fa73fc06639faaacbb82504a6c8698c3bcab57c0 | [
"Apache-2.0"
] | 5,246 | 2019-12-05T04:00:03.000Z | 2022-03-31T21:33:30.000Z | seno/wallet/trading/trade_status.py | emilson0407/seno-blockchain | fa73fc06639faaacbb82504a6c8698c3bcab57c0 | [
"Apache-2.0"
] | 2,149 | 2019-12-05T11:12:53.000Z | 2022-03-31T06:08:34.000Z | from enum import Enum
class TradeStatus(Enum):
PENDING_ACCEPT = 0
PENDING_CONFIRM = 1
PENDING_CANCEL = 2
CANCELED = 3
CONFIRMED = 4
FAILED = 5
| 15.363636 | 24 | 0.650888 | 22 | 169 | 4.863636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.295858 | 169 | 10 | 25 | 16.9 | 0.84874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
57af48c7c6ce730f18de8225a93c02bfa45f922d | 1,741 | py | Python | src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py | AndersenLab/CAENDR | ce4cdb74db736db8226ffc90988959b71b0d5ff5 | [
"MIT"
] | 3 | 2022-02-09T07:04:37.000Z | 2022-03-11T02:46:35.000Z | src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py | AndersenLab/CAENDR | ce4cdb74db736db8226ffc90988959b71b0d5ff5 | [
"MIT"
] | 4 | 2022-01-28T22:28:08.000Z | 2022-02-11T21:47:15.000Z | src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py | AndersenLab/CAENDR | ce4cdb74db736db8226ffc90988959b71b0d5ff5 | [
"MIT"
] | 1 | 2022-01-11T03:39:02.000Z | 2022-01-11T03:39:02.000Z | from caendr.services.cloud.postgresql import db
from caendr.models.sql.dict_serializable import DictSerializable
from sqlalchemy import func, or_
from sqlalchemy.ext.hybrid import hybrid_property
class WormbaseGeneSummary(DictSerializable, db.Model):
"""
This is a condensed version of the WormbaseGene model;
... | 37.847826 | 90 | 0.711086 | 249 | 1,741 | 4.823293 | 0.405622 | 0.086595 | 0.09159 | 0.093256 | 0.124896 | 0.109908 | 0.044963 | 0 | 0 | 0 | 0 | 0.015089 | 0.16255 | 1,741 | 45 | 91 | 38.688889 | 0.808642 | 0.219414 | 0 | 0 | 0 | 0 | 0.044289 | 0.044289 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0.037037 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
57ba16515c786535378110b8430cbadfa8476104 | 310 | py | Python | mmdet/apis/__init__.py | ar90n/ttfnet | 99dbfa888f90c8161c2c1666b2d17cdb144dbc30 | [
"Apache-2.0"
] | 36 | 2019-06-17T02:00:36.000Z | 2022-03-10T07:54:07.000Z | mmdet/apis/__init__.py | ar90n/ttfnet | 99dbfa888f90c8161c2c1666b2d17cdb144dbc30 | [
"Apache-2.0"
] | 6 | 2020-03-17T03:53:53.000Z | 2022-03-30T07:57:40.000Z | mmdet/apis/__init__.py | ar90n/ttfnet | 99dbfa888f90c8161c2c1666b2d17cdb144dbc30 | [
"Apache-2.0"
] | 4 | 2019-06-17T02:00:35.000Z | 2021-09-22T14:44:29.000Z | from .env import get_root_logger, init_dist, set_random_seed
from .inference import inference_detector, init_detector, show_result
from .train import train_detector
__all__ = [
'init_dist', 'get_root_logger', 'set_random_seed', 'train_detector',
'init_detector', 'inference_detector', 'show_result'
]
| 34.444444 | 72 | 0.787097 | 42 | 310 | 5.285714 | 0.404762 | 0.063063 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116129 | 310 | 8 | 73 | 38.75 | 0.810219 | 0 | 0 | 0 | 0 | 0 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
57ca6b765a520ecf380512aee08b9a30756ae5fb | 1,481 | py | Python | 2019-2020/MATH_1301_Python/Zork/barriers.py | TSoGiants/Foundations | 4546c9ee7be802e4c48ab8b1bab60869ea89e6a6 | [
"Unlicense"
] | null | null | null | 2019-2020/MATH_1301_Python/Zork/barriers.py | TSoGiants/Foundations | 4546c9ee7be802e4c48ab8b1bab60869ea89e6a6 | [
"Unlicense"
] | null | null | null | 2019-2020/MATH_1301_Python/Zork/barriers.py | TSoGiants/Foundations | 4546c9ee7be802e4c48ab8b1bab60869ea89e6a6 | [
"Unlicense"
] | null | null | null | #####################
### Base classes. ###
#####################
class barrier:
synonyms = ["wall"]
m_description = "There is a barrier in the way."
def __init__(self, passable=False):
self.passable = passable
def __str__(self):
return self.m_description
def ... | 25.101695 | 56 | 0.519919 | 163 | 1,481 | 4.472393 | 0.263804 | 0.148148 | 0.075446 | 0.078189 | 0.137174 | 0.082305 | 0 | 0 | 0 | 0 | 0 | 0.001015 | 0.334909 | 1,481 | 59 | 57 | 25.101695 | 0.739086 | 0.019581 | 0 | 0.225 | 0 | 0 | 0.176644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0.25 | 0 | 0.05 | 0.675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
57cf7c7be10d8c27847604d37eb3c00a440f9f34 | 1,111 | py | Python | autotf/selector/base_selector.py | zwt233/autotf | 8223606047a4e0e2795cf7befee8c6f7a44a6ec4 | [
"BSD-3-Clause"
] | 1 | 2021-04-15T15:56:10.000Z | 2021-04-15T15:56:10.000Z | autotf/selector/base_selector.py | zwt233/autotf | 8223606047a4e0e2795cf7befee8c6f7a44a6ec4 | [
"BSD-3-Clause"
] | null | null | null | autotf/selector/base_selector.py | zwt233/autotf | 8223606047a4e0e2795cf7befee8c6f7a44a6ec4 | [
"BSD-3-Clause"
] | null | null | null | class BaseSelector:
def __init__(self):
pass
def select_model(self, X, y,
total_time,
learners=None,
metric=None,
save_directory=None):
"""
Find the best model with its hyperparameters from the autotf's... | 22.673469 | 81 | 0.50405 | 122 | 1,111 | 4.5 | 0.483607 | 0.063752 | 0.087432 | 0.058288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001541 | 0.415842 | 1,111 | 49 | 82 | 22.673469 | 0.844376 | 0.394239 | 0 | 0.1875 | 0 | 0 | 0.063918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.1875 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
57d2bee9c3f83e95b3a975a6474c1974993fb8ef | 15,013 | py | Python | src/tools/dev/scripts/hooks/ciabot_svn.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | null | null | null | src/tools/dev/scripts/hooks/ciabot_svn.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | null | null | null | src/tools/dev/scripts/hooks/ciabot_svn.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | 1 | 2020-03-18T23:17:43.000Z | 2020-03-18T23:17:43.000Z | #!/usr/bin/env python
#
# This is a CIA client script for Subversion repositories, written in python.
# It generates commit messages using CIA's XML format, and can deliver them
# using either XML-RPC or email. See below for usage and cuztomization
# information.
#
# ----------------------------------------------------... | 37.626566 | 98 | 0.605142 | 1,920 | 15,013 | 4.711979 | 0.289063 | 0.012159 | 0.004974 | 0.002984 | 0.045319 | 0.035371 | 0.029844 | 0.023433 | 0.015033 | 0.015033 | 0 | 0.00402 | 0.287551 | 15,013 | 398 | 99 | 37.721106 | 0.84181 | 0.43842 | 0 | 0.043243 | 1 | 0 | 0.100597 | 0.008198 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016216 | null | null | 0.005405 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57f817e2249400abb14e5d1810b119046f3d3c71 | 425 | py | Python | 17b.py | znuxor/adventofcode2017 | 79d0df07f24ea8d2793df3b1c853a85b760791c1 | [
"BSD-3-Clause"
] | null | null | null | 17b.py | znuxor/adventofcode2017 | 79d0df07f24ea8d2793df3b1c853a85b760791c1 | [
"BSD-3-Clause"
] | null | null | null | 17b.py | znuxor/adventofcode2017 | 79d0df07f24ea8d2793df3b1c853a85b760791c1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from collections import deque
puzzle_input = 377
# puzzle_input = 3
my_circular_buffer = deque()
my_circular_buffer.append(0)
for i in range(1, 50000000+1):
new_pos = puzzle_input % len(my_circular_buffer)
my_circular_buffer.rotate(-new_pos-1)
my_circular_b... | 23.611111 | 55 | 0.757647 | 67 | 425 | 4.492537 | 0.492537 | 0.265781 | 0.425249 | 0.146179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053619 | 0.122353 | 425 | 17 | 56 | 25 | 0.753351 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17a84420e19ce12f3b716bc7024aa29937242930 | 1,164 | py | Python | src/rhasspy_desktop_satellite/exceptions.py | mcorino/rhasspy-desktop-satellite | aeaa820a0acdcc2e70db1f74157a0c7d3ac5d4bd | [
"MIT"
] | null | null | null | src/rhasspy_desktop_satellite/exceptions.py | mcorino/rhasspy-desktop-satellite | aeaa820a0acdcc2e70db1f74157a0c7d3ac5d4bd | [
"MIT"
] | null | null | null | src/rhasspy_desktop_satellite/exceptions.py | mcorino/rhasspy-desktop-satellite | aeaa820a0acdcc2e70db1f74157a0c7d3ac5d4bd | [
"MIT"
] | null | null | null | """This module contains exceptions defined for Rhasspy Desktop Satellite."""
class RDSatelliteServerError(Exception):
"""Base class for exceptions raised by Rhasspy Desktop Satellite code.
By catching this exception type, you catch all exceptions that are
defined by the Hermes Audio Server code."""
cla... | 33.257143 | 79 | 0.726804 | 128 | 1,164 | 6.515625 | 0.460938 | 0.05036 | 0.082734 | 0.093525 | 0.169065 | 0.169065 | 0.169065 | 0.115108 | 0 | 0 | 0 | 0 | 0.196735 | 1,164 | 34 | 80 | 34.235294 | 0.891979 | 0.553265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
17a96a19e673a02ce4216b998f3cb8431e172a1f | 1,378 | py | Python | create_python_app/main.py | xuchaoqian/create-python-app | 70745432b972b96a3faf95a378d54d922b77f2be | [
"MIT"
] | null | null | null | create_python_app/main.py | xuchaoqian/create-python-app | 70745432b972b96a3faf95a378d54d922b77f2be | [
"MIT"
] | null | null | null | create_python_app/main.py | xuchaoqian/create-python-app | 70745432b972b96a3faf95a378d54d922b77f2be | [
"MIT"
] | null | null | null | import argparse
from create_python_app.path_utils import *
from create_python_app.create_gitignore_file import create_gitignore_file
from create_python_app.create_license_file import create_license_file
from create_python_app.create_makefile_file import create_makefile_file
from create_python_app.create_readme_file imp... | 41.757576 | 79 | 0.834543 | 206 | 1,378 | 5.058252 | 0.18932 | 0.095969 | 0.153551 | 0.182342 | 0.356046 | 0.332054 | 0.085413 | 0.059501 | 0 | 0 | 0 | 0 | 0.107402 | 1,378 | 33 | 80 | 41.757576 | 0.847154 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.366667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
17afc776c10c0b9ba372d9ed2ac769c202c71e90 | 2,696 | py | Python | my_python_module/exceptions.py | a358003542/wanze_python_project | db52515af80319000e9a47a7b02f3ccd2cf46afd | [
"MIT"
] | 1 | 2020-10-30T08:54:22.000Z | 2020-10-30T08:54:22.000Z | my_python_module/exceptions.py | a358003542/wanze_python_project | db52515af80319000e9a47a7b02f3ccd2cf46afd | [
"MIT"
] | null | null | null | my_python_module/exceptions.py | a358003542/wanze_python_project | db52515af80319000e9a47a7b02f3ccd2cf46afd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
python系统内的异常
+-- Exception
+-- StopIteration
+-- StopAsyncIteration
+-- ArithmeticError
| +-- FloatingPointError
| +-- OverflowError
| +-- ZeroDivisionError
+-- AssertionError
+-- AttributeError
+-- Buffer... | 23.858407 | 80 | 0.554154 | 163 | 2,696 | 9.165644 | 0.754601 | 0.006024 | 0.025435 | 0.028112 | 0.029451 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000548 | 0.3227 | 2,696 | 112 | 81 | 24.071429 | 0.817634 | 0.813427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17bab85be9766c1e62d10b8ba5e92bbbc7204442 | 1,139 | py | Python | test/python/LIM2Metrics/py3/base/common/Bridge/Bridge.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 20 | 2015-06-16T17:39:10.000Z | 2022-03-20T22:39:40.000Z | test/python/LIM2Metrics/py3/base/common/Bridge/Bridge.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 29 | 2015-12-29T19:07:22.000Z | 2022-03-22T10:39:02.000Z | test/python/LIM2Metrics/py3/base/common/Bridge/Bridge.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 12 | 2015-08-28T01:22:18.000Z | 2021-09-25T08:17:31.000Z | # Implementor
class drawing_api:
def draw_circle(self, x, y, radius):
pass
# ConcreteImplementor 1/2
class drawing_api1(drawing_api):
def draw_circle(self, x, y, radius):
print('API1.circle at %f:%f radius %f' % (x, y, radius))
# ConcreteImplementor 2/2
class drawing_api2(drawing_api):
d... | 23.729167 | 65 | 0.62072 | 157 | 1,139 | 4.292994 | 0.254777 | 0.103858 | 0.071217 | 0.10089 | 0.327893 | 0.327893 | 0.244807 | 0.244807 | 0.244807 | 0.118694 | 0 | 0.022512 | 0.258999 | 1,139 | 47 | 66 | 24.234043 | 0.776066 | 0.08604 | 0 | 0.3125 | 0 | 0 | 0.065764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.09375 | 0 | 0 | 0.40625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
17e620adc33ee30cd11c65a57f46f1da7b3b9897 | 94 | py | Python | bertopic/__init__.py | louisguitton/BERTopic | 0b321678ffe4eab0a28484faf76728f584a94ebd | [
"MIT"
] | 1 | 2021-09-29T12:39:16.000Z | 2021-09-29T12:39:16.000Z | bertopic/__init__.py | louisguitton/BERTopic | 0b321678ffe4eab0a28484faf76728f584a94ebd | [
"MIT"
] | null | null | null | bertopic/__init__.py | louisguitton/BERTopic | 0b321678ffe4eab0a28484faf76728f584a94ebd | [
"MIT"
] | null | null | null | from bertopic._bertopic import BERTopic
__version__ = "0.9.1"
__all__ = [
"BERTopic",
]
| 11.75 | 39 | 0.680851 | 11 | 94 | 5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.191489 | 94 | 7 | 40 | 13.428571 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17ea30689ba9d98fd7b8fd672edbe09e38e06775 | 210 | py | Python | foodbot/urls.py | surajpaib/HungerHero | be7c0b77944579f057886b074ba8db83d270ae83 | [
"Apache-2.0"
] | null | null | null | foodbot/urls.py | surajpaib/HungerHero | be7c0b77944579f057886b074ba8db83d270ae83 | [
"Apache-2.0"
] | null | null | null | foodbot/urls.py | surajpaib/HungerHero | be7c0b77944579f057886b074ba8db83d270ae83 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^bot/', views.webhook, name='bot'),
url(r'^foodcenter/', views.food_center_webhook, name= 'food'),
# url(r'^relay/', vi)
] | 26.25 | 66 | 0.647619 | 30 | 210 | 4.466667 | 0.566667 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 210 | 8 | 67 | 26.25 | 0.761364 | 0.090476 | 0 | 0 | 0 | 0 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
aa027855d06ebca0a52e37c857218b627bb34991 | 2,066 | py | Python | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | 1 | 2018-07-14T01:00:56.000Z | 2018-07-14T01:00:56.000Z | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | null | null | null | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | 1 | 2021-01-31T06:53:55.000Z | 2021-01-31T06:53:55.000Z | #!/usr/bin/env python
# Name : Simple Bruteforce v.0.1
# Author: mirfansulaiman
# Indonesian Backtrack Team | Kurawa In Disorder
# http://indonesianbacktrack.or.id
# http://mirfansulaiman.com/
# http://ctfs.me/
#
# have a bug? report to doctorgombal@gmail.com or PM at http://indonesianbacktrack.or.id/forum/user-10440.... | 31.784615 | 114 | 0.549371 | 265 | 2,066 | 4.245283 | 0.486792 | 0.017778 | 0.049778 | 0.048 | 0.033778 | 0.033778 | 0 | 0 | 0 | 0 | 0 | 0.063556 | 0.284124 | 2,066 | 65 | 115 | 31.784615 | 0.697093 | 0.179574 | 0 | 0.039216 | 0 | 0.019608 | 0.212589 | 0.021378 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.078431 | 0.098039 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
aa071d641c21c8126205d398a23afa6631e2eb94 | 1,144 | py | Python | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 2 | 2022-03-10T03:17:48.000Z | 2022-03-10T03:17:58.000Z | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 19 | 2022-01-31T20:43:43.000Z | 2022-03-30T18:26:37.000Z | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 1 | 2022-03-30T18:38:08.000Z | 2022-03-30T18:38:08.000Z | import micropython
# Tests both code paths for built-in exception raising.
# mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format)
# mp_obj_new_exception_msg (decompression can be deferred)
# NameError uses mp_obj_new_exception_msg_varg for NameError("name '%q' isn't defined")
# `ra... | 24.340426 | 106 | 0.740385 | 181 | 1,144 | 4.480663 | 0.40884 | 0.022195 | 0.059186 | 0.083847 | 0.409371 | 0.38471 | 0.276202 | 0.24291 | 0.197287 | 0.197287 | 0 | 0.006356 | 0.174825 | 1,144 | 46 | 107 | 24.869565 | 0.852754 | 0.568182 | 0 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa0ef04e32539da4111738a97b4fb91b9adbfeb7 | 296 | py | Python | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | from .arena_object import Object
from ..attributes import Position
class Line(Object):
"""
Class for Line in the ARENA.
"""
def __init__(self, start=Position(0,0,0), end=Position(10,10,10), **kwargs):
super().__init__(object_type="line", start=start, end=end, **kwargs)
| 26.909091 | 80 | 0.665541 | 42 | 296 | 4.452381 | 0.5 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.179054 | 296 | 10 | 81 | 29.6 | 0.73251 | 0.094595 | 0 | 0 | 0 | 0 | 0.015936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
aa140311bd46c7b3499277f3a584d6f7846994ac | 647 | py | Python | credentials.py | feliposz/submissions-scraper-selenium | e12c4194bfa96738e9042f4b0dd62e0ee14b3af4 | [
"MIT"
] | 3 | 2020-07-24T08:14:42.000Z | 2021-06-25T12:46:15.000Z | credentials.py | th3c0d3br34ker/hackerrank-scraper-selenium | e12c4194bfa96738e9042f4b0dd62e0ee14b3af4 | [
"MIT"
] | 8 | 2020-06-24T14:37:47.000Z | 2021-06-02T02:04:05.000Z | credentials.py | th3c0d3br34ker/hackerrank-scraper-selenium | e12c4194bfa96738e9042f4b0dd62e0ee14b3af4 | [
"MIT"
] | 2 | 2020-10-26T02:53:45.000Z | 2022-03-11T06:21:24.000Z | class ACCOUNTS():
def __init__(self):
self.CodeChef = {
"username": "username",
"password": "password"
}
self.Hackerrank = {
"username": "username",
"password": "password",
"tracks": ["python"]
# Available (... | 32.35 | 100 | 0.462133 | 49 | 647 | 6.020408 | 0.755102 | 0.108475 | 0.162712 | 0.216949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380216 | 647 | 19 | 101 | 34.052632 | 0.735661 | 0.344668 | 0 | 0.153846 | 0 | 0 | 0.19 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8 | 639 | py | Python | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from tastypie.api import Api
from encuestas.api.user import UserResource
from encuestas.api.encuesta import EncuestaResource
from encuestas.api.grupo import GrupoResource
from encuestas.api.pregunta import PreguntaResource
from encuestas.api.opcion import OpcionResource
from encuestas.api.link import LinkResource
from ... | 33.631579 | 53 | 0.843505 | 81 | 639 | 6.54321 | 0.271605 | 0.075472 | 0.211321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015126 | 0.068858 | 639 | 18 | 54 | 35.5 | 0.87563 | 0 | 0 | 0 | 0 | 0 | 0.00313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a4b2c4045c07be3b84327e571cdbd1e25cc17fb5 | 7,810 | py | Python | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 46 | 2015-05-26T20:59:24.000Z | 2022-03-31T04:57:50.000Z | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 338 | 2015-05-15T20:33:35.000Z | 2022-03-31T21:43:43.000Z | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 49 | 2016-03-21T22:12:31.000Z | 2022-03-29T21:50:25.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module provides a Regions class.
"""
from .core import Region
from .registry import RegionsRegistry
__all__ = ['Regions']
__doctest_skip__ = ['Regions.read', 'Regions.write', 'Regions.parse',
'Regions.serialize']
class Regi... | 29.360902 | 71 | 0.554802 | 838 | 7,810 | 5.077566 | 0.186158 | 0.038778 | 0.021387 | 0.017861 | 0.409166 | 0.380964 | 0.344536 | 0.308813 | 0.297532 | 0.255229 | 0 | 0.003299 | 0.340205 | 7,810 | 265 | 72 | 29.471698 | 0.822434 | 0.556722 | 0 | 0.127273 | 0 | 0 | 0.041505 | 0.0147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290909 | false | 0 | 0.036364 | 0.036364 | 0.563636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a4c132843d17f9507a14b314301300f42b750e05 | 240 | py | Python | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class RoadAdmin(django_admin.ModelAdmin):
list_display = ('id', 'point_1', 'point_2', 'length')
list_filter = ('point_1', 'point_2')
django_admin.site.register(models.Road, RoadAdmin)
| 17.142857 | 57 | 0.720833 | 32 | 240 | 5.09375 | 0.65625 | 0.147239 | 0.134969 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.133333 | 240 | 13 | 58 | 18.461538 | 0.764423 | 0 | 0 | 0 | 0 | 0 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a4d08644e553bef96fa074dce2bce8a5b53b58cb | 722 | py | Python | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | '''Escreva um programa que solicite ao usuário dois números e apresente na tela os resultados das
operações aritméticas (soma, subtração, multiplicação, divisão, resto da divisão, exponenciação, radiciação)'''
import math
num1 = float(input('Informe um numero: '))
num2 = float(input('Informe outro numero: '))
print(f... | 55.538462 | 111 | 0.742382 | 114 | 722 | 4.701754 | 0.429825 | 0.078358 | 0.169776 | 0.158582 | 0.285448 | 0.285448 | 0.285448 | 0.285448 | 0 | 0 | 0 | 0.025237 | 0.121884 | 722 | 13 | 112 | 55.538462 | 0.820189 | 0.282548 | 0 | 0 | 0 | 0 | 0.729045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a4d467254a4a29717b7a458692ff809fe8f6fa14 | 195 | py | Python | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: fnels
"""
import random
def random_actions():
action_list = [random.randint(0, 3)]
return action_list
| 16.25 | 44 | 0.558974 | 23 | 195 | 4.608696 | 0.826087 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.276923 | 195 | 12 | 45 | 16.25 | 0.723404 | 0.297436 | 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 | 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 | 2 |
a4d9167372fd4f933a82a1fee41baeab560eb279 | 1,012 | py | Python | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | 1 | 2021-07-09T14:40:14.000Z | 2021-07-09T14:40:14.000Z | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | null | null | null | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | null | null | null | #############################################################################
#
#
# Module of BFA that manages server statistics in realtime
#
#
#############################################################################
""" This module implements the real-time logging of in-game statistics specifically for one curre... | 26.631579 | 114 | 0.560277 | 112 | 1,012 | 4.955357 | 0.607143 | 0.086486 | 0.03964 | 0.057658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010127 | 0.219368 | 1,012 | 37 | 115 | 27.351351 | 0.692405 | 0.550395 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a4dade425c95d9b111ad44e99a5db732bfa49c43 | 1,592 | py | Python | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | import pytest
import tempfile
@pytest.fixture
def post(user):
from posts.models import Post
image = tempfile.NamedTemporaryFile(suffix=".jpg").name
return Post.objects.create(text='Тестовый пост 1', author=user, image=image)
@pytest.fixture
def group():
from posts.models import Group
return Grou... | 26.983051 | 116 | 0.766332 | 205 | 1,592 | 5.873171 | 0.214634 | 0.097176 | 0.119601 | 0.124585 | 0.638704 | 0.548173 | 0.466777 | 0.466777 | 0.466777 | 0.466777 | 0 | 0.010862 | 0.132538 | 1,592 | 58 | 117 | 27.448276 | 0.86097 | 0 | 0 | 0.425 | 0 | 0 | 0.077889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.275 | 0 | 0.725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a4eac09718b988218fe43f31996cb5b72933482b | 687 | py | Python | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | import os
import sys
from argparse import ArgumentParser
from sphinxviewer.sphinx import build_html
from sphinxviewer.server import serve_server
def main():
parser = ArgumentParser(description="Live editing sphinx doc server")
# parser.add_argument("-p", "--port", default=8888, help="Port to run server on")... | 31.227273 | 88 | 0.71179 | 88 | 687 | 5.443182 | 0.613636 | 0.066806 | 0.070981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015901 | 0.176128 | 687 | 21 | 89 | 32.714286 | 0.830389 | 0.368268 | 0 | 0 | 0 | 0 | 0.132867 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a4f36624a0ebfb5fad3f19befd7baacdcb07a66d | 4,703 | py | Python | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import os
import shutil
import sys
import unittest
from os import path as op
from tempfile import gettempdir
from send2trash import send2trash as s2t
# import the two versions as well as the "automatic" version
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_le... | 30.341935 | 88 | 0.652775 | 613 | 4,703 | 4.784666 | 0.156607 | 0.054552 | 0.061371 | 0.032731 | 0.770542 | 0.695875 | 0.634504 | 0.613365 | 0.613365 | 0.613365 | 0 | 0.013862 | 0.233043 | 4,703 | 154 | 89 | 30.538961 | 0.799279 | 0.026366 | 0 | 0.59322 | 0 | 0 | 0.060546 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.254237 | false | 0 | 0.076271 | 0 | 0.347458 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a4f8e8179ce401a6630d257843d17f4bc8c551d3 | 212 | py | Python | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | 3 | 2020-06-28T15:47:02.000Z | 2021-02-14T19:25:13.000Z | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | null | null | null | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='POC model for publication',
author='Thomas Haine',
license='MIT',
)
| 19.272727 | 44 | 0.665094 | 26 | 212 | 5.346154 | 0.807692 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.198113 | 212 | 10 | 45 | 21.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
a4facbc09faf96725436ab1390e2089d932160c8 | 2,577 | py | Python | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | 3 | 2021-06-08T16:01:23.000Z | 2021-11-14T00:49:36.000Z | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | null | null | null | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | null | null | null | import logging
import archinstall
__version__ = 0.1
class Plugin:
VARIANTS_DICT_KEY = "variants"
VARIANT_KEY = "variant"
def __init__(self):
if self.has_variants() and self.variants_is_dict():
variant_key = self.get_selected_variant_key()
variant = archinstall.arguments[... | 32.620253 | 85 | 0.631354 | 289 | 2,577 | 5.387543 | 0.207612 | 0.154143 | 0.04817 | 0.048812 | 0.215157 | 0.152216 | 0 | 0 | 0 | 0 | 0 | 0.003231 | 0.279395 | 2,577 | 78 | 86 | 33.038462 | 0.835218 | 0 | 0 | 0.034483 | 0 | 0 | 0.059759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.12069 | 0.465517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
352a8ae5a17ad0bab619623a2f26962525fde757 | 4,570 | py | Python | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | null | null | null | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | null | null | null | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | 1 | 2021-09-06T07:53:25.000Z | 2021-09-06T07:53:25.000Z | #!/usr/bin/env python3
import numpy as np
import numpy.random as npr
import pytest
A1 = npr.rand( 1, 1)
B1 = npr.rand( 1, 1)
C1 = npr.rand( 1, 1)
A3 = npr.rand( 3, 3)
B3 = npr.rand( 3, 3)
C3 = npr.rand( 3, 3)
A10 = npr.rand( 10, 10)
B10 = npr.rand( 10, 10)
C10... | 42.71028 | 99 | 0.695842 | 729 | 4,570 | 4.109739 | 0.102881 | 0.088117 | 0.053405 | 0.154873 | 0.508344 | 0.286382 | 0.193591 | 0.193591 | 0 | 0 | 0 | 0.164597 | 0.171772 | 4,570 | 106 | 100 | 43.113208 | 0.626948 | 0.004595 | 0 | 0 | 0 | 0 | 0.002199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.369565 | false | 0 | 0.032609 | 0.184783 | 0.423913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
353078a42c25216e1cef61978c7cbdf901484947 | 2,658 | py | Python | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
from context import braingraphgeo as bgg
def test_geomsurr(sample_W_1, sample_D):
W = sample_W_1.values
d = sample_D.values
Wgeo = bgg.surrogates.geomsurr(W, d, rs=2021)
result = np.array([[0., 0.00072248, 0.00... | 53.16 | 83 | 0.52784 | 322 | 2,658 | 4.285714 | 0.263975 | 0.02029 | 0.023188 | 0.047826 | 0.085507 | 0.030435 | 0.030435 | 0 | 0 | 0 | 0 | 0.589522 | 0.346501 | 2,658 | 49 | 84 | 54.244898 | 0.204951 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.045455 | false | 0 | 0.068182 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3535c2f41fec283317a2615b85df36199539b828 | 163 | py | Python | kafka/test/consume.py | nicovillanueva/docker-kafka | a3f229e9ebe28c947efe2be22bb88e54338c86e7 | [
"Apache-2.0"
] | null | null | null | kafka/test/consume.py | nicovillanueva/docker-kafka | a3f229e9ebe28c947efe2be22bb88e54338c86e7 | [
"Apache-2.0"
] | null | null | null | kafka/test/consume.py | nicovillanueva/docker-kafka | a3f229e9ebe28c947efe2be22bb88e54338c86e7 | [
"Apache-2.0"
] | null | null | null | from kafka import KafkaConsumer
consumer = KafkaConsumer('test-topic', bootstrap_servers='localhost:9092')
print("listening")
for msg in consumer:
print(msg)
| 23.285714 | 74 | 0.773006 | 20 | 163 | 6.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.116564 | 163 | 6 | 75 | 27.166667 | 0.840278 | 0 | 0 | 0 | 0 | 0 | 0.202454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3542ab8dbb20886a361a27ff5789ccca3ada3441 | 1,224 | py | Python | py2450/misc.py | sveinrou/py2450 | 195a649efd282b15b60ee0e3184d096afce5e311 | [
"MIT"
] | null | null | null | py2450/misc.py | sveinrou/py2450 | 195a649efd282b15b60ee0e3184d096afce5e311 | [
"MIT"
] | null | null | null | py2450/misc.py | sveinrou/py2450 | 195a649efd282b15b60ee0e3184d096afce5e311 | [
"MIT"
] | null | null | null | import pyvisa
def find_instruments():
rm = pyvisa.ResourceManager()
instruments = rm.list_resources()
return {'usb':[i for i in instruments if 'USB' in i],
'gpib':[i for i in instruments if 'GPIB' in i],
'serial':[i for i in instruments if 'ASRL' in i]}
def play_star_wars(smu):
... | 22.666667 | 114 | 0.377451 | 192 | 1,224 | 2.364583 | 0.302083 | 0.088106 | 0.052863 | 0.052863 | 0.378855 | 0.378855 | 0.246696 | 0.198238 | 0.198238 | 0.198238 | 0 | 0.155028 | 0.415033 | 1,224 | 53 | 115 | 23.09434 | 0.47905 | 0 | 0 | 0.72 | 0 | 0 | 0.055556 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
101e55aaa1d141b7b14f9e29fcdf1c97452cd043 | 2,600 | py | Python | driverapp/models.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | driverapp/models.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | driverapp/models.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class Driver(models.Model):
name = models.CharField(max_length=30)
password = models.CharField(max_length=30)
email = models.EmailField()
Contact = models.CharField(max_length=10)
def s... | 29.545455 | 102 | 0.682308 | 330 | 2,600 | 5.209091 | 0.260606 | 0.148342 | 0.136126 | 0.181501 | 0.536358 | 0.472368 | 0.233857 | 0.172193 | 0.172193 | 0.172193 | 0 | 0.015027 | 0.206538 | 2,600 | 87 | 103 | 29.885057 | 0.818226 | 0.009231 | 0 | 0.369231 | 0 | 0 | 0.008936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0.030769 | 0.030769 | 0.061538 | 0.830769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
101f9a1a4f2942de9319c207e8d75011f9f74070 | 1,019 | py | Python | imagepy/tools/Draw/floodfill_tol.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | 1 | 2019-02-22T03:09:24.000Z | 2019-02-22T03:09:24.000Z | imagepy/tools/Draw/floodfill_tol.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | null | null | null | imagepy/tools/Draw/floodfill_tol.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 19 17:35:09 2016
@author: yxl
"""
from imagepy.core.engine import Tool
import numpy as np
from imagepy.core.manager import ColorManager
from imagepy.core.draw.fill import floodfill
class Plugin(Tool):
title = 'Flood Fill'
para = {'tor':10, 'con':'8-connect'}
... | 26.815789 | 87 | 0.557409 | 145 | 1,019 | 3.875862 | 0.517241 | 0.017794 | 0.05694 | 0.064057 | 0.122776 | 0.122776 | 0.096085 | 0.096085 | 0.096085 | 0 | 0 | 0.034667 | 0.263984 | 1,019 | 37 | 88 | 27.540541 | 0.714667 | 0.095191 | 0 | 0.136364 | 0 | 0 | 0.094402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.136364 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
10241faf582974a58757a74fbc6ec5ed03a8cff3 | 170 | py | Python | devlivery/ext/migrate/__init__.py | wlsouza/flasklivery | 564c6135d29493ae5efe074488cb0df7f811d889 | [
"Unlicense"
] | null | null | null | devlivery/ext/migrate/__init__.py | wlsouza/flasklivery | 564c6135d29493ae5efe074488cb0df7f811d889 | [
"Unlicense"
] | null | null | null | devlivery/ext/migrate/__init__.py | wlsouza/flasklivery | 564c6135d29493ae5efe074488cb0df7f811d889 | [
"Unlicense"
] | null | null | null | from flask import Flask
from flask_migrate import Migrate
from devlivery.ext.db import db
migrate = Migrate()
def init_app(app: Flask):
migrate.init_app(app, db)
| 15.454545 | 33 | 0.758824 | 27 | 170 | 4.666667 | 0.37037 | 0.142857 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 170 | 10 | 34 | 17 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
102f51bc17643b398143c26098d6f0bd199096fd | 342 | py | Python | src/property_app/app_info.py | almostprod/property-app | 2e9dc6c64e7fd91d287fc95e513fa3ab1079fa54 | [
"Apache-2.0"
] | 2 | 2020-03-03T16:52:31.000Z | 2020-03-17T21:35:30.000Z | src/property_app/app_info.py | amcclosky/property-app | 9afb0210739955ff19bfcb477acdbd07521ce851 | [
"Apache-2.0"
] | 1 | 2021-05-11T16:54:56.000Z | 2021-05-11T16:54:56.000Z | src/property_app/app_info.py | amcclosky/property-app | 9afb0210739955ff19bfcb477acdbd07521ce851 | [
"Apache-2.0"
] | 1 | 2020-05-04T06:39:35.000Z | 2020-05-04T06:39:35.000Z | import time
from dataclasses import dataclass
from datetime import date, datetime
from property_app.config import get_config
config = get_config()
@dataclass
class AppInfo:
project: str = config.ASGI_APP
commit_hash: str = config.APP_BUILD_HASH
build_date: date = datetime.today()
build_epoch_sec: i... | 20.117647 | 44 | 0.75731 | 48 | 342 | 5.1875 | 0.479167 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169591 | 342 | 16 | 45 | 21.375 | 0.876761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
10485a191600110454b70bb7ff198f1ba032639d | 544 | py | Python | network/demo_espat_ap_test.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 485 | 2019-03-18T10:53:59.000Z | 2022-03-27T09:02:08.000Z | network/demo_espat_ap_test.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 110 | 2019-04-04T09:07:39.000Z | 2022-03-03T08:08:19.000Z | network/demo_espat_ap_test.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 379 | 2019-03-18T04:48:46.000Z | 2022-03-30T00:29:29.000Z | # This file is part of MaixPY
# Copyright (c) sipeed.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
from network_espat import wifi
wifi.reset()
print(wifi.at_cmd("AT\r\n"))
print(wifi.at_cmd("AT+GMR\r\n"))
'''
>>> reset...
b'\r\n\r\nOK\r\n'
b'AT version:1.1.0.0(May 1... | 24.727273 | 121 | 0.696691 | 107 | 544 | 3.504673 | 0.654206 | 0.026667 | 0.058667 | 0.074667 | 0.085333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113872 | 0.112132 | 544 | 21 | 122 | 25.904762 | 0.662526 | 0.251838 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
10527d2aa82328718d79fcf72f8bc5b68e57039d | 405 | py | Python | tests/urls.py | xiu1/django-rest | 3ba381a8f8be8a27af464839dcdd5677857043ba | [
"MIT"
] | null | null | null | tests/urls.py | xiu1/django-rest | 3ba381a8f8be8a27af464839dcdd5677857043ba | [
"MIT"
] | null | null | null | tests/urls.py | xiu1/django-rest | 3ba381a8f8be8a27af464839dcdd5677857043ba | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from rest.views import TestRestView, TestAuthHeaderView, TestAuthUrlView
urlpatterns = [
url('^rest/$', TestRestView.as_view(), name='rest'),
url('^auth_header_rest/$', TestAuthHeaderView.as_view(), name='rest_auth_header'),
url('^a... | 40.5 | 93 | 0.735802 | 52 | 405 | 5.5 | 0.442308 | 0.062937 | 0.104895 | 0.146853 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101235 | 405 | 9 | 94 | 45 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.224691 | 0.079012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
105b04f24aada022dca8226b67acae586bf9c15f | 738 | py | Python | 860-lemonade-change.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | 860-lemonade-change.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | 860-lemonade-change.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | class Solution:
def lemonadeChange(self, bills: List[int]) -> bool:
money = [0, 0, 0]
for x in bills:
if x == 5:
money[0] += 1
if x == 10:
if money[0] >= 1:
money[1] += 1
money[0] -= 1
... | 29.52 | 55 | 0.295393 | 74 | 738 | 2.945946 | 0.364865 | 0.220183 | 0.16055 | 0.110092 | 0.137615 | 0.137615 | 0.137615 | 0 | 0 | 0 | 0 | 0.108108 | 0.598916 | 738 | 25 | 56 | 29.52 | 0.628378 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
105c2eb00700830d7030c477994f8f358f536d08 | 1,231 | py | Python | Software/Services/__init__.py | Hackin7/BlockComPi | 36938e219b42c5d220db0a64e4718e95720c4850 | [
"X11"
] | null | null | null | Software/Services/__init__.py | Hackin7/BlockComPi | 36938e219b42c5d220db0a64e4718e95720c4850 | [
"X11"
] | null | null | null | Software/Services/__init__.py | Hackin7/BlockComPi | 36938e219b42c5d220db0a64e4718e95720c4850 | [
"X11"
] | null | null | null | #Do Not Edit
#colors R G B
white = (255, 255, 255)
red = (255, 0, 0)
green = ( 0, 255, 0)
blue = ( 0, 0, 255)
black = ( 0, 0, 0)
cyan = ( 50, 255, 255)
magenta = (255, 0, 255)
yellow = (255, 255, 0)
orange = (255, 127, 0)
#The Service/Notifications List
# L... | 24.62 | 122 | 0.57108 | 169 | 1,231 | 4.159763 | 0.35503 | 0.051209 | 0.039829 | 0.034139 | 0.125178 | 0.125178 | 0 | 0 | 0 | 0 | 0 | 0.086364 | 0.285134 | 1,231 | 49 | 123 | 25.122449 | 0.7125 | 0.263201 | 0 | 0.129032 | 1 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1064936a6b00c876007e8bb9831e079b131672ea | 50 | py | Python | models/__init__.py | yoshikawat64m/kalman-variational-auto-encoder | 7d7d0ed170746267f26cc869a8645b2c93da350d | [
"MIT"
] | null | null | null | models/__init__.py | yoshikawat64m/kalman-variational-auto-encoder | 7d7d0ed170746267f26cc869a8645b2c93da350d | [
"MIT"
] | null | null | null | models/__init__.py | yoshikawat64m/kalman-variational-auto-encoder | 7d7d0ed170746267f26cc869a8645b2c93da350d | [
"MIT"
] | null | null | null | from .kvae import KVAE
__all__ = (
'KVAE',
)
| 8.333333 | 22 | 0.58 | 6 | 50 | 4.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 50 | 5 | 23 | 10 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
109b329d3c687011ac089097beb800b987a7d727 | 1,108 | py | Python | chat_manager_api/categories/account.py | lordralinc/chat_manager_api | 6c1d57f1d4942d53ee70099ea91f4cbb14b63aab | [
"MIT"
] | null | null | null | chat_manager_api/categories/account.py | lordralinc/chat_manager_api | 6c1d57f1d4942d53ee70099ea91f4cbb14b63aab | [
"MIT"
] | null | null | null | chat_manager_api/categories/account.py | lordralinc/chat_manager_api | 6c1d57f1d4942d53ee70099ea91f4cbb14b63aab | [
"MIT"
] | null | null | null | from chat_manager_api.categories.base import BaseAPICategory
from chat_manager_api.models import account
class AccountAPICategory(BaseAPICategory):
def get_web_hook_info(self) -> account.GetWebHookInfo:
return self.api.make_request("account.getWebHookInfo", dataclass=account.GetWebHookInfo)
async de... | 46.166667 | 120 | 0.768953 | 142 | 1,108 | 5.788732 | 0.232394 | 0.051095 | 0.080292 | 0.131387 | 0.59854 | 0.450122 | 0.279805 | 0.279805 | 0.138686 | 0 | 0 | 0 | 0.129964 | 1,108 | 23 | 121 | 48.173913 | 0.852697 | 0 | 0 | 0 | 0 | 0 | 0.110108 | 0.077617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
10a3272e6ee4e0b4d86ddd253e763f6e83ab8cca | 780 | py | Python | sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 9 | 2017-12-16T21:48:57.000Z | 2022-01-06T12:22:24.000Z | sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 3 | 2020-12-18T11:56:46.000Z | 2022-03-31T18:37:10.000Z | sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 2 | 2019-12-29T16:08:32.000Z | 2020-06-15T14:05:34.000Z | """
Sponge Knowledge Base
Remote API security
"""
def configureAccessService():
# Configure the RoleBasedAccessService.
# Simple access configuration: role -> knowledge base names regexps.
remoteApiServer.accessService.addRolesToKb({ "ROLE_ADMIN":[".*"], "ROLE_ANONYMOUS":["boot", "python"]})
# Simple... | 33.913043 | 107 | 0.723077 | 68 | 780 | 8.205882 | 0.529412 | 0.150538 | 0.069892 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139744 | 780 | 22 | 108 | 35.454545 | 0.831595 | 0.379487 | 0 | 0.25 | 0 | 0 | 0.190678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | true | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10b3992140f6b71f5bf7a94b467357cdf363478d | 417 | py | Python | tests/test_cli.py | sthagen/python-xmllint_map_html | 23363cfe1c126bc72efddf8fea084283375e2204 | [
"MIT"
] | null | null | null | tests/test_cli.py | sthagen/python-xmllint_map_html | 23363cfe1c126bc72efddf8fea084283375e2204 | [
"MIT"
] | 16 | 2020-09-11T11:07:09.000Z | 2020-12-06T16:42:18.000Z | tests/test_cli.py | sthagen/python-xmllint_map_html | 23363cfe1c126bc72efddf8fea084283375e2204 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,unused-import,reimported
import io
import json
import pytest # type: ignore
import xmllint_map_html.cli as cli
import xmllint_map_html.xmllint_map_html as xmh
def test_main_ok_minimal(capsys):
job = ['']
report_expected = ''
assert cli.main(arg... | 24.529412 | 60 | 0.714628 | 59 | 417 | 4.864407 | 0.627119 | 0.10453 | 0.146341 | 0.139373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.165468 | 417 | 16 | 61 | 26.0625 | 0.818966 | 0.223022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
10bb63ae565c938efcb0bb9a6dc0a388e76e7918 | 46,242 | py | Python | flash/core/data/io/input_transform.py | ar90n/lightning-flash | 61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131 | [
"Apache-2.0"
] | null | null | null | flash/core/data/io/input_transform.py | ar90n/lightning-flash | 61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131 | [
"Apache-2.0"
] | null | null | null | flash/core/data/io/input_transform.py | ar90n/lightning-flash | 61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131 | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# 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... | 38.09061 | 120 | 0.648674 | 5,503 | 46,242 | 5.24841 | 0.065601 | 0.029638 | 0.051104 | 0.054844 | 0.725088 | 0.688941 | 0.643238 | 0.615435 | 0.594938 | 0.585174 | 0 | 0.000447 | 0.27408 | 46,242 | 1,213 | 121 | 38.122012 | 0.859956 | 0.438692 | 0 | 0.269565 | 0 | 0.002174 | 0.079551 | 0.036452 | 0 | 0 | 0 | 0.000824 | 0 | 1 | 0.213043 | false | 0.145652 | 0.032609 | 0.01087 | 0.358696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
52a7bb8061d2a7831f792c5ce19bca7393244db9 | 11,046 | py | Python | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/resources/shared_set.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.p... | 58.444444 | 1,499 | 0.779558 | 1,543 | 11,046 | 5.232664 | 0.160078 | 0.053134 | 0.057221 | 0.071836 | 0.698662 | 0.638469 | 0.500867 | 0.439188 | 0.411568 | 0.37887 | 0 | 0.042624 | 0.10583 | 11,046 | 188 | 1,500 | 58.755319 | 0.77483 | 0.026978 | 0 | 0.311377 | 1 | 0.017964 | 0.390187 | 0.254259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053892 | 0 | 0.053892 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52c4acd2d2a5426d20652531bc70630c947940a9 | 247 | py | Python | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | import re
n = int(input())
def loopai(n):
x = [i+1 for i in range(n)]
z = x
print(re.sub(' ','',re.sub('\,','',re.sub('\]','',re.sub('\[','',str(z))))))
def main():
loopai(n)
if __name__ == '__main__':
main()
| 16.466667 | 81 | 0.441296 | 37 | 247 | 2.72973 | 0.540541 | 0.19802 | 0.207921 | 0.29703 | 0.19802 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.263158 | 247 | 14 | 82 | 17.642857 | 0.549451 | 0 | 0 | 0 | 0 | 0 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52d4e85bc2d0512c2b40fb706b7936fa8d8f91d2 | 5,239 | py | Python | csbiginteger/BigIntegerNet.py | NeoResearch/csBigInteger.py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | 2 | 2019-07-12T17:09:16.000Z | 2019-07-26T03:17:56.000Z | csbiginteger/BigIntegerNet.py | NeoResearch/csbiginteger-py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | 9 | 2019-07-15T06:48:19.000Z | 2019-07-16T13:56:15.000Z | csbiginteger/BigIntegerNet.py | NeoResearch/csbiginteger-py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from csbiginteger.BigInteger import BigInteger
from functools import total_ordering
# requires: pip install msl-loadlib pycparser pythonnet
from msl.loadlib import LoadLibrary
# remember to execute first: cd csbiginteger/dotnet && dotnet build -c Release
net = LoadLibrary('csbiginteger/dotnet/bi... | 27.719577 | 134 | 0.620538 | 674 | 5,239 | 4.639466 | 0.252226 | 0.044771 | 0.06236 | 0.066837 | 0.319476 | 0.292613 | 0.263192 | 0.21842 | 0.21842 | 0.21842 | 0 | 0.022378 | 0.266463 | 5,239 | 188 | 135 | 27.867021 | 0.791309 | 0.200993 | 0 | 0.298246 | 0 | 0 | 0.018736 | 0.017055 | 0 | 0 | 0.000961 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.026316 | 0.149123 | 0.5 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
52d62a879cc5245c35a6c1ccbaf5bd54273348f1 | 334 | py | Python | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | 1 | 2021-09-18T13:26:18.000Z | 2021-09-18T13:26:18.000Z | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | null | null | null | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | null | null | null | import dico_command
class Basic(dico_command.Addon):
@dico_command.command("ping")
async def ping(self, ctx: dico_command.Context):
await ctx.reply(f"Pong! {round(self.bot.ping*1000)}ms")
def load(bot: dico_command.Bot):
bot.load_addons(Basic)
def unload(bot: dico_command.Bot):
bot.unload_... | 20.875 | 63 | 0.712575 | 51 | 334 | 4.509804 | 0.45098 | 0.286957 | 0.121739 | 0.147826 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014134 | 0.152695 | 334 | 15 | 64 | 22.266667 | 0.798587 | 0 | 0 | 0 | 0 | 0 | 0.116766 | 0.086826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 2 |
52e00f970cfb2937e6c8fd35dd1fbfe0b22df7e8 | 8,940 | py | Python | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2018 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 42.980769 | 132 | 0.687248 | 1,034 | 8,940 | 5.845261 | 0.232108 | 0.023825 | 0.02366 | 0.033091 | 0.583719 | 0.576439 | 0.561549 | 0.54368 | 0.513567 | 0.513567 | 0 | 0.009161 | 0.206376 | 8,940 | 207 | 133 | 43.188406 | 0.842706 | 0.165884 | 0 | 0.731959 | 0 | 0 | 0.360456 | 0.074822 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020619 | null | null | 0.350515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52e223443238aa78f530247b57393b36f3ae7fbd | 37,563 | py | Python | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | 4 | 2019-10-15T14:32:07.000Z | 2021-02-05T01:01:02.000Z | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | 1 | 2019-10-24T08:42:21.000Z | 2019-10-31T06:05:00.000Z | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# FSRobo-R Package BSDL
# ---------
# Copyright (C) 2019 FUJISOFT. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
# 1. Redistributions of source code... | 41.876254 | 99 | 0.554109 | 4,538 | 37,563 | 4.517629 | 0.446673 | 0.029999 | 0.008878 | 0.003512 | 0.027608 | 0.019999 | 0.010536 | 0.010536 | 0.010536 | 0.010536 | 0 | 0.356235 | 0.316881 | 37,563 | 896 | 100 | 41.922991 | 0.442712 | 0.434816 | 0 | 0.07767 | 0 | 0 | 0.147375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01335 | false | 0 | 0.004854 | 0.001214 | 0.029126 | 0.003641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52faf9ee9dd8c96e16c79f2d90387099a923bd12 | 3,707 | py | Python | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | 6 | 2020-05-07T03:39:50.000Z | 2022-02-22T17:36:30.000Z | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | null | null | null | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | null | null | null |
import pytest
import cue
def test_basic():
cue.compile('')
assert '1' == str(cue.compile('1'))
assert ['1', '2', '3', '{\n\ta: 1\n}'] == [str(v) for v in cue.compile('[1,2,3,{a:1}]')]
assert [('a', '1'), ('b', '2')] == [(str(k), str(v)) for k, v in cue.compile('{a: 1, b: 2}')]
with pytest.raises(cue.CueErr... | 34.971698 | 95 | 0.582951 | 580 | 3,707 | 3.663793 | 0.101724 | 0.211765 | 0.077647 | 0.103529 | 0.601882 | 0.470118 | 0.313412 | 0.299294 | 0.253176 | 0.154353 | 0 | 0.090447 | 0.149987 | 3,707 | 105 | 96 | 35.304762 | 0.583942 | 0 | 0 | 0.155556 | 0 | 0 | 0.131948 | 0.021047 | 0 | 0 | 0 | 0 | 0.611111 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52fc7df4b4b16f1ad555d16b6d091a22b3e1319c | 751 | py | Python | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | null | null | null | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | 4 | 2020-03-24T16:51:35.000Z | 2021-06-01T23:37:00.000Z | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | null | null | null | from mqfactory.tools import Policy, Rule, CATCH_ALL
def test_empty_policy():
p = Policy()
assert p.match({"something": "something"}) == CATCH_ALL
assert p.match({}) == CATCH_ALL
def test_policy():
p = Policy([
Rule({ "a": 1, "b": 1, "c": 1 }, "a=1,b=1,c=1" ),
Rule({ "a": 1, "b": 1, ... | 35.761905 | 65 | 0.459387 | 127 | 751 | 2.669291 | 0.188976 | 0.070796 | 0.283186 | 0.070796 | 0.356932 | 0.289086 | 0.227139 | 0.123894 | 0 | 0 | 0 | 0.057971 | 0.26498 | 751 | 20 | 66 | 37.55 | 0.556159 | 0 | 0 | 0 | 0 | 0 | 0.107856 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52fe203ea6a382182458a46a4edbd741b0f6208f | 919 | py | Python | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | #BEGIN_HEADER
#END_HEADER
'''
Module Name:
MetaboliteAtlas
Module Description:
A web-based atlas to liquid chromatography–mass spectrometry (LCMS) data
'''
class MetaboliteAtlas:
#BEGIN_CLASS_HEADER
#END_CLASS_HEADER
def __init__(self, config): #config contains contents of config file in hash or
... | 24.837838 | 103 | 0.645267 | 107 | 919 | 5.439252 | 0.663551 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294886 | 919 | 36 | 104 | 25.527778 | 0.896605 | 0.509249 | 0 | 0 | 0 | 0 | 0.165888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5e13ce9974225da3573940cfb2a5a693b633e821 | 993 | py | Python | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | from nose.tools import *
from unittest.mock import patch, Mock
from rxaws.source.sourcebase import SourceBase
from botocore.client import BaseClient
class BaseClient(Mock):
""" mock boto BaseClient, won't really do anything"""
class TestSourceBase:
# inject the mock BaseClient
@patch('boto3.client', retu... | 35.464286 | 95 | 0.712991 | 126 | 993 | 5.492063 | 0.52381 | 0.040462 | 0.098266 | 0.09104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005038 | 0.200403 | 993 | 27 | 96 | 36.777778 | 0.866499 | 0.321249 | 0 | 0 | 0 | 0 | 0.058912 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.2 | false | 0.066667 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
5e2225346054d6facdf73eafd32caba7ecf7dd78 | 342 | py | Python | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | 2 | 2015-11-08T12:45:38.000Z | 2017-06-03T09:16:16.000Z | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | """
taskmaster.example
~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
def get_jobs(last=0):
# last_job would be sent if state was resumed
# from a previous run
for i in xrange(last, 20000):
yield i
def handle_job(i):
pass
... | 17.1 | 59 | 0.602339 | 51 | 342 | 3.980392 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.239766 | 342 | 19 | 60 | 18 | 0.734615 | 0.619883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5e2a1a3b81768dc01ada5c03b830c68d66cb3bb2 | 863 | py | Python | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | from env_wrapper import SubprocVecEnv, DummyVecEnv
import numpy as np
import multiagent.scenarios as scenarios
from multiagent.environment import MultiAgentEnv
def make_parallel_env(n_rollout_threads, seed=1):
def get_env_fn(rank):
def init_env():
env = make_env("simple_adversary")
... | 30.821429 | 91 | 0.695249 | 113 | 863 | 5.097345 | 0.415929 | 0.041667 | 0.078125 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016176 | 0.212051 | 863 | 27 | 92 | 31.962963 | 0.830882 | 0.090382 | 0 | 0.111111 | 0 | 0 | 0.024422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5e2c05aeee32a3c0a0b12b655a2e82559e46b7c9 | 269,482 | py | Python | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:00:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using... | 130.12168 | 14,121 | 0.801753 | 29,181 | 269,482 | 7.403996 | 0.043419 | 0.075703 | 0.13248 | 0.012645 | 0.574837 | 0.45628 | 0.448689 | 0.441733 | 0.26987 | 0.232468 | 0 | 0.072619 | 0.084848 | 269,482 | 2,070 | 14,122 | 130.184541 | 0.80346 | 0.001343 | 0 | 0 | 0 | 0.002425 | 0.188458 | 0.00476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005335 | 0 | 0.005335 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e3a9ab4118c0f0c1c0188378ff8afd2c67ece34 | 350 | py | Python | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 30 | 2017-09-05T14:29:30.000Z | 2022-03-20T01:51:29.000Z | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | null | null | null | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 7 | 2018-03-15T10:07:43.000Z | 2020-12-14T09:36:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
host = "training.pwnable.tw"
port = 11007
r = remote(host,port)
password_addr = 0x804a048
r.recvuntil("?")
r.sendline(p32(password_addr) + "#" + "%10$s" + "#" )
r.recvuntil("#")
p = r.recvuntil("#")
password = u32(p[:4])
r.recvuntil(":")
r.sendline(s... | 15.909091 | 53 | 0.625714 | 49 | 350 | 4.428571 | 0.632653 | 0.184332 | 0.101382 | 0.175115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066225 | 0.137143 | 350 | 21 | 54 | 16.666667 | 0.652318 | 0.12 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 1 | 0 | false | 0.307692 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
eaa3714aff832e686ae4830447a5096de12ce12d | 143 | py | Python | Python/Sets/Set.add().py | pavstar619/HackerRank | 697ee46b6e621ad884a064047461d7707b1413cd | [
"MIT"
] | 61 | 2017-04-27T13:45:12.000Z | 2022-01-27T11:40:15.000Z | Python/Sets/Set.add().py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 1 | 2017-06-24T14:16:06.000Z | 2017-06-24T14:16:28.000Z | Python/Sets/Set.add().py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 78 | 2017-07-05T11:48:20.000Z | 2022-02-08T08:04:22.000Z | if __name__ == '__main__':
n = int(input())
s = set()
for i in range (n):
s.add(input())
print((len(s)))
| 15.888889 | 26 | 0.426573 | 19 | 143 | 2.789474 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 143 | 8 | 27 | 17.875 | 0.602273 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eaad23f2b13bd298772ecacc2f6ab37c85b8ea24 | 64 | py | Python | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | 1 | 2020-12-18T21:16:05.000Z | 2020-12-18T21:16:05.000Z | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | null | null | null | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | null | null | null | """Contiain the version of the package"""
__version__ = "0.2.0"
| 21.333333 | 41 | 0.6875 | 10 | 64 | 4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.140625 | 64 | 2 | 42 | 32 | 0.672727 | 0.546875 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eab048820d03b22884f75124f36991ec3018d628 | 249 | py | Python | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 18 | 2015-01-07T19:05:29.000Z | 2022-01-09T02:33:23.000Z | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 30 | 2015-02-19T16:04:04.000Z | 2021-03-30T00:09:58.000Z | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 7 | 2016-01-02T17:55:48.000Z | 2020-11-22T14:52:32.000Z | from pypsi.shell import Shell
from pypsi.commands.tail import TailCommand
class CmdShell(Shell):
tail = TailCommand()
class TestTail:
def setup(self):
self.shell = CmdShell()
def teardown(self):
self.shell.restore()
| 16.6 | 43 | 0.678715 | 30 | 249 | 5.633333 | 0.5 | 0.106509 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2249 | 249 | 14 | 44 | 17.785714 | 0.875648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eabbe6584c7141a2b6f0410b24806f7f69f8db70 | 1,041 | py | Python | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | 2 | 2019-02-09T17:45:48.000Z | 2021-11-09T06:14:23.000Z | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | null | null | null | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | 1 | 2018-12-17T20:08:49.000Z | 2018-12-17T20:08:49.000Z | import psycopg2
import psycopg2.extras
import sys
from sqlalchemy import create_engine
import pandas as pd
def get_cursor():
conn_string = "host='localhost' dbname='HintereggerA' user='HintereggerA' password='root'"
# print the connection string we will use to connect
print("Connecting to database: {}".format(conn... | 32.53125 | 91 | 0.775216 | 146 | 1,041 | 5.424658 | 0.452055 | 0.069444 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0044 | 0.126801 | 1,041 | 32 | 92 | 32.53125 | 0.866887 | 0.29683 | 0 | 0 | 0 | 0 | 0.217631 | 0.101928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.263158 | 0 | 0.578947 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
eac468dad9691c91dffb6abb70d8d6fdcf16423a | 206 | py | Python | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
call(
f"pip install --upgrade --no-cache-dir {' '.join(packages)}", shell=True
)
| 20.6 | 76 | 0.742718 | 30 | 206 | 4.966667 | 0.8 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140777 | 206 | 9 | 77 | 22.888889 | 0.841808 | 0 | 0 | 0 | 0 | 0 | 0.276699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
eac49b50576a3ac373bc861cf088d4e821e40708 | 385 | py | Python | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import TypeVar
from yaga_ga.evolutionary_algorithm.operators.base import GeneticOperator
IndividualType = TypeVar("IndividualType")
GeneType = TypeVar("GeneType")
class SingleIndividualOperator(GeneticOperator[IndividualType, GeneType]):
@abstractmethod
def __call_... | 27.5 | 74 | 0.794805 | 35 | 385 | 8.542857 | 0.6 | 0.19398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.127273 | 385 | 13 | 75 | 29.615385 | 0.886905 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eac64b9c80cf64eae73e29632228de6d1a1f6dce | 36,295 | py | Python | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import warnings
import json
import os
import decimal
import re
from MySQLdb import escape_string
def to_unicode(obj, encoding='utf-8'):
if isinstance(obj, basestring):
if not isinstance(obj, unicode):
obj = unicode(obj, encoding)
if isinstance(obj,... | 47.819499 | 2,558 | 0.582477 | 4,100 | 36,295 | 5.110976 | 0.205122 | 0.012312 | 0.007635 | 0.008924 | 0.174565 | 0.128466 | 0.114197 | 0.084705 | 0.074398 | 0.061417 | 0 | 0.005039 | 0.300179 | 36,295 | 758 | 2,559 | 47.882586 | 0.819961 | 0.086816 | 0 | 0.199211 | 0 | 0.017751 | 0.283862 | 0.024021 | 0.001972 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011834 | 0.011834 | null | null | 0.011834 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eacd933360da63672e942fa0e5cf98b6ea63add5 | 3,180 | py | Python | google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 49.6875 | 105 | 0.839308 | 327 | 3,180 | 8.04893 | 0.302752 | 0.083587 | 0.12538 | 0.217325 | 0.490122 | 0.490122 | 0.490122 | 0.450608 | 0.235562 | 0 | 0 | 0.018435 | 0.095912 | 3,180 | 63 | 106 | 50.47619 | 0.897043 | 0.178931 | 0 | 0 | 0 | 0 | 0.166089 | 0.102505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.488889 | 0 | 0.488889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ead810e7aa0a5da8afdac88e5f50187918893a93 | 736 | py | Python | crits/ips/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/ips/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/ips/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^search/$', views.ip_search, name='crits-ips-views-ip_search'),
url(r'^search/(?P<ip_str>\S+)/$', views.ip_search, name='crits-ips-views-ip_search'),
url(r'^details/(?P<ip>\S+)/$', views.ip_detail, name='crits-ips-views-ip_detail')... | 49.066667 | 91 | 0.669837 | 122 | 736 | 3.868852 | 0.229508 | 0.067797 | 0.20339 | 0.288136 | 0.533898 | 0.372881 | 0.372881 | 0.372881 | 0.372881 | 0.372881 | 0 | 0 | 0.095109 | 736 | 14 | 92 | 52.571429 | 0.708709 | 0 | 0 | 0 | 0 | 0 | 0.452446 | 0.380435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
eaea8ef5c89fd0ec4d7cbbc57ba9faabf52111af | 2,051 | py | Python | sql_controller/crud.py | hp5441/chatbottest | da74a2fb58abbb48903336228055884304e3580b | [
"MIT"
] | null | null | null | sql_controller/crud.py | hp5441/chatbottest | da74a2fb58abbb48903336228055884304e3580b | [
"MIT"
] | null | null | null | sql_controller/crud.py | hp5441/chatbottest | da74a2fb58abbb48903336228055884304e3580b | [
"MIT"
] | null | null | null | from pydantic.types import Json
import json
from sqlalchemy.orm import Session
from sqlalchemy import desc
from . import models, schemas
def get_questions(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.Question).offset(skip).all()
def get_top_questions(db: Session, limit: int = 5):
re... | 31.553846 | 117 | 0.7255 | 302 | 2,051 | 4.774834 | 0.172185 | 0.097087 | 0.081137 | 0.087379 | 0.548544 | 0.467406 | 0.396671 | 0.396671 | 0.396671 | 0.334258 | 0 | 0.005721 | 0.147733 | 2,051 | 64 | 118 | 32.046875 | 0.819222 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.113636 | 0.113636 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
eaedb119b1aaac0cbb296953345e2a7e95e0dc48 | 339 | py | Python | onadata/apps/fsforms/rceivers.py | awemulya/fieldsight-kobocat | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 38 | 2017-02-28T05:39:40.000Z | 2019-01-16T04:39:04.000Z | onadata/apps/fsforms/rceivers.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 20 | 2017-04-27T09:14:27.000Z | 2019-01-17T06:35:52.000Z | onadata/apps/fsforms/rceivers.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 5 | 2017-02-22T12:25:19.000Z | 2019-01-15T11:16:40.000Z | # from django.db.models.signals import post_save
# from django.dispatch import receiver
# from onadata.apps.logger.models import XForm
#
# from onadata.apps.fsforms.models import FieldSightXF
#
#
# @receiver(post_save, sender=XForm)
# def save_to_fieldsight_form(sender, instance, **kwargs):
# FieldSightXF.objects.c... | 30.818182 | 58 | 0.781711 | 45 | 339 | 5.777778 | 0.577778 | 0.076923 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109145 | 339 | 10 | 59 | 33.9 | 0.860927 | 0.938053 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eaf350eaef15875b69577a0cc860781804858973 | 2,148 | py | Python | config/site_setting.py | tiantaozhang/site-basics | e3245aeba689765862d399da8d239f6ad0d8f466 | [
"MIT"
] | 1 | 2018-03-12T11:47:32.000Z | 2018-03-12T11:47:32.000Z | config/site_setting.py | tiantaozhang/ep_site | e3245aeba689765862d399da8d239f6ad0d8f466 | [
"MIT"
] | null | null | null | config/site_setting.py | tiantaozhang/ep_site | e3245aeba689765862d399da8d239f6ad0d8f466 | [
"MIT"
] | null | null | null | import os
from datetime import timedelta
UPLOAD_FOLDER = ''
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
MAX_CONTENT_LENGTH = 16 * 1024 * 1024
class Config:
ROOT_PATH = os.path.abspath('.')
LOG_PATH = ROOT_PATH + '/logs'
APP_LOG_FILE = ROOT_PATH + '/logs/admin.log'
SECRET... | 34.095238 | 151 | 0.712756 | 272 | 2,148 | 5.470588 | 0.481618 | 0.056452 | 0.079973 | 0.145833 | 0.329301 | 0.329301 | 0.329301 | 0.329301 | 0.329301 | 0.181452 | 0 | 0.092947 | 0.14851 | 2,148 | 63 | 152 | 34.095238 | 0.720612 | 0.028399 | 0 | 0.047619 | 0 | 0.071429 | 0.489198 | 0.336054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.047619 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
eaf89a6ffff99ef2e6291f264aa42721610c16ea | 153 | py | Python | stocks/__init__.py | jianyex/stocks | 124ccbda452af2e2bebc76d6ee95997c0d2417f4 | [
"BSD-3-Clause"
] | null | null | null | stocks/__init__.py | jianyex/stocks | 124ccbda452af2e2bebc76d6ee95997c0d2417f4 | [
"BSD-3-Clause"
] | null | null | null | stocks/__init__.py | jianyex/stocks | 124ccbda452af2e2bebc76d6ee95997c0d2417f4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for stocks."""
__author__ = """Jianye Xu"""
__email__ = 'jianye.xu.stats@gmail.com'
__version__ = '0.1.0'
| 19.125 | 39 | 0.627451 | 21 | 153 | 4 | 0.857143 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.137255 | 153 | 7 | 40 | 21.857143 | 0.606061 | 0.339869 | 0 | 0 | 0 | 0 | 0.410526 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eaf9b9336a7a5da3543fc406dd64b5100923c1bf | 592 | py | Python | python/solutions/kyu6_replace_with_alphabet_position.py | StefanAvra/codewars-katas | a2b11453eb6fe28ff56ffdcca956d8b9493dd879 | [
"MIT"
] | null | null | null | python/solutions/kyu6_replace_with_alphabet_position.py | StefanAvra/codewars-katas | a2b11453eb6fe28ff56ffdcca956d8b9493dd879 | [
"MIT"
] | null | null | null | python/solutions/kyu6_replace_with_alphabet_position.py | StefanAvra/codewars-katas | a2b11453eb6fe28ff56ffdcca956d8b9493dd879 | [
"MIT"
] | null | null | null | """
Replace With Alphabet Position
Welcome.
In this kata you are required to, given a string, replace every letter with its position in the alphabet.
If anything in the text isn't a letter, ignore it and don't return it.
"a" = 1, "b" = 2, etc.
Example
alphabet_position("The sunset sets at twelve o' clock.")
Should... | 26.909091 | 105 | 0.709459 | 109 | 592 | 3.834862 | 0.568807 | 0.114833 | 0.023923 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10148 | 0.201014 | 592 | 21 | 106 | 28.190476 | 0.782241 | 0.694257 | 0 | 0 | 0 | 0 | 0.156977 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eafd8eec654916b6469e65277d4f8eb7cf7b961d | 1,048 | py | Python | api/app/core/config.py | logan-connolly/aita | 7782910fd9c5161c7af489a288ee9d52aca91421 | [
"MIT"
] | 4 | 2020-10-31T15:57:06.000Z | 2022-02-17T02:57:15.000Z | api/app/core/config.py | logan-connolly/aita | 7782910fd9c5161c7af489a288ee9d52aca91421 | [
"MIT"
] | 9 | 2020-05-06T16:11:45.000Z | 2021-12-26T22:58:17.000Z | api/app/core/config.py | logan-connolly/aita | 7782910fd9c5161c7af489a288ee9d52aca91421 | [
"MIT"
] | 1 | 2021-12-01T11:43:04.000Z | 2021-12-01T11:43:04.000Z | from typing import List
from pydantic import BaseSettings
class ApiConfig(BaseSettings):
title: str = "AITA"
version: str = "/api/v1"
openapi: str = "/api/v1/openapi.json"
class PostgresConfig(BaseSettings):
user: str
password: str
host: str
db: str
class Config:
env_prefix... | 18.068966 | 72 | 0.627863 | 118 | 1,048 | 5.474576 | 0.449153 | 0.068111 | 0.065015 | 0.092879 | 0.071207 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.255725 | 1,048 | 57 | 73 | 18.385965 | 0.825641 | 0 | 0 | 0.153846 | 0 | 0 | 0.152672 | 0.051527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.051282 | 0 | 0.794872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d802630c9349918a8c83b164182db24aea187fcd | 982 | py | Python | tests/test_player_PlayerList.py | basbloemsaat/dartsense | 3114a3b73861baf9cf0019a9a2454d7f38e67af1 | [
"MIT"
] | null | null | null | tests/test_player_PlayerList.py | basbloemsaat/dartsense | 3114a3b73861baf9cf0019a9a2454d7f38e67af1 | [
"MIT"
] | 5 | 2018-03-16T09:59:05.000Z | 2019-02-10T21:55:03.000Z | tests/test_player_PlayerList.py | basbloemsaat/dartsense | 3114a3b73861baf9cf0019a9a2454d7f38e67af1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import pytest
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "../lib"))
import dartsense.player
player_list = None
def test_player_list_init(setup_db):
player_list = dartsense.player.PlayerList()
assert isinstance(player_list, dartsense.player.Player... | 22.318182 | 69 | 0.707739 | 126 | 982 | 5.269841 | 0.325397 | 0.210843 | 0.143072 | 0.188253 | 0.512048 | 0.512048 | 0.441265 | 0.304217 | 0.204819 | 0.204819 | 0 | 0.01118 | 0.180244 | 982 | 43 | 70 | 22.837209 | 0.813665 | 0.021385 | 0 | 0.259259 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.148148 | 0 | 0.259259 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d80bf67fed1d7c15d54f1dcaa8d2e1e4a8afca9b | 220 | py | Python | wekaScript.py | sebas1208/sentiment-analizer-bi | 188383366373f6d20e04978cb9db520b367bde0a | [
"MIT"
] | null | null | null | wekaScript.py | sebas1208/sentiment-analizer-bi | 188383366373f6d20e04978cb9db520b367bde0a | [
"MIT"
] | null | null | null | wekaScript.py | sebas1208/sentiment-analizer-bi | 188383366373f6d20e04978cb9db520b367bde0a | [
"MIT"
] | null | null | null | import weka.core.jvm as jvm
jvm.start()
from weka.core.converters import Loader, Saver
loader = Loader(classname="weka.core.converters.ArffLoader")
data = loader.load_file("./Listas/train.arff")
print data
jvm.stop() | 20 | 60 | 0.763636 | 33 | 220 | 5.060606 | 0.606061 | 0.143713 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 220 | 11 | 61 | 20 | 0.843434 | 0 | 0 | 0 | 0 | 0 | 0.226244 | 0.140271 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d81681f0c3e8533953487db033ce07fd94815535 | 103 | py | Python | custom_components/yoosee/const.py | shaonianzhentan/ha_yoosee_camera | 63e75b1285c03da75f98264dfbab01280b20f3c0 | [
"MIT"
] | null | null | null | custom_components/yoosee/const.py | shaonianzhentan/ha_yoosee_camera | 63e75b1285c03da75f98264dfbab01280b20f3c0 | [
"MIT"
] | null | null | null | custom_components/yoosee/const.py | shaonianzhentan/ha_yoosee_camera | 63e75b1285c03da75f98264dfbab01280b20f3c0 | [
"MIT"
] | null | null | null | DOMAIN = "yoosee"
PLATFORMS = ["camera"]
DEFAULT_NAME = "Yoosee摄像头"
VERSION = "1.1"
SERVICE_PTZ = 'ptz' | 20.6 | 26 | 0.68932 | 13 | 103 | 5.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.135922 | 103 | 5 | 27 | 20.6 | 0.752809 | 0 | 0 | 0 | 0 | 0 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d816ebec6670bc97c3cfcc6d198d67b571f9d900 | 674 | py | Python | backend/model/views.py | princesinghtomar/BTP | 44bf84db09637453b1e107bfdd305a47610b81f2 | [
"MIT"
] | null | null | null | backend/model/views.py | princesinghtomar/BTP | 44bf84db09637453b1e107bfdd305a47610b81f2 | [
"MIT"
] | null | null | null | backend/model/views.py | princesinghtomar/BTP | 44bf84db09637453b1e107bfdd305a47610b81f2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from django.http.response import JsonResponse
import base64
from numpy import random
# Create your views here.
@csrf_exempt
def algo(req):
if req.method == "POST":
data = J... | 35.473684 | 90 | 0.675074 | 85 | 674 | 5.317647 | 0.6 | 0.066372 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022263 | 0.200297 | 674 | 18 | 91 | 37.444444 | 0.816327 | 0.034125 | 0 | 0 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d8195b25d16e501245f75d758ee63f9c330bba60 | 1,994 | py | Python | hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py | coreydemarse/hummingbot | 48dd45b103622b198ca8e833ed9de7d0ad573ed9 | [
"Apache-2.0"
] | 11 | 2020-09-15T08:21:59.000Z | 2022-03-19T05:06:59.000Z | hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py | coreydemarse/hummingbot | 48dd45b103622b198ca8e833ed9de7d0ad573ed9 | [
"Apache-2.0"
] | null | null | null | hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py | coreydemarse/hummingbot | 48dd45b103622b198ca8e833ed9de7d0ad573ed9 | [
"Apache-2.0"
] | 5 | 2020-09-18T12:59:31.000Z | 2021-06-27T01:46:16.000Z | from hummingbot.client.config.config_var import ConfigVar
from hummingbot.client.config.config_methods import using_exchange
CENTRALIZED = True
EXAMPLE_PAIR = "BTC-USD"
DEFAULT_FEES = [0.05, 0.2]
KEYS = {
"dydx_perpetual_api_key":
ConfigVar(key="dydx_perpetual_api_key",
prompt="Ent... | 38.346154 | 77 | 0.605817 | 209 | 1,994 | 5.406699 | 0.205742 | 0.253097 | 0.113274 | 0.132743 | 0.669912 | 0.512389 | 0.402655 | 0.402655 | 0.402655 | 0.402655 | 0 | 0.003613 | 0.305918 | 1,994 | 51 | 78 | 39.098039 | 0.812861 | 0 | 0 | 0.418605 | 0 | 0 | 0.332999 | 0.164493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.069767 | 0.046512 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d81a7d31cbd3b0514e3ad7982c9d385703974bfc | 546 | py | Python | sodp/reports/migrations/0017_auto_20210728_2110.py | ElHombreMorado8/sodp | e4a05620b633d261b22025af1d488cf767ba2e30 | [
"Apache-2.0"
] | null | null | null | sodp/reports/migrations/0017_auto_20210728_2110.py | ElHombreMorado8/sodp | e4a05620b633d261b22025af1d488cf767ba2e30 | [
"Apache-2.0"
] | 2 | 2021-07-15T10:13:58.000Z | 2022-03-30T14:20:03.000Z | sodp/reports/migrations/0017_auto_20210728_2110.py | ElHombreMorado8/sodp | e4a05620b633d261b22025af1d488cf767ba2e30 | [
"Apache-2.0"
] | 3 | 2021-07-03T07:13:48.000Z | 2021-08-10T19:28:20.000Z | # Generated by Django 3.1.12 on 2021-07-28 21:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0016_auto_20210727_2156'),
]
operations = [
migrations.AddIndex(
model_name='report',
index=models.Index... | 24.818182 | 89 | 0.600733 | 58 | 546 | 5.5 | 0.586207 | 0.112853 | 0.144201 | 0.169279 | 0.369906 | 0.369906 | 0.369906 | 0.369906 | 0.369906 | 0.369906 | 0 | 0.079801 | 0.265568 | 546 | 21 | 90 | 26 | 0.715711 | 0.084249 | 0 | 0.4 | 1 | 0 | 0.192771 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d82bde8f0fa19324bbaff372f3a7658cbcb864cb | 136 | py | Python | squarespiral.py | lstoomet/peeterscript | ef60163f6af98f8316c20a5fa55f3507f7ed895b | [
"Unlicense"
] | null | null | null | squarespiral.py | lstoomet/peeterscript | ef60163f6af98f8316c20a5fa55f3507f7ed895b | [
"Unlicense"
] | null | null | null | squarespiral.py | lstoomet/peeterscript | ef60163f6af98f8316c20a5fa55f3507f7ed895b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import turtle
t = turtle.Pen()
for x in range(400):
t.forward(x)
t.left(90)
input("press enter to exit")
| 17 | 28 | 0.654412 | 25 | 136 | 3.56 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.183824 | 136 | 7 | 29 | 19.428571 | 0.747748 | 0.154412 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d836f930db46a6c36122556877e26353c466c74c | 1,457 | py | Python | memecrypt/utilities.py | Sh3llcod3/memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | 1 | 2019-06-22T10:15:11.000Z | 2019-06-22T10:15:11.000Z | memecrypt/utilities.py | Sh3llcod3/memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | 2 | 2020-06-08T17:44:56.000Z | 2020-10-04T00:12:30.000Z | memecrypt/utilities.py | Sh3llcod3/Memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
try:
import base64
import binascii
import codecs
import random
except ImportError as import_fail:
print(f"Import error: {import_fail}")
print("Please install this module.")
raise SystemExit(1)
class utils(object):
def enc_utf(input_str)... | 22.075758 | 51 | 0.569664 | 183 | 1,457 | 4.295082 | 0.333333 | 0.142494 | 0.124682 | 0.089059 | 0.445293 | 0.445293 | 0.287532 | 0.251908 | 0.165394 | 0.165394 | 0 | 0.029774 | 0.331503 | 1,457 | 65 | 52 | 22.415385 | 0.777207 | 0.029513 | 0 | 0.204082 | 0 | 0 | 0.048867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.122449 | 0.163265 | 0.530612 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
dc2c4dce1a1e4e38ae1c081fcc1c569c6a7af185 | 687 | py | Python | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 3 | 2015-07-24T21:23:36.000Z | 2020-11-28T03:42:16.000Z | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 350 | 2015-05-05T09:24:39.000Z | 2021-07-27T15:02:35.000Z | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 16 | 2015-06-13T15:37:13.000Z | 2021-04-10T18:03:18.000Z | import pytest
import wtforms
from dmutils.forms.fields import DMBooleanField
from dmutils.forms.widgets import DMSelectionButtonBase
class BooleanForm(wtforms.Form):
field = DMBooleanField()
@pytest.fixture
def form():
return BooleanForm()
def test_value_is_a_list(form):
assert isinstance(form.field... | 20.818182 | 76 | 0.770015 | 87 | 687 | 5.816092 | 0.45977 | 0.088933 | 0.063241 | 0.106719 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141194 | 687 | 32 | 77 | 21.46875 | 0.857627 | 0 | 0 | 0.111111 | 0 | 0 | 0.020378 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.222222 | 0.055556 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
dc362bba46a8f158a18291beafd2550a99917d83 | 1,848 | py | Python | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | 1 | 2021-01-03T01:54:37.000Z | 2021-01-03T01:54:37.000Z | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | 13 | 2021-01-21T04:54:51.000Z | 2022-03-21T04:15:56.000Z | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
"%d min remaining to read": "%d minutoj por legi",
"(active)": "(aktiva)",
"Also available in:": "Ankaŭ disponebla en:",
"Archive": "Arkivo",
"Atom feed": "",
"Authors": "Aŭtoroj",
... | 36.235294 | 82 | 0.588203 | 213 | 1,848 | 5.103286 | 0.596244 | 0.040478 | 0.020239 | 0.031279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000692 | 0.218074 | 1,848 | 50 | 83 | 36.96 | 0.751557 | 0.048701 | 0 | 0 | 1 | 0 | 0.681507 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc420f3bc704858dc4746abe2044b41c94d6e866 | 212 | py | Python | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | 1 | 2021-08-19T19:40:14.000Z | 2021-08-19T19:40:14.000Z | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | null | null | null | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | null | null | null | from math import sin, radians, asin, degrees
def snell_descartes(n1, n2, teta1):
# n1*sin(teta1) = n2 * sin(teta2)
# teta2 = n1
teta2 = (n1 * sin(radians(teta1)))/n2
return degrees(asin(teta2))
| 23.555556 | 44 | 0.636792 | 31 | 212 | 4.322581 | 0.483871 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0.216981 | 212 | 8 | 45 | 26.5 | 0.722892 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc451d66d8b76f9552de78d6f8265ea16b66e274 | 3,007 | py | Python | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | from pm4pygpu.constants import Constants
from numba import cuda
import numpy as np
def post_grouping_function(custom_column_activity_code, custom_column_timestamp, custom_column_case_idx, custom_column_pre_activity_code, custom_column_pre_timestamp, custom_column_pre_case, custom_column_variant_number, custom_colu... | 61.367347 | 360 | 0.790156 | 459 | 3,007 | 4.812636 | 0.169935 | 0.258035 | 0.184699 | 0.094613 | 0.491172 | 0.349932 | 0.277048 | 0.232684 | 0.159801 | 0.133092 | 0 | 0.00993 | 0.095777 | 3,007 | 48 | 361 | 62.645833 | 0.802501 | 0.038244 | 0 | 0.095238 | 0 | 0 | 0.033064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.071429 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc4f4a63f74db3ef68e4b3d83bc56a1482fafa87 | 2,456 | py | Python | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@date Created on Tue Jan 12 13:54:56 2016
@copyright (C) 2015-2016 EOMYS ENGINEERING.
@author pierre_b
"""
from os.path import join
from unittest import TestCase
import matplotlib.pyplot as plt
from numpy import array, pi, zeros
from pyleecan.Classes.Frame import Frame
from pyleecan.Class... | 32.746667 | 74 | 0.690147 | 341 | 2,456 | 4.879765 | 0.346041 | 0.129808 | 0.182692 | 0.038462 | 0.177284 | 0.139423 | 0.139423 | 0.139423 | 0.139423 | 0.139423 | 0 | 0.057054 | 0.214984 | 2,456 | 74 | 75 | 33.189189 | 0.806017 | 0.107899 | 0 | 0.148148 | 0 | 0 | 0.040275 | 0.024714 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.018519 | false | 0 | 0.407407 | 0 | 0.444444 | 0.018519 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dc50566acf856455bdeee2766f9b15e1576f4438 | 2,953 | py | Python | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | # Importing default django packages:
from django.db import models
from django.template.defaultfilters import slugify
# Importing models from the research core:
from research_core.models import Topic
# Importing 3rd party packages:
from tinymce import models as tinymce_models
class BlogPost(models.Model):
"""The ... | 43.426471 | 122 | 0.69658 | 414 | 2,953 | 4.905797 | 0.342995 | 0.020679 | 0.02708 | 0.014771 | 0.065977 | 0.065977 | 0 | 0 | 0 | 0 | 0 | 0.003578 | 0.242804 | 2,953 | 68 | 123 | 43.426471 | 0.904741 | 0.585506 | 0 | 0.153846 | 0 | 0 | 0.024605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0.038462 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
dc59dc5b71bc2df003fb4821b909fc61b42c94fa | 244 | py | Python | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | from time import sleep
from cores import *
print(f'{cores["azul"]}Em breve a queima de fogos irá começar...{limpar}')
for c in range(10, -1, -1):
print(c)
sleep(1)
print(f'{cores["vermelho"]}{fx["negrito"]}Feliz ano novo!{limpar} 🎆 🎆')
| 30.5 | 74 | 0.651639 | 43 | 244 | 3.744186 | 0.697674 | 0.074534 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0.151639 | 244 | 7 | 75 | 34.857143 | 0.743961 | 0 | 0 | 0 | 0 | 0 | 0.512295 | 0.159836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
dc600239b48d84e8a3c314d3367ea64d86c3cba7 | 414 | py | Python | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | null | null | null | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | 11 | 2019-11-06T09:24:51.000Z | 2021-03-24T19:18:12.000Z | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | 1 | 2020-06-27T02:29:19.000Z | 2020-06-27T02:29:19.000Z | # -*- coding: utf-8 -*-
from .base import (
Pessoa,
PessoaFisica,
PessoaJuridica,
Endereco,
Telefone,
Email,
Site,
Banco,
Documento,
COD_UF,
UF_SIGLA,
)
from .empresa import Empresa, MinhaEmpresa
from .cliente import Cliente
from .fornecedor import Fornecedor
from .transport... | 18.818182 | 55 | 0.698068 | 44 | 414 | 6.522727 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.222222 | 414 | 21 | 56 | 19.714286 | 0.888199 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dc6b05ea547d23e6274f4183f97bd2f598c016e9 | 713 | py | Python | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | # Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
from getpass import getpass
from netmiko import ConnectHandler
def main():
password = getpass()
pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}
... | 24.586207 | 125 | 0.701262 | 92 | 713 | 5.195652 | 0.586957 | 0.125523 | 0.07113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035959 | 0.180926 | 713 | 28 | 126 | 25.464286 | 0.782534 | 0.120617 | 0 | 0 | 0 | 0 | 0.256039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.214286 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
dc78f1958822bfe1bb3123057ba41a3b7fb2318b | 772 | py | Python | matury/2020pr/zad42.py | bartekpacia/informatyka-frycz | 6fdbbdea0c6b6a710378f22e90d467c9f91e64aa | [
"MIT"
] | 2 | 2021-03-06T22:09:44.000Z | 2021-03-14T14:41:03.000Z | matury/2020pr/zad42.py | bartekpacia/informatyka-frycz | 6fdbbdea0c6b6a710378f22e90d467c9f91e64aa | [
"MIT"
] | 1 | 2020-03-25T15:42:47.000Z | 2020-10-06T21:41:14.000Z | matury/2020pr/zad42.py | bartekpacia/informatyka-frycz | 6fdbbdea0c6b6a710378f22e90d467c9f91e64aa | [
"MIT"
] | null | null | null | from typing import List
from reader import read_nums
nums = read_nums()
longest_reg_fragment: List[int] = []
reg_fragment: List[int] = []
current_gap = nums[1] - nums[0]
for i in range(1, len(nums)):
num1 = nums[i - 1]
num2 = nums[i]
gap = abs(num1 - num2)
if not reg_fragment:
reg_fragment.... | 22.057143 | 57 | 0.650259 | 108 | 772 | 4.407407 | 0.287037 | 0.323529 | 0.226891 | 0.132353 | 0.228992 | 0.228992 | 0.228992 | 0.228992 | 0.228992 | 0.228992 | 0 | 0.024014 | 0.244819 | 772 | 34 | 58 | 22.705882 | 0.792453 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.04 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc7fef98ee8b4350186c803b3e6a489a9a3f0111 | 150 | py | Python | arcpy_ListDatasets.py | geocot/Python_ArcGIS_Desktop | aef5d855d8ce3f564dd4fba80599be32b89fcb5b | [
"Apache-2.0"
] | null | null | null | arcpy_ListDatasets.py | geocot/Python_ArcGIS_Desktop | aef5d855d8ce3f564dd4fba80599be32b89fcb5b | [
"Apache-2.0"
] | null | null | null | arcpy_ListDatasets.py | geocot/Python_ArcGIS_Desktop | aef5d855d8ce3f564dd4fba80599be32b89fcb5b | [
"Apache-2.0"
] | null | null | null | import arcpy
arcpy.env.workspace = "c:/temp/Donnees.gdb"
arcpy.env.overwriteOutput = True
listes = arcpy.ListDatasets()
for d in listes:
print(d) | 21.428571 | 43 | 0.74 | 22 | 150 | 5.045455 | 0.727273 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 150 | 7 | 44 | 21.428571 | 0.853846 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc88339f42e2b1a9b7ab7afdaa2a87808aaca155 | 170 | py | Python | reid/evaluation_metrics/__init__.py | xueping187/weakly-supervised-person-re-id | 3cfe98264dcdb667c132727a57ab80da5a9e6a8f | [
"Apache-2.0"
] | 2 | 2021-09-14T03:39:43.000Z | 2021-09-14T03:41:04.000Z | reid/evaluation_metrics/__init__.py | xueping187/weakly-supervised-person-re-id | 3cfe98264dcdb667c132727a57ab80da5a9e6a8f | [
"Apache-2.0"
] | null | null | null | reid/evaluation_metrics/__init__.py | xueping187/weakly-supervised-person-re-id | 3cfe98264dcdb667c132727a57ab80da5a9e6a8f | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from .classification import accuracy
from .ranking_1 import cmc, mean_ap
__all__ = [
'accuracy',
'cmc',
'mean_ap',
]
| 15.454545 | 38 | 0.711765 | 21 | 170 | 5.190476 | 0.571429 | 0.12844 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.2 | 170 | 10 | 39 | 17 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dc88ab8f3f255c6120421288555f6c5b8861989f | 279 | py | Python | backend/database/db_result.py | Mancid/mancid_project | 4923264af324439658ad256444f3af6a4963e44f | [
"Unlicense"
] | 2 | 2021-05-12T14:10:16.000Z | 2021-05-16T22:05:41.000Z | backend/database/db_result.py | Mancid/mancid_project | 4923264af324439658ad256444f3af6a4963e44f | [
"Unlicense"
] | 18 | 2021-05-11T14:24:05.000Z | 2021-06-10T10:42:42.000Z | backend/database/db_result.py | Mancid/mancid_project | 4923264af324439658ad256444f3af6a4963e44f | [
"Unlicense"
] | 7 | 2021-05-01T17:50:54.000Z | 2021-06-09T12:04:11.000Z | import logging
def result_db(database):
""" This function return the result of database.
They return a dict
:returns: a dict with all rows in database
:rtype: dict
"""
logging.info("The result of filter")
return list(database.find({}, {"_id": 0}))
| 21.461538 | 52 | 0.648746 | 39 | 279 | 4.589744 | 0.666667 | 0.100559 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.236559 | 279 | 12 | 53 | 23.25 | 0.835681 | 0.430108 | 0 | 0 | 0 | 0 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
dc9b43d49a1297a0cd78d268ff6c9669c5fb1610 | 188 | py | Python | bin/analytic/catalog/_mypath.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-10-22T14:57:27.000Z | 2016-08-25T08:16:02.000Z | bin/publish/highlight_key_figure/_mypath.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2017-08-28T14:42:46.000Z | 2017-08-28T16:08:37.000Z | bin/publish/highlight_key_figure/_mypath.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | import os, sys
thisdir = os.path.dirname(os.path.abspath(__file__))
libdir = os.path.abspath(os.path.join(thisdir, '../../../'))
if libdir not in sys.path:
sys.path.insert(0, libdir)
| 26.857143 | 60 | 0.680851 | 30 | 188 | 4.133333 | 0.5 | 0.193548 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.117021 | 188 | 6 | 61 | 31.333333 | 0.740964 | 0 | 0 | 0 | 0 | 0 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dca034f5cc1099ca680a5daf8638e61d4dde6b17 | 305 | py | Python | preacher/compilation/yaml/tag/argument.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 3 | 2019-08-01T03:14:49.000Z | 2020-01-31T08:55:22.000Z | preacher/compilation/yaml/tag/argument.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 353 | 2019-04-14T14:53:28.000Z | 2022-03-11T03:26:08.000Z | preacher/compilation/yaml/tag/argument.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 1 | 2020-08-01T06:23:08.000Z | 2020-08-01T06:23:08.000Z | from yaml import Node
from yamlen import Tag, TagContext
from preacher.compilation.argument import Argument
class ArgumentTag(Tag):
def construct(self, node: Node, context: TagContext) -> object:
key = context.constructor.construct_scalar(node) # type: ignore
return Argument(key)
| 27.727273 | 72 | 0.740984 | 37 | 305 | 6.081081 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 305 | 10 | 73 | 30.5 | 0.9 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.