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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63cb9cfcd1d1bed86874e36912a9244d3c5563c5 | 443 | py | Python | hold-tests/test_role_ans_dev.py | pahoughton/ansible-pahoughton | dba7c014e43fa232bea05b84f96d5b9115800089 | [
"CC-BY-3.0"
] | null | null | null | hold-tests/test_role_ans_dev.py | pahoughton/ansible-pahoughton | dba7c014e43fa232bea05b84f96d5b9115800089 | [
"CC-BY-3.0"
] | null | null | null | hold-tests/test_role_ans_dev.py | pahoughton/ansible-pahoughton | dba7c014e43fa232bea05b84f96d5b9115800089 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python3
# 2018-10-13 (cc) <paul4hough@gmail.com>
'''
pips:
- testinfra
- molecule
- tox
'''
class test_role_ans_dev (object):
''' test_role_ans_dev useless class
'''
assert packages.installed(
yaml.array( pkgs[common],
pkgs[os][common],
... | 17.72 | 61 | 0.573363 | 51 | 443 | 4.862745 | 0.705882 | 0.064516 | 0.08871 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.277652 | 443 | 24 | 62 | 18.458333 | 0.74375 | 0.311512 | 0 | 0 | 0 | 0 | 0.106897 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0 | true | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63cd37f1d19aa602021ac5d7d2664ac5f4cbcbd3 | 1,296 | py | Python | images/migrations/0001_initial.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | images/migrations/0001_initial.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | images/migrations/0001_initial.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-21 03:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 37.028571 | 149 | 0.604938 | 139 | 1,296 | 5.47482 | 0.52518 | 0.031537 | 0.063075 | 0.082786 | 0.060447 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021944 | 0.261574 | 1,296 | 34 | 150 | 38.117647 | 0.77325 | 0.034722 | 0 | 0 | 1 | 0 | 0.083267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63cd6a4844d309d64fcae3b172caa3687fb25c61 | 951 | py | Python | src/python/detectors/os_command_injection/os_command_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 18 | 2022-01-27T22:50:22.000Z | 2022-02-15T17:41:24.000Z | src/python/detectors/os_command_injection/os_command_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 1 | 2022-01-31T21:36:18.000Z | 2022-02-22T17:09:54.000Z | src/python/detectors/os_command_injection/os_command_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 7 | 2022-02-10T21:50:50.000Z | 2022-03-28T14:21:10.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# {fact rule=os-command-injection@v1.0 defects=1}
def exec_command_noncompliant():
from paramiko import client
from flask import request
address = request.args.get("address")
cmd = "ping -c 1 %s... | 32.793103 | 69 | 0.701367 | 126 | 951 | 5.246032 | 0.420635 | 0.066566 | 0.06354 | 0.09531 | 0.639939 | 0.567322 | 0.567322 | 0.567322 | 0.458396 | 0.458396 | 0 | 0.012755 | 0.175605 | 951 | 28 | 70 | 33.964286 | 0.830357 | 0.338591 | 0 | 0.823529 | 0 | 0 | 0.130856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63cdddd1832970e9972b2c05b624ca631cca30ea | 922 | py | Python | src/Dao/Parts.py | asarfara/PartCost | 99b7485ad811d41ca86a61b922faf51facdabcd3 | [
"MIT"
] | null | null | null | src/Dao/Parts.py | asarfara/PartCost | 99b7485ad811d41ca86a61b922faf51facdabcd3 | [
"MIT"
] | null | null | null | src/Dao/Parts.py | asarfara/PartCost | 99b7485ad811d41ca86a61b922faf51facdabcd3 | [
"MIT"
] | null | null | null | import logging
import json
from typing import List
from src.Entity.Part import Part
from datetime import date
from sqlite3 import Connection
class Parts:
def __init__(self, file_name: str, logger: logging, connection: Connection):
self.file_name = file_name
self.logger = logger
self.conne... | 28.8125 | 173 | 0.654013 | 114 | 922 | 5.166667 | 0.412281 | 0.040747 | 0.040747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002845 | 0.237527 | 922 | 31 | 174 | 29.741935 | 0.834993 | 0.105206 | 0 | 0 | 0 | 0 | 0.13602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
63d54e098e0531437161c2fb674cb796cbee3e48 | 4,783 | py | Python | check_ec2_events.py | chartbeat/check_ec2_events | 3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa | [
"Apache-2.0"
] | 2 | 2015-11-05T11:38:09.000Z | 2019-04-21T12:22:30.000Z | check_ec2_events.py | chartbeat/check_ec2_events | 3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa | [
"Apache-2.0"
] | null | null | null | check_ec2_events.py | chartbeat/check_ec2_events | 3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Author: Justin Lintz
# Copyright 2013 Chartbeat
# http://www.chartbeat.com
#
# Nagios check to alert on any retiring instances or
# instances that need rebooting
#
import getopt
import sys
import re
from datetime import datetime
from datetime import timedelta
from boto.ec2 import connect_to_... | 30.081761 | 165 | 0.605896 | 610 | 4,783 | 4.586885 | 0.281967 | 0.041816 | 0.008935 | 0.015011 | 0.112223 | 0.097927 | 0.097927 | 0.097927 | 0.070765 | 0.070765 | 0 | 0.009409 | 0.28894 | 4,783 | 158 | 166 | 30.272152 | 0.81329 | 0.057913 | 0 | 0.123711 | 0 | 0.010309 | 0.09782 | 0.012228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.072165 | null | null | 0.051546 | 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 |
891d4ed726e77fd986edee372d297804eaad447d | 385 | py | Python | protera_stability/engine/__init__.py | stepp1/protera-stability | 62f70af00b9475a0b0aeba39fa6ae57f0bb25b34 | [
"MIT"
] | 1 | 2021-11-05T02:14:31.000Z | 2021-11-05T02:14:31.000Z | protera_stability/engine/__init__.py | stepp1/protera-stability | 62f70af00b9475a0b0aeba39fa6ae57f0bb25b34 | [
"MIT"
] | null | null | null | protera_stability/engine/__init__.py | stepp1/protera-stability | 62f70af00b9475a0b0aeba39fa6ae57f0bb25b34 | [
"MIT"
] | null | null | null | from protera_stability.engine.default import get_cfg, setup_train, DefaultTrainer
from protera_stability.engine.lightning_train import (
default_cbs,
DataModule,
LitProteins,
TrainingPl,
)
__all__ = [
"DataModule",
"DefaultTrainer",
"LitProteins",
"TrainingPl",
"default_cbs",
"g... | 19.25 | 81 | 0.698701 | 38 | 385 | 6.526316 | 0.5 | 0.08871 | 0.16129 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197403 | 385 | 19 | 82 | 20.263158 | 0.802589 | 0 | 0 | 0 | 0 | 0 | 0.192208 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
89287107bf8b41baf6a2e18560e187efeb94ad6b | 574 | py | Python | activities/migrations/0003_alter_currentactivitie_importance_level.py | CiganOliviu/MyWorkflow | 85951c2e8ebdb3e970fcc0b3e24bd319360b852a | [
"Apache-2.0"
] | null | null | null | activities/migrations/0003_alter_currentactivitie_importance_level.py | CiganOliviu/MyWorkflow | 85951c2e8ebdb3e970fcc0b3e24bd319360b852a | [
"Apache-2.0"
] | null | null | null | activities/migrations/0003_alter_currentactivitie_importance_level.py | CiganOliviu/MyWorkflow | 85951c2e8ebdb3e970fcc0b3e24bd319360b852a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-04 19:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activities', '0002_rename_currentactivity_currentactivitie'),
]
operations = [
migrations.AlterField(
model_name='currentactivit... | 30.210526 | 194 | 0.642857 | 56 | 574 | 6.482143 | 0.767857 | 0.071625 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04646 | 0.212544 | 574 | 18 | 195 | 31.888889 | 0.756637 | 0.078397 | 0 | 0 | 1 | 0 | 0.318786 | 0.083491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
892ea50cc3da67caa05d44561bab96944c809088 | 2,465 | py | Python | mfctracker/management/commands/syncusers.py | kevans91/mfctracker | c86f1538229df126081331edef3bfd19c9ef1345 | [
"BSD-2-Clause"
] | 3 | 2016-10-19T05:01:31.000Z | 2019-06-06T18:20:11.000Z | mfctracker/management/commands/syncusers.py | kevans91/mfctracker | c86f1538229df126081331edef3bfd19c9ef1345 | [
"BSD-2-Clause"
] | 3 | 2017-11-28T17:31:58.000Z | 2021-04-12T02:37:27.000Z | mfctracker/management/commands/syncusers.py | kevans91/mfctracker | c86f1538229df126081331edef3bfd19c9ef1345 | [
"BSD-2-Clause"
] | 1 | 2020-06-26T14:05:53.000Z | 2020-06-26T14:05:53.000Z | # Copyright (c) 2016-2019 Oleksandr Tymoshenko <gonzo@bluezbox.com>
# 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
# ... | 52.446809 | 108 | 0.723732 | 320 | 2,465 | 5.540625 | 0.55 | 0.022561 | 0.025381 | 0.025945 | 0.103779 | 0.076706 | 0.076706 | 0.076706 | 0.076706 | 0.076706 | 0 | 0.006646 | 0.206491 | 2,465 | 46 | 109 | 53.586957 | 0.899796 | 0.539554 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
892ff412cb0abfd15e5fd8375b604f4b8bd19d90 | 399 | py | Python | Exercises/015.py | GuilhermeRds1921/Python3-Guanabara | 24cd85b076e1074a5602e54c420bcc8e70cc1854 | [
"MIT"
] | null | null | null | Exercises/015.py | GuilhermeRds1921/Python3-Guanabara | 24cd85b076e1074a5602e54c420bcc8e70cc1854 | [
"MIT"
] | null | null | null | Exercises/015.py | GuilhermeRds1921/Python3-Guanabara | 24cd85b076e1074a5602e54c420bcc8e70cc1854 | [
"MIT"
] | null | null | null | # Escreva um programa que pergunte a quantidade de Km
# percorridos por um carro alugado e a quantidade de dias pelos
# quais ele foi alugado. Calcule o preço a pagar, sabendo que o carro
# custa R$60 por dia e R$0.15 por Km rodado.
km = float(input("Quantos km percorreu?: "))
dia = int(input("Quantos dias ele foi alu... | 49.875 | 69 | 0.704261 | 74 | 399 | 3.797297 | 0.581081 | 0.078292 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033742 | 0.182957 | 399 | 8 | 70 | 49.875 | 0.828221 | 0.561404 | 0 | 0 | 0 | 0 | 0.491228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
893019fb8b63370b0487a73ea074042709b31d91 | 3,241 | py | Python | utils/make_package.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 1,712 | 2015-04-13T22:16:59.000Z | 2022-03-17T18:44:42.000Z | utils/make_package.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 770 | 2015-04-13T22:10:20.000Z | 2022-03-15T01:30:06.000Z | utils/make_package.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 206 | 2015-04-13T22:17:19.000Z | 2022-02-19T12:30:19.000Z | #!/usr/bin/env python
import sys
import argparse
import os
import subprocess
import platform
import io
import string
try:
# For Python >= 3.0
from urllib.request import urlopen
except ImportError:
# For Python < 3.0
from urllib2 import urlopen
import shutil
import stat
def run(args):
nugetFolder = ... | 30.575472 | 81 | 0.650108 | 410 | 3,241 | 5.1 | 0.365854 | 0.025825 | 0.01913 | 0.030129 | 0.135342 | 0.084648 | 0.084648 | 0.084648 | 0 | 0 | 0 | 0.00556 | 0.223079 | 3,241 | 105 | 82 | 30.866667 | 0.824464 | 0.042271 | 0 | 0.071429 | 0 | 0 | 0.261136 | 0.029374 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8933583a90eda099c254b38c7fb555a1d3d870bb | 4,622 | py | Python | tests/unit_tests/test_tethys_services/test_admin.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 79 | 2015-10-05T13:13:28.000Z | 2022-02-01T12:30:33.000Z | tests/unit_tests/test_tethys_services/test_admin.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 542 | 2015-08-12T22:11:32.000Z | 2022-03-29T22:18:08.000Z | tests/unit_tests/test_tethys_services/test_admin.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 71 | 2016-01-16T01:03:41.000Z | 2022-03-31T17:55:54.000Z | import unittest
from unittest import mock
from django.utils.translation import ugettext_lazy as _
from tethys_services.models import DatasetService, SpatialDatasetService, WebProcessingService, PersistentStoreService
from tethys_services.admin import DatasetServiceForm, SpatialDatasetServiceForm, WebProcessingServiceF... | 43.603774 | 118 | 0.720251 | 429 | 4,622 | 7.610723 | 0.146853 | 0.049005 | 0.044104 | 0.039204 | 0.478714 | 0.478714 | 0.440735 | 0.440735 | 0.440735 | 0.440735 | 0 | 0 | 0.177845 | 4,622 | 105 | 119 | 44.019048 | 0.859211 | 0 | 0 | 0.3875 | 0 | 0 | 0.094331 | 0 | 0 | 0 | 0 | 0 | 0.3875 | 1 | 0.1375 | false | 0.1625 | 0.075 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8933611dccd35f84e21b95c6ea6cb9c0aef59e5b | 633 | py | Python | Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
from solution1 import arrayReplace as f
qa = [
([1, 2, 1], 1, 3,
[3, 2, 3]),
([1, 2, 3, 4, 5], 3, 0,
[1, 2, 0, 4, 5]),
([1, 1, 1], 1, 10,
[10, 10, 10]),
([1, 2, 1, 2, 1], 2, 1,
[1, 1, 1, 1, 1]),
([1, 2, 1, 2, 1], 2, 2,
[1, 2, 1, 2, 1]),
([3, 1], 3, 9,
[9... | 19.78125 | 47 | 0.366509 | 106 | 633 | 2.188679 | 0.311321 | 0.094828 | 0.103448 | 0.086207 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0.171795 | 0.383886 | 633 | 31 | 48 | 20.419355 | 0.423077 | 0.011058 | 0 | 0.074074 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.259259 | 0 | 0 | 0 | null | 0 | 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 | 1 |
89386b743e51694854f66d61583124c986f918df | 349 | py | Python | 001-099/38/38.py | lunixbochs/project-euler | aa974c5ae68547309f33adbb4e633fe040964855 | [
"MIT"
] | 6 | 2015-07-21T20:45:08.000Z | 2021-03-13T14:07:48.000Z | 001-099/38/38.py | lunixbochs/project-euler | aa974c5ae68547309f33adbb4e633fe040964855 | [
"MIT"
] | null | null | null | 001-099/38/38.py | lunixbochs/project-euler | aa974c5ae68547309f33adbb4e633fe040964855 | [
"MIT"
] | 2 | 2017-10-28T09:52:08.000Z | 2019-04-11T00:55:36.000Z | ref = set('123456789')
def pans(n):
r = str(n)
i = 1
while True:
i += 1
r += str(i * n)
if len(r) > 9:
break
if len(r) == 9 and set(r) == ref:
yield i, r
m = 0
for i in xrange(2, 1000000000):
for z, n in pans(i):
if n > m:
m =... | 17.45 | 41 | 0.383954 | 58 | 349 | 2.310345 | 0.465517 | 0.059701 | 0.089552 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137363 | 0.47851 | 349 | 19 | 42 | 18.368421 | 0.598901 | 0 | 0 | 0 | 0 | 0 | 0.025788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.058824 | 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 |
89414998e5a7ff84331d610b6b9cc51dadd75709 | 6,364 | py | Python | TransfertFichier.py | Fabien034/TimeLaps | a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c | [
"CC0-1.0"
] | null | null | null | TransfertFichier.py | Fabien034/TimeLaps | a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c | [
"CC0-1.0"
] | null | null | null | TransfertFichier.py | Fabien034/TimeLaps | a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c | [
"CC0-1.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright: Fabien Rosso
# Version 0.1.1 - 19 Avril 2016
# Version 0.1.2 - 29 Avril 2016
## Debug VisualStudio
# import ptvsd
# ptvsd.enable_attach(None)
from __future__ import unicode_literals
from __future__ import print_function
import os
import s... | 36.574713 | 138 | 0.61675 | 765 | 6,364 | 5.065359 | 0.379085 | 0.017032 | 0.015484 | 0.011355 | 0.091355 | 0.07071 | 0.07071 | 0.053161 | 0.038194 | 0.038194 | 0 | 0.015175 | 0.285512 | 6,364 | 173 | 139 | 36.786127 | 0.836815 | 0.247014 | 0 | 0.186275 | 0 | 0 | 0.121078 | 0.006628 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | null | null | 0.039216 | 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 |
89418edd3c2fb8634084937401da418c6baab778 | 388 | py | Python | posts/urls.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | posts/urls.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | posts/urls.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
urlpatterns = [
url(r'^admin/(?P<slug>[\w\-]+)/', 'posts.views.post_preview', name='post_preview'),
url(r'^tag/(?P<slug>[\w\-]+)/', 'posts.views.posts_view_tag', name='posts_tag'),
url(r'^popular/', 'posts.views.posts_view_popular', name='posts_popular'),
url(r... | 48.5 | 87 | 0.634021 | 58 | 388 | 4.068966 | 0.362069 | 0.067797 | 0.076271 | 0.139831 | 0.237288 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095361 | 388 | 8 | 88 | 48.5 | 0.672365 | 0 | 0 | 0 | 0 | 0 | 0.565553 | 0.383033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
894a5fed9ddf654ea364f9de215cbb93bd3168ae | 582 | py | Python | britecoreproject/orm.py | alis0nc/britecore-project | aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b | [
"MIT"
] | null | null | null | britecoreproject/orm.py | alis0nc/britecore-project | aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b | [
"MIT"
] | 1 | 2018-02-13T00:34:22.000Z | 2018-02-13T00:34:22.000Z | britecoreproject/orm.py | alis0nc/britecore-project | aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b | [
"MIT"
] | null | null | null | """
Define ORM classes.
"""
from sqlobject import *
class RiskType(SQLObject):
"""Define RiskType ORM class."""
riskTypeName = StringCol()
fields = RelatedJoin('Field')
class Field(SQLObject):
"""Define Field ORM class."""
fieldName = StringCol()
fieldType = ForeignKey('FieldType')
risks =... | 22.384615 | 39 | 0.671821 | 55 | 582 | 7.090909 | 0.436364 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189003 | 582 | 25 | 40 | 23.28 | 0.826271 | 0.214777 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 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 |
89506cba8d48107a96bebd4fb53108e48e413e52 | 179 | py | Python | Curso_Coursera/Ex1_ParImpar.py | shirleyguimaraes/Linguagem_Python | cb8b871ee4fe85f803c35bfe55ce533cab8150fb | [
"MIT"
] | null | null | null | Curso_Coursera/Ex1_ParImpar.py | shirleyguimaraes/Linguagem_Python | cb8b871ee4fe85f803c35bfe55ce533cab8150fb | [
"MIT"
] | null | null | null | Curso_Coursera/Ex1_ParImpar.py | shirleyguimaraes/Linguagem_Python | cb8b871ee4fe85f803c35bfe55ce533cab8150fb | [
"MIT"
] | null | null | null |
def main():
n = int(input("Digite um número inteiro: "))
resto = n % 2
if resto == 0:
print("Par")
else:
print("Impar")
main()
| 11.933333 | 49 | 0.435754 | 21 | 179 | 3.714286 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.413408 | 179 | 14 | 50 | 12.785714 | 0.72381 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 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 |
89528b5ef79fc793c901837f37deed12889d7c14 | 536 | py | Python | pyro/contrib/oed/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | pyro/contrib/oed/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | pyro/contrib/oed/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | """
The :mod:`pyro.contrib.oed` module provides tools to create optimal experiment
designs for pyro models. In particular, it provides estimators for the
expected information gain (EIG) criterion.
To estimate the EIG for a particular design, use::
def model(design):
...
# Select an appropriate EIG es... | 23.304348 | 78 | 0.701493 | 74 | 536 | 5.013514 | 0.662162 | 0.037736 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199627 | 536 | 22 | 79 | 24.363636 | 0.864802 | 0.83209 | 0 | 0 | 0 | 0 | 0.109756 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
895d842bfc897627a79eb5fa98161a381e6ef77f | 3,925 | py | Python | venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | 1 | 2022-01-08T12:30:44.000Z | 2022-01-08T12:30:44.000Z | venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null |
from caffe2.proto import caffe2_pb2
from caffe2.python import core, workspace
import os
import tempfile
from zipfile import ZipFile
'''
Generates a document in markdown format summrizing the coverage of serialized
testing. The document lives in
`caffe2/python/serialized_test/SerializedTestCoverage.m... | 33.547009 | 81 | 0.581401 | 493 | 3,925 | 4.450304 | 0.237323 | 0.054695 | 0.047858 | 0.038286 | 0.304467 | 0.20237 | 0.180492 | 0.149499 | 0.149499 | 0.139016 | 0 | 0.006191 | 0.300382 | 3,925 | 116 | 82 | 33.836207 | 0.79279 | 0 | 0 | 0.188889 | 1 | 0 | 0.193113 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89730fea2cfd2a597b98eac7b0559f46c95c3edb | 381 | py | Python | Opencart/tests.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | 1 | 2021-02-25T15:37:21.000Z | 2021-02-25T15:37:21.000Z | Opencart/tests.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | null | null | null | Opencart/tests.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | null | null | null | def test_open_home_page(driver, request):
url = 'opencart/'
return driver.get("".join([request.config.getoption("--address"), url]))
element = driver.find_elements_by_xpath("//base[contains(@href, 'http://192.168.56.103/opencart/]")
assert element == 'http://192.168.56.103/opencart/'
assert driver.f... | 42.333333 | 103 | 0.692913 | 54 | 381 | 4.703704 | 0.685185 | 0.07874 | 0.07874 | 0.094488 | 0.228346 | 0.228346 | 0.228346 | 0 | 0 | 0 | 0 | 0.068249 | 0.115486 | 381 | 8 | 104 | 47.625 | 0.68546 | 0 | 0 | 0 | 0 | 0 | 0.324538 | 0.058047 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8976ac3ed7f5bc537c2e56c41551cfde83e492fd | 1,996 | py | Python | two-phase-v2/OPE-master/run_ope.py | zizuzi/DeepEmbedding | d8762a94863fadced35b1dcc59996dcd02b1acaf | [
"MIT"
] | 1 | 2019-07-10T05:59:26.000Z | 2019-07-10T05:59:26.000Z | two-phase-v2/OPE-master/run_ope.py | zizuzi/DeepEmbedding | d8762a94863fadced35b1dcc59996dcd02b1acaf | [
"MIT"
] | 7 | 2019-03-20T00:28:15.000Z | 2021-09-07T23:48:46.000Z | two-phase-v2/OPE-master/run_ope.py | thaihungle/DeepTopicEmbedding | d8762a94863fadced35b1dcc59996dcd02b1acaf | [
"MIT"
] | null | null | null | import sys
sys.path.insert(0, './')
sys.path.insert(0, './common')
sys.path.insert(0, './ML-FW')
sys.path.insert(0, './ML-OPE')
sys.path.insert(0, './Online-FW')
sys.path.insert(0, './Online-OPE')
sys.path.insert(0, './Streaming-FW')
sys.path.insert(0, './Streaming-OPE')
import time
import shutil
import utilities as ut... | 30.707692 | 70 | 0.726954 | 323 | 1,996 | 4.256966 | 0.26935 | 0.078545 | 0.075636 | 0.081455 | 0.353455 | 0.258909 | 0.258909 | 0.258909 | 0.258909 | 0.225455 | 0 | 0.012465 | 0.115731 | 1,996 | 64 | 71 | 31.1875 | 0.766572 | 0.012525 | 0 | 0.035714 | 0 | 0 | 0.113168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.196429 | null | null | 0.035714 | 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 |
8977bd7b64038385d9857845a7707789f51dd14d | 216 | py | Python | setup.py | mechyai/RL-EmsPy | 01984a9bc37f35991073e17cf715687896d6ea8d | [
"Apache-2.0"
] | 8 | 2022-03-15T13:22:22.000Z | 2022-03-30T09:58:04.000Z | setup.py | mechyai/RL-EmsPy | 01984a9bc37f35991073e17cf715687896d6ea8d | [
"Apache-2.0"
] | null | null | null | setup.py | mechyai/RL-EmsPy | 01984a9bc37f35991073e17cf715687896d6ea8d | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name='RL-EmsPy',
version='0.0.1',
packages=['emspy'],
url='https://github.com/mechyai/RL-EmsPy',
license='Apache License 2.0',
author='Chris Eubel',
)
| 19.636364 | 46 | 0.62963 | 30 | 216 | 4.533333 | 0.766667 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028409 | 0.185185 | 216 | 10 | 47 | 21.6 | 0.744318 | 0 | 0 | 0 | 0 | 0 | 0.37963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
897b4e6d0cd4fcb2d42922fef3503586389e4297 | 170 | py | Python | static/images/uploads/convert-to-web.py | KrishSkywalker/krishgoel.com-v2 | a27f6bd9541f354a6ded37e6dcd9ca930c2264ff | [
"MIT"
] | null | null | null | static/images/uploads/convert-to-web.py | KrishSkywalker/krishgoel.com-v2 | a27f6bd9541f354a6ded37e6dcd9ca930c2264ff | [
"MIT"
] | 2 | 2021-10-09T06:50:53.000Z | 2021-10-09T06:56:21.000Z | static/images/uploads/convert-to-web.py | KrishSkywalker/krishgoel.com-v2 | a27f6bd9541f354a6ded37e6dcd9ca930c2264ff | [
"MIT"
] | null | null | null | import os
from cv2 import cv2
for d in os.listdir():
if not d.endswith(".png"): continue
img = cv2.imread(d)
cv2.imwrite(d.replace(".png",".webp"), img)
os.remove(d) | 21.25 | 44 | 0.670588 | 31 | 170 | 3.677419 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.141176 | 170 | 8 | 45 | 21.25 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0.076023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
897b64057889d6f4e8ff4affe28b5a7f47a4113d | 16,328 | bzl | Python | test/internal/opts/process_compiler_opts_tests.bzl | buildbuddy-io/rules_xcodeproj | 79a54779d530d3907a69a7910c71c06fec4aefeb | [
"MIT"
] | 30 | 2022-02-11T16:36:24.000Z | 2022-03-31T18:18:06.000Z | test/internal/opts/process_compiler_opts_tests.bzl | buildbuddy-io/rules_xcodeproj | 79a54779d530d3907a69a7910c71c06fec4aefeb | [
"MIT"
] | 93 | 2022-02-10T23:46:22.000Z | 2022-03-30T14:57:40.000Z | test/internal/opts/process_compiler_opts_tests.bzl | buildbuddy-io/rules_xcodeproj | 79a54779d530d3907a69a7910c71c06fec4aefeb | [
"MIT"
] | 3 | 2022-03-09T00:14:47.000Z | 2022-03-31T11:16:16.000Z | """Tests for compiler options processing functions."""
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest")
load("//test:utils.bzl", "stringify_dict")
# buildifier: disable=bzl-visibility
load("//xcodeproj/internal:opts.bzl", "testable")
process_compiler_opts = testable.process_compiler_opts
def _process_... | 28.545455 | 171 | 0.524008 | 1,471 | 16,328 | 5.49898 | 0.185588 | 0.067499 | 0.088268 | 0.044505 | 0.418222 | 0.274076 | 0.204722 | 0.172827 | 0.120658 | 0.117814 | 0 | 0.014871 | 0.332803 | 16,328 | 571 | 172 | 28.595447 | 0.727648 | 0.067063 | 0 | 0.463203 | 0 | 0.006494 | 0.3367 | 0.186865 | 0 | 0 | 0 | 0 | 0.006494 | 1 | 0.006494 | false | 0.060606 | 0 | 0 | 0.008658 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
898103c6939f84b86c66b0636276a738603f0eb9 | 515 | py | Python | convert.py | FrilledShark/pi_graph | e5bb85d6f507f252ddad3375b7d24270cd4dcbb4 | [
"MIT"
] | null | null | null | convert.py | FrilledShark/pi_graph | e5bb85d6f507f252ddad3375b7d24270cd4dcbb4 | [
"MIT"
] | null | null | null | convert.py | FrilledShark/pi_graph | e5bb85d6f507f252ddad3375b7d24270cd4dcbb4 | [
"MIT"
] | null | null | null | import os
import re
filenames = sorted([frame for frame in os.listdir("frames")], key=lambda x: int(re.search(r'\d+', os.path.splitext(x)[0]).group()))
print("creating gif")
import imageio
with imageio.get_writer('storage/pi.gif', mode='I') as writer:
for filename in filenames:
image = imageio.imread(os.p... | 32.1875 | 131 | 0.712621 | 79 | 515 | 4.607595 | 0.594937 | 0.074176 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.126214 | 515 | 16 | 132 | 32.1875 | 0.802222 | 0 | 0 | 0 | 0 | 0 | 0.158915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 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 |
898730ea9a49096e8b6161edc2af4f23006465d6 | 2,757 | py | Python | tests/regressiontests/custom_managers_regress/models.py | huicheese/Django-test3 | ac11d2dce245b48392e52d1f4acfd5e7433b243e | [
"BSD-3-Clause"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | tests/regressiontests/custom_managers_regress/models.py | joetyson/django | c3699190186561d5c216b2a77ecbfc487d42a734 | [
"BSD-3-Clause"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | tests/regressiontests/custom_managers_regress/models.py | joetyson/django | c3699190186561d5c216b2a77ecbfc487d42a734 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | """
Regression tests for custom manager classes.
"""
from django.db import models
class RestrictedManager(models.Manager):
"""
A manager that filters out non-public instances.
"""
def get_query_set(self):
return super(RestrictedManager, self).get_query_set().filter(is_public=True)
class Relat... | 33.216867 | 88 | 0.730141 | 353 | 2,757 | 5.600567 | 0.379603 | 0.057663 | 0.042994 | 0.031866 | 0.32524 | 0.290845 | 0.266566 | 0.247344 | 0.183106 | 0.183106 | 0 | 0.008137 | 0.153065 | 2,757 | 82 | 89 | 33.621951 | 0.838544 | 0.033732 | 0 | 0.355932 | 0 | 0.067797 | 0.634229 | 0.171526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.016949 | 0.067797 | 0.40678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8987a8a45d351bbfef65dc5938b0c5ab50967bd0 | 1,685 | py | Python | test_code/python-plotter-serial-beta/plotter_freq_checker.py | ithallojunior/data_transmission | eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5 | [
"MIT"
] | null | null | null | test_code/python-plotter-serial-beta/plotter_freq_checker.py | ithallojunior/data_transmission | eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5 | [
"MIT"
] | null | null | null | test_code/python-plotter-serial-beta/plotter_freq_checker.py | ithallojunior/data_transmission | eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5 | [
"MIT"
] | null | null | null | import serial
import matplotlib.pyplot as plt
import numpy as np
import time
pd = "/dev/tty.wchusbserial1410"
#pd = "/dev/tty.usbmodem1421"
p = serial.Serial(port=pd, baudrate=115200,
bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE)
p.flush()
time.sleep(0.5)
#plt.axis([0, 10, 0, 1])
plt.ion()
s... | 26.328125 | 71 | 0.516914 | 235 | 1,685 | 3.668085 | 0.417021 | 0.046404 | 0.034803 | 0.039443 | 0.034803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069116 | 0.321662 | 1,685 | 63 | 72 | 26.746032 | 0.685039 | 0.173294 | 0 | 0.081633 | 0 | 0 | 0.044235 | 0.018129 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.081633 | null | null | 0.020408 | 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 |
8988728d0b2235f53cc08dcd048278808b2a69e7 | 425 | py | Python | investment_report/migrations/0026_remove_howwecanhelp_sector.py | uktrade/pir-api | 79747ceab042c42c287e2b7471f6dade70f68693 | [
"MIT"
] | 1 | 2021-02-02T19:08:55.000Z | 2021-02-02T19:08:55.000Z | investment_report/migrations/0026_remove_howwecanhelp_sector.py | uktrade/invest-pir-api | be56efddf9dfdf81c8557441a9a54d9a4dd4bab1 | [
"MIT"
] | 21 | 2018-07-10T10:20:47.000Z | 2022-03-24T09:36:29.000Z | investment_report/migrations/0026_remove_howwecanhelp_sector.py | uktrade/pir-api | 79747ceab042c42c287e2b7471f6dade70f68693 | [
"MIT"
] | 1 | 2021-02-04T11:28:37.000Z | 2021-02-04T11:28:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-09-01 14:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('investment_report', '0025_howwecanhelp_smartworkforcesector'),
]
operations = [
mi... | 21.25 | 72 | 0.642353 | 43 | 425 | 6.139535 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.249412 | 425 | 19 | 73 | 22.368421 | 0.758621 | 0.162353 | 0 | 0 | 1 | 0 | 0.206799 | 0.107649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
898c77e492dd4a9d199a1a4723672c492bb1ddb8 | 3,811 | py | Python | downloader.py | mathieuhendey/lastfm_downloader | 616ed6edad171e6eda05fd48b07a237d7c788fd5 | [
"MIT"
] | 3 | 2019-06-06T08:59:18.000Z | 2021-07-16T06:43:24.000Z | downloader.py | mathieuhendey/lastfm_downloader | 616ed6edad171e6eda05fd48b07a237d7c788fd5 | [
"MIT"
] | 1 | 2021-08-23T14:33:09.000Z | 2021-08-23T14:33:09.000Z | downloader.py | mathieuhendey/lastfm_downloader | 616ed6edad171e6eda05fd48b07a237d7c788fd5 | [
"MIT"
] | 1 | 2020-10-15T08:40:55.000Z | 2020-10-15T08:40:55.000Z | import sys
import pandas as pd
import requests
import pprint
from requests_toolbelt.threaded import pool
# Generate your own at https://www.last.fm/api/account/create
LASTFM_API_KEY = None
LASTFM_USER_NAME = None
TEXT = "#text"
ESTIMATED_TIME_FOR_PROCESSING_PAGE = 352
ESTIMATED_TIME_FOR_PROCESSING_DATAFRAME_PER_PAGE_... | 32.02521 | 92 | 0.649173 | 486 | 3,811 | 4.919753 | 0.32716 | 0.029276 | 0.026767 | 0.043496 | 0.1422 | 0.102886 | 0.080301 | 0.080301 | 0.04266 | 0 | 0 | 0.014123 | 0.238258 | 3,811 | 118 | 93 | 32.29661 | 0.809507 | 0.191813 | 0 | 0.023529 | 1 | 0 | 0.109603 | 0.009162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.058824 | 0 | 0.105882 | 0.047059 | 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 |
898eb33546671a512a010d7eaa79d1cab11f0acf | 1,652 | py | Python | src/trainer/fasttexttrainer.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | src/trainer/fasttexttrainer.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | src/trainer/fasttexttrainer.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from modeler.fasttextmodel import FastTextModel
from trainer.tftrainer import TFTrainer
class FastTextTrainer(TFTrainer):
def __init__(self):
self.num_classes = 19
self.learning_rate = 0.01
self.batch_size = 8
self.decay_steps = 1000
self.decay_rate = 0.... | 34.416667 | 111 | 0.631961 | 216 | 1,652 | 4.587963 | 0.375 | 0.084763 | 0.039354 | 0.034309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031224 | 0.263317 | 1,652 | 47 | 112 | 35.148936 | 0.783073 | 0 | 0 | 0.055556 | 0 | 0 | 0.020581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.083333 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8994560794eac403f32c84dae0fea83d1c5d480e | 3,379 | py | Python | nonconformist/base.py | smazzanti/nonconformist | 5ed072c82ae6d923eb6063a6a5c8fa664fbf729c | [
"MIT"
] | 301 | 2015-03-18T01:47:37.000Z | 2022-03-11T14:50:55.000Z | nonconformist/base.py | smazzanti/nonconformist | 5ed072c82ae6d923eb6063a6a5c8fa664fbf729c | [
"MIT"
] | 25 | 2016-07-25T21:36:26.000Z | 2022-02-23T00:39:07.000Z | nonconformist/base.py | smazzanti/nonconformist | 5ed072c82ae6d923eb6063a6a5c8fa664fbf729c | [
"MIT"
] | 91 | 2015-03-19T08:25:16.000Z | 2022-03-08T08:31:38.000Z | #!/usr/bin/env python
"""
docstring
"""
# Authors: Henrik Linusson
import abc
import numpy as np
from sklearn.base import BaseEstimator
class RegressorMixin(object):
def __init__(self):
super(RegressorMixin, self).__init__()
@classmethod
def get_problem_type(cls):
return 'regression'
class ClassifierMix... | 21.522293 | 63 | 0.718556 | 459 | 3,379 | 5.002179 | 0.213508 | 0.058798 | 0.067073 | 0.041812 | 0.503484 | 0.442509 | 0.406794 | 0.39547 | 0.336237 | 0.253484 | 0 | 0 | 0.167505 | 3,379 | 156 | 64 | 21.660256 | 0.81621 | 0.255697 | 0 | 0.293333 | 0 | 0 | 0.010918 | 0 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.253333 | false | 0.013333 | 0.04 | 0.08 | 0.533333 | 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 | 0 | 0 | 0 | 1 |
89970080ba2f0570c2f1e353abfb492b88c1cf1e | 2,263 | py | Python | ShareSpace/views.py | BNordstrom16/ShareSpaceWeb | 676ddbc52f745d4b8a17f18f26a15329ad91ebfa | [
"MIT"
] | null | null | null | ShareSpace/views.py | BNordstrom16/ShareSpaceWeb | 676ddbc52f745d4b8a17f18f26a15329ad91ebfa | [
"MIT"
] | null | null | null | ShareSpace/views.py | BNordstrom16/ShareSpaceWeb | 676ddbc52f745d4b8a17f18f26a15329ad91ebfa | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.views.generic import UpdateView, DeleteView
from .models import Storage
from django_tables2 import RequestConfig
from .tables import StorageTable
from django.contrib.auth.decorators import login_required
from .forms import StorageForm, QuestionForm
def index(r... | 28.2875 | 86 | 0.696421 | 257 | 2,263 | 5.992218 | 0.287938 | 0.054545 | 0.086364 | 0.127273 | 0.193506 | 0.120779 | 0.081818 | 0.081818 | 0.081818 | 0.081818 | 0 | 0.001621 | 0.182059 | 2,263 | 79 | 87 | 28.64557 | 0.830362 | 0 | 0 | 0.188679 | 0 | 0 | 0.163121 | 0.112145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.132075 | 0.018868 | 0.603774 | 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 |
899a40a76b3d46b1165d8bfc6e8d1efe16d93e6b | 1,282 | py | Python | rest_framework_security/deny_repeat_password/signals.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 7 | 2020-09-01T09:55:25.000Z | 2021-11-04T06:59:04.000Z | rest_framework_security/deny_repeat_password/signals.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 32 | 2020-10-28T17:09:18.000Z | 2022-03-12T00:55:09.000Z | rest_framework_security/deny_repeat_password/signals.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 2 | 2020-12-18T01:26:53.000Z | 2021-11-04T06:59:07.000Z | from django.apps import apps
from django.contrib.auth import get_user_model
from django.db.models.signals import post_save
from django.dispatch import receiver, Signal
from rest_framework_security.deny_repeat_password import config
from rest_framework_security.deny_repeat_password.emails import ChangedPasswordEmail
fr... | 34.648649 | 84 | 0.789392 | 157 | 1,282 | 6.159236 | 0.363057 | 0.067218 | 0.108583 | 0.103413 | 0.133402 | 0.133402 | 0.133402 | 0 | 0 | 0 | 0 | 0 | 0.138846 | 1,282 | 36 | 85 | 35.611111 | 0.875906 | 0 | 0 | 0 | 0 | 0 | 0.032761 | 0.029641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.5 | 0.285714 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
899a7241af6e0b8cdd621ac196abec7ab6dcaa11 | 1,085 | py | Python | tests/test_post.py | DerrickOdhiambo/Flask-IP3 | 9861d49152bced9d8ddda7783628451e5af10323 | [
"MIT"
] | null | null | null | tests/test_post.py | DerrickOdhiambo/Flask-IP3 | 9861d49152bced9d8ddda7783628451e5af10323 | [
"MIT"
] | null | null | null | tests/test_post.py | DerrickOdhiambo/Flask-IP3 | 9861d49152bced9d8ddda7783628451e5af10323 | [
"MIT"
] | null | null | null | import unittest
from app.models import User,Post,Comments
from app import db
class PostTest(unittest.TestCase):
def setUp(self):
"""
Set up method that will run before every Test
"""
self.post= Post(category='Product', content='Yes we can!')
self.user_Derrick = User(userna... | 31.911765 | 104 | 0.669124 | 139 | 1,085 | 5.122302 | 0.395683 | 0.044944 | 0.078652 | 0.042135 | 0.19382 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001166 | 0.209217 | 1,085 | 33 | 105 | 32.878788 | 0.828671 | 0.041475 | 0 | 0 | 0 | 0 | 0.089567 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.227273 | false | 0.045455 | 0.136364 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 1 |
899e05d154700b28dc0f00552d97ba1b87816851 | 3,474 | py | Python | biblio/my_secondary_verifications.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | biblio/my_secondary_verifications.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | biblio/my_secondary_verifications.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2020-2021 Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision: 571 $
# Date: $Date: 2020-11-19 15:53:08 -0500 (Thu, 19 Nov 2020) $
from isfdb impor... | 35.44898 | 107 | 0.531952 | 408 | 3,474 | 4.375 | 0.382353 | 0.086275 | 0.080672 | 0.042017 | 0.111485 | 0.042577 | 0 | 0 | 0 | 0 | 0 | 0.035442 | 0.358377 | 3,474 | 97 | 108 | 35.814433 | 0.765366 | 0.136154 | 0 | 0.169014 | 0 | 0 | 0.31158 | 0.063253 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056338 | null | null | 0.253521 | 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 |
899e62389d7e3e73d0a9cac9e6a927bac137f515 | 1,523 | py | Python | extended_uva_judge/utilities.py | fritogotlayed/Extended-UVA-Judge | 7f4b04052429374d90597757c5bfb2a0a5bfe2ba | [
"MIT"
] | null | null | null | extended_uva_judge/utilities.py | fritogotlayed/Extended-UVA-Judge | 7f4b04052429374d90597757c5bfb2a0a5bfe2ba | [
"MIT"
] | null | null | null | extended_uva_judge/utilities.py | fritogotlayed/Extended-UVA-Judge | 7f4b04052429374d90597757c5bfb2a0a5bfe2ba | [
"MIT"
] | null | null | null | import os
import yaml
from extended_uva_judge import errors
def get_problem_directory(app_config):
"""Gets the directory containing the problem configs.
:return: The path to the problem configs.
:rtype: str
"""
problem_directory = app_config['problem_directory']
if not problem_directory:
... | 29.288462 | 75 | 0.730138 | 196 | 1,523 | 5.438776 | 0.321429 | 0.24015 | 0.075047 | 0.093809 | 0.245779 | 0.189493 | 0.189493 | 0.189493 | 0.189493 | 0.189493 | 0 | 0 | 0.19107 | 1,523 | 51 | 76 | 29.862745 | 0.86526 | 0.304662 | 0 | 0.285714 | 0 | 0 | 0.04985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89a0e886b154e2d90823978c34e848f5d1927982 | 18,885 | py | Python | scripts/ur5_open_loop.py | lar-deeufba/real_time_grasp | d5ba0253bc42103b3dc5135d345c3a650f0bd64f | [
"BSD-3-Clause"
] | 27 | 2020-05-26T23:48:12.000Z | 2022-01-21T09:33:11.000Z | scripts/ur5_open_loop.py | lar-deeufba/real-time-grasp | d5ba0253bc42103b3dc5135d345c3a650f0bd64f | [
"BSD-3-Clause"
] | null | null | null | scripts/ur5_open_loop.py | lar-deeufba/real-time-grasp | d5ba0253bc42103b3dc5135d345c3a650f0bd64f | [
"BSD-3-Clause"
] | 8 | 2020-05-20T03:29:20.000Z | 2021-12-21T13:40:10.000Z | #!/usr/bin/python
import rospy
import actionlib
import numpy as np
import argparse
import copy
from copy import deepcopy
import rosservice
import sys
import re
from std_msgs.msg import Float64MultiArray, Float32MultiArray
from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal, JointTolera... | 35.365169 | 133 | 0.714112 | 2,763 | 18,885 | 4.666667 | 0.167933 | 0.012564 | 0.007756 | 0.013184 | 0.285482 | 0.236234 | 0.189623 | 0.155654 | 0.12913 | 0.116178 | 0 | 0.03803 | 0.164575 | 18,885 | 533 | 134 | 35.43152 | 0.779236 | 0.097379 | 0 | 0.209632 | 0 | 0 | 0.119337 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002833 | 0.05949 | null | null | 0.014164 | 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 |
89a1c74f6ff7daea200b8e6b6423ed86d7bc83ec | 2,936 | py | Python | certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py | xoxys/certbot-dns-ispconfig | 8d5c0a9df72342ce55db6469d10cdd69ce3bb024 | [
"MIT"
] | 1 | 2021-03-19T00:29:39.000Z | 2021-03-19T00:29:39.000Z | certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py | xoxys/certbot-dns-ispconfig | 8d5c0a9df72342ce55db6469d10cdd69ce3bb024 | [
"MIT"
] | 6 | 2020-11-11T21:32:23.000Z | 2021-03-20T16:00:17.000Z | certbot_dns_corenetworks/test/unit/test_dns_corenetwork.py | thegeeklab/certbot-dns-corenetworks | 8d5c0a9df72342ce55db6469d10cdd69ce3bb024 | [
"MIT"
] | null | null | null | """Tests for certbot_dns_corenetworks.dns_corenetworks."""
import unittest
import mock
from certbot import errors
from certbot.compat import os
from certbot.plugins import dns_test_common
from certbot.plugins.dns_test_common import DOMAIN
from certbot.tests import util as test_util
API_USER = "my_user"
API_PASSWORD ... | 35.373494 | 93 | 0.68733 | 336 | 2,936 | 5.744048 | 0.241071 | 0.041451 | 0.053886 | 0.046632 | 0.563731 | 0.540933 | 0.479793 | 0.479793 | 0.462176 | 0.401554 | 0 | 0.000431 | 0.209469 | 2,936 | 82 | 94 | 35.804878 | 0.831107 | 0.038488 | 0 | 0.344828 | 0 | 0 | 0.087838 | 0.044808 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0.086207 | 0.137931 | 0 | 0.258621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
89a5c2838a442d78a5960f630f0b8be24007cf8e | 1,405 | py | Python | src/calrissian/regularization/regularize_orthogonal.py | awlange/brainsparks | 05baff28da347172083672c940406f5696893201 | [
"MIT"
] | 3 | 2015-10-30T04:04:02.000Z | 2020-02-13T19:08:42.000Z | src/calrissian/regularization/regularize_orthogonal.py | awlange/brainsparks | 05baff28da347172083672c940406f5696893201 | [
"MIT"
] | null | null | null | src/calrissian/regularization/regularize_orthogonal.py | awlange/brainsparks | 05baff28da347172083672c940406f5696893201 | [
"MIT"
] | null | null | null | import numpy as np
class RegularizeOrthogonal(object):
"""
Orthogonal
"""
def __init__(self, coeff_lambda=0.0):
self.coeff_lambda = coeff_lambda
def cost(self, layers):
c = 0.0
for layer in layers:
wt = layer.w.transpose()
for j in range(layer.outp... | 31.222222 | 68 | 0.458363 | 187 | 1,405 | 3.336898 | 0.299465 | 0.028846 | 0.096154 | 0.115385 | 0.375 | 0.301282 | 0.301282 | 0.121795 | 0.121795 | 0.121795 | 0 | 0.006075 | 0.414235 | 1,405 | 44 | 69 | 31.931818 | 0.752126 | 0.022064 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89a6fed9b1397a9b14c141ea4b85328623a63382 | 7,839 | py | Python | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/util.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import sys, bisect
from collections import defaultdict
from itertools import islice, izip
import numpy as np
from scipy.misc import logsumexp
from scipy.spatial import distance
import Levenshtein
PUNCTUATION = set(("'", '"', ',', '.', '!', '?', ';', ':', '-', '--', '(', ')',
'/', '_', '\\', '+', '<... | 33.075949 | 223 | 0.56474 | 1,069 | 7,839 | 4.04116 | 0.254443 | 0.016204 | 0.018519 | 0.024306 | 0.155324 | 0.106019 | 0.087269 | 0.066898 | 0.066898 | 0.066898 | 0 | 0.016411 | 0.292639 | 7,839 | 237 | 224 | 33.075949 | 0.762669 | 0.0708 | 0 | 0.132979 | 0 | 0.005319 | 0.073795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037234 | null | null | 0.047872 | 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 |
89a8b28d63bb94947dfc6a9846e9c93c4d60b60d | 845 | py | Python | creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py | imxiaow/django-xw-project | 06d97b7d3701422b08720e00e87f6c471461c19a | [
"MIT"
] | 1 | 2020-11-25T17:33:31.000Z | 2020-11-25T17:33:31.000Z | creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py | imxiaow/django-xw-project | 06d97b7d3701422b08720e00e87f6c471461c19a | [
"MIT"
] | null | null | null | creatDjangoApp1/accounts/migrations/0006_auto_20201130_2119.py | imxiaow/django-xw-project | 06d97b7d3701422b08720e00e87f6c471461c19a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-30 21:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20201130_1450'),
]
operations = [
migrations.AddField(
model_name='order',
name='note',
... | 29.137931 | 166 | 0.581065 | 87 | 845 | 5.54023 | 0.551724 | 0.056017 | 0.124481 | 0.099585 | 0.244813 | 0.20332 | 0.20332 | 0.20332 | 0.20332 | 0 | 0 | 0.066007 | 0.28284 | 845 | 28 | 167 | 30.178571 | 0.729373 | 0.053254 | 0 | 0.318182 | 1 | 0 | 0.166667 | 0.028822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89a8d67890dba5fcad6eb3055086bfd2d086adc8 | 647 | py | Python | HelloWorld/guessinggame.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | HelloWorld/guessinggame.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | HelloWorld/guessinggame.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | # answer = 5
# print("please guess number between 1 and 10: ")
# guess = int(input())
#
# if guess < answer:
# print("Please guess higher")
# elif guess > answer:
# print ( "Please guess lower")
# else:
# print("You got it first time")
answer = 5
print ("Please guess number between 1 and 10: ")
guess = in... | 23.107143 | 54 | 0.615147 | 91 | 647 | 4.373626 | 0.395604 | 0.138191 | 0.201005 | 0.135678 | 0.728643 | 0.660804 | 0.660804 | 0.276382 | 0.276382 | 0.276382 | 0 | 0.016598 | 0.255023 | 647 | 27 | 55 | 23.962963 | 0.809129 | 0.404946 | 0 | 0.307692 | 0 | 0 | 0.375335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89ad3ad12dbbb7451941460b3c2d3ac8663e01da | 1,370 | py | Python | deprecated_examples_robust/multimedia/avmnist_MFM_robust.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | deprecated_examples_robust/multimedia/avmnist_MFM_robust.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | deprecated_examples_robust/multimedia/avmnist_MFM_robust.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.getcwd())))
from training_structures.MFM import train_MFM,test_MFM
from fusions.common_fusions import Concat
from unimodals.MVAE import LeNetEncoder,DeLeNet
from unimodals.common_models import MLP
from torch import nn
import torch
from objective_fu... | 37.027027 | 149 | 0.806569 | 209 | 1,370 | 5.110048 | 0.373206 | 0.098315 | 0.044944 | 0.052434 | 0.170412 | 0.058989 | 0.058989 | 0.058989 | 0.058989 | 0.058989 | 0 | 0.032209 | 0.048175 | 1,370 | 36 | 150 | 38.055556 | 0.78681 | 0 | 0 | 0 | 0 | 0 | 0.067153 | 0.047445 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
89b1a7985acccd182bc360d4370b40a665ed42c6 | 1,352 | py | Python | pygame_template.py | Pittsy24/pygame_template | b72397a37610fc267870151e0141de0d15793b7c | [
"MIT"
] | null | null | null | pygame_template.py | Pittsy24/pygame_template | b72397a37610fc267870151e0141de0d15793b7c | [
"MIT"
] | null | null | null | pygame_template.py | Pittsy24/pygame_template | b72397a37610fc267870151e0141de0d15793b7c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# By Joseph Pitts
import sys
import random
import pygame
from pygame.locals import *
class Colours:
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
AQUA = (0, 255, 255)
GREY = (128, 128, 128)
NAVY = (0, 0, 128)
SILVER = (192, 192 ,192)
GREEN = (0, 128, 0)
... | 23.719298 | 94 | 0.513314 | 171 | 1,352 | 4.017544 | 0.409357 | 0.040757 | 0.069869 | 0.082969 | 0.082969 | 0.082969 | 0.082969 | 0.082969 | 0 | 0 | 0 | 0.140251 | 0.351331 | 1,352 | 56 | 95 | 24.142857 | 0.643101 | 0.024408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.02381 | 0.642857 | 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 |
89bb8aec70dc5ddd26138767ff03178f1d8f86d1 | 830 | py | Python | sdk/pyseele/clazz.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | 3 | 2019-12-20T13:32:34.000Z | 2021-04-27T06:02:28.000Z | sdk/pyseele/clazz.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | null | null | null | sdk/pyseele/clazz.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
Project Seele
@author : Rinka
@date : 2019/12/17
"""
from pyseele.workitem import Workitem
class ResourcingContext:
"""
Resourcing Context maintains all org.rinka.seele.server.resource service principals that guide RS
to handle the workitem.
"""
def __init__(self):
... | 23.055556 | 101 | 0.624096 | 99 | 830 | 5.151515 | 0.646465 | 0.066667 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018771 | 0.293976 | 830 | 35 | 102 | 23.714286 | 0.851536 | 0.471084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98241ad4baa33294d1ccb68f952b1b1217195b7e | 10,405 | py | Python | src/GG_ESB.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | 7 | 2018-02-22T16:58:26.000Z | 2022-02-05T18:17:56.000Z | src/GG_ESB.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | null | null | null | src/GG_ESB.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | 2 | 2019-04-15T21:07:03.000Z | 2021-05-11T07:41:49.000Z | from TwoDimLookup_motor import TwoDimLookup_motor
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from scipy import interpolate
import numpy as np
### Input Parameters
# C_F = 27000 # Cornering stiffness front / Schräglaufsteifigkeit vorne [N/rad] - Is already for two wheels !
# C_R = ... | 33.242812 | 257 | 0.528304 | 1,487 | 10,405 | 3.471419 | 0.161399 | 0.022278 | 0.015498 | 0.018597 | 0.487408 | 0.455637 | 0.431228 | 0.391709 | 0.335723 | 0.329523 | 0 | 0.038598 | 0.347621 | 10,405 | 312 | 258 | 33.349359 | 0.721715 | 0.259779 | 0 | 0.36875 | 0 | 0 | 0.006876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9827c78b55c36213e56e3cab4efb3a255d146830 | 21,718 | py | Python | temboardui/plugins/monitoring/tools.py | pierrehilbert/temboard | d28bbe87329d3023774fe8c773b8b4ad50e09757 | [
"PostgreSQL"
] | null | null | null | temboardui/plugins/monitoring/tools.py | pierrehilbert/temboard | d28bbe87329d3023774fe8c773b8b4ad50e09757 | [
"PostgreSQL"
] | null | null | null | temboardui/plugins/monitoring/tools.py | pierrehilbert/temboard | d28bbe87329d3023774fe8c773b8b4ad50e09757 | [
"PostgreSQL"
] | null | null | null | import logging
from .model.orm import (
Check,
Host,
Instance,
)
from .alerting import (
bootstrap_checks,
check_specs,
)
logger = logging.getLogger(__name__)
def merge_agent_info(session, host_info, instances_info):
"""Update the host, instance and database information with the
data re... | 39.061151 | 78 | 0.38056 | 1,594 | 21,718 | 4.923463 | 0.13739 | 0.168196 | 0.010703 | 0.032492 | 0.528287 | 0.417431 | 0.34633 | 0.331295 | 0.305556 | 0.2816 | 0 | 0.001499 | 0.539368 | 21,718 | 555 | 79 | 39.131532 | 0.782987 | 0.03039 | 0 | 0.429423 | 0 | 0 | 0.234574 | 0.042801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015905 | false | 0.003976 | 0.005964 | 0 | 0.037773 | 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 |
982acf7f9f2218e64a54202928052ad4200a4b8a | 1,720 | py | Python | main.py | matr095/A-Day-Calculator | 76859f69fe7731f8292ca9830e201643f4420820 | [
"Apache-2.0"
] | null | null | null | main.py | matr095/A-Day-Calculator | 76859f69fe7731f8292ca9830e201643f4420820 | [
"Apache-2.0"
] | null | null | null | main.py | matr095/A-Day-Calculator | 76859f69fe7731f8292ca9830e201643f4420820 | [
"Apache-2.0"
] | null | null | null | from ftplib import FTP
from datetime import *
from tkinter import *
def interval():
now = date.today()
yourDay = int(input("Vous êtes né quel jour ? "))
yourMonth = int(input("Vous êtes né quel mois ? "))
yourYear = int(input("Vous êtes né quelle année ? "))
birthday = date(yourYear, yourMonth, yourDay)
daysPas... | 23.243243 | 100 | 0.674419 | 235 | 1,720 | 4.931915 | 0.365957 | 0.048318 | 0.067299 | 0.058671 | 0.314064 | 0.22692 | 0.188956 | 0.188956 | 0 | 0 | 0 | 0.016338 | 0.14593 | 1,720 | 73 | 101 | 23.561644 | 0.772634 | 0 | 0 | 0.16 | 0 | 0 | 0.196855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.14 | 0.08 | 0 | 0.12 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
982c53384fb7fdf1f9847dabcbbd5e3b70a7ace1 | 5,032 | py | Python | nodes/sunled_action.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | 1 | 2021-06-23T06:07:56.000Z | 2021-06-23T06:07:56.000Z | nodes/sunled_action.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | null | null | null | nodes/sunled_action.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | null | null | null | import math
import rospy
import numpy as np
import random
from base_action import BaseAction
class SunledAction(BaseAction):
index_to_led_position = {}
def __init__(self,init_angle,device,param,trial_index):
print('sunled action __init__')
super(SunledAction,self).__init__(device,param)
... | 43.37931 | 93 | 0.595787 | 628 | 5,032 | 4.476115 | 0.14172 | 0.115261 | 0.079687 | 0.064034 | 0.528993 | 0.442547 | 0.40555 | 0.323017 | 0.314479 | 0.252579 | 0 | 0.00427 | 0.301868 | 5,032 | 115 | 94 | 43.756522 | 0.795901 | 0.046701 | 0 | 0.333333 | 0 | 0 | 0.08265 | 0.004627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.057471 | null | null | 0.011494 | 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 |
982eca037ad091ca6153033d361aee2cf39feb98 | 371 | py | Python | Base64_Cleanup.py | Har6ard/HackTheBox | a1dcfa6373afa13469250572d5e93956c24e01dc | [
"MIT"
] | null | null | null | Base64_Cleanup.py | Har6ard/HackTheBox | a1dcfa6373afa13469250572d5e93956c24e01dc | [
"MIT"
] | null | null | null | Base64_Cleanup.py | Har6ard/HackTheBox | a1dcfa6373afa13469250572d5e93956c24e01dc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
This script is just to clean up Base64 if is has � present in the output.
Example:
$�G�r�o�U�P�P�O�L�i�C�Y�S�E�t�t�I�N�G�s� �=� �[�r�E�F�]�.�A�S�s�e�M�B�L�Y�.�G�E�t�T�y�p�E�
$GroUPPOLiCYSEttINGs = [rEF].ASseMBLY.GEtTypE
"""
with open("./target.txt", "r") as f_obj:
data = f_obj.read()
... | 24.733333 | 90 | 0.587601 | 124 | 371 | 2.120968 | 0.41129 | 0.053232 | 0.057034 | 0.030418 | 0.079848 | 0.053232 | 0.053232 | 0 | 0 | 0 | 0.126685 | 0.009494 | 0.148248 | 371 | 14 | 91 | 26.5 | 0.674051 | 0.6469 | 0 | 0 | 0 | 0 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
982faf238d52b2846a9e61e74530e474bb1097c9 | 742 | py | Python | setup.py | jonbulica99/deeplator | d6ad8d60b09022e442cbde6c155a2d752072e358 | [
"MIT"
] | 64 | 2017-08-31T19:26:12.000Z | 2022-02-27T19:25:21.000Z | setup.py | jonbulica99/deeplator | d6ad8d60b09022e442cbde6c155a2d752072e358 | [
"MIT"
] | 12 | 2017-09-08T15:12:02.000Z | 2021-12-12T07:18:41.000Z | setup.py | jonbulica99/deeplator | d6ad8d60b09022e442cbde6c155a2d752072e358 | [
"MIT"
] | 14 | 2017-09-07T11:39:44.000Z | 2021-12-11T09:25:29.000Z | #!/usr/bin/env python3
from setuptools import setup
setup(
name="deeplator",
version="0.0.7",
description="Wrapper for DeepL translator.",
long_description="Deeplator is a library enabling translation via the DeepL translator.",
author="uinput",
author_email="uinput@users.noreply.github.com",
... | 29.68 | 93 | 0.645553 | 79 | 742 | 6.012658 | 0.721519 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011824 | 0.202156 | 742 | 24 | 94 | 30.916667 | 0.790541 | 0.028302 | 0 | 0 | 0 | 0 | 0.520833 | 0.043056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98329bd5987a8121de4a33c66083b79a38d22afd | 478 | py | Python | blogs/migrations/0012_auto_20200601_1247.py | daaawx/bearblog | 5e01e4443c632ff53b918cf8a0d3b1c648b352fe | [
"MIT"
] | 657 | 2020-05-26T16:16:07.000Z | 2022-03-26T22:35:01.000Z | blogs/migrations/0012_auto_20200601_1247.py | daaawx/bearblog | 5e01e4443c632ff53b918cf8a0d3b1c648b352fe | [
"MIT"
] | 107 | 2020-05-26T17:45:04.000Z | 2022-03-17T08:24:00.000Z | blogs/migrations/0012_auto_20200601_1247.py | chachan/bearblog | f399f806839bea9f6fd499f50c87cf84fda3bc91 | [
"MIT"
] | 42 | 2020-05-26T23:57:58.000Z | 2022-03-15T04:20:26.000Z | # Generated by Django 3.0.6 on 2020-06-01 12:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogs', '0011_auto_20200531_0915'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='tags',
... | 20.782609 | 47 | 0.558577 | 48 | 478 | 5.458333 | 0.791667 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095975 | 0.324268 | 478 | 22 | 48 | 21.727273 | 0.71517 | 0.094142 | 0 | 0.125 | 1 | 0 | 0.111369 | 0.053364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98357169592d3463991af69ec85a5b95cd26dfba | 753 | py | Python | app/setup.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | app/setup.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | 6 | 2020-11-05T02:18:15.000Z | 2022-03-12T00:50:09.000Z | app/setup.py | cleve/pulzar | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
# with open("../README.md", "r") as fh:
# long_description = fh.read()
setup(name='pulzar-pkg',
version='21.4.1',
author='Mauricio Cleveland',
author_email='mauricio.cleveland@gmail.com',
description='Distributed database and jobs',
# long_description=l... | 32.73913 | 58 | 0.605578 | 80 | 753 | 5.5875 | 0.7625 | 0.134228 | 0.085011 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012132 | 0.233732 | 753 | 22 | 59 | 34.227273 | 0.762565 | 0.266932 | 0 | 0 | 0 | 0 | 0.465201 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9838b9feb9100277e59803005d55c82663dd9651 | 1,435 | py | Python | cnc/migrations/0001_initial.py | andrewmallory/pan-cnc | bdd6349820107acf06b607c2dc0154ded468f049 | [
"Apache-2.0"
] | 3 | 2019-03-13T14:59:59.000Z | 2020-04-26T06:30:16.000Z | cnc/migrations/0001_initial.py | andrewmallory/pan-cnc | bdd6349820107acf06b607c2dc0154ded468f049 | [
"Apache-2.0"
] | 29 | 2019-02-05T00:01:32.000Z | 2021-03-22T14:10:07.000Z | cnc/migrations/0001_initial.py | andrewmallory/pan-cnc | bdd6349820107acf06b607c2dc0154ded468f049 | [
"Apache-2.0"
] | 2 | 2019-08-31T13:54:53.000Z | 2020-11-18T16:27:11.000Z | # Generated by Django 3.0.5 on 2020-05-26 13:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RepositoryDetails',
fields... | 38.783784 | 123 | 0.587456 | 147 | 1,435 | 5.578231 | 0.421769 | 0.087805 | 0.078049 | 0.087805 | 0.40122 | 0.363415 | 0.363415 | 0.268293 | 0.268293 | 0.268293 | 0 | 0.040797 | 0.265505 | 1,435 | 36 | 124 | 39.861111 | 0.737192 | 0.031359 | 0 | 0.344828 | 1 | 0 | 0.102305 | 0.01513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
983c57ddcc0f5ba60bf439a4f0ac1aa43adc5576 | 557 | py | Python | core/migrations/0003_auto_20180730_1452.py | CobwebOrg/cobweb-django | 14241326860620dbaa64f7eefc6d4b393f80d23c | [
"MIT"
] | 7 | 2017-09-14T18:52:58.000Z | 2020-05-18T21:01:20.000Z | core/migrations/0003_auto_20180730_1452.py | CobwebOrg/cobweb-django | 14241326860620dbaa64f7eefc6d4b393f80d23c | [
"MIT"
] | 151 | 2017-09-14T18:46:02.000Z | 2022-02-10T09:18:44.000Z | core/migrations/0003_auto_20180730_1452.py | CobwebOrg/cobweb-django | 14241326860620dbaa64f7eefc6d4b393f80d23c | [
"MIT"
] | 1 | 2017-10-29T19:37:29.000Z | 2017-10-29T19:37:29.000Z | # Generated by Django 2.0.7 on 2018-07-30 21:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20180730_1451'),
]
operations = [
migrations.AddField(
model_name='resourcescan',
name='redirect_u... | 24.217391 | 72 | 0.594255 | 55 | 557 | 5.872727 | 0.781818 | 0.099071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077694 | 0.283662 | 557 | 22 | 73 | 25.318182 | 0.73183 | 0.08079 | 0 | 0.125 | 1 | 0 | 0.180392 | 0.045098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
983e1c82111a5197c93a2fe5e845fe88a4784b12 | 4,954 | py | Python | csr/csr.py | AlexJanse/python_csr2transmart | c01a76dfa6ecfa4248b274144092ccc6c31aab5a | [
"MIT"
] | null | null | null | csr/csr.py | AlexJanse/python_csr2transmart | c01a76dfa6ecfa4248b274144092ccc6c31aab5a | [
"MIT"
] | null | null | null | csr/csr.py | AlexJanse/python_csr2transmart | c01a76dfa6ecfa4248b274144092ccc6c31aab5a | [
"MIT"
] | null | null | null | from datetime import date
from typing import Sequence, Optional, Union, Dict, List, Any
from pydantic import BaseModel, validator, Field
from csr.entity_validation import validate_entity_data
from csr.exceptions import DataException
class Individual(BaseModel):
"""
Individual entity
"""
individual_i... | 34.402778 | 106 | 0.701655 | 587 | 4,954 | 5.679727 | 0.201022 | 0.065987 | 0.041992 | 0.042891 | 0.402819 | 0.353629 | 0.343731 | 0.285543 | 0.233953 | 0.146371 | 0 | 0.003488 | 0.189746 | 4,954 | 143 | 107 | 34.643357 | 0.827105 | 0.029067 | 0 | 0.097826 | 0 | 0 | 0.111538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0 | 0.054348 | 0 | 0.76087 | 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 |
9840c6e619f369bd516308c15457bc17f344220a | 2,007 | py | Python | marketplaces/cron_report_daily_activity.py | diassor/CollectorCity-Market-Place | 892ad220b8cf1c0fc7433f625213fe61729522b2 | [
"Apache-2.0"
] | 135 | 2015-03-19T13:28:18.000Z | 2022-03-27T06:41:42.000Z | marketplaces/cron_report_daily_activity.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | null | null | null | marketplaces/cron_report_daily_activity.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | 83 | 2015-01-30T01:00:15.000Z | 2022-03-08T17:25:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import logging
import datetime
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.core.management import setup_environ
from django.core.mail import send_mail
#from django.db import transaction
import settings
setup_environ(settings)
"""
Daily Activi... | 35.210526 | 161 | 0.655705 | 243 | 2,007 | 5.226337 | 0.366255 | 0.102362 | 0.074803 | 0.028346 | 0.261417 | 0.187402 | 0.187402 | 0.140157 | 0 | 0 | 0 | 0.000662 | 0.247633 | 2,007 | 57 | 162 | 35.210526 | 0.840397 | 0.11709 | 0 | 0 | 0 | 0 | 0.169823 | 0.074495 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | 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 |
98420fbde9020acf9d2baa635fdb24d604a951dc | 3,882 | py | Python | utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py | snoopdave/incubator-usergrid | 104f64eb4f318221f0d11bf43baad0e7c630cafe | [
"Apache-2.0"
] | 788 | 2015-08-21T16:46:57.000Z | 2022-03-16T01:57:44.000Z | utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py | snoopdave/incubator-usergrid | 104f64eb4f318221f0d11bf43baad0e7c630cafe | [
"Apache-2.0"
] | 101 | 2015-08-23T04:58:13.000Z | 2019-11-13T07:02:57.000Z | utils/usergrid-util-python/usergrid_tools/general/queue_monitor.py | snoopdave/incubator-usergrid | 104f64eb4f318221f0d11bf43baad0e7c630cafe | [
"Apache-2.0"
] | 342 | 2015-08-22T06:14:20.000Z | 2022-03-15T01:20:39.000Z | # */
# * Licensed to the Apache Software Foundation (ASF) under one
# * or more contributor license agreements. See the NOTICE file
# * distributed with this work for additional information
# * regarding copyright ownership. The ASF licenses this file
# * to you under the Apache License, Version 2.0 (the
# * "License... | 27.928058 | 121 | 0.638073 | 533 | 3,882 | 4.470919 | 0.339587 | 0.030214 | 0.036928 | 0.013428 | 0.050357 | 0.050357 | 0 | 0 | 0 | 0 | 0 | 0.018743 | 0.257857 | 3,882 | 138 | 122 | 28.130435 | 0.8084 | 0.243689 | 0 | 0.026316 | 0 | 0.013158 | 0.137066 | 0.010649 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.065789 | 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 |
9843d82030095d57d6ca2780e6e91c3791600765 | 433 | py | Python | src/hexdump2/__init__.py | HGrooms/hexdump2 | bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3 | [
"MIT"
] | null | null | null | src/hexdump2/__init__.py | HGrooms/hexdump2 | bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3 | [
"MIT"
] | null | null | null | src/hexdump2/__init__.py | HGrooms/hexdump2 | bd9c5de0ac7cd82d0a77c0b5561e5cb12eb7c2b3 | [
"MIT"
] | null | null | null | """
mirrors functionality of hexdump(1) and API interface of Python hexdump package.
Usage:
1. Within Python:
from hexdump2 import hexdump, color_always
# Enable or disable color all the time
color_always()
hexdump(bytes-like data)
2. From commandline, run the console scripts hexdump2 or hd2
$ hd2 -h
"""
# Import ... | 20.619048 | 80 | 0.752887 | 64 | 433 | 4.96875 | 0.59375 | 0.138365 | 0.113208 | 0.157233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.159353 | 433 | 20 | 81 | 21.65 | 0.851648 | 0.759815 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 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 | 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 |
984c178778bd5a8ed38c3fb9100e9a5a25991cad | 3,050 | py | Python | ok_redirects/models.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | 1 | 2021-01-04T08:58:09.000Z | 2021-01-04T08:58:09.000Z | ok_redirects/models.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | null | null | null | ok_redirects/models.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.sites.models import Site
from django.db import models
from django.utils.translation import pgettext_lazy
from .constants import REDIRECT_TYPE_CHOICES, REDIRECT_301
from .fields import MultipleChoiceArrayField
__all__ = (
'Redirect',
)
LANGUAGES = getattr(setti... | 30.5 | 81 | 0.605902 | 326 | 3,050 | 5.469325 | 0.322086 | 0.114414 | 0.125631 | 0.206394 | 0.314638 | 0.292765 | 0.095345 | 0.056085 | 0 | 0 | 0 | 0.007329 | 0.284262 | 3,050 | 99 | 82 | 30.808081 | 0.809437 | 0 | 0 | 0.25 | 0 | 0 | 0.237705 | 0.009836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.065217 | 0.01087 | 0.206522 | 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 |
984deaa3e520bef0fbb915ca5c77f71dc4dc260d | 307 | py | Python | driver/urls.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | 1 | 2022-01-13T19:31:56.000Z | 2022-01-13T19:31:56.000Z | driver/urls.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | 5 | 2020-02-12T01:28:33.000Z | 2021-06-10T20:44:23.000Z | driver/urls.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from driver import views
# from djgeojson.views import GeoJSONLayerView
# from driver.models import Points
urlpatterns = [
url(r'^new/driver$', views.create_driver_profile, name='new-driver-profile'),
url(r'^new/car$', views.submit_car, name='new-car'),
] | 30.7 | 81 | 0.742671 | 44 | 307 | 5.113636 | 0.477273 | 0.088889 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123779 | 307 | 10 | 82 | 30.7 | 0.836431 | 0.250814 | 0 | 0 | 0 | 0 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
98501d1d0a0e678ce5a1a02156e3060dda0fe5b8 | 2,286 | py | Python | dodo.py | spandanb/textwalker | 0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34 | [
"MIT"
] | 2 | 2021-05-07T23:41:32.000Z | 2021-05-08T15:52:08.000Z | dodo.py | spandanb/textwalker | 0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34 | [
"MIT"
] | null | null | null | dodo.py | spandanb/textwalker | 0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34 | [
"MIT"
] | null | null | null | """
doit docs: https://pydoit.org/cmd_run.html
"""
import pdoc
import os
import os.path
def generate_docs(docs_dir: str):
"""
python callable that creates docs like docs/textwalker.html, docs/patternparser.py
Args:
docs_dir: location to output docs to
"""
if not os.path.exists(docs_dir):
... | 22.194175 | 104 | 0.575241 | 267 | 2,286 | 4.816479 | 0.348315 | 0.038103 | 0.046656 | 0.093313 | 0.311042 | 0.289269 | 0.250389 | 0.250389 | 0.096423 | 0.096423 | 0 | 0.009186 | 0.285652 | 2,286 | 102 | 105 | 22.411765 | 0.778322 | 0.185914 | 0 | 0.310345 | 1 | 0 | 0.238453 | 0.026559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.051724 | 0 | 0.275862 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98594e8f28f9b9c4731a1d8dca33c92082e2d4cf | 2,451 | py | Python | examples/main_simulation_lemon_graph.py | KaterynaMelnyk/GraphKKE | 4651f1a5e75e23ad0b84403151f7000ab8f292eb | [
"MIT"
] | 1 | 2021-07-23T08:47:05.000Z | 2021-07-23T08:47:05.000Z | examples/main_simulation_lemon_graph.py | k-melnyk/graphKKE | 4651f1a5e75e23ad0b84403151f7000ab8f292eb | [
"MIT"
] | null | null | null | examples/main_simulation_lemon_graph.py | k-melnyk/graphKKE | 4651f1a5e75e23ad0b84403151f7000ab8f292eb | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import scipy
import imageio
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
import graphkke.generate_graphs.graph_generation as graph_generation
import graphkke.generate_graphs.generate_SDE as generate_SDE
parser = argparse.ArgumentParser()
parser.add_... | 32.68 | 101 | 0.641779 | 365 | 2,451 | 4.106849 | 0.317808 | 0.048032 | 0.090727 | 0.032021 | 0.132088 | 0.106738 | 0.074716 | 0.074716 | 0 | 0 | 0 | 0.020103 | 0.208486 | 2,451 | 74 | 102 | 33.121622 | 0.752577 | 0.043656 | 0 | 0 | 1 | 0 | 0.082906 | 0.017949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.169811 | 0.018868 | 0.245283 | 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 |
98598ee67261e34d645c03e2285132218a35b61d | 741 | py | Python | tests/io/open_plus.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 37 | 2017-12-07T15:49:29.000Z | 2022-03-16T16:01:38.000Z | tests/io/open_plus.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 17 | 2016-06-20T09:06:14.000Z | 2016-08-21T10:09:39.000Z | tests/io/open_plus.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 22 | 2016-08-01T01:35:30.000Z | 2022-03-22T18:12:23.000Z | import sys
try:
import uos as os
except ImportError:
import os
if not hasattr(os, "unlink"):
print("SKIP")
sys.exit()
# cleanup in case testfile exists
try:
os.unlink("testfile")
except OSError:
pass
try:
f = open("testfile", "r+b")
print("Unexpectedly opened non-existing file")
excep... | 15.122449 | 50 | 0.643725 | 115 | 741 | 4.147826 | 0.382609 | 0.041929 | 0.109015 | 0.050314 | 0.461216 | 0.398323 | 0.398323 | 0.247379 | 0.109015 | 0 | 0 | 0.028099 | 0.183536 | 741 | 48 | 51 | 15.4375 | 0.760331 | 0.11336 | 0 | 0.675676 | 0 | 0 | 0.220859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081081 | 0.108108 | 0 | 0.108108 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
986bbe481dae578c33047776f9bf717531d791dd | 588 | py | Python | backend/api/migrations/0005_education.py | EmileSchneider/cityrepo | fc9d84016342f7cc83231aab9853b89c37d542f9 | [
"MIT"
] | null | null | null | backend/api/migrations/0005_education.py | EmileSchneider/cityrepo | fc9d84016342f7cc83231aab9853b89c37d542f9 | [
"MIT"
] | null | null | null | backend/api/migrations/0005_education.py | EmileSchneider/cityrepo | fc9d84016342f7cc83231aab9853b89c37d542f9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-12-11 14:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20201211_1411'),
]
operations = [
migrations.CreateModel(
name='Education',
fields=[
... | 26.727273 | 114 | 0.585034 | 60 | 588 | 5.6 | 0.766667 | 0.089286 | 0.107143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090476 | 0.285714 | 588 | 21 | 115 | 28 | 0.709524 | 0.076531 | 0 | 0 | 1 | 0 | 0.112754 | 0.042514 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
986cf0c2c336b0be083773fcf498596f4ecc8d23 | 216 | py | Python | Chicago Data Clean/categories_chicago.py | minxstm/Bootcamp_Project_1 | 1f5d15faab605f7e5b678b6eca802eca04351189 | [
"MIT"
] | null | null | null | Chicago Data Clean/categories_chicago.py | minxstm/Bootcamp_Project_1 | 1f5d15faab605f7e5b678b6eca802eca04351189 | [
"MIT"
] | null | null | null | Chicago Data Clean/categories_chicago.py | minxstm/Bootcamp_Project_1 | 1f5d15faab605f7e5b678b6eca802eca04351189 | [
"MIT"
] | null | null | null | import pandas as pd
chicago_df=pd.read_csv("Chicago_Crime_2015-2017.csv")
#print(chicago_df.head())
chicago_vc = chicago_df["Primary Type"].value_counts()
pd.DataFrame(chicago_vc).to_csv("crime_types_chicago_1.csv")
| 36 | 60 | 0.805556 | 37 | 216 | 4.351351 | 0.594595 | 0.167702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043902 | 0.050926 | 216 | 5 | 61 | 43.2 | 0.741463 | 0.111111 | 0 | 0 | 0 | 0 | 0.335079 | 0.272251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
986f08850a9f3156a8739237ba8493743a09c545 | 1,904 | py | Python | vespa/simulation/auto_gui/experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | null | null | null | vespa/simulation/auto_gui/experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 4 | 2021-04-17T13:58:31.000Z | 2022-01-20T14:19:57.000Z | vespa/simulation/auto_gui/experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 3 | 2021-06-05T16:34:57.000Z | 2022-01-19T16:13:22.000Z | # -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.9.3 on Wed Sep 11 13:50:00 2019
#
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class MyDialog(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: MyDialog.__init__
kwds["style"] = kw... | 31.213115 | 79 | 0.629202 | 258 | 1,904 | 4.430233 | 0.29845 | 0.052493 | 0.052493 | 0.027997 | 0.250219 | 0.139983 | 0.139983 | 0.096238 | 0.096238 | 0.096238 | 0 | 0.04083 | 0.241071 | 1,904 | 60 | 80 | 31.733333 | 0.750173 | 0.204307 | 0 | 0.121212 | 1 | 0 | 0.080828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.212121 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98737ef22d1fe7939a250bbf74abbab55ff11614 | 368 | py | Python | for python/data/mramesh/pframe.py | aerolalit/Auto-Testing-Python-Programs | dd49ab266c9f0fd8e34278f68f8af017711942e3 | [
"MIT"
] | 4 | 2019-10-03T21:16:51.000Z | 2019-10-04T01:28:08.000Z | for python/data/mramesh/pframe.py | aerolalit/Auto-Testing | dd49ab266c9f0fd8e34278f68f8af017711942e3 | [
"MIT"
] | null | null | null | for python/data/mramesh/pframe.py | aerolalit/Auto-Testing | dd49ab266c9f0fd8e34278f68f8af017711942e3 | [
"MIT"
] | null | null | null | #35011
#a3_p10.py
#Miruthula Ramesh
#mramesh@jacobs-university.de
n = int(input("Enter the width"))
w = int(input("Enter the length"))
c = input("Enter a character")
space=" "
def print_frame(n, w):
for i in range(n):
if i == 0 or i == n-1:
print(w*c)
else:
pr... | 21.647059 | 42 | 0.540761 | 59 | 368 | 3.322034 | 0.59322 | 0.153061 | 0.132653 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042802 | 0.30163 | 368 | 16 | 43 | 23 | 0.719844 | 0.157609 | 0 | 0 | 0 | 0 | 0.168966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.363636 | 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 |
98746ffc4cea4687e7a965dcec7581058c45625e | 3,430 | py | Python | detectors/hamlog.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | null | null | null | detectors/hamlog.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | 1 | 2019-07-03T13:32:38.000Z | 2019-07-03T13:32:38.000Z | detectors/hamlog.py | time-track-tool/time-track-tool | a1c280f32a7766e460c862633b748fa206256f24 | [
"MIT"
] | 1 | 2019-05-15T16:01:31.000Z | 2019-05-15T16:01:31.000Z | # Copyright (C) 2012 Dr. Ralf Schlatterbeck Open Source Consulting.
# Reichergasse 131, A-3411 Weidling.
# Web: http://www.runtux.com Email: office@runtux.com
# All rights reserved
# ****************************************************************************
# This library is free software; you can redistribute it and... | 35.360825 | 78 | 0.62828 | 488 | 3,430 | 4.247951 | 0.354508 | 0.027014 | 0.02412 | 0.027496 | 0.158707 | 0.048239 | 0.032803 | 0 | 0 | 0 | 0 | 0.009084 | 0.229738 | 3,430 | 96 | 79 | 35.729167 | 0.775549 | 0.354811 | 0 | 0.057692 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
987ebf3bb40f294fbfe683c9dee6246ece40b947 | 937 | py | Python | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | import os
import json
from fair_research_login import NativeClient
CLIENT_ID = 'e54de045-d346-42ef-9fbc-5d466f4a00c6'
APP_NAME = 'My App'
SCOPES = 'openid email profile urn:globus:auth:scope:transfer.api.globus.org:all urn:globus:auth:scope:search.api.globus.org:all'
CONFIG_FILE = 'tokens-data.json'
tokens = None
# ... | 29.28125 | 129 | 0.709712 | 130 | 937 | 4.992308 | 0.507692 | 0.03698 | 0.061633 | 0.05547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02681 | 0.203842 | 937 | 31 | 130 | 30.225806 | 0.843164 | 0.185699 | 0 | 0.285714 | 0 | 0.047619 | 0.246702 | 0.174142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
988f5d1f8daa9ec72e11862df13ec07c4e300748 | 3,696 | py | Python | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
audit api module.
"""
import pyrin.audit.services as audit_services
from pyrin.api.router.decorators import api
audit_config = audit_services.get_audit_configurations()
audit_config.update(no_cache=True)
is_enabled = audit_config.pop('enabled', False)
if is_enabled is True:
@api(**a... | 33 | 91 | 0.513528 | 307 | 3,696 | 6.143322 | 0.257329 | 0.084836 | 0.178155 | 0.164369 | 0.659597 | 0.369035 | 0.369035 | 0.369035 | 0.369035 | 0.369035 | 0 | 0.0034 | 0.442911 | 3,696 | 111 | 92 | 33.297297 | 0.912579 | 0.698323 | 0 | 0 | 0 | 0 | 0.018817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
9891a82e9057c30b7703a78123e0f01f73c0248f | 6,932 | py | Python | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | 1 | 2020-04-15T10:46:57.000Z | 2020-04-15T10:46:57.000Z | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | 1 | 2016-09-14T03:57:25.000Z | 2016-09-14T03:57:25.000Z | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | null | null | null | """IntegerHeap.py
Priority queues of integer keys based on van Emde Boas trees.
Only the keys are stored; caller is responsible for keeping
track of any data associated with the keys in a separate dictionary.
We use a version of vEB trees in which all accesses to subtrees
are performed indirectly through a hash table... | 34.147783 | 79 | 0.568523 | 969 | 6,932 | 3.972136 | 0.247678 | 0.018187 | 0.030398 | 0.029098 | 0.354638 | 0.339829 | 0.328917 | 0.328917 | 0.312289 | 0.275916 | 0 | 0.009447 | 0.282314 | 6,932 | 202 | 80 | 34.316832 | 0.764221 | 0.562031 | 0 | 0.409091 | 0 | 0 | 0.023402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238636 | false | 0 | 0 | 0 | 0.443182 | 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 | 0 | 0 | 0 | 1 |
9893aa6d0245de7a42d6065da71ab428fbb28e3b | 3,238 | py | Python | core/client/client.py | spiritotaku/fedlearn-algo | 842700d43e7f033a7b6a32d0845cb6d9db5b866a | [
"Apache-2.0"
] | 1 | 2021-07-20T23:44:28.000Z | 2021-07-20T23:44:28.000Z | core/client/client.py | kfliubo/fedlearn-algo | 3440bb10a8680319bcad1b9c9677874bab35550a | [
"Apache-2.0"
] | null | null | null | core/client/client.py | kfliubo/fedlearn-algo | 3440bb10a8680319bcad1b9c9677874bab35550a | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Fedlearn 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 agreed to in writi... | 26.540984 | 88 | 0.62446 | 363 | 3,238 | 5.418733 | 0.393939 | 0.046263 | 0.03457 | 0.016268 | 0.101678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004322 | 0.285361 | 3,238 | 121 | 89 | 26.760331 | 0.845722 | 0.328598 | 0 | 0.097561 | 0 | 0 | 0.040089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0.02439 | 0.170732 | 0 | 0.512195 | 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 |
9894e55664da246d5300969b91941e5dc7ab68d5 | 9,369 | py | Python | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | from __future__ import print_function
#
# cfg file to pack (DigiToRaw) a GT DAQ record, unpack (RawToDigi) it back
# and compare the two set of digis
#
# V M Ghete 2009-04-06
import FWCore.ParameterSet.Config as cms
# process
process = cms.Process('TestGtPackUnpackAnalyzer')
###################### user choices #####... | 35.488636 | 139 | 0.732629 | 1,120 | 9,369 | 6.040179 | 0.286607 | 0.044346 | 0.012417 | 0.014191 | 0.335107 | 0.293422 | 0.281892 | 0.281892 | 0.228234 | 0.221582 | 0 | 0.101225 | 0.145907 | 9,369 | 263 | 140 | 35.623574 | 0.744189 | 0.293094 | 0 | 0.275862 | 0 | 0.181034 | 0.468184 | 0.42793 | 0 | 0 | 0 | 0.003802 | 0 | 1 | 0 | false | 0 | 0.025862 | 0 | 0.025862 | 0.025862 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98985142e7c8b8249e12ffcb7bdd9280a12f0e9c | 428 | py | Python | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 1 | 2020-05-10T06:40:58.000Z | 2020-05-10T06:40:58.000Z | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 25 | 2020-05-03T08:10:38.000Z | 2021-09-22T18:59:29.000Z | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 10 | 2020-05-03T08:25:56.000Z | 2020-06-03T06:49:34.000Z | from django.urls import path
from cases.api.get_visuals_data import UpdateVisualsData
from cases.api.kenyan_cases import KenyanCaseList
from cases.api.visuals import VisualList
urlpatterns = [
path('kenyan/all', KenyanCaseList.as_view(), name='Historical data'),
path('history/', VisualList.as_view(), name='Hi... | 32.923077 | 87 | 0.766355 | 54 | 428 | 5.962963 | 0.407407 | 0.083851 | 0.111801 | 0.124224 | 0.173913 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 428 | 12 | 88 | 35.666667 | 0.847368 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
98abe48e2e82e8030955b56dce5a86874efde1ce | 1,934 | py | Python | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | # Licensed under an MIT open source license - see LICENSE
'''
Runs data_reduc on all data cubes in the file.
Creates a folder for each data cube and its products
Run from folder containing data cubes
'''
from turbustat.data_reduction import *
from astropy.io.fits import getdata
import os
import sys
import errno
im... | 24.794872 | 115 | 0.639607 | 286 | 1,934 | 4.286713 | 0.36014 | 0.044046 | 0.045677 | 0.011419 | 0.215334 | 0.17292 | 0.096248 | 0.045677 | 0 | 0 | 0 | 0.018378 | 0.184074 | 1,934 | 77 | 116 | 25.116883 | 0.758555 | 0.238883 | 0 | 0.1 | 0 | 0 | 0.047256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.175 | null | null | 0.125 | 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 |
7f283665e8b6be70031379c582e3646c30d58f97 | 814 | py | Python | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | null | null | null | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | null | null | null | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | 1 | 2020-08-05T22:20:06.000Z | 2020-08-05T22:20:06.000Z | import logging
from frozendict import frozendict
def log_with_context(message, context=frozendict({}), log_level='info', **kwargs):
log_function = __get_log_function(log_level)
log_context_prefix = __get_log_context_prefix(context)
if log_context_prefix:
log_function(f"{log_context_prefix} {mess... | 25.4375 | 82 | 0.665848 | 101 | 814 | 4.980198 | 0.267327 | 0.159046 | 0.254473 | 0.067594 | 0.190855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224816 | 814 | 31 | 83 | 26.258065 | 0.797147 | 0 | 0 | 0 | 0 | 0 | 0.072482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f28a3ba2a1d3d7c7bdf664d76babed98cc0144e | 742 | py | Python | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-07-04 00:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0054_assessment_licence_activity_type'),
]
operations = [
... | 25.586207 | 72 | 0.521563 | 62 | 742 | 6.048387 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049251 | 0.37062 | 742 | 28 | 73 | 26.5 | 0.753747 | 0.091644 | 0 | 0 | 1 | 0 | 0.187779 | 0.055142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f28fd8107aa3d01ef3f003e276b381cfb9af0d6 | 677 | py | Python | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | with open('input.txt', 'r') as file:
input = file.readlines()
input = [ step.split() for step in input ]
input = [ {step[0]: int(step[1])} for step in input ]
def part1():
x = 0
y = 0
for step in input:
x += step.get('forward', 0)
y += step.get('down', 0)
y -= step.get('up', 0)... | 20.515152 | 53 | 0.468242 | 110 | 677 | 2.881818 | 0.245455 | 0.198738 | 0.126183 | 0.176656 | 0.485804 | 0.444795 | 0.444795 | 0.369085 | 0.369085 | 0.246057 | 0 | 0.042316 | 0.33678 | 677 | 33 | 54 | 20.515152 | 0.663697 | 0.067947 | 0 | 0.4 | 0 | 0 | 0.068254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.16 | 0.12 | 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 |
7f297ce902d7f9247b5e656d705431d2cc8409f0 | 4,307 | py | Python | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | 1 | 2017-09-03T21:33:35.000Z | 2017-09-03T21:33:35.000Z | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null |
__author__ = "Ryan Faulkner"
__date__ = "July 27th, 2012"
__license__ = "GPL (version 2 or later)"
from os import getpid
from collections import namedtuple
import user_metric as um
from user_metrics.metrics import query_mod
from user_metrics.metrics.users import UMP_MAP
from user_metrics.utils import multiprocessing_... | 31.669118 | 78 | 0.58997 | 538 | 4,307 | 4.507435 | 0.375465 | 0.040825 | 0.024742 | 0.018144 | 0.03299 | 0.03299 | 0 | 0 | 0 | 0 | 0 | 0.039809 | 0.317622 | 4,307 | 135 | 79 | 31.903704 | 0.785301 | 0.070583 | 0 | 0 | 0 | 0 | 0.128644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102941 | null | null | 0.014706 | 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 |
7f29a4a16372f3427a26db56be3bf0908d8eb335 | 7,210 | py | Python | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 43.433735 | 257 | 0.710402 | 818 | 7,210 | 5.892421 | 0.154034 | 0.078838 | 0.065353 | 0.06722 | 0.338174 | 0.237552 | 0.155187 | 0.074274 | 0 | 0 | 0 | 0.000173 | 0.198058 | 7,210 | 165 | 258 | 43.69697 | 0.833449 | 0.042718 | 0 | 0.104478 | 1 | 0 | 0.180402 | 0.077169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11194 | false | 0 | 0.052239 | 0.08209 | 0.276119 | 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 |
7f3657c2007cb8e2fe9ba1e91d9490a327ac7d62 | 3,624 | py | Python | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#
import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess
from defaults import *
from utils import *
def usage():
print """\
usage: %(progname)s [kernel-original-path] [kernel-modified-path]
this program is used to update all the auto-generated clean headers
used by... | 29.463415 | 96 | 0.631347 | 517 | 3,624 | 4.274662 | 0.290135 | 0.038009 | 0.022624 | 0.01991 | 0.174208 | 0.131674 | 0.10362 | 0.028959 | 0 | 0 | 0 | 0.008788 | 0.246413 | 3,624 | 122 | 97 | 29.704918 | 0.800439 | 0.050773 | 0 | 0.170213 | 0 | 0.010638 | 0.25364 | 0.052126 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031915 | null | null | 0.06383 | 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 |
7f3776d641ecf1c2ca820e1d8531b10c65ba6e21 | 1,555 | py | Python | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 7 | 2019-07-23T10:20:11.000Z | 2022-03-14T14:46:13.000Z | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 10 | 2019-09-05T22:45:04.000Z | 2022-03-21T08:40:49.000Z | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 5 | 2019-07-23T10:20:46.000Z | 2021-11-14T07:18:05.000Z | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import argparse
import json
parser = argparse.ArgumentParser()
parser.add_argument("-seqs",
required=True,
type=str,
default=None,
help="File contain... | 23.923077 | 130 | 0.607074 | 246 | 1,555 | 3.678862 | 0.353659 | 0.092818 | 0.039779 | 0.057459 | 0.075138 | 0.075138 | 0.075138 | 0 | 0 | 0 | 0 | 0.031173 | 0.216077 | 1,555 | 64 | 131 | 24.296875 | 0.711239 | 0.04373 | 0 | 0 | 0 | 0 | 0.112011 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | null | null | 0 | 0.095238 | null | null | 0.142857 | 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 |
7f3df9c6bc7653f174e6f2a144e946916c638b4e | 1,467 | py | Python | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | """
All components and wrappers currently
supported by rewx.
"""
import wx
import wx.adv
import wx.lib.scrolledpanel
import wx.media
ActivityIndicator = wx.ActivityIndicator
Button = wx.Button
BitmapButton = wx.BitmapButton
CalendarCtrl = wx.adv.CalendarCtrl
CheckBox = wx.CheckBox
# CollapsiblePane = wx.CollapsiblePa... | 20.957143 | 58 | 0.720518 | 180 | 1,467 | 5.822222 | 0.405556 | 0.030534 | 0.034351 | 0.034351 | 0.076336 | 0.076336 | 0.076336 | 0.076336 | 0.076336 | 0.076336 | 0 | 0 | 0.186094 | 1,467 | 70 | 59 | 20.957143 | 0.877722 | 0.246762 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.102564 | 0 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7f4786e590d0a9418a3d92cb5ddc03d945909da4 | 6,840 | py | Python | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | 6 | 2017-06-20T09:44:03.000Z | 2018-07-28T06:44:10.000Z | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | null | null | null | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | 3 | 2017-09-23T16:48:18.000Z | 2018-05-26T19:12:12.000Z | #!/usr/bin/env python
import re
import sys
import time
import logging
import asyncore
import optparse
from datetime import datetime
import schedule
from pymongo import MongoReplicaSetClient, MongoClient
from async_s5 import AsyncSocks5Client
from async_http import AsyncHTTPClient
from async_http_tunnel import Async... | 31.232877 | 100 | 0.594591 | 793 | 6,840 | 4.981084 | 0.220681 | 0.051646 | 0.017722 | 0.012658 | 0.343291 | 0.334177 | 0.316456 | 0.291646 | 0.291646 | 0.243544 | 0 | 0.009705 | 0.276901 | 6,840 | 218 | 101 | 31.376147 | 0.78892 | 0.002924 | 0 | 0.299363 | 0 | 0 | 0.088869 | 0.003666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012739 | 0.082803 | null | null | 0.025478 | 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 |
7f495918acf00767d9fbeb784d409f5760173565 | 19,291 | py | Python | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | 3 | 2018-01-04T07:40:14.000Z | 2021-02-19T15:27:10.000Z | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | null | null | null | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | null | null | null | # NOTE: This changes a/b to produce a floating point approximation of that
# ratio, not the integer quotient. For integer quotient, use a//b instead.
from __future__ import division
import fourier_parameterization
import numpy as np
import multiindex
import symbolic
import sympy
import tensor
# TODO: look at and use... | 50.368146 | 220 | 0.696024 | 2,710 | 19,291 | 4.694096 | 0.153875 | 0.044022 | 0.047166 | 0.050311 | 0.436601 | 0.379137 | 0.34274 | 0.290858 | 0.266331 | 0.247936 | 0 | 0.012261 | 0.205173 | 19,291 | 382 | 221 | 50.5 | 0.817387 | 0.165258 | 0 | 0.161826 | 0 | 0.004149 | 0.051534 | 0.008669 | 0 | 0 | 0 | 0.005236 | 0.053942 | 0 | null | null | 0 | 0.053942 | null | null | 0.029046 | 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 |
7f497463579627def6a6bc8b025032e2117e0a72 | 1,029 | py | Python | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | import pantilthat
class Tripod(object):
def __init__(self):
self.horizontal = 0
self.vertical = 0
self.step_size = 5
pantilthat.pan(0)
pantilthat.tilt(0)
def left(self):
if (-80 < self.horizontal):
self.horizontal = self.horizontal - self.step_size
... | 30.264706 | 62 | 0.597668 | 120 | 1,029 | 5.05 | 0.208333 | 0.254125 | 0.09901 | 0.112211 | 0.669967 | 0.669967 | 0.613861 | 0.478548 | 0.323432 | 0 | 0 | 0.017687 | 0.285714 | 1,029 | 34 | 63 | 30.264706 | 0.806803 | 0 | 0 | 0.142857 | 0 | 0 | 0.045631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.035714 | 0 | 0.25 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f4a9a45f9839d4156f378a8a84cdc5c95302052 | 837 | py | Python | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | import os
import unittest
from bmaclient.utils import get_api_key_from_file
DATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
class APIKeyTest(unittest.TestCase):
def test_get_api_key_from_file(self):
path = os.path.join(DATA_DIR, 'api_key.txt')
key = get_api_key_from_... | 28.862069 | 75 | 0.706093 | 129 | 837 | 4.124031 | 0.27907 | 0.12406 | 0.118421 | 0.171053 | 0.599624 | 0.567669 | 0.530075 | 0.484962 | 0.383459 | 0.383459 | 0 | 0 | 0.18399 | 837 | 28 | 76 | 29.892857 | 0.778917 | 0 | 0 | 0.210526 | 0 | 0 | 0.09319 | 0.02509 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
7f64ce20d2bc7463fbe8a47e2e961d23f53650a4 | 14,042 | py | Python | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | 2 | 2022-03-17T23:17:56.000Z | 2022-03-23T01:08:58.000Z | """
Created on Wed March 30 11::00 2022
@author: Frédérique Leclerc
"""
from tracemalloc import start
from numpy import number
from Screen import Screen as Screen
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QFont, QPixmap
from PIL import Image
#from Ergocycle.source.StartWindow i... | 65.924883 | 230 | 0.703319 | 1,671 | 14,042 | 5.64991 | 0.13465 | 0.092045 | 0.125516 | 0.173499 | 0.596123 | 0.556933 | 0.539456 | 0.514458 | 0.146489 | 0.146489 | 0 | 0.013097 | 0.189788 | 14,042 | 212 | 231 | 66.235849 | 0.816736 | 0.083464 | 0 | 0.186747 | 0 | 0 | 0.131055 | 0.011857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042169 | false | 0 | 0.114458 | 0 | 0.162651 | 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 |
7f667e0c792310a6ca90389cd7acf95cb20a0aed | 3,631 | py | Python | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | """
-----------------------------------------------------------------------------------------------------------
Package: AequilibraE
Name: Loads datasets into AequilibraE binary files
Purpose: Implements dataset creation
Original Author: Pedro Camargo (c@margo.co)
Contributors:
Last edited by: Ped... | 39.043011 | 108 | 0.56238 | 378 | 3,631 | 5.26455 | 0.407407 | 0.040201 | 0.028141 | 0.020101 | 0.059296 | 0.039196 | 0 | 0 | 0 | 0 | 0 | 0.008397 | 0.278436 | 3,631 | 92 | 109 | 39.467391 | 0.751145 | 0.015698 | 0 | 0.04918 | 0 | 0 | 0.085497 | 0.009692 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098361 | null | null | 0.016393 | 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 |
7f696039cf0e21135e93815d60394b72a34a443f | 1,040 | py | Python | app/api/routes/server/plot_queue.py | cPoolChia/ChiaAutoplotter-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | 7 | 2021-06-01T09:20:34.000Z | 2021-10-12T07:24:04.000Z | app/api/routes/server/plot_queue.py | cPoolChia/ChiaFarmerManager-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | null | null | null | app/api/routes/server/plot_queue.py | cPoolChia/ChiaFarmerManager-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | 1 | 2021-05-31T13:08:14.000Z | 2021-05-31T13:08:14.000Z | from typing import Any
from uuid import UUID, uuid4
import celery
from app import crud, models, schemas
from app.api import deps
from app.core.config import settings
from app.utils import auth
from app.core import tasks
from fastapi import APIRouter, Depends, HTTPException, Body, Query
from sqlalchemy.orm import Sessi... | 32.5 | 81 | 0.740385 | 134 | 1,040 | 5.641791 | 0.41791 | 0.055556 | 0.026455 | 0.089947 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001171 | 0.178846 | 1,040 | 32 | 81 | 32.5 | 0.884075 | 0 | 0 | 0 | 0 | 0 | 0.000961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.464286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7f6d004764ff3c98efc96ebb1cf1f394bc32a7c1 | 440 | py | Python | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | class Parrot():
def __init__(self, squawk, is_alive=True):
self.squawk = squawk
self.is_alive = is_alive
african_grey = Parrot('Polly want a Cracker?')
norwegian_blue = Parrot('', is_alive=False)
def squawk(self):
if self.is_alive:
return self.squawk
else:
... | 22 | 46 | 0.652273 | 60 | 440 | 4.5 | 0.383333 | 0.207407 | 0.162963 | 0.096296 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245455 | 440 | 20 | 47 | 22 | 0.813253 | 0 | 0 | 0.133333 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f6f7feeb11eb05bb310cec5c813b37346f053c2 | 226 | py | Python | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null | def solution(S, K):
# write your code in Python 3.6
day_dict = {0:'Mon', 1:'Tue', 2:'Wed', 3:'Thu', 4:'Fri', 5:'Sat', 6:'Sun'}
return day_dict[list(day_dict.values()).index(S)+K]
S='Wed'
K=2
print(solution(S,K))
| 22.6 | 78 | 0.584071 | 45 | 226 | 2.866667 | 0.666667 | 0.046512 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.168142 | 226 | 9 | 79 | 25.111111 | 0.632979 | 0.128319 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
7f7574b64532b1f7794103ece680d1785b89f64b | 210 | py | Python | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | 1 | 2021-02-23T12:54:05.000Z | 2021-02-23T12:54:05.000Z | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | null | null | null | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | 1 | 2021-02-23T12:54:07.000Z | 2021-02-23T12:54:07.000Z | from TestOutput import LogManager
class Auth_Test:
def __init__(self):
self.logger = LogManager('AuthTest')
self.logger.writeTestEvent('AuthTest', 'Test Started')
if __name__ == "__main__":
Auth_Test() | 21 | 56 | 0.747619 | 25 | 210 | 5.72 | 0.68 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 210 | 10 | 57 | 21 | 0.781421 | 0 | 0 | 0 | 0 | 0 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
7f7cecbd7d8387712e80404ab9516b060333f0e5 | 444 | py | Python | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | """ Stopwatch
A simple stopwatch for measuring time
"""
from datetime import datetime
class Stopwatch:
"""Stopwatch object for measuring time"""
def __init__(self):
self._start = None
def start(self):
"""Starts watch by setting start time to now"""
self._start = datetime.now(... | 22.2 | 55 | 0.635135 | 54 | 444 | 5.092593 | 0.518519 | 0.098182 | 0.116364 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261261 | 444 | 19 | 56 | 23.368421 | 0.838415 | 0.376126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f7d50f6a8fff49e5e4da85906cece438d04d0c3 | 623 | py | Python | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | """
Takes the MNIST dataset as input (images and labels separated)
and creates a new dataset only with 0's and 1's
"""
import numpy as np
DATA_PATH = "data/raw/"
OUTPUT_PATH = "data/processed/mnist/"
X = np.loadtxt(DATA_PATH + "mnist2500_X.txt")
labels = np.loadtxt(DATA_PATH + "mnist2500_labels.txt")
X_new = []
labe... | 25.958333 | 64 | 0.693419 | 102 | 623 | 4.058824 | 0.431373 | 0.125604 | 0.062802 | 0.082126 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064078 | 0.173355 | 623 | 24 | 64 | 25.958333 | 0.739806 | 0.176565 | 0 | 0 | 0 | 0 | 0.254941 | 0.134387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7f7df73d539af4f42bcbde355e7bdef39b43dc8a | 7,364 | py | Python | models/pytorch_gcn.py | SamGalanakis/FlowCompare | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | 5 | 2021-05-22T23:14:19.000Z | 2022-02-19T14:11:27.000Z | models/pytorch_gcn.py | SamGalanakis/PointFlowChange | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | 1 | 2021-06-05T11:20:53.000Z | 2021-06-05T12:30:44.000Z | models/pytorch_gcn.py | SamGalanakis/PointFlowChange | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | null | null | null | import os
import sys
import copy
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from models.nets import MLP
# Original code from : https://github.com/WangYueFt/dgcnn/blob/master/pytorch/model.py
def knn(x, k):
inner = -2*torch.matmul(x.transpose(2, 1), x)
xx ... | 38.354167 | 144 | 0.562873 | 1,073 | 7,364 | 3.674744 | 0.11836 | 0.114126 | 0.050723 | 0.038042 | 0.767182 | 0.707583 | 0.667766 | 0.623383 | 0.570124 | 0.518133 | 0 | 0.070986 | 0.297936 | 7,364 | 191 | 145 | 38.554974 | 0.691683 | 0.204508 | 0 | 0.620968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.072581 | 0 | 0.169355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
7f8384a311353de10a642c69e9df0c76f447b11c | 1,565 | py | Python | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | 2 | 2021-07-02T13:53:15.000Z | 2021-11-16T03:14:36.000Z | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | 58 | 2021-06-14T17:14:39.000Z | 2022-03-11T19:32:54.000Z | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | null | null | null | """Utils Module."""
from trisicell.ul._hclustering import (
dist_cosine_ignore_na,
dist_dendro,
dist_l1_ignore_na,
hclustering,
)
from trisicell.ul._packages import (
import_graph_tool,
import_graphviz,
import_gurobi,
import_mpi4py,
import_rpy2,
)
from trisicell.ul._trees import (
... | 16.302083 | 39 | 0.651118 | 187 | 1,565 | 4.967914 | 0.368984 | 0.055974 | 0.064586 | 0.038751 | 0.688913 | 0.688913 | 0.688913 | 0.688913 | 0.688913 | 0.574812 | 0 | 0.005324 | 0.279872 | 1,565 | 95 | 40 | 16.473684 | 0.818988 | 0.008307 | 0 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.152174 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f83ab03f9f78c70886157722d2f935b1bea1759 | 2,137 | py | Python | utils/pktgen/sender.py | lilyhuegerich/No-hop | 2e82af6c8036312c35b3f2338c776863416ea043 | [
"MIT"
] | null | null | null | utils/pktgen/sender.py | lilyhuegerich/No-hop | 2e82af6c8036312c35b3f2338c776863416ea043 | [
"MIT"
] | 1 | 2021-02-15T17:29:03.000Z | 2021-02-15T17:29:03.000Z | utils/utils-backup/pktgen/sender.py | guiladkatz/NetAction | 436c5ac9dcf0e2064bcc9a2facca556828de6703 | [
"Apache-2.0"
] | 1 | 2021-04-18T18:24:59.000Z | 2021-04-18T18:24:59.000Z | #!/usr/bin/env python
import argparse, sys, socket, random, struct, time
from scapy.all import sendp, send, get_if_list, get_if_list, get_if_hwaddr, hexdump
from scapy.all import Packet
from scapy.all import Ether, IP, IPv6, UDP, TCP
sip_port=5060
def get_if():
iface=None
for i in get_if_list():
# ... | 35.032787 | 115 | 0.602714 | 309 | 2,137 | 4.071197 | 0.346278 | 0.031797 | 0.038156 | 0.038156 | 0.372814 | 0.287758 | 0.287758 | 0.287758 | 0.287758 | 0.287758 | 0 | 0.02327 | 0.255966 | 2,137 | 60 | 116 | 35.616667 | 0.767925 | 0.035096 | 0 | 0.186047 | 0 | 0 | 0.16756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.069767 | 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 |
7f83fb54d3d89551adb5762f761b61b33bff3c08 | 950 | py | Python | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | 1 | 2020-12-14T04:01:08.000Z | 2020-12-14T04:01:08.000Z | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | null | null | null | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Passage(models.Model):
DIRECTIONS = (
('N', 'North'),
('E', 'East'),
('S', 'South'),
('W', 'West'),
('U', 'Up'),
('D', 'Down'),
)
room_x = models.IntegerField()
room_y = model... | 25.675676 | 138 | 0.676842 | 128 | 950 | 4.796875 | 0.515625 | 0.032573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002448 | 0.14 | 950 | 36 | 139 | 26.388889 | 0.749082 | 0.048421 | 0 | 0 | 0 | 0.037037 | 0.146504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.074074 | 0.074074 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.