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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4e5eafe4afd758e689ee350b5806e71a9026c73 | 909 | py | Python | tests/test_sic_code_generation.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | tests/test_sic_code_generation.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | tests/test_sic_code_generation.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import datahub_core.generators as gen
def test_correct_number_of_rows_are_generated():
df = gen.generate(
props={
'region': gen.choice(
data=['EMEA', 'LATAM', 'NAM', 'APAC'],
weights=[0.1, 0.1, 0.3, 0.5]),
'sic_range' : gen.sic_rang... | 33.666667 | 65 | 0.558856 | 114 | 909 | 4.254386 | 0.491228 | 0.098969 | 0.074227 | 0.080412 | 0.078351 | 0.078351 | 0 | 0 | 0 | 0 | 0 | 0.029231 | 0.284928 | 909 | 26 | 66 | 34.961538 | 0.716923 | 0 | 0 | 0 | 1 | 0 | 0.129813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 0.043478 | 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 |
d4e7d49b94e831e768ea54a74ff873a068634296 | 6,076 | py | Python | python/osmosis_proto/cosmos/mint/v1beta1/__init__.py | fabio-nukui/osmosis.proto | 4780f22681881626b853109971602a6e29a3fb69 | [
"Apache-2.0"
] | 1 | 2022-02-22T06:18:40.000Z | 2022-02-22T06:18:40.000Z | python/osmosis_proto/cosmos/mint/v1beta1/__init__.py | fabio-nukui/osmosis.proto | 4780f22681881626b853109971602a6e29a3fb69 | [
"Apache-2.0"
] | null | null | null | python/osmosis_proto/cosmos/mint/v1beta1/__init__.py | fabio-nukui/osmosis.proto | 4780f22681881626b853109971602a6e29a3fb69 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: cosmos/mint/v1beta1/genesis.proto, cosmos/mint/v1beta1/mint.proto, cosmos/mint/v1beta1/query.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import Dict
import betterproto
from betterproto.grpc.grpclib_server import ... | 31.319588 | 109 | 0.697498 | 631 | 6,076 | 6.600634 | 0.196513 | 0.051861 | 0.036735 | 0.043217 | 0.510444 | 0.365666 | 0.32581 | 0.254502 | 0.20024 | 0.092197 | 0 | 0.006912 | 0.214286 | 6,076 | 193 | 110 | 31.481865 | 0.865522 | 0.216425 | 0 | 0.41 | 1 | 0 | 0.082612 | 0.070502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0.03 | 0.05 | 0.01 | 0.34 | 0 | 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 |
d4eebeb2e6022fc50324794387473bfbe5ccc98d | 350 | py | Python | gizmo/handlers.py | davebshow/gizmo | d1679da0ec12e72e0fb1b4dd3e7d9a60ddb6b34a | [
"MIT"
] | 2 | 2015-04-15T20:20:50.000Z | 2015-04-27T17:25:12.000Z | gizmo/handlers.py | davebshow/gizmo | d1679da0ec12e72e0fb1b4dd3e7d9a60ddb6b34a | [
"MIT"
] | null | null | null | gizmo/handlers.py | davebshow/gizmo | d1679da0ec12e72e0fb1b4dd3e7d9a60ddb6b34a | [
"MIT"
] | null | null | null | """
gizmo.handlers
This module defines error handlers for the websockets and the Gremlin Server.
"""
from .exceptions import RequestError, GremlinServerError
def status_error_handler(status_code, message):
if status_code < 500:
raise RequestError(status_code, message)
else:
raise GremlinServ... | 23.333333 | 77 | 0.757143 | 41 | 350 | 6.317073 | 0.634146 | 0.15444 | 0.196911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.177143 | 350 | 14 | 78 | 25 | 0.888889 | 0.265714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4f168286f4450ea231b83f4df5f0b3c19650036 | 1,809 | py | Python | messages/mockMsg_pb2.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 1 | 2018-04-09T00:57:10.000Z | 2018-04-09T00:57:10.000Z | messages/mockMsg_pb2.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 27 | 2017-10-03T02:02:32.000Z | 2018-04-09T19:44:41.000Z | messages/mockMsg_pb2.py | HarvardURC/MATE_ROV | 30f7dc3a1caa6532e5cd44e3029de5353e79d656 | [
"MIT"
] | 1 | 2017-10-27T01:39:31.000Z | 2017-10-27T01:39:31.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mockMsg.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | 25.842857 | 112 | 0.751244 | 225 | 1,809 | 5.768889 | 0.453333 | 0.038521 | 0.069337 | 0.09245 | 0.052388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022886 | 0.130459 | 1,809 | 69 | 113 | 26.217391 | 0.802289 | 0.113322 | 0 | 0.12 | 1 | 0.02 | 0.130788 | 0.065707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f2ca97d1338400f63496bfbc5dfde96b794db1 | 1,682 | py | Python | coreservices/partsrelationshipservice/connectors_scripts/consume_artifact.py | Agera-CatenaX/SpikeEclipseConnectorPRSTractusx | abe60454691ac50b75e6c128060cf068a2e4b9a0 | [
"Apache-2.0"
] | null | null | null | coreservices/partsrelationshipservice/connectors_scripts/consume_artifact.py | Agera-CatenaX/SpikeEclipseConnectorPRSTractusx | abe60454691ac50b75e6c128060cf068a2e4b9a0 | [
"Apache-2.0"
] | null | null | null | coreservices/partsrelationshipservice/connectors_scripts/consume_artifact.py | Agera-CatenaX/SpikeEclipseConnectorPRSTractusx | abe60454691ac50b75e6c128060cf068a2e4b9a0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2020 Fraunhofer Institute for Software and Systems Engineering
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 30.035714 | 137 | 0.78478 | 237 | 1,682 | 5.514768 | 0.561181 | 0.045907 | 0.019893 | 0.024484 | 0.048967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010914 | 0.128419 | 1,682 | 55 | 138 | 30.581818 | 0.880628 | 0.570155 | 0 | 0 | 0 | 0 | 0.117143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.263158 | 0 | 0.263158 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4f52104a98cbc77c970e40ad16a8fbe587c2136 | 1,823 | py | Python | counter/api/endpoints/authentication.py | V3lop5/python-starter | 96ab58b68101f6bdf278f5b4a3275b5456057300 | [
"MIT"
] | null | null | null | counter/api/endpoints/authentication.py | V3lop5/python-starter | 96ab58b68101f6bdf278f5b4a3275b5456057300 | [
"MIT"
] | 53 | 2021-10-04T20:05:22.000Z | 2022-03-31T20:31:42.000Z | counter/api/endpoints/authentication.py | V3lop5/python-starter | 96ab58b68101f6bdf278f5b4a3275b5456057300 | [
"MIT"
] | null | null | null | from datetime import timedelta
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.orm import Session
from counter import schemas, crud, model
from counter.api import deps
from counter.core import security, settings
router = APIRouter()... | 30.898305 | 85 | 0.70927 | 221 | 1,823 | 5.696833 | 0.343891 | 0.06116 | 0.047657 | 0.031771 | 0.149325 | 0.106434 | 0.06672 | 0 | 0 | 0 | 0 | 0.006148 | 0.196928 | 1,823 | 58 | 86 | 31.431034 | 0.853825 | 0.058146 | 0 | 0.052632 | 0 | 0 | 0.061041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.105263 | 0.184211 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4f589443f5011f7d91a3f5913e7df42c7db53a4 | 1,536 | py | Python | openstack/telemetry/v2/alarm_change.py | sivel/python-openstacksdk | 85c6a42c8f983b467c79e5dacdfdc996657250b1 | [
"Apache-2.0"
] | 1 | 2015-02-16T09:34:58.000Z | 2015-02-16T09:34:58.000Z | openstack/telemetry/v2/alarm_change.py | sivel/python-openstacksdk | 85c6a42c8f983b467c79e5dacdfdc996657250b1 | [
"Apache-2.0"
] | null | null | null | openstack/telemetry/v2/alarm_change.py | sivel/python-openstacksdk | 85c6a42c8f983b467c79e5dacdfdc996657250b1 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 34.133333 | 75 | 0.708984 | 208 | 1,536 | 5.115385 | 0.528846 | 0.090226 | 0.052632 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.195964 | 1,536 | 44 | 76 | 34.909091 | 0.85749 | 0.360677 | 0 | 0 | 0 | 0 | 0.118802 | 0.032025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4f9955dc7309616bf2910814e46a62d43b65df7 | 2,094 | py | Python | selenium/main_mercadolivre.py | joismar/Desafio-Python-Web-Scraping | 0c5e84d8b9e2f9d1fc5edd122ed78b4dcbc7d2ce | [
"MIT"
] | null | null | null | selenium/main_mercadolivre.py | joismar/Desafio-Python-Web-Scraping | 0c5e84d8b9e2f9d1fc5edd122ed78b4dcbc7d2ce | [
"MIT"
] | null | null | null | selenium/main_mercadolivre.py | joismar/Desafio-Python-Web-Scraping | 0c5e84d8b9e2f9d1fc5edd122ed78b4dcbc7d2ce | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from selenium import webdriver
import json
# -
# Observações:
#
# As primeiras tentativas foram realizadas com o uso do Scrapy, porém
# apresentada um erro de requests, informando que a resposta da
# requisição era inválida.
#
# Dessa forma recorri ao método mais fácil e rápido, Reque... | 31.253731 | 120 | 0.671442 | 279 | 2,094 | 4.953405 | 0.587814 | 0.015195 | 0.034732 | 0.043415 | 0.057887 | 0.057887 | 0 | 0 | 0 | 0 | 0 | 0.006587 | 0.202483 | 2,094 | 67 | 121 | 31.253731 | 0.820958 | 0.32808 | 0 | 0.066667 | 0 | 0 | 0.221501 | 0.069986 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be015f492963a11ec7080eae26b64f3fa4259070 | 2,545 | py | Python | tests/integration/test_handlers.py | SakornW/uplink | 2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f | [
"MIT"
] | null | null | null | tests/integration/test_handlers.py | SakornW/uplink | 2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f | [
"MIT"
] | null | null | null | tests/integration/test_handlers.py | SakornW/uplink | 2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f | [
"MIT"
] | null | null | null | # Local imports.
import uplink
# Constants
BASE_URL = "https://example.com/"
@uplink.response_handler(requires_consumer=True)
def handle_response_with_consumer(consumer, response):
consumer.flagged = True
return response
@uplink.response_handler
def handle_response(response):
response.flagged = True
... | 22.927928 | 70 | 0.716306 | 321 | 2,545 | 5.392523 | 0.190031 | 0.05777 | 0.039284 | 0.053148 | 0.493934 | 0.391681 | 0.326979 | 0.326979 | 0.326979 | 0.326979 | 0 | 0.001468 | 0.196857 | 2,545 | 110 | 71 | 23.136364 | 0.845401 | 0.046365 | 0 | 0.470588 | 0 | 0 | 0.042632 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 1 | 0.191176 | false | 0.058824 | 0.014706 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be02e1045fc90e835813d1b695aea471a3bff77c | 587 | py | Python | Scripts/web_scraping_api.py | ElizaBedoyaZapata/Proyecto-Principal-PowerBI | 1d3d9f11bfa84389637898005c26b47f15f43cb0 | [
"MIT"
] | null | null | null | Scripts/web_scraping_api.py | ElizaBedoyaZapata/Proyecto-Principal-PowerBI | 1d3d9f11bfa84389637898005c26b47f15f43cb0 | [
"MIT"
] | null | null | null | Scripts/web_scraping_api.py | ElizaBedoyaZapata/Proyecto-Principal-PowerBI | 1d3d9f11bfa84389637898005c26b47f15f43cb0 | [
"MIT"
] | null | null | null | import pandas as pd
from sodapy import Socrata
from selenium import webdriver
#from selenium.webdriver.support.ui import Select
# Links file
links = pd.read_excel('..\Inputs\enlaces.xlsx', engine='openpyxl')
# Chrome path to web scraping
chrome_path = r"C:\Users\kmili\Downloads\chromedriver_win32\chromedri... | 27.952381 | 93 | 0.744463 | 83 | 587 | 5.108434 | 0.686747 | 0.070755 | 0.091981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023483 | 0.129472 | 587 | 20 | 94 | 29.35 | 0.806262 | 0.216354 | 0 | 0 | 0 | 0 | 0.34023 | 0.308046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
be064ae5ae3cea6af219c113d58903fd961f6b5e | 1,204 | py | Python | Pacote Download/Ex045_12professor.py | BrunoCruzIglesias/Python | 01465632a8471271e994eb4565a14a547db6578d | [
"MIT"
] | null | null | null | Pacote Download/Ex045_12professor.py | BrunoCruzIglesias/Python | 01465632a8471271e994eb4565a14a547db6578d | [
"MIT"
] | null | null | null | Pacote Download/Ex045_12professor.py | BrunoCruzIglesias/Python | 01465632a8471271e994eb4565a14a547db6578d | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
print('{:=^20}'.format(' JOKENPÔ '))
itens = ('Pedra', 'Papel', 'Tesoura')
computador = randint(0, 2)
print('''Suas opções:
[ 0 ] PEDRA
[ 1 ] PAPEL
[ 2 ] TESOURA''')
jogador = int(input('Qual é sua jogada? '))
print('JO')
sleep(1)
print('KEN')
sleep(1)
print('PÔ!!!')
pr... | 26.173913 | 59 | 0.597176 | 145 | 1,204 | 4.958621 | 0.275862 | 0.091794 | 0.089013 | 0.062587 | 0.307371 | 0.116829 | 0.116829 | 0 | 0 | 0 | 0 | 0.027293 | 0.239203 | 1,204 | 46 | 60 | 26.173913 | 0.757642 | 0.05814 | 0 | 0.608696 | 0 | 0 | 0.274978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.456522 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be0daeea96c5635ca4c37a0dd51acd0289060918 | 1,110 | py | Python | ui_automation_tests/pages/generic_application/declaration.py | uktrade/lite-exporter-frontend | cf42ac37a21236486aa303c8935c44a7eba91ef5 | [
"MIT"
] | 3 | 2019-05-31T06:36:17.000Z | 2020-02-12T16:02:24.000Z | ui_automation_tests/pages/generic_application/declaration.py | uktrade/lite-exporter-frontend | cf42ac37a21236486aa303c8935c44a7eba91ef5 | [
"MIT"
] | 33 | 2019-03-28T10:20:14.000Z | 2020-07-16T15:12:43.000Z | ui_automation_tests/pages/generic_application/declaration.py | uktrade/lite-exporter-frontend | cf42ac37a21236486aa303c8935c44a7eba91ef5 | [
"MIT"
] | 1 | 2019-05-01T15:52:02.000Z | 2019-05-01T15:52:02.000Z | from ui_automation_tests.pages.BasePage import BasePage
from ui_automation_tests.shared.tools.helpers import scroll_to_element_by_id
class DeclarationPage(BasePage):
FOI_ID = "agreed_to_foi-True"
DECLARATION_ID = "agreed_to_declaration"
CONDITION_OGEL_ID = "I-confirm-that-I've-read-the-licence-conditions-... | 44.4 | 108 | 0.759459 | 160 | 1,110 | 4.9125 | 0.3375 | 0.068702 | 0.069975 | 0.076336 | 0.344784 | 0.179389 | 0.179389 | 0.142494 | 0.142494 | 0.142494 | 0 | 0.002064 | 0.127027 | 1,110 | 24 | 109 | 46.25 | 0.809082 | 0 | 0 | 0 | 0 | 0.111111 | 0.216216 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be10730ce7480130d46af87c54f82d167d80f39c | 10,426 | py | Python | docarray/array/storage/base/getsetdel.py | startakovsky/docarray | 78dd3199d25b3e533cd09643b97359783c193397 | [
"Apache-2.0"
] | 1 | 2022-03-16T14:05:32.000Z | 2022-03-16T14:05:32.000Z | docarray/array/storage/base/getsetdel.py | startakovsky/docarray | 78dd3199d25b3e533cd09643b97359783c193397 | [
"Apache-2.0"
] | null | null | null | docarray/array/storage/base/getsetdel.py | startakovsky/docarray | 78dd3199d25b3e533cd09643b97359783c193397 | [
"Apache-2.0"
] | null | null | null | import itertools
from abc import abstractmethod, ABC
from typing import (
Sequence,
Any,
Iterable,
Dict,
)
from .helper import Offset2ID
from .... import Document
class BaseGetSetDelMixin(ABC):
"""Provide abstract methods and derived methods for ``__getitem__``, ``__setitem__`` and ``__delitem__`... | 36.327526 | 118 | 0.624305 | 1,416 | 10,426 | 4.346751 | 0.140537 | 0.020309 | 0.021608 | 0.040942 | 0.545898 | 0.480422 | 0.409423 | 0.368806 | 0.358408 | 0.358408 | 0 | 0.003648 | 0.29014 | 10,426 | 286 | 119 | 36.454545 | 0.827996 | 0.402072 | 0 | 0.313869 | 0 | 0 | 0.092629 | 0.007424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20438 | false | 0 | 0.043796 | 0.007299 | 0.291971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be10e28be33501812f36cdce904d57dcd267f7c3 | 2,147 | py | Python | assemblyline/assemblyline/common/user_defaults.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | common/user_defaults.py | rtruxal/assemblyline | d1f02c9c7c8859d4c0b7ac231d91d544bb3a33eb | [
"MIT"
] | null | null | null | common/user_defaults.py | rtruxal/assemblyline | d1f02c9c7c8859d4c0b7ac231d91d544bb3a33eb | [
"MIT"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z |
from assemblyline.al.common import forge
Classification = forge.get_classification()
config = forge.get_config()
SETTINGS_DEFAULT = {
"classification": Classification.UNRESTRICTED, # Default classification for the User's submissions
"deep_scan": True, # Should the system perform a deep scan or not
"des... | 49.930233 | 103 | 0.702841 | 277 | 2,147 | 5.353791 | 0.505415 | 0.023601 | 0.021578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007593 | 0.202608 | 2,147 | 42 | 104 | 51.119048 | 0.858645 | 0.508617 | 0 | 0 | 0 | 0 | 0.301758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be127d0d49d6416ebca93677d54a91ce84358618 | 2,117 | py | Python | pybgen/__init__.py | godotgildor/pybgen | 46f9a8c80c558153a8701c6293b63287df99143f | [
"MIT"
] | 5 | 2018-02-20T22:48:53.000Z | 2022-02-07T15:58:24.000Z | pybgen/__init__.py | godotgildor/pybgen | 46f9a8c80c558153a8701c6293b63287df99143f | [
"MIT"
] | 2 | 2018-04-26T08:28:25.000Z | 2020-08-20T17:36:26.000Z | pybgen/__init__.py | godotgildor/pybgen | 46f9a8c80c558153a8701c6293b63287df99143f | [
"MIT"
] | 3 | 2018-02-05T13:44:57.000Z | 2019-07-30T19:12:55.000Z | """A module to read BGEN files."""
# This file is part of pybgen.
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Louis-Philippe Lemieux Perreault
#
# 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 S... | 34.704918 | 79 | 0.755786 | 293 | 2,117 | 5.327645 | 0.505119 | 0.056374 | 0.076874 | 0.111467 | 0.042281 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005721 | 0.174303 | 2,117 | 60 | 80 | 35.283333 | 0.8873 | 0.653283 | 0 | 0 | 0 | 0 | 0.296898 | 0.064993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
be13e69030c183280fa658b88771630322bd14ec | 1,356 | py | Python | nomadgram/images/models.py | woobong/nomadgram | 6062ebc970a2f92d6d4d63b0b53f039a298dcfff | [
"MIT"
] | null | null | null | nomadgram/images/models.py | woobong/nomadgram | 6062ebc970a2f92d6d4d63b0b53f039a298dcfff | [
"MIT"
] | 12 | 2020-06-05T16:50:22.000Z | 2022-03-11T23:26:16.000Z | nomadgram/images/models.py | woobong/nomadgram | 6062ebc970a2f92d6d4d63b0b53f039a298dcfff | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from nomadgram.users import models as user_models
@python_2_unicode_compatible
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
... | 31.534884 | 90 | 0.75295 | 169 | 1,356 | 5.792899 | 0.319527 | 0.035751 | 0.071502 | 0.122574 | 0.569969 | 0.39428 | 0.39428 | 0.39428 | 0.39428 | 0.39428 | 0 | 0.006908 | 0.146018 | 1,356 | 42 | 91 | 32.285714 | 0.838515 | 0 | 0 | 0.4 | 0 | 0 | 0.021386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be152df39af4e6057836c030e2a35e43c2ce83b7 | 2,928 | py | Python | tests/benchmark/generate_libsvm.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 23,866 | 2015-03-22T05:53:05.000Z | 2022-03-31T23:59:37.000Z | tests/benchmark/generate_libsvm.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 6,405 | 2015-03-22T09:41:16.000Z | 2022-03-31T23:28:40.000Z | tests/benchmark/generate_libsvm.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 9,745 | 2015-03-22T05:25:51.000Z | 2022-03-31T09:24:51.000Z | """Generate synthetic data in LIBSVM format."""
import argparse
import io
import time
import numpy as np
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
RNG = np.random.RandomState(2019)
def generate_data(args):
"""Generates the data."""
print("Generati... | 33.272727 | 97 | 0.615096 | 384 | 2,928 | 4.518229 | 0.255208 | 0.036888 | 0.032277 | 0.048415 | 0.236311 | 0.152738 | 0.07781 | 0.07781 | 0.07781 | 0.055331 | 0 | 0.015007 | 0.248975 | 2,928 | 87 | 98 | 33.655172 | 0.773988 | 0.050546 | 0 | 0.098361 | 1 | 0 | 0.111797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.098361 | 0 | 0.180328 | 0.131148 | 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 |
be1acb3817e1feaed4c3130d71c0d482595221c5 | 15,598 | py | Python | deepcell_scripts/training_scripts/test_maskrcnn.py | vanvalen/deepcell-tf | 72928abe48f12955d6531437aa85a034246bad4d | [
"MIT"
] | 7 | 2018-05-09T16:25:37.000Z | 2019-10-16T03:31:45.000Z | deepcell_scripts/training_scripts/test_maskrcnn.py | vanvalen/deepcell-tf | 72928abe48f12955d6531437aa85a034246bad4d | [
"MIT"
] | 9 | 2018-03-19T04:08:56.000Z | 2022-03-11T23:19:31.000Z | deepcell_scripts/training_scripts/test_maskrcnn.py | vanvalen/deepcell-tf | 72928abe48f12955d6531437aa85a034246bad4d | [
"MIT"
] | 4 | 2018-01-19T09:45:10.000Z | 2018-05-03T07:30:43.000Z | """
test_maskrcnn.py
Testing Mask RCNN
@author: David Van Valen
"""
import numpy as np
import os
import scipy
from deepcell import MaskRCNN, bn_dense_net_backbone, Config, Dataset, get_data
from deepcell.dc_helper_functions import *
from tensorflow.python.keras import backend as K
from skimage.measure import label, ... | 36.023095 | 123 | 0.72131 | 2,498 | 15,598 | 4.275821 | 0.176141 | 0.036701 | 0.017789 | 0.019474 | 0.231345 | 0.180414 | 0.133883 | 0.116656 | 0.09662 | 0.080142 | 0 | 0.017268 | 0.17951 | 15,598 | 433 | 124 | 36.023095 | 0.817315 | 0.175087 | 0 | 0.1 | 0 | 0 | 0.01433 | 0.003196 | 0 | 0 | 0 | 0.002309 | 0 | 0 | null | null | 0 | 0.029167 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be1bc150cc0ddab4cd03ff072d4b676232ff9a46 | 926 | py | Python | predictionserver/serverhabits/metrichabits.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | 1 | 2020-12-04T17:59:19.000Z | 2020-12-04T17:59:19.000Z | predictionserver/serverhabits/metrichabits.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | null | null | null | predictionserver/serverhabits/metrichabits.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | 1 | 2021-03-05T05:03:36.000Z | 2021-03-05T05:03:36.000Z | from predictionserver.futureconventions.metricconventions import (
MetricConventions, MetricGranularity, MetricType
)
# Metrics are system incremented values, typically float, stored in hashes.
# The name of the hash is specified by granularity only.
# The key into the hash is public. For example:
# - code
#... | 29.870968 | 76 | 0.676026 | 92 | 926 | 6.597826 | 0.51087 | 0.049423 | 0.029654 | 0.131796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240821 | 926 | 30 | 77 | 30.866667 | 0.863442 | 0.25486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
be1ddbdb9863476738f1707d4755731b358982db | 7,377 | py | Python | courator/sql_schemas.py | Courator/courator-backend | 726845a06c1be7693fd107bdf571ea40b7d398ec | [
"MIT"
] | null | null | null | courator/sql_schemas.py | Courator/courator-backend | 726845a06c1be7693fd107bdf571ea40b7d398ec | [
"MIT"
] | null | null | null | courator/sql_schemas.py | Courator/courator-backend | 726845a06c1be7693fd107bdf571ea40b7d398ec | [
"MIT"
] | null | null | null | from enum import Enum
from syncer import sync
from . import db
class Obj(Enum):
table = 1
index = 2
function = 3
schemas = [
('''CREATE TABLE University(
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
code VARCHAR(20) NOT NULL UNIQUE,
name VARCHAR(80) NOT NULL,
des... | 35.985366 | 113 | 0.654467 | 827 | 7,377 | 5.801693 | 0.188634 | 0.084619 | 0.093372 | 0.09504 | 0.354523 | 0.327845 | 0.254064 | 0.254064 | 0.201542 | 0.1807 | 0 | 0.014014 | 0.264877 | 7,377 | 204 | 114 | 36.161765 | 0.870736 | 0 | 0 | 0.31383 | 0 | 0 | 0.852921 | 0.055578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005319 | 0.021277 | 0 | 0.042553 | 0.010638 | 0 | 0 | 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 |
be209b2cb521f014f9a186f497c58658627ee07a | 1,194 | py | Python | userp.py | muturi254/Password_locker | fc67b76f6cf04bbfcaf382adec0fb0c26bdde709 | [
"MIT"
] | null | null | null | userp.py | muturi254/Password_locker | fc67b76f6cf04bbfcaf382adec0fb0c26bdde709 | [
"MIT"
] | null | null | null | userp.py | muturi254/Password_locker | fc67b76f6cf04bbfcaf382adec0fb0c26bdde709 | [
"MIT"
] | null | null | null | import pyperclip
class User:
"""initiaizesan instance of a user"""
user_list = []
def __init__(self, first_name, last_name, email, Id):
self.first_name = first_name
self.last_name = last_name
self.email = email
self.Id = Id
def save_user(self):
print("su works")... | 23.411765 | 57 | 0.558626 | 148 | 1,194 | 4.317568 | 0.337838 | 0.087637 | 0.051643 | 0.037559 | 0.112676 | 0.112676 | 0.112676 | 0.112676 | 0.112676 | 0.112676 | 0 | 0 | 0.359296 | 1,194 | 50 | 58 | 23.88 | 0.835294 | 0.148241 | 0 | 0.25 | 0 | 0 | 0.008584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.03125 | 0 | 0.46875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be223033dad249cd3f41ae119fd3561c7b6b66ad | 4,327 | py | Python | tests/test_perf_data.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 4 | 2018-02-08T21:19:04.000Z | 2020-12-17T23:31:57.000Z | tests/test_perf_data.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 3 | 2018-03-05T17:15:24.000Z | 2019-06-28T14:17:55.000Z | tests/test_perf_data.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 2 | 2019-08-25T17:14:27.000Z | 2020-05-31T09:47:27.000Z | """
Contains tests for pycinga.response.PerfData
"""
import pytest
from pycinga.perf_data import PerfData
from pycinga.range import Range
class TestPerfData(object):
def test_exception_if_value_invalid(self):
"""
Tests to verify that an exception is raised if value
is an invalid format.... | 31.355072 | 76 | 0.570141 | 545 | 4,327 | 4.429358 | 0.198165 | 0.040597 | 0.063795 | 0.098592 | 0.635046 | 0.495029 | 0.457332 | 0.401823 | 0.346313 | 0.329743 | 0 | 0.022796 | 0.310608 | 4,327 | 137 | 77 | 31.583942 | 0.786457 | 0.264155 | 0 | 0.166667 | 0 | 0 | 0.082669 | 0.007977 | 0 | 0 | 0 | 0 | 0.216667 | 1 | 0.233333 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be2517943ead35b8975ba518e226ca650d2b9df2 | 2,569 | py | Python | py/desici/plot_psf.py | desihub/desici | d9d165e2d9595e114d2330f92776089368df01c2 | [
"BSD-3-Clause"
] | null | null | null | py/desici/plot_psf.py | desihub/desici | d9d165e2d9595e114d2330f92776089368df01c2 | [
"BSD-3-Clause"
] | null | null | null | py/desici/plot_psf.py | desihub/desici | d9d165e2d9595e114d2330f92776089368df01c2 | [
"BSD-3-Clause"
] | null | null | null | import astropy.io.fits as fits
import glob
import matplotlib.pyplot as plt
from scipy.stats import scoreatpercentile
import os
import numpy as np
basedir = '/n/fink2/ameisner/CI/v0001'
plot_num_dict = {'CIE': 4, 'CIN': 2, 'CIC': 5, 'CIS': 8, 'CIW': 6}
def rotate_1psf(stamp, extname):
print('blat')
def plot_1exp... | 30.951807 | 100 | 0.599844 | 370 | 2,569 | 4.089189 | 0.367568 | 0.035691 | 0.037013 | 0.0423 | 0.192994 | 0.118969 | 0.087244 | 0.047588 | 0 | 0 | 0 | 0.052032 | 0.21448 | 2,569 | 82 | 101 | 31.329268 | 0.697721 | 0.033865 | 0 | 0.032787 | 0 | 0.016393 | 0.167406 | 0.058895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098361 | null | null | 0.081967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be254e555a5e6a8d3a2e3c98618143697caff104 | 48,017 | py | Python | libtrack/elfmod/vstruct/defs/windows/win_5_1_i386/win32k.py | columbia/libtrack | c338b645e773b3fc666babd49f5a7eb5debbe0e5 | [
"Apache-2.0"
] | 40 | 2016-04-12T11:20:08.000Z | 2021-03-30T22:51:52.000Z | libtrack/elfmod/vstruct/defs/windows/win_5_1_i386/win32k.py | columbia/libtrack | c338b645e773b3fc666babd49f5a7eb5debbe0e5 | [
"Apache-2.0"
] | null | null | null | libtrack/elfmod/vstruct/defs/windows/win_5_1_i386/win32k.py | columbia/libtrack | c338b645e773b3fc666babd49f5a7eb5debbe0e5 | [
"Apache-2.0"
] | 6 | 2016-04-12T11:20:16.000Z | 2020-01-15T03:31:20.000Z | # Version: 5.1
# Architecture: i386
import vstruct
from vstruct.primitives import *
DEVICE_RELATION_TYPE = v_enum()
DEVICE_RELATION_TYPE.BusRelations = 0
DEVICE_RELATION_TYPE.EjectionRelations = 1
DEVICE_RELATION_TYPE.PowerRelations = 2
DEVICE_RELATION_TYPE.RemovalRelations = 3
DEVICE_RELATION_TYPE.TargetDev... | 32.731425 | 106 | 0.679863 | 5,180 | 48,017 | 5.862741 | 0.168147 | 0.108795 | 0.050347 | 0.081596 | 0.374724 | 0.338075 | 0.329481 | 0.312128 | 0.299779 | 0.290823 | 0 | 0.039046 | 0.228752 | 48,017 | 1,466 | 107 | 32.753752 | 0.781006 | 0.000646 | 0 | 0.346024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.002538 | 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 |
be286b8fd8ed5f15551e45778ff3fa1a48fcfe06 | 2,618 | py | Python | yardstick/benchmark/scenarios/availability/operation/baseoperation.py | alexnemes/yardstick_enc | dc2d0eb663c7648271b04026b90046a27fe0b5fc | [
"Apache-2.0"
] | 1 | 2019-12-08T21:39:38.000Z | 2019-12-08T21:39:38.000Z | yardstick/benchmark/scenarios/availability/operation/baseoperation.py | alexnemes/yardstick | 7a89a01cdb1b3569d0b67451572edbae0f3d05aa | [
"Apache-2.0"
] | null | null | null | yardstick/benchmark/scenarios/availability/operation/baseoperation.py | alexnemes/yardstick | 7a89a01cdb1b3569d0b67451572edbae0f3d05aa | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright (c) 2016 Juan Qiu and others
# juan_ qiu@tongji.edu.cn
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distributi... | 31.542169 | 78 | 0.634454 | 296 | 2,618 | 5.337838 | 0.388514 | 0.057595 | 0.043038 | 0.031646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003972 | 0.23071 | 2,618 | 82 | 79 | 31.926829 | 0.780536 | 0.130634 | 0 | 0.090909 | 0 | 0 | 0.075865 | 0.019915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.054545 | 0.109091 | 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 |
be2a5e4831a9a5ce4ba280f573217776fb6c77ae | 233 | py | Python | play/flatten_list.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/flatten_list.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/flatten_list.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null |
def flatten(seq):
r = []
for x in seq:
if type(x) == list:
r += flatten(x)
else:
r.append(x)
return r
seq = [1,[2,3],4]
seq = [1,[2,[5,6],3],4]
print(seq, '-->', flatten(seq))
| 13.705882 | 31 | 0.412017 | 37 | 233 | 2.594595 | 0.540541 | 0.208333 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0.369099 | 233 | 16 | 32 | 14.5625 | 0.585034 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076ef04d0ace17522caaf1bd83f76cd97eb03984 | 1,313 | py | Python | widgy/contrib/widgy_mezzanine/site.py | isopets/django-widgy | de6920b2b25699888eee1cc9b4d28f2aa5905ce1 | [
"Apache-2.0"
] | 168 | 2015-01-04T17:22:45.000Z | 2022-01-28T09:53:35.000Z | widgy/contrib/widgy_mezzanine/site.py | isopets/django-widgy | de6920b2b25699888eee1cc9b4d28f2aa5905ce1 | [
"Apache-2.0"
] | 82 | 2015-01-09T18:14:32.000Z | 2020-10-08T18:13:07.000Z | widgy/contrib/widgy_mezzanine/site.py | isopets/django-widgy | de6920b2b25699888eee1cc9b4d28f2aa5905ce1 | [
"Apache-2.0"
] | 61 | 2015-01-09T17:16:51.000Z | 2021-07-03T08:52:27.000Z | from mezzanine.utils.sites import current_site_id, has_site_permission
from widgy.models import Content
class MultiSitePermissionMixin(object):
def _can_edit_content(self, request, obj):
if isinstance(obj, Content):
owners = obj.get_root().node.versiontracker_set.get().owners
any_o... | 45.275862 | 97 | 0.723534 | 174 | 1,313 | 5.109195 | 0.310345 | 0.067492 | 0.067492 | 0.095613 | 0.51631 | 0.32171 | 0.32171 | 0.08099 | 0 | 0 | 0 | 0 | 0.203351 | 1,313 | 28 | 98 | 46.892857 | 0.849904 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07718404221e0e1a33d39ed6868c4c192bebb43c | 10,678 | py | Python | ftp_client/ftp_client.py | luyao777/ftp-python | 28360e8f73f5922d1643fd7b56bed56f66f20a92 | [
"MIT"
] | null | null | null | ftp_client/ftp_client.py | luyao777/ftp-python | 28360e8f73f5922d1643fd7b56bed56f66f20a92 | [
"MIT"
] | null | null | null | ftp_client/ftp_client.py | luyao777/ftp-python | 28360e8f73f5922d1643fd7b56bed56f66f20a92 | [
"MIT"
] | null | null | null | #_*_coding:utf-8_*_
import socket
import os
import sys
import optparse
import json
import hashlib
STATUS_CODE = {
250:"Invalid cmd format, e.g:{'action':'get','filename':'test.py','size':344}",
251:"Invalid cmd",
252:"Invalid auth data",
253:"Wrong username or password",
254:"Passed authentication... | 34.006369 | 88 | 0.529687 | 1,162 | 10,678 | 4.70654 | 0.226334 | 0.056317 | 0.02633 | 0.029256 | 0.447065 | 0.418724 | 0.381971 | 0.381971 | 0.381971 | 0.381971 | 0 | 0.021525 | 0.343042 | 10,678 | 314 | 89 | 34.006369 | 0.75809 | 0.100206 | 0 | 0.445344 | 0 | 0.004049 | 0.123359 | 0.005506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072874 | false | 0.060729 | 0.024292 | 0 | 0.161943 | 0.149798 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07737c0702ec999fcb30b68bfad8a1df9b47444b | 3,160 | py | Python | app.py | Chiebukar/recognize-player | 8577efae7aebf5281c42b17eb4d3165bd8ab3c66 | [
"Apache-2.0"
] | 1 | 2021-06-27T05:59:03.000Z | 2021-06-27T05:59:03.000Z | app.py | Chiebukar/recognize-player | 8577efae7aebf5281c42b17eb4d3165bd8ab3c66 | [
"Apache-2.0"
] | null | null | null | app.py | Chiebukar/recognize-player | 8577efae7aebf5281c42b17eb4d3165bd8ab3c66 | [
"Apache-2.0"
] | null | null | null | import streamlit as st
import base64
import util
st.spinner('Loading saved artifacts')
util.load_saved_artifacts()
ronaldo_jpg = "Cristiano Ronaldo.jpg"
messi_jpg = "Lionel Messi.jpg"
salah_jpg = "Mohammed Salah.jpg"
neymar_jpg = "Neymar Jr.jpg"
son_jpg = "Son Heung Min.jpg"
mane_jpg = "Sadio Mane.jpg"
... | 29.811321 | 130 | 0.618671 | 422 | 3,160 | 4.556872 | 0.317536 | 0.029121 | 0.043682 | 0.053042 | 0.307332 | 0.219449 | 0.219449 | 0.219449 | 0.219449 | 0.219449 | 0 | 0.039084 | 0.198418 | 3,160 | 105 | 131 | 30.095238 | 0.720095 | 0.196835 | 0 | 0.235294 | 0 | 0.088235 | 0.736123 | 0.19884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044118 | 0 | 0.044118 | 0 | 0 | 0 | 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 |
07741f836934e7fd5b9c581e1bc29c8ea74a8f64 | 12,603 | py | Python | filefinder2/_module_utils.py | asmodehn/filefinder2 | 3f0b211ce11a34562e2a2160e039ae5290b68d6b | [
"MIT"
] | 3 | 2017-07-17T02:48:24.000Z | 2018-05-05T16:38:53.000Z | filefinder2/_module_utils.py | asmodehn/filefinder2 | 3f0b211ce11a34562e2a2160e039ae5290b68d6b | [
"MIT"
] | 124 | 2017-06-27T10:24:54.000Z | 2022-03-31T15:40:02.000Z | filefinder2/_module_utils.py | asmodehn/filefinder2 | 3f0b211ce11a34562e2a2160e039ae5290b68d6b | [
"MIT"
] | 1 | 2017-09-25T15:26:03.000Z | 2017-09-25T15:26:03.000Z | from __future__ import absolute_import, division, print_function
"""
A module for spec utils
"""
# We need to be extra careful with python versions
# Ref : https://docs.python.org/2/library/modules.html?highlight=imports
# Ref : https://docs.python.org/3/library/modules.html?highlight=imports
import os
import sys
... | 37.846847 | 83 | 0.5874 | 1,427 | 12,603 | 4.953749 | 0.194114 | 0.017824 | 0.050927 | 0.025746 | 0.258169 | 0.161692 | 0.115151 | 0.074692 | 0.062809 | 0.062809 | 0 | 0.002476 | 0.326986 | 12,603 | 332 | 84 | 37.960843 | 0.830936 | 0.601047 | 0 | 0.277228 | 0 | 0 | 0.048956 | 0.00631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089109 | false | 0.059406 | 0.09901 | 0.019802 | 0.287129 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0774d49ffb357b2d456d8219399e7e703c352aed | 376 | py | Python | app.py | nnivruth/simple_api | 4aec9f5475c707cd809d642da8dafd1d75de6fb7 | [
"MIT"
] | null | null | null | app.py | nnivruth/simple_api | 4aec9f5475c707cd809d642da8dafd1d75de6fb7 | [
"MIT"
] | 1 | 2018-10-04T07:00:04.000Z | 2018-10-04T07:00:04.000Z | app.py | nnivruth/simple_api | 4aec9f5475c707cd809d642da8dafd1d75de6fb7 | [
"MIT"
] | 1 | 2018-10-04T06:50:04.000Z | 2018-10-04T06:50:04.000Z | #!/usr/bin/env python
from flask import Flask
from flask_restful import Api
app = Flask(__name__)
api = Api(app)
from resources import TodoListResource
from resources import TodoResource
api.add_resource(TodoListResource, '/todos', endpoint='todos')
api.add_resource(TodoResource, '/todos/<string:id>', endpoint='tod... | 22.117647 | 69 | 0.760638 | 50 | 376 | 5.42 | 0.52 | 0.066421 | 0.140221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 376 | 16 | 70 | 23.5 | 0.816265 | 0.053191 | 0 | 0 | 0 | 0 | 0.115493 | 0 | 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 |
077997f1c022bb92adeb766dff259f5ece98e37b | 10,189 | py | Python | rpython/rlib/test/test_signature.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 333 | 2015-08-08T18:03:38.000Z | 2022-03-22T18:13:12.000Z | rpython/rlib/test/test_signature.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 7 | 2020-02-16T16:49:05.000Z | 2021-11-26T09:00:56.000Z | rpython/rlib/test/test_signature.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 55 | 2015-08-16T02:41:30.000Z | 2022-03-20T20:33:35.000Z | import py
from rpython.rlib.signature import signature, finishsigs, FieldSpec, ClassSpec
from rpython.rlib import types
from rpython.annotator import model
from rpython.rtyper.llannotation import SomePtr
from rpython.annotator.signature import SignatureError
from rpython.translator.translator import TranslationContext,... | 26.813158 | 98 | 0.630386 | 1,356 | 10,189 | 4.576696 | 0.136431 | 0.054141 | 0.073477 | 0.042539 | 0.517725 | 0.401869 | 0.349178 | 0.267805 | 0.220754 | 0.191267 | 0 | 0.009321 | 0.231328 | 10,189 | 379 | 99 | 26.883905 | 0.783069 | 0.012661 | 0 | 0.444795 | 0 | 0 | 0.012132 | 0 | 0 | 0 | 0 | 0 | 0.141956 | 1 | 0.252366 | false | 0.037855 | 0.028391 | 0.07571 | 0.444795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
077b106b0953d07307651e7048356e524b92bc87 | 372 | py | Python | router-map/diagram/migrations/0002_auto_20200603_1018.py | comp-sa/router-map | 2c9c964ec625d7f061293e50e4fb9031f066b137 | [
"MIT"
] | 3 | 2022-02-10T10:20:21.000Z | 2022-02-10T10:20:36.000Z | router-map/diagram/migrations/0002_auto_20200603_1018.py | comp-sa/router-map | 2c9c964ec625d7f061293e50e4fb9031f066b137 | [
"MIT"
] | 7 | 2020-05-19T13:41:10.000Z | 2021-09-27T10:15:16.000Z | router-map/diagram/migrations/0002_auto_20200603_1018.py | comp-sa/router-map | 2c9c964ec625d7f061293e50e4fb9031f066b137 | [
"MIT"
] | 2 | 2019-10-02T10:06:44.000Z | 2019-10-03T08:02:07.000Z | # Generated by Django 2.2 on 2020-06-03 08:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("diagram", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="diagram",
name="name",
field... | 20.666667 | 51 | 0.58871 | 39 | 372 | 5.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080153 | 0.295699 | 372 | 17 | 52 | 21.882353 | 0.744275 | 0.115591 | 0 | 0 | 1 | 0 | 0.091743 | 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 |
077e2d62698a2ff846c87cee9112dd7b6373e73d | 1,894 | py | Python | syncli/cmd/hosts.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | 2 | 2016-06-23T05:57:37.000Z | 2021-02-02T06:47:35.000Z | syncli/cmd/hosts.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | null | null | null | syncli/cmd/hosts.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | 2 | 2017-09-23T00:05:51.000Z | 2019-05-13T15:43:48.000Z | """ Manipulate the host resource.
"""
from syncli.cmd.generic import GenericCmd
from syncli.router import register
from syncli.api.hosts import HostsApi
@register(HostsApi)
class HostsCmd(GenericCmd):
attributes = (('status', [{'name': 'ip',
'help': "Retrieves the host's ip addres... | 40.297872 | 77 | 0.435058 | 164 | 1,894 | 4.914634 | 0.378049 | 0.060794 | 0.147643 | 0.182382 | 0.364764 | 0.084367 | 0 | 0 | 0 | 0 | 0 | 0.001901 | 0.444562 | 1,894 | 46 | 78 | 41.173913 | 0.764259 | 0.039599 | 0 | 0.176471 | 0 | 0 | 0.279778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.176471 | 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 |
077ea41040294702218c44972e08a7e2542e35f9 | 2,357 | py | Python | amundsen_application/config.py | fimbulvetr/amundsenfrontendlibrary | 3eaaf3777cec592dac48b8ac0cb7a797670d541f | [
"Apache-2.0"
] | null | null | null | amundsen_application/config.py | fimbulvetr/amundsenfrontendlibrary | 3eaaf3777cec592dac48b8ac0cb7a797670d541f | [
"Apache-2.0"
] | null | null | null | amundsen_application/config.py | fimbulvetr/amundsenfrontendlibrary | 3eaaf3777cec592dac48b8ac0cb7a797670d541f | [
"Apache-2.0"
] | 1 | 2019-09-21T23:56:41.000Z | 2019-09-21T23:56:41.000Z | import os
from typing import Dict, Optional, Set # noqa: F401
from amundsen_application.tests.test_utils import get_test_user
class Config:
LOG_FORMAT = '%(asctime)s.%(msecs)03d [%(levelname)s] %(module)s.%(funcName)s:%(lineno)d (%(process)d:' \
+ '%(threadName)s) - %(message)s'
LOG_DATE_FOR... | 36.261538 | 109 | 0.613492 | 269 | 2,357 | 5.171004 | 0.494424 | 0.045291 | 0.037383 | 0.023005 | 0.070453 | 0.070453 | 0.070453 | 0.070453 | 0.070453 | 0.070453 | 0 | 0.01286 | 0.30717 | 2,357 | 64 | 110 | 36.828125 | 0.838947 | 0.273229 | 0 | 0.102564 | 0 | 0.025641 | 0.147232 | 0.033569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
077eefef9c962f6d83f39ef7b0c14e4c98497712 | 84,851 | py | Python | lib/googlecloudsdk/third_party/apis/metastore/v1beta/metastore_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/third_party/apis/metastore/v1beta/metastore_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/metastore/v1beta/metastore_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | """Generated message classes for metastore version v1beta.
The Dataproc Metastore API is used to manage the lifecycle and configuration
of metastore services.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import message... | 41.798522 | 99 | 0.746839 | 10,562 | 84,851 | 5.941867 | 0.102727 | 0.042688 | 0.021161 | 0.009752 | 0.564996 | 0.53394 | 0.509051 | 0.471063 | 0.438972 | 0.419389 | 0 | 0.013043 | 0.188589 | 84,851 | 2,029 | 100 | 41.819123 | 0.898488 | 0.717057 | 0 | 0.346591 | 1 | 0 | 0.070768 | 0.022508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026515 | 0 | 0.617424 | 0 | 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 |
077f1c34fddf79d40f2c3445981c421a402e1077 | 3,765 | py | Python | ParaViewCore/ServerManager/Default/Testing/Python/Animation.py | UV-CDAT/ParaView | 095ac28404a85fd86676491b8952884805842223 | [
"Apache-2.0"
] | null | null | null | ParaViewCore/ServerManager/Default/Testing/Python/Animation.py | UV-CDAT/ParaView | 095ac28404a85fd86676491b8952884805842223 | [
"Apache-2.0"
] | null | null | null | ParaViewCore/ServerManager/Default/Testing/Python/Animation.py | UV-CDAT/ParaView | 095ac28404a85fd86676491b8952884805842223 | [
"Apache-2.0"
] | null | null | null | # Test to exercise the ParaView Python Animation API
from paraview.simple import *
from paraview import smtesting
smtesting.ProcessCommandLineArguments()
filename = smtesting.DataDir + '/Data/can.ex2'
can_ex2 = OpenDataFile(filename)
AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 0.0042999885044991... | 37.277228 | 689 | 0.788845 | 385 | 3,765 | 7.698701 | 0.423377 | 0.012821 | 0.012146 | 0.009447 | 0.208839 | 0.208839 | 0.176788 | 0.09919 | 0.09919 | 0.048583 | 0 | 0.311935 | 0.089774 | 3,765 | 100 | 690 | 37.65 | 0.552962 | 0.022842 | 0 | 0.151515 | 0 | 0 | 0.049238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0787ac3c277a8ee55f456e340618d6fd71eab8f6 | 5,344 | py | Python | src/tx_utils.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | null | null | null | src/tx_utils.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | 22 | 2022-03-08T19:30:45.000Z | 2022-03-28T21:14:15.000Z | src/tx_utils.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | null | null | null | # TODO: Move this module as a shared functionality to badger utils lib
import logging
import requests
import traceback
from decimal import Decimal
from hexbytes import HexBytes
from typing import Dict
from web3 import contract
from web3 import exceptions
from web3 import Web3
from config.constants import GAS_LIMITS
f... | 33.610063 | 89 | 0.67646 | 749 | 5,344 | 4.632844 | 0.279039 | 0.04611 | 0.01902 | 0.017291 | 0.076945 | 0.011527 | 0 | 0 | 0 | 0 | 0 | 0.019532 | 0.22399 | 5,344 | 158 | 90 | 33.822785 | 0.817217 | 0.228481 | 0 | 0.10101 | 0 | 0 | 0.116302 | 0.005964 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.070707 | false | 0 | 0.111111 | 0 | 0.252525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0788998ef9897169ad41d09ad1cb11731389c748 | 980 | py | Python | tests/future_value_test.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 4 | 2019-11-25T04:22:59.000Z | 2021-05-18T04:57:16.000Z | tests/future_value_test.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 5 | 2019-11-15T00:29:52.000Z | 2021-06-02T00:37:37.000Z | tests/future_value_test.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 4 | 2020-03-03T20:06:48.000Z | 2022-02-19T02:01:56.000Z | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from classes.Future_Value import FutureValue
def test_future_value_regular():
test_a = FutureValue(10000000, 8.7, 5, 1, False)
assert round(test_a.calculate()) == 15175665.0, "Should be $15,175,665.0"
d... | 28.823529 | 82 | 0.697959 | 159 | 980 | 4.09434 | 0.396226 | 0.101382 | 0.099846 | 0.138249 | 0.201229 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161871 | 0.14898 | 980 | 33 | 83 | 29.69697 | 0.618705 | 0 | 0 | 0 | 0 | 0 | 0.109407 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.263158 | false | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078f8ce8514719205a2c573ffef9963e77e94b05 | 3,640 | py | Python | src/python/transducer_aggregate.py | dptam/neural_wfst | c0cd3e340a45c13fbe47310753432d496c20eb83 | [
"MIT"
] | null | null | null | src/python/transducer_aggregate.py | dptam/neural_wfst | c0cd3e340a45c13fbe47310753432d496c20eb83 | [
"MIT"
] | null | null | null | src/python/transducer_aggregate.py | dptam/neural_wfst | c0cd3e340a45c13fbe47310753432d496c20eb83 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
| Filename : transducer_aggregate.py
| Description : Aggregate the predictions of pretrained transducer models.
| Author : Pushpendre Rastogi
| Created : Thu Dec 17 17:43:20 2015 (-0500)
| Last-Updated: Fri Dec 18 01:08:46 2015 (-0500)
| By: Pushpendre Rastogi
| Updat... | 34.339623 | 79 | 0.569231 | 402 | 3,640 | 4.845771 | 0.353234 | 0.078542 | 0.043635 | 0.023101 | 0.249487 | 0.179158 | 0.179158 | 0.144251 | 0.144251 | 0.063655 | 0 | 0.025503 | 0.235165 | 3,640 | 105 | 80 | 34.666667 | 0.67421 | 0.220604 | 0 | 0 | 0 | 0 | 0.144165 | 0.105721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0790c81bac781474a16eff0194da3c96835869ad | 2,570 | py | Python | src/rain.py | enurinm/LearnPython | d3422d3fe1491628c95f15e2d8ba55968e4ae0bd | [
"MIT"
] | null | null | null | src/rain.py | enurinm/LearnPython | d3422d3fe1491628c95f15e2d8ba55968e4ae0bd | [
"MIT"
] | null | null | null | src/rain.py | enurinm/LearnPython | d3422d3fe1491628c95f15e2d8ba55968e4ae0bd | [
"MIT"
] | null | null | null | import pygame, sys, random
from pygame.locals import*
pygame.init()
pygame.display.set_caption("rain")
screen=pygame.display.set_mode((1000,600))
clock=pygame.time.Clock()
raindrop_spawn_time=0
camerlyn_default=pygame.image.load("./img/Camerlyn_umbrella.png").convert()
camerlyn_right=pygame.image.load("./img/Camerlyn... | 24.245283 | 90 | 0.583268 | 344 | 2,570 | 4.212209 | 0.258721 | 0.05176 | 0.043478 | 0.048309 | 0.189096 | 0.049689 | 0.049689 | 0.049689 | 0 | 0 | 0 | 0.034483 | 0.277821 | 2,570 | 105 | 91 | 24.47619 | 0.746228 | 0.014786 | 0 | 0.285714 | 0 | 0 | 0.03927 | 0.037683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.166667 | 0.02381 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07927937314c6b62a4109d95d5d29fbf72436a26 | 14,225 | py | Python | leveldb_mcpe/setupnx.py | skinny121/MCEdit-TallWorlds | e43fe889fde0ce41652ab77d7887a2a680846312 | [
"0BSD"
] | 5 | 2015-05-18T06:22:54.000Z | 2020-08-04T08:27:02.000Z | leveldb_mcpe/setupnx.py | skinny121/MCEdit-TallWorlds | e43fe889fde0ce41652ab77d7887a2a680846312 | [
"0BSD"
] | null | null | null | leveldb_mcpe/setupnx.py | skinny121/MCEdit-TallWorlds | e43fe889fde0ce41652ab77d7887a2a680846312 | [
"0BSD"
] | null | null | null | #!/usr/bin/python2
# -*- coding: utf-8
#
# setupnx.py
#
# Build leveldb-mcpe for MCEdit-unified.
#
# D.C.-G. (LaChal) 2015
#
from setuptools import setup
from distutils.extension import Extension
import os
import sys
import platform
extra_compile_args = ["-DDLLX="]
extra_link_args = []
define_macros = []
runtime_libra... | 37.832447 | 474 | 0.622496 | 2,062 | 14,225 | 4.200776 | 0.174103 | 0.057146 | 0.02078 | 0.008889 | 0.309859 | 0.257908 | 0.188871 | 0.13692 | 0.118102 | 0.113138 | 0 | 0.01141 | 0.229877 | 14,225 | 375 | 475 | 37.933333 | 0.779279 | 0.130756 | 0 | 0.244898 | 0 | 0.020408 | 0.353118 | 0.038081 | 0 | 0 | 0 | 0.002667 | 0 | 0 | null | null | 0.006803 | 0.020408 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0798a4e3553c657096caebba5ef2314e0ebe4e2b | 704 | py | Python | myia/ir/__init__.py | fosterrath-mila/myia | b4382bd6eb53c709136a6142ee517e0b92d7baed | [
"MIT"
] | null | null | null | myia/ir/__init__.py | fosterrath-mila/myia | b4382bd6eb53c709136a6142ee517e0b92d7baed | [
"MIT"
] | null | null | null | myia/ir/__init__.py | fosterrath-mila/myia | b4382bd6eb53c709136a6142ee517e0b92d7baed | [
"MIT"
] | null | null | null | """Main exports for ir submodule."""
from .abstract import Node # noqa
from .anf import ( # noqa
ANFNode,
Apply,
Constant,
Graph,
Parameter,
Special,
VarNode,
)
from .clone import ( # noqa
BasicRemapper,
CloneRemapper,
GraphCloner,
GraphRemapper,
RemapperSet,
clon... | 19.027027 | 76 | 0.667614 | 73 | 704 | 6.273973 | 0.643836 | 0.052402 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255682 | 704 | 36 | 77 | 19.555556 | 0.874046 | 0.086648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.176471 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
079a322ea871c9d3e74c37f3551b9ebd463a1ffc | 3,406 | py | Python | examples/std_prob_3/run.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | examples/std_prob_3/run.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | examples/std_prob_3/run.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import os
import time
import logging
import numpy as np
import dolfin as df
from scipy.optimize import bisect
from finmag import Simulation
from finmag.energies import UniaxialAnisotropy, Exchange, Demag
MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
"""
Micromag Standard Problem #3
specification:
http:... | 33.722772 | 92 | 0.632707 | 511 | 3,406 | 4.074364 | 0.379648 | 0.014409 | 0.008646 | 0.020173 | 0.183958 | 0.183958 | 0.126321 | 0.126321 | 0.061479 | 0.061479 | 0 | 0.03785 | 0.22431 | 3,406 | 100 | 93 | 34.06 | 0.750189 | 0.105989 | 0 | 0.046154 | 0 | 0 | 0.076803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138462 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
079a592c273e23c109b026c80c5f35eacadd7f2f | 1,261 | py | Python | channel-wise-position-encoding/models/conv_circular.py | islamamirul/PermuteNet | 842591892d5b3af0e175a99b21c8e4e7cd7bd94b | [
"MIT"
] | 26 | 2021-08-19T02:37:26.000Z | 2022-03-14T06:54:30.000Z | channel-wise-position-encoding/models/conv_circular.py | islamamirul/PermuteNet | 842591892d5b3af0e175a99b21c8e4e7cd7bd94b | [
"MIT"
] | 1 | 2022-03-15T07:40:54.000Z | 2022-03-15T07:40:54.000Z | channel-wise-position-encoding/models/conv_circular.py | islamamirul/PermuteNet | 842591892d5b3af0e175a99b21c8e4e7cd7bd94b | [
"MIT"
] | null | null | null | import torch
import torchvision
import torchvision.transforms as transforms
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
class conv2d_circular(nn.Conv2d):
def __init__(self, in_channels, out_channels, kernel_size, stride=1,
padding=0, dilation=1, groups=1, bias=True, n... | 45.035714 | 119 | 0.630452 | 172 | 1,261 | 4.476744 | 0.25 | 0.128571 | 0.109091 | 0.062338 | 0.51039 | 0.392208 | 0.319481 | 0.163636 | 0.062338 | 0 | 0 | 0.030928 | 0.230769 | 1,261 | 27 | 120 | 46.703704 | 0.762887 | 0.341792 | 0 | 0 | 0 | 0 | 0.009744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
079dfdea450949f317dc59c1bfcc1b4bec260b95 | 7,938 | py | Python | camect/__init__.py | bdwilson/camect-py | 5e22edb1182e7b76f7452d7e4a1e59566a8b958a | [
"MIT"
] | null | null | null | camect/__init__.py | bdwilson/camect-py | 5e22edb1182e7b76f7452d7e4a1e59566a8b958a | [
"MIT"
] | null | null | null | camect/__init__.py | bdwilson/camect-py | 5e22edb1182e7b76f7452d7e4a1e59566a8b958a | [
"MIT"
] | null | null | null | """Client API for Camect."""
import asyncio
import base64
import json
import logging
import ssl
import sys
from threading import Thread
import time
from typing import Callable, Dict, List
import urllib3
import requests
import websockets
EMBEDDED_BUNDLE_JS = "js/embedded_bundle.min.js"
_LOGGER = logging.getLogger(__... | 39.103448 | 100 | 0.595994 | 951 | 7,938 | 4.772871 | 0.235542 | 0.026438 | 0.037013 | 0.030844 | 0.473893 | 0.457149 | 0.430051 | 0.389072 | 0.32386 | 0.285085 | 0 | 0.01086 | 0.280801 | 7,938 | 202 | 101 | 39.29703 | 0.7842 | 0.08642 | 0 | 0.326797 | 0 | 0 | 0.130889 | 0.011988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124183 | false | 0.065359 | 0.078431 | 0.03268 | 0.339869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07a4086b2e8e2a75d3afd39fcb0576ecfa03bc00 | 688 | py | Python | object-oriented-programming/src/oop-abstract-class.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | 1 | 2019-01-02T15:04:08.000Z | 2019-01-02T15:04:08.000Z | object-oriented-programming/src/oop-abstract-class.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | object-oriented-programming/src/oop-abstract-class.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Document(ABC):
def __init__(self, filename):
self.filename = filename
@abstractmethod
def display(self):
with open(self.filename) as file:
return file.read()
class PDFDocument(Document):
def display(self):
content = super... | 22.933333 | 118 | 0.668605 | 77 | 688 | 5.922078 | 0.415584 | 0.078947 | 0.092105 | 0.096491 | 0.127193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.228198 | 688 | 29 | 119 | 23.724138 | 0.853107 | 0.225291 | 0 | 0.176471 | 0 | 0 | 0.045369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07a44c8b85649b6f44c34e3c633623f43a03dd10 | 1,445 | py | Python | alipay/aop/api/response/AlipayCommerceEducateXuexinIdentityQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayCommerceEducateXuexinIdentityQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayCommerceEducateXuexinIdentityQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceEducateXuexinIdentityQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceEducateXuexinIdentityQueryResponse, self).__init__()
self._c... | 31.413043 | 121 | 0.710727 | 160 | 1,445 | 6.05 | 0.23125 | 0.120868 | 0.14876 | 0.082645 | 0.047521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000877 | 0.211073 | 1,445 | 45 | 122 | 32.111111 | 0.848246 | 0.029066 | 0 | 0.088235 | 0 | 0 | 0.059957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.088235 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07a69714efe2b1c9b3789bada166194fadc0b1e1 | 417 | py | Python | src/prefect/tasks/sql_server/__init__.py | heyitskevin/prefect | 8ce99d9752b175eeaf8a0b15ba3d0a80c221b69e | [
"Apache-2.0"
] | null | null | null | src/prefect/tasks/sql_server/__init__.py | heyitskevin/prefect | 8ce99d9752b175eeaf8a0b15ba3d0a80c221b69e | [
"Apache-2.0"
] | 1 | 2020-05-24T17:04:47.000Z | 2020-05-24T17:04:47.000Z | src/prefect/tasks/sql_server/__init__.py | heyitskevin/prefect | 8ce99d9752b175eeaf8a0b15ba3d0a80c221b69e | [
"Apache-2.0"
] | null | null | null | """
This module contains a collection of tasks for interacting with SQL Server databases via
the pyodbc library.
"""
try:
from prefect.tasks.sql_server.sql_server import (
SqlServerExecute,
SqlServerExecuteMany,
SqlServerFetch,
)
except ImportError:
raise ImportError(
'Using... | 26.0625 | 104 | 0.709832 | 48 | 417 | 6.083333 | 0.6875 | 0.15411 | 0.10274 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223022 | 417 | 15 | 105 | 27.8 | 0.901235 | 0.258993 | 0 | 0 | 0 | 0 | 0.312292 | 0.086379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07af3426f276600d685add08dc47f3e16c10446d | 276 | py | Python | trapPersonInPrison.py | leha-code/youtube-mcpi-trapPeople | 8ed7a7582e050b5bc1ce8394025e0986dafd54a1 | [
"MIT"
] | null | null | null | trapPersonInPrison.py | leha-code/youtube-mcpi-trapPeople | 8ed7a7582e050b5bc1ce8394025e0986dafd54a1 | [
"MIT"
] | null | null | null | trapPersonInPrison.py | leha-code/youtube-mcpi-trapPeople | 8ed7a7582e050b5bc1ce8394025e0986dafd54a1 | [
"MIT"
] | 1 | 2021-04-09T07:28:51.000Z | 2021-04-09T07:28:51.000Z | x,y,z = -59,27,-22 #my prison coordinates, change that to yours
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
print(mc.getPlayerEntityIds())
choice = int(input('which one?'))
mc.entity.setTilePos(choice,(x,y,z))
mc.setting('world_immutable',True)
print('done')
| 30.666667 | 63 | 0.742754 | 43 | 276 | 4.744186 | 0.767442 | 0.019608 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023904 | 0.09058 | 276 | 8 | 64 | 34.5 | 0.788845 | 0.155797 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b03af3e744590b54a5e5262e90d1817031f6df | 616 | py | Python | var/spack/repos/builtin/packages/r-stabledist/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/r-stabledist/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/r-stabledist/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RStabledist(RPackage):
"""Stable Distribution Functions.
Density, Probability and Qua... | 30.8 | 95 | 0.746753 | 73 | 616 | 6.287671 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120459 | 0.150974 | 616 | 19 | 96 | 32.421053 | 0.75717 | 0.592532 | 0 | 0 | 0 | 0 | 0.405983 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
07bfdcce0b277e5107e5e90bc27e9cda658a4843 | 271 | py | Python | 09.Printing Stars in C Shape.py | Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | 27 | 2020-10-16T03:55:24.000Z | 2022-02-02T13:47:06.000Z | 09.Printing Stars in C Shape.py | https-github-com-Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | null | null | null | 09.Printing Stars in C Shape.py | https-github-com-Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | 2 | 2020-11-27T04:51:29.000Z | 2021-06-04T03:34:37.000Z | #Printing Stars in 'C' Shape !
'''
****
*
*
*
*
*
****
'''
for row in range(7):
for col in range(5):
if (col==0 and (row!=0 and row!=6)) or (row==0 or row==6) and (col>0):
print('*',end='')
else:
print(end=' ')
print() | 14.263158 | 78 | 0.416974 | 39 | 271 | 2.897436 | 0.487179 | 0.123894 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044693 | 0.339483 | 271 | 19 | 79 | 14.263158 | 0.586592 | 0.184502 | 0 | 0 | 0 | 0 | 0.009434 | 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 |
07c1e94e9c25a2880118725c44277546aa060086 | 3,111 | py | Python | opencensus/tags/tag_map.py | wkiser/opencensus-python | d328d17f48bb71d8ba13a2f6058eb39964377966 | [
"Apache-2.0"
] | null | null | null | opencensus/tags/tag_map.py | wkiser/opencensus-python | d328d17f48bb71d8ba13a2f6058eb39964377966 | [
"Apache-2.0"
] | 1 | 2018-04-08T18:01:16.000Z | 2018-04-08T18:01:16.000Z | opencensus/tags/tag_map.py | kcooperstein/opencensus-python | d7aab849b263b329dd264dda274b582d2e365634 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 30.203883 | 78 | 0.606236 | 477 | 3,111 | 3.903564 | 0.253669 | 0.035446 | 0.030075 | 0.047261 | 0.1971 | 0.168099 | 0.168099 | 0.168099 | 0.139098 | 0.139098 | 0 | 0.003754 | 0.315011 | 3,111 | 102 | 79 | 30.5 | 0.870014 | 0.60495 | 0 | 0.071429 | 0 | 0 | 0.018888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07c5ff9466247c3580f1b2a3c8436af489336b11 | 445 | py | Python | setup.py | tristan/blockies | a129375a0095579ca3fc5634a2da3dcef487bb0a | [
"WTFPL"
] | 3 | 2018-01-09T08:17:54.000Z | 2021-11-06T17:46:35.000Z | setup.py | tristan/blockies | a129375a0095579ca3fc5634a2da3dcef487bb0a | [
"WTFPL"
] | 3 | 2021-03-18T20:25:36.000Z | 2022-01-13T00:42:23.000Z | setup.py | tristan/blockies | a129375a0095579ca3fc5634a2da3dcef487bb0a | [
"WTFPL"
] | 1 | 2021-09-01T21:16:19.000Z | 2021-09-01T21:16:19.000Z | from setuptools import setup
setup(
name='blockies',
version='0.0.3',
author='Tristan King',
author_email='tristan.king@gmail.com',
py_modules=['blockies'],
url='http://github.com/tristan/blockies',
description='A tiny library for generating blocky identicons.',
long_description_content... | 29.666667 | 67 | 0.703371 | 55 | 445 | 5.563636 | 0.745455 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.14382 | 445 | 14 | 68 | 31.785714 | 0.795276 | 0 | 0 | 0 | 0 | 0 | 0.393258 | 0.049438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07c728a0505a1ab24313972307eb225721bcde66 | 4,862 | py | Python | run.py | ncanceill/atlas-dnssec | 1a248c01cfb4fbbbe01a9a9f37cfd916ecc3a1ed | [
"MIT"
] | 4 | 2016-02-15T06:15:15.000Z | 2018-06-25T10:21:17.000Z | run.py | ncanceill/atlas-dnssec | 1a248c01cfb4fbbbe01a9a9f37cfd916ecc3a1ed | [
"MIT"
] | null | null | null | run.py | ncanceill/atlas-dnssec | 1a248c01cfb4fbbbe01a9a9f37cfd916ecc3a1ed | [
"MIT"
] | null | null | null | #
# run.py
# Run measurements with captures and compute results
#
# This file distributes under: The MIT License (MIT)
#
# Copyright (c) 2014 Nicolas Canceill
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
... | 26.423913 | 79 | 0.680173 | 784 | 4,862 | 4.188776 | 0.339286 | 0.033496 | 0.014616 | 0.010962 | 0.09592 | 0.083435 | 0.04324 | 0.04324 | 0.04324 | 0.022534 | 0 | 0.014053 | 0.165775 | 4,862 | 183 | 80 | 26.568306 | 0.795611 | 0.262649 | 0 | 0.126761 | 0 | 0 | 0.163893 | 0.00677 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007042 | 0.056338 | null | null | 0.15493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
07cb98154f61ef242051fcfcb3bcc685fc42d2bb | 434 | py | Python | backend/users/migrations/0003_catenauser_public_key.py | J1149/catena | 370d188c413939bf726a0e76f0a101b48c5b81f4 | [
"MIT"
] | null | null | null | backend/users/migrations/0003_catenauser_public_key.py | J1149/catena | 370d188c413939bf726a0e76f0a101b48c5b81f4 | [
"MIT"
] | null | null | null | backend/users/migrations/0003_catenauser_public_key.py | J1149/catena | 370d188c413939bf726a0e76f0a101b48c5b81f4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-12-21 03:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_catenauser_access_token'),
]
operations = [
migrations.AddField(
model_name='catenauser',
name='public... | 22.842105 | 89 | 0.62212 | 49 | 434 | 5.367347 | 0.795918 | 0.076046 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065625 | 0.262673 | 434 | 18 | 90 | 24.111111 | 0.75625 | 0.103687 | 0 | 0 | 1 | 0 | 0.162791 | 0.072351 | 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 |
07cf287a25a9fe35eeaf6739a53b09bf1684c085 | 2,361 | py | Python | base/api/views.py | Ajay2810-hub/EbooksPortal | 70f3ffe803a1da879a17449c6a7b7fb208b0ca58 | [
"MIT"
] | null | null | null | base/api/views.py | Ajay2810-hub/EbooksPortal | 70f3ffe803a1da879a17449c6a7b7fb208b0ca58 | [
"MIT"
] | null | null | null | base/api/views.py | Ajay2810-hub/EbooksPortal | 70f3ffe803a1da879a17449c6a7b7fb208b0ca58 | [
"MIT"
] | null | null | null | from .serializers import *
from .filtersets import *
from books.models import *
from papers.models import *
from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import AllowAny
from rest_framework.views import APIView
from rest_framework.response import Response
# Create your views here.
cl... | 31.48 | 81 | 0.701398 | 235 | 2,361 | 6.893617 | 0.319149 | 0.055556 | 0.116667 | 0.033333 | 0.133951 | 0.089506 | 0.089506 | 0.089506 | 0.089506 | 0.061728 | 0 | 0 | 0.22194 | 2,361 | 75 | 82 | 31.48 | 0.881873 | 0.009742 | 0 | 0.098361 | 0 | 0 | 0.025674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.131148 | 0 | 0.704918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07d1783ddccc84ed10a3ecd711ab36cbfc9513ef | 426 | py | Python | tensorcv/train/trainer/trainer.py | afcarl/tensorcv | 6545a48722dafb5c1cead3ed4f810ebcbef2c597 | [
"MIT"
] | 1 | 2019-04-22T16:37:36.000Z | 2019-04-22T16:37:36.000Z | tensorcv/train/trainer/trainer.py | afcarl/tensorcv | 6545a48722dafb5c1cead3ed4f810ebcbef2c597 | [
"MIT"
] | null | null | null | tensorcv/train/trainer/trainer.py | afcarl/tensorcv | 6545a48722dafb5c1cead3ed4f810ebcbef2c597 | [
"MIT"
] | null | null | null | import tensorflow as tf
class Trainer(object):
def __init__(self, config):
self.config = config
def get_run_config(self):
run_config = tf.estimator.RunConfig(
model_dir=self.config.model_dir,
save_summary_steps=self.config.summary_steps,
keep_checkpoint_max... | 23.666667 | 57 | 0.661972 | 52 | 426 | 5.096154 | 0.538462 | 0.150943 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262911 | 426 | 17 | 58 | 25.058824 | 0.843949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07d2d28ced47701e25fea40cf268a61e7697789f | 631 | py | Python | Aula_15_Abrir_Arquivo.py | DiegoGomesFerreira/Aulas-Tkinter | 3b977b61aaa973c2bea1f6e74f564d2e6c9c3873 | [
"MIT"
] | null | null | null | Aula_15_Abrir_Arquivo.py | DiegoGomesFerreira/Aulas-Tkinter | 3b977b61aaa973c2bea1f6e74f564d2e6c9c3873 | [
"MIT"
] | null | null | null | Aula_15_Abrir_Arquivo.py | DiegoGomesFerreira/Aulas-Tkinter | 3b977b61aaa973c2bea1f6e74f564d2e6c9c3873 | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import filedialog
from PIL import Image,ImageTk
def open():
global lbl
global img_lbl
global imagem
root.filename = filedialog.askopenfilename(initialdir = "/Aulas-Tkinter", title = "Selecionar Arquivo",
filetypes = (("png files", "*.png"), ("all files", "*.*")))... | 26.291667 | 107 | 0.678288 | 79 | 631 | 5.392405 | 0.518987 | 0.084507 | 0.079812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.169572 | 631 | 24 | 108 | 26.291667 | 0.80916 | 0 | 0 | 0 | 0 | 0 | 0.142405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07d61db3b1111b7cd54e2a9801b8c535987f5d8d | 565 | py | Python | loss_framework/loss_result.py | diversemix/calc-hurricane-loss | e913569f800147e946929bfa0f9d1ecf399af710 | [
"MIT"
] | 1 | 2021-04-08T03:05:10.000Z | 2021-04-08T03:05:10.000Z | loss_framework/loss_result.py | diversemix/calc-hurricane-loss | e913569f800147e946929bfa0f9d1ecf399af710 | [
"MIT"
] | 1 | 2020-01-19T12:51:57.000Z | 2020-01-19T14:03:01.000Z | loss_framework/loss_result.py | diversemix/calc-hurricane-loss | e913569f800147e946929bfa0f9d1ecf399af710 | [
"MIT"
] | 1 | 2021-04-08T03:05:14.000Z | 2021-04-08T03:05:14.000Z | from dataclasses import dataclass
@dataclass
class LossResult:
"""
LossResult - Responsible for keeping the current result coherent (mathamatically).
"""
num_years: int = 0
total_loss: float = 0
def add_annual_loss(self, loss: float) -> None:
self.num_years += 1
self.total_los... | 26.904762 | 131 | 0.631858 | 71 | 565 | 4.830986 | 0.549296 | 0.116618 | 0.139942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.267257 | 565 | 20 | 132 | 28.25 | 0.818841 | 0.145133 | 0 | 0 | 0 | 0 | 0.132762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07d6672c75fd31e3727394e57bb7596ac50a0986 | 8,526 | py | Python | tests/property/strategies.py | CristianoPizzamiglio/scikit-spatial | 95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5 | [
"BSD-3-Clause"
] | 35 | 2019-08-22T04:25:29.000Z | 2022-03-10T16:23:45.000Z | tests/property/strategies.py | CristianoPizzamiglio/scikit-spatial | 95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5 | [
"BSD-3-Clause"
] | 241 | 2019-03-04T23:08:26.000Z | 2022-03-27T13:25:30.000Z | tests/property/strategies.py | CristianoPizzamiglio/scikit-spatial | 95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5 | [
"BSD-3-Clause"
] | 7 | 2020-11-13T21:40:05.000Z | 2022-02-07T00:38:30.000Z | """Custom strategies for property tests."""
import hypothesis.strategies as st
from hypothesis import assume
from skspatial.objects import Circle
from skspatial.objects import Line
from skspatial.objects import Plane
from skspatial.objects import Point
from skspatial.objects import Points
from skspatial.objects import... | 22.377953 | 99 | 0.616115 | 1,044 | 8,526 | 4.944444 | 0.108238 | 0.018597 | 0.015692 | 0.050368 | 0.621658 | 0.5432 | 0.466292 | 0.418636 | 0.36943 | 0.367493 | 0 | 0.019753 | 0.239972 | 8,526 | 380 | 100 | 22.436842 | 0.776852 | 0.591485 | 0 | 0.2 | 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 |
07dc28be04df2d8f334007e888e6d8ad5248c87b | 6,221 | py | Python | apps/auths/views.py | viallymboma/mlm_osw_network | d46a938f4a1295b59e863105926f9c249de00f9e | [
"MIT"
] | null | null | null | apps/auths/views.py | viallymboma/mlm_osw_network | d46a938f4a1295b59e863105926f9c249de00f9e | [
"MIT"
] | null | null | null | apps/auths/views.py | viallymboma/mlm_osw_network | d46a938f4a1295b59e863105926f9c249de00f9e | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django import template
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login as auth_login
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
import json
from django.core.exceptions import Pe... | 23.387218 | 99 | 0.613888 | 665 | 6,221 | 5.631579 | 0.207519 | 0.060881 | 0.048064 | 0.056075 | 0.465421 | 0.411482 | 0.375701 | 0.299065 | 0.230174 | 0.179706 | 0 | 0.006143 | 0.26732 | 6,221 | 265 | 100 | 23.475472 | 0.815489 | 0.415689 | 0 | 0.369048 | 0 | 0 | 0.094864 | 0.009262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.095238 | 0.142857 | 0.035714 | 0.428571 | 0.059524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07dcdc5679e4602bfec25ef60d237ce2f77ae079 | 17,613 | py | Python | Python27/Lib/test/test_functools.py | Jeff-Tian/mybnb | 1a42890a1d2f1344d5465f8be10c42df01964f5a | [
"Apache-2.0"
] | 1 | 2019-05-17T08:58:11.000Z | 2019-05-17T08:58:11.000Z | Python27/Lib/test/test_functools.py | Jeff-Tian/mybnb | 1a42890a1d2f1344d5465f8be10c42df01964f5a | [
"Apache-2.0"
] | 2 | 2016-12-12T05:54:58.000Z | 2016-12-12T05:55:44.000Z | Python27/Lib/test/test_functools.py | Jeff-Tian/mybnb | 1a42890a1d2f1344d5465f8be10c42df01964f5a | [
"Apache-2.0"
] | null | null | null | import functools
import sys
import unittest
from test import test_support
from weakref import proxy
import pickle
@staticmethod
def PythonPartial(func, *args, **keywords):
'Pure Python approximation of partial()'
def newfunc(*fargs, **fkeywords):
newkeywords = keywords.copy()
newkey... | 35.155689 | 88 | 0.548288 | 2,093 | 17,613 | 4.462972 | 0.136646 | 0.083503 | 0.048175 | 0.027406 | 0.554437 | 0.493844 | 0.437212 | 0.410663 | 0.389359 | 0.379938 | 0 | 0.026965 | 0.328337 | 17,613 | 500 | 89 | 35.226 | 0.762637 | 0.049339 | 0 | 0.418886 | 0 | 0 | 0.039085 | 0 | 0 | 0 | 0 | 0 | 0.261501 | 0 | null | null | 0.043584 | 0.016949 | null | null | 0.002421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
07dd99dbec781310d88550cfd37c51f00a2b6926 | 8,456 | py | Python | sdk/python/pulumi_linode/get_domain.py | Mattlk13/pulumi-linode | 945de6c6b321a4d58b9a354cac53019b28d49732 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_linode/get_domain.py | Mattlk13/pulumi-linode | 945de6c6b321a4d58b9a354cac53019b28d49732 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-11-09T14:38:57.000Z | 2020-11-09T14:38:57.000Z | sdk/python/pulumi_linode/get_domain.py | Mattlk13/pulumi-linode | 945de6c6b321a4d58b9a354cac53019b28d49732 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from . import _utilities... | 35.830508 | 227 | 0.65421 | 1,101 | 8,456 | 4.798365 | 0.190736 | 0.0159 | 0.0424 | 0.0795 | 0.287337 | 0.206133 | 0.131175 | 0.041643 | 0 | 0 | 0 | 0.001255 | 0.246216 | 8,456 | 235 | 228 | 35.982979 | 0.827581 | 0.238647 | 0 | 0.134615 | 1 | 0 | 0.143333 | 0.008889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108974 | false | 0 | 0.032051 | 0.089744 | 0.25641 | 0 | 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 |
07de2fd0a26e2e5d01e1bf6265fdf31eb31ad465 | 287 | py | Python | src/data/monuseg/evalutation.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | src/data/monuseg/evalutation.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | src/data/monuseg/evalutation.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | import numpy as np
from scipy.ndimage import watershed_ift
from skimage.measure import label
def watershed_prediction(y_pred):
markers = label(y_pred[..., 0])
markers[y_pred[..., 2]] = -1
y_pred = watershed_ift((y_pred[..., 1]).astype(np.uint8), markers)
return y_pred
| 26.090909 | 70 | 0.696864 | 44 | 287 | 4.340909 | 0.522727 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.163763 | 287 | 10 | 71 | 28.7 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07e1777ace1e53a73adfa3c87558fc80fc9d6d91 | 12,803 | py | Python | rom_generator/meta/scripting.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | 3 | 2021-08-07T03:38:02.000Z | 2021-09-17T14:33:27.000Z | rom_generator/meta/scripting.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | null | null | null | rom_generator/meta/scripting.py | ikarth/game-boy-rom-generator | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | [
"MIT"
] | null | null | null | ### Script Commands ###
script_commands = {
"EVENT_END": {}, # no arguments
"EVENT_STOP": {}, # no arguments, same as end
"EVENT_WAIT": {
"time": 0.5
},
# Scenes
"EVENT_SWITCH_SCENE": {
"sceneId": "498cfdcf-3000-453f-9b52-fe5d8d81cac2",
"x": 7,
"y": 6... | 29.164009 | 1,577 | 0.507381 | 1,239 | 12,803 | 4.867635 | 0.221146 | 0.038136 | 0.028022 | 0.043276 | 0.306417 | 0.24772 | 0.203283 | 0.179241 | 0.131985 | 0.115072 | 0 | 0.039514 | 0.312114 | 12,803 | 438 | 1,578 | 29.230594 | 0.645282 | 0.049207 | 0 | 0.337379 | 0 | 0 | 0.471963 | 0.125075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002427 | false | 0 | 0.002427 | 0.002427 | 0.007282 | 0.007282 | 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 |
07e470aa7b5558bd7499449d9750bb7e93fd35d1 | 1,120 | py | Python | util/view_finder.py | rkoval/SublimeDiffView | 57744b5626851085f49511c225b87c9465c0e7ad | [
"MIT"
] | 23 | 2015-12-14T12:10:49.000Z | 2020-11-28T10:26:52.000Z | util/view_finder.py | rkoval/SublimeDiffView | 57744b5626851085f49511c225b87c9465c0e7ad | [
"MIT"
] | 59 | 2015-12-14T08:58:21.000Z | 2021-04-09T11:46:00.000Z | util/view_finder.py | rkoval/SublimeDiffView | 57744b5626851085f49511c225b87c9465c0e7ad | [
"MIT"
] | 7 | 2016-01-09T11:47:07.000Z | 2020-03-16T15:11:32.000Z | import sublime_plugin
class ViewFinder(sublime_plugin.EventListener):
"""Helper class for finding widgets that are created."""
_instance = None
def __init__(self):
"""Constructor.
Do not call directly - use `ViewFinder.instance()` instead.
"""
self.__class__._instance = s... | 24.888889 | 68 | 0.58125 | 125 | 1,120 | 5.032 | 0.432 | 0.103339 | 0.085851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326786 | 1,120 | 44 | 69 | 25.454545 | 0.834218 | 0.31875 | 0 | 0.142857 | 0 | 0 | 0.013433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e80553e4ba7f3a4f65df0edfbdf8030af61bcd | 7,228 | py | Python | gennotes_server/settings.py | madprime/gennotes | 8151f5b401faf2dedd2daf7952c3346f2d4d2858 | [
"MIT"
] | 2 | 2017-03-21T19:52:18.000Z | 2017-08-03T10:57:56.000Z | gennotes_server/settings.py | madprime/gennotes | 8151f5b401faf2dedd2daf7952c3346f2d4d2858 | [
"MIT"
] | null | null | null | gennotes_server/settings.py | madprime/gennotes | 8151f5b401faf2dedd2daf7952c3346f2d4d2858 | [
"MIT"
] | null | null | null | """
Django settings for gennotes_server project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
import... | 31.155172 | 90 | 0.723298 | 854 | 7,228 | 5.918033 | 0.348946 | 0.038583 | 0.022556 | 0.019786 | 0.059161 | 0.041156 | 0.027107 | 0.027107 | 0 | 0 | 0 | 0.006788 | 0.164361 | 7,228 | 231 | 91 | 31.290043 | 0.829967 | 0.236303 | 0 | 0.02069 | 1 | 0 | 0.440146 | 0.300182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02069 | 0.034483 | 0 | 0.034483 | 0 | 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 |
07e8f666efd1b4dde3af6c27c5d9d3646d216262 | 165 | py | Python | Online-Judges/DimikOJ/Python/28-ramdom-array.py | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | 3 | 2021-06-15T01:19:23.000Z | 2022-03-16T18:23:53.000Z | Online-Judges/DimikOJ/Python/28-ramdom-array.py | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | null | null | null | Online-Judges/DimikOJ/Python/28-ramdom-array.py | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | null | null | null | material = []
for i in range(int(input())):
material.append(int(input()))
srted = sorted(material)
if srted == material:
print("YES")
else:
print("NO") | 16.5 | 33 | 0.618182 | 22 | 165 | 4.636364 | 0.681818 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187879 | 165 | 10 | 34 | 16.5 | 0.761194 | 0 | 0 | 0 | 0 | 0 | 0.03012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
07e9366183a16727b078b7aac1d8cebe9f8b0202 | 1,442 | py | Python | modules/client/gui/optsmenu.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | modules/client/gui/optsmenu.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-11-21T04:50:57.000Z | 2018-11-21T04:50:57.000Z | modules/client/gui/optsmenu.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from modules.client.gui import common
from modules.pgu import gui as pgui
from modules.client import config
hgt = common.screen.get_height()
t = pgui.Table(width=common.screen.get_width(), height=hgt)
t.tr()
t.td(pgui.Spacer(width=150, height=80), colspan=2)
t.tr()
t.td(pgui.Label('Guns-game.com username', height=30... | 21.848485 | 73 | 0.715673 | 238 | 1,442 | 4.273109 | 0.315126 | 0.029499 | 0.048181 | 0.035398 | 0.286136 | 0.286136 | 0.214356 | 0.188791 | 0.188791 | 0.100295 | 0 | 0.029065 | 0.117198 | 1,442 | 65 | 74 | 22.184615 | 0.769835 | 0.029126 | 0 | 0.195652 | 0 | 0 | 0.118741 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
07ef70cfe3f4ae1fd6d4aa9fd4a04957bfa16d0f | 1,355 | py | Python | src/lib/datasets/dataset_factory.py | jperezrua/ONCE | b717d2e4b8574970d3c0d9ca87f4ffc05f8b4ed8 | [
"MIT"
] | 1 | 2021-12-06T04:09:45.000Z | 2021-12-06T04:09:45.000Z | src/lib/datasets/dataset_factory.py | jperezrua/ONCE | b717d2e4b8574970d3c0d9ca87f4ffc05f8b4ed8 | [
"MIT"
] | null | null | null | src/lib/datasets/dataset_factory.py | jperezrua/ONCE | b717d2e4b8574970d3c0d9ca87f4ffc05f8b4ed8 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .sample.ddd import DddDataset
from .sample.exdet import EXDetDataset
from .sample.ctdet import CTDetDataset
from .sample.multi_pose import MultiPoseDataset
from .sample.epdet import EpisodicDetDataset
from... | 27.1 | 65 | 0.780812 | 159 | 1,355 | 6.433962 | 0.301887 | 0.096774 | 0.087977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128413 | 1,355 | 49 | 66 | 27.653061 | 0.866215 | 0 | 0 | 0 | 0 | 0 | 0.093727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.02381 | 0.428571 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07f5adf60c4fa8063582b1193da72a4bbdac6d40 | 2,310 | py | Python | structured/fully_connected.py | db434/nn-restrict | bc46725d01db9555e1cd9f2068b25a1dee8912ce | [
"MIT"
] | null | null | null | structured/fully_connected.py | db434/nn-restrict | bc46725d01db9555e1cd9f2068b25a1dee8912ce | [
"MIT"
] | null | null | null | structured/fully_connected.py | db434/nn-restrict | bc46725d01db9555e1cd9f2068b25a1dee8912ce | [
"MIT"
] | null | null | null | from collections import OrderedDict
import torch.nn as nn
from . import wrapped
import modifiers.modules as quantisable
class Conv2d(nn.Module):
"""Simple wrapper for the default convolution class. Introduced so all
convolution variants have a similar interface.
Adds batch normalisation to be fair, ... | 34.477612 | 80 | 0.552381 | 237 | 2,310 | 5.244726 | 0.489451 | 0.061947 | 0.061142 | 0.054706 | 0.112631 | 0.065969 | 0.065969 | 0.065969 | 0 | 0 | 0 | 0.007571 | 0.370996 | 2,310 | 66 | 81 | 35 | 0.847901 | 0.350649 | 0 | 0 | 0 | 0 | 0.001373 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.027778 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07f6d5bbd60f7f19301a323c85752f6cc79c2b0e | 6,335 | py | Python | preprocess/prepare_data.py | xiaomin418/XVLP | 47703a46e29ac9f8c6052c116ac38c9cae9a68ad | [
"Apache-2.0"
] | null | null | null | preprocess/prepare_data.py | xiaomin418/XVLP | 47703a46e29ac9f8c6052c116ac38c9cae9a68ad | [
"Apache-2.0"
] | null | null | null | preprocess/prepare_data.py | xiaomin418/XVLP | 47703a46e29ac9f8c6052c116ac38c9cae9a68ad | [
"Apache-2.0"
] | null | null | null |
import torch
import torch.nn as nn
import torchvision.models as models
from PIL import Image
import torchvision.transforms as transforms
import os
import numpy as np
import json
import glob
class VggEncoder(nn.Module):
def __init__(self,tk_dim = 49, hidden_dim = 512, train_CNN=False):
super(VggEncoder, s... | 46.580882 | 1,594 | 0.614522 | 945 | 6,335 | 3.918519 | 0.221164 | 0.045639 | 0.046179 | 0.05104 | 0.392385 | 0.355658 | 0.320011 | 0.31353 | 0.256009 | 0.166892 | 0 | 0.050571 | 0.19779 | 6,335 | 135 | 1,595 | 46.925926 | 0.67808 | 0.281768 | 0 | 0.039216 | 0 | 0 | 0.190276 | 0.153812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0.088235 | 0 | 0.176471 | 0.009804 | 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 |
07f731d6ab738e62ea3a047b3d696e68902f1bb6 | 2,293 | py | Python | last_time/noise_utils.py | abdelabdalla/deepmind-research | 4b7e0379ca5ba85e27f6f246fa2b0c060bd86879 | [
"Apache-2.0"
] | null | null | null | last_time/noise_utils.py | abdelabdalla/deepmind-research | 4b7e0379ca5ba85e27f6f246fa2b0c060bd86879 | [
"Apache-2.0"
] | null | null | null | last_time/noise_utils.py | abdelabdalla/deepmind-research | 4b7e0379ca5ba85e27f6f246fa2b0c060bd86879 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# pylint: disable=g-bad-file-header
# Copyright 2020 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.a... | 41.690909 | 78 | 0.712604 | 339 | 2,293 | 4.657817 | 0.466077 | 0.065864 | 0.034832 | 0.020266 | 0.036732 | 0.036732 | 0.036732 | 0 | 0 | 0 | 0 | 0.010672 | 0.18273 | 2,293 | 54 | 79 | 42.462963 | 0.83191 | 0.641082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
07f73a73b917a70f77b077be5c9e2215b3017a0e | 5,664 | py | Python | euler.py | Maxz44/euler | f966803375d27991bc93f3929e475383def77b7f | [
"Unlicense"
] | 1 | 2020-11-27T19:09:07.000Z | 2020-11-27T19:09:07.000Z | euler.py | Maxz44/euler | f966803375d27991bc93f3929e475383def77b7f | [
"Unlicense"
] | null | null | null | euler.py | Maxz44/euler | f966803375d27991bc93f3929e475383def77b7f | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# --- Euler pb 1
# Multiples of 3 and 5
# If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
# The sum of these multiples is 23.
# Find the sum of all the multiples of 3 or 5 below 1000.
def euler1(n):
return sum([x for x in range(1, n) if x % ... | 27.362319 | 120 | 0.636653 | 778 | 5,664 | 4.609255 | 0.269923 | 0.01952 | 0.015616 | 0.015337 | 0.148912 | 0.135806 | 0.110708 | 0.092861 | 0.077803 | 0.04406 | 0 | 0.300553 | 0.265713 | 5,664 | 207 | 121 | 27.362319 | 0.561433 | 0.374294 | 0 | 0.106796 | 0 | 0 | 0.292669 | 0.286369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116505 | false | 0 | 0.019417 | 0.019417 | 0.262136 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
07f90cf44763d5e2c3e0df89dfd3f57374159223 | 4,044 | py | Python | homeassistant/components/alarm_control_panel/alarmdotcom.py | loraxx753/skynet | 86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543 | [
"Apache-2.0"
] | 2 | 2017-02-25T00:27:06.000Z | 2017-02-25T03:09:30.000Z | homeassistant/components/alarm_control_panel/alarmdotcom.py | 1Forward1Back/home-assistant | ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6 | [
"MIT"
] | 1 | 2017-03-10T22:17:06.000Z | 2017-03-10T22:17:06.000Z | homeassistant/components/alarm_control_panel/alarmdotcom.py | 1Forward1Back/home-assistant | ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6 | [
"MIT"
] | 2 | 2018-10-22T17:05:47.000Z | 2021-09-22T10:52:31.000Z | """
Interfaces with Alarm.com alarm control panels.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.alarmdotcom/
"""
import logging
import voluptuous as vol
import homeassistant.components.alarm_control_panel as alarm
from homeassist... | 34.271186 | 75 | 0.672107 | 499 | 4,044 | 5.242485 | 0.244489 | 0.024465 | 0.022936 | 0.055046 | 0.309251 | 0.224771 | 0.224771 | 0.212538 | 0.212538 | 0.212538 | 0 | 0.004509 | 0.232196 | 4,044 | 117 | 76 | 34.564103 | 0.838003 | 0.168892 | 0 | 0.194805 | 0 | 0 | 0.053701 | 0.006371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0.12987 | 0.12987 | 0 | 0.402597 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07f90d0879e558206b4cf92be9f7af20cd65b928 | 1,556 | py | Python | homeassistant/components/netatmo.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | 1 | 2017-02-12T18:44:18.000Z | 2017-02-12T18:44:18.000Z | homeassistant/components/netatmo.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | null | null | null | homeassistant/components/netatmo.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | null | null | null | """
Support for the Netatmo devices (Weather Station and Welcome camera).
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/netatmo/
"""
import logging
from urllib.error import HTTPError
import voluptuous as vol
from homeassistant.const import (
CONF_... | 27.298246 | 74 | 0.710154 | 199 | 1,556 | 5.376884 | 0.447236 | 0.033645 | 0.056075 | 0.053271 | 0.070093 | 0.048598 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.186375 | 1,556 | 56 | 75 | 27.785714 | 0.840442 | 0.140746 | 0 | 0 | 0 | 0 | 0.134441 | 0.019637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.083333 | 0.194444 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07fa99f4e649a274251930b8760bf19c617bb802 | 1,383 | py | Python | src/ga4gh/vrs/_internal/models.py | GenomicMedLab/vrs-python | 4978e88396c8a718576ade805c8b1332b7108496 | [
"Apache-2.0"
] | 1 | 2017-01-10T18:47:54.000Z | 2017-01-10T18:47:54.000Z | src/ga4gh/vrs/_internal/models.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | src/ga4gh/vrs/_internal/models.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | """Generate VRS models at runtime from the json schema
**This module should not be imported directly.**
Instead, users should use one of the following:
* `from ga4gh.vrs import models`, and refer to models with the
abbreviated name, e.g., `models.Allele` (recommended)
* `import ga4gh.vrs`, and refer to mode... | 25.611111 | 103 | 0.763557 | 204 | 1,383 | 4.960784 | 0.455882 | 0.035573 | 0.041502 | 0.031621 | 0.061265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.164136 | 1,383 | 53 | 104 | 26.09434 | 0.871972 | 0.556038 | 0 | 0 | 1 | 0 | 0.05802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 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 |
07fd8dcad711461da9ccdfd6208dbd93dc3542ee | 7,502 | py | Python | benchmarks/vTrident/comd/identification/getVolatilityAccuracy.py | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 5 | 2018-09-23T05:44:31.000Z | 2021-09-08T18:52:37.000Z | benchmarks/vTrident/lulesh/identification/getVolatilityAccuracy.py | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 4 | 2019-06-13T16:27:31.000Z | 2021-06-07T07:24:31.000Z | benchmarks/vTrident/lulesh/identification/getVolatilityAccuracy.py | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 4 | 2018-09-23T05:44:33.000Z | 2021-04-20T00:29:11.000Z | import sys, os
##########################
fiDataFolder = sys.argv[1]
predDataFolder = sys.argv[2]
##########################
minFileNo = 0
maxFileNo = 9
minFiTimes = 10
sdcIndexDic = {}
dynPortionDic = {}
totalFiTimesDic = {}
predSdcDic = {}
for y in range(minFileNo, maxFileNo+1):
with open(predDataFolder + "/pred... | 28.965251 | 198 | 0.56145 | 876 | 7,502 | 4.807078 | 0.140411 | 0.064593 | 0.056994 | 0.080741 | 0.309903 | 0.241273 | 0.199003 | 0.160057 | 0.160057 | 0.160057 | 0 | 0.072422 | 0.26193 | 7,502 | 258 | 199 | 29.077519 | 0.688098 | 0.222341 | 0 | 0.214765 | 0 | 0 | 0.033393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006711 | null | null | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6af3c7821c0601f3f49b40169554dd0512872da1 | 718 | py | Python | apps/users/migrations/0040_auto_20160913_2134.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/users/migrations/0040_auto_20160913_2134.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/users/migrations/0040_auto_20160913_2134.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-13 21:34
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('users', '0039_auto_20160804_0518'),
]
operations = [
migrations.... | 26.592593 | 98 | 0.623955 | 79 | 718 | 5.518987 | 0.594937 | 0.091743 | 0.114679 | 0.133028 | 0.353211 | 0.353211 | 0.353211 | 0.353211 | 0.353211 | 0.353211 | 0 | 0.06379 | 0.25766 | 718 | 26 | 99 | 27.615385 | 0.754221 | 0.093315 | 0 | 0.421053 | 1 | 0 | 0.094136 | 0.035494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 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 |
6af80a188692db7b12bc46437f7afa43408913d7 | 713 | py | Python | perfreports/constants.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | 2 | 2015-05-07T07:49:36.000Z | 2021-11-17T12:04:23.000Z | perfreports/constants.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | null | null | null | perfreports/constants.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | null | null | null | PALETTE = (
'#51A351',
'#f89406',
'#7D1935',
'#4A96AD',
'#DE1B1B',
'#E9E581',
'#A2AB58',
'#FFE658',
'#118C4E',
'#193D4F',
)
LABELS = {
'cpu_user': 'CPU time spent in user mode, %',
'cpu_nice': 'CPU time spent in user mode with low priority (nice), %',
'cpu_sys': 'CPU... | 28.52 | 74 | 0.591865 | 97 | 713 | 4.257732 | 0.608247 | 0.084746 | 0.116223 | 0.135593 | 0.106538 | 0.106538 | 0 | 0 | 0 | 0 | 0 | 0.07037 | 0.242637 | 713 | 24 | 75 | 29.708333 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.656381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6afe1ffb1ea49fd2f1e74099d4023818b2555dbb | 973 | py | Python | conf/__init__.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | null | null | null | conf/__init__.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | 8 | 2021-03-30T14:02:38.000Z | 2022-03-12T00:40:05.000Z | conf/__init__.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
"""
@Time : 2019/09/15
@Author : fls
@Contact : fls@darkripples.com
@Desc : darkripples总平台相关
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2019/09/15 08:43 fls 1.0 create
"""
# 默认... | 29.484848 | 85 | 0.581706 | 117 | 973 | 4.760684 | 0.589744 | 0.050269 | 0.078995 | 0.129264 | 0.068223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041841 | 0.263104 | 973 | 32 | 86 | 30.40625 | 0.735007 | 0.636177 | 0 | 0 | 0 | 0 | 0.214286 | 0.08631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6affcfe9b909fb32fc8bc87abf0948a9a7787b2c | 26,576 | py | Python | machine/views.py | nikaashpuri/aquabrim_project | eabd03a1da7b68cca87a1accdf30f3e264c38895 | [
"MIT"
] | null | null | null | machine/views.py | nikaashpuri/aquabrim_project | eabd03a1da7b68cca87a1accdf30f3e264c38895 | [
"MIT"
] | null | null | null | machine/views.py | nikaashpuri/aquabrim_project | eabd03a1da7b68cca87a1accdf30f3e264c38895 | [
"MIT"
] | null | null | null | __author__ = 'nikaashpuri'
from django.http import HttpResponse
from django.shortcuts import render, HttpResponseRedirect, render_to_response
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.views.generic.list import ListView
from django.utils import timezone
import ... | 32.135429 | 124 | 0.649308 | 3,262 | 26,576 | 5.014715 | 0.11496 | 0.056853 | 0.066756 | 0.018829 | 0.585096 | 0.528182 | 0.452439 | 0.395953 | 0.377491 | 0.365754 | 0 | 0.024537 | 0.24857 | 26,576 | 826 | 125 | 32.174334 | 0.794592 | 0.026452 | 0 | 0.416819 | 0 | 0 | 0.054617 | 0.015082 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012797 | 0.036563 | null | null | 0.010969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6affd1d8963c93ac4c8dc45926d7b7b4d82db0ee | 3,428 | py | Python | images/tests.py | olesigilai/my_Gallery | 5511fa1f31d190f1044a081633d38e593020ff4e | [
"MIT",
"Unlicense"
] | null | null | null | images/tests.py | olesigilai/my_Gallery | 5511fa1f31d190f1044a081633d38e593020ff4e | [
"MIT",
"Unlicense"
] | null | null | null | images/tests.py | olesigilai/my_Gallery | 5511fa1f31d190f1044a081633d38e593020ff4e | [
"MIT",
"Unlicense"
] | null | null | null | from django.test import TestCase
from .models import Location,Image,Category
import datetime as dt
# Create your tests here.
class LocationTestClass(TestCase):
# Set up method
def setUp(self):
self.location = Location(id=1,name = 'Prestige')
# Testing instance
def test_instance(self):... | 36.468085 | 132 | 0.656068 | 407 | 3,428 | 5.400491 | 0.149877 | 0.050955 | 0.069609 | 0.065514 | 0.519563 | 0.434031 | 0.414923 | 0.295723 | 0.263876 | 0.206551 | 0 | 0.005354 | 0.237165 | 3,428 | 94 | 133 | 36.468085 | 0.835182 | 0.113186 | 0 | 0.378788 | 0 | 0 | 0.036057 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.242424 | false | 0 | 0.045455 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6affd25103f2fa188956802698be98ad62be2ce5 | 627 | py | Python | utils.py | gdiprisco/Quarantine-Violation-Police-Alert | 89259f7537e67a78076c46876b1b821a0f7ef8d7 | [
"MIT"
] | 1 | 2021-01-18T11:01:00.000Z | 2021-01-18T11:01:00.000Z | utils.py | gdiprisco/Quarantine-Violation-Police-Alert | 89259f7537e67a78076c46876b1b821a0f7ef8d7 | [
"MIT"
] | null | null | null | utils.py | gdiprisco/Quarantine-Violation-Police-Alert | 89259f7537e67a78076c46876b1b821a0f7ef8d7 | [
"MIT"
] | null | null | null | from datetime import datetime as dt
import os
database_dt_format = "%Y-%m-%d %H:%M:%S.%f" # datetime string format, json do not support datetime objects
execution_log_filename = "execution_log.txt" # execution logfile
execution_log_path = os.path.join(os.curdir, execution_log_filename) # execution logfile path
de... | 36.882353 | 107 | 0.716108 | 96 | 627 | 4.458333 | 0.427083 | 0.224299 | 0.11215 | 0.135514 | 0.317757 | 0.205607 | 0.205607 | 0.205607 | 0.205607 | 0.205607 | 0 | 0 | 0.148325 | 627 | 16 | 108 | 39.1875 | 0.801498 | 0.161085 | 0 | 0 | 0 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed076008c041d19e7e937fb71f87dfcf31b48760 | 1,791 | py | Python | videos/migrations/0001_initial.py | KamaljeetSahoo/Project-Aperture | a8d48049f3b3296b2c8345a84de8c63e6ee64b66 | [
"MIT"
] | null | null | null | videos/migrations/0001_initial.py | KamaljeetSahoo/Project-Aperture | a8d48049f3b3296b2c8345a84de8c63e6ee64b66 | [
"MIT"
] | null | null | null | videos/migrations/0001_initial.py | KamaljeetSahoo/Project-Aperture | a8d48049f3b3296b2c8345a84de8c63e6ee64b66 | [
"MIT"
] | 2 | 2021-12-04T15:46:27.000Z | 2022-02-18T20:56:56.000Z | # Generated by Django 3.2.8 on 2021-10-24 17:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Caption',
fields=[
('id', models.BigAutoFie... | 35.82 | 117 | 0.563931 | 166 | 1,791 | 5.957831 | 0.373494 | 0.084934 | 0.101112 | 0.105157 | 0.446916 | 0.446916 | 0.331648 | 0.331648 | 0.331648 | 0.331648 | 0 | 0.014331 | 0.298716 | 1,791 | 49 | 118 | 36.55102 | 0.773089 | 0.025126 | 0 | 0.5 | 1 | 0 | 0.113532 | 0.025229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.119048 | 0 | 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 |
ed07a644a5054f468893e25565ea14ed4a1ae812 | 433 | py | Python | orochi/users/migrations/0003_user_services.py | garanews/orochi | ec037ad5836855cd1a734fa1bf40ecc5647cb824 | [
"MIT"
] | 121 | 2020-09-25T16:14:44.000Z | 2022-03-09T21:21:36.000Z | orochi/users/migrations/0003_user_services.py | garanews/orochi | ec037ad5836855cd1a734fa1bf40ecc5647cb824 | [
"MIT"
] | 382 | 2020-09-28T06:46:21.000Z | 2022-03-31T11:02:19.000Z | orochi/users/migrations/0003_user_services.py | garanews/orochi | ec037ad5836855cd1a734fa1bf40ecc5647cb824 | [
"MIT"
] | 10 | 2020-09-29T16:36:30.000Z | 2022-01-18T14:02:09.000Z | # Generated by Django 3.1 on 2020-08-05 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0012_service'),
('users', '0002_alter_user_first_name'),
]
operations = [
migrations.AddField(
model_name='user... | 21.65 | 63 | 0.595843 | 45 | 433 | 5.6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 0.279446 | 433 | 19 | 64 | 22.789474 | 0.737179 | 0.099307 | 0 | 0 | 1 | 0 | 0.198454 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed0954400a75f33c14902a275408bbfe22498bca | 3,244 | py | Python | ctf/views.py | puerkito66/openCTF | 207cf96e6539a0dbfa3f87f838975c5e5f91ca9e | [
"MIT"
] | null | null | null | ctf/views.py | puerkito66/openCTF | 207cf96e6539a0dbfa3f87f838975c5e5f91ca9e | [
"MIT"
] | null | null | null | ctf/views.py | puerkito66/openCTF | 207cf96e6539a0dbfa3f87f838975c5e5f91ca9e | [
"MIT"
] | null | null | null | from django.views.generic import CreateView, TemplateView
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.forms import UserCreationForm
from django.views.generic import DetailView, ListView, FormView, TemplateView, View
fro... | 28.208696 | 88 | 0.688964 | 336 | 3,244 | 6.520833 | 0.386905 | 0.05477 | 0.020539 | 0.030123 | 0.135098 | 0.060246 | 0.039251 | 0 | 0 | 0 | 0 | 0.00853 | 0.204994 | 3,244 | 114 | 89 | 28.45614 | 0.841024 | 0.063502 | 0 | 0.166667 | 0 | 0 | 0.084112 | 0.018345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.181818 | 0.015152 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed0af1f74b264093e54786a45a165c482d4e2861 | 394 | py | Python | analog/exceptions.py | Oksamies/django-analog | 1b977efd6553e043f2f1ad399d810ab8c5b51dcb | [
"MIT"
] | null | null | null | analog/exceptions.py | Oksamies/django-analog | 1b977efd6553e043f2f1ad399d810ab8c5b51dcb | [
"MIT"
] | null | null | null | analog/exceptions.py | Oksamies/django-analog | 1b977efd6553e043f2f1ad399d810ab8c5b51dcb | [
"MIT"
] | null | null | null | class UnknownLogKind(ValueError):
"""Exception thrown when an unknown ``kind`` is passed."""
def __init__(self, value):
"""
Construct the exception.
:param value: The invalid kind value passed in.
"""
message = "Unknown log entry kind %r" % value
super(UnknownLo... | 24.625 | 62 | 0.629442 | 42 | 394 | 5.714286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263959 | 394 | 15 | 63 | 26.266667 | 0.827586 | 0.319797 | 0 | 0 | 0 | 0 | 0.108225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed0bb69451b43c30a079dbb45953abbebcde4ae9 | 381 | py | Python | backend/spendings/migrations/0002_auto_20201209_0018.py | Gimb0/financeManager | b054567ccbcc66535b30b92af1bf11e270968779 | [
"MIT"
] | null | null | null | backend/spendings/migrations/0002_auto_20201209_0018.py | Gimb0/financeManager | b054567ccbcc66535b30b92af1bf11e270968779 | [
"MIT"
] | null | null | null | backend/spendings/migrations/0002_auto_20201209_0018.py | Gimb0/financeManager | b054567ccbcc66535b30b92af1bf11e270968779 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-09 00:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spendings', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='expenses',
name='expense',
... | 20.052632 | 51 | 0.593176 | 40 | 381 | 5.575 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0.291339 | 381 | 18 | 52 | 21.166667 | 0.744444 | 0.11811 | 0 | 0 | 1 | 0 | 0.107784 | 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 |
ed0f2d6a1ef618af0a0f50dcba63f15b8454bb9e | 3,686 | py | Python | test/test_arguments.py | MRImagingLi/pydpiper | 8d3f355ef8fda7cd73723734c0d4d2cc0f9f0e32 | [
"BSD-3-Clause"
] | 14 | 2015-05-21T17:16:17.000Z | 2021-08-02T20:50:00.000Z | test/test_arguments.py | MRImagingLi/pydpiper | 8d3f355ef8fda7cd73723734c0d4d2cc0f9f0e32 | [
"BSD-3-Clause"
] | 369 | 2015-01-05T15:51:33.000Z | 2022-03-11T16:57:32.000Z | test/test_arguments.py | MRImagingLi/pydpiper | 8d3f355ef8fda7cd73723734c0d4d2cc0f9f0e32 | [
"BSD-3-Clause"
] | 8 | 2015-02-24T01:02:07.000Z | 2022-03-01T15:55:30.000Z | import pytest
from configargparse import Namespace
from pydpiper.core.arguments import CompoundParser, AnnotatedParser, application_parser, parse #, lsq6_parser, lsq12_parser
from pydpiper.pipelines.MBM import mbm_parser
# TODO should these test files be named test_*?
# should these be fixtures or not?
@pytest.fixt... | 54.205882 | 123 | 0.587358 | 403 | 3,686 | 5.08933 | 0.186104 | 0.061433 | 0.046806 | 0.088737 | 0.516334 | 0.359824 | 0.251097 | 0.139932 | 0.115553 | 0.115553 | 0 | 0.038358 | 0.292729 | 3,686 | 67 | 124 | 55.014925 | 0.74837 | 0.066739 | 0 | 0.1 | 0 | 0 | 0.144856 | 0.109881 | 0 | 0 | 0 | 0.014925 | 0.06 | 1 | 0.18 | false | 0 | 0.08 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed11600e4ecb3457c6cf5ad8774cece27f55f046 | 1,571 | py | Python | setup.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2015-10-10T08:04:26.000Z | 2015-10-10T08:04:26.000Z | setup.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2016-03-25T01:41:36.000Z | 2016-03-25T01:41:36.000Z | setup.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
# version_tuple = __import__('nadmin.version').VERSION
# version = ".".join([str(v) for v in version_tuple])
setup(
name='django-nadmin',
version='0.1.0',
description='django nadmin support django version 1.8 based on django-xadmin',
long_description=... | 34.152174 | 82 | 0.611076 | 163 | 1,571 | 5.803681 | 0.625767 | 0.038055 | 0.052854 | 0.042283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020525 | 0.224698 | 1,571 | 45 | 83 | 34.911111 | 0.756158 | 0.079567 | 0 | 0 | 0 | 0 | 0.546085 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.025 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed144623611b2bdb00e12abea815ba50174be50f | 5,044 | py | Python | tensorflow_federated/python/core/impl/remote_executor.py | xueyuuu/federated | ad617401324c133eb838e4e0af7442a4dfa71d6e | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/core/impl/remote_executor.py | xueyuuu/federated | ad617401324c133eb838e4e0af7442a4dfa71d6e | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/core/impl/remote_executor.py | xueyuuu/federated | ad617401324c133eb838e4e0af7442a4dfa71d6e | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 40.031746 | 93 | 0.761895 | 680 | 5,044 | 5.429412 | 0.283824 | 0.04117 | 0.056338 | 0.070423 | 0.246208 | 0.174702 | 0.174702 | 0.092362 | 0.02546 | 0 | 0 | 0.010638 | 0.16138 | 5,044 | 125 | 94 | 40.352 | 0.862175 | 0.277756 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0 | 1 | 0.056338 | false | 0 | 0.126761 | 0.028169 | 0.309859 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ed144aae0fe96ed72ffa172a477ef02a30db888a | 1,060 | py | Python | lib/exabgp/vendoring/ordereddict.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/vendoring/ordereddict.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/vendoring/ordereddict.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
"""
ordereddict.py
Created by Thomas Mangin on 2013-03-18.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
# ================================================================== OrderedDict
# This is only an hack until we drop support for python version < 2.7
class OrderedDict(dict):... | 24.090909 | 98 | 0.560377 | 133 | 1,060 | 4.052632 | 0.533835 | 0.116883 | 0.044527 | 0.070501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.251887 | 1,060 | 43 | 99 | 24.651163 | 0.64691 | 0.262264 | 0 | 0.086957 | 0 | 0 | 0.03886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0.086957 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed17757a9a8dbb52b5177f7595bd64764c6571d4 | 9,164 | py | Python | Proyecto2/.ipynb_checkpoints/tetriss-checkpoint.py | CrysthelAparicio/PythonProjects-SWISE | 9468229d2f913e52a568e76f3f3eb04a13d0eaad | [
"MIT"
] | 1 | 2020-09-15T06:05:03.000Z | 2020-09-15T06:05:03.000Z | Proyecto2/tetriss.py | Adriana-Elizabeth-Salgado/PythonProjects-SWISE | 1cad7cbc6183af130dc5facc27926bba3ea893fc | [
"MIT"
] | 1 | 2020-09-08T06:23:38.000Z | 2020-09-09T00:37:25.000Z | Proyecto2/tetriss.py | Adriana-Elizabeth-Salgado/PythonProjects-SWISE | 1cad7cbc6183af130dc5facc27926bba3ea893fc | [
"MIT"
] | 1 | 2020-09-15T02:21:53.000Z | 2020-09-15T02:21:53.000Z | """
- Al menos un ente que se pueda sin ambigüedad llamar protagonista (LISTO)
- Definiendo un estado como la colección de variables en memoria
necesarios para describir todos los entes del juego,
se requiere que se tenga un número de estados no idénticos
totales mayor que 2 en los el protagonista no puede tener
lo... | 35.382239 | 138 | 0.573658 | 1,287 | 9,164 | 4.055944 | 0.283605 | 0.005364 | 0.010345 | 0.011494 | 0.147701 | 0.140038 | 0.094636 | 0.072605 | 0.06341 | 0.06341 | 0 | 0.042175 | 0.311763 | 9,164 | 259 | 139 | 35.382239 | 0.785476 | 0.333588 | 0 | 0.305 | 0 | 0 | 0.048241 | 0 | 0 | 0 | 0 | 0.023166 | 0 | 1 | 0.06 | false | 0.01 | 0.015 | 0.01 | 0.11 | 0.03 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ed1cf5470c917bf6b62121bbbd360e2e4fb276fb | 9,299 | py | Python | meta_reward_learning/semantic_parsing/table/random_explore.py | yick2232/google-research | 99021ebda945e232abdcc592f2cea1375b3c84f7 | [
"Apache-2.0"
] | 11 | 2020-01-29T07:25:04.000Z | 2022-03-05T16:01:21.000Z | meta_reward_learning/semantic_parsing/table/random_explore.py | zhangyuezjx/google-research | 4a59cab927579ea9722e43252c695de5da4eb5e2 | [
"Apache-2.0"
] | 13 | 2020-01-28T22:19:53.000Z | 2022-02-10T00:39:26.000Z | meta_reward_learning/semantic_parsing/table/random_explore.py | zhangyuezjx/google-research | 4a59cab927579ea9722e43252c695de5da4eb5e2 | [
"Apache-2.0"
] | 2 | 2020-02-27T11:09:49.000Z | 2021-08-25T07:32:15.000Z | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 34.568773 | 91 | 0.679213 | 1,327 | 9,299 | 4.538809 | 0.221552 | 0.012452 | 0.023244 | 0.034534 | 0.234601 | 0.19741 | 0.154408 | 0.117715 | 0.057945 | 0.031878 | 0 | 0.007402 | 0.200989 | 9,299 | 268 | 92 | 34.697761 | 0.80323 | 0.099366 | 0 | 0.136585 | 0 | 0 | 0.138749 | 0.005776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058537 | null | null | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ed1d7913e25196c6d6e645249b61c0a0127234ca | 5,660 | py | Python | generate_javascript_layers.py | chapellegrini/pvnn | 0ccd8b57a106d5e3f801da696ae4290ea940c6a5 | [
"Apache-2.0"
] | 1 | 2019-09-11T19:32:36.000Z | 2019-09-11T19:32:36.000Z | generate_javascript_layers.py | chapellegrini/pvnn | 0ccd8b57a106d5e3f801da696ae4290ea940c6a5 | [
"Apache-2.0"
] | null | null | null | generate_javascript_layers.py | chapellegrini/pvnn | 0ccd8b57a106d5e3f801da696ae4290ea940c6a5 | [
"Apache-2.0"
] | null | null | null | # generate_javascript_layers.py
# Script that generates a javascript file named layers.js
# This is done via a list of hardcoded layers to translate into the correct format
# The file thus generated is then served to clients to be used by the javascript interface,
# allowing easier maintenance of the software
# Built-... | 41.925926 | 106 | 0.65477 | 638 | 5,660 | 5.60815 | 0.213166 | 0.066518 | 0.025154 | 0.042761 | 0.331191 | 0.246506 | 0.195361 | 0.17915 | 0.122135 | 0.122135 | 0 | 0.002902 | 0.208657 | 5,660 | 134 | 107 | 42.238806 | 0.795937 | 0.095936 | 0 | 0.184466 | 1 | 0 | 0.173069 | 0.027244 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0.116505 | false | 0 | 0.009709 | 0.019417 | 0.252427 | 0.029126 | 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 |
ed2391bcd097c2a10c26a8bc27cac232c5118041 | 1,321 | py | Python | setup.py | jjohnson42/python-eficompressor | 9bc6ba271674f62a744a7cd1e37d6202d902f17f | [
"BSD-2-Clause"
] | 1 | 2018-07-24T13:50:48.000Z | 2018-07-24T13:50:48.000Z | setup.py | jjohnson42/python-eficompressor | 9bc6ba271674f62a744a7cd1e37d6202d902f17f | [
"BSD-2-Clause"
] | null | null | null | setup.py | jjohnson42/python-eficompressor | 9bc6ba271674f62a744a7cd1e37d6202d902f17f | [
"BSD-2-Clause"
] | null | null | null | ## @file
# package and install PyEfiCompressor extension
#
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of th... | 28.106383 | 85 | 0.636639 | 144 | 1,321 | 5.8125 | 0.694444 | 0.04779 | 0.031063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.268736 | 1,321 | 46 | 86 | 28.717391 | 0.857143 | 0.409538 | 0 | 0.111111 | 0 | 0 | 0.368421 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed296bcea715cc467c3e412a523792e1a8f4a07e | 347 | py | Python | frontend/webapp/config.py | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 40 | 2018-12-03T13:01:06.000Z | 2022-02-23T13:04:12.000Z | frontend/webapp/config.py | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 63 | 2018-09-11T14:13:31.000Z | 2020-01-14T16:12:39.000Z | frontend/webapp/config.py | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 7 | 2019-07-10T14:48:31.000Z | 2022-03-23T09:12:11.000Z | """
Configuration for the sheep flask app
"""
import os
class SheepConfig:
if "SHEEP_HOME" in os.environ.keys():
SHEEP_HOME = os.environ["SHEEP_HOME"]
else:
SHEEP_HOME = os.path.join(os.environ["HOME"],
"SHEEP","pysheep")
UPLOAD_FOLDER = os.path.join(SHEEP... | 24.785714 | 64 | 0.596542 | 43 | 347 | 4.674419 | 0.534884 | 0.223881 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26513 | 347 | 13 | 65 | 26.692308 | 0.788235 | 0.106628 | 0 | 0 | 0 | 0 | 0.162252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed2ab50f16ac9129881624521b41b27b0b29f417 | 1,539 | py | Python | samples/vsphere/vcenter/topologysvc/list_replication_status.py | JKraftman/vsphere-automation-sdk-python | ccc83aa7124fd9aed26ee88ccc16d01adc8af7db | [
"MIT"
] | 589 | 2017-03-09T19:01:22.000Z | 2022-03-23T08:18:32.000Z | samples/vsphere/vcenter/topologysvc/list_replication_status.py | JKraftman/vsphere-automation-sdk-python | ccc83aa7124fd9aed26ee88ccc16d01adc8af7db | [
"MIT"
] | 244 | 2017-03-09T19:37:36.000Z | 2022-03-29T07:14:21.000Z | samples/vsphere/vcenter/topologysvc/list_replication_status.py | JKraftman/vsphere-automation-sdk-python | ccc83aa7124fd9aed26ee88ccc16d01adc8af7db | [
"MIT"
] | 304 | 2017-03-09T19:15:01.000Z | 2022-03-31T04:26:59.000Z | #!/usr/bin/env python
"""
* *******************************************************
* Copyright (c) VMware, Inc. 2020. All Rights Reserved.
* SPDX-License-Identifier: MIT
* *******************************************************
*
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
* WARRANTIES OR CONDITIONS... | 34.2 | 75 | 0.677063 | 179 | 1,539 | 5.659218 | 0.631285 | 0.064166 | 0.043435 | 0.047384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004751 | 0.179337 | 1,539 | 44 | 76 | 34.977273 | 0.797308 | 0.365822 | 0 | 0 | 0 | 0 | 0.021828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.230769 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.