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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b04dbf299463faa782d9aa9d6ed82523e5e1ca5 | 11,416 | py | Python | tests/test_jsonmodels.py | jazzband/jsonmodels | 4dbb8a60d4a5809202faa47c4b70581db996a7ed | [
"BSD-3-Clause"
] | 89 | 2019-08-21T03:40:49.000Z | 2022-03-25T19:45:04.000Z | tests/test_jsonmodels.py | jazzband/jsonmodels | 4dbb8a60d4a5809202faa47c4b70581db996a7ed | [
"BSD-3-Clause"
] | 29 | 2019-09-02T16:48:18.000Z | 2022-03-24T15:52:43.000Z | tests/test_jsonmodels.py | jazzband/jsonmodels | 4dbb8a60d4a5809202faa47c4b70581db996a7ed | [
"BSD-3-Clause"
] | 9 | 2019-09-29T04:33:46.000Z | 2021-05-17T20:56:34.000Z | import pytest
from jsonmodels import errors, fields, models
def test_model1():
class Person(models.Base):
name = fields.StringField()
surname = fields.StringField()
age = fields.IntField()
extra = fields.DictField()
alan = Person()
alan.name = "Alan"
alan.surname = ... | 20.756364 | 67 | 0.621409 | 1,281 | 11,416 | 5.416081 | 0.110851 | 0.061978 | 0.036322 | 0.049005 | 0.614298 | 0.548429 | 0.52335 | 0.43269 | 0.368982 | 0.368982 | 0 | 0.012179 | 0.259198 | 11,416 | 549 | 68 | 20.794171 | 0.808206 | 0 | 0 | 0.56546 | 0 | 0 | 0.031973 | 0.00184 | 0 | 0 | 0 | 0 | 0.116992 | 1 | 0.077994 | false | 0.050139 | 0.005571 | 0.002786 | 0.406685 | 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 |
6b056375afb94ae1b7888ea6f6dc5eaa8a7fe453 | 3,218 | py | Python | watchman/integration/test_bser_cli.py | todaypp/watchman | 28d9e41f230fccbce296d55525a597d31ebe7ad1 | [
"MIT"
] | null | null | null | watchman/integration/test_bser_cli.py | todaypp/watchman | 28d9e41f230fccbce296d55525a597d31ebe7ad1 | [
"MIT"
] | null | null | null | watchman/integration/test_bser_cli.py | todaypp/watchman | 28d9e41f230fccbce296d55525a597d31ebe7ad1 | [
"MIT"
] | null | null | null | # vim:ts=4:sw=4:et:
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import binascii
import json
import os
import os.path
import subprocess
import unittest
from pywatchman import bser, en... | 32.836735 | 70 | 0.597887 | 350 | 3,218 | 5.405714 | 0.345714 | 0.052326 | 0.023256 | 0.040169 | 0.424947 | 0.401691 | 0.401691 | 0.401691 | 0.401691 | 0.354123 | 0 | 0.005618 | 0.28092 | 3,218 | 97 | 71 | 33.175258 | 0.812014 | 0.128341 | 0 | 0.453333 | 0 | 0 | 0.118426 | 0.0322 | 0 | 0 | 0 | 0.010309 | 0.053333 | 1 | 0.08 | false | 0 | 0.106667 | 0.013333 | 0.213333 | 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 |
6b056a433e5a2a3c9911f168316f9080300b3539 | 822 | py | Python | src/module/controller/author_ctrl.py | mbaez/pyseed | b26c13d3a2253edff10b3172788a5953786cc0a5 | [
"MIT"
] | null | null | null | src/module/controller/author_ctrl.py | mbaez/pyseed | b26c13d3a2253edff10b3172788a5953786cc0a5 | [
"MIT"
] | null | null | null | src/module/controller/author_ctrl.py | mbaez/pyseed | b26c13d3a2253edff10b3172788a5953786cc0a5 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from module.controller import BaseController
from module.dao import AuthorDao
class AuthorController (BaseController):
"""
Controller relacionado a las operaciones correspondientes a los
autores. Implementa las operaciones CRUD sobre las tablas.
@autor M... | 24.176471 | 72 | 0.63382 | 91 | 822 | 5.615385 | 0.648352 | 0.041096 | 0.050881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001681 | 0.276156 | 822 | 33 | 73 | 24.909091 | 0.857143 | 0.427007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0854bb461579201a6af684e1f9ece87d51fdd1 | 1,203 | py | Python | app/markets/tests/test_admin.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 2 | 2017-09-29T01:02:25.000Z | 2021-08-05T07:35:09.000Z | app/markets/tests/test_admin.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 60 | 2016-09-02T14:55:49.000Z | 2022-03-14T13:54:23.000Z | app/markets/tests/test_admin.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 3 | 2017-05-05T12:22:45.000Z | 2020-06-04T16:39:52.000Z | from django.http import HttpResponse
import pytest
from django.urls import reverse
from django.test.client import Client
from django.contrib.auth.models import User
@pytest.fixture
def response_with_session_cookie(settings):
settings.SESSION_COOKIE_NAME = 'session'
response = HttpResponse()
response.set_... | 27.976744 | 89 | 0.751455 | 157 | 1,203 | 5.515924 | 0.407643 | 0.114319 | 0.096998 | 0.046189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005911 | 0.156276 | 1,203 | 42 | 90 | 28.642857 | 0.847291 | 0.0399 | 0 | 0 | 0 | 0 | 0.05483 | 0.020017 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.125 | false | 0.0625 | 0.15625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0c49dd01d5152c08e6e7ba4e498d43f9c48f00 | 1,009 | py | Python | apps/fithm-service/config.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | 3 | 2022-03-04T03:05:55.000Z | 2022-03-04T09:02:32.000Z | apps/fithm-service/config.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | null | null | null | apps/fithm-service/config.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | null | null | null | from settings import (
LOG_CONFIG,
FITHM_SMTP_HOST,
FITHM_SMTP_PORT,
FITHM_SMTP_USER,
FITHM_SMTP_PASS,
FITHM_ADMIN_MAIL,
FITHM_ADMIN_PASS,
GATEWAY_SEC_KEY,
DEBUG
)
from logging.config import dictConfig
dictConfig({
'version': 1,
'formatters': {'default': {
... | 22.422222 | 76 | 0.621407 | 117 | 1,009 | 4.982906 | 0.470085 | 0.123499 | 0.044597 | 0.06175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001359 | 0.270565 | 1,009 | 44 | 77 | 22.931818 | 0.790761 | 0.040634 | 0 | 0.057143 | 0 | 0 | 0.168845 | 0.022876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.114286 | 0.057143 | 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 |
6b0f3343cf049845d8cbb39435d18cf38b19d6f1 | 6,384 | py | Python | code/evaluation.py | saurabhgupta17888/Unsupervised-Aspect-Extraction | 6967a06ec9ce77b4186fc577fd8beccd148d5729 | [
"Apache-2.0"
] | 338 | 2017-12-18T16:58:59.000Z | 2022-03-30T17:09:46.000Z | code/evaluation.py | saurabhgupta17888/Unsupervised-Aspect-Extraction | 6967a06ec9ce77b4186fc577fd8beccd148d5729 | [
"Apache-2.0"
] | 32 | 2017-12-26T23:32:41.000Z | 2021-10-30T06:40:57.000Z | code/evaluation.py | saurabhgupta17888/Unsupervised-Aspect-Extraction | 6967a06ec9ce77b4186fc577fd8beccd148d5729 | [
"Apache-2.0"
] | 120 | 2017-12-19T19:23:13.000Z | 2022-03-30T17:09:52.000Z | import argparse
import logging
import numpy as np
from time import time
import utils as U
from sklearn.metrics import classification_report
import codecs
######### Get hyper-params in order to rebuild the model architecture ###########
# The hyper parameters should be exactly the same as those used for training
parser... | 43.428571 | 190 | 0.660558 | 877 | 6,384 | 4.668187 | 0.280502 | 0.028578 | 0.053981 | 0.033219 | 0.193942 | 0.115779 | 0.071324 | 0.048852 | 0.025892 | 0.025892 | 0 | 0.013277 | 0.150533 | 6,384 | 146 | 191 | 43.726027 | 0.741656 | 0.170426 | 0 | 0.141176 | 0 | 0 | 0.241837 | 0.016624 | 0 | 0 | 0 | 0 | 0.023529 | 0 | null | null | 0 | 0.141176 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b11e7b4bcc8e0333cb0fe9c393ca85000f24180 | 994 | py | Python | tests/conftest.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 12 | 2019-03-18T13:03:46.000Z | 2019-08-14T03:13:32.000Z | tests/conftest.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-04-05T07:14:59.000Z | 2019-12-06T23:51:31.000Z | tests/conftest.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-05-01T07:56:20.000Z | 2019-11-17T13:54:59.000Z | import os
import subprocess
import sys
import time
import pytest
@pytest.fixture
def mqtt_server():
print('Starting MQTT server')
mosquitto = subprocess.Popen('mosquitto')
time.sleep(1) # Let's wait a bit before it's started
yield mosquitto
print('Tearing down MQTT server')
mosquitto.kill()... | 25.487179 | 104 | 0.672032 | 119 | 994 | 5.563025 | 0.571429 | 0.045317 | 0.057402 | 0.042296 | 0.054381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001314 | 0.234406 | 994 | 38 | 105 | 26.157895 | 0.868594 | 0.216298 | 0 | 0.074074 | 0 | 0 | 0.227979 | 0.054404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.185185 | 0 | 0.222222 | 0.074074 | 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 |
6b1445acb19266ac693a500fd0e60af8ddc1c31e | 1,672 | py | Python | phenotype_inventory/settings/local_sqlite.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | null | null | null | phenotype_inventory/settings/local_sqlite.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | 3 | 2020-01-02T20:17:06.000Z | 2020-01-04T21:13:09.000Z | phenotype_inventory/settings/local_sqlite.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | 1 | 2021-10-29T22:15:27.000Z | 2021-10-29T22:15:27.000Z | """Local development settings for the phenotype_inventory project.
To use the this settings module, set your PYTHONPATH and
DJANGO_SETTINGS_MODULE environmental variables. For example:
export DJANGO_SETTINGS_MODULE='phenotype_inventory.settings.local'
export PYTHONPATH='~/devel/phenotype_inventory'
PYTHONPAT... | 27.409836 | 103 | 0.730861 | 227 | 1,672 | 5.23348 | 0.45815 | 0.040404 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026734 | 0.172249 | 1,672 | 60 | 104 | 27.866667 | 0.831647 | 0.594498 | 0 | 0 | 0 | 0 | 0.26484 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 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 |
6b1c024c3455e5e1d32bb422c0b2e6467833a00d | 2,259 | py | Python | build_dataset.py | Bar987/LHYP | cf2acea543c360d457a291ce82d541949868cefc | [
"MIT"
] | null | null | null | build_dataset.py | Bar987/LHYP | cf2acea543c360d457a291ce82d541949868cefc | [
"MIT"
] | null | null | null | build_dataset.py | Bar987/LHYP | cf2acea543c360d457a291ce82d541949868cefc | [
"MIT"
] | null | null | null | import pickle
from data_loader import DataLoader
from sklearn.model_selection import train_test_split
def loadPatients(dirpath, num_of_classes):
data = []
dl = DataLoader('x', 'y')
patients = dl.unpicklePatients(dirpath)
if num_of_classes == 2:
diagnosys = {'Normal': 0, 'Other': 1}
elif nu... | 35.296875 | 66 | 0.583887 | 277 | 2,259 | 4.642599 | 0.231047 | 0.023328 | 0.055988 | 0.083981 | 0.715397 | 0.678072 | 0.678072 | 0.678072 | 0.678072 | 0.678072 | 0 | 0.009231 | 0.280655 | 2,259 | 64 | 67 | 35.296875 | 0.782154 | 0 | 0 | 0.649123 | 0 | 0 | 0.067699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.052632 | 0 | 0.070175 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1cbcc8a1c0139dd58c60d7e250b8fee03a3228 | 3,638 | py | Python | tests/test_vixstructure/test_models.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | 3 | 2017-08-17T10:54:54.000Z | 2021-03-07T16:02:33.000Z | tests/test_vixstructure/test_models.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | null | null | null | tests/test_vixstructure/test_models.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | 2 | 2019-02-22T00:46:45.000Z | 2021-02-15T19:29:43.000Z | import unittest
import tensorflow.contrib.keras as keras
import numpy as np
from vixstructure.models import term_structure_to_spread_price, term_structure_to_spread_price_v2
from vixstructure.models import term_structure_to_single_spread_price
from vixstructure.models import mask_output
from vixstructure.data import ... | 51.239437 | 121 | 0.682243 | 501 | 3,638 | 4.726547 | 0.187625 | 0.088682 | 0.082348 | 0.050676 | 0.767736 | 0.731419 | 0.680743 | 0.614865 | 0.581926 | 0.548986 | 0 | 0.034459 | 0.202309 | 3,638 | 70 | 122 | 51.971429 | 0.78153 | 0.007971 | 0 | 0.413793 | 0 | 0 | 0.022481 | 0.014155 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.103448 | false | 0 | 0.12069 | 0 | 0.241379 | 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 |
6b1e88eb2fea7de45fd3f7a277100def9809ab8e | 2,671 | py | Python | isocrosscorr.py | weingrill/NGC6633 | d113ee10173b29b9f94b78dcf466a32580ccf3ab | [
"MIT"
] | null | null | null | isocrosscorr.py | weingrill/NGC6633 | d113ee10173b29b9f94b78dcf466a32580ccf3ab | [
"MIT"
] | null | null | null | isocrosscorr.py | weingrill/NGC6633 | d113ee10173b29b9f94b78dcf466a32580ccf3ab | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on Jun 13, 2017
@author: Joerg Weingrill <jweingrill@aip.de>
'''
import numpy as np
import matplotlib.pyplot as plt
from dbtable import DBTable
import config
N = 200
class IsoCrossCorr(object):
'''
This class makes a crosscorrelation of synthetical isochr... | 34.24359 | 126 | 0.558967 | 387 | 2,671 | 3.81137 | 0.385013 | 0.012203 | 0.008136 | 0.018305 | 0.183729 | 0.167458 | 0.128136 | 0.101017 | 0.101017 | 0.101017 | 0 | 0.061619 | 0.28304 | 2,671 | 78 | 127 | 34.24359 | 0.708616 | 0.057656 | 0 | 0.06 | 0 | 0 | 0.070299 | 0.016696 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.02 | 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 |
6b2410913cc257c5e5d2b638f7e5d4dc69fec4e5 | 6,388 | py | Python | azure-devops/azext_devops/dev/repos/ref.py | snankani/AzurePipelinesTest | 6c9bb875b4d4b1f63b1ebe1a9ca7765fec9ff441 | [
"MIT"
] | null | null | null | azure-devops/azext_devops/dev/repos/ref.py | snankani/AzurePipelinesTest | 6c9bb875b4d4b1f63b1ebe1a9ca7765fec9ff441 | [
"MIT"
] | 37 | 2020-04-27T07:45:19.000Z | 2021-04-05T07:27:15.000Z | azure-devops/azext_devops/dev/repos/ref.py | snankani/AzurePipelinesTest | 6c9bb875b4d4b1f63b1ebe1a9ca7765fec9ff441 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 48.393939 | 110 | 0.64809 | 726 | 6,388 | 5.567493 | 0.158402 | 0.053439 | 0.020782 | 0.02474 | 0.768184 | 0.698911 | 0.693963 | 0.672439 | 0.632608 | 0.632608 | 0 | 0.017562 | 0.251252 | 6,388 | 131 | 111 | 48.763359 | 0.827514 | 0.399969 | 0 | 0.60274 | 0 | 0 | 0.02181 | 0.02181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.082192 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b2f24249e6da7a16b15bed9bb2d7f43dcdd15c8 | 377 | py | Python | backend/src/clients/neo4j.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | backend/src/clients/neo4j.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | backend/src/clients/neo4j.py | OpertusMundi/discovery-service | 82abd8e9e997075d840bdccbcc9f991009c6cec6 | [
"Apache-2.0"
] | null | null | null | import os
from neo4j import GraphDatabase
neo4j_client = None
def get_client():
global neo4j_client
if neo4j_client==None:
address = os.environ["NEO4J_ADDRESS"]
print(address)
neo4j_client = GraphDatabase.driver(
f"neo4j://{address}",
auth=tuple(os.environ["N... | 20.944444 | 59 | 0.628647 | 43 | 377 | 5.325581 | 0.465116 | 0.240175 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032374 | 0.262599 | 377 | 18 | 60 | 20.944444 | 0.791367 | 0 | 0 | 0 | 0 | 0 | 0.108466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0.076923 | 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 |
6b37f0acda31fe7bf0332dfd96053830f2f893cc | 2,608 | py | Python | yaglm/extmath.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 15 | 2021-10-19T15:00:12.000Z | 2022-03-24T22:24:54.000Z | yaglm/extmath.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 13 | 2021-07-22T21:52:55.000Z | 2021-10-07T11:50:10.000Z | yaglm/extmath.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 2 | 2021-11-12T18:45:12.000Z | 2021-12-14T14:57:42.000Z | from sklearn.utils.sparsefuncs import mean_variance_axis
from scipy.sparse import issparse
from scipy.special import loggamma
import numpy as np
def log_binom(n, k):
"""
log (n choose k)
Parameters
----------
n, k: int
Output
------
log_binom: float
"""
return loggamma(n + 1)... | 26.886598 | 161 | 0.625383 | 363 | 2,608 | 4.327824 | 0.31405 | 0.129854 | 0.035646 | 0.038192 | 0.184596 | 0.084023 | 0.084023 | 0.040738 | 0 | 0 | 0 | 0.007932 | 0.274923 | 2,608 | 96 | 162 | 27.166667 | 0.822845 | 0.458589 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.033333 | 1 | 0.066667 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b3ce892435f2c6c87aa80cf22a99c5f225058ac | 10,233 | py | Python | tests/functional_tests/config-template.py | SuccessionEcologicalServices/authomatic | e0a8b5f8c5bdfebaa7f796a1fdbfdf807fd93275 | [
"MIT"
] | null | null | null | tests/functional_tests/config-template.py | SuccessionEcologicalServices/authomatic | e0a8b5f8c5bdfebaa7f796a1fdbfdf807fd93275 | [
"MIT"
] | null | null | null | tests/functional_tests/config-template.py | SuccessionEcologicalServices/authomatic | e0a8b5f8c5bdfebaa7f796a1fdbfdf807fd93275 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import os
from pyvirtualdisplay import Display
from selenium import webdriver
import constants
# Choose and configure the browser of your choice
def get_browser():
# # These work on Mac
# return webdriver.Chrome()
# return webdriver.Firefox()
# On Linux you n... | 27.959016 | 79 | 0.502003 | 947 | 10,233 | 5.208025 | 0.30623 | 0.07056 | 0.107867 | 0.14193 | 0.289132 | 0.272709 | 0.200324 | 0.192011 | 0.040957 | 0 | 0 | 0.006718 | 0.258184 | 10,233 | 365 | 80 | 28.035616 | 0.642998 | 0.252907 | 0 | 0.41791 | 0 | 0 | 0.421074 | 0.009724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0.104478 | 0.018657 | 0.003731 | 0.041045 | 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 |
6b42be64cddbd14febdb8363787eb450d876712f | 24,196 | py | Python | DeepTreeAttention/trees.py | wanglifeng1022/DeepTreeAttention | 580e9dffbab1fb51faf1f29505897e0b5cf5693a | [
"MIT"
] | 1 | 2021-02-01T05:44:37.000Z | 2021-02-01T05:44:37.000Z | DeepTreeAttention/trees.py | wanglifeng1022/DeepTreeAttention | 580e9dffbab1fb51faf1f29505897e0b5cf5693a | [
"MIT"
] | null | null | null | DeepTreeAttention/trees.py | wanglifeng1022/DeepTreeAttention | 580e9dffbab1fb51faf1f29505897e0b5cf5693a | [
"MIT"
] | null | null | null | #Wrapper class for DeepTreeAttention
"""Wrap generate data, create, train and predict into a single set of class commands"""
import os
import re
import glob
import pandas as pd
import geopandas as gpd
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import load_model
from tensorflow.keras import... | 46.710425 | 197 | 0.520251 | 2,407 | 24,196 | 5.029913 | 0.126714 | 0.056166 | 0.064426 | 0.01718 | 0.606674 | 0.570249 | 0.530272 | 0.514578 | 0.496407 | 0.482118 | 0 | 0.001552 | 0.387626 | 24,196 | 518 | 198 | 46.710425 | 0.81555 | 0.087742 | 0 | 0.585752 | 1 | 0 | 0.086382 | 0.003547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023747 | false | 0.002639 | 0.044855 | 0 | 0.081794 | 0.021108 | 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 |
6b48d48527ee70c5752b7ef7b7f34e0919e2e4d8 | 4,849 | py | Python | qa/BinaryLauncher.py | FusionBox2/MAF2 | b576955f4f6b954467021f12baedfebcaf79a382 | [
"Apache-2.0"
] | 1 | 2018-01-23T09:13:40.000Z | 2018-01-23T09:13:40.000Z | qa/BinaryLauncher.py | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | null | null | null | qa/BinaryLauncher.py | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | 3 | 2020-09-24T16:04:53.000Z | 2020-09-24T16:50:30.000Z | import os
import sys
import getopt
try:
from qa import mafPath
except ImportError:
import mafPath
currentPathScript = os.path.split(os.path.realpath(__file__))[0]
extensionToAvoid = [".dll",".prl", ".a",".lib", ".dylib",".so", ".0", ".1"] # necessary to insert .N because of symbolic link of linux
currentPath... | 33.441379 | 134 | 0.583419 | 550 | 4,849 | 5.070909 | 0.32 | 0.030118 | 0.032628 | 0.022947 | 0.179276 | 0.162065 | 0.100394 | 0.070993 | 0.070993 | 0.037289 | 0 | 0.006015 | 0.280058 | 4,849 | 144 | 135 | 33.673611 | 0.792896 | 0.092596 | 0 | 0.1875 | 0 | 0 | 0.196946 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0 | null | null | 0 | 0.0625 | null | null | 0.098214 | 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 |
8611e02857642a3263221c43772345f17d9a62fc | 729 | py | Python | webcam.py | olinger/sextant | 0348c5599fcc44131d233b0169953e9311df376f | [
"MIT"
] | 1 | 2017-10-04T13:41:25.000Z | 2017-10-04T13:41:25.000Z | webcam.py | olinger/sextant | 0348c5599fcc44131d233b0169953e9311df376f | [
"MIT"
] | null | null | null | webcam.py | olinger/sextant | 0348c5599fcc44131d233b0169953e9311df376f | [
"MIT"
] | null | null | null | import requests
import os, sys
from PIL import Image
from io import BytesIO
class webcam:
def __init__(self,ip, user, password):
self.adress = ip
self.user = user
self.password = password
self.http = 'http://'
self.img_url = '/image'
self.file_type = '.jpg'
def take_pic(self, directory, name):
if ... | 27 | 113 | 0.706447 | 115 | 729 | 4.356522 | 0.46087 | 0.063872 | 0.095808 | 0.05988 | 0.171657 | 0.171657 | 0.171657 | 0.171657 | 0.171657 | 0.171657 | 0 | 0 | 0.170096 | 729 | 27 | 114 | 27 | 0.828099 | 0.080933 | 0 | 0 | 0 | 0 | 0.025373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.2 | 0 | 0.35 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86127e1219289b13c72fecc4931268d55e87e9fd | 209 | py | Python | test/fixtures/output/python/requests/jsonObj-multiline.py | uWynell/httpsnippet | 8a82fcbd873085fb417c2c1f99cdc1c5a596f41a | [
"MIT"
] | 2 | 2022-01-31T05:50:00.000Z | 2022-02-03T18:19:47.000Z | test/fixtures/output/python/requests/jsonObj-multiline.py | uWynell/httpsnippet | 8a82fcbd873085fb417c2c1f99cdc1c5a596f41a | [
"MIT"
] | 2 | 2022-02-03T18:13:34.000Z | 2022-02-25T14:57:24.000Z | test/fixtures/output/python/requests/jsonObj-multiline.py | uWynell/httpsnippet | 8a82fcbd873085fb417c2c1f99cdc1c5a596f41a | [
"MIT"
] | 1 | 2022-02-03T17:44:17.000Z | 2022-02-03T17:44:17.000Z | import requests
url = "http://mockbin.com/har"
payload = { "foo": "bar" }
headers = { "content-type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.text)
| 19 | 60 | 0.69378 | 26 | 209 | 5.576923 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129187 | 209 | 10 | 61 | 20.9 | 0.796703 | 0 | 0 | 0 | 0 | 0 | 0.267943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8613c4bd8eaf87aa141fcfe90f3c6ab2730b7f2f | 355 | py | Python | src/constant_properties_protector/constant_properties_protector.py | BehzadShayegh/constant-properties-protector | e88f830641c482b256507f7107e09f9b46be1d77 | [
"MIT"
] | null | null | null | src/constant_properties_protector/constant_properties_protector.py | BehzadShayegh/constant-properties-protector | e88f830641c482b256507f7107e09f9b46be1d77 | [
"MIT"
] | null | null | null | src/constant_properties_protector/constant_properties_protector.py | BehzadShayegh/constant-properties-protector | e88f830641c482b256507f7107e09f9b46be1d77 | [
"MIT"
] | null | null | null | class CPP:
@staticmethod
def __protection_exception(prop):
raise Exception(f'Can not modify constant property: {prop}')
@staticmethod
def protect(obj, prop):
setattr(obj.__class__, prop, property(
lambda self: getattr(self, '_'+prop),
lambda self, value: CPP.__pr... | 32.272727 | 68 | 0.63662 | 38 | 355 | 5.657895 | 0.552632 | 0.139535 | 0.213953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259155 | 355 | 11 | 69 | 32.272727 | 0.81749 | 0 | 0 | 0.2 | 0 | 0 | 0.115169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 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 |
861be9dcb4003f3d9f47d459d3899c39cc7af46c | 666 | py | Python | payment_system/migrations/0035_auto_20210216_1211.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | payment_system/migrations/0035_auto_20210216_1211.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | payment_system/migrations/0035_auto_20210216_1211.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-02-16 12:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('payment_system', '0034_auto_20210216_0923'),
]
operations = [
migrations.AlterModelOptions(
name='customsubscriptionrequest',
... | 30.272727 | 168 | 0.644144 | 62 | 666 | 6.725806 | 0.693548 | 0.105516 | 0.148681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060547 | 0.231231 | 666 | 21 | 169 | 31.714286 | 0.753906 | 0.067568 | 0 | 0.266667 | 1 | 0 | 0.389338 | 0.077544 | 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 |
861cc96baf28f8706616e750d02b9cf2e1f69cf8 | 577 | py | Python | code/valid_parentheses.py | shenhuaze/leetcode-python | b81bdb27d0f9da5620e83e2476c9ef585f4a0001 | [
"MIT"
] | 1 | 2019-06-17T04:37:39.000Z | 2019-06-17T04:37:39.000Z | code/valid_parentheses.py | shenhuaze/leetcode-python | b81bdb27d0f9da5620e83e2476c9ef585f4a0001 | [
"MIT"
] | null | null | null | code/valid_parentheses.py | shenhuaze/leetcode-python | b81bdb27d0f9da5620e83e2476c9ef585f4a0001 | [
"MIT"
] | null | null | null |
def is_valid(s):
stack = []
for i in range(len(s)):
if s[i] == "(" or s[i] == "[" or s[i] == "{":
stack.append(s[i])
else:
if len(stack) == 0:
return False
if s[i] == ")" and stack[-1] != "(":
return False
if s[i] =... | 25.086957 | 53 | 0.369151 | 69 | 577 | 2.913043 | 0.333333 | 0.069652 | 0.079602 | 0.208955 | 0.462687 | 0.412935 | 0.412935 | 0.412935 | 0.412935 | 0.412935 | 0 | 0.015152 | 0.428076 | 577 | 22 | 54 | 26.227273 | 0.593939 | 0 | 0 | 0.210526 | 0 | 0 | 0.039931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.315789 | 0.052632 | 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 |
8624d55d9d86f8fc67ae9fa05fc71c61a1064417 | 2,534 | py | Python | gnn_agglomeration/pyg_datasets/hemibrain_old/hemibrain_graph_masked.py | bentaculum/gnn_agglomeration | e5b8a693ba78433b8a3721ac3102630c2a79a1e4 | [
"MIT"
] | 2 | 2021-05-19T01:56:52.000Z | 2021-07-08T20:50:38.000Z | gnn_agglomeration/pyg_datasets/hemibrain_old/hemibrain_graph_masked.py | benjamin9555/gnn_agglomeration | e5b8a693ba78433b8a3721ac3102630c2a79a1e4 | [
"MIT"
] | 14 | 2019-07-17T19:23:09.000Z | 2021-02-02T22:01:49.000Z | gnn_agglomeration/pyg_datasets/hemibrain_old/hemibrain_graph_masked.py | benjamin9555/gnn_agglomeration | e5b8a693ba78433b8a3721ac3102630c2a79a1e4 | [
"MIT"
] | 2 | 2019-07-17T20:14:03.000Z | 2019-07-27T16:20:52.000Z | import torch
import logging
import daisy
import time
from .hemibrain_graph import HemibrainGraph
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class HemibrainGraphMasked(HemibrainGraph):
# can't overwrite __init__ using different args than base class
def read_and_process(
... | 31.283951 | 77 | 0.595896 | 320 | 2,534 | 4.478125 | 0.303125 | 0.033496 | 0.027216 | 0.031403 | 0.129798 | 0.044662 | 0.044662 | 0 | 0 | 0 | 0 | 0.006201 | 0.299921 | 2,534 | 80 | 78 | 31.675 | 0.801578 | 0.076164 | 0 | 0.053571 | 0 | 0 | 0.074153 | 0 | 0 | 0 | 0 | 0.0125 | 0.035714 | 1 | 0.035714 | false | 0 | 0.089286 | 0 | 0.160714 | 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 |
8626f43f0762b735a9c50883bb0ddb5454f49adb | 20,029 | py | Python | test/units/test_structure.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | test/units/test_structure.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | test/units/test_structure.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | from enum import Enum, unique
from textwrap import dedent
import pytest
from easydict import EasyDict
from argsloader.base import ParseError, MultipleParseError, PValue
from argsloader.units import getitem_, getattr_, struct, number, interval, mapping, check, add, in_, isin, contains, \
mul, sub, to_type, is_type... | 37.933712 | 118 | 0.409506 | 2,274 | 20,029 | 3.721196 | 0.075638 | 0.098322 | 0.107776 | 0.054833 | 0.741432 | 0.708934 | 0.660719 | 0.633893 | 0.599031 | 0.548334 | 0 | 0.04824 | 0.418343 | 20,029 | 527 | 119 | 38.005693 | 0.647811 | 0.004144 | 0 | 0.513859 | 0 | 0 | 0.319577 | 0 | 0 | 0 | 0.000351 | 0 | 0.266525 | 1 | 0.031983 | false | 0 | 0.012793 | 0 | 0.049041 | 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 |
862cc2aac1be064923cf26e8fb5d3b8372f922a9 | 11,419 | py | Python | env/lib/python3.8/site-packages/lndgrpc/compiled/signer_pb2_grpc.py | sako0938/imp-grpc-client | 3ca0380ef7481f261684d0f22e1985189a9ec7c9 | [
"MIT"
] | 6 | 2021-07-02T21:33:38.000Z | 2021-11-07T13:33:29.000Z | lndgrpc/compiled/signer_pb2_grpc.py | ziggie1984/lnd-grpc-client | a487386f5e501774f8239eeb3d3b58634b26f665 | [
"MIT"
] | null | null | null | lndgrpc/compiled/signer_pb2_grpc.py | ziggie1984/lnd-grpc-client | a487386f5e501774f8239eeb3d3b58634b26f665 | [
"MIT"
] | 1 | 2021-11-07T13:33:37.000Z | 2021-11-07T13:33:37.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from lndgrpc.compiled import signer_pb2 as lndgrpc_dot_compiled_dot_signer__pb2
class SignerStub(object):
"""Signer is a service that gives access to the s... | 46.418699 | 113 | 0.681145 | 1,194 | 11,419 | 6.255444 | 0.194305 | 0.038559 | 0.074709 | 0.08716 | 0.650288 | 0.619494 | 0.610657 | 0.56942 | 0.461641 | 0.411434 | 0 | 0.005088 | 0.25983 | 11,419 | 245 | 114 | 46.608163 | 0.878609 | 0.223224 | 0 | 0.530864 | 1 | 0 | 0.072577 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.012346 | 0.030864 | 0.135802 | 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 |
863310b9582fc8b99ec48a7c634c90df3a3b075b | 1,335 | py | Python | FlaPyDisaster/app.py | cliftbar/FlaPyDisaster | ff9bbc97bedd9540b3c49050f6e29489f3ecdc13 | [
"MIT"
] | 4 | 2017-09-21T06:49:51.000Z | 2018-05-16T01:27:21.000Z | FlaPyDisaster/app.py | cliftbar/FlaPyDisaster | ff9bbc97bedd9540b3c49050f6e29489f3ecdc13 | [
"MIT"
] | 1 | 2017-12-11T20:14:02.000Z | 2017-12-11T20:14:02.000Z | FlaPyDisaster/app.py | cliftbar/FlaPyDisaster | ff9bbc97bedd9540b3c49050f6e29489f3ecdc13 | [
"MIT"
] | 3 | 2017-04-05T17:24:26.000Z | 2019-04-09T03:19:30.000Z | """
This script runs the application using a development server.
It contains the definition of routes and views for the application.
"""
from flask import Flask
import ast
app = Flask(__name__)
# routes.py after app is created, circular references
# noinspection PyPep8
from routes import *
# noinspection PyPep8
im... | 25.673077 | 82 | 0.714607 | 188 | 1,335 | 4.898936 | 0.547872 | 0.029316 | 0.032573 | 0.039088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017399 | 0.182022 | 1,335 | 51 | 83 | 26.176471 | 0.825092 | 0.167041 | 0 | 0 | 0 | 0 | 0.179275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
8639421cbbd23ace1da5910eb6833d69c47acacb | 6,074 | py | Python | Components/views.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | 1 | 2015-05-16T10:44:42.000Z | 2015-05-16T10:44:42.000Z | Components/views.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | null | null | null | Components/views.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.template import RequestContext, loader
import json
from Components.models import Component, Supplier, Manufacturer
from django.template.loader import get_template
from django.template import Context
def newManufacturerForm(request):
"""
A simple form to ad... | 35.520468 | 105 | 0.628745 | 682 | 6,074 | 5.530792 | 0.196481 | 0.029692 | 0.028632 | 0.040562 | 0.495228 | 0.466066 | 0.400053 | 0.372216 | 0.318399 | 0.235419 | 0 | 0 | 0.256174 | 6,074 | 171 | 106 | 35.520468 | 0.834883 | 0.064208 | 0 | 0.490909 | 0 | 0 | 0.111111 | 0.024111 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.018182 | 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 |
863d984890d33ed615ceb4902603952bd01b3bda | 2,863 | py | Python | models.py | hkdsun/qkd | 09dbad6ba1dd54e8fe53bbbae888885532247493 | [
"MIT"
] | null | null | null | models.py | hkdsun/qkd | 09dbad6ba1dd54e8fe53bbbae888885532247493 | [
"MIT"
] | null | null | null | models.py | hkdsun/qkd | 09dbad6ba1dd54e8fe53bbbae888885532247493 | [
"MIT"
] | null | null | null | from app import db
from datetime import datetime
from marshmallow import Schema, fields, post_load
from pytz import timezone
eastern = timezone('US/Eastern')
utc = timezone('UTC')
class BaseSchema(Schema):
__model__ = None
@post_load
def make_model(self, data):
return self.__model__(**data)
c... | 29.214286 | 96 | 0.666085 | 360 | 2,863 | 5.083333 | 0.227778 | 0.056831 | 0.032787 | 0.078689 | 0.086339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003552 | 0.213413 | 2,863 | 97 | 97 | 29.515464 | 0.809059 | 0 | 0 | 0.106667 | 0 | 0 | 0.045058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.053333 | 0.053333 | 0.093333 | 0.76 | 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 |
863da418abd3ceb97d422d051080a180864ff41f | 1,299 | py | Python | wordToNum.py | Alex-Gurung/MathSpeech | 87a1cf6d7b28847856cb07621a2600e3049f1804 | [
"MIT"
] | 2 | 2016-04-07T03:30:05.000Z | 2016-06-22T04:19:20.000Z | wordToNum.py | Alex-Gurung/MathSpeech | 87a1cf6d7b28847856cb07621a2600e3049f1804 | [
"MIT"
] | null | null | null | wordToNum.py | Alex-Gurung/MathSpeech | 87a1cf6d7b28847856cb07621a2600e3049f1804 | [
"MIT"
] | null | null | null | #Taken from http://stackoverflow.com/questions/493174/is-there-a-way-to-convert-number-words-to-integers
def text2int(textnum, numwords={}):
if not numwords:
units = [
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight",
"nine", "ten", "eleven", "twelve", "thirteen", "fourte... | 38.205882 | 104 | 0.586605 | 151 | 1,299 | 5.046358 | 0.549669 | 0.031496 | 0.03937 | 0.047244 | 0.082677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034872 | 0.249423 | 1,299 | 34 | 105 | 38.205882 | 0.746667 | 0.090069 | 0 | 0 | 0 | 0 | 0.245763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8644685df575a8bc4aa639b423d1eaf646da24ef | 1,384 | py | Python | Task/Cut-a-rectangle/Python/cut-a-rectangle-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Cut-a-rectangle/Python/cut-a-rectangle-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Cut-a-rectangle/Python/cut-a-rectangle-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | try:
import psyco
except ImportError:
pass
else:
psyco.full()
w, h = 0, 0
count = 0
vis = []
def cwalk(y, x, d):
global vis, count, w, h
if not y or y == h or not x or x == w:
count += 1
return
vis[y][x] = vis[h - y][w - x] = 1
if x and not vis[y][x - 1]:
cwalk(y,... | 19.492958 | 62 | 0.393064 | 263 | 1,384 | 2.057034 | 0.13308 | 0.029575 | 0.036969 | 0.073937 | 0.330869 | 0.271719 | 0.271719 | 0.214418 | 0.170055 | 0.170055 | 0 | 0.077411 | 0.430636 | 1,384 | 70 | 63 | 19.771429 | 0.609137 | 0 | 0 | 0.125 | 0 | 0 | 0.007948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.035714 | null | null | 0.017857 | 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 |
86473a21ff0bd592195430bf43c8ca255426e4e9 | 380 | py | Python | expfactory_deploy/experiments/migrations/0004_auto_20210804_1954.py | rwblair/expfactory-deploy | 509b74fc16b70234b448a727c4fe7759fb6057c8 | [
"MIT"
] | null | null | null | expfactory_deploy/experiments/migrations/0004_auto_20210804_1954.py | rwblair/expfactory-deploy | 509b74fc16b70234b448a727c4fe7759fb6057c8 | [
"MIT"
] | 31 | 2021-03-08T21:30:47.000Z | 2022-03-01T12:09:09.000Z | expfactory_deploy/experiments/migrations/0004_auto_20210804_1954.py | rwblair/expfactory-deploy | 509b74fc16b70234b448a727c4fe7759fb6057c8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-08-04 19:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('experiments', '0003_auto_20210804_1906'),
]
operations = [
migrations.RenameField(
model_name='battery',
old_name='insturcti... | 20 | 51 | 0.602632 | 39 | 380 | 5.717949 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114815 | 0.289474 | 380 | 18 | 52 | 21.111111 | 0.711111 | 0.118421 | 0 | 0 | 1 | 0 | 0.195195 | 0.069069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
864881d1799afd003f21c1ca4a81ce5b74143f27 | 579 | py | Python | preprocessing/ninja.py | znes/oemof-jordan | 2af84b32ffff83435cdfcc503341bfe2fc711f3c | [
"BSD-3-Clause"
] | null | null | null | preprocessing/ninja.py | znes/oemof-jordan | 2af84b32ffff83435cdfcc503341bfe2fc711f3c | [
"BSD-3-Clause"
] | null | null | null | preprocessing/ninja.py | znes/oemof-jordan | 2af84b32ffff83435cdfcc503341bfe2fc711f3c | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
df1 = pd.read_csv("preprocessing/data/ninja_wind_maan.csv", skiprows=[0,1,2], header=[0], index_col=[1])
df2 = pd.read_csv("preprocessing/data/ninja_wind_tafila.csv", skiprows=[0,1,2], header=[0], index_col=[1])
df = pd.concat([df1.electricity, df2.electricity], axis=1, sort=False)
df.columns = [... | 34.058824 | 106 | 0.716753 | 99 | 579 | 4.030303 | 0.323232 | 0.06015 | 0.090226 | 0.220551 | 0.478697 | 0.478697 | 0.401003 | 0.225564 | 0.225564 | 0.225564 | 0 | 0.037665 | 0.082902 | 579 | 16 | 107 | 36.1875 | 0.713748 | 0 | 0 | 0 | 0 | 0 | 0.355786 | 0.338515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
8651a07adf8cc0fb5b4f1718e36c78a783217ab1 | 6,943 | py | Python | tests/test_main.py | antoniotrkdz/pgcli | 908a8ddacf330b593540fc2c8a56ceed0f07f128 | [
"BSD-3-Clause"
] | null | null | null | tests/test_main.py | antoniotrkdz/pgcli | 908a8ddacf330b593540fc2c8a56ceed0f07f128 | [
"BSD-3-Clause"
] | null | null | null | tests/test_main.py | antoniotrkdz/pgcli | 908a8ddacf330b593540fc2c8a56ceed0f07f128 | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals
import os
import platform
import mock
from decimal import Decimal
import pytest
try:
import setproctitle
except ImportError:
setproctitle = None
from pgcli.main import (
obfuscate_process_password, format_output, PGCli, OutputSettings
)
from utils imp... | 33.541063 | 90 | 0.517356 | 680 | 6,943 | 5.142647 | 0.227941 | 0.026022 | 0.006863 | 0.036031 | 0.619674 | 0.577924 | 0.535316 | 0.511581 | 0.492708 | 0.441235 | 0 | 0.014134 | 0.296846 | 6,943 | 206 | 91 | 33.703884 | 0.702171 | 0.001728 | 0 | 0.429379 | 0 | 0.011299 | 0.324001 | 0.11257 | 0 | 0 | 0 | 0 | 0.073446 | 1 | 0.056497 | false | 0.084746 | 0.056497 | 0 | 0.112994 | 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 |
865791990808ca227a89b8f9ce95542bfe2edb40 | 617 | py | Python | src/webapi/migrations/0031_auto_20200630_1544.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/migrations/0031_auto_20200630_1544.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/migrations/0031_auto_20200630_1544.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2020-06-30 06:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('webapi', '0030_auto_20200630_1526'),
]
operations = [
migrations.RemoveField(
model_name='datum... | 24.68 | 113 | 0.601297 | 65 | 617 | 5.6 | 0.615385 | 0.065934 | 0.076923 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069663 | 0.278768 | 617 | 24 | 114 | 25.708333 | 0.748315 | 0.072934 | 0 | 0.222222 | 1 | 0 | 0.114035 | 0.040351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
865869ae2a3f3e1194255968678092c3472d3ae4 | 8,032 | py | Python | test/libcxx/test/format.py | ttyangf/libcxx | 46c05119b5000eb25a4982c7e45b074ac95926c1 | [
"MIT"
] | null | null | null | test/libcxx/test/format.py | ttyangf/libcxx | 46c05119b5000eb25a4982c7e45b074ac95926c1 | [
"MIT"
] | null | null | null | test/libcxx/test/format.py | ttyangf/libcxx | 46c05119b5000eb25a4982c7e45b074ac95926c1 | [
"MIT"
] | null | null | null | #===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
#
# This file is dual licensed under the MIT and the University of Illinois Open
# Source Licenses. See LICENSE.TXT for details.
#
#===------------------------------------------------... | 43.652174 | 80 | 0.56997 | 943 | 8,032 | 4.726405 | 0.289502 | 0.018847 | 0.023334 | 0.014808 | 0.102087 | 0.084586 | 0.049585 | 0.031187 | 0.031187 | 0.021539 | 0 | 0.002041 | 0.329059 | 8,032 | 183 | 81 | 43.89071 | 0.825014 | 0.22373 | 0 | 0.134921 | 0 | 0 | 0.073353 | 0.008601 | 0 | 0 | 0 | 0.005464 | 0.007937 | 1 | 0.055556 | false | 0.063492 | 0.063492 | 0 | 0.230159 | 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 |
86591430fbbdd5bd89f0e0fd409742d4e193e316 | 27,190 | py | Python | milvus/client/abstract.py | hellysmile/pymilvus | d531c5274e7c1736547adb040d67277cbc8eae93 | [
"Apache-2.0"
] | null | null | null | milvus/client/abstract.py | hellysmile/pymilvus | d531c5274e7c1736547adb040d67277cbc8eae93 | [
"Apache-2.0"
] | null | null | null | milvus/client/abstract.py | hellysmile/pymilvus | d531c5274e7c1736547adb040d67277cbc8eae93 | [
"Apache-2.0"
] | null | null | null | import ujson
from ..client.exceptions import ParamError
from .check import check_pass_param
from .types import IndexType
class LoopBase(object):
def __init__(self):
self.__index = 0
def __iter__(self):
return self
def __next__(self):
while self.__index < self.__len__():
... | 27.492417 | 116 | 0.570798 | 3,199 | 27,190 | 4.523914 | 0.093154 | 0.029851 | 0.014442 | 0.01838 | 0.591142 | 0.550373 | 0.502971 | 0.485489 | 0.466349 | 0.455984 | 0 | 0.004859 | 0.326333 | 27,190 | 988 | 117 | 27.520243 | 0.785227 | 0.24612 | 0 | 0.560976 | 0 | 0 | 0.042831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210643 | false | 0.004435 | 0.008869 | 0.062084 | 0.4102 | 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 |
865b1d4485a6761e03834c0d1ed42b976d19cd83 | 1,345 | py | Python | processengine/models.py | SchoolOrchestration/ProcessEngine | e4aa10d17405a69efe06ca4ee98f72c4abd85849 | [
"MIT"
] | null | null | null | processengine/models.py | SchoolOrchestration/ProcessEngine | e4aa10d17405a69efe06ca4ee98f72c4abd85849 | [
"MIT"
] | null | null | null | processengine/models.py | SchoolOrchestration/ProcessEngine | e4aa10d17405a69efe06ca4ee98f72c4abd85849 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import ArrayField, JSONField
from django.utils.module_loading import import_string
from django.conf import settings
import json
PROCESS_NAMES = [(key,key) for key, value in settings.PROCESS_MAP.items()]
class Process(models.Model):
"""
# creat... | 26.372549 | 97 | 0.668401 | 175 | 1,345 | 4.965714 | 0.417143 | 0.040276 | 0.050633 | 0.051784 | 0.131185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005703 | 0.217844 | 1,345 | 50 | 98 | 26.9 | 0.820342 | 0.107807 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.034483 | 0.241379 | 0.068966 | 0.655172 | 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 |
865d5f08c1ab52bd6aa7f6a2b12927294b1acb9c | 226 | py | Python | gnas/common/bit_utils.py | soolstafir/Applying-3D-U-Net-Architecture-to-the-Task-of-Multi-Organ-Segmentation-in-Computed-Tomography | c99cedc706917674a1641991a899e3fc7c925445 | [
"MIT"
] | 17 | 2019-04-02T04:24:37.000Z | 2021-12-16T02:10:20.000Z | gnas/common/bit_utils.py | soolstafir/3D-U-Net-in-CT | c99cedc706917674a1641991a899e3fc7c925445 | [
"MIT"
] | 4 | 2019-06-29T07:35:12.000Z | 2021-11-05T21:31:28.000Z | gnas/common/bit_utils.py | soolstafir/3D-U-Net-in-CT | c99cedc706917674a1641991a899e3fc7c925445 | [
"MIT"
] | 4 | 2019-12-02T09:09:20.000Z | 2021-02-17T18:57:54.000Z | def vector_bits2int(arr):
n = arr.shape[0] # number of columns
a = arr[0] << n - 1
for j in range(1, n):
# "overlay" with the shifted bits of the next column
a |= arr[j] << n - 1 - j
return a
| 25.111111 | 60 | 0.535398 | 39 | 226 | 3.076923 | 0.615385 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.336283 | 226 | 8 | 61 | 28.25 | 0.76 | 0.300885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
865eb632a7cd62761dc2783419d2a8d5ac1799b0 | 9,202 | py | Python | Gathered CTF writeups/0ctf_quals_2015/freenote/freenote_expl.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/0ctf_quals_2015/freenote/freenote_expl.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/0ctf_quals_2015/freenote/freenote_expl.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | #!/usr/bin/env python2
# --------------------------------------------------------------------------------------------------
# 0CTF 2015 - Freenote (Pwn 300pt)
# --------------------------------------------------------------------------------------------------
import struct
import sys
import socket
import struct
import ... | 39.835498 | 100 | 0.429363 | 987 | 9,202 | 3.91388 | 0.270517 | 0.027181 | 0.023298 | 0.029511 | 0.213047 | 0.185607 | 0.149107 | 0.121149 | 0.121149 | 0.121149 | 0 | 0.046303 | 0.272441 | 9,202 | 230 | 101 | 40.008696 | 0.530695 | 0.414801 | 0 | 0.336735 | 0 | 0 | 0.143283 | 0 | 0 | 0 | 0.020859 | 0 | 0 | 0 | null | null | 0 | 0.05102 | null | null | 0.102041 | 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 |
866254767a64459133bdf98c2775add965555505 | 4,207 | py | Python | forte/processors/base/index_processor.py | J007X/forte | 257f5d4798c632a67e63a4d549c81f2b3b87b714 | [
"Apache-2.0"
] | 163 | 2019-11-01T19:25:40.000Z | 2022-03-30T22:49:45.000Z | forte/processors/base/index_processor.py | J007X/forte | 257f5d4798c632a67e63a4d549c81f2b3b87b714 | [
"Apache-2.0"
] | 633 | 2019-11-01T20:07:08.000Z | 2022-03-31T23:11:20.000Z | forte/processors/base/index_processor.py | KGerring/forte | 7dc6e6c7d62d9a4126bdfc5ca02d15be3ffd61ca | [
"Apache-2.0"
] | 62 | 2019-11-01T19:41:33.000Z | 2022-03-24T11:14:21.000Z | # Copyright 2020 The Forte Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 33.927419 | 79 | 0.680057 | 512 | 4,207 | 5.433594 | 0.318359 | 0.051402 | 0.021567 | 0.025881 | 0.426312 | 0.360891 | 0.360891 | 0.360891 | 0.251977 | 0.251977 | 0 | 0.004932 | 0.228904 | 4,207 | 123 | 80 | 34.203252 | 0.852651 | 0.41217 | 0 | 0.42623 | 0 | 0 | 0.026076 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.098361 | 0.016393 | 0.377049 | 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 |
8663616a785dccfc97ce8b70c78440c2421bcade | 5,626 | py | Python | examples/neurospin/neurospy/script_first_level_localizer.py | fperez/nipy | 559f17150bd9fa8ead4fd088b330d7cf7db7aa79 | [
"BSD-3-Clause"
] | 1 | 2015-05-07T16:53:33.000Z | 2015-05-07T16:53:33.000Z | examples/neurospin/neurospy/script_first_level_localizer.py | fperez/nipy | 559f17150bd9fa8ead4fd088b330d7cf7db7aa79 | [
"BSD-3-Clause"
] | null | null | null | examples/neurospin/neurospy/script_first_level_localizer.py | fperez/nipy | 559f17150bd9fa8ead4fd088b330d7cf7db7aa79 | [
"BSD-3-Clause"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Script that perform the first-level analysis of a dataset of the FIAC
Last updated by B.Thirion
Author : Lise Favre, Bertrand Thirion, 2008-2010
"""
import os
from configobj import ConfigObj
from numpy... | 36.532468 | 141 | 0.535727 | 587 | 5,626 | 5.02385 | 0.366269 | 0.016277 | 0.007121 | 0.009156 | 0.017633 | 0.010851 | 0 | 0 | 0 | 0 | 0 | 0.02448 | 0.230359 | 5,626 | 153 | 142 | 36.771242 | 0.656582 | 0.255066 | 0 | 0.025641 | 0 | 0 | 0.22534 | 0.013337 | 0 | 0 | 0 | 0.006536 | 0 | 0 | null | null | 0 | 0.064103 | null | null | 0.064103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86647786af5e2d604f285c40adb69043ec7bd57d | 2,250 | py | Python | commons/views.py | Amirsorouri00/Django-Reset-Password-API | a80ba81fdb64bcc95cfadb0000c9bb70f4c24df8 | [
"MIT"
] | null | null | null | commons/views.py | Amirsorouri00/Django-Reset-Password-API | a80ba81fdb64bcc95cfadb0000c9bb70f4c24df8 | [
"MIT"
] | null | null | null | commons/views.py | Amirsorouri00/Django-Reset-Password-API | a80ba81fdb64bcc95cfadb0000c9bb70f4c24df8 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.models import User
from commons.permission_controllers import general_permission_controller as PERM_CONT
# Create your views here.
def test(request):
return HttpResponse('In common/views/test.')
def permission_contro... | 35.714286 | 126 | 0.700444 | 260 | 2,250 | 5.830769 | 0.388462 | 0.111478 | 0.10686 | 0.058047 | 0.131926 | 0.056728 | 0.056728 | 0.056728 | 0 | 0 | 0 | 0.002155 | 0.175111 | 2,250 | 63 | 127 | 35.714286 | 0.814655 | 0.12 | 0 | 0 | 0 | 0 | 0.242377 | 0.136434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.289474 | 0.184211 | 0.026316 | 0.315789 | 0.078947 | 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 |
86668c0102636335c1476212f5cc06b760574255 | 3,680 | py | Python | Python Simulator/Frontier Exploration/AStarDemo.py | yiorgosk/Path-Planning-Simulator | 84847d0068a3fd6fa30098b99a75dff237768a73 | [
"MIT"
] | 50 | 2018-11-15T08:42:49.000Z | 2022-03-20T10:51:58.000Z | Python Simulator/Frontier Exploration/AStarDemo.py | yiorgosk/Path-Planning-Simulator | 84847d0068a3fd6fa30098b99a75dff237768a73 | [
"MIT"
] | null | null | null | Python Simulator/Frontier Exploration/AStarDemo.py | yiorgosk/Path-Planning-Simulator | 84847d0068a3fd6fa30098b99a75dff237768a73 | [
"MIT"
] | 24 | 2019-02-03T06:11:58.000Z | 2022-03-15T06:18:39.000Z | # The MIT License (MIT)
# Copyright (c) 2015 INSPIRE Lab, BITS Pilani
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | 27.058824 | 96 | 0.693207 | 499 | 3,680 | 5.086172 | 0.406814 | 0.034673 | 0.022065 | 0.023641 | 0.156816 | 0.144996 | 0.13751 | 0.120961 | 0.120961 | 0.080772 | 0 | 0.02722 | 0.201359 | 3,680 | 135 | 97 | 27.259259 | 0.836339 | 0.314946 | 0 | 0.160494 | 0 | 0 | 0.039753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.049383 | 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 |
86695038752684c4e0528780cb7e656741e8d668 | 3,135 | py | Python | analyse.py | gmg2719/free5GRAN | 5ded60f3c5b85b507f96bdbf092886901d588dd1 | [
"Apache-2.0"
] | 2 | 2021-03-27T19:17:05.000Z | 2022-03-16T23:16:08.000Z | analyse.py | JiaoXianjun/free5GRAN | bdbbd38edaf9bf3f315270637d9b7b3a269dd3bf | [
"Apache-2.0"
] | null | null | null | analyse.py | JiaoXianjun/free5GRAN | bdbbd38edaf9bf3f315270637d9b7b3a269dd3bf | [
"Apache-2.0"
] | 1 | 2021-03-30T13:33:55.000Z | 2021-03-30T13:33:55.000Z | import numpy as np
import matplotlib
matplotlib.use('pdf')
import matplotlib.pyplot as plt
import traceback
Fs = 30.72e6
x1 = []
x2=[]
x5=[]
x_comp_0 = []
y_comp_0 = []
x_comp_1 = []
y_comp_1 = []
x_comp_2 = []
y_comp_2 = []
try:
f1 = open("/root/.files/free5GRAN/execution_raw_files/studied_frame.txt", "r")
... | 26.567797 | 119 | 0.614992 | 470 | 3,135 | 3.965957 | 0.182979 | 0.064378 | 0.096567 | 0.059013 | 0.748927 | 0.706545 | 0.57779 | 0.448498 | 0.385193 | 0.341202 | 0 | 0.04998 | 0.195853 | 3,135 | 118 | 120 | 26.567797 | 0.689409 | 0 | 0 | 0.425532 | 0 | 0 | 0.242028 | 0.200893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0.053191 | 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 |
866a0209ca8857bab3e85ed9e69fa5fd10b78ca4 | 768 | py | Python | go/dlgo/encoders/alphago_test.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | null | null | null | go/dlgo/encoders/alphago_test.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | null | null | null | go/dlgo/encoders/alphago_test.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | 1 | 2020-06-11T21:55:31.000Z | 2020-06-11T21:55:31.000Z | import unittest
from dlgo.agent.helpers import is_point_an_eye
from dlgo.goboard_fast import Board, GameState, Move
from dlgo.gotypes import Player, Point
from dlgo.encoders.alphago import AlphaGoEncoder
class AlphaGoEncoderTest(unittest.TestCase):
def test_encoder(self):
alphago = AlphaGoEncoder()
... | 28.444444 | 63 | 0.713542 | 95 | 768 | 5.557895 | 0.494737 | 0.151515 | 0.217803 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028708 | 0.183594 | 768 | 26 | 64 | 29.538462 | 0.813397 | 0 | 0 | 0 | 0 | 0 | 0.019531 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.388889 | 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 |
866a55ceab23cb12c9580cda7af40300f9d2d9cc | 843 | py | Python | BaseKnowledge/set/set.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | BaseKnowledge/set/set.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | BaseKnowledge/set/set.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python3
def func1():
x = set([1,2,3,4])
y = set([3,4,5,6,7])
z = frozenset([4,5])
print(x)
print(y)
x.add(5)
x.remove(3)
print(x)
print("x|y=", x | y) # x U y
print("x.union(y)=", x.union(y))
print("x&y=", x & y) # x ~U y
print("x.intersection(y)=", x.intersection(y))
prin... | 18.326087 | 64 | 0.544484 | 151 | 843 | 2.97351 | 0.245033 | 0.187082 | 0.140312 | 0.053452 | 0.173719 | 0.106904 | 0.106904 | 0.080178 | 0.080178 | 0.080178 | 0 | 0.051245 | 0.189798 | 843 | 45 | 65 | 18.733333 | 0.606149 | 0.05694 | 0 | 0.194444 | 0 | 0 | 0.187105 | 0.03287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.527778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
866cd7e05d55ac1b8de9a78670525477960f6f6f | 803 | py | Python | setup.py | zhangxu0307/pyts | c66a3874dedd33a8109e0955f69074df6fdedf6a | [
"MIT"
] | 1 | 2019-05-10T08:10:00.000Z | 2019-05-10T08:10:00.000Z | setup.py | zhangxu0307/pyts | c66a3874dedd33a8109e0955f69074df6fdedf6a | [
"MIT"
] | null | null | null | setup.py | zhangxu0307/pyts | c66a3874dedd33a8109e0955f69074df6fdedf6a | [
"MIT"
] | 1 | 2020-08-15T11:07:40.000Z | 2020-08-15T11:07:40.000Z | from setuptools import setup, find_packages
from distutils.core import setup
setup(name='pyts',
version='0.5',
description='A package for transformation and classification of time series',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
... | 30.884615 | 82 | 0.62142 | 81 | 803 | 6.098765 | 0.740741 | 0.044534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008389 | 0.257783 | 803 | 26 | 83 | 30.884615 | 0.82047 | 0 | 0 | 0.083333 | 0 | 0 | 0.469833 | 0.057766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
8670dc1ef96153dfec9d977e0336f6d8a8fd463a | 546 | py | Python | tests/utils/align_dict.py | DavidBerdik/dictances | 7b804b62032bbdecc8e73946cf74b171681fe4f5 | [
"MIT"
] | 30 | 2018-08-30T16:00:14.000Z | 2022-03-14T14:36:17.000Z | tests/utils/align_dict.py | DavidBerdik/dictances | 7b804b62032bbdecc8e73946cf74b171681fe4f5 | [
"MIT"
] | 6 | 2019-06-18T15:37:23.000Z | 2021-04-15T12:40:42.000Z | tests/utils/align_dict.py | DavidBerdik/dictances | 7b804b62032bbdecc8e73946cf74b171681fe4f5 | [
"MIT"
] | 6 | 2019-02-10T23:22:25.000Z | 2020-10-01T16:25:40.000Z | from typing import Dict
import copy
def align_dictionaries(a: Dict, b: Dict) -> Dict:
"""Return dictionary a aligned to dictionary b.
Parameters
---------------------------------
a: Dict,
The dictionary to be aligned to the second one, adding missing keys to values 0 as required.
b: Dict,... | 23.73913 | 100 | 0.53663 | 70 | 546 | 4.171429 | 0.457143 | 0.034247 | 0.116438 | 0.130137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.263736 | 546 | 22 | 101 | 24.818182 | 0.721393 | 0.554945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
86742afa9e88dc50e9e1830b8dbb1495bd0303ee | 2,375 | py | Python | utils_scripts/joomla_rce_exploiter.py | fakegit/google_explorer | 0b21b57ef6fb7b9182fb13d00508164d007b2d19 | [
"MIT"
] | 155 | 2016-09-11T00:43:07.000Z | 2018-05-02T06:36:43.000Z | utils_scripts/joomla_rce_exploiter.py | fakegit/google_explorer | 0b21b57ef6fb7b9182fb13d00508164d007b2d19 | [
"MIT"
] | 19 | 2016-09-12T14:39:17.000Z | 2018-04-24T00:47:01.000Z | utils_scripts/joomla_rce_exploiter.py | fakegit/google_explorer | 0b21b57ef6fb7b9182fb13d00508164d007b2d19 | [
"MIT"
] | 85 | 2016-09-10T20:01:48.000Z | 2018-05-16T15:01:28.000Z | """
Usage:
joomla_rce_exploiter.py --file=<arg>
joomla_rce_exploiter.py --help
joomla_rce_exploiter.py --version
Options:
-h --help Open help menu
-v --version Show version
Required options:
--file='arq' arq... | 27.298851 | 89 | 0.532632 | 280 | 2,375 | 4.417857 | 0.425 | 0.029103 | 0.043654 | 0.048504 | 0.103476 | 0.103476 | 0.07114 | 0.07114 | 0.07114 | 0.07114 | 0 | 0.033163 | 0.339789 | 2,375 | 86 | 90 | 27.616279 | 0.75574 | 0.122947 | 0 | 0.122449 | 0 | 0 | 0.160755 | 0.031465 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163265 | null | null | 0.061224 | 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 |
86752f1b5ce695b55dbc1e6643f602ee02d3962a | 392 | py | Python | respostas/migrations/0010_rename_pergunta_respondida_resposta_respondida.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | respostas/migrations/0010_rename_pergunta_respondida_resposta_respondida.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | respostas/migrations/0010_rename_pergunta_respondida_resposta_respondida.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-11 23:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('respostas', '0009_resposta_pergunta_respondida'),
]
operations = [
migrations.RenameField(
model_name='resposta',
old_name='pe... | 20.631579 | 59 | 0.617347 | 39 | 392 | 6.025641 | 0.74359 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.280612 | 392 | 18 | 60 | 21.777778 | 0.769504 | 0.109694 | 0 | 0 | 1 | 0 | 0.227666 | 0.095101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86763f8770bf7c33d669a3f8d9f2112dd9c3f25f | 1,067 | py | Python | qiskit/pulse/commands/frame_change.py | rabaniten/qiskit-terra | 68da37be74d133faef530c42d1fd11d696a80c12 | [
"Apache-2.0"
] | 2 | 2021-09-06T19:25:36.000Z | 2021-11-17T10:46:12.000Z | qiskit/pulse/commands/frame_change.py | rabaniten/qiskit-terra | 68da37be74d133faef530c42d1fd11d696a80c12 | [
"Apache-2.0"
] | null | null | null | qiskit/pulse/commands/frame_change.py | rabaniten/qiskit-terra | 68da37be74d133faef530c42d1fd11d696a80c12 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""
Frame change pulse.
"""
from qiskit.pulse.commands.pulse_command import PulseCommand
class FrameChange(PulseCommand):
... | 24.25 | 77 | 0.604499 | 131 | 1,067 | 4.824427 | 0.541985 | 0.06962 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0.304592 | 1,067 | 43 | 78 | 24.813953 | 0.84097 | 0.508903 | 0 | 0 | 0 | 0 | 0.004819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
867ad287d806fe12dd981ef64088e5f68b7ade7b | 384 | py | Python | core/migrations/0013_item_out_of_stock.py | alvaryn/Ecommerce-Website | b9ad8388b35db080d11c4fa0ebc322ef00fe3c25 | [
"MIT"
] | 1 | 2022-03-19T11:34:17.000Z | 2022-03-19T11:34:17.000Z | core/migrations/0013_item_out_of_stock.py | alvaryn/Ecommerce-Website | b9ad8388b35db080d11c4fa0ebc322ef00fe3c25 | [
"MIT"
] | null | null | null | core/migrations/0013_item_out_of_stock.py | alvaryn/Ecommerce-Website | b9ad8388b35db080d11c4fa0ebc322ef00fe3c25 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-19 00:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_voucher_amount'),
]
operations = [
migrations.AddField(
model_name='item',
name='out_of_stock',
... | 20.210526 | 53 | 0.596354 | 42 | 384 | 5.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069597 | 0.289063 | 384 | 18 | 54 | 21.333333 | 0.750916 | 0.117188 | 0 | 0 | 1 | 0 | 0.115727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
867b1afa07363d3c30fe639a8d665826fec12316 | 19,671 | py | Python | webfront/views/entry.py | ProteinsWebTeam/interpro7-api | e34cc565e89165f18e3db4871998db0d90870765 | [
"Apache-2.0"
] | 6 | 2020-05-25T17:35:52.000Z | 2022-03-26T00:45:55.000Z | webfront/views/entry.py | ProteinsWebTeam/interpro7-api | e34cc565e89165f18e3db4871998db0d90870765 | [
"Apache-2.0"
] | 76 | 2016-07-29T09:22:34.000Z | 2022-03-15T07:57:17.000Z | webfront/views/entry.py | ProteinsWebTeam/interpro7-api | e34cc565e89165f18e3db4871998db0d90870765 | [
"Apache-2.0"
] | 1 | 2017-04-09T20:08:30.000Z | 2017-04-09T20:08:30.000Z | from django.db.models import Count
from webfront.constants import ModifierType
from webfront.exceptions import DeletedEntryError
from webfront.models import Entry
from webfront.serializers.interpro import EntrySerializer
from webfront.views.modifiers import (
group_by,
sort_by,
filter_by_field,
get_int... | 31.625402 | 88 | 0.598546 | 1,744 | 19,671 | 6.439794 | 0.100917 | 0.100971 | 0.061437 | 0.082807 | 0.735375 | 0.685157 | 0.660493 | 0.647761 | 0.618556 | 0.60146 | 0 | 0.001632 | 0.314524 | 19,671 | 621 | 89 | 31.676329 | 0.831282 | 0.006304 | 0 | 0.661431 | 0 | 0 | 0.074243 | 0.002149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029668 | false | 0 | 0.013962 | 0 | 0.167539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
867c3f4b854a478bb47bb4ed854501f327dc62e9 | 453 | py | Python | datastrucutre/array/peak_element.py | abhishektyagi2912/python-dsa | 8f51f15a091ee76e00fb34abc232c23cb68440cb | [
"MIT"
] | 1 | 2021-05-02T05:43:34.000Z | 2021-05-02T05:43:34.000Z | datastrucutre/array/peak_element.py | abhishektyagi2912/python-dsa | 8f51f15a091ee76e00fb34abc232c23cb68440cb | [
"MIT"
] | null | null | null | datastrucutre/array/peak_element.py | abhishektyagi2912/python-dsa | 8f51f15a091ee76e00fb34abc232c23cb68440cb | [
"MIT"
] | null | null | null | def peak(arr, low, high):
n = len(arr)
while low <= high:
mid = low + (high - low) / 2
mid = int(mid)
if (mid == 0 or arr[mid-1] <= arr[mid]) and (mid == n-1 or arr[mid+1] <= arr[mid]):
return(arr[mid])
elif mid > 0 and arr[mid-1] > arr[mid]:
... | 23.842105 | 92 | 0.415011 | 71 | 453 | 2.647887 | 0.323944 | 0.223404 | 0.148936 | 0.159574 | 0.228723 | 0.159574 | 0 | 0 | 0 | 0 | 0 | 0.067669 | 0.412804 | 453 | 18 | 93 | 25.166667 | 0.639098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.076923 | 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 |
86809c101dbc11aac28eb970e53576c9ec86f137 | 2,190 | py | Python | mltools/arch/test_conv.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | mltools/arch/test_conv.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | mltools/arch/test_conv.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torchinfo import summary
class SimpleConv(nn.Module):
def __init__(self, in_size):
super(SimpleConv, self).__init__()
# 3x3 Convolution with 6 filters ('same' padding)
self.conv = nn.Conv2d(in_size, 6, 3, padding='same')
self.relu = nn.ReLU... | 21.9 | 60 | 0.574429 | 281 | 2,190 | 4.19573 | 0.220641 | 0.061069 | 0.040712 | 0.076336 | 0.315522 | 0.296862 | 0.296862 | 0.254453 | 0.057676 | 0.057676 | 0 | 0.01847 | 0.307763 | 2,190 | 99 | 61 | 22.121212 | 0.759235 | 0.060274 | 0 | 0.424242 | 0 | 0 | 0.010716 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8680a79c2234496d6312545eba32470961b7d3da | 657 | py | Python | medications/migrations/0001_initial.py | jbenner-radham/healthlogger | 80f8c0f580d71f25813c68f3c1304c2d429892c6 | [
"MIT"
] | null | null | null | medications/migrations/0001_initial.py | jbenner-radham/healthlogger | 80f8c0f580d71f25813c68f3c1304c2d429892c6 | [
"MIT"
] | 6 | 2020-06-06T00:17:41.000Z | 2022-02-10T08:42:46.000Z | medications/migrations/0001_initial.py | jbenner-radham/healthlogger | 80f8c0f580d71f25813c68f3c1304c2d429892c6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-27 16:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Medication',
fields=[
('id', models.AutoFie... | 27.375 | 119 | 0.578387 | 61 | 657 | 6.147541 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.283105 | 657 | 23 | 120 | 28.565217 | 0.757962 | 0.068493 | 0 | 0 | 1 | 0 | 0.121311 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8683e761562f97cad618979ac2a7f309156daf4a | 1,402 | py | Python | bigquery/samples/update_routine.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | null | null | null | bigquery/samples/update_routine.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | null | null | null | bigquery/samples/update_routine.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.155556 | 79 | 0.667618 | 183 | 1,402 | 5.043716 | 0.57377 | 0.065005 | 0.028169 | 0.03467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.25107 | 1,402 | 44 | 80 | 31.863636 | 0.870476 | 0.694009 | 0 | 0 | 0 | 0 | 0.103704 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.071429 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8684f6ae74758ca89976d371cc88b366b47c9f84 | 1,615 | py | Python | examples/example_serialization.py | BBBBlarry/mlflow | e8f5b9450ba6d3b68fe0cbb530840c0a760d3b08 | [
"MIT"
] | null | null | null | examples/example_serialization.py | BBBBlarry/mlflow | e8f5b9450ba6d3b68fe0cbb530840c0a760d3b08 | [
"MIT"
] | null | null | null | examples/example_serialization.py | BBBBlarry/mlflow | e8f5b9450ba6d3b68fe0cbb530840c0a760d3b08 | [
"MIT"
] | null | null | null | import mlflow as mf
import numpy as np
from tqdm import tqdm
# for testing consistency
np.random.seed(42)
### hyperparams
n_samples = 10
itr = 1000
### data set
x = np.ones((n_samples, 10))
y = np.ones((n_samples, 5))
### graph
g = mf.Graph()
### input data place holder
x_placeholder = mf.placeholder([n_samples, 1... | 26.048387 | 88 | 0.69969 | 270 | 1,615 | 4.07037 | 0.374074 | 0.054595 | 0.059145 | 0.072793 | 0.246588 | 0.168335 | 0.131938 | 0.131938 | 0 | 0 | 0 | 0.018248 | 0.151703 | 1,615 | 61 | 89 | 26.47541 | 0.783942 | 0.272446 | 0 | 0 | 0 | 0 | 0.053556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | 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 |
8684fc6f2be4ee8e5d5865d4477cf476407d83fd | 5,913 | py | Python | salesforce_api/services/base.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 25 | 2019-05-20T06:38:45.000Z | 2022-02-22T02:10:37.000Z | salesforce_api/services/base.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 19 | 2019-07-02T10:12:09.000Z | 2022-01-09T23:33:21.000Z | salesforce_api/services/base.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 16 | 2019-12-04T20:45:16.000Z | 2021-12-17T23:29:29.000Z | import json
import requests
from .. import exceptions, config, core
from ..const.service import VERB
from ..utils import soap
class _Service:
def __init__(self, connection: core.Connection, base_uri: str = None):
self.connection = connection
self.base_uri = base_uri
self._setup(... | 37.188679 | 100 | 0.607475 | 655 | 5,913 | 5.285496 | 0.174046 | 0.052571 | 0.031774 | 0.032351 | 0.442519 | 0.434431 | 0.39948 | 0.343732 | 0.332756 | 0.332756 | 0 | 0.006078 | 0.276509 | 5,913 | 158 | 101 | 37.424051 | 0.803179 | 0 | 0 | 0.290323 | 0 | 0 | 0.061164 | 0.013206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.008065 | 0.040323 | 0.080645 | 0.467742 | 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 |
8687cf335809695b4a0eb2c5dd338bba934063ea | 2,983 | py | Python | credential_test.py | Dasi202/password-generator | 7924fff281701efa139eff2cde83c27468f89f5d | [
"MIT"
] | null | null | null | credential_test.py | Dasi202/password-generator | 7924fff281701efa139eff2cde83c27468f89f5d | [
"MIT"
] | null | null | null | credential_test.py | Dasi202/password-generator | 7924fff281701efa139eff2cde83c27468f89f5d | [
"MIT"
] | null | null | null | import unittest
import pyperclip
from credential import Credential
class TestCredential(unittest.TestCase):
"""
Test class that defines test cases for the credential class behaviours.
"""
def tearDown(self):
Credential.credential_list = []
def setUp(self):
self.new_credential = C... | 36.378049 | 98 | 0.670801 | 335 | 2,983 | 5.767164 | 0.208955 | 0.134576 | 0.096791 | 0.043478 | 0.531574 | 0.493271 | 0.452899 | 0.364907 | 0.343685 | 0.31677 | 0 | 0.006477 | 0.2236 | 2,983 | 81 | 99 | 36.82716 | 0.82772 | 0.165605 | 0 | 0.348837 | 0 | 0 | 0.120294 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 1 | 0.209302 | false | 0.023256 | 0.069767 | 0 | 0.302326 | 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 |
8688ccce4c02569eb7ecd43f4e1058608cee530a | 2,383 | py | Python | gemd/entity/case_insensitive_dict.py | ventura-rivera/gemd-python | 078eed39de852f830111b77306c2f35146de8ec3 | [
"Apache-2.0"
] | null | null | null | gemd/entity/case_insensitive_dict.py | ventura-rivera/gemd-python | 078eed39de852f830111b77306c2f35146de8ec3 | [
"Apache-2.0"
] | null | null | null | gemd/entity/case_insensitive_dict.py | ventura-rivera/gemd-python | 078eed39de852f830111b77306c2f35146de8ec3 | [
"Apache-2.0"
] | null | null | null | class CaseInsensitiveDict(dict):
"""
A dictionary in which the keys are case-insensitive.
It is initialized the same way as a typical dict, but the values can be accessed without
regard to key case. The value associated with key "Key" can also be accessed with "key"
or "KEY" or "kEy".
Paramete... | 30.948052 | 95 | 0.592111 | 301 | 2,383 | 4.518272 | 0.322259 | 0.030882 | 0.0625 | 0.032353 | 0.072059 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0.000605 | 0.306337 | 2,383 | 76 | 96 | 31.355263 | 0.822142 | 0.466219 | 0 | 0.083333 | 0 | 0 | 0.055072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.458333 | 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 |
86898a7bdb36bdc4f1c13a2195d9e9b141aa0f03 | 1,472 | py | Python | nipype/interfaces/freesurfer/tests/test_auto_MS_LDA.py | HussainAther/nipype | 7e33d086fd5cea6ef6de99ee3e35929c1d5730d4 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/freesurfer/tests/test_auto_MS_LDA.py | HussainAther/nipype | 7e33d086fd5cea6ef6de99ee3e35929c1d5730d4 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/freesurfer/tests/test_auto_MS_LDA.py | HussainAther/nipype | 7e33d086fd5cea6ef6de99ee3e35929c1d5730d4 | [
"Apache-2.0"
] | null | null | null | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..model import MS_LDA
def test_MS_LDA_inputs():
input_map = dict(args=dict(argstr='%s',
),
conform=dict(argstr='-conform',
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exceptio... | 24.131148 | 67 | 0.618207 | 187 | 1,472 | 4.68984 | 0.379679 | 0.114025 | 0.063854 | 0.027366 | 0.244014 | 0.18016 | 0.125428 | 0.125428 | 0.125428 | 0.125428 | 0 | 0.003515 | 0.226902 | 1,472 | 60 | 68 | 24.533333 | 0.767135 | 0.034647 | 0 | 0.396226 | 1 | 0 | 0.05074 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.075472 | 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 |
868c4db5e991b13da1e7a096ed726e795ef8479b | 11,613 | py | Python | ironic/tests/unit/api/controllers/v1/test_event.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 350 | 2015-01-02T09:35:49.000Z | 2022-03-28T09:25:59.000Z | ironic/tests/unit/api/controllers/v1/test_event.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 7 | 2015-05-04T16:12:41.000Z | 2021-08-31T12:27:27.000Z | ironic/tests/unit/api/controllers/v1/test_event.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 333 | 2015-01-06T09:09:22.000Z | 2022-02-20T08:11:40.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 47.594262 | 79 | 0.636356 | 1,336 | 11,613 | 5.261976 | 0.157186 | 0.045519 | 0.038691 | 0.036415 | 0.721764 | 0.688051 | 0.672262 | 0.660171 | 0.6367 | 0.609673 | 0 | 0.019671 | 0.251442 | 11,613 | 243 | 80 | 47.790123 | 0.789026 | 0.066133 | 0 | 0.526042 | 0 | 0 | 0.174399 | 0.032902 | 0 | 0 | 0 | 0 | 0.203125 | 1 | 0.125 | false | 0 | 0.057292 | 0.005208 | 0.203125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
868d1198689628d5e92b65bc9b6205f5cd3249cc | 1,362 | py | Python | tests/conftest.py | patrickporto/eventstore | 666003b4a50ed3212d8a682ab1d4b7a1d406a93b | [
"MIT"
] | 27 | 2018-01-27T17:19:47.000Z | 2021-11-08T02:19:22.000Z | tests/conftest.py | patrickporto/eventstore | 666003b4a50ed3212d8a682ab1d4b7a1d406a93b | [
"MIT"
] | 5 | 2018-01-30T20:00:13.000Z | 2021-06-01T22:10:33.000Z | tests/conftest.py | patrickporto/eventstore | 666003b4a50ed3212d8a682ab1d4b7a1d406a93b | [
"MIT"
] | 7 | 2018-01-15T13:16:07.000Z | 2020-09-05T18:59:28.000Z | from os import environ
import aiopg
from aiopg.sa import create_engine
from async_generator import async_generator, yield_
from kant.eventstore.connection import connect
import pytest
@pytest.fixture
@async_generator
async def dbsession():
conn = await aiopg.connect(
user=environ.get("DATABASE_USER"),
... | 27.795918 | 55 | 0.70558 | 157 | 1,362 | 5.961783 | 0.273885 | 0.106838 | 0.192308 | 0.086538 | 0.451923 | 0.451923 | 0.339744 | 0.339744 | 0.339744 | 0.339744 | 0 | 0.00724 | 0.188693 | 1,362 | 48 | 56 | 28.375 | 0.839819 | 0 | 0 | 0.45 | 0 | 0 | 0.136564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.15 | 0 | 0.15 | 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 |
868d898faa4478639e609391debf96ebf37465de | 17,919 | py | Python | shell/impala_client.py | suifengzhuliu/impala | 611f4c6f3b18cfcddff3b2956cbb87c295a87655 | [
"Apache-2.0"
] | null | null | null | shell/impala_client.py | suifengzhuliu/impala | 611f4c6f3b18cfcddff3b2956cbb87c295a87655 | [
"Apache-2.0"
] | null | null | null | shell/impala_client.py | suifengzhuliu/impala | 611f4c6f3b18cfcddff3b2956cbb87c295a87655 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# 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
# "... | 37.487448 | 90 | 0.697026 | 2,445 | 17,919 | 4.933742 | 0.217178 | 0.02918 | 0.0286 | 0.013678 | 0.147642 | 0.125591 | 0.122358 | 0.116389 | 0.103623 | 0.08124 | 0 | 0.004815 | 0.223506 | 17,919 | 477 | 91 | 37.566038 | 0.862153 | 0.134159 | 0 | 0.220126 | 0 | 0 | 0.039545 | 0 | 0 | 0 | 0 | 0.004193 | 0 | 0 | null | null | 0.012579 | 0.044025 | null | null | 0.040881 | 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 |
868dfed0f58f8212d9f513a5196138f920d7afea | 3,549 | py | Python | setup.py | ninox-iot/tuf | 5115cfc764a8316b5a857ce7d978d9a2b6909e11 | [
"MIT"
] | null | null | null | setup.py | ninox-iot/tuf | 5115cfc764a8316b5a857ce7d978d9a2b6909e11 | [
"MIT"
] | null | null | null | setup.py | ninox-iot/tuf | 5115cfc764a8316b5a857ce7d978d9a2b6909e11 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
<Program Name>
setup.py
<Author>
Vladimir Diaz <vladimir.v.diaz@gmail.com>
<Started>
March 2013.
<Copyright>
See LICENSE for licensing information.
<Purpose>
BUILD SOURCE DISTRIBUTION
The following shell command generates a TUF source archive that can be
distributed to oth... | 30.86087 | 79 | 0.709777 | 441 | 3,549 | 5.689342 | 0.469388 | 0.068155 | 0.089677 | 0.035074 | 0.110004 | 0.076923 | 0.061379 | 0 | 0 | 0 | 0 | 0.011797 | 0.18794 | 3,549 | 114 | 80 | 31.131579 | 0.858779 | 0.56523 | 0 | 0 | 0 | 0 | 0.616287 | 0.069707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 |
869935a0036a7642fea396797e659e2879f69e8a | 1,967 | py | Python | ghtrack/GhTrackObject.py | zinaLacina/github-track | 1a1754ff9e6bfffa1f7eab6030cc38ad71715117 | [
"MIT"
] | null | null | null | ghtrack/GhTrackObject.py | zinaLacina/github-track | 1a1754ff9e6bfffa1f7eab6030cc38ad71715117 | [
"MIT"
] | null | null | null | ghtrack/GhTrackObject.py | zinaLacina/github-track | 1a1754ff9e6bfffa1f7eab6030cc38ad71715117 | [
"MIT"
] | null | null | null | import os
from dataclasses import dataclass
import yaml
import logging as log
@dataclass
class Auth:
"""Auth class.
Github token configurations.
"""
token: str = ""
@dataclass
class EmailConf:
"""EmailConf class.
Email configurations.
"""
to: str = "zinalacina@gmail.com"
... | 28.926471 | 116 | 0.580071 | 212 | 1,967 | 5.301887 | 0.363208 | 0.049822 | 0.023132 | 0.024911 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292832 | 1,967 | 67 | 117 | 29.358209 | 0.808052 | 0.113879 | 0 | 0.093023 | 0 | 0 | 0.127098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.534884 | 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 |
86a40ff242d27a1539cde52f30ca309e1f9beac4 | 2,339 | py | Python | _zadania/type_float_d.py | DJG-coderslab/2021-12-elearning-pythonana | e072d6cbd231c4b858e92a59af768a069b74ba67 | [
"MIT"
] | null | null | null | _zadania/type_float_d.py | DJG-coderslab/2021-12-elearning-pythonana | e072d6cbd231c4b858e92a59af768a069b74ba67 | [
"MIT"
] | null | null | null | _zadania/type_float_d.py | DJG-coderslab/2021-12-elearning-pythonana | e072d6cbd231c4b858e92a59af768a069b74ba67 | [
"MIT"
] | null | null | null | """
* Assignment: Type Float Distance
* Required: yes
* Complexity: easy
* Lines of code: 4 lines
* Time: 5 min
English:
1. Convert units
2. Instead `...` substitute calculated and converted values
3. Note the number of decimal places
4. Run doctests - all must succeed
Polish:
1. Przekonwertuj jed... | 28.180723 | 66 | 0.640017 | 316 | 2,339 | 4.693038 | 0.310127 | 0.070128 | 0.04383 | 0.064059 | 0.306811 | 0.306811 | 0.306811 | 0.236008 | 0.182063 | 0.182063 | 0 | 0.031337 | 0.235998 | 2,339 | 82 | 67 | 28.52439 | 0.798545 | 0.813596 | 0 | 0 | 0 | 0 | 0.232673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86a8b11a5ce808dc5d412c9c47818b88cd4a431a | 1,184 | py | Python | tests/validations/test_layername_check.py | PDOK/geopackage-validator | 2bf4933f62376b552bc86dda9fb50c901b5294b3 | [
"MIT"
] | null | null | null | tests/validations/test_layername_check.py | PDOK/geopackage-validator | 2bf4933f62376b552bc86dda9fb50c901b5294b3 | [
"MIT"
] | 33 | 2020-08-10T15:49:57.000Z | 2022-03-29T13:05:47.000Z | tests/validations/test_layername_check.py | PDOK/geopackage-validator | 2bf4933f62376b552bc86dda9fb50c901b5294b3 | [
"MIT"
] | null | null | null | from geopackage_validator.utils import open_dataset
from geopackage_validator.validations.layername_check import (
LayerNameValidator,
query_layernames,
)
def test_lowercaselayername_success():
assert (
len(
LayerNameValidator.check_layernames(
layernames=["table", "low... | 25.73913 | 88 | 0.66723 | 122 | 1,184 | 6.229508 | 0.336066 | 0.046053 | 0.098684 | 0.169737 | 0.4 | 0.4 | 0.181579 | 0.181579 | 0.181579 | 0.181579 | 0 | 0.010858 | 0.222128 | 1,184 | 45 | 89 | 26.311111 | 0.814332 | 0 | 0 | 0.228571 | 0 | 0 | 0.128378 | 0.05152 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.142857 | false | 0 | 0.057143 | 0 | 0.2 | 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 |
86acedb0b391a6cdc688882628ec1b0bab32fc32 | 1,538 | py | Python | rally/plugins/openstack/context/cleanup/user.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/context/cleanup/user.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/context/cleanup/user.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | # Copyright 2014: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 37.512195 | 78 | 0.711964 | 200 | 1,538 | 5.43 | 0.57 | 0.055249 | 0.044199 | 0.069061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006504 | 0.20026 | 1,538 | 40 | 79 | 38.45 | 0.876423 | 0.452536 | 0 | 0 | 0 | 0 | 0.075426 | 0.027981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 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 |
86ad086363aa1abced0b267812ae68f33e829cb7 | 36,796 | py | Python | PC_Miner.py | hgecode/duino-coin | 84505d4cd11618adfefb5c4aa5034d2a862e72c6 | [
"MIT"
] | null | null | null | PC_Miner.py | hgecode/duino-coin | 84505d4cd11618adfefb5c4aa5034d2a862e72c6 | [
"MIT"
] | null | null | null | PC_Miner.py | hgecode/duino-coin | 84505d4cd11618adfefb5c4aa5034d2a862e72c6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
##########################################
# Duino-Coin Python PC Miner (v2.2)
# https://github.com/revoxhere/duino-coin
# Distributed under MIT license
# © Duino-Coin Community 2019-2021
##########################################
import socket, statistics, threading, multiprocessing, time... | 37.546939 | 188 | 0.393902 | 2,776 | 36,796 | 5.14013 | 0.172911 | 0.035321 | 0.039176 | 0.023828 | 0.407667 | 0.385731 | 0.35882 | 0.323569 | 0.288458 | 0.257271 | 0 | 0.01531 | 0.517176 | 36,796 | 979 | 189 | 37.585291 | 0.787459 | 0.067453 | 0 | 0.546667 | 0 | 0.008889 | 0.107064 | 0.013899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0.001111 | 0.01 | 0.001111 | 0.024444 | 0.034444 | 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 |
86bc90ba3c04961fe4281746b9fe7c7d1d78e0ee | 359 | py | Python | setup.py | harryjjacobs/prefs | 114a9f1d130bae29fd97e86f66efa43d0b4e34ea | [
"MIT"
] | null | null | null | setup.py | harryjjacobs/prefs | 114a9f1d130bae29fd97e86f66efa43d0b4e34ea | [
"MIT"
] | null | null | null | setup.py | harryjjacobs/prefs | 114a9f1d130bae29fd97e86f66efa43d0b4e34ea | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='prefs',
version='0.1',
description='Very simple, lightweight tool for storing user preferences in python',
url='http://github.com/harryjjacobs/prefs',
author='Harry Jacobs',
author_email='harryjjacobs@googlemail.com',
license='MIT',
pac... | 29.916667 | 89 | 0.668524 | 42 | 359 | 5.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006969 | 0.200557 | 359 | 11 | 90 | 32.636364 | 0.8223 | 0 | 0 | 0 | 0 | 0 | 0.442897 | 0.075209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86bdb4cf8d7a49b04ecb4b6cbcda80a7d2adb131 | 1,427 | py | Python | automl_video_ondevice/types.py | sujitahirrao/automl-video-ondevice | 554ffb45908a711f93a8fc67825fbf1927f30b50 | [
"Apache-2.0"
] | 54 | 2019-08-21T04:07:06.000Z | 2022-02-02T22:10:12.000Z | automl_video_ondevice/types.py | sujitahirrao/automl-video-ondevice | 554ffb45908a711f93a8fc67825fbf1927f30b50 | [
"Apache-2.0"
] | 11 | 2019-10-30T00:24:03.000Z | 2021-12-30T06:54:28.000Z | automl_video_ondevice/types.py | sujitahirrao/automl-video-ondevice | 554ffb45908a711f93a8fc67825fbf1927f30b50 | [
"Apache-2.0"
] | 24 | 2019-08-21T05:30:55.000Z | 2021-10-21T01:23:43.000Z | # Lint as: python3
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 21.953846 | 80 | 0.712684 | 184 | 1,427 | 5.478261 | 0.597826 | 0.059524 | 0.099206 | 0.031746 | 0.063492 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.170287 | 1,427 | 64 | 81 | 22.296875 | 0.837838 | 0.485634 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.885714 | 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 |
86c5e9568cfd8b767052b22a2e8ef6843ffd9c93 | 949 | py | Python | backend/migrations/0005_auto_20200407_1407.py | SteBry/mycroft | 918d90aa6cc8a82f26cc18cab4c70e9a8590f7f1 | [
"MIT"
] | 5 | 2020-03-01T11:17:09.000Z | 2021-07-08T20:45:47.000Z | backend/migrations/0005_auto_20200407_1407.py | SteBry/mycroft | 918d90aa6cc8a82f26cc18cab4c70e9a8590f7f1 | [
"MIT"
] | 245 | 2020-03-28T11:59:12.000Z | 2020-05-26T10:05:22.000Z | backend/migrations/0005_auto_20200407_1407.py | SteBry/mycroft | 918d90aa6cc8a82f26cc18cab4c70e9a8590f7f1 | [
"MIT"
] | 5 | 2020-02-03T08:15:13.000Z | 2020-04-15T07:22:47.000Z | # Generated by Django 3.0.3 on 2020-04-07 12:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0004_auto_20200406_1401'),
]
operations = [
migrations.RemoveField(
model_name='filter',
name='cameras',
... | 28.757576 | 97 | 0.59431 | 91 | 949 | 6.010989 | 0.428571 | 0.091408 | 0.109689 | 0.13894 | 0.528336 | 0.528336 | 0.219378 | 0.219378 | 0.219378 | 0.219378 | 0 | 0.04579 | 0.286617 | 949 | 32 | 98 | 29.65625 | 0.762186 | 0.047418 | 0 | 0.423077 | 1 | 0 | 0.213969 | 0.025499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86c6c567a7826973748bd346769c53cdef534578 | 317 | py | Python | home/migrations/0006_extensions.py | elizabethadegbaju/dailypythontip | 4d8271e7ae84fa5b35cbafdc00f51511f4769ba8 | [
"MIT"
] | null | null | null | home/migrations/0006_extensions.py | elizabethadegbaju/dailypythontip | 4d8271e7ae84fa5b35cbafdc00f51511f4769ba8 | [
"MIT"
] | null | null | null | home/migrations/0006_extensions.py | elizabethadegbaju/dailypythontip | 4d8271e7ae84fa5b35cbafdc00f51511f4769ba8 | [
"MIT"
] | null | null | null | from django.contrib.postgres.operations import TrigramExtension, \
UnaccentExtension
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0005_auto_20210122_2047'),
]
operations = [
TrigramExtension(),
UnaccentExtension(),
]
| 22.642857 | 66 | 0.684543 | 26 | 317 | 8.230769 | 0.692308 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064777 | 0.22082 | 317 | 13 | 67 | 24.384615 | 0.801619 | 0 | 0 | 0 | 0 | 0 | 0.085174 | 0.072555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
86c6dac0363493733fa48e94ba0915ce5934b19e | 645 | py | Python | 2/2.2.py | Hunter1753/adventofcode | 962df52af01f6ab575e8f00eb2d1c1335dba5430 | [
"CC0-1.0"
] | 1 | 2020-12-08T21:53:19.000Z | 2020-12-08T21:53:19.000Z | 2/2.2.py | Hunter1753/adventofcode | 962df52af01f6ab575e8f00eb2d1c1335dba5430 | [
"CC0-1.0"
] | null | null | null | 2/2.2.py | Hunter1753/adventofcode | 962df52af01f6ab575e8f00eb2d1c1335dba5430 | [
"CC0-1.0"
] | null | null | null | def checkPassword(data):
return (data["password"][data["pos1"] - 1] == data["char"]) != (data["password"][data["pos2"] -1 ] == data["char"])
passwords = []
with open("./2/input.txt") as inputFile:
for line in inputFile:
tokens = line.split(" ")
minMax = tokens[0].split("-")
data = {
"pos1": int(minMax[0]),
... | 29.318182 | 116 | 0.646512 | 79 | 645 | 5.278481 | 0.443038 | 0.057554 | 0.076739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029091 | 0.147287 | 645 | 22 | 117 | 29.318182 | 0.729091 | 0 | 0 | 0 | 0 | 0 | 0.171827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.526316 | 0 | 0.052632 | 0.105263 | 0.052632 | 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 |
86ca911cd470a15af06adb9b4743fffae2c2a5d5 | 321 | py | Python | backEnd/creativePlaylist/tastybitauth/admin.py | rllola/creativePlaylist | 26fc0b41841f0ae78be9a5ab11d18bc57e8647e3 | [
"MIT"
] | null | null | null | backEnd/creativePlaylist/tastybitauth/admin.py | rllola/creativePlaylist | 26fc0b41841f0ae78be9a5ab11d18bc57e8647e3 | [
"MIT"
] | null | null | null | backEnd/creativePlaylist/tastybitauth/admin.py | rllola/creativePlaylist | 26fc0b41841f0ae78be9a5ab11d18bc57e8647e3 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from tastybitauth.models import BitAuth
class BitAuthAdmin(admin.ModelAdmin):
list_display = ('user', 'sin',)
raw_id_fields = ('user',)
autocomplete_lookup_fields = {
'fk': ['user_id'],
}
admin.site.register(BitAuth, BitAuthAdmin... | 21.4 | 42 | 0.697819 | 37 | 321 | 5.891892 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180685 | 321 | 15 | 42 | 21.4 | 0.828897 | 0.080997 | 0 | 0 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
86cdc8c0353f538a89c1a702b62a6337964ce697 | 277 | py | Python | week03/Lab_3.1/randomFruit2.py | Osheah/hospfcs2021 | 328bed6ca706d488c8fa968fb6bc1bbc19be3628 | [
"Apache-2.0"
] | null | null | null | week03/Lab_3.1/randomFruit2.py | Osheah/hospfcs2021 | 328bed6ca706d488c8fa968fb6bc1bbc19be3628 | [
"Apache-2.0"
] | null | null | null | week03/Lab_3.1/randomFruit2.py | Osheah/hospfcs2021 | 328bed6ca706d488c8fa968fb6bc1bbc19be3628 | [
"Apache-2.0"
] | null | null | null | # This program prints out a random fruit
# helen o'shea
# 20210203
import random
fruits = ('Apple', 'Pear', 'Banana', 'Lemon', 'Orange', 'Strawberry', 'Raspberry', 'Kiwi')
index = random.randint(0, len(fruits)-1)
fruit = fruits[index]
print("A random fruit: {}".format(fruit)) | 30.777778 | 90 | 0.685921 | 38 | 277 | 5 | 0.736842 | 0.073684 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041494 | 0.129964 | 277 | 9 | 91 | 30.777778 | 0.746888 | 0.216607 | 0 | 0 | 0 | 0 | 0.313084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
86d54f82328127f61622d9a4fcd35d748b62a658 | 703 | py | Python | hw/hw06/tests/q5_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | hw/hw06/tests/q5_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | hw/hw06/tests/q5_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | test = { 'name': 'q5_3',
'points': 1,
'suites': [ { 'cases': [ { 'code': '>>> # The statistic should be between 0 and 13 face cards for a sample size of 13;\n'
'>>> num_face = deck_simulation_and_statistic(13, deck_model_probabilities);\n'
... | 54.076923 | 133 | 0.328592 | 53 | 703 | 4.207547 | 0.735849 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040373 | 0.541963 | 703 | 12 | 134 | 58.583333 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0.371266 | 0.086771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
86d67b170ddb0624865ebba27a3e80f771382fee | 1,225 | py | Python | app/auth/restfuls.py | iceihehe/easy-note | 806527998db08b6860fdd4f0cf395eb09930f4e1 | [
"MIT"
] | null | null | null | app/auth/restfuls.py | iceihehe/easy-note | 806527998db08b6860fdd4f0cf395eb09930f4e1 | [
"MIT"
] | null | null | null | app/auth/restfuls.py | iceihehe/easy-note | 806527998db08b6860fdd4f0cf395eb09930f4e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask_restful import Resource
from flask_login import login_user, login_required, current_user
from .parsers import login_parser, update_info_parser
from .managers import AuthManager, UserManager
from ..constants import Code
from ..functions import make_response
class LoginResource(Reso... | 23.557692 | 93 | 0.675918 | 141 | 1,225 | 5.673759 | 0.35461 | 0.075 | 0.07 | 0.11 | 0.12 | 0.0825 | 0 | 0 | 0 | 0 | 0 | 0.001062 | 0.23102 | 1,225 | 51 | 94 | 24.019608 | 0.848195 | 0.020408 | 0 | 0.133333 | 0 | 0 | 0.035176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86d715293238dd07727c230c2a7554c8886b66e3 | 554 | py | Python | projects/migrations/0006_auto_20210717_2135.py | kiptoo-rotich/Awards | 7206861279df86328b49e81af0429380a14676de | [
"MIT"
] | null | null | null | projects/migrations/0006_auto_20210717_2135.py | kiptoo-rotich/Awards | 7206861279df86328b49e81af0429380a14676de | [
"MIT"
] | null | null | null | projects/migrations/0006_auto_20210717_2135.py | kiptoo-rotich/Awards | 7206861279df86328b49e81af0429380a14676de | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-17 18:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0005_projects_technologies'),
]
operations = [
migrations.RemoveField(
model_name='projects',
name='tech... | 23.083333 | 61 | 0.586643 | 53 | 554 | 6.018868 | 0.698113 | 0.056426 | 0.106583 | 0.131661 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.305054 | 554 | 23 | 62 | 24.086957 | 0.771429 | 0.081227 | 0 | 0.352941 | 1 | 0 | 0.145957 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
86e164e7a6b198d68c07ddd86c9c2bef3329c6c0 | 869 | py | Python | items.py | rullmann/bundlewrap-collectd-minimal | 8ccf0534b33fff1faee9cd14742071e991f68a8e | [
"MIT"
] | null | null | null | items.py | rullmann/bundlewrap-collectd-minimal | 8ccf0534b33fff1faee9cd14742071e991f68a8e | [
"MIT"
] | null | null | null | items.py | rullmann/bundlewrap-collectd-minimal | 8ccf0534b33fff1faee9cd14742071e991f68a8e | [
"MIT"
] | null | null | null | pkg_dnf = {
'collectd': {},
}
svc_systemd = {
'collectd': {
'needs': ['pkg_dnf:collectd'],
},
}
files = {
'/etc/collectd.conf': {
'mode': '0600',
'content_type': 'mako',
'context': {
'collectd': node.metadata.get('collectd', {}),
},
'needs': ... | 23.486486 | 74 | 0.486766 | 80 | 869 | 5.1625 | 0.325 | 0.072639 | 0.169492 | 0.184019 | 0.656174 | 0.571429 | 0.416465 | 0.251816 | 0.251816 | 0 | 0 | 0.012882 | 0.285386 | 869 | 36 | 75 | 24.138889 | 0.652174 | 0 | 0 | 0.363636 | 0 | 0 | 0.413119 | 0.12313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
86e5e80488ee3e4038461e5baf9a6f0a513ba1f8 | 5,044 | py | Python | examples/basic_functionality.py | AkBotZ/heroku3.py | 584bf1ceebc5ca337873fdebcc4fdf02a51cbca4 | [
"MIT"
] | 109 | 2015-03-12T21:34:35.000Z | 2022-03-22T05:36:09.000Z | examples/basic_functionality.py | MUTLCC/herokum | 6a25e6e56a1bf46ea370c22daa44383ce5a10ca2 | [
"MIT"
] | 102 | 2015-03-12T21:34:13.000Z | 2022-01-18T12:17:23.000Z | examples/basic_functionality.py | MUTLCC/herokum | 6a25e6e56a1bf46ea370c22daa44383ce5a10ca2 | [
"MIT"
] | 88 | 2015-03-01T20:46:59.000Z | 2022-03-22T03:59:15.000Z | # coding=utf-8
import os
from pprint import pprint # noqa
# Third party libraries
import heroku3
# import socket
# import httplib
# import logging
# httplib.HTTPConnection.debuglevel = 1
# logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests
# logging.getLogger()... | 28.337079 | 107 | 0.71134 | 703 | 5,044 | 4.964438 | 0.285918 | 0.051576 | 0.032092 | 0.036103 | 0.197135 | 0.159026 | 0.124642 | 0.05616 | 0.048138 | 0 | 0 | 0.036521 | 0.104282 | 5,044 | 177 | 108 | 28.497175 | 0.735945 | 0.863006 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.272727 | 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 |
86e5e80b51c20e91bb83a78da69c56d0e9334383 | 632 | py | Python | coin_run_test.py | SiAce/Attention-Agent | 1f321883de055562d1cc6ecf5121849cde15d257 | [
"Apache-2.0"
] | null | null | null | coin_run_test.py | SiAce/Attention-Agent | 1f321883de055562d1cc6ecf5121849cde15d257 | [
"Apache-2.0"
] | 4 | 2021-03-19T12:32:13.000Z | 2022-03-12T00:26:49.000Z | coin_run_test.py | SiAce/Attention-Agent | 1f321883de055562d1cc6ecf5121849cde15d257 | [
"Apache-2.0"
] | null | null | null | import gym
env = gym.make('procgen:procgen-coinrun-v0')
obs = env.reset()
print(f"coinrun action : type = {type(env.action_space.sample())} \n {env.action_space.sample()}")
# env_car = gym.make('CarRacing-v0')
# obs = env_car.reset()
# print(f"car racing action : type = {type(env_car.action_space.sample())} \n {env_c... | 35.111111 | 111 | 0.610759 | 94 | 632 | 4.010638 | 0.382979 | 0.06366 | 0.180371 | 0.090186 | 0.180371 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.202532 | 632 | 18 | 112 | 35.111111 | 0.740079 | 0.262658 | 0 | 0 | 0 | 0.153846 | 0.455724 | 0.185745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.230769 | 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 |
86ec3802f60352b6a92159ca2a3ea3270c8c06d0 | 1,094 | py | Python | torch_glow/tests/nodes/split_test.py | mciprian13/glow | 90f88205d9bf8baff8df5bbda51c9d138e3e668b | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/split_test.py | mciprian13/glow | 90f88205d9bf8baff8df5bbda51c9d138e3e668b | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/split_test.py | mciprian13/glow | 90f88205d9bf8baff8df5bbda51c9d138e3e668b | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from tests import utils
class SimpleSplitModel(torch.nn.Module):
def __init__(self, split_size_or_sections, dimension):
super(SimpleSplitModel, self).__init__()
self.split_size_or_sections = split_size... | 34.1875 | 82 | 0.642596 | 136 | 1,094 | 4.897059 | 0.360294 | 0.081081 | 0.099099 | 0.171171 | 0.463964 | 0.36036 | 0.123123 | 0.084084 | 0 | 0 | 0 | 0.063549 | 0.23766 | 1,094 | 31 | 83 | 35.290323 | 0.735012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0.04 | 0.36 | 0.04 | 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 |
86ef8a33e76196da99943869c98a69344faeb46f | 680 | py | Python | examples/sklearn_job.py | kpavel/lithops | 395eef8b283512bd714d3633dcd94258e1df620c | [
"Apache-2.0"
] | 158 | 2020-09-16T13:22:03.000Z | 2022-03-28T20:01:31.000Z | examples/sklearn_job.py | kpavel/lithops | 395eef8b283512bd714d3633dcd94258e1df620c | [
"Apache-2.0"
] | 256 | 2018-05-20T13:01:51.000Z | 2020-09-16T09:09:54.000Z | examples/sklearn_job.py | kpavel/lithops | 395eef8b283512bd714d3633dcd94258e1df620c | [
"Apache-2.0"
] | 48 | 2020-09-19T15:29:53.000Z | 2022-03-23T17:08:24.000Z | import numpy as np
import joblib
from lithops.util.joblib import register_lithops
from lithops.utils import setup_lithops_logger
from sklearn.datasets import load_digits
from sklearn.model_selection import RandomizedSearchCV
from sklearn.svm import SVC
digits = load_digits()
param_space = {
'C': np.logspace(-6, 6,... | 26.153846 | 76 | 0.742647 | 97 | 680 | 5.061856 | 0.546392 | 0.06721 | 0.07332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028765 | 0.130882 | 680 | 25 | 77 | 27.2 | 0.80203 | 0 | 0 | 0 | 0 | 0 | 0.063235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 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 |
86f148b0df8f7bcf276ea89ca51c9fc10cf2b8c6 | 1,619 | py | Python | setup.py | PowerRocker/rpi_spark_drives | 9420805870cee88438aafe33110d5959e74f221b | [
"MIT"
] | 1 | 2018-11-18T03:20:20.000Z | 2018-11-18T03:20:20.000Z | setup.py | PowerRocker/rpi_spark_drives | 9420805870cee88438aafe33110d5959e74f221b | [
"MIT"
] | null | null | null | setup.py | PowerRocker/rpi_spark_drives | 9420805870cee88438aafe33110d5959e74f221b | [
"MIT"
] | null | null | null | #
# RPi-Spark pHAT Drives
# Author: Kunpeng Zhang
# 2018.6.6
# 2020.7.18 Fix screenCenter incorrect error
#
from setuptools import setup, find_packages
classifiers = [
'Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers... | 28.910714 | 300 | 0.673873 | 186 | 1,619 | 5.822581 | 0.672043 | 0.022161 | 0.022161 | 0.072022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043205 | 0.213712 | 1,619 | 55 | 301 | 29.436364 | 0.807541 | 0.058678 | 0 | 0 | 0 | 0.022727 | 0.618326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 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 |
86f5203818cf6cfae4d7e1273647e5fb81a2939b | 14,116 | py | Python | tape.py | CrackingTheFoundation/simple-tape | 3c28a12996a0a554e320684252819c4f6164dc63 | [
"MIT"
] | null | null | null | tape.py | CrackingTheFoundation/simple-tape | 3c28a12996a0a554e320684252819c4f6164dc63 | [
"MIT"
] | null | null | null | tape.py | CrackingTheFoundation/simple-tape | 3c28a12996a0a554e320684252819c4f6164dc63 | [
"MIT"
] | null | null | null | from manim import *
class WhatIsAComputerProgram(ZoomedScene):
def construct(self):
question=Tex("What is a computer program?")
self.add(question)
self.wait(2)
self.play(question.animate.shift(2*UP))
trailingThought=Tex("and...")
trailingThought.next_to(question,D... | 55.356863 | 1,298 | 0.579768 | 2,100 | 14,116 | 3.745714 | 0.119524 | 0.035596 | 0.03013 | 0.021866 | 0.442792 | 0.363209 | 0.337147 | 0.314645 | 0.284007 | 0.260615 | 0 | 0.076434 | 0.209408 | 14,116 | 254 | 1,299 | 55.574803 | 0.628405 | 0.133466 | 0 | 0.290123 | 0 | 0 | 0.078855 | 0.003282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.006173 | 0 | 0.04321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f8157852b893d53e26c997003121c0c3e56348 | 10,835 | py | Python | tools/gapid_trace_replay_tests.py | RenfengLiu/vulkan_test_applications | 04359b7184ad94659810213ff63ae71296426182 | [
"Apache-2.0"
] | 55 | 2017-06-20T13:54:31.000Z | 2022-02-08T23:58:11.000Z | tools/gapid_trace_replay_tests.py | RenfengLiu/vulkan_test_applications | 04359b7184ad94659810213ff63ae71296426182 | [
"Apache-2.0"
] | 53 | 2017-06-15T19:23:07.000Z | 2022-03-30T19:56:30.000Z | tools/gapid_trace_replay_tests.py | RenfengLiu/vulkan_test_applications | 04359b7184ad94659810213ff63ae71296426182 | [
"Apache-2.0"
] | 42 | 2017-06-15T19:05:40.000Z | 2022-03-30T14:15:25.000Z | #!/usr/bin/python
# Copyright 2017 Google Inc.
#
# 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 agre... | 38.97482 | 83 | 0.59197 | 1,300 | 10,835 | 4.758462 | 0.232308 | 0.04785 | 0.018105 | 0.013741 | 0.276269 | 0.21484 | 0.164888 | 0.127708 | 0.076625 | 0.062722 | 0 | 0.01412 | 0.3006 | 10,835 | 277 | 84 | 39.115523 | 0.802191 | 0.08814 | 0 | 0.201878 | 0 | 0 | 0.126017 | 0 | 0 | 0 | 0 | 0.00361 | 0 | 0 | null | null | 0.004695 | 0.042254 | null | null | 0.117371 | 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 |
86f8935c4d8efe539bd941ab7647540b3d31916b | 262 | py | Python | run.py | qvalador/scout | 5780a46df193e9fd16ab68ef2e859d6568adf012 | [
"MIT"
] | null | null | null | run.py | qvalador/scout | 5780a46df193e9fd16ab68ef2e859d6568adf012 | [
"MIT"
] | null | null | null | run.py | qvalador/scout | 5780a46df193e9fd16ab68ef2e859d6568adf012 | [
"MIT"
] | null | null | null | import time
import os
import asyncio
from conf import debug
while True:
if debug:
n = 0
else:
n = 5
os.system("python3 C:\\Users\\qvalador\\Documents\\Code\\scout\\bot.py")
print("the bot died, restarting in 5")
time.sleep(n) | 20.153846 | 76 | 0.625954 | 40 | 262 | 4.1 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.251908 | 262 | 13 | 77 | 20.153846 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.334601 | 0.193916 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86fa6eceaa11ef913fd2e6342e4f246a94e5edf1 | 582 | py | Python | tests/test-perf2.py | 0x4e38/dpkt | 83c20a6a63a7ebc1a549d367bc07a61b926cecf3 | [
"BSD-3-Clause"
] | 14 | 2015-03-04T11:27:57.000Z | 2021-03-11T10:43:02.000Z | tests/test-perf2.py | edisona/dpkt | 83c20a6a63a7ebc1a549d367bc07a61b926cecf3 | [
"BSD-3-Clause"
] | 1 | 2017-08-22T12:07:28.000Z | 2017-08-22T12:07:28.000Z | tests/test-perf2.py | edisona/dpkt | 83c20a6a63a7ebc1a549d367bc07a61b926cecf3 | [
"BSD-3-Clause"
] | 4 | 2015-05-18T16:50:28.000Z | 2019-10-30T20:39:24.000Z | #!/usr/bin/env python
import dpkt
import time, unittest
class TestPerf(unittest.TestCase):
rounds = 10000
def setUp(self):
self.start = time.time()
def tearDown(self):
print self.rounds / (time.time() - self.start), 'rounds/s'
def test_pack(self):
for i in xrange(self.rounds)... | 21.555556 | 66 | 0.56701 | 76 | 582 | 4.210526 | 0.434211 | 0.09375 | 0.075 | 0.075 | 0.1375 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0.012136 | 0.292096 | 582 | 26 | 67 | 22.384615 | 0.764563 | 0.034364 | 0 | 0.105263 | 0 | 0 | 0.049911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.157895 | 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 |
86fba997507df59153a20846b5127565bd304e8c | 4,135 | py | Python | integration_tests/test_suites/k8s-integration-test-suite/conftest.py | makotonium/dagster | f5d56514b7e7c5bca28ea14060316d242f51b71b | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | integration_tests/test_suites/k8s-integration-test-suite/conftest.py | makotonium/dagster | f5d56514b7e7c5bca28ea14060316d242f51b71b | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | integration_tests/test_suites/k8s-integration-test-suite/conftest.py | makotonium/dagster | f5d56514b7e7c5bca28ea14060316d242f51b71b | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | # pylint: disable=unused-import
import os
import tempfile
import docker
import kubernetes
import pytest
from dagster.core.instance import DagsterInstance
from dagster_k8s.launcher import K8sRunLauncher
from dagster_k8s_test_infra.cluster import (
dagster_instance_for_k8s_run_launcher,
define_cluster_provider_f... | 32.559055 | 100 | 0.703023 | 509 | 4,135 | 5.422397 | 0.335953 | 0.03587 | 0.02029 | 0.027536 | 0.194928 | 0.097101 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.201935 | 4,135 | 126 | 101 | 32.81746 | 0.828788 | 0.135429 | 0 | 0.138298 | 0 | 0 | 0.177709 | 0.072431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0.053191 | 0.117021 | 0.010638 | 0.191489 | 0.010638 | 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 |
810372a215f73afbbfdb5ebb9aff6f5b93bb3579 | 3,417 | py | Python | examples/dfp/v201802/line_item_service/target_custom_criteria.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | 1 | 2019-10-21T04:10:22.000Z | 2019-10-21T04:10:22.000Z | examples/dfp/v201802/line_item_service/target_custom_criteria.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | null | null | null | examples/dfp/v201802/line_item_service/target_custom_criteria.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | 1 | 2019-10-21T04:10:51.000Z | 2019-10-21T04:10:51.000Z | #!/usr/bin/env python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 30.783784 | 79 | 0.710272 | 443 | 3,417 | 5.221219 | 0.356659 | 0.069174 | 0.02594 | 0.02767 | 0.246866 | 0.127108 | 0.076956 | 0.050151 | 0.050151 | 0.050151 | 0 | 0.019445 | 0.187299 | 3,417 | 110 | 80 | 31.063636 | 0.813468 | 0.308165 | 0 | 0.12069 | 0 | 0 | 0.306074 | 0.094692 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81067b2968d0d02ddc017a77a51ed34b87e6ccb0 | 1,307 | py | Python | libtbx/tst_containers.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | libtbx/tst_containers.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | libtbx/tst_containers.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
def exercise_oset():
from libtbx.containers import OrderedSet as oset
o = oset()
assert repr(o) == "OrderedSet()"
assert len(o) == 0
o = oset([3,5,2,5,4,2,1])
assert list(o) == [3, 5, 2, 4, 1]
assert 3 in o
assert 6 not in o
o.add(3)
a... | 26.673469 | 64 | 0.573833 | 230 | 1,307 | 3.182609 | 0.252174 | 0.057377 | 0.054645 | 0.021858 | 0.107924 | 0.057377 | 0.04235 | 0.04235 | 0 | 0 | 0 | 0.069633 | 0.208875 | 1,307 | 48 | 65 | 27.229167 | 0.638298 | 0 | 0 | 0.044444 | 0 | 0 | 0.081102 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.155556 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810710ae4b9c6cfa51fdb95e1e7b37304350eb8d | 1,470 | py | Python | lovelyrita/utils.py | openoakland/lovely-rita | 35ec5a5fc27fcf4ee27078e05fb38f15723ddf9a | [
"MIT"
] | null | null | null | lovelyrita/utils.py | openoakland/lovely-rita | 35ec5a5fc27fcf4ee27078e05fb38f15723ddf9a | [
"MIT"
] | 11 | 2017-10-25T01:40:48.000Z | 2018-04-11T03:26:40.000Z | lovelyrita/utils.py | openoakland/lovely-rita | 35ec5a5fc27fcf4ee27078e05fb38f15723ddf9a | [
"MIT"
] | 3 | 2017-10-25T04:00:43.000Z | 2018-04-04T03:30:43.000Z | from __future__ import print_function
import numpy as np
import pandas as pd
def get_column_report(df):
"""Generate a summary of the data in a DataFrame
"""
column_report = []
for column in df.columns:
unique = df[column].unique()
sample = np.nan
for value in unique:
... | 27.735849 | 92 | 0.586395 | 185 | 1,470 | 4.540541 | 0.421622 | 0.1 | 0.05 | 0.030952 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004753 | 0.284354 | 1,470 | 52 | 93 | 28.269231 | 0.793726 | 0.061905 | 0 | 0.055556 | 1 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.083333 | 0 | 0.277778 | 0.055556 | 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 |
81077d961aacf9aaadaf9b2d996981eb7ae941e5 | 1,130 | py | Python | pdd_sdk/api/rest/DdkRpPromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | 1 | 2020-07-07T06:47:15.000Z | 2020-07-07T06:47:15.000Z | pdd_sdk/api/rest/DdkRpPromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | null | null | null | pdd_sdk/api/rest/DdkRpPromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
DdkRpPromUrlGenerate.py:
https://open.pinduoduo.com/application/document/api?id=pdd.ddk.rp.prom.url.generate
生成营销工具推广链接
"""
from pdd_sdk.api.base import RestApi
class DdkRpPromUrlGenerate(RestApi):
def __init__(self, domain='gw-api.pinduoduo.com', port=80):
RestApi.__init__(s... | 37.666667 | 107 | 0.680531 | 158 | 1,130 | 4.696203 | 0.658228 | 0.06469 | 0.021563 | 0.032345 | 0.061995 | 0.061995 | 0 | 0 | 0 | 0 | 0 | 0.051592 | 0.193805 | 1,130 | 29 | 108 | 38.965517 | 0.7618 | 0.380531 | 0 | 0 | 1 | 0 | 0.070485 | 0.041116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8108b6da3d9e2aa108a79c64e6650eb015f9489f | 3,579 | py | Python | pysnmp/IPFIX-SELECTOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/IPFIX-SELECTOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/IPFIX-SELECTOR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module IPFIX-SELECTOR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPFIX-SELECTOR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:44:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | 105.264706 | 545 | 0.779547 | 370 | 3,579 | 7.532432 | 0.340541 | 0.009329 | 0.010764 | 0.014352 | 0.303552 | 0.213132 | 0.213132 | 0.209903 | 0.209903 | 0.168281 | 0 | 0.070122 | 0.083543 | 3,579 | 33 | 546 | 108.454545 | 0.779573 | 0.092205 | 0 | 0.08 | 0 | 0 | 0.209259 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.24 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810b480340c1ad46725007c4e25d47488951f988 | 597 | py | Python | TreeHash.py | anyou-jiang/20210702 | 0f63f2030a8d948409d57f7f44b7c8ecaa7947f6 | [
"Apache-2.0"
] | null | null | null | TreeHash.py | anyou-jiang/20210702 | 0f63f2030a8d948409d57f7f44b7c8ecaa7947f6 | [
"Apache-2.0"
] | null | null | null | TreeHash.py | anyou-jiang/20210702 | 0f63f2030a8d948409d57f7f44b7c8ecaa7947f6 | [
"Apache-2.0"
] | null | null | null | import enum
from InternalNode import InternalNode
from LeafNode import LeafNode
from NodeTag import NodeTag
class TreeHash:
class HashKeyDefinitions(enum.Enum):
PerTGroup = 0
hashKeyDefinition = HashKeyDefinitions.PerTGroup
@staticmethod
def hash(tree):
if TreeHash.hashKeyDefini... | 24.875 | 79 | 0.685092 | 57 | 597 | 7.175439 | 0.438596 | 0.05868 | 0.07824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002208 | 0.241206 | 597 | 24 | 80 | 24.875 | 0.900662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
810c02eb67d4f313d911f62b70ae1cdb6f7c7b36 | 4,743 | py | Python | eulerian_magnification/base.py | MarGetman/EM | 9ae0651fe3334176300d183f8240ad36d77759a9 | [
"MIT"
] | 323 | 2015-01-03T00:06:57.000Z | 2022-03-25T22:14:51.000Z | eulerian_magnification/base.py | MarGetman/EM | 9ae0651fe3334176300d183f8240ad36d77759a9 | [
"MIT"
] | 16 | 2015-01-05T14:52:50.000Z | 2022-03-24T12:15:29.000Z | eulerian_magnification/base.py | MarGetman/EM | 9ae0651fe3334176300d183f8240ad36d77759a9 | [
"MIT"
] | 102 | 2015-01-08T11:43:25.000Z | 2021-11-02T14:40:50.000Z | import cv2
import numpy as np
import scipy.fftpack
import scipy.signal
from matplotlib import pyplot
# from eulerian_magnification.io import play_vid_data
from eulerian_magnification.pyramid import create_laplacian_video_pyramid, collapse_laplacian_video_pyramid
from eulerian_magnification.transforms import temporal_b... | 33.167832 | 129 | 0.666245 | 673 | 4,743 | 4.514116 | 0.249629 | 0.048387 | 0.02765 | 0.014483 | 0.163924 | 0.129691 | 0.071099 | 0.071099 | 0.071099 | 0.071099 | 0 | 0.015098 | 0.218005 | 4,743 | 142 | 130 | 33.401408 | 0.80399 | 0.095509 | 0 | 0.132653 | 0 | 0 | 0.02204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.061224 | 0.071429 | 0 | 0.214286 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
810d33c8712a825b8bece1bfc733c854f60aa64c | 5,545 | py | Python | processor/query_processor.py | sonudoo/password-manager | 6fa1d2ebeba5b0f9cff200b32a581321d109b9cd | [
"MIT"
] | null | null | null | processor/query_processor.py | sonudoo/password-manager | 6fa1d2ebeba5b0f9cff200b32a581321d109b9cd | [
"MIT"
] | null | null | null | processor/query_processor.py | sonudoo/password-manager | 6fa1d2ebeba5b0f9cff200b32a581321d109b9cd | [
"MIT"
] | null | null | null | from constants.database import PASSWORD_MANAGER_COLLECTION_NAME, PASSWORD_MANAGER_COLLECTION_DOMAIN_FIELD, PASSWORD_MANAGER_COLLECTION_USERNAME_FIELD, PASSWORD_MANAGER_COLLECTION_SECRETS_FIELD
from constants.request_parameters import BODY_DOMAIN_PARAM, BODY_USERNAME_PARAM, BODY_SECRET_PARAM, BODY_MASTER_PASSWORD_PARAM,... | 50.87156 | 262 | 0.665645 | 627 | 5,545 | 5.545455 | 0.175439 | 0.094909 | 0.158182 | 0.071326 | 0.413287 | 0.337935 | 0.298821 | 0.244751 | 0.244751 | 0.232384 | 0 | 0.000498 | 0.276285 | 5,545 | 108 | 263 | 51.342593 | 0.865936 | 0.253381 | 0 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 1 | 0.057143 | false | 0.257143 | 0.057143 | 0 | 0.257143 | 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.