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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64469d2922c77b05801ce2e5f6e2c69fc46b4bec | 347 | py | Python | musicxml/xmlelement/containers.py | alexgorji/musicxml | 9354a572b66de590b58fb4bbe34577892fd6290b | [
"MIT"
] | null | null | null | musicxml/xmlelement/containers.py | alexgorji/musicxml | 9354a572b66de590b58fb4bbe34577892fd6290b | [
"MIT"
] | null | null | null | musicxml/xmlelement/containers.py | alexgorji/musicxml | 9354a572b66de590b58fb4bbe34577892fd6290b | [
"MIT"
] | null | null | null | from musicxml.xmlelement.xmlchildcontainer import XMLChildContainerFactory
from musicxml.xsd.xsdcomplextype import *
from musicxml.xsd.xsdcomplextype import __all__
containers = {}
for ct in __all__[1:]:
cls = eval(ct)
if cls.get_xsd_indicator():
containers[ct] = XMLChildContainerFactory(complex_type=... | 31.545455 | 89 | 0.783862 | 40 | 347 | 6.475 | 0.575 | 0.138996 | 0.11583 | 0.223938 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.129683 | 347 | 10 | 90 | 34.7 | 0.854305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6449a67d66f95182ce7ac52ec574d1f8e5fe81a5 | 754 | py | Python | onnx_tf/handlers/backend/conv_transpose.py | malisit/onnx-tensorflow | 3eb41dc923f350ca533f1024f602a842dd55de45 | [
"Apache-2.0"
] | 1,110 | 2017-11-13T19:34:24.000Z | 2022-03-29T09:14:56.000Z | onnx_tf/handlers/backend/conv_transpose.py | malisit/onnx-tensorflow | 3eb41dc923f350ca533f1024f602a842dd55de45 | [
"Apache-2.0"
] | 768 | 2017-11-17T00:06:27.000Z | 2022-03-31T20:20:09.000Z | onnx_tf/handlers/backend/conv_transpose.py | malisit/onnx-tensorflow | 3eb41dc923f350ca533f1024f602a842dd55de45 | [
"Apache-2.0"
] | 281 | 2017-11-16T19:56:17.000Z | 2022-03-28T06:25:33.000Z | from onnx_tf.handlers.backend_handler import BackendHandler
from onnx_tf.handlers.handler import onnx_op
from onnx_tf.handlers.handler import partial_support
from onnx_tf.handlers.handler import ps_description
from .conv_mixin import ConvMixin
@onnx_op("ConvTranspose")
@partial_support(True)
@ps_description("ConvTran... | 34.272727 | 64 | 0.750663 | 97 | 754 | 5.670103 | 0.453608 | 0.058182 | 0.072727 | 0.130909 | 0.383636 | 0.383636 | 0.214545 | 0.214545 | 0.214545 | 0.214545 | 0 | 0.007837 | 0.153846 | 754 | 21 | 65 | 35.904762 | 0.854232 | 0 | 0 | 0.235294 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
644e922fa80a834f7c8e273c05d9079db1073c84 | 1,930 | py | Python | examples/__init__.py | tehdragonfly/pyramid_services_viewmapper | 8ec5daafa1cf0bc742876cf7dc01beef8c4b6f5a | [
"MIT"
] | null | null | null | examples/__init__.py | tehdragonfly/pyramid_services_viewmapper | 8ec5daafa1cf0bc742876cf7dc01beef8c4b6f5a | [
"MIT"
] | null | null | null | examples/__init__.py | tehdragonfly/pyramid_services_viewmapper | 8ec5daafa1cf0bc742876cf7dc01beef8c4b6f5a | [
"MIT"
] | null | null | null | from __future__ import annotations
from pyramid.config import Configurator
from wsgiref.simple_server import make_server
from zope.interface import Interface, implementer
from pyramid_services_viewmapper import ServiceInjector as SI, ServiceViewMapper
class IExampleService(Interface):
def example(self):
... | 27.571429 | 86 | 0.736788 | 224 | 1,930 | 6.044643 | 0.236607 | 0.053176 | 0.041359 | 0.046529 | 0.14771 | 0.044313 | 0 | 0 | 0 | 0 | 0 | 0.004866 | 0.148187 | 1,930 | 69 | 87 | 27.971014 | 0.818735 | 0 | 0 | 0.093023 | 0 | 0 | 0.12487 | 0.01399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0.023256 | 0.116279 | 0.139535 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
645501a83d85abdee975abac06ea4d75e2242ef2 | 290 | py | Python | tests/unit/test_domain.py | be-rock/coin-flipper | bf9f5b25101fd6032ed334d18022e0eea87c3097 | [
"Apache-2.0"
] | 1 | 2021-02-11T01:51:54.000Z | 2021-02-11T01:51:54.000Z | tests/unit/test_domain.py | be-rock/coin-flipper | bf9f5b25101fd6032ed334d18022e0eea87c3097 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_domain.py | be-rock/coin-flipper | bf9f5b25101fd6032ed334d18022e0eea87c3097 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
def test_can_obtain_coinflip_results(coin_fixture):
number_of_flips = 10
results = coin_fixture.flip(number_of_flips=number_of_flips)
assert isinstance(results, defaultdict)
assert results["heads"] + results["tails"] == number_of_flips
| 32.222222 | 65 | 0.786207 | 38 | 290 | 5.631579 | 0.552632 | 0.149533 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.134483 | 290 | 8 | 66 | 36.25 | 0.844622 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6461cdc62875ddc52bf22281aae7045e30dd3147 | 307 | py | Python | example_data/test_eval.py | pguridi/ageofempyres | d5a3322d410c8780717b85a409aff4bda66f1823 | [
"MIT"
] | null | null | null | example_data/test_eval.py | pguridi/ageofempyres | d5a3322d410c8780717b85a409aff4bda66f1823 | [
"MIT"
] | null | null | null | example_data/test_eval.py | pguridi/ageofempyres | d5a3322d410c8780717b85a409aff4bda66f1823 | [
"MIT"
] | null | null | null | import sys
from turnboxed.utils import evaluate_in_sandbox
code = """from basebot import BaseBot
from basebot import BaseBot
class Bot(BaseBot):
def on_turn(self, data_dict):
return None
"""
def main():
evaluate_in_sandbox(code)
sys.exit(0)
if __name__ == "__main__":
main()
| 13.954545 | 47 | 0.690554 | 42 | 307 | 4.714286 | 0.595238 | 0.10101 | 0.171717 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.211726 | 307 | 21 | 48 | 14.619048 | 0.81405 | 0 | 0 | 0 | 0 | 0 | 0.459283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
646821f4a7b1ef947249a232f0f1aa698347599b | 794 | py | Python | ephios/plugins/pages/views.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | null | null | null | ephios/plugins/pages/views.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | null | null | null | ephios/plugins/pages/views.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | null | null | null | from django.contrib.auth.views import redirect_to_login
from django.views.generic import DetailView, ListView
from ephios.core.views.settings import SettingsViewMixin
from ephios.extra.mixins import StaffRequiredMixin
from ephios.plugins.pages.models import Page
class PageListView(StaffRequiredMixin, SettingsViewMix... | 33.083333 | 82 | 0.740554 | 97 | 794 | 5.969072 | 0.494845 | 0.075993 | 0.117444 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161209 | 794 | 23 | 83 | 34.521739 | 0.869369 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
646eb0e5443ab2a78e26f18493e30e689bf4023f | 790 | py | Python | pages/MainPage.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | null | null | null | pages/MainPage.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | null | null | null | pages/MainPage.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.keys import Keys
from pages.BasePage import BasePage
from pages.LoginPage import LoginPage
#from pages.MainPage import MainPage
from utils.locators import *
# Page objects are written in this module.
# Depends on this Main page functionality we can have more functions for new classes, C... | 35.909091 | 155 | 0.759494 | 108 | 790 | 5.407407 | 0.592593 | 0.046233 | 0.05137 | 0.065068 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.174684 | 790 | 21 | 156 | 37.619048 | 0.892638 | 0.311392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6478639b121c0e123dc3eec4e96d0102c1216788 | 1,256 | py | Python | popupcad_gazebo/__init__.py | popupcad/popupcad | d3da448260cd5cb9e05417b0a723d7f73ae4e06e | [
"MIT"
] | 19 | 2015-08-01T22:13:39.000Z | 2020-03-07T03:55:46.000Z | popupcad_gazebo/__init__.py | CadQuery/popupcad | b0c7b406d4b288c7cb375340323bba0252aedbfb | [
"MIT"
] | 106 | 2015-07-23T19:58:01.000Z | 2019-05-14T03:46:08.000Z | popupcad_gazebo/__init__.py | CadQuery/popupcad | b0c7b406d4b288c7cb375340323bba0252aedbfb | [
"MIT"
] | 9 | 2015-10-04T23:38:41.000Z | 2020-07-16T03:50:34.000Z | # -*- coding: utf-8 -*-
"""
Written by Daniel M. Aukes and CONTRIBUTORS
Email: danaukes<at>asu.edu.
Please see LICENSE for full license.
"""
from . import gazebo_controller
#import external modules
import PIL
import array
import lxml
import multiprocessing
import pygazebo
import trollius
import collada
import stl
... | 27.911111 | 120 | 0.734076 | 150 | 1,256 | 6.08 | 0.453333 | 0.054825 | 0.078947 | 0.067982 | 0.357456 | 0.276316 | 0.276316 | 0.276316 | 0.276316 | 0.276316 | 0 | 0.004608 | 0.136147 | 1,256 | 44 | 121 | 28.545455 | 0.835945 | 0.122611 | 0 | 0.206897 | 0 | 0 | 0.088747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.448276 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
64a03e4157e1100b9f119a3408f57fd2011373a3 | 2,448 | py | Python | test/EN.py | miaopei/deep_landmark | 4620260ca1722a02c0c4f8de8ffce02823e99a9a | [
"MIT"
] | 327 | 2015-07-31T06:47:33.000Z | 2021-11-16T13:55:49.000Z | test/EN.py | JHuang-96/deep-landmark | c77370631d1394a83e50bde3fe13c1b18ab5691e | [
"BSD-3-Clause"
] | 36 | 2016-01-07T01:44:19.000Z | 2019-10-15T13:11:50.000Z | test/EN.py | JHuang-96/deep-landmark | c77370631d1394a83e50bde3fe13c1b18ab5691e | [
"BSD-3-Clause"
] | 176 | 2015-08-02T10:55:27.000Z | 2021-09-14T08:37:10.000Z | #!/usr/bin/env python2.7
# coding: utf-8
"""
This file use Caffe model to predict landmarks and evaluate the mean error.
"""
import os, sys
import time
import cv2
import numpy as np
from numpy.linalg import norm
from common import getDataFromTxt, logger, processImage, getCNNs
TXT = 'dataset/train/testImageList.t... | 24.727273 | 79 | 0.581291 | 328 | 2,448 | 4.29878 | 0.393293 | 0.011348 | 0.012766 | 0.023404 | 0.057447 | 0.031206 | 0.031206 | 0.031206 | 0 | 0 | 0 | 0.026997 | 0.273693 | 2,448 | 98 | 80 | 24.979592 | 0.766029 | 0.041667 | 0 | 0.112676 | 0 | 0 | 0.168747 | 0.024041 | 0 | 0 | 0 | 0.010204 | 0.014085 | 0 | null | null | 0 | 0.084507 | null | null | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64af9335a70d829ff685fea46a2bd31e09f08de2 | 1,988 | py | Python | project_code/topology_getter/tools.py | statnett/relevant_assets | 3b29c64677b63c485c09fbef14d933fe49fd7fc0 | [
"Apache-2.0"
] | 1 | 2020-04-29T13:29:22.000Z | 2020-04-29T13:29:22.000Z | project_code/topology_getter/tools.py | statnett/relevant_assets | 3b29c64677b63c485c09fbef14d933fe49fd7fc0 | [
"Apache-2.0"
] | null | null | null | project_code/topology_getter/tools.py | statnett/relevant_assets | 3b29c64677b63c485c09fbef14d933fe49fd7fc0 | [
"Apache-2.0"
] | null | null | null | import datetime
import pickle
from enum import Enum
from decorator import decorator
def time_this(fn):
"""
This decorator time the input function :func:`fn`
"""
def timed_fn(fn, *args, **kwargs):
time1 = datetime.datetime.now()
result = fn(*args, **kwargs)
calc_time = datetime... | 27.232877 | 71 | 0.612676 | 281 | 1,988 | 4.010676 | 0.245552 | 0.053239 | 0.079858 | 0.070985 | 0.525288 | 0.525288 | 0.510204 | 0.510204 | 0.510204 | 0.493345 | 0 | 0.012337 | 0.266097 | 1,988 | 72 | 72 | 27.611111 | 0.76011 | 0.024648 | 0 | 0.269231 | 0 | 0 | 0.022881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.076923 | 0.038462 | 0.653846 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
64d18dffb29a5c46a2b076d070b6de8b195cb186 | 779 | py | Python | installed/keyring/keyring/util/escape.py | jscherer26/Icarra | 5bc8b298ae21dcde7e8e2253b9ed9db95fd0d164 | [
"BSD-3-Clause"
] | 1 | 2021-11-09T04:36:57.000Z | 2021-11-09T04:36:57.000Z | installed/keyring/keyring/util/escape.py | jscherer26/Icarra | 5bc8b298ae21dcde7e8e2253b9ed9db95fd0d164 | [
"BSD-3-Clause"
] | null | null | null | installed/keyring/keyring/util/escape.py | jscherer26/Icarra | 5bc8b298ae21dcde7e8e2253b9ed9db95fd0d164 | [
"BSD-3-Clause"
] | 2 | 2020-03-28T02:55:19.000Z | 2021-11-09T04:37:08.000Z | """
escape/unescape routines available for backends which need
alphanumeric usernames, services, or other values
"""
import string, re
LEGAL_CHARS = string.letters + string.digits
ESCAPE_CHAR = "_"
def escape(value):
"""Escapes given value so the result consists of alphanumeric chars and underscore
only, and... | 29.961538 | 86 | 0.661104 | 110 | 779 | 4.581818 | 0.581818 | 0.079365 | 0.043651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009885 | 0.220796 | 779 | 25 | 87 | 31.16 | 0.820428 | 0.386393 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
64dca9977e9ec952ae81d644a086dd61ec12fecd | 859 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0010_auto_20180425_0800.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0010_auto_20180425_0800.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0010_auto_20180425_0800.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # Generated by Django 1.11.12 on 2018-04-25 12:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('email_marketing', '0009_remove_emailmarketingconfiguration_sailthru_activation_template'),
]
operations = [
migrations.AddField(
... | 34.36 | 132 | 0.691502 | 90 | 859 | 6.4 | 0.522222 | 0.0625 | 0.079861 | 0.09375 | 0.607639 | 0.520833 | 0.520833 | 0.520833 | 0.25 | 0.25 | 0 | 0.037313 | 0.220023 | 859 | 24 | 133 | 35.791667 | 0.822388 | 0.054715 | 0 | 0.352941 | 1 | 0 | 0.398765 | 0.241975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b37e8415a191f3e9f3db68e99af2881e989cd639 | 951 | py | Python | jabbbar/project.py | barguman/jabbbar | c857a87062e92fe7e35b3a8d423199a0c7d9f7a7 | [
"WTFPL"
] | 4 | 2017-01-21T19:57:23.000Z | 2021-08-02T05:30:37.000Z | jabbbar/project.py | barguman/jabbbar | c857a87062e92fe7e35b3a8d423199a0c7d9f7a7 | [
"WTFPL"
] | 1 | 2019-08-28T10:36:12.000Z | 2020-07-31T13:24:33.000Z | jabbbar/project.py | barguman/jabbbar | c857a87062e92fe7e35b3a8d423199a0c7d9f7a7 | [
"WTFPL"
] | 3 | 2018-11-25T02:04:24.000Z | 2020-11-27T13:13:08.000Z | class Project():
def __init__(self, client, project_id=None):
self.client = client
self.project_id = project_id
def get_details(self, project_id=None):
"""
Get information about a specific project
http://developer.dribbble.com/v1/projects/#get-a-project
... | 33.964286 | 85 | 0.623554 | 123 | 951 | 4.634146 | 0.300813 | 0.236842 | 0.114035 | 0.094737 | 0.364912 | 0.364912 | 0.364912 | 0.221053 | 0.221053 | 0.221053 | 0 | 0.00289 | 0.272345 | 951 | 27 | 86 | 35.222222 | 0.820809 | 0.242902 | 0 | 0.166667 | 0 | 0 | 0.046802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b39639dbd1cd4e48fb53da56e9bd4222cae4f897 | 212 | py | Python | playback/forms.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | playback/forms.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | playback/forms.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | from django import forms
class UsernameForm(forms.Form):
username = forms.CharField(
label='Username',
max_length=50,
widget=forms.TextInput(attrs={'class': 'form-control'})
) | 26.5 | 63 | 0.636792 | 23 | 212 | 5.826087 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.235849 | 212 | 8 | 64 | 26.5 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.117371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b39c64ad0270904d50fed232e1b1fc05d1ca04c5 | 275 | py | Python | setup.py | pedrocunial/hello_aws | 2d35df72a0560a712c38be05b8716cce7609a89e | [
"Apache-2.0"
] | null | null | null | setup.py | pedrocunial/hello_aws | 2d35df72a0560a712c38be05b8716cce7609a89e | [
"Apache-2.0"
] | null | null | null | setup.py | pedrocunial/hello_aws | 2d35df72a0560a712c38be05b8716cce7609a89e | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='pccli',
version='0.3',
py_modules=['pccli'],
install_requires=[
'Click',
'boto3',
'pathlib',
'awscli',
],
entry_points='''
[console_scripts]
pccli=pccli:cli
''',
)
| 15.277778 | 28 | 0.516364 | 26 | 275 | 5.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.32 | 275 | 17 | 29 | 16.176471 | 0.721925 | 0 | 0 | 0 | 0 | 0 | 0.301818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3c6c115577f4dc18b21247f2c336f07c975ed56 | 454 | py | Python | authentication/models.py | eotubu/DjangoGoat | b5123eba8c002adb4f5513197e7e69a724385d29 | [
"MIT"
] | null | null | null | authentication/models.py | eotubu/DjangoGoat | b5123eba8c002adb4f5513197e7e69a724385d29 | [
"MIT"
] | null | null | null | authentication/models.py | eotubu/DjangoGoat | b5123eba8c002adb4f5513197e7e69a724385d29 | [
"MIT"
] | null | null | null | import os
from django.db import models
def upload_path(user, filename):
extension = os.path.splitext(filename)[1]
return 'avatar_%s%s' % (user.pk, extension)
class UserProfile(models.Model):
user = models.OneToOneField('auth.User', on_delete=models.CASCADE)
avatar = models.ImageField(upload_to=uplo... | 28.375 | 70 | 0.742291 | 62 | 454 | 5.306452 | 0.596774 | 0.06079 | 0.109422 | 0.145897 | 0.164134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017903 | 0.138767 | 454 | 15 | 71 | 30.266667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b3c9e840b4e73a38ebfe49ed753ca984c6bfa0f1 | 5,413 | py | Python | namalizer.py | svetlyak40wt/namalizer | b76c8d3f9af7dad7bc7acb12db0cfc7c7da35de5 | [
"BSD-3-Clause"
] | null | null | null | namalizer.py | svetlyak40wt/namalizer | b76c8d3f9af7dad7bc7acb12db0cfc7c7da35de5 | [
"BSD-3-Clause"
] | null | null | null | namalizer.py | svetlyak40wt/namalizer | b76c8d3f9af7dad7bc7acb12db0cfc7c7da35de5 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T16:25:48.000Z | 2019-06-10T16:25:48.000Z | import re
#import logbook
from inspect import isroutine, getmro
from itertools import chain
import unittest
_CAMEL_RE = re.compile(r'(?<=[a-z])([A-Z])')
def _normalize(name):
return _CAMEL_RE.sub(lambda x: '_' + x.group(1).lower(), name).lower()
def _defined_in(obj, name, value):
if hasattr(obj, '__bases__... | 31.47093 | 135 | 0.462036 | 552 | 5,413 | 4.367754 | 0.201087 | 0.130651 | 0.046454 | 0.063874 | 0.407715 | 0.33679 | 0.291165 | 0.26462 | 0.240564 | 0.224388 | 0 | 0.005128 | 0.42361 | 5,413 | 171 | 136 | 31.654971 | 0.767628 | 0.074081 | 0 | 0.409836 | 0 | 0 | 0.03763 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 1 | 0.204918 | false | 0.032787 | 0.04918 | 0.106557 | 0.459016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
b3d3e1eeb4d4a60b3a9807d80f88f3439bf2827c | 553 | py | Python | sentiment_analysis/setup.py | syrinecheriaa/sentiment-analysis-test | dc743f79c039cda5978c9c036014715ec86e19d9 | [
"MIT"
] | null | null | null | sentiment_analysis/setup.py | syrinecheriaa/sentiment-analysis-test | dc743f79c039cda5978c9c036014715ec86e19d9 | [
"MIT"
] | null | null | null | sentiment_analysis/setup.py | syrinecheriaa/sentiment-analysis-test | dc743f79c039cda5978c9c036014715ec86e19d9 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(name='sentiment_analysis',
packages=['sentiment_analysis'],
version='0.2.0',
description="sentiment analysis library",
author='Syrine Cheriaa',
package_data={'sentiment_analysis': ['data/*'],},
include_package_data=True,
... | 29.105263 | 99 | 0.625678 | 63 | 553 | 5.333333 | 0.698413 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 0.218807 | 553 | 19 | 100 | 29.105263 | 0.726852 | 0 | 0 | 0 | 0 | 0.0625 | 0.445848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3e1bd311c3e19253f5659ae05b74cfcd3980307 | 1,060 | py | Python | MyApi/scrapingApp/models.py | Georgitanev/py_django_scrape | 734313eb7d355ab6ab81521811e237232fa3abba | [
"MIT"
] | null | null | null | MyApi/scrapingApp/models.py | Georgitanev/py_django_scrape | 734313eb7d355ab6ab81521811e237232fa3abba | [
"MIT"
] | null | null | null | MyApi/scrapingApp/models.py | Georgitanev/py_django_scrape | 734313eb7d355ab6ab81521811e237232fa3abba | [
"MIT"
] | null | null | null | """ model parliament1"""
from django.db import models
class Parliament1(models.Model):
""" model parliament1"""
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=60)
date_born = models.DateField(blank=True, null=True) # date
place_born = models.CharField(max_length=50, b... | 37.857143 | 82 | 0.7 | 146 | 1,060 | 4.952055 | 0.328767 | 0.124481 | 0.179806 | 0.235131 | 0.391425 | 0.356846 | 0.356846 | 0.356846 | 0.356846 | 0 | 0 | 0.028571 | 0.174528 | 1,060 | 27 | 83 | 39.259259 | 0.797714 | 0.099057 | 0 | 0 | 0 | 0 | 0.01179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.055556 | 0.944444 | 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 | 1 | 0 | 0 | 2 |
b3e40f9f185a1c3613c0187d829f202f4fa79f7b | 247 | py | Python | config/models.py | pablo-moreno/shitter-back | 33c0eb0e0bdff370b68148308ac08ab63b9e6e54 | [
"MIT"
] | null | null | null | config/models.py | pablo-moreno/shitter-back | 33c0eb0e0bdff370b68148308ac08ab63b9e6e54 | [
"MIT"
] | null | null | null | config/models.py | pablo-moreno/shitter-back | 33c0eb0e0bdff370b68148308ac08ab63b9e6e54 | [
"MIT"
] | null | null | null | from django.db import models
class Deletable(models.Model):
deleted = models.BooleanField(default=False)
def delete(self, *args, **kwargs):
self.deleted = True
return self.save()
class Meta:
abstract = True
| 19 | 48 | 0.643725 | 29 | 247 | 5.482759 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255061 | 247 | 12 | 49 | 20.583333 | 0.86413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 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 | 1 | 0 | 0 | 2 |
b3ebcea3a9a0e8eabeee3a51a8f06736050806e8 | 191 | py | Python | flask_table/__init__.py | nullptrT/flask_table | d4577307bf3b790fb1d91238019577beb477ee4a | [
"BSD-3-Clause"
] | 215 | 2015-01-09T12:18:19.000Z | 2022-01-31T00:18:29.000Z | flask_table/__init__.py | nullptrT/flask_table | d4577307bf3b790fb1d91238019577beb477ee4a | [
"BSD-3-Clause"
] | 93 | 2015-02-03T22:39:02.000Z | 2022-01-26T04:12:16.000Z | flask_table/__init__.py | nullptrT/flask_table | d4577307bf3b790fb1d91238019577beb477ee4a | [
"BSD-3-Clause"
] | 48 | 2015-04-29T09:23:34.000Z | 2022-01-21T13:50:39.000Z | from .table import Table, create_table
from .columns import (
Col,
BoolCol,
DateCol,
DatetimeCol,
LinkCol,
ButtonCol,
OptCol,
NestedTableCol,
BoolNaCol,
)
| 14.692308 | 38 | 0.638743 | 18 | 191 | 6.722222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287958 | 191 | 12 | 39 | 15.916667 | 0.889706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3fefac128488eb725927f20b329138ca5ce7597 | 600 | py | Python | Desafio73.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | Desafio73.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | Desafio73.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | print('=' * 12 + 'Desafio 73' + '=' * 12)
tabelabrasileirao = (
"Flamengo", "Santos", "Palmeiras", "Grêmio", "Athletico-PR", "São Paulo", "Internacional", "Corinthians",
"Fortaleza", "Goiás", "Bahia", "Vasco", "Atlético-MG", "Fluminense", "Botafogo", "Ceará", "Cruzeiro", "CSA",
"Chapecoense", "Avaí")
print(... | 54.545455 | 112 | 0.675 | 69 | 600 | 5.869565 | 0.695652 | 0.059259 | 0.039506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022684 | 0.118333 | 600 | 10 | 113 | 60 | 0.742911 | 0 | 0 | 0 | 0 | 0 | 0.68 | 0.195 | 0.1 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3738fea80e32116af4f5079b064f76ad7cd91a34 | 511 | py | Python | server/face_server/np_utils.py | yichenj/facegate | 6407143712f62e30c95ac3482a2356f489fb00fb | [
"MIT"
] | null | null | null | server/face_server/np_utils.py | yichenj/facegate | 6407143712f62e30c95ac3482a2356f489fb00fb | [
"MIT"
] | null | null | null | server/face_server/np_utils.py | yichenj/facegate | 6407143712f62e30c95ac3482a2356f489fb00fb | [
"MIT"
] | null | null | null | import numpy as np
def to_array(image):
array = np.array(image, dtype=np.float32)[..., :3]
array = array / 255.
return array
def l2_normalize(x, axis=0):
norm = np.linalg.norm(x, axis=axis, keepdims=True)
return x / norm
def distance(a, b):
# Euclidean distance
# return np.linalg.norm(a... | 25.55 | 80 | 0.62818 | 83 | 511 | 3.843373 | 0.457831 | 0.100313 | 0.15047 | 0.081505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02005 | 0.219178 | 511 | 19 | 81 | 26.894737 | 0.779449 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
373f87ca88d326c252fd85db9ebc6a4b35ea483b | 114 | py | Python | neoOkpara/Phase-1/Day2/currentDate.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | neoOkpara/Phase-1/Day2/currentDate.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | neoOkpara/Phase-1/Day2/currentDate.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | from datetime import datetime
today = datetime.now()
show = "Current date and time : " + str(today)
print(show)
| 16.285714 | 46 | 0.710526 | 16 | 114 | 5.0625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 114 | 6 | 47 | 19 | 0.861702 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 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 | 2 |
3748571d455c4df645b58cda8c9c696bccc2ae12 | 359 | py | Python | w11/gauss.py | cagriulas/algorithm-analysis-17 | 25ebe909bf27be162801c2646536fd20b655683f | [
"Unlicense"
] | null | null | null | w11/gauss.py | cagriulas/algorithm-analysis-17 | 25ebe909bf27be162801c2646536fd20b655683f | [
"Unlicense"
] | null | null | null | w11/gauss.py | cagriulas/algorithm-analysis-17 | 25ebe909bf27be162801c2646536fd20b655683f | [
"Unlicense"
] | null | null | null | import numpy as np
a_matris = [[2,0,0],
[0,2,0],
[0,0,2]]
x_matris = []
b_matris = [2, 4, 9]
u_a_matris = np.triu(a_matris)
x3 = float(b_matris[2])/u_a_matris[2][2]
x2 = float(b_matris[1] - x3*u_a_matris[1][2])/u_a_matris[1][1]
x1 = float(b_matris[0] - x2*u_a_matris[0][1] - x3*u_a_matris[0][2... | 22.4375 | 84 | 0.590529 | 81 | 359 | 2.358025 | 0.246914 | 0.329843 | 0.293194 | 0.141361 | 0.162304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122867 | 0.183844 | 359 | 15 | 85 | 23.933333 | 0.52901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 1 | 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 | 2 |
374ce62135d36fdca7c25b19acdd01cab7ba1ef0 | 662 | py | Python | allink_core/apps/people/managers.py | allink/allink-core | cf2727f26192d8dee89d76feb262bc4760f36f5e | [
"BSD-3-Clause"
] | 5 | 2017-03-13T08:49:45.000Z | 2022-03-05T20:05:56.000Z | allink_core/apps/people/managers.py | allink/allink-core | cf2727f26192d8dee89d76feb262bc4760f36f5e | [
"BSD-3-Clause"
] | 28 | 2019-10-21T08:32:18.000Z | 2022-02-10T13:16:38.000Z | allink_core/apps/people/managers.py | allink/allink-core | cf2727f26192d8dee89d76feb262bc4760f36f5e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from allink_core.core.models.managers import AllinkCategoryModelQuerySet
class AllinkPeopleQuerySet(AllinkCategoryModelQuerySet):
def title_asc(self, lang):
return self.active()\
.order_by('last_name', 'id')\
.distinct('last_name', 'id')
def title_des... | 26.48 | 77 | 0.628399 | 68 | 662 | 5.867647 | 0.485294 | 0.100251 | 0.100251 | 0.157895 | 0.368421 | 0.310777 | 0.310777 | 0.310777 | 0.310777 | 0.310777 | 0 | 0.001976 | 0.23565 | 662 | 24 | 78 | 27.583333 | 0.786561 | 0.031722 | 0 | 0.333333 | 0 | 0 | 0.137715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.2 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3756077a0815381bc6f67f2de043c77cd7601ec1 | 727 | py | Python | examples/forms/boostrap.py | mulonemartin/kaira | 7c5262d76dbe7fbe370dd36c545db427e4ab0f92 | [
"MIT"
] | 3 | 2017-07-03T19:36:34.000Z | 2017-07-10T19:43:25.000Z | examples/forms/boostrap.py | mulonemartin/kaira | 7c5262d76dbe7fbe370dd36c545db427e4ab0f92 | [
"MIT"
] | null | null | null | examples/forms/boostrap.py | mulonemartin/kaira | 7c5262d76dbe7fbe370dd36c545db427e4ab0f92 | [
"MIT"
] | null | null | null | from wtforms import StringField, validators
from kaira.app import App
from kaira.response import response
from kaira.wtf import KairaForm
app = App()
class SigninForm(KairaForm):
username = StringField('Username', [validators.Length(min=4, max=25)])
password = StringField('Password', [validators.Length(mi... | 21.382353 | 74 | 0.696011 | 95 | 727 | 5.210526 | 0.505263 | 0.054545 | 0.076768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0.149931 | 727 | 33 | 75 | 22.030303 | 0.778317 | 0 | 0 | 0 | 0 | 0 | 0.09216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.210526 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
375885cd70b02b80dbbfcac503b3b9bfebdadde4 | 271 | py | Python | harpoon/src/plugins/Error/Types.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | harpoon/src/plugins/Error/Types.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | harpoon/src/plugins/Error/Types.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
class NotCachedError(commands.CheckFailure):
pass
class PostParseError(commands.BadArgument):
def __init__(self, type, error):
super().__init__(None)
self.type = type
self.error = error | 18.066667 | 44 | 0.697417 | 30 | 271 | 6.033333 | 0.6 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217712 | 271 | 15 | 45 | 18.066667 | 0.853774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
37653bdaf6d0014b441106217415bdef602c42c5 | 1,541 | py | Python | notebooks/converted_notebooks/Frederick_ipts.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | notebooks/converted_notebooks/Frederick_ipts.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | notebooks/converted_notebooks/Frederick_ipts.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# + [markdown] run_control={"frozen": false, "read_onl... | 28.018182 | 134 | 0.709929 | 199 | 1,541 | 5.145729 | 0.346734 | 0.087891 | 0.140625 | 0.18457 | 0.351563 | 0.351563 | 0.351563 | 0.285156 | 0.09375 | 0 | 0 | 0.006024 | 0.138222 | 1,541 | 54 | 135 | 28.537037 | 0.76506 | 0.645685 | 0 | 0 | 0 | 0 | 0.052734 | 0.052734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
3765ff5c207bee6705885b96d4a72b57519ac10c | 1,570 | py | Python | app/models.py | khiranouchi/Okemowd2 | 4b7cd650b6835f3fe2b6428f32659f38b027536f | [
"MIT"
] | null | null | null | app/models.py | khiranouchi/Okemowd2 | 4b7cd650b6835f3fe2b6428f32659f38b027536f | [
"MIT"
] | null | null | null | app/models.py | khiranouchi/Okemowd2 | 4b7cd650b6835f3fe2b6428f32659f38b027536f | [
"MIT"
] | null | null | null | from django.db import models
class Genre(models.Model):
# id primary_key [made automatically]
name = models.CharField(max_length=16)
def __str__(self):
return self.name
class KeyLevel(models.Model):
# id primary_key [made automatically]
rank = models.IntegerField(unique=True)
name =... | 34.888889 | 103 | 0.691083 | 215 | 1,570 | 4.860465 | 0.297674 | 0.076555 | 0.086124 | 0.114833 | 0.438278 | 0.321531 | 0.321531 | 0.283254 | 0.283254 | 0.216268 | 0 | 0.015127 | 0.2 | 1,570 | 44 | 104 | 35.681818 | 0.816879 | 0.118471 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0.129032 | 0.903226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
377286a7d2c55b7288de903dcd62a230d63fbb15 | 181 | py | Python | before/0124/11021.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | 3 | 2022-01-24T03:06:32.000Z | 2022-01-30T08:43:58.000Z | before/0124/11021.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | null | null | null | before/0124/11021.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | 2 | 2022-01-24T02:27:40.000Z | 2022-01-30T08:57:03.000Z | ans = []
n = int(input())
for i in range(n):
a, b = list(map(int, input().split()))
ans.append(a + b)
for i in range(len(ans)):
print("Case #{}: {}".format(i+1, ans[i])) | 22.625 | 45 | 0.524862 | 33 | 181 | 2.878788 | 0.575758 | 0.168421 | 0.126316 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.20442 | 181 | 8 | 45 | 22.625 | 0.652778 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
3778ca48553a3904120076cb816da48cb45f8ab1 | 262 | py | Python | sp_api/auth/credentials.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | 213 | 2020-12-20T09:43:47.000Z | 2022-03-30T10:00:41.000Z | sp_api/auth/credentials.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | 173 | 2021-01-02T10:24:27.000Z | 2022-03-31T08:27:48.000Z | sp_api/auth/credentials.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | 109 | 2021-01-06T03:16:47.000Z | 2022-03-24T11:41:29.000Z | import os
class Credentials:
def __init__(self, refresh_token, credentials):
self.client_id = credentials.lwa_app_id
self.client_secret = credentials.lwa_client_secret
self.refresh_token = refresh_token or credentials.refresh_token
| 29.111111 | 71 | 0.755725 | 33 | 262 | 5.575758 | 0.454545 | 0.26087 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187023 | 262 | 8 | 72 | 32.75 | 0.86385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
37a7a5ded634d533a547c9f860502b7a45ab5631 | 4,021 | py | Python | src/cania/utils/image.py | Cancer-Image-Analysis/cania-core | c2ef0659b333cbb32a07e1e02203f51bfa452864 | [
"MIT"
] | null | null | null | src/cania/utils/image.py | Cancer-Image-Analysis/cania-core | c2ef0659b333cbb32a07e1e02203f51bfa452864 | [
"MIT"
] | 1 | 2022-01-13T03:20:03.000Z | 2022-01-13T03:20:03.000Z | src/cania/utils/image.py | Cancer-Image-Analysis/cania-core | c2ef0659b333cbb32a07e1e02203f51bfa452864 | [
"MIT"
] | null | null | null | import tifffile
import cv2
import numpy as np
from cania.utils.vector import Vector
""" read images """
def read_rgb(filename):
return cv2.imread(filename, cv2.IMREAD_COLOR)
def read_gray(filename):
return cv2.imread(filename, cv2.IMREAD_GRAYSCALE)
def read_mirax(filename):
pass
def read_lsm(filen... | 24.369697 | 89 | 0.688386 | 581 | 4,021 | 4.604131 | 0.270224 | 0.029907 | 0.019439 | 0.025421 | 0.278879 | 0.22729 | 0.177944 | 0.113271 | 0.100187 | 0.100187 | 0 | 0.033841 | 0.184283 | 4,021 | 165 | 90 | 24.369697 | 0.781707 | 0.083313 | 0 | 0.114943 | 0 | 0 | 0.005645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252874 | false | 0.022989 | 0.045977 | 0.126437 | 0.494253 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
37ab0de11597ec6e4f99d70ed9e142081cb30c37 | 89 | py | Python | src/__init__.py | pipspec/pipspec | 1d602710ad857462125f416c4d3f3d907fe81522 | [
"MIT"
] | null | null | null | src/__init__.py | pipspec/pipspec | 1d602710ad857462125f416c4d3f3d907fe81522 | [
"MIT"
] | null | null | null | src/__init__.py | pipspec/pipspec | 1d602710ad857462125f416c4d3f3d907fe81522 | [
"MIT"
] | null | null | null | __author__ = 'Jeremy Bolding'
__email__ = 'cyberchefjay@gmail.com'
__version__ = '0.0.1'
| 22.25 | 36 | 0.741573 | 11 | 89 | 4.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.11236 | 89 | 3 | 37 | 29.666667 | 0.64557 | 0 | 0 | 0 | 0 | 0 | 0.460674 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
37b19cab8aec1017828661ad0214075b7dbcfb91 | 14,885 | py | Python | src/sensory_cloud/generated/oauth/oauth_pb2.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | 2 | 2022-01-11T21:49:33.000Z | 2022-02-15T23:53:41.000Z | src/sensory_cloud/generated/oauth/oauth_pb2.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | null | null | null | src/sensory_cloud/generated/oauth/oauth_pb2.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: oauth/oauth.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.pro... | 37.683544 | 1,565 | 0.766409 | 1,775 | 14,885 | 6.109296 | 0.136901 | 0.043158 | 0.063076 | 0.064736 | 0.588252 | 0.544541 | 0.463021 | 0.457857 | 0.451402 | 0.435909 | 0 | 0.038235 | 0.110917 | 14,885 | 394 | 1,566 | 37.779188 | 0.78117 | 0.042996 | 0 | 0.62 | 1 | 0.005714 | 0.236911 | 0.180336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017143 | 0 | 0.017143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37c0208e6750964b83493d48129e865f1a822c4f | 1,066 | py | Python | src/yael_arenarewards_dialogs.py | KnowsCount/money-and-honour | bd706ca9cdbd1f5c0786a9ecdeb40ca8046b9087 | [
"MIT"
] | 1 | 2021-01-17T06:21:36.000Z | 2021-01-17T06:21:36.000Z | src/yael_arenarewards_dialogs.py | KnowsCount/money-and-honour | bd706ca9cdbd1f5c0786a9ecdeb40ca8046b9087 | [
"MIT"
] | 2 | 2021-01-17T12:57:37.000Z | 2021-02-08T02:16:45.000Z | src/yael_arenarewards_dialogs.py | KnowsCount/money-and-honour | bd706ca9cdbd1f5c0786a9ecdeb40ca8046b9087 | [
"MIT"
] | null | null | null | # -*- coding: us-ascii -*-
#### HEADER
from header_common import *
from header_dialogs import *
from header_operations import *
from header_parties import *
from header_item_modifiers import *
from header_skills import *
from header_triggers import *
from ID_troops import *
from ID_party_templates import *
from modul... | 24.227273 | 107 | 0.654784 | 134 | 1,066 | 4.873134 | 0.529851 | 0.137825 | 0.147014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005063 | 0.258912 | 1,066 | 43 | 108 | 24.790698 | 0.821519 | 0.108818 | 0 | 0 | 0 | 0 | 0.11859 | 0.098291 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
37c0b5b261f15b38151a3f1ebe9a6f9f842149ed | 260 | py | Python | trunk/Documentacion/Memoria/trozos-codigo/codigo-9-tcp-test-tcp-id.py | MGautier/security-sensor | 7063b1f095cfa02bb56ef2544d0395dbf155310f | [
"MIT"
] | 2 | 2016-08-15T21:25:40.000Z | 2020-06-22T12:25:48.000Z | trunk/Documentacion/Memoria/trozos-codigo/codigo-9-tcp-test-tcp-id.py | MGautier/security-sensor | 7063b1f095cfa02bb56ef2544d0395dbf155310f | [
"MIT"
] | 4 | 2020-06-05T17:32:18.000Z | 2021-06-10T19:05:56.000Z | trunk/Documentacion/Memoria/trozos-codigo/codigo-9-tcp-test-tcp-id.py | MGautier/security-sensor | 7063b1f095cfa02bb56ef2544d0395dbf155310f | [
"MIT"
] | null | null | null | def test_tcp_id(self):
"""
Comprobacion de que el puerto (objeto heredado) coincide con el asociado al Protocolos
Returns:
"""
port = Ports.objects.get(Tag="ssh")
tcp = Tcp.objects.get(id=port)
self.assertEqual(tcp.get_id(), port)
| 26 | 90 | 0.661538 | 37 | 260 | 4.567568 | 0.675676 | 0.118343 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 260 | 9 | 91 | 28.888889 | 0.82439 | 0.365385 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37c75301ea54ed4a3c31ed79d5b82ac423294c31 | 3,902 | py | Python | pydzcvr/networkDiscovery/openstack/libvirt/discovery.py | cboling/pydzcvr | ecac703030d27d00a325fde49a363a6f83f9dd6f | [
"Artistic-2.0"
] | null | null | null | pydzcvr/networkDiscovery/openstack/libvirt/discovery.py | cboling/pydzcvr | ecac703030d27d00a325fde49a363a6f83f9dd6f | [
"Artistic-2.0"
] | null | null | null | pydzcvr/networkDiscovery/openstack/libvirt/discovery.py | cboling/pydzcvr | ecac703030d27d00a325fde49a363a6f83f9dd6f | [
"Artistic-2.0"
] | 1 | 2018-03-21T23:14:45.000Z | 2018-03-21T23:14:45.000Z | '''
@author: Chip Boling
@copyright: 2015 Boling Consulting Solutions. All rights reserved.
@license: Artistic License 2.0, http://opensource.org/licenses/Artistic-2.0
@contact: support@bcsw.net
@deffield updated: Updated
Libvirt allows you to access hypervisors running on remote machines through authentic... | 33.067797 | 125 | 0.574833 | 428 | 3,902 | 5.235981 | 0.542056 | 0.01071 | 0.016064 | 0.021419 | 0.124498 | 0.124498 | 0.124498 | 0.124498 | 0.109772 | 0.109772 | 0 | 0.028496 | 0.316504 | 3,902 | 118 | 126 | 33.067797 | 0.811774 | 0.262173 | 0 | 0.424242 | 0 | 0 | 0.147262 | 0.052863 | 0 | 0 | 0 | 0.025424 | 0 | 0 | null | null | 0.030303 | 0.090909 | null | null | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37cb416e6c4d638fa1d0ecd3fef97aefdb4d9ff1 | 875 | py | Python | python_examples/__init__.py | gdahlm/python_examples | 09e46c93e0911b9b3bab0962855dbe2ba66ce689 | [
"MIT"
] | null | null | null | python_examples/__init__.py | gdahlm/python_examples | 09e46c93e0911b9b3bab0962855dbe2ba66ce689 | [
"MIT"
] | null | null | null | python_examples/__init__.py | gdahlm/python_examples | 09e46c93e0911b9b3bab0962855dbe2ba66ce689 | [
"MIT"
] | null | null | null | """
python_examples
===============
Provides coding examples covering the following topics:
1. Array Sequences
2. Stacks, Queues, Deques
3. Linked Lists
4. Recursion
5. Trees
6. Searching and Sorting
7. Graph Algorithms
Documentation
-------------
Code examples are indicated by three gre... | 17.5 | 61 | 0.652571 | 99 | 875 | 5.434343 | 0.747475 | 0.04461 | 0.070632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014472 | 0.210286 | 875 | 49 | 62 | 17.857143 | 0.76411 | 0.797714 | 0 | 0 | 0 | 0 | 0.053254 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
80644f165249400b0dc627ad45f344a2a490aa61 | 3,333 | py | Python | ooobuild/csslo/security/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/security/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/security/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 69.4375 | 127 | 0.852385 | 391 | 3,333 | 7.143223 | 0.352941 | 0.066595 | 0.155388 | 0.048335 | 0.067311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00296 | 0.087609 | 3,333 | 47 | 128 | 70.914894 | 0.915488 | 0.172817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.032258 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
808ba4247f3d2699a858e688cdffacb588a3b98a | 741 | py | Python | mysite/blog/models.py | janusnic/dj-blog | 8f302453081adf51ab5e39da68300b641883ac1c | [
"MIT"
] | null | null | null | mysite/blog/models.py | janusnic/dj-blog | 8f302453081adf51ab5e39da68300b641883ac1c | [
"MIT"
] | null | null | null | mysite/blog/models.py | janusnic/dj-blog | 8f302453081adf51ab5e39da68300b641883ac1c | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Category( models.Model ):
name = models.CharField( max_length= 50, unique= True )
slug = models.SlugField( max_length= 50, unique= True )
def __str__(self):
return self.name
class Pos... | 27.444444 | 62 | 0.68691 | 90 | 741 | 5.5 | 0.466667 | 0.072727 | 0.072727 | 0.09697 | 0.260606 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017182 | 0.214575 | 741 | 26 | 63 | 28.5 | 0.833333 | 0 | 0 | 0.105263 | 0 | 0 | 0.014845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.105263 | 0.947368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
809365a6e6ccfe7d224ade45f62bde6d73abbed8 | 1,362 | py | Python | Tests/image_tests/renderpasses/graphs/ForwardRendering.py | wsqjny/Falcor | 9ebbb0a0426304a542a6ec314c9470e0c043093f | [
"BSD-3-Clause"
] | 1,615 | 2017-07-28T05:41:39.000Z | 2022-03-31T16:31:57.000Z | Tests/image_tests/renderpasses/graphs/ForwardRendering.py | shill-lucasfilm/Falcor | 5236495554f57a734cc815522d95ae9a7dfe458a | [
"BSD-3-Clause"
] | 232 | 2017-08-03T10:58:41.000Z | 2022-03-31T16:17:46.000Z | Tests/image_tests/renderpasses/graphs/ForwardRendering.py | shill-lucasfilm/Falcor | 5236495554f57a734cc815522d95ae9a7dfe458a | [
"BSD-3-Clause"
] | 383 | 2017-07-30T04:28:34.000Z | 2022-03-30T05:12:13.000Z | from falcor import *
def render_graph_ForwardRendering():
loadRenderPassLibrary("DepthPass.dll")
loadRenderPassLibrary("ForwardLightingPass.dll")
loadRenderPassLibrary("BlitPass.dll")
testForwardRendering = RenderGraph("ForwardRenderer")
DepthPass = createPass("DepthPass", {'depthFormat': ResourceF... | 50.444444 | 109 | 0.787078 | 102 | 1,362 | 10.470588 | 0.421569 | 0.101124 | 0.050562 | 0.076779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.101322 | 1,362 | 26 | 110 | 52.384615 | 0.870098 | 0 | 0 | 0 | 0 | 0 | 0.277533 | 0.093979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.708333 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
80a82a5bab8a6da91000e1709e8d00c0c2995780 | 206 | py | Python | Competitve/Python/New Students.py | EdwaRen/Competitve-Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | 1 | 2021-05-03T21:48:25.000Z | 2021-05-03T21:48:25.000Z | Competitve/Python/New Students.py | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | Competitve/Python/New Students.py | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | n = int(input())
sumI = 0
for i in range(n):
sumI = sumI + int(input())
o = int(input())
for i in range(o):
sumI = sumI + int(input())
print('{:.3f}'.format((round(sumI*1000/(n+i+1)))/1000))
| 17.166667 | 59 | 0.543689 | 36 | 206 | 3.111111 | 0.444444 | 0.285714 | 0.107143 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067485 | 0.208738 | 206 | 11 | 60 | 18.727273 | 0.619632 | 0 | 0 | 0.25 | 0 | 0 | 0.029268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 1 | 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 | 2 |
80a9012e2fec64cc7efdac1a10a3878ae71328e9 | 319 | py | Python | desafios/d018.py | moises-moreira/PYTHON | c6bdd930c2525de5ac9a214f79322444618f6073 | [
"MIT"
] | null | null | null | desafios/d018.py | moises-moreira/PYTHON | c6bdd930c2525de5ac9a214f79322444618f6073 | [
"MIT"
] | null | null | null | desafios/d018.py | moises-moreira/PYTHON | c6bdd930c2525de5ac9a214f79322444618f6073 | [
"MIT"
] | null | null | null | nome = str(input('Digite seu nome: ')).strip()
print('Seu nome em letras maiúsculas: {}'.format(nome.upper()))
print('Seu nome em letras minúsculas: {}'.format(nome.lower()))
print('Seu nome sem espaços: {}'.format(len(nome.replace(' ', ''))))
print('Seu primeiro nome tem: {} caracteres'.format(len(nome.split()[0])))
| 53.166667 | 74 | 0.670846 | 45 | 319 | 4.755556 | 0.511111 | 0.130841 | 0.168224 | 0.130841 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.097179 | 319 | 5 | 75 | 63.8 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0.451411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 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 | 1 | 0 | 2 |
80c7ec4f91161a221d10af2af7ee4cbff04b8b44 | 153 | py | Python | loops/test_break_stmt.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | 1 | 2019-09-09T12:58:36.000Z | 2019-09-09T12:58:36.000Z | loops/test_break_stmt.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | loops/test_break_stmt.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | # When user enters 'exit', exit program
while (True):
inp = raw_input('> ')
if inp.lower() == 'exit':
break
else:
print(inp)
| 19.125 | 39 | 0.529412 | 19 | 153 | 4.210526 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313725 | 153 | 7 | 40 | 21.857143 | 0.761905 | 0.24183 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 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 | 2 |
80d9052319f30b6e8eb05bcb1028f6311ec81db1 | 504 | py | Python | tests/r/test_engel.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_engel.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_engel.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.engel import engel
def test_engel():
"""Test module engel.py by downloading
engel.csv and testing shape of
extracted data has 235 rows and... | 21 | 44 | 0.748016 | 72 | 504 | 4.958333 | 0.569444 | 0.084034 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019465 | 0.184524 | 504 | 23 | 45 | 21.913043 | 0.849148 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
80f1114bbe1ed7debcdc91411e4ba7161a192cf1 | 6,506 | py | Python | back-end/app/models.py | guguji123/blog | 44020672f60b5d113a42e7c7e89ed1ce990a516b | [
"MIT"
] | null | null | null | back-end/app/models.py | guguji123/blog | 44020672f60b5d113a42e7c7e89ed1ce990a516b | [
"MIT"
] | 7 | 2020-12-04T21:17:44.000Z | 2022-03-12T00:43:16.000Z | back-end/app/models.py | guguji123/A-blog-build-by-flask-vue.js | 44020672f60b5d113a42e7c7e89ed1ce990a516b | [
"MIT"
] | null | null | null | from app.extensions import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask import url_for, current_app
# import base64
from datetime import datetime, timedelta
import jwt
import hashlib
class PaginatedAPIMixin(object):
@staticmethod
def to_collection_dict(query, page, p... | 34.791444 | 118 | 0.592069 | 779 | 6,506 | 4.79846 | 0.259307 | 0.038523 | 0.048154 | 0.034243 | 0.203852 | 0.141252 | 0.101124 | 0.068486 | 0.050829 | 0.030498 | 0 | 0.012556 | 0.277744 | 6,506 | 187 | 119 | 34.791444 | 0.78272 | 0.0498 | 0 | 0.184615 | 1 | 0 | 0.092668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0.061538 | 0.046154 | 0.023077 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
80f15e9d8fa08cca18f5eda82ce3c14dee802d84 | 69 | py | Python | cid/__init__.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | cid/__init__.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | cid/__init__.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.2.2'
default_app_config = 'cid.apps.CidAppConfig'
| 13.8 | 44 | 0.73913 | 10 | 69 | 4.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.115942 | 69 | 4 | 45 | 17.25 | 0.688525 | 0 | 0 | 0 | 0 | 0 | 0.376812 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
80f9289d61a79888ccb218365110c71d20f315d5 | 16,739 | py | Python | pysnmp-with-texts/HH3C-IDS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HH3C-IDS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HH3C-IDS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-IDS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-IDS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:27:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 154.990741 | 1,610 | 0.801541 | 1,834 | 16,739 | 7.314613 | 0.157579 | 0.051882 | 0.090794 | 0.00984 | 0.488632 | 0.367872 | 0.33388 | 0.230563 | 0.180022 | 0.171077 | 0 | 0.06432 | 0.085131 | 16,739 | 107 | 1,611 | 156.439252 | 0.811676 | 0.018998 | 0 | 0 | 0 | 0.15 | 0.364794 | 0.060444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
80f95873e27545120a8fd7d19a2f1ff4be5226a8 | 1,050 | py | Python | middleman/exceptions.py | lucasrafaldini/proxy | f0bf0128f56e79eec9fd0454b51a030a757f2e9d | [
"MIT"
] | 2 | 2021-08-17T14:55:31.000Z | 2021-09-21T17:51:08.000Z | middleman/exceptions.py | lucasrafaldini/proxy | f0bf0128f56e79eec9fd0454b51a030a757f2e9d | [
"MIT"
] | null | null | null | middleman/exceptions.py | lucasrafaldini/proxy | f0bf0128f56e79eec9fd0454b51a030a757f2e9d | [
"MIT"
] | 1 | 2021-08-17T14:55:34.000Z | 2021-08-17T14:55:34.000Z | class ServerNotRespondingException(BaseException):
"""
Exception raised when the requested server is not responding.
"""
def __init__(self, url):
self.url = url
def __str__(self):
return "Url '%s' is not responding." % self.url
class ExceededRequestsLimitException(BaseException):... | 24.418605 | 87 | 0.611429 | 120 | 1,050 | 5.15 | 0.325 | 0.048544 | 0.135922 | 0.15534 | 0.31877 | 0.084142 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0.289524 | 1,050 | 42 | 88 | 25 | 0.828418 | 0.181905 | 0 | 0.318182 | 0 | 0 | 0.185414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.136364 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0380de118727ea66006a2d64efc845b4492aadca | 190 | py | Python | ConversortemperaturaFahrenheit .py | Reloure/curso_basico_python | f7b7ffa829257b067729610f5b9f57e96e897b24 | [
"MIT"
] | null | null | null | ConversortemperaturaFahrenheit .py | Reloure/curso_basico_python | f7b7ffa829257b067729610f5b9f57e96e897b24 | [
"MIT"
] | null | null | null | ConversortemperaturaFahrenheit .py | Reloure/curso_basico_python | f7b7ffa829257b067729610f5b9f57e96e897b24 | [
"MIT"
] | null | null | null | temperaturaFahrenheit = input("Digite uma temperatura em Fahrenheit: ")
temperaturaCelsius = (float(temperaturaFahrenheit) -32) * 5/9
print("A temperatura em celsius é",temperaturaCelsius) | 38 | 71 | 0.794737 | 20 | 190 | 7.55 | 0.8 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.105263 | 190 | 5 | 72 | 38 | 0.864706 | 0 | 0 | 0 | 0 | 0 | 0.335079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
0386bdf279854f4789b11fd8652063492a3cefa5 | 1,273 | py | Python | botbot_plugins/decorators.py | metabrainz/brainzbot-plugins | 28b253fd65ea10c84e1f841cc3d2576af263be87 | [
"BSD-3-Clause"
] | 4 | 2018-01-01T02:46:55.000Z | 2018-02-15T09:07:51.000Z | botbot_plugins/decorators.py | metabrainz/brainzbot-plugins | 28b253fd65ea10c84e1f841cc3d2576af263be87 | [
"BSD-3-Clause"
] | 2 | 2018-01-14T02:43:40.000Z | 2018-01-21T13:13:32.000Z | botbot_plugins/decorators.py | metabrainz/brainzbot-plugins | 28b253fd65ea10c84e1f841cc3d2576af263be87 | [
"BSD-3-Clause"
] | 2 | 2018-01-01T02:47:01.000Z | 2018-01-06T06:58:24.000Z | def listens_to_mentions(regex):
"""
Decorator to add function and rule to routing table
Returns Line that triggered the function.
"""
def decorator(func):
func.route_rule = ('mentions', regex)
return func
return decorator
def listens_to_all(regex):
"""
Decorator to add... | 23.574074 | 80 | 0.667714 | 164 | 1,273 | 5.097561 | 0.317073 | 0.047847 | 0.057416 | 0.114833 | 0.697368 | 0.661483 | 0.508373 | 0.368421 | 0.267943 | 0.267943 | 0 | 0 | 0.2663 | 1,273 | 53 | 81 | 24.018868 | 0.895075 | 0.443048 | 0 | 0.6 | 0 | 0 | 0.061688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
03a1913b9b6723dba59921629935e74d22cf39d0 | 759 | py | Python | secao4_TiposVariaveis/TipoBooleano.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | secao4_TiposVariaveis/TipoBooleano.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | secao4_TiposVariaveis/TipoBooleano.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | """
São duas constantes, VERDADEIRO ou FALSO
TRUE: Verdadeiro
FALSE: Falso
OBS.: Sempre começa com Maiuscula
OPERAÇÕES BASICAS
#NEGAÇÃO (not): Sé verdadeiro é falso e se falso é verdadeiro. SEMPRE AO CONTRARIO
Ex.: usr=True
print(not usr) -> False
#(or): Operação binária... | 25.3 | 87 | 0.591568 | 96 | 759 | 4.677083 | 0.416667 | 0.089087 | 0.08686 | 0.106904 | 0.267261 | 0.155902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337286 | 759 | 30 | 88 | 25.3 | 0.892644 | 0.98419 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03ce9fdfd52d15e5aea6e5aa98fd1a71cd30f954 | 501 | py | Python | proxystore/test/test_utils.py | gpauloski/ProxyStore | 94946268a40132b03a17bae55766af59e442f8d4 | [
"Apache-2.0"
] | 2 | 2021-12-19T03:07:28.000Z | 2022-01-27T16:42:32.000Z | proxystore/test/test_utils.py | gpauloski/ProxyStore | 94946268a40132b03a17bae55766af59e442f8d4 | [
"Apache-2.0"
] | 29 | 2021-04-23T20:33:03.000Z | 2022-02-25T22:45:10.000Z | proxystore/test/test_utils.py | gpauloski/ProxyStore | 94946268a40132b03a17bae55766af59e442f8d4 | [
"Apache-2.0"
] | null | null | null | """Utils Unit Tests"""
from proxystore import utils
from proxystore.factory import SimpleFactory
def test_create_key() -> None:
"""Test create_key()"""
assert isinstance(utils.create_key(42), str)
def test_fullname() -> None:
"""Test fullname()"""
assert utils.fullname(SimpleFactory) == 'proxystore.... | 26.368421 | 78 | 0.680639 | 53 | 501 | 6.339623 | 0.358491 | 0.151786 | 0.169643 | 0.190476 | 0.291667 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0.004843 | 0.175649 | 501 | 18 | 79 | 27.833333 | 0.808717 | 0.0998 | 0 | 0 | 0 | 0 | 0.181609 | 0.147126 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | true | 0 | 0.181818 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03d53b41adc215f987a4743ba5c831a015fee62d | 7,055 | py | Python | run_fetcher.py | pogestudio/coinmarketcap-to-mongodb | 54aefdd97591569144bc9aad55575b71741af867 | [
"MIT"
] | null | null | null | run_fetcher.py | pogestudio/coinmarketcap-to-mongodb | 54aefdd97591569144bc9aad55575b71741af867 | [
"MIT"
] | null | null | null | run_fetcher.py | pogestudio/coinmarketcap-to-mongodb | 54aefdd97591569144bc9aad55575b71741af867 | [
"MIT"
] | null | null | null | # coding: utf-8
from lxml import html
import requests
import pandas as pd
import config
# DATABASE THINGS
# this one is used by the database
import pymongo as pm
# connect to the database choosing the correct collection
mongo_db_url = config.mongo_db_url
mongo_client = pm.MongoClient(mongo_db_url)
db = mongo_client[... | 66.556604 | 196 | 0.662084 | 709 | 7,055 | 6.488011 | 0.619182 | 0.007826 | 0.006087 | 0.010435 | 0.052609 | 0.052609 | 0.052609 | 0.052609 | 0.046739 | 0.046739 | 0 | 0.383261 | 0.154926 | 7,055 | 106 | 197 | 66.556604 | 0.388293 | 0.066478 | 0 | 0.024691 | 0 | 0 | 0.41223 | 0.028902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.061728 | 0 | 0.185185 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03d90ce86024d1468371ada5ba7dd425783747da | 2,644 | py | Python | patterns/behavioral/iterator.py | smartlegionlab/python-patterns | be898272e4358fa2e60ed9f61ce5ed10aa367e77 | [
"BSD-3-Clause"
] | 2 | 2021-11-17T21:35:49.000Z | 2022-02-09T16:47:20.000Z | patterns/behavioral/iterator.py | smartlegionlab/python-patterns | be898272e4358fa2e60ed9f61ce5ed10aa367e77 | [
"BSD-3-Clause"
] | null | null | null | patterns/behavioral/iterator.py | smartlegionlab/python-patterns | be898272e4358fa2e60ed9f61ce5ed10aa367e77 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# --------------------------------------------------------
# Licensed under the terms of the BSD 3-Clause License
# (see LICENSE for details).
# Copyright © 2018-2021, A.A Suvorov
# All rights reserved.
# --------------------------------------------------------
class IteratorBase:
"""Base ... | 27.257732 | 88 | 0.572995 | 312 | 2,644 | 4.717949 | 0.272436 | 0.074728 | 0.110054 | 0.064538 | 0.435462 | 0.300272 | 0.300272 | 0.206522 | 0.206522 | 0.206522 | 0 | 0.010886 | 0.270424 | 2,644 | 96 | 89 | 27.541667 | 0.751685 | 0.336611 | 0 | 0.5625 | 0 | 0 | 0.029842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.0625 | 0.520833 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
03de6bd168c8d56321681e603113166bdb3a1778 | 1,779 | py | Python | tests/test_bvi_utils_paths.py | brainvisa/brainvisa-installer | 0d77fb93d9c0c4cee85110085458d418e8c65070 | [
"CECILL-B"
] | null | null | null | tests/test_bvi_utils_paths.py | brainvisa/brainvisa-installer | 0d77fb93d9c0c4cee85110085458d418e8c65070 | [
"CECILL-B"
] | 2 | 2018-10-31T14:28:59.000Z | 2021-03-23T11:19:02.000Z | tests/test_bvi_utils_paths.py | brainvisa/brainvisa-installer | 0d77fb93d9c0c4cee85110085458d418e8c65070 | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import pytest
import os
from os.path import relpath
from brainvisa.installer.bvi_utils.paths import Paths
FULLPATH = os.path.dirname(os.path.abspath(__file__))
ROOTPATH = "/" + relpath(FULLPATH + "/../.", "/")
def test_bvi_utils_Pa... | 34.211538 | 83 | 0.726251 | 225 | 1,779 | 5.48 | 0.204444 | 0.205191 | 0.094891 | 0.12571 | 0.514193 | 0.392539 | 0.312247 | 0.312247 | 0.312247 | 0.312247 | 0 | 0.001989 | 0.152333 | 1,779 | 51 | 84 | 34.882353 | 0.81565 | 0.023609 | 0 | 0.282051 | 0 | 0 | 0.202882 | 0.099135 | 0 | 0 | 0 | 0 | 0.589744 | 1 | 0.102564 | false | 0 | 0.128205 | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff10aa3fe47dbfaa19037663c94e260b70557b2b | 372 | py | Python | src/extension/snapshot.py | ytsmiling/lmt | 31e36e54d858fbc0a1f2eab12d5a86a97284339f | [
"MIT"
] | 32 | 2018-02-13T10:41:09.000Z | 2021-07-07T16:07:40.000Z | src/extension/snapshot.py | ytsmiling/lmt | 31e36e54d858fbc0a1f2eab12d5a86a97284339f | [
"MIT"
] | 4 | 2018-02-16T14:15:04.000Z | 2019-12-14T10:39:06.000Z | src/extension/snapshot.py | ytsmiling/lmt | 31e36e54d858fbc0a1f2eab12d5a86a97284339f | [
"MIT"
] | 6 | 2018-03-22T20:49:39.000Z | 2022-01-08T23:47:17.000Z | import os
import chainer
from chainer.training import extension
class Snapshot(extension.Extension):
"""Trainer extension that save network parameters to 'snapshot.npz'.
"""
def __call__(self, trainer):
filename = os.path.join(trainer.out, 'snapshot.npz')
chainer.serializers.save_npz(file... | 28.615385 | 92 | 0.731183 | 45 | 372 | 5.911111 | 0.622222 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158602 | 372 | 12 | 93 | 31 | 0.84984 | 0.174731 | 0 | 0 | 0 | 0 | 0.054237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ff14dcb90c0ae4eab2550a195864db0cb625b7a9 | 970 | py | Python | libretto/migrations/0042_auto_20190830_2210.py | adrienlachaize/dezede | 584ec30cedab95152e2f95595b7691a04e6736e2 | [
"BSD-3-Clause"
] | 15 | 2015-02-10T21:16:31.000Z | 2021-03-25T16:46:20.000Z | libretto/migrations/0042_auto_20190830_2210.py | adrienlachaize/dezede | 584ec30cedab95152e2f95595b7691a04e6736e2 | [
"BSD-3-Clause"
] | 4 | 2021-02-10T15:42:08.000Z | 2022-03-11T23:20:38.000Z | libretto/migrations/0042_auto_20190830_2210.py | adrienlachaize/dezede | 584ec30cedab95152e2f95595b7691a04e6736e2 | [
"BSD-3-Clause"
] | 6 | 2016-07-10T14:20:48.000Z | 2022-01-19T18:34:02.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-30 20:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('libretto', '0041_migrate_files'),
]
operations = [
migrations.RemoveField(
... | 27.714286 | 223 | 0.563918 | 88 | 970 | 6.034091 | 0.659091 | 0.082863 | 0.146893 | 0.169492 | 0.231638 | 0.231638 | 0 | 0 | 0 | 0 | 0 | 0.03207 | 0.292784 | 970 | 34 | 224 | 28.529412 | 0.741983 | 0.071134 | 0 | 0.481481 | 1 | 0 | 0.241648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff1b8eccee515e457f298b98ca019f1d3e383a20 | 765 | py | Python | utils/visualization_utils.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | 1 | 2021-04-23T10:00:49.000Z | 2021-04-23T10:00:49.000Z | utils/visualization_utils.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | utils/visualization_utils.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.cm as cm
import matplotlib.pylab as plt
def generate_colors(count):
cm = plt.get_cmap('gist_rainbow')
return np.array([cm(1. * i / count) for i in range(count)]).astype(float)
def get_q_color(id, ant_num):
from PyQt4 import QtGui
r, g, b = get_color(id, ant_num)
... | 26.37931 | 90 | 0.670588 | 136 | 765 | 3.617647 | 0.382353 | 0.04878 | 0.02439 | 0.079268 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05314 | 0.188235 | 765 | 29 | 91 | 26.37931 | 0.73913 | 0 | 0 | 0 | 1 | 0 | 0.015666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.210526 | 0.052632 | 0.789474 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff1d3df2d7a25dfd8e21b755b2bd45c368a065f6 | 1,425 | py | Python | test/unsupported/03/BibtexObjectTest03.py | wleoncio/cff-converter-python | bb9d1040a58e0a66a413c65663c95f6448032e95 | [
"Apache-2.0"
] | 1 | 2020-06-24T12:09:20.000Z | 2020-06-24T12:09:20.000Z | test/unsupported/03/BibtexObjectTest03.py | wleoncio/cff-converter-python | bb9d1040a58e0a66a413c65663c95f6448032e95 | [
"Apache-2.0"
] | null | null | null | test/unsupported/03/BibtexObjectTest03.py | wleoncio/cff-converter-python | bb9d1040a58e0a66a413c65663c95f6448032e95 | [
"Apache-2.0"
] | null | null | null | from cffconvert import BibtexObject
import unittest
import os
import ruamel.yaml as yaml
from test.contracts.BibtexObject import Contract
class BibtexObjectTest(Contract, unittest.TestCase):
def setUp(self):
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff")
with open(fixture, "r")... | 29.081633 | 100 | 0.652632 | 196 | 1,425 | 4.642857 | 0.321429 | 0.061538 | 0.084615 | 0.1 | 0.430769 | 0.430769 | 0.430769 | 0.430769 | 0.430769 | 0.430769 | 0 | 0 | 0.275088 | 1,425 | 48 | 101 | 29.6875 | 0.880929 | 0.259649 | 0 | 0.233333 | 0 | 0 | 0.057307 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.3 | false | 0.233333 | 0.166667 | 0 | 0.5 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
206b8a998dd4119d1acb22df4bc9d873963e94d3 | 932 | py | Python | main.py | AbijahKaj/DONT | bd184da45306f6ae487cddf6faef39e348f92abb | [
"MIT"
] | 20 | 2020-03-10T23:08:17.000Z | 2020-07-12T13:24:07.000Z | main.py | mi2rl/DNTYF | f4f482a2cb275614e4cdab92f848b89a4a97e1a7 | [
"MIT"
] | 5 | 2020-03-10T22:48:41.000Z | 2022-03-12T00:18:31.000Z | main.py | mi2rl/DNTYF | f4f482a2cb275614e4cdab92f848b89a4a97e1a7 | [
"MIT"
] | 3 | 2020-03-19T01:34:38.000Z | 2022-03-04T13:41:25.000Z |
'''
##### DO Not Touch your face ver.0.2
### Medical Imaging & Intelligent Reality Lab (MI2RL) @ Asan Medical Center(AMC)
# MI2RL website : https://www.mi2rl.co/
# AMC : http://www.amc.seoul.kr/asan/main.do
### Developer
# Sungman Cho : dev.sungman@gmail.com
# Minjee Kim : minjeekim00@gmail.com
# Taehyung Kim : kim... | 20.26087 | 80 | 0.712446 | 123 | 932 | 5.300813 | 0.601626 | 0.06135 | 0.046012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.162017 | 932 | 45 | 81 | 20.711111 | 0.806658 | 0.659871 | 0 | 0 | 0 | 0 | 0.026059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
207aa7e94cf4e96e15b7aed110f3abf14a8aeb9a | 7,286 | py | Python | gesture_recognition/models.py | JoshBClemons/gesture_recognition | d1ddc6d086bf93b36a430fbcae0af14b9c584e92 | [
"MIT"
] | null | null | null | gesture_recognition/models.py | JoshBClemons/gesture_recognition | d1ddc6d086bf93b36a430fbcae0af14b9c584e92 | [
"MIT"
] | null | null | null | gesture_recognition/models.py | JoshBClemons/gesture_recognition | d1ddc6d086bf93b36a430fbcae0af14b9c584e92 | [
"MIT"
] | null | null | null | import pdb
import binascii
import os
from flask import g
from werkzeug.security import generate_password_hash, check_password_hash
from . import db
from .utils import timestamp
class User(db.Model):
"""The User model
Attributes:
__tablename__ (str): Table name for user model in database
id (S... | 36.248756 | 108 | 0.640132 | 899 | 7,286 | 5.101224 | 0.226919 | 0.075229 | 0.100741 | 0.052333 | 0.331007 | 0.259485 | 0.195595 | 0.14348 | 0.112516 | 0.10423 | 0 | 0.003009 | 0.270107 | 7,286 | 201 | 109 | 36.248756 | 0.859346 | 0.450865 | 0 | 0.127907 | 1 | 0 | 0.040954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0.116279 | 0.081395 | 0 | 0.604651 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
208000e574d6b86ea2918d4cc705442d1f8bf2f0 | 3,751 | py | Python | options/train_options.py | lichnost/head2head | b0ec8b6965c9a32f3727dee9c164a7aaff027c5f | [
"MIT"
] | null | null | null | options/train_options.py | lichnost/head2head | b0ec8b6965c9a32f3727dee9c164a7aaff027c5f | [
"MIT"
] | null | null | null | options/train_options.py | lichnost/head2head | b0ec8b6965c9a32f3727dee9c164a7aaff027c5f | [
"MIT"
] | null | null | null | from .base_options import BaseOptions
class TrainOptions(BaseOptions):
def initialize(self):
BaseOptions.initialize(self)
self.parser.add_argument('--display_freq', type=int, default=1, help='frequency of showing training results on screen')
self.parser.add_argument('--print_freq', type=in... | 101.378378 | 157 | 0.717142 | 551 | 3,751 | 4.753176 | 0.266788 | 0.110729 | 0.143948 | 0.232532 | 0.498282 | 0.365407 | 0.226422 | 0.185185 | 0.102329 | 0.102329 | 0 | 0.012508 | 0.147427 | 3,751 | 36 | 158 | 104.194444 | 0.806442 | 0 | 0 | 0 | 0 | 0 | 0.443615 | 0.016262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.088235 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20814d044e70f545eb871d8ea832422a04686eab | 3,539 | py | Python | greaze/forms.py | Cian747/awaards | 2e1c6c426e75c0fcc946c636ea4bc31d85b1dbd9 | [
"MIT"
] | null | null | null | greaze/forms.py | Cian747/awaards | 2e1c6c426e75c0fcc946c636ea4bc31d85b1dbd9 | [
"MIT"
] | null | null | null | greaze/forms.py | Cian747/awaards | 2e1c6c426e75c0fcc946c636ea4bc31d85b1dbd9 | [
"MIT"
] | null | null | null | from django import forms
from .models import Project,Rate,Profile,DESIGN_CHOICES,USABILITY_CHOICES,CONTENT_CHOICES
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class GreazeRegistrationForm(UserCreationForm):
class Meta:
model = User
fields = ['f... | 49.152778 | 140 | 0.627861 | 357 | 3,539 | 6.190476 | 0.201681 | 0.085973 | 0.120362 | 0.180543 | 0.571041 | 0.553394 | 0.470588 | 0.409955 | 0.363801 | 0.271041 | 0 | 0.001386 | 0.184233 | 3,539 | 71 | 141 | 49.84507 | 0.764115 | 0.085052 | 0 | 0.372549 | 0 | 0 | 0.322092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.078431 | 0 | 0.372549 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
208e58fbdbf134543b65536fffe5ff75bdf7b54f | 452 | py | Python | videoToAudio.py | anthonyattard/video-to-audio | 52abee758970cbfcf6cedfb7764a17c249fe02be | [
"MIT"
] | 2 | 2017-09-25T21:58:47.000Z | 2017-10-03T09:09:03.000Z | videoToAudio.py | anthonyattard/video-to-audio | 52abee758970cbfcf6cedfb7764a17c249fe02be | [
"MIT"
] | null | null | null | videoToAudio.py | anthonyattard/video-to-audio | 52abee758970cbfcf6cedfb7764a17c249fe02be | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import subprocess
sourceDir = "/Video/File/Directory"
#Choose the file formats below. See https://ffmpeg.org/ffmpeg.html for supported file types.
videoFormat = ".mp4"
audioFormat = ".mp3"
for file in os.listdir(sourceDir):
name = file[:file.rfind(".")]
subprocess.call(["f... | 30.133333 | 155 | 0.692478 | 57 | 452 | 5.491228 | 0.578947 | 0.207668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012469 | 0.112832 | 452 | 15 | 155 | 30.133333 | 0.76808 | 0 | 0 | 0 | 0 | 0 | 0.147493 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2090635531c5b9350a1845a2a8f93234185ae3b6 | 1,553 | py | Python | app/comm/psql_wrapper.py | viaacode/teamleader2db | 9a96e56d9bf132bcb5498b2f1bde5578387a7664 | [
"MIT"
] | null | null | null | app/comm/psql_wrapper.py | viaacode/teamleader2db | 9a96e56d9bf132bcb5498b2f1bde5578387a7664 | [
"MIT"
] | 1 | 2021-06-07T13:15:28.000Z | 2021-10-02T08:08:45.000Z | app/comm/psql_wrapper.py | viaacode/teamleader2db | 9a96e56d9bf132bcb5498b2f1bde5578387a7664 | [
"MIT"
] | 1 | 2021-06-02T11:40:36.000Z | 2021-06-02T11:40:36.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# @Author: Walter Schreppers
#
# app/comm/psql_wrapper.py
#
# PostgresqlWrapper that wraps postgres connection
# and also allows for our unit and integration tests to more
# easily mock it.
#
import psycopg2
from functools import wraps
class PostgresqlWrapper:... | 31.693878 | 81 | 0.663232 | 186 | 1,553 | 5.430108 | 0.473118 | 0.029703 | 0.062376 | 0.050495 | 0.09703 | 0.09703 | 0.09703 | 0.09703 | 0.09703 | 0.09703 | 0 | 0.003439 | 0.251127 | 1,553 | 48 | 82 | 32.354167 | 0.865004 | 0.376046 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
209f5d7fe90a4d88f16d6611090a02962659d0ee | 2,114 | py | Python | src/server.py | benob/howto-app | 1ef054487ca79f535ed14a42a450080ed91ec5a0 | [
"BSD-2-Clause"
] | null | null | null | src/server.py | benob/howto-app | 1ef054487ca79f535ed14a42a450080ed91ec5a0 | [
"BSD-2-Clause"
] | 3 | 2020-08-06T09:50:27.000Z | 2021-04-30T20:40:51.000Z | src/server.py | benob/howto-app | 1ef054487ca79f535ed14a42a450080ed91ec5a0 | [
"BSD-2-Clause"
] | null | null | null | import sys
import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
from aiohttp import web
from aiohttp_session import get_session, setup
from aiohttp_session.cookie_storage import EncryptedCookieStorage
import aiohttp_jinja2
import jinja2
import user
import search
#import personal
impo... | 31.088235 | 109 | 0.754967 | 293 | 2,114 | 5.266212 | 0.426621 | 0.038885 | 0.023331 | 0.029164 | 0.063513 | 0.063513 | 0.063513 | 0.063513 | 0.063513 | 0.063513 | 0 | 0.006656 | 0.147114 | 2,114 | 67 | 110 | 31.552239 | 0.84914 | 0.101703 | 0 | 0.08 | 0 | 0 | 0.099789 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0.44 | 0 | 0.46 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
20bbc1d5299437a8ab696fb6539a2a0bd6a6b451 | 10,494 | py | Python | results/gafqmc_info.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | results/gafqmc_info.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | results/gafqmc_info.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | # $Id: gafqmc_info.py,v 1.3 2011-03-09 15:44:47 wirawan Exp $
#
# gafqmc_info.py
# Tools to parse GAFQMC INFO file
#
# Wirawan Purwanto
# Created: 20101025
#
# IMPORTANT: Try to make field names consistent with those in pwqmc_info.
# Python standard modules
import math
import os
import os.path
import re
import sys
imp... | 34.98 | 97 | 0.616162 | 1,420 | 10,494 | 4.456338 | 0.280986 | 0.027813 | 0.055626 | 0.019121 | 0.226138 | 0.181732 | 0.124526 | 0.115676 | 0.082491 | 0.066688 | 0 | 0.016127 | 0.249571 | 10,494 | 299 | 98 | 35.09699 | 0.787429 | 0.130932 | 0 | 0.188119 | 0 | 0 | 0.203489 | 0.00815 | 0 | 0 | 0 | 0.013378 | 0 | 0 | null | null | 0 | 0.074257 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20bf869b6eece9c1851024e7b35b10b6b1bc613e | 673 | py | Python | signup/migrations/0001_initial.py | harry-7/django-trial | 36973c748f38aa1a5c0f4a0f50b77c30e41538e1 | [
"MIT"
] | null | null | null | signup/migrations/0001_initial.py | harry-7/django-trial | 36973c748f38aa1a5c0f4a0f50b77c30e41538e1 | [
"MIT"
] | null | null | null | signup/migrations/0001_initial.py | harry-7/django-trial | 36973c748f38aa1a5c0f4a0f50b77c30e41538e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-12 21:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Signup'... | 25.884615 | 96 | 0.589896 | 71 | 673 | 5.408451 | 0.746479 | 0.070313 | 0.09375 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047817 | 0.28529 | 673 | 25 | 97 | 26.92 | 0.75052 | 0.099554 | 0 | 0 | 1 | 0 | 0.064677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
20d2690b568a33f480d46c9e7f91c6576f85c23f | 574 | py | Python | ip_interceptor/middleware.py | jasonqiao36/django-forbidden-ip | dd5be0d7592d619f142a1fcdd951f9aecba36c41 | [
"MIT"
] | null | null | null | ip_interceptor/middleware.py | jasonqiao36/django-forbidden-ip | dd5be0d7592d619f142a1fcdd951f9aecba36c41 | [
"MIT"
] | null | null | null | ip_interceptor/middleware.py | jasonqiao36/django-forbidden-ip | dd5be0d7592d619f142a1fcdd951f9aecba36c41 | [
"MIT"
] | null | null | null | from django.http import HttpResponseForbidden
from django.utils.deprecation import MiddlewareMixin
from .models import ForbiddenIP
class IPInterceptorMiddleware(MiddlewareMixin):
def __init__(self, get_reqponse):
self.get_response = get_reqponse
def validate_ip(self, remote_ip):
if Forbidden... | 28.7 | 60 | 0.710801 | 65 | 574 | 6.076923 | 0.507692 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210801 | 574 | 19 | 61 | 30.210526 | 0.871965 | 0 | 0 | 0 | 0 | 0 | 0.019164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 2 |
20e2db6c0155ef8b48bc9c2402487178afda7f59 | 569 | py | Python | stringFunctions.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | stringFunctions.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | stringFunctions.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | #String functions
myStr = 'Hello world!'
#Capitalize
print(myStr.capitalize())
#Swap case
print(myStr.swapcase())
#Get length
print(len(myStr))
#Replace
print(myStr.replace('world', 'everyone'))
#Count
sub = 'l'
print(myStr.count(sub))
#Startswith
print(myStr.startswith('Hello'))
#Endswith
print(myStr.endswith(... | 13.232558 | 41 | 0.718805 | 76 | 569 | 5.381579 | 0.434211 | 0.293399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103691 | 569 | 43 | 42 | 13.232558 | 0.801961 | 0.26362 | 0 | 0 | 0 | 0 | 0.1133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.866667 | 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 | 1 | 0 | 2 |
20ec6d19ecf9f74ac65c10f233b31d0f629f58a8 | 1,385 | py | Python | predictor.py | RKJenamani/La_Liga_Predictor_ML | 3bb4d5f564775f9ddadf14cb541878c5e34e8ba2 | [
"MIT"
] | null | null | null | predictor.py | RKJenamani/La_Liga_Predictor_ML | 3bb4d5f564775f9ddadf14cb541878c5e34e8ba2 | [
"MIT"
] | null | null | null | predictor.py | RKJenamani/La_Liga_Predictor_ML | 3bb4d5f564775f9ddadf14cb541878c5e34e8ba2 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import math
from sklearn.preprocessing import scale
from sklearn.cross_validation import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC
import xgboost as xgb
from sklearn.grid_search import GridSear... | 28.265306 | 89 | 0.74296 | 229 | 1,385 | 4.327511 | 0.427948 | 0.088799 | 0.048436 | 0.064581 | 0.119072 | 0.100908 | 0 | 0 | 0 | 0 | 0 | 0.037429 | 0.112635 | 1,385 | 48 | 90 | 28.854167 | 0.768918 | 0 | 0 | 0 | 0 | 0 | 0.085199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
20f072030cee636bbf38ddaa8bc1efca81aed9cd | 653 | py | Python | models/folder.py | tranquilitybase-io/tb-houston-service | 9383922ee21fcf64b2b9b32b5662e962428e2a35 | [
"Apache-2.0"
] | 1 | 2020-03-18T22:32:10.000Z | 2020-03-18T22:32:10.000Z | models/folder.py | tranquilitybase-io/tb-houston-service | 9383922ee21fcf64b2b9b32b5662e962428e2a35 | [
"Apache-2.0"
] | 380 | 2020-03-18T12:41:22.000Z | 2021-07-01T14:24:08.000Z | models/folder.py | tranquilitybase-io/tb-houston-service | 9383922ee21fcf64b2b9b32b5662e962428e2a35 | [
"Apache-2.0"
] | 13 | 2020-04-06T06:52:51.000Z | 2021-09-23T23:07:21.000Z | from config import db, ma
class Folder(db.Model):
__tablename__ = "folder"
__table_args__ = {"schema": "eagle_db"}
id = db.Column(db.Integer, primary_key=True)
parentFolderId = db.Column(db.String(45))
folderId = db.Column(db.String(45))
folderName = db.Column(db.String(100))
sta... | 28.391304 | 86 | 0.632466 | 84 | 653 | 4.714286 | 0.5 | 0.121212 | 0.151515 | 0.20202 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021869 | 0.229709 | 653 | 22 | 87 | 29.681818 | 0.765408 | 0 | 0 | 0 | 0 | 0 | 0.110935 | 0.077655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.823529 | 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 | 1 | 0 | 0 | 2 |
45598aa5d404f38a23dee812f46bfe1db9fa7a9a | 494 | py | Python | DiffTRe/custom_space.py | moradza/difftre | 0a324b20ae10353870bdad4f34b4e53de0bb8361 | [
"Apache-2.0"
] | 10 | 2021-06-12T15:24:12.000Z | 2022-03-29T03:19:47.000Z | DiffTRe/custom_space.py | moradza/difftre | 0a324b20ae10353870bdad4f34b4e53de0bb8361 | [
"Apache-2.0"
] | null | null | null | DiffTRe/custom_space.py | moradza/difftre | 0a324b20ae10353870bdad4f34b4e53de0bb8361 | [
"Apache-2.0"
] | 3 | 2021-06-01T18:12:56.000Z | 2022-03-23T03:49:23.000Z | from jax_md import space
from jax import ops
import jax.numpy as jnp
def rectangular_boxtensor(box, spacial_dim):
return ops.index_update(jnp.eye(spacial_dim), jnp.diag_indices(spacial_dim), box)
def scale_to_fractional_coordinates(R_init, box):
spacial_dim = R_init.shape[1]
box_tensor = rectangular_box... | 30.875 | 85 | 0.773279 | 80 | 494 | 4.4625 | 0.4375 | 0.140056 | 0.109244 | 0.168067 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002375 | 0.147773 | 494 | 15 | 86 | 32.933333 | 0.845606 | 0.046559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 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 | 1 | 0 | 0 | 2 |
4561397955aa0a0b385c17f3e02f997e88a609d0 | 2,805 | py | Python | build/SCA/script/x_developer/developer_tools.py | oliverpatrick/python-screen_click_ai | a96e40b727d343ebd36b0bb684ef8e029ff54baa | [
"MIT"
] | 26 | 2019-12-01T16:47:39.000Z | 2020-06-18T19:59:28.000Z | build/SCA/script/x_developer/developer_tools.py | Suirdna/SCA-ScreenClickAi | a96e40b727d343ebd36b0bb684ef8e029ff54baa | [
"MIT"
] | 5 | 2020-01-25T20:46:36.000Z | 2020-11-07T06:23:47.000Z | build/SCA/script/x_developer/developer_tools.py | Suirdna/python-screen_click_ai | a96e40b727d343ebd36b0bb684ef8e029ff54baa | [
"MIT"
] | 7 | 2019-12-04T02:18:20.000Z | 2020-07-04T23:27:41.000Z | import threading
import random
import os
import time
import smtplib
import socket
from os import walk
from pynput.keyboard import Controller,Key
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from script.x_modules import send_mail
import data.config
import interface
import opencv2
f... | 27.772277 | 120 | 0.66738 | 351 | 2,805 | 5.196581 | 0.307692 | 0.048246 | 0.061404 | 0.087719 | 0.253289 | 0.184211 | 0.126096 | 0.057018 | 0.057018 | 0.057018 | 0 | 0.008684 | 0.219964 | 2,805 | 101 | 121 | 27.772277 | 0.824954 | 0.052406 | 0 | 0.024096 | 0 | 0 | 0.041055 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084337 | false | 0.024096 | 0.39759 | 0 | 0.698795 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
4578589424c47c57e29ad95db6bb549f84e19630 | 430 | py | Python | talk_like/_nbdev.py | devacto/talk_like | 52b8864255c21d131f9414b7755a7aa21ed63d2e | [
"Apache-2.0"
] | null | null | null | talk_like/_nbdev.py | devacto/talk_like | 52b8864255c21d131f9414b7755a7aa21ed63d2e | [
"Apache-2.0"
] | 2 | 2021-09-28T05:42:28.000Z | 2022-02-26T10:28:38.000Z | talk_like/_nbdev.py | devacto/talk_like | 52b8864255c21d131f9414b7755a7aa21ed63d2e | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"Scraper": "00_scraper.ipynb",
"Scraper.get_facebook_posts": "00_scraper.ipynb",
"print_something": "00_scraper.ipynb"}
modules = ["scraper.py"]
doc_url = "https://devacto.github.io/talk_l... | 26.875 | 61 | 0.697674 | 59 | 430 | 4.762712 | 0.610169 | 0.096085 | 0.149466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.134884 | 430 | 15 | 62 | 28.666667 | 0.739247 | 0.083721 | 0 | 0 | 1 | 0 | 0.576531 | 0.066327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
457af03ddd7a3a97895263214419beca91e5d368 | 235 | py | Python | Easy/Flipping_an_Image/Flipping_an_Image.py | nitin3685/LeetCode_Solutions | ab920e96cd27e0b2c3c895ce20853edceef0cce8 | [
"MIT"
] | null | null | null | Easy/Flipping_an_Image/Flipping_an_Image.py | nitin3685/LeetCode_Solutions | ab920e96cd27e0b2c3c895ce20853edceef0cce8 | [
"MIT"
] | null | null | null | Easy/Flipping_an_Image/Flipping_an_Image.py | nitin3685/LeetCode_Solutions | ab920e96cd27e0b2c3c895ce20853edceef0cce8 | [
"MIT"
] | null | null | null | class Solution:
def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
FI_A = list()
for row in A:
row = [0 if i else 1 for i in row[::-1]]
FI_A.append(row)
return FI_A
| 29.375 | 72 | 0.523404 | 37 | 235 | 3.243243 | 0.513514 | 0.075 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.344681 | 235 | 7 | 73 | 33.571429 | 0.75974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
457d04243a2c989390ad72b46066d3e54e31e33f | 5,494 | py | Python | autodraft/draftHost/models.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | autodraft/draftHost/models.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | autodraft/draftHost/models.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
class NflConference(models.Model):
name = models.TextField()
abbreviation = models.TextField(max_length=5)
def __unicode__(self):
return self.name
class NflDivision(models.Model):
name = models.TextField()
conference = models... | 28.614583 | 84 | 0.684929 | 639 | 5,494 | 5.738654 | 0.269171 | 0.091628 | 0.05345 | 0.076357 | 0.293973 | 0.225525 | 0.209163 | 0.137442 | 0.117807 | 0.087265 | 0 | 0.007757 | 0.202221 | 5,494 | 191 | 85 | 28.764398 | 0.828884 | 0.095741 | 0 | 0.4 | 0 | 0 | 0.021229 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 1 | 0.152 | false | 0.008 | 0.016 | 0.128 | 0.936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
45a79b56308a49a268b2d30b6c73b204b5168837 | 65,983 | py | Python | faker/providers/person/vi_VN/__init__.py | nkthanh98/faker | 86f53a11f2be4c5312abc5430bc485389d7f1ead | [
"MIT"
] | null | null | null | faker/providers/person/vi_VN/__init__.py | nkthanh98/faker | 86f53a11f2be4c5312abc5430bc485389d7f1ead | [
"MIT"
] | null | null | null | faker/providers/person/vi_VN/__init__.py | nkthanh98/faker | 86f53a11f2be4c5312abc5430bc485389d7f1ead | [
"MIT"
] | 1 | 2020-01-16T05:10:03.000Z | 2020-01-16T05:10:03.000Z | # coding=utf-8
from __future__ import unicode_literals
from collections import OrderedDict
from .. import Provider as PersonProvider
class Provider(PersonProvider): # Data from https://github.com/duyetdev/vietnamese-namedb
"""Provider for Vietnamese person generator"""
formats_female = OrderedDict((
... | 39.510778 | 93 | 0.575982 | 5,018 | 65,983 | 7.56397 | 0.221602 | 0.184951 | 0.001739 | 0.000948 | 0.014464 | 0.004479 | 0.002055 | 0 | 0 | 0 | 0 | 0.62581 | 0.249579 | 65,983 | 1,669 | 94 | 39.534452 | 0.140664 | 0.002607 | 0 | 0.02 | 0 | 0 | 0.097197 | 0.000638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001212 | false | 0 | 0.001818 | 0 | 0.010303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
45b0cede6f461990a6f3127c5f34b2edf217608b | 3,488 | py | Python | eogrow/utils/meta.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | 17 | 2022-01-27T11:50:23.000Z | 2022-02-12T10:01:03.000Z | eogrow/utils/meta.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | 5 | 2022-02-10T11:15:09.000Z | 2022-02-28T10:46:47.000Z | eogrow/utils/meta.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | null | null | null | """
Utilities for solving different problems in `eo-grow` package structure, which are mostly a pure Python magic.
"""
from __future__ import annotations
import importlib
import inspect
from typing import TYPE_CHECKING, Any, Dict, Type
if TYPE_CHECKING:
from ..core.pipeline import Pipeline
from ..core.schemas... | 35.591837 | 120 | 0.711583 | 465 | 3,488 | 5.154839 | 0.337634 | 0.070922 | 0.0267 | 0.033375 | 0.020859 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000361 | 0.205275 | 3,488 | 97 | 121 | 35.958763 | 0.864358 | 0.256594 | 0 | 0.058824 | 0 | 0 | 0.208118 | 0.00955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.392157 | 0 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
45c75d4b8147ba92bf805e0b118c531bfa74e4d4 | 237 | py | Python | Matplotlib/Matplotlib-PieChart.py | H2oPtic/Codecademy | 835214080f332a60e26fb8f9758d03acb9075b9b | [
"MIT"
] | null | null | null | Matplotlib/Matplotlib-PieChart.py | H2oPtic/Codecademy | 835214080f332a60e26fb8f9758d03acb9075b9b | [
"MIT"
] | null | null | null | Matplotlib/Matplotlib-PieChart.py | H2oPtic/Codecademy | 835214080f332a60e26fb8f9758d03acb9075b9b | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import numpy as np
payment_method_names = ["Card Swipe", "Cash", "Apple Pay", "Other"]
payment_method_freqs = [270, 77, 32, 11]
plt.pie(payment_method_freqs)
plt.axis('equal')
plt.show()
| 21.545455 | 68 | 0.700422 | 36 | 237 | 4.444444 | 0.722222 | 0.24375 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045685 | 0.168776 | 237 | 10 | 69 | 23.7 | 0.766497 | 0 | 0 | 0 | 0 | 0 | 0.145374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
45c7ec8ae4dc827fbf3ff9c5bf1b2b58bcf28ba3 | 1,452 | py | Python | tensorflow_graphics/rendering/tests/splat_with_opengl_test.py | sarvex/graphics | aeeb6e4753b8561ecfd39234ceea1436cd65e89e | [
"Apache-2.0"
] | 2,759 | 2019-01-08T10:40:34.000Z | 2022-03-28T13:49:37.000Z | tensorflow_graphics/rendering/tests/splat_with_opengl_test.py | sarvex/graphics | aeeb6e4753b8561ecfd39234ceea1436cd65e89e | [
"Apache-2.0"
] | 262 | 2019-04-28T12:25:49.000Z | 2022-03-24T19:35:15.000Z | tensorflow_graphics/rendering/tests/splat_with_opengl_test.py | sarvex/graphics | aeeb6e4753b8561ecfd39234ceea1436cd65e89e | [
"Apache-2.0"
] | 380 | 2019-05-09T00:14:45.000Z | 2022-03-31T12:48:25.000Z | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 40.333333 | 78 | 0.774793 | 209 | 1,452 | 5.296651 | 0.569378 | 0.054201 | 0.059621 | 0.028907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006628 | 0.168733 | 1,452 | 35 | 79 | 41.485714 | 0.910522 | 0.690771 | 0 | 0 | 0 | 0 | 0.018824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
45c7ef34dbdec9406f843c68683796b39289e7c3 | 11,669 | py | Python | sdtest-wip.py | benhastings/SeGrid_EC2 | b5b6368b269bdd12b567f3e3519261930fa11b87 | [
"BSD-3-Clause"
] | null | null | null | sdtest-wip.py | benhastings/SeGrid_EC2 | b5b6368b269bdd12b567f3e3519261930fa11b87 | [
"BSD-3-Clause"
] | null | null | null | sdtest-wip.py | benhastings/SeGrid_EC2 | b5b6368b269bdd12b567f3e3519261930fa11b87 | [
"BSD-3-Clause"
] | null | null | null | from selenium import webdriver
import selenium.webdriver.support.ui as ui
from selenium.webdriver.common.keys import Keys
#from selenium.webdriver.common.action_chains import ActionChains
import time
import datetime
import csv
import random
import sys
import urllib2
import socket
#from metricsCollect import metricsCol... | 27.71734 | 139 | 0.558574 | 1,331 | 11,669 | 4.848986 | 0.254696 | 0.017044 | 0.020143 | 0.023551 | 0.237217 | 0.179888 | 0.123644 | 0.042299 | 0.029904 | 0.014875 | 0 | 0.018201 | 0.185449 | 11,669 | 420 | 140 | 27.783333 | 0.66081 | 0.398406 | 0 | 0.37931 | 0 | 0 | 0.193768 | 0.044018 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.051724 | 0.043103 | null | null | 0.043103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
45d5e3da952f37bcb488029fd7c4c8fe3c977883 | 1,982 | py | Python | sitenco/config/code_browser.py | Kozea/sitenco | c14335ad995f91addb6a19847a216fa824c5f8db | [
"BSD-3-Clause"
] | 3 | 2015-02-19T02:27:31.000Z | 2017-01-23T06:52:51.000Z | sitenco/config/code_browser.py | Kozea/sitenco | c14335ad995f91addb6a19847a216fa824c5f8db | [
"BSD-3-Clause"
] | null | null | null | sitenco/config/code_browser.py | Kozea/sitenco | c14335ad995f91addb6a19847a216fa824c5f8db | [
"BSD-3-Clause"
] | null | null | null | """
Code browser tools.
"""
import abc
from docutils import nodes
from flask import request
from .tool import Tool, Role, Directive
class CodeBrowser(Tool):
"""Abstract class for code browser tools."""
__metaclass__ = abc.ABCMeta
def __init__(self, project_name, ribbon=None):
self.project_name... | 26.426667 | 74 | 0.623108 | 241 | 1,982 | 4.958506 | 0.365145 | 0.058577 | 0.050209 | 0.030126 | 0.082008 | 0.045188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24672 | 1,982 | 74 | 75 | 26.783784 | 0.800402 | 0.191726 | 0 | 0.097561 | 0 | 0 | 0.109819 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.195122 | false | 0 | 0.097561 | 0.04878 | 0.609756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
afdcffd183083a43d1c8a0673cf7bc10366fddc1 | 2,668 | py | Python | tests/unit/utils.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/unit/utils.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/unit/utils.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | import tempfile
from hdmf.utils import docval, getargs
from hdmf.container import Container
CORE_NAMESPACE = 'test_core'
class Foo(Container):
@docval({'name': 'name', 'type': str, 'doc': 'the name of this Foo'},
{'name': 'my_data', 'type': ('array_data', 'data'), 'doc': 'some data'},
... | 30.666667 | 106 | 0.589205 | 347 | 2,668 | 4.305476 | 0.279539 | 0.028112 | 0.033467 | 0.040161 | 0.220884 | 0.179384 | 0.109772 | 0.109772 | 0.06158 | 0.06158 | 0 | 0.016726 | 0.260495 | 2,668 | 86 | 107 | 31.023256 | 0.740497 | 0.078711 | 0 | 0.241935 | 0 | 0 | 0.157294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.048387 | 0.129032 | 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 | 1 | 0 | 0 | 0 | 2 |
afe2e08b1c86f42f97e6e78336a02527bb5cf48a | 517 | py | Python | backend/modules/dataprep/PandasPreprocessor.py | FeelsBright/SmartMed | 91dd91e51be82d7dc9779a3ad0a739f4214652be | [
"Apache-2.0"
] | null | null | null | backend/modules/dataprep/PandasPreprocessor.py | FeelsBright/SmartMed | 91dd91e51be82d7dc9779a3ad0a739f4214652be | [
"Apache-2.0"
] | null | null | null | backend/modules/dataprep/PandasPreprocessor.py | FeelsBright/SmartMed | 91dd91e51be82d7dc9779a3ad0a739f4214652be | [
"Apache-2.0"
] | null | null | null | from typing import Dict
import pandas as pd
import logging
logging.basicConfig(filename='~/../logs/start.log', level=logging.DEBUG)
def debug(fn):
'''logging decorator'''
def wrapper(*args, **kwargs):
logging.debug("Entering {:s}...".format(fn.__name__))
result = fn(*args, **kwargs)
logging.debug("Finished... | 20.68 | 72 | 0.711799 | 65 | 517 | 5.476923 | 0.569231 | 0.101124 | 0.095506 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131528 | 517 | 24 | 73 | 21.541667 | 0.792873 | 0.102515 | 0 | 0 | 0 | 0 | 0.108168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
afe87206c1efda8b52ec05421b52ffb254ae1cb3 | 441 | py | Python | users/admin.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | users/admin.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | users/admin.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | # users/admin.py
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import ReviewsUserCreationForm, ReviewsUserChangeForm
from .models import ReviewsUser
class ReviewUserAdmin(UserAdmin):
add_form = ReviewsUserCreationForm
form = ReviewsUserChangeForm
list_displa... | 25.941176 | 65 | 0.795918 | 45 | 441 | 7.733333 | 0.6 | 0.057471 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131519 | 441 | 16 | 66 | 27.5625 | 0.908616 | 0.031746 | 0 | 0 | 0 | 0 | 0.065882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
afe9464d887e6ba1b0fefdcae268aa6cfd0d1b68 | 2,187 | py | Python | movie/app/models.py | zhangzhibo123/flask---movie | 45da1993936a4fa863488818ae4e88d27165f66c | [
"Apache-2.0"
] | null | null | null | movie/app/models.py | zhangzhibo123/flask---movie | 45da1993936a4fa863488818ae4e88d27165f66c | [
"Apache-2.0"
] | null | null | null | movie/app/models.py | zhangzhibo123/flask---movie | 45da1993936a4fa863488818ae4e88d27165f66c | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from datetime import datetime
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
__author__ = 'zhangzhibo'
__date__ = '202018/5/18 10:36'
from app import db
class UserInfo(db.Model):
tablename__ = "userinfo"
id = db... | 28.038462 | 70 | 0.678555 | 307 | 2,187 | 4.62215 | 0.257329 | 0.112755 | 0.140944 | 0.124031 | 0.589147 | 0.56871 | 0.56871 | 0.490486 | 0.443975 | 0.443975 | 0 | 0.026494 | 0.188843 | 2,187 | 77 | 71 | 28.402597 | 0.773393 | 0.022405 | 0 | 0.436364 | 0 | 0 | 0.042214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.072727 | 0.127273 | 0.072727 | 0.872727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
afef7b90abb1c481c7c92a08d11a98c33406f2be | 1,109 | py | Python | desafios/Mundo 2/Ex043IMC.py | duartecgustavo/Python---Estudos- | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 6 | 2021-01-20T20:43:39.000Z | 2021-08-13T15:44:10.000Z | desafios/Mundo 2/Ex043IMC.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | null | null | null | desafios/Mundo 2/Ex043IMC.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 1 | 2020-09-06T03:34:19.000Z | 2020-09-06T03:34:19.000Z | # Desafio 43 - Aula 12 : Programa que calcule o IMC e apresente a tabela:
# A/ Abaixo de 18.5 - ABAIXO DO PESO.
# B/ Entre 18.5 e 25 - PESO IDEAL.
# C/ De 25 até 30 - SOBREPESO.
# D/ 30 até 50 - OBESIDADE.
# E/ Acima de 40 - OBESIDADE MORBIDA.
# FORMULA - ALTURA² / PESO
print('='*50)
nome = 'IMC (INDICE DE MASSA CORP... | 41.074074 | 140 | 0.66817 | 194 | 1,109 | 3.819588 | 0.448454 | 0.048583 | 0.060729 | 0.080972 | 0.178138 | 0.178138 | 0.178138 | 0.153846 | 0.153846 | 0.080972 | 0 | 0.056667 | 0.188458 | 1,109 | 27 | 141 | 41.074074 | 0.766667 | 0.23174 | 0 | 0.117647 | 0 | 0.117647 | 0.655621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b3041efc7ed2862854221ad0c69b3bbf7a4cf57f | 435 | py | Python | upython_esp32/device/boot.py | elecun/TimboBlockEditor | 1c3100c9cb0fe5a1aee0cc247ce1798ad3c4da2f | [
"MIT"
] | null | null | null | upython_esp32/device/boot.py | elecun/TimboBlockEditor | 1c3100c9cb0fe5a1aee0cc247ce1798ad3c4da2f | [
"MIT"
] | null | null | null | upython_esp32/device/boot.py | elecun/TimboBlockEditor | 1c3100c9cb0fe5a1aee0cc247ce1798ad3c4da2f | [
"MIT"
] | null | null | null |
# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
#import webrepl
#webrepl.start()
try:
import usocket as socket
except:
import socket
import time
import esp
esp.osdebug(None)
import gc
gc.collect()
#connect to network via wifi
ssid = 'U+Net76AB'
pa... | 11.153846 | 74 | 0.71954 | 64 | 435 | 4.875 | 0.671875 | 0.057692 | 0.076923 | 0.121795 | 0.185897 | 0.185897 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0.167816 | 435 | 38 | 75 | 11.447368 | 0.823204 | 0.43908 | 0 | 0 | 0 | 0 | 0.082609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
b31dd84490b167e7d64bd756deb2b8d4491f189f | 2,271 | py | Python | ooobuild/lo/chart/chart_document.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/chart/chart_document.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/chart/chart_document.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 33.397059 | 149 | 0.731836 | 296 | 2,271 | 5.452703 | 0.52027 | 0.037175 | 0.018587 | 0.027881 | 0.109665 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0.030635 | 0.195068 | 2,271 | 67 | 150 | 33.895522 | 0.852298 | 0.528402 | 0 | 0.1875 | 0 | 0 | 0.075269 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b31e3bf0ce2ae3c14376ffc5bcabf210e47d4767 | 2,436 | py | Python | openstack_health/tests/test_status.py | MountakBernotas/https-github.com-openstack-openstack-health | 9073777993eac43a2a9bfd9e341d6fd48ab15955 | [
"Apache-2.0"
] | null | null | null | openstack_health/tests/test_status.py | MountakBernotas/https-github.com-openstack-openstack-health | 9073777993eac43a2a9bfd9e341d6fd48ab15955 | [
"Apache-2.0"
] | 1 | 2019-03-27T15:13:24.000Z | 2019-07-19T05:58:16.000Z | openstack_health/tests/test_status.py | afrittoli/openstack-health | 3ea4787c88792c5d130471e841750adfd5f4d32e | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | 39.934426 | 75 | 0.730706 | 322 | 2,436 | 5.31677 | 0.307453 | 0.183995 | 0.163551 | 0.212617 | 0.614486 | 0.614486 | 0.591706 | 0.451519 | 0.451519 | 0.451519 | 0 | 0.006039 | 0.184319 | 2,436 | 60 | 76 | 40.6 | 0.855561 | 0.237274 | 0 | 0.552632 | 0 | 0 | 0.020065 | 0 | 0 | 0 | 0 | 0 | 0.552632 | 1 | 0.184211 | false | 0 | 0.052632 | 0 | 0.263158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b342a1312b38b560ce80295707b5c34ec9661915 | 1,318 | py | Python | setup.py | bliof/csvtotable | 2dc0706b26c4d4d2adba3d38141c5a0e2a80fe5a | [
"MIT"
] | null | null | null | setup.py | bliof/csvtotable | 2dc0706b26c4d4d2adba3d38141c5a0e2a80fe5a | [
"MIT"
] | null | null | null | setup.py | bliof/csvtotable | 2dc0706b26c4d4d2adba3d38141c5a0e2a80fe5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
_version = "2.1.1"
setup(name="csvtotable",
version=_version,
description="Simple commandline utility to convert CSV files"
"to searchable and sortable HTML table.",
author="Vivek R",
author_email="vividvilla@gmail.com",
url="http... | 43.933333 | 114 | 0.626707 | 144 | 1,318 | 5.666667 | 0.590278 | 0.139706 | 0.183824 | 0.095588 | 0.090686 | 0.090686 | 0 | 0 | 0 | 0 | 0 | 0.027106 | 0.216237 | 1,318 | 29 | 115 | 45.448276 | 0.762827 | 0.015175 | 0 | 0 | 0 | 0 | 0.606785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b36b53776e99b621fb400ac7d99f06f448e9765b | 51,819 | py | Python | venv/lib/python3.6/site-packages/pykalman/unscented.py | QuantTraderEd/vnpy_crypto | a1142eddaa8a7eb63cc13af30554c05718e151b1 | [
"MIT"
] | 34 | 2018-07-13T11:30:46.000Z | 2022-01-05T13:48:10.000Z | venv/lib/python3.6/site-packages/pykalman/unscented.py | HeyWeiPan/vnpy_crypto | 844381797a475a01c05a4e162592a5a6e3a48032 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/pykalman/unscented.py | HeyWeiPan/vnpy_crypto | 844381797a475a01c05a4e162592a5a6e3a48032 | [
"MIT"
] | 22 | 2018-07-13T11:30:48.000Z | 2021-09-25T13:30:08.000Z | '''
=========================================
Inference for Non-Linear Gaussian Systems
=========================================
This module contains the Unscented Kalman Filter (Wan, van der Merwe 2000)
for state estimation in systems with non-Gaussian noise and non-linear dynamics
'''
from collections import namedt... | 37.851717 | 109 | 0.633011 | 6,406 | 51,819 | 4.880737 | 0.065564 | 0.02725 | 0.045193 | 0.026418 | 0.748737 | 0.710132 | 0.682978 | 0.666219 | 0.659502 | 0.640664 | 0 | 0.009072 | 0.287404 | 51,819 | 1,368 | 110 | 37.879386 | 0.837648 | 0.456705 | 0 | 0.502488 | 0 | 0 | 0.029561 | 0.017241 | 0 | 0 | 0 | 0.000731 | 0.004975 | 1 | 0.046434 | false | 0 | 0.00995 | 0.004975 | 0.106136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b3711fdf73605690189d22db73a2bc08a703db14 | 12,449 | py | Python | parsers/Interrupts.py | ondrejholecek/fortimonitor | 79b0377f97b084f04396a323a84bb3e8a93d6f2d | [
"BSD-3-Clause"
] | 9 | 2018-10-19T08:47:42.000Z | 2020-08-19T01:58:27.000Z | parsers/Interrupts.py | ondrejholecek/fortimonitor | 79b0377f97b084f04396a323a84bb3e8a93d6f2d | [
"BSD-3-Clause"
] | 1 | 2019-11-07T11:24:43.000Z | 2019-11-07T11:52:51.000Z | parsers/Interrupts.py | ondrejholecek/fortimonitor | 79b0377f97b084f04396a323a84bb3e8a93d6f2d | [
"BSD-3-Clause"
] | 3 | 2020-04-24T03:51:15.000Z | 2021-12-19T16:08:24.000Z | from EasyParser import EasyParser
import re
import time
# FG1K2D-2 # diag hardware sysinfo interrupts
# CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
# 0: 36 0 0 0 0 0 0 0 IO-APIC-edge tim... | 57.902326 | 199 | 0.393365 | 1,463 | 12,449 | 3.285031 | 0.248804 | 0.127757 | 0.14794 | 0.150645 | 0.323762 | 0.291511 | 0.286517 | 0.261132 | 0.212859 | 0.195797 | 0 | 0.253834 | 0.533858 | 12,449 | 214 | 200 | 58.172897 | 0.574358 | 0.712507 | 0 | 0.145455 | 0 | 0 | 0.215613 | 0.006291 | 0.009091 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0 | 0.027273 | 0 | 0.081818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3783ba324b5832b372214927e65eaf3dcf150c9 | 750 | py | Python | tests/fork/conftest.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/fork/conftest.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/fork/conftest.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import pytest
from brownie_tokens import MintableForkToken
class _MintableTestToken(MintableForkToken):
def __init__(self, address):
super().__init__(address)
@pytest.fixture(scope="session")
def MintableTestToken():
yield _MintableTestToken
@pytest.fixture(scope="module")
def USDC():
yield _M... | 22.727273 | 74 | 0.788 | 61 | 750 | 9.442623 | 0.42623 | 0.112847 | 0.15625 | 0.166667 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150972 | 0.108 | 750 | 32 | 75 | 23.4375 | 0.710015 | 0 | 0 | 0.2 | 0 | 0 | 0.265333 | 0.224 | 0 | 0 | 0.224 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.45 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fac7da969259cba8c1db0224823f3193821da00 | 120 | py | Python | courses/python/cursoemvideo/exercicios/ex046.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | 3 | 2020-04-28T01:42:09.000Z | 2020-05-03T12:05:23.000Z | courses/python/cursoemvideo/exercicios/ex046.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | null | null | null | courses/python/cursoemvideo/exercicios/ex046.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | null | null | null | import time
for i in range(10, -1, -1):
print(i)
time.sleep(1)
print('FOGOSSSSSSSSS!!!!!!!!! \o/ \o/ \o/ \o/ ') | 20 | 48 | 0.525 | 20 | 120 | 3.15 | 0.6 | 0.095238 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.2 | 120 | 6 | 48 | 20 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0.322314 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 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 | 2 |
2fbddee41f2e4458cd8f9e579438d265e28f773d | 1,803 | py | Python | ressources/constant.py | Jouca/Horse-Game | 55cc7fe0048b07ea33017ecf9e610e03b5c3f246 | [
"MIT"
] | null | null | null | ressources/constant.py | Jouca/Horse-Game | 55cc7fe0048b07ea33017ecf9e610e03b5c3f246 | [
"MIT"
] | null | null | null | ressources/constant.py | Jouca/Horse-Game | 55cc7fe0048b07ea33017ecf9e610e03b5c3f246 | [
"MIT"
] | null | null | null | COLOR = {
'ORANGE': (255, 121, 0),
'LIGHT_YELLOW': (255, 230, 130),
'YELLOW': (255, 204, 0),
'LIGHT_BLUE': (148, 228, 228),
'BLUE': (51, 204, 204),
'LIGHT_RED': (255, 136, 106),
'RED': (255, 51, 0),
'LIGHT_GREEN': (206, 255, 60),
'GREEN': (153, 204, 0),
'CYAN': (0, 159, 218),
... | 45.075 | 89 | 0.469218 | 285 | 1,803 | 2.936842 | 0.792982 | 0.009558 | 0.007168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.54493 | 0.327232 | 1,803 | 40 | 90 | 45.075 | 0.145095 | 0 | 0 | 0 | 0 | 0 | 0.071508 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fc4009593e790dd4dbc213af279c5e105524f02 | 387 | py | Python | leetcode/0944_delete_columns_to_make_sorted.py | jacquerie/leetcode | a05e6b832eb0e0740aaff7b2eb3109038ad404bf | [
"MIT"
] | 3 | 2018-05-10T09:56:49.000Z | 2020-11-07T18:09:42.000Z | leetcode/0944_delete_columns_to_make_sorted.py | jacquerie/leetcode | a05e6b832eb0e0740aaff7b2eb3109038ad404bf | [
"MIT"
] | null | null | null | leetcode/0944_delete_columns_to_make_sorted.py | jacquerie/leetcode | a05e6b832eb0e0740aaff7b2eb3109038ad404bf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Solution:
def minDeletionSize(self, A):
return len([col for col in zip(*A) if col != tuple(sorted(col))])
if __name__ == '__main__':
solution = Solution()
assert 1 == solution.minDeletionSize(['cba', 'daf', 'ghi'])
assert 0 == solution.minDeletionSize(['a', 'b'... | 25.8 | 73 | 0.602067 | 47 | 387 | 4.787234 | 0.659574 | 0.306667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.198966 | 387 | 14 | 74 | 27.642857 | 0.712903 | 0.054264 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.