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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c1f0c35f0c434bccb493b2149bcc26ff73971d1 | 3,046 | py | Python | zaqar-8.0.0/zaqar/tests/unit/transport/websocket/base.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 97 | 2015-01-02T09:35:23.000Z | 2022-03-25T00:38:45.000Z | zaqar-8.0.0/zaqar/tests/unit/transport/websocket/base.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | zaqar-8.0.0/zaqar/tests/unit/transport/websocket/base.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 44 | 2015-01-28T03:01:28.000Z | 2021-05-13T18:55:19.000Z | # Copyright (c) 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 27.944954 | 79 | 0.695666 | 407 | 3,046 | 5.120393 | 0.361179 | 0.034549 | 0.034549 | 0.071977 | 0.223608 | 0.175624 | 0.12476 | 0.104607 | 0.044146 | 0 | 0 | 0.015632 | 0.222915 | 3,046 | 108 | 80 | 28.203704 | 0.864808 | 0.375575 | 0 | 0.069767 | 0 | 0 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.069767 | false | 0.069767 | 0.139535 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c234cba96924d08fadab794dd4d366753d2082b | 1,263 | py | Python | backend/Backendapi/douban/serializers.py | f0rdream/SkyRead | 798b4dd35b7e6be41e5fed4537d3f6034d20494e | [
"MIT"
] | null | null | null | backend/Backendapi/douban/serializers.py | f0rdream/SkyRead | 798b4dd35b7e6be41e5fed4537d3f6034d20494e | [
"MIT"
] | null | null | null | backend/Backendapi/douban/serializers.py | f0rdream/SkyRead | 798b4dd35b7e6be41e5fed4537d3f6034d20494e | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.serializers import (
SerializerMethodField,
ModelSerializer,
ValidationError,
DateTimeField,
CharField,
IntegerField,
)
from .models import Comment,Reading,Review
from rest_framework import serializers
class Doub... | 21.775862 | 53 | 0.482977 | 81 | 1,263 | 7.481481 | 0.432099 | 0.132013 | 0.158416 | 0.191419 | 0.115512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.426762 | 1,263 | 58 | 54 | 21.775862 | 0.825967 | 0.160728 | 0 | 0.380952 | 0 | 0 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c31e5f6413725d629bc66cad76ce8b5400705c3 | 29,119 | py | Python | HCm-opt/HCm_v4.2/HCm_v4.2.py | Borja-Perez-Diaz/HII-CHI-Mistry | d0dafc753c63246bf14b77807a885ddc7bd4bb99 | [
"MIT"
] | null | null | null | HCm-opt/HCm_v4.2/HCm_v4.2.py | Borja-Perez-Diaz/HII-CHI-Mistry | d0dafc753c63246bf14b77807a885ddc7bd4bb99 | [
"MIT"
] | null | null | null | HCm-opt/HCm_v4.2/HCm_v4.2.py | Borja-Perez-Diaz/HII-CHI-Mistry | d0dafc753c63246bf14b77807a885ddc7bd4bb99 | [
"MIT"
] | null | null | null | # Filename: HII-CHCm_v 4.2.py
import string
import numpy as np
import sys
#sys.stderr = open('errorlog.txt', 'w')
#Function for interpolation of grids
def interpolate(grid,z,zmin,zmax,n):
ncol = 9
vec = []
for col in range(ncol):
inter = 0
no_inter = 0
for row in range(0,len(grid)):
... | 33.741599 | 266 | 0.504138 | 4,486 | 29,119 | 3.063085 | 0.061525 | 0.035514 | 0.020377 | 0.033113 | 0.719744 | 0.677607 | 0.633869 | 0.621061 | 0.60687 | 0.604614 | 0 | 0.122578 | 0.34778 | 29,119 | 862 | 267 | 33.780742 | 0.600937 | 0.017034 | 0 | 0.656425 | 0 | 0.01676 | 0.109045 | 0.025487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001397 | false | 0 | 0.00419 | 0 | 0.006983 | 0.068436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c32351c4c533e5cb8d687350f22e9e469f1fca6 | 596 | py | Python | data-structures/lists.py | ermus19/python-examples | 38f53cc1fbd45f3fdb6b1bb79993090773000219 | [
"MIT"
] | null | null | null | data-structures/lists.py | ermus19/python-examples | 38f53cc1fbd45f3fdb6b1bb79993090773000219 | [
"MIT"
] | null | null | null | data-structures/lists.py | ermus19/python-examples | 38f53cc1fbd45f3fdb6b1bb79993090773000219 | [
"MIT"
] | null | null | null | a = ['a', 'b', 'c', 'd']
print("This is a list", a)
print("It is", len(a), "elements length.")
print("Let's check if element 'd' is in the list:", 'd' in a)
print("This should be the maximun value of the list", max(a))
print("This should be the minnimun value of the list", min(a))
print("This is a list, item ... | 27.090909 | 63 | 0.612416 | 111 | 596 | 3.288288 | 0.351351 | 0.147945 | 0.120548 | 0.065753 | 0.389041 | 0.30137 | 0.186301 | 0.186301 | 0 | 0 | 0 | 0.004292 | 0.218121 | 596 | 22 | 64 | 27.090909 | 0.77897 | 0 | 0 | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6c32e8e381ee9df9923b26d199c0208c7ed8afb5 | 510 | py | Python | source/60-Verifica_palíndromo.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/60-Verifica_palíndromo.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/60-Verifica_palíndromo.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | # Verifica palíndromo
# Faça uma função que recebe uma string e retorna True se ela for um palíndromo (é a mesma de trás para frente), ou False caso contrário. Por exemplo, a string 'roma é amor' é um palíndromo.
# Use fatiamento.
# Desafio 1: dá para fazer essa função com apenas 2 linhas de código.
# Desafio 2: resolv... | 39.230769 | 190 | 0.719608 | 83 | 510 | 4.373494 | 0.710843 | 0.066116 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.213725 | 510 | 12 | 191 | 42.5 | 0.895262 | 0.762745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c3309b8f9fa8f0ffdbdeb2359df3541df31c228 | 3,087 | py | Python | flask_csp/test_csp.py | twaldear/flask-csp | eb0c012baf21fab4e5f7bc37f958e58e2337a01b | [
"MIT"
] | 8 | 2016-09-01T12:41:59.000Z | 2020-11-20T00:33:12.000Z | flask_csp/test_csp.py | SmartManoj/flask-csp | 0f679af368299e36ee9008861fbd4e764abf4b86 | [
"MIT"
] | 7 | 2015-08-12T10:28:22.000Z | 2021-04-23T00:34:34.000Z | flask_csp/test_csp.py | SmartManoj/flask-csp | 0f679af368299e36ee9008861fbd4e764abf4b86 | [
"MIT"
] | 5 | 2016-09-30T11:03:26.000Z | 2020-03-31T08:45:36.000Z | import unittest
import tempfile
from flask import Flask
from flask_csp.csp import csp_default, create_csp_header, csp_header
class CspTestFunctions(unittest.TestCase):
""" test base functions """
def setUp(self):
tmp = tempfile.mkstemp()
self.dh = csp_default()
self.dh.default_file = tmp[1]
def test_create_c... | 29.970874 | 92 | 0.686751 | 425 | 3,087 | 4.842353 | 0.2 | 0.056851 | 0.037901 | 0.052478 | 0.503401 | 0.471331 | 0.449951 | 0.431001 | 0.406706 | 0.322157 | 0 | 0.000378 | 0.142857 | 3,087 | 102 | 93 | 30.264706 | 0.7774 | 0.109815 | 0 | 0.480519 | 0 | 0 | 0.183878 | 0.060178 | 0 | 0 | 0 | 0 | 0.168831 | 1 | 0.220779 | false | 0 | 0.051948 | 0.051948 | 0.38961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c3e2ff42efe6be76247758bf8cf7a71c15a12f0 | 1,907 | py | Python | ude/communication/grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | ude/communication/grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | ude/communication/grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | #################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). ... | 44.348837 | 81 | 0.450446 | 164 | 1,907 | 5.176829 | 0.567073 | 0.070671 | 0.084806 | 0.037691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003466 | 0.394861 | 1,907 | 42 | 82 | 45.404762 | 0.732236 | 0.662821 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c41880b446043d4425ae63f68c735e69c2598d2 | 2,889 | py | Python | neutron_lbaas/agent/agent_api.py | kayrus/neutron-lbaas | d582fc52c725584e83b01e33f617f11d49a165a8 | [
"Apache-2.0"
] | 1 | 2017-11-13T13:24:12.000Z | 2017-11-13T13:24:12.000Z | neutron_lbaas/agent/agent_api.py | kayrus/neutron-lbaas | d582fc52c725584e83b01e33f617f11d49a165a8 | [
"Apache-2.0"
] | 2 | 2018-10-30T11:37:42.000Z | 2020-09-01T12:08:36.000Z | neutron_lbaas/agent/agent_api.py | kayrus/neutron-lbaas | d582fc52c725584e83b01e33f617f11d49a165a8 | [
"Apache-2.0"
] | 5 | 2018-09-21T07:56:14.000Z | 2020-10-13T09:52:15.000Z | # Copyright 2013 New Dream Network, LLC (DreamHost)
# Copyright 2015 Rackspace
#
# 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
... | 39.575342 | 78 | 0.657667 | 354 | 2,889 | 5.189266 | 0.330508 | 0.091453 | 0.065324 | 0.095808 | 0.367447 | 0.316821 | 0.316821 | 0.316821 | 0.316821 | 0.316821 | 0 | 0.007463 | 0.257875 | 2,889 | 72 | 79 | 40.125 | 0.849347 | 0.241606 | 0 | 0.309524 | 0 | 0 | 0.06682 | 0.031336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.047619 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c44844e65fa9cab5fb2f67d2234bed6aca02d0a | 2,463 | py | Python | backend/src/gloader/xml/sax/drivers2/drv_sgmlop_html.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 11 | 2019-03-02T20:39:34.000Z | 2021-09-02T19:47:38.000Z | backend/src/gloader/xml/sax/drivers2/drv_sgmlop_html.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 29 | 2019-01-17T15:44:48.000Z | 2021-06-02T00:19:40.000Z | backend/src/gloader/xml/sax/drivers2/drv_sgmlop_html.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | 11 | 2019-01-28T05:00:55.000Z | 2021-11-12T03:08:32.000Z | """
SAX2 driver for parsing HTML with the sgmlop parser.
$Id: drv_sgmlop_html.py,v 1.3 2002/05/10 14:50:06 akuchling Exp $
"""
version = "0.1"
from drv_sgmlop import *
from xml.dom.html import HTML_CHARACTER_ENTITIES, HTML_FORBIDDEN_END, HTML_OPT_END, HTML_DTD
from string import strip, upper
class SaxHtmlParser(Sax... | 32.407895 | 92 | 0.600893 | 332 | 2,463 | 4.319277 | 0.364458 | 0.125523 | 0.076709 | 0.025105 | 0.17643 | 0.132497 | 0.120642 | 0.120642 | 0.120642 | 0.099024 | 0 | 0.024913 | 0.299229 | 2,463 | 75 | 93 | 32.84 | 0.80591 | 0.061307 | 0 | 0.2 | 0 | 0 | 0.050977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c44efadd624e86dd07d53f187b7fd4ae7980a09 | 599 | py | Python | xscale/signal/tests/test_generator.py | xy6g13/xscale | a0c5809b6005a2016ab85849fa33e24c3fc19518 | [
"Apache-2.0"
] | 24 | 2017-02-28T15:01:29.000Z | 2022-02-22T08:26:23.000Z | xscale/signal/tests/test_generator.py | xy6g13/xscale | a0c5809b6005a2016ab85849fa33e24c3fc19518 | [
"Apache-2.0"
] | 19 | 2017-02-24T12:30:26.000Z | 2022-02-25T04:57:32.000Z | xscale/signal/tests/test_generator.py | serazing/xscale | a804866aa6f6a5a0f293a7f6765ea17403159134 | [
"Apache-2.0"
] | 10 | 2017-03-04T02:59:42.000Z | 2021-11-14T12:40:54.000Z | # Python 2/3 compatibility
from __future__ import absolute_import, division, print_function
import xscale.signal.generator as xgen
import numpy as np
import pytest
def test_ar():
xgen.ar(0.3, 100, c=0.1)
def test_rednoise():
xgen.rednoise(0.3, 100, c=0.1)
with pytest.raises(TypeError, message="Expecting TypeErro... | 20.655172 | 64 | 0.739566 | 97 | 599 | 4.412371 | 0.463918 | 0.081776 | 0.023364 | 0.028037 | 0.037383 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0.058935 | 0.12187 | 599 | 29 | 65 | 20.655172 | 0.754753 | 0.040067 | 0 | 0 | 0 | 0 | 0.050523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.222222 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c4b9a0cac6777fa89beba0b74f5bea06d461c27 | 8,581 | py | Python | .kodi/addons/plugin.video.1channel/waldo/indexes/1Channel_index.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | null | null | null | .kodi/addons/plugin.video.1channel/waldo/indexes/1Channel_index.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | null | null | null | .kodi/addons/plugin.video.1channel/waldo/indexes/1Channel_index.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | 2 | 2018-04-17T17:34:39.000Z | 2020-07-26T03:43:33.000Z | import os
import re
import sys
import urllib2
import HTMLParser
import xbmcgui
import xbmcplugin
from t0mm0.common.addon import Addon
from t0mm0.common.addon import Addon as Addon2
addon = Addon('plugin.video.waldo', sys.argv)
_1CH = Addon2('plugin.video.1channel', sys.argv)
#BASE_Address = 'www.primewire.ag'
BASE_A... | 40.861905 | 132 | 0.633026 | 1,129 | 8,581 | 4.73605 | 0.296723 | 0.018328 | 0.019076 | 0.022442 | 0.163082 | 0.115766 | 0.081915 | 0.071816 | 0.055358 | 0.055358 | 0 | 0.013487 | 0.230975 | 8,581 | 210 | 133 | 40.861905 | 0.796787 | 0.070038 | 0 | 0.113821 | 0 | 0.01626 | 0.230565 | 0.02975 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03252 | 0.073171 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c515bcc0378b767f2ca3dc2a2f5830efe8fce57 | 11,500 | py | Python | src/using_tips/using_tips_2.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | src/using_tips/using_tips_2.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | src/using_tips/using_tips_2.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
50个话题
9章
1.课程简介
2.数据结构相关话题
3.迭代器与生成器相关话题
4.字符串处理相关话题
5.文件I/O操作相关话题
6.数据编码与处理相关话题
7.类与对象相关话题
8.多线程与多进程相关话题
9.装饰器相关话题
"""
"""
第1章 课程简介
1-1 课程简介
1-2 在线编码工具WebIDE使用指南
第2章 数据结构与算法进阶训练
2-1 如何在列表, 字典, 集合中根据条件筛选数据
2-2 如何为元组中的每个元素命名, 提高程序可读性
2-3 如何统计序列中元... | 22.460938 | 137 | 0.646174 | 1,591 | 11,500 | 4.59648 | 0.289755 | 0.0361 | 0.058663 | 0.067688 | 0.23971 | 0.183509 | 0.172159 | 0.159579 | 0.150964 | 0.129906 | 0 | 0.052114 | 0.177391 | 11,500 | 511 | 138 | 22.504892 | 0.72093 | 0.013391 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c55165299d16eb8a28fa1e0cd5b93ce500fd6c2 | 3,541 | py | Python | demo/showcase/colorpicker.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | null | null | null | demo/showcase/colorpicker.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | null | null | null | demo/showcase/colorpicker.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2021 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com>
#
# 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 restricti... | 49.180556 | 141 | 0.713923 | 514 | 3,541 | 4.889105 | 0.365759 | 0.05969 | 0.13848 | 0.162356 | 0.385197 | 0.385197 | 0.223239 | 0.223239 | 0.223239 | 0.167529 | 0 | 0.035117 | 0.139509 | 3,541 | 72 | 142 | 49.180556 | 0.789629 | 0.35329 | 0 | 0 | 0 | 0 | 0.068342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c584193d545e03672cc71800d4a751b1d6b8a57 | 14,037 | py | Python | service/views.py | antorof/django-simple | 786e93b5084c17b364bac6bceb7dddcce1c789d2 | [
"MIT"
] | null | null | null | service/views.py | antorof/django-simple | 786e93b5084c17b364bac6bceb7dddcce1c789d2 | [
"MIT"
] | null | null | null | service/views.py | antorof/django-simple | 786e93b5084c17b364bac6bceb7dddcce1c789d2 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from django import forms
from django.shortcuts import render, redirect
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.core.validators import validate_slug, RegexValidator
from django.contrib.auth import authenticate, login, logout
from django.cont... | 37.036939 | 131 | 0.539004 | 1,435 | 14,037 | 5.209059 | 0.239024 | 0.025017 | 0.033043 | 0.025284 | 0.440134 | 0.366823 | 0.282943 | 0.246288 | 0.203077 | 0.186488 | 0 | 0.010327 | 0.32393 | 14,037 | 379 | 132 | 37.036939 | 0.777345 | 0.0488 | 0 | 0.431894 | 0 | 0.009967 | 0.239163 | 0.017474 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.039867 | null | null | 0.019934 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c58b942bcebd4a683ecfeb9a7a984410ec44775 | 436 | py | Python | generate.py | g3y/password | 75333c6a204995148b8e69b49116bb0d0ef74fff | [
"MIT"
] | null | null | null | generate.py | g3y/password | 75333c6a204995148b8e69b49116bb0d0ef74fff | [
"MIT"
] | null | null | null | generate.py | g3y/password | 75333c6a204995148b8e69b49116bb0d0ef74fff | [
"MIT"
] | null | null | null | digits = '0123456789'
chars = 'abcdefghijklmn' + \
'opqrstuvwxyz'
up = chars.upper()
special = '_!$%&?ù'
all = digits+chars+up+special
from random import choice
password = ''.join (
choice(all) for i in range(10)
)
f = open('ascii.txt', 'r')
file_contents = f.read()
print("\x1b[1;32m ... | 18.956522 | 40 | 0.582569 | 57 | 436 | 4.403509 | 0.684211 | 0.095618 | 0.103586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090361 | 0.238532 | 436 | 22 | 41 | 19.818182 | 0.665663 | 0 | 0 | 0 | 0 | 0 | 0.256039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.055556 | 0 | 0.055556 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c649ba69e1815d00b4b141bdc92997beb8e2f34 | 9,987 | py | Python | experiments/SUNRGBD_few_shot.py | rkwitt/AGA | 21c2344225c24da6991002244e3fe730306b5c25 | [
"Apache-2.0"
] | 11 | 2017-08-25T21:44:34.000Z | 2022-03-10T14:24:43.000Z | experiments/SUNRGBD_few_shot.py | rkwitt/AGA | 21c2344225c24da6991002244e3fe730306b5c25 | [
"Apache-2.0"
] | 2 | 2017-11-03T13:40:02.000Z | 2019-06-17T00:30:59.000Z | experiments/SUNRGBD_few_shot.py | rkwitt/AGA | 21c2344225c24da6991002244e3fe730306b5c25 | [
"Apache-2.0"
] | 4 | 2018-07-07T04:15:02.000Z | 2020-02-11T05:02:23.000Z | """Few-shot object recognition experiments with AGA.
Author(s): rkwitt, mdixit, 2017
"""
import sys
sys.path.append("../")
sys.path.append("liblinear-2.11/python")
import liblinear
import liblinearutil
from misc.tools import build_file_list, balanced_sampling
import scipy
from sklearn.neighbors import KNeighborsCla... | 28.698276 | 91 | 0.592971 | 1,333 | 9,987 | 4.171793 | 0.213803 | 0.046574 | 0.034167 | 0.023377 | 0.336091 | 0.260744 | 0.202841 | 0.174789 | 0.16292 | 0.140263 | 0 | 0.014587 | 0.292981 | 9,987 | 347 | 92 | 28.78098 | 0.772978 | 0.060278 | 0 | 0.269841 | 0 | 0 | 0.105059 | 0.002265 | 0 | 0 | 0 | 0 | 0.019841 | 0 | null | null | 0 | 0.071429 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c65559a080c5040d9248730992e33bb3a3fa204 | 360 | py | Python | expressmanage/products/admin.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | expressmanage/products/admin.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | expressmanage/products/admin.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product, ContainerType, RateSlab
class RateSlabInline(admin.TabularInline):
model = RateSlab
extra = 3
class ContainerTypeAdmin(admin.ModelAdmin):
inlines = [RateSlabInline]
# Register your models here.
admin.site.register(Product)
admin.site.regis... | 18.947368 | 54 | 0.780556 | 38 | 360 | 7.394737 | 0.578947 | 0.064057 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003236 | 0.141667 | 360 | 18 | 55 | 20 | 0.906149 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c6579ac9476c154697b6cbdf8ad89a1d3e8dedd | 431 | py | Python | zeus/vcs/asserts.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 221 | 2017-07-03T17:29:21.000Z | 2021-12-07T19:56:59.000Z | zeus/vcs/asserts.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 298 | 2017-07-04T18:08:14.000Z | 2022-03-03T22:24:51.000Z | zeus/vcs/asserts.py | conrad-kronos/zeus | ddb6bc313e51fb22222b30822b82d76f37dbbd35 | [
"Apache-2.0"
] | 24 | 2017-07-15T13:46:45.000Z | 2020-08-16T16:14:45.000Z | def assert_revision(revision, author=None, message=None):
"""Asserts values of the given fields in the provided revision.
:param revision: The revision to validate
:param author: that must be present in the ``revision``
:param message: message substring that must be present in ``revision``
"""
... | 35.916667 | 74 | 0.696056 | 56 | 431 | 5.339286 | 0.410714 | 0.093645 | 0.06689 | 0.113712 | 0.12709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225058 | 431 | 11 | 75 | 39.181818 | 0.89521 | 0.533643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c6602a7f2b304f1bfa457983a8b77fa43597a7b | 287 | py | Python | templates/led-button-input/led-button-input.py | elixirbuild/Raspberry-Pi-3-Templates | a61f0cb8c17d3c060923d9448f048cc40dadb362 | [
"MIT"
] | null | null | null | templates/led-button-input/led-button-input.py | elixirbuild/Raspberry-Pi-3-Templates | a61f0cb8c17d3c060923d9448f048cc40dadb362 | [
"MIT"
] | null | null | null | templates/led-button-input/led-button-input.py | elixirbuild/Raspberry-Pi-3-Templates | a61f0cb8c17d3c060923d9448f048cc40dadb362 | [
"MIT"
] | null | null | null | # modules
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)
sleepTime = .1
GPIO.setup(4, GPIO.OUT)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
GPIO.output(4, GPIO.inout(17))
sleep(sleepTime)
finally:
GPIO.output(4, False)
GPIO.cleanup()
| 15.944444 | 49 | 0.724739 | 49 | 287 | 4.183673 | 0.571429 | 0.087805 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032389 | 0.139373 | 287 | 17 | 50 | 16.882353 | 0.797571 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c674324f9c6334d3a0c0b26e5fb292d79655814 | 931 | py | Python | tests/test_dim.py | codema-dev/seai_deap | 52b67582beac8d8a2b46b5991970b6ad6695f7b3 | [
"MIT"
] | null | null | null | tests/test_dim.py | codema-dev/seai_deap | 52b67582beac8d8a2b46b5991970b6ad6695f7b3 | [
"MIT"
] | null | null | null | tests/test_dim.py | codema-dev/seai_deap | 52b67582beac8d8a2b46b5991970b6ad6695f7b3 | [
"MIT"
] | 1 | 2020-11-20T11:22:36.000Z | 2020-11-20T11:22:36.000Z | import numpy as np
from numpy.testing import assert_array_equal
from seai_deap import dim
def test_calculate_building_volume() -> None:
expected_output = np.array(4)
output = dim.calculate_building_volume(
ground_floor_area=np.array(1),
first_floor_area=np.array(1),
second_floor_are... | 25.162162 | 47 | 0.694952 | 134 | 931 | 4.477612 | 0.223881 | 0.163333 | 0.16 | 0.213333 | 0.72 | 0.58 | 0.58 | 0.58 | 0.58 | 0.3 | 0 | 0.018868 | 0.203008 | 931 | 36 | 48 | 25.861111 | 0.789757 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c6a761384d2d91a69e9412394a16b4c72c90fa5 | 3,719 | py | Python | app/entities/new_schemas.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | 1 | 2021-07-15T21:57:20.000Z | 2021-07-15T21:57:20.000Z | app/entities/new_schemas.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | null | null | null | app/entities/new_schemas.py | deepettas/contact-tree | 547ee1055b6aa91b37a8621160c66f56ea76b81b | [
"MIT"
] | null | null | null | from collections import namedtuple
import graphene
import datetime
import json
from .new_models import Agent, Community, Collection
def _json_object_hook(d):
return namedtuple('X', d.keys())(*d.values())
def json2obj(data):
return json.loads(data, object_hook=_json_object_hook)
class AgentSchema(graphen... | 29.054688 | 84 | 0.688357 | 394 | 3,719 | 6.365482 | 0.185279 | 0.139553 | 0.096491 | 0.062201 | 0.577751 | 0.424242 | 0.424242 | 0.424242 | 0.424242 | 0.412281 | 0 | 0.000335 | 0.196558 | 3,719 | 127 | 85 | 29.283465 | 0.839023 | 0 | 0 | 0.477778 | 0 | 0 | 0.002958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122222 | false | 0 | 0.055556 | 0.022222 | 0.655556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c6b3c52de11b644b8e8a5adeae6b1e544b7535d | 3,537 | py | Python | gallery/tests.py | aluoch-sheila/GALLERY | 3a910dc272ce5c731d5780749daeecec66bf2313 | [
"MIT"
] | null | null | null | gallery/tests.py | aluoch-sheila/GALLERY | 3a910dc272ce5c731d5780749daeecec66bf2313 | [
"MIT"
] | null | null | null | gallery/tests.py | aluoch-sheila/GALLERY | 3a910dc272ce5c731d5780749daeecec66bf2313 | [
"MIT"
] | null | null | null |
from django.test import TestCase
from .models import Posts,Location,Category
# Create your tests here.
class locationTest(TestCase):
def setUp(self):
self.new_location = Location(location="nairobi")
def test_instance(self):
self.assertTrue(isinstance(self.new_location,Location))
def tes... | 31.864865 | 101 | 0.654227 | 437 | 3,537 | 5.15103 | 0.116705 | 0.074634 | 0.058641 | 0.063972 | 0.529098 | 0.390937 | 0.235007 | 0.235007 | 0.162594 | 0.095957 | 0 | 0.004342 | 0.218547 | 3,537 | 110 | 102 | 32.154545 | 0.810058 | 0.025445 | 0 | 0.3625 | 0 | 0 | 0.042127 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 1 | 0.2625 | false | 0 | 0.025 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7359592bb66c7832d00da9b4e99663c0bdf9f3 | 11,774 | py | Python | py/obiwan/decals_sim_randoms.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 32 | 2015-08-25T00:25:23.000Z | 2022-03-04T06:35:54.000Z | py/obiwan/decals_sim_randoms.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 644 | 2015-07-08T16:26:28.000Z | 2022-03-30T19:09:10.000Z | py/obiwan/decals_sim_randoms.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 22 | 2015-08-24T18:27:36.000Z | 2021-12-04T03:10:42.000Z | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import os
import pickle
def add_scatter(ax,x,y,c='b',m='o',lab='',s=80,drawln=False,alpha=1):
ax.scatter(x,y, s=s, lw=2.,facecolors='none',edgecolors=c, marker=m,label=lab,alpha=alpha)
if drawln: ax.plot(x,y, c=c,ls='-'... | 42.352518 | 120 | 0.615848 | 1,769 | 11,774 | 3.983041 | 0.204635 | 0.014902 | 0.012773 | 0.015896 | 0.31493 | 0.273489 | 0.233324 | 0.207777 | 0.195714 | 0.195714 | 0 | 0.036316 | 0.223543 | 11,774 | 277 | 121 | 42.505415 | 0.734413 | 0.10744 | 0 | 0.193717 | 0 | 0 | 0.097295 | 0.017016 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062827 | null | null | 0.08377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c74d59d6f7b40e67065f884b5a9c86fcff0998f | 2,283 | py | Python | purchase/migrations/0004_auto_20200928_0513.py | drtweety/busman | 4847ffecafb4499d1e2225e4ea860bd2bf442110 | [
"MIT"
] | null | null | null | purchase/migrations/0004_auto_20200928_0513.py | drtweety/busman | 4847ffecafb4499d1e2225e4ea860bd2bf442110 | [
"MIT"
] | 8 | 2020-09-24T06:30:13.000Z | 2021-06-13T18:12:21.000Z | purchase/migrations/0004_auto_20200928_0513.py | drtweety/busman | 4847ffecafb4499d1e2225e4ea860bd2bf442110 | [
"MIT"
] | 1 | 2021-06-12T09:59:47.000Z | 2021-06-12T09:59:47.000Z | # Generated by Django 3.1.1 on 2020-09-28 05:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organization', '0004_auto_20200914_0713'),
('products', '0003_product_minimum_price'),
('purchase', '0003_au... | 39.362069 | 164 | 0.579501 | 206 | 2,283 | 6.26699 | 0.407767 | 0.030984 | 0.043377 | 0.068164 | 0.435321 | 0.384198 | 0.288149 | 0.288149 | 0.221534 | 0.221534 | 0 | 0.039731 | 0.283399 | 2,283 | 57 | 165 | 40.052632 | 0.749389 | 0.019711 | 0 | 0.431373 | 1 | 0 | 0.196333 | 0.054114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.098039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7de28d39354c0e41abcb99add6d27c59b144b8 | 3,256 | py | Python | app/training/models/chromosome.py | TUIASI-AC-enaki/flappy-bird-with-ai | e1b70108b0e6a548033dc1845fabcd5459fb2cbe | [
"MIT"
] | null | null | null | app/training/models/chromosome.py | TUIASI-AC-enaki/flappy-bird-with-ai | e1b70108b0e6a548033dc1845fabcd5459fb2cbe | [
"MIT"
] | null | null | null | app/training/models/chromosome.py | TUIASI-AC-enaki/flappy-bird-with-ai | e1b70108b0e6a548033dc1845fabcd5459fb2cbe | [
"MIT"
] | 1 | 2021-08-29T09:32:12.000Z | 2021-08-29T09:32:12.000Z | from utils import generate_random_range, generate_random_int_range, read_dict_from_json
from .neural_bird import NeuralBird
import random
class Chromosome:
def __init__(self, bird: NeuralBird, fitness=0, generations_alive=0, ancestor_generations=0):
self.bird = bird
self.fitness = fitness
... | 39.228916 | 113 | 0.643428 | 345 | 3,256 | 5.814493 | 0.2 | 0.104187 | 0.04985 | 0.023928 | 0.155533 | 0.102692 | 0.033898 | 0.033898 | 0 | 0 | 0 | 0.004212 | 0.270885 | 3,256 | 82 | 114 | 39.707317 | 0.840775 | 0.011978 | 0 | 0.119403 | 1 | 0 | 0.041369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0 | 0.044776 | 0.089552 | 0.402985 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c7f81bf1bdb6134fa5fcc1e8fd8269537afff4a | 24,402 | py | Python | bloodhound_theme/bhtheme/theme.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null | bloodhound_theme/bhtheme/theme.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null | bloodhound_theme/bhtheme/theme.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null |
# 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 ma... | 42.438261 | 110 | 0.60286 | 2,715 | 24,402 | 5.194843 | 0.190792 | 0.023398 | 0.024248 | 0.029353 | 0.198242 | 0.129041 | 0.099263 | 0.072178 | 0.06055 | 0.035167 | 0 | 0.001209 | 0.288091 | 24,402 | 574 | 111 | 42.512195 | 0.810672 | 0.073232 | 0 | 0.087179 | 0 | 0 | 0.239985 | 0.085088 | 0 | 0 | 0 | 0.003484 | 0 | 0 | null | null | 0.002564 | 0.074359 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c829a5e205c26ec37374d7c16898408dd6b3e10 | 617 | py | Python | Lib/site-packages/altendpy/misc.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | Lib/site-packages/altendpy/misc.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/altendpy/misc.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | import itertools
def identifier_path(it):
return '__' + '_'.join(
it.__module__.split('.') + [it.__qualname__]
)
# https://docs.python.org/3/library/itertools.html
def pairwise(iterable):
's -> (s0,s1), (s1,s2), (s2, s3), ...'
a, b = itertools.tee(iterable)
next(b, None)
return zip(a... | 25.708333 | 60 | 0.636953 | 83 | 617 | 4.578313 | 0.590361 | 0.047368 | 0.078947 | 0.094737 | 0.221053 | 0.221053 | 0.221053 | 0.221053 | 0.221053 | 0 | 0 | 0.017928 | 0.186386 | 617 | 23 | 61 | 26.826087 | 0.739044 | 0.367909 | 0 | 0 | 0 | 0 | 0.184322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c88dccf0278d3cda08b47e7b209dee9cebea2dd | 847 | py | Python | venv/lib/python3.7/site-packages/zope/site/tests/test_folder.py | leanhvu86/matrix-server | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.7/site-packages/zope/site/tests/test_folder.py | leanhvu86/matrix-server | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.7/site-packages/zope/site/tests/test_folder.py | leanhvu86/matrix-server | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | [
"Apache-2.0"
] | null | null | null |
import doctest
import unittest
from zope.site.folder import Folder
from zope.site.testing import siteSetUp, siteTearDown, checker
from zope.site.tests.test_site import TestSiteManagerContainer
def setUp(test=None):
siteSetUp()
def tearDown(test=None):
siteTearDown()
class FolderTest(TestSiteManagerCont... | 24.2 | 65 | 0.672963 | 81 | 847 | 6.950617 | 0.444444 | 0.056838 | 0.063943 | 0.092362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24085 | 847 | 34 | 66 | 24.911765 | 0.875583 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.227273 | 0.045455 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
665c80aeff3f68824d60fbf5efe1f7fb14c8d913 | 245 | py | Python | Regs/Block_1/R1600.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | 1 | 2021-04-25T13:53:20.000Z | 2021-04-25T13:53:20.000Z | Regs/Block_1/R1600.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | null | null | null | Regs/Block_1/R1600.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | null | null | null | from ..IReg import IReg
class R1600(IReg):
def __init__(self):
self._header = ['REG',
'COD_PART',
'TOT_CREDITO',
'TOT_DEBITO']
self._hierarchy = "2"
| 18.846154 | 38 | 0.428571 | 22 | 245 | 4.363636 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0.461224 | 245 | 12 | 39 | 20.416667 | 0.689394 | 0 | 0 | 0 | 0 | 0 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6661b76ee106456d1280d4a92aa82e22b084ae1a | 748 | py | Python | script.py | rohank63/SEC | 19db2f8d843712f3aad5e6fe6e94be0b0ea2acca | [
"Apache-2.0"
] | 1 | 2020-05-28T21:11:01.000Z | 2020-05-28T21:11:01.000Z | script.py | rohank63/SEC | 19db2f8d843712f3aad5e6fe6e94be0b0ea2acca | [
"Apache-2.0"
] | null | null | null | script.py | rohank63/SEC | 19db2f8d843712f3aad5e6fe6e94be0b0ea2acca | [
"Apache-2.0"
] | null | null | null | import infer_organism
import subprocess as sp
print(infer_organism.infer(
file_1="./first_mate.fastq",
min_match=2,factor=1,
transcript_fasta="transcripts.fasta.zip"
))
print(infer_organism.infer(
file_1="./SRR13496438.fastq.gz",
min_match=2,factor=1,
transcript_fasta="transcripts.fasta.zip"
))
'''
print(... | 18.7 | 72 | 0.73262 | 106 | 748 | 5 | 0.424528 | 0.04717 | 0.056604 | 0.135849 | 0.418868 | 0.418868 | 0.226415 | 0.226415 | 0.226415 | 0.226415 | 0 | 0.059181 | 0.118984 | 748 | 39 | 73 | 19.179487 | 0.745068 | 0 | 0 | 0.666667 | 0 | 0 | 0.263666 | 0.205788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6664a49daddeba9123acf862abe5792abe8bd30f | 706 | py | Python | setup.py | biocompibens/annotaread | 5aa4a37e731db91746e15b61693f87962afa61f4 | [
"MIT"
] | 12 | 2019-02-11T06:39:19.000Z | 2022-02-17T07:40:14.000Z | setup.py | biocompibens/annotaread | 5aa4a37e731db91746e15b61693f87962afa61f4 | [
"MIT"
] | 10 | 2019-01-11T10:17:44.000Z | 2022-01-28T11:11:26.000Z | setup.py | biocompibens/annotaread | 5aa4a37e731db91746e15b61693f87962afa61f4 | [
"MIT"
] | 3 | 2016-06-09T14:10:24.000Z | 2019-10-10T23:25:06.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name = "alfa",
py_modules = ["alfa"],
version = "1.1.1",
description = "A simple software to get a quick overview of features composing NGS dataset(s).",
author = "Mathieu Bahin",
author_email = "mathieu.bahin@biologie.ens.fr",... | 37.157895 | 142 | 0.624646 | 96 | 706 | 4.541667 | 0.666667 | 0.110092 | 0.077982 | 0.114679 | 0.137615 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0.052448 | 0.189802 | 706 | 18 | 143 | 39.222222 | 0.70979 | 0.028329 | 0 | 0 | 0 | 0 | 0.471533 | 0.119708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66696dcc60485569857caf8d24f37e051ed45d28 | 2,113 | py | Python | python/rational-numbers/rational_numbers.py | sci-c0/exercism-learning | dd9fb1d2a407085992c3371c1d56456b7ebf9180 | [
"BSD-3-Clause"
] | null | null | null | python/rational-numbers/rational_numbers.py | sci-c0/exercism-learning | dd9fb1d2a407085992c3371c1d56456b7ebf9180 | [
"BSD-3-Clause"
] | null | null | null | python/rational-numbers/rational_numbers.py | sci-c0/exercism-learning | dd9fb1d2a407085992c3371c1d56456b7ebf9180 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
class Rational:
def __init__(self, numer, denom):
assert denom != 0, "ValueError: The denominator of the Rational Number cannot be 0"
gcd = self._gcd(abs(numer), abs(denom))
numer = numer // gcd
denom = denom // gcd
numer_sign = numer // ab... | 27.441558 | 91 | 0.538097 | 261 | 2,113 | 4.057471 | 0.180077 | 0.101983 | 0.084986 | 0.089707 | 0.355996 | 0.276676 | 0.276676 | 0.276676 | 0.240793 | 0.15864 | 0 | 0.005095 | 0.34974 | 2,113 | 76 | 92 | 27.802632 | 0.765648 | 0 | 0 | 0.131148 | 0 | 0 | 0.031708 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.180328 | false | 0 | 0.016393 | 0.131148 | 0.442623 | 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 | 1 | 0 | 0 | 0 | 1 |
66702c84ed5242ec35c50132bc6962391cbcb4a0 | 594 | py | Python | core/yasg_auto_schema.py | HiroshiFuu/django-rest-drf-yasg-boilerplate | 93221b2dbca0635eb42a18096e805b00f36ff9c1 | [
"Apache-2.0"
] | null | null | null | core/yasg_auto_schema.py | HiroshiFuu/django-rest-drf-yasg-boilerplate | 93221b2dbca0635eb42a18096e805b00f36ff9c1 | [
"Apache-2.0"
] | null | null | null | core/yasg_auto_schema.py | HiroshiFuu/django-rest-drf-yasg-boilerplate | 93221b2dbca0635eb42a18096e805b00f36ff9c1 | [
"Apache-2.0"
] | null | null | null | from drf_yasg.inspectors import SwaggerAutoSchema
from drf_yasg.utils import swagger_settings
from core.yasg_inspector import ExampleSerializerInspector
class NameAsOperationIDAutoSchema(SwaggerAutoSchema):
def get_operation_id(self, operation_keys):
operation_id = super(NameAsOperationIDAutoSchema, self... | 31.263158 | 96 | 0.806397 | 58 | 594 | 7.948276 | 0.448276 | 0.119306 | 0.047722 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143098 | 594 | 18 | 97 | 33 | 0.905697 | 0.058923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6675810c1116e497355327b1898d4079401833d7 | 635 | py | Python | globa_micrograph2np.py | bioinsilico/EM_FILTER | 7289c6b32a3cd2c463a1b11ba7af7ac15931d124 | [
"Apache-2.0"
] | null | null | null | globa_micrograph2np.py | bioinsilico/EM_FILTER | 7289c6b32a3cd2c463a1b11ba7af7ac15931d124 | [
"Apache-2.0"
] | null | null | null | globa_micrograph2np.py | bioinsilico/EM_FILTER | 7289c6b32a3cd2c463a1b11ba7af7ac15931d124 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import sys
def micrograph2np(width,shift):
r = int(width/shift-1)
#I = np.load("../DATA_SETS/004773_ProtRelionRefine3D/kino.micrograph.numpy.npy")
I = np.load("../DATA_SETS/004773_ProtRelionRefine3D/full_micrograph.stack_0001.numpy.npy")
I = (I-I.mean())/I.std()
N = int(I.shape[0]/sh... | 23.518519 | 92 | 0.626772 | 105 | 635 | 3.704762 | 0.419048 | 0.061697 | 0.107969 | 0.246787 | 0.200514 | 0.200514 | 0.200514 | 0 | 0 | 0 | 0 | 0.077228 | 0.204724 | 635 | 26 | 93 | 24.423077 | 0.693069 | 0.124409 | 0 | 0 | 0 | 0 | 0.250903 | 0.250903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66779b78acfa540552e4a9d5de889fc9456ee666 | 10,202 | py | Python | python/get_dinucleotides.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | 2 | 2016-01-14T02:04:37.000Z | 2018-03-16T09:38:10.000Z | python/get_dinucleotides.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | null | null | null | python/get_dinucleotides.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | 1 | 2018-07-20T20:31:39.000Z | 2018-07-20T20:31:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Take a list of genome positions and return the dinucleotides around it.
For each position, will generate a list of + strand dinucleotides and - strand
dinucleotides.
Created: 2017-07-27 12:02
Last modified: 2017-10-18 00:17
"""
from __future__ import print_fun... | 35.17931 | 96 | 0.50745 | 1,143 | 10,202 | 4.44357 | 0.223097 | 0.034652 | 0.019689 | 0.016539 | 0.383934 | 0.352432 | 0.339831 | 0.315613 | 0.303997 | 0.291396 | 0 | 0.013614 | 0.330425 | 10,202 | 289 | 97 | 35.301038 | 0.729908 | 0.315526 | 0 | 0.284884 | 1 | 0 | 0.058979 | 0.008237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.05814 | 0 | 0.174419 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6678343e89112fade7cd09060df449fe7f8bd1ed | 588 | py | Python | test/props.py | roks/snap-python | e316dfae8f0b7707756e0a6bf4237d448259d2d2 | [
"BSD-3-Clause"
] | null | null | null | test/props.py | roks/snap-python | e316dfae8f0b7707756e0a6bf4237d448259d2d2 | [
"BSD-3-Clause"
] | null | null | null | test/props.py | roks/snap-python | e316dfae8f0b7707756e0a6bf4237d448259d2d2 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T20:25:19.000Z | 2019-11-11T20:25:19.000Z | import snap
G9 = snap.GenRndGnm(snap.PNGraph, 10000, 1000)
CntV = snap.TIntPrV()
snap.GetWccSzCnt(G9, CntV)
for p in CntV:
print "size %d: count %d" % (p.GetVal1(), p.GetVal2())
snap.GetOutDegCnt(G9, CntV)
for p in CntV:
print "degree %d: count %d" % (p.GetVal1(), p.GetVal2())
G10 = snap.GenPrefAttach(100, ... | 18.375 | 60 | 0.646259 | 93 | 588 | 4.086022 | 0.430108 | 0.031579 | 0.047368 | 0.052632 | 0.231579 | 0.231579 | 0.231579 | 0 | 0 | 0 | 0 | 0.072917 | 0.183673 | 588 | 31 | 61 | 18.967742 | 0.71875 | 0 | 0 | 0.090909 | 0 | 0 | 0.0954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
667a1c0b613963eab193fb77f230ded956fa0a20 | 2,926 | py | Python | harp2/make_kmeans/make_input_controller.py | canesche/kmeans | 5fb060f463e945200210739b8827a00f6ae853c8 | [
"MIT"
] | null | null | null | harp2/make_kmeans/make_input_controller.py | canesche/kmeans | 5fb060f463e945200210739b8827a00f6ae853c8 | [
"MIT"
] | null | null | null | harp2/make_kmeans/make_input_controller.py | canesche/kmeans | 5fb060f463e945200210739b8827a00f6ae853c8 | [
"MIT"
] | null | null | null | from veriloggen import *
# Component that receives the input buffer BEGIN
def make_input_controller(external_data_width):
m = Module('input_controller')
# sinais básicos para o funcionamento do circuito
clk = m.Input('clk')
rst = m.Input('rst')
start = m.Input('start')
done_rd_data... | 42.405797 | 100 | 0.591934 | 340 | 2,926 | 4.676471 | 0.179412 | 0.320755 | 0.10566 | 0.130818 | 0.507547 | 0.401258 | 0.325157 | 0.271069 | 0.271069 | 0.223899 | 0 | 0.018924 | 0.313739 | 2,926 | 68 | 101 | 43.029412 | 0.772908 | 0.039986 | 0 | 0.357143 | 0 | 0 | 0.089547 | 0.062866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.053571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
667b198fc6ec216ed910a63aa711bb5b84e2db78 | 907 | py | Python | cannula/helpers.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | 9 | 2015-11-05T08:52:49.000Z | 2019-11-18T10:20:58.000Z | cannula/helpers.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | null | null | null | cannula/helpers.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | 1 | 2015-12-22T15:15:08.000Z | 2015-12-22T15:15:08.000Z | import os
import pkgutil
import sys
def get_root_path(import_name):
"""Returns the path to a package or cwd if that cannot be found.
Inspired by [flask](https://github.com/pallets/flask/blob/master/flask/helpers.py)
"""
# Module already imported and has a file attribute. Use that first.
mod = sys... | 33.592593 | 86 | 0.708931 | 136 | 907 | 4.573529 | 0.536765 | 0.080386 | 0.038585 | 0.061093 | 0.102894 | 0.102894 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0.199559 | 907 | 26 | 87 | 34.884615 | 0.856749 | 0.446527 | 0 | 0 | 0 | 0 | 0.033126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.666667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6681dfd474e46eff7c26a723e8f0f5a75b82ea26 | 100,283 | py | Python | zufall/lib/funktionen/funktionen.py | HBOMAT/AglaUndZufall | 3976fecf024a5e4e771d37a6b8056ca4f7eb0da1 | [
"Apache-2.0"
] | null | null | null | zufall/lib/funktionen/funktionen.py | HBOMAT/AglaUndZufall | 3976fecf024a5e4e771d37a6b8056ca4f7eb0da1 | [
"Apache-2.0"
] | null | null | null | zufall/lib/funktionen/funktionen.py | HBOMAT/AglaUndZufall | 3976fecf024a5e4e771d37a6b8056ca4f7eb0da1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding utf-8 -*-
#
# zufall - Funktionen
#
#
# This file is part of zufall
#
#
# Copyright (c) 2019 ... | 36.493086 | 122 | 0.55129 | 11,581 | 100,283 | 4.75503 | 0.138934 | 0.018414 | 0.02506 | 0.027965 | 0.387957 | 0.360936 | 0.339562 | 0.304097 | 0.272409 | 0.25474 | 0 | 0.008757 | 0.329288 | 100,283 | 2,747 | 123 | 36.506371 | 0.809934 | 0.041662 | 0 | 0.518079 | 0 | 0.028814 | 0.318688 | 0.011611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002825 | 0.015254 | null | null | 0.267797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
668f3876c8fdd49d31c1bb250f330ea8bb798338 | 1,329 | py | Python | app/forms.py | yahuishuo/alpha-flask | f5921e665737cddb583b6ab752d1154f9121638a | [
"Apache-2.0"
] | null | null | null | app/forms.py | yahuishuo/alpha-flask | f5921e665737cddb583b6ab752d1154f9121638a | [
"Apache-2.0"
] | null | null | null | app/forms.py | yahuishuo/alpha-flask | f5921e665737cddb583b6ab752d1154f9121638a | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, ValidationError
from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo, URL, Optional
from models.profile import User
class LoginForm(FlaskForm):
username = StringField()
password =... | 44.3 | 117 | 0.724605 | 153 | 1,329 | 6.202614 | 0.48366 | 0.092729 | 0.028451 | 0.061117 | 0.136986 | 0.136986 | 0.063224 | 0.063224 | 0 | 0 | 0 | 0.012489 | 0.156509 | 1,329 | 29 | 118 | 45.827586 | 0.834077 | 0 | 0 | 0 | 0 | 0 | 0.160271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6690000285467cf29c337fb120d04ba8b2509782 | 463 | py | Python | setup.py | DavideAlwaysMe/link-shortcut | 23e59ccef8a21906cdbcde140df153f808d511ec | [
"MIT"
] | 1 | 2021-03-04T11:15:52.000Z | 2021-03-04T11:15:52.000Z | setup.py | DavideAlwaysMe/link-shortcut | 23e59ccef8a21906cdbcde140df153f808d511ec | [
"MIT"
] | null | null | null | setup.py | DavideAlwaysMe/link-shortcut | 23e59ccef8a21906cdbcde140df153f808d511ec | [
"MIT"
] | null | null | null | import os
from setuptools import setup
setup(
name = "link",
version = "0.1",
author = "Davide Rizzuto",
author_email = "yodadr01@gmail.com",
license = "MIT",
url = "https://github.com/DavideAlwaysMe/link-shortcut",
packages=['link'],
scripts = ['link/link.py'],
data_files = [
... | 25.722222 | 90 | 0.602592 | 51 | 463 | 5.411765 | 0.784314 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01084 | 0.203024 | 463 | 17 | 91 | 27.235294 | 0.737127 | 0 | 0 | 0 | 0 | 0 | 0.393089 | 0.049676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66a440b8cde07927e07af471ab468bcbe3206969 | 377 | py | Python | car.py | Pscodium/python-gas-economy-project | 27f056fad6841c77c4c0f0ac8859112e6c593b71 | [
"MIT"
] | null | null | null | car.py | Pscodium/python-gas-economy-project | 27f056fad6841c77c4c0f0ac8859112e6c593b71 | [
"MIT"
] | null | null | null | car.py | Pscodium/python-gas-economy-project | 27f056fad6841c77c4c0f0ac8859112e6c593b71 | [
"MIT"
] | null | null | null | kilometer = float(input('Digite quantos KM você irá percorrer: '))
price_gas = float(input('Digite o preço da gasolina na sua região: R$'))
cars_consumption = [5, 6, 7, 8, 9, 10, 11, 12, 13]
for i in range(9):
total = (kilometer/cars_consumption[i])*price_gas
print(f'Se seu carro tem a autonomia de {cars_con... | 41.888889 | 110 | 0.697613 | 66 | 377 | 3.909091 | 0.742424 | 0.174419 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.164456 | 377 | 9 | 110 | 41.888889 | 0.771429 | 0 | 0 | 0 | 0 | 0.166667 | 0.470899 | 0.060847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66a451b2d65deda4cbd97dd5880c83f60487ffef | 1,230 | py | Python | setup.py | JustBennnn/minecraftstats | d8170cb57464339d32d96d2f768cff3fabf93370 | [
"MIT"
] | 2 | 2021-09-14T20:35:39.000Z | 2022-03-21T18:35:27.000Z | setup.py | JustBennnn/minecraftstats | d8170cb57464339d32d96d2f768cff3fabf93370 | [
"MIT"
] | null | null | null | setup.py | JustBennnn/minecraftstats | d8170cb57464339d32d96d2f768cff3fabf93370 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="minecraftstats",
version="1.1.6",
author="JustBen",
author_email="justben009@gmail.com",
description="A python library allowing the user to get stats from Hypixel in Minecraft.",
keywords="minecraft api-wrapper mojang mojang-api".split(),
python_req... | 38.4375 | 93 | 0.642276 | 126 | 1,230 | 6.206349 | 0.722222 | 0.038363 | 0.035806 | 0.061381 | 0.097187 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011294 | 0.20813 | 1,230 | 32 | 94 | 38.4375 | 0.791581 | 0 | 0 | 0 | 0 | 0 | 0.565394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66b1fe37453f3cf15e9d2035a80308d5cf8f4498 | 2,352 | py | Python | tests/test_check_files_checksums_logging.py | adisbladis/geostore | 79439c06b33414e1e26b3aa4b93a72fd7cbbae83 | [
"MIT"
] | 25 | 2021-05-19T08:05:07.000Z | 2022-03-14T02:48:58.000Z | tests/test_check_files_checksums_logging.py | adisbladis/geostore | 79439c06b33414e1e26b3aa4b93a72fd7cbbae83 | [
"MIT"
] | 311 | 2021-05-17T23:04:56.000Z | 2022-03-31T10:41:44.000Z | tests/test_check_files_checksums_logging.py | adisbladis/geostore | 79439c06b33414e1e26b3aa4b93a72fd7cbbae83 | [
"MIT"
] | 1 | 2022-01-03T05:38:32.000Z | 2022-01-03T05:38:32.000Z | import sys
from os import environ
from unittest.mock import patch
from pynamodb.exceptions import DoesNotExist
from pytest import mark, raises
from pytest_subtests import SubTests
from geostore.api_keys import MESSAGE_KEY
from geostore.check_files_checksums.task import main
from geostore.check_files_checksums.utils i... | 37.333333 | 97 | 0.721514 | 294 | 2,352 | 5.44898 | 0.336735 | 0.067416 | 0.033708 | 0.050562 | 0.160424 | 0.036205 | 0 | 0 | 0 | 0 | 0 | 0.002614 | 0.18665 | 2,352 | 62 | 98 | 37.935484 | 0.834814 | 0.006378 | 0 | 0 | 0 | 0 | 0.218509 | 0.183376 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.019231 | false | 0 | 0.346154 | 0 | 0.365385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
66bdce42d2b0da59afe0cb16dce28d26a082a26c | 579 | py | Python | clb_nb_utils/oauth.py | HumanBrainProject/clb-nb-utils | 213715c3f96b1ce11101617892b86fbf22ae602e | [
"Apache-2.0"
] | 1 | 2021-11-04T18:32:41.000Z | 2021-11-04T18:32:41.000Z | clb_nb_utils/oauth.py | HumanBrainProject/clb-nb-utils | 213715c3f96b1ce11101617892b86fbf22ae602e | [
"Apache-2.0"
] | null | null | null | clb_nb_utils/oauth.py | HumanBrainProject/clb-nb-utils | 213715c3f96b1ce11101617892b86fbf22ae602e | [
"Apache-2.0"
] | null | null | null | '''This module gets fresh access tokens from the Jupyterhub Service to refresh access tokens.
See https://github.com/HumanBrainProject/jupyterhub-access-token-service
'''
import os
import requests
JUPYTERHUB_API_TOKEN = os.getenv("JUPYTERHUB_API_TOKEN")
# @TODO fix this
JUPYTERHUB_SERVICE_URL = 'http://jupyterhub:8... | 28.95 | 93 | 0.761658 | 77 | 579 | 5.571429 | 0.480519 | 0.102564 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.119171 | 579 | 19 | 94 | 30.473684 | 0.833333 | 0.310881 | 0 | 0 | 0 | 0 | 0.413265 | 0.204082 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66c4235595d8974b0c06e0a9fd276b8f59f19204 | 3,087 | py | Python | rc_velo_vol.py | VincentCheungM/rc_velo_volt | 8aeabc32eae4f42fa6bb6c7252daa008b1b58ebc | [
"MIT"
] | null | null | null | rc_velo_vol.py | VincentCheungM/rc_velo_volt | 8aeabc32eae4f42fa6bb6c7252daa008b1b58ebc | [
"MIT"
] | 2 | 2019-04-13T02:27:50.000Z | 2019-04-21T01:49:50.000Z | rc_velo_vol.py | VincentCheungM/rc_velo_volt | 8aeabc32eae4f42fa6bb6c7252daa008b1b58ebc | [
"MIT"
] | null | null | null | #! *-* coding: utf-8 *-*
#!/usr/bin/env python
"""
A simple scraper for recording the power supply of velodyne LiDAR,
by getting the `diag.json` files.
@author vincent cheung
@file rc_velo_vol.py
"""
import argparse
import math
import time
import requests
import json
import logging
import os
from volt_temp import Vol... | 32.494737 | 109 | 0.635892 | 457 | 3,087 | 4.133479 | 0.367615 | 0.046585 | 0.038115 | 0.048703 | 0.204341 | 0.181048 | 0.149285 | 0.149285 | 0.107994 | 0.07729 | 0 | 0.039175 | 0.214448 | 3,087 | 94 | 110 | 32.840426 | 0.739794 | 0.144153 | 0 | 0.1 | 0 | 0.016667 | 0.19403 | 0.011698 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.016667 | false | 0 | 0.133333 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66cfeed34d6ac341fdd7acad5244ee5ac346603e | 695 | py | Python | django_cradmin/templatetags/cradmin_icon_tags.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/templatetags/cradmin_icon_tags.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/templatetags/cradmin_icon_tags.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | from django import template
import logging
from django.conf import settings
from django.template.defaultfilters import stringfilter
from django_cradmin import css_icon_map
register = template.Library()
log = logging.getLogger(__name__)
@register.simple_tag
@stringfilter
def cradmin_icon(iconkey):
"""
Retu... | 26.730769 | 89 | 0.761151 | 94 | 695 | 5.361702 | 0.478723 | 0.079365 | 0.079365 | 0.079365 | 0.09127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159712 | 695 | 25 | 90 | 27.8 | 0.863014 | 0.142446 | 0 | 0 | 0 | 0 | 0.140625 | 0.102431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
66eafa7adef9b625c2e6b6dc2db3e5316ae781f5 | 496 | py | Python | stravenkovac/common_data.py | Katzeminze/Stravenkovac | c600f269327a885a80111a493ef3a9d4a75b41db | [
"BSD-Source-Code"
] | null | null | null | stravenkovac/common_data.py | Katzeminze/Stravenkovac | c600f269327a885a80111a493ef3a9d4a75b41db | [
"BSD-Source-Code"
] | null | null | null | stravenkovac/common_data.py | Katzeminze/Stravenkovac | c600f269327a885a80111a493ef3a9d4a75b41db | [
"BSD-Source-Code"
] | null | null | null | pdf_path_month_hour = "C:/Users/Nyrobtseva/Documents/Python_Parser_stravenky/Month hour registration_07_2020_David_Tampier.pdf"
csv_path_month_hour = "month_hours.csv" # should be changed to smth better
pdf_path_travel_costs = "C:/Users/Nyrobtseva/Documents/Python_Parser_stravenky/cz_travelexpenses_DavidTampier_July.... | 38.153846 | 127 | 0.8125 | 70 | 496 | 5.357143 | 0.528571 | 0.072 | 0.069333 | 0.133333 | 0.405333 | 0.405333 | 0.405333 | 0 | 0 | 0 | 0 | 0.015487 | 0.08871 | 496 | 13 | 128 | 38.153846 | 0.814159 | 0.131048 | 0 | 0 | 0 | 0 | 0.574684 | 0.481013 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd07e6539d24fd747ad3a887d3dd4632d2206e64 | 14,988 | py | Python | Segger/promod_dialog.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 6 | 2019-03-27T22:53:12.000Z | 2021-11-19T09:02:05.000Z | Segger/promod_dialog.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 1 | 2017-03-07T16:52:30.000Z | 2019-11-25T21:37:21.000Z | Segger/promod_dialog.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 5 | 2019-05-30T19:10:01.000Z | 2022-02-09T07:04:59.000Z |
# Copyright (c) 2020 Greg Pintilie - pintilie@mit.edu
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | 28.712644 | 131 | 0.525354 | 1,879 | 14,988 | 4.175625 | 0.195849 | 0.02753 | 0.023834 | 0.030334 | 0.546521 | 0.507265 | 0.49299 | 0.46597 | 0.463166 | 0.450166 | 0 | 0.014487 | 0.350614 | 14,988 | 521 | 132 | 28.767754 | 0.791637 | 0.120363 | 0 | 0.562092 | 0 | 0 | 0.104967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003268 | 0.075163 | null | null | 0.042484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd0b60ded9727481502e16a37162d0f2a79126fc | 3,562 | py | Python | 6.0002/problem_sets/ps1/ps1b.py | Haplo-Dragon/MIT | 19295613460265cf01561d6229bea290c59a5247 | [
"MIT"
] | null | null | null | 6.0002/problem_sets/ps1/ps1b.py | Haplo-Dragon/MIT | 19295613460265cf01561d6229bea290c59a5247 | [
"MIT"
] | null | null | null | 6.0002/problem_sets/ps1/ps1b.py | Haplo-Dragon/MIT | 19295613460265cf01561d6229bea290c59a5247 | [
"MIT"
] | null | null | null | ###########################
# 6.0002 Problem Set 1b: Space Change
# Name: Ethan Fulbright
# Collaborators: Jesi Ross, Yale CS lecture - Computer Science 201a, Prof. Dana Angluin
# Time:
# Author: charz, cdenise
# ================================
# Part B: Golden Eggs
# ================================
# Problem 1
de... | 33.603774 | 90 | 0.605559 | 540 | 3,562 | 3.848148 | 0.301852 | 0.120308 | 0.07411 | 0.064966 | 0.405679 | 0.311838 | 0.26564 | 0.232916 | 0.208855 | 0.14437 | 0 | 0.061263 | 0.262212 | 3,562 | 105 | 91 | 33.92381 | 0.729452 | 0.364964 | 0 | 0.315789 | 0 | 0.052632 | 0.235836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0 | 0 | 0.070175 | 0.438596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
dd0d4ad21cc27ff60a3307318c9ebe377f4aa0e7 | 5,788 | py | Python | algolib/graph/undirected.py | niemmi/algolib | 81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8 | [
"BSD-3-Clause"
] | null | null | null | algolib/graph/undirected.py | niemmi/algolib | 81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8 | [
"BSD-3-Clause"
] | null | null | null | algolib/graph/undirected.py | niemmi/algolib | 81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8 | [
"BSD-3-Clause"
] | null | null | null | """Undirected graph that doesn't have multi-edges but may contain loops.
Both vertices and edges may have associated properties. Vertices as stored
as an adjacency matrix using dicts and as a separate dict that maybe iterated
over.
Time complexity of the operations:
- check if edge (x, y) exists: O(1)
- check degree o... | 30.951872 | 80 | 0.607118 | 723 | 5,788 | 4.773167 | 0.26971 | 0.009273 | 0.007244 | 0.018545 | 0.111852 | 0.071284 | 0.071284 | 0.043176 | 0 | 0 | 0 | 0.001501 | 0.309433 | 5,788 | 186 | 81 | 31.11828 | 0.861896 | 0.501037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245902 | false | 0 | 0.016393 | 0.065574 | 0.42623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd0f35ccbfab95b95870a42ee33207ca353a51f1 | 5,972 | py | Python | pylibscrypt/test_properties.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 19 | 2015-02-03T22:25:09.000Z | 2021-09-01T05:25:44.000Z | pylibscrypt/test_properties.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 16 | 2015-06-03T15:52:43.000Z | 2019-03-24T16:47:52.000Z | pylibscrypt/test_properties.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 3 | 2015-05-26T01:39:20.000Z | 2017-12-15T23:44:19.000Z | # Copyright (c) 2017-2021, Jan Varho
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL... | 34.72093 | 82 | 0.65288 | 753 | 5,972 | 5 | 0.25498 | 0.035857 | 0.043825 | 0.058433 | 0.354316 | 0.274369 | 0.167331 | 0.108898 | 0.071713 | 0.038778 | 0 | 0.013375 | 0.248828 | 5,972 | 171 | 83 | 34.923977 | 0.825903 | 0.152713 | 0 | 0.166667 | 0 | 0 | 0.052642 | 0.004768 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.111111 | false | 0.063492 | 0.126984 | 0.047619 | 0.349206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dd1205989e889a4d503a41473ce287d5b964d129 | 506 | py | Python | finbot/apps/appwsrv/blueprints/base.py | jean-edouard-boulanger/finbot | ddc3c0e4673b1025d2352719755ff77ef445577c | [
"MIT"
] | 1 | 2020-12-25T19:33:27.000Z | 2020-12-25T19:33:27.000Z | finbot/apps/appwsrv/blueprints/base.py | jean-edouard-boulanger/finbot | ddc3c0e4673b1025d2352719755ff77ef445577c | [
"MIT"
] | 1 | 2021-01-18T23:19:58.000Z | 2021-01-19T17:35:13.000Z | finbot/apps/appwsrv/blueprints/base.py | jean-edouard-boulanger/finbot | ddc3c0e4673b1025d2352719755ff77ef445577c | [
"MIT"
] | 1 | 2020-01-19T22:37:36.000Z | 2020-01-19T22:37:36.000Z | from finbot.core.web_service import Route
from finbot.core import environment
from flask import Blueprint
API_V1 = Route("/api/v1")
base_api = Blueprint("api", __name__)
@base_api.route(API_V1.healthy(), methods=["GET"])
def healthy():
return {"healthy": True}
@base_api.route(API_V1.system_report(), methods=... | 21.083333 | 56 | 0.656126 | 65 | 506 | 4.830769 | 0.4 | 0.063694 | 0.095541 | 0.095541 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017199 | 0.195652 | 506 | 23 | 57 | 22 | 0.7543 | 0 | 0 | 0 | 0 | 0 | 0.12253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.125 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
dd1d487d5cf09acdac0b56b84e3a55fe3d02685d | 405 | py | Python | setup.py | stkobsar/RandomForest | 3097b871164e01fc72dca2387536d6c082c994b3 | [
"MIT"
] | null | null | null | setup.py | stkobsar/RandomForest | 3097b871164e01fc72dca2387536d6c082c994b3 | [
"MIT"
] | null | null | null | setup.py | stkobsar/RandomForest | 3097b871164e01fc72dca2387536d6c082c994b3 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(name='RandomForest',
version="0.1git status.0",
url = "https://github.com/stkobsar/RandomForest.git",
description='Random Forest algorithm use case',
author='Stephi Kobsar',
author_email='stkobsar7@gmail.com',
packages=setuptools.find_packages(),
... | 33.75 | 78 | 0.674074 | 43 | 405 | 6.27907 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.175309 | 405 | 12 | 79 | 33.75 | 0.796407 | 0 | 0 | 0 | 0 | 0 | 0.416256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd218b77d7f8d906900e9396e496e7930fffa9f8 | 497 | py | Python | spell_bee/migrations/0005_auto_20170522_1049.py | haideralipunjabi/django_quiz | 8963dd814ce67a175d3f264f5a51f15355e8f227 | [
"Apache-2.0"
] | null | null | null | spell_bee/migrations/0005_auto_20170522_1049.py | haideralipunjabi/django_quiz | 8963dd814ce67a175d3f264f5a51f15355e8f227 | [
"Apache-2.0"
] | null | null | null | spell_bee/migrations/0005_auto_20170522_1049.py | haideralipunjabi/django_quiz | 8963dd814ce67a175d3f264f5a51f15355e8f227 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-22 05:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spell_bee', '0004_auto_20170522_1038'),
]
operations = [
migrations.AlterFiel... | 23.666667 | 85 | 0.635815 | 56 | 497 | 5.428571 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093834 | 0.249497 | 497 | 20 | 86 | 24.85 | 0.72118 | 0.132797 | 0 | 0 | 1 | 0 | 0.175234 | 0.053738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd2c1f2a01690cad019e69d0dc03886d86e069c7 | 607 | py | Python | setup.py | erfaneshrati/meta-transfer-learning | ba15db64db7b38f196717d3de3b066178dce8696 | [
"MIT"
] | 16 | 2018-09-25T16:32:34.000Z | 2020-10-12T12:59:17.000Z | setup.py | erfaneshrati/meta-transfer-learning | ba15db64db7b38f196717d3de3b066178dce8696 | [
"MIT"
] | null | null | null | setup.py | erfaneshrati/meta-transfer-learning | ba15db64db7b38f196717d3de3b066178dce8696 | [
"MIT"
] | 1 | 2019-04-25T01:46:10.000Z | 2019-04-25T01:46:10.000Z | """
Module configuration.
"""
from setuptools import setup
setup(
name='supervised-mtl',
version='0.0.1',
description='Meta-transfer learning over Reptile and MAML',
url='https://github.com/erfaneshrati/supervised-mtl',
author='Amir Erfan Eshratifar',
author_email='erfaneshrati@gmail.com',
... | 23.346154 | 63 | 0.607908 | 77 | 607 | 4.74026 | 0.636364 | 0.038356 | 0.024658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.204283 | 607 | 25 | 64 | 24.28 | 0.712215 | 0.034596 | 0 | 0 | 0 | 0 | 0.470588 | 0.074394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd2eb147d3c0d11d0b0c85c3bc435dfa84694c0b | 1,209 | py | Python | tests/factories.py | helloyxy/shopcarts | 6be8a285d39bf6221e87ec0b0a4f928531d9bb90 | [
"Apache-2.0"
] | 3 | 2021-09-29T13:23:27.000Z | 2021-12-15T07:14:07.000Z | tests/factories.py | helloyxy/shopcarts | 6be8a285d39bf6221e87ec0b0a4f928531d9bb90 | [
"Apache-2.0"
] | 107 | 2021-09-29T15:13:48.000Z | 2021-12-15T07:08:33.000Z | tests/factories.py | helloyxy/shopcarts | 6be8a285d39bf6221e87ec0b0a4f928531d9bb90 | [
"Apache-2.0"
] | 3 | 2021-10-18T04:18:24.000Z | 2021-11-19T16:16:11.000Z | # Copyright 2016, 2019 John J. Rofrano. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 35.558824 | 74 | 0.7378 | 177 | 1,209 | 5.016949 | 0.677966 | 0.067568 | 0.029279 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.162945 | 1,209 | 33 | 75 | 36.636364 | 0.809289 | 0.55914 | 0 | 0 | 0 | 0 | 0.009862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd31b955fe7c53cdf103d64bbe569f412fa0e120 | 5,303 | py | Python | tidecv/data.py | wuhandashuaibi/tide | d48b919554c4a8df5cc3a9f5abe18dad30c0db23 | [
"MIT"
] | null | null | null | tidecv/data.py | wuhandashuaibi/tide | d48b919554c4a8df5cc3a9f5abe18dad30c0db23 | [
"MIT"
] | null | null | null | tidecv/data.py | wuhandashuaibi/tide | d48b919554c4a8df5cc3a9f5abe18dad30c0db23 | [
"MIT"
] | null | null | null | import os
from collections import defaultdict
import numpy as np
import cv2
from . import functions as f
class Data():
"""
A class to hold ground truth or predictions data in an easy to work with format.
Note that any time they appear, bounding boxes are [x, y, width, height] and masks
are either a list of polyg... | 39.574627 | 207 | 0.662832 | 818 | 5,303 | 4.191932 | 0.408313 | 0.036745 | 0.019248 | 0.024497 | 0.140857 | 0.128609 | 0.114611 | 0.088364 | 0.071158 | 0.060076 | 0 | 0.046947 | 0.184612 | 5,303 | 133 | 208 | 39.87218 | 0.746068 | 0.029417 | 0 | 0.074074 | 0 | 0 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061728 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd363973ab415042f38d53ecd6eb3ea142076116 | 1,924 | py | Python | src/syncro/__main__.py | cav71/syncro | 2591dd1bd14b7b4bf2a8b2f0099c1d5140679d10 | [
"MIT"
] | null | null | null | src/syncro/__main__.py | cav71/syncro | 2591dd1bd14b7b4bf2a8b2f0099c1d5140679d10 | [
"MIT"
] | null | null | null | src/syncro/__main__.py | cav71/syncro | 2591dd1bd14b7b4bf2a8b2f0099c1d5140679d10 | [
"MIT"
] | null | null | null | """starts a sync remote server
"""
import os
import getpass
import pathlib
import logging
import click
from . import cli
import paramiko
import paramiko.sftp_client
import syncro.support as support
import syncro.cli as cli
logger = logging.getLogger(__name__)
def add_arguments(parser):
parser.add_argument("h... | 22.904762 | 74 | 0.680873 | 243 | 1,924 | 5.238683 | 0.395062 | 0.037706 | 0.056559 | 0.084839 | 0.105263 | 0.105263 | 0.051846 | 0.051846 | 0 | 0 | 0 | 0.006146 | 0.154366 | 1,924 | 83 | 75 | 23.180723 | 0.776275 | 0.190748 | 0 | 0.044444 | 0 | 0 | 0.079253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.2 | 0.222222 | 0 | 0.311111 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dd3806973c2aebf71b51f8ec05e5137d8ac0688c | 451 | py | Python | future-release/api/migrations/0006_auto_20210606_1218.py | shauray8/we_must_know_website | 3a024cfdb6d051f85a3d86ba6b559bfaed1147ce | [
"MIT"
] | null | null | null | future-release/api/migrations/0006_auto_20210606_1218.py | shauray8/we_must_know_website | 3a024cfdb6d051f85a3d86ba6b559bfaed1147ce | [
"MIT"
] | null | null | null | future-release/api/migrations/0006_auto_20210606_1218.py | shauray8/we_must_know_website | 3a024cfdb6d051f85a3d86ba6b559bfaed1147ce | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-06-06 06:48
import api.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_auto_20210528_1632'),
]
operations = [
migrations.AlterField(
model_name='room',
name=... | 22.55 | 105 | 0.631929 | 53 | 451 | 5.245283 | 0.716981 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10119 | 0.254989 | 451 | 19 | 106 | 23.736842 | 0.72619 | 0.099778 | 0 | 0 | 1 | 0 | 0.084158 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd3df301e53b1d64e214bc0d01100dcc2165cecc | 951 | py | Python | MultipleComparision.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 4 | 2020-08-18T05:29:38.000Z | 2021-03-13T19:01:10.000Z | MultipleComparision.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | null | null | null | MultipleComparision.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 1 | 2020-08-29T12:57:17.000Z | 2020-08-29T12:57:17.000Z | # Multiple Comparisons
# the way vs. the better way
# simplify chained comparison
# Manas Dash
# Raksha Bhandhan day of 2020
time_of_the_day = 6
day_of_the_week = 'mon'
# this way
if time_of_the_day < 12 and time_of_the_day > 6:
print('Good morning')
# a better way
if 6 < time_of_the_day < 12:
print('Good morning... | 25.026316 | 112 | 0.70347 | 184 | 951 | 3.375 | 0.288043 | 0.128824 | 0.115942 | 0.154589 | 0.58132 | 0.305958 | 0.251208 | 0.109501 | 0.109501 | 0.109501 | 0 | 0.024485 | 0.184017 | 951 | 38 | 113 | 25.026316 | 0.775773 | 0.32387 | 0 | 0.428571 | 0 | 0 | 0.209857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
dd423106865aca419842316c9da357289b6afcb5 | 5,056 | py | Python | ibpy_native/interfaces/delegates/order.py | Devtography/ibpy_native | e3e2a406a8db9bb338953be6dc195b8099379acb | [
"Apache-2.0"
] | 6 | 2020-07-09T20:55:41.000Z | 2022-01-22T15:43:29.000Z | ibpy_native/interfaces/delegates/order.py | Devtography/ibpy_native | e3e2a406a8db9bb338953be6dc195b8099379acb | [
"Apache-2.0"
] | 1 | 2021-02-28T13:37:43.000Z | 2021-02-28T13:37:43.000Z | ibpy_native/interfaces/delegates/order.py | Devtography/ibpy_native | e3e2a406a8db9bb338953be6dc195b8099379acb | [
"Apache-2.0"
] | 5 | 2020-05-24T19:15:06.000Z | 2022-01-22T15:43:35.000Z | """Internal delegate module for orders related features."""
import abc
from typing import Dict, Optional
from ibapi import contract as ib_contract
from ibapi import order as ib_order
from ibapi import order_state as ib_order_state
from ibpy_native import error
from ibpy_native import models
from ibpy_native.utils imp... | 34.630137 | 80 | 0.642801 | 597 | 5,056 | 5.333333 | 0.259631 | 0.037374 | 0.037688 | 0.069724 | 0.200377 | 0.15044 | 0.111495 | 0.096734 | 0.096734 | 0.096734 | 0 | 0.000275 | 0.282041 | 5,056 | 145 | 81 | 34.868966 | 0.87686 | 0.520372 | 0 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.16 | 0 | 0.62 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd4874a921d57f8d652632d58c5b6cfdd4fd5128 | 205 | py | Python | devml/__init__.py | jgonzal3/devml | e49a9bcf510fb25b8d59d7d09a9078c6e68c5d44 | [
"MIT"
] | 22 | 2017-10-15T15:17:53.000Z | 2022-01-14T22:06:08.000Z | devml/__init__.py | Jkoenes211/devml | 77902de0af041e1e272ed1356068fc101498b144 | [
"MIT"
] | 27 | 2017-10-15T04:55:35.000Z | 2021-04-08T02:08:17.000Z | devml/__init__.py | Jkoenes211/devml | 77902de0af041e1e272ed1356068fc101498b144 | [
"MIT"
] | 19 | 2017-10-21T20:19:00.000Z | 2021-01-24T22:09:23.000Z | """
API Example:
from devml import stats, mkdata
path = "/Users/noah/src/wulio/checkout/"
org_df = mkdata.create_org_df(path)
author_counts = stats.author_commit_count(org_df)
"""
__version__ = "0.5.1"
| 17.083333 | 49 | 0.736585 | 32 | 205 | 4.375 | 0.75 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0.117073 | 205 | 11 | 50 | 18.636364 | 0.756906 | 0.843902 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd48bae45325888246c3b35520c43a81d9e8ad63 | 4,615 | py | Python | fwd_alg_both_graph.py | collaborative-robotics/ABT | 44649bfc4e7c44ecde03ff72e4a569ca2a35903a | [
"MIT"
] | 5 | 2020-12-02T20:55:21.000Z | 2022-01-25T14:58:16.000Z | fwd_alg_both_graph.py | collaborative-robotics/ABT | 44649bfc4e7c44ecde03ff72e4a569ca2a35903a | [
"MIT"
] | null | null | null | fwd_alg_both_graph.py | collaborative-robotics/ABT | 44649bfc4e7c44ecde03ff72e4a569ca2a35903a | [
"MIT"
] | 3 | 2020-12-02T22:56:34.000Z | 2020-12-02T23:30:45.000Z | #!/usr/bin/env python
import numpy as np # operations on numerical arrays
import csv # file I/O
import math as m
import sys # for command line args
import operator # for sorting list of class instances
import numpy as np
from scipy import stats
import datetime as dt
from dat... | 25.081522 | 79 | 0.562514 | 615 | 4,615 | 4.180488 | 0.36748 | 0.017503 | 0.046674 | 0.049786 | 0.16725 | 0.150914 | 0.150914 | 0.080124 | 0.080124 | 0.080124 | 0 | 0.050331 | 0.246587 | 4,615 | 183 | 80 | 25.218579 | 0.6891 | 0.20195 | 0 | 0.037383 | 0 | 0 | 0.129486 | 0.02182 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130841 | null | null | 0.056075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd48c68da6d2f759e2ca19538a30a95ef949fe24 | 527 | py | Python | pdfmerge/migrations/0003_auto_20190616_1823.py | rupin/pdfmerger | fee19523e88362d215f1a29cdab0d140f4c9385c | [
"MIT"
] | null | null | null | pdfmerge/migrations/0003_auto_20190616_1823.py | rupin/pdfmerger | fee19523e88362d215f1a29cdab0d140f4c9385c | [
"MIT"
] | null | null | null | pdfmerge/migrations/0003_auto_20190616_1823.py | rupin/pdfmerger | fee19523e88362d215f1a29cdab0d140f4c9385c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2019-06-16 12:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0002_auto_20190616_1800'),
]
operations = [
migrations.RemoveField(
model_name='userdata',
name='field_t... | 22.913043 | 77 | 0.588235 | 53 | 527 | 5.716981 | 0.716981 | 0.059406 | 0.112211 | 0.138614 | 0.19802 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0.086253 | 0.296015 | 527 | 22 | 78 | 23.954545 | 0.730458 | 0.085389 | 0 | 0.375 | 1 | 0 | 0.177083 | 0.047917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd4ef7eb5e116fec9a494caf739d4fc17f3acea8 | 1,509 | py | Python | ImageConversion.py | nisargmshah/classification-project | b1725c4e072f11ca78e36dfa343e24fd70fe1991 | [
"Apache-2.0"
] | 1 | 2017-11-19T20:04:33.000Z | 2017-11-19T20:04:33.000Z | ImageConversion.py | nisargmshah/bme590classification | b1725c4e072f11ca78e36dfa343e24fd70fe1991 | [
"Apache-2.0"
] | null | null | null | ImageConversion.py | nisargmshah/bme590classification | b1725c4e072f11ca78e36dfa343e24fd70fe1991 | [
"Apache-2.0"
] | null | null | null | import base64
class Image:
"""
This class takes in a base64 string representation of an image and
gives the user the ability to return it in base64 and binary form.
Note: Input to this class must be string; otherwise, will raise a TypeError
"""
# make default image a generic image to know bad... | 33.533333 | 79 | 0.656726 | 199 | 1,509 | 4.788945 | 0.432161 | 0.047219 | 0.054565 | 0.058762 | 0.207765 | 0.151102 | 0.07765 | 0.07765 | 0 | 0 | 0 | 0.02518 | 0.263088 | 1,509 | 44 | 80 | 34.295455 | 0.831835 | 0.368456 | 0 | 0 | 0 | 0 | 0.099778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0.095238 | 0.47619 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd4efce91994fd23292587adc979ea243bd5e030 | 672 | py | Python | setup.py | aws-samples/ml-lineage-helper | 3562fa35a5480e7f0a06c6de55a26407774a9edb | [
"Apache-2.0"
] | 7 | 2021-09-28T13:31:31.000Z | 2022-03-26T17:17:07.000Z | setup.py | aws-samples/ml-lineage-helper | 3562fa35a5480e7f0a06c6de55a26407774a9edb | [
"Apache-2.0"
] | null | null | null | setup.py | aws-samples/ml-lineage-helper | 3562fa35a5480e7f0a06c6de55a26407774a9edb | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name="ml-lineage-helper",
version="0.1",
description="A wrapper around SageMaker ML Lineage Tracking extending ML Lineage to end-to-end ML lifecycles, including additional capabilities around Feature Store groups, queries, and other relevant artifacts.",
url="https:/... | 30.545455 | 217 | 0.64881 | 81 | 672 | 5.333333 | 0.716049 | 0.104167 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026616 | 0.217262 | 672 | 21 | 218 | 32 | 0.794677 | 0 | 0 | 0.1 | 0 | 0.05 | 0.575893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd532d5dc4cfb56a9fd1b9b0eb6cf240180eafc9 | 796 | py | Python | srdk/cy/lang_tools/get_stressed_phones_for_htk.py | techiaith/seilwaith-adnabod-lleferydd | 72e9a36eecae6e1fedb0015c2360ff3c7306a471 | [
"Apache-2.0"
] | 1 | 2018-10-18T15:53:25.000Z | 2018-10-18T15:53:25.000Z | srdk/cy/lang_tools/get_stressed_phones_for_htk.py | techiaith/seilwaith-adnabod-lleferydd | 72e9a36eecae6e1fedb0015c2360ff3c7306a471 | [
"Apache-2.0"
] | 1 | 2018-03-23T15:56:18.000Z | 2018-03-23T15:56:18.000Z | srdk/cy/lang_tools/get_stressed_phones_for_htk.py | techiaith/seilwaith-adnabod-lleferydd | 72e9a36eecae6e1fedb0015c2360ff3c7306a471 | [
"Apache-2.0"
] | 3 | 2017-08-28T05:09:30.000Z | 2018-10-04T13:55:10.000Z | import sys, re, traceback
from llef.llef import get_stressed_phones
def get_stressed_phones_for_htk(word):
try:
stressed_phones = get_stressed_phones(word)
except (ValueError, TypeError):
return '','',''
lexiconword=word
if lexiconword.startswith("'"): lexiconword=lexiconword[1:]
if '/' in lexiconword... | 29.481481 | 79 | 0.613065 | 89 | 796 | 5.359551 | 0.438202 | 0.176101 | 0.159329 | 0.08805 | 0.092243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.227387 | 796 | 26 | 80 | 30.615385 | 0.770732 | 0.077889 | 0 | 0 | 0 | 0 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd54720408a48ead8269ae52bf0439a68064bf5b | 4,075 | py | Python | codes/RedSpider.py | MasterScott/hack4career | 2e1b815a083e3f50ddfc59b0e61d9dc5e7c6f856 | [
"Apache-2.0"
] | 96 | 2015-06-03T04:32:36.000Z | 2022-03-16T21:46:14.000Z | codes/RedSpider.py | MasterScott/hack4career | 2e1b815a083e3f50ddfc59b0e61d9dc5e7c6f856 | [
"Apache-2.0"
] | null | null | null | codes/RedSpider.py | MasterScott/hack4career | 2e1b815a083e3f50ddfc59b0e61d9dc5e7c6f856 | [
"Apache-2.0"
] | 30 | 2016-01-22T14:45:51.000Z | 2021-09-14T06:29:31.000Z | # -*- coding: cp1254 -*-
# Expired Domain Check v1.0
# Author: Mert SARICA
# E-mail: mert [ . ] sarica [ @ ] gmail [ . ] com
# URL: https://www.mertsarica.com
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.http import Request
from urlparse import ... | 28.298611 | 151 | 0.607607 | 517 | 4,075 | 4.73501 | 0.367505 | 0.039216 | 0.02451 | 0.025735 | 0.087418 | 0.070261 | 0.070261 | 0.070261 | 0.034314 | 0.034314 | 0 | 0.023493 | 0.206135 | 4,075 | 144 | 152 | 28.298611 | 0.73323 | 0.097178 | 0 | 0.241379 | 0 | 0.008621 | 0.203219 | 0.02946 | 0.008621 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025862 | 0.086207 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd548a87e76f43c9d2964c7f9bace9b5688513e2 | 656 | py | Python | root/scripts/setup/01_0_backup.py | DragonCrafted87/docker-alpine-spigot | 7806d88dd24e0da7bf979249224305234df238ea | [
"MIT"
] | null | null | null | root/scripts/setup/01_0_backup.py | DragonCrafted87/docker-alpine-spigot | 7806d88dd24e0da7bf979249224305234df238ea | [
"MIT"
] | null | null | null | root/scripts/setup/01_0_backup.py | DragonCrafted87/docker-alpine-spigot | 7806d88dd24e0da7bf979249224305234df238ea | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# System Imports
from datetime import datetime
from os import getenv
from pathlib import PurePath
from tarfile import open as tar_open
# Local Imports
from python_logger import create_logger #pylint: disable=import-error
def main():
logger = create_logger(PurePath(__file__).stem)
if not geten... | 26.24 | 89 | 0.696646 | 98 | 656 | 4.44898 | 0.622449 | 0.050459 | 0.068807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003552 | 0.141768 | 656 | 24 | 90 | 27.333333 | 0.77087 | 0.112805 | 0 | 0 | 0 | 0 | 0.249135 | 0.086505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dd5cf81323ccfb6fae834ddd8e196cefbedd628d | 1,024 | py | Python | Easy/MinStack.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | 1 | 2021-06-02T15:03:41.000Z | 2021-06-02T15:03:41.000Z | Easy/MinStack.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | null | null | null | Easy/MinStack.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | null | null | null | ## Designing MinStack
## 1. Using Linked List
## 2. Using Arrays/Lists
class MinStack:
head = None
def __init__(self):
"""
initialize your data structure here.
"""
def push(self, x: int) -> None:
if self.head==None:
self.head = self.Node(x, x, None)
... | 22.755556 | 74 | 0.551758 | 136 | 1,024 | 4 | 0.338235 | 0.132353 | 0.066176 | 0.055147 | 0.139706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005874 | 0.334961 | 1,024 | 44 | 75 | 23.272727 | 0.792952 | 0.237305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd62876b9e7f767cfac4660c0ded8eb96fd46495 | 2,122 | py | Python | server/tests/test_models.py | NBanski/XSS-Catcher | c986a941dd3dec5d2617b46106d3e5dd665bffd2 | [
"MIT"
] | 98 | 2019-05-28T12:17:55.000Z | 2022-02-15T07:06:41.000Z | server/tests/test_models.py | NBanski/XSS-Catcher | c986a941dd3dec5d2617b46106d3e5dd665bffd2 | [
"MIT"
] | 18 | 2019-11-08T20:14:47.000Z | 2022-02-27T15:04:32.000Z | server/tests/test_models.py | NBanski/XSS-Catcher | c986a941dd3dec5d2617b46106d3e5dd665bffd2 | [
"MIT"
] | 13 | 2020-08-27T21:40:57.000Z | 2022-02-02T16:35:48.000Z | import json
from app import db
from app.models import Blocklist, Client, Settings, User, init_app
from xss import app
from .fixtures import client, client_empty
from .functions import *
def test_client_to_dict_clients(client):
access_header, _ = login_get_headers(client, "admin", "xss")
create_client(client... | 31.671642 | 75 | 0.667766 | 281 | 2,122 | 4.790036 | 0.234875 | 0.124814 | 0.187221 | 0.106984 | 0.460624 | 0.401189 | 0.401189 | 0.401189 | 0.350669 | 0.274889 | 0 | 0.012724 | 0.185203 | 2,122 | 66 | 76 | 32.151515 | 0.765761 | 0 | 0 | 0.259259 | 0 | 0 | 0.085297 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.092593 | false | 0 | 0.111111 | 0 | 0.203704 | 0.037037 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd6b3ba77e2a6e6d534f78002bc3b166eb910c67 | 829 | py | Python | driver/directory.py | koltenfluckiger/pyseleniummanagement | 46403adb98d0495b61f8273da326ba117178043f | [
"MIT",
"Unlicense"
] | null | null | null | driver/directory.py | koltenfluckiger/pyseleniummanagement | 46403adb98d0495b61f8273da326ba117178043f | [
"MIT",
"Unlicense"
] | null | null | null | driver/directory.py | koltenfluckiger/pyseleniummanagement | 46403adb98d0495b61f8273da326ba117178043f | [
"MIT",
"Unlicense"
] | null | null | null | try:
from enum import Enum
from pathlib import Path as path
import os
except ImportError as err:
print("Unable to import: {}".format(err))
exit()
class Directory(Enum):
DEFAULT_WINDOWS_FIREFOX = "{}\\Roaming\\Mozilla\\Firefox\\Profiles".format(
os.getenv('APPDATA'))
DEFAULT_WINDOW... | 31.884615 | 83 | 0.657419 | 99 | 829 | 5.343434 | 0.414141 | 0.079395 | 0.079395 | 0.119093 | 0.434783 | 0.294896 | 0.162571 | 0.162571 | 0 | 0 | 0 | 0 | 0.176116 | 829 | 25 | 84 | 33.16 | 0.774524 | 0 | 0 | 0.15 | 0 | 0 | 0.313631 | 0.200241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0.05 | 0.7 | 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 | 1 | 0 | 0 | 1 |
dd6f8e0c6b9c17782e168b597bcd72824497e4f7 | 3,104 | py | Python | core/utils/serializer.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 10 | 2016-11-30T12:15:00.000Z | 2018-10-04T01:13:45.000Z | core/utils/serializer.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | null | null | null | core/utils/serializer.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 3 | 2017-11-01T09:17:18.000Z | 2018-09-25T02:07:40.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from utils.period import todate
from utils.shortcut import (rebuild_html,
render)
class Serializer:
# 一定要传form={}进来
def __init__(self, **kwargs):
self.data = self.serialize(kwargs.get('form'))
self.exclude ... | 31.353535 | 120 | 0.541881 | 364 | 3,104 | 4.450549 | 0.239011 | 0.120988 | 0.033951 | 0.052469 | 0.254321 | 0.216667 | 0.101852 | 0.101852 | 0.101852 | 0.101852 | 0 | 0.001348 | 0.282861 | 3,104 | 98 | 121 | 31.673469 | 0.726415 | 0.068943 | 0 | 0.319444 | 0 | 0 | 0.107564 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.152778 | false | 0 | 0.041667 | 0.055556 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd702004e381b70df80e10128ffd0f112ddcd462 | 3,665 | py | Python | electripy/physics/charge_distribution.py | dylannalex/electripy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | 21 | 2021-10-17T01:29:21.000Z | 2022-03-11T22:39:37.000Z | electripy/physics/charge_distribution.py | dylannalex/ElectriPy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | null | null | null | electripy/physics/charge_distribution.py | dylannalex/ElectriPy | 9f16da35c71716025bedefc4b2d7d38bc77f68a0 | [
"MIT"
] | 3 | 2021-10-30T20:08:50.000Z | 2022-01-15T10:24:37.000Z | from numpy import ndarray, array
from electripy.physics.charges import PointCharge
class _ChargesSet:
"""
A _ChargesSet instance is a group of charges. The electric
field at a given point can be calculated as the sum of each
electric field at that point for every charge in the charge
set.
"""
... | 34.575472 | 81 | 0.631924 | 461 | 3,665 | 4.904555 | 0.219089 | 0.063246 | 0.049536 | 0.044228 | 0.3295 | 0.211411 | 0.188412 | 0.130031 | 0.130031 | 0.053958 | 0 | 0.002713 | 0.296044 | 3,665 | 105 | 82 | 34.904762 | 0.873643 | 0.382265 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.044444 | 0.066667 | 0.511111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd7a40e573032b37343fff9728aef7aaa9daed44 | 327 | py | Python | wordle/config.py | marcotinacci/wordle-solver | cdcf16020ad969369ca29d9f2e2dfb749e46890a | [
"Apache-2.0"
] | 1 | 2022-01-23T14:36:26.000Z | 2022-01-23T14:36:26.000Z | wordle/config.py | marcotinacci/wordle-solver | cdcf16020ad969369ca29d9f2e2dfb749e46890a | [
"Apache-2.0"
] | null | null | null | wordle/config.py | marcotinacci/wordle-solver | cdcf16020ad969369ca29d9f2e2dfb749e46890a | [
"Apache-2.0"
] | null | null | null | import os
import logging
from typing import Final
from pathlib import Path
SYMBOL_MATCH: Final = "X"
SYMBOL_MISPLACED: Final = "."
SYMBOL_MISS: Final = "_"
MAX_ATTEMPTS: Final = 6
DATA_ROOT = Path(__file__).parent.parent / "data"
DEBUG = os.environ.get("DEBUG", False)
LOG_LEVEL = logging.DEBUG if DEBUG else logging.W... | 23.357143 | 55 | 0.755352 | 48 | 327 | 4.916667 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.140673 | 327 | 13 | 56 | 25.153846 | 0.836299 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dd8c083cdbbfe12ec346878733af8b9f620bff9f | 381 | py | Python | geoana/kernels/setup.py | simpeg/geoana | 417e23a0a689da19112e5fd361f823a2abd8785a | [
"MIT"
] | 11 | 2017-11-14T12:29:42.000Z | 2022-01-17T18:36:28.000Z | geoana/kernels/setup.py | simpeg/geoana | 417e23a0a689da19112e5fd361f823a2abd8785a | [
"MIT"
] | 28 | 2016-09-02T02:44:32.000Z | 2022-03-31T22:41:33.000Z | geoana/kernels/setup.py | simpeg/geoana | 417e23a0a689da19112e5fd361f823a2abd8785a | [
"MIT"
] | 4 | 2017-03-07T22:07:15.000Z | 2021-05-14T20:08:33.000Z | import os
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration("kernels", parent_package, top_path)
# Conditionally add subpackage if intending to build compiled components
if os.environ.get('BUILD_GEOANA_EXT', "0") != "0":
... | 31.75 | 76 | 0.737533 | 47 | 381 | 5.787234 | 0.680851 | 0.095588 | 0.117647 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.165354 | 381 | 11 | 77 | 34.636364 | 0.849057 | 0.183727 | 0 | 0 | 0 | 0 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd8cf527dbcc63c33b3f41b5f2270a195f2e8c02 | 2,499 | py | Python | society/migrations/0008_auto_20190204_1104.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | 4 | 2019-02-23T13:34:48.000Z | 2019-04-09T12:44:19.000Z | society/migrations/0008_auto_20190204_1104.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | 134 | 2019-01-29T03:49:54.000Z | 2021-04-08T18:44:57.000Z | society/migrations/0008_auto_20190204_1104.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-02-04 11:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0003_student_password_changed'),
('society', '0007_society_members'),
]
operations = [
m... | 39.046875 | 119 | 0.573029 | 229 | 2,499 | 6.126638 | 0.358079 | 0.02851 | 0.039914 | 0.062723 | 0.444048 | 0.406985 | 0.37206 | 0.37206 | 0.37206 | 0.37206 | 0 | 0.019652 | 0.287315 | 2,499 | 63 | 120 | 39.666667 | 0.768108 | 0.018007 | 0 | 0.508772 | 1 | 0 | 0.130506 | 0.011827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017544 | 0.035088 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06c469c3153c442ee4376207f2687e2b2ee2c599 | 1,088 | py | Python | mps_history/models/input_history.py | slaclab/mps_history | 225a00a3e079df2d288d99a1ea719703d7141bb4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | mps_history/models/input_history.py | slaclab/mps_history | 225a00a3e079df2d288d99a1ea719703d7141bb4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | mps_history/models/input_history.py | slaclab/mps_history | 225a00a3e079df2d288d99a1ea719703d7141bb4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from sqlalchemy import Column, Integer, String, DateTime
from mps_database.models import Base
import datetime
class InputHistory(Base):
"""
InputHistory class (input_history table)
Input data collected from the central node
All derived data is from the mps_configuration database.
Properties:
timestam... | 34 | 88 | 0.750919 | 155 | 1,088 | 5.187097 | 0.516129 | 0.080846 | 0.099502 | 0.124378 | 0.221393 | 0.146766 | 0.067164 | 0.067164 | 0.067164 | 0 | 0 | 0.004479 | 0.179228 | 1,088 | 31 | 89 | 35.096774 | 0.895857 | 0.530331 | 0 | 0 | 0 | 0 | 0.027254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
06c6baaee7c7df92cdac14e6adc6f2876eb4d3cd | 515 | py | Python | intro/matplotlib/examples/plot_plot_ex.py | jorisvandenbossche/scipy-lecture-notes | 689105f90db641eb1e1f82692f4d8b8492e8245d | [
"CC-BY-3.0"
] | 3 | 2016-06-14T02:37:55.000Z | 2019-08-08T16:52:09.000Z | intro/matplotlib/examples/plot_plot_ex.py | jorisvandenbossche/scipy-lecture-notes | 689105f90db641eb1e1f82692f4d8b8492e8245d | [
"CC-BY-3.0"
] | null | null | null | intro/matplotlib/examples/plot_plot_ex.py | jorisvandenbossche/scipy-lecture-notes | 689105f90db641eb1e1f82692f4d8b8492e8245d | [
"CC-BY-3.0"
] | 2 | 2018-11-13T08:48:59.000Z | 2020-06-03T18:01:57.000Z | import pylab as pl
import numpy as np
n = 256
X = np.linspace(-np.pi, np.pi, n, endpoint=True)
Y = np.sin(2 * X)
pl.axes([0.025, 0.025, 0.95, 0.95])
pl.plot(X, Y + 1, color='blue', alpha=1.00)
pl.fill_between(X, 1, Y + 1, color='blue', alpha=.25)
pl.plot(X, Y - 1, color='blue', alpha=1.00)
pl.fill_between(X, -1, Y ... | 22.391304 | 68 | 0.580583 | 112 | 515 | 2.642857 | 0.321429 | 0.047297 | 0.050676 | 0.202703 | 0.493243 | 0.493243 | 0.402027 | 0.402027 | 0.402027 | 0.402027 | 0 | 0.106481 | 0.161165 | 515 | 22 | 69 | 23.409091 | 0.578704 | 0 | 0 | 0 | 0 | 0 | 0.036893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06cafc99125fbe6c42a9d786cc628d54d412fd90 | 1,466 | py | Python | app/users/api/tests.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | app/users/api/tests.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | app/users/api/tests.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | import json
from django.urls import reverse
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from rest_framework import status
from rooms.models import Room
from utils.test_utils.date_seeder import DataSeeder
class RoomTestCase(APITestCase):
def setUp(self) -> None:
... | 35.756098 | 83 | 0.587995 | 160 | 1,466 | 5.20625 | 0.425 | 0.048019 | 0.086435 | 0.052821 | 0.561825 | 0.561825 | 0.561825 | 0.561825 | 0.561825 | 0.561825 | 0 | 0.048591 | 0.29809 | 1,466 | 41 | 84 | 35.756098 | 0.760933 | 0 | 0 | 0.526316 | 0 | 0 | 0.215406 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.078947 | false | 0.078947 | 0.184211 | 0 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06d26ca34dcf4ace06e0a071ab2c545d2a07f2a9 | 952 | py | Python | airdrop/alembic/versions/1468fd5ca2be_addreceiptonregistrationtable.py | anandrgitnirman/airdrop-services | 041118e986d595b2764a838af834bd08c283d374 | [
"MIT"
] | null | null | null | airdrop/alembic/versions/1468fd5ca2be_addreceiptonregistrationtable.py | anandrgitnirman/airdrop-services | 041118e986d595b2764a838af834bd08c283d374 | [
"MIT"
] | 5 | 2021-09-27T05:08:41.000Z | 2022-03-02T03:58:04.000Z | airdrop/alembic/versions/1468fd5ca2be_addreceiptonregistrationtable.py | anandrgitnirman/airdrop-services | 041118e986d595b2764a838af834bd08c283d374 | [
"MIT"
] | 8 | 2021-09-24T10:52:50.000Z | 2022-01-14T12:07:41.000Z | """AddreceiptOnRegistrationTable
Revision ID: 1468fd5ca2be
Revises: 3dd7097453f8
Create Date: 2022-02-24 22:33:14.628454
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1468fd5ca2be'
down_revision = '3dd7097453f8'
branch_labels = None
depends_on = None
def u... | 30.709677 | 127 | 0.741597 | 115 | 952 | 5.93913 | 0.504348 | 0.149341 | 0.140556 | 0.193265 | 0.254758 | 0.254758 | 0.254758 | 0.254758 | 0 | 0 | 0 | 0.064242 | 0.133403 | 952 | 30 | 128 | 31.733333 | 0.763636 | 0.326681 | 0 | 0 | 0 | 0 | 0.372517 | 0.129139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06d2d9a68908e8cc5c73e24f9e5a1989fb784313 | 2,148 | py | Python | Hardware/ComputedPattern/computedDiffractionPattern.py | MarijnVenderbosch/MScProject | b82925d249e1c380995e1d5f60c0e636b52948d5 | [
"MIT"
] | null | null | null | Hardware/ComputedPattern/computedDiffractionPattern.py | MarijnVenderbosch/MScProject | b82925d249e1c380995e1d5f60c0e636b52948d5 | [
"MIT"
] | 1 | 2021-07-28T15:27:05.000Z | 2021-07-28T15:27:05.000Z | Hardware/ComputedPattern/computedDiffractionPattern.py | MarijnVenderbosch/MScProject | b82925d249e1c380995e1d5f60c0e636b52948d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 9 15:49:08 2022
Script plots computed pattern from GSW algorithm as well as phasemask that provides it
@author: marijn
"""
#%% Imports
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_too... | 21.267327 | 86 | 0.558194 | 268 | 2,148 | 4.414179 | 0.496269 | 0.050719 | 0.023669 | 0.02874 | 0.077768 | 0.064243 | 0 | 0 | 0 | 0 | 0 | 0.05768 | 0.281657 | 2,148 | 100 | 87 | 21.48 | 0.709008 | 0 | 0 | 0.38806 | 0 | 0 | 0.086492 | 0.032034 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074627 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06dd9184d218fc8501e6b1114c6a323ca19a20eb | 5,803 | py | Python | pyvo/dal/tests/test_params.py | tomdonaldson/pyvo | 229820bd04b243a092b13e25362a7e1b258519f5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-12T22:38:36.000Z | 2019-11-12T22:38:36.000Z | pyvo/dal/tests/test_params.py | tomdonaldson/pyvo | 229820bd04b243a092b13e25362a7e1b258519f5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | pyvo/dal/tests/test_params.py | tomdonaldson/pyvo | 229820bd04b243a092b13e25362a7e1b258519f5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Tests for pyvo.dal.datalink
"""
from functools import partial
from urllib.parse import parse_qsl
from pyvo.dal.adhoc import DatalinkResults
from pyvo.dal.params import find_param_by_keyword, get_converter
from pyvo.dal.exceptions... | 30.703704 | 79 | 0.70274 | 778 | 5,803 | 5.020566 | 0.1491 | 0.047875 | 0.03661 | 0.059908 | 0.759089 | 0.701485 | 0.677163 | 0.601382 | 0.580389 | 0.552739 | 0 | 0.02783 | 0.170257 | 5,803 | 188 | 80 | 30.867021 | 0.783385 | 0.018956 | 0 | 0.533333 | 0 | 0 | 0.157108 | 0.067734 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.125926 | false | 0 | 0.066667 | 0.02963 | 0.237037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06e1151beb39e232e87cdadb19a9e3cc960f57c7 | 386 | py | Python | DSA Learning Series/Divide and Conquer + Binary Search/Lowest Sum (LOWSUM)/lowest_sum.py | Ekalaivanpj/codechef | 0adabcabe1dde60be5ee822878ce01057a351fbb | [
"Apache-2.0"
] | 4 | 2021-05-20T08:21:36.000Z | 2022-03-26T03:56:20.000Z | DSA Learning Series/Divide and Conquer + Binary Search/Lowest Sum (LOWSUM)/lowest_sum.py | Ekalaivanpj/codechef | 0adabcabe1dde60be5ee822878ce01057a351fbb | [
"Apache-2.0"
] | 5 | 2021-03-30T05:07:16.000Z | 2021-05-02T04:09:39.000Z | DSA Learning Series/Divide and Conquer + Binary Search/Lowest Sum (LOWSUM)/lowest_sum.py | Ekalaivanpj/codechef | 0adabcabe1dde60be5ee822878ce01057a351fbb | [
"Apache-2.0"
] | 3 | 2021-03-27T12:20:09.000Z | 2021-10-05T16:53:16.000Z | for _ in range(int(input())):
k, q = map(int, input().split())
mot = sorted(list(map(int, input().split())))
sat = sorted(list(map(int, input().split())))
qs = []
for i in range(q):
qs.append(int(input()))
gen = [mot[i]+sat[j] for i in range(k) for j in range(min(k, 10001//(i+1)))]
... | 25.733333 | 80 | 0.520725 | 66 | 386 | 3.030303 | 0.378788 | 0.2 | 0.165 | 0.24 | 0.26 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0.024221 | 0.251295 | 386 | 14 | 81 | 27.571429 | 0.66782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06e3c1aeb681d761c58c83162ae190f781ff3012 | 561 | py | Python | Lecture1/euler.py | quao627/AGRI9999-Seminar-in-Python | c87a628d2866787192db8a949925f6f1d6747200 | [
"MIT"
] | 2 | 2021-05-18T09:49:01.000Z | 2021-07-01T07:54:06.000Z | Lecture1/euler.py | quao627/AGRI9999-Seminar-in-Python | c87a628d2866787192db8a949925f6f1d6747200 | [
"MIT"
] | null | null | null | Lecture1/euler.py | quao627/AGRI9999-Seminar-in-Python | c87a628d2866787192db8a949925f6f1d6747200 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Estimation methods for the Euler Number"""
def series(n_terms=1000):
"""Estimate e with series: 1/1 + 1/1 + 1/(1*2) + 1/(1*2*3) + ..."""
def factorial(n):
result = 1
for i in range(1, n+1):
result *= i
return result
prin... | 25.5 | 71 | 0.561497 | 89 | 561 | 3.370787 | 0.404494 | 0.053333 | 0.04 | 0.04 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073634 | 0.249554 | 561 | 22 | 72 | 25.5 | 0.638955 | 0.324421 | 0 | 0 | 0 | 0 | 0.022039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06edf692570744bccdf6deec2bcb6156ea29b2f1 | 988 | py | Python | final_project/server.py | tarka-projects/xzceb-flask_eng_fr | 2461cea58904416fb290ef7eec450dcf1cb74bce | [
"Apache-2.0"
] | null | null | null | final_project/server.py | tarka-projects/xzceb-flask_eng_fr | 2461cea58904416fb290ef7eec450dcf1cb74bce | [
"Apache-2.0"
] | null | null | null | final_project/server.py | tarka-projects/xzceb-flask_eng_fr | 2461cea58904416fb290ef7eec450dcf1cb74bce | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 8 12:16:53 2021
@author: M.Tarka
"""
from machinetranslation import translator
from flask import Flask, render_template, request
#import json
app = Flask("Web Translator")
@app.route("/englishToFrench")
def english_to_french():
textToTranslate = r... | 26.702703 | 65 | 0.698381 | 121 | 988 | 5.520661 | 0.446281 | 0.062874 | 0.04491 | 0.08982 | 0.248503 | 0.248503 | 0.248503 | 0.248503 | 0.248503 | 0.248503 | 0 | 0.025 | 0.190283 | 988 | 37 | 66 | 26.702703 | 0.81 | 0.238866 | 0 | 0.111111 | 0 | 0 | 0.145092 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06ef39ff8253db655f448f8f2402723868136317 | 400 | py | Python | hata/discord/http/headers.py | Multiface24111/hata | cd28f9ef158e347363669cc8d1d49db0ff41aba0 | [
"0BSD"
] | 173 | 2019-06-14T20:25:00.000Z | 2022-03-21T19:36:10.000Z | hata/discord/http/headers.py | Multiface24111/hata | cd28f9ef158e347363669cc8d1d49db0ff41aba0 | [
"0BSD"
] | 52 | 2020-01-03T17:05:14.000Z | 2022-03-31T11:39:50.000Z | hata/discord/http/headers.py | Multiface24111/hata | cd28f9ef158e347363669cc8d1d49db0ff41aba0 | [
"0BSD"
] | 47 | 2019-11-09T08:46:45.000Z | 2022-03-31T14:33:34.000Z | __all__ = ()
from ...backend.utils import istr
AUDIT_LOG_REASON = istr('X-Audit-Log-Reason')
RATE_LIMIT_REMAINING = istr('X-RateLimit-Remaining')
RATE_LIMIT_RESET = istr('X-RateLimit-Reset')
RATE_LIMIT_RESET_AFTER = istr('X-RateLimit-Reset-After')
RATE_LIMIT_LIMIT = istr('X-RateLimit-Limit')
# to send
RATE_LIMIT_PR... | 26.666667 | 56 | 0.765 | 59 | 400 | 4.881356 | 0.355932 | 0.121528 | 0.243056 | 0.131944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 400 | 14 | 57 | 28.571429 | 0.789041 | 0.0175 | 0 | 0 | 0 | 0 | 0.337596 | 0.16624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06f5bf36c0f5f2c3625329aa5bf79fe25c4d0d2d | 7,943 | py | Python | RPN.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 11 | 2021-02-10T11:41:54.000Z | 2021-08-11T12:45:47.000Z | RPN.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 1 | 2021-03-30T04:14:48.000Z | 2021-03-30T06:42:02.000Z | RPN.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 2 | 2021-03-20T01:54:06.000Z | 2021-05-21T04:22:46.000Z | import torch.nn as nn
import numpy as np
from torch.nn import functional as F
from utils.bbox_tools import generate_anchor_base
from utils.creator_tool import ProposalCreator
def _enumerate_shifted_anchor(anchor_base, feat_stride, height, width):
"""
Enumerate all shifted anchors:
:param anchor_base: ... | 41.586387 | 110 | 0.591212 | 1,056 | 7,943 | 4.305871 | 0.273674 | 0.024192 | 0.013196 | 0.018474 | 0.155707 | 0.113481 | 0.044865 | 0.032989 | 0.032989 | 0.012316 | 0 | 0.023268 | 0.296613 | 7,943 | 190 | 111 | 41.805263 | 0.790585 | 0.480297 | 0 | 0.026316 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.065789 | 0 | 0.171053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06f6d78ce704011152fca337b015e023a11c5710 | 3,180 | py | Python | DroneOS/buildroot/system/skeleton/root/mytest.py | TechV/DroneOS | b01366e9f658890436a7bbcc809739ea225b99e0 | [
"Apache-2.0"
] | 1 | 2021-06-27T12:31:21.000Z | 2021-06-27T12:31:21.000Z | DroneOS/buildroot/system/skeleton/root/mytest.py | TechV/DroneOS | b01366e9f658890436a7bbcc809739ea225b99e0 | [
"Apache-2.0"
] | null | null | null | DroneOS/buildroot/system/skeleton/root/mytest.py | TechV/DroneOS | b01366e9f658890436a7bbcc809739ea225b99e0 | [
"Apache-2.0"
] | 2 | 2015-12-12T04:57:05.000Z | 2018-09-11T09:39:26.000Z | #!/usr/bin/python
import time
from motor import motor
from RPIO import PWM
PWM.setup()
PWM.init_channel(0)
#where 17 is GPIO17 = pin 11
# First we specify which gpio pins our motors are on and set our pwm accordingly
mymotor1 = motor('m1', 23, simulation=False)
mymotor2 = motor('m2', 17, simulation=False)
mymotor3 = m... | 24.84375 | 91 | 0.647799 | 457 | 3,180 | 4.472648 | 0.328228 | 0.043053 | 0.037671 | 0.039139 | 0.168787 | 0.060665 | 0.060665 | 0 | 0 | 0 | 0 | 0.074059 | 0.239937 | 3,180 | 127 | 92 | 25.03937 | 0.771618 | 0.255975 | 0 | 0.233333 | 0 | 0.011111 | 0.088311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.077778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
660190b920eba2db692a28004d64fd484ef5d4a1 | 274 | py | Python | PythonDesafios/d046.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | PythonDesafios/d046.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | PythonDesafios/d046.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | #Faça um programa que mostre na tela uma contagem regressiva para
# o estouro de fogos de artifício, indo de 10 até 0, com uma pausa
# de 1 segundo entre eles.
from time import sleep
for i in range(10, -1, -1):
print('{}'.format(i))
sleep(1)
print('Bum, BUM, POW')
| 27.4 | 66 | 0.686131 | 50 | 274 | 3.76 | 0.76 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041284 | 0.20438 | 274 | 9 | 67 | 30.444444 | 0.821101 | 0.562044 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6609c0576ff62418d3d4463d3773b85b21390d7a | 4,855 | py | Python | starter_simpleNN.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 13 | 2018-05-19T22:29:27.000Z | 2022-03-25T13:28:17.000Z | starter_simpleNN.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 1 | 2019-01-14T09:55:50.000Z | 2019-01-25T22:17:03.000Z | starter_simpleNN.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 6 | 2018-05-19T22:29:29.000Z | 2022-03-11T12:00:37.000Z | import numpy as np
import random
# Softmax function, optimized such that larger inputs are still feasible
# softmax(x + c) = softmax(x)
def softmax(x):
orig_shape = x.shape
x = x - np.max(x, axis = 1, keepdims = True)
exp_x = np.exp(x)
x = exp_x / np.sum(exp_x, axis = 1, keepdims = True)
assert x.shape == orig_sh... | 31.732026 | 91 | 0.625953 | 735 | 4,855 | 4.061224 | 0.257143 | 0.025796 | 0.0134 | 0.020101 | 0.263987 | 0.198995 | 0.115243 | 0.063652 | 0.023451 | 0.023451 | 0 | 0.07966 | 0.224305 | 4,855 | 153 | 92 | 31.732026 | 0.712958 | 0.171164 | 0 | 0.064815 | 0 | 0 | 0.08175 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | null | null | 0.046296 | 0.018519 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
660e77e4cd6f8356cc558856a3324dc6a1902eaa | 489 | py | Python | SimpleAddition/sum_classes.py | OpenGuide/Python---Beginner-s-Guide | 74b853be7f3eaeb490e464b549459bd877c6aa8b | [
"MIT"
] | 35 | 2017-10-09T14:45:34.000Z | 2021-11-11T08:48:52.000Z | SimpleAddition/sum_classes.py | jawachipcookie/Python-Guide-for-Beginners | 71f87df3a31044d9f6e4e2e7d9617a9e40c039ba | [
"MIT"
] | 35 | 2017-10-09T14:42:54.000Z | 2022-02-26T12:39:36.000Z | SimpleAddition/sum_classes.py | jawachipcookie/Python-Guide-for-Beginners | 71f87df3a31044d9f6e4e2e7d9617a9e40c039ba | [
"MIT"
] | 112 | 2017-10-09T14:45:42.000Z | 2022-02-25T13:03:30.000Z | # This example uses python classes for addition
class Numbers(object):
def __init__(self):
self.sum = 0
def add(self,x):
# Addtion funciton
self.sum += x
def total(self):
# Returns the total of the sum
return self.sum
if __name__ == "__main__":
# Prints 12 on the terminal when t... | 18.111111 | 51 | 0.619632 | 75 | 489 | 3.88 | 0.64 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014045 | 0.271984 | 489 | 26 | 52 | 18.807692 | 0.803371 | 0.390593 | 0 | 0 | 0 | 0 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
661016f5c180f4216248312796168ec5dd016391 | 1,074 | py | Python | examples/sensors.py | eirerocks/samsara-python-eu | e0f1bd8f42d083fc713f910b74123d3bc7408538 | [
"Apache-2.0"
] | 1 | 2019-09-17T14:11:52.000Z | 2019-09-17T14:11:52.000Z | examples/sensors.py | eirerocks/samsara-python-eu | e0f1bd8f42d083fc713f910b74123d3bc7408538 | [
"Apache-2.0"
] | null | null | null | examples/sensors.py | eirerocks/samsara-python-eu | e0f1bd8f42d083fc713f910b74123d3bc7408538 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
This script retrieves all the sensors for a group and prints their ID, Name, Mac Address.
To use it, run:
./examples/sensors --access_token <SAMSARA_API_TOKEN> --group_id <GROUP_ID>
passing in your Samsara API access token and the group ID you want to access.
"""
import click
import samsara
fr... | 31.588235 | 89 | 0.616387 | 130 | 1,074 | 4.915385 | 0.469231 | 0.065728 | 0.084507 | 0.078247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283985 | 1,074 | 33 | 90 | 32.545455 | 0.830949 | 0.081937 | 0 | 0 | 0 | 0 | 0.102384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66107e108ec64097a2d7afae132b9d16d94357fd | 528 | py | Python | examples/websocket/http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 3 | 2015-09-03T07:39:57.000Z | 2020-01-28T09:14:04.000Z | examples/websocket/http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 6 | 2015-05-09T13:26:12.000Z | 2017-07-13T14:22:31.000Z | examples/websocket/http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 5 | 2015-05-13T08:58:22.000Z | 2020-09-10T14:49:43.000Z | import rw.websocket
import rw.http
from rw import gen
class WebSocketHandler(rw.websocket.WebSocketHandler):
@gen.engine
def open(self):
print 'open'
@gen.engine
def on_message(self, message):
print 'on message'
@gen.engine
def on_close(self):
print 'on close'
d... | 16.5 | 54 | 0.636364 | 67 | 528 | 4.910448 | 0.432836 | 0.082067 | 0.109422 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24053 | 528 | 31 | 55 | 17.032258 | 0.820449 | 0.024621 | 0 | 0.15 | 0 | 0 | 0.101365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66149430dade01f4455993e712a49045cab77edb | 2,194 | py | Python | todo/config.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | todo/config.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | todo/config.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | from task.const import *
app_config = {
'name': APP_TODO,
'app_title': 'tasks',
'icon': 'check2-square',
'role': ROLE_TODO,
'main_view': 'planned',
'use_groups': True,
'use_selector': True,
'use_important': True,
'sort': [
('stop', 'termin'),
('name', 'name'),
... | 28.128205 | 50 | 0.364631 | 159 | 2,194 | 4.893082 | 0.27044 | 0.057841 | 0.115681 | 0.161954 | 0.529563 | 0.465296 | 0.465296 | 0.410026 | 0.316195 | 0.260925 | 0 | 0.002465 | 0.445305 | 2,194 | 78 | 51 | 28.128205 | 0.636812 | 0 | 0 | 0.597403 | 0 | 0 | 0.339863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116883 | 0 | 0.116883 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
661ee0f8b3d914a8c929bd99b89ca6b4d11b1811 | 5,463 | py | Python | contextual_encoders/aggregator.py | StuttgarterDotNet/contextual-encoders | 002923022ad03ec4af5159d7e434da5edffd7328 | [
"Apache-2.0"
] | null | null | null | contextual_encoders/aggregator.py | StuttgarterDotNet/contextual-encoders | 002923022ad03ec4af5159d7e434da5edffd7328 | [
"Apache-2.0"
] | null | null | null | contextual_encoders/aggregator.py | StuttgarterDotNet/contextual-encoders | 002923022ad03ec4af5159d7e434da5edffd7328 | [
"Apache-2.0"
] | null | null | null | """
Aggregator
====================================
*Aggregators* are used to combine multiple matrices to a single matrix.
This is used to combine similarity and dissimilarity matrices of multiple attributes to a single one.
Thus, an *Aggregator* :math:`\\mathcal{A}` is a mapping of the form
:math:`\\mathcal{A} : \\ma... | 35.705882 | 267 | 0.58521 | 728 | 5,463 | 4.377747 | 0.18956 | 0.072482 | 0.037653 | 0.103546 | 0.534672 | 0.491999 | 0.463759 | 0.463759 | 0.463759 | 0.463759 | 0 | 0.01153 | 0.237964 | 5,463 | 152 | 268 | 35.940789 | 0.754024 | 0.701812 | 0 | 0.16129 | 0 | 0 | 0.057844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.032258 | 0.064516 | 0 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6624d6cbdf35dd41d2cb1c12bee1f4a54b12e14b | 4,427 | py | Python | src/frame/mysql_manager.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | 9 | 2017-05-14T05:12:32.000Z | 2022-01-13T08:11:07.000Z | src/frame/mysql_manager.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | null | null | null | src/frame/mysql_manager.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | 7 | 2017-08-28T08:31:43.000Z | 2020-03-03T07:18:37.000Z | import json
import frame_tools
from collections import OrderedDict
import conf_keys
from mysql_conn import mysql_conn
from loggingex import LOG_WARNING
from loggingex import LOG_INFO
from singleton import singleton
from mysql_conn import mysql_conn
class mysql_conn_info:
def __init__(self):
self.vali... | 38.833333 | 150 | 0.649424 | 581 | 4,427 | 4.583477 | 0.151463 | 0.072099 | 0.048817 | 0.063838 | 0.478032 | 0.44724 | 0.373639 | 0.324822 | 0.247841 | 0.247841 | 0 | 0.019062 | 0.229727 | 4,427 | 113 | 151 | 39.176991 | 0.761877 | 0.225435 | 0 | 0.265823 | 0 | 0 | 0.03308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025316 | 0.151899 | null | null | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66276434bf67465167e6057a31abd3d18429d11b | 13,793 | py | Python | src/scripts/experiment-1-searchstims/generate_source_data_csv.py | NickleDave/Nicholson-Prinz-2020 | 35d49c5330f9e5e9945eb2ea93302b60ee1f0c1f | [
"BSD-3-Clause"
] | 1 | 2021-05-17T15:30:11.000Z | 2021-05-17T15:30:11.000Z | src/scripts/experiment-1-searchstims/generate_source_data_csv.py | NickleDave/Nicholson-Prinz-2020 | 35d49c5330f9e5e9945eb2ea93302b60ee1f0c1f | [
"BSD-3-Clause"
] | 12 | 2021-07-03T19:41:59.000Z | 2021-07-29T02:01:33.000Z | src/scripts/experiment-1-searchstims/generate_source_data_csv.py | NickleDave/Nicholson-Prinz-2021 | 8ba8919c5c8203730fa86edaa4771f37d02d31dd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
"""script that generates source data csvs for searchstims experiment figures"""
from argparse import ArgumentParser
from collections import defaultdict
from pathlib import Path
import pandas as pd
import pyprojroot
import searchnets
def main(results_gz_root,
source_dat... | 49.437276 | 119 | 0.645037 | 1,832 | 13,793 | 4.546397 | 0.132642 | 0.060511 | 0.042022 | 0.029655 | 0.529956 | 0.483852 | 0.40473 | 0.372794 | 0.316124 | 0.282867 | 0 | 0.00928 | 0.2734 | 13,793 | 278 | 120 | 49.615108 | 0.821792 | 0.215907 | 0 | 0.081522 | 1 | 0 | 0.264734 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.032609 | 0 | 0.048913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6628516331bee00443b896aa90f62547f50ba151 | 1,252 | py | Python | archiv/migrations/0001_initial.py | acdh-oeaw/nerdpool-api | e4388d4b5b323113ba675a732952c2ecf5fcef6d | [
"MIT"
] | null | null | null | archiv/migrations/0001_initial.py | acdh-oeaw/nerdpool-api | e4388d4b5b323113ba675a732952c2ecf5fcef6d | [
"MIT"
] | null | null | null | archiv/migrations/0001_initial.py | acdh-oeaw/nerdpool-api | e4388d4b5b323113ba675a732952c2ecf5fcef6d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-20 12:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='NerSource',
fields=[
... | 36.823529 | 118 | 0.597444 | 133 | 1,252 | 5.488722 | 0.488722 | 0.075342 | 0.065753 | 0.060274 | 0.345205 | 0.345205 | 0.345205 | 0.345205 | 0.345205 | 0.345205 | 0 | 0.019481 | 0.261981 | 1,252 | 33 | 119 | 37.939394 | 0.770563 | 0.035942 | 0 | 0.384615 | 1 | 0 | 0.103734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.