text
stringlengths
1
927k
from utilidades.consola import * #Menu CC = Criptografía Clásica def menuCifrados(cifrado,oconfig): cont = 0 eleccion = 'seguir' output_config = oconfig #Configuración de salida consola:5, html:7, txt:11 menu = [ '[1] Configurar Salida', '[2] Cifrar', '[3] Descifrar', '[4...
import argparse from pdm.cli import actions from pdm.cli.commands.base import BaseCommand from pdm.cli.options import packages_group, save_strategy_group, update_strategy_group from pdm.project import Project class Command(BaseCommand): """Add package(s) to pyproject.toml and install them""" def add_argumen...
""" Linux on Hyper-V and Azure Test Code, ver. 1.0.0 Copyright (c) Microsoft Corporation 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.apache.org/licenses/LICEN...
"""SynologyChat platform for notify component.""" import json import logging import requests import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, PLATFORM_SCHEMA, BaseNotificationService, ) from homeassistant.const import CONF_RESOURCE, CONF_VERIFY_SSL, HTTP_CREATED, HTTP_OK i...
import graphene from ....channel.error_codes import ChannelErrorCode from ....channel.models import Channel from ....checkout.models import Checkout from ....order.models import Order from ...tests.utils import assert_no_permission, get_graphql_content CHANNEL_DELETE_MUTATION = """ mutation deleteChannel($id: ID!...
#!/usr/bin/env python """ ***************************************************************** Licensed Materials - Property of IBM (C) Copyright IBM Corp. 2020. All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. **************...
""" Robinson ======== The Robinson projection, presented by the American geographer and cartographer Arthur H. Robinson in 1963, is a modified cylindrical projection that is neither conformal nor equal-area. Central meridian and all parallels are straight lines; other meridians are curved. It uses lookup tables rather...
#! /usr/bin/env python # -*- coding: utf-8 -*- import argparse import base64 import binascii import os import struct import traceback import uuid import xml.etree.ElementTree as ET from . import kit, util try: # Try local import first. from pydel import pydel except: import pydel import rpp def convert_note...
"""Docs URL Configuration path api/ load swagger docs api """ from django.urls import path from .views import show_api_docs urlpatterns = [ path('api/', show_api_docs), ]
''' show_route.py ''' import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, \ Any, \ Optional # ==================================================== # schema for show route ipv4 # ===...
import requests import time from datetime import datetime # Please limit requests to no more than 30 per minute. # Endpoints update every 5 minutes. # 获取比特币价格的api # CoinMarketCap Public API Documentation Version 2 BITCOIN_API_URL = 'https://api.coinmarketcap.com/v2/ticker/1/' # 触发IFTTT的api # https://maker.ifttt.com/t...
#!/usr/bin/env python import os import pip from setuptools import setup setup( name='barrage', version='0.1.0', description='Competitive programming testing script', author='Sergei Fomin', author_email='sergio-dna@yandex.ru', packages=['barrage'], )
import logging import warnings import time import os import sys from os.path import join from . import image_analysis as ia from . import methods def error(text): hs.message('ERROR::'+text) if instrument_status['FPGA']: hs.f.LED(1, 'yellow') def setup_logger(log_path): """Create a logger and retu...
from django.conf import settings from places.models import Place import requests PLACES_API_ROOT = "https://maps.googleapis.com/maps/api/place" PLACES_DETAILS_URL = "{ROOT_URL}/details/json?inputtype=textquery&key={key}&place_id={place_id}&fields={fields}" PLACES_PHOTO_URL = "{ROOT_URL}/photo?key={key}&photoreference...
from telethon import events import asyncio from PyLyrics import * from __main__ import client from constants import Config CMD_PREFIX = Config.CMD_PREFIX @client.on(events.NewMessage(outgoing=True, pattern=CMD_PREFIX + "lyrics (.*)")) async def _(event): if event.fwd_from: return i = 0 input_str...
from __future__ import unicode_literals, division, absolute_import import logging import csv from requests import RequestException from flexget.entry import Entry from flexget.plugin import register_plugin, PluginError from flexget.utils.cached_input import cached log = logging.getLogger('csv') class InputCSV(obje...
import os import glob import random import numpy as np import pandas as pd from imageio import mimread from skimage.color import gray2rgb from skimage import io, img_as_float32 from sklearn.model_selection import train_test_split from torch.utils.data import Dataset from data.augmentation import AllAugmentationTransf...
"""Tests for Plex server.""" from unittest.mock import patch from plexapi.exceptions import BadRequest, NotFound import pytest from homeassistant.components.media_player.const import ( ATTR_MEDIA_CONTENT_ID, ATTR_MEDIA_CONTENT_TYPE, DOMAIN as MEDIA_PLAYER_DOMAIN, MEDIA_TYPE_EPISODE, MEDIA_TYPE_MOV...
# Copyright 2021 Google LLC. 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
import unittest from biothings_explorer.registry import Registry from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher from .utils import get_apis reg = Registry() class TestSingleHopQuery(unittest.TestCase): def test_gene2disease(self): # test <gene, related_to, disease> ...
import inspect import ast from types import FunctionType import hashlib from typing import List import astunparse from pyminifier import minification class VerfunException(Exception): pass def version_hash_for_function(fn: FunctionType) -> str: abstract_syntax_tree = ast.parse(inspect.getsource(fn)).body[0...
# Copyright 2012 OpenStack Foundation # # 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 a...
from pathlib import Path from vnpy.trader.app import BaseApp from vnpy.trader.object import ( OrderData, TradeData, TickData, BarData ) from .engine import ( SpreadEngine, APP_NAME, SpreadData, LegData, SpreadStrategyTemplate, SpreadAlgoTemplate ) class SpreadTradingApp(BaseA...
# python map/reduce function print '************** map/reduce function Test Programs **************' print 'test map' def power(x): return x * x; l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] print 'l1:',l1 print 'map l1 with power function:',map(power,l1) print map(str, [1, 2, 3, 4, 5, 6, 7, 8, 9]) print 'test reduce' def a...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page as page_module from telemetry.page import page_set as page_set_module class ImageDecodingMeasurementPage(page_module.Page): ...
# -*- coding: utf-8 -*- from django.db import models, migrations import django.core.validators import open_humans.storage import django.utils.timezone from django.conf import settings import open_humans.models def add_member_ids(apps, *args): Member = apps.get_model('open_humans', 'Member') for member in Me...
from datautil.dependency import Dependency from typing import List # 计算F1值 def calc_f1(num_gold, num_pred, num_correct, eps=1e-10): f1 = (2. * num_correct) / (num_pred + num_gold + eps) return f1 def cws_from_postag_bi(deps: List[Dependency]): wds = [] one_wd = [] is_start = False end_idx = ...
import os os.system('python setup.py build') os.system('sudo python setup.py install') os.system('sudo tor')
from django.utils.safestring import mark_safe from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from oauth2_provider.forms import AllowForm as DotAllowForm from oauth2_provider.models import get_application_model from oauth2_provider.scopes import get_scop...
# coding=utf-8 # Copyright (C) 2020 NumS Development Team. # # 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...
''' Function: define the darknet Author: Charles ''' import torch import torch.nn as nn '''define darknet53''' class Darknet53(nn.Module): def __init__(self, **kwargs): super(Darknet53, self).__init__() '''forward''' def forward(self, x): pass
import pytest from time import sleep from test_003_eu_cookie_law import get_cookie_bar_buttons from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException de...
# -*- coding: utf-8 -*- """ gutils/images/postprocessing/__init__ """ from gutils.images.postprocessing.remove_bg import RemoveBG
import datetime import unittest from anchore_engine.db import db_locks, initialize, session_scope, Lease, db_queue from anchore_engine.subsys import logger, simplequeue from anchore_engine.subsys.logger import enable_bootstrap_logging enable_bootstrap_logging() conn_str = 'postgres+pg8000://postgres:postgres@localho...
#!/usr/bin/env python3 # coding: utf-8 from slackclient import SlackClient from .config import SLACK_TOKEN class SlackPoster: def __init__(self, token, channels): self.client = SlackClient(token) self.channels = channels def post(self, message): for ch in self.channels: ...
from unittest import TestCase, main from cogent3 import DNA, make_aligned_seqs, make_unaligned_seqs from cogent3.app.composable import NotCompleted from cogent3.app.translate import ( best_frame, get_code, get_fourfold_degenerate_sets, select_translatable, translate_frames, translate_seqs, ) ...
from django.conf import settings API_WORK_ROLE = { "id": 11, "name": "System Engineer", "hourlyRate": 100, "inactiveFlag": False, "locationIds": [ 2 ], "_info": { "lastUpdated": "2003-08-21T13:02:52Z", "updatedBy": "zAdmin" ...
#!/usr/bin/env python import io from agate import fixed from agate import utils @classmethod def from_fixed(cls, path, schema_path, column_names=utils.default, column_types=None, row_names=None, encoding='utf-8', schema_encoding='utf-8'): """ Create a new table from a fixed-width file and a CSV schema. ...
#!/usr/bin/python import cantools import oscc import math from opencaret_msgs.msg import CanMessage, LongitudinalTarget from std_msgs.msg import Float32, Bool from sensor_msgs.msg import JointState from util import util import rospy import os import struct from canoc.can_transceiver import CanTransceiver from util.util...
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import print_function from threading import Thread import pytest from pex.compatibility import PY2 from pex.fetcher import URLFetcher from pex.typing import TYPE_CHECKIN...
# imports - standard imports import os, os.path as osp from functools import partial import sys # imports - module imports from pipupgrade.config import PATH, Settings from pipupgrade.util.imports import import_handler from pipupgrade.util.system import popen from pipupgrade.util._dict import me...
import os import subprocess import logging import filecmp import copy import base64 import json import pykube import kubernetes_validate from kubernetes_validate.utils import ( SchemaNotFoundError, VersionNotSupportedError, InvalidSchemaError, ValidationError, ) from toscaparser.tosca_template import T...
def leiaInt(msg): while True: try: n = int(input(msg)) except (ValueError, TypeError): print('ERRO: Por favor digite um número inteiro válido.') continue #Para jogar novamente pro while except KeyboardInterrupt: print('Usuário preferiu não digitar esse número.') return 0 else: return n def ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Bootstrap helps you to test scripts without installing them by patching your PYTHONPATH on the fly example: ./bootstrap.py ipython """ __authors__ = ["Frédéric-Emmanuel Picca", "Jérôme Kieffer"] __contact__ = "jerome.kieffer@esrf.eu" __license__ = "MIT" __date__ = "0...
# Copyright 2016 Google Inc. 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
from pywincffi.core import dist from pywincffi.dev.testutil import TestCase from pywincffi.wintypes import ( HANDLE, SECURITY_ATTRIBUTES, OVERLAPPED, FILETIME, LPWSANETWORKEVENTS, PROCESS_INFORMATION, STARTUPINFO) class TestSECURITY_ATTRIBUTES(TestCase): """ Tests for :class:`pywincffi.wintypes.SECURI...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
from webserial.calibredb import CalibreDb from webserial.fff import FanFicFare from webserial.update import perform
# fmt: off import json import logging import threading import time from collections import OrderedDict from datetime import timedelta from enum import Enum from inspect import signature from pathlib import Path from typing import Any, Dict, get_type_hints import requests from ipywidgets import (HTML, Button, Checkbox...
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os import logging import time from datetime import timedelta import pandas as pd class LogFormatter: def __i...
# -*- coding: utf-8 -*- # # Project: Azimuthal integration # https://github.com/silx-kit/pyFAI # # # Copyright (C) 2014-2018 European Synchrotron Radiation Facility, Grenoble, France # # Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu) # Giannis Ashiotis # ...
#!/usr/bin/env python3 import os import socket import re import subprocess from six import string_types from .utils import find_executable, split_host_port, data_directory_is_empty from .dcs import dcs_modules from .exceptions import ConfigParseError def data_directory_empty(data_dir): if os.path.isfile(os.path...
""" Module to run tests on arsave """ import os import numpy as np import pytest from astropy import units from astropy.io import fits from pypeit import specobjs from pypeit.core import save from pypeit.tests.tstutils import dummy_fitstbl from pypeit.spectrographs import util def data_path(filename): data_dir...
# Copyright 2016 PerfKitBenchmarker Authors. 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.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
# coding=utf-8 # Copyright 2022 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...
#!/Users/pik/PycharmProjects/pythonProject/Ski_Jumping_Data_Base_Project/venv/bin/python """A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags.""" import argparse import logging import sys import pdfminer.high_level import pdfminer.layout logging.basicConfig() ...
""" because tests are good? """ import pytorch_lightning as pl from pytorch_lightning import Trainer from pytorch_lightning.callbacks import ModelCheckpoint from simple_ac import SimpleActorCritic import gym import pandas as pd env = gym.make("CartPole-v0") # from env_catch import CatchEnv # env = CatchEnv({"simpli...
import json from unittest import mock import pytest import os from side_runner_py import main, config def test_get_side_file_list_by_glob(): assert list(main._get_side_file_list_by_glob('')) == [] def test_get_side_fixed_file_list_by_glob(tmp_path): sidefile = tmp_path / "a.json" sidefile.write_text("[]...
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-01-18 18:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vaf_Api', '0014_auto_20170118_0335'), ] operations = [ migrations.RemoveField...
from django.shortcuts import render from .models import Photos,Category,Location from django.http import HttpResponse, Http404 # Create your views here. def home(request): photos = Photos.objects.all() return render(request,'index.html',{"photos":photos}) def search_photo(request): if 'category' in reques...
# ----------------------------------------------------------------------------- # IMPORTS # ----------------------------------------------------------------------------- from .gpl import Default, STR, Container # ---------------------------------------------------------------------------- # # J-Set # ----------------...
#!/usr/bin/env python3 import sqlite3, json, time, sys, os from housepy import config, log, util def db_call(f): def wrapper(*args): connection = sqlite3.connect(os.path.abspath(os.path.join(os.path.dirname(__file__), "data.db"))) connection.row_factory = sqlite3.Row db = connection.cursor...
import queue import threading from GlobalPlayer.player import Player """ the thread module provides: * the global_queue for communication with any GlobalThread object here, dictionaries with at least an 'action' and a 'response' field * the GlobalThread class for reacting to user input via the Flask serve...
import sys import shutil from pathlib import Path from ruamel.yaml import safe_load, dump from tests.test_base import TestBase from capanno_utils.content_maps import make_tools_index from capanno_utils.helpers.get_paths import get_tool_version_dir, get_root_tools_dir, get_tool_common_dir, get_script_version_dir, get_ro...
import os import tempfile from contextlib import ExitStack from typing import ( Text, NamedTuple, Tuple, Optional, List, Union, Dict, ) import typing from typing import Any, Callable, Dict, List, Optional, Text, Union import rasa.core.interpreter from rasa.shared.nlu.interpreter import Natur...
drc_filename = "flow/reports/sky130hd/tempsense/6_final_drc.rpt" num_lines = sum(1 for line in open(drc_filename)) if num_lines > 3: raise ValueError("DRC failed!") else: print("DRC is clean!") # LVS Bypassed # lvs_filename = "flow/reports/sky130hd/tempsense/6_final_lvs.rpt" # lvs_line = subprocess.check_ou...
# -*- coding: utf-8 -*- """ Created on Fri Oct 2 00:14:39 2020 @author: Gursewak """ import pandas as pd import re import string from nltk.corpus import stopwords from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.neighbors import NearestNeighbors from datetime import datetime data_path = 'data...
from blazingsql import DataType from Configuration import ExecutionMode from Configuration import Settings as Settings from DataBase import createSchema as cs from pynvml import nvmlInit from Runner import runTest from Utils import Execution, gpuMemory, init_context, skip_test def main(dask_client, drill, spark, dir_...
""" steg - steg_img.py :author: Andrew Scott :date: 6-25-2018 """ import logging from PIL import Image as img from steg import common class IMG: """ Class for hiding binary data within select lossless image formats. Supported image formats: PNG, TIFF, BMP :param payload_path: The path of the payloa...
# # PySNMP MIB module CISCO-DS0BUNDLE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DS0BUNDLE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:38:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
from ceres.util.ints import uint64 from ceres.consensus.constants import ConsensusConstants testnet_kwargs = { "SLOT_BLOCKS_TARGET": 32, "MIN_BLOCKS_PER_CHALLENGE_BLOCK": 16, # Must be less than half of SLOT_BLOCKS_TARGET "MAX_SUB_SLOT_BLOCKS": 128, # Must be less than half of SUB_EPOCH_BLOCKS "NUM_...
from board import create_dashboard create_dashboard()
"""Users and pitch changes Revision ID: ff2aeab22c7b Revises: 36d7e307135b Create Date: 2019-07-01 07:38:51.291891 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'ff2aeab22c7b' down_revision = '36d7e307135b' branch_lab...
import hashlib input = """yzbqklnj""" def success(number): return hashlib.md5((input + str(number)).encode('utf-8')).hexdigest().startswith("000000") i = 0 while not success(i): i += 1 print(i)
import sys import types import pytest import lazy_loader as lazy def test_lazy_import_basics(): math = lazy.load("math") anything_not_real = lazy.load("anything_not_real") # Now test that accessing attributes does what it should assert math.sin(math.pi) == pytest.approx(0, 1e-6) # poor-mans pyt...
"""gsoc_data_analyser URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') ...
import pandas as pd from matplotlib import pyplot as plt plt.style.use("fivethirtyeight") path = input("please input the age.csv file path here: ") data = pd.read_csv(path) ids = data["Responder_id"] ages = data["Age"] bins = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100] plt.hist(ages, bins=bins, edgecolor="black", log...
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output app = dash.Dash() app.layout = html.Div([ dcc.Input( id='number-in', value=1, style={'fontSize': 28} ), html.H1(id='number-out') ]) @app.callback( Ou...
import math # Apresentação print('Programa para calcular a temperatura') print('com base na resistência apresentada por um termistor') print('do tipo NTC.') print() # Entradas resistencia = float(input('Informe a resistência apresentada pelo termistor: ')) # Processamento resultado = 1 / (298.15 ** -1 + (3950 ** -1)...
from .PacketFieldType import PacketFieldType class StringFieldType(PacketFieldType): def _setTypedData(self, data): try: self._data = str(data) except Exception as e: raise ValueError("{} is not a string".format(data))
"""Training mechanism for VAE-GAN""" import os import time import logging import numpy as np import torch import torch.nn.functional as F from spml import ( image_util, loss_utils, ) from . import ( misc_utils, saved_model_manager, ) _LG = logging.getLogger(__name__) def _save_images(images, src_pa...
# coding: utf-8 from __future__ import division, print_function, unicode_literals, absolute_import import os import unittest # from pymatgen.io.lammps.sets import LammpsInputSet # from pymatgen.io.lammps.output import LammpsLog from atomate.utils.testing import AtomateTest from atomate.lammps.drones import LammpsDro...
from distutils.core import setup import os setup( name='leie', version='0.1dev', packages=['leie',], license='AGPLv3+', long_description=open("README.mdwn").read() )
# Copyright 2013-2021 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) """This package contains directives that can be used within a package. Directives are functions that can be called inside...
""" Utility function for django-analytical. """ from copy import deepcopy from django.conf import settings from django.core.exceptions import ImproperlyConfigured HTML_COMMENT = "<!-- %(service)s disabled on internal IP " \ "address\n%(html)s\n-->" def get_required_setting(setting, value_re, invalid_m...
# -*- coding: utf-8 -*- # # social_capital_in_trade_networks documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
import math def is_number(n): try: float(n) except ValueError: return False return True def get_coefficient(i): coefficient = None if 'coefficient' in i: coefficient = i['coefficient'] elif 'stoichiometry' in i: coefficient = str(i['stoichiometry']) return c...
from airflow import DAG from operators.Src2S3 import GDELT2S3 from operators.stage2table import stage2table from operators.data_quality import DataQualityOperator from datetime import datetime, timedelta from airflow.operators.dummy_operator import DummyOperator from airflow.operators.bash_operator import BashOperato...
from flask import Blueprint, request, make_response, jsonify from sqlalchemy import and_ from sqlalchemy.orm import query from tester_web.tables import db_session from tester_web.tables.user import User, Api, Script, ApiUser, UserScript scripts = Blueprint('scripts', __name__,url_prefix='/scripts') @scripts.route('/...
# Date: May 2019 # Authors: Omitted for anonymity # Affiliations: Omitted for anonymity # Contact Information: Omitted for anonymity # Original Repository: https://github.com/jfzhang95/pytorch-deeplab-xception ### Original Repo: # File : __init__.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : ...
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2018 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
from __future__ import unicode_literals from django.apps import AppConfig class MeatConfig(AppConfig): name = 'meat'
""" PostgreSQL Plugin """ import logging import psycopg2 from psycopg2 import extensions from psycopg2 import extras from newrelic_plugin_agent.plugins import base LOGGER = logging.getLogger(__name__) ARCHIVE = """SELECT CAST(COUNT(*) AS INT) AS file_count, CAST(COALESCE(SUM(CAST(archive_file ~ $r$\.ready$$r$ as IN...
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Python ToolTips for Tkinter v1.0.0 # # # # Copyright 2016, PedroHenriques # # http://www.pedrojhenriques.com # # https://github.com/PedroHenriques # # # # Free to use under th...
# simple spec = { 'scale': 1.0, 'nodes': [ 'A', 'B', 'C', 'D' ], 'distances': [ ['A', 'B', 1.5], ['A', 'C', 2.0], ['C', 'D', 2.0], ['A', 'D', 2.5], ], 'powers': { 'A': 1.0, 'B': 0.5, 'C': 4.0, 'D': 1.0, }, 'survival': 5....
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish,...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A Telemetry page_action that performs the "play" action on media elements. Media elements can be specified by a selector argument. If no selector is defi...
# Copyright 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
from dataclasses import dataclass, field from pathlib import Path from math import pi from dribble_grader import DribbleGrader from rlbot.utils.game_state_util import GameState, BallState, CarState, Physics, Vector3, Rotator from rlbot.matchconfig.match_config import Team, PlayerConfig from rlbottraining.training_e...
""" Coraline DB Manager - This will take care of reading and saving tables to SQL database """ # import python packages import pandas as pd import time class BaseDB: """ Base class for all DB These functions must be inherited by sub-class - create_connection - show_databases -...