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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01a966a9092da2d27ed743864a64cbfc07fefe41 | 2,560 | py | Python | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | null | null | null | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | 35 | 2020-11-11T11:14:36.000Z | 2022-03-28T17:06:01.000Z | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | 3 | 2020-11-12T10:39:07.000Z | 2020-12-22T09:51:38.000Z | from faker import Faker
from datetime import datetime
fake = Faker()
min_image_age_hours = 7
max_images_per_flavor = 1
max_image_age_hours = 20
azure_storage_resourcegroup = 'openqa'
ec2_max_snapshot_age_days = 1
ec2_max_volumes_age_days = 5
class MockImage:
def __init__(self, name, last_modified=None):
... | 29.767442 | 89 | 0.639844 | 329 | 2,560 | 4.68997 | 0.246201 | 0.163318 | 0.126377 | 0.048607 | 0.205444 | 0.031108 | 0 | 0 | 0 | 0 | 0 | 0.023846 | 0.230078 | 2,560 | 85 | 90 | 30.117647 | 0.759006 | 0 | 0 | 0.101449 | 0 | 0 | 0.096484 | 0.037891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.028986 | 0.028986 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01aa057dceb95a7aa7d04c4f772c03853d8076a3 | 6,725 | py | Python | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 64 | 2019-10-25T11:12:40.000Z | 2022-02-06T09:53:43.000Z | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 9 | 2019-12-04T09:19:11.000Z | 2021-02-10T09:55:49.000Z | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 19 | 2019-11-04T01:33:26.000Z | 2022-03-03T12:00:37.000Z | """
Helps to quickly create source and sensor positions.
Try it with the following code:
>>> import numpy as np
>>> import sms_wsj.reverb.scenario as scenario
>>> src = scenario.generate_random_source_positions(dims=2, sources=1000)
>>> src[1, :] = np.abs(src[1, :])
>>> mic = scenario.generate_sensor_positions(shape='... | 31.57277 | 92 | 0.581264 | 849 | 6,725 | 4.454653 | 0.253239 | 0.091222 | 0.017451 | 0.02221 | 0.145955 | 0.094395 | 0.024061 | 0.012956 | 0.012956 | 0.012956 | 0 | 0.028651 | 0.30974 | 6,725 | 212 | 93 | 31.721698 | 0.786084 | 0.300074 | 0 | 0.078125 | 1 | 0 | 0.034917 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 1 | 0.023438 | false | 0 | 0.015625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01aa7bcf6840afae4b831716808a75290498a439 | 2,093 | py | Python | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Seed integration overlock beta atlas:
python seed.py \
--host 'cluster0-shard-00-00-skv03.mongodb.net,cluster0-shard-00-01-skv03.mongodb.net,cluster0-shard-00-02-skv03.mongodb.net' \
--username integration-rw \
--db integration \
--ssl True \
--rs Cluster0-shard-0 \
-... | 21.57732 | 131 | 0.548017 | 224 | 2,093 | 4.995536 | 0.339286 | 0.098302 | 0.040214 | 0.050938 | 0.109026 | 0.109026 | 0 | 0 | 0 | 0 | 0 | 0.020395 | 0.27377 | 2,093 | 96 | 132 | 21.802083 | 0.715789 | 0.15958 | 0 | 0.059701 | 0 | 0 | 0.185739 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.074627 | 0.089552 | 0 | 0.119403 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
01ab53ae5bc82ce4bbeea09d61801f03d76fc4d6 | 729 | py | Python | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 33 | 2018-04-07T09:50:22.000Z | 2018-08-24T10:25:29.000Z | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 41 | 2018-03-29T17:09:18.000Z | 2018-08-24T16:37:38.000Z | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 4 | 2018-06-27T08:45:11.000Z | 2018-07-30T18:16:55.000Z | from typing import Any
class Condition:
def __init__(self, value: Any):
self.value = value
class NotEQ(Condition):
def __eq__(self, other: Any):
return self.value != other
def __str__(self):
return f"<!={self.value}>"
class In(Condition):
def __init__(self, *args: Any):
... | 19.702703 | 41 | 0.609053 | 97 | 729 | 4.123711 | 0.216495 | 0.18 | 0.11 | 0.15 | 0.6 | 0.5575 | 0.5 | 0.34 | 0.2 | 0.2 | 0 | 0 | 0.263374 | 729 | 36 | 42 | 20.25 | 0.744879 | 0 | 0 | 0.347826 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.391304 | false | 0 | 0.043478 | 0.26087 | 0.869565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
01add832e88c560c73b15b5f56cb3ef47d5a715d | 7,154 | py | Python | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 45.278481 | 139 | 0.644674 | 858 | 7,154 | 5.19697 | 0.224942 | 0.059206 | 0.050235 | 0.034088 | 0.576362 | 0.479928 | 0.459744 | 0.440458 | 0.425207 | 0.41534 | 0 | 0.004037 | 0.272854 | 7,154 | 157 | 140 | 45.566879 | 0.853133 | 0.428012 | 0 | 0.1875 | 1 | 0 | 0.137903 | 0.008738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.0125 | 0.0625 | 0.025 | 0.2625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01ae25899453c6d21187150fc54bebe1d1afb72a | 1,744 | py | Python | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 4 | 2021-01-12T12:44:20.000Z | 2022-03-20T07:38:46.000Z | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 17 | 2021-01-08T18:36:34.000Z | 2022-02-16T08:21:21.000Z | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 5 | 2021-05-27T19:46:49.000Z | 2022-03-05T00:14:45.000Z | from unittest.mock import MagicMock
import pytest
from openapi_parser.builders import HeaderBuilder, SchemaFactory
from openapi_parser.enumeration import DataType
from openapi_parser.specification import Header, Integer, Schema, String
def _get_schema_factory_mock(expected_value: Schema) -> SchemaFactory:
mock_... | 27.25 | 90 | 0.583142 | 161 | 1,744 | 6.086957 | 0.322981 | 0.079592 | 0.052041 | 0.061224 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0 | 0 | 0.325115 | 1,744 | 63 | 91 | 27.68254 | 0.832625 | 0 | 0 | 0.153846 | 0 | 0 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.038462 | false | 0 | 0.096154 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01ae4a445073c96133a2bcafddf9ca20b082d923 | 213 | py | Python | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | from model.msg2mail import Msg2Mail
from model.encoder import Encoder
from model.decoder import Decoder
from model.updater import RNNUpdater, AttnUpdater
from model.aggregator import MLPAggregator, AttnAggregator
| 35.5 | 58 | 0.86385 | 27 | 213 | 6.814815 | 0.444444 | 0.244565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.103286 | 213 | 5 | 59 | 42.6 | 0.95288 | 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 | 1 | 0 | 0 | 6 |
01ae618867a8af68ce2b3329a0cb4a362b7294f8 | 808 | py | Python | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | import torch.nn as nn
class SeqForecast(nn.Module):
def __init__(self, input_dim, hidden_dim, num_layers=2):
super().__init__()
self.lstm = nn.LSTM(input_dim, hidden_dim,
num_layers, batch_first=True)
self.fc = nn.Linear(hidden_dim, 1)
# Use He(uniform... | 31.076923 | 60 | 0.57797 | 106 | 808 | 4.198113 | 0.509434 | 0.060674 | 0.062921 | 0.076404 | 0.116854 | 0.116854 | 0 | 0 | 0 | 0 | 0 | 0.012635 | 0.314356 | 808 | 25 | 61 | 32.32 | 0.790614 | 0.149752 | 0 | 0 | 0 | 0 | 0.014641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01af7bcc534be18e709a82c37c35fb57c5674b95 | 1,025 | py | Python | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | from time import sleep
def countdown(when_to_stop: int):
while when_to_stop > 0:
try:
m, s = divmod(when_to_stop, 60)
h, m = divmod(m, 60)
time_left = str(h).zfill(2) + ":" + str(m).zfill(2) + ":" + str(s).zfill(2)
print(time_left, end="\r")
sleep... | 26.973684 | 87 | 0.520976 | 124 | 1,025 | 4.080645 | 0.443548 | 0.071146 | 0.118577 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015337 | 0.363902 | 1,025 | 38 | 88 | 26.973684 | 0.760736 | 0 | 0 | 0.212121 | 0 | 0 | 0.151072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.090909 | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b034cce020fd91ff4ffe28a880e004894a3959 | 2,146 | py | Python | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | import os
import constant
def human_size(number):
current_idx = 0
result = float(number)
while result > constant.size_diff:
if current_idx >= len(constant.size_unit):
break
result = result / constant.size_diff
current_idx += 1
return '{} {}'.format(round(result, con... | 35.766667 | 116 | 0.651911 | 286 | 2,146 | 4.608392 | 0.223776 | 0.048558 | 0.039454 | 0.060698 | 0.256449 | 0.115326 | 0.115326 | 0.115326 | 0.115326 | 0.115326 | 0 | 0.008135 | 0.255359 | 2,146 | 59 | 117 | 36.372881 | 0.816646 | 0 | 0 | 0.043478 | 0 | 0 | 0.00233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b03807a772b646022a290cf0b1e41d92a4ed7d | 108 | py | Python | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | from Module.SocketServer_Client import SocketServer_Client
Client = SocketServer_Client("localhost",5555) | 36 | 59 | 0.851852 | 12 | 108 | 7.416667 | 0.583333 | 0.606742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.083333 | 108 | 3 | 60 | 36 | 0.858586 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
01b0ac104efab8a9019c5d91c85bb5c365fc9019 | 1,103 | py | Python | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 101 | 2015-01-21T12:33:45.000Z | 2021-12-30T09:56:35.000Z | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 58 | 2015-07-12T18:59:57.000Z | 2022-03-28T13:25:58.000Z | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 63 | 2015-08-14T21:58:05.000Z | 2022-03-05T13:47:49.000Z | # from django.conf.urls import include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# admin.autodiscover()
import django.contrib.auth.views as auth_views
import django.contrib.admindocs.urls as admindocs_urls
from django.urls import path, include
app_name = "fvserver"
ur... | 31.514286 | 71 | 0.679057 | 137 | 1,103 | 5.350365 | 0.364964 | 0.07367 | 0.040928 | 0.043656 | 0.065484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181324 | 1,103 | 34 | 72 | 32.441176 | 0.811739 | 0.298277 | 0 | 0.181818 | 0 | 0 | 0.168627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
01b0c7510a6ee5fc7d436bfbdd1231f6a49a1e9b | 1,639 | py | Python | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | 1 | 2021-08-14T07:41:40.000Z | 2021-08-14T07:41:40.000Z | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | null | null | null | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | null | null | null | import sqlite3
class SQLiteHelper(object):
def __init__(self,db_name,):
self.db_name = db_name
def create_table(self,table_name,columns):
name=str(self.db_name)
self.conn = sqlite3.connect(name+'.db')
self.c=self.conn.cursor()
query='('
query+='id INTEG... | 29.8 | 76 | 0.560098 | 194 | 1,639 | 4.597938 | 0.298969 | 0.110987 | 0.07287 | 0.063901 | 0.088565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003431 | 0.288591 | 1,639 | 55 | 77 | 29.8 | 0.761578 | 0.035998 | 0 | 0.190476 | 0 | 0 | 0.08941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.02381 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b32c10851c74675ebdb6bc1eb381c6107996eb | 765 | py | Python | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | import activitylogs
from events.registry import build_job
activitylogs.subscribe(build_job.BuildJobStartedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobSoppedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobDeletedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobCreatedEvent)
activitylogs.s... | 45 | 63 | 0.909804 | 68 | 765 | 10.044118 | 0.294118 | 0.152269 | 0.456808 | 0.509517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 765 | 16 | 64 | 47.8125 | 0.916779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
01b4dc4de6e91f68656b6a74509b9ace0bd38359 | 1,918 | py | Python | pyceo/pastel/stack.py | jpsca/pyceo | 8d8767514347848b4f045d04ce6e9fbb96a8d60f | [
"MIT"
] | 15 | 2020-09-30T22:41:09.000Z | 2021-12-30T16:38:42.000Z | proper_cli/pastel/stack.py | jpsca/proper-cli | 038f7273323bbf1880e30e4c3be19378e3e00df2 | [
"MIT"
] | null | null | null | proper_cli/pastel/stack.py | jpsca/proper-cli | 038f7273323bbf1880e30e4c3be19378e3e00df2 | [
"MIT"
] | 1 | 2021-07-24T04:10:01.000Z | 2021-07-24T04:10:01.000Z | """
Copyright (c) 2018 Sébastien Eustace
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribu... | 33.068966 | 70 | 0.708029 | 274 | 1,918 | 4.908759 | 0.463504 | 0.074349 | 0.041636 | 0.017844 | 0.056506 | 0.056506 | 0.056506 | 0.056506 | 0.056506 | 0 | 0 | 0.004046 | 0.226799 | 1,918 | 57 | 71 | 33.649123 | 0.9029 | 0.552659 | 0 | 0.173913 | 0 | 0 | 0.041225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
01b574a3a7d65deeb5fcdead6f4877e21a54e31f | 50,116 | py | Python | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 17 | 2018-09-06T14:04:27.000Z | 2022-03-03T11:13:15.000Z | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 3 | 2019-05-09T10:01:59.000Z | 2022-02-28T16:32:59.000Z | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 6 | 2019-03-18T12:35:55.000Z | 2022-01-07T13:28:53.000Z | """histo_GUI.py: Written by Billy Rathje, OHSU, 2014.
Also Phil Wilmarth, OHSU.
Library of support functions and classes for PAW pipeline programs.
The MIT License (MIT)
Copyright (c) 2017 Phillip A. Wilmarth and OHSU
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | 49.424063 | 176 | 0.572412 | 5,897 | 50,116 | 4.826692 | 0.14075 | 0.040649 | 0.023434 | 0.007378 | 0.43741 | 0.390121 | 0.342269 | 0.308787 | 0.273548 | 0.229526 | 0 | 0.013532 | 0.31876 | 50,116 | 1,013 | 177 | 49.472853 | 0.820158 | 0.236591 | 0 | 0.408683 | 0 | 0 | 0.043517 | 0 | 0.001497 | 0 | 0 | 0 | 0 | 1 | 0.076347 | false | 0 | 0.026946 | 0 | 0.13024 | 0.007485 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b64a5b8b1712b8bbe3a1fc3194b71d68d732a0 | 493 | py | Python | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Test add_metadata_route function with legal parameters.
"""
import apikit
from flask import Flask
def test_set_flask_metadata():
"""Test metadata creation with legal parameters.
"""
app = Flask("bob")
apikit.set_flask_metadata(app, "2.0", "http://example.repo", "BobApp")
a... | 29 | 74 | 0.697769 | 67 | 493 | 4.910448 | 0.41791 | 0.167173 | 0.243161 | 0.267477 | 0.331307 | 0.255319 | 0.255319 | 0.255319 | 0.255319 | 0.255319 | 0 | 0.004773 | 0.150101 | 493 | 16 | 75 | 30.8125 | 0.78043 | 0.257606 | 0 | 0 | 0 | 0 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01b6c2d8b92674f99f55d4198010e87b3a7c726a | 3,096 | py | Python | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #/usr/bin/python
#-*- coding: utf-8 -*-
#Refer: 0day 这么多注入总有一个适合你
import time
def assign(service, arg):
if service == "rockoa":
return True, arg
def test_inj_get(url):
payload = "' AND (SELECT * FROM (SELECT(SLEEP(7)))MDqI) AND 'geIm'='geIm"
verify = url + payload
time1 = time... | 42.410959 | 112 | 0.583333 | 437 | 3,096 | 4.075515 | 0.258581 | 0.058956 | 0.067378 | 0.050533 | 0.56822 | 0.518248 | 0.433464 | 0.433464 | 0.411005 | 0.385738 | 0 | 0.026695 | 0.237726 | 3,096 | 73 | 113 | 42.410959 | 0.727542 | 0.01938 | 0 | 0.40625 | 0 | 0.21875 | 0.378588 | 0.305978 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01b6d2a73e93d2c6c35cc68f44da69c9de7a5da2 | 851 | py | Python | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | 1 | 2020-08-30T04:36:25.000Z | 2020-08-30T04:36:25.000Z | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | null | null | null | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | 1 | 2020-08-30T04:33:07.000Z | 2020-08-30T04:33:07.000Z |
from flask import render_template
from flask_mail import Message
from smtplib import SMTPDataError
from threading import Thread
from app import mail
import logging
logger = logging.getLogger(__name__)
def _async(app, msg):
with app.app_context():
try:
mail.send(msg)
except SMTPData... | 26.59375 | 76 | 0.673325 | 104 | 851 | 5.355769 | 0.461538 | 0.075404 | 0.050269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213866 | 851 | 31 | 77 | 27.451613 | 0.832586 | 0 | 0 | 0 | 0 | 0 | 0.049412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b6e3b7016b474cff100d6389fa9adbf07fe5a3 | 5,151 | py | Python | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 12 | 2021-04-04T04:33:45.000Z | 2022-03-29T12:43:48.000Z | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 2 | 2021-08-28T03:28:47.000Z | 2022-03-24T00:57:21.000Z | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 1 | 2021-07-30T06:49:49.000Z | 2021-07-30T06:49:49.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/02_dataloaders.ipynb (unless otherwise specified).
__all__ = ['ObjectDetectionDataLoaders']
# Cell
from fastai.vision.all import *
from .core import *
# Cell
def _bin_mask_stack_and_padding(t, pad_idx=0):
"Function for padding to create batches when number... | 41.208 | 126 | 0.635799 | 734 | 5,151 | 4.173025 | 0.209809 | 0.054848 | 0.052236 | 0.031342 | 0.399608 | 0.342801 | 0.291218 | 0.272935 | 0.224616 | 0.224616 | 0 | 0.008199 | 0.242283 | 5,151 | 125 | 127 | 41.208 | 0.776582 | 0.084255 | 0 | 0.241758 | 1 | 0 | 0.035205 | 0.005448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0 | 0.021978 | 0 | 0.230769 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01b7573d96f4fdd591b94a1d98f918f07dd327e6 | 317 | py | Python | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | '''
Description:
Get information from Youtube in a simple way.
Author: AlejandroV
Version: 0.1.0
'''
import AVMYT as yt
channel = yt.getChannelInfo("luisito") # get channel
print(channel["name"] + " tiene " + channel["subs"] + " y un total de " + channel["videos"]) # prints info of Luisito Comunica | 28.818182 | 126 | 0.665615 | 42 | 317 | 5.02381 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011858 | 0.201893 | 317 | 11 | 126 | 28.818182 | 0.822134 | 0.435331 | 0 | 0 | 0 | 0 | 0.277419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
01b8932f958e37ec8c50e7edf71a0763c83642f8 | 2,821 | py | Python | example/runCtaTrading.py | WongLynn/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | 11 | 2019-10-28T13:01:48.000Z | 2021-06-20T03:38:09.000Z | example/runCtaTrading.py | Rayshawn8/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | null | null | null | example/runCtaTrading.py | Rayshawn8/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | 6 | 2019-10-28T13:16:13.000Z | 2020-09-08T08:03:41.000Z | import multiprocessing
import os
from time import sleep
from datetime import datetime, time
from vnpy.event import EventEngine2
from vnpy.trader.vtEvent import EVENT_LOG, EVENT_ERROR
from vnpy.trader.vtEngine import MainEngine, LogEngine
from vnpy.trader.gateway import okexGateway
from vnpy.trader.app import ctaStrate... | 25.645455 | 71 | 0.561503 | 293 | 2,821 | 5.313993 | 0.40273 | 0.038536 | 0.044958 | 0.021195 | 0.106615 | 0.106615 | 0.106615 | 0.106615 | 0.106615 | 0.106615 | 0 | 0.012425 | 0.286778 | 2,821 | 110 | 72 | 25.645455 | 0.761431 | 0.127969 | 0 | 0.138889 | 0 | 0 | 0.047658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.138889 | 0 | 0.194444 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01b946264ae1c245632a78a4b8778f16966ec15a | 881 | py | Python | promesque/lib/exporter_logger.py | croesnick/prometheus_elasticsearch | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | 1 | 2019-04-17T20:12:23.000Z | 2019-04-17T20:12:23.000Z | promesque/lib/exporter_logger.py | croesnick/promesque | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | null | null | null | promesque/lib/exporter_logger.py | croesnick/promesque | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | null | null | null | import logging
import sys
LOG_LEVEL_MAP = {
'debug': logging.DEBUG,
'info': logging.INFO,
'warning': logging.WARNING,
'error': logging.ERROR,
'critical': logging.CRITICAL,
}
class ExporterError(Exception):
pass
class ExporterLogger(logging.Logger):
def __init__(self, name, path=None, l... | 23.810811 | 108 | 0.664018 | 99 | 881 | 5.69697 | 0.434343 | 0.047872 | 0.039007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002878 | 0.211124 | 881 | 36 | 109 | 24.472222 | 0.808633 | 0 | 0 | 0 | 0 | 0 | 0.089671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.038462 | 0.076923 | 0.076923 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01ba7e0e7bfae1bd8cee7ccbdab4b4b865b274ba | 1,181 | py | Python | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | 4 | 2020-03-04T16:51:37.000Z | 2021-04-19T15:46:00.000Z | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | null | null | null | 2_ProcessSRA_hpcc-batch_runcc.py | ShiuLab/RNAseq_pipeline | e5e91fb5a5c257e9df67089bafd55045f6fa5049 | [
"MIT"
] | 7 | 2018-06-04T20:58:01.000Z | 2021-09-08T00:31:33.000Z | # IMPORT
import os,sys
# MAIN
print('''
inp1 = file with list of SRA files
inp2 = bowtie index base (full path)
inp3 = SE (0) or PE (1) or paired processed as single (2)
inp3 and on:
Any additional parameters for ProcessSRA_hpcc2.py
These will be appended exactly as they appear
''')
files = sys.argv[1]
bowtie_ind... | 33.742857 | 83 | 0.724809 | 184 | 1,181 | 4.538043 | 0.494565 | 0.131737 | 0.040719 | 0.062275 | 0.186826 | 0.126946 | 0.126946 | 0.126946 | 0.126946 | 0 | 0 | 0.021782 | 0.144793 | 1,181 | 34 | 84 | 34.735294 | 0.804951 | 0.240474 | 0 | 0 | 0 | 0 | 0.28764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01bb8846e49fe494aa95112df0a29c0432c51267 | 2,097 | py | Python | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | MediaCatalog/media_catalog/serializers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from rest_framework.serializers import StringRelatedField
from drf_haystack.serializers import HaystackSerializer
from . models import Media, MediaPublish, Category, Creator, Provider, MediaUser
from . search_indexes import Med... | 26.884615 | 80 | 0.733906 | 198 | 2,097 | 7.671717 | 0.333333 | 0.053325 | 0.073733 | 0.181698 | 0.370639 | 0.123107 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0.164044 | 2,097 | 77 | 81 | 27.233766 | 0.866515 | 0 | 0 | 0.160714 | 0 | 0 | 0.106017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.517857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
01bcb1ac1ff2e44f3b34c8c2ddb2306aa7a0a5f8 | 19,976 | py | Python | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 5 | 2018-05-27T08:15:06.000Z | 2020-11-10T20:38:56.000Z | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 68 | 2018-05-26T19:41:57.000Z | 2022-01-26T14:46:46.000Z | src/beam/views.py | django-beam/django-beam | cba5874bfef414e65051c2534cf03c772a4da98c | [
"BSD-3-Clause"
] | 1 | 2020-06-24T03:58:47.000Z | 2020-06-24T03:58:47.000Z | from typing import List, Optional, Type
from beam.registry import default_registry, register
from django.apps import apps
from django.contrib import messages
from django.contrib.admin.utils import NestedObjects
from django.core.exceptions import FieldDoesNotExist, PermissionDenied
from django.db import router
from dja... | 32.064205 | 94 | 0.621195 | 2,241 | 19,976 | 5.338242 | 0.119589 | 0.028087 | 0.021065 | 0.011368 | 0.473711 | 0.40876 | 0.381844 | 0.346401 | 0.325086 | 0.319903 | 0 | 0.00014 | 0.284842 | 19,976 | 622 | 95 | 32.115756 | 0.837253 | 0.014718 | 0 | 0.36701 | 0 | 0.002062 | 0.057899 | 0.0058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142268 | false | 0.002062 | 0.041237 | 0.043299 | 0.437113 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01bd5639140a6a95c9baa58e324b49f893790914 | 4,557 | py | Python | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | e3nn/tensor/fourier_tensor.py | mister-bailey/e3nn | 43d4b12f5ba5947583feb35f4e0662b73aae5618 | [
"MIT"
] | null | null | null | # pylint: disable=not-callable, no-member, invalid-name, line-too-long, missing-docstring, arguments-differ
import numpy as np
import torch
from e3nn import rs
from e3nn.kernel_mod import FrozenKernel
from e3nn.tensor.spherical_tensor import projection
class FourierTensor:
def __init__(self, signal, mul, lmax, p... | 32.55 | 107 | 0.553434 | 673 | 4,557 | 3.601783 | 0.23477 | 0.058993 | 0.019802 | 0.004951 | 0.123762 | 0.088284 | 0.059406 | 0.006188 | 0 | 0 | 0 | 0.017147 | 0.321703 | 4,557 | 139 | 108 | 32.784173 | 0.767066 | 0.159754 | 0 | 0.043956 | 0 | 0 | 0.029636 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 1 | 0.087912 | false | 0 | 0.054945 | 0.021978 | 0.252747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01bf2602a5233dc77af2a63254f7948ab7be45bf | 1,189 | py | Python | utils/validations.py | WycliffeMuchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | null | null | null | utils/validations.py | WycliffeMuchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | 1 | 2021-06-04T09:45:05.000Z | 2021-06-04T09:45:05.000Z | utils/validations.py | muchumi/Stream-101-API | 9892685c37ff6f3e1e9017bfa5321968a5255c9e | [
"MIT"
] | 1 | 2021-06-04T09:43:58.000Z | 2021-06-04T09:43:58.000Z | import re
from flask import make_response, jsonify
"""
Validates key-value pairs of request dictionary body.
"""
def validate_users_key_pair_values(request):
keys = ['firstName','lastName','userName','email','phoneNumber','password']
errors = []
for key in keys:
if key not in request.json:
... | 24.770833 | 79 | 0.634987 | 156 | 1,189 | 4.685897 | 0.333333 | 0.05472 | 0.102599 | 0.053352 | 0.497948 | 0.432285 | 0.432285 | 0.333789 | 0.333789 | 0.333789 | 0 | 0 | 0.254836 | 1,189 | 48 | 80 | 24.770833 | 0.825056 | 0 | 0 | 0.382353 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.029412 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01c21e6d6040d019aab4c4a5d4b11c12c95b4826 | 3,395 | py | Python | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | 1 | 2018-08-19T14:06:10.000Z | 2018-08-19T14:06:10.000Z | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | null | null | null | agents/guiPlayerAgent.py | Interpause/not-just-gomoku | fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be | [
"MIT"
] | null | null | null | from tkinter import *
from agents.baseAgent import baseAgent
class guiPlayerAgent(baseAgent):
'''Extends baseAgent to provide a GUI for the player to use to play.'''
def __init__(self,*args,**kwargs):
super().__init__(*args,**kwargs)
#Window initialization
self.window = Tk()
s... | 30.044248 | 116 | 0.568778 | 416 | 3,395 | 4.622596 | 0.276442 | 0.084243 | 0.057202 | 0.083203 | 0.307852 | 0.273531 | 0.24129 | 0.227769 | 0.180447 | 0.180447 | 0 | 0.010161 | 0.304271 | 3,395 | 112 | 117 | 30.3125 | 0.80398 | 0.130191 | 0 | 0.337838 | 0 | 0 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.027027 | 0.027027 | 0 | 0.256757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01c28000c41ee4fb2f2523d9f0173a71adcfa81a | 1,802 | py | Python | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | airflow/utils/dag_backup_helper.py | harishjami1382/test2 | f778cc7290904a84bed06f65fa5dbb49a63639f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
from airflow.exceptions import AirflowException
from airflow import configuration as conf
def backup_folder_exists():
import commands
remote_base_path = conf.get('core', 'REMOTE_BASE_LOG_FOLDER')
if not remote_base_path.startswith('s3://'):
raise AirflowException("Ther... | 36.04 | 91 | 0.690899 | 241 | 1,802 | 4.962656 | 0.356846 | 0.06689 | 0.058528 | 0.035117 | 0.367057 | 0.351171 | 0.351171 | 0.351171 | 0.292642 | 0.292642 | 0 | 0.006684 | 0.169811 | 1,802 | 49 | 92 | 36.77551 | 0.792781 | 0.103774 | 0 | 0.294118 | 0 | 0 | 0.20261 | 0.068365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01c3854dca1655a33e493eb031e88aa4ce6113aa | 209 | py | Python | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-2016 | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 3 | 2017-06-09T08:48:07.000Z | 2020-12-13T10:37:44.000Z | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | null | null | null | python/basis/18-package/parent/pack1/mymodule1.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 4 | 2020-04-29T07:03:44.000Z | 2021-07-25T15:12:15.000Z | #!/usr/bin/env python
#-*- coding=utf-8 -*-
def function1():
print "function1 running"
if __name__ == "__main__":
print "mymodule1 running as main program"
else:
print "mymodule1 initializing"
| 16.076923 | 45 | 0.669856 | 25 | 209 | 5.28 | 0.76 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0.191388 | 209 | 12 | 46 | 17.416667 | 0.751479 | 0.191388 | 0 | 0 | 0 | 0 | 0.481928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
01c6baf0c32d93767acdfe8d0d19a3e357b410d4 | 3,223 | py | Python | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | null | null | null | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | 3 | 2018-10-03T21:12:42.000Z | 2019-07-08T21:32:43.000Z | FigureGeneration/makeFigure1.py | federatedcloud/Lake_Problem_DPS | 07600c49ed543165ccdc642c1097b3bed87c28f0 | [
"BSD-3-Clause"
] | 2 | 2020-06-29T17:30:42.000Z | 2020-06-30T22:01:49.000Z | import matplotlib.pyplot as plt
from scipy.optimize import root
import matplotlib
import numpy as np
def makeFigure1():
def fun(x):
return [(x[0]**qq)/(1+x[0]**qq) - bb*x[0]]
b = [0.4,0.3,0.2,0.1]
q = [2.5,3,3.5,4]
x = np.arange(0,2.6,0.1)
y = np.zeros(len(x))
... | 35.417582 | 98 | 0.531492 | 552 | 3,223 | 3.068841 | 0.206522 | 0.012987 | 0.035419 | 0.070838 | 0.609799 | 0.546635 | 0.468713 | 0.434475 | 0.434475 | 0.434475 | 0 | 0.065071 | 0.260937 | 3,223 | 91 | 99 | 35.417582 | 0.646096 | 0.024201 | 0 | 0.333333 | 0 | 0 | 0.099902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.053333 | 0.013333 | 0.106667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01c6c6c8a827d3cf331a524a92625ca459d8fdce | 4,882 | py | Python | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 115 | 2016-07-15T12:24:42.000Z | 2022-02-21T20:40:09.000Z | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 452 | 2016-05-19T13:55:19.000Z | 2022-03-24T11:25:20.000Z | shutdown/start_clouds/gcp_node_scenarios.py | RH-ematysek/svt | 3c4f99d453c6956b434f1a90e0658a95f3fda0a4 | [
"Apache-2.0"
] | 112 | 2016-05-16T08:48:55.000Z | 2022-01-12T13:13:37.000Z | import sys
import time
from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
import logging
class gcp_node_scenarios():
def __init__(self, project):
self.project = project
logging.info("project " + str(self.project) + "!")
credentials = GoogleCredentials.g... | 47.862745 | 95 | 0.607743 | 544 | 4,882 | 5.284926 | 0.194853 | 0.097391 | 0.053565 | 0.031304 | 0.443478 | 0.416348 | 0.36487 | 0.339826 | 0.250087 | 0.19687 | 0 | 0.002939 | 0.30295 | 4,882 | 102 | 96 | 47.862745 | 0.841904 | 0.070258 | 0 | 0.123457 | 0 | 0 | 0.14904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.061728 | 0 | 0.209877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01c8616bda4dba690dc0fe4b0df6b2da85332a5b | 6,004 | py | Python | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | 1 | 2022-02-03T18:27:00.000Z | 2022-02-03T20:01:50.000Z | balanced_treatment_within_subject/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | from otree.api import *
import itertools
doc = """
Within-subject design, with three treatment conditions. Orders of the treatment
will be balanced as long as the subjects arrive in multiples of 6.
"""
class C(BaseConstants):
NAME_IN_URL = 'balanced_treatment_within_subject'
PLAYERS_PER_GROUP = None
# On... | 35.738095 | 142 | 0.669887 | 703 | 6,004 | 5.391181 | 0.217639 | 0.066491 | 0.062797 | 0.061741 | 0.490765 | 0.437731 | 0.420053 | 0.324011 | 0.227704 | 0.209499 | 0 | 0.011615 | 0.268654 | 6,004 | 167 | 143 | 35.952096 | 0.851514 | 0.12525 | 0 | 0.342342 | 0 | 0 | 0.036527 | 0.006311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.027027 | 0.018018 | 0.018018 | 0.387387 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01cc0d8c1cafeb4c50dbdebb8736e0f6d7e35751 | 1,130 | py | Python | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | Azure_DataScientist_Associate/Exercise/Exe11_math_number.py | Jiaying-Wu/Note-Azure | f8f0b917debf735ad238e69361cc77799c1b8f5e | [
"MIT"
] | null | null | null | # mathematical operations
first_value = 5
second_value = 4
sum = first_value + second_value
difference = first_value - second_value
product = first_value * second_value
quotient = first_value / second_value
modulus = first_value % second_value
exponent = first_value ** second_value
print('Sum: ' + str(sum))
print('D... | 19.824561 | 41 | 0.726549 | 169 | 1,130 | 4.727811 | 0.272189 | 0.137672 | 0.1602 | 0.210263 | 0.334168 | 0.222778 | 0.165207 | 0.165207 | 0.165207 | 0.102628 | 0 | 0.040123 | 0.139823 | 1,130 | 57 | 42 | 19.824561 | 0.781893 | 0.145133 | 0 | 0.461538 | 0 | 0 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.564103 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
01cc57f987fa0e55546aee7eb123287a97e6bf0f | 2,085 | py | Python | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | math_utils/discretize.py | RaczeQ/naive-bayes-classifier | c8adc960885118a13677e3c5ec4039b976810bee | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.cluster import KMeans
class DiscretizeParam(object):
feature_name = None
discretize_function = None
buckets_amount = None
def __init__(self, feature_name, discretize_function, buckets_amount):
self.feature_name = feature_name
self.discretize_fu... | 40.096154 | 114 | 0.692086 | 257 | 2,085 | 5.346304 | 0.2607 | 0.088064 | 0.076419 | 0.09607 | 0.3377 | 0.289665 | 0.289665 | 0.240175 | 0.240175 | 0.240175 | 0 | 0.006072 | 0.210072 | 2,085 | 51 | 115 | 40.882353 | 0.828172 | 0 | 0 | 0.113636 | 0 | 0 | 0.006883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.045455 | 0.022727 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01cc70c8abff0fb0bf9dc4eeeddc116b27034172 | 875 | py | Python | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 10 | 2020-05-12T13:41:42.000Z | 2022-03-24T17:32:09.000Z | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 18 | 2020-09-26T00:57:28.000Z | 2021-06-02T01:31:35.000Z | python/binance/app/tests/test_binanceCom.py | Vahegian/GiantTrader | 67a1acd8c52e2277ae8919834563775e59b6e6ce | [
"MIT"
] | 3 | 2021-01-03T07:44:09.000Z | 2021-11-20T18:44:24.000Z | import unittest
from trader.binanceCom import BinanceCom
class TestBinanceCom(unittest.TestCase):
def test_connect_to_account(self):
bc = BinanceCom()
self.assertIsNotNone(bc.connect_to_account(bc.default_Key, bc.default_Secret))
self.assertRaises(ValueError, bc.connect_to_account, None, N... | 36.458333 | 86 | 0.691429 | 108 | 875 | 5.296296 | 0.351852 | 0.125874 | 0.125874 | 0.122378 | 0.367133 | 0.157343 | 0.157343 | 0.157343 | 0.157343 | 0.157343 | 0 | 0 | 0.211429 | 875 | 24 | 87 | 36.458333 | 0.828986 | 0 | 0 | 0.105263 | 0 | 0 | 0.070776 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01cc779657651e4920bdc21cc6224a00f4c92b64 | 3,652 | py | Python | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | null | null | null | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | 1 | 2020-03-01T16:02:10.000Z | 2020-03-01T16:02:10.000Z | magenta/models/polyamp/instrument_family_mappings.py | Jss7268/magenta | 10e0b2c50baaa01a9c942ed3334b5b2cca761bef | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Jack Spencer Smith.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 24.026316 | 74 | 0.627601 | 506 | 3,652 | 4.496047 | 0.407115 | 0.073846 | 0.046154 | 0.014066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096965 | 0.260131 | 3,652 | 151 | 75 | 24.18543 | 0.745004 | 0.21851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01cdb444753f4488357a72f809510aad06386257 | 1,898 | py | Python | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 5 | 2018-05-12T22:38:28.000Z | 2020-10-10T17:22:37.000Z | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 5 | 2019-10-13T01:39:38.000Z | 2020-09-28T04:36:38.000Z | pyIPCMI/Base/__init__.py | mithro/pyIPCMI | dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2 | [
"Apache-2.0"
] | 4 | 2018-05-12T22:38:32.000Z | 2019-05-19T21:27:37.000Z | # EMACS settings: -*- tab-width: 2; indent-tabs-mode: t; python-indent-offset: 2 -*-
# vim: tabstop=2:shiftwidth=2:noexpandtab
# kate: tab-width 2; replace-tabs off; indent-width 2;
#
# ==============================================================================
# Authors: Patrick Lehmann
#
# Python Package... | 33.892857 | 85 | 0.630137 | 218 | 1,898 | 5.431193 | 0.642202 | 0.050676 | 0.015203 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020395 | 0.17334 | 1,898 | 55 | 86 | 34.509091 | 0.734226 | 0.805585 | 0 | 0 | 0 | 0 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
01ce990c3e3d9f74d96ced5734ef6d8addf3e314 | 207 | py | Python | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | Documentation/YouTube/#2 - Window/test_window.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | from goopylib.imports import *
window = Window(title="Test Window", width=700, height=700, bk_colour=ColourRGB(40, 40, 40))
Circle([350, 350], 10).draw(window)
while window.is_open():
window.update()
| 23 | 92 | 0.710145 | 31 | 207 | 4.677419 | 0.709677 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110497 | 0.125604 | 207 | 8 | 93 | 25.875 | 0.690608 | 0 | 0 | 0 | 0 | 0 | 0.05314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01cec5edb4d937a0934dcf6391bcc265af95690c | 1,123 | py | Python | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | test/group-test.py | Afsio/sd-groupcast | 65df8d308280cc2096449a1bc6431eae38c54f5a | [
"MIT"
] | null | null | null | import unittest
from project import group_s
from project import printer_s
from project import member_s
from pyactor.context import set_context, create_host, shutdown, sleep
class TestGroup(unittest.TestCase):
def setUp(self):
# Gets executed before every test
set_context()
self.h = create_... | 30.351351 | 75 | 0.668744 | 155 | 1,123 | 4.696774 | 0.451613 | 0.041209 | 0.070055 | 0.049451 | 0.087912 | 0.087912 | 0.087912 | 0 | 0 | 0 | 0 | 0.009185 | 0.224399 | 1,123 | 36 | 76 | 31.194444 | 0.826636 | 0.165628 | 0 | 0 | 0 | 0 | 0.023605 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.130435 | false | 0 | 0.217391 | 0 | 0.391304 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01d12b115e20541f808963ebd17fccca6ce7f41b | 188 | py | Python | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | largescale/src/neuron/neuron/__init__.py | cosmozhang-lab/motion-illusion-model | 32a5ccab920095818b220642bae491429ff71f27 | [
"MIT"
] | null | null | null | # Package: largescale.src.neuron.neuron
from neuron import NeuronGroup
from neuron import T_EXCITATORY, T_INHIBITORY, T_EXC, T_E, T_INH, T_I
from neuron import T_ON, T_OFF, T_O, T_F
| 31.333333 | 70 | 0.776596 | 35 | 188 | 3.885714 | 0.514286 | 0.220588 | 0.352941 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154255 | 188 | 5 | 71 | 37.6 | 0.855346 | 0.196809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
01d20ae8c1699ccf74ba7109b2ee121b6533f768 | 147 | py | Python | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | mock_study/project/constants.py | lockeCucumber/Study | f2e64d51c32e8d8bff5d18427e1697149298327c | [
"MIT"
] | null | null | null | # coding: utf8
import os
BASE_URL = 'http://jsonplaceholder.typicode.com'
SKIP_REAL = os.getenv('SKIP_REAL', False) # 一般会考虑本地开发环境一些测试跳过,所以设置一个全局变量 | 29.4 | 72 | 0.77551 | 19 | 147 | 5.842105 | 0.842105 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.095238 | 147 | 5 | 72 | 29.4 | 0.827068 | 0.278912 | 0 | 0 | 0 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
01d2669a411e95e812fc676660fcb5c7124775a0 | 1,458 | py | Python | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | 1 | 2021-03-20T02:03:55.000Z | 2021-03-20T02:03:55.000Z | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | 1 | 2021-04-06T04:48:01.000Z | 2021-04-06T04:48:01.000Z | charlie/Include/filelogger.py | V-Perotto/Projekt-Charlie | da27d28b1194c999d17431aa990706482d7bb1a1 | [
"CC0-1.0"
] | null | null | null |
from os import getcwd
from os.path import isfile
from os.path import join
from os import listdir
from datetime import datetime
# Obrigado Fabrício por me mostrar como criar um log em python e por ser um
# colega incrível :)
def filelog(name, desc):
# print("ENTROU")
if name == "PY_F":
path_way = getc... | 36.45 | 88 | 0.521262 | 199 | 1,458 | 3.688442 | 0.356784 | 0.087193 | 0.020436 | 0.069482 | 0.408719 | 0.356948 | 0.297003 | 0.297003 | 0.297003 | 0.245232 | 0 | 0.000935 | 0.266804 | 1,458 | 40 | 89 | 36.45 | 0.685688 | 0.104938 | 0 | 0.241379 | 0 | 0.034483 | 0.220939 | 0.121632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01d34093e5c9e7f4544e25b1fde1111ea81ea296 | 3,098 | py | Python | tests/test_pj_categories.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 26 | 2018-11-30T09:17:17.000Z | 2020-11-07T01:53:07.000Z | tests/test_pj_categories.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 38 | 2018-06-08T09:41:04.000Z | 2020-12-07T17:39:12.000Z | tests/test_pj_categories.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | 9 | 2018-05-18T13:07:00.000Z | 2020-08-01T16:42:40.000Z | from idunn.places import PjApiPOI
from idunn.places.models import pj_info
def test_categories_pj():
poi = PjApiPOI(pj_info.Response(**{"categories": []}))
assert poi.get_class_name() is None
assert poi.get_subclass_name() is None
poi = PjApiPOI(pj_info.Response(**{"categories": [{"category_name": "re... | 36.447059 | 100 | 0.611039 | 335 | 3,098 | 5.385075 | 0.191045 | 0.13969 | 0.186253 | 0.131929 | 0.716186 | 0.366962 | 0.347561 | 0.347561 | 0.060976 | 0.060976 | 0 | 0 | 0.222079 | 3,098 | 84 | 101 | 36.880952 | 0.748548 | 0 | 0 | 0.15942 | 0 | 0 | 0.24887 | 0 | 0 | 0 | 0 | 0 | 0.405797 | 1 | 0.014493 | false | 0 | 0.028986 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01d3fee0f84d79a6c7dc8e8254bea86a141e910d | 2,631 | py | Python | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | null | null | null | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | 1 | 2015-01-02T07:30:40.000Z | 2015-01-02T07:30:40.000Z | django_project/work_evid/models.py | grumpa/work_evid | 4798dc6ffde232981981f40c962a922321fcda3a | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from django.utils.translation import ugettext as _
from django.db import models
from django.core.urlresolvers import reverse
from django.utils import timezone
class Firm(models.Model):
"Simple firm database."
name = models.CharField(max_length=60, verbose_name=_('firm name'))
periode = mo... | 36.541667 | 85 | 0.633979 | 309 | 2,631 | 5.161812 | 0.320388 | 0.110345 | 0.037618 | 0.048903 | 0.359875 | 0.359875 | 0.294044 | 0.294044 | 0.194357 | 0.115361 | 0 | 0.010015 | 0.240973 | 2,631 | 71 | 86 | 37.056338 | 0.788683 | 0.052071 | 0 | 0.230769 | 0 | 0 | 0.143966 | 0.024447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.096154 | 0.711538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01d934196d480dae649338a69187b0e002359237 | 1,638 | py | Python | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 141 | 2019-05-01T00:19:22.000Z | 2022-03-29T13:30:31.000Z | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 19 | 2019-08-10T08:19:30.000Z | 2021-05-26T01:38:39.000Z | cadence/tests/test_itask.py | simkimsia/temporal-python-sdk | 6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263 | [
"MIT"
] | 29 | 2019-05-15T03:44:09.000Z | 2022-03-29T21:36:17.000Z | import asyncio
from asyncio.events import AbstractEventLoop
from unittest import TestCase
from unittest.mock import Mock, MagicMock
from cadence.decision_loop import ReplayDecider, ITask
from cadence.tests.test_decision_context import run_once
class TestAwaitTill(TestCase):
def setUp(self) -> None:
self... | 33.428571 | 90 | 0.698413 | 213 | 1,638 | 5.15493 | 0.258216 | 0.106557 | 0.118397 | 0.07286 | 0.336066 | 0.317851 | 0.294171 | 0.294171 | 0.294171 | 0.294171 | 0 | 0.000777 | 0.214286 | 1,638 | 48 | 91 | 34.125 | 0.85237 | 0 | 0 | 0.263158 | 0 | 0 | 0.000611 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01daf9291c59f9ecfac44642085f4a9a36facf4d | 2,450 | py | Python | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | 1 | 2021-07-29T08:59:06.000Z | 2021-07-29T08:59:06.000Z | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | null | null | null | rewriting/terms.py | ethframe/scratchpad | 29287f24f805e32b302984447c914b55eae82f08 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List
from .matching import (
ConstantOpBuilder, Context, Matchable, PatternBuilder, VarOpBuilder
)
class Term(Matchable['TermOp']):
pass
@dataclass
class Val(Term):
value: str
def handle_match_op(self, op: 'TermOp', ctx: Context['TermOp']) -> bo... | 25 | 77 | 0.66 | 312 | 2,450 | 5.067308 | 0.176282 | 0.056926 | 0.101202 | 0.126502 | 0.428843 | 0.428843 | 0.428843 | 0.366856 | 0.366856 | 0.366856 | 0 | 0 | 0.214694 | 2,450 | 97 | 78 | 25.257732 | 0.821726 | 0 | 0 | 0.222222 | 0 | 0 | 0.019592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253968 | false | 0.015873 | 0.047619 | 0.15873 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
01db48123ace2512ead68fd1601f911ab0f60cef | 41 | py | Python | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | 2 | 2021-05-31T22:44:50.000Z | 2021-09-12T03:19:21.000Z | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | null | null | null | classes/Optimizer/__init__.py | coopersigrist/DnDML | 782b8908147fc9d90c6fb1dbb25a394ca4022b14 | [
"MIT"
] | 1 | 2021-07-22T12:54:47.000Z | 2021-07-22T12:54:47.000Z | from .wrapper import create_optim_wrapper | 41 | 41 | 0.902439 | 6 | 41 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.921053 | 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 | 1 | 0 | 0 | 6 |
01de93cc01e93ba0250a3e2becff8b0167586038 | 820 | py | Python | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 23 | 2020-10-02T12:59:19.000Z | 2022-03-07T17:53:25.000Z | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 9 | 2020-09-30T18:47:39.000Z | 2022-03-08T17:21:41.000Z | utils/decompress_gz_to_json.py | zahidayar/BRON | 585b365ec081eae758c7c7e7160ceca3ac9c2f6f | [
"MIT"
] | 11 | 2020-12-30T19:21:52.000Z | 2022-03-25T03:00:42.000Z | import json
import gzip
import argparse
"""
Decompresses GZ file to JSON file
"""
def decompress_gz_to_json(gz_path, save_path):
with gzip.open(gz_path, "rt", encoding="utf-8") as f:
decompressed = json.load(f)
with open(save_path, 'w') as f:
f.write(json.dumps(decompressed, indent=4, sort_k... | 27.333333 | 92 | 0.684146 | 121 | 820 | 4.38843 | 0.38843 | 0.067797 | 0.045198 | 0.079096 | 0.312618 | 0.252354 | 0.252354 | 0.120527 | 0 | 0 | 0 | 0.00304 | 0.197561 | 820 | 29 | 93 | 28.275862 | 0.803951 | 0 | 0 | 0.1 | 0 | 0 | 0.174583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01ded03c96a46ab8c9a1fc28b70d091d4b45aa01 | 2,981 | py | Python | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 40 | 2015-01-09T02:56:33.000Z | 2019-03-01T05:34:13.000Z | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 98 | 2015-01-05T12:51:29.000Z | 2019-01-23T20:16:48.000Z | tests/tangelo-watch.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 21 | 2015-01-05T19:11:49.000Z | 2020-08-19T04:16:16.000Z | import fixture
import nose
import requests
import os
import pprint
import time
def get_times(response):
"""
Parse a response from a watch script to get the reported times.
:param response: the response from a requests.get call.
:returns: a dictionary of parsed times.
"""
times = {}
for pa... | 31.052083 | 76 | 0.628313 | 448 | 2,981 | 4.107143 | 0.220982 | 0.095652 | 0.104348 | 0.098913 | 0.491304 | 0.440761 | 0.440761 | 0.440761 | 0.417391 | 0.417391 | 0 | 0.015553 | 0.201946 | 2,981 | 95 | 77 | 31.378947 | 0.757881 | 0.246897 | 0 | 0.517241 | 0 | 0 | 0.092449 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.206897 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e1988dca92df66d159a4de20a9672aa6ee93e3 | 1,394 | py | Python | dfs/path-sum-II.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | dfs/path-sum-II.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | dfs/path-sum-II.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def pathSum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: bool
"""
... | 25.345455 | 69 | 0.472023 | 168 | 1,394 | 3.892857 | 0.25 | 0.085627 | 0.061162 | 0.070336 | 0.293578 | 0.293578 | 0.293578 | 0.293578 | 0.198777 | 0.198777 | 0 | 0.00122 | 0.411765 | 1,394 | 55 | 70 | 25.345455 | 0.796341 | 0.185796 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.366667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e1c6dfef1b13a42336acc4b9cb04fd28520995 | 4,405 | py | Python | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | train.py | matt-quant-heads-io/pcgil2 | acb32c5766fca5be580f4aa56b1b7c660c39048d | [
"MIT"
] | null | null | null | #pip install tensorflow==1.15
#Install stable-baselines as described in the documentation
import sys
import model
from model import FullyConvPolicyBigMap, FullyConvPolicySmallMap, CustomPolicyBigMap, CustomPolicySmallMap
from utils import get_exp_name, max_exp_idx, load_model, make_vec_envs
from stable_baselines impor... | 33.625954 | 122 | 0.614075 | 565 | 4,405 | 4.580531 | 0.286726 | 0.030139 | 0.032458 | 0.012751 | 0.180835 | 0.139876 | 0.139876 | 0.139876 | 0.11051 | 0.083462 | 0 | 0.016697 | 0.252213 | 4,405 | 130 | 123 | 33.884615 | 0.768974 | 0.195233 | 0 | 0.179775 | 0 | 0 | 0.1434 | 0.047021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0.011236 | 0.101124 | 0 | 0.134831 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e37e55485ff713b5ef926c51471d0b3aa60ce8 | 5,752 | py | Python | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 56 | 2019-10-20T03:09:02.000Z | 2022-03-25T09:21:40.000Z | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 3 | 2020-10-01T07:33:51.000Z | 2021-05-12T03:40:57.000Z | run_scripts/lfd_upper_bound_exp_script.py | yifan-you-37/rl_swiss | 8b0ee7caa5c1fa93860916004cf4fd970667764f | [
"MIT"
] | 10 | 2019-11-04T16:56:09.000Z | 2022-03-25T09:21:41.000Z | import numpy as np
import torch
from torch import nn
from torch.autograd import Variable
from copy import deepcopy
from gym.spaces import Dict
from rllab.misc.instrument import VariantGenerator
import rlkit.torch.pytorch_util as ptu
from rlkit.envs.wrappers import NormalizedBoxEnv
from rlkit.launchers.launcher_util i... | 34.035503 | 115 | 0.677156 | 758 | 5,752 | 4.791557 | 0.255937 | 0.084802 | 0.131057 | 0.066079 | 0.35793 | 0.296256 | 0.237885 | 0.219438 | 0.170705 | 0.170705 | 0 | 0.004296 | 0.190716 | 5,752 | 168 | 116 | 34.238095 | 0.77594 | 0.246349 | 0 | 0.021277 | 0 | 0 | 0.142757 | 0.01143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.276596 | 0 | 0.297872 | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e3a685fc855932c7cffb03a56fb066ee005d8b | 2,535 | py | Python | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/helpers.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | 30.178571 | 74 | 0.624458 | 324 | 2,535 | 4.685185 | 0.361111 | 0.039526 | 0.047431 | 0.073781 | 0.293149 | 0.225955 | 0.161397 | 0.109354 | 0.109354 | 0.056653 | 0 | 0.004913 | 0.277318 | 2,535 | 83 | 75 | 30.542169 | 0.82369 | 0.298225 | 0 | 0.372549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.019608 | 0.039216 | 0.019608 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e431ac6af8e7ece57813ce92c7c03a10a541da | 933 | py | Python | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | deepxde/optimizers/pytorch/optimizers.py | csuastt/deepxde | 027b1489142d0dacf15baf7d7990c63027aca86f | [
"Apache-2.0"
] | null | null | null | import torch
__all__ = ["get", "is_external_optimizer"]
def is_external_optimizer(optimizer):
return False
def get(params, optimizer, learning_rate=None, decay=None):
"""Retrieves an Optimizer instance."""
if isinstance(optimizer, torch.optim.Optimizer):
return optimizer
if learning_rate i... | 32.172414 | 84 | 0.672026 | 120 | 933 | 5.125 | 0.4 | 0.117073 | 0.061789 | 0.026016 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0.004121 | 0.219721 | 933 | 28 | 85 | 33.321429 | 0.840659 | 0.08896 | 0 | 0 | 0 | 0 | 0.223013 | 0.024911 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01e4a93d122c374bc7b77d38adfb718aea0aeaed | 899 | py | Python | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v5_0/bookmarks_to_stars.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import json
import vmraid
import vmraid.defaults
from vmraid.desk.like import _toggle_like
from six import string_types
def execute():
for user in vmraid.get_all("User"):
username = user["name"]
bookmarks = vmraid.db.get_default("_bookmarks", username)
if not bookmarks:
... | 26.441176 | 70 | 0.696329 | 118 | 899 | 5.169492 | 0.449153 | 0.052459 | 0.036066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001357 | 0.1802 | 899 | 33 | 71 | 27.242424 | 0.826323 | 0 | 0 | 0.111111 | 0 | 0 | 0.067853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.222222 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e4d64999a4e0f305613c36fd0071cb9705dd30 | 4,061 | py | Python | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 13 | 2019-04-01T02:38:59.000Z | 2022-03-02T20:18:13.000Z | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 1 | 2019-07-22T02:33:57.000Z | 2019-07-22T02:33:57.000Z | data_create.py | Primtee/triplet-loss-train-for-speaker-recognition | 8d0f405eddbbb129bd7bf60565390cdaca0a8aa8 | [
"MIT"
] | 8 | 2019-04-02T01:49:19.000Z | 2021-04-23T09:22:20.000Z | # coding=utf-8
__author__ = 'NXG'
import os, wave
import contextlib
import collections
from math import ceil
from dataprovider.create.data_management import mik_dir
saved_original_voice_path = '/data/validation_clip/'
def read_wave(path):
with contextlib.closing(wave.open(path, 'rb')) as wf:
"""
... | 35.008621 | 98 | 0.638513 | 551 | 4,061 | 4.46461 | 0.30127 | 0.069106 | 0.02439 | 0.013821 | 0.08252 | 0.017073 | 0 | 0 | 0 | 0 | 0 | 0.055925 | 0.260281 | 4,061 | 115 | 99 | 35.313043 | 0.762983 | 0.099729 | 0 | 0 | 0 | 0 | 0.04912 | 0.006796 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.076923 | false | 0 | 0.064103 | 0 | 0.217949 | 0.064103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01e8d97a7e29b1604d1107707c9dd60bfb163ffc | 43,415 | py | Python | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | AlignmentPracticableIORepa.py | caiks/AlignmentRepaPy | 7b67e5e1ed7a40fc0c9588b92d72536b12edaf11 | [
"MIT"
] | null | null | null | from AlignmentPracticableRepa import *
import logging
from timeit import default_timer as timer
from sys import stdout
# logging.basicConfig(format='%(asctime)s : %(name)s : %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO)
# logging.basicConfig(format='%(message)s', level=logging.INFO)
logging.ba... | 41.151659 | 158 | 0.54548 | 5,339 | 43,415 | 4.383592 | 0.066866 | 0.048752 | 0.040378 | 0.046659 | 0.915741 | 0.911767 | 0.90758 | 0.903478 | 0.889036 | 0.870877 | 0 | 0.025468 | 0.305424 | 43,415 | 1,054 | 159 | 41.190702 | 0.750622 | 0.048509 | 0 | 0.90239 | 0 | 0 | 0.081924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006972 | 0.003984 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
01ec2eb83db8877fbe9b047aa6571bb80b06575c | 213 | py | Python | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | 1 | 2021-12-28T23:40:41.000Z | 2021-12-28T23:40:41.000Z | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | null | null | null | nnga/utils/helper.py | rafaelsdellama/nnga | 9c04fd0c5f68644345d197db44b1bc6f6c780a30 | [
"MIT"
] | null | null | null | import tensorflow as tf
import gc
def dump_tensors():
"""
https://forums.fast.ai/t/gpu-memory-not-being-freed-after-training-is-over/10265/6
"""
tf.keras.backend.clear_session()
gc.collect()
| 19.363636 | 86 | 0.676056 | 32 | 213 | 4.4375 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.164319 | 213 | 10 | 87 | 21.3 | 0.764045 | 0.384977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
01ec3f83f4344a57d4723456f2a886bb0fae0749 | 2,438 | py | Python | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | 1 | 2021-12-27T13:20:43.000Z | 2021-12-27T13:20:43.000Z | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | null | null | null | codes/cctpy/cuda/cuda_dB.py | madokast/cctpy | b02c64220ea533a4fc9cad0b882d1be6edadf1c0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
dB 函数 CUDA
"""
import numpy as np
import pycuda.driver as drv
import pycuda.autoinit
from pycuda.compiler import SourceModule
from cctpy.baseutils import Vectors
mod = SourceModule("""
// cct_for_cuda.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include<stdio.h>
#include <math.h> // CUDA I... | 19.983607 | 87 | 0.561936 | 432 | 2,438 | 2.958333 | 0.226852 | 0.119718 | 0.115023 | 0.086072 | 0.213615 | 0.20579 | 0.187011 | 0.187011 | 0.187011 | 0.120501 | 0 | 0.043316 | 0.232978 | 2,438 | 121 | 88 | 20.14876 | 0.640107 | 0.031173 | 0 | 0 | 0 | 0.056818 | 0.838079 | 0.00935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011364 | false | 0 | 0.056818 | 0 | 0.102273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01ed823981676dcf15bd4e4814cc63e98bf56130 | 2,161 | py | Python | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge-extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | null | null | null | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge-extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | 7 | 2021-07-18T11:24:44.000Z | 2021-07-18T14:26:52.000Z | knowledge_extractor/keyword_generators.py | nlpconnect/knowledge_extractor | 0a9595c7c966d5908f78d6cd5a2808448737e320 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_model_based_keyword_generation.ipynb (unless otherwise specified).
__all__ = ['BartKeywordGenerator', 'ExtractiveKeywordGenerator', 'AbstractiveKeywordGenerator']
# Cell
from transformers import TextGenerationPipeline, TFAutoModelForPreTraining, TFBartForConditionalG... | 41.557692 | 131 | 0.763998 | 257 | 2,161 | 6.171206 | 0.346304 | 0.051072 | 0.032787 | 0.030265 | 0.244641 | 0.210593 | 0.138714 | 0.138714 | 0.088272 | 0.088272 | 0 | 0.01179 | 0.136511 | 2,161 | 51 | 132 | 42.372549 | 0.838156 | 0.176307 | 0 | 0.258065 | 1 | 0 | 0.117446 | 0.086659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.032258 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01ee6ced64104669ebecf6c3325e44ad9e03b6ac | 5,344 | py | Python | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null | saving.py | pabilbado/IVanalyzer | 4ebb5333508906328c9b7df5311ea0616ba9344f | [
"MIT"
] | null | null | null |
import pandas as pd
import matplotlib.pyplot as plt
import os
import time
intro= """\
\\documentclass[a4paper]{article}
%% Language and font encodings
\\usepackage[english]{babel}
\\usepackage[utf8x]{inputenc}
\\usepackage[T1]{fontenc}
%% Sets page size and margins
\\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,... | 35.865772 | 317 | 0.537051 | 552 | 5,344 | 4.949275 | 0.375 | 0.040996 | 0.019766 | 0.029649 | 0.252562 | 0.146047 | 0.129941 | 0.096999 | 0.096999 | 0.096999 | 0 | 0.014755 | 0.264409 | 5,344 | 148 | 318 | 36.108108 | 0.680234 | 0.154004 | 0 | 0.139785 | 0 | 0.043011 | 0.448866 | 0.140952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.043011 | 0 | 0.107527 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01f0b340264833a77f844be5ad80f6b639b8a21f | 1,896 | py | Python | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | null | null | null | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | null | null | null | connect4_driver.py | YeungJonathan/ConnectFourGame | a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a | [
"MIT"
] | 2 | 2018-10-18T20:55:29.000Z | 2019-05-05T22:20:08.000Z | from connect4_board import Board
from connect4_board import Player
import random
class Driver:
def __init__(self):
playerOne = input('Input Player 1 name: ')
playerTwo = input('Input Player 2 name: ')
self.p1 = Player(1,'X', playerOne)
self.p2 = Player(2,'O', playerTwo)
self.board = Board()
def prompt(s... | 24.947368 | 62 | 0.658755 | 254 | 1,896 | 4.862205 | 0.330709 | 0.051012 | 0.036437 | 0.037247 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.204641 | 1,896 | 76 | 63 | 24.947368 | 0.795093 | 0.077004 | 0 | 0.067797 | 0 | 0 | 0.108997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.050847 | 0 | 0.254237 | 0.20339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01f38c86baedfcc484c064e47ed30b7665cc0956 | 4,450 | py | Python | DiscoPass.py | christopheleduc/Brute_Force_SHA1_Hashes_001 | 0338f462c3a4afbccc51e0418afc00c3fb1cc495 | [
"MIT"
] | 1 | 2019-11-22T20:01:40.000Z | 2019-11-22T20:01:40.000Z | DiscoPass.py | CryptoDox/Brute_Force_SHA1_Hashes_001 | 115d6373ac945191ecee35976698e922efeb3f04 | [
"MIT"
] | null | null | null | DiscoPass.py | CryptoDox/Brute_Force_SHA1_Hashes_001 | 115d6373ac945191ecee35976698e922efeb3f04 | [
"MIT"
] | null | null | null | from urllib.request import urlopen, hashlib, time
# Une petite fonction pour un timer entre les 2 méthodes (locale et distante).
def sleeper(num):
while True:
# Try to convert it to a float
try:
num = float(num)
except ValueError:
continue
# lance la comman... | 46.842105 | 190 | 0.597079 | 608 | 4,450 | 4.276316 | 0.297697 | 0.043077 | 0.046154 | 0.032308 | 0.523077 | 0.470769 | 0.444615 | 0.444615 | 0.444615 | 0.417692 | 0 | 0.02698 | 0.217079 | 4,450 | 95 | 191 | 46.842105 | 0.719288 | 0.413933 | 0 | 0.162162 | 0 | 0.027027 | 0.28079 | 0.016544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.405405 | 0.027027 | 0 | 0.081081 | 0.324324 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
01f46813c24eb72d17e7473237ce843aed94ffa2 | 13,244 | py | Python | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | main.py | fab-jul/ppfin | f3e51583d42590eceb6d3920a351f8f2639792c1 | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('otp.log')
fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
import argparse
import urwid
import data_controller
import symbol_values
_BACKGROUND = urwid.SolidFill(u'\N{MEDIUM SHADE}')
_BASE_CURRENCY = 'CHF'
_main... | 30.168565 | 100 | 0.627001 | 1,641 | 13,244 | 4.828154 | 0.155393 | 0.028398 | 0.032185 | 0.018932 | 0.35378 | 0.291809 | 0.274391 | 0.190963 | 0.140098 | 0.121166 | 0 | 0.00227 | 0.234899 | 13,244 | 438 | 101 | 30.237443 | 0.779631 | 0.029447 | 0 | 0.284483 | 0 | 0 | 0.059813 | 0 | 0 | 0 | 0 | 0.002283 | 0.005747 | 1 | 0.112069 | false | 0.011494 | 0.014368 | 0.002874 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01f504aa53c3bb4fe7a2b249467d3edc8c31630a | 563 | py | Python | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | lain_sdk/yaml/lua_parser/pythonCall.py | rmrf/lain-sdk | b6623948ae25aa4bf4982a6bf755db200cc7f005 | [
"MIT"
] | null | null | null | import lupa
from lupa import LuaRuntime
lua = LuaRuntime(unpack_returned_tuples=True)
fileName = "test_json/3.json"
repo_name = "aaa"
meta_version = "bbbb"
comd = ""
comd += "fileName = " + "'"+ fileName +"'\n"
comd += "repo_name = " + "'"+ repo_name +"'\n"
comd += "meta_version = " + "'"+ meta_version +"'\n"
prin... | 18.766667 | 52 | 0.632327 | 76 | 563 | 4.565789 | 0.486842 | 0.069164 | 0.074928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.133215 | 563 | 29 | 53 | 19.413793 | 0.709016 | 0.053286 | 0 | 0 | 0 | 0 | 0.304511 | 0.095865 | 0.166667 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01f72bd21f2a381c2c81de43a8ad15b68badbae6 | 4,917 | py | Python | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py | tr3ck3r/linklight | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# (c) 2017, Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from copy import deepcopy
from ansibl... | 36.969925 | 106 | 0.548709 | 563 | 4,917 | 4.563055 | 0.268206 | 0.066174 | 0.021409 | 0.028026 | 0.360841 | 0.352666 | 0.341767 | 0.330479 | 0.317244 | 0.245232 | 0 | 0.008469 | 0.351637 | 4,917 | 132 | 107 | 37.25 | 0.797365 | 0.082774 | 0 | 0.204082 | 0 | 0 | 0.109753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091837 | false | 0 | 0.05102 | 0.030612 | 0.27551 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01f740df8599560ff474d7854131e8adb9839b1d | 160 | py | Python | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC049/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | S = input()
S = S.replace("eraser", "").replace("erase", "").replace("dreamer", "").replace("dream", "")
if len(S) == 0:
print("YES")
else:
print("NO")
| 22.857143 | 92 | 0.53125 | 21 | 160 | 4.047619 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.15625 | 160 | 6 | 93 | 26.666667 | 0.622222 | 0 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01f86d27aeb709342e960d73672dfac7c9005b9a | 10,879 | py | Python | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 95 | 2018-06-05T10:49:32.000Z | 2019-12-31T11:07:36.000Z | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 22 | 2018-06-05T10:58:59.000Z | 2020-07-31T12:13:19.000Z | jdcloud_cli/controllers/services/ossopenapi.py | Tanc009/jdcloud-cli | 4e11de77c68501f44e7026c0ad1c24e5d043197e | [
"Apache-2.0"
] | 21 | 2018-06-04T12:50:27.000Z | 2020-11-05T10:55:28.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 56.958115 | 1,684 | 0.641143 | 1,271 | 10,879 | 5.426436 | 0.272227 | 0.049587 | 0.022329 | 0.027548 | 0.452806 | 0.452806 | 0.452806 | 0.435842 | 0.435842 | 0.427142 | 0 | 0.019157 | 0.18908 | 10,879 | 190 | 1,685 | 57.257895 | 0.762639 | 0.058277 | 0 | 0.621795 | 0 | 0.064103 | 0.444173 | 0.259582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032051 | false | 0 | 0.096154 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01fa933ff3cf055d54e76aea1d31cfc730d35ab9 | 2,444 | py | Python | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 13 | 2021-07-10T04:36:17.000Z | 2022-03-03T10:50:05.000Z | tools/perf/scripts/python/stat-cpi.py | fergy/aplit_linux-5 | a6ef4cb0e17e1eec9743c064e65f730c49765711 | [
"MIT"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | # SPDX-License-Identifier: GPL-2.0
from __future__ import print_function
data = {}
times = []
threads = []
cpus = []
def get_key(time, event, cpu, thread):
return "%d-%s-%d-%d" % (time, event, cpu, thread)
def store_key(time, cpu, thread):
if (time not in times):
times.append(time)
if (... | 30.55 | 119 | 0.584697 | 353 | 2,444 | 3.963173 | 0.189802 | 0.173696 | 0.096498 | 0.075054 | 0.669764 | 0.636883 | 0.571122 | 0.52609 | 0.49035 | 0.436026 | 0 | 0.016111 | 0.263502 | 2,444 | 79 | 120 | 30.936709 | 0.761111 | 0.259002 | 0 | 0.181818 | 0 | 0 | 0.069119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.022727 | 0.022727 | 0.022727 | 0.340909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01fa9fa16e7ec6eb680b54dc81280b527fab92e8 | 751 | py | Python | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | lesson-2/task2.py | GintoGloss/GeekUniversity-Python | b30da872bd5c68905ab66485ca06bdf3008b3995 | [
"Unlicense"
] | null | null | null | # 2. Для списка реализовать обмен значений соседних элементов, т.е. Значениями обмениваются элементы с индексами 0 и
# 1, 2 и 3 и т.д. При нечетном количестве элементов последний сохранить на своем месте. Для заполнения списка
# элементов необходимо использовать функцию input().
my_list = []
list_len = input("Сколько ... | 39.526316 | 116 | 0.723036 | 119 | 751 | 4.411765 | 0.470588 | 0.125714 | 0.08381 | 0.068571 | 0.066667 | 0.066667 | 0.066667 | 0 | 0 | 0 | 0 | 0.017572 | 0.166445 | 751 | 18 | 117 | 41.722222 | 0.821086 | 0.363515 | 0 | 0.166667 | 0 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01fde946914f4c6f922ba5d95ad8427ac784b8c5 | 1,759 | py | Python | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | omniinsight/objs.py | omnibuildplatform/omni-insight | 8a83ac5742a41c07c7ee3f442c2e104b026aa484 | [
"MulanPSL-1.0"
] | null | null | null | import os
import yaml
class ProjectData:
def __init__(self, name, sig):
self.name = name
self.sig = sig
class RpmData:
def __init__(self, name):
self.name = name
self.id = ''
self.short_name = ''
self.arch = ''
self.group = ''
self.description ... | 25.867647 | 67 | 0.528709 | 180 | 1,759 | 4.972222 | 0.227778 | 0.080447 | 0.053631 | 0.050279 | 0.069274 | 0.069274 | 0.069274 | 0.069274 | 0 | 0 | 0 | 0 | 0.351904 | 1,759 | 67 | 68 | 26.253731 | 0.785088 | 0 | 0 | 0.196429 | 0 | 0 | 0.086981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01fe3b13e6d2f50b47795caf8363733e1ca35753 | 812 | py | Python | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/coin-change/coin-change-cache.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import functools
def count_ways(coins, total):
length = len(coins)
@functools.lru_cache(maxsize=None)
def _solve(index, subtot):
value = coins[index]
return sum(solve(index + 1, next_subtot)
for next_subtot in range(subtot, -1, -value))
def ... | 21.945946 | 64 | 0.598522 | 104 | 812 | 4.5 | 0.442308 | 0.08547 | 0.102564 | 0.081197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013722 | 0.28202 | 812 | 36 | 65 | 22.555556 | 0.789022 | 0.025862 | 0 | 0 | 0 | 0 | 0.034177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.038462 | 0 | 0.461538 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01fe4da65b5536a35e63367696f21e9c251539ba | 4,686 | py | Python | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | WebCrawler/WebCrawler.py | chenyz2000/MiniProjects | 33182e6b98190cd72aed228ab6c4b64a8ea4ebdb | [
"MIT"
] | null | null | null | import math
import random
import time
import re
from queue import Queue
import urllib.request
import urllib.error
import jieba
from bs4 import BeautifulSoup
urlSet = set()
urlList = []
doc = 0
que = Queue()
user_agents = [
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.... | 33.234043 | 119 | 0.532224 | 634 | 4,686 | 3.87224 | 0.317035 | 0.010998 | 0.019552 | 0.022403 | 0.123829 | 0.062729 | 0.028513 | 0.020367 | 0 | 0 | 0 | 0.067317 | 0.321596 | 4,686 | 140 | 120 | 33.471429 | 0.704939 | 0.109902 | 0 | 0.096491 | 0 | 0.04386 | 0.155888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.017544 | 0.078947 | 0 | 0.114035 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01ff0fb86e36d267d898975db026d9e74086232c | 7,398 | py | Python | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | 63 | 2021-03-30T12:09:40.000Z | 2022-03-04T14:30:11.000Z | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | null | null | null | dags/dop/airflow_module/operator/dbt_k8_operator.py | bytecodeio/google_data_services_template | 08b64972e9899971d5c4f892480aa0c067b53c3b | [
"MIT"
] | 8 | 2021-03-30T12:15:55.000Z | 2021-08-22T14:25:30.000Z | import logging
import os
from typing import List, Dict
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.sensors.base_sensor_operator import apply_defaults
from dop.component.configuration.env import env_config
from dop.airflow_module.operator import dbt_operator_helper
... | 36.264706 | 147 | 0.598946 | 865 | 7,398 | 4.865896 | 0.285549 | 0.047042 | 0.033262 | 0.025659 | 0.156332 | 0.075077 | 0.059397 | 0.059397 | 0.044191 | 0.018532 | 0 | 0.001165 | 0.303731 | 7,398 | 203 | 148 | 36.44335 | 0.815958 | 0.177751 | 0 | 0.055556 | 0 | 0.013889 | 0.226285 | 0.100927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.048611 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01ff66c7fe5c77fb55b20587a4618914f352a1af | 3,471 | py | Python | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | birthday.py | jordanvtskier12/Birthday-quiz | 8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53 | [
"MIT"
] | null | null | null | """
birthday.py
Author: Jordan
Credit: none
Assignment:
Your program will ask the user the following questions, in this order:
1. Their name.
2. The name of the month they were born in (e.g. "September").
3. The year they were born in (e.g. "1962").
4. The day they were born on (e.g. "11").
If the user's birthday fe... | 33.057143 | 139 | 0.673869 | 579 | 3,471 | 4.037997 | 0.177893 | 0.071856 | 0.053892 | 0.102652 | 0.670231 | 0.627887 | 0.590676 | 0.469204 | 0.389222 | 0.355004 | 0 | 0.041862 | 0.201671 | 3,471 | 105 | 140 | 33.057143 | 0.801877 | 0.228464 | 0 | 0 | 0 | 0 | 0.366904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf00295358fe63143dc1908bc85278216ed3616f | 5,093 | py | Python | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | 1 | 2022-03-24T14:15:11.000Z | 2022-03-24T14:15:11.000Z | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | null | null | null | models/dyn_model.py | zhouxian/GNS-PyTorch | c2401e11cfaee06c2108369dc55e15d8a2b52a7c | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from config import _C as C
from models.layers.GNN_dmwater import GraphNet
from scipy import spatial
import numpy as np
import utils
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.node_dim_in = C.NET.NODE... | 36.378571 | 106 | 0.591793 | 653 | 5,093 | 4.376723 | 0.229709 | 0.06648 | 0.088174 | 0.056683 | 0.227782 | 0.175647 | 0.130861 | 0.130861 | 0.130861 | 0.130861 | 0 | 0.009744 | 0.294718 | 5,093 | 140 | 107 | 36.378571 | 0.785913 | 0.039073 | 0 | 0.133333 | 0 | 0 | 0.016564 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 1 | 0.038095 | false | 0 | 0.07619 | 0 | 0.152381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf02ba4cab7446a1e4a8e195ce66a394e9365faf | 1,224 | py | Python | reuse_model_layer.py | MorvanZhou/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | 193 | 2019-10-22T07:15:34.000Z | 2022-03-30T12:45:55.000Z | reuse_model_layer.py | LAJsisyphean/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | null | null | null | reuse_model_layer.py | LAJsisyphean/Tensorflow2-Tutorial | 871c627786d557f04db2dc5334da664a314d85f7 | [
"Apache-2.0"
] | 51 | 2019-11-06T12:52:41.000Z | 2022-03-30T07:31:45.000Z | from tensorflow import keras
import numpy as np
data_x = np.random.normal(size=[1000, 1])
noise = np.random.normal(size=[1000, 1]) * 0.2
data_y = data_x * 3. + 2. + noise
train_x, train_y = data_x[:900], data_y[:900]
test_x, test_y = data_x[900:], data_y[900:]
# define your reusable layers in here
l1 = keras.layers... | 28.465116 | 89 | 0.669935 | 198 | 1,224 | 4.005051 | 0.393939 | 0.025221 | 0.055486 | 0.045397 | 0.148802 | 0.100883 | 0.042875 | 0 | 0 | 0 | 0 | 0.065025 | 0.170752 | 1,224 | 43 | 90 | 28.465116 | 0.716256 | 0.093137 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.206897 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf031927f694b8c064e8a7f2a449722095468391 | 624 | py | Python | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | rainbow.py | Mizzlr/architect | 0edede4a07d0d8ad8976098705480b23382306bc | [
"MIT"
] | null | null | null | import colorama
def stringify(obj):
if not isinstance(obj, str):
obj = str(obj)
return obj
def red(obj):
return colorama.Fore.RED + stringify(obj) + "\033[39m"
def cyan(obj):
return colorama.Fore.CYAN + stringify(obj) + "\033[39m"
def green(obj):
return colorama.Fore.GREEN + stringif... | 17.333333 | 62 | 0.650641 | 87 | 624 | 4.666667 | 0.229885 | 0.17734 | 0.251232 | 0.310345 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06012 | 0.200321 | 624 | 35 | 63 | 17.828571 | 0.753507 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0 | 0.052632 | 0.368421 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
bf03e63169f4a69575f56090cf3ef31b53f95eee | 158 | py | Python | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | owstk/analysis/export.py | Tfitzpatrick846/OWSTK | dfce0fad56c0093c2c9cf45952cb3a0958e94706 | [
"CNRI-Python"
] | null | null | null | """Export data"""
from scipy.io import savemat
def mat(filename, mdict):
"""Export dictionary to .mat file for MATLAB"""
savemat(filename, mdict)
| 15.8 | 51 | 0.677215 | 21 | 158 | 5.095238 | 0.761905 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 158 | 9 | 52 | 17.555556 | 0.835938 | 0.335443 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
bf0473077d1f391cb46585a278833cc7fc757836 | 1,932 | py | Python | usage/python/tools/source/globus/usage/cwscorev2packet.py | jtfrey/globus-toolkit | ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d | [
"Apache-2.0"
] | 44 | 2015-02-04T22:01:05.000Z | 2021-01-27T21:18:47.000Z | usage/python/tools/source/globus/usage/cwscorev2packet.py | jtfrey/globus-toolkit | ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d | [
"Apache-2.0"
] | 69 | 2015-04-07T16:07:26.000Z | 2020-06-17T20:00:34.000Z | usage/python/tools/source/globus/usage/cwscorev2packet.py | ellert/globus-toolkit | 14761278bf048b0d9bd3d46ab4c3c987b968f2d3 | [
"Apache-2.0"
] | 51 | 2015-04-07T14:29:47.000Z | 2021-09-23T08:44:18.000Z | # Copyright 1999-2009 University of Chicago
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 32.745763 | 78 | 0.628882 | 235 | 1,932 | 5.07234 | 0.506383 | 0.050336 | 0.012584 | 0.013423 | 0.126678 | 0.126678 | 0.120805 | 0.120805 | 0.120805 | 0.120805 | 0 | 0.013879 | 0.291408 | 1,932 | 58 | 79 | 33.310345 | 0.85683 | 0.544513 | 0 | 0 | 0 | 0.047619 | 0.412467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf06cfda750aba0e7c5ef121aee70cd1a696ccc5 | 15,124 | py | Python | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | src/mindsync/api_test.py | mindsync-ai/mindsync-api-python | 62ad96078c0e167279abe040852fcf22dab496ec | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest.mock import patch, AsyncMock, create_autospec, MagicMock
from mindsync.api import AsyncApi, MindsyncApiError, DEFAULT_BASE_URL
from aiohttp import ClientResponse, ClientConnectionError, FormData
from io import IOBase
API_KEY = 'an-api-key'
USER_ID = 'an-user-id'
RESPONSE_RV = dict(result... | 42.965909 | 138 | 0.656903 | 2,020 | 15,124 | 4.590099 | 0.084158 | 0.038827 | 0.079594 | 0.02912 | 0.829379 | 0.798965 | 0.77006 | 0.738999 | 0.698555 | 0.685397 | 0 | 0.004878 | 0.227453 | 15,124 | 351 | 139 | 43.088319 | 0.788685 | 0.005025 | 0 | 0.535433 | 0 | 0 | 0.117729 | 0.06036 | 0 | 0 | 0 | 0 | 0.192913 | 1 | 0.03937 | false | 0.015748 | 0.019685 | 0.015748 | 0.090551 | 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 |
bf06d9a54893683667a74e4a18de2351b9f5889b | 1,101 | py | Python | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | looker_prometheus_exporter/tests/test_metric_fetcher.py | nested-tech/looker-prometheus-exporter | 7352ea9ea6e5aab7049b39882c7b3832baafc18b | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch, MagicMock
from requests import Response
from looker_prometheus_exporter.looker_metric_fetcher import LookerMetricFetcher
from looker_prometheus_exporter.looker_auth import LookerAuthenticationError
class TestMetricFetcher(TestCase):
@patch("requests.... | 39.321429 | 114 | 0.749319 | 124 | 1,101 | 6.290323 | 0.483871 | 0.066667 | 0.092308 | 0.115385 | 0.158974 | 0.110256 | 0 | 0 | 0 | 0 | 0 | 0.005482 | 0.171662 | 1,101 | 27 | 115 | 40.777778 | 0.849781 | 0 | 0 | 0 | 0 | 0 | 0.182561 | 0.06267 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf07234d71c7b574935a5582101336be79944027 | 5,801 | py | Python | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | 1 | 2022-03-24T11:26:56.000Z | 2022-03-24T11:26:56.000Z | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | null | null | null | src/baseline/exnn/exnn/xnn.py | fau-is/gam_comparison | c47e8f8ced281e0a71b7959a211cb5b289ac7606 | [
"MIT"
] | null | null | null | import tensorflow as tf
from .base import BaseNet
class xNN(BaseNet):
"""
Explainable neural network (xNN).
xNN is based on the Explainable neural network (Joel et al. 2018) with the following implementation details:
1. Categorical variables should be first converted by one-hot encoding, and we dire... | 44.282443 | 197 | 0.666264 | 757 | 5,801 | 4.924703 | 0.326288 | 0.052307 | 0.037554 | 0.01529 | 0.136803 | 0.111052 | 0.07618 | 0.07618 | 0.07618 | 0.07618 | 0 | 0.025605 | 0.259438 | 5,801 | 130 | 198 | 44.623077 | 0.842179 | 0.513705 | 0 | 0.166667 | 0 | 0 | 0.006088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf0736d5b20e13bca565ff9aa02b56f4f4cdfd07 | 1,708 | py | Python | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | randomwordz/words.py | noyoshi/randomwordz | cc785456465abd2234a4449bb559374c28660814 | [
"BSD-3-Clause"
] | null | null | null | # https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package
# see above how to read in words from the files...
try:
import importlib.resources as pkg_resources
except ImportError:
# Try backported to PY<37 `importlib_resources`.
import importlib_resources as pkg_res... | 28.949153 | 100 | 0.580211 | 218 | 1,708 | 4.43578 | 0.394495 | 0.055843 | 0.046536 | 0.05274 | 0.282316 | 0.24302 | 0.164426 | 0.074457 | 0.074457 | 0 | 0 | 0.0075 | 0.297424 | 1,708 | 58 | 101 | 29.448276 | 0.798333 | 0.18911 | 0 | 0.190476 | 0 | 0 | 0.076135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.119048 | 0 | 0.380952 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf0a0817fceb6cb3452738d6ba612af45126de33 | 588 | py | Python | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/Exercicios/ex079.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | numeros = list()
while True:
digitado = (int(input('Digite os valores: ')))
if digitado not in numeros[:]:
print('Número adicionado com sucesso...')
else:
numeros.remove(digitado)
print('Erro! Valor já digitado')
numeros.append(digitado)
parada = str(input('Quer adicionar m... | 29.4 | 81 | 0.627551 | 75 | 588 | 4.92 | 0.56 | 0.0271 | 0.075881 | 0.097561 | 0.271003 | 0.271003 | 0.271003 | 0.271003 | 0.271003 | 0.271003 | 0 | 0 | 0.221088 | 588 | 20 | 82 | 29.4 | 0.805677 | 0 | 0 | 0.125 | 0 | 0 | 0.339559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf0d5faad287c2dfe0326066504afd8e72b3ba54 | 199 | py | Python | python-leetcode/sw_10_2.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | 12 | 2020-01-16T08:55:27.000Z | 2021-12-02T14:52:39.000Z | python-leetcode/sw_10_2.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | null | null | null | python-leetcode/sw_10_2.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | 1 | 2019-12-11T12:00:38.000Z | 2019-12-11T12:00:38.000Z | class Solution:
def numWays(self, n: int) -> int:
if n == 0: return 1
if n < 3: return n
f1, f2 = 1, 2
for _ in range(2, n):
f1, f2 = f2, (f1 + f2) % 1000000007
return f2
| 22.111111 | 41 | 0.517588 | 35 | 199 | 2.914286 | 0.542857 | 0.117647 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0.346734 | 199 | 8 | 42 | 24.875 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf0e7375f7aee88a0021d0ee0b3932c8be01309f | 3,403 | py | Python | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | eureka/S4_generate_lightcurves/clipping.py | afeinstein20/Eureka | 7c330086ff7978b81d0f6ebb83a88c0bee01dc50 | [
"MIT"
] | null | null | null | import numpy as np
from astropy.convolution import Box1DKernel, convolve
from astropy.stats import sigma_clip
def clip_outliers(data, log, wavelength, sigma=10, box_width=5, maxiters=5, fill_value='mask', verbose=False):
'''Find outliers in 1D time series.
Be careful when using this function on a time-seri... | 36.202128 | 161 | 0.685572 | 459 | 3,403 | 5.03268 | 0.337691 | 0.031169 | 0.028139 | 0.038095 | 0.245022 | 0.220779 | 0.190476 | 0.152381 | 0.12987 | 0.12987 | 0 | 0.010085 | 0.242433 | 3,403 | 94 | 162 | 36.202128 | 0.885958 | 0.600353 | 0 | 0.086957 | 0 | 0 | 0.05815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf0fb5acc22e80083158c297652c5fa26da2e18c | 5,697 | py | Python | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | rrhood.py | rayjustinhuang/BitesofPy | 03b694c5259ff607621419d9677c5caff90a6057 | [
"MIT"
] | null | null | null | from collections import defaultdict
import string
CHARACTERS = ['Red Riding Hood',
# we're omitting 'mother' here for simplicity
# (= substring grandmother)
('Grandmother', 'Grandma', 'Granny'),
'wolf', 'woodsman']
text = """
Once upon a time, there was a little... | 68.638554 | 259 | 0.72073 | 944 | 5,697 | 4.325212 | 0.384534 | 0.039677 | 0.054127 | 0.069802 | 0.098947 | 0.086701 | 0.062699 | 0.040656 | 0.040656 | 0.023512 | 0 | 0.000224 | 0.21485 | 5,697 | 83 | 260 | 68.638554 | 0.912587 | 0.081973 | 0 | 0.033898 | 0 | 0.40678 | 0.813091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.016949 | 0.050847 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf0fd2afe78b1e2ad990c12cd0e56c85a69e381d | 83 | py | Python | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | python.py | MjKay1/Pandas-and-Bokeh | 23e3a6fcd0301f7701c1c5720b86b81926f9fcbc | [
"Unlicense"
] | null | null | null | import pandas
data = pandas.read_csv('data/gapminder_gdp_oceania.csv')
print(data)
| 20.75 | 56 | 0.807229 | 13 | 83 | 4.923077 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 83 | 3 | 57 | 27.666667 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0.361446 | 0.361446 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bf101eee860699b761e7cd830f6392a50c600f29 | 3,164 | py | Python | EduSim/Envs/KSS/meta/Learner.py | bigdata-ustc/EduSim | 849eed229c24615e5f2c3045036311e83c22ea68 | [
"MIT"
] | 18 | 2019-11-11T03:45:35.000Z | 2022-02-09T15:31:51.000Z | EduSim/Envs/KSS/meta/Learner.py | ghzhao78506/EduSim | cb10e952eb212d8a9344143f889207b5cd48ba9d | [
"MIT"
] | 3 | 2020-10-23T01:05:57.000Z | 2021-03-16T12:12:24.000Z | EduSim/Envs/KSS/meta/Learner.py | bigdata-ustc/EduSim | 849eed229c24615e5f2c3045036311e83c22ea68 | [
"MIT"
] | 6 | 2020-06-09T21:32:00.000Z | 2022-03-12T00:25:18.000Z | # coding: utf-8
# 2019/11/26 @ tongshiwei
import numpy as np
import random
import math
import networkx as nx
from EduSim.Envs.meta import MetaLearner, MetaInfinityLearnerGroup, MetaLearningModel, Item
from EduSim.Envs.shared.KSS_KES.KS import influence_control
__all__ = ["Learner", "LearnerGroup"]
class LearningMo... | 29.849057 | 104 | 0.617573 | 355 | 3,164 | 5.202817 | 0.267606 | 0.097455 | 0.040606 | 0.032485 | 0.161343 | 0.08013 | 0.044396 | 0.044396 | 0 | 0 | 0 | 0.011082 | 0.286979 | 3,164 | 105 | 105 | 30.133333 | 0.807624 | 0.019595 | 0 | 0.113924 | 0 | 0 | 0.010006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.075949 | 0.050633 | 0.341772 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf12f48a688a99e455dd7e4337c4da0fd88a8ec6 | 4,727 | py | Python | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | 11 | 2016-06-29T11:54:42.000Z | 2020-11-02T00:09:41.000Z | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | 4 | 2016-06-29T12:11:25.000Z | 2017-03-21T15:24:32.000Z | src/ultros/core/storage/config/yaml_roundtrip.py | UltrosBot/Ultros3K | 3aac86beecf94ff1391ca993eafaaf55e513b965 | [
"Artistic-2.0"
] | null | null | null | # coding=utf-8
"""
Class for YAML-based (roundtrip) configurations
This is a mutable configuration that keeps track of both structure and comments, and allows you to add comments
in certain circumstances as well.
To make use of this, make sure you use the `fmt` argument of the `get_config()` function in the storage ... | 25.690217 | 119 | 0.632748 | 579 | 4,727 | 4.962003 | 0.286701 | 0.072398 | 0.092586 | 0.037591 | 0.140968 | 0.093978 | 0.046641 | 0 | 0 | 0 | 0 | 0.002573 | 0.259996 | 4,727 | 183 | 120 | 25.830601 | 0.818754 | 0.280939 | 0 | 0 | 0 | 0 | 0.034128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.362319 | false | 0 | 0.086957 | 0.130435 | 0.753623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
bf155524d39c386738d32b78d8657cf2e8ac4e0f | 293 | py | Python | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | clinicadl/utils/network/__init__.py | sophieloiz/clinicadl | d26a1c6ce4f6da9de59e3d15c27ae3be2d33bc9d | [
"MIT"
] | null | null | null | from .autoencoder.models import AE_Conv4_FC3, AE_Conv5_FC3
from .cnn.models import Conv4_FC3, Conv5_FC3, Stride_Conv5_FC3, resnet18
from .cnn.random import RandomArchitecture
from .vae.vanilla_vae import (
Vanilla3DdenseVAE,
Vanilla3DVAE,
VanillaDenseVAE,
VanillaSpatialVAE,
)
| 29.3 | 72 | 0.798635 | 36 | 293 | 6.25 | 0.527778 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.139932 | 293 | 9 | 73 | 32.555556 | 0.837302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bf157dc27a91e99f29c658a6382564b4f0e1a006 | 804 | py | Python | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | account/migrations/0006_auto_20201005_1534.py | huanhuashengling/exam | 2d6bb2ea5da905c76b748caef0733cc9afca7daf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.15 on 2020-10-05 07:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0005_auto_20180411_2311'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='nickname... | 28.714286 | 137 | 0.578358 | 85 | 804 | 5.329412 | 0.647059 | 0.059603 | 0.10596 | 0.13245 | 0.16777 | 0.16777 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0.278607 | 804 | 27 | 138 | 29.777778 | 0.715517 | 0.057214 | 0 | 0.380952 | 1 | 0 | 0.145503 | 0.030423 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf1590338f5ebdeb7ad55fecd78c338fd33c5131 | 1,492 | py | Python | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | 2021/4a.py | DanielDionne/advent_of_code | 891fd46b29a4eac2ef4ec1402df69dda10bd6c5d | [
"MIT"
] | null | null | null | import re
def mark(number, board):
for row in board:
for element in row:
if element[0] == number:
element[1] = True
def check(board):
# check rows
for row in board:
if all([e[1] == True for e in row]):
return True
# check columns
for colIndex... | 29.84 | 114 | 0.502681 | 181 | 1,492 | 4.143646 | 0.375691 | 0.032 | 0.032 | 0.052 | 0.042667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026172 | 0.385389 | 1,492 | 49 | 115 | 30.44898 | 0.791712 | 0.081769 | 0 | 0.210526 | 0 | 0 | 0.005865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0.026316 | 0.263158 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf17b2f0ea98563e28edc41e12b7db5fbfe9ce45 | 165 | py | Python | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | 2 | 2019-11-18T14:25:04.000Z | 2020-08-01T13:16:40.000Z | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | null | null | null | scheduler_service/api/v1/task/url.py | CoCongV/scheduler-service | c16ea8751b7259abe1b6bfa2e8e706aa2ea7e74a | [
"BSD-2-Clause"
] | null | null | null | # from sanic_restful import reqparse, Resource
# from scheduler_service.api import mongo_db
# url_parse = reqparse.RequestParser()
# url_parse.add_argument("name") | 27.5 | 46 | 0.8 | 22 | 165 | 5.727273 | 0.772727 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 165 | 6 | 47 | 27.5 | 0.857143 | 0.939394 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bf18bd5e5fa5284c1ee0a56f9ee6c1dd7b2dc30a | 5,509 | py | Python | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | 3 | 2022-03-24T22:09:12.000Z | 2022-03-29T23:16:21.000Z | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | 8 | 2022-03-15T20:49:43.000Z | 2022-03-29T17:45:04.000Z | scripts/python/plot_radiation_advection.py | lanl/phoebus | c570f42882c1c9e01e3bfe4b00b22e15a7a9992b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# © 2022. Triad National Security, LLC. All rights reserved. This
# program was produced under U.S. Government contract
# 89233218CNA000001 for Los Alamos National Laboratory (LANL), which
# is operated by Triad National Security, LLC for the U.S. Department
# of Energy/National Nuclear Securit... | 35.541935 | 136 | 0.697223 | 921 | 5,509 | 4.103149 | 0.335505 | 0.013231 | 0.035988 | 0.02117 | 0.18497 | 0.105319 | 0.04869 | 0.031754 | 0.031754 | 0.031754 | 0 | 0.029649 | 0.167363 | 5,509 | 154 | 137 | 35.772727 | 0.793983 | 0.305319 | 0 | 0.04 | 0 | 0 | 0.152082 | 0.017132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0 | 0.08 | 0 | 0.1 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf1aae88684e54295fc7d7c2d5ed877f7a14c648 | 157 | py | Python | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 4 | 2019-07-19T17:39:04.000Z | 2022-03-22T21:02:15.000Z | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 53 | 2019-08-04T14:25:40.000Z | 2022-03-26T20:30:55.000Z | admin/apps.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 3 | 2020-03-09T07:11:03.000Z | 2020-09-11T01:22:50.000Z | """
Konfigurace Django aplikace admin.
"""
from django.apps import AppConfig
class AdminConfig(AppConfig):
name = "admin"
verbose_name = "ÚPadmin"
| 15.7 | 34 | 0.713376 | 17 | 157 | 6.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178344 | 157 | 9 | 35 | 17.444444 | 0.860465 | 0.216561 | 0 | 0 | 0 | 0 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf1b6e4f46c1e4abb58543f89c8c94320cfe0136 | 764 | py | Python | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | 1 | 2017-02-22T18:22:39.000Z | 2017-02-22T18:22:39.000Z | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | TE-2/PL-4/BPrint/print1.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | # Import libraries BrotherPrint and socket
from brotherprint import BrotherPrint
import socket
# Establish socket connection
f_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
f_socket.connect(("172.16.133.157", 9100)) # Supply IP address of printer and port (default 9100)
printjob = BrotherPrint(f_soc... | 34.727273 | 99 | 0.734293 | 108 | 764 | 5.12037 | 0.592593 | 0.037975 | 0.065099 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.147906 | 764 | 21 | 100 | 36.380952 | 0.817204 | 0.454188 | 0 | 0 | 0 | 0 | 0.135065 | 0.080519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |