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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f05a35db2bf24e5cd3d450829e44e1d6868265e | 2,348 | py | Python | apps/agendas/tests/unit/selectors/test_doctor_profile_selector.py | victoraguilarc/agendas | 31b24a2d6350605b638b59062f297ef3f58e9879 | [
"MIT"
] | 2 | 2020-06-06T23:10:27.000Z | 2020-10-06T19:12:26.000Z | apps/agendas/tests/unit/selectors/test_doctor_profile_selector.py | victoraguilarc/medical-appointment | 31b24a2d6350605b638b59062f297ef3f58e9879 | [
"MIT"
] | 3 | 2021-04-08T20:44:38.000Z | 2021-09-22T19:04:16.000Z | apps/agendas/tests/unit/selectors/test_doctor_profile_selector.py | victoraguilarc/agendas | 31b24a2d6350605b638b59062f297ef3f58e9879 | [
"MIT"
] | 1 | 2020-10-10T14:07:37.000Z | 2020-10-10T14:07:37.000Z | # -*- coding: utf-8 -*-
import pytest
from django.db.models import QuerySet
from rest_framework.exceptions import NotFound
from apps.accounts.response_codes import INVALID_TOKEN
from apps.accounts.selectors.pending_action_selector import PendingActionSelector
from apps.accounts.tests.factories.pending_action import P... | 35.044776 | 93 | 0.774702 | 273 | 2,348 | 6.406593 | 0.322344 | 0.04574 | 0.034305 | 0.050314 | 0.328188 | 0.293882 | 0.179531 | 0.148656 | 0.148656 | 0.148656 | 0 | 0.002024 | 0.158433 | 2,348 | 66 | 94 | 35.575758 | 0.883097 | 0.008944 | 0 | 0.28 | 0 | 0 | 0.001721 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.12 | false | 0.04 | 0.3 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0795f4ecbd539f9866bfa75241bdbacd313bed | 1,532 | py | Python | catalog/views/api.py | iraquitan/catalog-app-flask | 563981ddc8d55c62428cd4811bdea73ee8f8a846 | [
"MIT"
] | null | null | null | catalog/views/api.py | iraquitan/catalog-app-flask | 563981ddc8d55c62428cd4811bdea73ee8f8a846 | [
"MIT"
] | null | null | null | catalog/views/api.py | iraquitan/catalog-app-flask | 563981ddc8d55c62428cd4811bdea73ee8f8a846 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
* Created by PyCharm.
* Project: catalog
* Author name: Iraquitan Cordeiro Filho
* Author login: pma007
* File: api
* Date: 2/26/16
* Time: 11:26
* To change this template use File | Settings | File Templates.
"""
from flask import Blueprint, jsonify
from catalog.models import Categ... | 30.039216 | 79 | 0.719321 | 208 | 1,532 | 5.134615 | 0.298077 | 0.067416 | 0.060861 | 0.047753 | 0.426966 | 0.426966 | 0.325843 | 0.325843 | 0.325843 | 0.325843 | 0 | 0.016949 | 0.152742 | 1,532 | 50 | 80 | 30.64 | 0.805855 | 0.177546 | 0 | 0.214286 | 0 | 0 | 0.106999 | 0.087691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0912cfcdcc52bdc014aa57f2387fcc7c7c1a0f | 1,854 | py | Python | tests/test_debug.py | HazemElAgaty/psycopg2-pgevents | c0952608777052ea2cb90d8c78802ad03f8f3da1 | [
"MIT"
] | 11 | 2019-07-12T17:25:36.000Z | 2021-06-07T12:51:31.000Z | tests/test_debug.py | HazemElAgaty/psycopg2-pgevents | c0952608777052ea2cb90d8c78802ad03f8f3da1 | [
"MIT"
] | 5 | 2020-06-21T14:58:21.000Z | 2021-09-06T09:34:32.000Z | tests/test_debug.py | HazemElAgaty/psycopg2-pgevents | c0952608777052ea2cb90d8c78802ad03f8f3da1 | [
"MIT"
] | 4 | 2019-07-12T17:25:37.000Z | 2021-07-13T13:26:58.000Z | from pytest import raises
from psycopg2_pgevents import debug
from psycopg2_pgevents.debug import log, set_debug
class TestDebug:
def test_set_debug_disabled(self):
debug._DEBUG_ENABLED = True
set_debug(False)
assert not debug._DEBUG_ENABLED
def test_set_debug_enabled(self):
... | 27.264706 | 90 | 0.600863 | 242 | 1,854 | 4.404959 | 0.235537 | 0.11257 | 0.056285 | 0.11257 | 0.439024 | 0.324578 | 0.257036 | 0.195122 | 0.195122 | 0.157599 | 0 | 0.013206 | 0.264833 | 1,854 | 67 | 91 | 27.671642 | 0.768892 | 0.036138 | 0 | 0.363636 | 0 | 0 | 0.114846 | 0.011765 | 0 | 0 | 0 | 0 | 0.295455 | 1 | 0.181818 | false | 0 | 0.068182 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0a52e79ef2f2c527b1cb664f5e0e589f53a413 | 1,148 | py | Python | abstracto-application/installer/src/main/docker/deployment/python/templates_deploy.py | Sheldan/abstracto | cef46737c5f34719c80c71aa9cd68bc53aea9a68 | [
"MIT"
] | 5 | 2020-05-27T14:18:51.000Z | 2021-03-24T09:23:09.000Z | abstracto-application/installer/src/main/docker/deployment/python/templates_deploy.py | Sheldan/abstracto | cef46737c5f34719c80c71aa9cd68bc53aea9a68 | [
"MIT"
] | 5 | 2020-05-29T21:53:53.000Z | 2021-05-26T12:19:16.000Z | abstracto-application/installer/src/main/docker/deployment/python/templates_deploy.py | Sheldan/abstracto | cef46737c5f34719c80c71aa9cd68bc53aea9a68 | [
"MIT"
] | null | null | null | import glob
import os
import sqlalchemy as db
from sqlalchemy.sql import text
def deploy_template_folder(db_config, folder):
engine = db.create_engine('postgresql://%s:%s@%s:%s/%s' % (db_config.user, db_config.password, db_config.host, db_config.port, db_config.database))
if not os.path.isdir(folder):
... | 37.032258 | 166 | 0.642857 | 151 | 1,148 | 4.781457 | 0.463576 | 0.066482 | 0.012465 | 0.01108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002252 | 0.226481 | 1,148 | 30 | 167 | 38.266667 | 0.810811 | 0 | 0 | 0 | 0 | 0.043478 | 0.21777 | 0.023519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.173913 | 0 | 0.217391 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0a965a14ab29cfb59691e71680ca0613d8037e | 8,466 | py | Python | src/external.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | src/external.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | src/external.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | ######################################################################
# EXTERNAL #
######################################################################
from Classes.Metadata import Metadata
from subprocess import PIPE, Popen
from extension import *
from col... | 46.516484 | 155 | 0.583038 | 1,007 | 8,466 | 4.812314 | 0.147964 | 0.088527 | 0.031779 | 0.034668 | 0.691911 | 0.605861 | 0.547049 | 0.486587 | 0.434173 | 0.372472 | 0 | 0.008337 | 0.277463 | 8,466 | 181 | 156 | 46.773481 | 0.783881 | 0.000945 | 0 | 0.379562 | 0 | 0.043796 | 0.35126 | 0.031856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021898 | false | 0 | 0.058394 | 0 | 0.080292 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0bcf77d0e89f7eeb81cfefde1fb86ef9a0fc3f | 2,844 | py | Python | LeetCode/Python3/HashTable/451. Sort Characters By Frequency.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/HashTable/451. Sort Characters By Frequency.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/HashTable/451. Sort Characters By Frequency.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # Given a string, sort it in decreasing order based on the frequency of characters.
# Example 1:
# Input:
# "tree"
# Output:
# "eert"
# Explanation:
# 'e' appears twice while 'r' and 't' both appear once.
# So 'e' must appear before both 'r' and 't'. Therefore "eetr" is also a valid answer.
# Example 2:
# Input:
# "... | 27.61165 | 86 | 0.522504 | 371 | 2,844 | 3.973046 | 0.38814 | 0.020353 | 0.014247 | 0.024423 | 0.265943 | 0.220488 | 0.183853 | 0.123474 | 0.123474 | 0.123474 | 0 | 0.005777 | 0.33052 | 2,844 | 103 | 87 | 27.61165 | 0.768382 | 0.482068 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0bf2755cfa5ea302283c30bc9e0ccfd4f8893d | 1,837 | py | Python | ttkinter_app.py | bombero2020/python_tools | 393092609c4555e47b9789eb3fcb614ea25fdef9 | [
"MIT"
] | null | null | null | ttkinter_app.py | bombero2020/python_tools | 393092609c4555e47b9789eb3fcb614ea25fdef9 | [
"MIT"
] | null | null | null | ttkinter_app.py | bombero2020/python_tools | 393092609c4555e47b9789eb3fcb614ea25fdef9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter as tk
from tkinter import ttk
class HashCorpFrame(ttk.Frame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.name_entry = ttk.Entry(self)
self.name_entry.pack()
self.greet_button = ttk.But... | 27.41791 | 66 | 0.616222 | 226 | 1,837 | 4.79646 | 0.327434 | 0.064576 | 0.030443 | 0.041513 | 0.285978 | 0.208487 | 0.095941 | 0.095941 | 0.095941 | 0.095941 | 0 | 0.012266 | 0.245509 | 1,837 | 67 | 67 | 27.41791 | 0.76912 | 0.032118 | 0 | 0.136364 | 0 | 0 | 0.083333 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f0dcd6e6a26bb27177e11fcbcba91b603bd720d | 8,513 | py | Python | api/src/dojo.py | mosoriob/dojo | 71bba04c4fdc4224320087b4c400fcba91b6597d | [
"MIT"
] | 1 | 2021-10-08T00:47:58.000Z | 2021-10-08T00:47:58.000Z | api/src/dojo.py | mosoriob/dojo | 71bba04c4fdc4224320087b4c400fcba91b6597d | [
"MIT"
] | null | null | null | api/src/dojo.py | mosoriob/dojo | 71bba04c4fdc4224320087b4c400fcba91b6597d | [
"MIT"
] | null | null | null |
import uuid
from typing import List
from elasticsearch import Elasticsearch
from elasticsearch.exceptions import NotFoundError
from fastapi import APIRouter, Response, status
from validation import DojoSchema
from src.settings import settings
import logging
logger = logging.getLogger(__name__)
router = APIRouter... | 35.470833 | 127 | 0.649595 | 1,133 | 8,513 | 4.770521 | 0.169462 | 0.045328 | 0.044403 | 0.053284 | 0.583164 | 0.531915 | 0.513784 | 0.483256 | 0.459019 | 0.448844 | 0 | 0.00765 | 0.232233 | 8,513 | 240 | 128 | 35.470833 | 0.819308 | 0.241278 | 0 | 0.348993 | 0 | 0 | 0.218002 | 0.050431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073826 | false | 0 | 0.053691 | 0 | 0.248322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f10c305acc4e613b5656eb25e050b130ecbb7b2 | 631 | py | Python | examples/house_prices_kaggle.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | examples/house_prices_kaggle.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | examples/house_prices_kaggle.py | ChillBoss/ml_automation | 50d42b3cd5a3bb2f7a91e4c53bf3bbfe7a3b1741 | [
"MIT"
] | null | null | null | # Regression Task, assumption is that the data is in the right directory
# data can be taken from https://www.kaggle.com/c/house-prices-advanced-regression-techniques/data
import os
import ml_automation
if __name__ == '__main__':
data_dir = os.path.join(os.path.dirname(__file__), 'data')
f_train = os.path.jo... | 30.047619 | 98 | 0.66561 | 89 | 631 | 4.438202 | 0.561798 | 0.060759 | 0.075949 | 0.070886 | 0.086076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213946 | 631 | 20 | 99 | 31.55 | 0.796371 | 0.29477 | 0 | 0 | 0 | 0 | 0.093182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f140a8d48047d7ddb5cd0c7677d6976d0a7cec0 | 827 | py | Python | threatstack/v1/client.py | giany/threatstack-python-client | c9e0a4bed55685d3a032c6f1a03261d44de64c4a | [
"MIT"
] | 4 | 2018-03-14T21:51:46.000Z | 2020-01-06T17:25:53.000Z | threatstack/v1/client.py | giany/threatstack-python-client | c9e0a4bed55685d3a032c6f1a03261d44de64c4a | [
"MIT"
] | 4 | 2018-01-17T19:58:29.000Z | 2018-04-13T17:03:01.000Z | threatstack/v1/client.py | giany/threatstack-python-client | c9e0a4bed55685d3a032c6f1a03261d44de64c4a | [
"MIT"
] | 6 | 2018-01-15T18:46:25.000Z | 2022-02-17T10:13:35.000Z | """
V1 Client
"""
from threatstack.base import BaseClient
from threatstack.v1 import resources
class Client(BaseClient):
BASE_URL = "https://app.threatstack.com/api/v1/"
def __init__(self, api_key=None, org_id=None, user_id=None, timeout=None):
BaseClient.__init__(self, api_key=api_key, timeout=ti... | 27.566667 | 78 | 0.665054 | 103 | 827 | 5.106796 | 0.339806 | 0.047529 | 0.057034 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.227328 | 827 | 29 | 79 | 28.517241 | 0.818466 | 0.010883 | 0 | 0 | 0 | 0 | 0.074166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f14372008e665aac666215605a53db7e9d8af9a | 5,930 | py | Python | djangocms_newsletter/admin/mailinglist.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | null | null | null | djangocms_newsletter/admin/mailinglist.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | null | null | null | djangocms_newsletter/admin/mailinglist.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T13:33:53.000Z | 2021-05-18T20:34:47.000Z | """ModelAdmin for MailingList"""
from datetime import datetime
from django.contrib import admin
from django.conf.urls.defaults import url
from django.conf.urls.defaults import patterns
from django.utils.encoding import smart_str
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_40... | 47.063492 | 96 | 0.663238 | 634 | 5,930 | 5.987382 | 0.22082 | 0.021075 | 0.035827 | 0.056902 | 0.301106 | 0.251054 | 0.204162 | 0.204162 | 0.204162 | 0.141201 | 0 | 0.00265 | 0.236425 | 5,930 | 125 | 97 | 47.44 | 0.835689 | 0.028668 | 0 | 0.076923 | 0 | 0.009615 | 0.134112 | 0.046216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.163462 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f18561e37fb0a33a844c99a5051aea7c8863cea | 4,263 | py | Python | lib/train/recorder.py | rurusasu/OrigNet | 3b3384cb3d09b52c7c98bb264901285f006e51c1 | [
"Apache-2.0"
] | null | null | null | lib/train/recorder.py | rurusasu/OrigNet | 3b3384cb3d09b52c7c98bb264901285f006e51c1 | [
"Apache-2.0"
] | null | null | null | lib/train/recorder.py | rurusasu/OrigNet | 3b3384cb3d09b52c7c98bb264901285f006e51c1 | [
"Apache-2.0"
] | 1 | 2021-09-24T01:24:05.000Z | 2021-09-24T01:24:05.000Z | import os
import sys
from collections import deque, defaultdict
from typing import Dict, Union
sys.path.append("../../")
import torch
import torchvision.utils as vutils
from tensorboardX import SummaryWriter
class SmoothedValue(object):
"""Track a series of values and provide access to smoothed values over a
... | 29 | 80 | 0.569317 | 539 | 4,263 | 4.352505 | 0.274583 | 0.051151 | 0.029838 | 0.014919 | 0.116795 | 0.059676 | 0.059676 | 0.059676 | 0.030691 | 0 | 0 | 0.008172 | 0.311049 | 4,263 | 146 | 81 | 29.19863 | 0.790603 | 0.113535 | 0 | 0.05102 | 0 | 0 | 0.035997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.020408 | 0.295918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f1970116641c3a579674b0a3cde7a6940267ce4 | 5,642 | py | Python | scrapytest/spiders.py | coderatchet/scrapy-test | 4f5febfca05d267dc98df94e65a403210ce39d81 | [
"Apache-2.0"
] | null | null | null | scrapytest/spiders.py | coderatchet/scrapy-test | 4f5febfca05d267dc98df94e65a403210ce39d81 | [
"Apache-2.0"
] | null | null | null | scrapytest/spiders.py | coderatchet/scrapy-test | 4f5febfca05d267dc98df94e65a403210ce39d81 | [
"Apache-2.0"
] | null | null | null | import logging
import re
from datetime import datetime
import scrapy
from scrapy.http import Response
# noinspection PyUnresolvedReferences
import scrapytest.db
from scrapytest.config import config
from scrapytest.types import Article
from scrapytest.utils import merge_dict
log = logging.getLogger(__name__)
class ... | 40.589928 | 119 | 0.63045 | 690 | 5,642 | 4.957971 | 0.268116 | 0.035077 | 0.0228 | 0.023385 | 0.014616 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002419 | 0.267281 | 5,642 | 138 | 120 | 40.884058 | 0.825109 | 0.216767 | 0 | 0.063291 | 0 | 0 | 0.139915 | 0.025331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0.126582 | 0 | 0.265823 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f1c1c275c8674c941378ad94c7d52f05e79ddd2 | 14,861 | py | Python | userge/plugins/admin/gban.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | userge/plugins/admin/gban.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | userge/plugins/admin/gban.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | """ setup gban """
# Copyright (C) 2020 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights res... | 43.200581 | 95 | 0.554942 | 1,872 | 14,861 | 4.235577 | 0.15438 | 0.093833 | 0.052466 | 0.054484 | 0.527431 | 0.507252 | 0.462858 | 0.447471 | 0.404969 | 0.365115 | 0 | 0.003963 | 0.286926 | 14,861 | 343 | 96 | 43.326531 | 0.743418 | 0.024965 | 0 | 0.418605 | 0 | 0.009967 | 0.345096 | 0.098429 | 0 | 0 | 0 | 0.002915 | 0 | 1 | 0.003322 | false | 0.009967 | 0.026578 | 0.003322 | 0.069767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f289aaa4dfd07380db23d1700f9b70a80d10934 | 5,266 | py | Python | oaipmh/__init__.py | scieloorg/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2019-03-16T04:40:29.000Z | 2022-03-10T14:50:21.000Z | oaipmh/__init__.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 27 | 2017-08-23T17:11:57.000Z | 2021-06-01T21:57:31.000Z | oaipmh/__init__.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2017-06-12T16:18:35.000Z | 2019-03-16T04:40:12.000Z | import os
import re
from pyramid.config import Configurator
from pyramid.events import NewRequest
from oaipmh import (
repository,
datastores,
sets,
utils,
articlemeta,
entities,
)
from oaipmh.formatters import (
oai_dc,
oai_dc_openaire,
... | 33.329114 | 80 | 0.657615 | 542 | 5,266 | 6.219557 | 0.308118 | 0.074162 | 0.053397 | 0.026105 | 0.088401 | 0.056363 | 0.056363 | 0.056363 | 0.056363 | 0.056363 | 0 | 0.007635 | 0.229016 | 5,266 | 157 | 81 | 33.541401 | 0.82266 | 0.045196 | 0 | 0.051282 | 0 | 0 | 0.255898 | 0.145942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.051282 | 0.017094 | 0.196581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f2a79411bbedc2b8b017ecceddbf86f3d9843cc | 1,613 | py | Python | create_training_data.py | nasi-famnit/HOur-flight | 96a9aeb1cf0f3fa588c587db08ba0b8fa980eac9 | [
"MIT"
] | 1 | 2016-04-24T10:49:52.000Z | 2016-04-24T10:49:52.000Z | create_training_data.py | nasi-famnit/HOur-flight | 96a9aeb1cf0f3fa588c587db08ba0b8fa980eac9 | [
"MIT"
] | null | null | null | create_training_data.py | nasi-famnit/HOur-flight | 96a9aeb1cf0f3fa588c587db08ba0b8fa980eac9 | [
"MIT"
] | null | null | null | import flightdata
import weatherparser
import airportdata
import pandas as pd
from datetime import datetime
from pathlib import Path
flights = flightdata.read_csv('data/unpacked/flights/On_Time_On_Time_Performance_2016_1.csv')
fname = 'data/processed/training/training{:04}_v1.csv'
prev_time = datetime.now()
df = pd... | 37.511628 | 276 | 0.675139 | 205 | 1,613 | 5.146341 | 0.419512 | 0.02654 | 0.03981 | 0.034123 | 0.157346 | 0.157346 | 0.157346 | 0.100474 | 0 | 0 | 0 | 0.031563 | 0.194668 | 1,613 | 42 | 277 | 38.404762 | 0.7806 | 0 | 0 | 0.111111 | 0 | 0 | 0.200248 | 0.064476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f2e54facc35f3d3aca215fe2e3b9ff2dc7350a5 | 4,374 | py | Python | metadrive/config.py | wefindx/metadrive | 576d240065b61b0187afc249819b705c06308d05 | [
"Apache-2.0"
] | 7 | 2019-02-04T18:31:06.000Z | 2021-12-22T17:08:55.000Z | metadrive/config.py | wefindx/metadrive | 576d240065b61b0187afc249819b705c06308d05 | [
"Apache-2.0"
] | 11 | 2019-04-30T18:19:33.000Z | 2019-08-15T19:56:37.000Z | metadrive/config.py | wefindx/metadrive | 576d240065b61b0187afc249819b705c06308d05 | [
"Apache-2.0"
] | 2 | 2019-01-26T03:17:25.000Z | 2019-04-15T18:35:56.000Z | import os
import imp
from pathlib import Path
import configparser
import requests
import gpgrecord
config = configparser.ConfigParser()
INSTALLED = imp.find_module('metadrive')[1]
HOME = str(Path.home())
DEFAULT_LOCATION = os.path.join(HOME,'.metadrive')
CONFIG_LOCATION = os.path.join(DEFAULT_LOCATION, 'config')
CRED... | 29.355705 | 131 | 0.645405 | 566 | 4,374 | 4.833922 | 0.242049 | 0.037281 | 0.03655 | 0.043494 | 0.310307 | 0.225877 | 0.192982 | 0.119883 | 0.119883 | 0.119883 | 0 | 0.008014 | 0.201189 | 4,374 | 148 | 132 | 29.554054 | 0.775043 | 0.013946 | 0 | 0.174312 | 0 | 0.009174 | 0.211333 | 0.010218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.055046 | 0 | 0.146789 | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f2efcc18abcce7bbf0e01ac810dce1793930f16 | 1,272 | py | Python | project/matching/migrations/0001_initial.py | Project-EPIC/emergencypetmatcher | 72c9eec228e33c9592243266e048dc02824d778d | [
"MIT"
] | null | null | null | project/matching/migrations/0001_initial.py | Project-EPIC/emergencypetmatcher | 72c9eec228e33c9592243266e048dc02824d778d | [
"MIT"
] | null | null | null | project/matching/migrations/0001_initial.py | Project-EPIC/emergencypetmatcher | 72c9eec228e33c9592243266e048dc02824d778d | [
"MIT"
] | 1 | 2021-06-24T01:50:06.000Z | 2021-06-24T01:50:06.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('reporting', '0002_remove_petreport_revision_number'),
('socializing', '__first__'),
]
operations = [
migrations.Crea... | 43.862069 | 123 | 0.644654 | 125 | 1,272 | 6.24 | 0.48 | 0.070513 | 0.076923 | 0.119231 | 0.369231 | 0.105128 | 0.105128 | 0 | 0 | 0 | 0 | 0.00502 | 0.216981 | 1,272 | 28 | 124 | 45.428571 | 0.778112 | 0.016509 | 0 | 0 | 0 | 0 | 0.272218 | 0.084868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f31588bc153ffcf5b70c1b521bc861fcd11b513 | 5,123 | py | Python | lithops/localhost/local_handler.py | GEizaguirre/lithops | 296451ea3ebf630a5dca2f17248387e6bb1ee5b6 | [
"Apache-2.0"
] | null | null | null | lithops/localhost/local_handler.py | GEizaguirre/lithops | 296451ea3ebf630a5dca2f17248387e6bb1ee5b6 | [
"Apache-2.0"
] | null | null | null | lithops/localhost/local_handler.py | GEizaguirre/lithops | 296451ea3ebf630a5dca2f17248387e6bb1ee5b6 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import json
import pkgutil
import logging
import uuid
import time
import multiprocessing
from pathlib import Path
from threading import Thread
from types import SimpleNamespace
from multiprocessing import Process, Queue
from lithops.utils import version_str, is_unix_system
from lithops.worker impor... | 33.927152 | 104 | 0.610189 | 598 | 5,123 | 4.978261 | 0.294314 | 0.015116 | 0.030568 | 0.026873 | 0.121599 | 0.121599 | 0.089016 | 0.061807 | 0.061807 | 0.039637 | 0 | 0.001892 | 0.277962 | 5,123 | 150 | 105 | 34.153333 | 0.80292 | 0.020886 | 0 | 0.071429 | 0 | 0 | 0.115916 | 0.00961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0.008929 | 0.142857 | 0 | 0.214286 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0294cc7bc1ae9063a289d36fbf581ccd346caba | 1,008 | py | Python | SC_projects/recursion/dice_rolls_sum.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/recursion/dice_rolls_sum.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/recursion/dice_rolls_sum.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | """
File: dice_rolls_sum.py
Name: Sharon
-----------------------------
This program finds all the dice rolls permutations
that sum up to a constant TOTAL. Students will find
early stopping a good strategy of decreasing the number
of recursive calls
"""
# This constant controls the sum of dice of our interest
TOTAL = 8... | 21 | 56 | 0.545635 | 131 | 1,008 | 4.030534 | 0.480916 | 0.075758 | 0.073864 | 0.102273 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.339286 | 1,008 | 47 | 57 | 21.446809 | 0.779279 | 0.338294 | 0 | 0 | 0 | 0 | 0.054962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.136364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a02a39862663da51e8f5219d5dd8ae0de6edd96f | 909 | py | Python | valid_parentheses.py | KevinLuo41/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | 19 | 2015-01-19T19:36:09.000Z | 2020-03-18T03:10:12.000Z | valid_parentheses.py | CodingVault/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | null | null | null | valid_parentheses.py | CodingVault/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | 12 | 2015-04-25T14:20:38.000Z | 2020-09-27T04:59:59.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
valid_parentheses.py
Created by Shengwei on 2014-07-24.
"""
# https://oj.leetcode.com/problems/valid-parentheses/
# tags: easy, array, parentheses, stack
"""
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is val... | 26.735294 | 118 | 0.540154 | 109 | 909 | 4.495413 | 0.66055 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015723 | 0.30033 | 909 | 33 | 119 | 27.545455 | 0.754717 | 0.267327 | 0 | 0 | 0 | 0 | 0.01432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0302470addb803e75aa2587a1202d6ec072bcdf | 3,104 | py | Python | doc/terms.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | doc/terms.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | doc/terms.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | """Terms used in the bot."""
from collections import OrderedDict
from dataclasses import dataclass
from typing import List
from django.utils.translation import gettext_lazy as _
from JellyBot.systemconfig import Database
@dataclass
class TermExplanation:
"""An entry for a term and its explanation."""
term:... | 47.030303 | 119 | 0.61018 | 364 | 3,104 | 5.142857 | 0.453297 | 0.024038 | 0.032051 | 0.018162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00185 | 0.303479 | 3,104 | 65 | 120 | 47.753846 | 0.864015 | 0.031894 | 0 | 0.039216 | 0 | 0.058824 | 0.552359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.098039 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a032fe94d351a63b7d04128ecd927fbb6c87a879 | 6,144 | py | Python | service/azservice/tooling1.py | cnective-inc/vscode-azurecli | 0ac34e2214078270b63cf6716423d40a60423834 | [
"MIT"
] | 38 | 2019-06-21T00:26:15.000Z | 2022-03-19T05:23:55.000Z | service/azservice/tooling1.py | cnective-inc/vscode-azurecli | 0ac34e2214078270b63cf6716423d40a60423834 | [
"MIT"
] | 46 | 2017-05-17T09:00:51.000Z | 2019-04-24T10:18:19.000Z | service/azservice/tooling1.py | cnective-inc/vscode-azurecli | 0ac34e2214078270b63cf6716423d40a60423834 | [
"MIT"
] | 27 | 2019-05-19T18:42:42.000Z | 2022-01-18T09:14:26.000Z | """tooling integration"""
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------------------------------------------... | 29.681159 | 108 | 0.662598 | 704 | 6,144 | 5.522727 | 0.242898 | 0.020576 | 0.024691 | 0.032922 | 0.150977 | 0.082562 | 0.047068 | 0.047068 | 0.022119 | 0 | 0 | 0.000625 | 0.218262 | 6,144 | 206 | 109 | 29.825243 | 0.808869 | 0.066895 | 0 | 0.16 | 0 | 0 | 0.091592 | 0.008915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126667 | false | 0.006667 | 0.126667 | 0.02 | 0.406667 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a03a7becb2df6dd7e3600ceabbb203ca1e648d2d | 10,131 | py | Python | venv/lib/python3.8/site-packages/hgext/remotefilelog/shallowbundle.py | JesseDavids/mqtta | 389eb4f06242d4473fe1bcff7fc6a22290e0d99c | [
"Apache-2.0"
] | 4 | 2021-02-05T10:57:39.000Z | 2022-02-25T04:43:23.000Z | venv/lib/python3.8/site-packages/hgext/remotefilelog/shallowbundle.py | JesseDavids/mqtta | 389eb4f06242d4473fe1bcff7fc6a22290e0d99c | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/hgext/remotefilelog/shallowbundle.py | JesseDavids/mqtta | 389eb4f06242d4473fe1bcff7fc6a22290e0d99c | [
"Apache-2.0"
] | null | null | null | # shallowbundle.py - bundle10 implementation for use with shallow repositories
#
# Copyright 2013 Facebook, Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from mercurial.i18n import _
f... | 33.325658 | 80 | 0.583062 | 1,111 | 10,131 | 5.30063 | 0.288929 | 0.011887 | 0.008151 | 0.015622 | 0.163695 | 0.117677 | 0.089659 | 0.065886 | 0.024113 | 0.024113 | 0 | 0.008082 | 0.328299 | 10,131 | 303 | 81 | 33.435644 | 0.857311 | 0.141743 | 0 | 0.210046 | 0 | 0 | 0.033707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045662 | false | 0 | 0.022831 | 0.004566 | 0.164384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a03aa51d99ddd848b1a155bf6b547a0503967011 | 10,507 | py | Python | tests/test_main.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | 1 | 2018-01-26T12:45:44.000Z | 2018-01-26T12:45:44.000Z | tests/test_main.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | null | null | null | tests/test_main.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Functional tests for the main password manager page
# Currently targeting Firefox
# Depends on the vault configuration provided by the startdev.sh script.
# Depends on pytest-sourceorder to force test case execution order.
# TODO: configure vault data from pretest fixture.
import datetime
import ... | 31.743202 | 101 | 0.596745 | 1,121 | 10,507 | 5.507583 | 0.242641 | 0.020732 | 0.027373 | 0.039359 | 0.472465 | 0.44493 | 0.408487 | 0.375445 | 0.320862 | 0.237609 | 0 | 0.009158 | 0.262111 | 10,507 | 330 | 102 | 31.839394 | 0.787179 | 0.185781 | 0 | 0.571429 | 0 | 0 | 0.252484 | 0.010056 | 0 | 0 | 0 | 0.00303 | 0.133929 | 1 | 0.071429 | false | 0.040179 | 0.049107 | 0 | 0.129464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a03d0e1506063ae02913fe583bcbdc21759f23a9 | 2,031 | py | Python | reacticket/extensions/usersettings.py | i-am-zaidali/Toxic-Cogs | 088cb364f9920c20879751da6b7333118ba1bf41 | [
"MIT"
] | 56 | 2019-03-21T21:03:26.000Z | 2022-03-14T08:26:55.000Z | reacticket/extensions/usersettings.py | i-am-zaidali/Toxic-Cogs | 088cb364f9920c20879751da6b7333118ba1bf41 | [
"MIT"
] | 38 | 2019-08-20T02:18:27.000Z | 2022-02-22T11:19:05.000Z | reacticket/extensions/usersettings.py | i-am-zaidali/Toxic-Cogs | 088cb364f9920c20879751da6b7333118ba1bf41 | [
"MIT"
] | 44 | 2019-07-04T06:17:54.000Z | 2022-03-25T19:18:31.000Z | from typing import Optional
from reacticket.extensions.abc import MixinMeta
from reacticket.extensions.mixin import settings
class ReacTicketUserSettingsMixin(MixinMeta):
@settings.group()
async def userpermissions(self, ctx):
"""Control the permissions that users have with their own tickets"""
... | 42.3125 | 97 | 0.678484 | 276 | 2,031 | 4.884058 | 0.228261 | 0.055638 | 0.077893 | 0.040059 | 0.658012 | 0.603116 | 0.545252 | 0.429525 | 0.399852 | 0.399852 | 0 | 0 | 0.231905 | 2,031 | 47 | 98 | 43.212766 | 0.864103 | 0 | 0 | 0.352941 | 0 | 0 | 0.182232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029412 | 0.088235 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a041cf9593ba00ff0663499073797bf96dd8b200 | 300 | py | Python | agnocomplete/urls.py | mike-perdide/django-agnocomplete | 1ef67a0a808cfe61c6d1ac5ec449ee1a0f0246e8 | [
"MIT"
] | null | null | null | agnocomplete/urls.py | mike-perdide/django-agnocomplete | 1ef67a0a808cfe61c6d1ac5ec449ee1a0f0246e8 | [
"MIT"
] | null | null | null | agnocomplete/urls.py | mike-perdide/django-agnocomplete | 1ef67a0a808cfe61c6d1ac5ec449ee1a0f0246e8 | [
"MIT"
] | 1 | 2022-01-03T16:18:00.000Z | 2022-01-03T16:18:00.000Z | """
Agnostic Autocomplete URLS
"""
from django.conf.urls import url
from .views import AgnocompleteView, CatalogView
urlpatterns = [
url(
r'^(?P<klass>[-_\w]+)/$',
AgnocompleteView.as_view(),
name='agnocomplete'),
url(r'^$', CatalogView.as_view(), name='catalog'),
]
| 21.428571 | 54 | 0.626667 | 32 | 300 | 5.78125 | 0.65625 | 0.043243 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193333 | 300 | 13 | 55 | 23.076923 | 0.764463 | 0.086667 | 0 | 0 | 0 | 0 | 0.157895 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a044f460600112720a002859c5451c1e4332abe6 | 10,037 | py | Python | tem/repo.py | tem-cli/tem | 6974734a000604fe201fcba573b05e8fe50eda72 | [
"MIT"
] | null | null | null | tem/repo.py | tem-cli/tem | 6974734a000604fe201fcba573b05e8fe50eda72 | [
"MIT"
] | null | null | null | tem/repo.py | tem-cli/tem | 6974734a000604fe201fcba573b05e8fe50eda72 | [
"MIT"
] | null | null | null | """Repository operations"""
import os
from tem import config, util
class Repo:
"""A python representation of a repository."""
def __init__(self, *args):
if not args:
self.path = ""
if isinstance(args[0], str):
self.path = args[0]
elif isinstance(args[0], Repo)... | 31.170807 | 104 | 0.586629 | 1,300 | 10,037 | 4.429231 | 0.191538 | 0.041681 | 0.021883 | 0.019972 | 0.134595 | 0.05627 | 0.024661 | 0.012504 | 0.012504 | 0 | 0 | 0.001634 | 0.329082 | 10,037 | 321 | 105 | 31.267913 | 0.85343 | 0.411876 | 0 | 0.153333 | 0 | 0 | 0.047327 | 0 | 0 | 0 | 0 | 0.006231 | 0 | 1 | 0.113333 | false | 0 | 0.013333 | 0.006667 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a047d0ac5a16d636bbec804560bb56282540b1b2 | 13,172 | py | Python | remit/settings.py | naamara/blink | 326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a | [
"Unlicense",
"MIT"
] | null | null | null | remit/settings.py | naamara/blink | 326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a | [
"Unlicense",
"MIT"
] | 10 | 2019-12-26T17:31:31.000Z | 2022-03-21T22:17:33.000Z | remit/settings.py | naamara/blink | 326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a | [
"Unlicense",
"MIT"
] | null | null | null | ''' settings for Django '''
import os
import django.conf.global_settings as DEFAULT_SETTINGS
LOCALHOST = False
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DEBUG_PAYMENTS = DEBUG
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.abspath(
os.path.join(os.path.dirname(__file__), os.... | 24.994307 | 109 | 0.719708 | 1,632 | 13,172 | 5.613358 | 0.35723 | 0.025543 | 0.013099 | 0.009606 | 0.129462 | 0.095623 | 0.051195 | 0.037441 | 0.034276 | 0.034276 | 0 | 0.02739 | 0.162921 | 13,172 | 526 | 110 | 25.041825 | 0.803465 | 0.336319 | 0 | 0.057915 | 0 | 0 | 0.416707 | 0.215032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019305 | 0.019305 | 0 | 0.019305 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a04cf7b68b006d07caae20b361bd4e847b1b78eb | 13,900 | py | Python | tests/gfp.py | mcepl/git-packaging-tools | de705a9ac2efd1752754e4feb093fe85821f9224 | [
"MIT"
] | 8 | 2017-08-15T12:51:34.000Z | 2020-10-07T09:58:34.000Z | tests/gfp.py | mcepl/git-packaging-tools | de705a9ac2efd1752754e4feb093fe85821f9224 | [
"MIT"
] | 5 | 2017-02-04T12:32:16.000Z | 2020-07-01T14:13:19.000Z | tests/gfp.py | mcepl/git-packaging-tools | de705a9ac2efd1752754e4feb093fe85821f9224 | [
"MIT"
] | 6 | 2017-02-07T13:31:21.000Z | 2021-02-10T23:14:03.000Z | #!/usr/bin/python3
#
# Copyright (c) 2017-2020, SUSE LLC
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above copyright notice,
# this list ... | 36.197917 | 129 | 0.606475 | 1,842 | 13,900 | 4.478284 | 0.226927 | 0.014547 | 0.020609 | 0.014547 | 0.158565 | 0.126682 | 0.083647 | 0.070796 | 0.059886 | 0.042672 | 0 | 0.008835 | 0.267122 | 13,900 | 383 | 130 | 36.292428 | 0.800923 | 0.215971 | 0 | 0.137168 | 0 | 0 | 0.164488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044248 | false | 0 | 0.022124 | 0 | 0.084071 | 0.088496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a04efbad847960e56a6c9a8e43d4465164fb4801 | 5,455 | py | Python | modules/dispatch.py | kex5n/Vehicles-Dispatch-Simulator | d0cca03fbf56e4b0ceeef8dafc59de105c1d4507 | [
"MIT"
] | null | null | null | modules/dispatch.py | kex5n/Vehicles-Dispatch-Simulator | d0cca03fbf56e4b0ceeef8dafc59de105c1d4507 | [
"MIT"
] | null | null | null | modules/dispatch.py | kex5n/Vehicles-Dispatch-Simulator | d0cca03fbf56e4b0ceeef8dafc59de105c1d4507 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import random
from typing import List
import numpy as np
import torch
from config import Config
from domain import DispatchMode
from models import DQN
from modules.state import FeatureManager
from objects import Area, Vehicle
from objects.area import AreaManager
from objects.vehicle ... | 40.110294 | 148 | 0.700642 | 667 | 5,455 | 5.374813 | 0.164918 | 0.041841 | 0.029289 | 0.050767 | 0.521339 | 0.488982 | 0.488982 | 0.422873 | 0.391632 | 0.330544 | 0 | 0.004498 | 0.225665 | 5,455 | 135 | 149 | 40.407407 | 0.844223 | 0 | 0 | 0.309735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106195 | false | 0 | 0.106195 | 0.00885 | 0.371681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a05379809d542906a1e8b3ecab8d346bf1a2d752 | 2,272 | py | Python | tests/integration/sts/replayer_integration_test.py | jhall11/sts | b484f184824c9fe59864103f24fdfa24ff8bcdcd | [
"Apache-2.0"
] | 5 | 2016-03-18T15:12:04.000Z | 2019-01-28T20:18:24.000Z | tests/integration/sts/replayer_integration_test.py | jhall11/sts | b484f184824c9fe59864103f24fdfa24ff8bcdcd | [
"Apache-2.0"
] | null | null | null | tests/integration/sts/replayer_integration_test.py | jhall11/sts | b484f184824c9fe59864103f24fdfa24ff8bcdcd | [
"Apache-2.0"
] | 1 | 2019-11-02T22:04:48.000Z | 2019-11-02T22:04:48.000Z | #!/usr/bin/env python
#
# Copyright 2011-2013 Colin Scott
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 33.910448 | 116 | 0.677377 | 308 | 2,272 | 4.840909 | 0.457792 | 0.040241 | 0.040241 | 0.04829 | 0.081824 | 0.081824 | 0.081824 | 0.04829 | 0.04829 | 0.04829 | 0 | 0.019159 | 0.172975 | 2,272 | 66 | 117 | 34.424242 | 0.774348 | 0.275088 | 0 | 0 | 0 | 0 | 0.33052 | 0.098453 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a055c0b6a8a397cfaf7bde8f028637510c8a76bc | 3,733 | py | Python | responsive_dashboard/views.py | rhooper/django-responsive-dashboard | 039d634cbefb87be610334c01bda1a790cf5cd71 | [
"BSD-3-Clause"
] | 28 | 2015-07-08T01:03:17.000Z | 2022-03-11T13:30:49.000Z | responsive_dashboard/views.py | burke-software/django-responsive-dashboard | e08d7a12155d87d78cb3928bcc58f2701d326b69 | [
"BSD-3-Clause"
] | 4 | 2018-09-03T14:15:42.000Z | 2021-06-10T17:24:09.000Z | responsive_dashboard/views.py | rhooper/django-responsive-dashboard | 039d634cbefb87be610334c01bda1a790cf5cd71 | [
"BSD-3-Clause"
] | 13 | 2015-01-15T14:33:30.000Z | 2021-08-23T02:39:38.000Z | """Views."""
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, Http404
from django.shortcuts import render, redirect
from responsive_dashboard.dashboard import dashboards
from responsive_dashboard.models import UserDashboard, UserDashlet
... | 34.88785 | 114 | 0.698902 | 445 | 3,733 | 5.633708 | 0.258427 | 0.043877 | 0.023933 | 0.027523 | 0.338652 | 0.225768 | 0.225768 | 0.225768 | 0.184284 | 0.184284 | 0 | 0.004401 | 0.208679 | 3,733 | 106 | 115 | 35.216981 | 0.844279 | 0.112242 | 0 | 0.35 | 0 | 0 | 0.069547 | 0.010723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a05679a1770f12c767a08a09a8c1456749cc03d4 | 769 | py | Python | app/config.py | tomakado/markovscope-api | 3dd60439d980e3b77429850f1b43cb37ffd02f99 | [
"BSD-3-Clause"
] | 1 | 2021-03-06T06:36:25.000Z | 2021-03-06T06:36:25.000Z | app/config.py | tomakado/markovscope-api | 3dd60439d980e3b77429850f1b43cb37ffd02f99 | [
"BSD-3-Clause"
] | null | null | null | app/config.py | tomakado/markovscope-api | 3dd60439d980e3b77429850f1b43cb37ffd02f99 | [
"BSD-3-Clause"
] | null | null | null | import os
from dataclasses import dataclass
@dataclass(frozen=True)
class Config:
listen_host: str
listen_port: int
yc_oauth_token: str
yc_folder_id: str
data_path: str
debug_enabled: bool
@staticmethod
def create_from_env() -> 'Config':
return Config(
listen_host=... | 25.633333 | 80 | 0.595579 | 99 | 769 | 4.343434 | 0.393939 | 0.111628 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.286086 | 769 | 29 | 81 | 26.517241 | 0.766849 | 0 | 0 | 0 | 0 | 0 | 0.120936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0.041667 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0578bb9313ba5a000fe92b2495ddd4a94b1be7e | 15,486 | py | Python | atlas/atlas.py | pythseq/atlas | 6fd8d9e8ad05d234fc408aef8e0989da199f3b48 | [
"BSD-3-Clause"
] | 1 | 2020-12-31T14:54:49.000Z | 2020-12-31T14:54:49.000Z | atlas/atlas.py | pythseq/atlas | 6fd8d9e8ad05d234fc408aef8e0989da199f3b48 | [
"BSD-3-Clause"
] | null | null | null | atlas/atlas.py | pythseq/atlas | 6fd8d9e8ad05d234fc408aef8e0989da199f3b48 | [
"BSD-3-Clause"
] | null | null | null | import click
import logging
import multiprocessing
import os
import sys
from atlas import __version__
from atlas.conf import make_config
from atlas.parsers import refseq_parser
from atlas.tables import merge_tables
from atlas.workflows import download, run_workflow
logging.basicConfig(level=logging.INFO, datefmt="%Y-... | 54.336842 | 323 | 0.694692 | 2,154 | 15,486 | 4.896007 | 0.211699 | 0.036507 | 0.039826 | 0.050446 | 0.44671 | 0.427935 | 0.397876 | 0.359662 | 0.346482 | 0.314242 | 0 | 0.017597 | 0.174351 | 15,486 | 284 | 324 | 54.528169 | 0.807211 | 0.228206 | 0 | 0.331325 | 0 | 0.042169 | 0.291407 | 0.003762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.006024 | 0.072289 | 0 | 0.13253 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0590b43efec682503f6e281362973bb8f85de85 | 1,101 | py | Python | tests/unit/core/types/test_relationships.py | jeffsawatzky/python-jsonapi | 8f181d6764b525f58d06517c65b1f0d24f3c2282 | [
"MIT"
] | null | null | null | tests/unit/core/types/test_relationships.py | jeffsawatzky/python-jsonapi | 8f181d6764b525f58d06517c65b1f0d24f3c2282 | [
"MIT"
] | 237 | 2020-07-23T05:53:22.000Z | 2022-03-30T23:02:35.000Z | tests/unit/core/types/test_relationships.py | jeffsawatzky/python-jsonapi | 8f181d6764b525f58d06517c65b1f0d24f3c2282 | [
"MIT"
] | null | null | null | """Test cases for the python_jsonapi.core.types.relationships module."""
from python_jsonapi.core.types.relationships import Relationship
from python_jsonapi.core.types.relationships import RelationshipsMixin
def test_relationship_init() -> None:
"""Can init a new relationships."""
sut = Relationship()
as... | 34.40625 | 74 | 0.735695 | 130 | 1,101 | 6.138462 | 0.238462 | 0.090226 | 0.078947 | 0.075188 | 0.473684 | 0.407268 | 0.245614 | 0.132832 | 0.132832 | 0 | 0 | 0.004338 | 0.162579 | 1,101 | 31 | 75 | 35.516129 | 0.861171 | 0.126249 | 0 | 0.35 | 0 | 0 | 0.063762 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.15 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a05a419a9ddf5084b706e695f35bb68b2e11e8f7 | 698 | py | Python | app/accounts/utilities.py | porowns/Krypted-Auth | ed171bfbd1c98a4c171ddf6a20b18691330b1646 | [
"MIT"
] | 6 | 2017-12-13T21:53:05.000Z | 2018-10-04T02:47:05.000Z | app/accounts/utilities.py | porowns/Krypted-Auth | ed171bfbd1c98a4c171ddf6a20b18691330b1646 | [
"MIT"
] | 106 | 2019-08-11T23:00:39.000Z | 2021-06-10T19:45:54.000Z | app/accounts/utilities.py | KryptedGaming/kryptedauth | ed171bfbd1c98a4c171ddf6a20b18691330b1646 | [
"MIT"
] | 10 | 2020-01-18T11:28:44.000Z | 2022-02-21T06:08:39.000Z | from django.conf import settings
from django.contrib.auth.models import User
from django.core.mail import send_mail
def username_or_email_resolver(username):
if User.objects.filter(email=username).exists():
return User.objects.get(email=username).username
else:
return username
de... | 33.238095 | 123 | 0.684814 | 90 | 698 | 5.177778 | 0.555556 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222063 | 698 | 20 | 124 | 34.9 | 0.858195 | 0 | 0 | 0 | 0 | 0.0625 | 0.199115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a05f5a0fc89824667b995e5851cdb833729517df | 970 | py | Python | mypage/paginator.py | kirill-ivanov-a/mypage-flask | b803dfdf3d38d32879d81b8682d51e387c8f709f | [
"MIT"
] | null | null | null | mypage/paginator.py | kirill-ivanov-a/mypage-flask | b803dfdf3d38d32879d81b8682d51e387c8f709f | [
"MIT"
] | null | null | null | mypage/paginator.py | kirill-ivanov-a/mypage-flask | b803dfdf3d38d32879d81b8682d51e387c8f709f | [
"MIT"
] | null | null | null | from paginate_sqlalchemy import SqlalchemyOrmPage
class Paginator(SqlalchemyOrmPage):
def __init__(self, *args, radius=3, **kwargs):
super().__init__(*args, **kwargs)
self.radius = radius
self.page_range = self._make_page_range()
def _make_page_range(self):
if self.page_count... | 34.642857 | 88 | 0.609278 | 138 | 970 | 4.072464 | 0.224638 | 0.156584 | 0.128114 | 0.080071 | 0.427046 | 0.330961 | 0.330961 | 0.330961 | 0.330961 | 0.270463 | 0 | 0.011445 | 0.279381 | 970 | 27 | 89 | 35.925926 | 0.792561 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a06437850e2dae1448abd64b704f6b42218ef386 | 968 | py | Python | Python/logging.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 1,428 | 2018-10-03T15:15:17.000Z | 2019-03-31T18:38:36.000Z | Python/logging.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 1,162 | 2018-10-03T15:05:49.000Z | 2018-10-18T14:17:52.000Z | Python/logging.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 3,909 | 2018-10-03T15:07:19.000Z | 2019-03-31T18:39:08.000Z | import datetime
# Log parm(File_name)
class logging_class:
def __init__(self, log_file_name, verbose):
self.log_file_name = log_file_name
self.stream = open(log_file_name, "a")
self.verbose = verbose
# Write a line in the log file
def create_log(self, to_add):
if (to_add !=... | 31.225806 | 86 | 0.572314 | 131 | 968 | 4.030534 | 0.320611 | 0.075758 | 0.083333 | 0.056818 | 0.32197 | 0.246212 | 0.155303 | 0 | 0 | 0 | 0 | 0.002972 | 0.304752 | 968 | 30 | 87 | 32.266667 | 0.781575 | 0.095041 | 0 | 0.086957 | 0 | 0 | 0.012629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.217391 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a064737d7eb5496d755ad0d39ca50e2c9279c4d9 | 10,541 | py | Python | tfep/utils/cli/tool.py | andrrizzi/tfep | a98ec870007a2ceb72cab147d9e0dfffb7dc8849 | [
"MIT"
] | 5 | 2021-07-30T16:01:46.000Z | 2021-12-14T15:24:29.000Z | tfep/utils/cli/tool.py | andrrizzi/tfep | a98ec870007a2ceb72cab147d9e0dfffb7dc8849 | [
"MIT"
] | 2 | 2021-08-13T12:19:13.000Z | 2021-10-06T08:04:18.000Z | tfep/utils/cli/tool.py | andrrizzi/tfep | a98ec870007a2ceb72cab147d9e0dfffb7dc8849 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# =============================================================================
# MODULE DOCSTRING
# =============================================================================
"""
Utility classes to wrap command line tools.
The module provides a class :class:`.CLITool` that provides boilerp... | 36.223368 | 103 | 0.626411 | 1,297 | 10,541 | 4.950655 | 0.231303 | 0.028033 | 0.017443 | 0.022426 | 0.238748 | 0.1791 | 0.129263 | 0.096247 | 0.096247 | 0.096247 | 0 | 0.000859 | 0.226734 | 10,541 | 290 | 104 | 36.348276 | 0.786897 | 0.60573 | 0 | 0.146341 | 0 | 0 | 0.015672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182927 | false | 0.012195 | 0.036585 | 0 | 0.426829 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a06853a9eca27d640f292fe2b2ffaac04fbafad7 | 1,128 | py | Python | invite2app/lib/facebook_auth.py | andresgz/invite2app | 3531db131c4f0646ae01b511971d6642128361e0 | [
"BSD-3-Clause"
] | null | null | null | invite2app/lib/facebook_auth.py | andresgz/invite2app | 3531db131c4f0646ae01b511971d6642128361e0 | [
"BSD-3-Clause"
] | null | null | null | invite2app/lib/facebook_auth.py | andresgz/invite2app | 3531db131c4f0646ae01b511971d6642128361e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import facebook
from allauth.socialaccount.models import SocialToken
from django.core.exceptions import ObjectDoesNotExist
class FacebookAuth(object):
"""
Interface bettween Django AllAuth and Facebook SDK
"""
def __init__(self, user_id):
super(FacebookAuth, self).__ini... | 27.512195 | 71 | 0.638298 | 126 | 1,128 | 5.539683 | 0.539683 | 0.051576 | 0.04298 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001225 | 0.276596 | 1,128 | 40 | 72 | 28.2 | 0.854167 | 0.199468 | 0 | 0 | 0 | 0 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.15 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0767541c421c26c6de084316db254c59c03c5d0 | 17,875 | py | Python | web_site/wx/lib.py | Fixdq/dj-deep | 6712a722c7f620b76f21b1ebf0b618f42eb4a58a | [
"MIT"
] | null | null | null | web_site/wx/lib.py | Fixdq/dj-deep | 6712a722c7f620b76f21b1ebf0b618f42eb4a58a | [
"MIT"
] | null | null | null | web_site/wx/lib.py | Fixdq/dj-deep | 6712a722c7f620b76f21b1ebf0b618f42eb4a58a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2014-5-13
@author: skycrab
"""
import json
import time
import random
import string
import urllib
import hashlib
import threading
import traceback
import xml.etree.ElementTree as ET
import logging
from urllib import request as urllib2
from functools import wraps
from .config imp... | 38.690476 | 190 | 0.658238 | 2,114 | 17,875 | 5.357616 | 0.168874 | 0.051474 | 0.038849 | 0.03152 | 0.511301 | 0.485079 | 0.444552 | 0.386633 | 0.343811 | 0.303549 | 0 | 0.031421 | 0.214825 | 17,875 | 461 | 191 | 38.774403 | 0.775561 | 0.14014 | 0 | 0.287671 | 0 | 0.075342 | 0.195753 | 0.003168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157534 | false | 0 | 0.061644 | 0 | 0.424658 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a076da17c1234915c44f55110c45dfe832f020a4 | 4,723 | py | Python | argo_dsl/tasks.py | zen-xu/argo-dsl | 76b18073c8dd850b212ccaee2a0c95f718c67db6 | [
"Apache-2.0"
] | null | null | null | argo_dsl/tasks.py | zen-xu/argo-dsl | 76b18073c8dd850b212ccaee2a0c95f718c67db6 | [
"Apache-2.0"
] | null | null | null | argo_dsl/tasks.py | zen-xu/argo-dsl | 76b18073c8dd850b212ccaee2a0c95f718c67db6 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from contextlib import contextmanager
from typing import TYPE_CHECKING
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
from typing import Union
from argo_dsl.api.io.argoproj.workflow import v1alpha1
if ... | 28.79878 | 106 | 0.645988 | 548 | 4,723 | 5.306569 | 0.180657 | 0.066025 | 0.060523 | 0.061898 | 0.26238 | 0.190165 | 0.10729 | 0.081155 | 0.045392 | 0.045392 | 0 | 0.004191 | 0.242219 | 4,723 | 163 | 107 | 28.97546 | 0.808326 | 0 | 0 | 0.180328 | 0 | 0 | 0.049757 | 0.030066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196721 | false | 0 | 0.090164 | 0.081967 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a07a7419dbe104e7dbe0af27f725918587fdc9f2 | 4,596 | py | Python | handlers/class_handler.py | Hargre/faltometro-bot | 271772dc52c9d0454d96ef3c43e3a0da32075743 | [
"MIT"
] | null | null | null | handlers/class_handler.py | Hargre/faltometro-bot | 271772dc52c9d0454d96ef3c43e3a0da32075743 | [
"MIT"
] | 2 | 2019-04-02T13:18:23.000Z | 2019-04-11T14:00:06.000Z | handlers/class_handler.py | Hargre/faltometro-bot | 271772dc52c9d0454d96ef3c43e3a0da32075743 | [
"MIT"
] | null | null | null | import logging
import math
from emoji import emojize
from peewee import DoesNotExist
from telegram import ParseMode
from telegram.ext import CommandHandler
from telegram.ext import ConversationHandler
from telegram.ext import Filters
from telegram.ext import MessageHandler
from telegram.ext import RegexHandler
from... | 27.035294 | 110 | 0.647302 | 515 | 4,596 | 5.467961 | 0.225243 | 0.064631 | 0.060724 | 0.046875 | 0.25071 | 0.136009 | 0.082386 | 0.037642 | 0.037642 | 0 | 0 | 0.001489 | 0.269365 | 4,596 | 170 | 111 | 27.035294 | 0.837105 | 0 | 0 | 0.207692 | 0 | 0.007692 | 0.066783 | 0.01414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084615 | false | 0.015385 | 0.107692 | 0 | 0.284615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a07d57857f23110458e28cf9b4145b1716e6f940 | 2,502 | py | Python | convert.py | povle/SP-SR2-converter | 7a675204e15b340deac2b98634805cdf75e6fd4a | [
"MIT"
] | 3 | 2021-01-09T20:11:31.000Z | 2022-03-31T02:05:52.000Z | convert.py | povle/SP-SR2-converter | 7a675204e15b340deac2b98634805cdf75e6fd4a | [
"MIT"
] | null | null | null | convert.py | povle/SP-SR2-converter | 7a675204e15b340deac2b98634805cdf75e6fd4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import sys
import io
import os.path
import shutil
import requests
from convert_file import convert_file
from gooey import Gooey, GooeyParser
if len(sys.argv) >= 2:
if '--ignore-gooey' not in sys.argv:
sys.argv.append('--ignore-gooey')
@Gooey(program_name='SP to SR2 ... | 43.137931 | 133 | 0.688649 | 347 | 2,502 | 4.760807 | 0.32853 | 0.066586 | 0.033898 | 0.049031 | 0.257869 | 0.150121 | 0 | 0 | 0 | 0 | 0 | 0.006737 | 0.169464 | 2,502 | 57 | 134 | 43.894737 | 0.788258 | 0.008393 | 0 | 0.042553 | 0 | 0 | 0.239516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.170213 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a07db8162c85985e5fa4859871927e9c03a5f877 | 5,289 | py | Python | bsd2/vagrant-ansible/ansible/lib/ansible/runner/action_plugins/fetch.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | 1 | 2016-01-20T14:36:02.000Z | 2016-01-20T14:36:02.000Z | bsd2/vagrant-ansible/ansible/lib/ansible/runner/action_plugins/fetch.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | null | null | null | bsd2/vagrant-ansible/ansible/lib/ansible/runner/action_plugins/fetch.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | null | null | null | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | 42.653226 | 135 | 0.626962 | 702 | 5,289 | 4.645299 | 0.319088 | 0.024839 | 0.049065 | 0.058878 | 0.215885 | 0.175406 | 0.158234 | 0.120209 | 0.106716 | 0.106716 | 0 | 0.011564 | 0.280582 | 5,289 | 123 | 136 | 43 | 0.845466 | 0.240688 | 0 | 0.126582 | 0 | 0 | 0.089676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0 | 0.139241 | 0 | 0.278481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a07ebd61f61d120e3815b7fb4a6cf2eeafd36431 | 4,563 | py | Python | src/plot_by_genome.py | MaaT-Pharma/AMBER | 76aa10e2295265b16337b7bfab769d67d3bea66a | [
"Apache-2.0"
] | null | null | null | src/plot_by_genome.py | MaaT-Pharma/AMBER | 76aa10e2295265b16337b7bfab769d67d3bea66a | [
"Apache-2.0"
] | null | null | null | src/plot_by_genome.py | MaaT-Pharma/AMBER | 76aa10e2295265b16337b7bfab769d67d3bea66a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import argparse
import os
import sys
import matplotlib
import numpy as np
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os, sys, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(... | 38.669492 | 153 | 0.67368 | 653 | 4,563 | 4.546708 | 0.287902 | 0.024251 | 0.021893 | 0.035365 | 0.215898 | 0.215898 | 0.1903 | 0.092287 | 0.092287 | 0.08454 | 0 | 0.020419 | 0.17357 | 4,563 | 117 | 154 | 39 | 0.766905 | 0.23055 | 0 | 0.106667 | 0 | 0 | 0.109997 | 0.027499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.133333 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a080d1b200263a36cd31a3e857bf790cbd1e3259 | 16,548 | py | Python | tests/test_references.py | isprojects/djangorestframework-inclusions | c6669f404a8a80f2c524a8adfb6548b2eef235c7 | [
"MIT"
] | null | null | null | tests/test_references.py | isprojects/djangorestframework-inclusions | c6669f404a8a80f2c524a8adfb6548b2eef235c7 | [
"MIT"
] | 4 | 2019-11-15T10:21:20.000Z | 2021-04-22T13:37:32.000Z | tests/test_references.py | isprojects/djangorestframework-inclusions | c6669f404a8a80f2c524a8adfb6548b2eef235c7 | [
"MIT"
] | null | null | null | from django.urls import reverse
from rest_framework.test import APITestCase
from testapp.models import (
A,
B,
C,
Child,
ChildProps,
Container,
Entry,
MainObject,
Parent,
Tag,
)
from .mixins import InclusionsMixin
class ReferenceTests(InclusionsMixin, APITestCase):
maxD... | 32.383562 | 87 | 0.435098 | 1,484 | 16,548 | 4.791779 | 0.115229 | 0.057376 | 0.035157 | 0.030375 | 0.593166 | 0.552806 | 0.536915 | 0.497117 | 0.482351 | 0.448038 | 0 | 0.016897 | 0.413464 | 16,548 | 510 | 88 | 32.447059 | 0.715743 | 0.041395 | 0 | 0.531323 | 0 | 0 | 0.148616 | 0.001467 | 0 | 0 | 0 | 0 | 0.053364 | 1 | 0.055684 | false | 0 | 0.009281 | 0 | 0.069606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a08175a3e80e168fe04fe33684d0de9087ed3e33 | 2,652 | py | Python | markups/restructuredtext.py | LukeC8/pymarkups | eec6edbc870fc6fe50c56d30f3caa8b8ee4e239a | [
"BSD-3-Clause"
] | null | null | null | markups/restructuredtext.py | LukeC8/pymarkups | eec6edbc870fc6fe50c56d30f3caa8b8ee4e239a | [
"BSD-3-Clause"
] | null | null | null | markups/restructuredtext.py | LukeC8/pymarkups | eec6edbc870fc6fe50c56d30f3caa8b8ee4e239a | [
"BSD-3-Clause"
] | null | null | null | # vim: ts=8:sts=8:sw=8:noexpandtab
# This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import markups.common as common
from markups.abstract import AbstractMarkup, ConvertedMarkup
class ReStructuredTextMarkup(AbstractMarkup):
"""Markup ... | 30.837209 | 99 | 0.735294 | 319 | 2,652 | 5.949843 | 0.435737 | 0.044784 | 0.048472 | 0.054795 | 0.086407 | 0.035827 | 0 | 0 | 0 | 0 | 0 | 0.007048 | 0.144042 | 2,652 | 85 | 100 | 31.2 | 0.829075 | 0.236425 | 0 | 0 | 0 | 0.02 | 0.205691 | 0.058412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.42 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0827c33ad3c6db021a834ac073ebf6c9ba882a7 | 8,025 | py | Python | Intelligent Systems and Decision Support Systems/pm-test1.py | johnpras/Uni_work | 1edd8fd56e4d54cdcc0058f0a21799ef6015e3f6 | [
"MIT"
] | null | null | null | Intelligent Systems and Decision Support Systems/pm-test1.py | johnpras/Uni_work | 1edd8fd56e4d54cdcc0058f0a21799ef6015e3f6 | [
"MIT"
] | null | null | null | Intelligent Systems and Decision Support Systems/pm-test1.py | johnpras/Uni_work | 1edd8fd56e4d54cdcc0058f0a21799ef6015e3f6 | [
"MIT"
] | null | null | null | import pandas as pd
from pm4py.objects.log.importer.xes import importer as xes_import
from pm4py.objects.log.util import log as utils
from pm4py.statistics.start_activities.log.get import get_start_activities
from pm4py.statistics.end_activities.log.get import get_end_activities
from pm4py.algo.filtering.log.end_a... | 42.68617 | 102 | 0.761994 | 1,140 | 8,025 | 5.138596 | 0.197368 | 0.046091 | 0.078354 | 0.1014 | 0.46125 | 0.410379 | 0.392625 | 0.386309 | 0.386309 | 0.362581 | 0 | 0.004284 | 0.156511 | 8,025 | 187 | 103 | 42.914439 | 0.861132 | 0.360997 | 0 | 0.319149 | 0 | 0 | 0.082136 | 0.004723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.138298 | 0 | 0.148936 | 0.265957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0853c6f068e5b0ba0007116f943ea7455d91729 | 46,894 | py | Python | src/scml_vis/presenter.py | yasserfarouk/scml-vis | a8daff36bb29867a67c9a36bcdca9ceef9350e53 | [
"Apache-2.0"
] | null | null | null | src/scml_vis/presenter.py | yasserfarouk/scml-vis | a8daff36bb29867a67c9a36bcdca9ceef9350e53 | [
"Apache-2.0"
] | 2 | 2021-05-07T22:45:42.000Z | 2021-09-22T04:35:15.000Z | src/scml_vis/presenter.py | yasserfarouk/scml-vis | a8daff36bb29867a67c9a36bcdca9ceef9350e53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import shutil
import itertools
import random
import sys
import traceback
from pathlib import Path
import altair as alt
import pandas as pd
import plotly as plotly
import plotly.express as px
import plotly.graph_objects as go
import streamlit as st
from pandas.api.types import is_numeric_dtype
fro... | 35.338357 | 233 | 0.565403 | 5,184 | 46,894 | 4.877508 | 0.087384 | 0.049871 | 0.010441 | 0.01582 | 0.490726 | 0.430216 | 0.407356 | 0.371248 | 0.357089 | 0.344869 | 0 | 0.005917 | 0.304431 | 46,894 | 1,326 | 234 | 35.365008 | 0.769269 | 0.043972 | 0 | 0.447587 | 0 | 0.000832 | 0.137268 | 0.006029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011647 | false | 0 | 0.016639 | 0 | 0.049085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a08cb54701ee8d7129f53895ca2daa2a379bad89 | 4,431 | py | Python | QFA/MO_1QFA.py | gustawlippa/QFA | 7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be | [
"MIT"
] | 2 | 2021-01-30T23:14:36.000Z | 2021-02-17T01:41:56.000Z | QFA/MO_1QFA.py | gustawlippa/QFA | 7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be | [
"MIT"
] | null | null | null | QFA/MO_1QFA.py | gustawlippa/QFA | 7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be | [
"MIT"
] | null | null | null | import numpy as np
from typing import List
from math import sqrt
from QFA.Automaton import Automaton
from math import cos, sin, pi
class MO_1QFA(Automaton):
def __init__(self, alphabet: str,
initial_state: np.ndarray,
transition_matrices: List[np.ndarray],
proj... | 31.425532 | 120 | 0.643421 | 622 | 4,431 | 4.413183 | 0.252412 | 0.032787 | 0.042623 | 0.02623 | 0.246266 | 0.211293 | 0.185428 | 0.161384 | 0.135155 | 0.126412 | 0 | 0.05146 | 0.219364 | 4,431 | 140 | 121 | 31.65 | 0.742122 | 0.232905 | 0 | 0.207317 | 0 | 0 | 0.041457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.060976 | 0 | 0.231707 | 0.219512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a08ec5f751e5c0ed745a1196c05685644187a34f | 591 | py | Python | scripts/freq_shecker.py | Fumiya-K/ros_myo | dac160aae5d0cd75211c60261bd1232ef089e530 | [
"MIT"
] | null | null | null | scripts/freq_shecker.py | Fumiya-K/ros_myo | dac160aae5d0cd75211c60261bd1232ef089e530 | [
"MIT"
] | null | null | null | scripts/freq_shecker.py | Fumiya-K/ros_myo | dac160aae5d0cd75211c60261bd1232ef089e530 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Vector3
from sensor_msgs.msg import Imu
import numpy as np
c_imu, c_angle = 0, 0
def cb_imu(msg):
global c_imu
c_imu += 1
def cb_angle(msg):
global c_angle
c_angle += 1
if c_angle == 400:
print("count of received data of angle = {}".format(c_a... | 21.107143 | 66 | 0.717428 | 104 | 591 | 3.778846 | 0.423077 | 0.076336 | 0.066158 | 0.101781 | 0.26972 | 0.26972 | 0 | 0 | 0 | 0 | 0 | 0.018 | 0.153976 | 591 | 27 | 67 | 21.888889 | 0.768 | 0.033841 | 0 | 0 | 0 | 0 | 0.214035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.315789 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0963df40f1df1fa608416915de9bf22beecf414 | 1,692 | py | Python | src/CyPhyMasterInterpreter/run_master_interpreter_sample.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | src/CyPhyMasterInterpreter/run_master_interpreter_sample.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | src/CyPhyMasterInterpreter/run_master_interpreter_sample.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | import win32com.client
# Disable early binding: full of race conditions writing the cache files,
# and changes the semantics since inheritance isn't handled correctly
import win32com.client.gencache
_savedGetClassForCLSID = win32com.client.gencache.GetClassForCLSID
win32com.client.gencache.GetClassForCLSID = lam... | 38.454545 | 115 | 0.785461 | 182 | 1,692 | 7.258242 | 0.587912 | 0.095382 | 0.09084 | 0.061317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045087 | 0.121749 | 1,692 | 44 | 116 | 38.454545 | 0.843876 | 0.495272 | 0 | 0 | 0 | 0 | 0.234257 | 0.15869 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a097f2e9cca87b9c4ab3fbfbe7eb9b74f83ce331 | 4,051 | py | Python | image_utils.py | datascisteven/Flictionary-Flask | 9437f0b6377b11cecfa37c8a94eb68cc4e7018f8 | [
"MIT"
] | null | null | null | image_utils.py | datascisteven/Flictionary-Flask | 9437f0b6377b11cecfa37c8a94eb68cc4e7018f8 | [
"MIT"
] | null | null | null | image_utils.py | datascisteven/Flictionary-Flask | 9437f0b6377b11cecfa37c8a94eb68cc4e7018f8 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from PIL import ImageOps
def view_image(img, filename = 'image'):
fig, ax = plt.subplots(figsize=(6, 9))
ax.imshow(img.reshape(96, 96).squeeze())
ax.axis('off')
plt.savefig(filename + '.png')
def convert_to_PIL(img):
img_r... | 28.935714 | 132 | 0.621328 | 596 | 4,051 | 4.068792 | 0.221477 | 0.049485 | 0.019794 | 0.051546 | 0.176907 | 0.054845 | 0.054845 | 0.054845 | 0.054845 | 0.054845 | 0 | 0.034325 | 0.244878 | 4,051 | 139 | 133 | 29.143885 | 0.758418 | 0.102197 | 0 | 0.068182 | 0 | 0 | 0.020155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0 | 0.045455 | 0 | 0.238636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a098e971e8b1b7172d8860ca8ed8514362a25eea | 360 | py | Python | src/lqc/generate/web_page/ui_tools/create.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | src/lqc/generate/web_page/ui_tools/create.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | src/lqc/generate/web_page/ui_tools/create.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | import os
def ui_tools_js():
js_string = ""
with open(os.path.join(os.path.dirname(__file__), 'template.js'), 'r') as f:
js_string = f.read()
return js_string
def ui_tools_html():
html_string = ""
with open(os.path.join(os.path.dirname(__file__), 'template.html'), 'r') as f:
html_... | 25.714286 | 82 | 0.633333 | 56 | 360 | 3.75 | 0.357143 | 0.114286 | 0.095238 | 0.152381 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0 | 0 | 0.211111 | 360 | 14 | 83 | 25.714286 | 0.739437 | 0 | 0 | 0 | 0 | 0 | 0.072022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a09c1cbcccf7a63039a5587fbbf109f0b5dc595c | 608 | py | Python | grove_potentiometer.py | cpmpercussion/empi_controller | 178d3952994d7e13067674cbcd261d945e6b4799 | [
"MIT"
] | null | null | null | grove_potentiometer.py | cpmpercussion/empi_controller | 178d3952994d7e13067674cbcd261d945e6b4799 | [
"MIT"
] | null | null | null | grove_potentiometer.py | cpmpercussion/empi_controller | 178d3952994d7e13067674cbcd261d945e6b4799 | [
"MIT"
] | null | null | null | import math
import sys
import time
from grove.adc import ADC
class GroveRotaryAngleSensor(ADC):
def __init__(self, channel):
self.channel = channel
self.adc = ADC()
@property
def value(self):
return self.adc.read(self.channel)
Grove = GroveRotaryAngleSensor
def main():
if ... | 17.882353 | 58 | 0.626645 | 75 | 608 | 4.906667 | 0.466667 | 0.089674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.243421 | 608 | 33 | 59 | 18.424242 | 0.78913 | 0 | 0 | 0 | 0 | 0 | 0.074013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.045455 | 0.409091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0a9d841059677b45b6f09a062af0ebdbc1dceea | 5,394 | py | Python | webapp/element43/apps/common/util.py | Ososope/eve_online | b368f77aaff403e5f1523a1a0e01d105fed0ada9 | [
"BSD-3-Clause"
] | null | null | null | webapp/element43/apps/common/util.py | Ososope/eve_online | b368f77aaff403e5f1523a1a0e01d105fed0ada9 | [
"BSD-3-Clause"
] | null | null | null | webapp/element43/apps/common/util.py | Ososope/eve_online | b368f77aaff403e5f1523a1a0e01d105fed0ada9 | [
"BSD-3-Clause"
] | null | null | null | # utility functions
import ast
import urllib
import datetime
import pytz
import pylibmc
# Import settings
from django.conf import settings
# API Models
from apps.api.models import APIKey, Character, APITimer
# Eve_DB Models
from eve_db.models import MapSolarSystem
# API Access Masks
CHARACTER_API_ACCESS_MASKS = {'A... | 31 | 134 | 0.561735 | 553 | 5,394 | 5.394213 | 0.415913 | 0.020114 | 0.023466 | 0.030841 | 0.147167 | 0.134764 | 0.098559 | 0.098559 | 0.063694 | 0.063694 | 0 | 0.039965 | 0.359844 | 5,394 | 173 | 135 | 31.179191 | 0.823921 | 0.213756 | 0 | 0.087912 | 0 | 0 | 0.09589 | 0.010763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0.010989 | 0.087912 | 0 | 0.252747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0af5afc99a71406be5ffead3cb66d5a5fbdf490 | 2,608 | py | Python | crafting/CraftingHandler.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 2 | 2019-08-21T08:23:45.000Z | 2019-09-25T13:20:28.000Z | crafting/CraftingHandler.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 11 | 2019-08-21T08:46:01.000Z | 2021-09-08T01:18:04.000Z | crafting/CraftingHandler.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 5 | 2019-08-30T08:19:57.000Z | 2019-10-26T03:31:16.000Z | """mcpython - a minecraft clone written in python licenced under MIT-licence
authors: uuk, xkcdjerry
original game by forgleman licenced under MIT-licence
minecraft by Mojang
blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019"""
import globals as G
import crafting.IRecipeType
import json
import... | 35.243243 | 113 | 0.657209 | 301 | 2,608 | 5.55814 | 0.392027 | 0.032277 | 0.031082 | 0.030484 | 0.11835 | 0.086073 | 0.059773 | 0 | 0 | 0 | 0 | 0.00516 | 0.256902 | 2,608 | 73 | 114 | 35.726027 | 0.858101 | 0.145706 | 0 | 0.040816 | 0 | 0 | 0.12438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.020408 | 0.163265 | 0 | 0.387755 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b0788c0fdd53bb74359f134c5cbbe7dd53cb63 | 1,625 | py | Python | xcache.py | ATLAS-Analytics/AlarmAndAlertService | a167439b0c3f3c9594af52bd21fe8713b5f47bf1 | [
"MIT"
] | null | null | null | xcache.py | ATLAS-Analytics/AlarmAndAlertService | a167439b0c3f3c9594af52bd21fe8713b5f47bf1 | [
"MIT"
] | 1 | 2021-05-26T02:21:42.000Z | 2021-05-26T02:21:42.000Z | xcache.py | ATLAS-Analytics/AlarmAndAlertService | a167439b0c3f3c9594af52bd21fe8713b5f47bf1 | [
"MIT"
] | null | null | null | # Checks number of concurrent connections from XCaches to MWT2 dCache.
# Creates alarm if more than 200 from any server.
# ====
# It is run every 30 min from a cron job.
import json
from datetime import datetime
import requests
from alerts import alarms
config_path = '/config/config.json'
with open(con... | 30.092593 | 88 | 0.619692 | 187 | 1,625 | 5.347594 | 0.502674 | 0.054 | 0.034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014742 | 0.248615 | 1,625 | 53 | 89 | 30.660377 | 0.804259 | 0.099077 | 0 | 0.05 | 0 | 0.025 | 0.283073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b0d03bf62e28fff9360da39608230424f15bea | 769 | py | Python | Question3_Competetive_Programming/solution.py | Robotrek-TechTatva/big-pp | 5790075638aa7f39d787dfc390f43da1cdb4ed56 | [
"MIT"
] | null | null | null | Question3_Competetive_Programming/solution.py | Robotrek-TechTatva/big-pp | 5790075638aa7f39d787dfc390f43da1cdb4ed56 | [
"MIT"
] | null | null | null | Question3_Competetive_Programming/solution.py | Robotrek-TechTatva/big-pp | 5790075638aa7f39d787dfc390f43da1cdb4ed56 | [
"MIT"
] | null | null | null | import csv
def area(x1, y1, x2, y2, x3, y3):
return abs((x1 * (y2 - y3) + x2 * (y3 - y1)
+ x3 * (y1 - y2)) / 2.0)
def isInside(lis):
x, y = 0, 0
x1, y1, x2, y2, x3, y3 = lis[1:]
x1 = int(x1)
x2 = int(x2)
x3 = int(x3)
y1 = int(y1)
y2 = int(y2)
y3 = int(y3)
... | 21.361111 | 49 | 0.470741 | 127 | 769 | 2.811024 | 0.322835 | 0.056022 | 0.089636 | 0.089636 | 0.156863 | 0.123249 | 0.089636 | 0 | 0 | 0 | 0 | 0.127835 | 0.369311 | 769 | 36 | 50 | 21.361111 | 0.608247 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0.035714 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b1f6e65ee6e7176da940ac100c95bce2eaea30 | 238 | py | Python | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial2_Solution_359be293.py | vasudev-sharma/course-content | 46fb9be49da52acb5df252dda43f11b6d1fe827f | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2021-06-09T09:56:21.000Z | 2021-06-09T09:56:21.000Z | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial2_Solution_359be293.py | macasal/course-content | 0fc5e1a0d736c6b0391eeab587012ed0ab01e462 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2021-06-16T05:41:08.000Z | 2021-06-16T05:41:08.000Z | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial2_Solution_359be293.py | macasal/course-content | 0fc5e1a0d736c6b0391eeab587012ed0ab01e462 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | t = np.arange(0, 10, 0.1) # Time from 0 to 10 years in 0.1 steps
with plt.xkcd():
p = np.exp(0.3 * t)
fig = plt.figure(figsize=(6, 4))
plt.plot(t, p)
plt.ylabel('Population (millions)')
plt.xlabel('time (years)')
plt.show() | 21.636364 | 64 | 0.60084 | 46 | 238 | 3.108696 | 0.630435 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073298 | 0.197479 | 238 | 11 | 65 | 21.636364 | 0.675393 | 0.151261 | 0 | 0 | 0 | 0 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b646cbb8b05a36f6c66a8ee0acf369718630ee | 2,339 | py | Python | src/binwalk/__main__.py | puppywang/binwalk | fa0c0bd59b8588814756942fe4cb5452e76c1dcd | [
"MIT"
] | 5,504 | 2017-11-30T21:25:07.000Z | 2022-03-31T17:00:58.000Z | src/binwalk/__main__.py | puppywang/binwalk | fa0c0bd59b8588814756942fe4cb5452e76c1dcd | [
"MIT"
] | 247 | 2017-12-07T06:09:56.000Z | 2022-03-23T05:34:47.000Z | src/binwalk/__main__.py | puppywang/binwalk | fa0c0bd59b8588814756942fe4cb5452e76c1dcd | [
"MIT"
] | 953 | 2017-12-01T17:05:17.000Z | 2022-03-26T13:15:33.000Z | import os
import sys
# If installed to a custom prefix directory, binwalk may not be in
# the default module search path(s). Try to resolve the prefix module
# path and make it the first entry in sys.path.
# Ensure that 'src/binwalk' becomes '.' instead of an empty string
_parent_dir = os.path.dirname(os.path.dirname(... | 35.984615 | 97 | 0.595554 | 302 | 2,339 | 4.513245 | 0.437086 | 0.026412 | 0.030814 | 0.02201 | 0.055759 | 0.032282 | 0 | 0 | 0 | 0 | 0 | 0.006732 | 0.301411 | 2,339 | 64 | 98 | 36.546875 | 0.827417 | 0.315092 | 0 | 0.090909 | 0 | 0 | 0.10649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.022727 | 0.113636 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b7ca82a2ce39606a44ac65893f26c1b02da5d3 | 3,174 | py | Python | server.py | AndrewB330/BinanceTerminal | 3699a295d2b2af810d30ff692bab4e106ec44392 | [
"MIT"
] | 14 | 2020-03-09T04:08:03.000Z | 2021-12-29T14:53:32.000Z | server.py | AndrewB330/BinanceTerminal | 3699a295d2b2af810d30ff692bab4e106ec44392 | [
"MIT"
] | null | null | null | server.py | AndrewB330/BinanceTerminal | 3699a295d2b2af810d30ff692bab4e106ec44392 | [
"MIT"
] | null | null | null | import time
import pymongo
import schedule
from order import *
from utils import *
# MONGODB
db = pymongo.MongoClient("mongodb://localhost:27017/")["ShaurmaBinanceTerminal"]
order_db = db["orders"]
JOB_INTERVAL = 10.0 # interval of updating
jobs_pool = {}
def worker(symbol):
try:
time_start = time.ti... | 31.74 | 116 | 0.598614 | 392 | 3,174 | 4.67602 | 0.316327 | 0.056738 | 0.057283 | 0.048009 | 0.254774 | 0.254774 | 0.148936 | 0.077469 | 0.077469 | 0.077469 | 0 | 0.046895 | 0.254253 | 3,174 | 99 | 117 | 32.060606 | 0.727503 | 0.074039 | 0 | 0.055556 | 0 | 0 | 0.13281 | 0.016388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.069444 | 0 | 0.125 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0b8186276c361f655fc43a3b80aba5c60bd0210 | 4,979 | py | Python | sarenka/backend/api_searcher/searcher_full.py | adolabsnet/sarenka | 2032aa6ddebfc69b0db551b7793080d17282ced2 | [
"MIT"
] | 380 | 2019-12-05T09:37:47.000Z | 2022-03-31T09:37:27.000Z | sarenka/backend/api_searcher/searcher_full.py | watchmen-coder/sarenka | d7fc0928e4992de3dbb1546137ca6a158e930ba8 | [
"MIT"
] | 14 | 2020-09-26T17:49:42.000Z | 2022-02-04T18:16:16.000Z | sarenka/backend/api_searcher/searcher_full.py | watchmen-coder/sarenka | d7fc0928e4992de3dbb1546137ca6a158e930ba8 | [
"MIT"
] | 60 | 2021-01-01T16:25:30.000Z | 2022-03-26T18:48:03.000Z | """
Moduł spiający wszystkie wyszukiwania w jedną klasę - wszystkei dane dla adresu ip/domeny.
Klasa bezpośrednio używana w widoku Django.
"""
from rest_framework.reverse import reverse
from typing import List, Dict
import whois
import socket
from connectors.credential import CredentialsNotFoundError
from api_searcher... | 40.811475 | 126 | 0.589677 | 530 | 4,979 | 5.422642 | 0.301887 | 0.027836 | 0.033055 | 0.027836 | 0.424843 | 0.391093 | 0.371608 | 0.30341 | 0.248434 | 0.248434 | 0 | 0.001481 | 0.321751 | 4,979 | 122 | 127 | 40.811475 | 0.849571 | 0.163687 | 0 | 0.361702 | 0 | 0 | 0.182127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074468 | false | 0 | 0.085106 | 0 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0bb420692799a6a79988f6528e8182e5954185a | 3,234 | py | Python | cifar10/train.py | ashawkey/hawtorch | a6e28422da9258458b6268f5981c68d60623e12f | [
"MIT"
] | 1 | 2019-12-01T05:48:00.000Z | 2019-12-01T05:48:00.000Z | cifar10/train.py | ashawkey/hawtorch | a6e28422da9258458b6268f5981c68d60623e12f | [
"MIT"
] | null | null | null | cifar10/train.py | ashawkey/hawtorch | a6e28422da9258458b6268f5981c68d60623e12f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
import torchvision
from torchvision import datasets, transforms
from torch.utils.data import DataLoader
import hawtorch
import hawtorch.io as io
from hawtorch import Trainer
from hawtorch.metrics import ClassificationM... | 34.042105 | 119 | 0.62987 | 357 | 3,234 | 5.54902 | 0.32493 | 0.02524 | 0.025745 | 0.037355 | 0.141343 | 0.141343 | 0.111055 | 0.111055 | 0.067643 | 0.067643 | 0 | 0.031596 | 0.246444 | 3,234 | 94 | 120 | 34.404255 | 0.781288 | 0.033704 | 0 | 0.114286 | 0 | 0 | 0.123437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.2 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0bbcdf05486aa95d06b89b25ca7866a985c51bb | 718 | py | Python | examples/scatterplot.py | ajduberstein/slayer | e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea | [
"MIT"
] | 2 | 2019-02-26T23:55:06.000Z | 2019-02-26T23:56:09.000Z | examples/scatterplot.py | ajduberstein/slayer | e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea | [
"MIT"
] | 1 | 2019-02-10T07:00:39.000Z | 2019-02-10T07:00:39.000Z | examples/scatterplot.py | ajduberstein/slayer | e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea | [
"MIT"
] | null | null | null | """
Example of how to make a Scatterplot with a time component
"""
import slayer as sly
import pandas as pd
DATA_URL = 'https://raw.githubusercontent.com/ajduberstein/sf_growth/master/public/data/business.csv'
businesses = pd.read_csv(DATA_URL)
FUCHSIA_RGBA = [255, 0, 255, 140]
color_scale = sly.ColorScale(
pal... | 26.592593 | 101 | 0.693593 | 99 | 718 | 4.888889 | 0.717172 | 0.028926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043624 | 0.169916 | 718 | 26 | 102 | 27.615385 | 0.768456 | 0.08078 | 0 | 0 | 0 | 0.055556 | 0.239264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0bc99badd8c414f8e67c165139e1e1864acd087 | 3,699 | py | Python | test_dictondisk.py | MKuranowski/dictondisk | ca25f8fed2f60d8ee63d6c5eaa9e620555581383 | [
"MIT"
] | null | null | null | test_dictondisk.py | MKuranowski/dictondisk | ca25f8fed2f60d8ee63d6c5eaa9e620555581383 | [
"MIT"
] | null | null | null | test_dictondisk.py | MKuranowski/dictondisk | ca25f8fed2f60d8ee63d6c5eaa9e620555581383 | [
"MIT"
] | null | null | null | import dictondisk
import random
import pytest
import os
remove_keys = {0, (33, 12.23), "c", "中国"}
vanilla_dict = {
0: 1337, 1: 3.14, 2: 2.71, 3: 1.61,
"a": "Ą", "b": "✈!", "c": "東京", "中国": "共産",
(1, .5): "lorem", (33, 12.23): "ipsum",
-1: ["one", "two", "three"]
}
def test_contains_update():
t = ... | 20.324176 | 58 | 0.593674 | 548 | 3,699 | 3.919708 | 0.202555 | 0.143389 | 0.146648 | 0.158752 | 0.307728 | 0.213687 | 0.16946 | 0.091248 | 0.028864 | 0 | 0 | 0.038952 | 0.257367 | 3,699 | 181 | 59 | 20.436464 | 0.739716 | 0.052176 | 0 | 0.2 | 0 | 0 | 0.038297 | 0 | 0 | 0 | 0 | 0 | 0.330435 | 1 | 0.147826 | false | 0.026087 | 0.034783 | 0 | 0.182609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0bead6599200d03855aef8174ff835ecca2f74f | 76,496 | py | Python | commonroad/scenario/lanelet.py | CommonRoad/commonroad-io | 93824961da9c41eb7768b5cf1acbed9a07446dc2 | [
"BSD-3-Clause"
] | 3 | 2022-01-05T09:10:18.000Z | 2022-03-22T15:09:43.000Z | commonroad/scenario/lanelet.py | CommonRoad/commonroad-io | 93824961da9c41eb7768b5cf1acbed9a07446dc2 | [
"BSD-3-Clause"
] | null | null | null | commonroad/scenario/lanelet.py | CommonRoad/commonroad-io | 93824961da9c41eb7768b5cf1acbed9a07446dc2 | [
"BSD-3-Clause"
] | null | null | null | import copy
import enum
from typing import *
import numpy as np
from shapely.geometry import MultiPolygon as ShapelyMultiPolygon
from shapely.geometry import Point as ShapelyPoint
from shapely.geometry import Polygon as ShapelyPolygon
from shapely.strtree import STRtree
import commonroad.geometry.transform
from commo... | 45.103774 | 120 | 0.629314 | 9,080 | 76,496 | 5.05022 | 0.065969 | 0.02015 | 0.013739 | 0.010533 | 0.508614 | 0.381368 | 0.307746 | 0.256324 | 0.214367 | 0.178559 | 0 | 0.00354 | 0.290891 | 76,496 | 1,695 | 121 | 45.130383 | 0.841826 | 0.167434 | 0 | 0.189623 | 0 | 0.00283 | 0.137656 | 0.053087 | 0 | 0 | 0 | 0 | 0.049057 | 1 | 0.120755 | false | 0 | 0.016038 | 0.036792 | 0.256604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0bf221732ca55e79444af87da162c6c9266b8fc | 363 | py | Python | djangoProject/djangoProject/myApp/urls.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | 2 | 2020-10-12T06:50:03.000Z | 2021-06-08T17:19:43.000Z | djangoProject/djangoProject/myApp/urls.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | null | null | null | djangoProject/djangoProject/myApp/urls.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | 1 | 2020-12-22T16:44:50.000Z | 2020-12-22T16:44:50.000Z |
from django.urls import path
from . import views
urlpatterns = [
path("test/", views.index, name = "index"),
path('completed/',views.show_completed,name= "completed"),
path('<int:action_id>/', views.show_action, name='action'),
path('update/', views.update_status, name="update_status"),
path('new/... | 33 | 63 | 0.674931 | 47 | 363 | 5.06383 | 0.382979 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137741 | 363 | 11 | 64 | 33 | 0.760383 | 0 | 0 | 0 | 0 | 0 | 0.23416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0c050b20614c1dbb61208ccd768082e1160610d | 14,673 | py | Python | tests/test_data_frame.py | gordonwatts/dataframe_expressions | cf135415f739377e9c2accb82606957417c7e0e6 | [
"MIT"
] | 4 | 2020-03-16T14:22:33.000Z | 2021-09-08T17:56:47.000Z | tests/test_data_frame.py | gordonwatts/dataframe_expressions | cf135415f739377e9c2accb82606957417c7e0e6 | [
"MIT"
] | 26 | 2020-05-28T20:58:42.000Z | 2020-10-21T01:27:17.000Z | tests/test_data_frame.py | gordonwatts/dataframe_expressions | cf135415f739377e9c2accb82606957417c7e0e6 | [
"MIT"
] | null | null | null | import ast
from typing import List, Optional, cast
import pytest
from dataframe_expressions import (
Column, DataFrame, ast_Callable, ast_Column, ast_DataFrame, define_alias)
from .utils_for_testing import reset_var_counter # NOQA
# numpy math functions (??)
# Advanced math operators
# (https://docs.python.... | 28.827112 | 122 | 0.647584 | 2,260 | 14,673 | 4.05177 | 0.116814 | 0.084526 | 0.037239 | 0.040952 | 0.677842 | 0.601507 | 0.535001 | 0.470897 | 0.414328 | 0.392923 | 0 | 0.033267 | 0.213317 | 14,673 | 508 | 123 | 28.883858 | 0.760028 | 0.059701 | 0 | 0.474801 | 0 | 0 | 0.152389 | 0.073109 | 0 | 0 | 0 | 0 | 0.33687 | 1 | 0.114058 | false | 0 | 0.047745 | 0 | 0.169761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a0c41cacd5163331beb9572314dcb4bf4d9b8235 | 12,660 | py | Python | main.py | ESSAKHI10/SharpZone | 1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c | [
"MIT"
] | null | null | null | main.py | ESSAKHI10/SharpZone | 1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c | [
"MIT"
] | null | null | null | main.py | ESSAKHI10/SharpZone | 1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c | [
"MIT"
] | null | null | null | # import encode
import eel
import cv2
import io
import numpy as np
import base64
import os
import time
import face_recognition
import pickle
import imutils
import datetime
from multiprocessing.pool import ThreadPool
import random
import shutil
from database import *
from camera import VideoCamera
fro... | 29.648712 | 169 | 0.562243 | 1,454 | 12,660 | 4.770289 | 0.21458 | 0.033737 | 0.015571 | 0.02624 | 0.298443 | 0.241494 | 0.190744 | 0.153979 | 0.128316 | 0.112168 | 0 | 0.019573 | 0.334123 | 12,660 | 426 | 170 | 29.71831 | 0.803203 | 0.098262 | 0 | 0.326797 | 0 | 0.006536 | 0.118904 | 0.04347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.065359 | 0.009804 | 0.130719 | 0.065359 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39f81d8b6eef50e0aea91f95d8884d5a0a59d256 | 3,713 | py | Python | models/job.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | models/job.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | models/job.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'Huang, Hua'
from models.object import JsonSerializableObj
class CubeJobStatus:
NEW = 'NEW'
PENDING = 'PENDING'
RUNNING = 'RUNNING'
ERROR = 'ERROR'
FINISHED = 'FINISHED'
DISCARDED = 'DISCARDED'
class JobInstance(JsonSerializableObj):
def __init__(sel... | 30.434426 | 75 | 0.622408 | 481 | 3,713 | 4.528067 | 0.153846 | 0.113866 | 0.126263 | 0.041322 | 0.379706 | 0.353535 | 0.331497 | 0.308999 | 0.252984 | 0.188705 | 0 | 0.001881 | 0.284137 | 3,713 | 121 | 76 | 30.68595 | 0.817532 | 0.018314 | 0 | 0.255319 | 0 | 0 | 0.077177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.010638 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39f8e72f0d8a4ab5e6ca1adccd579c3125c23d90 | 1,643 | py | Python | tools.py | yflyzhang/cascade_virality | 9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5 | [
"MIT"
] | 6 | 2020-09-09T15:31:02.000Z | 2022-02-16T04:57:55.000Z | tools.py | yflyzhang/cascade_virality | 9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5 | [
"MIT"
] | null | null | null | tools.py | yflyzhang/cascade_virality | 9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5 | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
# For illustration purpose only [easy to understand the process]
# -----------------------------
def pure_cascade_virality(G):
'''G is a directed graph(tree)'''
if not nx.is_weakly_connected(G):
# return None
return
nodes = [k for (k,v) in G.... | 23.471429 | 105 | 0.57395 | 241 | 1,643 | 3.796681 | 0.315353 | 0.013115 | 0.021858 | 0.030601 | 0.246995 | 0.178142 | 0.135519 | 0.135519 | 0.135519 | 0.135519 | 0 | 0.008518 | 0.285453 | 1,643 | 69 | 106 | 23.811594 | 0.770869 | 0.288497 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39f9818d1295e4cbcfc1bb13178c81b8bc72f7ba | 1,492 | py | Python | pyjira/actions.py | FulcrumIT/pyjira | 8ed0d22136808ba95ace253e66dd4ad7bb6b387a | [
"MIT"
] | 1 | 2020-11-05T10:24:15.000Z | 2020-11-05T10:24:15.000Z | pyjira/actions.py | FulcrumIT/pyjira | 8ed0d22136808ba95ace253e66dd4ad7bb6b387a | [
"MIT"
] | null | null | null | pyjira/actions.py | FulcrumIT/pyjira | 8ed0d22136808ba95ace253e66dd4ad7bb6b387a | [
"MIT"
] | 2 | 2017-05-15T20:06:25.000Z | 2020-11-17T09:46:34.000Z | import pyjira.api as _api
import json as _json
def get_issues(id, limit=50):
"""Return 50 issues for a project.
Parameters:
- id: id of a project.
- limit: max number of results to be returned.
"""
return _api.rest("/search?jql=project=" + str(id) + "&maxResults=" + str(limit))
def get_issue... | 24.866667 | 84 | 0.589812 | 202 | 1,492 | 4.19802 | 0.29703 | 0.035377 | 0.066038 | 0.075472 | 0.125 | 0.103774 | 0.068396 | 0 | 0 | 0 | 0 | 0.003711 | 0.27748 | 1,492 | 59 | 85 | 25.288136 | 0.782931 | 0.283512 | 0 | 0 | 0 | 0 | 0.08478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39fb765d92c4d3395b8dec3f9fb952f0fa19dddd | 963 | py | Python | gongish/cli/serve.py | meyt/gongish | 0e3cd478677c19c9331a2b563ce792d16f2860b3 | [
"MIT"
] | null | null | null | gongish/cli/serve.py | meyt/gongish | 0e3cd478677c19c9331a2b563ce792d16f2860b3 | [
"MIT"
] | 1 | 2021-09-11T22:53:48.000Z | 2021-09-11T22:53:48.000Z | gongish/cli/serve.py | meyt/gongish | 0e3cd478677c19c9331a2b563ce792d16f2860b3 | [
"MIT"
] | null | null | null | import importlib
from argparse import ArgumentParser
from wsgiref.simple_server import make_server
p = ArgumentParser(
prog="gongish serve", description="Serve a WSGI application"
)
p.add_argument(
"module",
nargs="?",
help="Module and application name (e.g: myapp:app)",
type=str,
)
p.add_argument... | 22.395349 | 64 | 0.626168 | 120 | 963 | 4.925 | 0.483333 | 0.033841 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01752 | 0.229491 | 963 | 42 | 65 | 22.928571 | 0.778976 | 0 | 0 | 0.111111 | 0 | 0 | 0.200415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.111111 | 0 | 0.138889 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39fcb7feb468394c971a4be4fe1ebd1c774cf3a6 | 1,376 | py | Python | examples/plot/lines.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 12 | 2021-06-14T07:28:29.000Z | 2022-02-25T02:49:49.000Z | examples/plot/lines.py | beidongjiedeguang/manim-kunyuan | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 1 | 2022-02-01T12:30:14.000Z | 2022-02-01T12:30:14.000Z | examples/plot/lines.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 2 | 2021-05-13T13:24:15.000Z | 2021-05-18T02:56:22.000Z | from examples.example_imports import *
from manim_express.eager import PlotObj
scene = EagerModeScene(screen_size=Size.bigger)
graph = Line().scale(0.2)
# t0 = time.time()
#
# delta_t = 0.5
# for a in np.linspace(3, 12, 3):
# graph2 = ParametricCurve(lambda t: [t,
# 0.8 * n... | 27.52 | 111 | 0.5625 | 211 | 1,376 | 3.56872 | 0.421801 | 0.095618 | 0.086321 | 0.132802 | 0.15405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045635 | 0.267442 | 1,376 | 49 | 112 | 28.081633 | 0.701389 | 0.375727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
39fede8d13d0249be971c45d4492a0a209527ae6 | 785 | py | Python | get_observation.py | RadixSeven/FhirGaP | 1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0 | [
"Apache-2.0"
] | null | null | null | get_observation.py | RadixSeven/FhirGaP | 1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0 | [
"Apache-2.0"
] | null | null | null | get_observation.py | RadixSeven/FhirGaP | 1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Note that this is python3 only
import argparse
import requests
parser = argparse.ArgumentParser(
"Get an observation from a FHIR server with authentication")
parser.add_argument(
"id", help="The observation id to retrieve")
parser.add_argument(
"auth", default="Admin",
help="The... | 30.192308 | 78 | 0.699363 | 107 | 785 | 5.093458 | 0.607477 | 0.049541 | 0.093578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025602 | 0.15414 | 785 | 25 | 79 | 31.4 | 0.795181 | 0.064968 | 0 | 0.15 | 0 | 0 | 0.443228 | 0.030096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2600aabf67e890934f21d69c79a38729246c8b46 | 3,989 | py | Python | model_training_scripts/image_processing.py | jc2554/iVending | 2a6b04143a56e202eba99b0a509945cf31aa956d | [
"MIT"
] | null | null | null | model_training_scripts/image_processing.py | jc2554/iVending | 2a6b04143a56e202eba99b0a509945cf31aa956d | [
"MIT"
] | null | null | null | model_training_scripts/image_processing.py | jc2554/iVending | 2a6b04143a56e202eba99b0a509945cf31aa956d | [
"MIT"
] | null | null | null | """
script to post-process training images by using OpenCV face detection
and normalization
MIT License
Copyright (c) 2019 JinJie Chen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without re... | 36.263636 | 102 | 0.656806 | 534 | 3,989 | 4.799625 | 0.400749 | 0.034335 | 0.029263 | 0.008584 | 0.077253 | 0.054623 | 0.036676 | 0.036676 | 0.036676 | 0 | 0 | 0.011186 | 0.260466 | 3,989 | 109 | 103 | 36.59633 | 0.857627 | 0.324141 | 0 | 0 | 0 | 0 | 0.088934 | 0.020082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260184f873fdef40a6660e5cdbc4d152fa8c734a | 1,816 | py | Python | flask_map.py | zenranda/proj5-map | 13dc8866483f45ac806342c1b3aa2eec1354a0dc | [
"Artistic-2.0"
] | null | null | null | flask_map.py | zenranda/proj5-map | 13dc8866483f45ac806342c1b3aa2eec1354a0dc | [
"Artistic-2.0"
] | null | null | null | flask_map.py | zenranda/proj5-map | 13dc8866483f45ac806342c1b3aa2eec1354a0dc | [
"Artistic-2.0"
] | null | null | null | import flask
from flask import render_template
from flask import request
from flask import url_for
import json
import logging
###
# Globals
###
app = flask.Flask(__name__)
import CONFIG
###
# Pages
###
@app.route("/")
@app.route("/index")
@app.route("/map")
def index():
app.logger.debug("Main page entry")
if '... | 25.222222 | 91 | 0.614537 | 251 | 1,816 | 4.354582 | 0.410359 | 0.049405 | 0.064044 | 0.05764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009489 | 0.245595 | 1,816 | 71 | 92 | 25.577465 | 0.788321 | 0.161344 | 0 | 0 | 0 | 0 | 0.147574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.152174 | 0 | 0.23913 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2602aa16755c35ffe309d7e1deefd2b15d53fedd | 3,717 | py | Python | tcvx21/grillix_post/observables/parallel_gradient_m.py | dsoliveir/TCV-X21 | 784c55adb33417e21a6736e2504a3895a9348dbe | [
"CC-BY-4.0"
] | 1 | 2021-12-13T11:52:39.000Z | 2021-12-13T11:52:39.000Z | tcvx21/grillix_post/observables/parallel_gradient_m.py | dsoliveir/TCV-X21 | 784c55adb33417e21a6736e2504a3895a9348dbe | [
"CC-BY-4.0"
] | 2 | 2021-12-18T17:18:52.000Z | 2022-01-26T09:23:23.000Z | tcvx21/grillix_post/observables/parallel_gradient_m.py | dsoliveir/TCV-X21 | 784c55adb33417e21a6736e2504a3895a9348dbe | [
"CC-BY-4.0"
] | 2 | 2021-12-13T12:56:09.000Z | 2022-01-25T20:30:28.000Z | import xarray as xr
import numpy as np
from pathlib import Path
from tcvx21.grillix_post.components import FieldlineTracer
from tcvx21.grillix_post.lineouts import Lineout
xr.set_options(keep_attrs=True)
def initialise_lineout_for_parallel_gradient(
lineout, grid, equi, norm, npol, stored_trace: Path = None
):
... | 37.17 | 117 | 0.684154 | 469 | 3,717 | 5.191898 | 0.332623 | 0.03614 | 0.043121 | 0.017248 | 0.245585 | 0.173306 | 0.173306 | 0.141273 | 0.141273 | 0.110062 | 0 | 0.004811 | 0.217111 | 3,717 | 99 | 118 | 37.545455 | 0.831959 | 0.135324 | 0 | 0.029412 | 0 | 0 | 0.109424 | 0.020557 | 0 | 0 | 0 | 0 | 0.044118 | 1 | 0.044118 | false | 0 | 0.073529 | 0 | 0.147059 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26043d5d77004fcf11c43eb7691efa8015b6c1e6 | 1,039 | py | Python | rhymes.py | hayderkharrufa/arabic_poetry_generator | 82f2ed726ec6270c3ee1d2f7c7aa1783df973708 | [
"MIT"
] | 72 | 2020-05-29T19:58:22.000Z | 2022-03-11T18:53:56.000Z | rhymes.py | mahfoudhich/arabic_poem_generator | 82f2ed726ec6270c3ee1d2f7c7aa1783df973708 | [
"MIT"
] | 1 | 2020-06-12T11:03:45.000Z | 2020-08-05T17:52:27.000Z | rhymes.py | mahfoudhich/arabic_poem_generator | 82f2ed726ec6270c3ee1d2f7c7aa1783df973708 | [
"MIT"
] | 34 | 2020-06-04T14:38:39.000Z | 2022-03-16T20:50:56.000Z | # coding: utf-8
# author: Haydara https://www.youtube.com/haydara
import pickle
with open('vocabs.pkl', 'rb') as pickle_load:
voc_list = pickle.load(pickle_load)
allowed_chars = ['ذ', 'ض', 'ص', 'ث', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'د',
'ش', 'س', 'ي', 'ب', 'ل', 'ا', 'أ', 'ت', 'ن', '... | 29.685714 | 102 | 0.505294 | 154 | 1,039 | 3.318182 | 0.545455 | 0.058708 | 0.076321 | 0.043053 | 0.547945 | 0.547945 | 0.446184 | 0.446184 | 0.446184 | 0.317025 | 0 | 0.003932 | 0.26564 | 1,039 | 34 | 103 | 30.558824 | 0.661861 | 0.059673 | 0 | 0.48 | 0 | 0 | 0.101643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2607fe4913aa92b0a573f52ce885f77ac1e7a144 | 17,667 | py | Python | ots_eval/outlier_detection/doots.py | YellowOfTheEgg/ots-eval | 8ec08e60330d41f8f7ffd571dd6301cdedaefd99 | [
"BSD-3-Clause"
] | 3 | 2021-03-28T14:46:57.000Z | 2022-01-03T17:25:19.000Z | ots_eval/outlier_detection/doots.py | YellowOfTheEgg/ots-eval | 8ec08e60330d41f8f7ffd571dd6301cdedaefd99 | [
"BSD-3-Clause"
] | null | null | null | ots_eval/outlier_detection/doots.py | YellowOfTheEgg/ots-eval | 8ec08e60330d41f8f7ffd571dd6301cdedaefd99 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T10:56:14.000Z | 2022-01-11T10:56:14.000Z | import pandas
import numpy as np
from .reference_histogram_outlier import HistOutlier
from typing import Union, Tuple
class DOOTS(object):
def __init__(self, data: pandas.DataFrame, weighting: bool = False, jaccard: bool = False):
"""
Params:
data (DataFrame) - pandas DataFrame with c... | 49.487395 | 138 | 0.572819 | 2,026 | 17,667 | 4.752221 | 0.116486 | 0.055048 | 0.031159 | 0.043623 | 0.418467 | 0.387723 | 0.324678 | 0.302971 | 0.279809 | 0.274823 | 0 | 0.008741 | 0.339503 | 17,667 | 356 | 139 | 49.626404 | 0.816351 | 0.314768 | 0 | 0.215789 | 0 | 0 | 0.017331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057895 | false | 0 | 0.021053 | 0 | 0.136842 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260902dd3e508f3dd93dbd19435e62ca56223adf | 3,405 | py | Python | SWIG_fast_functions/test.py | twni2016/OrganSegRSTN_PyTorch | bf571320e718c8f138e04d48645e3b4dfe75801d | [
"MIT"
] | 100 | 2018-08-01T04:42:36.000Z | 2022-03-23T07:01:21.000Z | SWIG_fast_functions/test.py | bharat3012/OrganSegRSTN_PyTorch | aff23489b1f3006761e3270178adfcccb63d0de9 | [
"MIT"
] | 12 | 2018-08-07T10:35:47.000Z | 2022-02-21T09:09:42.000Z | SWIG_fast_functions/test.py | bharat3012/OrganSegRSTN_PyTorch | aff23489b1f3006761e3270178adfcccb63d0de9 | [
"MIT"
] | 35 | 2018-08-06T21:27:36.000Z | 2021-11-03T10:20:16.000Z | import numpy as np
import fast_functions as ff
import time
def DSC_computation(label, pred):
pred_sum = pred.sum()
label_sum = label.sum()
inter_sum = (pred & label).sum()
return 2 * float(inter_sum) / (pred_sum + label_sum), inter_sum, pred_sum, label_sum
def post_processing(F, S, threshold, top2):
F_sum = F.... | 29.608696 | 85 | 0.595888 | 605 | 3,405 | 3.294215 | 0.14876 | 0.032112 | 0.02007 | 0.028098 | 0.554942 | 0.496237 | 0.439538 | 0.415454 | 0.415454 | 0.409433 | 0 | 0.089905 | 0.229075 | 3,405 | 114 | 86 | 29.868421 | 0.669333 | 0 | 0 | 0.254717 | 0 | 0 | 0.009401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.028302 | 0 | 0.084906 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260b9f9c6262684a4bbfdcc0510786d9313421e4 | 358 | py | Python | tests/main.py | zodiuxus/opensimplex | d8c761d91834a809e51987d25439549c50f0effb | [
"MIT"
] | null | null | null | tests/main.py | zodiuxus/opensimplex | d8c761d91834a809e51987d25439549c50f0effb | [
"MIT"
] | null | null | null | tests/main.py | zodiuxus/opensimplex | d8c761d91834a809e51987d25439549c50f0effb | [
"MIT"
] | null | null | null | from opensimplex import OpenSimplex
import torch, time
def opensimplex_test(device: str):
generator = torch.Generator(device=device)
start = time.time()
os = OpenSimplex(generator=generator)
end = time.time()
return os.noise2(10,10), device, end-start
print(opensimplex_test('cuda'))
pri... | 27.538462 | 47 | 0.701117 | 44 | 358 | 5.636364 | 0.431818 | 0.181452 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.173184 | 358 | 13 | 48 | 27.538462 | 0.820946 | 0 | 0 | 0 | 0 | 0 | 0.020173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260d3744fb17af1e21703f4ae4917654e0d07e54 | 10,731 | py | Python | part1/ELMo/modules/elmo.py | peter850706/Contextual-embeddings-for-sequence-classification | e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0 | [
"MIT"
] | null | null | null | part1/ELMo/modules/elmo.py | peter850706/Contextual-embeddings-for-sequence-classification | e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0 | [
"MIT"
] | null | null | null | part1/ELMo/modules/elmo.py | peter850706/Contextual-embeddings-for-sequence-classification | e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from collections import namedtuple
from ELMo.modules.char_embedding import CharEmbedding
class ELMo(nn.Module):
"""Implement the Embeddings from Language Models (ELMo) as described in "Deep contextualized w... | 63.875 | 191 | 0.594353 | 1,150 | 10,731 | 5.213913 | 0.137391 | 0.042028 | 0.042695 | 0.048032 | 0.661775 | 0.625083 | 0.601401 | 0.59523 | 0.569046 | 0.552035 | 0 | 0.017232 | 0.324015 | 10,731 | 168 | 192 | 63.875 | 0.809347 | 0.203895 | 0 | 0.463918 | 0 | 0 | 0.021423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0 | 0.051546 | 0 | 0.154639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260d56541b9590ff3dcf8aa4ac7f649e63e42413 | 3,106 | py | Python | src/app/externalOutages/createRealTimeOutage.py | nagasudhirpulla/wrldc_codebook | 8fbc795074e16e2012b29ae875b99aa721a7f021 | [
"MIT"
] | null | null | null | src/app/externalOutages/createRealTimeOutage.py | nagasudhirpulla/wrldc_codebook | 8fbc795074e16e2012b29ae875b99aa721a7f021 | [
"MIT"
] | 21 | 2021-01-08T18:03:32.000Z | 2021-02-02T16:17:34.000Z | src/app/externalOutages/createRealTimeOutage.py | nagasudhirpulla/wrldc_codebook | 8fbc795074e16e2012b29ae875b99aa721a7f021 | [
"MIT"
] | null | null | null | import datetime as dt
import cx_Oracle
from src.app.externalOutages.getReasonId import getReasonId
def createRealTimeOutage(pwcDbConnStr: str, elemTypeId: int, elementId: int, outageDt: dt.datetime, outageTypeId: int,
reason: str, elementName: str, sdReqId: int, outageTagId: int) -> int:
... | 36.541176 | 118 | 0.640052 | 345 | 3,106 | 5.649275 | 0.385507 | 0.025654 | 0.02155 | 0.016419 | 0.054387 | 0.03489 | 0.03489 | 0.03489 | 0 | 0 | 0 | 0.008319 | 0.264649 | 3,106 | 84 | 119 | 36.97619 | 0.845009 | 0.210882 | 0 | 0.115385 | 0 | 0.038462 | 0.331378 | 0.065354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.134615 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
260e0a514e1da67dfebf1f15683649ad98d25110 | 918 | py | Python | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | """Utils for jitsi"""
from datetime import timedelta
from django.conf import settings
from django.utils import timezone
import jwt
def create_payload(room, moderator=True):
"""Create the payload so that it contains each information jitsi requires"""
token_payload = {
"exp": timezone.now()
+ ... | 25.5 | 80 | 0.668845 | 109 | 918 | 5.46789 | 0.440367 | 0.080537 | 0.080537 | 0.063758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004249 | 0.230937 | 918 | 35 | 81 | 26.228571 | 0.839943 | 0.159041 | 0 | 0 | 0 | 0 | 0.050265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261a000d9348f195b1440a4cf608cb7c86cce74a | 7,359 | py | Python | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 15 | 2017-02-14T04:16:59.000Z | 2021-10-05T15:20:02.000Z | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 32 | 2015-11-04T15:53:50.000Z | 2021-12-12T03:28:23.000Z | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 2 | 2017-02-24T16:30:39.000Z | 2021-09-24T05:26:05.000Z | # -*- coding: utf-8 -*-
# Local imports
from cpenv import mappings
from cpenv.compat import platform
def test_platform_values():
'''join_dicts with platform values'''
tests = {
'implicit_set': {
'osx': 'osx',
'linux': 'linux',
'win': 'win',
},
'imp... | 27.055147 | 75 | 0.467455 | 909 | 7,359 | 3.684268 | 0.117712 | 0.091371 | 0.121827 | 0.157958 | 0.434757 | 0.37235 | 0.359809 | 0.343386 | 0.312033 | 0.258883 | 0 | 0.030176 | 0.28849 | 7,359 | 271 | 76 | 27.154982 | 0.609435 | 0.145944 | 0 | 0.28022 | 0 | 0 | 0.159117 | 0 | 0 | 0 | 0 | 0 | 0.159341 | 1 | 0.065934 | false | 0 | 0.010989 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261cb72cdb5369f93d2ed990d5292c026f4a45f8 | 3,313 | py | Python | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | '''
https://github.com/Adeon18/logical_puzzle
'''
# There are now proper commits in this repository becouse I
# created 1 repo for 2 tasks and then had to move
import math
def check_rows(board: list) -> bool:
'''
Check for row correction in board.
>>> check_rows(["**** ****", "***1 ****", "** 3****", "... | 29.318584 | 78 | 0.543616 | 437 | 3,313 | 4.006865 | 0.306636 | 0.027413 | 0.029697 | 0.009138 | 0.186179 | 0.073101 | 0.073101 | 0.073101 | 0.073101 | 0.042262 | 0 | 0.032216 | 0.297314 | 3,313 | 112 | 79 | 29.580357 | 0.719931 | 0.408391 | 0 | 0.130435 | 0 | 0 | 0.005473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.326087 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261cd8b29762935b9416a0a01f195708019addab | 1,528 | py | Python | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 21 | 2016-09-18T19:13:58.000Z | 2021-11-10T18:35:30.000Z | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 3 | 2016-09-21T14:58:41.000Z | 2019-05-29T23:35:32.000Z | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 15 | 2016-05-24T11:15:47.000Z | 2021-11-10T18:35:22.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.510638 | 91 | 0.744764 | 194 | 1,528 | 5.829897 | 0.505155 | 0.05305 | 0.022989 | 0.028294 | 0.167993 | 0.167993 | 0.113174 | 0.113174 | 0.113174 | 0 | 0 | 0.040258 | 0.187173 | 1,528 | 46 | 92 | 33.217391 | 0.87037 | 0.492147 | 0 | 0.315789 | 0 | 0 | 0.212121 | 0.084321 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261cf1e1d0b31aa16744bdc1d7356972182ab39f | 587 | py | Python | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | null | null | null | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | 1 | 2017-11-15T22:38:40.000Z | 2018-01-24T02:28:29.000Z | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | null | null | null | import tempfile
import unittest
from symplectic import jsonformat
class JSONFormatTest(unittest.TestCase):
def test_parse(self):
with tempfile.NamedTemporaryFile() as fp:
fp.write("""
{
"title": "things",
"slug": "stuff",
"date": "2017-09-14 22... | 25.521739 | 62 | 0.531516 | 59 | 587 | 5.220339 | 0.745763 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.335605 | 587 | 22 | 63 | 26.681818 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.396934 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261ded6e9abcc1091124bde1d09dfb13cef1f119 | 2,285 | py | Python | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | import shutil
import tempfile
from django import forms
from django.test import Client, TestCase
from django.urls import reverse
from posts.forms import PostForm
from posts.models import Group, Post, User
from django.conf import settings
TEMP_MEDIA_ROOT = tempfile.mkdtemp(dir=settings.BASE_DIR)
class StaticURLTes... | 27.865854 | 91 | 0.615755 | 254 | 2,285 | 5.401575 | 0.311024 | 0.039359 | 0.039359 | 0.033528 | 0.077259 | 0.046647 | 0 | 0 | 0 | 0 | 0 | 0.001214 | 0.279212 | 2,285 | 81 | 92 | 28.209877 | 0.831815 | 0.010066 | 0 | 0.095238 | 0 | 0 | 0.086245 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.126984 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261e064420fd7dcd06ca3011998456030259d91a | 8,460 | py | Python | python_module/test/unit/functional/test_functional.py | WestCityInstitute/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | 2 | 2020-03-26T08:26:29.000Z | 2020-06-01T14:41:38.000Z | python_module/test/unit/functional/test_functional.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | null | null | null | python_module/test/unit/functional/test_functional.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | 1 | 2020-11-09T06:29:51.000Z | 2020-11-09T06:29:51.000Z | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | 32.045455 | 88 | 0.61513 | 1,264 | 8,460 | 4 | 0.140823 | 0.055182 | 0.052611 | 0.035997 | 0.496835 | 0.433742 | 0.389438 | 0.379945 | 0.379945 | 0.375198 | 0 | 0.077893 | 0.20331 | 8,460 | 263 | 89 | 32.1673 | 0.672255 | 0.042553 | 0 | 0.273684 | 0 | 0 | 0.039674 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 1 | 0.115789 | false | 0 | 0.026316 | 0.021053 | 0.163158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
261ea5255801b00d98a0de6fa447d7ccb3d9504f | 2,964 | py | Python | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 126 | 2019-03-22T19:40:38.000Z | 2022-02-16T13:01:44.000Z | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 1,189 | 2019-03-25T10:39:27.000Z | 2022-03-31T12:50:33.000Z | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 62 | 2019-03-22T22:09:49.000Z | 2022-03-08T12:05:56.000Z | # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39 | 114 | 0.619096 | 366 | 2,964 | 4.81694 | 0.34153 | 0.056154 | 0.031197 | 0.032331 | 0.191151 | 0.122518 | 0.086217 | 0.052184 | 0 | 0 | 0 | 0.006268 | 0.30027 | 2,964 | 75 | 115 | 39.52 | 0.84378 | 0.196694 | 0 | 0.181818 | 0 | 0 | 0.032953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.018182 | 0.018182 | 0.290909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2620addb6c0a2614912637726159387427b444d3 | 2,516 | py | Python | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 86 | 2015-01-20T03:12:46.000Z | 2022-01-10T04:05:21.000Z | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 48 | 2015-05-12T09:31:23.000Z | 2018-12-05T14:45:46.000Z | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 25 | 2015-01-18T23:02:11.000Z | 2021-06-12T07:30:35.000Z | import unittest
import numpy as np
import El
import skylark.nla as sl_nla
from .. import utils
class NLATestCase(unittest.TestCase):
"""Tests nla functions."""
def test_approximate_svd(self):
"""Compute the SVD of **A** such that **SVD(A) = U S V^T**."""
n = 100
# Generate random m... | 25.938144 | 79 | 0.543323 | 360 | 2,516 | 3.708333 | 0.275 | 0.07191 | 0.052434 | 0.041948 | 0.408989 | 0.337079 | 0.30412 | 0.242697 | 0.242697 | 0.205243 | 0 | 0.015716 | 0.31717 | 2,516 | 97 | 80 | 25.938144 | 0.76135 | 0.158585 | 0 | 0.277778 | 0 | 0 | 0.003831 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.055556 | false | 0 | 0.092593 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2620ea952fc9ad7c4d6a79e6e5fedbfdc07b3d8b | 563 | py | Python | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread("images/watter.jpeg")
img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
kernel = np.ones((5,5),np.float32)/25
dst1 = cv2.filter2D(img,-1,kernel)
blur = cv2.blur(img,(5,5))
g_blur = cv2.GaussianBlur(img,(5,5),0)
median_blur = cv2.medianBlur... | 21.653846 | 66 | 0.687389 | 99 | 563 | 3.858586 | 0.474747 | 0.04712 | 0.026178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.129663 | 563 | 25 | 67 | 22.52 | 0.718367 | 0 | 0 | 0 | 0 | 0 | 0.1121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2621c3a515fc4c1d4a5faef8759aaadc1e7eaeca | 8,587 | py | Python | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | import time
from datetime import timedelta
from random import choice
from typing import List, Optional
from fastapi import Depends, FastAPI, File, UploadFile
from fastapi.staticfiles import StaticFiles
from passlib.context import CryptContext
from pydantic import BaseModel
from sqlalchemy.orm import Session
from conf... | 37.995575 | 448 | 0.584721 | 965 | 8,587 | 5.078756 | 0.241451 | 0.0404 | 0.036727 | 0.040808 | 0.449704 | 0.35809 | 0.310549 | 0.227301 | 0.210977 | 0.189349 | 0 | 0.0249 | 0.242343 | 8,587 | 225 | 449 | 38.164444 | 0.728405 | 0.003494 | 0 | 0.235955 | 0 | 0.005618 | 0.237422 | 0.046777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011236 | false | 0.044944 | 0.067416 | 0.011236 | 0.286517 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
262261b72d2641412ed943023fa74d4339a36852 | 7,665 | py | Python | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 65 | 2021-12-30T03:30:52.000Z | 2022-03-25T01:44:32.000Z | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 1 | 2021-12-31T01:51:35.000Z | 2022-01-01T14:42:37.000Z | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 7 | 2021-12-31T09:25:06.000Z | 2022-03-10T01:25:09.000Z | #! /usr/bin/env python
# coding=utf-8
# ================================================================
#
# Author : miemie2013
# Created date: 2020-10-15 14:50:03
# Description : pytorch_ppyolo
#
# ================================================================
import torch
import torch.nn as nn
import to... | 35.486111 | 119 | 0.562818 | 983 | 7,665 | 4.219736 | 0.208545 | 0.043394 | 0.027001 | 0.027724 | 0.292671 | 0.245419 | 0.148505 | 0.136933 | 0.080039 | 0.080039 | 0 | 0.063822 | 0.302935 | 7,665 | 215 | 120 | 35.651163 | 0.712521 | 0.241879 | 0 | 0.089431 | 0 | 0 | 0.008421 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 1 | 0.073171 | false | 0 | 0.04878 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
262e2a6baf3b88e437fd423ee773c563521113f5 | 337 | py | Python | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | 2 | 2020-05-28T12:50:33.000Z | 2020-05-29T09:06:01.000Z | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | 2 | 2021-03-31T19:55:09.000Z | 2021-12-13T20:42:08.000Z | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | null | null | null | import imdb
def movie(name):
ia = imdb.IMDb()
movie_obj = ia.search_movie(name)
el = ia.get_movie(movie_obj[0].movieID)
title = str(el.get('title'))
year = str(el.get('year'))
plot = str(el.get('plot')[0])
ty = False
if str(el.get('kind')) == 'tv series':
ty = True
return(ti... | 25.923077 | 43 | 0.581602 | 54 | 337 | 3.555556 | 0.444444 | 0.104167 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.231454 | 337 | 13 | 44 | 25.923077 | 0.733591 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |