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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a138a9fcd0ad64dd6725636ce84d89b1781c7b8 | 844 | py | Python | src/models/QuantumSLIM/ItemSelectors/ItemSelectorByPopularity.py | tangtang95/qslim-recommender | 31b3825a171f3010890491f1b9675072a37252aa | [
"MIT"
] | null | null | null | src/models/QuantumSLIM/ItemSelectors/ItemSelectorByPopularity.py | tangtang95/qslim-recommender | 31b3825a171f3010890491f1b9675072a37252aa | [
"MIT"
] | null | null | null | src/models/QuantumSLIM/ItemSelectors/ItemSelectorByPopularity.py | tangtang95/qslim-recommender | 31b3825a171f3010890491f1b9675072a37252aa | [
"MIT"
] | null | null | null | import numpy as np
from scipy import sparse as sps
from src.models.QuantumSLIM.ItemSelectors.ItemSelectorInterface import ItemSelectorInterface
class ItemSelectorByPopularity(ItemSelectorInterface):
"""
Item selector that selects the items to be kept by item popularity. The higher popular items are kept.
... | 40.190476 | 120 | 0.706161 | 114 | 844 | 5.061404 | 0.491228 | 0.112652 | 0.088388 | 0.065858 | 0.294627 | 0.218371 | 0.218371 | 0.114385 | 0.114385 | 0.114385 | 0 | 0.008837 | 0.195498 | 844 | 20 | 121 | 42.2 | 0.840943 | 0.120853 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.615385 | 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 |
9a17e6b8f2014514b4fe6478210920684f717083 | 648 | py | Python | backend/products/migrations/0009_auto_20220417_1040.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/products/migrations/0009_auto_20220417_1040.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/products/migrations/0009_auto_20220417_1040.py | crowdbotics-apps/royal-cloud-33498 | 4ac1701e6af7db4b3b7393b73fc0af80fc313b3b | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | # Generated by Django 2.2.27 on 2022-04-17 10:40
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0008_auto_20220416_1121'),
]
operations = [
migrations.RemoveField(
model_nam... | 27 | 150 | 0.637346 | 73 | 648 | 5.506849 | 0.671233 | 0.064677 | 0.104478 | 0.134328 | 0.139303 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0.069815 | 0.248457 | 648 | 23 | 151 | 28.173913 | 0.755647 | 0.070988 | 0 | 0.235294 | 1 | 0 | 0.126667 | 0.038333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a2a70dbefe0f515477b97bac02085cca03c55d5 | 386 | py | Python | cothermo_socket/setup.py | bshaoCN/COThermoSocket | 75c010ce68d293cce2a4900fbfe73ddce545665e | [
"MIT"
] | null | null | null | cothermo_socket/setup.py | bshaoCN/COThermoSocket | 75c010ce68d293cce2a4900fbfe73ddce545665e | [
"MIT"
] | null | null | null | cothermo_socket/setup.py | bshaoCN/COThermoSocket | 75c010ce68d293cce2a4900fbfe73ddce545665e | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='cothermo_socket',
version='1.0.0',
description='cape-open thermo python package.',
license="MIT Licence",
author="bshao",
author_email="bshao@163.com",
packages=setuptools.find_packages(),
classifiers=['Programming Language :: Python :: 3'],
... | 25.733333 | 56 | 0.689119 | 43 | 386 | 6.046512 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.165803 | 386 | 14 | 57 | 27.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.323834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
9a2a7ec0e179f2baaac9e5ab613fb2a7823fa6df | 352 | py | Python | run_tests.py | jsocol/jingo | 1248ab4b87fe2e487800e3370ec33de02bc91673 | [
"BSD-3-Clause"
] | null | null | null | run_tests.py | jsocol/jingo | 1248ab4b87fe2e487800e3370ec33de02bc91673 | [
"BSD-3-Clause"
] | null | null | null | run_tests.py | jsocol/jingo | 1248ab4b87fe2e487800e3370ec33de02bc91673 | [
"BSD-3-Clause"
] | null | null | null | import os
import nose
NAME = os.path.basename(os.path.dirname(__file__))
ROOT = os.path.abspath(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = 'fake_settings'
os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
os.path.join(ROOT, 'examples')])
if __name__... | 25.142857 | 76 | 0.633523 | 44 | 352 | 4.636364 | 0.477273 | 0.147059 | 0.127451 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213068 | 352 | 13 | 77 | 27.076923 | 0.736462 | 0 | 0 | 0 | 0 | 0 | 0.173295 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
9a2c327f37b91d949e8cca2fda0d90308fd26152 | 1,693 | py | Python | tests/test_ci_search.py | Yinqingwen/Dva | 3b8d1d1435f6a804a9c370006b931f9dc50a7462 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 1 | 2021-04-10T20:19:35.000Z | 2021-04-10T20:19:35.000Z | tests/test_ci_search.py | Yinqingwen/Dva | 3b8d1d1435f6a804a9c370006b931f9dc50a7462 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_ci_search.py | Yinqingwen/Dva | 3b8d1d1435f6a804a9c370006b931f9dc50a7462 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 3 | 2021-07-13T10:52:48.000Z | 2022-03-11T03:31:45.000Z | #!/usr/bin/env python
import django, os, sys
sys.path.append('../server/')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dva.settings")
django.setup()
import base64
from dvaapp.models import DVAPQL, Retriever, QueryResult
from dvaapp.processing import DVAPQLProcess
from django.conf import settings
if __name__ == '_... | 33.196078 | 120 | 0.471943 | 132 | 1,693 | 5.856061 | 0.568182 | 0.062096 | 0.049159 | 0.085382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011055 | 0.412286 | 1,693 | 50 | 121 | 33.86 | 0.765829 | 0.011813 | 0 | 0.133333 | 0 | 0 | 0.191986 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9a3428cf86510cc96b896972dea1e505210fbe8c | 2,953 | py | Python | simu_mp.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | simu_mp.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | simu_mp.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from os import listdir, mkdir
from os.path import exists, join
import subprocess
BASE_DIR="configs/simulation/CPU2017_MP"
# TODO, make the output directory configurable
OUT_DIR="CPU2017_MP_Assessment"
if not exists(OUT_DIR):
mkdir(OUT_DIR)
def processM5out(run_name,num_unique_benchmarks):... | 32.450549 | 160 | 0.639688 | 428 | 2,953 | 4.114486 | 0.240654 | 0.042589 | 0.068143 | 0.074957 | 0.30494 | 0.199886 | 0.156729 | 0.091993 | 0 | 0 | 0 | 0.015098 | 0.237386 | 2,953 | 90 | 161 | 32.811111 | 0.766874 | 0.030139 | 0 | 0 | 0 | 0 | 0.136316 | 0.054177 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.028169 | false | 0 | 0.042254 | 0 | 0.070423 | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9a368b7ceadc2606e2ed78e8d402c9d3404d171e | 1,691 | py | Python | leetcode/binary-tree/maxDiff2.py | Gaurav-Pande/DataStructures | 0e4af391274e33a9bb9f999a9032b74d06fc878e | [
"MIT"
] | 5 | 2018-09-14T13:14:34.000Z | 2021-12-29T11:07:35.000Z | leetcode/binary-tree/maxDiff2.py | Gaurav-Pande/DataStructures | 0e4af391274e33a9bb9f999a9032b74d06fc878e | [
"MIT"
] | null | null | null | leetcode/binary-tree/maxDiff2.py | Gaurav-Pande/DataStructures | 0e4af391274e33a9bb9f999a9032b74d06fc878e | [
"MIT"
] | null | null | null | # https://leetcode.com/contest/weekly-contest-132/problems/maximum-difference-between-node-and-ancestor/
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def __init__(self... | 24.507246 | 104 | 0.513897 | 215 | 1,691 | 4 | 0.311628 | 0.087209 | 0.110465 | 0.039535 | 0.037209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027372 | 0.351863 | 1,691 | 68 | 105 | 24.867647 | 0.757299 | 0.378474 | 0 | 0.068966 | 0 | 0 | 0.001009 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.137931 | false | 0 | 0 | 0 | 0.344828 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a40225afff544bd8d289f1966a090252539399c | 7,492 | py | Python | flask_halalchemy.py | jokull/flask-halalchemy | 661850dec2c24a1bd0fc70a60e6dda713d1ce8f0 | [
"BSD-3-Clause"
] | 2 | 2016-09-15T05:21:26.000Z | 2020-10-11T09:23:35.000Z | flask_halalchemy.py | jokull/flask-halalchemy | 661850dec2c24a1bd0fc70a60e6dda713d1ce8f0 | [
"BSD-3-Clause"
] | null | null | null | flask_halalchemy.py | jokull/flask-halalchemy | 661850dec2c24a1bd0fc70a60e6dda713d1ce8f0 | [
"BSD-3-Clause"
] | null | null | null | # encoding=utf-8
from flask import request, url_for, current_app, make_response
from flask.helpers import json
from flask.views import MethodView
from werkzeug.utils import cached_property
from dictshield.base import ShieldDocException
from dictshield.document import Document
_error_response_headers = {'Content-Typ... | 36.019231 | 115 | 0.639616 | 934 | 7,492 | 4.979657 | 0.25803 | 0.022361 | 0.0129 | 0.01204 | 0.089443 | 0.045582 | 0.019351 | 0.019351 | 0 | 0 | 0 | 0.003958 | 0.258142 | 7,492 | 207 | 116 | 36.193237 | 0.832854 | 0.036305 | 0 | 0.154472 | 0 | 0 | 0.064778 | 0.009563 | 0 | 0 | 0 | 0.004831 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a498b78d73d3bac1a4849187462c1ac3e673edb | 2,960 | py | Python | backend/apps/portfolio/views.py | MgArreaza13/wonderhumans | 865b65e4afa1ac32976a8c53959a7c58543dbe60 | [
"MIT"
] | null | null | null | backend/apps/portfolio/views.py | MgArreaza13/wonderhumans | 865b65e4afa1ac32976a8c53959a7c58543dbe60 | [
"MIT"
] | null | null | null | backend/apps/portfolio/views.py | MgArreaza13/wonderhumans | 865b65e4afa1ac32976a8c53959a7c58543dbe60 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.utils.translation import gettext as _
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework import status
from rest_framework impor... | 43.529412 | 85 | 0.790203 | 385 | 2,960 | 5.898701 | 0.220779 | 0.098635 | 0.112726 | 0.089828 | 0.607662 | 0.586526 | 0.586526 | 0.567151 | 0.547336 | 0.547336 | 0 | 0.018335 | 0.115541 | 2,960 | 68 | 86 | 43.529412 | 0.849121 | 0.034122 | 0 | 0.54386 | 0 | 0 | 0.031261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.192982 | 0 | 0.578947 | 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 |
9a4b9b1539e4043837112f86341a36af731afc2a | 1,251 | py | Python | travelling/migrations/0007_auto_20181211_2018.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | travelling/migrations/0007_auto_20181211_2018.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | travelling/migrations/0007_auto_20181211_2018.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-11 19:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travelling', '0006_auto_20181128_1524'),
]
operations = [
migrations.Alter... | 40.354839 | 273 | 0.593925 | 135 | 1,251 | 5.362963 | 0.540741 | 0.082873 | 0.103591 | 0.120166 | 0.425414 | 0.425414 | 0.425414 | 0.425414 | 0.309392 | 0.309392 | 0 | 0.039095 | 0.223022 | 1,251 | 30 | 274 | 41.7 | 0.705761 | 0.055156 | 0 | 0.26087 | 1 | 0 | 0.258694 | 0.019508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
9a552cc4ece677e2ddc85f02650fcaf417a62401 | 1,540 | py | Python | cgine/main/migrations/0002_choice_question_quiz.py | abdullahMosibah/cgine | 9543e2511751cee1e6f1cbdfd97dae2d97e05cc9 | [
"MIT"
] | 1 | 2021-12-16T11:15:38.000Z | 2021-12-16T11:15:38.000Z | cgine/main/migrations/0002_choice_question_quiz.py | abdullahMosibah/cgine | 9543e2511751cee1e6f1cbdfd97dae2d97e05cc9 | [
"MIT"
] | 4 | 2021-11-03T14:58:45.000Z | 2022-03-31T05:11:33.000Z | cgine/main/migrations/0002_choice_question_quiz.py | abdullahMosibah/cgine | 9543e2511751cee1e6f1cbdfd97dae2d97e05cc9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-06-09 14:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='quiz',
field... | 39.487179 | 159 | 0.58961 | 158 | 1,540 | 5.626582 | 0.367089 | 0.044994 | 0.062992 | 0.098988 | 0.559055 | 0.559055 | 0.559055 | 0.559055 | 0.559055 | 0.559055 | 0 | 0.016784 | 0.264935 | 1,540 | 38 | 160 | 40.526316 | 0.768551 | 0.029221 | 0 | 0.46875 | 1 | 0 | 0.113195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
9a5e7f3b980e2590d08c6608cc6b86a37030b173 | 2,201 | py | Python | redditapi.py | CVanchieri/FlaskApp-Template | 2f94563428def0cf3ca12afa81f314dfd42b362e | [
"MIT"
] | null | null | null | redditapi.py | CVanchieri/FlaskApp-Template | 2f94563428def0cf3ca12afa81f314dfd42b362e | [
"MIT"
] | 2 | 2021-06-01T01:39:22.000Z | 2021-06-01T01:39:23.000Z | redditapi.py | CVanchieri/FlaskApp-Template | 2f94563428def0cf3ca12afa81f314dfd42b362e | [
"MIT"
] | null | null | null | import requests
import regex as re
CLIENT_ID = 'T9wY5Ulq8tLW6w'
SECRET_KEY ='L7eznyEuLAotFRL_HADO0m9t6mg6WA'
auth = requests.auth.HTTPBasicAuth(CLIENT_ID, SECRET_KEY)
data = {
'grant_type': 'password',
'username': 'GnarlyCharley6',
'password': 'Charryn84',
}
headers = {'User-Agent': 'MyA... | 34.936508 | 83 | 0.580645 | 263 | 2,201 | 4.78327 | 0.315589 | 0.069952 | 0.038156 | 0.050079 | 0.163752 | 0.163752 | 0.09221 | 0.09221 | 0.09221 | 0.09221 | 0 | 0.013629 | 0.199909 | 2,201 | 63 | 84 | 34.936508 | 0.700738 | 0.472967 | 0 | 0 | 0 | 0 | 0.297587 | 0.02681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9a6024c42a7d99219c9faa608d7f445b92ddf8c5 | 198 | py | Python | leehao/learn7.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | 1 | 2020-02-26T14:52:17.000Z | 2020-02-26T14:52:17.000Z | leehao/learn7.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | leehao/learn7.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | # 列表 list
L1 = []
L2 = [1, 2, 3, 4]
L3 = ['1', 2, '3', 'hello']
L4 = [L1, L2, L3]
L4[2][3] = 'world'
# 通过迭代创建list
L5 = list(range(1, 11))
print(L4)
print(L5)
# 可加
print(L2 + L3)
# 可乘
print(L2 * 2)
| 12.375 | 27 | 0.505051 | 39 | 198 | 2.564103 | 0.487179 | 0.06 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0.227273 | 198 | 15 | 28 | 13.2 | 0.477124 | 0.121212 | 0 | 0 | 0 | 0 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a606003c928375219898f212b48f1fd2fa6bf0d | 370 | py | Python | kattis/tourdefrance.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | 2 | 2021-04-05T14:26:37.000Z | 2021-06-10T04:22:01.000Z | kattis/tourdefrance.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | kattis/tourdefrance.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | import sys
for i in sys.stdin:
if i.rstrip() == '0':
break
n, m = map(int, i.split())
f = sorted(list(map(int, input().split())))
r = sorted(list(map(int, input().split())))
ans, mx = [], 0
for j in f:
for k in r:
ans.append(k / j)
ans.sort()
for i in range(1, len(ans)):
mx = max(mx, ... | 21.764706 | 45 | 0.521622 | 68 | 370 | 2.838235 | 0.485294 | 0.093264 | 0.062176 | 0.165803 | 0.26943 | 0.26943 | 0 | 0 | 0 | 0 | 0 | 0.017986 | 0.248649 | 370 | 16 | 46 | 23.125 | 0.676259 | 0 | 0 | 0 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 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 |
9a610edf3a92bb05f9467c1b639e164cd2ea0d0f | 19,386 | py | Python | src/GOTM4.0/gui.py/visualizer.py | huyquangtranaus/schism | 077d2e71d5a5e4ed02a9dd4712eabc48f88b7477 | [
"Apache-2.0"
] | null | null | null | src/GOTM4.0/gui.py/visualizer.py | huyquangtranaus/schism | 077d2e71d5a5e4ed02a9dd4712eabc48f88b7477 | [
"Apache-2.0"
] | null | null | null | src/GOTM4.0/gui.py/visualizer.py | huyquangtranaus/schism | 077d2e71d5a5e4ed02a9dd4712eabc48f88b7477 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#$Id: visualizer.py,v 1.17 2007-04-13 12:40:08 jorn Exp $
from PyQt4 import QtGui,QtCore
import commonqt, data, report
import matplotlib
matplotlib.use('Qt4Agg')
matplotlib.rcParams['numerix'] = 'numeric'
import sys,datetime
import xml.sax
import os.path
def loadResult(path):
result = data.R... | 39.163636 | 249 | 0.653513 | 2,091 | 19,386 | 6.02439 | 0.208513 | 0.033024 | 0.036199 | 0.00643 | 0.360165 | 0.304676 | 0.239581 | 0.229578 | 0.211955 | 0.17004 | 0 | 0.009782 | 0.235376 | 19,386 | 494 | 250 | 39.242915 | 0.840046 | 0.04854 | 0 | 0.323288 | 0 | 0.008219 | 0.098562 | 0.009986 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016438 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9a6773b2b40a74b61b0d0fd1130514d20d8c6e9c | 2,385 | py | Python | ezidapp/models/statistics.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 9 | 2020-02-26T00:45:09.000Z | 2021-11-07T23:07:06.000Z | ezidapp/models/statistics.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 213 | 2020-04-07T21:36:17.000Z | 2022-03-29T21:26:04.000Z | ezidapp/models/statistics.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 7 | 2020-04-07T20:04:51.000Z | 2021-08-19T01:11:55.000Z | # =============================================================================
#
# EZID :: ezidapp/models/statistics.py
#
# Identifier statistics.
#
# Author:
# Greg Janee <gjanee@ucop.edu>
#
# License:
# Copyright (c) 2017, Regents of the University of California
# http://creativecommons.org/licenses/BSD/
#
# -... | 34.565217 | 79 | 0.657442 | 291 | 2,385 | 5.353952 | 0.412371 | 0.046213 | 0.080873 | 0.073813 | 0.331194 | 0.331194 | 0.269576 | 0.269576 | 0.227214 | 0.227214 | 0 | 0.009278 | 0.186583 | 2,385 | 68 | 80 | 35.073529 | 0.793814 | 0.568973 | 0 | 0.086957 | 0 | 0 | 0.029175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.608696 | 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 |
9a677a64e71a4d53ba4cb76126faa93db3d9e33f | 546 | py | Python | rcsystem/migrations/0025_auto_20200827_1328.py | perought/recommender-web-site | ce62c71ca86756cc2810966cacd0e4597918c7dd | [
"MIT"
] | null | null | null | rcsystem/migrations/0025_auto_20200827_1328.py | perought/recommender-web-site | ce62c71ca86756cc2810966cacd0e4597918c7dd | [
"MIT"
] | null | null | null | rcsystem/migrations/0025_auto_20200827_1328.py | perought/recommender-web-site | ce62c71ca86756cc2810966cacd0e4597918c7dd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-08-27 10:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rcsystem', '0024_newbooksrating'),
]
operations = [
migrations.AlterField(
model_name='newbooks... | 27.3 | 171 | 0.659341 | 65 | 546 | 5.415385 | 0.615385 | 0.068182 | 0.079545 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044393 | 0.216117 | 546 | 19 | 172 | 28.736842 | 0.778037 | 0.082418 | 0 | 0 | 1 | 0 | 0.158317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
9a7068fdd953f8ee5ce72fe7bca89dbdb33c684f | 365 | py | Python | running_modes/configurations/transfer_learning/adaptive_learning_rate_configuration.py | lilleswing/Reinvent-1 | ac4e3e6fa6379c6f4af883478dfd1b3407933ada | [
"Apache-2.0"
] | 183 | 2020-04-04T02:01:15.000Z | 2022-03-30T21:56:56.000Z | running_modes/configurations/transfer_learning/adaptive_learning_rate_configuration.py | prasannavd/Reinvent | ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616 | [
"MIT"
] | 39 | 2020-04-05T15:19:56.000Z | 2022-03-09T12:58:21.000Z | running_modes/configurations/transfer_learning/adaptive_learning_rate_configuration.py | prasannavd/Reinvent | ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616 | [
"MIT"
] | 70 | 2020-04-05T19:25:43.000Z | 2022-02-22T12:04:39.000Z | from dataclasses import dataclass
@dataclass
class AdaptiveLearningRateConfiguration:
mode: str = "constant"
gamma: float = 0.8
step: int = 1
start: float = 5E-4
min: float = 1E-5
threshold: float = 1E-4
average_steps: int = 4
patience: int = 8
restart_value: float = 1E-5
sampl... | 21.470588 | 40 | 0.649315 | 49 | 365 | 4.755102 | 0.653061 | 0.090129 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063433 | 0.265753 | 365 | 16 | 41 | 22.8125 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0.021918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.928571 | 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 |
7bd1fee492a8bb45f8e5441d46ac0f07df80a308 | 559 | py | Python | oosc/oosc/subcounty/migrations/0002_auto_20170822_1826.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | oosc/oosc/subcounty/migrations/0002_auto_20170822_1826.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | oosc/oosc/subcounty/migrations/0002_auto_20170822_1826.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-22 15:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('subcounty', '0001_initial'),
]
operations = [
... | 25.409091 | 133 | 0.65653 | 62 | 559 | 5.774194 | 0.677419 | 0.067039 | 0.078212 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.221825 | 559 | 21 | 134 | 26.619048 | 0.777011 | 0.118068 | 0 | 0 | 1 | 0 | 0.130612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 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 |
7bd455b212dd65ba1c6828247c061721a639fff8 | 620 | py | Python | python/002-sum-of-even-fibonacci-numbers.py | jennings/project-euler | 14a210818d3f3df15b0464460abdd1a86b7648a6 | [
"MIT"
] | null | null | null | python/002-sum-of-even-fibonacci-numbers.py | jennings/project-euler | 14a210818d3f3df15b0464460abdd1a86b7648a6 | [
"MIT"
] | null | null | null | python/002-sum-of-even-fibonacci-numbers.py | jennings/project-euler | 14a210818d3f3df15b0464460abdd1a86b7648a6 | [
"MIT"
] | null | null | null | # Each new term in the Fibonacci sequence is generated by adding
# the previous two terms. By starting with 1 and 2, the first 10
# terms will be:
#
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
#
# By considering the terms in the Fibonacci sequence whose values
# do not exceed four million, find the sum of the even-valu... | 24.8 | 68 | 0.629032 | 105 | 620 | 3.590476 | 0.561905 | 0.055703 | 0.095491 | 0.116711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067834 | 0.262903 | 620 | 24 | 69 | 25.833333 | 0.757112 | 0.504839 | 0 | 0 | 1 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bd59691fd9239d5782930e05e642c8a8bbe3995 | 569 | py | Python | runserver.py | deepakkumar1984/ml-api | 8d09e9ef99c39838cd2f2db1e70226b8d6cbc77e | [
"MIT"
] | 60 | 2017-08-17T11:24:16.000Z | 2019-02-13T02:09:24.000Z | runserver.py | deepakkumar1984/ml-api | 8d09e9ef99c39838cd2f2db1e70226b8d6cbc77e | [
"MIT"
] | null | null | null | runserver.py | deepakkumar1984/ml-api | 8d09e9ef99c39838cd2f2db1e70226b8d6cbc77e | [
"MIT"
] | 35 | 2017-09-27T03:02:23.000Z | 2019-04-25T20:50:43.000Z | """
This script runs the SiaWizard application using a development server.
"""
from os import environ
from Interface import app, projectmodels, logmodels
import mlapi
import visionapi
import botapi
import intentapi
import siacogapi
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', '0.0.0.0')
try:
... | 21.884615 | 70 | 0.692443 | 72 | 569 | 5.305556 | 0.625 | 0.015707 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048458 | 0.202109 | 569 | 25 | 71 | 22.76 | 0.792952 | 0.123023 | 0 | 0 | 0 | 0 | 0.120408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 |
7bd61e85a3f232ee6e1844434fe3d972f761466a | 2,800 | py | Python | minipj1/mongodb.py | huangluyang001/EC601-project | 8d09bbb8987fd2004a8cae053d0d0f6f3796b827 | [
"MIT"
] | 1 | 2018-09-17T21:44:06.000Z | 2018-09-17T21:44:06.000Z | minipj1/mongodb.py | huangluyang001/EC601-project | 8d09bbb8987fd2004a8cae053d0d0f6f3796b827 | [
"MIT"
] | 2 | 2018-09-19T05:08:41.000Z | 2018-10-13T03:04:18.000Z | minipj1/mongodb.py | huangluyang001/EC601-project | 8d09bbb8987fd2004a8cae053d0d0f6f3796b827 | [
"MIT"
] | 1 | 2018-09-19T04:55:34.000Z | 2018-09-19T04:55:34.000Z | from pymongo import MongoClient
import getpass
import time
import MakeVideo, tweet, visiondetection
import argparse
# This code can generate video as well as saving data in mongodb
# data format
# 'user_name': user's name,
# 'use_time': time using(local time),
# 'keyword': search keyword,
# 'picture_counts': picture ... | 35 | 155 | 0.676786 | 380 | 2,800 | 4.881579 | 0.371053 | 0.029111 | 0.054987 | 0.021563 | 0.058221 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011858 | 0.186786 | 2,800 | 79 | 156 | 35.443038 | 0.802811 | 0.1525 | 0 | 0 | 1 | 0 | 0.198217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035088 | 0.087719 | 0 | 0.087719 | 0.035088 | 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 |
7bd74fb4a91ba05cb9f1820712334d173bbf02d9 | 528 | py | Python | photomatic/tasks.py | dynamicguy/photomatic | 649c36712372f1bbb9bc44691ea824d3cff780e4 | [
"MIT"
] | null | null | null | photomatic/tasks.py | dynamicguy/photomatic | 649c36712372f1bbb9bc44691ea824d3cff780e4 | [
"MIT"
] | null | null | null | photomatic/tasks.py | dynamicguy/photomatic | 649c36712372f1bbb9bc44691ea824d3cff780e4 | [
"MIT"
] | null | null | null | __author__ = 'ferdous'
import celery
from celery.task import PeriodicTask
from datetime import timedelta, datetime
from celery.utils.log import get_task_logger
logger = get_task_logger(__name__)
@celery.task
class AlbumTask(PeriodicTask):
"""
A periodic task that import photos from facebook
"""
r... | 22 | 56 | 0.710227 | 65 | 528 | 5.569231 | 0.584615 | 0.055249 | 0.071823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007126 | 0.202652 | 528 | 23 | 57 | 22.956522 | 0.852732 | 0.090909 | 0 | 0 | 0 | 0 | 0.139738 | 0.056769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7bd9a419d3e0d4352d8d4bfdaff77cca2bfc54f3 | 992 | py | Python | Firewall/root.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 2 | 2015-05-12T22:11:19.000Z | 2019-04-02T01:36:03.000Z | Firewall/root.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 1 | 2021-08-10T06:59:53.000Z | 2021-08-10T06:59:53.000Z | Firewall/root.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 3 | 2015-08-18T08:45:02.000Z | 2021-08-10T07:00:18.000Z | from Tkinter import *
from menu import *
from dock import *
from tab import *
import sys
import copyright
import credit
import help
import interfaces
import xtra
class GUI(Tk):
def __init__(self):
Tk.__init__(self)
self.win()
def win(self):
self.resizable(0,0)
self.title("F... | 13.777778 | 39 | 0.642137 | 136 | 992 | 4.625 | 0.338235 | 0.076312 | 0.062003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005284 | 0.236895 | 992 | 71 | 40 | 13.971831 | 0.825627 | 0.045363 | 0 | 0 | 0 | 0 | 0.012725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.243902 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bdd42d6572c4f10db73b5ab24af48a322778d8c | 523 | py | Python | MediaManage/source/_licensed/rebulk/remodule.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 55 | 2015-10-29T17:25:43.000Z | 2022-01-16T02:51:37.000Z | MediaManage/source/_licensed/rebulk/remodule.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 18 | 2015-10-20T07:26:12.000Z | 2021-12-07T19:42:24.000Z | MediaManage/source/_licensed/rebulk/remodule.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 9 | 2015-12-20T15:16:08.000Z | 2021-11-12T17:53:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Uniform re module
"""
# pylint: disable-all
import os
import logging
log = logging.getLogger(__name__).log
REGEX_ENABLED = False
if os.environ.get('REBULK_REGEX_ENABLED') in ["1", "true", "True", "Y"]:
try:
import regex as re
REGEX_ENABLED = True
... | 23.772727 | 141 | 0.674952 | 72 | 523 | 4.763889 | 0.638889 | 0.139942 | 0.104956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.208413 | 523 | 21 | 142 | 24.904762 | 0.823672 | 0.152964 | 0 | 0.153846 | 0 | 0 | 0.341801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7be04bb1a8b317a4309c42352cc483ad6f6432d8 | 430 | py | Python | tests/test_auth.py | elisoncrum/is-it-down | 204cc5a2c2a715544a252cb469fa065c5b66577d | [
"MIT"
] | 9 | 2022-01-30T03:59:38.000Z | 2022-02-08T18:14:32.000Z | tests/test_auth.py | elisoncrum/is-it-down | 204cc5a2c2a715544a252cb469fa065c5b66577d | [
"MIT"
] | 3 | 2022-01-30T22:58:13.000Z | 2022-02-01T17:03:20.000Z | tests/test_auth.py | elisoncrum/is-it-down | 204cc5a2c2a715544a252cb469fa065c5b66577d | [
"MIT"
] | null | null | null | from flask import request
from flask import current_app
from fixtures import client
def test_index(client):
response = client.get("/auth/login", follow_redirects=True)
assert request.base_url == current_app.config["UAA_AUTHORIZE_URI"]
response = client.post(
request.base_url,
data={
... | 22.631579 | 70 | 0.639535 | 49 | 430 | 5.428571 | 0.632653 | 0.067669 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 430 | 18 | 71 | 23.888889 | 0.83125 | 0 | 0 | 0 | 0 | 0 | 0.125581 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7be64a65f25b83ee4050dafe26166bd6aa95c0fd | 3,600 | py | Python | routes/auth.py | nozomu-y/kleines-mypage-api | 26beba3a316585dd737e915200d7027595a07bf6 | [
"MIT"
] | null | null | null | routes/auth.py | nozomu-y/kleines-mypage-api | 26beba3a316585dd737e915200d7027595a07bf6 | [
"MIT"
] | null | null | null | routes/auth.py | nozomu-y/kleines-mypage-api | 26beba3a316585dd737e915200d7027595a07bf6 | [
"MIT"
] | null | null | null | from flask import request
from flask_restx import Resource, fields, Namespace
import jwt
import datetime
import functools
from models import Users, Admins
import subprocess
import os
from os.path import join, dirname
from dotenv import load_dotenv
from conf import const
load_dotenv(verbose=True)
dotenv_path = join(dir... | 34.951456 | 104 | 0.607222 | 419 | 3,600 | 5.097852 | 0.336516 | 0.02809 | 0.052434 | 0.06367 | 0.163858 | 0.124064 | 0.110487 | 0.089888 | 0.089888 | 0.050562 | 0 | 0.016749 | 0.270278 | 3,600 | 102 | 105 | 35.294118 | 0.796346 | 0.014167 | 0 | 0.172043 | 0 | 0 | 0.132262 | 0.01269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.075269 | 0.11828 | 0 | 0.27957 | 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 |
7beb077ec0d902dd1e9bf50b526beb965da66c49 | 21,630 | py | Python | tools/gnnModules.py | AndySAnker/CVAE | cb52cee33b33659d6721e6263a97e8bae01939ff | [
"Apache-2.0"
] | 3 | 2022-03-04T12:36:59.000Z | 2022-03-12T13:39:12.000Z | tools/gnnModules.py | AndyNano/CVAE | cb52cee33b33659d6721e6263a97e8bae01939ff | [
"Apache-2.0"
] | null | null | null | tools/gnnModules.py | AndyNano/CVAE | cb52cee33b33659d6721e6263a97e8bae01939ff | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import pdb, time
from torch.autograd import Variable
torch.manual_seed(12)
SIGMA = 1
EPSILON = 1e-5
class GatedConv1d(nn.Module):
def __init__(self, input_channels, output_channels,
kernel_size, stride, pad... | 33.534884 | 89 | 0.569718 | 2,842 | 21,630 | 4.188248 | 0.091837 | 0.031589 | 0.030244 | 0.015122 | 0.747795 | 0.714778 | 0.675544 | 0.657145 | 0.613291 | 0.591616 | 0 | 0.025349 | 0.306935 | 21,630 | 645 | 90 | 33.534884 | 0.768661 | 0.180213 | 0 | 0.521053 | 0 | 0 | 0.000711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107895 | false | 0 | 0.015789 | 0.002632 | 0.236842 | 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 |
7bede83f9627df7d0345943b0a7730e2ac627d00 | 381 | py | Python | Counselor/migrations/0003_link_title.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | Counselor/migrations/0003_link_title.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | Counselor/migrations/0003_link_title.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-03 05:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Counselor', '0002_link'),
]
operations = [
migrations.AddField(
model_name='link',
name='title',
field=m... | 20.052632 | 62 | 0.585302 | 42 | 381 | 5.238095 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081784 | 0.293963 | 381 | 18 | 63 | 21.166667 | 0.736059 | 0.11811 | 0 | 0 | 1 | 0 | 0.080838 | 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 |
7bfa6a31bdf70c0ed44e2c375643c6c94ea1c95e | 1,005 | py | Python | meregistro/apps/seguridad/forms/RolForm.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/seguridad/forms/RolForm.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/seguridad/forms/RolForm.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | from django.forms import ModelForm
from django import forms
from apps.seguridad.models import Rol, Credencial, TipoAmbito
class RolForm(ModelForm):
credenciales = forms.ModelMultipleChoiceField(queryset=Credencial.objects.all().order_by('descripcion'), widget=forms.CheckboxSelectMultiple, required=False)
role... | 43.695652 | 171 | 0.736318 | 109 | 1,005 | 6.605505 | 0.440367 | 0.038889 | 0.1 | 0.070833 | 0.308333 | 0.308333 | 0.308333 | 0.308333 | 0.308333 | 0.308333 | 0 | 0 | 0.144279 | 1,005 | 22 | 172 | 45.681818 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.068657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 |
7bfd9c8f1fcf2e3d08ea886fa6bccad7fab1fc9a | 579 | py | Python | tests/test_uwcoursesearchpages.py | ConMur/UWCourseSearch | ecd5005e7a2a153fe02c015893910a4e60899770 | [
"MIT"
] | null | null | null | tests/test_uwcoursesearchpages.py | ConMur/UWCourseSearch | ecd5005e7a2a153fe02c015893910a4e60899770 | [
"MIT"
] | null | null | null | tests/test_uwcoursesearchpages.py | ConMur/UWCourseSearch | ecd5005e7a2a153fe02c015893910a4e60899770 | [
"MIT"
] | null | null | null | from uwcoursesearch import app
import pytest
@pytest.fixture
def test_app():
app.testing = True
return app.test_client()
def test_homepage(test_app):
rv = test_app.get('/')
assert b"UWCourseSearch" in rv.data
def test_searchpage(test_app):
rv = test_app.get('/search')
assert b"Search" in rv... | 23.16 | 85 | 0.692573 | 91 | 579 | 4.285714 | 0.395604 | 0.125641 | 0.123077 | 0.1 | 0.307692 | 0.097436 | 0 | 0 | 0 | 0 | 0 | 0.014737 | 0.17962 | 579 | 24 | 86 | 24.125 | 0.806316 | 0 | 0 | 0 | 0 | 0 | 0.132988 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 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 |
d00aab3a23d9586e7cad1c84cf411f13f2d06ead | 3,539 | py | Python | odata/urls.py | krishnaansh/djongo-mongo | af0afd7a9028b91eeca520c4c558c026a92971ac | [
"MIT"
] | 1 | 2021-03-17T21:37:53.000Z | 2021-03-17T21:37:53.000Z | odata/urls.py | krishnaansh/djongo-mongo | af0afd7a9028b91eeca520c4c558c026a92971ac | [
"MIT"
] | null | null | null | odata/urls.py | krishnaansh/djongo-mongo | af0afd7a9028b91eeca520c4c558c026a92971ac | [
"MIT"
] | 1 | 2021-03-02T19:35:18.000Z | 2021-03-02T19:35:18.000Z | from .sitemaps import *
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.sitemaps.views import sitemap
from django.urls import path, include
from rest_framework import routers
from rest_framework.routers import SimpleRouter, Route
from odata.views.apis import (
Produc... | 29.008197 | 83 | 0.657813 | 331 | 3,539 | 6.945619 | 0.311178 | 0.085254 | 0.091344 | 0.040017 | 0.137886 | 0.044367 | 0.044367 | 0.044367 | 0.044367 | 0 | 0 | 0 | 0.209381 | 3,539 | 121 | 84 | 29.247934 | 0.821658 | 0.08703 | 0 | 0.267327 | 0 | 0 | 0.176964 | 0.050916 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.089109 | 0.09901 | 0 | 0.118812 | 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 |
d00de4e1c5c18afcf3b309f3e2ad7fe8ba004ce4 | 136 | py | Python | variant.py | CustomPoint/py-comix | b2102cbd554027f1b81726999a96ab2ed983a986 | [
"Apache-2.0"
] | null | null | null | variant.py | CustomPoint/py-comix | b2102cbd554027f1b81726999a96ab2ed983a986 | [
"Apache-2.0"
] | null | null | null | variant.py | CustomPoint/py-comix | b2102cbd554027f1b81726999a96ab2ed983a986 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from enum import Enum
class Variant(Enum):
RU = 1
TO = 2
MA = 3
GR = 4
| 11.333333 | 23 | 0.522059 | 22 | 136 | 3.227273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.323529 | 136 | 11 | 24 | 12.363636 | 0.717391 | 0.308824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d00f3b1507e9f50426299ee6157517e1dbcd6c48 | 24,194 | py | Python | protocol/zzz_perception_msgs/msg/_TrackingBox.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | null | null | null | protocol/zzz_perception_msgs/msg/_TrackingBox.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | null | null | null | protocol/zzz_perception_msgs/msg/_TrackingBox.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | 1 | 2020-12-19T05:48:01.000Z | 2020-12-19T05:48:01.000Z | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from zzz_perception_msgs/TrackingBox.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import zzz_perception_msgs.msg
import geometry_msgs.msg
class TrackingBox(genpy.Messa... | 41.286689 | 307 | 0.636067 | 3,204 | 24,194 | 4.621723 | 0.1598 | 0.034576 | 0.025257 | 0.024581 | 0.560238 | 0.551931 | 0.528701 | 0.519111 | 0.505335 | 0.490478 | 0 | 0.039632 | 0.218856 | 24,194 | 585 | 308 | 41.357265 | 0.743902 | 0.053402 | 0 | 0.561224 | 1 | 0.012245 | 0.43256 | 0.095138 | 0 | 0 | 0.013189 | 0 | 0 | 1 | 0.028571 | false | 0.002041 | 0.010204 | 0 | 0.07551 | 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 |
d011c17ca4f614e92f52d651670648921ad312f1 | 2,113 | py | Python | DictionaryMaintainer.py | Sayeedsalam/political-actor-recommender | 20dbc37ac419e4ecd5436d4e5b9685846639b2bc | [
"MIT"
] | 1 | 2018-03-15T09:48:28.000Z | 2018-03-15T09:48:28.000Z | DictionaryMaintainer.py | Sayeedsalam/political-actor-recommender | 20dbc37ac419e4ecd5436d4e5b9685846639b2bc | [
"MIT"
] | null | null | null | DictionaryMaintainer.py | Sayeedsalam/political-actor-recommender | 20dbc37ac419e4ecd5436d4e5b9685846639b2bc | [
"MIT"
] | null | null | null | import requests
import shutil
import schedule
import datetime
import time
def download():
params = {"secret-key": "mySecretKey"}
url = "http://104.198.76.143:8080/dictionary/downloadDictionary"
local_filename = url.split('/')[-1] + ".txt"
r = requests.get(url, headers=params, stream=True)
with open... | 31.073529 | 104 | 0.536204 | 243 | 2,113 | 4.572016 | 0.374486 | 0.072007 | 0.081008 | 0.045905 | 0.258326 | 0.258326 | 0.258326 | 0.258326 | 0.258326 | 0.258326 | 0 | 0.023416 | 0.312825 | 2,113 | 68 | 105 | 31.073529 | 0.741736 | 0 | 0 | 0.237288 | 0 | 0 | 0.11211 | 0.031693 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d020b5a45b9ecdf882085aed2d50cca7ab499fbb | 496 | py | Python | djangorpc/datastructures.py | Alerion/django-rpc | 0df5a0434e850e329700661c1d7510b39422c9cb | [
"MIT"
] | 12 | 2015-04-17T11:50:16.000Z | 2020-04-03T16:25:06.000Z | djangorpc/datastructures.py | Alerion/Django-RPC | 0df5a0434e850e329700661c1d7510b39422c9cb | [
"MIT"
] | 1 | 2016-11-11T12:12:05.000Z | 2016-11-11T12:37:58.000Z | djangorpc/datastructures.py | Alerion/Django-RPC | 0df5a0434e850e329700661c1d7510b39422c9cb | [
"MIT"
] | 4 | 2016-01-09T17:47:42.000Z | 2017-05-21T12:55:58.000Z | from __future__ import unicode_literals
from django.utils.datastructures import MultiValueDict
class RpcMultiValueDict(MultiValueDict):
"""
Just allow pass not list values and get only dict as argument
"""
def __init__(self, key_to_list_mapping={}):
for key, value in key_to_list_mapping.item... | 29.176471 | 65 | 0.701613 | 62 | 496 | 5.209677 | 0.596774 | 0.06192 | 0.111455 | 0.198142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215726 | 496 | 16 | 66 | 31 | 0.830334 | 0.122984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
d021a8d506318aa0adac925dba0c7ec8cf079590 | 790 | py | Python | tests/test_init_functions.py | eplaut/python-butler | eeb336b7135b4cf019489a31872d30b0a003c4bc | [
"Apache-2.0"
] | 1 | 2018-06-04T23:56:15.000Z | 2018-06-04T23:56:15.000Z | tests/test_init_functions.py | eplaut/python-butler | eeb336b7135b4cf019489a31872d30b0a003c4bc | [
"Apache-2.0"
] | 20 | 2016-06-16T19:07:10.000Z | 2017-04-09T12:50:11.000Z | tests/test_init_functions.py | eplaut/python-butler | eeb336b7135b4cf019489a31872d30b0a003c4bc | [
"Apache-2.0"
] | 2 | 2016-06-22T15:49:45.000Z | 2017-01-03T09:00:50.000Z | from __future__ import absolute_import
from .fixtures import ButlerTest
def test_init_server():
butler_server = ButlerTest.Server('http://localhost:8888', 'a', 'b', 'c', x=1, y=2, z=3)
assert butler_server.butler._check_args == ('a', 'b', 'c')
assert butler_server.butler._check_kwargs == {'x': 1, 'y': 2, ... | 41.578947 | 92 | 0.687342 | 123 | 790 | 4.130081 | 0.252033 | 0.188976 | 0.023622 | 0.031496 | 0.610236 | 0.476378 | 0.476378 | 0.476378 | 0.38189 | 0.38189 | 0 | 0.029851 | 0.151899 | 790 | 18 | 93 | 43.888889 | 0.728358 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0231afe20a33774afadfa903448f23f5a613d43 | 1,566 | py | Python | results/plot_test1.py | OxfordSKA/FSCN | fc7b01f989553158b3b4d4b66f973cf0f9387998 | [
"BSD-3-Clause"
] | null | null | null | results/plot_test1.py | OxfordSKA/FSCN | fc7b01f989553158b3b4d4b66f973cf0f9387998 | [
"BSD-3-Clause"
] | null | null | null | results/plot_test1.py | OxfordSKA/FSCN | fc7b01f989553158b3b4d4b66f973cf0f9387998 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.ticker import FormatStrFormatter
def main():
df = pd.read_csv('test1.txt', delim_whitespace=Tr... | 34.8 | 75 | 0.642401 | 225 | 1,566 | 4.311111 | 0.453333 | 0.041237 | 0.061856 | 0.026804 | 0.214433 | 0.214433 | 0.129897 | 0.129897 | 0.057732 | 0 | 0 | 0.039063 | 0.182631 | 1,566 | 44 | 76 | 35.590909 | 0.71875 | 0.036398 | 0 | 0.055556 | 0 | 0 | 0.13745 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.166667 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d028a6c6e81fc3df5a2c6919191ed8b6dfaf3a2f | 1,184 | py | Python | eyesore/decision_graph/compacting/_0_decision_node_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-11-07T02:55:40.000Z | 2021-12-30T01:37:43.000Z | eyesore/decision_graph/compacting/_0_decision_node_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | null | null | null | eyesore/decision_graph/compacting/_0_decision_node_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-09-27T12:01:50.000Z | 2019-10-09T21:39:52.000Z | from .. import SuccessorsNode, SuccessorNode, DecisionNode, DecisionNotTakenNode
from ..visitor import Visitor
class DecisionNodeCompacter(Visitor):
def _visit_successors_node(self, node, results):
"""
:param node:
:type node: SuccessorsNode
:return:
"""
sat_succs ... | 32.888889 | 99 | 0.625845 | 122 | 1,184 | 5.868852 | 0.344262 | 0.044693 | 0.03352 | 0.047486 | 0.170391 | 0.170391 | 0.170391 | 0 | 0 | 0 | 0 | 0.001199 | 0.295608 | 1,184 | 35 | 100 | 33.828571 | 0.857314 | 0.081081 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d031e554abc68b3090d4e83d02c2d6a8675c3242 | 311 | py | Python | 11-logical_operators.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | 11-logical_operators.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | 11-logical_operators.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | has_high_income = True
has_good_credit = True
has_criminal_record = False
if has_high_income and has_good_credit:
print("Eligible for loan")
if has_high_income or has_good_credit:
print("Eligible for consultation")
if has_good_credit and not has_criminal_record:
print("Eligible for credit card") | 25.916667 | 47 | 0.794212 | 50 | 311 | 4.58 | 0.38 | 0.122271 | 0.227074 | 0.131004 | 0.253275 | 0.253275 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14791 | 311 | 12 | 48 | 25.916667 | 0.864151 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
d03388f69e82d9896baeb289121e5e2f7cee5b70 | 2,401 | py | Python | hc/front/tests/test_update_priority.py | andela/hc-aces-kla- | f07136055f73ad6221619aaa7c7e1eef55446d4c | [
"BSD-3-Clause"
] | null | null | null | hc/front/tests/test_update_priority.py | andela/hc-aces-kla- | f07136055f73ad6221619aaa7c7e1eef55446d4c | [
"BSD-3-Clause"
] | 26 | 2018-06-23T18:00:44.000Z | 2018-07-23T17:58:24.000Z | hc/front/tests/test_update_priority.py | andela/hc-aces-kla | f07136055f73ad6221619aaa7c7e1eef55446d4c | [
"BSD-3-Clause"
] | null | null | null | from hc.api.models import Check
from hc.test import BaseTestCase
class UpdatePriorityTestCase(BaseTestCase):
def setUp(self):
super(UpdatePriorityTestCase, self).setUp()
self.check = Check(user=self.alice)
self.check.save()
def test_priority_is_updated(self):
"""
test... | 32.890411 | 78 | 0.618909 | 283 | 2,401 | 5.180212 | 0.318021 | 0.068213 | 0.044338 | 0.078445 | 0.4809 | 0.4809 | 0.461801 | 0.461801 | 0.461801 | 0.377899 | 0 | 0.015634 | 0.254061 | 2,401 | 72 | 79 | 33.347222 | 0.802903 | 0.109954 | 0 | 0.4 | 0 | 0 | 0.166337 | 0.039604 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0.125 | 0.05 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d03ae09d39fde389527ef8973ede8581ea8e11f5 | 1,595 | py | Python | app/main/views.py | jmeydam/alternative-destinations | dec000db45a8005ff5408bc9756ea13f821b52f1 | [
"MIT"
] | null | null | null | app/main/views.py | jmeydam/alternative-destinations | dec000db45a8005ff5408bc9756ea13f821b52f1 | [
"MIT"
] | 1 | 2019-10-24T19:10:11.000Z | 2019-10-25T11:19:44.000Z | app/main/views.py | jmeydam/alternative-destinations | dec000db45a8005ff5408bc9756ea13f821b52f1 | [
"MIT"
] | null | null | null | from flask import render_template, session, redirect, url_for
from ..models import Destination
from . import main
from .forms import ParameterForm
@main.route('/', methods=['GET', 'POST'])
def index():
form = ParameterForm()
if form.validate_on_submit():
#print(dir(form))
#{'iata_code': 'TLV',... | 55 | 278 | 0.694671 | 205 | 1,595 | 5.15122 | 0.341463 | 0.204545 | 0.119318 | 0.0625 | 0.413826 | 0.291667 | 0.185606 | 0.185606 | 0.185606 | 0.185606 | 0 | 0.042601 | 0.161129 | 1,595 | 28 | 279 | 56.964286 | 0.746637 | 0.462069 | 0 | 0 | 0 | 0 | 0.154481 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d03da8fca02c74e49b899eded0656ab7c25e7fe6 | 5,380 | py | Python | eventex/subscriptions/tests.py | monysmartins/eventex | 52cd6c9ee64a77a3fd59501fa3e513e8fb597392 | [
"MIT"
] | 1 | 2019-10-31T20:02:32.000Z | 2019-10-31T20:02:32.000Z | eventex/subscriptions/tests.py | monysmartins/eventex | 52cd6c9ee64a77a3fd59501fa3e513e8fb597392 | [
"MIT"
] | 4 | 2020-06-06T00:24:32.000Z | 2022-02-10T12:20:17.000Z | eventex/subscriptions/tests.py | monysmartins/eventex | 52cd6c9ee64a77a3fd59501fa3e513e8fb597392 | [
"MIT"
] | 1 | 2020-08-30T20:01:04.000Z | 2020-08-30T20:01:04.000Z | from unittest.mock import Mock
from django.core import mail
from django.test import TestCase
from eventex.subscriptions.forms import SubscriptionForm
from eventex.subscriptions.model import Subscription
from django.shortcuts import resolve_url as r
from eventex.subscriptions.admin import SubscriptionModelAdmin, admin
... | 35.629139 | 115 | 0.672305 | 621 | 5,380 | 5.702093 | 0.228663 | 0.043491 | 0.043491 | 0.059305 | 0.475854 | 0.359221 | 0.3146 | 0.3146 | 0.273934 | 0.273934 | 0 | 0.02584 | 0.208736 | 5,380 | 150 | 116 | 35.866667 | 0.805967 | 0.074535 | 0 | 0.295238 | 0 | 0 | 0.130408 | 0.04997 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.390476 | 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 |
d0400c64e5fd6b0bade3d2b8c716d32965a25ee1 | 234 | py | Python | python/factors-number/using_for_loop.py | codevscolor/codevscolor | 35ef9042bdc86f45ef87795c35963b75fb64d5d7 | [
"Apache-2.0"
] | 6 | 2019-04-26T03:11:54.000Z | 2021-05-07T21:48:29.000Z | python/factors-number/using_for_loop.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | null | null | null | python/factors-number/using_for_loop.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | 26 | 2019-02-23T14:50:46.000Z | 2022-02-04T23:44:24.000Z | #1
def print_factors(n):
#2
for i in range(1, n+1):
#3
if n % i == 0:
print(i)
#4
number = int(input("Enter a number : "))
#5
print("The factors for {} are : ".format(number))
print_factors(number)
| 18 | 49 | 0.534188 | 38 | 234 | 3.236842 | 0.605263 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.299145 | 234 | 12 | 50 | 19.5 | 0.70122 | 0.021368 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d040b5c78ae1cca6649351346e26ed5154bc4009 | 435 | py | Python | ex053.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | ex053.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | ex053.py | natancordeiro/python | a4b82847640bd7d2f8ed9aff83a9afabe57bc37d | [
"MIT"
] | null | null | null | print('\033[34m-='*20)
print(' DETECTOR DE PALÍDROMO')
print('-='*20, '\033[m')
fr = str(input('Qual frase deseja verificar: ')).strip().upper()
palavra = fr.split()
junto = ''.join(palavra)
inverso = ''
for letra in range(len(junto) -1, -1, -1):
inverso += junto[letra]
print('O inverso de {} é {}'.format(ju... | 31.071429 | 64 | 0.622989 | 63 | 435 | 4.301587 | 0.587302 | 0.01476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.165517 | 435 | 14 | 65 | 31.071429 | 0.705234 | 0 | 0 | 0 | 0 | 0 | 0.325688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d045b7f7c5ef9776f0329dda06a8dbd2aa071360 | 1,651 | py | Python | day2 labs.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | day2 labs.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | day2 labs.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> my_age=15
>>> print('i am' + my_age + 'years old')
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
print('i am' + my_age + 'years old')
TypeError: mus... | 29.482143 | 64 | 0.634161 | 275 | 1,651 | 3.749091 | 0.261818 | 0.082444 | 0.116392 | 0.151309 | 0.721629 | 0.673133 | 0.592629 | 0.482056 | 0.482056 | 0.482056 | 0 | 0.040059 | 0.183525 | 1,651 | 55 | 65 | 30.018182 | 0.724777 | 0 | 0 | 0.472727 | 0 | 0 | 0.175651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d055773c6dbc37484cb4be71f640c5dc2f469895 | 1,358 | py | Python | bespin/settings.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | null | null | null | bespin/settings.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 137 | 2016-12-09T18:59:45.000Z | 2021-06-10T18:55:47.000Z | bespin/settings.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 3 | 2017-11-14T16:05:58.000Z | 2018-12-28T18:07:43.000Z | """
Django settings for bespin project.
Generated by 'django-admin startproject' using Django 1.10.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | 25.622642 | 86 | 0.715022 | 193 | 1,358 | 4.906736 | 0.606218 | 0.012672 | 0.069694 | 0.079197 | 0.124604 | 0.124604 | 0.124604 | 0.124604 | 0.086589 | 0 | 0 | 0.031524 | 0.159057 | 1,358 | 52 | 87 | 26.115385 | 0.797723 | 0.472754 | 0 | 0 | 1 | 0 | 0.358974 | 0.190883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.12 | 0 | 0.12 | 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 |
d05da3ba73dae488c5717da91963a1e609526792 | 5,089 | py | Python | tests/mocks.py | wugui2020/HTTP_Request_Randomizer | 77355a5ed31203e8d5350e8c804d7c72a0c6c109 | [
"MIT"
] | null | null | null | tests/mocks.py | wugui2020/HTTP_Request_Randomizer | 77355a5ed31203e8d5350e8c804d7c72a0c6c109 | [
"MIT"
] | null | null | null | tests/mocks.py | wugui2020/HTTP_Request_Randomizer | 77355a5ed31203e8d5350e8c804d7c72a0c6c109 | [
"MIT"
] | null | null | null | from httmock import urlmatch
free_proxy_expected = ['138.197.136.46:3128', '177.207.75.227:8080']
proxy_for_eu_expected = ['107.151.136.222:80', '37.187.253.39:8115']
rebro_weebly_expected = ['213.149.105.12:8080', '119.188.46.42:8080']
samair_expected = ['191.252.61.28:80', '167.114.203.141:8080', '152.251.141.93:80... | 27.069149 | 160 | 0.539792 | 788 | 5,089 | 3.464467 | 0.246193 | 0.060073 | 0.034799 | 0.071429 | 0.456777 | 0.294872 | 0.243223 | 0.143956 | 0.132234 | 0.121612 | 0 | 0.091365 | 0.217135 | 5,089 | 187 | 161 | 27.213904 | 0.593876 | 0 | 0 | 0.471264 | 0 | 0.08046 | 0.90843 | 0.206524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.005747 | 0.022989 | 0.051724 | 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 |
d05ec91eaf914faa5a92ce32e5556d8b8a0c4158 | 4,612 | py | Python | sdk/python/pulumi_aws/connect/get_lambda_function_association.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/connect/get_lambda_function_association.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/connect/get_lambda_function_association.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 38.115702 | 175 | 0.694709 | 521 | 4,612 | 5.900192 | 0.261036 | 0.06799 | 0.073195 | 0.063761 | 0.471373 | 0.393624 | 0.341249 | 0.307092 | 0.292128 | 0.292128 | 0 | 0.014139 | 0.21791 | 4,612 | 120 | 176 | 38.433333 | 0.838093 | 0.320902 | 0 | 0.047619 | 1 | 0 | 0.14324 | 0.071954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.079365 | 0.031746 | 0.301587 | 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 |
d0669d2210b53e952644430d35749b340cd736f9 | 2,009 | py | Python | AprendeAyudando/news/views.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | 1 | 2021-09-09T09:54:04.000Z | 2021-09-09T09:54:04.000Z | AprendeAyudando/news/views.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | null | null | null | AprendeAyudando/news/views.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | null | null | null | #Forms
from django.forms import ModelForm, Textarea
from .forms import NewsForm
# Models
from .models import News
from django.db import models
# Routing
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.urls import reverse_lazy
from AprendeAyudando.views import h... | 28.7 | 100 | 0.691887 | 238 | 2,009 | 5.684874 | 0.277311 | 0.059128 | 0.082779 | 0.050259 | 0.497413 | 0.45898 | 0.356984 | 0.356984 | 0.297118 | 0.235033 | 0 | 0.001893 | 0.21105 | 2,009 | 70 | 101 | 28.7 | 0.851735 | 0.012444 | 0 | 0.519231 | 0 | 0 | 0.064614 | 0.010601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.173077 | 0 | 0.730769 | 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 |
d06a65eb34298dd16e4a56d3d8785ae3d9e0d8e0 | 1,613 | py | Python | src/housekeeping.py | HypoChloremic/graphscan | 0859b06b8d0505da5b7fd0771c68d3535ae5d2bd | [
"Apache-2.0"
] | null | null | null | src/housekeeping.py | HypoChloremic/graphscan | 0859b06b8d0505da5b7fd0771c68d3535ae5d2bd | [
"Apache-2.0"
] | null | null | null | src/housekeeping.py | HypoChloremic/graphscan | 0859b06b8d0505da5b7fd0771c68d3535ae5d2bd | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
from functools import wraps
def _func_log(func):
'''_func_log()
made to log entry and exit of a decorated function
for i/o clarity during executiin'''
@wraps(func)
def wrapper(*args, **kwargs):
print(f'[{func.__name__}... | 27.810345 | 67 | 0.683199 | 256 | 1,613 | 4.15625 | 0.453125 | 0.039474 | 0.033835 | 0.030075 | 0.129699 | 0.109023 | 0.026316 | 0 | 0 | 0 | 0 | 0.005299 | 0.181029 | 1,613 | 57 | 68 | 28.298246 | 0.800151 | 0 | 0 | 0.055556 | 0 | 0 | 0.121569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.138889 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d06ff8912487c01066a780eb803d1c1344df52f9 | 2,031 | py | Python | saleor/track/migrations/0001_initial.py | YunazGilang/saleor-custom | a0123a982440ddcc7c91d7c642953986b81eaee1 | [
"BSD-3-Clause"
] | 2 | 2018-05-28T06:48:13.000Z | 2018-07-10T13:22:26.000Z | saleor/track/migrations/0001_initial.py | ygrip/saleor-custom | a0123a982440ddcc7c91d7c642953986b81eaee1 | [
"BSD-3-Clause"
] | 1 | 2020-05-26T00:54:24.000Z | 2020-05-26T00:54:24.000Z | saleor/track/migrations/0001_initial.py | ygrip/saleor-custom | a0123a982440ddcc7c91d7c642953986b81eaee1 | [
"BSD-3-Clause"
] | 1 | 2018-08-09T13:10:49.000Z | 2018-08-09T13:10:49.000Z | # Generated by Django 2.0.3 on 2018-07-11 16:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('prod... | 44.152174 | 152 | 0.612506 | 212 | 2,031 | 5.688679 | 0.367925 | 0.033168 | 0.046434 | 0.072968 | 0.454395 | 0.454395 | 0.454395 | 0.454395 | 0.315091 | 0.315091 | 0 | 0.020449 | 0.25357 | 2,031 | 45 | 153 | 45.133333 | 0.775066 | 0.022157 | 0 | 0.315789 | 1 | 0 | 0.191532 | 0.011593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.184211 | 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 |
d07843d436d883ca1aaf930417d64da5f1acd2a4 | 541 | py | Python | Cyborg Currency.py | ashfaaq16/Currency-converter | 65eea7f25299528ec4cd35cf39a6c88b3706d1bd | [
"MIT"
] | 1 | 2021-12-06T08:53:28.000Z | 2021-12-06T08:53:28.000Z | Cyborg Currency.py | ashfaaq16/Currency-converter | 65eea7f25299528ec4cd35cf39a6c88b3706d1bd | [
"MIT"
] | null | null | null | Cyborg Currency.py | ashfaaq16/Currency-converter | 65eea7f25299528ec4cd35cf39a6c88b3706d1bd | [
"MIT"
] | null | null | null | amount = int(input('''Copyright © 2021 Ashfaaq Rifath
CURRENCY CONVERTER.lk
---------------------
Please enter amount(LKR): '''))
con_currency = input("Please enter convert currency: ")
if con_currency.upper() == "USD":
converted = amount * 200
print(f"🛑🛑🛑 {amount} LKR is {converted} 💲")
if con_curr... | 31.823529 | 56 | 0.602588 | 70 | 541 | 4.757143 | 0.442857 | 0.108108 | 0.117117 | 0.162162 | 0.174174 | 0.174174 | 0.174174 | 0 | 0 | 0 | 0 | 0.030023 | 0.19963 | 541 | 16 | 57 | 33.8125 | 0.713626 | 0 | 0 | 0 | 0 | 0 | 0.468451 | 0.040153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.214286 | 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 |
d07cc69730f8063ece2f7510429034b2ba5af441 | 724 | py | Python | gzip_funcs/get_content_linenum_gzip.py | SecTraversl/Toolbox_Python_3.8 | 0ad1d92d3a12225ea60e4eef3f263aecfffd1b65 | [
"MIT"
] | null | null | null | gzip_funcs/get_content_linenum_gzip.py | SecTraversl/Toolbox_Python_3.8 | 0ad1d92d3a12225ea60e4eef3f263aecfffd1b65 | [
"MIT"
] | null | null | null | gzip_funcs/get_content_linenum_gzip.py | SecTraversl/Toolbox_Python_3.8 | 0ad1d92d3a12225ea60e4eef3f263aecfffd1b65 | [
"MIT"
] | null | null | null | # %%
#######################################
def get_content_linenum_gzip(thepath: str, linenum: int):
"""Returns the line number of the specified gzipped file.
Examples:
>>> get_content_linenum_gzip('test_text.txt.gz', 3)\n
"'blah blah'\\n"
Args:
thepath (str): Reference the file
... | 26.814815 | 81 | 0.60221 | 95 | 724 | 4.494737 | 0.526316 | 0.04918 | 0.091335 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.248619 | 724 | 26 | 82 | 27.846154 | 0.78125 | 0.529006 | 0 | 0 | 0 | 0 | 0.007843 | 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 |
d083b39a847bcb2f571e690fa8f7d8a93a0294f8 | 419 | py | Python | threads/migrations/0002_auto_20170909_1106.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | threads/migrations/0002_auto_20170909_1106.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | threads/migrations/0002_auto_20170909_1106.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-09 10:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('threads', '0001_initial'),
]
operations = [
migrations.RenameField(
mod... | 19.952381 | 48 | 0.596659 | 45 | 419 | 5.355556 | 0.777778 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.28401 | 419 | 20 | 49 | 20.95 | 0.733333 | 0.162291 | 0 | 0 | 1 | 0 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
d084a2da38248ba2f66def470592ca81ec941861 | 323 | py | Python | tests/data/setup_files_extras_require/setup_5.py | wangsha/pipenv-setup | 31a4f94fedefff3199b3cb2bc20db57d23e89726 | [
"MIT"
] | 1 | 2021-11-07T14:50:06.000Z | 2021-11-07T14:50:06.000Z | tests/data/setup_files_extras_require/setup_5.py | jshwi/pipenv-setup | e04bea675b7491504c9d42e6ce0dd33cbfa7fd11 | [
"MIT"
] | 32 | 2019-11-06T13:59:58.000Z | 2022-03-18T17:16:00.000Z | tests/data/setup_files_extras_require/setup_5.py | jshwi/pipenv-setup | e04bea675b7491504c9d42e6ce0dd33cbfa7fd11 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="generic-package", # Required
version="0.0.0", # Required
packages=find_packages(exclude=["contrib", "docs", "tests"]), # Required
extras_require={
"test": [],
"dev": ["a", "b", "c", "d", "e", "f", "g", "h"],
}, # Optional... | 24.846154 | 77 | 0.544892 | 37 | 323 | 4.675676 | 0.783784 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.232198 | 323 | 12 | 78 | 26.916667 | 0.685484 | 0.108359 | 0 | 0 | 0 | 0 | 0.180212 | 0 | 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 |
d0965c54a4e095d7e2f0e32a06ed14f673f3d31a | 973 | py | Python | classification/src/scripts/celeba/test.py | kareemjano/Classification-Pytorch | 6dce3b226e7a5edc1fea2a057765aa59237439f5 | [
"Apache-2.0"
] | null | null | null | classification/src/scripts/celeba/test.py | kareemjano/Classification-Pytorch | 6dce3b226e7a5edc1fea2a057765aa59237439f5 | [
"Apache-2.0"
] | null | null | null | classification/src/scripts/celeba/test.py | kareemjano/Classification-Pytorch | 6dce3b226e7a5edc1fea2a057765aa59237439f5 | [
"Apache-2.0"
] | null | null | null | import hydra
from omegaconf import DictConfig
from pathlib import Path
import pytorch_lightning as pl
import logging
import sys
sys.path.append('src')
from datasets.celeba.classification_dataloader import Classification_Dataloader
from nets.cnn_net import Classification_Net
logger = logging.getLogger(__name__)
@hydr... | 32.433333 | 94 | 0.768756 | 130 | 973 | 5.415385 | 0.446154 | 0.06392 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005924 | 0.13258 | 973 | 30 | 95 | 32.433333 | 0.828199 | 0 | 0 | 0 | 0 | 0 | 0.031828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d0a1e82c38051679044e88c0e488c35b8a208aff | 743 | py | Python | conanfile.py | torshind/conan-pcg-cpp | 37ede197f94dba0e3cb92d949bc8b247ad41958b | [
"MIT"
] | null | null | null | conanfile.py | torshind/conan-pcg-cpp | 37ede197f94dba0e3cb92d949bc8b247ad41958b | [
"MIT"
] | null | null | null | conanfile.py | torshind/conan-pcg-cpp | 37ede197f94dba0e3cb92d949bc8b247ad41958b | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake
class PcgCppConan(ConanFile):
name = "pcg-cpp"
version = "latest"
license = "MIT"
homepage = "http://www.pcg-random.org/"
url = "https://github.com/torshind/conan-pcg-cpp/"
description = "PCG — C++ Implementation"
settings = "os", "compiler", "build_type... | 27.518519 | 67 | 0.613728 | 94 | 743 | 4.808511 | 0.648936 | 0.066372 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215343 | 743 | 26 | 68 | 28.576923 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.325707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0a3972ef9d648f63d74726a4557468b8775ddb8 | 373 | py | Python | dyno/livetrade/handlers.py | mequanta/z-dyno | 4ea296b710fcb1a87918644b8d8303e740490714 | [
"MIT"
] | null | null | null | dyno/livetrade/handlers.py | mequanta/z-dyno | 4ea296b710fcb1a87918644b8d8303e740490714 | [
"MIT"
] | null | null | null | dyno/livetrade/handlers.py | mequanta/z-dyno | 4ea296b710fcb1a87918644b8d8303e740490714 | [
"MIT"
] | null | null | null | from tornado.websocket import WebSocketHandler
class LiveTradingHandler(WebSocketHandler):
def check_origin(self, origin):
return True
def open(self, algo_id):
print(algo_id)
print("WebSocket opened")
def on_message(self, message):
print "message:{}".format(message)
d... | 23.3125 | 46 | 0.670241 | 42 | 373 | 5.833333 | 0.547619 | 0.04898 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230563 | 373 | 15 | 47 | 24.866667 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0a9abd3e8425e38b0f546961246ed01ece44eb5 | 2,457 | py | Python | user_manager/oauth/api/ext_auth_base.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | user_manager/oauth/api/ext_auth_base.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | user_manager/oauth/api/ext_auth_base.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | from typing import Optional
from fastapi import Depends, HTTPException
from fastapi.security import HTTPBasic, HTTPBasicCredentials, APIKeyQuery
from starlette.requests import Request
from starlette.status import HTTP_403_FORBIDDEN
from user_manager.common.mongo import async_client_collection
def client_id_secret_q... | 39 | 114 | 0.697599 | 273 | 2,457 | 5.989011 | 0.249084 | 0.063609 | 0.034251 | 0.084404 | 0.395107 | 0.395107 | 0.30948 | 0.236086 | 0.236086 | 0.236086 | 0 | 0.004764 | 0.231176 | 2,457 | 62 | 115 | 39.629032 | 0.860773 | 0 | 0 | 0.27451 | 0 | 0 | 0.043549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.058824 | 0.117647 | 0 | 0.313725 | 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 |
d0aa384d2f52b16af32a212a3d31001d4987f1d3 | 4,665 | py | Python | osc_bge/users/models.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | osc_bge/users/models.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | 5 | 2020-06-05T19:49:47.000Z | 2021-09-08T00:50:55.000Z | osc_bge/users/models.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | import datetime
import os
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.core.files.storage import FileSystemStorage
from django.conf import settings
from osc_bge.agent import models as ... | 34.813433 | 120 | 0.702465 | 575 | 4,665 | 5.488696 | 0.226087 | 0.030418 | 0.053232 | 0.035488 | 0.465146 | 0.451521 | 0.369772 | 0.369772 | 0.368504 | 0.353295 | 0 | 0.012355 | 0.167203 | 4,665 | 133 | 121 | 35.075188 | 0.8 | 0.0791 | 0 | 0.137931 | 0 | 0 | 0.126234 | 0.021392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114943 | false | 0 | 0.114943 | 0.091954 | 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 |
d0adb46027fd588a16bd7f37f41b4c10ef0dded4 | 2,940 | py | Python | main.py | sqrg/house_finder | 4069135adabfc0a1fda6321ed4f20356ba59e08a | [
"MIT"
] | null | null | null | main.py | sqrg/house_finder | 4069135adabfc0a1fda6321ed4f20356ba59e08a | [
"MIT"
] | null | null | null | main.py | sqrg/house_finder | 4069135adabfc0a1fda6321ed4f20356ba59e08a | [
"MIT"
] | null | null | null | import json
import os
import requests
import sqlite3
from time import sleep
import credentials
def generate_request_payload(page):
with open(os.path.join(PROJECT_PATH, 'request_payload.json')) as json_file:
data = json.load(json_file)
if page != 1:
data['pagina'] = page
return json.dum... | 27.222222 | 93 | 0.57449 | 336 | 2,940 | 4.863095 | 0.39881 | 0.014688 | 0.034884 | 0.031824 | 0.064871 | 0.039168 | 0 | 0 | 0 | 0 | 0 | 0.005725 | 0.287075 | 2,940 | 108 | 94 | 27.222222 | 0.773855 | 0.023469 | 0 | 0 | 1 | 0.014493 | 0.220439 | 0.017091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.086957 | 0 | 0.173913 | 0.057971 | 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 |
d0ae26c4ecf54958f69ff35c7eb61f7a4e5d6032 | 812 | py | Python | src/core/html.py | Viewly/alpha-2 | 6b6d827197489164d8c4bde4f4d591dcec5a2163 | [
"MIT"
] | null | null | null | src/core/html.py | Viewly/alpha-2 | 6b6d827197489164d8c4bde4f4d591dcec5a2163 | [
"MIT"
] | 1 | 2021-05-07T06:26:16.000Z | 2021-05-07T06:26:16.000Z | src/core/html.py | Viewly/alpha-2 | 6b6d827197489164d8c4bde4f4d591dcec5a2163 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from flask_misaka import markdown
def html2text(html: str) -> str:
""" Extract plain text from
markdown generated html description."""
b = BeautifulSoup(html, 'lxml')
b.a.decompose() if b.a else ''
b.img.decompose() if b.img else ''
b.table.decompose() if b.table ... | 25.375 | 61 | 0.581281 | 99 | 812 | 4.707071 | 0.484848 | 0.094421 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005059 | 0.269704 | 812 | 31 | 62 | 26.193548 | 0.780776 | 0.073892 | 0 | 0 | 1 | 0 | 0.125506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0b62faa13f74ccc2aacf591087c70de60b8d351 | 965 | py | Python | examples/list_clients.py | kant/python-alsa-midi | 407d04c3b18e654d33e7e45d0e3efe70d11ee056 | [
"MIT"
] | 4 | 2022-01-26T22:33:11.000Z | 2022-03-21T18:05:26.000Z | examples/list_clients.py | kant/python-alsa-midi | 407d04c3b18e654d33e7e45d0e3efe70d11ee056 | [
"MIT"
] | 1 | 2022-01-27T21:01:18.000Z | 2022-01-29T17:21:17.000Z | examples/list_clients.py | kant/python-alsa-midi | 407d04c3b18e654d33e7e45d0e3efe70d11ee056 | [
"MIT"
] | 1 | 2021-12-26T16:59:13.000Z | 2021-12-26T16:59:13.000Z | #!/usr/bin/env python3
from alsa_midi import SequencerClient
def main():
client = SequencerClient("list_clients.py")
client_info = client.query_next_client()
while client_info:
print(f"Client {client_info.client_id}: {client_info.name!r}")
assert client_info.type is not None
prin... | 33.275862 | 71 | 0.611399 | 124 | 965 | 4.459677 | 0.346774 | 0.289331 | 0.086799 | 0.075949 | 0.19349 | 0.112116 | 0 | 0 | 0 | 0 | 0 | 0.001433 | 0.276684 | 965 | 28 | 72 | 34.464286 | 0.790831 | 0.146114 | 0 | 0 | 0 | 0 | 0.350792 | 0.140073 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0.388889 | 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 |
d0bb1edfa397faef40a2022ea56d39b46ffde6b6 | 4,416 | py | Python | bitStream/lsbhide_bin.py | Crane-Mocker/batch-png-lsbhiding | 84e190ccfa45a23bbe0f0ed7148163e18f2b29dd | [
"MIT"
] | null | null | null | bitStream/lsbhide_bin.py | Crane-Mocker/batch-png-lsbhiding | 84e190ccfa45a23bbe0f0ed7148163e18f2b29dd | [
"MIT"
] | null | null | null | bitStream/lsbhide_bin.py | Crane-Mocker/batch-png-lsbhiding | 84e190ccfa45a23bbe0f0ed7148163e18f2b29dd | [
"MIT"
] | null | null | null | #c0conut 2020.12.21
#Generate random bit stream to implement batch png lsbhiding
#Embedding rate 80%
#Coverimage : 512*512 png
import numpy as np
import base64, json, random, os
from bitstring import BitArray
from cv2 import cv2 as cv
def genEmbedBinStream():
#generate random bit stream
s = random.randint(0, ... | 35.902439 | 76 | 0.652174 | 572 | 4,416 | 4.994755 | 0.284965 | 0.017151 | 0.010501 | 0.00735 | 0.327966 | 0.262163 | 0.250263 | 0.219111 | 0.19461 | 0.19461 | 0 | 0.024354 | 0.228261 | 4,416 | 122 | 77 | 36.196721 | 0.813967 | 0.201087 | 0 | 0.258427 | 1 | 0 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.044944 | 0 | 0.224719 | 0.033708 | 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 |
d0bb56c7b5e397d0275aa3c8f2b22c67fbac4c54 | 607 | py | Python | MMcalendar/migrations/0010_auto_20200926_1746.py | PhiloTFarnsworth/MarketMePostMortem | 4627312f1c784abaf51a4eab7e0ecae940112478 | [
"MIT"
] | null | null | null | MMcalendar/migrations/0010_auto_20200926_1746.py | PhiloTFarnsworth/MarketMePostMortem | 4627312f1c784abaf51a4eab7e0ecae940112478 | [
"MIT"
] | null | null | null | MMcalendar/migrations/0010_auto_20200926_1746.py | PhiloTFarnsworth/MarketMePostMortem | 4627312f1c784abaf51a4eab7e0ecae940112478 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-09-27 00:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MMcalendar', '0009_auto_20200921_2228'),
]
operations = [
migrations.AlterField(
model_name='calendar',
name='name',... | 26.391304 | 139 | 0.617792 | 61 | 607 | 6.016393 | 0.754098 | 0.049046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075556 | 0.258649 | 607 | 22 | 140 | 27.590909 | 0.74 | 0.074135 | 0 | 0.125 | 1 | 0 | 0.157143 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0c527a1d24960cb64de04b5c62b25a2b777943f | 2,509 | py | Python | tests/test_event.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 3 | 2021-02-04T02:53:35.000Z | 2021-07-22T01:09:36.000Z | tests/test_event.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 17 | 2021-02-19T23:25:29.000Z | 2021-05-16T04:18:00.000Z | tests/test_event.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | null | null | null | from testing_config import BaseTestConfig
from application.models import *
import json
from application.utils import *
class TestEvent(BaseTestConfig):
test_event = {
"room_id": 1,
"event_name": "test_event",
"location": "test_location",
"start_time": "2021-03-27 07:32:00",
... | 39.203125 | 260 | 0.56676 | 293 | 2,509 | 4.668942 | 0.204778 | 0.072368 | 0.056287 | 0.071637 | 0.702485 | 0.702485 | 0.694444 | 0.679094 | 0.605263 | 0.53655 | 0 | 0.034047 | 0.274213 | 2,509 | 64 | 261 | 39.203125 | 0.717188 | 0 | 0 | 0.482759 | 0 | 0 | 0.26255 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.172414 | 0.017241 | 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 |
d0c90b6e0f529a612b6843a9d29537ae1547b31e | 578 | py | Python | friqml/solutions/noisy_operations.py | znajob/fri_qml | 85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca | [
"MIT"
] | null | null | null | friqml/solutions/noisy_operations.py | znajob/fri_qml | 85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca | [
"MIT"
] | null | null | null | friqml/solutions/noisy_operations.py | znajob/fri_qml | 85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca | [
"MIT"
] | null | null | null |
import pennylane as qml
from pennylane import numpy as np
from friqml.utils import eps
# EXERCISE 1
def e1_circuit(p):
qml.Hadamard(wires=0)
qml.CNOT(wires=[0, 1])
qml.BitFlip(p, wires=0)
qml.BitFlip(p, wires=1)
return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1))
# EXERCISE 2
def e2_circuit(p):
... | 19.931034 | 52 | 0.67301 | 96 | 578 | 4.010417 | 0.302083 | 0.171429 | 0.14026 | 0.220779 | 0.532468 | 0.532468 | 0.374026 | 0.228571 | 0.228571 | 0.228571 | 0 | 0.042553 | 0.186851 | 578 | 28 | 53 | 20.642857 | 0.776596 | 0.036332 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.473684 | 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 |
d0c973e300bfff91ee3f1a03cfc348f29fd842f8 | 972 | py | Python | HID Scripts/circuitpython.py | apsecdev/CredsLeaker | 29192c7ebcaf5bfa7378544e5f1ede2d2019d8f1 | [
"MIT"
] | 4 | 2020-01-13T14:09:49.000Z | 2020-01-14T12:58:05.000Z | HID Scripts/circuitpython.py | apsecdev/CredsLeaker | 29192c7ebcaf5bfa7378544e5f1ede2d2019d8f1 | [
"MIT"
] | 1 | 2019-12-24T17:05:56.000Z | 2019-12-24T17:05:56.000Z | HID Scripts/circuitpython.py | apsecdev/CredsLeaker | 29192c7ebcaf5bfa7378544e5f1ede2d2019d8f1 | [
"MIT"
] | null | null | null | import time
import board
import digitalio
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
kbd = Keyboard()
layout = KeyboardLayoutUS(kbd)
def run_payload():
kbd.send(Keycode.GUI, Keycode.R)
time.sleep(0.80)
... | 32.4 | 132 | 0.709877 | 136 | 972 | 5.022059 | 0.367647 | 0.105417 | 0.11713 | 0.140556 | 0.474378 | 0.474378 | 0.440703 | 0.440703 | 0.395315 | 0.395315 | 0 | 0.033981 | 0.152263 | 972 | 30 | 133 | 32.4 | 0.794903 | 0 | 0 | 0.444444 | 0 | 0 | 0.279548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.222222 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d0d4e853f98bdddf17851353446cbb598a7ad306 | 11,212 | py | Python | asrock_ipmi_cert_updater.py | khung/letsencrypt-scripts | dc591d82b311ba48854156f83445046ca8d9ac93 | [
"Unlicense"
] | 2 | 2020-06-23T04:32:47.000Z | 2021-11-03T04:48:40.000Z | asrock_ipmi_cert_updater.py | khung/letsencrypt-scripts | dc591d82b311ba48854156f83445046ca8d9ac93 | [
"Unlicense"
] | null | null | null | asrock_ipmi_cert_updater.py | khung/letsencrypt-scripts | dc591d82b311ba48854156f83445046ca8d9ac93 | [
"Unlicense"
] | 1 | 2020-09-24T13:16:59.000Z | 2020-09-24T13:16:59.000Z | # This script updates the certificate for the ASRock Rack IPMI web interface. ASRock does not use the standard Redfish
# API schema so we can"t just run the redfish Python module.
import os
import sys
import argparse
import configparser
import logging
import requests
import json
from urllib.parse import urlparse
REQU... | 34.819876 | 120 | 0.65305 | 1,414 | 11,212 | 5.06082 | 0.203678 | 0.023477 | 0.01635 | 0.014673 | 0.443264 | 0.357183 | 0.318893 | 0.299609 | 0.279486 | 0.279486 | 0 | 0.006502 | 0.259276 | 11,212 | 321 | 121 | 34.928349 | 0.855148 | 0.294684 | 0 | 0.320856 | 0 | 0 | 0.188248 | 0.017221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037433 | false | 0.053476 | 0.042781 | 0 | 0.203209 | 0.085562 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0d7c79a0e9afaef83ae76790d6a499bc8cf1d93 | 439 | py | Python | setup.py | CodyGit/ManifestEditor | c06dfaa8a60b955cb1833c852da8866c24b0b1fa | [
"MIT"
] | 21 | 2020-06-12T02:24:59.000Z | 2022-02-03T06:34:36.000Z | setup.py | CodyGit/ManifestEditor | c06dfaa8a60b955cb1833c852da8866c24b0b1fa | [
"MIT"
] | 7 | 2020-08-18T02:05:10.000Z | 2021-07-19T09:53:38.000Z | setup.py | CodyGit/ManifestEditor | c06dfaa8a60b955cb1833c852da8866c24b0b1fa | [
"MIT"
] | 13 | 2020-06-24T02:09:17.000Z | 2022-03-10T02:22:07.000Z | #!/usr/bin/python3
#coding=utf-8
#author: cody
from setuptools import setup, find_packages
setup(
name='ManifestEditor',
version='0.1',
description='edit AndroidManifest.xml for apk',
url='https://github.com/CodyGit/ManifestEditor',
author='cody',
author_email='codyzj@126.com',
include_pack... | 21.95 | 52 | 0.681093 | 55 | 439 | 5.309091 | 0.836364 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024725 | 0.170843 | 439 | 19 | 53 | 23.105263 | 0.777473 | 0.093394 | 0 | 0 | 0 | 0 | 0.294416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
d0de50e2a7adf3deca3621dcd1c7464b20b6d06e | 529 | py | Python | utils/pagination.py | sf0402/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 6 | 2019-12-17T03:16:38.000Z | 2020-07-10T10:45:24.000Z | utils/pagination.py | fearlessfei/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 5 | 2021-03-19T01:10:11.000Z | 2022-02-10T13:37:29.000Z | utils/pagination.py | sf0402/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 1 | 2020-11-10T07:54:52.000Z | 2020-11-10T07:54:52.000Z | # -*- coding: utf-8 -*-
from rest_framework.pagination import PageNumberPagination
class CustomPageNumberPagination(PageNumberPagination):
"""
自定义分页
"""
#每页显示多少个
page_size = 1
#默认每页显示20个,可以通过传入xxx/?page=2&limit=4,改变默认每页显示的个数
page_size_query_param = "limit"
#最大不超过多少页数,这里设置None无限制
ma... | 24.045455 | 58 | 0.650284 | 54 | 529 | 6.166667 | 0.722222 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.245747 | 529 | 22 | 59 | 24.045455 | 0.819549 | 0.20794 | 0 | 0 | 0 | 0 | 0.0525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.727273 | 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 |
d0e169abbb5517aebca0812da32362a2954b5fba | 1,757 | py | Python | cardscan/utils.py | GroupTraining/BusinessCardReader | b89e9dfa4907937663cb766c6c4cbc4f26e5b540 | [
"MIT"
] | 52 | 2016-03-16T15:19:03.000Z | 2021-09-07T08:45:43.000Z | cardscan/utils.py | GroupTraining/BusinessCardReader | b89e9dfa4907937663cb766c6c4cbc4f26e5b540 | [
"MIT"
] | 1 | 2016-06-21T12:32:26.000Z | 2019-08-06T08:58:48.000Z | cardscan/utils.py | GroupTraining/BusinessCardReader | b89e9dfa4907937663cb766c6c4cbc4f26e5b540 | [
"MIT"
] | 28 | 2016-05-06T16:13:40.000Z | 2022-01-19T02:53:03.000Z | import numpy as np
import cv2
from matplotlib import pyplot as plt
import glob
import random as rand
def readImage(imgName, grayscale=False):
'''Simple function to read in an image and reverse the colors'''
if grayscale:
img = cv2.imread(imgName)
img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
e... | 28.33871 | 76 | 0.592487 | 227 | 1,757 | 4.528634 | 0.484582 | 0.023346 | 0.023346 | 0.036965 | 0.042802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018853 | 0.27547 | 1,757 | 61 | 77 | 28.803279 | 0.788688 | 0.059761 | 0 | 0.046512 | 0 | 0 | 0.050196 | 0.027451 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0e3549a18c03c0a44ef044d14ffd1d59fdf85bb | 1,967 | py | Python | old/climate.py | ebilling/pi-pool-control | e8baa21674477a83446a235fac1dc9d1aba3c14b | [
"Apache-2.0"
] | null | null | null | old/climate.py | ebilling/pi-pool-control | e8baa21674477a83446a235fac1dc9d1aba3c14b | [
"Apache-2.0"
] | null | null | null | old/climate.py | ebilling/pi-pool-control | e8baa21674477a83446a235fac1dc9d1aba3c14b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import json
import httplib
# Historical Climate data API Documentation: http://www.ncdc.noaa.gov/cdo-web/webservices/v2
NCDC_TOKEN = "MwtRFtJDlxGLsnBtnNcTbiuoabkNVHhT"
header = {"token": NCDC_TOKEN}
conn = httplib.HTTPConnection("www.ncdc.noaa.gov")
def get(request):
conn.request("GET", requ... | 24.898734 | 93 | 0.653279 | 231 | 1,967 | 5.554113 | 0.372294 | 0.028059 | 0.035074 | 0.042868 | 0.048324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02384 | 0.210981 | 1,967 | 78 | 94 | 25.217949 | 0.802835 | 0.054398 | 0 | 0.127273 | 0 | 0.018182 | 0.208288 | 0.179763 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | 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 |
d0ea554ef2d0e1adc0ff232709c64a93595bf450 | 10,237 | py | Python | bot/bot_tests.py | Drhealsgood/reddit_bot | 34c1396640f96f115a74a1f423fd6eb231299c47 | [
"MIT"
] | 3 | 2015-04-06T07:18:09.000Z | 2016-12-02T19:46:44.000Z | bot/bot_tests.py | Drhealsgood/reddit_bot | 34c1396640f96f115a74a1f423fd6eb231299c47 | [
"MIT"
] | null | null | null | bot/bot_tests.py | Drhealsgood/reddit_bot | 34c1396640f96f115a74a1f423fd6eb231299c47 | [
"MIT"
] | null | null | null | '''
Created on 23/07/2013
@author: luke
'''
import unittest
from bot import *
from mock import Mock
import re
def gather_data():
global REDDIT
ua = "test_bot"
REDDIT = praw.Reddit(ua)
REDDIT.login(USERNAME,PASSWORD)
# Reddit will be the praw Reddit agent
gather_data()
class TestRedditBot(... | 32.70607 | 98 | 0.588258 | 1,127 | 10,237 | 5.219166 | 0.242236 | 0.024992 | 0.024311 | 0.023461 | 0.203332 | 0.142639 | 0.122747 | 0.047943 | 0.030262 | 0.030262 | 0 | 0.003163 | 0.320504 | 10,237 | 312 | 99 | 32.810897 | 0.842438 | 0.259256 | 0 | 0.272727 | 0 | 0 | 0.056524 | 0.003923 | 0 | 0 | 0 | 0.009615 | 0.207792 | 1 | 0.220779 | false | 0.019481 | 0.025974 | 0 | 0.298701 | 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 |
d0ee1a714b9fdec38b1a85696d7a9ad7c924e7c9 | 1,817 | py | Python | src/nnicotine/models/resnet.py | KIT-MBS/nnicotine | 3681391d05d0a2d92e16431f5bc985cd6ff606fd | [
"MIT"
] | 2 | 2021-03-28T02:02:30.000Z | 2021-09-09T23:27:39.000Z | src/nnicotine/models/resnet.py | KIT-MBS/nnicotine | 3681391d05d0a2d92e16431f5bc985cd6ff606fd | [
"MIT"
] | null | null | null | src/nnicotine/models/resnet.py | KIT-MBS/nnicotine | 3681391d05d0a2d92e16431f5bc985cd6ff606fd | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from ..modules import PositionalEncoding, OuterConcatenation
class Block(nn.Module):
def __init__(self, channels, dilation, dropout=0.85):
super(Block, self).__init__()
self.n = nn.BatchNorm2d(channels)
self.r = nn.ELU()
self.c = nn.Conv2d(channel... | 30.79661 | 95 | 0.606494 | 252 | 1,817 | 4.257937 | 0.31746 | 0.027959 | 0.050326 | 0.027959 | 0.096925 | 0.06151 | 0.06151 | 0.06151 | 0 | 0 | 0 | 0.04941 | 0.253715 | 1,817 | 58 | 96 | 31.327586 | 0.741888 | 0.03137 | 0 | 0.05 | 0 | 0 | 0.009681 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.275 | 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 |
d0eee61841f2d30b20a4e325482c80683887f02c | 1,018 | py | Python | scripts/multi_result_summary.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | 7 | 2021-12-07T16:09:30.000Z | 2022-02-18T19:48:35.000Z | scripts/multi_result_summary.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | 18 | 2021-10-12T20:04:46.000Z | 2022-03-31T19:51:11.000Z | scripts/multi_result_summary.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | null | null | null | # Requires nuspacesim and tabulate
#
# pip install nuspacesim tabulate
#
# Usage:
#
# python multi_result_summary directory/with/simulation/files/
import os
import sys
from tabulate import tabulate
import nuspacesim as nss
if __name__ == "__main__":
results = list()
path = os.path.abspath(sys.argv[1])
... | 19.207547 | 62 | 0.552063 | 108 | 1,018 | 5.083333 | 0.62963 | 0.03643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001479 | 0.335953 | 1,018 | 52 | 63 | 19.576923 | 0.810651 | 0.129666 | 0 | 0 | 0 | 0 | 0.113895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.129032 | 0 | 0.129032 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
19056f7f18f732d0a6cc9c3face6cb32ab3ad852 | 1,090 | py | Python | server/model/MEnum.py | Hexliath/zigbee-defender | 98160047b67f716f596169dd2c6874e0cfef3366 | [
"MIT"
] | null | null | null | server/model/MEnum.py | Hexliath/zigbee-defender | 98160047b67f716f596169dd2c6874e0cfef3366 | [
"MIT"
] | 3 | 2020-01-28T22:41:55.000Z | 2020-11-13T18:11:36.000Z | server/model/MEnum.py | Hexliath/zigbee-defender | 98160047b67f716f596169dd2c6874e0cfef3366 | [
"MIT"
] | null | null | null | from enum import Enum
class Day(Enum):
mon = 1
tue = 2
wed = 3
thu = 4
fri = 5
sat = 6
sun = 7
@staticmethod
def from_str(label):
if label == "mon":
return Day.mon
elif label == "tue":
return Day.tue
elif label == "wed":
r... | 23.191489 | 41 | 0.515596 | 113 | 1,090 | 4.955752 | 0.327434 | 0.128571 | 0.067857 | 0.078571 | 0.121429 | 0.121429 | 0.121429 | 0 | 0 | 0 | 0 | 0.015314 | 0.400917 | 1,090 | 47 | 42 | 23.191489 | 0.842266 | 0 | 0 | 0.181818 | 0 | 0 | 0.04583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.636364 | 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 |
ef6a0cd3e2023c81a0de1c24074cf2628f860042 | 1,957 | py | Python | app_dr/dr_utils.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | null | null | null | app_dr/dr_utils.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | 8 | 2021-03-30T14:02:38.000Z | 2022-03-12T00:40:05.000Z | app_dr/dr_utils.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
"""
@Time : 2019/09/15
@Author : fls
@Contact : fls@darkripples.com
@Desc : darkripples总平台相关-应用内utils
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2019/09/15 08:43 fls 1.0 create... | 23.297619 | 75 | 0.588145 | 250 | 1,957 | 4.384 | 0.36 | 0.10219 | 0.050182 | 0.072993 | 0.231752 | 0.156934 | 0.156934 | 0.107664 | 0.107664 | 0.107664 | 0 | 0.024268 | 0.284108 | 1,957 | 83 | 76 | 23.578313 | 0.75803 | 0.283597 | 0 | 0.282051 | 0 | 0 | 0.047988 | 0.03483 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.307692 | 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 |
ef710ec7e5e1d27c482e5ac336d21e5062bc6fa1 | 813 | py | Python | rdii/rain.py | klangner/rdii | 4c111cb2968f7f5274a9189e40b9170565b556b7 | [
"Apache-2.0"
] | 1 | 2019-03-16T17:43:44.000Z | 2019-03-16T17:43:44.000Z | rdii/rain.py | klangner/rdii | 4c111cb2968f7f5274a9189e40b9170565b556b7 | [
"Apache-2.0"
] | 3 | 2019-03-17T19:23:04.000Z | 2019-03-18T19:43:38.000Z | rdii/rain.py | klangner/rdii | 4c111cb2968f7f5274a9189e40b9170565b556b7 | [
"Apache-2.0"
] | null | null | null |
from collections import namedtuple
import pandas as pd
class RainPeriod(namedtuple('RainPeriod' , ['start_date', 'end_date', 'intensity'])):
pass
def find_rain_periods(rainfall):
"""Find all periods with rain.
Params:
rainfall - Pandas Series with rainfall data
"""
rains = []
rain_start ... | 30.111111 | 92 | 0.617466 | 96 | 813 | 5.041667 | 0.416667 | 0.11157 | 0.107438 | 0.066116 | 0.214876 | 0.11157 | 0.11157 | 0 | 0 | 0 | 0 | 0.008606 | 0.285363 | 813 | 27 | 92 | 30.111111 | 0.824441 | 0.097171 | 0 | 0.210526 | 0 | 0 | 0.08951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ef71dcbd17c1e61b4d5a132b1cd5685c41a505e4 | 1,164 | py | Python | employee/migrations/0005_auto_20200311_1529.py | couchjanus/couchjanus-dj | 81a85354cc5eee1c650ae343e9c57d21314663f4 | [
"MIT"
] | null | null | null | employee/migrations/0005_auto_20200311_1529.py | couchjanus/couchjanus-dj | 81a85354cc5eee1c650ae343e9c57d21314663f4 | [
"MIT"
] | 5 | 2021-03-19T00:59:25.000Z | 2021-09-22T18:45:34.000Z | employee/migrations/0005_auto_20200311_1529.py | couchjanus/couchjanus-dj | 81a85354cc5eee1c650ae343e9c57d21314663f4 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-11 13:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employee', '0004_auto_20200303_1409'),
]
operations = [
migrations.AlterModelOptions(
name='department',
options={'ordering'... | 44.769231 | 257 | 0.640034 | 117 | 1,164 | 6.136752 | 0.350427 | 0.075209 | 0.129526 | 0.100279 | 0.359331 | 0.179666 | 0.133705 | 0.133705 | 0 | 0 | 0 | 0.033262 | 0.199313 | 1,164 | 25 | 258 | 46.56 | 0.737124 | 0.03866 | 0 | 0.315789 | 1 | 0 | 0.478962 | 0.058192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
ef72e377c63e8cda1e5917d7f1d822cef392a9b3 | 394 | py | Python | app/main/service/auth_helper.py | eamanu/bolsa-laboral-lr | 60128ae52dbac6b0eace4a308c5d35ea55590909 | [
"MIT"
] | null | null | null | app/main/service/auth_helper.py | eamanu/bolsa-laboral-lr | 60128ae52dbac6b0eace4a308c5d35ea55590909 | [
"MIT"
] | null | null | null | app/main/service/auth_helper.py | eamanu/bolsa-laboral-lr | 60128ae52dbac6b0eace4a308c5d35ea55590909 | [
"MIT"
] | null | null | null | from app.main.model.user import Users
class Auth:
@staticmethod
def login_user(data):
try:
# fetch the user data
user = Users.query.filter_by(user_id=data.get('user_id')).first()
if user and user.check_password(data.get('password')):
return 200
... | 26.266667 | 77 | 0.573604 | 50 | 394 | 4.42 | 0.68 | 0.072398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034615 | 0.340102 | 394 | 14 | 78 | 28.142857 | 0.815385 | 0.048223 | 0 | 0 | 0 | 0 | 0.040214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.545455 | 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 |
ef7747f4a27835ffa32d21a0ecb2c20d631c6f1b | 263 | py | Python | tools/npy_2_aud.py | KeigoTakamura/Waveglow_Inference_in_CUDA | 55d7c5d110b8f3a8979276030814f8c8a4d62a99 | [
"MIT"
] | 135 | 2019-09-08T13:26:12.000Z | 2022-03-03T08:14:00.000Z | tools/npy_2_aud.py | KeigoTakamura/Waveglow_Inference_in_CUDA | 55d7c5d110b8f3a8979276030814f8c8a4d62a99 | [
"MIT"
] | 3 | 2019-09-09T04:00:38.000Z | 2020-05-27T21:41:10.000Z | tools/npy_2_aud.py | KeigoTakamura/Waveglow_Inference_in_CUDA | 55d7c5d110b8f3a8979276030814f8c8a4d62a99 | [
"MIT"
] | 15 | 2019-09-08T16:00:31.000Z | 2020-01-04T07:45:36.000Z | import os, sys
import numpy as np
from scipy.io.wavfile import write
folder = sys.argv[1]
for file in os.listdir(folder):
if file.endswith(".npy"):
print(file, file.split(".")[0])
a = np.load(folder+file)
write(folder+file.split(".")[0]+".wav", 22050, a) | 23.909091 | 51 | 0.669202 | 45 | 263 | 3.911111 | 0.622222 | 0.125 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 0.136882 | 263 | 11 | 51 | 23.909091 | 0.740088 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef7b1ceb9639c391fcb63d3cfa96ca586f5c5779 | 704 | py | Python | camp/utils/utils.py | summiee/tof_mass_calibration | 39d4248a24cee9ae2461b07cfe323be05bc8dd57 | [
"MIT"
] | null | null | null | camp/utils/utils.py | summiee/tof_mass_calibration | 39d4248a24cee9ae2461b07cfe323be05bc8dd57 | [
"MIT"
] | null | null | null | camp/utils/utils.py | summiee/tof_mass_calibration | 39d4248a24cee9ae2461b07cfe323be05bc8dd57 | [
"MIT"
] | null | null | null | import numpy as np
def hist_to_xy(array, bins):
hist = np.histogram(array, bins=bins)
y, x = [hist[0], 0.5 * (hist[1][1:] + hist[1][:-1])]
return x, y
def find_nearest(array, values):
indices = np.abs(np.subtract.outer(array, values)).argmin(0)
return indices
def check_for_completeness(list):
... | 28.16 | 97 | 0.632102 | 114 | 704 | 3.798246 | 0.438596 | 0.04157 | 0.027714 | 0.060046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022688 | 0.18608 | 704 | 24 | 98 | 29.333333 | 0.732984 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7b2d5196220e5ad388cfda195891420d8d86cd | 371 | py | Python | iot/wiot_env.py | kant/cristata | bb7477bf1b7be648657ddf9ea411d4a7178a449c | [
"Apache-2.0"
] | 5 | 2018-07-30T18:50:55.000Z | 2019-03-20T18:07:05.000Z | iot/wiot_env.py | kant/cristata | bb7477bf1b7be648657ddf9ea411d4a7178a449c | [
"Apache-2.0"
] | 1 | 2018-06-25T21:08:35.000Z | 2018-07-13T21:23:39.000Z | iot/wiot_env.py | kant/cristata | bb7477bf1b7be648657ddf9ea411d4a7178a449c | [
"Apache-2.0"
] | 7 | 2018-06-25T21:09:29.000Z | 2020-06-29T14:09:01.000Z | import os
import sys
try:
WIOT_ORG=os.environ['WIOT_ORG']
WIOT_KEY=os.environ['WIOT_KEY']
WIOT_TKN=os.environ['WIOT_TKN']
except:
print('one or more of the following enviroment variables not set')
print('WIOT_ORG')
print('WIOT_KEY')
print('WIOT_TKN')
print('see')
print('bx service k... | 23.1875 | 70 | 0.679245 | 57 | 371 | 4.263158 | 0.526316 | 0.08642 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.188679 | 371 | 15 | 71 | 24.733333 | 0.803987 | 0 | 0 | 0 | 0 | 0 | 0.409704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef7c04761c350ef5002800c66e7316377c1af50e | 1,769 | py | Python | ensemblapi.py | xbello/snpator | 7caf251904a5dec75705e16138884af2c110a998 | [
"BSD-2-Clause"
] | null | null | null | ensemblapi.py | xbello/snpator | 7caf251904a5dec75705e16138884af2c110a998 | [
"BSD-2-Clause"
] | null | null | null | ensemblapi.py | xbello/snpator | 7caf251904a5dec75705e16138884af2c110a998 | [
"BSD-2-Clause"
] | null | null | null | """Shortcuts to use the Ensembl REST API."""
import requests
import erequests
def get_genotypes(rs_list, individuals):
"""Return a dict with rs as keys and a dict with individuals:genotypes."""
all_rs = get_list_of_rs(rs_list)
genotypes = {}.fromkeys(rs_list)
for rs_json in all_rs:
genotypes... | 29.983051 | 79 | 0.673827 | 239 | 1,769 | 4.778243 | 0.280335 | 0.042032 | 0.035026 | 0.049912 | 0.136602 | 0.136602 | 0.073555 | 0.073555 | 0 | 0 | 0 | 0.001437 | 0.213115 | 1,769 | 58 | 80 | 30.5 | 0.818966 | 0.068966 | 0 | 0.193548 | 0 | 0 | 0.143382 | 0.061765 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7d3b1481aff451cc49902aa35277ccc0651b82 | 380 | py | Python | swapping 2.py | aash-gates/aash-python-babysteps | cb88b02b0d33ac74acb183d4f11f6baad0ad3db9 | [
"Unlicense"
] | 7 | 2020-11-16T18:23:21.000Z | 2021-12-18T14:08:54.000Z | swapping 2.py | 00mjk/aash-python-babysteps | c52ffbc2690ea387eaad6639bb9764b9ee015bfd | [
"Unlicense"
] | null | null | null | swapping 2.py | 00mjk/aash-python-babysteps | c52ffbc2690ea387eaad6639bb9764b9ee015bfd | [
"Unlicense"
] | 1 | 2020-12-21T15:59:44.000Z | 2020-12-21T15:59:44.000Z | '''
practice qusestion from chapter 1 Module 5 of IBM Digital Nation Courses
by Aashik J Krishnan/Aash Gates
'''
x = 10
y ="ten"
#step 1
temp = x
#temp variable now holds the value of x
#step 2
x = y
#the variable x now holds the value of y
#step 3
y = temp
# y now holds the value of temp which is the orginal value... | 15.2 | 72 | 0.702632 | 75 | 380 | 3.56 | 0.493333 | 0.104869 | 0.123596 | 0.179775 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.226316 | 380 | 25 | 73 | 15.2 | 0.884354 | 0.736842 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
ef7f4adfac2e315a19590838ebf9bebc1b151136 | 1,241 | py | Python | python/541.reverse-string-ii.py | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | python/541.reverse-string-ii.py | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | python/541.reverse-string-ii.py | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=541 lang=python3
#
# [541] Reverse String II
#
# https://leetcode.com/problems/reverse-string-ii/description/
#
# algorithms
# Easy (49.66%)
# Total Accepted: 117.1K
# Total Submissions: 235.8K
# Testcase Example: '"abcdefg"\n2'
#
# Given a string s and an integer k, reverse the first k char... | 24.333333 | 85 | 0.621273 | 190 | 1,241 | 4.057895 | 0.484211 | 0.015564 | 0.089494 | 0.093385 | 0.171206 | 0.070039 | 0.070039 | 0 | 0 | 0 | 0 | 0.040212 | 0.238517 | 1,241 | 50 | 86 | 24.82 | 0.775661 | 0.622885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.7 | 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 |
ef80f7636f6d92759decf64abbc49e6c4e759a03 | 4,444 | py | Python | learning_strategies/neat/neat_utils.py | jinPrelude/pyNeat | 043b9aa0e1d8972e60b1d2c6645c2d24a4cbf9cd | [
"Apache-2.0"
] | 6 | 2022-01-08T07:21:08.000Z | 2022-01-26T02:05:43.000Z | learning_strategies/neat/neat_utils.py | jinPrelude/pyNeat | 043b9aa0e1d8972e60b1d2c6645c2d24a4cbf9cd | [
"Apache-2.0"
] | null | null | null | learning_strategies/neat/neat_utils.py | jinPrelude/pyNeat | 043b9aa0e1d8972e60b1d2c6645c2d24a4cbf9cd | [
"Apache-2.0"
] | null | null | null | from itertools import combinations
import numpy as np
def mutate_offsprings(offsprings):
for off in offsprings:
off.mutate()
return offsprings
def crossover_offsprings(parents, rewards, offspring_num, delta_dict, delta_threshold):
offsprings = []
parents, rewards = sort_offsprings_rewards(p... | 34.184615 | 87 | 0.662916 | 605 | 4,444 | 4.6 | 0.181818 | 0.014373 | 0.017248 | 0.015092 | 0.121452 | 0.097736 | 0.03737 | 0 | 0 | 0 | 0 | 0.019793 | 0.238299 | 4,444 | 129 | 88 | 34.449612 | 0.802363 | 0.044779 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089109 | false | 0.089109 | 0.019802 | 0 | 0.207921 | 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 |
ef8b8b1bd3d66e993d36591bc62b946ae6df2b1c | 8,586 | py | Python | ssl_fastai2/models.py | Samjoel3101/Self-Supervised-Learning-fastai2 | 08c6262ecd9497658c1143b67bc9ce432e7a0c20 | [
"Apache-2.0"
] | null | null | null | ssl_fastai2/models.py | Samjoel3101/Self-Supervised-Learning-fastai2 | 08c6262ecd9497658c1143b67bc9ce432e7a0c20 | [
"Apache-2.0"
] | 1 | 2021-09-28T05:35:25.000Z | 2021-09-28T05:35:25.000Z | ssl_fastai2/models.py | Samjoel3101/Self-Supervised-Learning-fastai2 | 08c6262ecd9497658c1143b67bc9ce432e7a0c20 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 03_models.ipynb (unless otherwise specified).
__all__ = ['CGDResNet', 'arch_map', 'rep_resnet', 'L2Norm', 'lin_layer', 'BatchDropBlock', 'RepresentationHead',
'create_bottleneck', 'SSLModel', 'ImageRepEncoder', 'SIMClrHead', 'cgd_encoder', 'available_architectures... | 34.071429 | 149 | 0.657699 | 1,157 | 8,586 | 4.671564 | 0.203976 | 0.014801 | 0.016281 | 0.022202 | 0.215726 | 0.147271 | 0.093617 | 0.080666 | 0.080666 | 0.080666 | 0 | 0.027569 | 0.209993 | 8,586 | 252 | 150 | 34.071429 | 0.769276 | 0.040531 | 0 | 0.182796 | 1 | 0 | 0.083232 | 0.005849 | 0 | 0 | 0 | 0 | 0.005376 | 1 | 0.11828 | false | 0.005376 | 0.026882 | 0.021505 | 0.27957 | 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 |
ef94cd979cbe6a70107834d3f8a223ec5b168875 | 1,315 | py | Python | quicktest.py | pmarkiewicz/speedtest | 0767d2b14ffc2f0605d216f7b84ff7c23fde94dc | [
"MIT"
] | 1 | 2017-03-11T06:49:59.000Z | 2017-03-11T06:49:59.000Z | quicktest.py | pmarkiewicz/speedtest | 0767d2b14ffc2f0605d216f7b84ff7c23fde94dc | [
"MIT"
] | null | null | null | quicktest.py | pmarkiewicz/speedtest | 0767d2b14ffc2f0605d216f7b84ff7c23fde94dc | [
"MIT"
] | null | null | null | import argparse
import redislite
from redis_collections import List, Dict
from datetime import datetime
import processor
host = '192.168.10.150'
port = '8002'
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Speedtest quicktest")
parser.add_argument('-t', '--host', help='Remote host a... | 29.222222 | 99 | 0.653232 | 176 | 1,315 | 4.761364 | 0.375 | 0.065632 | 0.089499 | 0.060859 | 0.095465 | 0.095465 | 0.095465 | 0.095465 | 0.095465 | 0 | 0 | 0.015195 | 0.19924 | 1,315 | 44 | 100 | 29.886364 | 0.780627 | 0.044867 | 0 | 0 | 0 | 0 | 0.23745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.28125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef95babbcf6ff49ab6aa85b035b227bbe06e84c8 | 734 | py | Python | src/approle/azext_approle/commands.py | FrodeHus/azure-cli-extensions | 40a01e5aac138b3208eebeb0517d8af4751716f2 | [
"MIT"
] | null | null | null | src/approle/azext_approle/commands.py | FrodeHus/azure-cli-extensions | 40a01e5aac138b3208eebeb0517d8af4751716f2 | [
"MIT"
] | null | null | null | src/approle/azext_approle/commands.py | FrodeHus/azure-cli-extensions | 40a01e5aac138b3208eebeb0517d8af4751716f2 | [
"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.
# --------------------------------------------------------------------... | 45.875 | 94 | 0.546322 | 73 | 734 | 5.260274 | 0.630137 | 0.072917 | 0.145833 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121253 | 734 | 15 | 95 | 48.933333 | 0.595349 | 0.498638 | 0 | 0 | 0 | 0 | 0.367403 | 0.118785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 |
ef968e531b1bdf6c787d57f62e953c616bc47094 | 959 | py | Python | storage/app/templates/1/python/utils/pll_simulation.py | maep-tools/maep-backend | 1114995be4b423d64a8621b7703ef22d6ddb741e | [
"MIT"
] | 1 | 2018-08-17T00:11:56.000Z | 2018-08-17T00:11:56.000Z | storage/app/templates/1/python/utils/pll_simulation.py | maep-tools/backend | 1114995be4b423d64a8621b7703ef22d6ddb741e | [
"MIT"
] | null | null | null | storage/app/templates/1/python/utils/pll_simulation.py | maep-tools/backend | 1114995be4b423d64a8621b7703ef22d6ddb741e | [
"MIT"
] | null | null | null | def multicore():
import os
import subprocess
# The os.setsid() is passed in the argument preexec_fn so
# it's run after the fork() and before exec() to run the shell.
pro = subprocess.Popen('pyomo_ns >& ns.out &', stdout=subprocess.PIPE,
shell=True, preexec_fn=... | 28.205882 | 75 | 0.621481 | 129 | 959 | 4.426357 | 0.387597 | 0.098074 | 0.091068 | 0.119089 | 0.34676 | 0.262697 | 0.262697 | 0.108581 | 0 | 0 | 0 | 0.005525 | 0.245047 | 959 | 34 | 76 | 28.205882 | 0.783149 | 0.604797 | 0 | 0.2 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.7 | 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 |
efa0bbc8485eb2f49f962630f72e4b71a7ffa654 | 4,876 | py | Python | oss_src/unity/python/sframe/__init__.py | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 493 | 2016-07-11T13:35:24.000Z | 2022-02-15T13:04:29.000Z | oss_src/unity/python/sframe/__init__.py | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 27 | 2016-07-13T20:01:07.000Z | 2022-02-01T18:55:28.000Z | oss_src/unity/python/sframe/__init__.py | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 229 | 2016-07-12T10:39:54.000Z | 2022-02-15T13:04:31.000Z | """
@package graphlab
...
GraphLab Create is a machine learning platform that enables data scientists and
app developers to easily create intelligent applications at scale. Building an
intelligent, predictive application involves iterating over multiple steps:
cleaning the data, developing features, training a model, a... | 34.58156 | 142 | 0.730107 | 642 | 4,876 | 5.271028 | 0.376947 | 0.026005 | 0.058511 | 0.020095 | 0.201537 | 0.067376 | 0.067376 | 0.067376 | 0.067376 | 0.067376 | 0 | 0.003294 | 0.19073 | 4,876 | 140 | 143 | 34.828571 | 0.854283 | 0.149098 | 0 | 0.048193 | 0 | 0.012048 | 0.17707 | 0.006369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0.012048 | 0.493976 | 0 | 0.638554 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efadae7e7d91613003772b70f089249c8469b423 | 788 | py | Python | git_gopher/CheckoutTag.py | derekhamilton/git-gud | 7fd377a39796b0aa1268e7ecda6808e8e45173fe | [
"MIT"
] | 15 | 2019-11-13T20:59:53.000Z | 2020-12-15T05:21:21.000Z | git_gopher/CheckoutTag.py | derekhamilton/git-gud | 7fd377a39796b0aa1268e7ecda6808e8e45173fe | [
"MIT"
] | 50 | 2019-10-12T16:57:11.000Z | 2019-10-27T21:03:22.000Z | git_gopher/CheckoutTag.py | derekhamilton/git-gud | 7fd377a39796b0aa1268e7ecda6808e8e45173fe | [
"MIT"
] | 1 | 2019-11-14T03:20:21.000Z | 2019-11-14T03:20:21.000Z | from git_gopher.CommandInterface import CommandInterface
from git_gopher.NoTagsException import NoTagsException
from git_gopher.HistoryCommandRunner import HistoryCommandRunner
from git_gopher.GitDataGetter import GitDataGetter
class CheckoutTag(CommandInterface):
def __init__(self, hist_command_runner: HistoryCom... | 39.4 | 98 | 0.739848 | 90 | 788 | 6.144444 | 0.411111 | 0.050633 | 0.094033 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001575 | 0.194162 | 788 | 19 | 99 | 41.473684 | 0.869291 | 0 | 0 | 0 | 0 | 0 | 0.085025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efafa3ede5499098b50ed92fd07c0e13f2c57f18 | 525 | py | Python | services.py | anthill-gaming/game_controller | 849ea700263d7724d7a66907e0961956940e6c64 | [
"MIT"
] | null | null | null | services.py | anthill-gaming/game_controller | 849ea700263d7724d7a66907e0961956940e6c64 | [
"MIT"
] | null | null | null | services.py | anthill-gaming/game_controller | 849ea700263d7724d7a66907e0961956940e6c64 | [
"MIT"
] | null | null | null | from anthill.platform.services import PlainService, ControllerRole
from anthill.platform.api.internal import as_internal
from psutil import virtual_memory, cpu_percent
class Service(ControllerRole, PlainService):
"""Anthill default service."""
master = 'game_master'
@staticmethod
def setup_internal_a... | 29.166667 | 66 | 0.662857 | 53 | 525 | 6.377358 | 0.528302 | 0.065089 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245714 | 525 | 17 | 67 | 30.882353 | 0.853535 | 0.045714 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.538462 | 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 |
efb51784e7594920ff3d62df18c4ea882ae9e537 | 1,075 | py | Python | tests/models/test_model_invitation.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 4 | 2018-03-01T10:22:30.000Z | 2020-04-04T16:31:11.000Z | tests/models/test_model_invitation.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 60 | 2018-05-20T04:42:32.000Z | 2022-02-10T17:03:37.000Z | tests/models/test_model_invitation.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 1 | 2018-08-04T05:06:45.000Z | 2018-08-04T05:06:45.000Z |
import pytest
from django.core.exceptions import ValidationError
from bitcaster.models.invitation import Invitation
from bitcaster.utils.tests.factories import InvitationFactory
pytestmark = pytest.mark.django_db
def test_create_with_organization1(organization1):
i = Invitation(organization=organization1)
... | 24.431818 | 80 | 0.755349 | 126 | 1,075 | 6.31746 | 0.31746 | 0.052764 | 0.065327 | 0.06407 | 0.150754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016447 | 0.151628 | 1,075 | 43 | 81 | 25 | 0.85636 | 0 | 0 | 0.142857 | 0 | 0 | 0.018622 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
efb62b546d9905d894d3f8814af20d61d366f28f | 782 | py | Python | urlreplacer/urls.py | tictail/urlreplacer | b5fe182455411f782e9a53db334ecb892db2da05 | [
"MIT"
] | 3 | 2015-11-12T15:14:23.000Z | 2019-06-17T18:32:35.000Z | urlreplacer/urls.py | tictail/urlreplacer | b5fe182455411f782e9a53db334ecb892db2da05 | [
"MIT"
] | null | null | null | urlreplacer/urls.py | tictail/urlreplacer | b5fe182455411f782e9a53db334ecb892db2da05 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Using pypi/regex instead because of http://bugs.python.org/issue1693050
import regex
from .tlds import TLDs
regex = regex.compile(
ur'(?<=^|\s)\b(http(?:s)?://)?([^/\s@]+)\.({})(\b)(\S*?)(?=$|\s|[,!\.\?]([\s]|$))'.format(
ur'|'.join(TLDs())
),
regex.IGNORECASE | regex.UN... | 21.722222 | 94 | 0.584399 | 102 | 782 | 4.401961 | 0.460784 | 0.13363 | 0.080178 | 0.097996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.212276 | 782 | 35 | 95 | 22.342857 | 0.711039 | 0.118926 | 0 | 0 | 0 | 0 | 0.131195 | 0.113703 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efc98b27290fae9417c550666d1bbd5f7a99fa40 | 1,209 | py | Python | SportBetProject/Bet/tests.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | 1 | 2021-06-22T14:13:20.000Z | 2021-06-22T14:13:20.000Z | SportBetProject/Bet/tests.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | null | null | null | SportBetProject/Bet/tests.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | null | null | null | from django.test import TestCase
from rest_framework.test import APITestCase
from django.contrib.auth.models import User
from .models import Bet
from django.urls import reverse
from MatchTeam.models import Match,Team
from userprofile.models import Profile
class BetTest(APITestCase):
def setUp(self) -> None:
... | 41.689655 | 86 | 0.650951 | 164 | 1,209 | 4.707317 | 0.426829 | 0.084197 | 0.023316 | 0.033679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052966 | 0.219189 | 1,209 | 29 | 87 | 41.689655 | 0.764831 | 0 | 0 | 0 | 0 | 0 | 0.055372 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.08 | false | 0.08 | 0.28 | 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 |
efcc7d2e77271c2433dfedc5a700adddfb5e680e | 1,623 | py | Python | src/cutty/templates/adapters/cookiecutter/extensions.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 1 | 2021-11-15T20:27:59.000Z | 2021-11-15T20:27:59.000Z | src/cutty/templates/adapters/cookiecutter/extensions.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 171 | 2020-07-24T07:30:20.000Z | 2022-03-31T14:05:45.000Z | src/cutty/templates/adapters/cookiecutter/extensions.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | null | null | null | """Jinja extensions."""
import json
import string
from secrets import choice
from typing import Any
from typing import Union
import jinja2.ext
import jinja2_time
from slugify import slugify
def jsonify(obj: Any) -> str:
"""Convert a Python object to JSON."""
return json.dumps(obj, sort_keys=True, indent=4)
... | 27.508475 | 72 | 0.69809 | 180 | 1,623 | 6.094444 | 0.35 | 0.041021 | 0.065634 | 0.062899 | 0.393801 | 0.393801 | 0.253418 | 0.253418 | 0.253418 | 0.253418 | 0 | 0.008308 | 0.184227 | 1,623 | 58 | 73 | 27.982759 | 0.820242 | 0.149107 | 0 | 0.181818 | 0 | 0 | 0.024719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.242424 | 0 | 0.545455 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.