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
3a479503429b2d7a78c1d4c9b5ff78a7d4081ca0
63
py
Python
drpg/__main__.py
rays/drpg
52581a49212378bce35426207aea956512243e78
[ "MIT" ]
5
2020-09-13T14:49:41.000Z
2021-02-23T17:17:26.000Z
drpg/__main__.py
rays/drpg
52581a49212378bce35426207aea956512243e78
[ "MIT" ]
5
2020-09-25T13:10:36.000Z
2021-10-05T16:21:47.000Z
drpg/__main__.py
rays/drpg
52581a49212378bce35426207aea956512243e78
[ "MIT" ]
4
2020-09-13T14:53:36.000Z
2021-10-05T16:28:54.000Z
import drpg.cmd if __name__ == "__main__": drpg.cmd.run()
12.6
26
0.650794
9
63
3.666667
0.777778
0.424242
0
0
0
0
0
0
0
0
0
0
0.190476
63
4
27
15.75
0.647059
0
0
0
0
0
0.126984
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
28acd57409ba099d20d73c67d05a8d63d0345724
253
py
Python
Cursoemvideo/desafios/desafio021.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
1
2021-03-16T13:07:29.000Z
2021-03-16T13:07:29.000Z
Cursoemvideo/desafios/desafio021.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
null
null
null
Cursoemvideo/desafios/desafio021.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
null
null
null
#Faça um programa em Python que abra e reproduza o áudio de um arquivo MP3. import pygame print('\033[1mPlayer de música') pygame.mixer.init() pygame.mixer.music.load("desafio023.mp3") pygame.mixer.music.play() while(pygame.mixer.music.get_busy()):pass
31.625
75
0.774704
42
253
4.642857
0.714286
0.225641
0.246154
0
0
0
0
0
0
0
0
0.039301
0.094862
253
7
76
36.142857
0.812227
0.29249
0
0
0
0
0.207865
0
0
0
0
0
0
1
0
true
0.166667
0.166667
0
0.166667
0.166667
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
e908bd8b57fcf29fdd97ba280dad603e23e1743a
113
py
Python
enthought/developer/view/file_browser_view.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/developer/view/file_browser_view.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/developer/view/file_browser_view.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from etsdevtools.developer.view.file_browser_view import *
28.25
58
0.858407
15
113
6
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.097345
113
3
59
37.666667
0.882353
0.106195
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e90a3e94a0385904bd80cc66c39e339efffe18c9
269
py
Python
lesleyloraine/settings/prod.py
ninapavlich/lesleyloraine
33bb44755208ef3dd879ea12d514671076085bcb
[ "MIT" ]
null
null
null
lesleyloraine/settings/prod.py
ninapavlich/lesleyloraine
33bb44755208ef3dd879ea12d514671076085bcb
[ "MIT" ]
null
null
null
lesleyloraine/settings/prod.py
ninapavlich/lesleyloraine
33bb44755208ef3dd879ea12d514671076085bcb
[ "MIT" ]
null
null
null
from lesleyloraine.settings.base import * #============================================================================== # Generic Django project settings #============================================================================== ALLOWED_HOSTS = ['*']
29.888889
80
0.282528
11
269
6.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.092937
269
8
81
33.625
0.307377
0.698885
0
0
0
0
0.014493
0
0
1
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
1
0
0
0
0
5
e92c6bb58b9b23029065ba6385f552d2ebf039c2
63
py
Python
unstable_baselines/lib/envs/vec/__init__.py
Ending2015a/unstable_baselines
1d304115406f6e29186cedb0160811d4139e2733
[ "MIT" ]
10
2021-04-26T17:48:27.000Z
2022-03-10T14:32:26.000Z
unstable_baselines/lib/envs/vec/__init__.py
Ending2015a/unstable_baselines
1d304115406f6e29186cedb0160811d4139e2733
[ "MIT" ]
null
null
null
unstable_baselines/lib/envs/vec/__init__.py
Ending2015a/unstable_baselines
1d304115406f6e29186cedb0160811d4139e2733
[ "MIT" ]
null
null
null
from .base import * from .dummy import * from .subproc import *
21
22
0.730159
9
63
5.111111
0.555556
0.434783
0
0
0
0
0
0
0
0
0
0
0.174603
63
3
22
21
0.884615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e943c5cc7a3c0cdaea95405ab37b511acf5d179e
17
py
Python
solutions/030_solution_06.py
UFResearchComputing/py4ai
db7f80614f26274ec18556d56ea9f549c463165a
[ "CC-BY-4.0" ]
null
null
null
solutions/030_solution_06.py
UFResearchComputing/py4ai
db7f80614f26274ec18556d56ea9f549c463165a
[ "CC-BY-4.0" ]
null
null
null
solutions/030_solution_06.py
UFResearchComputing/py4ai
db7f80614f26274ec18556d56ea9f549c463165a
[ "CC-BY-4.0" ]
1
2021-04-27T09:50:54.000Z
2021-04-27T09:50:54.000Z
# Answer 1 and 4.
17
17
0.647059
4
17
2.75
1
0
0
0
0
0
0
0
0
0
0
0.153846
0.235294
17
1
17
17
0.692308
0.882353
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3a7ff6f8523c61215879d42cf329bebb631559ef
9,911
py
Python
sdk/python/pulumi_gcp/kms/registry.py
23doors/pulumi-gcp
ded01b199f95b164884266ea3e6f8206c8231270
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-20T22:08:20.000Z
2019-12-20T22:08:20.000Z
sdk/python/pulumi_gcp/kms/registry.py
pellizzetti/pulumi-gcp
fad74dd55a0cf7723f73046bb0e6fcbfd948ba84
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/kms/registry.py
pellizzetti/pulumi-gcp
fad74dd55a0cf7723f73046bb0e6fcbfd948ba84
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Registry(pulumi.CustomResource): credentials: pulumi.Output[list] """ List of public key certificates to authenticate devices. Structure is documented below. * `publicKeyCertificate` (`dict`) * `certificate` (`str`) * `format` (`str`) """ event_notification_configs: pulumi.Output[list] """ List of configurations for event notification, such as PubSub topics to publish device events to. Structure is documented below. * `pubsub_topic_name` (`str`) * `subfolderMatches` (`str`) """ http_config: pulumi.Output[dict] """ Activate or deactivate HTTP. Structure is documented below. * `http_enabled_state` (`str`) """ log_level: pulumi.Output[str] mqtt_config: pulumi.Output[dict] """ Activate or deactivate MQTT. Structure is documented below. * `mqtt_enabled_state` (`str`) """ name: pulumi.Output[str] """ A unique name for the resource, required by device registry. Changing this forces a new resource to be created. """ project: pulumi.Output[str] """ The project in which the resource belongs. If it is not provided, the provider project is used. """ region: pulumi.Output[str] """ The Region in which the created address should reside. If it is not provided, the provider region is used. """ state_notification_config: pulumi.Output[dict] """ A PubSub topic to publish device state updates. Structure is documented below. * `pubsub_topic_name` (`str`) """ def __init__(__self__, resource_name, opts=None, credentials=None, event_notification_configs=None, http_config=None, log_level=None, mqtt_config=None, name=None, project=None, region=None, state_notification_config=None, __props__=None, __name__=None, __opts__=None): """ Creates a device registry in Google's Cloud IoT Core platform. For more information see [the official documentation](https://cloud.google.com/iot/docs/) and [API](https://cloud.google.com/iot/docs/reference/cloudiot/rest/v1/projects.locations.registries). :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[list] credentials: List of public key certificates to authenticate devices. Structure is documented below. :param pulumi.Input[list] event_notification_configs: List of configurations for event notification, such as PubSub topics to publish device events to. Structure is documented below. :param pulumi.Input[dict] http_config: Activate or deactivate HTTP. Structure is documented below. :param pulumi.Input[dict] mqtt_config: Activate or deactivate MQTT. Structure is documented below. :param pulumi.Input[str] name: A unique name for the resource, required by device registry. Changing this forces a new resource to be created. :param pulumi.Input[str] project: The project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created address should reside. If it is not provided, the provider region is used. :param pulumi.Input[dict] state_notification_config: A PubSub topic to publish device state updates. Structure is documented below. The **credentials** object supports the following: * `publicKeyCertificate` (`pulumi.Input[dict]`) * `certificate` (`pulumi.Input[str]`) * `format` (`pulumi.Input[str]`) The **event_notification_configs** object supports the following: * `pubsub_topic_name` (`pulumi.Input[str]`) * `subfolderMatches` (`pulumi.Input[str]`) The **http_config** object supports the following: * `http_enabled_state` (`pulumi.Input[str]`) The **mqtt_config** object supports the following: * `mqtt_enabled_state` (`pulumi.Input[str]`) The **state_notification_config** object supports the following: * `pubsub_topic_name` (`pulumi.Input[str]`) > This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudiot_registry.html.markdown. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['credentials'] = credentials __props__['event_notification_configs'] = event_notification_configs __props__['http_config'] = http_config __props__['log_level'] = log_level __props__['mqtt_config'] = mqtt_config __props__['name'] = name __props__['project'] = project __props__['region'] = region __props__['state_notification_config'] = state_notification_config super(Registry, __self__).__init__( 'gcp:kms/registry:Registry', resource_name, __props__, opts) @staticmethod def get(resource_name, id, opts=None, credentials=None, event_notification_configs=None, http_config=None, log_level=None, mqtt_config=None, name=None, project=None, region=None, state_notification_config=None): """ Get an existing Registry resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[list] credentials: List of public key certificates to authenticate devices. Structure is documented below. :param pulumi.Input[list] event_notification_configs: List of configurations for event notification, such as PubSub topics to publish device events to. Structure is documented below. :param pulumi.Input[dict] http_config: Activate or deactivate HTTP. Structure is documented below. :param pulumi.Input[dict] mqtt_config: Activate or deactivate MQTT. Structure is documented below. :param pulumi.Input[str] name: A unique name for the resource, required by device registry. Changing this forces a new resource to be created. :param pulumi.Input[str] project: The project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created address should reside. If it is not provided, the provider region is used. :param pulumi.Input[dict] state_notification_config: A PubSub topic to publish device state updates. Structure is documented below. The **credentials** object supports the following: * `publicKeyCertificate` (`pulumi.Input[dict]`) * `certificate` (`pulumi.Input[str]`) * `format` (`pulumi.Input[str]`) The **event_notification_configs** object supports the following: * `pubsub_topic_name` (`pulumi.Input[str]`) * `subfolderMatches` (`pulumi.Input[str]`) The **http_config** object supports the following: * `http_enabled_state` (`pulumi.Input[str]`) The **mqtt_config** object supports the following: * `mqtt_enabled_state` (`pulumi.Input[str]`) The **state_notification_config** object supports the following: * `pubsub_topic_name` (`pulumi.Input[str]`) > This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudiot_registry.html.markdown. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = dict() __props__["credentials"] = credentials __props__["event_notification_configs"] = event_notification_configs __props__["http_config"] = http_config __props__["log_level"] = log_level __props__["mqtt_config"] = mqtt_config __props__["name"] = name __props__["project"] = project __props__["region"] = region __props__["state_notification_config"] = state_notification_config return Registry(resource_name, opts=opts, __props__=__props__) def translate_output_property(self, prop): return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop): return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
48.583333
272
0.670265
1,175
9,911
5.421277
0.165957
0.055259
0.043956
0.061224
0.745526
0.72449
0.709419
0.702512
0.670487
0.670487
0
0.000266
0.241953
9,911
203
273
48.82266
0.847598
0.467259
0
0.030769
1
0
0.145657
0.037145
0
0
0
0
0
1
0.061538
false
0.015385
0.092308
0.030769
0.353846
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3ab84d909abb99f39a9c782c5d2b1ee98408f3ae
5,583
py
Python
gra.py
golawskaj/Plumber
bec9c49a60a0324050a763deeb68034af183ceb9
[ "MIT" ]
null
null
null
gra.py
golawskaj/Plumber
bec9c49a60a0324050a763deeb68034af183ceb9
[ "MIT" ]
null
null
null
gra.py
golawskaj/Plumber
bec9c49a60a0324050a763deeb68034af183ceb9
[ "MIT" ]
null
null
null
import pygame, math pygame.init() win = pygame.display.set_mode((1000, 600)) pygame.display.set_caption("Plumber") angle = [pygame.image.load('angl1.png'), pygame.image.load('angl2.png'), pygame.image.load('angl3.png'), pygame.image.load('angl4.png')] straight = [pygame.image.load('str1.png'), pygame.image.load('str2.png')] starts = pygame.image.load('start.png') ends = pygame.image.load('end.png') bg = pygame.image.load('bgrd.png') clickSound = pygame.mixer.Sound('pop.ogg') mouseposition = (0, 0) moves = 0 # points == squares on screenplay with (possible) pipes, points[i] = k == square number i is in order k'th points = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # isstr[i] == 1 when we have got staright pipe on point i isstr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # isang[i] == 1 if on point i we have pipe-angle isang = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # wsp - which picture we are displaying (straight 0-1, angle 0-3) if we are displaying at point by order # for example : points[4] = 5 with 3 position of angle, points[5] = 0 -> wsp[4] = 3 wsp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] lev = 1 # level1 points1 = [0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 6, 9, 10, 0, 0, 0, 0, 0, 7, 8, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] wsp1 = [0, 3, 0, 1, 1, 0, 2, 0, 2, 2, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] isstr1 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] isang1 = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] wsptrue1 = [0, 3, 1, 1, 0, 0, 3, 1, 0, 2, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # level2 points2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 5, 6, 0, 0, 17, 18, 19, 3, 4, 7, 0, 0, 16, 0, 20, 0, 9, 8, 13, 14, 15, 0, 0, 0, 10, 11, 12, 0, 0, 0, 0] wsp2 = [3, 1, 0, 2, 1, 0, 0, 0, 1, 1, 1, 1, 1, 3, 0, 0, 0, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] isstr2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0] isang2 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] wsptrue2 = [3, 1, 1, 1, 0, 2, 3, 1, 0, 2, 1, 0, 0, 2, 0, 0, 1, 2, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] def draw_beginning(): win.blit(bg, (0, 0)) global points, isstr, isang, moves win.blit(starts, (0, 0)) win.blit(ends, (900, 300)) i = 0 while i < 48: print(i) if isstr[i] == 1: win.blit(straight[wsp[points[i]]], (((i % 8)+1) * 100, (i // 8) * 100)) elif isang[i] == 1: win.blit(angle[wsp[points[i]]], (((i % 8)+1) * 100, (i // 8) * 100)) i = i + 1 pygame.display.update() moves = 1 print(wsp) def redraw(): # p == number of square clicked on global wsp p = mouseposition[0] // 100 + 8 * (mouseposition[1] // 100) - 1 # change == number of square in order change = points[p] if isstr[p] == 1: wsp[change] = (wsp[change] + 1) % 2 x = (mouseposition[0] // 100) * 100 y = (mouseposition[1] // 100) * 100 win.blit(straight[wsp[change]], (x, y)) elif isang[p] == 1: wsp[change] = (wsp[change] + 1) % 4 x = (mouseposition[0] // 100) * 100 y = (mouseposition[1] // 100) * 100 win.blit(angle[wsp[change]], (x, y)) pygame.display.update() print(wsp) def nextlevel(): global lev, moves print("Hurra!") lev = 2 moves = 0 run = True while run: mouseClicked = False for event in pygame.event.get(): if event.type == pygame.QUIT: run = False elif event.type == pygame.MOUSEBUTTONUP: clickSound.play() mouseposition = event.pos mouseClicked = True moves = 1 if moves == 0: # for level1 if lev == 1: points = points1 wsp = wsp1 isstr = isstr1 isang = isang1 wsptrue = wsptrue1 draw_beginning() if lev == 2: points = points2 wsp = wsp2 isstr = isstr2 isang = isang2 wsptrue = wsptrue2 draw_beginning() elif mouseClicked: redraw() print(wsp) k = 0 for i in range(48): if wsp[i] == wsptrue[i]: k = k + 1 if k == 48: nextlevel() pygame.quit()
39.041958
125
0.442594
1,111
5,583
2.219622
0.126013
0.406326
0.552311
0.678021
0.322384
0.31914
0.309813
0.2794
0.276967
0.27575
0
0.228839
0.350349
5,583
142
126
39.316901
0.451061
0.08705
0
0.217391
0
0
0.019417
0
0
0
0
0
0
1
0.026087
false
0
0.008696
0
0.034783
0.043478
0
0
0
null
1
1
1
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
5
3adc78f5674f89a8e9bc35110f56e2ad605f781f
194
py
Python
excut/embedding/ampligraph_extend/__init__.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
5
2020-11-17T19:59:49.000Z
2021-09-23T23:10:39.000Z
excut/embedding/ampligraph_extend/__init__.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
excut/embedding/ampligraph_extend/__init__.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
from .models.TransE import TransE from .models.ComplEx import ComplEx from .models.DistMult import DistMult from .models.ConvKB import ConvKB __all__=['TransE', 'ComplEx','DistMult', 'ConvKB']
32.333333
51
0.783505
25
194
5.92
0.32
0.27027
0
0
0
0
0
0
0
0
0
0
0.103093
194
6
51
32.333333
0.850575
0
0
0
0
0
0.138462
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
3ae23693dfc783f823e5049e9b2f3557fbcf5bce
24
py
Python
geco/__init__.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
8
2020-12-16T09:59:05.000Z
2022-03-18T09:48:43.000Z
geco/__init__.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
101
2020-11-09T10:20:03.000Z
2022-03-24T13:50:06.000Z
geco/__init__.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
3
2021-04-06T13:26:03.000Z
2022-03-22T13:22:16.000Z
from geco.mips import *
12
23
0.75
4
24
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
24
1
24
24
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
aaedd7868b643a4168d7ef4cd3132d6fe6c905cd
74
py
Python
tmp/disable_call_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
tmp/disable_call_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
tmp/disable_call_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
# Example: Disable Call Recording api.disable_call_recording('c-callId')
24.666667
38
0.797297
10
74
5.7
0.7
0.385965
0.701754
0
0
0
0
0
0
0
0
0
0.094595
74
2
39
37
0.850746
0.418919
0
0
0
0
0.2
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
aafc66f4b406c3122ba874c3b280fd81b4e45a1d
91
py
Python
chomsky/exceptions.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
3
2015-07-30T14:58:46.000Z
2021-07-09T15:29:52.000Z
chomsky/exceptions.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
chomsky/exceptions.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
1
2017-01-27T13:09:01.000Z
2017-01-27T13:09:01.000Z
class ParseException(Exception): pass class RollbackException(Exception): pass
10.111111
35
0.736264
8
91
8.375
0.625
0.38806
0
0
0
0
0
0
0
0
0
0
0.197802
91
8
36
11.375
0.917808
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
c90ad12c03620bf85d536549c2bf104c0b618a94
5,038
py
Python
libscampi/contrib/cms/newsengine/views/helpers.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
2
2016-07-28T19:39:49.000Z
2021-12-10T15:01:54.000Z
libscampi/contrib/cms/newsengine/views/helpers.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
null
null
null
libscampi/contrib/cms/newsengine/views/helpers.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
1
2016-01-20T23:49:36.000Z
2016-01-20T23:49:36.000Z
import logging from django.core.cache import cache from django.db.models import Q from libscampi.contrib.cms.communism.models import Javascript, StyleSheet from libscampi.contrib.cms.communism.views.mixins import html_link_refs logger = logging.getLogger("libscampi.contrib.cms.newsengine.views") def story_stylesheets(story, theme, refresh_cache = False): article = story.article #try to get the cached css for this story / theme combination cached_css_key = 'theme:{0:d}:story:css:{1:d}'.format(story.id, theme.id) if refresh_cache: #invalidate on refresh_cache cache.delete(cached_css_key) styles = cache.get(cached_css_key, None) #cache empty, get the styles and refill the cache if not styles: logger.debug("missed css cache on {0:>s}".format(cached_css_key)) playlist_filters = Q(base = True) if story.video_playlist: playlist_filters |= Q(mediaplaylisttemplate__videoplaylist__pk = story.video_playlist_id) if story.image_playlist: playlist_filters |= Q(mediaplaylisttemplate__imageplaylist__pk = story.image_playlist_id) if story.audio_playlist: playlist_filters |= Q(mediaplaylisttemplate__audioplaylist__pk = story.audio_playlist_id) if story.document_playlist: playlist_filters |= Q(mediaplaylisttemplate__documentplaylist__pk = story.document_playlist_id) if story.object_playlist: playlist_filters |= Q(mediaplaylisttemplate__objectplaylist__pk = story.object_playlist_id) styles = StyleSheet.objects.filter(active=True, theme__id=theme.id).filter( #playlist finders playlist_filters | #inline finders Q(mediainlinetemplate__videotype__video__id__in=list(article.video_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__imagetype__image__id__in=list(article.image_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__audiotype__audio__id__in=list(article.audio_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__documenttype__document__id__in=list(article.document_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__objecttype__object__id__in=list(article.object_inlines.values_list('id', flat=True))) ).order_by('precedence').distinct() cache.set(cached_css_key, styles, 60*10) #build a simple collection of styles css_collection = html_link_refs() for style in styles: css_collection.add(style) return css_collection def story_javascripts(story, theme, refresh_cache = False): article = story.article #try to get the cached javascript for this published story cached_scripts_key = 'theme:{0:d}:story:js:{1:d}'.format(story.id, theme.id) if refresh_cache: #invalidate on refresh_cache cache.delete(cached_scripts_key) script_ids = cache.get(cached_scripts_key, None) #cache empty, get the scripts and refill the cache if not script_ids: logger.debug("missed css cache on {0:>s}".format(cached_scripts_key)) playlist_filters = Q(base = True) if story.video_playlist: playlist_filters |= Q(mediaplaylisttemplate__videoplaylist__pk = story.video_playlist_id) if story.image_playlist: playlist_filters |= Q(mediaplaylisttemplate__imageplaylist__pk = story.image_playlist_id) if story.audio_playlist: playlist_filters |= Q(mediaplaylisttemplate__audioplaylist__pk = story.audio_playlist_id) if story.document_playlist: playlist_filters |= Q(mediaplaylisttemplate__documentplaylist__pk = story.document_playlist_id) if story.object_playlist: playlist_filters |= Q(mediaplaylisttemplate__objectplaylist__pk = story.object_playlist_id) scripts = Javascript.objects.filter(active=True, theme__id=theme.id).filter( playlist_filters | #inline finders Q(mediainlinetemplate__videotype__video__id__in=list(article.video_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__imagetype__image__id__in=list(article.image_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__audiotype__audio__id__in=list(article.audio_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__documenttype__document__id__in=list(article.document_inlines.values_list('id', flat=True))) | Q(mediainlinetemplate__objecttype__object__id__in=list(article.object_inlines.values_list('id', flat=True))) ).order_by('precedence').distinct() cache.set(cached_scripts_key, list(scripts.values_list('id', flat = True)), 60*20) else: scripts = Javascript.objects.filter(id__in=script_ids).order_by('precedence') #build a simple collection of styles script_collection = html_link_refs() for script in scripts: script_collection.add(script) return script_collection
47.980952
128
0.726677
621
5,038
5.513688
0.181965
0.061332
0.056075
0.051402
0.799065
0.751168
0.70736
0.70736
0.70736
0.70736
0
0.003405
0.183803
5,038
105
129
47.980952
0.82928
0.075824
0
0.555556
0
0
0.041972
0.019587
0
0
0
0
0
1
0.027778
false
0
0.069444
0
0.125
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c91af915d879f90ad21d4c7b103eb00dd77367b1
185
py
Python
test/test_del_group.py
Sviatlana-Pi/python_training
ecd7fc7d53b3334d1b21d04c12f0355b3f29751c
[ "Apache-2.0" ]
null
null
null
test/test_del_group.py
Sviatlana-Pi/python_training
ecd7fc7d53b3334d1b21d04c12f0355b3f29751c
[ "Apache-2.0" ]
null
null
null
test/test_del_group.py
Sviatlana-Pi/python_training
ecd7fc7d53b3334d1b21d04c12f0355b3f29751c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- def test_del_first_group(app): app.session.login(username = "admin", password = "secret") app.group.delete_first_group() app.session.logout()
26.428571
63
0.648649
24
185
4.791667
0.708333
0.173913
0.226087
0
0
0
0
0
0
0
0
0.006623
0.183784
185
7
64
26.428571
0.754967
0.113514
0
0
0
0
0.070064
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.25
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
c946f1c09bc838d8b57b3318f11f9caa04c3f8ef
24,430
py
Python
tests/fi/data/parl_long_test_strings.py
aalto-speech/aalto-asr-preprocessor
792a618aeca940274a21d0698ee741277d8d8fc5
[ "MIT" ]
null
null
null
tests/fi/data/parl_long_test_strings.py
aalto-speech/aalto-asr-preprocessor
792a618aeca940274a21d0698ee741277d8d8fc5
[ "MIT" ]
18
2021-06-07T14:12:13.000Z
2022-02-02T13:58:27.000Z
tests/fi/data/parl_long_test_strings.py
aalto-speech/aalto-asr-preprocessor
792a618aeca940274a21d0698ee741277d8d8fc5
[ "MIT" ]
null
null
null
"""Long statement strings and other space consuming data definitions for testing are declared here. This is done to avoid clutter in main test files. """ from typing import Any from typing import List from typing import Tuple import pytest parl_to_kaldi_pairs: List[Tuple[str, str]] = [ ( "Ensimmäiseen käsittelyyn esitellään päiväjärjestyksen 5. asia. Käsittelyn pohjana on " "sosiaali- ja terveysvaliokunnan mietintö StVM 16/2017 vp. Yleiskeskustelu asiasta päättyi " "30.11.2017 pidetyssä täysistunnossa. Nyt käsitellään muutosehdotukset.", "ensimmäiseen käsittelyyn esitellään päiväjärjestyksen viides asia käsittelyn pohjana on " "sosiaali ja terveysvaliokunnan mietintö kuusitoista yleiskeskustelu asiasta päättyi " "kolmaskymmenes yhdettätoista kaksituhattaseitsemäntoista pidetyssä täysistunnossa nyt " "käsitellään muutosehdotukset", ), ( "Arvoisa puhemies! Kristillisdemokraatit tukevat hallituksen päätöstä valmiuslain 86, 88, " "93, 94 ja 109 §:ien sekä 95 §:n ja siitä johtuvien 96—103 §:ien toimivaltuuden käytön ja " "soveltamisen jatkamisesta sekä 87 §:n toimivaltuuksien käyttöönotosta ja jatkamisesta.", "arvoisa puhemies kristillisdemokraatit tukevat hallituksen päätöstä valmiuslain pykälien " "kahdeksankymmentäkuusi kahdeksankymmentäkahdeksan yhdeksänkymmentäkolme " "yhdeksänkymmentäneljä ja satayhdeksän sekä yhdeksännenkymmenennenviidennen pykälän ja " "siitä johtuvien pykälien yhdeksänkymmentäkuusi viiva satakolme toimivaltuuden käytön ja " "soveltamisen jatkamisesta sekä kahdeksannenkymmenennenseitsemännen pykälän " "toimivaltuuksien käyttöönotosta ja jatkamisesta", ), ( "Arvoisa puhemies! Valtioneuvosto on antanut eduskunnalle valmiuslain mukaisten " "toimivaltuuksien käytön jatkoa koskevia asetuksia. Asetuksilla jatketaan hallituksen " "aiemmin päättämiä toimia, joita koskevien asetusten voimassaolo päättyy 13.4.2020. Nyt " "esitetyillä asetuksilla jatketaan toimivaltuuksien käyttöä 13.5.2020 asti. " "Toimenpiteisiin liittyen on annettu yhteensä neljä valtioneuvoston asetusta: " "valtioneuvoston asetus valmiuslain 86, 88, 93, 94 ja 109 §:issä säädettyjen " "toimivaltuuksien käytön jatkamisesta, asetus valmiuslain 87 §:ssä säädettyjen " "toimivaltuuksien käytön jatkamisesta, asetus valmiuslain 87 §:ssä säädettyjen " "toimivaltuuksien käyttöönotosta sekä asetus valmiuslain 95 §:n 2 momentissa säädetyn " "toimivaltuuden käytön ja 96—103 §:ien soveltamisen jatkamisesta. Valtioneuvosto haluaa " "jatkaa rajoituksia lähiopetuksessa eri koulutusasteilla. Tämä tarkoittaa, että opetuksen " "poikkeusjärjestelyjä jatketaan 13. toukokuuta asti.", "arvoisa puhemies valtioneuvosto on antanut eduskunnalle valmiuslain mukaisten " "toimivaltuuksien käytön jatkoa koskevia asetuksia asetuksilla jatketaan hallituksen " "aiemmin päättämiä toimia joita koskevien asetusten voimassaolo päättyy kolmastoista " "neljättä kaksituhattakaksikymmentä nyt esitetyillä asetuksilla jatketaan toimivaltuuksien " "käyttöä kolmastoista viidettä kaksituhattakaksikymmentä asti toimenpiteisiin liittyen on " "annettu yhteensä neljä valtioneuvoston asetusta valtioneuvoston asetus valmiuslain " "pykälissä kahdeksankymmentäkuusi kahdeksankymmentäkahdeksan yhdeksänkymmentäkolme " "yhdeksänkymmentäneljä ja satayhdeksän säädettyjen toimivaltuuksien käytön jatkamisesta " "asetus valmiuslain kahdeksannessakymmenennessäseitsemännessä pykälässä säädettyjen " "toimivaltuuksien käytön jatkamisesta asetus valmiuslain " "kahdeksannessakymmenennessäseitsemännessä pykälässä säädettyjen toimivaltuuksien " "käyttöönotosta sekä asetus valmiuslain yhdeksännenkymmenennenviidennen pykälän toisessa " "momentissa säädetyn toimivaltuuden käytön ja pykälien yhdeksänkymmentäkuusi viiva " "satakolme soveltamisen jatkamisesta valtioneuvosto haluaa jatkaa rajoituksia " "lähiopetuksessa eri koulutusasteilla tämä tarkoittaa että opetuksen poikkeusjärjestelyjä " "jatketaan kolmastoista toukokuuta asti", ), ( "Käsittelyssä olevassa lakialoitteessa esitetään myös lyhytaikaisesti lasten parissa töitä " "tekevien henkilöiden rikostaustan selvittämistä poistamalla lain 2 §:n 3 momentista " "rikostaustan tarkastusta rajoittava kolmen kuukauden aikaraja työsuhteen kestolle. " "Lisäksi tässä lakialoitteessa velvoitettaisiin työnantajaa pyytämän työntekijältä " "rikostaustaote jo mahdolliseen sijaisrekisteriin rekisteröitymisen yhteydessä, ja tätä " "varten lain 3 §:ään lisättäisiin uusi, 4 momentti.", "käsittelyssä olevassa lakialoitteessa esitetään myös lyhytaikaisesti lasten parissa töitä " "tekevien henkilöiden rikostaustan selvittämistä poistamalla lain toisen pykälän " "kolmannesta momentista rikostaustan tarkastusta rajoittava kolmen kuukauden aikaraja " "työsuhteen kestolle lisäksi tässä lakialoitteessa velvoitettaisiin työnantajaa pyytämän " "työntekijältä rikostaustaote jo mahdolliseen sijaisrekisteriin rekisteröitymisen " "yhteydessä ja tätä varten lain kolmanteen pykälään lisättäisiin uusi neljäs momentti", ), ( "Tämä hallituksen esitys varmistaa näiden opistojen riittävän rahoituksen valtionosuuksien " "merkittävän nousun myötä — siis 57:stä enintään 80 prosenttiin. Arvoisa puhemies! Olemme " "kuitenkin tyytymättömiä siihen, että vaikeasti vammaisille järjestettävä koulutus voisi " "esityksen mukaan saada valtionosuutta enimmillään vain 80 prosenttia, kun " "maahanmuuttajien kotoutumiskoulutuksen valtionosuus olisi jatkossa täydet 100 prosenttia. " "Pidämmekin esitystä tältä osin epäjohdonmukaisena ja ehdotamme lakiehdotusta " "muutettavaksi siten, että kotouttamiskoulutusta ja vaikeavammaisten koulutusta koskevien " "valtionosuuksien prosenttiosuudet olisivat yhtenevät eli tässä tapauksessa molemmat 80 " "prosenttia. Esitämme vastalauseemme mukaisia muutosehdotuksia lain 9 ja 10 §:iin.", "tämä hallituksen esitys varmistaa näiden opistojen riittävän rahoituksen valtionosuuksien " "merkittävän nousun myötä siis viidestäkymmenestäseitsemästä enintään kahdeksaankymmeneen " "prosenttiin arvoisa puhemies olemme kuitenkin tyytymättömiä siihen että vaikeasti " "vammaisille järjestettävä koulutus voisi esityksen mukaan saada valtionosuutta " "enimmillään vain kahdeksankymmentä prosenttia kun maahanmuuttajien kotoutumiskoulutuksen " "valtionosuus olisi jatkossa täydet sata prosenttia pidämmekin esitystä tältä osin " "epäjohdonmukaisena ja ehdotamme lakiehdotusta muutettavaksi siten että " "kotouttamiskoulutusta ja vaikeavammaisten koulutusta koskevien valtionosuuksien " "prosenttiosuudet olisivat yhtenevät eli tässä tapauksessa molemmat kahdeksankymmentä " "prosenttia esitämme vastalauseemme mukaisia muutosehdotuksia lain pykäliin yhdeksän ja " "kymmenen", ), ( "Ympäristövaliokunta ei ollut tämän lakiesityksen käsittelyssä yksimielinen, vaan vihreät, " "vasemmistoliitto ja RKP jättivät eriävän mielipiteen. Yksityiskohtaisessa, " "pykäläkohtaisessa käsittelyssä teen tämän eriävän mielipiteen mukaiset muutosehdotukset " "65 ja 169 §:iin, jotka tarkoittavat, että nämä pykälät säilytetään ennallaan. Se, että " "kullanhuuhdonnan jatkolupa pitenee 3:sta 10 vuoteen, on varsin merkittävä muutos, samoin " "se, että toimintaa saa jatkaa, vaikka luvasta olisi valitettu. Esimerkiksi Metsähallitus " "lausunnossaan toivoi jatkoajan pidennyksen maltillistamista. Myös Lapin ely-keskus toi " "lausunnossaan esiin sen, että tämän muutoksen vaikutuksia ympäristöön ei hallituksen " "esityksessä ole arvioitu riittävästi.", "ympäristövaliokunta ei ollut tämän lakiesityksen käsittelyssä yksimielinen vaan vihreät " "vasemmistoliitto ja rkp jättivät eriävän mielipiteen yksityiskohtaisessa " "pykäläkohtaisessa käsittelyssä teen tämän eriävän mielipiteen mukaiset muutosehdotukset " "pykäliin kuusikymmentäviisi ja satakuusikymmentäyhdeksän jotka tarkoittavat että nämä " "pykälät säilytetään ennallaan se että kullanhuuhdonnan jatkolupa pitenee kolmesta " "kymmeneen vuoteen on varsin merkittävä muutos samoin se että toimintaa saa jatkaa vaikka " "luvasta olisi valitettu esimerkiksi metsähallitus lausunnossaan toivoi jatkoajan " "pidennyksen maltillistamista myös lapin ely keskus toi lausunnossaan esiin sen että " "tämän muutoksen vaikutuksia ympäristöön ei hallituksen esityksessä ole arvioitu " "riittävästi", ), ( "Tällä hetkellä määräaika on kolme vuotta. Rikoslain 2 c luvun 5—14 §:ien kohdat " "säätelevät sitä, kuinka nopeasti ehdottomaan määräaikaiseen vankeusrangaistukseen " "tuomittu vanki vapautetaan ehdonalaiseen vapauteen. Keskeisimmät pykälät ovat 5 § ja 8 §. " "Niiden mukaisesti: 1) Pääsääntöisesti vanki päästetään ehdonalaiseen vapauteen, kun hän " "on kärsinyt rangaistuksestaan kaksi kolmasosaa tai alle 21-vuotiaana tehdyn rikoksen " "rangaistuksesta puolet. 2) Pääsäännöstä poiketaan, kun vanki ei ole suorittanut " "vankeusrangaistusta vankilassa rikosta edeltäneiden kolmen vuoden aikana. Tässä " "tapauksessa hänet päästetään ehdonalaiseen vapauteen, kun hän on kärsinyt " "rangaistuksestaan puolet tai alle 21-vuotiaana tehdyn rikoksen rangaistuksesta yhden " "kolmasosan. 3) Vankilassa todellisesti vietettyä aikaa voi lisäksi lyhentää valvottu " "koevapaus. Koevapauteen voi päästä 6 kuukautta ennen ehdonalaista vapauttamista. Tällöin " "vankia valvotaan vankilan ulkopuolella teknisin välinein tai muulla tavalla. Arvoisa " "puhemies! Näin esimerkiksi taposta 9 vuoden vankeusrangaistuksen saanut voi " "tosiasiallisesti olla vankilassa 4 vuotta. Alle 21-vuotiaana tehdystä törkeästä " "raiskauksesta 4 vuodeksi ehdottomaan vankeuteen tuomittu voi istua vankilassa vain 10 " "kuukautta. Kuten mainittu, nämä lieventävät tilanteet edellyttävät, että rikoksentekijä " "ei ole ollut vankilassa rikosta edeltäneiden kolmen vuoden aikana. Rikoslaki on näin " "ollen merkittävästi lievempi vangille, jolla joko ei ole lainkaan aikaisempia " "vankeusrangaistuksia tai jonka viimeisimmästä vankeusrangaistuksesta on sen verran paljon " "aikaa, että hän välillä ehtii olla kolme vuotta poissa vankilassa. — Tämä löytyy 5 §:n 2 " "momentin toisesta lauseesta.", "tällä hetkellä määräaika on kolme vuotta rikoslain kaksi c luvun pykälien viisi viiva " "neljätoista kohdat säätelevät sitä kuinka nopeasti ehdottomaan määräaikaiseen " "vankeusrangaistukseen tuomittu vanki vapautetaan ehdonalaiseen vapauteen keskeisimmät " "pykälät ovat viides pykälä ja kahdeksas pykälä niiden mukaisesti yksi pääsääntöisesti " "vanki päästetään ehdonalaiseen vapauteen kun hän on kärsinyt rangaistuksestaan kaksi " "kolmasosaa tai alle kaksikymmentäyksi vuotiaana tehdyn rikoksen rangaistuksesta puolet " "kaksi pääsäännöstä poiketaan kun vanki ei ole suorittanut vankeusrangaistusta vankilassa " "rikosta edeltäneiden kolmen vuoden aikana tässä tapauksessa hänet päästetään " "ehdonalaiseen vapauteen kun hän on kärsinyt rangaistuksestaan puolet tai alle " "kaksikymmentäyksi vuotiaana tehdyn rikoksen rangaistuksesta yhden kolmasosan kolme " "vankilassa todellisesti vietettyä aikaa voi lisäksi lyhentää valvottu koevapaus " "koevapauteen voi päästä kuusi kuukautta ennen ehdonalaista vapauttamista tällöin vankia " "valvotaan vankilan ulkopuolella teknisin välinein tai muulla tavalla arvoisa puhemies " "näin esimerkiksi taposta yhdeksän vuoden vankeusrangaistuksen saanut voi tosiasiallisesti " "olla vankilassa neljä vuotta alle kaksikymmentäyksi vuotiaana tehdystä törkeästä " "raiskauksesta neljäksi vuodeksi ehdottomaan vankeuteen tuomittu voi istua vankilassa vain " "kymmenen kuukautta kuten mainittu nämä lieventävät tilanteet edellyttävät että " "rikoksentekijä ei ole ollut vankilassa rikosta edeltäneiden kolmen vuoden aikana " "rikoslaki on näin ollen merkittävästi lievempi vangille jolla joko ei ole lainkaan " "aikaisempia vankeusrangaistuksia tai jonka viimeisimmästä vankeusrangaistuksesta on sen " "verran paljon aikaa että hän välillä ehtii olla kolme vuotta poissa vankilassa tämä " "löytyy viidennen pykälän toisen momentin toisesta lauseesta", ), ( "Näen, että sähkökäyttöisen polkupyörän käytössä voi tulla myös ongelmia, mikäli joudutaan " "miettimään, onko ajoneuvo polkupyörä vaiko jalankulkija. Onneksemme lausuntojen johdosta " "tieliikennelain 45 ja 45 a §:iin on molempiin tehty täsmennys siitä, että jalankulkijan " "roolissa ollaan ainoastaan silloin, kun nopeus vastaa kävelynopeutta. Jalkakäytävällä " "tulee kulkea kävelynopeutta. Jos laitteen käyttäjä kulkee kävelynopeutta nopeammin, hänen " "tulee noudattaa polkupyöräilijän liikennesääntöjä. Lausunnossa ei yksiselitteisesti " "kerrota, mikä on kävelynopeus. Onko se minun käyttämäni kävelynopeus vai edustaja " "Essayahin käyttämä kilpakävelynopeus? Tulkinnanvaraa on mielestäni liikaa. Mielestäni " "esityksessä on hyvä lisäys myös lain 40 §:n 1 momentti, jossa jalankulun asemaa on " "lausuntojen johdosta vielä erikseen korostettu. Tässä kohdin säädetään jalankulkijan " "paikasta tiellä, että jalkakäytävän käyttö polkupyörällä olisi mahdollista vain silloin, " "jos se voidaan tehdä muita jalankulkijoita haittaamatta. Myös se, että kevyen " "sähköajoneuvon käyttäjä olisi polkupyöräilijä aina, jos käytettävissä ei ole " "jalkakäytävää, on hyvä tiedostaa. Tällöin polkupyöräilijän paikka on tiellä aina ajoradan " "oikea reuna riippumatta nopeudesta. Kevyille sähköajoneuvoille on esitetty " "luokkakohtaista 25 kilometrin tuntinopeusrajoitusta.", "näen että sähkökäyttöisen polkupyörän käytössä voi tulla myös ongelmia mikäli joudutaan " "miettimään onko ajoneuvo polkupyörä vaiko jalankulkija onneksemme lausuntojen johdosta " "tieliikennelain pykäliin neljäkymmentäviisi ja neljäkymmentäviisi a on molempiin tehty " "täsmennys siitä että jalankulkijan roolissa ollaan ainoastaan silloin kun nopeus vastaa " "kävelynopeutta jalkakäytävällä tulee kulkea kävelynopeutta jos laitteen käyttäjä kulkee " "kävelynopeutta nopeammin hänen tulee noudattaa polkupyöräilijän liikennesääntöjä " "lausunnossa ei yksiselitteisesti kerrota mikä on kävelynopeus onko se minun käyttämäni " "kävelynopeus vai edustaja essayahin käyttämä kilpakävelynopeus tulkinnanvaraa on " "mielestäni liikaa mielestäni esityksessä on hyvä lisäys myös lain neljännenkymmenennen " "pykälän ensimmäinen momentti jossa jalankulun asemaa on lausuntojen johdosta vielä " "erikseen korostettu tässä kohdin säädetään jalankulkijan paikasta tiellä että " "jalkakäytävän käyttö polkupyörällä olisi mahdollista vain silloin jos se voidaan tehdä " "muita jalankulkijoita haittaamatta myös se että kevyen sähköajoneuvon käyttäjä olisi " "polkupyöräilijä aina jos käytettävissä ei ole jalkakäytävää on hyvä tiedostaa tällöin " "polkupyöräilijän paikka on tiellä aina ajoradan oikea reuna riippumatta nopeudesta " "kevyille sähköajoneuvoille on esitetty luokkakohtaista kahdenkymmenenviiden kilometrin " "tuntinopeusrajoitusta", ), ( "Siirryn sitten siihen. — Perustuslakivaliokunnan arvioitavana on ollut valmiuslain 8 §:n " "nojalla annettu valtioneuvoston asetus valmiuslain 87 §:ssä säädetyn toimivaltuuden " "käytön jatkamisesta. Asetuksen 2 §:n mukaan valmiuslain 87 §:ssä säädettyä toimivaltuutta " "ohjata terveydenhuollon toimintaa mainitun pykälän 1 kohdassa tarkoitetulla tavalla " "voidaan soveltaa koko valtakunnan alueella. Valmiuslain 87 §:n 1 kohdan mukaan väestön " "terveydenhuollon turvaamiseksi 3 §:n 1, 2, 4 ja 5 kohdissa tarkoitetuissa poikkeusoloissa " "sosiaali- ja terveysministeriö voi päätöksellään velvoittaa lääketehtaan, " "lääketukkukaupan, apteekkiliikkeen harjoittamiseen oikeutetun sekä sellaisen yhteisön ja " "yksityisen elinkeinonharjoittajan, joka toimittaa terveydenhuollossa käytettäviä " "tavaroita tai palveluja taikka muuten toimii terveydenhuollon alalla, laajentamaan tai " "muuttamaan toimintaansa. Asetus tulee voimaan 14. päivänä toukokuuta 2020, ja se on " "voimassa vähintään 30. päivään kesäkuuta 2020. Perustuslakivaliokunta esittää, että " "valtioneuvoston asetus saa jäädä voimaan.", "siirryn sitten siihen perustuslakivaliokunnan arvioitavana on ollut valmiuslain " "kahdeksannen pykälän nojalla annettu valtioneuvoston asetus valmiuslain " "kahdeksannessakymmenennessäseitsemännessä pykälässä säädetyn toimivaltuuden käytön " "jatkamisesta asetuksen toisen pykälän mukaan valmiuslain " "kahdeksannessakymmenennessäseitsemännessä pykälässä säädettyä toimivaltuutta ohjata " "terveydenhuollon toimintaa mainitun pykälän ensimmäisessä kohdassa tarkoitetulla tavalla " "voidaan soveltaa koko valtakunnan alueella valmiuslain " "kahdeksannenkymmenennenseitsemännen pykälän ensimmäisen kohdan mukaan väestön " "terveydenhuollon turvaamiseksi kolmannen pykälän yksi kaksi neljä ja viisi kohdissa " "tarkoitetuissa poikkeusoloissa sosiaali ja terveysministeriö voi päätöksellään velvoittaa " "lääketehtaan lääketukkukaupan apteekkiliikkeen harjoittamiseen oikeutetun sekä sellaisen " "yhteisön ja yksityisen elinkeinonharjoittajan joka toimittaa terveydenhuollossa " "käytettäviä tavaroita tai palveluja taikka muuten toimii terveydenhuollon alalla " "laajentamaan tai muuttamaan toimintaansa asetus tulee voimaan neljäntenätoista päivänä " "toukokuuta kaksituhattakaksikymmentä ja se on voimassa vähintään " "kolmanteenkymmenenteen päivään kesäkuuta kaksituhattakaksikymmentä " "perustuslakivaliokunta esittää että valtioneuvoston asetus saa jäädä voimaan", ), ( "Vuonna 2009 laaditun ja vuonna 2011 päivitetyn poliisin pitkän aikavälin " "henkilöstötarpeiden kehittämissuunnitelman mukaan vuonna 2020 poliisimiesten " "kokonaismäärän tarpeeksi on arvioitu 8 296 henkilötyövuotta, mihin lukuun ei sisälly " "kenttäjaksolla olevien määrä. Mielestäni tämä olisi sopiva poliisimäärä. Tämä luku on " "kuitenkin kaukana tuosta 6 300:sta, joka näillä näkymin on todellisuutta vuonna 2020. " "Tällä hetkellä meillä on poliiseja tuhatta asukasta kohden 1,31, mikä on ylivoimaisesti " "vähiten koko Pohjoismaissa. Myös hallinto- ja lupapalveluissa toimii poliisissa jo " "suhteessa vähemmän henkilöitä kuin useimmissa muissa valtion virastoissa. Lisävähennykset " "johtaisivat siihen, että poliisimiehet hoitaisivat myös näitä tehtäviä. En näe mitään " "järkeä tällaisessa toiminnassa. Muissa Pohjoismaissa poliisien määrää ja rahoitusta " "lisätään. Esimerkiksi Ruotsissa osoitetaan poliisille tälle kehyskaudelle lisärahoitusta " "2 miljardia kruunua. Pyrkimyksenä on 2 000 poliisimiehen ja 1 300 muun työntekijän " "lisäys. Samaan aikaan me Suomessa elämme lintukodossa ja toivomme, ettei meitä kukaan " "huomaisi. Samalla haluamme olla osa Eurooppaa mutta emme kuitenkaan toimi kuten " "eurooppalaisten kuuluisi toimia. Pitäisi ymmärtää, että sisäinen turvallisuus on " "suomalaisen demokratian ja hyvinvointiyhteiskunnan kivijalka. Erittäin myönteinen asia " "on, että Poliisiammattikorkeakoulun sisäänottoa ollaan kasvattamassa tänä vuonna 400 " "opiskelijalla. Viime vuonna valmistui edellisen hallituksen huomenlahjana vain 57 " "poliisimiestä, ja se ei riitä kattamaan eläköitymisvauhtia, joka on noin 300 joka vuosi. " "Edellisellä vaalikaudella toteutetun Pora III:n tavoitteena oli liikenteenvalvonnan tason " "säilyttäminen vähintään sillä tasolla, jolla se on ollut liikkuvan poliisin aikana. " "Raskaan liikenteen valvonta tulisi säilyttää vuoden 2012 tasolla.", "vuonna kaksituhattayhdeksän laaditun ja vuonna kaksituhattayksitoista päivitetyn poliisin " "pitkän aikavälin henkilöstötarpeiden kehittämissuunnitelman mukaan vuonna " "kaksituhattakaksikymmentä poliisimiesten kokonaismäärän tarpeeksi on arvioitu " "kahdeksantuhattakaksisataayhdeksänkymmentäkuusi henkilötyövuotta mihin lukuun ei sisälly " "kenttäjaksolla olevien määrä mielestäni tämä olisi sopiva poliisimäärä tämä luku on " "kuitenkin kaukana tuosta kuudestatuhannestakolmestasadasta joka näillä näkymin on " "todellisuutta vuonna kaksituhattakaksikymmentä tällä hetkellä meillä on poliiseja tuhatta " "asukasta kohden yksi pilkku kolmekymmentäyksi mikä on ylivoimaisesti vähiten koko " "pohjoismaissa myös hallinto ja lupapalveluissa toimii poliisissa jo suhteessa vähemmän " "henkilöitä kuin useimmissa muissa valtion virastoissa lisävähennykset johtaisivat siihen " "että poliisimiehet hoitaisivat myös näitä tehtäviä en näe mitään järkeä tällaisessa " "toiminnassa muissa pohjoismaissa poliisien määrää ja rahoitusta lisätään esimerkiksi " "ruotsissa osoitetaan poliisille tälle kehyskaudelle lisärahoitusta kaksi miljardia " "kruunua pyrkimyksenä on kahdentuhannen poliisimiehen ja tuhannenkolmensadan muun " "työntekijän lisäys samaan aikaan me suomessa elämme lintukodossa ja toivomme ettei meitä " "kukaan huomaisi samalla haluamme olla osa eurooppaa mutta emme kuitenkaan toimi kuten " "eurooppalaisten kuuluisi toimia pitäisi ymmärtää että sisäinen turvallisuus on " "suomalaisen demokratian ja hyvinvointiyhteiskunnan kivijalka erittäin myönteinen asia on " "että poliisiammattikorkeakoulun sisäänottoa ollaan kasvattamassa tänä vuonna " "neljälläsadalla opiskelijalla viime vuonna valmistui edellisen hallituksen huomenlahjana " "vain viisikymmentäseitsemän poliisimiestä ja se ei riitä kattamaan eläköitymisvauhtia " "joka on noin kolmesataa joka vuosi edellisellä vaalikaudella toteutetun pora kolmen " "tavoitteena oli liikenteenvalvonnan tason säilyttäminen vähintään sillä tasolla jolla se " "on ollut liikkuvan poliisin aikana raskaan liikenteen valvonta tulisi säilyttää vuoden " "kaksituhattakaksitoista tasolla", ), ( "Tässäpä täysin hatusta vedetty koe [Puhemies koputtaa], jossa saman puheenvuoron sisällä " "on useampi (Kaisa Kansanedustaja: Nyt on asiaa!) välihuuto yms. sulkeiden sisällä olevaa " "joka poistetaan. Tällä testillä varmistetaan (Pertti Perusjamppa: Vastalause!], että " "käytetty säännöllinen lauseke (regexp) on laiska eikä ahne. Toisin sanoen lausekkeen " "osuma loppuu ensimmäiseen avatun sulkeen jälkeen kohdattuun sulkevaan sulkeeseen. [Tyyne " "Toisinajattelija: Tässä vielä virhe eli jäi sulje sulkematta!?", "tässäpä täysin hatusta vedetty koe jossa saman puheenvuoron sisällä on useampi välihuuto " "ynnä muuta sellaista sulkeiden sisällä olevaa joka poistetaan tällä testillä varmistetaan " "että käytetty säännöllinen lauseke on laiska eikä ahne toisin sanoen lausekkeen osuma " "loppuu ensimmäiseen avatun sulkeen jälkeen kohdattuun sulkevaan sulkeeseen", ), ] @pytest.fixture def parl_to_kaldi_test_pairs(request: Any) -> Tuple[str, str]: """Return an embedded statement from the above list using given index.""" index: int = request.param return parl_to_kaldi_pairs[index]
81.433333
100
0.770037
2,392
24,430
7.873328
0.360368
0.001062
0.003717
0.009558
0.827271
0.783943
0.732119
0.695959
0.636967
0.62879
0
0.010525
0.194965
24,430
299
101
81.705686
0.945492
0.008801
0
0.051724
0
0.003448
0.863819
0.05991
0
0
0
0
0
1
0.003448
false
0
0.013793
0
0.02069
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c94dfac6308bb992fa4476dfb97fbd33bb3eb2d1
175
py
Python
cgmzscore/exceptions.py
prajurock/cgmzscore
a16fc22d403ce0c8337271ecda9934d9f738d2ba
[ "BSD-3-Clause" ]
null
null
null
cgmzscore/exceptions.py
prajurock/cgmzscore
a16fc22d403ce0c8337271ecda9934d9f738d2ba
[ "BSD-3-Clause" ]
null
null
null
cgmzscore/exceptions.py
prajurock/cgmzscore
a16fc22d403ce0c8337271ecda9934d9f738d2ba
[ "BSD-3-Clause" ]
1
2020-09-21T14:05:25.000Z
2020-09-21T14:05:25.000Z
class DataNotFound(RuntimeError): pass class DataError(RuntimeError): pass class InvalidAge(RuntimeError): pass class InvalidMeasurement(RuntimeError): pass
15.909091
39
0.76
16
175
8.3125
0.4375
0.481203
0.473684
0
0
0
0
0
0
0
0
0
0.171429
175
11
40
15.909091
0.917241
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
c95305d13d9c95e5ac2b212f12c9c843fd5972d0
318
py
Python
tests/basics/modulo.py
lurch/micropython
28dfbc2ba2ef41a7810e4e39290031eb2207a0a9
[ "MIT" ]
2
2019-04-17T03:56:40.000Z
2019-04-17T03:56:42.000Z
tests/basics/modulo.py
roger-/micropython
bad2df3e95cd5719099319d71590a79bf6bc4493
[ "MIT" ]
null
null
null
tests/basics/modulo.py
roger-/micropython
bad2df3e95cd5719099319d71590a79bf6bc4493
[ "MIT" ]
2
2016-12-19T14:41:42.000Z
2019-04-07T16:13:58.000Z
# check modulo matches python definition # this tests compiler constant folding print(123 % 7) print(-123 % 7) print(123 % -7) print(-123 % -7) a = 321 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b) a = 987654321987987987987987987987 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b)
13.25
40
0.625786
54
318
3.685185
0.333333
0.241206
0.281407
0.361809
0.492462
0.492462
0.492462
0.492462
0.492462
0.311558
0
0.209486
0.204403
318
23
41
13.826087
0.577075
0.235849
0
0.625
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
a36c55b882590aa6cbeaade6114a0017372a4170
195
py
Python
society_bureau/admin.py
JeekStudio/StudentPlatform
d2cccef6555a7c9d137ecab54dbbd4aa219be57b
[ "MIT" ]
4
2019-02-23T13:34:48.000Z
2019-04-09T12:44:19.000Z
society_bureau/admin.py
JeekStudio/StudentPlatform
d2cccef6555a7c9d137ecab54dbbd4aa219be57b
[ "MIT" ]
134
2019-01-29T03:49:54.000Z
2021-04-08T18:44:57.000Z
society_bureau/admin.py
JeekStudio/StudentPlatform
d2cccef6555a7c9d137ecab54dbbd4aa219be57b
[ "MIT" ]
null
null
null
from django.contrib import admin from society_bureau.models import SocietyBureau, SiteSettings # Register your models here. admin.site.register(SocietyBureau) admin.site.register(SiteSettings)
24.375
61
0.841026
24
195
6.791667
0.583333
0.110429
0.208589
0
0
0
0
0
0
0
0
0
0.092308
195
7
62
27.857143
0.920904
0.133333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a39d96c1e1bed083c7aa40ec253d4a8926e73a03
41
py
Python
plugin/taskmage2/utils/excepts.py
willjp/vim-taskmage
adcf809ccf1768753eca4dadaf6279b34e8d5699
[ "BSD-2-Clause" ]
1
2017-11-28T14:12:03.000Z
2017-11-28T14:12:03.000Z
plugin/taskmage2/utils/excepts.py
willjp/vim-taskmage
adcf809ccf1768753eca4dadaf6279b34e8d5699
[ "BSD-2-Clause" ]
16
2017-08-13T18:01:26.000Z
2020-11-17T04:55:43.000Z
plugin/taskmage2/utils/excepts.py
willjp/vim-taskmage
adcf809ccf1768753eca4dadaf6279b34e8d5699
[ "BSD-2-Clause" ]
null
null
null
class ParserError(Exception): pass
8.2
29
0.707317
4
41
7.25
1
0
0
0
0
0
0
0
0
0
0
0
0.219512
41
4
30
10.25
0.90625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
a3a38aefa113f599661acc07fdb63cfcc4404855
38
py
Python
meetings/datetime_func.py
isw4/Proj10-when2meet
93a1efa412f4cb0b1c1be338b2facfed1827f58b
[ "Artistic-2.0" ]
null
null
null
meetings/datetime_func.py
isw4/Proj10-when2meet
93a1efa412f4cb0b1c1be338b2facfed1827f58b
[ "Artistic-2.0" ]
2
2021-02-08T20:13:28.000Z
2021-06-01T21:38:24.000Z
meetings/datetime_func.py
isw4/Proj10-when2meet
93a1efa412f4cb0b1c1be338b2facfed1827f58b
[ "Artistic-2.0" ]
null
null
null
import arrow from dateutil import tz
9.5
23
0.815789
6
38
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.184211
38
3
24
12.666667
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
6e93972193992345605b342c0b696dfc3b6ddeb1
202
py
Python
main/SimulationSettings/FluctuationAmplitudePython/Simulation/FluctuationAmplitude.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SimulationSettings/FluctuationAmplitudePython/Simulation/FluctuationAmplitude.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SimulationSettings/FluctuationAmplitudePython/Simulation/FluctuationAmplitude.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from .FluctuationAmplitudeSteppables import FluctuationAmplitude CompuCellSetup.register_steppable(steppable=FluctuationAmplitude(frequency=100)) CompuCellSetup.run()
25.25
80
0.881188
17
202
10.411765
0.647059
0
0
0
0
0
0
0
0
0
0
0.021164
0.064356
202
7
81
28.857143
0.915344
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
6eb0f494adaede160549b9991399ef6353eb84f2
280
py
Python
bentoctl_aws_ec2/update.py
jjmachan/aws-ec2-deploy
e8a20816a84656502d9c6eb03e944e739efa0c1f
[ "Apache-2.0" ]
null
null
null
bentoctl_aws_ec2/update.py
jjmachan/aws-ec2-deploy
e8a20816a84656502d9c6eb03e944e739efa0c1f
[ "Apache-2.0" ]
2
2021-08-15T14:35:34.000Z
2021-10-04T17:58:36.000Z
bentoctl_aws_ec2/update.py
jjmachan/aws-ec2-deploy
e8a20816a84656502d9c6eb03e944e739efa0c1f
[ "Apache-2.0" ]
null
null
null
from .deploy import deploy def update(bento_bundle_path, deployment_name, ec2_json): """ The deployment operation can also be used for updation since we are using AWS Sam cli for managing deployments. """ deploy(bento_bundle_path, deployment_name, ec2_json)
28
77
0.746429
40
280
5.025
0.725
0.109453
0.149254
0.248756
0.358209
0.358209
0.358209
0
0
0
0
0.00885
0.192857
280
9
78
31.111111
0.880531
0.396429
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
42c7cc8555ae6b6a31f7962d88d3270d8b379df7
220
py
Python
geolocation/admin.py
suselrd/django-geolocation
887c0e2c913c32433d96c864523a494dc04ff90e
[ "BSD-3-Clause" ]
null
null
null
geolocation/admin.py
suselrd/django-geolocation
887c0e2c913c32433d96c864523a494dc04ff90e
[ "BSD-3-Clause" ]
null
null
null
geolocation/admin.py
suselrd/django-geolocation
887c0e2c913c32433d96c864523a494dc04ff90e
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from django.contrib.gis.admin import site, GeoModelAdmin from .models.places import Place from .models.areas import GeoPolygon site.register(Place, GeoModelAdmin) site.register(GeoPolygon, GeoModelAdmin)
27.5
56
0.822727
29
220
6.241379
0.586207
0.110497
0
0
0
0
0
0
0
0
0
0.005
0.090909
220
8
57
27.5
0.9
0.054545
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
42fba7b0a2b4bb2aebb11b3c143ade9b3060ab06
402
py
Python
instance/models.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
instance/models.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
instance/models.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from servers.models import Compute class Instance(models.Model): compute = models.ForeignKey(Compute) name = models.CharField(max_length=20) uuid = models.CharField(max_length=36) # display_name = models.CharField(max_length=50) # display_description = models.CharField(max_length=255)
28.714286
60
0.751244
52
402
5.596154
0.538462
0.206186
0.247423
0.329897
0.19244
0
0
0
0
0
0
0.029155
0.146766
402
13
61
30.923077
0.819242
0.30597
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
6e3f9b3ba4d677712481abe0624c0e2fbc090674
101
py
Python
artbot/feed/__init__.py
skielred/ArtCompanion
6b3d41dcdbd1151778324cf8068e0ce74cfab09c
[ "MIT" ]
1
2021-05-04T09:18:17.000Z
2021-05-04T09:18:17.000Z
artbot/feed/__init__.py
skielred/ArtCompanion
6b3d41dcdbd1151778324cf8068e0ce74cfab09c
[ "MIT" ]
6
2021-04-18T01:03:50.000Z
2021-08-30T14:18:30.000Z
artbot/feed/__init__.py
skielred/ArtCompanion
6b3d41dcdbd1151778324cf8068e0ce74cfab09c
[ "MIT" ]
null
null
null
from .cog import FeedCog def init(bot): bot.add_cog(FeedCog(bot)) from . import pixiv, twitter
14.428571
29
0.712871
16
101
4.4375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.178218
101
6
30
16.833333
0.855422
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
6e47bf7a4b8ae1c19065149149f800cd03f1e2b5
31
py
Python
conflicting_package_test/pkg/foo.py
bmintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-12T10:33:13.000Z
2019-02-24T05:01:40.000Z
conflicting_package_test/pkg/foo.py
LyricLy/python-snippets
9d868b7bbccd793ea1dc513f51290963584a1dee
[ "CC0-1.0" ]
null
null
null
conflicting_package_test/pkg/foo.py
LyricLy/python-snippets
9d868b7bbccd793ea1dc513f51290963584a1dee
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
from . import MyImportantClass
15.5
30
0.83871
3
31
8.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
282617ecec2052893b1cd9abe91c24b4b11c4b97
946
py
Python
views/__init__.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
views/__init__.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
views/__init__.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
from flask import Flask from .calendar import calendar as calendar_blueprint from .classes import classes as classes_blueprint from .dashboard import dashboard as dashboard_blueprint from .index import index as index_blueprint from .link_google import link_google as link_google_blueprint from .link_moodle import link_moodle as link_moodle_blueprint from .login import login as login_blueprint from .logout import logout as logout_blueprint from .settings import settings as settings_blueprint def init_views(app: Flask): app.register_blueprint(calendar_blueprint) app.register_blueprint(classes_blueprint) app.register_blueprint(dashboard_blueprint) app.register_blueprint(index_blueprint) app.register_blueprint(link_google_blueprint) app.register_blueprint(link_moodle_blueprint) app.register_blueprint(login_blueprint) app.register_blueprint(logout_blueprint) app.register_blueprint(settings_blueprint)
41.130435
61
0.843552
125
946
6.096
0.16
0.129921
0.23622
0.304462
0.086614
0
0
0
0
0
0
0
0.114165
946
22
62
43
0.909308
0
0
0
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.5
0
0.55
0.9
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
953f75466702b336bd02204dc2fc0977a15aec12
118
py
Python
enthought/developer/helper/image_library_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/developer/helper/image_library_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/developer/helper/image_library_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from etsdevtools.developer.helper.image_library_editor import *
29.5
63
0.864407
15
118
6.333333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.09322
118
3
64
39.333333
0.88785
0.101695
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
95609a8314f6739668f6e825ea129d24ad1b516a
250
py
Python
search/serialize/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
35
2018-12-18T02:51:09.000Z
2022-03-30T04:43:20.000Z
search/serialize/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
172
2018-02-02T14:35:11.000Z
2018-12-04T15:35:30.000Z
search/serialize/__init__.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
13
2019-01-10T22:01:48.000Z
2021-11-05T12:25:08.000Z
"""Provides serialization functions for API responses.""" __all__ = ["JSONSerializer", "as_json", "AtomXMLSerializer", "as_atom"] from search.serialize.json import JSONSerializer, as_json from search.serialize.atom import AtomXMLSerializer, as_atom
41.666667
71
0.8
29
250
6.62069
0.551724
0.166667
0.208333
0
0
0
0
0
0
0
0
0
0.092
250
5
72
50
0.845815
0.204
0
0
0
0
0.233161
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
9584e0467a419c10ffd4059b5a2f9d1e038bd475
2,005
py
Python
process.py
darthbatman/MachineryMonitor
3549a44b7029e40bd0386063c052e2920373be35
[ "MIT" ]
null
null
null
process.py
darthbatman/MachineryMonitor
3549a44b7029e40bd0386063c052e2920373be35
[ "MIT" ]
null
null
null
process.py
darthbatman/MachineryMonitor
3549a44b7029e40bd0386063c052e2920373be35
[ "MIT" ]
null
null
null
import h5py from os import listdir, getcwd from os.path import isfile, join def hdf_to_csv(): path = getcwd() + '/2020_Challenge_IOT_Analytics/competitionfiles' files = [f for f in listdir(path) if isfile(join(path, f))] for file in files: rf = h5py.File(path + '/' + file, 'r') chanIDs = rf['DYNAMIC DATA'] csv_file_name = getcwd() + '/csv_data/' + \ file.split('/')[-1].split('.')[0] + '.csv' with open(csv_file_name, 'w') as wf: channel_vals = {} row = '' for key in list(chanIDs.keys()): channel_vals[key] = chanIDs[key]['MEASURED'][()] row += key + ',' row = row[:-1] + '\n' wf.write(row) for i in range(len(channel_vals[list(chanIDs.keys())[0]])): row = '' for key in list(chanIDs.keys()): row += str(channel_vals[key][i]) + ',' row = row[:-1] + '\n' wf.write(row) wf.close() rf.close() def hdf_to_json(): path = getcwd() + '/2020_Challenge_IOT_Analytics/competitionfiles' files = [f for f in listdir(path) if isfile(join(path, f))] for file in files: rf = h5py.File(path + '/' + file, 'r') chanIDs = rf['DYNAMIC DATA'] csv_file_name = getcwd() + '/json_data/' + \ file.split('/')[-1].split('.')[0] + '.json' with open(csv_file_name, 'w') as wf: channel_vals = {} for key in list(chanIDs.keys()): channel_vals[key] = chanIDs[key]['MEASURED'][()] for i in range(len(channel_vals[list(chanIDs.keys())[0]])): row = '{' for key in list(chanIDs.keys()): row += '"' + key + '": ' + str(channel_vals[key][i]) + ', ' row = row[:-2] + '}\n' wf.write(row) wf.close() rf.close() if __name__ == '__main__': hdf_to_json()
33.416667
79
0.482294
242
2,005
3.838843
0.227273
0.094726
0.096878
0.051668
0.863294
0.863294
0.820237
0.744887
0.691066
0.691066
0
0.015244
0.345636
2,005
59
80
33.983051
0.692835
0
0
0.673469
0
0
0.097756
0.045885
0
0
0
0
0
1
0.040816
false
0
0.061224
0
0.102041
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
95dbecc3ebac77df1f87fff599fc596d9c9bbcd2
148
py
Python
tasks/views.py
hishamkaram/minikube-tutorial
671ba50ad2f0e3f9f769e2c57076a5e102de9ad9
[ "MIT" ]
1
2021-09-04T20:15:20.000Z
2021-09-04T20:15:20.000Z
tasks/views.py
hishamkaram/minikube-tutorial
671ba50ad2f0e3f9f769e2c57076a5e102de9ad9
[ "MIT" ]
null
null
null
tasks/views.py
hishamkaram/minikube-tutorial
671ba50ad2f0e3f9f769e2c57076a5e102de9ad9
[ "MIT" ]
null
null
null
from django.http.response import HttpResponse # Create your views here. def index(request): return HttpResponse(b'Hello World!', status=200)
18.5
52
0.756757
20
148
5.6
0.95
0
0
0
0
0
0
0
0
0
0
0.02381
0.148649
148
7
53
21.142857
0.865079
0.155405
0
0
0
0
0.097561
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
5
2563ff03f6fd18fef850168c7a3b183d114d0fc2
108
py
Python
AI-Algorithm/changeToC.py
LinRS1999/soft-work
4521e26868da304797c0fec534bfcc228ae7f001
[ "MIT" ]
null
null
null
AI-Algorithm/changeToC.py
LinRS1999/soft-work
4521e26868da304797c0fec534bfcc228ae7f001
[ "MIT" ]
null
null
null
AI-Algorithm/changeToC.py
LinRS1999/soft-work
4521e26868da304797c0fec534bfcc228ae7f001
[ "MIT" ]
null
null
null
from setuptools import setup from Cython.Build import cythonize setup(ext_modules=cythonize('bfsHash.pyx'))
27
43
0.833333
15
108
5.933333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.083333
108
4
43
27
0.89899
0
0
0
0
0
0.100917
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c267493f122b609e785c2c304980669249f84906
239
py
Python
neat/commands/command.py
codecat-pl/neat4python
fff0450da647fb317c8ee9c29a773474784b8251
[ "MIT" ]
1
2018-04-02T06:39:43.000Z
2018-04-02T06:39:43.000Z
neat/commands/command.py
codecat-pl/neat4python
fff0450da647fb317c8ee9c29a773474784b8251
[ "MIT" ]
null
null
null
neat/commands/command.py
codecat-pl/neat4python
fff0450da647fb317c8ee9c29a773474784b8251
[ "MIT" ]
null
null
null
class Command: def exec(self, ob): met = getattr(self, "on"+type(ob).__name__) return met(ob) def onNode(self, a): pass def onConnection(self, a): pass def onGenome(self, a): pass
17.071429
51
0.535565
31
239
4
0.548387
0.120968
0.217742
0.193548
0
0
0
0
0
0
0
0
0.343096
239
13
52
18.384615
0.789809
0
0
0.3
0
0
0.008368
0
0
0
0
0
0
1
0.4
false
0.3
0
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
c268d61bfc75ea9c567aacf71e8f8497f6f03bc9
203
py
Python
test/test7.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
test/test7.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
test/test7.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
import numpy as np custom_data = np.genfromtxt("C:\\Users\\Administrator\\Desktop\\MouseWithoutBorders\\FittingDog\\FittingDog\\S_cell NaOH Urea 2.0.txt", delimiter="", skip_header=3) print(custom_data)
50.75
164
0.783251
29
203
5.344828
0.862069
0.129032
0
0
0
0
0
0
0
0
0
0.015789
0.064039
203
4
165
50.75
0.8
0
0
0
0
0.333333
0.509804
0.421569
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
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
1
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
c2788c806e160346af5810febef05eda2c97840c
171
py
Python
templatetags/filters.py
riggedCoinflip/mydjango
9f30effc0dccd95916f59a3b65d7e02bdd2827b5
[ "MIT" ]
null
null
null
templatetags/filters.py
riggedCoinflip/mydjango
9f30effc0dccd95916f59a3b65d7e02bdd2827b5
[ "MIT" ]
1
2021-02-26T02:13:35.000Z
2021-02-26T02:13:35.000Z
templatetags/filters.py
riggedCoinflip/mydjango
9f30effc0dccd95916f59a3b65d7e02bdd2827b5
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def to_percent(obj, significant_digits): return f'{(obj * 100):.{significant_digits}f}'
17.1
50
0.74269
22
171
5.636364
0.727273
0.274194
0
0
0
0
0
0
0
0
0
0.02027
0.134503
171
9
51
19
0.817568
0
0
0
0
0
0.213018
0.16568
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
5
c2f5aa501e8090cf3a894257abe732a0d2ba6ddb
189
py
Python
testapps/PY/test_partial.py
naver/pinpoint-c-agent
5c4f03a242d0ef219d9ca35c2c3241e9396dcb1b
[ "Apache-2.0" ]
178
2018-08-30T06:54:35.000Z
2020-10-08T13:45:21.000Z
testapps/PY/test_partial.py
naver/pinpoint-c-agent
5c4f03a242d0ef219d9ca35c2c3241e9396dcb1b
[ "Apache-2.0" ]
122
2018-08-30T11:57:20.000Z
2020-10-13T21:38:22.000Z
testapps/PY/test_partial.py
naver/pinpoint-c-agent
5c4f03a242d0ef219d9ca35c2c3241e9396dcb1b
[ "Apache-2.0" ]
60
2018-08-30T07:16:56.000Z
2020-09-30T13:49:36.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from pinpointPy.CommonPlugin import PinpointCommonPlugin @PinpointCommonPlugin( __name__+".func1") def func1(a, b="Wool"): return a + b
18.9
56
0.698413
23
189
5.565217
0.826087
0.03125
0
0
0
0
0
0
0
0
0
0.018519
0.142857
189
9
57
21
0.771605
0.222222
0
0
0
0
0.068966
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
6c2113dd69f28ac330feef711b4d253cfee4bddf
74
py
Python
udkanbun/__init__.py
xlr10/UD-Kanbun
23378c4ed924ff4014bfebdc96f765d23a2d4038
[ "MIT" ]
42
2019-09-16T23:20:42.000Z
2022-01-20T11:23:48.000Z
udkanbun/__init__.py
xlr10/UD-Kanbun
23378c4ed924ff4014bfebdc96f765d23a2d4038
[ "MIT" ]
8
2021-09-01T00:33:59.000Z
2022-01-24T09:06:57.000Z
udkanbun/__init__.py
xlr10/UD-Kanbun
23378c4ed924ff4014bfebdc96f765d23a2d4038
[ "MIT" ]
3
2021-01-07T15:16:17.000Z
2022-02-15T18:36:03.000Z
from .udkanbun import UDPipeEntry,UDKanbunEntry,UDKanbun,load,PACKAGE_DIR
37
73
0.878378
9
74
7.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.054054
74
1
74
74
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6c61415dcbe73e3be9790cb6b7251e119fbca4dc
382
py
Python
encoder_ui/celery/discovery/redis_keys.py
hidnoiz/encoder_ui
24497ebc7be9b7b2d2a8320840bd6a37cfc79cf2
[ "MIT" ]
null
null
null
encoder_ui/celery/discovery/redis_keys.py
hidnoiz/encoder_ui
24497ebc7be9b7b2d2a8320840bd6a37cfc79cf2
[ "MIT" ]
null
null
null
encoder_ui/celery/discovery/redis_keys.py
hidnoiz/encoder_ui
24497ebc7be9b7b2d2a8320840bd6a37cfc79cf2
[ "MIT" ]
null
null
null
CONTAINERS_DISCOVERY_LOCK_KEY = 'containers_discovery.lock' CONTAINERS_DISCOVERY_LAST_UPDATE_KEY = 'containers_discovery.last_update' CONTAINERS_DISCOVERY_DATA_KEY = 'containers_discovery.data' RESOURCES_DISCOVERY_LOCK_KEY = 'resources_discovery.lock' RESOURCES_DISCOVERY_LAST_UPDATE_KEY = 'resources_discovery.last_update' RESOURCES_DISCOVERY_DATA_KEY = 'resources_discovery.data'
54.571429
73
0.890052
46
382
6.782609
0.173913
0.365385
0.24359
0.185897
0
0
0
0
0
0
0
0
0.04712
382
7
74
54.571429
0.857143
0
0
0
0
0
0.420366
0.420366
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6c753abc2c73d51a3ae47123f3edd220261f1abb
73
py
Python
sharpy/managers/roles/__init__.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
1
2020-03-05T19:21:56.000Z
2020-03-05T19:21:56.000Z
sharpy/managers/roles/__init__.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
null
null
null
sharpy/managers/roles/__init__.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
null
null
null
from .unit_task import UnitTask from .units_in_role import UnitsInRole
24.333333
39
0.835616
11
73
5.272727
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.136986
73
2
40
36.5
0.920635
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6c7a3bbc29c73086d2359ba678af3fdecc3e97ba
49
py
Python
tests/__init__.py
lennart-damen/api-tutorial
223ea44bc5fc82935329990f70c386c33076e0eb
[ "MIT" ]
1
2022-01-16T21:45:38.000Z
2022-01-16T21:45:38.000Z
tests/__init__.py
lennart-damen/api-tutorial
223ea44bc5fc82935329990f70c386c33076e0eb
[ "MIT" ]
null
null
null
tests/__init__.py
lennart-damen/api-tutorial
223ea44bc5fc82935329990f70c386c33076e0eb
[ "MIT" ]
null
null
null
"""Unit test package for deployment_workshop."""
24.5
48
0.755102
6
49
6
1
0
0
0
0
0
0
0
0
0
0
0
0.102041
49
1
49
49
0.818182
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
6c7ad3c9cf01da95d0bd63989a050b1a380914ab
491
py
Python
registrar/registrar.py
Zijianlalala/classtable-server
8167cdc5e9630ba4244eabda228a7d9c9ac62242
[ "MIT" ]
1
2021-09-06T10:56:28.000Z
2021-09-06T10:56:28.000Z
registrar/registrar.py
Zijianlalala/classtable-server
8167cdc5e9630ba4244eabda228a7d9c9ac62242
[ "MIT" ]
null
null
null
registrar/registrar.py
Zijianlalala/classtable-server
8167cdc5e9630ba4244eabda228a7d9c9ac62242
[ "MIT" ]
null
null
null
from abc import abstractclassmethod class Registrar: @abstractclassmethod def get_state(self): pass @abstractclassmethod def set_state(self, state): pass @abstractclassmethod def get_captcha_base64(self): pass @abstractclassmethod def start_time(self, year, month, day): pass @abstractclassmethod def get_classtable(self, username, password, captcha): pass def test(self): print('Registrar')
18.185185
58
0.653768
49
491
6.428571
0.489796
0.349206
0.330159
0.190476
0
0
0
0
0
0
0
0.005618
0.274949
491
26
59
18.884615
0.879213
0
0
0.526316
0
0
0.01833
0
0
0
0
0
0
1
0.315789
false
0.315789
0.052632
0
0.421053
0.052632
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
6c851fd3c39b54888952b9f720d98bd28d7a992d
33
py
Python
src/launcher.py
saiblo/saiblo-local-judger
a330c16e5349b300249655ae1b68094b4c1828b1
[ "MIT" ]
4
2022-01-16T08:30:23.000Z
2022-01-21T09:04:37.000Z
src/launcher.py
saiblo/saiblo-local-judger
a330c16e5349b300249655ae1b68094b4c1828b1
[ "MIT" ]
null
null
null
src/launcher.py
saiblo/saiblo-local-judger
a330c16e5349b300249655ae1b68094b4c1828b1
[ "MIT" ]
null
null
null
from gui.gui import Main Main()
8.25
24
0.727273
6
33
4
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.181818
33
3
25
11
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
665f515afce3b229cca572777a9ee8b40ac5ca7c
113
py
Python
login.py
cuifan1/test1
25349ca01fc918be896b615aa571783c693f7a50
[ "MIT" ]
1
2019-03-03T02:06:22.000Z
2019-03-03T02:06:22.000Z
login.py
cuifan1/test1
25349ca01fc918be896b615aa571783c693f7a50
[ "MIT" ]
null
null
null
login.py
cuifan1/test1
25349ca01fc918be896b615aa571783c693f7a50
[ "MIT" ]
null
null
null
for j in range(1, 9): for i in range(1,j+1): print("%d * %d = %d" % (i,j,i*j),end="\t") print()
18.833333
50
0.424779
24
113
2
0.458333
0.291667
0.333333
0
0
0
0
0
0
0
0
0.050633
0.300885
113
5
51
22.6
0.556962
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
6676f7044c3725909ffe721eb08510322ad0b3be
23
py
Python
examples/int/ex3.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/int/ex3.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/int/ex3.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
print(int('ffff', 16))
11.5
22
0.608696
4
23
3.5
1
0
0
0
0
0
0
0
0
0
0
0.095238
0.086957
23
1
23
23
0.571429
0
0
0
0
0
0.173913
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
dd462d36b76c17cc94276e85ad5b73bd8020eb9b
91
py
Python
scripts/portal/enterInfo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/enterInfo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/enterInfo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # ID :: [104000000] # Lith Harbor : Lith Harbor sm.warp(104000004, 1)
22.75
27
0.703297
13
91
4.923077
0.846154
0.3125
0
0
0
0
0
0
0
0
0
0.25
0.164835
91
4
28
22.75
0.592105
0.692308
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
06efe42a695b6a24ca2ace7e95a3cc02869b990a
241
py
Python
kon/__init__.py
TIXhjq/CTR_Function
bbb85327151257e40526ebd35e34fe4f1b0d9398
[ "Apache-2.0" ]
12
2020-06-23T16:10:56.000Z
2021-02-20T09:57:08.000Z
kon/__init__.py
TIXhjq/CTR_Function
bbb85327151257e40526ebd35e34fe4f1b0d9398
[ "Apache-2.0" ]
null
null
null
kon/__init__.py
TIXhjq/CTR_Function
bbb85327151257e40526ebd35e34fe4f1b0d9398
[ "Apache-2.0" ]
5
2020-07-10T03:27:41.000Z
2021-02-23T06:21:17.000Z
#!/usr/bin/env python # _*_ coding:utf-8 _*_ '''================================= @Author :tix_hjq @Date :2020/7/21 上午9:00 @File :__init__.py.py @email :hjq1922451756@gmail.com or 1922451756@qq.com ================================='''
30.125
55
0.485477
28
241
3.857143
0.928571
0
0
0
0
0
0
0
0
0
0
0.143519
0.103734
241
8
56
30.125
0.356481
0.962656
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
66092f4aa9d374d4ab43afa221873fa0d3aa0578
32
py
Python
pywebui/builder/templates/cordova/{{ cookiecutter._cordova_dir }}/cordova-plugin-pywebui/p4a/src/main.py
kahowell/pywebui
91c031e784454a83bea6808517e6de4389ca6ffa
[ "MIT" ]
2
2021-03-23T19:47:03.000Z
2021-05-27T09:27:39.000Z
pywebui/builder/templates/cordova/{{ cookiecutter._cordova_dir }}/cordova-plugin-pywebui/p4a/src/main.py
kahowell/pywebui
91c031e784454a83bea6808517e6de4389ca6ffa
[ "MIT" ]
null
null
null
pywebui/builder/templates/cordova/{{ cookiecutter._cordova_dir }}/cordova-plugin-pywebui/p4a/src/main.py
kahowell/pywebui
91c031e784454a83bea6808517e6de4389ca6ffa
[ "MIT" ]
1
2020-02-11T14:36:55.000Z
2020-02-11T14:36:55.000Z
# dummy file, not actually used
16
31
0.75
5
32
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.1875
32
1
32
32
0.923077
0.90625
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
6654ad3102a939891706477f39c3ffc41d3d3c0a
73
py
Python
ppcd/traditions/__init__.py
geoyee/PdRSCD
4a1a7256320f006c15e3e5b5b238fdfba8198853
[ "Apache-2.0" ]
44
2021-04-21T02:41:55.000Z
2022-03-09T03:01:16.000Z
ppcd/traditions/__init__.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
2
2021-09-30T07:52:47.000Z
2022-02-12T09:05:35.000Z
ppcd/traditions/__init__.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
6
2021-07-23T02:18:39.000Z
2022-01-14T01:15:50.000Z
from .cva import CVA from .basics import BaseCompute from .mrf import MRF
24.333333
31
0.808219
12
73
4.916667
0.5
0
0
0
0
0
0
0
0
0
0
0
0.150685
73
3
32
24.333333
0.951613
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b076d09ec22e0d2f4b61ba4bb2c4988af02bde2f
647
py
Python
src/User/InterfaceAdapters/IUserRepository.py
DigiChanges/python-experience
3332d2c4d922a5eb302fa151582a4f63c668a570
[ "MIT" ]
null
null
null
src/User/InterfaceAdapters/IUserRepository.py
DigiChanges/python-experience
3332d2c4d922a5eb302fa151582a4f63c668a570
[ "MIT" ]
null
null
null
src/User/InterfaceAdapters/IUserRepository.py
DigiChanges/python-experience
3332d2c4d922a5eb302fa151582a4f63c668a570
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from src.Shared.InterfaceAdapters.ICriteria import ICriteria from src.Shared.InterfaceAdapters.IPaginator import IPaginator class IUserRepository(ABC): @abstractmethod def save(self, element): pass @abstractmethod def getOne(self, id: str): pass @abstractmethod def list(self, criteria: ICriteria) -> IPaginator: pass @abstractmethod def delete(self, id: str): pass @abstractmethod def getOneByEmail(self, email: str): pass @abstractmethod def getOneByConfirmationToken(self, confirmationToken: str): pass
20.21875
64
0.684699
64
647
6.921875
0.40625
0.230248
0.23702
0.162528
0.13544
0.13544
0
0
0
0
0
0
0.242658
647
31
65
20.870968
0.904082
0
0
0.545455
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.272727
0.136364
0
0.454545
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
b082322ad8782c965a5adc7dd563b8f918b317c9
20
py
Python
lib/assets/hellojaden.py
hongjunGu2019/cdk
d21681015997e855bac35c67a7097fc002fe327e
[ "MIT-0" ]
null
null
null
lib/assets/hellojaden.py
hongjunGu2019/cdk
d21681015997e855bac35c67a7097fc002fe327e
[ "MIT-0" ]
null
null
null
lib/assets/hellojaden.py
hongjunGu2019/cdk
d21681015997e855bac35c67a7097fc002fe327e
[ "MIT-0" ]
null
null
null
print('hello jaden')
20
20
0.75
3
20
5
1
0
0
0
0
0
0
0
0
0
0
0
0.05
20
1
20
20
0.789474
0
0
0
0
0
0.52381
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
b0b141f7ad9a35f367de19bc1724b7a98f132ab1
134
py
Python
src/sort/0791.custom-sort-string/custom-sort-string.py
lyphui/Just-Code
e0c3c3ecb67cb805080ff686e88522b2bffe7741
[ "MIT" ]
782
2019-11-19T08:20:49.000Z
2022-03-25T06:59:09.000Z
src/0791.custom-sort-string/custom-sort-string.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
1
2021-03-04T12:21:01.000Z
2021-03-05T01:23:54.000Z
src/0791.custom-sort-string/custom-sort-string.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
155
2019-11-20T08:20:42.000Z
2022-03-19T07:28:09.000Z
class Solution: def customSortString(self, S: str, T: str) -> str: return ''.join(sorted(list(T), key=lambda x:S.find(x)))
44.666667
63
0.626866
21
134
4
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.186567
134
3
63
44.666667
0.770642
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
b0b80db4ebbd5c5385155c5df1bee7d31dc88175
88
py
Python
mfr/extensions/unoconv/__init__.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
36
2015-08-31T20:24:22.000Z
2021-12-17T17:02:44.000Z
mfr/extensions/unoconv/__init__.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
190
2015-01-02T06:22:01.000Z
2022-01-19T11:27:03.000Z
mfr/extensions/unoconv/__init__.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
47
2015-01-27T15:45:22.000Z
2021-01-27T22:43:03.000Z
from .export import UnoconvExporter # noqa from .render import UnoconvRenderer # noqa
29.333333
43
0.795455
10
88
7
0.7
0
0
0
0
0
0
0
0
0
0
0
0.159091
88
2
44
44
0.945946
0.102273
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b0da13869d1b969a96a8f4bddc3947e36a343255
38
py
Python
iiotsapps/graphql/farms/types/__init__.py
CorpofloTechCommunity/Intelligent-IOT-system-
99af2efe1e8c7623ed76df246e29cfb5654474af
[ "MIT" ]
null
null
null
iiotsapps/graphql/farms/types/__init__.py
CorpofloTechCommunity/Intelligent-IOT-system-
99af2efe1e8c7623ed76df246e29cfb5654474af
[ "MIT" ]
1
2020-08-02T11:58:22.000Z
2020-08-02T11:58:22.000Z
iiotsapps/graphql/farms/types/__init__.py
CorpofloTechCommunity/Intelligent-IOT-system-
99af2efe1e8c7623ed76df246e29cfb5654474af
[ "MIT" ]
2
2020-07-31T11:08:14.000Z
2020-08-19T10:46:43.000Z
from .farm import FarmType as FarmNode
38
38
0.842105
6
38
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
1
38
38
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
b0083e1c9af66e4bf2b2bbb3ca652b8561b0e1a6
176
py
Python
provider/__init__.py
Ritvik29/lts-investment
ce09a9c90b380e1b153a7b35d3b6fa1abd81feb2
[ "MIT" ]
null
null
null
provider/__init__.py
Ritvik29/lts-investment
ce09a9c90b380e1b153a7b35d3b6fa1abd81feb2
[ "MIT" ]
null
null
null
provider/__init__.py
Ritvik29/lts-investment
ce09a9c90b380e1b153a7b35d3b6fa1abd81feb2
[ "MIT" ]
null
null
null
from .stockinfo import get_stock_info_provider, StockInfoProvider from .utils import billion_to_million, to_million, from_any_to_million, first_valid_index, last_valid_index
58.666667
108
0.875
26
176
5.423077
0.653846
0.191489
0
0
0
0
0
0
0
0
0
0
0.085227
176
2
109
88
0.875776
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b00d884fc177544ab8654fda0337bfb3f3d4da54
203
py
Python
users/permissions.py
emushell/django-rest-react-todo-app
c72f87a7d0f8a4e1029558ea6b2e33cbdabf5c82
[ "MIT" ]
null
null
null
users/permissions.py
emushell/django-rest-react-todo-app
c72f87a7d0f8a4e1029558ea6b2e33cbdabf5c82
[ "MIT" ]
8
2021-03-18T23:42:28.000Z
2022-03-12T00:15:38.000Z
users/permissions.py
emushell/django-rest-react-todo-app
c72f87a7d0f8a4e1029558ea6b2e33cbdabf5c82
[ "MIT" ]
null
null
null
from rest_framework import permissions class UserIsOwnerUserProfile(permissions.BasePermission): def has_object_permission(self, request, view, obj): return request.user.id == obj.user.id
25.375
57
0.773399
24
203
6.416667
0.791667
0.077922
0
0
0
0
0
0
0
0
0
0
0.147783
203
7
58
29
0.890173
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
b034816221c11e713d10b1c3d3da7499476248b4
192
py
Python
addons/generic_request/migrations/11.0.1.0.0/post-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/migrations/11.0.1.0.0/post-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/migrations/11.0.1.0.0/post-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
def migrate(cr, installed_version): cr.execute(""" DROP TABLE IF EXISTS request_wizard_assign CASCADE; DELETE FROM ir_model WHERE model = 'request.wizard.assign'; """)
32
67
0.677083
24
192
5.25
0.791667
0.206349
0.301587
0
0
0
0
0
0
0
0
0
0.21875
192
5
68
38.4
0.84
0
0
0
0
0
0.692708
0.234375
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b056e6ab28b8f7a1042649663dd9b9a4ba23021b
149
py
Python
Project 14 -- Deep Cardiac Segmentation/rvseg/models/__init__.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
274
2017-08-08T17:42:31.000Z
2022-03-01T07:37:25.000Z
rvseg_f/models/__init__.py
Einshowstank/cardiac-segmentation-master
b9e152a3b7e70ec20d9722304c2ebec4d401f61a
[ "MIT" ]
17
2017-09-12T19:26:38.000Z
2022-03-18T02:19:20.000Z
rvseg_f/models/__init__.py
Einshowstank/cardiac-segmentation-master
b9e152a3b7e70ec20d9722304c2ebec4d401f61a
[ "MIT" ]
124
2017-08-21T01:56:44.000Z
2022-03-01T07:37:26.000Z
from .convunet import unet from .dilatedunet import dilated_unet from .dilateddensenet import dilated_densenet, dilated_densenet2, dilated_densenet3
37.25
83
0.872483
18
149
7
0.555556
0.126984
0
0
0
0
0
0
0
0
0
0.014815
0.09396
149
3
84
49.666667
0.918519
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c65f93b69f5830d4c55f341766602f0e3591afcd
39
py
Python
labelbox/data/serialization/ndjson/__init__.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
labelbox/data/serialization/ndjson/__init__.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
labelbox/data/serialization/ndjson/__init__.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
from .converter import NDJsonConverter
19.5
38
0.871795
4
39
8.5
1
0
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.971429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c67b0b400517dffaca70b84f223a2e81bb6a9c47
161
py
Python
Chapter 04/pjme_hourly_timeseries.py
bpbpublications/Time-Series-Forecasting-using-Deep-Learning
fd84553d33e912edb4a1400af0f9374e72747457
[ "MIT" ]
7
2021-12-13T20:00:05.000Z
2022-03-11T08:44:43.000Z
Chapter 04/pjme_hourly_timeseries.py
bpbpublications/Time-Series-Forecasting-using-Deep-Learning
fd84553d33e912edb4a1400af0f9374e72747457
[ "MIT" ]
1
2022-02-22T10:39:12.000Z
2022-02-22T10:39:12.000Z
Chapter 04/pjme_hourly_timeseries.py
bpbpublications/Time-Series-Forecasting-using-Deep-Learning
fd84553d33e912edb4a1400af0f9374e72747457
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from ch4.training_datasets import get_pjme_timeseries plt.title('PJME Hourly') plt.plot(get_pjme_timeseries()[:500]) plt.show()
23
53
0.807453
25
161
5
0.68
0.112
0.272
0
0
0
0
0
0
0
0
0.027027
0.080745
161
6
54
26.833333
0.817568
0
0
0
0
0
0.068323
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c68dede56b163af1da020ffd42ca96dc17711057
194
py
Python
docs/webapps/czat/views_z1.py
sokol02/python101
e06ad83f9eee285023b9c8e79ab1c00ad8bd67e5
[ "MIT" ]
null
null
null
docs/webapps/czat/views_z1.py
sokol02/python101
e06ad83f9eee285023b9c8e79ab1c00ad8bd67e5
[ "MIT" ]
null
null
null
docs/webapps/czat/views_z1.py
sokol02/python101
e06ad83f9eee285023b9c8e79ab1c00ad8bd67e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # czatpro/czat/views.py from django.http import HttpResponse def index(request): """Strona główna aplikacji.""" return HttpResponse("Witaj w aplikacji Czat!")
19.4
50
0.685567
24
194
5.541667
0.875
0
0
0
0
0
0
0
0
0
0
0.006173
0.164948
194
9
51
21.555556
0.814815
0.35567
0
0
0
0
0.194915
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
c6a3f715fc2e40ea0c8794264aa86be0e4574902
49
py
Python
tests/unit/filestorage/adapters/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
1
2021-11-15T20:27:59.000Z
2021-11-15T20:27:59.000Z
tests/unit/filestorage/adapters/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
171
2020-07-24T07:30:20.000Z
2022-03-31T14:05:45.000Z
tests/unit/filestorage/adapters/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
null
null
null
"""Unit tests for cutty.filestorage.adapters."""
24.5
48
0.734694
6
49
6
1
0
0
0
0
0
0
0
0
0
0
0
0.081633
49
1
49
49
0.8
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
c6b21b8c00584552a89bc92b92eb9c223d27dbeb
135
py
Python
py/ns_override/override/classes.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
null
null
null
py/ns_override/override/classes.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
2
2018-02-01T19:58:53.000Z
2018-02-23T00:50:18.000Z
py/ns_override/override/classes.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
1
2020-12-16T06:35:51.000Z
2020-12-16T06:35:51.000Z
from ..base import Foo as FooBase class Foo(FooBase): def print_greeting(self): print(self.greeting('foo and improved'))
19.285714
48
0.688889
19
135
4.842105
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.2
135
6
49
22.5
0.851852
0
0
0
0
0
0.119403
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
1
0
5
c6c555da8482d87298bc202e55e575da122e0a45
239
py
Python
garage/baselines/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
3
2019-08-11T22:26:55.000Z
2020-11-28T10:23:50.000Z
garage/baselines/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
null
null
null
garage/baselines/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
2
2019-08-11T22:30:14.000Z
2021-03-25T02:57:50.000Z
from garage.baselines.base import Baseline from garage.baselines.linear_feature_baseline import LinearFeatureBaseline from garage.baselines.zero_baseline import ZeroBaseline __all__ = ["Baseline", "LinearFeatureBaseline", "ZeroBaseline"]
39.833333
74
0.853556
25
239
7.88
0.48
0.152284
0.28934
0
0
0
0
0
0
0
0
0
0.075314
239
5
75
47.8
0.891403
0
0
0
0
0
0.171548
0.087866
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
c6d567d32e3b526efa24ee344888380c5a58effe
58
py
Python
summer-of-code/week-01/calc.py
Soundpowered/toolkitten
442392d7fa3d3ed14fb4fd33978806ce6ea156b9
[ "MIT" ]
1
2018-08-28T17:59:49.000Z
2018-08-28T17:59:49.000Z
summer-of-code/week-01/calc.py
Zanetik/toolkitten
aa95e675d4f22fe5e3712ea5668ac4ed2e54a42a
[ "MIT" ]
null
null
null
summer-of-code/week-01/calc.py
Zanetik/toolkitten
aa95e675d4f22fe5e3712ea5668ac4ed2e54a42a
[ "MIT" ]
null
null
null
# calculator print(1+2) print(3) print(10%2) print(11%2)
8.285714
12
0.672414
12
58
3.25
0.583333
0.307692
0
0
0
0
0
0
0
0
0
0.176471
0.12069
58
7
13
8.285714
0.588235
0.172414
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
c6e9094470715f65793bacfcd134528a20bf63bc
138
py
Python
bench/stdlib/json.py
erezsh/python-parsing-benchmarks
7c39235f2bcc019be8e91a939913f121c81c58d5
[ "MIT" ]
16
2020-05-02T11:46:25.000Z
2022-03-20T15:39:14.000Z
bench/stdlib/json.py
erezsh/python-parsing-benchmarks
7c39235f2bcc019be8e91a939913f121c81c58d5
[ "MIT" ]
8
2020-05-24T02:07:46.000Z
2022-01-31T16:56:28.000Z
bench/stdlib/json.py
erezsh/python-parsing-benchmarks
7c39235f2bcc019be8e91a939913f121c81c58d5
[ "MIT" ]
5
2020-10-18T17:21:04.000Z
2022-03-20T15:39:22.000Z
import json def invalid_constant(s): raise ValueError(s) def parse(s): return json.loads(s, parse_constant=invalid_constant)
12.545455
57
0.731884
20
138
4.9
0.55
0.306122
0
0
0
0
0
0
0
0
0
0
0.173913
138
10
58
13.8
0.859649
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.2
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
c6ecb384bd94ddf4daa0b3b8ee418af22d8f3b50
259
py
Python
src/pmc_tables/fixers/_errors.py
pmc-tables/pmc-tables
3f4adbfff353b83a5dc660010f058192948a8833
[ "MIT" ]
1
2020-07-29T10:07:33.000Z
2020-07-29T10:07:33.000Z
src/pmc_tables/fixers/_errors.py
pmc-tables/pmc_tables
3f4adbfff353b83a5dc660010f058192948a8833
[ "MIT" ]
null
null
null
src/pmc_tables/fixers/_errors.py
pmc-tables/pmc_tables
3f4adbfff353b83a5dc660010f058192948a8833
[ "MIT" ]
null
null
null
class _FixDoesNotApplyError(Exception): """Error raised when a given fixer function does not apply to a particular case.""" pass class _CouldNotApplyFixError(Exception): """Error raised when we could not apply a fix for some reason.""" pass
28.777778
87
0.72973
34
259
5.5
0.705882
0.149733
0.213904
0.256684
0
0
0
0
0
0
0
0
0.19305
259
8
88
32.375
0.894737
0.528958
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
05bcf0ada928259381301c28c6385c47f00f4715
3,609
py
Python
mozinor/config/classifiers.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
3
2017-08-17T21:32:05.000Z
2018-07-30T11:30:09.000Z
mozinor/config/classifiers.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
null
null
null
mozinor/config/classifiers.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on July 2017 @author: JulienWuthrich """ from mozinor.config.params import * from mozinor.config.explain import * Fast_Classifiers = { "ExtraTreesClassifier": { "import": "sklearn.ensemble", 'n_estimators': n_estimators, "criterion": criterion, "max_features": max_features, "bootstrap": dual, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": ExtraTreesClassifier }, 'XGBClassifier': { "import": "xgboost", 'n_estimators': n_estimators, 'max_depth': max_depth, 'learning_rate': learning_rate, 'subsample': max_features, 'min_child_weight': min_samples_leaf, "show": XGBClassifier }, "KNeighborsClassifier": { "import": "sklearn.neighbors", "weights": weights, "p": [1, 2], "n_neighbors": [50], "show": KNeighborsClassifier }, "DecisionTreeClassifier": { "import": "sklearn.tree", "criterion": criterion, 'max_depth': max_depth, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": DecisionTreeClassifier } } Classifiers = { # Tree "DecisionTreeClassifier": { "import": "sklearn.tree", "criterion": criterion, 'max_depth': max_depth, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": DecisionTreeClassifier }, # Ensemble "ExtraTreesClassifier": { "import": "sklearn.ensemble", 'n_estimators': n_estimators, "criterion": criterion, "max_features": max_features, "bootstrap": dual, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": ExtraTreesClassifier }, "RandomForestClassifier": { "import": "sklearn.ensemble", 'n_estimators': n_estimators, "criterion": criterion, "max_features": max_features, "bootstrap": dual, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": RandomForestClassifier }, "GradientBoostingClassifier": { "import": "sklearn.ensemble", 'n_estimators': n_estimators, "learning_rate": learning_rate, "max_features": max_features, 'max_depth': max_depth, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf, "show": GradientBoostingClassifier }, # XGBoost 'XGBClassifier': { "import": "xgboost", 'n_estimators': n_estimators, 'max_depth': max_depth, 'learning_rate': learning_rate, 'subsample': max_features, 'min_child_weight': min_samples_leaf, "show": XGBClassifier }, # Linear models "LogisticRegression": { "import": "sklearn.linear_model", "penalty": penalty, "C": penalty_factor, "dual": [False], "show": LogisticRegression }, # Naive_bayes "BernoulliNB": { "import": "sklearn.naive_bayes", "alpha": penalty_factor, "fit_prior": dual, "show": BernoulliNB }, "GaussianNB": { "import": "sklearn.naive_bayes", "show": GaussianNB }, # Neighbors "KNeighborsClassifier": { "import": "sklearn.neighbors", "weights": weights, "p": [1, 2], "n_neighbors": [50], "show": KNeighborsClassifier } }
28.195313
47
0.592962
316
3,609
6.443038
0.208861
0.127701
0.096267
0.10609
0.729371
0.729371
0.729371
0.708251
0.708251
0.708251
0
0.004994
0.278748
3,609
127
48
28.417323
0.77718
0.034913
0
0.675676
0
0
0.331219
0.026521
0
0
0
0
0
1
0
false
0
0.135135
0
0.135135
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
05cc871fc46a64114c6d70566a91a376779f4fc0
171
py
Python
tests/encoding/test_lib.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
2
2016-02-18T12:46:26.000Z
2022-03-13T03:05:05.000Z
tests/encoding/test_lib.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
null
null
null
tests/encoding/test_lib.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
5
2016-12-18T08:05:39.000Z
2019-11-19T21:18:00.000Z
# -*- coding: utf-8 -*- """Shared test cases.""" import unittest class DecoderTestCase(unittest.TestCase): """The unit test case for decoder object implementions."""
19
60
0.695906
20
171
5.95
0.9
0
0
0
0
0
0
0
0
0
0
0.006849
0.146199
171
8
61
21.375
0.808219
0.549708
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
05f01b133da21c49d793000f559256fc8db0e291
101
py
Python
pyfibre/tests/utils.py
franklongford/ImageCol
96f0db337a203c5634bebcbae10a6d85789dff2c
[ "Apache-2.0" ]
2
2019-03-01T14:28:18.000Z
2021-07-26T05:53:01.000Z
pyfibre/tests/utils.py
franklongford/ImageCol
96f0db337a203c5634bebcbae10a6d85789dff2c
[ "Apache-2.0" ]
25
2019-12-20T12:00:01.000Z
2021-07-24T11:27:16.000Z
pyfibre/tests/utils.py
franklongford/PyFibre
255a3c659931f1be0356eb49b878e3b741201955
[ "Apache-2.0" ]
null
null
null
import os def delete_log(): if os.path.exists('pyfibre.log'): os.remove('pyfibre.log')
14.428571
37
0.623762
15
101
4.133333
0.666667
0.322581
0
0
0
0
0
0
0
0
0
0
0.207921
101
6
38
16.833333
0.775
0
0
0
0
0
0.217822
0
0
0
0
0
0
1
0.25
true
0
0.25
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
af81965c63cc1f3836dc7142ab2baf3406cc5020
126
py
Python
cflare/lib/__init__.py
trisongz/cflare
3a7467172e146241f936ee32893a6a129fd5dde2
[ "MIT" ]
1
2021-07-08T06:01:42.000Z
2021-07-08T06:01:42.000Z
cflare/lib/__init__.py
trisongz/cflare
3a7467172e146241f936ee32893a6a129fd5dde2
[ "MIT" ]
null
null
null
cflare/lib/__init__.py
trisongz/cflare
3a7467172e146241f936ee32893a6a129fd5dde2
[ "MIT" ]
null
null
null
from . import models from .models import MXRecords, GoogleMXRecords, CFlareRecord from .models import CFlareAuth, CFlareAPI
21
60
0.81746
14
126
7.357143
0.571429
0.194175
0.31068
0
0
0
0
0
0
0
0
0
0.134921
126
5
61
25.2
0.944954
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
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
1
0
1
0
0
0
0
5
af87e6658a95392a1d6e7a002009659ada7cbda3
119
py
Python
xarray_quantity/__init__.py
KaoruNishikawa/xarray-quantity
e93fcdc228645f48770bb285c0c33ddcfb97e938
[ "MIT" ]
null
null
null
xarray_quantity/__init__.py
KaoruNishikawa/xarray-quantity
e93fcdc228645f48770bb285c0c33ddcfb97e938
[ "MIT" ]
8
2021-07-19T05:19:40.000Z
2021-07-19T14:49:39.000Z
xarray_quantity/__init__.py
KaoruNishikawa/xarray-quantity
e93fcdc228645f48770bb285c0c33ddcfb97e938
[ "MIT" ]
null
null
null
# flake8: noqa __version__ = "0.1.4" from .quantity_array import QuantityArray from .quantity_set import QuantitySet
17
41
0.789916
16
119
5.5
0.8125
0.272727
0
0
0
0
0
0
0
0
0
0.038835
0.134454
119
6
42
19.833333
0.815534
0.10084
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
afa176fec31600b1e5900f3e7176a52ceac6d88e
150
py
Python
jsuarez/extra/embyr_deprecated/embyr/tests/loaders/test_objloader.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
1,450
2019-03-04T15:47:38.000Z
2022-03-30T03:33:35.000Z
jsuarez/extra/embyr_deprecated/embyr/tests/loaders/test_objloader.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
34
2019-03-05T09:50:38.000Z
2021-08-31T15:20:27.000Z
jsuarez/extra/embyr_deprecated/embyr/tests/loaders/test_objloader.py
LaudateCorpus1/neural-mmo
a9a7c34a1fb24fbf252e2958bdb869c213e580a3
[ "MIT" ]
164
2019-03-04T16:09:19.000Z
2022-02-26T15:43:40.000Z
import unittest from kivy3.loaders import OBJLoader class OBJLoaderTest(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
16.666667
39
0.753333
17
150
6.176471
0.764706
0
0
0
0
0
0
0
0
0
0
0.007937
0.16
150
8
40
18.75
0.825397
0
0
0
0
0
0.053333
0
0
0
0
0
0
1
0
true
0.166667
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
afabb2886495bdd915897ad781e711ac72116a7d
131
py
Python
chat_users/admin.py
ravikiranb36/chat-app
c75558c6773af1d0e118dd8097d21f97404d8c9b
[ "MIT" ]
null
null
null
chat_users/admin.py
ravikiranb36/chat-app
c75558c6773af1d0e118dd8097d21f97404d8c9b
[ "MIT" ]
null
null
null
chat_users/admin.py
ravikiranb36/chat-app
c75558c6773af1d0e118dd8097d21f97404d8c9b
[ "MIT" ]
null
null
null
from django.contrib import admin from chat_users.models import ChatUser # Register your models here. admin.site.register(ChatUser)
26.2
38
0.832061
19
131
5.684211
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.10687
131
5
39
26.2
0.923077
0.198473
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
afac283c2bb8d7cf5858d60a3c43366a2118340f
120
py
Python
Chapter 8/08/PaxHeader/recipe64_playback.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/recipe64_playback.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/recipe64_playback.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
15 uid=2057284 20 ctime=1296423455 20 atime=1296425170 24 SCHILY.dev=234881026 23 SCHILY.ino=30630412 18 SCHILY.nlink=1
17.142857
23
0.825
21
120
4.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.527778
0.1
120
6
24
20
0.388889
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
bb91c250b94937fe74bb77fc39f0971f08b35cf7
178
py
Python
compiled/construct/bits_signed_b64_le.py
dgelessus/ci_targets
bb1a0d76b7673920c832e5332a7b257614fa0e1b
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/bits_signed_b64_le.py
dgelessus/ci_targets
bb1a0d76b7673920c832e5332a7b257614fa0e1b
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/bits_signed_b64_le.py
dgelessus/ci_targets
bb1a0d76b7673920c832e5332a7b257614fa0e1b
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * bits_signed_b64_le = Struct( 'a_num' / ???, 'a_bit' / ???, 'b_num' / ???, 'b_bit' / ???, ) _schema = bits_signed_b64_le
14.833333
28
0.617978
25
178
3.96
0.56
0.262626
0.262626
0.30303
0
0
0
0
0
0
0
0.027586
0.185393
178
11
29
16.181818
0.655172
0
0
0
0
0
0.11236
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
bba33fd376397f0449c9a0f8a47f9cb733647eb2
115
py
Python
src/main/python/test/__init__.py
vasnake/spark.ml.SpatialJoinTransformer
d48d1db3e641e86c3c7dcc0841321b2c7726fed7
[ "Apache-2.0" ]
2
2019-04-04T12:22:57.000Z
2020-09-11T15:29:25.000Z
src/main/python/test/__init__.py
vasnake/spark.ml.SpatialJoinTransformer
d48d1db3e641e86c3c7dcc0841321b2c7726fed7
[ "Apache-2.0" ]
null
null
null
src/main/python/test/__init__.py
vasnake/spark.ml.SpatialJoinTransformer
d48d1db3e641e86c3c7dcc0841321b2c7726fed7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pandas.util.testing import assert_frame_equal from .spark_fixture import local_spark
23
50
0.773913
17
115
5
0.823529
0
0
0
0
0
0
0
0
0
0
0.009901
0.121739
115
4
51
28.75
0.831683
0.182609
0
0
0
0
0
0
0
0
0
0
0.5
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
1
0
0
0
0
5
bbb00147e71e8b21f207f571bb8766111ae795cd
113
py
Python
distiller/data/models/__init__.py
18F/FAC-Distiller-
dd0bba9ddbead28d6bcf3487f5a090b10232565a
[ "CC0-1.0" ]
2
2020-08-07T00:22:10.000Z
2020-08-07T00:22:16.000Z
distiller/data/models/__init__.py
18F/FAC-Distiller-
dd0bba9ddbead28d6bcf3487f5a090b10232565a
[ "CC0-1.0" ]
95
2020-01-14T20:31:59.000Z
2021-06-10T18:23:13.000Z
distiller/data/models/__init__.py
isabella232/FAC-Distiller
fe38e8fdf6589a20dbd80001dc9ca2bdf13305f5
[ "CC0-1.0" ]
2
2020-09-25T07:05:06.000Z
2021-01-12T09:19:38.000Z
from .assistance_listings import * from .meta import * from .pdf_extract import * from .single_audit_db import *
22.6
34
0.787611
16
113
5.3125
0.625
0.352941
0
0
0
0
0
0
0
0
0
0
0.141593
113
4
35
28.25
0.876289
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
bbc08f7bbb62e408d269afd1984a112f2184cd00
193
py
Python
feed_list.py
2502302255/al789
20828306da7a301f4b287ec9c72eb2eae9273188
[ "MIT" ]
28
2017-10-26T12:01:35.000Z
2021-01-01T09:32:46.000Z
feed_list.py
2502302255/al789
20828306da7a301f4b287ec9c72eb2eae9273188
[ "MIT" ]
1
2018-02-04T03:33:48.000Z
2018-05-08T22:30:01.000Z
feed_list.py
2502302255/al789
20828306da7a301f4b287ec9c72eb2eae9273188
[ "MIT" ]
1
2018-12-02T07:47:34.000Z
2018-12-02T07:47:34.000Z
from main.save_and_get import Abrufen import config example1 = Abrufen(config.bucket_name, config.subdir4rss, 'example1') example2 = Abrufen(config.bucket_name, config.subdir4rss, 'example2')
32.166667
69
0.813472
25
193
6.12
0.52
0.169935
0.248366
0.300654
0.509804
0.509804
0
0
0
0
0
0.034091
0.088083
193
5
70
38.6
0.835227
0
0
0
0
0
0.082902
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
a5295ebe7884802453c5f899cd7fdcce0dca5af7
23
py
Python
spikeforest2/experimental/__init__.py
michaeljohnclancy/spikeforest2
93bdde2c570aef9426b3d7bceb69f3605c9f005a
[ "Apache-2.0" ]
26
2020-02-03T02:12:20.000Z
2022-03-25T09:14:32.000Z
spikeforest2/experimental/__init__.py
michaeljohnclancy/spikeforest2
93bdde2c570aef9426b3d7bceb69f3605c9f005a
[ "Apache-2.0" ]
27
2020-01-10T12:35:55.000Z
2021-08-01T23:13:52.000Z
spikeforest2/experimental/__init__.py
michaeljohnclancy/spikeforest2
93bdde2c570aef9426b3d7bceb69f3605c9f005a
[ "Apache-2.0" ]
11
2019-02-15T15:21:47.000Z
2021-09-23T01:07:24.000Z
from ._sort import sort
23
23
0.826087
4
23
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a5316ec533bc3416db4786b304c716bcd711155b
31
py
Python
server/server/__init__.py
JS1240/frameworks_and_languages_module
1b2a0090386ae2c02ddedfdcaa4ee7c630253f9d
[ "MIT" ]
null
null
null
server/server/__init__.py
JS1240/frameworks_and_languages_module
1b2a0090386ae2c02ddedfdcaa4ee7c630253f9d
[ "MIT" ]
null
null
null
server/server/__init__.py
JS1240/frameworks_and_languages_module
1b2a0090386ae2c02ddedfdcaa4ee7c630253f9d
[ "MIT" ]
null
null
null
#Defines directory as a package
31
31
0.83871
5
31
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.962963
0.967742
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
a55c8ca321095bb93d69f939b830a6d088f99574
43
py
Python
homeassistant/components/kef/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/kef/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/kef/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The KEF Wireless Speakers component."""
21.5
42
0.72093
5
43
6.2
1
0
0
0
0
0
0
0
0
0
0
0
0.116279
43
1
43
43
0.815789
0.837209
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
a5a2f675ddd9e0bc9af48c719c7f6ad8a7641c11
81
py
Python
pypibatch/__init__.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
pypibatch/__init__.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
pypibatch/__init__.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
from .main import NoBatchesFound, PIBatch, PIBatchError, PISubBatch, PIUnitBatch
81
81
0.839506
8
81
8.5
1
0
0
0
0
0
0
0
0
0
0
0
0.098765
81
1
81
81
0.931507
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a5b6448c3f5c4b03052994667bca97d6daaed352
2,803
py
Python
src/models/decoders.py
yizhe-ang/vi-lab
65a46e41845982def17e553a46be849d948f9f45
[ "MIT" ]
1
2022-02-19T17:03:18.000Z
2022-02-19T17:03:18.000Z
src/models/decoders.py
lemonwaffle/vi-lab
65a46e41845982def17e553a46be849d948f9f45
[ "MIT" ]
null
null
null
src/models/decoders.py
lemonwaffle/vi-lab
65a46e41845982def17e553a46be849d948f9f45
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import Bernoulli from src.models.nns import Decoder class ConvDecoder(nn.Module): def __init__(self, z_dim): super().__init__() self.z_dim = z_dim self.decoder = Decoder( 128, z_dim, 28, 28, 1 ) def decode(self, z: torch.tensor) -> torch.tensor: """Decode latent points into data points Parameters ---------- z : torch.tensor [B, Z] Returns ------- torch.tensor [B, D] """ # Output is Bernoulli loc_img = torch.sigmoid(self.decoder(z)) return loc_img def forward(self, x: torch.tensor, z: torch.tensor) -> torch.tensor: """log p(x|z), reconstruction term Parameters ---------- x : torch.tensor [B, C, H, W], Data points z : torch.tensor [B, Z], Latent points Returns ------- torch.tensor [B,], log p(x|z) """ x = x.reshape(-1, 784) loc_img = self.decode(z) # FIXME Use F.binary_cross_entropy instead? it's the same dist = Bernoulli(probs=loc_img) log_px_z = dist.log_prob(x).sum(-1) # log_px_z = -F.binary_cross_entropy(loc_img, x, reduction="none").sum(-1) return log_px_z class MNISTDecoder(nn.Module): def __init__(self, z_dim, hidden_dim=400): super().__init__() self.z_dim = z_dim self.fc1 = nn.Linear(z_dim, hidden_dim) self.fc2 = nn.Linear(hidden_dim, 784) def decode(self, z: torch.tensor) -> torch.tensor: """Decode latent points into data points Parameters ---------- z : torch.tensor [B, Z] Returns ------- torch.tensor [B, D] """ hidden = F.relu(self.fc1(z)) # Output is Bernoulli loc_img = torch.sigmoid(self.fc2(hidden)) return loc_img def forward(self, x: torch.tensor, z: torch.tensor) -> torch.tensor: """log p(x|z), reconstruction term Parameters ---------- x : torch.tensor [B, C, H, W], Data points z : torch.tensor [B, Z], Latent points Returns ------- torch.tensor [B,], log p(x|z) """ x = x.reshape(-1, 784) loc_img = self.decode(z) # FIXME Use F.binary_cross_entropy instead? it's the same dist = Bernoulli(probs=loc_img) log_px_z = dist.log_prob(x).sum(-1) # log_px_z = -F.binary_cross_entropy(loc_img, x, reduction="none").sum(-1) return log_px_z
22.97541
82
0.514092
355
2,803
3.892958
0.214085
0.15919
0.086831
0.034732
0.798842
0.798842
0.798842
0.765557
0.672938
0.672938
0
0.016593
0.354977
2,803
121
83
23.165289
0.747788
0.338923
0
0.536585
0
0
0
0
0
0
0
0.016529
0
1
0.146341
false
0
0.121951
0
0.414634
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
5
a5b8ebedf11b42bf617b188fb9fd33896f6f6e21
7,398
py
Python
2015/01/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
5
2018-12-11T17:46:54.000Z
2021-12-02T10:11:53.000Z
2015/01/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
null
null
null
2015/01/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
null
null
null
input = "()()(()()()(()()((()((()))((()((((()()((((()))()((((())(((((((()(((((((((()(((())(()()(()((()()(()(())(()((((()((()()()((((())((((((()(()(((()())(()((((()))())(())(()(()()))))))))((((((((((((()())()())())(())))(((()()()((((()(((()(()(()()(()(()()(()(((((((())(())(())())))((()())()((((()()((()))(((()()()())))(())))((((())(((()())(())(()))(()((((()())))())((()(())(((()((((()((()(())())))((()))()()(()(()))))((((((((()())((((()()((((()(()())(((((()(()())()))())(((()))()(()(()(()((((()(())(()))(((((()()(()()()(()(((())())(((()()(()()))(((()()(((())())(()(())())()()(())()()()((()(((()(())((()()((())()))((()()))((()()())((((()(()()(()(((()))()(()))))((()(((()()()))(()(((())()(()((()())(()(()()(()())(())()(((()(()())()((((()((()))))())()))((()()()()(())()())()()()((((()))))(()(((()()(((((((())()))()((((()((())()(()())(())()))(()(()())(((((((())))(((()))())))))()))())((())(()()((())()())()))))()((()()())(())((())((((()())())()()()(((()))())))()()))())(()()()(()((((((()()))())()))()(((()(((())((((()()()(()))())()()))))())()))())((())()())(((((())())((())())))(((())(((())(((((()(((((())(()(()())())(()(())(()))(()((((()))())()))))())))((()(()))))())))(((((())()))())()))))()))))(((()))()))))((()))((()((()(()(())()())))(()()()(())()))()((((())))))))(())(()((()()))(()))(()))(()((()))))))()()((((()()))()())()))))))()()()))(()((())(()))((()()()())()(((()((((())())))()((((()(()))))))())))()()())()))(()))))(()())()))))))((())))))))())()))()((())())))(()((()))()))(())))))(()))()())()()))((()(()))()()()()))))())()()))())(())()()))()))((()))))()()(()())))))()()()))((((()))()))))(()(())))(()())))((())())(()))()))))()())))()())()())))))))))()()))))())))((())((()))))())))(((()())))))))(()))()()))(()))()))))()())))))())((((()())))))))())))()()))))))))()))()))))()))))))(())))))))))())))))))))))))))())())((())))))))))()))((())))()))))))))())()(()))))))())))))()()()())()(()()()(()())(()))()()()(()())))())())))()))))())))))))()()()()())(())())()())()))))(()()()()()))))()))())())))((()())()())))()))()))))(()())))()))))))))(((()))()()))))))))))))))))))))(()))(()((()))())))())(()))(()(()(())))))()(()))()))()()))))))))))))()((()())(())())()(())))))())()())((()()))))(()()))))())()(())()))))))))))))))))))))()))(()(()())))))))()()((()))()))))))((())))()))))))))((()))())()()))())()()))((()))())))))))))))(()())()))(())((()(()()))(()())(())))()())(()(())()()))))()))()(()))))))(()))))))))))(()))())))))))))())))))())))(())))))()))))(())())))))))))()(()))))()())))())(()))()())))))))))))))())()()))))()))))))())))))()))))(())(()()()()((())()))())(()))((())()))())())(())(()()))))()))(())()()((())(())))(())))()))())))))))))()(((((())())))(())()))))(())))((()))()(((((((()))))()()))(())))))()(()))))(()()))()))())))))))(()())()))))))))())))(()))())()))(())()((())())()())())(()(()))))()))))))((()())(())()()(()())))()()))(())(())(()))())))()))(()))()()))((((()))))()))((()()()))))()))()))())))(()))()))))(())))()))())()(()))()())))())))))))())))())))()()))))))(()))())())))()))()()())())))))))))))))())))()))(()()))))())))())()(())))())))))))))))))))))()()())())))))()()()((()(()))()()(())()())()))()))))()()()))))))((()))))))))()(()(()((((((()()((()())))))))))))()))())))))((())())(()))())))())))))())()()())(())))())))()())())(())))))))()()(())))()))())))())())())()))))))))()))(()()()())())())))(())())))))))()()())()))))())))())()(())())))))))()())()))(()()(())())))()(()((()()((()()(((((())(()())()))(())()))(())))(())))))))()))()))((()))()))()))))))))()))))))))((()()())(()))(((()))(())))()))((())(((())))()())))())))))((())))))(())())((((((())())()(()))()(()((()())))((())()(()(()))))(())(()()())(())))())((()(((())())))(((()())())))())()(())())((((()()))))())((()))()()()()(())(((((((()()()((()))())(()())))(())())((((()()(()))))()((())))((())()))()(((()))())))()))((()(()))(())(()((((())((((()()(()()))(((())(()))))((((()(()))(())))))((()))(()))((()(((()(()))(()(()((()(())(()(()(()(()()((()))())(((())(()(()))))(()))()()))(())))(())()(((())(()))()((((()()))))())(()))))((())()((((()(((()))())())(((()))()())((())(())())(())()(())()(()()((((((()()))))()()(((()()))))()())()(((()(()))(()(()())(()(()))))(((((()(((())())))))(((((()((()()((())())((((((()(())(()()((()()()()()()()(()()))()(((()))()))(((((((())(((()((()())()((((())(((()(())))()((()(()()()((())((()())()))()))())))())((((((()))(()(()()()))(()((()(()(()))()((()(((()()()((())(((((())()(()))())())((()(())))(()(()())(())((())())())(((()()()(())))))())(()))))))()))))))())((()()()))((()((((((()))(((()((((()()()(((()))())()(()()(((()((()()()()())()()))()()()(()(())((()))))(()))())))))))()(()()(((((())()(()(((((()((()(()()())(()((((((((()((((((())()((((()()()((()((()((((((()))((())))))))())()))((()(()))()(()()(()((())((()()((((((((((((()())(()()()))((((()((((((())(()))())(()()((()()))()(((((((()((()()((((((()(((())))((())))((((((((()()(((((((())(((((()())(((())((())()((((()(((((((()(()(((()((((((()(((()(((((((((((()()((()()(()))((()()(((()(((())))((((())()(()(((())()(()(((())(((((((((((()))())))((((((())((()()((((()())())((((()()))((())(((((()(()()(()()()((())(()((()()((((()(((((()((()(()((((()())((((((()(((((()()(()(()((((())))(())(())(())((((()(()()((((()((((()()((()((((((())))(((((()))))()))(()((((((((()(((())())(((())))(()(()((())(((()((()()(((((()((()()(((())()(()))(((((((())(()(((((()))((()((()((()))(())())((((()((((())()(()))(((()(((((((((((((((())(((((((((()))(((()(()()()()((((((()((())()((((((((()(())(((((((((((()(()((())()((()()(()(()()((((()()((())(()((()()(()()((((()(((((((())))((((())(())()(((()()((()()((((()((()(((()((())(((()()()((((()((((()()(()(()((((((((())(()(((((())(()())(((((((()())()(()((((()((())(()()())((((()()(((()((((())(())(()()(((((((((()()))()(((())(()(()((((((())(()()())(()))()()(((()(((()((())(()(((((((()(()(()((()(((((()(()((()(()((((((()((((()()((((()(((()((())(()(()((()()((((()()(())()(())(((())(()((((((((()())(((((((((()(())()((((())))()))()()(((((()()((((((())(()()(((()(()(((((((()(()(((((((())(())((((()((()(())))((((()()())(()))((()())((((()(((((()(()(())(()(()()())(((((()(((((()((((()()((((((((()()))(()((((((())((((())()(()(((()()()(((()(()(())(())(((((()(())())((((())(())(()(((()(((((())((((())())((()(((((((()(((())(()(()))(((((((((()((()((()()(()((((())(((()((())((((())(()(((()(((()(()((((()(((())(()(((()(()()(()(()((()()(()())(())())((()(()(((()(((()(((()()(((((((((()(((((((((()()(((()(((()())((((()(()(((()()()((())((((((((((())(()(((()((((()())((((()((()))(((()()()(((((()(((((((())((()())(()((((())((((((((())(()((()((((((((((()()((()((()()))(((()())()())()(((()())()()(()(()(((((((())()))(())()))())()()((())()((()((((()((()((())(((((()((((((()(())))(()))())(((()))((()()(()(((()))((((())()(((()))))()(()(())()(((((())(()(()(())(())()((()()()((((()(())((()())(()(()))(()(()(()()(())()()(()((())()((()))))()))((()(()()()()((()())(()))())()(()(((((((((())())((()((()((((((())()((((())(((())((()(()()()((())(()((())(((()((((()()((()(()(((((())()))()((((((()))((())(((()()))(((())(())()))(((((((())(())())()(())(((((()))()((()))()(()()((()()()()()())(((((((" def resulting(instructions): ups = instructions.count('(') downs = instructions.count(')') return ups - downs print('resulting floor:') print(resulting(input)) instrlen = len(input) for i in range(2,instrlen): result = resulting(input[0:i]) if result == -1: print('you reach the basement after {theresult} iterations.'.format(theresult = i)) break
435.176471
7,010
0.035009
48
7,398
5.395833
0.625
0.131274
0
0
0
0
0
0
0
0
0
0.00041
0.010949
7,398
17
7,011
435.176471
0.034987
0
0
0
0
0
0.955535
0.946074
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a5bedb6fcdeb4f0d64b3b3b902e525435c316cdf
205
py
Python
friendships/listeners.py
BattleWoLFz99/Twitchain
6f12aa932488063619482f0ffc1658064151e091
[ "MIT" ]
null
null
null
friendships/listeners.py
BattleWoLFz99/Twitchain
6f12aa932488063619482f0ffc1658064151e091
[ "MIT" ]
1
2021-05-27T11:03:53.000Z
2021-05-27T11:03:53.000Z
friendships/listeners.py
BattleWoLFz99/Twitchain
6f12aa932488063619482f0ffc1658064151e091
[ "MIT" ]
null
null
null
def friendship_changed(sender, instance, **kwargs): # import 写在函数里面避免循环依赖 from friendships.services import FriendshipService FriendshipService.invalidate_following_cache(instance.from_user_id)
41
71
0.819512
21
205
7.761905
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.117073
205
4
72
51.25
0.900552
0.092683
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
3c6724df21f56da70a80a19ad3b947c3b2635141
36
py
Python
tests/__init__.py
jmosbacher/rframe
59aa9512ef7e6a8a9bbff61cabdb1fb2d475c7f1
[ "MIT" ]
null
null
null
tests/__init__.py
jmosbacher/rframe
59aa9512ef7e6a8a9bbff61cabdb1fb2d475c7f1
[ "MIT" ]
8
2022-02-24T14:06:49.000Z
2022-03-31T14:48:11.000Z
tests/__init__.py
jmosbacher/rframe
59aa9512ef7e6a8a9bbff61cabdb1fb2d475c7f1
[ "MIT" ]
null
null
null
"""Unit test package for rframe."""
18
35
0.666667
5
36
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.138889
36
1
36
36
0.774194
0.805556
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3c6dc600f652055ff4686f814a56191edc1724f7
1,369
py
Python
network/Reptile/Basic01.py
walkingtyphoon/Python-workspace
e872bce82b2bac3dd5d809f8576345ccc1c6afb7
[ "Apache-2.0" ]
null
null
null
network/Reptile/Basic01.py
walkingtyphoon/Python-workspace
e872bce82b2bac3dd5d809f8576345ccc1c6afb7
[ "Apache-2.0" ]
null
null
null
network/Reptile/Basic01.py
walkingtyphoon/Python-workspace
e872bce82b2bac3dd5d809f8576345ccc1c6afb7
[ "Apache-2.0" ]
null
null
null
from urllib import request from urllib import parse head = request.urlopen("https://mp.weixin.qq.com/s?__biz=MzU3NTc0NzE0Mw==&mid=2247483739&idx=1&sn" "=e62a61120c73ebb93029a2897ca60ccd&chksm" "=fd1f2473ca68ad658b9b0388e6fc122951812ba08ada771f3acc4f1f25953de92df837f21795&mpshare=1&scene" "=1&srcid=&sharer_sharetime=1584410683814&sharer_shareid=b14cc42c8dff2f85ec3b42ef9ff07140&key" "=e5d129685831bfd623675c86aca8c5d71f7039e1528f4d357e1ee960fa45ff25c931951e9e391cc21362eb047c4be8befc73a3c7bdb580dcd9b09cf0e793e3fa3f628004c4516333e0ad741f5b771893&ascene=1&uin=MzkzMDAwOTYz&devicetype=Windows+10&version=62080085&lang=zh_CN&exportkey=AVLGCY0spN1AMCYHOT1pGLc%3D&pass_ticket=JeeLLBclQmIly5Ufx2oeHDjvEaxGUIAkQ3OplCJz9sTRvWul2fEP5%2FfN6FvDrxlX") print("读取数据", head.read()) print("按行读取数据", head.readline()) print("多行读取数据", head.readlines()) print("读取返回的信息:", head.getcode()) request.urlretrieve( "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1581932221441&di" "=09a3b2baa29cfe07c21337a30e5c4080&imgtype=jpg&src=http%3A%2F%2Fwww.rfuchina.com%2Fuploadfile%2F2019%2F0417" "%2F20190417091923688.jpg", "01/01.jpg") # 将指定文件保存到本地 params = {"name": "张三", "age": "18", "greet": "hello world"} result = parse.urlencode(params) print(result) # 将字符进行编码
54.76
379
0.764792
125
1,369
8.32
0.792
0.019231
0.030769
0
0
0
0
0
0
0
0
0.264633
0.113952
1,369
24
380
57.041667
0.592745
0.013148
0
0
0
0.210526
0.685969
0.52487
0
0
0
0
0
1
0
false
0.052632
0.105263
0
0.105263
0.263158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
3c7514d7a838bfdb86643d8297c454aab0b44dea
367
py
Python
python/ql/test/query-tests/Classes/incomplete-ordering/incomplete_ordering.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/query-tests/Classes/incomplete-ordering/incomplete_ordering.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/query-tests/Classes/incomplete-ordering/incomplete_ordering.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
#Incomplete ordering class PartOrdered(object): def __eq__(self, other): return self is other def __ne__(self, other): return self is not other def __hash__(self): return id(self) def __lt__(self, other): return False #Don't blame a sub-class for super-class's sins. class DerivedPartOrdered(PartOrdered): pass
20.388889
48
0.662125
49
367
4.632653
0.571429
0.118943
0.198238
0.167401
0.185022
0
0
0
0
0
0
0
0.256131
367
18
49
20.388889
0.831502
0.179837
0
0
0
0
0
0
0
0
0
0
0
1
0.363636
false
0.090909
0
0.363636
0.909091
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
5
3c86f18ac35f71c6ffb872c97688c3aa27b68251
161
py
Python
tests/lit/lit/formats/__init__.py
junag/alive
c2b241eedfcf58dbb5e9426b25d8c7f1e8d241d5
[ "Apache-2.0" ]
4
2016-04-07T17:30:00.000Z
2018-12-02T00:06:28.000Z
tests/lit/lit/formats/__init__.py
junag/alive
c2b241eedfcf58dbb5e9426b25d8c7f1e8d241d5
[ "Apache-2.0" ]
null
null
null
tests/lit/lit/formats/__init__.py
junag/alive
c2b241eedfcf58dbb5e9426b25d8c7f1e8d241d5
[ "Apache-2.0" ]
1
2020-07-03T13:17:35.000Z
2020-07-03T13:17:35.000Z
from __future__ import absolute_import from lit.formats.base import TestFormat, FileBasedTest, OneCommandPerFileTest from lit.formats.alivetest import AliveTest
40.25
77
0.875776
19
161
7.157895
0.578947
0.102941
0.205882
0
0
0
0
0
0
0
0
0
0.086957
161
3
78
53.666667
0.92517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
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
1
0
1
0
0
0
0
5
b1c457e578bb556d113a7107ae5a41db04cdeff3
60
py
Python
mass/__init__.py
shervinazadi/MASS
e0d80bf88816510fb94d974db3cf98734721e423
[ "MIT" ]
null
null
null
mass/__init__.py
shervinazadi/MASS
e0d80bf88816510fb94d974db3cf98734721e423
[ "MIT" ]
null
null
null
mass/__init__.py
shervinazadi/MASS
e0d80bf88816510fb94d974db3cf98734721e423
[ "MIT" ]
null
null
null
from .MASS import environment, agent from . import utilities
30
36
0.816667
8
60
6.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.133333
60
2
37
30
0.942308
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b1fb11b1d5fd773493a3062e05f34eb6aa4b9715
37
py
Python
grAdapt/space/transformer/__init__.py
mkduong-ai/grAdapt
94c2659b0f6ff9a2984a9dc58e3c83213313bf90
[ "Apache-2.0" ]
25
2020-11-13T05:57:01.000Z
2021-06-18T11:16:03.000Z
grAdapt/space/transformer/__init__.py
mkduong-ai/grAdapt
94c2659b0f6ff9a2984a9dc58e3c83213313bf90
[ "Apache-2.0" ]
null
null
null
grAdapt/space/transformer/__init__.py
mkduong-ai/grAdapt
94c2659b0f6ff9a2984a9dc58e3c83213313bf90
[ "Apache-2.0" ]
null
null
null
from .Transformer import Transformer
18.5
36
0.864865
4
37
8
0.75
0
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
59022743ffe685065176646cddc5128d20414cb4
32
py
Python
src/tools/linear_regression/__init__.py
pdoms/project_i
b06cd33d2cd75c5ab86cd98fde4a184618697174
[ "MIT" ]
null
null
null
src/tools/linear_regression/__init__.py
pdoms/project_i
b06cd33d2cd75c5ab86cd98fde4a184618697174
[ "MIT" ]
null
null
null
src/tools/linear_regression/__init__.py
pdoms/project_i
b06cd33d2cd75c5ab86cd98fde4a184618697174
[ "MIT" ]
null
null
null
from .linear_regression import *
32
32
0.84375
4
32
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.896552
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
3cdec383441e8ca1c293807c72e8ec2ce12e71eb
51
py
Python
ballard_weather_service/__main__.py
kwierman/ballard-weather-service
73ff45aa40b5b4d7e4125ca7c282905c32f49de3
[ "MIT" ]
null
null
null
ballard_weather_service/__main__.py
kwierman/ballard-weather-service
73ff45aa40b5b4d7e4125ca7c282905c32f49de3
[ "MIT" ]
null
null
null
ballard_weather_service/__main__.py
kwierman/ballard-weather-service
73ff45aa40b5b4d7e4125ca7c282905c32f49de3
[ "MIT" ]
null
null
null
from ballard_weather_service import cli cli.cli()
12.75
39
0.823529
8
51
5
0.75
0.3
0
0
0
0
0
0
0
0
0
0
0.117647
51
3
40
17
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
3ce42b86a5e93e602c8c7838ac51e170e3664912
137
py
Python
exonetapi/structures/__init__.py
exonet/exonet-api-python
4b6785d47d4d4aad3ea1220b5d58bd2334f48d6d
[ "MIT" ]
null
null
null
exonetapi/structures/__init__.py
exonet/exonet-api-python
4b6785d47d4d4aad3ea1220b5d58bd2334f48d6d
[ "MIT" ]
4
2020-05-05T12:20:26.000Z
2022-03-16T08:56:38.000Z
exonetapi/structures/__init__.py
exonet/exonet-api-python
4b6785d47d4d4aad3ea1220b5d58bd2334f48d6d
[ "MIT" ]
1
2018-06-14T09:43:53.000Z
2018-06-14T09:43:53.000Z
from .ApiResource import ApiResource from .ApiResourceIdentifier import ApiResourceIdentifier from .ApiResourceSet import ApiResourceSet
34.25
56
0.890511
12
137
10.166667
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.087591
137
3
57
45.666667
0.976
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a714d62dd3b15c3507526d36e5a98f86df50580f
152
py
Python
triggers/__init__.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
2
2018-01-02T00:46:58.000Z
2018-05-20T05:10:45.000Z
triggers/__init__.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
null
null
null
triggers/__init__.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
2
2018-02-19T19:46:00.000Z
2019-08-14T20:09:47.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals from .manager import * from .storages import *
21.714286
67
0.776316
19
152
5.842105
0.736842
0
0
0
0
0
0
0
0
0
0
0.007752
0.151316
152
6
68
25.333333
0.852713
0.078947
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
599c3b1cddfa042a6d1cf8ce1350f7bd379ab27e
59
py
Python
src/main/resources/assets/openpython/opos/v1.1/lib/internal/heapq.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
41
2018-10-25T06:15:31.000Z
2022-02-20T11:20:43.000Z
src/main/resources/assets/openpython/opos/v1.1/lib/internal/heapq.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
16
2018-03-20T12:25:27.000Z
2018-03-25T13:34:44.000Z
src/main/resources/assets/openpython/opos/v1.1/lib/internal/heapq.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
8
2018-11-04T02:03:15.000Z
2022-01-13T11:46:28.000Z
# noinspection PyUnresolvedReferences from uheapq import *
19.666667
37
0.847458
5
59
10
1
0
0
0
0
0
0
0
0
0
0
0
0.118644
59
2
38
29.5
0.961538
0.59322
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
599fffffd265c7cadb50a775780ede2b22bd296e
3,148
py
Python
test/device/base/test_base_device.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2020-12-01T17:10:14.000Z
2020-12-01T17:10:14.000Z
test/device/base/test_base_device.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2021-09-19T13:38:02.000Z
2021-09-19T13:38:02.000Z
test/device/base/test_base_device.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
null
null
null
import unittest from src.common.eep import Eep from src.device.base.device import Device from src.tools.enocean_tools import EnoceanTools from src.tools.pickle_tools import PickleTools PACKET_WIN_CLOSE = """ gANjZW5vY2Vhbi5wcm90b2NvbC5wYWNrZXQKUmFkaW9QYWNrZXQKcQApgXEBfXECKFgLAAAAcGFj a2V0X3R5cGVxA0sBWAQAAAByb3JncQRL9lgJAAAAcm9yZ19mdW5jcQVOWAkAAAByb3JnX3R5cGVx Bk5YEQAAAHJvcmdfbWFudWZhY3R1cmVycQdOWAgAAAByZWNlaXZlZHEIY2RhdGV0aW1lCmRhdGV0 aW1lCnEJQwoH5AMIEBMJB9fmcQqFcQtScQxYBAAAAGRhdGFxDV1xDihL9kvwSwVLh0uFS0pLIGVY CAAAAG9wdGlvbmFscQ9dcRAoSwBL/0v/S/9L/0tKSwBlWAYAAABzdGF0dXNxEUsgWAYAAABwYXJz ZWRxEmNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxEylScRRYDgAAAHJlcGVhdGVyX2NvdW50cRVL AFgIAAAAX3Byb2ZpbGVxFk5YCwAAAGRlc3RpbmF0aW9ucRddcRgoS/9L/0v/S/9lWAMAAABkQm1x GUq2////WAYAAABzZW5kZXJxGl1xGyhLBUuHS4VLSmVYBQAAAGxlYXJucRyIdWIu """ PACKET_WIN_TILTED = """ gANjZW5vY2Vhbi5wcm90b2NvbC5wYWNrZXQKUmFkaW9QYWNrZXQKcQApgXEBfXECKFgLAAAAcGFj a2V0X3R5cGVxA0sBWAQAAAByb3JncQRL9lgJAAAAcm9yZ19mdW5jcQVOWAkAAAByb3JnX3R5cGVx Bk5YEQAAAHJvcmdfbWFudWZhY3R1cmVycQdOWAgAAAByZWNlaXZlZHEIY2RhdGV0aW1lCmRhdGV0 aW1lCnEJQwoH5AMIFBQSAtgpcQqFcQtScQxYBAAAAGRhdGFxDV1xDihL9kvQSwVLh0uFS0pLIGVY CAAAAG9wdGlvbmFscQ9dcRAoSwBL/0v/S/9L/0s6SwBlWAYAAABzdGF0dXNxEUsgWAYAAABwYXJz ZWRxEmNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxEylScRRYDgAAAHJlcGVhdGVyX2NvdW50cRVL AFgIAAAAX3Byb2ZpbGVxFk5YCwAAAGRlc3RpbmF0aW9ucRddcRgoS/9L/0v/S/9lWAMAAABkQm1x GUrG////WAYAAABzZW5kZXJxGl1xGyhLBUuHS4VLSmVYBQAAAGxlYXJucRyIdWIu """ PACKET_WIN_OPEN = """ gANjZW5vY2Vhbi5wcm90b2NvbC5wYWNrZXQKUmFkaW9QYWNrZXQKcQApgXEBfXECKFgLAAAAcGFj a2V0X3R5cGVxA0sBWAQAAAByb3JncQRL9lgJAAAAcm9yZ19mdW5jcQVOWAkAAAByb3JnX3R5cGVx Bk5YEQAAAHJvcmdfbWFudWZhY3R1cmVycQdOWAgAAAByZWNlaXZlZHEIY2RhdGV0aW1lCmRhdGV0 aW1lCnEJQwoH5AMIFBQWDkikcQqFcQtScQxYBAAAAGRhdGFxDV1xDihL9kvgSwVLh0uFS0pLIGVY CAAAAG9wdGlvbmFscQ9dcRAoSwBL/0v/S/9L/0tASwBlWAYAAABzdGF0dXNxEUsgWAYAAABwYXJz ZWRxEmNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxEylScRRYDgAAAHJlcGVhdGVyX2NvdW50cRVL AFgIAAAAX3Byb2ZpbGVxFk5YCwAAAGRlc3RpbmF0aW9ucRddcRgoS/9L/0v/S/9lWAMAAABkQm1x GUrA////WAYAAABzZW5kZXJxGl1xGyhLBUuHS4VLSmVYBQAAAGxlYXJucRyIdWIu """ class _TestExtractPropsEnocean(Device): def process_enocean_message(self, message): raise NotImplementedError() # not used class TestBaseDeviceExtractProps(unittest.TestCase): def setUp(self): self.eep = Eep(rorg=0xf6, func=0x10, type=0x00) def test_close(self): packet = PickleTools.unpickle(PACKET_WIN_CLOSE) comp = {'WIN': 3, 'T21': 1, 'NU': 0} data = EnoceanTools.extract_packet_props(packet, self.eep) self.assertEqual(data, comp) def test_tilted(self): packet = PickleTools.unpickle(PACKET_WIN_TILTED) comp = {'WIN': 1, 'T21': 1, 'NU': 0} data = EnoceanTools.extract_packet_props(packet, self.eep) self.assertEqual(data, comp) def test_open(self): packet = PickleTools.unpickle(PACKET_WIN_OPEN) comp = {'WIN': 2, 'T21': 1, 'NU': 0} data = EnoceanTools.extract_packet_props(packet, self.eep) self.assertEqual(data, comp)
43.722222
80
0.822427
205
3,148
12.502439
0.341463
0.021069
0.266875
0.038627
0.313305
0.313305
0.095591
0.095591
0.095591
0.095591
0
0.074261
0.118806
3,148
71
81
44.338028
0.849676
0.002541
0
0.428571
0
0
0.616635
0.56979
0
1
0.003824
0
0.053571
1
0.089286
false
0
0.089286
0
0.214286
0
0
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
abb001c1eff4d4b2d3370ea42b98dea7f53039eb
18
py
Python
featureB.py
RustRipple/git_test
acb2d9b5a0050689d0d097667062e5bd7e069f12
[ "Apache-2.0" ]
null
null
null
featureB.py
RustRipple/git_test
acb2d9b5a0050689d0d097667062e5bd7e069f12
[ "Apache-2.0" ]
null
null
null
featureB.py
RustRipple/git_test
acb2d9b5a0050689d0d097667062e5bd7e069f12
[ "Apache-2.0" ]
1
2021-12-17T04:28:19.000Z
2021-12-17T04:28:19.000Z
print("feature")
6
16
0.666667
2
18
6
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
18
2
17
9
0.75
0
0
0
0
0
0.411765
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
e600e33ad962311cc570772772d4d2bf794a6261
88
py
Python
aqicn/__init__.py
miczal/aqicn-sdk
ff505dd8f79011f033c9c11d043b5f9635f230e5
[ "MIT" ]
8
2017-02-13T09:22:58.000Z
2021-11-15T10:34:01.000Z
aqicn/__init__.py
miczal/aqicn-sdk
ff505dd8f79011f033c9c11d043b5f9635f230e5
[ "MIT" ]
2
2018-03-11T16:25:25.000Z
2019-05-21T16:12:29.000Z
aqicn/__init__.py
miczal/aqicn-sdk
ff505dd8f79011f033c9c11d043b5f9635f230e5
[ "MIT" ]
2
2017-10-13T22:18:37.000Z
2020-03-25T07:41:37.000Z
from aqicn.aqicn import AqicnApi, Coordinate, AqicnApiError import aqicn.utils as utils
29.333333
59
0.840909
12
88
6.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.113636
88
2
60
44
0.948718
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e627d04e0a77f658fe71d3885046dc90ab8257a8
131
py
Python
slp/config/__init__.py
manzar96/slp
7007de5b1b78787bd6e5c7cb48fafd468499b0b1
[ "MIT" ]
4
2021-07-06T13:48:03.000Z
2021-10-02T08:59:06.000Z
slp/config/__init__.py
manzar96/slp
7007de5b1b78787bd6e5c7cb48fafd468499b0b1
[ "MIT" ]
1
2021-09-17T07:57:59.000Z
2021-09-17T08:14:44.000Z
slp/config/__init__.py
manzar96/movie_corpus_chatbot
59de55de261330ed87b652dac6f8e045bf4fffcf
[ "MIT" ]
2
2021-02-21T14:04:55.000Z
2021-08-10T07:40:47.000Z
# flake8: noqa from slp.config.debug import * from slp.config.log import DEFAULT_LOGGING from slp.config.nlp import SPECIAL_TOKENS
26.2
42
0.816794
21
131
5
0.619048
0.2
0.371429
0
0
0
0
0
0
0
0
0.008621
0.114504
131
5
43
26.2
0.896552
0.091603
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5