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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9efda72bd0fef2b59f00df09e1ad7ef650379c50 | 1,370 | py | Python | pyvisdk/do/hourly_task_scheduler.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/do/hourly_task_scheduler.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/do/hourly_task_scheduler.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HourlyTaskScheduler(vim, *args, **kwargs):
'''The HourlyTaskScheduler data object set... | 37.027027 | 124 | 0.643066 | 165 | 1,370 | 5.315152 | 0.557576 | 0.017104 | 0.047891 | 0.04561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006428 | 0.205109 | 1,370 | 36 | 125 | 38.055556 | 0.798898 | 0.318248 | 0 | 0 | 1 | 0 | 0.204819 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73016dd3e797d04c53af479a55309f198aa2dfd3 | 5,393 | py | Python | simulation/stock.py | OwlQuant/Simulation | d1e9285d273570773c61efd8e2a90e6af5528285 | [
"MIT"
] | null | null | null | simulation/stock.py | OwlQuant/Simulation | d1e9285d273570773c61efd8e2a90e6af5528285 | [
"MIT"
] | null | null | null | simulation/stock.py | OwlQuant/Simulation | d1e9285d273570773c61efd8e2a90e6af5528285 | [
"MIT"
] | null | null | null | import datetime as dt
import numpy as np
import pandas as pd
from util._typing import Float, Int, Array2d, FloatOrNpArray, DateType, BoolType
class StockPrice:
@staticmethod
def gbm(s0: FloatOrNpArray = 100.0, vol: FloatOrNpArray = 0.2, t: Float = 1, rf: FloatOrNpArray = 0.01,
corr: FloatOrNpArray... | 51.855769 | 119 | 0.652327 | 760 | 5,393 | 4.5 | 0.276316 | 0.044737 | 0.01462 | 0.02193 | 0.162281 | 0.097368 | 0.097368 | 0.076901 | 0.076901 | 0.039181 | 0 | 0.018863 | 0.262748 | 5,393 | 103 | 120 | 52.359223 | 0.841298 | 0.438902 | 0 | 0.044444 | 0 | 0 | 0.012328 | 0 | 0 | 0 | 0 | 0.019417 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73030c93ba1a9382ebcdc8bb3b197c995b476807 | 2,233 | py | Python | cdn_static_website/settings/components/security.py | soulraven/cdn_small | e2415b39089cb761ddfe1748e443abd9c4080e83 | [
"MIT"
] | null | null | null | cdn_static_website/settings/components/security.py | soulraven/cdn_small | e2415b39089cb761ddfe1748e443abd9c4080e83 | [
"MIT"
] | null | null | null | cdn_static_website/settings/components/security.py | soulraven/cdn_small | e2415b39089cb761ddfe1748e443abd9c4080e83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from cdn_static_website.settings.components import BASE_DIR, config
# Password validation
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidato... | 32.838235 | 99 | 0.761308 | 304 | 2,233 | 5.434211 | 0.388158 | 0.043584 | 0.106538 | 0.121065 | 0.327482 | 0.327482 | 0.233051 | 0.233051 | 0.205811 | 0.133172 | 0 | 0.012703 | 0.118674 | 2,233 | 67 | 100 | 33.328358 | 0.826728 | 0.50918 | 0 | 0 | 0 | 0 | 0.322399 | 0.26523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.151515 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
730a8b4a99c4f8937d177ffaa50b1a3aac7629ed | 1,788 | py | Python | common/response_selection.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | common/response_selection.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | common/response_selection.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | # this is a list of skills which are not one-lines
ACTIVE_SKILLS = [
"book_skill",
"christmas_new_year_skill",
"dff_coronavirus_skill",
"dummy_skill_dialog",
"emotion_skill",
"game_cooperative_skill",
"meta_script_skill",
"dff_movie_skill",
"news_api_skill",
"oscar_skill",
"p... | 26.294118 | 100 | 0.684564 | 229 | 1,788 | 4.947598 | 0.519651 | 0.098853 | 0.023831 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199105 | 1,788 | 67 | 101 | 26.686567 | 0.791201 | 0.026846 | 0 | 0 | 0 | 0 | 0.632336 | 0.065017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73105596ed1a816aab1316e945ffd8c465655210 | 7,018 | py | Python | fastv8/doc/_extensions/sphinx_clatex/writer.py | gantech/fastv8DriverProgram | 565b0f8f6b019a112d7b35f9d841a6af04cb6cce | [
"Apache-2.0"
] | null | null | null | fastv8/doc/_extensions/sphinx_clatex/writer.py | gantech/fastv8DriverProgram | 565b0f8f6b019a112d7b35f9d841a6af04cb6cce | [
"Apache-2.0"
] | null | null | null | fastv8/doc/_extensions/sphinx_clatex/writer.py | gantech/fastv8DriverProgram | 565b0f8f6b019a112d7b35f9d841a6af04cb6cce | [
"Apache-2.0"
] | 5 | 2018-09-20T08:27:07.000Z | 2021-06-27T01:15:44.000Z | # -*- coding: utf-8 -*-
"""
LaTeX writer for Sphinx which allows to use arbitrary LaTeX class.
"""
import sys
from os import path
from docutils import nodes
from sphinx import highlighting
import sphinx.writers.latex
from sphinx.util.osutil import ustrftime
from sphinx.ext.mathbase import latex_visit_math, latex_visit... | 32.341014 | 93 | 0.61214 | 789 | 7,018 | 5.26616 | 0.271229 | 0.059687 | 0.029122 | 0.030806 | 0.10349 | 0.014922 | 0.014922 | 0 | 0 | 0 | 0 | 0.005161 | 0.282132 | 7,018 | 216 | 94 | 32.490741 | 0.819571 | 0.071103 | 0 | 0.105263 | 0 | 0 | 0.094168 | 0.024053 | 0 | 0 | 0 | 0.00463 | 0 | 0 | null | null | 0.040936 | 0.046784 | null | null | 0.005848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
731927a1abcfb411ee0fb2e55d19b093e2764ddf | 417 | py | Python | airports/airports.py | MinhAnhLuu/Microservices-Example | 6be5c4cd4811972e3684c9f912fbb5bb3795d1fc | [
"MIT"
] | null | null | null | airports/airports.py | MinhAnhLuu/Microservices-Example | 6be5c4cd4811972e3684c9f912fbb5bb3795d1fc | [
"MIT"
] | null | null | null | airports/airports.py | MinhAnhLuu/Microservices-Example | 6be5c4cd4811972e3684c9f912fbb5bb3795d1fc | [
"MIT"
] | null | null | null | import uuid
from nameko.rpc import rpc
from nameko_redis import Redis
class AirportsService:
name = "airports_service"
redis = Redis('development')
@rpc
def get(self, airport_id):
airport = self.redis.get(airport_id)
return airport
@rpc
def create(self, airport):
air... | 19.857143 | 44 | 0.659472 | 53 | 417 | 5.056604 | 0.415094 | 0.16791 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.256595 | 417 | 20 | 45 | 20.85 | 0.86129 | 0 | 0 | 0.133333 | 0 | 0 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
73196498306bcb2ab659c3ad51073f4f5a735e8a | 3,363 | py | Python | HPOTerms/diseaseToHPO.py | ecarl-glitch/LeukoDB | 57c39d431430fae9def5109b4d6aa457ef1a25cf | [
"MIT"
] | null | null | null | HPOTerms/diseaseToHPO.py | ecarl-glitch/LeukoDB | 57c39d431430fae9def5109b4d6aa457ef1a25cf | [
"MIT"
] | null | null | null | HPOTerms/diseaseToHPO.py | ecarl-glitch/LeukoDB | 57c39d431430fae9def5109b4d6aa457ef1a25cf | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Input files for this script are hpoTermDef.obo (downloaded from HPO, flat file of HPO term defs),
# OMIM_NumList.csv (list of OMIM Nums generated by OMIMdisease scripts, and phenotype_annotation.tab,
# a file downloaded from the online HPO, that maps HPO terms onto OMIM disea... | 35.03125 | 121 | 0.688373 | 476 | 3,363 | 4.783613 | 0.355042 | 0.024155 | 0.01054 | 0.020202 | 0.043039 | 0.02635 | 0 | 0 | 0 | 0 | 0 | 0.002264 | 0.212013 | 3,363 | 95 | 122 | 35.4 | 0.856981 | 0.452572 | 0 | 0.052632 | 1 | 0 | 0.172717 | 0.082508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
731a45879a8618064a0dae5c6b4ae6a4140bafbf | 1,140 | py | Python | tbx/core/wagtail_hooks.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/core/wagtail_hooks.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/core/wagtail_hooks.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | from django.core.files.storage import get_storage_class
from django.shortcuts import redirect
from django.utils.cache import add_never_cache_headers
from storages.backends.s3boto3 import S3Boto3Storage
from wagtail.core import hooks
from wagtail.documents import get_document_model
from wagtail.documents.models import ... | 32.571429 | 77 | 0.775439 | 154 | 1,140 | 5.519481 | 0.435065 | 0.035294 | 0.045882 | 0.070588 | 0.065882 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.150877 | 1,140 | 34 | 78 | 33.529412 | 0.865702 | 0.142982 | 0 | 0 | 0 | 0 | 0.067901 | 0.045267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
731eb43eae60170a187aa019888a913390775475 | 1,011 | py | Python | 1_variable_n_print.py | dev-gmmahs/python-example | 22087967412da68f9027f98a5453129587f40f23 | [
"MIT"
] | null | null | null | 1_variable_n_print.py | dev-gmmahs/python-example | 22087967412da68f9027f98a5453129587f40f23 | [
"MIT"
] | null | null | null | 1_variable_n_print.py | dev-gmmahs/python-example | 22087967412da68f9027f98a5453129587f40f23 | [
"MIT"
] | null | null | null | # 1. 변수 선언 및 사용
# name 변수에 "홍길동" 문자열 대입
name = "홍길동"
# age 변수에 정수 10 대입
age = 10
# height 변수에 150.24 실수 대입
height = 150.24
# family 변수에 리스트 저장
family = ["엄마", "아빠", "누나"]
# score 변수에 딕셔너리 저장
score = {
"국어": 98,
"수학": 100,
"영어": 82
}
# hands 변수에 튜플 저장
# 튜플은 값을 변경할 수 없습니다.
hands = (3, 7)
# ==========... | 19.075472 | 67 | 0.583581 | 189 | 1,011 | 3.121693 | 0.613757 | 0.042373 | 0.050847 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033206 | 0.225519 | 1,011 | 52 | 68 | 19.442308 | 0.720307 | 0.451039 | 0 | 0 | 0 | 0 | 0.244403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
732739555d67142ce28e4ad2388d2c7fe9e27980 | 5,046 | py | Python | tests/test_mailing_list.py | 0mars/mailgun-sdk | de69806ee0538a9269950fb600eff5174c4084b2 | [
"MIT"
] | null | null | null | tests/test_mailing_list.py | 0mars/mailgun-sdk | de69806ee0538a9269950fb600eff5174c4084b2 | [
"MIT"
] | null | null | null | tests/test_mailing_list.py | 0mars/mailgun-sdk | de69806ee0538a9269950fb600eff5174c4084b2 | [
"MIT"
] | null | null | null | import json
import unittest
from mock import patch, call
from mailgun_sdk.api import MailgunApi
from mailgun_sdk.mailing_list import MailingList
class MailingListTestCase(unittest.TestCase):
def setUp(self):
super(MailingListTestCase, self).setUp()
self.mailing_list = MailingList(MailgunApi())
... | 33.64 | 89 | 0.561038 | 497 | 5,046 | 5.511066 | 0.150905 | 0.049653 | 0.068273 | 0.09529 | 0.771815 | 0.739321 | 0.688938 | 0.654618 | 0.569186 | 0.439942 | 0 | 0.002011 | 0.310147 | 5,046 | 149 | 90 | 33.865772 | 0.784832 | 0 | 0 | 0.362205 | 0 | 0 | 0.180737 | 0.043995 | 0 | 0 | 0 | 0 | 0.141732 | 1 | 0.07874 | false | 0 | 0.03937 | 0 | 0.125984 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7328747797691f9a23b816566158c5da748cdcf2 | 381 | py | Python | Python3/0421-Maximum-XOR-of-Two-Numbers-in-an-Array/soln-1.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0421-Maximum-XOR-of-Two-Numbers-in-an-Array/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0421-Maximum-XOR-of-Two-Numbers-in-an-Array/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def findMaximumXOR(self, nums: List[int]) -> int:
mx = 0
for i in reversed(range(31)):
prefixes = set(num >> i for num in nums)
mx <<= 1
cand = mx + 1
for prefix in prefixes:
if (cand ^ prefix) in prefixes:
... | 29.307692 | 53 | 0.44357 | 44 | 381 | 3.840909 | 0.568182 | 0.035503 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024876 | 0.472441 | 381 | 12 | 54 | 31.75 | 0.81592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73296902b6242823b4b67b6d9e0f4dacdee7022b | 1,912 | py | Python | my/hackernews/dogsheep.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 69 | 2019-10-04T03:07:17.000Z | 2020-03-13T14:53:15.000Z | my/hackernews/dogsheep.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 1 | 2019-10-15T22:50:57.000Z | 2019-10-15T23:00:28.000Z | my/hackernews/dogsheep.py | aluhrs13/HPI | e750666e30e8987f3a4c46755857dc85dd64446c | [
"MIT"
] | 1 | 2020-01-02T12:13:18.000Z | 2020-01-02T12:13:18.000Z | """
Hackernews data via Dogsheep [[hacker-news-to-sqlite][https://github.com/dogsheep/hacker-news-to-sqlite]]
"""
from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from typing import Iterator, Sequence, Optional, Dict
from my.config import hackernews as user_config
... | 29.415385 | 121 | 0.669456 | 259 | 1,912 | 4.868726 | 0.486486 | 0.025377 | 0.028549 | 0.031721 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232741 | 1,912 | 64 | 122 | 29.875 | 0.859577 | 0.327929 | 0 | 0 | 0 | 0 | 0.024467 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.075 | false | 0 | 0.275 | 0.05 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73298435ea304c4bfa577fedb80db01bc226ec8c | 4,548 | py | Python | tests/state/test_ParallelToSerialConverter16To1.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/state/test_ParallelToSerialConverter16To1.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/state/test_ParallelToSerialConverter16To1.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | import bitwise as bw
class TestParallelToSerialConverter16To1:
def test_ParallelToSerialConverter16To1(self):
enable = bw.wire.Wire()
reset_n = bw.wire.Wire()
parallel_load_n = bw.wire.Wire()
data_1 = bw.wire.Wire()
data_2 = bw.wire.Wire()
data_3 = bw.wire.Wire()
... | 22.854271 | 70 | 0.48219 | 592 | 4,548 | 3.550676 | 0.077703 | 0.176974 | 0.146527 | 0.21313 | 0.614177 | 0.602284 | 0.602284 | 0.602284 | 0.596575 | 0.596575 | 0 | 0.08854 | 0.426341 | 4,548 | 198 | 71 | 22.969697 | 0.717133 | 0 | 0 | 0.529762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14881 | 1 | 0.005952 | false | 0 | 0.005952 | 0 | 0.017857 | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73318decb6bbd8281d3321a65a06238fc2ca4f1b | 304 | py | Python | neigh1/migrations/0030_delete_neighborhoodpost.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | null | null | null | neigh1/migrations/0030_delete_neighborhoodpost.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | 8 | 2020-06-06T00:20:09.000Z | 2022-02-10T10:40:46.000Z | neigh1/migrations/0030_delete_neighborhoodpost.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-29 11:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('neigh1', '0029_auto_20191029_1436'),
]
operations = [
migrations.DeleteModel(
name='NeighborhoodPost',
),
]
| 17.882353 | 47 | 0.615132 | 32 | 304 | 5.75 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 0.276316 | 304 | 16 | 48 | 19 | 0.690909 | 0.148026 | 0 | 0 | 1 | 0 | 0.175097 | 0.089494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
733221b186bbc67ea93cec86522bf6452fd395fa | 2,349 | py | Python | 03-movimiento-libre/pelicanconf.py | guivaloz/TallerPelican | 2c5e3faaff5ac94962de05a0cba4411fab16d2cd | [
"MIT"
] | null | null | null | 03-movimiento-libre/pelicanconf.py | guivaloz/TallerPelican | 2c5e3faaff5ac94962de05a0cba4411fab16d2cd | [
"MIT"
] | null | null | null | 03-movimiento-libre/pelicanconf.py | guivaloz/TallerPelican | 2c5e3faaff5ac94962de05a0cba4411fab16d2cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Sitio web
SITEURL = 'http://www.movimientolibre.com'
SITENAME = 'Movimiento Libre'
SITELOGO = 'theme/images/movimientolibre.png'
SITEDESCRIPTION = 'Plataforma de divulgación de conocimiento libre por Ing. Guillermo Valdés Lozano ... | 29 | 111 | 0.749255 | 297 | 2,349 | 5.760943 | 0.538721 | 0.040912 | 0.028054 | 0.033898 | 0.067797 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0.001007 | 0.154534 | 2,349 | 80 | 112 | 29.3625 | 0.860524 | 0.358025 | 0 | 0 | 0 | 0 | 0.373737 | 0.059259 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7332d5c62f61aa76de7250cebbbb2a918e6aa278 | 5,197 | py | Python | src/web/CygnusCloud/modules/database/tests/systemStatusDBTests.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | 3 | 2017-09-03T22:01:35.000Z | 2019-01-10T05:40:44.000Z | src/web/CygnusCloud/modules/database/tests/systemStatusDBTests.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | null | null | null | src/web/CygnusCloud/modules/database/tests/systemStatusDBTests.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF8 -*-
'''
Web status database unit tests
@author: Luis Barrios Hernández
@version: 1.1
'''
import unittest
from database.utils.configuration import DBConfigurator
from database.systemStatusDB.systemStatusDBReader import SystemStatusDatabaseReader
from database.systemStatusDB.systemStatusDBWriter impor... | 55.287234 | 137 | 0.66192 | 440 | 5,197 | 7.686364 | 0.231818 | 0.038439 | 0.029273 | 0.054701 | 0.369012 | 0.30751 | 0.196334 | 0.185393 | 0.148729 | 0.111768 | 0 | 0.039637 | 0.19415 | 5,197 | 94 | 138 | 55.287234 | 0.767908 | 0.018857 | 0 | 0.240506 | 0 | 0 | 0.260605 | 0.055774 | 0 | 0 | 0 | 0 | 0.113924 | 1 | 0.063291 | false | 0.063291 | 0.050633 | 0 | 0.126582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
73440792331f8da11e0c82008e34af7bc50eeeb3 | 706 | py | Python | Attendance_Management_System/vcet/student/migrations/0013_auto_20180330_1433.py | jainritik153/ATTENDANCE-MANAGEMENT-SYSTEM | 182be2e07f63e6c5d6207e7e7d3c0d9629608e68 | [
"MIT"
] | null | null | null | Attendance_Management_System/vcet/student/migrations/0013_auto_20180330_1433.py | jainritik153/ATTENDANCE-MANAGEMENT-SYSTEM | 182be2e07f63e6c5d6207e7e7d3c0d9629608e68 | [
"MIT"
] | null | null | null | Attendance_Management_System/vcet/student/migrations/0013_auto_20180330_1433.py | jainritik153/ATTENDANCE-MANAGEMENT-SYSTEM | 182be2e07f63e6c5d6207e7e7d3c0d9629608e68 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-30 14:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0012_auto_20180330_0607'),
]
operations = [
migrations.CreateModel(
name='Time',
fields=[
... | 27.153846 | 114 | 0.573654 | 71 | 706 | 5.577465 | 0.704225 | 0.075758 | 0.111111 | 0.131313 | 0.186869 | 0.186869 | 0.186869 | 0 | 0 | 0 | 0 | 0.070423 | 0.296034 | 706 | 25 | 115 | 28.24 | 0.726358 | 0.063739 | 0 | 0.105263 | 1 | 0 | 0.109256 | 0.034901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7345de8e20648570750ddcd158ef027084375113 | 4,886 | py | Python | tests/test_led_backpacks.py | rvoogd/StepperGauge | 81a513ac8508e387a081c2c0fc02140d4f37100d | [
"MIT"
] | null | null | null | tests/test_led_backpacks.py | rvoogd/StepperGauge | 81a513ac8508e387a081c2c0fc02140d4f37100d | [
"MIT"
] | null | null | null | tests/test_led_backpacks.py | rvoogd/StepperGauge | 81a513ac8508e387a081c2c0fc02140d4f37100d | [
"MIT"
] | null | null | null | # Raspberry Pi Physical Dashboard LED Backpack Widget Tests
# Author: Tony DiCola
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the... | 37.015152 | 93 | 0.707941 | 617 | 4,886 | 5.470016 | 0.275527 | 0.081778 | 0.084741 | 0.143407 | 0.635852 | 0.632593 | 0.609481 | 0.405037 | 0.328296 | 0.328296 | 0 | 0.043522 | 0.191158 | 4,886 | 131 | 94 | 37.29771 | 0.810476 | 0.272206 | 0 | 0.5625 | 0 | 0 | 0.063209 | 0 | 0 | 0 | 0.024943 | 0 | 0.025 | 1 | 0.3125 | false | 0 | 0.0375 | 0 | 0.3875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
734b16b206d0dad8bc3b94789535e95a85481fc7 | 1,833 | py | Python | tests/test_sync.py | P-EB/aiosmtplib | 662e13149c127a82f32425f2182ef11bf735b2a6 | [
"MIT"
] | 265 | 2015-04-07T11:58:56.000Z | 2022-03-17T19:52:54.000Z | tests/test_sync.py | P-EB/aiosmtplib | 662e13149c127a82f32425f2182ef11bf735b2a6 | [
"MIT"
] | 171 | 2015-04-08T08:24:03.000Z | 2022-02-11T18:03:16.000Z | tests/test_sync.py | P-EB/aiosmtplib | 662e13149c127a82f32425f2182ef11bf735b2a6 | [
"MIT"
] | 60 | 2015-02-17T21:23:26.000Z | 2022-01-07T18:01:04.000Z | """
Sync method tests.
"""
import pytest
from aiosmtplib.sync import async_to_sync
def test_sendmail_sync(
event_loop, smtp_client_threaded, sender_str, recipient_str, message_str
):
errors, response = smtp_client_threaded.sendmail_sync(
sender_str, [recipient_str], message_str
)
assert not ... | 24.77027 | 85 | 0.750136 | 239 | 1,833 | 5.359833 | 0.205021 | 0.070258 | 0.140515 | 0.059329 | 0.778298 | 0.740047 | 0.631538 | 0.631538 | 0.587041 | 0.587041 | 0 | 0.001319 | 0.172941 | 1,833 | 73 | 86 | 25.109589 | 0.843668 | 0.00982 | 0 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
734c2cd359e2c98fffa1e03c34f8174abc53db13 | 285 | py | Python | example.py | hikarimusic2002/BIOSTATS | ffd108c60fcf06073253380cc1d8b9fc448e8812 | [
"MIT"
] | null | null | null | example.py | hikarimusic2002/BIOSTATS | ffd108c60fcf06073253380cc1d8b9fc448e8812 | [
"MIT"
] | null | null | null | example.py | hikarimusic2002/BIOSTATS | ffd108c60fcf06073253380cc1d8b9fc448e8812 | [
"MIT"
] | null | null | null | import biostats as bs
import pandas as pd
# ---------------------------------------------------------------
#Basic
# Numeral
data = pd.read_csv("biostats/dataset/numeral.csv")
r1, r2, r3, r4 = bs.numeral(data, ["Fish", "Crab", "Temperature"])
print(r1)
print(r2)
print(r3)
print(r4)
| 20.357143 | 66 | 0.536842 | 36 | 285 | 4.222222 | 0.555556 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0.108772 | 285 | 13 | 67 | 21.923077 | 0.566929 | 0.266667 | 0 | 0 | 0 | 0 | 0.229268 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7352070cd9c4ea1036208c6c210a90e2d832229c | 3,669 | py | Python | geotrek/outdoor/serializers.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | geotrek/outdoor/serializers.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | geotrek/outdoor/serializers.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | import json
from django.conf import settings
from rest_framework import serializers as rest_serializers
from rest_framework.serializers import ModelSerializer, ReadOnlyField
from rest_framework_gis.fields import GeometryField
from rest_framework_gis.serializers import GeoFeatureModelSerializer
from geotrek.authent.se... | 40.766667 | 118 | 0.691197 | 312 | 3,669 | 8.016026 | 0.333333 | 0.047581 | 0.027189 | 0.015994 | 0.180728 | 0.180728 | 0.107157 | 0.107157 | 0.107157 | 0.063974 | 0 | 0.0007 | 0.221314 | 3,669 | 89 | 119 | 41.224719 | 0.874694 | 0.018806 | 0 | 0.264706 | 0 | 0 | 0.103698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.176471 | 0 | 0.602941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
735802831a29424c7785989466523c67c2b887e1 | 1,042 | py | Python | vku/ops/utils.py | esnya/blender-vroid-kemokko-utils | c3a94a442924bfa07110f65381ecbb93d0372e62 | [
"MIT"
] | null | null | null | vku/ops/utils.py | esnya/blender-vroid-kemokko-utils | c3a94a442924bfa07110f65381ecbb93d0372e62 | [
"MIT"
] | null | null | null | vku/ops/utils.py | esnya/blender-vroid-kemokko-utils | c3a94a442924bfa07110f65381ecbb93d0372e62 | [
"MIT"
] | null | null | null | import bpy
import re
import os
from itertools import chain
def get_default_prefix():
return re.sub(r'\.blend$', '', bpy.path.basename(bpy.data.filepath))
def get_mesh_objects(context):
return [o for o in context.scene.objects if o.type == 'MESH']
def rename_hierarcy(target, name, n = 1):
target.name = f'{name}... | 30.647059 | 99 | 0.735125 | 168 | 1,042 | 4.410714 | 0.363095 | 0.048583 | 0.080972 | 0.08637 | 0.224022 | 0.151147 | 0.151147 | 0 | 0 | 0 | 0 | 0.004376 | 0.122841 | 1,042 | 33 | 100 | 31.575758 | 0.806346 | 0 | 0 | 0.148148 | 0 | 0 | 0.055662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.148148 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
735ab1d9c2436d18206e714318f51fb95100521a | 3,435 | py | Python | samples/submit_data.py | bbaltz505/iotkit-libpy | 9ca29680c74f9118e4a31977f85c48aace84037f | [
"BSD-3-Clause"
] | null | null | null | samples/submit_data.py | bbaltz505/iotkit-libpy | 9ca29680c74f9118e4a31977f85c48aace84037f | [
"BSD-3-Clause"
] | null | null | null | samples/submit_data.py | bbaltz505/iotkit-libpy | 9ca29680c74f9118e4a31977f85c48aace84037f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2015, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | 39.94186 | 82 | 0.718486 | 468 | 3,435 | 5.198718 | 0.418803 | 0.017263 | 0.027127 | 0.036991 | 0.115906 | 0.055898 | 0.055898 | 0.055898 | 0.055898 | 0.055898 | 0 | 0.022841 | 0.184279 | 3,435 | 85 | 83 | 40.411765 | 0.845468 | 0.48559 | 0 | 0.125 | 0 | 0 | 0.120829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.0625 | null | null | 0.145833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
735f2f77959440e0b0deb4e0a1da3f7cfbfb5c95 | 9,952 | py | Python | plotly/validators/_scatter.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 1 | 2018-07-16T01:51:47.000Z | 2018-07-16T01:51:47.000Z | plotly/validators/_scatter.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | null | null | null | plotly/validators/_scatter.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 1 | 2019-02-18T04:12:56.000Z | 2019-02-18T04:12:56.000Z | import _plotly_utils.basevalidators
class ScatterValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name='scatter', parent_name='', **kwargs):
super(ScatterValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
da... | 45.031674 | 72 | 0.53748 | 1,127 | 9,952 | 4.718722 | 0.279503 | 0.032907 | 0.024445 | 0.041369 | 0.292215 | 0.256863 | 0.178639 | 0.146672 | 0.084618 | 0.084618 | 0 | 0.002798 | 0.425342 | 9,952 | 220 | 73 | 45.236364 | 0.927085 | 0 | 0 | 0.106481 | 0 | 0 | 0.960711 | 0.026527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00463 | false | 0 | 0.00463 | 0 | 0.013889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7363433e3f166e16b45a878c0efe17afac091e87 | 1,191 | py | Python | checkov/kubernetes/checks/resource/k8s/ApiServerEtcdCertAndKey.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/kubernetes/checks/resource/k8s/ApiServerEtcdCertAndKey.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/kubernetes/checks/resource/k8s/ApiServerEtcdCertAndKey.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from typing import Dict, Any
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class ApiServerEtcdCertAndKey(BaseK8sContainerCheck):
def __init__(self) -> None:
id = "CKV_K8S_99"
name = "Ensure that the --... | 39.7 | 101 | 0.644836 | 123 | 1,191 | 6.113821 | 0.536585 | 0.029255 | 0.026596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005734 | 0.267842 | 1,191 | 29 | 102 | 41.068966 | 0.856651 | 0 | 0 | 0 | 0 | 0 | 0.137699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.136364 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7364d8439c9d56b05fa91c88a5d9fd17f23c0a1e | 6,587 | py | Python | api/genie/views.py | rberrelleza/cuelake | cf765e822c2aaefb546ed8a9507ac4a0b0b9ce73 | [
"Apache-2.0"
] | null | null | null | api/genie/views.py | rberrelleza/cuelake | cf765e822c2aaefb546ed8a9507ac4a0b0b9ce73 | [
"Apache-2.0"
] | null | null | null | api/genie/views.py | rberrelleza/cuelake | cf765e822c2aaefb546ed8a9507ac4a0b0b9ce73 | [
"Apache-2.0"
] | 1 | 2021-05-21T08:17:14.000Z | 2021-05-21T08:17:14.000Z | from django.http import HttpRequest
from rest_framework.views import APIView
from rest_framework.response import Response
from genie.services import NotebookJobServices, Connections, NotebookTemplateService
from rest_framework.decorators import api_view
class NotebookOperationsView(APIView):
"""
Class to get n... | 33.607143 | 102 | 0.676788 | 671 | 6,587 | 6.621461 | 0.195231 | 0.081927 | 0.099482 | 0.12289 | 0.534324 | 0.489309 | 0.355165 | 0.346613 | 0.334009 | 0.210894 | 0 | 0.000387 | 0.215728 | 6,587 | 196 | 103 | 33.607143 | 0.859659 | 0.136481 | 0 | 0.483051 | 0 | 0 | 0.03875 | 0 | 0 | 0 | 0 | 0.005102 | 0 | 1 | 0.186441 | false | 0 | 0.042373 | 0 | 0.516949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7dfb8a57fde259068faed120a3c7a0ec9e8b551c | 5,316 | py | Python | crow_nlp/src/nlp_crow/modules/GrammarParser.py | stepakar/imitrob_project | 837690c1e6b6eb081cd3a5af929d13ec0fdff6ff | [
"BSD-3-Clause"
] | 2 | 2020-04-20T10:51:22.000Z | 2021-01-14T16:47:26.000Z | crow_nlp/src/nlp_crow/modules/GrammarParser.py | stepakar/imitrob_project | 837690c1e6b6eb081cd3a5af929d13ec0fdff6ff | [
"BSD-3-Clause"
] | null | null | null | crow_nlp/src/nlp_crow/modules/GrammarParser.py | stepakar/imitrob_project | 837690c1e6b6eb081cd3a5af929d13ec0fdff6ff | [
"BSD-3-Clause"
] | 1 | 2021-01-14T16:45:24.000Z | 2021-01-14T16:45:24.000Z | #!/usr/bin/env python
"""
Copyright (c) 2019 CIIRC, CTU in Prague
All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the
LICENSE file in the root directory of this source tree.
@author: Zdenek Kasner
"""
import logging
from typing import Any, List
from nltk import ParentedTree
... | 30.551724 | 118 | 0.619074 | 647 | 5,316 | 4.96136 | 0.265842 | 0.043614 | 0.013707 | 0.019626 | 0.168224 | 0.098442 | 0.053583 | 0.032399 | 0.032399 | 0.032399 | 0 | 0.002425 | 0.301919 | 5,316 | 174 | 119 | 30.551724 | 0.862571 | 0.409142 | 0 | 0.105263 | 0 | 0 | 0.011786 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.105263 | false | 0 | 0.140351 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dfd71eaa60149ed871390509279b83fb8a8cde6 | 999 | py | Python | atol/migrations/0002_receipt_retried_at.py | MyBook/django-atol | 825f64a71235a4745469f8ab57043b03fa0298de | [
"BSD-3-Clause"
] | 2 | 2019-05-19T15:50:04.000Z | 2021-05-28T12:13:11.000Z | atol/migrations/0002_receipt_retried_at.py | MyBook/django-atol | 825f64a71235a4745469f8ab57043b03fa0298de | [
"BSD-3-Clause"
] | 14 | 2017-12-01T13:55:17.000Z | 2021-10-05T13:36:35.000Z | atol/migrations/0002_receipt_retried_at.py | MyBook/django-atol | 825f64a71235a4745469f8ab57043b03fa0298de | [
"BSD-3-Clause"
] | 5 | 2018-01-18T11:25:45.000Z | 2020-12-17T12:53:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-13 09:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atol', '0001_initial'),
]
operations = [
migrations.AddField(
m... | 38.423077 | 373 | 0.648649 | 108 | 999 | 5.87037 | 0.666667 | 0.050473 | 0.107256 | 0.063091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029299 | 0.214214 | 999 | 25 | 374 | 39.96 | 0.778344 | 0.068068 | 0 | 0.222222 | 1 | 0 | 0.34806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dfe879af20eec210ef250cf9da094487f8e594f | 970 | py | Python | server.py | jonathanstaniforth/train-performance-app | 903534e0f55607f5e7eead1418f130fe5a6ea884 | [
"MIT"
] | null | null | null | server.py | jonathanstaniforth/train-performance-app | 903534e0f55607f5e7eead1418f130fe5a6ea884 | [
"MIT"
] | 16 | 2021-12-12T12:02:37.000Z | 2022-01-01T14:28:39.000Z | server.py | jonathanstaniforth/will-my-train-arrive | 903534e0f55607f5e7eead1418f130fe5a6ea884 | [
"MIT"
] | null | null | null | from base64 import standard_b64encode
from aiohttp import ClientSession
from jinja2 import PackageLoader
from blacksheep.server import Application
from blacksheep.server.templating import use_templates
from app import controllers
from app.configuration import config
app = Application(show_error_details=config.show_e... | 30.3125 | 129 | 0.778351 | 124 | 970 | 5.846774 | 0.451613 | 0.110345 | 0.089655 | 0.06069 | 0.063448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008235 | 0.123711 | 970 | 31 | 130 | 31.290323 | 0.844706 | 0 | 0 | 0 | 0 | 0 | 0.142268 | 0.052577 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7dff3ea3b67f4f6c11b203e9c12381de18688a9c | 9,684 | py | Python | plugins/commands.py | Pradeep-iKp/URL-Shortner-Bot-V2 | 62d4e50e3b9f2f59275277abde0800938ace7100 | [
"MIT"
] | 1 | 2021-09-22T22:19:15.000Z | 2021-09-22T22:19:15.000Z | plugins/commands.py | MeIzSaiPranav/URL-Shortner-Bot-V2 | c38b74ff4d51948bcdd22fca1d7a69fe5eb13f99 | [
"MIT"
] | null | null | null | plugins/commands.py | MeIzSaiPranav/URL-Shortner-Bot-V2 | c38b74ff4d51948bcdd22fca1d7a69fe5eb13f99 | [
"MIT"
] | null | null | null | # Author: Fayas (https://github.com/FayasNoushad) (@FayasNoushad)
from .admin import *
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
START_TEXT = """Hello {} 😌
I am a link shortner telegram bot.
>> `I can short any type of link`
Made by @FayasNoushad"""... | 39.206478 | 101 | 0.665428 | 1,244 | 9,684 | 5.086013 | 0.143891 | 0.091038 | 0.166904 | 0.187135 | 0.72483 | 0.593172 | 0.339023 | 0.30441 | 0.248933 | 0.174174 | 0 | 0.001891 | 0.18071 | 9,684 | 246 | 102 | 39.365854 | 0.787119 | 0.006506 | 0 | 0.342593 | 0 | 0 | 0.205011 | 0 | 0 | 0 | 0.001559 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.013889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b400fd372ef4a504ce034bf9a1333d949f9e9301 | 1,068 | py | Python | practice/3_basic_tensorflow/Example_Matrix.py | rabbitsun2/toy_python | 32f84b4d15b13c4daa4fa212a40e685abc0d2a5d | [
"Apache-2.0"
] | null | null | null | practice/3_basic_tensorflow/Example_Matrix.py | rabbitsun2/toy_python | 32f84b4d15b13c4daa4fa212a40e685abc0d2a5d | [
"Apache-2.0"
] | null | null | null | practice/3_basic_tensorflow/Example_Matrix.py | rabbitsun2/toy_python | 32f84b4d15b13c4daa4fa212a40e685abc0d2a5d | [
"Apache-2.0"
] | null | null | null | from audioop import add
from numpy import mat
import tensorflow as tf
# 2차원 배열 정의
list_of_list = [[10, 20], [30, 40]]
# 텐서 변환 - constant 함수에 2차원 배열 입력
mat1 = tf.constant(list_of_list)
# 랭크 확인
print("rank:", tf.rank(mat1))
# 텐서 출력
print("mat1:", mat1)
# 1차원 벡터 정의
vec1 = tf.constant([1, 0])
vec2 = tf.constant([-1, 2... | 17.8 | 42 | 0.666667 | 188 | 1,068 | 3.696809 | 0.340426 | 0.090647 | 0.110791 | 0.151079 | 0.148201 | 0.054676 | 0 | 0 | 0 | 0 | 0 | 0.048458 | 0.149813 | 1,068 | 59 | 43 | 18.101695 | 0.71696 | 0.166667 | 0 | 0 | 0 | 0 | 0.091533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.533333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b4015ee9dfe2884c514a92c863d7f9ed98556aa5 | 1,068 | py | Python | core/service/authapi.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | core/service/authapi.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | core/service/authapi.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Authenticated API
# ----------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ------------------------------------------------------------... | 28.864865 | 90 | 0.581461 | 108 | 1,068 | 5.564815 | 0.564815 | 0.036606 | 0.02995 | 0.043261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016502 | 0.148876 | 1,068 | 36 | 91 | 29.666667 | 0.644664 | 0.339888 | 0 | 0 | 0 | 0 | 0.0317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.055556 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4016ff19965a0d90ad996ffbf72ed95a0835062 | 1,386 | py | Python | netmiko/hp/hp_procurve_ssh.py | r2r-dev/netmiko | 740dfc0ae5c9d401ab3eda1b28747fc7a1d84aa0 | [
"MIT"
] | 1 | 2021-11-16T11:37:00.000Z | 2021-11-16T11:37:00.000Z | netmiko/hp/hp_procurve_ssh.py | r2r-dev/netmiko | 740dfc0ae5c9d401ab3eda1b28747fc7a1d84aa0 | [
"MIT"
] | null | null | null | netmiko/hp/hp_procurve_ssh.py | r2r-dev/netmiko | 740dfc0ae5c9d401ab3eda1b28747fc7a1d84aa0 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import unicode_literals
import re
import time
from netmiko.cisco_base_connection import CiscoSSHConnection
class HPProcurveSSH(CiscoSSHConnection):
def session_preparation(self):
"""
Prepare the session after the connection has been establishe... | 33 | 78 | 0.655844 | 164 | 1,386 | 5.304878 | 0.5 | 0.075862 | 0.051724 | 0.051724 | 0.234483 | 0.203448 | 0.203448 | 0.203448 | 0.111494 | 0.111494 | 0 | 0.009681 | 0.25469 | 1,386 | 41 | 79 | 33.804878 | 0.832527 | 0.117605 | 0 | 0.172414 | 0 | 0 | 0.059022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.172414 | 0 | 0.310345 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b405aeda84251c56857c2f0da138af8f4d488325 | 1,167 | py | Python | test_istanbul-setup.py | jon-eric/istanbul-setup | eb2619767721306143c601296eb88509e4766521 | [
"MIT"
] | null | null | null | test_istanbul-setup.py | jon-eric/istanbul-setup | eb2619767721306143c601296eb88509e4766521 | [
"MIT"
] | null | null | null | test_istanbul-setup.py | jon-eric/istanbul-setup | eb2619767721306143c601296eb88509e4766521 | [
"MIT"
] | null | null | null | """Tests for istanbul-setup.py.
"""
import functools
istanbul_setup = __import__('istanbul-setup')
Board = functools.partial(istanbul_setup.Board, shuffle=False)
def test_inner():
assert len(Board().inner) == 4, "A 4x4 Base board should have 4 Fountain spaces."
assert len(Board(mocha=Tr... | 58.35 | 133 | 0.662382 | 160 | 1,167 | 4.76875 | 0.2875 | 0.08519 | 0.073395 | 0.090433 | 0.433814 | 0.331586 | 0.331586 | 0.238532 | 0.238532 | 0.123198 | 0 | 0.017738 | 0.227078 | 1,167 | 20 | 134 | 58.35 | 0.82816 | 0.023993 | 0 | 0 | 0 | 0 | 0.386584 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4082a795b8b50320defcc45d400ab395b8e9bd5 | 5,273 | py | Python | drafthorse/models/tradelines.py | olf42/python-drafthorse | 0ef0326556ad0336236fd8d91cb32e8343ebd592 | [
"Apache-2.0"
] | null | null | null | drafthorse/models/tradelines.py | olf42/python-drafthorse | 0ef0326556ad0336236fd8d91cb32e8343ebd592 | [
"Apache-2.0"
] | null | null | null | drafthorse/models/tradelines.py | olf42/python-drafthorse | 0ef0326556ad0336236fd8d91cb32e8343ebd592 | [
"Apache-2.0"
] | null | null | null | from . import BASIC, COMFORT, EXTENDED, NS_RAM
from .accounting import (AccountingAccount, ApplicableTradeTax,
BillingSpecifiedPeriod, TradeAllowanceCharge)
from .delivery import SupplyChainEvent
from .elements import Element
from .fields import (CurrencyField, Field, MultiField, QuantityField,... | 41.519685 | 117 | 0.67912 | 417 | 5,273 | 8.465228 | 0.29976 | 0.077337 | 0.11898 | 0.111048 | 0.211048 | 0.169972 | 0.118414 | 0.118414 | 0.118414 | 0.118414 | 0 | 0 | 0.249573 | 5,273 | 126 | 118 | 41.849206 | 0.89209 | 0 | 0 | 0.27 | 0 | 0 | 0.117011 | 0.05879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b416a2da399ff504839b88096356185ccc262f49 | 10,643 | py | Python | mathchem/utilities.py | Deepika249/mathchem-package | 138ab54e57a727a5cd84c371ec24db56f254d21b | [
"MIT"
] | 4 | 2015-11-09T12:19:43.000Z | 2022-03-03T07:39:03.000Z | mathchem/utilities.py | Deepika249/mathchem-package | 138ab54e57a727a5cd84c371ec24db56f254d21b | [
"MIT"
] | null | null | null | mathchem/utilities.py | Deepika249/mathchem-package | 138ab54e57a727a5cd84c371ec24db56f254d21b | [
"MIT"
] | 7 | 2018-10-23T06:42:02.000Z | 2021-04-06T22:19:47.000Z | from mathchem import *
def batch_process(infile, file_format, outfile, function, hydrogens=False) :
""" Read file molecule-by-molecule and apply a <function> to each molecule
Good for large files containing thousands of molecules
"""
f_out = open(outfile, 'w')
f_in = open(infile, 'r... | 23.703786 | 149 | 0.511886 | 1,477 | 10,643 | 3.599188 | 0.180095 | 0.016366 | 0.039127 | 0.019187 | 0.497555 | 0.454289 | 0.422874 | 0.40143 | 0.34462 | 0.330324 | 0 | 0.030457 | 0.352156 | 10,643 | 448 | 150 | 23.756696 | 0.740537 | 0.100066 | 0 | 0.517647 | 0 | 0.011765 | 0.066574 | 0.014316 | 0 | 0 | 0 | 0.006696 | 0 | 0 | null | null | 0 | 0.011765 | null | null | 0.007843 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b416dbd912e8e8a5069e3656f718ac2429bb1e63 | 5,696 | py | Python | scanpipe/pipes/outputs.py | cco3/scancode.io | 38fbe1adb5344d0b674ae54d054fb365df6a902a | [
"Apache-2.0"
] | null | null | null | scanpipe/pipes/outputs.py | cco3/scancode.io | 38fbe1adb5344d0b674ae54d054fb365df6a902a | [
"Apache-2.0"
] | null | null | null | scanpipe/pipes/outputs.py | cco3/scancode.io | 38fbe1adb5344d0b674ae54d054fb365df6a902a | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
#
# http://nexb.com and https://github.com/nexB/scancode.io
# The ScanCode.io software is licensed under the Apache License version 2.0.
# Data generated with ScanCode.io is provided as-is without warranties.
# ScanCode is a trademark of nexB Inc.
#
# You may not use this software ... | 36.512821 | 87 | 0.696103 | 727 | 5,696 | 5.368638 | 0.310867 | 0.025621 | 0.009224 | 0.019985 | 0.212913 | 0.167563 | 0.125032 | 0.08865 | 0.08865 | 0.062516 | 0 | 0.001581 | 0.222788 | 5,696 | 155 | 88 | 36.748387 | 0.880054 | 0.385358 | 0 | 0.025641 | 1 | 0 | 0.048157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.102564 | 0.012821 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41cb6d8ce2254c32decd055acef62655f884d88 | 651 | py | Python | application_form/migrations/0036_alter_apartmentreservation_application_apartment.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 1 | 2021-03-15T11:29:12.000Z | 2021-03-15T11:29:12.000Z | application_form/migrations/0036_alter_apartmentreservation_application_apartment.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 130 | 2020-09-07T08:30:29.000Z | 2022-03-29T11:49:27.000Z | application_form/migrations/0036_alter_apartmentreservation_application_apartment.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 4 | 2020-09-07T05:34:13.000Z | 2021-11-07T12:51:21.000Z | # Generated by Django 3.2.6 on 2021-12-22 14:14
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("application_form", "0035_remove_applicationapartment_state"),
]
operations = [
migrations.AlterField(
... | 27.125 | 71 | 0.634409 | 61 | 651 | 6.606557 | 0.639344 | 0.059553 | 0.069479 | 0.109181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040084 | 0.271889 | 651 | 23 | 72 | 28.304348 | 0.810127 | 0.069124 | 0 | 0.117647 | 1 | 0 | 0.253311 | 0.193709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41ece088d8e63a83730a3a92214d8d740475ff0 | 801 | py | Python | package_bootstrap/__init__.py | ginanjarn/SublimeScraps | 003952db5e6f08018693a13a95bdb6d7dbf5e516 | [
"MIT"
] | 61 | 2017-10-10T22:41:51.000Z | 2022-03-26T16:55:43.000Z | package_bootstrap/__init__.py | OdatNurd/SublimeScraps | e9f97d2abc2a182ccec4a7ac8fa56e0911ef4c5c | [
"MIT"
] | 13 | 2017-09-23T23:09:55.000Z | 2021-11-13T07:20:23.000Z | package_bootstrap/__init__.py | OdatNurd/SublimeScraps | e9f97d2abc2a182ccec4a7ac8fa56e0911ef4c5c | [
"MIT"
] | 14 | 2017-10-23T17:15:21.000Z | 2022-03-11T06:04:51.000Z | ### ---------------------------------------------------------------------------
from .core.startup import initialize
from .sublime import commands, events
__version_tuple = (1, 0, 0)
__version__ = ".".join([str(num) for num in __version_tuple])
### ------------------------------------------------------------------... | 22.885714 | 79 | 0.399501 | 62 | 801 | 4.887097 | 0.629032 | 0.118812 | 0.138614 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004431 | 0.154806 | 801 | 34 | 80 | 23.558824 | 0.443131 | 0.575531 | 0 | 0 | 0 | 0 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4250cdad527d4f7d84b5156f28125dab8e0b614 | 774 | py | Python | chartmogul/api/plan_group_plans.py | chartmogul/chartmogul-python | ebca3f79a5670cbebc8ba6cdde4081b4f6aa801b | [
"MIT"
] | 9 | 2017-02-08T05:37:03.000Z | 2022-03-05T16:37:05.000Z | chartmogul/api/plan_group_plans.py | chartmogul/chartmogul-python | ebca3f79a5670cbebc8ba6cdde4081b4f6aa801b | [
"MIT"
] | 39 | 2017-02-14T17:48:03.000Z | 2022-03-21T08:27:18.000Z | chartmogul/api/plan_group_plans.py | chartmogul/chartmogul-python | ebca3f79a5670cbebc8ba6cdde4081b4f6aa801b | [
"MIT"
] | 9 | 2017-02-14T14:07:25.000Z | 2021-03-12T13:25:08.000Z | from marshmallow import Schema, fields, post_load, EXCLUDE
from ..resource import Resource
from collections import namedtuple
class PlanGroupPlans(Resource):
"""
https://dev.chartmogul.com/v1.0/reference#plan_groups
"""
_path = "/plan_groups{/uuid}/plans"
_root_key = 'plans'
_many = namedtuple... | 28.666667 | 84 | 0.656331 | 85 | 774 | 5.741176 | 0.564706 | 0.122951 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003339 | 0.226098 | 774 | 26 | 85 | 29.769231 | 0.811352 | 0.068475 | 0 | 0 | 0 | 0 | 0.095035 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b4265692f8bd1d92a0d522407ddd3ca2267383e0 | 27,660 | py | Python | fungiform/utils.py | mitsuhiko/fungiform | 08232b50f78cdb0f4b7c64a28bec843bdc50ed7f | [
"BSD-3-Clause"
] | 7 | 2015-01-29T18:59:03.000Z | 2017-09-04T08:21:15.000Z | fungiform/utils.py | mitsuhiko/fungiform | 08232b50f78cdb0f4b7c64a28bec843bdc50ed7f | [
"BSD-3-Clause"
] | null | null | null | fungiform/utils.py | mitsuhiko/fungiform | 08232b50f78cdb0f4b7c64a28bec843bdc50ed7f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
fungiform.utils
~~~~~~~~~~~~~~~
Various utilities.
:copyright: (c) 2010 by the Fungiform Team.
:license: BSD, see LICENSE for more details.
"""
import re
import urllib
from copy import deepcopy
from itertools import izip, imap
from datetime import datetime, date
from ti... | 31.611429 | 79 | 0.586298 | 3,513 | 27,660 | 4.457159 | 0.175349 | 0.012262 | 0.010729 | 0.002555 | 0.178503 | 0.12409 | 0.095734 | 0.079831 | 0.044706 | 0.033976 | 0 | 0.005957 | 0.27773 | 27,660 | 874 | 80 | 31.647597 | 0.777806 | 0.03637 | 0 | 0.206316 | 0 | 0 | 0.052912 | 0.003661 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008421 | 0.018947 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4280c45a4914350b978694659be9cb04d4a088f | 325 | py | Python | example/market/get_market_trade.py | causejeff/huobi_Python | a0b8b9c3496d812c6f153765d520abfbfda94350 | [
"Apache-2.0"
] | null | null | null | example/market/get_market_trade.py | causejeff/huobi_Python | a0b8b9c3496d812c6f153765d520abfbfda94350 | [
"Apache-2.0"
] | null | null | null | example/market/get_market_trade.py | causejeff/huobi_Python | a0b8b9c3496d812c6f153765d520abfbfda94350 | [
"Apache-2.0"
] | null | null | null | from huobi.client.market import MarketClient
from huobi.utils import *
market_client = MarketClient(api_key="56f62d38-3f50e5a3-ed2htwf5tf-5083d", secret_key="20718585-1111d314-fda942fa-d161d", url="https://api.huobi.pro")
list_obj = market_client.get_market_trade(symbol="eosusdt")
LogInfo.output_list(list_obj)
... | 17.105263 | 150 | 0.787692 | 44 | 325 | 5.613636 | 0.659091 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128814 | 0.092308 | 325 | 18 | 151 | 18.055556 | 0.708475 | 0 | 0 | 0 | 0 | 0 | 0.300319 | 0.210863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b42c85a42465d49a9278db57937460fda8da6fda | 193 | py | Python | api/api.py | Naceine/diagnosis | 0068fcd597d7607aee1723a551ba47e72047e098 | [
"BSD-3-Clause"
] | 3 | 2019-09-29T11:13:38.000Z | 2021-12-11T03:23:12.000Z | api/api.py | victor-iyiola/diagnosis | 0068fcd597d7607aee1723a551ba47e72047e098 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T00:36:16.000Z | 2022-02-10T00:36:16.000Z | api/api.py | Naceine/diagnosis | 0068fcd597d7607aee1723a551ba47e72047e098 | [
"BSD-3-Clause"
] | 3 | 2020-06-04T15:50:08.000Z | 2021-11-26T14:14:36.000Z | from flask import jsonify
from api.app import app
@app.route('/', methods=['GET'])
def api_index():
resp = {
'status': 200,
'error': None,
}
return jsonify(resp)
| 14.846154 | 32 | 0.569948 | 24 | 193 | 4.541667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.274611 | 193 | 12 | 33 | 16.083333 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b42d0860d326f252e3f8f919a717047c0d96d0c2 | 1,146 | py | Python | DIY trading CRYPTO.py | CalmSticks/stock-trading-bot | 8e8bba414e92b3b823b943a32d140d5dad07718f | [
"MIT"
] | null | null | null | DIY trading CRYPTO.py | CalmSticks/stock-trading-bot | 8e8bba414e92b3b823b943a32d140d5dad07718f | [
"MIT"
] | null | null | null | DIY trading CRYPTO.py | CalmSticks/stock-trading-bot | 8e8bba414e92b3b823b943a32d140d5dad07718f | [
"MIT"
] | null | null | null | import yfinance as yf
import util
from time import time
import alpaca_trade_api as tradeapi
import credentials as cred
from datetime import datetime
import constants as const
from threading import Event
import time
import alpaca
#ticker = input("Enter ticker to buy: ")
#amount = input("Enter amount of shares to purchas... | 24.382979 | 102 | 0.658813 | 172 | 1,146 | 4.226744 | 0.459302 | 0.02751 | 0.044017 | 0.060523 | 0.181568 | 0.181568 | 0.181568 | 0.181568 | 0.099037 | 0.099037 | 0 | 0.018994 | 0.219023 | 1,146 | 46 | 103 | 24.913043 | 0.793296 | 0.109075 | 0 | 0 | 0 | 0 | 0.093596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.344828 | 0 | 0.344828 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b42dbd4cec037859269fd03b16c68ae4fbf5c8b6 | 116 | py | Python | config.py | urkonn/shogun | fbbd9dfd5773d223949d1030c954e81fd353f175 | [
"MIT"
] | null | null | null | config.py | urkonn/shogun | fbbd9dfd5773d223949d1030c954e81fd353f175 | [
"MIT"
] | null | null | null | config.py | urkonn/shogun | fbbd9dfd5773d223949d1030c954e81fd353f175 | [
"MIT"
] | null | null | null | #
class BaseConfig(object):
DEBUG = True
class TestConfig(BaseConfig):
DEBUG = False
TESTING = True
| 10.545455 | 29 | 0.655172 | 12 | 116 | 6.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 116 | 10 | 30 | 11.6 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4329b9c7456b8288aabc414f5340a5ca1e384f2 | 3,342 | py | Python | accounts/models.py | DeepthansuGVS/DebatePortal | fa4de36ea8744df381ea74e0a2aee3f53cbca544 | [
"bzip2-1.0.6"
] | null | null | null | accounts/models.py | DeepthansuGVS/DebatePortal | fa4de36ea8744df381ea74e0a2aee3f53cbca544 | [
"bzip2-1.0.6"
] | null | null | null | accounts/models.py | DeepthansuGVS/DebatePortal | fa4de36ea8744df381ea74e0a2aee3f53cbca544 | [
"bzip2-1.0.6"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.conf import settings
from django.dispatch import receiver
from django.db.models.signals import post_save
from django.utils.translation import gettext_lazy as _
# Create your models here.
class User(AbstractUser) :
cla... | 30.108108 | 124 | 0.726212 | 418 | 3,342 | 5.650718 | 0.217703 | 0.063506 | 0.076207 | 0.101609 | 0.596528 | 0.557155 | 0.525402 | 0.49492 | 0.471634 | 0.471634 | 0 | 0.010954 | 0.153202 | 3,342 | 110 | 125 | 30.381818 | 0.823675 | 0.007181 | 0 | 0.2 | 0 | 0 | 0.056646 | 0.012043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.822222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b4389fd3003198188d9e6570a574de6285d961cc | 66,232 | py | Python | hubspot/cms/domains/models/domain.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 1 | 2020-11-12T08:46:32.000Z | 2020-11-12T08:46:32.000Z | hubspot/cms/domains/models/domain.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | hubspot/cms/domains/models/domain.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Domains
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubsp... | 31.022014 | 151 | 0.608981 | 8,003 | 66,232 | 4.701612 | 0.036611 | 0.065698 | 0.076541 | 0.076541 | 0.748239 | 0.659712 | 0.622771 | 0.517953 | 0.447604 | 0.333484 | 0 | 0.020613 | 0.312206 | 66,232 | 2,134 | 152 | 31.036551 | 0.805374 | 0.266593 | 0 | 0.251265 | 1 | 0 | 0.156822 | 0.029949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106239 | false | 0.000843 | 0.003373 | 0 | 0.168634 | 0.001686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b43ae79b6a1588f8d67962087b2a0eb70f636f0a | 801 | py | Python | blender/arm/logicnode/rp_shadow_quality.py | ValtoGameEngines/Armory | ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32 | [
"Zlib"
] | 1 | 2021-03-17T05:51:45.000Z | 2021-03-17T05:51:45.000Z | blender/arm/logicnode/rp_shadow_quality.py | ValtoGameEngines/Armory | ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32 | [
"Zlib"
] | 1 | 2019-12-13T08:16:20.000Z | 2019-12-13T08:16:20.000Z | blender/arm/logicnode/rp_shadow_quality.py | ValtoGameEngines/Armory | ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32 | [
"Zlib"
] | 1 | 2020-06-29T07:54:21.000Z | 2020-06-29T07:54:21.000Z | import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class RpShadowQualityNode(Node, ArmLogicTreeNode):
'''Configure shadow quality node'''
bl_idname = 'LNRpShadowQualityNode'
bl_label = 'Rp Shadow Quality'
bl_icon = 'CURVE_PATH'
property0:... | 32.04 | 54 | 0.62422 | 82 | 801 | 6.012195 | 0.597561 | 0.028398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003273 | 0.237204 | 801 | 25 | 55 | 32.04 | 0.803601 | 0.036205 | 0 | 0 | 0 | 0 | 0.202086 | 0.027379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b43d1aabd03c099647f56178e9b5ca8035d73bf2 | 2,272 | py | Python | smartsim/_core/launcher/pbs/pbsCommands.py | billschereriii/SmartSim | 7ef4cffeba23fe19b931bdae819f4de99bb112a3 | [
"BSD-2-Clause"
] | null | null | null | smartsim/_core/launcher/pbs/pbsCommands.py | billschereriii/SmartSim | 7ef4cffeba23fe19b931bdae819f4de99bb112a3 | [
"BSD-2-Clause"
] | null | null | null | smartsim/_core/launcher/pbs/pbsCommands.py | billschereriii/SmartSim | 7ef4cffeba23fe19b931bdae819f4de99bb112a3 | [
"BSD-2-Clause"
] | null | null | null | # BSD 2-Clause License
#
# Copyright (c) 2021-2022, Hewlett Packard Enterprise
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright... | 33.910448 | 80 | 0.723592 | 323 | 2,272 | 5.071207 | 0.439628 | 0.029304 | 0.03663 | 0.027473 | 0.305861 | 0.276557 | 0.260073 | 0.260073 | 0.260073 | 0.260073 | 0 | 0.006111 | 0.207746 | 2,272 | 66 | 81 | 34.424242 | 0.903889 | 0.775968 | 0 | 0.307692 | 0 | 0 | 0.031707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b43d897c90f175a645e08c2d960a614109c1ee06 | 2,049 | py | Python | subdomain/middleware.py | skmezanul/seahub | abebe2d7cedb4deb6d0a3faea7cc7465d1106d4e | [
"Apache-2.0"
] | 1 | 2019-06-25T06:52:58.000Z | 2019-06-25T06:52:58.000Z | subdomain/middleware.py | vigossjjj/seahub | 9960918b7689c9011129a57436400aed4f545546 | [
"Apache-2.0"
] | null | null | null | subdomain/middleware.py | vigossjjj/seahub | 9960918b7689c9011129a57436400aed4f545546 | [
"Apache-2.0"
] | null | null | null | from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponseRedirect, Http404
from seahub.settings import USE_SUBDOMAIN
class SubdomainMiddleware(object):
def process_request(self, request):
if not request.user.is_authenticated() or not USE_SUBDOMAIN:
return No... | 42.6875 | 110 | 0.612494 | 222 | 2,049 | 5.445946 | 0.297297 | 0.064516 | 0.045492 | 0.105873 | 0.440033 | 0.367246 | 0.315964 | 0.315964 | 0.215054 | 0.215054 | 0 | 0.006215 | 0.293314 | 2,049 | 47 | 111 | 43.595745 | 0.828729 | 0.016105 | 0 | 0.324324 | 0 | 0 | 0.084948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.243243 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b442d78c1c41f1ac7c35b1a42bce683d2626e8e3 | 3,275 | py | Python | intervul/datFiles/problem_data/_definitions.py | mpacheco62/intervul | c0eaadf54580de4b3c2dea46e8f196eab52280e1 | [
"MIT"
] | 1 | 2021-04-13T13:28:16.000Z | 2021-04-13T13:28:16.000Z | intervul/datFiles/problem_data/_definitions.py | andresutrera/intervul | 75c5f824067549b3ddcbe9fe667964fb85a05ce3 | [
"MIT"
] | null | null | null | intervul/datFiles/problem_data/_definitions.py | andresutrera/intervul | 75c5f824067549b3ddcbe9fe667964fb85a05ce3 | [
"MIT"
] | 1 | 2021-05-06T20:29:42.000Z | 2021-05-06T20:29:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .._common import Base_dat
class _Problem_data(Base_dat):
pass
class Seepage(_Problem_data):
def __str__(self):
return "SEEPAGE"
class Structural_continuum(_Problem_data):
def __str__(self):
return "STRUCTURAL,CONTINUUM"
class Structu... | 23.731884 | 74 | 0.54687 | 361 | 3,275 | 4.623269 | 0.218837 | 0.08568 | 0.100659 | 0.105452 | 0.280407 | 0.280407 | 0.150989 | 0.106651 | 0.106651 | 0.106651 | 0 | 0.012425 | 0.336489 | 3,275 | 137 | 75 | 23.905109 | 0.755637 | 0.016183 | 0 | 0.258065 | 0 | 0 | 0.127058 | 0.017086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172043 | false | 0.010753 | 0.010753 | 0.11828 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b451cd7d631ccdeb4f22757d3cf4b399dab11ba6 | 2,442 | py | Python | tests_prometheus_udp_gateway.py | anegramotnov/prometheus_udp_gateway | 08e20bfde6fecdb687d2ed62ffd1d393fa498253 | [
"WTFPL"
] | null | null | null | tests_prometheus_udp_gateway.py | anegramotnov/prometheus_udp_gateway | 08e20bfde6fecdb687d2ed62ffd1d393fa498253 | [
"WTFPL"
] | null | null | null | tests_prometheus_udp_gateway.py | anegramotnov/prometheus_udp_gateway | 08e20bfde6fecdb687d2ed62ffd1d393fa498253 | [
"WTFPL"
] | null | null | null | import pytest
import mock
import json
from prometheus_udp_gateway import (
ReceiveMetricProtocol, UDPRegistry, Counter
)
@pytest.fixture()
def udp_registry():
return UDPRegistry(host='invalid', port=0000)
@pytest.fixture()
def counter(udp_registry):
counter = Counter('test_counter', '... | 28.395349 | 86 | 0.672809 | 268 | 2,442 | 5.757463 | 0.179104 | 0.151653 | 0.244977 | 0.108879 | 0.661698 | 0.613739 | 0.58652 | 0.585224 | 0.508749 | 0.508749 | 0 | 0.016046 | 0.208845 | 2,442 | 85 | 87 | 28.729412 | 0.782609 | 0 | 0 | 0.333333 | 0 | 0 | 0.123886 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.15873 | false | 0 | 0.063492 | 0.015873 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b45e545d71289365599871cbb9963937aafb5def | 2,055 | py | Python | scripts/gen-benchmark-linecounts-2.py | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 49 | 2015-01-03T00:23:05.000Z | 2021-12-22T22:08:55.000Z | scripts/gen-benchmark-linecounts-2.py | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-10-30T03:55:27.000Z | 2020-06-12T12:24:01.000Z | scripts/gen-benchmark-linecounts-2.py | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Running ./gen-benchmark-linecounts.py
# produces an intermediate file in $DJS_DIR/src/out/bench.out
# and a bunch of LaTeX macros in $DJS_DIR/src/out/linecounts.tex
#
# this version computes Un from un-foo.js and Ann from foo.js
#
import os, re, sys
benchdir = '/... | 34.830508 | 83 | 0.607786 | 268 | 2,055 | 4.641791 | 0.458955 | 0.019293 | 0.012862 | 0.017685 | 0.247588 | 0.186495 | 0.186495 | 0.186495 | 0.186495 | 0.186495 | 0 | 0.007538 | 0.225304 | 2,055 | 58 | 84 | 35.431034 | 0.773869 | 0.184915 | 0 | 0.1 | 0 | 0 | 0.278078 | 0.066066 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.025 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b46419d69a388f2cdb31cf063b958c20372b1e4e | 2,676 | py | Python | context.py | cebarbosa/muse-maps | 5748b443482d4d8ef915be544c196f589c6f16da | [
"MIT"
] | null | null | null | context.py | cebarbosa/muse-maps | 5748b443482d4d8ef915be544c196f589c6f16da | [
"MIT"
] | null | null | null | context.py | cebarbosa/muse-maps | 5748b443482d4d8ef915be544c196f589c6f16da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 23/11/17
Author : Carlos Eduardo Barbosa
Project definitions
"""
import os
import getpass
import matplotlib.pyplot as plt
from astropy.coordinates import SkyCoord
import astropy.units as u
from dustmaps.config import config
from dustmaps import sfd
if getpass.getuser() == "... | 29.733333 | 77 | 0.668909 | 394 | 2,676 | 4.477157 | 0.527919 | 0.056122 | 0.028345 | 0.031746 | 0.137188 | 0.053288 | 0.053288 | 0.029478 | 0 | 0 | 0 | 0.101052 | 0.182735 | 2,676 | 89 | 78 | 30.067416 | 0.705533 | 0.248132 | 0 | 0 | 0 | 0 | 0.250254 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.052632 | 0.122807 | 0 | 0.192982 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b4655f085fe5daecbffe4849b6c0202b33dee71f | 711 | py | Python | neb/interpolate/linear.py | cstein/neb | 8bf59ef16819841d0839d6875c5935a681e0c405 | [
"MIT"
] | 20 | 2016-12-13T19:38:19.000Z | 2022-02-11T08:40:40.000Z | neb/interpolate/linear.py | cstein/neb | 8bf59ef16819841d0839d6875c5935a681e0c405 | [
"MIT"
] | null | null | null | neb/interpolate/linear.py | cstein/neb | 8bf59ef16819841d0839d6875c5935a681e0c405 | [
"MIT"
] | 6 | 2017-03-02T16:59:44.000Z | 2021-01-25T10:06:17.000Z | from ..molecule import Molecule
import path
class Linear(path.Path):
""" A linear interpolator that generates n-2 new molecules
"""
def __init__(self, initial, final, nsteps=10):
path.Path.__init__(self)
assert isinstance(nsteps, int)
self._molecules = [initial]
ci = ini... | 26.333333 | 62 | 0.609001 | 81 | 711 | 5.209877 | 0.518519 | 0.092417 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017717 | 0.285513 | 711 | 26 | 63 | 27.346154 | 0.812992 | 0.126582 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4680cbb3a16f850a1335e1de79762c7953b4c10 | 5,017 | py | Python | assets/filter/tail_poem.py | dickloraine/Alices-Adventures-in-Wonderland | 7c22510518769d8c6a6fe28aca9551362ad8e5c5 | [
"MIT"
] | null | null | null | assets/filter/tail_poem.py | dickloraine/Alices-Adventures-in-Wonderland | 7c22510518769d8c6a6fe28aca9551362ad8e5c5 | [
"MIT"
] | null | null | null | assets/filter/tail_poem.py | dickloraine/Alices-Adventures-in-Wonderland | 7c22510518769d8c6a6fe28aca9551362ad8e5c5 | [
"MIT"
] | 1 | 2021-05-09T07:24:47.000Z | 2021-05-09T07:24:47.000Z | import re
from textwrap import dedent
from panovel import run_pandoc_filter
def latex(self):
return dedent(r"""
\clearpage
\begin{samepage}
\settowidth{\versewidth}{a mouse that morning}
\indentpattern{0135554322112346898779775545653222345544456688778899}
\begin{verse}[\ver... | 31.553459 | 76 | 0.384094 | 523 | 5,017 | 3.659656 | 0.267686 | 0.15047 | 0.142633 | 0.075235 | 0.142111 | 0.142111 | 0.0721 | 0.015674 | 0.015674 | 0 | 0 | 0.036969 | 0.455451 | 5,017 | 158 | 77 | 31.753165 | 0.663616 | 0 | 0 | 0.153333 | 0 | 0 | 0.906717 | 0.135539 | 0.006667 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.02 | 0.013333 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b468be2b3674fa742d0e6624746e37789a214780 | 3,819 | py | Python | src/Attention.py | keigotak/COVID19Tweet | fa11c1be88dda91b70b68a8819715b5d6c1afb33 | [
"Unlicense"
] | null | null | null | src/Attention.py | keigotak/COVID19Tweet | fa11c1be88dda91b70b68a8819715b5d6c1afb33 | [
"Unlicense"
] | null | null | null | src/Attention.py | keigotak/COVID19Tweet | fa11c1be88dda91b70b68a8819715b5d6c1afb33 | [
"Unlicense"
] | null | null | null | # https://pytorchnlp.readthedocs.io/en/latest/_modules/torchnlp/nn/attention.html
import torch
import torch.nn as nn
class Attention(nn.Module):
""" Applies attention mechanism on the `context` using the `query`.
**Thank you** to IBM for their initial implementation of :class:`Attention`. Here is
their `L... | 41.51087 | 99 | 0.63027 | 450 | 3,819 | 5.186667 | 0.28 | 0.073265 | 0.102828 | 0.100257 | 0.33976 | 0.257926 | 0.206512 | 0.112254 | 0.03856 | 0 | 0 | 0.010854 | 0.25216 | 3,819 | 91 | 100 | 41.967033 | 0.806373 | 0.500131 | 0 | 0 | 0 | 0 | 0.036692 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b46cc7a8d810b09f6ab364c72395c0b047d4cf7f | 471 | py | Python | personalhelper/personalhelper/users_files/migrations/0002_alter_userfile_category.py | Ga11eaN/project-python-web | 024686a063bf0922a183e48bf6181077d654034a | [
"MIT"
] | null | null | null | personalhelper/personalhelper/users_files/migrations/0002_alter_userfile_category.py | Ga11eaN/project-python-web | 024686a063bf0922a183e48bf6181077d654034a | [
"MIT"
] | 1 | 2021-09-12T10:20:27.000Z | 2021-09-12T10:20:27.000Z | personalhelper/personalhelper/users_files/migrations/0002_alter_userfile_category.py | Ga11eaN/project-python-web | 024686a063bf0922a183e48bf6181077d654034a | [
"MIT"
] | 5 | 2021-09-06T11:37:38.000Z | 2021-09-13T10:58:21.000Z | # Generated by Django 3.2.7 on 2021-09-08 15:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users_files', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='userfile',
name='category',
... | 24.789474 | 138 | 0.579618 | 50 | 471 | 5.38 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059659 | 0.252654 | 471 | 18 | 139 | 26.166667 | 0.704545 | 0.095541 | 0 | 0 | 1 | 0 | 0.181604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b46e2c96b1223d3fc8fdfc131250eb0e17c97dc0 | 1,130 | py | Python | basic/flagging/templatetags/flagging.py | caktus/django-basic-apps | 1724afabf1ee22aef67c86da538e28fad1ea5977 | [
"BSD-3-Clause"
] | null | null | null | basic/flagging/templatetags/flagging.py | caktus/django-basic-apps | 1724afabf1ee22aef67c86da538e28fad1ea5977 | [
"BSD-3-Clause"
] | null | null | null | basic/flagging/templatetags/flagging.py | caktus/django-basic-apps | 1724afabf1ee22aef67c86da538e28fad1ea5977 | [
"BSD-3-Clause"
] | null | null | null | from django import template
from django.contrib.contenttypes.models import ContentType
from basic.tools.templatetags.utils import parse_ttag
register = template.Library()
class GetFlagTypeNode(template.Node):
def __init__(self, object_name, varname):
self.object_name = object_name
self.varname = ... | 29.736842 | 93 | 0.69646 | 143 | 1,130 | 5.272727 | 0.433566 | 0.066313 | 0.06366 | 0.039788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001104 | 0.19823 | 1,130 | 38 | 94 | 29.736842 | 0.831126 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b46e362264ae04ed4492f06d563833534eb5abb6 | 1,987 | py | Python | sydney/__main__.py | jghibiki/Sydney | 387bbc85edf3b9b767cf562efb7486766c870e90 | [
"MIT"
] | null | null | null | sydney/__main__.py | jghibiki/Sydney | 387bbc85edf3b9b767cf562efb7486766c870e90 | [
"MIT"
] | 42 | 2018-08-14T17:17:22.000Z | 2021-05-09T22:14:13.000Z | sydney/__main__.py | jghibiki/Sydney | 387bbc85edf3b9b767cf562efb7486766c870e90 | [
"MIT"
] | null | null | null | import click
from sydney.schema import SydneySchemaHelper
from sydney.server import SydneyServer
from sydney.schema.config_loader import ConfigLoader
from sydney.schema.mongo_helper import MongoHelper
@click.group()
@click.pass_context
@click.option("--mongo_host", default="localhost", envvar="SYDNEY_MONGO_HOST")
@cl... | 26.493333 | 97 | 0.72773 | 257 | 1,987 | 5.447471 | 0.233463 | 0.047143 | 0.08 | 0.081429 | 0.415 | 0.356429 | 0.265 | 0.265 | 0.265 | 0.265 | 0 | 0.00289 | 0.129341 | 1,987 | 74 | 98 | 26.851351 | 0.806358 | 0.079014 | 0 | 0.294118 | 0 | 0 | 0.142541 | 0.011602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0.196078 | 0.098039 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b46f51f71d63e41c7e9fcfedbc5b67ef6dc6ad76 | 2,316 | py | Python | test_lift_block.py | iryanbinary/niobeta | fdfb7da48fd0d1610762c7d30ac94d073fc74312 | [
"Unlicense",
"MIT"
] | null | null | null | test_lift_block.py | iryanbinary/niobeta | fdfb7da48fd0d1610762c7d30ac94d073fc74312 | [
"Unlicense",
"MIT"
] | null | null | null | test_lift_block.py | iryanbinary/niobeta | fdfb7da48fd0d1610762c7d30ac94d073fc74312 | [
"Unlicense",
"MIT"
] | null | null | null | from unittest.mock import patch
from nio.testing.block_test_case import NIOBlockTestCase
from nio import Signal
from ..filter_block import Filter
class LiftSignal(Signal):
def __init__(self, val):
super().__init__()
self.val = val
class TestFilter(NIOBlockTestCase):
def test_pass_all(sel... | 27.247059 | 67 | 0.552245 | 257 | 2,316 | 4.7393 | 0.210117 | 0.082102 | 0.106732 | 0.164204 | 0.670772 | 0.670772 | 0.618227 | 0.576355 | 0.54023 | 0.463054 | 0 | 0.01771 | 0.317358 | 2,316 | 84 | 68 | 27.571429 | 0.752688 | 0 | 0 | 0.492958 | 0 | 0 | 0.07473 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 1 | 0.084507 | false | 0.028169 | 0.056338 | 0 | 0.169014 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4712d7d75ea867f5bc597304c775eacca0dbdb4 | 182 | py | Python | monobit/constants.py | robhagemans/monobit | 21c29b387766ab2c7a8b2fa7767b91a154098b94 | [
"MIT"
] | 74 | 2019-06-15T21:41:25.000Z | 2022-03-09T05:01:13.000Z | monobit/constants.py | robhagemans/monobit | 21c29b387766ab2c7a8b2fa7767b91a154098b94 | [
"MIT"
] | 8 | 2020-10-31T07:01:42.000Z | 2021-09-14T18:12:55.000Z | monobit/constants.py | robhagemans/monobit | 21c29b387766ab2c7a8b2fa7767b91a154098b94 | [
"MIT"
] | 6 | 2020-03-26T06:23:46.000Z | 2022-03-11T09:43:47.000Z | """
monobit.constants
(c) 2019--2021 Rob Hagemans
licence: https://opensource.org/licenses/MIT
"""
DEFAULT_FORMAT = 'yaff'
VERSION = '0.20'
CONVERTER_NAME = f'monobit v{VERSION}'
| 15.166667 | 44 | 0.714286 | 25 | 182 | 5.12 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 0.120879 | 182 | 11 | 45 | 16.545455 | 0.73125 | 0.5 | 0 | 0 | 0 | 0 | 0.313253 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4731d3998eab3913d447e50071eca76ad8601a5 | 5,802 | py | Python | test.py | Grayfoox/cli-image-editor | 20789a8682947bb5193aaeedb93411a26a7d6b52 | [
"Apache-2.0"
] | null | null | null | test.py | Grayfoox/cli-image-editor | 20789a8682947bb5193aaeedb93411a26a7d6b52 | [
"Apache-2.0"
] | 3 | 2021-06-08T22:24:47.000Z | 2022-03-12T00:48:19.000Z | test.py | Grayfoox/cli-image-editor | 20789a8682947bb5193aaeedb93411a26a7d6b52 | [
"Apache-2.0"
] | null | null | null | import unittest.mock as umock
from argparse import ArgumentTypeError
import numpy as np
import pytest
from functions import do_embossing, do_edge_detection, do_blur_5x5, do_blur_3x3, do_sharpen, do_bw, do_darken, \
do_inverse, do_lighten, do_mirror, do_rotate, percentage, read_image, save_image
test_array = np.a... | 26.986047 | 112 | 0.708893 | 883 | 5,802 | 4.365798 | 0.198188 | 0.053178 | 0.053956 | 0.078859 | 0.604669 | 0.47808 | 0.432685 | 0.35668 | 0.220493 | 0.16083 | 0 | 0.020864 | 0.182179 | 5,802 | 214 | 113 | 27.11215 | 0.79157 | 0.143054 | 0 | 0.27193 | 0 | 0 | 0.092293 | 0.087944 | 0 | 0 | 0 | 0.004673 | 0.157895 | 1 | 0.22807 | false | 0 | 0.04386 | 0 | 0.27193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b47f5ca62569fc3186d50d147a6319401a7ded0e | 8,197 | py | Python | reagent/training/world_model/seq2reward_trainer.py | gji1/ReAgent | ab9ac7602f54e7d8aba910e80bc048cd69231f7a | [
"BSD-3-Clause"
] | null | null | null | reagent/training/world_model/seq2reward_trainer.py | gji1/ReAgent | ab9ac7602f54e7d8aba910e80bc048cd69231f7a | [
"BSD-3-Clause"
] | null | null | null | reagent/training/world_model/seq2reward_trainer.py | gji1/ReAgent | ab9ac7602f54e7d8aba910e80bc048cd69231f7a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import reagent.core.types as rlt
import torch
import torch.nn as nn
import torch.nn.functional as F
from reagent.core.parameters import Seq2RewardTrainerParameters
from reagent.core.tracker import observable
... | 36.757848 | 88 | 0.663901 | 994 | 8,197 | 5.174044 | 0.237425 | 0.040443 | 0.037916 | 0.017111 | 0.223994 | 0.158662 | 0.125219 | 0.104608 | 0.075831 | 0.057943 | 0 | 0.008825 | 0.253507 | 8,197 | 222 | 89 | 36.923423 | 0.831672 | 0.202757 | 0 | 0.066225 | 0 | 0 | 0.04042 | 0.02632 | 0 | 0 | 0 | 0.013514 | 0.006623 | 1 | 0.039735 | false | 0 | 0.07947 | 0 | 0.15894 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b48486dfb0943b5dce2f82173ff555f254ba216a | 3,546 | py | Python | src/transformers/training_args.py | JonathanSum/transformers | 27b68f95e4585713b575603545cf520ab9621621 | [
"Apache-2.0"
] | 1 | 2022-03-23T17:12:26.000Z | 2022-03-23T17:12:26.000Z | src/transformers/training_args.py | JonathanSum/transformers | 27b68f95e4585713b575603545cf520ab9621621 | [
"Apache-2.0"
] | 4 | 2021-04-30T21:42:40.000Z | 2022-02-10T05:15:45.000Z | src/transformers/training_args.py | JonathanSum/transformers | 27b68f95e4585713b575603545cf520ab9621621 | [
"Apache-2.0"
] | 2 | 2020-02-28T20:02:36.000Z | 2020-03-25T15:12:06.000Z | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class TrainingArguments:
"""
TrainingArguments is the subset of the arguments we use in our example scripts
**which relate to the training loop itself**.
Using `HfArgumentParser` we can turn this class
into argparse a... | 46.657895 | 135 | 0.670333 | 471 | 3,546 | 4.957537 | 0.384289 | 0.12334 | 0.06424 | 0.062955 | 0.25182 | 0.232976 | 0.164454 | 0.10621 | 0.088223 | 0.049679 | 0 | 0.014286 | 0.210378 | 3,546 | 75 | 136 | 47.28 | 0.819643 | 0.069092 | 0 | 0.086207 | 0 | 0.017241 | 0.413276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.017241 | 0.034483 | 0 | 0.465517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81e88ed8e011c24314df78a339cd0f2a64fd49d0 | 9,948 | py | Python | pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_autobw_template_detail/output/mpls_autobw_template_detail/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_autobw_template_detail/output/mpls_autobw_template_detail/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_autobw_template_detail/output/mpls_autobw_template_detail/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 61.030675 | 604 | 0.750201 | 1,322 | 9,948 | 5.34115 | 0.133132 | 0.076476 | 0.067413 | 0.057782 | 0.71987 | 0.664778 | 0.649483 | 0.62045 | 0.62045 | 0.611386 | 0 | 0.00859 | 0.133997 | 9,948 | 162 | 605 | 61.407407 | 0.811027 | 0.159228 | 0 | 0.366972 | 0 | 0.018349 | 0.299163 | 0.132112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082569 | false | 0 | 0.082569 | 0 | 0.302752 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81e907e0d74f357bbae908f82ee6f9cfda3efd4b | 1,076 | py | Python | python/tcp-server002.py | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | null | null | null | python/tcp-server002.py | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | null | null | null | python/tcp-server002.py | bismog/leetcode | 13b8a77045f96e7c59ddfe287481f6aaa68e564d | [
"MIT"
] | 1 | 2018-08-17T07:07:15.000Z | 2018-08-17T07:07:15.000Z | #!/usr/bin/env python
#encoding=UTF-8
#from SocketServer import (TCPServer as TCP, StreamRequestHandler as SRH)
#from time import ctime
import SocketServer
#from SocketServer import *
from time import ctime
#HOST = ''
#PORT = 21567
#ADDR = (HOST, PORT)
#
#class MyRequestHandler(SRH):
# def handle(self):
#... | 29.081081 | 75 | 0.644981 | 120 | 1,076 | 5.683333 | 0.483333 | 0.039589 | 0.057185 | 0.055718 | 0.372434 | 0.252199 | 0.252199 | 0.252199 | 0.252199 | 0 | 0 | 0.023474 | 0.208178 | 1,076 | 36 | 76 | 29.888889 | 0.776995 | 0.462825 | 0 | 0 | 0 | 0 | 0.153173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81ef75224e884078c9256cf1391485cbc8498b47 | 279 | py | Python | tbx/events/migrations/0002_auto_20210623_1428.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/events/migrations/0002_auto_20210623_1428.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/events/migrations/0002_auto_20210623_1428.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | # Generated by Django 2.2.24 on 2021-06-23 13:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("events", "0001_initial"),
]
operations = [
migrations.AlterModelOptions(name="event", options={},),
]
| 18.6 | 64 | 0.641577 | 31 | 279 | 5.741935 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0.225806 | 279 | 14 | 65 | 19.928571 | 0.731481 | 0.164875 | 0 | 0 | 1 | 0 | 0.099567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81f3e93a9e1f7374f85d56f81e324b6628109e1b | 12,086 | py | Python | CIM100/IEC61970/Base/Wires/ACLineSegment.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM100/IEC61970/Base/Wires/ACLineSegment.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM100/IEC61970/Base/Wires/ACLineSegment.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 47.960317 | 1,951 | 0.704451 | 1,378 | 12,086 | 6.133527 | 0.187228 | 0.014198 | 0.020823 | 0.028396 | 0.542475 | 0.51893 | 0.493611 | 0.470421 | 0.416588 | 0.356957 | 0 | 0.010096 | 0.229605 | 12,086 | 251 | 1,952 | 48.151394 | 0.897648 | 0.424541 | 0 | 0.27972 | 0 | 0 | 0.041045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174825 | false | 0 | 0.020979 | 0.034965 | 0.370629 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81fffd5d6e85a75993d118488eb06c0642408e87 | 369 | py | Python | samples/basic.py | sio/graphviz-managed | 931e3e625ad14ffd0d66ada7dce745bfdefd8cb9 | [
"Apache-2.0"
] | null | null | null | samples/basic.py | sio/graphviz-managed | 931e3e625ad14ffd0d66ada7dce745bfdefd8cb9 | [
"Apache-2.0"
] | 3 | 2021-12-22T12:29:51.000Z | 2021-12-22T15:17:26.000Z | samples/basic.py | sio/graphviz-managed | 931e3e625ad14ffd0d66ada7dce745bfdefd8cb9 | [
"Apache-2.0"
] | null | null | null | import sys
import graphviz_managed.logging
graphviz_managed.logging.setup()
# ---8<--- START SAMPLE ---8<---
from graphviz_managed import Graph
graph = Graph(label='<<b>Sample Graph #1</b>>')
node = graph.node
foo = node(label='Foo!')
bar = node(label='BAR', fontcolor='red', penwidth=1.5)
foo >> bar >> foo
# ---8<--... | 21.705882 | 54 | 0.658537 | 55 | 369 | 4.363636 | 0.436364 | 0.1875 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.121951 | 369 | 16 | 55 | 23.0625 | 0.716049 | 0.159892 | 0 | 0 | 0 | 0 | 0.110749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30312fe8fab652e0380f941d96f9b5b6d5c29e7 | 2,988 | py | Python | ui/_settingsDialog.py | howieraem/KinectActionDetection | ff64030e9fa2eb3d512b5cc1dae79e6a07ab8e5c | [
"Apache-2.0"
] | null | null | null | ui/_settingsDialog.py | howieraem/KinectActionDetection | ff64030e9fa2eb3d512b5cc1dae79e6a07ab8e5c | [
"Apache-2.0"
] | null | null | null | ui/_settingsDialog.py | howieraem/KinectActionDetection | ff64030e9fa2eb3d512b5cc1dae79e6a07ab8e5c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/_settingsDialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_settingsDialog(object):
def setupUi(self, settingsDialo... | 46.6875 | 116 | 0.759036 | 251 | 2,988 | 8.960159 | 0.378486 | 0.056025 | 0.06225 | 0.029346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007501 | 0.152276 | 2,988 | 63 | 117 | 47.428571 | 0.880379 | 0.064257 | 0 | 0 | 1 | 0 | 0.089638 | 0.029401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30af090b95d85fae20688ae0cc73715cebd9c4f | 557 | py | Python | Problem Solving/Data Structures/Balanced Trees/Array and simple queries.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Problem Solving/Data Structures/Balanced Trees/Array and simple queries.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Problem Solving/Data Structures/Balanced Trees/Array and simple queries.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
from array import array
n, n_queries = map(int, input().split())
data = array('L', map(int, input().split()))
assert len(data) == n
for m in range(n_queries):
t, i, j = map(int, input().split())
if t == 1:
aux1 = i - 1
aux2 =... | 29.315789 | 69 | 0.561939 | 92 | 557 | 3.380435 | 0.402174 | 0.064309 | 0.115756 | 0.154341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045894 | 0.256733 | 557 | 18 | 70 | 30.944444 | 0.705314 | 0.120287 | 0 | 0.125 | 0 | 0 | 0.002049 | 0 | 0 | 0 | 0 | 0.055556 | 0.0625 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30c614f227c673c5cf4c04dd275d27fd75f73cc | 7,758 | py | Python | dj/scripts/gsocr.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | dj/scripts/gsocr.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | dj/scripts/gsocr.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# gsocr.py
# uses gstreamer to send frames to gocr
"""
Start with every 5 seconds until we find more than 5 words
then check less and less as we get farther into the file,
and even less if we find more words.
(opposite of: spent more time if we can't find anything)
"""
import subprocess
import os
... | 31.408907 | 91 | 0.589069 | 1,003 | 7,758 | 4.455633 | 0.306082 | 0.017901 | 0.017901 | 0.014545 | 0.150145 | 0.091743 | 0.074737 | 0.063549 | 0.063549 | 0.019244 | 0 | 0.013769 | 0.297886 | 7,758 | 246 | 92 | 31.536585 | 0.806683 | 0.245166 | 0 | 0.112903 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0.004065 | 0 | 0 | null | null | 0 | 0.08871 | null | null | 0.072581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c31464cd3e14199ccf35595f83250d0b5d375874 | 2,583 | py | Python | packages/winpanda/extra/src/winpanda/tests/unit/test_common_storage.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 1 | 2019-09-17T09:33:34.000Z | 2019-09-17T09:33:34.000Z | packages/winpanda/extra/src/winpanda/tests/unit/test_common_storage.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 3 | 2019-10-22T09:53:55.000Z | 2019-12-02T15:24:54.000Z | packages/winpanda/extra/src/winpanda/tests/unit/test_common_storage.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 3 | 2019-10-21T11:31:25.000Z | 2019-11-20T06:54:47.000Z | import pytest
import unittest
import mock
from common.storage import InstallationStorage
from core.exceptions import RCRemoveError, RCError, InstallationStorageError
class TestInstallationStorage(unittest.TestCase):
@mock.patch('common.storage.Path.is_absolute', return_value=True)
@mock.patch('common.storag... | 41.66129 | 76 | 0.721254 | 323 | 2,583 | 5.50774 | 0.182663 | 0.086003 | 0.143339 | 0.160764 | 0.539067 | 0.508713 | 0.508713 | 0.506464 | 0.500281 | 0.500281 | 0 | 0 | 0.159892 | 2,583 | 61 | 77 | 42.344262 | 0.819816 | 0 | 0 | 0.557692 | 0 | 0 | 0.178862 | 0.14247 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.115385 | false | 0 | 0.096154 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c31d48925905639d753cc0d1804e49147be00e38 | 1,687 | py | Python | automate_tasks.py | jaaguilar/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | 1 | 2016-09-28T10:31:43.000Z | 2016-09-28T10:31:43.000Z | automate_tasks.py | jasset75/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | null | null | null | automate_tasks.py | jasset75/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | null | null | null | import os
from subprocess import run
#setting up environment
command = ['bash','-c','source ./environment.sh']
res = run(command)
if res.returncode:
raise Exception('set up environment failed!')
try:
github_user = os.environ['GITHUB_USER']
github_passwd = os.environ['GITHUB_PASSWORD']
project_name = os.environ[... | 32.442308 | 116 | 0.675163 | 242 | 1,687 | 4.652893 | 0.355372 | 0.058615 | 0.053286 | 0.071048 | 0.10302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002729 | 0.131002 | 1,687 | 51 | 117 | 33.078431 | 0.765348 | 0.06639 | 0 | 0.162791 | 0 | 0 | 0.446645 | 0.014058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.069767 | 0.046512 | 0 | 0.046512 | 0.232558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c31d5ab273b6c44b0c722a55e5c67e740b379197 | 3,562 | py | Python | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/polygonsort.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2015-07-12T07:24:17.000Z | 2015-07-12T07:24:17.000Z | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/polygonsort.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | null | null | null | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/polygonsort.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2016-02-19T21:55:53.000Z | 2016-02-19T21:55:53.000Z | """Polygon sorting support functions for ArrayGeometry
For your transparent geometry, get a set of object-space
centers for the triangles being drawn:
centers( self.verticies )
Store this somewhere, as you'll need it on every transparent
rendering pass. During the pass, when you get to the point
where you want t... | 29.196721 | 84 | 0.583099 | 478 | 3,562 | 4.301255 | 0.303347 | 0.015564 | 0.014591 | 0.011673 | 0.356031 | 0.344358 | 0.344358 | 0.344358 | 0.312257 | 0.261673 | 0 | 0.043275 | 0.279899 | 3,562 | 122 | 85 | 29.196721 | 0.758285 | 0.023863 | 0 | 0.514286 | 0 | 0 | 0.013224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c322bdef431b2a14fe85edbe1aa4991d9eb5e54e | 1,609 | py | Python | wendy/app.py | kangvcar/Wendy | 0e0a593ebf8df5983904ed3f4da1e19c4df93292 | [
"MIT"
] | 6 | 2021-07-19T08:03:29.000Z | 2022-02-19T08:21:26.000Z | wendy/app.py | kangvcar/Wendy | 0e0a593ebf8df5983904ed3f4da1e19c4df93292 | [
"MIT"
] | null | null | null | wendy/app.py | kangvcar/Wendy | 0e0a593ebf8df5983904ed3f4da1e19c4df93292 | [
"MIT"
] | 2 | 2021-07-19T06:59:27.000Z | 2022-02-19T08:21:27.000Z | # Flask app that handles application logic
import base64
import json
from flask import Flask
from flask import render_template
from flask import request
from wendy import get_root_path
app = Flask(__name__, static_folder=get_root_path('static'), template_folder=get_root_path('templates'))
@app.before_request
def ... | 25.140625 | 104 | 0.701678 | 220 | 1,609 | 4.868182 | 0.240909 | 0.07563 | 0.109244 | 0.095238 | 0.338936 | 0.286648 | 0.286648 | 0.126984 | 0.126984 | 0.126984 | 0 | 0.023878 | 0.141081 | 1,609 | 64 | 105 | 25.140625 | 0.751085 | 0.042262 | 0 | 0.227273 | 0 | 0 | 0.160052 | 0.046845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.045455 | 0.136364 | 0.068182 | 0.5 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3269f7d8cfe2299a48486f1e2017d3f03eb495b | 4,557 | py | Python | files/parametergenerate/parametergenerate/find_list_value.py | exastro-playbook-collection/setup_paragen | 4c6778fe5ca649019f1758c02acff3bf920b4b17 | [
"Apache-2.0"
] | null | null | null | files/parametergenerate/parametergenerate/find_list_value.py | exastro-playbook-collection/setup_paragen | 4c6778fe5ca649019f1758c02acff3bf920b4b17 | [
"Apache-2.0"
] | null | null | null | files/parametergenerate/parametergenerate/find_list_value.py | exastro-playbook-collection/setup_paragen | 4c6778fe5ca649019f1758c02acff3bf920b4b17 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from collections import namedtuple, OrderedDict
import io
import re
from jinja2 import Template
from parametergenerate import utility
try:
#py2
unicode=unicode
except NameError:
#py3
unicode=str
def find_value(target_file, search_para... | 30.583893 | 85 | 0.624095 | 529 | 4,557 | 5.172023 | 0.266541 | 0.048246 | 0.039474 | 0.018275 | 0.067251 | 0.046053 | 0.046053 | 0.016082 | 0.016082 | 0 | 0 | 0.002468 | 0.288786 | 4,557 | 148 | 86 | 30.790541 | 0.841716 | 0.081413 | 0 | 0.117647 | 1 | 0 | 0.058524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107843 | false | 0 | 0.058824 | 0 | 0.245098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c32a73aa8c7d9eec642269361cc4bab7e3c26831 | 4,949 | py | Python | pysnmp/CISCO-ENTITY-PROVISIONING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-ENTITY-PROVISIONING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-ENTITY-PROVISIONING-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 CISCO-ENTITY-PROVISIONING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ENTITY-PROVISIONING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:39:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ve... | 115.093023 | 724 | 0.769852 | 523 | 4,949 | 7.281071 | 0.26195 | 0.007878 | 0.011029 | 0.014706 | 0.276786 | 0.203256 | 0.183824 | 0.183824 | 0.183824 | 0.180935 | 0 | 0.064431 | 0.084259 | 4,949 | 42 | 725 | 117.833333 | 0.775816 | 0.071125 | 0 | 0.058824 | 0 | 0 | 0.204228 | 0.055798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c32bed53a34e9a5ef505d76ed4dd02725cc09304 | 390 | py | Python | api/migrations/0003_auto_20160904_1201.py | kushsharma/GotAPI | d9712550c1498354e75ce1e2d018b9b71a5989ec | [
"Apache-2.0"
] | null | null | null | api/migrations/0003_auto_20160904_1201.py | kushsharma/GotAPI | d9712550c1498354e75ce1e2d018b9b71a5989ec | [
"Apache-2.0"
] | null | null | null | api/migrations/0003_auto_20160904_1201.py | kushsharma/GotAPI | d9712550c1498354e75ce1e2d018b9b71a5989ec | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-04 06:31
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20160904_1201'),
]
operations = [
migrations.RenameModel(
... | 19.5 | 46 | 0.612821 | 43 | 390 | 5.325581 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 0.271795 | 390 | 19 | 47 | 20.526316 | 0.693662 | 0.169231 | 0 | 0 | 1 | 0 | 0.121495 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33c2411007350b182d46c7e33047ffd65ce575f | 2,360 | py | Python | tests/test_filters.py | joshmgrant/datasette | 1bb33dab49fd25f77b9f8e7ab7ee23b3d64c123c | [
"Apache-2.0"
] | 1 | 2020-06-11T05:35:15.000Z | 2020-06-11T05:35:15.000Z | tests/test_filters.py | joshmgrant/datasette | 1bb33dab49fd25f77b9f8e7ab7ee23b3d64c123c | [
"Apache-2.0"
] | null | null | null | tests/test_filters.py | joshmgrant/datasette | 1bb33dab49fd25f77b9f8e7ab7ee23b3d64c123c | [
"Apache-2.0"
] | 1 | 2020-06-11T05:35:16.000Z | 2020-06-11T05:35:16.000Z | from datasette.filters import Filters
import pytest
@pytest.mark.parametrize(
"args,expected_where,expected_params",
[
((("name_english__contains", "foo"),), ['"name_english" like :p0'], ["%foo%"]),
(
(("foo", "bar"), ("bar__contains", "baz")),
['"bar" like :p0', '"foo"... | 36.875 | 87 | 0.412712 | 277 | 2,360 | 3.292419 | 0.270758 | 0.02193 | 0.026316 | 0.039474 | 0.239035 | 0.112939 | 0.112939 | 0.112939 | 0.109649 | 0.109649 | 0 | 0.062885 | 0.312712 | 2,360 | 63 | 88 | 37.460317 | 0.499383 | 0.055508 | 0 | 0.125 | 0 | 0 | 0.354926 | 0.025641 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.017857 | false | 0 | 0.035714 | 0 | 0.053571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33eb9cdcbe4e254064cbdb41081390e17400580 | 541 | py | Python | c2_python-operating-system/7_final-project/project/exercise2.py | chaiyeow/google-it-automation | 3f02d739178abd5805114cfc027120b8d6ea81c8 | [
"MIT"
] | 220 | 2020-09-23T21:17:49.000Z | 2022-03-30T18:46:07.000Z | c2_python-operating-system/7_final-project/project/exercise2.py | chaiyeow/google-it-automation | 3f02d739178abd5805114cfc027120b8d6ea81c8 | [
"MIT"
] | 4 | 2020-10-18T11:08:49.000Z | 2021-05-31T10:32:00.000Z | c2_python-operating-system/7_final-project/project/exercise2.py | chaiyeow/google-it-automation | 3f02d739178abd5805114cfc027120b8d6ea81c8 | [
"MIT"
] | 366 | 2020-09-22T18:05:01.000Z | 2022-03-31T17:47:17.000Z | #!/usr/bin/env python3
import operator
fruit = {"oranges": 3, "apples": 5, "bananas": 7, "pears": 2}
sorted(fruit.items())
# Output: sorted(fruit.items())
sorted(fruit.items(), key=operator.itemgetter(0))
# Output: [('apples', 5), ('bananas', 7), ('oranges', 3), ('pears', 2)]
sorted(fruit.items(), key=operator.item... | 33.8125 | 71 | 0.613678 | 72 | 541 | 4.611111 | 0.333333 | 0.165663 | 0.240964 | 0.135542 | 0.563253 | 0.478916 | 0.228916 | 0 | 0 | 0 | 0 | 0.041667 | 0.112754 | 541 | 16 | 72 | 33.8125 | 0.65 | 0.48244 | 0 | 0 | 0 | 0 | 0.09058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c34120952fc561f1602593a5dc3603889ce9e183 | 2,819 | py | Python | geotrek/common/tests/test_views.py | fossabot/Geotrek-admin | ea2c873511ad724c742c64d81cbf31f37dbe3093 | [
"BSD-2-Clause"
] | null | null | null | geotrek/common/tests/test_views.py | fossabot/Geotrek-admin | ea2c873511ad724c742c64d81cbf31f37dbe3093 | [
"BSD-2-Clause"
] | null | null | null | geotrek/common/tests/test_views.py | fossabot/Geotrek-admin | ea2c873511ad724c742c64d81cbf31f37dbe3093 | [
"BSD-2-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from django.core.urlresolvers import reverse
from mapentity.factories import UserFactory
from geotrek.common.parsers import Parser
class ViewsTest(TestCase):
def setUp(self):
self.us... | 32.034091 | 81 | 0.637105 | 324 | 2,819 | 5.391975 | 0.271605 | 0.045793 | 0.092158 | 0.060103 | 0.620492 | 0.620492 | 0.537493 | 0.537493 | 0.493417 | 0.493417 | 0 | 0.011826 | 0.250089 | 2,819 | 87 | 82 | 32.402299 | 0.81457 | 0.008159 | 0 | 0.454545 | 0 | 0 | 0.129563 | 0.044739 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.121212 | false | 0.060606 | 0.212121 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c34b7267a0e3af93bb4f6b426aedb205440da9c3 | 504 | py | Python | apps/holy_place/helper/file_helper.py | ekaomk/Mutaelu | 4ddd493b65a439a4aebcd97ce79d78a917901a5b | [
"MIT"
] | null | null | null | apps/holy_place/helper/file_helper.py | ekaomk/Mutaelu | 4ddd493b65a439a4aebcd97ce79d78a917901a5b | [
"MIT"
] | null | null | null | apps/holy_place/helper/file_helper.py | ekaomk/Mutaelu | 4ddd493b65a439a4aebcd97ce79d78a917901a5b | [
"MIT"
] | null | null | null | import os
from uuid import uuid4
from django.utils.deconstruct import deconstructible
# rename file with uuid
@deconstructible
class PathAndRename(object):
def __init__(self, sub_path):
self.path = sub_path
def __call__(self, instance, filename):
ext = filename.split('.')[-1]
... | 29.647059 | 53 | 0.64881 | 62 | 504 | 5.112903 | 0.596774 | 0.044164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.25 | 504 | 17 | 54 | 29.647059 | 0.830688 | 0.168651 | 0 | 0 | 0 | 0 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c3570ae5058f618886b688f4ca5e8d4cbe3afca5 | 793 | py | Python | Servidor/app_folder/messages.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | Servidor/app_folder/messages.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | Servidor/app_folder/messages.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | """
Diccionario que almacena los diferentes mensajes que se mostrarán en formato Flash en la aplicación.
"""
msg = {
'INTERNAL_ERROR':"Ha ocurrido algún error interno.",
'FORMAT_ERROR':"El formato no es correcto.",
'JOB_NOT_FOUND_ERROR':"El job_id no existe o ha caducado.",
'PROCESSING_ERROR':"Se ha pr... | 46.647059 | 100 | 0.727617 | 110 | 793 | 5.072727 | 0.654545 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162673 | 793 | 17 | 101 | 46.647059 | 0.840361 | 0.126103 | 0 | 0 | 0 | 0 | 0.80758 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c35aafc465fcacb48ccb72b48dfa12503ad2f0b7 | 7,806 | py | Python | scripts/check_build_sanity.py | y-novikov/VK-GL-CTS | 7763f6e68b28413787c638fe5c9f1b20a5579636 | [
"Apache-2.0"
] | 1 | 2017-09-20T12:24:13.000Z | 2017-09-20T12:24:13.000Z | scripts/check_build_sanity.py | Igalia/VK-GL-CTS | 7763f6e68b28413787c638fe5c9f1b20a5579636 | [
"Apache-2.0"
] | null | null | null | scripts/check_build_sanity.py | Igalia/VK-GL-CTS | 7763f6e68b28413787c638fe5c9f1b20a5579636 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# drawElements Quality Program utilities
# --------------------------------------
#
# Copyright 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | 28.079137 | 125 | 0.669869 | 953 | 7,806 | 5.371459 | 0.274921 | 0.017582 | 0.029303 | 0.033405 | 0.216058 | 0.157453 | 0.089666 | 0.081266 | 0.062512 | 0.025396 | 0 | 0.008151 | 0.167051 | 7,806 | 277 | 126 | 28.180505 | 0.779145 | 0.115296 | 0 | 0.206731 | 0 | 0 | 0.173205 | 0.022087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028846 | 0.024038 | null | null | 0.024038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c361f16d8b7f7571bc1181672532dcdf07163345 | 534 | py | Python | mltoolkit/mldp/steps/transformers/field/field_duplicator.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 28 | 2020-10-12T19:05:22.000Z | 2022-03-18T01:19:29.000Z | mltoolkit/mldp/steps/transformers/field/field_duplicator.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 1 | 2022-01-30T01:52:59.000Z | 2022-02-19T08:04:54.000Z | mltoolkit/mldp/steps/transformers/field/field_duplicator.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 7 | 2020-10-29T14:01:04.000Z | 2022-02-22T18:33:10.000Z | from mltoolkit.mldp.steps.transformers import BaseTransformer
from copy import deepcopy
class FieldDuplicator(BaseTransformer):
"""Duplicates fields by giving them new names."""
def __init__(self, old_to_new_fnames, **kwargs):
super(FieldDuplicator, self).__init__(**kwargs)
self.old_to_new_fn... | 33.375 | 61 | 0.726592 | 72 | 534 | 4.986111 | 0.472222 | 0.05571 | 0.089136 | 0.155989 | 0.150418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185393 | 534 | 15 | 62 | 35.6 | 0.825287 | 0.080524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c3621a1035c6299c6e5a6258ac135c857e19ebcd | 1,238 | py | Python | run_users_example.py | jmshnds/eventstore_grpc | cf6a5978bcdf5bb725a569b7373ce15ee4babb25 | [
"MIT"
] | 6 | 2021-02-04T15:48:28.000Z | 2021-12-26T03:04:26.000Z | run_users_example.py | jmshnds/eventstore_grpc | cf6a5978bcdf5bb725a569b7373ce15ee4babb25 | [
"MIT"
] | 1 | 2021-04-14T00:06:25.000Z | 2021-04-14T07:28:34.000Z | run_users_example.py | jmshnds/eventstore_grpc | cf6a5978bcdf5bb725a569b7373ce15ee4babb25 | [
"MIT"
] | 1 | 2021-04-14T17:22:54.000Z | 2021-04-14T17:22:54.000Z | """
Run users examples to check authentication.
"""
from pprint import pprint
from eventstore_grpc.options import base_options
from eventstore_grpc import EventStoreDBClient, JSONEventData
conn_str = "esdb://localhost:2111,localhost:2112,localhost:2113?tls&rootCertificate=./tests/certs/ca/ca.crt"
default_user = {"us... | 30.95 | 108 | 0.738288 | 166 | 1,238 | 5.325301 | 0.409639 | 0.05543 | 0.03733 | 0.054299 | 0.124434 | 0.097285 | 0.097285 | 0 | 0 | 0 | 0 | 0.013624 | 0.110662 | 1,238 | 39 | 109 | 31.74359 | 0.788374 | 0.080775 | 0 | 0 | 0 | 0.04 | 0.389184 | 0.18883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.12 | 0 | 0.12 | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c363fa0a242d3bed7921c62b5deefe6013b9d721 | 1,897 | py | Python | fluent_contents/plugins/text/tests.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | fluent_contents/plugins/text/tests.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | fluent_contents/plugins/text/tests.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import html5lib
from unittest import TestCase
from fluent_contents.utils.html import clean_html
class TextPluginTests(TestCase):
"""
Test whether the sanitation works as expected.
"""
HTML1_ORIGINAL = u'<p><img src="/media/image.jpg" alt="" width="460" height="30... | 48.641026 | 203 | 0.670005 | 252 | 1,897 | 4.956349 | 0.349206 | 0.100881 | 0.102482 | 0.115292 | 0.473979 | 0.385909 | 0.368295 | 0.368295 | 0.368295 | 0.368295 | 0 | 0.041585 | 0.188719 | 1,897 | 38 | 204 | 49.921053 | 0.769981 | 0.107538 | 0 | 0 | 0 | 0.047619 | 0.350746 | 0.027985 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.428571 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c369e152247670a9527f7d039d88afbc50893e24 | 2,285 | py | Python | users/models.py | Strategy-Tap/Novizi-BackEnd | 536edde68dc79ad5467f2dbb0931a56930a4edea | [
"MIT"
] | null | null | null | users/models.py | Strategy-Tap/Novizi-BackEnd | 536edde68dc79ad5467f2dbb0931a56930a4edea | [
"MIT"
] | 4 | 2021-04-08T21:23:49.000Z | 2022-03-12T00:44:54.000Z | users/models.py | Strategy-Tap/Novizi-BackEnd | 536edde68dc79ad5467f2dbb0931a56930a4edea | [
"MIT"
] | 1 | 2020-06-12T16:08:46.000Z | 2020-06-12T16:08:46.000Z | """Collection of model."""
import uuid
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import gettext_lazy as _
def user_upload_to(instance: "CustomUser", filename: str) -> str:
"""A help Function to change the image upload path.
Args:
i... | 32.183099 | 82 | 0.679212 | 271 | 2,285 | 5.516605 | 0.361624 | 0.051505 | 0.045485 | 0.064214 | 0.163211 | 0.151171 | 0.114381 | 0 | 0 | 0 | 0 | 0.003286 | 0.200875 | 2,285 | 70 | 83 | 32.642857 | 0.815444 | 0.187746 | 0 | 0 | 0 | 0 | 0.157423 | 0.040336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.114286 | 0 | 0.657143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c36ac4567dcd6a9d332321f837596199c98858be | 2,316 | py | Python | src/utils/transactions.py | davidcmh/property-flask | db90594e73ea0c02a61cf88762b177906eabfc8a | [
"MIT"
] | null | null | null | src/utils/transactions.py | davidcmh/property-flask | db90594e73ea0c02a61cf88762b177906eabfc8a | [
"MIT"
] | null | null | null | src/utils/transactions.py | davidcmh/property-flask | db90594e73ea0c02a61cf88762b177906eabfc8a | [
"MIT"
] | null | null | null | import copy
from io import StringIO
import requests
import pandas as pd
form_data_template = {
"output": "csv",
"url": "/landregistry/query",
"q": """
prefix lrppi: <http://landregistry.data.gov.uk/def/ppi/>
prefix lrcommon: <http://landregistry.data.gov.uk/def/common/>
SELECT *
... | 34.567164 | 95 | 0.671416 | 246 | 2,316 | 6.150407 | 0.402439 | 0.101124 | 0.132188 | 0.158625 | 0.130205 | 0.037013 | 0 | 0 | 0 | 0 | 0 | 0.001655 | 0.217185 | 2,316 | 66 | 96 | 35.090909 | 0.832874 | 0.031088 | 0 | 0.078431 | 0 | 0 | 0.633155 | 0.126005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.019608 | 0.078431 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c36db8c64b67d0c00ee35ba48955de2505723848 | 968 | py | Python | python/threading/test01.py | JoseIbanez/testing | 4d6ff310cd63a8b2f8e1abcfbea0f17b23220021 | [
"MIT"
] | 1 | 2016-09-15T03:58:30.000Z | 2016-09-15T03:58:30.000Z | python/threading/test01.py | JoseIbanez/testing | 4d6ff310cd63a8b2f8e1abcfbea0f17b23220021 | [
"MIT"
] | 1 | 2020-09-13T08:44:50.000Z | 2020-09-13T08:44:50.000Z | python/threading/test01.py | JoseIbanez/testing | 4d6ff310cd63a8b2f8e1abcfbea0f17b23220021 | [
"MIT"
] | null | null | null | import threading
import time
import logging
logging.basicConfig(level=logging.DEBUG,
format='(%(threadName)-9s) %(message)s',)
def consumer(cv):
logging.debug('Consumer thread started ...')
with cv:
logging.debug('Consumer waiting ...')
cv.wait()
logging.debug('Consum... | 26.162162 | 80 | 0.644628 | 108 | 968 | 5.703704 | 0.435185 | 0.136364 | 0.090909 | 0.071429 | 0.100649 | 0.100649 | 0 | 0 | 0 | 0 | 0 | 0.011749 | 0.208678 | 968 | 36 | 81 | 26.888889 | 0.792428 | 0.014463 | 0 | 0.074074 | 0 | 0 | 0.230042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c378be120b104a04f4c53d569f1a143592a82fa7 | 1,835 | py | Python | applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/core/windows/win_service.py | mith1979/ansible_automation | 013dfa67c6d91720b787fadb21de574b6e023a26 | [
"Apache-2.0"
] | 1 | 2020-10-14T00:06:54.000Z | 2020-10-14T00:06:54.000Z | applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/core/windows/win_service.py | mith1979/ansible_automation | 013dfa67c6d91720b787fadb21de574b6e023a26 | [
"Apache-2.0"
] | null | null | null | applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/core/windows/win_service.py | mith1979/ansible_automation | 013dfa67c6d91720b787fadb21de574b6e023a26 | [
"Apache-2.0"
] | 2 | 2015-08-06T07:45:48.000Z | 2017-01-04T17:47:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Chris Hoffman <choffman@chathamfinancial.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version ... | 25.136986 | 71 | 0.689918 | 247 | 1,835 | 5.097166 | 0.54251 | 0.019857 | 0.030977 | 0.045274 | 0.112788 | 0.04448 | 0 | 0 | 0 | 0 | 0 | 0.006415 | 0.235422 | 1,835 | 72 | 72 | 25.486111 | 0.890948 | 0.440872 | 0 | 0.382979 | 0 | 0 | 0.935388 | 0.020875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eda48bf8ef7efa9cdebd65823d26a905ed2b7e9 | 783 | py | Python | vermin/__init__.py | Darkheir/vermin | 8117060742e82c173b0b21b15c177464078775dd | [
"MIT"
] | null | null | null | vermin/__init__.py | Darkheir/vermin | 8117060742e82c173b0b21b15c177464078775dd | [
"MIT"
] | null | null | null | vermin/__init__.py | Darkheir/vermin | 8117060742e82c173b0b21b15c177464078775dd | [
"MIT"
] | null | null | null | from .main import main
from .detection import detect_min_versions_source, detect_paths
from .source_visitor import SourceVisitor
from .parsing import parse_source, parse_detect_source
from .processing import process_paths
from .rules import MOD_REQS, MOD_MEM_REQS, KWARGS_REQS, STRFTIME_REQS
from .arguments import parse... | 26.1 | 90 | 0.781609 | 97 | 783 | 5.907216 | 0.329897 | 0.036649 | 0.059337 | 0.080279 | 0.118674 | 0.118674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127714 | 783 | 29 | 91 | 27 | 0.838946 | 0 | 0 | 0 | 0 | 0 | 0.283525 | 0.06258 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5edbb211ddff2cc9a4d91f9a7336d204612d217d | 4,408 | py | Python | infantry_teleop_tools/keyboard_teleop/scripts/keyboard_teleop.py | XDRM-IRobot/ICRA2018_DJI_RM_AI_Challenge_NJUST | d14d8500a4dcabfb7e0e48e77d4b68bdc55887ad | [
"BSD-2-Clause"
] | 89 | 2018-03-02T05:40:04.000Z | 2021-09-29T06:49:48.000Z | infantry_teleop_tools/keyboard_teleop/scripts/keyboard_teleop.py | joshuathooyavan/ICRA2018_DJI_RM_AI_Challenge_NJUST | efc09fd9a4273c22d7f91a245583e92063cb27bb | [
"BSD-2-Clause"
] | null | null | null | infantry_teleop_tools/keyboard_teleop/scripts/keyboard_teleop.py | joshuathooyavan/ICRA2018_DJI_RM_AI_Challenge_NJUST | efc09fd9a4273c22d7f91a245583e92063cb27bb | [
"BSD-2-Clause"
] | 36 | 2018-03-02T05:33:39.000Z | 2021-10-09T17:43:30.000Z | #!/usr/bin/env python
import roslib; roslib.load_manifest('keyboard_teleop')
import rospy
from geometry_msgs.msg import Twist
from std_msgs.msg import Float64
import sys, select, termios, tty
msg = """
DJI RoboMaster AI Challenge
ICRA 2018, Brisbane, Australia
Nanjing University of Science and Technology
Qingwu Chen... | 25.045455 | 101 | 0.606851 | 682 | 4,408 | 3.807918 | 0.240469 | 0.020793 | 0.018483 | 0.006161 | 0.301117 | 0.249519 | 0.226415 | 0.151714 | 0.101656 | 0.101656 | 0 | 0.055858 | 0.208031 | 4,408 | 175 | 102 | 25.188571 | 0.688055 | 0.004537 | 0 | 0.20915 | 0 | 0 | 0.252452 | 0.049943 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03268 | null | null | 0.03268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ede9d841fac05a6b4ef317ed58a389e5f42fee5 | 7,555 | py | Python | tests/unit/backends/NodeTests.py | idle-code/ContextShell | a8e71e73d23134db0d02d93a0b297dc01a9161f3 | [
"MIT"
] | null | null | null | tests/unit/backends/NodeTests.py | idle-code/ContextShell | a8e71e73d23134db0d02d93a0b297dc01a9161f3 | [
"MIT"
] | 12 | 2018-10-13T14:05:30.000Z | 2018-10-21T12:12:42.000Z | tests/unit/backends/NodeTests.py | idle-code/ContextShell | a8e71e73d23134db0d02d93a0b297dc01a9161f3 | [
"MIT"
] | null | null | null | import unittest
def create_node(*args, **kwargs):
from contextshell.backends.node import Node
return Node(*args, **kwargs)
class ValueTests(unittest.TestCase):
def test_constructor_sets_default_value_to_none(self):
empty_node = create_node()
self.assertEqual(None, empty_node.get())
... | 24.933993 | 70 | 0.649636 | 901 | 7,555 | 5.148724 | 0.110988 | 0.127183 | 0.09959 | 0.128045 | 0.61371 | 0.539987 | 0.484372 | 0.416685 | 0.399655 | 0.3061 | 0 | 0.005797 | 0.246459 | 7,555 | 302 | 71 | 25.016556 | 0.809064 | 0 | 0 | 0.455497 | 0 | 0 | 0.02409 | 0 | 0 | 0 | 0 | 0 | 0.198953 | 1 | 0.204188 | false | 0 | 0.010471 | 0 | 0.267016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee354b11aa7475c3391cceac7a0f84d15e271cf | 548 | py | Python | post/migrations/0048_auto_20200115_1755.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | post/migrations/0048_auto_20200115_1755.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | 12 | 2019-09-11T18:37:19.000Z | 2019-09-16T21:51:35.000Z | post/migrations/0048_auto_20200115_1755.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-01-15 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0047_auto_20200109_2243'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='publish',
... | 23.826087 | 118 | 0.556569 | 58 | 548 | 5.155172 | 0.724138 | 0.060201 | 0.086957 | 0.113712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095855 | 0.29562 | 548 | 22 | 119 | 24.909091 | 0.678756 | 0.082117 | 0 | 0.25 | 1 | 0 | 0.129741 | 0.045908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eeeabb62e3f474b169ce0b297da033910a1589f | 707 | py | Python | tests/python/test_libmatrix.py | lamyj/meg | 2c419ca90c814ac1c825dda28ebb4d87d40e8caa | [
"MIT"
] | 1 | 2022-03-18T08:10:27.000Z | 2022-03-18T08:10:27.000Z | tests/python/test_libmatrix.py | lamyj/meg | 2c419ca90c814ac1c825dda28ebb4d87d40e8caa | [
"MIT"
] | null | null | null | tests/python/test_libmatrix.py | lamyj/meg | 2c419ca90c814ac1c825dda28ebb4d87d40e8caa | [
"MIT"
] | null | null | null | import ctypes
import ctypes.util
import os
import unittest
import sys
import meg
class TestLibmatrix(unittest.TestCase):
def test(self):
matrix = meg.libmatrix.mxCreateDoubleMatrix(
3, 4, meg.libmatrix.Complexity.REAL)
self.assertEqual(meg.libmatrix.mxIsNumeric(matrix), True)
s... | 28.28 | 74 | 0.673267 | 74 | 707 | 6.324324 | 0.5 | 0.179487 | 0.076923 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01275 | 0.223479 | 707 | 24 | 75 | 29.458333 | 0.839709 | 0 | 0 | 0 | 0 | 0 | 0.011315 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ef35bc19869ce98b8ebd7c25d4baace2e41bf7c | 1,813 | py | Python | UCourse/course_homes/migrations/0016_auto_20200530_2313.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 1 | 2020-08-31T22:40:27.000Z | 2020-08-31T22:40:27.000Z | UCourse/course_homes/migrations/0016_auto_20200530_2313.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 13 | 2020-08-05T16:17:09.000Z | 2022-03-12T00:18:42.000Z | UCourse/course_homes/migrations/0016_auto_20200530_2313.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-05-30 16:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0015_course_fee_type'),
('profiles', '0001_initial'),
('course_homes', '0015_learningtopic_info')... | 34.865385 | 197 | 0.591285 | 183 | 1,813 | 5.699454 | 0.382514 | 0.060403 | 0.127517 | 0.154362 | 0.505273 | 0.505273 | 0.383509 | 0.383509 | 0.383509 | 0.291467 | 0 | 0.021986 | 0.272477 | 1,813 | 51 | 198 | 35.54902 | 0.768764 | 0.024821 | 0 | 0.533333 | 1 | 0 | 0.178369 | 0.013024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef63409146dafc39542d45ec145c6c368886191 | 609 | py | Python | scripts/algorithms/base/regression.py | egeai/pearl | d31eda35ebbf7da07dd185f0cfecf2a7e7ec8f71 | [
"MIT"
] | null | null | null | scripts/algorithms/base/regression.py | egeai/pearl | d31eda35ebbf7da07dd185f0cfecf2a7e7ec8f71 | [
"MIT"
] | null | null | null | scripts/algorithms/base/regression.py | egeai/pearl | d31eda35ebbf7da07dd185f0cfecf2a7e7ec8f71 | [
"MIT"
] | null | null | null | from pandas import Series, DataFrame
from abc import ABC, abstractmethod, abstractclassmethod
@abstractclassmethod
class Regressor:
"""
A Regression class
"""
def __init__(self, x_train: DataFrame, x_valid: DataFrame, y_train: Series, y_valid: Series) -> None:
self.x_train = x_train
sel... | 25.375 | 105 | 0.640394 | 76 | 609 | 4.868421 | 0.447368 | 0.040541 | 0.054054 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.269294 | 609 | 23 | 106 | 26.478261 | 0.826966 | 0.085386 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.