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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d624afc005581dffbfc08e82838a1665027d366a | 12,517 | py | Python | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null |
import cv2
class color:
def __init__(self, table, use):
self.table = table
self.use = use
return
def process(self, item):
if(self.use=='rgb'):
size = (64,64)
image = cv2.imread(item['path'])
if(not isinstance(image, numpy.n... | 33.026385 | 132 | 0.502596 | 1,269 | 12,517 | 4.911742 | 0.109535 | 0.035938 | 0.0369 | 0.007701 | 0.841168 | 0.819028 | 0.794321 | 0.789668 | 0.770897 | 0.746992 | 0 | 0.036442 | 0.333546 | 12,517 | 379 | 133 | 33.026385 | 0.710741 | 0.450427 | 0 | 0.858108 | 0 | 0 | 0.045329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.155405 | 0.027027 | 0 | 0.094595 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
d624ba8318c597ce97853f834699f104f42b757d | 545 | py | Python | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | from django.db import models
class Post(models.Model):
"""
Model for Charity or Event Post
"""
POST_KINDS = [(kind, kind) for kind in ["charity", "event"]]
title = models.CharField(max_length=200)
content = models.TextField()
published_date = models.DateField()
created_date = models.... | 22.708333 | 64 | 0.638532 | 65 | 545 | 5.153846 | 0.6 | 0.053731 | 0.107463 | 0.143284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012225 | 0.249541 | 545 | 23 | 65 | 23.695652 | 0.806846 | 0.056881 | 0 | 0 | 0 | 0 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.785714 | 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 | 1 | 0 | 0 | 1 |
d62529fa1e4bca329d5371d9c6d83cde2120ae8f | 251 | py | Python | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | 2 | 2020-04-27T19:54:26.000Z | 2022-03-30T10:06:29.000Z | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | null | null | null | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | null | null | null | """
GraphQL queries
"""
from graphql import GraphQLObjectType
from .system_queries import LatestQuery
# pylint: disable=invalid-name
RootQueryType = GraphQLObjectType(
name='Queries',
fields=lambda: {
'latest': LatestQuery,
}
)
| 15.6875 | 39 | 0.705179 | 23 | 251 | 7.652174 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191235 | 251 | 15 | 40 | 16.733333 | 0.866995 | 0.179283 | 0 | 0 | 0 | 0 | 0.065657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
d628384096a682a0c64ae1ad0b4d5405798588dd | 4,781 | py | Python | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | import re
from tensorflow.keras.utils import to_categorical
from collections import Counter
import pandas as pd
import torch
from sklearn.model_selection import train_test_split, StratifiedKFold
from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler
import numpy as np
###############... | 45.971154 | 242 | 0.708011 | 607 | 4,781 | 5.260297 | 0.192751 | 0.039461 | 0.075164 | 0.063577 | 0.491701 | 0.455997 | 0.455997 | 0.411525 | 0.411525 | 0.390229 | 0 | 0.011017 | 0.16461 | 4,781 | 103 | 243 | 46.417476 | 0.788433 | 0.22192 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 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 |
d628eb2618c4fa8efe97f0a1814ba041871e5417 | 9,733 | py | Python | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | null | null | null | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | null | null | null | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | 1 | 2021-12-23T19:10:39.000Z | 2021-12-23T19:10:39.000Z | import datetime
import os
import pytz
from prometheus_client import CollectorRegistry, Gauge, pushadd_to_gateway
class PrometheusMetrics:
def __init__(self, logger):
self.logger = logger
self.registry = CollectorRegistry()
self.pushgateway = os.environ.get("PUSHGATEWAY", "localhost:9091")... | 39.245968 | 98 | 0.636803 | 1,063 | 9,733 | 5.649106 | 0.182502 | 0.050958 | 0.03597 | 0.045962 | 0.170192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016919 | 0.259118 | 9,733 | 247 | 99 | 39.404858 | 0.815837 | 0.116716 | 0 | 0.147059 | 0 | 0 | 0.275036 | 0.04733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.023529 | 0.005882 | 0.158824 | 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 |
d62a7b5bab3d8a5d3f5a1aff360bc9d1b2ac9814 | 2,305 | py | Python | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell-tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | 1 | 2021-08-13T20:40:54.000Z | 2021-08-13T20:40:54.000Z | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | import mcell as m
from parameters import *
from subsystem import *
from geometry import *
# ---- observables ----
viz_output = m.VizOutput(
mode = m.VizMode.ASCII,
output_files_prefix = './viz_data/seed_' + str(get_seed()).zfill(5) + '/Scene',
every_n_timesteps = 1
)
count_a_Cube1 = m.Count(
name = ... | 22.598039 | 102 | 0.688503 | 332 | 2,305 | 4.361446 | 0.168675 | 0.052486 | 0.104972 | 0.118094 | 0.653315 | 0.563536 | 0.515193 | 0.429558 | 0.352901 | 0.145718 | 0 | 0.019053 | 0.203037 | 2,305 | 101 | 103 | 22.821782 | 0.769189 | 0.0282 | 0 | 0.333333 | 0 | 0 | 0.074654 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 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 |
d62a8b24a611540b7442ff5bbdf17e7e9ceae229 | 1,372 | py | Python | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | #custom_logger.py
#Leonardo Duarte
import logging
#Logging levels
INFO = logging.INFO
DEBUG = logging.DEBUG
WARNING = logging.WARNING
ERROR = logging.ERROR
def setup(name, **kwargs):
log_level=kwargs.get('log_level',INFO)
formatter = logging.Formatter(fmt='%(asctime)s templatetool %(levelname)s: %(... | 26.384615 | 121 | 0.560496 | 167 | 1,372 | 4.550898 | 0.377246 | 0.059211 | 0.075 | 0.090789 | 0.076316 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.26312 | 1,372 | 51 | 122 | 26.901961 | 0.748764 | 0.032799 | 0 | 0.111111 | 0 | 0 | 0.124622 | 0.030211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.022222 | 0 | 0.133333 | 0.044444 | 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 |
d62b77751af6dbe89d65c59649c018081395e8a3 | 4,403 | py | Python | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 125 | 2015-03-04T09:14:46.000Z | 2022-03-29T07:46:12.000Z | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 1,018 | 2015-01-04T16:01:29.000Z | 2022-03-31T19:23:09.000Z | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 117 | 2015-01-10T08:05:52.000Z | 2022-01-18T05:16:51.000Z | import configparser
import os
import os.path as op
import requests
import tempfile
import threading
import traceback
import uuid
from CPAC.info import __version__, ga_tracker
udir = op.expanduser('~')
if udir=='/':
udir = tempfile.mkdtemp()
temp_dir = True
tracking_path = op.join(udir, '.cpac')
def get_or_c... | 25.16 | 77 | 0.556893 | 504 | 4,403 | 4.746032 | 0.373016 | 0.035117 | 0.01505 | 0.020067 | 0.137124 | 0.063545 | 0.02592 | 0 | 0 | 0 | 0 | 0.005086 | 0.330229 | 4,403 | 174 | 78 | 25.304598 | 0.806036 | 0.192823 | 0 | 0.185484 | 0 | 0 | 0.098318 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 1 | 0.048387 | false | 0 | 0.072581 | 0 | 0.185484 | 0.008065 | 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 |
d62bdce02dfde4fdc7a6daa118d20a03c2cdd67f | 47 | py | Python | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | from temper import TemperDevice, TemperHandler
| 23.5 | 46 | 0.87234 | 5 | 47 | 8.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 47 | 1 | 47 | 47 | 0.97619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
d62f4ad8fee791fde617fe8a8fcaa03316e1676c | 894 | py | Python | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 25 | 2018-04-12T15:56:47.000Z | 2021-05-17T04:31:20.000Z | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 72 | 2017-06-21T10:59:05.000Z | 2018-03-22T08:52:18.000Z | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2017-06-16T08:17:03.000Z | 2019-10-03T09:49:46.000Z | import pytest
from mr_provisioner.models import Token
from werkzeug.datastructures import Headers
@pytest.fixture(scope='function')
def token_nonadmin(db, user_nonadmin):
token = Token(user_nonadmin.id, None, 'api test token')
db.session.add(token)
db.session.commit()
db.session.refresh(token)
re... | 23.526316 | 59 | 0.715884 | 121 | 894 | 5.165289 | 0.264463 | 0.0864 | 0.1152 | 0.1664 | 0.6368 | 0.6368 | 0.5744 | 0.4896 | 0.3712 | 0.3712 | 0 | 0 | 0.158837 | 894 | 37 | 60 | 24.162162 | 0.831117 | 0 | 0 | 0.592593 | 0 | 0 | 0.116331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.407407 | 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 | 0 | 0 | 0 | 1 |
d630e32828aaab8dd2ad6bfc505ea6fcac010e08 | 7,509 | py | Python | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | 2 | 2017-10-12T03:01:21.000Z | 2022-02-03T01:15:20.000Z | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | null | null | null | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import json
from urllib import parse
from datetime import datetime
import time
def construct_link(origin, destination):
o = parse.urlparse(origin)
if destination.startswith('http'):
return destination
elif destination.startswith('/'):
... | 27.108303 | 104 | 0.536023 | 873 | 7,509 | 4.564719 | 0.305842 | 0.020075 | 0.009034 | 0.027604 | 0.089837 | 0.067252 | 0.049184 | 0.020075 | 0 | 0 | 0 | 0.012661 | 0.326808 | 7,509 | 277 | 105 | 27.108303 | 0.775668 | 0.08643 | 0 | 0.192513 | 0 | 0 | 0.189634 | 0.007165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026738 | false | 0.058824 | 0.032086 | 0 | 0.139037 | 0.069519 | 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 |
d631ffddb2895fc51dd1aaa5d9e97af2b59d8562 | 3,763 | py | Python | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 8 | 2020-04-29T04:59:45.000Z | 2022-03-20T01:26:21.000Z | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 2 | 2021-04-30T21:12:58.000Z | 2022-03-21T22:18:50.000Z | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 4 | 2020-05-05T01:18:34.000Z | 2022-03-22T07:20:12.000Z | from typing import Optional
from overrides import overrides
import numpy as np
import torch
from allennlp.training.metrics.metric import Metric
class FeverScore(Metric):
def __init__(self, nei_label=0, max_select=5) -> None:
self.correct_count = 0.
self.total_count = 0.
self.correct_evid... | 37.257426 | 158 | 0.570821 | 405 | 3,763 | 5.032099 | 0.22963 | 0.10844 | 0.07949 | 0.053974 | 0.18842 | 0.065751 | 0.048086 | 0.048086 | 0.048086 | 0.048086 | 0 | 0.01336 | 0.343609 | 3,763 | 100 | 159 | 37.63 | 0.811741 | 0.08557 | 0 | 0.054795 | 0 | 0 | 0.005889 | 0 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.054795 | false | 0 | 0.068493 | 0 | 0.164384 | 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 |
d6334e66d12b35aa3a34254a0681cdb454e2df42 | 928 | py | Python | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | 1 | 2020-06-15T18:47:26.000Z | 2020-06-15T18:47:26.000Z | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | null | null | null | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | 3 | 2020-06-07T04:46:10.000Z | 2020-07-04T12:04:22.000Z | import requests
import getpass
import pickle
import os
import sys
# import webbrowser
# import time
home = os.path.expanduser('~/SPC')
# print(home)
# $ip=$_SERVER['REMOTE_ADDR']
if os.path.isfile(home+'/Pickles/url.pkl'):
fp = open(home+'/Pickles/url.pkl','rb')
url = pickle.load(fp)
else:
exit("First set the serve... | 24.421053 | 60 | 0.682112 | 149 | 928 | 4.228188 | 0.52349 | 0.052381 | 0.044444 | 0.053968 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02716 | 0.127155 | 928 | 38 | 61 | 24.421053 | 0.750617 | 0.251078 | 0 | 0.083333 | 0 | 0 | 0.304094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.208333 | 0 | 0.208333 | 0.083333 | 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 |
d633c093faac664c8098b15521bd8dae8ec5b536 | 565 | py | Python | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | null | null | null | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | null | null | null | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T08:10:11.000Z | 2022-03-08T08:10:11.000Z | """
Install the pysteps data in a test environment and create a pystepsrc
configuration file pointing to that data.
"""
if __name__ == "__main__":
import argparse
from pysteps.datasets import create_default_pystepsrc, download_pysteps_data
parser = argparse.ArgumentParser(description="Install pysteps data... | 29.736842 | 80 | 0.750442 | 73 | 565 | 5.520548 | 0.561644 | 0.136476 | 0.084367 | 0.104218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171681 | 565 | 18 | 81 | 31.388889 | 0.861111 | 0.19646 | 0 | 0 | 0 | 0 | 0.17713 | 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 | 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 |
d6353235caf92485faaed3962ae13a7db0c3c200 | 4,723 | py | Python | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | 2 | 2019-12-24T13:56:44.000Z | 2020-05-21T23:23:16.000Z | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | 1 | 2020-01-05T16:30:07.000Z | 2020-01-19T14:19:55.000Z | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@File : commander.py
@Time : 2019-04-20 11:04
@Author : Bonan Ruan
@Desc :
"""
from core.executer import Executer
from core.builder import Builder
from core.poc_manager import PoCManager
import utils.utils as utils
import utils.consts as consts
import time
clas... | 32.798611 | 87 | 0.56913 | 569 | 4,723 | 4.511424 | 0.224956 | 0.042852 | 0.025711 | 0.046747 | 0.323335 | 0.305415 | 0.176081 | 0.173744 | 0.089599 | 0.089599 | 0 | 0.007651 | 0.335804 | 4,723 | 143 | 88 | 33.027972 | 0.81001 | 0.083422 | 0 | 0.27619 | 0 | 0 | 0.093163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.057143 | 0 | 0.266667 | 0.019048 | 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 |
d6357aa58a908129b11e43500c1352a82061c155 | 221 | py | Python | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | #Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Simple Fun #8: Kill K-th Bit
#Problem level: 7 kyu
def kill_kth_bit(n, k):
b = list(bin(n))[2:]
if len(b)>=k:
b[(-1)*k]='0'
return int(''.join(b),2)
| 20.090909 | 43 | 0.574661 | 41 | 221 | 3.04878 | 0.731707 | 0.032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.221719 | 221 | 10 | 44 | 22.1 | 0.69186 | 0.420814 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d63694f86e4ed918545d1903e9b03048a216a8c1 | 11,872 | py | Python | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 309 | 2018-03-03T22:07:59.000Z | 2022-03-26T08:15:58.000Z | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 125 | 2018-02-27T22:54:03.000Z | 2021-11-05T10:50:15.000Z | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 60 | 2018-04-30T20:54:24.000Z | 2022-02-21T22:41:46.000Z |
# coding: utf-8
# # Table of Contents
# <p><div class="lev1 toc-item"><a href="#Easily-creating-MAB-problems" data-toc-modified-id="Easily-creating-MAB-problems-1"><span class="toc-item-num">1 </span>Easily creating MAB problems</a></div><div class="lev2 toc-item"><a href="#Constant-arms" data-toc-modifie... | 29.754386 | 2,979 | 0.667284 | 2,005 | 11,872 | 3.913217 | 0.192519 | 0.023197 | 0.013255 | 0.019883 | 0.440352 | 0.385037 | 0.295182 | 0.237828 | 0.208896 | 0.178817 | 0 | 0.046161 | 0.144205 | 11,872 | 398 | 2,980 | 29.829146 | 0.726083 | 0.717823 | 0 | 0.242424 | 0 | 0 | 0.05213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.075758 | 0.015152 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d637a2b8924bbeab40c70b956e11139d73b51255 | 24,464 | py | Python | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | # state file generated using paraview version 5.8.0
# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------
# trace generated using paraview version 5.8.0
#
# To ensure correct image size when batch p... | 46.333333 | 209 | 0.768762 | 2,419 | 24,464 | 7.690368 | 0.163704 | 0.022039 | 0.013707 | 0.010106 | 0.33844 | 0.302156 | 0.293394 | 0.263345 | 0.202064 | 0.188948 | 0 | 0.113458 | 0.092462 | 24,464 | 527 | 210 | 46.421252 | 0.724439 | 0.24861 | 0 | 0.012987 | 1 | 0 | 0.094187 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006494 | null | null | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d63812b8fe6e16b469f6f47a426cfd5513175e5a | 1,642 | py | Python | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | null | null | null | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | 9 | 2021-04-01T17:10:50.000Z | 2022-03-24T04:58:44.000Z | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | null | null | null | from ansible.errors import AnsibleError
class FilterModule(object):
def filters(self):
return {
'combine_dict_list': self.combine_dict_list,
'search_from_dict_list': self.search_from_dict_list,
'search_item_from_dict_list': self.search_item_from_dict_list,
}
... | 34.93617 | 118 | 0.576736 | 214 | 1,642 | 4.168224 | 0.168224 | 0.152466 | 0.070628 | 0.071749 | 0.585202 | 0.507848 | 0.380045 | 0.350897 | 0.350897 | 0.350897 | 0 | 0.001795 | 0.321559 | 1,642 | 46 | 119 | 35.695652 | 0.798923 | 0 | 0 | 0.4 | 0 | 0 | 0.059074 | 0.028624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.025 | 0.025 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d63938f44216c738332a0d7aa25f8974f8dd7bb6 | 309 | py | Python | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | 5 | 2021-03-10T21:22:31.000Z | 2022-03-23T04:38:07.000Z | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | 59 | 2021-02-13T10:08:23.000Z | 2022-03-14T19:43:55.000Z | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | null | null | null | """Tests for ru_RU numbers humanizing."""
from pytest_mock import MockerFixture
import human_readable
def test_int_word(activate_en_abbr: MockerFixture) -> None:
"""It returns int word number."""
expected = "12.3 B"
result = human_readable.int_word(12345591313)
assert result == expected
| 22.071429 | 59 | 0.731392 | 41 | 309 | 5.292683 | 0.731707 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0.171521 | 309 | 13 | 60 | 23.769231 | 0.792969 | 0.203884 | 0 | 0 | 0 | 0 | 0.025532 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d63d3dd54daeaac526e70dbb33215bb44fc3d009 | 733 | py | Python | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | 2 | 2020-08-08T02:02:04.000Z | 2020-12-22T09:12:09.000Z | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | null | null | null | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | null | null | null | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
from scrapy.pipelines.files import FilesPipeli... | 31.869565 | 66 | 0.721692 | 98 | 733 | 5.346939 | 0.612245 | 0.049618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177353 | 733 | 22 | 67 | 33.318182 | 0.868988 | 0.306958 | 0 | 0 | 0 | 0 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 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 |
d63de35a7cbc93490b36f2a69557bc91a57c22d4 | 633 | py | Python | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
result = ListNode(val=-1)
previous = result
while l1 is not None ... | 26.375 | 68 | 0.537125 | 79 | 633 | 4.253165 | 0.35443 | 0.142857 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.382306 | 633 | 23 | 69 | 27.521739 | 0.815857 | 0.053712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.277778 | 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 |
d6402fece1eb7235af268a48c88cea7e7009af96 | 1,778 | py | Python | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.pvpTestv2
from pandac.PandaModules import Point3, VBase3
objectStruct = {'Objects': {'1128540775.81jubutle... | 296.333333 | 1,507 | 0.662542 | 243 | 1,778 | 4.831276 | 0.436214 | 0.030664 | 0.030664 | 0.027257 | 0.279387 | 0.279387 | 0.132879 | 0.132879 | 0.07155 | 0.07155 | 0 | 0.263319 | 0.081552 | 1,778 | 6 | 1,507 | 296.333333 | 0.455603 | 0.120922 | 0 | 0 | 0 | 0 | 0.560616 | 0.390635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d64364d5d663ab2f6e187dde65f5c3f8303a30c3 | 954 | py | Python | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:22.000Z | 2021-11-19T02:56:22.000Z | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T03:42:58.000Z | 2022-03-29T16:32:16.000Z | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:28.000Z | 2021-11-19T02:56:28.000Z | # External packages
import sys
import pandas as pd
import ast
import os
# Internal modules
import paperscraper.config as config
def main():
# Read input file
df_scraped_input = pd.read_csv(config.path_postprocessing_output, sep='\t', index_col=0)
unique_authors = set()
for index, row in df_scraped_... | 26.5 | 116 | 0.659329 | 132 | 954 | 4.545455 | 0.583333 | 0.086667 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002782 | 0.246331 | 954 | 35 | 117 | 27.257143 | 0.831711 | 0.191824 | 0 | 0 | 0 | 0 | 0.044503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.238095 | 0 | 0.285714 | 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 |
d64364dcbe1dd315e49d5ec2ee8c732d5c9f2c9d | 2,511 | py | Python | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 14 | 2020-06-05T09:30:42.000Z | 2022-01-19T00:26:48.000Z | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 6 | 2020-06-09T14:05:21.000Z | 2021-03-18T13:55:15.000Z | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 1 | 2020-06-09T13:53:15.000Z | 2020-06-09T13:53:15.000Z | #!/usr/bin/env python3
#
# Copyright 2017-2020 GridGain Systems.
#
# 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 applicab... | 30.253012 | 117 | 0.685384 | 326 | 2,511 | 5.180982 | 0.374233 | 0.033156 | 0.039076 | 0.042629 | 0.086442 | 0.029603 | 0.029603 | 0 | 0 | 0 | 0 | 0.006813 | 0.240143 | 2,511 | 82 | 118 | 30.621951 | 0.878407 | 0.271207 | 0 | 0.115385 | 0 | 0 | 0.00717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173077 | false | 0 | 0.153846 | 0.019231 | 0.596154 | 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 | 1 | 0 | 0 | 1 |
d64587d60e9a4f706954810829075388a9ad602e | 7,453 | bzl | Python | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | #Copyright 2017 Google Inc. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agree... | 36.179612 | 166 | 0.700255 | 1,014 | 7,453 | 4.956608 | 0.262327 | 0.030243 | 0.025468 | 0.019897 | 0.213689 | 0.135893 | 0.095702 | 0.06546 | 0.045165 | 0.045165 | 0 | 0.004858 | 0.19898 | 7,453 | 205 | 167 | 36.356098 | 0.837018 | 0.187039 | 0 | 0.219178 | 0 | 0.041096 | 0.441224 | 0.10297 | 0 | 0 | 0 | 0.004878 | 0 | 1 | 0.027397 | false | 0 | 0 | 0.013699 | 0.047945 | 0.006849 | 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 |
d646dec8e4a9b46e4c87b603db2467ff487bbb88 | 765 | py | Python | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | 1 | 2019-11-14T06:12:43.000Z | 2019-11-14T06:12:43.000Z | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | null | null | null | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | null | null | null | from flask import Flask, request, abort, jsonify
import wechat_sec, http_util
import sys
import os
import logging
app = Flask(__name__)
app.logger.setLevel(logging.NOTSET)
def process(uri, sec=False):
run_env = os.getenv('RUN_ENV')
req = wechat_sec.req_build(request.json)
if run_env in { 'develop', 'mock... | 28.333333 | 109 | 0.682353 | 114 | 765 | 4.368421 | 0.447368 | 0.120482 | 0.036145 | 0.048193 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014658 | 0.197386 | 765 | 26 | 110 | 29.423077 | 0.796417 | 0 | 0 | 0 | 0 | 0 | 0.098168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.428571 | 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 |
d6483a58a24b696782a730062dce4d1c9a9cbd47 | 23,517 | py | Python | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
archivebot.py - discussion page archiving bot.
usage:
python archivebot.py [OPTIONS] TEMPLATE_PAGE
Bot examines backlinks (Special:Whatlinkshere) to TEMPLATE_PAGE.
Then goes through all pages (unless a specific page specified using options)
and archives old discu... | 38.115073 | 111 | 0.551346 | 2,806 | 23,517 | 4.591946 | 0.213828 | 0.007916 | 0.008382 | 0.007451 | 0.164455 | 0.105627 | 0.074272 | 0.06884 | 0.059139 | 0.058518 | 0 | 0.017949 | 0.315346 | 23,517 | 616 | 112 | 38.176948 | 0.782312 | 0.251265 | 0 | 0.203431 | 0 | 0.017157 | 0.129454 | 0.006735 | 0 | 0 | 0 | 0.00487 | 0 | 1 | 0.071078 | false | 0.002451 | 0.019608 | 0.019608 | 0.198529 | 0.002451 | 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 |
d649dcfccb6ac131b6a60ee86fa69ca48bf06995 | 1,911 | py | Python | tests/commands/test_render_workflow_graph.py | SebastianKapunkt/joeflow | fbec6685d9d5fb2a4e3db92a9ca6e58cf5a4bce8 | [
"BSD-3-Clause"
] | 46 | 2019-01-29T18:23:38.000Z | 2022-02-03T12:47:16.000Z | tests/commands/test_render_workflow_graph.py | codingjoe/galahad | ee52b81a8df868e5ab050345550596dbdcd23d5f | [
"BSD-3-Clause"
] | 34 | 2019-10-11T03:42:56.000Z | 2022-03-11T15:51:28.000Z | tests/commands/test_render_workflow_graph.py | codingjoe/galahad | ee52b81a8df868e5ab050345550596dbdcd23d5f | [
"BSD-3-Clause"
] | 11 | 2020-04-22T07:17:16.000Z | 2022-02-15T08:44:47.000Z | import os
import tempfile
from pathlib import Path
from django.core.management import call_command
def test_call_no_args():
tmp_dir = Path(tempfile.mkdtemp())
call_command("render_workflow_graph", "-d", tmp_dir)
assert os.path.exists(str(tmp_dir / "testapp_simpleworkflow.svg"))
assert os.path.exists(... | 34.125 | 88 | 0.710623 | 258 | 1,911 | 4.98062 | 0.158915 | 0.112062 | 0.112062 | 0.140078 | 0.841245 | 0.799222 | 0.799222 | 0.799222 | 0.799222 | 0.724514 | 0 | 0 | 0.151753 | 1,911 | 55 | 89 | 34.745455 | 0.792721 | 0 | 0 | 0.333333 | 0 | 0 | 0.274202 | 0.239665 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d64a3ccc83969aa669a9917a8a8c8e9feb5b0a3c | 276 | py | Python | apps/core/migrations/0003_delete_stat.py | vanyakosmos/memes-reposter | 7bcd1117a81777f0662bcca38690de0c0404dbfa | [
"MIT"
] | 26 | 2019-01-19T21:07:57.000Z | 2022-03-07T16:07:52.000Z | apps/core/migrations/0003_delete_stat.py | BinaryWorld0101201/memes-reposter | de2be9a07d1197100dc9204fdcc78767fe4f4b71 | [
"MIT"
] | 7 | 2020-02-11T22:59:44.000Z | 2021-06-21T07:44:56.000Z | apps/core/migrations/0003_delete_stat.py | BinaryWorld0101201/memes-reposter | de2be9a07d1197100dc9204fdcc78767fe4f4b71 | [
"MIT"
] | 9 | 2018-09-21T06:38:08.000Z | 2022-01-26T11:57:28.000Z | # Generated by Django 2.0.3 on 2018-07-15 11:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0002_stat'),
]
operations = [
migrations.DeleteModel(
name='Stat',
),
]
| 16.235294 | 47 | 0.576087 | 30 | 276 | 5.266667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098958 | 0.304348 | 276 | 16 | 48 | 17.25 | 0.723958 | 0.163043 | 0 | 0 | 1 | 0 | 0.074236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d64b6639d9b15bb12a5418375591fa34cf7ab5c4 | 1,416 | py | Python | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-07-22 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0038_hex_isp_service'),
]
operations = [
migrations.AddField(
model_name='service'... | 30.782609 | 213 | 0.58404 | 146 | 1,416 | 5.506849 | 0.445205 | 0.067164 | 0.155473 | 0.180348 | 0.429104 | 0.385572 | 0.334577 | 0.283582 | 0.283582 | 0.283582 | 0 | 0.034343 | 0.300847 | 1,416 | 45 | 214 | 31.466667 | 0.777778 | 0.032486 | 0 | 0.487179 | 1 | 0 | 0.142544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d64d34e571746e4e8b7826386ea1af2de18078b2 | 9,914 | py | Python | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | import string
import sys
import os
OPERATOR_BOX = "B"
OPERATOR_DIAMOND = "D"
def print_help():
print ('Usage: python cbparse.py Option Arguments DirectoryPath')
print ('Options: ')
print (' S: parse chasebench data dir - Source Instance')
print (' Arguments: timeline_size')
print (' T... | 33.268456 | 95 | 0.587452 | 1,109 | 9,914 | 4.962128 | 0.161407 | 0.022897 | 0.021625 | 0.026168 | 0.248228 | 0.187534 | 0.133927 | 0.093585 | 0.063965 | 0.063965 | 0 | 0.011055 | 0.315715 | 9,914 | 297 | 96 | 33.380471 | 0.800118 | 0.04186 | 0 | 0.202586 | 0 | 0.00431 | 0.070124 | 0.008026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.012931 | 0 | 0.206897 | 0.094828 | 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 |
d64dbb66dc28a89025281d71ffc0283bc9c1aa67 | 1,279 | py | Python | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | import intcode
class Springdroid:
def __init__(self, instructions):
self.instruction_chars = list("\n".join(instructions)) + ["\n"]
def run(self):
intcode.execute_program(self.get_program(), self.get_input, self.write_output)
def get_input(self):
ch = self.instruction_chars.pop(0... | 29.744186 | 86 | 0.487099 | 210 | 1,279 | 2.904762 | 0.27619 | 0.039344 | 0.04918 | 0.065574 | 0.409836 | 0.393443 | 0.381967 | 0.340984 | 0.318033 | 0.183607 | 0 | 0.008827 | 0.379984 | 1,279 | 42 | 87 | 30.452381 | 0.760404 | 0.238468 | 0 | 0.30303 | 0 | 0 | 0.101977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.272727 | 0.060606 | 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 |
d64e30f234f26d2076908cbc1a63b9953e0bde12 | 694 | py | Python | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | 4 | 2019-05-23T19:55:09.000Z | 2019-06-12T19:24:12.000Z | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | 1 | 2019-09-04T13:41:08.000Z | 2019-09-23T16:29:31.000Z | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019 loretoparisi@gmail.com
#
from functools import wraps
from .bounded_pool_executor import BoundedThreadPoolExecutor
from .bounded_pool_executor import BoundedProcessPoolExecutor
_DEFAULT_POOL = BoundedThreadPoolExecutor(max_workers=5)
_PROCESS_POOL = Bou... | 25.703704 | 69 | 0.729107 | 84 | 694 | 5.857143 | 0.440476 | 0.081301 | 0.130081 | 0.093496 | 0.455285 | 0.337398 | 0.337398 | 0.211382 | 0.211382 | 0.211382 | 0 | 0.013629 | 0.154179 | 694 | 26 | 70 | 26.692308 | 0.824532 | 0.116715 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 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 |
d64f415897e749c6aa56a242b90bd89c895e2511 | 87 | py | Python | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | from .server import WebsocketServer, ErrMsg
name = "protocolws"
__version__ = "0.2.1"
| 17.4 | 43 | 0.747126 | 11 | 87 | 5.545455 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 87 | 4 | 44 | 21.75 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 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 |
d64f495619cee232c074671c5f339c49c18f602c | 1,290 | py | Python | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | import requests
import pprint
import os
import csv
import sys
import urllib.request
scotch_csv = sys.argv[1]
subscription_key = sys.argv[2]
search_url = "https://api.cognitive.microsoft.com/bing/v7.0/images/search"
scotch_list = []
with open(scotch_csv, newline='') as csvfile:
reader = csv.reader(csvfile, delimit... | 30 | 74 | 0.651163 | 165 | 1,290 | 4.951515 | 0.466667 | 0.04896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010848 | 0.213953 | 1,290 | 42 | 75 | 30.714286 | 0.794872 | 0.022481 | 0 | 0 | 0 | 0 | 0.134921 | 0.019841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162162 | 0 | 0.162162 | 0.162162 | 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 |
d6507e0f90b1d3d5abb107c0a6671d5183fb8865 | 38 | py | Python | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | null | null | null | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 2 | 2020-08-23T17:23:28.000Z | 2021-04-01T18:32:11.000Z | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 3 | 2021-01-12T00:06:39.000Z | 2021-09-26T23:31:15.000Z | from . import util
__all__ = ["util"]
| 12.666667 | 18 | 0.657895 | 5 | 38 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 2 | 19 | 19 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d65139b8e3aa8a1bba1c0eb4a22dccde013dd9a9 | 2,007 | py | Python | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | from vuabl.data.data_from_other_asset import DataFromOtherAsset
from vuabl.utils.layout_reader import LayoutReader
import vuabl.parsing.parameters as pparamrs
import vuabl.parsing.asset_type as pasttp
import re
def is_data_from_other_assets_header(line: str) -> bool:
return re.match(r"^\s*Data From Other Assets.... | 30.876923 | 99 | 0.673144 | 227 | 2,007 | 5.748899 | 0.299559 | 0.075862 | 0.05977 | 0.041379 | 0.249808 | 0.165517 | 0.144061 | 0.093487 | 0 | 0 | 0 | 0.001295 | 0.230194 | 2,007 | 64 | 100 | 31.359375 | 0.843366 | 0 | 0 | 0.318182 | 0 | 0 | 0.044345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.045455 | 0.113636 | 0.022727 | 0.25 | 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 |
d655a42e44e0f08cda3777efc3dd6716b3147a5f | 7,132 | py | Python | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | 1 | 2020-10-26T11:53:57.000Z | 2020-10-26T11:53:57.000Z | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | null | null | null | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | 1 | 2020-05-10T15:07:27.000Z | 2020-05-10T15:07:27.000Z | import argparse
from attention_details import (
AttentionDetailsData,
get_token_info,
add_token_info,
)
from pytorch_pretrained_bert import BertModel, BertTokenizer
from flask import render_template, redirect, send_from_directory
from flask_cors import CORS
from utils.mask_att import strip_attention
impo... | 31.839286 | 153 | 0.654655 | 946 | 7,132 | 4.748414 | 0.285412 | 0.016029 | 0.015138 | 0.013357 | 0.166963 | 0.145147 | 0.139359 | 0.11398 | 0.11398 | 0.11398 | 0 | 0.003454 | 0.188166 | 7,132 | 224 | 154 | 31.839286 | 0.772366 | 0.232193 | 0 | 0.123188 | 0 | 0 | 0.083115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.101449 | 0.007246 | 0.268116 | 0.050725 | 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 |
d655e83658bafc1ab331f6546dc484f06d66abeb | 17,119 | py | Python | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 622 | 2015-01-15T19:46:06.000Z | 2022-03-22T13:40:22.000Z | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 118 | 2015-01-04T06:38:23.000Z | 2021-11-05T17:28:02.000Z | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 160 | 2015-02-16T15:30:43.000Z | 2022-03-14T00:52:36.000Z | ################################################################################
# Copyright (C) 2013 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Unit tests for bayespy.utils.misc module.
"""
import unittest
im... | 32.545627 | 80 | 0.356388 | 1,592 | 17,119 | 3.771357 | 0.126884 | 0.012991 | 0.071952 | 0.086609 | 0.623251 | 0.572618 | 0.523817 | 0.493671 | 0.455696 | 0.430546 | 0 | 0.078026 | 0.511128 | 17,119 | 525 | 81 | 32.607619 | 0.639383 | 0.069105 | 0 | 0.55409 | 0 | 0 | 0.003779 | 0 | 0 | 0 | 0 | 0.001905 | 0.205805 | 1 | 0.026385 | false | 0.010554 | 0.015831 | 0 | 0.065963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d657cea0bec4ccf577d4498c272dbcb1c60618ac | 1,948 | py | Python | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | 1 | 2021-03-19T03:29:06.000Z | 2021-03-19T03:29:06.000Z | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | 3 | 2020-10-21T13:54:32.000Z | 2020-10-26T19:05:41.000Z | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# This is a VERY simple and naive manual tracker.
# If you need something more powerful, Fiji is
# absolutely recommended.
# Generic
import argparse
import csv
import numpy as np
import sys
import os
# Imaging and visualization
from PIL import Image
import matplotlib.pyplot as plt
# Functions... | 22.136364 | 101 | 0.602669 | 246 | 1,948 | 4.658537 | 0.536585 | 0.020942 | 0.017452 | 0.033159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005036 | 0.286448 | 1,948 | 87 | 102 | 22.390805 | 0.819424 | 0.114476 | 0 | 0.1 | 0 | 0 | 0.171911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.016667 | 0.116667 | 0 | 0.233333 | 0.05 | 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 |
d6584c6c8dc3a1da47bd7f7cc1f456060ecc5d05 | 234 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 117 | 2019-09-01T11:59:19.000Z | 2020-07-14T11:10:08.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2020-04-06T15:21:23.000Z | 2020-05-07T04:29:53.000Z | from Jumpscale import j
from .TelegramBotClient import TelegramBot
JSConfigs = j.baseclasses.object_config_collection
class TelegramBotFactory(JSConfigs):
__jslocation__ = "j.clients.telegram_bot"
_CHILDCLASS = TelegramBot
| 23.4 | 50 | 0.816239 | 24 | 234 | 7.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 234 | 9 | 51 | 26 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.094017 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d6587d85df1f828c5ddbfdc7e6f01ce7674777d7 | 10,750 | py | Python | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Grupo Globo
#
# 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 writing, ... | 32.379518 | 257 | 0.619628 | 1,156 | 10,750 | 5.541522 | 0.16263 | 0.049173 | 0.049953 | 0.03606 | 0.795348 | 0.779113 | 0.779113 | 0.77443 | 0.77443 | 0.77443 | 0 | 0.043865 | 0.278977 | 10,750 | 331 | 258 | 32.477341 | 0.782609 | 0.050977 | 0 | 0.700389 | 0 | 0.003891 | 0.212505 | 0.087063 | 0 | 0 | 0 | 0 | 0.116732 | 1 | 0.042802 | false | 0 | 0.015564 | 0 | 0.062257 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d658c086729548623c04cfdeea90310116c48dcd | 5,568 | py | Python | data_preparation/align_caricature_data.py | wendychen0521/DualStyleGAN | d04c665d800a0fae933c234ad9da17a96cb57c07 | [
"MIT"
] | 488 | 2022-03-20T08:36:40.000Z | 2022-03-31T22:58:54.000Z | data_preparation/align_caricature_data.py | Guttappa1238/DualStyleGAN | 67751d90d1a23358f6cbe5d23e3475cbe2cebff2 | [
"MIT"
] | 10 | 2022-03-20T13:04:10.000Z | 2022-03-31T14:39:47.000Z | data_preparation/align_caricature_data.py | Guttappa1238/DualStyleGAN | 67751d90d1a23358f6cbe5d23e3475cbe2cebff2 | [
"MIT"
] | 70 | 2022-03-20T08:53:27.000Z | 2022-03-31T05:15:58.000Z | import numpy as np
import scipy.ndimage
import os
import PIL.Image
txtpath = './caricature.txt'
lmpath = './WebCaricature/FacialPoints/'
impath = './WebCaricature/OriginalImages/'
outpath = './Caricature/'
def image_align(src_file, dst_file, face_landmarks, output_size=1024, transform_size=4096, enable_padding=True, ... | 44.544 | 169 | 0.547055 | 838 | 5,568 | 3.505967 | 0.227924 | 0.025528 | 0.024506 | 0.019061 | 0.201498 | 0.134786 | 0.088496 | 0.072158 | 0.072158 | 0.047651 | 0 | 0.052343 | 0.279454 | 5,568 | 125 | 170 | 44.544 | 0.67996 | 0.065014 | 0 | 0 | 0 | 0 | 0.04399 | 0.013066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.04878 | 0 | 0.073171 | 0.012195 | 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 |
d65a40564489076d2504ca869d13f4f429ac3159 | 5,153 | py | Python | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from argparse import ArgumentParser, MetavarTypeHelpFormatter
from sys import version_info
from typing import Any, Callable, Dict, Generic, Iterable, Mapping, Optional, Sequence, Tuple, Type, TypeVar
if version_info >= (3, 8):
from typing import... | 32.821656 | 117 | 0.653406 | 592 | 5,153 | 5.52027 | 0.172297 | 0.05049 | 0.031212 | 0.016524 | 0.26224 | 0.212974 | 0.137087 | 0.065483 | 0.065483 | 0.065483 | 0 | 0.001015 | 0.235591 | 5,153 | 156 | 118 | 33.032051 | 0.828637 | 0 | 0 | 0.176471 | 0 | 0 | 0.04518 | 0.005063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159664 | false | 0 | 0.07563 | 0.02521 | 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 |
d65b3ae9db9f669f24fe5f8904d09f18ade80dc9 | 693 | py | Python | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | import boto
import boto.s3
from misc import printProgress, pathLeaf
idkeypath = '/home/ubuntu/.s3/AWS_ACCESS_KEY_ID'
secretkeypath = '/home/ubuntu/.s3/AWS_SECRET_ACCESS_KEY'
bucketname = 'edu-uchicago-rdcep-diles'
folder = ''
with open(idkeypath) as myfile:
id_access_key = myfile.read().replace('\n',... | 21.65625 | 57 | 0.727273 | 97 | 693 | 5.030928 | 0.505155 | 0.110656 | 0.092213 | 0.061475 | 0.110656 | 0.110656 | 0 | 0 | 0 | 0 | 0 | 0.008432 | 0.1443 | 693 | 32 | 58 | 21.65625 | 0.814503 | 0 | 0 | 0 | 0 | 0 | 0.223343 | 0.138329 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.173913 | 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 |
c38706caa52372bd80ca5ff9d1179f9716376ef6 | 4,170 | py | Python | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 52 | 2020-02-06T06:18:52.000Z | 2022-02-23T07:21:46.000Z | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 5 | 2020-11-20T11:26:23.000Z | 2021-12-01T14:22:44.000Z | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 20 | 2020-01-14T05:01:39.000Z | 2021-12-02T23:28:02.000Z | import pickle
import sys
sys.path.append("../../") # nopep8
from Sentence_Encoder.meta_query_encoder import encode
import tensorflow.compat.v1 as tf
import tensorflow_text
import tensorflow_hub as hub
import numpy as np
tf.disable_eager_execution()
sess = tf.InteractiveSession(graph=tf.Graph())
ConvRT_model = hub.Mo... | 28.175676 | 121 | 0.631415 | 544 | 4,170 | 4.558824 | 0.200368 | 0.067742 | 0.032258 | 0.027419 | 0.145161 | 0.062903 | 0.062903 | 0.062903 | 0.062903 | 0.032258 | 0 | 0.010652 | 0.257074 | 4,170 | 147 | 122 | 28.367347 | 0.789864 | 0.001439 | 0 | 0.091743 | 0 | 0 | 0.073522 | 0.019702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0.06422 | 0 | 0.082569 | 0.045872 | 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 |
c3892365eea6eb09110211a34cc5ac5c7a48f371 | 2,616 | py | Python | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | 1 | 2020-08-04T04:36:05.000Z | 2020-08-04T04:36:05.000Z | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | null | null | null | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | null | null | null | """Console script for topojoin."""
import os
import sys
from pathlib import Path
import click
from topojoin.topojoin import TopoJoin
from typing import Union, Dict, Any
@click.command()
@click.argument("topo_path", type=click.Path(exists=True))
@click.argument("csv_path", type=click.Path(exists=True))
@click.option(
... | 27.536842 | 104 | 0.635321 | 372 | 2,616 | 4.330645 | 0.344086 | 0.054624 | 0.022346 | 0.035382 | 0.182495 | 0.160149 | 0.160149 | 0.079454 | 0.079454 | 0.079454 | 0 | 0.000495 | 0.227829 | 2,616 | 94 | 105 | 27.829787 | 0.79703 | 0.06422 | 0 | 0.170732 | 0 | 0 | 0.339396 | 0.031418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.073171 | 0 | 0.097561 | 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 |
c389e2c1ae91273e918a68d04e0d2427360ed8c8 | 16,112 | py | Python | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | import empowermentexploration.utils.data_handle as data_handle
import empowermentexploration.utils.helpers as helpers
import matplotlib as mpl
import matplotlib.colors as c
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from scipy.stats import sem
mpl.use('Agg')
class Visualization():
""... | 51.312102 | 231 | 0.602781 | 1,846 | 16,112 | 5.096425 | 0.165764 | 0.048788 | 0.0777 | 0.042411 | 0.556122 | 0.524235 | 0.499469 | 0.455251 | 0.449086 | 0.425489 | 0 | 0.018952 | 0.279543 | 16,112 | 313 | 232 | 51.476038 | 0.791523 | 0.216174 | 0 | 0.335135 | 0 | 0 | 0.145376 | 0.079717 | 0 | 0 | 0 | 0.003195 | 0 | 1 | 0.021622 | false | 0 | 0.043243 | 0 | 0.07027 | 0.016216 | 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 |
c38a83e6b2c88a03120a4896e9b8292e72824900 | 1,186 | py | Python | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*
import os
import sys
import util
def GetAllHeader(folder):
files = []
for dirpath, dirnames, filenames in os.walk(folder):
for file in filenames:
if file.endswith('.h') or file.endswith('.hpp'):
files.append(os.path.join(dirpath, file))
... | 28.238095 | 100 | 0.584317 | 134 | 1,186 | 5.097015 | 0.470149 | 0.043924 | 0.038067 | 0.043924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001217 | 0.306914 | 1,186 | 42 | 101 | 28.238095 | 0.829684 | 0.024452 | 0 | 0 | 0 | 0 | 0.035009 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.333333 | 0.133333 | 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 |
c38ac124aa00145b8a036028e35c373f39315aa7 | 5,917 | py | Python | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | 1 | 2021-06-16T11:42:32.000Z | 2021-06-16T11:42:32.000Z | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | null | null | null | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | null | null | null | # +
#
# Copyright 2018 Analytics Zoo Authors.
#
# 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 agree... | 44.825758 | 99 | 0.616022 | 699 | 5,917 | 5.052933 | 0.32618 | 0.042469 | 0.029728 | 0.025481 | 0.14581 | 0.062288 | 0.05436 | 0.029445 | 0.029445 | 0.029445 | 0 | 0.012105 | 0.31587 | 5,917 | 131 | 100 | 45.167939 | 0.860425 | 0.552814 | 0 | 0.038462 | 0 | 0 | 0.069977 | 0.0307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.038462 | 0 | 0.134615 | 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 |
c38ac90ca808d2dd0ca78ec136aaa0e419c7ab9a | 88 | py | Python | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | n = int(input(),16)
for i in range(1,16):
print("%X"%n,"*%X"%i,"=%X"%(n*i),sep="")
| 17.6 | 44 | 0.454545 | 19 | 88 | 2.105263 | 0.631579 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.147727 | 88 | 4 | 45 | 22 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c38bc899014dd58543369ec2535371a13a21d780 | 129 | py | Python | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | null | null | null | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | 7 | 2020-06-06T01:14:59.000Z | 2022-02-10T09:21:28.000Z | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
admin.site.register(models.APIKey)
admin.site.register(models.JSONRecord)
| 21.5 | 38 | 0.821705 | 18 | 129 | 5.888889 | 0.555556 | 0.169811 | 0.320755 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 129 | 5 | 39 | 25.8 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
c38be7eb99340230dc41782be5bfea2761dd7514 | 4,882 | py | Python | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | 1 | 2021-07-15T12:06:03.000Z | 2021-07-15T12:06:03.000Z | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | null | null | null | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | null | null | null | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
import pandas as pd
import glob
import os
# %%
# Read and format raw data and save to csv
# Pattern for the dataset names: TRY_[1-15]_[a,w,s]_[2015,2045] with
# 1-15 -> test reference region number
# a,w,s -> average, extreme w... | 55.477273 | 152 | 0.447358 | 620 | 4,882 | 3.3 | 0.277419 | 0.062561 | 0.078201 | 0.093842 | 0.35435 | 0.312317 | 0.173021 | 0.155425 | 0.146139 | 0.102151 | 0 | 0.065852 | 0.312577 | 4,882 | 87 | 153 | 56.114943 | 0.543802 | 0.141131 | 0 | 0.033898 | 0 | 0 | 0.199952 | 0.020643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.050847 | 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 |
c38cd67552cc0c16f9183da6e9feae5e2b7e61f8 | 1,100 | py | Python | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | structure = [
('first', 'a Partridge in a Pear Tree.'),
('second', 'two Turtle Doves, '),
('third', 'three French Hens, '),
('fourth', 'four Calling Birds, '),
('fifth', 'five Gold Rings, '),
('sixth', 'six Geese-a-Laying, '),
('seventh', 'seven Swans-a-Swimming, '),
('eighth', 'eight Ma... | 28.205128 | 73 | 0.597273 | 143 | 1,100 | 4.461538 | 0.58042 | 0.112853 | 0.040752 | 0.056426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.236364 | 1,100 | 39 | 74 | 28.205128 | 0.75 | 0 | 0 | 0.066667 | 0 | 0 | 0.367847 | 0.02089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 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 |
c38ce11c9e42c5f4b8653751b56d5c8f4e4e9b17 | 6,695 | py | Python | pluralforms.py | might-and-magic/mm678_i18n | ddc37c743ac37169908641dcd5328a7ccae5138f | [
"MIT"
] | 17 | 2020-02-25T14:37:23.000Z | 2022-02-21T15:33:09.000Z | pluralforms.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 1 | 2022-01-09T02:14:56.000Z | 2022-02-13T10:08:11.000Z | pluralforms.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 3 | 2020-10-06T20:38:13.000Z | 2021-02-17T02:11:17.000Z | # The list is from http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
pluralforms = {
'ay': 'nplurals=1; plural=0;',
'bo': 'nplurals=1; plural=0;',
'cgg': 'nplurals=1; plural=0;',
'dz': 'nplurals=1; plural=0;',
'id': 'nplurals=1; plural=0;',
'ja': 'nplurals=1; plural=0;',
'jbo':... | 45.544218 | 111 | 0.494548 | 1,181 | 6,695 | 2.801863 | 0.145639 | 0.258084 | 0.261106 | 0.48353 | 0.729223 | 0.243578 | 0.2055 | 0.187972 | 0.171049 | 0.171049 | 0 | 0.119573 | 0.146826 | 6,695 | 147 | 112 | 45.544218 | 0.459734 | 0.015982 | 0 | 0 | 0 | 0.144828 | 0.82344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
c38d8ac60747c245aab0ce791acabf2f1970e557 | 2,649 | py | Python | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | import logging
logger = logging.getLogger(__name__)
from django.views.generic import TemplateView
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.template import RequestContext, Context, loader
from django.http import HttpResponseServerError
... | 31.164706 | 82 | 0.651944 | 294 | 2,649 | 5.792517 | 0.438776 | 0.02936 | 0.011744 | 0.012918 | 0.08808 | 0.08808 | 0.08808 | 0.08808 | 0.08808 | 0.08808 | 0 | 0.009036 | 0.248018 | 2,649 | 84 | 83 | 31.535714 | 0.845884 | 0.456776 | 0 | 0 | 0 | 0 | 0.092116 | 0.023419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0.034483 | 0.517241 | 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 | 1 | 0 | 0 | 1 |
c38df6c81925bf5c22b6fcfcfc835d261c43fac7 | 896 | py | Python | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | 1 | 2021-02-10T12:48:58.000Z | 2021-02-10T12:48:58.000Z | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | null | null | null | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | null | null | null | from Utils.string_utils import clear_spaces as clear
def test_validation_all_contacts_info(app, db):
ui_contacts_list = app.contact.get_contact_list()
db_contacts_list = db.get_contact_list()
assert len(ui_contacts_list) == len(db_contacts_list)
for ui_contact in ui_contacts_list:
db_contact =... | 56 | 117 | 0.767857 | 139 | 896 | 4.517986 | 0.309353 | 0.100318 | 0.103503 | 0.159236 | 0.248408 | 0.098726 | 0.098726 | 0 | 0 | 0 | 0 | 0 | 0.146205 | 896 | 15 | 118 | 59.733333 | 0.820915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.076923 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c38e421262f215fdac54068119047281c12a3966 | 1,423 | py | Python | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | """
Test obtaining peak audio values with PyAV:
time python pyav_audio_vol.py ~/Videos/sample.mp4
Reference:
https://ffmpeg.org/doxygen/trunk/group__lavu__sampfmts.html
"""
import sys
import av
from numpy import abs, sqrt, vdot, fromiter, float64, uint8, average, frombuffer, mean
import matplotlib.pyplot as plt
vid... | 30.276596 | 107 | 0.718904 | 224 | 1,423 | 4.415179 | 0.455357 | 0.044489 | 0.040445 | 0.066734 | 0.11729 | 0.11729 | 0.11729 | 0 | 0 | 0 | 0 | 0.035455 | 0.127899 | 1,423 | 46 | 108 | 30.934783 | 0.761483 | 0.56149 | 0 | 0 | 0 | 0 | 0.006656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0.066667 | 0.4 | 0.066667 | 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 |
c38e887d0a177dd20b88ba2a70783be48abc646b | 937 | py | Python | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | # Things to Remember
#
# Python’s standard method resolution order (MRO) solves the problems of superclass
# initialization order and diamond inheritance.
#
# Always use the "super" built-in function to initialize parent classes.
class MyBaseClass(object):
def __init__(self, value):
self.value = value
c... | 27.558824 | 90 | 0.681964 | 113 | 937 | 5.265487 | 0.504425 | 0.105882 | 0.07395 | 0.107563 | 0.218487 | 0.10084 | 0.10084 | 0 | 0 | 0 | 0 | 0.005525 | 0.227321 | 937 | 33 | 91 | 28.393939 | 0.816298 | 0.451441 | 0 | 0.466667 | 0 | 0 | 0.017893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0 | 0.533333 | 0.066667 | 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 |
c390d3f41e8a75d80d2f51aece360b98c9e31e37 | 1,164 | py | Python | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, jsonify
from flasgger import Swagger, LazyJSONEncoder
from flasgger.utils import swag_from
from src.model.test import make_prediction
from src.api.config import get_logger
_logger = get_logger(logger_name=__name__)
prediction_app = Blueprint('prediction_app', __name__)
@predict... | 28.390244 | 62 | 0.665808 | 137 | 1,164 | 5.437956 | 0.408759 | 0.069799 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004357 | 0.21134 | 1,164 | 40 | 63 | 29.1 | 0.80719 | 0.101375 | 0 | 0 | 0 | 0 | 0.178218 | 0.035644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.375 | 0.083333 | 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 |
c390e18727737c534ccf5f5efd296570308b2ff9 | 921 | py | Python | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ
# SPDX-FileCopyrightText: 2021 Janek Groehl
# SPDX-License-Identifier: MIT
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
def col_bar(image, fontsize=None, fontname=None, ticks=None):
ax = ... | 35.423077 | 82 | 0.703583 | 130 | 921 | 4.869231 | 0.530769 | 0.037915 | 0.078989 | 0.044234 | 0.194313 | 0.194313 | 0.129542 | 0 | 0 | 0 | 0 | 0.019763 | 0.175896 | 921 | 25 | 83 | 36.84 | 0.814229 | 0.2519 | 0 | 0 | 0 | 0 | 0.033724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
c39142fb863e925990bc60f0387ec99b2c445a57 | 2,365 | py | Python | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | 2 | 2018-11-22T10:32:16.000Z | 2019-02-06T14:26:38.000Z | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | null | null | null | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | 4 | 2016-02-17T07:37:55.000Z | 2019-02-07T14:03:51.000Z | import sys
import math
import json
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/')
import numpy as np
import scipy.special as special
from algorithm_utils import get_parameters, set_algorithms_output_data
from pearsonc_lib import PearsonCorrelationLocalD... | 34.779412 | 104 | 0.550951 | 316 | 2,365 | 3.952532 | 0.348101 | 0.009608 | 0.009608 | 0.036829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020873 | 0.331501 | 2,365 | 67 | 105 | 35.298507 | 0.769133 | 0.087949 | 0 | 0.056604 | 0 | 0 | 0.074892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.150943 | 0 | 0.207547 | 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 |
c3921dc91324fc061413450e3a3c0772670a6ac6 | 5,245 | py | Python | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | """General tables module."""
import logging
import re
import typing as tp
from pathlib import Path
from varats.mapping.commit_map import create_lazy_commit_map_loader
from varats.plot.plot_utils import check_required_args
from varats.utils.settings import vara_cfg
if tp.TYPE_CHECKING:
import varats.table.table as... | 30.317919 | 79 | 0.635844 | 672 | 5,245 | 4.736607 | 0.235119 | 0.034559 | 0.03016 | 0.026704 | 0.136035 | 0.042727 | 0.042727 | 0.042727 | 0 | 0 | 0 | 0.004085 | 0.253194 | 5,245 | 172 | 80 | 30.494186 | 0.808527 | 0.179981 | 0 | 0.073684 | 0 | 0 | 0.133611 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 1 | 0.073684 | false | 0 | 0.126316 | 0 | 0.305263 | 0.010526 | 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 |
c392765fa8ab915930e11ed27d0e54982c3f4a1f | 16,436 | py | Python | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | 1 | 2022-03-08T06:34:34.000Z | 2022-03-08T06:34:34.000Z | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | from __future__ import annotations
from .. import crypto, db, config
from ..db import query
from ..web import app
from .exc import NoSuchUser, BadPermission
from typing import Optional
import time
class User:
"""
Class representing a user stored in the database.
Properties:
id - the database pr... | 36.123077 | 100 | 0.563945 | 2,090 | 16,436 | 4.317225 | 0.169856 | 0.049873 | 0.01873 | 0.013299 | 0.2436 | 0.198604 | 0.168126 | 0.142525 | 0.101186 | 0.094869 | 0 | 0.003002 | 0.351363 | 16,436 | 454 | 101 | 36.202643 | 0.842791 | 0.286079 | 0 | 0.367816 | 0 | 0 | 0.175521 | 0.004723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.076628 | 0 | 0.206897 | 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 |
c392ee111fc105d1add3bfe72b6ea6451c22de9b | 71 | py | Python | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | 2 | 2020-08-26T01:54:19.000Z | 2021-07-23T14:06:34.000Z | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | name = "scanapi"
from scanapi.__main__ import main
__all__ = ["main"]
| 14.2 | 33 | 0.71831 | 9 | 71 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 71 | 4 | 34 | 17.75 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 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 |
c3968e4ef9d804ef0d6ab726de35f89bf44cf576 | 917 | py | Python | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | 1 | 2016-07-14T06:16:58.000Z | 2016-07-14T06:16:58.000Z | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | null | null | null | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python
#fib=[0,1]
#for i in range(0,8):
# fib.append(fib[-2]+fib[-1])
#print fib
#def fibs(n):
# fib=[0,1]
# for i in range(n-2):
# fib.append(fib[-2]+fib[-1])
# return fib
#print fibs(5)
#def square(x):
# 'Calculate x*x.'
# return x*x
##print square._doc_
#help(square)
#def inc(x):
# x[0]=x[... | 14.555556 | 34 | 0.561614 | 195 | 917 | 2.630769 | 0.292308 | 0.011696 | 0.019493 | 0.031189 | 0.128655 | 0.128655 | 0.062378 | 0 | 0 | 0 | 0 | 0.057819 | 0.17012 | 917 | 62 | 35 | 14.790323 | 0.616294 | 0.703381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.266667 | 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 |
c399a1a6b7150f1ef7e588609accefc8ef3b5c69 | 2,197 | py | Python | Tuples.py | luiz-fischer/python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | 1 | 2021-07-20T19:01:17.000Z | 2021-07-20T19:01:17.000Z | Tuples.py | luiz-fischer/Python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | null | null | null | Tuples.py | luiz-fischer/Python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | null | null | null | #A tuple is a collection which is ordered and unchangeable. In Python tuples are written with #round brackets.
#tuple
thistuple = ["apple", "banana", "cherry"]
print(thistuple)
#Access Items
thistuple = ["apple", "banana", "cherry"]
print(thistuple[1])
#Negative Indexing
thistuple = ["apple", "banana", "cherry"]
pri... | 21.539216 | 110 | 0.665908 | 271 | 2,197 | 5.398524 | 0.261993 | 0.150376 | 0.232399 | 0.337662 | 0.585783 | 0.43404 | 0.355434 | 0.232399 | 0.124402 | 0.124402 | 0 | 0.017904 | 0.13564 | 2,197 | 102 | 111 | 21.539216 | 0.752501 | 0.126536 | 0 | 0.59375 | 0 | 0 | 0.25118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.34375 | 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 |
c39b867276d04175f6c88ecc9593614affbf2fda | 12,208 | py | Python | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | null | null | null | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | 4 | 2020-06-13T09:17:15.000Z | 2020-06-17T16:26:03.000Z | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: a.grebert
"""
import draft as fct
import numpy as np
import string
import time
import os, sys, shutil
import matplotlib.pyplot as plt
from xml.dom.minidom import parse
import xml.dom.minidom
def time_stat(tstart):
minutes, seconds= divmod(time.time()-tstart, 60)
if minute... | 30.984772 | 114 | 0.593627 | 1,666 | 12,208 | 4.258103 | 0.181273 | 0.020299 | 0.023259 | 0.031717 | 0.383986 | 0.346208 | 0.322949 | 0.264731 | 0.234564 | 0.220609 | 0 | 0.022403 | 0.246805 | 12,208 | 393 | 115 | 31.063613 | 0.749103 | 0.108044 | 0 | 0.223077 | 0 | 0 | 0.062153 | 0.007954 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030769 | null | null | 0.015385 | 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 |
c39c355b6d0a784ab7ced2706035abd7d88c4b92 | 871 | py | Python | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | """A python FFMPEG module built from sdpm."""
from __future__ import unicode_literals
from sidomo import Container
def transcode_file(url):
"""Any format --> 20000 Hz mono wav audio."""
with Container(
'suchkultur/avconv',
memory_limit_gb=2,
stderr=False
) as c:
for line in... | 30.034483 | 111 | 0.590126 | 116 | 871 | 4.25 | 0.715517 | 0.052738 | 0.064909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027915 | 0.300804 | 871 | 28 | 112 | 31.107143 | 0.781609 | 0.0907 | 0 | 0 | 0 | 0.090909 | 0.241997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0.090909 | 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 |
c39ee19e15e090d8880bdf7df0d8e984b7c43a6a | 3,401 | py | Python | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | 15 | 2019-09-06T15:49:12.000Z | 2021-12-15T08:10:25.000Z | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | null | null | null | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | 2 | 2020-01-05T03:40:09.000Z | 2021-12-15T08:10:29.000Z | # Author: DINDIN Meryll
# Date: 02/03/2019
# Project: optimizers
SPACE = dict()
SPACE['SGD'] = {
'loss': ('choice', ['squared_loss', 'huber', 'epsilon_insensitive', 'squared_epsilon_insensitive']),
'penalty': ('choice', ['none', 'l1', 'l2', 'elasticnet']),
'alpha': ('uniform_log', (1e-10, 1.0))... | 21.801282 | 104 | 0.541017 | 435 | 3,401 | 3.97931 | 0.23908 | 0.11554 | 0.090121 | 0.040439 | 0.71115 | 0.678221 | 0.629694 | 0.615829 | 0.563836 | 0.563836 | 0 | 0.078388 | 0.197295 | 3,401 | 155 | 105 | 21.941935 | 0.555678 | 0.01823 | 0 | 0.526316 | 0 | 0 | 0.449175 | 0.022489 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c39f5915d95ec3b9e582fafe6c4ebb268f5f0a43 | 132 | py | Python | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 24 | 2021-12-02T01:00:54.000Z | 2022-03-27T00:50:28.000Z | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | null | null | null | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 3 | 2021-12-02T01:00:47.000Z | 2022-03-04T07:33:09.000Z | import requests
url = 'http://localhost:7000/run'
data = {'workflow': 'wordcount', 'request_id': '1'}
requests.post(url, json=data) | 26.4 | 51 | 0.69697 | 18 | 132 | 5.055556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.098485 | 132 | 5 | 52 | 26.4 | 0.722689 | 0 | 0 | 0 | 0 | 0 | 0.398496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c39f85552fb76ed1c43748aba7b313d0e063acf8 | 243 | py | Python | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | from werkzeug.contrib.cache import SimpleCache
class BasicCache:
cache = SimpleCache()
def set(self, key, value):
self.cache.set(key, value, timeout=50 * 1000)
def get(self, key):
return self.cache.get(key=key)
| 20.25 | 53 | 0.658436 | 33 | 243 | 4.848485 | 0.545455 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.226337 | 243 | 11 | 54 | 22.090909 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c39f85de6a95367753b881619c3146bcc06df83c | 95 | py | Python | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | 10 | 2019-03-12T12:44:11.000Z | 2021-11-10T14:28:00.000Z | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | null | null | null | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | 5 | 2019-05-24T08:37:11.000Z | 2021-03-14T14:58:36.000Z | from django.apps import AppConfig
class CheapiesgrConfig(AppConfig):
name = 'cheapiesgr'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c39fc66cbbaf2d7063e82766c69335a2ff9ae3b8 | 14,626 | py | Python | src/resipy/compress_utils.py | sgreene8/resipy | 297533fd1a2f0443f4a7a062b36c8ab7df5e5e63 | [
"MIT"
] | 2 | 2019-05-06T02:55:40.000Z | 2019-05-22T09:53:19.000Z | src/resipy/compress_utils.py | sgreene8/resipy | 297533fd1a2f0443f4a7a062b36c8ab7df5e5e63 | [
"MIT"
] | null | null | null | src/resipy/compress_utils.py | sgreene8/resipy | 297533fd1a2f0443f4a7a062b36c8ab7df5e5e63 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
"""
Utilities for performing stochastic matrix and vector compressions.
"""
import numpy
import misc_c_utils
import near_uniform
def fri_subd(vec, num_div, sub_weights, n_samp):
""" Perform FRI compression on a vector whose first elements,
vec[i] are each subdivided into equal segments... | 36.84131 | 104 | 0.673185 | 2,120 | 14,626 | 4.429245 | 0.15566 | 0.034505 | 0.021299 | 0.022045 | 0.30607 | 0.221832 | 0.178168 | 0.138978 | 0.125346 | 0.107242 | 0 | 0.014306 | 0.235334 | 14,626 | 396 | 105 | 36.934343 | 0.825286 | 0.457541 | 0 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06135 | false | 0 | 0.018405 | 0 | 0.153374 | 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 |
c3a1abb9b65cf75cfb9749d348aca024d63998e3 | 5,590 | py | Python | venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py | johncollinsai/post-high-frequency-data | 88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4 | [
"MIT"
] | 6 | 2019-06-16T15:01:47.000Z | 2021-11-01T00:05:19.000Z | venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py | johncollinsai/post-high-frequency-data | 88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4 | [
"MIT"
] | 11 | 2019-06-16T23:10:12.000Z | 2021-07-06T14:24:07.000Z | venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py | johncollinsai/post-high-frequency-data | 88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4 | [
"MIT"
] | 2 | 2020-04-09T15:35:25.000Z | 2020-10-11T20:44:25.000Z | # BSD 3-Clause License
#
# Copyright (c) 2019, Rene Jean Corneille
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, thi... | 33.473054 | 140 | 0.64025 | 798 | 5,590 | 4.358396 | 0.290727 | 0.010351 | 0.031627 | 0.036228 | 0.389592 | 0.351351 | 0.347614 | 0.337263 | 0.337263 | 0.337263 | 0 | 0.00959 | 0.253846 | 5,590 | 167 | 141 | 33.473054 | 0.824263 | 0.328265 | 0 | 0.505376 | 0 | 0 | 0.022497 | 0 | 0 | 0 | 0 | 0.005988 | 0 | 1 | 0.11828 | false | 0 | 0.053763 | 0 | 0.365591 | 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 |
c3a29f62d83a316fed3011a212b3a35c83e9c12c | 295 | py | Python | intermediate/mutations_nainys.py | garvitsharma05/hacktoberithms | 25aea28f362de22414569d67436a670bea5a3aeb | [
"MIT"
] | 16 | 2018-10-05T07:35:06.000Z | 2021-10-02T12:12:52.000Z | intermediate/mutations_nainys.py | garvitsharma05/hacktoberithms | 25aea28f362de22414569d67436a670bea5a3aeb | [
"MIT"
] | 50 | 2018-10-04T00:04:24.000Z | 2019-10-25T16:29:58.000Z | intermediate/mutations_nainys.py | garvitsharma05/hacktoberithms | 25aea28f362de22414569d67436a670bea5a3aeb | [
"MIT"
] | 115 | 2018-10-04T02:42:18.000Z | 2021-01-27T17:34:21.000Z | def mutations(input_list):
print input_list[0],input_list[1]
first = list(input_list[0].lower())
second = list(input_list[1].lower())
try:
for ele in second:
first.remove(ele)
except:
return False
return True
print mutations(["hello","heel"])
print mutations(["Alien","line"])
| 16.388889 | 37 | 0.691525 | 44 | 295 | 4.522727 | 0.522727 | 0.226131 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.145763 | 295 | 17 | 38 | 17.352941 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0.061017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3a46a64223b4d7935b2ce93b83a5ab0a1585a6c | 54 | py | Python | lang/py/cookbook/v2/source/cb2_6_0_exm_14.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_6_0_exm_14.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_6_0_exm_14.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | Someclass = type('Someclass', (Somebase,), {'x': 23})
| 27 | 53 | 0.611111 | 6 | 54 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.111111 | 54 | 1 | 54 | 54 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3a4bac81af5bc3661970906bcc01a696388f5ca | 2,131 | py | Python | src/main/resources/google/cloud/compute/instance/compute_create_running.py | s-lal/xld-google-cloud-compute-plugin | 28389184a6df8bdee33893da6030499384a2b565 | [
"MIT"
] | null | null | null | src/main/resources/google/cloud/compute/instance/compute_create_running.py | s-lal/xld-google-cloud-compute-plugin | 28389184a6df8bdee33893da6030499384a2b565 | [
"MIT"
] | null | null | null | src/main/resources/google/cloud/compute/instance/compute_create_running.py | s-lal/xld-google-cloud-compute-plugin | 28389184a6df8bdee33893da6030499384a2b565 | [
"MIT"
] | null | null | null | #
# Copyright 2020 XEBIALABS
#
# 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, distribute, subli... | 68.741935 | 462 | 0.779916 | 279 | 2,131 | 5.956989 | 0.480287 | 0.052948 | 0.021661 | 0.057762 | 0.080626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006529 | 0.137494 | 2,131 | 30 | 463 | 71.033333 | 0.897715 | 0.49038 | 0 | 0 | 0 | 0 | 0.10223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.294118 | 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 |
c3a5ae7192b62bac66c1b709fe6b5e22475b2e41 | 1,599 | py | Python | backend/flask-api/src/servicos/movimento_servico.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | null | null | null | backend/flask-api/src/servicos/movimento_servico.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | null | null | null | backend/flask-api/src/servicos/movimento_servico.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | 2 | 2020-10-19T22:03:31.000Z | 2020-11-29T21:22:33.000Z | import re
from ..entidades.modelo_fluxo import Movimento
from ..persistencia.database import db
from sqlalchemy.orm import aliased, load_only, Load, exc
from flask_restful import abort
from flask import Response
import json
def incluir_movimento(parametros):
movimento = Movimento(**parametros)
movimento.id_mo... | 28.052632 | 122 | 0.703565 | 198 | 1,599 | 5.525253 | 0.343434 | 0.110603 | 0.146252 | 0.063071 | 0.223035 | 0.223035 | 0.223035 | 0.157221 | 0.109689 | 0.109689 | 0 | 0.006897 | 0.183865 | 1,599 | 56 | 123 | 28.553571 | 0.831418 | 0 | 0 | 0.184211 | 0 | 0 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.184211 | 0.078947 | 0.526316 | 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 | 1 | 0 | 0 | 1 |
c3a5e021cbcc85ebb4f94bf78689f3053c0f3211 | 243 | py | Python | PycharmProjects/pythonexercicios/aula014/ex064.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aula014/ex064.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aula014/ex064.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | n1 = int(input("digite um valor: [999 para parar] "))
cont = 0
soma = n1
while n1 != 999:
soma += n1
cont += 1
n1 = int(input("Digite um valor: "))
print("Você digitou {} numeros e a soma entre eles foi de {}!".format(cont, soma))
| 27 | 82 | 0.604938 | 40 | 243 | 3.675 | 0.625 | 0.068027 | 0.136054 | 0.217687 | 0.312925 | 0.312925 | 0 | 0 | 0 | 0 | 0 | 0.069519 | 0.230453 | 243 | 8 | 83 | 30.375 | 0.716578 | 0 | 0 | 0 | 0 | 0 | 0.432099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3a6dfb6d53c3397fca6347f04d68006bd544731 | 2,468 | py | Python | figures/seal_delays.py | aditya-sengupta/sealrtc | cadc01d63bd07590b30decbe5fb57c79b3e68503 | [
"CC0-1.0"
] | null | null | null | figures/seal_delays.py | aditya-sengupta/sealrtc | cadc01d63bd07590b30decbe5fb57c79b3e68503 | [
"CC0-1.0"
] | null | null | null | figures/seal_delays.py | aditya-sengupta/sealrtc | cadc01d63bd07590b30decbe5fb57c79b3e68503 | [
"CC0-1.0"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
import sys
import re
from os.path import join
fs = 100
def stamp_to_seconds(t):
h, m, s, ms = [int(x) for x in re.search("(\d+):(\d+):(\d+),(\d+)", t).groups()]
return 3600 * h + 60 * m + s + 0.001 * ms
good_runs = ["07_02_14", "07_04_45", "08_11_19", "... | 35.768116 | 90 | 0.608185 | 351 | 2,468 | 4.136752 | 0.373219 | 0.008264 | 0.008264 | 0.009642 | 0.100551 | 0.056474 | 0.039945 | 0 | 0 | 0 | 0 | 0.037408 | 0.230956 | 2,468 | 69 | 91 | 35.768116 | 0.727608 | 0 | 0 | 0 | 0 | 0.016667 | 0.172945 | 0.028352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.083333 | 0 | 0.133333 | 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 |
c3a78423413c586b43d5c6f2ba43237b6c4989d3 | 514 | py | Python | Competive Programming/CodeVitaV7/MockVita/problem_d.py | RitamDey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | 2 | 2016-10-14T16:58:05.000Z | 2017-05-04T04:59:18.000Z | Competive Programming/CodeVitaV7/MockVita/problem_d.py | GreenJoey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | null | null | null | Competive Programming/CodeVitaV7/MockVita/problem_d.py | GreenJoey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | null | null | null | def mul(arr):
res = arr[0]
for i in arr[1:]:
res *= i
return res
def gen_subarray(arr, n):
for i in range(1 << n):
y = 1
for j in range(n):
if i & (1 << j):
y *= arr[j]
yield y
def main():
n, p1, p2 = map(int, input().split(","))
... | 15.117647 | 44 | 0.424125 | 79 | 514 | 2.734177 | 0.379747 | 0.055556 | 0.083333 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.40856 | 514 | 33 | 45 | 15.575758 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3ab8d6929c69624d061fbf0aa9d0caa473c282b | 9,205 | py | Python | prototypes/python_prototype/empiricalEstimation.py | Elbercaio/adaptive-engine | c51661ad64d95c7ed36508c90787521261038525 | [
"Apache-2.0"
] | null | null | null | prototypes/python_prototype/empiricalEstimation.py | Elbercaio/adaptive-engine | c51661ad64d95c7ed36508c90787521261038525 | [
"Apache-2.0"
] | null | null | null | prototypes/python_prototype/empiricalEstimation.py | Elbercaio/adaptive-engine | c51661ad64d95c7ed36508c90787521261038525 | [
"Apache-2.0"
] | null | null | null | ##Author: Ilia Rushkin, VPAL Research, Harvard University, Cambridge, MA, USA
######################################
####Estimation functions are below####
######################################
import numpy as np
def knowledge(self, problems, correctness):
"""
##This function finds the empirical knowledge ... | 33.841912 | 216 | 0.5283 | 1,237 | 9,205 | 3.755861 | 0.199677 | 0.008179 | 0.010977 | 0.016789 | 0.124623 | 0.068661 | 0.028196 | 0.028196 | 0.012053 | 0.012053 | 0 | 0.014644 | 0.35459 | 9,205 | 271 | 217 | 33.96679 | 0.767379 | 0.29723 | 0 | 0.148352 | 0 | 0 | 0.008569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.005495 | 0 | 0.027473 | 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 |
c3abc0a68a85157f3c2c372d3a89b0bb5b081f02 | 352 | py | Python | main.py | DHRUV-CODER/Fortnite-Bot | 65217baf85169797732ec046c7a5940f46ef9cc7 | [
"MIT"
] | 1 | 2021-03-07T10:17:09.000Z | 2021-03-07T10:17:09.000Z | main.py | DHRUV-CODER/Fortnite-Bot | 65217baf85169797732ec046c7a5940f46ef9cc7 | [
"MIT"
] | 2 | 2021-02-05T13:42:45.000Z | 2021-02-05T13:43:25.000Z | main.py | DHRUV-CODER/Fortnite-Bot | 65217baf85169797732ec046c7a5940f46ef9cc7 | [
"MIT"
] | null | null | null | import os
import environ
import keep_alive
from discord.ext import commands
token = os.environ.get("TOKEN")
bot = commands.Bot(command_prefix="")
for filename in os.listdir("./cogs"):
if filename.endswith(".py") and filename != "__init__.py":
bot.load_extension(f'cogs.{filename[:-3]}')
keep_alive.ke... | 19.555556 | 62 | 0.693182 | 50 | 352 | 4.7 | 0.58 | 0.114894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.15625 | 352 | 17 | 63 | 20.705882 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c3ad330362e01dc7f15821884e5a6bbe50194e31 | 953 | py | Python | scrap2rst/cmd.py | shimizukawa/scrap2rst | d6cab254d03f8e161f210e793083d8b26b44abd7 | [
"MIT"
] | 5 | 2019-06-29T03:17:09.000Z | 2021-06-19T20:41:04.000Z | scrap2rst/cmd.py | shimizukawa/scrap2rst | d6cab254d03f8e161f210e793083d8b26b44abd7 | [
"MIT"
] | 24 | 2019-08-14T23:07:43.000Z | 2019-09-30T04:59:42.000Z | scrap2rst/cmd.py | shimizukawa/scrap2rst | d6cab254d03f8e161f210e793083d8b26b44abd7 | [
"MIT"
] | null | null | null | """
command-line interface for scrap2rst
"""
import sys
import logging
import argparse
from scrap2rst import __version__
from scrap2rst.logging import setup_logger
from scrap2rst.converter import convert
logger = logging.getLogger(__name__)
def get_argparser():
p = argparse.ArgumentParser()
p.add_argument('... | 24.435897 | 90 | 0.673662 | 120 | 953 | 5.1 | 0.475 | 0.026144 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006394 | 0.179433 | 953 | 38 | 91 | 25.078947 | 0.776215 | 0.037775 | 0 | 0 | 0 | 0 | 0.126513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.24 | 0 | 0.36 | 0.04 | 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 |
c3af3f55df4b117b6e91dedf512a6d86c7573fca | 8,605 | py | Python | pricing/__init__.py | troylar/aws-pricing-importer | 6fabbea533e07e1fad1f3840a28e2a0fb435c888 | [
"MIT"
] | 3 | 2019-04-10T13:46:51.000Z | 2019-04-16T14:32:55.000Z | pricing/__init__.py | troylar/aws-pricing-to-athena | 6fabbea533e07e1fad1f3840a28e2a0fb435c888 | [
"MIT"
] | 1 | 2021-06-01T23:23:24.000Z | 2021-06-01T23:23:24.000Z | pricing/__init__.py | troylar/aws-pricing-importer | 6fabbea533e07e1fad1f3840a28e2a0fb435c888 | [
"MIT"
] | null | null | null | import json
import os
import os.path
import requests
import csv
import tempfile
from io import StringIO
import boto3
import time
import urllib3
create_table = """
CREATE EXTERNAL TABLE `[OFFER]`(
[COLUMNS]
[PARTITION]
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.OpenCSVSerde'
STORED AS INPUTFORMAT
'org.apache... | 40.399061 | 117 | 0.525276 | 879 | 8,605 | 4.990899 | 0.25711 | 0.018236 | 0.01778 | 0.008206 | 0.253248 | 0.243219 | 0.227718 | 0.180533 | 0.180533 | 0.180533 | 0 | 0.007223 | 0.356421 | 8,605 | 212 | 118 | 40.589623 | 0.78494 | 0.015805 | 0 | 0.235294 | 0 | 0.005348 | 0.16198 | 0.044542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048128 | false | 0 | 0.053476 | 0 | 0.122995 | 0.048128 | 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 |
c3b008c8303bfbb30f36a958105a103791dbc6b7 | 1,920 | py | Python | ensembling.py | Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification | 69c9481c4f00961c52c1e4d580666b286deba6cf | [
"MIT"
] | 14 | 2020-09-08T08:10:56.000Z | 2022-03-16T05:47:46.000Z | ensembling.py | Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification | 69c9481c4f00961c52c1e4d580666b286deba6cf | [
"MIT"
] | null | null | null | ensembling.py | Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification | 69c9481c4f00961c52c1e4d580666b286deba6cf | [
"MIT"
] | 8 | 2020-09-09T14:12:50.000Z | 2021-09-11T16:27:39.000Z |
import sys
import argparse
import pandas as pd
import numpy as np
import os
def get_settings():
parser = argparse.ArgumentParser(description='Script to ensemble submissions.')
parser.add_argument('--include_external', help='whether to include external data (1) or not (0).',
default=0, type = int)
... | 35.555556 | 113 | 0.70625 | 258 | 1,920 | 4.968992 | 0.282946 | 0.062403 | 0.056162 | 0.039782 | 0.183307 | 0.127925 | 0.051482 | 0.051482 | 0 | 0 | 0 | 0.006975 | 0.178646 | 1,920 | 53 | 114 | 36.226415 | 0.805961 | 0.035417 | 0 | 0 | 0 | 0 | 0.268147 | 0.133803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.222222 | 0.027778 | 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 |
c3b124b23b6ac439915246f3ba91242c0ab87d5c | 1,927 | py | Python | PythonStuff/hi.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | PythonStuff/hi.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | PythonStuff/hi.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | JDs = []
RAs = []
Decs = []
file = open("data.txt", 'r')
data = []
for line in file:
datum = line.split("\t")
JDs.append(float(datum[0]))
RAs.append(float(datum[1]))
Decs.append(float(datum[2][:-1]))
"""
import matplotlib.pyplot as plt
JDs = [2458281.856678, 2458281.857743, 2458281.85880... | 52.081081 | 311 | 0.708874 | 291 | 1,927 | 4.642612 | 0.56701 | 0.029608 | 0.035529 | 0.03997 | 0.046632 | 0.032568 | 0 | 0 | 0 | 0 | 0 | 0.585207 | 0.122989 | 1,927 | 37 | 312 | 52.081081 | 0.214201 | 0 | 0 | 0 | 0 | 0 | 0.050459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3b1a662429cdada1fb29fdf45e27e026c0bbcf8 | 7,337 | py | Python | src/dataStructures/elmtree_jtray.py | tschalch/pyTray | ab26c7d4618c16f1ef6df45f7c8bae81f08f855b | [
"BSD-3-Clause"
] | 1 | 2018-06-15T09:42:22.000Z | 2018-06-15T09:42:22.000Z | src/dataStructures/elmtree_jtray.py | tschalch/pyTray | ab26c7d4618c16f1ef6df45f7c8bae81f08f855b | [
"BSD-3-Clause"
] | null | null | null | src/dataStructures/elmtree_jtray.py | tschalch/pyTray | ab26c7d4618c16f1ef6df45f7c8bae81f08f855b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2.4
"""
tray_data provides the data for the tray GUI.
It handles the XML data and provides the neccessary interfaces.
"""
import tray_data
import logging
from util.trayErrors import PropertyNotFoundError
log = logging.getLogger("xml_jtray")
log.setLevel(logging.WARN)
class J... | 42.166667 | 108 | 0.592885 | 660 | 7,337 | 6.543939 | 0.310606 | 0.039361 | 0.031952 | 0.009261 | 0.044918 | 0.031952 | 0 | 0 | 0 | 0 | 0 | 0.007046 | 0.303666 | 7,337 | 173 | 109 | 42.410405 | 0.838325 | 0.122666 | 0 | 0.053097 | 0 | 0 | 0.12563 | 0.02049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035398 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3b239f366d0aa2e3fa43d5373d1a03a579fb69c | 1,104 | py | Python | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | 7 | 2020-05-29T21:14:49.000Z | 2022-01-25T15:35:17.000Z | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | 24 | 2020-06-09T14:29:03.000Z | 2022-03-25T22:43:24.000Z | tests/test_iter_ij_in_block.py | kalekundert/wellmap | 05a9029807276ec29aea63db10c664ad2ede093c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pytest
from wellmap import *
@pytest.mark.parametrize(
'args, expected', [
(((0,0), 0, 0), []),
(((0,0), 0, 1), []),
(((0,0), 1, 0), []),
(((0,0), 1, 1), [(0,0)]),
(((0,0), 2, 1), [(0,0), (0,1)]),
(((0,0), 1,... | 30.666667 | 58 | 0.272645 | 171 | 1,104 | 1.719298 | 0.140351 | 0.204082 | 0.153061 | 0.108844 | 0.55102 | 0.367347 | 0.221088 | 0.061224 | 0.061224 | 0 | 0 | 0.197724 | 0.363225 | 1,104 | 35 | 59 | 31.542857 | 0.220484 | 0.019022 | 0 | 0 | 0 | 0 | 0.012939 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.033333 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3b3565e61fd4a1d8b267a41d981a92c6d73f542 | 318 | py | Python | lectures/slides_tex/example_sklearn.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | 38 | 2019-12-23T13:14:53.000Z | 2022-01-25T23:59:33.000Z | lectures/slides_tex/example_sklearn.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | null | null | null | lectures/slides_tex/example_sklearn.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | 18 | 2020-02-10T20:43:39.000Z | 2022-01-21T13:45:36.000Z | model = Model(**params) # Init a model with parameters.
model.get_params() # Get model parameters.
model.set_params(**params) # Set model parameters
model.fit(X, y) # Fit the model with a dataset
model.score(X, y) # Provides the score for the dataset.
model.predict(X) # Make a prediction using fitted model. | 53 | 59 | 0.72327 | 50 | 318 | 4.56 | 0.42 | 0.197368 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 318 | 6 | 60 | 53 | 0.863636 | 0.562893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
c3b44be37f288d5b48b6f0177fd4a4019cc7b623 | 215 | py | Python | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 285 | 2017-12-16T13:29:27.000Z | 2022-03-28T02:59:08.000Z | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 104 | 2018-01-01T01:40:13.000Z | 2022-03-26T18:20:45.000Z | py-server/src/enum/index.py | Jonnytoshen/wind-layer | 514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5 | [
"BSD-3-Clause"
] | 97 | 2017-12-18T08:05:21.000Z | 2022-03-28T15:49:38.000Z | from enum import Enum
class noaa_site_label(Enum):
DIRECTORY = 'directory:'
FILE_LIST = '\n**NEW** Select one file only '
SURFACES = 'select the levels desired:'
VARIABLES = 'select the variables desired:'
| 26.875 | 47 | 0.716279 | 29 | 215 | 5.206897 | 0.689655 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176744 | 215 | 7 | 48 | 30.714286 | 0.853107 | 0 | 0 | 0 | 0 | 0 | 0.446512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
c3b57eaa438b0e0ff2f40a515ff88ec6d01bf26c | 5,202 | py | Python | roots/format.py | TomRegan/roots_legacy | cf145d80b526b7142f869eb5d869a27c3d7bb1eb | [
"Apache-2.0"
] | null | null | null | roots/format.py | TomRegan/roots_legacy | cf145d80b526b7142f869eb5d869a27c3d7bb1eb | [
"Apache-2.0"
] | null | null | null | roots/format.py | TomRegan/roots_legacy | cf145d80b526b7142f869eb5d869a27c3d7bb1eb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2015 Tom Regan
#
# 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... | 36.377622 | 79 | 0.572472 | 650 | 5,202 | 4.481538 | 0.321538 | 0.018538 | 0.013732 | 0.011329 | 0.032956 | 0.019911 | 0 | 0 | 0 | 0 | 0 | 0.009014 | 0.31757 | 5,202 | 142 | 80 | 36.633803 | 0.811549 | 0.217032 | 0 | 0.076087 | 0 | 0 | 0.080261 | 0.005518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.097826 | 0.01087 | 0.391304 | 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 |
c3b58ba311536941e44b47fb58812f09838e1ac8 | 11,567 | py | Python | frost/client.py | Sigvesor/frost-client | 3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6 | [
"MIT"
] | 7 | 2019-02-17T05:00:33.000Z | 2020-11-10T13:13:26.000Z | frost/client.py | Sigvesor/frost-client | 3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6 | [
"MIT"
] | 2 | 2020-03-24T18:23:18.000Z | 2020-03-31T10:22:02.000Z | frost/client.py | Sigvesor/frost-client | 3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6 | [
"MIT"
] | 1 | 2020-04-03T23:53:30.000Z | 2020-04-03T23:53:30.000Z | import os
from urllib.parse import urljoin
import requests
from requests.auth import HTTPBasicAuth
from .models import SourcesResponse
from .models import AvailableTimeSeriesResponse
from .models import ObservationsResponse
FROST_API_KEY = os.environ.get('FROST_API_KEY', None)
class APIError(Exception):
""" Rais... | 42.369963 | 79 | 0.61736 | 1,517 | 11,567 | 4.669743 | 0.208965 | 0.035008 | 0.018775 | 0.023998 | 0.529927 | 0.455957 | 0.444099 | 0.444099 | 0.417137 | 0.394269 | 0 | 0.012416 | 0.317628 | 11,567 | 272 | 80 | 42.525735 | 0.885088 | 0.619348 | 0 | 0.210526 | 0 | 0 | 0.128055 | 0.010427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.092105 | 0.013158 | 0.315789 | 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 |
c3b5c82cda0e55aa0b6ba4cf5db98b3355aacc13 | 3,411 | py | Python | llvd/downloader.py | rahil-sh/llvd | e0e55db66b0a7a828f6040cbac8679c304e1c5db | [
"MIT"
] | 4 | 2022-01-03T08:19:08.000Z | 2022-02-04T16:51:39.000Z | llvd/downloader.py | rahil-sh/llvd | e0e55db66b0a7a828f6040cbac8679c304e1c5db | [
"MIT"
] | null | null | null | llvd/downloader.py | rahil-sh/llvd | e0e55db66b0a7a828f6040cbac8679c304e1c5db | [
"MIT"
] | 1 | 2022-01-03T08:19:09.000Z | 2022-01-03T08:19:09.000Z |
from tqdm import tqdm
from itertools import starmap
import requests
import time
import click
import re
import os
from llvd.utils import clean_name, subtitles_time_format, throttle
def download_video(url, index, filename, path, delay=None):
"""
Downloads a video and saves it by its name plus index for eas... | 35.164948 | 101 | 0.562005 | 390 | 3,411 | 4.779487 | 0.317949 | 0.075107 | 0.032189 | 0.020923 | 0.520386 | 0.520386 | 0.491416 | 0.491416 | 0.491416 | 0.459227 | 0 | 0.013095 | 0.328349 | 3,411 | 96 | 102 | 35.53125 | 0.800524 | 0.045148 | 0 | 0.538462 | 0 | 0 | 0.14772 | 0.063398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.102564 | 0 | 0.166667 | 0.012821 | 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 |
c3b8c7827cbab7f0180e68f8f0d4f4b5ef34c2d4 | 1,902 | py | Python | addNextMonth.py | David12312341/Carmelorto | d2a7fe6522940db1d4ee186c5ff335c03e3622da | [
"MIT"
] | null | null | null | addNextMonth.py | David12312341/Carmelorto | d2a7fe6522940db1d4ee186c5ff335c03e3622da | [
"MIT"
] | null | null | null | addNextMonth.py | David12312341/Carmelorto | d2a7fe6522940db1d4ee186c5ff335c03e3622da | [
"MIT"
] | null | null | null | import psycopg2
import calendar
import sys
import os
# TODO: add ability to either add entire year or specific month from command line
# TODO: Implement argparse to add functionality to CLI
def addYear(cur,year):
# Add the months of the specified year into the Database
monthList = []
monthNameList = cale... | 30.677419 | 155 | 0.609359 | 268 | 1,902 | 4.272388 | 0.402985 | 0.031441 | 0.026201 | 0.034935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014768 | 0.252366 | 1,902 | 61 | 156 | 31.180328 | 0.790436 | 0.307045 | 0 | 0.060606 | 0 | 0 | 0.208589 | 0.016871 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.090909 | false | 0 | 0.121212 | 0 | 0.212121 | 0.090909 | 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 |
c3b8ce5fd606e50e10f8ca74fe1352d18e7c8eec | 3,938 | py | Python | drivers/plot_Porb_Prot.py | lgbouma/earhart | 1d2b65d58655725f43c1bf9705b897bf767d4ca1 | [
"MIT"
] | null | null | null | drivers/plot_Porb_Prot.py | lgbouma/earhart | 1d2b65d58655725f43c1bf9705b897bf767d4ca1 | [
"MIT"
] | null | null | null | drivers/plot_Porb_Prot.py | lgbouma/earhart | 1d2b65d58655725f43c1bf9705b897bf767d4ca1 | [
"MIT"
] | null | null | null | """
The stellar spin periods and planetary orbital periods originally collected by
Penev et al (2018) are shown in Figure~\ref{fig:Pspin_vs_Porb}. We only show
hot Jupiter systems with spin period S/N ratios of at least 5, and have colored
the hot Jupiters by whether their stellar radius is below or above
$1.2R_\odot$.... | 30.061069 | 80 | 0.588624 | 607 | 3,938 | 3.667216 | 0.395387 | 0.026954 | 0.013477 | 0.015723 | 0.128931 | 0.110063 | 0.096586 | 0.096586 | 0.087152 | 0.087152 | 0 | 0.050201 | 0.241239 | 3,938 | 130 | 81 | 30.292308 | 0.694779 | 0.308532 | 0 | 0.178571 | 0 | 0.02381 | 0.181751 | 0.059106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.047619 | 0 | 0.059524 | 0.02381 | 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 |
c3b8e9007add6621a63ae003963d1b0398741980 | 4,918 | py | Python | conjugate_gradient_method.py | Kedow132/extremum_search_methods | 16f83a3979a9f1b3f738627f466f97ec72b2031d | [
"BSD-3-Clause"
] | null | null | null | conjugate_gradient_method.py | Kedow132/extremum_search_methods | 16f83a3979a9f1b3f738627f466f97ec72b2031d | [
"BSD-3-Clause"
] | null | null | null | conjugate_gradient_method.py | Kedow132/extremum_search_methods | 16f83a3979a9f1b3f738627f466f97ec72b2031d | [
"BSD-3-Clause"
] | null | null | null | from math import sqrt
import matplotlib.pyplot as plt
import numpy as np
from prettytable import PrettyTable
headers = PrettyTable(
['№', 'x1_1', 'x2_1', 'x1_2', 'x2_2', 'function(x1,x2)', 'df'])
def table(count, old_function, x1_1, x2_1, x1_2, x2_2, new_function):
Tablelist = {
'№': count,
... | 30.930818 | 79 | 0.547377 | 745 | 4,918 | 3.420134 | 0.167785 | 0.036107 | 0.051805 | 0.016484 | 0.22292 | 0.142857 | 0.130298 | 0.087912 | 0.081633 | 0.05887 | 0 | 0.093491 | 0.312729 | 4,918 | 158 | 80 | 31.126582 | 0.659172 | 0.019723 | 0 | 0.093023 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077519 | false | 0 | 0.031008 | 0.015504 | 0.178295 | 0.015504 | 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 |
c3b9c03b0b6999a6a3e2dacc735a7de64457c8b0 | 784 | py | Python | tcga_encoder/analyses/old/dna_functions.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | 2 | 2017-12-19T15:32:46.000Z | 2018-01-12T11:24:24.000Z | tcga_encoder/analyses/old/dna_functions.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null | tcga_encoder/analyses/old/dna_functions.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null | from tcga_encoder.utils.helpers import *
from scipy import stats
def auc_standard_error( theta, nA, nN ):
# from: Hanley and McNeil (1982), The Meaning and Use of the Area under the ROC Curve
# theta: estimated AUC, can be 0.5 for a random test
# nA size of population A
# nN size of population N
Q1=theta/... | 28 | 94 | 0.670918 | 132 | 784 | 3.863636 | 0.469697 | 0.041176 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046474 | 0.204082 | 784 | 28 | 95 | 28 | 0.770833 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 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 |